From 1ec73c508b5660264a30a610a28e4daf189be31e Mon Sep 17 00:00:00 2001 From: Ali Date: Fri, 17 Apr 2026 09:58:49 +0200 Subject: [PATCH 1/2] Cleanup the entity data types, and removal of some depricated code --- cmd/module3/AcceptInviteAction.js | 145 ---- cmd/module3/ChangePasswordAction.js | 161 ---- cmd/module3/CheckClassicPassportAction.js | 312 ------- cmd/module3/CheckPassportMethodsAction.js | 257 ------ cmd/module3/ClassicPassportOtpAction.js | 249 ------ .../ClassicPassportRequestOtpAction.js | 233 ----- cmd/module3/ClassicSigninAction.js | 281 ------ cmd/module3/ClassicSignupAction.js | 361 -------- .../ConfirmClassicPassportTotpAction.js | 217 ----- cmd/module3/CreateWorkspaceAction.js | 177 ---- cmd/module3/GsmSendSmsAction.js | 201 ----- cmd/module3/GsmSendSmsWithProviderAction.js | 217 ----- cmd/module3/ImportUserAction.js | 145 ---- cmd/module3/InviteToWorkspaceAction.js | 105 --- cmd/module3/Makefile | 5 - cmd/module3/OauthAuthenticateAction.js | 217 ----- cmd/module3/OsLoginAuthenticateAction.js | 105 --- cmd/module3/QueryUserRoleWorkspacesAction.js | 256 ------ .../QueryWorkspaceTypesPubliclyAction.js | 193 ----- cmd/module3/ReactiveSearchAction.js | 105 --- cmd/module3/SendEmailAction.js | 201 ----- cmd/module3/SendEmailWithProviderAction.js | 217 ----- cmd/module3/SignoutAction.js | 105 --- cmd/module3/UserInvitationsAction.js | 105 --- cmd/module3/UserPassportsAction.js | 193 ----- cmd/module3/main.go | 294 ------- go.mod | 2 +- go.sum | 4 +- modules/abac/AuthFlow.go | 7 +- modules/fireback/DataTypeDuration.go | 6 + modules/fireback/DataTypeMoney.go | 12 + modules/fireback/DataTypeXFile.go | 5 + modules/fireback/JsonDataType.go | 14 + modules/fireback/XDateTimeType.go | 6 + modules/fireback/XDateType.go | 6 + modules/fireback/codegen.go | 315 +++---- .../fireback/codegen/firebackgo/GoEntity.tpl | 4 + .../codegen/firebackgo/SharedSnippets.tpl | 9 +- modules/fireback/definitions.go | 7 + modules/fireback/fireback-app.go | 20 - modules/fireback/fireback-entity-to-emi.go | 109 +++ modules/fireback/firebackgogen.go | 4 + modules/fireback/module3-json-schema.json | 16 +- .../m3angular/angular-actions-service.go | 104 --- .../module3/m3angular/angular-module.go | 33 - modules/fireback/module3/m3js/helpers.go | 44 - .../fireback/module3/m3js/js-action-fetch.go | 105 --- modules/fireback/module3/m3js/js-action.go | 131 --- .../fireback/module3/m3js/js-common-object.go | 299 ------- modules/fireback/module3/m3js/js-headers.go | 193 ----- modules/fireback/module3/m3js/js-jsdoc.go | 32 - modules/fireback/module3/m3js/js-module.go | 39 - .../m3js/js-nestjs-static-decorator.go | 93 -- .../fireback/module3/m3js/js-query-params.go | 159 ---- .../fireback/module3/m3js/js-static-axios.go | 81 -- .../fireback/module3/m3js/js-static-fetch.go | 111 --- modules/fireback/module3/mcore/common.go | 153 ---- modules/fireback/module3/mcore/jsArgument.go | 22 - modules/fireback/module3/mcore/module3.go | 816 ------------------ .../module3/mcore/module3extensions.go | 25 - modules/fireback/module3/mcore/utilities.go | 35 - modules/fireback/module3Def.go | 18 + modules/fireback/vField.go | 5 +- 63 files changed, 378 insertions(+), 7723 deletions(-) delete mode 100644 cmd/module3/AcceptInviteAction.js delete mode 100644 cmd/module3/ChangePasswordAction.js delete mode 100644 cmd/module3/CheckClassicPassportAction.js delete mode 100644 cmd/module3/CheckPassportMethodsAction.js delete mode 100644 cmd/module3/ClassicPassportOtpAction.js delete mode 100644 cmd/module3/ClassicPassportRequestOtpAction.js delete mode 100644 cmd/module3/ClassicSigninAction.js delete mode 100644 cmd/module3/ClassicSignupAction.js delete mode 100644 cmd/module3/ConfirmClassicPassportTotpAction.js delete mode 100644 cmd/module3/CreateWorkspaceAction.js delete mode 100644 cmd/module3/GsmSendSmsAction.js delete mode 100644 cmd/module3/GsmSendSmsWithProviderAction.js delete mode 100644 cmd/module3/ImportUserAction.js delete mode 100644 cmd/module3/InviteToWorkspaceAction.js delete mode 100644 cmd/module3/Makefile delete mode 100644 cmd/module3/OauthAuthenticateAction.js delete mode 100644 cmd/module3/OsLoginAuthenticateAction.js delete mode 100644 cmd/module3/QueryUserRoleWorkspacesAction.js delete mode 100644 cmd/module3/QueryWorkspaceTypesPubliclyAction.js delete mode 100644 cmd/module3/ReactiveSearchAction.js delete mode 100644 cmd/module3/SendEmailAction.js delete mode 100644 cmd/module3/SendEmailWithProviderAction.js delete mode 100644 cmd/module3/SignoutAction.js delete mode 100644 cmd/module3/UserInvitationsAction.js delete mode 100644 cmd/module3/UserPassportsAction.js delete mode 100644 cmd/module3/main.go create mode 100644 modules/fireback/fireback-entity-to-emi.go delete mode 100644 modules/fireback/module3/m3angular/angular-actions-service.go delete mode 100644 modules/fireback/module3/m3angular/angular-module.go delete mode 100644 modules/fireback/module3/m3js/helpers.go delete mode 100644 modules/fireback/module3/m3js/js-action-fetch.go delete mode 100644 modules/fireback/module3/m3js/js-action.go delete mode 100644 modules/fireback/module3/m3js/js-common-object.go delete mode 100644 modules/fireback/module3/m3js/js-headers.go delete mode 100644 modules/fireback/module3/m3js/js-jsdoc.go delete mode 100644 modules/fireback/module3/m3js/js-module.go delete mode 100644 modules/fireback/module3/m3js/js-nestjs-static-decorator.go delete mode 100644 modules/fireback/module3/m3js/js-query-params.go delete mode 100644 modules/fireback/module3/m3js/js-static-axios.go delete mode 100644 modules/fireback/module3/m3js/js-static-fetch.go delete mode 100644 modules/fireback/module3/mcore/common.go delete mode 100644 modules/fireback/module3/mcore/jsArgument.go delete mode 100644 modules/fireback/module3/mcore/module3.go delete mode 100644 modules/fireback/module3/mcore/module3extensions.go delete mode 100644 modules/fireback/module3/mcore/utilities.go diff --git a/cmd/module3/AcceptInviteAction.js b/cmd/module3/AcceptInviteAction.js deleted file mode 100644 index ac1b88b7a..000000000 --- a/cmd/module3/AcceptInviteAction.js +++ /dev/null @@ -1,145 +0,0 @@ -/** -* Action to communicate with the action acceptInvite -*/ - - - - - - - - -/** - * @decription The base class definition for acceptInviteReq - **/ - -export class AcceptInviteReq { - - /** - * @type {string} - * @description The invitation id which will be used to process - **/ - invitationUniqueId; - /** - * @returns {string} - * @description The invitation id which will be used to process - **/ -getInvitationUniqueId () { return this[`invitationUniqueId`] } - /** - * @param {string} - * @description The invitation id which will be used to process - **/ -setInvitationUniqueId (value) { this[`invitationUniqueId`] = value; return this; } - - - - - /** a placeholder for WebRequesX auto patching the json content to the object **/ - static __jsonParsable; -} - - - - - - - - - - -/** - * AcceptInviteHeaders class - * Auto-generated from Module3Action - */ -export class AcceptInviteHeaders extends Headers { - - // the getters generated by us would be casting types before returning. - // you still can use .get function to get the string value. - #getTyped(key, type) { - const val = this.get(key); - if (val == null) return null; - - const t = type.toLowerCase(); - - if (t.includes('number')) return Number(val); - if (t.includes('bool')) return val === 'true'; - return val; // string or any other fallback - } - - - /** - * @returns {Record} - * Converts Headers to plain object - */ - toObject() { - return Object.fromEntries(this.entries()); - } - - - /** - * Nest.js decorator for controller headers. Instead of using @Headers() value: any, now you can use for example: - * @example - * @Get() - * getHello(@FetchUserHeader.Nest() headers: FetchUserHeader): string { - * return JSON.stringify(headers.getContentType()); - * } - */ - static Nest = createParamDecorator( - (_data: unknown, ctx: ExecutionContext) => { - // eslint-disable-next-line @typescript-eslint/no-unsafe-assignment - const request = ctx.switchToHttp().getRequest(); - // eslint-disable-next-line @typescript-eslint/no-unsafe-assignment, @typescript-eslint/no-unsafe-argument, @typescript-eslint/no-unsafe-member-access - return new AcceptInviteHeaders(Object.entries(request.headers)); - }, - ); - - -} - - - - -/** - * AcceptInviteQueryParams class - * Auto-generated from Module3Action - */ -export class AcceptInviteQueryParams extends URLSearchParamsX { - - - // the getters generated by us would be casting types before returning. - // you still can use .get function to get the string value. - #getTyped(key, type) { - const val = this.get(key); - if (val == null) return null; - - const t = type.toLowerCase(); - - if (t.includes('number')) return Number(val); - if (t.includes('bool')) return val === 'true'; - return val; // string or any other fallback - } - - - - /** - * Nest.js decorator for controller query. Instead of using @Query() value: any, now you can use for example: - * @example - * @Get() - * getHello(@FetchUserQuery.Nest() query: FetchUserQuery): string { - * return JSON.stringify(query.getMyfield()); - * } - */ - static Nest = createParamDecorator( - (_data: unknown, ctx: ExecutionContext) => { - // eslint-disable-next-line @typescript-eslint/no-unsafe-assignment - const request = ctx.switchToHttp().getRequest(); - // eslint-disable-next-line @typescript-eslint/no-unsafe-assignment, @typescript-eslint/no-unsafe-argument, @typescript-eslint/no-unsafe-member-access - return new AcceptInviteQueryParams(request.query); - }, - ); - - -} - - - diff --git a/cmd/module3/ChangePasswordAction.js b/cmd/module3/ChangePasswordAction.js deleted file mode 100644 index 8d310e4f5..000000000 --- a/cmd/module3/ChangePasswordAction.js +++ /dev/null @@ -1,161 +0,0 @@ -/** -* Action to communicate with the action changePassword -*/ - - - - - - - - -/** - * @decription The base class definition for changePasswordReq - **/ - -export class ChangePasswordReq { - - /** - * @type {string} - * @description New password meeting the security requirements. - **/ - password; - /** - * @returns {string} - * @description New password meeting the security requirements. - **/ -getPassword () { return this[`password`] } - /** - * @param {string} - * @description New password meeting the security requirements. - **/ -setPassword (value) { this[`password`] = value; return this; } - - /** - * @type {string} - * @description The passport uniqueId (not the email or phone number) which password would be applied to. Don't confuse with value. - **/ - uniqueId; - /** - * @returns {string} - * @description The passport uniqueId (not the email or phone number) which password would be applied to. Don't confuse with value. - **/ -getUniqueId () { return this[`uniqueId`] } - /** - * @param {string} - * @description The passport uniqueId (not the email or phone number) which password would be applied to. Don't confuse with value. - **/ -setUniqueId (value) { this[`uniqueId`] = value; return this; } - - - - - /** a placeholder for WebRequesX auto patching the json content to the object **/ - static __jsonParsable; -} - - - - - - - - - - -/** - * ChangePasswordHeaders class - * Auto-generated from Module3Action - */ -export class ChangePasswordHeaders extends Headers { - - // the getters generated by us would be casting types before returning. - // you still can use .get function to get the string value. - #getTyped(key, type) { - const val = this.get(key); - if (val == null) return null; - - const t = type.toLowerCase(); - - if (t.includes('number')) return Number(val); - if (t.includes('bool')) return val === 'true'; - return val; // string or any other fallback - } - - - /** - * @returns {Record} - * Converts Headers to plain object - */ - toObject() { - return Object.fromEntries(this.entries()); - } - - - /** - * Nest.js decorator for controller headers. Instead of using @Headers() value: any, now you can use for example: - * @example - * @Get() - * getHello(@FetchUserHeader.Nest() headers: FetchUserHeader): string { - * return JSON.stringify(headers.getContentType()); - * } - */ - static Nest = createParamDecorator( - (_data: unknown, ctx: ExecutionContext) => { - // eslint-disable-next-line @typescript-eslint/no-unsafe-assignment - const request = ctx.switchToHttp().getRequest(); - // eslint-disable-next-line @typescript-eslint/no-unsafe-assignment, @typescript-eslint/no-unsafe-argument, @typescript-eslint/no-unsafe-member-access - return new ChangePasswordHeaders(Object.entries(request.headers)); - }, - ); - - -} - - - - -/** - * ChangePasswordQueryParams class - * Auto-generated from Module3Action - */ -export class ChangePasswordQueryParams extends URLSearchParamsX { - - - // the getters generated by us would be casting types before returning. - // you still can use .get function to get the string value. - #getTyped(key, type) { - const val = this.get(key); - if (val == null) return null; - - const t = type.toLowerCase(); - - if (t.includes('number')) return Number(val); - if (t.includes('bool')) return val === 'true'; - return val; // string or any other fallback - } - - - - /** - * Nest.js decorator for controller query. Instead of using @Query() value: any, now you can use for example: - * @example - * @Get() - * getHello(@FetchUserQuery.Nest() query: FetchUserQuery): string { - * return JSON.stringify(query.getMyfield()); - * } - */ - static Nest = createParamDecorator( - (_data: unknown, ctx: ExecutionContext) => { - // eslint-disable-next-line @typescript-eslint/no-unsafe-assignment - const request = ctx.switchToHttp().getRequest(); - // eslint-disable-next-line @typescript-eslint/no-unsafe-assignment, @typescript-eslint/no-unsafe-argument, @typescript-eslint/no-unsafe-member-access - return new ChangePasswordQueryParams(request.query); - }, - ); - - -} - - - diff --git a/cmd/module3/CheckClassicPassportAction.js b/cmd/module3/CheckClassicPassportAction.js deleted file mode 100644 index b08487e7b..000000000 --- a/cmd/module3/CheckClassicPassportAction.js +++ /dev/null @@ -1,312 +0,0 @@ -/** -* Action to communicate with the action checkClassicPassport -*/ - - - - - - - - -/** - * @decription The base class definition for checkClassicPassportReq - **/ - -export class CheckClassicPassportReq { - - /** - * @type {string} - * @description - **/ - value; - /** - * @returns {string} - * @description - **/ -getValue () { return this[`value`] } - /** - * @param {string} - * @description - **/ -setValue (value) { this[`value`] = value; return this; } - - /** - * @type {string} - * @description This can be the value of recaptcha2, recaptch3, or generate security image or voice for verification. Will be used based on the configuration. - **/ - securityToken; - /** - * @returns {string} - * @description This can be the value of recaptcha2, recaptch3, or generate security image or voice for verification. Will be used based on the configuration. - **/ -getSecurityToken () { return this[`securityToken`] } - /** - * @param {string} - * @description This can be the value of recaptcha2, recaptch3, or generate security image or voice for verification. Will be used based on the configuration. - **/ -setSecurityToken (value) { this[`securityToken`] = value; return this; } - - - - - /** a placeholder for WebRequesX auto patching the json content to the object **/ - static __jsonParsable; -} - - - - - - - - - - - - - - -/** - * @decription The base class definition for checkClassicPassportRes - **/ - -export class CheckClassicPassportRes { - - /** - * @type {string[]} - * @description The next possible action which is suggested. - **/ - next; - /** - * @returns {string[]} - * @description The next possible action which is suggested. - **/ -getNext () { return this[`next`] } - /** - * @param {string[]} - * @description The next possible action which is suggested. - **/ -setNext (value) { this[`next`] = value; return this; } - - /** - * @type {string[]} - * @description Extra information that can be useful actually when doing onboarding. Make sure sensetive information doesn't go out. - **/ - flags; - /** - * @returns {string[]} - * @description Extra information that can be useful actually when doing onboarding. Make sure sensetive information doesn't go out. - **/ -getFlags () { return this[`flags`] } - /** - * @param {string[]} - * @description Extra information that can be useful actually when doing onboarding. Make sure sensetive information doesn't go out. - **/ -setFlags (value) { this[`flags`] = value; return this; } - - /** - * @type {CheckClassicPassportRes.OtpInfo} - * @description If the endpoint automatically triggers a send otp, then it would be holding that information, Also the otp information can become available. - **/ - otpInfo; - /** - * @returns {CheckClassicPassportRes.OtpInfo} - * @description If the endpoint automatically triggers a send otp, then it would be holding that information, Also the otp information can become available. - **/ -getOtpInfo () { return this[`otpInfo`] } - /** - * @param {CheckClassicPassportRes.OtpInfo} - * @description If the endpoint automatically triggers a send otp, then it would be holding that information, Also the otp information can become available. - **/ -setOtpInfo (value) { this[`otpInfo`] = value; return this; } - - - - -/** - * @decription The base class definition for otpInfo - **/ - -static OtpInfo = class OtpInfo { - - /** - * @type {number} - * @description - **/ - suspendUntil; - /** - * @returns {number} - * @description - **/ -getSuspendUntil () { return this[`suspendUntil`] } - /** - * @param {number} - * @description - **/ -setSuspendUntil (value) { this[`suspendUntil`] = value; return this; } - - /** - * @type {number} - * @description - **/ - validUntil; - /** - * @returns {number} - * @description - **/ -getValidUntil () { return this[`validUntil`] } - /** - * @param {number} - * @description - **/ -setValidUntil (value) { this[`validUntil`] = value; return this; } - - /** - * @type {number} - * @description - **/ - blockedUntil; - /** - * @returns {number} - * @description - **/ -getBlockedUntil () { return this[`blockedUntil`] } - /** - * @param {number} - * @description - **/ -setBlockedUntil (value) { this[`blockedUntil`] = value; return this; } - - /** - * @type {number} - * @description The amount of time left to unblock for next request - **/ - secondsToUnblock; - /** - * @returns {number} - * @description The amount of time left to unblock for next request - **/ -getSecondsToUnblock () { return this[`secondsToUnblock`] } - /** - * @param {number} - * @description The amount of time left to unblock for next request - **/ -setSecondsToUnblock (value) { this[`secondsToUnblock`] = value; return this; } - - - - - /** a placeholder for WebRequesX auto patching the json content to the object **/ - static __jsonParsable; -} - - - - /** a placeholder for WebRequesX auto patching the json content to the object **/ - static __jsonParsable; -} - - - - - - - - -/** - * CheckClassicPassportHeaders class - * Auto-generated from Module3Action - */ -export class CheckClassicPassportHeaders extends Headers { - - // the getters generated by us would be casting types before returning. - // you still can use .get function to get the string value. - #getTyped(key, type) { - const val = this.get(key); - if (val == null) return null; - - const t = type.toLowerCase(); - - if (t.includes('number')) return Number(val); - if (t.includes('bool')) return val === 'true'; - return val; // string or any other fallback - } - - - /** - * @returns {Record} - * Converts Headers to plain object - */ - toObject() { - return Object.fromEntries(this.entries()); - } - - - /** - * Nest.js decorator for controller headers. Instead of using @Headers() value: any, now you can use for example: - * @example - * @Get() - * getHello(@FetchUserHeader.Nest() headers: FetchUserHeader): string { - * return JSON.stringify(headers.getContentType()); - * } - */ - static Nest = createParamDecorator( - (_data: unknown, ctx: ExecutionContext) => { - // eslint-disable-next-line @typescript-eslint/no-unsafe-assignment - const request = ctx.switchToHttp().getRequest(); - // eslint-disable-next-line @typescript-eslint/no-unsafe-assignment, @typescript-eslint/no-unsafe-argument, @typescript-eslint/no-unsafe-member-access - return new CheckClassicPassportHeaders(Object.entries(request.headers)); - }, - ); - - -} - - - - -/** - * CheckClassicPassportQueryParams class - * Auto-generated from Module3Action - */ -export class CheckClassicPassportQueryParams extends URLSearchParamsX { - - - // the getters generated by us would be casting types before returning. - // you still can use .get function to get the string value. - #getTyped(key, type) { - const val = this.get(key); - if (val == null) return null; - - const t = type.toLowerCase(); - - if (t.includes('number')) return Number(val); - if (t.includes('bool')) return val === 'true'; - return val; // string or any other fallback - } - - - - /** - * Nest.js decorator for controller query. Instead of using @Query() value: any, now you can use for example: - * @example - * @Get() - * getHello(@FetchUserQuery.Nest() query: FetchUserQuery): string { - * return JSON.stringify(query.getMyfield()); - * } - */ - static Nest = createParamDecorator( - (_data: unknown, ctx: ExecutionContext) => { - // eslint-disable-next-line @typescript-eslint/no-unsafe-assignment - const request = ctx.switchToHttp().getRequest(); - // eslint-disable-next-line @typescript-eslint/no-unsafe-assignment, @typescript-eslint/no-unsafe-argument, @typescript-eslint/no-unsafe-member-access - return new CheckClassicPassportQueryParams(request.query); - }, - ); - - -} - - - diff --git a/cmd/module3/CheckPassportMethodsAction.js b/cmd/module3/CheckPassportMethodsAction.js deleted file mode 100644 index cad29dd26..000000000 --- a/cmd/module3/CheckPassportMethodsAction.js +++ /dev/null @@ -1,257 +0,0 @@ -/** -* Action to communicate with the action checkPassportMethods -*/ - - - - - - - - - - -/** - * @decription The base class definition for checkPassportMethodsRes - **/ - -export class CheckPassportMethodsRes { - - /** - * @type {boolean} - * @description - **/ - email; - /** - * @returns {boolean} - * @description - **/ -getEmail () { return this[`email`] } - /** - * @param {boolean} - * @description - **/ -setEmail (value) { this[`email`] = value; return this; } - - /** - * @type {boolean} - * @description - **/ - phone; - /** - * @returns {boolean} - * @description - **/ -getPhone () { return this[`phone`] } - /** - * @param {boolean} - * @description - **/ -setPhone (value) { this[`phone`] = value; return this; } - - /** - * @type {boolean} - * @description - **/ - google; - /** - * @returns {boolean} - * @description - **/ -getGoogle () { return this[`google`] } - /** - * @param {boolean} - * @description - **/ -setGoogle (value) { this[`google`] = value; return this; } - - /** - * @type {boolean} - * @description - **/ - facebook; - /** - * @returns {boolean} - * @description - **/ -getFacebook () { return this[`facebook`] } - /** - * @param {boolean} - * @description - **/ -setFacebook (value) { this[`facebook`] = value; return this; } - - /** - * @type {string} - * @description - **/ - googleOAuthClientKey; - /** - * @returns {string} - * @description - **/ -getGoogleOAuthClientKey () { return this[`googleOAuthClientKey`] } - /** - * @param {string} - * @description - **/ -setGoogleOAuthClientKey (value) { this[`googleOAuthClientKey`] = value; return this; } - - /** - * @type {string} - * @description - **/ - facebookAppId; - /** - * @returns {string} - * @description - **/ -getFacebookAppId () { return this[`facebookAppId`] } - /** - * @param {string} - * @description - **/ -setFacebookAppId (value) { this[`facebookAppId`] = value; return this; } - - /** - * @type {boolean} - * @description - **/ - enabledRecaptcha2; - /** - * @returns {boolean} - * @description - **/ -getEnabledRecaptcha2 () { return this[`enabledRecaptcha2`] } - /** - * @param {boolean} - * @description - **/ -setEnabledRecaptcha2 (value) { this[`enabledRecaptcha2`] = value; return this; } - - /** - * @type {string} - * @description - **/ - recaptcha2ClientKey; - /** - * @returns {string} - * @description - **/ -getRecaptcha2ClientKey () { return this[`recaptcha2ClientKey`] } - /** - * @param {string} - * @description - **/ -setRecaptcha2ClientKey (value) { this[`recaptcha2ClientKey`] = value; return this; } - - - - - /** a placeholder for WebRequesX auto patching the json content to the object **/ - static __jsonParsable; -} - - - - - - - - -/** - * CheckPassportMethodsHeaders class - * Auto-generated from Module3Action - */ -export class CheckPassportMethodsHeaders extends Headers { - - // the getters generated by us would be casting types before returning. - // you still can use .get function to get the string value. - #getTyped(key, type) { - const val = this.get(key); - if (val == null) return null; - - const t = type.toLowerCase(); - - if (t.includes('number')) return Number(val); - if (t.includes('bool')) return val === 'true'; - return val; // string or any other fallback - } - - - /** - * @returns {Record} - * Converts Headers to plain object - */ - toObject() { - return Object.fromEntries(this.entries()); - } - - - /** - * Nest.js decorator for controller headers. Instead of using @Headers() value: any, now you can use for example: - * @example - * @Get() - * getHello(@FetchUserHeader.Nest() headers: FetchUserHeader): string { - * return JSON.stringify(headers.getContentType()); - * } - */ - static Nest = createParamDecorator( - (_data: unknown, ctx: ExecutionContext) => { - // eslint-disable-next-line @typescript-eslint/no-unsafe-assignment - const request = ctx.switchToHttp().getRequest(); - // eslint-disable-next-line @typescript-eslint/no-unsafe-assignment, @typescript-eslint/no-unsafe-argument, @typescript-eslint/no-unsafe-member-access - return new CheckPassportMethodsHeaders(Object.entries(request.headers)); - }, - ); - - -} - - - - -/** - * CheckPassportMethodsQueryParams class - * Auto-generated from Module3Action - */ -export class CheckPassportMethodsQueryParams extends URLSearchParamsX { - - - // the getters generated by us would be casting types before returning. - // you still can use .get function to get the string value. - #getTyped(key, type) { - const val = this.get(key); - if (val == null) return null; - - const t = type.toLowerCase(); - - if (t.includes('number')) return Number(val); - if (t.includes('bool')) return val === 'true'; - return val; // string or any other fallback - } - - - - /** - * Nest.js decorator for controller query. Instead of using @Query() value: any, now you can use for example: - * @example - * @Get() - * getHello(@FetchUserQuery.Nest() query: FetchUserQuery): string { - * return JSON.stringify(query.getMyfield()); - * } - */ - static Nest = createParamDecorator( - (_data: unknown, ctx: ExecutionContext) => { - // eslint-disable-next-line @typescript-eslint/no-unsafe-assignment - const request = ctx.switchToHttp().getRequest(); - // eslint-disable-next-line @typescript-eslint/no-unsafe-assignment, @typescript-eslint/no-unsafe-argument, @typescript-eslint/no-unsafe-member-access - return new CheckPassportMethodsQueryParams(request.query); - }, - ); - - -} - - - diff --git a/cmd/module3/ClassicPassportOtpAction.js b/cmd/module3/ClassicPassportOtpAction.js deleted file mode 100644 index 667a468dc..000000000 --- a/cmd/module3/ClassicPassportOtpAction.js +++ /dev/null @@ -1,249 +0,0 @@ -/** -* Action to communicate with the action classicPassportOtp -*/ - - - - - - - - -/** - * @decription The base class definition for classicPassportOtpReq - **/ - -export class ClassicPassportOtpReq { - - /** - * @type {string} - * @description - **/ - value; - /** - * @returns {string} - * @description - **/ -getValue () { return this[`value`] } - /** - * @param {string} - * @description - **/ -setValue (value) { this[`value`] = value; return this; } - - /** - * @type {string} - * @description - **/ - otp; - /** - * @returns {string} - * @description - **/ -getOtp () { return this[`otp`] } - /** - * @param {string} - * @description - **/ -setOtp (value) { this[`otp`] = value; return this; } - - - - - /** a placeholder for WebRequesX auto patching the json content to the object **/ - static __jsonParsable; -} - - - - - - - - - - - - - - -/** - * @decription The base class definition for classicPassportOtpRes - **/ - -export class ClassicPassportOtpRes { - - /** - * @type {UserSessionDto} - * @description - **/ - session; - /** - * @returns {UserSessionDto} - * @description - **/ -getSession () { return this[`session`] } - /** - * @param {UserSessionDto} - * @description - **/ -setSession (value) { this[`session`] = value; return this; } - - /** - * @type {string} - * @description If time based otp is available, we add it response to make it easier for ui. - **/ - totpUrl; - /** - * @returns {string} - * @description If time based otp is available, we add it response to make it easier for ui. - **/ -getTotpUrl () { return this[`totpUrl`] } - /** - * @param {string} - * @description If time based otp is available, we add it response to make it easier for ui. - **/ -setTotpUrl (value) { this[`totpUrl`] = value; return this; } - - /** - * @type {string} - * @description The session secret will be used to call complete user registeration api. - **/ - sessionSecret; - /** - * @returns {string} - * @description The session secret will be used to call complete user registeration api. - **/ -getSessionSecret () { return this[`sessionSecret`] } - /** - * @param {string} - * @description The session secret will be used to call complete user registeration api. - **/ -setSessionSecret (value) { this[`sessionSecret`] = value; return this; } - - /** - * @type {boolean} - * @description If return true, means the OTP is correct and user needs to be created before continue the authentication processs. - **/ - continueWithCreation; - /** - * @returns {boolean} - * @description If return true, means the OTP is correct and user needs to be created before continue the authentication processs. - **/ -getContinueWithCreation () { return this[`continueWithCreation`] } - /** - * @param {boolean} - * @description If return true, means the OTP is correct and user needs to be created before continue the authentication processs. - **/ -setContinueWithCreation (value) { this[`continueWithCreation`] = value; return this; } - - - - - /** a placeholder for WebRequesX auto patching the json content to the object **/ - static __jsonParsable; -} - - - - - - - - -/** - * ClassicPassportOtpHeaders class - * Auto-generated from Module3Action - */ -export class ClassicPassportOtpHeaders extends Headers { - - // the getters generated by us would be casting types before returning. - // you still can use .get function to get the string value. - #getTyped(key, type) { - const val = this.get(key); - if (val == null) return null; - - const t = type.toLowerCase(); - - if (t.includes('number')) return Number(val); - if (t.includes('bool')) return val === 'true'; - return val; // string or any other fallback - } - - - /** - * @returns {Record} - * Converts Headers to plain object - */ - toObject() { - return Object.fromEntries(this.entries()); - } - - - /** - * Nest.js decorator for controller headers. Instead of using @Headers() value: any, now you can use for example: - * @example - * @Get() - * getHello(@FetchUserHeader.Nest() headers: FetchUserHeader): string { - * return JSON.stringify(headers.getContentType()); - * } - */ - static Nest = createParamDecorator( - (_data: unknown, ctx: ExecutionContext) => { - // eslint-disable-next-line @typescript-eslint/no-unsafe-assignment - const request = ctx.switchToHttp().getRequest(); - // eslint-disable-next-line @typescript-eslint/no-unsafe-assignment, @typescript-eslint/no-unsafe-argument, @typescript-eslint/no-unsafe-member-access - return new ClassicPassportOtpHeaders(Object.entries(request.headers)); - }, - ); - - -} - - - - -/** - * ClassicPassportOtpQueryParams class - * Auto-generated from Module3Action - */ -export class ClassicPassportOtpQueryParams extends URLSearchParamsX { - - - // the getters generated by us would be casting types before returning. - // you still can use .get function to get the string value. - #getTyped(key, type) { - const val = this.get(key); - if (val == null) return null; - - const t = type.toLowerCase(); - - if (t.includes('number')) return Number(val); - if (t.includes('bool')) return val === 'true'; - return val; // string or any other fallback - } - - - - /** - * Nest.js decorator for controller query. Instead of using @Query() value: any, now you can use for example: - * @example - * @Get() - * getHello(@FetchUserQuery.Nest() query: FetchUserQuery): string { - * return JSON.stringify(query.getMyfield()); - * } - */ - static Nest = createParamDecorator( - (_data: unknown, ctx: ExecutionContext) => { - // eslint-disable-next-line @typescript-eslint/no-unsafe-assignment - const request = ctx.switchToHttp().getRequest(); - // eslint-disable-next-line @typescript-eslint/no-unsafe-assignment, @typescript-eslint/no-unsafe-argument, @typescript-eslint/no-unsafe-member-access - return new ClassicPassportOtpQueryParams(request.query); - }, - ); - - -} - - - diff --git a/cmd/module3/ClassicPassportRequestOtpAction.js b/cmd/module3/ClassicPassportRequestOtpAction.js deleted file mode 100644 index e2ed79590..000000000 --- a/cmd/module3/ClassicPassportRequestOtpAction.js +++ /dev/null @@ -1,233 +0,0 @@ -/** -* Action to communicate with the action classicPassportRequestOtp -*/ - - - - - - - - -/** - * @decription The base class definition for classicPassportRequestOtpReq - **/ - -export class ClassicPassportRequestOtpReq { - - /** - * @type {string} - * @description Passport value (email, phone number) which would be recieving the otp code. - **/ - value; - /** - * @returns {string} - * @description Passport value (email, phone number) which would be recieving the otp code. - **/ -getValue () { return this[`value`] } - /** - * @param {string} - * @description Passport value (email, phone number) which would be recieving the otp code. - **/ -setValue (value) { this[`value`] = value; return this; } - - - - - /** a placeholder for WebRequesX auto patching the json content to the object **/ - static __jsonParsable; -} - - - - - - - - - - - - - - -/** - * @decription The base class definition for classicPassportRequestOtpRes - **/ - -export class ClassicPassportRequestOtpRes { - - /** - * @type {number} - * @description - **/ - suspendUntil; - /** - * @returns {number} - * @description - **/ -getSuspendUntil () { return this[`suspendUntil`] } - /** - * @param {number} - * @description - **/ -setSuspendUntil (value) { this[`suspendUntil`] = value; return this; } - - /** - * @type {number} - * @description - **/ - validUntil; - /** - * @returns {number} - * @description - **/ -getValidUntil () { return this[`validUntil`] } - /** - * @param {number} - * @description - **/ -setValidUntil (value) { this[`validUntil`] = value; return this; } - - /** - * @type {number} - * @description - **/ - blockedUntil; - /** - * @returns {number} - * @description - **/ -getBlockedUntil () { return this[`blockedUntil`] } - /** - * @param {number} - * @description - **/ -setBlockedUntil (value) { this[`blockedUntil`] = value; return this; } - - /** - * @type {number} - * @description The amount of time left to unblock for next request - **/ - secondsToUnblock; - /** - * @returns {number} - * @description The amount of time left to unblock for next request - **/ -getSecondsToUnblock () { return this[`secondsToUnblock`] } - /** - * @param {number} - * @description The amount of time left to unblock for next request - **/ -setSecondsToUnblock (value) { this[`secondsToUnblock`] = value; return this; } - - - - - /** a placeholder for WebRequesX auto patching the json content to the object **/ - static __jsonParsable; -} - - - - - - - - -/** - * ClassicPassportRequestOtpHeaders class - * Auto-generated from Module3Action - */ -export class ClassicPassportRequestOtpHeaders extends Headers { - - // the getters generated by us would be casting types before returning. - // you still can use .get function to get the string value. - #getTyped(key, type) { - const val = this.get(key); - if (val == null) return null; - - const t = type.toLowerCase(); - - if (t.includes('number')) return Number(val); - if (t.includes('bool')) return val === 'true'; - return val; // string or any other fallback - } - - - /** - * @returns {Record} - * Converts Headers to plain object - */ - toObject() { - return Object.fromEntries(this.entries()); - } - - - /** - * Nest.js decorator for controller headers. Instead of using @Headers() value: any, now you can use for example: - * @example - * @Get() - * getHello(@FetchUserHeader.Nest() headers: FetchUserHeader): string { - * return JSON.stringify(headers.getContentType()); - * } - */ - static Nest = createParamDecorator( - (_data: unknown, ctx: ExecutionContext) => { - // eslint-disable-next-line @typescript-eslint/no-unsafe-assignment - const request = ctx.switchToHttp().getRequest(); - // eslint-disable-next-line @typescript-eslint/no-unsafe-assignment, @typescript-eslint/no-unsafe-argument, @typescript-eslint/no-unsafe-member-access - return new ClassicPassportRequestOtpHeaders(Object.entries(request.headers)); - }, - ); - - -} - - - - -/** - * ClassicPassportRequestOtpQueryParams class - * Auto-generated from Module3Action - */ -export class ClassicPassportRequestOtpQueryParams extends URLSearchParamsX { - - - // the getters generated by us would be casting types before returning. - // you still can use .get function to get the string value. - #getTyped(key, type) { - const val = this.get(key); - if (val == null) return null; - - const t = type.toLowerCase(); - - if (t.includes('number')) return Number(val); - if (t.includes('bool')) return val === 'true'; - return val; // string or any other fallback - } - - - - /** - * Nest.js decorator for controller query. Instead of using @Query() value: any, now you can use for example: - * @example - * @Get() - * getHello(@FetchUserQuery.Nest() query: FetchUserQuery): string { - * return JSON.stringify(query.getMyfield()); - * } - */ - static Nest = createParamDecorator( - (_data: unknown, ctx: ExecutionContext) => { - // eslint-disable-next-line @typescript-eslint/no-unsafe-assignment - const request = ctx.switchToHttp().getRequest(); - // eslint-disable-next-line @typescript-eslint/no-unsafe-assignment, @typescript-eslint/no-unsafe-argument, @typescript-eslint/no-unsafe-member-access - return new ClassicPassportRequestOtpQueryParams(request.query); - }, - ); - - -} - - - diff --git a/cmd/module3/ClassicSigninAction.js b/cmd/module3/ClassicSigninAction.js deleted file mode 100644 index 672d63e42..000000000 --- a/cmd/module3/ClassicSigninAction.js +++ /dev/null @@ -1,281 +0,0 @@ -/** -* Action to communicate with the action classicSignin -*/ - - - - - - - - -/** - * @decription The base class definition for classicSigninReq - **/ - -export class ClassicSigninReq { - - /** - * @type {string} - * @description - **/ - value; - /** - * @returns {string} - * @description - **/ -getValue () { return this[`value`] } - /** - * @param {string} - * @description - **/ -setValue (value) { this[`value`] = value; return this; } - - /** - * @type {string} - * @description - **/ - password; - /** - * @returns {string} - * @description - **/ -getPassword () { return this[`password`] } - /** - * @param {string} - * @description - **/ -setPassword (value) { this[`password`] = value; return this; } - - /** - * @type {string} - * @description Accepts login with totp code. If enabled, first login would return a success response with next[enter-totp] value and ui can understand that user needs to be navigated into the screen other screen. - **/ - totpCode; - /** - * @returns {string} - * @description Accepts login with totp code. If enabled, first login would return a success response with next[enter-totp] value and ui can understand that user needs to be navigated into the screen other screen. - **/ -getTotpCode () { return this[`totpCode`] } - /** - * @param {string} - * @description Accepts login with totp code. If enabled, first login would return a success response with next[enter-totp] value and ui can understand that user needs to be navigated into the screen other screen. - **/ -setTotpCode (value) { this[`totpCode`] = value; return this; } - - /** - * @type {string} - * @description Session secret when logging in to the application requires more steps to complete. - **/ - sessionSecret; - /** - * @returns {string} - * @description Session secret when logging in to the application requires more steps to complete. - **/ -getSessionSecret () { return this[`sessionSecret`] } - /** - * @param {string} - * @description Session secret when logging in to the application requires more steps to complete. - **/ -setSessionSecret (value) { this[`sessionSecret`] = value; return this; } - - - - - /** a placeholder for WebRequesX auto patching the json content to the object **/ - static __jsonParsable; -} - - - - - - - - - - - - - - -/** - * @decription The base class definition for classicSigninRes - **/ - -export class ClassicSigninRes { - - /** - * @type {UserSessionDto} - * @description - **/ - session; - /** - * @returns {UserSessionDto} - * @description - **/ -getSession () { return this[`session`] } - /** - * @param {UserSessionDto} - * @description - **/ -setSession (value) { this[`session`] = value; return this; } - - /** - * @type {string[]} - * @description The next possible action which is suggested. - **/ - next; - /** - * @returns {string[]} - * @description The next possible action which is suggested. - **/ -getNext () { return this[`next`] } - /** - * @param {string[]} - * @description The next possible action which is suggested. - **/ -setNext (value) { this[`next`] = value; return this; } - - /** - * @type {string} - * @description In case the account doesn't have totp, but enforced by installation, this value will contain the link - **/ - totpUrl; - /** - * @returns {string} - * @description In case the account doesn't have totp, but enforced by installation, this value will contain the link - **/ -getTotpUrl () { return this[`totpUrl`] } - /** - * @param {string} - * @description In case the account doesn't have totp, but enforced by installation, this value will contain the link - **/ -setTotpUrl (value) { this[`totpUrl`] = value; return this; } - - /** - * @type {string} - * @description Returns a secret session if the authentication requires more steps. - **/ - sessionSecret; - /** - * @returns {string} - * @description Returns a secret session if the authentication requires more steps. - **/ -getSessionSecret () { return this[`sessionSecret`] } - /** - * @param {string} - * @description Returns a secret session if the authentication requires more steps. - **/ -setSessionSecret (value) { this[`sessionSecret`] = value; return this; } - - - - - /** a placeholder for WebRequesX auto patching the json content to the object **/ - static __jsonParsable; -} - - - - - - - - -/** - * ClassicSigninHeaders class - * Auto-generated from Module3Action - */ -export class ClassicSigninHeaders extends Headers { - - // the getters generated by us would be casting types before returning. - // you still can use .get function to get the string value. - #getTyped(key, type) { - const val = this.get(key); - if (val == null) return null; - - const t = type.toLowerCase(); - - if (t.includes('number')) return Number(val); - if (t.includes('bool')) return val === 'true'; - return val; // string or any other fallback - } - - - /** - * @returns {Record} - * Converts Headers to plain object - */ - toObject() { - return Object.fromEntries(this.entries()); - } - - - /** - * Nest.js decorator for controller headers. Instead of using @Headers() value: any, now you can use for example: - * @example - * @Get() - * getHello(@FetchUserHeader.Nest() headers: FetchUserHeader): string { - * return JSON.stringify(headers.getContentType()); - * } - */ - static Nest = createParamDecorator( - (_data: unknown, ctx: ExecutionContext) => { - // eslint-disable-next-line @typescript-eslint/no-unsafe-assignment - const request = ctx.switchToHttp().getRequest(); - // eslint-disable-next-line @typescript-eslint/no-unsafe-assignment, @typescript-eslint/no-unsafe-argument, @typescript-eslint/no-unsafe-member-access - return new ClassicSigninHeaders(Object.entries(request.headers)); - }, - ); - - -} - - - - -/** - * ClassicSigninQueryParams class - * Auto-generated from Module3Action - */ -export class ClassicSigninQueryParams extends URLSearchParamsX { - - - // the getters generated by us would be casting types before returning. - // you still can use .get function to get the string value. - #getTyped(key, type) { - const val = this.get(key); - if (val == null) return null; - - const t = type.toLowerCase(); - - if (t.includes('number')) return Number(val); - if (t.includes('bool')) return val === 'true'; - return val; // string or any other fallback - } - - - - /** - * Nest.js decorator for controller query. Instead of using @Query() value: any, now you can use for example: - * @example - * @Get() - * getHello(@FetchUserQuery.Nest() query: FetchUserQuery): string { - * return JSON.stringify(query.getMyfield()); - * } - */ - static Nest = createParamDecorator( - (_data: unknown, ctx: ExecutionContext) => { - // eslint-disable-next-line @typescript-eslint/no-unsafe-assignment - const request = ctx.switchToHttp().getRequest(); - // eslint-disable-next-line @typescript-eslint/no-unsafe-assignment, @typescript-eslint/no-unsafe-argument, @typescript-eslint/no-unsafe-member-access - return new ClassicSigninQueryParams(request.query); - }, - ); - - -} - - - diff --git a/cmd/module3/ClassicSignupAction.js b/cmd/module3/ClassicSignupAction.js deleted file mode 100644 index a5e882b00..000000000 --- a/cmd/module3/ClassicSignupAction.js +++ /dev/null @@ -1,361 +0,0 @@ -/** -* Action to communicate with the action classicSignup -*/ - - - - - - - - -/** - * @decription The base class definition for classicSignupReq - **/ - -export class ClassicSignupReq { - - /** - * @type {string} - * @description - **/ - value; - /** - * @returns {string} - * @description - **/ -getValue () { return this[`value`] } - /** - * @param {string} - * @description - **/ -setValue (value) { this[`value`] = value; return this; } - - /** - * @type {string} - * @description Required when the account creation requires recaptcha, or otp approval first. If such requirements are there, you first need to follow the otp apis, get the session secret and pass it here to complete the setup. - **/ - sessionSecret; - /** - * @returns {string} - * @description Required when the account creation requires recaptcha, or otp approval first. If such requirements are there, you first need to follow the otp apis, get the session secret and pass it here to complete the setup. - **/ -getSessionSecret () { return this[`sessionSecret`] } - /** - * @param {string} - * @description Required when the account creation requires recaptcha, or otp approval first. If such requirements are there, you first need to follow the otp apis, get the session secret and pass it here to complete the setup. - **/ -setSessionSecret (value) { this[`sessionSecret`] = value; return this; } - - /** - * @type {"phonenumber" | "email"} - * @description - **/ - type; - /** - * @returns {"phonenumber" | "email"} - * @description - **/ -getType () { return this[`type`] } - /** - * @param {"phonenumber" | "email"} - * @description - **/ -setType (value) { this[`type`] = value; return this; } - - /** - * @type {string} - * @description - **/ - password; - /** - * @returns {string} - * @description - **/ -getPassword () { return this[`password`] } - /** - * @param {string} - * @description - **/ -setPassword (value) { this[`password`] = value; return this; } - - /** - * @type {string} - * @description - **/ - firstName; - /** - * @returns {string} - * @description - **/ -getFirstName () { return this[`firstName`] } - /** - * @param {string} - * @description - **/ -setFirstName (value) { this[`firstName`] = value; return this; } - - /** - * @type {string} - * @description - **/ - lastName; - /** - * @returns {string} - * @description - **/ -getLastName () { return this[`lastName`] } - /** - * @param {string} - * @description - **/ -setLastName (value) { this[`lastName`] = value; return this; } - - /** - * @type {string} - * @description - **/ - inviteId; - /** - * @returns {string} - * @description - **/ -getInviteId () { return this[`inviteId`] } - /** - * @param {string} - * @description - **/ -setInviteId (value) { this[`inviteId`] = value; return this; } - - /** - * @type {string} - * @description - **/ - publicJoinKeyId; - /** - * @returns {string} - * @description - **/ -getPublicJoinKeyId () { return this[`publicJoinKeyId`] } - /** - * @param {string} - * @description - **/ -setPublicJoinKeyId (value) { this[`publicJoinKeyId`] = value; return this; } - - /** - * @type {string} - * @description - **/ - workspaceTypeId; - /** - * @returns {string} - * @description - **/ -getWorkspaceTypeId () { return this[`workspaceTypeId`] } - /** - * @param {string} - * @description - **/ -setWorkspaceTypeId (value) { this[`workspaceTypeId`] = value; return this; } - - - - - /** a placeholder for WebRequesX auto patching the json content to the object **/ - static __jsonParsable; -} - - - - - - - - - - - - - - -/** - * @decription The base class definition for classicSignupRes - **/ - -export class ClassicSignupRes { - - /** - * @type {UserSessionDto} - * @description Returns the user session in case that signup is completely successful. - **/ - session; - /** - * @returns {UserSessionDto} - * @description Returns the user session in case that signup is completely successful. - **/ -getSession () { return this[`session`] } - /** - * @param {UserSessionDto} - * @description Returns the user session in case that signup is completely successful. - **/ -setSession (value) { this[`session`] = value; return this; } - - /** - * @type {string} - * @description If time based otp is available, we add it response to make it easier for ui. - **/ - totpUrl; - /** - * @returns {string} - * @description If time based otp is available, we add it response to make it easier for ui. - **/ -getTotpUrl () { return this[`totpUrl`] } - /** - * @param {string} - * @description If time based otp is available, we add it response to make it easier for ui. - **/ -setTotpUrl (value) { this[`totpUrl`] = value; return this; } - - /** - * @type {boolean} - * @description Returns true and session will be empty if, the totp is required by the installation. In such scenario, you need to forward user to setup totp screen. - **/ - continueToTotp; - /** - * @returns {boolean} - * @description Returns true and session will be empty if, the totp is required by the installation. In such scenario, you need to forward user to setup totp screen. - **/ -getContinueToTotp () { return this[`continueToTotp`] } - /** - * @param {boolean} - * @description Returns true and session will be empty if, the totp is required by the installation. In such scenario, you need to forward user to setup totp screen. - **/ -setContinueToTotp (value) { this[`continueToTotp`] = value; return this; } - - /** - * @type {boolean} - * @description Determines if user must complete totp in order to continue based on workspace or installation - **/ - forcedTotp; - /** - * @returns {boolean} - * @description Determines if user must complete totp in order to continue based on workspace or installation - **/ -getForcedTotp () { return this[`forcedTotp`] } - /** - * @param {boolean} - * @description Determines if user must complete totp in order to continue based on workspace or installation - **/ -setForcedTotp (value) { this[`forcedTotp`] = value; return this; } - - - - - /** a placeholder for WebRequesX auto patching the json content to the object **/ - static __jsonParsable; -} - - - - - - - - -/** - * ClassicSignupHeaders class - * Auto-generated from Module3Action - */ -export class ClassicSignupHeaders extends Headers { - - // the getters generated by us would be casting types before returning. - // you still can use .get function to get the string value. - #getTyped(key, type) { - const val = this.get(key); - if (val == null) return null; - - const t = type.toLowerCase(); - - if (t.includes('number')) return Number(val); - if (t.includes('bool')) return val === 'true'; - return val; // string or any other fallback - } - - - /** - * @returns {Record} - * Converts Headers to plain object - */ - toObject() { - return Object.fromEntries(this.entries()); - } - - - /** - * Nest.js decorator for controller headers. Instead of using @Headers() value: any, now you can use for example: - * @example - * @Get() - * getHello(@FetchUserHeader.Nest() headers: FetchUserHeader): string { - * return JSON.stringify(headers.getContentType()); - * } - */ - static Nest = createParamDecorator( - (_data: unknown, ctx: ExecutionContext) => { - // eslint-disable-next-line @typescript-eslint/no-unsafe-assignment - const request = ctx.switchToHttp().getRequest(); - // eslint-disable-next-line @typescript-eslint/no-unsafe-assignment, @typescript-eslint/no-unsafe-argument, @typescript-eslint/no-unsafe-member-access - return new ClassicSignupHeaders(Object.entries(request.headers)); - }, - ); - - -} - - - - -/** - * ClassicSignupQueryParams class - * Auto-generated from Module3Action - */ -export class ClassicSignupQueryParams extends URLSearchParamsX { - - - // the getters generated by us would be casting types before returning. - // you still can use .get function to get the string value. - #getTyped(key, type) { - const val = this.get(key); - if (val == null) return null; - - const t = type.toLowerCase(); - - if (t.includes('number')) return Number(val); - if (t.includes('bool')) return val === 'true'; - return val; // string or any other fallback - } - - - - /** - * Nest.js decorator for controller query. Instead of using @Query() value: any, now you can use for example: - * @example - * @Get() - * getHello(@FetchUserQuery.Nest() query: FetchUserQuery): string { - * return JSON.stringify(query.getMyfield()); - * } - */ - static Nest = createParamDecorator( - (_data: unknown, ctx: ExecutionContext) => { - // eslint-disable-next-line @typescript-eslint/no-unsafe-assignment - const request = ctx.switchToHttp().getRequest(); - // eslint-disable-next-line @typescript-eslint/no-unsafe-assignment, @typescript-eslint/no-unsafe-argument, @typescript-eslint/no-unsafe-member-access - return new ClassicSignupQueryParams(request.query); - }, - ); - - -} - - - diff --git a/cmd/module3/ConfirmClassicPassportTotpAction.js b/cmd/module3/ConfirmClassicPassportTotpAction.js deleted file mode 100644 index 4462807c1..000000000 --- a/cmd/module3/ConfirmClassicPassportTotpAction.js +++ /dev/null @@ -1,217 +0,0 @@ -/** -* Action to communicate with the action confirmClassicPassportTotp -*/ - - - - - - - - -/** - * @decription The base class definition for confirmClassicPassportTotpReq - **/ - -export class ConfirmClassicPassportTotpReq { - - /** - * @type {string} - * @description Passport value, email or phone number which is already successfully registered. - **/ - value; - /** - * @returns {string} - * @description Passport value, email or phone number which is already successfully registered. - **/ -getValue () { return this[`value`] } - /** - * @param {string} - * @description Passport value, email or phone number which is already successfully registered. - **/ -setValue (value) { this[`value`] = value; return this; } - - /** - * @type {string} - * @description Password related to the passport. Totp is only available for passports with a password. Basically totp is protecting passport, not otp over email or sms. - **/ - password; - /** - * @returns {string} - * @description Password related to the passport. Totp is only available for passports with a password. Basically totp is protecting passport, not otp over email or sms. - **/ -getPassword () { return this[`password`] } - /** - * @param {string} - * @description Password related to the passport. Totp is only available for passports with a password. Basically totp is protecting passport, not otp over email or sms. - **/ -setPassword (value) { this[`password`] = value; return this; } - - /** - * @type {string} - * @description The totp code generated by authenticator such as google or microsft apps. - **/ - totpCode; - /** - * @returns {string} - * @description The totp code generated by authenticator such as google or microsft apps. - **/ -getTotpCode () { return this[`totpCode`] } - /** - * @param {string} - * @description The totp code generated by authenticator such as google or microsft apps. - **/ -setTotpCode (value) { this[`totpCode`] = value; return this; } - - - - - /** a placeholder for WebRequesX auto patching the json content to the object **/ - static __jsonParsable; -} - - - - - - - - - - - - - - -/** - * @decription The base class definition for confirmClassicPassportTotpRes - **/ - -export class ConfirmClassicPassportTotpRes { - - /** - * @type {UserSessionDto} - * @description - **/ - session; - /** - * @returns {UserSessionDto} - * @description - **/ -getSession () { return this[`session`] } - /** - * @param {UserSessionDto} - * @description - **/ -setSession (value) { this[`session`] = value; return this; } - - - - - /** a placeholder for WebRequesX auto patching the json content to the object **/ - static __jsonParsable; -} - - - - - - - - -/** - * ConfirmClassicPassportTotpHeaders class - * Auto-generated from Module3Action - */ -export class ConfirmClassicPassportTotpHeaders extends Headers { - - // the getters generated by us would be casting types before returning. - // you still can use .get function to get the string value. - #getTyped(key, type) { - const val = this.get(key); - if (val == null) return null; - - const t = type.toLowerCase(); - - if (t.includes('number')) return Number(val); - if (t.includes('bool')) return val === 'true'; - return val; // string or any other fallback - } - - - /** - * @returns {Record} - * Converts Headers to plain object - */ - toObject() { - return Object.fromEntries(this.entries()); - } - - - /** - * Nest.js decorator for controller headers. Instead of using @Headers() value: any, now you can use for example: - * @example - * @Get() - * getHello(@FetchUserHeader.Nest() headers: FetchUserHeader): string { - * return JSON.stringify(headers.getContentType()); - * } - */ - static Nest = createParamDecorator( - (_data: unknown, ctx: ExecutionContext) => { - // eslint-disable-next-line @typescript-eslint/no-unsafe-assignment - const request = ctx.switchToHttp().getRequest(); - // eslint-disable-next-line @typescript-eslint/no-unsafe-assignment, @typescript-eslint/no-unsafe-argument, @typescript-eslint/no-unsafe-member-access - return new ConfirmClassicPassportTotpHeaders(Object.entries(request.headers)); - }, - ); - - -} - - - - -/** - * ConfirmClassicPassportTotpQueryParams class - * Auto-generated from Module3Action - */ -export class ConfirmClassicPassportTotpQueryParams extends URLSearchParamsX { - - - // the getters generated by us would be casting types before returning. - // you still can use .get function to get the string value. - #getTyped(key, type) { - const val = this.get(key); - if (val == null) return null; - - const t = type.toLowerCase(); - - if (t.includes('number')) return Number(val); - if (t.includes('bool')) return val === 'true'; - return val; // string or any other fallback - } - - - - /** - * Nest.js decorator for controller query. Instead of using @Query() value: any, now you can use for example: - * @example - * @Get() - * getHello(@FetchUserQuery.Nest() query: FetchUserQuery): string { - * return JSON.stringify(query.getMyfield()); - * } - */ - static Nest = createParamDecorator( - (_data: unknown, ctx: ExecutionContext) => { - // eslint-disable-next-line @typescript-eslint/no-unsafe-assignment - const request = ctx.switchToHttp().getRequest(); - // eslint-disable-next-line @typescript-eslint/no-unsafe-assignment, @typescript-eslint/no-unsafe-argument, @typescript-eslint/no-unsafe-member-access - return new ConfirmClassicPassportTotpQueryParams(request.query); - }, - ); - - -} - - - diff --git a/cmd/module3/CreateWorkspaceAction.js b/cmd/module3/CreateWorkspaceAction.js deleted file mode 100644 index f77ca5486..000000000 --- a/cmd/module3/CreateWorkspaceAction.js +++ /dev/null @@ -1,177 +0,0 @@ -/** -* Action to communicate with the action createWorkspace -*/ - - - - - - - - -/** - * @decription The base class definition for createWorkspaceReq - **/ - -export class CreateWorkspaceReq { - - /** - * @type {string} - * @description - **/ - name; - /** - * @returns {string} - * @description - **/ -getName () { return this[`name`] } - /** - * @param {string} - * @description - **/ -setName (value) { this[`name`] = value; return this; } - - /** - * @type {WorkspaceEntity} - * @description - **/ - workspace; - /** - * @returns {WorkspaceEntity} - * @description - **/ -getWorkspace () { return this[`workspace`] } - /** - * @param {WorkspaceEntity} - * @description - **/ -setWorkspace (value) { this[`workspace`] = value; return this; } - - /** - * @type {string} - * @description - **/ - workspaceId; - /** - * @returns {string} - * @description - **/ -getWorkspaceId () { return this[`workspaceId`] } - /** - * @param {string} - * @description - **/ -setWorkspaceId (value) { this[`workspaceId`] = value; return this; } - - - - - /** a placeholder for WebRequesX auto patching the json content to the object **/ - static __jsonParsable; -} - - - - - - - - - - -/** - * CreateWorkspaceHeaders class - * Auto-generated from Module3Action - */ -export class CreateWorkspaceHeaders extends Headers { - - // the getters generated by us would be casting types before returning. - // you still can use .get function to get the string value. - #getTyped(key, type) { - const val = this.get(key); - if (val == null) return null; - - const t = type.toLowerCase(); - - if (t.includes('number')) return Number(val); - if (t.includes('bool')) return val === 'true'; - return val; // string or any other fallback - } - - - /** - * @returns {Record} - * Converts Headers to plain object - */ - toObject() { - return Object.fromEntries(this.entries()); - } - - - /** - * Nest.js decorator for controller headers. Instead of using @Headers() value: any, now you can use for example: - * @example - * @Get() - * getHello(@FetchUserHeader.Nest() headers: FetchUserHeader): string { - * return JSON.stringify(headers.getContentType()); - * } - */ - static Nest = createParamDecorator( - (_data: unknown, ctx: ExecutionContext) => { - // eslint-disable-next-line @typescript-eslint/no-unsafe-assignment - const request = ctx.switchToHttp().getRequest(); - // eslint-disable-next-line @typescript-eslint/no-unsafe-assignment, @typescript-eslint/no-unsafe-argument, @typescript-eslint/no-unsafe-member-access - return new CreateWorkspaceHeaders(Object.entries(request.headers)); - }, - ); - - -} - - - - -/** - * CreateWorkspaceQueryParams class - * Auto-generated from Module3Action - */ -export class CreateWorkspaceQueryParams extends URLSearchParamsX { - - - // the getters generated by us would be casting types before returning. - // you still can use .get function to get the string value. - #getTyped(key, type) { - const val = this.get(key); - if (val == null) return null; - - const t = type.toLowerCase(); - - if (t.includes('number')) return Number(val); - if (t.includes('bool')) return val === 'true'; - return val; // string or any other fallback - } - - - - /** - * Nest.js decorator for controller query. Instead of using @Query() value: any, now you can use for example: - * @example - * @Get() - * getHello(@FetchUserQuery.Nest() query: FetchUserQuery): string { - * return JSON.stringify(query.getMyfield()); - * } - */ - static Nest = createParamDecorator( - (_data: unknown, ctx: ExecutionContext) => { - // eslint-disable-next-line @typescript-eslint/no-unsafe-assignment - const request = ctx.switchToHttp().getRequest(); - // eslint-disable-next-line @typescript-eslint/no-unsafe-assignment, @typescript-eslint/no-unsafe-argument, @typescript-eslint/no-unsafe-member-access - return new CreateWorkspaceQueryParams(request.query); - }, - ); - - -} - - - diff --git a/cmd/module3/GsmSendSmsAction.js b/cmd/module3/GsmSendSmsAction.js deleted file mode 100644 index f9a487697..000000000 --- a/cmd/module3/GsmSendSmsAction.js +++ /dev/null @@ -1,201 +0,0 @@ -/** -* Action to communicate with the action gsmSendSms -*/ - - - - - - - - -/** - * @decription The base class definition for gsmSendSmsReq - **/ - -export class GsmSendSmsReq { - - /** - * @type {string} - * @description - **/ - toNumber; - /** - * @returns {string} - * @description - **/ -getToNumber () { return this[`toNumber`] } - /** - * @param {string} - * @description - **/ -setToNumber (value) { this[`toNumber`] = value; return this; } - - /** - * @type {string} - * @description - **/ - body; - /** - * @returns {string} - * @description - **/ -getBody () { return this[`body`] } - /** - * @param {string} - * @description - **/ -setBody (value) { this[`body`] = value; return this; } - - - - - /** a placeholder for WebRequesX auto patching the json content to the object **/ - static __jsonParsable; -} - - - - - - - - - - - - - - -/** - * @decription The base class definition for gsmSendSmsRes - **/ - -export class GsmSendSmsRes { - - /** - * @type {string} - * @description - **/ - queueId; - /** - * @returns {string} - * @description - **/ -getQueueId () { return this[`queueId`] } - /** - * @param {string} - * @description - **/ -setQueueId (value) { this[`queueId`] = value; return this; } - - - - - /** a placeholder for WebRequesX auto patching the json content to the object **/ - static __jsonParsable; -} - - - - - - - - -/** - * GsmSendSmsHeaders class - * Auto-generated from Module3Action - */ -export class GsmSendSmsHeaders extends Headers { - - // the getters generated by us would be casting types before returning. - // you still can use .get function to get the string value. - #getTyped(key, type) { - const val = this.get(key); - if (val == null) return null; - - const t = type.toLowerCase(); - - if (t.includes('number')) return Number(val); - if (t.includes('bool')) return val === 'true'; - return val; // string or any other fallback - } - - - /** - * @returns {Record} - * Converts Headers to plain object - */ - toObject() { - return Object.fromEntries(this.entries()); - } - - - /** - * Nest.js decorator for controller headers. Instead of using @Headers() value: any, now you can use for example: - * @example - * @Get() - * getHello(@FetchUserHeader.Nest() headers: FetchUserHeader): string { - * return JSON.stringify(headers.getContentType()); - * } - */ - static Nest = createParamDecorator( - (_data: unknown, ctx: ExecutionContext) => { - // eslint-disable-next-line @typescript-eslint/no-unsafe-assignment - const request = ctx.switchToHttp().getRequest(); - // eslint-disable-next-line @typescript-eslint/no-unsafe-assignment, @typescript-eslint/no-unsafe-argument, @typescript-eslint/no-unsafe-member-access - return new GsmSendSmsHeaders(Object.entries(request.headers)); - }, - ); - - -} - - - - -/** - * GsmSendSmsQueryParams class - * Auto-generated from Module3Action - */ -export class GsmSendSmsQueryParams extends URLSearchParamsX { - - - // the getters generated by us would be casting types before returning. - // you still can use .get function to get the string value. - #getTyped(key, type) { - const val = this.get(key); - if (val == null) return null; - - const t = type.toLowerCase(); - - if (t.includes('number')) return Number(val); - if (t.includes('bool')) return val === 'true'; - return val; // string or any other fallback - } - - - - /** - * Nest.js decorator for controller query. Instead of using @Query() value: any, now you can use for example: - * @example - * @Get() - * getHello(@FetchUserQuery.Nest() query: FetchUserQuery): string { - * return JSON.stringify(query.getMyfield()); - * } - */ - static Nest = createParamDecorator( - (_data: unknown, ctx: ExecutionContext) => { - // eslint-disable-next-line @typescript-eslint/no-unsafe-assignment - const request = ctx.switchToHttp().getRequest(); - // eslint-disable-next-line @typescript-eslint/no-unsafe-assignment, @typescript-eslint/no-unsafe-argument, @typescript-eslint/no-unsafe-member-access - return new GsmSendSmsQueryParams(request.query); - }, - ); - - -} - - - diff --git a/cmd/module3/GsmSendSmsWithProviderAction.js b/cmd/module3/GsmSendSmsWithProviderAction.js deleted file mode 100644 index bde8dafe4..000000000 --- a/cmd/module3/GsmSendSmsWithProviderAction.js +++ /dev/null @@ -1,217 +0,0 @@ -/** -* Action to communicate with the action gsmSendSmsWithProvider -*/ - - - - - - - - -/** - * @decription The base class definition for gsmSendSmsWithProviderReq - **/ - -export class GsmSendSmsWithProviderReq { - - /** - * @type {GsmProviderEntity} - * @description - **/ - gsmProvider; - /** - * @returns {GsmProviderEntity} - * @description - **/ -getGsmProvider () { return this[`gsmProvider`] } - /** - * @param {GsmProviderEntity} - * @description - **/ -setGsmProvider (value) { this[`gsmProvider`] = value; return this; } - - /** - * @type {string} - * @description - **/ - toNumber; - /** - * @returns {string} - * @description - **/ -getToNumber () { return this[`toNumber`] } - /** - * @param {string} - * @description - **/ -setToNumber (value) { this[`toNumber`] = value; return this; } - - /** - * @type {string} - * @description - **/ - body; - /** - * @returns {string} - * @description - **/ -getBody () { return this[`body`] } - /** - * @param {string} - * @description - **/ -setBody (value) { this[`body`] = value; return this; } - - - - - /** a placeholder for WebRequesX auto patching the json content to the object **/ - static __jsonParsable; -} - - - - - - - - - - - - - - -/** - * @decription The base class definition for gsmSendSmsWithProviderRes - **/ - -export class GsmSendSmsWithProviderRes { - - /** - * @type {string} - * @description - **/ - queueId; - /** - * @returns {string} - * @description - **/ -getQueueId () { return this[`queueId`] } - /** - * @param {string} - * @description - **/ -setQueueId (value) { this[`queueId`] = value; return this; } - - - - - /** a placeholder for WebRequesX auto patching the json content to the object **/ - static __jsonParsable; -} - - - - - - - - -/** - * GsmSendSmsWithProviderHeaders class - * Auto-generated from Module3Action - */ -export class GsmSendSmsWithProviderHeaders extends Headers { - - // the getters generated by us would be casting types before returning. - // you still can use .get function to get the string value. - #getTyped(key, type) { - const val = this.get(key); - if (val == null) return null; - - const t = type.toLowerCase(); - - if (t.includes('number')) return Number(val); - if (t.includes('bool')) return val === 'true'; - return val; // string or any other fallback - } - - - /** - * @returns {Record} - * Converts Headers to plain object - */ - toObject() { - return Object.fromEntries(this.entries()); - } - - - /** - * Nest.js decorator for controller headers. Instead of using @Headers() value: any, now you can use for example: - * @example - * @Get() - * getHello(@FetchUserHeader.Nest() headers: FetchUserHeader): string { - * return JSON.stringify(headers.getContentType()); - * } - */ - static Nest = createParamDecorator( - (_data: unknown, ctx: ExecutionContext) => { - // eslint-disable-next-line @typescript-eslint/no-unsafe-assignment - const request = ctx.switchToHttp().getRequest(); - // eslint-disable-next-line @typescript-eslint/no-unsafe-assignment, @typescript-eslint/no-unsafe-argument, @typescript-eslint/no-unsafe-member-access - return new GsmSendSmsWithProviderHeaders(Object.entries(request.headers)); - }, - ); - - -} - - - - -/** - * GsmSendSmsWithProviderQueryParams class - * Auto-generated from Module3Action - */ -export class GsmSendSmsWithProviderQueryParams extends URLSearchParamsX { - - - // the getters generated by us would be casting types before returning. - // you still can use .get function to get the string value. - #getTyped(key, type) { - const val = this.get(key); - if (val == null) return null; - - const t = type.toLowerCase(); - - if (t.includes('number')) return Number(val); - if (t.includes('bool')) return val === 'true'; - return val; // string or any other fallback - } - - - - /** - * Nest.js decorator for controller query. Instead of using @Query() value: any, now you can use for example: - * @example - * @Get() - * getHello(@FetchUserQuery.Nest() query: FetchUserQuery): string { - * return JSON.stringify(query.getMyfield()); - * } - */ - static Nest = createParamDecorator( - (_data: unknown, ctx: ExecutionContext) => { - // eslint-disable-next-line @typescript-eslint/no-unsafe-assignment - const request = ctx.switchToHttp().getRequest(); - // eslint-disable-next-line @typescript-eslint/no-unsafe-assignment, @typescript-eslint/no-unsafe-argument, @typescript-eslint/no-unsafe-member-access - return new GsmSendSmsWithProviderQueryParams(request.query); - }, - ); - - -} - - - diff --git a/cmd/module3/ImportUserAction.js b/cmd/module3/ImportUserAction.js deleted file mode 100644 index b866ae885..000000000 --- a/cmd/module3/ImportUserAction.js +++ /dev/null @@ -1,145 +0,0 @@ -/** -* Action to communicate with the action importUser -*/ - - - - - - - - -/** - * @decription The base class definition for importUserReq - **/ - -export class ImportUserReq { - - /** - * @type {string} - * @description - **/ - path; - /** - * @returns {string} - * @description - **/ -getPath () { return this[`path`] } - /** - * @param {string} - * @description - **/ -setPath (value) { this[`path`] = value; return this; } - - - - - /** a placeholder for WebRequesX auto patching the json content to the object **/ - static __jsonParsable; -} - - - - - - - - - - -/** - * ImportUserHeaders class - * Auto-generated from Module3Action - */ -export class ImportUserHeaders extends Headers { - - // the getters generated by us would be casting types before returning. - // you still can use .get function to get the string value. - #getTyped(key, type) { - const val = this.get(key); - if (val == null) return null; - - const t = type.toLowerCase(); - - if (t.includes('number')) return Number(val); - if (t.includes('bool')) return val === 'true'; - return val; // string or any other fallback - } - - - /** - * @returns {Record} - * Converts Headers to plain object - */ - toObject() { - return Object.fromEntries(this.entries()); - } - - - /** - * Nest.js decorator for controller headers. Instead of using @Headers() value: any, now you can use for example: - * @example - * @Get() - * getHello(@FetchUserHeader.Nest() headers: FetchUserHeader): string { - * return JSON.stringify(headers.getContentType()); - * } - */ - static Nest = createParamDecorator( - (_data: unknown, ctx: ExecutionContext) => { - // eslint-disable-next-line @typescript-eslint/no-unsafe-assignment - const request = ctx.switchToHttp().getRequest(); - // eslint-disable-next-line @typescript-eslint/no-unsafe-assignment, @typescript-eslint/no-unsafe-argument, @typescript-eslint/no-unsafe-member-access - return new ImportUserHeaders(Object.entries(request.headers)); - }, - ); - - -} - - - - -/** - * ImportUserQueryParams class - * Auto-generated from Module3Action - */ -export class ImportUserQueryParams extends URLSearchParamsX { - - - // the getters generated by us would be casting types before returning. - // you still can use .get function to get the string value. - #getTyped(key, type) { - const val = this.get(key); - if (val == null) return null; - - const t = type.toLowerCase(); - - if (t.includes('number')) return Number(val); - if (t.includes('bool')) return val === 'true'; - return val; // string or any other fallback - } - - - - /** - * Nest.js decorator for controller query. Instead of using @Query() value: any, now you can use for example: - * @example - * @Get() - * getHello(@FetchUserQuery.Nest() query: FetchUserQuery): string { - * return JSON.stringify(query.getMyfield()); - * } - */ - static Nest = createParamDecorator( - (_data: unknown, ctx: ExecutionContext) => { - // eslint-disable-next-line @typescript-eslint/no-unsafe-assignment - const request = ctx.switchToHttp().getRequest(); - // eslint-disable-next-line @typescript-eslint/no-unsafe-assignment, @typescript-eslint/no-unsafe-argument, @typescript-eslint/no-unsafe-member-access - return new ImportUserQueryParams(request.query); - }, - ); - - -} - - - diff --git a/cmd/module3/InviteToWorkspaceAction.js b/cmd/module3/InviteToWorkspaceAction.js deleted file mode 100644 index e2c5f67a9..000000000 --- a/cmd/module3/InviteToWorkspaceAction.js +++ /dev/null @@ -1,105 +0,0 @@ -/** -* Action to communicate with the action inviteToWorkspace -*/ - - - - - - -/** - * InviteToWorkspaceHeaders class - * Auto-generated from Module3Action - */ -export class InviteToWorkspaceHeaders extends Headers { - - // the getters generated by us would be casting types before returning. - // you still can use .get function to get the string value. - #getTyped(key, type) { - const val = this.get(key); - if (val == null) return null; - - const t = type.toLowerCase(); - - if (t.includes('number')) return Number(val); - if (t.includes('bool')) return val === 'true'; - return val; // string or any other fallback - } - - - /** - * @returns {Record} - * Converts Headers to plain object - */ - toObject() { - return Object.fromEntries(this.entries()); - } - - - /** - * Nest.js decorator for controller headers. Instead of using @Headers() value: any, now you can use for example: - * @example - * @Get() - * getHello(@FetchUserHeader.Nest() headers: FetchUserHeader): string { - * return JSON.stringify(headers.getContentType()); - * } - */ - static Nest = createParamDecorator( - (_data: unknown, ctx: ExecutionContext) => { - // eslint-disable-next-line @typescript-eslint/no-unsafe-assignment - const request = ctx.switchToHttp().getRequest(); - // eslint-disable-next-line @typescript-eslint/no-unsafe-assignment, @typescript-eslint/no-unsafe-argument, @typescript-eslint/no-unsafe-member-access - return new InviteToWorkspaceHeaders(Object.entries(request.headers)); - }, - ); - - -} - - - - -/** - * InviteToWorkspaceQueryParams class - * Auto-generated from Module3Action - */ -export class InviteToWorkspaceQueryParams extends URLSearchParamsX { - - - // the getters generated by us would be casting types before returning. - // you still can use .get function to get the string value. - #getTyped(key, type) { - const val = this.get(key); - if (val == null) return null; - - const t = type.toLowerCase(); - - if (t.includes('number')) return Number(val); - if (t.includes('bool')) return val === 'true'; - return val; // string or any other fallback - } - - - - /** - * Nest.js decorator for controller query. Instead of using @Query() value: any, now you can use for example: - * @example - * @Get() - * getHello(@FetchUserQuery.Nest() query: FetchUserQuery): string { - * return JSON.stringify(query.getMyfield()); - * } - */ - static Nest = createParamDecorator( - (_data: unknown, ctx: ExecutionContext) => { - // eslint-disable-next-line @typescript-eslint/no-unsafe-assignment - const request = ctx.switchToHttp().getRequest(); - // eslint-disable-next-line @typescript-eslint/no-unsafe-assignment, @typescript-eslint/no-unsafe-argument, @typescript-eslint/no-unsafe-member-access - return new InviteToWorkspaceQueryParams(request.query); - }, - ); - - -} - - - diff --git a/cmd/module3/Makefile b/cmd/module3/Makefile deleted file mode 100644 index 956ebc0f8..000000000 --- a/cmd/module3/Makefile +++ /dev/null @@ -1,5 +0,0 @@ -build: - go build -ldflags "-s -w" -o ../../module3 - -wasm: - GOOS=js GOARCH=wasm go build -ldflags "-s -w" -o ../../artifacts/module3.wasm \ No newline at end of file diff --git a/cmd/module3/OauthAuthenticateAction.js b/cmd/module3/OauthAuthenticateAction.js deleted file mode 100644 index d237d72cb..000000000 --- a/cmd/module3/OauthAuthenticateAction.js +++ /dev/null @@ -1,217 +0,0 @@ -/** -* Action to communicate with the action oauthAuthenticate -*/ - - - - - - - - -/** - * @decription The base class definition for oauthAuthenticateReq - **/ - -export class OauthAuthenticateReq { - - /** - * @type {string} - * @description The token that Auth2 provider returned to the front-end, which will be used to validate the backend - **/ - token; - /** - * @returns {string} - * @description The token that Auth2 provider returned to the front-end, which will be used to validate the backend - **/ -getToken () { return this[`token`] } - /** - * @param {string} - * @description The token that Auth2 provider returned to the front-end, which will be used to validate the backend - **/ -setToken (value) { this[`token`] = value; return this; } - - /** - * @type {string} - * @description The service name, such as 'google' which later backend will use to authorize the token and create the user. - **/ - service; - /** - * @returns {string} - * @description The service name, such as 'google' which later backend will use to authorize the token and create the user. - **/ -getService () { return this[`service`] } - /** - * @param {string} - * @description The service name, such as 'google' which later backend will use to authorize the token and create the user. - **/ -setService (value) { this[`service`] = value; return this; } - - - - - /** a placeholder for WebRequesX auto patching the json content to the object **/ - static __jsonParsable; -} - - - - - - - - - - - - - - -/** - * @decription The base class definition for oauthAuthenticateRes - **/ - -export class OauthAuthenticateRes { - - /** - * @type {UserSessionDto} - * @description - **/ - session; - /** - * @returns {UserSessionDto} - * @description - **/ -getSession () { return this[`session`] } - /** - * @param {UserSessionDto} - * @description - **/ -setSession (value) { this[`session`] = value; return this; } - - /** - * @type {string[]} - * @description The next possible action which is suggested. - **/ - next; - /** - * @returns {string[]} - * @description The next possible action which is suggested. - **/ -getNext () { return this[`next`] } - /** - * @param {string[]} - * @description The next possible action which is suggested. - **/ -setNext (value) { this[`next`] = value; return this; } - - - - - /** a placeholder for WebRequesX auto patching the json content to the object **/ - static __jsonParsable; -} - - - - - - - - -/** - * OauthAuthenticateHeaders class - * Auto-generated from Module3Action - */ -export class OauthAuthenticateHeaders extends Headers { - - // the getters generated by us would be casting types before returning. - // you still can use .get function to get the string value. - #getTyped(key, type) { - const val = this.get(key); - if (val == null) return null; - - const t = type.toLowerCase(); - - if (t.includes('number')) return Number(val); - if (t.includes('bool')) return val === 'true'; - return val; // string or any other fallback - } - - - /** - * @returns {Record} - * Converts Headers to plain object - */ - toObject() { - return Object.fromEntries(this.entries()); - } - - - /** - * Nest.js decorator for controller headers. Instead of using @Headers() value: any, now you can use for example: - * @example - * @Get() - * getHello(@FetchUserHeader.Nest() headers: FetchUserHeader): string { - * return JSON.stringify(headers.getContentType()); - * } - */ - static Nest = createParamDecorator( - (_data: unknown, ctx: ExecutionContext) => { - // eslint-disable-next-line @typescript-eslint/no-unsafe-assignment - const request = ctx.switchToHttp().getRequest(); - // eslint-disable-next-line @typescript-eslint/no-unsafe-assignment, @typescript-eslint/no-unsafe-argument, @typescript-eslint/no-unsafe-member-access - return new OauthAuthenticateHeaders(Object.entries(request.headers)); - }, - ); - - -} - - - - -/** - * OauthAuthenticateQueryParams class - * Auto-generated from Module3Action - */ -export class OauthAuthenticateQueryParams extends URLSearchParamsX { - - - // the getters generated by us would be casting types before returning. - // you still can use .get function to get the string value. - #getTyped(key, type) { - const val = this.get(key); - if (val == null) return null; - - const t = type.toLowerCase(); - - if (t.includes('number')) return Number(val); - if (t.includes('bool')) return val === 'true'; - return val; // string or any other fallback - } - - - - /** - * Nest.js decorator for controller query. Instead of using @Query() value: any, now you can use for example: - * @example - * @Get() - * getHello(@FetchUserQuery.Nest() query: FetchUserQuery): string { - * return JSON.stringify(query.getMyfield()); - * } - */ - static Nest = createParamDecorator( - (_data: unknown, ctx: ExecutionContext) => { - // eslint-disable-next-line @typescript-eslint/no-unsafe-assignment - const request = ctx.switchToHttp().getRequest(); - // eslint-disable-next-line @typescript-eslint/no-unsafe-assignment, @typescript-eslint/no-unsafe-argument, @typescript-eslint/no-unsafe-member-access - return new OauthAuthenticateQueryParams(request.query); - }, - ); - - -} - - - diff --git a/cmd/module3/OsLoginAuthenticateAction.js b/cmd/module3/OsLoginAuthenticateAction.js deleted file mode 100644 index 06ca8ac0a..000000000 --- a/cmd/module3/OsLoginAuthenticateAction.js +++ /dev/null @@ -1,105 +0,0 @@ -/** -* Action to communicate with the action osLoginAuthenticate -*/ - - - - - - -/** - * OsLoginAuthenticateHeaders class - * Auto-generated from Module3Action - */ -export class OsLoginAuthenticateHeaders extends Headers { - - // the getters generated by us would be casting types before returning. - // you still can use .get function to get the string value. - #getTyped(key, type) { - const val = this.get(key); - if (val == null) return null; - - const t = type.toLowerCase(); - - if (t.includes('number')) return Number(val); - if (t.includes('bool')) return val === 'true'; - return val; // string or any other fallback - } - - - /** - * @returns {Record} - * Converts Headers to plain object - */ - toObject() { - return Object.fromEntries(this.entries()); - } - - - /** - * Nest.js decorator for controller headers. Instead of using @Headers() value: any, now you can use for example: - * @example - * @Get() - * getHello(@FetchUserHeader.Nest() headers: FetchUserHeader): string { - * return JSON.stringify(headers.getContentType()); - * } - */ - static Nest = createParamDecorator( - (_data: unknown, ctx: ExecutionContext) => { - // eslint-disable-next-line @typescript-eslint/no-unsafe-assignment - const request = ctx.switchToHttp().getRequest(); - // eslint-disable-next-line @typescript-eslint/no-unsafe-assignment, @typescript-eslint/no-unsafe-argument, @typescript-eslint/no-unsafe-member-access - return new OsLoginAuthenticateHeaders(Object.entries(request.headers)); - }, - ); - - -} - - - - -/** - * OsLoginAuthenticateQueryParams class - * Auto-generated from Module3Action - */ -export class OsLoginAuthenticateQueryParams extends URLSearchParamsX { - - - // the getters generated by us would be casting types before returning. - // you still can use .get function to get the string value. - #getTyped(key, type) { - const val = this.get(key); - if (val == null) return null; - - const t = type.toLowerCase(); - - if (t.includes('number')) return Number(val); - if (t.includes('bool')) return val === 'true'; - return val; // string or any other fallback - } - - - - /** - * Nest.js decorator for controller query. Instead of using @Query() value: any, now you can use for example: - * @example - * @Get() - * getHello(@FetchUserQuery.Nest() query: FetchUserQuery): string { - * return JSON.stringify(query.getMyfield()); - * } - */ - static Nest = createParamDecorator( - (_data: unknown, ctx: ExecutionContext) => { - // eslint-disable-next-line @typescript-eslint/no-unsafe-assignment - const request = ctx.switchToHttp().getRequest(); - // eslint-disable-next-line @typescript-eslint/no-unsafe-assignment, @typescript-eslint/no-unsafe-argument, @typescript-eslint/no-unsafe-member-access - return new OsLoginAuthenticateQueryParams(request.query); - }, - ); - - -} - - - diff --git a/cmd/module3/QueryUserRoleWorkspacesAction.js b/cmd/module3/QueryUserRoleWorkspacesAction.js deleted file mode 100644 index 0aca0c928..000000000 --- a/cmd/module3/QueryUserRoleWorkspacesAction.js +++ /dev/null @@ -1,256 +0,0 @@ -/** -* Action to communicate with the action queryUserRoleWorkspaces -*/ - - - - - - - - - - -/** - * @decription The base class definition for queryUserRoleWorkspacesRes - **/ - -export class QueryUserRoleWorkspacesRes { - - /** - * @type {string} - * @description - **/ - name; - /** - * @returns {string} - * @description - **/ -getName () { return this[`name`] } - /** - * @param {string} - * @description - **/ -setName (value) { this[`name`] = value; return this; } - - /** - * @type {string[]} - * @description Workspace level capabilities which are available - **/ - capabilities; - /** - * @returns {string[]} - * @description Workspace level capabilities which are available - **/ -getCapabilities () { return this[`capabilities`] } - /** - * @param {string[]} - * @description Workspace level capabilities which are available - **/ -setCapabilities (value) { this[`capabilities`] = value; return this; } - - /** - * @type {string} - * @description - **/ - uniqueId; - /** - * @returns {string} - * @description - **/ -getUniqueId () { return this[`uniqueId`] } - /** - * @param {string} - * @description - **/ -setUniqueId (value) { this[`uniqueId`] = value; return this; } - - /** - * @type {QueryUserRoleWorkspacesRes.Roles} - * @description - **/ - roles; - /** - * @returns {QueryUserRoleWorkspacesRes.Roles} - * @description - **/ -getRoles () { return this[`roles`] } - /** - * @param {QueryUserRoleWorkspacesRes.Roles} - * @description - **/ -setRoles (value) { this[`roles`] = value; return this; } - - - - -/** - * @decription The base class definition for roles - **/ - -static Roles = class Roles { - - /** - * @type {string} - * @description - **/ - name; - /** - * @returns {string} - * @description - **/ -getName () { return this[`name`] } - /** - * @param {string} - * @description - **/ -setName (value) { this[`name`] = value; return this; } - - /** - * @type {string} - * @description - **/ - uniqueId; - /** - * @returns {string} - * @description - **/ -getUniqueId () { return this[`uniqueId`] } - /** - * @param {string} - * @description - **/ -setUniqueId (value) { this[`uniqueId`] = value; return this; } - - /** - * @type {string[]} - * @description Capabilities related to this role which are available - **/ - capabilities; - /** - * @returns {string[]} - * @description Capabilities related to this role which are available - **/ -getCapabilities () { return this[`capabilities`] } - /** - * @param {string[]} - * @description Capabilities related to this role which are available - **/ -setCapabilities (value) { this[`capabilities`] = value; return this; } - - - - - /** a placeholder for WebRequesX auto patching the json content to the object **/ - static __jsonParsable; -} - - - - /** a placeholder for WebRequesX auto patching the json content to the object **/ - static __jsonParsable; -} - - - - - - - - -/** - * QueryUserRoleWorkspacesHeaders class - * Auto-generated from Module3Action - */ -export class QueryUserRoleWorkspacesHeaders extends Headers { - - // the getters generated by us would be casting types before returning. - // you still can use .get function to get the string value. - #getTyped(key, type) { - const val = this.get(key); - if (val == null) return null; - - const t = type.toLowerCase(); - - if (t.includes('number')) return Number(val); - if (t.includes('bool')) return val === 'true'; - return val; // string or any other fallback - } - - - /** - * @returns {Record} - * Converts Headers to plain object - */ - toObject() { - return Object.fromEntries(this.entries()); - } - - - /** - * Nest.js decorator for controller headers. Instead of using @Headers() value: any, now you can use for example: - * @example - * @Get() - * getHello(@FetchUserHeader.Nest() headers: FetchUserHeader): string { - * return JSON.stringify(headers.getContentType()); - * } - */ - static Nest = createParamDecorator( - (_data: unknown, ctx: ExecutionContext) => { - // eslint-disable-next-line @typescript-eslint/no-unsafe-assignment - const request = ctx.switchToHttp().getRequest(); - // eslint-disable-next-line @typescript-eslint/no-unsafe-assignment, @typescript-eslint/no-unsafe-argument, @typescript-eslint/no-unsafe-member-access - return new QueryUserRoleWorkspacesHeaders(Object.entries(request.headers)); - }, - ); - - -} - - - - -/** - * QueryUserRoleWorkspacesQueryParams class - * Auto-generated from Module3Action - */ -export class QueryUserRoleWorkspacesQueryParams extends URLSearchParamsX { - - - // the getters generated by us would be casting types before returning. - // you still can use .get function to get the string value. - #getTyped(key, type) { - const val = this.get(key); - if (val == null) return null; - - const t = type.toLowerCase(); - - if (t.includes('number')) return Number(val); - if (t.includes('bool')) return val === 'true'; - return val; // string or any other fallback - } - - - - /** - * Nest.js decorator for controller query. Instead of using @Query() value: any, now you can use for example: - * @example - * @Get() - * getHello(@FetchUserQuery.Nest() query: FetchUserQuery): string { - * return JSON.stringify(query.getMyfield()); - * } - */ - static Nest = createParamDecorator( - (_data: unknown, ctx: ExecutionContext) => { - // eslint-disable-next-line @typescript-eslint/no-unsafe-assignment - const request = ctx.switchToHttp().getRequest(); - // eslint-disable-next-line @typescript-eslint/no-unsafe-assignment, @typescript-eslint/no-unsafe-argument, @typescript-eslint/no-unsafe-member-access - return new QueryUserRoleWorkspacesQueryParams(request.query); - }, - ); - - -} - - - diff --git a/cmd/module3/QueryWorkspaceTypesPubliclyAction.js b/cmd/module3/QueryWorkspaceTypesPubliclyAction.js deleted file mode 100644 index f99d81b25..000000000 --- a/cmd/module3/QueryWorkspaceTypesPubliclyAction.js +++ /dev/null @@ -1,193 +0,0 @@ -/** -* Action to communicate with the action queryWorkspaceTypesPublicly -*/ - - - - - - - - - - -/** - * @decription The base class definition for queryWorkspaceTypesPubliclyRes - **/ - -export class QueryWorkspaceTypesPubliclyRes { - - /** - * @type {string} - * @description - **/ - title; - /** - * @returns {string} - * @description - **/ -getTitle () { return this[`title`] } - /** - * @param {string} - * @description - **/ -setTitle (value) { this[`title`] = value; return this; } - - /** - * @type {string} - * @description - **/ - description; - /** - * @returns {string} - * @description - **/ -getDescription () { return this[`description`] } - /** - * @param {string} - * @description - **/ -setDescription (value) { this[`description`] = value; return this; } - - /** - * @type {string} - * @description - **/ - uniqueId; - /** - * @returns {string} - * @description - **/ -getUniqueId () { return this[`uniqueId`] } - /** - * @param {string} - * @description - **/ -setUniqueId (value) { this[`uniqueId`] = value; return this; } - - /** - * @type {string} - * @description - **/ - slug; - /** - * @returns {string} - * @description - **/ -getSlug () { return this[`slug`] } - /** - * @param {string} - * @description - **/ -setSlug (value) { this[`slug`] = value; return this; } - - - - - /** a placeholder for WebRequesX auto patching the json content to the object **/ - static __jsonParsable; -} - - - - - - - - -/** - * QueryWorkspaceTypesPubliclyHeaders class - * Auto-generated from Module3Action - */ -export class QueryWorkspaceTypesPubliclyHeaders extends Headers { - - // the getters generated by us would be casting types before returning. - // you still can use .get function to get the string value. - #getTyped(key, type) { - const val = this.get(key); - if (val == null) return null; - - const t = type.toLowerCase(); - - if (t.includes('number')) return Number(val); - if (t.includes('bool')) return val === 'true'; - return val; // string or any other fallback - } - - - /** - * @returns {Record} - * Converts Headers to plain object - */ - toObject() { - return Object.fromEntries(this.entries()); - } - - - /** - * Nest.js decorator for controller headers. Instead of using @Headers() value: any, now you can use for example: - * @example - * @Get() - * getHello(@FetchUserHeader.Nest() headers: FetchUserHeader): string { - * return JSON.stringify(headers.getContentType()); - * } - */ - static Nest = createParamDecorator( - (_data: unknown, ctx: ExecutionContext) => { - // eslint-disable-next-line @typescript-eslint/no-unsafe-assignment - const request = ctx.switchToHttp().getRequest(); - // eslint-disable-next-line @typescript-eslint/no-unsafe-assignment, @typescript-eslint/no-unsafe-argument, @typescript-eslint/no-unsafe-member-access - return new QueryWorkspaceTypesPubliclyHeaders(Object.entries(request.headers)); - }, - ); - - -} - - - - -/** - * QueryWorkspaceTypesPubliclyQueryParams class - * Auto-generated from Module3Action - */ -export class QueryWorkspaceTypesPubliclyQueryParams extends URLSearchParamsX { - - - // the getters generated by us would be casting types before returning. - // you still can use .get function to get the string value. - #getTyped(key, type) { - const val = this.get(key); - if (val == null) return null; - - const t = type.toLowerCase(); - - if (t.includes('number')) return Number(val); - if (t.includes('bool')) return val === 'true'; - return val; // string or any other fallback - } - - - - /** - * Nest.js decorator for controller query. Instead of using @Query() value: any, now you can use for example: - * @example - * @Get() - * getHello(@FetchUserQuery.Nest() query: FetchUserQuery): string { - * return JSON.stringify(query.getMyfield()); - * } - */ - static Nest = createParamDecorator( - (_data: unknown, ctx: ExecutionContext) => { - // eslint-disable-next-line @typescript-eslint/no-unsafe-assignment - const request = ctx.switchToHttp().getRequest(); - // eslint-disable-next-line @typescript-eslint/no-unsafe-assignment, @typescript-eslint/no-unsafe-argument, @typescript-eslint/no-unsafe-member-access - return new QueryWorkspaceTypesPubliclyQueryParams(request.query); - }, - ); - - -} - - - diff --git a/cmd/module3/ReactiveSearchAction.js b/cmd/module3/ReactiveSearchAction.js deleted file mode 100644 index c390fa65b..000000000 --- a/cmd/module3/ReactiveSearchAction.js +++ /dev/null @@ -1,105 +0,0 @@ -/** -* Action to communicate with the action reactiveSearch -*/ - - - - - - -/** - * ReactiveSearchHeaders class - * Auto-generated from Module3Action - */ -export class ReactiveSearchHeaders extends Headers { - - // the getters generated by us would be casting types before returning. - // you still can use .get function to get the string value. - #getTyped(key, type) { - const val = this.get(key); - if (val == null) return null; - - const t = type.toLowerCase(); - - if (t.includes('number')) return Number(val); - if (t.includes('bool')) return val === 'true'; - return val; // string or any other fallback - } - - - /** - * @returns {Record} - * Converts Headers to plain object - */ - toObject() { - return Object.fromEntries(this.entries()); - } - - - /** - * Nest.js decorator for controller headers. Instead of using @Headers() value: any, now you can use for example: - * @example - * @Get() - * getHello(@FetchUserHeader.Nest() headers: FetchUserHeader): string { - * return JSON.stringify(headers.getContentType()); - * } - */ - static Nest = createParamDecorator( - (_data: unknown, ctx: ExecutionContext) => { - // eslint-disable-next-line @typescript-eslint/no-unsafe-assignment - const request = ctx.switchToHttp().getRequest(); - // eslint-disable-next-line @typescript-eslint/no-unsafe-assignment, @typescript-eslint/no-unsafe-argument, @typescript-eslint/no-unsafe-member-access - return new ReactiveSearchHeaders(Object.entries(request.headers)); - }, - ); - - -} - - - - -/** - * ReactiveSearchQueryParams class - * Auto-generated from Module3Action - */ -export class ReactiveSearchQueryParams extends URLSearchParamsX { - - - // the getters generated by us would be casting types before returning. - // you still can use .get function to get the string value. - #getTyped(key, type) { - const val = this.get(key); - if (val == null) return null; - - const t = type.toLowerCase(); - - if (t.includes('number')) return Number(val); - if (t.includes('bool')) return val === 'true'; - return val; // string or any other fallback - } - - - - /** - * Nest.js decorator for controller query. Instead of using @Query() value: any, now you can use for example: - * @example - * @Get() - * getHello(@FetchUserQuery.Nest() query: FetchUserQuery): string { - * return JSON.stringify(query.getMyfield()); - * } - */ - static Nest = createParamDecorator( - (_data: unknown, ctx: ExecutionContext) => { - // eslint-disable-next-line @typescript-eslint/no-unsafe-assignment - const request = ctx.switchToHttp().getRequest(); - // eslint-disable-next-line @typescript-eslint/no-unsafe-assignment, @typescript-eslint/no-unsafe-argument, @typescript-eslint/no-unsafe-member-access - return new ReactiveSearchQueryParams(request.query); - }, - ); - - -} - - - diff --git a/cmd/module3/SendEmailAction.js b/cmd/module3/SendEmailAction.js deleted file mode 100644 index 40469dc1d..000000000 --- a/cmd/module3/SendEmailAction.js +++ /dev/null @@ -1,201 +0,0 @@ -/** -* Action to communicate with the action sendEmail -*/ - - - - - - - - -/** - * @decription The base class definition for sendEmailReq - **/ - -export class SendEmailReq { - - /** - * @type {string} - * @description - **/ - toAddress; - /** - * @returns {string} - * @description - **/ -getToAddress () { return this[`toAddress`] } - /** - * @param {string} - * @description - **/ -setToAddress (value) { this[`toAddress`] = value; return this; } - - /** - * @type {string} - * @description - **/ - body; - /** - * @returns {string} - * @description - **/ -getBody () { return this[`body`] } - /** - * @param {string} - * @description - **/ -setBody (value) { this[`body`] = value; return this; } - - - - - /** a placeholder for WebRequesX auto patching the json content to the object **/ - static __jsonParsable; -} - - - - - - - - - - - - - - -/** - * @decription The base class definition for sendEmailRes - **/ - -export class SendEmailRes { - - /** - * @type {string} - * @description - **/ - queueId; - /** - * @returns {string} - * @description - **/ -getQueueId () { return this[`queueId`] } - /** - * @param {string} - * @description - **/ -setQueueId (value) { this[`queueId`] = value; return this; } - - - - - /** a placeholder for WebRequesX auto patching the json content to the object **/ - static __jsonParsable; -} - - - - - - - - -/** - * SendEmailHeaders class - * Auto-generated from Module3Action - */ -export class SendEmailHeaders extends Headers { - - // the getters generated by us would be casting types before returning. - // you still can use .get function to get the string value. - #getTyped(key, type) { - const val = this.get(key); - if (val == null) return null; - - const t = type.toLowerCase(); - - if (t.includes('number')) return Number(val); - if (t.includes('bool')) return val === 'true'; - return val; // string or any other fallback - } - - - /** - * @returns {Record} - * Converts Headers to plain object - */ - toObject() { - return Object.fromEntries(this.entries()); - } - - - /** - * Nest.js decorator for controller headers. Instead of using @Headers() value: any, now you can use for example: - * @example - * @Get() - * getHello(@FetchUserHeader.Nest() headers: FetchUserHeader): string { - * return JSON.stringify(headers.getContentType()); - * } - */ - static Nest = createParamDecorator( - (_data: unknown, ctx: ExecutionContext) => { - // eslint-disable-next-line @typescript-eslint/no-unsafe-assignment - const request = ctx.switchToHttp().getRequest(); - // eslint-disable-next-line @typescript-eslint/no-unsafe-assignment, @typescript-eslint/no-unsafe-argument, @typescript-eslint/no-unsafe-member-access - return new SendEmailHeaders(Object.entries(request.headers)); - }, - ); - - -} - - - - -/** - * SendEmailQueryParams class - * Auto-generated from Module3Action - */ -export class SendEmailQueryParams extends URLSearchParamsX { - - - // the getters generated by us would be casting types before returning. - // you still can use .get function to get the string value. - #getTyped(key, type) { - const val = this.get(key); - if (val == null) return null; - - const t = type.toLowerCase(); - - if (t.includes('number')) return Number(val); - if (t.includes('bool')) return val === 'true'; - return val; // string or any other fallback - } - - - - /** - * Nest.js decorator for controller query. Instead of using @Query() value: any, now you can use for example: - * @example - * @Get() - * getHello(@FetchUserQuery.Nest() query: FetchUserQuery): string { - * return JSON.stringify(query.getMyfield()); - * } - */ - static Nest = createParamDecorator( - (_data: unknown, ctx: ExecutionContext) => { - // eslint-disable-next-line @typescript-eslint/no-unsafe-assignment - const request = ctx.switchToHttp().getRequest(); - // eslint-disable-next-line @typescript-eslint/no-unsafe-assignment, @typescript-eslint/no-unsafe-argument, @typescript-eslint/no-unsafe-member-access - return new SendEmailQueryParams(request.query); - }, - ); - - -} - - - diff --git a/cmd/module3/SendEmailWithProviderAction.js b/cmd/module3/SendEmailWithProviderAction.js deleted file mode 100644 index f62547298..000000000 --- a/cmd/module3/SendEmailWithProviderAction.js +++ /dev/null @@ -1,217 +0,0 @@ -/** -* Action to communicate with the action sendEmailWithProvider -*/ - - - - - - - - -/** - * @decription The base class definition for sendEmailWithProviderReq - **/ - -export class SendEmailWithProviderReq { - - /** - * @type {EmailProviderEntity} - * @description - **/ - emailProvider; - /** - * @returns {EmailProviderEntity} - * @description - **/ -getEmailProvider () { return this[`emailProvider`] } - /** - * @param {EmailProviderEntity} - * @description - **/ -setEmailProvider (value) { this[`emailProvider`] = value; return this; } - - /** - * @type {string} - * @description - **/ - toAddress; - /** - * @returns {string} - * @description - **/ -getToAddress () { return this[`toAddress`] } - /** - * @param {string} - * @description - **/ -setToAddress (value) { this[`toAddress`] = value; return this; } - - /** - * @type {string} - * @description - **/ - body; - /** - * @returns {string} - * @description - **/ -getBody () { return this[`body`] } - /** - * @param {string} - * @description - **/ -setBody (value) { this[`body`] = value; return this; } - - - - - /** a placeholder for WebRequesX auto patching the json content to the object **/ - static __jsonParsable; -} - - - - - - - - - - - - - - -/** - * @decription The base class definition for sendEmailWithProviderRes - **/ - -export class SendEmailWithProviderRes { - - /** - * @type {string} - * @description - **/ - queueId; - /** - * @returns {string} - * @description - **/ -getQueueId () { return this[`queueId`] } - /** - * @param {string} - * @description - **/ -setQueueId (value) { this[`queueId`] = value; return this; } - - - - - /** a placeholder for WebRequesX auto patching the json content to the object **/ - static __jsonParsable; -} - - - - - - - - -/** - * SendEmailWithProviderHeaders class - * Auto-generated from Module3Action - */ -export class SendEmailWithProviderHeaders extends Headers { - - // the getters generated by us would be casting types before returning. - // you still can use .get function to get the string value. - #getTyped(key, type) { - const val = this.get(key); - if (val == null) return null; - - const t = type.toLowerCase(); - - if (t.includes('number')) return Number(val); - if (t.includes('bool')) return val === 'true'; - return val; // string or any other fallback - } - - - /** - * @returns {Record} - * Converts Headers to plain object - */ - toObject() { - return Object.fromEntries(this.entries()); - } - - - /** - * Nest.js decorator for controller headers. Instead of using @Headers() value: any, now you can use for example: - * @example - * @Get() - * getHello(@FetchUserHeader.Nest() headers: FetchUserHeader): string { - * return JSON.stringify(headers.getContentType()); - * } - */ - static Nest = createParamDecorator( - (_data: unknown, ctx: ExecutionContext) => { - // eslint-disable-next-line @typescript-eslint/no-unsafe-assignment - const request = ctx.switchToHttp().getRequest(); - // eslint-disable-next-line @typescript-eslint/no-unsafe-assignment, @typescript-eslint/no-unsafe-argument, @typescript-eslint/no-unsafe-member-access - return new SendEmailWithProviderHeaders(Object.entries(request.headers)); - }, - ); - - -} - - - - -/** - * SendEmailWithProviderQueryParams class - * Auto-generated from Module3Action - */ -export class SendEmailWithProviderQueryParams extends URLSearchParamsX { - - - // the getters generated by us would be casting types before returning. - // you still can use .get function to get the string value. - #getTyped(key, type) { - const val = this.get(key); - if (val == null) return null; - - const t = type.toLowerCase(); - - if (t.includes('number')) return Number(val); - if (t.includes('bool')) return val === 'true'; - return val; // string or any other fallback - } - - - - /** - * Nest.js decorator for controller query. Instead of using @Query() value: any, now you can use for example: - * @example - * @Get() - * getHello(@FetchUserQuery.Nest() query: FetchUserQuery): string { - * return JSON.stringify(query.getMyfield()); - * } - */ - static Nest = createParamDecorator( - (_data: unknown, ctx: ExecutionContext) => { - // eslint-disable-next-line @typescript-eslint/no-unsafe-assignment - const request = ctx.switchToHttp().getRequest(); - // eslint-disable-next-line @typescript-eslint/no-unsafe-assignment, @typescript-eslint/no-unsafe-argument, @typescript-eslint/no-unsafe-member-access - return new SendEmailWithProviderQueryParams(request.query); - }, - ); - - -} - - - diff --git a/cmd/module3/SignoutAction.js b/cmd/module3/SignoutAction.js deleted file mode 100644 index c86c6947d..000000000 --- a/cmd/module3/SignoutAction.js +++ /dev/null @@ -1,105 +0,0 @@ -/** -* Action to communicate with the action signout -*/ - - - - - - -/** - * SignoutHeaders class - * Auto-generated from Module3Action - */ -export class SignoutHeaders extends Headers { - - // the getters generated by us would be casting types before returning. - // you still can use .get function to get the string value. - #getTyped(key, type) { - const val = this.get(key); - if (val == null) return null; - - const t = type.toLowerCase(); - - if (t.includes('number')) return Number(val); - if (t.includes('bool')) return val === 'true'; - return val; // string or any other fallback - } - - - /** - * @returns {Record} - * Converts Headers to plain object - */ - toObject() { - return Object.fromEntries(this.entries()); - } - - - /** - * Nest.js decorator for controller headers. Instead of using @Headers() value: any, now you can use for example: - * @example - * @Get() - * getHello(@FetchUserHeader.Nest() headers: FetchUserHeader): string { - * return JSON.stringify(headers.getContentType()); - * } - */ - static Nest = createParamDecorator( - (_data: unknown, ctx: ExecutionContext) => { - // eslint-disable-next-line @typescript-eslint/no-unsafe-assignment - const request = ctx.switchToHttp().getRequest(); - // eslint-disable-next-line @typescript-eslint/no-unsafe-assignment, @typescript-eslint/no-unsafe-argument, @typescript-eslint/no-unsafe-member-access - return new SignoutHeaders(Object.entries(request.headers)); - }, - ); - - -} - - - - -/** - * SignoutQueryParams class - * Auto-generated from Module3Action - */ -export class SignoutQueryParams extends URLSearchParamsX { - - - // the getters generated by us would be casting types before returning. - // you still can use .get function to get the string value. - #getTyped(key, type) { - const val = this.get(key); - if (val == null) return null; - - const t = type.toLowerCase(); - - if (t.includes('number')) return Number(val); - if (t.includes('bool')) return val === 'true'; - return val; // string or any other fallback - } - - - - /** - * Nest.js decorator for controller query. Instead of using @Query() value: any, now you can use for example: - * @example - * @Get() - * getHello(@FetchUserQuery.Nest() query: FetchUserQuery): string { - * return JSON.stringify(query.getMyfield()); - * } - */ - static Nest = createParamDecorator( - (_data: unknown, ctx: ExecutionContext) => { - // eslint-disable-next-line @typescript-eslint/no-unsafe-assignment - const request = ctx.switchToHttp().getRequest(); - // eslint-disable-next-line @typescript-eslint/no-unsafe-assignment, @typescript-eslint/no-unsafe-argument, @typescript-eslint/no-unsafe-member-access - return new SignoutQueryParams(request.query); - }, - ); - - -} - - - diff --git a/cmd/module3/UserInvitationsAction.js b/cmd/module3/UserInvitationsAction.js deleted file mode 100644 index f2a5e2853..000000000 --- a/cmd/module3/UserInvitationsAction.js +++ /dev/null @@ -1,105 +0,0 @@ -/** -* Action to communicate with the action userInvitations -*/ - - - - - - -/** - * UserInvitationsHeaders class - * Auto-generated from Module3Action - */ -export class UserInvitationsHeaders extends Headers { - - // the getters generated by us would be casting types before returning. - // you still can use .get function to get the string value. - #getTyped(key, type) { - const val = this.get(key); - if (val == null) return null; - - const t = type.toLowerCase(); - - if (t.includes('number')) return Number(val); - if (t.includes('bool')) return val === 'true'; - return val; // string or any other fallback - } - - - /** - * @returns {Record} - * Converts Headers to plain object - */ - toObject() { - return Object.fromEntries(this.entries()); - } - - - /** - * Nest.js decorator for controller headers. Instead of using @Headers() value: any, now you can use for example: - * @example - * @Get() - * getHello(@FetchUserHeader.Nest() headers: FetchUserHeader): string { - * return JSON.stringify(headers.getContentType()); - * } - */ - static Nest = createParamDecorator( - (_data: unknown, ctx: ExecutionContext) => { - // eslint-disable-next-line @typescript-eslint/no-unsafe-assignment - const request = ctx.switchToHttp().getRequest(); - // eslint-disable-next-line @typescript-eslint/no-unsafe-assignment, @typescript-eslint/no-unsafe-argument, @typescript-eslint/no-unsafe-member-access - return new UserInvitationsHeaders(Object.entries(request.headers)); - }, - ); - - -} - - - - -/** - * UserInvitationsQueryParams class - * Auto-generated from Module3Action - */ -export class UserInvitationsQueryParams extends URLSearchParamsX { - - - // the getters generated by us would be casting types before returning. - // you still can use .get function to get the string value. - #getTyped(key, type) { - const val = this.get(key); - if (val == null) return null; - - const t = type.toLowerCase(); - - if (t.includes('number')) return Number(val); - if (t.includes('bool')) return val === 'true'; - return val; // string or any other fallback - } - - - - /** - * Nest.js decorator for controller query. Instead of using @Query() value: any, now you can use for example: - * @example - * @Get() - * getHello(@FetchUserQuery.Nest() query: FetchUserQuery): string { - * return JSON.stringify(query.getMyfield()); - * } - */ - static Nest = createParamDecorator( - (_data: unknown, ctx: ExecutionContext) => { - // eslint-disable-next-line @typescript-eslint/no-unsafe-assignment - const request = ctx.switchToHttp().getRequest(); - // eslint-disable-next-line @typescript-eslint/no-unsafe-assignment, @typescript-eslint/no-unsafe-argument, @typescript-eslint/no-unsafe-member-access - return new UserInvitationsQueryParams(request.query); - }, - ); - - -} - - - diff --git a/cmd/module3/UserPassportsAction.js b/cmd/module3/UserPassportsAction.js deleted file mode 100644 index 90eebdc0a..000000000 --- a/cmd/module3/UserPassportsAction.js +++ /dev/null @@ -1,193 +0,0 @@ -/** -* Action to communicate with the action userPassports -*/ - - - - - - - - - - -/** - * @decription The base class definition for userPassportsRes - **/ - -export class UserPassportsRes { - - /** - * @type {string} - * @description The passport value, such as email address or phone number - **/ - value; - /** - * @returns {string} - * @description The passport value, such as email address or phone number - **/ -getValue () { return this[`value`] } - /** - * @param {string} - * @description The passport value, such as email address or phone number - **/ -setValue (value) { this[`value`] = value; return this; } - - /** - * @type {string} - * @description Unique identifier of the passport to operate some action on top of it - **/ - uniqueId; - /** - * @returns {string} - * @description Unique identifier of the passport to operate some action on top of it - **/ -getUniqueId () { return this[`uniqueId`] } - /** - * @param {string} - * @description Unique identifier of the passport to operate some action on top of it - **/ -setUniqueId (value) { this[`uniqueId`] = value; return this; } - - /** - * @type {string} - * @description The type of the passport, such as email, phone number - **/ - type; - /** - * @returns {string} - * @description The type of the passport, such as email, phone number - **/ -getType () { return this[`type`] } - /** - * @param {string} - * @description The type of the passport, such as email, phone number - **/ -setType (value) { this[`type`] = value; return this; } - - /** - * @type {boolean} - * @description Regardless of the secret, user needs to confirm his secret. There is an extra action to confirm user totp, could be used after signup or prior to login. - **/ - totpConfirmed; - /** - * @returns {boolean} - * @description Regardless of the secret, user needs to confirm his secret. There is an extra action to confirm user totp, could be used after signup or prior to login. - **/ -getTotpConfirmed () { return this[`totpConfirmed`] } - /** - * @param {boolean} - * @description Regardless of the secret, user needs to confirm his secret. There is an extra action to confirm user totp, could be used after signup or prior to login. - **/ -setTotpConfirmed (value) { this[`totpConfirmed`] = value; return this; } - - - - - /** a placeholder for WebRequesX auto patching the json content to the object **/ - static __jsonParsable; -} - - - - - - - - -/** - * UserPassportsHeaders class - * Auto-generated from Module3Action - */ -export class UserPassportsHeaders extends Headers { - - // the getters generated by us would be casting types before returning. - // you still can use .get function to get the string value. - #getTyped(key, type) { - const val = this.get(key); - if (val == null) return null; - - const t = type.toLowerCase(); - - if (t.includes('number')) return Number(val); - if (t.includes('bool')) return val === 'true'; - return val; // string or any other fallback - } - - - /** - * @returns {Record} - * Converts Headers to plain object - */ - toObject() { - return Object.fromEntries(this.entries()); - } - - - /** - * Nest.js decorator for controller headers. Instead of using @Headers() value: any, now you can use for example: - * @example - * @Get() - * getHello(@FetchUserHeader.Nest() headers: FetchUserHeader): string { - * return JSON.stringify(headers.getContentType()); - * } - */ - static Nest = createParamDecorator( - (_data: unknown, ctx: ExecutionContext) => { - // eslint-disable-next-line @typescript-eslint/no-unsafe-assignment - const request = ctx.switchToHttp().getRequest(); - // eslint-disable-next-line @typescript-eslint/no-unsafe-assignment, @typescript-eslint/no-unsafe-argument, @typescript-eslint/no-unsafe-member-access - return new UserPassportsHeaders(Object.entries(request.headers)); - }, - ); - - -} - - - - -/** - * UserPassportsQueryParams class - * Auto-generated from Module3Action - */ -export class UserPassportsQueryParams extends URLSearchParamsX { - - - // the getters generated by us would be casting types before returning. - // you still can use .get function to get the string value. - #getTyped(key, type) { - const val = this.get(key); - if (val == null) return null; - - const t = type.toLowerCase(); - - if (t.includes('number')) return Number(val); - if (t.includes('bool')) return val === 'true'; - return val; // string or any other fallback - } - - - - /** - * Nest.js decorator for controller query. Instead of using @Query() value: any, now you can use for example: - * @example - * @Get() - * getHello(@FetchUserQuery.Nest() query: FetchUserQuery): string { - * return JSON.stringify(query.getMyfield()); - * } - */ - static Nest = createParamDecorator( - (_data: unknown, ctx: ExecutionContext) => { - // eslint-disable-next-line @typescript-eslint/no-unsafe-assignment - const request = ctx.switchToHttp().getRequest(); - // eslint-disable-next-line @typescript-eslint/no-unsafe-assignment, @typescript-eslint/no-unsafe-argument, @typescript-eslint/no-unsafe-member-access - return new UserPassportsQueryParams(request.query); - }, - ); - - -} - - - diff --git a/cmd/module3/main.go b/cmd/module3/main.go deleted file mode 100644 index 38c15d614..000000000 --- a/cmd/module3/main.go +++ /dev/null @@ -1,294 +0,0 @@ -package main - -import ( - "encoding/json" - "errors" - "fmt" - "os" - "path" - "strconv" - "strings" - "unicode" - - "github.com/manifoldco/promptui" - - "github.com/torabian/fireback/modules/fireback/module3/m3angular" - "github.com/torabian/fireback/modules/fireback/module3/m3js" - "github.com/torabian/fireback/modules/fireback/module3/mcore" - "github.com/urfave/cli" - "gopkg.in/yaml.v2" -) - -func main() { - app := &cli.App{ - Name: "module3-cli", - Usage: "Module3 definitions code generator", - Commands: []cli.Command{ - - GetCliActionForActionGen( - "js:action:headers", - "Generate the javascript class for an action headers extending Headers class", - m3js.JsActionHeaderClass, - ), - GetCliActionForActionGen( - "js:action", - "Combines multiple code gens which would make an action typesafe in javascript", - m3js.JsActionClass, - ), - - GetCliActionForActionGen( - "js:action:qs", - "Generate javascript query string class library", - m3js.JsActionQsClass, - ), - GetCliActionForCompleteModule("js:module", "Compiles the entire javascript modules and writes them to disk", m3js.JsModuleFullVirtualFiles), - GetCliActionForCompleteModule("angular:module", "Compiles the angular + javascript (typescript) required files to use the sdk", m3angular.AngularModuleFullVirtualFiles), - }, - } - - if err := app.Run(os.Args); err != nil { - fmt.Println(err) - } -} - -type TypeScriptGenContext struct { - IncludeStaticField bool - IncludeFirebackDef bool - IncludeStaticNavigation bool -} - -func GenContextFromCli(c *cli.Context) *CodeGenContext { - tsx := &TypeScriptGenContext{ - IncludeStaticField: true, - IncludeFirebackDef: true, - IncludeStaticNavigation: true, - } - - if c.IsSet("no-fbdef") { - tsx.IncludeFirebackDef = false - } - - if c.IsSet("no-static") { - tsx.IncludeStaticField = false - } - - if c.IsSet("no-nav") { - tsx.IncludeStaticNavigation = false - } - - ctx := &CodeGenContext{ - Path: c.String("path"), - NoCache: c.Bool("no-cache"), - } - - return ctx -} - -type CodeGenContext struct { - // Where the content will be exported to - Path string - - // Used in golang which indicates the relative path - RelativePath string - RelativePathDot string - - // Only build specific modules - ModulesOnDisk []string - - NoCache bool -} - -func GetCliActionForCompleteModule(name string, description string, fn mcore.CompleteModuleGenerator) cli.Command { - return cli.Command{ - Name: name, - Description: description, - Flags: []cli.Flag{ - cli.StringFlag{ - Name: "path", - Usage: "Module3 yaml definition file location for the import", - Required: true, - }, - cli.StringFlag{ - Name: "output", - Usage: "The directory which the generated files will be rewritten to", - }, - - cli.StringFlag{ - Name: "tags", - Usage: "A set of string flags separated by comma (,) to add or remove compile feature. Such as 'nestjs-headers-decorator'", - }, - }, - Action: func(c *cli.Context) error { - ctx := mcore.MicroGenContext{ - Tags: c.String("tags"), - Output: c.String("output"), - } - - data, err := ReadModule3FromFile(c.String("path")) - if err != nil { - return err - } - - // Let's combine the import requirements of the chunk - files, err := fn(data, ctx) - if err != nil { - return err - } - - // If there is no output, we just write the content as json into the output - if ctx.Output == "" { - res, _ := json.MarshalIndent(files, "", " ") - fmt.Println(string(res)) - - return nil - } - - // @todo bring back the caching mechanism into here from fireback - os.MkdirAll(ctx.Output, os.ModePerm) - - for _, file := range files { - filePath := path.Join(ctx.Output, file.Location, file.Name+file.Extension) - - fmt.Println("filePath", filePath) - if err := os.WriteFile(filePath, []byte(file.ActualScript), 0644); err != nil { - return fmt.Errorf("error on writing file to disk: %v, %v, %w", file.Location, file.Name, err) - } - } - - return nil - }, - } -} - -func GetCliActionForActionGen(name string, description string, call mcore.ActionCodeGenerator) cli.Command { - return cli.Command{ - Name: name, - Description: description, - Flags: []cli.Flag{ - cli.StringFlag{ - Name: "path", - Usage: "Module3 yaml definition file location for the import", - Required: true, - }, - cli.StringFlag{ - Name: "out", - Usage: "If set, it would write the output into a file", - }, - - cli.StringFlag{ - Name: "tags", - Usage: "A set of string flags separated by comma (,) to add or remove compile feature. Such as 'nestjs-headers-decorator'", - }, - }, - Action: func(c *cli.Context) error { - action, err := PickActionFromModule3(c.String("path")) - if err != nil { - return err - } - - ctx := mcore.MicroGenContext{ - Tags: c.String("tags"), - } - - result, err := call(action, ctx) - if err != nil { - return err - } - - // Let's combine the import requirements of the chunk - importsList := m3js.CombineImportsJsWorld(*result) - var finalContent string = importsList + "\r\n" + string(result.ActualScript) - - if c.IsSet("out") { - return os.WriteFile(c.String("out"), []byte(finalContent), 0644) - } else { - fmt.Println(string(finalContent)) - } - - return nil - }, - } -} - -func ReadModule3FromFile(source string) (*mcore.Module3, error) { - content, err := os.ReadFile(source) - if err != nil { - return nil, err - } - - var data mcore.Module3 - err = yaml.Unmarshal(content, &data) - if err != nil { - return nil, err - } - - return &data, nil -} - -func PickActionFromModule3(source string) (*mcore.Module3Action, error) { - data, err := ReadModule3FromFile(source) - if err != nil { - return nil, err - } - - var index int64 = 0 - items := data.ActionsAsList() - - if len(items) > 1 { - index0 := AskForSelect("Select the action to generate header out of it.", items) - index, err = ToInt64(index0) - if err != nil { - return nil, err - } - - } - - action := data.Actions[index] - - if action == nil { - return nil, errors.New("Action is not readable") - } - - return action, nil -} - -func AskForSelect(label string, items []string) string { - prompt := promptui.Select{ - Label: label, - Items: items, - } - - _, result, err := prompt.Run() - - if err != nil { - if err.Error() == "^C" { - os.Exit(35) - return "" - } - return "" - } - - index := strings.Index(result, ">>>") - if index <= 0 { - return result - } - return strings.Trim(result[0:index], " ") - -} - -// ToInt64 casts a string to int64 if it's numeric -func ToInt64(s string) (int64, error) { - if IsNumeric(s) { - return strconv.ParseInt(s, 10, 64) - } - return 0, fmt.Errorf("not a valid number") -} - -func IsNumeric(s string) bool { - for _, r := range s { - if !unicode.IsDigit(r) { - return false - } - } - return true -} diff --git a/go.mod b/go.mod index a331902d4..2b2ca2de3 100644 --- a/go.mod +++ b/go.mod @@ -58,7 +58,7 @@ require ( github.com/tdewolff/minify/v2 v2.23.8 github.com/tidwall/gjson v1.18.0 github.com/tidwall/sjson v1.2.5 - github.com/torabian/emi v1.0.30 + github.com/torabian/emi v1.0.31 github.com/tus/tusd v1.10.0 github.com/urfave/cli v1.22.17 github.com/wk8/go-ordered-map/v2 v2.1.8 diff --git a/go.sum b/go.sum index 69c2dbf61..ef0f05594 100644 --- a/go.sum +++ b/go.sum @@ -750,10 +750,10 @@ github.com/tidwall/pretty v1.2.1 h1:qjsOFOWWQl+N3RsoF5/ssm1pHmJJwhjlSbZ51I6wMl4= github.com/tidwall/pretty v1.2.1/go.mod h1:ITEVvHYasfjBbM0u2Pg8T2nJnzm8xPwvNhhsoaGGjNU= github.com/tidwall/sjson v1.2.5 h1:kLy8mja+1c9jlljvWTlSazM7cKDRfJuR/bOJhcY5NcY= github.com/tidwall/sjson v1.2.5/go.mod h1:Fvgq9kS/6ociJEDnK0Fk1cpYF4FIW6ZF7LAe+6jwd28= -github.com/torabian/emi v1.0.29 h1:SudhYMtcPBa84fAliRNZlK0Y7blrdvNjJQevynjNJp4= -github.com/torabian/emi v1.0.29/go.mod h1:jexKgoWHBqSBwWL6/pi2vOtDKFsXwud+2E7j8qKw8B4= github.com/torabian/emi v1.0.30 h1:rvUrSOR6HgaKJ6m7AW66cDfd3M+0O+T+1cxKivlC0YM= github.com/torabian/emi v1.0.30/go.mod h1:jexKgoWHBqSBwWL6/pi2vOtDKFsXwud+2E7j8qKw8B4= +github.com/torabian/emi v1.0.31 h1:N6tGyme4y0DYRxKJUY8+Wa14M+s8QWUKWPEahfbRglw= +github.com/torabian/emi v1.0.31/go.mod h1:jexKgoWHBqSBwWL6/pi2vOtDKFsXwud+2E7j8qKw8B4= github.com/tus/tusd v1.10.0 h1:oQIxjxrSD6mjvYkqIjDlB3KVoEA1DWSzqCgWcTPP/ok= github.com/tus/tusd v1.10.0/go.mod h1:2k5gtwQX7v1FbeYcCk1O5Sp/sOL9D9iBBtQ7n6XPyBo= github.com/twitchyliquid64/golang-asm v0.15.1 h1:SU5vSMR7hnwNxj24w34ZyCi/FmDZTkS4MhqMhdFk5YI= diff --git a/modules/abac/AuthFlow.go b/modules/abac/AuthFlow.go index 9f4b0b60c..2c0caad00 100644 --- a/modules/abac/AuthFlow.go +++ b/modules/abac/AuthFlow.go @@ -5,6 +5,7 @@ import ( "log" "net/url" "os" + "reflect" "strings" "time" @@ -122,15 +123,15 @@ func IntegrateAuthFlow(c *cli.Context) error { value := fireback.AskForInput(label, prefix) query.C = c - mresponse, e := CheckClassicPassportAction(CheckClassicPassportActionRequest{ + mresponse, err := CheckClassicPassportAction(CheckClassicPassportActionRequest{ Body: CheckClassicPassportActionReq{ Value: value, }, CliCtx: c, }, query) - if e != nil { - return e + if err != nil && !reflect.ValueOf(err).IsNil() { + return err } var m *CheckClassicPassportActionRes diff --git a/modules/fireback/DataTypeDuration.go b/modules/fireback/DataTypeDuration.go index 17bc0de38..567479be6 100644 --- a/modules/fireback/DataTypeDuration.go +++ b/modules/fireback/DataTypeDuration.go @@ -17,6 +17,12 @@ type Duration struct { Present bool // Whether the field was present in JSON or YAML } +func (m *Duration) UnmarshalText(text []byte) error { + *m = NewDurationAutoNull(string(text)) + + return nil +} + // UnmarshalJSON handles JSON deserialization func (d *Duration) UnmarshalJSON(data []byte) error { d.Present = true diff --git a/modules/fireback/DataTypeMoney.go b/modules/fireback/DataTypeMoney.go index 99d1a0e6c..d7d9d01ab 100644 --- a/modules/fireback/DataTypeMoney.go +++ b/modules/fireback/DataTypeMoney.go @@ -23,6 +23,18 @@ type Money struct { Present bool } +func (m *Money) UnmarshalText(text []byte) error { + + amount, currency, err := ParseMoneyString(string(text)) + if err != nil { + return err + } + m.Amount = sql.NullInt64{Int64: amount, Valid: true} + m.Currency = sql.NullString{String: NormalizeCurrency(currency), Valid: true} + + return nil +} + func currencyMultiplier(currency string) int64 { return pow10(CurrencyPrecision(currency)) } diff --git a/modules/fireback/DataTypeXFile.go b/modules/fireback/DataTypeXFile.go index dfeec9709..4d4f798d5 100644 --- a/modules/fireback/DataTypeXFile.go +++ b/modules/fireback/DataTypeXFile.go @@ -51,6 +51,11 @@ type XFileMeta struct { IsBase64 bool `json:"isBase64,omitempty" yaml:"isBase64,omitempty"` } +func (m *XFile) UnmarshalText(text []byte) error { + *m = NewXFileAutoNull(string(text)) + return nil +} + func (f *XFile) UnmarshalJSON(data []byte) error { var obj interface{} if err := json.Unmarshal(data, &obj); err != nil { diff --git a/modules/fireback/JsonDataType.go b/modules/fireback/JsonDataType.go index 0cd31be54..484299bcf 100644 --- a/modules/fireback/JsonDataType.go +++ b/modules/fireback/JsonDataType.go @@ -20,7 +20,17 @@ import ( // JSON defined JSON data type, need to implements driver.Valuer, sql.Scanner interface type JSON json.RawMessage +func (m *JSON) UnmarshalText(text []byte) error { + return json.Unmarshal(text, m) +} + // Converts any object into a database JSON object +func JSONFromString(data string) *JSON { + var intermediate interface{} + json.Unmarshal([]byte(data), &intermediate) + return JSONFrom(intermediate) +} + func JSONFrom(data any) *JSON { jsx, _ := json.Marshal(data) b := &JSON{} @@ -118,6 +128,10 @@ func (JSON) GormDBDataType(db *gorm.DB, field *schema.Field) string { return "" } +func (js JSON) FromString(source string) { + js = *JSONFromString(source) +} + func (js JSON) GormValue(ctx context.Context, db *gorm.DB) clause.Expr { if len(js) == 0 { return gorm.Expr("NULL") diff --git a/modules/fireback/XDateTimeType.go b/modules/fireback/XDateTimeType.go index 798ca420f..7c571e6d3 100644 --- a/modules/fireback/XDateTimeType.go +++ b/modules/fireback/XDateTimeType.go @@ -17,6 +17,12 @@ import ( type XDateTime string +func (m *XDateTime) UnmarshalText(text []byte) error { + XDateTimeFromString(string(text), m) + + return nil +} + type XDateTimeMetaData struct { Formatted *string `json:"formatted,omitempty"` Locale *string `json:"startLocale,omitempty"` diff --git a/modules/fireback/XDateType.go b/modules/fireback/XDateType.go index f5701d81c..2794cfdba 100644 --- a/modules/fireback/XDateType.go +++ b/modules/fireback/XDateType.go @@ -14,6 +14,12 @@ import ( type XDate string +func (m *XDate) UnmarshalText(text []byte) error { + FromString(string(text), m) + + return nil +} + type XDateMetaData struct { Formatted *string `json:"formatted,omitempty"` Locale *string `json:"startLocale,omitempty"` diff --git a/modules/fireback/codegen.go b/modules/fireback/codegen.go index 3820cbaf1..5d25d1ce0 100644 --- a/modules/fireback/codegen.go +++ b/modules/fireback/codegen.go @@ -1829,7 +1829,168 @@ func (x *Module3) Generate(ctx *CodeGenContext) { } - for _, dto := range x.Dtom { + mDtos := []*core.EmiDto{} + mDtos = append(mDtos, x.Dtom...) + aktFields := []*FirebackEmiAction{} + aktFields = append(aktFields, x.Acts...) + + for _, entity := range x.Entities { + + // Disabled now, but later we need to fix this. + // ve := ConvertEntityToEmi(entity) + // mDtos = append(mDtos, ve.Dtos...) + // aktFields = append(aktFields, ve.Actions...) + + // Computing field types is important for target writter. + ComputeFieldTypes(entity.CompleteFields(), isWorkspace, ctx.Catalog.ComputeField) + ComputeComplexGormField(&entity, entity.CompleteFields()) + + entityAddress := filepath.Join(exportDir, ctx.Catalog.EntityDiskName(&entity)) + + if ctx.Catalog.LanguageName == "FirebackGo" { + + entity.RootModule = x + + if !HasSeeders(ctx.Path, &entity) { + err7 := CreateSeederDirectory(ctx.Path, &entity) + if err7 != nil { + fmt.Println("Error on entity seeders directory generation:", err7) + } + } + + if !HasMocks(ctx.Path, &entity) { + err7 := CreateMockDirectory(ctx.Path, &entity) + if err7 != nil { + fmt.Println("Error on entity mocks directory generation:", err7) + } + } + if !HasMocks(ctx.Path, &entity) { + err7 := CreateMockDirectory(ctx.Path, &entity) + if err7 != nil { + fmt.Println("Error on entity mocks directory generation:", err7) + } + } + } + + if ctx.Catalog.EntityHeaderDiskName != nil { + exportPath := filepath.Join(exportDir, ctx.Catalog.EntityHeaderDiskName(&entity)) + + params := gin.H{ + "implementation": "skip", + } + + data, err := entity.RenderTemplate( + ctx, + ctx.Catalog.Templates, + ctx.Catalog.EntityGeneratorTemplate, + x, + params, + ) + + if err != nil { + fmt.Println("Error on entity extension generation:", err) + } else { + err3 := WriteFileGen(ctx, exportPath, EscapeLines(data), 0644) + if err3 != nil { + fmt.Println("Error on writing content:", exportPath, err3) + } + } + } + + if ctx.Catalog.EntityExtensionGeneratorTemplate != "" { + exportPath := filepath.Join(exportDir, ctx.Catalog.EntityExtensionDiskName(&entity)) + + // We only render the extension, if this entity is first time being created + if !Exists(exportPath) && !Exists(entityAddress) { + data, err := entity.RenderTemplate( + ctx, + ctx.Catalog.Templates, + ctx.Catalog.EntityExtensionGeneratorTemplate, + x, + nil, + ) + if err != nil { + fmt.Println("Error on entity extension generation:", err) + } else { + err3 := WriteFileGen(ctx, exportPath, EscapeLines(data), 0644) + if err3 != nil { + fmt.Println("Error on writing content:", exportPath, err3) + } + } + + } + + } + + // Step 0: Generate the Entity + if ctx.Catalog.EntityGeneratorTemplate != "" { + + data, err := entity.RenderTemplate( + ctx, + ctx.Catalog.Templates, + ctx.Catalog.EntityGeneratorTemplate, + x, + nil, + ) + if err != nil { + log.Fatalln("Error on entity generation:", err) + } else { + err3 := WriteFileGen(ctx, entityAddress, EscapeLines(data), 0644) + if err3 != nil { + log.Fatalln("Error on writing content:", entityAddress, err3) + } + } + } + + // Step 0: Cte SQL Render + if entity.Cte && ctx.Catalog.CteSqlTemplate != "" { + + { + os.MkdirAll(filepath.Join(exportDir, "queries"), os.ModePerm) + CreateQueryIndex(ctx.Path) + exportPath := filepath.Join(exportDir, "queries", entity.Upper()+"Cte.vsql") + data, err := entity.RenderCteSqlTemplate( + ctx, + ctx.Catalog.Templates, + ctx.Catalog.CteSqlTemplate, + x, + "sql", + ) + if err != nil { + log.Fatalln("Error on cte sql generation:", err) + } else { + err3 := WriteFileGen(ctx, exportPath, EscapeLines(data), 0644) + if err3 != nil { + log.Fatalln("Error on writing content:", exportPath, err3) + } + } + } + } + + // Step 1: Generate the form, (fields, sections, inputs, etc...) + if ctx.Catalog.FormGeneratorTemplate != "" { + exportPath := filepath.Join(exportDir, ctx.Catalog.FormDiskName(&entity)) + + data, err := entity.RenderTemplate( + ctx, + ctx.Catalog.Templates, + ctx.Catalog.FormGeneratorTemplate, + x, + nil, + ) + if err != nil { + log.Fatalln("Error on UI generation:", err) + } else { + err3 := WriteFileGen(ctx, exportPath, EscapeLines(data), 0644) + if err3 != nil { + log.Fatalln("Error on writing content:", exportPath, err3) + } + } + } + + } + + for _, dto := range mDtos { // Fireback, has a naming convension which Emi, as a general compiler // doesn't. It would always put the names upper case, and end Dtos with .Dto affix @@ -1880,7 +2041,7 @@ func (x *Module3) Generate(ctx *CodeGenContext) { } /// Emi compiler action - for _, action := range x.Acts { + for _, action := range aktFields { var content string var exportPath string @@ -2049,156 +2210,6 @@ func (x *Module3) Generate(ctx *CodeGenContext) { } } - for _, entity := range x.Entities { - - // Computing field types is important for target writter. - ComputeFieldTypes(entity.CompleteFields(), isWorkspace, ctx.Catalog.ComputeField) - ComputeComplexGormField(&entity, entity.CompleteFields()) - - entityAddress := filepath.Join(exportDir, ctx.Catalog.EntityDiskName(&entity)) - - if ctx.Catalog.LanguageName == "FirebackGo" { - - entity.RootModule = x - - if !HasSeeders(ctx.Path, &entity) { - err7 := CreateSeederDirectory(ctx.Path, &entity) - if err7 != nil { - fmt.Println("Error on entity seeders directory generation:", err7) - } - } - - if !HasMocks(ctx.Path, &entity) { - err7 := CreateMockDirectory(ctx.Path, &entity) - if err7 != nil { - fmt.Println("Error on entity mocks directory generation:", err7) - } - } - if !HasMocks(ctx.Path, &entity) { - err7 := CreateMockDirectory(ctx.Path, &entity) - if err7 != nil { - fmt.Println("Error on entity mocks directory generation:", err7) - } - } - } - - if ctx.Catalog.EntityHeaderDiskName != nil { - exportPath := filepath.Join(exportDir, ctx.Catalog.EntityHeaderDiskName(&entity)) - - params := gin.H{ - "implementation": "skip", - } - - data, err := entity.RenderTemplate( - ctx, - ctx.Catalog.Templates, - ctx.Catalog.EntityGeneratorTemplate, - x, - params, - ) - - if err != nil { - fmt.Println("Error on entity extension generation:", err) - } else { - err3 := WriteFileGen(ctx, exportPath, EscapeLines(data), 0644) - if err3 != nil { - fmt.Println("Error on writing content:", exportPath, err3) - } - } - } - - if ctx.Catalog.EntityExtensionGeneratorTemplate != "" { - exportPath := filepath.Join(exportDir, ctx.Catalog.EntityExtensionDiskName(&entity)) - - // We only render the extension, if this entity is first time being created - if !Exists(exportPath) && !Exists(entityAddress) { - data, err := entity.RenderTemplate( - ctx, - ctx.Catalog.Templates, - ctx.Catalog.EntityExtensionGeneratorTemplate, - x, - nil, - ) - if err != nil { - fmt.Println("Error on entity extension generation:", err) - } else { - err3 := WriteFileGen(ctx, exportPath, EscapeLines(data), 0644) - if err3 != nil { - fmt.Println("Error on writing content:", exportPath, err3) - } - } - - } - - } - - // Step 0: Generate the Entity - if ctx.Catalog.EntityGeneratorTemplate != "" { - - data, err := entity.RenderTemplate( - ctx, - ctx.Catalog.Templates, - ctx.Catalog.EntityGeneratorTemplate, - x, - nil, - ) - if err != nil { - log.Fatalln("Error on entity generation:", err) - } else { - err3 := WriteFileGen(ctx, entityAddress, EscapeLines(data), 0644) - if err3 != nil { - log.Fatalln("Error on writing content:", entityAddress, err3) - } - } - } - - // Step 0: Cte SQL Render - if entity.Cte && ctx.Catalog.CteSqlTemplate != "" { - - { - os.MkdirAll(filepath.Join(exportDir, "queries"), os.ModePerm) - CreateQueryIndex(ctx.Path) - exportPath := filepath.Join(exportDir, "queries", entity.Upper()+"Cte.vsql") - data, err := entity.RenderCteSqlTemplate( - ctx, - ctx.Catalog.Templates, - ctx.Catalog.CteSqlTemplate, - x, - "sql", - ) - if err != nil { - log.Fatalln("Error on cte sql generation:", err) - } else { - err3 := WriteFileGen(ctx, exportPath, EscapeLines(data), 0644) - if err3 != nil { - log.Fatalln("Error on writing content:", exportPath, err3) - } - } - } - } - - // Step 1: Generate the form, (fields, sections, inputs, etc...) - if ctx.Catalog.FormGeneratorTemplate != "" { - exportPath := filepath.Join(exportDir, ctx.Catalog.FormDiskName(&entity)) - - data, err := entity.RenderTemplate( - ctx, - ctx.Catalog.Templates, - ctx.Catalog.FormGeneratorTemplate, - x, - nil, - ) - if err != nil { - log.Fatalln("Error on UI generation:", err) - } else { - err3 := WriteFileGen(ctx, exportPath, EscapeLines(data), 0644) - if err3 != nil { - log.Fatalln("Error on writing content:", exportPath, err3) - } - } - } - - } } func DiscoverJsComplexes(module *Module3) []js.RecognizedComplex { diff --git a/modules/fireback/codegen/firebackgo/GoEntity.tpl b/modules/fireback/codegen/firebackgo/GoEntity.tpl index aa215a58f..5d6b4aa58 100644 --- a/modules/fireback/codegen/firebackgo/GoEntity.tpl +++ b/modules/fireback/codegen/firebackgo/GoEntity.tpl @@ -47,6 +47,10 @@ import ( {{ if .e.HasClickHouse }} "context" {{ end }} + + {{ if .e.HasComplexes }} + "encoding" + {{ end }} ) diff --git a/modules/fireback/codegen/firebackgo/SharedSnippets.tpl b/modules/fireback/codegen/firebackgo/SharedSnippets.tpl index 2ba9b0cef..ab45b3698 100644 --- a/modules/fireback/codegen/firebackgo/SharedSnippets.tpl +++ b/modules/fireback/codegen/firebackgo/SharedSnippets.tpl @@ -1549,7 +1549,7 @@ func {{ .e.Upper }}ActionImport( {{ template "entityCommonCliFlag" (arr .Fields $newPrefix)}} {{ end }} - {{ if or (eq .Type "string") (eq .Type "json") (eq .Type "enum") (eq .Type "text") (eq .Type "html") (eq .Type "")}} + {{ if or (eq .Type "string") (eq .Type "complex") (eq .Type "json") (eq .Type "enum") (eq .Type "text") (eq .Type "html") (eq .Type "")}} &cli.StringFlag{ Name: "{{ $prefix }}{{ .ComputedCliName }}", Required: {{ .IsRequired }}, @@ -1866,6 +1866,13 @@ type x{{$prefix}}{{ .PublicName}} struct { template.{{ .PublicName }} = {{ $wsprefix }}NewStringAutoNull(c.String("{{ $prefix }}{{ .ComputedCliName }}")) } {{ end }} + {{ if or (eq .Type "complex") }} + if c.IsSet("{{ $prefix }}{{ .ComputedCliName }}") { + if u, ok := any(&template.{{ .PublicName }}).(encoding.TextUnmarshaler); ok { + u.UnmarshalText([]byte(c.String("{{ $prefix }}{{ .ComputedCliName }}"))) + } + } + {{ end }} {{ if or (eq .Type "bool?") }} if c.IsSet("{{ $prefix }}{{ .ComputedCliName }}") { template.{{ .PublicName }} = {{ $wsprefix }}NewBoolAutoNull(c.String("{{ $prefix }}{{ .ComputedCliName }}")) diff --git a/modules/fireback/definitions.go b/modules/fireback/definitions.go index 90d26ca91..b6ddb9fe8 100644 --- a/modules/fireback/definitions.go +++ b/modules/fireback/definitions.go @@ -2,6 +2,7 @@ package fireback import ( "encoding/json" + reflect "reflect" "gopkg.in/yaml.v2" "gorm.io/gorm" @@ -127,3 +128,9 @@ func (x *QueryResultMeta) Json() string { } return "" } + +// Checks if the underlying value is a nil error. +// Using IError sometimes causes the err to not be nil, but underlying value is nil +func IsErr(err error) bool { + return err != nil && !reflect.ValueOf(err).IsNil() +} diff --git a/modules/fireback/fireback-app.go b/modules/fireback/fireback-app.go index 20f1faef4..5064353de 100644 --- a/modules/fireback/fireback-app.go +++ b/modules/fireback/fireback-app.go @@ -114,26 +114,6 @@ func GetCliCommands(x *FirebackApp) []cli.Command { return commands } -// func GetCliCommands(x *FirebackApp) []cli.Command { -// commands := []cli.Command{} - -// for _, module := range x.Modules { -// commands = append(commands, module.CliHandlers...) -// for _, bundle := range module.EntityBundles { -// commands = append(commands, bundle.CliCommands...) -// } - -// if module.CliActionsBundle != nil { -// commands = append(commands, *module.CliActionsBundle) -// } - -// } - -// commands = append(commands, x.CliActions()...) - -// return commands -// } - func GetReportCommands(x *FirebackApp) []cli.Command { commands := []cli.Command{} diff --git a/modules/fireback/fireback-entity-to-emi.go b/modules/fireback/fireback-entity-to-emi.go new file mode 100644 index 000000000..c9873b1a3 --- /dev/null +++ b/modules/fireback/fireback-entity-to-emi.go @@ -0,0 +1,109 @@ +package fireback + +import ( + "fmt" + + "github.com/torabian/emi/lib/core" +) + +// This file converts entities from fireback into the emi dto and actions +// Fireback won't generate rpc code anymore, therefor this will be an option to give some +// control over actions being generated. + +type EntityEmiData struct { + Actions []*FirebackEmiAction `json:"actions"` + Dtos []*core.EmiDto `json:"dtos"` +} + +func ConvertEntityToEmi(entity Module3Entity) EntityEmiData { + res := EntityEmiData{} + + refDto := core.EmiDto{} + var walk func(fields []*Module3Field) []*core.EmiField + walk = func(fields []*Module3Field) []*core.EmiField { + + emiFields := []*core.EmiField{} + for _, field := range fields { + newField := &core.EmiField{ + Name: field.Name, + Type: core.FieldType(field.Type), + } + + if len(field.Fields) > 0 { + newField.Fields = walk(field.Fields) + } + + emiFields = append(emiFields, newField) + } + + return emiFields + } + + refDto.Name = entity.Name + refDto.Fields = walk(entity.Fields) + // res.Dtos = append(res.Dtos, &refDto) + + { + action := FirebackEmiAction{ + EmiAction: core.EmiAction{ + + Name: fmt.Sprintf("create%v", entity.Upper()), + Url: fmt.Sprintf("/%v", entity.DashedName()), + Method: "post", + In: &core.EmiActionBody{ + Fields: refDto.Fields, + }, + Out: &core.EmiActionBody{ + Fields: refDto.Fields, + }, + }, + } + res.Actions = append(res.Actions, &action) + } + + { + action := FirebackEmiAction{ + EmiAction: core.EmiAction{ + + Name: fmt.Sprintf("update%v", entity.Upper()), + Url: fmt.Sprintf("/%v", entity.DashedName()), + Method: "patch", + }, + } + res.Actions = append(res.Actions, &action) + } + { + action := FirebackEmiAction{ + EmiAction: core.EmiAction{ + + Name: fmt.Sprintf("query%v", ToUpper(entity.PluralName())), + Url: fmt.Sprintf("/%v", entity.DashedName()), + Method: "get", + }, + } + res.Actions = append(res.Actions, &action) + } + { + action := FirebackEmiAction{ + EmiAction: core.EmiAction{ + + Name: fmt.Sprintf("delete%v", entity.Upper()), + Url: fmt.Sprintf("/%v", entity.DashedName()), + Method: "delete", + }, + } + res.Actions = append(res.Actions, &action) + } + { + action := FirebackEmiAction{ + EmiAction: core.EmiAction{ + + Name: fmt.Sprintf("delete%v", ToUpper(entity.PluralName())), + Url: fmt.Sprintf("/%v", entity.DashedName()), + Method: "delete", + }, + } + res.Actions = append(res.Actions, &action) + } + return res +} diff --git a/modules/fireback/firebackgogen.go b/modules/fireback/firebackgogen.go index 952774c86..d9bd8d028 100644 --- a/modules/fireback/firebackgogen.go +++ b/modules/fireback/firebackgogen.go @@ -53,6 +53,10 @@ func GolangComputedField(field *Module3Field, isWorkspace bool) string { return "int64" case "boolean": return "*bool" + + case "complex": + return field.Complex + case "double": return "*float64" case FIELD_TYPE_OBJECT: diff --git a/modules/fireback/module3-json-schema.json b/modules/fireback/module3-json-schema.json index 39aa42dbe..f644e80c5 100644 --- a/modules/fireback/module3-json-schema.json +++ b/modules/fireback/module3-json-schema.json @@ -1043,23 +1043,14 @@ "type": { "type": "string", "enum": [ - "string?", + "complex", "int?", "float64?", - "money?", - "xfile?", "float32?", "bool?", "int32?", "int64?", "int", - "datetime", - "json", - "datenano", - "html", - "text", - "date", - "daterange", "collection", "slice", "enum", @@ -1067,13 +1058,16 @@ "one", "int64", "float64", - "duration?", "object", "array", "string" ], "description": "Type of the field based on Fireback types." }, + "complex": { + "type": "string", + "description": "The complex class which will be used for data type complex" + }, "primitive": { "type": "string", "description": "Primitive type in golang when type: slice is set" diff --git a/modules/fireback/module3/m3angular/angular-actions-service.go b/modules/fireback/module3/m3angular/angular-actions-service.go deleted file mode 100644 index 5df949444..000000000 --- a/modules/fireback/module3/m3angular/angular-actions-service.go +++ /dev/null @@ -1,104 +0,0 @@ -package m3angular - -// In Angular, on top of the existing pure javascript for each action, -// We need to create a service which would combine - -import ( - "bytes" - "fmt" - "strings" - "text/template" - - "github.com/torabian/fireback/modules/fireback/module3/mcore" -) - -// represents each function in the service in Angular, which will be callable to make a -// action (http/socket/etc), we first compute that information -type angularServiceActionItem struct { - FunctionSignature string - - // the function on angular http client service will be called, such this.http.post,get - AngularHttpMethodFunction string -} - -func AngularActionsClass(module *mcore.Module3, ctx mcore.MicroGenContext) (*mcore.CodeChunkCompiled, error) { - - const tmpl = `/** -* Angular service for actions -*/ - -@Injectable({ providedIn: 'root' }) -export class {{ .className }} { - - constructor(private http: HttpClient) {} - - {{ range .angularServiceActionItems }} - {{ .FunctionSignature }} { - /* - // convert custom headers/query to Angular compatible objects - const httpHeaders = new HttpHeaders(headers?.toObject() ?? {}); - const httpParams = new HttpParams({ fromObject: Object.fromEntries(query?.entries() ?? []) }); - return this.http.{{ .AngularHttpMethodFunction }}( - this.baseUrl + 'create', - body, - { headers: httpHeaders, params: httpParams } - ); - */ - } - {{end }} -} - -` - - angularServiceActionItems := []angularServiceActionItem{} - // compute the actions as functions to be placed inside the service - for _, action := range module.Actions { - angularServiceActionItems = append(angularServiceActionItems, angularServiceActionItem{ - FunctionSignature: fmt.Sprintf("%v(body: any, options: any, overrideUrl?: string)", action.Name), - AngularHttpMethodFunction: strings.ToLower(action.Method), - }) - } - - t := template.Must(template.New("action").Funcs(mcore.CommonMap).Parse(tmpl)) - className := fmt.Sprintf("%vActionsService", mcore.ToUpper(module.Name)) - - var buf bytes.Buffer - if err := t.Execute(&buf, mcore.H{ - "shouldExport": true, - "angularServiceActionItems": angularServiceActionItems, - "className": className, - }); err != nil { - return nil, err - } - - res := &mcore.CodeChunkCompiled{ - ActualScript: buf.Bytes(), - SuggestedFileName: className, - SuggestedExtension: ".ts", - } - - res.CodeChunkDependenies = append(res.CodeChunkDependenies, mcore.CodeChunkDependency{ - Objects: []string{ - "Injectable", - }, - Location: "@angular/core", - }) - - res.CodeChunkDependenies = append(res.CodeChunkDependenies, mcore.CodeChunkDependency{ - Objects: []string{ - "HttpClient", - "HttpHeaders", - "HttpParams", - }, - Location: "@angular/common/http", - }) - - res.CodeChunkDependenies = append(res.CodeChunkDependenies, mcore.CodeChunkDependency{ - Objects: []string{ - "Observable", - }, - Location: "rxjs", - }) - - return res, nil -} diff --git a/modules/fireback/module3/m3angular/angular-module.go b/modules/fireback/module3/m3angular/angular-module.go deleted file mode 100644 index dd5d5cdec..000000000 --- a/modules/fireback/module3/m3angular/angular-module.go +++ /dev/null @@ -1,33 +0,0 @@ -package m3angular - -// Combines multiple parts of an Module3Action definition into a single file and generates -// the webrequestX based class for communication - -import ( - "errors" - - "github.com/torabian/fireback/modules/fireback/module3/m3js" - "github.com/torabian/fireback/modules/fireback/module3/mcore" -) - -// Combines entire features for a module, and creates a virtual map of the files -func AngularModuleFullVirtualFiles(module *mcore.Module3, ctx mcore.MicroGenContext) ([]mcore.VirtualFile, error) { - - files := []mcore.VirtualFile{} - - // step 1 - create the actions services - if result, err := AngularActionsClass(module, ctx); err != nil { - return nil, errors.New("angular actions class generation failed") - } else { - - importsList := m3js.CombineImportsJsWorld(*result) - - files = append(files, mcore.VirtualFile{ - Name: result.SuggestedFileName, - ActualScript: importsList + "\r\n" + string(result.ActualScript), - Extension: result.SuggestedExtension, - }) - } - - return files, nil -} diff --git a/modules/fireback/module3/m3js/helpers.go b/modules/fireback/module3/m3js/helpers.go deleted file mode 100644 index 42ba96ebf..000000000 --- a/modules/fireback/module3/m3js/helpers.go +++ /dev/null @@ -1,44 +0,0 @@ -package m3js - -import ( - "fmt" - "sort" - "strings" - - "github.com/torabian/fireback/modules/fireback/module3/mcore" -) - -// In this file we are going to put small functions which can generate code for different languages - -func CombineImportsJsWorld(chunk mcore.CodeChunkCompiled) string { - // group by location - locMap := map[string]map[string]struct{}{} - - for _, dep := range chunk.CodeChunkDependenies { - if _, ok := locMap[dep.Location]; !ok { - locMap[dep.Location] = map[string]struct{}{} - } - for _, obj := range dep.Objects { - locMap[dep.Location][obj] = struct{}{} - } - } - - // build final import statements - var importsList []string - for loc, objs := range locMap { - // sort objects for deterministic output - objSlice := make([]string, 0, len(objs)) - for obj := range objs { - objSlice = append(objSlice, obj) - } - sort.Strings(objSlice) - statement := fmt.Sprintf("import { %s } from '%s';", strings.Join(objSlice, ", "), loc) - importsList = append(importsList, statement) - } - - // sort imports by location for consistency - sort.Strings(importsList) - - // combine with actual script - return strings.Join(importsList, "\r\n") -} diff --git a/modules/fireback/module3/m3js/js-action-fetch.go b/modules/fireback/module3/m3js/js-action-fetch.go deleted file mode 100644 index 5a0b23bef..000000000 --- a/modules/fireback/module3/m3js/js-action-fetch.go +++ /dev/null @@ -1,105 +0,0 @@ -// For each action, we produce a meta class to hold the method, default url, -// and such details, and provide a function to mimic the call with type safety. - -package m3js - -import ( - "bytes" - "fmt" - "text/template" - - "github.com/gin-gonic/gin" - "github.com/torabian/fireback/modules/fireback/module3/mcore" -) - -func findTokenByName(realms []mcore.GeneratedScriptToken, name string) *mcore.GeneratedScriptToken { - - for _, item := range realms { - if item.Name == name { - return &item - } - } - - return nil -} - -func JsActionFetchAndMetaData(action *mcore.Module3Action, realms jsActionRealms, ctx mcore.MicroGenContext) (*mcore.CodeChunkCompiled, error) { - className := fmt.Sprintf("Fetch%vAction", mcore.ToUpper(action.Name)) - - res := &mcore.CodeChunkCompiled{} - // How to do it iterte and call Compile? - - const tmpl = `/** - * {{.className}} - */ - -export class {{ .className }} { - static URL = '{{ .action.Url }}'; - static Method = '{{ .action.Method }}'; - - {{ .axiosStaticFunction }} - - {{ .fetchStaticFunction }} -} -` - - fetchctx := fetchStaticFunctionContext{ - DefaultUrlVariable: fmt.Sprintf("%v.URL", className), - } - - if realms.ResponseClass != nil { - responseClassToken := findTokenByName(realms.ResponseClass.Tokens, TOKEN_ROOT_CLASS) - if responseClassToken != nil { - - // Not sure about this yet. Primitives also can be a class, right? - // therefor they might not need to cast to json, but still you need to create a class out of them. - fetchctx.CastToJson = true - fetchctx.ResponseClass = responseClassToken.Value - } - } - - if realms.RequestHeadersClass != nil { - requestHeadersClassToken := findTokenByName(realms.RequestHeadersClass.Tokens, TOKEN_ROOT_CLASS) - if requestHeadersClassToken != nil { - fetchctx.RequestHeadersClass = requestHeadersClassToken.Value - } - } - - if realms.QueryStringClass != nil { - qsClassToken := findTokenByName(realms.QueryStringClass.Tokens, TOKEN_ROOT_CLASS) - if qsClassToken != nil { - fetchctx.QueryStringClass = qsClassToken.Value - } - } - - // Add the axios helper function to the response depencencies, - axiosStaticFunction, err := AxiosStaticHelper(fetchctx, ctx) - if err != nil { - return nil, err - } - res.CodeChunkDependenies = append(res.CodeChunkDependenies, axiosStaticFunction.CodeChunkDependenies...) - - // add the native fetch function to the axios - fetchStaticFunction, err := FetchStaticHelper(fetchctx, ctx) - if err != nil { - return nil, err - } - res.CodeChunkDependenies = append(res.CodeChunkDependenies, fetchStaticFunction.CodeChunkDependenies...) - - t := template.Must(template.New("qsclass").Funcs(mcore.CommonMap).Parse(tmpl)) - - var buf bytes.Buffer - if err := t.Execute(&buf, gin.H{ - "action": action, - "axiosStaticFunction": string(axiosStaticFunction.ActualScript), - "fetchStaticFunction": string(fetchStaticFunction.ActualScript), - "shouldExport": true, - "className": className, - }); err != nil { - return nil, err - } - - res.ActualScript = []byte(buf.Bytes()) - - return res, nil -} diff --git a/modules/fireback/module3/m3js/js-action.go b/modules/fireback/module3/m3js/js-action.go deleted file mode 100644 index 41df42bc2..000000000 --- a/modules/fireback/module3/m3js/js-action.go +++ /dev/null @@ -1,131 +0,0 @@ -package m3js - -// Combines multiple parts of an Module3Action definition into a single file and generates -// the webrequestX based class for communication - -import ( - "bytes" - "fmt" - "strings" - "text/template" - - "github.com/torabian/fireback/modules/fireback/module3/mcore" -) - -type jsActionRealms struct { - RequestClass *mcore.CodeChunkCompiled - ResponseClass *mcore.CodeChunkCompiled - QueryStringClass *mcore.CodeChunkCompiled - RequestHeadersClass *mcore.CodeChunkCompiled -} - -func JsActionClass(action *mcore.Module3Action, ctx mcore.MicroGenContext) (*mcore.CodeChunkCompiled, error) { - actionRealms := jsActionRealms{} - - res := &mcore.CodeChunkCompiled{} - - // Header is the http headers, extending the Headers class from standard javascript - header, err := JsActionHeaderClass(action, ctx) - if err != nil { - return nil, err - } - res.CodeChunkDependenies = append(res.CodeChunkDependenies, header.CodeChunkDependenies...) - actionRealms.RequestHeadersClass = header - - // Query strings for the request builder - qs, err := JsActionQsClass(action, ctx) - if err != nil { - return nil, err - } - res.CodeChunkDependenies = append(res.CodeChunkDependenies, qs.CodeChunkDependenies...) - actionRealms.QueryStringClass = qs - - // Action request (in) - if action.In != nil && len(action.In.Fields) > 0 { - fields, err := JsCommonObjectGenerator(action.In.Fields, ctx, JsCommonObjectContext{ - RootClassName: action.Name + "Req", - }) - - if err != nil { - return nil, err - } - - res.CodeChunkDependenies = append(res.CodeChunkDependenies, fields.CodeChunkDependenies...) - actionRealms.RequestClass = fields - } - - // Action response (out) - if action.Out != nil && len(action.Out.Fields) > 0 { - fields, err := JsCommonObjectGenerator(action.Out.Fields, ctx, JsCommonObjectContext{ - RootClassName: action.Name + "Res", - }) - - if err != nil { - return nil, err - } - - res.CodeChunkDependenies = append(res.CodeChunkDependenies, fields.CodeChunkDependenies...) - actionRealms.ResponseClass = fields - } - - fetch, err := JsActionFetchAndMetaData(action, actionRealms, ctx) - if err != nil { - return nil, err - } - - res.CodeChunkDependenies = append(res.CodeChunkDependenies, fetch.CodeChunkDependenies...) - - const tmpl = `/** -* Action to communicate with the action {{ .action.Name }} -*/ - -{{ if .fetch }} - {{ .fetch }} -{{ end }} - -{{ if .realms.RequestClass }} -{{ b2s .realms.RequestClass.ActualScript }} -{{ end }} - -{{ if .realms.ResponseClass }} -{{ b2s .realms.ResponseClass.ActualScript }} -{{ end }} - -{{ if .headerCompiledClass }} -{{ .headerCompiledClass }} -{{ end }} - -{{ if .qsCompiledClass }} -{{ .qsCompiledClass }} -{{ end }} - -` - - t := template.Must(template.New("action").Funcs(mcore.CommonMap).Parse(tmpl)) - nestJsDecorator := strings.Contains(ctx.Tags, GEN_NEST_JS_COMPATIBILITY) - isTypeScript := strings.Contains(ctx.Tags, GEN_TYPESCRIPT_COMPATIBILITY) - - var buf bytes.Buffer - if err := t.Execute(&buf, mcore.H{ - "action": action, - "headerCompiledClass": string(header.ActualScript), - "qsCompiledClass": string(qs.ActualScript), - "shouldExport": true, - "nestjsDecorator": nestJsDecorator, - "fetch": string(fetch.ActualScript), - "realms": actionRealms, - "className": fmt.Sprintf("%vAction", action.Upper()), - }); err != nil { - return nil, err - } - - res.ActualScript = buf.Bytes() - res.SuggestedFileName = mcore.ToUpper(action.Name) + "Action" - res.SuggestedExtension = ".js" - - if isTypeScript { - res.SuggestedExtension = ".ts" - } - - return res, nil -} diff --git a/modules/fireback/module3/m3js/js-common-object.go b/modules/fireback/module3/m3js/js-common-object.go deleted file mode 100644 index 33f674437..000000000 --- a/modules/fireback/module3/m3js/js-common-object.go +++ /dev/null @@ -1,299 +0,0 @@ -// Renders the common object, such as entities, dtos. - -package m3js - -import ( - "bytes" - "fmt" - "strings" - "text/template" - - "github.com/torabian/fireback/modules/fireback/module3/mcore" -) - -type jsRenderedDataClass struct { - ClassName string - Fields []jsRenderedField - Signature string - JsDoc string - SubClasses []jsRenderedDataClass - ClassStaticFunctions []string -} - -// Each field when rendered, becomes like this -type jsRenderedField struct { - Name string - Type string - Children []jsRenderedField - Output string - GetterFunc string - SetterFunc string -} - -// Some field types such as array and object, -// need to have the correct generated class to be assigned to them. -func jsFieldTypeOnNestedClasses(field *mcore.Module3Field, parentChain string) string { - - if field.Type == mcore.FIELD_TYPE_ARRAY { - return mcore.ToUpper(parentChain) + "." + mcore.ToUpper(field.Name) - } - - return TsComputedField(field, false) -} - -func jsRenderField(field *mcore.Module3Field, parentChain string) jsRenderedField { - - jsdoc := NewJsDoc(" ") - jsdoc.Add(fmt.Sprintf("@type {%v}", jsFieldTypeOnNestedClasses(field, parentChain))) - jsdoc.Add(fmt.Sprintf("@description %v", field.Description)) - output := fmt.Sprintf("%v %v;", jsdoc.String(), field.PrivateName()) - - getterjsdoc := NewJsDoc(" ") - getterjsdoc.Add(fmt.Sprintf("@returns {%v}", jsFieldTypeOnNestedClasses(field, parentChain))) - getterjsdoc.Add(fmt.Sprintf("@description %v", field.Description)) - getterFunc := getterjsdoc.String() + fmt.Sprintf("get%v () { return this[`%v`] }", mcore.ToUpper(field.Name), field.Name) - - setterjsdoc := NewJsDoc(" ") - setterjsdoc.Add(fmt.Sprintf("@param {%v}", jsFieldTypeOnNestedClasses(field, parentChain))) - setterjsdoc.Add(fmt.Sprintf("@description %v", field.Description)) - setterFunc := setterjsdoc.String() + fmt.Sprintf("set%v (value) { this[`%v`] = value; return this; }", mcore.ToUpper(field.Name), field.Name) - - return jsRenderedField{ - Name: field.Name, - Type: field.Type, - Output: output, - SetterFunc: setterFunc, - GetterFunc: getterFunc, - } -} - -func jsRenderFieldsShallow(fields []*mcore.Module3Field, parentChain string) []jsRenderedField { - - output := []jsRenderedField{} - - for _, field := range fields { - item := jsRenderField(field, parentChain) - output = append(output, item) - } - - return output -} - -func jsRenderDataClasses(fields []*mcore.Module3Field, className string, treeLocation string, isFirst bool) []jsRenderedDataClass { - var content []jsRenderedDataClass - - jsdoc := NewJsDoc(" ").Add(fmt.Sprintf("@decription The base class definition for %v", mcore.ToLower(className))) - signature := fmt.Sprintf("export class %v", mcore.ToUpper(className)) - - // When it's first one, we use class. For children, signature is a bit different since they go inside. - if !isFirst { - signature = fmt.Sprintf("static %v = class %v", className, className) - } - - currentClass := jsRenderedDataClass{ - ClassName: mcore.ToUpper(className), - Fields: jsRenderFieldsShallow(fields, treeLocation), - JsDoc: jsdoc.String(), - Signature: signature, - } - - // then descend into object/array fields - for _, field := range fields { - if field.Type == mcore.FIELD_TYPE_ARRAY { - childName := mcore.ToUpper(field.Name) - currentClass.SubClasses = append(currentClass.SubClasses, jsRenderDataClasses(field.Fields, mcore.ToUpper(childName), treeLocation+"."+mcore.ToUpper(childName), false)...) - } - } - - content = append(content, currentClass) - - return content -} - -type JsCommonObjectContext struct { - - // The class name which will be used to generate nested classes, - // in case of array or object - RootClassName string -} - -var TOKEN_ROOT_CLASS = "root.class" - -// This function can be used in different locations of the code generation, -// creates dtos, entities for actions or other specs. -func JsCommonObjectGenerator(fields []*mcore.Module3Field, ctx mcore.MicroGenContext, jsctx JsCommonObjectContext) (*mcore.CodeChunkCompiled, error) { - res := &mcore.CodeChunkCompiled{} - - renderedClasses := jsRenderDataClasses(fields, jsctx.RootClassName, jsctx.RootClassName, true) - - if len(renderedClasses) > 0 { - res.Tokens = append(res.Tokens, mcore.GeneratedScriptToken{ - Name: TOKEN_ROOT_CLASS, - Value: renderedClasses[0].ClassName, - }) - } - - if nestJsDecorator := strings.Contains(ctx.Tags, GEN_NEST_JS_COMPATIBILITY); nestJsDecorator && len(renderedClasses) > 0 { - // If nest.js decorator is needed, what we are gonna do is to add the static Nest function - // to the object. The important thing is we only add static Nest to first class, not children - - staticFunction, err := JsNestJsStaticDecorator(NestJsStaticDecoratorContext{ - ClassInstance: renderedClasses[0].ClassName, - NestJsStaticFunctionUseCase: RequestBody, - }, ctx) - if err != nil { - return nil, err - } - - // Make sure to add dependencies to render tree - res.CodeChunkDependenies = append(res.CodeChunkDependenies, staticFunction.CodeChunkDependenies...) - - // Add the static function to the class bottom - renderedClasses[0].ClassStaticFunctions = append( - renderedClasses[0].ClassStaticFunctions, - string(staticFunction.ActualScript), - ) - - } - - const tmpl = ` -{{ define "printClass" }} -{{ .JsDoc }} -{{ .Signature }} { - {{ range .Fields }} - {{ .Output }} - {{ .GetterFunc }} - {{ .SetterFunc }} - {{ end }} - - {{ range .SubClasses }} - {{ template "printClass" . }} - {{ end }} - - /** a placeholder for WebRequestX auto patching the json content to the object **/ - static __jsonParsable; - - {{ range .ClassStaticFunctions }} - {{ . }} - {{ end }} -} -{{ end }} - - -{{ range .renderedClasses }} - {{ template "printClass" . }} -{{ end }} - -{{ define "matches" }} - {{ range .Matches }} - get {{$.Name}}As{{ .PublicName }}(): {{ .PublicName }} | null { - return this.{{$.Name}} as any; - } - {{ end }} -{{ end }} -` - - t := template.Must(template.New("action").Funcs(mcore.CommonMap).Parse(tmpl)) - nestJsDecorator := strings.Contains(ctx.Tags, GEN_NEST_JS_COMPATIBILITY) - - var buf bytes.Buffer - if err := t.Execute(&buf, mcore.H{ - "shouldExport": true, - "nestjsDecorator": nestJsDecorator, - "renderedClasses": renderedClasses, - "fields": fields, - }); err != nil { - return nil, err - } - - res.ActualScript = buf.Bytes() - - return res, nil -} - -func TsComputedField(field *mcore.Module3Field, isWorkspace bool) string { - switch field.Type { - case "string", "text": - return "string" - case "one": - return field.Target - case "daterange": - return "any" - case "enum": - items := []string{} - for _, item := range field.OfType { - items = append(items, "\""+item.Key+"\"") - } - return strings.Join(items, " | ") - case "json": - return TsCalcJsonField(field) - case "collection": - return field.Target + "[]" - case "int64?", "int32?", "int?", "float64?", "float32?": - return "number" - case "bool?": - return "boolean" - case "array": - return field.PublicName() + "[]" - case "slice": - return TsPrimitve(field.Primitive) + "[]" - case "html": - return "string" - case "int64", "int32", "int": - return "number" - case "float64", "float32", "float": - return "number" - case "bool": - return "boolean" - case "Timestamp", "datenano": - return "string" - case "date": - return "Date" - case "double": - return "number" - case mcore.FIELD_TYPE_OBJECT: - return field.PublicName() - case "money?": - return "{amount: number, currency: string, formatted?: string}" - default: - return "string" - // return field.Type - } -} - -func TsPrimitve(primitive string) string { - switch primitive { - case "string", "text": - return "string" - case "string?", "text?": - return "string" - case "int64", "int32", "int", "float64", "float32": - return "number" - case "int64?", "int32?", "int?", "float64?", "float32?": - return "number" - case "bool": - return "boolean" - case "bool?": - return "boolean" - default: - return "unknown" - } -} - -func TsCalcJsonField(field *mcore.Module3Field) string { - t := []string{} - - if len(field.Matches) > 0 { - - for _, match := range field.Matches { - if match.Dto != nil { - t = append(t, match.PublicName()) - } - } - - } else { - t = append(t, "any") - } - - return strings.Join(t, "|") -} diff --git a/modules/fireback/module3/m3js/js-headers.go b/modules/fireback/module3/m3js/js-headers.go deleted file mode 100644 index 8a41a311c..000000000 --- a/modules/fireback/module3/m3js/js-headers.go +++ /dev/null @@ -1,193 +0,0 @@ -package m3js - -import ( - "bytes" - "fmt" - "regexp" - "strings" - "text/template" - "unicode" - - "github.com/torabian/fireback/modules/fireback/module3/mcore" -) - -type renderedJsHeader struct { - PropertyName string - Type string - Description string - GetterFunc string - SetterFunc string -} - -func normalizeJsHeaderType(value string) (string, error) { - switch value { - case "string": - return "string | null", nil - case "int64", "float64": - return "number | null", nil - case "bool": - return "boolean | null", nil - } - return "any", nil -} - -func renderJsTsCommonHeadersInfo(action *mcore.Module3Action) ([]renderedJsHeader, error) { - headers := []renderedJsHeader{} - for _, header := range action.Headers { - headerType, err := normalizeJsHeaderType(header.Type) - if err != nil { - return nil, err - } - funcName := mcore.ToUpper(headerNameNormalize(header.Name)) - headers = append(headers, renderedJsHeader{ - PropertyName: header.Name, - Type: headerType, - Description: header.Description, - GetterFunc: "get" + funcName, - SetterFunc: "set" + funcName, - }) - } - return headers, nil -} - -var GEN_NEST_JS_COMPATIBILITY string = "nestjs-headers-decorator" -var GEN_TYPESCRIPT_COMPATIBILITY string = "typescript" - -// generic renderer -func renderTsJsHeaderClass(ctx mcore.MicroGenContext, action *mcore.Module3Action, headers []renderedJsHeader, tmpl string) (*mcore.CodeChunkCompiled, error) { - t := template.Must(template.New("headerclass").Funcs(mcore.CommonMap).Parse(tmpl)) - nestJsDecorator := strings.Contains(ctx.Tags, GEN_NEST_JS_COMPATIBILITY) - className := fmt.Sprintf("%vHeaders", mcore.ToUpper(action.Name)) - - var buf bytes.Buffer - if err := t.Execute(&buf, mcore.H{ - "action": action, - "headers": headers, - "shouldExport": true, - "nestjsDecorator": nestJsDecorator, - "className": className, - }); err != nil { - return nil, err - } - - res := &mcore.CodeChunkCompiled{ - ActualScript: buf.Bytes(), - Tokens: []mcore.GeneratedScriptToken{ - { - Name: TOKEN_ROOT_CLASS, - Value: className, - }, - }, - } - - // If the code needs - if nestJsDecorator { - res.CodeChunkDependenies = append(res.CodeChunkDependenies, mcore.CodeChunkDependency{ - Objects: []string{ - "createParamDecorator", "ExecutionContext", - }, - Location: "@nestjs/common", - }) - } - - return res, nil -} - -func JsActionHeaderClass(action *mcore.Module3Action, ctx mcore.MicroGenContext) (*mcore.CodeChunkCompiled, error) { - const tmpl = `/** - * {{.className}} class - * Auto-generated from Module3Action - */ -{{ if .shouldExport -}} export {{- end }} class {{.className}} extends Headers { - - {{- range .headers }} - /** - * @returns { {{.Type}} } - * @description {{ .Description }} - */ - {{.GetterFunc}} () { - return this.#getTyped('{{.PropertyName}}', '{{.Type}}'); - } - /** - * @param { {{.Type}} } value - * @description {{ .Description }} - */ - {{.SetterFunc}} (value) { - this.set('{{.PropertyName}}', value); - return this; - } - {{- end }} - - // the getters generated by us would be casting types before returning. - // you still can use .get function to get the string value. - #getTyped(key, type) { - const val = this.get(key); - if (val == null) return null; - - const t = type.toLowerCase(); - - if (t.includes('number')) return Number(val); - if (t.includes('bool')) return val === 'true'; - return val; // string or any other fallback - } - - - /** - * @returns {Record} - * Converts Headers to plain object - */ - toObject() { - return Object.fromEntries(this.entries()); - } - - {{ if .nestjsDecorator }} - /** - * Nest.js decorator for controller headers. Instead of using @Headers() value: any, now you can use for example: - * @example - * @Get() - * getHello(@{{.className}}.Nest() headers: {{.className}}): string { - * return JSON.stringify(headers.getContentType()); - * } - */ - static Nest = createParamDecorator( - (_data, ctx) => { - // @ts-ignore - const request = ctx.switchToHttp().getRequest(); - // @ts-ignore - return new {{ .className }}(Object.entries(request.headers)); - }, - ); - - {{ end }} -} -` - result, err := renderJsTsCommonHeadersInfo(action) - if err != nil { - return nil, err - } - return renderTsJsHeaderClass(ctx, action, result, tmpl) -} - -var camelCaseRe = regexp.MustCompile(`^[a-z][a-zA-Z0-9]*$`) - -func headerNameNormalize(s string) string { - if camelCaseRe.MatchString(s) { - return s - } - re := regexp.MustCompile(`[^a-zA-Z0-9]+`) - s = re.ReplaceAllString(s, " ") - parts := strings.Fields(s) - if len(parts) == 0 { - return "" - } - result := strings.ToLower(parts[0]) - for _, p := range parts[1:] { - if p == "" { - continue - } - runes := []rune(p) - runes[0] = unicode.ToUpper(runes[0]) - result += string(runes) - } - return result -} diff --git a/modules/fireback/module3/m3js/js-jsdoc.go b/modules/fireback/module3/m3js/js-jsdoc.go deleted file mode 100644 index 5888c322a..000000000 --- a/modules/fireback/module3/m3js/js-jsdoc.go +++ /dev/null @@ -1,32 +0,0 @@ -package m3js - -type JsdocComment struct { - content []string - intend string -} - -func (x *JsdocComment) Add(line string) *JsdocComment { - x.content = append(x.content, "* "+line) - - return x -} - -func (x *JsdocComment) String() string { - data := []byte{'/', '*', '*', '\r', '\n'} - - for _, line := range x.content { - data = append(data, x.intend+line...) - data = append(data, []byte("\r\n")...) - } - - data = append(data, []byte(x.intend+"**/\r\n")...) - - return string(data) -} - -func NewJsDoc(intend string) *JsdocComment { - - return &JsdocComment{ - intend: intend, - } -} diff --git a/modules/fireback/module3/m3js/js-module.go b/modules/fireback/module3/m3js/js-module.go deleted file mode 100644 index 99b07f765..000000000 --- a/modules/fireback/module3/m3js/js-module.go +++ /dev/null @@ -1,39 +0,0 @@ -package m3js - -// Combines multiple parts of an Module3Action definition into a single file and generates -// the webrequestX based class for communication - -import ( - "github.com/torabian/fireback/modules/fireback/module3/mcore" -) - -func AsFullDocument(x *mcore.CodeChunkCompiled) string { - importsList := CombineImportsJsWorld(*x) - var finalContent string = importsList + "\r\n" + string(x.ActualScript) - - return finalContent -} - -// Combines entire features for a module, and creates a virtual map of the files -func JsModuleFullVirtualFiles(module *mcore.Module3, ctx mcore.MicroGenContext) ([]mcore.VirtualFile, error) { - - files := []mcore.VirtualFile{} - - // step1, is to compile all of the actions, since they are most important. - for _, action := range module.Actions { - - actionRendered, err := JsActionClass(action, ctx) - if err != nil { - return nil, err - } - - files = append(files, mcore.VirtualFile{ - Name: actionRendered.SuggestedFileName, - Extension: actionRendered.SuggestedExtension, - ActualScript: AsFullDocument(actionRendered), - }) - - } - - return files, nil -} diff --git a/modules/fireback/module3/m3js/js-nestjs-static-decorator.go b/modules/fireback/module3/m3js/js-nestjs-static-decorator.go deleted file mode 100644 index b75b1439c..000000000 --- a/modules/fireback/module3/m3js/js-nestjs-static-decorator.go +++ /dev/null @@ -1,93 +0,0 @@ -// For each action, we produce a meta class to hold the method, default url, -// and such details, and provide a function to mimic the call with type safety. - -package m3js - -import ( - "bytes" - "text/template" - - "github.com/gin-gonic/gin" - "github.com/torabian/fireback/modules/fireback/module3/mcore" -) - -type nestJsStaticFunctionUseCase int - -const ( - RequestBody nestJsStaticFunctionUseCase = iota - ResponseBody - RequestHeaders - ResponseHeaders - QueryString - QueryParams -) - -type NestJsStaticDecoratorContext struct { - - // The class which will be created out of the request. - ClassInstance string - - // represents location of the static function, to change the request section - // which will be created - NestJsStaticFunctionUseCase nestJsStaticFunctionUseCase -} - -// If we add a static decorator to some classes, we can used them directly in nest.js -// decorators, and req, res, headers, query strings will become typesafe automatically -func JsNestJsStaticDecorator(ctxstatic NestJsStaticDecoratorContext, ctx mcore.MicroGenContext) (*mcore.CodeChunkCompiled, error) { - - // How to do it iterte and call Compile? - - const tmpl = `/** - * Nest.js decorator for controller headers. Instead of using @Headers() value: any, now you can use for example: - * @example - * @Get() - * getHello(@{{.className}}.Nest() headers: {{.className}}): string { - * return JSON.stringify(headers.getContentType()); - * } - */ - static Nest = createParamDecorator( - (_data, ctx) => { - // @ts-ignore - const request = ctx.switchToHttp().getRequest(); - // @ts-ignore - return new {{ .ctx.ClassInstance }}( {{ .instanceArguments }} ); - }, - ); - -` - - // For different use cases, the argument might be different - instanceArguments := "null" - if ctxstatic.NestJsStaticFunctionUseCase == RequestHeaders { - instanceArguments = `Object.entries(request.headers)` - } - - if ctxstatic.NestJsStaticFunctionUseCase == RequestBody { - instanceArguments = `request.body` - } - - t := template.Must(template.New("qsclass").Funcs(mcore.CommonMap).Parse(tmpl)) - - var buf bytes.Buffer - if err := t.Execute(&buf, gin.H{ - "className": ctxstatic.ClassInstance, - "instanceArguments": instanceArguments, - "ctx": ctxstatic, - }); err != nil { - return nil, err - } - - res := &mcore.CodeChunkCompiled{ - ActualScript: []byte(buf.Bytes()), - } - - res.CodeChunkDependenies = append(res.CodeChunkDependenies, mcore.CodeChunkDependency{ - Objects: []string{ - "createParamDecorator", "ExecutionContext", - }, - Location: "@nestjs/common", - }) - - return res, nil -} diff --git a/modules/fireback/module3/m3js/js-query-params.go b/modules/fireback/module3/m3js/js-query-params.go deleted file mode 100644 index 3d62e256f..000000000 --- a/modules/fireback/module3/m3js/js-query-params.go +++ /dev/null @@ -1,159 +0,0 @@ -// Contains code to generate type-safe query class for javascript, and typescript definitions -// Basically, it would extend the queries class from native javascript, and add the keys there. -// It's a direct drop in for UrlSearchParams, and works as expected with all libraries. - -// When modifiying this file, test both js and ts definition are in sync. - -package m3js - -import ( - "bytes" - "fmt" - "strings" - "text/template" - - "github.com/gin-gonic/gin" - "github.com/torabian/fireback/modules/fireback/module3/mcore" -) - -type renderedQsField struct { - PropertyName string - Type string - Description string - GetterFunc string - SetterFunc string -} - -func renderJsTsCommonQsInfo(action *mcore.Module3Action) ([]renderedQsField, error) { - fields := []renderedQsField{} - for _, query := range action.Query { - queryType, err := normalizeJsHeaderType(query.Type) - if err != nil { - return nil, err - } - funcName := mcore.ToUpper(headerNameNormalize(query.Name)) - fields = append(fields, renderedQsField{ - PropertyName: query.Name, - Type: queryType, - Description: query.Description, - GetterFunc: "get" + funcName, - SetterFunc: "set" + funcName, - }) - } - - return fields, nil -} - -// generic renderer -func renderTsJsQsClass(ctx mcore.MicroGenContext, action *mcore.Module3Action, fields []renderedQsField, tmpl string) (*mcore.CodeChunkCompiled, error) { - t := template.Must(template.New("qsclass").Funcs(mcore.CommonMap).Parse(tmpl)) - nestJsDecorator := strings.Contains(ctx.Tags, GEN_NEST_JS_COMPATIBILITY) - className := fmt.Sprintf("%vQueryParams", mcore.ToUpper(action.Name)) - - var buf bytes.Buffer - if err := t.Execute(&buf, gin.H{ - "action": action, - "fields": fields, - "shouldExport": true, - "nestjsDecorator": nestJsDecorator, - "className": className, - }); err != nil { - return nil, err - } - - res := &mcore.CodeChunkCompiled{ - ActualScript: buf.Bytes(), - } - - res.CodeChunkDependenies = append(res.CodeChunkDependenies, mcore.CodeChunkDependency{ - Objects: []string{ - "URLSearchParamsX", - }, - Location: INTERNAL_SDK_LOCATION, - }) - - res.Tokens = append(res.Tokens, mcore.GeneratedScriptToken{ - Name: TOKEN_ROOT_CLASS, - Value: className, - }) - - // If the code needs - if nestJsDecorator { - res.CodeChunkDependenies = append(res.CodeChunkDependenies, mcore.CodeChunkDependency{ - Objects: []string{ - "createParamDecorator", "ExecutionContext", - }, - Location: "@nestjs/common", - }) - } - - return res, nil -} - -func JsActionQsClass(action *mcore.Module3Action, ctx mcore.MicroGenContext) (*mcore.CodeChunkCompiled, error) { - const tmpl = `/** - * {{.className}} class - * Auto-generated from Module3Action - */ -{{ if .shouldExport -}} export {{- end }} class {{.className}} extends URLSearchParamsX { - - {{- range .fields }} - /** - * @returns { {{.Type}} } - * @description {{ .Description }} - */ - {{.GetterFunc}} () { - return this.#getTyped('{{.PropertyName}}' , '{{.Type}}'); - } - /** - * @param { {{.Type}} } value - * @description {{ .Description }} - */ - {{.SetterFunc}} (value) { - this.set('{{.PropertyName}}', value); - return this; - } - {{- end }} - - - // the getters generated by us would be casting types before returning. - // you still can use .get function to get the string value. - #getTyped(key, type) { - const val = this.get(key); - if (val == null) return null; - - const t = type.toLowerCase(); - - if (t.includes('number')) return Number(val); - if (t.includes('bool')) return val === 'true'; - return val; // string or any other fallback - } - - - {{ if .nestjsDecorator }} - /** - * Nest.js decorator for controller query. Instead of using @Query() value: any, now you can use for example: - * @example - * @Get() - * getHello(@{{ .className }}.Nest() query: {{ .className }}): string { - * return JSON.stringify(query.getMyfield()); - * } - */ - static Nest = createParamDecorator( - (_data, ctx) => { - // @ts-ignore - const request = ctx.switchToHttp().getRequest(); - // @ts-ignore - return new {{ .className }}(request.query); - }, - ); - - {{ end }} -} -` - result, err := renderJsTsCommonQsInfo(action) - if err != nil { - return nil, err - } - return renderTsJsQsClass(ctx, action, result, tmpl) -} diff --git a/modules/fireback/module3/m3js/js-static-axios.go b/modules/fireback/module3/m3js/js-static-axios.go deleted file mode 100644 index 0aadd2405..000000000 --- a/modules/fireback/module3/m3js/js-static-axios.go +++ /dev/null @@ -1,81 +0,0 @@ -// For each action, we produce a meta class to hold the method, default url, -// and such details, and provide a function to mimic the call with type safety. - -package m3js - -import ( - "bytes" - "fmt" - "strings" - "text/template" - - "github.com/torabian/fireback/modules/fireback/module3/mcore" -) - -// generates a static function, to developers prefer to make calls via axios -// axios context does not exists, uses the fetch native data -func AxiosStaticHelper(fetchctx fetchStaticFunctionContext, ctx mcore.MicroGenContext) (*mcore.CodeChunkCompiled, error) { - claims := []mcore.JsFnArgument{ - { - Key: "axios.clientInstance", - Ts: "clientInstance: AxiosInstance", - Js: "clientInstance", - }, - { - Key: "axios.config", - Ts: "config: AxiosRequestConfig", - Js: "config", - }, - { - Key: "axios.request.generic", - Js: "", - Ts: ", unknown>", - }, - } - - claimsRendered := mcore.ClaimRender(claims, ctx) - - const tmpl = ` - static Axios = (|@axios.clientInstance|, |@axios.config|) => - clientInstance - .request|@axios.request.generic|(config) - - {{ if and .fetchctx.CastToJson .fetchctx.ResponseClass }} - .then((res) => { - return { - ...res, - - - // if there is a output class, create instance out of it. - data: new {{ .fetchctx.ResponseClass }}(res.data), - }; - }); - {{ end }} - ` - - t := template.Must(template.New("axioshelper").Funcs(mcore.CommonMap).Parse(tmpl)) - var buf bytes.Buffer - if err := t.Execute(&buf, mcore.H{ - "claims": claimsRendered, - "fetchctx": fetchctx, - }); err != nil { - return nil, err - } - - templateResult := buf.String() - for key, value := range claimsRendered { - templateResult = strings.ReplaceAll(templateResult, fmt.Sprintf("|@%v|", key), value) - } - - res := &mcore.CodeChunkCompiled{ - ActualScript: []byte(templateResult), - CodeChunkDependenies: []mcore.CodeChunkDependency{ - { - Objects: []string{"AxiosInstance", "AxiosRequestConfig", "AxiosResponse"}, - Location: "axios", - }, - }, - } - - return res, nil -} diff --git a/modules/fireback/module3/m3js/js-static-fetch.go b/modules/fireback/module3/m3js/js-static-fetch.go deleted file mode 100644 index 19a1aea15..000000000 --- a/modules/fireback/module3/m3js/js-static-fetch.go +++ /dev/null @@ -1,111 +0,0 @@ -// For each action, we produce a meta class to hold the method, default url, -// and such details, and provide a function to mimic the call with type safety. - -package m3js - -import ( - "bytes" - "fmt" - "strings" - "text/template" - - "github.com/torabian/fireback/modules/fireback/module3/mcore" -) - -type fetchStaticFunctionContext struct { - RequestClass string - ResponseClass string - QueryStringClass string - - RequestHeadersClass string - - // The variable which will be used as default url - DefaultUrlVariable string - - // For certain types, we need to make res.json() cast in fetch, if it's returning a dto, - // or entity, or has fields. For text, html, or others, it does not require and makes no sense, - // therefor needs to be casted res.text() from fetch perspective - CastToJson bool -} - -// generates a static function, to developers prefer to make calls via axios -func FetchStaticHelper(fetchctx fetchStaticFunctionContext, ctx mcore.MicroGenContext) (*mcore.CodeChunkCompiled, error) { - claims := []mcore.JsFnArgument{ - { - Key: "fetch.init", - Ts: "init?: TypedRequestInit | undefined", - Js: "init", - }, - { - Key: "fetch.qs", - Ts: "qs?: " + fetchctx.QueryStringClass, - Js: "qs", - }, - { - Key: "fetch.overrideUrl", - Ts: "overrideUrl?: string", - Js: "overrideUrl", - }, - { - Key: "fetch.generic", - Ts: "", - Js: "", - }, - } - - claimsRendered := mcore.ClaimRender(claims, ctx) - - const tmpl = ` - static Fetch = ( - |@fetch.init|, - |@fetch.qs|, - |@fetch.overrideUrl| - ) => - fetchx|@fetch.generic|( - new URL((overrideUrl {{ if .fetchctx.DefaultUrlVariable -}} ?? {{ .fetchctx.DefaultUrlVariable }} {{- end}} ) + '?' + qs?.toString()), - init - ) - - {{ if .fetchctx.CastToJson }} - .then((res) => res.json()) - {{ else }} - .then((res) => res.text()) - {{ end }} - - - {{ if .fetchctx.ResponseClass }} - .then((data) => new {{ .fetchctx.ResponseClass }} (data)); - {{ end }} - - ` - - t := template.Must(template.New("axioshelper").Funcs(mcore.CommonMap).Parse(tmpl)) - var buf bytes.Buffer - if err := t.Execute(&buf, mcore.H{ - "claims": claimsRendered, - "fetchctx": fetchctx, - }); err != nil { - return nil, err - } - - templateResult := buf.String() - for key, value := range claimsRendered { - templateResult = strings.ReplaceAll(templateResult, fmt.Sprintf("|@%v|", key), value) - } - - res := &mcore.CodeChunkCompiled{ - ActualScript: []byte(templateResult), - CodeChunkDependenies: []mcore.CodeChunkDependency{ - { - Objects: []string{"fetchx", "TypedRequestInit"}, - Location: INTERNAL_SDK_LOCATION, - }, - }, - } - - return res, nil -} - -// On final stage of compiling, this varialble will be replaced with context -// sdk location on the disk -var INTERNAL_SDK_LOCATION string = "./sdk" diff --git a/modules/fireback/module3/mcore/common.go b/modules/fireback/module3/mcore/common.go deleted file mode 100644 index 9b96c76ce..000000000 --- a/modules/fireback/module3/mcore/common.go +++ /dev/null @@ -1,153 +0,0 @@ -package mcore - -import ( - "fmt" - "reflect" - "regexp" - "strings" - "text/template" -) - -type H map[string]any - -type ActionCodeGenerator = func(action *Module3Action, ctx MicroGenContext) (*CodeChunkCompiled, error) - -type MicroGenContext struct { - - // Tags and features which will be enabled or disabled. - Tags string - - // Output file or directory for generation context - Output string -} - -// Each generated file can have a set of tokens, such as classes, strings, enums, etc. -// since we cannot parse the generated code into AST (for language not go), we provide such details -// out of a generated code snipped to work on top of the other. -type GeneratedScriptToken struct { - Name string - Value string - Children []GeneratedScriptToken -} - -type CodeChunkCompiled struct { - - // The code which has been generated on the process. - ActualScript []byte - - CodeChunkDependenies []CodeChunkDependency - - SuggestedFileName string - - SuggestedExtension string - - Tokens []GeneratedScriptToken -} - -type CodeChunkDependency struct { - // things to import, for example import {map, fork} - Objects []string - - // Location or package name - Location string -} - -var CommonMap = template.FuncMap{ - "endsWithDto": func(s string) bool { - return strings.HasSuffix(s, "Dto") - }, - "last": func(x int, a interface{}) bool { - return x == reflect.ValueOf(a).Len()-1 - }, - "goComment": GoComment, - "until": GenerateRange, - "typescriptComment": TypescriptComment, - "join": strings.Join, - "b2s": func(b []byte) string { return string(b) }, - "trim": strings.TrimSpace, - "upper": ToUpper, - "lower": ToLower, - "snakeUpper": ToSnakeUpper, - "escape": EscapeDoubleQuotes, - "safeIndex": SafeIndex, - "hasSuffix": strings.HasSuffix, - "regex": RegexReplace, - "arr": func(els ...any) []any { return els }, - "inc": func(i int) int { - return i + 1 - }, - "fx": func(fieldName string, depth int) string { - return fieldName + "[index" + fmt.Sprintf("%v", depth) + "]." - }, -} - -func GoComment(comment string) string { - // Escape problematic characters and split into lines - lines := strings.Split(comment, "\n") - for i, line := range lines { - lines[i] = "// " + strings.ReplaceAll(line, "*/", "* /") // Escape `*/` - } - return strings.Join(lines, "\n") -} - -func GenerateRange(start, end int) []int { - result := make([]int, end-start+1) - for i := range result { - result[i] = i + start - } - return result -} - -func TypescriptComment(comment string) string { - // Escape problematic characters and split into lines - lines := strings.Split(comment, "\n") - for i, line := range lines { - lines[i] = strings.ReplaceAll(line, "*/", "* /") // Escape `*/` - } - return strings.Join(lines, "\n") -} - -func EscapeDoubleQuotes(input string) string { - return strings.ReplaceAll(input, `"`, `\"`) -} - -func SafeIndex(slice []interface{}, index int) bool { - if index < 0 || index >= len(slice) { - return false - } - return true -} - -func RegexReplace(input, pattern, replacement string) (string, error) { - re, err := regexp.Compile(pattern) - if err != nil { - return "", err - } - return re.ReplaceAllString(input, replacement), nil -} - -// Represent a file generated by codegen -type VirtualFile struct { - Name string - MimeType string - Location string - ActualScript string - Extension string -} - -type CompleteModuleGenerator = func(module *Module3, ctx MicroGenContext) ([]VirtualFile, error) - -func ClaimRender(claims []JsFnArgument, ctx MicroGenContext) map[string]string { - - claimsRendered := make(map[string]string) - for _, c := range claims { - if strings.Contains(ctx.Tags, "typescript") { - claimsRendered[c.Key] = c.CompileTs() - } else { - claimsRendered[c.Key] = c.CompileJs() - } - } - - return claimsRendered - -} diff --git a/modules/fireback/module3/mcore/jsArgument.go b/modules/fireback/module3/mcore/jsArgument.go deleted file mode 100644 index 992b4b777..000000000 --- a/modules/fireback/module3/mcore/jsArgument.go +++ /dev/null @@ -1,22 +0,0 @@ -package mcore - -import "fmt" - -// represents a js/ts argument signature, "name?: string | null" -type JsFnArgument struct { - Ts string - Js string - Key string -} - -func NewJsArgument(dto JsFnArgument) JsFnArgument { - return dto -} - -func (x JsFnArgument) CompileJs() string { - return fmt.Sprintf("%v", x.Js) -} - -func (x JsFnArgument) CompileTs() string { - return fmt.Sprintf("%v", x.Ts) -} diff --git a/modules/fireback/module3/mcore/module3.go b/modules/fireback/module3/mcore/module3.go deleted file mode 100644 index 7bef47055..000000000 --- a/modules/fireback/module3/mcore/module3.go +++ /dev/null @@ -1,816 +0,0 @@ -/** -Current file is set of definitions, to create Module3 yaml files. -Module3 is a declarative way of creating backend entities, crud actions on them, -and many complex operation. Fireback would generate those codes for many languages -both for backend and front-end purposes. - -Backend code can be generated in: C and Golang -Front-end code can be generated in: Angular, React, Pure TypeScript, Android Java, Swift -*/ - -package mcore - -import ( - "encoding/json" - "fmt" - "strings" -) - -var FIELD_TYPE_ARRAY string = "array" -var FIELD_TYPE_SLICE string = "slice" -var FIELD_TYPE_JSON string = "json" -var FIELD_TYPE_ONE string = "one" -var FIELD_TYPE_DATE string = "date" -var FIELD_TYPE_COLLECTION string = "collection" -var FIELD_TYPE_OBJECT string = "object" -var FIELD_TYPE_MONEY string = "money?" -var FIELD_TYPE_XFILE string = "xfile?" -var FIELD_TYPE_ENUM string = "enum" -var FIELD_TYPE_COMPUTED string = "computed" -var FIELD_TYPE_TEXT string = "text" -var FIELD_TYPE_STRING string = "string" -var FIELD_TYPE_ANY string = "any" -var ROUTE_FORMAT_DELETE string = "DELETE_DSL" -var ROUTE_FORMAT_QUERY string = "QUERY" -var ROUTE_FORMAT_POST string = "POST_ONE" -var ROUTE_FORMAT_GET_ONE string = "GET_ONE" -var ROUTE_FORMAT_REACTIVE string = "REACTIVE" -var ROUTE_FORMAT_PATCH string = "PATCH_ONE" -var ROUTE_FORMAT_PATCH_BULK string = "PATCH_BULK" - -type ErrorItem map[string]string - -// Module3 struct represents the entire file tree -type Module3 struct { - - // Custom imports appened by some macros - ActionsCustomImport []string `jsonschema:"-" json:"-" yaml:"-"` - - // Represents where is the location of the module in app tree. Similar to PHP namespacing sytem it be used to explicitly as export path of the actions for client frameworks - Namespace string `yaml:"namespace,omitempty" json:"namespace,omitempty" jsonschema:"description=Represents where is the location of the module in app tree. Similar to PHP namespacing sytem it be used to explicitly as export path of the actions for client frameworks"` - - // Description of module and it's purpose. Used in code gen and creating documents. - Description string `yaml:"description,omitempty" json:"description,omitempty" jsonschema:"description=Description of module and it's purpose. Used in code gen and creating documents."` - - // Version of the module. Helpful for different code generation phases but it's not necessary. - Version string `yaml:"version,omitempty" json:"version,omitempty" jsonschema:"description=Version of the module. Helpful for different code generation phases but it's not necessary."` - - // Magic property for Fireback FirebackModule3.yml file. It's gonna be true only in a single file internally in Fireback - MetaWorkspace bool `yaml:"meta-workspace,omitempty" json:"meta-workspace,omitempty" jsonschema:"description=Magic property for Fireback FirebackModule3.yml file. It's gonna be true only in a single file internally in Fireback"` - - // Name of the module. Needs to be lower camel case and Module.go and Module.dyno.go will be generated based on this name. - Name string `yaml:"name,omitempty" json:"name,omitempty" jsonschema:"description=Name of the module. Needs to be lower camel case and Module.go and Module.dyno.go will be generated based on this name."` - - // List of entities that module contains. Entities are basically tables in database with their mapping on golang and general actions generated for them - Entities []Module3Entity `yaml:"entities,omitempty" json:"entities,omitempty" jsonschema:"description=List of entities that module contains. Entities are basically tables in database with their mapping on golang and general actions generated for them"` - - // Tasks are actions which are triggered by a queue message or a cron job. - Tasks []*Module3Task `yaml:"tasks,omitempty" json:"tasks,omitempty" jsonschema:"description=Tasks are actions which are triggered by a queue message or a cron job."` - - // Dtos are basically golang structs with some additional functionality which can be used for request/response actions - Dto []Module3Dto `yaml:"dtos,omitempty" json:"dtos,omitempty" jsonschema:"description=Dtos are basically golang structs with some additional functionality which can be used for request/response actions"` - - // Actions are similar to controllers in other frameworks. They are custom functionality available via CLI or Http requests and developer need to implement their logic - Actions []*Module3Action `yaml:"actions,omitempty" json:"actions,omitempty" jsonschema:"description=Actions are similar to controllers in other frameworks. They are custom functionality available via CLI or Http requests and developer need to implement their logic"` - - // Macros are extra definition or templates which will modify the module and able to add extra fields or tables before the codegen occures. - Macros []Module3Macro `yaml:"macros,omitempty" json:"macros,omitempty" jsonschema:"description=Macros are extra definition or templates which will modify the module and able to add extra fields or tables before the codegen occures."` - - // Remotes are definition of external services which could be contacted via http and Fireback developer can make them typesafe by defining them here. - Remotes []*Module3Remote `yaml:"remotes,omitempty" json:"remotes,omitempty" jsonschema:"description=Remotes are definition of external services which could be contacted via http and Fireback developer can make them typesafe by defining them here."` - - // Notifications are end-user messages, such as push notification, socket notification, and could be sent to user via different channels - Notifications []*Module3Notification `yaml:"notifications,omitempty" json:"notifications,omitempty" jsonschema:"description=Notifications are end-user messages, such as push notification, socket notification, and could be sent to user via different channels"` - - // Events are internal changes that can be triggered by different sources - Events []*Module3Event `yaml:"events,omitempty" json:"events,omitempty" jsonschema:"description=Events are internal changes that can be triggered by different sources"` - - // Queries are set of SQL queries that developer writes and Fireback generates tools for fetching them from database to golang code. - Queries []*Module3Query `yaml:"queries,omitempty" json:"queries,omitempty" jsonschema:"description=Queries are set of SQL queries that developer writes and Fireback generates tools for fetching them from database to golang code."` - - // An interesting way of defining env variables - Config []*Module3ConfigField `yaml:"config,omitempty" json:"config,omitempty" jsonschema:"description=An interesting way of defining env variables"` - - // Messages are translatable strings which will be used as errors and other types of messages and become automatically picked via user locale. - Messages Module3Message `yaml:"messages,omitempty" json:"messages,omitempty" jsonschema:"description=Messages are translatable strings which will be used as errors and other types of messages and become automatically picked via user locale."` -} - -// Trigger is an automatic mechanism of task to be automatically run -// At the moment cron jobs are the only supported method. -type Module3Trigger struct { - - // The 5-6 star standard cronjob described in https://en.wikipedia.org/wiki/Cron - Cron string `yaml:"cron,omitempty" json:"cron,omitempty" jsonschema:"description=The 5-6 star standard cronjob described in https://en.wikipedia.org/wiki/Cron"` -} - -// Task is a general function or similarly Fireback Action, which has no results -// and could be run via Queue services or cronjobs -// Developer needs to implement the functionality manually, Fireback only generates the func signature -// Tasks are only available internally and not exported via http or client sdks -type Module3Task struct { - - // List of triggers such as cronjobs which can make this task run automatically. - Triggers []Module3Trigger `yaml:"triggers,omitempty" json:"triggers,omitempty" jsonschema:"description=List of triggers such as cronjobs which can make this task run automatically."` - - // Name of the task is general identifier and golang functions will be generated based on it. - Name string `yaml:"name,omitempty" json:"name,omitempty" jsonschema:"description=Name of the task is general identifier and golang functions will be generated based on it."` - - // Description of the task useful for developers and generated documentations. - Description string `yaml:"description,omitempty" json:"description,omitempty" jsonschema:"description=Description of the task useful for developers and generated documentations."` - - // Parameters that can be sent to this task. Since tasks are runnable in the golang as well - // they can get parameters in go and cli if necessary. For cronjobs might make no sense. - In *Module3ActionBody `yaml:"in,omitempty" json:"in,omitempty" jsonschema:"description=Parameters that can be sent to this task. Since tasks are runnable in the golang as well they can get parameters in go and cli if necessary. For cronjobs might make no sense."` -} - -// This is a fireback remote definition, you can make the external API calls typesafe using -// definitions. This feature is documented in docs/remotes.md -type Module3Remote struct { - // Remote action name, it will become the Golang function that you will call - Name string `yaml:"name,omitempty" json:"name,omitempty" jsonschema:"description=Remote action name, it will become the Golang function that you will call"` - - // Standard HTTP methods - Method string `yaml:"method,omitempty" json:"method,omitempty" jsonschema:"enum=get,enum=post,enum=put,enum=delete,enum=patch,enum=options,enum=head,description=Standard HTTP methods"` - - // The url which will be requested. You need to add full url here, but maybe you could add a prefix - // also in the client from your Go code - There might be a prefix for remotes later version of fireback - Url string `yaml:"url,omitempty" json:"url,omitempty" jsonschema:"description=The url which will be requested. You need to add full url here, but maybe you could add a prefix also in the client from your Go code - There might be a prefix for remotes later version of fireback"` - - // Standard Module3ActionBody object. Could have fields, entity, dto as content and you - // can define the output to cast automatically into them. If the response could be different objects, add them all - // and create custom dtos and manually map them - Out *Module3ActionBody `yaml:"out,omitempty" json:"out,omitempty" jsonschema:"description=Standard Module3ActionBody object. Could have fields, entity, dto as content and you can define the output to cast automatically into them. If the response could be different objects, add them all and create custom dtos and manually map them."` - - // Standard Module3ActionBody object. Could have fields, entity, dto as content and you - // can define the input parameters as struct in Go and fireback will convert it into - // json. - In *Module3ActionBody `yaml:"in,omitempty" json:"in,omitempty" jsonschema:"description=Standard Module3ActionBody object. Could have fields entity dto as content and you can define the input parameters as struct in Go and fireback will convert it into json."` - - // Query params for the address if you want to define them in Golang dynamically instead of URL - Query []*Module3Field `yaml:"query,omitempty" json:"query,omitempty" jsonschema:"description=Query params for the address if you want to define them in Golang dynamically instead of URL."` -} - -// Used in Module3Field as the definition of enum items -type Module3Enum struct { - // Enum key which will be used in golang generation and validation - Key string `yaml:"k,omitempty" json:"k,omitempty" jsonschema:"description=Enum key which will be used in golang generation and validation"` - - // Description of the enum for developers. It's not translated or meant to be shown to end users. - Descrtipion string `yaml:"description,omitempty" json:"description,omitempty" jsonschema:"description=Description of the enum for developers. It's not translated or meant to be shown to end users."` -} - -// Macros is a pre-compile mechanism in Fireback, and it will modify the module definition -// before it's given to the compiler. The idea is for example, you can add extra entities -// on some modules with it. -// Until version 1.2.1, there is a single macro for EAV database model, which would create -// All of the necessary tables and fields. -// Custom macros can be indefintely useful, but need to be very well defined and documented since -// the parameters are interface{} -type Module3Macro struct { - - // The macro name which you are using. Fireback developers need to add the macros name here as reference. - Using string `yaml:"using,omitempty" json:"using,omitempty" jsonschema:"enum=eav,description=The macro name which you are using. Fireback developers need to add the macros name here as reference."` - - // Params are the macro configuration which are dynamically set based on each macro itself. - // They will be passed as interface{} to macro and function itself will decide what to do next. - Params interface{} `yaml:"params,omitempty" json:"params,omitempty" jsonschema:"description=Params are the macro configuration which are dynamically set based on each macro itself. They will be passed as interface{} to macro and function itself will decide what to do next."` -} - -func ConvertParams(params interface{}) interface{} { - if params == nil { - return nil - } - - // Handle map[interface{}]interface{} case - if rawMap, ok := params.(map[interface{}]interface{}); ok { - converted := make(map[string]interface{}) - for k, v := range rawMap { - if key, isString := k.(string); isString { - converted[key] = v - } - } - return converted - } - return params -} - -// Useful for calling when writing a custom macro. -func Module3MacroCastParams[T any](m *Module3Macro) (*T, error) { - m.Params = ConvertParams(m.Params) - - data, err := json.Marshal(m.Params) - if err != nil { - return nil, err - } - - var result T - err = json.Unmarshal(data, &result) - if err != nil { - return nil, err - } - - return &result, nil -} - -type Module3FieldMatch struct { - - // The dto name from Fireback which will be matched. Might be also work with any other go struct but check the generated code. - Dto *string `yaml:"dto,omitempty" json:"dto,omitempty" jsonschema:"description=The dto name from Fireback which will be matched. Might be also work with any other go struct but check the generated code."` -} - -// Used in Module code generation to customized the generated code for gorm tags on Fireback -// Data management fields such as workspace or user id. For example, you can add extra indexes on these -// fields. -type GormOverrideMap struct { - - // Override the workspace id configuration for gorm instead of default config. Useful for adding extra constraints or indexes. - WorkspaceId string `yaml:"workspaceId,omitempty" json:"workspaceId,omitempty" jsonschema:"description=Override the workspace id configuration for gorm instead of default config. Useful for adding extra constraints or indexes."` - - // Override the user id configuration for gorm instead of default config. Useful for adding extra constraints or indexes. - UserId string `yaml:"userId,omitempty" json:"userId,omitempty" jsonschema:"description=Override the user id configuration for gorm instead of default config. Useful for adding extra constraints or indexes."` -} - -// Permission is an access key to limit the usages of a feature. -type Module3Permission struct { - // Name of the permission which will be used in golang and external ui - Name string `yaml:"name,omitempty" json:"name,omitempty" jsonschema:"description=Name of the permission which will be used in golang and external ui"` - - // Key of the permission, separated with dots such as root.feature.action - Key string `yaml:"key,omitempty" json:"key,omitempty" jsonschema:"description=Key of the permission, separated with dots such as root.feature.action"` - - // Description of the permission for developers or users. Not translated at this moment. - Description string `yaml:"description,omitempty" json:"description,omitempty" jsonschema:"description=Description of the permission for developers or users. Not translated at this moment."` -} - -type Module3Message map[string]map[string]string - -type Module3DataFields struct { - - // Essential is a set of the fields which fireback uses to give userId and workspaceId - Essentials bool `yaml:"essentials,omitempty" json:"essentials,omitempty" jsonschema:"default=true,description=Essential is a set of the fields which fireback uses to give userId and workspaceId"` - - // Adds a int primary key auto increment - PrimaryId bool `yaml:"primaryId,omitempty" json:"primaryId,omitempty" jsonschema:"default=true,description=Adds a int primary key auto increment"` - - // adds created - updated - delete as nano seconds to the database - NumericTimestamp bool `yaml:"numericTimestamp,omitempty" json:"numericTimestamp,omitempty" jsonschema:"default=true,description=adds created - updated - delete as nano seconds to the database"` - - // adds created - updated - deleted fields as timestamps - DateTimestamp bool `yaml:"dateTimestamp,omitempty" json:"dateTimestamp,omitempty" jsonschema:"default=false,description=adds created - updated - deleted fields as timestamps"` -} - -// Used to adjust the features generated for each entity. -type Module3EntityFeatures struct { - - // Adds a CLI task to automatically generate mocks. - // Disable this if it is not relevant for the feature - // or if validations are required, making a custom mock necessary. - // IMPORTANT: This is a pointer because it is enabled by default. - Mock *bool `yaml:"mock,omitempty" json:"mock,omitempty" jsonschema:"Adds a CLI task to automatically generate mocks Disable this if it is not relevant for the feature or if validations are required making a custom mock necessary IMPORTANT This is a pointer because it is enabled by default"` - - // Enables embedded mock files for an entity. - // Disables the 'msync' and 'mlist' commands. - MSync *bool `yaml:"msync,omitempty" json:"msync,omitempty" jsonschema:"Enables embedded mock files for an entity disabling the 'msync' and 'mlist' commands"` -} - -// Checks if codegen needs to print a default mocking tools for the entity -func (x Module3EntityFeatures) HasMockAction() bool { - - if x.Mock != nil && !*x.Mock { - return false - } - - return true -} - -// Checks id module3 definition enabled or disabled the feature -func (x Module3EntityFeatures) HasMsyncActions() bool { - - if x.MSync != nil && !*x.MSync { - return false - } - - return true -} - -type Module3EntityPermissionRewrite struct { - Replace string `yaml:"replace,omitempty" json:"replace,omitempty" jsonschema:"description=The value to be replaced"` - With string `yaml:"with,omitempty" json:"with,omitempty" jsonschema:"description=The value to be replaced"` -} - -type Module3ActionConfig struct { - Qs []Module3Field `yaml:"qs,omitempty" json:"qs,omitempty" jsonschema:"description=Typesafe query strings."` - Headers []Module3Field `yaml:"headers,omitempty" json:"headers,omitempty" jsonschema:"description=Typesafe headers."` -} - -// Contains extra configuration for each rpc which will be generated on fireback -// this is an attempt to reduce the need for custom actions, by giving you some control over -// the code might be generated. -type Module3EntityActionConfig struct { - Query Module3ActionConfig `yaml:"query,omitempty" json:"query,omitempty" jsonschema:"description=Modify the query rpc code."` -} - -type ClickHouseReplicaInfo struct { - Enabled bool `json:"enabled,omitempty" yaml:"enabled,omitempty" ` -} - -type Module3EntityReplicas struct { - // Clickhouse replica features. - Clickhouse *ClickHouseReplicaInfo `yaml:"clickhouse,omitempty" json:"clickhouse,omitempty" jsonschema:"Clickhouse replica features."` -} - -// Represents Entities in Fireback. An entity in Fireback is a table in database, with addition general -// features such as permissions, actions, security, and common actions which might be created or extra -// queries based on the type -type Module3Entity struct { - - // The replica configuration for the entity - Replicas *Module3EntityReplicas `json:"replicas,omitempty" yaml:"replicas,omitempty" jsonschema:"The replica configuration for the entity"` - - // Notifications are end-user messages, such as push notification, socket notification, and could be sent to user via different channels - Notifications []*Module3Notification `yaml:"notifications,omitempty" json:"notifications,omitempty" jsonschema:"description=Notifications are end-user messages, such as push notification, socket notification, and could be sent to user via different channels"` - - // Events are internal changes that can be triggered by different sources - Events []*Module3Event `yaml:"events,omitempty" json:"events,omitempty" jsonschema:"description=Events are internal changes that can be triggered by different sources"` - - // Modify the actions configuration, add headers, params and more to default generated actions and code - Rpc Module3EntityActionConfig `yaml:"rpc,omitempty" json:"rpc,omitempty" jsonschema:"Modify the actions configuration, add headers, params and more to default generated actions and code."` - - // Rewrites the default permission generated value, for example if you want to regroup them somehow else. - PremissionsRewrite *Module3EntityPermissionRewrite `yaml:"permRewrite,omitempty" json:"permRewrite,omitempty" jsonschema:"description=Rewrites the default permission generated value, for example if you want to regroup them somehow else."` - - // Extra permissions that an entity might need. You can add extra permissions that you will need in your - // business logic related to entity in itself, to make it easier become as a group and document - // later - Permissions []Module3Permission `yaml:"permissions,omitempty" json:"permissions,omitempty" jsonschema:"description=Extra permissions that an entity might need. You can add extra permissions that you will need in your business logic related to entity in itself to make it easier become as a group and document later"` - - // Actions or extra actions (on top of default actions which automatically is generated) these are - // the same actions that you can define for a module, but defining them on entity level make it easier - // to relate them and group them. Also permission might be added automatically (need to clearify) - Actions []*Module3Action `yaml:"actions,omitempty" json:"actions,omitempty" jsonschema:"description=Actions or extra actions (on top of default actions which automatically is generated) these are the same actions that you can define for a module but defining them on entity level make it easier to relate them and group them. Also permission might be added automatically (need to clearify)"` - - // The entity name is crucial as it determines database table names and is used by Fireback's Go and code generation tools; note that changing an entity name does not delete previously created entities requiring manual file deletion and only camelCase naming is supported. - Name string `yaml:"name,omitempty" json:"name,omitempty" jsonschema:"description=The entity name is crucial as it determines database table names and is used by Fireback's Go and code generation tools; note that changing an entity name does not delete previously created entities requiring manual file deletion and only camelCase naming is supported."` - - // You can make sure there is only one record of the entity per user or workspace using this option. - // for example, if you want only one credit card per workspace, you can set distinctBy: workspace - // and it will do the job - DistinctBy string `yaml:"distinctBy,omitempty" json:"distinctBy,omitempty" jsonschema:"enum=workspace,enum=user,description=You can ensure there is only one record of the entity per user or workspace using this option for example if you want only one credit card per workspace set distinctBy: workspace and it will do the job"` - - // Customize the features generated for entity, less common changes goes to this object - Features Module3EntityFeatures `yaml:"features,omitempty" json:"features,omitempty" jsonschema:"description=Customize the features generated for entity, less common changes goes to this object"` - - // Changes the default table name based on project prefix and entity name useful for times that you want to connect project to an existing database - Table string `yaml:"table,omitempty" json:"table,omitempty" jsonschema:"description=Changes the default table name based on project prefix and entity name useful for times that you want to connect project to an existing database"` - - // Use fields allows you to customize the entity default generated fields. - UseFields *Module3DataFields `yaml:"useFields,omitempty" json:"useFields,omitempty" jsonschema:"description=Use fields allows you to customize the entity default generated fields."` - - // Manages the entity models - SecurityModel *EntitySecurityModel `yaml:"security,omitempty" json:"security,omitempty" jsonschema:"description=Manages the entity models"` - - // Adds a golang code to the geenrated code in very top location of the file after imports and before any code. - PrependScript string `yaml:"prependScript,omitempty" json:"prependScript,omitempty" jsonschema:"description=Adds a golang code to the geenrated code in very top location of the file after imports and before any code."` - - // Messages are translatable strings which will be used as errors and other types of messages and become automatically picked via user locale. - Messages Module3Message `yaml:"messages,omitempty" json:"messages,omitempty" jsonschema:"description=Messages are translatable strings which will be used as errors and other types of messages and become automatically picked via user locale."` - - // Adds a extra code before the create action in the entity. This is pure golang code. - // Use it with caution such meta codes make module unreadable overtime. You can add script on non-dyno file of the entity. - PrependCreateScript string `yaml:"prependCreateScript,omitempty" json:"prependCreateScript,omitempty" jsonschema:"description=Adds a extra code before the create action in the entity. This is pure golang code. Use it with caution such meta codes make module unreadable overtime. You can add script on non-dyno file of the entity."` - - // Adds a extra code before the update action in the entity. This is pure golang code. - // Use it with caution such meta codes make module unreadable overtime. You can add script on non-dyno file of the entity. - PrependUpdateScript string `yaml:"prependUpdateScript,omitempty" json:"prependUpdateScript,omitempty" jsonschema:"description=Adds a extra code before the update action in the entity. This is pure golang code. Use it with caution such meta codes make module unreadable overtime. You can add script on non-dyno file of the entity."` - - // Access is a method of limiting which type offunctionality will be created for the entity. For example access read will remove all create functionality from code and public API. - Access string `yaml:"access,omitempty" json:"access,omitempty" jsonschema:"description=Access is a method of limiting which type offunctionality will be created for the entity. For example access read will remove all create functionality from code and public API."` - - // For entities, if the query scope is public the query action will become automatically public and without authentication - QueryScope string `yaml:"queryScope,omitempty" json:"queryScope,omitempty" jsonschema:"enum=public,enum=specific,description=For entities, if the query scope is public the query action will become automatically public and without authentication"` - - // A list of extra queries that Fireback can generate for the the entity. Fireback might offer some extra queries to be generated so they will be listed here. - Queries []string `yaml:"queries,omitempty" json:"queries,omitempty" jsonschema:"description=A list of extra queries that Fireback can generate for the the entity. Fireback might offer some extra queries to be generated so they will be listed here."` - - // Override the some default Fireback generated fields gorm configuration. - GormMap GormOverrideMap `yaml:"gormMap,omitempty" json:"gormMap,omitempty" jsonschema:"description=Override the some default Fireback generated fields gorm configuration."` - - // Define the fields that this entity will have both in golang and database columns. - Fields []*Module3Field `yaml:"fields,omitempty" json:"fields,omitempty" jsonschema:"description=Define the fields that this entity will have both in golang and database columns."` - - // The name of the entity which will appear in CLI. By default the name of the entity will be used with dashes. - CliName string `yaml:"cliName,omitempty" json:"cliName,omitempty" jsonschema:"description=The name of the entity which will appear in CLI. By default the name of the entity will be used with dashes."` - - // The alternative shortcut in the CLI. By default it's empty and only the entity name or CliName. - CliShort string `yaml:"cliShort,omitempty" json:"cliShort,omitempty" jsonschema:"description=The alternative shortcut in the CLI. By default it's empty and only the entity name or CliName."` - - // Description about the purpose of the entity. It will be used in CLI and codegen documentation. - Description string `yaml:"description,omitempty" json:"description,omitempty" jsonschema:"description=Description about the purpose of the entity. It will be used in CLI and codegen documentation."` - - // CTE is a common recursive feature of an entity; enabling it generates SQL for recursive parent-child CTE queries and makes it available in Golang. - Cte bool `yaml:"cte,omitempty" json:"cte,omitempty" jsonschema:"description=CTE is a common recursive feature of an entity; enabling it generates SQL for recursive parent-child CTE queries and makes it available in Golang."` - - // The name of the golang function which will recieve entity pointer to make some modification - // upon query, get or other details. - PostFormatter string `yaml:"postFormatter,omitempty" json:"postFormatter,omitempty" jsonschema:"description=The name of the golang function which will recieve entity pointer to make some modification upon query, get or other details."` - - // Internal metadata for code generation. - RootModule *Module3 `yaml:"-" json:"-" jsonschema:"-"` -} - -// Events are definitions of a low level occurence across the application, -// for example an entity created - a user logged in - etc. -type Module3Event struct { - - // Name of the event which will be generated in golang and used as key to trigger or subscribe - Name string `yaml:"name,omitempty" json:"name,omitempty" jsonschema:"description=Name of the event which will be generated in golang and used as key to trigger or subscribe"` - - // Description of the event (developer visible only) - Description string `yaml:"description,omitempty" json:"description,omitempty" jsonschema:"description=Description of the event (developer visible only)"` - - // Payload of the event - Payload *Module3ActionBody `yaml:"payload,omitempty" json:"payload,omitempty" jsonschema:"description=Payload of the event"` - - // Security model of the event, which determines who can see it - SecurityModel *SecurityModel `yaml:"security,omitempty" json:"security,omitempty" jsonschema:"description=Security model of the event, which determines who can see it"` - - // Mechanism to trigger a cache refresh on clients - CacheKey string `yaml:"cacheKey,omitempty" json:"cacheKey,omitempty" jsonschema:"description=Mechanism to trigger a cache refresh on clients"` -} - -// Events are definitions of a low level occurence across the application, -// for example an entity created - a user logged in - etc. -type Module3Notification struct { - - // Name of the notification which will be generated in golang and used as key to trigger or subscribe - Name string `yaml:"name,omitempty" json:"name,omitempty" jsonschema:"description=Name of the notification which will be generated in golang and used as key to trigger or subscribe"` - - // Description of the event (developer visible only) - Description string `yaml:"description,omitempty" json:"description,omitempty" jsonschema:"description=Description of the event (developer visible only)"` - - // Payload of the notification - Payload *Module3ActionBody `yaml:"payload,omitempty" json:"payload,omitempty" jsonschema:"description=Payload of the notification"` -} - -// Represents a dto in an application. Can be used for variety of reasons, -// request response of an action, or even internally. Fireback generates bunch of -// helpers for each dto, so it might make sense to define them in Module3 instead -// of pure struct in golang. -type Module3Dto struct { - - // Name of the dto, in camel case, the rest of the code related to this dto is being generated based on this - Name string `yaml:"name,omitempty" json:"name,omitempty" jsonschema:"description=Name of the dto in camel case the rest of the code related to this dto is being generated based on this"` - - // List of fields and body definitions of the dto - Fields []*Module3Field `yaml:"fields,omitempty" json:"fields,omitempty" jsonschema:"description=List of fields and body definitions of the dto"` -} - -// Represents any action request or response DTO. -// Used in multiple places as the request/response signature. -type Module3ActionBody struct { - - // Defines the fields directly, and DTO will be generated - // and assigned automatically. - Fields []*Module3Field `yaml:"fields,omitempty" json:"fields,omitempty" jsonschema:"Defines the fields directly and DTO will be generated and assigned automatically"` - - // Selects the DTO existing in the module from Golang. - // It can also be a pure Go struct, but those do not compile. - Dto string `yaml:"dto,omitempty" json:"dto,omitempty" jsonschema:"Selects the DTO existing in the module from Golang It can also be a pure Go struct but those do not compile"` - - // Use a entity which is generated by Fireback instead. - Entity string `yaml:"entity,omitempty" json:"entity,omitempty" jsonschema:"Generates the entity name in the module"` - - // Uses a primitive type instead, such as a string or int64. - Primitive string `yaml:"primitive,omitempty" json:"primitive,omitempty" jsonschema:"Uses a primitive type instead such as a string or int64"` - - // Returns the page as XHTML format from arura file. Simply used for showing html content, or post back architecture - XHtml bool `yaml:"xhtml,omitempty" json:"xhtml,omitempty" jsonschema:"Returns the page as XHTML format from arura file. Simply used for showing html content, or post back architecture"` -} - -type Module3WebRtcDataChannel struct { - // Name of the data channel in the webrtc. - Name string `yaml:"name,omitempty" json:"name,omitempty" jsonschema:"description=Name of the data channel in the webrtc"` - - // Channel data which will be sent to. - In *Module3ActionBody `yaml:"in,omitempty" json:"in,omitempty" jsonschema:"description=Channel data which will be sent to"` -} - -// Represent a header in the general web requests -type Module3Header struct { - // Name of the header accessible on programming languages. - Name string `yaml:"name,omitempty" json:"name,omitempty" jsonschema:"description=Name of the header accessible on programming languages"` - - // Value type, which will be parsed or read. All will be cast from the string value of header - Type string `yaml:"type,omitempty" json:"type,omitempty" jsonschema:"enum=string,enum=int64,enum=float64,enum=bool,description=Value type, which will be parsed or read. All will be cast from the string value of header"` - - // Description of the value and reason usually to developers, http specs and cli - Description string `yaml:"description,omitempty" json:"description,omitempty" jsonschema:"description=Description of the value and reason usually to developers, http specs and cli"` -} - -type Module3Action struct { - - // General name of the action used for generating code and CLI commands. - Name string `yaml:"name,omitempty" json:"name,omitempty" jsonschema:"description=General name of the action used for generating code and CLI commands"` - - // Overrides the CLI action name if specified otherwise defaults to Name. - CliName string `yaml:"cliName,omitempty" json:"cliName,omitempty" jsonschema:"description=Overrides the CLI action name if specified otherwise defaults to Name"` - - // CLI command aliases for shorter action names. - ActionAliases []string `yaml:"actionAliases,omitempty" json:"actionAliases,omitempty" jsonschema:"description=CLI command aliases for shorter action names"` - - // HTTP route of the action; if not specified the action is CLI-only. - Url string `yaml:"url,omitempty" json:"url,omitempty" jsonschema:"description=HTTP route of the action; if not specified the action is CLI-only"` - - // HTTP method type including standard and Fireback-specific methods. - Method string `yaml:"method,omitempty" json:"method,omitempty" jsonschema:"enum=post,enum=patch,enum=put,enum=get,enum=delete,enum=webrtc,enum=reactive,description=HTTP method type including standard and Fireback-specific methods"` - - // Text by default for websocket, can be changed to arraybuffer or blob. - BinaryType string `yaml:"binaryType,omitempty" json:"binaryType,omitempty" jsonschema:"enum=text,enum=arraybuffer,enum=blob,description=Text by default for websocket, can be changed to arraybuffer or blob"` - - // Type-safe query strings for action - Query []*Module3Field `yaml:"qs,omitempty" json:"qs,omitempty" jsonschema:"description=Type-safe query parameters for CLI and HTTP requests"` - - // Typesafe headers for the action - Headers []Module3Header `yaml:"headers,omitempty" json:"headers,omitempty" jsonschema:"description=Typesafe headers."` - - // Data channels in a typesafe mode in case of webrtc - DataChannels []Module3WebRtcDataChannel `yaml:"dataChannels,omitempty" json:"dataChannels,omitempty" jsonschema:"description=Data channels in a typesafe mode in case of webrtc"` - - // Action description used in API specs and documentation. - Description string `yaml:"description,omitempty" json:"description,omitempty" jsonschema:"description=Action description used in API specs and documentation"` - - // Higher-level request format such as POST_ONE PATCH_ONE, QUERY, and PATCH_BULK. - Format string `yaml:"format,omitempty" json:"format,omitempty" jsonschema:"enum=reactive,enum=query,description=Higher-level request format such as POST_ONE PATCH_ONE, QUERY, and PATCH_BULK"` - - // Request body definition similar to HTTP request body. - In *Module3ActionBody `yaml:"in,omitempty" json:"in,omitempty" jsonschema:"description=Request body definition similar to HTTP request body"` - - // Response body definition similar to HTTP response body. - Out *Module3ActionBody `yaml:"out,omitempty" json:"out,omitempty" jsonschema:"description=Response body definition similar to HTTP response body"` - - // Defines access control similar to middleware checking permissions, tokens, and roles. - SecurityModel *SecurityModel `yaml:"security,omitempty" json:"security,omitempty" jsonschema:"description=Defines access control similar to middleware checking permissions, tokens, and roles"` - - // External function name used in generated code. - ExternFuncName string `yaml:"-" json:"-" jsonschema:"-"` - - // Struct representing the request body used for generating RPC code. - RequestEntity any `yaml:"-" json:"-" jsonschema:"-"` - - // Struct representing the response body used for generating RPC code. - ResponseEntity any `yaml:"-" json:"-" jsonschema:"-"` - - // Function representing the action's implementation. - Action any `yaml:"-" json:"-" jsonschema:"-"` - - // Pointer to the struct representing the entity being operated on. - TargetEntity any `yaml:"-" json:"-" jsonschema:"-"` - - // Internal metadata for code generation. - RootModule *Module3 `yaml:"-" json:"-" jsonschema:"-"` - - // How the qs is being handled. - QsMode string `yaml:"qsMode,omitempty" json:"qsMode,omitempty" jsonschema:"enum=reflect"` -} - -func (x Module3Action) MethodUpper() string { - return strings.ToUpper(x.Method) -} - -func (x Module3Action) QSFields() []*Module3Field { - - // At the moment, the query string fields is only supported for query - if x.Format != "query" { - return nil - } - - if x.QsMode == "reflect" && x.Out != nil && x.Out.Fields != nil { - return x.Out.Fields - } - - if x.In != nil && x.In.Fields != nil { - return x.In.Fields - } - - return nil -} - -func (x Module3Entity) HasClickHouse() bool { - return x.Replicas != nil && x.Replicas.Clickhouse != nil -} - -func (x *Module3) ActionsAsList() []string { - items := []string{} - for index, action := range x.Actions { - items = append(items, fmt.Sprintf("%v", index)+" >>> "+action.Name+"("+action.Url+")") - } - - return items -} - -func (x *Module3Entity) DataFields() Module3DataFields { - data := Module3DataFields{} - - if x.UseFields == nil { - data = Module3DataFields{ - Essentials: true, - PrimaryId: true, - NumericTimestamp: false, - DateTimestamp: true, - } - - return data - } else { - data = *x.UseFields - } - - return data -} - -// Module3Query represents an SQL query configuration used by Fireback. -// Fireback will generate Golang functions to run the queries and will -// replace placeholders such as the current user and workspaces in the SQL query. -type Module3Query struct { - - // Name is the identifier for the query. It will be used to generate controller - // code and should uniquely identify the query. - Name string `yaml:"name,omitempty" json:"name,omitempty" jsonschema:"description=Name is the identifier for the query. It will be used to generate controller code and should uniquely identify the query."` - - // Description provides a detailed explanation of the query. It helps other - // developers or API consumers understand what the query does and its purpose. - Description string `yaml:"description,omitempty" json:"description,omitempty" jsonschema:"description=Description provides a detailed explanation of the query. It helps other developers or API consumers understand what the query does and its purpose."` - - // Columns defines the structure of the result set returned by the query. - // It lists the expected columns in the result when the query is executed. - Columns *Module3ActionBody `yaml:"columns,omitempty" json:"columns,omitempty" jsonschema:"description=Columns defines the structure of the result set returned by the query. It lists the expected columns in the result when the query is executed."` - - // The actual SQL or VSQL query. There are some special placeholders and this is infact a golang template - // which will be converted in the end to SQL and will be sent to ORM. - Query string `yaml:"query,omitempty" json:"query,omitempty" jsonschema:"description=The actual SQL or VSQL query. There are some special placeholders and this is infact a golang template which will be converted in the end to SQL and will be sent to ORM."` -} - -// Module3ConfigField represents a configuration field, typically a variable definition, -// which is converted into a Go struct. It provides functionality to read the value from -// YAML, environment variables, and CLI flags, with the option to save it as a .env file. -// This struct offers a type-safe way to use environment variables while documenting -// them in a YAML configuration file. -type Module3ConfigField struct { - - // Name is the identifier for the configuration field, used both in Go code and - // the environment file. By default, the name will be converted to uppercase with - // underscores to reference the environment variable, unless overridden by the 'env' field. - Name string `yaml:"name,omitempty" json:"name,omitempty" jsonschema:"description=Name is the identifier for the configuration field used both in Go code and the environment file. By default the name will be converted to uppercase with underscores to reference the environment variable unless overridden by the 'env' field."` - - // Type defines the data type for the environment variable. It supports standard Go types - // such as string, bool, int64, and others, along with custom Fireback types. - // Ensure that the chosen type is supported. - Type string `yaml:"type,omitempty" json:"type,omitempty" jsonschema:"description=Type defines the data type for the environment variable. It supports standard Go types such as string - bool - int64 - and others - along with custom Fireback types. Ensure that the chosen type is supported."` - - // Description explains the purpose of the configuration field. It can be helpful for developers - // and also used in CLI for interactive configuration. - Description string `yaml:"description,omitempty" json:"description,omitempty" jsonschema:"description=Description explains the purpose of the configuration field. It can be helpful for developers and also used in CLI for interactive configuration."` - - // Default specifies the default value for the configuration field if it is not defined. - Default string `yaml:"default,omitempty" json:"default,omitempty" jsonschema:"description=Default specifies the default value for the configuration field if it is not defined."` - - // Hint is the value that will be shown in auto complete or cli context as default value, but only to help user for understanding. - Hint string `yaml:"hint,omitempty" json:"hint,omitempty" jsonschema:"description=Hint is the value that will be shown in auto complete or cli context as default value - but only to help user for understanding."` - - // Env allows you to override the default environment variable name, which is automatically - // generated from the Name field. Use this field if you want to manually specify the environment variable name. - Env string `yaml:"env,omitempty" json:"env,omitempty" jsonschema:"description=Env allows you to override the default environment variable name, which is automatically generated from the Name field. Use this field if you want to manually specify the environment variable name."` - - // Fields defines child configuration fields in case the current field represents an object - // or an array of subfields. Note that support for nested fields may be limited. - Fields []Module3ConfigField `yaml:"fields,omitempty" json:"fields,omitempty" jsonschema:"description=Fields defines child configuration fields in case the current field represents an object or an array of subfields. Note that support for nested fields may be limited."` -} - -func (x *Module3ConfigField) DashedName() string { - return strings.ReplaceAll(ToSnakeCase(x.Name), "_", "-") -} - -// This struct represents a general field. It could be a field in an go struct, useful -// for defining golang structs, database entities, DTOs, or database query results. -// an entitiy can have an array of fields, and each field might have their own children based on -// type. -type Module3Field struct { - - // Name of the field in camel case. Will be upper case automatically when necessary - Name string `yaml:"name,omitempty" json:"name,omitempty" jsonschema:"description=Name of the field in camel case. Will be upper case automatically when necessary"` - - // Recommended field will be asked upon an interactive cli operation. - Recommended bool `yaml:"recommended,omitempty" json:"recommended,omitempty" jsonschema:"description=Recommended field will be asked upon an interactive cli operation."` - - // Description about the field for developers and generated documents. - Description string `yaml:"description,omitempty" json:"description,omitempty" jsonschema:"description=Description about the field for developers and generated documents."` - - // Type of the field based on Fireback types. - Type string `yaml:"type,omitempty" json:"type,omitempty" jsonschema:"enum=string?,enum=int?,enum=float64?,enum=money?,enum=xfile?,enum=float32?,enum=bool?,enum=int32?,enum=int64?,enum=int,enum=datetime,enum=json,enum=datenano,enum=html,enum=text,enum=date,enum=daterange,enum=collection,enum=slice,enum=enum,enum=bool,enum=one,enum=int64,enum=float64,enum=duration?,enum=object,enum=array,enum=string,description=Type of the field based on Fireback types."` - - // Primitive type in golang when type: slice is set - Primitive string `yaml:"primitive,omitempty" json:"primitive,omitempty" jsonschema:"description=Primitive type in golang when type: slice is set"` - - // The entity in golang which will be operated on in case of type: one or type: collection - Target string `yaml:"target,omitempty" json:"target,omitempty" jsonschema:"description=The entity in golang which will be operated on in case of type: one or type: collection"` - - // The meta tag for validate library which will be checked on different operations - Validate string `yaml:"validate,omitempty" json:"validate,omitempty" jsonschema:"description=The meta tag for validate library which will be checked on different operations"` - - // For the html and text fields there will be a automatic excerpt generated. - ExcerptSize int `yaml:"excerptSize,omitempty" json:"excerptSize,omitempty" jsonschema:"description=For the html and text fields there will be a automatic excerpt generated."` - - // Default value of the field which will be added to the meta tags - Default interface{} `yaml:"default,omitempty" json:"default,omitempty" jsonschema:"description=Default value of the field which will be added to the meta tags"` - - // If true adds the field into polyglot table for translations. Only works with the first level fields. - Translate bool `yaml:"translate,omitempty" json:"translate,omitempty" jsonschema:"description=If true adds the field into polyglot table for translations. Only works with the first leve"` - - // It would skip the sanitization for html field types allowing store anything as html - Unsafe bool `yaml:"unsafe,omitempty" json:"unsafe,omitempty" jsonschema:"description=It would skip the sanitization for html field types allowing store anything as htm"` - - // Allow create is a useful option to set true if the type one or collection could be allowed to create entities on target table. - AllowCreate bool `yaml:"allowCreate,omitempty" json:"allowCreate,omitempty" jsonschema:"description=Allow create is a useful option to set true if the type one or collection could be allowed to crea"` - - // When using one or collection types you need to set the module name here to import that in generated go file. - Module string `yaml:"module,omitempty" json:"module,omitempty" jsonschema:"description=When using one or collection types you need to set the module name here to import tha"` - - // The go project module of the important target for one or collection fields if its from external library - Provider string `yaml:"provider,omitempty" json:"provider,omitempty" jsonschema:"description=The go project module of the important target for one or collection fields if its from exte"` - - // The json tag of the generated field. Defaults to the name but can be overwritten with this field - Json string `yaml:"json,omitempty" json:"json,omitempty" jsonschema:"description=The json tag of the generated field. Defaults to the name but can be overwritten"` - - // The yaml tag of the generated field. Defaults to the name but can be overwritten with this field - Yaml string `yaml:"yaml,omitempty" json:"yaml,omitempty" jsonschema:"description=The yaml tag of the generated field. Defaults to the name but can be overwritten"` - - // The xml tag of the generated field. Defaults to the name but can be overwritten with this field - Xml string `yaml:"xml,omitempty" json:"xml,omitempty" jsonschema:"description=The xml tag of the generated field. Defaults to the name but can be overwritten"` - - // List of enum values in case of enum type for the field. Check Module3Enum for more details how to define them. - OfType []*Module3Enum `yaml:"of,omitempty" json:"of,omitempty" jsonschema:"description=List of enum values in case of enum type for the field. Check Module3Enum for more d"` - - // When type is one there will be another field added with Id prefix. This tag will override gorm meta tag of that field - IdFieldGorm string `yaml:"idFieldGorm,omitempty" json:"idFieldGorm,omitempty" jsonschema:"description=When type is one there will be another field added with Id prefix. This tag will override gorm meta"` - - // Not sure what it does - ComputedType string `yaml:"computedType,omitempty" json:"computedType,omitempty" jsonschema:"description=Not sure what it does"` - - // On the json type this field will generate necessary code to cast it into different dtos - Matches []*Module3FieldMatch `yaml:"matches,omitempty" json:"matches,omitempty" jsonschema:"description=On the json type this field will generate necessary code to cast it into different dtos"` - - // Override the gorm meta tag generated for golang, to add custom types or anything else. - Gorm string `yaml:"gorm,omitempty" json:"gorm,omitempty" jsonschema:"description=Override the gorm meta tag generated for golang, to add custom types or anything else."` - - // Override the Fireback default fields gorm tags for extra constraint or other configuration. - GormMap GormOverrideMap `yaml:"gormMap,omitempty" json:"gormMap,omitempty" jsonschema:"description=Used in Module code generation to customized the generated code for gorm tags on Fireback Data management fields such as workspace or user id. For example, you can add extra indexes on these fields."` - - // Direct manipulation of the sql meta tag on the field. - Sql string `yaml:"sql,omitempty" json:"sql,omitempty" jsonschema:"description=Direct manipulation of the sql meta tag on the field."` - - // This is the name of field considering how deep it is. Used internally for fireback codegen, not available on definition - FullName string `yaml:"-,omitempty" json:"-,omitempty" jsonschema:"-"` - - // For types such as array or object children fields can be defined and will separate struct with name prefixed to parent - Fields []*Module3Field `yaml:"fields,omitempty" json:"fields,omitempty" jsonschema:"description=For types such as array or object children fields can be defined and will separate struct with name prefixed to parent"` - - IsVirtualObject bool `yaml:"-" json:"-" jsonschema:"-"` - - LinkedTo string `yaml:"linkedTo,omitempty" json:"linkedTo,omitempty" jsonschema:"-"` - - RootClass string `yaml:"rootClass,omitempty" json:"rootClass,omitempty" jsonschema:"-"` - - BelongingEntityName string `yaml:"-" json:"-"` -} - -// Used for defining the entity overall action permissions -type EntitySecurityModel struct { - // Only users which belong to root and actively selected the root workspace can write to this entity from Fireback default functionality. Read mechanism won't be affected. - WriteOnRoot *bool `json:"writeOnRoot,omitempty" yaml:"writeOnRoot,omitempty" jsonschema:"description=Only users which belong to root and actively selected the root workspace can write to this entity from Fireback default functionality. Read mechanism won't be affected."` - - // Only users which belong to root and actively selected the root workspace can read from entity from Fireback default functionality. Write mechanism is not affected. - ReadOnRoot *bool `json:"readOnRoot,omitempty" yaml:"readOnRoot,omitempty" jsonschema:"description=Only users which belong to root and actively selected the root workspace can read from entity from Fireback default functionality. Write mechanism is not affected."` - - // Resolve strategy means that the content belongs either to workspace or user. It affects the query. - ResolveStrategy *string `json:"resolveStrategy,omitempty" yaml:"resolveStrategy,omitempty" jsonschema:"enum=workspace,enum=user, description=Resolve strategy means that the content belongs either to workspace or user. It affects the query."` -} - -// Used for actions generally -type SecurityModel struct { - // Only users which belong to root and actively selected the root workspace can - // write to this entity from Fireback default functionality - AllowOnRoot bool `json:"allowOnRoot,omitempty" yaml:"allowOnRoot,omitempty"` - - // Set of permissions which are required for this service. - ActionRequires []PermissionInfo `json:"requires,omitempty" yaml:"requires,omitempty"` - - // Resolve strategy is by default on the workspace, you can change it by user - // also. Be sure of the consequences - ResolveStrategy string `json:"resolveStrategy,omitempty" yaml:"resolveStrategy,omitempty"` -} - -type PermissionInfo struct { - Name string `yaml:"name,omitempty" json:"name,omitempty"` - Description string `yaml:"description,omitempty" json:"description,omitempty"` - CompleteKey string `yaml:"completeKey,omitempty" json:"completeKey,omitempty"` - GoVariable string `yaml:"-" json:"-"` -} diff --git a/modules/fireback/module3/mcore/module3extensions.go b/modules/fireback/module3/mcore/module3extensions.go deleted file mode 100644 index 1d461f0c2..000000000 --- a/modules/fireback/module3/mcore/module3extensions.go +++ /dev/null @@ -1,25 +0,0 @@ -package mcore - -func (x *Module3) PublicName() string { - return ToUpper(x.Name) -} - -func (x *Module3Field) PublicName() string { - return ToUpper(x.Name) -} - -func (x *Module3FieldMatch) PublicName() string { - if x.Dto == nil { - return "" - } - - return ToUpper(*x.Dto) + "Dto" -} - -func (x *Module3Field) PrivateName() string { - return x.Name -} - -func (x *Module3Action) Upper() string { - return ToUpper(x.Name) -} diff --git a/modules/fireback/module3/mcore/utilities.go b/modules/fireback/module3/mcore/utilities.go deleted file mode 100644 index 368ab4c28..000000000 --- a/modules/fireback/module3/mcore/utilities.go +++ /dev/null @@ -1,35 +0,0 @@ -package mcore - -import ( - "regexp" - "strings" -) - -var matchFirstCap = regexp.MustCompile("(.)([A-Z][a-z]+)") -var matchAllCap = regexp.MustCompile("([a-z0-9])([A-Z])") - -func ToUpper(t string) string { - if t == "" { - return "" - } - return strings.ToUpper(t[0:1]) + t[1:] -} - -func ToLower(t string) string { - if t == "" { - return "" - } - return strings.ToLower(t[0:1]) + t[1:] -} - -func ToSnakeCase(str string) string { - snake := matchFirstCap.ReplaceAllString(str, "${1}_${2}") - snake = matchAllCap.ReplaceAllString(snake, "${1}_${2}") - return strings.ToLower(snake) -} - -func ToSnakeUpper(str string) string { - snake := matchFirstCap.ReplaceAllString(str, "${1}_${2}") - snake = matchAllCap.ReplaceAllString(snake, "${1}_${2}") - return strings.ToUpper(snake) -} diff --git a/modules/fireback/module3Def.go b/modules/fireback/module3Def.go index ba434f10d..e4ddea5e9 100644 --- a/modules/fireback/module3Def.go +++ b/modules/fireback/module3Def.go @@ -595,6 +595,24 @@ func (x Module3Entity) HasClickHouse() bool { return x.Replicas != nil && x.Replicas.Clickhouse != nil } +func hasComplexInFields(fields []*Module3Field) bool { + for _, f := range fields { + if f.Type == "complex" { + return true + } + if len(f.Fields) > 0 && hasComplexInFields(f.Fields) { + return true + } + } + return false +} + +func (x Module3Entity) HasComplexes() bool { + // I need to go recursively into x.Fields, which might have fields again, and if type is 'complex', + // in any occurence, then return true. if never met, then false. + return hasComplexInFields(x.Fields) +} + func (x Module3Action) ToCli() cli.Command { name := x.Name diff --git a/modules/fireback/vField.go b/modules/fireback/vField.go index f90c951d9..aab1c25fe 100644 --- a/modules/fireback/vField.go +++ b/modules/fireback/vField.go @@ -16,7 +16,10 @@ type Module3Field struct { Description string `yaml:"description,omitempty" json:"description,omitempty" jsonschema:"description=Description about the field for developers and generated documents."` // Type of the field based on Fireback types. - Type string `yaml:"type,omitempty" json:"type,omitempty" jsonschema:"enum=string?,enum=int?,enum=float64?,enum=money?,enum=xfile?,enum=float32?,enum=bool?,enum=int32?,enum=int64?,enum=int,enum=datetime,enum=json,enum=datenano,enum=html,enum=text,enum=date,enum=daterange,enum=collection,enum=slice,enum=enum,enum=bool,enum=one,enum=int64,enum=float64,enum=duration?,enum=object,enum=array,enum=string,description=Type of the field based on Fireback types."` + Type string `yaml:"type,omitempty" json:"type,omitempty" jsonschema:"enum=complex,string?,enum=int?,enum=float64?,enum=float32?,enum=bool?,enum=int32?,enum=int64?,enum=int,enum=collection,enum=slice,enum=enum,enum=bool,enum=one,enum=int64,enum=float64,enum=object,enum=array,enum=string,description=Type of the field based on Fireback types."` + + // The complex class which will be used for data type complex + Complex string `yaml:"complex,omitempty" json:"complex,omitempty" jsonschema:"description=The complex class which will be used for data type complex"` // Primitive type in golang when type: slice is set Primitive string `yaml:"primitive,omitempty" json:"primitive,omitempty" jsonschema:"description=Primitive type in golang when type: slice is set"` From f858ebdad7b5ce01127995d1f81fdb355b6ef053 Mon Sep 17 00:00:00 2001 From: Ali Date: Fri, 17 Apr 2026 10:00:16 +0200 Subject: [PATCH 2/2] Rebuild the UI --- .../{index-BN1bV6BP.js => index-wQ6hOJSS.js} | 174 +++++++++--------- .../codegen/fireback-manage/index.html | 2 +- .../{index-hGksTATn.js => index-Dv6ZoDfw.js} | 148 +++++++-------- .../fireback/codegen/selfservice/index.html | 2 +- 4 files changed, 163 insertions(+), 163 deletions(-) rename modules/fireback/codegen/fireback-manage/assets/{index-BN1bV6BP.js => index-wQ6hOJSS.js} (61%) rename modules/fireback/codegen/selfservice/assets/{index-hGksTATn.js => index-Dv6ZoDfw.js} (53%) diff --git a/modules/fireback/codegen/fireback-manage/assets/index-BN1bV6BP.js b/modules/fireback/codegen/fireback-manage/assets/index-wQ6hOJSS.js similarity index 61% rename from modules/fireback/codegen/fireback-manage/assets/index-BN1bV6BP.js rename to modules/fireback/codegen/fireback-manage/assets/index-wQ6hOJSS.js index f0f955992..2b2154913 100644 --- a/modules/fireback/codegen/fireback-manage/assets/index-BN1bV6BP.js +++ b/modules/fireback/codegen/fireback-manage/assets/index-wQ6hOJSS.js @@ -1,4 +1,4 @@ -var Doe=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports);var $Ot=Doe((Ls,no)=>{function $oe(e,t){for(var n=0;nr[a]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const a of document.querySelectorAll('link[rel="modulepreload"]'))r(a);new MutationObserver(a=>{for(const i of a)if(i.type==="childList")for(const o of i.addedNodes)o.tagName==="LINK"&&o.rel==="modulepreload"&&r(o)}).observe(document,{childList:!0,subtree:!0});function n(a){const i={};return a.integrity&&(i.integrity=a.integrity),a.referrerPolicy&&(i.referrerPolicy=a.referrerPolicy),a.crossOrigin==="use-credentials"?i.credentials="include":a.crossOrigin==="anonymous"?i.credentials="omit":i.credentials="same-origin",i}function r(a){if(a.ep)return;a.ep=!0;const i=n(a);fetch(a.href,i)}})();var _l=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Pc(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function jt(e){if(Object.prototype.hasOwnProperty.call(e,"__esModule"))return e;var t=e.default;if(typeof t=="function"){var n=function r(){return this instanceof r?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};n.prototype=t.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(e).forEach(function(r){var a=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(n,r,a.get?a:{enumerable:!0,get:function(){return e[r]}})}),n}var xR={exports:{}},k1={};/** +var lse=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports);var mRt=lse((zs,ao)=>{function use(e,t){for(var n=0;nr[a]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const a of document.querySelectorAll('link[rel="modulepreload"]'))r(a);new MutationObserver(a=>{for(const i of a)if(i.type==="childList")for(const o of i.addedNodes)o.tagName==="LINK"&&o.rel==="modulepreload"&&r(o)}).observe(document,{childList:!0,subtree:!0});function n(a){const i={};return a.integrity&&(i.integrity=a.integrity),a.referrerPolicy&&(i.referrerPolicy=a.referrerPolicy),a.crossOrigin==="use-credentials"?i.credentials="include":a.crossOrigin==="anonymous"?i.credentials="omit":i.credentials="same-origin",i}function r(a){if(a.ep)return;a.ep=!0;const i=n(a);fetch(a.href,i)}})();var Pl=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Ic(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function jt(e){if(Object.prototype.hasOwnProperty.call(e,"__esModule"))return e;var t=e.default;if(typeof t=="function"){var n=function r(){return this instanceof r?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};n.prototype=t.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(e).forEach(function(r){var a=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(n,r,a.get?a:{enumerable:!0,get:function(){return e[r]}})}),n}var JR={exports:{}},GS={};/** * @license React * react-jsx-runtime.production.js * @@ -6,7 +6,7 @@ var Doe=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports);var $Ot=Doe((Ls, * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. - */var iU;function Loe(){if(iU)return k1;iU=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.fragment");function n(r,a,i){var o=null;if(i!==void 0&&(o=""+i),a.key!==void 0&&(o=""+a.key),"key"in a){i={};for(var l in a)l!=="key"&&(i[l]=a[l])}else i=a;return a=i.ref,{$$typeof:e,type:r,key:o,ref:a!==void 0?a:null,props:i}}return k1.Fragment=t,k1.jsx=n,k1.jsxs=n,k1}var oU;function _X(){return oU||(oU=1,xR.exports=Loe()),xR.exports}var w=_X(),_R={exports:{}},Nn={};/** + */var MU;function cse(){if(MU)return GS;MU=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.fragment");function n(r,a,i){var o=null;if(i!==void 0&&(o=""+i),a.key!==void 0&&(o=""+a.key),"key"in a){i={};for(var l in a)l!=="key"&&(i[l]=a[l])}else i=a;return a=i.ref,{$$typeof:e,type:r,key:o,ref:a!==void 0?a:null,props:i}}return GS.Fragment=t,GS.jsx=n,GS.jsxs=n,GS}var IU;function tQ(){return IU||(IU=1,JR.exports=cse()),JR.exports}var w=tQ(),ZR={exports:{}},Nn={};/** * @license React * react.production.js * @@ -14,7 +14,7 @@ var Doe=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports);var $Ot=Doe((Ls, * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. - */var sU;function Foe(){if(sU)return Nn;sU=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),a=Symbol.for("react.profiler"),i=Symbol.for("react.consumer"),o=Symbol.for("react.context"),l=Symbol.for("react.forward_ref"),u=Symbol.for("react.suspense"),d=Symbol.for("react.memo"),f=Symbol.for("react.lazy"),g=Symbol.iterator;function y(H){return H===null||typeof H!="object"?null:(H=g&&H[g]||H["@@iterator"],typeof H=="function"?H:null)}var h={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},v=Object.assign,E={};function T(H,Y,ie){this.props=H,this.context=Y,this.refs=E,this.updater=ie||h}T.prototype.isReactComponent={},T.prototype.setState=function(H,Y){if(typeof H!="object"&&typeof H!="function"&&H!=null)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,H,Y,"setState")},T.prototype.forceUpdate=function(H){this.updater.enqueueForceUpdate(this,H,"forceUpdate")};function C(){}C.prototype=T.prototype;function k(H,Y,ie){this.props=H,this.context=Y,this.refs=E,this.updater=ie||h}var _=k.prototype=new C;_.constructor=k,v(_,T.prototype),_.isPureReactComponent=!0;var A=Array.isArray,P={H:null,A:null,T:null,S:null},N=Object.prototype.hasOwnProperty;function I(H,Y,ie,J,ee,Z){return ie=Z.ref,{$$typeof:e,type:H,key:Y,ref:ie!==void 0?ie:null,props:Z}}function L(H,Y){return I(H.type,Y,void 0,void 0,void 0,H.props)}function j(H){return typeof H=="object"&&H!==null&&H.$$typeof===e}function z(H){var Y={"=":"=0",":":"=2"};return"$"+H.replace(/[=:]/g,function(ie){return Y[ie]})}var Q=/\/+/g;function le(H,Y){return typeof H=="object"&&H!==null&&H.key!=null?z(""+H.key):Y.toString(36)}function re(){}function ge(H){switch(H.status){case"fulfilled":return H.value;case"rejected":throw H.reason;default:switch(typeof H.status=="string"?H.then(re,re):(H.status="pending",H.then(function(Y){H.status==="pending"&&(H.status="fulfilled",H.value=Y)},function(Y){H.status==="pending"&&(H.status="rejected",H.reason=Y)})),H.status){case"fulfilled":return H.value;case"rejected":throw H.reason}}throw H}function me(H,Y,ie,J,ee){var Z=typeof H;(Z==="undefined"||Z==="boolean")&&(H=null);var ue=!1;if(H===null)ue=!0;else switch(Z){case"bigint":case"string":case"number":ue=!0;break;case"object":switch(H.$$typeof){case e:case t:ue=!0;break;case f:return ue=H._init,me(ue(H._payload),Y,ie,J,ee)}}if(ue)return ee=ee(H),ue=J===""?"."+le(H,0):J,A(ee)?(ie="",ue!=null&&(ie=ue.replace(Q,"$&/")+"/"),me(ee,Y,ie,"",function(xe){return xe})):ee!=null&&(j(ee)&&(ee=L(ee,ie+(ee.key==null||H&&H.key===ee.key?"":(""+ee.key).replace(Q,"$&/")+"/")+ue)),Y.push(ee)),1;ue=0;var ke=J===""?".":J+":";if(A(H))for(var fe=0;fe()=>(t||e((t={exports:{}}).exports,t),t.exports);var $Ot=Doe((Ls, * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. - */var uU;function joe(){return uU||(uU=1,(function(e){function t(W,G){var q=W.length;W.push(G);e:for(;0>>1,H=W[ce];if(0>>1;cea(J,q))eea(Z,J)?(W[ce]=Z,W[ee]=q,ce=ee):(W[ce]=J,W[ie]=q,ce=ie);else if(eea(Z,q))W[ce]=Z,W[ee]=q,ce=ee;else break e}}return G}function a(W,G){var q=W.sortIndex-G.sortIndex;return q!==0?q:W.id-G.id}if(e.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var i=performance;e.unstable_now=function(){return i.now()}}else{var o=Date,l=o.now();e.unstable_now=function(){return o.now()-l}}var u=[],d=[],f=1,g=null,y=3,h=!1,v=!1,E=!1,T=typeof setTimeout=="function"?setTimeout:null,C=typeof clearTimeout=="function"?clearTimeout:null,k=typeof setImmediate<"u"?setImmediate:null;function _(W){for(var G=n(d);G!==null;){if(G.callback===null)r(d);else if(G.startTime<=W)r(d),G.sortIndex=G.expirationTime,t(u,G);else break;G=n(d)}}function A(W){if(E=!1,_(W),!v)if(n(u)!==null)v=!0,ge();else{var G=n(d);G!==null&&me(A,G.startTime-W)}}var P=!1,N=-1,I=5,L=-1;function j(){return!(e.unstable_now()-LW&&j());){var ce=g.callback;if(typeof ce=="function"){g.callback=null,y=g.priorityLevel;var H=ce(g.expirationTime<=W);if(W=e.unstable_now(),typeof H=="function"){g.callback=H,_(W),G=!0;break t}g===n(u)&&r(u),_(W)}else r(u);g=n(u)}if(g!==null)G=!0;else{var Y=n(d);Y!==null&&me(A,Y.startTime-W),G=!1}}break e}finally{g=null,y=q,h=!1}G=void 0}}finally{G?Q():P=!1}}}var Q;if(typeof k=="function")Q=function(){k(z)};else if(typeof MessageChannel<"u"){var le=new MessageChannel,re=le.port2;le.port1.onmessage=z,Q=function(){re.postMessage(null)}}else Q=function(){T(z,0)};function ge(){P||(P=!0,Q())}function me(W,G){N=T(function(){W(e.unstable_now())},G)}e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(W){W.callback=null},e.unstable_continueExecution=function(){v||h||(v=!0,ge())},e.unstable_forceFrameRate=function(W){0>W||125ce?(W.sortIndex=q,t(d,W),n(u)===null&&W===n(d)&&(E?(C(N),N=-1):E=!0,me(A,q-ce))):(W.sortIndex=H,t(u,W),v||h||(v=!0,ge())),W},e.unstable_shouldYield=j,e.unstable_wrapCallback=function(W){var G=y;return function(){var q=y;y=G;try{return W.apply(this,arguments)}finally{y=q}}}})(PR)),PR}var cU;function Uoe(){return cU||(cU=1,RR.exports=joe()),RR.exports}var AR={exports:{}},Xi={};/** + */var LU;function fse(){return LU||(LU=1,(function(e){function t(W,G){var q=W.length;W.push(G);e:for(;0>>1,H=W[ce];if(0>>1;cea(J,q))eea(Z,J)?(W[ce]=Z,W[ee]=q,ce=ee):(W[ce]=J,W[ae]=q,ce=ae);else if(eea(Z,q))W[ce]=Z,W[ee]=q,ce=ee;else break e}}return G}function a(W,G){var q=W.sortIndex-G.sortIndex;return q!==0?q:W.id-G.id}if(e.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var i=performance;e.unstable_now=function(){return i.now()}}else{var o=Date,l=o.now();e.unstable_now=function(){return o.now()-l}}var u=[],d=[],f=1,g=null,y=3,h=!1,v=!1,E=!1,T=typeof setTimeout=="function"?setTimeout:null,C=typeof clearTimeout=="function"?clearTimeout:null,k=typeof setImmediate<"u"?setImmediate:null;function _(W){for(var G=n(d);G!==null;){if(G.callback===null)r(d);else if(G.startTime<=W)r(d),G.sortIndex=G.expirationTime,t(u,G);else break;G=n(d)}}function A(W){if(E=!1,_(W),!v)if(n(u)!==null)v=!0,me();else{var G=n(d);G!==null&&ge(A,G.startTime-W)}}var P=!1,N=-1,I=5,L=-1;function j(){return!(e.unstable_now()-LW&&j());){var ce=g.callback;if(typeof ce=="function"){g.callback=null,y=g.priorityLevel;var H=ce(g.expirationTime<=W);if(W=e.unstable_now(),typeof H=="function"){g.callback=H,_(W),G=!0;break t}g===n(u)&&r(u),_(W)}else r(u);g=n(u)}if(g!==null)G=!0;else{var K=n(d);K!==null&&ge(A,K.startTime-W),G=!1}}break e}finally{g=null,y=q,h=!1}G=void 0}}finally{G?Q():P=!1}}}var Q;if(typeof k=="function")Q=function(){k(z)};else if(typeof MessageChannel<"u"){var ue=new MessageChannel,re=ue.port2;ue.port1.onmessage=z,Q=function(){re.postMessage(null)}}else Q=function(){T(z,0)};function me(){P||(P=!0,Q())}function ge(W,G){N=T(function(){W(e.unstable_now())},G)}e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(W){W.callback=null},e.unstable_continueExecution=function(){v||h||(v=!0,me())},e.unstable_forceFrameRate=function(W){0>W||125ce?(W.sortIndex=q,t(d,W),n(u)===null&&W===n(d)&&(E?(C(N),N=-1):E=!0,ge(A,q-ce))):(W.sortIndex=H,t(u,W),v||h||(v=!0,me())),W},e.unstable_shouldYield=j,e.unstable_wrapCallback=function(W){var G=y;return function(){var q=y;y=G;try{return W.apply(this,arguments)}finally{y=q}}}})(nP)),nP}var FU;function pse(){return FU||(FU=1,tP.exports=fse()),tP.exports}var rP={exports:{}},Ji={};/** * @license React * react-dom.production.js * @@ -30,7 +30,7 @@ var Doe=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports);var $Ot=Doe((Ls, * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. - */var dU;function Boe(){if(dU)return Xi;dU=1;var e=Us();function t(u){var d="https://react.dev/errors/"+u;if(1"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(t){console.error(t)}}return e(),AR.exports=Boe(),AR.exports}/** + */var jU;function hse(){if(jU)return Ji;jU=1;var e=Vs();function t(u){var d="https://react.dev/errors/"+u;if(1"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(t){console.error(t)}}return e(),rP.exports=hse(),rP.exports}/** * @license React * react-dom-client.production.js * @@ -38,15 +38,15 @@ var Doe=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports);var $Ot=Doe((Ls, * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. - */var pU;function Woe(){if(pU)return x1;pU=1;var e=Uoe(),t=Us(),n=Y3();function r(s){var c="https://react.dev/errors/"+s;if(1)":-1x||de[S]!==Pe[x]){var Ke=` -`+de[S].replace(" at new "," at ");return s.displayName&&Ke.includes("")&&(Ke=Ke.replace("",s.displayName)),Ke}while(1<=S&&0<=x);break}}}finally{ge=!1,Error.prepareStackTrace=p}return(p=s?s.displayName||s.name:"")?re(p):""}function W(s){switch(s.tag){case 26:case 27:case 5:return re(s.type);case 16:return re("Lazy");case 13:return re("Suspense");case 19:return re("SuspenseList");case 0:case 15:return s=me(s.type,!1),s;case 11:return s=me(s.type.render,!1),s;case 1:return s=me(s.type,!0),s;default:return""}}function G(s){try{var c="";do c+=W(s),s=s.return;while(s);return c}catch(p){return` +`+de[S].replace(" at new "," at ");return s.displayName&&Ke.includes("")&&(Ke=Ke.replace("",s.displayName)),Ke}while(1<=S&&0<=x);break}}}finally{me=!1,Error.prepareStackTrace=p}return(p=s?s.displayName||s.name:"")?re(p):""}function W(s){switch(s.tag){case 26:case 27:case 5:return re(s.type);case 16:return re("Lazy");case 13:return re("Suspense");case 19:return re("SuspenseList");case 0:case 15:return s=ge(s.type,!1),s;case 11:return s=ge(s.type.render,!1),s;case 1:return s=ge(s.type,!0),s;default:return""}}function G(s){try{var c="";do c+=W(s),s=s.return;while(s);return c}catch(p){return` Error generating stack: `+p.message+` -`+p.stack}}function q(s){var c=s,p=s;if(s.alternate)for(;c.return;)c=c.return;else{s=c;do c=s,(c.flags&4098)!==0&&(p=c.return),s=c.return;while(s)}return c.tag===3?p:null}function ce(s){if(s.tag===13){var c=s.memoizedState;if(c===null&&(s=s.alternate,s!==null&&(c=s.memoizedState)),c!==null)return c.dehydrated}return null}function H(s){if(q(s)!==s)throw Error(r(188))}function Y(s){var c=s.alternate;if(!c){if(c=q(s),c===null)throw Error(r(188));return c!==s?null:s}for(var p=s,S=c;;){var x=p.return;if(x===null)break;var M=x.alternate;if(M===null){if(S=x.return,S!==null){p=S;continue}break}if(x.child===M.child){for(M=x.child;M;){if(M===p)return H(x),s;if(M===S)return H(x),c;M=M.sibling}throw Error(r(188))}if(p.return!==S.return)p=x,S=M;else{for(var B=!1,X=x.child;X;){if(X===p){B=!0,p=x,S=M;break}if(X===S){B=!0,S=x,p=M;break}X=X.sibling}if(!B){for(X=M.child;X;){if(X===p){B=!0,p=M,S=x;break}if(X===S){B=!0,S=M,p=x;break}X=X.sibling}if(!B)throw Error(r(189))}}if(p.alternate!==S)throw Error(r(190))}if(p.tag!==3)throw Error(r(188));return p.stateNode.current===p?s:c}function ie(s){var c=s.tag;if(c===5||c===26||c===27||c===6)return s;for(s=s.child;s!==null;){if(c=ie(s),c!==null)return c;s=s.sibling}return null}var J=Array.isArray,ee=n.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,Z={pending:!1,data:null,method:null,action:null},ue=[],ke=-1;function fe(s){return{current:s}}function xe(s){0>ke||(s.current=ue[ke],ue[ke]=null,ke--)}function Ie(s,c){ke++,ue[ke]=s.current,s.current=c}var qe=fe(null),tt=fe(null),Ge=fe(null),at=fe(null);function Et(s,c){switch(Ie(Ge,c),Ie(tt,s),Ie(qe,null),s=c.nodeType,s){case 9:case 11:c=(c=c.documentElement)&&(c=c.namespaceURI)?AC(c):0;break;default:if(s=s===8?c.parentNode:c,c=s.tagName,s=s.namespaceURI)s=AC(s),c=NC(s,c);else switch(c){case"svg":c=1;break;case"math":c=2;break;default:c=0}}xe(qe),Ie(qe,c)}function kt(){xe(qe),xe(tt),xe(Ge)}function xt(s){s.memoizedState!==null&&Ie(at,s);var c=qe.current,p=NC(c,s.type);c!==p&&(Ie(tt,s),Ie(qe,p))}function Rt(s){tt.current===s&&(xe(qe),xe(tt)),at.current===s&&(xe(at),_m._currentValue=Z)}var cn=Object.prototype.hasOwnProperty,qt=e.unstable_scheduleCallback,Wt=e.unstable_cancelCallback,Oe=e.unstable_shouldYield,dt=e.unstable_requestPaint,ft=e.unstable_now,ut=e.unstable_getCurrentPriorityLevel,Nt=e.unstable_ImmediatePriority,U=e.unstable_UserBlockingPriority,D=e.unstable_NormalPriority,F=e.unstable_LowPriority,ae=e.unstable_IdlePriority,Te=e.log,Fe=e.unstable_setDisableYieldValue,We=null,Tt=null;function Mt(s){if(Tt&&typeof Tt.onCommitFiberRoot=="function")try{Tt.onCommitFiberRoot(We,s,void 0,(s.current.flags&128)===128)}catch{}}function be(s){if(typeof Te=="function"&&Fe(s),Tt&&typeof Tt.setStrictMode=="function")try{Tt.setStrictMode(We,s)}catch{}}var Ee=Math.clz32?Math.clz32:_t,gt=Math.log,Lt=Math.LN2;function _t(s){return s>>>=0,s===0?32:31-(gt(s)/Lt|0)|0}var Ut=128,_n=4194304;function gn(s){var c=s&42;if(c!==0)return c;switch(s&-s){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return s&4194176;case 4194304:case 8388608:case 16777216:case 33554432:return s&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return s}}function ln(s,c){var p=s.pendingLanes;if(p===0)return 0;var S=0,x=s.suspendedLanes,M=s.pingedLanes,B=s.warmLanes;s=s.finishedLanes!==0;var X=p&134217727;return X!==0?(p=X&~x,p!==0?S=gn(p):(M&=X,M!==0?S=gn(M):s||(B=X&~B,B!==0&&(S=gn(B))))):(X=p&~x,X!==0?S=gn(X):M!==0?S=gn(M):s||(B=p&~B,B!==0&&(S=gn(B)))),S===0?0:c!==0&&c!==S&&(c&x)===0&&(x=S&-S,B=c&-c,x>=B||x===32&&(B&4194176)!==0)?c:S}function Bn(s,c){return(s.pendingLanes&~(s.suspendedLanes&~s.pingedLanes)&c)===0}function sa(s,c){switch(s){case 1:case 2:case 4:case 8:return c+250;case 16:case 32:case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return c+5e3;case 4194304:case 8388608:case 16777216:case 33554432:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function Qa(){var s=Ut;return Ut<<=1,(Ut&4194176)===0&&(Ut=128),s}function ma(){var s=_n;return _n<<=1,(_n&62914560)===0&&(_n=4194304),s}function vn(s){for(var c=[],p=0;31>p;p++)c.push(s);return c}function _a(s,c){s.pendingLanes|=c,c!==268435456&&(s.suspendedLanes=0,s.pingedLanes=0,s.warmLanes=0)}function Wo(s,c,p,S,x,M){var B=s.pendingLanes;s.pendingLanes=p,s.suspendedLanes=0,s.pingedLanes=0,s.warmLanes=0,s.expiredLanes&=p,s.entangledLanes&=p,s.errorRecoveryDisabledLanes&=p,s.shellSuspendCounter=0;var X=s.entanglements,de=s.expirationTimes,Pe=s.hiddenUpdates;for(p=B&~p;0"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),uf=RegExp("^[:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD][:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$"),ny={},Mh={};function D0(s){return cn.call(Mh,s)?!0:cn.call(ny,s)?!1:uf.test(s)?Mh[s]=!0:(ny[s]=!0,!1)}function $c(s,c,p){if(D0(c))if(p===null)s.removeAttribute(c);else{switch(typeof p){case"undefined":case"function":case"symbol":s.removeAttribute(c);return;case"boolean":var S=c.toLowerCase().slice(0,5);if(S!=="data-"&&S!=="aria-"){s.removeAttribute(c);return}}s.setAttribute(c,""+p)}}function Hi(s,c,p){if(p===null)s.removeAttribute(c);else{switch(typeof p){case"undefined":case"function":case"symbol":case"boolean":s.removeAttribute(c);return}s.setAttribute(c,""+p)}}function qo(s,c,p,S){if(S===null)s.removeAttribute(p);else{switch(typeof S){case"undefined":case"function":case"symbol":case"boolean":s.removeAttribute(p);return}s.setAttributeNS(c,p,""+S)}}function Si(s){switch(typeof s){case"bigint":case"boolean":case"number":case"string":case"undefined":return s;case"object":return s;default:return""}}function cf(s){var c=s.type;return(s=s.nodeName)&&s.toLowerCase()==="input"&&(c==="checkbox"||c==="radio")}function Nu(s){var c=cf(s)?"checked":"value",p=Object.getOwnPropertyDescriptor(s.constructor.prototype,c),S=""+s[c];if(!s.hasOwnProperty(c)&&typeof p<"u"&&typeof p.get=="function"&&typeof p.set=="function"){var x=p.get,M=p.set;return Object.defineProperty(s,c,{configurable:!0,get:function(){return x.call(this)},set:function(B){S=""+B,M.call(this,B)}}),Object.defineProperty(s,c,{enumerable:p.enumerable}),{getValue:function(){return S},setValue:function(B){S=""+B},stopTracking:function(){s._valueTracker=null,delete s[c]}}}}function Xs(s){s._valueTracker||(s._valueTracker=Nu(s))}function Qs(s){if(!s)return!1;var c=s._valueTracker;if(!c)return!0;var p=c.getValue(),S="";return s&&(S=cf(s)?s.checked?"true":"false":s.value),s=S,s!==p?(c.setValue(s),!0):!1}function Lc(s){if(s=s||(typeof document<"u"?document:void 0),typeof s>"u")return null;try{return s.activeElement||s.body}catch{return s.body}}var $0=/[\n"\\]/g;function Ei(s){return s.replace($0,function(c){return"\\"+c.charCodeAt(0).toString(16)+" "})}function df(s,c,p,S,x,M,B,X){s.name="",B!=null&&typeof B!="function"&&typeof B!="symbol"&&typeof B!="boolean"?s.type=B:s.removeAttribute("type"),c!=null?B==="number"?(c===0&&s.value===""||s.value!=c)&&(s.value=""+Si(c)):s.value!==""+Si(c)&&(s.value=""+Si(c)):B!=="submit"&&B!=="reset"||s.removeAttribute("value"),c!=null?Ih(s,B,Si(c)):p!=null?Ih(s,B,Si(p)):S!=null&&s.removeAttribute("value"),x==null&&M!=null&&(s.defaultChecked=!!M),x!=null&&(s.checked=x&&typeof x!="function"&&typeof x!="symbol"),X!=null&&typeof X!="function"&&typeof X!="symbol"&&typeof X!="boolean"?s.name=""+Si(X):s.removeAttribute("name")}function ff(s,c,p,S,x,M,B,X){if(M!=null&&typeof M!="function"&&typeof M!="symbol"&&typeof M!="boolean"&&(s.type=M),c!=null||p!=null){if(!(M!=="submit"&&M!=="reset"||c!=null))return;p=p!=null?""+Si(p):"",c=c!=null?""+Si(c):p,X||c===s.value||(s.value=c),s.defaultValue=c}S=S??x,S=typeof S!="function"&&typeof S!="symbol"&&!!S,s.checked=X?s.checked:!!S,s.defaultChecked=!!S,B!=null&&typeof B!="function"&&typeof B!="symbol"&&typeof B!="boolean"&&(s.name=B)}function Ih(s,c,p){c==="number"&&Lc(s.ownerDocument)===s||s.defaultValue===""+p||(s.defaultValue=""+p)}function Fl(s,c,p,S){if(s=s.options,c){c={};for(var x=0;x=Ef),dy=" ",B0=!1;function pT(s,c){switch(s){case"keyup":return Sf.indexOf(c.keyCode)!==-1;case"keydown":return c.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function fy(s){return s=s.detail,typeof s=="object"&&"data"in s?s.data:null}var $u=!1;function xO(s,c){switch(s){case"compositionend":return fy(c);case"keypress":return c.which!==32?null:(B0=!0,dy);case"textInput":return s=c.data,s===dy&&B0?null:s;default:return null}}function hT(s,c){if($u)return s==="compositionend"||!U0&&pT(s,c)?(s=iy(),Js=Du=ds=null,$u=!1,s):null;switch(s){case"paste":return null;case"keypress":if(!(c.ctrlKey||c.altKey||c.metaKey)||c.ctrlKey&&c.altKey){if(c.char&&1=c)return{node:p,offset:c-s};s=S}e:{for(;p;){if(p.nextSibling){p=p.nextSibling;break e}p=p.parentNode}p=void 0}p=Vo(p)}}function wT(s,c){return s&&c?s===c?!0:s&&s.nodeType===3?!1:c&&c.nodeType===3?wT(s,c.parentNode):"contains"in s?s.contains(c):s.compareDocumentPosition?!!(s.compareDocumentPosition(c)&16):!1:!1}function ST(s){s=s!=null&&s.ownerDocument!=null&&s.ownerDocument.defaultView!=null?s.ownerDocument.defaultView:window;for(var c=Lc(s.document);c instanceof s.HTMLIFrameElement;){try{var p=typeof c.contentWindow.location.href=="string"}catch{p=!1}if(p)s=c.contentWindow;else break;c=Lc(s.document)}return c}function q0(s){var c=s&&s.nodeName&&s.nodeName.toLowerCase();return c&&(c==="input"&&(s.type==="text"||s.type==="search"||s.type==="tel"||s.type==="url"||s.type==="password")||c==="textarea"||s.contentEditable==="true")}function PO(s,c){var p=ST(c);c=s.focusedElem;var S=s.selectionRange;if(p!==c&&c&&c.ownerDocument&&wT(c.ownerDocument.documentElement,c)){if(S!==null&&q0(c)){if(s=S.start,p=S.end,p===void 0&&(p=s),"selectionStart"in c)c.selectionStart=s,c.selectionEnd=Math.min(p,c.value.length);else if(p=(s=c.ownerDocument||document)&&s.defaultView||window,p.getSelection){p=p.getSelection();var x=c.textContent.length,M=Math.min(S.start,x);S=S.end===void 0?M:Math.min(S.end,x),!p.extend&&M>S&&(x=S,S=M,M=x),x=z0(c,M);var B=z0(c,S);x&&B&&(p.rangeCount!==1||p.anchorNode!==x.node||p.anchorOffset!==x.offset||p.focusNode!==B.node||p.focusOffset!==B.offset)&&(s=s.createRange(),s.setStart(x.node,x.offset),p.removeAllRanges(),M>S?(p.addRange(s),p.extend(B.node,B.offset)):(s.setEnd(B.node,B.offset),p.addRange(s)))}}for(s=[],p=c;p=p.parentNode;)p.nodeType===1&&s.push({element:p,left:p.scrollLeft,top:p.scrollTop});for(typeof c.focus=="function"&&c.focus(),c=0;c=document.documentMode,fs=null,Ae=null,He=null,Be=!1;function It(s,c,p){var S=p.window===p?p.document:p.nodeType===9?p:p.ownerDocument;Be||fs==null||fs!==Lc(S)||(S=fs,"selectionStart"in S&&q0(S)?S={start:S.selectionStart,end:S.selectionEnd}:(S=(S.ownerDocument&&S.ownerDocument.defaultView||window).getSelection(),S={anchorNode:S.anchorNode,anchorOffset:S.anchorOffset,focusNode:S.focusNode,focusOffset:S.focusOffset}),He&&tl(He,S)||(He=S,S=Zy(Ae,"onSelect"),0>=B,x-=B,Xo=1<<32-Ee(c)+x|p<sn?(or=Yt,Yt=null):or=Yt.sibling;var Yn=Ue(Le,Yt,je[sn],Ze);if(Yn===null){Yt===null&&(Yt=or);break}s&&Yt&&Yn.alternate===null&&c(Le,Yt),_e=M(Yn,_e,sn),$n===null?$t=Yn:$n.sibling=Yn,$n=Yn,Yt=or}if(sn===je.length)return p(Le,Yt),pn&&Hl(Le,sn),$t;if(Yt===null){for(;snsn?(or=Yt,Yt=null):or=Yt.sibling;var lc=Ue(Le,Yt,Yn.value,Ze);if(lc===null){Yt===null&&(Yt=or);break}s&&Yt&&lc.alternate===null&&c(Le,Yt),_e=M(lc,_e,sn),$n===null?$t=lc:$n.sibling=lc,$n=lc,Yt=or}if(Yn.done)return p(Le,Yt),pn&&Hl(Le,sn),$t;if(Yt===null){for(;!Yn.done;sn++,Yn=je.next())Yn=st(Le,Yn.value,Ze),Yn!==null&&(_e=M(Yn,_e,sn),$n===null?$t=Yn:$n.sibling=Yn,$n=Yn);return pn&&Hl(Le,sn),$t}for(Yt=S(Yt);!Yn.done;sn++,Yn=je.next())Yn=Ve(Yt,Le,sn,Yn.value,Ze),Yn!==null&&(s&&Yn.alternate!==null&&Yt.delete(Yn.key===null?sn:Yn.key),_e=M(Yn,_e,sn),$n===null?$t=Yn:$n.sibling=Yn,$n=Yn);return s&&Yt.forEach(function(SR){return c(Le,SR)}),pn&&Hl(Le,sn),$t}function Vr(Le,_e,je,Ze){if(typeof je=="object"&&je!==null&&je.type===u&&je.key===null&&(je=je.props.children),typeof je=="object"&&je!==null){switch(je.$$typeof){case o:e:{for(var $t=je.key;_e!==null;){if(_e.key===$t){if($t=je.type,$t===u){if(_e.tag===7){p(Le,_e.sibling),Ze=x(_e,je.props.children),Ze.return=Le,Le=Ze;break e}}else if(_e.elementType===$t||typeof $t=="object"&&$t!==null&&$t.$$typeof===k&&Hh($t)===_e.type){p(Le,_e.sibling),Ze=x(_e,je.props),K(Ze,je),Ze.return=Le,Le=Ze;break e}p(Le,_e);break}else c(Le,_e);_e=_e.sibling}je.type===u?(Ze=td(je.props.children,Le.mode,Ze,je.key),Ze.return=Le,Le=Ze):(Ze=hm(je.type,je.key,je.props,null,Le.mode,Ze),K(Ze,je),Ze.return=Le,Le=Ze)}return B(Le);case l:e:{for($t=je.key;_e!==null;){if(_e.key===$t)if(_e.tag===4&&_e.stateNode.containerInfo===je.containerInfo&&_e.stateNode.implementation===je.implementation){p(Le,_e.sibling),Ze=x(_e,je.children||[]),Ze.return=Le,Le=Ze;break e}else{p(Le,_e);break}else c(Le,_e);_e=_e.sibling}Ze=Fw(je,Le.mode,Ze),Ze.return=Le,Le=Ze}return B(Le);case k:return $t=je._init,je=$t(je._payload),Vr(Le,_e,je,Ze)}if(J(je))return Ht(Le,_e,je,Ze);if(N(je)){if($t=N(je),typeof $t!="function")throw Error(r(150));return je=$t.call(je),hn(Le,_e,je,Ze)}if(typeof je.then=="function")return Vr(Le,_e,qh(je),Ze);if(je.$$typeof===h)return Vr(Le,_e,Wy(Le,je),Ze);Xl(Le,je)}return typeof je=="string"&&je!==""||typeof je=="number"||typeof je=="bigint"?(je=""+je,_e!==null&&_e.tag===6?(p(Le,_e.sibling),Ze=x(_e,je),Ze.return=Le,Le=Ze):(p(Le,_e),Ze=Lw(je,Le.mode,Ze),Ze.return=Le,Le=Ze),B(Le)):p(Le,_e)}return function(Le,_e,je,Ze){try{Kl=0;var $t=Vr(Le,_e,je,Ze);return Yl=null,$t}catch(Yt){if(Yt===Gl)throw Yt;var $n=To(29,Yt,null,Le.mode);return $n.lanes=Ze,$n.return=Le,$n}finally{}}}var Tn=go(!0),OT=go(!1),Rf=fe(null),Ty=fe(0);function Uu(s,c){s=su,Ie(Ty,s),Ie(Rf,c),su=s|c.baseLanes}function K0(){Ie(Ty,su),Ie(Rf,Rf.current)}function X0(){su=Ty.current,xe(Rf),xe(Ty)}var Jo=fe(null),sl=null;function Bu(s){var c=s.alternate;Ie(Aa,Aa.current&1),Ie(Jo,s),sl===null&&(c===null||Rf.current!==null||c.memoizedState!==null)&&(sl=s)}function ll(s){if(s.tag===22){if(Ie(Aa,Aa.current),Ie(Jo,s),sl===null){var c=s.alternate;c!==null&&c.memoizedState!==null&&(sl=s)}}else Wu()}function Wu(){Ie(Aa,Aa.current),Ie(Jo,Jo.current)}function Ql(s){xe(Jo),sl===s&&(sl=null),xe(Aa)}var Aa=fe(0);function Cy(s){for(var c=s;c!==null;){if(c.tag===13){var p=c.memoizedState;if(p!==null&&(p=p.dehydrated,p===null||p.data==="$?"||p.data==="$!"))return c}else if(c.tag===19&&c.memoizedProps.revealOrder!==void 0){if((c.flags&128)!==0)return c}else if(c.child!==null){c.child.return=c,c=c.child;continue}if(c===s)break;for(;c.sibling===null;){if(c.return===null||c.return===s)return null;c=c.return}c.sibling.return=c.return,c=c.sibling}return null}var MO=typeof AbortController<"u"?AbortController:function(){var s=[],c=this.signal={aborted:!1,addEventListener:function(p,S){s.push(S)}};this.abort=function(){c.aborted=!0,s.forEach(function(p){return p()})}},Jl=e.unstable_scheduleCallback,IO=e.unstable_NormalPriority,Na={$$typeof:h,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function Q0(){return{controller:new MO,data:new Map,refCount:0}}function Vh(s){s.refCount--,s.refCount===0&&Jl(IO,function(){s.controller.abort()})}var Gh=null,Zl=0,Pf=0,Af=null;function ms(s,c){if(Gh===null){var p=Gh=[];Zl=0,Pf=t1(),Af={status:"pending",value:void 0,then:function(S){p.push(S)}}}return Zl++,c.then(RT,RT),c}function RT(){if(--Zl===0&&Gh!==null){Af!==null&&(Af.status="fulfilled");var s=Gh;Gh=null,Pf=0,Af=null;for(var c=0;cM?M:8;var B=j.T,X={};j.T=X,jf(s,!1,c,p);try{var de=x(),Pe=j.S;if(Pe!==null&&Pe(X,de),de!==null&&typeof de=="object"&&typeof de.then=="function"){var Ke=DO(de,S);em(s,c,Ke,ko(s))}else em(s,c,S,ko(s))}catch(st){em(s,c,{then:function(){},status:"rejected",reason:st},ko())}finally{ee.p=M,j.T=B}}function LO(){}function Zh(s,c,p,S){if(s.tag!==5)throw Error(r(476));var x=On(s).queue;My(s,x,c,Z,p===null?LO:function(){return zT(s),p(S)})}function On(s){var c=s.memoizedState;if(c!==null)return c;c={memoizedState:Z,baseState:Z,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:gs,lastRenderedState:Z},next:null};var p={};return c.next={memoizedState:p,baseState:p,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:gs,lastRenderedState:p},next:null},s.memoizedState=c,s=s.alternate,s!==null&&(s.memoizedState=c),c}function zT(s){var c=On(s).next.queue;em(s,c,{},ko())}function pw(){return ci(_m)}function Ff(){return ua().memoizedState}function hw(){return ua().memoizedState}function FO(s){for(var c=s.return;c!==null;){switch(c.tag){case 24:case 3:var p=ko();s=Ss(p);var S=bo(c,s,p);S!==null&&(fi(S,c,p),Qt(S,c,p)),c={cache:Q0()},s.payload=c;return}c=c.return}}function jO(s,c,p){var S=ko();p={lane:S,revertLane:0,action:p,hasEagerState:!1,eagerState:null,next:null},Uf(s)?mw(c,p):(p=nl(s,c,p,S),p!==null&&(fi(p,s,S),gw(p,c,S)))}function yo(s,c,p){var S=ko();em(s,c,p,S)}function em(s,c,p,S){var x={lane:S,revertLane:0,action:p,hasEagerState:!1,eagerState:null,next:null};if(Uf(s))mw(c,x);else{var M=s.alternate;if(s.lanes===0&&(M===null||M.lanes===0)&&(M=c.lastRenderedReducer,M!==null))try{var B=c.lastRenderedState,X=M(B,p);if(x.hasEagerState=!0,x.eagerState=X,ho(X,B))return Uc(s,c,x,0),Tr===null&&yy(),!1}catch{}finally{}if(p=nl(s,c,x,S),p!==null)return fi(p,s,S),gw(p,c,S),!0}return!1}function jf(s,c,p,S){if(S={lane:2,revertLane:t1(),action:S,hasEagerState:!1,eagerState:null,next:null},Uf(s)){if(c)throw Error(r(479))}else c=nl(s,p,S,2),c!==null&&fi(c,s,2)}function Uf(s){var c=s.alternate;return s===An||c!==null&&c===An}function mw(s,c){Nf=Kc=!0;var p=s.pending;p===null?c.next=c:(c.next=p.next,p.next=c),s.pending=c}function gw(s,c,p){if((p&4194176)!==0){var S=c.lanes;S&=s.pendingLanes,p|=S,c.lanes=p,Ra(s,p)}}var Qr={readContext:ci,use:Kh,useCallback:er,useContext:er,useEffect:er,useImperativeHandle:er,useLayoutEffect:er,useInsertionEffect:er,useMemo:er,useReducer:er,useRef:er,useState:er,useDebugValue:er,useDeferredValue:er,useTransition:er,useSyncExternalStore:er,useId:er};Qr.useCacheRefresh=er,Qr.useMemoCache=er,Qr.useHostTransitionStatus=er,Qr.useFormState=er,Qr.useActionState=er,Qr.useOptimistic=er;var Gi={readContext:ci,use:Kh,useCallback:function(s,c){return Vi().memoizedState=[s,c===void 0?null:c],s},useContext:ci,useEffect:sw,useImperativeHandle:function(s,c,p){p=p!=null?p.concat([s]):null,Lf(4194308,4,lw.bind(null,c,s),p)},useLayoutEffect:function(s,c){return Lf(4194308,4,s,c)},useInsertionEffect:function(s,c){Lf(4,2,s,c)},useMemo:function(s,c){var p=Vi();c=c===void 0?null:c;var S=s();if(qu){be(!0);try{s()}finally{be(!1)}}return p.memoizedState=[S,c],S},useReducer:function(s,c,p){var S=Vi();if(p!==void 0){var x=p(c);if(qu){be(!0);try{p(c)}finally{be(!1)}}}else x=c;return S.memoizedState=S.baseState=x,s={pending:null,lanes:0,dispatch:null,lastRenderedReducer:s,lastRenderedState:x},S.queue=s,s=s.dispatch=jO.bind(null,An,s),[S.memoizedState,s]},useRef:function(s){var c=Vi();return s={current:s},c.memoizedState=s},useState:function(s){s=rw(s);var c=s.queue,p=yo.bind(null,An,c);return c.dispatch=p,[s.memoizedState,p]},useDebugValue:cw,useDeferredValue:function(s,c){var p=Vi();return Jh(p,s,c)},useTransition:function(){var s=rw(!1);return s=My.bind(null,An,s.queue,!0,!1),Vi().memoizedState=s,[!1,s]},useSyncExternalStore:function(s,c,p){var S=An,x=Vi();if(pn){if(p===void 0)throw Error(r(407));p=p()}else{if(p=c(),Tr===null)throw Error(r(349));(Gn&60)!==0||Ry(S,c,p)}x.memoizedState=p;var M={value:p,getSnapshot:c};return x.queue=M,sw(NT.bind(null,S,M,s),[s]),S.flags|=2048,Gu(9,AT.bind(null,S,M,p,c),{destroy:void 0},null),p},useId:function(){var s=Vi(),c=Tr.identifierPrefix;if(pn){var p=Qo,S=Xo;p=(S&~(1<<32-Ee(S)-1)).toString(32)+p,c=":"+c+"R"+p,p=ky++,0 title"))),ti(M,S,p),M[ye]=s,lr(M),S=M;break e;case"link":var B=FC("link","href",x).get(S+(p.href||""));if(B){for(var X=0;X<\/script>",s=s.removeChild(s.firstChild);break;case"select":s=typeof S.is=="string"?x.createElement("select",{is:S.is}):x.createElement("select"),S.multiple?s.multiple=!0:S.size&&(s.size=S.size);break;default:s=typeof S.is=="string"?x.createElement(p,{is:S.is}):x.createElement(p)}}s[ye]=c,s[Se]=S;e:for(x=c.child;x!==null;){if(x.tag===5||x.tag===6)s.appendChild(x.stateNode);else if(x.tag!==4&&x.tag!==27&&x.child!==null){x.child.return=x,x=x.child;continue}if(x===c)break e;for(;x.sibling===null;){if(x.return===null||x.return===c)break e;x=x.return}x.sibling.return=x.return,x=x.sibling}c.stateNode=s;e:switch(ti(s,p,S),p){case"button":case"input":case"select":case"textarea":s=!!S.autoFocus;break e;case"img":s=!0;break e;default:s=!1}s&&iu(c)}}return zr(c),c.flags&=-16777217,null;case 6:if(s&&c.stateNode!=null)s.memoizedProps!==S&&iu(c);else{if(typeof S!="string"&&c.stateNode===null)throw Error(r(166));if(s=Ge.current,Gc(c)){if(s=c.stateNode,p=c.memoizedProps,S=null,x=ki,x!==null)switch(x.tag){case 27:case 5:S=x.memoizedProps}s[ye]=c,s=!!(s.nodeValue===p||S!==null&&S.suppressHydrationWarning===!0||bn(s.nodeValue,p)),s||Vc(c)}else s=tb(s).createTextNode(S),s[ye]=c,c.stateNode=s}return zr(c),null;case 13:if(S=c.memoizedState,s===null||s.memoizedState!==null&&s.memoizedState.dehydrated!==null){if(x=Gc(c),S!==null&&S.dehydrated!==null){if(s===null){if(!x)throw Error(r(318));if(x=c.memoizedState,x=x!==null?x.dehydrated:null,!x)throw Error(r(317));x[ye]=c}else ol(),(c.flags&128)===0&&(c.memoizedState=null),c.flags|=4;zr(c),x=!1}else hs!==null&&(ep(hs),hs=null),x=!0;if(!x)return c.flags&256?(Ql(c),c):(Ql(c),null)}if(Ql(c),(c.flags&128)!==0)return c.lanes=p,c;if(p=S!==null,s=s!==null&&s.memoizedState!==null,p){S=c.child,x=null,S.alternate!==null&&S.alternate.memoizedState!==null&&S.alternate.memoizedState.cachePool!==null&&(x=S.alternate.memoizedState.cachePool.pool);var M=null;S.memoizedState!==null&&S.memoizedState.cachePool!==null&&(M=S.memoizedState.cachePool.pool),M!==x&&(S.flags|=2048)}return p!==s&&p&&(c.child.flags|=8192),Oi(c,c.updateQueue),zr(c),null;case 4:return kt(),s===null&&o1(c.stateNode.containerInfo),zr(c),null;case 10:return cl(c.type),zr(c),null;case 19:if(xe(Aa),x=c.memoizedState,x===null)return zr(c),null;if(S=(c.flags&128)!==0,M=x.rendering,M===null)if(S)mm(x,!1);else{if(Zr!==0||s!==null&&(s.flags&128)!==0)for(s=c.child;s!==null;){if(M=Cy(s),M!==null){for(c.flags|=128,mm(x,!1),s=M.updateQueue,c.updateQueue=s,Oi(c,s),c.subtreeFlags=0,s=p,p=c.child;p!==null;)lC(p,s),p=p.sibling;return Ie(Aa,Aa.current&1|2),c.child}s=s.sibling}x.tail!==null&&ft()>Gy&&(c.flags|=128,S=!0,mm(x,!1),c.lanes=4194304)}else{if(!S)if(s=Cy(M),s!==null){if(c.flags|=128,S=!0,s=s.updateQueue,c.updateQueue=s,Oi(c,s),mm(x,!0),x.tail===null&&x.tailMode==="hidden"&&!M.alternate&&!pn)return zr(c),null}else 2*ft()-x.renderingStartTime>Gy&&p!==536870912&&(c.flags|=128,S=!0,mm(x,!1),c.lanes=4194304);x.isBackwards?(M.sibling=c.child,c.child=M):(s=x.last,s!==null?s.sibling=M:c.child=M,x.last=M)}return x.tail!==null?(c=x.tail,x.rendering=c,x.tail=c.sibling,x.renderingStartTime=ft(),c.sibling=null,s=Aa.current,Ie(Aa,S?s&1|2:s&1),c):(zr(c),null);case 22:case 23:return Ql(c),X0(),S=c.memoizedState!==null,s!==null?s.memoizedState!==null!==S&&(c.flags|=8192):S&&(c.flags|=8192),S?(p&536870912)!==0&&(c.flags&128)===0&&(zr(c),c.subtreeFlags&6&&(c.flags|=8192)):zr(c),p=c.updateQueue,p!==null&&Oi(c,p.retryQueue),p=null,s!==null&&s.memoizedState!==null&&s.memoizedState.cachePool!==null&&(p=s.memoizedState.cachePool.pool),S=null,c.memoizedState!==null&&c.memoizedState.cachePool!==null&&(S=c.memoizedState.cachePool.pool),S!==p&&(c.flags|=2048),s!==null&&xe(Yc),null;case 24:return p=null,s!==null&&(p=s.memoizedState.cache),c.memoizedState.cache!==p&&(c.flags|=2048),cl(Na),zr(c),null;case 25:return null}throw Error(r(156,c.tag))}function dC(s,c){switch(Y0(c),c.tag){case 1:return s=c.flags,s&65536?(c.flags=s&-65537|128,c):null;case 3:return cl(Na),kt(),s=c.flags,(s&65536)!==0&&(s&128)===0?(c.flags=s&-65537|128,c):null;case 26:case 27:case 5:return Rt(c),null;case 13:if(Ql(c),s=c.memoizedState,s!==null&&s.dehydrated!==null){if(c.alternate===null)throw Error(r(340));ol()}return s=c.flags,s&65536?(c.flags=s&-65537|128,c):null;case 19:return xe(Aa),null;case 4:return kt(),null;case 10:return cl(c.type),null;case 22:case 23:return Ql(c),X0(),s!==null&&xe(Yc),s=c.flags,s&65536?(c.flags=s&-65537|128,c):null;case 24:return cl(Na),null;case 25:return null;default:return null}}function fC(s,c){switch(Y0(c),c.tag){case 3:cl(Na),kt();break;case 26:case 27:case 5:Rt(c);break;case 4:kt();break;case 13:Ql(c);break;case 19:xe(Aa);break;case 10:cl(c.type);break;case 22:case 23:Ql(c),X0(),s!==null&&xe(Yc);break;case 24:cl(Na)}}var zO={getCacheForType:function(s){var c=ci(Na),p=c.data.get(s);return p===void 0&&(p=s(),c.data.set(s,p)),p}},qO=typeof WeakMap=="function"?WeakMap:Map,qr=0,Tr=null,Un=null,Gn=0,Nr=0,Co=null,ou=!1,Jf=!1,jw=!1,su=0,Zr=0,nc=0,nd=0,Uw=0,es=0,Zf=0,gm=null,ml=null,Bw=!1,Ww=0,Gy=1/0,Yy=null,gl=null,vm=!1,rd=null,ym=0,zw=0,qw=null,bm=0,Hw=null;function ko(){if((qr&2)!==0&&Gn!==0)return Gn&-Gn;if(j.T!==null){var s=Pf;return s!==0?s:t1()}return we()}function pC(){es===0&&(es=(Gn&536870912)===0||pn?Qa():536870912);var s=Jo.current;return s!==null&&(s.flags|=32),es}function fi(s,c,p){(s===Tr&&Nr===2||s.cancelPendingCommit!==null)&&(tp(s,0),lu(s,Gn,es,!1)),_a(s,p),((qr&2)===0||s!==Tr)&&(s===Tr&&((qr&2)===0&&(nd|=p),Zr===4&&lu(s,Gn,es,!1)),Cs(s))}function hC(s,c,p){if((qr&6)!==0)throw Error(r(327));var S=!p&&(c&60)===0&&(c&s.expiredLanes)===0||Bn(s,c),x=S?GO(s,c):Yw(s,c,!0),M=S;do{if(x===0){Jf&&!S&&lu(s,c,0,!1);break}else if(x===6)lu(s,c,0,!ou);else{if(p=s.current.alternate,M&&!HO(p)){x=Yw(s,c,!1),M=!1;continue}if(x===2){if(M=c,s.errorRecoveryDisabledLanes&M)var B=0;else B=s.pendingLanes&-536870913,B=B!==0?B:B&536870912?536870912:0;if(B!==0){c=B;e:{var X=s;x=gm;var de=X.current.memoizedState.isDehydrated;if(de&&(tp(X,B).flags|=256),B=Yw(X,B,!1),B!==2){if(jw&&!de){X.errorRecoveryDisabledLanes|=M,nd|=M,x=4;break e}M=ml,ml=x,M!==null&&ep(M)}x=B}if(M=!1,x!==2)continue}}if(x===1){tp(s,0),lu(s,c,0,!0);break}e:{switch(S=s,x){case 0:case 1:throw Error(r(345));case 4:if((c&4194176)===c){lu(S,c,es,!ou);break e}break;case 2:ml=null;break;case 3:case 5:break;default:throw Error(r(329))}if(S.finishedWork=p,S.finishedLanes=c,(c&62914560)===c&&(M=Ww+300-ft(),10p?32:p,j.T=null,rd===null)var M=!1;else{p=qw,qw=null;var B=rd,X=ym;if(rd=null,ym=0,(qr&6)!==0)throw Error(r(331));var de=qr;if(qr|=4,oC(B.current),rC(B,B.current,X,p),qr=de,od(0,!1),Tt&&typeof Tt.onPostCommitFiberRoot=="function")try{Tt.onPostCommitFiberRoot(We,B)}catch{}M=!0}return M}finally{ee.p=x,j.T=S,TC(s,c)}}return!1}function CC(s,c,p){c=Ci(p,c),c=nm(s.stateNode,c,2),s=bo(s,c,2),s!==null&&(_a(s,2),Cs(s))}function _r(s,c,p){if(s.tag===3)CC(s,s,p);else for(;c!==null;){if(c.tag===3){CC(c,s,p);break}else if(c.tag===1){var S=c.stateNode;if(typeof c.type.getDerivedStateFromError=="function"||typeof S.componentDidCatch=="function"&&(gl===null||!gl.has(S))){s=Ci(p,s),p=HT(2),S=bo(c,p,2),S!==null&&(VT(p,S,c,s),_a(S,2),Cs(S));break}}c=c.return}}function Kw(s,c,p){var S=s.pingCache;if(S===null){S=s.pingCache=new qO;var x=new Set;S.set(c,x)}else x=S.get(c),x===void 0&&(x=new Set,S.set(c,x));x.has(p)||(jw=!0,x.add(p),s=XO.bind(null,s,c,p),c.then(s,s))}function XO(s,c,p){var S=s.pingCache;S!==null&&S.delete(c),s.pingedLanes|=s.suspendedLanes&p,s.warmLanes&=~p,Tr===s&&(Gn&p)===p&&(Zr===4||Zr===3&&(Gn&62914560)===Gn&&300>ft()-Ww?(qr&2)===0&&tp(s,0):Uw|=p,Zf===Gn&&(Zf=0)),Cs(s)}function kC(s,c){c===0&&(c=ma()),s=ps(s,c),s!==null&&(_a(s,c),Cs(s))}function QO(s){var c=s.memoizedState,p=0;c!==null&&(p=c.retryLane),kC(s,p)}function JO(s,c){var p=0;switch(s.tag){case 13:var S=s.stateNode,x=s.memoizedState;x!==null&&(p=x.retryLane);break;case 19:S=s.stateNode;break;case 22:S=s.stateNode._retryCache;break;default:throw Error(r(314))}S!==null&&S.delete(c),kC(s,p)}function ZO(s,c){return qt(s,c)}var Xy=null,np=null,Xw=!1,id=!1,Qw=!1,rc=0;function Cs(s){s!==np&&s.next===null&&(np===null?Xy=np=s:np=np.next=s),id=!0,Xw||(Xw=!0,eR(xC))}function od(s,c){if(!Qw&&id){Qw=!0;do for(var p=!1,S=Xy;S!==null;){if(s!==0){var x=S.pendingLanes;if(x===0)var M=0;else{var B=S.suspendedLanes,X=S.pingedLanes;M=(1<<31-Ee(42|s)+1)-1,M&=x&~(B&~X),M=M&201326677?M&201326677|1:M?M|2:0}M!==0&&(p=!0,e1(S,M))}else M=Gn,M=ln(S,S===Tr?M:0),(M&3)===0||Bn(S,M)||(p=!0,e1(S,M));S=S.next}while(p);Qw=!1}}function xC(){id=Xw=!1;var s=0;rc!==0&&(cu()&&(s=rc),rc=0);for(var c=ft(),p=null,S=Xy;S!==null;){var x=S.next,M=Jw(S,c);M===0?(S.next=null,p===null?Xy=x:p.next=x,x===null&&(np=p)):(p=S,(s!==0||(M&3)!==0)&&(id=!0)),S=x}od(s)}function Jw(s,c){for(var p=s.suspendedLanes,S=s.pingedLanes,x=s.expirationTimes,M=s.pendingLanes&-62914561;0"u"?null:document;function DC(s,c,p){var S=xs;if(S&&typeof c=="string"&&c){var x=Ei(c);x='link[rel="'+s+'"][href="'+x+'"]',typeof p=="string"&&(x+='[crossorigin="'+p+'"]'),rb.has(x)||(rb.add(x),s={rel:s,crossOrigin:p,href:c},S.querySelector(x)===null&&(c=S.createElement("link"),ti(c,"link",s),lr(c),S.head.appendChild(c)))}}function oR(s){vl.D(s),DC("dns-prefetch",s,null)}function sR(s,c){vl.C(s,c),DC("preconnect",s,c)}function lR(s,c,p){vl.L(s,c,p);var S=xs;if(S&&s&&c){var x='link[rel="preload"][as="'+Ei(c)+'"]';c==="image"&&p&&p.imageSrcSet?(x+='[imagesrcset="'+Ei(p.imageSrcSet)+'"]',typeof p.imageSizes=="string"&&(x+='[imagesizes="'+Ei(p.imageSizes)+'"]')):x+='[href="'+Ei(s)+'"]';var M=x;switch(c){case"style":M=ni(s);break;case"script":M=ip(s)}pi.has(M)||(s=z({rel:"preload",href:c==="image"&&p&&p.imageSrcSet?void 0:s,as:c},p),pi.set(M,s),S.querySelector(x)!==null||c==="style"&&S.querySelector(ap(M))||c==="script"&&S.querySelector(op(M))||(c=S.createElement("link"),ti(c,"link",s),lr(c),S.head.appendChild(c)))}}function uR(s,c){vl.m(s,c);var p=xs;if(p&&s){var S=c&&typeof c.as=="string"?c.as:"script",x='link[rel="modulepreload"][as="'+Ei(S)+'"][href="'+Ei(s)+'"]',M=x;switch(S){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":M=ip(s)}if(!pi.has(M)&&(s=z({rel:"modulepreload",href:s},c),pi.set(M,s),p.querySelector(x)===null)){switch(S){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(p.querySelector(op(M)))return}S=p.createElement("link"),ti(S,"link",s),lr(S),p.head.appendChild(S)}}}function $C(s,c,p){vl.S(s,c,p);var S=xs;if(S&&s){var x=Pr(S).hoistableStyles,M=ni(s);c=c||"default";var B=x.get(M);if(!B){var X={loading:0,preload:null};if(B=S.querySelector(ap(M)))X.loading=5;else{s=z({rel:"stylesheet",href:s,"data-precedence":c},p),(p=pi.get(M))&&g1(s,p);var de=B=S.createElement("link");lr(de),ti(de,"link",s),de._p=new Promise(function(Pe,Ke){de.onload=Pe,de.onerror=Ke}),de.addEventListener("load",function(){X.loading|=1}),de.addEventListener("error",function(){X.loading|=2}),X.loading|=4,ob(B,c,S)}B={type:"stylesheet",instance:B,count:1,state:X},x.set(M,B)}}}function du(s,c){vl.X(s,c);var p=xs;if(p&&s){var S=Pr(p).hoistableScripts,x=ip(s),M=S.get(x);M||(M=p.querySelector(op(x)),M||(s=z({src:s,async:!0},c),(c=pi.get(x))&&v1(s,c),M=p.createElement("script"),lr(M),ti(M,"link",s),p.head.appendChild(M)),M={type:"script",instance:M,count:1,state:null},S.set(x,M))}}function xn(s,c){vl.M(s,c);var p=xs;if(p&&s){var S=Pr(p).hoistableScripts,x=ip(s),M=S.get(x);M||(M=p.querySelector(op(x)),M||(s=z({src:s,async:!0,type:"module"},c),(c=pi.get(x))&&v1(s,c),M=p.createElement("script"),lr(M),ti(M,"link",s),p.head.appendChild(M)),M={type:"script",instance:M,count:1,state:null},S.set(x,M))}}function m1(s,c,p,S){var x=(x=Ge.current)?ab(x):null;if(!x)throw Error(r(446));switch(s){case"meta":case"title":return null;case"style":return typeof p.precedence=="string"&&typeof p.href=="string"?(c=ni(p.href),p=Pr(x).hoistableStyles,S=p.get(c),S||(S={type:"style",instance:null,count:0,state:null},p.set(c,S)),S):{type:"void",instance:null,count:0,state:null};case"link":if(p.rel==="stylesheet"&&typeof p.href=="string"&&typeof p.precedence=="string"){s=ni(p.href);var M=Pr(x).hoistableStyles,B=M.get(s);if(B||(x=x.ownerDocument||x,B={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},M.set(s,B),(M=x.querySelector(ap(s)))&&!M._p&&(B.instance=M,B.state.loading=5),pi.has(s)||(p={rel:"preload",as:"style",href:p.href,crossOrigin:p.crossOrigin,integrity:p.integrity,media:p.media,hrefLang:p.hrefLang,referrerPolicy:p.referrerPolicy},pi.set(s,p),M||fr(x,s,p,B.state))),c&&S===null)throw Error(r(528,""));return B}if(c&&S!==null)throw Error(r(529,""));return null;case"script":return c=p.async,p=p.src,typeof p=="string"&&c&&typeof c!="function"&&typeof c!="symbol"?(c=ip(p),p=Pr(x).hoistableScripts,S=p.get(c),S||(S={type:"script",instance:null,count:0,state:null},p.set(c,S)),S):{type:"void",instance:null,count:0,state:null};default:throw Error(r(444,s))}}function ni(s){return'href="'+Ei(s)+'"'}function ap(s){return'link[rel="stylesheet"]['+s+"]"}function LC(s){return z({},s,{"data-precedence":s.precedence,precedence:null})}function fr(s,c,p,S){s.querySelector('link[rel="preload"][as="style"]['+c+"]")?S.loading=1:(c=s.createElement("link"),S.preload=c,c.addEventListener("load",function(){return S.loading|=1}),c.addEventListener("error",function(){return S.loading|=2}),ti(c,"link",p),lr(c),s.head.appendChild(c))}function ip(s){return'[src="'+Ei(s)+'"]'}function op(s){return"script[async]"+s}function km(s,c,p){if(c.count++,c.instance===null)switch(c.type){case"style":var S=s.querySelector('style[data-href~="'+Ei(p.href)+'"]');if(S)return c.instance=S,lr(S),S;var x=z({},p,{"data-href":p.href,"data-precedence":p.precedence,href:null,precedence:null});return S=(s.ownerDocument||s).createElement("style"),lr(S),ti(S,"style",x),ob(S,p.precedence,s),c.instance=S;case"stylesheet":x=ni(p.href);var M=s.querySelector(ap(x));if(M)return c.state.loading|=4,c.instance=M,lr(M),M;S=LC(p),(x=pi.get(x))&&g1(S,x),M=(s.ownerDocument||s).createElement("link"),lr(M);var B=M;return B._p=new Promise(function(X,de){B.onload=X,B.onerror=de}),ti(M,"link",S),c.state.loading|=4,ob(M,p.precedence,s),c.instance=M;case"script":return M=ip(p.src),(x=s.querySelector(op(M)))?(c.instance=x,lr(x),x):(S=p,(x=pi.get(M))&&(S=z({},p),v1(S,x)),s=s.ownerDocument||s,x=s.createElement("script"),lr(x),ti(x,"link",S),s.head.appendChild(x),c.instance=x);case"void":return null;default:throw Error(r(443,c.type))}else c.type==="stylesheet"&&(c.state.loading&4)===0&&(S=c.instance,c.state.loading|=4,ob(S,p.precedence,s));return c.instance}function ob(s,c,p){for(var S=p.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),x=S.length?S[S.length-1]:null,M=x,B=0;B title"):null)}function cR(s,c,p){if(p===1||c.itemProp!=null)return!1;switch(s){case"meta":case"title":return!0;case"style":if(typeof c.precedence!="string"||typeof c.href!="string"||c.href==="")break;return!0;case"link":if(typeof c.rel!="string"||typeof c.href!="string"||c.href===""||c.onLoad||c.onError)break;switch(c.rel){case"stylesheet":return s=c.disabled,typeof c.precedence=="string"&&s==null;default:return!0}case"script":if(c.async&&typeof c.async!="function"&&typeof c.async!="symbol"&&!c.onLoad&&!c.onError&&c.src&&typeof c.src=="string")return!0}return!1}function UC(s){return!(s.type==="stylesheet"&&(s.state.loading&3)===0)}var xm=null;function dR(){}function fR(s,c,p){if(xm===null)throw Error(r(475));var S=xm;if(c.type==="stylesheet"&&(typeof p.media!="string"||matchMedia(p.media).matches!==!1)&&(c.state.loading&4)===0){if(c.instance===null){var x=ni(p.href),M=s.querySelector(ap(x));if(M){s=M._p,s!==null&&typeof s=="object"&&typeof s.then=="function"&&(S.count++,S=lb.bind(S),s.then(S,S)),c.state.loading|=4,c.instance=M,lr(M);return}M=s.ownerDocument||s,p=LC(p),(x=pi.get(x))&&g1(p,x),M=M.createElement("link"),lr(M);var B=M;B._p=new Promise(function(X,de){B.onload=X,B.onerror=de}),ti(M,"link",p),c.instance=M}S.stylesheets===null&&(S.stylesheets=new Map),S.stylesheets.set(c,s),(s=c.state.preload)&&(c.state.loading&3)===0&&(S.count++,c=lb.bind(S),s.addEventListener("load",c),s.addEventListener("error",c))}}function pR(){if(xm===null)throw Error(r(475));var s=xm;return s.stylesheets&&s.count===0&&y1(s,s.stylesheets),0"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(t){console.error(t)}}return e(),OR.exports=Woe(),OR.exports}var qoe=zoe();const Hoe=Pc(qoe);var Sc=Y3();const Voe=Pc(Sc);/** +`+p.stack}}function q(s){var c=s,p=s;if(s.alternate)for(;c.return;)c=c.return;else{s=c;do c=s,(c.flags&4098)!==0&&(p=c.return),s=c.return;while(s)}return c.tag===3?p:null}function ce(s){if(s.tag===13){var c=s.memoizedState;if(c===null&&(s=s.alternate,s!==null&&(c=s.memoizedState)),c!==null)return c.dehydrated}return null}function H(s){if(q(s)!==s)throw Error(r(188))}function K(s){var c=s.alternate;if(!c){if(c=q(s),c===null)throw Error(r(188));return c!==s?null:s}for(var p=s,S=c;;){var x=p.return;if(x===null)break;var M=x.alternate;if(M===null){if(S=x.return,S!==null){p=S;continue}break}if(x.child===M.child){for(M=x.child;M;){if(M===p)return H(x),s;if(M===S)return H(x),c;M=M.sibling}throw Error(r(188))}if(p.return!==S.return)p=x,S=M;else{for(var B=!1,X=x.child;X;){if(X===p){B=!0,p=x,S=M;break}if(X===S){B=!0,S=x,p=M;break}X=X.sibling}if(!B){for(X=M.child;X;){if(X===p){B=!0,p=M,S=x;break}if(X===S){B=!0,S=M,p=x;break}X=X.sibling}if(!B)throw Error(r(189))}}if(p.alternate!==S)throw Error(r(190))}if(p.tag!==3)throw Error(r(188));return p.stateNode.current===p?s:c}function ae(s){var c=s.tag;if(c===5||c===26||c===27||c===6)return s;for(s=s.child;s!==null;){if(c=ae(s),c!==null)return c;s=s.sibling}return null}var J=Array.isArray,ee=n.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,Z={pending:!1,data:null,method:null,action:null},le=[],ke=-1;function fe(s){return{current:s}}function xe(s){0>ke||(s.current=le[ke],le[ke]=null,ke--)}function Ie(s,c){ke++,le[ke]=s.current,s.current=c}var qe=fe(null),tt=fe(null),Ge=fe(null),rt=fe(null);function St(s,c){switch(Ie(Ge,c),Ie(tt,s),Ie(qe,null),s=c.nodeType,s){case 9:case 11:c=(c=c.documentElement)&&(c=c.namespaceURI)?tk(c):0;break;default:if(s=s===8?c.parentNode:c,c=s.tagName,s=s.namespaceURI)s=tk(s),c=nk(s,c);else switch(c){case"svg":c=1;break;case"math":c=2;break;default:c=0}}xe(qe),Ie(qe,c)}function kt(){xe(qe),xe(tt),xe(Ge)}function xt(s){s.memoizedState!==null&&Ie(rt,s);var c=qe.current,p=nk(c,s.type);c!==p&&(Ie(tt,s),Ie(qe,p))}function Rt(s){tt.current===s&&(xe(qe),xe(tt)),rt.current===s&&(xe(rt),Fm._currentValue=Z)}var cn=Object.prototype.hasOwnProperty,qt=e.unstable_scheduleCallback,Wt=e.unstable_cancelCallback,Oe=e.unstable_shouldYield,dt=e.unstable_requestPaint,ft=e.unstable_now,ut=e.unstable_getCurrentPriorityLevel,Nt=e.unstable_ImmediatePriority,U=e.unstable_UserBlockingPriority,D=e.unstable_NormalPriority,F=e.unstable_LowPriority,ie=e.unstable_IdlePriority,Te=e.log,Fe=e.unstable_setDisableYieldValue,We=null,Et=null;function Mt(s){if(Et&&typeof Et.onCommitFiberRoot=="function")try{Et.onCommitFiberRoot(We,s,void 0,(s.current.flags&128)===128)}catch{}}function be(s){if(typeof Te=="function"&&Fe(s),Et&&typeof Et.setStrictMode=="function")try{Et.setStrictMode(We,s)}catch{}}var Ee=Math.clz32?Math.clz32:_t,gt=Math.log,Lt=Math.LN2;function _t(s){return s>>>=0,s===0?32:31-(gt(s)/Lt|0)|0}var Ut=128,_n=4194304;function gn(s){var c=s&42;if(c!==0)return c;switch(s&-s){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return s&4194176;case 4194304:case 8388608:case 16777216:case 33554432:return s&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return s}}function ln(s,c){var p=s.pendingLanes;if(p===0)return 0;var S=0,x=s.suspendedLanes,M=s.pingedLanes,B=s.warmLanes;s=s.finishedLanes!==0;var X=p&134217727;return X!==0?(p=X&~x,p!==0?S=gn(p):(M&=X,M!==0?S=gn(M):s||(B=X&~B,B!==0&&(S=gn(B))))):(X=p&~x,X!==0?S=gn(X):M!==0?S=gn(M):s||(B=p&~B,B!==0&&(S=gn(B)))),S===0?0:c!==0&&c!==S&&(c&x)===0&&(x=S&-S,B=c&-c,x>=B||x===32&&(B&4194176)!==0)?c:S}function Bn(s,c){return(s.pendingLanes&~(s.suspendedLanes&~s.pingedLanes)&c)===0}function la(s,c){switch(s){case 1:case 2:case 4:case 8:return c+250;case 16:case 32:case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return c+5e3;case 4194304:case 8388608:case 16777216:case 33554432:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function Ja(){var s=Ut;return Ut<<=1,(Ut&4194176)===0&&(Ut=128),s}function ga(){var s=_n;return _n<<=1,(_n&62914560)===0&&(_n=4194304),s}function vn(s){for(var c=[],p=0;31>p;p++)c.push(s);return c}function Ra(s,c){s.pendingLanes|=c,c!==268435456&&(s.suspendedLanes=0,s.pingedLanes=0,s.warmLanes=0)}function Ko(s,c,p,S,x,M){var B=s.pendingLanes;s.pendingLanes=p,s.suspendedLanes=0,s.pingedLanes=0,s.warmLanes=0,s.expiredLanes&=p,s.entangledLanes&=p,s.errorRecoveryDisabledLanes&=p,s.shellSuspendCounter=0;var X=s.entanglements,de=s.expirationTimes,Pe=s.hiddenUpdates;for(p=B&~p;0"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),gf=RegExp("^[:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD][:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$"),Cy={},qh={};function rw(s){return cn.call(qh,s)?!0:cn.call(Cy,s)?!1:gf.test(s)?qh[s]=!0:(Cy[s]=!0,!1)}function Uc(s,c,p){if(rw(c))if(p===null)s.removeAttribute(c);else{switch(typeof p){case"undefined":case"function":case"symbol":s.removeAttribute(c);return;case"boolean":var S=c.toLowerCase().slice(0,5);if(S!=="data-"&&S!=="aria-"){s.removeAttribute(c);return}}s.setAttribute(c,""+p)}}function Gi(s,c,p){if(p===null)s.removeAttribute(c);else{switch(typeof p){case"undefined":case"function":case"symbol":case"boolean":s.removeAttribute(c);return}s.setAttribute(c,""+p)}}function Qo(s,c,p,S){if(S===null)s.removeAttribute(p);else{switch(typeof S){case"undefined":case"function":case"symbol":case"boolean":s.removeAttribute(p);return}s.setAttributeNS(c,p,""+S)}}function Ti(s){switch(typeof s){case"bigint":case"boolean":case"number":case"string":case"undefined":return s;case"object":return s;default:return""}}function vf(s){var c=s.type;return(s=s.nodeName)&&s.toLowerCase()==="input"&&(c==="checkbox"||c==="radio")}function Du(s){var c=vf(s)?"checked":"value",p=Object.getOwnPropertyDescriptor(s.constructor.prototype,c),S=""+s[c];if(!s.hasOwnProperty(c)&&typeof p<"u"&&typeof p.get=="function"&&typeof p.set=="function"){var x=p.get,M=p.set;return Object.defineProperty(s,c,{configurable:!0,get:function(){return x.call(this)},set:function(B){S=""+B,M.call(this,B)}}),Object.defineProperty(s,c,{enumerable:p.enumerable}),{getValue:function(){return S},setValue:function(B){S=""+B},stopTracking:function(){s._valueTracker=null,delete s[c]}}}}function Js(s){s._valueTracker||(s._valueTracker=Du(s))}function Zs(s){if(!s)return!1;var c=s._valueTracker;if(!c)return!0;var p=c.getValue(),S="";return s&&(S=vf(s)?s.checked?"true":"false":s.value),s=S,s!==p?(c.setValue(s),!0):!1}function Bc(s){if(s=s||(typeof document<"u"?document:void 0),typeof s>"u")return null;try{return s.activeElement||s.body}catch{return s.body}}var aw=/[\n"\\]/g;function Ci(s){return s.replace(aw,function(c){return"\\"+c.charCodeAt(0).toString(16)+" "})}function yf(s,c,p,S,x,M,B,X){s.name="",B!=null&&typeof B!="function"&&typeof B!="symbol"&&typeof B!="boolean"?s.type=B:s.removeAttribute("type"),c!=null?B==="number"?(c===0&&s.value===""||s.value!=c)&&(s.value=""+Ti(c)):s.value!==""+Ti(c)&&(s.value=""+Ti(c)):B!=="submit"&&B!=="reset"||s.removeAttribute("value"),c!=null?Hh(s,B,Ti(c)):p!=null?Hh(s,B,Ti(p)):S!=null&&s.removeAttribute("value"),x==null&&M!=null&&(s.defaultChecked=!!M),x!=null&&(s.checked=x&&typeof x!="function"&&typeof x!="symbol"),X!=null&&typeof X!="function"&&typeof X!="symbol"&&typeof X!="boolean"?s.name=""+Ti(X):s.removeAttribute("name")}function bf(s,c,p,S,x,M,B,X){if(M!=null&&typeof M!="function"&&typeof M!="symbol"&&typeof M!="boolean"&&(s.type=M),c!=null||p!=null){if(!(M!=="submit"&&M!=="reset"||c!=null))return;p=p!=null?""+Ti(p):"",c=c!=null?""+Ti(c):p,X||c===s.value||(s.value=c),s.defaultValue=c}S=S??x,S=typeof S!="function"&&typeof S!="symbol"&&!!S,s.checked=X?s.checked:!!S,s.defaultChecked=!!S,B!=null&&typeof B!="function"&&typeof B!="symbol"&&typeof B!="boolean"&&(s.name=B)}function Hh(s,c,p){c==="number"&&Bc(s.ownerDocument)===s||s.defaultValue===""+p||(s.defaultValue=""+p)}function Bl(s,c,p,S){if(s=s.options,c){c={};for(var x=0;x=Rf),My=" ",uw=!1;function LT(s,c){switch(s){case"keyup":return Of.indexOf(c.keyCode)!==-1;case"keydown":return c.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Iy(s){return s=s.detail,typeof s=="object"&&"data"in s?s.data:null}var ju=!1;function JO(s,c){switch(s){case"compositionend":return Iy(c);case"keypress":return c.which!==32?null:(uw=!0,My);case"textInput":return s=c.data,s===My&&uw?null:s;default:return null}}function FT(s,c){if(ju)return s==="compositionend"||!lw&<(s,c)?(s=_y(),el=Fu=vs=null,ju=!1,s):null;switch(s){case"paste":return null;case"keypress":if(!(c.ctrlKey||c.altKey||c.metaKey)||c.ctrlKey&&c.altKey){if(c.char&&1=c)return{node:p,offset:c-s};s=S}e:{for(;p;){if(p.nextSibling){p=p.nextSibling;break e}p=p.parentNode}p=void 0}p=Zo(p)}}function qT(s,c){return s&&c?s===c?!0:s&&s.nodeType===3?!1:c&&c.nodeType===3?qT(s,c.parentNode):"contains"in s?s.contains(c):s.compareDocumentPosition?!!(s.compareDocumentPosition(c)&16):!1:!1}function HT(s){s=s!=null&&s.ownerDocument!=null&&s.ownerDocument.defaultView!=null?s.ownerDocument.defaultView:window;for(var c=Bc(s.document);c instanceof s.HTMLIFrameElement;){try{var p=typeof c.contentWindow.location.href=="string"}catch{p=!1}if(p)s=c.contentWindow;else break;c=Bc(s.document)}return c}function fw(s){var c=s&&s.nodeName&&s.nodeName.toLowerCase();return c&&(c==="input"&&(s.type==="text"||s.type==="search"||s.type==="tel"||s.type==="url"||s.type==="password")||c==="textarea"||s.contentEditable==="true")}function nR(s,c){var p=HT(c);c=s.focusedElem;var S=s.selectionRange;if(p!==c&&c&&c.ownerDocument&&qT(c.ownerDocument.documentElement,c)){if(S!==null&&fw(c)){if(s=S.start,p=S.end,p===void 0&&(p=s),"selectionStart"in c)c.selectionStart=s,c.selectionEnd=Math.min(p,c.value.length);else if(p=(s=c.ownerDocument||document)&&s.defaultView||window,p.getSelection){p=p.getSelection();var x=c.textContent.length,M=Math.min(S.start,x);S=S.end===void 0?M:Math.min(S.end,x),!p.extend&&M>S&&(x=S,S=M,M=x),x=dw(c,M);var B=dw(c,S);x&&B&&(p.rangeCount!==1||p.anchorNode!==x.node||p.anchorOffset!==x.offset||p.focusNode!==B.node||p.focusOffset!==B.offset)&&(s=s.createRange(),s.setStart(x.node,x.offset),p.removeAllRanges(),M>S?(p.addRange(s),p.extend(B.node,B.offset)):(s.setEnd(B.node,B.offset),p.addRange(s)))}}for(s=[],p=c;p=p.parentNode;)p.nodeType===1&&s.push({element:p,left:p.scrollLeft,top:p.scrollTop});for(typeof c.focus=="function"&&c.focus(),c=0;c=document.documentMode,ys=null,Ae=null,He=null,Be=!1;function It(s,c,p){var S=p.window===p?p.document:p.nodeType===9?p:p.ownerDocument;Be||ys==null||ys!==Bc(S)||(S=ys,"selectionStart"in S&&fw(S)?S={start:S.selectionStart,end:S.selectionEnd}:(S=(S.ownerDocument&&S.ownerDocument.defaultView||window).getSelection(),S={anchorNode:S.anchorNode,anchorOffset:S.anchorOffset,focusNode:S.focusNode,focusOffset:S.focusOffset}),He&&rl(He,S)||(He=S,S=Sb(Ae,"onSelect"),0>=B,x-=B,rs=1<<32-Ee(c)+x|p<sn?(or=Yt,Yt=null):or=Yt.sibling;var Yn=Ue(Le,Yt,je[sn],Ze);if(Yn===null){Yt===null&&(Yt=or);break}s&&Yt&&Yn.alternate===null&&c(Le,Yt),_e=M(Yn,_e,sn),$n===null?$t=Yn:$n.sibling=Yn,$n=Yn,Yt=or}if(sn===je.length)return p(Le,Yt),pn&&Yl(Le,sn),$t;if(Yt===null){for(;snsn?(or=Yt,Yt=null):or=Yt.sibling;var dc=Ue(Le,Yt,Yn.value,Ze);if(dc===null){Yt===null&&(Yt=or);break}s&&Yt&&dc.alternate===null&&c(Le,Yt),_e=M(dc,_e,sn),$n===null?$t=dc:$n.sibling=dc,$n=dc,Yt=or}if(Yn.done)return p(Le,Yt),pn&&Yl(Le,sn),$t;if(Yt===null){for(;!Yn.done;sn++,Yn=je.next())Yn=st(Le,Yn.value,Ze),Yn!==null&&(_e=M(Yn,_e,sn),$n===null?$t=Yn:$n.sibling=Yn,$n=Yn);return pn&&Yl(Le,sn),$t}for(Yt=S(Yt);!Yn.done;sn++,Yn=je.next())Yn=Ve(Yt,Le,sn,Yn.value,Ze),Yn!==null&&(s&&Yn.alternate!==null&&Yt.delete(Yn.key===null?sn:Yn.key),_e=M(Yn,_e,sn),$n===null?$t=Yn:$n.sibling=Yn,$n=Yn);return s&&Yt.forEach(function(GR){return c(Le,GR)}),pn&&Yl(Le,sn),$t}function Vr(Le,_e,je,Ze){if(typeof je=="object"&&je!==null&&je.type===u&&je.key===null&&(je=je.props.children),typeof je=="object"&&je!==null){switch(je.$$typeof){case o:e:{for(var $t=je.key;_e!==null;){if(_e.key===$t){if($t=je.type,$t===u){if(_e.tag===7){p(Le,_e.sibling),Ze=x(_e,je.props.children),Ze.return=Le,Le=Ze;break e}}else if(_e.elementType===$t||typeof $t=="object"&&$t!==null&&$t.$$typeof===k&&nm($t)===_e.type){p(Le,_e.sibling),Ze=x(_e,je.props),Y(Ze,je),Ze.return=Le,Le=Ze;break e}p(Le,_e);break}else c(Le,_e);_e=_e.sibling}je.type===u?(Ze=id(je.props.children,Le.mode,Ze,je.key),Ze.return=Le,Le=Ze):(Ze=km(je.type,je.key,je.props,null,Le.mode,Ze),Y(Ze,je),Ze.return=Le,Le=Ze)}return B(Le);case l:e:{for($t=je.key;_e!==null;){if(_e.key===$t)if(_e.tag===4&&_e.stateNode.containerInfo===je.containerInfo&&_e.stateNode.implementation===je.implementation){p(Le,_e.sibling),Ze=x(_e,je.children||[]),Ze.return=Le,Le=Ze;break e}else{p(Le,_e);break}else c(Le,_e);_e=_e.sibling}Ze=oS(je,Le.mode,Ze),Ze.return=Le,Le=Ze}return B(Le);case k:return $t=je._init,je=$t(je._payload),Vr(Le,_e,je,Ze)}if(J(je))return Ht(Le,_e,je,Ze);if(N(je)){if($t=N(je),typeof $t!="function")throw Error(r(150));return je=$t.call(je),hn(Le,_e,je,Ze)}if(typeof je.then=="function")return Vr(Le,_e,tm(je),Ze);if(je.$$typeof===h)return Vr(Le,_e,cb(Le,je),Ze);Zl(Le,je)}return typeof je=="string"&&je!==""||typeof je=="number"||typeof je=="bigint"?(je=""+je,_e!==null&&_e.tag===6?(p(Le,_e.sibling),Ze=x(_e,je),Ze.return=Le,Le=Ze):(p(Le,_e),Ze=iS(je,Le.mode,Ze),Ze.return=Le,Le=Ze),B(Le)):p(Le,_e)}return function(Le,_e,je,Ze){try{Jl=0;var $t=Vr(Le,_e,je,Ze);return Ql=null,$t}catch(Yt){if(Yt===Xl)throw Yt;var $n=xo(29,Yt,null,Le.mode);return $n.lanes=Ze,$n.return=Le,$n}finally{}}}var Tn=bo(!0),JT=bo(!1),$f=fe(null),Hy=fe(0);function zu(s,c){s=cu,Ie(Hy,s),Ie($f,c),cu=s|c.baseLanes}function vw(){Ie(Hy,cu),Ie($f,$f.current)}function yw(){cu=Hy.current,xe($f),xe(Hy)}var is=fe(null),ul=null;function qu(s){var c=s.alternate;Ie(Ma,Ma.current&1),Ie(is,s),ul===null&&(c===null||$f.current!==null||c.memoizedState!==null)&&(ul=s)}function cl(s){if(s.tag===22){if(Ie(Ma,Ma.current),Ie(is,s),ul===null){var c=s.alternate;c!==null&&c.memoizedState!==null&&(ul=s)}}else Hu()}function Hu(){Ie(Ma,Ma.current),Ie(is,is.current)}function eu(s){xe(is),ul===s&&(ul=null),xe(Ma)}var Ma=fe(0);function Vy(s){for(var c=s;c!==null;){if(c.tag===13){var p=c.memoizedState;if(p!==null&&(p=p.dehydrated,p===null||p.data==="$?"||p.data==="$!"))return c}else if(c.tag===19&&c.memoizedProps.revealOrder!==void 0){if((c.flags&128)!==0)return c}else if(c.child!==null){c.child.return=c,c=c.child;continue}if(c===s)break;for(;c.sibling===null;){if(c.return===null||c.return===s)return null;c=c.return}c.sibling.return=c.return,c=c.sibling}return null}var iR=typeof AbortController<"u"?AbortController:function(){var s=[],c=this.signal={aborted:!1,addEventListener:function(p,S){s.push(S)}};this.abort=function(){c.aborted=!0,s.forEach(function(p){return p()})}},tu=e.unstable_scheduleCallback,oR=e.unstable_NormalPriority,Ia={$$typeof:h,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function bw(){return{controller:new iR,data:new Map,refCount:0}}function rm(s){s.refCount--,s.refCount===0&&tu(oR,function(){s.controller.abort()})}var am=null,nu=0,Lf=0,Ff=null;function Ss(s,c){if(am===null){var p=am=[];nu=0,Lf=TS(),Ff={status:"pending",value:void 0,then:function(S){p.push(S)}}}return nu++,c.then(ZT,ZT),c}function ZT(){if(--nu===0&&am!==null){Ff!==null&&(Ff.status="fulfilled");var s=am;am=null,Lf=0,Ff=null;for(var c=0;cM?M:8;var B=j.T,X={};j.T=X,Vf(s,!1,c,p);try{var de=x(),Pe=j.S;if(Pe!==null&&Pe(X,de),de!==null&&typeof de=="object"&&typeof de.then=="function"){var Ke=sR(de,S);dm(s,c,Ke,Oo(s))}else dm(s,c,S,Oo(s))}catch(st){dm(s,c,{then:function(){},status:"rejected",reason:st},Oo())}finally{ee.p=M,j.T=B}}function uR(){}function cm(s,c,p,S){if(s.tag!==5)throw Error(r(476));var x=On(s).queue;tb(s,x,c,Z,p===null?uR:function(){return pC(s),p(S)})}function On(s){var c=s.memoizedState;if(c!==null)return c;c={memoizedState:Z,baseState:Z,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Es,lastRenderedState:Z},next:null};var p={};return c.next={memoizedState:p,baseState:p,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Es,lastRenderedState:p},next:null},s.memoizedState=c,s=s.alternate,s!==null&&(s.memoizedState=c),c}function pC(s){var c=On(s).next.queue;dm(s,c,{},Oo())}function Dw(){return fi(Fm)}function Hf(){return ca().memoizedState}function $w(){return ca().memoizedState}function cR(s){for(var c=s.return;c!==null;){switch(c.tag){case 24:case 3:var p=Oo();s=_s(p);var S=Eo(c,s,p);S!==null&&(hi(S,c,p),Qt(S,c,p)),c={cache:bw()},s.payload=c;return}c=c.return}}function dR(s,c,p){var S=Oo();p={lane:S,revertLane:0,action:p,hasEagerState:!1,eagerState:null,next:null},Gf(s)?Lw(c,p):(p=al(s,c,p,S),p!==null&&(hi(p,s,S),Fw(p,c,S)))}function So(s,c,p){var S=Oo();dm(s,c,p,S)}function dm(s,c,p,S){var x={lane:S,revertLane:0,action:p,hasEagerState:!1,eagerState:null,next:null};if(Gf(s))Lw(c,x);else{var M=s.alternate;if(s.lanes===0&&(M===null||M.lanes===0)&&(M=c.lastRenderedReducer,M!==null))try{var B=c.lastRenderedState,X=M(B,p);if(x.hasEagerState=!0,x.eagerState=X,vo(X,B))return qc(s,c,x,0),Tr===null&&Uy(),!1}catch{}finally{}if(p=al(s,c,x,S),p!==null)return hi(p,s,S),Fw(p,c,S),!0}return!1}function Vf(s,c,p,S){if(S={lane:2,revertLane:TS(),action:S,hasEagerState:!1,eagerState:null,next:null},Gf(s)){if(c)throw Error(r(479))}else c=al(s,p,S,2),c!==null&&hi(c,s,2)}function Gf(s){var c=s.alternate;return s===An||c!==null&&c===An}function Lw(s,c){jf=Zc=!0;var p=s.pending;p===null?c.next=c:(c.next=p.next,p.next=c),s.pending=c}function Fw(s,c,p){if((p&4194176)!==0){var S=c.lanes;S&=s.pendingLanes,p|=S,c.lanes=p,Aa(s,p)}}var Qr={readContext:fi,use:om,useCallback:er,useContext:er,useEffect:er,useImperativeHandle:er,useLayoutEffect:er,useInsertionEffect:er,useMemo:er,useReducer:er,useRef:er,useState:er,useDebugValue:er,useDeferredValue:er,useTransition:er,useSyncExternalStore:er,useId:er};Qr.useCacheRefresh=er,Qr.useMemoCache=er,Qr.useHostTransitionStatus=er,Qr.useFormState=er,Qr.useActionState=er,Qr.useOptimistic=er;var Ki={readContext:fi,use:om,useCallback:function(s,c){return Yi().memoizedState=[s,c===void 0?null:c],s},useContext:fi,useEffect:Rw,useImperativeHandle:function(s,c,p){p=p!=null?p.concat([s]):null,qf(4194308,4,Pw.bind(null,c,s),p)},useLayoutEffect:function(s,c){return qf(4194308,4,s,c)},useInsertionEffect:function(s,c){qf(4,2,s,c)},useMemo:function(s,c){var p=Yi();c=c===void 0?null:c;var S=s();if(Gu){be(!0);try{s()}finally{be(!1)}}return p.memoizedState=[S,c],S},useReducer:function(s,c,p){var S=Yi();if(p!==void 0){var x=p(c);if(Gu){be(!0);try{p(c)}finally{be(!1)}}}else x=c;return S.memoizedState=S.baseState=x,s={pending:null,lanes:0,dispatch:null,lastRenderedReducer:s,lastRenderedState:x},S.queue=s,s=s.dispatch=dR.bind(null,An,s),[S.memoizedState,s]},useRef:function(s){var c=Yi();return s={current:s},c.memoizedState=s},useState:function(s){s=kw(s);var c=s.queue,p=So.bind(null,An,c);return c.dispatch=p,[s.memoizedState,p]},useDebugValue:Nw,useDeferredValue:function(s,c){var p=Yi();return um(p,s,c)},useTransition:function(){var s=kw(!1);return s=tb.bind(null,An,s.queue,!0,!1),Yi().memoizedState=s,[!1,s]},useSyncExternalStore:function(s,c,p){var S=An,x=Yi();if(pn){if(p===void 0)throw Error(r(407));p=p()}else{if(p=c(),Tr===null)throw Error(r(349));(Gn&60)!==0||Qy(S,c,p)}x.memoizedState=p;var M={value:p,getSnapshot:c};return x.queue=M,Rw(nC.bind(null,S,M,s),[s]),S.flags|=2048,Xu(9,tC.bind(null,S,M,p,c),{destroy:void 0},null),p},useId:function(){var s=Yi(),c=Tr.identifierPrefix;if(pn){var p=as,S=rs;p=(S&~(1<<32-Ee(S)-1)).toString(32)+p,c=":"+c+"R"+p,p=Gy++,0 title"))),ni(M,S,p),M[ye]=s,lr(M),S=M;break e;case"link":var B=lk("link","href",x).get(S+(p.href||""));if(B){for(var X=0;X<\/script>",s=s.removeChild(s.firstChild);break;case"select":s=typeof S.is=="string"?x.createElement("select",{is:S.is}):x.createElement("select"),S.multiple?s.multiple=!0:S.size&&(s.size=S.size);break;default:s=typeof S.is=="string"?x.createElement(p,{is:S.is}):x.createElement(p)}}s[ye]=c,s[Se]=S;e:for(x=c.child;x!==null;){if(x.tag===5||x.tag===6)s.appendChild(x.stateNode);else if(x.tag!==4&&x.tag!==27&&x.child!==null){x.child.return=x,x=x.child;continue}if(x===c)break e;for(;x.sibling===null;){if(x.return===null||x.return===c)break e;x=x.return}x.sibling.return=x.return,x=x.sibling}c.stateNode=s;e:switch(ni(s,p,S),p){case"button":case"input":case"select":case"textarea":s=!!S.autoFocus;break e;case"img":s=!0;break e;default:s=!1}s&&lu(c)}}return zr(c),c.flags&=-16777217,null;case 6:if(s&&c.stateNode!=null)s.memoizedProps!==S&&lu(c);else{if(typeof S!="string"&&c.stateNode===null)throw Error(r(166));if(s=Ge.current,Qc(c)){if(s=c.stateNode,p=c.memoizedProps,S=null,x=_i,x!==null)switch(x.tag){case 27:case 5:S=x.memoizedProps}s[ye]=c,s=!!(s.nodeValue===p||S!==null&&S.suppressHydrationWarning===!0||bn(s.nodeValue,p)),s||Xc(c)}else s=Tb(s).createTextNode(S),s[ye]=c,c.stateNode=s}return zr(c),null;case 13:if(S=c.memoizedState,s===null||s.memoizedState!==null&&s.memoizedState.dehydrated!==null){if(x=Qc(c),S!==null&&S.dehydrated!==null){if(s===null){if(!x)throw Error(r(318));if(x=c.memoizedState,x=x!==null?x.dehydrated:null,!x)throw Error(r(317));x[ye]=c}else ll(),(c.flags&128)===0&&(c.memoizedState=null),c.flags|=4;zr(c),x=!1}else ws!==null&&(sp(ws),ws=null),x=!0;if(!x)return c.flags&256?(eu(c),c):(eu(c),null)}if(eu(c),(c.flags&128)!==0)return c.lanes=p,c;if(p=S!==null,s=s!==null&&s.memoizedState!==null,p){S=c.child,x=null,S.alternate!==null&&S.alternate.memoizedState!==null&&S.alternate.memoizedState.cachePool!==null&&(x=S.alternate.memoizedState.cachePool.pool);var M=null;S.memoizedState!==null&&S.memoizedState.cachePool!==null&&(M=S.memoizedState.cachePool.pool),M!==x&&(S.flags|=2048)}return p!==s&&p&&(c.child.flags|=8192),Pi(c,c.updateQueue),zr(c),null;case 4:return kt(),s===null&&OS(c.stateNode.containerInfo),zr(c),null;case 10:return fl(c.type),zr(c),null;case 19:if(xe(Ma),x=c.memoizedState,x===null)return zr(c),null;if(S=(c.flags&128)!==0,M=x.rendering,M===null)if(S)xm(x,!1);else{if(Zr!==0||s!==null&&(s.flags&128)!==0)for(s=c.child;s!==null;){if(M=Vy(s),M!==null){for(c.flags|=128,xm(x,!1),s=M.updateQueue,c.updateQueue=s,Pi(c,s),c.subtreeFlags=0,s=p,p=c.child;p!==null;)NC(p,s),p=p.sibling;return Ie(Ma,Ma.current&1|2),c.child}s=s.sibling}x.tail!==null&&ft()>mb&&(c.flags|=128,S=!0,xm(x,!1),c.lanes=4194304)}else{if(!S)if(s=Vy(M),s!==null){if(c.flags|=128,S=!0,s=s.updateQueue,c.updateQueue=s,Pi(c,s),xm(x,!0),x.tail===null&&x.tailMode==="hidden"&&!M.alternate&&!pn)return zr(c),null}else 2*ft()-x.renderingStartTime>mb&&p!==536870912&&(c.flags|=128,S=!0,xm(x,!1),c.lanes=4194304);x.isBackwards?(M.sibling=c.child,c.child=M):(s=x.last,s!==null?s.sibling=M:c.child=M,x.last=M)}return x.tail!==null?(c=x.tail,x.rendering=c,x.tail=c.sibling,x.renderingStartTime=ft(),c.sibling=null,s=Ma.current,Ie(Ma,S?s&1|2:s&1),c):(zr(c),null);case 22:case 23:return eu(c),yw(),S=c.memoizedState!==null,s!==null?s.memoizedState!==null!==S&&(c.flags|=8192):S&&(c.flags|=8192),S?(p&536870912)!==0&&(c.flags&128)===0&&(zr(c),c.subtreeFlags&6&&(c.flags|=8192)):zr(c),p=c.updateQueue,p!==null&&Pi(c,p.retryQueue),p=null,s!==null&&s.memoizedState!==null&&s.memoizedState.cachePool!==null&&(p=s.memoizedState.cachePool.pool),S=null,c.memoizedState!==null&&c.memoizedState.cachePool!==null&&(S=c.memoizedState.cachePool.pool),S!==p&&(c.flags|=2048),s!==null&&xe(Jc),null;case 24:return p=null,s!==null&&(p=s.memoizedState.cache),c.memoizedState.cache!==p&&(c.flags|=2048),fl(Ia),zr(c),null;case 25:return null}throw Error(r(156,c.tag))}function DC(s,c){switch(gw(c),c.tag){case 1:return s=c.flags,s&65536?(c.flags=s&-65537|128,c):null;case 3:return fl(Ia),kt(),s=c.flags,(s&65536)!==0&&(s&128)===0?(c.flags=s&-65537|128,c):null;case 26:case 27:case 5:return Rt(c),null;case 13:if(eu(c),s=c.memoizedState,s!==null&&s.dehydrated!==null){if(c.alternate===null)throw Error(r(340));ll()}return s=c.flags,s&65536?(c.flags=s&-65537|128,c):null;case 19:return xe(Ma),null;case 4:return kt(),null;case 10:return fl(c.type),null;case 22:case 23:return eu(c),yw(),s!==null&&xe(Jc),s=c.flags,s&65536?(c.flags=s&-65537|128,c):null;case 24:return fl(Ia),null;case 25:return null;default:return null}}function $C(s,c){switch(gw(c),c.tag){case 3:fl(Ia),kt();break;case 26:case 27:case 5:Rt(c);break;case 4:kt();break;case 13:eu(c);break;case 19:xe(Ma);break;case 10:fl(c.type);break;case 22:case 23:eu(c),yw(),s!==null&&xe(Jc);break;case 24:fl(Ia)}}var mR={getCacheForType:function(s){var c=fi(Ia),p=c.data.get(s);return p===void 0&&(p=s(),c.data.set(s,p)),p}},gR=typeof WeakMap=="function"?WeakMap:Map,qr=0,Tr=null,Un=null,Gn=0,Nr=0,_o=null,uu=!1,ip=!1,sS=!1,cu=0,Zr=0,ic=0,od=0,lS=0,ss=0,op=0,_m=null,vl=null,uS=!1,cS=0,mb=1/0,gb=null,yl=null,Om=!1,sd=null,Rm=0,dS=0,fS=null,Pm=0,pS=null;function Oo(){if((qr&2)!==0&&Gn!==0)return Gn&-Gn;if(j.T!==null){var s=Lf;return s!==0?s:TS()}return we()}function LC(){ss===0&&(ss=(Gn&536870912)===0||pn?Ja():536870912);var s=is.current;return s!==null&&(s.flags|=32),ss}function hi(s,c,p){(s===Tr&&Nr===2||s.cancelPendingCommit!==null)&&(lp(s,0),du(s,Gn,ss,!1)),Ra(s,p),((qr&2)===0||s!==Tr)&&(s===Tr&&((qr&2)===0&&(od|=p),Zr===4&&du(s,Gn,ss,!1)),Ps(s))}function FC(s,c,p){if((qr&6)!==0)throw Error(r(327));var S=!p&&(c&60)===0&&(c&s.expiredLanes)===0||Bn(s,c),x=S?bR(s,c):gS(s,c,!0),M=S;do{if(x===0){ip&&!S&&du(s,c,0,!1);break}else if(x===6)du(s,c,0,!uu);else{if(p=s.current.alternate,M&&!vR(p)){x=gS(s,c,!1),M=!1;continue}if(x===2){if(M=c,s.errorRecoveryDisabledLanes&M)var B=0;else B=s.pendingLanes&-536870913,B=B!==0?B:B&536870912?536870912:0;if(B!==0){c=B;e:{var X=s;x=_m;var de=X.current.memoizedState.isDehydrated;if(de&&(lp(X,B).flags|=256),B=gS(X,B,!1),B!==2){if(sS&&!de){X.errorRecoveryDisabledLanes|=M,od|=M,x=4;break e}M=vl,vl=x,M!==null&&sp(M)}x=B}if(M=!1,x!==2)continue}}if(x===1){lp(s,0),du(s,c,0,!0);break}e:{switch(S=s,x){case 0:case 1:throw Error(r(345));case 4:if((c&4194176)===c){du(S,c,ss,!uu);break e}break;case 2:vl=null;break;case 3:case 5:break;default:throw Error(r(329))}if(S.finishedWork=p,S.finishedLanes=c,(c&62914560)===c&&(M=cS+300-ft(),10p?32:p,j.T=null,sd===null)var M=!1;else{p=fS,fS=null;var B=sd,X=Rm;if(sd=null,Rm=0,(qr&6)!==0)throw Error(r(331));var de=qr;if(qr|=4,PC(B.current),_C(B,B.current,X,p),qr=de,cd(0,!1),Et&&typeof Et.onPostCommitFiberRoot=="function")try{Et.onPostCommitFiberRoot(We,B)}catch{}M=!0}return M}finally{ee.p=x,j.T=S,GC(s,c)}}return!1}function YC(s,c,p){c=xi(p,c),c=pm(s.stateNode,c,2),s=Eo(s,c,2),s!==null&&(Ra(s,2),Ps(s))}function _r(s,c,p){if(s.tag===3)YC(s,s,p);else for(;c!==null;){if(c.tag===3){YC(c,s,p);break}else if(c.tag===1){var S=c.stateNode;if(typeof c.type.getDerivedStateFromError=="function"||typeof S.componentDidCatch=="function"&&(yl===null||!yl.has(S))){s=xi(p,s),p=mC(2),S=Eo(c,p,2),S!==null&&(gC(p,S,c,s),Ra(S,2),Ps(S));break}}c=c.return}}function vS(s,c,p){var S=s.pingCache;if(S===null){S=s.pingCache=new gR;var x=new Set;S.set(c,x)}else x=S.get(c),x===void 0&&(x=new Set,S.set(c,x));x.has(p)||(sS=!0,x.add(p),s=ER.bind(null,s,c,p),c.then(s,s))}function ER(s,c,p){var S=s.pingCache;S!==null&&S.delete(c),s.pingedLanes|=s.suspendedLanes&p,s.warmLanes&=~p,Tr===s&&(Gn&p)===p&&(Zr===4||Zr===3&&(Gn&62914560)===Gn&&300>ft()-cS?(qr&2)===0&&lp(s,0):lS|=p,op===Gn&&(op=0)),Ps(s)}function KC(s,c){c===0&&(c=ga()),s=bs(s,c),s!==null&&(Ra(s,c),Ps(s))}function TR(s){var c=s.memoizedState,p=0;c!==null&&(p=c.retryLane),KC(s,p)}function CR(s,c){var p=0;switch(s.tag){case 13:var S=s.stateNode,x=s.memoizedState;x!==null&&(p=x.retryLane);break;case 19:S=s.stateNode;break;case 22:S=s.stateNode._retryCache;break;default:throw Error(r(314))}S!==null&&S.delete(c),KC(s,p)}function kR(s,c){return qt(s,c)}var yb=null,up=null,yS=!1,ud=!1,bS=!1,oc=0;function Ps(s){s!==up&&s.next===null&&(up===null?yb=up=s:up=up.next=s),ud=!0,yS||(yS=!0,xR(XC))}function cd(s,c){if(!bS&&ud){bS=!0;do for(var p=!1,S=yb;S!==null;){if(s!==0){var x=S.pendingLanes;if(x===0)var M=0;else{var B=S.suspendedLanes,X=S.pingedLanes;M=(1<<31-Ee(42|s)+1)-1,M&=x&~(B&~X),M=M&201326677?M&201326677|1:M?M|2:0}M!==0&&(p=!0,ES(S,M))}else M=Gn,M=ln(S,S===Tr?M:0),(M&3)===0||Bn(S,M)||(p=!0,ES(S,M));S=S.next}while(p);bS=!1}}function XC(){ud=yS=!1;var s=0;oc!==0&&(pu()&&(s=oc),oc=0);for(var c=ft(),p=null,S=yb;S!==null;){var x=S.next,M=wS(S,c);M===0?(S.next=null,p===null?yb=x:p.next=x,x===null&&(up=p)):(p=S,(s!==0||(M&3)!==0)&&(ud=!0)),S=x}cd(s)}function wS(s,c){for(var p=s.suspendedLanes,S=s.pingedLanes,x=s.expirationTimes,M=s.pendingLanes&-62914561;0"u"?null:document;function ik(s,c,p){var S=Ns;if(S&&typeof c=="string"&&c){var x=Ci(c);x='link[rel="'+s+'"][href="'+x+'"]',typeof p=="string"&&(x+='[crossorigin="'+p+'"]'),kb.has(x)||(kb.add(x),s={rel:s,crossOrigin:p,href:c},S.querySelector(x)===null&&(c=S.createElement("link"),ni(c,"link",s),lr(c),S.head.appendChild(c)))}}function NR(s){bl.D(s),ik("dns-prefetch",s,null)}function MR(s,c){bl.C(s,c),ik("preconnect",s,c)}function IR(s,c,p){bl.L(s,c,p);var S=Ns;if(S&&s&&c){var x='link[rel="preload"][as="'+Ci(c)+'"]';c==="image"&&p&&p.imageSrcSet?(x+='[imagesrcset="'+Ci(p.imageSrcSet)+'"]',typeof p.imageSizes=="string"&&(x+='[imagesizes="'+Ci(p.imageSizes)+'"]')):x+='[href="'+Ci(s)+'"]';var M=x;switch(c){case"style":M=ri(s);break;case"script":M=fp(s)}mi.has(M)||(s=z({rel:"preload",href:c==="image"&&p&&p.imageSrcSet?void 0:s,as:c},p),mi.set(M,s),S.querySelector(x)!==null||c==="style"&&S.querySelector(dp(M))||c==="script"&&S.querySelector(pp(M))||(c=S.createElement("link"),ni(c,"link",s),lr(c),S.head.appendChild(c)))}}function DR(s,c){bl.m(s,c);var p=Ns;if(p&&s){var S=c&&typeof c.as=="string"?c.as:"script",x='link[rel="modulepreload"][as="'+Ci(S)+'"][href="'+Ci(s)+'"]',M=x;switch(S){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":M=fp(s)}if(!mi.has(M)&&(s=z({rel:"modulepreload",href:s},c),mi.set(M,s),p.querySelector(x)===null)){switch(S){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(p.querySelector(pp(M)))return}S=p.createElement("link"),ni(S,"link",s),lr(S),p.head.appendChild(S)}}}function ok(s,c,p){bl.S(s,c,p);var S=Ns;if(S&&s){var x=Pr(S).hoistableStyles,M=ri(s);c=c||"default";var B=x.get(M);if(!B){var X={loading:0,preload:null};if(B=S.querySelector(dp(M)))X.loading=5;else{s=z({rel:"stylesheet",href:s,"data-precedence":c},p),(p=mi.get(M))&&FS(s,p);var de=B=S.createElement("link");lr(de),ni(de,"link",s),de._p=new Promise(function(Pe,Ke){de.onload=Pe,de.onerror=Ke}),de.addEventListener("load",function(){X.loading|=1}),de.addEventListener("error",function(){X.loading|=2}),X.loading|=4,Ob(B,c,S)}B={type:"stylesheet",instance:B,count:1,state:X},x.set(M,B)}}}function hu(s,c){bl.X(s,c);var p=Ns;if(p&&s){var S=Pr(p).hoistableScripts,x=fp(s),M=S.get(x);M||(M=p.querySelector(pp(x)),M||(s=z({src:s,async:!0},c),(c=mi.get(x))&&jS(s,c),M=p.createElement("script"),lr(M),ni(M,"link",s),p.head.appendChild(M)),M={type:"script",instance:M,count:1,state:null},S.set(x,M))}}function xn(s,c){bl.M(s,c);var p=Ns;if(p&&s){var S=Pr(p).hoistableScripts,x=fp(s),M=S.get(x);M||(M=p.querySelector(pp(x)),M||(s=z({src:s,async:!0,type:"module"},c),(c=mi.get(x))&&jS(s,c),M=p.createElement("script"),lr(M),ni(M,"link",s),p.head.appendChild(M)),M={type:"script",instance:M,count:1,state:null},S.set(x,M))}}function LS(s,c,p,S){var x=(x=Ge.current)?xb(x):null;if(!x)throw Error(r(446));switch(s){case"meta":case"title":return null;case"style":return typeof p.precedence=="string"&&typeof p.href=="string"?(c=ri(p.href),p=Pr(x).hoistableStyles,S=p.get(c),S||(S={type:"style",instance:null,count:0,state:null},p.set(c,S)),S):{type:"void",instance:null,count:0,state:null};case"link":if(p.rel==="stylesheet"&&typeof p.href=="string"&&typeof p.precedence=="string"){s=ri(p.href);var M=Pr(x).hoistableStyles,B=M.get(s);if(B||(x=x.ownerDocument||x,B={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},M.set(s,B),(M=x.querySelector(dp(s)))&&!M._p&&(B.instance=M,B.state.loading=5),mi.has(s)||(p={rel:"preload",as:"style",href:p.href,crossOrigin:p.crossOrigin,integrity:p.integrity,media:p.media,hrefLang:p.hrefLang,referrerPolicy:p.referrerPolicy},mi.set(s,p),M||fr(x,s,p,B.state))),c&&S===null)throw Error(r(528,""));return B}if(c&&S!==null)throw Error(r(529,""));return null;case"script":return c=p.async,p=p.src,typeof p=="string"&&c&&typeof c!="function"&&typeof c!="symbol"?(c=fp(p),p=Pr(x).hoistableScripts,S=p.get(c),S||(S={type:"script",instance:null,count:0,state:null},p.set(c,S)),S):{type:"void",instance:null,count:0,state:null};default:throw Error(r(444,s))}}function ri(s){return'href="'+Ci(s)+'"'}function dp(s){return'link[rel="stylesheet"]['+s+"]"}function sk(s){return z({},s,{"data-precedence":s.precedence,precedence:null})}function fr(s,c,p,S){s.querySelector('link[rel="preload"][as="style"]['+c+"]")?S.loading=1:(c=s.createElement("link"),S.preload=c,c.addEventListener("load",function(){return S.loading|=1}),c.addEventListener("error",function(){return S.loading|=2}),ni(c,"link",p),lr(c),s.head.appendChild(c))}function fp(s){return'[src="'+Ci(s)+'"]'}function pp(s){return"script[async]"+s}function $m(s,c,p){if(c.count++,c.instance===null)switch(c.type){case"style":var S=s.querySelector('style[data-href~="'+Ci(p.href)+'"]');if(S)return c.instance=S,lr(S),S;var x=z({},p,{"data-href":p.href,"data-precedence":p.precedence,href:null,precedence:null});return S=(s.ownerDocument||s).createElement("style"),lr(S),ni(S,"style",x),Ob(S,p.precedence,s),c.instance=S;case"stylesheet":x=ri(p.href);var M=s.querySelector(dp(x));if(M)return c.state.loading|=4,c.instance=M,lr(M),M;S=sk(p),(x=mi.get(x))&&FS(S,x),M=(s.ownerDocument||s).createElement("link"),lr(M);var B=M;return B._p=new Promise(function(X,de){B.onload=X,B.onerror=de}),ni(M,"link",S),c.state.loading|=4,Ob(M,p.precedence,s),c.instance=M;case"script":return M=fp(p.src),(x=s.querySelector(pp(M)))?(c.instance=x,lr(x),x):(S=p,(x=mi.get(M))&&(S=z({},p),jS(S,x)),s=s.ownerDocument||s,x=s.createElement("script"),lr(x),ni(x,"link",S),s.head.appendChild(x),c.instance=x);case"void":return null;default:throw Error(r(443,c.type))}else c.type==="stylesheet"&&(c.state.loading&4)===0&&(S=c.instance,c.state.loading|=4,Ob(S,p.precedence,s));return c.instance}function Ob(s,c,p){for(var S=p.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),x=S.length?S[S.length-1]:null,M=x,B=0;B title"):null)}function $R(s,c,p){if(p===1||c.itemProp!=null)return!1;switch(s){case"meta":case"title":return!0;case"style":if(typeof c.precedence!="string"||typeof c.href!="string"||c.href==="")break;return!0;case"link":if(typeof c.rel!="string"||typeof c.href!="string"||c.href===""||c.onLoad||c.onError)break;switch(c.rel){case"stylesheet":return s=c.disabled,typeof c.precedence=="string"&&s==null;default:return!0}case"script":if(c.async&&typeof c.async!="function"&&typeof c.async!="symbol"&&!c.onLoad&&!c.onError&&c.src&&typeof c.src=="string")return!0}return!1}function ck(s){return!(s.type==="stylesheet"&&(s.state.loading&3)===0)}var Lm=null;function LR(){}function FR(s,c,p){if(Lm===null)throw Error(r(475));var S=Lm;if(c.type==="stylesheet"&&(typeof p.media!="string"||matchMedia(p.media).matches!==!1)&&(c.state.loading&4)===0){if(c.instance===null){var x=ri(p.href),M=s.querySelector(dp(x));if(M){s=M._p,s!==null&&typeof s=="object"&&typeof s.then=="function"&&(S.count++,S=Pb.bind(S),s.then(S,S)),c.state.loading|=4,c.instance=M,lr(M);return}M=s.ownerDocument||s,p=sk(p),(x=mi.get(x))&&FS(p,x),M=M.createElement("link"),lr(M);var B=M;B._p=new Promise(function(X,de){B.onload=X,B.onerror=de}),ni(M,"link",p),c.instance=M}S.stylesheets===null&&(S.stylesheets=new Map),S.stylesheets.set(c,s),(s=c.state.preload)&&(c.state.loading&3)===0&&(S.count++,c=Pb.bind(S),s.addEventListener("load",c),s.addEventListener("error",c))}}function jR(){if(Lm===null)throw Error(r(475));var s=Lm;return s.stylesheets&&s.count===0&&US(s,s.stylesheets),0"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(t){console.error(t)}}return e(),eP.exports=mse(),eP.exports}var vse=gse();const yse=Ic(vse);var Cc=EF();const bse=Ic(Cc);/** * @remix-run/router v1.23.0 * * Copyright (c) Remix Software Inc. @@ -55,7 +55,7 @@ Error generating stack: `+p.message+` * LICENSE.md file in the root directory of this source tree. * * @license MIT - */function $S(){return $S=Object.assign?Object.assign.bind():function(e){for(var t=1;tf(h,typeof h=="string"?null:h.state,v===0?"default":void 0));let i=u(n??a.length-1),o=Ol.Pop,l=null;function u(h){return Math.min(Math.max(h,0),a.length-1)}function d(){return a[i]}function f(h,v,E){v===void 0&&(v=null);let T=rx(a?d().pathname:"/",h,v,E);return i_(T.pathname.charAt(0)==="/","relative pathnames are not supported in memory history: "+JSON.stringify(h)),T}function g(h){return typeof h=="string"?h:LS(h)}return{get index(){return i},get action(){return o},get location(){return d()},createHref:g,createURL(h){return new URL(g(h),"http://localhost")},encodeLocation(h){let v=typeof h=="string"?dh(h):h;return{pathname:v.pathname||"",search:v.search||"",hash:v.hash||""}},push(h,v){o=Ol.Push;let E=f(h,v);i+=1,a.splice(i,a.length,E),r&&l&&l({action:o,location:E,delta:1})},replace(h,v){o=Ol.Replace;let E=f(h,v);a[i]=E,r&&l&&l({action:o,location:E,delta:0})},go(h){o=Ol.Pop;let v=u(i+h),E=a[v];i=v,l&&l({action:o,location:E,delta:h})},listen(h){return l=h,()=>{l=null}}}}function Yoe(e){e===void 0&&(e={});function t(a,i){let{pathname:o="/",search:l="",hash:u=""}=dh(a.location.hash.substr(1));return!o.startsWith("/")&&!o.startsWith(".")&&(o="/"+o),rx("",{pathname:o,search:l,hash:u},i.state&&i.state.usr||null,i.state&&i.state.key||"default")}function n(a,i){let o=a.document.querySelector("base"),l="";if(o&&o.getAttribute("href")){let u=a.location.href,d=u.indexOf("#");l=d===-1?u:u.slice(0,d)}return l+"#"+(typeof i=="string"?i:LS(i))}function r(a,i){i_(a.pathname.charAt(0)==="/","relative pathnames are not supported in hash history.push("+JSON.stringify(i)+")")}return Xoe(t,n,r,e)}function za(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}function i_(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function Koe(){return Math.random().toString(36).substr(2,8)}function gU(e,t){return{usr:e.state,key:e.key,idx:t}}function rx(e,t,n,r){return n===void 0&&(n=null),$S({pathname:typeof e=="string"?e:e.pathname,search:"",hash:""},typeof t=="string"?dh(t):t,{state:n,key:t&&t.key||r||Koe()})}function LS(e){let{pathname:t="/",search:n="",hash:r=""}=e;return n&&n!=="?"&&(t+=n.charAt(0)==="?"?n:"?"+n),r&&r!=="#"&&(t+=r.charAt(0)==="#"?r:"#"+r),t}function dh(e){let t={};if(e){let n=e.indexOf("#");n>=0&&(t.hash=e.substr(n),e=e.substr(0,n));let r=e.indexOf("?");r>=0&&(t.search=e.substr(r),e=e.substr(0,r)),e&&(t.pathname=e)}return t}function Xoe(e,t,n,r){r===void 0&&(r={});let{window:a=document.defaultView,v5Compat:i=!1}=r,o=a.history,l=Ol.Pop,u=null,d=f();d==null&&(d=0,o.replaceState($S({},o.state,{idx:d}),""));function f(){return(o.state||{idx:null}).idx}function g(){l=Ol.Pop;let T=f(),C=T==null?null:T-d;d=T,u&&u({action:l,location:E.location,delta:C})}function y(T,C){l=Ol.Push;let k=rx(E.location,T,C);n&&n(k,T),d=f()+1;let _=gU(k,d),A=E.createHref(k);try{o.pushState(_,"",A)}catch(P){if(P instanceof DOMException&&P.name==="DataCloneError")throw P;a.location.assign(A)}i&&u&&u({action:l,location:E.location,delta:1})}function h(T,C){l=Ol.Replace;let k=rx(E.location,T,C);n&&n(k,T),d=f();let _=gU(k,d),A=E.createHref(k);o.replaceState(_,"",A),i&&u&&u({action:l,location:E.location,delta:0})}function v(T){let C=a.location.origin!=="null"?a.location.origin:a.location.href,k=typeof T=="string"?T:LS(T);return k=k.replace(/ $/,"%20"),za(C,"No window.location.(origin|href) available to create URL for href: "+k),new URL(k,C)}let E={get action(){return l},get location(){return e(a,o)},listen(T){if(u)throw new Error("A history only accepts one active listener");return a.addEventListener(mU,g),u=T,()=>{a.removeEventListener(mU,g),u=null}},createHref(T){return t(a,T)},createURL:v,encodeLocation(T){let C=v(T);return{pathname:C.pathname,search:C.search,hash:C.hash}},push:y,replace:h,go(T){return o.go(T)}};return E}var vU;(function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"})(vU||(vU={}));function Qoe(e,t,n){return n===void 0&&(n="/"),Joe(e,t,n)}function Joe(e,t,n,r){let a=typeof t=="string"?dh(t):t,i=K3(a.pathname||"/",n);if(i==null)return null;let o=OX(e);Zoe(o);let l=null;for(let u=0;l==null&&u{let u={relativePath:l===void 0?i.path||"":l,caseSensitive:i.caseSensitive===!0,childrenIndex:o,route:i};u.relativePath.startsWith("/")&&(za(u.relativePath.startsWith(r),'Absolute route path "'+u.relativePath+'" nested under path '+('"'+r+'" is not valid. An absolute child route path ')+"must start with the combined path of all its parent routes."),u.relativePath=u.relativePath.slice(r.length));let d=rh([r,u.relativePath]),f=n.concat(u);i.children&&i.children.length>0&&(za(i.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+d+'".')),OX(i.children,t,f,d)),!(i.path==null&&!i.index)&&t.push({path:d,score:ose(d,i.index),routesMeta:f})};return e.forEach((i,o)=>{var l;if(i.path===""||!((l=i.path)!=null&&l.includes("?")))a(i,o);else for(let u of RX(i.path))a(i,o,u)}),t}function RX(e){let t=e.split("/");if(t.length===0)return[];let[n,...r]=t,a=n.endsWith("?"),i=n.replace(/\?$/,"");if(r.length===0)return a?[i,""]:[i];let o=RX(r.join("/")),l=[];return l.push(...o.map(u=>u===""?i:[i,u].join("/"))),a&&l.push(...o),l.map(u=>e.startsWith("/")&&u===""?"/":u)}function Zoe(e){e.sort((t,n)=>t.score!==n.score?n.score-t.score:sse(t.routesMeta.map(r=>r.childrenIndex),n.routesMeta.map(r=>r.childrenIndex)))}const ese=/^:[\w-]+$/,tse=3,nse=2,rse=1,ase=10,ise=-2,yU=e=>e==="*";function ose(e,t){let n=e.split("/"),r=n.length;return n.some(yU)&&(r+=ise),t&&(r+=nse),n.filter(a=>!yU(a)).reduce((a,i)=>a+(ese.test(i)?tse:i===""?rse:ase),r)}function sse(e,t){return e.length===t.length&&e.slice(0,-1).every((r,a)=>r===t[a])?e[e.length-1]-t[t.length-1]:0}function lse(e,t,n){let{routesMeta:r}=e,a={},i="/",o=[];for(let l=0;l{let{paramName:y,isOptional:h}=f;if(y==="*"){let E=l[g]||"";o=i.slice(0,i.length-E.length).replace(/(.)\/+$/,"$1")}const v=l[g];return h&&!v?d[y]=void 0:d[y]=(v||"").replace(/%2F/g,"/"),d},{}),pathname:i,pathnameBase:o,pattern:e}}function cse(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!0),i_(e==="*"||!e.endsWith("*")||e.endsWith("/*"),'Route path "'+e+'" will be treated as if it were '+('"'+e.replace(/\*$/,"/*")+'" because the `*` character must ')+"always follow a `/` in the pattern. To get rid of this warning, "+('please change the route path to "'+e.replace(/\*$/,"/*")+'".'));let r=[],a="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(o,l,u)=>(r.push({paramName:l,isOptional:u!=null}),u?"/?([^\\/]+)?":"/([^\\/]+)"));return e.endsWith("*")?(r.push({paramName:"*"}),a+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?a+="\\/*$":e!==""&&e!=="/"&&(a+="(?:(?=\\/|$))"),[new RegExp(a,t?void 0:"i"),r]}function dse(e){try{return e.split("/").map(t=>decodeURIComponent(t).replace(/\//g,"%2F")).join("/")}catch(t){return i_(!1,'The URL path "'+e+'" could not be decoded because it is is a malformed URL segment. This is probably due to a bad percent '+("encoding ("+t+").")),e}}function K3(e,t){if(t==="/")return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let n=t.endsWith("/")?t.length-1:t.length,r=e.charAt(n);return r&&r!=="/"?null:e.slice(n)||"/"}function fse(e,t){t===void 0&&(t="/");let{pathname:n,search:r="",hash:a=""}=typeof e=="string"?dh(e):e;return{pathname:n?n.startsWith("/")?n:pse(n,t):t,search:gse(r),hash:vse(a)}}function pse(e,t){let n=t.replace(/\/+$/,"").split("/");return e.split("/").forEach(a=>{a===".."?n.length>1&&n.pop():a!=="."&&n.push(a)}),n.length>1?n.join("/"):"/"}function NR(e,t,n,r){return"Cannot include a '"+e+"' character in a manually specified "+("`to."+t+"` field ["+JSON.stringify(r)+"]. Please separate it out to the ")+("`to."+n+"` field. Alternatively you may provide the full path as ")+'a string in and the router will parse it for you.'}function hse(e){return e.filter((t,n)=>n===0||t.route.path&&t.route.path.length>0)}function X3(e,t){let n=hse(e);return t?n.map((r,a)=>a===n.length-1?r.pathname:r.pathnameBase):n.map(r=>r.pathnameBase)}function Q3(e,t,n,r){r===void 0&&(r=!1);let a;typeof e=="string"?a=dh(e):(a=$S({},e),za(!a.pathname||!a.pathname.includes("?"),NR("?","pathname","search",a)),za(!a.pathname||!a.pathname.includes("#"),NR("#","pathname","hash",a)),za(!a.search||!a.search.includes("#"),NR("#","search","hash",a)));let i=e===""||a.pathname==="",o=i?"/":a.pathname,l;if(o==null)l=n;else{let g=t.length-1;if(!r&&o.startsWith("..")){let y=o.split("/");for(;y[0]==="..";)y.shift(),g-=1;a.pathname=y.join("/")}l=g>=0?t[g]:"/"}let u=fse(a,l),d=o&&o!=="/"&&o.endsWith("/"),f=(i||o===".")&&n.endsWith("/");return!u.pathname.endsWith("/")&&(d||f)&&(u.pathname+="/"),u}const rh=e=>e.join("/").replace(/\/\/+/g,"/"),mse=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),gse=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,vse=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e;function yse(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}const PX=["post","put","patch","delete"];new Set(PX);const bse=["get",...PX];new Set(bse);/** + */function iE(){return iE=Object.assign?Object.assign.bind():function(e){for(var t=1;tf(h,typeof h=="string"?null:h.state,v===0?"default":void 0));let i=u(n??a.length-1),o=Al.Pop,l=null;function u(h){return Math.min(Math.max(h,0),a.length-1)}function d(){return a[i]}function f(h,v,E){v===void 0&&(v=null);let T=Ox(a?d().pathname:"/",h,v,E);return P_(T.pathname.charAt(0)==="/","relative pathnames are not supported in memory history: "+JSON.stringify(h)),T}function g(h){return typeof h=="string"?h:oE(h)}return{get index(){return i},get action(){return o},get location(){return d()},createHref:g,createURL(h){return new URL(g(h),"http://localhost")},encodeLocation(h){let v=typeof h=="string"?Sh(h):h;return{pathname:v.pathname||"",search:v.search||"",hash:v.hash||""}},push(h,v){o=Al.Push;let E=f(h,v);i+=1,a.splice(i,a.length,E),r&&l&&l({action:o,location:E,delta:1})},replace(h,v){o=Al.Replace;let E=f(h,v);a[i]=E,r&&l&&l({action:o,location:E,delta:0})},go(h){o=Al.Pop;let v=u(i+h),E=a[v];i=v,l&&l({action:o,location:E,delta:h})},listen(h){return l=h,()=>{l=null}}}}function Sse(e){e===void 0&&(e={});function t(a,i){let{pathname:o="/",search:l="",hash:u=""}=Sh(a.location.hash.substr(1));return!o.startsWith("/")&&!o.startsWith(".")&&(o="/"+o),Ox("",{pathname:o,search:l,hash:u},i.state&&i.state.usr||null,i.state&&i.state.key||"default")}function n(a,i){let o=a.document.querySelector("base"),l="";if(o&&o.getAttribute("href")){let u=a.location.href,d=u.indexOf("#");l=d===-1?u:u.slice(0,d)}return l+"#"+(typeof i=="string"?i:oE(i))}function r(a,i){P_(a.pathname.charAt(0)==="/","relative pathnames are not supported in hash history.push("+JSON.stringify(i)+")")}return Tse(t,n,r,e)}function Ha(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}function P_(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function Ese(){return Math.random().toString(36).substr(2,8)}function qU(e,t){return{usr:e.state,key:e.key,idx:t}}function Ox(e,t,n,r){return n===void 0&&(n=null),iE({pathname:typeof e=="string"?e:e.pathname,search:"",hash:""},typeof t=="string"?Sh(t):t,{state:n,key:t&&t.key||r||Ese()})}function oE(e){let{pathname:t="/",search:n="",hash:r=""}=e;return n&&n!=="?"&&(t+=n.charAt(0)==="?"?n:"?"+n),r&&r!=="#"&&(t+=r.charAt(0)==="#"?r:"#"+r),t}function Sh(e){let t={};if(e){let n=e.indexOf("#");n>=0&&(t.hash=e.substr(n),e=e.substr(0,n));let r=e.indexOf("?");r>=0&&(t.search=e.substr(r),e=e.substr(0,r)),e&&(t.pathname=e)}return t}function Tse(e,t,n,r){r===void 0&&(r={});let{window:a=document.defaultView,v5Compat:i=!1}=r,o=a.history,l=Al.Pop,u=null,d=f();d==null&&(d=0,o.replaceState(iE({},o.state,{idx:d}),""));function f(){return(o.state||{idx:null}).idx}function g(){l=Al.Pop;let T=f(),C=T==null?null:T-d;d=T,u&&u({action:l,location:E.location,delta:C})}function y(T,C){l=Al.Push;let k=Ox(E.location,T,C);n&&n(k,T),d=f()+1;let _=qU(k,d),A=E.createHref(k);try{o.pushState(_,"",A)}catch(P){if(P instanceof DOMException&&P.name==="DataCloneError")throw P;a.location.assign(A)}i&&u&&u({action:l,location:E.location,delta:1})}function h(T,C){l=Al.Replace;let k=Ox(E.location,T,C);n&&n(k,T),d=f();let _=qU(k,d),A=E.createHref(k);o.replaceState(_,"",A),i&&u&&u({action:l,location:E.location,delta:0})}function v(T){let C=a.location.origin!=="null"?a.location.origin:a.location.href,k=typeof T=="string"?T:oE(T);return k=k.replace(/ $/,"%20"),Ha(C,"No window.location.(origin|href) available to create URL for href: "+k),new URL(k,C)}let E={get action(){return l},get location(){return e(a,o)},listen(T){if(u)throw new Error("A history only accepts one active listener");return a.addEventListener(zU,g),u=T,()=>{a.removeEventListener(zU,g),u=null}},createHref(T){return t(a,T)},createURL:v,encodeLocation(T){let C=v(T);return{pathname:C.pathname,search:C.search,hash:C.hash}},push:y,replace:h,go(T){return o.go(T)}};return E}var HU;(function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"})(HU||(HU={}));function Cse(e,t,n){return n===void 0&&(n="/"),kse(e,t,n)}function kse(e,t,n,r){let a=typeof t=="string"?Sh(t):t,i=TF(a.pathname||"/",n);if(i==null)return null;let o=nQ(e);xse(o);let l=null;for(let u=0;l==null&&u{let u={relativePath:l===void 0?i.path||"":l,caseSensitive:i.caseSensitive===!0,childrenIndex:o,route:i};u.relativePath.startsWith("/")&&(Ha(u.relativePath.startsWith(r),'Absolute route path "'+u.relativePath+'" nested under path '+('"'+r+'" is not valid. An absolute child route path ')+"must start with the combined path of all its parent routes."),u.relativePath=u.relativePath.slice(r.length));let d=ph([r,u.relativePath]),f=n.concat(u);i.children&&i.children.length>0&&(Ha(i.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+d+'".')),nQ(i.children,t,f,d)),!(i.path==null&&!i.index)&&t.push({path:d,score:Mse(d,i.index),routesMeta:f})};return e.forEach((i,o)=>{var l;if(i.path===""||!((l=i.path)!=null&&l.includes("?")))a(i,o);else for(let u of rQ(i.path))a(i,o,u)}),t}function rQ(e){let t=e.split("/");if(t.length===0)return[];let[n,...r]=t,a=n.endsWith("?"),i=n.replace(/\?$/,"");if(r.length===0)return a?[i,""]:[i];let o=rQ(r.join("/")),l=[];return l.push(...o.map(u=>u===""?i:[i,u].join("/"))),a&&l.push(...o),l.map(u=>e.startsWith("/")&&u===""?"/":u)}function xse(e){e.sort((t,n)=>t.score!==n.score?n.score-t.score:Ise(t.routesMeta.map(r=>r.childrenIndex),n.routesMeta.map(r=>r.childrenIndex)))}const _se=/^:[\w-]+$/,Ose=3,Rse=2,Pse=1,Ase=10,Nse=-2,VU=e=>e==="*";function Mse(e,t){let n=e.split("/"),r=n.length;return n.some(VU)&&(r+=Nse),t&&(r+=Rse),n.filter(a=>!VU(a)).reduce((a,i)=>a+(_se.test(i)?Ose:i===""?Pse:Ase),r)}function Ise(e,t){return e.length===t.length&&e.slice(0,-1).every((r,a)=>r===t[a])?e[e.length-1]-t[t.length-1]:0}function Dse(e,t,n){let{routesMeta:r}=e,a={},i="/",o=[];for(let l=0;l{let{paramName:y,isOptional:h}=f;if(y==="*"){let E=l[g]||"";o=i.slice(0,i.length-E.length).replace(/(.)\/+$/,"$1")}const v=l[g];return h&&!v?d[y]=void 0:d[y]=(v||"").replace(/%2F/g,"/"),d},{}),pathname:i,pathnameBase:o,pattern:e}}function Lse(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!0),P_(e==="*"||!e.endsWith("*")||e.endsWith("/*"),'Route path "'+e+'" will be treated as if it were '+('"'+e.replace(/\*$/,"/*")+'" because the `*` character must ')+"always follow a `/` in the pattern. To get rid of this warning, "+('please change the route path to "'+e.replace(/\*$/,"/*")+'".'));let r=[],a="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(o,l,u)=>(r.push({paramName:l,isOptional:u!=null}),u?"/?([^\\/]+)?":"/([^\\/]+)"));return e.endsWith("*")?(r.push({paramName:"*"}),a+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?a+="\\/*$":e!==""&&e!=="/"&&(a+="(?:(?=\\/|$))"),[new RegExp(a,t?void 0:"i"),r]}function Fse(e){try{return e.split("/").map(t=>decodeURIComponent(t).replace(/\//g,"%2F")).join("/")}catch(t){return P_(!1,'The URL path "'+e+'" could not be decoded because it is is a malformed URL segment. This is probably due to a bad percent '+("encoding ("+t+").")),e}}function TF(e,t){if(t==="/")return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let n=t.endsWith("/")?t.length-1:t.length,r=e.charAt(n);return r&&r!=="/"?null:e.slice(n)||"/"}function jse(e,t){t===void 0&&(t="/");let{pathname:n,search:r="",hash:a=""}=typeof e=="string"?Sh(e):e;return{pathname:n?n.startsWith("/")?n:Use(n,t):t,search:zse(r),hash:qse(a)}}function Use(e,t){let n=t.replace(/\/+$/,"").split("/");return e.split("/").forEach(a=>{a===".."?n.length>1&&n.pop():a!=="."&&n.push(a)}),n.length>1?n.join("/"):"/"}function aP(e,t,n,r){return"Cannot include a '"+e+"' character in a manually specified "+("`to."+t+"` field ["+JSON.stringify(r)+"]. Please separate it out to the ")+("`to."+n+"` field. Alternatively you may provide the full path as ")+'a string in and the router will parse it for you.'}function Bse(e){return e.filter((t,n)=>n===0||t.route.path&&t.route.path.length>0)}function CF(e,t){let n=Bse(e);return t?n.map((r,a)=>a===n.length-1?r.pathname:r.pathnameBase):n.map(r=>r.pathnameBase)}function kF(e,t,n,r){r===void 0&&(r=!1);let a;typeof e=="string"?a=Sh(e):(a=iE({},e),Ha(!a.pathname||!a.pathname.includes("?"),aP("?","pathname","search",a)),Ha(!a.pathname||!a.pathname.includes("#"),aP("#","pathname","hash",a)),Ha(!a.search||!a.search.includes("#"),aP("#","search","hash",a)));let i=e===""||a.pathname==="",o=i?"/":a.pathname,l;if(o==null)l=n;else{let g=t.length-1;if(!r&&o.startsWith("..")){let y=o.split("/");for(;y[0]==="..";)y.shift(),g-=1;a.pathname=y.join("/")}l=g>=0?t[g]:"/"}let u=jse(a,l),d=o&&o!=="/"&&o.endsWith("/"),f=(i||o===".")&&n.endsWith("/");return!u.pathname.endsWith("/")&&(d||f)&&(u.pathname+="/"),u}const ph=e=>e.join("/").replace(/\/\/+/g,"/"),Wse=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),zse=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,qse=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e;function Hse(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}const aQ=["post","put","patch","delete"];new Set(aQ);const Vse=["get",...aQ];new Set(Vse);/** * React Router v6.30.0 * * Copyright (c) Remix Software Inc. @@ -64,7 +64,7 @@ Error generating stack: `+p.message+` * LICENSE.md file in the root directory of this source tree. * * @license MIT - */function FS(){return FS=Object.assign?Object.assign.bind():function(e){for(var t=1;t{l.current=!0}),R.useCallback(function(d,f){if(f===void 0&&(f={}),!l.current)return;if(typeof d=="number"){r.go(d);return}let g=Q3(d,JSON.parse(o),i,f.relative==="path");e==null&&t!=="/"&&(g.pathname=g.pathname==="/"?t:rh([t,g.pathname])),(f.replace?r.replace:r.push)(g,f.state,f)},[t,r,o,i,e])}const Tse=R.createContext(null);function Cse(e){let t=R.useContext(Ac).outlet;return t&&R.createElement(Tse.Provider,{value:e},t)}function kse(){let{matches:e}=R.useContext(Ac),t=e[e.length-1];return t?t.params:{}}function MX(e,t){let{relative:n}=t===void 0?{}:t,{future:r}=R.useContext(fh),{matches:a}=R.useContext(Ac),{pathname:i}=Zd(),o=JSON.stringify(X3(a,r.v7_relativeSplatPath));return R.useMemo(()=>Q3(e,JSON.parse(o),i,n==="path"),[e,o,i,n])}function xse(e,t){return _se(e,t)}function _se(e,t,n,r){v0()||za(!1);let{navigator:a,static:i}=R.useContext(fh),{matches:o}=R.useContext(Ac),l=o[o.length-1],u=l?l.params:{};l&&l.pathname;let d=l?l.pathnameBase:"/";l&&l.route;let f=Zd(),g;if(t){var y;let C=typeof t=="string"?dh(t):t;d==="/"||(y=C.pathname)!=null&&y.startsWith(d)||za(!1),g=C}else g=f;let h=g.pathname||"/",v=h;if(d!=="/"){let C=d.replace(/^\//,"").split("/");v="/"+h.replace(/^\//,"").split("/").slice(C.length).join("/")}let E=Qoe(e,{pathname:v}),T=Nse(E&&E.map(C=>Object.assign({},C,{params:Object.assign({},u,C.params),pathname:rh([d,a.encodeLocation?a.encodeLocation(C.pathname).pathname:C.pathname]),pathnameBase:C.pathnameBase==="/"?d:rh([d,a.encodeLocation?a.encodeLocation(C.pathnameBase).pathname:C.pathnameBase])})),o,n,r);return t&&T?R.createElement(o_.Provider,{value:{location:FS({pathname:"/",search:"",hash:"",state:null,key:"default"},g),navigationType:Ol.Pop}},T):T}function Ose(){let e=$se(),t=yse(e)?e.status+" "+e.statusText:e instanceof Error?e.message:JSON.stringify(e),n=e instanceof Error?e.stack:null,a={padding:"0.5rem",backgroundColor:"rgba(200,200,200, 0.5)"};return R.createElement(R.Fragment,null,R.createElement("h2",null,"Unexpected Application Error!"),R.createElement("h3",{style:{fontStyle:"italic"}},t),n?R.createElement("pre",{style:a},n):null,null)}const Rse=R.createElement(Ose,null);class Pse extends R.Component{constructor(t){super(t),this.state={location:t.location,revalidation:t.revalidation,error:t.error}}static getDerivedStateFromError(t){return{error:t}}static getDerivedStateFromProps(t,n){return n.location!==t.location||n.revalidation!=="idle"&&t.revalidation==="idle"?{error:t.error,location:t.location,revalidation:t.revalidation}:{error:t.error!==void 0?t.error:n.error,location:n.location,revalidation:t.revalidation||n.revalidation}}componentDidCatch(t,n){console.error("React Router caught the following error during render",t,n)}render(){return this.state.error!==void 0?R.createElement(Ac.Provider,{value:this.props.routeContext},R.createElement(AX.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function Ase(e){let{routeContext:t,match:n,children:r}=e,a=R.useContext(J3);return a&&a.static&&a.staticContext&&(n.route.errorElement||n.route.ErrorBoundary)&&(a.staticContext._deepestRenderedBoundaryId=n.route.id),R.createElement(Ac.Provider,{value:t},r)}function Nse(e,t,n,r){var a;if(t===void 0&&(t=[]),n===void 0&&(n=null),r===void 0&&(r=null),e==null){var i;if(!n)return null;if(n.errors)e=n.matches;else if((i=r)!=null&&i.v7_partialHydration&&t.length===0&&!n.initialized&&n.matches.length>0)e=n.matches;else return null}let o=e,l=(a=n)==null?void 0:a.errors;if(l!=null){let f=o.findIndex(g=>g.route.id&&(l==null?void 0:l[g.route.id])!==void 0);f>=0||za(!1),o=o.slice(0,Math.min(o.length,f+1))}let u=!1,d=-1;if(n&&r&&r.v7_partialHydration)for(let f=0;f=0?o=o.slice(0,d+1):o=[o[0]];break}}}return o.reduceRight((f,g,y)=>{let h,v=!1,E=null,T=null;n&&(h=l&&g.route.id?l[g.route.id]:void 0,E=g.route.errorElement||Rse,u&&(d<0&&y===0?(Fse("route-fallback"),v=!0,T=null):d===y&&(v=!0,T=g.route.hydrateFallbackElement||null)));let C=t.concat(o.slice(0,y+1)),k=()=>{let _;return h?_=E:v?_=T:g.route.Component?_=R.createElement(g.route.Component,null):g.route.element?_=g.route.element:_=f,R.createElement(Ase,{match:g,routeContext:{outlet:f,matches:C,isDataRoute:n!=null},children:_})};return n&&(g.route.ErrorBoundary||g.route.errorElement||y===0)?R.createElement(Pse,{location:n.location,revalidation:n.revalidation,component:E,error:h,children:k(),routeContext:{outlet:null,matches:C,isDataRoute:!0}}):k()},null)}var IX=(function(e){return e.UseBlocker="useBlocker",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e})(IX||{}),DX=(function(e){return e.UseBlocker="useBlocker",e.UseLoaderData="useLoaderData",e.UseActionData="useActionData",e.UseRouteError="useRouteError",e.UseNavigation="useNavigation",e.UseRouteLoaderData="useRouteLoaderData",e.UseMatches="useMatches",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e.UseRouteId="useRouteId",e})(DX||{});function Mse(e){let t=R.useContext(J3);return t||za(!1),t}function Ise(e){let t=R.useContext(wse);return t||za(!1),t}function Dse(e){let t=R.useContext(Ac);return t||za(!1),t}function $X(e){let t=Dse(),n=t.matches[t.matches.length-1];return n.route.id||za(!1),n.route.id}function $se(){var e;let t=R.useContext(AX),n=Ise(),r=$X();return t!==void 0?t:(e=n.errors)==null?void 0:e[r]}function Lse(){let{router:e}=Mse(IX.UseNavigateStable),t=$X(DX.UseNavigateStable),n=R.useRef(!1);return NX(()=>{n.current=!0}),R.useCallback(function(a,i){i===void 0&&(i={}),n.current&&(typeof a=="number"?e.navigate(a):e.navigate(a,FS({fromRouteId:t},i)))},[e,t])}const bU={};function Fse(e,t,n){bU[e]||(bU[e]=!0)}function LX(e,t){e==null||e.v7_startTransition,e==null||e.v7_relativeSplatPath}const jse="startTransition",wU=DS[jse];function Use(e){let{basename:t,children:n,initialEntries:r,initialIndex:a,future:i}=e,o=R.useRef();o.current==null&&(o.current=Goe({initialEntries:r,initialIndex:a,v5Compat:!0}));let l=o.current,[u,d]=R.useState({action:l.action,location:l.location}),{v7_startTransition:f}=i||{},g=R.useCallback(y=>{f&&wU?wU(()=>d(y)):d(y)},[d,f]);return R.useLayoutEffect(()=>l.listen(g),[l,g]),R.useEffect(()=>LX(i),[i]),R.createElement(FX,{basename:t,children:n,location:u.location,navigationType:u.action,navigator:l,future:i})}function eF(e){let{to:t,replace:n,state:r,relative:a}=e;v0()||za(!1);let{future:i,static:o}=R.useContext(fh),{matches:l}=R.useContext(Ac),{pathname:u}=Zd(),d=Z3(),f=Q3(t,X3(l,i.v7_relativeSplatPath),u,a==="path"),g=JSON.stringify(f);return R.useEffect(()=>d(JSON.parse(g),{replace:n,state:r,relative:a}),[d,g,a,n,r]),null}function Bse(e){return Cse(e.context)}function mt(e){za(!1)}function FX(e){let{basename:t="/",children:n=null,location:r,navigationType:a=Ol.Pop,navigator:i,static:o=!1,future:l}=e;v0()&&za(!1);let u=t.replace(/^\/*/,"/"),d=R.useMemo(()=>({basename:u,navigator:i,static:o,future:FS({v7_relativeSplatPath:!1},l)}),[u,l,i,o]);typeof r=="string"&&(r=dh(r));let{pathname:f="/",search:g="",hash:y="",state:h=null,key:v="default"}=r,E=R.useMemo(()=>{let T=K3(f,u);return T==null?null:{location:{pathname:T,search:g,hash:y,state:h,key:v},navigationType:a}},[u,f,g,y,h,v,a]);return E==null?null:R.createElement(fh.Provider,{value:d},R.createElement(o_.Provider,{children:n,value:E}))}function jX(e){let{children:t,location:n}=e;return xse(X$(t),n)}new Promise(()=>{});function X$(e,t){t===void 0&&(t=[]);let n=[];return R.Children.forEach(e,(r,a)=>{if(!R.isValidElement(r))return;let i=[...t,a];if(r.type===R.Fragment){n.push.apply(n,X$(r.props.children,i));return}r.type!==mt&&za(!1),!r.props.index||!r.props.children||za(!1);let o={id:r.props.id||i.join("-"),caseSensitive:r.props.caseSensitive,element:r.props.element,Component:r.props.Component,index:r.props.index,path:r.props.path,loader:r.props.loader,action:r.props.action,errorElement:r.props.errorElement,ErrorBoundary:r.props.ErrorBoundary,hasErrorBoundary:r.props.ErrorBoundary!=null||r.props.errorElement!=null,shouldRevalidate:r.props.shouldRevalidate,handle:r.props.handle,lazy:r.props.lazy};r.props.children&&(o.children=X$(r.props.children,i)),n.push(o)}),n}/** + */function sE(){return sE=Object.assign?Object.assign.bind():function(e){for(var t=1;t{l.current=!0}),R.useCallback(function(d,f){if(f===void 0&&(f={}),!l.current)return;if(typeof d=="number"){r.go(d);return}let g=kF(d,JSON.parse(o),i,f.relative==="path");e==null&&t!=="/"&&(g.pathname=g.pathname==="/"?t:ph([t,g.pathname])),(f.replace?r.replace:r.push)(g,f.state,f)},[t,r,o,i,e])}const Xse=R.createContext(null);function Qse(e){let t=R.useContext(Dc).outlet;return t&&R.createElement(Xse.Provider,{value:e},t)}function Jse(){let{matches:e}=R.useContext(Dc),t=e[e.length-1];return t?t.params:{}}function sQ(e,t){let{relative:n}=t===void 0?{}:t,{future:r}=R.useContext(Eh),{matches:a}=R.useContext(Dc),{pathname:i}=sf(),o=JSON.stringify(CF(a,r.v7_relativeSplatPath));return R.useMemo(()=>kF(e,JSON.parse(o),i,n==="path"),[e,o,i,n])}function Zse(e,t){return ele(e,t)}function ele(e,t,n,r){j0()||Ha(!1);let{navigator:a,static:i}=R.useContext(Eh),{matches:o}=R.useContext(Dc),l=o[o.length-1],u=l?l.params:{};l&&l.pathname;let d=l?l.pathnameBase:"/";l&&l.route;let f=sf(),g;if(t){var y;let C=typeof t=="string"?Sh(t):t;d==="/"||(y=C.pathname)!=null&&y.startsWith(d)||Ha(!1),g=C}else g=f;let h=g.pathname||"/",v=h;if(d!=="/"){let C=d.replace(/^\//,"").split("/");v="/"+h.replace(/^\//,"").split("/").slice(C.length).join("/")}let E=Cse(e,{pathname:v}),T=ile(E&&E.map(C=>Object.assign({},C,{params:Object.assign({},u,C.params),pathname:ph([d,a.encodeLocation?a.encodeLocation(C.pathname).pathname:C.pathname]),pathnameBase:C.pathnameBase==="/"?d:ph([d,a.encodeLocation?a.encodeLocation(C.pathnameBase).pathname:C.pathnameBase])})),o,n,r);return t&&T?R.createElement(A_.Provider,{value:{location:sE({pathname:"/",search:"",hash:"",state:null,key:"default"},g),navigationType:Al.Pop}},T):T}function tle(){let e=ule(),t=Hse(e)?e.status+" "+e.statusText:e instanceof Error?e.message:JSON.stringify(e),n=e instanceof Error?e.stack:null,a={padding:"0.5rem",backgroundColor:"rgba(200,200,200, 0.5)"};return R.createElement(R.Fragment,null,R.createElement("h2",null,"Unexpected Application Error!"),R.createElement("h3",{style:{fontStyle:"italic"}},t),n?R.createElement("pre",{style:a},n):null,null)}const nle=R.createElement(tle,null);class rle extends R.Component{constructor(t){super(t),this.state={location:t.location,revalidation:t.revalidation,error:t.error}}static getDerivedStateFromError(t){return{error:t}}static getDerivedStateFromProps(t,n){return n.location!==t.location||n.revalidation!=="idle"&&t.revalidation==="idle"?{error:t.error,location:t.location,revalidation:t.revalidation}:{error:t.error!==void 0?t.error:n.error,location:n.location,revalidation:t.revalidation||n.revalidation}}componentDidCatch(t,n){console.error("React Router caught the following error during render",t,n)}render(){return this.state.error!==void 0?R.createElement(Dc.Provider,{value:this.props.routeContext},R.createElement(iQ.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function ale(e){let{routeContext:t,match:n,children:r}=e,a=R.useContext(xF);return a&&a.static&&a.staticContext&&(n.route.errorElement||n.route.ErrorBoundary)&&(a.staticContext._deepestRenderedBoundaryId=n.route.id),R.createElement(Dc.Provider,{value:t},r)}function ile(e,t,n,r){var a;if(t===void 0&&(t=[]),n===void 0&&(n=null),r===void 0&&(r=null),e==null){var i;if(!n)return null;if(n.errors)e=n.matches;else if((i=r)!=null&&i.v7_partialHydration&&t.length===0&&!n.initialized&&n.matches.length>0)e=n.matches;else return null}let o=e,l=(a=n)==null?void 0:a.errors;if(l!=null){let f=o.findIndex(g=>g.route.id&&(l==null?void 0:l[g.route.id])!==void 0);f>=0||Ha(!1),o=o.slice(0,Math.min(o.length,f+1))}let u=!1,d=-1;if(n&&r&&r.v7_partialHydration)for(let f=0;f=0?o=o.slice(0,d+1):o=[o[0]];break}}}return o.reduceRight((f,g,y)=>{let h,v=!1,E=null,T=null;n&&(h=l&&g.route.id?l[g.route.id]:void 0,E=g.route.errorElement||nle,u&&(d<0&&y===0?(dle("route-fallback"),v=!0,T=null):d===y&&(v=!0,T=g.route.hydrateFallbackElement||null)));let C=t.concat(o.slice(0,y+1)),k=()=>{let _;return h?_=E:v?_=T:g.route.Component?_=R.createElement(g.route.Component,null):g.route.element?_=g.route.element:_=f,R.createElement(ale,{match:g,routeContext:{outlet:f,matches:C,isDataRoute:n!=null},children:_})};return n&&(g.route.ErrorBoundary||g.route.errorElement||y===0)?R.createElement(rle,{location:n.location,revalidation:n.revalidation,component:E,error:h,children:k(),routeContext:{outlet:null,matches:C,isDataRoute:!0}}):k()},null)}var lQ=(function(e){return e.UseBlocker="useBlocker",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e})(lQ||{}),uQ=(function(e){return e.UseBlocker="useBlocker",e.UseLoaderData="useLoaderData",e.UseActionData="useActionData",e.UseRouteError="useRouteError",e.UseNavigation="useNavigation",e.UseRouteLoaderData="useRouteLoaderData",e.UseMatches="useMatches",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e.UseRouteId="useRouteId",e})(uQ||{});function ole(e){let t=R.useContext(xF);return t||Ha(!1),t}function sle(e){let t=R.useContext(Gse);return t||Ha(!1),t}function lle(e){let t=R.useContext(Dc);return t||Ha(!1),t}function cQ(e){let t=lle(),n=t.matches[t.matches.length-1];return n.route.id||Ha(!1),n.route.id}function ule(){var e;let t=R.useContext(iQ),n=sle(),r=cQ();return t!==void 0?t:(e=n.errors)==null?void 0:e[r]}function cle(){let{router:e}=ole(lQ.UseNavigateStable),t=cQ(uQ.UseNavigateStable),n=R.useRef(!1);return oQ(()=>{n.current=!0}),R.useCallback(function(a,i){i===void 0&&(i={}),n.current&&(typeof a=="number"?e.navigate(a):e.navigate(a,sE({fromRouteId:t},i)))},[e,t])}const GU={};function dle(e,t,n){GU[e]||(GU[e]=!0)}function dQ(e,t){e==null||e.v7_startTransition,e==null||e.v7_relativeSplatPath}const fle="startTransition",YU=aE[fle];function ple(e){let{basename:t,children:n,initialEntries:r,initialIndex:a,future:i}=e,o=R.useRef();o.current==null&&(o.current=wse({initialEntries:r,initialIndex:a,v5Compat:!0}));let l=o.current,[u,d]=R.useState({action:l.action,location:l.location}),{v7_startTransition:f}=i||{},g=R.useCallback(y=>{f&&YU?YU(()=>d(y)):d(y)},[d,f]);return R.useLayoutEffect(()=>l.listen(g),[l,g]),R.useEffect(()=>dQ(i),[i]),R.createElement(fQ,{basename:t,children:n,location:u.location,navigationType:u.action,navigator:l,future:i})}function OF(e){let{to:t,replace:n,state:r,relative:a}=e;j0()||Ha(!1);let{future:i,static:o}=R.useContext(Eh),{matches:l}=R.useContext(Dc),{pathname:u}=sf(),d=_F(),f=kF(t,CF(l,i.v7_relativeSplatPath),u,a==="path"),g=JSON.stringify(f);return R.useEffect(()=>d(JSON.parse(g),{replace:n,state:r,relative:a}),[d,g,a,n,r]),null}function hle(e){return Qse(e.context)}function mt(e){Ha(!1)}function fQ(e){let{basename:t="/",children:n=null,location:r,navigationType:a=Al.Pop,navigator:i,static:o=!1,future:l}=e;j0()&&Ha(!1);let u=t.replace(/^\/*/,"/"),d=R.useMemo(()=>({basename:u,navigator:i,static:o,future:sE({v7_relativeSplatPath:!1},l)}),[u,l,i,o]);typeof r=="string"&&(r=Sh(r));let{pathname:f="/",search:g="",hash:y="",state:h=null,key:v="default"}=r,E=R.useMemo(()=>{let T=TF(f,u);return T==null?null:{location:{pathname:T,search:g,hash:y,state:h,key:v},navigationType:a}},[u,f,g,y,h,v,a]);return E==null?null:R.createElement(Eh.Provider,{value:d},R.createElement(A_.Provider,{children:n,value:E}))}function pQ(e){let{children:t,location:n}=e;return Zse(CL(t),n)}new Promise(()=>{});function CL(e,t){t===void 0&&(t=[]);let n=[];return R.Children.forEach(e,(r,a)=>{if(!R.isValidElement(r))return;let i=[...t,a];if(r.type===R.Fragment){n.push.apply(n,CL(r.props.children,i));return}r.type!==mt&&Ha(!1),!r.props.index||!r.props.children||Ha(!1);let o={id:r.props.id||i.join("-"),caseSensitive:r.props.caseSensitive,element:r.props.element,Component:r.props.Component,index:r.props.index,path:r.props.path,loader:r.props.loader,action:r.props.action,errorElement:r.props.errorElement,ErrorBoundary:r.props.ErrorBoundary,hasErrorBoundary:r.props.ErrorBoundary!=null||r.props.errorElement!=null,shouldRevalidate:r.props.shouldRevalidate,handle:r.props.handle,lazy:r.props.lazy};r.props.children&&(o.children=CL(r.props.children,i)),n.push(o)}),n}/** * React Router DOM v6.30.0 * * Copyright (c) Remix Software Inc. @@ -73,7 +73,7 @@ Error generating stack: `+p.message+` * LICENSE.md file in the root directory of this source tree. * * @license MIT - */function Q$(){return Q$=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0)&&(n[a]=e[a]);return n}function zse(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function qse(e,t){return e.button===0&&(!t||t==="_self")&&!zse(e)}const Hse=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset","viewTransition"],Vse="6";try{window.__reactRouterVersion=Vse}catch{}const Gse="startTransition",SU=DS[Gse];function UX(e){let{basename:t,children:n,future:r,window:a}=e,i=R.useRef();i.current==null&&(i.current=Yoe({window:a,v5Compat:!0}));let o=i.current,[l,u]=R.useState({action:o.action,location:o.location}),{v7_startTransition:d}=r||{},f=R.useCallback(g=>{d&&SU?SU(()=>u(g)):u(g)},[u,d]);return R.useLayoutEffect(()=>o.listen(f),[o,f]),R.useEffect(()=>LX(r),[r]),R.createElement(FX,{basename:t,children:n,location:l.location,navigationType:l.action,navigator:o,future:r})}const Yse=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",Kse=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,J$=R.forwardRef(function(t,n){let{onClick:r,relative:a,reloadDocument:i,replace:o,state:l,target:u,to:d,preventScrollReset:f,viewTransition:g}=t,y=Wse(t,Hse),{basename:h}=R.useContext(fh),v,E=!1;if(typeof d=="string"&&Kse.test(d)&&(v=d,Yse))try{let _=new URL(window.location.href),A=d.startsWith("//")?new URL(_.protocol+d):new URL(d),P=K3(A.pathname,h);A.origin===_.origin&&P!=null?d=P+A.search+A.hash:E=!0}catch{}let T=Sse(d,{relative:a}),C=Xse(d,{replace:o,state:l,target:u,preventScrollReset:f,relative:a,viewTransition:g});function k(_){r&&r(_),_.defaultPrevented||C(_)}return R.createElement("a",Q$({},y,{href:v||T,onClick:E||i?r:k,ref:n,target:u}))});var EU;(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmit="useSubmit",e.UseSubmitFetcher="useSubmitFetcher",e.UseFetcher="useFetcher",e.useViewTransitionState="useViewTransitionState"})(EU||(EU={}));var TU;(function(e){e.UseFetcher="useFetcher",e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"})(TU||(TU={}));function Xse(e,t){let{target:n,replace:r,state:a,preventScrollReset:i,relative:o,viewTransition:l}=t===void 0?{}:t,u=Z3(),d=Zd(),f=MX(e,{relative:o});return R.useCallback(g=>{if(qse(g,n)){g.preventDefault();let y=r!==void 0?r:LS(d)===LS(f);u(e,{replace:y,state:a,preventScrollReset:i,relative:o,viewTransition:l})}},[d,u,f,r,a,n,e,i,o,l])}const ph=ze.createContext({patchConfig(){},config:{}});function Qse(){const e=localStorage.getItem("app_config2");if(e){try{const t=JSON.parse(e);return t?{...t}:{}}catch{}return{}}}const Jse=Qse();function BX({children:e,initialConfig:t}){const[n,r]=R.useState({...t,...Jse}),a=i=>{r(o=>{const l={...o,...i};return localStorage.setItem("app_config2",JSON.stringify(l)),l})};return w.jsx(ph.Provider,{value:{config:n,patchConfig:a},children:e})}const WX={onlyOnRoot:"This feature is only available for root access, please ask your administrator for more details",productName:"Fireback",orders:{archiveTitle:"Orders",discountCode:"Discount code",discountCodeHint:"Discount code",editOrder:"Edit order",invoiceNumber:"Invoice number",invoiceNumberHint:"Invoice number",items:"Items",itemsHint:"Items",newOrder:"New order",orderStatus:"Order status",orderStatusHint:"Order status",paymentStatus:"Payment status",paymentStatusHint:"Payment status",shippingAddress:"Shipping address",shippingAddressHint:"Shipping address",totalPrice:"Total price",totalPriceHint:"Total price"},shoppingCarts:{archiveTitle:"Shopping carts",editShoppingCart:"Edit shopping cart",items:"Items",itemsHint:"Items",newShoppingCart:"New shopping cart",product:"Product",productHint:"Select the product item",quantity:"Quantity",quantityHint:"How many products do you want"},discountCodes:{appliedCategories:"Applied categories",appliedCategoriesHint:"Applied categories",appliedProducts:"Applied products",appliedProductsHint:"Applied products",archiveTitle:"Discount codes",editDiscountCode:"Edit discount code",excludedCategories:"Excluded categories",excludedCategoriesHint:"Excluded categories",excludedProducts:"Excluded products",excludedProductsHint:"Excluded products",limit:"Limit",limitHint:"Limit",newDiscountCode:"New discount code",series:"Series",seriesHint:"Series",validFrom:"Valid from",validFromHint:"Valid from",validUntil:"Valid until",validUntilHint:"Valid until"},postcategories:{archiveTitle:"Post Category",editpostCategory:"Edit Post category",name:"Name",nameHint:"Name",newpostCategory:"Newpost category"},pagecategories:{archiveTitle:"Page category",editpageCategory:"Edit page category",name:"Name",nameHint:"Name",newpageCategory:"New page category"},posttags:{archiveTitle:"Post tag",editpostTag:"Edit post tag",name:"Name",nameHint:"Name",newpostTag:"New post tag"},pagetags:{archiveTitle:"Page tag",editpageTag:"Edit page tag",name:"Name",nameHint:"Name",newpageTag:"New page tag"},posts:{archiveTitle:"Posts",category:"Category",categoryHint:"Category",content:"Content",contentHint:"content",editpost:"Edit post",newpost:"New post",tags:"Tags",tagsHint:"Tags",title:"Title",titleHint:"Title"},pages:{archiveTitle:"Pages",category:"Category",categoryHint:"Page category",content:"Content",contentHint:"",editpage:"Edit page",newpage:"New page",tags:"Tags",tagsHint:"Page tags",title:"Title",titleHint:"Page title"},components:{currency:"Currency",currencyHint:"Currency type",amount:"Amount",amountHint:"Amount in numbers, separated by . for cents"},brands:{archiveTitle:"Brand",editBrand:"Edit brand",name:"Name",nameHint:"Brand's name",newBrand:"New brand"},tags:{archiveTitle:"Tags",editTag:"Edit tag",name:"Name",nameHint:"Tag name",newTag:"Name of the tag"},productsubmissions:{name:"Name",nameHint:"Name of the product",archiveTitle:"Product Inventory",brand:"Brand",brandHint:"If the product belongs to an specific brand",category:"Category",categoryHint:"Product category",description:"Description",descriptionHint:"Product description",editproductSubmission:"Edit product submission",newproductSubmission:"Newproduct submission",price:"Price",priceHint:"Set the price tag for the product",product:"Product",productHint:"Select the product type",sku:"SKU",skuHint:"SKU code for the product",tags:"Tags",tagsHint:"Product tags"},products:{archiveTitle:"product",description:"Description",descriptionHint:"Describe the product form",editproduct:"Edit product",fields:"fields",fieldsHint:"fields hint",jsonSchema:"json schema",jsonSchemaHint:"json schema hint",name:"Form name",nameHint:"Name the type of products which this form represents",newproduct:"New product",uiSchema:"ui schema",uiSchemaHint:"ui schema hint"},categories:{archiveTitle:"Categories",editCategory:"Edit category",name:"Name",nameHint:"Name of the category",newCategory:"New category",parent:"Parent category",parentHint:"This category would be under the parent category in display or search"},abac:{backToApp:"Go back to the app",email:"Email",emailAddress:"Email address",firstName:"First name",lastName:"Last name",otpOrDifferent:"Or try a different account instead",otpResetMethod:"Reset method",otpTitle:"One time password",otpTitleHint:`Login to your account via a 6-8 digit pins, which we will + */function kL(){return kL=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0)&&(n[a]=e[a]);return n}function gle(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function vle(e,t){return e.button===0&&(!t||t==="_self")&&!gle(e)}const yle=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset","viewTransition"],ble="6";try{window.__reactRouterVersion=ble}catch{}const wle="startTransition",KU=aE[wle];function hQ(e){let{basename:t,children:n,future:r,window:a}=e,i=R.useRef();i.current==null&&(i.current=Sse({window:a,v5Compat:!0}));let o=i.current,[l,u]=R.useState({action:o.action,location:o.location}),{v7_startTransition:d}=r||{},f=R.useCallback(g=>{d&&KU?KU(()=>u(g)):u(g)},[u,d]);return R.useLayoutEffect(()=>o.listen(f),[o,f]),R.useEffect(()=>dQ(r),[r]),R.createElement(fQ,{basename:t,children:n,location:l.location,navigationType:l.action,navigator:o,future:r})}const Sle=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",Ele=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,xL=R.forwardRef(function(t,n){let{onClick:r,relative:a,reloadDocument:i,replace:o,state:l,target:u,to:d,preventScrollReset:f,viewTransition:g}=t,y=mle(t,yle),{basename:h}=R.useContext(Eh),v,E=!1;if(typeof d=="string"&&Ele.test(d)&&(v=d,Sle))try{let _=new URL(window.location.href),A=d.startsWith("//")?new URL(_.protocol+d):new URL(d),P=TF(A.pathname,h);A.origin===_.origin&&P!=null?d=P+A.search+A.hash:E=!0}catch{}let T=Yse(d,{relative:a}),C=Tle(d,{replace:o,state:l,target:u,preventScrollReset:f,relative:a,viewTransition:g});function k(_){r&&r(_),_.defaultPrevented||C(_)}return R.createElement("a",kL({},y,{href:v||T,onClick:E||i?r:k,ref:n,target:u}))});var XU;(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmit="useSubmit",e.UseSubmitFetcher="useSubmitFetcher",e.UseFetcher="useFetcher",e.useViewTransitionState="useViewTransitionState"})(XU||(XU={}));var QU;(function(e){e.UseFetcher="useFetcher",e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"})(QU||(QU={}));function Tle(e,t){let{target:n,replace:r,state:a,preventScrollReset:i,relative:o,viewTransition:l}=t===void 0?{}:t,u=_F(),d=sf(),f=sQ(e,{relative:o});return R.useCallback(g=>{if(vle(g,n)){g.preventDefault();let y=r!==void 0?r:oE(d)===oE(f);u(e,{replace:y,state:a,preventScrollReset:i,relative:o,viewTransition:l})}},[d,u,f,r,a,n,e,i,o,l])}const Th=ze.createContext({patchConfig(){},config:{}});function Cle(){const e=localStorage.getItem("app_config2");if(e){try{const t=JSON.parse(e);return t?{...t}:{}}catch{}return{}}}const kle=Cle();function mQ({children:e,initialConfig:t}){const[n,r]=R.useState({...t,...kle}),a=i=>{r(o=>{const l={...o,...i};return localStorage.setItem("app_config2",JSON.stringify(l)),l})};return w.jsx(Th.Provider,{value:{config:n,patchConfig:a},children:e})}const gQ={onlyOnRoot:"This feature is only available for root access, please ask your administrator for more details",productName:"Fireback",orders:{archiveTitle:"Orders",discountCode:"Discount code",discountCodeHint:"Discount code",editOrder:"Edit order",invoiceNumber:"Invoice number",invoiceNumberHint:"Invoice number",items:"Items",itemsHint:"Items",newOrder:"New order",orderStatus:"Order status",orderStatusHint:"Order status",paymentStatus:"Payment status",paymentStatusHint:"Payment status",shippingAddress:"Shipping address",shippingAddressHint:"Shipping address",totalPrice:"Total price",totalPriceHint:"Total price"},shoppingCarts:{archiveTitle:"Shopping carts",editShoppingCart:"Edit shopping cart",items:"Items",itemsHint:"Items",newShoppingCart:"New shopping cart",product:"Product",productHint:"Select the product item",quantity:"Quantity",quantityHint:"How many products do you want"},discountCodes:{appliedCategories:"Applied categories",appliedCategoriesHint:"Applied categories",appliedProducts:"Applied products",appliedProductsHint:"Applied products",archiveTitle:"Discount codes",editDiscountCode:"Edit discount code",excludedCategories:"Excluded categories",excludedCategoriesHint:"Excluded categories",excludedProducts:"Excluded products",excludedProductsHint:"Excluded products",limit:"Limit",limitHint:"Limit",newDiscountCode:"New discount code",series:"Series",seriesHint:"Series",validFrom:"Valid from",validFromHint:"Valid from",validUntil:"Valid until",validUntilHint:"Valid until"},postcategories:{archiveTitle:"Post Category",editpostCategory:"Edit Post category",name:"Name",nameHint:"Name",newpostCategory:"Newpost category"},pagecategories:{archiveTitle:"Page category",editpageCategory:"Edit page category",name:"Name",nameHint:"Name",newpageCategory:"New page category"},posttags:{archiveTitle:"Post tag",editpostTag:"Edit post tag",name:"Name",nameHint:"Name",newpostTag:"New post tag"},pagetags:{archiveTitle:"Page tag",editpageTag:"Edit page tag",name:"Name",nameHint:"Name",newpageTag:"New page tag"},posts:{archiveTitle:"Posts",category:"Category",categoryHint:"Category",content:"Content",contentHint:"content",editpost:"Edit post",newpost:"New post",tags:"Tags",tagsHint:"Tags",title:"Title",titleHint:"Title"},pages:{archiveTitle:"Pages",category:"Category",categoryHint:"Page category",content:"Content",contentHint:"",editpage:"Edit page",newpage:"New page",tags:"Tags",tagsHint:"Page tags",title:"Title",titleHint:"Page title"},components:{currency:"Currency",currencyHint:"Currency type",amount:"Amount",amountHint:"Amount in numbers, separated by . for cents"},brands:{archiveTitle:"Brand",editBrand:"Edit brand",name:"Name",nameHint:"Brand's name",newBrand:"New brand"},tags:{archiveTitle:"Tags",editTag:"Edit tag",name:"Name",nameHint:"Tag name",newTag:"Name of the tag"},productsubmissions:{name:"Name",nameHint:"Name of the product",archiveTitle:"Product Inventory",brand:"Brand",brandHint:"If the product belongs to an specific brand",category:"Category",categoryHint:"Product category",description:"Description",descriptionHint:"Product description",editproductSubmission:"Edit product submission",newproductSubmission:"Newproduct submission",price:"Price",priceHint:"Set the price tag for the product",product:"Product",productHint:"Select the product type",sku:"SKU",skuHint:"SKU code for the product",tags:"Tags",tagsHint:"Product tags"},products:{archiveTitle:"product",description:"Description",descriptionHint:"Describe the product form",editproduct:"Edit product",fields:"fields",fieldsHint:"fields hint",jsonSchema:"json schema",jsonSchemaHint:"json schema hint",name:"Form name",nameHint:"Name the type of products which this form represents",newproduct:"New product",uiSchema:"ui schema",uiSchemaHint:"ui schema hint"},categories:{archiveTitle:"Categories",editCategory:"Edit category",name:"Name",nameHint:"Name of the category",newCategory:"New category",parent:"Parent category",parentHint:"This category would be under the parent category in display or search"},abac:{backToApp:"Go back to the app",email:"Email",emailAddress:"Email address",firstName:"First name",lastName:"Last name",otpOrDifferent:"Or try a different account instead",otpResetMethod:"Reset method",otpTitle:"One time password",otpTitleHint:`Login to your account via a 6-8 digit pins, which we will send by phone or email. You can change your password later in account center.`,password:"Password",remember:"Remember my credentials",signin:"Sign in",signout:"Sign out",signup:"Sign up",signupType:"Signup Type",signupTypeHint:"Select how do you want to use software",viaEmail:"Send pin via email address",viaSms:"Phone number (SMS)"},about:"About",acChecks:{moduleName:"Checks"},acbankbranches:{acBankBranchArchiveTitle:"Bank Branches",bank:"Bank",bankHint:"The bank that this branch belongs to",bankId:"Bank",city:"City",cityHint:"City that this bank branch is located",cityId:"City",editAcBank:"Edit Bank Branch",editAcBankBranch:"Edit Bank Branch",locaitonHint:"Physical location of the branch",location:"Location",name:"Bank Branch Name",nameHint:"The branch name of the bank, town may be included",newAcBankBranch:"New Bank Branch",province:"Province",provinceHint:"Province that this bank branch is located"},acbanks:{acBankArchiveTitle:"Banks",editAcBank:"Edit Bank",name:"Bank name",nameHint:"The national name of the bank to make it easier recognize",newAcBank:"New Bank"},accesibility:{leftHand:"Left handed",rightHand:"Right handed"},acchecks:{acCheckArchiveTitle:"Checks",amount:"Amount",amountFormatted:"Amount",amountHint:"Amount of this check",bankBranch:"Bank Branch",bankBranchCityName:"City name",bankBranchHint:"The branch which has issued this check",bankBranchId:"Bank Branch",bankBranchName:"Branch name",currency:"Currency",currencyHint:"The currency which this check is written in",customer:"Customer",customerHint:"The customer that this check is from or belongs to",customerId:"Customer",dueDate:"Due Date",dueDateFormatted:"Due Date",dueDateHint:"The date that this check should be passed",editAcCheck:"Edit Check",identifier:"Identifier",identifierHint:"Identifier is special code for this check or unique id",issueDate:"Issue date",issueDateFormatted:"Issue Date",issueDateHint:"The date that check has been issued",newAcCheck:"New Check",recipientBankBranch:"Recipient Bank Branch",recipientBankBranchHint:"The bank which this check has been taken to",recipientCustomer:"Recipient Customer",recipientCustomerHint:"The customer who has this check",status:"Status",statusHint:"The status of this check"},accheckstatuses:{acCheckStatusArchiveTitle:"Check Statuses",editAcCheckStatus:"Edit Check Status",name:"Status Name",nameHint:"Status name which will be assigned to a check in workflow",newAcCheckStatus:"New Check Status"},accountcollections:{archiveTitle:"Account Collections",editAccountCollection:"Edit Collection",name:"Collection Name",nameHint:"Name the account collection",newAccountCollection:"New Account Collection"},accounting:{account:{currency:"Currency",name:"Name"},accountCollections:"Account Collections",accountCollectionsHint:"Account Collections",amount:"Amount",legalUnit:{name:"Name"},settlementDate:"Settlement Date",summary:"summary",title:"Title",transactionDate:"Transaction Date"},actions:{addJob:"+ Add job",back:"Back",edit:"Edit",new:"New"},addLocation:"Add location",alreadyHaveAnAccount:"Already have an account? Sign in instead",answerSheet:{grammarProgress:"Grammar %",listeningProgress:"Listening %",readingProgress:"Reading %",sourceExam:"Source exam",speakingProgress:"Speaking %",takerFullname:"Student fullname",writingProgress:"Writing %"},authenticatedOnly:"This section requires you to login before viewing or editing of any kind.",backup:{generateAndDownload:"Generate & Download",generateDescription:`You can create a backup of the system here. It's important to remember you will generate back from data which are visible to you. Making @@ -88,29 +88,29 @@ Error generating stack: `+p.message+` subsequent workspaces, by registering via email, phone number or other types of the passports. In this section you can enable, disable, and make some other - configurations.`,resetToDefault:"Reset to default",role:"role",roleHint:"Select role",sender:"Sender",sidetitle:"Workspaces",slug:"Slug",title:"Title",type:"Type",workspaceName:"Workspace name",workspaceNameHint:"Enter the workspace name",workspaceTypeSlug:"Slug address",workspaceTypeSlugHint:"The path that publicly will be available to users, if they signup through this account this role would be assigned to them.",workspaceTypeTitle:"Title",workspaceTypeUniqueId:"Unique Id",workspaceTypeUniqueIdHint:"Unique id can be used to redirect user to direct signin",workspaceTypeTitleHint:"The title of the Workspace"}};function Zse(e){let t="en";const n=e.match(/^\/(fa|en|ar|pl|de|ua|ru)\//);return n&&n[1]&&(t=n[1]),["fa","en","ar","pl","de","ru","ua"].includes(t)?t:"en"}const ele=e=>w.jsx(J$,{...e,to:e.href,children:e.children});function xr(){const e=Z3(),t=kse(),n=Zd(),r=(i,o,l,u=!1)=>{const d=Zse(window.location.pathname);let f=i.replace("{locale}",d);e(f,{replace:u,state:l})},a=(i,o,l)=>{r(i,o,l,!0)};return{asPath:n.pathname,state:n.state,pathname:"",query:t,push:r,goBack:()=>e(-1),goBackOrDefault:i=>e(-1),goForward:()=>e(1),replace:a}}var tle={VITE_REMOTE_SERVICE:"/",PUBLIC_URL:"/manage/",VITE_DEFAULT_ROUTE:"/{locale}/dashboard",VITE_SUPPORTED_LANGUAGES:"fa,en"};const lp=tle,kr={REMOTE_SERVICE:lp.VITE_REMOTE_SERVICE,PUBLIC_URL:lp.PUBLIC_URL,DEFAULT_ROUTE:lp.VITE_DEFAULT_ROUTE,SUPPORTED_LANGUAGES:lp.VITE_SUPPORTED_LANGUAGES,GITHUB_DEMO:lp.VITE_GITHUB_DEMO,FORCED_LOCALE:lp.VITE_FORCED_LOCALE,FORCE_APP_THEME:lp.VITE_FORCE_APP_THEME,NAVIGATE_ON_SIGNOUT:lp.VITE_NAVIGATE_ON_SIGNOUT};function nle(e){let t="en";const n=e.match(/^\/(fa|en|ar|pl|de)\//);return n&&n[1]&&(t=n[1]),t}function sr(){const e=xr();let t="en",n="us",r="ltr";return kr.FORCED_LOCALE?t=kr.FORCED_LOCALE:e.query.locale?t=`${e.query.locale}`:t=nle(e.asPath),t==="fa"&&(n="ir",r="rtl"),{locale:t,asPath:e.asPath,region:n,dir:r}}const rle={onlyOnRoot:"این بخش فقط برای دسترسی روت قابل مشاهده است. در صورت نیاز به اطلاعات بیشتر با مدیر سیستم خود تماس بگیرید.",abac:{backToApp:"رفتن به صفحات داخلی",email:"ایمیل",emailAddress:"آدرس ایمیل",firstName:"نام",lastName:"نام خانوادگی",otpOrDifferent:"یا یه حساب کاربری دیگه را امتحان کنید",otpResetMethod:"روش ریست کردن رمز",otpTitle:"رمز یک بار ورود",otpTitleHint:"برای ورود یک کد ۶ رقمی به وسیله یکی از روش های ارتباطی دریافت میکنید. بعدا میتوانید رمز خود را از طریق تنظیمات عوض کنید.",password:"کلمه عبور",remember:"مرا به یاد بسپار",signin:"ورود",signout:"خروج",signup:"ثبت نام",signupType:"نوع ثبت نام",signupTypeHint:"نوع حساب کاربری خود را مشخص کنید.",viaEmail:"از طریق ایمیل",viaSms:"از طریق پیامک"},about:"درباره",acChecks:{moduleName:"چک ها"},acbankbranches:{acBankBranchArchiveTitle:"شعب بانک",bank:"بانک",bankHint:"بانکی که این شعبه به آن تعلق دارد",bankId:"بانک",city:"شهر",cityHint:"شهری که این بانک در آن وجود دارد",cityId:"شهر",editAcBank:"ویرایش شعبه",editAcBankBranch:"ویرایش شعبه",locaitonHint:"شهر، استان و یا ناحیه ای که این شعبه در آن است",location:"مکان",name:"نام شعبه",nameHint:"نام این شعبه بانک، کد یا اسم محل یا شهر هم مجاز است",newAcBankBranch:"شعبه جدید بانک",province:"استان",provinceHint:"استانی که این بانک در آن قرار دارد"},acbanks:{acBankArchiveTitle:"بانک ها",editAcBank:"ویرایش بانک",name:"نام بانک",nameHint:"نام بانک را به صورت کلی برای شناسایی راحت تر وارد کنید",newAcBank:"بانک جدید"},accesibility:{leftHand:"چپ دست",rightHand:"راست دست"},accheck:{acCheckArchiveTitle:"چک ها"},acchecks:{acCheckArchiveTitle:"چک ها",amount:"مبلغ",amountFormatted:"مبلغ",amountHint:"مبلغ قابل پرداخت چک",bankBranch:"شعبه بانک",bankBranchCityName:"نام شهر",bankBranchHint:"شعبه بانکی که این چک را صادر کرده است",bankBranchId:"شعبه بانک",bankBranchName:"ن",currency:"واحد پول",currencyHint:"واحد پولی که این چک دارد",customer:"مشتری",customerHint:"مشتری یا شخصی که این چک به او مربوط است",customerId:"مشتری",dueDate:"تاریخ سررسید",dueDateFormatted:"تاریخ سررسید",dueDateHint:"زمانی که چک قابل نقد شدن در بانک باشد",editAcCheck:"ویرایش چک",identifier:"شناسه چک",identifierHint:"شناسه یا کد مخصوص این چک",issueDate:"تاریخ صدور",issueDateFormatted:"تاریخ صدور",issueDateHint:"تاریخی که چک صادر شده است",newAcCheck:"چک جدید",recipientBankBranch:"بانک دریافت کننده",recipientBankBranchHint:"بانکی که این چک برای نقد شدن به آن ارسال شده",recipientCustomer:"مشتری دریافت کننده",recipientCustomerHint:"مشتری که این چک را دریافت کرده است",status:"وضعیت",statusHint:"وضعیت نهایی این چک"},accheckstatuses:{acCheckStatusArchiveTitle:"وضعیت چک",editAcCheckStatus:"ویرایش وضعیت چک",name:"نام وضعیت",nameHint:"نام وضعیتی که به چک ها اختصاص داده میشود",newAcCheckStatus:"وضعیت جدید چک"},accountcollections:{archiveTitle:"سرفصل های حسابداری",editAccountCollection:"ویرایش سرفصل",name:"نام سرفصل",nameHint:"نامی که برای این سرفصل حسابداری در نظر گرفته شده",newAccountCollection:"سرفصل جدید"},accounting:{account:{currency:"واحد پول",name:"نام"},accountCollections:"سرفصل های حسابداری",accountCollectionsHint:"سرفصل های حسابداری",amount:"میزان",legalUnit:{name:"نام"},settlementDate:"تاریخ حل و فصل",summary:"خلاصه",title:"عنوان",transactionDate:"تاریخ معامله"},actions:{addJob:"+ اضافه کردن شغل",back:"Back",edit:"ویرایش",new:"جدید"},addLocation:"اضافه کردن لوکیشن",alreadyHaveAnAccount:"از قبل حساب کاربری دارید؟ به جای آن وارد شوید",answerSheet:{grammarProgress:"گرامر %",listeningProgress:"استماع ٪",readingProgress:"خواندن %",sourceExam:"آزمون منبع",speakingProgress:"صحبت كردن ٪",takerFullname:"نام کامل دانش آموز",writingProgress:"% نوشتن"},authenticatedOnly:"این بخش شما را ملزم می کند که قبل از مشاهده یا ویرایش هر نوع وارد شوید.",b1PolishSample:{b12018:"2018 B1 Sample",grammar:"گرامر",listenning:"شنیدار",reading:"خواندن",speaking:"صحبت",writing:"نوشتار"},backup:{generateAndDownload:"ایجاد و دانلود",generateDescription:`در اینجا می توانید یک نسخه پشتیبان از سیستم ایجاد کنید. مهم است که به خاطر داشته باشید + configurations.`,resetToDefault:"Reset to default",role:"role",roleHint:"Select role",sender:"Sender",sidetitle:"Workspaces",slug:"Slug",title:"Title",type:"Type",workspaceName:"Workspace name",workspaceNameHint:"Enter the workspace name",workspaceTypeSlug:"Slug address",workspaceTypeSlugHint:"The path that publicly will be available to users, if they signup through this account this role would be assigned to them.",workspaceTypeTitle:"Title",workspaceTypeUniqueId:"Unique Id",workspaceTypeUniqueIdHint:"Unique id can be used to redirect user to direct signin",workspaceTypeTitleHint:"The title of the Workspace"}};function xle(e){let t="en";const n=e.match(/^\/(fa|en|ar|pl|de|ua|ru)\//);return n&&n[1]&&(t=n[1]),["fa","en","ar","pl","de","ru","ua"].includes(t)?t:"en"}const _le=e=>w.jsx(xL,{...e,to:e.href,children:e.children});function xr(){const e=_F(),t=Jse(),n=sf(),r=(i,o,l,u=!1)=>{const d=xle(window.location.pathname);let f=i.replace("{locale}",d);e(f,{replace:u,state:l})},a=(i,o,l)=>{r(i,o,l,!0)};return{asPath:n.pathname,state:n.state,pathname:"",query:t,push:r,goBack:()=>e(-1),goBackOrDefault:i=>e(-1),goForward:()=>e(1),replace:a}}var Ole={VITE_REMOTE_SERVICE:"/",PUBLIC_URL:"/manage/",VITE_DEFAULT_ROUTE:"/{locale}/dashboard",VITE_SUPPORTED_LANGUAGES:"fa,en"};const mp=Ole,kr={REMOTE_SERVICE:mp.VITE_REMOTE_SERVICE,PUBLIC_URL:mp.PUBLIC_URL,DEFAULT_ROUTE:mp.VITE_DEFAULT_ROUTE,SUPPORTED_LANGUAGES:mp.VITE_SUPPORTED_LANGUAGES,GITHUB_DEMO:mp.VITE_GITHUB_DEMO,FORCED_LOCALE:mp.VITE_FORCED_LOCALE,FORCE_APP_THEME:mp.VITE_FORCE_APP_THEME,NAVIGATE_ON_SIGNOUT:mp.VITE_NAVIGATE_ON_SIGNOUT};function Rle(e){let t="en";const n=e.match(/^\/(fa|en|ar|pl|de)\//);return n&&n[1]&&(t=n[1]),t}function sr(){const e=xr();let t="en",n="us",r="ltr";return kr.FORCED_LOCALE?t=kr.FORCED_LOCALE:e.query.locale?t=`${e.query.locale}`:t=Rle(e.asPath),t==="fa"&&(n="ir",r="rtl"),{locale:t,asPath:e.asPath,region:n,dir:r}}const Ple={onlyOnRoot:"این بخش فقط برای دسترسی روت قابل مشاهده است. در صورت نیاز به اطلاعات بیشتر با مدیر سیستم خود تماس بگیرید.",abac:{backToApp:"رفتن به صفحات داخلی",email:"ایمیل",emailAddress:"آدرس ایمیل",firstName:"نام",lastName:"نام خانوادگی",otpOrDifferent:"یا یه حساب کاربری دیگه را امتحان کنید",otpResetMethod:"روش ریست کردن رمز",otpTitle:"رمز یک بار ورود",otpTitleHint:"برای ورود یک کد ۶ رقمی به وسیله یکی از روش های ارتباطی دریافت میکنید. بعدا میتوانید رمز خود را از طریق تنظیمات عوض کنید.",password:"کلمه عبور",remember:"مرا به یاد بسپار",signin:"ورود",signout:"خروج",signup:"ثبت نام",signupType:"نوع ثبت نام",signupTypeHint:"نوع حساب کاربری خود را مشخص کنید.",viaEmail:"از طریق ایمیل",viaSms:"از طریق پیامک"},about:"درباره",acChecks:{moduleName:"چک ها"},acbankbranches:{acBankBranchArchiveTitle:"شعب بانک",bank:"بانک",bankHint:"بانکی که این شعبه به آن تعلق دارد",bankId:"بانک",city:"شهر",cityHint:"شهری که این بانک در آن وجود دارد",cityId:"شهر",editAcBank:"ویرایش شعبه",editAcBankBranch:"ویرایش شعبه",locaitonHint:"شهر، استان و یا ناحیه ای که این شعبه در آن است",location:"مکان",name:"نام شعبه",nameHint:"نام این شعبه بانک، کد یا اسم محل یا شهر هم مجاز است",newAcBankBranch:"شعبه جدید بانک",province:"استان",provinceHint:"استانی که این بانک در آن قرار دارد"},acbanks:{acBankArchiveTitle:"بانک ها",editAcBank:"ویرایش بانک",name:"نام بانک",nameHint:"نام بانک را به صورت کلی برای شناسایی راحت تر وارد کنید",newAcBank:"بانک جدید"},accesibility:{leftHand:"چپ دست",rightHand:"راست دست"},accheck:{acCheckArchiveTitle:"چک ها"},acchecks:{acCheckArchiveTitle:"چک ها",amount:"مبلغ",amountFormatted:"مبلغ",amountHint:"مبلغ قابل پرداخت چک",bankBranch:"شعبه بانک",bankBranchCityName:"نام شهر",bankBranchHint:"شعبه بانکی که این چک را صادر کرده است",bankBranchId:"شعبه بانک",bankBranchName:"ن",currency:"واحد پول",currencyHint:"واحد پولی که این چک دارد",customer:"مشتری",customerHint:"مشتری یا شخصی که این چک به او مربوط است",customerId:"مشتری",dueDate:"تاریخ سررسید",dueDateFormatted:"تاریخ سررسید",dueDateHint:"زمانی که چک قابل نقد شدن در بانک باشد",editAcCheck:"ویرایش چک",identifier:"شناسه چک",identifierHint:"شناسه یا کد مخصوص این چک",issueDate:"تاریخ صدور",issueDateFormatted:"تاریخ صدور",issueDateHint:"تاریخی که چک صادر شده است",newAcCheck:"چک جدید",recipientBankBranch:"بانک دریافت کننده",recipientBankBranchHint:"بانکی که این چک برای نقد شدن به آن ارسال شده",recipientCustomer:"مشتری دریافت کننده",recipientCustomerHint:"مشتری که این چک را دریافت کرده است",status:"وضعیت",statusHint:"وضعیت نهایی این چک"},accheckstatuses:{acCheckStatusArchiveTitle:"وضعیت چک",editAcCheckStatus:"ویرایش وضعیت چک",name:"نام وضعیت",nameHint:"نام وضعیتی که به چک ها اختصاص داده میشود",newAcCheckStatus:"وضعیت جدید چک"},accountcollections:{archiveTitle:"سرفصل های حسابداری",editAccountCollection:"ویرایش سرفصل",name:"نام سرفصل",nameHint:"نامی که برای این سرفصل حسابداری در نظر گرفته شده",newAccountCollection:"سرفصل جدید"},accounting:{account:{currency:"واحد پول",name:"نام"},accountCollections:"سرفصل های حسابداری",accountCollectionsHint:"سرفصل های حسابداری",amount:"میزان",legalUnit:{name:"نام"},settlementDate:"تاریخ حل و فصل",summary:"خلاصه",title:"عنوان",transactionDate:"تاریخ معامله"},actions:{addJob:"+ اضافه کردن شغل",back:"Back",edit:"ویرایش",new:"جدید"},addLocation:"اضافه کردن لوکیشن",alreadyHaveAnAccount:"از قبل حساب کاربری دارید؟ به جای آن وارد شوید",answerSheet:{grammarProgress:"گرامر %",listeningProgress:"استماع ٪",readingProgress:"خواندن %",sourceExam:"آزمون منبع",speakingProgress:"صحبت كردن ٪",takerFullname:"نام کامل دانش آموز",writingProgress:"% نوشتن"},authenticatedOnly:"این بخش شما را ملزم می کند که قبل از مشاهده یا ویرایش هر نوع وارد شوید.",b1PolishSample:{b12018:"2018 B1 Sample",grammar:"گرامر",listenning:"شنیدار",reading:"خواندن",speaking:"صحبت",writing:"نوشتار"},backup:{generateAndDownload:"ایجاد و دانلود",generateDescription:`در اینجا می توانید یک نسخه پشتیبان از سیستم ایجاد کنید. مهم است که به خاطر داشته باشید شما از داده هایی که برای شما قابل مشاهده است تولید خواهید کرد. پشتیبان‌گیری باید با استفاده از حساب‌های مدیریتی انجام شود تا از پوشش همه داده‌های موجود در سیستم اطمینان حاصل شود.`,generateTitle:"ایجاد پشتیبان",restoreDescription:"در اینجا می‌توانید فایل‌های پشتیبان یا داده‌هایی را که از نصب دیگری منتقل کرده‌اید، وارد سیستم کنید.",restoreTitle:"بازیابی نسخه های پشتیبان",uploadAndRestore:"آپلود و بازیابی"},banks:{title:"بانک ها"},classroom:{classRoomName:"نام کلاس درس",classRoomNameHint:"عنوان کلاس را وارد کنید، به عنوان مثال: اسپانیایی گروه A1.1",description:"شرح",descriptionHint:"با چند کلمه توضیح دهید که این کلاس درس در مورد چیست، تا دانش آموزان آن را به راحتی پیدا کنند",editClassRoom:"ویرایش کلاس درس",gogoleMeetUrlHint:"آدرس اینترنتی را که زبان آموزان برای دسترسی به کلاس باز می کنند قرار دهید",googleMeetUrl:"آدرس اینترنتی Google Meet",members:"اعضا",membersHint:"دانش آموزان (اعضایی) را که می توانند به این محتوای کلاس دسترسی داشته باشند انتخاب کنید و شرکت کنید",newClassroom:"کلاس درس جدید",provider:"ارائه دهنده را انتخاب کنید",providerHint:"ارائه دهندگان نرم افزارهایی هستند که می توانید جلسه تماس ویدیویی خود را در بالای آن میزبانی کنید",providers:{googleMeet:"Google Meet",zoom:"بزرگنمایی"},title:"کلاس درس"},close:"بستن",cloudProjects:{clientId:"شناسه مشتری",name:"نام",secret:"راز"},common:{isNUll:"تعیین نشده",cancel:"لغو",no:"خیر",noaccess:"شما به این بخش از برنامه دسترسی ندارید. برای مشاوره با سرپرست خود تماس بگیرید",parent:"رکورد مادر",parentHint:"اگر این رکورد دارای سر مجموعه است آن را انتخاب کنید",save:"ذخیره",yes:"بله"},commonProfile:{},confirm:"تایید",continue:"ادامه",controlsheets:{active:"فعال",archiveTitle:"کنترل شیت",editControlSheet:"ویرایش کنترل شیت",inactive:"غیرفعال",isRunning:"درحال اجرا",name:"نام",nameHint:"نام کنترل شیت برای دسترسی بهتر",newControlSheet:"کنترل شیت جدید"},course:{availableCourses:"دوره های موجود",courseDescription:"شرح دوره",courseDescriptionHint:"در مورد دوره به طور کامل توضیح دهید تا افراد بتوانند قبل از ثبت نام در مورد آن مطالعه کنند",courseExcerpt:"گزیده دوره",courseExcerptHint:"شرح دوره را در 1 یا 2 خط خلاصه کنید",courseId:"Course Id",courseTitle:"عنوان دوره",courseTitleHint:"عنوان دوره را وارد کنید، مانند الگوریتم در C++",editCourse:"ویرایش دوره",myCourses:"دوره های من",name:"Ali",newCourse:"دوره جدید",noCourseAvailable:"هیچ دوره ای در اینجا موجود نیست. برای دیدن دوره های اختصاصی ممکن است لازم باشد با حساب دیگری وارد شوید",noCourseEnrolled:"شما در حال حاضر در هیچ دوره ای ثبت نام نکرده اید. دوره زیر را پیدا کنید و ثبت نام کنید.",title:"عنوان"},createAccount:"ایجاد حساب کاربری",created:"زمان ایجاد شد",currentUser:{editProfile:"ویرایش نمایه",profile:"مشخصات",signin:"ورود",signout:"خروج از سیستم"},dashboards:"محیط کار",datanodes:{addReader:"اضافه کردن خواننده",addWriter:"اضافه کردن نویسنده",archiveTitle:"دیتا نود ها",dataType:"نوع دیتا",expanderFunction:"Expander function",expanderFunctionHint:"How to cast the content into value array",filePath:"File Path",filePathHint:"File address on the system",key:"Data key",keyHint:"Data key is the sub key of a data node",keyReadable:"Readable",keyReadableHint:"If this sub key is readable",keyWritable:"Writable",keyWritableHint:"If this sub key is writable",modbusRtuAddress:"Address",modbusRtuAddressHint:"Address",modbusRtuDataBits:"DataBits",modbusRtuDataBitsHint:"DataBits",modbusRtuParity:"Parity",modbusRtuParityHint:"Parity",modbusRtuSlaveId:"SlaveId",modbusRtuSlaveIdHint:"SlaveId",modbusRtuStopBits:"StopBits",modbusRtuStopBitsHint:"StopBits",modbusRtuTimeout:"Timeout",modbusRtuTimeoutHint:"Timeout",modbusTcpHost:"Host",modbusTcpHostHint:"Host",modbusTcpPort:"Port",modbusTcpPortHint:"Port",modbusTcpSlaveId:"Slave id",modbusTcpSlaveIdHint:"Slave id",modbusTcpTimeout:"Timeout",modbusTcpTimeoutHint:"Timeout",mode:"حالت",modeHint:"حالت دیتا نود",mqttBody:"بدنه پیام",mqttBodyHInt:"پیامی که ارسال خواهد شد",mqttTopic:"عنوان پیام",mqttTopicHint:"موضوع پیام که به MQTT ارسال خواهد شد",nodeReader:"خواننده نود",nodeReaderConfig:"تنظیم نود",nodeReaderConfigHint:"تنظیمات مربوط به نحوه خواندن اطلاعات",nodeReaderHint:"نوع خواننده اطلاعات از روی نود مشخص کنید",nodeWriter:"نویسنده نود",nodeWriterHint:"نوع نویسنده که اطلاعات را بر روی نود مینویسد مشخص کنید",serialPort:"سریال پورت",serialPortHint:"انتخاب سریال پورت های موجود و متصل به سیستم",type:"نوع دیتا",typeHint:"نوع دیتایی که این نوع نگهداری یا منتقل میکند.",udpHost:"Host",udpHostHint:"UDP Host Address",udpPort:"Port",udpPortHint:"UDP Port Number"},datepicker:{day:"روز",month:"ماه",year:"سال"},debugInfo:"نمایش اطلاعات دیباگ",deleteAction:"حذف",deleteConfirmMessage:"آیا از حذف کردن این آیتم ها مطمین هستید؟",deleteConfirmation:"مطمئنی؟",devices:{deviceModbusConfig:"تنظیمات مدباس دستگاه",deviceModbusConfigHint:"تنظیمات مربوط به نوع دستگاه مدباس مانند آدرس ها و رجیستر ها",devicetemplateArchiveTitle:"دستگاه ها",editDevice:"ویرایش دستگاه",ip:"IP",ipHint:"آدرس دستگاه به صورت آی پی ۴",model:"مدل",modelHint:"مدل یا سریال دستگاه",name:"نام دستگاه",nameHint:"نامی که برای دستگاه در سطح نرم افزار گذاشته میشود",newDevice:"دستگاه جدید",securityType:"نوع امنیت بی سیم",securityTypeHint:"نوع رمزگذاری هنگام اتصال به این شبکه وایرلس",type:"نوع دستگاه",typeHint:"نوع فیزیکی دستگاه ",typeId:"نوع",typeIdHint:"نوع دستگاه",wifiPassword:"رمز وای فای",wifiPasswordHint:"رمز هنگام اتصال به وای فای (خالی هم مورد قبول است)",wifiSSID:"شناسه وای فای",wifiSSIDHint:"نام شبکه وای فای یا همان SSID"},devicetype:{archiveTitle:"انواع دستگاه",editDeviceType:"ویرایش نوع دستگاه",name:"نام نوع دستگاه",nameHint:"نوع دستگاه را نام گذاری کنید",newDeviceType:"نوع دستگاه جدید"},diagram:"دیاگرام",drive:{attachFile:"اضافه کردن فایل پیوست",driveTitle:"درایو",menu:"فایل ها",name:"نام",size:"اندازه",title:"عنوان",type:"تایپ کنید",viewPath:"آدرس نمایش",virtualPath:"مسیر مجازی"},dropNFiles:"برای شروع آپلود، {n} فایل را رها کنید",edit:"ویرایش",errors:{UNKOWN_ERRROR:"خطای ناشناخته ای رخ داده است"},exam:{startInstruction:"امتحان جدیدی را با کلیک کردن روی دکمه شروع کنید، ما پیشرفت شما را پیگیری می کنیم تا بتوانید بعداً بازگردید.",startNew:"امتحان جدیدی را شروع کنید",title:"امتحان"},examProgress:{grammarProgress:"پیشرفت گرامر:",listeningProgress:"پیشرفت گوش دادن:",readingProgress:"پیشرفت خواندن:",speakingProgress:"پیشرفت صحبت کردن:",writingProgress:"پیشرفت نوشتن:"},examSession:{highlightMissing:"برجسته کردن از دست رفته",showAnswers:"نمایش پاسخ ها"},fb:{commonProfile:"پروفایل خودت را ویرایش کن",editMailProvider:"ارائه دهنده ایمیل",editMailSender:"فرستنده ایمیل را ویرایش کنید",editPublicJoinKey:"کلید پیوستن عمومی را ویرایش کنید",editRole:"نقش را ویرایش کنید",editWorkspaceType:"ویرایش نوع تیم",newMailProvider:"ارائه دهنده ایمیل جدید",newMailSender:"فرستنده ایمیل جدید",newPublicJoinKey:"کلید پیوستن عمومی جدید",newRole:"نقش جدید",newWorkspaceType:"تیم جدید",publicJoinKey:"کلید پیوستن عمومی"},fbMenu:{emailProvider:"ارائه دهنده ایمیل",emailProviders:"ارائه دهندگان ایمیل",emailSender:"فرستنده ایمیل",emailSenders:"ارسال کنندگان ایمیل",gsmProvider:"سرویس های تماس",keyboardShortcuts:"میانبرها",myInvitations:"دعوتنامه های من",publicJoinKey:"کلیدهای پیوستن عمومی",roles:"نقش ها",title:"سیستم",users:"کاربران",workspaceInvites:"دعوت نامه ها",workspaceTypes:"انواع تیم ها",workspaces:"فضاهای کاری"},featureNotAvailableOnMock:"این بخش در نسخه دمو وجود ندارد. دقت فرمایید که نسخه ای از نرم افزار که شما با آن کار میکنید صرفا برای نمایش بوده و سرور واقعی ارتباط نمی گیرد. بنابراین هیچ اطلاعاتی ذخیره نمیشوند.",financeMenu:{accountName:"نام کیف پول",accountNameHint:"نامی که کیف پول را از بقیه متمایز میکند",amount:"میزان",amountHint:"مبلغ پرداختی را وارد کنید",currency:"واحد پول",currencyHint:"ارزی که این حساب باید در آن باشد را انتخاب کنید",editPaymentRequest:"درخواست پرداخت را ویرایش کنید",editVirtualAccount:"ویرایش حساب مجازی",newPaymentRequest:"درخواست پرداخت جدید",newVirtualAccount:"اکانت مجازی جدید",paymentMethod:"روش پرداخت",paymentMethodHint:"مکانیزم روش پرداخت را انتخاب کنید",paymentRequest:"درخواست پرداخت",paymentRequests:"درخواست های پرداخت",paymentStatus:"وضعیت پرداخت",subject:"موضوع",summary:"مانده",title:"امور مالی",transaction:{amount:"مقدار",subject:"موضوع",summary:"مانده"},virtualAccount:"حساب کاربری مجازی",virtualAccountHint:"حساب مجازی را انتخاب کنید که پرداخت به آن انجام می شود",virtualAccounts:"حساب های مجازی"},firstTime:"اولین بار در برنامه، یا رمز عبور را گم کرده اید؟",forcedLayout:{forcedLayoutGeneralMessage:"دسترسی به این بخش نیازمند حساب کاربری و ورود به سیستم است"},forgotPassword:"رمز عبور را فراموش کرده اید",generalSettings:{accessibility:{description:"تنظیماتی که مربوط به توانایی های فیزیکی و یا شرایط ویژه جسمانی مرتبط هستند",title:"دسترسی بهتر"},debugSettings:{description:"اطلاعات اشکال زدایی برنامه را برای توسعه دهندگان یا میزهای راهنمایی ببینید",title:"تنظیمات اشکال زدایی"},grpcMethod:"بیش از grpc",hostAddress:"نشانی میزبان",httpMethod:"بیش از http",interfaceLang:{description:"در اینجا می توانید تنظیمات زبان رابط نرم افزار خود را تغییر دهید",title:"زبان و منطقه"},port:"بندر",remoteDescripton:"سرویس از راه دور، مکانی است که تمامی داده ها، منطق ها و سرویس ها در آن نصب می شوند. ممکن است ابری یا محلی باشد. فقط کاربران پیشرفته، تغییر آن به آدرس اشتباه ممکن است باعث عدم دسترسی شود.",remoteTitle:"سرویس از راه دور",richTextEditor:{description:"نحوه ویرایش محتوای متنی را در برنامه مدیریت کنید",title:"ویرایشگر متن"},theme:{description:"رنگ تم رابط را تغییر دهید",title:"قالب"}},geo:{geocities:{country:"کشور",countryHint:"کشوری که این شهر در آن قرار داده شده",editGeoCity:"ویرایش شهر",geoCityArchiveTitle:"شهرها",menu:"شهرها",name:"نام شهر",nameHint:"نام شهر",newGeoCity:"شهر جدید",province:"استان",provinceHint:"استانی که این شهر در آن قرار دارد."},geocountries:{editGeoCountry:"ویرایش کشور",geoCountryArchiveTitle:"کشورها",menu:"کشورها",name:"نام کشور",nameHint:"نام کشور",newGeoCountry:"کشور جدید"},geoprovinces:{country:"کشور",editGeoProvince:"ویرایش استان",geoProvinceArchiveTitle:"استان ها",menu:"استان ها",name:"نام استان",nameHint:"نام استان",newGeoProvince:"استان جدید"},lat:"افقی",lng:"عمودی",menu:"ابزار جغرافیایی"},geolocations:{archiveTitle:"مکان ها",children:"children",childrenHint:"children Hint",code:"کد",codeHint:"کد دسترسی",editGeoLocation:"ویرایش",flag:"پرچم",flagHint:"پرچم مکان",name:"نام",nameHint:"نام عمومی مکان",newGeoLocation:"مکان جدید",officialName:"نام رسمی",officialNameHint:"",status:"وضعیت",statusHint:"وضعیت مکان (معمولا کشور)",type:"نوع",typeHint:"نوع مکان"},gpiomodes:{archiveTitle:"حالت های پایه",description:"توضیحات",descriptionHint:"جزیات بیشتر در مورد عملکرد این پایه",editGpioMode:"ویرایش حالت پایه",index:"ایندکس عددی",indexHint:"مقدار عددی این پایه هنگام تنظیمات پایه در ابتدای نرم افزار",key:"کلید عددی",keyHint:"کلید عددی این پایه",newGpioMode:"حالت پایه جدید"},gpios:{analogFunction:"تابع آنالوگ",analogFunctionHint:"جزیات در مورد تابع آنالوگ",archiveTitle:"پایه ها",comments:"توضیحات",commentsHint:"توضیحات بیشتر یا قابلیت های این پایه",editGpio:"ویرایش پایه",index:"ایندکس این پایه",indexHint:"شماره عددی این پایه در قطعه که میتوان با آن مقدار پایه را کنترل کرد",modeId:"حالت پایه",modeIdHint:"انتخاب حالت استفاده پایه مانند ورودی یا خروجی",name:"عنوان پایه",nameHint:"اسم پایه مانند GPIO_1",newGpio:"پایه جدید",rtcGpio:"پایه RTC",rtcGpioHint:"اطلاعات پایه RTC در صورت موجود بودن"},gpiostates:{archiveTitle:"وضعیت پایه ها",editGpioState:"ویرایش وضعیت پایه",gpio:"پایه",gpioHint:"پایه را از لیست پایه های موجود این قطعه انتخاب کنید",gpioMode:"حالت",gpioModeHint:"حالتی که پایه باید تنظیم شود را انتخاب کنید",high:"بالا (روشن)",low:"پایین (خاموش)",newGpioState:"حالت جدید پایه",value:"مقدار",valueHint:"وضعیت فعلی پین"},gsmproviders:{apiKey:"کلید API",apiKeyHint:"کلید دسترسی به سرویس فراهم کننده پیامکی یا تماس",editGsmProvider:"ویرایش GSM",gsmProviderArchiveTitle:"سرویس های GSM",invokeBody:"بدنه درخواست",invokeBodyHint:"اطلاعاتی که به صورت متد پست به سرویس ارسال میشوند",invokeUrl:"آدرس API",invokeUrlHint:"آدرسی که باید برای ارسال پیامک از آن استفاده شود.",mainSenderNumber:"شماره ارسال کننده",mainSenderNumberHint:"شماره تلفنی که برای پیامک یا تماس استفاده میشوند",newGsmProvider:"سرویس GSM جدید",terminal:"ترمینال",type:"نوع سرویس",typeHint:"نوع سرویس فراهم کننده GSM (امکانات مختلف نصبت به نوع سرویس موجود است)",url:"وب سرویس"},hmi:{archiveTitle:"Hmis",editHmi:"Edit Hmi",name:"Hmi Name",nameHint:"Name of the hmi to recognize",newHmi:"New Hmi"},hmiComponents:{archiveTitle:"Hmi Components",editHmiComponent:"Edit HmiComponent",hmi:"hmi",hmiHint:"hmi Hint",hmiId:"hmiId",hmiIdHint:"hmiId Hint",icon:"icon",iconHint:"icon Hint",label:"label",labelHint:"label Hint",layoutMode:"layoutMode",layoutModeHint:"layoutMode Hint",newHmiComponent:"New HmiComponent",position:"position",positionHint:"position Hint",read:"read",readHint:"read Hint",readId:"readId",readIdHint:"readId Hint",states:"states",statesHint:"states Hint",type:"type",typeHint:"type Hint",write:"write",writeHint:"write Hint",writeId:"writeId",writeIdHint:"writeId Hint"},hmicomponents:{archiveTitle:"Hmi Components",editHmiComponent:"Edit HmiComponent",hmi:"hmi",hmiHint:"hmi Hint",hmiId:"hmiId",hmiIdHint:"hmiId Hint",icon:"icon",iconHint:"icon Hint",label:"label",labelHint:"label Hint",layoutMode:"layoutMode",layoutModeHint:"layoutMode Hint",newHmiComponent:"New HmiComponent",position:"position",positionHint:"position Hint",read:"read",readHint:"read Hint",readId:"readId",readIdHint:"readId Hint",states:"states",statesHint:"states Hint",type:"type",typeHint:"type Hint",write:"write",writeHint:"write Hint",writeId:"writeId",writeIdHint:"writeId Hint"},hmis:{archiveTitle:"Hmis",editHmi:"Edit Hmi",name:"Hmi Name",nameHint:"Name of the hmi to recognize",newHmi:"New Hmi"},home:{line1:"{username}، به dEIA خوش آمدید",line2:"ابزار ارزیابی اثرات زیست محیطی PixelPlux",title:"GADM"},intacodes:{description:"شرح فعالیت",descriptionHint:"شرح فعالیت در مورد این اینتاکد",editIntacode:"ویرایش اینتاکد",intacodeArchiveTitle:"اینتاکدها",margin:"حاشیه سود",marginHint:"میزان سودی که برای این نوع از اینتاکد در نظر گرفته شده است (درصد)",newIntacode:"اینتاکد جدید",note:"ملاحضات",noteHint:"نکات اضافی در مورد محاسبات این نوع اینتاکد",year:"سال",yearHint:"سالی که این اینتاکد برای آن معتبر است"},iot:{dataNodeDatum:"تاریخچه تغییرات",dataNodeName:"نام دیتانود",dataNodeNameHint:"نام ویژه این دیتانود که از بقیه دیتا ها متمایز شناخته شود",dataNodes:"دیتانود ها",editDataNode:"ویرایش دیتانود",ingestedAt:"ساخته شده",newDataNode:"دیتانود جدید",title:"هوشمند",valueFloat64:"مقدار اعشاری",valueInt64:"مقدار عددی",valueString:"مقدار متنی"},jalaliMonths:{0:"فروردین",1:"اردیبهشت",2:"خرداد",3:"تیر",4:"مرداد",5:"شهریور",6:"مهر",7:"آبان",8:"آذر",9:"دی",10:"بهمن",11:"اسفند"},jobsList:{completionDate:"تاریخ تکمیل",consumerId:"شناسه مصرف کننده",projectCode:"کد پروژه",projectName:"نام پروژه",result:"نتیجه",status:"وضعیت",submissionDate:"تاریخ ارسال"},katexPlugin:{body:"فرمول",cancel:"لغپ",insert:"افزودن",title:"پلاگین فرمول",toolbarName:"افزودن فرمول"},keyboardShortcut:{action:"عملکرد",defaultBinding:"کلید های پیش فرض",keyboardShortcut:"میانبرهای صفحه کلید",pressToDefine:"برای ثبت کلید ها را فشار دهید",userDefinedBinding:"کلید های تعیین شده کاربر"},lackOfPermission:"برای دسترسی به این بخش از نرم افزار به مجوزهای بیشتری نیاز دارید.",learningMenu:{answerSheets:"پاسخنامه",enrolledCourses:"دوره های ثبت نام شده",myClassRooms:"کلاس ها",myCourses:"دوره های آموزشی",myExams:"امتحانات",practiseBoard:"چرک نویس",title:"یادگیری"},licenses:{activationKeySeries:"سلسله",activationKeys:"کلیدهای فعال سازی",code:"Code",duration:"مدت زمان (روزها)",durationHint:"طول دوره فعال سازی برای مجوز یک آن فعال می شود",editActivationKey:"ویرایش کلید فعال سازی",editLicensableProduct:"ویرایش محصول دارای مجوز",editLicense:"ویرایش مجوز",editProductPlan:"ویرایش طرح محصول",endDate:"End Date",licensableProducts:"محصولات قابل مجوز",licenseName:"نام مجوز",licenseNameHint:"نام مجوز، می تواند ترکیبی از چیزهای مختلف باشد",licenses:"مجوزها",menuActivationKey:"کلیدهای فعال سازی",menuLicenses:"مجوزها",menuProductPlans:"طرح ها",menuProducts:"محصولات",newActivationKey:"کلید فعال سازی جدید",newLicensableProduct:"محصول جدید دارای مجوز",newLicense:"مجوز جدید",newProductPlan:"طرح محصول جدید",planName:"طرح",planNameHint:"کلید فعال سازی آن طرح خاص را انتخاب کنید",planProductName:"محصول پلان",planProductNameHint:"محصولی را که می خواهید این طرح برای آن باشد انتخاب کنید.",privateKey:"کلید خصوصی",privateKeyHint:"کلید خصوصی مجوز که برای صدور گواهی استفاده می شود",productName:"نام محصول",productNameHint:"نام محصول می تواند هر چیزی باشد که مشتریان آن را تشخیص دهند",productPlanName:"نام طرح",productPlanNameHint:"یک نام برای این طرح تعیین کنید، به عنوان مثال شروع کننده یا حرفه ای",productPlans:"طرح های محصول",publicKey:"کلید عمومی",publicKeyHint:"کلید عمومی مجوز که برای صدور گواهی استفاده می شود",series:"سلسله",seriesHint:"یک برچسب را به عنوان سری تنظیم کنید، به عنوان مثال first_1000_codes تا بتوانید تشخیص دهید که چه زمانی آنها را ایجاد کرده اید",startDate:"تاریخ شروع"},locale:{englishWorldwide:"انگلیسی (English)",persianIran:"فارسی - ایران (Persian WorldWide)",polishPoland:"لهستانی (Polski)"},loginButton:"وارد شدن",loginButtonOs:"ورود با سیستم عامل",mailProvider:{apiKey:"کلید ای پی ای",apiKeyHint:"کلید دسترسی به API در صورتی که مورد نیاز باشد.",fromEmailAddress:"از آدرس ایمیل",fromEmailAddressHint:"آدرسی که از آن ارسال می کنید، معمولاً باید در سرویس پستی ثبت شود",fromName:"از نام",fromNameHint:"نام فرستنده",nickName:"نام مستعار",nickNameHint:"نام مستعار فرستنده ایمیل، معمولاً فروشنده یا پشتیبانی مشتری",replyTo:"پاسخ دادن به",replyToHint:"آدرسی که گیرنده قرار است به آن پاسخ دهد. (noreply@domain) به عنوان مثال",senderAddress:"آدرس فرستنده",senderName:"نام فرستنده",type:"نوع سرویس",typeHint:"سرویس ایمیلی که توسط آن ایمیل ها ارسال میشوند"},menu:{answerSheets:"برگه های پاسخ",classRooms:"کلاس های درس",courses:"دوره های آموزشی",exams:"امتحانات",personal:"شخصی سازی کنید",questionBanks:"بانک سوالات",questions:"سوالات",quizzes:"آزمون ها",settings:"تنظیمات",title:"اقدامات",units:"واحدها"},meta:{titleAffix:"PixelPlux"},misc:{currencies:"ارز ها",currency:{editCurrency:"ویرایش ارز",name:"نام ارز",nameHint:"نام بازاری ارز که واحد آن نیز میباشد",newCurrency:"ارز جدید",symbol:"علامت یا سمبل",symbolHint:"کاراکتری که معمولا واحد پول را مشخص میکند. برخی واحد ها سمبل ندارند",symbolNative:"سمبل داخلی",symbolNativeHint:"سمبل یا علامتی از ارز که در کشور استفاده میشود"},title:"سرویس های مخلوط"},mockNotice:"شما در حال دیدن نسخه نمایشی هستید. این نسخه دارای بک اند نیست، اطلاعات شما ذخیره نمیشوند و هیچ گارانتی نسبت به کارکردن ماژول ها وجود ندارد.",myClassrooms:{availableClassrooms:"کلاس های درس موجود",noCoursesAvailable:"هیچ دوره ای در اینجا موجود نیست. ممکن است لازم باشد با حساب دیگری وارد شوید تا انحصاری را ببینید",title:"کلاس های درس من",youHaveNoClasses:"شما به هیچ کلاسی اضافه نمی شوید."},networkError:"شما به شبکه متصل نیستید، دریافت داده انجام نشد. اتصال شبکه خود را بررسی کنید",noOptions:"هیچ گزینه نیست، جستجو کنید",noPendingInvite:"شما هیچ دعوت نامه ای برای پیوستن به تیم های دیگری ندارید.",noSignupType:"ساختن اکانت در حال حاضر ممکن نیست، لطفا با مدیریت تماس بگیرید",node:{Oddeven:"زوج/فرد",average:"میانگین",circularInput:"گردی",color:"رنگ",containerLevelValue:"Container",cron:"کرون",delay:"تاخیری",digital:"دیجیتال",interpolate:"اینترپولیت",run:"اجرا",source:"مبدا",start:"شروع",stop:"توقف",switch:"دگمه",target:"مقصد",timer:"تایمر",value:"مقدار",valueGauge:"گیج"},not_found_404:"صفحه ای که به دنبال آن هستید وجود ندارد. ممکن است این قسمت در زبان فارسی موجود نباشد و یا حذف شده باشد.",notfound:"اطلاعات یا ماژول مورد نظر شما در این نسخه از سرور وجود ندارد.",pages:{catalog:"کاتالوگ",feedback:"بازخورد",jobs:"مشاغل من"},payments:{approve:"تایید",reject:"ریجکت"},priceTag:{add:"اضافه کردن قیمت",priceTag:"برچسب قیمتی",priceTagHint:"نوع قیمت گذاری با توجه منطقه یا نوع ارز"},question:{editQuestion:"سوال جدید",newQuestion:"سوال جدید"},questionBank:{editEntity:"بانک سوالات را ویرایش کنید",editQuestion:"ویرایش سوال",name:"نام بانک",newEntity:"بانک سوالات جدید",newQuestion:"سوال جدید",title:"عنوان بانک سوال",titleHint:'بانک سوالات را نام ببرید، مانند "504 سوال برای طراحی برق"'},questionSemester:{editQuestionSemester:"ویرایش دوره سوال",menu:"دوره های سوال",name:"نام دوره",nameHint:"نام دوره سوال معمولا با ماه آزمون یا سوال مرتبط است، مانند تیرماه یا نیم فصل اول",newQuestionSemester:"دوره جدید",questionSemesterArchiveTitle:"دوره های سوال"},questionlevels:{editQuestionLevel:"ویرایش سطح سوال",name:"سطح سوال",nameHint:"نامی که برای سطح سوال انتخاب میکنید، مانند (کشوری، استانی)",newQuestionLevel:"سطح سوال جدید",questionLevelArchiveTitle:"سطوح سوالات"},questions:{addAnswerHint:"برای اضافه کردن پاسخ کلیک کنید",addQuestion:"اضافه کردن سوال",answer:"پاسخ",answerHint:"یکی از پاسخ های سوال و یا تنها پاسخ",durationInSeconds:"زمان پاسخ (ثانیه)",durationInSecondsHint:"مدت زمانی که دانش آموز باید به این سوال پاسخ بدهد.",province:"استان",provinceHint:"استان یا استان هایی که این سوال به آن مربوط است",question:"سوال",questionBank:"بانک سوالات",questionBankHint:"بانک سوالاتی که این سوال به آن تعلق دارد",questionDifficulityLevel:"سطح دشواری",questionDifficulityLevelHint:"درجه سختی حل این سوال برای دانش آموز",questionLevel:"تیپ سوال",questionLevelHint:"سطح سوال به صورت کشوری یا استانی - منطقه ای",questionSchoolType:"نوع مدرسه",questionSchoolTypeHint:"نوع مدرسه ای که این سوالات در آن نشان داده شده اند.",questionSemester:"دوره سوال",questionSemesterHint:"مانند تیر یا دو نوبت کنکور",questionTitle:"صورت سوال",questionTitleHint:"صورت سوال همان چیزی است که باید به آن جواب داده شود.",questions:"سوالات",studyYear:"سال تحصیلی",studyYearHint:"سال تحصیلی که این سوال وارد شده است"},quiz:{editQuiz:"ویرایش مسابقه",name:"نام",newQuiz:"آزمون جدید"},reactiveSearch:{noResults:"جستجو هیچ نتیجه ای نداشت",placeholder:"جستجو (کلید S)..."},requestReset:"درخواست تنظیم مجدد",resume:{clientLocation:"مکان مشتری:",companyLocation:"مکان شرکت فعالیت:",jobCountry:"کشوری که کار در آن انجام شده:",keySkills:"توانایی های کلیدی",level:"سطح",level_1:"آشنایی",level_2:"متوسط",level_3:"کاربر روزمره",level_4:"حرفه ای",level_5:"معمار",noScreenMessage1:"به نسخه چاپی رزومه من خوش آمدید. برای ایجاد تغیرات و اطلاعات بیشتر حتما ادامه رزومه را در گیت هاب به آدرس",noScreenMessage2:"مشاهده کنید. در نسخه گیت هاب میتوانید اصل پروژه ها، ویدیو ها و حتی امکان دسته بندی یا تغییر در رزومه را داشته باشید",preferredPositions:"مشاغل و پروژ های مورد علاقه",products:"محصولات",projectDescription:"توضیحات پروژه",projects:"پروژه ها",services:"توانایی های مستقل",showDescription:"نمایش توضیحات پروژه",showTechnicalInfo:"نمایش اطلاعات فنی پروژه",skillDuration:"مدت مهارت",skillName:"عنوان مهارت",technicalDescription:"اطلاعات فنی",usage:"میزان استفاده",usage_1:"به صورت محدود",usage_2:"گاها",usage_3:"استفاده مرتب",usage_4:"استفاده پیشرفته",usage_5:"استفاده فوق حرفه ای",videos:"ویدیو ها",years:"سال"},role:{name:"نام",permissions:"دسترسی ها"},saveChanges:"ذخیره",scenariolanguages:{archiveTitle:"زبان های سناریو",editScenarioLanguage:"ویرایش زبان سناریو",name:"نام زبان",nameHint:"نام زبان یا ابزار طراحی سناریو",newScenarioLanguage:"ویرایش زبان سناریو"},scenariooperationtypes:{archiveTitle:"انواع عملیات",editScenarioOperationType:"ویرایش نوع عملیات",name:"نام عملیات",nameHint:"عنوانی که این عملیات با آن شناخته میشود",newScenarioOperationType:"عملیات جدید"},scenarios:{archiveTitle:"سناریو ها",editScenario:"ویرایش سناریو",lammerSequences:"دستورات لمر",lammerSequencesHint:"طراحی دستورالعمل مربوط به این سناریو در زبان لمر",name:"نام سناریو",nameHint:"نامی که این سناریو در سطح نرم افزار شناخته میشود",newScenario:"سناریو جدید",script:"کد سناریو",scriptHint:"کد سناریو که هنگام اجرای سناریو باید اجرا شود"},schooltypes:{editSchoolType:"ویرایش نوع مدرسه",menu:"انواع مدرسه",name:"نام مدرسه",nameHint:"نام مدرسه که عموما افراد آن را در سطح کشور میشناسند",newSchoolType:"نوع مدرسه جدید",schoolTypeTitle:"انواع مدارس"},searchplaceholder:"جستجو...",selectPlaceholder:"- انتخاب کنید -",settings:{apply:"ذخیره",inaccessibleRemote:"سرور خارج از دسترس است",interfaceLanguage:"زبان رابط",interfaceLanguageHint:"زبانی که دوست دارید رابط کاربری به شما نشان داده شود",preferredHand:"دست اصلی",preferredHandHint:"از کدام دست بیشتر برای استفاده از موبایل بهره میبرید؟",remoteAddress:"آدرس سرور",serverConnected:"سرور با موفقیت و صحت کار میکند و متصل هستیم",textEditorModule:"ماژول ویرایشگر متن",textEditorModuleHint:"شما می‌توانید بین ویرایشگرهای متنی مختلفی که ما ارائه می‌دهیم، یکی را انتخاب کنید و از ویرایشگرهایی که راحت‌تر هستید استفاده کنید",theme:"قالب",themeHint:"قالب و یا رنگ تم را انتخاب کنید"},signinInstead:"ورود",signup:{continueAs:"ادامه به عنوان {currentUser}",continueAsHint:`با وارد شدن به عنوان {currentUser}، تمام اطلاعات شما، به صورت آفلاین در رایانه شما، تحت مجوزهای این کاربر ذخیره می‌شود.`,defaultDescription:"برای ایجاد حساب کاربری لطفا فیلدهای زیر را پر کنید",mobileAuthentication:"In order to login with mobile",signupToWorkspace:"برای ثبت نام به عنوان {roleName}، فیلدهای زیر را پر کنید"},signupButton:"ثبت نام",simpleTextEditor:"باکس ساده سیستم برای متن",studentExams:{history:"سابقه امتحان",noExams:"هیچ امتحانی برای شرکت کردن وجود ندارد",noHistory:"شما هرگز در هیچ نوع امتحانی شرکت نکرده اید، وقتی امتحانی را انتخاب و مطالعه می کنید، در اینجا لیست می شود.",title:"امتحانات"},studentRooms:{title:"کلاس های درس من"},studyYears:{editStudyYear:"ویرایش سال تحصیلی",name:"نام",nameHint:"سال تحصیلی مدت زمان یه دوره مانند سال ۹۴-۹۵ است",newStudyYear:"سال تحصیلی جدید",studyYearArchiveTitle:"سالهای تحصیلی"},table:{created:"ساخته شده",filter:{contains:"شامل",endsWith:"پایان یابد",equal:"برابر",filterPlaceholder:"فیلتر...",greaterThan:"بزرگتر از",greaterThanOrEqual:"بزرگتر یا مساوری",lessThan:"کمتر از",lessThanOrEqual:"کمتر یا مساوی",notContains:"شامل نباشد",notEqual:"برابر نباشد",startsWith:"شروع با"},info:"داده",next:"بعدی",noRecords:"هیچ سابقه ای برای نمایش وجود ندارد. برای ایجاد یکی، دکمه مثبت را فشار دهید.",previous:"قبلی",uniqueId:"شناسه",value:"مقدار"},tempControlWidget:{decrese:"کاهش",increase:"افزایش"},tinymceeditor:"ویرایش گر TinyMCE",triggers:{archiveTitle:"شرط ها",editTrigger:"ویرایش شرط",name:"نام شرط",nameHint:"نامی که این شرط در سطح نرم افزار با آن شناخته میشود.",newTrigger:"شرط جدید",triggerType:"نوغ شرط",triggerTypeCronjob:"شرط زمانی (Cronjob)",triggerTypeCronjobHint:"تعریف شرط بر اساس رخداد های زمانی",triggerTypeGpioValue:"شرط تغییر مقدار",triggerTypeGpioValueHint:"شرط بر اساس تغییر مقدار خروجی یا ورودی",triggerTypeHint:"نوغ شرط",triggerTypeId:"نوع شرط",triggerTypeIdHint:"نوع شرط تعیین کننده نحوه استفاده از این شرط است"},triggertypes:{archiveTitle:"نوع شرط",editTriggerType:"ویرایش نوع شرط",name:"نام نوع شرط",nameHint:"نامی که این نوع شرط با آن شناخته میشود",newTriggerType:"ویرایش نوع شرط"},tuyaDevices:{cloudProjectId:"شناسه پروژه ابری",name:"نام دستگاه Tuya"},unit:{editUnit:"ویرایش واحد",newUnit:"واحد جدید",title:"عنوان"},units:{content:"محتویات",editUnit:"واحد ویرایش",newUnit:"واحد جدید",parentId:"واحد مادر",subUnits:"زیر واحد ها"},unnamedRole:"نقش نامعلوم",unnamedWorkspace:"فضای کاری بی نام",user:{editUser:"ویرایش کاربر",newUser:"کاربر جدید"},users:{firstName:"نام کوچک",lastName:"نام خانوادگی"},webrtcconfig:"پیکربندی WebRTC",widgetPicker:{instructions:"کلید های فلش را از روی کیبرد برای جا به جایی فشار دهید. ",instructionsFlat:`Press Arrows from keyboard to change slide
Press Ctrl + Arrows from keyboard to switch to - flat mode`,widgets:"ویدجت ها"},widgets:{noItems:"هیچ ویدجتی در این صفحه وجود ندارد."},wokspaces:{body:"بدن",cascadeNotificationConfig:"پیکربندی اعلان آبشار در فضاهای کاری فرعی",cascadeNotificationConfigHint:"با بررسی این مورد، تمام فضاهای کاری بعدی از این ارائه دهنده ایمیل برای ارسال ایمیل استفاده خواهند کرد. برای محصولاتی که به‌عنوان سرویس آنلاین اجرا می‌شوند، معمولاً می‌خواهید که فضای کاری والد سرور ایمیل را پیکربندی کند. شما ممکن است علامت این را در محصولات بزرگ‌تر که به صورت جهانی اجرا می‌شوند، بردارید و هر فضای کاری باید فضاهای فرعی و پیکربندی ایمیل خود را داشته باشد.",config:"تنظیم تیم",configurateWorkspaceNotification:"سرویس های اطلاع رسانی را پیکربندی کنید",confirmEmailSender:"ثبت نام کاربر ایمیل حساب را تایید کنید",createNewWorkspace:"فضای کاری جدید",customizedTemplate:"ویرایش قالب",disablePublicSignup:"غیر فعال کردن ثبت نام ها",disablePublicSignupHint:"با انتخاب این گزینه هیچ کس نمی تواند به این تیم یا زیر مجموعه های این تیم با فرم ثبت نام آنلاین به صورت خودکار عضو شود.",editWorkspae:"ویرایش فضای کاری",emailSendingConfig:"تنظیمات ارسال ایمیل",emailSendingConfigHint:"نحوه ارسال ایمیل ها و قالب های آنها و ارسال کننده ها را کنترل کنید.",emailSendingConfiguration:"پیکربندی ارسال ایمیل",emailSendingConfigurationHint:"نحوه ارسال ایمیل های سیستمی را کنترل کنید، پیام را سفارشی کنید و غیره.",forceEmailConfigToSubWorkspaces:"استفاده از این تنظیمات برای تیم های زیر مجموعه اجباری باشد",forceEmailConfigToSubWorkspacesHint:"با انتخاب این گزینه، همه تیم های زیر مجموعه باید از همین قالب ها برای ارسال ایمیل استفاده کنند. اطلاعات مختص به این تیم را در این قالب ها قرار ندهید.",forceSubWorkspaceUseConfig:"فضاهای کاری فرعی را مجبور کنید از این پیکربندی ارائه دهنده استفاده کنند",forgetPasswordSender:"دستورالعمل های رمز عبور را فراموش کنید",generalMailProvider:"سرویس اصلی ارسال ایمیل",invite:{createInvitation:"ایجاد دعوت نامه",editInvitation:"ویرایش دعوت نامه",email:"آدرس ایمیل",emailHint:"آدرس ایمیل دعوت کننده، آنها پیوند را با استفاده از این ایمیل دریافت خواهند کرد",firstName:"نام کوچک",firstNameHint:"نام دعوت شده را بنویسید",forcePassport:"کاربر را مجبور کنید فقط با ایمیل یا شماره تلفن تعریف شده ثبت نام کند یا بپیوندد",lastName:"نام خانوادگی",lastNameHint:"نام خانوادگی دعوت شده را بنویسید",name:"نام",phoneNumber:"شماره تلفن",phoneNumberHint:"شماره تلفن دعوت شوندگان، اگر شماره آنها را نیز ارائه دهید، از طریق پیامک دعوتنامه دریافت خواهند کرد",role:"نقش",roleHint:"نقش(هایی) را که می خواهید به کاربر هنگام پیوستن به فضای کاری بدهید، انتخاب کنید. این را می توان بعدا نیز تغییر داد.",roleName:"نام نقش"},inviteToWorkspace:"دعوت به فضای کاری",joinKeyWorkspace:"فضای کار",joinKeyWorkspaceHint:"فضای کاری که برای عموم در دسترس خواهد بود",mailServerConfiguration:"پیکربندی سرور ایمیل",name:"نام",notification:{dialogTitle:"قالب نامه را ویرایش کنید"},publicSignup:"ثبت نام آنلاین و عمومی",publicSignupHint:"این نرم افزار به شما اجازه کنترل نحوه ارسال ایمیل و پیامک، و همچنین نحوه عضو گیری آنلاین را میدهد. در این قسمت میتوانید عضو شدن افراد و ساختن تیم های جدید را کنترل کنید",resetToDefault:"تنظیم مجدد به حالت پیش فرض",role:"نقش",roleHint:"نقش",sender:"فرستنده",sidetitle:"فضاهای کاری",slug:"اسلاگ",title:"عنوان",type:"تایپ کنید",workspaceName:"نام فضای کاری",workspaceNameHint:"نام فضای کاری را وارد کنید",workspaceTypeSlug:"آدرس اسلاگ",workspaceTypeSlugHint:"آدرسی که به صورت عمومی در دسترس خواهد بود و وقتی کسی از این طریق ثبت نام کند رول مشخصی دریافت میکند.",workspaceTypeTitle:"عنوان",workspaceTypeTitleHint:"عنوان ورک اسپیس"}},CU={en:WX,fa:rle};function At(){const{locale:e}=sr();return!e||!CU[e]?WX:CU[e]}var pS={exports:{}};/** + flat mode`,widgets:"ویدجت ها"},widgets:{noItems:"هیچ ویدجتی در این صفحه وجود ندارد."},wokspaces:{body:"بدن",cascadeNotificationConfig:"پیکربندی اعلان آبشار در فضاهای کاری فرعی",cascadeNotificationConfigHint:"با بررسی این مورد، تمام فضاهای کاری بعدی از این ارائه دهنده ایمیل برای ارسال ایمیل استفاده خواهند کرد. برای محصولاتی که به‌عنوان سرویس آنلاین اجرا می‌شوند، معمولاً می‌خواهید که فضای کاری والد سرور ایمیل را پیکربندی کند. شما ممکن است علامت این را در محصولات بزرگ‌تر که به صورت جهانی اجرا می‌شوند، بردارید و هر فضای کاری باید فضاهای فرعی و پیکربندی ایمیل خود را داشته باشد.",config:"تنظیم تیم",configurateWorkspaceNotification:"سرویس های اطلاع رسانی را پیکربندی کنید",confirmEmailSender:"ثبت نام کاربر ایمیل حساب را تایید کنید",createNewWorkspace:"فضای کاری جدید",customizedTemplate:"ویرایش قالب",disablePublicSignup:"غیر فعال کردن ثبت نام ها",disablePublicSignupHint:"با انتخاب این گزینه هیچ کس نمی تواند به این تیم یا زیر مجموعه های این تیم با فرم ثبت نام آنلاین به صورت خودکار عضو شود.",editWorkspae:"ویرایش فضای کاری",emailSendingConfig:"تنظیمات ارسال ایمیل",emailSendingConfigHint:"نحوه ارسال ایمیل ها و قالب های آنها و ارسال کننده ها را کنترل کنید.",emailSendingConfiguration:"پیکربندی ارسال ایمیل",emailSendingConfigurationHint:"نحوه ارسال ایمیل های سیستمی را کنترل کنید، پیام را سفارشی کنید و غیره.",forceEmailConfigToSubWorkspaces:"استفاده از این تنظیمات برای تیم های زیر مجموعه اجباری باشد",forceEmailConfigToSubWorkspacesHint:"با انتخاب این گزینه، همه تیم های زیر مجموعه باید از همین قالب ها برای ارسال ایمیل استفاده کنند. اطلاعات مختص به این تیم را در این قالب ها قرار ندهید.",forceSubWorkspaceUseConfig:"فضاهای کاری فرعی را مجبور کنید از این پیکربندی ارائه دهنده استفاده کنند",forgetPasswordSender:"دستورالعمل های رمز عبور را فراموش کنید",generalMailProvider:"سرویس اصلی ارسال ایمیل",invite:{createInvitation:"ایجاد دعوت نامه",editInvitation:"ویرایش دعوت نامه",email:"آدرس ایمیل",emailHint:"آدرس ایمیل دعوت کننده، آنها پیوند را با استفاده از این ایمیل دریافت خواهند کرد",firstName:"نام کوچک",firstNameHint:"نام دعوت شده را بنویسید",forcePassport:"کاربر را مجبور کنید فقط با ایمیل یا شماره تلفن تعریف شده ثبت نام کند یا بپیوندد",lastName:"نام خانوادگی",lastNameHint:"نام خانوادگی دعوت شده را بنویسید",name:"نام",phoneNumber:"شماره تلفن",phoneNumberHint:"شماره تلفن دعوت شوندگان، اگر شماره آنها را نیز ارائه دهید، از طریق پیامک دعوتنامه دریافت خواهند کرد",role:"نقش",roleHint:"نقش(هایی) را که می خواهید به کاربر هنگام پیوستن به فضای کاری بدهید، انتخاب کنید. این را می توان بعدا نیز تغییر داد.",roleName:"نام نقش"},inviteToWorkspace:"دعوت به فضای کاری",joinKeyWorkspace:"فضای کار",joinKeyWorkspaceHint:"فضای کاری که برای عموم در دسترس خواهد بود",mailServerConfiguration:"پیکربندی سرور ایمیل",name:"نام",notification:{dialogTitle:"قالب نامه را ویرایش کنید"},publicSignup:"ثبت نام آنلاین و عمومی",publicSignupHint:"این نرم افزار به شما اجازه کنترل نحوه ارسال ایمیل و پیامک، و همچنین نحوه عضو گیری آنلاین را میدهد. در این قسمت میتوانید عضو شدن افراد و ساختن تیم های جدید را کنترل کنید",resetToDefault:"تنظیم مجدد به حالت پیش فرض",role:"نقش",roleHint:"نقش",sender:"فرستنده",sidetitle:"فضاهای کاری",slug:"اسلاگ",title:"عنوان",type:"تایپ کنید",workspaceName:"نام فضای کاری",workspaceNameHint:"نام فضای کاری را وارد کنید",workspaceTypeSlug:"آدرس اسلاگ",workspaceTypeSlugHint:"آدرسی که به صورت عمومی در دسترس خواهد بود و وقتی کسی از این طریق ثبت نام کند رول مشخصی دریافت میکند.",workspaceTypeTitle:"عنوان",workspaceTypeTitleHint:"عنوان ورک اسپیس"}},JU={en:gQ,fa:Ple};function At(){const{locale:e}=sr();return!e||!JU[e]?gQ:JU[e]}var D1={exports:{}};/** * @license * Lodash * Copyright OpenJS Foundation and other contributors * Released under MIT license * Based on Underscore.js 1.8.3 * Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors - */var ale=pS.exports,kU;function ile(){return kU||(kU=1,(function(e,t){(function(){var n,r="4.17.21",a=200,i="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",o="Expected a function",l="Invalid `variable` option passed into `_.template`",u="__lodash_hash_undefined__",d=500,f="__lodash_placeholder__",g=1,y=2,h=4,v=1,E=2,T=1,C=2,k=4,_=8,A=16,P=32,N=64,I=128,L=256,j=512,z=30,Q="...",le=800,re=16,ge=1,me=2,W=3,G=1/0,q=9007199254740991,ce=17976931348623157e292,H=NaN,Y=4294967295,ie=Y-1,J=Y>>>1,ee=[["ary",I],["bind",T],["bindKey",C],["curry",_],["curryRight",A],["flip",j],["partial",P],["partialRight",N],["rearg",L]],Z="[object Arguments]",ue="[object Array]",ke="[object AsyncFunction]",fe="[object Boolean]",xe="[object Date]",Ie="[object DOMException]",qe="[object Error]",tt="[object Function]",Ge="[object GeneratorFunction]",at="[object Map]",Et="[object Number]",kt="[object Null]",xt="[object Object]",Rt="[object Promise]",cn="[object Proxy]",qt="[object RegExp]",Wt="[object Set]",Oe="[object String]",dt="[object Symbol]",ft="[object Undefined]",ut="[object WeakMap]",Nt="[object WeakSet]",U="[object ArrayBuffer]",D="[object DataView]",F="[object Float32Array]",ae="[object Float64Array]",Te="[object Int8Array]",Fe="[object Int16Array]",We="[object Int32Array]",Tt="[object Uint8Array]",Mt="[object Uint8ClampedArray]",be="[object Uint16Array]",Ee="[object Uint32Array]",gt=/\b__p \+= '';/g,Lt=/\b(__p \+=) '' \+/g,_t=/(__e\(.*?\)|\b__t\)) \+\n'';/g,Ut=/&(?:amp|lt|gt|quot|#39);/g,_n=/[&<>"']/g,gn=RegExp(Ut.source),ln=RegExp(_n.source),Bn=/<%-([\s\S]+?)%>/g,sa=/<%([\s\S]+?)%>/g,Qa=/<%=([\s\S]+?)%>/g,ma=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,vn=/^\w*$/,_a=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Wo=/[\\^$.*+?()[\]{}|]/g,Oa=RegExp(Wo.source),Ra=/^\s+/,zo=/\s/,we=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,ve=/\{\n\/\* \[wrapped with (.+)\] \*/,$e=/,? & /,ye=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,Se=/[()=,{}\[\]\/\s]/,ne=/\\(\\)?/g,Me=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,Qe=/\w*$/,ot=/^[-+]0x[0-9a-f]+$/i,Bt=/^0b[01]+$/i,yn=/^\[object .+?Constructor\]$/,an=/^0o[0-7]+$/i,Dn=/^(?:0|[1-9]\d*)$/,En=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,Rr=/($^)/,Pr=/['\n\r\u2028\u2029\\]/g,lr="\\ud800-\\udfff",Ks="\\u0300-\\u036f",ty="\\ufe20-\\ufe2f",Ll="\\u20d0-\\u20ff",lo=Ks+ty+Ll,oi="\\u2700-\\u27bf",uf="a-z\\xdf-\\xf6\\xf8-\\xff",ny="\\xac\\xb1\\xd7\\xf7",Mh="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",D0="\\u2000-\\u206f",$c=" \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",Hi="A-Z\\xc0-\\xd6\\xd8-\\xde",qo="\\ufe0e\\ufe0f",Si=ny+Mh+D0+$c,cf="['’]",Nu="["+lr+"]",Xs="["+Si+"]",Qs="["+lo+"]",Lc="\\d+",$0="["+oi+"]",Ei="["+uf+"]",df="[^"+lr+Si+Lc+oi+uf+Hi+"]",ff="\\ud83c[\\udffb-\\udfff]",Ih="(?:"+Qs+"|"+ff+")",Fl="[^"+lr+"]",pf="(?:\\ud83c[\\udde6-\\uddff]){2}",hf="[\\ud800-\\udbff][\\udc00-\\udfff]",uo="["+Hi+"]",mf="\\u200d",gf="(?:"+Ei+"|"+df+")",vf="(?:"+uo+"|"+df+")",Mu="(?:"+cf+"(?:d|ll|m|re|s|t|ve))?",ry="(?:"+cf+"(?:D|LL|M|RE|S|T|VE))?",Dh=Ih+"?",Fc="["+qo+"]?",$h="(?:"+mf+"(?:"+[Fl,pf,hf].join("|")+")"+Fc+Dh+")*",Iu="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",jl="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",Ul=Fc+Dh+$h,ay="(?:"+[$0,pf,hf].join("|")+")"+Ul,Lh="(?:"+[Fl+Qs+"?",Qs,pf,hf,Nu].join("|")+")",Fh=RegExp(cf,"g"),co=RegExp(Qs,"g"),Bl=RegExp(ff+"(?="+ff+")|"+Lh+Ul,"g"),jc=RegExp([uo+"?"+Ei+"+"+Mu+"(?="+[Xs,uo,"$"].join("|")+")",vf+"+"+ry+"(?="+[Xs,uo+gf,"$"].join("|")+")",uo+"?"+gf+"+"+Mu,uo+"+"+ry,jl,Iu,Lc,ay].join("|"),"g"),ds=RegExp("["+mf+lr+lo+qo+"]"),Du=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,Js=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],iy=-1,ar={};ar[F]=ar[ae]=ar[Te]=ar[Fe]=ar[We]=ar[Tt]=ar[Mt]=ar[be]=ar[Ee]=!0,ar[Z]=ar[ue]=ar[U]=ar[fe]=ar[D]=ar[xe]=ar[qe]=ar[tt]=ar[at]=ar[Et]=ar[xt]=ar[qt]=ar[Wt]=ar[Oe]=ar[ut]=!1;var ir={};ir[Z]=ir[ue]=ir[U]=ir[D]=ir[fe]=ir[xe]=ir[F]=ir[ae]=ir[Te]=ir[Fe]=ir[We]=ir[at]=ir[Et]=ir[xt]=ir[qt]=ir[Wt]=ir[Oe]=ir[dt]=ir[Tt]=ir[Mt]=ir[be]=ir[Ee]=!0,ir[qe]=ir[tt]=ir[ut]=!1;var oy={À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",Ç:"C",ç:"c",Ð:"D",ð:"d",È:"E",É:"E",Ê:"E",Ë:"E",è:"e",é:"e",ê:"e",ë:"e",Ì:"I",Í:"I",Î:"I",Ï:"I",ì:"i",í:"i",î:"i",ï:"i",Ñ:"N",ñ:"n",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ù:"U",Ú:"U",Û:"U",Ü:"U",ù:"u",ú:"u",û:"u",ü:"u",Ý:"Y",ý:"y",ÿ:"y",Æ:"Ae",æ:"ae",Þ:"Th",þ:"th",ß:"ss",Ā:"A",Ă:"A",Ą:"A",ā:"a",ă:"a",ą:"a",Ć:"C",Ĉ:"C",Ċ:"C",Č:"C",ć:"c",ĉ:"c",ċ:"c",č:"c",Ď:"D",Đ:"D",ď:"d",đ:"d",Ē:"E",Ĕ:"E",Ė:"E",Ę:"E",Ě:"E",ē:"e",ĕ:"e",ė:"e",ę:"e",ě:"e",Ĝ:"G",Ğ:"G",Ġ:"G",Ģ:"G",ĝ:"g",ğ:"g",ġ:"g",ģ:"g",Ĥ:"H",Ħ:"H",ĥ:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Į:"I",İ:"I",ĩ:"i",ī:"i",ĭ:"i",į:"i",ı:"i",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",ĸ:"k",Ĺ:"L",Ļ:"L",Ľ:"L",Ŀ:"L",Ł:"L",ĺ:"l",ļ:"l",ľ:"l",ŀ:"l",ł:"l",Ń:"N",Ņ:"N",Ň:"N",Ŋ:"N",ń:"n",ņ:"n",ň:"n",ŋ:"n",Ō:"O",Ŏ:"O",Ő:"O",ō:"o",ŏ:"o",ő:"o",Ŕ:"R",Ŗ:"R",Ř:"R",ŕ:"r",ŗ:"r",ř:"r",Ś:"S",Ŝ:"S",Ş:"S",Š:"S",ś:"s",ŝ:"s",ş:"s",š:"s",Ţ:"T",Ť:"T",Ŧ:"T",ţ:"t",ť:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Ů:"U",Ű:"U",Ų:"U",ũ:"u",ū:"u",ŭ:"u",ů:"u",ű:"u",ų:"u",Ŵ:"W",ŵ:"w",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Ź:"Z",Ż:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",IJ:"IJ",ij:"ij",Œ:"Oe",œ:"oe",ʼn:"'n",ſ:"s"},si={"&":"&","<":"<",">":">",'"':""","'":"'"},fo={"&":"&","<":"<",">":">",""":'"',"'":"'"},yf={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},Zs=parseFloat,jh=parseInt,nt=typeof _l=="object"&&_l&&_l.Object===Object&&_l,pt=typeof self=="object"&&self&&self.Object===Object&&self,bt=nt||pt||Function("return this")(),zt=t&&!t.nodeType&&t,Sn=zt&&!0&&e&&!e.nodeType&&e,ur=Sn&&Sn.exports===zt,Ar=ur&&nt.process,Jn=(function(){try{var Ae=Sn&&Sn.require&&Sn.require("util").types;return Ae||Ar&&Ar.binding&&Ar.binding("util")}catch{}})(),Pa=Jn&&Jn.isArrayBuffer,Ja=Jn&&Jn.isDate,Wl=Jn&&Jn.isMap,sy=Jn&&Jn.isRegExp,bf=Jn&&Jn.isSet,wf=Jn&&Jn.isTypedArray;function li(Ae,He,Be){switch(Be.length){case 0:return Ae.call(He);case 1:return Ae.call(He,Be[0]);case 2:return Ae.call(He,Be[0],Be[1]);case 3:return Ae.call(He,Be[0],Be[1],Be[2])}return Ae.apply(He,Be)}function wO(Ae,He,Be,It){for(var on=-1,Wn=Ae==null?0:Ae.length;++on-1}function L0(Ae,He,Be){for(var It=-1,on=Ae==null?0:Ae.length;++It-1;);return Be}function kf(Ae,He){for(var Be=Ae.length;Be--&&Sf(He,Ae[Be],0)>-1;);return Be}function _O(Ae,He){for(var Be=Ae.length,It=0;Be--;)Ae[Be]===He&&++It;return It}var hy=dy(oy),mT=dy(si);function gT(Ae){return"\\"+yf[Ae]}function W0(Ae,He){return Ae==null?n:Ae[He]}function Lu(Ae){return ds.test(Ae)}function vT(Ae){return Du.test(Ae)}function yT(Ae){for(var He,Be=[];!(He=Ae.next()).done;)Be.push(He.value);return Be}function my(Ae){var He=-1,Be=Array(Ae.size);return Ae.forEach(function(It,on){Be[++He]=[on,It]}),Be}function bT(Ae,He){return function(Be){return Ae(He(Be))}}function Fu(Ae,He){for(var Be=-1,It=Ae.length,on=0,Wn=[];++Be-1}function MO(m,b){var O=this.__data__,$=Kc(O,m);return $<0?(++this.size,O.push([m,b])):O[$][1]=b,this}ll.prototype.clear=Wu,ll.prototype.delete=Ql,ll.prototype.get=Aa,ll.prototype.has=Cy,ll.prototype.set=MO;function Jl(m){var b=-1,O=m==null?0:m.length;for(this.clear();++b=b?m:b)),m}function er(m,b,O,$,V,te){var pe,Ce=b&g,De=b&y,Je=b&h;if(O&&(pe=V?O(m,$,V,te):O(m)),pe!==n)return pe;if(!Ur(m))return m;var et=bn(m);if(et){if(pe=ed(m),!Ce)return xi(m,pe)}else{var ct=va(m),Ct=ct==tt||ct==Ge;if(ic(m))return yw(m,Ce);if(ct==xt||ct==Z||Ct&&!V){if(pe=De||Ct?{}:Yi(m),!Ce)return De?rm(m,ky(pe,m)):GT(m,qu(pe,m))}else{if(!ir[ct])return V?m:{};pe=KT(m,ct,Ce)}}te||(te=new ms);var Vt=te.get(m);if(Vt)return Vt;te.set(m,pe),vl(m)?m.forEach(function(fn){pe.add(er(fn,b,O,fn,m,te))}):MC(m)&&m.forEach(function(fn,Hn){pe.set(Hn,er(fn,b,O,Hn,m,te))});var dn=Je?De?om:fl:De?Ri:Ia,Ln=et?n:dn(m);return Ho(Ln||m,function(fn,Hn){Ln&&(Hn=fn,fn=m[Hn]),Fr(pe,Hn,er(fn,b,O,Hn,m,te))}),pe}function ew(m){var b=Ia(m);return function(O){return xy(O,m,b)}}function xy(m,b,O){var $=O.length;if(m==null)return!$;for(m=Er(m);$--;){var V=O[$],te=b[V],pe=m[V];if(pe===n&&!(V in m)||!te(pe))return!1}return!0}function tw(m,b,O){if(typeof m!="function")throw new mo(o);return di(function(){m.apply(n,O)},b)}function Mf(m,b,O,$){var V=-1,te=ly,pe=!0,Ce=m.length,De=[],Je=b.length;if(!Ce)return De;O&&(b=Lr(b,po(O))),$?(te=L0,pe=!1):b.length>=a&&(te=Tf,pe=!1,b=new Zl(b));e:for(;++VV?0:V+O),$=$===n||$>V?V:xn($),$<0&&($+=V),$=O>$?0:m1($);O<$;)m[O++]=b;return m}function ua(m,b){var O=[];return Vu(m,function($,V,te){b($,V,te)&&O.push($)}),O}function ga(m,b,O,$,V){var te=-1,pe=m.length;for(O||(O=QT),V||(V=[]);++te0&&O(Ce)?b>1?ga(Ce,b-1,O,$,V):zl(V,Ce):$||(V[V.length]=Ce)}return V}var Qc=Tw(),Kh=Tw(!0);function Zo(m,b){return m&&Qc(m,b,Ia)}function gs(m,b){return m&&Kh(m,b,Ia)}function Jc(m,b){return el(b,function(O){return cu(m[O])})}function eu(m,b){b=nu(b,m);for(var O=0,$=b.length;m!=null&&O<$;)m=m[_i(b[O++])];return O&&O==$?m:n}function Oy(m,b,O){var $=b(m);return bn(m)?$:zl($,O(m))}function ui(m){return m==null?m===n?ft:kt:al&&al in Er(m)?um(m):wo(m)}function Ry(m,b){return m>b}function AT(m,b){return m!=null&&cr.call(m,b)}function NT(m,b){return m!=null&&b in Er(m)}function MT(m,b,O){return m>=pn(b,O)&&m=120&&et.length>=120)?new Zl(pe&&et):n}et=m[0];var ct=-1,Ct=Ce[0];e:for(;++ct-1;)Ce!==m&&Ci.call(Ce,De,1),Ci.call(m,De,1);return m}function fw(m,b){for(var O=m?b.length:0,$=O-1;O--;){var V=b[O];if(O==$||V!==te){var te=V;Ts(V)?Ci.call(m,V,1):ul(m,V)}}return m}function My(m,b){return m+Qo(wy()*(b-m+1))}function LO(m,b,O,$){for(var V=-1,te=zn(Xo((b-m)/(O||1)),0),pe=Be(te);te--;)pe[$?te:++V]=m,m+=O;return pe}function Zh(m,b){var O="";if(!m||b<1||b>q)return O;do b%2&&(O+=m),b=Qo(b/2),b&&(m+=m);while(b);return O}function On(m,b){return So(pl(m,b,or),m+"")}function zT(m){return Z0(_o(m))}function pw(m,b){var O=_o(m);return cm(O,Xc(b,0,O.length))}function Ff(m,b,O,$){if(!Ur(m))return m;b=nu(b,m);for(var V=-1,te=b.length,pe=te-1,Ce=m;Ce!=null&&++VV?0:V+b),O=O>V?V:O,O<0&&(O+=V),V=b>O?0:O-b>>>0,b>>>=0;for(var te=Be(V);++$>>1,pe=m[te];pe!==null&&!xo(pe)&&(O?pe<=b:pe=a){var Je=b?null:Qu(m);if(Je)return gy(Je);pe=!1,V=Tf,De=new Zl}else De=b?[]:Ce;e:for(;++$=$?m:yo(m,b,O)}var tm=Yo||function(m){return bt.clearTimeout(m)};function yw(m,b){if(b)return m.slice();var O=m.length,$=V0?V0(O):new m.constructor(O);return m.copy($),$}function nm(m){var b=new m.constructor(m.byteLength);return new ps(b).set(new ps(m)),b}function HT(m,b){var O=b?nm(m.buffer):m.buffer;return new m.constructor(O,m.byteOffset,m.byteLength)}function VT(m){var b=new m.constructor(m.source,Qe.exec(m));return b.lastIndex=m.lastIndex,b}function UO(m){return Kl?Er(Kl.call(m)):{}}function bw(m,b){var O=b?nm(m.buffer):m.buffer;return new m.constructor(O,m.byteOffset,m.length)}function Ma(m,b){if(m!==b){var O=m!==n,$=m===null,V=m===m,te=xo(m),pe=b!==n,Ce=b===null,De=b===b,Je=xo(b);if(!Ce&&!Je&&!te&&m>b||te&&pe&&De&&!Ce&&!Je||$&&pe&&De||!O&&De||!V)return 1;if(!$&&!te&&!Je&&m=Ce)return De;var Je=O[$];return De*(Je=="desc"?-1:1)}}return m.index-b.index}function ww(m,b,O,$){for(var V=-1,te=m.length,pe=O.length,Ce=-1,De=b.length,Je=zn(te-pe,0),et=Be(De+Je),ct=!$;++Ce1?O[V-1]:n,pe=V>2?O[2]:n;for(te=m.length>3&&typeof te=="function"?(V--,te):n,pe&&ei(O[0],O[1],pe)&&(te=V<3?n:te,V=1),b=Er(b);++$-1?V[te?b[pe]:pe]:n}}function Fy(m){return dl(function(b){var O=b.length,$=O,V=go.prototype.thru;for(m&&b.reverse();$--;){var te=b[$];if(typeof te!="function")throw new mo(o);if(V&&!pe&&Ss(te)=="wrapper")var pe=new go([],!0)}for($=pe?$:O;++$1&&Zn.reverse(),et&&DeCe))return!1;var Je=te.get(m),et=te.get(b);if(Je&&et)return Je==b&&et==m;var ct=-1,Ct=!0,Vt=O&E?new Zl:n;for(te.set(m,b),te.set(b,m);++ct1?"& ":"")+b[$],b=b.join(O>2?", ":" "),m.replace(we,`{ + */var Ale=D1.exports,ZU;function Nle(){return ZU||(ZU=1,(function(e,t){(function(){var n,r="4.17.21",a=200,i="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",o="Expected a function",l="Invalid `variable` option passed into `_.template`",u="__lodash_hash_undefined__",d=500,f="__lodash_placeholder__",g=1,y=2,h=4,v=1,E=2,T=1,C=2,k=4,_=8,A=16,P=32,N=64,I=128,L=256,j=512,z=30,Q="...",ue=800,re=16,me=1,ge=2,W=3,G=1/0,q=9007199254740991,ce=17976931348623157e292,H=NaN,K=4294967295,ae=K-1,J=K>>>1,ee=[["ary",I],["bind",T],["bindKey",C],["curry",_],["curryRight",A],["flip",j],["partial",P],["partialRight",N],["rearg",L]],Z="[object Arguments]",le="[object Array]",ke="[object AsyncFunction]",fe="[object Boolean]",xe="[object Date]",Ie="[object DOMException]",qe="[object Error]",tt="[object Function]",Ge="[object GeneratorFunction]",rt="[object Map]",St="[object Number]",kt="[object Null]",xt="[object Object]",Rt="[object Promise]",cn="[object Proxy]",qt="[object RegExp]",Wt="[object Set]",Oe="[object String]",dt="[object Symbol]",ft="[object Undefined]",ut="[object WeakMap]",Nt="[object WeakSet]",U="[object ArrayBuffer]",D="[object DataView]",F="[object Float32Array]",ie="[object Float64Array]",Te="[object Int8Array]",Fe="[object Int16Array]",We="[object Int32Array]",Et="[object Uint8Array]",Mt="[object Uint8ClampedArray]",be="[object Uint16Array]",Ee="[object Uint32Array]",gt=/\b__p \+= '';/g,Lt=/\b(__p \+=) '' \+/g,_t=/(__e\(.*?\)|\b__t\)) \+\n'';/g,Ut=/&(?:amp|lt|gt|quot|#39);/g,_n=/[&<>"']/g,gn=RegExp(Ut.source),ln=RegExp(_n.source),Bn=/<%-([\s\S]+?)%>/g,la=/<%([\s\S]+?)%>/g,Ja=/<%=([\s\S]+?)%>/g,ga=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,vn=/^\w*$/,Ra=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Ko=/[\\^$.*+?()[\]{}|]/g,Pa=RegExp(Ko.source),Aa=/^\s+/,Xo=/\s/,we=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,ve=/\{\n\/\* \[wrapped with (.+)\] \*/,$e=/,? & /,ye=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,Se=/[()=,{}\[\]\/\s]/,ne=/\\(\\)?/g,Me=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,Qe=/\w*$/,ot=/^[-+]0x[0-9a-f]+$/i,Bt=/^0b[01]+$/i,yn=/^\[object .+?Constructor\]$/,an=/^0o[0-7]+$/i,Dn=/^(?:0|[1-9]\d*)$/,En=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,Rr=/($^)/,Pr=/['\n\r\u2028\u2029\\]/g,lr="\\ud800-\\udfff",Qs="\\u0300-\\u036f",Ty="\\ufe20-\\ufe2f",Ul="\\u20d0-\\u20ff",fo=Qs+Ty+Ul,li="\\u2700-\\u27bf",gf="a-z\\xdf-\\xf6\\xf8-\\xff",Cy="\\xac\\xb1\\xd7\\xf7",qh="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",rw="\\u2000-\\u206f",Uc=" \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",Gi="A-Z\\xc0-\\xd6\\xd8-\\xde",Qo="\\ufe0e\\ufe0f",Ti=Cy+qh+rw+Uc,vf="['’]",Du="["+lr+"]",Js="["+Ti+"]",Zs="["+fo+"]",Bc="\\d+",aw="["+li+"]",Ci="["+gf+"]",yf="[^"+lr+Ti+Bc+li+gf+Gi+"]",bf="\\ud83c[\\udffb-\\udfff]",Hh="(?:"+Zs+"|"+bf+")",Bl="[^"+lr+"]",wf="(?:\\ud83c[\\udde6-\\uddff]){2}",Sf="[\\ud800-\\udbff][\\udc00-\\udfff]",po="["+Gi+"]",Ef="\\u200d",Tf="(?:"+Ci+"|"+yf+")",Cf="(?:"+po+"|"+yf+")",$u="(?:"+vf+"(?:d|ll|m|re|s|t|ve))?",ky="(?:"+vf+"(?:D|LL|M|RE|S|T|VE))?",Vh=Hh+"?",Wc="["+Qo+"]?",Gh="(?:"+Ef+"(?:"+[Bl,wf,Sf].join("|")+")"+Wc+Vh+")*",Lu="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",Wl="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",zl=Wc+Vh+Gh,xy="(?:"+[aw,wf,Sf].join("|")+")"+zl,Yh="(?:"+[Bl+Zs+"?",Zs,wf,Sf,Du].join("|")+")",Kh=RegExp(vf,"g"),ho=RegExp(Zs,"g"),ql=RegExp(bf+"(?="+bf+")|"+Yh+zl,"g"),zc=RegExp([po+"?"+Ci+"+"+$u+"(?="+[Js,po,"$"].join("|")+")",Cf+"+"+ky+"(?="+[Js,po+Tf,"$"].join("|")+")",po+"?"+Tf+"+"+$u,po+"+"+ky,Wl,Lu,Bc,xy].join("|"),"g"),vs=RegExp("["+Ef+lr+fo+Qo+"]"),Fu=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,el=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],_y=-1,ar={};ar[F]=ar[ie]=ar[Te]=ar[Fe]=ar[We]=ar[Et]=ar[Mt]=ar[be]=ar[Ee]=!0,ar[Z]=ar[le]=ar[U]=ar[fe]=ar[D]=ar[xe]=ar[qe]=ar[tt]=ar[rt]=ar[St]=ar[xt]=ar[qt]=ar[Wt]=ar[Oe]=ar[ut]=!1;var ir={};ir[Z]=ir[le]=ir[U]=ir[D]=ir[fe]=ir[xe]=ir[F]=ir[ie]=ir[Te]=ir[Fe]=ir[We]=ir[rt]=ir[St]=ir[xt]=ir[qt]=ir[Wt]=ir[Oe]=ir[dt]=ir[Et]=ir[Mt]=ir[be]=ir[Ee]=!0,ir[qe]=ir[tt]=ir[ut]=!1;var Oy={À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",Ç:"C",ç:"c",Ð:"D",ð:"d",È:"E",É:"E",Ê:"E",Ë:"E",è:"e",é:"e",ê:"e",ë:"e",Ì:"I",Í:"I",Î:"I",Ï:"I",ì:"i",í:"i",î:"i",ï:"i",Ñ:"N",ñ:"n",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ù:"U",Ú:"U",Û:"U",Ü:"U",ù:"u",ú:"u",û:"u",ü:"u",Ý:"Y",ý:"y",ÿ:"y",Æ:"Ae",æ:"ae",Þ:"Th",þ:"th",ß:"ss",Ā:"A",Ă:"A",Ą:"A",ā:"a",ă:"a",ą:"a",Ć:"C",Ĉ:"C",Ċ:"C",Č:"C",ć:"c",ĉ:"c",ċ:"c",č:"c",Ď:"D",Đ:"D",ď:"d",đ:"d",Ē:"E",Ĕ:"E",Ė:"E",Ę:"E",Ě:"E",ē:"e",ĕ:"e",ė:"e",ę:"e",ě:"e",Ĝ:"G",Ğ:"G",Ġ:"G",Ģ:"G",ĝ:"g",ğ:"g",ġ:"g",ģ:"g",Ĥ:"H",Ħ:"H",ĥ:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Į:"I",İ:"I",ĩ:"i",ī:"i",ĭ:"i",į:"i",ı:"i",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",ĸ:"k",Ĺ:"L",Ļ:"L",Ľ:"L",Ŀ:"L",Ł:"L",ĺ:"l",ļ:"l",ľ:"l",ŀ:"l",ł:"l",Ń:"N",Ņ:"N",Ň:"N",Ŋ:"N",ń:"n",ņ:"n",ň:"n",ŋ:"n",Ō:"O",Ŏ:"O",Ő:"O",ō:"o",ŏ:"o",ő:"o",Ŕ:"R",Ŗ:"R",Ř:"R",ŕ:"r",ŗ:"r",ř:"r",Ś:"S",Ŝ:"S",Ş:"S",Š:"S",ś:"s",ŝ:"s",ş:"s",š:"s",Ţ:"T",Ť:"T",Ŧ:"T",ţ:"t",ť:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Ů:"U",Ű:"U",Ų:"U",ũ:"u",ū:"u",ŭ:"u",ů:"u",ű:"u",ų:"u",Ŵ:"W",ŵ:"w",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Ź:"Z",Ż:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",IJ:"IJ",ij:"ij",Œ:"Oe",œ:"oe",ʼn:"'n",ſ:"s"},ui={"&":"&","<":"<",">":">",'"':""","'":"'"},mo={"&":"&","<":"<",">":">",""":'"',"'":"'"},kf={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},tl=parseFloat,Xh=parseInt,nt=typeof Pl=="object"&&Pl&&Pl.Object===Object&&Pl,pt=typeof self=="object"&&self&&self.Object===Object&&self,bt=nt||pt||Function("return this")(),zt=t&&!t.nodeType&&t,Sn=zt&&!0&&e&&!e.nodeType&&e,ur=Sn&&Sn.exports===zt,Ar=ur&&nt.process,Jn=(function(){try{var Ae=Sn&&Sn.require&&Sn.require("util").types;return Ae||Ar&&Ar.binding&&Ar.binding("util")}catch{}})(),Na=Jn&&Jn.isArrayBuffer,Za=Jn&&Jn.isDate,Hl=Jn&&Jn.isMap,Ry=Jn&&Jn.isRegExp,xf=Jn&&Jn.isSet,_f=Jn&&Jn.isTypedArray;function ci(Ae,He,Be){switch(Be.length){case 0:return Ae.call(He);case 1:return Ae.call(He,Be[0]);case 2:return Ae.call(He,Be[0],Be[1]);case 3:return Ae.call(He,Be[0],Be[1],Be[2])}return Ae.apply(He,Be)}function VO(Ae,He,Be,It){for(var on=-1,Wn=Ae==null?0:Ae.length;++on-1}function iw(Ae,He,Be){for(var It=-1,on=Ae==null?0:Ae.length;++It-1;);return Be}function Nf(Ae,He){for(var Be=Ae.length;Be--&&Of(He,Ae[Be],0)>-1;);return Be}function ZO(Ae,He){for(var Be=Ae.length,It=0;Be--;)Ae[Be]===He&&++It;return It}var $y=My(Oy),jT=My(ui);function UT(Ae){return"\\"+kf[Ae]}function cw(Ae,He){return Ae==null?n:Ae[He]}function Uu(Ae){return vs.test(Ae)}function BT(Ae){return Fu.test(Ae)}function WT(Ae){for(var He,Be=[];!(He=Ae.next()).done;)Be.push(He.value);return Be}function Ly(Ae){var He=-1,Be=Array(Ae.size);return Ae.forEach(function(It,on){Be[++He]=[on,It]}),Be}function zT(Ae,He){return function(Be){return Ae(He(Be))}}function Bu(Ae,He){for(var Be=-1,It=Ae.length,on=0,Wn=[];++Be-1}function iR(m,b){var O=this.__data__,$=Zc(O,m);return $<0?(++this.size,O.push([m,b])):O[$][1]=b,this}cl.prototype.clear=Hu,cl.prototype.delete=eu,cl.prototype.get=Ma,cl.prototype.has=Vy,cl.prototype.set=iR;function tu(m){var b=-1,O=m==null?0:m.length;for(this.clear();++b=b?m:b)),m}function er(m,b,O,$,V,te){var pe,Ce=b&g,De=b&y,Je=b&h;if(O&&(pe=V?O(m,$,V,te):O(m)),pe!==n)return pe;if(!Ur(m))return m;var et=bn(m);if(et){if(pe=ad(m),!Ce)return Oi(m,pe)}else{var ct=ya(m),Ct=ct==tt||ct==Ge;if(lc(m))return Uw(m,Ce);if(ct==xt||ct==Z||Ct&&!V){if(pe=De||Ct?{}:Xi(m),!Ce)return De?hm(m,Gy(pe,m)):vC(m,Gu(pe,m))}else{if(!ir[ct])return V?m:{};pe=bC(m,ct,Ce)}}te||(te=new Ss);var Vt=te.get(m);if(Vt)return Vt;te.set(m,pe),bl(m)?m.forEach(function(fn){pe.add(er(fn,b,O,fn,m,te))}):rk(m)&&m.forEach(function(fn,Hn){pe.set(Hn,er(fn,b,O,Hn,m,te))});var dn=Je?De?vm:hl:De?Ai:$a,Ln=et?n:dn(m);return Jo(Ln||m,function(fn,Hn){Ln&&(Hn=fn,fn=m[Hn]),Fr(pe,Hn,er(fn,b,O,Hn,m,te))}),pe}function Ew(m){var b=$a(m);return function(O){return Yy(O,m,b)}}function Yy(m,b,O){var $=O.length;if(m==null)return!$;for(m=Er(m);$--;){var V=O[$],te=b[V],pe=m[V];if(pe===n&&!(V in m)||!te(pe))return!1}return!0}function Tw(m,b,O){if(typeof m!="function")throw new yo(o);return pi(function(){m.apply(n,O)},b)}function Uf(m,b,O,$){var V=-1,te=Py,pe=!0,Ce=m.length,De=[],Je=b.length;if(!Ce)return De;O&&(b=Lr(b,go(O))),$?(te=iw,pe=!1):b.length>=a&&(te=Pf,pe=!1,b=new nu(b));e:for(;++VV?0:V+O),$=$===n||$>V?V:xn($),$<0&&($+=V),$=O>$?0:LS($);O<$;)m[O++]=b;return m}function ca(m,b){var O=[];return Ku(m,function($,V,te){b($,V,te)&&O.push($)}),O}function va(m,b,O,$,V){var te=-1,pe=m.length;for(O||(O=SC),V||(V=[]);++te0&&O(Ce)?b>1?va(Ce,b-1,O,$,V):Vl(V,Ce):$||(V[V.length]=Ce)}return V}var td=Hw(),om=Hw(!0);function os(m,b){return m&&td(m,b,$a)}function Es(m,b){return m&&om(m,b,$a)}function nd(m,b){return nl(b,function(O){return pu(m[O])})}function ru(m,b){b=iu(b,m);for(var O=0,$=b.length;m!=null&&O<$;)m=m[Ri(b[O++])];return O&&O==$?m:n}function Xy(m,b,O){var $=b(m);return bn(m)?$:Vl($,O(m))}function di(m){return m==null?m===n?ft:kt:ol&&ol in Er(m)?wm(m):To(m)}function Qy(m,b){return m>b}function tC(m,b){return m!=null&&cr.call(m,b)}function nC(m,b){return m!=null&&b in Er(m)}function rC(m,b,O){return m>=pn(b,O)&&m=120&&et.length>=120)?new nu(pe&&et):n}et=m[0];var ct=-1,Ct=Ce[0];e:for(;++ct-1;)Ce!==m&&xi.call(Ce,De,1),xi.call(m,De,1);return m}function Iw(m,b){for(var O=m?b.length:0,$=O-1;O--;){var V=b[O];if(O==$||V!==te){var te=V;Rs(V)?xi.call(m,V,1):dl(m,V)}}return m}function tb(m,b){return m+as(Wy()*(b-m+1))}function uR(m,b,O,$){for(var V=-1,te=zn(rs((b-m)/(O||1)),0),pe=Be(te);te--;)pe[$?te:++V]=m,m+=O;return pe}function cm(m,b){var O="";if(!m||b<1||b>q)return O;do b%2&&(O+=m),b=as(b/2),b&&(m+=m);while(b);return O}function On(m,b){return Co(ml(m,b,or),m+"")}function pC(m){return Sw(Po(m))}function Dw(m,b){var O=Po(m);return Sm(O,ed(b,0,O.length))}function Hf(m,b,O,$){if(!Ur(m))return m;b=iu(b,m);for(var V=-1,te=b.length,pe=te-1,Ce=m;Ce!=null&&++VV?0:V+b),O=O>V?V:O,O<0&&(O+=V),V=b>O?0:O-b>>>0,b>>>=0;for(var te=Be(V);++$>>1,pe=m[te];pe!==null&&!Ro(pe)&&(O?pe<=b:pe=a){var Je=b?null:ec(m);if(Je)return Fy(Je);pe=!1,V=Pf,De=new nu}else De=b?[]:Ce;e:for(;++$=$?m:So(m,b,O)}var fm=ts||function(m){return bt.clearTimeout(m)};function Uw(m,b){if(b)return m.slice();var O=m.length,$=hw?hw(O):new m.constructor(O);return m.copy($),$}function pm(m){var b=new m.constructor(m.byteLength);return new bs(b).set(new bs(m)),b}function mC(m,b){var O=b?pm(m.buffer):m.buffer;return new m.constructor(O,m.byteOffset,m.byteLength)}function gC(m){var b=new m.constructor(m.source,Qe.exec(m));return b.lastIndex=m.lastIndex,b}function fR(m){return Jl?Er(Jl.call(m)):{}}function Bw(m,b){var O=b?pm(m.buffer):m.buffer;return new m.constructor(O,m.byteOffset,m.length)}function Da(m,b){if(m!==b){var O=m!==n,$=m===null,V=m===m,te=Ro(m),pe=b!==n,Ce=b===null,De=b===b,Je=Ro(b);if(!Ce&&!Je&&!te&&m>b||te&&pe&&De&&!Ce&&!Je||$&&pe&&De||!O&&De||!V)return 1;if(!$&&!te&&!Je&&m=Ce)return De;var Je=O[$];return De*(Je=="desc"?-1:1)}}return m.index-b.index}function Ww(m,b,O,$){for(var V=-1,te=m.length,pe=O.length,Ce=-1,De=b.length,Je=zn(te-pe,0),et=Be(De+Je),ct=!$;++Ce1?O[V-1]:n,pe=V>2?O[2]:n;for(te=m.length>3&&typeof te=="function"?(V--,te):n,pe&&ti(O[0],O[1],pe)&&(te=V<3?n:te,V=1),b=Er(b);++$-1?V[te?b[pe]:pe]:n}}function ob(m){return pl(function(b){var O=b.length,$=O,V=bo.prototype.thru;for(m&&b.reverse();$--;){var te=b[$];if(typeof te!="function")throw new yo(o);if(V&&!pe&&_s(te)=="wrapper")var pe=new bo([],!0)}for($=pe?$:O;++$1&&Zn.reverse(),et&&DeCe))return!1;var Je=te.get(m),et=te.get(b);if(Je&&et)return Je==b&&et==m;var ct=-1,Ct=!0,Vt=O&E?new nu:n;for(te.set(m,b),te.set(b,m);++ct1?"& ":"")+b[$],b=b.join(O>2?", ":" "),m.replace(we,`{ /* [wrapped with `+b+`] */ -`)}function QT(m){return bn(m)||ac(m)||!!(zc&&m&&m[zc])}function Ts(m,b){var O=typeof m;return b=b??q,!!b&&(O=="number"||O!="symbol"&&Dn.test(m))&&m>-1&&m%1==0&&m0){if(++b>=le)return arguments[0]}else b=0;return m.apply(n,arguments)}}function cm(m,b){var O=-1,$=m.length,V=$-1;for(b=b===n?$:b;++O1?m[b-1]:n;return O=typeof O=="function"?(m.pop(),O):n,vm(m,O)});function fi(m){var b=K(m);return b.__chain__=!0,b}function hC(m,b){return b(m),m}function ep(m,b){return b(m)}var mC=dl(function(m){var b=m.length,O=b?m[0]:0,$=this.__wrapped__,V=function(te){return Hu(te,m)};return b>1||this.__actions__.length||!($ instanceof Tn)||!Ts(O)?this.thru(V):($=$.slice(O,+O+(b?1:0)),$.__actions__.push({func:ep,args:[V],thisArg:n}),new go($,this.__chain__).thru(function(te){return b&&!te.length&&te.push(n),te}))});function HO(){return fi(this)}function lu(){return new go(this.value(),this.__chain__)}function Ky(){this.__values__===n&&(this.__values__=$C(this.value()));var m=this.__index__>=this.__values__.length,b=m?n:this.__values__[this.__index__++];return{done:m,value:b}}function Vw(){return this}function tp(m){for(var b,O=this;O instanceof Hh;){var $=Hy(O);$.__index__=0,$.__values__=n,b?V.__wrapped__=$:b=$;var V=$;O=O.__wrapped__}return V.__wrapped__=m,b}function gC(){var m=this.__wrapped__;if(m instanceof Tn){var b=m;return this.__actions__.length&&(b=new Tn(this)),b=b.reverse(),b.__actions__.push({func:ep,args:[Tr],thisArg:n}),new go(b,this.__chain__)}return this.thru(Tr)}function vC(){return Iy(this.__wrapped__,this.__actions__)}var yC=zf(function(m,b,O){cr.call(m,O)?++m[O]:vo(m,O,1)});function Gw(m,b,O){var $=bn(m)?cT:nw;return O&&ei(m,b,O)&&(b=n),$(m,Qt(b,3))}function Yw(m,b){var O=bn(m)?el:ua;return O(m,Qt(b,3))}var VO=Ly(Dw),GO=Ly(sC);function YO(m,b){return ga(uu(m,b),1)}function bC(m,b){return ga(uu(m,b),G)}function wC(m,b,O){return O=O===n?1:xn(O),ga(uu(m,b),O)}function ad(m,b){var O=bn(m)?Ho:Vu;return O(m,Qt(b,3))}function wm(m,b){var O=bn(m)?SO:_y;return O(m,Qt(b,3))}var SC=zf(function(m,b,O){cr.call(m,O)?m[O].push(b):vo(m,O,[b])});function EC(m,b,O,$){m=kn(m)?m:_o(m),O=O&&!$?xn(O):0;var V=m.length;return O<0&&(O=zn(V+O,0)),ib(m)?O<=V&&m.indexOf(b,O)>-1:!!V&&Sf(m,b,O)>-1}var KO=On(function(m,b,O){var $=-1,V=typeof b=="function",te=kn(m)?Be(m.length):[];return Vu(m,function(pe){te[++$]=V?li(b,pe,O):Df(pe,b,O)}),te}),TC=zf(function(m,b,O){vo(m,O,b)});function uu(m,b){var O=bn(m)?Lr:Xh;return O(m,Qt(b,3))}function CC(m,b,O,$){return m==null?[]:(bn(b)||(b=b==null?[]:[b]),O=$?n:O,bn(O)||(O=O==null?[]:[O]),uw(m,b,O))}var _r=zf(function(m,b,O){m[O?0:1].push(b)},function(){return[[],[]]});function Kw(m,b,O){var $=bn(m)?F0:B0,V=arguments.length<3;return $(m,Qt(b,4),O,V,Vu)}function XO(m,b,O){var $=bn(m)?EO:B0,V=arguments.length<3;return $(m,Qt(b,4),O,V,_y)}function kC(m,b){var O=bn(m)?el:ua;return O(m,Qy(Qt(b,3)))}function QO(m){var b=bn(m)?Z0:zT;return b(m)}function JO(m,b,O){(O?ei(m,b,O):b===n)?b=1:b=xn(b);var $=bn(m)?zu:pw;return $(m,b)}function ZO(m){var b=bn(m)?An:jO;return b(m)}function Xy(m){if(m==null)return 0;if(kn(m))return ib(m)?tl(m):m.length;var b=va(m);return b==at||b==Wt?m.size:Gu(m).length}function np(m,b,O){var $=bn(m)?j0:em;return O&&ei(m,b,O)&&(b=n),$(m,Qt(b,3))}var Xw=On(function(m,b){if(m==null)return[];var O=b.length;return O>1&&ei(m,b[0],b[1])?b=[]:O>2&&ei(b[0],b[1],b[2])&&(b=[b[0]]),uw(m,ga(b,1),[])}),id=Ko||function(){return bt.Date.now()};function Qw(m,b){if(typeof b!="function")throw new mo(o);return m=xn(m),function(){if(--m<1)return b.apply(this,arguments)}}function rc(m,b,O){return b=O?n:b,b=m&&b==null?m.length:b,ws(m,I,n,n,n,n,b)}function Cs(m,b){var O;if(typeof b!="function")throw new mo(o);return m=xn(m),function(){return--m>0&&(O=b.apply(this,arguments)),m<=1&&(b=n),O}}var od=On(function(m,b,O){var $=T;if(O.length){var V=Fu(O,bo(od));$|=P}return ws(m,$,b,O,V)}),xC=On(function(m,b,O){var $=T|C;if(O.length){var V=Fu(O,bo(xC));$|=P}return ws(b,$,m,O,V)});function Jw(m,b,O){b=O?n:b;var $=ws(m,_,n,n,n,n,n,b);return $.placeholder=Jw.placeholder,$}function Zw(m,b,O){b=O?n:b;var $=ws(m,A,n,n,n,n,n,b);return $.placeholder=Zw.placeholder,$}function e1(m,b,O){var $,V,te,pe,Ce,De,Je=0,et=!1,ct=!1,Ct=!0;if(typeof m!="function")throw new mo(o);b=ni(b)||0,Ur(O)&&(et=!!O.leading,ct="maxWait"in O,te=ct?zn(ni(O.maxWait)||0,b):te,Ct="trailing"in O?!!O.trailing:Ct);function Vt(Da){var pu=$,sd=V;return $=V=n,Je=Da,pe=m.apply(sd,pu),pe}function dn(Da){return Je=Da,Ce=di(Hn,b),et?Vt(Da):pe}function Ln(Da){var pu=Da-De,sd=Da-Je,aU=b-pu;return ct?pn(aU,te-sd):aU}function fn(Da){var pu=Da-De,sd=Da-Je;return De===n||pu>=b||pu<0||ct&&sd>=te}function Hn(){var Da=id();if(fn(Da))return Zn(Da);Ce=di(Hn,Ln(Da))}function Zn(Da){return Ce=n,Ct&&$?Vt(Da):($=V=n,pe)}function _s(){Ce!==n&&tm(Ce),Je=0,$=De=V=Ce=n}function Oo(){return Ce===n?pe:Zn(id())}function Os(){var Da=id(),pu=fn(Da);if($=arguments,V=this,De=Da,pu){if(Ce===n)return dn(De);if(ct)return tm(Ce),Ce=di(Hn,b),Vt(De)}return Ce===n&&(Ce=di(Hn,b)),pe}return Os.cancel=_s,Os.flush=Oo,Os}var eR=On(function(m,b){return tw(m,1,b)}),t1=On(function(m,b,O){return tw(m,ni(b)||0,O)});function _C(m){return ws(m,j)}function Sm(m,b){if(typeof m!="function"||b!=null&&typeof b!="function")throw new mo(o);var O=function(){var $=arguments,V=b?b.apply(this,$):$[0],te=O.cache;if(te.has(V))return te.get(V);var pe=m.apply(this,$);return O.cache=te.set(V,pe)||te,pe};return O.cache=new(Sm.Cache||Jl),O}Sm.Cache=Jl;function Qy(m){if(typeof m!="function")throw new mo(o);return function(){var b=arguments;switch(b.length){case 0:return!m.call(this);case 1:return!m.call(this,b[0]);case 2:return!m.call(this,b[0],b[1]);case 3:return!m.call(this,b[0],b[1],b[2])}return!m.apply(this,b)}}function n1(m){return Cs(2,m)}var r1=qT(function(m,b){b=b.length==1&&bn(b[0])?Lr(b[0],po(Qt())):Lr(ga(b,1),po(Qt()));var O=b.length;return On(function($){for(var V=-1,te=pn($.length,O);++V=b}),ac=IT((function(){return arguments})())?IT:function(m){return ea(m)&&cr.call(m,"callee")&&!G0.call(m,"callee")},bn=Be.isArray,eb=Pa?po(Pa):DT;function kn(m){return m!=null&&nb(m.length)&&!cu(m)}function Hr(m){return ea(m)&&kn(m)}function ti(m){return m===!0||m===!1||ea(m)&&ui(m)==fe}var ic=CT||kR,l1=Ja?po(Ja):$T;function u1(m){return ea(m)&&m.nodeType===1&&!pi(m)}function tb(m){if(m==null)return!0;if(kn(m)&&(bn(m)||typeof m=="string"||typeof m.splice=="function"||ic(m)||xs(m)||ac(m)))return!m.length;var b=va(m);if(b==at||b==Wt)return!m.size;if(Jr(m))return!Gu(m).length;for(var O in m)if(cr.call(m,O))return!1;return!0}function AC(m,b){return $f(m,b)}function NC(m,b,O){O=typeof O=="function"?O:n;var $=O?O(m,b):n;return $===n?$f(m,b,n,O):!!$}function Cm(m){if(!ea(m))return!1;var b=ui(m);return b==qe||b==Ie||typeof m.message=="string"&&typeof m.name=="string"&&!pi(m)}function c1(m){return typeof m=="number"&&by(m)}function cu(m){if(!Ur(m))return!1;var b=ui(m);return b==tt||b==Ge||b==ke||b==cn}function d1(m){return typeof m=="number"&&m==xn(m)}function nb(m){return typeof m=="number"&&m>-1&&m%1==0&&m<=q}function Ur(m){var b=typeof m;return m!=null&&(b=="object"||b=="function")}function ea(m){return m!=null&&typeof m=="object"}var MC=Wl?po(Wl):LT;function f1(m,b){return m===b||Ay(m,b,lm(b))}function p1(m,b,O){return O=typeof O=="function"?O:n,Ay(m,b,lm(b),O)}function aR(m){return h1(m)&&m!=+m}function iR(m){if(JT(m))throw new on(i);return iw(m)}function ks(m){return m===null}function IC(m){return m==null}function h1(m){return typeof m=="number"||ea(m)&&ui(m)==Et}function pi(m){if(!ea(m)||ui(m)!=xt)return!1;var b=Bc(m);if(b===null)return!0;var O=cr.call(b,"constructor")&&b.constructor;return typeof O=="function"&&O instanceof O&&Bh.call(O)==_f}var rb=sy?po(sy):FT;function ab(m){return d1(m)&&m>=-q&&m<=q}var vl=bf?po(bf):jT;function ib(m){return typeof m=="string"||!bn(m)&&ea(m)&&ui(m)==Oe}function xo(m){return typeof m=="symbol"||ea(m)&&ui(m)==dt}var xs=wf?po(wf):$O;function DC(m){return m===n}function oR(m){return ea(m)&&va(m)==ut}function sR(m){return ea(m)&&ui(m)==Nt}var lR=Vf(Lf),uR=Vf(function(m,b){return m<=b});function $C(m){if(!m)return[];if(kn(m))return ib(m)?Vo(m):xi(m);if(rl&&m[rl])return yT(m[rl]());var b=va(m),O=b==at?my:b==Wt?gy:_o;return O(m)}function du(m){if(!m)return m===0?m:0;if(m=ni(m),m===G||m===-G){var b=m<0?-1:1;return b*ce}return m===m?m:0}function xn(m){var b=du(m),O=b%1;return b===b?O?b-O:b:0}function m1(m){return m?Xc(xn(m),0,Y):0}function ni(m){if(typeof m=="number")return m;if(xo(m))return H;if(Ur(m)){var b=typeof m.valueOf=="function"?m.valueOf():m;m=Ur(b)?b+"":b}if(typeof m!="string")return m===0?m:+m;m=hT(m);var O=Bt.test(m);return O||an.test(m)?jh(m.slice(2),O?2:8):ot.test(m)?H:+m}function ap(m){return vs(m,Ri(m))}function LC(m){return m?Xc(xn(m),-q,q):m===0?m:0}function fr(m){return m==null?"":Qr(m)}var ip=Zc(function(m,b){if(Jr(b)||kn(b)){vs(b,Ia(b),m);return}for(var O in b)cr.call(b,O)&&Fr(m,O,b[O])}),op=Zc(function(m,b){vs(b,Ri(b),m)}),km=Zc(function(m,b,O,$){vs(b,Ri(b),m,$)}),ob=Zc(function(m,b,O,$){vs(b,Ia(b),m,$)}),g1=dl(Hu);function v1(m,b){var O=Xl(m);return b==null?O:qu(O,b)}var sb=On(function(m,b){m=Er(m);var O=-1,$=b.length,V=$>2?b[2]:n;for(V&&ei(b[0],b[1],V)&&($=1);++O<$;)for(var te=b[O],pe=Ri(te),Ce=-1,De=pe.length;++Ce1),te}),vs(m,om(m),O),$&&(O=er(O,g|y|h,By));for(var V=b.length;V--;)ul(O,b[V]);return O});function gR(m,b){return ub(m,Qy(Qt(b)))}var S1=dl(function(m,b){return m==null?{}:cw(m,b)});function ub(m,b){if(m==null)return{};var O=Lr(om(m),function($){return[$]});return b=Qt(b),dw(m,O,function($,V){return b($,V[0])})}function cb(m,b,O){b=nu(b,m);var $=-1,V=b.length;for(V||(V=1,m=n);++$b){var $=m;m=b,b=$}if(O||m%1||b%1){var V=wy();return pn(m+V*(b-m+Zs("1e-"+((V+"").length-1))),b)}return My(m,b)}var VC=Ku(function(m,b,O){return b=b.toLowerCase(),m+(O?Nm(b):b)});function Nm(m){return hn(fr(m).toLowerCase())}function T1(m){return m=fr(m),m&&m.replace(En,hy).replace(co,"")}function bR(m,b,O){m=fr(m),b=Qr(b);var $=m.length;O=O===n?$:Xc(xn(O),0,$);var V=O;return O-=b.length,O>=0&&m.slice(O,V)==b}function fb(m){return m=fr(m),m&&ln.test(m)?m.replace(_n,mT):m}function pb(m){return m=fr(m),m&&Oa.test(m)?m.replace(Wo,"\\$&"):m}var GC=Ku(function(m,b,O){return m+(O?"-":"")+b.toLowerCase()}),Mm=Ku(function(m,b,O){return m+(O?" ":"")+b.toLowerCase()}),C1=$y("toLowerCase");function hb(m,b,O){m=fr(m),b=xn(b);var $=b?tl(m):0;if(!b||$>=b)return m;var V=(b-$)/2;return Hf(Qo(V),O)+m+Hf(Xo(V),O)}function YC(m,b,O){m=fr(m),b=xn(b);var $=b?tl(m):0;return b&&$>>0,O?(m=fr(m),m&&(typeof b=="string"||b!=null&&!rb(b))&&(b=Qr(b),!b&&Lu(m))?ru(Vo(m),0,O):m.split(b,O)):[]}var x=Ku(function(m,b,O){return m+(O?" ":"")+hn(b)});function M(m,b,O){return m=fr(m),O=O==null?0:Xc(xn(O),0,m.length),b=Qr(b),m.slice(O,O+b.length)==b}function B(m,b,O){var $=K.templateSettings;O&&ei(m,b,O)&&(b=n),m=fr(m),b=km({},b,$,Uy);var V=km({},b.imports,$.imports,Uy),te=Ia(V),pe=py(V,te),Ce,De,Je=0,et=b.interpolate||Rr,ct="__p += '",Ct=ql((b.escape||Rr).source+"|"+et.source+"|"+(et===Qa?Me:Rr).source+"|"+(b.evaluate||Rr).source+"|$","g"),Vt="//# sourceURL="+(cr.call(b,"sourceURL")?(b.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++iy+"]")+` -`;m.replace(Ct,function(fn,Hn,Zn,_s,Oo,Os){return Zn||(Zn=_s),ct+=m.slice(Je,Os).replace(Pr,gT),Hn&&(Ce=!0,ct+=`' + +`)}function SC(m){return bn(m)||sc(m)||!!(Gc&&m&&m[Gc])}function Rs(m,b){var O=typeof m;return b=b??q,!!b&&(O=="number"||O!="symbol"&&Dn.test(m))&&m>-1&&m%1==0&&m0){if(++b>=ue)return arguments[0]}else b=0;return m.apply(n,arguments)}}function Sm(m,b){var O=-1,$=m.length,V=$-1;for(b=b===n?$:b;++O1?m[b-1]:n;return O=typeof O=="function"?(m.pop(),O):n,Om(m,O)});function hi(m){var b=Y(m);return b.__chain__=!0,b}function FC(m,b){return b(m),m}function sp(m,b){return b(m)}var jC=pl(function(m){var b=m.length,O=b?m[0]:0,$=this.__wrapped__,V=function(te){return Yu(te,m)};return b>1||this.__actions__.length||!($ instanceof Tn)||!Rs(O)?this.thru(V):($=$.slice(O,+O+(b?1:0)),$.__actions__.push({func:sp,args:[V],thisArg:n}),new bo($,this.__chain__).thru(function(te){return b&&!te.length&&te.push(n),te}))});function vR(){return hi(this)}function du(){return new bo(this.value(),this.__chain__)}function vb(){this.__values__===n&&(this.__values__=ok(this.value()));var m=this.__index__>=this.__values__.length,b=m?n:this.__values__[this.__index__++];return{done:m,value:b}}function hS(){return this}function lp(m){for(var b,O=this;O instanceof nm;){var $=pb(O);$.__index__=0,$.__values__=n,b?V.__wrapped__=$:b=$;var V=$;O=O.__wrapped__}return V.__wrapped__=m,b}function UC(){var m=this.__wrapped__;if(m instanceof Tn){var b=m;return this.__actions__.length&&(b=new Tn(this)),b=b.reverse(),b.__actions__.push({func:sp,args:[Tr],thisArg:n}),new bo(b,this.__chain__)}return this.thru(Tr)}function BC(){return nb(this.__wrapped__,this.__actions__)}var WC=Xf(function(m,b,O){cr.call(m,O)?++m[O]:wo(m,O,1)});function mS(m,b,O){var $=bn(m)?IT:Cw;return O&&ti(m,b,O)&&(b=n),$(m,Qt(b,3))}function gS(m,b){var O=bn(m)?nl:ca;return O(m,Qt(b,3))}var yR=ib(rS),bR=ib(AC);function wR(m,b){return va(fu(m,b),1)}function zC(m,b){return va(fu(m,b),G)}function qC(m,b,O){return O=O===n?1:xn(O),va(fu(m,b),O)}function ld(m,b){var O=bn(m)?Jo:Ku;return O(m,Qt(b,3))}function Am(m,b){var O=bn(m)?GO:Ky;return O(m,Qt(b,3))}var HC=Xf(function(m,b,O){cr.call(m,O)?m[O].push(b):wo(m,O,[b])});function VC(m,b,O,$){m=kn(m)?m:Po(m),O=O&&!$?xn(O):0;var V=m.length;return O<0&&(O=zn(V+O,0)),_b(m)?O<=V&&m.indexOf(b,O)>-1:!!V&&Of(m,b,O)>-1}var SR=On(function(m,b,O){var $=-1,V=typeof b=="function",te=kn(m)?Be(m.length):[];return Ku(m,function(pe){te[++$]=V?ci(b,pe,O):Wf(pe,b,O)}),te}),GC=Xf(function(m,b,O){wo(m,O,b)});function fu(m,b){var O=bn(m)?Lr:sm;return O(m,Qt(b,3))}function YC(m,b,O,$){return m==null?[]:(bn(b)||(b=b==null?[]:[b]),O=$?n:O,bn(O)||(O=O==null?[]:[O]),Aw(m,b,O))}var _r=Xf(function(m,b,O){m[O?0:1].push(b)},function(){return[[],[]]});function vS(m,b,O){var $=bn(m)?ow:uw,V=arguments.length<3;return $(m,Qt(b,4),O,V,Ku)}function ER(m,b,O){var $=bn(m)?YO:uw,V=arguments.length<3;return $(m,Qt(b,4),O,V,Ky)}function KC(m,b){var O=bn(m)?nl:ca;return O(m,bb(Qt(b,3)))}function TR(m){var b=bn(m)?Sw:pC;return b(m)}function CR(m,b,O){(O?ti(m,b,O):b===n)?b=1:b=xn(b);var $=bn(m)?Vu:Dw;return $(m,b)}function kR(m){var b=bn(m)?An:dR;return b(m)}function yb(m){if(m==null)return 0;if(kn(m))return _b(m)?rl(m):m.length;var b=ya(m);return b==rt||b==Wt?m.size:Xu(m).length}function up(m,b,O){var $=bn(m)?sw:dm;return O&&ti(m,b,O)&&(b=n),$(m,Qt(b,3))}var yS=On(function(m,b){if(m==null)return[];var O=b.length;return O>1&&ti(m,b[0],b[1])?b=[]:O>2&&ti(b[0],b[1],b[2])&&(b=[b[0]]),Aw(m,va(b,1),[])}),ud=ns||function(){return bt.Date.now()};function bS(m,b){if(typeof b!="function")throw new yo(o);return m=xn(m),function(){if(--m<1)return b.apply(this,arguments)}}function oc(m,b,O){return b=O?n:b,b=m&&b==null?m.length:b,xs(m,I,n,n,n,n,b)}function Ps(m,b){var O;if(typeof b!="function")throw new yo(o);return m=xn(m),function(){return--m>0&&(O=b.apply(this,arguments)),m<=1&&(b=n),O}}var cd=On(function(m,b,O){var $=T;if(O.length){var V=Bu(O,Eo(cd));$|=P}return xs(m,$,b,O,V)}),XC=On(function(m,b,O){var $=T|C;if(O.length){var V=Bu(O,Eo(XC));$|=P}return xs(b,$,m,O,V)});function wS(m,b,O){b=O?n:b;var $=xs(m,_,n,n,n,n,n,b);return $.placeholder=wS.placeholder,$}function SS(m,b,O){b=O?n:b;var $=xs(m,A,n,n,n,n,n,b);return $.placeholder=SS.placeholder,$}function ES(m,b,O){var $,V,te,pe,Ce,De,Je=0,et=!1,ct=!1,Ct=!0;if(typeof m!="function")throw new yo(o);b=ri(b)||0,Ur(O)&&(et=!!O.leading,ct="maxWait"in O,te=ct?zn(ri(O.maxWait)||0,b):te,Ct="trailing"in O?!!O.trailing:Ct);function Vt(La){var gu=$,dd=V;return $=V=n,Je=La,pe=m.apply(dd,gu),pe}function dn(La){return Je=La,Ce=pi(Hn,b),et?Vt(La):pe}function Ln(La){var gu=La-De,dd=La-Je,NU=b-gu;return ct?pn(NU,te-dd):NU}function fn(La){var gu=La-De,dd=La-Je;return De===n||gu>=b||gu<0||ct&&dd>=te}function Hn(){var La=ud();if(fn(La))return Zn(La);Ce=pi(Hn,Ln(La))}function Zn(La){return Ce=n,Ct&&$?Vt(La):($=V=n,pe)}function Ms(){Ce!==n&&fm(Ce),Je=0,$=De=V=Ce=n}function Ao(){return Ce===n?pe:Zn(ud())}function Is(){var La=ud(),gu=fn(La);if($=arguments,V=this,De=La,gu){if(Ce===n)return dn(De);if(ct)return fm(Ce),Ce=pi(Hn,b),Vt(De)}return Ce===n&&(Ce=pi(Hn,b)),pe}return Is.cancel=Ms,Is.flush=Ao,Is}var xR=On(function(m,b){return Tw(m,1,b)}),TS=On(function(m,b,O){return Tw(m,ri(b)||0,O)});function QC(m){return xs(m,j)}function Nm(m,b){if(typeof m!="function"||b!=null&&typeof b!="function")throw new yo(o);var O=function(){var $=arguments,V=b?b.apply(this,$):$[0],te=O.cache;if(te.has(V))return te.get(V);var pe=m.apply(this,$);return O.cache=te.set(V,pe)||te,pe};return O.cache=new(Nm.Cache||tu),O}Nm.Cache=tu;function bb(m){if(typeof m!="function")throw new yo(o);return function(){var b=arguments;switch(b.length){case 0:return!m.call(this);case 1:return!m.call(this,b[0]);case 2:return!m.call(this,b[0],b[1]);case 3:return!m.call(this,b[0],b[1],b[2])}return!m.apply(this,b)}}function CS(m){return Ps(2,m)}var kS=hC(function(m,b){b=b.length==1&&bn(b[0])?Lr(b[0],go(Qt())):Lr(va(b,1),go(Qt()));var O=b.length;return On(function($){for(var V=-1,te=pn($.length,O);++V=b}),sc=aC((function(){return arguments})())?aC:function(m){return ea(m)&&cr.call(m,"callee")&&!mw.call(m,"callee")},bn=Be.isArray,Eb=Na?go(Na):iC;function kn(m){return m!=null&&Cb(m.length)&&!pu(m)}function Hr(m){return ea(m)&&kn(m)}function ni(m){return m===!0||m===!1||ea(m)&&di(m)==fe}var lc=YT||QR,PS=Za?go(Za):oC;function AS(m){return ea(m)&&m.nodeType===1&&!mi(m)}function Tb(m){if(m==null)return!0;if(kn(m)&&(bn(m)||typeof m=="string"||typeof m.splice=="function"||lc(m)||Ns(m)||sc(m)))return!m.length;var b=ya(m);if(b==rt||b==Wt)return!m.size;if(Jr(m))return!Xu(m).length;for(var O in m)if(cr.call(m,O))return!1;return!0}function tk(m,b){return zf(m,b)}function nk(m,b,O){O=typeof O=="function"?O:n;var $=O?O(m,b):n;return $===n?zf(m,b,n,O):!!$}function Dm(m){if(!ea(m))return!1;var b=di(m);return b==qe||b==Ie||typeof m.message=="string"&&typeof m.name=="string"&&!mi(m)}function NS(m){return typeof m=="number"&&By(m)}function pu(m){if(!Ur(m))return!1;var b=di(m);return b==tt||b==Ge||b==ke||b==cn}function MS(m){return typeof m=="number"&&m==xn(m)}function Cb(m){return typeof m=="number"&&m>-1&&m%1==0&&m<=q}function Ur(m){var b=typeof m;return m!=null&&(b=="object"||b=="function")}function ea(m){return m!=null&&typeof m=="object"}var rk=Hl?go(Hl):sC;function IS(m,b){return m===b||Zy(m,b,bm(b))}function DS(m,b,O){return O=typeof O=="function"?O:n,Zy(m,b,bm(b),O)}function PR(m){return $S(m)&&m!=+m}function AR(m){if(EC(m))throw new on(i);return _w(m)}function As(m){return m===null}function ak(m){return m==null}function $S(m){return typeof m=="number"||ea(m)&&di(m)==St}function mi(m){if(!ea(m)||di(m)!=xt)return!1;var b=Hc(m);if(b===null)return!0;var O=cr.call(b,"constructor")&&b.constructor;return typeof O=="function"&&O instanceof O&&Jh.call(O)==If}var kb=Ry?go(Ry):lC;function xb(m){return MS(m)&&m>=-q&&m<=q}var bl=xf?go(xf):uC;function _b(m){return typeof m=="string"||!bn(m)&&ea(m)&&di(m)==Oe}function Ro(m){return typeof m=="symbol"||ea(m)&&di(m)==dt}var Ns=_f?go(_f):lR;function ik(m){return m===n}function NR(m){return ea(m)&&ya(m)==ut}function MR(m){return ea(m)&&di(m)==Nt}var IR=Zf(qf),DR=Zf(function(m,b){return m<=b});function ok(m){if(!m)return[];if(kn(m))return _b(m)?Zo(m):Oi(m);if(il&&m[il])return WT(m[il]());var b=ya(m),O=b==rt?Ly:b==Wt?Fy:Po;return O(m)}function hu(m){if(!m)return m===0?m:0;if(m=ri(m),m===G||m===-G){var b=m<0?-1:1;return b*ce}return m===m?m:0}function xn(m){var b=hu(m),O=b%1;return b===b?O?b-O:b:0}function LS(m){return m?ed(xn(m),0,K):0}function ri(m){if(typeof m=="number")return m;if(Ro(m))return H;if(Ur(m)){var b=typeof m.valueOf=="function"?m.valueOf():m;m=Ur(b)?b+"":b}if(typeof m!="string")return m===0?m:+m;m=FT(m);var O=Bt.test(m);return O||an.test(m)?Xh(m.slice(2),O?2:8):ot.test(m)?H:+m}function dp(m){return Ts(m,Ai(m))}function sk(m){return m?ed(xn(m),-q,q):m===0?m:0}function fr(m){return m==null?"":Qr(m)}var fp=rd(function(m,b){if(Jr(b)||kn(b)){Ts(b,$a(b),m);return}for(var O in b)cr.call(b,O)&&Fr(m,O,b[O])}),pp=rd(function(m,b){Ts(b,Ai(b),m)}),$m=rd(function(m,b,O,$){Ts(b,Ai(b),m,$)}),Ob=rd(function(m,b,O,$){Ts(b,$a(b),m,$)}),FS=pl(Yu);function jS(m,b){var O=Zl(m);return b==null?O:Gu(O,b)}var Rb=On(function(m,b){m=Er(m);var O=-1,$=b.length,V=$>2?b[2]:n;for(V&&ti(b[0],b[1],V)&&($=1);++O<$;)for(var te=b[O],pe=Ai(te),Ce=-1,De=pe.length;++Ce1),te}),Ts(m,vm(m),O),$&&(O=er(O,g|y|h,ub));for(var V=b.length;V--;)dl(O,b[V]);return O});function WR(m,b){return Ab(m,bb(Qt(b)))}var zS=pl(function(m,b){return m==null?{}:Nw(m,b)});function Ab(m,b){if(m==null)return{};var O=Lr(vm(m),function($){return[$]});return b=Qt(b),Mw(m,O,function($,V){return b($,V[0])})}function Nb(m,b,O){b=iu(b,m);var $=-1,V=b.length;for(V||(V=1,m=n);++$b){var $=m;m=b,b=$}if(O||m%1||b%1){var V=Wy();return pn(m+V*(b-m+tl("1e-"+((V+"").length-1))),b)}return tb(m,b)}var gk=Ju(function(m,b,O){return b=b.toLowerCase(),m+(O?zm(b):b)});function zm(m){return hn(fr(m).toLowerCase())}function HS(m){return m=fr(m),m&&m.replace(En,$y).replace(ho,"")}function HR(m,b,O){m=fr(m),b=Qr(b);var $=m.length;O=O===n?$:ed(xn(O),0,$);var V=O;return O-=b.length,O>=0&&m.slice(O,V)==b}function Ib(m){return m=fr(m),m&&ln.test(m)?m.replace(_n,jT):m}function Db(m){return m=fr(m),m&&Pa.test(m)?m.replace(Ko,"\\$&"):m}var vk=Ju(function(m,b,O){return m+(O?"-":"")+b.toLowerCase()}),qm=Ju(function(m,b,O){return m+(O?" ":"")+b.toLowerCase()}),VS=ab("toLowerCase");function $b(m,b,O){m=fr(m),b=xn(b);var $=b?rl(m):0;if(!b||$>=b)return m;var V=(b-$)/2;return Jf(as(V),O)+m+Jf(rs(V),O)}function yk(m,b,O){m=fr(m),b=xn(b);var $=b?rl(m):0;return b&&$>>0,O?(m=fr(m),m&&(typeof b=="string"||b!=null&&!kb(b))&&(b=Qr(b),!b&&Uu(m))?ou(Zo(m),0,O):m.split(b,O)):[]}var x=Ju(function(m,b,O){return m+(O?" ":"")+hn(b)});function M(m,b,O){return m=fr(m),O=O==null?0:ed(xn(O),0,m.length),b=Qr(b),m.slice(O,O+b.length)==b}function B(m,b,O){var $=Y.templateSettings;O&&ti(m,b,O)&&(b=n),m=fr(m),b=$m({},b,$,lb);var V=$m({},b.imports,$.imports,lb),te=$a(V),pe=Dy(V,te),Ce,De,Je=0,et=b.interpolate||Rr,ct="__p += '",Ct=Gl((b.escape||Rr).source+"|"+et.source+"|"+(et===Ja?Me:Rr).source+"|"+(b.evaluate||Rr).source+"|$","g"),Vt="//# sourceURL="+(cr.call(b,"sourceURL")?(b.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++_y+"]")+` +`;m.replace(Ct,function(fn,Hn,Zn,Ms,Ao,Is){return Zn||(Zn=Ms),ct+=m.slice(Je,Is).replace(Pr,UT),Hn&&(Ce=!0,ct+=`' + __e(`+Hn+`) + -'`),Oo&&(De=!0,ct+=`'; -`+Oo+`; +'`),Ao&&(De=!0,ct+=`'; +`+Ao+`; __p += '`),Zn&&(ct+=`' + ((__t = (`+Zn+`)) == null ? '' : __t) + -'`),Je=Os+fn.length,fn}),ct+=`'; +'`),Je=Is+fn.length,fn}),ct+=`'; `;var dn=cr.call(b,"variable")&&b.variable;if(!dn)ct=`with (obj) { `+ct+` } @@ -120,23 +120,26 @@ __p += '`),Zn&&(ct+=`' + function print() { __p += __j.call(arguments, '') } `:`; `)+ct+`return __p -}`;var Ln=Le(function(){return Wn(te,Vt+"return "+ct).apply(n,pe)});if(Ln.source=ct,Cm(Ln))throw Ln;return Ln}function X(m){return fr(m).toLowerCase()}function de(m){return fr(m).toUpperCase()}function Pe(m,b,O){if(m=fr(m),m&&(O||b===n))return hT(m);if(!m||!(b=Qr(b)))return m;var $=Vo(m),V=Vo(b),te=Cf($,V),pe=kf($,V)+1;return ru($,te,pe).join("")}function Ke(m,b,O){if(m=fr(m),m&&(O||b===n))return m.slice(0,z0(m)+1);if(!m||!(b=Qr(b)))return m;var $=Vo(m),V=kf($,Vo(b))+1;return ru($,0,V).join("")}function st(m,b,O){if(m=fr(m),m&&(O||b===n))return m.replace(Ra,"");if(!m||!(b=Qr(b)))return m;var $=Vo(m),V=Cf($,Vo(b));return ru($,V).join("")}function Ue(m,b){var O=z,$=Q;if(Ur(b)){var V="separator"in b?b.separator:V;O="length"in b?xn(b.length):O,$="omission"in b?Qr(b.omission):$}m=fr(m);var te=m.length;if(Lu(m)){var pe=Vo(m);te=pe.length}if(O>=te)return m;var Ce=O-tl($);if(Ce<1)return $;var De=pe?ru(pe,0,Ce).join(""):m.slice(0,Ce);if(V===n)return De+$;if(pe&&(Ce+=De.length-Ce),rb(V)){if(m.slice(Ce).search(V)){var Je,et=De;for(V.global||(V=ql(V.source,fr(Qe.exec(V))+"g")),V.lastIndex=0;Je=V.exec(et);)var ct=Je.index;De=De.slice(0,ct===n?Ce:ct)}}else if(m.indexOf(Qr(V),Ce)!=Ce){var Ct=De.lastIndexOf(V);Ct>-1&&(De=De.slice(0,Ct))}return De+$}function Ve(m){return m=fr(m),m&&gn.test(m)?m.replace(Ut,wT):m}var Ht=Ku(function(m,b,O){return m+(O?" ":"")+b.toUpperCase()}),hn=$y("toUpperCase");function Vr(m,b,O){return m=fr(m),b=O?n:b,b===n?vT(m)?PO(m):kO(m):m.match(b)||[]}var Le=On(function(m,b){try{return li(m,n,b)}catch(O){return Cm(O)?O:new on(O)}}),_e=dl(function(m,b){return Ho(b,function(O){O=_i(O),vo(m,O,od(m[O],m))}),m});function je(m){var b=m==null?0:m.length,O=Qt();return m=b?Lr(m,function($){if(typeof $[1]!="function")throw new mo(o);return[O($[0]),$[1]]}):[],On(function($){for(var V=-1;++Vq)return[];var O=Y,$=pn(m,Y);b=Qt(b),m-=Y;for(var V=$u($,b);++O0||b<0)?new Tn(O):(m<0?O=O.takeRight(-m):m&&(O=O.drop(m)),b!==n&&(b=xn(b),O=b<0?O.dropRight(-b):O.take(b-m)),O)},Tn.prototype.takeRightWhile=function(m){return this.reverse().takeWhile(m).reverse()},Tn.prototype.toArray=function(){return this.take(Y)},Zo(Tn.prototype,function(m,b){var O=/^(?:filter|find|map|reject)|While$/.test(b),$=/^(?:head|last)$/.test(b),V=K[$?"take"+(b=="last"?"Right":""):b],te=$||/^find/.test(b);V&&(K.prototype[b]=function(){var pe=this.__wrapped__,Ce=$?[1]:arguments,De=pe instanceof Tn,Je=Ce[0],et=De||bn(pe),ct=function(Hn){var Zn=V.apply(K,zl([Hn],Ce));return $&&Ct?Zn[0]:Zn};et&&O&&typeof Je=="function"&&Je.length!=1&&(De=et=!1);var Ct=this.__chain__,Vt=!!this.__actions__.length,dn=te&&!Ct,Ln=De&&!Vt;if(!te&&et){pe=Ln?pe:new Tn(this);var fn=m.apply(pe,Ce);return fn.__actions__.push({func:ep,args:[ct],thisArg:n}),new go(fn,Ct)}return dn&&Ln?m.apply(this,Ce):(fn=this.thru(ct),dn?$?fn.value()[0]:fn.value():fn)})}),Ho(["pop","push","shift","sort","splice","unshift"],function(m){var b=Uh[m],O=/^(?:push|sort|unshift)$/.test(m)?"tap":"thru",$=/^(?:pop|shift)$/.test(m);K.prototype[m]=function(){var V=arguments;if($&&!this.__chain__){var te=this.value();return b.apply(bn(te)?te:[],V)}return this[O](function(pe){return b.apply(bn(pe)?pe:[],V)})}}),Zo(Tn.prototype,function(m,b){var O=K[b];if(O){var $=O.name+"";cr.call(ju,$)||(ju[$]=[]),ju[$].push({name:b,func:O})}}),ju[am(n,C).name]=[{name:"wrapper",func:n}],Tn.prototype.clone=OT,Tn.prototype.reverse=Rf,Tn.prototype.value=Ty,K.prototype.at=mC,K.prototype.chain=HO,K.prototype.commit=lu,K.prototype.next=Ky,K.prototype.plant=tp,K.prototype.reverse=gC,K.prototype.toJSON=K.prototype.valueOf=K.prototype.value=vC,K.prototype.first=K.prototype.head,rl&&(K.prototype[rl]=Vw),K}),fs=AO();Sn?((Sn.exports=fs)._=fs,zt._=fs):bt._=fs}).call(ale)})(pS,pS.exports)),pS.exports}var Ta=ile();function Pn(e){var n,r,a,i,o,l,u,d;const t={};if(e.error&&Array.isArray((n=e.error)==null?void 0:n.errors))for(const f of(r=e.error)==null?void 0:r.errors)Ta.set(t,f.location,f.messageTranslated||f.message);return e.status&&e.ok===!1?{form:`${e.status}`}:((a=e==null?void 0:e.error)!=null&&a.code&&(t.form=(i=e==null?void 0:e.error)==null?void 0:i.code),(o=e==null?void 0:e.error)!=null&&o.message&&(t.form=(l=e==null?void 0:e.error)==null?void 0:l.message),(u=e==null?void 0:e.error)!=null&&u.messageTranslated&&(t.form=(d=e==null?void 0:e.error)==null?void 0:d.messageTranslated),e.message?{form:`${e.message}`}:t)}const St=e=>(t,n,r)=>{const a=e.prefix+n;return fetch(a,{method:t,headers:{Accept:"application/json","Content-Type":"application/json",...e.headers||{}},body:JSON.stringify(r)}).then(i=>{const o=i.headers.get("content-type");if(o&&o.indexOf("application/json")!==-1)return i.json().then(l=>{if(i.ok)return l;throw l});throw i})};var ole=function(t){return sle(t)&&!lle(t)};function sle(e){return!!e&&typeof e=="object"}function lle(e){var t=Object.prototype.toString.call(e);return t==="[object RegExp]"||t==="[object Date]"||dle(e)}var ule=typeof Symbol=="function"&&Symbol.for,cle=ule?Symbol.for("react.element"):60103;function dle(e){return e.$$typeof===cle}function fle(e){return Array.isArray(e)?[]:{}}function ax(e,t){return t.clone!==!1&&t.isMergeableObject(e)?jS(fle(e),e,t):e}function ple(e,t,n){return e.concat(t).map(function(r){return ax(r,n)})}function hle(e,t,n){var r={};return n.isMergeableObject(e)&&Object.keys(e).forEach(function(a){r[a]=ax(e[a],n)}),Object.keys(t).forEach(function(a){!n.isMergeableObject(t[a])||!e[a]?r[a]=ax(t[a],n):r[a]=jS(e[a],t[a],n)}),r}function jS(e,t,n){n=n||{},n.arrayMerge=n.arrayMerge||ple,n.isMergeableObject=n.isMergeableObject||ole;var r=Array.isArray(t),a=Array.isArray(e),i=r===a;return i?r?n.arrayMerge(e,t,n):hle(e,t,n):ax(t,n)}jS.all=function(t,n){if(!Array.isArray(t))throw new Error("first argument should be an array");return t.reduce(function(r,a){return jS(r,a,n)},{})};var Z$=jS,zX=typeof global=="object"&&global&&global.Object===Object&&global,mle=typeof self=="object"&&self&&self.Object===Object&&self,Nc=zX||mle||Function("return this")(),oh=Nc.Symbol,qX=Object.prototype,gle=qX.hasOwnProperty,vle=qX.toString,_1=oh?oh.toStringTag:void 0;function yle(e){var t=gle.call(e,_1),n=e[_1];try{e[_1]=void 0;var r=!0}catch{}var a=vle.call(e);return r&&(t?e[_1]=n:delete e[_1]),a}var ble=Object.prototype,wle=ble.toString;function Sle(e){return wle.call(e)}var Ele="[object Null]",Tle="[object Undefined]",xU=oh?oh.toStringTag:void 0;function jv(e){return e==null?e===void 0?Tle:Ele:xU&&xU in Object(e)?yle(e):Sle(e)}function HX(e,t){return function(n){return e(t(n))}}var tF=HX(Object.getPrototypeOf,Object);function Uv(e){return e!=null&&typeof e=="object"}var Cle="[object Object]",kle=Function.prototype,xle=Object.prototype,VX=kle.toString,_le=xle.hasOwnProperty,Ole=VX.call(Object);function _U(e){if(!Uv(e)||jv(e)!=Cle)return!1;var t=tF(e);if(t===null)return!0;var n=_le.call(t,"constructor")&&t.constructor;return typeof n=="function"&&n instanceof n&&VX.call(n)==Ole}function Rle(){this.__data__=[],this.size=0}function GX(e,t){return e===t||e!==e&&t!==t}function s_(e,t){for(var n=e.length;n--;)if(GX(e[n][0],t))return n;return-1}var Ple=Array.prototype,Ale=Ple.splice;function Nle(e){var t=this.__data__,n=s_(t,e);if(n<0)return!1;var r=t.length-1;return n==r?t.pop():Ale.call(t,n,1),--this.size,!0}function Mle(e){var t=this.__data__,n=s_(t,e);return n<0?void 0:t[n][1]}function Ile(e){return s_(this.__data__,e)>-1}function Dle(e,t){var n=this.__data__,r=s_(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this}function ef(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t-1&&e%1==0&&e-1&&e%1==0&&e<=Due}var $ue="[object Arguments]",Lue="[object Array]",Fue="[object Boolean]",jue="[object Date]",Uue="[object Error]",Bue="[object Function]",Wue="[object Map]",zue="[object Number]",que="[object Object]",Hue="[object RegExp]",Vue="[object Set]",Gue="[object String]",Yue="[object WeakMap]",Kue="[object ArrayBuffer]",Xue="[object DataView]",Que="[object Float32Array]",Jue="[object Float64Array]",Zue="[object Int8Array]",ece="[object Int16Array]",tce="[object Int32Array]",nce="[object Uint8Array]",rce="[object Uint8ClampedArray]",ace="[object Uint16Array]",ice="[object Uint32Array]",Yr={};Yr[Que]=Yr[Jue]=Yr[Zue]=Yr[ece]=Yr[tce]=Yr[nce]=Yr[rce]=Yr[ace]=Yr[ice]=!0;Yr[$ue]=Yr[Lue]=Yr[Kue]=Yr[Fue]=Yr[Xue]=Yr[jue]=Yr[Uue]=Yr[Bue]=Yr[Wue]=Yr[zue]=Yr[que]=Yr[Hue]=Yr[Vue]=Yr[Gue]=Yr[Yue]=!1;function oce(e){return Uv(e)&&eQ(e.length)&&!!Yr[jv(e)]}function nF(e){return function(t){return e(t)}}var tQ=typeof Ls=="object"&&Ls&&!Ls.nodeType&&Ls,SS=tQ&&typeof no=="object"&&no&&!no.nodeType&&no,sce=SS&&SS.exports===tQ,IR=sce&&zX.process,o0=(function(){try{var e=SS&&SS.require&&SS.require("util").types;return e||IR&&IR.binding&&IR.binding("util")}catch{}})(),MU=o0&&o0.isTypedArray,lce=MU?nF(MU):oce,uce=Object.prototype,cce=uce.hasOwnProperty;function nQ(e,t){var n=NE(e),r=!n&&Oue(e),a=!n&&!r&&ZX(e),i=!n&&!r&&!a&&lce(e),o=n||r||a||i,l=o?Cue(e.length,String):[],u=l.length;for(var d in e)(t||cce.call(e,d))&&!(o&&(d=="length"||a&&(d=="offset"||d=="parent")||i&&(d=="buffer"||d=="byteLength"||d=="byteOffset")||Iue(d,u)))&&l.push(d);return l}var dce=Object.prototype;function rF(e){var t=e&&e.constructor,n=typeof t=="function"&&t.prototype||dce;return e===n}var fce=HX(Object.keys,Object),pce=Object.prototype,hce=pce.hasOwnProperty;function mce(e){if(!rF(e))return fce(e);var t=[];for(var n in Object(e))hce.call(e,n)&&n!="constructor"&&t.push(n);return t}function rQ(e){return e!=null&&eQ(e.length)&&!YX(e)}function aF(e){return rQ(e)?nQ(e):mce(e)}function gce(e,t){return e&&u_(t,aF(t),e)}function vce(e){var t=[];if(e!=null)for(var n in Object(e))t.push(n);return t}var yce=Object.prototype,bce=yce.hasOwnProperty;function wce(e){if(!AE(e))return vce(e);var t=rF(e),n=[];for(var r in e)r=="constructor"&&(t||!bce.call(e,r))||n.push(r);return n}function iF(e){return rQ(e)?nQ(e,!0):wce(e)}function Sce(e,t){return e&&u_(t,iF(t),e)}var aQ=typeof Ls=="object"&&Ls&&!Ls.nodeType&&Ls,IU=aQ&&typeof no=="object"&&no&&!no.nodeType&&no,Ece=IU&&IU.exports===aQ,DU=Ece?Nc.Buffer:void 0,$U=DU?DU.allocUnsafe:void 0;function Tce(e,t){if(t)return e.slice();var n=e.length,r=$U?$U(n):new e.constructor(n);return e.copy(r),r}function iQ(e,t){var n=-1,r=e.length;for(t||(t=Array(r));++n=te)return m;var Ce=O-rl($);if(Ce<1)return $;var De=pe?ou(pe,0,Ce).join(""):m.slice(0,Ce);if(V===n)return De+$;if(pe&&(Ce+=De.length-Ce),kb(V)){if(m.slice(Ce).search(V)){var Je,et=De;for(V.global||(V=Gl(V.source,fr(Qe.exec(V))+"g")),V.lastIndex=0;Je=V.exec(et);)var ct=Je.index;De=De.slice(0,ct===n?Ce:ct)}}else if(m.indexOf(Qr(V),Ce)!=Ce){var Ct=De.lastIndexOf(V);Ct>-1&&(De=De.slice(0,Ct))}return De+$}function Ve(m){return m=fr(m),m&&gn.test(m)?m.replace(Ut,qT):m}var Ht=Ju(function(m,b,O){return m+(O?" ":"")+b.toUpperCase()}),hn=ab("toUpperCase");function Vr(m,b,O){return m=fr(m),b=O?n:b,b===n?BT(m)?nR(m):QO(m):m.match(b)||[]}var Le=On(function(m,b){try{return ci(m,n,b)}catch(O){return Dm(O)?O:new on(O)}}),_e=pl(function(m,b){return Jo(b,function(O){O=Ri(O),wo(m,O,cd(m[O],m))}),m});function je(m){var b=m==null?0:m.length,O=Qt();return m=b?Lr(m,function($){if(typeof $[1]!="function")throw new yo(o);return[O($[0]),$[1]]}):[],On(function($){for(var V=-1;++Vq)return[];var O=K,$=pn(m,K);b=Qt(b),m-=K;for(var V=ju($,b);++O0||b<0)?new Tn(O):(m<0?O=O.takeRight(-m):m&&(O=O.drop(m)),b!==n&&(b=xn(b),O=b<0?O.dropRight(-b):O.take(b-m)),O)},Tn.prototype.takeRightWhile=function(m){return this.reverse().takeWhile(m).reverse()},Tn.prototype.toArray=function(){return this.take(K)},os(Tn.prototype,function(m,b){var O=/^(?:filter|find|map|reject)|While$/.test(b),$=/^(?:head|last)$/.test(b),V=Y[$?"take"+(b=="last"?"Right":""):b],te=$||/^find/.test(b);V&&(Y.prototype[b]=function(){var pe=this.__wrapped__,Ce=$?[1]:arguments,De=pe instanceof Tn,Je=Ce[0],et=De||bn(pe),ct=function(Hn){var Zn=V.apply(Y,Vl([Hn],Ce));return $&&Ct?Zn[0]:Zn};et&&O&&typeof Je=="function"&&Je.length!=1&&(De=et=!1);var Ct=this.__chain__,Vt=!!this.__actions__.length,dn=te&&!Ct,Ln=De&&!Vt;if(!te&&et){pe=Ln?pe:new Tn(this);var fn=m.apply(pe,Ce);return fn.__actions__.push({func:sp,args:[ct],thisArg:n}),new bo(fn,Ct)}return dn&&Ln?m.apply(this,Ce):(fn=this.thru(ct),dn?$?fn.value()[0]:fn.value():fn)})}),Jo(["pop","push","shift","sort","splice","unshift"],function(m){var b=Qh[m],O=/^(?:push|sort|unshift)$/.test(m)?"tap":"thru",$=/^(?:pop|shift)$/.test(m);Y.prototype[m]=function(){var V=arguments;if($&&!this.__chain__){var te=this.value();return b.apply(bn(te)?te:[],V)}return this[O](function(pe){return b.apply(bn(pe)?pe:[],V)})}}),os(Tn.prototype,function(m,b){var O=Y[b];if(O){var $=O.name+"";cr.call(Wu,$)||(Wu[$]=[]),Wu[$].push({name:b,func:O})}}),Wu[mm(n,C).name]=[{name:"wrapper",func:n}],Tn.prototype.clone=JT,Tn.prototype.reverse=$f,Tn.prototype.value=Hy,Y.prototype.at=jC,Y.prototype.chain=vR,Y.prototype.commit=du,Y.prototype.next=vb,Y.prototype.plant=lp,Y.prototype.reverse=UC,Y.prototype.toJSON=Y.prototype.valueOf=Y.prototype.value=BC,Y.prototype.first=Y.prototype.head,il&&(Y.prototype[il]=hS),Y}),ys=rR();Sn?((Sn.exports=ys)._=ys,zt._=ys):bt._=ys}).call(Ale)})(D1,D1.exports)),D1.exports}var ka=Nle();function Pn(e){var n,r,a,i,o,l,u,d;const t={};if(e.error&&Array.isArray((n=e.error)==null?void 0:n.errors))for(const f of(r=e.error)==null?void 0:r.errors)ka.set(t,f.location,f.messageTranslated||f.message);return e.status&&e.ok===!1?{form:`${e.status}`}:((a=e==null?void 0:e.error)!=null&&a.code&&(t.form=(i=e==null?void 0:e.error)==null?void 0:i.code),(o=e==null?void 0:e.error)!=null&&o.message&&(t.form=(l=e==null?void 0:e.error)==null?void 0:l.message),(u=e==null?void 0:e.error)!=null&&u.messageTranslated&&(t.form=(d=e==null?void 0:e.error)==null?void 0:d.messageTranslated),e.message?{form:`${e.message}`}:t)}const Tt=e=>(t,n,r)=>{const a=e.prefix+n;return fetch(a,{method:t,headers:{Accept:"application/json","Content-Type":"application/json",...e.headers||{}},body:JSON.stringify(r)}).then(i=>{const o=i.headers.get("content-type");if(o&&o.indexOf("application/json")!==-1)return i.json().then(l=>{if(i.ok)return l;throw l});throw i})};var Mle=function(t){return Ile(t)&&!Dle(t)};function Ile(e){return!!e&&typeof e=="object"}function Dle(e){var t=Object.prototype.toString.call(e);return t==="[object RegExp]"||t==="[object Date]"||Fle(e)}var $le=typeof Symbol=="function"&&Symbol.for,Lle=$le?Symbol.for("react.element"):60103;function Fle(e){return e.$$typeof===Lle}function jle(e){return Array.isArray(e)?[]:{}}function Rx(e,t){return t.clone!==!1&&t.isMergeableObject(e)?lE(jle(e),e,t):e}function Ule(e,t,n){return e.concat(t).map(function(r){return Rx(r,n)})}function Ble(e,t,n){var r={};return n.isMergeableObject(e)&&Object.keys(e).forEach(function(a){r[a]=Rx(e[a],n)}),Object.keys(t).forEach(function(a){!n.isMergeableObject(t[a])||!e[a]?r[a]=Rx(t[a],n):r[a]=lE(e[a],t[a],n)}),r}function lE(e,t,n){n=n||{},n.arrayMerge=n.arrayMerge||Ule,n.isMergeableObject=n.isMergeableObject||Mle;var r=Array.isArray(t),a=Array.isArray(e),i=r===a;return i?r?n.arrayMerge(e,t,n):Ble(e,t,n):Rx(t,n)}lE.all=function(t,n){if(!Array.isArray(t))throw new Error("first argument should be an array");return t.reduce(function(r,a){return lE(r,a,n)},{})};var _L=lE,vQ=typeof global=="object"&&global&&global.Object===Object&&global,Wle=typeof self=="object"&&self&&self.Object===Object&&self,$c=vQ||Wle||Function("return this")(),gh=$c.Symbol,yQ=Object.prototype,zle=yQ.hasOwnProperty,qle=yQ.toString,KS=gh?gh.toStringTag:void 0;function Hle(e){var t=zle.call(e,KS),n=e[KS];try{e[KS]=void 0;var r=!0}catch{}var a=qle.call(e);return r&&(t?e[KS]=n:delete e[KS]),a}var Vle=Object.prototype,Gle=Vle.toString;function Yle(e){return Gle.call(e)}var Kle="[object Null]",Xle="[object Undefined]",e6=gh?gh.toStringTag:void 0;function sy(e){return e==null?e===void 0?Xle:Kle:e6&&e6 in Object(e)?Hle(e):Yle(e)}function bQ(e,t){return function(n){return e(t(n))}}var RF=bQ(Object.getPrototypeOf,Object);function ly(e){return e!=null&&typeof e=="object"}var Qle="[object Object]",Jle=Function.prototype,Zle=Object.prototype,wQ=Jle.toString,eue=Zle.hasOwnProperty,tue=wQ.call(Object);function t6(e){if(!ly(e)||sy(e)!=Qle)return!1;var t=RF(e);if(t===null)return!0;var n=eue.call(t,"constructor")&&t.constructor;return typeof n=="function"&&n instanceof n&&wQ.call(n)==tue}function nue(){this.__data__=[],this.size=0}function SQ(e,t){return e===t||e!==e&&t!==t}function N_(e,t){for(var n=e.length;n--;)if(SQ(e[n][0],t))return n;return-1}var rue=Array.prototype,aue=rue.splice;function iue(e){var t=this.__data__,n=N_(t,e);if(n<0)return!1;var r=t.length-1;return n==r?t.pop():aue.call(t,n,1),--this.size,!0}function oue(e){var t=this.__data__,n=N_(t,e);return n<0?void 0:t[n][1]}function sue(e){return N_(this.__data__,e)>-1}function lue(e,t){var n=this.__data__,r=N_(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this}function lf(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t-1&&e%1==0&&e-1&&e%1==0&&e<=lce}var uce="[object Arguments]",cce="[object Array]",dce="[object Boolean]",fce="[object Date]",pce="[object Error]",hce="[object Function]",mce="[object Map]",gce="[object Number]",vce="[object Object]",yce="[object RegExp]",bce="[object Set]",wce="[object String]",Sce="[object WeakMap]",Ece="[object ArrayBuffer]",Tce="[object DataView]",Cce="[object Float32Array]",kce="[object Float64Array]",xce="[object Int8Array]",_ce="[object Int16Array]",Oce="[object Int32Array]",Rce="[object Uint8Array]",Pce="[object Uint8ClampedArray]",Ace="[object Uint16Array]",Nce="[object Uint32Array]",Yr={};Yr[Cce]=Yr[kce]=Yr[xce]=Yr[_ce]=Yr[Oce]=Yr[Rce]=Yr[Pce]=Yr[Ace]=Yr[Nce]=!0;Yr[uce]=Yr[cce]=Yr[Ece]=Yr[dce]=Yr[Tce]=Yr[fce]=Yr[pce]=Yr[hce]=Yr[mce]=Yr[gce]=Yr[vce]=Yr[yce]=Yr[bce]=Yr[wce]=Yr[Sce]=!1;function Mce(e){return ly(e)&&OQ(e.length)&&!!Yr[sy(e)]}function PF(e){return function(t){return e(t)}}var RQ=typeof zs=="object"&&zs&&!zs.nodeType&&zs,q1=RQ&&typeof ao=="object"&&ao&&!ao.nodeType&&ao,Ice=q1&&q1.exports===RQ,oP=Ice&&vQ.process,O0=(function(){try{var e=q1&&q1.require&&q1.require("util").types;return e||oP&&oP.binding&&oP.binding("util")}catch{}})(),s6=O0&&O0.isTypedArray,Dce=s6?PF(s6):Mce,$ce=Object.prototype,Lce=$ce.hasOwnProperty;function PQ(e,t){var n=rT(e),r=!n&&tce(e),a=!n&&!r&&_Q(e),i=!n&&!r&&!a&&Dce(e),o=n||r||a||i,l=o?Que(e.length,String):[],u=l.length;for(var d in e)(t||Lce.call(e,d))&&!(o&&(d=="length"||a&&(d=="offset"||d=="parent")||i&&(d=="buffer"||d=="byteLength"||d=="byteOffset")||sce(d,u)))&&l.push(d);return l}var Fce=Object.prototype;function AF(e){var t=e&&e.constructor,n=typeof t=="function"&&t.prototype||Fce;return e===n}var jce=bQ(Object.keys,Object),Uce=Object.prototype,Bce=Uce.hasOwnProperty;function Wce(e){if(!AF(e))return jce(e);var t=[];for(var n in Object(e))Bce.call(e,n)&&n!="constructor"&&t.push(n);return t}function AQ(e){return e!=null&&OQ(e.length)&&!EQ(e)}function NF(e){return AQ(e)?PQ(e):Wce(e)}function zce(e,t){return e&&I_(t,NF(t),e)}function qce(e){var t=[];if(e!=null)for(var n in Object(e))t.push(n);return t}var Hce=Object.prototype,Vce=Hce.hasOwnProperty;function Gce(e){if(!nT(e))return qce(e);var t=AF(e),n=[];for(var r in e)r=="constructor"&&(t||!Vce.call(e,r))||n.push(r);return n}function MF(e){return AQ(e)?PQ(e,!0):Gce(e)}function Yce(e,t){return e&&I_(t,MF(t),e)}var NQ=typeof zs=="object"&&zs&&!zs.nodeType&&zs,l6=NQ&&typeof ao=="object"&&ao&&!ao.nodeType&&ao,Kce=l6&&l6.exports===NQ,u6=Kce?$c.Buffer:void 0,c6=u6?u6.allocUnsafe:void 0;function Xce(e,t){if(t)return e.slice();var n=e.length,r=c6?c6(n):new e.constructor(n);return e.copy(r),r}function MQ(e,t){var n=-1,r=e.length;for(t||(t=Array(r));++n=0)&&(n[a]=e[a]);return n}var c_=R.createContext(void 0);c_.displayName="FormikContext";var dfe=c_.Provider;c_.Consumer;function ffe(){var e=R.useContext(c_);return e}var wl=function(t){return typeof t=="function"},d_=function(t){return t!==null&&typeof t=="object"},pfe=function(t){return String(Math.floor(Number(t)))===t},FR=function(t){return Object.prototype.toString.call(t)==="[object String]"},hfe=function(t){return R.Children.count(t)===0},jR=function(t){return d_(t)&&wl(t.then)};function Ns(e,t,n,r){r===void 0&&(r=0);for(var a=mQ(t);e&&r=0?[]:{}}}return(i===0?e:a)[o[i]]===n?e:(n===void 0?delete a[o[i]]:a[o[i]]=n,i===0&&n===void 0&&delete r[o[i]],r)}function vQ(e,t,n,r){n===void 0&&(n=new WeakMap),r===void 0&&(r={});for(var a=0,i=Object.keys(e);a0?dt.map(function(ut){return z(ut,Ns(Oe,ut))}):[Promise.resolve("DO_NOT_DELETE_YOU_WILL_BE_FIRED")];return Promise.all(ft).then(function(ut){return ut.reduce(function(Nt,U,D){return U==="DO_NOT_DELETE_YOU_WILL_BE_FIRED"||U&&(Nt=xv(Nt,dt[D],U)),Nt},{})})},[z]),le=R.useCallback(function(Oe){return Promise.all([Q(Oe),y.validationSchema?j(Oe):{},y.validate?L(Oe):{}]).then(function(dt){var ft=dt[0],ut=dt[1],Nt=dt[2],U=Z$.all([ft,ut,Nt],{arrayMerge:yfe});return U})},[y.validate,y.validationSchema,Q,L,j]),re=yl(function(Oe){return Oe===void 0&&(Oe=N.values),I({type:"SET_ISVALIDATING",payload:!0}),le(Oe).then(function(dt){return C.current&&(I({type:"SET_ISVALIDATING",payload:!1}),I({type:"SET_ERRORS",payload:dt})),dt})});R.useEffect(function(){o&&C.current===!0&&av(h.current,y.initialValues)&&re(h.current)},[o,re]);var ge=R.useCallback(function(Oe){var dt=Oe&&Oe.values?Oe.values:h.current,ft=Oe&&Oe.errors?Oe.errors:v.current?v.current:y.initialErrors||{},ut=Oe&&Oe.touched?Oe.touched:E.current?E.current:y.initialTouched||{},Nt=Oe&&Oe.status?Oe.status:T.current?T.current:y.initialStatus;h.current=dt,v.current=ft,E.current=ut,T.current=Nt;var U=function(){I({type:"RESET_FORM",payload:{isSubmitting:!!Oe&&!!Oe.isSubmitting,errors:ft,touched:ut,status:Nt,values:dt,isValidating:!!Oe&&!!Oe.isValidating,submitCount:Oe&&Oe.submitCount&&typeof Oe.submitCount=="number"?Oe.submitCount:0}})};if(y.onReset){var D=y.onReset(N.values,Ge);jR(D)?D.then(U):U()}else U()},[y.initialErrors,y.initialStatus,y.initialTouched,y.onReset]);R.useEffect(function(){C.current===!0&&!av(h.current,y.initialValues)&&d&&(h.current=y.initialValues,ge(),o&&re(h.current))},[d,y.initialValues,ge,o,re]),R.useEffect(function(){d&&C.current===!0&&!av(v.current,y.initialErrors)&&(v.current=y.initialErrors||Im,I({type:"SET_ERRORS",payload:y.initialErrors||Im}))},[d,y.initialErrors]),R.useEffect(function(){d&&C.current===!0&&!av(E.current,y.initialTouched)&&(E.current=y.initialTouched||XC,I({type:"SET_TOUCHED",payload:y.initialTouched||XC}))},[d,y.initialTouched]),R.useEffect(function(){d&&C.current===!0&&!av(T.current,y.initialStatus)&&(T.current=y.initialStatus,I({type:"SET_STATUS",payload:y.initialStatus}))},[d,y.initialStatus,y.initialTouched]);var me=yl(function(Oe){if(k.current[Oe]&&wl(k.current[Oe].validate)){var dt=Ns(N.values,Oe),ft=k.current[Oe].validate(dt);return jR(ft)?(I({type:"SET_ISVALIDATING",payload:!0}),ft.then(function(ut){return ut}).then(function(ut){I({type:"SET_FIELD_ERROR",payload:{field:Oe,value:ut}}),I({type:"SET_ISVALIDATING",payload:!1})})):(I({type:"SET_FIELD_ERROR",payload:{field:Oe,value:ft}}),Promise.resolve(ft))}else if(y.validationSchema)return I({type:"SET_ISVALIDATING",payload:!0}),j(N.values,Oe).then(function(ut){return ut}).then(function(ut){I({type:"SET_FIELD_ERROR",payload:{field:Oe,value:Ns(ut,Oe)}}),I({type:"SET_ISVALIDATING",payload:!1})});return Promise.resolve()}),W=R.useCallback(function(Oe,dt){var ft=dt.validate;k.current[Oe]={validate:ft}},[]),G=R.useCallback(function(Oe){delete k.current[Oe]},[]),q=yl(function(Oe,dt){I({type:"SET_TOUCHED",payload:Oe});var ft=dt===void 0?a:dt;return ft?re(N.values):Promise.resolve()}),ce=R.useCallback(function(Oe){I({type:"SET_ERRORS",payload:Oe})},[]),H=yl(function(Oe,dt){var ft=wl(Oe)?Oe(N.values):Oe;I({type:"SET_VALUES",payload:ft});var ut=dt===void 0?n:dt;return ut?re(ft):Promise.resolve()}),Y=R.useCallback(function(Oe,dt){I({type:"SET_FIELD_ERROR",payload:{field:Oe,value:dt}})},[]),ie=yl(function(Oe,dt,ft){I({type:"SET_FIELD_VALUE",payload:{field:Oe,value:dt}});var ut=ft===void 0?n:ft;return ut?re(xv(N.values,Oe,dt)):Promise.resolve()}),J=R.useCallback(function(Oe,dt){var ft=dt,ut=Oe,Nt;if(!FR(Oe)){Oe.persist&&Oe.persist();var U=Oe.target?Oe.target:Oe.currentTarget,D=U.type,F=U.name,ae=U.id,Te=U.value,Fe=U.checked;U.outerHTML;var We=U.options,Tt=U.multiple;ft=dt||F||ae,ut=/number|range/.test(D)?(Nt=parseFloat(Te),isNaN(Nt)?"":Nt):/checkbox/.test(D)?wfe(Ns(N.values,ft),Fe,Te):We&&Tt?bfe(We):Te}ft&&ie(ft,ut)},[ie,N.values]),ee=yl(function(Oe){if(FR(Oe))return function(dt){return J(dt,Oe)};J(Oe)}),Z=yl(function(Oe,dt,ft){dt===void 0&&(dt=!0),I({type:"SET_FIELD_TOUCHED",payload:{field:Oe,value:dt}});var ut=ft===void 0?a:ft;return ut?re(N.values):Promise.resolve()}),ue=R.useCallback(function(Oe,dt){Oe.persist&&Oe.persist();var ft=Oe.target,ut=ft.name,Nt=ft.id;ft.outerHTML;var U=dt||ut||Nt;Z(U,!0)},[Z]),ke=yl(function(Oe){if(FR(Oe))return function(dt){return ue(dt,Oe)};ue(Oe)}),fe=R.useCallback(function(Oe){wl(Oe)?I({type:"SET_FORMIK_STATE",payload:Oe}):I({type:"SET_FORMIK_STATE",payload:function(){return Oe}})},[]),xe=R.useCallback(function(Oe){I({type:"SET_STATUS",payload:Oe})},[]),Ie=R.useCallback(function(Oe){I({type:"SET_ISSUBMITTING",payload:Oe})},[]),qe=yl(function(){return I({type:"SUBMIT_ATTEMPT"}),re().then(function(Oe){var dt=Oe instanceof Error,ft=!dt&&Object.keys(Oe).length===0;if(ft){var ut;try{if(ut=at(),ut===void 0)return}catch(Nt){throw Nt}return Promise.resolve(ut).then(function(Nt){return C.current&&I({type:"SUBMIT_SUCCESS"}),Nt}).catch(function(Nt){if(C.current)throw I({type:"SUBMIT_FAILURE"}),Nt})}else if(C.current&&(I({type:"SUBMIT_FAILURE"}),dt))throw Oe})}),tt=yl(function(Oe){Oe&&Oe.preventDefault&&wl(Oe.preventDefault)&&Oe.preventDefault(),Oe&&Oe.stopPropagation&&wl(Oe.stopPropagation)&&Oe.stopPropagation(),qe().catch(function(dt){console.warn("Warning: An unhandled error was caught from submitForm()",dt)})}),Ge={resetForm:ge,validateForm:re,validateField:me,setErrors:ce,setFieldError:Y,setFieldTouched:Z,setFieldValue:ie,setStatus:xe,setSubmitting:Ie,setTouched:q,setValues:H,setFormikState:fe,submitForm:qe},at=yl(function(){return f(N.values,Ge)}),Et=yl(function(Oe){Oe&&Oe.preventDefault&&wl(Oe.preventDefault)&&Oe.preventDefault(),Oe&&Oe.stopPropagation&&wl(Oe.stopPropagation)&&Oe.stopPropagation(),ge()}),kt=R.useCallback(function(Oe){return{value:Ns(N.values,Oe),error:Ns(N.errors,Oe),touched:!!Ns(N.touched,Oe),initialValue:Ns(h.current,Oe),initialTouched:!!Ns(E.current,Oe),initialError:Ns(v.current,Oe)}},[N.errors,N.touched,N.values]),xt=R.useCallback(function(Oe){return{setValue:function(ft,ut){return ie(Oe,ft,ut)},setTouched:function(ft,ut){return Z(Oe,ft,ut)},setError:function(ft){return Y(Oe,ft)}}},[ie,Z,Y]),Rt=R.useCallback(function(Oe){var dt=d_(Oe),ft=dt?Oe.name:Oe,ut=Ns(N.values,ft),Nt={name:ft,value:ut,onChange:ee,onBlur:ke};if(dt){var U=Oe.type,D=Oe.value,F=Oe.as,ae=Oe.multiple;U==="checkbox"?D===void 0?Nt.checked=!!ut:(Nt.checked=!!(Array.isArray(ut)&&~ut.indexOf(D)),Nt.value=D):U==="radio"?(Nt.checked=ut===D,Nt.value=D):F==="select"&&ae&&(Nt.value=Nt.value||[],Nt.multiple=!0)}return Nt},[ke,ee,N.values]),cn=R.useMemo(function(){return!av(h.current,N.values)},[h.current,N.values]),qt=R.useMemo(function(){return typeof l<"u"?cn?N.errors&&Object.keys(N.errors).length===0:l!==!1&&wl(l)?l(y):l:N.errors&&Object.keys(N.errors).length===0},[l,cn,N.errors,y]),Wt=hi({},N,{initialValues:h.current,initialErrors:v.current,initialTouched:E.current,initialStatus:T.current,handleBlur:ke,handleChange:ee,handleReset:Et,handleSubmit:tt,resetForm:ge,setErrors:ce,setFormikState:fe,setFieldTouched:Z,setFieldValue:ie,setFieldError:Y,setStatus:xe,setSubmitting:Ie,setTouched:q,setValues:H,submitForm:qe,validateForm:re,validateField:me,isValid:qt,dirty:cn,unregisterField:G,registerField:W,getFieldProps:Rt,getFieldMeta:kt,getFieldHelpers:xt,validateOnBlur:a,validateOnChange:n,validateOnMount:o});return Wt}function ls(e){var t=tf(e),n=e.component,r=e.children,a=e.render,i=e.innerRef;return R.useImperativeHandle(i,function(){return t}),R.createElement(dfe,{value:t},n?R.createElement(n,t):a?a(t):r?wl(r)?r(t):hfe(r)?null:R.Children.only(r):null)}function gfe(e){var t={};if(e.inner){if(e.inner.length===0)return xv(t,e.path,e.message);for(var a=e.inner,n=Array.isArray(a),r=0,a=n?a:a[Symbol.iterator]();;){var i;if(n){if(r>=a.length)break;i=a[r++]}else{if(r=a.next(),r.done)break;i=r.value}var o=i;Ns(t,o.path)||(t=xv(t,o.path,o.message))}}return t}function vfe(e,t,n,r){n===void 0&&(n=!1);var a=aL(e);return t[n?"validateSync":"validate"](a,{abortEarly:!1,context:a})}function aL(e){var t=Array.isArray(e)?[]:{};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var r=String(n);Array.isArray(e[r])===!0?t[r]=e[r].map(function(a){return Array.isArray(a)===!0||_U(a)?aL(a):a!==""?a:void 0}):_U(e[r])?t[r]=aL(e[r]):t[r]=e[r]!==""?e[r]:void 0}return t}function yfe(e,t,n){var r=e.slice();return t.forEach(function(i,o){if(typeof r[o]>"u"){var l=n.clone!==!1,u=l&&n.isMergeableObject(i);r[o]=u?Z$(Array.isArray(i)?[]:{},i,n):i}else n.isMergeableObject(i)?r[o]=Z$(e[o],i,n):e.indexOf(i)===-1&&r.push(i)}),r}function bfe(e){return Array.from(e).filter(function(t){return t.selected}).map(function(t){return t.value})}function wfe(e,t,n){if(typeof e=="boolean")return!!t;var r=[],a=!1,i=-1;if(Array.isArray(e))r=e,i=e.indexOf(n),a=i>=0;else if(!n||n=="true"||n=="false")return!!t;return t&&n&&!a?r.concat(n):a?r.slice(0,i).concat(r.slice(i+1)):r}var Sfe=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u"?R.useLayoutEffect:R.useEffect;function yl(e){var t=R.useRef(e);return Sfe(function(){t.current=e}),R.useCallback(function(){for(var n=arguments.length,r=new Array(n),a=0;a(e.NewEntity="new_entity",e.SidebarToggle="sidebarToggle",e.NewChildEntity="new_child_entity",e.EditEntity="edit_entity",e.ViewQuestions="view_questions",e.ExportTable="export_table",e.CommonBack="common_back",e.StopStart="StopStart",e.Delete="delete",e.Select1Index="select1_index",e.Select2Index="select2_index",e.Select3Index="select3_index",e.Select4Index="select4_index",e.Select5Index="select5_index",e.Select6Index="select6_index",e.Select7Index="select7_index",e.Select8Index="select8_index",e.Select9Index="select9_index",e.ToggleLock="l",e))(Ir||{});function iL(){if(typeof window>"u")return"mac";let e=window==null?void 0:window.navigator.userAgent,t=window==null?void 0:window.navigator.platform,n=["Macintosh","MacIntel","MacPPC","Mac68K"],r=["Win32","Win64","Windows","WinCE"],a=["iPhone","iPad","iPod"],i="mac";return n.indexOf(t)!==-1?i="mac":a.indexOf(t)!==-1?i="ios":r.indexOf(t)!==-1?i="windows":/Android/.test(e)?i="android":!i&&/Linux/.test(t)?i="linux":i="web",i}const Pt=iL(),it={edit:{default:"ios-theme/icons/edit.svg"},add:{default:"ios-theme/icons/add.svg"},cancel:{default:"ios-theme/icons/cancel.svg"},delete:{default:"ios-theme/icons/delete.svg"},entity:{default:"ios-theme/icons/entity.svg"},left:{default:"ios-theme/icons/left.svg"},menu:{default:"ios-theme/icons/menu.svg"},backup:{default:"ios-theme/icons/backup.svg"},right:{default:"ios-theme/icons/right.svg"},settings:{default:"ios-theme/icons/settings.svg"},user:{default:"ios-theme/icons/user.svg"},export:{default:"ios-theme/icons/export.svg"},up:{default:"ios-theme/icons/up.svg"},dataNode:{default:"ios-theme/icons/dnode.svg"},ctrlSheet:{default:"ios-theme/icons/ctrlsheet.svg"},gpiomode:{default:"ios-theme/icons/gpiomode.svg"},gpiostate:{default:"ios-theme/icons/gpiostate.svg"},down:{default:"ios-theme/icons/down.svg"},turnoff:{default:"ios-theme/icons/turnoff.svg"},mqtt:{default:"ios-theme/icons/mqtt.svg"},cart:{default:"ios-theme/icons/cart.svg"},questionBank:{default:"ios-theme/icons/questions.svg"},dashboard:{default:"ios-theme/icons/dashboard.svg"},country:{default:"ios-theme/icons/country.svg"},order:{default:"ios-theme/icons/order.svg"},province:{default:"ios-theme/icons/province.svg"},city:{default:"ios-theme/icons/city.svg"},about:{default:"ios-theme/icons/about.svg"},sms:{default:"ios-theme/icons/sms.svg"},product:{default:"ios-theme/icons/product.svg"},discount:{default:"ios-theme/icons/discount.svg"},tag:{default:"ios-theme/icons/tag.svg"},category:{default:"ios-theme/icons/category.svg"},brand:{default:"ios-theme/icons/brand.svg"},form:{default:"ios-theme/icons/form.svg"}},xu={dashboard:it.dashboard[Pt]?it.dashboard[Pt]:it.dashboard.default,up:it.up[Pt]?it.up[Pt]:it.up.default,questionBank:it.questionBank[Pt]?it.questionBank[Pt]:it.questionBank.default,down:it.down[Pt]?it.down[Pt]:it.down.default,edit:it.edit[Pt]?it.edit[Pt]:it.edit.default,add:it.add[Pt]?it.add[Pt]:it.add.default,cancel:it.cancel[Pt]?it.cancel[Pt]:it.cancel.default,delete:it.delete[Pt]?it.delete[Pt]:it.delete.default,discount:it.discount[Pt]?it.discount[Pt]:it.discount.default,cart:it.cart[Pt]?it.cart[Pt]:it.cart.default,entity:it.entity[Pt]?it.entity[Pt]:it.entity.default,sms:it.sms[Pt]?it.sms[Pt]:it.sms.default,left:it.left[Pt]?it.left[Pt]:it.left.default,brand:it.brand[Pt]?it.brand[Pt]:it.brand.default,menu:it.menu[Pt]?it.menu[Pt]:it.menu.default,right:it.right[Pt]?it.right[Pt]:it.right.default,settings:it.settings[Pt]?it.settings[Pt]:it.settings.default,dataNode:it.dataNode[Pt]?it.dataNode[Pt]:it.dataNode.default,user:it.user[Pt]?it.user[Pt]:it.user.default,city:it.city[Pt]?it.city[Pt]:it.city.default,province:it.province[Pt]?it.province[Pt]:it.province.default,about:it.about[Pt]?it.about[Pt]:it.about.default,turnoff:it.turnoff[Pt]?it.turnoff[Pt]:it.turnoff.default,ctrlSheet:it.ctrlSheet[Pt]?it.ctrlSheet[Pt]:it.ctrlSheet.default,country:it.country[Pt]?it.country[Pt]:it.country.default,export:it.export[Pt]?it.export[Pt]:it.export.default,gpio:it.ctrlSheet[Pt]?it.ctrlSheet[Pt]:it.ctrlSheet.default,order:it.order[Pt]?it.order[Pt]:it.order.default,mqtt:it.mqtt[Pt]?it.mqtt[Pt]:it.mqtt.default,tag:it.tag[Pt]?it.tag[Pt]:it.tag.default,product:it.product[Pt]?it.product[Pt]:it.product.default,category:it.category[Pt]?it.category[Pt]:it.category.default,form:it.form[Pt]?it.form[Pt]:it.form.default,gpiomode:it.gpiomode[Pt]?it.gpiomode[Pt]:it.gpiomode.default,backup:it.backup[Pt]?it.backup[Pt]:it.backup.default,gpiostate:it.gpiostate[Pt]?it.gpiostate[Pt]:it.gpiostate.default};function Fs(e){const t=kr.PUBLIC_URL;return e.startsWith("$")?t+xu[e.substr(1)]:e.startsWith(t)?e:t+e}function n6(){const e=At();return sr(),w.jsx(w.Fragment,{children:w.jsxs("div",{className:"not-found-pagex",children:[w.jsx("img",{src:Fs("/common/error.svg")}),w.jsx("div",{className:"content",children:w.jsx("p",{children:e.not_found_404})})]})})}function Tfe(){const{locale:e,asPath:t}=sr();R.useEffect(()=>{var n;(n=document.querySelector("html"))==null||n.setAttribute("dir",["fa","ar"].includes(e)?"rtl":"ltr")},[t])}var oL=(e=>(e.Green="#00bd00",e.Red="#ff0313",e.Orange="#fa7a00",e.Yellow="#f4b700",e.Blue="#0072ff",e.Purple="#ad41d1",e.Grey="#717176",e))(oL||{});function sL(e){"@babel/helpers - typeof";return sL=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},sL(e)}function Cfe(e,t,n){return Object.defineProperty(e,"prototype",{writable:!1}),e}function kfe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function xfe(e,t,n){return t=zS(t),_fe(e,cF()?Reflect.construct(t,n||[],zS(e).constructor):t.apply(e,n))}function _fe(e,t){if(t&&(sL(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Ofe(e)}function Ofe(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Rfe(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&WS(e,t)}function lL(e){var t=typeof Map=="function"?new Map:void 0;return lL=function(r){if(r===null||!Afe(r))return r;if(typeof r!="function")throw new TypeError("Super expression must either be null or a function");if(typeof t<"u"){if(t.has(r))return t.get(r);t.set(r,a)}function a(){return Pfe(r,arguments,zS(this).constructor)}return a.prototype=Object.create(r.prototype,{constructor:{value:a,enumerable:!1,writable:!0,configurable:!0}}),WS(a,r)},lL(e)}function Pfe(e,t,n){if(cF())return Reflect.construct.apply(null,arguments);var r=[null];r.push.apply(r,t);var a=new(e.bind.apply(e,r));return n&&WS(a,n.prototype),a}function cF(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(cF=function(){return!!e})()}function Afe(e){try{return Function.toString.call(e).indexOf("[native code]")!==-1}catch{return typeof e=="function"}}function WS(e,t){return WS=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,a){return r.__proto__=a,r},WS(e,t)}function zS(e){return zS=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},zS(e)}var QC=(function(e){function t(n){var r,a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null,i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null,o=arguments.length>3&&arguments[3]!==void 0?arguments[3]:null;if(kfe(this,t),r=xfe(this,t,[n]),r.originalRequest=i,r.originalResponse=o,r.causingError=a,a!=null&&(n+=", caused by ".concat(a.toString())),i!=null){var l=i.getHeader("X-Request-ID")||"n/a",u=i.getMethod(),d=i.getURL(),f=o?o.getStatus():"n/a",g=o?o.getBody()||"":"n/a";n+=", originated from request (method: ".concat(u,", url: ").concat(d,", response code: ").concat(f,", response text: ").concat(g,", request id: ").concat(l,")")}return r.message=n,r}return Rfe(t,e),Cfe(t)})(lL(Error));function qS(e){"@babel/helpers - typeof";return qS=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},qS(e)}function Nfe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Mfe(e,t){for(var n=0;n{let t={};return e.forEach((n,r)=>t[n]=r),t})(hS),Ufe=/^(?:[A-Za-z\d+\/]{4})*?(?:[A-Za-z\d+\/]{2}(?:==)?|[A-Za-z\d+\/]{3}=?)?$/,Wi=String.fromCharCode.bind(String),i6=typeof Uint8Array.from=="function"?Uint8Array.from.bind(Uint8Array):e=>new Uint8Array(Array.prototype.slice.call(e,0)),bQ=e=>e.replace(/=/g,"").replace(/[+\/]/g,t=>t=="+"?"-":"_"),wQ=e=>e.replace(/[^A-Za-z0-9\+\/]/g,""),SQ=e=>{let t,n,r,a,i="";const o=e.length%3;for(let l=0;l255||(r=e.charCodeAt(l++))>255||(a=e.charCodeAt(l++))>255)throw new TypeError("invalid character found");t=n<<16|r<<8|a,i+=hS[t>>18&63]+hS[t>>12&63]+hS[t>>6&63]+hS[t&63]}return o?i.slice(0,o-3)+"===".substring(o):i},dF=typeof btoa=="function"?e=>btoa(e):b0?e=>Buffer.from(e,"binary").toString("base64"):SQ,uL=b0?e=>Buffer.from(e).toString("base64"):e=>{let n=[];for(let r=0,a=e.length;rt?bQ(uL(e)):uL(e),Bfe=e=>{if(e.length<2){var t=e.charCodeAt(0);return t<128?e:t<2048?Wi(192|t>>>6)+Wi(128|t&63):Wi(224|t>>>12&15)+Wi(128|t>>>6&63)+Wi(128|t&63)}else{var t=65536+(e.charCodeAt(0)-55296)*1024+(e.charCodeAt(1)-56320);return Wi(240|t>>>18&7)+Wi(128|t>>>12&63)+Wi(128|t>>>6&63)+Wi(128|t&63)}},Wfe=/[\uD800-\uDBFF][\uDC00-\uDFFFF]|[^\x00-\x7F]/g,EQ=e=>e.replace(Wfe,Bfe),o6=b0?e=>Buffer.from(e,"utf8").toString("base64"):a6?e=>uL(a6.encode(e)):e=>dF(EQ(e)),Gb=(e,t=!1)=>t?bQ(o6(e)):o6(e),s6=e=>Gb(e,!0),zfe=/[\xC0-\xDF][\x80-\xBF]|[\xE0-\xEF][\x80-\xBF]{2}|[\xF0-\xF7][\x80-\xBF]{3}/g,qfe=e=>{switch(e.length){case 4:var t=(7&e.charCodeAt(0))<<18|(63&e.charCodeAt(1))<<12|(63&e.charCodeAt(2))<<6|63&e.charCodeAt(3),n=t-65536;return Wi((n>>>10)+55296)+Wi((n&1023)+56320);case 3:return Wi((15&e.charCodeAt(0))<<12|(63&e.charCodeAt(1))<<6|63&e.charCodeAt(2));default:return Wi((31&e.charCodeAt(0))<<6|63&e.charCodeAt(1))}},TQ=e=>e.replace(zfe,qfe),CQ=e=>{if(e=e.replace(/\s+/g,""),!Ufe.test(e))throw new TypeError("malformed base64.");e+="==".slice(2-(e.length&3));let t,n="",r,a;for(let i=0;i>16&255):a===64?Wi(t>>16&255,t>>8&255):Wi(t>>16&255,t>>8&255,t&255);return n},fF=typeof atob=="function"?e=>atob(wQ(e)):b0?e=>Buffer.from(e,"base64").toString("binary"):CQ,kQ=b0?e=>i6(Buffer.from(e,"base64")):e=>i6(fF(e).split("").map(t=>t.charCodeAt(0))),xQ=e=>kQ(_Q(e)),Hfe=b0?e=>Buffer.from(e,"base64").toString("utf8"):r6?e=>r6.decode(kQ(e)):e=>TQ(fF(e)),_Q=e=>wQ(e.replace(/[-_]/g,t=>t=="-"?"+":"/")),cL=e=>Hfe(_Q(e)),Vfe=e=>{if(typeof e!="string")return!1;const t=e.replace(/\s+/g,"").replace(/={0,2}$/,"");return!/[^\s0-9a-zA-Z\+/]/.test(t)||!/[^\s0-9a-zA-Z\-_]/.test(t)},OQ=e=>({value:e,enumerable:!1,writable:!0,configurable:!0}),RQ=function(){const e=(t,n)=>Object.defineProperty(String.prototype,t,OQ(n));e("fromBase64",function(){return cL(this)}),e("toBase64",function(t){return Gb(this,t)}),e("toBase64URI",function(){return Gb(this,!0)}),e("toBase64URL",function(){return Gb(this,!0)}),e("toUint8Array",function(){return xQ(this)})},PQ=function(){const e=(t,n)=>Object.defineProperty(Uint8Array.prototype,t,OQ(n));e("toBase64",function(t){return Ak(this,t)}),e("toBase64URI",function(){return Ak(this,!0)}),e("toBase64URL",function(){return Ak(this,!0)})},Gfe=()=>{RQ(),PQ()},Yfe={version:yQ,VERSION:Ffe,atob:fF,atobPolyfill:CQ,btoa:dF,btoaPolyfill:SQ,fromBase64:cL,toBase64:Gb,encode:Gb,encodeURI:s6,encodeURL:s6,utob:EQ,btou:TQ,decode:cL,isValid:Vfe,fromUint8Array:Ak,toUint8Array:xQ,extendString:RQ,extendUint8Array:PQ,extendBuiltins:Gfe};var UR,l6;function Kfe(){return l6||(l6=1,UR=function(t,n){if(n=n.split(":")[0],t=+t,!t)return!1;switch(n){case"http":case"ws":return t!==80;case"https":case"wss":return t!==443;case"ftp":return t!==21;case"gopher":return t!==70;case"file":return!1}return t!==0}),UR}var ZC={},u6;function Xfe(){if(u6)return ZC;u6=1;var e=Object.prototype.hasOwnProperty,t;function n(o){try{return decodeURIComponent(o.replace(/\+/g," "))}catch{return null}}function r(o){try{return encodeURIComponent(o)}catch{return null}}function a(o){for(var l=/([^=?#&]+)=?([^&]*)/g,u={},d;d=l.exec(o);){var f=n(d[1]),g=n(d[2]);f===null||g===null||f in u||(u[f]=g)}return u}function i(o,l){l=l||"";var u=[],d,f;typeof l!="string"&&(l="?");for(f in o)if(e.call(o,f)){if(d=o[f],!d&&(d===null||d===t||isNaN(d))&&(d=""),f=r(f),d=r(d),f===null||d===null)continue;u.push(f+"="+d)}return u.length?l+u.join("&"):""}return ZC.stringify=i,ZC.parse=a,ZC}var BR,c6;function Qfe(){if(c6)return BR;c6=1;var e=Kfe(),t=Xfe(),n=/^[\x00-\x20\u00a0\u1680\u2000-\u200a\u2028\u2029\u202f\u205f\u3000\ufeff]+/,r=/[\n\r\t]/g,a=/^[A-Za-z][A-Za-z0-9+-.]*:\/\//,i=/:\d+$/,o=/^([a-z][a-z0-9.+-]*:)?(\/\/)?([\\/]+)?([\S\s]*)/i,l=/^[a-zA-Z]:/;function u(k){return(k||"").toString().replace(n,"")}var d=[["#","hash"],["?","query"],function(_,A){return y(A.protocol)?_.replace(/\\/g,"/"):_},["/","pathname"],["@","auth",1],[NaN,"host",void 0,1,1],[/:(\d*)$/,"port",void 0,1],[NaN,"hostname",void 0,1,1]],f={hash:1,query:1};function g(k){var _;typeof window<"u"?_=window:typeof _l<"u"?_=_l:typeof self<"u"?_=self:_={};var A=_.location||{};k=k||A;var P={},N=typeof k,I;if(k.protocol==="blob:")P=new E(unescape(k.pathname),{});else if(N==="string"){P=new E(k,{});for(I in f)delete P[I]}else if(N==="object"){for(I in k)I in f||(P[I]=k[I]);P.slashes===void 0&&(P.slashes=a.test(k.href))}return P}function y(k){return k==="file:"||k==="ftp:"||k==="http:"||k==="https:"||k==="ws:"||k==="wss:"}function h(k,_){k=u(k),k=k.replace(r,""),_=_||{};var A=o.exec(k),P=A[1]?A[1].toLowerCase():"",N=!!A[2],I=!!A[3],L=0,j;return N?I?(j=A[2]+A[3]+A[4],L=A[2].length+A[3].length):(j=A[2]+A[4],L=A[2].length):I?(j=A[3]+A[4],L=A[3].length):j=A[4],P==="file:"?L>=2&&(j=j.slice(2)):y(P)?j=A[4]:P?N&&(j=j.slice(2)):L>=2&&y(_.protocol)&&(j=A[4]),{protocol:P,slashes:N||y(P),slashesCount:L,rest:j}}function v(k,_){if(k==="")return _;for(var A=(_||"/").split("/").slice(0,-1).concat(k.split("/")),P=A.length,N=A[P-1],I=!1,L=0;P--;)A[P]==="."?A.splice(P,1):A[P]===".."?(A.splice(P,1),L++):L&&(P===0&&(I=!0),A.splice(P,1),L--);return I&&A.unshift(""),(N==="."||N==="..")&&A.push(""),A.join("/")}function E(k,_,A){if(k=u(k),k=k.replace(r,""),!(this instanceof E))return new E(k,_,A);var P,N,I,L,j,z,Q=d.slice(),le=typeof _,re=this,ge=0;for(le!=="object"&&le!=="string"&&(A=_,_=null),A&&typeof A!="function"&&(A=t.parse),_=g(_),N=h(k||"",_),P=!N.protocol&&!N.slashes,re.slashes=N.slashes||P&&_.slashes,re.protocol=N.protocol||_.protocol||"",k=N.rest,(N.protocol==="file:"&&(N.slashesCount!==2||l.test(k))||!N.slashes&&(N.protocol||N.slashesCount<2||!y(re.protocol)))&&(Q[3]=[/(.*)/,"pathname"]);ge=0;--H){var Y=this.tryEntries[H],ie=Y.completion;if(Y.tryLoc==="root")return ce("end");if(Y.tryLoc<=this.prev){var J=r.call(Y,"catchLoc"),ee=r.call(Y,"finallyLoc");if(J&&ee){if(this.prev=0;--ce){var H=this.tryEntries[ce];if(H.tryLoc<=this.prev&&r.call(H,"finallyLoc")&&this.prev=0;--q){var ce=this.tryEntries[q];if(ce.finallyLoc===G)return this.complete(ce.completion,ce.afterLoc),re(ce),T}},catch:function(G){for(var q=this.tryEntries.length-1;q>=0;--q){var ce=this.tryEntries[q];if(ce.tryLoc===G){var H=ce.completion;if(H.type==="throw"){var Y=H.arg;re(ce)}return Y}}throw Error("illegal catch attempt")},delegateYield:function(G,q,ce){return this.delegate={iterator:me(G),resultName:q,nextLoc:ce},this.method==="next"&&(this.arg=e),T}},t}function d6(e,t,n,r,a,i,o){try{var l=e[i](o),u=l.value}catch(d){n(d);return}l.done?t(u):Promise.resolve(u).then(r,a)}function tpe(e){return function(){var t=this,n=arguments;return new Promise(function(r,a){var i=e.apply(t,n);function o(u){d6(i,r,a,o,l,"next",u)}function l(u){d6(i,r,a,o,l,"throw",u)}o(void 0)})}}function AQ(e,t){return ape(e)||rpe(e,t)||NQ(e,t)||npe()}function npe(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. -In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function rpe(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,a,i,o,l=[],u=!0,d=!1;try{if(i=(n=n.call(e)).next,t!==0)for(;!(u=(r=i.call(n)).done)&&(l.push(r.value),l.length!==t);u=!0);}catch(f){d=!0,a=f}finally{try{if(!u&&n.return!=null&&(o=n.return(),Object(o)!==o))return}finally{if(d)throw a}}return l}}function ape(e){if(Array.isArray(e))return e}function Mv(e){"@babel/helpers - typeof";return Mv=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Mv(e)}function ipe(e,t){var n=typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=NQ(e))||t){n&&(e=n);var r=0,a=function(){};return{s:a,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(d){throw d},f:a}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. -In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var i=!0,o=!1,l;return{s:function(){n=n.call(e)},n:function(){var d=n.next();return i=d.done,d},e:function(d){o=!0,l=d},f:function(){try{!i&&n.return!=null&&n.return()}finally{if(o)throw l}}}}function NQ(e,t){if(e){if(typeof e=="string")return f6(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return f6(e,t)}}function f6(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n1)for(var i=0,o=["uploadUrl","uploadSize","uploadLengthDeferred"];i1||n._parallelUploadUrls!=null?n._startParallelUpload():n._startSingleUpload()}).catch(function(u){n._emitError(u)})}},{key:"_startParallelUpload",value:function(){var n,r=this,a=this._size,i=0;this._parallelUploads=[];var o=this._parallelUploadUrls!=null?this._parallelUploadUrls.length:this.options.parallelUploads,l=(n=this.options.parallelUploadBoundaries)!==null&&n!==void 0?n:fpe(this._source.size,o);this._parallelUploadUrls&&l.forEach(function(f,g){f.uploadUrl=r._parallelUploadUrls[g]||null}),this._parallelUploadUrls=new Array(l.length);var u=l.map(function(f,g){var y=0;return r._source.slice(f.start,f.end).then(function(h){var v=h.value;return new Promise(function(E,T){var C=gb(gb({},r.options),{},{uploadUrl:f.uploadUrl||null,storeFingerprintForResuming:!1,removeFingerprintOnSuccess:!1,parallelUploads:1,parallelUploadBoundaries:null,metadata:r.options.metadataForPartialUploads,headers:gb(gb({},r.options.headers),{},{"Upload-Concat":"partial"}),onSuccess:E,onError:T,onProgress:function(A){i=i-y+A,y=A,r._emitProgress(i,a)},onUploadUrlAvailable:function(){r._parallelUploadUrls[g]=k.url,r._parallelUploadUrls.filter(function(A){return!!A}).length===l.length&&r._saveUploadInUrlStorage()}}),k=new e(v,C);k.start(),r._parallelUploads.push(k)})})}),d;Promise.all(u).then(function(){d=r._openRequest("POST",r.options.endpoint),d.setHeader("Upload-Concat","final;".concat(r._parallelUploadUrls.join(" ")));var f=m6(r.options.metadata);return f!==""&&d.setHeader("Upload-Metadata",f),r._sendRequest(d,null)}).then(function(f){if(!Rb(f.getStatus(),200)){r._emitHttpError(d,f,"tus: unexpected response while creating upload");return}var g=f.getHeader("Location");if(g==null){r._emitHttpError(d,f,"tus: invalid or missing Location header");return}r.url=b6(r.options.endpoint,g),"Created upload at ".concat(r.url),r._emitSuccess(f)}).catch(function(f){r._emitError(f)})}},{key:"_startSingleUpload",value:function(){if(this._aborted=!1,this.url!=null){"Resuming upload from previous URL: ".concat(this.url),this._resumeUpload();return}if(this.options.uploadUrl!=null){"Resuming upload from provided URL: ".concat(this.options.uploadUrl),this.url=this.options.uploadUrl,this._resumeUpload();return}this._createUpload()}},{key:"abort",value:function(n){var r=this;if(this._parallelUploads!=null){var a=ipe(this._parallelUploads),i;try{for(a.s();!(i=a.n()).done;){var o=i.value;o.abort(n)}}catch(l){a.e(l)}finally{a.f()}}return this._req!==null&&this._req.abort(),this._aborted=!0,this._retryTimeout!=null&&(clearTimeout(this._retryTimeout),this._retryTimeout=null),!n||this.url==null?Promise.resolve():e.terminate(this.url,this.options).then(function(){return r._removeFromUrlStorage()})}},{key:"_emitHttpError",value:function(n,r,a,i){this._emitError(new QC(a,i,n,r))}},{key:"_emitError",value:function(n){var r=this;if(!this._aborted){if(this.options.retryDelays!=null){var a=this._offset!=null&&this._offset>this._offsetBeforeRetry;if(a&&(this._retryAttempt=0),y6(n,this._retryAttempt,this.options)){var i=this.options.retryDelays[this._retryAttempt++];this._offsetBeforeRetry=this._offset,this._retryTimeout=setTimeout(function(){r.start()},i);return}}if(typeof this.options.onError=="function")this.options.onError(n);else throw n}}},{key:"_emitSuccess",value:function(n){this.options.removeFingerprintOnSuccess&&this._removeFromUrlStorage(),typeof this.options.onSuccess=="function"&&this.options.onSuccess({lastResponse:n})}},{key:"_emitProgress",value:function(n,r){typeof this.options.onProgress=="function"&&this.options.onProgress(n,r)}},{key:"_emitChunkComplete",value:function(n,r,a){typeof this.options.onChunkComplete=="function"&&this.options.onChunkComplete(n,r,a)}},{key:"_createUpload",value:function(){var n=this;if(!this.options.endpoint){this._emitError(new Error("tus: unable to create upload because no endpoint is provided"));return}var r=this._openRequest("POST",this.options.endpoint);this.options.uploadLengthDeferred?r.setHeader("Upload-Defer-Length","1"):r.setHeader("Upload-Length","".concat(this._size));var a=m6(this.options.metadata);a!==""&&r.setHeader("Upload-Metadata",a);var i;this.options.uploadDataDuringCreation&&!this.options.uploadLengthDeferred?(this._offset=0,i=this._addChunkToRequest(r)):((this.options.protocol===Mk||this.options.protocol===mS)&&r.setHeader("Upload-Complete","?0"),i=this._sendRequest(r,null)),i.then(function(o){if(!Rb(o.getStatus(),200)){n._emitHttpError(r,o,"tus: unexpected response while creating upload");return}var l=o.getHeader("Location");if(l==null){n._emitHttpError(r,o,"tus: invalid or missing Location header");return}if(n.url=b6(n.options.endpoint,l),"Created upload at ".concat(n.url),typeof n.options.onUploadUrlAvailable=="function"&&n.options.onUploadUrlAvailable(),n._size===0){n._emitSuccess(o),n._source.close();return}n._saveUploadInUrlStorage().then(function(){n.options.uploadDataDuringCreation?n._handleUploadResponse(r,o):(n._offset=0,n._performUpload())})}).catch(function(o){n._emitHttpError(r,null,"tus: failed to create upload",o)})}},{key:"_resumeUpload",value:function(){var n=this,r=this._openRequest("HEAD",this.url),a=this._sendRequest(r,null);a.then(function(i){var o=i.getStatus();if(!Rb(o,200)){if(o===423){n._emitHttpError(r,i,"tus: upload is currently locked; retry later");return}if(Rb(o,400)&&n._removeFromUrlStorage(),!n.options.endpoint){n._emitHttpError(r,i,"tus: unable to resume upload (new upload cannot be created without an endpoint)");return}n.url=null,n._createUpload();return}var l=Number.parseInt(i.getHeader("Upload-Offset"),10);if(Number.isNaN(l)){n._emitHttpError(r,i,"tus: invalid or missing offset value");return}var u=Number.parseInt(i.getHeader("Upload-Length"),10);if(Number.isNaN(u)&&!n.options.uploadLengthDeferred&&n.options.protocol===Nk){n._emitHttpError(r,i,"tus: invalid or missing length value");return}typeof n.options.onUploadUrlAvailable=="function"&&n.options.onUploadUrlAvailable(),n._saveUploadInUrlStorage().then(function(){if(l===u){n._emitProgress(u,u),n._emitSuccess(i);return}n._offset=l,n._performUpload()})}).catch(function(i){n._emitHttpError(r,null,"tus: failed to resume upload",i)})}},{key:"_performUpload",value:function(){var n=this;if(!this._aborted){var r;this.options.overridePatchMethod?(r=this._openRequest("POST",this.url),r.setHeader("X-HTTP-Method-Override","PATCH")):r=this._openRequest("PATCH",this.url),r.setHeader("Upload-Offset","".concat(this._offset));var a=this._addChunkToRequest(r);a.then(function(i){if(!Rb(i.getStatus(),200)){n._emitHttpError(r,i,"tus: unexpected response while uploading chunk");return}n._handleUploadResponse(r,i)}).catch(function(i){n._aborted||n._emitHttpError(r,null,"tus: failed to upload chunk at offset ".concat(n._offset),i)})}}},{key:"_addChunkToRequest",value:function(n){var r=this,a=this._offset,i=this._offset+this.options.chunkSize;return n.setProgressHandler(function(o){r._emitProgress(a+o,r._size)}),this.options.protocol===Nk?n.setHeader("Content-Type","application/offset+octet-stream"):this.options.protocol===mS&&n.setHeader("Content-Type","application/partial-upload"),(i===Number.POSITIVE_INFINITY||i>this._size)&&!this.options.uploadLengthDeferred&&(i=this._size),this._source.slice(a,i).then(function(o){var l=o.value,u=o.done,d=l!=null&&l.size?l.size:0;r.options.uploadLengthDeferred&&u&&(r._size=r._offset+d,n.setHeader("Upload-Length","".concat(r._size)));var f=r._offset+d;return!r.options.uploadLengthDeferred&&u&&f!==r._size?Promise.reject(new Error("upload was configured with a size of ".concat(r._size," bytes, but the source is done after ").concat(f," bytes"))):l===null?r._sendRequest(n):((r.options.protocol===Mk||r.options.protocol===mS)&&n.setHeader("Upload-Complete",u?"?1":"?0"),r._emitProgress(r._offset,r._size),r._sendRequest(n,l))})}},{key:"_handleUploadResponse",value:function(n,r){var a=Number.parseInt(r.getHeader("Upload-Offset"),10);if(Number.isNaN(a)){this._emitHttpError(n,r,"tus: invalid or missing offset value");return}if(this._emitProgress(a,this._size),this._emitChunkComplete(a-this._offset,a,this._size),this._offset=a,a===this._size){this._emitSuccess(r),this._source.close();return}this._performUpload()}},{key:"_openRequest",value:function(n,r){var a=g6(n,r,this.options);return this._req=a,a}},{key:"_removeFromUrlStorage",value:function(){var n=this;this._urlStorageKey&&(this._urlStorage.removeUpload(this._urlStorageKey).catch(function(r){n._emitError(r)}),this._urlStorageKey=null)}},{key:"_saveUploadInUrlStorage",value:function(){var n=this;if(!this.options.storeFingerprintForResuming||!this._fingerprint||this._urlStorageKey!==null)return Promise.resolve();var r={size:this._size,metadata:this.options.metadata,creationTime:new Date().toString()};return this._parallelUploads?r.parallelUploadUrls=this._parallelUploadUrls:r.uploadUrl=this.url,this._urlStorage.addUpload(this._fingerprint,r).then(function(a){n._urlStorageKey=a})}},{key:"_sendRequest",value:function(n){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;return v6(n,r,this.options)}}],[{key:"terminate",value:function(n){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},a=g6("DELETE",n,r);return v6(a,null,r).then(function(i){if(i.getStatus()!==204)throw new QC("tus: unexpected response while terminating upload",null,a,i)}).catch(function(i){if(i instanceof QC||(i=new QC("tus: failed to terminate upload",i,a,null)),!y6(i,0,r))throw i;var o=r.retryDelays[0],l=r.retryDelays.slice(1),u=gb(gb({},r),{},{retryDelays:l});return new Promise(function(d){return setTimeout(d,o)}).then(function(){return e.terminate(n,u)})})}}])})();function m6(e){return Object.entries(e).map(function(t){var n=AQ(t,2),r=n[0],a=n[1];return"".concat(r," ").concat(Yfe.encode(String(a)))}).join(",")}function Rb(e,t){return e>=t&&e=n.retryDelays.length||e.originalRequest==null?!1:n&&typeof n.onShouldRetry=="function"?n.onShouldRetry(e,t,n):IQ(e)}function IQ(e){var t=e.originalResponse?e.originalResponse.getStatus():0;return(!Rb(t,400)||t===409||t===423)&&dpe()}function b6(e,t){return new Zfe(t,e).toString()}function fpe(e,t){for(var n=Math.floor(e/t),r=[],a=0;a=this.size;return Promise.resolve({value:a,done:i})}},{key:"close",value:function(){}}])})();function VS(e){"@babel/helpers - typeof";return VS=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},VS(e)}function Spe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Epe(e,t){for(var n=0;nthis._bufferOffset&&(this._buffer=this._buffer.slice(n-this._bufferOffset),this._bufferOffset=n);var a=S6(this._buffer)===0;return this._done&&a?null:this._buffer.slice(0,r-n)}},{key:"close",value:function(){this._reader.cancel&&this._reader.cancel()}}])})();function Iv(e){"@babel/helpers - typeof";return Iv=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Iv(e)}function pL(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */pL=function(){return t};var e,t={},n=Object.prototype,r=n.hasOwnProperty,a=Object.defineProperty||function(W,G,q){W[G]=q.value},i=typeof Symbol=="function"?Symbol:{},o=i.iterator||"@@iterator",l=i.asyncIterator||"@@asyncIterator",u=i.toStringTag||"@@toStringTag";function d(W,G,q){return Object.defineProperty(W,G,{value:q,enumerable:!0,configurable:!0,writable:!0}),W[G]}try{d({},"")}catch{d=function(q,ce,H){return q[ce]=H}}function f(W,G,q,ce){var H=G&&G.prototype instanceof C?G:C,Y=Object.create(H.prototype),ie=new ge(ce||[]);return a(Y,"_invoke",{value:z(W,q,ie)}),Y}function g(W,G,q){try{return{type:"normal",arg:W.call(G,q)}}catch(ce){return{type:"throw",arg:ce}}}t.wrap=f;var y="suspendedStart",h="suspendedYield",v="executing",E="completed",T={};function C(){}function k(){}function _(){}var A={};d(A,o,function(){return this});var P=Object.getPrototypeOf,N=P&&P(P(me([])));N&&N!==n&&r.call(N,o)&&(A=N);var I=_.prototype=C.prototype=Object.create(A);function L(W){["next","throw","return"].forEach(function(G){d(W,G,function(q){return this._invoke(G,q)})})}function j(W,G){function q(H,Y,ie,J){var ee=g(W[H],W,Y);if(ee.type!=="throw"){var Z=ee.arg,ue=Z.value;return ue&&Iv(ue)=="object"&&r.call(ue,"__await")?G.resolve(ue.__await).then(function(ke){q("next",ke,ie,J)},function(ke){q("throw",ke,ie,J)}):G.resolve(ue).then(function(ke){Z.value=ke,ie(Z)},function(ke){return q("throw",ke,ie,J)})}J(ee.arg)}var ce;a(this,"_invoke",{value:function(Y,ie){function J(){return new G(function(ee,Z){q(Y,ie,ee,Z)})}return ce=ce?ce.then(J,J):J()}})}function z(W,G,q){var ce=y;return function(H,Y){if(ce===v)throw Error("Generator is already running");if(ce===E){if(H==="throw")throw Y;return{value:e,done:!0}}for(q.method=H,q.arg=Y;;){var ie=q.delegate;if(ie){var J=Q(ie,q);if(J){if(J===T)continue;return J}}if(q.method==="next")q.sent=q._sent=q.arg;else if(q.method==="throw"){if(ce===y)throw ce=E,q.arg;q.dispatchException(q.arg)}else q.method==="return"&&q.abrupt("return",q.arg);ce=v;var ee=g(W,G,q);if(ee.type==="normal"){if(ce=q.done?E:h,ee.arg===T)continue;return{value:ee.arg,done:q.done}}ee.type==="throw"&&(ce=E,q.method="throw",q.arg=ee.arg)}}}function Q(W,G){var q=G.method,ce=W.iterator[q];if(ce===e)return G.delegate=null,q==="throw"&&W.iterator.return&&(G.method="return",G.arg=e,Q(W,G),G.method==="throw")||q!=="return"&&(G.method="throw",G.arg=new TypeError("The iterator does not provide a '"+q+"' method")),T;var H=g(ce,W.iterator,G.arg);if(H.type==="throw")return G.method="throw",G.arg=H.arg,G.delegate=null,T;var Y=H.arg;return Y?Y.done?(G[W.resultName]=Y.value,G.next=W.nextLoc,G.method!=="return"&&(G.method="next",G.arg=e),G.delegate=null,T):Y:(G.method="throw",G.arg=new TypeError("iterator result is not an object"),G.delegate=null,T)}function le(W){var G={tryLoc:W[0]};1 in W&&(G.catchLoc=W[1]),2 in W&&(G.finallyLoc=W[2],G.afterLoc=W[3]),this.tryEntries.push(G)}function re(W){var G=W.completion||{};G.type="normal",delete G.arg,W.completion=G}function ge(W){this.tryEntries=[{tryLoc:"root"}],W.forEach(le,this),this.reset(!0)}function me(W){if(W||W===""){var G=W[o];if(G)return G.call(W);if(typeof W.next=="function")return W;if(!isNaN(W.length)){var q=-1,ce=function H(){for(;++q=0;--H){var Y=this.tryEntries[H],ie=Y.completion;if(Y.tryLoc==="root")return ce("end");if(Y.tryLoc<=this.prev){var J=r.call(Y,"catchLoc"),ee=r.call(Y,"finallyLoc");if(J&&ee){if(this.prev=0;--ce){var H=this.tryEntries[ce];if(H.tryLoc<=this.prev&&r.call(H,"finallyLoc")&&this.prev=0;--q){var ce=this.tryEntries[q];if(ce.finallyLoc===G)return this.complete(ce.completion,ce.afterLoc),re(ce),T}},catch:function(G){for(var q=this.tryEntries.length-1;q>=0;--q){var ce=this.tryEntries[q];if(ce.tryLoc===G){var H=ce.completion;if(H.type==="throw"){var Y=H.arg;re(ce)}return Y}}throw Error("illegal catch attempt")},delegateYield:function(G,q,ce){return this.delegate={iterator:me(G),resultName:q,nextLoc:ce},this.method==="next"&&(this.arg=e),T}},t}function E6(e,t,n,r,a,i,o){try{var l=e[i](o),u=l.value}catch(d){n(d);return}l.done?t(u):Promise.resolve(u).then(r,a)}function Ope(e){return function(){var t=this,n=arguments;return new Promise(function(r,a){var i=e.apply(t,n);function o(u){E6(i,r,a,o,l,"next",u)}function l(u){E6(i,r,a,o,l,"throw",u)}o(void 0)})}}function Rpe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Ppe(e,t){for(var n=0;n0&&arguments[0]!==void 0?arguments[0]:null;return new Promise(function(a,i){n._xhr.onload=function(){a(new zpe(n._xhr))},n._xhr.onerror=function(o){i(o)},n._xhr.send(r)})}},{key:"abort",value:function(){return this._xhr.abort(),Promise.resolve()}},{key:"getUnderlyingObject",value:function(){return this._xhr}}])})(),zpe=(function(){function e(t){pF(this,e),this._xhr=t}return hF(e,[{key:"getStatus",value:function(){return this._xhr.status}},{key:"getHeader",value:function(n){return this._xhr.getResponseHeader(n)}},{key:"getBody",value:function(){return this._xhr.responseText}},{key:"getUnderlyingObject",value:function(){return this._xhr}}])})();function YS(e){"@babel/helpers - typeof";return YS=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},YS(e)}function qpe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Hpe(e,t){for(var n=0;n0&&arguments[0]!==void 0?arguments[0]:null,r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return Qpe(this,t),r=Mb(Mb({},k6),r),ehe(this,t,[n,r])}return rhe(t,e),Zpe(t,null,[{key:"terminate",value:function(r){var a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return a=Mb(Mb({},k6),a),ix.terminate(r,a)}}])})(ix);const rt=ze.createContext({setSession(e){},options:{}});class she{async setItem(t,n){return localStorage.setItem(t,n)}async getItem(t){return localStorage.getItem(t)}async removeItem(t){return localStorage.removeItem(t)}}async function lhe(e,t,n){n.setItem("fb_microservice_"+e,JSON.stringify(t))}function uhe(e,t,n){n.setItem("fb_selected_workspace_"+e,JSON.stringify(t))}async function che(e,t){let n=null;try{n=JSON.parse(await t.getItem("fb_microservice_"+e))}catch{}return n}async function dhe(e,t){let n=null;try{n=JSON.parse(await t.getItem("fb_selected_workspace_"+e))}catch{}return n}function fhe({children:e,remote:t,selectedUrw:n,identifier:r,token:a,preferredAcceptLanguage:i,queryClient:o,defaultExecFn:l,socketEnabled:u,socket:d,credentialStorage:f,prefix:g}){var G;const[y,h]=R.useState(!1),[v,E]=R.useState(),[T,C]=R.useState(""),[k,_]=R.useState(),A=R.useRef(f||new she),P=async()=>{const q=await dhe(r,A.current),ce=await che(r,A.current);_(q),E(ce),h(!0)};R.useEffect(()=>{P()},[]);const[N,I]=R.useState([]),[L,j]=R.useState(l),z=!!v,Q=q=>{uhe(r,q,A.current),_(q)},le=q=>{E(()=>(lhe(r,q,A.current),q))},re={headers:{authorization:a||(v==null?void 0:v.token)},prefix:(T||t)+(g||"")};if(k)re.headers["workspace-id"]=k.workspaceId,re.headers["role-id"]=k.roleId;else if(n)re.headers["workspace-id"]=n.workspaceId,re.headers["role-id"]=n.roleId;else if(v!=null&&v.userWorkspaces&&v.userWorkspaces.length>0){const q=v.userWorkspaces[0];re.headers["workspace-id"]=q.workspaceId,re.headers["role-id"]=q.roleId}i&&(re.headers["accept-language"]=i),R.useEffect(()=>{a&&E({...v||{},token:a})},[a]);const ge=()=>{var q;E(null),(q=A.current)==null||q.removeItem("fb_microservice_"+r),Q(void 0)},me=()=>{I([])},{socketState:W}=phe(t,(G=re.headers)==null?void 0:G.authorization,re.headers["workspace-id"],o,u);return w.jsx(rt.Provider,{value:{options:re,signout:ge,setOverrideRemoteUrl:C,overrideRemoteUrl:T,setSession:le,socketState:W,checked:y,selectedUrw:k,selectUrw:Q,session:v,preferredAcceptLanguage:i,activeUploads:N,setActiveUploads:I,execFn:L,setExecFn:j,discardActiveUploads:me,isAuthenticated:z},children:e})}function phe(e,t,n,r,a=!0){const[i,o]=R.useState({state:"unknown"});return R.useEffect(()=>{if(!e||!t||t==="undefined"||a===!1)return;const l=e.replace("https","wss").replace("http","ws");let u;try{u=new WebSocket(`${l}ws?token=${t}&workspaceId=${n}`),u.onerror=function(d){o({state:"error"})},u.onclose=function(d){o({state:"closed"})},u.onmessage=function(d){try{const f=JSON.parse(d.data);f!=null&&f.cacheKey&&r.invalidateQueries(f==null?void 0:f.cacheKey)}catch{console.error("Socket message parsing error",d)}},u.onopen=function(d){o({state:"connected"})}}catch{}return()=>{(u==null?void 0:u.readyState)===1&&u.close()}},[t,n]),{socketState:i}}function Gt(e){if(!e)return{};const t={};return e.startIndex&&(t.startIndex=e.startIndex),e.itemsPerPage&&(t.itemsPerPage=e.itemsPerPage),e.query&&(t.query=e.query),e.deep&&(t.deep=e.deep),e.jsonQuery&&(t.jsonQuery=JSON.stringify(e.jsonQuery)),e.withPreloads&&(t.withPreloads=e.withPreloads),e.uniqueId&&(t.uniqueId=e.uniqueId),e.sort&&(t.sort=e.sort),t}function hhe(){const{activeUploads:e,setActiveUploads:t}=R.useContext(rt),n=()=>{t([])};return e.length===0?null:w.jsxs("div",{className:"active-upload-box",children:[w.jsxs("div",{className:"upload-header",children:[w.jsxs("span",{children:[e.length," Uploads"]}),w.jsx("span",{className:"action-section",children:w.jsx("button",{onClick:n,children:w.jsx("img",{src:"/common/close.svg"})})})]}),e.map(r=>w.jsxs("div",{className:"upload-file-item",children:[w.jsx("span",{children:r.filename}),w.jsxs("span",{children:[Math.ceil(r.bytesSent/r.bytesTotal*100),"%"]})]},r.uploadId))]})}var zR={exports:{}};/*! + */var _6;function Mfe(){if(_6)return Cr;_6=1;var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,n=e?Symbol.for("react.portal"):60106,r=e?Symbol.for("react.fragment"):60107,a=e?Symbol.for("react.strict_mode"):60108,i=e?Symbol.for("react.profiler"):60114,o=e?Symbol.for("react.provider"):60109,l=e?Symbol.for("react.context"):60110,u=e?Symbol.for("react.async_mode"):60111,d=e?Symbol.for("react.concurrent_mode"):60111,f=e?Symbol.for("react.forward_ref"):60112,g=e?Symbol.for("react.suspense"):60113,y=e?Symbol.for("react.suspense_list"):60120,h=e?Symbol.for("react.memo"):60115,v=e?Symbol.for("react.lazy"):60116,E=e?Symbol.for("react.block"):60121,T=e?Symbol.for("react.fundamental"):60117,C=e?Symbol.for("react.responder"):60118,k=e?Symbol.for("react.scope"):60119;function _(P){if(typeof P=="object"&&P!==null){var N=P.$$typeof;switch(N){case t:switch(P=P.type,P){case u:case d:case r:case i:case a:case g:return P;default:switch(P=P&&P.$$typeof,P){case l:case f:case v:case h:case o:return P;default:return N}}case n:return N}}}function A(P){return _(P)===d}return Cr.AsyncMode=u,Cr.ConcurrentMode=d,Cr.ContextConsumer=l,Cr.ContextProvider=o,Cr.Element=t,Cr.ForwardRef=f,Cr.Fragment=r,Cr.Lazy=v,Cr.Memo=h,Cr.Portal=n,Cr.Profiler=i,Cr.StrictMode=a,Cr.Suspense=g,Cr.isAsyncMode=function(P){return A(P)||_(P)===u},Cr.isConcurrentMode=A,Cr.isContextConsumer=function(P){return _(P)===l},Cr.isContextProvider=function(P){return _(P)===o},Cr.isElement=function(P){return typeof P=="object"&&P!==null&&P.$$typeof===t},Cr.isForwardRef=function(P){return _(P)===f},Cr.isFragment=function(P){return _(P)===r},Cr.isLazy=function(P){return _(P)===v},Cr.isMemo=function(P){return _(P)===h},Cr.isPortal=function(P){return _(P)===n},Cr.isProfiler=function(P){return _(P)===i},Cr.isStrictMode=function(P){return _(P)===a},Cr.isSuspense=function(P){return _(P)===g},Cr.isValidElementType=function(P){return typeof P=="string"||typeof P=="function"||P===r||P===d||P===i||P===a||P===g||P===y||typeof P=="object"&&P!==null&&(P.$$typeof===v||P.$$typeof===h||P.$$typeof===o||P.$$typeof===l||P.$$typeof===f||P.$$typeof===T||P.$$typeof===C||P.$$typeof===k||P.$$typeof===E)},Cr.typeOf=_,Cr}var O6;function Ife(){return O6||(O6=1,lP.exports=Mfe()),lP.exports}var uP,R6;function Dfe(){if(R6)return uP;R6=1;var e=Ife(),t={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},n={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},r={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},a={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},i={};i[e.ForwardRef]=r,i[e.Memo]=a;function o(v){return e.isMemo(v)?a:i[v.$$typeof]||t}var l=Object.defineProperty,u=Object.getOwnPropertyNames,d=Object.getOwnPropertySymbols,f=Object.getOwnPropertyDescriptor,g=Object.getPrototypeOf,y=Object.prototype;function h(v,E,T){if(typeof E!="string"){if(y){var C=g(E);C&&C!==y&&h(v,C,T)}var k=u(E);d&&(k=k.concat(d(E)));for(var _=o(v),A=o(E),P=0;P=0)&&(n[a]=e[a]);return n}var D_=R.createContext(void 0);D_.displayName="FormikContext";var Ffe=D_.Provider;D_.Consumer;function jfe(){var e=R.useContext(D_);return e}var El=function(t){return typeof t=="function"},$_=function(t){return t!==null&&typeof t=="object"},Ufe=function(t){return String(Math.floor(Number(t)))===t},cP=function(t){return Object.prototype.toString.call(t)==="[object String]"},Bfe=function(t){return R.Children.count(t)===0},dP=function(t){return $_(t)&&El(t.then)};function Fs(e,t,n,r){r===void 0&&(r=0);for(var a=zQ(t);e&&r=0?[]:{}}}return(i===0?e:a)[o[i]]===n?e:(n===void 0?delete a[o[i]]:a[o[i]]=n,i===0&&n===void 0&&delete r[o[i]],r)}function HQ(e,t,n,r){n===void 0&&(n=new WeakMap),r===void 0&&(r={});for(var a=0,i=Object.keys(e);a0?dt.map(function(ut){return z(ut,Fs(Oe,ut))}):[Promise.resolve("DO_NOT_DELETE_YOU_WILL_BE_FIRED")];return Promise.all(ft).then(function(ut){return ut.reduce(function(Nt,U,D){return U==="DO_NOT_DELETE_YOU_WILL_BE_FIRED"||U&&(Nt=Yv(Nt,dt[D],U)),Nt},{})})},[z]),ue=R.useCallback(function(Oe){return Promise.all([Q(Oe),y.validationSchema?j(Oe):{},y.validate?L(Oe):{}]).then(function(dt){var ft=dt[0],ut=dt[1],Nt=dt[2],U=_L.all([ft,ut,Nt],{arrayMerge:Hfe});return U})},[y.validate,y.validationSchema,Q,L,j]),re=wl(function(Oe){return Oe===void 0&&(Oe=N.values),I({type:"SET_ISVALIDATING",payload:!0}),ue(Oe).then(function(dt){return C.current&&(I({type:"SET_ISVALIDATING",payload:!1}),I({type:"SET_ERRORS",payload:dt})),dt})});R.useEffect(function(){o&&C.current===!0&&kv(h.current,y.initialValues)&&re(h.current)},[o,re]);var me=R.useCallback(function(Oe){var dt=Oe&&Oe.values?Oe.values:h.current,ft=Oe&&Oe.errors?Oe.errors:v.current?v.current:y.initialErrors||{},ut=Oe&&Oe.touched?Oe.touched:E.current?E.current:y.initialTouched||{},Nt=Oe&&Oe.status?Oe.status:T.current?T.current:y.initialStatus;h.current=dt,v.current=ft,E.current=ut,T.current=Nt;var U=function(){I({type:"RESET_FORM",payload:{isSubmitting:!!Oe&&!!Oe.isSubmitting,errors:ft,touched:ut,status:Nt,values:dt,isValidating:!!Oe&&!!Oe.isValidating,submitCount:Oe&&Oe.submitCount&&typeof Oe.submitCount=="number"?Oe.submitCount:0}})};if(y.onReset){var D=y.onReset(N.values,Ge);dP(D)?D.then(U):U()}else U()},[y.initialErrors,y.initialStatus,y.initialTouched,y.onReset]);R.useEffect(function(){C.current===!0&&!kv(h.current,y.initialValues)&&d&&(h.current=y.initialValues,me(),o&&re(h.current))},[d,y.initialValues,me,o,re]),R.useEffect(function(){d&&C.current===!0&&!kv(v.current,y.initialErrors)&&(v.current=y.initialErrors||Hm,I({type:"SET_ERRORS",payload:y.initialErrors||Hm}))},[d,y.initialErrors]),R.useEffect(function(){d&&C.current===!0&&!kv(E.current,y.initialTouched)&&(E.current=y.initialTouched||wk,I({type:"SET_TOUCHED",payload:y.initialTouched||wk}))},[d,y.initialTouched]),R.useEffect(function(){d&&C.current===!0&&!kv(T.current,y.initialStatus)&&(T.current=y.initialStatus,I({type:"SET_STATUS",payload:y.initialStatus}))},[d,y.initialStatus,y.initialTouched]);var ge=wl(function(Oe){if(k.current[Oe]&&El(k.current[Oe].validate)){var dt=Fs(N.values,Oe),ft=k.current[Oe].validate(dt);return dP(ft)?(I({type:"SET_ISVALIDATING",payload:!0}),ft.then(function(ut){return ut}).then(function(ut){I({type:"SET_FIELD_ERROR",payload:{field:Oe,value:ut}}),I({type:"SET_ISVALIDATING",payload:!1})})):(I({type:"SET_FIELD_ERROR",payload:{field:Oe,value:ft}}),Promise.resolve(ft))}else if(y.validationSchema)return I({type:"SET_ISVALIDATING",payload:!0}),j(N.values,Oe).then(function(ut){return ut}).then(function(ut){I({type:"SET_FIELD_ERROR",payload:{field:Oe,value:Fs(ut,Oe)}}),I({type:"SET_ISVALIDATING",payload:!1})});return Promise.resolve()}),W=R.useCallback(function(Oe,dt){var ft=dt.validate;k.current[Oe]={validate:ft}},[]),G=R.useCallback(function(Oe){delete k.current[Oe]},[]),q=wl(function(Oe,dt){I({type:"SET_TOUCHED",payload:Oe});var ft=dt===void 0?a:dt;return ft?re(N.values):Promise.resolve()}),ce=R.useCallback(function(Oe){I({type:"SET_ERRORS",payload:Oe})},[]),H=wl(function(Oe,dt){var ft=El(Oe)?Oe(N.values):Oe;I({type:"SET_VALUES",payload:ft});var ut=dt===void 0?n:dt;return ut?re(ft):Promise.resolve()}),K=R.useCallback(function(Oe,dt){I({type:"SET_FIELD_ERROR",payload:{field:Oe,value:dt}})},[]),ae=wl(function(Oe,dt,ft){I({type:"SET_FIELD_VALUE",payload:{field:Oe,value:dt}});var ut=ft===void 0?n:ft;return ut?re(Yv(N.values,Oe,dt)):Promise.resolve()}),J=R.useCallback(function(Oe,dt){var ft=dt,ut=Oe,Nt;if(!cP(Oe)){Oe.persist&&Oe.persist();var U=Oe.target?Oe.target:Oe.currentTarget,D=U.type,F=U.name,ie=U.id,Te=U.value,Fe=U.checked;U.outerHTML;var We=U.options,Et=U.multiple;ft=dt||F||ie,ut=/number|range/.test(D)?(Nt=parseFloat(Te),isNaN(Nt)?"":Nt):/checkbox/.test(D)?Gfe(Fs(N.values,ft),Fe,Te):We&&Et?Vfe(We):Te}ft&&ae(ft,ut)},[ae,N.values]),ee=wl(function(Oe){if(cP(Oe))return function(dt){return J(dt,Oe)};J(Oe)}),Z=wl(function(Oe,dt,ft){dt===void 0&&(dt=!0),I({type:"SET_FIELD_TOUCHED",payload:{field:Oe,value:dt}});var ut=ft===void 0?a:ft;return ut?re(N.values):Promise.resolve()}),le=R.useCallback(function(Oe,dt){Oe.persist&&Oe.persist();var ft=Oe.target,ut=ft.name,Nt=ft.id;ft.outerHTML;var U=dt||ut||Nt;Z(U,!0)},[Z]),ke=wl(function(Oe){if(cP(Oe))return function(dt){return le(dt,Oe)};le(Oe)}),fe=R.useCallback(function(Oe){El(Oe)?I({type:"SET_FORMIK_STATE",payload:Oe}):I({type:"SET_FORMIK_STATE",payload:function(){return Oe}})},[]),xe=R.useCallback(function(Oe){I({type:"SET_STATUS",payload:Oe})},[]),Ie=R.useCallback(function(Oe){I({type:"SET_ISSUBMITTING",payload:Oe})},[]),qe=wl(function(){return I({type:"SUBMIT_ATTEMPT"}),re().then(function(Oe){var dt=Oe instanceof Error,ft=!dt&&Object.keys(Oe).length===0;if(ft){var ut;try{if(ut=rt(),ut===void 0)return}catch(Nt){throw Nt}return Promise.resolve(ut).then(function(Nt){return C.current&&I({type:"SUBMIT_SUCCESS"}),Nt}).catch(function(Nt){if(C.current)throw I({type:"SUBMIT_FAILURE"}),Nt})}else if(C.current&&(I({type:"SUBMIT_FAILURE"}),dt))throw Oe})}),tt=wl(function(Oe){Oe&&Oe.preventDefault&&El(Oe.preventDefault)&&Oe.preventDefault(),Oe&&Oe.stopPropagation&&El(Oe.stopPropagation)&&Oe.stopPropagation(),qe().catch(function(dt){console.warn("Warning: An unhandled error was caught from submitForm()",dt)})}),Ge={resetForm:me,validateForm:re,validateField:ge,setErrors:ce,setFieldError:K,setFieldTouched:Z,setFieldValue:ae,setStatus:xe,setSubmitting:Ie,setTouched:q,setValues:H,setFormikState:fe,submitForm:qe},rt=wl(function(){return f(N.values,Ge)}),St=wl(function(Oe){Oe&&Oe.preventDefault&&El(Oe.preventDefault)&&Oe.preventDefault(),Oe&&Oe.stopPropagation&&El(Oe.stopPropagation)&&Oe.stopPropagation(),me()}),kt=R.useCallback(function(Oe){return{value:Fs(N.values,Oe),error:Fs(N.errors,Oe),touched:!!Fs(N.touched,Oe),initialValue:Fs(h.current,Oe),initialTouched:!!Fs(E.current,Oe),initialError:Fs(v.current,Oe)}},[N.errors,N.touched,N.values]),xt=R.useCallback(function(Oe){return{setValue:function(ft,ut){return ae(Oe,ft,ut)},setTouched:function(ft,ut){return Z(Oe,ft,ut)},setError:function(ft){return K(Oe,ft)}}},[ae,Z,K]),Rt=R.useCallback(function(Oe){var dt=$_(Oe),ft=dt?Oe.name:Oe,ut=Fs(N.values,ft),Nt={name:ft,value:ut,onChange:ee,onBlur:ke};if(dt){var U=Oe.type,D=Oe.value,F=Oe.as,ie=Oe.multiple;U==="checkbox"?D===void 0?Nt.checked=!!ut:(Nt.checked=!!(Array.isArray(ut)&&~ut.indexOf(D)),Nt.value=D):U==="radio"?(Nt.checked=ut===D,Nt.value=D):F==="select"&&ie&&(Nt.value=Nt.value||[],Nt.multiple=!0)}return Nt},[ke,ee,N.values]),cn=R.useMemo(function(){return!kv(h.current,N.values)},[h.current,N.values]),qt=R.useMemo(function(){return typeof l<"u"?cn?N.errors&&Object.keys(N.errors).length===0:l!==!1&&El(l)?l(y):l:N.errors&&Object.keys(N.errors).length===0},[l,cn,N.errors,y]),Wt=gi({},N,{initialValues:h.current,initialErrors:v.current,initialTouched:E.current,initialStatus:T.current,handleBlur:ke,handleChange:ee,handleReset:St,handleSubmit:tt,resetForm:me,setErrors:ce,setFormikState:fe,setFieldTouched:Z,setFieldValue:ae,setFieldError:K,setStatus:xe,setSubmitting:Ie,setTouched:q,setValues:H,submitForm:qe,validateForm:re,validateField:ge,isValid:qt,dirty:cn,unregisterField:G,registerField:W,getFieldProps:Rt,getFieldMeta:kt,getFieldHelpers:xt,validateOnBlur:a,validateOnChange:n,validateOnMount:o});return Wt}function ms(e){var t=uf(e),n=e.component,r=e.children,a=e.render,i=e.innerRef;return R.useImperativeHandle(i,function(){return t}),R.createElement(Ffe,{value:t},n?R.createElement(n,t):a?a(t):r?El(r)?r(t):Bfe(r)?null:R.Children.only(r):null)}function zfe(e){var t={};if(e.inner){if(e.inner.length===0)return Yv(t,e.path,e.message);for(var a=e.inner,n=Array.isArray(a),r=0,a=n?a:a[Symbol.iterator]();;){var i;if(n){if(r>=a.length)break;i=a[r++]}else{if(r=a.next(),r.done)break;i=r.value}var o=i;Fs(t,o.path)||(t=Yv(t,o.path,o.message))}}return t}function qfe(e,t,n,r){n===void 0&&(n=!1);var a=NL(e);return t[n?"validateSync":"validate"](a,{abortEarly:!1,context:a})}function NL(e){var t=Array.isArray(e)?[]:{};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var r=String(n);Array.isArray(e[r])===!0?t[r]=e[r].map(function(a){return Array.isArray(a)===!0||t6(a)?NL(a):a!==""?a:void 0}):t6(e[r])?t[r]=NL(e[r]):t[r]=e[r]!==""?e[r]:void 0}return t}function Hfe(e,t,n){var r=e.slice();return t.forEach(function(i,o){if(typeof r[o]>"u"){var l=n.clone!==!1,u=l&&n.isMergeableObject(i);r[o]=u?_L(Array.isArray(i)?[]:{},i,n):i}else n.isMergeableObject(i)?r[o]=_L(e[o],i,n):e.indexOf(i)===-1&&r.push(i)}),r}function Vfe(e){return Array.from(e).filter(function(t){return t.selected}).map(function(t){return t.value})}function Gfe(e,t,n){if(typeof e=="boolean")return!!t;var r=[],a=!1,i=-1;if(Array.isArray(e))r=e,i=e.indexOf(n),a=i>=0;else if(!n||n=="true"||n=="false")return!!t;return t&&n&&!a?r.concat(n):a?r.slice(0,i).concat(r.slice(i+1)):r}var Yfe=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u"?R.useLayoutEffect:R.useEffect;function wl(e){var t=R.useRef(e);return Yfe(function(){t.current=e}),R.useCallback(function(){for(var n=arguments.length,r=new Array(n),a=0;a(e.NewEntity="new_entity",e.SidebarToggle="sidebarToggle",e.NewChildEntity="new_child_entity",e.EditEntity="edit_entity",e.ViewQuestions="view_questions",e.ExportTable="export_table",e.CommonBack="common_back",e.StopStart="StopStart",e.Delete="delete",e.Select1Index="select1_index",e.Select2Index="select2_index",e.Select3Index="select3_index",e.Select4Index="select4_index",e.Select5Index="select5_index",e.Select6Index="select6_index",e.Select7Index="select7_index",e.Select8Index="select8_index",e.Select9Index="select9_index",e.ToggleLock="l",e))(Ir||{});function ML(){if(typeof window>"u")return"mac";let e=window==null?void 0:window.navigator.userAgent,t=window==null?void 0:window.navigator.platform,n=["Macintosh","MacIntel","MacPPC","Mac68K"],r=["Win32","Win64","Windows","WinCE"],a=["iPhone","iPad","iPod"],i="mac";return n.indexOf(t)!==-1?i="mac":a.indexOf(t)!==-1?i="ios":r.indexOf(t)!==-1?i="windows":/Android/.test(e)?i="android":!i&&/Linux/.test(t)?i="linux":i="web",i}const Pt=ML(),at={edit:{default:"ios-theme/icons/edit.svg"},add:{default:"ios-theme/icons/add.svg"},cancel:{default:"ios-theme/icons/cancel.svg"},delete:{default:"ios-theme/icons/delete.svg"},entity:{default:"ios-theme/icons/entity.svg"},left:{default:"ios-theme/icons/left.svg"},menu:{default:"ios-theme/icons/menu.svg"},backup:{default:"ios-theme/icons/backup.svg"},right:{default:"ios-theme/icons/right.svg"},settings:{default:"ios-theme/icons/settings.svg"},user:{default:"ios-theme/icons/user.svg"},export:{default:"ios-theme/icons/export.svg"},up:{default:"ios-theme/icons/up.svg"},dataNode:{default:"ios-theme/icons/dnode.svg"},ctrlSheet:{default:"ios-theme/icons/ctrlsheet.svg"},gpiomode:{default:"ios-theme/icons/gpiomode.svg"},gpiostate:{default:"ios-theme/icons/gpiostate.svg"},down:{default:"ios-theme/icons/down.svg"},turnoff:{default:"ios-theme/icons/turnoff.svg"},mqtt:{default:"ios-theme/icons/mqtt.svg"},cart:{default:"ios-theme/icons/cart.svg"},questionBank:{default:"ios-theme/icons/questions.svg"},dashboard:{default:"ios-theme/icons/dashboard.svg"},country:{default:"ios-theme/icons/country.svg"},order:{default:"ios-theme/icons/order.svg"},province:{default:"ios-theme/icons/province.svg"},city:{default:"ios-theme/icons/city.svg"},about:{default:"ios-theme/icons/about.svg"},sms:{default:"ios-theme/icons/sms.svg"},product:{default:"ios-theme/icons/product.svg"},discount:{default:"ios-theme/icons/discount.svg"},tag:{default:"ios-theme/icons/tag.svg"},category:{default:"ios-theme/icons/category.svg"},brand:{default:"ios-theme/icons/brand.svg"},form:{default:"ios-theme/icons/form.svg"}},Ru={dashboard:at.dashboard[Pt]?at.dashboard[Pt]:at.dashboard.default,up:at.up[Pt]?at.up[Pt]:at.up.default,questionBank:at.questionBank[Pt]?at.questionBank[Pt]:at.questionBank.default,down:at.down[Pt]?at.down[Pt]:at.down.default,edit:at.edit[Pt]?at.edit[Pt]:at.edit.default,add:at.add[Pt]?at.add[Pt]:at.add.default,cancel:at.cancel[Pt]?at.cancel[Pt]:at.cancel.default,delete:at.delete[Pt]?at.delete[Pt]:at.delete.default,discount:at.discount[Pt]?at.discount[Pt]:at.discount.default,cart:at.cart[Pt]?at.cart[Pt]:at.cart.default,entity:at.entity[Pt]?at.entity[Pt]:at.entity.default,sms:at.sms[Pt]?at.sms[Pt]:at.sms.default,left:at.left[Pt]?at.left[Pt]:at.left.default,brand:at.brand[Pt]?at.brand[Pt]:at.brand.default,menu:at.menu[Pt]?at.menu[Pt]:at.menu.default,right:at.right[Pt]?at.right[Pt]:at.right.default,settings:at.settings[Pt]?at.settings[Pt]:at.settings.default,dataNode:at.dataNode[Pt]?at.dataNode[Pt]:at.dataNode.default,user:at.user[Pt]?at.user[Pt]:at.user.default,city:at.city[Pt]?at.city[Pt]:at.city.default,province:at.province[Pt]?at.province[Pt]:at.province.default,about:at.about[Pt]?at.about[Pt]:at.about.default,turnoff:at.turnoff[Pt]?at.turnoff[Pt]:at.turnoff.default,ctrlSheet:at.ctrlSheet[Pt]?at.ctrlSheet[Pt]:at.ctrlSheet.default,country:at.country[Pt]?at.country[Pt]:at.country.default,export:at.export[Pt]?at.export[Pt]:at.export.default,gpio:at.ctrlSheet[Pt]?at.ctrlSheet[Pt]:at.ctrlSheet.default,order:at.order[Pt]?at.order[Pt]:at.order.default,mqtt:at.mqtt[Pt]?at.mqtt[Pt]:at.mqtt.default,tag:at.tag[Pt]?at.tag[Pt]:at.tag.default,product:at.product[Pt]?at.product[Pt]:at.product.default,category:at.category[Pt]?at.category[Pt]:at.category.default,form:at.form[Pt]?at.form[Pt]:at.form.default,gpiomode:at.gpiomode[Pt]?at.gpiomode[Pt]:at.gpiomode.default,backup:at.backup[Pt]?at.backup[Pt]:at.backup.default,gpiostate:at.gpiostate[Pt]?at.gpiostate[Pt]:at.gpiostate.default};function qs(e){const t=kr.PUBLIC_URL;return e.startsWith("$")?t+Ru[e.substr(1)]:e.startsWith(t)?e:t+e}function P6(){const e=At();return sr(),w.jsx(w.Fragment,{children:w.jsxs("div",{className:"not-found-pagex",children:[w.jsx("img",{src:qs("/common/error.svg")}),w.jsx("div",{className:"content",children:w.jsx("p",{children:e.not_found_404})})]})})}function Xfe(){const{locale:e,asPath:t}=sr();R.useEffect(()=>{var n;(n=document.querySelector("html"))==null||n.setAttribute("dir",["fa","ar"].includes(e)?"rtl":"ltr")},[t])}var IL=(e=>(e.Green="#00bd00",e.Red="#ff0313",e.Orange="#fa7a00",e.Yellow="#f4b700",e.Blue="#0072ff",e.Purple="#ad41d1",e.Grey="#717176",e))(IL||{});function DL(e){"@babel/helpers - typeof";return DL=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},DL(e)}function Qfe(e,t,n){return Object.defineProperty(e,"prototype",{writable:!1}),e}function Jfe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Zfe(e,t,n){return t=fE(t),epe(e,FF()?Reflect.construct(t,n||[],fE(e).constructor):t.apply(e,n))}function epe(e,t){if(t&&(DL(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return tpe(e)}function tpe(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function npe(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&dE(e,t)}function $L(e){var t=typeof Map=="function"?new Map:void 0;return $L=function(r){if(r===null||!ape(r))return r;if(typeof r!="function")throw new TypeError("Super expression must either be null or a function");if(typeof t<"u"){if(t.has(r))return t.get(r);t.set(r,a)}function a(){return rpe(r,arguments,fE(this).constructor)}return a.prototype=Object.create(r.prototype,{constructor:{value:a,enumerable:!1,writable:!0,configurable:!0}}),dE(a,r)},$L(e)}function rpe(e,t,n){if(FF())return Reflect.construct.apply(null,arguments);var r=[null];r.push.apply(r,t);var a=new(e.bind.apply(e,r));return n&&dE(a,n.prototype),a}function FF(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(FF=function(){return!!e})()}function ape(e){try{return Function.toString.call(e).indexOf("[native code]")!==-1}catch{return typeof e=="function"}}function dE(e,t){return dE=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,a){return r.__proto__=a,r},dE(e,t)}function fE(e){return fE=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},fE(e)}var Sk=(function(e){function t(n){var r,a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null,i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null,o=arguments.length>3&&arguments[3]!==void 0?arguments[3]:null;if(Jfe(this,t),r=Zfe(this,t,[n]),r.originalRequest=i,r.originalResponse=o,r.causingError=a,a!=null&&(n+=", caused by ".concat(a.toString())),i!=null){var l=i.getHeader("X-Request-ID")||"n/a",u=i.getMethod(),d=i.getURL(),f=o?o.getStatus():"n/a",g=o?o.getBody()||"":"n/a";n+=", originated from request (method: ".concat(u,", url: ").concat(d,", response code: ").concat(f,", response text: ").concat(g,", request id: ").concat(l,")")}return r.message=n,r}return npe(t,e),Qfe(t)})($L(Error));function pE(e){"@babel/helpers - typeof";return pE=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},pE(e)}function ipe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function ope(e,t){for(var n=0;n{let t={};return e.forEach((n,r)=>t[n]=r),t})($1),ppe=/^(?:[A-Za-z\d+\/]{4})*?(?:[A-Za-z\d+\/]{2}(?:==)?|[A-Za-z\d+\/]{3}=?)?$/,qi=String.fromCharCode.bind(String),M6=typeof Uint8Array.from=="function"?Uint8Array.from.bind(Uint8Array):e=>new Uint8Array(Array.prototype.slice.call(e,0)),GQ=e=>e.replace(/=/g,"").replace(/[+\/]/g,t=>t=="+"?"-":"_"),YQ=e=>e.replace(/[^A-Za-z0-9\+\/]/g,""),KQ=e=>{let t,n,r,a,i="";const o=e.length%3;for(let l=0;l255||(r=e.charCodeAt(l++))>255||(a=e.charCodeAt(l++))>255)throw new TypeError("invalid character found");t=n<<16|r<<8|a,i+=$1[t>>18&63]+$1[t>>12&63]+$1[t>>6&63]+$1[t&63]}return o?i.slice(0,o-3)+"===".substring(o):i},jF=typeof btoa=="function"?e=>btoa(e):B0?e=>Buffer.from(e,"binary").toString("base64"):KQ,LL=B0?e=>Buffer.from(e).toString("base64"):e=>{let n=[];for(let r=0,a=e.length;rt?GQ(LL(e)):LL(e),hpe=e=>{if(e.length<2){var t=e.charCodeAt(0);return t<128?e:t<2048?qi(192|t>>>6)+qi(128|t&63):qi(224|t>>>12&15)+qi(128|t>>>6&63)+qi(128|t&63)}else{var t=65536+(e.charCodeAt(0)-55296)*1024+(e.charCodeAt(1)-56320);return qi(240|t>>>18&7)+qi(128|t>>>12&63)+qi(128|t>>>6&63)+qi(128|t&63)}},mpe=/[\uD800-\uDBFF][\uDC00-\uDFFFF]|[^\x00-\x7F]/g,XQ=e=>e.replace(mpe,hpe),I6=B0?e=>Buffer.from(e,"utf8").toString("base64"):N6?e=>LL(N6.encode(e)):e=>jF(XQ(e)),m0=(e,t=!1)=>t?GQ(I6(e)):I6(e),D6=e=>m0(e,!0),gpe=/[\xC0-\xDF][\x80-\xBF]|[\xE0-\xEF][\x80-\xBF]{2}|[\xF0-\xF7][\x80-\xBF]{3}/g,vpe=e=>{switch(e.length){case 4:var t=(7&e.charCodeAt(0))<<18|(63&e.charCodeAt(1))<<12|(63&e.charCodeAt(2))<<6|63&e.charCodeAt(3),n=t-65536;return qi((n>>>10)+55296)+qi((n&1023)+56320);case 3:return qi((15&e.charCodeAt(0))<<12|(63&e.charCodeAt(1))<<6|63&e.charCodeAt(2));default:return qi((31&e.charCodeAt(0))<<6|63&e.charCodeAt(1))}},QQ=e=>e.replace(gpe,vpe),JQ=e=>{if(e=e.replace(/\s+/g,""),!ppe.test(e))throw new TypeError("malformed base64.");e+="==".slice(2-(e.length&3));let t,n="",r,a;for(let i=0;i>16&255):a===64?qi(t>>16&255,t>>8&255):qi(t>>16&255,t>>8&255,t&255);return n},UF=typeof atob=="function"?e=>atob(YQ(e)):B0?e=>Buffer.from(e,"base64").toString("binary"):JQ,ZQ=B0?e=>M6(Buffer.from(e,"base64")):e=>M6(UF(e).split("").map(t=>t.charCodeAt(0))),eJ=e=>ZQ(tJ(e)),ype=B0?e=>Buffer.from(e,"base64").toString("utf8"):A6?e=>A6.decode(ZQ(e)):e=>QQ(UF(e)),tJ=e=>YQ(e.replace(/[-_]/g,t=>t=="-"?"+":"/")),FL=e=>ype(tJ(e)),bpe=e=>{if(typeof e!="string")return!1;const t=e.replace(/\s+/g,"").replace(/={0,2}$/,"");return!/[^\s0-9a-zA-Z\+/]/.test(t)||!/[^\s0-9a-zA-Z\-_]/.test(t)},nJ=e=>({value:e,enumerable:!1,writable:!0,configurable:!0}),rJ=function(){const e=(t,n)=>Object.defineProperty(String.prototype,t,nJ(n));e("fromBase64",function(){return FL(this)}),e("toBase64",function(t){return m0(this,t)}),e("toBase64URI",function(){return m0(this,!0)}),e("toBase64URL",function(){return m0(this,!0)}),e("toUint8Array",function(){return eJ(this)})},aJ=function(){const e=(t,n)=>Object.defineProperty(Uint8Array.prototype,t,nJ(n));e("toBase64",function(t){return nx(this,t)}),e("toBase64URI",function(){return nx(this,!0)}),e("toBase64URL",function(){return nx(this,!0)})},wpe=()=>{rJ(),aJ()},Spe={version:VQ,VERSION:dpe,atob:UF,atobPolyfill:JQ,btoa:jF,btoaPolyfill:KQ,fromBase64:FL,toBase64:m0,encode:m0,encodeURI:D6,encodeURL:D6,utob:XQ,btou:QQ,decode:FL,isValid:bpe,fromUint8Array:nx,toUint8Array:eJ,extendString:rJ,extendUint8Array:aJ,extendBuiltins:wpe};var fP,$6;function Epe(){return $6||($6=1,fP=function(t,n){if(n=n.split(":")[0],t=+t,!t)return!1;switch(n){case"http":case"ws":return t!==80;case"https":case"wss":return t!==443;case"ftp":return t!==21;case"gopher":return t!==70;case"file":return!1}return t!==0}),fP}var Tk={},L6;function Tpe(){if(L6)return Tk;L6=1;var e=Object.prototype.hasOwnProperty,t;function n(o){try{return decodeURIComponent(o.replace(/\+/g," "))}catch{return null}}function r(o){try{return encodeURIComponent(o)}catch{return null}}function a(o){for(var l=/([^=?#&]+)=?([^&]*)/g,u={},d;d=l.exec(o);){var f=n(d[1]),g=n(d[2]);f===null||g===null||f in u||(u[f]=g)}return u}function i(o,l){l=l||"";var u=[],d,f;typeof l!="string"&&(l="?");for(f in o)if(e.call(o,f)){if(d=o[f],!d&&(d===null||d===t||isNaN(d))&&(d=""),f=r(f),d=r(d),f===null||d===null)continue;u.push(f+"="+d)}return u.length?l+u.join("&"):""}return Tk.stringify=i,Tk.parse=a,Tk}var pP,F6;function Cpe(){if(F6)return pP;F6=1;var e=Epe(),t=Tpe(),n=/^[\x00-\x20\u00a0\u1680\u2000-\u200a\u2028\u2029\u202f\u205f\u3000\ufeff]+/,r=/[\n\r\t]/g,a=/^[A-Za-z][A-Za-z0-9+-.]*:\/\//,i=/:\d+$/,o=/^([a-z][a-z0-9.+-]*:)?(\/\/)?([\\/]+)?([\S\s]*)/i,l=/^[a-zA-Z]:/;function u(k){return(k||"").toString().replace(n,"")}var d=[["#","hash"],["?","query"],function(_,A){return y(A.protocol)?_.replace(/\\/g,"/"):_},["/","pathname"],["@","auth",1],[NaN,"host",void 0,1,1],[/:(\d*)$/,"port",void 0,1],[NaN,"hostname",void 0,1,1]],f={hash:1,query:1};function g(k){var _;typeof window<"u"?_=window:typeof Pl<"u"?_=Pl:typeof self<"u"?_=self:_={};var A=_.location||{};k=k||A;var P={},N=typeof k,I;if(k.protocol==="blob:")P=new E(unescape(k.pathname),{});else if(N==="string"){P=new E(k,{});for(I in f)delete P[I]}else if(N==="object"){for(I in k)I in f||(P[I]=k[I]);P.slashes===void 0&&(P.slashes=a.test(k.href))}return P}function y(k){return k==="file:"||k==="ftp:"||k==="http:"||k==="https:"||k==="ws:"||k==="wss:"}function h(k,_){k=u(k),k=k.replace(r,""),_=_||{};var A=o.exec(k),P=A[1]?A[1].toLowerCase():"",N=!!A[2],I=!!A[3],L=0,j;return N?I?(j=A[2]+A[3]+A[4],L=A[2].length+A[3].length):(j=A[2]+A[4],L=A[2].length):I?(j=A[3]+A[4],L=A[3].length):j=A[4],P==="file:"?L>=2&&(j=j.slice(2)):y(P)?j=A[4]:P?N&&(j=j.slice(2)):L>=2&&y(_.protocol)&&(j=A[4]),{protocol:P,slashes:N||y(P),slashesCount:L,rest:j}}function v(k,_){if(k==="")return _;for(var A=(_||"/").split("/").slice(0,-1).concat(k.split("/")),P=A.length,N=A[P-1],I=!1,L=0;P--;)A[P]==="."?A.splice(P,1):A[P]===".."?(A.splice(P,1),L++):L&&(P===0&&(I=!0),A.splice(P,1),L--);return I&&A.unshift(""),(N==="."||N==="..")&&A.push(""),A.join("/")}function E(k,_,A){if(k=u(k),k=k.replace(r,""),!(this instanceof E))return new E(k,_,A);var P,N,I,L,j,z,Q=d.slice(),ue=typeof _,re=this,me=0;for(ue!=="object"&&ue!=="string"&&(A=_,_=null),A&&typeof A!="function"&&(A=t.parse),_=g(_),N=h(k||"",_),P=!N.protocol&&!N.slashes,re.slashes=N.slashes||P&&_.slashes,re.protocol=N.protocol||_.protocol||"",k=N.rest,(N.protocol==="file:"&&(N.slashesCount!==2||l.test(k))||!N.slashes&&(N.protocol||N.slashesCount<2||!y(re.protocol)))&&(Q[3]=[/(.*)/,"pathname"]);me=0;--H){var K=this.tryEntries[H],ae=K.completion;if(K.tryLoc==="root")return ce("end");if(K.tryLoc<=this.prev){var J=r.call(K,"catchLoc"),ee=r.call(K,"finallyLoc");if(J&&ee){if(this.prev=0;--ce){var H=this.tryEntries[ce];if(H.tryLoc<=this.prev&&r.call(H,"finallyLoc")&&this.prev=0;--q){var ce=this.tryEntries[q];if(ce.finallyLoc===G)return this.complete(ce.completion,ce.afterLoc),re(ce),T}},catch:function(G){for(var q=this.tryEntries.length-1;q>=0;--q){var ce=this.tryEntries[q];if(ce.tryLoc===G){var H=ce.completion;if(H.type==="throw"){var K=H.arg;re(ce)}return K}}throw Error("illegal catch attempt")},delegateYield:function(G,q,ce){return this.delegate={iterator:ge(G),resultName:q,nextLoc:ce},this.method==="next"&&(this.arg=e),T}},t}function j6(e,t,n,r,a,i,o){try{var l=e[i](o),u=l.value}catch(d){n(d);return}l.done?t(u):Promise.resolve(u).then(r,a)}function Ope(e){return function(){var t=this,n=arguments;return new Promise(function(r,a){var i=e.apply(t,n);function o(u){j6(i,r,a,o,l,"next",u)}function l(u){j6(i,r,a,o,l,"throw",u)}o(void 0)})}}function iJ(e,t){return Ape(e)||Ppe(e,t)||oJ(e,t)||Rpe()}function Rpe(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Ppe(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,a,i,o,l=[],u=!0,d=!1;try{if(i=(n=n.call(e)).next,t!==0)for(;!(u=(r=i.call(n)).done)&&(l.push(r.value),l.length!==t);u=!0);}catch(f){d=!0,a=f}finally{try{if(!u&&n.return!=null&&(o=n.return(),Object(o)!==o))return}finally{if(d)throw a}}return l}}function Ape(e){if(Array.isArray(e))return e}function ty(e){"@babel/helpers - typeof";return ty=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},ty(e)}function Npe(e,t){var n=typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=oJ(e))||t){n&&(e=n);var r=0,a=function(){};return{s:a,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(d){throw d},f:a}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var i=!0,o=!1,l;return{s:function(){n=n.call(e)},n:function(){var d=n.next();return i=d.done,d},e:function(d){o=!0,l=d},f:function(){try{!i&&n.return!=null&&n.return()}finally{if(o)throw l}}}}function oJ(e,t){if(e){if(typeof e=="string")return U6(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return U6(e,t)}}function U6(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n1)for(var i=0,o=["uploadUrl","uploadSize","uploadLengthDeferred"];i1||n._parallelUploadUrls!=null?n._startParallelUpload():n._startSingleUpload()}).catch(function(u){n._emitError(u)})}},{key:"_startParallelUpload",value:function(){var n,r=this,a=this._size,i=0;this._parallelUploads=[];var o=this._parallelUploadUrls!=null?this._parallelUploadUrls.length:this.options.parallelUploads,l=(n=this.options.parallelUploadBoundaries)!==null&&n!==void 0?n:jpe(this._source.size,o);this._parallelUploadUrls&&l.forEach(function(f,g){f.uploadUrl=r._parallelUploadUrls[g]||null}),this._parallelUploadUrls=new Array(l.length);var u=l.map(function(f,g){var y=0;return r._source.slice(f.start,f.end).then(function(h){var v=h.value;return new Promise(function(E,T){var C=Fb(Fb({},r.options),{},{uploadUrl:f.uploadUrl||null,storeFingerprintForResuming:!1,removeFingerprintOnSuccess:!1,parallelUploads:1,parallelUploadBoundaries:null,metadata:r.options.metadataForPartialUploads,headers:Fb(Fb({},r.options.headers),{},{"Upload-Concat":"partial"}),onSuccess:E,onError:T,onProgress:function(A){i=i-y+A,y=A,r._emitProgress(i,a)},onUploadUrlAvailable:function(){r._parallelUploadUrls[g]=k.url,r._parallelUploadUrls.filter(function(A){return!!A}).length===l.length&&r._saveUploadInUrlStorage()}}),k=new e(v,C);k.start(),r._parallelUploads.push(k)})})}),d;Promise.all(u).then(function(){d=r._openRequest("POST",r.options.endpoint),d.setHeader("Upload-Concat","final;".concat(r._parallelUploadUrls.join(" ")));var f=z6(r.options.metadata);return f!==""&&d.setHeader("Upload-Metadata",f),r._sendRequest(d,null)}).then(function(f){if(!Qb(f.getStatus(),200)){r._emitHttpError(d,f,"tus: unexpected response while creating upload");return}var g=f.getHeader("Location");if(g==null){r._emitHttpError(d,f,"tus: invalid or missing Location header");return}r.url=G6(r.options.endpoint,g),"Created upload at ".concat(r.url),r._emitSuccess(f)}).catch(function(f){r._emitError(f)})}},{key:"_startSingleUpload",value:function(){if(this._aborted=!1,this.url!=null){"Resuming upload from previous URL: ".concat(this.url),this._resumeUpload();return}if(this.options.uploadUrl!=null){"Resuming upload from provided URL: ".concat(this.options.uploadUrl),this.url=this.options.uploadUrl,this._resumeUpload();return}this._createUpload()}},{key:"abort",value:function(n){var r=this;if(this._parallelUploads!=null){var a=Npe(this._parallelUploads),i;try{for(a.s();!(i=a.n()).done;){var o=i.value;o.abort(n)}}catch(l){a.e(l)}finally{a.f()}}return this._req!==null&&this._req.abort(),this._aborted=!0,this._retryTimeout!=null&&(clearTimeout(this._retryTimeout),this._retryTimeout=null),!n||this.url==null?Promise.resolve():e.terminate(this.url,this.options).then(function(){return r._removeFromUrlStorage()})}},{key:"_emitHttpError",value:function(n,r,a,i){this._emitError(new Sk(a,i,n,r))}},{key:"_emitError",value:function(n){var r=this;if(!this._aborted){if(this.options.retryDelays!=null){var a=this._offset!=null&&this._offset>this._offsetBeforeRetry;if(a&&(this._retryAttempt=0),V6(n,this._retryAttempt,this.options)){var i=this.options.retryDelays[this._retryAttempt++];this._offsetBeforeRetry=this._offset,this._retryTimeout=setTimeout(function(){r.start()},i);return}}if(typeof this.options.onError=="function")this.options.onError(n);else throw n}}},{key:"_emitSuccess",value:function(n){this.options.removeFingerprintOnSuccess&&this._removeFromUrlStorage(),typeof this.options.onSuccess=="function"&&this.options.onSuccess({lastResponse:n})}},{key:"_emitProgress",value:function(n,r){typeof this.options.onProgress=="function"&&this.options.onProgress(n,r)}},{key:"_emitChunkComplete",value:function(n,r,a){typeof this.options.onChunkComplete=="function"&&this.options.onChunkComplete(n,r,a)}},{key:"_createUpload",value:function(){var n=this;if(!this.options.endpoint){this._emitError(new Error("tus: unable to create upload because no endpoint is provided"));return}var r=this._openRequest("POST",this.options.endpoint);this.options.uploadLengthDeferred?r.setHeader("Upload-Defer-Length","1"):r.setHeader("Upload-Length","".concat(this._size));var a=z6(this.options.metadata);a!==""&&r.setHeader("Upload-Metadata",a);var i;this.options.uploadDataDuringCreation&&!this.options.uploadLengthDeferred?(this._offset=0,i=this._addChunkToRequest(r)):((this.options.protocol===ax||this.options.protocol===L1)&&r.setHeader("Upload-Complete","?0"),i=this._sendRequest(r,null)),i.then(function(o){if(!Qb(o.getStatus(),200)){n._emitHttpError(r,o,"tus: unexpected response while creating upload");return}var l=o.getHeader("Location");if(l==null){n._emitHttpError(r,o,"tus: invalid or missing Location header");return}if(n.url=G6(n.options.endpoint,l),"Created upload at ".concat(n.url),typeof n.options.onUploadUrlAvailable=="function"&&n.options.onUploadUrlAvailable(),n._size===0){n._emitSuccess(o),n._source.close();return}n._saveUploadInUrlStorage().then(function(){n.options.uploadDataDuringCreation?n._handleUploadResponse(r,o):(n._offset=0,n._performUpload())})}).catch(function(o){n._emitHttpError(r,null,"tus: failed to create upload",o)})}},{key:"_resumeUpload",value:function(){var n=this,r=this._openRequest("HEAD",this.url),a=this._sendRequest(r,null);a.then(function(i){var o=i.getStatus();if(!Qb(o,200)){if(o===423){n._emitHttpError(r,i,"tus: upload is currently locked; retry later");return}if(Qb(o,400)&&n._removeFromUrlStorage(),!n.options.endpoint){n._emitHttpError(r,i,"tus: unable to resume upload (new upload cannot be created without an endpoint)");return}n.url=null,n._createUpload();return}var l=Number.parseInt(i.getHeader("Upload-Offset"),10);if(Number.isNaN(l)){n._emitHttpError(r,i,"tus: invalid or missing offset value");return}var u=Number.parseInt(i.getHeader("Upload-Length"),10);if(Number.isNaN(u)&&!n.options.uploadLengthDeferred&&n.options.protocol===rx){n._emitHttpError(r,i,"tus: invalid or missing length value");return}typeof n.options.onUploadUrlAvailable=="function"&&n.options.onUploadUrlAvailable(),n._saveUploadInUrlStorage().then(function(){if(l===u){n._emitProgress(u,u),n._emitSuccess(i);return}n._offset=l,n._performUpload()})}).catch(function(i){n._emitHttpError(r,null,"tus: failed to resume upload",i)})}},{key:"_performUpload",value:function(){var n=this;if(!this._aborted){var r;this.options.overridePatchMethod?(r=this._openRequest("POST",this.url),r.setHeader("X-HTTP-Method-Override","PATCH")):r=this._openRequest("PATCH",this.url),r.setHeader("Upload-Offset","".concat(this._offset));var a=this._addChunkToRequest(r);a.then(function(i){if(!Qb(i.getStatus(),200)){n._emitHttpError(r,i,"tus: unexpected response while uploading chunk");return}n._handleUploadResponse(r,i)}).catch(function(i){n._aborted||n._emitHttpError(r,null,"tus: failed to upload chunk at offset ".concat(n._offset),i)})}}},{key:"_addChunkToRequest",value:function(n){var r=this,a=this._offset,i=this._offset+this.options.chunkSize;return n.setProgressHandler(function(o){r._emitProgress(a+o,r._size)}),this.options.protocol===rx?n.setHeader("Content-Type","application/offset+octet-stream"):this.options.protocol===L1&&n.setHeader("Content-Type","application/partial-upload"),(i===Number.POSITIVE_INFINITY||i>this._size)&&!this.options.uploadLengthDeferred&&(i=this._size),this._source.slice(a,i).then(function(o){var l=o.value,u=o.done,d=l!=null&&l.size?l.size:0;r.options.uploadLengthDeferred&&u&&(r._size=r._offset+d,n.setHeader("Upload-Length","".concat(r._size)));var f=r._offset+d;return!r.options.uploadLengthDeferred&&u&&f!==r._size?Promise.reject(new Error("upload was configured with a size of ".concat(r._size," bytes, but the source is done after ").concat(f," bytes"))):l===null?r._sendRequest(n):((r.options.protocol===ax||r.options.protocol===L1)&&n.setHeader("Upload-Complete",u?"?1":"?0"),r._emitProgress(r._offset,r._size),r._sendRequest(n,l))})}},{key:"_handleUploadResponse",value:function(n,r){var a=Number.parseInt(r.getHeader("Upload-Offset"),10);if(Number.isNaN(a)){this._emitHttpError(n,r,"tus: invalid or missing offset value");return}if(this._emitProgress(a,this._size),this._emitChunkComplete(a-this._offset,a,this._size),this._offset=a,a===this._size){this._emitSuccess(r),this._source.close();return}this._performUpload()}},{key:"_openRequest",value:function(n,r){var a=q6(n,r,this.options);return this._req=a,a}},{key:"_removeFromUrlStorage",value:function(){var n=this;this._urlStorageKey&&(this._urlStorage.removeUpload(this._urlStorageKey).catch(function(r){n._emitError(r)}),this._urlStorageKey=null)}},{key:"_saveUploadInUrlStorage",value:function(){var n=this;if(!this.options.storeFingerprintForResuming||!this._fingerprint||this._urlStorageKey!==null)return Promise.resolve();var r={size:this._size,metadata:this.options.metadata,creationTime:new Date().toString()};return this._parallelUploads?r.parallelUploadUrls=this._parallelUploadUrls:r.uploadUrl=this.url,this._urlStorage.addUpload(this._fingerprint,r).then(function(a){n._urlStorageKey=a})}},{key:"_sendRequest",value:function(n){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;return H6(n,r,this.options)}}],[{key:"terminate",value:function(n){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},a=q6("DELETE",n,r);return H6(a,null,r).then(function(i){if(i.getStatus()!==204)throw new Sk("tus: unexpected response while terminating upload",null,a,i)}).catch(function(i){if(i instanceof Sk||(i=new Sk("tus: failed to terminate upload",i,a,null)),!V6(i,0,r))throw i;var o=r.retryDelays[0],l=r.retryDelays.slice(1),u=Fb(Fb({},r),{},{retryDelays:l});return new Promise(function(d){return setTimeout(d,o)}).then(function(){return e.terminate(n,u)})})}}])})();function z6(e){return Object.entries(e).map(function(t){var n=iJ(t,2),r=n[0],a=n[1];return"".concat(r," ").concat(Spe.encode(String(a)))}).join(",")}function Qb(e,t){return e>=t&&e=n.retryDelays.length||e.originalRequest==null?!1:n&&typeof n.onShouldRetry=="function"?n.onShouldRetry(e,t,n):lJ(e)}function lJ(e){var t=e.originalResponse?e.originalResponse.getStatus():0;return(!Qb(t,400)||t===409||t===423)&&Fpe()}function G6(e,t){return new xpe(t,e).toString()}function jpe(e,t){for(var n=Math.floor(e/t),r=[],a=0;a=this.size;return Promise.resolve({value:a,done:i})}},{key:"close",value:function(){}}])})();function mE(e){"@babel/helpers - typeof";return mE=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},mE(e)}function Ype(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Kpe(e,t){for(var n=0;nthis._bufferOffset&&(this._buffer=this._buffer.slice(n-this._bufferOffset),this._bufferOffset=n);var a=K6(this._buffer)===0;return this._done&&a?null:this._buffer.slice(0,r-n)}},{key:"close",value:function(){this._reader.cancel&&this._reader.cancel()}}])})();function ny(e){"@babel/helpers - typeof";return ny=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},ny(e)}function BL(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */BL=function(){return t};var e,t={},n=Object.prototype,r=n.hasOwnProperty,a=Object.defineProperty||function(W,G,q){W[G]=q.value},i=typeof Symbol=="function"?Symbol:{},o=i.iterator||"@@iterator",l=i.asyncIterator||"@@asyncIterator",u=i.toStringTag||"@@toStringTag";function d(W,G,q){return Object.defineProperty(W,G,{value:q,enumerable:!0,configurable:!0,writable:!0}),W[G]}try{d({},"")}catch{d=function(q,ce,H){return q[ce]=H}}function f(W,G,q,ce){var H=G&&G.prototype instanceof C?G:C,K=Object.create(H.prototype),ae=new me(ce||[]);return a(K,"_invoke",{value:z(W,q,ae)}),K}function g(W,G,q){try{return{type:"normal",arg:W.call(G,q)}}catch(ce){return{type:"throw",arg:ce}}}t.wrap=f;var y="suspendedStart",h="suspendedYield",v="executing",E="completed",T={};function C(){}function k(){}function _(){}var A={};d(A,o,function(){return this});var P=Object.getPrototypeOf,N=P&&P(P(ge([])));N&&N!==n&&r.call(N,o)&&(A=N);var I=_.prototype=C.prototype=Object.create(A);function L(W){["next","throw","return"].forEach(function(G){d(W,G,function(q){return this._invoke(G,q)})})}function j(W,G){function q(H,K,ae,J){var ee=g(W[H],W,K);if(ee.type!=="throw"){var Z=ee.arg,le=Z.value;return le&&ny(le)=="object"&&r.call(le,"__await")?G.resolve(le.__await).then(function(ke){q("next",ke,ae,J)},function(ke){q("throw",ke,ae,J)}):G.resolve(le).then(function(ke){Z.value=ke,ae(Z)},function(ke){return q("throw",ke,ae,J)})}J(ee.arg)}var ce;a(this,"_invoke",{value:function(K,ae){function J(){return new G(function(ee,Z){q(K,ae,ee,Z)})}return ce=ce?ce.then(J,J):J()}})}function z(W,G,q){var ce=y;return function(H,K){if(ce===v)throw Error("Generator is already running");if(ce===E){if(H==="throw")throw K;return{value:e,done:!0}}for(q.method=H,q.arg=K;;){var ae=q.delegate;if(ae){var J=Q(ae,q);if(J){if(J===T)continue;return J}}if(q.method==="next")q.sent=q._sent=q.arg;else if(q.method==="throw"){if(ce===y)throw ce=E,q.arg;q.dispatchException(q.arg)}else q.method==="return"&&q.abrupt("return",q.arg);ce=v;var ee=g(W,G,q);if(ee.type==="normal"){if(ce=q.done?E:h,ee.arg===T)continue;return{value:ee.arg,done:q.done}}ee.type==="throw"&&(ce=E,q.method="throw",q.arg=ee.arg)}}}function Q(W,G){var q=G.method,ce=W.iterator[q];if(ce===e)return G.delegate=null,q==="throw"&&W.iterator.return&&(G.method="return",G.arg=e,Q(W,G),G.method==="throw")||q!=="return"&&(G.method="throw",G.arg=new TypeError("The iterator does not provide a '"+q+"' method")),T;var H=g(ce,W.iterator,G.arg);if(H.type==="throw")return G.method="throw",G.arg=H.arg,G.delegate=null,T;var K=H.arg;return K?K.done?(G[W.resultName]=K.value,G.next=W.nextLoc,G.method!=="return"&&(G.method="next",G.arg=e),G.delegate=null,T):K:(G.method="throw",G.arg=new TypeError("iterator result is not an object"),G.delegate=null,T)}function ue(W){var G={tryLoc:W[0]};1 in W&&(G.catchLoc=W[1]),2 in W&&(G.finallyLoc=W[2],G.afterLoc=W[3]),this.tryEntries.push(G)}function re(W){var G=W.completion||{};G.type="normal",delete G.arg,W.completion=G}function me(W){this.tryEntries=[{tryLoc:"root"}],W.forEach(ue,this),this.reset(!0)}function ge(W){if(W||W===""){var G=W[o];if(G)return G.call(W);if(typeof W.next=="function")return W;if(!isNaN(W.length)){var q=-1,ce=function H(){for(;++q=0;--H){var K=this.tryEntries[H],ae=K.completion;if(K.tryLoc==="root")return ce("end");if(K.tryLoc<=this.prev){var J=r.call(K,"catchLoc"),ee=r.call(K,"finallyLoc");if(J&&ee){if(this.prev=0;--ce){var H=this.tryEntries[ce];if(H.tryLoc<=this.prev&&r.call(H,"finallyLoc")&&this.prev=0;--q){var ce=this.tryEntries[q];if(ce.finallyLoc===G)return this.complete(ce.completion,ce.afterLoc),re(ce),T}},catch:function(G){for(var q=this.tryEntries.length-1;q>=0;--q){var ce=this.tryEntries[q];if(ce.tryLoc===G){var H=ce.completion;if(H.type==="throw"){var K=H.arg;re(ce)}return K}}throw Error("illegal catch attempt")},delegateYield:function(G,q,ce){return this.delegate={iterator:ge(G),resultName:q,nextLoc:ce},this.method==="next"&&(this.arg=e),T}},t}function X6(e,t,n,r,a,i,o){try{var l=e[i](o),u=l.value}catch(d){n(d);return}l.done?t(u):Promise.resolve(u).then(r,a)}function the(e){return function(){var t=this,n=arguments;return new Promise(function(r,a){var i=e.apply(t,n);function o(u){X6(i,r,a,o,l,"next",u)}function l(u){X6(i,r,a,o,l,"throw",u)}o(void 0)})}}function nhe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function rhe(e,t){for(var n=0;n0&&arguments[0]!==void 0?arguments[0]:null;return new Promise(function(a,i){n._xhr.onload=function(){a(new ghe(n._xhr))},n._xhr.onerror=function(o){i(o)},n._xhr.send(r)})}},{key:"abort",value:function(){return this._xhr.abort(),Promise.resolve()}},{key:"getUnderlyingObject",value:function(){return this._xhr}}])})(),ghe=(function(){function e(t){BF(this,e),this._xhr=t}return WF(e,[{key:"getStatus",value:function(){return this._xhr.status}},{key:"getHeader",value:function(n){return this._xhr.getResponseHeader(n)}},{key:"getBody",value:function(){return this._xhr.responseText}},{key:"getUnderlyingObject",value:function(){return this._xhr}}])})();function vE(e){"@babel/helpers - typeof";return vE=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},vE(e)}function vhe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function yhe(e,t){for(var n=0;n0&&arguments[0]!==void 0?arguments[0]:null,r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return Che(this,t),r=t0(t0({},Z6),r),_he(this,t,[n,r])}return Phe(t,e),xhe(t,null,[{key:"terminate",value:function(r){var a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return a=t0(t0({},Z6),a),Px.terminate(r,a)}}])})(Px);const it=ze.createContext({setSession(e){},options:{}});class Ihe{async setItem(t,n){return localStorage.setItem(t,n)}async getItem(t){return localStorage.getItem(t)}async removeItem(t){return localStorage.removeItem(t)}}async function Dhe(e,t,n){n.setItem("fb_microservice_"+e,JSON.stringify(t))}function $he(e,t,n){n.setItem("fb_selected_workspace_"+e,JSON.stringify(t))}async function Lhe(e,t){let n=null;try{n=JSON.parse(await t.getItem("fb_microservice_"+e))}catch{}return n}async function Fhe(e,t){let n=null;try{n=JSON.parse(await t.getItem("fb_selected_workspace_"+e))}catch{}return n}function jhe({children:e,remote:t,selectedUrw:n,identifier:r,token:a,preferredAcceptLanguage:i,queryClient:o,defaultExecFn:l,socketEnabled:u,socket:d,credentialStorage:f,prefix:g}){var G;const[y,h]=R.useState(!1),[v,E]=R.useState(),[T,C]=R.useState(""),[k,_]=R.useState(),A=R.useRef(f||new Ihe),P=async()=>{const q=await Fhe(r,A.current),ce=await Lhe(r,A.current);_(q),E(ce),h(!0)};R.useEffect(()=>{P()},[]);const[N,I]=R.useState([]),[L,j]=R.useState(l),z=!!v,Q=q=>{$he(r,q,A.current),_(q)},ue=q=>{E(()=>(Dhe(r,q,A.current),q))},re={headers:{authorization:a||(v==null?void 0:v.token)},prefix:(T||t)+(g||"")};if(k)re.headers["workspace-id"]=k.workspaceId,re.headers["role-id"]=k.roleId;else if(n)re.headers["workspace-id"]=n.workspaceId,re.headers["role-id"]=n.roleId;else if(v!=null&&v.userWorkspaces&&v.userWorkspaces.length>0){const q=v.userWorkspaces[0];re.headers["workspace-id"]=q.workspaceId,re.headers["role-id"]=q.roleId}i&&(re.headers["accept-language"]=i),R.useEffect(()=>{a&&E({...v||{},token:a})},[a]);const me=()=>{var q;E(null),(q=A.current)==null||q.removeItem("fb_microservice_"+r),Q(void 0)},ge=()=>{I([])},{socketState:W}=Uhe(t,(G=re.headers)==null?void 0:G.authorization,re.headers["workspace-id"],o,u);return w.jsx(it.Provider,{value:{options:re,signout:me,setOverrideRemoteUrl:C,overrideRemoteUrl:T,setSession:ue,socketState:W,checked:y,selectedUrw:k,selectUrw:Q,session:v,preferredAcceptLanguage:i,activeUploads:N,setActiveUploads:I,execFn:L,setExecFn:j,discardActiveUploads:ge,isAuthenticated:z},children:e})}function Uhe(e,t,n,r,a=!0){const[i,o]=R.useState({state:"unknown"});return R.useEffect(()=>{if(!e||!t||t==="undefined"||a===!1)return;const l=e.replace("https","wss").replace("http","ws");let u;try{u=new WebSocket(`${l}ws?token=${t}&workspaceId=${n}`),u.onerror=function(d){o({state:"error"})},u.onclose=function(d){o({state:"closed"})},u.onmessage=function(d){try{const f=JSON.parse(d.data);f!=null&&f.cacheKey&&r.invalidateQueries(f==null?void 0:f.cacheKey)}catch{console.error("Socket message parsing error",d)}},u.onopen=function(d){o({state:"connected"})}}catch{}return()=>{(u==null?void 0:u.readyState)===1&&u.close()}},[t,n]),{socketState:i}}function Gt(e){if(!e)return{};const t={};return e.startIndex&&(t.startIndex=e.startIndex),e.itemsPerPage&&(t.itemsPerPage=e.itemsPerPage),e.query&&(t.query=e.query),e.deep&&(t.deep=e.deep),e.jsonQuery&&(t.jsonQuery=JSON.stringify(e.jsonQuery)),e.withPreloads&&(t.withPreloads=e.withPreloads),e.uniqueId&&(t.uniqueId=e.uniqueId),e.sort&&(t.sort=e.sort),t}function Bhe(){const{activeUploads:e,setActiveUploads:t}=R.useContext(it),n=()=>{t([])};return e.length===0?null:w.jsxs("div",{className:"active-upload-box",children:[w.jsxs("div",{className:"upload-header",children:[w.jsxs("span",{children:[e.length," Uploads"]}),w.jsx("span",{className:"action-section",children:w.jsx("button",{onClick:n,children:w.jsx("img",{src:"/common/close.svg"})})})]}),e.map(r=>w.jsxs("div",{className:"upload-file-item",children:[w.jsx("span",{children:r.filename}),w.jsxs("span",{children:[Math.ceil(r.bytesSent/r.bytesTotal*100),"%"]})]},r.uploadId))]})}var mP={exports:{}};/*! Copyright (c) 2018 Jed Watson. Licensed under the MIT License (MIT), see http://jedwatson.github.io/classnames -*/var x6;function mh(){return x6||(x6=1,(function(e){(function(){var t={}.hasOwnProperty;function n(){for(var i="",o=0;ol.uniqueId===e.workspaceId);if(!i)return!1;for(const l of i.capabilities||[])if(new RegExp(l).test(n)){r=!0;break}const o=(i.roles||[]).find(l=>l.uniqueId===e.roleId);if(!o)return!1;for(const l of o.capabilities||[])if(new RegExp(l).test(n)){a=!0;break}return r&&a}function FQ(e){for(var t=[],n=e.length,r,a=0;a>>0,t.push(String.fromCharCode(r));return t.join("")}function yhe(e,t,n,r,a){var i=new XMLHttpRequest;i.open(t,e),i.addEventListener("load",function(){var o=FQ(this.responseText);o="data:application/text;base64,"+btoa(o),document.location=o},!1),i.setRequestHeader("Authorization",n),i.setRequestHeader("Workspace-Id",r),i.setRequestHeader("role-Id",a),i.overrideMimeType("application/octet-stream; charset=x-user-defined;"),i.send(null)}const bhe=({path:e})=>{At();const{options:t}=R.useContext(rt);UQ(e?()=>{const n=t==null?void 0:t.headers;yhe(t.prefix+""+e,"GET",n.authorization||"",n["workspace-id"]||"",n["role-id"]||"")}:void 0,Ir.ExportTable)};function w0(e,t){const n={[Ir.NewEntity]:"n",[Ir.NewChildEntity]:"n",[Ir.EditEntity]:"e",[Ir.SidebarToggle]:"m",[Ir.ViewQuestions]:"q",[Ir.Delete]:"Backspace",[Ir.StopStart]:" ",[Ir.ExportTable]:"x",[Ir.CommonBack]:"Escape",[Ir.Select1Index]:"1",[Ir.Select2Index]:"2",[Ir.Select3Index]:"3",[Ir.Select4Index]:"4",[Ir.Select5Index]:"5",[Ir.Select6Index]:"6",[Ir.Select7Index]:"7",[Ir.Select8Index]:"8",[Ir.Select9Index]:"9"};let r;return typeof e=="object"?r=e.map(a=>n[a]):typeof e=="string"&&(r=n[e]),mF(r,t)}function mF(e,t){R.useEffect(()=>{if(!e||e.length===0||!t)return;function n(r){var a=r||window.event,i=a.target||a.srcElement;const o=i.tagName.toUpperCase(),l=i.type;if(["TEXTAREA","SELECT"].includes(o)){r.key==="Escape"&&a.target.blur();return}if(o==="INPUT"&&(l==="text"||l==="password")){r.key==="Escape"&&a.target.blur();return}let u=!1;typeof e=="string"&&r.key===e?u=!0:Array.isArray(e)&&(u=e.includes(r.key)),u&&t&&t(r.key)}if(t)return window.addEventListener("keyup",n),()=>{window.removeEventListener("keyup",n)}},[t,e])}function gL({filter:e}){const t=R.useContext(f_);return w.jsx(w.Fragment,{children:(t.refs||[]).filter(e||Boolean).map(n=>w.jsx(whe,{mref:n},n.id))})}function whe({mref:e}){var t;return w.jsx("div",{className:"action-menu",children:w.jsx("ul",{className:"navbar-nav",children:(t=e.actions)==null?void 0:t.filter(Boolean).map(n=>w.jsx(She,{item:n},n.uniqueActionKey))})})}function She({item:e}){if(e.Component){const t=e.Component;return w.jsx("li",{className:"action-menu-item",children:w.jsx(t,{})})}return w.jsx("li",{className:oa("action-menu-item",e.className),onClick:e.onSelect,children:e.icon?w.jsx("span",{children:w.jsx("img",{src:kr.PUBLIC_URL+e.icon,title:e.label,alt:e.label})}):w.jsx("span",{children:e.label})})}const f_=ze.createContext({setActionMenu(){},removeActionMenu(){},removeActionMenuItems(e,t){},refs:[]});function Ehe(){const e=R.useContext(f_);return{addActions:(a,i)=>(e.setActionMenu(a,i),()=>e.removeActionMenu(a)),removeActionMenu:a=>{e.removeActionMenu(a)},deleteActions:(a,i)=>{e.removeActionMenuItems(a,i)}}}function ME(e,t,n,r){const a=R.useContext(f_);return R.useEffect(()=>(a.setActionMenu(e,t.filter(i=>i!==void 0)),()=>{a.removeActionMenu(e)}),[]),{addActions(i,o=e){a.setActionMenu(o,i)},deleteActions(i,o=e){a.removeActionMenuItems(o,i)}}}function The({children:e}){const[t,n]=R.useState([]),r=(o,l)=>{n(u=>(u.find(f=>f.id===o)?u=u.map(f=>f.id===o?{...f,actions:l}:f):u.push({id:o,actions:l}),[...u]))},a=o=>{n(l=>[...l.filter(u=>u.id!==o)])},i=(o,l)=>{for(let d=0;dv===y.uniqueActionKey)||g.push(y);f.actions=g}}const u=[...t];n(u)};return w.jsx(f_.Provider,{value:{refs:t,setActionMenu:r,removeActionMenuItems:i,removeActionMenu:a},children:e})}function Che({onCancel:e,onSave:t,access:n}){const{selectedUrw:r}=R.useContext(rt),a=R.useMemo(()=>n?(r==null?void 0:r.workspaceId)!=="root"&&(n!=null&&n.onlyRoot)?!1:!(n!=null&&n.permissions)||n.permissions.length===0?!0:ghe(r,n.permissions[0]):!0,[r,n]),i=At();ME("editing-core",(({onSave:l,onCancel:u})=>a?[{icon:"",label:i.common.save,uniqueActionKey:"save",onSelect:()=>{l()}},u&&{icon:"",label:i.common.cancel,uniqueActionKey:"cancel",onSelect:()=>{u()}}]:[])({onCancel:e,onSave:t}))}function khe(e,t){const n=At();w0(t,e),ME("commonEntityActions",[e&&{icon:xu.add,label:n.actions.new,uniqueActionKey:"new",onSelect:e}])}function jQ(e,t){const n=At();w0(t,e),ME("navigation",[e&&{icon:xu.left,label:n.actions.back,uniqueActionKey:"back",className:"navigator-back-button",onSelect:e}])}function xhe(){const{session:e,options:t}=R.useContext(rt);UQ(()=>{var n=new XMLHttpRequest;n.open("GET",t.prefix+"roles/export"),n.addEventListener("load",function(){var a=FQ(this.responseText);a="data:application/text;base64,"+btoa(a),document.location=a},!1);const r=t==null?void 0:t.headers;n.setRequestHeader("Authorization",r.authorization||""),n.setRequestHeader("Workspace-Id",r["workspace-id"]||""),n.setRequestHeader("role-Id",r["role-id"]||""),n.overrideMimeType("application/octet-stream; charset=x-user-defined;"),n.send(null)},Ir.ExportTable)}function UQ(e,t){const n=At();w0(t,e),ME("exportTools",[e&&{icon:xu.export,label:n.actions.new,uniqueActionKey:"export",onSelect:e}])}function _he(e,t){const n=At();w0(t,e),ME("commonEntityActions",[e&&{icon:xu.edit,label:n.actions.edit,uniqueActionKey:"new",onSelect:e}])}function Ohe(e,t,n=100){const r=R.useRef(window.innerWidth);R.useEffect(()=>{let a;const i=()=>{const l=window.innerWidth,u=l=e&&u||r.current{clearTimeout(a),a=setTimeout(i,n)};return window.addEventListener("resize",o),i(),()=>{window.removeEventListener("resize",o),clearTimeout(a)}},[e,t,n])}function BQ(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e))for(t=0;ttypeof e=="number"&&!isNaN(e),Dv=e=>typeof e=="string",is=e=>typeof e=="function",Ik=e=>Dv(e)||is(e)?e:null,qR=e=>R.isValidElement(e)||Dv(e)||is(e)||TS(e);function Rhe(e,t,n){n===void 0&&(n=300);const{scrollHeight:r,style:a}=e;requestAnimationFrame(()=>{a.minHeight="initial",a.height=r+"px",a.transition=`all ${n}ms`,requestAnimationFrame(()=>{a.height="0",a.padding="0",a.margin="0",setTimeout(t,n)})})}function p_(e){let{enter:t,exit:n,appendPosition:r=!1,collapse:a=!0,collapseDuration:i=300}=e;return function(o){let{children:l,position:u,preventExitTransition:d,done:f,nodeRef:g,isIn:y}=o;const h=r?`${t}--${u}`:t,v=r?`${n}--${u}`:n,E=R.useRef(0);return R.useLayoutEffect(()=>{const T=g.current,C=h.split(" "),k=_=>{_.target===g.current&&(T.dispatchEvent(new Event("d")),T.removeEventListener("animationend",k),T.removeEventListener("animationcancel",k),E.current===0&&_.type!=="animationcancel"&&T.classList.remove(...C))};T.classList.add(...C),T.addEventListener("animationend",k),T.addEventListener("animationcancel",k)},[]),R.useEffect(()=>{const T=g.current,C=()=>{T.removeEventListener("animationend",C),a?Rhe(T,f,i):f()};y||(d?C():(E.current=1,T.className+=` ${v}`,T.addEventListener("animationend",C)))},[y]),ze.createElement(ze.Fragment,null,l)}}function _6(e,t){return e!=null?{content:e.content,containerId:e.props.containerId,id:e.props.toastId,theme:e.props.theme,type:e.props.type,data:e.props.data||{},isLoading:e.props.isLoading,icon:e.props.icon,status:t}:{}}const Tl={list:new Map,emitQueue:new Map,on(e,t){return this.list.has(e)||this.list.set(e,[]),this.list.get(e).push(t),this},off(e,t){if(t){const n=this.list.get(e).filter(r=>r!==t);return this.list.set(e,n),this}return this.list.delete(e),this},cancelEmit(e){const t=this.emitQueue.get(e);return t&&(t.forEach(clearTimeout),this.emitQueue.delete(e)),this},emit(e){this.list.has(e)&&this.list.get(e).forEach(t=>{const n=setTimeout(()=>{t(...[].slice.call(arguments,1))},0);this.emitQueue.has(e)||this.emitQueue.set(e,[]),this.emitQueue.get(e).push(n)})}},ek=e=>{let{theme:t,type:n,...r}=e;return ze.createElement("svg",{viewBox:"0 0 24 24",width:"100%",height:"100%",fill:t==="colored"?"currentColor":`var(--toastify-icon-color-${n})`,...r})},HR={info:function(e){return ze.createElement(ek,{...e},ze.createElement("path",{d:"M12 0a12 12 0 1012 12A12.013 12.013 0 0012 0zm.25 5a1.5 1.5 0 11-1.5 1.5 1.5 1.5 0 011.5-1.5zm2.25 13.5h-4a1 1 0 010-2h.75a.25.25 0 00.25-.25v-4.5a.25.25 0 00-.25-.25h-.75a1 1 0 010-2h1a2 2 0 012 2v4.75a.25.25 0 00.25.25h.75a1 1 0 110 2z"}))},warning:function(e){return ze.createElement(ek,{...e},ze.createElement("path",{d:"M23.32 17.191L15.438 2.184C14.728.833 13.416 0 11.996 0c-1.42 0-2.733.833-3.443 2.184L.533 17.448a4.744 4.744 0 000 4.368C1.243 23.167 2.555 24 3.975 24h16.05C22.22 24 24 22.044 24 19.632c0-.904-.251-1.746-.68-2.44zm-9.622 1.46c0 1.033-.724 1.823-1.698 1.823s-1.698-.79-1.698-1.822v-.043c0-1.028.724-1.822 1.698-1.822s1.698.79 1.698 1.822v.043zm.039-12.285l-.84 8.06c-.057.581-.408.943-.897.943-.49 0-.84-.367-.896-.942l-.84-8.065c-.057-.624.25-1.095.779-1.095h1.91c.528.005.84.476.784 1.1z"}))},success:function(e){return ze.createElement(ek,{...e},ze.createElement("path",{d:"M12 0a12 12 0 1012 12A12.014 12.014 0 0012 0zm6.927 8.2l-6.845 9.289a1.011 1.011 0 01-1.43.188l-4.888-3.908a1 1 0 111.25-1.562l4.076 3.261 6.227-8.451a1 1 0 111.61 1.183z"}))},error:function(e){return ze.createElement(ek,{...e},ze.createElement("path",{d:"M11.983 0a12.206 12.206 0 00-8.51 3.653A11.8 11.8 0 000 12.207 11.779 11.779 0 0011.8 24h.214A12.111 12.111 0 0024 11.791 11.766 11.766 0 0011.983 0zM10.5 16.542a1.476 1.476 0 011.449-1.53h.027a1.527 1.527 0 011.523 1.47 1.475 1.475 0 01-1.449 1.53h-.027a1.529 1.529 0 01-1.523-1.47zM11 12.5v-6a1 1 0 012 0v6a1 1 0 11-2 0z"}))},spinner:function(){return ze.createElement("div",{className:"Toastify__spinner"})}};function Phe(e){const[,t]=R.useReducer(h=>h+1,0),[n,r]=R.useState([]),a=R.useRef(null),i=R.useRef(new Map).current,o=h=>n.indexOf(h)!==-1,l=R.useRef({toastKey:1,displayedToast:0,count:0,queue:[],props:e,containerId:null,isToastActive:o,getToast:h=>i.get(h)}).current;function u(h){let{containerId:v}=h;const{limit:E}=l.props;!E||v&&l.containerId!==v||(l.count-=l.queue.length,l.queue=[])}function d(h){r(v=>h==null?[]:v.filter(E=>E!==h))}function f(){const{toastContent:h,toastProps:v,staleId:E}=l.queue.shift();y(h,v,E)}function g(h,v){let{delay:E,staleId:T,...C}=v;if(!qR(h)||(function(le){return!a.current||l.props.enableMultiContainer&&le.containerId!==l.props.containerId||i.has(le.toastId)&&le.updateId==null})(C))return;const{toastId:k,updateId:_,data:A}=C,{props:P}=l,N=()=>d(k),I=_==null;I&&l.count++;const L={...P,style:P.toastStyle,key:l.toastKey++,...Object.fromEntries(Object.entries(C).filter(le=>{let[re,ge]=le;return ge!=null})),toastId:k,updateId:_,data:A,closeToast:N,isIn:!1,className:Ik(C.className||P.toastClassName),bodyClassName:Ik(C.bodyClassName||P.bodyClassName),progressClassName:Ik(C.progressClassName||P.progressClassName),autoClose:!C.isLoading&&(j=C.autoClose,z=P.autoClose,j===!1||TS(j)&&j>0?j:z),deleteToast(){const le=_6(i.get(k),"removed");i.delete(k),Tl.emit(4,le);const re=l.queue.length;if(l.count=k==null?l.count-l.displayedToast:l.count-1,l.count<0&&(l.count=0),re>0){const ge=k==null?l.props.limit:1;if(re===1||ge===1)l.displayedToast++,f();else{const me=ge>re?re:ge;l.displayedToast=me;for(let W=0;Wce in HR)(ge)&&(G=HR[ge](q))),G})(L),is(C.onOpen)&&(L.onOpen=C.onOpen),is(C.onClose)&&(L.onClose=C.onClose),L.closeButton=P.closeButton,C.closeButton===!1||qR(C.closeButton)?L.closeButton=C.closeButton:C.closeButton===!0&&(L.closeButton=!qR(P.closeButton)||P.closeButton);let Q=h;R.isValidElement(h)&&!Dv(h.type)?Q=R.cloneElement(h,{closeToast:N,toastProps:L,data:A}):is(h)&&(Q=h({closeToast:N,toastProps:L,data:A})),P.limit&&P.limit>0&&l.count>P.limit&&I?l.queue.push({toastContent:Q,toastProps:L,staleId:T}):TS(E)?setTimeout(()=>{y(Q,L,T)},E):y(Q,L,T)}function y(h,v,E){const{toastId:T}=v;E&&i.delete(E);const C={content:h,props:v};i.set(T,C),r(k=>[...k,T].filter(_=>_!==E)),Tl.emit(4,_6(C,C.props.updateId==null?"added":"updated"))}return R.useEffect(()=>(l.containerId=e.containerId,Tl.cancelEmit(3).on(0,g).on(1,h=>a.current&&d(h)).on(5,u).emit(2,l),()=>{i.clear(),Tl.emit(3,l)}),[]),R.useEffect(()=>{l.props=e,l.isToastActive=o,l.displayedToast=n.length}),{getToastToRender:function(h){const v=new Map,E=Array.from(i.values());return e.newestOnTop&&E.reverse(),E.forEach(T=>{const{position:C}=T.props;v.has(C)||v.set(C,[]),v.get(C).push(T)}),Array.from(v,T=>h(T[0],T[1]))},containerRef:a,isToastActive:o}}function O6(e){return e.targetTouches&&e.targetTouches.length>=1?e.targetTouches[0].clientX:e.clientX}function R6(e){return e.targetTouches&&e.targetTouches.length>=1?e.targetTouches[0].clientY:e.clientY}function Ahe(e){const[t,n]=R.useState(!1),[r,a]=R.useState(!1),i=R.useRef(null),o=R.useRef({start:0,x:0,y:0,delta:0,removalDistance:0,canCloseOnClick:!0,canDrag:!1,boundingRect:null,didMove:!1}).current,l=R.useRef(e),{autoClose:u,pauseOnHover:d,closeToast:f,onClick:g,closeOnClick:y}=e;function h(A){if(e.draggable){A.nativeEvent.type==="touchstart"&&A.nativeEvent.preventDefault(),o.didMove=!1,document.addEventListener("mousemove",C),document.addEventListener("mouseup",k),document.addEventListener("touchmove",C),document.addEventListener("touchend",k);const P=i.current;o.canCloseOnClick=!0,o.canDrag=!0,o.boundingRect=P.getBoundingClientRect(),P.style.transition="",o.x=O6(A.nativeEvent),o.y=R6(A.nativeEvent),e.draggableDirection==="x"?(o.start=o.x,o.removalDistance=P.offsetWidth*(e.draggablePercent/100)):(o.start=o.y,o.removalDistance=P.offsetHeight*(e.draggablePercent===80?1.5*e.draggablePercent:e.draggablePercent/100))}}function v(A){if(o.boundingRect){const{top:P,bottom:N,left:I,right:L}=o.boundingRect;A.nativeEvent.type!=="touchend"&&e.pauseOnHover&&o.x>=I&&o.x<=L&&o.y>=P&&o.y<=N?T():E()}}function E(){n(!0)}function T(){n(!1)}function C(A){const P=i.current;o.canDrag&&P&&(o.didMove=!0,t&&T(),o.x=O6(A),o.y=R6(A),o.delta=e.draggableDirection==="x"?o.x-o.start:o.y-o.start,o.start!==o.x&&(o.canCloseOnClick=!1),P.style.transform=`translate${e.draggableDirection}(${o.delta}px)`,P.style.opacity=""+(1-Math.abs(o.delta/o.removalDistance)))}function k(){document.removeEventListener("mousemove",C),document.removeEventListener("mouseup",k),document.removeEventListener("touchmove",C),document.removeEventListener("touchend",k);const A=i.current;if(o.canDrag&&o.didMove&&A){if(o.canDrag=!1,Math.abs(o.delta)>o.removalDistance)return a(!0),void e.closeToast();A.style.transition="transform 0.2s, opacity 0.2s",A.style.transform=`translate${e.draggableDirection}(0)`,A.style.opacity="1"}}R.useEffect(()=>{l.current=e}),R.useEffect(()=>(i.current&&i.current.addEventListener("d",E,{once:!0}),is(e.onOpen)&&e.onOpen(R.isValidElement(e.children)&&e.children.props),()=>{const A=l.current;is(A.onClose)&&A.onClose(R.isValidElement(A.children)&&A.children.props)}),[]),R.useEffect(()=>(e.pauseOnFocusLoss&&(document.hasFocus()||T(),window.addEventListener("focus",E),window.addEventListener("blur",T)),()=>{e.pauseOnFocusLoss&&(window.removeEventListener("focus",E),window.removeEventListener("blur",T))}),[e.pauseOnFocusLoss]);const _={onMouseDown:h,onTouchStart:h,onMouseUp:v,onTouchEnd:v};return u&&d&&(_.onMouseEnter=T,_.onMouseLeave=E),y&&(_.onClick=A=>{g&&g(A),o.canCloseOnClick&&f()}),{playToast:E,pauseToast:T,isRunning:t,preventExitTransition:r,toastRef:i,eventHandlers:_}}function WQ(e){let{closeToast:t,theme:n,ariaLabel:r="close"}=e;return ze.createElement("button",{className:`Toastify__close-button Toastify__close-button--${n}`,type:"button",onClick:a=>{a.stopPropagation(),t(a)},"aria-label":r},ze.createElement("svg",{"aria-hidden":"true",viewBox:"0 0 14 16"},ze.createElement("path",{fillRule:"evenodd",d:"M7.71 8.23l3.75 3.75-1.48 1.48-3.75-3.75-3.75 3.75L1 11.98l3.75-3.75L1 4.48 2.48 3l3.75 3.75L9.98 3l1.48 1.48-3.75 3.75z"})))}function Nhe(e){let{delay:t,isRunning:n,closeToast:r,type:a="default",hide:i,className:o,style:l,controlledProgress:u,progress:d,rtl:f,isIn:g,theme:y}=e;const h=i||u&&d===0,v={...l,animationDuration:`${t}ms`,animationPlayState:n?"running":"paused",opacity:h?0:1};u&&(v.transform=`scaleX(${d})`);const E=Xp("Toastify__progress-bar",u?"Toastify__progress-bar--controlled":"Toastify__progress-bar--animated",`Toastify__progress-bar-theme--${y}`,`Toastify__progress-bar--${a}`,{"Toastify__progress-bar--rtl":f}),T=is(o)?o({rtl:f,type:a,defaultClassName:E}):Xp(E,o);return ze.createElement("div",{role:"progressbar","aria-hidden":h?"true":"false","aria-label":"notification timer",className:T,style:v,[u&&d>=1?"onTransitionEnd":"onAnimationEnd"]:u&&d<1?null:()=>{g&&r()}})}const Mhe=e=>{const{isRunning:t,preventExitTransition:n,toastRef:r,eventHandlers:a}=Ahe(e),{closeButton:i,children:o,autoClose:l,onClick:u,type:d,hideProgressBar:f,closeToast:g,transition:y,position:h,className:v,style:E,bodyClassName:T,bodyStyle:C,progressClassName:k,progressStyle:_,updateId:A,role:P,progress:N,rtl:I,toastId:L,deleteToast:j,isIn:z,isLoading:Q,iconOut:le,closeOnClick:re,theme:ge}=e,me=Xp("Toastify__toast",`Toastify__toast-theme--${ge}`,`Toastify__toast--${d}`,{"Toastify__toast--rtl":I},{"Toastify__toast--close-on-click":re}),W=is(v)?v({rtl:I,position:h,type:d,defaultClassName:me}):Xp(me,v),G=!!N||!l,q={closeToast:g,type:d,theme:ge};let ce=null;return i===!1||(ce=is(i)?i(q):R.isValidElement(i)?R.cloneElement(i,q):WQ(q)),ze.createElement(y,{isIn:z,done:j,position:h,preventExitTransition:n,nodeRef:r},ze.createElement("div",{id:L,onClick:u,className:W,...a,style:E,ref:r},ze.createElement("div",{...z&&{role:P},className:is(T)?T({type:d}):Xp("Toastify__toast-body",T),style:C},le!=null&&ze.createElement("div",{className:Xp("Toastify__toast-icon",{"Toastify--animate-icon Toastify__zoom-enter":!Q})},le),ze.createElement("div",null,o)),ce,ze.createElement(Nhe,{...A&&!G?{key:`pb-${A}`}:{},rtl:I,theme:ge,delay:l,isRunning:t,isIn:z,closeToast:g,hide:f,type:d,style:_,className:k,controlledProgress:G,progress:N||0})))},h_=function(e,t){return t===void 0&&(t=!1),{enter:`Toastify--animate Toastify__${e}-enter`,exit:`Toastify--animate Toastify__${e}-exit`,appendPosition:t}},Ihe=p_(h_("bounce",!0));p_(h_("slide",!0));p_(h_("zoom"));p_(h_("flip"));const vL=R.forwardRef((e,t)=>{const{getToastToRender:n,containerRef:r,isToastActive:a}=Phe(e),{className:i,style:o,rtl:l,containerId:u}=e;function d(f){const g=Xp("Toastify__toast-container",`Toastify__toast-container--${f}`,{"Toastify__toast-container--rtl":l});return is(i)?i({position:f,rtl:l,defaultClassName:g}):Xp(g,Ik(i))}return R.useEffect(()=>{t&&(t.current=r.current)},[]),ze.createElement("div",{ref:r,className:"Toastify",id:u},n((f,g)=>{const y=g.length?{...o}:{...o,pointerEvents:"none"};return ze.createElement("div",{className:d(f),style:y,key:`container-${f}`},g.map((h,v)=>{let{content:E,props:T}=h;return ze.createElement(Mhe,{...T,isIn:a(T.toastId),style:{...T.style,"--nth":v+1,"--len":g.length},key:`toast-${T.key}`},E)}))}))});vL.displayName="ToastContainer",vL.defaultProps={position:"top-right",transition:Ihe,autoClose:5e3,closeButton:WQ,pauseOnHover:!0,pauseOnFocusLoss:!0,closeOnClick:!0,draggable:!0,draggablePercent:80,draggableDirection:"x",role:"alert",theme:"light"};let VR,iv=new Map,gS=[],Dhe=1;function zQ(){return""+Dhe++}function $he(e){return e&&(Dv(e.toastId)||TS(e.toastId))?e.toastId:zQ()}function CS(e,t){return iv.size>0?Tl.emit(0,e,t):gS.push({content:e,options:t}),t.toastId}function sx(e,t){return{...t,type:t&&t.type||e,toastId:$he(t)}}function tk(e){return(t,n)=>CS(t,sx(e,n))}function ta(e,t){return CS(e,sx("default",t))}ta.loading=(e,t)=>CS(e,sx("default",{isLoading:!0,autoClose:!1,closeOnClick:!1,closeButton:!1,draggable:!1,...t})),ta.promise=function(e,t,n){let r,{pending:a,error:i,success:o}=t;a&&(r=Dv(a)?ta.loading(a,n):ta.loading(a.render,{...n,...a}));const l={isLoading:null,autoClose:null,closeOnClick:null,closeButton:null,draggable:null},u=(f,g,y)=>{if(g==null)return void ta.dismiss(r);const h={type:f,...l,...n,data:y},v=Dv(g)?{render:g}:g;return r?ta.update(r,{...h,...v}):ta(v.render,{...h,...v}),y},d=is(e)?e():e;return d.then(f=>u("success",o,f)).catch(f=>u("error",i,f)),d},ta.success=tk("success"),ta.info=tk("info"),ta.error=tk("error"),ta.warning=tk("warning"),ta.warn=ta.warning,ta.dark=(e,t)=>CS(e,sx("default",{theme:"dark",...t})),ta.dismiss=e=>{iv.size>0?Tl.emit(1,e):gS=gS.filter(t=>e!=null&&t.options.toastId!==e)},ta.clearWaitingQueue=function(e){return e===void 0&&(e={}),Tl.emit(5,e)},ta.isActive=e=>{let t=!1;return iv.forEach(n=>{n.isToastActive&&n.isToastActive(e)&&(t=!0)}),t},ta.update=function(e,t){t===void 0&&(t={}),setTimeout(()=>{const n=(function(r,a){let{containerId:i}=a;const o=iv.get(i||VR);return o&&o.getToast(r)})(e,t);if(n){const{props:r,content:a}=n,i={delay:100,...r,...t,toastId:t.toastId||e,updateId:zQ()};i.toastId!==e&&(i.staleId=e);const o=i.render||a;delete i.render,CS(o,i)}},0)},ta.done=e=>{ta.update(e,{progress:1})},ta.onChange=e=>(Tl.on(4,e),()=>{Tl.off(4,e)}),ta.POSITION={TOP_LEFT:"top-left",TOP_RIGHT:"top-right",TOP_CENTER:"top-center",BOTTOM_LEFT:"bottom-left",BOTTOM_RIGHT:"bottom-right",BOTTOM_CENTER:"bottom-center"},ta.TYPE={INFO:"info",SUCCESS:"success",WARNING:"warning",ERROR:"error",DEFAULT:"default"},Tl.on(2,e=>{VR=e.containerId||e,iv.set(VR,e),gS.forEach(t=>{Tl.emit(0,t.content,t.options)}),gS=[]}).on(3,e=>{iv.delete(e.containerId||e),iv.size===0&&Tl.off(0).off(1).off(5)});let O1=null;const P6=2500;function Lhe(e,t){if((O1==null?void 0:O1.content)==e)return;const n=ta(e,{hideProgressBar:!0,autoClose:P6,...t});O1={content:e,key:n},setTimeout(()=>{O1=null},P6)}function S0(e){var n,r,a,i;const t={};if(e.error&&Array.isArray((n=e.error)==null?void 0:n.errors))for(const o of(r=e.error)==null?void 0:r.errors)t[o.location]=o.message;return e.status&&e.ok===!1?{form:`${e.status}`}:((a=e==null?void 0:e.error)!=null&&a.message&&(t.form=(i=e==null?void 0:e.error)==null?void 0:i.message),e.message?{form:`${e.message}`}:t)}function qQ(){return("10000000-1000-4000-8000"+-1e11).replace(/[018]/g,e=>(e^crypto.getRandomValues(new Uint8Array(1))[0]&15>>e/4).toString(16))}function Fhe(e,t,n,r){const[a,i]=R.useState(null);return R.useEffect(()=>{const o=document.querySelector(e);if(!o)return;let l=null;const u=new ResizeObserver(d=>{for(const f of d){const g=f.contentRect.width;let y=null;for(const{name:h,value:v}of t)if(g{u.unobserve(o),u.disconnect()}},[e,t,n,r]),a}const sh=()=>{const e=navigator.userAgent.toLowerCase(),t="ontouchstart"in window||navigator.maxTouchPoints>0,n=window.innerWidth||document.documentElement.clientWidth,r=!!window.cordova||!!window.cordovaPlatformId,a=/iphone|android.*mobile|blackberry|windows phone|opera mini|iemobile/,i=/ipad|android(?!.*mobile)|tablet/,o=/windows|macintosh|linux|x11/,l=a.test(e),u=i.test(e),d=!t||o.test(e);let f="large";n<600?f="small":n<1024&&(f="medium");const g=n<1024;return{isPhysicalPhone:l,isTablet:u,isDesktop:d,isMobileView:g,isCordova:r,viewSize:f}},HQ=ze.createContext({sidebarVisible:!1,threshold:"desktop",routers:[{id:"url-router"}],toggleSidebar(){},setSidebarRef(e){},persistSidebarSize(e){},setFocusedRouter(e){},closeCurrentRouter(){},sidebarItemSelected(){},collapseLeftPanel(){},addRouter(){},updateSidebarSize(){},hide(){},show(){}});function zv(){return R.useContext(HQ)}function jhe({children:e}){const t=R.useRef(null),n=R.useRef(null),[r,a]=R.useState(!1),[i,o]=R.useState([{id:"url-router"}]),l=N=>{n.current=N,localStorage.setItem("sidebarState",N.toString())};R.useEffect(()=>{const N=localStorage.getItem("sidebarState"),I=N!==null?parseFloat(N):null;I&&(n.current=I)},[]);const u=R.useRef(!1),d=N=>{var I;(I=t.current)==null||I.resize(N)};Ohe(768,N=>{d(N?0:20)});const f=N=>{o(I=>[...I,{id:qQ(),href:N}])},g=N=>{o(I=>I.map(L=>L.id===N?{...L,focused:!0}:{...L,focused:!1}))},y=()=>{var N;t.current&&u.current&&(E(),u.current=!1),C((N=t.current)==null?void 0:N.getSize())},h=()=>{var j;const N=(j=t.current)==null?void 0:j.getSize(),I=180/window.innerWidth*100;let L=I;n.current&&n.current>I&&(L=n.current),sh().isMobileView&&(L=80),N&&N>0?(d(0),localStorage.setItem("sidebarState","-1"),a(!1)):(localStorage.setItem("sidebarState",L.toString()),d(L),a(!0))},v=N=>{t.current=N},E=()=>{d(0),a(!1)},T=N=>{o(I=>I.filter(L=>L.id!==N))},C=N=>{d(N)},k=()=>{t.current&&(d(20),a(!0))},_=N=>{N==="closed"?u.current=!0:u.current=!1},A=Fhe(".sidebar-panel",[{name:"closed",value:50},{name:"tablet",value:100},{name:"desktop",value:150}],_,_),P=()=>{window.innerWidth<500&&E()};return w.jsx(HQ.Provider,{value:{hide:E,sidebarItemSelected:P,addRouter:f,show:k,updateSidebarSize:C,setFocusedRouter:g,setSidebarRef:v,persistSidebarSize:l,closeCurrentRouter:T,threshold:A,collapseLeftPanel:y,routers:i,sidebarVisible:r,toggleSidebar:h},children:e})}class Pd extends wn{constructor(...t){super(...t),this.children=void 0,this.name=void 0,this.operationId=void 0,this.diskPath=void 0,this.size=void 0,this.virtualPath=void 0,this.type=void 0,this.variations=void 0}}Pd.Navigation={edit(e,t){return`${t?"/"+t:".."}/file/edit/${e}`},create(e){return`${e?"/"+e:".."}/file/new`},single(e,t){return`${t?"/"+t:".."}/file/${e}`},query(e={},t){return`${t?"/"+t:".."}/files`},Redit:"file/edit/:uniqueId",Rcreate:"file/new",Rsingle:"file/:uniqueId",Rquery:"files",rVariationsCreate:"file/:linkerId/variations/new",rVariationsEdit:"file/:linkerId/variations/edit/:uniqueId",editVariations(e,t,n){return`${n?"/"+n:""}/file/${e}/variations/edit/${t}`},createVariations(e,t){return`${t?"/"+t:""}/file/${e}/variations/new`}};Pd.definition={rpc:{query:{}},permRewrite:{replace:"root.modules",with:"root.manage"},name:"file",features:{},gormMap:{},fields:[{name:"name",type:"string",computedType:"string",gormMap:{}},{name:"operationId",description:"For each upload, we need to assign a operation id, so if the operation has been cancelled, it would be cleared automatically, and there won't be orphant files in the database.",type:"string",computedType:"string",gormMap:{}},{name:"diskPath",type:"string",computedType:"string",gormMap:{}},{name:"size",type:"int64",computedType:"number",gormMap:{}},{name:"virtualPath",type:"string",computedType:"string",gormMap:{}},{name:"type",type:"string",computedType:"string",gormMap:{}},{name:"variations",type:"array",computedType:"FileVariations[]",gormMap:{},"-":"FileVariations",fields:[{name:"name",type:"string",computedType:"string",gormMap:{}}],linkedTo:"FileEntity"}],description:"Tus file uploading reference of the content. Every files being uploaded using tus will be stored in this table."};Pd.Fields={...wn.Fields,name:"name",operationId:"operationId",diskPath:"diskPath",size:"size",virtualPath:"virtualPath",type:"type",variations$:"variations",variationsAt:e=>({$:`variations[${e}]`,...wn.Fields,name:`variations[${e}].name`})};function A6(e){let t=(e||"").replaceAll(/fbtusid_____(.*)_____/g,kr.REMOTE_SERVICE+"files/$1");return t=(t||"").replaceAll(/directasset_____(.*)_____/g,kr.REMOTE_SERVICE+"$1"),t}function Uhe(){return{compiler:"unknown"}}function VQ(){return{directPath:n=>!(n!=null&&n.diskPath)&&(n!=null&&n.uniqueId)?A6(n.uniqueId):`${kr.REMOTE_SERVICE}files-inline/${n==null?void 0:n.diskPath}`,downloadPath:n=>!(n!=null&&n.diskPath)&&(n!=null&&n.uniqueId)?A6(n.uniqueId):`${kr.REMOTE_SERVICE}files/${n==null?void 0:n.diskPath}`}}const Pl=({children:e,isActive:t,skip:n,activeClassName:r,inActiveClassName:a,...i})=>{var g;const o=xr(),{locale:l}=sr(),u=i.locale||l||"en",{compiler:d}=Uhe();let f=(i==null?void 0:i.href)||(o==null?void 0:o.asPath)||"";return typeof f=="string"&&(f!=null&&f.indexOf)&&f.indexOf("http")===0&&(n=!0),typeof f=="string"&&u&&!n&&!f.startsWith(".")&&(f=f?`/${l}`+f:(g=o.pathname)==null?void 0:g.replace("[locale]",u)),t&&(i.className=`${i.className||""} ${r||"active"}`),!t&&a&&(i.className=`${i.className||""} ${a}`),w.jsx(ele,{...i,href:f,compiler:d,children:e})},Yb=e=>{const{children:t,forceActive:n,...r}=e,{locale:a,asPath:i}=sr(),o=R.Children.only(t),l=i===`/${a}`+r.href||i+"/"==`/${a}`+r.href||n;return e.disabled?w.jsx("span",{className:"disabled",children:o}):w.jsx(Pl,{...r,isActive:l,children:o})};function Bhe(){const e=R.useContext(gF);return w.jsx("span",{children:e.ref.title})}const gF=ze.createContext({setPageTitle(){},removePageTitle(){},ref:{title:""}});function gh(e){const t=R.useContext(gF);R.useEffect(()=>(t.setPageTitle(e||""),()=>{t.removePageTitle("")}),[e])}function Whe({children:e,prefix:t,affix:n}){const[r,a]=R.useState(""),i=l=>{const u=[t,l,n].filter(Boolean).join(" | ");document.title=u,a(l)},o=()=>{document.title="",a("")};return w.jsx(gF.Provider,{value:{ref:{title:r},setPageTitle:i,removePageTitle:o},children:e})}const GQ=()=>{const e=R.useRef();return{withDebounce:(n,r)=>{e.current&&clearTimeout(e.current),e.current=setTimeout(n,r)}}},m_=ze.createContext({result:[],setResult(){},reset(){},appendResult(){},setPhrase(){},phrase:""});function zhe({children:e}){const[t,n]=R.useState(""),[r,a]=R.useState([]),i=l=>{a(u=>[...u,l])},o=()=>{n(""),a([])};return w.jsx(m_.Provider,{value:{result:r,setResult:a,reset:o,appendResult:i,setPhrase:n,phrase:t},children:e})}function lx(e,t){return lx=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,a){return r.__proto__=a,r},lx(e,t)}function qv(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,lx(e,t)}var E0=(function(){function e(){this.listeners=[]}var t=e.prototype;return t.subscribe=function(r){var a=this,i=r||function(){};return this.listeners.push(i),this.onSubscribe(),function(){a.listeners=a.listeners.filter(function(o){return o!==i}),a.onUnsubscribe()}},t.hasListeners=function(){return this.listeners.length>0},t.onSubscribe=function(){},t.onUnsubscribe=function(){},e})();function vt(){return vt=Object.assign?Object.assign.bind():function(e){for(var t=1;t"u";function ji(){}function qhe(e,t){return typeof e=="function"?e(t):e}function yL(e){return typeof e=="number"&&e>=0&&e!==1/0}function cx(e){return Array.isArray(e)?e:[e]}function YQ(e,t){return Math.max(e+(t||0)-Date.now(),0)}function Dk(e,t,n){return IE(e)?typeof t=="function"?vt({},n,{queryKey:e,queryFn:t}):vt({},t,{queryKey:e}):e}function Hhe(e,t,n){return IE(e)?vt({},t,{mutationKey:e}):typeof e=="function"?vt({},t,{mutationFn:e}):vt({},e)}function Vp(e,t,n){return IE(e)?[vt({},t,{queryKey:e}),n]:[e||{},t]}function Vhe(e,t){if(e===!0&&t===!0||e==null&&t==null)return"all";if(e===!1&&t===!1)return"none";var n=e??!t;return n?"active":"inactive"}function N6(e,t){var n=e.active,r=e.exact,a=e.fetching,i=e.inactive,o=e.predicate,l=e.queryKey,u=e.stale;if(IE(l)){if(r){if(t.queryHash!==vF(l,t.options))return!1}else if(!dx(t.queryKey,l))return!1}var d=Vhe(n,i);if(d==="none")return!1;if(d!=="all"){var f=t.isActive();if(d==="active"&&!f||d==="inactive"&&f)return!1}return!(typeof u=="boolean"&&t.isStale()!==u||typeof a=="boolean"&&t.isFetching()!==a||o&&!o(t))}function M6(e,t){var n=e.exact,r=e.fetching,a=e.predicate,i=e.mutationKey;if(IE(i)){if(!t.options.mutationKey)return!1;if(n){if(lv(t.options.mutationKey)!==lv(i))return!1}else if(!dx(t.options.mutationKey,i))return!1}return!(typeof r=="boolean"&&t.state.status==="loading"!==r||a&&!a(t))}function vF(e,t){var n=(t==null?void 0:t.queryKeyHashFn)||lv;return n(e)}function lv(e){var t=cx(e);return Ghe(t)}function Ghe(e){return JSON.stringify(e,function(t,n){return bL(n)?Object.keys(n).sort().reduce(function(r,a){return r[a]=n[a],r},{}):n})}function dx(e,t){return KQ(cx(e),cx(t))}function KQ(e,t){return e===t?!0:typeof e!=typeof t?!1:e&&t&&typeof e=="object"&&typeof t=="object"?!Object.keys(t).some(function(n){return!KQ(e[n],t[n])}):!1}function fx(e,t){if(e===t)return e;var n=Array.isArray(e)&&Array.isArray(t);if(n||bL(e)&&bL(t)){for(var r=n?e.length:Object.keys(e).length,a=n?t:Object.keys(t),i=a.length,o=n?[]:{},l=0,u=0;u"u")return!0;var n=t.prototype;return!(!I6(n)||!n.hasOwnProperty("isPrototypeOf"))}function I6(e){return Object.prototype.toString.call(e)==="[object Object]"}function IE(e){return typeof e=="string"||Array.isArray(e)}function Khe(e){return new Promise(function(t){setTimeout(t,e)})}function D6(e){Promise.resolve().then(e).catch(function(t){return setTimeout(function(){throw t})})}function XQ(){if(typeof AbortController=="function")return new AbortController}var Xhe=(function(e){qv(t,e);function t(){var r;return r=e.call(this)||this,r.setup=function(a){var i;if(!ux&&((i=window)!=null&&i.addEventListener)){var o=function(){return a()};return window.addEventListener("visibilitychange",o,!1),window.addEventListener("focus",o,!1),function(){window.removeEventListener("visibilitychange",o),window.removeEventListener("focus",o)}}},r}var n=t.prototype;return n.onSubscribe=function(){this.cleanup||this.setEventListener(this.setup)},n.onUnsubscribe=function(){if(!this.hasListeners()){var a;(a=this.cleanup)==null||a.call(this),this.cleanup=void 0}},n.setEventListener=function(a){var i,o=this;this.setup=a,(i=this.cleanup)==null||i.call(this),this.cleanup=a(function(l){typeof l=="boolean"?o.setFocused(l):o.onFocus()})},n.setFocused=function(a){this.focused=a,a&&this.onFocus()},n.onFocus=function(){this.listeners.forEach(function(a){a()})},n.isFocused=function(){return typeof this.focused=="boolean"?this.focused:typeof document>"u"?!0:[void 0,"visible","prerender"].includes(document.visibilityState)},t})(E0),kS=new Xhe,Qhe=(function(e){qv(t,e);function t(){var r;return r=e.call(this)||this,r.setup=function(a){var i;if(!ux&&((i=window)!=null&&i.addEventListener)){var o=function(){return a()};return window.addEventListener("online",o,!1),window.addEventListener("offline",o,!1),function(){window.removeEventListener("online",o),window.removeEventListener("offline",o)}}},r}var n=t.prototype;return n.onSubscribe=function(){this.cleanup||this.setEventListener(this.setup)},n.onUnsubscribe=function(){if(!this.hasListeners()){var a;(a=this.cleanup)==null||a.call(this),this.cleanup=void 0}},n.setEventListener=function(a){var i,o=this;this.setup=a,(i=this.cleanup)==null||i.call(this),this.cleanup=a(function(l){typeof l=="boolean"?o.setOnline(l):o.onOnline()})},n.setOnline=function(a){this.online=a,a&&this.onOnline()},n.onOnline=function(){this.listeners.forEach(function(a){a()})},n.isOnline=function(){return typeof this.online=="boolean"?this.online:typeof navigator>"u"||typeof navigator.onLine>"u"?!0:navigator.onLine},t})(E0),$k=new Qhe;function Jhe(e){return Math.min(1e3*Math.pow(2,e),3e4)}function px(e){return typeof(e==null?void 0:e.cancel)=="function"}var QQ=function(t){this.revert=t==null?void 0:t.revert,this.silent=t==null?void 0:t.silent};function Lk(e){return e instanceof QQ}var JQ=function(t){var n=this,r=!1,a,i,o,l;this.abort=t.abort,this.cancel=function(y){return a==null?void 0:a(y)},this.cancelRetry=function(){r=!0},this.continueRetry=function(){r=!1},this.continue=function(){return i==null?void 0:i()},this.failureCount=0,this.isPaused=!1,this.isResolved=!1,this.isTransportCancelable=!1,this.promise=new Promise(function(y,h){o=y,l=h});var u=function(h){n.isResolved||(n.isResolved=!0,t.onSuccess==null||t.onSuccess(h),i==null||i(),o(h))},d=function(h){n.isResolved||(n.isResolved=!0,t.onError==null||t.onError(h),i==null||i(),l(h))},f=function(){return new Promise(function(h){i=h,n.isPaused=!0,t.onPause==null||t.onPause()}).then(function(){i=void 0,n.isPaused=!1,t.onContinue==null||t.onContinue()})},g=function y(){if(!n.isResolved){var h;try{h=t.fn()}catch(v){h=Promise.reject(v)}a=function(E){if(!n.isResolved&&(d(new QQ(E)),n.abort==null||n.abort(),px(h)))try{h.cancel()}catch{}},n.isTransportCancelable=px(h),Promise.resolve(h).then(u).catch(function(v){var E,T;if(!n.isResolved){var C=(E=t.retry)!=null?E:3,k=(T=t.retryDelay)!=null?T:Jhe,_=typeof k=="function"?k(n.failureCount,v):k,A=C===!0||typeof C=="number"&&n.failureCount"u"&&(l.exact=!0),this.queries.find(function(u){return N6(l,u)})},n.findAll=function(a,i){var o=Vp(a,i),l=o[0];return Object.keys(l).length>0?this.queries.filter(function(u){return N6(l,u)}):this.queries},n.notify=function(a){var i=this;aa.batch(function(){i.listeners.forEach(function(o){o(a)})})},n.onFocus=function(){var a=this;aa.batch(function(){a.queries.forEach(function(i){i.onFocus()})})},n.onOnline=function(){var a=this;aa.batch(function(){a.queries.forEach(function(i){i.onOnline()})})},t})(E0),rme=(function(){function e(n){this.options=vt({},n.defaultOptions,n.options),this.mutationId=n.mutationId,this.mutationCache=n.mutationCache,this.observers=[],this.state=n.state||eJ(),this.meta=n.meta}var t=e.prototype;return t.setState=function(r){this.dispatch({type:"setState",state:r})},t.addObserver=function(r){this.observers.indexOf(r)===-1&&this.observers.push(r)},t.removeObserver=function(r){this.observers=this.observers.filter(function(a){return a!==r})},t.cancel=function(){return this.retryer?(this.retryer.cancel(),this.retryer.promise.then(ji).catch(ji)):Promise.resolve()},t.continue=function(){return this.retryer?(this.retryer.continue(),this.retryer.promise):this.execute()},t.execute=function(){var r=this,a,i=this.state.status==="loading",o=Promise.resolve();return i||(this.dispatch({type:"loading",variables:this.options.variables}),o=o.then(function(){r.mutationCache.config.onMutate==null||r.mutationCache.config.onMutate(r.state.variables,r)}).then(function(){return r.options.onMutate==null?void 0:r.options.onMutate(r.state.variables)}).then(function(l){l!==r.state.context&&r.dispatch({type:"loading",context:l,variables:r.state.variables})})),o.then(function(){return r.executeMutation()}).then(function(l){a=l,r.mutationCache.config.onSuccess==null||r.mutationCache.config.onSuccess(a,r.state.variables,r.state.context,r)}).then(function(){return r.options.onSuccess==null?void 0:r.options.onSuccess(a,r.state.variables,r.state.context)}).then(function(){return r.options.onSettled==null?void 0:r.options.onSettled(a,null,r.state.variables,r.state.context)}).then(function(){return r.dispatch({type:"success",data:a}),a}).catch(function(l){return r.mutationCache.config.onError==null||r.mutationCache.config.onError(l,r.state.variables,r.state.context,r),hx().error(l),Promise.resolve().then(function(){return r.options.onError==null?void 0:r.options.onError(l,r.state.variables,r.state.context)}).then(function(){return r.options.onSettled==null?void 0:r.options.onSettled(void 0,l,r.state.variables,r.state.context)}).then(function(){throw r.dispatch({type:"error",error:l}),l})})},t.executeMutation=function(){var r=this,a;return this.retryer=new JQ({fn:function(){return r.options.mutationFn?r.options.mutationFn(r.state.variables):Promise.reject("No mutationFn found")},onFail:function(){r.dispatch({type:"failed"})},onPause:function(){r.dispatch({type:"pause"})},onContinue:function(){r.dispatch({type:"continue"})},retry:(a=this.options.retry)!=null?a:0,retryDelay:this.options.retryDelay}),this.retryer.promise},t.dispatch=function(r){var a=this;this.state=ame(this.state,r),aa.batch(function(){a.observers.forEach(function(i){i.onMutationUpdate(r)}),a.mutationCache.notify(a)})},e})();function eJ(){return{context:void 0,data:void 0,error:null,failureCount:0,isPaused:!1,status:"idle",variables:void 0}}function ame(e,t){switch(t.type){case"failed":return vt({},e,{failureCount:e.failureCount+1});case"pause":return vt({},e,{isPaused:!0});case"continue":return vt({},e,{isPaused:!1});case"loading":return vt({},e,{context:t.context,data:void 0,error:null,isPaused:!1,status:"loading",variables:t.variables});case"success":return vt({},e,{data:t.data,error:null,status:"success",isPaused:!1});case"error":return vt({},e,{data:void 0,error:t.error,failureCount:e.failureCount+1,isPaused:!1,status:"error"});case"setState":return vt({},e,t.state);default:return e}}var ime=(function(e){qv(t,e);function t(r){var a;return a=e.call(this)||this,a.config=r||{},a.mutations=[],a.mutationId=0,a}var n=t.prototype;return n.build=function(a,i,o){var l=new rme({mutationCache:this,mutationId:++this.mutationId,options:a.defaultMutationOptions(i),state:o,defaultOptions:i.mutationKey?a.getMutationDefaults(i.mutationKey):void 0,meta:i.meta});return this.add(l),l},n.add=function(a){this.mutations.push(a),this.notify(a)},n.remove=function(a){this.mutations=this.mutations.filter(function(i){return i!==a}),a.cancel(),this.notify(a)},n.clear=function(){var a=this;aa.batch(function(){a.mutations.forEach(function(i){a.remove(i)})})},n.getAll=function(){return this.mutations},n.find=function(a){return typeof a.exact>"u"&&(a.exact=!0),this.mutations.find(function(i){return M6(a,i)})},n.findAll=function(a){return this.mutations.filter(function(i){return M6(a,i)})},n.notify=function(a){var i=this;aa.batch(function(){i.listeners.forEach(function(o){o(a)})})},n.onFocus=function(){this.resumePausedMutations()},n.onOnline=function(){this.resumePausedMutations()},n.resumePausedMutations=function(){var a=this.mutations.filter(function(i){return i.state.isPaused});return aa.batch(function(){return a.reduce(function(i,o){return i.then(function(){return o.continue().catch(ji)})},Promise.resolve())})},t})(E0);function ome(){return{onFetch:function(t){t.fetchFn=function(){var n,r,a,i,o,l,u=(n=t.fetchOptions)==null||(r=n.meta)==null?void 0:r.refetchPage,d=(a=t.fetchOptions)==null||(i=a.meta)==null?void 0:i.fetchMore,f=d==null?void 0:d.pageParam,g=(d==null?void 0:d.direction)==="forward",y=(d==null?void 0:d.direction)==="backward",h=((o=t.state.data)==null?void 0:o.pages)||[],v=((l=t.state.data)==null?void 0:l.pageParams)||[],E=XQ(),T=E==null?void 0:E.signal,C=v,k=!1,_=t.options.queryFn||function(){return Promise.reject("Missing queryFn")},A=function(ge,me,W,G){return C=G?[me].concat(C):[].concat(C,[me]),G?[W].concat(ge):[].concat(ge,[W])},P=function(ge,me,W,G){if(k)return Promise.reject("Cancelled");if(typeof W>"u"&&!me&&ge.length)return Promise.resolve(ge);var q={queryKey:t.queryKey,signal:T,pageParam:W,meta:t.meta},ce=_(q),H=Promise.resolve(ce).then(function(ie){return A(ge,W,ie,G)});if(px(ce)){var Y=H;Y.cancel=ce.cancel}return H},N;if(!h.length)N=P([]);else if(g){var I=typeof f<"u",L=I?f:$6(t.options,h);N=P(h,I,L)}else if(y){var j=typeof f<"u",z=j?f:sme(t.options,h);N=P(h,j,z,!0)}else(function(){C=[];var re=typeof t.options.getNextPageParam>"u",ge=u&&h[0]?u(h[0],0,h):!0;N=ge?P([],re,v[0]):Promise.resolve(A([],v[0],h[0]));for(var me=function(q){N=N.then(function(ce){var H=u&&h[q]?u(h[q],q,h):!0;if(H){var Y=re?v[q]:$6(t.options,ce);return P(ce,re,Y)}return Promise.resolve(A(ce,v[q],h[q]))})},W=1;W"u"&&(f.revert=!0);var g=aa.batch(function(){return o.queryCache.findAll(u).map(function(y){return y.cancel(f)})});return Promise.all(g).then(ji).catch(ji)},t.invalidateQueries=function(r,a,i){var o,l,u,d=this,f=Vp(r,a,i),g=f[0],y=f[1],h=vt({},g,{active:(o=(l=g.refetchActive)!=null?l:g.active)!=null?o:!0,inactive:(u=g.refetchInactive)!=null?u:!1});return aa.batch(function(){return d.queryCache.findAll(g).forEach(function(v){v.invalidate()}),d.refetchQueries(h,y)})},t.refetchQueries=function(r,a,i){var o=this,l=Vp(r,a,i),u=l[0],d=l[1],f=aa.batch(function(){return o.queryCache.findAll(u).map(function(y){return y.fetch(void 0,vt({},d,{meta:{refetchPage:u==null?void 0:u.refetchPage}}))})}),g=Promise.all(f).then(ji);return d!=null&&d.throwOnError||(g=g.catch(ji)),g},t.fetchQuery=function(r,a,i){var o=Dk(r,a,i),l=this.defaultQueryOptions(o);typeof l.retry>"u"&&(l.retry=!1);var u=this.queryCache.build(this,l);return u.isStaleByTime(l.staleTime)?u.fetch(l):Promise.resolve(u.state.data)},t.prefetchQuery=function(r,a,i){return this.fetchQuery(r,a,i).then(ji).catch(ji)},t.fetchInfiniteQuery=function(r,a,i){var o=Dk(r,a,i);return o.behavior=ome(),this.fetchQuery(o)},t.prefetchInfiniteQuery=function(r,a,i){return this.fetchInfiniteQuery(r,a,i).then(ji).catch(ji)},t.cancelMutations=function(){var r=this,a=aa.batch(function(){return r.mutationCache.getAll().map(function(i){return i.cancel()})});return Promise.all(a).then(ji).catch(ji)},t.resumePausedMutations=function(){return this.getMutationCache().resumePausedMutations()},t.executeMutation=function(r){return this.mutationCache.build(this,r).execute()},t.getQueryCache=function(){return this.queryCache},t.getMutationCache=function(){return this.mutationCache},t.getDefaultOptions=function(){return this.defaultOptions},t.setDefaultOptions=function(r){this.defaultOptions=r},t.setQueryDefaults=function(r,a){var i=this.queryDefaults.find(function(o){return lv(r)===lv(o.queryKey)});i?i.defaultOptions=a:this.queryDefaults.push({queryKey:r,defaultOptions:a})},t.getQueryDefaults=function(r){var a;return r?(a=this.queryDefaults.find(function(i){return dx(r,i.queryKey)}))==null?void 0:a.defaultOptions:void 0},t.setMutationDefaults=function(r,a){var i=this.mutationDefaults.find(function(o){return lv(r)===lv(o.mutationKey)});i?i.defaultOptions=a:this.mutationDefaults.push({mutationKey:r,defaultOptions:a})},t.getMutationDefaults=function(r){var a;return r?(a=this.mutationDefaults.find(function(i){return dx(r,i.mutationKey)}))==null?void 0:a.defaultOptions:void 0},t.defaultQueryOptions=function(r){if(r!=null&&r._defaulted)return r;var a=vt({},this.defaultOptions.queries,this.getQueryDefaults(r==null?void 0:r.queryKey),r,{_defaulted:!0});return!a.queryHash&&a.queryKey&&(a.queryHash=vF(a.queryKey,a)),a},t.defaultQueryObserverOptions=function(r){return this.defaultQueryOptions(r)},t.defaultMutationOptions=function(r){return r!=null&&r._defaulted?r:vt({},this.defaultOptions.mutations,this.getMutationDefaults(r==null?void 0:r.mutationKey),r,{_defaulted:!0})},t.clear=function(){this.queryCache.clear(),this.mutationCache.clear()},e})(),ume=(function(e){qv(t,e);function t(r,a){var i;return i=e.call(this)||this,i.client=r,i.options=a,i.trackedProps=[],i.selectError=null,i.bindMethods(),i.setOptions(a),i}var n=t.prototype;return n.bindMethods=function(){this.remove=this.remove.bind(this),this.refetch=this.refetch.bind(this)},n.onSubscribe=function(){this.listeners.length===1&&(this.currentQuery.addObserver(this),L6(this.currentQuery,this.options)&&this.executeFetch(),this.updateTimers())},n.onUnsubscribe=function(){this.listeners.length||this.destroy()},n.shouldFetchOnReconnect=function(){return wL(this.currentQuery,this.options,this.options.refetchOnReconnect)},n.shouldFetchOnWindowFocus=function(){return wL(this.currentQuery,this.options,this.options.refetchOnWindowFocus)},n.destroy=function(){this.listeners=[],this.clearTimers(),this.currentQuery.removeObserver(this)},n.setOptions=function(a,i){var o=this.options,l=this.currentQuery;if(this.options=this.client.defaultQueryObserverOptions(a),typeof this.options.enabled<"u"&&typeof this.options.enabled!="boolean")throw new Error("Expected enabled to be a boolean");this.options.queryKey||(this.options.queryKey=o.queryKey),this.updateQuery();var u=this.hasListeners();u&&F6(this.currentQuery,l,this.options,o)&&this.executeFetch(),this.updateResult(i),u&&(this.currentQuery!==l||this.options.enabled!==o.enabled||this.options.staleTime!==o.staleTime)&&this.updateStaleTimeout();var d=this.computeRefetchInterval();u&&(this.currentQuery!==l||this.options.enabled!==o.enabled||d!==this.currentRefetchInterval)&&this.updateRefetchInterval(d)},n.getOptimisticResult=function(a){var i=this.client.defaultQueryObserverOptions(a),o=this.client.getQueryCache().build(this.client,i);return this.createResult(o,i)},n.getCurrentResult=function(){return this.currentResult},n.trackResult=function(a,i){var o=this,l={},u=function(f){o.trackedProps.includes(f)||o.trackedProps.push(f)};return Object.keys(a).forEach(function(d){Object.defineProperty(l,d,{configurable:!1,enumerable:!0,get:function(){return u(d),a[d]}})}),(i.useErrorBoundary||i.suspense)&&u("error"),l},n.getNextResult=function(a){var i=this;return new Promise(function(o,l){var u=i.subscribe(function(d){d.isFetching||(u(),d.isError&&(a!=null&&a.throwOnError)?l(d.error):o(d))})})},n.getCurrentQuery=function(){return this.currentQuery},n.remove=function(){this.client.getQueryCache().remove(this.currentQuery)},n.refetch=function(a){return this.fetch(vt({},a,{meta:{refetchPage:a==null?void 0:a.refetchPage}}))},n.fetchOptimistic=function(a){var i=this,o=this.client.defaultQueryObserverOptions(a),l=this.client.getQueryCache().build(this.client,o);return l.fetch().then(function(){return i.createResult(l,o)})},n.fetch=function(a){var i=this;return this.executeFetch(a).then(function(){return i.updateResult(),i.currentResult})},n.executeFetch=function(a){this.updateQuery();var i=this.currentQuery.fetch(this.options,a);return a!=null&&a.throwOnError||(i=i.catch(ji)),i},n.updateStaleTimeout=function(){var a=this;if(this.clearStaleTimeout(),!(ux||this.currentResult.isStale||!yL(this.options.staleTime))){var i=YQ(this.currentResult.dataUpdatedAt,this.options.staleTime),o=i+1;this.staleTimeoutId=setTimeout(function(){a.currentResult.isStale||a.updateResult()},o)}},n.computeRefetchInterval=function(){var a;return typeof this.options.refetchInterval=="function"?this.options.refetchInterval(this.currentResult.data,this.currentQuery):(a=this.options.refetchInterval)!=null?a:!1},n.updateRefetchInterval=function(a){var i=this;this.clearRefetchInterval(),this.currentRefetchInterval=a,!(ux||this.options.enabled===!1||!yL(this.currentRefetchInterval)||this.currentRefetchInterval===0)&&(this.refetchIntervalId=setInterval(function(){(i.options.refetchIntervalInBackground||kS.isFocused())&&i.executeFetch()},this.currentRefetchInterval))},n.updateTimers=function(){this.updateStaleTimeout(),this.updateRefetchInterval(this.computeRefetchInterval())},n.clearTimers=function(){this.clearStaleTimeout(),this.clearRefetchInterval()},n.clearStaleTimeout=function(){this.staleTimeoutId&&(clearTimeout(this.staleTimeoutId),this.staleTimeoutId=void 0)},n.clearRefetchInterval=function(){this.refetchIntervalId&&(clearInterval(this.refetchIntervalId),this.refetchIntervalId=void 0)},n.createResult=function(a,i){var o=this.currentQuery,l=this.options,u=this.currentResult,d=this.currentResultState,f=this.currentResultOptions,g=a!==o,y=g?a.state:this.currentQueryInitialState,h=g?this.currentResult:this.previousQueryResult,v=a.state,E=v.dataUpdatedAt,T=v.error,C=v.errorUpdatedAt,k=v.isFetching,_=v.status,A=!1,P=!1,N;if(i.optimisticResults){var I=this.hasListeners(),L=!I&&L6(a,i),j=I&&F6(a,o,i,l);(L||j)&&(k=!0,E||(_="loading"))}if(i.keepPreviousData&&!v.dataUpdateCount&&(h!=null&&h.isSuccess)&&_!=="error")N=h.data,E=h.dataUpdatedAt,_=h.status,A=!0;else if(i.select&&typeof v.data<"u")if(u&&v.data===(d==null?void 0:d.data)&&i.select===this.selectFn)N=this.selectResult;else try{this.selectFn=i.select,N=i.select(v.data),i.structuralSharing!==!1&&(N=fx(u==null?void 0:u.data,N)),this.selectResult=N,this.selectError=null}catch(le){hx().error(le),this.selectError=le}else N=v.data;if(typeof i.placeholderData<"u"&&typeof N>"u"&&(_==="loading"||_==="idle")){var z;if(u!=null&&u.isPlaceholderData&&i.placeholderData===(f==null?void 0:f.placeholderData))z=u.data;else if(z=typeof i.placeholderData=="function"?i.placeholderData():i.placeholderData,i.select&&typeof z<"u")try{z=i.select(z),i.structuralSharing!==!1&&(z=fx(u==null?void 0:u.data,z)),this.selectError=null}catch(le){hx().error(le),this.selectError=le}typeof z<"u"&&(_="success",N=z,P=!0)}this.selectError&&(T=this.selectError,N=this.selectResult,C=Date.now(),_="error");var Q={status:_,isLoading:_==="loading",isSuccess:_==="success",isError:_==="error",isIdle:_==="idle",data:N,dataUpdatedAt:E,error:T,errorUpdatedAt:C,failureCount:v.fetchFailureCount,errorUpdateCount:v.errorUpdateCount,isFetched:v.dataUpdateCount>0||v.errorUpdateCount>0,isFetchedAfterMount:v.dataUpdateCount>y.dataUpdateCount||v.errorUpdateCount>y.errorUpdateCount,isFetching:k,isRefetching:k&&_!=="loading",isLoadingError:_==="error"&&v.dataUpdatedAt===0,isPlaceholderData:P,isPreviousData:A,isRefetchError:_==="error"&&v.dataUpdatedAt!==0,isStale:yF(a,i),refetch:this.refetch,remove:this.remove};return Q},n.shouldNotifyListeners=function(a,i){if(!i)return!0;var o=this.options,l=o.notifyOnChangeProps,u=o.notifyOnChangePropsExclusions;if(!l&&!u||l==="tracked"&&!this.trackedProps.length)return!0;var d=l==="tracked"?this.trackedProps:l;return Object.keys(a).some(function(f){var g=f,y=a[g]!==i[g],h=d==null?void 0:d.some(function(E){return E===f}),v=u==null?void 0:u.some(function(E){return E===f});return y&&!v&&(!d||h)})},n.updateResult=function(a){var i=this.currentResult;if(this.currentResult=this.createResult(this.currentQuery,this.options),this.currentResultState=this.currentQuery.state,this.currentResultOptions=this.options,!Yhe(this.currentResult,i)){var o={cache:!0};(a==null?void 0:a.listeners)!==!1&&this.shouldNotifyListeners(this.currentResult,i)&&(o.listeners=!0),this.notify(vt({},o,a))}},n.updateQuery=function(){var a=this.client.getQueryCache().build(this.client,this.options);if(a!==this.currentQuery){var i=this.currentQuery;this.currentQuery=a,this.currentQueryInitialState=a.state,this.previousQueryResult=this.currentResult,this.hasListeners()&&(i==null||i.removeObserver(this),a.addObserver(this))}},n.onQueryUpdate=function(a){var i={};a.type==="success"?i.onSuccess=!0:a.type==="error"&&!Lk(a.error)&&(i.onError=!0),this.updateResult(i),this.hasListeners()&&this.updateTimers()},n.notify=function(a){var i=this;aa.batch(function(){a.onSuccess?(i.options.onSuccess==null||i.options.onSuccess(i.currentResult.data),i.options.onSettled==null||i.options.onSettled(i.currentResult.data,null)):a.onError&&(i.options.onError==null||i.options.onError(i.currentResult.error),i.options.onSettled==null||i.options.onSettled(void 0,i.currentResult.error)),a.listeners&&i.listeners.forEach(function(o){o(i.currentResult)}),a.cache&&i.client.getQueryCache().notify({query:i.currentQuery,type:"observerResultsUpdated"})})},t})(E0);function cme(e,t){return t.enabled!==!1&&!e.state.dataUpdatedAt&&!(e.state.status==="error"&&t.retryOnMount===!1)}function L6(e,t){return cme(e,t)||e.state.dataUpdatedAt>0&&wL(e,t,t.refetchOnMount)}function wL(e,t,n){if(t.enabled!==!1){var r=typeof n=="function"?n(e):n;return r==="always"||r!==!1&&yF(e,t)}return!1}function F6(e,t,n,r){return n.enabled!==!1&&(e!==t||r.enabled===!1)&&(!n.suspense||e.state.status!=="error")&&yF(e,n)}function yF(e,t){return e.isStaleByTime(t.staleTime)}var dme=(function(e){qv(t,e);function t(r,a){var i;return i=e.call(this)||this,i.client=r,i.setOptions(a),i.bindMethods(),i.updateResult(),i}var n=t.prototype;return n.bindMethods=function(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)},n.setOptions=function(a){this.options=this.client.defaultMutationOptions(a)},n.onUnsubscribe=function(){if(!this.listeners.length){var a;(a=this.currentMutation)==null||a.removeObserver(this)}},n.onMutationUpdate=function(a){this.updateResult();var i={listeners:!0};a.type==="success"?i.onSuccess=!0:a.type==="error"&&(i.onError=!0),this.notify(i)},n.getCurrentResult=function(){return this.currentResult},n.reset=function(){this.currentMutation=void 0,this.updateResult(),this.notify({listeners:!0})},n.mutate=function(a,i){return this.mutateOptions=i,this.currentMutation&&this.currentMutation.removeObserver(this),this.currentMutation=this.client.getMutationCache().build(this.client,vt({},this.options,{variables:typeof a<"u"?a:this.options.variables})),this.currentMutation.addObserver(this),this.currentMutation.execute()},n.updateResult=function(){var a=this.currentMutation?this.currentMutation.state:eJ(),i=vt({},a,{isLoading:a.status==="loading",isSuccess:a.status==="success",isError:a.status==="error",isIdle:a.status==="idle",mutate:this.mutate,reset:this.reset});this.currentResult=i},n.notify=function(a){var i=this;aa.batch(function(){i.mutateOptions&&(a.onSuccess?(i.mutateOptions.onSuccess==null||i.mutateOptions.onSuccess(i.currentResult.data,i.currentResult.variables,i.currentResult.context),i.mutateOptions.onSettled==null||i.mutateOptions.onSettled(i.currentResult.data,null,i.currentResult.variables,i.currentResult.context)):a.onError&&(i.mutateOptions.onError==null||i.mutateOptions.onError(i.currentResult.error,i.currentResult.variables,i.currentResult.context),i.mutateOptions.onSettled==null||i.mutateOptions.onSettled(void 0,i.currentResult.error,i.currentResult.variables,i.currentResult.context))),a.listeners&&i.listeners.forEach(function(o){o(i.currentResult)})})},t})(E0),fme=Voe.unstable_batchedUpdates;aa.setBatchNotifyFunction(fme);var pme=console;eme(pme);var j6=ze.createContext(void 0),tJ=ze.createContext(!1);function nJ(e){return e&&typeof window<"u"?(window.ReactQueryClientContext||(window.ReactQueryClientContext=j6),window.ReactQueryClientContext):j6}var Bs=function(){var t=ze.useContext(nJ(ze.useContext(tJ)));if(!t)throw new Error("No QueryClient set, use QueryClientProvider to set one");return t},hme=function(t){var n=t.client,r=t.contextSharing,a=r===void 0?!1:r,i=t.children;ze.useEffect(function(){return n.mount(),function(){n.unmount()}},[n]);var o=nJ(a);return ze.createElement(tJ.Provider,{value:a},ze.createElement(o.Provider,{value:n},i))};function mme(){var e=!1;return{clearReset:function(){e=!1},reset:function(){e=!0},isReset:function(){return e}}}var gme=ze.createContext(mme()),vme=function(){return ze.useContext(gme)};function rJ(e,t,n){return typeof t=="function"?t.apply(void 0,n):typeof t=="boolean"?t:!!e}function un(e,t,n){var r=ze.useRef(!1),a=ze.useState(0),i=a[1],o=Hhe(e,t),l=Bs(),u=ze.useRef();u.current?u.current.setOptions(o):u.current=new dme(l,o);var d=u.current.getCurrentResult();ze.useEffect(function(){r.current=!0;var g=u.current.subscribe(aa.batchCalls(function(){r.current&&i(function(y){return y+1})}));return function(){r.current=!1,g()}},[]);var f=ze.useCallback(function(g,y){u.current.mutate(g,y).catch(ji)},[]);if(d.error&&rJ(void 0,u.current.options.useErrorBoundary,[d.error]))throw d.error;return vt({},d,{mutate:f,mutateAsync:d.mutate})}function yme(e,t){var n=ze.useRef(!1),r=ze.useState(0),a=r[1],i=Bs(),o=vme(),l=i.defaultQueryObserverOptions(e);l.optimisticResults=!0,l.onError&&(l.onError=aa.batchCalls(l.onError)),l.onSuccess&&(l.onSuccess=aa.batchCalls(l.onSuccess)),l.onSettled&&(l.onSettled=aa.batchCalls(l.onSettled)),l.suspense&&(typeof l.staleTime!="number"&&(l.staleTime=1e3),l.cacheTime===0&&(l.cacheTime=1)),(l.suspense||l.useErrorBoundary)&&(o.isReset()||(l.retryOnMount=!1));var u=ze.useState(function(){return new t(i,l)}),d=u[0],f=d.getOptimisticResult(l);if(ze.useEffect(function(){n.current=!0,o.clearReset();var g=d.subscribe(aa.batchCalls(function(){n.current&&a(function(y){return y+1})}));return d.updateResult(),function(){n.current=!1,g()}},[o,d]),ze.useEffect(function(){d.setOptions(l,{listeners:!1})},[l,d]),l.suspense&&f.isLoading)throw d.fetchOptimistic(l).then(function(g){var y=g.data;l.onSuccess==null||l.onSuccess(y),l.onSettled==null||l.onSettled(y,null)}).catch(function(g){o.clearReset(),l.onError==null||l.onError(g),l.onSettled==null||l.onSettled(void 0,g)});if(f.isError&&!o.isReset()&&!f.isFetching&&rJ(l.suspense,l.useErrorBoundary,[f.error,d.getCurrentQuery()]))throw f.error;return l.notifyOnChangeProps==="tracked"&&(f=d.trackResult(f,l)),f}function jn(e,t,n){var r=Dk(e,t,n);return yme(r,ume)}function bme({queryOptions:e,execFnOverride:t,query:n,queryClient:r,unauthorized:a,onMessage:i,presistResult:o}){var A;const{options:l}=R.useContext(rt),u=l.prefix,d=(A=l.headers)==null?void 0:A.authorization,f=l.headers["workspace-id"],g=R.useRef(),[y,h]=R.useState([]),v=P=>{h(N=>[...N,P])},[E,T]=R.useState(!1),C=()=>{var P,N;((P=g.current)==null?void 0:P.readyState)===1&&((N=g.current)==null||N.close()),T(!1)},k=P=>{var N;(N=g.current)==null||N.send(P)},_=(P,N=null)=>{var Q,le;((Q=g.current)==null?void 0:Q.readyState)===1&&((le=g.current)==null||le.close()),h([]);const I=u==null?void 0:u.replace("https","wss").replace("http","ws"),L="/reactive-search".substr(1);let j=`${I}${L}?acceptLanguage=${l.headers["accept-language"]}&token=${d}&workspaceId=${f}&${new URLSearchParams(P)}&${new URLSearchParams(n||{})}`;j=j.replace(":uniqueId",n==null?void 0:n.uniqueId);let z=new WebSocket(j);g.current=z,z.onopen=function(){T(!0)},z.onmessage=function(re){if(N!==null)return N(re);if(re.data instanceof Blob||re.data instanceof ArrayBuffer)i==null||i(re.data);else try{const ge=JSON.parse(re.data);ge&&(i&&i(ge),o!==!1&&v(ge))}catch{}}};return R.useEffect(()=>()=>{C()},[]),{operate:_,data:y,close:C,connected:E,write:k}}function wme(){const e=At(),{withDebounce:t}=GQ(),{setResult:n,setPhrase:r,phrase:a,result:i,reset:o}=R.useContext(m_),{operate:l,data:u}=bme({}),d=xr(),f=R.useRef(),[g,y]=R.useState(""),{locale:h}=sr();R.useEffect(()=>{a||y("")},[a]),R.useEffect(()=>{n(u)},[u]);const v=T=>{t(()=>{r(T),l({searchPhrase:encodeURIComponent(T)})},500)};mF("s",()=>{var T;(T=f.current)==null||T.focus()});const{isMobileView:E}=sh();return E?null:w.jsx("form",{className:"navbar-search-box",onSubmit:T=>{T.preventDefault(),i.length>0&&i[0].actionFn==="navigate"&&i[0].uiLocation&&(d.push(`/${h}${i[0].uiLocation}`),o())},children:w.jsx("input",{ref:T=>{f.current=T},value:g,placeholder:e.reactiveSearch.placeholder,onInput:T=>{y(T.target.value),v(T.target.value)},className:"form-control"})})}const Sme=({children:e,close:t,visible:n,params:r})=>w.jsx("div",{className:oa("modal d-block with-fade-in modal-overlay",n?"visible":"invisible"),children:w.jsx("div",{className:"modal-dialog",children:w.jsxs("div",{className:"modal-content",children:[w.jsxs("div",{className:"modal-header",children:[w.jsx("h5",{className:"modal-title",children:r==null?void 0:r.title}),w.jsx("button",{type:"button",id:"cls",className:"btn-close",onClick:t,"aria-label":"Close"})]}),e]})})});function SL(){return SL=Object.assign||function(e){for(var t=1;tw.jsx(Tme,{open:n,direction:(e==null?void 0:e.direction)||"right",zIndex:1e4,onClose:r,duration:e==null?void 0:e.speed,size:e==null?void 0:e.size,children:t}),aJ=R.createContext(null);let kme=0;const xme=({children:e,BaseModalWrapper:t=Sme,OverlayWrapper:n=Cme})=>{const[r,a]=R.useState([]),i=R.useRef(r);i.current=r,R.useEffect(()=>{const f=g=>{var y;if(g.key==="Escape"&&r.length>0){const h=r[r.length-1];(y=h==null?void 0:h.close)==null||y.call(h)}};return window.addEventListener("keydown",f),()=>window.removeEventListener("keydown",f)},[r]);const o=(f,g)=>{const y=kme++,h=ze.createRef();let v,E;const T=new Promise((A,P)=>{v=A,E=P}),C=()=>{a(A=>A.map(P=>P.id===y?{...P,visible:!1}:P)),setTimeout(()=>{a(A=>A.filter(P=>P.id!==y))},300)},k={id:y,ref:h,Component:f,type:(g==null?void 0:g.type)||"modal",params:g==null?void 0:g.params,data:{},visible:!1,onBeforeClose:void 0,resolve:A=>{setTimeout(()=>v({type:"resolved",data:A}),50),C()},close:async()=>{var N;const A=i.current.find(I=>I.id===y);A!=null&&A.onBeforeClose&&!await A.onBeforeClose()||!await(((N=k.onBeforeClose)==null?void 0:N.call(k))??!0)||(setTimeout(()=>v({data:null,type:"closed"}),50),C())},reject:A=>{setTimeout(()=>E({data:A,type:"rejected"}),50),C()}};a(A=>[...A,k]),setTimeout(()=>{a(A=>A.map(P=>P.id===y?{...P,visible:!0}:P))},50);const _=A=>{a(P=>P.map(N=>N.id===y?{...N,data:{...N.data,...A}}:N))};return{id:y,ref:h,promise:T,close:k.close,resolve:k.resolve,reject:k.reject,updateData:_}},l=(f,g)=>o(f,{type:"modal",params:g}),u=(f,g)=>o(f,{type:"drawer",params:g}),d=()=>{i.current.forEach(f=>{var g;return(g=f.reject)==null?void 0:g.call(f,"dismiss-all")}),a([])};return w.jsxs(aJ.Provider,{value:{openOverlay:o,openDrawer:u,openModal:l,dismissAll:d},children:[e,r.map(({id:f,type:g,Component:y,resolve:h,reject:v,close:E,params:T,visible:C,data:k})=>{const _=g==="drawer"?n:t;return w.jsx(_,{visible:C,close:E,reject:v,resolve:h,params:T,children:w.jsx(y,{resolve:h,reject:v,close:E,data:k,setOnBeforeClose:A=>{a(P=>P.map(N=>N.id===f?{...N,onBeforeClose:A}:N))}})},f)})]})},bF=()=>{const e=R.useContext(aJ);if(!e)throw new Error("useOverlay must be inside OverlayProvider");return e};var GR,U6;function T0(){return U6||(U6=1,GR=TypeError),GR}const _me={},Ome=Object.freeze(Object.defineProperty({__proto__:null,default:_me},Symbol.toStringTag,{value:"Module"})),Rme=jt(Ome);var YR,B6;function g_(){if(B6)return YR;B6=1;var e=typeof Map=="function"&&Map.prototype,t=Object.getOwnPropertyDescriptor&&e?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,n=e&&t&&typeof t.get=="function"?t.get:null,r=e&&Map.prototype.forEach,a=typeof Set=="function"&&Set.prototype,i=Object.getOwnPropertyDescriptor&&a?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,o=a&&i&&typeof i.get=="function"?i.get:null,l=a&&Set.prototype.forEach,u=typeof WeakMap=="function"&&WeakMap.prototype,d=u?WeakMap.prototype.has:null,f=typeof WeakSet=="function"&&WeakSet.prototype,g=f?WeakSet.prototype.has:null,y=typeof WeakRef=="function"&&WeakRef.prototype,h=y?WeakRef.prototype.deref:null,v=Boolean.prototype.valueOf,E=Object.prototype.toString,T=Function.prototype.toString,C=String.prototype.match,k=String.prototype.slice,_=String.prototype.replace,A=String.prototype.toUpperCase,P=String.prototype.toLowerCase,N=RegExp.prototype.test,I=Array.prototype.concat,L=Array.prototype.join,j=Array.prototype.slice,z=Math.floor,Q=typeof BigInt=="function"?BigInt.prototype.valueOf:null,le=Object.getOwnPropertySymbols,re=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Symbol.prototype.toString:null,ge=typeof Symbol=="function"&&typeof Symbol.iterator=="object",me=typeof Symbol=="function"&&Symbol.toStringTag&&(typeof Symbol.toStringTag===ge||!0)?Symbol.toStringTag:null,W=Object.prototype.propertyIsEnumerable,G=(typeof Reflect=="function"?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(be){return be.__proto__}:null);function q(be,Ee){if(be===1/0||be===-1/0||be!==be||be&&be>-1e3&&be<1e3||N.call(/e/,Ee))return Ee;var gt=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if(typeof be=="number"){var Lt=be<0?-z(-be):z(be);if(Lt!==be){var _t=String(Lt),Ut=k.call(Ee,_t.length+1);return _.call(_t,gt,"$&_")+"."+_.call(_.call(Ut,/([0-9]{3})/g,"$&_"),/_$/,"")}}return _.call(Ee,gt,"$&_")}var ce=Rme,H=ce.custom,Y=at(H)?H:null,ie={__proto__:null,double:'"',single:"'"},J={__proto__:null,double:/(["\\])/g,single:/(['\\])/g};YR=function be(Ee,gt,Lt,_t){var Ut=gt||{};if(xt(Ut,"quoteStyle")&&!xt(ie,Ut.quoteStyle))throw new TypeError('option "quoteStyle" must be "single" or "double"');if(xt(Ut,"maxStringLength")&&(typeof Ut.maxStringLength=="number"?Ut.maxStringLength<0&&Ut.maxStringLength!==1/0:Ut.maxStringLength!==null))throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');var _n=xt(Ut,"customInspect")?Ut.customInspect:!0;if(typeof _n!="boolean"&&_n!=="symbol")throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");if(xt(Ut,"indent")&&Ut.indent!==null&&Ut.indent!==" "&&!(parseInt(Ut.indent,10)===Ut.indent&&Ut.indent>0))throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`');if(xt(Ut,"numericSeparator")&&typeof Ut.numericSeparator!="boolean")throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');var gn=Ut.numericSeparator;if(typeof Ee>"u")return"undefined";if(Ee===null)return"null";if(typeof Ee=="boolean")return Ee?"true":"false";if(typeof Ee=="string")return U(Ee,Ut);if(typeof Ee=="number"){if(Ee===0)return 1/0/Ee>0?"0":"-0";var ln=String(Ee);return gn?q(Ee,ln):ln}if(typeof Ee=="bigint"){var Bn=String(Ee)+"n";return gn?q(Ee,Bn):Bn}var sa=typeof Ut.depth>"u"?5:Ut.depth;if(typeof Lt>"u"&&(Lt=0),Lt>=sa&&sa>0&&typeof Ee=="object")return ke(Ee)?"[Array]":"[Object]";var Qa=We(Ut,Lt);if(typeof _t>"u")_t=[];else if(qt(_t,Ee)>=0)return"[Circular]";function ma(yn,an,Dn){if(an&&(_t=j.call(_t),_t.push(an)),Dn){var En={depth:Ut.depth};return xt(Ut,"quoteStyle")&&(En.quoteStyle=Ut.quoteStyle),be(yn,En,Lt+1,_t)}return be(yn,Ut,Lt+1,_t)}if(typeof Ee=="function"&&!xe(Ee)){var vn=cn(Ee),_a=Mt(Ee,ma);return"[Function"+(vn?": "+vn:" (anonymous)")+"]"+(_a.length>0?" { "+L.call(_a,", ")+" }":"")}if(at(Ee)){var Wo=ge?_.call(String(Ee),/^(Symbol\(.*\))_[^)]*$/,"$1"):re.call(Ee);return typeof Ee=="object"&&!ge?F(Wo):Wo}if(Nt(Ee)){for(var Oa="<"+P.call(String(Ee.nodeName)),Ra=Ee.attributes||[],zo=0;zo",Oa}if(ke(Ee)){if(Ee.length===0)return"[]";var we=Mt(Ee,ma);return Qa&&!Fe(we)?"["+Tt(we,Qa)+"]":"[ "+L.call(we,", ")+" ]"}if(Ie(Ee)){var ve=Mt(Ee,ma);return!("cause"in Error.prototype)&&"cause"in Ee&&!W.call(Ee,"cause")?"{ ["+String(Ee)+"] "+L.call(I.call("[cause]: "+ma(Ee.cause),ve),", ")+" }":ve.length===0?"["+String(Ee)+"]":"{ ["+String(Ee)+"] "+L.call(ve,", ")+" }"}if(typeof Ee=="object"&&_n){if(Y&&typeof Ee[Y]=="function"&&ce)return ce(Ee,{depth:sa-Lt});if(_n!=="symbol"&&typeof Ee.inspect=="function")return Ee.inspect()}if(Wt(Ee)){var $e=[];return r&&r.call(Ee,function(yn,an){$e.push(ma(an,Ee,!0)+" => "+ma(yn,Ee))}),Te("Map",n.call(Ee),$e,Qa)}if(ft(Ee)){var ye=[];return l&&l.call(Ee,function(yn){ye.push(ma(yn,Ee))}),Te("Set",o.call(Ee),ye,Qa)}if(Oe(Ee))return ae("WeakMap");if(ut(Ee))return ae("WeakSet");if(dt(Ee))return ae("WeakRef");if(tt(Ee))return F(ma(Number(Ee)));if(Et(Ee))return F(ma(Q.call(Ee)));if(Ge(Ee))return F(v.call(Ee));if(qe(Ee))return F(ma(String(Ee)));if(typeof window<"u"&&Ee===window)return"{ [object Window] }";if(typeof globalThis<"u"&&Ee===globalThis||typeof _l<"u"&&Ee===_l)return"{ [object globalThis] }";if(!fe(Ee)&&!xe(Ee)){var Se=Mt(Ee,ma),ne=G?G(Ee)===Object.prototype:Ee instanceof Object||Ee.constructor===Object,Me=Ee instanceof Object?"":"null prototype",Qe=!ne&&me&&Object(Ee)===Ee&&me in Ee?k.call(Rt(Ee),8,-1):Me?"Object":"",ot=ne||typeof Ee.constructor!="function"?"":Ee.constructor.name?Ee.constructor.name+" ":"",Bt=ot+(Qe||Me?"["+L.call(I.call([],Qe||[],Me||[]),": ")+"] ":"");return Se.length===0?Bt+"{}":Qa?Bt+"{"+Tt(Se,Qa)+"}":Bt+"{ "+L.call(Se,", ")+" }"}return String(Ee)};function ee(be,Ee,gt){var Lt=gt.quoteStyle||Ee,_t=ie[Lt];return _t+be+_t}function Z(be){return _.call(String(be),/"/g,""")}function ue(be){return!me||!(typeof be=="object"&&(me in be||typeof be[me]<"u"))}function ke(be){return Rt(be)==="[object Array]"&&ue(be)}function fe(be){return Rt(be)==="[object Date]"&&ue(be)}function xe(be){return Rt(be)==="[object RegExp]"&&ue(be)}function Ie(be){return Rt(be)==="[object Error]"&&ue(be)}function qe(be){return Rt(be)==="[object String]"&&ue(be)}function tt(be){return Rt(be)==="[object Number]"&&ue(be)}function Ge(be){return Rt(be)==="[object Boolean]"&&ue(be)}function at(be){if(ge)return be&&typeof be=="object"&&be instanceof Symbol;if(typeof be=="symbol")return!0;if(!be||typeof be!="object"||!re)return!1;try{return re.call(be),!0}catch{}return!1}function Et(be){if(!be||typeof be!="object"||!Q)return!1;try{return Q.call(be),!0}catch{}return!1}var kt=Object.prototype.hasOwnProperty||function(be){return be in this};function xt(be,Ee){return kt.call(be,Ee)}function Rt(be){return E.call(be)}function cn(be){if(be.name)return be.name;var Ee=C.call(T.call(be),/^function\s*([\w$]+)/);return Ee?Ee[1]:null}function qt(be,Ee){if(be.indexOf)return be.indexOf(Ee);for(var gt=0,Lt=be.length;gtEe.maxStringLength){var gt=be.length-Ee.maxStringLength,Lt="... "+gt+" more character"+(gt>1?"s":"");return U(k.call(be,0,Ee.maxStringLength),Ee)+Lt}var _t=J[Ee.quoteStyle||"single"];_t.lastIndex=0;var Ut=_.call(_.call(be,_t,"\\$1"),/[\x00-\x1f]/g,D);return ee(Ut,"single",Ee)}function D(be){var Ee=be.charCodeAt(0),gt={8:"b",9:"t",10:"n",12:"f",13:"r"}[Ee];return gt?"\\"+gt:"\\x"+(Ee<16?"0":"")+A.call(Ee.toString(16))}function F(be){return"Object("+be+")"}function ae(be){return be+" { ? }"}function Te(be,Ee,gt,Lt){var _t=Lt?Tt(gt,Lt):L.call(gt,", ");return be+" ("+Ee+") {"+_t+"}"}function Fe(be){for(var Ee=0;Ee=0)return!1;return!0}function We(be,Ee){var gt;if(be.indent===" ")gt=" ";else if(typeof be.indent=="number"&&be.indent>0)gt=L.call(Array(be.indent+1)," ");else return null;return{base:gt,prev:L.call(Array(Ee+1),gt)}}function Tt(be,Ee){if(be.length===0)return"";var gt=` +*/var eB;function kh(){return eB||(eB=1,(function(e){(function(){var t={}.hasOwnProperty;function n(){for(var i="",o=0;ol.uniqueId===e.workspaceId);if(!i)return!1;for(const l of i.capabilities||[])if(new RegExp(l).test(n)){r=!0;break}const o=(i.roles||[]).find(l=>l.uniqueId===e.roleId);if(!o)return!1;for(const l of o.capabilities||[])if(new RegExp(l).test(n)){a=!0;break}return r&&a}function fJ(e){for(var t=[],n=e.length,r,a=0;a>>0,t.push(String.fromCharCode(r));return t.join("")}function Hhe(e,t,n,r,a){var i=new XMLHttpRequest;i.open(t,e),i.addEventListener("load",function(){var o=fJ(this.responseText);o="data:application/text;base64,"+btoa(o),document.location=o},!1),i.setRequestHeader("Authorization",n),i.setRequestHeader("Workspace-Id",r),i.setRequestHeader("role-Id",a),i.overrideMimeType("application/octet-stream; charset=x-user-defined;"),i.send(null)}const Vhe=({path:e})=>{At();const{options:t}=R.useContext(it);hJ(e?()=>{const n=t==null?void 0:t.headers;Hhe(t.prefix+""+e,"GET",n.authorization||"",n["workspace-id"]||"",n["role-id"]||"")}:void 0,Ir.ExportTable)};function W0(e,t){const n={[Ir.NewEntity]:"n",[Ir.NewChildEntity]:"n",[Ir.EditEntity]:"e",[Ir.SidebarToggle]:"m",[Ir.ViewQuestions]:"q",[Ir.Delete]:"Backspace",[Ir.StopStart]:" ",[Ir.ExportTable]:"x",[Ir.CommonBack]:"Escape",[Ir.Select1Index]:"1",[Ir.Select2Index]:"2",[Ir.Select3Index]:"3",[Ir.Select4Index]:"4",[Ir.Select5Index]:"5",[Ir.Select6Index]:"6",[Ir.Select7Index]:"7",[Ir.Select8Index]:"8",[Ir.Select9Index]:"9"};let r;return typeof e=="object"?r=e.map(a=>n[a]):typeof e=="string"&&(r=n[e]),zF(r,t)}function zF(e,t){R.useEffect(()=>{if(!e||e.length===0||!t)return;function n(r){var a=r||window.event,i=a.target||a.srcElement;const o=i.tagName.toUpperCase(),l=i.type;if(["TEXTAREA","SELECT"].includes(o)){r.key==="Escape"&&a.target.blur();return}if(o==="INPUT"&&(l==="text"||l==="password")){r.key==="Escape"&&a.target.blur();return}let u=!1;typeof e=="string"&&r.key===e?u=!0:Array.isArray(e)&&(u=e.includes(r.key)),u&&t&&t(r.key)}if(t)return window.addEventListener("keyup",n),()=>{window.removeEventListener("keyup",n)}},[t,e])}function qL({filter:e}){const t=R.useContext(L_);return w.jsx(w.Fragment,{children:(t.refs||[]).filter(e||Boolean).map(n=>w.jsx(Ghe,{mref:n},n.id))})}function Ghe({mref:e}){var t;return w.jsx("div",{className:"action-menu",children:w.jsx("ul",{className:"navbar-nav",children:(t=e.actions)==null?void 0:t.filter(Boolean).map(n=>w.jsx(Yhe,{item:n},n.uniqueActionKey))})})}function Yhe({item:e}){if(e.Component){const t=e.Component;return w.jsx("li",{className:"action-menu-item",children:w.jsx(t,{})})}return w.jsx("li",{className:sa("action-menu-item",e.className),onClick:e.onSelect,children:e.icon?w.jsx("span",{children:w.jsx("img",{src:kr.PUBLIC_URL+e.icon,title:e.label,alt:e.label})}):w.jsx("span",{children:e.label})})}const L_=ze.createContext({setActionMenu(){},removeActionMenu(){},removeActionMenuItems(e,t){},refs:[]});function Khe(){const e=R.useContext(L_);return{addActions:(a,i)=>(e.setActionMenu(a,i),()=>e.removeActionMenu(a)),removeActionMenu:a=>{e.removeActionMenu(a)},deleteActions:(a,i)=>{e.removeActionMenuItems(a,i)}}}function aT(e,t,n,r){const a=R.useContext(L_);return R.useEffect(()=>(a.setActionMenu(e,t.filter(i=>i!==void 0)),()=>{a.removeActionMenu(e)}),[]),{addActions(i,o=e){a.setActionMenu(o,i)},deleteActions(i,o=e){a.removeActionMenuItems(o,i)}}}function Xhe({children:e}){const[t,n]=R.useState([]),r=(o,l)=>{n(u=>(u.find(f=>f.id===o)?u=u.map(f=>f.id===o?{...f,actions:l}:f):u.push({id:o,actions:l}),[...u]))},a=o=>{n(l=>[...l.filter(u=>u.id!==o)])},i=(o,l)=>{for(let d=0;dv===y.uniqueActionKey)||g.push(y);f.actions=g}}const u=[...t];n(u)};return w.jsx(L_.Provider,{value:{refs:t,setActionMenu:r,removeActionMenuItems:i,removeActionMenu:a},children:e})}function Qhe({onCancel:e,onSave:t,access:n}){const{selectedUrw:r}=R.useContext(it),a=R.useMemo(()=>n?(r==null?void 0:r.workspaceId)!=="root"&&(n!=null&&n.onlyRoot)?!1:!(n!=null&&n.permissions)||n.permissions.length===0?!0:zhe(r,n.permissions[0]):!0,[r,n]),i=At();aT("editing-core",(({onSave:l,onCancel:u})=>a?[{icon:"",label:i.common.save,uniqueActionKey:"save",onSelect:()=>{l()}},u&&{icon:"",label:i.common.cancel,uniqueActionKey:"cancel",onSelect:()=>{u()}}]:[])({onCancel:e,onSave:t}))}function Jhe(e,t){const n=At();W0(t,e),aT("commonEntityActions",[e&&{icon:Ru.add,label:n.actions.new,uniqueActionKey:"new",onSelect:e}])}function pJ(e,t){const n=At();W0(t,e),aT("navigation",[e&&{icon:Ru.left,label:n.actions.back,uniqueActionKey:"back",className:"navigator-back-button",onSelect:e}])}function Zhe(){const{session:e,options:t}=R.useContext(it);hJ(()=>{var n=new XMLHttpRequest;n.open("GET",t.prefix+"roles/export"),n.addEventListener("load",function(){var a=fJ(this.responseText);a="data:application/text;base64,"+btoa(a),document.location=a},!1);const r=t==null?void 0:t.headers;n.setRequestHeader("Authorization",r.authorization||""),n.setRequestHeader("Workspace-Id",r["workspace-id"]||""),n.setRequestHeader("role-Id",r["role-id"]||""),n.overrideMimeType("application/octet-stream; charset=x-user-defined;"),n.send(null)},Ir.ExportTable)}function hJ(e,t){const n=At();W0(t,e),aT("exportTools",[e&&{icon:Ru.export,label:n.actions.new,uniqueActionKey:"export",onSelect:e}])}function eme(e,t){const n=At();W0(t,e),aT("commonEntityActions",[e&&{icon:Ru.edit,label:n.actions.edit,uniqueActionKey:"new",onSelect:e}])}function tme(e,t,n=100){const r=R.useRef(window.innerWidth);R.useEffect(()=>{let a;const i=()=>{const l=window.innerWidth,u=l=e&&u||r.current{clearTimeout(a),a=setTimeout(i,n)};return window.addEventListener("resize",o),i(),()=>{window.removeEventListener("resize",o),clearTimeout(a)}},[e,t,n])}function mJ(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e))for(t=0;ttypeof e=="number"&&!isNaN(e),ry=e=>typeof e=="string",fs=e=>typeof e=="function",ix=e=>ry(e)||fs(e)?e:null,gP=e=>R.isValidElement(e)||ry(e)||fs(e)||V1(e);function nme(e,t,n){n===void 0&&(n=300);const{scrollHeight:r,style:a}=e;requestAnimationFrame(()=>{a.minHeight="initial",a.height=r+"px",a.transition=`all ${n}ms`,requestAnimationFrame(()=>{a.height="0",a.padding="0",a.margin="0",setTimeout(t,n)})})}function F_(e){let{enter:t,exit:n,appendPosition:r=!1,collapse:a=!0,collapseDuration:i=300}=e;return function(o){let{children:l,position:u,preventExitTransition:d,done:f,nodeRef:g,isIn:y}=o;const h=r?`${t}--${u}`:t,v=r?`${n}--${u}`:n,E=R.useRef(0);return R.useLayoutEffect(()=>{const T=g.current,C=h.split(" "),k=_=>{_.target===g.current&&(T.dispatchEvent(new Event("d")),T.removeEventListener("animationend",k),T.removeEventListener("animationcancel",k),E.current===0&&_.type!=="animationcancel"&&T.classList.remove(...C))};T.classList.add(...C),T.addEventListener("animationend",k),T.addEventListener("animationcancel",k)},[]),R.useEffect(()=>{const T=g.current,C=()=>{T.removeEventListener("animationend",C),a?nme(T,f,i):f()};y||(d?C():(E.current=1,T.className+=` ${v}`,T.addEventListener("animationend",C)))},[y]),ze.createElement(ze.Fragment,null,l)}}function tB(e,t){return e!=null?{content:e.content,containerId:e.props.containerId,id:e.props.toastId,theme:e.props.theme,type:e.props.type,data:e.props.data||{},isLoading:e.props.isLoading,icon:e.props.icon,status:t}:{}}const kl={list:new Map,emitQueue:new Map,on(e,t){return this.list.has(e)||this.list.set(e,[]),this.list.get(e).push(t),this},off(e,t){if(t){const n=this.list.get(e).filter(r=>r!==t);return this.list.set(e,n),this}return this.list.delete(e),this},cancelEmit(e){const t=this.emitQueue.get(e);return t&&(t.forEach(clearTimeout),this.emitQueue.delete(e)),this},emit(e){this.list.has(e)&&this.list.get(e).forEach(t=>{const n=setTimeout(()=>{t(...[].slice.call(arguments,1))},0);this.emitQueue.has(e)||this.emitQueue.set(e,[]),this.emitQueue.get(e).push(n)})}},Ck=e=>{let{theme:t,type:n,...r}=e;return ze.createElement("svg",{viewBox:"0 0 24 24",width:"100%",height:"100%",fill:t==="colored"?"currentColor":`var(--toastify-icon-color-${n})`,...r})},vP={info:function(e){return ze.createElement(Ck,{...e},ze.createElement("path",{d:"M12 0a12 12 0 1012 12A12.013 12.013 0 0012 0zm.25 5a1.5 1.5 0 11-1.5 1.5 1.5 1.5 0 011.5-1.5zm2.25 13.5h-4a1 1 0 010-2h.75a.25.25 0 00.25-.25v-4.5a.25.25 0 00-.25-.25h-.75a1 1 0 010-2h1a2 2 0 012 2v4.75a.25.25 0 00.25.25h.75a1 1 0 110 2z"}))},warning:function(e){return ze.createElement(Ck,{...e},ze.createElement("path",{d:"M23.32 17.191L15.438 2.184C14.728.833 13.416 0 11.996 0c-1.42 0-2.733.833-3.443 2.184L.533 17.448a4.744 4.744 0 000 4.368C1.243 23.167 2.555 24 3.975 24h16.05C22.22 24 24 22.044 24 19.632c0-.904-.251-1.746-.68-2.44zm-9.622 1.46c0 1.033-.724 1.823-1.698 1.823s-1.698-.79-1.698-1.822v-.043c0-1.028.724-1.822 1.698-1.822s1.698.79 1.698 1.822v.043zm.039-12.285l-.84 8.06c-.057.581-.408.943-.897.943-.49 0-.84-.367-.896-.942l-.84-8.065c-.057-.624.25-1.095.779-1.095h1.91c.528.005.84.476.784 1.1z"}))},success:function(e){return ze.createElement(Ck,{...e},ze.createElement("path",{d:"M12 0a12 12 0 1012 12A12.014 12.014 0 0012 0zm6.927 8.2l-6.845 9.289a1.011 1.011 0 01-1.43.188l-4.888-3.908a1 1 0 111.25-1.562l4.076 3.261 6.227-8.451a1 1 0 111.61 1.183z"}))},error:function(e){return ze.createElement(Ck,{...e},ze.createElement("path",{d:"M11.983 0a12.206 12.206 0 00-8.51 3.653A11.8 11.8 0 000 12.207 11.779 11.779 0 0011.8 24h.214A12.111 12.111 0 0024 11.791 11.766 11.766 0 0011.983 0zM10.5 16.542a1.476 1.476 0 011.449-1.53h.027a1.527 1.527 0 011.523 1.47 1.475 1.475 0 01-1.449 1.53h-.027a1.529 1.529 0 01-1.523-1.47zM11 12.5v-6a1 1 0 012 0v6a1 1 0 11-2 0z"}))},spinner:function(){return ze.createElement("div",{className:"Toastify__spinner"})}};function rme(e){const[,t]=R.useReducer(h=>h+1,0),[n,r]=R.useState([]),a=R.useRef(null),i=R.useRef(new Map).current,o=h=>n.indexOf(h)!==-1,l=R.useRef({toastKey:1,displayedToast:0,count:0,queue:[],props:e,containerId:null,isToastActive:o,getToast:h=>i.get(h)}).current;function u(h){let{containerId:v}=h;const{limit:E}=l.props;!E||v&&l.containerId!==v||(l.count-=l.queue.length,l.queue=[])}function d(h){r(v=>h==null?[]:v.filter(E=>E!==h))}function f(){const{toastContent:h,toastProps:v,staleId:E}=l.queue.shift();y(h,v,E)}function g(h,v){let{delay:E,staleId:T,...C}=v;if(!gP(h)||(function(ue){return!a.current||l.props.enableMultiContainer&&ue.containerId!==l.props.containerId||i.has(ue.toastId)&&ue.updateId==null})(C))return;const{toastId:k,updateId:_,data:A}=C,{props:P}=l,N=()=>d(k),I=_==null;I&&l.count++;const L={...P,style:P.toastStyle,key:l.toastKey++,...Object.fromEntries(Object.entries(C).filter(ue=>{let[re,me]=ue;return me!=null})),toastId:k,updateId:_,data:A,closeToast:N,isIn:!1,className:ix(C.className||P.toastClassName),bodyClassName:ix(C.bodyClassName||P.bodyClassName),progressClassName:ix(C.progressClassName||P.progressClassName),autoClose:!C.isLoading&&(j=C.autoClose,z=P.autoClose,j===!1||V1(j)&&j>0?j:z),deleteToast(){const ue=tB(i.get(k),"removed");i.delete(k),kl.emit(4,ue);const re=l.queue.length;if(l.count=k==null?l.count-l.displayedToast:l.count-1,l.count<0&&(l.count=0),re>0){const me=k==null?l.props.limit:1;if(re===1||me===1)l.displayedToast++,f();else{const ge=me>re?re:me;l.displayedToast=ge;for(let W=0;Wce in vP)(me)&&(G=vP[me](q))),G})(L),fs(C.onOpen)&&(L.onOpen=C.onOpen),fs(C.onClose)&&(L.onClose=C.onClose),L.closeButton=P.closeButton,C.closeButton===!1||gP(C.closeButton)?L.closeButton=C.closeButton:C.closeButton===!0&&(L.closeButton=!gP(P.closeButton)||P.closeButton);let Q=h;R.isValidElement(h)&&!ry(h.type)?Q=R.cloneElement(h,{closeToast:N,toastProps:L,data:A}):fs(h)&&(Q=h({closeToast:N,toastProps:L,data:A})),P.limit&&P.limit>0&&l.count>P.limit&&I?l.queue.push({toastContent:Q,toastProps:L,staleId:T}):V1(E)?setTimeout(()=>{y(Q,L,T)},E):y(Q,L,T)}function y(h,v,E){const{toastId:T}=v;E&&i.delete(E);const C={content:h,props:v};i.set(T,C),r(k=>[...k,T].filter(_=>_!==E)),kl.emit(4,tB(C,C.props.updateId==null?"added":"updated"))}return R.useEffect(()=>(l.containerId=e.containerId,kl.cancelEmit(3).on(0,g).on(1,h=>a.current&&d(h)).on(5,u).emit(2,l),()=>{i.clear(),kl.emit(3,l)}),[]),R.useEffect(()=>{l.props=e,l.isToastActive=o,l.displayedToast=n.length}),{getToastToRender:function(h){const v=new Map,E=Array.from(i.values());return e.newestOnTop&&E.reverse(),E.forEach(T=>{const{position:C}=T.props;v.has(C)||v.set(C,[]),v.get(C).push(T)}),Array.from(v,T=>h(T[0],T[1]))},containerRef:a,isToastActive:o}}function nB(e){return e.targetTouches&&e.targetTouches.length>=1?e.targetTouches[0].clientX:e.clientX}function rB(e){return e.targetTouches&&e.targetTouches.length>=1?e.targetTouches[0].clientY:e.clientY}function ame(e){const[t,n]=R.useState(!1),[r,a]=R.useState(!1),i=R.useRef(null),o=R.useRef({start:0,x:0,y:0,delta:0,removalDistance:0,canCloseOnClick:!0,canDrag:!1,boundingRect:null,didMove:!1}).current,l=R.useRef(e),{autoClose:u,pauseOnHover:d,closeToast:f,onClick:g,closeOnClick:y}=e;function h(A){if(e.draggable){A.nativeEvent.type==="touchstart"&&A.nativeEvent.preventDefault(),o.didMove=!1,document.addEventListener("mousemove",C),document.addEventListener("mouseup",k),document.addEventListener("touchmove",C),document.addEventListener("touchend",k);const P=i.current;o.canCloseOnClick=!0,o.canDrag=!0,o.boundingRect=P.getBoundingClientRect(),P.style.transition="",o.x=nB(A.nativeEvent),o.y=rB(A.nativeEvent),e.draggableDirection==="x"?(o.start=o.x,o.removalDistance=P.offsetWidth*(e.draggablePercent/100)):(o.start=o.y,o.removalDistance=P.offsetHeight*(e.draggablePercent===80?1.5*e.draggablePercent:e.draggablePercent/100))}}function v(A){if(o.boundingRect){const{top:P,bottom:N,left:I,right:L}=o.boundingRect;A.nativeEvent.type!=="touchend"&&e.pauseOnHover&&o.x>=I&&o.x<=L&&o.y>=P&&o.y<=N?T():E()}}function E(){n(!0)}function T(){n(!1)}function C(A){const P=i.current;o.canDrag&&P&&(o.didMove=!0,t&&T(),o.x=nB(A),o.y=rB(A),o.delta=e.draggableDirection==="x"?o.x-o.start:o.y-o.start,o.start!==o.x&&(o.canCloseOnClick=!1),P.style.transform=`translate${e.draggableDirection}(${o.delta}px)`,P.style.opacity=""+(1-Math.abs(o.delta/o.removalDistance)))}function k(){document.removeEventListener("mousemove",C),document.removeEventListener("mouseup",k),document.removeEventListener("touchmove",C),document.removeEventListener("touchend",k);const A=i.current;if(o.canDrag&&o.didMove&&A){if(o.canDrag=!1,Math.abs(o.delta)>o.removalDistance)return a(!0),void e.closeToast();A.style.transition="transform 0.2s, opacity 0.2s",A.style.transform=`translate${e.draggableDirection}(0)`,A.style.opacity="1"}}R.useEffect(()=>{l.current=e}),R.useEffect(()=>(i.current&&i.current.addEventListener("d",E,{once:!0}),fs(e.onOpen)&&e.onOpen(R.isValidElement(e.children)&&e.children.props),()=>{const A=l.current;fs(A.onClose)&&A.onClose(R.isValidElement(A.children)&&A.children.props)}),[]),R.useEffect(()=>(e.pauseOnFocusLoss&&(document.hasFocus()||T(),window.addEventListener("focus",E),window.addEventListener("blur",T)),()=>{e.pauseOnFocusLoss&&(window.removeEventListener("focus",E),window.removeEventListener("blur",T))}),[e.pauseOnFocusLoss]);const _={onMouseDown:h,onTouchStart:h,onMouseUp:v,onTouchEnd:v};return u&&d&&(_.onMouseEnter=T,_.onMouseLeave=E),y&&(_.onClick=A=>{g&&g(A),o.canCloseOnClick&&f()}),{playToast:E,pauseToast:T,isRunning:t,preventExitTransition:r,toastRef:i,eventHandlers:_}}function gJ(e){let{closeToast:t,theme:n,ariaLabel:r="close"}=e;return ze.createElement("button",{className:`Toastify__close-button Toastify__close-button--${n}`,type:"button",onClick:a=>{a.stopPropagation(),t(a)},"aria-label":r},ze.createElement("svg",{"aria-hidden":"true",viewBox:"0 0 14 16"},ze.createElement("path",{fillRule:"evenodd",d:"M7.71 8.23l3.75 3.75-1.48 1.48-3.75-3.75-3.75 3.75L1 11.98l3.75-3.75L1 4.48 2.48 3l3.75 3.75L9.98 3l1.48 1.48-3.75 3.75z"})))}function ime(e){let{delay:t,isRunning:n,closeToast:r,type:a="default",hide:i,className:o,style:l,controlledProgress:u,progress:d,rtl:f,isIn:g,theme:y}=e;const h=i||u&&d===0,v={...l,animationDuration:`${t}ms`,animationPlayState:n?"running":"paused",opacity:h?0:1};u&&(v.transform=`scaleX(${d})`);const E=oh("Toastify__progress-bar",u?"Toastify__progress-bar--controlled":"Toastify__progress-bar--animated",`Toastify__progress-bar-theme--${y}`,`Toastify__progress-bar--${a}`,{"Toastify__progress-bar--rtl":f}),T=fs(o)?o({rtl:f,type:a,defaultClassName:E}):oh(E,o);return ze.createElement("div",{role:"progressbar","aria-hidden":h?"true":"false","aria-label":"notification timer",className:T,style:v,[u&&d>=1?"onTransitionEnd":"onAnimationEnd"]:u&&d<1?null:()=>{g&&r()}})}const ome=e=>{const{isRunning:t,preventExitTransition:n,toastRef:r,eventHandlers:a}=ame(e),{closeButton:i,children:o,autoClose:l,onClick:u,type:d,hideProgressBar:f,closeToast:g,transition:y,position:h,className:v,style:E,bodyClassName:T,bodyStyle:C,progressClassName:k,progressStyle:_,updateId:A,role:P,progress:N,rtl:I,toastId:L,deleteToast:j,isIn:z,isLoading:Q,iconOut:ue,closeOnClick:re,theme:me}=e,ge=oh("Toastify__toast",`Toastify__toast-theme--${me}`,`Toastify__toast--${d}`,{"Toastify__toast--rtl":I},{"Toastify__toast--close-on-click":re}),W=fs(v)?v({rtl:I,position:h,type:d,defaultClassName:ge}):oh(ge,v),G=!!N||!l,q={closeToast:g,type:d,theme:me};let ce=null;return i===!1||(ce=fs(i)?i(q):R.isValidElement(i)?R.cloneElement(i,q):gJ(q)),ze.createElement(y,{isIn:z,done:j,position:h,preventExitTransition:n,nodeRef:r},ze.createElement("div",{id:L,onClick:u,className:W,...a,style:E,ref:r},ze.createElement("div",{...z&&{role:P},className:fs(T)?T({type:d}):oh("Toastify__toast-body",T),style:C},ue!=null&&ze.createElement("div",{className:oh("Toastify__toast-icon",{"Toastify--animate-icon Toastify__zoom-enter":!Q})},ue),ze.createElement("div",null,o)),ce,ze.createElement(ime,{...A&&!G?{key:`pb-${A}`}:{},rtl:I,theme:me,delay:l,isRunning:t,isIn:z,closeToast:g,hide:f,type:d,style:_,className:k,controlledProgress:G,progress:N||0})))},j_=function(e,t){return t===void 0&&(t=!1),{enter:`Toastify--animate Toastify__${e}-enter`,exit:`Toastify--animate Toastify__${e}-exit`,appendPosition:t}},sme=F_(j_("bounce",!0));F_(j_("slide",!0));F_(j_("zoom"));F_(j_("flip"));const HL=R.forwardRef((e,t)=>{const{getToastToRender:n,containerRef:r,isToastActive:a}=rme(e),{className:i,style:o,rtl:l,containerId:u}=e;function d(f){const g=oh("Toastify__toast-container",`Toastify__toast-container--${f}`,{"Toastify__toast-container--rtl":l});return fs(i)?i({position:f,rtl:l,defaultClassName:g}):oh(g,ix(i))}return R.useEffect(()=>{t&&(t.current=r.current)},[]),ze.createElement("div",{ref:r,className:"Toastify",id:u},n((f,g)=>{const y=g.length?{...o}:{...o,pointerEvents:"none"};return ze.createElement("div",{className:d(f),style:y,key:`container-${f}`},g.map((h,v)=>{let{content:E,props:T}=h;return ze.createElement(ome,{...T,isIn:a(T.toastId),style:{...T.style,"--nth":v+1,"--len":g.length},key:`toast-${T.key}`},E)}))}))});HL.displayName="ToastContainer",HL.defaultProps={position:"top-right",transition:sme,autoClose:5e3,closeButton:gJ,pauseOnHover:!0,pauseOnFocusLoss:!0,closeOnClick:!0,draggable:!0,draggablePercent:80,draggableDirection:"x",role:"alert",theme:"light"};let yP,xv=new Map,F1=[],lme=1;function vJ(){return""+lme++}function ume(e){return e&&(ry(e.toastId)||V1(e.toastId))?e.toastId:vJ()}function G1(e,t){return xv.size>0?kl.emit(0,e,t):F1.push({content:e,options:t}),t.toastId}function Nx(e,t){return{...t,type:t&&t.type||e,toastId:ume(t)}}function kk(e){return(t,n)=>G1(t,Nx(e,n))}function ta(e,t){return G1(e,Nx("default",t))}ta.loading=(e,t)=>G1(e,Nx("default",{isLoading:!0,autoClose:!1,closeOnClick:!1,closeButton:!1,draggable:!1,...t})),ta.promise=function(e,t,n){let r,{pending:a,error:i,success:o}=t;a&&(r=ry(a)?ta.loading(a,n):ta.loading(a.render,{...n,...a}));const l={isLoading:null,autoClose:null,closeOnClick:null,closeButton:null,draggable:null},u=(f,g,y)=>{if(g==null)return void ta.dismiss(r);const h={type:f,...l,...n,data:y},v=ry(g)?{render:g}:g;return r?ta.update(r,{...h,...v}):ta(v.render,{...h,...v}),y},d=fs(e)?e():e;return d.then(f=>u("success",o,f)).catch(f=>u("error",i,f)),d},ta.success=kk("success"),ta.info=kk("info"),ta.error=kk("error"),ta.warning=kk("warning"),ta.warn=ta.warning,ta.dark=(e,t)=>G1(e,Nx("default",{theme:"dark",...t})),ta.dismiss=e=>{xv.size>0?kl.emit(1,e):F1=F1.filter(t=>e!=null&&t.options.toastId!==e)},ta.clearWaitingQueue=function(e){return e===void 0&&(e={}),kl.emit(5,e)},ta.isActive=e=>{let t=!1;return xv.forEach(n=>{n.isToastActive&&n.isToastActive(e)&&(t=!0)}),t},ta.update=function(e,t){t===void 0&&(t={}),setTimeout(()=>{const n=(function(r,a){let{containerId:i}=a;const o=xv.get(i||yP);return o&&o.getToast(r)})(e,t);if(n){const{props:r,content:a}=n,i={delay:100,...r,...t,toastId:t.toastId||e,updateId:vJ()};i.toastId!==e&&(i.staleId=e);const o=i.render||a;delete i.render,G1(o,i)}},0)},ta.done=e=>{ta.update(e,{progress:1})},ta.onChange=e=>(kl.on(4,e),()=>{kl.off(4,e)}),ta.POSITION={TOP_LEFT:"top-left",TOP_RIGHT:"top-right",TOP_CENTER:"top-center",BOTTOM_LEFT:"bottom-left",BOTTOM_RIGHT:"bottom-right",BOTTOM_CENTER:"bottom-center"},ta.TYPE={INFO:"info",SUCCESS:"success",WARNING:"warning",ERROR:"error",DEFAULT:"default"},kl.on(2,e=>{yP=e.containerId||e,xv.set(yP,e),F1.forEach(t=>{kl.emit(0,t.content,t.options)}),F1=[]}).on(3,e=>{xv.delete(e.containerId||e),xv.size===0&&kl.off(0).off(1).off(5)});let XS=null;const aB=2500;function cme(e,t){if((XS==null?void 0:XS.content)==e)return;const n=ta(e,{hideProgressBar:!0,autoClose:aB,...t});XS={content:e,key:n},setTimeout(()=>{XS=null},aB)}function z0(e){var n,r,a,i;const t={};if(e.error&&Array.isArray((n=e.error)==null?void 0:n.errors))for(const o of(r=e.error)==null?void 0:r.errors)t[o.location]=o.message;return e.status&&e.ok===!1?{form:`${e.status}`}:((a=e==null?void 0:e.error)!=null&&a.message&&(t.form=(i=e==null?void 0:e.error)==null?void 0:i.message),e.message?{form:`${e.message}`}:t)}function yJ(){return("10000000-1000-4000-8000"+-1e11).replace(/[018]/g,e=>(e^crypto.getRandomValues(new Uint8Array(1))[0]&15>>e/4).toString(16))}function dme(e,t,n,r){const[a,i]=R.useState(null);return R.useEffect(()=>{const o=document.querySelector(e);if(!o)return;let l=null;const u=new ResizeObserver(d=>{for(const f of d){const g=f.contentRect.width;let y=null;for(const{name:h,value:v}of t)if(g{u.unobserve(o),u.disconnect()}},[e,t,n,r]),a}const vh=()=>{const e=navigator.userAgent.toLowerCase(),t="ontouchstart"in window||navigator.maxTouchPoints>0,n=window.innerWidth||document.documentElement.clientWidth,r=!!window.cordova||!!window.cordovaPlatformId,a=/iphone|android.*mobile|blackberry|windows phone|opera mini|iemobile/,i=/ipad|android(?!.*mobile)|tablet/,o=/windows|macintosh|linux|x11/,l=a.test(e),u=i.test(e),d=!t||o.test(e);let f="large";n<600?f="small":n<1024&&(f="medium");const g=n<1024;return{isPhysicalPhone:l,isTablet:u,isDesktop:d,isMobileView:g,isCordova:r,viewSize:f}},bJ=ze.createContext({sidebarVisible:!1,threshold:"desktop",routers:[{id:"url-router"}],toggleSidebar(){},setSidebarRef(e){},persistSidebarSize(e){},setFocusedRouter(e){},closeCurrentRouter(){},sidebarItemSelected(){},collapseLeftPanel(){},addRouter(){},updateSidebarSize(){},hide(){},show(){}});function dy(){return R.useContext(bJ)}function fme({children:e}){const t=R.useRef(null),n=R.useRef(null),[r,a]=R.useState(!1),[i,o]=R.useState([{id:"url-router"}]),l=N=>{n.current=N,localStorage.setItem("sidebarState",N.toString())};R.useEffect(()=>{const N=localStorage.getItem("sidebarState"),I=N!==null?parseFloat(N):null;I&&(n.current=I)},[]);const u=R.useRef(!1),d=N=>{var I;(I=t.current)==null||I.resize(N)};tme(768,N=>{d(N?0:20)});const f=N=>{o(I=>[...I,{id:yJ(),href:N}])},g=N=>{o(I=>I.map(L=>L.id===N?{...L,focused:!0}:{...L,focused:!1}))},y=()=>{var N;t.current&&u.current&&(E(),u.current=!1),C((N=t.current)==null?void 0:N.getSize())},h=()=>{var j;const N=(j=t.current)==null?void 0:j.getSize(),I=180/window.innerWidth*100;let L=I;n.current&&n.current>I&&(L=n.current),vh().isMobileView&&(L=80),N&&N>0?(d(0),localStorage.setItem("sidebarState","-1"),a(!1)):(localStorage.setItem("sidebarState",L.toString()),d(L),a(!0))},v=N=>{t.current=N},E=()=>{d(0),a(!1)},T=N=>{o(I=>I.filter(L=>L.id!==N))},C=N=>{d(N)},k=()=>{t.current&&(d(20),a(!0))},_=N=>{N==="closed"?u.current=!0:u.current=!1},A=dme(".sidebar-panel",[{name:"closed",value:50},{name:"tablet",value:100},{name:"desktop",value:150}],_,_),P=()=>{window.innerWidth<500&&E()};return w.jsx(bJ.Provider,{value:{hide:E,sidebarItemSelected:P,addRouter:f,show:k,updateSidebarSize:C,setFocusedRouter:g,setSidebarRef:v,persistSidebarSize:l,closeCurrentRouter:T,threshold:A,collapseLeftPanel:y,routers:i,sidebarVisible:r,toggleSidebar:h},children:e})}class Dd extends wn{constructor(...t){super(...t),this.children=void 0,this.name=void 0,this.operationId=void 0,this.diskPath=void 0,this.size=void 0,this.virtualPath=void 0,this.type=void 0,this.variations=void 0}}Dd.Navigation={edit(e,t){return`${t?"/"+t:".."}/file/edit/${e}`},create(e){return`${e?"/"+e:".."}/file/new`},single(e,t){return`${t?"/"+t:".."}/file/${e}`},query(e={},t){return`${t?"/"+t:".."}/files`},Redit:"file/edit/:uniqueId",Rcreate:"file/new",Rsingle:"file/:uniqueId",Rquery:"files",rVariationsCreate:"file/:linkerId/variations/new",rVariationsEdit:"file/:linkerId/variations/edit/:uniqueId",editVariations(e,t,n){return`${n?"/"+n:""}/file/${e}/variations/edit/${t}`},createVariations(e,t){return`${t?"/"+t:""}/file/${e}/variations/new`}};Dd.definition={rpc:{query:{}},permRewrite:{replace:"root.modules",with:"root.manage"},name:"file",features:{},gormMap:{},fields:[{name:"name",type:"string",computedType:"string",gormMap:{}},{name:"operationId",description:"For each upload, we need to assign a operation id, so if the operation has been cancelled, it would be cleared automatically, and there won't be orphant files in the database.",type:"string",computedType:"string",gormMap:{}},{name:"diskPath",type:"string",computedType:"string",gormMap:{}},{name:"size",type:"int64",computedType:"number",gormMap:{}},{name:"virtualPath",type:"string",computedType:"string",gormMap:{}},{name:"type",type:"string",computedType:"string",gormMap:{}},{name:"variations",type:"array",computedType:"FileVariations[]",gormMap:{},"-":"FileVariations",fields:[{name:"name",type:"string",computedType:"string",gormMap:{}}],linkedTo:"FileEntity"}],description:"Tus file uploading reference of the content. Every files being uploaded using tus will be stored in this table."};Dd.Fields={...wn.Fields,name:"name",operationId:"operationId",diskPath:"diskPath",size:"size",virtualPath:"virtualPath",type:"type",variations$:"variations",variationsAt:e=>({$:`variations[${e}]`,...wn.Fields,name:`variations[${e}].name`})};function iB(e){let t=(e||"").replaceAll(/fbtusid_____(.*)_____/g,kr.REMOTE_SERVICE+"files/$1");return t=(t||"").replaceAll(/directasset_____(.*)_____/g,kr.REMOTE_SERVICE+"$1"),t}function pme(){return{compiler:"unknown"}}function wJ(){return{directPath:n=>!(n!=null&&n.diskPath)&&(n!=null&&n.uniqueId)?iB(n.uniqueId):`${kr.REMOTE_SERVICE}files-inline/${n==null?void 0:n.diskPath}`,downloadPath:n=>!(n!=null&&n.diskPath)&&(n!=null&&n.uniqueId)?iB(n.uniqueId):`${kr.REMOTE_SERVICE}files/${n==null?void 0:n.diskPath}`}}const Ml=({children:e,isActive:t,skip:n,activeClassName:r,inActiveClassName:a,...i})=>{var g;const o=xr(),{locale:l}=sr(),u=i.locale||l||"en",{compiler:d}=pme();let f=(i==null?void 0:i.href)||(o==null?void 0:o.asPath)||"";return typeof f=="string"&&(f!=null&&f.indexOf)&&f.indexOf("http")===0&&(n=!0),typeof f=="string"&&u&&!n&&!f.startsWith(".")&&(f=f?`/${l}`+f:(g=o.pathname)==null?void 0:g.replace("[locale]",u)),t&&(i.className=`${i.className||""} ${r||"active"}`),!t&&a&&(i.className=`${i.className||""} ${a}`),w.jsx(_le,{...i,href:f,compiler:d,children:e})},g0=e=>{const{children:t,forceActive:n,...r}=e,{locale:a,asPath:i}=sr(),o=R.Children.only(t),l=i===`/${a}`+r.href||i+"/"==`/${a}`+r.href||n;return e.disabled?w.jsx("span",{className:"disabled",children:o}):w.jsx(Ml,{...r,isActive:l,children:o})};function hme(){const e=R.useContext(qF);return w.jsx("span",{children:e.ref.title})}const qF=ze.createContext({setPageTitle(){},removePageTitle(){},ref:{title:""}});function xh(e){const t=R.useContext(qF);R.useEffect(()=>(t.setPageTitle(e||""),()=>{t.removePageTitle("")}),[e])}function mme({children:e,prefix:t,affix:n}){const[r,a]=R.useState(""),i=l=>{const u=[t,l,n].filter(Boolean).join(" | ");document.title=u,a(l)},o=()=>{document.title="",a("")};return w.jsx(qF.Provider,{value:{ref:{title:r},setPageTitle:i,removePageTitle:o},children:e})}const SJ=()=>{const e=R.useRef();return{withDebounce:(n,r)=>{e.current&&clearTimeout(e.current),e.current=setTimeout(n,r)}}},U_=ze.createContext({result:[],setResult(){},reset(){},appendResult(){},setPhrase(){},phrase:""});function gme({children:e}){const[t,n]=R.useState(""),[r,a]=R.useState([]),i=l=>{a(u=>[...u,l])},o=()=>{n(""),a([])};return w.jsx(U_.Provider,{value:{result:r,setResult:a,reset:o,appendResult:i,setPhrase:n,phrase:t},children:e})}function Mx(e,t){return Mx=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,a){return r.__proto__=a,r},Mx(e,t)}function fy(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,Mx(e,t)}var q0=(function(){function e(){this.listeners=[]}var t=e.prototype;return t.subscribe=function(r){var a=this,i=r||function(){};return this.listeners.push(i),this.onSubscribe(),function(){a.listeners=a.listeners.filter(function(o){return o!==i}),a.onUnsubscribe()}},t.hasListeners=function(){return this.listeners.length>0},t.onSubscribe=function(){},t.onUnsubscribe=function(){},e})();function vt(){return vt=Object.assign?Object.assign.bind():function(e){for(var t=1;t"u";function Bi(){}function vme(e,t){return typeof e=="function"?e(t):e}function VL(e){return typeof e=="number"&&e>=0&&e!==1/0}function Dx(e){return Array.isArray(e)?e:[e]}function EJ(e,t){return Math.max(e+(t||0)-Date.now(),0)}function ox(e,t,n){return iT(e)?typeof t=="function"?vt({},n,{queryKey:e,queryFn:t}):vt({},t,{queryKey:e}):e}function yme(e,t,n){return iT(e)?vt({},t,{mutationKey:e}):typeof e=="function"?vt({},t,{mutationFn:e}):vt({},e)}function nh(e,t,n){return iT(e)?[vt({},t,{queryKey:e}),n]:[e||{},t]}function bme(e,t){if(e===!0&&t===!0||e==null&&t==null)return"all";if(e===!1&&t===!1)return"none";var n=e??!t;return n?"active":"inactive"}function oB(e,t){var n=e.active,r=e.exact,a=e.fetching,i=e.inactive,o=e.predicate,l=e.queryKey,u=e.stale;if(iT(l)){if(r){if(t.queryHash!==HF(l,t.options))return!1}else if(!$x(t.queryKey,l))return!1}var d=bme(n,i);if(d==="none")return!1;if(d!=="all"){var f=t.isActive();if(d==="active"&&!f||d==="inactive"&&f)return!1}return!(typeof u=="boolean"&&t.isStale()!==u||typeof a=="boolean"&&t.isFetching()!==a||o&&!o(t))}function sB(e,t){var n=e.exact,r=e.fetching,a=e.predicate,i=e.mutationKey;if(iT(i)){if(!t.options.mutationKey)return!1;if(n){if(Rv(t.options.mutationKey)!==Rv(i))return!1}else if(!$x(t.options.mutationKey,i))return!1}return!(typeof r=="boolean"&&t.state.status==="loading"!==r||a&&!a(t))}function HF(e,t){var n=(t==null?void 0:t.queryKeyHashFn)||Rv;return n(e)}function Rv(e){var t=Dx(e);return wme(t)}function wme(e){return JSON.stringify(e,function(t,n){return GL(n)?Object.keys(n).sort().reduce(function(r,a){return r[a]=n[a],r},{}):n})}function $x(e,t){return TJ(Dx(e),Dx(t))}function TJ(e,t){return e===t?!0:typeof e!=typeof t?!1:e&&t&&typeof e=="object"&&typeof t=="object"?!Object.keys(t).some(function(n){return!TJ(e[n],t[n])}):!1}function Lx(e,t){if(e===t)return e;var n=Array.isArray(e)&&Array.isArray(t);if(n||GL(e)&&GL(t)){for(var r=n?e.length:Object.keys(e).length,a=n?t:Object.keys(t),i=a.length,o=n?[]:{},l=0,u=0;u"u")return!0;var n=t.prototype;return!(!lB(n)||!n.hasOwnProperty("isPrototypeOf"))}function lB(e){return Object.prototype.toString.call(e)==="[object Object]"}function iT(e){return typeof e=="string"||Array.isArray(e)}function Eme(e){return new Promise(function(t){setTimeout(t,e)})}function uB(e){Promise.resolve().then(e).catch(function(t){return setTimeout(function(){throw t})})}function CJ(){if(typeof AbortController=="function")return new AbortController}var Tme=(function(e){fy(t,e);function t(){var r;return r=e.call(this)||this,r.setup=function(a){var i;if(!Ix&&((i=window)!=null&&i.addEventListener)){var o=function(){return a()};return window.addEventListener("visibilitychange",o,!1),window.addEventListener("focus",o,!1),function(){window.removeEventListener("visibilitychange",o),window.removeEventListener("focus",o)}}},r}var n=t.prototype;return n.onSubscribe=function(){this.cleanup||this.setEventListener(this.setup)},n.onUnsubscribe=function(){if(!this.hasListeners()){var a;(a=this.cleanup)==null||a.call(this),this.cleanup=void 0}},n.setEventListener=function(a){var i,o=this;this.setup=a,(i=this.cleanup)==null||i.call(this),this.cleanup=a(function(l){typeof l=="boolean"?o.setFocused(l):o.onFocus()})},n.setFocused=function(a){this.focused=a,a&&this.onFocus()},n.onFocus=function(){this.listeners.forEach(function(a){a()})},n.isFocused=function(){return typeof this.focused=="boolean"?this.focused:typeof document>"u"?!0:[void 0,"visible","prerender"].includes(document.visibilityState)},t})(q0),Y1=new Tme,Cme=(function(e){fy(t,e);function t(){var r;return r=e.call(this)||this,r.setup=function(a){var i;if(!Ix&&((i=window)!=null&&i.addEventListener)){var o=function(){return a()};return window.addEventListener("online",o,!1),window.addEventListener("offline",o,!1),function(){window.removeEventListener("online",o),window.removeEventListener("offline",o)}}},r}var n=t.prototype;return n.onSubscribe=function(){this.cleanup||this.setEventListener(this.setup)},n.onUnsubscribe=function(){if(!this.hasListeners()){var a;(a=this.cleanup)==null||a.call(this),this.cleanup=void 0}},n.setEventListener=function(a){var i,o=this;this.setup=a,(i=this.cleanup)==null||i.call(this),this.cleanup=a(function(l){typeof l=="boolean"?o.setOnline(l):o.onOnline()})},n.setOnline=function(a){this.online=a,a&&this.onOnline()},n.onOnline=function(){this.listeners.forEach(function(a){a()})},n.isOnline=function(){return typeof this.online=="boolean"?this.online:typeof navigator>"u"||typeof navigator.onLine>"u"?!0:navigator.onLine},t})(q0),sx=new Cme;function kme(e){return Math.min(1e3*Math.pow(2,e),3e4)}function Fx(e){return typeof(e==null?void 0:e.cancel)=="function"}var kJ=function(t){this.revert=t==null?void 0:t.revert,this.silent=t==null?void 0:t.silent};function lx(e){return e instanceof kJ}var xJ=function(t){var n=this,r=!1,a,i,o,l;this.abort=t.abort,this.cancel=function(y){return a==null?void 0:a(y)},this.cancelRetry=function(){r=!0},this.continueRetry=function(){r=!1},this.continue=function(){return i==null?void 0:i()},this.failureCount=0,this.isPaused=!1,this.isResolved=!1,this.isTransportCancelable=!1,this.promise=new Promise(function(y,h){o=y,l=h});var u=function(h){n.isResolved||(n.isResolved=!0,t.onSuccess==null||t.onSuccess(h),i==null||i(),o(h))},d=function(h){n.isResolved||(n.isResolved=!0,t.onError==null||t.onError(h),i==null||i(),l(h))},f=function(){return new Promise(function(h){i=h,n.isPaused=!0,t.onPause==null||t.onPause()}).then(function(){i=void 0,n.isPaused=!1,t.onContinue==null||t.onContinue()})},g=function y(){if(!n.isResolved){var h;try{h=t.fn()}catch(v){h=Promise.reject(v)}a=function(E){if(!n.isResolved&&(d(new kJ(E)),n.abort==null||n.abort(),Fx(h)))try{h.cancel()}catch{}},n.isTransportCancelable=Fx(h),Promise.resolve(h).then(u).catch(function(v){var E,T;if(!n.isResolved){var C=(E=t.retry)!=null?E:3,k=(T=t.retryDelay)!=null?T:kme,_=typeof k=="function"?k(n.failureCount,v):k,A=C===!0||typeof C=="number"&&n.failureCount"u"&&(l.exact=!0),this.queries.find(function(u){return oB(l,u)})},n.findAll=function(a,i){var o=nh(a,i),l=o[0];return Object.keys(l).length>0?this.queries.filter(function(u){return oB(l,u)}):this.queries},n.notify=function(a){var i=this;ia.batch(function(){i.listeners.forEach(function(o){o(a)})})},n.onFocus=function(){var a=this;ia.batch(function(){a.queries.forEach(function(i){i.onFocus()})})},n.onOnline=function(){var a=this;ia.batch(function(){a.queries.forEach(function(i){i.onOnline()})})},t})(q0),Pme=(function(){function e(n){this.options=vt({},n.defaultOptions,n.options),this.mutationId=n.mutationId,this.mutationCache=n.mutationCache,this.observers=[],this.state=n.state||OJ(),this.meta=n.meta}var t=e.prototype;return t.setState=function(r){this.dispatch({type:"setState",state:r})},t.addObserver=function(r){this.observers.indexOf(r)===-1&&this.observers.push(r)},t.removeObserver=function(r){this.observers=this.observers.filter(function(a){return a!==r})},t.cancel=function(){return this.retryer?(this.retryer.cancel(),this.retryer.promise.then(Bi).catch(Bi)):Promise.resolve()},t.continue=function(){return this.retryer?(this.retryer.continue(),this.retryer.promise):this.execute()},t.execute=function(){var r=this,a,i=this.state.status==="loading",o=Promise.resolve();return i||(this.dispatch({type:"loading",variables:this.options.variables}),o=o.then(function(){r.mutationCache.config.onMutate==null||r.mutationCache.config.onMutate(r.state.variables,r)}).then(function(){return r.options.onMutate==null?void 0:r.options.onMutate(r.state.variables)}).then(function(l){l!==r.state.context&&r.dispatch({type:"loading",context:l,variables:r.state.variables})})),o.then(function(){return r.executeMutation()}).then(function(l){a=l,r.mutationCache.config.onSuccess==null||r.mutationCache.config.onSuccess(a,r.state.variables,r.state.context,r)}).then(function(){return r.options.onSuccess==null?void 0:r.options.onSuccess(a,r.state.variables,r.state.context)}).then(function(){return r.options.onSettled==null?void 0:r.options.onSettled(a,null,r.state.variables,r.state.context)}).then(function(){return r.dispatch({type:"success",data:a}),a}).catch(function(l){return r.mutationCache.config.onError==null||r.mutationCache.config.onError(l,r.state.variables,r.state.context,r),jx().error(l),Promise.resolve().then(function(){return r.options.onError==null?void 0:r.options.onError(l,r.state.variables,r.state.context)}).then(function(){return r.options.onSettled==null?void 0:r.options.onSettled(void 0,l,r.state.variables,r.state.context)}).then(function(){throw r.dispatch({type:"error",error:l}),l})})},t.executeMutation=function(){var r=this,a;return this.retryer=new xJ({fn:function(){return r.options.mutationFn?r.options.mutationFn(r.state.variables):Promise.reject("No mutationFn found")},onFail:function(){r.dispatch({type:"failed"})},onPause:function(){r.dispatch({type:"pause"})},onContinue:function(){r.dispatch({type:"continue"})},retry:(a=this.options.retry)!=null?a:0,retryDelay:this.options.retryDelay}),this.retryer.promise},t.dispatch=function(r){var a=this;this.state=Ame(this.state,r),ia.batch(function(){a.observers.forEach(function(i){i.onMutationUpdate(r)}),a.mutationCache.notify(a)})},e})();function OJ(){return{context:void 0,data:void 0,error:null,failureCount:0,isPaused:!1,status:"idle",variables:void 0}}function Ame(e,t){switch(t.type){case"failed":return vt({},e,{failureCount:e.failureCount+1});case"pause":return vt({},e,{isPaused:!0});case"continue":return vt({},e,{isPaused:!1});case"loading":return vt({},e,{context:t.context,data:void 0,error:null,isPaused:!1,status:"loading",variables:t.variables});case"success":return vt({},e,{data:t.data,error:null,status:"success",isPaused:!1});case"error":return vt({},e,{data:void 0,error:t.error,failureCount:e.failureCount+1,isPaused:!1,status:"error"});case"setState":return vt({},e,t.state);default:return e}}var Nme=(function(e){fy(t,e);function t(r){var a;return a=e.call(this)||this,a.config=r||{},a.mutations=[],a.mutationId=0,a}var n=t.prototype;return n.build=function(a,i,o){var l=new Pme({mutationCache:this,mutationId:++this.mutationId,options:a.defaultMutationOptions(i),state:o,defaultOptions:i.mutationKey?a.getMutationDefaults(i.mutationKey):void 0,meta:i.meta});return this.add(l),l},n.add=function(a){this.mutations.push(a),this.notify(a)},n.remove=function(a){this.mutations=this.mutations.filter(function(i){return i!==a}),a.cancel(),this.notify(a)},n.clear=function(){var a=this;ia.batch(function(){a.mutations.forEach(function(i){a.remove(i)})})},n.getAll=function(){return this.mutations},n.find=function(a){return typeof a.exact>"u"&&(a.exact=!0),this.mutations.find(function(i){return sB(a,i)})},n.findAll=function(a){return this.mutations.filter(function(i){return sB(a,i)})},n.notify=function(a){var i=this;ia.batch(function(){i.listeners.forEach(function(o){o(a)})})},n.onFocus=function(){this.resumePausedMutations()},n.onOnline=function(){this.resumePausedMutations()},n.resumePausedMutations=function(){var a=this.mutations.filter(function(i){return i.state.isPaused});return ia.batch(function(){return a.reduce(function(i,o){return i.then(function(){return o.continue().catch(Bi)})},Promise.resolve())})},t})(q0);function Mme(){return{onFetch:function(t){t.fetchFn=function(){var n,r,a,i,o,l,u=(n=t.fetchOptions)==null||(r=n.meta)==null?void 0:r.refetchPage,d=(a=t.fetchOptions)==null||(i=a.meta)==null?void 0:i.fetchMore,f=d==null?void 0:d.pageParam,g=(d==null?void 0:d.direction)==="forward",y=(d==null?void 0:d.direction)==="backward",h=((o=t.state.data)==null?void 0:o.pages)||[],v=((l=t.state.data)==null?void 0:l.pageParams)||[],E=CJ(),T=E==null?void 0:E.signal,C=v,k=!1,_=t.options.queryFn||function(){return Promise.reject("Missing queryFn")},A=function(me,ge,W,G){return C=G?[ge].concat(C):[].concat(C,[ge]),G?[W].concat(me):[].concat(me,[W])},P=function(me,ge,W,G){if(k)return Promise.reject("Cancelled");if(typeof W>"u"&&!ge&&me.length)return Promise.resolve(me);var q={queryKey:t.queryKey,signal:T,pageParam:W,meta:t.meta},ce=_(q),H=Promise.resolve(ce).then(function(ae){return A(me,W,ae,G)});if(Fx(ce)){var K=H;K.cancel=ce.cancel}return H},N;if(!h.length)N=P([]);else if(g){var I=typeof f<"u",L=I?f:cB(t.options,h);N=P(h,I,L)}else if(y){var j=typeof f<"u",z=j?f:Ime(t.options,h);N=P(h,j,z,!0)}else(function(){C=[];var re=typeof t.options.getNextPageParam>"u",me=u&&h[0]?u(h[0],0,h):!0;N=me?P([],re,v[0]):Promise.resolve(A([],v[0],h[0]));for(var ge=function(q){N=N.then(function(ce){var H=u&&h[q]?u(h[q],q,h):!0;if(H){var K=re?v[q]:cB(t.options,ce);return P(ce,re,K)}return Promise.resolve(A(ce,v[q],h[q]))})},W=1;W"u"&&(f.revert=!0);var g=ia.batch(function(){return o.queryCache.findAll(u).map(function(y){return y.cancel(f)})});return Promise.all(g).then(Bi).catch(Bi)},t.invalidateQueries=function(r,a,i){var o,l,u,d=this,f=nh(r,a,i),g=f[0],y=f[1],h=vt({},g,{active:(o=(l=g.refetchActive)!=null?l:g.active)!=null?o:!0,inactive:(u=g.refetchInactive)!=null?u:!1});return ia.batch(function(){return d.queryCache.findAll(g).forEach(function(v){v.invalidate()}),d.refetchQueries(h,y)})},t.refetchQueries=function(r,a,i){var o=this,l=nh(r,a,i),u=l[0],d=l[1],f=ia.batch(function(){return o.queryCache.findAll(u).map(function(y){return y.fetch(void 0,vt({},d,{meta:{refetchPage:u==null?void 0:u.refetchPage}}))})}),g=Promise.all(f).then(Bi);return d!=null&&d.throwOnError||(g=g.catch(Bi)),g},t.fetchQuery=function(r,a,i){var o=ox(r,a,i),l=this.defaultQueryOptions(o);typeof l.retry>"u"&&(l.retry=!1);var u=this.queryCache.build(this,l);return u.isStaleByTime(l.staleTime)?u.fetch(l):Promise.resolve(u.state.data)},t.prefetchQuery=function(r,a,i){return this.fetchQuery(r,a,i).then(Bi).catch(Bi)},t.fetchInfiniteQuery=function(r,a,i){var o=ox(r,a,i);return o.behavior=Mme(),this.fetchQuery(o)},t.prefetchInfiniteQuery=function(r,a,i){return this.fetchInfiniteQuery(r,a,i).then(Bi).catch(Bi)},t.cancelMutations=function(){var r=this,a=ia.batch(function(){return r.mutationCache.getAll().map(function(i){return i.cancel()})});return Promise.all(a).then(Bi).catch(Bi)},t.resumePausedMutations=function(){return this.getMutationCache().resumePausedMutations()},t.executeMutation=function(r){return this.mutationCache.build(this,r).execute()},t.getQueryCache=function(){return this.queryCache},t.getMutationCache=function(){return this.mutationCache},t.getDefaultOptions=function(){return this.defaultOptions},t.setDefaultOptions=function(r){this.defaultOptions=r},t.setQueryDefaults=function(r,a){var i=this.queryDefaults.find(function(o){return Rv(r)===Rv(o.queryKey)});i?i.defaultOptions=a:this.queryDefaults.push({queryKey:r,defaultOptions:a})},t.getQueryDefaults=function(r){var a;return r?(a=this.queryDefaults.find(function(i){return $x(r,i.queryKey)}))==null?void 0:a.defaultOptions:void 0},t.setMutationDefaults=function(r,a){var i=this.mutationDefaults.find(function(o){return Rv(r)===Rv(o.mutationKey)});i?i.defaultOptions=a:this.mutationDefaults.push({mutationKey:r,defaultOptions:a})},t.getMutationDefaults=function(r){var a;return r?(a=this.mutationDefaults.find(function(i){return $x(r,i.mutationKey)}))==null?void 0:a.defaultOptions:void 0},t.defaultQueryOptions=function(r){if(r!=null&&r._defaulted)return r;var a=vt({},this.defaultOptions.queries,this.getQueryDefaults(r==null?void 0:r.queryKey),r,{_defaulted:!0});return!a.queryHash&&a.queryKey&&(a.queryHash=HF(a.queryKey,a)),a},t.defaultQueryObserverOptions=function(r){return this.defaultQueryOptions(r)},t.defaultMutationOptions=function(r){return r!=null&&r._defaulted?r:vt({},this.defaultOptions.mutations,this.getMutationDefaults(r==null?void 0:r.mutationKey),r,{_defaulted:!0})},t.clear=function(){this.queryCache.clear(),this.mutationCache.clear()},e})(),$me=(function(e){fy(t,e);function t(r,a){var i;return i=e.call(this)||this,i.client=r,i.options=a,i.trackedProps=[],i.selectError=null,i.bindMethods(),i.setOptions(a),i}var n=t.prototype;return n.bindMethods=function(){this.remove=this.remove.bind(this),this.refetch=this.refetch.bind(this)},n.onSubscribe=function(){this.listeners.length===1&&(this.currentQuery.addObserver(this),dB(this.currentQuery,this.options)&&this.executeFetch(),this.updateTimers())},n.onUnsubscribe=function(){this.listeners.length||this.destroy()},n.shouldFetchOnReconnect=function(){return YL(this.currentQuery,this.options,this.options.refetchOnReconnect)},n.shouldFetchOnWindowFocus=function(){return YL(this.currentQuery,this.options,this.options.refetchOnWindowFocus)},n.destroy=function(){this.listeners=[],this.clearTimers(),this.currentQuery.removeObserver(this)},n.setOptions=function(a,i){var o=this.options,l=this.currentQuery;if(this.options=this.client.defaultQueryObserverOptions(a),typeof this.options.enabled<"u"&&typeof this.options.enabled!="boolean")throw new Error("Expected enabled to be a boolean");this.options.queryKey||(this.options.queryKey=o.queryKey),this.updateQuery();var u=this.hasListeners();u&&fB(this.currentQuery,l,this.options,o)&&this.executeFetch(),this.updateResult(i),u&&(this.currentQuery!==l||this.options.enabled!==o.enabled||this.options.staleTime!==o.staleTime)&&this.updateStaleTimeout();var d=this.computeRefetchInterval();u&&(this.currentQuery!==l||this.options.enabled!==o.enabled||d!==this.currentRefetchInterval)&&this.updateRefetchInterval(d)},n.getOptimisticResult=function(a){var i=this.client.defaultQueryObserverOptions(a),o=this.client.getQueryCache().build(this.client,i);return this.createResult(o,i)},n.getCurrentResult=function(){return this.currentResult},n.trackResult=function(a,i){var o=this,l={},u=function(f){o.trackedProps.includes(f)||o.trackedProps.push(f)};return Object.keys(a).forEach(function(d){Object.defineProperty(l,d,{configurable:!1,enumerable:!0,get:function(){return u(d),a[d]}})}),(i.useErrorBoundary||i.suspense)&&u("error"),l},n.getNextResult=function(a){var i=this;return new Promise(function(o,l){var u=i.subscribe(function(d){d.isFetching||(u(),d.isError&&(a!=null&&a.throwOnError)?l(d.error):o(d))})})},n.getCurrentQuery=function(){return this.currentQuery},n.remove=function(){this.client.getQueryCache().remove(this.currentQuery)},n.refetch=function(a){return this.fetch(vt({},a,{meta:{refetchPage:a==null?void 0:a.refetchPage}}))},n.fetchOptimistic=function(a){var i=this,o=this.client.defaultQueryObserverOptions(a),l=this.client.getQueryCache().build(this.client,o);return l.fetch().then(function(){return i.createResult(l,o)})},n.fetch=function(a){var i=this;return this.executeFetch(a).then(function(){return i.updateResult(),i.currentResult})},n.executeFetch=function(a){this.updateQuery();var i=this.currentQuery.fetch(this.options,a);return a!=null&&a.throwOnError||(i=i.catch(Bi)),i},n.updateStaleTimeout=function(){var a=this;if(this.clearStaleTimeout(),!(Ix||this.currentResult.isStale||!VL(this.options.staleTime))){var i=EJ(this.currentResult.dataUpdatedAt,this.options.staleTime),o=i+1;this.staleTimeoutId=setTimeout(function(){a.currentResult.isStale||a.updateResult()},o)}},n.computeRefetchInterval=function(){var a;return typeof this.options.refetchInterval=="function"?this.options.refetchInterval(this.currentResult.data,this.currentQuery):(a=this.options.refetchInterval)!=null?a:!1},n.updateRefetchInterval=function(a){var i=this;this.clearRefetchInterval(),this.currentRefetchInterval=a,!(Ix||this.options.enabled===!1||!VL(this.currentRefetchInterval)||this.currentRefetchInterval===0)&&(this.refetchIntervalId=setInterval(function(){(i.options.refetchIntervalInBackground||Y1.isFocused())&&i.executeFetch()},this.currentRefetchInterval))},n.updateTimers=function(){this.updateStaleTimeout(),this.updateRefetchInterval(this.computeRefetchInterval())},n.clearTimers=function(){this.clearStaleTimeout(),this.clearRefetchInterval()},n.clearStaleTimeout=function(){this.staleTimeoutId&&(clearTimeout(this.staleTimeoutId),this.staleTimeoutId=void 0)},n.clearRefetchInterval=function(){this.refetchIntervalId&&(clearInterval(this.refetchIntervalId),this.refetchIntervalId=void 0)},n.createResult=function(a,i){var o=this.currentQuery,l=this.options,u=this.currentResult,d=this.currentResultState,f=this.currentResultOptions,g=a!==o,y=g?a.state:this.currentQueryInitialState,h=g?this.currentResult:this.previousQueryResult,v=a.state,E=v.dataUpdatedAt,T=v.error,C=v.errorUpdatedAt,k=v.isFetching,_=v.status,A=!1,P=!1,N;if(i.optimisticResults){var I=this.hasListeners(),L=!I&&dB(a,i),j=I&&fB(a,o,i,l);(L||j)&&(k=!0,E||(_="loading"))}if(i.keepPreviousData&&!v.dataUpdateCount&&(h!=null&&h.isSuccess)&&_!=="error")N=h.data,E=h.dataUpdatedAt,_=h.status,A=!0;else if(i.select&&typeof v.data<"u")if(u&&v.data===(d==null?void 0:d.data)&&i.select===this.selectFn)N=this.selectResult;else try{this.selectFn=i.select,N=i.select(v.data),i.structuralSharing!==!1&&(N=Lx(u==null?void 0:u.data,N)),this.selectResult=N,this.selectError=null}catch(ue){jx().error(ue),this.selectError=ue}else N=v.data;if(typeof i.placeholderData<"u"&&typeof N>"u"&&(_==="loading"||_==="idle")){var z;if(u!=null&&u.isPlaceholderData&&i.placeholderData===(f==null?void 0:f.placeholderData))z=u.data;else if(z=typeof i.placeholderData=="function"?i.placeholderData():i.placeholderData,i.select&&typeof z<"u")try{z=i.select(z),i.structuralSharing!==!1&&(z=Lx(u==null?void 0:u.data,z)),this.selectError=null}catch(ue){jx().error(ue),this.selectError=ue}typeof z<"u"&&(_="success",N=z,P=!0)}this.selectError&&(T=this.selectError,N=this.selectResult,C=Date.now(),_="error");var Q={status:_,isLoading:_==="loading",isSuccess:_==="success",isError:_==="error",isIdle:_==="idle",data:N,dataUpdatedAt:E,error:T,errorUpdatedAt:C,failureCount:v.fetchFailureCount,errorUpdateCount:v.errorUpdateCount,isFetched:v.dataUpdateCount>0||v.errorUpdateCount>0,isFetchedAfterMount:v.dataUpdateCount>y.dataUpdateCount||v.errorUpdateCount>y.errorUpdateCount,isFetching:k,isRefetching:k&&_!=="loading",isLoadingError:_==="error"&&v.dataUpdatedAt===0,isPlaceholderData:P,isPreviousData:A,isRefetchError:_==="error"&&v.dataUpdatedAt!==0,isStale:VF(a,i),refetch:this.refetch,remove:this.remove};return Q},n.shouldNotifyListeners=function(a,i){if(!i)return!0;var o=this.options,l=o.notifyOnChangeProps,u=o.notifyOnChangePropsExclusions;if(!l&&!u||l==="tracked"&&!this.trackedProps.length)return!0;var d=l==="tracked"?this.trackedProps:l;return Object.keys(a).some(function(f){var g=f,y=a[g]!==i[g],h=d==null?void 0:d.some(function(E){return E===f}),v=u==null?void 0:u.some(function(E){return E===f});return y&&!v&&(!d||h)})},n.updateResult=function(a){var i=this.currentResult;if(this.currentResult=this.createResult(this.currentQuery,this.options),this.currentResultState=this.currentQuery.state,this.currentResultOptions=this.options,!Sme(this.currentResult,i)){var o={cache:!0};(a==null?void 0:a.listeners)!==!1&&this.shouldNotifyListeners(this.currentResult,i)&&(o.listeners=!0),this.notify(vt({},o,a))}},n.updateQuery=function(){var a=this.client.getQueryCache().build(this.client,this.options);if(a!==this.currentQuery){var i=this.currentQuery;this.currentQuery=a,this.currentQueryInitialState=a.state,this.previousQueryResult=this.currentResult,this.hasListeners()&&(i==null||i.removeObserver(this),a.addObserver(this))}},n.onQueryUpdate=function(a){var i={};a.type==="success"?i.onSuccess=!0:a.type==="error"&&!lx(a.error)&&(i.onError=!0),this.updateResult(i),this.hasListeners()&&this.updateTimers()},n.notify=function(a){var i=this;ia.batch(function(){a.onSuccess?(i.options.onSuccess==null||i.options.onSuccess(i.currentResult.data),i.options.onSettled==null||i.options.onSettled(i.currentResult.data,null)):a.onError&&(i.options.onError==null||i.options.onError(i.currentResult.error),i.options.onSettled==null||i.options.onSettled(void 0,i.currentResult.error)),a.listeners&&i.listeners.forEach(function(o){o(i.currentResult)}),a.cache&&i.client.getQueryCache().notify({query:i.currentQuery,type:"observerResultsUpdated"})})},t})(q0);function Lme(e,t){return t.enabled!==!1&&!e.state.dataUpdatedAt&&!(e.state.status==="error"&&t.retryOnMount===!1)}function dB(e,t){return Lme(e,t)||e.state.dataUpdatedAt>0&&YL(e,t,t.refetchOnMount)}function YL(e,t,n){if(t.enabled!==!1){var r=typeof n=="function"?n(e):n;return r==="always"||r!==!1&&VF(e,t)}return!1}function fB(e,t,n,r){return n.enabled!==!1&&(e!==t||r.enabled===!1)&&(!n.suspense||e.state.status!=="error")&&VF(e,n)}function VF(e,t){return e.isStaleByTime(t.staleTime)}var Fme=(function(e){fy(t,e);function t(r,a){var i;return i=e.call(this)||this,i.client=r,i.setOptions(a),i.bindMethods(),i.updateResult(),i}var n=t.prototype;return n.bindMethods=function(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)},n.setOptions=function(a){this.options=this.client.defaultMutationOptions(a)},n.onUnsubscribe=function(){if(!this.listeners.length){var a;(a=this.currentMutation)==null||a.removeObserver(this)}},n.onMutationUpdate=function(a){this.updateResult();var i={listeners:!0};a.type==="success"?i.onSuccess=!0:a.type==="error"&&(i.onError=!0),this.notify(i)},n.getCurrentResult=function(){return this.currentResult},n.reset=function(){this.currentMutation=void 0,this.updateResult(),this.notify({listeners:!0})},n.mutate=function(a,i){return this.mutateOptions=i,this.currentMutation&&this.currentMutation.removeObserver(this),this.currentMutation=this.client.getMutationCache().build(this.client,vt({},this.options,{variables:typeof a<"u"?a:this.options.variables})),this.currentMutation.addObserver(this),this.currentMutation.execute()},n.updateResult=function(){var a=this.currentMutation?this.currentMutation.state:OJ(),i=vt({},a,{isLoading:a.status==="loading",isSuccess:a.status==="success",isError:a.status==="error",isIdle:a.status==="idle",mutate:this.mutate,reset:this.reset});this.currentResult=i},n.notify=function(a){var i=this;ia.batch(function(){i.mutateOptions&&(a.onSuccess?(i.mutateOptions.onSuccess==null||i.mutateOptions.onSuccess(i.currentResult.data,i.currentResult.variables,i.currentResult.context),i.mutateOptions.onSettled==null||i.mutateOptions.onSettled(i.currentResult.data,null,i.currentResult.variables,i.currentResult.context)):a.onError&&(i.mutateOptions.onError==null||i.mutateOptions.onError(i.currentResult.error,i.currentResult.variables,i.currentResult.context),i.mutateOptions.onSettled==null||i.mutateOptions.onSettled(void 0,i.currentResult.error,i.currentResult.variables,i.currentResult.context))),a.listeners&&i.listeners.forEach(function(o){o(i.currentResult)})})},t})(q0),jme=bse.unstable_batchedUpdates;ia.setBatchNotifyFunction(jme);var Ume=console;_me(Ume);var pB=ze.createContext(void 0),RJ=ze.createContext(!1);function PJ(e){return e&&typeof window<"u"?(window.ReactQueryClientContext||(window.ReactQueryClientContext=pB),window.ReactQueryClientContext):pB}var Gs=function(){var t=ze.useContext(PJ(ze.useContext(RJ)));if(!t)throw new Error("No QueryClient set, use QueryClientProvider to set one");return t},Bme=function(t){var n=t.client,r=t.contextSharing,a=r===void 0?!1:r,i=t.children;ze.useEffect(function(){return n.mount(),function(){n.unmount()}},[n]);var o=PJ(a);return ze.createElement(RJ.Provider,{value:a},ze.createElement(o.Provider,{value:n},i))};function Wme(){var e=!1;return{clearReset:function(){e=!1},reset:function(){e=!0},isReset:function(){return e}}}var zme=ze.createContext(Wme()),qme=function(){return ze.useContext(zme)};function AJ(e,t,n){return typeof t=="function"?t.apply(void 0,n):typeof t=="boolean"?t:!!e}function un(e,t,n){var r=ze.useRef(!1),a=ze.useState(0),i=a[1],o=yme(e,t),l=Gs(),u=ze.useRef();u.current?u.current.setOptions(o):u.current=new Fme(l,o);var d=u.current.getCurrentResult();ze.useEffect(function(){r.current=!0;var g=u.current.subscribe(ia.batchCalls(function(){r.current&&i(function(y){return y+1})}));return function(){r.current=!1,g()}},[]);var f=ze.useCallback(function(g,y){u.current.mutate(g,y).catch(Bi)},[]);if(d.error&&AJ(void 0,u.current.options.useErrorBoundary,[d.error]))throw d.error;return vt({},d,{mutate:f,mutateAsync:d.mutate})}function Hme(e,t){var n=ze.useRef(!1),r=ze.useState(0),a=r[1],i=Gs(),o=qme(),l=i.defaultQueryObserverOptions(e);l.optimisticResults=!0,l.onError&&(l.onError=ia.batchCalls(l.onError)),l.onSuccess&&(l.onSuccess=ia.batchCalls(l.onSuccess)),l.onSettled&&(l.onSettled=ia.batchCalls(l.onSettled)),l.suspense&&(typeof l.staleTime!="number"&&(l.staleTime=1e3),l.cacheTime===0&&(l.cacheTime=1)),(l.suspense||l.useErrorBoundary)&&(o.isReset()||(l.retryOnMount=!1));var u=ze.useState(function(){return new t(i,l)}),d=u[0],f=d.getOptimisticResult(l);if(ze.useEffect(function(){n.current=!0,o.clearReset();var g=d.subscribe(ia.batchCalls(function(){n.current&&a(function(y){return y+1})}));return d.updateResult(),function(){n.current=!1,g()}},[o,d]),ze.useEffect(function(){d.setOptions(l,{listeners:!1})},[l,d]),l.suspense&&f.isLoading)throw d.fetchOptimistic(l).then(function(g){var y=g.data;l.onSuccess==null||l.onSuccess(y),l.onSettled==null||l.onSettled(y,null)}).catch(function(g){o.clearReset(),l.onError==null||l.onError(g),l.onSettled==null||l.onSettled(void 0,g)});if(f.isError&&!o.isReset()&&!f.isFetching&&AJ(l.suspense,l.useErrorBoundary,[f.error,d.getCurrentQuery()]))throw f.error;return l.notifyOnChangeProps==="tracked"&&(f=d.trackResult(f,l)),f}function jn(e,t,n){var r=ox(e,t,n);return Hme(r,$me)}function Vme({queryOptions:e,execFnOverride:t,query:n,queryClient:r,unauthorized:a,onMessage:i,presistResult:o}){var A;const{options:l}=R.useContext(it),u=l.prefix,d=(A=l.headers)==null?void 0:A.authorization,f=l.headers["workspace-id"],g=R.useRef(),[y,h]=R.useState([]),v=P=>{h(N=>[...N,P])},[E,T]=R.useState(!1),C=()=>{var P,N;((P=g.current)==null?void 0:P.readyState)===1&&((N=g.current)==null||N.close()),T(!1)},k=P=>{var N;(N=g.current)==null||N.send(P)},_=(P,N=null)=>{var Q,ue;((Q=g.current)==null?void 0:Q.readyState)===1&&((ue=g.current)==null||ue.close()),h([]);const I=u==null?void 0:u.replace("https","wss").replace("http","ws"),L="/reactive-search".substr(1);let j=`${I}${L}?acceptLanguage=${l.headers["accept-language"]}&token=${d}&workspaceId=${f}&${new URLSearchParams(P)}&${new URLSearchParams(n||{})}`;j=j.replace(":uniqueId",n==null?void 0:n.uniqueId);let z=new WebSocket(j);g.current=z,z.onopen=function(){T(!0)},z.onmessage=function(re){if(N!==null)return N(re);if(re.data instanceof Blob||re.data instanceof ArrayBuffer)i==null||i(re.data);else try{const me=JSON.parse(re.data);me&&(i&&i(me),o!==!1&&v(me))}catch{}}};return R.useEffect(()=>()=>{C()},[]),{operate:_,data:y,close:C,connected:E,write:k}}function Gme(){const e=At(),{withDebounce:t}=SJ(),{setResult:n,setPhrase:r,phrase:a,result:i,reset:o}=R.useContext(U_),{operate:l,data:u}=Vme({}),d=xr(),f=R.useRef(),[g,y]=R.useState(""),{locale:h}=sr();R.useEffect(()=>{a||y("")},[a]),R.useEffect(()=>{n(u)},[u]);const v=T=>{t(()=>{r(T),l({searchPhrase:encodeURIComponent(T)})},500)};zF("s",()=>{var T;(T=f.current)==null||T.focus()});const{isMobileView:E}=vh();return E?null:w.jsx("form",{className:"navbar-search-box",onSubmit:T=>{T.preventDefault(),i.length>0&&i[0].actionFn==="navigate"&&i[0].uiLocation&&(d.push(`/${h}${i[0].uiLocation}`),o())},children:w.jsx("input",{ref:T=>{f.current=T},value:g,placeholder:e.reactiveSearch.placeholder,onInput:T=>{y(T.target.value),v(T.target.value)},className:"form-control"})})}const Yme=({children:e,close:t,visible:n,params:r})=>w.jsx("div",{className:sa("modal d-block with-fade-in modal-overlay",n?"visible":"invisible"),children:w.jsx("div",{className:"modal-dialog",children:w.jsxs("div",{className:"modal-content",children:[w.jsxs("div",{className:"modal-header",children:[w.jsx("h5",{className:"modal-title",children:r==null?void 0:r.title}),w.jsx("button",{type:"button",id:"cls",className:"btn-close",onClick:t,"aria-label":"Close"})]}),e]})})});function KL(){return KL=Object.assign||function(e){for(var t=1;tw.jsx(Xme,{open:n,direction:(e==null?void 0:e.direction)||"right",zIndex:1e4,onClose:r,duration:e==null?void 0:e.speed,size:e==null?void 0:e.size,children:t}),NJ=R.createContext(null);let Jme=0;const Zme=({children:e,BaseModalWrapper:t=Yme,OverlayWrapper:n=Qme})=>{const[r,a]=R.useState([]),i=R.useRef(r);i.current=r,R.useEffect(()=>{const f=g=>{var y;if(g.key==="Escape"&&r.length>0){const h=r[r.length-1];(y=h==null?void 0:h.close)==null||y.call(h)}};return window.addEventListener("keydown",f),()=>window.removeEventListener("keydown",f)},[r]);const o=(f,g)=>{const y=Jme++,h=ze.createRef();let v,E;const T=new Promise((A,P)=>{v=A,E=P}),C=()=>{a(A=>A.map(P=>P.id===y?{...P,visible:!1}:P)),setTimeout(()=>{a(A=>A.filter(P=>P.id!==y))},300)},k={id:y,ref:h,Component:f,type:(g==null?void 0:g.type)||"modal",params:g==null?void 0:g.params,data:{},visible:!1,onBeforeClose:void 0,resolve:A=>{setTimeout(()=>v({type:"resolved",data:A}),50),C()},close:async()=>{var N;const A=i.current.find(I=>I.id===y);A!=null&&A.onBeforeClose&&!await A.onBeforeClose()||!await(((N=k.onBeforeClose)==null?void 0:N.call(k))??!0)||(setTimeout(()=>v({data:null,type:"closed"}),50),C())},reject:A=>{setTimeout(()=>E({data:A,type:"rejected"}),50),C()}};a(A=>[...A,k]),setTimeout(()=>{a(A=>A.map(P=>P.id===y?{...P,visible:!0}:P))},50);const _=A=>{a(P=>P.map(N=>N.id===y?{...N,data:{...N.data,...A}}:N))};return{id:y,ref:h,promise:T,close:k.close,resolve:k.resolve,reject:k.reject,updateData:_}},l=(f,g)=>o(f,{type:"modal",params:g}),u=(f,g)=>o(f,{type:"drawer",params:g}),d=()=>{i.current.forEach(f=>{var g;return(g=f.reject)==null?void 0:g.call(f,"dismiss-all")}),a([])};return w.jsxs(NJ.Provider,{value:{openOverlay:o,openDrawer:u,openModal:l,dismissAll:d},children:[e,r.map(({id:f,type:g,Component:y,resolve:h,reject:v,close:E,params:T,visible:C,data:k})=>{const _=g==="drawer"?n:t;return w.jsx(_,{visible:C,close:E,reject:v,resolve:h,params:T,children:w.jsx(y,{resolve:h,reject:v,close:E,data:k,setOnBeforeClose:A=>{a(P=>P.map(N=>N.id===f?{...N,onBeforeClose:A}:N))}})},f)})]})},GF=()=>{const e=R.useContext(NJ);if(!e)throw new Error("useOverlay must be inside OverlayProvider");return e};var bP,hB;function H0(){return hB||(hB=1,bP=TypeError),bP}const ege={},tge=Object.freeze(Object.defineProperty({__proto__:null,default:ege},Symbol.toStringTag,{value:"Module"})),nge=jt(tge);var wP,mB;function B_(){if(mB)return wP;mB=1;var e=typeof Map=="function"&&Map.prototype,t=Object.getOwnPropertyDescriptor&&e?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,n=e&&t&&typeof t.get=="function"?t.get:null,r=e&&Map.prototype.forEach,a=typeof Set=="function"&&Set.prototype,i=Object.getOwnPropertyDescriptor&&a?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,o=a&&i&&typeof i.get=="function"?i.get:null,l=a&&Set.prototype.forEach,u=typeof WeakMap=="function"&&WeakMap.prototype,d=u?WeakMap.prototype.has:null,f=typeof WeakSet=="function"&&WeakSet.prototype,g=f?WeakSet.prototype.has:null,y=typeof WeakRef=="function"&&WeakRef.prototype,h=y?WeakRef.prototype.deref:null,v=Boolean.prototype.valueOf,E=Object.prototype.toString,T=Function.prototype.toString,C=String.prototype.match,k=String.prototype.slice,_=String.prototype.replace,A=String.prototype.toUpperCase,P=String.prototype.toLowerCase,N=RegExp.prototype.test,I=Array.prototype.concat,L=Array.prototype.join,j=Array.prototype.slice,z=Math.floor,Q=typeof BigInt=="function"?BigInt.prototype.valueOf:null,ue=Object.getOwnPropertySymbols,re=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Symbol.prototype.toString:null,me=typeof Symbol=="function"&&typeof Symbol.iterator=="object",ge=typeof Symbol=="function"&&Symbol.toStringTag&&(typeof Symbol.toStringTag===me||!0)?Symbol.toStringTag:null,W=Object.prototype.propertyIsEnumerable,G=(typeof Reflect=="function"?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(be){return be.__proto__}:null);function q(be,Ee){if(be===1/0||be===-1/0||be!==be||be&&be>-1e3&&be<1e3||N.call(/e/,Ee))return Ee;var gt=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if(typeof be=="number"){var Lt=be<0?-z(-be):z(be);if(Lt!==be){var _t=String(Lt),Ut=k.call(Ee,_t.length+1);return _.call(_t,gt,"$&_")+"."+_.call(_.call(Ut,/([0-9]{3})/g,"$&_"),/_$/,"")}}return _.call(Ee,gt,"$&_")}var ce=nge,H=ce.custom,K=rt(H)?H:null,ae={__proto__:null,double:'"',single:"'"},J={__proto__:null,double:/(["\\])/g,single:/(['\\])/g};wP=function be(Ee,gt,Lt,_t){var Ut=gt||{};if(xt(Ut,"quoteStyle")&&!xt(ae,Ut.quoteStyle))throw new TypeError('option "quoteStyle" must be "single" or "double"');if(xt(Ut,"maxStringLength")&&(typeof Ut.maxStringLength=="number"?Ut.maxStringLength<0&&Ut.maxStringLength!==1/0:Ut.maxStringLength!==null))throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');var _n=xt(Ut,"customInspect")?Ut.customInspect:!0;if(typeof _n!="boolean"&&_n!=="symbol")throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");if(xt(Ut,"indent")&&Ut.indent!==null&&Ut.indent!==" "&&!(parseInt(Ut.indent,10)===Ut.indent&&Ut.indent>0))throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`');if(xt(Ut,"numericSeparator")&&typeof Ut.numericSeparator!="boolean")throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');var gn=Ut.numericSeparator;if(typeof Ee>"u")return"undefined";if(Ee===null)return"null";if(typeof Ee=="boolean")return Ee?"true":"false";if(typeof Ee=="string")return U(Ee,Ut);if(typeof Ee=="number"){if(Ee===0)return 1/0/Ee>0?"0":"-0";var ln=String(Ee);return gn?q(Ee,ln):ln}if(typeof Ee=="bigint"){var Bn=String(Ee)+"n";return gn?q(Ee,Bn):Bn}var la=typeof Ut.depth>"u"?5:Ut.depth;if(typeof Lt>"u"&&(Lt=0),Lt>=la&&la>0&&typeof Ee=="object")return ke(Ee)?"[Array]":"[Object]";var Ja=We(Ut,Lt);if(typeof _t>"u")_t=[];else if(qt(_t,Ee)>=0)return"[Circular]";function ga(yn,an,Dn){if(an&&(_t=j.call(_t),_t.push(an)),Dn){var En={depth:Ut.depth};return xt(Ut,"quoteStyle")&&(En.quoteStyle=Ut.quoteStyle),be(yn,En,Lt+1,_t)}return be(yn,Ut,Lt+1,_t)}if(typeof Ee=="function"&&!xe(Ee)){var vn=cn(Ee),Ra=Mt(Ee,ga);return"[Function"+(vn?": "+vn:" (anonymous)")+"]"+(Ra.length>0?" { "+L.call(Ra,", ")+" }":"")}if(rt(Ee)){var Ko=me?_.call(String(Ee),/^(Symbol\(.*\))_[^)]*$/,"$1"):re.call(Ee);return typeof Ee=="object"&&!me?F(Ko):Ko}if(Nt(Ee)){for(var Pa="<"+P.call(String(Ee.nodeName)),Aa=Ee.attributes||[],Xo=0;Xo",Pa}if(ke(Ee)){if(Ee.length===0)return"[]";var we=Mt(Ee,ga);return Ja&&!Fe(we)?"["+Et(we,Ja)+"]":"[ "+L.call(we,", ")+" ]"}if(Ie(Ee)){var ve=Mt(Ee,ga);return!("cause"in Error.prototype)&&"cause"in Ee&&!W.call(Ee,"cause")?"{ ["+String(Ee)+"] "+L.call(I.call("[cause]: "+ga(Ee.cause),ve),", ")+" }":ve.length===0?"["+String(Ee)+"]":"{ ["+String(Ee)+"] "+L.call(ve,", ")+" }"}if(typeof Ee=="object"&&_n){if(K&&typeof Ee[K]=="function"&&ce)return ce(Ee,{depth:la-Lt});if(_n!=="symbol"&&typeof Ee.inspect=="function")return Ee.inspect()}if(Wt(Ee)){var $e=[];return r&&r.call(Ee,function(yn,an){$e.push(ga(an,Ee,!0)+" => "+ga(yn,Ee))}),Te("Map",n.call(Ee),$e,Ja)}if(ft(Ee)){var ye=[];return l&&l.call(Ee,function(yn){ye.push(ga(yn,Ee))}),Te("Set",o.call(Ee),ye,Ja)}if(Oe(Ee))return ie("WeakMap");if(ut(Ee))return ie("WeakSet");if(dt(Ee))return ie("WeakRef");if(tt(Ee))return F(ga(Number(Ee)));if(St(Ee))return F(ga(Q.call(Ee)));if(Ge(Ee))return F(v.call(Ee));if(qe(Ee))return F(ga(String(Ee)));if(typeof window<"u"&&Ee===window)return"{ [object Window] }";if(typeof globalThis<"u"&&Ee===globalThis||typeof Pl<"u"&&Ee===Pl)return"{ [object globalThis] }";if(!fe(Ee)&&!xe(Ee)){var Se=Mt(Ee,ga),ne=G?G(Ee)===Object.prototype:Ee instanceof Object||Ee.constructor===Object,Me=Ee instanceof Object?"":"null prototype",Qe=!ne&&ge&&Object(Ee)===Ee&&ge in Ee?k.call(Rt(Ee),8,-1):Me?"Object":"",ot=ne||typeof Ee.constructor!="function"?"":Ee.constructor.name?Ee.constructor.name+" ":"",Bt=ot+(Qe||Me?"["+L.call(I.call([],Qe||[],Me||[]),": ")+"] ":"");return Se.length===0?Bt+"{}":Ja?Bt+"{"+Et(Se,Ja)+"}":Bt+"{ "+L.call(Se,", ")+" }"}return String(Ee)};function ee(be,Ee,gt){var Lt=gt.quoteStyle||Ee,_t=ae[Lt];return _t+be+_t}function Z(be){return _.call(String(be),/"/g,""")}function le(be){return!ge||!(typeof be=="object"&&(ge in be||typeof be[ge]<"u"))}function ke(be){return Rt(be)==="[object Array]"&&le(be)}function fe(be){return Rt(be)==="[object Date]"&&le(be)}function xe(be){return Rt(be)==="[object RegExp]"&&le(be)}function Ie(be){return Rt(be)==="[object Error]"&&le(be)}function qe(be){return Rt(be)==="[object String]"&&le(be)}function tt(be){return Rt(be)==="[object Number]"&&le(be)}function Ge(be){return Rt(be)==="[object Boolean]"&&le(be)}function rt(be){if(me)return be&&typeof be=="object"&&be instanceof Symbol;if(typeof be=="symbol")return!0;if(!be||typeof be!="object"||!re)return!1;try{return re.call(be),!0}catch{}return!1}function St(be){if(!be||typeof be!="object"||!Q)return!1;try{return Q.call(be),!0}catch{}return!1}var kt=Object.prototype.hasOwnProperty||function(be){return be in this};function xt(be,Ee){return kt.call(be,Ee)}function Rt(be){return E.call(be)}function cn(be){if(be.name)return be.name;var Ee=C.call(T.call(be),/^function\s*([\w$]+)/);return Ee?Ee[1]:null}function qt(be,Ee){if(be.indexOf)return be.indexOf(Ee);for(var gt=0,Lt=be.length;gtEe.maxStringLength){var gt=be.length-Ee.maxStringLength,Lt="... "+gt+" more character"+(gt>1?"s":"");return U(k.call(be,0,Ee.maxStringLength),Ee)+Lt}var _t=J[Ee.quoteStyle||"single"];_t.lastIndex=0;var Ut=_.call(_.call(be,_t,"\\$1"),/[\x00-\x1f]/g,D);return ee(Ut,"single",Ee)}function D(be){var Ee=be.charCodeAt(0),gt={8:"b",9:"t",10:"n",12:"f",13:"r"}[Ee];return gt?"\\"+gt:"\\x"+(Ee<16?"0":"")+A.call(Ee.toString(16))}function F(be){return"Object("+be+")"}function ie(be){return be+" { ? }"}function Te(be,Ee,gt,Lt){var _t=Lt?Et(gt,Lt):L.call(gt,", ");return be+" ("+Ee+") {"+_t+"}"}function Fe(be){for(var Ee=0;Ee=0)return!1;return!0}function We(be,Ee){var gt;if(be.indent===" ")gt=" ";else if(typeof be.indent=="number"&&be.indent>0)gt=L.call(Array(be.indent+1)," ");else return null;return{base:gt,prev:L.call(Array(Ee+1),gt)}}function Et(be,Ee){if(be.length===0)return"";var gt=` `+Ee.prev+Ee.base;return gt+L.call(be,","+gt)+` -`+Ee.prev}function Mt(be,Ee){var gt=ke(be),Lt=[];if(gt){Lt.length=be.length;for(var _t=0;_t"u"||!I?e:I(Uint8Array),ge={__proto__:null,"%AggregateError%":typeof AggregateError>"u"?e:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?e:ArrayBuffer,"%ArrayIteratorPrototype%":N&&I?I([][Symbol.iterator]()):e,"%AsyncFromSyncIteratorPrototype%":e,"%AsyncFunction%":le,"%AsyncGenerator%":le,"%AsyncGeneratorFunction%":le,"%AsyncIteratorPrototype%":le,"%Atomics%":typeof Atomics>"u"?e:Atomics,"%BigInt%":typeof BigInt>"u"?e:BigInt,"%BigInt64Array%":typeof BigInt64Array>"u"?e:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array>"u"?e:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView>"u"?e:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":n,"%eval%":eval,"%EvalError%":r,"%Float16Array%":typeof Float16Array>"u"?e:Float16Array,"%Float32Array%":typeof Float32Array>"u"?e:Float32Array,"%Float64Array%":typeof Float64Array>"u"?e:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry>"u"?e:FinalizationRegistry,"%Function%":T,"%GeneratorFunction%":le,"%Int8Array%":typeof Int8Array>"u"?e:Int8Array,"%Int16Array%":typeof Int16Array>"u"?e:Int16Array,"%Int32Array%":typeof Int32Array>"u"?e:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":N&&I?I(I([][Symbol.iterator]())):e,"%JSON%":typeof JSON=="object"?JSON:e,"%Map%":typeof Map>"u"?e:Map,"%MapIteratorPrototype%":typeof Map>"u"||!N||!I?e:I(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":t,"%Object.getOwnPropertyDescriptor%":k,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>"u"?e:Promise,"%Proxy%":typeof Proxy>"u"?e:Proxy,"%RangeError%":a,"%ReferenceError%":i,"%Reflect%":typeof Reflect>"u"?e:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>"u"?e:Set,"%SetIteratorPrototype%":typeof Set>"u"||!N||!I?e:I(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>"u"?e:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":N&&I?I(""[Symbol.iterator]()):e,"%Symbol%":N?Symbol:e,"%SyntaxError%":o,"%ThrowTypeError%":P,"%TypedArray%":re,"%TypeError%":l,"%Uint8Array%":typeof Uint8Array>"u"?e:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray>"u"?e:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array>"u"?e:Uint16Array,"%Uint32Array%":typeof Uint32Array>"u"?e:Uint32Array,"%URIError%":u,"%WeakMap%":typeof WeakMap>"u"?e:WeakMap,"%WeakRef%":typeof WeakRef>"u"?e:WeakRef,"%WeakSet%":typeof WeakSet>"u"?e:WeakSet,"%Function.prototype.call%":Q,"%Function.prototype.apply%":z,"%Object.defineProperty%":_,"%Object.getPrototypeOf%":L,"%Math.abs%":d,"%Math.floor%":f,"%Math.max%":g,"%Math.min%":y,"%Math.pow%":h,"%Math.round%":v,"%Math.sign%":E,"%Reflect.getPrototypeOf%":j};if(I)try{null.error}catch(xe){var me=I(I(xe));ge["%Error.prototype%"]=me}var W=function xe(Ie){var qe;if(Ie==="%AsyncFunction%")qe=C("async function () {}");else if(Ie==="%GeneratorFunction%")qe=C("function* () {}");else if(Ie==="%AsyncGeneratorFunction%")qe=C("async function* () {}");else if(Ie==="%AsyncGenerator%"){var tt=xe("%AsyncGeneratorFunction%");tt&&(qe=tt.prototype)}else if(Ie==="%AsyncIteratorPrototype%"){var Ge=xe("%AsyncGenerator%");Ge&&I&&(qe=I(Ge.prototype))}return ge[Ie]=qe,qe},G={__proto__:null,"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},q=v_(),ce=ege(),H=q.call(Q,Array.prototype.concat),Y=q.call(z,Array.prototype.splice),ie=q.call(Q,String.prototype.replace),J=q.call(Q,String.prototype.slice),ee=q.call(Q,RegExp.prototype.exec),Z=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,ue=/\\(\\)?/g,ke=function(Ie){var qe=J(Ie,0,1),tt=J(Ie,-1);if(qe==="%"&&tt!=="%")throw new o("invalid intrinsic syntax, expected closing `%`");if(tt==="%"&&qe!=="%")throw new o("invalid intrinsic syntax, expected opening `%`");var Ge=[];return ie(Ie,Z,function(at,Et,kt,xt){Ge[Ge.length]=kt?ie(xt,ue,"$1"):Et||at}),Ge},fe=function(Ie,qe){var tt=Ie,Ge;if(ce(G,tt)&&(Ge=G[tt],tt="%"+Ge[0]+"%"),ce(ge,tt)){var at=ge[tt];if(at===le&&(at=W(tt)),typeof at>"u"&&!qe)throw new l("intrinsic "+Ie+" exists, but is not available. Please file an issue!");return{alias:Ge,name:tt,value:at}}throw new o("intrinsic "+Ie+" does not exist!")};return OP=function(Ie,qe){if(typeof Ie!="string"||Ie.length===0)throw new l("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof qe!="boolean")throw new l('"allowMissing" argument must be a boolean');if(ee(/^%?[^%]*%?$/,Ie)===null)throw new o("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var tt=ke(Ie),Ge=tt.length>0?tt[0]:"",at=fe("%"+Ge+"%",qe),Et=at.name,kt=at.value,xt=!1,Rt=at.alias;Rt&&(Ge=Rt[0],Y(tt,H([0,1],Rt)));for(var cn=1,qt=!0;cn=tt.length){var ft=k(kt,Wt);qt=!!ft,qt&&"get"in ft&&!("originalValue"in ft.get)?kt=ft.get:kt=kt[Wt]}else qt=ce(kt,Wt),kt=kt[Wt];qt&&!xt&&(ge[Et]=kt)}}return kt},OP}var RP,EB;function dJ(){if(EB)return RP;EB=1;var e=SF(),t=cJ(),n=t([e("%String.prototype.indexOf%")]);return RP=function(a,i){var o=e(a,!!i);return typeof o=="function"&&n(a,".prototype.")>-1?t([o]):o},RP}var PP,TB;function fJ(){if(TB)return PP;TB=1;var e=SF(),t=dJ(),n=g_(),r=T0(),a=e("%Map%",!0),i=t("Map.prototype.get",!0),o=t("Map.prototype.set",!0),l=t("Map.prototype.has",!0),u=t("Map.prototype.delete",!0),d=t("Map.prototype.size",!0);return PP=!!a&&function(){var g,y={assert:function(h){if(!y.has(h))throw new r("Side channel does not contain "+n(h))},delete:function(h){if(g){var v=u(g,h);return d(g)===0&&(g=void 0),v}return!1},get:function(h){if(g)return i(g,h)},has:function(h){return g?l(g,h):!1},set:function(h,v){g||(g=new a),o(g,h,v)}};return y},PP}var AP,CB;function tge(){if(CB)return AP;CB=1;var e=SF(),t=dJ(),n=g_(),r=fJ(),a=T0(),i=e("%WeakMap%",!0),o=t("WeakMap.prototype.get",!0),l=t("WeakMap.prototype.set",!0),u=t("WeakMap.prototype.has",!0),d=t("WeakMap.prototype.delete",!0);return AP=i?function(){var g,y,h={assert:function(v){if(!h.has(v))throw new a("Side channel does not contain "+n(v))},delete:function(v){if(i&&v&&(typeof v=="object"||typeof v=="function")){if(g)return d(g,v)}else if(r&&y)return y.delete(v);return!1},get:function(v){return i&&v&&(typeof v=="object"||typeof v=="function")&&g?o(g,v):y&&y.get(v)},has:function(v){return i&&v&&(typeof v=="object"||typeof v=="function")&&g?u(g,v):!!y&&y.has(v)},set:function(v,E){i&&v&&(typeof v=="object"||typeof v=="function")?(g||(g=new i),l(g,v,E)):r&&(y||(y=r()),y.set(v,E))}};return h}:r,AP}var NP,kB;function nge(){if(kB)return NP;kB=1;var e=T0(),t=g_(),n=Pme(),r=fJ(),a=tge(),i=a||r||n;return NP=function(){var l,u={assert:function(d){if(!u.has(d))throw new e("Side channel does not contain "+t(d))},delete:function(d){return!!l&&l.delete(d)},get:function(d){return l&&l.get(d)},has:function(d){return!!l&&l.has(d)},set:function(d,f){l||(l=i()),l.set(d,f)}};return u},NP}var MP,xB;function EF(){if(xB)return MP;xB=1;var e=String.prototype.replace,t=/%20/g,n={RFC1738:"RFC1738",RFC3986:"RFC3986"};return MP={default:n.RFC3986,formatters:{RFC1738:function(r){return e.call(r,t,"+")},RFC3986:function(r){return String(r)}},RFC1738:n.RFC1738,RFC3986:n.RFC3986},MP}var IP,_B;function pJ(){if(_B)return IP;_B=1;var e=EF(),t=Object.prototype.hasOwnProperty,n=Array.isArray,r=(function(){for(var T=[],C=0;C<256;++C)T.push("%"+((C<16?"0":"")+C.toString(16)).toUpperCase());return T})(),a=function(C){for(;C.length>1;){var k=C.pop(),_=k.obj[k.prop];if(n(_)){for(var A=[],P=0;P<_.length;++P)typeof _[P]<"u"&&A.push(_[P]);k.obj[k.prop]=A}}},i=function(C,k){for(var _=k&&k.plainObjects?{__proto__:null}:{},A=0;A=d?N.slice(L,L+d):N,z=[],Q=0;Q=48&&le<=57||le>=65&&le<=90||le>=97&&le<=122||P===e.RFC1738&&(le===40||le===41)){z[z.length]=j.charAt(Q);continue}if(le<128){z[z.length]=r[le];continue}if(le<2048){z[z.length]=r[192|le>>6]+r[128|le&63];continue}if(le<55296||le>=57344){z[z.length]=r[224|le>>12]+r[128|le>>6&63]+r[128|le&63];continue}Q+=1,le=65536+((le&1023)<<10|j.charCodeAt(Q)&1023),z[z.length]=r[240|le>>18]+r[128|le>>12&63]+r[128|le>>6&63]+r[128|le&63]}I+=z.join("")}return I},g=function(C){for(var k=[{obj:{o:C},prop:"o"}],_=[],A=0;A"u"&&(H=0)}if(typeof j=="function"?q=j(C,q):q instanceof Date?q=le(q):k==="comma"&&i(q)&&(q=t.maybeMap(q,function(Et){return Et instanceof Date?le(Et):Et})),q===null){if(P)return L&&!me?L(C,f.encoder,W,"key",re):C;q=""}if(g(q)||t.isBuffer(q)){if(L){var J=me?C:L(C,f.encoder,W,"key",re);return[ge(J)+"="+ge(L(q,f.encoder,W,"value",re))]}return[ge(C)+"="+ge(String(q))]}var ee=[];if(typeof q>"u")return ee;var Z;if(k==="comma"&&i(q))me&&L&&(q=t.maybeMap(q,L)),Z=[{value:q.length>0?q.join(",")||null:void 0}];else if(i(j))Z=j;else{var ue=Object.keys(q);Z=z?ue.sort(z):ue}var ke=I?String(C).replace(/\./g,"%2E"):String(C),fe=_&&i(q)&&q.length===1?ke+"[]":ke;if(A&&i(q)&&q.length===0)return fe+"[]";for(var xe=0;xe"u"?T.encodeDotInKeys===!0?!0:f.allowDots:!!T.allowDots;return{addQueryPrefix:typeof T.addQueryPrefix=="boolean"?T.addQueryPrefix:f.addQueryPrefix,allowDots:N,allowEmptyArrays:typeof T.allowEmptyArrays=="boolean"?!!T.allowEmptyArrays:f.allowEmptyArrays,arrayFormat:P,charset:C,charsetSentinel:typeof T.charsetSentinel=="boolean"?T.charsetSentinel:f.charsetSentinel,commaRoundTrip:!!T.commaRoundTrip,delimiter:typeof T.delimiter>"u"?f.delimiter:T.delimiter,encode:typeof T.encode=="boolean"?T.encode:f.encode,encodeDotInKeys:typeof T.encodeDotInKeys=="boolean"?T.encodeDotInKeys:f.encodeDotInKeys,encoder:typeof T.encoder=="function"?T.encoder:f.encoder,encodeValuesOnly:typeof T.encodeValuesOnly=="boolean"?T.encodeValuesOnly:f.encodeValuesOnly,filter:A,format:k,formatter:_,serializeDate:typeof T.serializeDate=="function"?T.serializeDate:f.serializeDate,skipNulls:typeof T.skipNulls=="boolean"?T.skipNulls:f.skipNulls,sort:typeof T.sort=="function"?T.sort:null,strictNullHandling:typeof T.strictNullHandling=="boolean"?T.strictNullHandling:f.strictNullHandling}};return DP=function(E,T){var C=E,k=v(T),_,A;typeof k.filter=="function"?(A=k.filter,C=A("",C)):i(k.filter)&&(A=k.filter,_=A);var P=[];if(typeof C!="object"||C===null)return"";var N=a[k.arrayFormat],I=N==="comma"&&k.commaRoundTrip;_||(_=Object.keys(C)),k.sort&&_.sort(k.sort);for(var L=e(),j=0;j<_.length;++j){var z=_[j],Q=C[z];k.skipNulls&&Q===null||l(P,h(Q,z,N,I,k.allowEmptyArrays,k.strictNullHandling,k.skipNulls,k.encodeDotInKeys,k.encode?k.encoder:null,k.filter,k.sort,k.allowDots,k.serializeDate,k.format,k.formatter,k.encodeValuesOnly,k.charset,L))}var le=P.join(k.delimiter),re=k.addQueryPrefix===!0?"?":"";return k.charsetSentinel&&(k.charset==="iso-8859-1"?re+="utf8=%26%2310003%3B&":re+="utf8=%E2%9C%93&"),le.length>0?re+le:""},DP}var $P,RB;function age(){if(RB)return $P;RB=1;var e=pJ(),t=Object.prototype.hasOwnProperty,n=Array.isArray,r={allowDots:!1,allowEmptyArrays:!1,allowPrototypes:!1,allowSparse:!1,arrayLimit:20,charset:"utf-8",charsetSentinel:!1,comma:!1,decodeDotInKeys:!1,decoder:e.decode,delimiter:"&",depth:5,duplicates:"combine",ignoreQueryPrefix:!1,interpretNumericEntities:!1,parameterLimit:1e3,parseArrays:!0,plainObjects:!1,strictDepth:!1,strictNullHandling:!1,throwOnLimitExceeded:!1},a=function(y){return y.replace(/&#(\d+);/g,function(h,v){return String.fromCharCode(parseInt(v,10))})},i=function(y,h,v){if(y&&typeof y=="string"&&h.comma&&y.indexOf(",")>-1)return y.split(",");if(h.throwOnLimitExceeded&&v>=h.arrayLimit)throw new RangeError("Array limit exceeded. Only "+h.arrayLimit+" element"+(h.arrayLimit===1?"":"s")+" allowed in an array.");return y},o="utf8=%26%2310003%3B",l="utf8=%E2%9C%93",u=function(h,v){var E={__proto__:null},T=v.ignoreQueryPrefix?h.replace(/^\?/,""):h;T=T.replace(/%5B/gi,"[").replace(/%5D/gi,"]");var C=v.parameterLimit===1/0?void 0:v.parameterLimit,k=T.split(v.delimiter,v.throwOnLimitExceeded?C+1:C);if(v.throwOnLimitExceeded&&k.length>C)throw new RangeError("Parameter limit exceeded. Only "+C+" parameter"+(C===1?"":"s")+" allowed.");var _=-1,A,P=v.charset;if(v.charsetSentinel)for(A=0;A-1&&(z=n(z)?[z]:z);var Q=t.call(E,j);Q&&v.duplicates==="combine"?E[j]=e.combine(E[j],z):(!Q||v.duplicates==="last")&&(E[j]=z)}return E},d=function(y,h,v,E){var T=0;if(y.length>0&&y[y.length-1]==="[]"){var C=y.slice(0,-1).join("");T=Array.isArray(h)&&h[C]?h[C].length:0}for(var k=E?h:i(h,v,T),_=y.length-1;_>=0;--_){var A,P=y[_];if(P==="[]"&&v.parseArrays)A=v.allowEmptyArrays&&(k===""||v.strictNullHandling&&k===null)?[]:e.combine([],k);else{A=v.plainObjects?{__proto__:null}:{};var N=P.charAt(0)==="["&&P.charAt(P.length-1)==="]"?P.slice(1,-1):P,I=v.decodeDotInKeys?N.replace(/%2E/g,"."):N,L=parseInt(I,10);!v.parseArrays&&I===""?A={0:k}:!isNaN(L)&&P!==I&&String(L)===I&&L>=0&&v.parseArrays&&L<=v.arrayLimit?(A=[],A[L]=k):I!=="__proto__"&&(A[I]=k)}k=A}return k},f=function(h,v,E,T){if(h){var C=E.allowDots?h.replace(/\.([^.[]+)/g,"[$1]"):h,k=/(\[[^[\]]*])/,_=/(\[[^[\]]*])/g,A=E.depth>0&&k.exec(C),P=A?C.slice(0,A.index):C,N=[];if(P){if(!E.plainObjects&&t.call(Object.prototype,P)&&!E.allowPrototypes)return;N.push(P)}for(var I=0;E.depth>0&&(A=_.exec(C))!==null&&I"u"?r.charset:h.charset,E=typeof h.duplicates>"u"?r.duplicates:h.duplicates;if(E!=="combine"&&E!=="first"&&E!=="last")throw new TypeError("The duplicates option must be either combine, first, or last");var T=typeof h.allowDots>"u"?h.decodeDotInKeys===!0?!0:r.allowDots:!!h.allowDots;return{allowDots:T,allowEmptyArrays:typeof h.allowEmptyArrays=="boolean"?!!h.allowEmptyArrays:r.allowEmptyArrays,allowPrototypes:typeof h.allowPrototypes=="boolean"?h.allowPrototypes:r.allowPrototypes,allowSparse:typeof h.allowSparse=="boolean"?h.allowSparse:r.allowSparse,arrayLimit:typeof h.arrayLimit=="number"?h.arrayLimit:r.arrayLimit,charset:v,charsetSentinel:typeof h.charsetSentinel=="boolean"?h.charsetSentinel:r.charsetSentinel,comma:typeof h.comma=="boolean"?h.comma:r.comma,decodeDotInKeys:typeof h.decodeDotInKeys=="boolean"?h.decodeDotInKeys:r.decodeDotInKeys,decoder:typeof h.decoder=="function"?h.decoder:r.decoder,delimiter:typeof h.delimiter=="string"||e.isRegExp(h.delimiter)?h.delimiter:r.delimiter,depth:typeof h.depth=="number"||h.depth===!1?+h.depth:r.depth,duplicates:E,ignoreQueryPrefix:h.ignoreQueryPrefix===!0,interpretNumericEntities:typeof h.interpretNumericEntities=="boolean"?h.interpretNumericEntities:r.interpretNumericEntities,parameterLimit:typeof h.parameterLimit=="number"?h.parameterLimit:r.parameterLimit,parseArrays:h.parseArrays!==!1,plainObjects:typeof h.plainObjects=="boolean"?h.plainObjects:r.plainObjects,strictDepth:typeof h.strictDepth=="boolean"?!!h.strictDepth:r.strictDepth,strictNullHandling:typeof h.strictNullHandling=="boolean"?h.strictNullHandling:r.strictNullHandling,throwOnLimitExceeded:typeof h.throwOnLimitExceeded=="boolean"?h.throwOnLimitExceeded:!1}};return $P=function(y,h){var v=g(h);if(y===""||y===null||typeof y>"u")return v.plainObjects?{__proto__:null}:{};for(var E=typeof y=="string"?u(y,v):y,T=v.plainObjects?{__proto__:null}:{},C=Object.keys(E),k=0;kd("GET",g),h=(k=u==null?void 0:u.headers)==null?void 0:k.authorization,v=h!="undefined"&&h!=null&&h!=null&&h!="null"&&!!h;let E=!0;!v&&!a&&(E=!1);const T=jn(["*abac.AppMenuEntity",u,t],y,{cacheTime:1e3,retry:!1,keepPreviousData:!0,enabled:E,...e||{}}),C=((A=(_=T.data)==null?void 0:_.data)==null?void 0:A.items)||[];return{query:T,items:C,keyExtractor:P=>P.uniqueId}}hJ.UKEY="*abac.AppMenuEntity";function DE({queryOptions:e,query:t,queryClient:n,execFnOverride:r,unauthorized:a,optionFn:i}){var k,_,A;const{options:o,execFn:l}=R.useContext(rt),u=i?i(o):o,d=r?r(u):l?l(u):St(u);let g=`${"/urw/query".substr(1)}?${qa.stringify(t)}`;const y=()=>d("GET",g),h=(k=u==null?void 0:u.headers)==null?void 0:k.authorization,v=h!="undefined"&&h!=null&&h!=null&&h!="null"&&!!h;let E=!0;!v&&!a&&(E=!1);const T=jn(["*abac.QueryUserRoleWorkspacesActionResDto",u,t],y,{cacheTime:1e3,retry:!1,keepPreviousData:!0,enabled:E,...e||{}}),C=((A=(_=T.data)==null?void 0:_.data)==null?void 0:A.items)||[];return{query:T,items:C,keyExtractor:P=>P.uniqueId}}DE.UKEY="*abac.QueryUserRoleWorkspacesActionResDto";function mJ(e){var u,d,f,g,y,h;const t=Bs(),{selectedUrw:n}=R.useContext(rt),{query:r}=DE({query:{}}),{query:a}=hJ({queryClient:t,queryOptions:{refetchOnWindowFocus:!1,enabled:!r.isError&&r.isSuccess},query:{itemsPerPage:9999}}),{locale:i}=sr();R.useEffect(()=>{a.refetch()},[i]);let o=[];const l=v=>{var E,T;return v?vhe(n,((T=(E=r.data)==null?void 0:E.data)==null?void 0:T.items)||[],v):!0};return(d=(u=a.data)==null?void 0:u.data)!=null&&d.items&&((g=(f=a.data)==null?void 0:f.data)!=null&&g.items.length)&&(o=(h=(y=a.data)==null?void 0:y.data)==null?void 0:h.items.map(v=>yJ(v,l)).filter(Boolean)),o}function oge({onClick:e}){const{isAuthenticated:t,signout:n}=R.useContext(rt),r=xr(),a=At(),i=Bs(),o=()=>{e(),n(),i.setQueriesData("*fireback.UserRoleWorkspace",[]),kr.NAVIGATE_ON_SIGNOUT&&r.push(kr.NAVIGATE_ON_SIGNOUT,kr.NAVIGATE_ON_SIGNOUT)},l=()=>{confirm("Are you sure to leave the app?")&&o()};return t?w.jsx("div",{className:"sidebar-menu-particle mt-5",children:w.jsx("ul",{className:"nav nav-pills flex-column mb-auto",children:w.jsx("li",{className:"nav-item",children:w.jsx("a",{onClick:l,className:"nav-link text-white",children:w.jsxs("span",{children:[w.jsx("img",{className:"menu-icon",src:Fs(xu.turnoff)}),w.jsx("span",{className:"nav-link-text",children:a.currentUser.signout})]})})})})}):w.jsxs(Pl,{className:"user-signin-section",href:"/signin",onClick:e,children:[w.jsx("img",{src:kr.PUBLIC_URL+"/common/user.svg"}),a.currentUser.signin]})}function AB({item:e}){return w.jsxs("span",{children:[e.icon&&w.jsx("img",{className:"menu-icon",src:Fs(e.icon)}),e.color&&!e.icon?w.jsx("span",{className:"tag-circle",style:{backgroundColor:e.color}}):null,w.jsx("span",{className:"nav-link-text",children:e.label})]})}class ia extends wn{constructor(...t){super(...t),this.children=void 0,this.firstName=void 0,this.lastName=void 0,this.photo=void 0,this.gender=void 0,this.title=void 0,this.birthDate=void 0,this.avatar=void 0,this.lastIpAddress=void 0,this.primaryAddress=void 0}}ia.Navigation={edit(e,t){return`${t?"/"+t:".."}/user/edit/${e}`},create(e){return`${e?"/"+e:".."}/user/new`},single(e,t){return`${t?"/"+t:".."}/user/${e}`},query(e={},t){return`${t?"/"+t:".."}/users`},Redit:"user/edit/:uniqueId",Rcreate:"user/new",Rsingle:"user/:uniqueId",Rquery:"users",rPrimaryAddressCreate:"user/:linkerId/primary_address/new",rPrimaryAddressEdit:"user/:linkerId/primary_address/edit/:uniqueId",editPrimaryAddress(e,t,n){return`${n?"/"+n:""}/user/${e}/primary_address/edit/${t}`},createPrimaryAddress(e,t){return`${t?"/"+t:""}/user/${e}/primary_address/new`}};ia.definition={events:[{name:"Googoli2",description:"Googlievent",payload:{fields:[{name:"entity",type:"string",computedType:"string",gormMap:{}}]}}],rpc:{query:{qs:[{name:"withImages",type:"bool?",gormMap:{}}]}},permRewrite:{replace:"root.modules",with:"root.manage"},name:"user",features:{},security:{writeOnRoot:!0},gormMap:{},fields:[{name:"firstName",type:"string",validate:"required",computedType:"string",gormMap:{}},{name:"lastName",type:"string",validate:"required",computedType:"string",gormMap:{}},{name:"photo",type:"string",computedType:"string",gormMap:{}},{name:"gender",type:"int?",computedType:"number",gormMap:{}},{name:"title",type:"string",computedType:"string",gormMap:{}},{name:"birthDate",type:"date",computedType:"Date",gormMap:{}},{name:"avatar",type:"string",computedType:"string",gormMap:{}},{name:"lastIpAddress",description:"User last connecting ip address",type:"string",computedType:"string",gormMap:{}},{name:"primaryAddress",description:"User primary address location. Can be useful for simple projects that a user is associated with a single address.",type:"object",computedType:"UserPrimaryAddress",gormMap:{},"-":"UserPrimaryAddress",fields:[{name:"addressLine1",description:"Street address, building number",type:"string",computedType:"string",gormMap:{}},{name:"addressLine2",description:"Apartment, suite, floor (optional)",type:"string?",computedType:"string",gormMap:{}},{name:"city",description:"City or locality",type:"string?",computedType:"string",gormMap:{}},{name:"stateOrProvince",description:"State, region, or province",type:"string?",computedType:"string",gormMap:{}},{name:"postalCode",description:"ZIP or postal code",type:"string?",computedType:"string",gormMap:{}},{name:"countryCode",description:'ISO 3166-1 alpha-2 (e.g., \\"US\\", \\"DE\\")',type:"string?",computedType:"string",gormMap:{}}],linkedTo:"UserEntity"}],description:"Manage the users who are in the current app (root only)"};ia.Fields={...wn.Fields,firstName:"firstName",lastName:"lastName",photo:"photo",gender:"gender",title:"title",birthDate:"birthDate",avatar:"avatar",lastIpAddress:"lastIpAddress",primaryAddress$:"primaryAddress",primaryAddress:{...wn.Fields,addressLine1:"primaryAddress.addressLine1",addressLine2:"primaryAddress.addressLine2",city:"primaryAddress.city",stateOrProvince:"primaryAddress.stateOrProvince",postalCode:"primaryAddress.postalCode",countryCode:"primaryAddress.countryCode"}};class ri extends wn{constructor(...t){super(...t),this.children=void 0,this.name=void 0,this.capabilities=void 0,this.capabilitiesListId=void 0}}ri.Navigation={edit(e,t){return`${t?"/"+t:".."}/role/edit/${e}`},create(e){return`${e?"/"+e:".."}/role/new`},single(e,t){return`${t?"/"+t:".."}/role/${e}`},query(e={},t){return`${t?"/"+t:".."}/roles`},Redit:"role/edit/:uniqueId",Rcreate:"role/new",Rsingle:"role/:uniqueId",Rquery:"roles"};ri.definition={rpc:{query:{}},name:"role",features:{},messages:{roleNeedsOneCapability:{en:"Role atleast needs one capability to be selected."}},gormMap:{},fields:[{name:"name",type:"string",validate:"required,omitempty,min=1,max=200",computedType:"string",gormMap:{}},{name:"capabilities",type:"collection",target:"CapabilityEntity",module:"fireback",computedType:"CapabilityEntity[]",gormMap:{}}],description:"Manage roles within the workspaces, or root configuration"};ri.Fields={...wn.Fields,name:"name",capabilitiesListId:"capabilitiesListId",capabilities$:"capabilities",capabilities:vi.Fields};class Ji extends wn{constructor(...t){super(...t),this.children=void 0,this.title=void 0,this.description=void 0,this.slug=void 0,this.role=void 0,this.roleId=void 0}}Ji.Navigation={edit(e,t){return`${t?"/"+t:".."}/workspace-type/edit/${e}`},create(e){return`${e?"/"+e:".."}/workspace-type/new`},single(e,t){return`${t?"/"+t:".."}/workspace-type/${e}`},query(e={},t){return`${t?"/"+t:".."}/workspace-types`},Redit:"workspace-type/edit/:uniqueId",Rcreate:"workspace-type/new",Rsingle:"workspace-type/:uniqueId",Rquery:"workspace-types"};Ji.definition={rpc:{query:{}},permRewrite:{replace:"root.modules",with:"root.manage"},name:"workspaceType",features:{mock:!1,msync:!1},security:{writeOnRoot:!0,readOnRoot:!0},messages:{cannotCreateWorkspaceType:{en:"You cannot create workspace type due to some validation errors."},cannotModifyWorkspaceType:{en:"You cannot modify workspace type due to some validation errors."},onlyRootRoleIsAccepted:{en:"You can only select a role which is created or belong to 'root' workspace."},roleIsNecessary:{en:"Role needs to be defined and exist."},roleIsNotAccessible:{en:"Role is not accessible unfortunately. Make sure you the role chose exists."},roleNeedsToHaveCapabilities:{en:"Role needs to have at least one capability before could be assigned."}},gormMap:{},fields:[{name:"title",type:"string",validate:"required,omitempty,min=1,max=250",translate:!0,computedType:"string",gormMap:{}},{name:"description",type:"string",translate:!0,computedType:"string",gormMap:{}},{name:"slug",type:"string",validate:"required,omitempty,min=2,max=50",computedType:"string",gormMap:{}},{name:"role",description:"The role which will be used to define the functionality of this workspace, Role needs to be created before hand, and only roles which belong to root workspace are possible to be selected",type:"one",target:"RoleEntity",validate:"required",computedType:"RoleEntity",gormMap:{}}],cliName:"type",description:"Defines a type for workspace, and the role which it can have as a whole. In systems with multiple types of services, e.g. student, teachers, schools this is useful to set those default types and limit the access of the users."};Ji.Fields={...wn.Fields,title:"title",description:"description",slug:"slug",roleId:"roleId",role$:"role",role:ri.Fields};class yi extends wn{constructor(...t){super(...t),this.children=void 0,this.description=void 0,this.name=void 0,this.type=void 0,this.typeId=void 0}}yi.Navigation={edit(e,t){return`${t?"/"+t:".."}/workspace/edit/${e}`},create(e){return`${e?"/"+e:".."}/workspace/new`},single(e,t){return`${t?"/"+t:".."}/workspace/${e}`},query(e={},t){return`${t?"/"+t:".."}/workspaces`},Redit:"workspace/edit/:uniqueId",Rcreate:"workspace/new",Rsingle:"workspace/:uniqueId",Rquery:"workspaces"};yi.definition={rpc:{query:{}},permRewrite:{replace:"root.modules",with:"root.manage"},name:"workspace",features:{},security:{writeOnRoot:!0,readOnRoot:!0},gormMap:{},fields:[{name:"description",type:"string",computedType:"string",gormMap:{}},{name:"name",type:"string",validate:"required",computedType:"string",gormMap:{}},{name:"type",type:"one",target:"WorkspaceTypeEntity",validate:"required",computedType:"WorkspaceTypeEntity",gormMap:{}}],cliName:"ws",description:"Fireback general user role, workspaces services.",cte:!0};yi.Fields={...wn.Fields,description:"description",name:"name",typeId:"typeId",type$:"type",type:Ji.Fields};class Kb extends wn{constructor(...t){super(...t),this.children=void 0,this.user=void 0,this.workspace=void 0,this.userPermissions=void 0,this.rolePermission=void 0,this.workspacePermissions=void 0}}Kb.Navigation={edit(e,t){return`${t?"/"+t:".."}/user-workspace/edit/${e}`},create(e){return`${e?"/"+e:".."}/user-workspace/new`},single(e,t){return`${t?"/"+t:".."}/user-workspace/${e}`},query(e={},t){return`${t?"/"+t:".."}/user-workspaces`},Redit:"user-workspace/edit/:uniqueId",Rcreate:"user-workspace/new",Rsingle:"user-workspace/:uniqueId",Rquery:"user-workspaces"};Kb.definition={rpc:{query:{}},permRewrite:{replace:"root.modules",with:"root.manage"},name:"userWorkspace",features:{},security:{resolveStrategy:"user"},gormMap:{workspaceId:"index:userworkspace_idx,unique",userId:"index:userworkspace_idx,unique"},fields:[{name:"user",type:"one",target:"UserEntity",computedType:"UserEntity",gormMap:{}},{name:"workspace",type:"one",target:"WorkspaceEntity",computedType:"WorkspaceEntity",gormMap:{}},{name:"userPermissions",type:"slice",primitive:"string",computedType:"string[]",gorm:"-",gormMap:{},sql:"-"},{name:"rolePermission",type:"slice",primitive:"UserRoleWorkspaceDto",computedType:"unknown[]",gorm:"-",gormMap:{},sql:"-"},{name:"workspacePermissions",type:"slice",primitive:"string",computedType:"string[]",gorm:"-",gormMap:{},sql:"-"}],cliShort:"user",description:"Manage the workspaces that user belongs to (either its himselves or adding by invitation)"};Kb.Fields={...wn.Fields,user$:"user",user:ia.Fields,workspace$:"workspace",workspace:yi.Fields,userPermissions:"userPermissions",rolePermission:"rolePermission",workspacePermissions:"workspacePermissions"};function CF({queryOptions:e,query:t,queryClient:n,execFnOverride:r,unauthorized:a,optionFn:i}){var k,_,A;const{options:o,execFn:l}=R.useContext(rt),u=i?i(o):o,d=r?r(u):l?l(u):St(u);let g=`${"/user-workspaces".substr(1)}?${qa.stringify(t)}`;const y=()=>d("GET",g),h=(k=u==null?void 0:u.headers)==null?void 0:k.authorization,v=h!="undefined"&&h!=null&&h!=null&&h!="null"&&!!h;let E=!0;!v&&!a&&(E=!1);const T=jn(["*abac.UserWorkspaceEntity",u,t],y,{cacheTime:1e3,retry:!1,keepPreviousData:!0,enabled:E,...e||{}}),C=((A=(_=T.data)==null?void 0:_.data)==null?void 0:A.items)||[];return{query:T,items:C,keyExtractor:P=>P.uniqueId}}CF.UKEY="*abac.UserWorkspaceEntity";function sge(e,t){var a;let n=!1;const r=(a=e.children)==null?void 0:a.map(i=>{let o=i.activeMatcher?i.activeMatcher.test(t.asPath):void 0;i.forceActive&&(o=!0);let l=i.displayFn?i.displayFn({location:"here",asPath:t.asPath,selectedUrw:t.urw,userRoleWorkspaces:t.urws}):!0;return l&&(n=!0),{...i,isActive:o||!1,isVisible:l}});return n===!1&&!e.href?null:{name:e.label,href:e.href,children:r}}function NB({menu:e,onClick:t}){var l,u,d;const{asPath:n}=sr(),r=Bs(),{selectedUrw:a}=R.useContext(rt),{query:i}=CF({queryClient:r,query:{},queryOptions:{refetchOnWindowFocus:!1,cacheTime:0}}),o=sge(e,{asPath:n,urw:a,urws:((u=(l=i.data)==null?void 0:l.data)==null?void 0:u.items)||[]});return o?w.jsx("div",{className:"sidebar-menu-particle",onClick:t,children:((d=e.children)==null?void 0:d.length)>0?w.jsxs(w.Fragment,{children:[w.jsx("span",{className:"d-flex align-items-center mb-3 mb-md-0 me-md-auto text-white text-decoration-none",children:w.jsx("span",{className:"category",children:e.label})}),w.jsx(gJ,{items:o.children})]}):w.jsx(w.Fragment,{children:w.jsx(vJ,{item:e})})}):null}function gJ({items:e}){return w.jsx("ul",{className:"nav nav-pills flex-column mb-auto",children:e.map(t=>w.jsx(vJ,{item:t},t.label+"_"+t.href))})}function vJ({item:e}){return w.jsxs("li",{className:oa("nav-item"),children:[e.href&&!e.onClick?w.jsx(Yb,{replace:!0,href:e.href,className:"nav-link","aria-current":"page",forceActive:e.isActive,scroll:null,inActiveClassName:"text-white",activeClassName:"active",children:w.jsx(AB,{item:e})}):w.jsx("a",{className:oa("nav-link",e.isActive&&"active"),onClick:e.onClick,children:w.jsx(AB,{item:e})}),e.children&&w.jsx(gJ,{items:e.children})]},e.label)}function lge(){var l,u;const e=At(),{selectedUrw:t,selectUrw:n}=R.useContext(rt),{query:r}=DE({queryOptions:{cacheTime:50},query:{}}),a=((u=(l=r.data)==null?void 0:l.data)==null?void 0:u.items)||[],i=a.map(d=>d.uniqueId).join("-")+"_"+(t==null?void 0:t.roleId)+"_"+(t==null?void 0:t.workspaceId);return{menus:R.useMemo(()=>{const d=[];return a.forEach(f=>{f.roles.forEach(g=>{d.push({key:`${g.uniqueId}_${f.uniqueId}`,label:`${f.name} (${g.name})`,children:[],forceActive:(t==null?void 0:t.roleId)===g.uniqueId&&(t==null?void 0:t.workspaceId)===f.uniqueId,color:f.uniqueId==="root"?oL.Orange:oL.Green,onClick:()=>{n({roleId:g.uniqueId,workspaceId:f.uniqueId})}})})}),[{label:e.wokspaces.sidetitle,children:d.sort((f,g)=>f.key!0){if(!t(e.capabilityId))return null;const n=(e.children||[]).map(r=>yJ(r,t)).filter(Boolean);return{label:e.label||"",children:n,displayFn:uge(),icon:e.icon,href:e.href,activeMatcher:e.activeMatcher?new RegExp(e.activeMatcher):void 0}}function uge(e){return()=>!0}function cge({miniSize:e,onClose:t,sidebarItemSelectedExtra:n}){var g;const{sidebarVisible:r,toggleSidebar:a,sidebarItemSelected:i}=zv(),o=mJ(),{reset:l}=R.useContext(m_),u=()=>{l(),a()};if(!o)return null;let d=[];Array.isArray(o)?d=[...o]:(g=o.children)!=null&&g.length&&d.push(o);const{menus:f}=lge();return d.push(f[0]),w.jsxs("div",{"data-wails-drag":!0,className:oa(e?"sidebar-extra-small":"","sidebar",r?"open":"","scrollable-element",sh().isMobileView?"has-bottom-tab":void 0),children:[w.jsx("button",{className:"sidebar-close",onClick:()=>t?t():u(),children:w.jsx("img",{src:Fs(xu.cancel)})}),d.map(y=>w.jsx(NB,{onClick:()=>{i(),n==null||n()},menu:y},y.label)),kr.GITHUB_DEMO==="true"&&w.jsx(NB,{onClick:()=>{i(),n==null||n()},menu:{label:"Demo",children:[{label:"Form select",icon:"/ios-theme/icons/settings.svg",children:[],href:"/demo/form-select"},{label:"Form Date/Time",icon:"/ios-theme/icons/settings.svg",children:[],href:"/demo/form-date"},{label:"Overlays & Modal",icon:"/ios-theme/icons/settings.svg",children:[],href:"/demo/modals"}]}}),w.jsx(oge,{onClick:()=>{i(),n==null||n()}})]})}const bJ=ze.memo(cge);function dge({menu:e,isSecondary:t,routerId:n}){const{toggleSidebar:r,closeCurrentRouter:a}=zv(),{openDrawer:i}=bF();return w0(Ir.SidebarToggle,()=>{r()}),w.jsx("nav",{className:"navbar navbar-expand-lg navbar-light",style:{"--wails-draggable":"drag"},children:w.jsxs("div",{className:"container-fluid",children:[w.jsx("div",{className:"page-navigator",children:n==="url-router"?w.jsx("button",{className:"navbar-menu-icon",onClick:()=>sh().isMobileView?i(({close:o})=>w.jsx(bJ,{sidebarItemSelectedExtra:o,onClose:o,miniSize:!1}),{speed:180,direction:"left"}):r(),children:w.jsx("img",{src:Fs(xu.menu)})}):w.jsx("button",{className:"navbar-menu-icon",onClick:()=>a(n),children:w.jsx("img",{src:Fs(xu.cancel)})})}),w.jsx(gL,{filter:({id:o})=>o==="navigation"}),w.jsx("div",{className:"page-navigator"}),w.jsx("span",{className:"navbar-brand",children:w.jsx(Bhe,{})}),iL()==="web"&&w.jsx("button",{className:"navbar-toggler",type:"button","data-bs-toggle":"collapse","data-bs-target":"#navbarSupportedContent","aria-controls":"navbarSupportedContent","aria-expanded":"false","aria-label":"Toggle navigation",children:w.jsx("span",{className:"navbar-toggler-icon"})}),w.jsxs("div",{className:iL()==="web"?"collapse navbar-collapse":"",id:"navbarSupportedContent",children:[w.jsx("ul",{className:"navbar-nav ms-auto mb-2 mb-lg-0",children:((e==null?void 0:e.children)||[]).map(o=>{var l;return w.jsx("li",{className:oa("nav-item",((l=o.children)==null?void 0:l.length)&&"dropdown"),children:o.children.length?w.jsxs(w.Fragment,{children:[w.jsx(Yb,{className:"nav-link dropdown-toggle",href:o.href,id:"navbarDropdown",role:"button","data-bs-toggle":"dropdown","aria-expanded":"false",children:w.jsx("span",{children:o.label})}),(o!=null&&o.children,w.jsx("ul",{className:"dropdown-menu","aria-labelledby":"navbarDropdown",children:((o==null?void 0:o.children)||[]).map(u=>{var d;return w.jsx("li",{className:oa("nav-item",((d=u.children)==null?void 0:d.length)&&"dropdown"),children:w.jsx(Yb,{className:"dropdown-item",href:u.href,children:w.jsx("span",{children:u.label})})},`${u.label}_${u.href}`)})}))]}):w.jsx(Yb,{className:"nav-link active","aria-current":"page",href:o.href,children:w.jsx("span",{children:o.label})})},`${o.label}_${o.href}`)})}),w.jsx("span",{className:"general-action-menu desktop-view",children:w.jsx(gL,{filter:({id:o})=>o!=="navigation"})}),w.jsx(wme,{})]})]})})}const fge=ze.memo(dge);function pge({result:e,onComplete:t}){const n=At(),r=Ta.groupBy(e,"group"),a=Object.keys(r);return w.jsx("div",{className:"reactive-search-result",children:a.length===0?w.jsx(w.Fragment,{children:n.reactiveSearch.noResults}):w.jsx("ul",{children:a.map((i,o)=>w.jsxs("li",{children:[w.jsx("span",{className:"result-group-name",children:i}),w.jsx("ul",{children:r[i].map((l,u)=>w.jsx("li",{children:l.actionFn?w.jsxs(Pl,{onClick:t,href:l.uiLocation,children:[l.icon&&w.jsx("img",{className:"result-icon",src:Fs(l.icon)}),l.phrase]}):null},l.uniqueId))})]},o))})})}function hge({children:e}){return w.jsxs(w.Fragment,{children:[w.jsx(Bse,{}),e]})}const mge=({children:e,navbarMenu:t,sidebarMenu:n,routerId:r})=>{At();const{result:a,phrase:i,reset:o}=R.useContext(m_),{sidebarVisible:l,toggleSidebar:u}=zv(),d=i.length>0;return w.jsxs(w.Fragment,{children:[w.jsxs("div",{style:{display:"flex",width:"100%"},children:[w.jsx("div",{className:oa("sidebar-overlay",l?"open":""),onClick:f=>{u(),f.stopPropagation()}}),w.jsxs("div",{style:{width:"100%",flex:1},children:[w.jsx(fge,{routerId:r,menu:t}),w.jsxs("div",{className:"content-section",children:[d?w.jsx("div",{className:"content-container",children:w.jsx(pge,{onComplete:()=>o(),result:a})}):null,w.jsx("div",{className:"content-container",style:{visibility:d?"hidden":void 0},children:w.jsx(hge,{children:e})})]})]}),w.jsx(hhe,{})]}),w.jsx("span",{className:"general-action-menu mobile-view",children:w.jsx(gL,{})})]})};function Kt(e){const{locale:t}=sr();return!t||t==="en"?e:e["$"+t]?e["$"+t]:e}const gge={capabilities:{nameHint:"Name",newCapability:"New capability",archiveTitle:"Capabilities",description:"Description",descriptionHint:"Description",editCapability:"Edit capability",name:"Name"}},$E={...gge},jo=({children:e,newEntityHandler:t,exportPath:n,pageTitle:r})=>{gh(r);const a=xr(),{locale:i}=sr();return bhe({path:n||""}),khe(t?()=>t({locale:i,router:a}):void 0,Ir.NewEntity),w.jsx(w.Fragment,{children:e})};var mx=function(e){return Array.prototype.slice.call(e)},vge=(function(){function e(){this.handlers=[]}return e.prototype.emit=function(t){this.handlers.forEach(function(n){return n(t)})},e.prototype.subscribe=function(t){this.handlers.push(t)},e.prototype.unsubscribe=function(t){this.handlers.splice(this.handlers.indexOf(t),1)},e})(),wJ=function(e,t){if(e===t)return!0;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(var a=Object.prototype.hasOwnProperty,i=0;i"u"||!I?e:I(Uint8Array),me={__proto__:null,"%AggregateError%":typeof AggregateError>"u"?e:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?e:ArrayBuffer,"%ArrayIteratorPrototype%":N&&I?I([][Symbol.iterator]()):e,"%AsyncFromSyncIteratorPrototype%":e,"%AsyncFunction%":ue,"%AsyncGenerator%":ue,"%AsyncGeneratorFunction%":ue,"%AsyncIteratorPrototype%":ue,"%Atomics%":typeof Atomics>"u"?e:Atomics,"%BigInt%":typeof BigInt>"u"?e:BigInt,"%BigInt64Array%":typeof BigInt64Array>"u"?e:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array>"u"?e:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView>"u"?e:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":n,"%eval%":eval,"%EvalError%":r,"%Float16Array%":typeof Float16Array>"u"?e:Float16Array,"%Float32Array%":typeof Float32Array>"u"?e:Float32Array,"%Float64Array%":typeof Float64Array>"u"?e:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry>"u"?e:FinalizationRegistry,"%Function%":T,"%GeneratorFunction%":ue,"%Int8Array%":typeof Int8Array>"u"?e:Int8Array,"%Int16Array%":typeof Int16Array>"u"?e:Int16Array,"%Int32Array%":typeof Int32Array>"u"?e:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":N&&I?I(I([][Symbol.iterator]())):e,"%JSON%":typeof JSON=="object"?JSON:e,"%Map%":typeof Map>"u"?e:Map,"%MapIteratorPrototype%":typeof Map>"u"||!N||!I?e:I(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":t,"%Object.getOwnPropertyDescriptor%":k,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>"u"?e:Promise,"%Proxy%":typeof Proxy>"u"?e:Proxy,"%RangeError%":a,"%ReferenceError%":i,"%Reflect%":typeof Reflect>"u"?e:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>"u"?e:Set,"%SetIteratorPrototype%":typeof Set>"u"||!N||!I?e:I(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>"u"?e:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":N&&I?I(""[Symbol.iterator]()):e,"%Symbol%":N?Symbol:e,"%SyntaxError%":o,"%ThrowTypeError%":P,"%TypedArray%":re,"%TypeError%":l,"%Uint8Array%":typeof Uint8Array>"u"?e:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray>"u"?e:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array>"u"?e:Uint16Array,"%Uint32Array%":typeof Uint32Array>"u"?e:Uint32Array,"%URIError%":u,"%WeakMap%":typeof WeakMap>"u"?e:WeakMap,"%WeakRef%":typeof WeakRef>"u"?e:WeakRef,"%WeakSet%":typeof WeakSet>"u"?e:WeakSet,"%Function.prototype.call%":Q,"%Function.prototype.apply%":z,"%Object.defineProperty%":_,"%Object.getPrototypeOf%":L,"%Math.abs%":d,"%Math.floor%":f,"%Math.max%":g,"%Math.min%":y,"%Math.pow%":h,"%Math.round%":v,"%Math.sign%":E,"%Reflect.getPrototypeOf%":j};if(I)try{null.error}catch(xe){var ge=I(I(xe));me["%Error.prototype%"]=ge}var W=function xe(Ie){var qe;if(Ie==="%AsyncFunction%")qe=C("async function () {}");else if(Ie==="%GeneratorFunction%")qe=C("function* () {}");else if(Ie==="%AsyncGeneratorFunction%")qe=C("async function* () {}");else if(Ie==="%AsyncGenerator%"){var tt=xe("%AsyncGeneratorFunction%");tt&&(qe=tt.prototype)}else if(Ie==="%AsyncIteratorPrototype%"){var Ge=xe("%AsyncGenerator%");Ge&&I&&(qe=I(Ge.prototype))}return me[Ie]=qe,qe},G={__proto__:null,"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},q=W_(),ce=_ge(),H=q.call(Q,Array.prototype.concat),K=q.call(z,Array.prototype.splice),ae=q.call(Q,String.prototype.replace),J=q.call(Q,String.prototype.slice),ee=q.call(Q,RegExp.prototype.exec),Z=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,le=/\\(\\)?/g,ke=function(Ie){var qe=J(Ie,0,1),tt=J(Ie,-1);if(qe==="%"&&tt!=="%")throw new o("invalid intrinsic syntax, expected closing `%`");if(tt==="%"&&qe!=="%")throw new o("invalid intrinsic syntax, expected opening `%`");var Ge=[];return ae(Ie,Z,function(rt,St,kt,xt){Ge[Ge.length]=kt?ae(xt,le,"$1"):St||rt}),Ge},fe=function(Ie,qe){var tt=Ie,Ge;if(ce(G,tt)&&(Ge=G[tt],tt="%"+Ge[0]+"%"),ce(me,tt)){var rt=me[tt];if(rt===ue&&(rt=W(tt)),typeof rt>"u"&&!qe)throw new l("intrinsic "+Ie+" exists, but is not available. Please file an issue!");return{alias:Ge,name:tt,value:rt}}throw new o("intrinsic "+Ie+" does not exist!")};return eA=function(Ie,qe){if(typeof Ie!="string"||Ie.length===0)throw new l("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof qe!="boolean")throw new l('"allowMissing" argument must be a boolean');if(ee(/^%?[^%]*%?$/,Ie)===null)throw new o("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var tt=ke(Ie),Ge=tt.length>0?tt[0]:"",rt=fe("%"+Ge+"%",qe),St=rt.name,kt=rt.value,xt=!1,Rt=rt.alias;Rt&&(Ge=Rt[0],K(tt,H([0,1],Rt)));for(var cn=1,qt=!0;cn=tt.length){var ft=k(kt,Wt);qt=!!ft,qt&&"get"in ft&&!("originalValue"in ft.get)?kt=ft.get:kt=kt[Wt]}else qt=ce(kt,Wt),kt=kt[Wt];qt&&!xt&&(me[St]=kt)}}return kt},eA}var tA,XB;function jJ(){if(XB)return tA;XB=1;var e=KF(),t=FJ(),n=t([e("%String.prototype.indexOf%")]);return tA=function(a,i){var o=e(a,!!i);return typeof o=="function"&&n(a,".prototype.")>-1?t([o]):o},tA}var nA,QB;function UJ(){if(QB)return nA;QB=1;var e=KF(),t=jJ(),n=B_(),r=H0(),a=e("%Map%",!0),i=t("Map.prototype.get",!0),o=t("Map.prototype.set",!0),l=t("Map.prototype.has",!0),u=t("Map.prototype.delete",!0),d=t("Map.prototype.size",!0);return nA=!!a&&function(){var g,y={assert:function(h){if(!y.has(h))throw new r("Side channel does not contain "+n(h))},delete:function(h){if(g){var v=u(g,h);return d(g)===0&&(g=void 0),v}return!1},get:function(h){if(g)return i(g,h)},has:function(h){return g?l(g,h):!1},set:function(h,v){g||(g=new a),o(g,h,v)}};return y},nA}var rA,JB;function Oge(){if(JB)return rA;JB=1;var e=KF(),t=jJ(),n=B_(),r=UJ(),a=H0(),i=e("%WeakMap%",!0),o=t("WeakMap.prototype.get",!0),l=t("WeakMap.prototype.set",!0),u=t("WeakMap.prototype.has",!0),d=t("WeakMap.prototype.delete",!0);return rA=i?function(){var g,y,h={assert:function(v){if(!h.has(v))throw new a("Side channel does not contain "+n(v))},delete:function(v){if(i&&v&&(typeof v=="object"||typeof v=="function")){if(g)return d(g,v)}else if(r&&y)return y.delete(v);return!1},get:function(v){return i&&v&&(typeof v=="object"||typeof v=="function")&&g?o(g,v):y&&y.get(v)},has:function(v){return i&&v&&(typeof v=="object"||typeof v=="function")&&g?u(g,v):!!y&&y.has(v)},set:function(v,E){i&&v&&(typeof v=="object"||typeof v=="function")?(g||(g=new i),l(g,v,E)):r&&(y||(y=r()),y.set(v,E))}};return h}:r,rA}var aA,ZB;function Rge(){if(ZB)return aA;ZB=1;var e=H0(),t=B_(),n=rge(),r=UJ(),a=Oge(),i=a||r||n;return aA=function(){var l,u={assert:function(d){if(!u.has(d))throw new e("Side channel does not contain "+t(d))},delete:function(d){return!!l&&l.delete(d)},get:function(d){return l&&l.get(d)},has:function(d){return!!l&&l.has(d)},set:function(d,f){l||(l=i()),l.set(d,f)}};return u},aA}var iA,e8;function XF(){if(e8)return iA;e8=1;var e=String.prototype.replace,t=/%20/g,n={RFC1738:"RFC1738",RFC3986:"RFC3986"};return iA={default:n.RFC3986,formatters:{RFC1738:function(r){return e.call(r,t,"+")},RFC3986:function(r){return String(r)}},RFC1738:n.RFC1738,RFC3986:n.RFC3986},iA}var oA,t8;function BJ(){if(t8)return oA;t8=1;var e=XF(),t=Object.prototype.hasOwnProperty,n=Array.isArray,r=(function(){for(var T=[],C=0;C<256;++C)T.push("%"+((C<16?"0":"")+C.toString(16)).toUpperCase());return T})(),a=function(C){for(;C.length>1;){var k=C.pop(),_=k.obj[k.prop];if(n(_)){for(var A=[],P=0;P<_.length;++P)typeof _[P]<"u"&&A.push(_[P]);k.obj[k.prop]=A}}},i=function(C,k){for(var _=k&&k.plainObjects?{__proto__:null}:{},A=0;A=d?N.slice(L,L+d):N,z=[],Q=0;Q=48&&ue<=57||ue>=65&&ue<=90||ue>=97&&ue<=122||P===e.RFC1738&&(ue===40||ue===41)){z[z.length]=j.charAt(Q);continue}if(ue<128){z[z.length]=r[ue];continue}if(ue<2048){z[z.length]=r[192|ue>>6]+r[128|ue&63];continue}if(ue<55296||ue>=57344){z[z.length]=r[224|ue>>12]+r[128|ue>>6&63]+r[128|ue&63];continue}Q+=1,ue=65536+((ue&1023)<<10|j.charCodeAt(Q)&1023),z[z.length]=r[240|ue>>18]+r[128|ue>>12&63]+r[128|ue>>6&63]+r[128|ue&63]}I+=z.join("")}return I},g=function(C){for(var k=[{obj:{o:C},prop:"o"}],_=[],A=0;A"u"&&(H=0)}if(typeof j=="function"?q=j(C,q):q instanceof Date?q=ue(q):k==="comma"&&i(q)&&(q=t.maybeMap(q,function(St){return St instanceof Date?ue(St):St})),q===null){if(P)return L&&!ge?L(C,f.encoder,W,"key",re):C;q=""}if(g(q)||t.isBuffer(q)){if(L){var J=ge?C:L(C,f.encoder,W,"key",re);return[me(J)+"="+me(L(q,f.encoder,W,"value",re))]}return[me(C)+"="+me(String(q))]}var ee=[];if(typeof q>"u")return ee;var Z;if(k==="comma"&&i(q))ge&&L&&(q=t.maybeMap(q,L)),Z=[{value:q.length>0?q.join(",")||null:void 0}];else if(i(j))Z=j;else{var le=Object.keys(q);Z=z?le.sort(z):le}var ke=I?String(C).replace(/\./g,"%2E"):String(C),fe=_&&i(q)&&q.length===1?ke+"[]":ke;if(A&&i(q)&&q.length===0)return fe+"[]";for(var xe=0;xe"u"?T.encodeDotInKeys===!0?!0:f.allowDots:!!T.allowDots;return{addQueryPrefix:typeof T.addQueryPrefix=="boolean"?T.addQueryPrefix:f.addQueryPrefix,allowDots:N,allowEmptyArrays:typeof T.allowEmptyArrays=="boolean"?!!T.allowEmptyArrays:f.allowEmptyArrays,arrayFormat:P,charset:C,charsetSentinel:typeof T.charsetSentinel=="boolean"?T.charsetSentinel:f.charsetSentinel,commaRoundTrip:!!T.commaRoundTrip,delimiter:typeof T.delimiter>"u"?f.delimiter:T.delimiter,encode:typeof T.encode=="boolean"?T.encode:f.encode,encodeDotInKeys:typeof T.encodeDotInKeys=="boolean"?T.encodeDotInKeys:f.encodeDotInKeys,encoder:typeof T.encoder=="function"?T.encoder:f.encoder,encodeValuesOnly:typeof T.encodeValuesOnly=="boolean"?T.encodeValuesOnly:f.encodeValuesOnly,filter:A,format:k,formatter:_,serializeDate:typeof T.serializeDate=="function"?T.serializeDate:f.serializeDate,skipNulls:typeof T.skipNulls=="boolean"?T.skipNulls:f.skipNulls,sort:typeof T.sort=="function"?T.sort:null,strictNullHandling:typeof T.strictNullHandling=="boolean"?T.strictNullHandling:f.strictNullHandling}};return sA=function(E,T){var C=E,k=v(T),_,A;typeof k.filter=="function"?(A=k.filter,C=A("",C)):i(k.filter)&&(A=k.filter,_=A);var P=[];if(typeof C!="object"||C===null)return"";var N=a[k.arrayFormat],I=N==="comma"&&k.commaRoundTrip;_||(_=Object.keys(C)),k.sort&&_.sort(k.sort);for(var L=e(),j=0;j<_.length;++j){var z=_[j],Q=C[z];k.skipNulls&&Q===null||l(P,h(Q,z,N,I,k.allowEmptyArrays,k.strictNullHandling,k.skipNulls,k.encodeDotInKeys,k.encode?k.encoder:null,k.filter,k.sort,k.allowDots,k.serializeDate,k.format,k.formatter,k.encodeValuesOnly,k.charset,L))}var ue=P.join(k.delimiter),re=k.addQueryPrefix===!0?"?":"";return k.charsetSentinel&&(k.charset==="iso-8859-1"?re+="utf8=%26%2310003%3B&":re+="utf8=%E2%9C%93&"),ue.length>0?re+ue:""},sA}var lA,r8;function Age(){if(r8)return lA;r8=1;var e=BJ(),t=Object.prototype.hasOwnProperty,n=Array.isArray,r={allowDots:!1,allowEmptyArrays:!1,allowPrototypes:!1,allowSparse:!1,arrayLimit:20,charset:"utf-8",charsetSentinel:!1,comma:!1,decodeDotInKeys:!1,decoder:e.decode,delimiter:"&",depth:5,duplicates:"combine",ignoreQueryPrefix:!1,interpretNumericEntities:!1,parameterLimit:1e3,parseArrays:!0,plainObjects:!1,strictDepth:!1,strictNullHandling:!1,throwOnLimitExceeded:!1},a=function(y){return y.replace(/&#(\d+);/g,function(h,v){return String.fromCharCode(parseInt(v,10))})},i=function(y,h,v){if(y&&typeof y=="string"&&h.comma&&y.indexOf(",")>-1)return y.split(",");if(h.throwOnLimitExceeded&&v>=h.arrayLimit)throw new RangeError("Array limit exceeded. Only "+h.arrayLimit+" element"+(h.arrayLimit===1?"":"s")+" allowed in an array.");return y},o="utf8=%26%2310003%3B",l="utf8=%E2%9C%93",u=function(h,v){var E={__proto__:null},T=v.ignoreQueryPrefix?h.replace(/^\?/,""):h;T=T.replace(/%5B/gi,"[").replace(/%5D/gi,"]");var C=v.parameterLimit===1/0?void 0:v.parameterLimit,k=T.split(v.delimiter,v.throwOnLimitExceeded?C+1:C);if(v.throwOnLimitExceeded&&k.length>C)throw new RangeError("Parameter limit exceeded. Only "+C+" parameter"+(C===1?"":"s")+" allowed.");var _=-1,A,P=v.charset;if(v.charsetSentinel)for(A=0;A-1&&(z=n(z)?[z]:z);var Q=t.call(E,j);Q&&v.duplicates==="combine"?E[j]=e.combine(E[j],z):(!Q||v.duplicates==="last")&&(E[j]=z)}return E},d=function(y,h,v,E){var T=0;if(y.length>0&&y[y.length-1]==="[]"){var C=y.slice(0,-1).join("");T=Array.isArray(h)&&h[C]?h[C].length:0}for(var k=E?h:i(h,v,T),_=y.length-1;_>=0;--_){var A,P=y[_];if(P==="[]"&&v.parseArrays)A=v.allowEmptyArrays&&(k===""||v.strictNullHandling&&k===null)?[]:e.combine([],k);else{A=v.plainObjects?{__proto__:null}:{};var N=P.charAt(0)==="["&&P.charAt(P.length-1)==="]"?P.slice(1,-1):P,I=v.decodeDotInKeys?N.replace(/%2E/g,"."):N,L=parseInt(I,10);!v.parseArrays&&I===""?A={0:k}:!isNaN(L)&&P!==I&&String(L)===I&&L>=0&&v.parseArrays&&L<=v.arrayLimit?(A=[],A[L]=k):I!=="__proto__"&&(A[I]=k)}k=A}return k},f=function(h,v,E,T){if(h){var C=E.allowDots?h.replace(/\.([^.[]+)/g,"[$1]"):h,k=/(\[[^[\]]*])/,_=/(\[[^[\]]*])/g,A=E.depth>0&&k.exec(C),P=A?C.slice(0,A.index):C,N=[];if(P){if(!E.plainObjects&&t.call(Object.prototype,P)&&!E.allowPrototypes)return;N.push(P)}for(var I=0;E.depth>0&&(A=_.exec(C))!==null&&I"u"?r.charset:h.charset,E=typeof h.duplicates>"u"?r.duplicates:h.duplicates;if(E!=="combine"&&E!=="first"&&E!=="last")throw new TypeError("The duplicates option must be either combine, first, or last");var T=typeof h.allowDots>"u"?h.decodeDotInKeys===!0?!0:r.allowDots:!!h.allowDots;return{allowDots:T,allowEmptyArrays:typeof h.allowEmptyArrays=="boolean"?!!h.allowEmptyArrays:r.allowEmptyArrays,allowPrototypes:typeof h.allowPrototypes=="boolean"?h.allowPrototypes:r.allowPrototypes,allowSparse:typeof h.allowSparse=="boolean"?h.allowSparse:r.allowSparse,arrayLimit:typeof h.arrayLimit=="number"?h.arrayLimit:r.arrayLimit,charset:v,charsetSentinel:typeof h.charsetSentinel=="boolean"?h.charsetSentinel:r.charsetSentinel,comma:typeof h.comma=="boolean"?h.comma:r.comma,decodeDotInKeys:typeof h.decodeDotInKeys=="boolean"?h.decodeDotInKeys:r.decodeDotInKeys,decoder:typeof h.decoder=="function"?h.decoder:r.decoder,delimiter:typeof h.delimiter=="string"||e.isRegExp(h.delimiter)?h.delimiter:r.delimiter,depth:typeof h.depth=="number"||h.depth===!1?+h.depth:r.depth,duplicates:E,ignoreQueryPrefix:h.ignoreQueryPrefix===!0,interpretNumericEntities:typeof h.interpretNumericEntities=="boolean"?h.interpretNumericEntities:r.interpretNumericEntities,parameterLimit:typeof h.parameterLimit=="number"?h.parameterLimit:r.parameterLimit,parseArrays:h.parseArrays!==!1,plainObjects:typeof h.plainObjects=="boolean"?h.plainObjects:r.plainObjects,strictDepth:typeof h.strictDepth=="boolean"?!!h.strictDepth:r.strictDepth,strictNullHandling:typeof h.strictNullHandling=="boolean"?h.strictNullHandling:r.strictNullHandling,throwOnLimitExceeded:typeof h.throwOnLimitExceeded=="boolean"?h.throwOnLimitExceeded:!1}};return lA=function(y,h){var v=g(h);if(y===""||y===null||typeof y>"u")return v.plainObjects?{__proto__:null}:{};for(var E=typeof y=="string"?u(y,v):y,T=v.plainObjects?{__proto__:null}:{},C=Object.keys(E),k=0;kd("GET",g),h=(k=u==null?void 0:u.headers)==null?void 0:k.authorization,v=h!="undefined"&&h!=null&&h!=null&&h!="null"&&!!h;let E=!0;!v&&!a&&(E=!1);const T=jn(["*abac.AppMenuEntity",u,t],y,{cacheTime:1e3,retry:!1,keepPreviousData:!0,enabled:E,...e||{}}),C=((A=(_=T.data)==null?void 0:_.data)==null?void 0:A.items)||[];return{query:T,items:C,keyExtractor:P=>P.uniqueId}}WJ.UKEY="*abac.AppMenuEntity";function XL(e,t){const n={};for(const[r,a]of Object.entries(t))typeof a=="string"?n[r]=`${e}.${a}`:typeof a=="object"&&a!==null&&(n[r]=a);return n}var Ga,gp,vp,yp,bp,wp,Sp,Ep,Tp,Cp,kp,xp,_p,Op,Rp,Pp,Ap,Np,Mp,xk,_k,Ip,Dp,$p,fc,Ok,Lp,Fp,jp,Up,Bp,Wp,zp,qp,Rk;function Xe(e,t){if(!{}.hasOwnProperty.call(e,t))throw new TypeError("attempted to use private field on non-instance");return e}var Mge=0;function Rn(e){return"__private_"+Mge+++"_"+e}var Vm=Rn("apiVersion"),Gm=Rn("context"),Ym=Rn("id"),Km=Rn("method"),Xm=Rn("params"),fd=Rn("data"),pd=Rn("error"),cA=Rn("isJsonAppliable"),QS=Rn("lateInitFields");class Lo{get apiVersion(){return Xe(this,Vm)[Vm]}set apiVersion(t){const n=typeof t=="string"||t===void 0||t===null;Xe(this,Vm)[Vm]=n?t:String(t)}setApiVersion(t){return this.apiVersion=t,this}get context(){return Xe(this,Gm)[Gm]}set context(t){const n=typeof t=="string"||t===void 0||t===null;Xe(this,Gm)[Gm]=n?t:String(t)}setContext(t){return this.context=t,this}get id(){return Xe(this,Ym)[Ym]}set id(t){const n=typeof t=="string"||t===void 0||t===null;Xe(this,Ym)[Ym]=n?t:String(t)}setId(t){return this.id=t,this}get method(){return Xe(this,Km)[Km]}set method(t){const n=typeof t=="string"||t===void 0||t===null;Xe(this,Km)[Km]=n?t:String(t)}setMethod(t){return this.method=t,this}get params(){return Xe(this,Xm)[Xm]}set params(t){Xe(this,Xm)[Xm]=t}setParams(t){return this.params=t,this}get data(){return Xe(this,fd)[fd]}set data(t){t instanceof Lo.Data?Xe(this,fd)[fd]=t:Xe(this,fd)[fd]=new Lo.Data(t)}setData(t){return this.data=t,this}get error(){return Xe(this,pd)[pd]}set error(t){t instanceof Lo.Error?Xe(this,pd)[pd]=t:Xe(this,pd)[pd]=new Lo.Error(t)}setError(t){return this.error=t,this}constructor(t=void 0){if(Object.defineProperty(this,QS,{value:Dge}),Object.defineProperty(this,cA,{value:Ige}),Object.defineProperty(this,Vm,{writable:!0,value:void 0}),Object.defineProperty(this,Gm,{writable:!0,value:void 0}),Object.defineProperty(this,Ym,{writable:!0,value:void 0}),Object.defineProperty(this,Km,{writable:!0,value:void 0}),Object.defineProperty(this,Xm,{writable:!0,value:null}),Object.defineProperty(this,fd,{writable:!0,value:void 0}),Object.defineProperty(this,pd,{writable:!0,value:void 0}),t==null){Xe(this,QS)[QS]();return}if(typeof t=="string")this.applyFromObject(JSON.parse(t));else if(Xe(this,cA)[cA](t))this.applyFromObject(t);else throw new Error("Instance cannot be created on an unknown value, check the content being passed. got: "+typeof t)}applyFromObject(t={}){const n=t;n.apiVersion!==void 0&&(this.apiVersion=n.apiVersion),n.context!==void 0&&(this.context=n.context),n.id!==void 0&&(this.id=n.id),n.method!==void 0&&(this.method=n.method),n.params!==void 0&&(this.params=n.params),n.data!==void 0&&(this.data=n.data),n.error!==void 0&&(this.error=n.error),Xe(this,QS)[QS](t)}toJSON(){return{apiVersion:Xe(this,Vm)[Vm],context:Xe(this,Gm)[Gm],id:Xe(this,Ym)[Ym],method:Xe(this,Km)[Km],params:Xe(this,Xm)[Xm],data:Xe(this,fd)[fd],error:Xe(this,pd)[pd]}}toString(){return JSON.stringify(this)}static get Fields(){return{apiVersion:"apiVersion",context:"context",id:"id",method:"method",params:"params",data$:"data",get data(){return XL("data",Lo.Data.Fields)},error$:"error",get error(){return XL("error",Lo.Error.Fields)}}}static from(t){return new Lo(t)}static with(t){return new Lo(t)}copyWith(t){return new Lo({...this.toJSON(),...t})}clone(){return new Lo(this.toJSON())}}Ga=Lo;function Ige(e){const t=globalThis,n=typeof t.Buffer<"u"&&typeof t.Buffer.isBuffer=="function"&&t.Buffer.isBuffer(e),r=typeof t.Blob<"u"&&e instanceof t.Blob;return e&&typeof e=="object"&&!Array.isArray(e)&&!n&&!(e instanceof ArrayBuffer)&&!r}function Dge(e={}){const t=e;t.data instanceof Ga.Data||(this.data=new Ga.Data(t.data||{})),t.error instanceof Ga.Error||(this.error=new Ga.Error(t.error||{}))}Lo.Data=(gp=Rn("item"),vp=Rn("items"),yp=Rn("editLink"),bp=Rn("selfLink"),wp=Rn("kind"),Sp=Rn("fields"),Ep=Rn("etag"),Tp=Rn("cursor"),Cp=Rn("id"),kp=Rn("lang"),xp=Rn("updated"),_p=Rn("currentItemCount"),Op=Rn("itemsPerPage"),Rp=Rn("startIndex"),Pp=Rn("totalItems"),Ap=Rn("totalAvailableItems"),Np=Rn("pageIndex"),Mp=Rn("totalPages"),xk=Rn("isJsonAppliable"),class{get item(){return Xe(this,gp)[gp]}set item(t){Xe(this,gp)[gp]=t}setItem(t){return this.item=t,this}get items(){return Xe(this,vp)[vp]}set items(t){Xe(this,vp)[vp]=t}setItems(t){return this.items=t,this}get editLink(){return Xe(this,yp)[yp]}set editLink(t){const n=typeof t=="string"||t===void 0||t===null;Xe(this,yp)[yp]=n?t:String(t)}setEditLink(t){return this.editLink=t,this}get selfLink(){return Xe(this,bp)[bp]}set selfLink(t){const n=typeof t=="string"||t===void 0||t===null;Xe(this,bp)[bp]=n?t:String(t)}setSelfLink(t){return this.selfLink=t,this}get kind(){return Xe(this,wp)[wp]}set kind(t){const n=typeof t=="string"||t===void 0||t===null;Xe(this,wp)[wp]=n?t:String(t)}setKind(t){return this.kind=t,this}get fields(){return Xe(this,Sp)[Sp]}set fields(t){const n=typeof t=="string"||t===void 0||t===null;Xe(this,Sp)[Sp]=n?t:String(t)}setFields(t){return this.fields=t,this}get etag(){return Xe(this,Ep)[Ep]}set etag(t){const n=typeof t=="string"||t===void 0||t===null;Xe(this,Ep)[Ep]=n?t:String(t)}setEtag(t){return this.etag=t,this}get cursor(){return Xe(this,Tp)[Tp]}set cursor(t){const n=typeof t=="string"||t===void 0||t===null;Xe(this,Tp)[Tp]=n?t:String(t)}setCursor(t){return this.cursor=t,this}get id(){return Xe(this,Cp)[Cp]}set id(t){const n=typeof t=="string"||t===void 0||t===null;Xe(this,Cp)[Cp]=n?t:String(t)}setId(t){return this.id=t,this}get lang(){return Xe(this,kp)[kp]}set lang(t){const n=typeof t=="string"||t===void 0||t===null;Xe(this,kp)[kp]=n?t:String(t)}setLang(t){return this.lang=t,this}get updated(){return Xe(this,xp)[xp]}set updated(t){const n=typeof t=="string"||t===void 0||t===null;Xe(this,xp)[xp]=n?t:String(t)}setUpdated(t){return this.updated=t,this}get currentItemCount(){return Xe(this,_p)[_p]}set currentItemCount(t){const r=typeof t=="number"||t===void 0||t===null?t:Number(t);Number.isNaN(r)||(Xe(this,_p)[_p]=r)}setCurrentItemCount(t){return this.currentItemCount=t,this}get itemsPerPage(){return Xe(this,Op)[Op]}set itemsPerPage(t){const r=typeof t=="number"||t===void 0||t===null?t:Number(t);Number.isNaN(r)||(Xe(this,Op)[Op]=r)}setItemsPerPage(t){return this.itemsPerPage=t,this}get startIndex(){return Xe(this,Rp)[Rp]}set startIndex(t){const r=typeof t=="number"||t===void 0||t===null?t:Number(t);Number.isNaN(r)||(Xe(this,Rp)[Rp]=r)}setStartIndex(t){return this.startIndex=t,this}get totalItems(){return Xe(this,Pp)[Pp]}set totalItems(t){const r=typeof t=="number"||t===void 0||t===null?t:Number(t);Number.isNaN(r)||(Xe(this,Pp)[Pp]=r)}setTotalItems(t){return this.totalItems=t,this}get totalAvailableItems(){return Xe(this,Ap)[Ap]}set totalAvailableItems(t){const r=typeof t=="number"||t===void 0||t===null?t:Number(t);Number.isNaN(r)||(Xe(this,Ap)[Ap]=r)}setTotalAvailableItems(t){return this.totalAvailableItems=t,this}get pageIndex(){return Xe(this,Np)[Np]}set pageIndex(t){const r=typeof t=="number"||t===void 0||t===null?t:Number(t);Number.isNaN(r)||(Xe(this,Np)[Np]=r)}setPageIndex(t){return this.pageIndex=t,this}get totalPages(){return Xe(this,Mp)[Mp]}set totalPages(t){const r=typeof t=="number"||t===void 0||t===null?t:Number(t);Number.isNaN(r)||(Xe(this,Mp)[Mp]=r)}setTotalPages(t){return this.totalPages=t,this}constructor(t=void 0){if(Object.defineProperty(this,xk,{value:$ge}),Object.defineProperty(this,gp,{writable:!0,value:null}),Object.defineProperty(this,vp,{writable:!0,value:null}),Object.defineProperty(this,yp,{writable:!0,value:void 0}),Object.defineProperty(this,bp,{writable:!0,value:void 0}),Object.defineProperty(this,wp,{writable:!0,value:void 0}),Object.defineProperty(this,Sp,{writable:!0,value:void 0}),Object.defineProperty(this,Ep,{writable:!0,value:void 0}),Object.defineProperty(this,Tp,{writable:!0,value:void 0}),Object.defineProperty(this,Cp,{writable:!0,value:void 0}),Object.defineProperty(this,kp,{writable:!0,value:void 0}),Object.defineProperty(this,xp,{writable:!0,value:void 0}),Object.defineProperty(this,_p,{writable:!0,value:void 0}),Object.defineProperty(this,Op,{writable:!0,value:void 0}),Object.defineProperty(this,Rp,{writable:!0,value:void 0}),Object.defineProperty(this,Pp,{writable:!0,value:void 0}),Object.defineProperty(this,Ap,{writable:!0,value:void 0}),Object.defineProperty(this,Np,{writable:!0,value:void 0}),Object.defineProperty(this,Mp,{writable:!0,value:void 0}),t!=null)if(typeof t=="string")this.applyFromObject(JSON.parse(t));else if(Xe(this,xk)[xk](t))this.applyFromObject(t);else throw new Error("Instance cannot be created on an unknown value, check the content being passed. got: "+typeof t)}applyFromObject(t={}){const n=t;n.item!==void 0&&(this.item=n.item),n.items!==void 0&&(this.items=n.items),n.editLink!==void 0&&(this.editLink=n.editLink),n.selfLink!==void 0&&(this.selfLink=n.selfLink),n.kind!==void 0&&(this.kind=n.kind),n.fields!==void 0&&(this.fields=n.fields),n.etag!==void 0&&(this.etag=n.etag),n.cursor!==void 0&&(this.cursor=n.cursor),n.id!==void 0&&(this.id=n.id),n.lang!==void 0&&(this.lang=n.lang),n.updated!==void 0&&(this.updated=n.updated),n.currentItemCount!==void 0&&(this.currentItemCount=n.currentItemCount),n.itemsPerPage!==void 0&&(this.itemsPerPage=n.itemsPerPage),n.startIndex!==void 0&&(this.startIndex=n.startIndex),n.totalItems!==void 0&&(this.totalItems=n.totalItems),n.totalAvailableItems!==void 0&&(this.totalAvailableItems=n.totalAvailableItems),n.pageIndex!==void 0&&(this.pageIndex=n.pageIndex),n.totalPages!==void 0&&(this.totalPages=n.totalPages)}toJSON(){return{item:Xe(this,gp)[gp],items:Xe(this,vp)[vp],editLink:Xe(this,yp)[yp],selfLink:Xe(this,bp)[bp],kind:Xe(this,wp)[wp],fields:Xe(this,Sp)[Sp],etag:Xe(this,Ep)[Ep],cursor:Xe(this,Tp)[Tp],id:Xe(this,Cp)[Cp],lang:Xe(this,kp)[kp],updated:Xe(this,xp)[xp],currentItemCount:Xe(this,_p)[_p],itemsPerPage:Xe(this,Op)[Op],startIndex:Xe(this,Rp)[Rp],totalItems:Xe(this,Pp)[Pp],totalAvailableItems:Xe(this,Ap)[Ap],pageIndex:Xe(this,Np)[Np],totalPages:Xe(this,Mp)[Mp]}}toString(){return JSON.stringify(this)}static get Fields(){return{item:"item",items:"items",editLink:"editLink",selfLink:"selfLink",kind:"kind",fields:"fields",etag:"etag",cursor:"cursor",id:"id",lang:"lang",updated:"updated",currentItemCount:"currentItemCount",itemsPerPage:"itemsPerPage",startIndex:"startIndex",totalItems:"totalItems",totalAvailableItems:"totalAvailableItems",pageIndex:"pageIndex",totalPages:"totalPages"}}static from(t){return new Ga.Data(t)}static with(t){return new Ga.Data(t)}copyWith(t){return new Ga.Data({...this.toJSON(),...t})}clone(){return new Ga.Data(this.toJSON())}});function $ge(e){const t=globalThis,n=typeof t.Buffer<"u"&&typeof t.Buffer.isBuffer=="function"&&t.Buffer.isBuffer(e),r=typeof t.Blob<"u"&&e instanceof t.Blob;return e&&typeof e=="object"&&!Array.isArray(e)&&!n&&!(e instanceof ArrayBuffer)&&!r}Lo.Error=(Ip=Rn("code"),Dp=Rn("message"),$p=Rn("messageTranslated"),fc=Rn("errors"),Ok=Rn("isJsonAppliable"),_k=class zJ{get code(){return Xe(this,Ip)[Ip]}set code(t){const r=typeof t=="number"?t:Number(t);Number.isNaN(r)||(Xe(this,Ip)[Ip]=r)}setCode(t){return this.code=t,this}get message(){return Xe(this,Dp)[Dp]}set message(t){Xe(this,Dp)[Dp]=String(t)}setMessage(t){return this.message=t,this}get messageTranslated(){return Xe(this,$p)[$p]}set messageTranslated(t){Xe(this,$p)[$p]=String(t)}setMessageTranslated(t){return this.messageTranslated=t,this}get errors(){return Xe(this,fc)[fc]}set errors(t){Array.isArray(t)&&(t.length>0&&t[0]instanceof Ga.Error.Errors?Xe(this,fc)[fc]=t:Xe(this,fc)[fc]=t.map(n=>new Ga.Error.Errors(n)))}setErrors(t){return this.errors=t,this}constructor(t=void 0){if(Object.defineProperty(this,Ok,{value:Fge}),Object.defineProperty(this,Ip,{writable:!0,value:0}),Object.defineProperty(this,Dp,{writable:!0,value:""}),Object.defineProperty(this,$p,{writable:!0,value:""}),Object.defineProperty(this,fc,{writable:!0,value:[]}),t!=null)if(typeof t=="string")this.applyFromObject(JSON.parse(t));else if(Xe(this,Ok)[Ok](t))this.applyFromObject(t);else throw new zJ("Instance cannot be created on an unknown value, check the content being passed. got: "+typeof t)}applyFromObject(t={}){const n=t;n.code!==void 0&&(this.code=n.code),n.message!==void 0&&(this.message=n.message),n.messageTranslated!==void 0&&(this.messageTranslated=n.messageTranslated),n.errors!==void 0&&(this.errors=n.errors)}toJSON(){return{code:Xe(this,Ip)[Ip],message:Xe(this,Dp)[Dp],messageTranslated:Xe(this,$p)[$p],errors:Xe(this,fc)[fc]}}toString(){return JSON.stringify(this)}static get Fields(){return{code:"code",message:"message",messageTranslated:"messageTranslated",errors$:"errors",get errors(){return XL("error.errors[:i]",Ga.Error.Errors.Fields)}}}static from(t){return new Ga.Error(t)}static with(t){return new Ga.Error(t)}copyWith(t){return new Ga.Error({...this.toJSON(),...t})}clone(){return new Ga.Error(this.toJSON())}},_k.Errors=(Lp=Rn("domain"),Fp=Rn("reason"),jp=Rn("message"),Up=Rn("messageTranslated"),Bp=Rn("location"),Wp=Rn("locationType"),zp=Rn("extendedHelp"),qp=Rn("sendReport"),Rk=Rn("isJsonAppliable"),class{get domain(){return Xe(this,Lp)[Lp]}set domain(t){const n=typeof t=="string"||t===void 0||t===null;Xe(this,Lp)[Lp]=n?t:String(t)}setDomain(t){return this.domain=t,this}get reason(){return Xe(this,Fp)[Fp]}set reason(t){const n=typeof t=="string"||t===void 0||t===null;Xe(this,Fp)[Fp]=n?t:String(t)}setReason(t){return this.reason=t,this}get message(){return Xe(this,jp)[jp]}set message(t){const n=typeof t=="string"||t===void 0||t===null;Xe(this,jp)[jp]=n?t:String(t)}setMessage(t){return this.message=t,this}get messageTranslated(){return Xe(this,Up)[Up]}set messageTranslated(t){const n=typeof t=="string"||t===void 0||t===null;Xe(this,Up)[Up]=n?t:String(t)}setMessageTranslated(t){return this.messageTranslated=t,this}get location(){return Xe(this,Bp)[Bp]}set location(t){const n=typeof t=="string"||t===void 0||t===null;Xe(this,Bp)[Bp]=n?t:String(t)}setLocation(t){return this.location=t,this}get locationType(){return Xe(this,Wp)[Wp]}set locationType(t){const n=typeof t=="string"||t===void 0||t===null;Xe(this,Wp)[Wp]=n?t:String(t)}setLocationType(t){return this.locationType=t,this}get extendedHelp(){return Xe(this,zp)[zp]}set extendedHelp(t){const n=typeof t=="string"||t===void 0||t===null;Xe(this,zp)[zp]=n?t:String(t)}setExtendedHelp(t){return this.extendedHelp=t,this}get sendReport(){return Xe(this,qp)[qp]}set sendReport(t){const n=typeof t=="string"||t===void 0||t===null;Xe(this,qp)[qp]=n?t:String(t)}setSendReport(t){return this.sendReport=t,this}constructor(t=void 0){if(Object.defineProperty(this,Rk,{value:Lge}),Object.defineProperty(this,Lp,{writable:!0,value:void 0}),Object.defineProperty(this,Fp,{writable:!0,value:void 0}),Object.defineProperty(this,jp,{writable:!0,value:void 0}),Object.defineProperty(this,Up,{writable:!0,value:void 0}),Object.defineProperty(this,Bp,{writable:!0,value:void 0}),Object.defineProperty(this,Wp,{writable:!0,value:void 0}),Object.defineProperty(this,zp,{writable:!0,value:void 0}),Object.defineProperty(this,qp,{writable:!0,value:void 0}),t!=null)if(typeof t=="string")this.applyFromObject(JSON.parse(t));else if(Xe(this,Rk)[Rk](t))this.applyFromObject(t);else throw new _k("Instance cannot be created on an unknown value, check the content being passed. got: "+typeof t)}applyFromObject(t={}){const n=t;n.domain!==void 0&&(this.domain=n.domain),n.reason!==void 0&&(this.reason=n.reason),n.message!==void 0&&(this.message=n.message),n.messageTranslated!==void 0&&(this.messageTranslated=n.messageTranslated),n.location!==void 0&&(this.location=n.location),n.locationType!==void 0&&(this.locationType=n.locationType),n.extendedHelp!==void 0&&(this.extendedHelp=n.extendedHelp),n.sendReport!==void 0&&(this.sendReport=n.sendReport)}toJSON(){return{domain:Xe(this,Lp)[Lp],reason:Xe(this,Fp)[Fp],message:Xe(this,jp)[jp],messageTranslated:Xe(this,Up)[Up],location:Xe(this,Bp)[Bp],locationType:Xe(this,Wp)[Wp],extendedHelp:Xe(this,zp)[zp],sendReport:Xe(this,qp)[qp]}}toString(){return JSON.stringify(this)}static get Fields(){return{domain:"domain",reason:"reason",message:"message",messageTranslated:"messageTranslated",location:"location",locationType:"locationType",extendedHelp:"extendedHelp",sendReport:"sendReport"}}static from(t){return new Ga.Error.Errors(t)}static with(t){return new Ga.Error.Errors(t)}copyWith(t){return new Ga.Error.Errors({...this.toJSON(),...t})}clone(){return new Ga.Error.Errors(this.toJSON())}}),_k);function Lge(e){const t=globalThis,n=typeof t.Buffer<"u"&&typeof t.Buffer.isBuffer=="function"&&t.Buffer.isBuffer(e),r=typeof t.Blob<"u"&&e instanceof t.Blob;return e&&typeof e=="object"&&!Array.isArray(e)&&!n&&!(e instanceof ArrayBuffer)&&!r}function Fge(e){const t=globalThis,n=typeof t.Buffer<"u"&&typeof t.Buffer.isBuffer=="function"&&t.Buffer.isBuffer(e),r=typeof t.Blob<"u"&&e instanceof t.Blob;return e&&typeof e=="object"&&!Array.isArray(e)&&!n&&!(e instanceof ArrayBuffer)&&!r}class so extends Lo{constructor(t){super(t),this.creator=void 0}setCreator(t){return this.creator=t,this}inject(t){var n,r,a,i,o,l,u,d;return this.applyFromObject(t),t!=null&&t.data&&(this.data||this.setData({}),Array.isArray(t==null?void 0:t.data.items)&&typeof this.creator<"u"&&this.creator!==null?(a=this.data)==null||a.setItems((r=(n=t==null?void 0:t.data)==null?void 0:n.items)==null?void 0:r.map(f=>{var g;return(g=this.creator)==null?void 0:g.call(this,f)})):typeof((i=t==null?void 0:t.data)==null?void 0:i.item)=="object"&&typeof this.creator<"u"&&this.creator!==null?(l=this.data)==null||l.setItem(this.creator((o=t==null?void 0:t.data)==null?void 0:o.item)):(d=this.data)==null||d.setItem((u=t==null?void 0:t.data)==null?void 0:u.item)),this}}function Wo(e,t,n){if(n&&n instanceof URLSearchParams)e+=`?${n.toString()}`;else if(n&&Object.keys(n).length){const r=new URLSearchParams(Object.entries(n).map(([a,i])=>[a,String(i)])).toString();e+=`?${r}`}return e}async function zo(e,t,n){let r=e.toString(),a=t||{},i,o=fetch;return n&&([r,a]=await n.apply(r,a),n.fetchOverrideFn&&(o=n.fetchOverrideFn)),i=await o(r,a),n&&(i=await n.handle(i)),i}function jge(e){return typeof e=="function"&&e.prototype&&e.prototype.constructor===e}async function qo(e,t,n,r){const a=e.headers.get("content-type")||"",i=e.headers.get("content-disposition")||"";if(a.includes("text/event-stream"))return Uge(e,n,r);if(i.includes("attachment")||!a.includes("json")&&!a.startsWith("text/"))e.result=e.body;else if(a.includes("application/json")){const o=await e.json();t?jge(t)?e.result=new t(o):e.result=t(o):e.result=o}else e.result=await e.text();return{done:Promise.resolve(),response:e}}const Uge=(e,t,n)=>{if(!e.body)throw new Error("SSE requires readable body");const r=e.body.getReader(),a=new TextDecoder;let i="";const o=new Promise((l,u)=>{function d(){r.read().then(({done:f,value:g})=>{if(n!=null&&n.aborted)return r.cancel(),l();if(f)return l();i+=a.decode(g,{stream:!0});const y=i.split(` + +`);i=y.pop()||"";for(const h of y){let v="",E="message";if(h.split(` +`).forEach(T=>{T.startsWith("data:")?v+=T.slice(5).trim():T.startsWith("event:")&&(E=T.slice(6).trim())}),v){if(v==="[DONE]")return l();t==null||t(new MessageEvent(E,{data:v}))}}d()}).catch(f=>{f.name==="AbortError"?l():u(f)})}d()});return{response:e,done:o}};class JF{constructor(t="",n={},r,a,i=null){this.baseUrl=t,this.defaultHeaders=n,this.requestInterceptor=r,this.responseInterceptor=a,this.fetchOverrideFn=i}async apply(t,n){return/^https?:\/\//.test(t)||(t=this.baseUrl+t),n.headers={...this.defaultHeaders,...n.headers||{}},this.requestInterceptor?this.requestInterceptor(t,n):[t,n]}async handle(t){return this.responseInterceptor?this.responseInterceptor(t):t}clone(t){return new JF((t==null?void 0:t.baseUrl)??this.baseUrl,{...this.defaultHeaders,...(t==null?void 0:t.defaultHeaders)||{}},(t==null?void 0:t.requestInterceptor)??this.requestInterceptor,(t==null?void 0:t.responseInterceptor)??this.responseInterceptor)}}const qJ=R.createContext(null),Bge=qJ.Provider;function Ho(){return R.useContext(qJ)}function Pc(e,t){const n={};for(const[r,a]of Object.entries(t))typeof a=="string"?n[r]=`${e}.${a}`:typeof a=="object"&&a!==null&&(n[r]=a);return n}var yE,j1,Hp,Vp,Gp,Pk;function na(e,t){if(!{}.hasOwnProperty.call(e,t))throw new TypeError("attempted to use private field on non-instance");return e}var Wge=0;function Fd(e){return"__private_"+Wge+++"_"+e}const z_=e=>{const t=Ho(),n=(e==null?void 0:e.ctx)??t??void 0,[r,a]=R.useState(!1),[i,o]=R.useState(),l=()=>(a(!1),qd.Fetch({headers:e==null?void 0:e.headers},{creatorFn:e==null?void 0:e.creatorFn,qs:e==null?void 0:e.qs,ctx:n,onMessage:e==null?void 0:e.onMessage,overrideUrl:e==null?void 0:e.overrideUrl}).then(d=>(d.done.then(()=>{a(!0)}),o(d.response),d.response.result)));return{...jn({queryKey:[qd.NewUrl(e==null?void 0:e.qs)],queryFn:l,...e||{}}),isCompleted:r,response:i}};class qd{}yE=qd;qd.URL="/urw/query";qd.NewUrl=e=>Wo(yE.URL,void 0,e);qd.Method="get";qd.Fetch$=async(e,t,n,r)=>zo(r??yE.NewUrl(e),{method:yE.Method,...n||{}},t);qd.Fetch=async(e,{creatorFn:t,qs:n,ctx:r,onMessage:a,overrideUrl:i}={creatorFn:o=>new xl(o)})=>{t=t||(l=>new xl(l));const o=await yE.Fetch$(n,r,e,i);return qo(o,l=>{const u=new so;return t&&u.setCreator(t),u.inject(l),u},a,e==null?void 0:e.signal)};qd.Definition={name:"QueryUserRoleWorkspaces",cliName:"urw",url:"/urw/query",method:"get",description:"Returns the workspaces that user belongs to, as well as his role in there, and the permissions for each role",out:{envelope:"GResponse",fields:[{name:"name",type:"string"},{name:"capabilities",description:"Workspace level capabilities which are available",type:"slice",primitive:"string"},{name:"uniqueId",type:"string"},{name:"roles",type:"array",fields:[{name:"name",type:"string"},{name:"uniqueId",type:"string"},{name:"capabilities",description:"Capabilities related to this role which are available",type:"slice",primitive:"string"}]}]}};var Qm=Fd("name"),Jm=Fd("capabilities"),Zm=Fd("uniqueId"),hd=Fd("roles"),dA=Fd("isJsonAppliable");class xl{get name(){return na(this,Qm)[Qm]}set name(t){na(this,Qm)[Qm]=String(t)}setName(t){return this.name=t,this}get capabilities(){return na(this,Jm)[Jm]}set capabilities(t){na(this,Jm)[Jm]=t}setCapabilities(t){return this.capabilities=t,this}get uniqueId(){return na(this,Zm)[Zm]}set uniqueId(t){na(this,Zm)[Zm]=String(t)}setUniqueId(t){return this.uniqueId=t,this}get roles(){return na(this,hd)[hd]}set roles(t){Array.isArray(t)&&(t.length>0&&t[0]instanceof xl.Roles?na(this,hd)[hd]=t:na(this,hd)[hd]=t.map(n=>new xl.Roles(n)))}setRoles(t){return this.roles=t,this}constructor(t=void 0){if(Object.defineProperty(this,dA,{value:zge}),Object.defineProperty(this,Qm,{writable:!0,value:""}),Object.defineProperty(this,Jm,{writable:!0,value:[]}),Object.defineProperty(this,Zm,{writable:!0,value:""}),Object.defineProperty(this,hd,{writable:!0,value:[]}),t!=null)if(typeof t=="string")this.applyFromObject(JSON.parse(t));else if(na(this,dA)[dA](t))this.applyFromObject(t);else throw new Error("Instance cannot be created on an unknown value, check the content being passed. got: "+typeof t)}applyFromObject(t={}){const n=t;n.name!==void 0&&(this.name=n.name),n.capabilities!==void 0&&(this.capabilities=n.capabilities),n.uniqueId!==void 0&&(this.uniqueId=n.uniqueId),n.roles!==void 0&&(this.roles=n.roles)}toJSON(){return{name:na(this,Qm)[Qm],capabilities:na(this,Jm)[Jm],uniqueId:na(this,Zm)[Zm],roles:na(this,hd)[hd]}}toString(){return JSON.stringify(this)}static get Fields(){return{name:"name",capabilities$:"capabilities",get capabilities(){return"capabilities[:i]"},uniqueId:"uniqueId",roles$:"roles",get roles(){return Pc("roles[:i]",xl.Roles.Fields)}}}static from(t){return new xl(t)}static with(t){return new xl(t)}copyWith(t){return new xl({...this.toJSON(),...t})}clone(){return new xl(this.toJSON())}}j1=xl;function zge(e){const t=globalThis,n=typeof t.Buffer<"u"&&typeof t.Buffer.isBuffer=="function"&&t.Buffer.isBuffer(e),r=typeof t.Blob<"u"&&e instanceof t.Blob;return e&&typeof e=="object"&&!Array.isArray(e)&&!n&&!(e instanceof ArrayBuffer)&&!r}xl.Roles=(Hp=Fd("name"),Vp=Fd("uniqueId"),Gp=Fd("capabilities"),Pk=Fd("isJsonAppliable"),class{get name(){return na(this,Hp)[Hp]}set name(t){na(this,Hp)[Hp]=String(t)}setName(t){return this.name=t,this}get uniqueId(){return na(this,Vp)[Vp]}set uniqueId(t){na(this,Vp)[Vp]=String(t)}setUniqueId(t){return this.uniqueId=t,this}get capabilities(){return na(this,Gp)[Gp]}set capabilities(t){na(this,Gp)[Gp]=t}setCapabilities(t){return this.capabilities=t,this}constructor(t=void 0){if(Object.defineProperty(this,Pk,{value:qge}),Object.defineProperty(this,Hp,{writable:!0,value:""}),Object.defineProperty(this,Vp,{writable:!0,value:""}),Object.defineProperty(this,Gp,{writable:!0,value:[]}),t!=null)if(typeof t=="string")this.applyFromObject(JSON.parse(t));else if(na(this,Pk)[Pk](t))this.applyFromObject(t);else throw new Error("Instance cannot be created on an unknown value, check the content being passed. got: "+typeof t)}applyFromObject(t={}){const n=t;n.name!==void 0&&(this.name=n.name),n.uniqueId!==void 0&&(this.uniqueId=n.uniqueId),n.capabilities!==void 0&&(this.capabilities=n.capabilities)}toJSON(){return{name:na(this,Hp)[Hp],uniqueId:na(this,Vp)[Vp],capabilities:na(this,Gp)[Gp]}}toString(){return JSON.stringify(this)}static get Fields(){return{name:"name",uniqueId:"uniqueId",capabilities$:"capabilities",get capabilities(){return"roles.capabilities[:i]"}}}static from(t){return new j1.Roles(t)}static with(t){return new j1.Roles(t)}copyWith(t){return new j1.Roles({...this.toJSON(),...t})}clone(){return new j1.Roles(this.toJSON())}});function qge(e){const t=globalThis,n=typeof t.Buffer<"u"&&typeof t.Buffer.isBuffer=="function"&&t.Buffer.isBuffer(e),r=typeof t.Blob<"u"&&e instanceof t.Blob;return e&&typeof e=="object"&&!Array.isArray(e)&&!n&&!(e instanceof ArrayBuffer)&&!r}function HJ(e){var u,d,f,g,y,h;const t=Gs(),{selectedUrw:n}=R.useContext(it),r=z_({cacheTime:50}),{query:a}=WJ({queryClient:t,queryOptions:{refetchOnWindowFocus:!1,enabled:!r.isError&&r.isSuccess},query:{itemsPerPage:9999}}),{locale:i}=sr();R.useEffect(()=>{a.refetch()},[i]);let o=[];const l=v=>{var E,T;return v?qhe(n,((T=(E=r.data)==null?void 0:E.data)==null?void 0:T.items)||[],v):!0};return(d=(u=a.data)==null?void 0:u.data)!=null&&d.items&&((g=(f=a.data)==null?void 0:f.data)!=null&&g.items.length)&&(o=(h=(y=a.data)==null?void 0:y.data)==null?void 0:h.items.map(v=>YJ(v,l)).filter(Boolean)),o}function Hge({onClick:e}){const{isAuthenticated:t,signout:n}=R.useContext(it),r=xr(),a=At(),i=Gs(),o=()=>{e(),n(),i.setQueriesData("*fireback.UserRoleWorkspace",[]),kr.NAVIGATE_ON_SIGNOUT&&r.push(kr.NAVIGATE_ON_SIGNOUT,kr.NAVIGATE_ON_SIGNOUT)},l=()=>{confirm("Are you sure to leave the app?")&&o()};return t?w.jsx("div",{className:"sidebar-menu-particle mt-5",children:w.jsx("ul",{className:"nav nav-pills flex-column mb-auto",children:w.jsx("li",{className:"nav-item",children:w.jsx("a",{onClick:l,className:"nav-link text-white",children:w.jsxs("span",{children:[w.jsx("img",{className:"menu-icon",src:qs(Ru.turnoff)}),w.jsx("span",{className:"nav-link-text",children:a.currentUser.signout})]})})})})}):w.jsxs(Ml,{className:"user-signin-section",href:"/signin",onClick:e,children:[w.jsx("img",{src:kr.PUBLIC_URL+"/common/user.svg"}),a.currentUser.signin]})}function i8({item:e}){return w.jsxs("span",{children:[e.icon&&w.jsx("img",{className:"menu-icon",src:qs(e.icon)}),e.color&&!e.icon?w.jsx("span",{className:"tag-circle",style:{backgroundColor:e.color}}):null,w.jsx("span",{className:"nav-link-text",children:e.label})]})}class oa extends wn{constructor(...t){super(...t),this.children=void 0,this.firstName=void 0,this.lastName=void 0,this.photo=void 0,this.gender=void 0,this.title=void 0,this.birthDate=void 0,this.avatar=void 0,this.lastIpAddress=void 0,this.primaryAddress=void 0}}oa.Navigation={edit(e,t){return`${t?"/"+t:".."}/user/edit/${e}`},create(e){return`${e?"/"+e:".."}/user/new`},single(e,t){return`${t?"/"+t:".."}/user/${e}`},query(e={},t){return`${t?"/"+t:".."}/users`},Redit:"user/edit/:uniqueId",Rcreate:"user/new",Rsingle:"user/:uniqueId",Rquery:"users",rPrimaryAddressCreate:"user/:linkerId/primary_address/new",rPrimaryAddressEdit:"user/:linkerId/primary_address/edit/:uniqueId",editPrimaryAddress(e,t,n){return`${n?"/"+n:""}/user/${e}/primary_address/edit/${t}`},createPrimaryAddress(e,t){return`${t?"/"+t:""}/user/${e}/primary_address/new`}};oa.definition={events:[{name:"Googoli2",description:"Googlievent",payload:{fields:[{name:"entity",type:"string",computedType:"string",gormMap:{}}]}}],rpc:{query:{qs:[{name:"withImages",type:"bool?",gormMap:{}}]}},permRewrite:{replace:"root.modules",with:"root.manage"},name:"user",features:{},security:{writeOnRoot:!0},gormMap:{},fields:[{name:"firstName",type:"string",validate:"required",computedType:"string",gormMap:{}},{name:"lastName",type:"string",validate:"required",computedType:"string",gormMap:{}},{name:"photo",type:"string",computedType:"string",gormMap:{}},{name:"gender",type:"int?",computedType:"number",gormMap:{}},{name:"title",type:"string",computedType:"string",gormMap:{}},{name:"birthDate",type:"date",computedType:"Date",gormMap:{}},{name:"avatar",type:"string",computedType:"string",gormMap:{}},{name:"lastIpAddress",description:"User last connecting ip address",type:"string",computedType:"string",gormMap:{}},{name:"primaryAddress",description:"User primary address location. Can be useful for simple projects that a user is associated with a single address.",type:"object",computedType:"UserPrimaryAddress",gormMap:{},"-":"UserPrimaryAddress",fields:[{name:"addressLine1",description:"Street address, building number",type:"string",computedType:"string",gormMap:{}},{name:"addressLine2",description:"Apartment, suite, floor (optional)",type:"string?",computedType:"string",gormMap:{}},{name:"city",description:"City or locality",type:"string?",computedType:"string",gormMap:{}},{name:"stateOrProvince",description:"State, region, or province",type:"string?",computedType:"string",gormMap:{}},{name:"postalCode",description:"ZIP or postal code",type:"string?",computedType:"string",gormMap:{}},{name:"countryCode",description:'ISO 3166-1 alpha-2 (e.g., \\"US\\", \\"DE\\")',type:"string?",computedType:"string",gormMap:{}}],linkedTo:"UserEntity"}],description:"Manage the users who are in the current app (root only)"};oa.Fields={...wn.Fields,firstName:"firstName",lastName:"lastName",photo:"photo",gender:"gender",title:"title",birthDate:"birthDate",avatar:"avatar",lastIpAddress:"lastIpAddress",primaryAddress$:"primaryAddress",primaryAddress:{...wn.Fields,addressLine1:"primaryAddress.addressLine1",addressLine2:"primaryAddress.addressLine2",city:"primaryAddress.city",stateOrProvince:"primaryAddress.stateOrProvince",postalCode:"primaryAddress.postalCode",countryCode:"primaryAddress.countryCode"}};class ai extends wn{constructor(...t){super(...t),this.children=void 0,this.name=void 0,this.capabilities=void 0,this.capabilitiesListId=void 0}}ai.Navigation={edit(e,t){return`${t?"/"+t:".."}/role/edit/${e}`},create(e){return`${e?"/"+e:".."}/role/new`},single(e,t){return`${t?"/"+t:".."}/role/${e}`},query(e={},t){return`${t?"/"+t:".."}/roles`},Redit:"role/edit/:uniqueId",Rcreate:"role/new",Rsingle:"role/:uniqueId",Rquery:"roles"};ai.definition={rpc:{query:{}},name:"role",features:{},messages:{roleNeedsOneCapability:{en:"Role atleast needs one capability to be selected."}},gormMap:{},fields:[{name:"name",type:"string",validate:"required,omitempty,min=1,max=200",computedType:"string",gormMap:{}},{name:"capabilities",type:"collection",target:"CapabilityEntity",module:"fireback",computedType:"CapabilityEntity[]",gormMap:{}}],description:"Manage roles within the workspaces, or root configuration"};ai.Fields={...wn.Fields,name:"name",capabilitiesListId:"capabilitiesListId",capabilities$:"capabilities",capabilities:yi.Fields};class eo extends wn{constructor(...t){super(...t),this.children=void 0,this.title=void 0,this.description=void 0,this.slug=void 0,this.role=void 0,this.roleId=void 0}}eo.Navigation={edit(e,t){return`${t?"/"+t:".."}/workspace-type/edit/${e}`},create(e){return`${e?"/"+e:".."}/workspace-type/new`},single(e,t){return`${t?"/"+t:".."}/workspace-type/${e}`},query(e={},t){return`${t?"/"+t:".."}/workspace-types`},Redit:"workspace-type/edit/:uniqueId",Rcreate:"workspace-type/new",Rsingle:"workspace-type/:uniqueId",Rquery:"workspace-types"};eo.definition={rpc:{query:{}},permRewrite:{replace:"root.modules",with:"root.manage"},name:"workspaceType",features:{mock:!1,msync:!1},security:{writeOnRoot:!0,readOnRoot:!0},messages:{cannotCreateWorkspaceType:{en:"You cannot create workspace type due to some validation errors."},cannotModifyWorkspaceType:{en:"You cannot modify workspace type due to some validation errors."},onlyRootRoleIsAccepted:{en:"You can only select a role which is created or belong to 'root' workspace."},roleIsNecessary:{en:"Role needs to be defined and exist."},roleIsNotAccessible:{en:"Role is not accessible unfortunately. Make sure you the role chose exists."},roleNeedsToHaveCapabilities:{en:"Role needs to have at least one capability before could be assigned."}},gormMap:{},fields:[{name:"title",type:"string",validate:"required,omitempty,min=1,max=250",translate:!0,computedType:"string",gormMap:{}},{name:"description",type:"string",translate:!0,computedType:"string",gormMap:{}},{name:"slug",type:"string",validate:"required,omitempty,min=2,max=50",computedType:"string",gormMap:{}},{name:"role",description:"The role which will be used to define the functionality of this workspace, Role needs to be created before hand, and only roles which belong to root workspace are possible to be selected",type:"one",target:"RoleEntity",validate:"required",computedType:"RoleEntity",gormMap:{}}],cliName:"type",description:"Defines a type for workspace, and the role which it can have as a whole. In systems with multiple types of services, e.g. student, teachers, schools this is useful to set those default types and limit the access of the users."};eo.Fields={...wn.Fields,title:"title",description:"description",slug:"slug",roleId:"roleId",role$:"role",role:ai.Fields};class bi extends wn{constructor(...t){super(...t),this.children=void 0,this.description=void 0,this.name=void 0,this.type=void 0,this.typeId=void 0}}bi.Navigation={edit(e,t){return`${t?"/"+t:".."}/workspace/edit/${e}`},create(e){return`${e?"/"+e:".."}/workspace/new`},single(e,t){return`${t?"/"+t:".."}/workspace/${e}`},query(e={},t){return`${t?"/"+t:".."}/workspaces`},Redit:"workspace/edit/:uniqueId",Rcreate:"workspace/new",Rsingle:"workspace/:uniqueId",Rquery:"workspaces"};bi.definition={rpc:{query:{}},permRewrite:{replace:"root.modules",with:"root.manage"},name:"workspace",features:{},security:{writeOnRoot:!0,readOnRoot:!0},gormMap:{},fields:[{name:"description",type:"string",computedType:"string",gormMap:{}},{name:"name",type:"string",validate:"required",computedType:"string",gormMap:{}},{name:"type",type:"one",target:"WorkspaceTypeEntity",validate:"required",computedType:"WorkspaceTypeEntity",gormMap:{}}],cliName:"ws",description:"Fireback general user role, workspaces services.",cte:!0};bi.Fields={...wn.Fields,description:"description",name:"name",typeId:"typeId",type$:"type",type:eo.Fields};class v0 extends wn{constructor(...t){super(...t),this.children=void 0,this.user=void 0,this.workspace=void 0,this.userPermissions=void 0,this.rolePermission=void 0,this.workspacePermissions=void 0}}v0.Navigation={edit(e,t){return`${t?"/"+t:".."}/user-workspace/edit/${e}`},create(e){return`${e?"/"+e:".."}/user-workspace/new`},single(e,t){return`${t?"/"+t:".."}/user-workspace/${e}`},query(e={},t){return`${t?"/"+t:".."}/user-workspaces`},Redit:"user-workspace/edit/:uniqueId",Rcreate:"user-workspace/new",Rsingle:"user-workspace/:uniqueId",Rquery:"user-workspaces"};v0.definition={rpc:{query:{}},permRewrite:{replace:"root.modules",with:"root.manage"},name:"userWorkspace",features:{},security:{resolveStrategy:"user"},gormMap:{workspaceId:"index:userworkspace_idx,unique",userId:"index:userworkspace_idx,unique"},fields:[{name:"user",type:"one",target:"UserEntity",computedType:"UserEntity",gormMap:{}},{name:"workspace",type:"one",target:"WorkspaceEntity",computedType:"WorkspaceEntity",gormMap:{}},{name:"userPermissions",type:"slice",primitive:"string",computedType:"string[]",gorm:"-",gormMap:{},sql:"-"},{name:"rolePermission",type:"slice",primitive:"UserRoleWorkspaceDto",computedType:"unknown[]",gorm:"-",gormMap:{},sql:"-"},{name:"workspacePermissions",type:"slice",primitive:"string",computedType:"string[]",gorm:"-",gormMap:{},sql:"-"}],cliShort:"user",description:"Manage the workspaces that user belongs to (either its himselves or adding by invitation)"};v0.Fields={...wn.Fields,user$:"user",user:oa.Fields,workspace$:"workspace",workspace:bi.Fields,userPermissions:"userPermissions",rolePermission:"rolePermission",workspacePermissions:"workspacePermissions"};function ZF({queryOptions:e,query:t,queryClient:n,execFnOverride:r,unauthorized:a,optionFn:i}){var k,_,A;const{options:o,execFn:l}=R.useContext(it),u=i?i(o):o,d=r?r(u):l?l(u):Tt(u);let g=`${"/user-workspaces".substr(1)}?${oi.stringify(t)}`;const y=()=>d("GET",g),h=(k=u==null?void 0:u.headers)==null?void 0:k.authorization,v=h!="undefined"&&h!=null&&h!=null&&h!="null"&&!!h;let E=!0;!v&&!a&&(E=!1);const T=jn(["*abac.UserWorkspaceEntity",u,t],y,{cacheTime:1e3,retry:!1,keepPreviousData:!0,enabled:E,...e||{}}),C=((A=(_=T.data)==null?void 0:_.data)==null?void 0:A.items)||[];return{query:T,items:C,keyExtractor:P=>P.uniqueId}}ZF.UKEY="*abac.UserWorkspaceEntity";function Vge(e,t){var a;let n=!1;const r=(a=e.children)==null?void 0:a.map(i=>{let o=i.activeMatcher?i.activeMatcher.test(t.asPath):void 0;i.forceActive&&(o=!0);let l=i.displayFn?i.displayFn({location:"here",asPath:t.asPath,selectedUrw:t.urw,userRoleWorkspaces:t.urws}):!0;return l&&(n=!0),{...i,isActive:o||!1,isVisible:l}});return n===!1&&!e.href?null:{name:e.label,href:e.href,children:r}}function o8({menu:e,onClick:t}){var l,u,d;const{asPath:n}=sr(),r=Gs(),{selectedUrw:a}=R.useContext(it),{query:i}=ZF({queryClient:r,query:{},queryOptions:{refetchOnWindowFocus:!1,cacheTime:0}}),o=Vge(e,{asPath:n,urw:a,urws:((u=(l=i.data)==null?void 0:l.data)==null?void 0:u.items)||[]});return o?w.jsx("div",{className:"sidebar-menu-particle",onClick:t,children:((d=e.children)==null?void 0:d.length)>0?w.jsxs(w.Fragment,{children:[w.jsx("span",{className:"d-flex align-items-center mb-3 mb-md-0 me-md-auto text-white text-decoration-none",children:w.jsx("span",{className:"category",children:e.label})}),w.jsx(VJ,{items:o.children})]}):w.jsx(w.Fragment,{children:w.jsx(GJ,{item:e})})}):null}function VJ({items:e}){return w.jsx("ul",{className:"nav nav-pills flex-column mb-auto",children:e.map(t=>w.jsx(GJ,{item:t},t.label+"_"+t.href))})}function GJ({item:e}){return w.jsxs("li",{className:sa("nav-item"),children:[e.href&&!e.onClick?w.jsx(g0,{replace:!0,href:e.href,className:"nav-link","aria-current":"page",forceActive:e.isActive,scroll:null,inActiveClassName:"text-white",activeClassName:"active",children:w.jsx(i8,{item:e})}):w.jsx("a",{className:sa("nav-link",e.isActive&&"active"),onClick:e.onClick,children:w.jsx(i8,{item:e})}),e.children&&w.jsx(VJ,{items:e.children})]},e.label)}function Gge(){var l,u;const e=At(),{selectedUrw:t,selectUrw:n}=R.useContext(it),a=((u=(l=z_({cacheTime:50}).data)==null?void 0:l.data)==null?void 0:u.items)||[],i=a.map(d=>d.uniqueId).join("-")+"_"+(t==null?void 0:t.roleId)+"_"+(t==null?void 0:t.workspaceId);return{menus:R.useMemo(()=>{const d=[];return a.forEach(f=>{f.roles.forEach(g=>{d.push({key:`${g.uniqueId}_${f.uniqueId}`,label:`${f.name} (${g.name})`,children:[],forceActive:(t==null?void 0:t.roleId)===g.uniqueId&&(t==null?void 0:t.workspaceId)===f.uniqueId,color:f.uniqueId==="root"?IL.Orange:IL.Green,onClick:()=>{n({roleId:g.uniqueId,workspaceId:f.uniqueId})}})})}),[{label:e.wokspaces.sidetitle,children:d.sort((f,g)=>f.key!0){if(!t(e.capabilityId))return null;const n=(e.children||[]).map(r=>YJ(r,t)).filter(Boolean);return{label:e.label||"",children:n,displayFn:Yge(),icon:e.icon,href:e.href,activeMatcher:e.activeMatcher?new RegExp(e.activeMatcher):void 0}}function Yge(e){return()=>!0}function Kge({miniSize:e,onClose:t,sidebarItemSelectedExtra:n}){var g;const{sidebarVisible:r,toggleSidebar:a,sidebarItemSelected:i}=dy(),o=HJ(),{reset:l}=R.useContext(U_),u=()=>{l(),a()};if(!o)return null;let d=[];Array.isArray(o)?d=[...o]:(g=o.children)!=null&&g.length&&d.push(o);const{menus:f}=Gge();return d.push(f[0]),w.jsxs("div",{"data-wails-drag":!0,className:sa(e?"sidebar-extra-small":"","sidebar",r?"open":"","scrollable-element",vh().isMobileView?"has-bottom-tab":void 0),children:[w.jsx("button",{className:"sidebar-close",onClick:()=>t?t():u(),children:w.jsx("img",{src:qs(Ru.cancel)})}),d.map(y=>w.jsx(o8,{onClick:()=>{i(),n==null||n()},menu:y},y.label)),kr.GITHUB_DEMO==="true"&&w.jsx(o8,{onClick:()=>{i(),n==null||n()},menu:{label:"Demo",children:[{label:"Form select",icon:"/ios-theme/icons/settings.svg",children:[],href:"/demo/form-select"},{label:"Form Date/Time",icon:"/ios-theme/icons/settings.svg",children:[],href:"/demo/form-date"},{label:"Overlays & Modal",icon:"/ios-theme/icons/settings.svg",children:[],href:"/demo/modals"}]}}),w.jsx(Hge,{onClick:()=>{i(),n==null||n()}})]})}const KJ=ze.memo(Kge);function Xge({menu:e,isSecondary:t,routerId:n}){const{toggleSidebar:r,closeCurrentRouter:a}=dy(),{openDrawer:i}=GF();return W0(Ir.SidebarToggle,()=>{r()}),w.jsx("nav",{className:"navbar navbar-expand-lg navbar-light",style:{"--wails-draggable":"drag"},children:w.jsxs("div",{className:"container-fluid",children:[w.jsx("div",{className:"page-navigator",children:n==="url-router"?w.jsx("button",{className:"navbar-menu-icon",onClick:()=>vh().isMobileView?i(({close:o})=>w.jsx(KJ,{sidebarItemSelectedExtra:o,onClose:o,miniSize:!1}),{speed:180,direction:"left"}):r(),children:w.jsx("img",{src:qs(Ru.menu)})}):w.jsx("button",{className:"navbar-menu-icon",onClick:()=>a(n),children:w.jsx("img",{src:qs(Ru.cancel)})})}),w.jsx(qL,{filter:({id:o})=>o==="navigation"}),w.jsx("div",{className:"page-navigator"}),w.jsx("span",{className:"navbar-brand",children:w.jsx(hme,{})}),ML()==="web"&&w.jsx("button",{className:"navbar-toggler",type:"button","data-bs-toggle":"collapse","data-bs-target":"#navbarSupportedContent","aria-controls":"navbarSupportedContent","aria-expanded":"false","aria-label":"Toggle navigation",children:w.jsx("span",{className:"navbar-toggler-icon"})}),w.jsxs("div",{className:ML()==="web"?"collapse navbar-collapse":"",id:"navbarSupportedContent",children:[w.jsx("ul",{className:"navbar-nav ms-auto mb-2 mb-lg-0",children:((e==null?void 0:e.children)||[]).map(o=>{var l;return w.jsx("li",{className:sa("nav-item",((l=o.children)==null?void 0:l.length)&&"dropdown"),children:o.children.length?w.jsxs(w.Fragment,{children:[w.jsx(g0,{className:"nav-link dropdown-toggle",href:o.href,id:"navbarDropdown",role:"button","data-bs-toggle":"dropdown","aria-expanded":"false",children:w.jsx("span",{children:o.label})}),(o!=null&&o.children,w.jsx("ul",{className:"dropdown-menu","aria-labelledby":"navbarDropdown",children:((o==null?void 0:o.children)||[]).map(u=>{var d;return w.jsx("li",{className:sa("nav-item",((d=u.children)==null?void 0:d.length)&&"dropdown"),children:w.jsx(g0,{className:"dropdown-item",href:u.href,children:w.jsx("span",{children:u.label})})},`${u.label}_${u.href}`)})}))]}):w.jsx(g0,{className:"nav-link active","aria-current":"page",href:o.href,children:w.jsx("span",{children:o.label})})},`${o.label}_${o.href}`)})}),w.jsx("span",{className:"general-action-menu desktop-view",children:w.jsx(qL,{filter:({id:o})=>o!=="navigation"})}),w.jsx(Gme,{})]})]})})}const Qge=ze.memo(Xge);function Jge({result:e,onComplete:t}){const n=At(),r=ka.groupBy(e,"group"),a=Object.keys(r);return w.jsx("div",{className:"reactive-search-result",children:a.length===0?w.jsx(w.Fragment,{children:n.reactiveSearch.noResults}):w.jsx("ul",{children:a.map((i,o)=>w.jsxs("li",{children:[w.jsx("span",{className:"result-group-name",children:i}),w.jsx("ul",{children:r[i].map((l,u)=>w.jsx("li",{children:l.actionFn?w.jsxs(Ml,{onClick:t,href:l.uiLocation,children:[l.icon&&w.jsx("img",{className:"result-icon",src:qs(l.icon)}),l.phrase]}):null},l.uniqueId))})]},o))})})}function Zge({children:e}){return w.jsxs(w.Fragment,{children:[w.jsx(hle,{}),e]})}const eve=({children:e,navbarMenu:t,sidebarMenu:n,routerId:r})=>{At();const{result:a,phrase:i,reset:o}=R.useContext(U_),{sidebarVisible:l,toggleSidebar:u}=dy(),d=i.length>0;return w.jsxs(w.Fragment,{children:[w.jsxs("div",{style:{display:"flex",width:"100%"},children:[w.jsx("div",{className:sa("sidebar-overlay",l?"open":""),onClick:f=>{u(),f.stopPropagation()}}),w.jsxs("div",{style:{width:"100%",flex:1},children:[w.jsx(Qge,{routerId:r,menu:t}),w.jsxs("div",{className:"content-section",children:[d?w.jsx("div",{className:"content-container",children:w.jsx(Jge,{onComplete:()=>o(),result:a})}):null,w.jsx("div",{className:"content-container",style:{visibility:d?"hidden":void 0},children:w.jsx(Zge,{children:e})})]})]}),w.jsx(Bhe,{})]}),w.jsx("span",{className:"general-action-menu mobile-view",children:w.jsx(qL,{})})]})};function Kt(e){const{locale:t}=sr();return!t||t==="en"?e:e["$"+t]?e["$"+t]:e}const tve={capabilities:{nameHint:"Name",newCapability:"New capability",archiveTitle:"Capabilities",description:"Description",descriptionHint:"Description",editCapability:"Edit capability",name:"Name"}},oT={...tve},Vo=({children:e,newEntityHandler:t,exportPath:n,pageTitle:r})=>{xh(r);const a=xr(),{locale:i}=sr();return Vhe({path:n||""}),Jhe(t?()=>t({locale:i,router:a}):void 0,Ir.NewEntity),w.jsx(w.Fragment,{children:e})};var Ux=function(e){return Array.prototype.slice.call(e)},nve=(function(){function e(){this.handlers=[]}return e.prototype.emit=function(t){this.handlers.forEach(function(n){return n(t)})},e.prototype.subscribe=function(t){this.handlers.push(t)},e.prototype.unsubscribe=function(t){this.handlers.splice(this.handlers.indexOf(t),1)},e})(),XJ=function(e,t){if(e===t)return!0;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(var a=Object.prototype.hasOwnProperty,i=0;i0)&&!(a=r.next()).done;)i.push(a.value)}catch(l){o={error:l}}finally{try{a&&!a.done&&(n=r.return)&&n.call(r)}finally{if(o)throw o.error}}return i}function $B(e,t,n){if(arguments.length===2)for(var r=0,a=t.length,i;r0?Dge(t,n,r):t}};Ye.shape({current:Ye.instanceOf(typeof Element<"u"?Element:Object)});var RF=Symbol("group"),$ge=Symbol("".concat(RF.toString(),"_check"));Symbol("".concat(RF.toString(),"_levelKey"));Symbol("".concat(RF.toString(),"_collapsedRows"));var Lge=function(e){return function(t){var n=e(t);return!t[$ge]&&n===void 0&&console.warn("The row id is undefined. Check the getRowId function. The row is",t),n}},Fge=function(e,t){if(!e){var n=new Map(t.map(function(r,a){return[r,a]}));return function(r){return n.get(r)}}return Lge(e)},jge=function(e,t){return e[t]},Uge=function(e,t){e===void 0&&(e=jge);var n=!0,r=t.reduce(function(a,i){return i.getCellValue&&(n=!1,a[i.name]=i.getCellValue),a},{});return n?e:function(a,i){return r[i]?r[i](a,i):e(a,i)}};/*! ***************************************************************************** +***************************************************************************** */var QL=function(e,t){return QL=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var a in r)Object.prototype.hasOwnProperty.call(r,a)&&(n[a]=r[a])},QL(e,t)};function cf(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");QL(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}var Ec=function(){return Ec=Object.assign||function(t){for(var n,r=1,a=arguments.length;r0)&&!(a=r.next()).done;)i.push(a.value)}catch(l){o={error:l}}finally{try{a&&!a.done&&(n=r.return)&&n.call(r)}finally{if(o)throw o.error}}return i}function c8(e,t,n){if(arguments.length===2)for(var r=0,a=t.length,i;r0?wve(t,n,r):t}};Ye.shape({current:Ye.instanceOf(typeof Element<"u"?Element:Object)});var aj=Symbol("group"),Sve=Symbol("".concat(aj.toString(),"_check"));Symbol("".concat(aj.toString(),"_levelKey"));Symbol("".concat(aj.toString(),"_collapsedRows"));var Eve=function(e){return function(t){var n=e(t);return!t[Sve]&&n===void 0&&console.warn("The row id is undefined. Check the getRowId function. The row is",t),n}},Tve=function(e,t){if(!e){var n=new Map(t.map(function(r,a){return[r,a]}));return function(r){return n.get(r)}}return Eve(e)},Cve=function(e,t){return e[t]},kve=function(e,t){e===void 0&&(e=Cve);var n=!0,r=t.reduce(function(a,i){return i.getCellValue&&(n=!1,a[i.name]=i.getCellValue),a},{});return n?e:function(a,i){return r[i]?r[i](a,i):e(a,i)}};/*! ***************************************************************************** Copyright (c) Microsoft Corporation. Permission to use, copy, modify, and/or distribute this software for any @@ -162,7 +165,7 @@ INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. -***************************************************************************** */var l0=function(){return l0=Object.assign||function(t){for(var n,r=1,a=arguments.length;r0)&&!(a=r.next()).done;)i.push(a.value)}catch(l){o={error:l}}finally{try{a&&!a.done&&(n=r.return)&&n.call(r)}finally{if(o)throw o.error}}return i}function yx(e,t,n){if(arguments.length===2)for(var r=0,a=t.length,i;rr){do t[u++]=e[l++];while(l<=a);break}}else if(t[u++]=e[l++],l>a){do t[u++]=e[o++];while(o<=r);break}}},WB=function(e,t,n,r,a){if(!(ri?1:0});var n=mx(e),r=mx(e);return kL(n,r,0,n.length-1,t),n}),zge=function(e,t,n){var r=n.map(function(a){var i=a.columnName;return{column:e.find(function(o){return o.name===i}),draft:!t.some(function(o){return o.columnName===i})}});return t.forEach(function(a,i){var o=a.columnName;n.some(function(l){return l.columnName===o})||r.splice(i,0,{column:e.find(function(l){return l.name===o}),draft:!0})}),r},bx=Symbol("reordering"),qge=function(e,t){var n=t.sourceColumnName,r=t.targetColumnName,a=e.indexOf(n),i=e.indexOf(r),o=mx(e);return o.splice(a,1),o.splice(i,0,n),o},Fd=Symbol("data"),Hge=function(e,t){return e===void 0&&(e=[]),Wge(e,function(n,r){if(n.type!==Fd||r.type!==Fd)return 0;var a=t.indexOf(n.column.name),i=t.indexOf(r.column.name);return a-i})},Vge=function(e){return yx(yx([],CL(e),!1),[{key:bx.toString(),type:bx,height:0}],!1)},Gge=function(e,t,n){if(t===-1||n===-1||t===n)return e;var r=mx(e),a=e[t];return r.splice(t,1),r.splice(n,0,a),r},Yge=function(e,t){var n=parseInt(e,10),r=n?e.substr(n.toString().length):e,a=isNaN(n)&&r==="auto",i=n>=0&&t.some(function(o){return o===r});return a||i},Kge=function(e){if(typeof e=="string"){var t=parseInt(e,10);return e.substr(t.toString().length).length>0?e:t}return e},Xge=Symbol("heading"),Qge=Symbol("filter"),xL=Symbol("group"),Jge=Symbol("stub"),Zge=function(e,t,n,r){return e.reduce(function(a,i){if(i.type!==Fd)return a.push(i),a;var o=i.column&&i.column.name||"",l=t.some(function(d){return d.columnName===o}),u=n.some(function(d){return d.columnName===o});return!l&&!u||r(o)?a.push(i):(!l&&u||l&&!u)&&a.push(l0(l0({},i),{draft:!0})),a},[])},eve=function(e,t,n,r,a,i){return yx(yx([],CL(n.map(function(o){var l=e.find(function(u){return u.name===o.columnName});return{key:"".concat(xL.toString(),"_").concat(l.name),type:xL,column:l,width:a}})),!1),CL(Zge(t,n,r,i)),!1)},tve=Symbol("band"),nve=["px","%","em","rem","vm","vh","vmin","vmax",""],rve="The columnExtension property of the Table plugin is given an invalid value.",ave=function(e){e&&e.map(function(t){var n=t.width;if(typeof n=="string"&&!Yge(n,nve))throw new Error(rve)})},ive=function(e,t){if(!e)return{};var n=e.find(function(r){return r.columnName===t});return n||{}},ove=function(e,t){return e.map(function(n){var r=n.name,a=ive(t,r),i=Kge(a.width);return{column:n,key:"".concat(Fd.toString(),"_").concat(r),type:Fd,width:i,align:a.align,wordWrapEnabled:a.wordWrapEnabled}})},sve=function(e,t){return e===void 0&&(e=[]),e.filter(function(n){return n.type!==Fd||t.indexOf(n.column.name)===-1})},lve=function(e,t,n){return function(r){return n.indexOf(r)>-1&&t||typeof e=="function"&&e(r)||void 0}},uve=Symbol("totalSummary");Xge.toString();Qge.toString();Fd.toString();tve.toString();uve.toString();Jge.toString();xL.toString();var cve=function(e,t){var n=e[t].right-e[t].left,r=function(a){return e[a].right-e[a].left-n};return e.map(function(a,i){var o=a.top,l=a.right,u=a.bottom,d=a.left,f=d;i>0&&i<=t&&(f=Math.min(f,f-r(i-1))),i>t&&(f=Math.max(f,f+r(i)));var g=l;return i=t&&(g=Math.max(g,g+r(i+1))),i=o&&t=e.top&&t<=e.bottom},fve=function(e){var t=e.top,n=e.right,r=e.bottom,a=e.left;return{top:t,right:n,bottom:r,left:a}},pve=function(e){return e.map(function(t,n){return n!==e.length-1&&t.top===e[n+1].top?l0(l0({},t),{right:e[n+1].left}):t})},hve=function(e,t,n){var r=n.x,a=n.y;if(e.length===0)return 0;var i=t!==-1?cve(e,t):e.map(fve),o=pve(i).findIndex(function(l,u){var d=zB(l,a),f=r>=l.left&&r<=l.right,g=u===0&&r0)&&!(a=r.next()).done;)i.push(a.value)}catch(l){o={error:l}}finally{try{a&&!a.done&&(n=r.return)&&n.call(r)}finally{if(o)throw o.error}}return i}function zx(e,t,n){if(arguments.length===2)for(var r=0,a=t.length,i;rr){do t[u++]=e[l++];while(l<=a);break}}else if(t[u++]=e[l++],l>a){do t[u++]=e[o++];while(o<=r);break}}},g8=function(e,t,n,r,a){if(!(ri?1:0});var n=Ux(e),r=Ux(e);return e3(n,r,0,n.length-1,t),n}),Ove=function(e,t,n){var r=n.map(function(a){var i=a.columnName;return{column:e.find(function(o){return o.name===i}),draft:!t.some(function(o){return o.columnName===i})}});return t.forEach(function(a,i){var o=a.columnName;n.some(function(l){return l.columnName===o})||r.splice(i,0,{column:e.find(function(l){return l.name===o}),draft:!0})}),r},qx=Symbol("reordering"),Rve=function(e,t){var n=t.sourceColumnName,r=t.targetColumnName,a=e.indexOf(n),i=e.indexOf(r),o=Ux(e);return o.splice(a,1),o.splice(i,0,n),o},Hd=Symbol("data"),Pve=function(e,t){return e===void 0&&(e=[]),_ve(e,function(n,r){if(n.type!==Hd||r.type!==Hd)return 0;var a=t.indexOf(n.column.name),i=t.indexOf(r.column.name);return a-i})},Ave=function(e){return zx(zx([],ZL(e),!1),[{key:qx.toString(),type:qx,height:0}],!1)},Nve=function(e,t,n){if(t===-1||n===-1||t===n)return e;var r=Ux(e),a=e[t];return r.splice(t,1),r.splice(n,0,a),r},Mve=function(e,t){var n=parseInt(e,10),r=n?e.substr(n.toString().length):e,a=isNaN(n)&&r==="auto",i=n>=0&&t.some(function(o){return o===r});return a||i},Ive=function(e){if(typeof e=="string"){var t=parseInt(e,10);return e.substr(t.toString().length).length>0?e:t}return e},Dve=Symbol("heading"),$ve=Symbol("filter"),t3=Symbol("group"),Lve=Symbol("stub"),Fve=function(e,t,n,r){return e.reduce(function(a,i){if(i.type!==Hd)return a.push(i),a;var o=i.column&&i.column.name||"",l=t.some(function(d){return d.columnName===o}),u=n.some(function(d){return d.columnName===o});return!l&&!u||r(o)?a.push(i):(!l&&u||l&&!u)&&a.push(P0(P0({},i),{draft:!0})),a},[])},jve=function(e,t,n,r,a,i){return zx(zx([],ZL(n.map(function(o){var l=e.find(function(u){return u.name===o.columnName});return{key:"".concat(t3.toString(),"_").concat(l.name),type:t3,column:l,width:a}})),!1),ZL(Fve(t,n,r,i)),!1)},Uve=Symbol("band"),Bve=["px","%","em","rem","vm","vh","vmin","vmax",""],Wve="The columnExtension property of the Table plugin is given an invalid value.",zve=function(e){e&&e.map(function(t){var n=t.width;if(typeof n=="string"&&!Mve(n,Bve))throw new Error(Wve)})},qve=function(e,t){if(!e)return{};var n=e.find(function(r){return r.columnName===t});return n||{}},Hve=function(e,t){return e.map(function(n){var r=n.name,a=qve(t,r),i=Ive(a.width);return{column:n,key:"".concat(Hd.toString(),"_").concat(r),type:Hd,width:i,align:a.align,wordWrapEnabled:a.wordWrapEnabled}})},Vve=function(e,t){return e===void 0&&(e=[]),e.filter(function(n){return n.type!==Hd||t.indexOf(n.column.name)===-1})},Gve=function(e,t,n){return function(r){return n.indexOf(r)>-1&&t||typeof e=="function"&&e(r)||void 0}},Yve=Symbol("totalSummary");Dve.toString();$ve.toString();Hd.toString();Uve.toString();Yve.toString();Lve.toString();t3.toString();var Kve=function(e,t){var n=e[t].right-e[t].left,r=function(a){return e[a].right-e[a].left-n};return e.map(function(a,i){var o=a.top,l=a.right,u=a.bottom,d=a.left,f=d;i>0&&i<=t&&(f=Math.min(f,f-r(i-1))),i>t&&(f=Math.max(f,f+r(i)));var g=l;return i=t&&(g=Math.max(g,g+r(i+1))),i=o&&t=e.top&&t<=e.bottom},Qve=function(e){var t=e.top,n=e.right,r=e.bottom,a=e.left;return{top:t,right:n,bottom:r,left:a}},Jve=function(e){return e.map(function(t,n){return n!==e.length-1&&t.top===e[n+1].top?P0(P0({},t),{right:e[n+1].left}):t})},Zve=function(e,t,n){var r=n.x,a=n.y;if(e.length===0)return 0;var i=t!==-1?Kve(e,t):e.map(Qve),o=Jve(i).findIndex(function(l,u){var d=v8(l,a),f=r>=l.left&&r<=l.right,g=u===0&&r{e(!1)})},refs:[]});function Lve({mref:e,context:t}){const n=At(),r=e.component,a=async()=>{e.onSubmit&&await e.onSubmit()===!0&&t.closeModal(e.id)};return w.jsx("div",{className:"modal d-block with-fade-in",children:w.jsx("div",{className:"modal-dialog",children:w.jsxs("div",{className:"modal-content",children:[w.jsxs("div",{className:"modal-header",children:[w.jsx("h5",{className:"modal-title",children:e.title}),w.jsx("button",{type:"button",id:"cls",className:"btn-close",onClick:()=>t.closeModal(e.id),"aria-label":"Close"})]}),w.jsx("div",{className:"modal-body",children:w.jsx("p",{children:w.jsx(r,{})})}),w.jsxs("div",{className:"modal-footer",children:[w.jsx("button",{type:"button",className:"btn btn-secondary",autoFocus:!0,onClick:()=>t.closeModal(e.id),children:n.close}),w.jsx("button",{onClick:a,type:"button",className:"btn btn-primary",children:e.confirmButtonLabel||n.saveChanges})]})]})})})}function Fve(){const e=R.useContext(b_);return w.jsxs(w.Fragment,{children:[e.refs.map(t=>w.jsx(Lve,{context:e,mref:t},t.id)),e.refs.length?w.jsx("div",{className:oa("modal-backdrop fade",e.refs.length&&"show")}):null]})}function jve({children:e}){const[t,n]=R.useState([]),r=l=>{let u=(Math.random()+1).toString(36).substring(2);const d={...l,id:u};n(f=>[...f,d])},a=l=>{n(u=>u.filter(d=>d.id!==l))},i=()=>new Promise(l=>{l(!0)});return mF("Escape",()=>{n(l=>l.filter((u,d)=>d!==l.length-1))}),w.jsx(b_.Provider,{value:{confirm:i,refs:t,closeModal:a,openModal:r},children:e})}const LJ=()=>{const{openDrawer:e,openModal:t}=bF();return{confirmDrawer:({title:a,description:i,cancelLabel:o,confirmLabel:l})=>e(({close:u,resolve:d})=>w.jsxs("div",{className:"confirm-drawer-container p-3",children:[w.jsx("h2",{children:a}),w.jsx("span",{children:i}),w.jsxs("div",{children:[w.jsx("button",{className:"d-block w-100 btn btn-primary",onClick:()=>d(),children:l}),w.jsx("button",{className:"d-block w-100 btn",onClick:()=>u(),children:o})]})]})),confirmModal:({title:a,description:i,cancelLabel:o,confirmLabel:l})=>t(({close:u,resolve:d})=>w.jsxs("div",{className:"confirm-drawer-container p-3",children:[w.jsx("span",{children:i}),w.jsxs("div",{className:"row mt-4",children:[w.jsx("div",{className:"col-md-6",children:w.jsx("button",{className:"d-block w-100 btn btn-primary",onClick:()=>d(),children:l})}),w.jsx("div",{className:"col-md-6",children:w.jsx("button",{className:"d-block w-100 btn",onClick:()=>u(),children:o})})]})]}),{title:a})}};function Uve({urlMask:e,submitDelete:t,onRecordsDeleted:n,initialFilters:r}){const a=At(),i=xr(),{confirmModal:o}=LJ(),{withDebounce:l}=GQ(),u={itemsPerPage:100,startIndex:0,sorting:[],...r||{}},[d,f]=R.useState(u),[g,y]=R.useState(u),{search:h}=Zd(),v=R.useRef(!1);R.useEffect(()=>{if(v.current)return;v.current=!0;let me={};try{me=qa.parse(h.substring(1)),delete me.startIndex}catch{}f({...u,...me}),y({...u,...me})},[h]);const[E,T]=R.useState([]),k=(me=>{var G;const W={...me};return delete W.startIndex,delete W.itemsPerPage,((G=W==null?void 0:W.sorting)==null?void 0:G.length)===0&&delete W.sorting,JSON.stringify(W)})(d),_=me=>{T(me)},A=(me,W=!0)=>{const G={...d,...me};W&&(G.startIndex=0),f(G),i.push("?"+qa.stringify(G),void 0,{},!0),l(()=>{y(G)},500)},P=me=>{A({itemsPerPage:me},!1)},N=me=>me.map(W=>`${W.columnName} ${W.direction}`).join(", "),I=me=>{A({sorting:me,sort:N(me)},!1)},L=me=>{A({startIndex:me},!1)},j=me=>{A({startIndex:0})};R.useContext(b_);const z=me=>({query:me.map(W=>`unique_id = ${W}`).join(" or "),uniqueId:""}),Q=async()=>{o({title:a.confirm,confirmLabel:a.common.yes,cancelLabel:a.common.no,description:a.deleteConfirmMessage}).promise.then(({type:me})=>{if(me==="resolved")return t(z(E),null)}).then(()=>{n&&n()})},le=()=>({label:a.deleteAction,onSelect(){Q()},icon:xu.delete,uniqueActionKey:"GENERAL_DELETE_ACTION"}),{addActions:re,removeActionMenu:ge}=Ehe();return R.useEffect(()=>{if(E.length>0&&typeof t<"u")return re("table-selection",[le()]);ge("table-selection")},[E]),w0(Ir.Delete,()=>{E.length>0&&typeof t<"u"&&Q()}),{filters:d,setFilters:f,setFilter:A,setSorting:I,setStartIndex:L,selection:E,setSelection:_,onFiltersChange:j,queryHash:k,setPageSize:P,debouncedFilters:g}}function Bve({queryOptions:e,execFnOverride:t,query:n,queryClient:r,unauthorized:a}){var T;const{options:i,execFn:o}=R.useContext(rt),l=t?t(i):o?o(i):St(i);let d=`${"/table-view-sizing/:uniqueId".substr(1)}?${new URLSearchParams(Gt(n)).toString()}`,f=!0;d=d.replace(":uniqueId",n[":uniqueId".replace(":","")]),n[":uniqueId".replace(":","")]===void 0&&(f=!1);const g=()=>l("GET",d),y=(T=i==null?void 0:i.headers)==null?void 0:T.authorization,h=y!="undefined"&&y!=null&&y!=null&&y!="null"&&!!y;let v=!0;return f?!h&&!a&&(v=!1):v=!1,{query:jn([i,n,"*abac.TableViewSizingEntity"],g,{cacheTime:1001,retry:!1,keepPreviousData:!0,enabled:v,...e||{}})}}class PF extends wn{constructor(...t){super(...t),this.children=void 0,this.tableName=void 0,this.sizes=void 0}}PF.Navigation={edit(e,t){return`${t?"/"+t:".."}/table-view-sizing/edit/${e}`},create(e){return`${e?"/"+e:".."}/table-view-sizing/new`},single(e,t){return`${t?"/"+t:".."}/table-view-sizing/${e}`},query(e={},t){return`${t?"/"+t:".."}/table-view-sizings`},Redit:"table-view-sizing/edit/:uniqueId",Rcreate:"table-view-sizing/new",Rsingle:"table-view-sizing/:uniqueId",Rquery:"table-view-sizings"};PF.definition={rpc:{query:{}},name:"tableViewSizing",features:{},gormMap:{},fields:[{name:"tableName",type:"string",validate:"required",computedType:"string",gormMap:{}},{name:"sizes",type:"string",computedType:"string",gormMap:{}}],cliShort:"tvs",description:"Used to store meta data about user tables (in front-end, or apps for example) about the size of the columns"};PF.Fields={...wn.Fields,tableName:"tableName",sizes:"sizes"};function Wve(e){let{queryClient:t,query:n,execFnOverride:r}=e||{};n=n||{};const{options:a,execFn:i}=R.useContext(rt),o=r?r(a):i?i(a):St(a);let u=`${"/table-view-sizing".substr(1)}?${new URLSearchParams(Gt(n)).toString()}`;const f=un(h=>o("PATCH",u,h)),g=(h,v)=>{var E;return h?(h.data&&(v!=null&&v.data)&&(h.data.items=[v.data,...((E=h==null?void 0:h.data)==null?void 0:E.items)||[]]),h):{data:{items:[]}}};return{mutation:f,submit:(h,v)=>new Promise((E,T)=>{f.mutate(h,{onSuccess(C){t==null||t.setQueriesData("*abac.TableViewSizingEntity",k=>g(k,C)),E(C)},onError(C){v==null||v.setErrors(Pn(C)),T(C)}})}),fnUpdater:g}}function FJ(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var a=e.length;for(t=0;t1&&(!e.frozen||e.idx+r-1<=t))return r}function zve(e){e.stopPropagation()}function jk(e){e==null||e.scrollIntoView({inline:"nearest",block:"nearest"})}function xS(e){let t=!1;const n={...e,preventGridDefault(){t=!0},isGridDefaultPrevented(){return t}};return Object.setPrototypeOf(n,Object.getPrototypeOf(e)),n}const qve=new Set(["Unidentified","Alt","AltGraph","CapsLock","Control","Fn","FnLock","Meta","NumLock","ScrollLock","Shift","Tab","ArrowDown","ArrowLeft","ArrowRight","ArrowUp","End","Home","PageDown","PageUp","Insert","ContextMenu","Escape","Pause","Play","PrintScreen","F1","F3","F4","F5","F6","F7","F8","F9","F10","F11","F12"]);function OL(e){return(e.ctrlKey||e.metaKey)&&e.key!=="Control"}function Hve(e){return OL(e)&&e.keyCode!==86?!1:!qve.has(e.key)}function Vve({key:e,target:t}){var n;return e==="Tab"&&(t instanceof HTMLInputElement||t instanceof HTMLTextAreaElement||t instanceof HTMLSelectElement)?((n=t.closest(".rdg-editor-container"))==null?void 0:n.querySelectorAll("input, textarea, select").length)===1:!1}const Gve="mlln6zg7-0-0-beta-51";function Yve(e){return e.map(({key:t,idx:n,minWidth:r,maxWidth:a})=>w.jsx("div",{className:Gve,style:{gridColumnStart:n+1,minWidth:r,maxWidth:a},"data-measuring-cell-key":t},t))}function Kve({selectedPosition:e,columns:t,rows:n}){const r=t[e.idx],a=n[e.rowIdx];return jJ(r,a)}function jJ(e,t){return e.renderEditCell!=null&&(typeof e.editable=="function"?e.editable(t):e.editable)!==!1}function Xve({rows:e,topSummaryRows:t,bottomSummaryRows:n,rowIdx:r,mainHeaderRowIdx:a,lastFrozenColumnIndex:i,column:o}){const l=(t==null?void 0:t.length)??0;if(r===a)return Rl(o,i,{type:"HEADER"});if(t&&r>a&&r<=l+a)return Rl(o,i,{type:"SUMMARY",row:t[r+l]});if(r>=0&&r{for(const I of a){const L=I.idx;if(L>T)break;const j=Xve({rows:i,topSummaryRows:o,bottomSummaryRows:l,rowIdx:C,mainHeaderRowIdx:d,lastFrozenColumnIndex:v,column:I});if(j&&T>L&&TN.level+d,P=()=>{if(t){let I=r[T].parent;for(;I!==void 0;){const L=A(I);if(C===L){T=I.idx+I.colSpan;break}I=I.parent}}else if(e){let I=r[T].parent,L=!1;for(;I!==void 0;){const j=A(I);if(C>=j){T=I.idx,C=j,L=!0;break}I=I.parent}L||(T=g,C=y)}};if(E(h)&&(_(t),C=L&&(C=j,T=I.idx),I=I.parent}}return{idx:T,rowIdx:C}}function Jve({maxColIdx:e,minRowIdx:t,maxRowIdx:n,selectedPosition:{rowIdx:r,idx:a},shiftKey:i}){return i?a===0&&r===t:a===e&&r===n}const Zve="cj343x07-0-0-beta-51",UJ=`rdg-cell ${Zve}`,eye="csofj7r7-0-0-beta-51",tye=`rdg-cell-frozen ${eye}`;function AF(e){return{"--rdg-grid-row-start":e}}function BJ(e,t,n){const r=t+1,a=`calc(${n-1} * var(--rdg-header-row-height))`;return e.parent===void 0?{insetBlockStart:0,gridRowStart:1,gridRowEnd:r,paddingBlockStart:a}:{insetBlockStart:`calc(${t-n} * var(--rdg-header-row-height))`,gridRowStart:r-n,gridRowEnd:r,paddingBlockStart:a}}function C0(e,t=1){const n=e.idx+1;return{gridColumnStart:n,gridColumnEnd:n+t,insetInlineStart:e.frozen?`var(--rdg-frozen-left-${e.idx})`:void 0}}function FE(e,...t){return jd(UJ,{[tye]:e.frozen},...t)}const{min:XS,max:wx,floor:qB,sign:nye,abs:rye}=Math;function WP(e){if(typeof e!="function")throw new Error("Please specify the rowKeyGetter prop to use selection")}function WJ(e,{minWidth:t,maxWidth:n}){return e=wx(e,t),typeof n=="number"&&n>=t?XS(e,n):e}function zJ(e,t){return e.parent===void 0?t:e.level-e.parent.level}const aye="c1bn88vv7-0-0-beta-51",iye=`rdg-checkbox-input ${aye}`;function oye({onChange:e,indeterminate:t,...n}){function r(a){e(a.target.checked,a.nativeEvent.shiftKey)}return w.jsx("input",{ref:a=>{a&&(a.indeterminate=t===!0)},type:"checkbox",className:iye,onChange:r,...n})}function sye(e){try{return e.row[e.column.key]}catch{return null}}const qJ=R.createContext(void 0);function w_(){return R.useContext(qJ)}function NF({value:e,tabIndex:t,indeterminate:n,disabled:r,onChange:a,"aria-label":i,"aria-labelledby":o}){const l=w_().renderCheckbox;return l({"aria-label":i,"aria-labelledby":o,tabIndex:t,indeterminate:n,disabled:r,checked:e,onChange:a})}const MF=R.createContext(void 0),HJ=R.createContext(void 0);function VJ(){const e=R.useContext(MF),t=R.useContext(HJ);if(e===void 0||t===void 0)throw new Error("useRowSelection must be used within renderCell");return{isRowSelectionDisabled:e.isRowSelectionDisabled,isRowSelected:e.isRowSelected,onRowSelectionChange:t}}const GJ=R.createContext(void 0),YJ=R.createContext(void 0);function lye(){const e=R.useContext(GJ),t=R.useContext(YJ);if(e===void 0||t===void 0)throw new Error("useHeaderRowSelection must be used within renderHeaderCell");return{isIndeterminate:e.isIndeterminate,isRowSelected:e.isRowSelected,onRowSelectionChange:t}}const Sx="rdg-select-column";function uye(e){const{isIndeterminate:t,isRowSelected:n,onRowSelectionChange:r}=lye();return w.jsx(NF,{"aria-label":"Select All",tabIndex:e.tabIndex,indeterminate:t,value:n,onChange:a=>{r({checked:t?!1:a})}})}function cye(e){const{isRowSelectionDisabled:t,isRowSelected:n,onRowSelectionChange:r}=VJ();return w.jsx(NF,{"aria-label":"Select",tabIndex:e.tabIndex,disabled:t,value:n,onChange:(a,i)=>{r({row:e.row,checked:a,isShiftClick:i})}})}function dye(e){const{isRowSelected:t,onRowSelectionChange:n}=VJ();return w.jsx(NF,{"aria-label":"Select Group",tabIndex:e.tabIndex,value:t,onChange:r=>{n({row:e.row,checked:r,isShiftClick:!1})}})}const fye={key:Sx,name:"",width:35,minWidth:35,maxWidth:35,resizable:!1,sortable:!1,frozen:!0,renderHeaderCell(e){return w.jsx(uye,{...e})},renderCell(e){return w.jsx(cye,{...e})},renderGroupCell(e){return w.jsx(dye,{...e})}},pye="h44jtk67-0-0-beta-51",hye="hcgkhxz7-0-0-beta-51",mye=`rdg-header-sort-name ${hye}`;function gye({column:e,sortDirection:t,priority:n}){return e.sortable?w.jsx(vye,{sortDirection:t,priority:n,children:e.name}):e.name}function vye({sortDirection:e,priority:t,children:n}){const r=w_().renderSortStatus;return w.jsxs("span",{className:pye,children:[w.jsx("span",{className:mye,children:n}),w.jsx("span",{children:r({sortDirection:e,priority:t})})]})}const yye="auto",bye=50;function wye({rawColumns:e,defaultColumnOptions:t,getColumnWidth:n,viewportWidth:r,scrollLeft:a,enableVirtualization:i}){const o=(t==null?void 0:t.width)??yye,l=(t==null?void 0:t.minWidth)??bye,u=(t==null?void 0:t.maxWidth)??void 0,d=(t==null?void 0:t.renderCell)??sye,f=(t==null?void 0:t.renderHeaderCell)??gye,g=(t==null?void 0:t.sortable)??!1,y=(t==null?void 0:t.resizable)??!1,h=(t==null?void 0:t.draggable)??!1,{columns:v,colSpanColumns:E,lastFrozenColumnIndex:T,headerRowsCount:C}=R.useMemo(()=>{let L=-1,j=1;const z=[];Q(e,1);function Q(re,ge,me){for(const W of re){if("children"in W){const ce={name:W.name,parent:me,idx:-1,colSpan:0,level:0,headerCellClass:W.headerCellClass};Q(W.children,ge+1,ce);continue}const G=W.frozen??!1,q={...W,parent:me,idx:0,level:0,frozen:G,width:W.width??o,minWidth:W.minWidth??l,maxWidth:W.maxWidth??u,sortable:W.sortable??g,resizable:W.resizable??y,draggable:W.draggable??h,renderCell:W.renderCell??d,renderHeaderCell:W.renderHeaderCell??f};z.push(q),G&&L++,ge>j&&(j=ge)}}z.sort(({key:re,frozen:ge},{key:me,frozen:W})=>re===Sx?-1:me===Sx?1:ge?W?0:-1:W?1:0);const le=[];return z.forEach((re,ge)=>{re.idx=ge,KJ(re,ge,0),re.colSpan!=null&&le.push(re)}),{columns:z,colSpanColumns:le,lastFrozenColumnIndex:L,headerRowsCount:j}},[e,o,l,u,d,f,y,g,h]),{templateColumns:k,layoutCssVars:_,totalFrozenColumnWidth:A,columnMetrics:P}=R.useMemo(()=>{const L=new Map;let j=0,z=0;const Q=[];for(const re of v){let ge=n(re);typeof ge=="number"?ge=WJ(ge,re):ge=re.minWidth,Q.push(`${ge}px`),L.set(re,{width:ge,left:j}),j+=ge}if(T!==-1){const re=L.get(v[T]);z=re.left+re.width}const le={};for(let re=0;re<=T;re++){const ge=v[re];le[`--rdg-frozen-left-${ge.idx}`]=`${L.get(ge).left}px`}return{templateColumns:Q,layoutCssVars:le,totalFrozenColumnWidth:z,columnMetrics:L}},[n,v,T]),[N,I]=R.useMemo(()=>{if(!i)return[0,v.length-1];const L=a+A,j=a+r,z=v.length-1,Q=XS(T+1,z);if(L>=j)return[Q,Q];let le=Q;for(;leL)break;le++}let re=le;for(;re=j)break;re++}const ge=wx(Q,le-1),me=XS(z,re+1);return[ge,me]},[P,v,T,a,A,r,i]);return{columns:v,colSpanColumns:E,colOverscanStartIdx:N,colOverscanEndIdx:I,templateColumns:k,layoutCssVars:_,headerRowsCount:C,lastFrozenColumnIndex:T,totalFrozenColumnWidth:A}}function KJ(e,t,n){if(n{f.current=a,T(v)});function T(k){k.length!==0&&u(_=>{const A=new Map(_);let P=!1;for(const N of k){const I=HB(r,N);P||(P=I!==_.get(N)),I===void 0?A.delete(N):A.set(N,I)}return P?A:_})}function C(k,_){const{key:A}=k,P=[...n],N=[];for(const{key:L,idx:j,width:z}of t)if(A===L){const Q=typeof _=="number"?`${_}px`:_;P[j]=Q}else g&&typeof z=="string"&&!i.has(L)&&(P[j]=z,N.push(L));r.current.style.gridTemplateColumns=P.join(" ");const I=typeof _=="number"?_:HB(r,A);Sc.flushSync(()=>{l(L=>{const j=new Map(L);return j.set(A,I),j}),T(N)}),d==null||d(k,I)}return{gridTemplateColumns:E,handleColumnResize:C}}function HB(e,t){var a;const n=`[data-measuring-cell-key="${CSS.escape(t)}"]`,r=(a=e.current)==null?void 0:a.querySelector(n);return r==null?void 0:r.getBoundingClientRect().width}function Eye(){const e=R.useRef(null),[t,n]=R.useState(1),[r,a]=R.useState(1),[i,o]=R.useState(0);return R.useLayoutEffect(()=>{const{ResizeObserver:l}=window;if(l==null)return;const{clientWidth:u,clientHeight:d,offsetWidth:f,offsetHeight:g}=e.current,{width:y,height:h}=e.current.getBoundingClientRect(),v=g-d,E=y-f+u,T=h-v;n(E),a(T),o(v);const C=new l(k=>{const _=k[0].contentBoxSize[0],{clientHeight:A,offsetHeight:P}=e.current;Sc.flushSync(()=>{n(_.inlineSize),a(_.blockSize),o(P-A)})});return C.observe(e.current),()=>{C.disconnect()}},[]),[e,t,r,i]}function Ms(e){const t=R.useRef(e);R.useEffect(()=>{t.current=e});const n=R.useCallback((...r)=>{t.current(...r)},[]);return e&&n}function jE(e){const[t,n]=R.useState(!1);t&&!e&&n(!1);function r(i){i.target!==i.currentTarget&&n(!0)}return{tabIndex:e&&!t?0:-1,childTabIndex:e?0:-1,onFocus:e?r:void 0}}function Tye({columns:e,colSpanColumns:t,rows:n,topSummaryRows:r,bottomSummaryRows:a,colOverscanStartIdx:i,colOverscanEndIdx:o,lastFrozenColumnIndex:l,rowOverscanStartIdx:u,rowOverscanEndIdx:d}){const f=R.useMemo(()=>{if(i===0)return 0;let g=i;const y=(h,v)=>v!==void 0&&h+v>i?(g=h,!0):!1;for(const h of t){const v=h.idx;if(v>=g||y(v,Rl(h,l,{type:"HEADER"})))break;for(let E=u;E<=d;E++){const T=n[E];if(y(v,Rl(h,l,{type:"ROW",row:T})))break}if(r!=null){for(const E of r)if(y(v,Rl(h,l,{type:"SUMMARY",row:E})))break}if(a!=null){for(const E of a)if(y(v,Rl(h,l,{type:"SUMMARY",row:E})))break}}return g},[u,d,n,r,a,i,l,t]);return R.useMemo(()=>{const g=[];for(let y=0;y<=o;y++){const h=e[y];y{if(typeof t=="number")return{totalRowHeight:t*e.length,gridTemplateRows:` repeat(${e.length}, ${t}px)`,getRowTop:T=>T*t,getRowHeight:()=>t,findRowIdx:T=>qB(T/t)};let y=0,h=" ";const v=e.map(T=>{const C=t(T),k={top:y,height:C};return h+=`${C}px `,y+=C,k}),E=T=>wx(0,XS(e.length-1,T));return{totalRowHeight:y,gridTemplateRows:h,getRowTop:T=>v[E(T)].top,getRowHeight:T=>v[E(T)].height,findRowIdx(T){let C=0,k=v.length-1;for(;C<=k;){const _=C+qB((k-C)/2),A=v[_].top;if(A===T)return _;if(AT&&(k=_-1),C>k)return k}return 0}}},[t,e]);let f=0,g=e.length-1;if(a){const h=d(r),v=d(r+n);f=wx(0,h-4),g=XS(e.length-1,v+4)}return{rowOverscanStartIdx:f,rowOverscanEndIdx:g,totalRowHeight:i,gridTemplateRows:o,getRowTop:l,getRowHeight:u,findRowIdx:d}}const kye="c6ra8a37-0-0-beta-51",xye=`rdg-cell-copied ${kye}`,_ye="cq910m07-0-0-beta-51",Oye=`rdg-cell-dragged-over ${_ye}`;function Rye({column:e,colSpan:t,isCellSelected:n,isCopied:r,isDraggedOver:a,row:i,rowIdx:o,className:l,onClick:u,onDoubleClick:d,onContextMenu:f,onRowChange:g,selectCell:y,style:h,...v}){const{tabIndex:E,childTabIndex:T,onFocus:C}=jE(n),{cellClass:k}=e;l=FE(e,{[xye]:r,[Oye]:a},typeof k=="function"?k(i):k,l);const _=jJ(e,i);function A(j){y({rowIdx:o,idx:e.idx},j)}function P(j){if(u){const z=xS(j);if(u({rowIdx:o,row:i,column:e,selectCell:A},z),z.isGridDefaultPrevented())return}A()}function N(j){if(f){const z=xS(j);if(f({rowIdx:o,row:i,column:e,selectCell:A},z),z.isGridDefaultPrevented())return}A()}function I(j){if(d){const z=xS(j);if(d({rowIdx:o,row:i,column:e,selectCell:A},z),z.isGridDefaultPrevented())return}A(!0)}function L(j){g(e,j)}return w.jsx("div",{role:"gridcell","aria-colindex":e.idx+1,"aria-colspan":t,"aria-selected":n,"aria-readonly":!_||void 0,tabIndex:E,className:l,style:{...C0(e,t),...h},onClick:P,onDoubleClick:I,onContextMenu:N,onFocus:C,...v,children:e.renderCell({column:e,row:i,rowIdx:o,isCellEditable:_,tabIndex:T,onRowChange:L})})}const Pye=R.memo(Rye);function Aye(e,t){return w.jsx(Pye,{...t},e)}const Nye="c1w9bbhr7-0-0-beta-51",Mye="c1creorc7-0-0-beta-51",Iye=`rdg-cell-drag-handle ${Nye}`;function Dye({gridRowStart:e,rows:t,column:n,columnWidth:r,maxColIdx:a,isLastRow:i,selectedPosition:o,latestDraggedOverRowIdx:l,isCellEditable:u,onRowsChange:d,onFill:f,onClick:g,setDragging:y,setDraggedOverRowIdx:h}){const{idx:v,rowIdx:E}=o;function T(P){if(P.preventDefault(),P.buttons!==1)return;y(!0),window.addEventListener("mouseover",N),window.addEventListener("mouseup",I);function N(L){L.buttons!==1&&I()}function I(){window.removeEventListener("mouseover",N),window.removeEventListener("mouseup",I),y(!1),C()}}function C(){const P=l.current;if(P===void 0)return;const N=E0&&(d==null||d(L,{indexes:j,column:n}))}function A(){var z;const P=((z=n.colSpan)==null?void 0:z.call(n,{type:"ROW",row:t[E]}))??1,{insetInlineStart:N,...I}=C0(n,P),L="calc(var(--rdg-drag-handle-size) * -0.5 + 1px)",j=n.idx+P-1===a;return{...I,gridRowStart:e,marginInlineEnd:j?void 0:L,marginBlockEnd:i?void 0:L,insetInlineStart:N?`calc(${N} + ${r}px + var(--rdg-drag-handle-size) * -0.5 - 1px)`:void 0}}return w.jsx("div",{style:A(),className:jd(Iye,n.frozen&&Mye),onClick:g,onMouseDown:T,onDoubleClick:k})}const $ye="cis5rrm7-0-0-beta-51";function Lye({column:e,colSpan:t,row:n,rowIdx:r,onRowChange:a,closeEditor:i,onKeyDown:o,navigate:l}){var C,k,_;const u=R.useRef(void 0),d=((C=e.editorOptions)==null?void 0:C.commitOnOutsideClick)!==!1,f=Ms(()=>{h(!0,!1)});R.useEffect(()=>{if(!d)return;function A(){u.current=requestAnimationFrame(f)}return addEventListener("mousedown",A,{capture:!0}),()=>{removeEventListener("mousedown",A,{capture:!0}),g()}},[d,f]);function g(){cancelAnimationFrame(u.current)}function y(A){if(o){const P=xS(A);if(o({mode:"EDIT",row:n,column:e,rowIdx:r,navigate(){l(A)},onClose:h},P),P.isGridDefaultPrevented())return}A.key==="Escape"?h():A.key==="Enter"?h(!0):Vve(A)&&l(A)}function h(A=!1,P=!0){A?a(n,!0,P):i(P)}function v(A,P=!1){a(A,P,P)}const{cellClass:E}=e,T=FE(e,"rdg-editor-container",!((k=e.editorOptions)!=null&&k.displayCellContent)&&$ye,typeof E=="function"?E(n):E);return w.jsx("div",{role:"gridcell","aria-colindex":e.idx+1,"aria-colspan":t,"aria-selected":!0,className:T,style:C0(e,t),onKeyDown:y,onMouseDownCapture:g,children:e.renderEditCell!=null&&w.jsxs(w.Fragment,{children:[e.renderEditCell({column:e,row:n,rowIdx:r,onRowChange:v,onClose:h}),((_=e.editorOptions)==null?void 0:_.displayCellContent)&&e.renderCell({column:e,row:n,rowIdx:r,isCellEditable:!0,tabIndex:-1,onRowChange:v})]})})}function Fye({column:e,rowIdx:t,isCellSelected:n,selectCell:r}){const{tabIndex:a,onFocus:i}=jE(n),{colSpan:o}=e,l=zJ(e,t),u=e.idx+1;function d(){r({idx:e.idx,rowIdx:t})}return w.jsx("div",{role:"columnheader","aria-colindex":u,"aria-colspan":o,"aria-rowspan":l,"aria-selected":n,tabIndex:a,className:jd(UJ,e.headerCellClass),style:{...BJ(e,t,l),gridColumnStart:u,gridColumnEnd:u+o},onFocus:i,onClick:d,children:e.name})}const jye="c6l2wv17-0-0-beta-51",Uye="c1kqdw7y7-0-0-beta-51",Bye=`rdg-cell-resizable ${Uye}`,Wye="r1y6ywlx7-0-0-beta-51",zye="rdg-cell-draggable",qye="c1bezg5o7-0-0-beta-51",Hye=`rdg-cell-dragging ${qye}`,Vye="c1vc96037-0-0-beta-51",Gye=`rdg-cell-drag-over ${Vye}`;function Yye({column:e,colSpan:t,rowIdx:n,isCellSelected:r,onColumnResize:a,onColumnsReorder:i,sortColumns:o,onSortColumnsChange:l,selectCell:u,shouldFocusGrid:d,direction:f,dragDropKey:g}){const y=R.useRef(!1),[h,v]=R.useState(!1),[E,T]=R.useState(!1),C=f==="rtl",k=zJ(e,n),{tabIndex:_,childTabIndex:A,onFocus:P}=jE(r),N=o==null?void 0:o.findIndex(fe=>fe.columnKey===e.key),I=N!==void 0&&N>-1?o[N]:void 0,L=I==null?void 0:I.direction,j=I!==void 0&&o.length>1?N+1:void 0,z=L&&!j?L==="ASC"?"ascending":"descending":void 0,{sortable:Q,resizable:le,draggable:re}=e,ge=FE(e,e.headerCellClass,{[jye]:Q,[Bye]:le,[zye]:re,[Hye]:h,[Gye]:E});function me(fe){if(fe.pointerType==="mouse"&&fe.buttons!==1)return;fe.preventDefault();const{currentTarget:xe,pointerId:Ie}=fe,qe=xe.parentElement,{right:tt,left:Ge}=qe.getBoundingClientRect(),at=C?fe.clientX-Ge:tt-fe.clientX;y.current=!1;function Et(xt){const{width:Rt,right:cn,left:qt}=qe.getBoundingClientRect();let Wt=C?cn+at-xt.clientX:xt.clientX+at-qt;Wt=WJ(Wt,e),Rt>0&&Wt!==Rt&&a(e,Wt)}function kt(xt){y.current||Et(xt),xe.removeEventListener("pointermove",Et),xe.removeEventListener("lostpointercapture",kt)}xe.setPointerCapture(Ie),xe.addEventListener("pointermove",Et),xe.addEventListener("lostpointercapture",kt)}function W(){y.current=!0,a(e,"max-content")}function G(fe){if(l==null)return;const{sortDescendingFirst:xe}=e;if(I===void 0){const Ie={columnKey:e.key,direction:xe?"DESC":"ASC"};l(o&&fe?[...o,Ie]:[Ie])}else{let Ie;if((xe===!0&&L==="DESC"||xe!==!0&&L==="ASC")&&(Ie={columnKey:e.key,direction:L==="ASC"?"DESC":"ASC"}),fe){const qe=[...o];Ie?qe[N]=Ie:qe.splice(N,1),l(qe)}else l(Ie?[Ie]:[])}}function q(fe){u({idx:e.idx,rowIdx:n}),Q&&G(fe.ctrlKey||fe.metaKey)}function ce(fe){P==null||P(fe),d&&u({idx:0,rowIdx:n})}function H(fe){(fe.key===" "||fe.key==="Enter")&&(fe.preventDefault(),G(fe.ctrlKey||fe.metaKey))}function Y(fe){fe.dataTransfer.setData(g,e.key),fe.dataTransfer.dropEffect="move",v(!0)}function ie(){v(!1)}function J(fe){fe.preventDefault(),fe.dataTransfer.dropEffect="move"}function ee(fe){if(T(!1),fe.dataTransfer.types.includes(g.toLowerCase())){const xe=fe.dataTransfer.getData(g.toLowerCase());xe!==e.key&&(fe.preventDefault(),i==null||i(xe,e.key))}}function Z(fe){VB(fe)&&T(!0)}function ue(fe){VB(fe)&&T(!1)}let ke;return re&&(ke={draggable:!0,onDragStart:Y,onDragEnd:ie,onDragOver:J,onDragEnter:Z,onDragLeave:ue,onDrop:ee}),w.jsxs("div",{role:"columnheader","aria-colindex":e.idx+1,"aria-colspan":t,"aria-rowspan":k,"aria-selected":r,"aria-sort":z,tabIndex:d?0:_,className:ge,style:{...BJ(e,n,k),...C0(e,t)},onFocus:ce,onClick:q,onKeyDown:Q?H:void 0,...ke,children:[e.renderHeaderCell({column:e,sortDirection:L,priority:j,tabIndex:A}),le&&w.jsx("div",{className:Wye,onClick:zve,onPointerDown:me,onDoubleClick:W})]})}function VB(e){const t=e.relatedTarget;return!e.currentTarget.contains(t)}const Kye="r1upfr807-0-0-beta-51",IF=`rdg-row ${Kye}`,Xye="r190mhd37-0-0-beta-51",S_="rdg-row-selected",Qye="r139qu9m7-0-0-beta-51",Jye="rdg-top-summary-row",Zye="rdg-bottom-summary-row",ebe="h10tskcx7-0-0-beta-51",XJ=`rdg-header-row ${ebe}`;function tbe({rowIdx:e,columns:t,onColumnResize:n,onColumnsReorder:r,sortColumns:a,onSortColumnsChange:i,lastFrozenColumnIndex:o,selectedCellIdx:l,selectCell:u,shouldFocusGrid:d,direction:f}){const g=R.useId(),y=[];for(let h=0;ht&&u.parent!==void 0;)u=u.parent;if(u.level===t&&!o.has(u)){o.add(u);const{idx:d}=u;i.push(w.jsx(Fye,{column:u,rowIdx:e,isCellSelected:r===d,selectCell:a},d))}}}return w.jsx("div",{role:"row","aria-rowindex":e,className:XJ,children:i})}var abe=R.memo(rbe);function ibe({className:e,rowIdx:t,gridRowStart:n,selectedCellIdx:r,isRowSelectionDisabled:a,isRowSelected:i,copiedCellIdx:o,draggedOverCellIdx:l,lastFrozenColumnIndex:u,row:d,viewportColumns:f,selectedCellEditor:g,onCellClick:y,onCellDoubleClick:h,onCellContextMenu:v,rowClass:E,setDraggedOverRowIdx:T,onMouseEnter:C,onRowChange:k,selectCell:_,...A}){const P=w_().renderCell,N=Ms((z,Q)=>{k(z,t,Q)});function I(z){T==null||T(t),C==null||C(z)}e=jd(IF,`rdg-row-${t%2===0?"even":"odd"}`,{[S_]:r===-1},E==null?void 0:E(d,t),e);const L=[];for(let z=0;z({isRowSelected:i,isRowSelectionDisabled:a}),[a,i]);return w.jsx(MF,{value:j,children:w.jsx("div",{role:"row",className:e,onMouseEnter:I,style:AF(n),...A,children:L})})}const obe=R.memo(ibe);function sbe(e,t){return w.jsx(obe,{...t},e)}function lbe({scrollToPosition:{idx:e,rowIdx:t},gridRef:n,setScrollToCellPosition:r}){const a=R.useRef(null);return R.useLayoutEffect(()=>{jk(a.current)}),R.useLayoutEffect(()=>{function i(){r(null)}const o=new IntersectionObserver(i,{root:n.current,threshold:1});return o.observe(a.current),()=>{o.disconnect()}},[n,r]),w.jsx("div",{ref:a,style:{gridColumn:e===void 0?"1/-1":e+1,gridRow:t===void 0?"1/-1":t+2}})}const ube="a3ejtar7-0-0-beta-51",cbe=`rdg-sort-arrow ${ube}`;function dbe({sortDirection:e,priority:t}){return w.jsxs(w.Fragment,{children:[fbe({sortDirection:e}),pbe({priority:t})]})}function fbe({sortDirection:e}){return e===void 0?null:w.jsx("svg",{viewBox:"0 0 12 8",width:"12",height:"8",className:cbe,"aria-hidden":!0,children:w.jsx("path",{d:e==="ASC"?"M0 8 6 0 12 8":"M0 0 6 8 12 0"})})}function pbe({priority:e}){return e}const hbe="rnvodz57-0-0-beta-51",mbe=`rdg ${hbe}`,gbe="vlqv91k7-0-0-beta-51",vbe=`rdg-viewport-dragging ${gbe}`,ybe="f1lsfrzw7-0-0-beta-51",bbe="f1cte0lg7-0-0-beta-51",wbe="s8wc6fl7-0-0-beta-51";function Sbe({column:e,colSpan:t,row:n,rowIdx:r,isCellSelected:a,selectCell:i}){var y;const{tabIndex:o,childTabIndex:l,onFocus:u}=jE(a),{summaryCellClass:d}=e,f=FE(e,wbe,typeof d=="function"?d(n):d);function g(){i({rowIdx:r,idx:e.idx})}return w.jsx("div",{role:"gridcell","aria-colindex":e.idx+1,"aria-colspan":t,"aria-selected":a,tabIndex:o,className:f,style:C0(e,t),onClick:g,onFocus:u,children:(y=e.renderSummaryCell)==null?void 0:y.call(e,{column:e,row:n,tabIndex:l})})}var Ebe=R.memo(Sbe);const Tbe="skuhp557-0-0-beta-51",Cbe="tf8l5ub7-0-0-beta-51",kbe=`rdg-summary-row ${Tbe}`;function xbe({rowIdx:e,gridRowStart:t,row:n,viewportColumns:r,top:a,bottom:i,lastFrozenColumnIndex:o,selectedCellIdx:l,isTop:u,selectCell:d,"aria-rowindex":f}){const g=[];for(let y=0;ynew Map),[ft,ut]=R.useState(()=>new Map),[Nt,U]=R.useState(null),[D,F]=R.useState(!1),[ae,Te]=R.useState(void 0),[Fe,We]=R.useState(null),[Tt,Mt]=R.useState(!1),[be,Ee]=R.useState(-1),gt=R.useCallback(nt=>Oe.get(nt.key)??ft.get(nt.key)??nt.width,[ft,Oe]),[Lt,_t,Ut,_n]=Eye(),{columns:gn,colSpanColumns:ln,lastFrozenColumnIndex:Bn,headerRowsCount:sa,colOverscanStartIdx:Qa,colOverscanEndIdx:ma,templateColumns:vn,layoutCssVars:_a,totalFrozenColumnWidth:Wo}=wye({rawColumns:n,defaultColumnOptions:T,getColumnWidth:gt,scrollLeft:qt,viewportWidth:_t,enableVirtualization:kt}),Oa=(a==null?void 0:a.length)??0,Ra=(i==null?void 0:i.length)??0,zo=Oa+Ra,we=sa+Oa,ve=sa-1,$e=-we,ye=$e+ve,Se=r.length+Ra-1,[ne,Me]=R.useState(()=>({idx:-1,rowIdx:$e-1,mode:"SELECT"})),Qe=R.useRef(ae),ot=R.useRef(null),Bt=ke==="treegrid",yn=sa*xe,an=zo*Ie,Dn=Ut-yn-an,En=g!=null&&h!=null,Rr=xt==="rtl",Pr=Rr?"ArrowRight":"ArrowLeft",lr=Rr?"ArrowLeft":"ArrowRight",Ks=J??sa+r.length+zo,ty=R.useMemo(()=>({renderCheckbox:at,renderSortStatus:Ge,renderCell:tt}),[at,Ge,tt]),Ll=R.useMemo(()=>{let nt=!1,pt=!1;if(o!=null&&g!=null&&g.size>0){for(const bt of r)if(g.has(o(bt))?nt=!0:pt=!0,nt&&pt)break}return{isRowSelected:nt&&!pt,isIndeterminate:nt&&pt}},[r,g,o]),{rowOverscanStartIdx:lo,rowOverscanEndIdx:oi,totalRowHeight:uf,gridTemplateRows:ny,getRowTop:Mh,getRowHeight:D0,findRowIdx:$c}=Cye({rows:r,rowHeight:fe,clientHeight:Dn,scrollTop:Rt,enableVirtualization:kt}),Hi=Tye({columns:gn,colSpanColumns:ln,colOverscanStartIdx:Qa,colOverscanEndIdx:ma,lastFrozenColumnIndex:Bn,rowOverscanStartIdx:lo,rowOverscanEndIdx:oi,rows:r,topSummaryRows:a,bottomSummaryRows:i}),{gridTemplateColumns:qo,handleColumnResize:Si}=Sye(gn,Hi,vn,Lt,_t,Oe,ft,dt,ut,I),cf=Bt?-1:0,Nu=gn.length-1,Xs=Bl(ne),Qs=ds(ne),Lc=xe+uf+an+_n,$0=Ms(Si),Ei=Ms(L),df=Ms(E),ff=Ms(C),Ih=Ms(k),Fl=Ms(_),pf=Ms(ry),hf=Ms(Dh),uo=Ms(Iu),mf=Ms(Js),gf=Ms(({idx:nt,rowIdx:pt})=>{Js({rowIdx:$e+pt-1,idx:nt})}),vf=R.useCallback(nt=>{Te(nt),Qe.current=nt},[]),Mu=R.useCallback(()=>{const nt=YB(Lt.current);if(nt===null)return;jk(nt),(nt.querySelector('[tabindex="0"]')??nt).focus({preventScroll:!0})},[Lt]);R.useLayoutEffect(()=>{ot.current!==null&&Xs&&ne.idx===-1&&(ot.current.focus({preventScroll:!0}),jk(ot.current))},[Xs,ne]),R.useLayoutEffect(()=>{Tt&&(Mt(!1),Mu())},[Tt,Mu]),R.useImperativeHandle(t,()=>({element:Lt.current,scrollToCell({idx:nt,rowIdx:pt}){const bt=nt!==void 0&&nt>Bn&&nt{cn(pt),Wt(rye(bt))}),N==null||N(nt)}function Iu(nt,pt,bt){if(typeof l!="function"||bt===r[pt])return;const zt=[...r];zt[pt]=bt,l(zt,{indexes:[pt],column:nt})}function jl(){ne.mode==="EDIT"&&Iu(gn[ne.idx],ne.rowIdx,ne.row)}function Ul(){const{idx:nt,rowIdx:pt}=ne,bt=r[pt],zt=gn[nt].key;U({row:bt,columnKey:zt}),z==null||z({sourceRow:bt,sourceColumnKey:zt})}function ay(){if(!Q||!l||Nt===null||!Du(ne))return;const{idx:nt,rowIdx:pt}=ne,bt=gn[nt],zt=r[pt],Sn=Q({sourceRow:Nt.row,sourceColumnKey:Nt.columnKey,targetRow:zt,targetColumnKey:bt.key});Iu(bt,pt,Sn)}function Lh(nt){if(!Qs)return;const pt=r[ne.rowIdx],{key:bt,shiftKey:zt}=nt;if(En&&zt&&bt===" "){WP(o);const Sn=o(pt);Dh({row:pt,checked:!g.has(Sn),isShiftClick:!1}),nt.preventDefault();return}Du(ne)&&Hve(nt)&&Me(({idx:Sn,rowIdx:ur})=>({idx:Sn,rowIdx:ur,mode:"EDIT",row:pt,originalRow:pt}))}function Fh(nt){return nt>=cf&&nt<=Nu}function co(nt){return nt>=0&&nt=$e&&pt<=Se&&Fh(nt)}function jc({idx:nt,rowIdx:pt}){return co(pt)&&nt>=0&&nt<=Nu}function ds({idx:nt,rowIdx:pt}){return co(pt)&&Fh(nt)}function Du(nt){return jc(nt)&&Kve({columns:gn,rows:r,selectedPosition:nt})}function Js(nt,pt){if(!Bl(nt))return;jl();const bt=KB(ne,nt);if(pt&&Du(nt)){const zt=r[nt.rowIdx];Me({...nt,mode:"EDIT",row:zt,originalRow:zt})}else bt?jk(YB(Lt.current)):(Mt(!0),Me({...nt,mode:"SELECT"}));P&&!bt&&P({rowIdx:nt.rowIdx,row:co(nt.rowIdx)?r[nt.rowIdx]:void 0,column:gn[nt.idx]})}function iy(nt,pt,bt){const{idx:zt,rowIdx:Sn}=ne,ur=Xs&&zt===-1;switch(nt){case"ArrowUp":return{idx:zt,rowIdx:Sn-1};case"ArrowDown":return{idx:zt,rowIdx:Sn+1};case Pr:return{idx:zt-1,rowIdx:Sn};case lr:return{idx:zt+1,rowIdx:Sn};case"Tab":return{idx:zt+(bt?-1:1),rowIdx:Sn};case"Home":return ur?{idx:zt,rowIdx:$e}:{idx:0,rowIdx:pt?$e:Sn};case"End":return ur?{idx:zt,rowIdx:Se}:{idx:Nu,rowIdx:pt?Se:Sn};case"PageUp":{if(ne.rowIdx===$e)return ne;const Ar=Mh(Sn)+D0(Sn)-Dn;return{idx:zt,rowIdx:Ar>0?$c(Ar):0}}case"PageDown":{if(ne.rowIdx>=r.length)return ne;const Ar=Mh(Sn)+Dn;return{idx:zt,rowIdx:Arnt&&nt>=ae)?ne.idx:void 0}function oy(){if(j==null||ne.mode==="EDIT"||!ds(ne))return;const{idx:nt,rowIdx:pt}=ne,bt=gn[nt];if(bt.renderEditCell==null||bt.editable===!1)return;const zt=gt(bt);return w.jsx(Dye,{gridRowStart:we+pt+1,rows:r,column:bt,columnWidth:zt,maxColIdx:Nu,isLastRow:pt===Se,selectedPosition:ne,isCellEditable:Du,latestDraggedOverRowIdx:Qe,onRowsChange:l,onClick:Mu,onFill:j,setDragging:F,setDraggedOverRowIdx:vf})}function si(nt){if(ne.rowIdx!==nt||ne.mode==="SELECT")return;const{idx:pt,row:bt}=ne,zt=gn[pt],Sn=Rl(zt,Bn,{type:"ROW",row:bt}),ur=Jn=>{Mt(Jn),Me(({idx:Pa,rowIdx:Ja})=>({idx:Pa,rowIdx:Ja,mode:"SELECT"}))},Ar=(Jn,Pa,Ja)=>{Pa?Sc.flushSync(()=>{Iu(zt,ne.rowIdx,Jn),ur(Ja)}):Me(Wl=>({...Wl,row:Jn}))};return r[ne.rowIdx]!==ne.originalRow&&ur(!1),w.jsx(Lye,{column:zt,colSpan:Sn,row:bt,rowIdx:nt,onRowChange:Ar,closeEditor:ur,onKeyDown:A,navigate:ar},zt.key)}function fo(nt){const pt=ne.idx===-1?void 0:gn[ne.idx];return pt!==void 0&&ne.rowIdx===nt&&!Hi.includes(pt)?ne.idx>ma?[...Hi,pt]:[...Hi.slice(0,Bn+1),pt,...Hi.slice(Bn+1)]:Hi}function yf(){const nt=[],{idx:pt,rowIdx:bt}=ne,zt=Qs&&btoi?oi+1:oi;for(let ur=zt;ur<=Sn;ur++){const Ar=ur===lo-1||ur===oi+1,Jn=Ar?bt:ur;let Pa=Hi;const Ja=pt===-1?void 0:gn[pt];Ja!==void 0&&(Ar?Pa=[Ja]:Pa=fo(Jn));const Wl=r[Jn],sy=we+Jn+1;let bf=Jn,wf=!1;typeof o=="function"&&(bf=o(Wl),wf=(g==null?void 0:g.has(bf))??!1),nt.push(qe(bf,{"aria-rowindex":we+Jn+1,"aria-selected":En?wf:void 0,rowIdx:Jn,row:Wl,viewportColumns:Pa,isRowSelectionDisabled:(y==null?void 0:y(Wl))??!1,isRowSelected:wf,onCellClick:ff,onCellDoubleClick:Ih,onCellContextMenu:Fl,rowClass:W,gridRowStart:sy,copiedCellIdx:Nt!==null&&Nt.row===Wl?gn.findIndex(li=>li.key===Nt.columnKey):void 0,selectedCellIdx:bt===Jn?pt:void 0,draggedOverCellIdx:ir(Jn),setDraggedOverRowIdx:D?vf:void 0,lastFrozenColumnIndex:Bn,onRowChange:uo,selectCell:mf,selectedCellEditor:si(Jn)}))}return nt}(ne.idx>Nu||ne.rowIdx>Se)&&(Me({idx:-1,rowIdx:$e-1,mode:"SELECT"}),vf(void 0));let Zs=`repeat(${sa}, ${xe}px)`;Oa>0&&(Zs+=` repeat(${Oa}, ${Ie}px)`),r.length>0&&(Zs+=ny),Ra>0&&(Zs+=` repeat(${Ra}, ${Ie}px)`);const jh=ne.idx===-1&&ne.rowIdx!==$e-1;return w.jsxs("div",{role:ke,"aria-label":ce,"aria-labelledby":H,"aria-description":Y,"aria-describedby":ie,"aria-multiselectable":En?!0:void 0,"aria-colcount":gn.length,"aria-rowcount":Ks,className:jd(mbe,{[vbe]:D},ge),style:{...me,scrollPaddingInlineStart:ne.idx>Bn||(Fe==null?void 0:Fe.idx)!==void 0?`${Wo}px`:void 0,scrollPaddingBlock:co(ne.rowIdx)||(Fe==null?void 0:Fe.rowIdx)!==void 0?`${yn+Oa*Ie}px ${Ra*Ie}px`:void 0,gridTemplateColumns:qo,gridTemplateRows:Zs,"--rdg-header-row-height":`${xe}px`,"--rdg-scroll-height":`${Lc}px`,..._a},dir:xt,ref:Lt,onScroll:$h,onKeyDown:Fc,"data-testid":ee,"data-cy":Z,children:[w.jsxs(qJ,{value:ty,children:[w.jsx(YJ,{value:pf,children:w.jsxs(GJ,{value:Ll,children:[Array.from({length:ve},(nt,pt)=>w.jsx(abe,{rowIdx:pt+1,level:-ve+pt,columns:fo($e+pt),selectedCellIdx:ne.rowIdx===$e+pt?ne.idx:void 0,selectCell:gf},pt)),w.jsx(nbe,{rowIdx:sa,columns:fo(ye),onColumnResize:$0,onColumnsReorder:Ei,sortColumns:v,onSortColumnsChange:df,lastFrozenColumnIndex:Bn,selectedCellIdx:ne.rowIdx===ye?ne.idx:void 0,selectCell:gf,shouldFocusGrid:!Xs,direction:xt})]})}),r.length===0&&Et?Et:w.jsxs(w.Fragment,{children:[a==null?void 0:a.map((nt,pt)=>{const bt=sa+1+pt,zt=ye+1+pt,Sn=ne.rowIdx===zt,ur=yn+Ie*pt;return w.jsx(GB,{"aria-rowindex":bt,rowIdx:zt,gridRowStart:bt,row:nt,top:ur,bottom:void 0,viewportColumns:fo(zt),lastFrozenColumnIndex:Bn,selectedCellIdx:Sn?ne.idx:void 0,isTop:!0,selectCell:mf},pt)}),w.jsx(HJ,{value:hf,children:yf()}),i==null?void 0:i.map((nt,pt)=>{const bt=we+r.length+pt+1,zt=r.length+pt,Sn=ne.rowIdx===zt,ur=Dn>uf?Ut-Ie*(i.length-pt):void 0,Ar=ur===void 0?Ie*(i.length-1-pt):void 0;return w.jsx(GB,{"aria-rowindex":Ks-Ra+pt+1,rowIdx:zt,gridRowStart:bt,row:nt,top:ur,bottom:Ar,viewportColumns:fo(zt),lastFrozenColumnIndex:Bn,selectedCellIdx:Sn?ne.idx:void 0,isTop:!1,selectCell:mf},pt)})]})]}),oy(),Yve(Hi),Bt&&w.jsx("div",{ref:ot,tabIndex:jh?0:-1,className:jd(ybe,{[bbe]:!co(ne.rowIdx),[Xye]:jh,[Qye]:jh&&Bn!==-1}),style:{gridRowStart:ne.rowIdx+we+1}}),Fe!==null&&w.jsx(lbe,{scrollToPosition:Fe,setScrollToCellPosition:We,gridRef:Lt})]})}function YB(e){return e.querySelector(':scope > [role="row"] > [tabindex="0"]')}function KB(e,t){return e.idx===t.idx&&e.rowIdx===t.rowIdx}function Obe({id:e,groupKey:t,childRows:n,isExpanded:r,isCellSelected:a,column:i,row:o,groupColumnIndex:l,isGroupByColumn:u,toggleGroup:d}){var E;const{tabIndex:f,childTabIndex:g,onFocus:y}=jE(a);function h(){d(e)}const v=u&&l===i.idx;return w.jsx("div",{role:"gridcell","aria-colindex":i.idx+1,"aria-selected":a,tabIndex:f,className:FE(i),style:{...C0(i),cursor:v?"pointer":"default"},onClick:v?h:void 0,onFocus:y,children:(!u||v)&&((E=i.renderGroupCell)==null?void 0:E.call(i,{groupKey:t,childRows:n,column:i,row:o,isExpanded:r,tabIndex:g,toggleGroup:h}))},i.key)}var Rbe=R.memo(Obe);const Pbe="g1yxluv37-0-0-beta-51",Abe=`rdg-group-row ${Pbe}`;function Nbe({className:e,row:t,rowIdx:n,viewportColumns:r,selectedCellIdx:a,isRowSelected:i,selectCell:o,gridRowStart:l,groupBy:u,toggleGroup:d,isRowSelectionDisabled:f,...g}){const y=r[0].key===Sx?t.level+1:t.level;function h(){o({rowIdx:n,idx:-1})}const v=R.useMemo(()=>({isRowSelectionDisabled:!1,isRowSelected:i}),[i]);return w.jsx(MF,{value:v,children:w.jsx("div",{role:"row","aria-level":t.level+1,"aria-setsize":t.setSize,"aria-posinset":t.posInSet+1,"aria-expanded":t.isExpanded,className:jd(IF,Abe,`rdg-row-${n%2===0?"even":"odd"}`,a===-1&&S_,e),onClick:h,style:AF(l),...g,children:r.map(E=>w.jsx(Rbe,{id:t.id,groupKey:t.groupKey,childRows:t.childRows,isExpanded:t.isExpanded,isCellSelected:a===E.idx,column:E,row:t,groupColumnIndex:y,toggleGroup:d,isGroupByColumn:u.includes(E.key)},E.key))})})}R.memo(Nbe);const QJ=({value:e})=>{const t=n=>{n.stopPropagation(),navigator.clipboard.writeText(e).then(()=>{})};return w.jsx("div",{className:"table-btn table-copy-btn",onClick:t,children:w.jsx(Mbe,{})})},Mbe=({size:e=16,color:t="silver",style:n={}})=>w.jsx("svg",{width:e,height:e,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",style:n,children:w.jsx("path",{d:"M16 1H6C4.9 1 4 1.9 4 3V17H6V3H16V1ZM18 5H10C8.9 5 8 5.9 8 7V21C8 22.1 8.9 23 10 23H18C19.1 23 20 22.1 20 21V7C20 5.9 19.1 5 18 5ZM18 21H10V7H18V21Z",fill:t})}),Ibe=({value:e})=>{const{addRouter:t}=zv(),n=r=>{r.stopPropagation(),t(e)};return w.jsx("div",{className:"table-btn table-open-in-new-router",onClick:n,children:w.jsx(Dbe,{})})},Dbe=({size:e=16,color:t="silver",style:n={}})=>w.jsx("svg",{width:e,height:e,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",style:{cursor:"pointer",...n},children:w.jsx("path",{d:"M9 3H5C3.895 3 3 3.895 3 5v14c0 1.105.895 2 2 2h14c1.105 0 2-.895 2-2v-4h-2v4H5V5h4V3ZM21 3h-6v2h3.586l-9.293 9.293 1.414 1.414L20 6.414V10h2V3Z",fill:t})});/** +***************************************************************************** */var n3=function(e,t){return n3=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var a in r)Object.prototype.hasOwnProperty.call(r,a)&&(n[a]=r[a])},n3(e,t)};function sT(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");n3(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}var to=function(){return to=Object.assign||function(t){for(var n,r=1,a=arguments.length;r{e(!1)})},refs:[]});function Eye({mref:e,context:t}){const n=At(),r=e.component,a=async()=>{e.onSubmit&&await e.onSubmit()===!0&&t.closeModal(e.id)};return w.jsx("div",{className:"modal d-block with-fade-in",children:w.jsx("div",{className:"modal-dialog",children:w.jsxs("div",{className:"modal-content",children:[w.jsxs("div",{className:"modal-header",children:[w.jsx("h5",{className:"modal-title",children:e.title}),w.jsx("button",{type:"button",id:"cls",className:"btn-close",onClick:()=>t.closeModal(e.id),"aria-label":"Close"})]}),w.jsx("div",{className:"modal-body",children:w.jsx("p",{children:w.jsx(r,{})})}),w.jsxs("div",{className:"modal-footer",children:[w.jsx("button",{type:"button",className:"btn btn-secondary",autoFocus:!0,onClick:()=>t.closeModal(e.id),children:n.close}),w.jsx("button",{onClick:a,type:"button",className:"btn btn-primary",children:e.confirmButtonLabel||n.saveChanges})]})]})})})}function Tye(){const e=R.useContext(H_);return w.jsxs(w.Fragment,{children:[e.refs.map(t=>w.jsx(Eye,{context:e,mref:t},t.id)),e.refs.length?w.jsx("div",{className:sa("modal-backdrop fade",e.refs.length&&"show")}):null]})}function Cye({children:e}){const[t,n]=R.useState([]),r=l=>{let u=(Math.random()+1).toString(36).substring(2);const d={...l,id:u};n(f=>[...f,d])},a=l=>{n(u=>u.filter(d=>d.id!==l))},i=()=>new Promise(l=>{l(!0)});return zF("Escape",()=>{n(l=>l.filter((u,d)=>d!==l.length-1))}),w.jsx(H_.Provider,{value:{confirm:i,refs:t,closeModal:a,openModal:r},children:e})}const pZ=()=>{const{openDrawer:e,openModal:t}=GF();return{confirmDrawer:({title:a,description:i,cancelLabel:o,confirmLabel:l})=>e(({close:u,resolve:d})=>w.jsxs("div",{className:"confirm-drawer-container p-3",children:[w.jsx("h2",{children:a}),w.jsx("span",{children:i}),w.jsxs("div",{children:[w.jsx("button",{className:"d-block w-100 btn btn-primary",onClick:()=>d(),children:l}),w.jsx("button",{className:"d-block w-100 btn",onClick:()=>u(),children:o})]})]})),confirmModal:({title:a,description:i,cancelLabel:o,confirmLabel:l})=>t(({close:u,resolve:d})=>w.jsxs("div",{className:"confirm-drawer-container p-3",children:[w.jsx("span",{children:i}),w.jsxs("div",{className:"row mt-4",children:[w.jsx("div",{className:"col-md-6",children:w.jsx("button",{className:"d-block w-100 btn btn-primary",onClick:()=>d(),children:l})}),w.jsx("div",{className:"col-md-6",children:w.jsx("button",{className:"d-block w-100 btn",onClick:()=>u(),children:o})})]})]}),{title:a})}};function kye({urlMask:e,submitDelete:t,onRecordsDeleted:n,initialFilters:r}){const a=At(),i=xr(),{confirmModal:o}=pZ(),{withDebounce:l}=SJ(),u={itemsPerPage:100,startIndex:0,sorting:[],...r||{}},[d,f]=R.useState(u),[g,y]=R.useState(u),{search:h}=sf(),v=R.useRef(!1);R.useEffect(()=>{if(v.current)return;v.current=!0;let ge={};try{ge=oi.parse(h.substring(1)),delete ge.startIndex}catch{}f({...u,...ge}),y({...u,...ge})},[h]);const[E,T]=R.useState([]),k=(ge=>{var G;const W={...ge};return delete W.startIndex,delete W.itemsPerPage,((G=W==null?void 0:W.sorting)==null?void 0:G.length)===0&&delete W.sorting,JSON.stringify(W)})(d),_=ge=>{T(ge)},A=(ge,W=!0)=>{const G={...d,...ge};W&&(G.startIndex=0),f(G),i.push("?"+oi.stringify(G),void 0,{},!0),l(()=>{y(G)},500)},P=ge=>{A({itemsPerPage:ge},!1)},N=ge=>ge.map(W=>`${W.columnName} ${W.direction}`).join(", "),I=ge=>{A({sorting:ge,sort:N(ge)},!1)},L=ge=>{A({startIndex:ge},!1)},j=ge=>{A({startIndex:0})};R.useContext(H_);const z=ge=>({query:ge.map(W=>`unique_id = ${W}`).join(" or "),uniqueId:""}),Q=async()=>{o({title:a.confirm,confirmLabel:a.common.yes,cancelLabel:a.common.no,description:a.deleteConfirmMessage}).promise.then(({type:ge})=>{if(ge==="resolved")return t(z(E),null)}).then(()=>{n&&n()})},ue=()=>({label:a.deleteAction,onSelect(){Q()},icon:Ru.delete,uniqueActionKey:"GENERAL_DELETE_ACTION"}),{addActions:re,removeActionMenu:me}=Khe();return R.useEffect(()=>{if(E.length>0&&typeof t<"u")return re("table-selection",[ue()]);me("table-selection")},[E]),W0(Ir.Delete,()=>{E.length>0&&typeof t<"u"&&Q()}),{filters:d,setFilters:f,setFilter:A,setSorting:I,setStartIndex:L,selection:E,setSelection:_,onFiltersChange:j,queryHash:k,setPageSize:P,debouncedFilters:g}}function xye({queryOptions:e,execFnOverride:t,query:n,queryClient:r,unauthorized:a}){var T;const{options:i,execFn:o}=R.useContext(it),l=t?t(i):o?o(i):Tt(i);let d=`${"/table-view-sizing/:uniqueId".substr(1)}?${new URLSearchParams(Gt(n)).toString()}`,f=!0;d=d.replace(":uniqueId",n[":uniqueId".replace(":","")]),n[":uniqueId".replace(":","")]===void 0&&(f=!1);const g=()=>l("GET",d),y=(T=i==null?void 0:i.headers)==null?void 0:T.authorization,h=y!="undefined"&&y!=null&&y!=null&&y!="null"&&!!y;let v=!0;return f?!h&&!a&&(v=!1):v=!1,{query:jn([i,n,"*abac.TableViewSizingEntity"],g,{cacheTime:1001,retry:!1,keepPreviousData:!0,enabled:v,...e||{}})}}class ij extends wn{constructor(...t){super(...t),this.children=void 0,this.tableName=void 0,this.sizes=void 0}}ij.Navigation={edit(e,t){return`${t?"/"+t:".."}/table-view-sizing/edit/${e}`},create(e){return`${e?"/"+e:".."}/table-view-sizing/new`},single(e,t){return`${t?"/"+t:".."}/table-view-sizing/${e}`},query(e={},t){return`${t?"/"+t:".."}/table-view-sizings`},Redit:"table-view-sizing/edit/:uniqueId",Rcreate:"table-view-sizing/new",Rsingle:"table-view-sizing/:uniqueId",Rquery:"table-view-sizings"};ij.definition={rpc:{query:{}},name:"tableViewSizing",features:{},gormMap:{},fields:[{name:"tableName",type:"string",validate:"required",computedType:"string",gormMap:{}},{name:"sizes",type:"string",computedType:"string",gormMap:{}}],cliShort:"tvs",description:"Used to store meta data about user tables (in front-end, or apps for example) about the size of the columns"};ij.Fields={...wn.Fields,tableName:"tableName",sizes:"sizes"};function _ye(e){let{queryClient:t,query:n,execFnOverride:r}=e||{};n=n||{};const{options:a,execFn:i}=R.useContext(it),o=r?r(a):i?i(a):Tt(a);let u=`${"/table-view-sizing".substr(1)}?${new URLSearchParams(Gt(n)).toString()}`;const f=un(h=>o("PATCH",u,h)),g=(h,v)=>{var E;return h?(h.data&&(v!=null&&v.data)&&(h.data.items=[v.data,...((E=h==null?void 0:h.data)==null?void 0:E.items)||[]]),h):{data:{items:[]}}};return{mutation:f,submit:(h,v)=>new Promise((E,T)=>{f.mutate(h,{onSuccess(C){t==null||t.setQueriesData("*abac.TableViewSizingEntity",k=>g(k,C)),E(C)},onError(C){v==null||v.setErrors(Pn(C)),T(C)}})}),fnUpdater:g}}function hZ(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var a=e.length;for(t=0;t1&&(!e.frozen||e.idx+r-1<=t))return r}function Oye(e){e.stopPropagation()}function cx(e){e==null||e.scrollIntoView({inline:"nearest",block:"nearest"})}function K1(e){let t=!1;const n={...e,preventGridDefault(){t=!0},isGridDefaultPrevented(){return t}};return Object.setPrototypeOf(n,Object.getPrototypeOf(e)),n}const Rye=new Set(["Unidentified","Alt","AltGraph","CapsLock","Control","Fn","FnLock","Meta","NumLock","ScrollLock","Shift","Tab","ArrowDown","ArrowLeft","ArrowRight","ArrowUp","End","Home","PageDown","PageUp","Insert","ContextMenu","Escape","Pause","Play","PrintScreen","F1","F3","F4","F5","F6","F7","F8","F9","F10","F11","F12"]);function r3(e){return(e.ctrlKey||e.metaKey)&&e.key!=="Control"}function Pye(e){return r3(e)&&e.keyCode!==86?!1:!Rye.has(e.key)}function Aye({key:e,target:t}){var n;return e==="Tab"&&(t instanceof HTMLInputElement||t instanceof HTMLTextAreaElement||t instanceof HTMLSelectElement)?((n=t.closest(".rdg-editor-container"))==null?void 0:n.querySelectorAll("input, textarea, select").length)===1:!1}const Nye="mlln6zg7-0-0-beta-51";function Mye(e){return e.map(({key:t,idx:n,minWidth:r,maxWidth:a})=>w.jsx("div",{className:Nye,style:{gridColumnStart:n+1,minWidth:r,maxWidth:a},"data-measuring-cell-key":t},t))}function Iye({selectedPosition:e,columns:t,rows:n}){const r=t[e.idx],a=n[e.rowIdx];return mZ(r,a)}function mZ(e,t){return e.renderEditCell!=null&&(typeof e.editable=="function"?e.editable(t):e.editable)!==!1}function Dye({rows:e,topSummaryRows:t,bottomSummaryRows:n,rowIdx:r,mainHeaderRowIdx:a,lastFrozenColumnIndex:i,column:o}){const l=(t==null?void 0:t.length)??0;if(r===a)return Nl(o,i,{type:"HEADER"});if(t&&r>a&&r<=l+a)return Nl(o,i,{type:"SUMMARY",row:t[r+l]});if(r>=0&&r{for(const I of a){const L=I.idx;if(L>T)break;const j=Dye({rows:i,topSummaryRows:o,bottomSummaryRows:l,rowIdx:C,mainHeaderRowIdx:d,lastFrozenColumnIndex:v,column:I});if(j&&T>L&&TN.level+d,P=()=>{if(t){let I=r[T].parent;for(;I!==void 0;){const L=A(I);if(C===L){T=I.idx+I.colSpan;break}I=I.parent}}else if(e){let I=r[T].parent,L=!1;for(;I!==void 0;){const j=A(I);if(C>=j){T=I.idx,C=j,L=!0;break}I=I.parent}L||(T=g,C=y)}};if(E(h)&&(_(t),C=L&&(C=j,T=I.idx),I=I.parent}}return{idx:T,rowIdx:C}}function Lye({maxColIdx:e,minRowIdx:t,maxRowIdx:n,selectedPosition:{rowIdx:r,idx:a},shiftKey:i}){return i?a===0&&r===t:a===e&&r===n}const Fye="cj343x07-0-0-beta-51",gZ=`rdg-cell ${Fye}`,jye="csofj7r7-0-0-beta-51",Uye=`rdg-cell-frozen ${jye}`;function oj(e){return{"--rdg-grid-row-start":e}}function vZ(e,t,n){const r=t+1,a=`calc(${n-1} * var(--rdg-header-row-height))`;return e.parent===void 0?{insetBlockStart:0,gridRowStart:1,gridRowEnd:r,paddingBlockStart:a}:{insetBlockStart:`calc(${t-n} * var(--rdg-header-row-height))`,gridRowStart:r-n,gridRowEnd:r,paddingBlockStart:a}}function V0(e,t=1){const n=e.idx+1;return{gridColumnStart:n,gridColumnEnd:n+t,insetInlineStart:e.frozen?`var(--rdg-frozen-left-${e.idx})`:void 0}}function lT(e,...t){return Vd(gZ,{[Uye]:e.frozen},...t)}const{min:wE,max:Hx,floor:y8,sign:Bye,abs:Wye}=Math;function gA(e){if(typeof e!="function")throw new Error("Please specify the rowKeyGetter prop to use selection")}function yZ(e,{minWidth:t,maxWidth:n}){return e=Hx(e,t),typeof n=="number"&&n>=t?wE(e,n):e}function bZ(e,t){return e.parent===void 0?t:e.level-e.parent.level}const zye="c1bn88vv7-0-0-beta-51",qye=`rdg-checkbox-input ${zye}`;function Hye({onChange:e,indeterminate:t,...n}){function r(a){e(a.target.checked,a.nativeEvent.shiftKey)}return w.jsx("input",{ref:a=>{a&&(a.indeterminate=t===!0)},type:"checkbox",className:qye,onChange:r,...n})}function Vye(e){try{return e.row[e.column.key]}catch{return null}}const wZ=R.createContext(void 0);function V_(){return R.useContext(wZ)}function sj({value:e,tabIndex:t,indeterminate:n,disabled:r,onChange:a,"aria-label":i,"aria-labelledby":o}){const l=V_().renderCheckbox;return l({"aria-label":i,"aria-labelledby":o,tabIndex:t,indeterminate:n,disabled:r,checked:e,onChange:a})}const lj=R.createContext(void 0),SZ=R.createContext(void 0);function EZ(){const e=R.useContext(lj),t=R.useContext(SZ);if(e===void 0||t===void 0)throw new Error("useRowSelection must be used within renderCell");return{isRowSelectionDisabled:e.isRowSelectionDisabled,isRowSelected:e.isRowSelected,onRowSelectionChange:t}}const TZ=R.createContext(void 0),CZ=R.createContext(void 0);function Gye(){const e=R.useContext(TZ),t=R.useContext(CZ);if(e===void 0||t===void 0)throw new Error("useHeaderRowSelection must be used within renderHeaderCell");return{isIndeterminate:e.isIndeterminate,isRowSelected:e.isRowSelected,onRowSelectionChange:t}}const Vx="rdg-select-column";function Yye(e){const{isIndeterminate:t,isRowSelected:n,onRowSelectionChange:r}=Gye();return w.jsx(sj,{"aria-label":"Select All",tabIndex:e.tabIndex,indeterminate:t,value:n,onChange:a=>{r({checked:t?!1:a})}})}function Kye(e){const{isRowSelectionDisabled:t,isRowSelected:n,onRowSelectionChange:r}=EZ();return w.jsx(sj,{"aria-label":"Select",tabIndex:e.tabIndex,disabled:t,value:n,onChange:(a,i)=>{r({row:e.row,checked:a,isShiftClick:i})}})}function Xye(e){const{isRowSelected:t,onRowSelectionChange:n}=EZ();return w.jsx(sj,{"aria-label":"Select Group",tabIndex:e.tabIndex,value:t,onChange:r=>{n({row:e.row,checked:r,isShiftClick:!1})}})}const Qye={key:Vx,name:"",width:35,minWidth:35,maxWidth:35,resizable:!1,sortable:!1,frozen:!0,renderHeaderCell(e){return w.jsx(Yye,{...e})},renderCell(e){return w.jsx(Kye,{...e})},renderGroupCell(e){return w.jsx(Xye,{...e})}},Jye="h44jtk67-0-0-beta-51",Zye="hcgkhxz7-0-0-beta-51",ebe=`rdg-header-sort-name ${Zye}`;function tbe({column:e,sortDirection:t,priority:n}){return e.sortable?w.jsx(nbe,{sortDirection:t,priority:n,children:e.name}):e.name}function nbe({sortDirection:e,priority:t,children:n}){const r=V_().renderSortStatus;return w.jsxs("span",{className:Jye,children:[w.jsx("span",{className:ebe,children:n}),w.jsx("span",{children:r({sortDirection:e,priority:t})})]})}const rbe="auto",abe=50;function ibe({rawColumns:e,defaultColumnOptions:t,getColumnWidth:n,viewportWidth:r,scrollLeft:a,enableVirtualization:i}){const o=(t==null?void 0:t.width)??rbe,l=(t==null?void 0:t.minWidth)??abe,u=(t==null?void 0:t.maxWidth)??void 0,d=(t==null?void 0:t.renderCell)??Vye,f=(t==null?void 0:t.renderHeaderCell)??tbe,g=(t==null?void 0:t.sortable)??!1,y=(t==null?void 0:t.resizable)??!1,h=(t==null?void 0:t.draggable)??!1,{columns:v,colSpanColumns:E,lastFrozenColumnIndex:T,headerRowsCount:C}=R.useMemo(()=>{let L=-1,j=1;const z=[];Q(e,1);function Q(re,me,ge){for(const W of re){if("children"in W){const ce={name:W.name,parent:ge,idx:-1,colSpan:0,level:0,headerCellClass:W.headerCellClass};Q(W.children,me+1,ce);continue}const G=W.frozen??!1,q={...W,parent:ge,idx:0,level:0,frozen:G,width:W.width??o,minWidth:W.minWidth??l,maxWidth:W.maxWidth??u,sortable:W.sortable??g,resizable:W.resizable??y,draggable:W.draggable??h,renderCell:W.renderCell??d,renderHeaderCell:W.renderHeaderCell??f};z.push(q),G&&L++,me>j&&(j=me)}}z.sort(({key:re,frozen:me},{key:ge,frozen:W})=>re===Vx?-1:ge===Vx?1:me?W?0:-1:W?1:0);const ue=[];return z.forEach((re,me)=>{re.idx=me,kZ(re,me,0),re.colSpan!=null&&ue.push(re)}),{columns:z,colSpanColumns:ue,lastFrozenColumnIndex:L,headerRowsCount:j}},[e,o,l,u,d,f,y,g,h]),{templateColumns:k,layoutCssVars:_,totalFrozenColumnWidth:A,columnMetrics:P}=R.useMemo(()=>{const L=new Map;let j=0,z=0;const Q=[];for(const re of v){let me=n(re);typeof me=="number"?me=yZ(me,re):me=re.minWidth,Q.push(`${me}px`),L.set(re,{width:me,left:j}),j+=me}if(T!==-1){const re=L.get(v[T]);z=re.left+re.width}const ue={};for(let re=0;re<=T;re++){const me=v[re];ue[`--rdg-frozen-left-${me.idx}`]=`${L.get(me).left}px`}return{templateColumns:Q,layoutCssVars:ue,totalFrozenColumnWidth:z,columnMetrics:L}},[n,v,T]),[N,I]=R.useMemo(()=>{if(!i)return[0,v.length-1];const L=a+A,j=a+r,z=v.length-1,Q=wE(T+1,z);if(L>=j)return[Q,Q];let ue=Q;for(;ueL)break;ue++}let re=ue;for(;re=j)break;re++}const me=Hx(Q,ue-1),ge=wE(z,re+1);return[me,ge]},[P,v,T,a,A,r,i]);return{columns:v,colSpanColumns:E,colOverscanStartIdx:N,colOverscanEndIdx:I,templateColumns:k,layoutCssVars:_,headerRowsCount:C,lastFrozenColumnIndex:T,totalFrozenColumnWidth:A}}function kZ(e,t,n){if(n{f.current=a,T(v)});function T(k){k.length!==0&&u(_=>{const A=new Map(_);let P=!1;for(const N of k){const I=b8(r,N);P||(P=I!==_.get(N)),I===void 0?A.delete(N):A.set(N,I)}return P?A:_})}function C(k,_){const{key:A}=k,P=[...n],N=[];for(const{key:L,idx:j,width:z}of t)if(A===L){const Q=typeof _=="number"?`${_}px`:_;P[j]=Q}else g&&typeof z=="string"&&!i.has(L)&&(P[j]=z,N.push(L));r.current.style.gridTemplateColumns=P.join(" ");const I=typeof _=="number"?_:b8(r,A);Cc.flushSync(()=>{l(L=>{const j=new Map(L);return j.set(A,I),j}),T(N)}),d==null||d(k,I)}return{gridTemplateColumns:E,handleColumnResize:C}}function b8(e,t){var a;const n=`[data-measuring-cell-key="${CSS.escape(t)}"]`,r=(a=e.current)==null?void 0:a.querySelector(n);return r==null?void 0:r.getBoundingClientRect().width}function sbe(){const e=R.useRef(null),[t,n]=R.useState(1),[r,a]=R.useState(1),[i,o]=R.useState(0);return R.useLayoutEffect(()=>{const{ResizeObserver:l}=window;if(l==null)return;const{clientWidth:u,clientHeight:d,offsetWidth:f,offsetHeight:g}=e.current,{width:y,height:h}=e.current.getBoundingClientRect(),v=g-d,E=y-f+u,T=h-v;n(E),a(T),o(v);const C=new l(k=>{const _=k[0].contentBoxSize[0],{clientHeight:A,offsetHeight:P}=e.current;Cc.flushSync(()=>{n(_.inlineSize),a(_.blockSize),o(P-A)})});return C.observe(e.current),()=>{C.disconnect()}},[]),[e,t,r,i]}function js(e){const t=R.useRef(e);R.useEffect(()=>{t.current=e});const n=R.useCallback((...r)=>{t.current(...r)},[]);return e&&n}function uT(e){const[t,n]=R.useState(!1);t&&!e&&n(!1);function r(i){i.target!==i.currentTarget&&n(!0)}return{tabIndex:e&&!t?0:-1,childTabIndex:e?0:-1,onFocus:e?r:void 0}}function lbe({columns:e,colSpanColumns:t,rows:n,topSummaryRows:r,bottomSummaryRows:a,colOverscanStartIdx:i,colOverscanEndIdx:o,lastFrozenColumnIndex:l,rowOverscanStartIdx:u,rowOverscanEndIdx:d}){const f=R.useMemo(()=>{if(i===0)return 0;let g=i;const y=(h,v)=>v!==void 0&&h+v>i?(g=h,!0):!1;for(const h of t){const v=h.idx;if(v>=g||y(v,Nl(h,l,{type:"HEADER"})))break;for(let E=u;E<=d;E++){const T=n[E];if(y(v,Nl(h,l,{type:"ROW",row:T})))break}if(r!=null){for(const E of r)if(y(v,Nl(h,l,{type:"SUMMARY",row:E})))break}if(a!=null){for(const E of a)if(y(v,Nl(h,l,{type:"SUMMARY",row:E})))break}}return g},[u,d,n,r,a,i,l,t]);return R.useMemo(()=>{const g=[];for(let y=0;y<=o;y++){const h=e[y];y{if(typeof t=="number")return{totalRowHeight:t*e.length,gridTemplateRows:` repeat(${e.length}, ${t}px)`,getRowTop:T=>T*t,getRowHeight:()=>t,findRowIdx:T=>y8(T/t)};let y=0,h=" ";const v=e.map(T=>{const C=t(T),k={top:y,height:C};return h+=`${C}px `,y+=C,k}),E=T=>Hx(0,wE(e.length-1,T));return{totalRowHeight:y,gridTemplateRows:h,getRowTop:T=>v[E(T)].top,getRowHeight:T=>v[E(T)].height,findRowIdx(T){let C=0,k=v.length-1;for(;C<=k;){const _=C+y8((k-C)/2),A=v[_].top;if(A===T)return _;if(AT&&(k=_-1),C>k)return k}return 0}}},[t,e]);let f=0,g=e.length-1;if(a){const h=d(r),v=d(r+n);f=Hx(0,h-4),g=wE(e.length-1,v+4)}return{rowOverscanStartIdx:f,rowOverscanEndIdx:g,totalRowHeight:i,gridTemplateRows:o,getRowTop:l,getRowHeight:u,findRowIdx:d}}const cbe="c6ra8a37-0-0-beta-51",dbe=`rdg-cell-copied ${cbe}`,fbe="cq910m07-0-0-beta-51",pbe=`rdg-cell-dragged-over ${fbe}`;function hbe({column:e,colSpan:t,isCellSelected:n,isCopied:r,isDraggedOver:a,row:i,rowIdx:o,className:l,onClick:u,onDoubleClick:d,onContextMenu:f,onRowChange:g,selectCell:y,style:h,...v}){const{tabIndex:E,childTabIndex:T,onFocus:C}=uT(n),{cellClass:k}=e;l=lT(e,{[dbe]:r,[pbe]:a},typeof k=="function"?k(i):k,l);const _=mZ(e,i);function A(j){y({rowIdx:o,idx:e.idx},j)}function P(j){if(u){const z=K1(j);if(u({rowIdx:o,row:i,column:e,selectCell:A},z),z.isGridDefaultPrevented())return}A()}function N(j){if(f){const z=K1(j);if(f({rowIdx:o,row:i,column:e,selectCell:A},z),z.isGridDefaultPrevented())return}A()}function I(j){if(d){const z=K1(j);if(d({rowIdx:o,row:i,column:e,selectCell:A},z),z.isGridDefaultPrevented())return}A(!0)}function L(j){g(e,j)}return w.jsx("div",{role:"gridcell","aria-colindex":e.idx+1,"aria-colspan":t,"aria-selected":n,"aria-readonly":!_||void 0,tabIndex:E,className:l,style:{...V0(e,t),...h},onClick:P,onDoubleClick:I,onContextMenu:N,onFocus:C,...v,children:e.renderCell({column:e,row:i,rowIdx:o,isCellEditable:_,tabIndex:T,onRowChange:L})})}const mbe=R.memo(hbe);function gbe(e,t){return w.jsx(mbe,{...t},e)}const vbe="c1w9bbhr7-0-0-beta-51",ybe="c1creorc7-0-0-beta-51",bbe=`rdg-cell-drag-handle ${vbe}`;function wbe({gridRowStart:e,rows:t,column:n,columnWidth:r,maxColIdx:a,isLastRow:i,selectedPosition:o,latestDraggedOverRowIdx:l,isCellEditable:u,onRowsChange:d,onFill:f,onClick:g,setDragging:y,setDraggedOverRowIdx:h}){const{idx:v,rowIdx:E}=o;function T(P){if(P.preventDefault(),P.buttons!==1)return;y(!0),window.addEventListener("mouseover",N),window.addEventListener("mouseup",I);function N(L){L.buttons!==1&&I()}function I(){window.removeEventListener("mouseover",N),window.removeEventListener("mouseup",I),y(!1),C()}}function C(){const P=l.current;if(P===void 0)return;const N=E0&&(d==null||d(L,{indexes:j,column:n}))}function A(){var z;const P=((z=n.colSpan)==null?void 0:z.call(n,{type:"ROW",row:t[E]}))??1,{insetInlineStart:N,...I}=V0(n,P),L="calc(var(--rdg-drag-handle-size) * -0.5 + 1px)",j=n.idx+P-1===a;return{...I,gridRowStart:e,marginInlineEnd:j?void 0:L,marginBlockEnd:i?void 0:L,insetInlineStart:N?`calc(${N} + ${r}px + var(--rdg-drag-handle-size) * -0.5 - 1px)`:void 0}}return w.jsx("div",{style:A(),className:Vd(bbe,n.frozen&&ybe),onClick:g,onMouseDown:T,onDoubleClick:k})}const Sbe="cis5rrm7-0-0-beta-51";function Ebe({column:e,colSpan:t,row:n,rowIdx:r,onRowChange:a,closeEditor:i,onKeyDown:o,navigate:l}){var C,k,_;const u=R.useRef(void 0),d=((C=e.editorOptions)==null?void 0:C.commitOnOutsideClick)!==!1,f=js(()=>{h(!0,!1)});R.useEffect(()=>{if(!d)return;function A(){u.current=requestAnimationFrame(f)}return addEventListener("mousedown",A,{capture:!0}),()=>{removeEventListener("mousedown",A,{capture:!0}),g()}},[d,f]);function g(){cancelAnimationFrame(u.current)}function y(A){if(o){const P=K1(A);if(o({mode:"EDIT",row:n,column:e,rowIdx:r,navigate(){l(A)},onClose:h},P),P.isGridDefaultPrevented())return}A.key==="Escape"?h():A.key==="Enter"?h(!0):Aye(A)&&l(A)}function h(A=!1,P=!0){A?a(n,!0,P):i(P)}function v(A,P=!1){a(A,P,P)}const{cellClass:E}=e,T=lT(e,"rdg-editor-container",!((k=e.editorOptions)!=null&&k.displayCellContent)&&Sbe,typeof E=="function"?E(n):E);return w.jsx("div",{role:"gridcell","aria-colindex":e.idx+1,"aria-colspan":t,"aria-selected":!0,className:T,style:V0(e,t),onKeyDown:y,onMouseDownCapture:g,children:e.renderEditCell!=null&&w.jsxs(w.Fragment,{children:[e.renderEditCell({column:e,row:n,rowIdx:r,onRowChange:v,onClose:h}),((_=e.editorOptions)==null?void 0:_.displayCellContent)&&e.renderCell({column:e,row:n,rowIdx:r,isCellEditable:!0,tabIndex:-1,onRowChange:v})]})})}function Tbe({column:e,rowIdx:t,isCellSelected:n,selectCell:r}){const{tabIndex:a,onFocus:i}=uT(n),{colSpan:o}=e,l=bZ(e,t),u=e.idx+1;function d(){r({idx:e.idx,rowIdx:t})}return w.jsx("div",{role:"columnheader","aria-colindex":u,"aria-colspan":o,"aria-rowspan":l,"aria-selected":n,tabIndex:a,className:Vd(gZ,e.headerCellClass),style:{...vZ(e,t,l),gridColumnStart:u,gridColumnEnd:u+o},onFocus:i,onClick:d,children:e.name})}const Cbe="c6l2wv17-0-0-beta-51",kbe="c1kqdw7y7-0-0-beta-51",xbe=`rdg-cell-resizable ${kbe}`,_be="r1y6ywlx7-0-0-beta-51",Obe="rdg-cell-draggable",Rbe="c1bezg5o7-0-0-beta-51",Pbe=`rdg-cell-dragging ${Rbe}`,Abe="c1vc96037-0-0-beta-51",Nbe=`rdg-cell-drag-over ${Abe}`;function Mbe({column:e,colSpan:t,rowIdx:n,isCellSelected:r,onColumnResize:a,onColumnsReorder:i,sortColumns:o,onSortColumnsChange:l,selectCell:u,shouldFocusGrid:d,direction:f,dragDropKey:g}){const y=R.useRef(!1),[h,v]=R.useState(!1),[E,T]=R.useState(!1),C=f==="rtl",k=bZ(e,n),{tabIndex:_,childTabIndex:A,onFocus:P}=uT(r),N=o==null?void 0:o.findIndex(fe=>fe.columnKey===e.key),I=N!==void 0&&N>-1?o[N]:void 0,L=I==null?void 0:I.direction,j=I!==void 0&&o.length>1?N+1:void 0,z=L&&!j?L==="ASC"?"ascending":"descending":void 0,{sortable:Q,resizable:ue,draggable:re}=e,me=lT(e,e.headerCellClass,{[Cbe]:Q,[xbe]:ue,[Obe]:re,[Pbe]:h,[Nbe]:E});function ge(fe){if(fe.pointerType==="mouse"&&fe.buttons!==1)return;fe.preventDefault();const{currentTarget:xe,pointerId:Ie}=fe,qe=xe.parentElement,{right:tt,left:Ge}=qe.getBoundingClientRect(),rt=C?fe.clientX-Ge:tt-fe.clientX;y.current=!1;function St(xt){const{width:Rt,right:cn,left:qt}=qe.getBoundingClientRect();let Wt=C?cn+rt-xt.clientX:xt.clientX+rt-qt;Wt=yZ(Wt,e),Rt>0&&Wt!==Rt&&a(e,Wt)}function kt(xt){y.current||St(xt),xe.removeEventListener("pointermove",St),xe.removeEventListener("lostpointercapture",kt)}xe.setPointerCapture(Ie),xe.addEventListener("pointermove",St),xe.addEventListener("lostpointercapture",kt)}function W(){y.current=!0,a(e,"max-content")}function G(fe){if(l==null)return;const{sortDescendingFirst:xe}=e;if(I===void 0){const Ie={columnKey:e.key,direction:xe?"DESC":"ASC"};l(o&&fe?[...o,Ie]:[Ie])}else{let Ie;if((xe===!0&&L==="DESC"||xe!==!0&&L==="ASC")&&(Ie={columnKey:e.key,direction:L==="ASC"?"DESC":"ASC"}),fe){const qe=[...o];Ie?qe[N]=Ie:qe.splice(N,1),l(qe)}else l(Ie?[Ie]:[])}}function q(fe){u({idx:e.idx,rowIdx:n}),Q&&G(fe.ctrlKey||fe.metaKey)}function ce(fe){P==null||P(fe),d&&u({idx:0,rowIdx:n})}function H(fe){(fe.key===" "||fe.key==="Enter")&&(fe.preventDefault(),G(fe.ctrlKey||fe.metaKey))}function K(fe){fe.dataTransfer.setData(g,e.key),fe.dataTransfer.dropEffect="move",v(!0)}function ae(){v(!1)}function J(fe){fe.preventDefault(),fe.dataTransfer.dropEffect="move"}function ee(fe){if(T(!1),fe.dataTransfer.types.includes(g.toLowerCase())){const xe=fe.dataTransfer.getData(g.toLowerCase());xe!==e.key&&(fe.preventDefault(),i==null||i(xe,e.key))}}function Z(fe){w8(fe)&&T(!0)}function le(fe){w8(fe)&&T(!1)}let ke;return re&&(ke={draggable:!0,onDragStart:K,onDragEnd:ae,onDragOver:J,onDragEnter:Z,onDragLeave:le,onDrop:ee}),w.jsxs("div",{role:"columnheader","aria-colindex":e.idx+1,"aria-colspan":t,"aria-rowspan":k,"aria-selected":r,"aria-sort":z,tabIndex:d?0:_,className:me,style:{...vZ(e,n,k),...V0(e,t)},onFocus:ce,onClick:q,onKeyDown:Q?H:void 0,...ke,children:[e.renderHeaderCell({column:e,sortDirection:L,priority:j,tabIndex:A}),ue&&w.jsx("div",{className:_be,onClick:Oye,onPointerDown:ge,onDoubleClick:W})]})}function w8(e){const t=e.relatedTarget;return!e.currentTarget.contains(t)}const Ibe="r1upfr807-0-0-beta-51",uj=`rdg-row ${Ibe}`,Dbe="r190mhd37-0-0-beta-51",G_="rdg-row-selected",$be="r139qu9m7-0-0-beta-51",Lbe="rdg-top-summary-row",Fbe="rdg-bottom-summary-row",jbe="h10tskcx7-0-0-beta-51",xZ=`rdg-header-row ${jbe}`;function Ube({rowIdx:e,columns:t,onColumnResize:n,onColumnsReorder:r,sortColumns:a,onSortColumnsChange:i,lastFrozenColumnIndex:o,selectedCellIdx:l,selectCell:u,shouldFocusGrid:d,direction:f}){const g=R.useId(),y=[];for(let h=0;ht&&u.parent!==void 0;)u=u.parent;if(u.level===t&&!o.has(u)){o.add(u);const{idx:d}=u;i.push(w.jsx(Tbe,{column:u,rowIdx:e,isCellSelected:r===d,selectCell:a},d))}}}return w.jsx("div",{role:"row","aria-rowindex":e,className:xZ,children:i})}var zbe=R.memo(Wbe);function qbe({className:e,rowIdx:t,gridRowStart:n,selectedCellIdx:r,isRowSelectionDisabled:a,isRowSelected:i,copiedCellIdx:o,draggedOverCellIdx:l,lastFrozenColumnIndex:u,row:d,viewportColumns:f,selectedCellEditor:g,onCellClick:y,onCellDoubleClick:h,onCellContextMenu:v,rowClass:E,setDraggedOverRowIdx:T,onMouseEnter:C,onRowChange:k,selectCell:_,...A}){const P=V_().renderCell,N=js((z,Q)=>{k(z,t,Q)});function I(z){T==null||T(t),C==null||C(z)}e=Vd(uj,`rdg-row-${t%2===0?"even":"odd"}`,{[G_]:r===-1},E==null?void 0:E(d,t),e);const L=[];for(let z=0;z({isRowSelected:i,isRowSelectionDisabled:a}),[a,i]);return w.jsx(lj,{value:j,children:w.jsx("div",{role:"row",className:e,onMouseEnter:I,style:oj(n),...A,children:L})})}const Hbe=R.memo(qbe);function Vbe(e,t){return w.jsx(Hbe,{...t},e)}function Gbe({scrollToPosition:{idx:e,rowIdx:t},gridRef:n,setScrollToCellPosition:r}){const a=R.useRef(null);return R.useLayoutEffect(()=>{cx(a.current)}),R.useLayoutEffect(()=>{function i(){r(null)}const o=new IntersectionObserver(i,{root:n.current,threshold:1});return o.observe(a.current),()=>{o.disconnect()}},[n,r]),w.jsx("div",{ref:a,style:{gridColumn:e===void 0?"1/-1":e+1,gridRow:t===void 0?"1/-1":t+2}})}const Ybe="a3ejtar7-0-0-beta-51",Kbe=`rdg-sort-arrow ${Ybe}`;function Xbe({sortDirection:e,priority:t}){return w.jsxs(w.Fragment,{children:[Qbe({sortDirection:e}),Jbe({priority:t})]})}function Qbe({sortDirection:e}){return e===void 0?null:w.jsx("svg",{viewBox:"0 0 12 8",width:"12",height:"8",className:Kbe,"aria-hidden":!0,children:w.jsx("path",{d:e==="ASC"?"M0 8 6 0 12 8":"M0 0 6 8 12 0"})})}function Jbe({priority:e}){return e}const Zbe="rnvodz57-0-0-beta-51",e0e=`rdg ${Zbe}`,t0e="vlqv91k7-0-0-beta-51",n0e=`rdg-viewport-dragging ${t0e}`,r0e="f1lsfrzw7-0-0-beta-51",a0e="f1cte0lg7-0-0-beta-51",i0e="s8wc6fl7-0-0-beta-51";function o0e({column:e,colSpan:t,row:n,rowIdx:r,isCellSelected:a,selectCell:i}){var y;const{tabIndex:o,childTabIndex:l,onFocus:u}=uT(a),{summaryCellClass:d}=e,f=lT(e,i0e,typeof d=="function"?d(n):d);function g(){i({rowIdx:r,idx:e.idx})}return w.jsx("div",{role:"gridcell","aria-colindex":e.idx+1,"aria-colspan":t,"aria-selected":a,tabIndex:o,className:f,style:V0(e,t),onClick:g,onFocus:u,children:(y=e.renderSummaryCell)==null?void 0:y.call(e,{column:e,row:n,tabIndex:l})})}var s0e=R.memo(o0e);const l0e="skuhp557-0-0-beta-51",u0e="tf8l5ub7-0-0-beta-51",c0e=`rdg-summary-row ${l0e}`;function d0e({rowIdx:e,gridRowStart:t,row:n,viewportColumns:r,top:a,bottom:i,lastFrozenColumnIndex:o,selectedCellIdx:l,isTop:u,selectCell:d,"aria-rowindex":f}){const g=[];for(let y=0;ynew Map),[ft,ut]=R.useState(()=>new Map),[Nt,U]=R.useState(null),[D,F]=R.useState(!1),[ie,Te]=R.useState(void 0),[Fe,We]=R.useState(null),[Et,Mt]=R.useState(!1),[be,Ee]=R.useState(-1),gt=R.useCallback(nt=>Oe.get(nt.key)??ft.get(nt.key)??nt.width,[ft,Oe]),[Lt,_t,Ut,_n]=sbe(),{columns:gn,colSpanColumns:ln,lastFrozenColumnIndex:Bn,headerRowsCount:la,colOverscanStartIdx:Ja,colOverscanEndIdx:ga,templateColumns:vn,layoutCssVars:Ra,totalFrozenColumnWidth:Ko}=ibe({rawColumns:n,defaultColumnOptions:T,getColumnWidth:gt,scrollLeft:qt,viewportWidth:_t,enableVirtualization:kt}),Pa=(a==null?void 0:a.length)??0,Aa=(i==null?void 0:i.length)??0,Xo=Pa+Aa,we=la+Pa,ve=la-1,$e=-we,ye=$e+ve,Se=r.length+Aa-1,[ne,Me]=R.useState(()=>({idx:-1,rowIdx:$e-1,mode:"SELECT"})),Qe=R.useRef(ie),ot=R.useRef(null),Bt=ke==="treegrid",yn=la*xe,an=Xo*Ie,Dn=Ut-yn-an,En=g!=null&&h!=null,Rr=xt==="rtl",Pr=Rr?"ArrowRight":"ArrowLeft",lr=Rr?"ArrowLeft":"ArrowRight",Qs=J??la+r.length+Xo,Ty=R.useMemo(()=>({renderCheckbox:rt,renderSortStatus:Ge,renderCell:tt}),[rt,Ge,tt]),Ul=R.useMemo(()=>{let nt=!1,pt=!1;if(o!=null&&g!=null&&g.size>0){for(const bt of r)if(g.has(o(bt))?nt=!0:pt=!0,nt&&pt)break}return{isRowSelected:nt&&!pt,isIndeterminate:nt&&pt}},[r,g,o]),{rowOverscanStartIdx:fo,rowOverscanEndIdx:li,totalRowHeight:gf,gridTemplateRows:Cy,getRowTop:qh,getRowHeight:rw,findRowIdx:Uc}=ube({rows:r,rowHeight:fe,clientHeight:Dn,scrollTop:Rt,enableVirtualization:kt}),Gi=lbe({columns:gn,colSpanColumns:ln,colOverscanStartIdx:Ja,colOverscanEndIdx:ga,lastFrozenColumnIndex:Bn,rowOverscanStartIdx:fo,rowOverscanEndIdx:li,rows:r,topSummaryRows:a,bottomSummaryRows:i}),{gridTemplateColumns:Qo,handleColumnResize:Ti}=obe(gn,Gi,vn,Lt,_t,Oe,ft,dt,ut,I),vf=Bt?-1:0,Du=gn.length-1,Js=ql(ne),Zs=vs(ne),Bc=xe+gf+an+_n,aw=js(Ti),Ci=js(L),yf=js(E),bf=js(C),Hh=js(k),Bl=js(_),wf=js(ky),Sf=js(Vh),po=js(Lu),Ef=js(el),Tf=js(({idx:nt,rowIdx:pt})=>{el({rowIdx:$e+pt-1,idx:nt})}),Cf=R.useCallback(nt=>{Te(nt),Qe.current=nt},[]),$u=R.useCallback(()=>{const nt=E8(Lt.current);if(nt===null)return;cx(nt),(nt.querySelector('[tabindex="0"]')??nt).focus({preventScroll:!0})},[Lt]);R.useLayoutEffect(()=>{ot.current!==null&&Js&&ne.idx===-1&&(ot.current.focus({preventScroll:!0}),cx(ot.current))},[Js,ne]),R.useLayoutEffect(()=>{Et&&(Mt(!1),$u())},[Et,$u]),R.useImperativeHandle(t,()=>({element:Lt.current,scrollToCell({idx:nt,rowIdx:pt}){const bt=nt!==void 0&&nt>Bn&&nt{cn(pt),Wt(Wye(bt))}),N==null||N(nt)}function Lu(nt,pt,bt){if(typeof l!="function"||bt===r[pt])return;const zt=[...r];zt[pt]=bt,l(zt,{indexes:[pt],column:nt})}function Wl(){ne.mode==="EDIT"&&Lu(gn[ne.idx],ne.rowIdx,ne.row)}function zl(){const{idx:nt,rowIdx:pt}=ne,bt=r[pt],zt=gn[nt].key;U({row:bt,columnKey:zt}),z==null||z({sourceRow:bt,sourceColumnKey:zt})}function xy(){if(!Q||!l||Nt===null||!Fu(ne))return;const{idx:nt,rowIdx:pt}=ne,bt=gn[nt],zt=r[pt],Sn=Q({sourceRow:Nt.row,sourceColumnKey:Nt.columnKey,targetRow:zt,targetColumnKey:bt.key});Lu(bt,pt,Sn)}function Yh(nt){if(!Zs)return;const pt=r[ne.rowIdx],{key:bt,shiftKey:zt}=nt;if(En&&zt&&bt===" "){gA(o);const Sn=o(pt);Vh({row:pt,checked:!g.has(Sn),isShiftClick:!1}),nt.preventDefault();return}Fu(ne)&&Pye(nt)&&Me(({idx:Sn,rowIdx:ur})=>({idx:Sn,rowIdx:ur,mode:"EDIT",row:pt,originalRow:pt}))}function Kh(nt){return nt>=vf&&nt<=Du}function ho(nt){return nt>=0&&nt=$e&&pt<=Se&&Kh(nt)}function zc({idx:nt,rowIdx:pt}){return ho(pt)&&nt>=0&&nt<=Du}function vs({idx:nt,rowIdx:pt}){return ho(pt)&&Kh(nt)}function Fu(nt){return zc(nt)&&Iye({columns:gn,rows:r,selectedPosition:nt})}function el(nt,pt){if(!ql(nt))return;Wl();const bt=T8(ne,nt);if(pt&&Fu(nt)){const zt=r[nt.rowIdx];Me({...nt,mode:"EDIT",row:zt,originalRow:zt})}else bt?cx(E8(Lt.current)):(Mt(!0),Me({...nt,mode:"SELECT"}));P&&!bt&&P({rowIdx:nt.rowIdx,row:ho(nt.rowIdx)?r[nt.rowIdx]:void 0,column:gn[nt.idx]})}function _y(nt,pt,bt){const{idx:zt,rowIdx:Sn}=ne,ur=Js&&zt===-1;switch(nt){case"ArrowUp":return{idx:zt,rowIdx:Sn-1};case"ArrowDown":return{idx:zt,rowIdx:Sn+1};case Pr:return{idx:zt-1,rowIdx:Sn};case lr:return{idx:zt+1,rowIdx:Sn};case"Tab":return{idx:zt+(bt?-1:1),rowIdx:Sn};case"Home":return ur?{idx:zt,rowIdx:$e}:{idx:0,rowIdx:pt?$e:Sn};case"End":return ur?{idx:zt,rowIdx:Se}:{idx:Du,rowIdx:pt?Se:Sn};case"PageUp":{if(ne.rowIdx===$e)return ne;const Ar=qh(Sn)+rw(Sn)-Dn;return{idx:zt,rowIdx:Ar>0?Uc(Ar):0}}case"PageDown":{if(ne.rowIdx>=r.length)return ne;const Ar=qh(Sn)+Dn;return{idx:zt,rowIdx:Arnt&&nt>=ie)?ne.idx:void 0}function Oy(){if(j==null||ne.mode==="EDIT"||!vs(ne))return;const{idx:nt,rowIdx:pt}=ne,bt=gn[nt];if(bt.renderEditCell==null||bt.editable===!1)return;const zt=gt(bt);return w.jsx(wbe,{gridRowStart:we+pt+1,rows:r,column:bt,columnWidth:zt,maxColIdx:Du,isLastRow:pt===Se,selectedPosition:ne,isCellEditable:Fu,latestDraggedOverRowIdx:Qe,onRowsChange:l,onClick:$u,onFill:j,setDragging:F,setDraggedOverRowIdx:Cf})}function ui(nt){if(ne.rowIdx!==nt||ne.mode==="SELECT")return;const{idx:pt,row:bt}=ne,zt=gn[pt],Sn=Nl(zt,Bn,{type:"ROW",row:bt}),ur=Jn=>{Mt(Jn),Me(({idx:Na,rowIdx:Za})=>({idx:Na,rowIdx:Za,mode:"SELECT"}))},Ar=(Jn,Na,Za)=>{Na?Cc.flushSync(()=>{Lu(zt,ne.rowIdx,Jn),ur(Za)}):Me(Hl=>({...Hl,row:Jn}))};return r[ne.rowIdx]!==ne.originalRow&&ur(!1),w.jsx(Ebe,{column:zt,colSpan:Sn,row:bt,rowIdx:nt,onRowChange:Ar,closeEditor:ur,onKeyDown:A,navigate:ar},zt.key)}function mo(nt){const pt=ne.idx===-1?void 0:gn[ne.idx];return pt!==void 0&&ne.rowIdx===nt&&!Gi.includes(pt)?ne.idx>ga?[...Gi,pt]:[...Gi.slice(0,Bn+1),pt,...Gi.slice(Bn+1)]:Gi}function kf(){const nt=[],{idx:pt,rowIdx:bt}=ne,zt=Zs&&btli?li+1:li;for(let ur=zt;ur<=Sn;ur++){const Ar=ur===fo-1||ur===li+1,Jn=Ar?bt:ur;let Na=Gi;const Za=pt===-1?void 0:gn[pt];Za!==void 0&&(Ar?Na=[Za]:Na=mo(Jn));const Hl=r[Jn],Ry=we+Jn+1;let xf=Jn,_f=!1;typeof o=="function"&&(xf=o(Hl),_f=(g==null?void 0:g.has(xf))??!1),nt.push(qe(xf,{"aria-rowindex":we+Jn+1,"aria-selected":En?_f:void 0,rowIdx:Jn,row:Hl,viewportColumns:Na,isRowSelectionDisabled:(y==null?void 0:y(Hl))??!1,isRowSelected:_f,onCellClick:bf,onCellDoubleClick:Hh,onCellContextMenu:Bl,rowClass:W,gridRowStart:Ry,copiedCellIdx:Nt!==null&&Nt.row===Hl?gn.findIndex(ci=>ci.key===Nt.columnKey):void 0,selectedCellIdx:bt===Jn?pt:void 0,draggedOverCellIdx:ir(Jn),setDraggedOverRowIdx:D?Cf:void 0,lastFrozenColumnIndex:Bn,onRowChange:po,selectCell:Ef,selectedCellEditor:ui(Jn)}))}return nt}(ne.idx>Du||ne.rowIdx>Se)&&(Me({idx:-1,rowIdx:$e-1,mode:"SELECT"}),Cf(void 0));let tl=`repeat(${la}, ${xe}px)`;Pa>0&&(tl+=` repeat(${Pa}, ${Ie}px)`),r.length>0&&(tl+=Cy),Aa>0&&(tl+=` repeat(${Aa}, ${Ie}px)`);const Xh=ne.idx===-1&&ne.rowIdx!==$e-1;return w.jsxs("div",{role:ke,"aria-label":ce,"aria-labelledby":H,"aria-description":K,"aria-describedby":ae,"aria-multiselectable":En?!0:void 0,"aria-colcount":gn.length,"aria-rowcount":Qs,className:Vd(e0e,{[n0e]:D},me),style:{...ge,scrollPaddingInlineStart:ne.idx>Bn||(Fe==null?void 0:Fe.idx)!==void 0?`${Ko}px`:void 0,scrollPaddingBlock:ho(ne.rowIdx)||(Fe==null?void 0:Fe.rowIdx)!==void 0?`${yn+Pa*Ie}px ${Aa*Ie}px`:void 0,gridTemplateColumns:Qo,gridTemplateRows:tl,"--rdg-header-row-height":`${xe}px`,"--rdg-scroll-height":`${Bc}px`,...Ra},dir:xt,ref:Lt,onScroll:Gh,onKeyDown:Wc,"data-testid":ee,"data-cy":Z,children:[w.jsxs(wZ,{value:Ty,children:[w.jsx(CZ,{value:wf,children:w.jsxs(TZ,{value:Ul,children:[Array.from({length:ve},(nt,pt)=>w.jsx(zbe,{rowIdx:pt+1,level:-ve+pt,columns:mo($e+pt),selectedCellIdx:ne.rowIdx===$e+pt?ne.idx:void 0,selectCell:Tf},pt)),w.jsx(Bbe,{rowIdx:la,columns:mo(ye),onColumnResize:aw,onColumnsReorder:Ci,sortColumns:v,onSortColumnsChange:yf,lastFrozenColumnIndex:Bn,selectedCellIdx:ne.rowIdx===ye?ne.idx:void 0,selectCell:Tf,shouldFocusGrid:!Js,direction:xt})]})}),r.length===0&&St?St:w.jsxs(w.Fragment,{children:[a==null?void 0:a.map((nt,pt)=>{const bt=la+1+pt,zt=ye+1+pt,Sn=ne.rowIdx===zt,ur=yn+Ie*pt;return w.jsx(S8,{"aria-rowindex":bt,rowIdx:zt,gridRowStart:bt,row:nt,top:ur,bottom:void 0,viewportColumns:mo(zt),lastFrozenColumnIndex:Bn,selectedCellIdx:Sn?ne.idx:void 0,isTop:!0,selectCell:Ef},pt)}),w.jsx(SZ,{value:Sf,children:kf()}),i==null?void 0:i.map((nt,pt)=>{const bt=we+r.length+pt+1,zt=r.length+pt,Sn=ne.rowIdx===zt,ur=Dn>gf?Ut-Ie*(i.length-pt):void 0,Ar=ur===void 0?Ie*(i.length-1-pt):void 0;return w.jsx(S8,{"aria-rowindex":Qs-Aa+pt+1,rowIdx:zt,gridRowStart:bt,row:nt,top:ur,bottom:Ar,viewportColumns:mo(zt),lastFrozenColumnIndex:Bn,selectedCellIdx:Sn?ne.idx:void 0,isTop:!1,selectCell:Ef},pt)})]})]}),Oy(),Mye(Gi),Bt&&w.jsx("div",{ref:ot,tabIndex:Xh?0:-1,className:Vd(r0e,{[a0e]:!ho(ne.rowIdx),[Dbe]:Xh,[$be]:Xh&&Bn!==-1}),style:{gridRowStart:ne.rowIdx+we+1}}),Fe!==null&&w.jsx(Gbe,{scrollToPosition:Fe,setScrollToCellPosition:We,gridRef:Lt})]})}function E8(e){return e.querySelector(':scope > [role="row"] > [tabindex="0"]')}function T8(e,t){return e.idx===t.idx&&e.rowIdx===t.rowIdx}function p0e({id:e,groupKey:t,childRows:n,isExpanded:r,isCellSelected:a,column:i,row:o,groupColumnIndex:l,isGroupByColumn:u,toggleGroup:d}){var E;const{tabIndex:f,childTabIndex:g,onFocus:y}=uT(a);function h(){d(e)}const v=u&&l===i.idx;return w.jsx("div",{role:"gridcell","aria-colindex":i.idx+1,"aria-selected":a,tabIndex:f,className:lT(i),style:{...V0(i),cursor:v?"pointer":"default"},onClick:v?h:void 0,onFocus:y,children:(!u||v)&&((E=i.renderGroupCell)==null?void 0:E.call(i,{groupKey:t,childRows:n,column:i,row:o,isExpanded:r,tabIndex:g,toggleGroup:h}))},i.key)}var h0e=R.memo(p0e);const m0e="g1yxluv37-0-0-beta-51",g0e=`rdg-group-row ${m0e}`;function v0e({className:e,row:t,rowIdx:n,viewportColumns:r,selectedCellIdx:a,isRowSelected:i,selectCell:o,gridRowStart:l,groupBy:u,toggleGroup:d,isRowSelectionDisabled:f,...g}){const y=r[0].key===Vx?t.level+1:t.level;function h(){o({rowIdx:n,idx:-1})}const v=R.useMemo(()=>({isRowSelectionDisabled:!1,isRowSelected:i}),[i]);return w.jsx(lj,{value:v,children:w.jsx("div",{role:"row","aria-level":t.level+1,"aria-setsize":t.setSize,"aria-posinset":t.posInSet+1,"aria-expanded":t.isExpanded,className:Vd(uj,g0e,`rdg-row-${n%2===0?"even":"odd"}`,a===-1&&G_,e),onClick:h,style:oj(l),...g,children:r.map(E=>w.jsx(h0e,{id:t.id,groupKey:t.groupKey,childRows:t.childRows,isExpanded:t.isExpanded,isCellSelected:a===E.idx,column:E,row:t,groupColumnIndex:y,toggleGroup:d,isGroupByColumn:u.includes(E.key)},E.key))})})}R.memo(v0e);const _Z=({value:e})=>{const t=n=>{n.stopPropagation(),navigator.clipboard.writeText(e).then(()=>{})};return w.jsx("div",{className:"table-btn table-copy-btn",onClick:t,children:w.jsx(y0e,{})})},y0e=({size:e=16,color:t="silver",style:n={}})=>w.jsx("svg",{width:e,height:e,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",style:n,children:w.jsx("path",{d:"M16 1H6C4.9 1 4 1.9 4 3V17H6V3H16V1ZM18 5H10C8.9 5 8 5.9 8 7V21C8 22.1 8.9 23 10 23H18C19.1 23 20 22.1 20 21V7C20 5.9 19.1 5 18 5ZM18 21H10V7H18V21Z",fill:t})}),b0e=({value:e})=>{const{addRouter:t}=dy(),n=r=>{r.stopPropagation(),t(e)};return w.jsx("div",{className:"table-btn table-open-in-new-router",onClick:n,children:w.jsx(w0e,{})})},w0e=({size:e=16,color:t="silver",style:n={}})=>w.jsx("svg",{width:e,height:e,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",style:{cursor:"pointer",...n},children:w.jsx("path",{d:"M9 3H5C3.895 3 3 3.895 3 5v14c0 1.105.895 2 2 2h14c1.105 0 2-.895 2-2v-4h-2v4H5V5h4V3ZM21 3h-6v2h3.586l-9.293 9.293 1.414 1.414L20 6.414V10h2V3Z",fill:t})});/** * @license lucide-react v0.484.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. - */const $be=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),Lbe=e=>e.replace(/^([A-Z])|[\s-_]+(\w)/g,(t,n,r)=>r?r.toUpperCase():n.toLowerCase()),XB=e=>{const t=Lbe(e);return t.charAt(0).toUpperCase()+t.slice(1)},JJ=(...e)=>e.filter((t,n,r)=>!!t&&t.trim()!==""&&r.indexOf(t)===n).join(" ").trim();/** + */const S0e=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),E0e=e=>e.replace(/^([A-Z])|[\s-_]+(\w)/g,(t,n,r)=>r?r.toUpperCase():n.toLowerCase()),C8=e=>{const t=E0e(e);return t.charAt(0).toUpperCase()+t.slice(1)},OZ=(...e)=>e.filter((t,n,r)=>!!t&&t.trim()!==""&&r.indexOf(t)===n).join(" ").trim();/** * @license lucide-react v0.484.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. - */var Fbe={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};/** + */var T0e={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};/** * @license lucide-react v0.484.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. - */const jbe=R.forwardRef(({color:e="currentColor",size:t=24,strokeWidth:n=2,absoluteStrokeWidth:r,className:a="",children:i,iconNode:o,...l},u)=>R.createElement("svg",{ref:u,...Fbe,width:t,height:t,stroke:e,strokeWidth:r?Number(n)*24/Number(t):n,className:JJ("lucide",a),...l},[...o.map(([d,f])=>R.createElement(d,f)),...Array.isArray(i)?i:[i]]));/** + */const C0e=R.forwardRef(({color:e="currentColor",size:t=24,strokeWidth:n=2,absoluteStrokeWidth:r,className:a="",children:i,iconNode:o,...l},u)=>R.createElement("svg",{ref:u,...T0e,width:t,height:t,stroke:e,strokeWidth:r?Number(n)*24/Number(t):n,className:OZ("lucide",a),...l},[...o.map(([d,f])=>R.createElement(d,f)),...Array.isArray(i)?i:[i]]));/** * @license lucide-react v0.484.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. - */const DF=(e,t)=>{const n=R.forwardRef(({className:r,...a},i)=>R.createElement(jbe,{ref:i,iconNode:t,className:JJ(`lucide-${$be(XB(e))}`,`lucide-${e}`,r),...a}));return n.displayName=XB(e),n};/** + */const cj=(e,t)=>{const n=R.forwardRef(({className:r,...a},i)=>R.createElement(C0e,{ref:i,iconNode:t,className:OZ(`lucide-${S0e(C8(e))}`,`lucide-${e}`,r),...a}));return n.displayName=C8(e),n};/** * @license lucide-react v0.484.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. - */const Ube=[["path",{d:"m3 16 4 4 4-4",key:"1co6wj"}],["path",{d:"M7 20V4",key:"1yoxec"}],["path",{d:"M20 8h-5",key:"1vsyxs"}],["path",{d:"M15 10V6.5a2.5 2.5 0 0 1 5 0V10",key:"ag13bf"}],["path",{d:"M15 14h5l-5 6h5",key:"ur5jdg"}]],Bbe=DF("arrow-down-a-z",Ube);/** + */const k0e=[["path",{d:"m3 16 4 4 4-4",key:"1co6wj"}],["path",{d:"M7 20V4",key:"1yoxec"}],["path",{d:"M20 8h-5",key:"1vsyxs"}],["path",{d:"M15 10V6.5a2.5 2.5 0 0 1 5 0V10",key:"ag13bf"}],["path",{d:"M15 14h5l-5 6h5",key:"ur5jdg"}]],x0e=cj("arrow-down-a-z",k0e);/** * @license lucide-react v0.484.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. - */const Wbe=[["path",{d:"m3 16 4 4 4-4",key:"1co6wj"}],["path",{d:"M7 20V4",key:"1yoxec"}],["path",{d:"M11 4h10",key:"1w87gc"}],["path",{d:"M11 8h7",key:"djye34"}],["path",{d:"M11 12h4",key:"q8tih4"}]],zbe=DF("arrow-down-wide-narrow",Wbe);/** + */const _0e=[["path",{d:"m3 16 4 4 4-4",key:"1co6wj"}],["path",{d:"M7 20V4",key:"1yoxec"}],["path",{d:"M11 4h10",key:"1w87gc"}],["path",{d:"M11 8h7",key:"djye34"}],["path",{d:"M11 12h4",key:"q8tih4"}]],O0e=cj("arrow-down-wide-narrow",_0e);/** * @license lucide-react v0.484.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. - */const qbe=[["path",{d:"m3 16 4 4 4-4",key:"1co6wj"}],["path",{d:"M7 4v16",key:"1glfcx"}],["path",{d:"M15 4h5l-5 6h5",key:"8asdl1"}],["path",{d:"M15 20v-3.5a2.5 2.5 0 0 1 5 0V20",key:"r6l5cz"}],["path",{d:"M20 18h-5",key:"18j1r2"}]],Hbe=DF("arrow-down-z-a",qbe);function Vbe({tabIndex:e,column:t,filterType:n,sortable:r,filterable:a,selectable:i,udf:o}){var y;const l=(y=o.filters.sorting)==null?void 0:y.find(h=>h.columnName===t.key),[u,d]=R.useState("");R.useEffect(()=>{u!==Ta.get(o.filters,t.key)&&d(Ta.get(o.filters,t.key))},[o.filters]);let f;(l==null?void 0:l.columnName)===t.key&&(l==null?void 0:l.direction)=="asc"&&(f="asc"),(l==null?void 0:l.columnName)===t.key&&(l==null?void 0:l.direction)=="desc"&&(f="desc");const g=()=>{l?((l==null?void 0:l.direction)==="desc"&&o.setSorting(o.filters.sorting.filter(h=>h.columnName!==t.key)),(l==null?void 0:l.direction)==="asc"&&o.setSorting(o.filters.sorting.map(h=>h.columnName===t.key?{...h,direction:"desc"}:h))):o.setSorting([...o.filters.sorting,{columnName:t.key.toString(),direction:"asc"}])};return w.jsxs(w.Fragment,{children:[r?w.jsx("span",{className:"data-table-sort-actions",children:w.jsxs("button",{className:`active-sort-col ${t.key==(l==null?void 0:l.columnName)?"active":""}`,onClick:g,children:[f=="asc"?w.jsx(Bbe,{className:"sort-icon"}):null,f=="desc"?w.jsx(Hbe,{className:"sort-icon"}):null,f===void 0?w.jsx(zbe,{className:"sort-icon"}):null]})}):null,a?w.jsx(w.Fragment,{children:n==="date"?w.jsx("input",{className:"data-table-filter-input",tabIndex:e,value:u,onChange:h=>{d(h.target.value),o.setFilter({[t.key]:h.target.value})},placeholder:t.name||"",type:"date"}):w.jsx("input",{className:"data-table-filter-input",tabIndex:e,value:u,onChange:h=>{d(h.target.value),o.setFilter({[t.key]:h.target.value})},placeholder:t.name||""})}):w.jsx("span",{children:t.name})]})}function Gbe(e,t){const n=e.split("/").filter(Boolean);return t.split("/").forEach(a=>{a===".."?n.pop():a!=="."&&a!==""&&n.push(a)}),"/"+n.join("/")}const Ybe=(e,t,n,r=[],a,i)=>e.map(o=>{const l=r.find(u=>u.columnName===o.name);return{...o,key:o.name,renderCell:({column:u,row:d})=>{if(u.key==="uniqueId"){let f=a?a(d.uniqueId):"";return f.startsWith(".")&&(f=Gbe(i,f)),w.jsxs("div",{style:{position:"relative"},children:[w.jsx(Pl,{href:a&&a(d.uniqueId),children:d.uniqueId}),w.jsxs("div",{className:"cell-actions",children:[w.jsx(QJ,{value:d.uniqueId}),w.jsx(Ibe,{value:f})]})]})}return u.getCellValue?w.jsx(w.Fragment,{children:u.getCellValue(d)}):w.jsx("span",{children:Ta.get(d,u.key)})},width:l?l.width:o.width,name:o.title,resizable:!0,sortable:o.sortable,renderHeaderCell:u=>w.jsx(Vbe,{...u,selectable:!0,sortable:o.sortable,filterable:o.filterable,filterType:o.filterType,udf:n})}});function Kbe(e){const t=R.useRef();let[n,r]=R.useState([]);const a=R.useRef({});return{reindex:(o,l,u)=>{if(l===t.current){const d=o.filter(f=>a.current[f.uniqueId]?!1:(a.current[f.uniqueId]=!0,!0));r([...n,...d].filter(Boolean))}else r([...o].filter(Boolean)),u==null||u();t.current=l},indexedData:n}}function Xbe({columns:e,query:t,columnSizes:n,onColumnWidthsChange:r,udf:a,tableClass:i,uniqueIdHrefHandler:o}){var P,N;At();const{pathname:l}=Zd(),{filters:u,setSorting:d,setStartIndex:f,selection:g,setSelection:y,setPageSize:h,onFiltersChange:v}=a,E=R.useMemo(()=>[fye,...Ybe(e,(I,L)=>{a.setFilter({[I]:L})},a,n,o,l)],[e,n]),{indexedData:T,reindex:C}=Kbe(),k=R.useRef();R.useEffect(()=>{var L,j;const I=((j=(L=t.data)==null?void 0:L.data)==null?void 0:j.items)||[];C(I,a.queryHash,()=>{k.current.element.scrollTo({top:0,left:0})})},[(N=(P=t.data)==null?void 0:P.data)==null?void 0:N.items]);async function _(I){t.isLoading||!Qbe(I)||f(T.length)}const A=Ta.debounce((I,L)=>{const j=E.map(z=>({columnName:z.key,width:z.name===I.name?L:z.width}));r(j)},300);return w.jsx(w.Fragment,{children:w.jsx(_be,{className:i,columns:E,onScroll:_,onColumnResize:A,onSelectedRowsChange:I=>{y(Array.from(I))},selectedRows:new Set(g),ref:k,rows:T,rowKeyGetter:I=>I.uniqueId,style:{height:"calc(100% - 2px)",margin:"1px -14px"}})})}function Qbe({currentTarget:e}){return e.scrollTop+300>=e.scrollHeight-e.clientHeight}function Jbe(e){const t={};for(let n of e||[])n&&n.columnName&&Ta.set(t,n.columnName,{operation:n.operation,value:n.value});return t}let Al;typeof window<"u"?Al=window:typeof self<"u"?Al=self:Al=global;let RL=null,PL=null;const QB=20,zP=Al.clearTimeout,JB=Al.setTimeout,qP=Al.cancelAnimationFrame||Al.mozCancelAnimationFrame||Al.webkitCancelAnimationFrame,ZB=Al.requestAnimationFrame||Al.mozRequestAnimationFrame||Al.webkitRequestAnimationFrame;qP==null||ZB==null?(RL=zP,PL=function(t){return JB(t,QB)}):(RL=function([t,n]){qP(t),zP(n)},PL=function(t){const n=ZB(function(){zP(r),t()}),r=JB(function(){qP(n),t()},QB);return[n,r]});function Zbe(e){let t,n,r,a,i,o,l;const u=typeof document<"u"&&document.attachEvent;if(!u){o=function(C){const k=C.__resizeTriggers__,_=k.firstElementChild,A=k.lastElementChild,P=_.firstElementChild;A.scrollLeft=A.scrollWidth,A.scrollTop=A.scrollHeight,P.style.width=_.offsetWidth+1+"px",P.style.height=_.offsetHeight+1+"px",_.scrollLeft=_.scrollWidth,_.scrollTop=_.scrollHeight},i=function(C){return C.offsetWidth!==C.__resizeLast__.width||C.offsetHeight!==C.__resizeLast__.height},l=function(C){if(C.target.className&&typeof C.target.className.indexOf=="function"&&C.target.className.indexOf("contract-trigger")<0&&C.target.className.indexOf("expand-trigger")<0)return;const k=this;o(this),this.__resizeRAF__&&RL(this.__resizeRAF__),this.__resizeRAF__=PL(function(){i(k)&&(k.__resizeLast__.width=k.offsetWidth,k.__resizeLast__.height=k.offsetHeight,k.__resizeListeners__.forEach(function(P){P.call(k,C)}))})};let y=!1,h="";r="animationstart";const v="Webkit Moz O ms".split(" ");let E="webkitAnimationStart animationstart oAnimationStart MSAnimationStart".split(" "),T="";{const C=document.createElement("fakeelement");if(C.style.animationName!==void 0&&(y=!0),y===!1){for(let k=0;k div, .contract-trigger:before { content: " "; display: block; position: absolute; top: 0; left: 0; height: 100%; width: 100%; overflow: hidden; z-index: -1; } .resize-triggers > div { background: #eee; overflow: auto; } .contract-trigger:before { width: 200%; height: 200%; }',v=y.head||y.getElementsByTagName("head")[0],E=y.createElement("style");E.id="detectElementResize",E.type="text/css",e!=null&&E.setAttribute("nonce",e),E.styleSheet?E.styleSheet.cssText=h:E.appendChild(y.createTextNode(h)),v.appendChild(E)}};return{addResizeListener:function(y,h){if(u)y.attachEvent("onresize",h);else{if(!y.__resizeTriggers__){const v=y.ownerDocument,E=Al.getComputedStyle(y);E&&E.position==="static"&&(y.style.position="relative"),d(v),y.__resizeLast__={},y.__resizeListeners__=[],(y.__resizeTriggers__=v.createElement("div")).className="resize-triggers";const T=v.createElement("div");T.className="expand-trigger",T.appendChild(v.createElement("div"));const C=v.createElement("div");C.className="contract-trigger",y.__resizeTriggers__.appendChild(T),y.__resizeTriggers__.appendChild(C),y.appendChild(y.__resizeTriggers__),o(y),y.addEventListener("scroll",l,!0),r&&(y.__resizeTriggers__.__animationListener__=function(_){_.animationName===n&&o(y)},y.__resizeTriggers__.addEventListener(r,y.__resizeTriggers__.__animationListener__))}y.__resizeListeners__.push(h)}},removeResizeListener:function(y,h){if(u)y.detachEvent("onresize",h);else if(y.__resizeListeners__.splice(y.__resizeListeners__.indexOf(h),1),!y.__resizeListeners__.length){y.removeEventListener("scroll",l,!0),y.__resizeTriggers__.__animationListener__&&(y.__resizeTriggers__.removeEventListener(r,y.__resizeTriggers__.__animationListener__),y.__resizeTriggers__.__animationListener__=null);try{y.__resizeTriggers__=!y.removeChild(y.__resizeTriggers__)}catch{}}}}}class e0e extends R.Component{constructor(...t){super(...t),this.state={height:this.props.defaultHeight||0,scaledHeight:this.props.defaultHeight||0,scaledWidth:this.props.defaultWidth||0,width:this.props.defaultWidth||0},this._autoSizer=null,this._detectElementResize=null,this._parentNode=null,this._resizeObserver=null,this._timeoutId=null,this._onResize=()=>{this._timeoutId=null;const{disableHeight:n,disableWidth:r,onResize:a}=this.props;if(this._parentNode){const i=window.getComputedStyle(this._parentNode)||{},o=parseFloat(i.paddingLeft||"0"),l=parseFloat(i.paddingRight||"0"),u=parseFloat(i.paddingTop||"0"),d=parseFloat(i.paddingBottom||"0"),f=this._parentNode.getBoundingClientRect(),g=f.height-u-d,y=f.width-o-l,h=this._parentNode.offsetHeight-u-d,v=this._parentNode.offsetWidth-o-l;(!n&&(this.state.height!==h||this.state.scaledHeight!==g)||!r&&(this.state.width!==v||this.state.scaledWidth!==y))&&(this.setState({height:h,width:v,scaledHeight:g,scaledWidth:y}),typeof a=="function"&&a({height:h,scaledHeight:g,scaledWidth:y,width:v}))}},this._setRef=n=>{this._autoSizer=n}}componentDidMount(){const{nonce:t}=this.props,n=this._autoSizer?this._autoSizer.parentNode:null;if(n!=null&&n.ownerDocument&&n.ownerDocument.defaultView&&n instanceof n.ownerDocument.defaultView.HTMLElement){this._parentNode=n;const r=n.ownerDocument.defaultView.ResizeObserver;r!=null?(this._resizeObserver=new r(()=>{this._timeoutId=setTimeout(this._onResize,0)}),this._resizeObserver.observe(n)):(this._detectElementResize=Zbe(t),this._detectElementResize.addResizeListener(n,this._onResize)),this._onResize()}}componentWillUnmount(){this._parentNode&&(this._detectElementResize&&this._detectElementResize.removeResizeListener(this._parentNode,this._onResize),this._timeoutId!==null&&clearTimeout(this._timeoutId),this._resizeObserver&&this._resizeObserver.disconnect())}render(){const{children:t,defaultHeight:n,defaultWidth:r,disableHeight:a=!1,disableWidth:i=!1,doNotBailOutOnEmptyChildren:o=!1,nonce:l,onResize:u,style:d={},tagName:f="div",...g}=this.props,{height:y,scaledHeight:h,scaledWidth:v,width:E}=this.state,T={overflow:"visible"},C={};let k=!1;return a||(y===0&&(k=!0),T.height=0,C.height=y,C.scaledHeight=h),i||(E===0&&(k=!0),T.width=0,C.width=E,C.scaledWidth=v),o&&(k=!1),R.createElement(f,{ref:this._setRef,style:{...T,...d},...g},!k&&t(C))}}function t0e(e){var t=e.lastRenderedStartIndex,n=e.lastRenderedStopIndex,r=e.startIndex,a=e.stopIndex;return!(r>n||a0;){var h=o[0]-1;if(!t(h))o[0]=h;else break}return o}var r0e=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")},a0e=(function(){function e(t,n){for(var r=0;r0&&arguments[0]!==void 0?arguments[0]:!1;this._memoizedUnloadedRanges=[],r&&this._ensureRowsLoaded(this._lastRenderedStartIndex,this._lastRenderedStopIndex)}},{key:"componentDidMount",value:function(){}},{key:"render",value:function(){var r=this.props.children;return r({onItemsRendered:this._onItemsRendered,ref:this._setRef})}},{key:"_ensureRowsLoaded",value:function(r,a){var i=this.props,o=i.isItemLoaded,l=i.itemCount,u=i.minimumBatchSize,d=u===void 0?10:u,f=i.threshold,g=f===void 0?15:f,y=n0e({isItemLoaded:o,itemCount:l,minimumBatchSize:d,startIndex:Math.max(0,r-g),stopIndex:Math.min(l-1,a+g)});(this._memoizedUnloadedRanges.length!==y.length||this._memoizedUnloadedRanges.some(function(h,v){return y[v]!==h}))&&(this._memoizedUnloadedRanges=y,this._loadUnloadedRanges(y))}},{key:"_loadUnloadedRanges",value:function(r){for(var a=this,i=this.props.loadMoreItems||this.props.loadMoreRows,o=function(d){var f=r[d],g=r[d+1],y=i(f,g);y!=null&&y.then(function(){if(t0e({lastRenderedStartIndex:a._lastRenderedStartIndex,lastRenderedStopIndex:a._lastRenderedStopIndex,startIndex:f,stopIndex:g})){if(a._listRef==null)return;typeof a._listRef.resetAfterIndex=="function"?a._listRef.resetAfterIndex(f,!0):(typeof a._listRef._getItemStyleCache=="function"&&a._listRef._getItemStyleCache(-1),a._listRef.forceUpdate())}})},l=0;l0;throw new Error("unsupported direction")}function ZJ(e,t){return l0e(e,t)?!0:e===document.body&&getComputedStyle(document.body).overflowY==="hidden"||e.parentElement==null?!1:ZJ(e.parentElement,t)}class u0e extends R.Component{containerRef(t){this.container=t}pullDownRef(t){this.pullDown=t;const n=this.pullDown&&this.pullDown.firstChild&&this.pullDown.firstChild.getBoundingClientRect?this.pullDown.firstChild.getBoundingClientRect().height:0;this.setState({maxPullDownDistance:n})}constructor(t){super(t),this.container=void 0,this.pullDown=void 0,this.dragging=!1,this.startY=0,this.currentY=0,this.state={pullToRefreshThresholdBreached:!1,maxPullDownDistance:0,onRefreshing:!1},this.containerRef=this.containerRef.bind(this),this.pullDownRef=this.pullDownRef.bind(this),this.onTouchStart=this.onTouchStart.bind(this),this.onTouchMove=this.onTouchMove.bind(this),this.onEnd=this.onEnd.bind(this)}componentDidMount(){this.container&&(this.container.addEventListener("touchstart",this.onTouchStart),this.container.addEventListener("touchmove",this.onTouchMove),this.container.addEventListener("touchend",this.onEnd),this.container.addEventListener("mousedown",this.onTouchStart),this.container.addEventListener("mousemove",this.onTouchMove),this.container.addEventListener("mouseup",this.onEnd))}componentWillUnmount(){this.container&&(this.container.removeEventListener("touchstart",this.onTouchStart),this.container.removeEventListener("touchmove",this.onTouchMove),this.container.removeEventListener("touchend",this.onEnd),this.container.removeEventListener("mousedown",this.onTouchStart),this.container.removeEventListener("mousemove",this.onTouchMove),this.container.removeEventListener("mouseup",this.onEnd))}onTouchStart(t){const{triggerHeight:n=40}=this.props;if(this.startY=t.pageY||t.touches[0].pageY,this.currentY=this.startY,n==="auto"){const r=t.target,a=this.container;if(!a||t.type==="touchstart"&&ZJ(r,AL.up)||a.getBoundingClientRect().top<0)return}else{const r=this.container.getBoundingClientRect().top||this.container.getBoundingClientRect().y||0;if(this.startY-r>n)return}this.dragging=!0,this.container.style.transition="transform 0.2s cubic-bezier(0,0,0.31,1)",this.pullDown.style.transition="transform 0.2s cubic-bezier(0,0,0.31,1)"}onTouchMove(t){this.dragging&&(this.currentY=t.pageY||t.touches[0].pageY,!(this.currentY=this.props.pullDownThreshold&&this.setState({pullToRefreshThresholdBreached:!0}),!(this.currentY-this.startY>this.state.maxPullDownDistance)&&(this.container.style.overflow="visible",this.container.style.transform=`translate(0px, ${this.currentY-this.startY}px)`,this.pullDown.style.visibility="visible")))}onEnd(){if(this.dragging=!1,this.startY=0,this.currentY=0,!this.state.pullToRefreshThresholdBreached){this.pullDown.style.visibility=this.props.startInvisible?"hidden":"visible",this.initContainer();return}this.container.style.overflow="visible",this.container.style.transform=`translate(0px, ${this.props.pullDownThreshold}px)`,this.setState({onRefreshing:!0},()=>{this.props.onRefresh().then(()=>{this.initContainer(),setTimeout(()=>{this.setState({onRefreshing:!1,pullToRefreshThresholdBreached:!1})},200)})})}initContainer(){requestAnimationFrame(()=>{this.container&&(this.container.style.overflow="auto",this.container.style.transform="none")})}renderPullDownContent(){const{releaseContent:t,pullDownContent:n,refreshContent:r,startInvisible:a}=this.props,{onRefreshing:i,pullToRefreshThresholdBreached:o}=this.state,l=i?r:o?t:n,u={position:"absolute",overflow:"hidden",left:0,right:0,top:0,visibility:a?"hidden":"visible"};return w.jsx("div",{id:"ptr-pull-down",style:u,ref:this.pullDownRef,children:l})}render(){const{backgroundColor:t}=this.props,n={height:"auto",overflow:"hidden",margin:"0 -10px",padding:"0 10px",WebkitOverflowScrolling:"touch",position:"relative",zIndex:1};return this.props.containerStyle&&Object.keys(this.props.containerStyle).forEach(r=>{n[r]=this.props.containerStyle[r]}),t&&(n.backgroundColor=t),w.jsxs("div",{id:"ptr-parent",style:n,children:[this.renderPullDownContent(),w.jsx("div",{id:"ptr-container",ref:this.containerRef,style:n,children:this.props.children})]})}}const c0e=({height:e="200px",background:t="none"})=>w.jsxs("div",{id:"container",children:[w.jsxs("div",{className:"sk-fading-circle",children:[w.jsx("div",{className:"sk-circle1 sk-circle"}),w.jsx("div",{className:"sk-circle2 sk-circle"}),w.jsx("div",{className:"sk-circle3 sk-circle"}),w.jsx("div",{className:"sk-circle4 sk-circle"}),w.jsx("div",{className:"sk-circle5 sk-circle"}),w.jsx("div",{className:"sk-circle6 sk-circle"}),w.jsx("div",{className:"sk-circle7 sk-circle"}),w.jsx("div",{className:"sk-circle8 sk-circle"}),w.jsx("div",{className:"sk-circle9 sk-circle"}),w.jsx("div",{className:"sk-circle10 sk-circle"}),w.jsx("div",{className:"sk-circle11 sk-circle"}),w.jsx("div",{className:"sk-circle12 sk-circle"})]}),w.jsx("style",{children:` + */const R0e=[["path",{d:"m3 16 4 4 4-4",key:"1co6wj"}],["path",{d:"M7 4v16",key:"1glfcx"}],["path",{d:"M15 4h5l-5 6h5",key:"8asdl1"}],["path",{d:"M15 20v-3.5a2.5 2.5 0 0 1 5 0V20",key:"r6l5cz"}],["path",{d:"M20 18h-5",key:"18j1r2"}]],P0e=cj("arrow-down-z-a",R0e);function A0e({tabIndex:e,column:t,filterType:n,sortable:r,filterable:a,selectable:i,udf:o}){var y;const l=(y=o.filters.sorting)==null?void 0:y.find(h=>h.columnName===t.key),[u,d]=R.useState("");R.useEffect(()=>{u!==ka.get(o.filters,t.key)&&d(ka.get(o.filters,t.key))},[o.filters]);let f;(l==null?void 0:l.columnName)===t.key&&(l==null?void 0:l.direction)=="asc"&&(f="asc"),(l==null?void 0:l.columnName)===t.key&&(l==null?void 0:l.direction)=="desc"&&(f="desc");const g=()=>{l?((l==null?void 0:l.direction)==="desc"&&o.setSorting(o.filters.sorting.filter(h=>h.columnName!==t.key)),(l==null?void 0:l.direction)==="asc"&&o.setSorting(o.filters.sorting.map(h=>h.columnName===t.key?{...h,direction:"desc"}:h))):o.setSorting([...o.filters.sorting,{columnName:t.key.toString(),direction:"asc"}])};return w.jsxs(w.Fragment,{children:[r?w.jsx("span",{className:"data-table-sort-actions",children:w.jsxs("button",{className:`active-sort-col ${t.key==(l==null?void 0:l.columnName)?"active":""}`,onClick:g,children:[f=="asc"?w.jsx(x0e,{className:"sort-icon"}):null,f=="desc"?w.jsx(P0e,{className:"sort-icon"}):null,f===void 0?w.jsx(O0e,{className:"sort-icon"}):null]})}):null,a?w.jsx(w.Fragment,{children:n==="date"?w.jsx("input",{className:"data-table-filter-input",tabIndex:e,value:u,onChange:h=>{d(h.target.value),o.setFilter({[t.key]:h.target.value})},placeholder:t.name||"",type:"date"}):w.jsx("input",{className:"data-table-filter-input",tabIndex:e,value:u,onChange:h=>{d(h.target.value),o.setFilter({[t.key]:h.target.value})},placeholder:t.name||""})}):w.jsx("span",{children:t.name})]})}function N0e(e,t){const n=e.split("/").filter(Boolean);return t.split("/").forEach(a=>{a===".."?n.pop():a!=="."&&a!==""&&n.push(a)}),"/"+n.join("/")}const M0e=(e,t,n,r=[],a,i)=>e.map(o=>{const l=r.find(u=>u.columnName===o.name);return{...o,key:o.name,renderCell:({column:u,row:d})=>{if(u.key==="uniqueId"){let f=a?a(d.uniqueId):"";return f.startsWith(".")&&(f=N0e(i,f)),w.jsxs("div",{style:{position:"relative"},children:[w.jsx(Ml,{href:a&&a(d.uniqueId),children:d.uniqueId}),w.jsxs("div",{className:"cell-actions",children:[w.jsx(_Z,{value:d.uniqueId}),w.jsx(b0e,{value:f})]})]})}return u.getCellValue?w.jsx(w.Fragment,{children:u.getCellValue(d)}):w.jsx("span",{children:ka.get(d,u.key)})},width:l?l.width:o.width,name:o.title,resizable:!0,sortable:o.sortable,renderHeaderCell:u=>w.jsx(A0e,{...u,selectable:!0,sortable:o.sortable,filterable:o.filterable,filterType:o.filterType,udf:n})}});function I0e(e){const t=R.useRef();let[n,r]=R.useState([]);const a=R.useRef({});return{reindex:(o,l,u)=>{if(l===t.current){const d=o.filter(f=>a.current[f.uniqueId]?!1:(a.current[f.uniqueId]=!0,!0));r([...n,...d].filter(Boolean))}else r([...o].filter(Boolean)),u==null||u();t.current=l},indexedData:n}}function D0e({columns:e,query:t,columnSizes:n,onColumnWidthsChange:r,udf:a,tableClass:i,uniqueIdHrefHandler:o}){var P,N;At();const{pathname:l}=sf(),{filters:u,setSorting:d,setStartIndex:f,selection:g,setSelection:y,setPageSize:h,onFiltersChange:v}=a,E=R.useMemo(()=>[Qye,...M0e(e,(I,L)=>{a.setFilter({[I]:L})},a,n,o,l)],[e,n]),{indexedData:T,reindex:C}=I0e(),k=R.useRef();R.useEffect(()=>{var L,j;const I=((j=(L=t.data)==null?void 0:L.data)==null?void 0:j.items)||[];C(I,a.queryHash,()=>{k.current.element.scrollTo({top:0,left:0})})},[(N=(P=t.data)==null?void 0:P.data)==null?void 0:N.items]);async function _(I){t.isLoading||!$0e(I)||f(T.length)}const A=ka.debounce((I,L)=>{const j=E.map(z=>({columnName:z.key,width:z.name===I.name?L:z.width}));r(j)},300);return w.jsx(w.Fragment,{children:w.jsx(f0e,{className:i,columns:E,onScroll:_,onColumnResize:A,onSelectedRowsChange:I=>{y(Array.from(I))},selectedRows:new Set(g),ref:k,rows:T,rowKeyGetter:I=>I.uniqueId,style:{height:"calc(100% - 2px)",margin:"1px -14px"}})})}function $0e({currentTarget:e}){return e.scrollTop+300>=e.scrollHeight-e.clientHeight}function L0e(e){const t={};for(let n of e||[])n&&n.columnName&&ka.set(t,n.columnName,{operation:n.operation,value:n.value});return t}let Il;typeof window<"u"?Il=window:typeof self<"u"?Il=self:Il=global;let a3=null,i3=null;const k8=20,vA=Il.clearTimeout,x8=Il.setTimeout,yA=Il.cancelAnimationFrame||Il.mozCancelAnimationFrame||Il.webkitCancelAnimationFrame,_8=Il.requestAnimationFrame||Il.mozRequestAnimationFrame||Il.webkitRequestAnimationFrame;yA==null||_8==null?(a3=vA,i3=function(t){return x8(t,k8)}):(a3=function([t,n]){yA(t),vA(n)},i3=function(t){const n=_8(function(){vA(r),t()}),r=x8(function(){yA(n),t()},k8);return[n,r]});function F0e(e){let t,n,r,a,i,o,l;const u=typeof document<"u"&&document.attachEvent;if(!u){o=function(C){const k=C.__resizeTriggers__,_=k.firstElementChild,A=k.lastElementChild,P=_.firstElementChild;A.scrollLeft=A.scrollWidth,A.scrollTop=A.scrollHeight,P.style.width=_.offsetWidth+1+"px",P.style.height=_.offsetHeight+1+"px",_.scrollLeft=_.scrollWidth,_.scrollTop=_.scrollHeight},i=function(C){return C.offsetWidth!==C.__resizeLast__.width||C.offsetHeight!==C.__resizeLast__.height},l=function(C){if(C.target.className&&typeof C.target.className.indexOf=="function"&&C.target.className.indexOf("contract-trigger")<0&&C.target.className.indexOf("expand-trigger")<0)return;const k=this;o(this),this.__resizeRAF__&&a3(this.__resizeRAF__),this.__resizeRAF__=i3(function(){i(k)&&(k.__resizeLast__.width=k.offsetWidth,k.__resizeLast__.height=k.offsetHeight,k.__resizeListeners__.forEach(function(P){P.call(k,C)}))})};let y=!1,h="";r="animationstart";const v="Webkit Moz O ms".split(" ");let E="webkitAnimationStart animationstart oAnimationStart MSAnimationStart".split(" "),T="";{const C=document.createElement("fakeelement");if(C.style.animationName!==void 0&&(y=!0),y===!1){for(let k=0;k div, .contract-trigger:before { content: " "; display: block; position: absolute; top: 0; left: 0; height: 100%; width: 100%; overflow: hidden; z-index: -1; } .resize-triggers > div { background: #eee; overflow: auto; } .contract-trigger:before { width: 200%; height: 200%; }',v=y.head||y.getElementsByTagName("head")[0],E=y.createElement("style");E.id="detectElementResize",E.type="text/css",e!=null&&E.setAttribute("nonce",e),E.styleSheet?E.styleSheet.cssText=h:E.appendChild(y.createTextNode(h)),v.appendChild(E)}};return{addResizeListener:function(y,h){if(u)y.attachEvent("onresize",h);else{if(!y.__resizeTriggers__){const v=y.ownerDocument,E=Il.getComputedStyle(y);E&&E.position==="static"&&(y.style.position="relative"),d(v),y.__resizeLast__={},y.__resizeListeners__=[],(y.__resizeTriggers__=v.createElement("div")).className="resize-triggers";const T=v.createElement("div");T.className="expand-trigger",T.appendChild(v.createElement("div"));const C=v.createElement("div");C.className="contract-trigger",y.__resizeTriggers__.appendChild(T),y.__resizeTriggers__.appendChild(C),y.appendChild(y.__resizeTriggers__),o(y),y.addEventListener("scroll",l,!0),r&&(y.__resizeTriggers__.__animationListener__=function(_){_.animationName===n&&o(y)},y.__resizeTriggers__.addEventListener(r,y.__resizeTriggers__.__animationListener__))}y.__resizeListeners__.push(h)}},removeResizeListener:function(y,h){if(u)y.detachEvent("onresize",h);else if(y.__resizeListeners__.splice(y.__resizeListeners__.indexOf(h),1),!y.__resizeListeners__.length){y.removeEventListener("scroll",l,!0),y.__resizeTriggers__.__animationListener__&&(y.__resizeTriggers__.removeEventListener(r,y.__resizeTriggers__.__animationListener__),y.__resizeTriggers__.__animationListener__=null);try{y.__resizeTriggers__=!y.removeChild(y.__resizeTriggers__)}catch{}}}}}class j0e extends R.Component{constructor(...t){super(...t),this.state={height:this.props.defaultHeight||0,scaledHeight:this.props.defaultHeight||0,scaledWidth:this.props.defaultWidth||0,width:this.props.defaultWidth||0},this._autoSizer=null,this._detectElementResize=null,this._parentNode=null,this._resizeObserver=null,this._timeoutId=null,this._onResize=()=>{this._timeoutId=null;const{disableHeight:n,disableWidth:r,onResize:a}=this.props;if(this._parentNode){const i=window.getComputedStyle(this._parentNode)||{},o=parseFloat(i.paddingLeft||"0"),l=parseFloat(i.paddingRight||"0"),u=parseFloat(i.paddingTop||"0"),d=parseFloat(i.paddingBottom||"0"),f=this._parentNode.getBoundingClientRect(),g=f.height-u-d,y=f.width-o-l,h=this._parentNode.offsetHeight-u-d,v=this._parentNode.offsetWidth-o-l;(!n&&(this.state.height!==h||this.state.scaledHeight!==g)||!r&&(this.state.width!==v||this.state.scaledWidth!==y))&&(this.setState({height:h,width:v,scaledHeight:g,scaledWidth:y}),typeof a=="function"&&a({height:h,scaledHeight:g,scaledWidth:y,width:v}))}},this._setRef=n=>{this._autoSizer=n}}componentDidMount(){const{nonce:t}=this.props,n=this._autoSizer?this._autoSizer.parentNode:null;if(n!=null&&n.ownerDocument&&n.ownerDocument.defaultView&&n instanceof n.ownerDocument.defaultView.HTMLElement){this._parentNode=n;const r=n.ownerDocument.defaultView.ResizeObserver;r!=null?(this._resizeObserver=new r(()=>{this._timeoutId=setTimeout(this._onResize,0)}),this._resizeObserver.observe(n)):(this._detectElementResize=F0e(t),this._detectElementResize.addResizeListener(n,this._onResize)),this._onResize()}}componentWillUnmount(){this._parentNode&&(this._detectElementResize&&this._detectElementResize.removeResizeListener(this._parentNode,this._onResize),this._timeoutId!==null&&clearTimeout(this._timeoutId),this._resizeObserver&&this._resizeObserver.disconnect())}render(){const{children:t,defaultHeight:n,defaultWidth:r,disableHeight:a=!1,disableWidth:i=!1,doNotBailOutOnEmptyChildren:o=!1,nonce:l,onResize:u,style:d={},tagName:f="div",...g}=this.props,{height:y,scaledHeight:h,scaledWidth:v,width:E}=this.state,T={overflow:"visible"},C={};let k=!1;return a||(y===0&&(k=!0),T.height=0,C.height=y,C.scaledHeight=h),i||(E===0&&(k=!0),T.width=0,C.width=E,C.scaledWidth=v),o&&(k=!1),R.createElement(f,{ref:this._setRef,style:{...T,...d},...g},!k&&t(C))}}function U0e(e){var t=e.lastRenderedStartIndex,n=e.lastRenderedStopIndex,r=e.startIndex,a=e.stopIndex;return!(r>n||a0;){var h=o[0]-1;if(!t(h))o[0]=h;else break}return o}var W0e=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")},z0e=(function(){function e(t,n){for(var r=0;r0&&arguments[0]!==void 0?arguments[0]:!1;this._memoizedUnloadedRanges=[],r&&this._ensureRowsLoaded(this._lastRenderedStartIndex,this._lastRenderedStopIndex)}},{key:"componentDidMount",value:function(){}},{key:"render",value:function(){var r=this.props.children;return r({onItemsRendered:this._onItemsRendered,ref:this._setRef})}},{key:"_ensureRowsLoaded",value:function(r,a){var i=this.props,o=i.isItemLoaded,l=i.itemCount,u=i.minimumBatchSize,d=u===void 0?10:u,f=i.threshold,g=f===void 0?15:f,y=B0e({isItemLoaded:o,itemCount:l,minimumBatchSize:d,startIndex:Math.max(0,r-g),stopIndex:Math.min(l-1,a+g)});(this._memoizedUnloadedRanges.length!==y.length||this._memoizedUnloadedRanges.some(function(h,v){return y[v]!==h}))&&(this._memoizedUnloadedRanges=y,this._loadUnloadedRanges(y))}},{key:"_loadUnloadedRanges",value:function(r){for(var a=this,i=this.props.loadMoreItems||this.props.loadMoreRows,o=function(d){var f=r[d],g=r[d+1],y=i(f,g);y!=null&&y.then(function(){if(U0e({lastRenderedStartIndex:a._lastRenderedStartIndex,lastRenderedStopIndex:a._lastRenderedStopIndex,startIndex:f,stopIndex:g})){if(a._listRef==null)return;typeof a._listRef.resetAfterIndex=="function"?a._listRef.resetAfterIndex(f,!0):(typeof a._listRef._getItemStyleCache=="function"&&a._listRef._getItemStyleCache(-1),a._listRef.forceUpdate())}})},l=0;l0;throw new Error("unsupported direction")}function RZ(e,t){return G0e(e,t)?!0:e===document.body&&getComputedStyle(document.body).overflowY==="hidden"||e.parentElement==null?!1:RZ(e.parentElement,t)}class Y0e extends R.Component{containerRef(t){this.container=t}pullDownRef(t){this.pullDown=t;const n=this.pullDown&&this.pullDown.firstChild&&this.pullDown.firstChild.getBoundingClientRect?this.pullDown.firstChild.getBoundingClientRect().height:0;this.setState({maxPullDownDistance:n})}constructor(t){super(t),this.container=void 0,this.pullDown=void 0,this.dragging=!1,this.startY=0,this.currentY=0,this.state={pullToRefreshThresholdBreached:!1,maxPullDownDistance:0,onRefreshing:!1},this.containerRef=this.containerRef.bind(this),this.pullDownRef=this.pullDownRef.bind(this),this.onTouchStart=this.onTouchStart.bind(this),this.onTouchMove=this.onTouchMove.bind(this),this.onEnd=this.onEnd.bind(this)}componentDidMount(){this.container&&(this.container.addEventListener("touchstart",this.onTouchStart),this.container.addEventListener("touchmove",this.onTouchMove),this.container.addEventListener("touchend",this.onEnd),this.container.addEventListener("mousedown",this.onTouchStart),this.container.addEventListener("mousemove",this.onTouchMove),this.container.addEventListener("mouseup",this.onEnd))}componentWillUnmount(){this.container&&(this.container.removeEventListener("touchstart",this.onTouchStart),this.container.removeEventListener("touchmove",this.onTouchMove),this.container.removeEventListener("touchend",this.onEnd),this.container.removeEventListener("mousedown",this.onTouchStart),this.container.removeEventListener("mousemove",this.onTouchMove),this.container.removeEventListener("mouseup",this.onEnd))}onTouchStart(t){const{triggerHeight:n=40}=this.props;if(this.startY=t.pageY||t.touches[0].pageY,this.currentY=this.startY,n==="auto"){const r=t.target,a=this.container;if(!a||t.type==="touchstart"&&RZ(r,o3.up)||a.getBoundingClientRect().top<0)return}else{const r=this.container.getBoundingClientRect().top||this.container.getBoundingClientRect().y||0;if(this.startY-r>n)return}this.dragging=!0,this.container.style.transition="transform 0.2s cubic-bezier(0,0,0.31,1)",this.pullDown.style.transition="transform 0.2s cubic-bezier(0,0,0.31,1)"}onTouchMove(t){this.dragging&&(this.currentY=t.pageY||t.touches[0].pageY,!(this.currentY=this.props.pullDownThreshold&&this.setState({pullToRefreshThresholdBreached:!0}),!(this.currentY-this.startY>this.state.maxPullDownDistance)&&(this.container.style.overflow="visible",this.container.style.transform=`translate(0px, ${this.currentY-this.startY}px)`,this.pullDown.style.visibility="visible")))}onEnd(){if(this.dragging=!1,this.startY=0,this.currentY=0,!this.state.pullToRefreshThresholdBreached){this.pullDown.style.visibility=this.props.startInvisible?"hidden":"visible",this.initContainer();return}this.container.style.overflow="visible",this.container.style.transform=`translate(0px, ${this.props.pullDownThreshold}px)`,this.setState({onRefreshing:!0},()=>{this.props.onRefresh().then(()=>{this.initContainer(),setTimeout(()=>{this.setState({onRefreshing:!1,pullToRefreshThresholdBreached:!1})},200)})})}initContainer(){requestAnimationFrame(()=>{this.container&&(this.container.style.overflow="auto",this.container.style.transform="none")})}renderPullDownContent(){const{releaseContent:t,pullDownContent:n,refreshContent:r,startInvisible:a}=this.props,{onRefreshing:i,pullToRefreshThresholdBreached:o}=this.state,l=i?r:o?t:n,u={position:"absolute",overflow:"hidden",left:0,right:0,top:0,visibility:a?"hidden":"visible"};return w.jsx("div",{id:"ptr-pull-down",style:u,ref:this.pullDownRef,children:l})}render(){const{backgroundColor:t}=this.props,n={height:"auto",overflow:"hidden",margin:"0 -10px",padding:"0 10px",WebkitOverflowScrolling:"touch",position:"relative",zIndex:1};return this.props.containerStyle&&Object.keys(this.props.containerStyle).forEach(r=>{n[r]=this.props.containerStyle[r]}),t&&(n.backgroundColor=t),w.jsxs("div",{id:"ptr-parent",style:n,children:[this.renderPullDownContent(),w.jsx("div",{id:"ptr-container",ref:this.containerRef,style:n,children:this.props.children})]})}}const K0e=({height:e="200px",background:t="none"})=>w.jsxs("div",{id:"container",children:[w.jsxs("div",{className:"sk-fading-circle",children:[w.jsx("div",{className:"sk-circle1 sk-circle"}),w.jsx("div",{className:"sk-circle2 sk-circle"}),w.jsx("div",{className:"sk-circle3 sk-circle"}),w.jsx("div",{className:"sk-circle4 sk-circle"}),w.jsx("div",{className:"sk-circle5 sk-circle"}),w.jsx("div",{className:"sk-circle6 sk-circle"}),w.jsx("div",{className:"sk-circle7 sk-circle"}),w.jsx("div",{className:"sk-circle8 sk-circle"}),w.jsx("div",{className:"sk-circle9 sk-circle"}),w.jsx("div",{className:"sk-circle10 sk-circle"}),w.jsx("div",{className:"sk-circle11 sk-circle"}),w.jsx("div",{className:"sk-circle12 sk-circle"})]}),w.jsx("style",{children:` #container { display: flex; flex-direction: column; @@ -357,7 +360,7 @@ PERFORMANCE OF THIS SOFTWARE. opacity: 1; } } - `})]}),d0e=({height:e="200px",background:t="none",label:n="Pull down to refresh"})=>w.jsxs("div",{id:"container2",children:[w.jsx("span",{children:n}),w.jsx("style",{children:` + `})]}),X0e=({height:e="200px",background:t="none",label:n="Pull down to refresh"})=>w.jsxs("div",{id:"container2",children:[w.jsx("span",{children:n}),w.jsx("style",{children:` #container2 { background: ${t}; height: ${e}; @@ -381,7 +384,7 @@ PERFORMANCE OF THIS SOFTWARE. opacity: 1; } } - `})]}),f0e=({height:e="200px",background:t="none",label:n="Release to refresh"})=>w.jsxs("div",{id:"container",children:[w.jsx("div",{id:"arrow"}),w.jsx("span",{children:n}),w.jsx("style",{children:` + `})]}),Q0e=({height:e="200px",background:t="none",label:n="Release to refresh"})=>w.jsxs("div",{id:"container",children:[w.jsx("div",{id:"arrow"}),w.jsx("span",{children:n}),w.jsx("style",{children:` #container { background: ${t||"none"}; height: ${e||"200px"}; @@ -406,38 +409,35 @@ PERFORMANCE OF THIS SOFTWARE. opacity: 1; } } - `})]}),rf=({label:e,getInputRef:t,displayValue:n,Icon:r,children:a,errorMessage:i,validMessage:o,value:l,hint:u,onClick:d,onChange:f,className:g,focused:y=!1,hasAnimation:h})=>w.jsxs("div",{style:{position:"relative"},className:oa("mb-3",g),children:[e&&w.jsx("label",{className:"form-label",children:e}),a,w.jsx("div",{className:"form-text",children:u}),w.jsx("div",{className:"invalid-feedback",children:i}),w.jsx("div",{className:"valid-feedback",children:o})]}),Ws=e=>{const{placeholder:t,label:n,getInputRef:r,secureTextEntry:a,Icon:i,isSubmitting:o,errorMessage:l,onChange:u,value:d,disabled:f,type:g,focused:y=!1,className:h,mutation:v,...E}=e,T=v==null?void 0:v.isLoading;return w.jsx("button",{onClick:e.onClick,type:"submit",disabled:f||T,className:oa("btn mb-3",`btn-${g||"primary"}`,h),...e,children:e.children||e.label})};function p0e(e,t,n={}){var r,a,i,o,l,u,d,f,g,y;if(t.isError){if(((r=t.error)==null?void 0:r.status)===404)return e.notfound+"("+n.remote+")";if(t.error.message==="Failed to fetch")return e.networkError+"("+n.remote+")";if((i=(a=t.error)==null?void 0:a.error)!=null&&i.messageTranslated)return(l=(o=t.error)==null?void 0:o.error)==null?void 0:l.messageTranslated;if((d=(u=t.error)==null?void 0:u.error)!=null&&d.message)return(g=(f=t.error)==null?void 0:f.error)==null?void 0:g.message;let h=(y=t.error)==null?void 0:y.toString();return(h+"").includes("object Object")&&(h="There is an unknown error while getting information, please contact your software provider if issue persists."),h}return null}function Il({query:e,children:t}){var d,f,g,y;const n=At(),{options:r,setOverrideRemoteUrl:a,overrideRemoteUrl:i}=R.useContext(rt);let o=!1,l="80";try{if(r!=null&&r.prefix){const h=new URL(r==null?void 0:r.prefix);l=h.port||(h.protocol==="https:"?"443":"80"),o=(location.host.includes("192.168")||location.host.includes("127.0"))&&((f=(d=e.error)==null?void 0:d.message)==null?void 0:f.includes("Failed to fetch"))}}catch{}const u=()=>{a("http://"+location.hostname+":"+l+"/")};return e?w.jsxs(w.Fragment,{children:[e.isError&&w.jsxs("div",{className:"basic-error-box fadein",children:[p0e(n,e,{remote:r.prefix})||"",o&&w.jsx("button",{className:"btn btn-sm btn-secondary",onClick:u,children:"Auto-reroute"}),i&&w.jsx("button",{className:"btn btn-sm btn-secondary",onClick:()=>a(void 0),children:"Reset"}),w.jsx("ul",{children:(((y=(g=e.error)==null?void 0:g.error)==null?void 0:y.errors)||[]).map(h=>w.jsxs("li",{children:[h.messageTranslated||h.message," (",h.location,")"]},h.location))}),e.refetch&&w.jsx(Ws,{onClick:e.refetch,children:"Retry"})]}),!e.isError||e.isPreviousData?t:null]}):null}function eZ({content:e,columns:t,uniqueIdHrefHandler:n,style:r}){const a=n?Pl:"span";return w.jsx(a,{className:"auto-card-list-item card mb-2 p-3",style:r,href:n(e.uniqueId),children:t.map(i=>{let o=i.getCellValue?i.getCellValue(e):"";return o||(o=i.name?e[i.name]:""),o||(o="-"),i.name==="uniqueId"?null:w.jsxs("div",{className:"row auto-card-drawer",children:[w.jsxs("div",{className:"col-6",children:[i.title,":"]}),w.jsx("div",{className:"col-6",children:o})]},i.title)})})}const h0e=()=>{const e=At();return w.jsxs("div",{className:"empty-list-indicator",children:[w.jsx("img",{src:Fs("/common/empty.png")}),w.jsx("div",{children:e.table.noRecords})]})};function Dt(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}var t8=Number.isNaN||function(t){return typeof t=="number"&&t!==t};function m0e(e,t){return!!(e===t||t8(e)&&t8(t))}function g0e(e,t){if(e.length!==t.length)return!1;for(var n=0;n=0)&&(n[a]=e[a]);return n}var y0e=typeof performance=="object"&&typeof performance.now=="function",n8=y0e?function(){return performance.now()}:function(){return Date.now()};function r8(e){cancelAnimationFrame(e.id)}function b0e(e,t){var n=n8();function r(){n8()-n>=t?e.call(null):a.id=requestAnimationFrame(r)}var a={id:requestAnimationFrame(r)};return a}var VP=-1;function a8(e){if(e===void 0&&(e=!1),VP===-1||e){var t=document.createElement("div"),n=t.style;n.width="50px",n.height="50px",n.overflow="scroll",document.body.appendChild(t),VP=t.offsetWidth-t.clientWidth,document.body.removeChild(t)}return VP}var vb=null;function i8(e){if(e===void 0&&(e=!1),vb===null||e){var t=document.createElement("div"),n=t.style;n.width="50px",n.height="50px",n.overflow="scroll",n.direction="rtl";var r=document.createElement("div"),a=r.style;return a.width="100px",a.height="100px",t.appendChild(r),document.body.appendChild(t),t.scrollLeft>0?vb="positive-descending":(t.scrollLeft=1,t.scrollLeft===0?vb="negative":vb="positive-ascending"),document.body.removeChild(t),vb}return vb}var w0e=150,S0e=function(t,n){return t};function E0e(e){var t,n=e.getItemOffset,r=e.getEstimatedTotalSize,a=e.getItemSize,i=e.getOffsetForIndexAndAlignment,o=e.getStartIndexForOffset,l=e.getStopIndexForStartIndex,u=e.initInstanceProps,d=e.shouldResetStyleCacheOnItemSizeChange,f=e.validateProps;return t=(function(g){qv(y,g);function y(v){var E;return E=g.call(this,v)||this,E._instanceProps=u(E.props,Dt(E)),E._outerRef=void 0,E._resetIsScrollingTimeoutId=null,E.state={instance:Dt(E),isScrolling:!1,scrollDirection:"forward",scrollOffset:typeof E.props.initialScrollOffset=="number"?E.props.initialScrollOffset:0,scrollUpdateWasRequested:!1},E._callOnItemsRendered=void 0,E._callOnItemsRendered=HP(function(T,C,k,_){return E.props.onItemsRendered({overscanStartIndex:T,overscanStopIndex:C,visibleStartIndex:k,visibleStopIndex:_})}),E._callOnScroll=void 0,E._callOnScroll=HP(function(T,C,k){return E.props.onScroll({scrollDirection:T,scrollOffset:C,scrollUpdateWasRequested:k})}),E._getItemStyle=void 0,E._getItemStyle=function(T){var C=E.props,k=C.direction,_=C.itemSize,A=C.layout,P=E._getItemStyleCache(d&&_,d&&A,d&&k),N;if(P.hasOwnProperty(T))N=P[T];else{var I=n(E.props,T,E._instanceProps),L=a(E.props,T,E._instanceProps),j=k==="horizontal"||A==="horizontal",z=k==="rtl",Q=j?I:0;P[T]=N={position:"absolute",left:z?void 0:Q,right:z?Q:void 0,top:j?0:I,height:j?"100%":L,width:j?L:"100%"}}return N},E._getItemStyleCache=void 0,E._getItemStyleCache=HP(function(T,C,k){return{}}),E._onScrollHorizontal=function(T){var C=T.currentTarget,k=C.clientWidth,_=C.scrollLeft,A=C.scrollWidth;E.setState(function(P){if(P.scrollOffset===_)return null;var N=E.props.direction,I=_;if(N==="rtl")switch(i8()){case"negative":I=-_;break;case"positive-descending":I=A-k-_;break}return I=Math.max(0,Math.min(I,A-k)),{isScrolling:!0,scrollDirection:P.scrollOffsetN.clientWidth?a8():0:P=N.scrollHeight>N.clientHeight?a8():0}this.scrollTo(i(this.props,E,T,A,this._instanceProps,P))},h.componentDidMount=function(){var E=this.props,T=E.direction,C=E.initialScrollOffset,k=E.layout;if(typeof C=="number"&&this._outerRef!=null){var _=this._outerRef;T==="horizontal"||k==="horizontal"?_.scrollLeft=C:_.scrollTop=C}this._callPropsCallbacks()},h.componentDidUpdate=function(){var E=this.props,T=E.direction,C=E.layout,k=this.state,_=k.scrollOffset,A=k.scrollUpdateWasRequested;if(A&&this._outerRef!=null){var P=this._outerRef;if(T==="horizontal"||C==="horizontal")if(T==="rtl")switch(i8()){case"negative":P.scrollLeft=-_;break;case"positive-ascending":P.scrollLeft=_;break;default:var N=P.clientWidth,I=P.scrollWidth;P.scrollLeft=I-N-_;break}else P.scrollLeft=_;else P.scrollTop=_}this._callPropsCallbacks()},h.componentWillUnmount=function(){this._resetIsScrollingTimeoutId!==null&&r8(this._resetIsScrollingTimeoutId)},h.render=function(){var E=this.props,T=E.children,C=E.className,k=E.direction,_=E.height,A=E.innerRef,P=E.innerElementType,N=E.innerTagName,I=E.itemCount,L=E.itemData,j=E.itemKey,z=j===void 0?S0e:j,Q=E.layout,le=E.outerElementType,re=E.outerTagName,ge=E.style,me=E.useIsScrolling,W=E.width,G=this.state.isScrolling,q=k==="horizontal"||Q==="horizontal",ce=q?this._onScrollHorizontal:this._onScrollVertical,H=this._getRangeToRender(),Y=H[0],ie=H[1],J=[];if(I>0)for(var ee=Y;ee<=ie;ee++)J.push(R.createElement(T,{data:L,key:z(ee,L),index:ee,isScrolling:me?G:void 0,style:this._getItemStyle(ee)}));var Z=r(this.props,this._instanceProps);return R.createElement(le||re||"div",{className:C,onScroll:ce,ref:this._outerRefSetter,style:vt({position:"relative",height:_,width:W,overflow:"auto",WebkitOverflowScrolling:"touch",willChange:"transform",direction:k},ge)},R.createElement(P||N||"div",{children:J,ref:A,style:{height:q?"100%":Z,pointerEvents:G?"none":void 0,width:q?Z:"100%"}}))},h._callPropsCallbacks=function(){if(typeof this.props.onItemsRendered=="function"){var E=this.props.itemCount;if(E>0){var T=this._getRangeToRender(),C=T[0],k=T[1],_=T[2],A=T[3];this._callOnItemsRendered(C,k,_,A)}}if(typeof this.props.onScroll=="function"){var P=this.state,N=P.scrollDirection,I=P.scrollOffset,L=P.scrollUpdateWasRequested;this._callOnScroll(N,I,L)}},h._getRangeToRender=function(){var E=this.props,T=E.itemCount,C=E.overscanCount,k=this.state,_=k.isScrolling,A=k.scrollDirection,P=k.scrollOffset;if(T===0)return[0,0,0,0];var N=o(this.props,P,this._instanceProps),I=l(this.props,N,P,this._instanceProps),L=!_||A==="backward"?Math.max(1,C):1,j=!_||A==="forward"?Math.max(1,C):1;return[Math.max(0,N-L),Math.max(0,Math.min(T-1,I+j)),N,I]},y})(R.PureComponent),t.defaultProps={direction:"ltr",itemData:void 0,layout:"vertical",overscanCount:2,useIsScrolling:!1},t}var T0e=function(t,n){t.children,t.direction,t.height,t.layout,t.innerTagName,t.outerTagName,t.width,n.instance},C0e=E0e({getItemOffset:function(t,n){var r=t.itemSize;return n*r},getItemSize:function(t,n){var r=t.itemSize;return r},getEstimatedTotalSize:function(t){var n=t.itemCount,r=t.itemSize;return r*n},getOffsetForIndexAndAlignment:function(t,n,r,a,i,o){var l=t.direction,u=t.height,d=t.itemCount,f=t.itemSize,g=t.layout,y=t.width,h=l==="horizontal"||g==="horizontal",v=h?y:u,E=Math.max(0,d*f-v),T=Math.min(E,n*f),C=Math.max(0,n*f-v+f+o);switch(r==="smart"&&(a>=C-v&&a<=T+v?r="auto":r="center"),r){case"start":return T;case"end":return C;case"center":{var k=Math.round(C+(T-C)/2);return kE+Math.floor(v/2)?E:k}case"auto":default:return a>=C&&a<=T?a:a{var k,_,A,P,N,I;At();const l=R.useRef();let[u,d]=R.useState([]);const[f,g]=R.useState(!0),y=Bs();t&&t({queryClient:y});const h=(L,j)=>{const z=r.debouncedFilters.startIndex||0,Q=[...u];l.current!==j&&(Q.length=0,l.current=j);for(let le=z;le<(r.debouncedFilters.itemsPerPage||0)+z;le++){const re=le-z;L[re]&&(Q[le]=L[re])}d(Q)};R.useEffect(()=>{var j,z,Q;const L=((z=(j=i.query.data)==null?void 0:j.data)==null?void 0:z.items)||[];h(L,(Q=i.query.data)==null?void 0:Q.jsonQuery)},[(_=(k=i.query.data)==null?void 0:k.data)==null?void 0:_.items]);const v=({index:L,style:j})=>{var Q,le;return u[L]?o?w.jsx(o,{content:u[L]},(Q=u[L])==null?void 0:Q.uniqueId):w.jsx(eZ,{style:{...j,top:j.top+10,height:j.height-10,width:j.width},uniqueIdHrefHandler:n,columns:e,content:u[L]},(le=u[L])==null?void 0:le.uniqueId):null},E=({scrollOffset:L})=>{L===0&&!f?g(!0):L>0&&f&&g(!1)},T=R.useCallback(()=>(i.query.refetch(),Promise.resolve(!0)),[]),C=((N=(P=(A=i.query)==null?void 0:A.data)==null?void 0:P.data)==null?void 0:N.totalItems)||0;return w.jsx(w.Fragment,{children:w.jsx(u0e,{pullDownContent:w.jsx(d0e,{label:""}),releaseContent:w.jsx(f0e,{}),refreshContent:w.jsx(c0e,{}),pullDownThreshold:200,onRefresh:T,triggerHeight:f?500:0,startInvisible:!0,children:u.length===0&&!((I=i.query)!=null&&I.isError)?w.jsx("div",{style:{height:"calc(100vh - 130px)"},children:w.jsx(h0e,{})}):w.jsxs("div",{style:{height:"calc(100vh - 130px)"},children:[w.jsx(Il,{query:i.query}),w.jsx(o0e,{isItemLoaded:L=>!!u[L],itemCount:C,loadMoreItems:async(L,j)=>{r.setFilter({startIndex:L,itemsPerPage:j-L})},children:({onItemsRendered:L,ref:j})=>w.jsx(e0e,{children:({height:z,width:Q})=>w.jsx(C0e,{height:z,itemCount:u.length,itemSize:o!=null&&o.getHeight?o.getHeight():e.length*24+10,width:Q,onScroll:E,onItemsRendered:L,ref:j,children:v})})})]})})})},x0e=({columns:e,deleteHook:t,uniqueIdHrefHandler:n,udf:r,q:a})=>{var d,f,g,y,h,v,E,T;const i=At(),o=Bs();t&&t({queryClient:o}),(f=(d=a.query.data)==null?void 0:d.data)!=null&&f.items;const l=((h=(y=(g=a.query)==null?void 0:g.data)==null?void 0:y.data)==null?void 0:h.items)||[],u=((T=(E=(v=a.query)==null?void 0:v.data)==null?void 0:E.data)==null?void 0:T.totalItems)||0;return w.jsxs(w.Fragment,{children:[u===0&&w.jsx("p",{children:i.table.noRecords}),l.map(C=>w.jsx(eZ,{style:{},uniqueIdHrefHandler:n,columns:e,content:C},C.uniqueId))]})},o8=matchMedia("(max-width: 600px)");function _0e(){const e=R.useRef(o8),[t,n]=R.useState(o8.matches?"card":"datatable");return R.useEffect(()=>{const r=e.current;function a(){r.matches?n("card"):n("datatable")}return r.addEventListener("change",a),()=>r.removeEventListener("change",a)},[]),{view:t}}const Uo=({children:e,columns:t,deleteHook:n,uniqueIdHrefHandler:r,withFilters:a,queryHook:i,onRecordsDeleted:o,selectable:l,id:u,RowDetail:d,withPreloads:f,queryFilters:g,deep:y,inlineInsertHook:h,bulkEditHook:v,urlMask:E,CardComponent:T})=>{var G,q,ce,H;At();const{view:C}=_0e(),k=Bs(),{query:_}=Bve({query:{uniqueId:i.UKEY}}),[A,P]=R.useState(t.map(Y=>({columnName:Y.name,width:Y.width})));R.useEffect(()=>{var Y,ie,J,ee;if((ie=(Y=_.data)==null?void 0:Y.data)!=null&&ie.sizes)P(JSON.parse((ee=(J=_.data)==null?void 0:J.data)==null?void 0:ee.sizes));else{const Z=localStorage.getItem(`table_${i.UKEY}`);Z&&P(JSON.parse(Z))}},[(q=(G=_.data)==null?void 0:G.data)==null?void 0:q.sizes]);const{submit:N}=Wve({queryClient:k}),I=n&&n({queryClient:k}),L=Uve({urlMask:"",submitDelete:I==null?void 0:I.submit,onRecordsDeleted:o?()=>o({queryClient:k}):void 0}),[j]=R.useState(t.map(Y=>({columnName:Y.name,width:Y.width}))),z=Y=>{P(Y);const ie=JSON.stringify(Y);N({uniqueId:i.UKEY,sizes:ie}),localStorage.setItem(`table_${i.UKEY}`,ie)};let Q=({value:Y})=>w.jsx("div",{style:{position:"relative"},children:w.jsx(Pl,{href:r&&r(Y),children:Y})}),le=Y=>w.jsx(Ive,{formatterComponent:Q,...Y});const re=[...g||[]],ge=R.useMemo(()=>Jbe(re),[re]),me=i({query:{deep:y===void 0?!0:y,...L.debouncedFilters,withPreloads:f},queryClient:k});me.jsonQuery=ge;const W=((H=(ce=me.query.data)==null?void 0:ce.data)==null?void 0:H.items)||[];return w.jsxs(w.Fragment,{children:[C==="map"&&w.jsx(x0e,{columns:t,deleteHook:n,uniqueIdHrefHandler:r,q:me,udf:L}),C==="card"&&w.jsx(k0e,{columns:t,CardComponent:T,jsonQuery:ge,deleteHook:n,uniqueIdHrefHandler:r,q:me,udf:L}),C==="datatable"&&w.jsxs(Xbe,{udf:L,selectable:l,bulkEditHook:v,RowDetail:d,uniqueIdHrefHandler:r,onColumnWidthsChange:z,columns:t,columnSizes:A,inlineInsertHook:h,rows:W,defaultColumnWidths:j,query:me.query,booleanColumns:["uniqueId"],withFilters:a,children:[w.jsx(le,{for:["uniqueId"]}),e]})]})},O0e=e=>[{name:"uniqueId",title:"uniqueId",width:200},{name:vi.Fields.name,title:e.capabilities.name,width:100},{name:vi.Fields.description,title:e.capabilities.description,width:100}];function R0e(e){const{execFnOverride:t,queryClient:n,query:r}=e||{},{options:a,execFn:i}=R.useContext(rt),o=t?t(a):i?i(a):St(a);let u=`${"/capability".substr(1)}?${new URLSearchParams(Gt(r)).toString()}`;const f=un(h=>o("DELETE",u,h)),g=(h,v)=>h;return{mutation:f,submit:(h,v)=>new Promise((E,T)=>{f.mutate(h,{onSuccess(C){n==null||n.setQueryData("*fireback.CapabilityEntity",k=>g(k)),n==null||n.invalidateQueries("*fireback.CapabilityEntity"),E(C)},onError(C){v==null||v.setErrors(Pn(C)),T(C)}})}),fnUpdater:g}}function tZ({queryOptions:e,query:t,queryClient:n,execFnOverride:r,unauthorized:a,optionFn:i}){var k,_,A;const{options:o,execFn:l}=R.useContext(rt),u=i?i(o):o,d=r?r(u):l?l(u):St(u);let g=`${"/capabilities".substr(1)}?${qa.stringify(t)}`;const y=()=>d("GET",g),h=(k=u==null?void 0:u.headers)==null?void 0:k.authorization,v=h!="undefined"&&h!=null&&h!=null&&h!="null"&&!!h;let E=!0;!v&&!a&&(E=!1);const T=jn(["*fireback.CapabilityEntity",u,t],y,{cacheTime:1e3,retry:!1,keepPreviousData:!0,enabled:E,...e||{}}),C=((A=(_=T.data)==null?void 0:_.data)==null?void 0:A.items)||[];return{query:T,items:C,keyExtractor:P=>P.uniqueId}}tZ.UKEY="*fireback.CapabilityEntity";const P0e=()=>{const e=Kt($E);return w.jsx(w.Fragment,{children:w.jsx(Uo,{columns:O0e(e),queryHook:tZ,uniqueIdHrefHandler:t=>vi.Navigation.single(t),deleteHook:R0e})})},A0e=()=>{const e=Kt($E);return w.jsx(jo,{pageTitle:e.capabilities.archiveTitle,newEntityHandler:({locale:t,router:n})=>{n.push(vi.Navigation.create())},children:w.jsx(P0e,{})})};function $r(e){const t=R.useRef(),n=Bs();R.useEffect(()=>{var d;e!=null&&e.data&&((d=t.current)==null||d.setValues(e.data))},[e==null?void 0:e.data]);const r=xr(),a=r.query.uniqueId,i=r.query.linkerId,o=!!a,{locale:l}=sr(),u=At();return{router:r,t:u,isEditing:o,locale:l,queryClient:n,formik:t,uniqueId:a,linkerId:i}}const Bo=({data:e,Form:t,getSingleHook:n,postHook:r,onCancel:a,onFinishUriResolver:i,disableOnGetFailed:o,patchHook:l,onCreateTitle:u,onEditTitle:d,setInnerRef:f,beforeSetValues:g,forceEdit:y,onlyOnRoot:h,customClass:v,beforeSubmit:E,onSuccessPatchOrPost:T})=>{var re,ge,me;const[C,k]=R.useState(),{router:_,isEditing:A,locale:P,formik:N,t:I}=$r({data:e}),L=R.useRef({});jQ(a,Ir.CommonBack);const{selectedUrw:j}=R.useContext(rt);gh((A||y?d:u)||"");const{query:z}=n;R.useEffect(()=>{var W,G,q;(W=z.data)!=null&&W.data&&((G=N.current)==null||G.setValues(g?g({...z.data.data}):{...z.data.data}),k((q=z.data)==null?void 0:q.data))},[z.data]),R.useEffect(()=>{var W;(W=N.current)==null||W.setSubmitting((r==null?void 0:r.mutation.isLoading)||(l==null?void 0:l.mutation.isLoading))},[r==null?void 0:r.isLoading,l==null?void 0:l.isLoading]);const Q=(W,G)=>{let q=L.current;q.uniqueId=W.uniqueId,E&&(q=E(q)),(A||y?l==null?void 0:l.submit(q,G):r==null?void 0:r.submit(q,G)).then(H=>{var Y;(Y=H.data)!=null&&Y.uniqueId&&(T?T(H):i?_.goBackOrDefault(i(H,P)):Lhe("Done",{type:"success"}))}).catch(H=>void 0)},le=((re=n==null?void 0:n.query)==null?void 0:re.isLoading)||!1||((ge=r==null?void 0:r.query)==null?void 0:ge.isLoading)||!1||((me=l==null?void 0:l.query)==null?void 0:me.isLoading)||!1;return Che({onSave(){var W;(W=N.current)==null||W.submitForm()}}),h&&j.workspaceId!=="root"?w.jsx("div",{children:I.onlyOnRoot}):w.jsx(ls,{innerRef:W=>{W&&(N.current=W,f&&f(W))},initialValues:{},onSubmit:Q,children:W=>{var G,q,ce,H;return w.jsx("form",{onSubmit:Y=>{Y.preventDefault(),W.submitForm()},className:v??"headless-form-entity-manager",children:w.jsxs("fieldset",{disabled:le,children:[w.jsx("div",{style:{marginBottom:"15px"},children:w.jsx(Il,{query:(G=r==null?void 0:r.mutation)!=null&&G.isError?r.mutation:(q=l==null?void 0:l.mutation)!=null&&q.isError?l.mutation:(ce=n==null?void 0:n.query)!=null&&ce.isError?n.query:null})}),o===!0&&((H=n==null?void 0:n.query)!=null&&H.isError)?null:w.jsx(t,{isEditing:A,initialData:C,form:{...W,setValues:(Y,ie)=>{for(const J in Y)Ta.set(L.current,J,Y[J]);return W.setValues(Y)},setFieldValue:(Y,ie,J)=>(Ta.set(L.current,Y,ie),W.setFieldValue(Y,ie,J))}}),w.jsx("button",{type:"submit",className:"d-none"})]})})}})},N0e={version:4,country_calling_codes:{1:["US","AG","AI","AS","BB","BM","BS","CA","DM","DO","GD","GU","JM","KN","KY","LC","MP","MS","PR","SX","TC","TT","VC","VG","VI"],7:["RU","KZ"],20:["EG"],27:["ZA"],30:["GR"],31:["NL"],32:["BE"],33:["FR"],34:["ES"],36:["HU"],39:["IT","VA"],40:["RO"],41:["CH"],43:["AT"],44:["GB","GG","IM","JE"],45:["DK"],46:["SE"],47:["NO","SJ"],48:["PL"],49:["DE"],51:["PE"],52:["MX"],53:["CU"],54:["AR"],55:["BR"],56:["CL"],57:["CO"],58:["VE"],60:["MY"],61:["AU","CC","CX"],62:["ID"],63:["PH"],64:["NZ"],65:["SG"],66:["TH"],81:["JP"],82:["KR"],84:["VN"],86:["CN"],90:["TR"],91:["IN"],92:["PK"],93:["AF"],94:["LK"],95:["MM"],98:["IR"],211:["SS"],212:["MA","EH"],213:["DZ"],216:["TN"],218:["LY"],220:["GM"],221:["SN"],222:["MR"],223:["ML"],224:["GN"],225:["CI"],226:["BF"],227:["NE"],228:["TG"],229:["BJ"],230:["MU"],231:["LR"],232:["SL"],233:["GH"],234:["NG"],235:["TD"],236:["CF"],237:["CM"],238:["CV"],239:["ST"],240:["GQ"],241:["GA"],242:["CG"],243:["CD"],244:["AO"],245:["GW"],246:["IO"],247:["AC"],248:["SC"],249:["SD"],250:["RW"],251:["ET"],252:["SO"],253:["DJ"],254:["KE"],255:["TZ"],256:["UG"],257:["BI"],258:["MZ"],260:["ZM"],261:["MG"],262:["RE","YT"],263:["ZW"],264:["NA"],265:["MW"],266:["LS"],267:["BW"],268:["SZ"],269:["KM"],290:["SH","TA"],291:["ER"],297:["AW"],298:["FO"],299:["GL"],350:["GI"],351:["PT"],352:["LU"],353:["IE"],354:["IS"],355:["AL"],356:["MT"],357:["CY"],358:["FI","AX"],359:["BG"],370:["LT"],371:["LV"],372:["EE"],373:["MD"],374:["AM"],375:["BY"],376:["AD"],377:["MC"],378:["SM"],380:["UA"],381:["RS"],382:["ME"],383:["XK"],385:["HR"],386:["SI"],387:["BA"],389:["MK"],420:["CZ"],421:["SK"],423:["LI"],500:["FK"],501:["BZ"],502:["GT"],503:["SV"],504:["HN"],505:["NI"],506:["CR"],507:["PA"],508:["PM"],509:["HT"],590:["GP","BL","MF"],591:["BO"],592:["GY"],593:["EC"],594:["GF"],595:["PY"],596:["MQ"],597:["SR"],598:["UY"],599:["CW","BQ"],670:["TL"],672:["NF"],673:["BN"],674:["NR"],675:["PG"],676:["TO"],677:["SB"],678:["VU"],679:["FJ"],680:["PW"],681:["WF"],682:["CK"],683:["NU"],685:["WS"],686:["KI"],687:["NC"],688:["TV"],689:["PF"],690:["TK"],691:["FM"],692:["MH"],850:["KP"],852:["HK"],853:["MO"],855:["KH"],856:["LA"],880:["BD"],886:["TW"],960:["MV"],961:["LB"],962:["JO"],963:["SY"],964:["IQ"],965:["KW"],966:["SA"],967:["YE"],968:["OM"],970:["PS"],971:["AE"],972:["IL"],973:["BH"],974:["QA"],975:["BT"],976:["MN"],977:["NP"],992:["TJ"],993:["TM"],994:["AZ"],995:["GE"],996:["KG"],998:["UZ"]},countries:{AC:["247","00","(?:[01589]\\d|[46])\\d{4}",[5,6]],AD:["376","00","(?:1|6\\d)\\d{7}|[135-9]\\d{5}",[6,8,9],[["(\\d{3})(\\d{3})","$1 $2",["[135-9]"]],["(\\d{4})(\\d{4})","$1 $2",["1"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["6"]]]],AE:["971","00","(?:[4-7]\\d|9[0-689])\\d{7}|800\\d{2,9}|[2-4679]\\d{7}",[5,6,7,8,9,10,11,12],[["(\\d{3})(\\d{2,9})","$1 $2",["60|8"]],["(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["[236]|[479][2-8]"],"0$1"],["(\\d{3})(\\d)(\\d{5})","$1 $2 $3",["[479]"]],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["5"],"0$1"]],"0"],AF:["93","00","[2-7]\\d{8}",[9],[["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[2-7]"],"0$1"]],"0"],AG:["1","011","(?:268|[58]\\d\\d|900)\\d{7}",[10],0,"1",0,"([457]\\d{6})$|1","268$1",0,"268"],AI:["1","011","(?:264|[58]\\d\\d|900)\\d{7}",[10],0,"1",0,"([2457]\\d{6})$|1","264$1",0,"264"],AL:["355","00","(?:700\\d\\d|900)\\d{3}|8\\d{5,7}|(?:[2-5]|6\\d)\\d{7}",[6,7,8,9],[["(\\d{3})(\\d{3,4})","$1 $2",["80|9"],"0$1"],["(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["4[2-6]"],"0$1"],["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["[2358][2-5]|4"],"0$1"],["(\\d{3})(\\d{5})","$1 $2",["[23578]"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["6"],"0$1"]],"0"],AM:["374","00","(?:[1-489]\\d|55|60|77)\\d{6}",[8],[["(\\d{3})(\\d{2})(\\d{3})","$1 $2 $3",["[89]0"],"0 $1"],["(\\d{3})(\\d{5})","$1 $2",["2|3[12]"],"(0$1)"],["(\\d{2})(\\d{6})","$1 $2",["1|47"],"(0$1)"],["(\\d{2})(\\d{6})","$1 $2",["[3-9]"],"0$1"]],"0"],AO:["244","00","[29]\\d{8}",[9],[["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[29]"]]]],AR:["54","00","(?:11|[89]\\d\\d)\\d{8}|[2368]\\d{9}",[10,11],[["(\\d{4})(\\d{2})(\\d{4})","$1 $2-$3",["2(?:2[024-9]|3[0-59]|47|6[245]|9[02-8])|3(?:3[28]|4[03-9]|5[2-46-8]|7[1-578]|8[2-9])","2(?:[23]02|6(?:[25]|4[6-8])|9(?:[02356]|4[02568]|72|8[23]))|3(?:3[28]|4(?:[04679]|3[5-8]|5[4-68]|8[2379])|5(?:[2467]|3[237]|8[2-5])|7[1-578]|8(?:[2469]|3[2578]|5[4-8]|7[36-8]|8[5-8]))|2(?:2[24-9]|3[1-59]|47)","2(?:[23]02|6(?:[25]|4(?:64|[78]))|9(?:[02356]|4(?:[0268]|5[2-6])|72|8[23]))|3(?:3[28]|4(?:[04679]|3[78]|5(?:4[46]|8)|8[2379])|5(?:[2467]|3[237]|8[23])|7[1-578]|8(?:[2469]|3[278]|5[56][46]|86[3-6]))|2(?:2[24-9]|3[1-59]|47)|38(?:[58][78]|7[378])|3(?:4[35][56]|58[45]|8(?:[38]5|54|76))[4-6]","2(?:[23]02|6(?:[25]|4(?:64|[78]))|9(?:[02356]|4(?:[0268]|5[2-6])|72|8[23]))|3(?:3[28]|4(?:[04679]|3(?:5(?:4[0-25689]|[56])|[78])|58|8[2379])|5(?:[2467]|3[237]|8(?:[23]|4(?:[45]|60)|5(?:4[0-39]|5|64)))|7[1-578]|8(?:[2469]|3[278]|54(?:4|5[13-7]|6[89])|86[3-6]))|2(?:2[24-9]|3[1-59]|47)|38(?:[58][78]|7[378])|3(?:454|85[56])[46]|3(?:4(?:36|5[56])|8(?:[38]5|76))[4-6]"],"0$1",1],["(\\d{2})(\\d{4})(\\d{4})","$1 $2-$3",["1"],"0$1",1],["(\\d{3})(\\d{3})(\\d{4})","$1-$2-$3",["[68]"],"0$1"],["(\\d{3})(\\d{3})(\\d{4})","$1 $2-$3",["[23]"],"0$1",1],["(\\d)(\\d{4})(\\d{2})(\\d{4})","$2 15-$3-$4",["9(?:2[2-469]|3[3-578])","9(?:2(?:2[024-9]|3[0-59]|47|6[245]|9[02-8])|3(?:3[28]|4[03-9]|5[2-46-8]|7[1-578]|8[2-9]))","9(?:2(?:[23]02|6(?:[25]|4[6-8])|9(?:[02356]|4[02568]|72|8[23]))|3(?:3[28]|4(?:[04679]|3[5-8]|5[4-68]|8[2379])|5(?:[2467]|3[237]|8[2-5])|7[1-578]|8(?:[2469]|3[2578]|5[4-8]|7[36-8]|8[5-8])))|92(?:2[24-9]|3[1-59]|47)","9(?:2(?:[23]02|6(?:[25]|4(?:64|[78]))|9(?:[02356]|4(?:[0268]|5[2-6])|72|8[23]))|3(?:3[28]|4(?:[04679]|3[78]|5(?:4[46]|8)|8[2379])|5(?:[2467]|3[237]|8[23])|7[1-578]|8(?:[2469]|3[278]|5(?:[56][46]|[78])|7[378]|8(?:6[3-6]|[78]))))|92(?:2[24-9]|3[1-59]|47)|93(?:4[35][56]|58[45]|8(?:[38]5|54|76))[4-6]","9(?:2(?:[23]02|6(?:[25]|4(?:64|[78]))|9(?:[02356]|4(?:[0268]|5[2-6])|72|8[23]))|3(?:3[28]|4(?:[04679]|3(?:5(?:4[0-25689]|[56])|[78])|5(?:4[46]|8)|8[2379])|5(?:[2467]|3[237]|8(?:[23]|4(?:[45]|60)|5(?:4[0-39]|5|64)))|7[1-578]|8(?:[2469]|3[278]|5(?:4(?:4|5[13-7]|6[89])|[56][46]|[78])|7[378]|8(?:6[3-6]|[78]))))|92(?:2[24-9]|3[1-59]|47)|93(?:4(?:36|5[56])|8(?:[38]5|76))[4-6]"],"0$1",0,"$1 $2 $3-$4"],["(\\d)(\\d{2})(\\d{4})(\\d{4})","$2 15-$3-$4",["91"],"0$1",0,"$1 $2 $3-$4"],["(\\d{3})(\\d{3})(\\d{5})","$1-$2-$3",["8"],"0$1"],["(\\d)(\\d{3})(\\d{3})(\\d{4})","$2 15-$3-$4",["9"],"0$1",0,"$1 $2 $3-$4"]],"0",0,"0?(?:(11|2(?:2(?:02?|[13]|2[13-79]|4[1-6]|5[2457]|6[124-8]|7[1-4]|8[13-6]|9[1267])|3(?:02?|1[467]|2[03-6]|3[13-8]|[49][2-6]|5[2-8]|[67])|4(?:7[3-578]|9)|6(?:[0136]|2[24-6]|4[6-8]?|5[15-8])|80|9(?:0[1-3]|[19]|2\\d|3[1-6]|4[02568]?|5[2-4]|6[2-46]|72?|8[23]?))|3(?:3(?:2[79]|6|8[2578])|4(?:0[0-24-9]|[12]|3[5-8]?|4[24-7]|5[4-68]?|6[02-9]|7[126]|8[2379]?|9[1-36-8])|5(?:1|2[1245]|3[237]?|4[1-46-9]|6[2-4]|7[1-6]|8[2-5]?)|6[24]|7(?:[069]|1[1568]|2[15]|3[145]|4[13]|5[14-8]|7[2-57]|8[126])|8(?:[01]|2[15-7]|3[2578]?|4[13-6]|5[4-8]?|6[1-357-9]|7[36-8]?|8[5-8]?|9[124])))15)?","9$1"],AS:["1","011","(?:[58]\\d\\d|684|900)\\d{7}",[10],0,"1",0,"([267]\\d{6})$|1","684$1",0,"684"],AT:["43","00","1\\d{3,12}|2\\d{6,12}|43(?:(?:0\\d|5[02-9])\\d{3,9}|2\\d{4,5}|[3467]\\d{4}|8\\d{4,6}|9\\d{4,7})|5\\d{4,12}|8\\d{7,12}|9\\d{8,12}|(?:[367]\\d|4[0-24-9])\\d{4,11}",[4,5,6,7,8,9,10,11,12,13],[["(\\d)(\\d{3,12})","$1 $2",["1(?:11|[2-9])"],"0$1"],["(\\d{3})(\\d{2})","$1 $2",["517"],"0$1"],["(\\d{2})(\\d{3,5})","$1 $2",["5[079]"],"0$1"],["(\\d{3})(\\d{3,10})","$1 $2",["(?:31|4)6|51|6(?:5[0-3579]|[6-9])|7(?:20|32|8)|[89]"],"0$1"],["(\\d{4})(\\d{3,9})","$1 $2",["[2-467]|5[2-6]"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["5"],"0$1"],["(\\d{2})(\\d{4})(\\d{4,7})","$1 $2 $3",["5"],"0$1"]],"0"],AU:["61","001[14-689]|14(?:1[14]|34|4[17]|[56]6|7[47]|88)0011","1(?:[0-79]\\d{7}(?:\\d(?:\\d{2})?)?|8[0-24-9]\\d{7})|[2-478]\\d{8}|1\\d{4,7}",[5,6,7,8,9,10,12],[["(\\d{2})(\\d{3,4})","$1 $2",["16"],"0$1"],["(\\d{2})(\\d{3})(\\d{2,4})","$1 $2 $3",["16"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["14|4"],"0$1"],["(\\d)(\\d{4})(\\d{4})","$1 $2 $3",["[2378]"],"(0$1)"],["(\\d{4})(\\d{3})(\\d{3})","$1 $2 $3",["1(?:30|[89])"]]],"0",0,"(183[12])|0",0,0,0,[["(?:(?:(?:2(?:[0-26-9]\\d|3[0-8]|4[02-9]|5[0135-9])|7(?:[013-57-9]\\d|2[0-8]))\\d|3(?:(?:[0-3589]\\d|6[1-9]|7[0-35-9])\\d|4(?:[0-578]\\d|90)))\\d\\d|8(?:51(?:0(?:0[03-9]|[12479]\\d|3[2-9]|5[0-8]|6[1-9]|8[0-7])|1(?:[0235689]\\d|1[0-69]|4[0-589]|7[0-47-9])|2(?:0[0-79]|[18][13579]|2[14-9]|3[0-46-9]|[4-6]\\d|7[89]|9[0-4])|3\\d\\d)|(?:6[0-8]|[78]\\d)\\d{3}|9(?:[02-9]\\d{3}|1(?:(?:[0-58]\\d|6[0135-9])\\d|7(?:0[0-24-9]|[1-9]\\d)|9(?:[0-46-9]\\d|5[0-79])))))\\d{3}",[9]],["4(?:79[01]|83[0-389]|94[0-4])\\d{5}|4(?:[0-36]\\d|4[047-9]|5[0-25-9]|7[02-8]|8[0-24-9]|9[0-37-9])\\d{6}",[9]],["180(?:0\\d{3}|2)\\d{3}",[7,10]],["190[0-26]\\d{6}",[10]],0,0,0,["163\\d{2,6}",[5,6,7,8,9]],["14(?:5(?:1[0458]|[23][458])|71\\d)\\d{4}",[9]],["13(?:00\\d{6}(?:\\d{2})?|45[0-4]\\d{3})|13\\d{4}",[6,8,10,12]]],"0011"],AW:["297","00","(?:[25-79]\\d\\d|800)\\d{4}",[7],[["(\\d{3})(\\d{4})","$1 $2",["[25-9]"]]]],AX:["358","00|99(?:[01469]|5(?:[14]1|3[23]|5[59]|77|88|9[09]))","2\\d{4,9}|35\\d{4,5}|(?:60\\d\\d|800)\\d{4,6}|7\\d{5,11}|(?:[14]\\d|3[0-46-9]|50)\\d{4,8}",[5,6,7,8,9,10,11,12],0,"0",0,0,0,0,"18",0,"00"],AZ:["994","00","365\\d{6}|(?:[124579]\\d|60|88)\\d{7}",[9],[["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["90"],"0$1"],["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["1[28]|2|365|46","1[28]|2|365[45]|46","1[28]|2|365(?:4|5[02])|46"],"(0$1)"],["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[13-9]"],"0$1"]],"0"],BA:["387","00","6\\d{8}|(?:[35689]\\d|49|70)\\d{6}",[8,9],[["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["6[1-3]|[7-9]"],"0$1"],["(\\d{2})(\\d{3})(\\d{3})","$1 $2-$3",["[3-5]|6[56]"],"0$1"],["(\\d{2})(\\d{2})(\\d{2})(\\d{3})","$1 $2 $3 $4",["6"],"0$1"]],"0"],BB:["1","011","(?:246|[58]\\d\\d|900)\\d{7}",[10],0,"1",0,"([2-9]\\d{6})$|1","246$1",0,"246"],BD:["880","00","[1-469]\\d{9}|8[0-79]\\d{7,8}|[2-79]\\d{8}|[2-9]\\d{7}|[3-9]\\d{6}|[57-9]\\d{5}",[6,7,8,9,10],[["(\\d{2})(\\d{4,6})","$1-$2",["31[5-8]|[459]1"],"0$1"],["(\\d{3})(\\d{3,7})","$1-$2",["3(?:[67]|8[013-9])|4(?:6[168]|7|[89][18])|5(?:6[128]|9)|6(?:[15]|28|4[14])|7[2-589]|8(?:0[014-9]|[12])|9[358]|(?:3[2-5]|4[235]|5[2-578]|6[0389]|76|8[3-7]|9[24])1|(?:44|66)[01346-9]"],"0$1"],["(\\d{4})(\\d{3,6})","$1-$2",["[13-9]|2[23]"],"0$1"],["(\\d)(\\d{7,8})","$1-$2",["2"],"0$1"]],"0"],BE:["32","00","4\\d{8}|[1-9]\\d{7}",[8,9],[["(\\d{3})(\\d{2})(\\d{3})","$1 $2 $3",["(?:80|9)0"],"0$1"],["(\\d)(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[239]|4[23]"],"0$1"],["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[15-8]"],"0$1"],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["4"],"0$1"]],"0"],BF:["226","00","[025-7]\\d{7}",[8],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[025-7]"]]]],BG:["359","00","00800\\d{7}|[2-7]\\d{6,7}|[89]\\d{6,8}|2\\d{5}",[6,7,8,9,12],[["(\\d)(\\d)(\\d{2})(\\d{2})","$1 $2 $3 $4",["2"],"0$1"],["(\\d{3})(\\d{4})","$1 $2",["43[1-6]|70[1-9]"],"0$1"],["(\\d)(\\d{3})(\\d{3,4})","$1 $2 $3",["2"],"0$1"],["(\\d{2})(\\d{3})(\\d{2,3})","$1 $2 $3",["[356]|4[124-7]|7[1-9]|8[1-6]|9[1-7]"],"0$1"],["(\\d{3})(\\d{2})(\\d{3})","$1 $2 $3",["(?:70|8)0"],"0$1"],["(\\d{3})(\\d{3})(\\d{2})","$1 $2 $3",["43[1-7]|7"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["[48]|9[08]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["9"],"0$1"]],"0"],BH:["973","00","[136-9]\\d{7}",[8],[["(\\d{4})(\\d{4})","$1 $2",["[13679]|8[02-4679]"]]]],BI:["257","00","(?:[267]\\d|31)\\d{6}",[8],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[2367]"]]]],BJ:["229","00","(?:01\\d|[24-689])\\d{7}",[8,10],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[24-689]"]],["(\\d{2})(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4 $5",["0"]]]],BL:["590","00","(?:590\\d|7090)\\d{5}|(?:69|80|9\\d)\\d{7}",[9],0,"0",0,0,0,0,0,[["590(?:2[7-9]|3[3-7]|5[12]|87)\\d{4}"],["(?:69(?:0\\d\\d|1(?:2[2-9]|3[0-5])|4(?:0[89]|1[2-6]|9\\d)|6(?:1[016-9]|5[0-4]|[67]\\d))|7090[0-4])\\d{4}"],["80[0-5]\\d{6}"],0,0,0,0,0,["9(?:(?:39[5-7]|76[018])\\d|475[0-6])\\d{4}"]]],BM:["1","011","(?:441|[58]\\d\\d|900)\\d{7}",[10],0,"1",0,"([2-9]\\d{6})$|1","441$1",0,"441"],BN:["673","00","[2-578]\\d{6}",[7],[["(\\d{3})(\\d{4})","$1 $2",["[2-578]"]]]],BO:["591","00(?:1\\d)?","8001\\d{5}|(?:[2-467]\\d|50)\\d{6}",[8,9],[["(\\d)(\\d{7})","$1 $2",["[235]|4[46]"]],["(\\d{8})","$1",["[67]"]],["(\\d{3})(\\d{2})(\\d{4})","$1 $2 $3",["8"]]],"0",0,"0(1\\d)?"],BQ:["599","00","(?:[34]1|7\\d)\\d{5}",[7],0,0,0,0,0,0,"[347]"],BR:["55","00(?:1[245]|2[1-35]|31|4[13]|[56]5|99)","(?:[1-46-9]\\d\\d|5(?:[0-46-9]\\d|5[0-46-9]))\\d{8}|[1-9]\\d{9}|[3589]\\d{8}|[34]\\d{7}",[8,9,10,11],[["(\\d{4})(\\d{4})","$1-$2",["300|4(?:0[02]|37)","4(?:02|37)0|[34]00"]],["(\\d{3})(\\d{2,3})(\\d{4})","$1 $2 $3",["(?:[358]|90)0"],"0$1"],["(\\d{2})(\\d{4})(\\d{4})","$1 $2-$3",["(?:[14689][1-9]|2[12478]|3[1-578]|5[13-5]|7[13-579])[2-57]"],"($1)"],["(\\d{2})(\\d{5})(\\d{4})","$1 $2-$3",["[16][1-9]|[2-57-9]"],"($1)"]],"0",0,"(?:0|90)(?:(1[245]|2[1-35]|31|4[13]|[56]5|99)(\\d{10,11}))?","$2"],BS:["1","011","(?:242|[58]\\d\\d|900)\\d{7}",[10],0,"1",0,"([3-8]\\d{6})$|1","242$1",0,"242"],BT:["975","00","[17]\\d{7}|[2-8]\\d{6}",[7,8],[["(\\d)(\\d{3})(\\d{3})","$1 $2 $3",["[2-68]|7[246]"]],["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["1[67]|7"]]]],BW:["267","00","(?:0800|(?:[37]|800)\\d)\\d{6}|(?:[2-6]\\d|90)\\d{5}",[7,8,10],[["(\\d{2})(\\d{5})","$1 $2",["90"]],["(\\d{3})(\\d{4})","$1 $2",["[24-6]|3[15-9]"]],["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["[37]"]],["(\\d{4})(\\d{3})(\\d{3})","$1 $2 $3",["0"]],["(\\d{3})(\\d{4})(\\d{3})","$1 $2 $3",["8"]]]],BY:["375","810","(?:[12]\\d|33|44|902)\\d{7}|8(?:0[0-79]\\d{5,7}|[1-7]\\d{9})|8(?:1[0-489]|[5-79]\\d)\\d{7}|8[1-79]\\d{6,7}|8[0-79]\\d{5}|8\\d{5}",[6,7,8,9,10,11],[["(\\d{3})(\\d{3})","$1 $2",["800"],"8 $1"],["(\\d{3})(\\d{2})(\\d{2,4})","$1 $2 $3",["800"],"8 $1"],["(\\d{4})(\\d{2})(\\d{3})","$1 $2-$3",["1(?:5[169]|6[3-5]|7[179])|2(?:1[35]|2[34]|3[3-5])","1(?:5[169]|6(?:3[1-3]|4|5[125])|7(?:1[3-9]|7[0-24-6]|9[2-7]))|2(?:1[35]|2[34]|3[3-5])"],"8 0$1"],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2-$3-$4",["1(?:[56]|7[467])|2[1-3]"],"8 0$1"],["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2-$3-$4",["[1-4]"],"8 0$1"],["(\\d{3})(\\d{3,4})(\\d{4})","$1 $2 $3",["[89]"],"8 $1"]],"8",0,"0|80?",0,0,0,0,"8~10"],BZ:["501","00","(?:0800\\d|[2-8])\\d{6}",[7,11],[["(\\d{3})(\\d{4})","$1-$2",["[2-8]"]],["(\\d)(\\d{3})(\\d{4})(\\d{3})","$1-$2-$3-$4",["0"]]]],CA:["1","011","[2-9]\\d{9}|3\\d{6}",[7,10],0,"1",0,0,0,0,0,[["(?:2(?:04|[23]6|[48]9|50|63)|3(?:06|43|54|6[578]|82)|4(?:03|1[68]|[26]8|3[178]|50|74)|5(?:06|1[49]|48|79|8[147])|6(?:04|[18]3|39|47|72)|7(?:0[59]|42|53|78|8[02])|8(?:[06]7|19|25|7[39])|9(?:0[25]|42))[2-9]\\d{6}",[10]],["",[10]],["8(?:00|33|44|55|66|77|88)[2-9]\\d{6}",[10]],["900[2-9]\\d{6}",[10]],["52(?:3(?:[2-46-9][02-9]\\d|5(?:[02-46-9]\\d|5[0-46-9]))|4(?:[2-478][02-9]\\d|5(?:[034]\\d|2[024-9]|5[0-46-9])|6(?:0[1-9]|[2-9]\\d)|9(?:[05-9]\\d|2[0-5]|49)))\\d{4}|52[34][2-9]1[02-9]\\d{4}|(?:5(?:2[125-9]|33|44|66|77|88)|6(?:22|33))[2-9]\\d{6}",[10]],0,["310\\d{4}",[7]],0,["600[2-9]\\d{6}",[10]]]],CC:["61","001[14-689]|14(?:1[14]|34|4[17]|[56]6|7[47]|88)0011","1(?:[0-79]\\d{8}(?:\\d{2})?|8[0-24-9]\\d{7})|[148]\\d{8}|1\\d{5,7}",[6,7,8,9,10,12],0,"0",0,"([59]\\d{7})$|0","8$1",0,0,[["8(?:51(?:0(?:02|31|60|89)|1(?:18|76)|223)|91(?:0(?:1[0-2]|29)|1(?:[28]2|50|79)|2(?:10|64)|3(?:[06]8|22)|4[29]8|62\\d|70[23]|959))\\d{3}",[9]],["4(?:79[01]|83[0-389]|94[0-4])\\d{5}|4(?:[0-36]\\d|4[047-9]|5[0-25-9]|7[02-8]|8[0-24-9]|9[0-37-9])\\d{6}",[9]],["180(?:0\\d{3}|2)\\d{3}",[7,10]],["190[0-26]\\d{6}",[10]],0,0,0,0,["14(?:5(?:1[0458]|[23][458])|71\\d)\\d{4}",[9]],["13(?:00\\d{6}(?:\\d{2})?|45[0-4]\\d{3})|13\\d{4}",[6,8,10,12]]],"0011"],CD:["243","00","(?:(?:[189]|5\\d)\\d|2)\\d{7}|[1-68]\\d{6}",[7,8,9,10],[["(\\d{2})(\\d{2})(\\d{3})","$1 $2 $3",["88"],"0$1"],["(\\d{2})(\\d{5})","$1 $2",["[1-6]"],"0$1"],["(\\d{2})(\\d{2})(\\d{4})","$1 $2 $3",["2"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["1"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[89]"],"0$1"],["(\\d{2})(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3 $4",["5"],"0$1"]],"0"],CF:["236","00","(?:[27]\\d{3}|8776)\\d{4}",[8],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[278]"]]]],CG:["242","00","222\\d{6}|(?:0\\d|80)\\d{7}",[9],[["(\\d)(\\d{4})(\\d{4})","$1 $2 $3",["8"]],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[02]"]]]],CH:["41","00","8\\d{11}|[2-9]\\d{8}",[9,12],[["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["8[047]|90"],"0$1"],["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[2-79]|81"],"0$1"],["(\\d{3})(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4 $5",["8"],"0$1"]],"0"],CI:["225","00","[02]\\d{9}",[10],[["(\\d{2})(\\d{2})(\\d)(\\d{5})","$1 $2 $3 $4",["2"]],["(\\d{2})(\\d{2})(\\d{2})(\\d{4})","$1 $2 $3 $4",["0"]]]],CK:["682","00","[2-578]\\d{4}",[5],[["(\\d{2})(\\d{3})","$1 $2",["[2-578]"]]]],CL:["56","(?:0|1(?:1[0-69]|2[02-5]|5[13-58]|69|7[0167]|8[018]))0","12300\\d{6}|6\\d{9,10}|[2-9]\\d{8}",[9,10,11],[["(\\d{5})(\\d{4})","$1 $2",["219","2196"],"($1)"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["44"]],["(\\d)(\\d{4})(\\d{4})","$1 $2 $3",["2[1-36]"],"($1)"],["(\\d)(\\d{4})(\\d{4})","$1 $2 $3",["9[2-9]"]],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["3[2-5]|[47]|5[1-3578]|6[13-57]|8(?:0[1-9]|[1-9])"],"($1)"],["(\\d{3})(\\d{3})(\\d{3,4})","$1 $2 $3",["60|8"]],["(\\d{4})(\\d{3})(\\d{4})","$1 $2 $3",["1"]],["(\\d{3})(\\d{3})(\\d{2})(\\d{3})","$1 $2 $3 $4",["60"]]]],CM:["237","00","[26]\\d{8}|88\\d{6,7}",[8,9],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["88"]],["(\\d)(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4 $5",["[26]|88"]]]],CN:["86","00|1(?:[12]\\d|79)\\d\\d00","(?:(?:1[03-689]|2\\d)\\d\\d|6)\\d{8}|1\\d{10}|[126]\\d{6}(?:\\d(?:\\d{2})?)?|86\\d{5,6}|(?:[3-579]\\d|8[0-57-9])\\d{5,9}",[7,8,9,10,11,12],[["(\\d{2})(\\d{5,6})","$1 $2",["(?:10|2[0-57-9])[19]|3(?:[157]|35|49|9[1-68])|4(?:1[124-9]|2[179]|6[47-9]|7|8[23])|5(?:[1357]|2[37]|4[36]|6[1-46]|80)|6(?:3[1-5]|6[0238]|9[12])|7(?:01|[1579]|2[248]|3[014-9]|4[3-6]|6[023689])|8(?:07|1[236-8]|2[5-7]|[37]|8[36-8]|9[1-8])|9(?:0[1-3689]|1[1-79]|3|4[13]|5[1-5]|7[0-79]|9[0-35-9])|(?:4[35]|59|85)[1-9]","(?:10|2[0-57-9])(?:1[02]|9[56])|8078|(?:3(?:[157]\\d|35|49|9[1-68])|4(?:1[124-9]|2[179]|[35][1-9]|6[47-9]|7\\d|8[23])|5(?:[1357]\\d|2[37]|4[36]|6[1-46]|80|9[1-9])|6(?:3[1-5]|6[0238]|9[12])|7(?:01|[1579]\\d|2[248]|3[014-9]|4[3-6]|6[023689])|8(?:1[236-8]|2[5-7]|[37]\\d|5[1-9]|8[36-8]|9[1-8])|9(?:0[1-3689]|1[1-79]|3\\d|4[13]|5[1-5]|7[0-79]|9[0-35-9]))1","10(?:1(?:0|23)|9[56])|2[0-57-9](?:1(?:00|23)|9[56])|80781|(?:3(?:[157]\\d|35|49|9[1-68])|4(?:1[124-9]|2[179]|[35][1-9]|6[47-9]|7\\d|8[23])|5(?:[1357]\\d|2[37]|4[36]|6[1-46]|80|9[1-9])|6(?:3[1-5]|6[0238]|9[12])|7(?:01|[1579]\\d|2[248]|3[014-9]|4[3-6]|6[023689])|8(?:1[236-8]|2[5-7]|[37]\\d|5[1-9]|8[36-8]|9[1-8])|9(?:0[1-3689]|1[1-79]|3\\d|4[13]|5[1-5]|7[0-79]|9[0-35-9]))12","10(?:1(?:0|23)|9[56])|2[0-57-9](?:1(?:00|23)|9[56])|807812|(?:3(?:[157]\\d|35|49|9[1-68])|4(?:1[124-9]|2[179]|[35][1-9]|6[47-9]|7\\d|8[23])|5(?:[1357]\\d|2[37]|4[36]|6[1-46]|80|9[1-9])|6(?:3[1-5]|6[0238]|9[12])|7(?:01|[1579]\\d|2[248]|3[014-9]|4[3-6]|6[023689])|8(?:1[236-8]|2[5-7]|[37]\\d|5[1-9]|8[36-8]|9[1-8])|9(?:0[1-3689]|1[1-79]|3\\d|4[13]|5[1-5]|7[0-79]|9[0-35-9]))123","10(?:1(?:0|23)|9[56])|2[0-57-9](?:1(?:00|23)|9[56])|(?:3(?:[157]\\d|35|49|9[1-68])|4(?:1[124-9]|2[179]|[35][1-9]|6[47-9]|7\\d|8[23])|5(?:[1357]\\d|2[37]|4[36]|6[1-46]|80|9[1-9])|6(?:3[1-5]|6[0238]|9[12])|7(?:01|[1579]\\d|2[248]|3[014-9]|4[3-6]|6[023689])|8(?:078|1[236-8]|2[5-7]|[37]\\d|5[1-9]|8[36-8]|9[1-8])|9(?:0[1-3689]|1[1-79]|3\\d|4[13]|5[1-5]|7[0-79]|9[0-35-9]))123"],"0$1"],["(\\d{3})(\\d{5,6})","$1 $2",["3(?:[157]|35|49|9[1-68])|4(?:[17]|2[179]|6[47-9]|8[23])|5(?:[1357]|2[37]|4[36]|6[1-46]|80)|6(?:3[1-5]|6[0238]|9[12])|7(?:01|[1579]|2[248]|3[014-9]|4[3-6]|6[023689])|8(?:1[236-8]|2[5-7]|[37]|8[36-8]|9[1-8])|9(?:0[1-3689]|1[1-79]|[379]|4[13]|5[1-5])|(?:4[35]|59|85)[1-9]","(?:3(?:[157]\\d|35|49|9[1-68])|4(?:[17]\\d|2[179]|[35][1-9]|6[47-9]|8[23])|5(?:[1357]\\d|2[37]|4[36]|6[1-46]|80|9[1-9])|6(?:3[1-5]|6[0238]|9[12])|7(?:01|[1579]\\d|2[248]|3[014-9]|4[3-6]|6[023689])|8(?:1[236-8]|2[5-7]|[37]\\d|5[1-9]|8[36-8]|9[1-8])|9(?:0[1-3689]|1[1-79]|[379]\\d|4[13]|5[1-5]))[19]","85[23](?:10|95)|(?:3(?:[157]\\d|35|49|9[1-68])|4(?:[17]\\d|2[179]|[35][1-9]|6[47-9]|8[23])|5(?:[1357]\\d|2[37]|4[36]|6[1-46]|80|9[1-9])|6(?:3[1-5]|6[0238]|9[12])|7(?:01|[1579]\\d|2[248]|3[014-9]|4[3-6]|6[023689])|8(?:1[236-8]|2[5-7]|[37]\\d|5[14-9]|8[36-8]|9[1-8])|9(?:0[1-3689]|1[1-79]|[379]\\d|4[13]|5[1-5]))(?:10|9[56])","85[23](?:100|95)|(?:3(?:[157]\\d|35|49|9[1-68])|4(?:[17]\\d|2[179]|[35][1-9]|6[47-9]|8[23])|5(?:[1357]\\d|2[37]|4[36]|6[1-46]|80|9[1-9])|6(?:3[1-5]|6[0238]|9[12])|7(?:01|[1579]\\d|2[248]|3[014-9]|4[3-6]|6[023689])|8(?:1[236-8]|2[5-7]|[37]\\d|5[14-9]|8[36-8]|9[1-8])|9(?:0[1-3689]|1[1-79]|[379]\\d|4[13]|5[1-5]))(?:100|9[56])"],"0$1"],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["(?:4|80)0"]],["(\\d{2})(\\d{4})(\\d{4})","$1 $2 $3",["10|2(?:[02-57-9]|1[1-9])","10|2(?:[02-57-9]|1[1-9])","10[0-79]|2(?:[02-57-9]|1[1-79])|(?:10|21)8(?:0[1-9]|[1-9])"],"0$1",1],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["3(?:[3-59]|7[02-68])|4(?:[26-8]|3[3-9]|5[2-9])|5(?:3[03-9]|[468]|7[028]|9[2-46-9])|6|7(?:[0-247]|3[04-9]|5[0-4689]|6[2368])|8(?:[1-358]|9[1-7])|9(?:[013479]|5[1-5])|(?:[34]1|55|79|87)[02-9]"],"0$1",1],["(\\d{3})(\\d{7,8})","$1 $2",["9"]],["(\\d{4})(\\d{3})(\\d{4})","$1 $2 $3",["80"],"0$1",1],["(\\d{3})(\\d{4})(\\d{4})","$1 $2 $3",["[3-578]"],"0$1",1],["(\\d{3})(\\d{4})(\\d{4})","$1 $2 $3",["1[3-9]"]],["(\\d{2})(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3 $4",["[12]"],"0$1",1]],"0",0,"(1(?:[12]\\d|79)\\d\\d)|0",0,0,0,0,"00"],CO:["57","00(?:4(?:[14]4|56)|[579])","(?:46|60\\d\\d)\\d{6}|(?:1\\d|[39])\\d{9}",[8,10,11],[["(\\d{4})(\\d{4})","$1 $2",["46"]],["(\\d{3})(\\d{7})","$1 $2",["6|90"],"($1)"],["(\\d{3})(\\d{7})","$1 $2",["3[0-357]|91"]],["(\\d)(\\d{3})(\\d{7})","$1-$2-$3",["1"],"0$1",0,"$1 $2 $3"]],"0",0,"0([3579]|4(?:[14]4|56))?"],CR:["506","00","(?:8\\d|90)\\d{8}|(?:[24-8]\\d{3}|3005)\\d{4}",[8,10],[["(\\d{4})(\\d{4})","$1 $2",["[2-7]|8[3-9]"]],["(\\d{3})(\\d{3})(\\d{4})","$1-$2-$3",["[89]"]]],0,0,"(19(?:0[0-2468]|1[09]|20|66|77|99))"],CU:["53","119","(?:[2-7]|8\\d\\d)\\d{7}|[2-47]\\d{6}|[34]\\d{5}",[6,7,8,10],[["(\\d{2})(\\d{4,6})","$1 $2",["2[1-4]|[34]"],"(0$1)"],["(\\d)(\\d{6,7})","$1 $2",["7"],"(0$1)"],["(\\d)(\\d{7})","$1 $2",["[56]"],"0$1"],["(\\d{3})(\\d{7})","$1 $2",["8"],"0$1"]],"0"],CV:["238","0","(?:[2-59]\\d\\d|800)\\d{4}",[7],[["(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3",["[2-589]"]]]],CW:["599","00","(?:[34]1|60|(?:7|9\\d)\\d)\\d{5}",[7,8],[["(\\d{3})(\\d{4})","$1 $2",["[3467]"]],["(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["9[4-8]"]]],0,0,0,0,0,"[69]"],CX:["61","001[14-689]|14(?:1[14]|34|4[17]|[56]6|7[47]|88)0011","1(?:[0-79]\\d{8}(?:\\d{2})?|8[0-24-9]\\d{7})|[148]\\d{8}|1\\d{5,7}",[6,7,8,9,10,12],0,"0",0,"([59]\\d{7})$|0","8$1",0,0,[["8(?:51(?:0(?:01|30|59|88)|1(?:17|46|75)|2(?:22|35))|91(?:00[6-9]|1(?:[28]1|49|78)|2(?:09|63)|3(?:12|26|75)|4(?:56|97)|64\\d|7(?:0[01]|1[0-2])|958))\\d{3}",[9]],["4(?:79[01]|83[0-389]|94[0-4])\\d{5}|4(?:[0-36]\\d|4[047-9]|5[0-25-9]|7[02-8]|8[0-24-9]|9[0-37-9])\\d{6}",[9]],["180(?:0\\d{3}|2)\\d{3}",[7,10]],["190[0-26]\\d{6}",[10]],0,0,0,0,["14(?:5(?:1[0458]|[23][458])|71\\d)\\d{4}",[9]],["13(?:00\\d{6}(?:\\d{2})?|45[0-4]\\d{3})|13\\d{4}",[6,8,10,12]]],"0011"],CY:["357","00","(?:[279]\\d|[58]0)\\d{6}",[8],[["(\\d{2})(\\d{6})","$1 $2",["[257-9]"]]]],CZ:["420","00","(?:[2-578]\\d|60)\\d{7}|9\\d{8,11}",[9,10,11,12],[["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[2-8]|9[015-7]"]],["(\\d{2})(\\d{3})(\\d{3})(\\d{2})","$1 $2 $3 $4",["96"]],["(\\d{2})(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3 $4",["9"]],["(\\d{3})(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3 $4",["9"]]]],DE:["49","00","[2579]\\d{5,14}|49(?:[34]0|69|8\\d)\\d\\d?|49(?:37|49|60|7[089]|9\\d)\\d{1,3}|49(?:2[024-9]|3[2-689]|7[1-7])\\d{1,8}|(?:1|[368]\\d|4[0-8])\\d{3,13}|49(?:[015]\\d|2[13]|31|[46][1-8])\\d{1,9}",[4,5,6,7,8,9,10,11,12,13,14,15],[["(\\d{2})(\\d{3,13})","$1 $2",["3[02]|40|[68]9"],"0$1"],["(\\d{3})(\\d{3,12})","$1 $2",["2(?:0[1-389]|1[124]|2[18]|3[14])|3(?:[35-9][15]|4[015])|906|(?:2[4-9]|4[2-9]|[579][1-9]|[68][1-8])1","2(?:0[1-389]|12[0-8])|3(?:[35-9][15]|4[015])|906|2(?:[13][14]|2[18])|(?:2[4-9]|4[2-9]|[579][1-9]|[68][1-8])1"],"0$1"],["(\\d{4})(\\d{2,11})","$1 $2",["[24-6]|3(?:[3569][02-46-9]|4[2-4679]|7[2-467]|8[2-46-8])|70[2-8]|8(?:0[2-9]|[1-8])|90[7-9]|[79][1-9]","[24-6]|3(?:3(?:0[1-467]|2[127-9]|3[124578]|7[1257-9]|8[1256]|9[145])|4(?:2[135]|4[13578]|9[1346])|5(?:0[14]|2[1-3589]|6[1-4]|7[13468]|8[13568])|6(?:2[1-489]|3[124-6]|6[13]|7[12579]|8[1-356]|9[135])|7(?:2[1-7]|4[145]|6[1-5]|7[1-4])|8(?:21|3[1468]|6|7[1467]|8[136])|9(?:0[12479]|2[1358]|4[134679]|6[1-9]|7[136]|8[147]|9[1468]))|70[2-8]|8(?:0[2-9]|[1-8])|90[7-9]|[79][1-9]|3[68]4[1347]|3(?:47|60)[1356]|3(?:3[46]|46|5[49])[1246]|3[4579]3[1357]"],"0$1"],["(\\d{3})(\\d{4})","$1 $2",["138"],"0$1"],["(\\d{5})(\\d{2,10})","$1 $2",["3"],"0$1"],["(\\d{3})(\\d{5,11})","$1 $2",["181"],"0$1"],["(\\d{3})(\\d)(\\d{4,10})","$1 $2 $3",["1(?:3|80)|9"],"0$1"],["(\\d{3})(\\d{7,8})","$1 $2",["1[67]"],"0$1"],["(\\d{3})(\\d{7,12})","$1 $2",["8"],"0$1"],["(\\d{5})(\\d{6})","$1 $2",["185","1850","18500"],"0$1"],["(\\d{3})(\\d{4})(\\d{4})","$1 $2 $3",["7"],"0$1"],["(\\d{4})(\\d{7})","$1 $2",["18[68]"],"0$1"],["(\\d{4})(\\d{7})","$1 $2",["15[1279]"],"0$1"],["(\\d{5})(\\d{6})","$1 $2",["15[03568]","15(?:[0568]|31)"],"0$1"],["(\\d{3})(\\d{8})","$1 $2",["18"],"0$1"],["(\\d{3})(\\d{2})(\\d{7,8})","$1 $2 $3",["1(?:6[023]|7)"],"0$1"],["(\\d{4})(\\d{2})(\\d{7})","$1 $2 $3",["15[279]"],"0$1"],["(\\d{3})(\\d{2})(\\d{8})","$1 $2 $3",["15"],"0$1"]],"0"],DJ:["253","00","(?:2\\d|77)\\d{6}",[8],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[27]"]]]],DK:["45","00","[2-9]\\d{7}",[8],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[2-9]"]]]],DM:["1","011","(?:[58]\\d\\d|767|900)\\d{7}",[10],0,"1",0,"([2-7]\\d{6})$|1","767$1",0,"767"],DO:["1","011","(?:[58]\\d\\d|900)\\d{7}",[10],0,"1",0,0,0,0,"8001|8[024]9"],DZ:["213","00","(?:[1-4]|[5-79]\\d|80)\\d{7}",[8,9],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[1-4]"],"0$1"],["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["9"],"0$1"],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[5-8]"],"0$1"]],"0"],EC:["593","00","1\\d{9,10}|(?:[2-7]|9\\d)\\d{7}",[8,9,10,11],[["(\\d)(\\d{3})(\\d{4})","$1 $2-$3",["[2-7]"],"(0$1)",0,"$1-$2-$3"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["9"],"0$1"],["(\\d{4})(\\d{3})(\\d{3,4})","$1 $2 $3",["1"]]],"0"],EE:["372","00","8\\d{9}|[4578]\\d{7}|(?:[3-8]\\d|90)\\d{5}",[7,8,10],[["(\\d{3})(\\d{4})","$1 $2",["[369]|4[3-8]|5(?:[0-2]|5[0-478]|6[45])|7[1-9]|88","[369]|4[3-8]|5(?:[02]|1(?:[0-8]|95)|5[0-478]|6(?:4[0-4]|5[1-589]))|7[1-9]|88"]],["(\\d{4})(\\d{3,4})","$1 $2",["[45]|8(?:00|[1-49])","[45]|8(?:00[1-9]|[1-49])"]],["(\\d{2})(\\d{2})(\\d{4})","$1 $2 $3",["7"]],["(\\d{4})(\\d{3})(\\d{3})","$1 $2 $3",["8"]]]],EG:["20","00","[189]\\d{8,9}|[24-6]\\d{8}|[135]\\d{7}",[8,9,10],[["(\\d)(\\d{7,8})","$1 $2",["[23]"],"0$1"],["(\\d{2})(\\d{6,7})","$1 $2",["1[35]|[4-6]|8[2468]|9[235-7]"],"0$1"],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["[89]"],"0$1"],["(\\d{2})(\\d{8})","$1 $2",["1"],"0$1"]],"0"],EH:["212","00","[5-8]\\d{8}",[9],0,"0",0,0,0,0,"528[89]"],ER:["291","00","[178]\\d{6}",[7],[["(\\d)(\\d{3})(\\d{3})","$1 $2 $3",["[178]"],"0$1"]],"0"],ES:["34","00","[5-9]\\d{8}",[9],[["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[89]00"]],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[5-9]"]]]],ET:["251","00","(?:11|[2-579]\\d)\\d{7}",[9],[["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[1-579]"],"0$1"]],"0"],FI:["358","00|99(?:[01469]|5(?:[14]1|3[23]|5[59]|77|88|9[09]))","[1-35689]\\d{4}|7\\d{10,11}|(?:[124-7]\\d|3[0-46-9])\\d{8}|[1-9]\\d{5,8}",[5,6,7,8,9,10,11,12],[["(\\d{5})","$1",["20[2-59]"],"0$1"],["(\\d{3})(\\d{3,7})","$1 $2",["(?:[1-3]0|[68])0|70[07-9]"],"0$1"],["(\\d{2})(\\d{4,8})","$1 $2",["[14]|2[09]|50|7[135]"],"0$1"],["(\\d{2})(\\d{6,10})","$1 $2",["7"],"0$1"],["(\\d)(\\d{4,9})","$1 $2",["(?:19|[2568])[1-8]|3(?:0[1-9]|[1-9])|9"],"0$1"]],"0",0,0,0,0,"1[03-79]|[2-9]",0,"00"],FJ:["679","0(?:0|52)","45\\d{5}|(?:0800\\d|[235-9])\\d{6}",[7,11],[["(\\d{3})(\\d{4})","$1 $2",["[235-9]|45"]],["(\\d{4})(\\d{3})(\\d{4})","$1 $2 $3",["0"]]],0,0,0,0,0,0,0,"00"],FK:["500","00","[2-7]\\d{4}",[5]],FM:["691","00","(?:[39]\\d\\d|820)\\d{4}",[7],[["(\\d{3})(\\d{4})","$1 $2",["[389]"]]]],FO:["298","00","[2-9]\\d{5}",[6],[["(\\d{6})","$1",["[2-9]"]]],0,0,"(10(?:01|[12]0|88))"],FR:["33","00","[1-9]\\d{8}",[9],[["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["8"],"0 $1"],["(\\d)(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4 $5",["[1-79]"],"0$1"]],"0"],GA:["241","00","(?:[067]\\d|11)\\d{6}|[2-7]\\d{6}",[7,8],[["(\\d)(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[2-7]"],"0$1"],["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["0"]],["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["11|[67]"],"0$1"]],0,0,"0(11\\d{6}|60\\d{6}|61\\d{6}|6[256]\\d{6}|7[467]\\d{6})","$1"],GB:["44","00","[1-357-9]\\d{9}|[18]\\d{8}|8\\d{6}",[7,9,10],[["(\\d{3})(\\d{4})","$1 $2",["800","8001","80011","800111","8001111"],"0$1"],["(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3",["845","8454","84546","845464"],"0$1"],["(\\d{3})(\\d{6})","$1 $2",["800"],"0$1"],["(\\d{5})(\\d{4,5})","$1 $2",["1(?:38|5[23]|69|76|94)","1(?:(?:38|69)7|5(?:24|39)|768|946)","1(?:3873|5(?:242|39[4-6])|(?:697|768)[347]|9467)"],"0$1"],["(\\d{4})(\\d{5,6})","$1 $2",["1(?:[2-69][02-9]|[78])"],"0$1"],["(\\d{2})(\\d{4})(\\d{4})","$1 $2 $3",["[25]|7(?:0|6[02-9])","[25]|7(?:0|6(?:[03-9]|2[356]))"],"0$1"],["(\\d{4})(\\d{6})","$1 $2",["7"],"0$1"],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["[1389]"],"0$1"]],"0",0,0,0,0,0,[["(?:1(?:1(?:3(?:[0-58]\\d\\d|73[0-35])|4(?:(?:[0-5]\\d|70)\\d|69[7-9])|(?:(?:5[0-26-9]|[78][0-49])\\d|6(?:[0-4]\\d|50))\\d)|(?:2(?:(?:0[024-9]|2[3-9]|3[3-79]|4[1-689]|[58][02-9]|6[0-47-9]|7[013-9]|9\\d)\\d|1(?:[0-7]\\d|8[0-3]))|(?:3(?:0\\d|1[0-8]|[25][02-9]|3[02-579]|[468][0-46-9]|7[1-35-79]|9[2-578])|4(?:0[03-9]|[137]\\d|[28][02-57-9]|4[02-69]|5[0-8]|[69][0-79])|5(?:0[1-35-9]|[16]\\d|2[024-9]|3[015689]|4[02-9]|5[03-9]|7[0-35-9]|8[0-468]|9[0-57-9])|6(?:0[034689]|1\\d|2[0-35689]|[38][013-9]|4[1-467]|5[0-69]|6[13-9]|7[0-8]|9[0-24578])|7(?:0[0246-9]|2\\d|3[0236-8]|4[03-9]|5[0-46-9]|6[013-9]|7[0-35-9]|8[024-9]|9[02-9])|8(?:0[35-9]|2[1-57-9]|3[02-578]|4[0-578]|5[124-9]|6[2-69]|7\\d|8[02-9]|9[02569])|9(?:0[02-589]|[18]\\d|2[02-689]|3[1-57-9]|4[2-9]|5[0-579]|6[2-47-9]|7[0-24578]|9[2-57]))\\d)\\d)|2(?:0[013478]|3[0189]|4[017]|8[0-46-9]|9[0-2])\\d{3})\\d{4}|1(?:2(?:0(?:46[1-4]|87[2-9])|545[1-79]|76(?:2\\d|3[1-8]|6[1-6])|9(?:7(?:2[0-4]|3[2-5])|8(?:2[2-8]|7[0-47-9]|8[3-5])))|3(?:6(?:38[2-5]|47[23])|8(?:47[04-9]|64[0157-9]))|4(?:044[1-7]|20(?:2[23]|8\\d)|6(?:0(?:30|5[2-57]|6[1-8]|7[2-8])|140)|8(?:052|87[1-3]))|5(?:2(?:4(?:3[2-79]|6\\d)|76\\d)|6(?:26[06-9]|686))|6(?:06(?:4\\d|7[4-79])|295[5-7]|35[34]\\d|47(?:24|61)|59(?:5[08]|6[67]|74)|9(?:55[0-4]|77[23]))|7(?:26(?:6[13-9]|7[0-7])|(?:442|688)\\d|50(?:2[0-3]|[3-68]2|76))|8(?:27[56]\\d|37(?:5[2-5]|8[239])|843[2-58])|9(?:0(?:0(?:6[1-8]|85)|52\\d)|3583|4(?:66[1-8]|9(?:2[01]|81))|63(?:23|3[1-4])|9561))\\d{3}",[9,10]],["7(?:457[0-57-9]|700[01]|911[028])\\d{5}|7(?:[1-3]\\d\\d|4(?:[0-46-9]\\d|5[0-689])|5(?:0[0-8]|[13-9]\\d|2[0-35-9])|7(?:0[1-9]|[1-7]\\d|8[02-9]|9[0-689])|8(?:[014-9]\\d|[23][0-8])|9(?:[024-9]\\d|1[02-9]|3[0-689]))\\d{6}",[10]],["80[08]\\d{7}|800\\d{6}|8001111"],["(?:8(?:4[2-5]|7[0-3])|9(?:[01]\\d|8[2-49]))\\d{7}|845464\\d",[7,10]],["70\\d{8}",[10]],0,["(?:3[0347]|55)\\d{8}",[10]],["76(?:464|652)\\d{5}|76(?:0[0-28]|2[356]|34|4[01347]|5[49]|6[0-369]|77|8[14]|9[139])\\d{6}",[10]],["56\\d{8}",[10]]],0," x"],GD:["1","011","(?:473|[58]\\d\\d|900)\\d{7}",[10],0,"1",0,"([2-9]\\d{6})$|1","473$1",0,"473"],GE:["995","00","(?:[3-57]\\d\\d|800)\\d{6}",[9],[["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["70"],"0$1"],["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["32"],"0$1"],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[57]"]],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[348]"],"0$1"]],"0"],GF:["594","00","(?:[56]94\\d|7093)\\d{5}|(?:80|9\\d)\\d{7}",[9],[["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[5-7]|9[47]"],"0$1"],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[89]"],"0$1"]],"0"],GG:["44","00","(?:1481|[357-9]\\d{3})\\d{6}|8\\d{6}(?:\\d{2})?",[7,9,10],0,"0",0,"([25-9]\\d{5})$|0","1481$1",0,0,[["1481[25-9]\\d{5}",[10]],["7(?:(?:781|839)\\d|911[17])\\d{5}",[10]],["80[08]\\d{7}|800\\d{6}|8001111"],["(?:8(?:4[2-5]|7[0-3])|9(?:[01]\\d|8[0-3]))\\d{7}|845464\\d",[7,10]],["70\\d{8}",[10]],0,["(?:3[0347]|55)\\d{8}",[10]],["76(?:464|652)\\d{5}|76(?:0[0-28]|2[356]|34|4[01347]|5[49]|6[0-369]|77|8[14]|9[139])\\d{6}",[10]],["56\\d{8}",[10]]]],GH:["233","00","(?:[235]\\d{3}|800)\\d{5}",[8,9],[["(\\d{3})(\\d{5})","$1 $2",["8"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[235]"],"0$1"]],"0"],GI:["350","00","(?:[25]\\d|60)\\d{6}",[8],[["(\\d{3})(\\d{5})","$1 $2",["2"]]]],GL:["299","00","(?:19|[2-689]\\d|70)\\d{4}",[6],[["(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3",["19|[2-9]"]]]],GM:["220","00","[2-9]\\d{6}",[7],[["(\\d{3})(\\d{4})","$1 $2",["[2-9]"]]]],GN:["224","00","722\\d{6}|(?:3|6\\d)\\d{7}",[8,9],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["3"]],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[67]"]]]],GP:["590","00","(?:590\\d|7090)\\d{5}|(?:69|80|9\\d)\\d{7}",[9],[["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[5-79]"],"0$1"],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["8"],"0$1"]],"0",0,0,0,0,0,[["590(?:0[1-68]|[14][0-24-9]|2[0-68]|3[1-9]|5[3-579]|[68][0-689]|7[08]|9\\d)\\d{4}"],["(?:69(?:0\\d\\d|1(?:2[2-9]|3[0-5])|4(?:0[89]|1[2-6]|9\\d)|6(?:1[016-9]|5[0-4]|[67]\\d))|7090[0-4])\\d{4}"],["80[0-5]\\d{6}"],0,0,0,0,0,["9(?:(?:39[5-7]|76[018])\\d|475[0-6])\\d{4}"]]],GQ:["240","00","222\\d{6}|(?:3\\d|55|[89]0)\\d{7}",[9],[["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[235]"]],["(\\d{3})(\\d{6})","$1 $2",["[89]"]]]],GR:["30","00","5005000\\d{3}|8\\d{9,11}|(?:[269]\\d|70)\\d{8}",[10,11,12],[["(\\d{2})(\\d{4})(\\d{4})","$1 $2 $3",["21|7"]],["(\\d{4})(\\d{6})","$1 $2",["2(?:2|3[2-57-9]|4[2-469]|5[2-59]|6[2-9]|7[2-69]|8[2-49])|5"]],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["[2689]"]],["(\\d{3})(\\d{3,4})(\\d{5})","$1 $2 $3",["8"]]]],GT:["502","00","80\\d{6}|(?:1\\d{3}|[2-7])\\d{7}",[8,11],[["(\\d{4})(\\d{4})","$1 $2",["[2-8]"]],["(\\d{4})(\\d{3})(\\d{4})","$1 $2 $3",["1"]]]],GU:["1","011","(?:[58]\\d\\d|671|900)\\d{7}",[10],0,"1",0,"([2-9]\\d{6})$|1","671$1",0,"671"],GW:["245","00","[49]\\d{8}|4\\d{6}",[7,9],[["(\\d{3})(\\d{4})","$1 $2",["40"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[49]"]]]],GY:["592","001","(?:[2-8]\\d{3}|9008)\\d{3}",[7],[["(\\d{3})(\\d{4})","$1 $2",["[2-9]"]]]],HK:["852","00(?:30|5[09]|[126-9]?)","8[0-46-9]\\d{6,7}|9\\d{4,7}|(?:[2-7]|9\\d{3})\\d{7}",[5,6,7,8,9,11],[["(\\d{3})(\\d{2,5})","$1 $2",["900","9003"]],["(\\d{4})(\\d{4})","$1 $2",["[2-7]|8[1-4]|9(?:0[1-9]|[1-8])"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["8"]],["(\\d{3})(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3 $4",["9"]]],0,0,0,0,0,0,0,"00"],HN:["504","00","8\\d{10}|[237-9]\\d{7}",[8,11],[["(\\d{4})(\\d{4})","$1-$2",["[237-9]"]]]],HR:["385","00","(?:[24-69]\\d|3[0-79])\\d{7}|80\\d{5,7}|[1-79]\\d{7}|6\\d{5,6}",[6,7,8,9],[["(\\d{2})(\\d{2})(\\d{2,3})","$1 $2 $3",["6[01]"],"0$1"],["(\\d{3})(\\d{2})(\\d{2,3})","$1 $2 $3",["8"],"0$1"],["(\\d)(\\d{4})(\\d{3})","$1 $2 $3",["1"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["6|7[245]"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["9"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["[2-57]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["8"],"0$1"]],"0"],HT:["509","00","(?:[2-489]\\d|55)\\d{6}",[8],[["(\\d{2})(\\d{2})(\\d{4})","$1 $2 $3",["[2-589]"]]]],HU:["36","00","[235-7]\\d{8}|[1-9]\\d{7}",[8,9],[["(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["1"],"(06 $1)"],["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["[27][2-9]|3[2-7]|4[24-9]|5[2-79]|6|8[2-57-9]|9[2-69]"],"(06 $1)"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["[2-9]"],"06 $1"]],"06"],ID:["62","00[89]","00[1-9]\\d{9,14}|(?:[1-36]|8\\d{5})\\d{6}|00\\d{9}|[1-9]\\d{8,10}|[2-9]\\d{7}",[7,8,9,10,11,12,13,14,15,16,17],[["(\\d)(\\d{3})(\\d{3})","$1 $2 $3",["15"]],["(\\d{2})(\\d{5,9})","$1 $2",["2[124]|[36]1"],"(0$1)"],["(\\d{3})(\\d{5,7})","$1 $2",["800"],"0$1"],["(\\d{3})(\\d{5,8})","$1 $2",["[2-79]"],"(0$1)"],["(\\d{3})(\\d{3,4})(\\d{3})","$1-$2-$3",["8[1-35-9]"],"0$1"],["(\\d{3})(\\d{6,8})","$1 $2",["1"],"0$1"],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["804"],"0$1"],["(\\d{3})(\\d)(\\d{3})(\\d{3})","$1 $2 $3 $4",["80"],"0$1"],["(\\d{3})(\\d{4})(\\d{4,5})","$1-$2-$3",["8"],"0$1"]],"0"],IE:["353","00","(?:1\\d|[2569])\\d{6,8}|4\\d{6,9}|7\\d{8}|8\\d{8,9}",[7,8,9,10],[["(\\d{2})(\\d{5})","$1 $2",["2[24-9]|47|58|6[237-9]|9[35-9]"],"(0$1)"],["(\\d{3})(\\d{5})","$1 $2",["[45]0"],"(0$1)"],["(\\d)(\\d{3,4})(\\d{4})","$1 $2 $3",["1"],"(0$1)"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["[2569]|4[1-69]|7[14]"],"(0$1)"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["70"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["81"],"(0$1)"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[78]"],"0$1"],["(\\d{4})(\\d{3})(\\d{3})","$1 $2 $3",["1"]],["(\\d{2})(\\d{4})(\\d{4})","$1 $2 $3",["4"],"(0$1)"],["(\\d{2})(\\d)(\\d{3})(\\d{4})","$1 $2 $3 $4",["8"],"0$1"]],"0"],IL:["972","0(?:0|1[2-9])","1\\d{6}(?:\\d{3,5})?|[57]\\d{8}|[1-489]\\d{7}",[7,8,9,10,11,12],[["(\\d{4})(\\d{3})","$1-$2",["125"]],["(\\d{4})(\\d{2})(\\d{2})","$1-$2-$3",["121"]],["(\\d)(\\d{3})(\\d{4})","$1-$2-$3",["[2-489]"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1-$2-$3",["[57]"],"0$1"],["(\\d{4})(\\d{3})(\\d{3})","$1-$2-$3",["12"]],["(\\d{4})(\\d{6})","$1-$2",["159"]],["(\\d)(\\d{3})(\\d{3})(\\d{3})","$1-$2-$3-$4",["1[7-9]"]],["(\\d{3})(\\d{1,2})(\\d{3})(\\d{4})","$1-$2 $3-$4",["15"]]],"0"],IM:["44","00","1624\\d{6}|(?:[3578]\\d|90)\\d{8}",[10],0,"0",0,"([25-8]\\d{5})$|0","1624$1",0,"74576|(?:16|7[56])24"],IN:["91","00","(?:000800|[2-9]\\d\\d)\\d{7}|1\\d{7,12}",[8,9,10,11,12,13],[["(\\d{8})","$1",["5(?:0|2[23]|3[03]|[67]1|88)","5(?:0|2(?:21|3)|3(?:0|3[23])|616|717|888)","5(?:0|2(?:21|3)|3(?:0|3[23])|616|717|8888)"],0,1],["(\\d{4})(\\d{4,5})","$1 $2",["180","1800"],0,1],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["140"],0,1],["(\\d{2})(\\d{4})(\\d{4})","$1 $2 $3",["11|2[02]|33|4[04]|79[1-7]|80[2-46]","11|2[02]|33|4[04]|79(?:[1-6]|7[19])|80(?:[2-4]|6[0-589])","11|2[02]|33|4[04]|79(?:[124-6]|3(?:[02-9]|1[0-24-9])|7(?:1|9[1-6]))|80(?:[2-4]|6[0-589])"],"0$1",1],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["1(?:2[0-249]|3[0-25]|4[145]|[68]|7[1257])|2(?:1[257]|3[013]|4[01]|5[0137]|6[0158]|78|8[1568])|3(?:26|4[1-3]|5[34]|6[01489]|7[02-46]|8[159])|4(?:1[36]|2[1-47]|5[12]|6[0-26-9]|7[0-24-9]|8[013-57]|9[014-7])|5(?:1[025]|22|[36][25]|4[28]|5[12]|[78]1)|6(?:12|[2-4]1|5[17]|6[13]|80)|7(?:12|3[134]|4[47]|61|88)|8(?:16|2[014]|3[126]|6[136]|7[078]|8[34]|91)|(?:43|59|75)[15]|(?:1[59]|29|67|72)[14]","1(?:2[0-24]|3[0-25]|4[145]|[59][14]|6[1-9]|7[1257]|8[1-57-9])|2(?:1[257]|3[013]|4[01]|5[0137]|6[058]|78|8[1568]|9[14])|3(?:26|4[1-3]|5[34]|6[01489]|7[02-46]|8[159])|4(?:1[36]|2[1-47]|3[15]|5[12]|6[0-26-9]|7[0-24-9]|8[013-57]|9[014-7])|5(?:1[025]|22|[36][25]|4[28]|[578]1|9[15])|674|7(?:(?:2[14]|3[34]|5[15])[2-6]|61[346]|88[0-8])|8(?:70[2-6]|84[235-7]|91[3-7])|(?:1(?:29|60|8[06])|261|552|6(?:12|[2-47]1|5[17]|6[13]|80)|7(?:12|31|4[47])|8(?:16|2[014]|3[126]|6[136]|7[78]|83))[2-7]","1(?:2[0-24]|3[0-25]|4[145]|[59][14]|6[1-9]|7[1257]|8[1-57-9])|2(?:1[257]|3[013]|4[01]|5[0137]|6[058]|78|8[1568]|9[14])|3(?:26|4[1-3]|5[34]|6[01489]|7[02-46]|8[159])|4(?:1[36]|2[1-47]|3[15]|5[12]|6[0-26-9]|7[0-24-9]|8[013-57]|9[014-7])|5(?:1[025]|22|[36][25]|4[28]|[578]1|9[15])|6(?:12(?:[2-6]|7[0-8])|74[2-7])|7(?:(?:2[14]|5[15])[2-6]|3171|61[346]|88(?:[2-7]|82))|8(?:70[2-6]|84(?:[2356]|7[19])|91(?:[3-6]|7[19]))|73[134][2-6]|(?:74[47]|8(?:16|2[014]|3[126]|6[136]|7[78]|83))(?:[2-6]|7[19])|(?:1(?:29|60|8[06])|261|552|6(?:[2-4]1|5[17]|6[13]|7(?:1|4[0189])|80)|7(?:12|88[01]))[2-7]"],"0$1",1],["(\\d{4})(\\d{3})(\\d{3})","$1 $2 $3",["1(?:[2-479]|5[0235-9])|[2-5]|6(?:1[1358]|2[2457-9]|3[2-5]|4[235-7]|5[2-689]|6[24578]|7[235689]|8[1-6])|7(?:1[013-9]|28|3[129]|4[1-35689]|5[29]|6[02-5]|70)|807","1(?:[2-479]|5[0235-9])|[2-5]|6(?:1[1358]|2(?:[2457]|84|95)|3(?:[2-4]|55)|4[235-7]|5[2-689]|6[24578]|7[235689]|8[1-6])|7(?:1(?:[013-8]|9[6-9])|28[6-8]|3(?:17|2[0-49]|9[2-57])|4(?:1[2-4]|[29][0-7]|3[0-8]|[56]|8[0-24-7])|5(?:2[1-3]|9[0-6])|6(?:0[5689]|2[5-9]|3[02-8]|4|5[0-367])|70[13-7])|807[19]","1(?:[2-479]|5(?:[0236-9]|5[013-9]))|[2-5]|6(?:2(?:84|95)|355|83)|73179|807(?:1|9[1-3])|(?:1552|6(?:1[1358]|2[2457]|3[2-4]|4[235-7]|5[2-689]|6[24578]|7[235689]|8[124-6])\\d|7(?:1(?:[013-8]\\d|9[6-9])|28[6-8]|3(?:2[0-49]|9[2-57])|4(?:1[2-4]|[29][0-7]|3[0-8]|[56]\\d|8[0-24-7])|5(?:2[1-3]|9[0-6])|6(?:0[5689]|2[5-9]|3[02-8]|4\\d|5[0-367])|70[13-7]))[2-7]"],"0$1",1],["(\\d{5})(\\d{5})","$1 $2",["[6-9]"],"0$1",1],["(\\d{4})(\\d{2,4})(\\d{4})","$1 $2 $3",["1(?:6|8[06])","1(?:6|8[06]0)"],0,1],["(\\d{4})(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3 $4",["18"],0,1]],"0"],IO:["246","00","3\\d{6}",[7],[["(\\d{3})(\\d{4})","$1 $2",["3"]]]],IQ:["964","00","(?:1|7\\d\\d)\\d{7}|[2-6]\\d{7,8}",[8,9,10],[["(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["1"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["[2-6]"],"0$1"],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["7"],"0$1"]],"0"],IR:["98","00","[1-9]\\d{9}|(?:[1-8]\\d\\d|9)\\d{3,4}",[4,5,6,7,10],[["(\\d{4,5})","$1",["96"],"0$1"],["(\\d{2})(\\d{4,5})","$1 $2",["(?:1[137]|2[13-68]|3[1458]|4[145]|5[1468]|6[16]|7[1467]|8[13467])[12689]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3,4})","$1 $2 $3",["9"],"0$1"],["(\\d{2})(\\d{4})(\\d{4})","$1 $2 $3",["[1-8]"],"0$1"]],"0"],IS:["354","00|1(?:0(?:01|[12]0)|100)","(?:38\\d|[4-9])\\d{6}",[7,9],[["(\\d{3})(\\d{4})","$1 $2",["[4-9]"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["3"]]],0,0,0,0,0,0,0,"00"],IT:["39","00","0\\d{5,10}|1\\d{8,10}|3(?:[0-8]\\d{7,10}|9\\d{7,8})|(?:43|55|70)\\d{8}|8\\d{5}(?:\\d{2,4})?",[6,7,8,9,10,11,12],[["(\\d{2})(\\d{4,6})","$1 $2",["0[26]"]],["(\\d{3})(\\d{3,6})","$1 $2",["0[13-57-9][0159]|8(?:03|4[17]|9[2-5])","0[13-57-9][0159]|8(?:03|4[17]|9(?:2|3[04]|[45][0-4]))"]],["(\\d{4})(\\d{2,6})","$1 $2",["0(?:[13-579][2-46-8]|8[236-8])"]],["(\\d{4})(\\d{4})","$1 $2",["894"]],["(\\d{2})(\\d{3,4})(\\d{4})","$1 $2 $3",["0[26]|5"]],["(\\d{3})(\\d{3})(\\d{3,4})","$1 $2 $3",["1(?:44|[679])|[378]|43"]],["(\\d{3})(\\d{3,4})(\\d{4})","$1 $2 $3",["0[13-57-9][0159]|14"]],["(\\d{2})(\\d{4})(\\d{5})","$1 $2 $3",["0[26]"]],["(\\d{4})(\\d{3})(\\d{4})","$1 $2 $3",["0"]],["(\\d{3})(\\d{4})(\\d{4,5})","$1 $2 $3",["3"]]],0,0,0,0,0,0,[["0669[0-79]\\d{1,6}|0(?:1(?:[0159]\\d|[27][1-5]|31|4[1-4]|6[1356]|8[2-57])|2\\d\\d|3(?:[0159]\\d|2[1-4]|3[12]|[48][1-6]|6[2-59]|7[1-7])|4(?:[0159]\\d|[23][1-9]|4[245]|6[1-5]|7[1-4]|81)|5(?:[0159]\\d|2[1-5]|3[2-6]|4[1-79]|6[4-6]|7[1-578]|8[3-8])|6(?:[0-57-9]\\d|6[0-8])|7(?:[0159]\\d|2[12]|3[1-7]|4[2-46]|6[13569]|7[13-6]|8[1-59])|8(?:[0159]\\d|2[3-578]|3[1-356]|[6-8][1-5])|9(?:[0159]\\d|[238][1-5]|4[12]|6[1-8]|7[1-6]))\\d{2,7}",[6,7,8,9,10,11]],["3[2-9]\\d{7,8}|(?:31|43)\\d{8}",[9,10]],["80(?:0\\d{3}|3)\\d{3}",[6,9]],["(?:0878\\d{3}|89(?:2\\d|3[04]|4(?:[0-4]|[5-9]\\d\\d)|5[0-4]))\\d\\d|(?:1(?:44|6[346])|89(?:38|5[5-9]|9))\\d{6}",[6,8,9,10]],["1(?:78\\d|99)\\d{6}",[9,10]],["3[2-8]\\d{9,10}",[11,12]],0,0,["55\\d{8}",[10]],["84(?:[08]\\d{3}|[17])\\d{3}",[6,9]]]],JE:["44","00","1534\\d{6}|(?:[3578]\\d|90)\\d{8}",[10],0,"0",0,"([0-24-8]\\d{5})$|0","1534$1",0,0,[["1534[0-24-8]\\d{5}"],["7(?:(?:(?:50|82)9|937)\\d|7(?:00[378]|97\\d))\\d{5}"],["80(?:07(?:35|81)|8901)\\d{4}"],["(?:8(?:4(?:4(?:4(?:05|42|69)|703)|5(?:041|800))|7(?:0002|1206))|90(?:066[59]|1810|71(?:07|55)))\\d{4}"],["701511\\d{4}"],0,["(?:3(?:0(?:07(?:35|81)|8901)|3\\d{4}|4(?:4(?:4(?:05|42|69)|703)|5(?:041|800))|7(?:0002|1206))|55\\d{4})\\d{4}"],["76(?:464|652)\\d{5}|76(?:0[0-28]|2[356]|34|4[01347]|5[49]|6[0-369]|77|8[14]|9[139])\\d{6}"],["56\\d{8}"]]],JM:["1","011","(?:[58]\\d\\d|658|900)\\d{7}",[10],0,"1",0,0,0,0,"658|876"],JO:["962","00","(?:(?:[2689]|7\\d)\\d|32|53)\\d{6}",[8,9],[["(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["[2356]|87"],"(0$1)"],["(\\d{3})(\\d{5,6})","$1 $2",["[89]"],"0$1"],["(\\d{2})(\\d{7})","$1 $2",["70"],"0$1"],["(\\d)(\\d{4})(\\d{4})","$1 $2 $3",["7"],"0$1"]],"0"],JP:["81","010","00[1-9]\\d{6,14}|[257-9]\\d{9}|(?:00|[1-9]\\d\\d)\\d{6}",[8,9,10,11,12,13,14,15,16,17],[["(\\d{3})(\\d{3})(\\d{3})","$1-$2-$3",["(?:12|57|99)0"],"0$1"],["(\\d{4})(\\d)(\\d{4})","$1-$2-$3",["1(?:26|3[79]|4[56]|5[4-68]|6[3-5])|499|5(?:76|97)|746|8(?:3[89]|47|51)|9(?:80|9[16])","1(?:267|3(?:7[247]|9[278])|466|5(?:47|58|64)|6(?:3[245]|48|5[4-68]))|499[2468]|5(?:76|97)9|7468|8(?:3(?:8[7-9]|96)|477|51[2-9])|9(?:802|9(?:1[23]|69))|1(?:45|58)[67]","1(?:267|3(?:7[247]|9[278])|466|5(?:47|58|64)|6(?:3[245]|48|5[4-68]))|499[2468]|5(?:769|979[2-69])|7468|8(?:3(?:8[7-9]|96[2457-9])|477|51[2-9])|9(?:802|9(?:1[23]|69))|1(?:45|58)[67]"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1-$2-$3",["60"],"0$1"],["(\\d)(\\d{4})(\\d{4})","$1-$2-$3",["[36]|4(?:2[09]|7[01])","[36]|4(?:2(?:0|9[02-69])|7(?:0[019]|1))"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1-$2-$3",["1(?:1|5[45]|77|88|9[69])|2(?:2[1-37]|3[0-269]|4[59]|5|6[24]|7[1-358]|8[1369]|9[0-38])|4(?:[28][1-9]|3[0-57]|[45]|6[248]|7[2-579]|9[29])|5(?:2|3[0459]|4[0-369]|5[29]|8[02389]|9[0-389])|7(?:2[02-46-9]|34|[58]|6[0249]|7[57]|9[2-6])|8(?:2[124589]|3[26-9]|49|51|6|7[0-468]|8[68]|9[019])|9(?:[23][1-9]|4[15]|5[138]|6[1-3]|7[156]|8[189]|9[1-489])","1(?:1|5(?:4[018]|5[017])|77|88|9[69])|2(?:2(?:[127]|3[014-9])|3[0-269]|4[59]|5(?:[1-3]|5[0-69]|9[19])|62|7(?:[1-35]|8[0189])|8(?:[16]|3[0134]|9[0-5])|9(?:[028]|17))|4(?:2(?:[13-79]|8[014-6])|3[0-57]|[45]|6[248]|7[2-47]|8[1-9]|9[29])|5(?:2|3(?:[045]|9[0-8])|4[0-369]|5[29]|8[02389]|9[0-3])|7(?:2[02-46-9]|34|[58]|6[0249]|7[57]|9(?:[23]|4[0-59]|5[01569]|6[0167]))|8(?:2(?:[1258]|4[0-39]|9[0-2469])|3(?:[29]|60)|49|51|6(?:[0-24]|36|5[0-3589]|7[23]|9[01459])|7[0-468]|8[68])|9(?:[23][1-9]|4[15]|5[138]|6[1-3]|7[156]|8[189]|9(?:[1289]|3[34]|4[0178]))|(?:264|837)[016-9]|2(?:57|93)[015-9]|(?:25[0468]|422|838)[01]|(?:47[59]|59[89]|8(?:6[68]|9))[019]","1(?:1|5(?:4[018]|5[017])|77|88|9[69])|2(?:2[127]|3[0-269]|4[59]|5(?:[1-3]|5[0-69]|9(?:17|99))|6(?:2|4[016-9])|7(?:[1-35]|8[0189])|8(?:[16]|3[0134]|9[0-5])|9(?:[028]|17))|4(?:2(?:[13-79]|8[014-6])|3[0-57]|[45]|6[248]|7[2-47]|9[29])|5(?:2|3(?:[045]|9(?:[0-58]|6[4-9]|7[0-35689]))|4[0-369]|5[29]|8[02389]|9[0-3])|7(?:2[02-46-9]|34|[58]|6[0249]|7[57]|9(?:[23]|4[0-59]|5[01569]|6[0167]))|8(?:2(?:[1258]|4[0-39]|9[0169])|3(?:[29]|60|7(?:[017-9]|6[6-8]))|49|51|6(?:[0-24]|36[2-57-9]|5(?:[0-389]|5[23])|6(?:[01]|9[178])|7(?:2[2-468]|3[78])|9[0145])|7[0-468]|8[68])|9(?:4[15]|5[138]|7[156]|8[189]|9(?:[1289]|3(?:31|4[357])|4[0178]))|(?:8294|96)[1-3]|2(?:57|93)[015-9]|(?:223|8699)[014-9]|(?:25[0468]|422|838)[01]|(?:48|8292|9[23])[1-9]|(?:47[59]|59[89]|8(?:68|9))[019]"],"0$1"],["(\\d{3})(\\d{2})(\\d{4})","$1-$2-$3",["[14]|[289][2-9]|5[3-9]|7[2-4679]"],"0$1"],["(\\d{3})(\\d{3})(\\d{4})","$1-$2-$3",["800"],"0$1"],["(\\d{2})(\\d{4})(\\d{4})","$1-$2-$3",["[257-9]"],"0$1"]],"0",0,"(000[259]\\d{6})$|(?:(?:003768)0?)|0","$1"],KE:["254","000","(?:[17]\\d\\d|900)\\d{6}|(?:2|80)0\\d{6,7}|[4-6]\\d{6,8}",[7,8,9,10],[["(\\d{2})(\\d{5,7})","$1 $2",["[24-6]"],"0$1"],["(\\d{3})(\\d{6})","$1 $2",["[17]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3,4})","$1 $2 $3",["[89]"],"0$1"]],"0"],KG:["996","00","8\\d{9}|[235-9]\\d{8}",[9,10],[["(\\d{4})(\\d{5})","$1 $2",["3(?:1[346]|[24-79])"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[235-79]|88"],"0$1"],["(\\d{3})(\\d{3})(\\d)(\\d{2,3})","$1 $2 $3 $4",["8"],"0$1"]],"0"],KH:["855","00[14-9]","1\\d{9}|[1-9]\\d{7,8}",[8,9,10],[["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["[1-9]"],"0$1"],["(\\d{4})(\\d{3})(\\d{3})","$1 $2 $3",["1"]]],"0"],KI:["686","00","(?:[37]\\d|6[0-79])\\d{6}|(?:[2-48]\\d|50)\\d{3}",[5,8],0,"0"],KM:["269","00","[3478]\\d{6}",[7],[["(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3",["[3478]"]]]],KN:["1","011","(?:[58]\\d\\d|900)\\d{7}",[10],0,"1",0,"([2-7]\\d{6})$|1","869$1",0,"869"],KP:["850","00|99","85\\d{6}|(?:19\\d|[2-7])\\d{7}",[8,10],[["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["8"],"0$1"],["(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["[2-7]"],"0$1"],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["1"],"0$1"]],"0"],KR:["82","00(?:[125689]|3(?:[46]5|91)|7(?:00|27|3|55|6[126]))","00[1-9]\\d{8,11}|(?:[12]|5\\d{3})\\d{7}|[13-6]\\d{9}|(?:[1-6]\\d|80)\\d{7}|[3-6]\\d{4,5}|(?:00|7)0\\d{8}",[5,6,8,9,10,11,12,13,14],[["(\\d{2})(\\d{3,4})","$1-$2",["(?:3[1-3]|[46][1-4]|5[1-5])1"],"0$1"],["(\\d{4})(\\d{4})","$1-$2",["1"]],["(\\d)(\\d{3,4})(\\d{4})","$1-$2-$3",["2"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1-$2-$3",["[36]0|8"],"0$1"],["(\\d{2})(\\d{3,4})(\\d{4})","$1-$2-$3",["[1346]|5[1-5]"],"0$1"],["(\\d{2})(\\d{4})(\\d{4})","$1-$2-$3",["[57]"],"0$1"],["(\\d{2})(\\d{5})(\\d{4})","$1-$2-$3",["5"],"0$1"]],"0",0,"0(8(?:[1-46-8]|5\\d\\d))?"],KW:["965","00","18\\d{5}|(?:[2569]\\d|41)\\d{6}",[7,8],[["(\\d{4})(\\d{3,4})","$1 $2",["[169]|2(?:[235]|4[1-35-9])|52"]],["(\\d{3})(\\d{5})","$1 $2",["[245]"]]]],KY:["1","011","(?:345|[58]\\d\\d|900)\\d{7}",[10],0,"1",0,"([2-9]\\d{6})$|1","345$1",0,"345"],KZ:["7","810","(?:33622|8\\d{8})\\d{5}|[78]\\d{9}",[10,14],0,"8",0,0,0,0,"33|7",0,"8~10"],LA:["856","00","[23]\\d{9}|3\\d{8}|(?:[235-8]\\d|41)\\d{6}",[8,9,10],[["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["2[13]|3[14]|[4-8]"],"0$1"],["(\\d{2})(\\d{2})(\\d{2})(\\d{3})","$1 $2 $3 $4",["30[0135-9]"],"0$1"],["(\\d{2})(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3 $4",["[23]"],"0$1"]],"0"],LB:["961","00","[27-9]\\d{7}|[13-9]\\d{6}",[7,8],[["(\\d)(\\d{3})(\\d{3})","$1 $2 $3",["[13-69]|7(?:[2-57]|62|8[0-7]|9[04-9])|8[02-9]"],"0$1"],["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["[27-9]"]]],"0"],LC:["1","011","(?:[58]\\d\\d|758|900)\\d{7}",[10],0,"1",0,"([2-8]\\d{6})$|1","758$1",0,"758"],LI:["423","00","[68]\\d{8}|(?:[2378]\\d|90)\\d{5}",[7,9],[["(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3",["[2379]|8(?:0[09]|7)","[2379]|8(?:0(?:02|9)|7)"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["8"]],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["69"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["6"]]],"0",0,"(1001)|0"],LK:["94","00","[1-9]\\d{8}",[9],[["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["7"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[1-689]"],"0$1"]],"0"],LR:["231","00","(?:[245]\\d|33|77|88)\\d{7}|(?:2\\d|[4-6])\\d{6}",[7,8,9],[["(\\d)(\\d{3})(\\d{3})","$1 $2 $3",["4[67]|[56]"],"0$1"],["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["2"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[2-578]"],"0$1"]],"0"],LS:["266","00","(?:[256]\\d\\d|800)\\d{5}",[8],[["(\\d{4})(\\d{4})","$1 $2",["[2568]"]]]],LT:["370","00","(?:[3469]\\d|52|[78]0)\\d{6}",[8],[["(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["52[0-7]"],"(0-$1)",1],["(\\d{3})(\\d{2})(\\d{3})","$1 $2 $3",["[7-9]"],"0 $1",1],["(\\d{2})(\\d{6})","$1 $2",["37|4(?:[15]|6[1-8])"],"(0-$1)",1],["(\\d{3})(\\d{5})","$1 $2",["[3-6]"],"(0-$1)",1]],"0",0,"[08]"],LU:["352","00","35[013-9]\\d{4,8}|6\\d{8}|35\\d{2,4}|(?:[2457-9]\\d|3[0-46-9])\\d{2,9}",[4,5,6,7,8,9,10,11],[["(\\d{2})(\\d{3})","$1 $2",["2(?:0[2-689]|[2-9])|[3-57]|8(?:0[2-9]|[13-9])|9(?:0[89]|[2-579])"]],["(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3",["2(?:0[2-689]|[2-9])|[3-57]|8(?:0[2-9]|[13-9])|9(?:0[89]|[2-579])"]],["(\\d{2})(\\d{2})(\\d{3})","$1 $2 $3",["20[2-689]"]],["(\\d{2})(\\d{2})(\\d{2})(\\d{1,2})","$1 $2 $3 $4",["2(?:[0367]|4[3-8])"]],["(\\d{3})(\\d{2})(\\d{3})","$1 $2 $3",["80[01]|90[015]"]],["(\\d{2})(\\d{2})(\\d{2})(\\d{3})","$1 $2 $3 $4",["20"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["6"]],["(\\d{2})(\\d{2})(\\d{2})(\\d{2})(\\d{1,2})","$1 $2 $3 $4 $5",["2(?:[0367]|4[3-8])"]],["(\\d{2})(\\d{2})(\\d{2})(\\d{1,5})","$1 $2 $3 $4",["[3-57]|8[13-9]|9(?:0[89]|[2-579])|(?:2|80)[2-9]"]]],0,0,"(15(?:0[06]|1[12]|[35]5|4[04]|6[26]|77|88|99)\\d)"],LV:["371","00","(?:[268]\\d|90)\\d{6}",[8],[["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["[269]|8[01]"]]]],LY:["218","00","[2-9]\\d{8}",[9],[["(\\d{2})(\\d{7})","$1-$2",["[2-9]"],"0$1"]],"0"],MA:["212","00","[5-8]\\d{8}",[9],[["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["5[45]"],"0$1"],["(\\d{4})(\\d{5})","$1-$2",["5(?:2[2-46-9]|3[3-9]|9)|8(?:0[89]|92)"],"0$1"],["(\\d{2})(\\d{7})","$1-$2",["8"],"0$1"],["(\\d{3})(\\d{6})","$1-$2",["[5-7]"],"0$1"]],"0",0,0,0,0,0,[["5(?:2(?:[0-25-79]\\d|3[1-578]|4[02-46-8]|8[0235-7])|3(?:[0-47]\\d|5[02-9]|6[02-8]|8[014-9]|9[3-9])|(?:4[067]|5[03])\\d)\\d{5}"],["(?:6(?:[0-79]\\d|8[0-247-9])|7(?:[0167]\\d|2[0-467]|5[0-3]|8[0-5]))\\d{6}"],["80[0-7]\\d{6}"],["89\\d{7}"],0,0,0,0,["(?:592(?:4[0-2]|93)|80[89]\\d\\d)\\d{4}"]]],MC:["377","00","(?:[3489]|6\\d)\\d{7}",[8,9],[["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["4"],"0$1"],["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[389]"]],["(\\d)(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4 $5",["6"],"0$1"]],"0"],MD:["373","00","(?:[235-7]\\d|[89]0)\\d{6}",[8],[["(\\d{3})(\\d{5})","$1 $2",["[89]"],"0$1"],["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["22|3"],"0$1"],["(\\d{3})(\\d{2})(\\d{3})","$1 $2 $3",["[25-7]"],"0$1"]],"0"],ME:["382","00","(?:20|[3-79]\\d)\\d{6}|80\\d{6,7}",[8,9],[["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["[2-9]"],"0$1"]],"0"],MF:["590","00","(?:590\\d|7090)\\d{5}|(?:69|80|9\\d)\\d{7}",[9],0,"0",0,0,0,0,0,[["590(?:0[079]|[14]3|[27][79]|3[03-7]|5[0-268]|87)\\d{4}"],["(?:69(?:0\\d\\d|1(?:2[2-9]|3[0-5])|4(?:0[89]|1[2-6]|9\\d)|6(?:1[016-9]|5[0-4]|[67]\\d))|7090[0-4])\\d{4}"],["80[0-5]\\d{6}"],0,0,0,0,0,["9(?:(?:39[5-7]|76[018])\\d|475[0-6])\\d{4}"]]],MG:["261","00","[23]\\d{8}",[9],[["(\\d{2})(\\d{2})(\\d{3})(\\d{2})","$1 $2 $3 $4",["[23]"],"0$1"]],"0",0,"([24-9]\\d{6})$|0","20$1"],MH:["692","011","329\\d{4}|(?:[256]\\d|45)\\d{5}",[7],[["(\\d{3})(\\d{4})","$1-$2",["[2-6]"]]],"1"],MK:["389","00","[2-578]\\d{7}",[8],[["(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["2|34[47]|4(?:[37]7|5[47]|64)"],"0$1"],["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["[347]"],"0$1"],["(\\d{3})(\\d)(\\d{2})(\\d{2})","$1 $2 $3 $4",["[58]"],"0$1"]],"0"],ML:["223","00","[24-9]\\d{7}",[8],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[24-9]"]]]],MM:["95","00","1\\d{5,7}|95\\d{6}|(?:[4-7]|9[0-46-9])\\d{6,8}|(?:2|8\\d)\\d{5,8}",[6,7,8,9,10],[["(\\d)(\\d{2})(\\d{3})","$1 $2 $3",["16|2"],"0$1"],["(\\d{2})(\\d{2})(\\d{3})","$1 $2 $3",["4(?:[2-46]|5[3-5])|5|6(?:[1-689]|7[235-7])|7(?:[0-4]|5[2-7])|8[1-5]|(?:60|86)[23]"],"0$1"],["(\\d)(\\d{3})(\\d{3,4})","$1 $2 $3",["[12]|452|678|86","[12]|452|6788|86"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["[4-7]|8[1-35]"],"0$1"],["(\\d)(\\d{3})(\\d{4,6})","$1 $2 $3",["9(?:2[0-4]|[35-9]|4[137-9])"],"0$1"],["(\\d)(\\d{4})(\\d{4})","$1 $2 $3",["2"],"0$1"],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["8"],"0$1"],["(\\d)(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3 $4",["92"],"0$1"],["(\\d)(\\d{5})(\\d{4})","$1 $2 $3",["9"],"0$1"]],"0"],MN:["976","001","[12]\\d{7,9}|[5-9]\\d{7}",[8,9,10],[["(\\d{2})(\\d{2})(\\d{4})","$1 $2 $3",["[12]1"],"0$1"],["(\\d{4})(\\d{4})","$1 $2",["[5-9]"]],["(\\d{3})(\\d{5,6})","$1 $2",["[12]2[1-3]"],"0$1"],["(\\d{4})(\\d{5,6})","$1 $2",["[12](?:27|3[2-8]|4[2-68]|5[1-4689])","[12](?:27|3[2-8]|4[2-68]|5[1-4689])[0-3]"],"0$1"],["(\\d{5})(\\d{4,5})","$1 $2",["[12]"],"0$1"]],"0"],MO:["853","00","0800\\d{3}|(?:28|[68]\\d)\\d{6}",[7,8],[["(\\d{4})(\\d{3})","$1 $2",["0"]],["(\\d{4})(\\d{4})","$1 $2",["[268]"]]]],MP:["1","011","[58]\\d{9}|(?:67|90)0\\d{7}",[10],0,"1",0,"([2-9]\\d{6})$|1","670$1",0,"670"],MQ:["596","00","(?:596\\d|7091)\\d{5}|(?:69|[89]\\d)\\d{7}",[9],[["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[5-79]|8(?:0[6-9]|[36])"],"0$1"],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["8"],"0$1"]],"0"],MR:["222","00","(?:[2-4]\\d\\d|800)\\d{5}",[8],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[2-48]"]]]],MS:["1","011","(?:[58]\\d\\d|664|900)\\d{7}",[10],0,"1",0,"([34]\\d{6})$|1","664$1",0,"664"],MT:["356","00","3550\\d{4}|(?:[2579]\\d\\d|800)\\d{5}",[8],[["(\\d{4})(\\d{4})","$1 $2",["[2357-9]"]]]],MU:["230","0(?:0|[24-7]0|3[03])","(?:[57]|8\\d\\d)\\d{7}|[2-468]\\d{6}",[7,8,10],[["(\\d{3})(\\d{4})","$1 $2",["[2-46]|8[013]"]],["(\\d{4})(\\d{4})","$1 $2",["[57]"]],["(\\d{5})(\\d{5})","$1 $2",["8"]]],0,0,0,0,0,0,0,"020"],MV:["960","0(?:0|19)","(?:800|9[0-57-9]\\d)\\d{7}|[34679]\\d{6}",[7,10],[["(\\d{3})(\\d{4})","$1-$2",["[34679]"]],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["[89]"]]],0,0,0,0,0,0,0,"00"],MW:["265","00","(?:[1289]\\d|31|77)\\d{7}|1\\d{6}",[7,9],[["(\\d)(\\d{3})(\\d{3})","$1 $2 $3",["1[2-9]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["2"],"0$1"],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[137-9]"],"0$1"]],"0"],MX:["52","0[09]","[2-9]\\d{9}",[10],[["(\\d{2})(\\d{4})(\\d{4})","$1 $2 $3",["33|5[56]|81"]],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["[2-9]"]]],0,0,0,0,0,0,0,"00"],MY:["60","00","1\\d{8,9}|(?:3\\d|[4-9])\\d{7}",[8,9,10],[["(\\d)(\\d{3})(\\d{4})","$1-$2 $3",["[4-79]"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1-$2 $3",["1(?:[02469]|[378][1-9]|53)|8","1(?:[02469]|[37][1-9]|53|8(?:[1-46-9]|5[7-9]))|8"],"0$1"],["(\\d)(\\d{4})(\\d{4})","$1-$2 $3",["3"],"0$1"],["(\\d)(\\d{3})(\\d{2})(\\d{4})","$1-$2-$3-$4",["1(?:[367]|80)"]],["(\\d{3})(\\d{3})(\\d{4})","$1-$2 $3",["15"],"0$1"],["(\\d{2})(\\d{4})(\\d{4})","$1-$2 $3",["1"],"0$1"]],"0"],MZ:["258","00","(?:2|8\\d)\\d{7}",[8,9],[["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["2|8[2-79]"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["8"]]]],NA:["264","00","[68]\\d{7,8}",[8,9],[["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["88"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["6"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["87"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["8"],"0$1"]],"0"],NC:["687","00","(?:050|[2-57-9]\\d\\d)\\d{3}",[6],[["(\\d{2})(\\d{2})(\\d{2})","$1.$2.$3",["[02-57-9]"]]]],NE:["227","00","[027-9]\\d{7}",[8],[["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["08"]],["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[089]|2[013]|7[0467]"]]]],NF:["672","00","[13]\\d{5}",[6],[["(\\d{2})(\\d{4})","$1 $2",["1[0-3]"]],["(\\d)(\\d{5})","$1 $2",["[13]"]]],0,0,"([0-258]\\d{4})$","3$1"],NG:["234","009","38\\d{6}|[78]\\d{9,13}|(?:20|9\\d)\\d{8}",[8,10,11,12,13,14],[["(\\d{2})(\\d{3})(\\d{2,3})","$1 $2 $3",["3"],"0$1"],["(\\d{3})(\\d{3})(\\d{3,4})","$1 $2 $3",["[7-9]"],"0$1"],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["20[129]"],"0$1"],["(\\d{4})(\\d{2})(\\d{4})","$1 $2 $3",["2"],"0$1"],["(\\d{3})(\\d{4})(\\d{4,5})","$1 $2 $3",["[78]"],"0$1"],["(\\d{3})(\\d{5})(\\d{5,6})","$1 $2 $3",["[78]"],"0$1"]],"0"],NI:["505","00","(?:1800|[25-8]\\d{3})\\d{4}",[8],[["(\\d{4})(\\d{4})","$1 $2",["[125-8]"]]]],NL:["31","00","(?:[124-7]\\d\\d|3(?:[02-9]\\d|1[0-8]))\\d{6}|8\\d{6,9}|9\\d{6,10}|1\\d{4,5}",[5,6,7,8,9,10,11],[["(\\d{3})(\\d{4,7})","$1 $2",["[89]0"],"0$1"],["(\\d{2})(\\d{7})","$1 $2",["66"],"0$1"],["(\\d)(\\d{8})","$1 $2",["6"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["1[16-8]|2[259]|3[124]|4[17-9]|5[124679]"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[1-578]|91"],"0$1"],["(\\d{3})(\\d{3})(\\d{5})","$1 $2 $3",["9"],"0$1"]],"0"],NO:["47","00","(?:0|[2-9]\\d{3})\\d{4}",[5,8],[["(\\d{3})(\\d{2})(\\d{3})","$1 $2 $3",["8"]],["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[2-79]"]]],0,0,0,0,0,"[02-689]|7[0-8]"],NP:["977","00","(?:1\\d|9)\\d{9}|[1-9]\\d{7}",[8,10,11],[["(\\d)(\\d{7})","$1-$2",["1[2-6]"],"0$1"],["(\\d{2})(\\d{6})","$1-$2",["1[01]|[2-8]|9(?:[1-59]|[67][2-6])"],"0$1"],["(\\d{3})(\\d{7})","$1-$2",["9"]]],"0"],NR:["674","00","(?:444|(?:55|8\\d)\\d|666)\\d{4}",[7],[["(\\d{3})(\\d{4})","$1 $2",["[4-68]"]]]],NU:["683","00","(?:[4-7]|888\\d)\\d{3}",[4,7],[["(\\d{3})(\\d{4})","$1 $2",["8"]]]],NZ:["64","0(?:0|161)","[1289]\\d{9}|50\\d{5}(?:\\d{2,3})?|[27-9]\\d{7,8}|(?:[34]\\d|6[0-35-9])\\d{6}|8\\d{4,6}",[5,6,7,8,9,10],[["(\\d{2})(\\d{3,8})","$1 $2",["8[1-79]"],"0$1"],["(\\d{3})(\\d{2})(\\d{2,3})","$1 $2 $3",["50[036-8]|8|90","50(?:[0367]|88)|8|90"],"0$1"],["(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["24|[346]|7[2-57-9]|9[2-9]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3,4})","$1 $2 $3",["2(?:10|74)|[589]"],"0$1"],["(\\d{2})(\\d{3,4})(\\d{4})","$1 $2 $3",["1|2[028]"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,5})","$1 $2 $3",["2(?:[169]|7[0-35-9])|7"],"0$1"]],"0",0,0,0,0,0,0,"00"],OM:["968","00","(?:1505|[279]\\d{3}|500)\\d{4}|800\\d{5,6}",[7,8,9],[["(\\d{3})(\\d{4,6})","$1 $2",["[58]"]],["(\\d{2})(\\d{6})","$1 $2",["2"]],["(\\d{4})(\\d{4})","$1 $2",["[179]"]]]],PA:["507","00","(?:00800|8\\d{3})\\d{6}|[68]\\d{7}|[1-57-9]\\d{6}",[7,8,10,11],[["(\\d{3})(\\d{4})","$1-$2",["[1-57-9]"]],["(\\d{4})(\\d{4})","$1-$2",["[68]"]],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["8"]]]],PE:["51","00|19(?:1[124]|77|90)00","(?:[14-8]|9\\d)\\d{7}",[8,9],[["(\\d{3})(\\d{5})","$1 $2",["80"],"(0$1)"],["(\\d)(\\d{7})","$1 $2",["1"],"(0$1)"],["(\\d{2})(\\d{6})","$1 $2",["[4-8]"],"(0$1)"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["9"]]],"0",0,0,0,0,0,0,"00"," Anexo "],PF:["689","00","4\\d{5}(?:\\d{2})?|8\\d{7,8}",[6,8,9],[["(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3",["44"]],["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["4|8[7-9]"]],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["8"]]]],PG:["675","00|140[1-3]","(?:180|[78]\\d{3})\\d{4}|(?:[2-589]\\d|64)\\d{5}",[7,8],[["(\\d{3})(\\d{4})","$1 $2",["18|[2-69]|85"]],["(\\d{4})(\\d{4})","$1 $2",["[78]"]]],0,0,0,0,0,0,0,"00"],PH:["63","00","(?:[2-7]|9\\d)\\d{8}|2\\d{5}|(?:1800|8)\\d{7,9}",[6,8,9,10,11,12,13],[["(\\d)(\\d{5})","$1 $2",["2"],"(0$1)"],["(\\d{4})(\\d{4,6})","$1 $2",["3(?:23|39|46)|4(?:2[3-6]|[35]9|4[26]|76)|544|88[245]|(?:52|64|86)2","3(?:230|397|461)|4(?:2(?:35|[46]4|51)|396|4(?:22|63)|59[347]|76[15])|5(?:221|446)|642[23]|8(?:622|8(?:[24]2|5[13]))"],"(0$1)"],["(\\d{5})(\\d{4})","$1 $2",["346|4(?:27|9[35])|883","3469|4(?:279|9(?:30|56))|8834"],"(0$1)"],["(\\d)(\\d{4})(\\d{4})","$1 $2 $3",["2"],"(0$1)"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[3-7]|8[2-8]"],"(0$1)"],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["[89]"],"0$1"],["(\\d{4})(\\d{3})(\\d{4})","$1 $2 $3",["1"]],["(\\d{4})(\\d{1,2})(\\d{3})(\\d{4})","$1 $2 $3 $4",["1"]]],"0"],PK:["92","00","122\\d{6}|[24-8]\\d{10,11}|9(?:[013-9]\\d{8,10}|2(?:[01]\\d\\d|2(?:[06-8]\\d|1[01]))\\d{7})|(?:[2-8]\\d{3}|92(?:[0-7]\\d|8[1-9]))\\d{6}|[24-9]\\d{8}|[89]\\d{7}",[8,9,10,11,12],[["(\\d{3})(\\d{3})(\\d{2,7})","$1 $2 $3",["[89]0"],"0$1"],["(\\d{4})(\\d{5})","$1 $2",["1"]],["(\\d{3})(\\d{6,7})","$1 $2",["2(?:3[2358]|4[2-4]|9[2-8])|45[3479]|54[2-467]|60[468]|72[236]|8(?:2[2-689]|3[23578]|4[3478]|5[2356])|9(?:2[2-8]|3[27-9]|4[2-6]|6[3569]|9[25-8])","9(?:2[3-8]|98)|(?:2(?:3[2358]|4[2-4]|9[2-8])|45[3479]|54[2-467]|60[468]|72[236]|8(?:2[2-689]|3[23578]|4[3478]|5[2356])|9(?:22|3[27-9]|4[2-6]|6[3569]|9[25-7]))[2-9]"],"(0$1)"],["(\\d{2})(\\d{7,8})","$1 $2",["(?:2[125]|4[0-246-9]|5[1-35-7]|6[1-8]|7[14]|8[16]|91)[2-9]"],"(0$1)"],["(\\d{5})(\\d{5})","$1 $2",["58"],"(0$1)"],["(\\d{3})(\\d{7})","$1 $2",["3"],"0$1"],["(\\d{2})(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3 $4",["2[125]|4[0-246-9]|5[1-35-7]|6[1-8]|7[14]|8[16]|91"],"(0$1)"],["(\\d{3})(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3 $4",["[24-9]"],"(0$1)"]],"0"],PL:["48","00","(?:6|8\\d\\d)\\d{7}|[1-9]\\d{6}(?:\\d{2})?|[26]\\d{5}",[6,7,8,9,10],[["(\\d{5})","$1",["19"]],["(\\d{3})(\\d{3})","$1 $2",["11|20|64"]],["(\\d{2})(\\d{2})(\\d{3})","$1 $2 $3",["(?:1[2-8]|2[2-69]|3[2-4]|4[1-468]|5[24-689]|6[1-3578]|7[14-7]|8[1-79]|9[145])1","(?:1[2-8]|2[2-69]|3[2-4]|4[1-468]|5[24-689]|6[1-3578]|7[14-7]|8[1-79]|9[145])19"]],["(\\d{3})(\\d{2})(\\d{2,3})","$1 $2 $3",["64"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["21|39|45|5[0137]|6[0469]|7[02389]|8(?:0[14]|8)"]],["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["1[2-8]|[2-7]|8[1-79]|9[145]"]],["(\\d{3})(\\d{3})(\\d{3,4})","$1 $2 $3",["8"]]]],PM:["508","00","[45]\\d{5}|(?:708|8\\d\\d)\\d{6}",[6,9],[["(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3",["[45]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["7"]],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["8"],"0$1"]],"0"],PR:["1","011","(?:[589]\\d\\d|787)\\d{7}",[10],0,"1",0,0,0,0,"787|939"],PS:["970","00","[2489]2\\d{6}|(?:1\\d|5)\\d{8}",[8,9,10],[["(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["[2489]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["5"],"0$1"],["(\\d{4})(\\d{3})(\\d{3})","$1 $2 $3",["1"]]],"0"],PT:["351","00","1693\\d{5}|(?:[26-9]\\d|30)\\d{7}",[9],[["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["2[12]"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["16|[236-9]"]]]],PW:["680","01[12]","(?:[24-8]\\d\\d|345|900)\\d{4}",[7],[["(\\d{3})(\\d{4})","$1 $2",["[2-9]"]]]],PY:["595","00","59\\d{4,6}|9\\d{5,10}|(?:[2-46-8]\\d|5[0-8])\\d{4,7}",[6,7,8,9,10,11],[["(\\d{3})(\\d{3,6})","$1 $2",["[2-9]0"],"0$1"],["(\\d{2})(\\d{5})","$1 $2",["[26]1|3[289]|4[1246-8]|7[1-3]|8[1-36]"],"(0$1)"],["(\\d{3})(\\d{4,5})","$1 $2",["2[279]|3[13-5]|4[359]|5|6(?:[34]|7[1-46-8])|7[46-8]|85"],"(0$1)"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["2[14-68]|3[26-9]|4[1246-8]|6(?:1|75)|7[1-35]|8[1-36]"],"(0$1)"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["87"]],["(\\d{3})(\\d{6})","$1 $2",["9(?:[5-79]|8[1-7])"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[2-8]"],"0$1"],["(\\d{4})(\\d{3})(\\d{4})","$1 $2 $3",["9"]]],"0"],QA:["974","00","800\\d{4}|(?:2|800)\\d{6}|(?:0080|[3-7])\\d{7}",[7,8,9,11],[["(\\d{3})(\\d{4})","$1 $2",["2[16]|8"]],["(\\d{4})(\\d{4})","$1 $2",["[3-7]"]]]],RE:["262","00","709\\d{6}|(?:26|[689]\\d)\\d{7}",[9],[["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[26-9]"],"0$1"]],"0",0,0,0,0,0,[["26(?:2\\d\\d|3(?:0\\d|1[0-6]))\\d{4}"],["(?:69(?:2\\d\\d|3(?:[06][0-6]|1[013]|2[0-2]|3[0-39]|4\\d|5[0-5]|7[0-37]|8[0-8]|9[0-479]))|7092[0-3])\\d{4}"],["80\\d{7}"],["89[1-37-9]\\d{6}"],0,0,0,0,["9(?:399[0-3]|479[0-6]|76(?:2[278]|3[0-37]))\\d{4}"],["8(?:1[019]|2[0156]|84|90)\\d{6}"]]],RO:["40","00","(?:[236-8]\\d|90)\\d{7}|[23]\\d{5}",[6,9],[["(\\d{3})(\\d{3})","$1 $2",["2[3-6]","2[3-6]\\d9"],"0$1"],["(\\d{2})(\\d{4})","$1 $2",["219|31"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[23]1"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[236-9]"],"0$1"]],"0",0,0,0,0,0,0,0," int "],RS:["381","00","38[02-9]\\d{6,9}|6\\d{7,9}|90\\d{4,8}|38\\d{5,6}|(?:7\\d\\d|800)\\d{3,9}|(?:[12]\\d|3[0-79])\\d{5,10}",[6,7,8,9,10,11,12],[["(\\d{3})(\\d{3,9})","$1 $2",["(?:2[389]|39)0|[7-9]"],"0$1"],["(\\d{2})(\\d{5,10})","$1 $2",["[1-36]"],"0$1"]],"0"],RU:["7","810","8\\d{13}|[347-9]\\d{9}",[10,14],[["(\\d{4})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["7(?:1[0-8]|2[1-9])","7(?:1(?:[0-356]2|4[29]|7|8[27])|2(?:1[23]|[2-9]2))","7(?:1(?:[0-356]2|4[29]|7|8[27])|2(?:13[03-69]|62[013-9]))|72[1-57-9]2"],"8 ($1)",1],["(\\d{5})(\\d)(\\d{2})(\\d{2})","$1 $2 $3 $4",["7(?:1[0-68]|2[1-9])","7(?:1(?:[06][3-6]|[18]|2[35]|[3-5][3-5])|2(?:[13][3-5]|[24-689]|7[457]))","7(?:1(?:0(?:[356]|4[023])|[18]|2(?:3[013-9]|5)|3[45]|43[013-79]|5(?:3[1-8]|4[1-7]|5)|6(?:3[0-35-9]|[4-6]))|2(?:1(?:3[178]|[45])|[24-689]|3[35]|7[457]))|7(?:14|23)4[0-8]|71(?:33|45)[1-79]"],"8 ($1)",1],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["7"],"8 ($1)",1],["(\\d{3})(\\d{3})(\\d{2})(\\d{2})","$1 $2-$3-$4",["[349]|8(?:[02-7]|1[1-8])"],"8 ($1)",1],["(\\d{4})(\\d{4})(\\d{3})(\\d{3})","$1 $2 $3 $4",["8"],"8 ($1)"]],"8",0,0,0,0,"3[04-689]|[489]",0,"8~10"],RW:["250","00","(?:06|[27]\\d\\d|[89]00)\\d{6}",[8,9],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["0"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["2"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[7-9]"],"0$1"]],"0"],SA:["966","00","92\\d{7}|(?:[15]|8\\d)\\d{8}",[9,10],[["(\\d{4})(\\d{5})","$1 $2",["9"]],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["1"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["5"],"0$1"],["(\\d{3})(\\d{3})(\\d{3,4})","$1 $2 $3",["81"],"0$1"],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["8"]]],"0"],SB:["677","0[01]","[6-9]\\d{6}|[1-6]\\d{4}",[5,7],[["(\\d{2})(\\d{5})","$1 $2",["6[89]|7|8[4-9]|9(?:[1-8]|9[0-8])"]]]],SC:["248","010|0[0-2]","(?:[2489]\\d|64)\\d{5}",[7],[["(\\d)(\\d{3})(\\d{3})","$1 $2 $3",["[246]|9[57]"]]],0,0,0,0,0,0,0,"00"],SD:["249","00","[19]\\d{8}",[9],[["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[19]"],"0$1"]],"0"],SE:["46","00","(?:[26]\\d\\d|9)\\d{9}|[1-9]\\d{8}|[1-689]\\d{7}|[1-4689]\\d{6}|2\\d{5}",[6,7,8,9,10,12],[["(\\d{2})(\\d{2,3})(\\d{2})","$1-$2 $3",["20"],"0$1",0,"$1 $2 $3"],["(\\d{3})(\\d{4})","$1-$2",["9(?:00|39|44|9)"],"0$1",0,"$1 $2"],["(\\d{2})(\\d{3})(\\d{2})","$1-$2 $3",["[12][136]|3[356]|4[0246]|6[03]|90[1-9]"],"0$1",0,"$1 $2 $3"],["(\\d)(\\d{2,3})(\\d{2})(\\d{2})","$1-$2 $3 $4",["8"],"0$1",0,"$1 $2 $3 $4"],["(\\d{3})(\\d{2,3})(\\d{2})","$1-$2 $3",["1[2457]|2(?:[247-9]|5[0138])|3[0247-9]|4[1357-9]|5[0-35-9]|6(?:[125689]|4[02-57]|7[0-2])|9(?:[125-8]|3[02-5]|4[0-3])"],"0$1",0,"$1 $2 $3"],["(\\d{3})(\\d{2,3})(\\d{3})","$1-$2 $3",["9(?:00|39|44)"],"0$1",0,"$1 $2 $3"],["(\\d{2})(\\d{2,3})(\\d{2})(\\d{2})","$1-$2 $3 $4",["1[13689]|2[0136]|3[1356]|4[0246]|54|6[03]|90[1-9]"],"0$1",0,"$1 $2 $3 $4"],["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1-$2 $3 $4",["10|7"],"0$1",0,"$1 $2 $3 $4"],["(\\d)(\\d{3})(\\d{3})(\\d{2})","$1-$2 $3 $4",["8"],"0$1",0,"$1 $2 $3 $4"],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1-$2 $3 $4",["[13-5]|2(?:[247-9]|5[0138])|6(?:[124-689]|7[0-2])|9(?:[125-8]|3[02-5]|4[0-3])"],"0$1",0,"$1 $2 $3 $4"],["(\\d{3})(\\d{2})(\\d{2})(\\d{3})","$1-$2 $3 $4",["9"],"0$1",0,"$1 $2 $3 $4"],["(\\d{3})(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1-$2 $3 $4 $5",["[26]"],"0$1",0,"$1 $2 $3 $4 $5"]],"0"],SG:["65","0[0-3]\\d","(?:(?:1\\d|8)\\d\\d|7000)\\d{7}|[3689]\\d{7}",[8,10,11],[["(\\d{4})(\\d{4})","$1 $2",["[369]|8(?:0[1-9]|[1-9])"]],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["8"]],["(\\d{4})(\\d{4})(\\d{3})","$1 $2 $3",["7"]],["(\\d{4})(\\d{3})(\\d{4})","$1 $2 $3",["1"]]]],SH:["290","00","(?:[256]\\d|8)\\d{3}",[4,5],0,0,0,0,0,0,"[256]"],SI:["386","00|10(?:22|66|88|99)","[1-7]\\d{7}|8\\d{4,7}|90\\d{4,6}",[5,6,7,8],[["(\\d{2})(\\d{3,6})","$1 $2",["8[09]|9"],"0$1"],["(\\d{3})(\\d{5})","$1 $2",["59|8"],"0$1"],["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["[37][01]|4[0139]|51|6"],"0$1"],["(\\d)(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[1-57]"],"(0$1)"]],"0",0,0,0,0,0,0,"00"],SJ:["47","00","0\\d{4}|(?:[489]\\d|79)\\d{6}",[5,8],0,0,0,0,0,0,"79"],SK:["421","00","[2-689]\\d{8}|[2-59]\\d{6}|[2-5]\\d{5}",[6,7,9],[["(\\d)(\\d{2})(\\d{3,4})","$1 $2 $3",["21"],"0$1"],["(\\d{2})(\\d{2})(\\d{2,3})","$1 $2 $3",["[3-5][1-8]1","[3-5][1-8]1[67]"],"0$1"],["(\\d)(\\d{3})(\\d{3})(\\d{2})","$1/$2 $3 $4",["2"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[689]"],"0$1"],["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1/$2 $3 $4",["[3-5]"],"0$1"]],"0"],SL:["232","00","(?:[237-9]\\d|66)\\d{6}",[8],[["(\\d{2})(\\d{6})","$1 $2",["[236-9]"],"(0$1)"]],"0"],SM:["378","00","(?:0549|[5-7]\\d)\\d{6}",[8,10],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[5-7]"]],["(\\d{4})(\\d{6})","$1 $2",["0"]]],0,0,"([89]\\d{5})$","0549$1"],SN:["221","00","(?:[378]\\d|93)\\d{7}",[9],[["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["8"]],["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[379]"]]]],SO:["252","00","[346-9]\\d{8}|[12679]\\d{7}|[1-5]\\d{6}|[1348]\\d{5}",[6,7,8,9],[["(\\d{2})(\\d{4})","$1 $2",["8[125]"]],["(\\d{6})","$1",["[134]"]],["(\\d)(\\d{6})","$1 $2",["[15]|2[0-79]|3[0-46-8]|4[0-7]"]],["(\\d)(\\d{7})","$1 $2",["(?:2|90)4|[67]"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[348]|64|79|90"]],["(\\d{2})(\\d{5,7})","$1 $2",["1|28|6[0-35-9]|7[67]|9[2-9]"]]],"0"],SR:["597","00","(?:[2-5]|68|[78]\\d)\\d{5}",[6,7],[["(\\d{2})(\\d{2})(\\d{2})","$1-$2-$3",["56"]],["(\\d{3})(\\d{3})","$1-$2",["[2-5]"]],["(\\d{3})(\\d{4})","$1-$2",["[6-8]"]]]],SS:["211","00","[19]\\d{8}",[9],[["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[19]"],"0$1"]],"0"],ST:["239","00","(?:22|9\\d)\\d{5}",[7],[["(\\d{3})(\\d{4})","$1 $2",["[29]"]]]],SV:["503","00","[267]\\d{7}|(?:80\\d|900)\\d{4}(?:\\d{4})?",[7,8,11],[["(\\d{3})(\\d{4})","$1 $2",["[89]"]],["(\\d{4})(\\d{4})","$1 $2",["[267]"]],["(\\d{3})(\\d{4})(\\d{4})","$1 $2 $3",["[89]"]]]],SX:["1","011","7215\\d{6}|(?:[58]\\d\\d|900)\\d{7}",[10],0,"1",0,"(5\\d{6})$|1","721$1",0,"721"],SY:["963","00","[1-359]\\d{8}|[1-5]\\d{7}",[8,9],[["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["[1-4]|5[1-3]"],"0$1",1],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[59]"],"0$1",1]],"0"],SZ:["268","00","0800\\d{4}|(?:[237]\\d|900)\\d{6}",[8,9],[["(\\d{4})(\\d{4})","$1 $2",["[0237]"]],["(\\d{5})(\\d{4})","$1 $2",["9"]]]],TA:["290","00","8\\d{3}",[4],0,0,0,0,0,0,"8"],TC:["1","011","(?:[58]\\d\\d|649|900)\\d{7}",[10],0,"1",0,"([2-479]\\d{6})$|1","649$1",0,"649"],TD:["235","00|16","(?:22|[689]\\d|77)\\d{6}",[8],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[26-9]"]]],0,0,0,0,0,0,0,"00"],TG:["228","00","[279]\\d{7}",[8],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[279]"]]]],TH:["66","00[1-9]","(?:001800|[2-57]|[689]\\d)\\d{7}|1\\d{7,9}",[8,9,10,13],[["(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["2"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["[13-9]"],"0$1"],["(\\d{4})(\\d{3})(\\d{3})","$1 $2 $3",["1"]]],"0"],TJ:["992","810","[0-57-9]\\d{8}",[9],[["(\\d{6})(\\d)(\\d{2})","$1 $2 $3",["331","3317"]],["(\\d{3})(\\d{2})(\\d{4})","$1 $2 $3",["44[02-479]|[34]7"]],["(\\d{4})(\\d)(\\d{4})","$1 $2 $3",["3(?:[1245]|3[12])"]],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[0-57-9]"]]],0,0,0,0,0,0,0,"8~10"],TK:["690","00","[2-47]\\d{3,6}",[4,5,6,7]],TL:["670","00","7\\d{7}|(?:[2-47]\\d|[89]0)\\d{5}",[7,8],[["(\\d{3})(\\d{4})","$1 $2",["[2-489]|70"]],["(\\d{4})(\\d{4})","$1 $2",["7"]]]],TM:["993","810","(?:[1-6]\\d|71)\\d{6}",[8],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2-$3-$4",["12"],"(8 $1)"],["(\\d{3})(\\d)(\\d{2})(\\d{2})","$1 $2-$3-$4",["[1-5]"],"(8 $1)"],["(\\d{2})(\\d{6})","$1 $2",["[67]"],"8 $1"]],"8",0,0,0,0,0,0,"8~10"],TN:["216","00","[2-57-9]\\d{7}",[8],[["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["[2-57-9]"]]]],TO:["676","00","(?:0800|(?:[5-8]\\d\\d|999)\\d)\\d{3}|[2-8]\\d{4}",[5,7],[["(\\d{2})(\\d{3})","$1-$2",["[2-4]|50|6[09]|7[0-24-69]|8[05]"]],["(\\d{4})(\\d{3})","$1 $2",["0"]],["(\\d{3})(\\d{4})","$1 $2",["[5-9]"]]]],TR:["90","00","4\\d{6}|8\\d{11,12}|(?:[2-58]\\d\\d|900)\\d{7}",[7,10,12,13],[["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["512|8[01589]|90"],"0$1",1],["(\\d{3})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["5(?:[0-59]|61)","5(?:[0-59]|61[06])","5(?:[0-59]|61[06]1)"],"0$1",1],["(\\d{3})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[24][1-8]|3[1-9]"],"(0$1)",1],["(\\d{3})(\\d{3})(\\d{6,7})","$1 $2 $3",["80"],"0$1",1]],"0"],TT:["1","011","(?:[58]\\d\\d|900)\\d{7}",[10],0,"1",0,"([2-46-8]\\d{6})$|1","868$1",0,"868"],TV:["688","00","(?:2|7\\d\\d|90)\\d{4}",[5,6,7],[["(\\d{2})(\\d{3})","$1 $2",["2"]],["(\\d{2})(\\d{4})","$1 $2",["90"]],["(\\d{2})(\\d{5})","$1 $2",["7"]]]],TW:["886","0(?:0[25-79]|19)","[2-689]\\d{8}|7\\d{9,10}|[2-8]\\d{7}|2\\d{6}",[7,8,9,10,11],[["(\\d{2})(\\d)(\\d{4})","$1 $2 $3",["202"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["[258]0"],"0$1"],["(\\d)(\\d{3,4})(\\d{4})","$1 $2 $3",["[23568]|4(?:0[02-48]|[1-47-9])|7[1-9]","[23568]|4(?:0[2-48]|[1-47-9])|(?:400|7)[1-9]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[49]"],"0$1"],["(\\d{2})(\\d{4})(\\d{4,5})","$1 $2 $3",["7"],"0$1"]],"0",0,0,0,0,0,0,0,"#"],TZ:["255","00[056]","(?:[25-8]\\d|41|90)\\d{7}",[9],[["(\\d{3})(\\d{2})(\\d{4})","$1 $2 $3",["[89]"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[24]"],"0$1"],["(\\d{2})(\\d{7})","$1 $2",["5"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[67]"],"0$1"]],"0"],UA:["380","00","[89]\\d{9}|[3-9]\\d{8}",[9,10],[["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["6[12][29]|(?:3[1-8]|4[136-8]|5[12457]|6[49])2|(?:56|65)[24]","6[12][29]|(?:35|4[1378]|5[12457]|6[49])2|(?:56|65)[24]|(?:3[1-46-8]|46)2[013-9]"],"0$1"],["(\\d{4})(\\d{5})","$1 $2",["3[1-8]|4(?:[1367]|[45][6-9]|8[4-6])|5(?:[1-5]|6[0135689]|7[4-6])|6(?:[12][3-7]|[459])","3[1-8]|4(?:[1367]|[45][6-9]|8[4-6])|5(?:[1-5]|6(?:[015689]|3[02389])|7[4-6])|6(?:[12][3-7]|[459])"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[3-7]|89|9[1-9]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3,4})","$1 $2 $3",["[89]"],"0$1"]],"0",0,0,0,0,0,0,"0~0"],UG:["256","00[057]","800\\d{6}|(?:[29]0|[347]\\d)\\d{7}",[9],[["(\\d{4})(\\d{5})","$1 $2",["202","2024"],"0$1"],["(\\d{3})(\\d{6})","$1 $2",["[27-9]|4(?:6[45]|[7-9])"],"0$1"],["(\\d{2})(\\d{7})","$1 $2",["[34]"],"0$1"]],"0"],US:["1","011","[2-9]\\d{9}|3\\d{6}",[10],[["(\\d{3})(\\d{4})","$1-$2",["310"],0,1],["(\\d{3})(\\d{3})(\\d{4})","($1) $2-$3",["[2-9]"],0,1,"$1-$2-$3"]],"1",0,0,0,0,0,[["(?:3052(?:0[0-8]|[1-9]\\d)|5056(?:[0-35-9]\\d|4[0-468]))\\d{4}|(?:2742|305[3-9]|472[247-9]|505[2-57-9]|983[2-47-9])\\d{6}|(?:2(?:0[1-35-9]|1[02-9]|2[03-57-9]|3[1459]|4[08]|5[1-46]|6[0279]|7[0269]|8[13])|3(?:0[1-47-9]|1[02-9]|2[0135-79]|3[0-24679]|4[167]|5[0-2]|6[01349]|8[056])|4(?:0[124-9]|1[02-579]|2[3-5]|3[0245]|4[023578]|58|6[349]|7[0589]|8[04])|5(?:0[1-47-9]|1[0235-8]|20|3[0149]|4[01]|5[179]|6[1-47]|7[0-5]|8[0256])|6(?:0[1-35-9]|1[024-9]|2[03689]|3[016]|4[0156]|5[01679]|6[0-279]|78|8[0-29])|7(?:0[1-46-8]|1[2-9]|2[04-8]|3[0-247]|4[037]|5[47]|6[02359]|7[0-59]|8[156])|8(?:0[1-68]|1[02-8]|2[068]|3[0-2589]|4[03578]|5[046-9]|6[02-5]|7[028])|9(?:0[1346-9]|1[02-9]|2[0589]|3[0146-8]|4[01357-9]|5[12469]|7[0-389]|8[04-69]))[2-9]\\d{6}"],[""],["8(?:00|33|44|55|66|77|88)[2-9]\\d{6}"],["900[2-9]\\d{6}"],["52(?:3(?:[2-46-9][02-9]\\d|5(?:[02-46-9]\\d|5[0-46-9]))|4(?:[2-478][02-9]\\d|5(?:[034]\\d|2[024-9]|5[0-46-9])|6(?:0[1-9]|[2-9]\\d)|9(?:[05-9]\\d|2[0-5]|49)))\\d{4}|52[34][2-9]1[02-9]\\d{4}|5(?:00|2[125-9]|33|44|66|77|88)[2-9]\\d{6}"],0,0,0,["305209\\d{4}"]]],UY:["598","0(?:0|1[3-9]\\d)","0004\\d{2,9}|[1249]\\d{7}|(?:[49]\\d|80)\\d{5}",[6,7,8,9,10,11,12,13],[["(\\d{3})(\\d{3,4})","$1 $2",["0"]],["(\\d{3})(\\d{4})","$1 $2",["[49]0|8"],"0$1"],["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["9"],"0$1"],["(\\d{4})(\\d{4})","$1 $2",["[124]"]],["(\\d{3})(\\d{3})(\\d{2,4})","$1 $2 $3",["0"]],["(\\d{3})(\\d{3})(\\d{3})(\\d{2,4})","$1 $2 $3 $4",["0"]]],"0",0,0,0,0,0,0,"00"," int. "],UZ:["998","00","(?:20|33|[5-9]\\d)\\d{7}",[9],[["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[235-9]"]]]],VA:["39","00","0\\d{5,10}|3[0-8]\\d{7,10}|55\\d{8}|8\\d{5}(?:\\d{2,4})?|(?:1\\d|39)\\d{7,8}",[6,7,8,9,10,11,12],0,0,0,0,0,0,"06698"],VC:["1","011","(?:[58]\\d\\d|784|900)\\d{7}",[10],0,"1",0,"([2-7]\\d{6})$|1","784$1",0,"784"],VE:["58","00","[68]00\\d{7}|(?:[24]\\d|[59]0)\\d{8}",[10],[["(\\d{3})(\\d{7})","$1-$2",["[24-689]"],"0$1"]],"0"],VG:["1","011","(?:284|[58]\\d\\d|900)\\d{7}",[10],0,"1",0,"([2-578]\\d{6})$|1","284$1",0,"284"],VI:["1","011","[58]\\d{9}|(?:34|90)0\\d{7}",[10],0,"1",0,"([2-9]\\d{6})$|1","340$1",0,"340"],VN:["84","00","[12]\\d{9}|[135-9]\\d{8}|[16]\\d{7}|[16-8]\\d{6}",[7,8,9,10],[["(\\d{2})(\\d{5})","$1 $2",["80"],"0$1",1],["(\\d{4})(\\d{4,6})","$1 $2",["1"],0,1],["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["6"],"0$1",1],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[357-9]"],"0$1",1],["(\\d{2})(\\d{4})(\\d{4})","$1 $2 $3",["2[48]"],"0$1",1],["(\\d{3})(\\d{4})(\\d{3})","$1 $2 $3",["2"],"0$1",1]],"0"],VU:["678","00","[57-9]\\d{6}|(?:[238]\\d|48)\\d{3}",[5,7],[["(\\d{3})(\\d{4})","$1 $2",["[57-9]"]]]],WF:["681","00","(?:40|72|8\\d{4})\\d{4}|[89]\\d{5}",[6,9],[["(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3",["[47-9]"]],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["8"]]]],WS:["685","0","(?:[2-6]|8\\d{5})\\d{4}|[78]\\d{6}|[68]\\d{5}",[5,6,7,10],[["(\\d{5})","$1",["[2-5]|6[1-9]"]],["(\\d{3})(\\d{3,7})","$1 $2",["[68]"]],["(\\d{2})(\\d{5})","$1 $2",["7"]]]],XK:["383","00","2\\d{7,8}|3\\d{7,11}|(?:4\\d\\d|[89]00)\\d{5}",[8,9,10,11,12],[["(\\d{3})(\\d{5})","$1 $2",["[89]"],"0$1"],["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["[2-4]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["2|39"],"0$1"],["(\\d{2})(\\d{7,10})","$1 $2",["3"],"0$1"]],"0"],YE:["967","00","(?:1|7\\d)\\d{7}|[1-7]\\d{6}",[7,8,9],[["(\\d)(\\d{3})(\\d{3,4})","$1 $2 $3",["[1-6]|7(?:[24-6]|8[0-7])"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["7"],"0$1"]],"0"],YT:["262","00","7093\\d{5}|(?:80|9\\d)\\d{7}|(?:26|63)9\\d{6}",[9],0,"0",0,0,0,0,0,[["269(?:0[0-467]|15|5[0-4]|6\\d|[78]0)\\d{4}"],["(?:639(?:0[0-79]|1[019]|[267]\\d|3[09]|40|5[05-9]|9[04-79])|7093[5-7])\\d{4}"],["80\\d{7}"],0,0,0,0,0,["9(?:(?:39|47)8[01]|769\\d)\\d{4}"]]],ZA:["27","00","[1-79]\\d{8}|8\\d{4,9}",[5,6,7,8,9,10],[["(\\d{2})(\\d{3,4})","$1 $2",["8[1-4]"],"0$1"],["(\\d{2})(\\d{3})(\\d{2,3})","$1 $2 $3",["8[1-4]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["860"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[1-9]"],"0$1"],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["8"],"0$1"]],"0"],ZM:["260","00","800\\d{6}|(?:21|[579]\\d|63)\\d{7}",[9],[["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[28]"],"0$1"],["(\\d{2})(\\d{7})","$1 $2",["[579]"],"0$1"]],"0"],ZW:["263","00","2(?:[0-57-9]\\d{6,8}|6[0-24-9]\\d{6,7})|[38]\\d{9}|[35-8]\\d{8}|[3-6]\\d{7}|[1-689]\\d{6}|[1-3569]\\d{5}|[1356]\\d{4}",[5,6,7,8,9,10],[["(\\d{3})(\\d{3,5})","$1 $2",["2(?:0[45]|2[278]|[49]8)|3(?:[09]8|17)|6(?:[29]8|37|75)|[23][78]|(?:33|5[15]|6[68])[78]"],"0$1"],["(\\d)(\\d{3})(\\d{2,4})","$1 $2 $3",["[49]"],"0$1"],["(\\d{3})(\\d{4})","$1 $2",["80"],"0$1"],["(\\d{2})(\\d{7})","$1 $2",["24|8[13-59]|(?:2[05-79]|39|5[45]|6[15-8])2","2(?:02[014]|4|[56]20|[79]2)|392|5(?:42|525)|6(?:[16-8]21|52[013])|8[13-59]"],"(0$1)"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["7"],"0$1"],["(\\d{3})(\\d{3})(\\d{3,4})","$1 $2 $3",["2(?:1[39]|2[0157]|[378]|[56][14])|3(?:12|29)","2(?:1[39]|2[0157]|[378]|[56][14])|3(?:123|29)"],"0$1"],["(\\d{4})(\\d{6})","$1 $2",["8"],"0$1"],["(\\d{2})(\\d{3,5})","$1 $2",["1|2(?:0[0-36-9]|12|29|[56])|3(?:1[0-689]|[24-6])|5(?:[0236-9]|1[2-4])|6(?:[013-59]|7[0-46-9])|(?:33|55|6[68])[0-69]|(?:29|3[09]|62)[0-79]"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["29[013-9]|39|54"],"0$1"],["(\\d{4})(\\d{3,5})","$1 $2",["(?:25|54)8","258|5483"],"0$1"]],"0"]},nonGeographic:{800:["800",0,"(?:00|[1-9]\\d)\\d{6}",[8],[["(\\d{4})(\\d{4})","$1 $2",["\\d"]]],0,0,0,0,0,0,[0,0,["(?:00|[1-9]\\d)\\d{6}"]]],808:["808",0,"[1-9]\\d{7}",[8],[["(\\d{4})(\\d{4})","$1 $2",["[1-9]"]]],0,0,0,0,0,0,[0,0,0,0,0,0,0,0,0,["[1-9]\\d{7}"]]],870:["870",0,"7\\d{11}|[235-7]\\d{8}",[9,12],[["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[235-7]"]]],0,0,0,0,0,0,[0,["(?:[356]|774[45])\\d{8}|7[6-8]\\d{7}"],0,0,0,0,0,0,["2\\d{8}",[9]]]],878:["878",0,"10\\d{10}",[12],[["(\\d{2})(\\d{5})(\\d{5})","$1 $2 $3",["1"]]],0,0,0,0,0,0,[0,0,0,0,0,0,0,0,["10\\d{10}"]]],881:["881",0,"6\\d{9}|[0-36-9]\\d{8}",[9,10],[["(\\d)(\\d{3})(\\d{5})","$1 $2 $3",["[0-37-9]"]],["(\\d)(\\d{3})(\\d{5,6})","$1 $2 $3",["6"]]],0,0,0,0,0,0,[0,["6\\d{9}|[0-36-9]\\d{8}"]]],882:["882",0,"[13]\\d{6}(?:\\d{2,5})?|[19]\\d{7}|(?:[25]\\d\\d|4)\\d{7}(?:\\d{2})?",[7,8,9,10,11,12],[["(\\d{2})(\\d{5})","$1 $2",["16|342"]],["(\\d{2})(\\d{6})","$1 $2",["49"]],["(\\d{2})(\\d{2})(\\d{4})","$1 $2 $3",["1[36]|9"]],["(\\d{2})(\\d{4})(\\d{3})","$1 $2 $3",["3[23]"]],["(\\d{2})(\\d{3,4})(\\d{4})","$1 $2 $3",["16"]],["(\\d{2})(\\d{4})(\\d{4})","$1 $2 $3",["10|23|3(?:[15]|4[57])|4|51"]],["(\\d{3})(\\d{4})(\\d{4})","$1 $2 $3",["34"]],["(\\d{2})(\\d{4,5})(\\d{5})","$1 $2 $3",["[1-35]"]]],0,0,0,0,0,0,[0,["342\\d{4}|(?:337|49)\\d{6}|(?:3(?:2|47|7\\d{3})|50\\d{3})\\d{7}",[7,8,9,10,12]],0,0,0,["348[57]\\d{7}",[11]],0,0,["1(?:3(?:0[0347]|[13][0139]|2[035]|4[013568]|6[0459]|7[06]|8[15-8]|9[0689])\\d{4}|6\\d{5,10})|(?:345\\d|9[89])\\d{6}|(?:10|2(?:3|85\\d)|3(?:[15]|[69]\\d\\d)|4[15-8]|51)\\d{8}"]]],883:["883",0,"(?:[1-4]\\d|51)\\d{6,10}",[8,9,10,11,12],[["(\\d{3})(\\d{3})(\\d{2,8})","$1 $2 $3",["[14]|2[24-689]|3[02-689]|51[24-9]"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["510"]],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["21"]],["(\\d{4})(\\d{4})(\\d{4})","$1 $2 $3",["51[13]"]],["(\\d{3})(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3 $4",["[235]"]]],0,0,0,0,0,0,[0,0,0,0,0,0,0,0,["(?:2(?:00\\d\\d|10)|(?:370[1-9]|51\\d0)\\d)\\d{7}|51(?:00\\d{5}|[24-9]0\\d{4,7})|(?:1[0-79]|2[24-689]|3[02-689]|4[0-4])0\\d{5,9}"]]],888:["888",0,"\\d{11}",[11],[["(\\d{3})(\\d{3})(\\d{5})","$1 $2 $3"]],0,0,0,0,0,0,[0,0,0,0,0,0,["\\d{11}"]]],979:["979",0,"[1359]\\d{8}",[9],[["(\\d)(\\d{4})(\\d{4})","$1 $2 $3",["[1359]"]]],0,0,0,0,0,0,[0,0,0,["[1359]\\d{8}"]]]}};function M0e(e,t,n){switch(n){case"Backspace":t>0&&(e=e.slice(0,t-1)+e.slice(t),t--);break;case"Delete":e=e.slice(0,t)+e.slice(t+1);break}return{value:e,caret:t}}function I0e(e,t,n){for(var r={},a="",i=0,o=0;oo&&(i=a.length))),o++}t===void 0&&(i=a.length);var u={value:a,caret:i};return u}function D0e(e,t){var n=typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n)return(n=n.call(e)).next.bind(n);if(Array.isArray(e)||(n=$0e(e))||t){n&&(e=n);var r=0;return function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. -In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function $0e(e,t){if(e){if(typeof e=="string")return s8(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return s8(e,t)}}function s8(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n2&&arguments[2]!==void 0?arguments[2]:"x",r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:" ",a=e.length,i=NL("(",e),o=NL(")",e),l=i-o;l>0&&a=e.length?{done:!0}:{done:!1,value:e[r++]}}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. -In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function j0e(e,t){if(e){if(typeof e=="string")return l8(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return l8(e,t)}}function l8(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n1&&arguments[1]!==void 0?arguments[1]:"x",n=arguments.length>2?arguments[2]:void 0;if(!e)return function(a){return{text:a}};var r=NL(t,e);return function(a){if(!a)return{text:"",template:e};for(var i=0,o="",l=F0e(e.split("")),u;!(u=l()).done;){var d=u.value;if(d!==t){o+=d;continue}if(o+=a[i],i++,i===a.length&&a.length=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function ewe(e,t){if(e==null)return{};var n={},r=Object.keys(e),a,i;for(i=0;i=0)&&(n[a]=e[a]);return n}function twe(e){var t=e.ref,n=e.parse,r=e.format,a=e.value,i=e.defaultValue,o=e.controlled,l=o===void 0?!0:o,u=e.onChange,d=e.onKeyDown,f=Z0e(e,Q0e),g=R.useRef(),y=R.useCallback(function(T){g.current=T,t&&(typeof t=="function"?t(T):t.current=T)},[t]),h=R.useCallback(function(T){return Y0e(T,g.current,n,r,u)},[g,n,r,u]),v=R.useCallback(function(T){if(d&&d(T),!T.defaultPrevented)return K0e(T,g.current,n,r,u)},[g,n,r,u,d]),E=yb(yb({},f),{},{ref:y,onChange:h,onKeyDown:v});return l?yb(yb({},E),{},{value:r(d8(a)?"":a).text}):yb(yb({},E),{},{defaultValue:r(d8(i)?"":i).text})}function d8(e){return e==null}var nwe=["inputComponent","parse","format","value","defaultValue","onChange","controlled","onKeyDown","type"];function f8(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function rwe(e){for(var t=1;t=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function owe(e,t){if(e==null)return{};var n={},r=Object.keys(e),a,i;for(i=0;i=0)&&(n[a]=e[a]);return n}function Ex(e,t){var n=e.inputComponent,r=n===void 0?"input":n,a=e.parse,i=e.format,o=e.value,l=e.defaultValue,u=e.onChange,d=e.controlled,f=e.onKeyDown,g=e.type,y=g===void 0?"text":g,h=iwe(e,nwe),v=twe(rwe({ref:t,parse:a,format:i,value:o,defaultValue:l,onChange:u,controlled:d,onKeyDown:f,type:y},h));return ze.createElement(r,v)}Ex=ze.forwardRef(Ex);Ex.propTypes={parse:Ye.func.isRequired,format:Ye.func.isRequired,inputComponent:Ye.elementType,type:Ye.string,value:Ye.string,defaultValue:Ye.string,onChange:Ye.func,controlled:Ye.bool,onKeyDown:Ye.func,onCut:Ye.func,onPaste:Ye.func};function p8(e,t){e=e.split("-"),t=t.split("-");for(var n=e[0].split("."),r=t[0].split("."),a=0;a<3;a++){var i=Number(n[a]),o=Number(r[a]);if(i>o)return 1;if(o>i)return-1;if(!isNaN(i)&&isNaN(o))return 1;if(isNaN(i)&&!isNaN(o))return-1}return e[1]&&t[1]?e[1]>t[1]?1:e[1]i?"TOO_SHORT":a[a.length-1]=0?"IS_POSSIBLE":"INVALID_LENGTH"}function vwe(e,t,n){if(t===void 0&&(t={}),n=new ii(n),t.v2){if(!e.countryCallingCode)throw new Error("Invalid phone number object passed");n.selectNumberingPlan(e.countryCallingCode)}else{if(!e.phone)return!1;if(e.country){if(!n.hasCountry(e.country))throw new Error("Unknown country: ".concat(e.country));n.country(e.country)}else{if(!e.countryCallingCode)throw new Error("Invalid phone number object passed");n.selectNumberingPlan(e.countryCallingCode)}}if(n.possibleLengths())return oZ(e.phone||e.nationalNumber,n);if(e.countryCallingCode&&n.isNonGeographicCallingCode(e.countryCallingCode))return!0;throw new Error('Missing "possibleLengths" in metadata. Perhaps the metadata has been generated before v1.0.18.')}function oZ(e,t){switch(C_(e,t)){case"IS_POSSIBLE":return!0;default:return!1}}function Ud(e,t){return e=e||"",new RegExp("^(?:"+t+")$").test(e)}function ywe(e,t){var n=typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n)return(n=n.call(e)).next.bind(n);if(Array.isArray(e)||(n=bwe(e))||t){n&&(e=n);var r=0;return function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. -In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function bwe(e,t){if(e){if(typeof e=="string")return v8(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return v8(e,t)}}function v8(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n=0}var LF=2,Cwe=17,kwe=3,Lo="0-90-9٠-٩۰-۹",xwe="-‐-―−ー-",_we="//",Owe="..",Rwe="  ­​⁠ ",Pwe="()()[]\\[\\]",Awe="~⁓∼~",Tu="".concat(xwe).concat(_we).concat(Owe).concat(Rwe).concat(Pwe).concat(Awe),k_="++",Nwe=new RegExp("(["+Lo+"])");function sZ(e,t,n,r){if(t){var a=new ii(r);a.selectNumberingPlan(t,n);var i=new RegExp(a.IDDPrefix());if(e.search(i)===0){e=e.slice(e.match(i)[0].length);var o=e.match(Nwe);if(!(o&&o[1]!=null&&o[1].length>0&&o[1]==="0"))return e}}}function DL(e,t){if(e&&t.numberingPlan.nationalPrefixForParsing()){var n=new RegExp("^(?:"+t.numberingPlan.nationalPrefixForParsing()+")"),r=n.exec(e);if(r){var a,i,o=r.length-1,l=o>0&&r[o];if(t.nationalPrefixTransformRule()&&l)a=e.replace(n,t.nationalPrefixTransformRule()),o>1&&(i=r[1]);else{var u=r[0];a=e.slice(u.length),l&&(i=r[1])}var d;if(l){var f=e.indexOf(r[1]),g=e.slice(0,f);g===t.numberingPlan.nationalPrefix()&&(d=t.numberingPlan.nationalPrefix())}else d=r[0];return{nationalNumber:a,nationalPrefix:d,carrierCode:i}}}return{nationalNumber:e}}function $L(e,t){var n=DL(e,t),r=n.carrierCode,a=n.nationalNumber;if(a!==e){if(!Mwe(e,a,t))return{nationalNumber:e};if(t.possibleLengths()&&!Iwe(a,t))return{nationalNumber:e}}return{nationalNumber:a,carrierCode:r}}function Mwe(e,t,n){return!(Ud(e,n.nationalNumberPattern())&&!Ud(t,n.nationalNumberPattern()))}function Iwe(e,t){switch(C_(e,t)){case"TOO_SHORT":case"INVALID_LENGTH":return!1;default:return!0}}function lZ(e,t,n,r){var a=t?yh(t,r):n;if(e.indexOf(a)===0){r=new ii(r),r.selectNumberingPlan(t,n);var i=e.slice(a.length),o=$L(i,r),l=o.nationalNumber,u=$L(e,r),d=u.nationalNumber;if(!Ud(d,r.nationalNumberPattern())&&Ud(l,r.nationalNumberPattern())||C_(d,r)==="TOO_LONG")return{countryCallingCode:a,number:i}}return{number:e}}function FF(e,t,n,r){if(!e)return{};var a;if(e[0]!=="+"){var i=sZ(e,t,n,r);if(i&&i!==e)a=!0,e="+"+i;else{if(t||n){var o=lZ(e,t,n,r),l=o.countryCallingCode,u=o.number;if(l)return{countryCallingCodeSource:"FROM_NUMBER_WITHOUT_PLUS_SIGN",countryCallingCode:l,number:u}}return{number:e}}}if(e[1]==="0")return{};r=new ii(r);for(var d=2;d-1<=kwe&&d<=e.length;){var f=e.slice(1,d);if(r.hasCallingCode(f))return r.selectNumberingPlan(f),{countryCallingCodeSource:a?"FROM_NUMBER_WITH_IDD":"FROM_NUMBER_WITH_PLUS_SIGN",countryCallingCode:f,number:e.slice(d)};d++}return{}}function uZ(e){return e.replace(new RegExp("[".concat(Tu,"]+"),"g")," ").trim()}var cZ=/(\$\d)/;function dZ(e,t,n){var r=n.useInternationalFormat,a=n.withNationalPrefix;n.carrierCode,n.metadata;var i=e.replace(new RegExp(t.pattern()),r?t.internationalFormat():a&&t.nationalPrefixFormattingRule()?t.format().replace(cZ,t.nationalPrefixFormattingRule()):t.format());return r?uZ(i):i}var Dwe=/^[\d]+(?:[~\u2053\u223C\uFF5E][\d]+)?$/;function $we(e,t,n){var r=new ii(n);if(r.selectNumberingPlan(e,t),r.defaultIDDPrefix())return r.defaultIDDPrefix();if(Dwe.test(r.IDDPrefix()))return r.IDDPrefix()}var Lwe=";ext=",bb=function(t){return"([".concat(Lo,"]{1,").concat(t,"})")};function fZ(e){var t="20",n="15",r="9",a="6",i="[  \\t,]*",o="[:\\..]?[  \\t,-]*",l="#?",u="(?:e?xt(?:ensi(?:ó?|ó))?n?|e?xtn?|доб|anexo)",d="(?:[xx##~~]|int|int)",f="[- ]+",g="[  \\t]*",y="(?:,{2}|;)",h=Lwe+bb(t),v=i+u+o+bb(t)+l,E=i+d+o+bb(r)+l,T=f+bb(a)+"#",C=g+y+o+bb(n)+l,k=g+"(?:,)+"+o+bb(r)+l;return h+"|"+v+"|"+E+"|"+T+"|"+C+"|"+k}var Fwe="["+Lo+"]{"+LF+"}",jwe="["+k_+"]{0,1}(?:["+Tu+"]*["+Lo+"]){3,}["+Tu+Lo+"]*",Uwe=new RegExp("^["+k_+"]{0,1}(?:["+Tu+"]*["+Lo+"]){1,2}$","i"),Bwe=jwe+"(?:"+fZ()+")?",Wwe=new RegExp("^"+Fwe+"$|^"+Bwe+"$","i");function zwe(e){return e.length>=LF&&Wwe.test(e)}function qwe(e){return Uwe.test(e)}function Hwe(e){var t=e.number,n=e.ext;if(!t)return"";if(t[0]!=="+")throw new Error('"formatRFC3966()" expects "number" to be in E.164 format.');return"tel:".concat(t).concat(n?";ext="+n:"")}function Vwe(e,t){var n=typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n)return(n=n.call(e)).next.bind(n);if(Array.isArray(e)||(n=Gwe(e))||t){n&&(e=n);var r=0;return function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. -In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Gwe(e,t){if(e){if(typeof e=="string")return y8(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return y8(e,t)}}function y8(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n0){var i=a.leadingDigitsPatterns()[a.leadingDigitsPatterns().length-1];if(t.search(i)!==0)continue}if(Ud(t,a.pattern()))return a}}function YP(e,t,n,r){return t?r(e,t,n):e}function Qwe(e,t,n,r,a){var i=yh(r,a.metadata);if(i===n){var o=Tx(e,t,"NATIONAL",a);return n==="1"?n+" "+o:o}var l=$we(r,void 0,a.metadata);if(l)return"".concat(l," ").concat(n," ").concat(Tx(e,null,"INTERNATIONAL",a))}function E8(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function T8(e){for(var t=1;t"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function c1e(e){return Function.toString.call(e).indexOf("[native code]")!==-1}function QS(e,t){return QS=Object.setPrototypeOf||function(r,a){return r.__proto__=a,r},QS(e,t)}function JS(e){return JS=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},JS(e)}var Rd=(function(e){s1e(n,e);var t=l1e(n);function n(r){var a;return o1e(this,n),a=t.call(this,r),Object.setPrototypeOf(hZ(a),n.prototype),a.name=a.constructor.name,a}return i1e(n)})(FL(Error)),C8=new RegExp("(?:"+fZ()+")$","i");function d1e(e){var t=e.search(C8);if(t<0)return{};for(var n=e.slice(0,t),r=e.match(C8),a=1;a=e.length?{done:!0}:{done:!1,value:e[r++]}}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. -In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function p1e(e,t){if(e){if(typeof e=="string")return k8(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return k8(e,t)}}function k8(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n=e.length?{done:!0}:{done:!1,value:e[r++]}}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. -In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function g1e(e,t){if(e){if(typeof e=="string")return x8(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return x8(e,t)}}function x8(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n=e.length?{done:!0}:{done:!1,value:e[r++]}}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. -In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function y1e(e,t){if(e){if(typeof e=="string")return _8(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return _8(e,t)}}function _8(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n=e.length)return"";var r=e.indexOf(";",n);return r>=0?e.substring(n,r):e.substring(n)}function R1e(e){return e===null?!0:e.length===0?!1:S1e.test(e)||x1e.test(e)}function P1e(e,t){var n=t.extractFormattedPhoneNumber,r=O1e(e);if(!R1e(r))throw new Rd("NOT_A_NUMBER");var a;if(r===null)a=n(e)||"";else{a="",r.charAt(0)===wZ&&(a+=r);var i=e.indexOf(R8),o;i>=0?o=i+R8.length:o=0;var l=e.indexOf(BL);a+=e.substring(o,l)}var u=a.indexOf(_1e);if(u>0&&(a=a.substring(0,u)),a!=="")return a}var A1e=250,N1e=new RegExp("["+k_+Lo+"]"),M1e=new RegExp("[^"+Lo+"#]+$");function I1e(e,t,n){if(t=t||{},n=new ii(n),t.defaultCountry&&!n.hasCountry(t.defaultCountry))throw t.v2?new Rd("INVALID_COUNTRY"):new Error("Unknown country: ".concat(t.defaultCountry));var r=$1e(e,t.v2,t.extract),a=r.number,i=r.ext,o=r.error;if(!a){if(t.v2)throw o==="TOO_SHORT"?new Rd("TOO_SHORT"):new Rd("NOT_A_NUMBER");return{}}var l=F1e(a,t.defaultCountry,t.defaultCallingCode,n),u=l.country,d=l.nationalNumber,f=l.countryCallingCode,g=l.countryCallingCodeSource,y=l.carrierCode;if(!n.hasSelectedNumberingPlan()){if(t.v2)throw new Rd("INVALID_COUNTRY");return{}}if(!d||d.lengthCwe){if(t.v2)throw new Rd("TOO_LONG");return{}}if(t.v2){var h=new pZ(f,d,n.metadata);return u&&(h.country=u),y&&(h.carrierCode=y),i&&(h.ext=i),h.__countryCallingCodeSource=g,h}var v=(t.extended?n.hasSelectedNumberingPlan():u)?Ud(d,n.nationalNumberPattern()):!1;return t.extended?{country:u,countryCallingCode:f,carrierCode:y,valid:v,possible:v?!0:!!(t.extended===!0&&n.possibleLengths()&&oZ(d,n)),phone:d,ext:i}:v?L1e(u,d,i):{}}function D1e(e,t,n){if(e){if(e.length>A1e){if(n)throw new Rd("TOO_LONG");return}if(t===!1)return e;var r=e.search(N1e);if(!(r<0))return e.slice(r).replace(M1e,"")}}function $1e(e,t,n){var r=P1e(e,{extractFormattedPhoneNumber:function(o){return D1e(o,n,t)}});if(!r)return{};if(!zwe(r))return qwe(r)?{error:"TOO_SHORT"}:{};var a=d1e(r);return a.ext?a:{number:r}}function L1e(e,t,n){var r={country:e,phone:t};return n&&(r.ext=n),r}function F1e(e,t,n,r){var a=FF(jL(e),t,n,r.metadata),i=a.countryCallingCodeSource,o=a.countryCallingCode,l=a.number,u;if(o)r.selectNumberingPlan(o);else if(l&&(t||n))r.selectNumberingPlan(t,n),t&&(u=t),o=n||yh(t,r.metadata);else return{};if(!l)return{countryCallingCodeSource:i,countryCallingCode:o};var d=$L(jL(l),r),f=d.nationalNumber,g=d.carrierCode,y=bZ(o,{nationalNumber:f,defaultCountry:t,metadata:r});return y&&(u=y,y==="001"||r.country(u)),{country:u,countryCallingCode:o,countryCallingCodeSource:i,nationalNumber:f,carrierCode:g}}function P8(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function A8(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=new Array(t);n=e.length?{done:!0}:{done:!1,value:e[r++]}}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. -In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function rSe(e,t){if(e){if(typeof e=="string")return $8(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return $8(e,t)}}function $8(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n1;)t&1&&(n+=e),t>>=1,e+=e;return n+e}function L8(e,t){return e[t]===")"&&t++,aSe(e.slice(0,t))}function aSe(e){for(var t=[],n=0;n=e.length?{done:!0}:{done:!1,value:e[r++]}}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. -In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function vSe(e,t){if(e){if(typeof e=="string")return U8(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return U8(e,t)}}function U8(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n1&&arguments[1]!==void 0?arguments[1]:{},a=r.allowOverflow;if(!n)throw new Error("String is required");var i=WL(n.split(""),this.matchTree,!0);if(i&&i.match&&delete i.matchedChars,!(i&&i.overflow&&!a))return i}}]),e})();function WL(e,t,n){if(typeof t=="string"){var r=e.join("");return t.indexOf(r)===0?e.length===t.length?{match:!0,matchedChars:e}:{partialMatch:!0}:r.indexOf(t)===0?n&&e.length>t.length?{overflow:!0}:{match:!0,matchedChars:e.slice(0,t.length)}:void 0}if(Array.isArray(t)){for(var a=e.slice(),i=0;i=e.length?{done:!0}:{done:!1,value:e[r++]}}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. -In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function ESe(e,t){if(e){if(typeof e=="string")return W8(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return W8(e,t)}}function W8(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n=0)){var a=this.getTemplateForFormat(n,r);if(a)return this.setNationalNumberTemplate(a,r),!0}}},{key:"getSeparatorAfterNationalPrefix",value:function(n){return this.isNANP||n&&n.nationalPrefixFormattingRule()&&OSe.test(n.nationalPrefixFormattingRule())?" ":""}},{key:"getInternationalPrefixBeforeCountryCallingCode",value:function(n,r){var a=n.IDDPrefix,i=n.missingPlus;return a?r&&r.spacing===!1?a:a+" ":i?"":"+"}},{key:"getTemplate",value:function(n){if(this.template){for(var r=-1,a=0,i=n.international?this.getInternationalPrefixBeforeCountryCallingCode(n,{spacing:!1}):"";ad.length)){var f=new RegExp("^"+u+"$"),g=a.replace(/\d/g,zL);f.test(g)&&(d=g);var y=this.getFormatFormat(n,i),h;if(this.shouldTryNationalPrefixFormattingRule(n,{international:i,nationalPrefix:o})){var v=y.replace(cZ,n.nationalPrefixFormattingRule());if(Cx(n.nationalPrefixFormattingRule())===(o||"")+Cx("$1")&&(y=v,h=!0,o))for(var E=o.length;E>0;)y=y.replace(/\d/,vu),E--}var T=d.replace(new RegExp(u),y).replace(new RegExp(zL,"g"),vu);return h||(l?T=Bk(vu,l.length)+" "+T:o&&(T=Bk(vu,o.length)+this.getSeparatorAfterNationalPrefix(n)+T)),i&&(T=uZ(T)),T}}},{key:"formatNextNationalNumberDigits",value:function(n){var r=iSe(this.populatedNationalNumberTemplate,this.populatedNationalNumberTemplatePosition,n);if(!r){this.resetFormat();return}return this.populatedNationalNumberTemplate=r[0],this.populatedNationalNumberTemplatePosition=r[1],L8(this.populatedNationalNumberTemplate,this.populatedNationalNumberTemplatePosition+1)}},{key:"shouldTryNationalPrefixFormattingRule",value:function(n,r){var a=r.international,i=r.nationalPrefix;if(n.nationalPrefixFormattingRule()){var o=n.usesNationalPrefix();if(o&&i||!o&&!a)return!0}}}]),e})();function SZ(e,t){return $Se(e)||DSe(e,t)||ISe(e,t)||MSe()}function MSe(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. -In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function ISe(e,t){if(e){if(typeof e=="string")return q8(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return q8(e,t)}}function q8(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n=3;if(r.appendDigits(n),i&&this.extractIddPrefix(r),this.isWaitingForCountryCallingCode(r)){if(!this.extractCountryCallingCode(r))return}else r.appendNationalSignificantNumberDigits(n);r.international||this.hasExtractedNationalSignificantNumber||this.extractNationalSignificantNumber(r.getNationalDigits(),function(o){return r.update(o)})}},{key:"isWaitingForCountryCallingCode",value:function(n){var r=n.international,a=n.callingCode;return r&&!a}},{key:"extractCountryCallingCode",value:function(n){var r=FF("+"+n.getDigitsWithoutInternationalPrefix(),this.defaultCountry,this.defaultCallingCode,this.metadata.metadata),a=r.countryCallingCode,i=r.number;if(a)return n.setCallingCode(a),n.update({nationalSignificantNumber:i}),!0}},{key:"reset",value:function(n){if(n){this.hasSelectedNumberingPlan=!0;var r=n._nationalPrefixForParsing();this.couldPossiblyExtractAnotherNationalSignificantNumber=r&&qSe.test(r)}else this.hasSelectedNumberingPlan=void 0,this.couldPossiblyExtractAnotherNationalSignificantNumber=void 0}},{key:"extractNationalSignificantNumber",value:function(n,r){if(this.hasSelectedNumberingPlan){var a=DL(n,this.metadata),i=a.nationalPrefix,o=a.nationalNumber,l=a.carrierCode;if(o!==n)return this.onExtractedNationalNumber(i,l,o,n,r),!0}}},{key:"extractAnotherNationalSignificantNumber",value:function(n,r,a){if(!this.hasExtractedNationalSignificantNumber)return this.extractNationalSignificantNumber(n,a);if(this.couldPossiblyExtractAnotherNationalSignificantNumber){var i=DL(n,this.metadata),o=i.nationalPrefix,l=i.nationalNumber,u=i.carrierCode;if(l!==r)return this.onExtractedNationalNumber(o,u,l,n,a),!0}}},{key:"onExtractedNationalNumber",value:function(n,r,a,i,o){var l,u,d=i.lastIndexOf(a);if(d>=0&&d===i.length-a.length){u=!0;var f=i.slice(0,d);f!==n&&(l=f)}o({nationalPrefix:n,carrierCode:r,nationalSignificantNumber:a,nationalSignificantNumberMatchesInput:u,complexPrefixBeforeNationalSignificantNumber:l}),this.hasExtractedNationalSignificantNumber=!0,this.onNationalSignificantNumberChange()}},{key:"reExtractNationalSignificantNumber",value:function(n){if(this.extractAnotherNationalSignificantNumber(n.getNationalDigits(),n.nationalSignificantNumber,function(r){return n.update(r)}))return!0;if(this.extractIddPrefix(n))return this.extractCallingCodeAndNationalSignificantNumber(n),!0;if(this.fixMissingPlus(n))return this.extractCallingCodeAndNationalSignificantNumber(n),!0}},{key:"extractIddPrefix",value:function(n){var r=n.international,a=n.IDDPrefix,i=n.digits;if(n.nationalSignificantNumber,!(r||a)){var o=sZ(i,this.defaultCountry,this.defaultCallingCode,this.metadata.metadata);if(o!==void 0&&o!==i)return n.update({IDDPrefix:i.slice(0,i.length-o.length)}),this.startInternationalNumber(n,{country:void 0,callingCode:void 0}),!0}}},{key:"fixMissingPlus",value:function(n){if(!n.international){var r=lZ(n.digits,this.defaultCountry,this.defaultCallingCode,this.metadata.metadata),a=r.countryCallingCode;if(r.number,a)return n.update({missingPlus:!0}),this.startInternationalNumber(n,{country:n.country,callingCode:a}),!0}}},{key:"startInternationalNumber",value:function(n,r){var a=r.country,i=r.callingCode;n.startInternationalNumber(a,i),n.nationalSignificantNumber&&(n.resetNationalSignificantNumber(),this.onNationalSignificantNumberChange(),this.hasExtractedNationalSignificantNumber=void 0)}},{key:"extractCallingCodeAndNationalSignificantNumber",value:function(n){this.extractCountryCallingCode(n)&&this.extractNationalSignificantNumber(n.getNationalDigits(),function(r){return n.update(r)})}}]),e})();function VSe(e){var t=e.search(WSe);if(!(t<0)){e=e.slice(t);var n;return e[0]==="+"&&(n=!0,e=e.slice(1)),e=e.replace(zSe,""),n&&(e="+"+e),e}}function GSe(e){var t=VSe(e)||"";return t[0]==="+"?[t.slice(1),!0]:[t]}function YSe(e){var t=GSe(e),n=SZ(t,2),r=n[0],a=n[1];return BSe.test(r)||(r=""),[r,a]}function KSe(e,t){return ZSe(e)||JSe(e,t)||QSe(e,t)||XSe()}function XSe(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. -In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function QSe(e,t){if(e){if(typeof e=="string")return H8(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return H8(e,t)}}function H8(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n1}},{key:"determineTheCountry",value:function(){this.state.setCountry(bZ(this.isInternational()?this.state.callingCode:this.defaultCallingCode,{nationalNumber:this.state.nationalSignificantNumber,defaultCountry:this.defaultCountry,metadata:this.metadata}))}},{key:"getNumberValue",value:function(){var n=this.state,r=n.digits,a=n.callingCode,i=n.country,o=n.nationalSignificantNumber;if(r){if(this.isInternational())return a?"+"+a+o:"+"+r;if(i||a){var l=i?this.metadata.countryCallingCode():a;return"+"+l+o}}}},{key:"getNumber",value:function(){var n=this.state,r=n.nationalSignificantNumber,a=n.carrierCode,i=n.callingCode,o=this._getCountry();if(r&&!(!o&&!i)){if(o&&o===this.defaultCountry){var l=new ii(this.metadata.metadata);l.selectNumberingPlan(o);var u=l.numberingPlan.callingCode(),d=this.metadata.getCountryCodesForCallingCode(u);if(d.length>1){var f=yZ(r,{countries:d,defaultCountry:this.defaultCountry,metadata:this.metadata.metadata});f&&(o=f)}}var g=new pZ(o||i,r,this.metadata.metadata);return a&&(g.carrierCode=a),g}}},{key:"isPossible",value:function(){var n=this.getNumber();return n?n.isPossible():!1}},{key:"isValid",value:function(){var n=this.getNumber();return n?n.isValid():!1}},{key:"getNationalNumber",value:function(){return this.state.nationalSignificantNumber}},{key:"getChars",value:function(){return(this.state.international?"+":"")+this.state.digits}},{key:"getTemplate",value:function(){return this.formatter.getTemplate(this.state)||this.getNonFormattedTemplate()||""}}]),e})();function V8(e){return new ii(e).getCountries()}function rEe(e,t,n){return n||(n=t,t=void 0),new k0(t,n).input(e)}function EZ(e){var t=e.inputFormat,n=e.country,r=e.metadata;return t==="NATIONAL_PART_OF_INTERNATIONAL"?"+".concat(yh(n,r)):""}function qL(e,t){return t&&(e=e.slice(t.length),e[0]===" "&&(e=e.slice(1))),e}function aEe(e,t,n){if(!(n&&n.ignoreRest)){var r=function(i){if(n)switch(i){case"end":n.ignoreRest=!0;break}};return vZ(e,t,r)}}function TZ(e){var t=e.onKeyDown,n=e.inputFormat;return R.useCallback(function(r){if(r.keyCode===oEe&&n==="INTERNATIONAL"&&r.target instanceof HTMLInputElement&&iEe(r.target)===sEe.length){r.preventDefault();return}t&&t(r)},[t,n])}function iEe(e){return e.selectionStart}var oEe=8,sEe="+",lEe=["onKeyDown","country","inputFormat","metadata","international","withCountryCallingCode"];function HL(){return HL=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function cEe(e,t){if(e==null)return{};var n={},r=Object.keys(e),a,i;for(i=0;i=0)&&(n[a]=e[a]);return n}function dEe(e){function t(n,r){var a=n.onKeyDown,i=n.country,o=n.inputFormat,l=n.metadata,u=l===void 0?e:l;n.international,n.withCountryCallingCode;var d=uEe(n,lEe),f=R.useCallback(function(y){var h=new k0(i,u),v=EZ({inputFormat:o,country:i,metadata:u}),E=h.input(v+y),T=h.getTemplate();return v&&(E=qL(E,v),T&&(T=qL(T,v))),{text:E,template:T}},[i,u]),g=TZ({onKeyDown:a,inputFormat:o});return ze.createElement(Ex,HL({},d,{ref:r,parse:aEe,format:f,onKeyDown:g}))}return t=ze.forwardRef(t),t.propTypes={value:Ye.string.isRequired,onChange:Ye.func.isRequired,onKeyDown:Ye.func,country:Ye.string,inputFormat:Ye.oneOf(["INTERNATIONAL","NATIONAL_PART_OF_INTERNATIONAL","NATIONAL","INTERNATIONAL_OR_NATIONAL"]).isRequired,metadata:Ye.object},t}const fEe=dEe();var pEe=["value","onChange","onKeyDown","country","inputFormat","metadata","inputComponent","international","withCountryCallingCode"];function VL(){return VL=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function mEe(e,t){if(e==null)return{};var n={},r=Object.keys(e),a,i;for(i=0;i=0)&&(n[a]=e[a]);return n}function gEe(e){function t(n,r){var a=n.value,i=n.onChange,o=n.onKeyDown,l=n.country,u=n.inputFormat,d=n.metadata,f=d===void 0?e:d,g=n.inputComponent,y=g===void 0?"input":g;n.international,n.withCountryCallingCode;var h=hEe(n,pEe),v=EZ({inputFormat:u,country:l,metadata:f}),E=R.useCallback(function(C){var k=jL(C.target.value);if(k===a){var _=G8(v,k,l,f);_.indexOf(C.target.value)===0&&(k=k.slice(0,-1))}i(k)},[v,a,i,l,f]),T=TZ({onKeyDown:o,inputFormat:u});return ze.createElement(y,VL({},h,{ref:r,value:G8(v,a,l,f),onChange:E,onKeyDown:T}))}return t=ze.forwardRef(t),t.propTypes={value:Ye.string.isRequired,onChange:Ye.func.isRequired,onKeyDown:Ye.func,country:Ye.string,inputFormat:Ye.oneOf(["INTERNATIONAL","NATIONAL_PART_OF_INTERNATIONAL","NATIONAL","INTERNATIONAL_OR_NATIONAL"]).isRequired,metadata:Ye.object,inputComponent:Ye.elementType},t}const vEe=gEe();function G8(e,t,n,r){return qL(rEe(e+t,n,r),e)}function yEe(e){return Y8(e[0])+Y8(e[1])}function Y8(e){return String.fromCodePoint(127397+e.toUpperCase().charCodeAt(0))}var bEe=["value","onChange","options","disabled","readOnly"],wEe=["value","options","className","iconComponent","getIconAspectRatio","arrowComponent","unicodeFlags"];function SEe(e,t){var n=typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n)return(n=n.call(e)).next.bind(n);if(Array.isArray(e)||(n=EEe(e))||t){n&&(e=n);var r=0;return function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. -In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function EEe(e,t){if(e){if(typeof e=="string")return K8(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return K8(e,t)}}function K8(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function TEe(e,t){if(e==null)return{};var n={},r=Object.keys(e),a,i;for(i=0;i=0)&&(n[a]=e[a]);return n}function kZ(e){var t=e.value,n=e.onChange,r=e.options,a=e.disabled,i=e.readOnly,o=CZ(e,bEe),l=R.useCallback(function(u){var d=u.target.value;n(d==="ZZ"?void 0:d)},[n]);return R.useMemo(function(){return _Z(r,t)},[r,t]),ze.createElement("select",kx({},o,{disabled:a||i,readOnly:i,value:t||"ZZ",onChange:l}),r.map(function(u){var d=u.value,f=u.label,g=u.divider;return ze.createElement("option",{key:g?"|":d||"ZZ",value:g?"|":d||"ZZ",disabled:!!g,style:g?CEe:void 0},f)}))}kZ.propTypes={value:Ye.string,onChange:Ye.func.isRequired,options:Ye.arrayOf(Ye.shape({value:Ye.string,label:Ye.string,divider:Ye.bool})).isRequired,disabled:Ye.bool,readOnly:Ye.bool};var CEe={fontSize:"1px",backgroundColor:"currentColor",color:"inherit"};function xZ(e){var t=e.value,n=e.options,r=e.className,a=e.iconComponent;e.getIconAspectRatio;var i=e.arrowComponent,o=i===void 0?kEe:i,l=e.unicodeFlags,u=CZ(e,wEe),d=R.useMemo(function(){return _Z(n,t)},[n,t]);return ze.createElement("div",{className:"PhoneInputCountry"},ze.createElement(kZ,kx({},u,{value:t,options:n,className:oa("PhoneInputCountrySelect",r)})),d&&(l&&t?ze.createElement("div",{className:"PhoneInputCountryIconUnicode"},yEe(t)):ze.createElement(a,{"aria-hidden":!0,country:t,label:d.label,aspectRatio:l?1:void 0})),ze.createElement(o,null))}xZ.propTypes={iconComponent:Ye.elementType,arrowComponent:Ye.elementType,unicodeFlags:Ye.bool};function kEe(){return ze.createElement("div",{className:"PhoneInputCountrySelectArrow"})}function _Z(e,t){for(var n=SEe(e),r;!(r=n()).done;){var a=r.value;if(!a.divider&&xEe(a.value,t))return a}}function xEe(e,t){return e==null?t==null:e===t}var _Ee=["country","countryName","flags","flagUrl"];function GL(){return GL=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function REe(e,t){if(e==null)return{};var n={},r=Object.keys(e),a,i;for(i=0;i=0)&&(n[a]=e[a]);return n}function jF(e){var t=e.country,n=e.countryName,r=e.flags,a=e.flagUrl,i=OEe(e,_Ee);return r&&r[t]?r[t]({title:n}):ze.createElement("img",GL({},i,{alt:n,role:n?void 0:"presentation",src:a.replace("{XX}",t).replace("{xx}",t.toLowerCase())}))}jF.propTypes={country:Ye.string.isRequired,countryName:Ye.string.isRequired,flags:Ye.objectOf(Ye.elementType),flagUrl:Ye.string.isRequired};var PEe=["aspectRatio"],AEe=["title"],NEe=["title"];function xx(){return xx=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function MEe(e,t){if(e==null)return{};var n={},r=Object.keys(e),a,i;for(i=0;i=0)&&(n[a]=e[a]);return n}function x_(e){var t=e.aspectRatio,n=UF(e,PEe);return t===1?ze.createElement(RZ,n):ze.createElement(OZ,n)}x_.propTypes={title:Ye.string.isRequired,aspectRatio:Ye.number};function OZ(e){var t=e.title,n=UF(e,AEe);return ze.createElement("svg",xx({},n,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 75 50"}),ze.createElement("title",null,t),ze.createElement("g",{className:"PhoneInputInternationalIconGlobe",stroke:"currentColor",fill:"none",strokeWidth:"2",strokeMiterlimit:"10"},ze.createElement("path",{strokeLinecap:"round",d:"M47.2,36.1C48.1,36,49,36,50,36c7.4,0,14,1.7,18.5,4.3"}),ze.createElement("path",{d:"M68.6,9.6C64.2,12.3,57.5,14,50,14c-7.4,0-14-1.7-18.5-4.3"}),ze.createElement("line",{x1:"26",y1:"25",x2:"74",y2:"25"}),ze.createElement("line",{x1:"50",y1:"1",x2:"50",y2:"49"}),ze.createElement("path",{strokeLinecap:"round",d:"M46.3,48.7c1.2,0.2,2.5,0.3,3.7,0.3c13.3,0,24-10.7,24-24S63.3,1,50,1S26,11.7,26,25c0,2,0.3,3.9,0.7,5.8"}),ze.createElement("path",{strokeLinecap:"round",d:"M46.8,48.2c1,0.6,2.1,0.8,3.2,0.8c6.6,0,12-10.7,12-24S56.6,1,50,1S38,11.7,38,25c0,1.4,0.1,2.7,0.2,4c0,0.1,0,0.2,0,0.2"})),ze.createElement("path",{className:"PhoneInputInternationalIconPhone",stroke:"none",fill:"currentColor",d:"M12.4,17.9c2.9-2.9,5.4-4.8,0.3-11.2S4.1,5.2,1.3,8.1C-2,11.4,1.1,23.5,13.1,35.6s24.3,15.2,27.5,11.9c2.8-2.8,7.8-6.3,1.4-11.5s-8.3-2.6-11.2,0.3c-2,2-7.2-2.2-11.7-6.7S10.4,19.9,12.4,17.9z"}))}OZ.propTypes={title:Ye.string.isRequired};function RZ(e){var t=e.title,n=UF(e,NEe);return ze.createElement("svg",xx({},n,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 50 50"}),ze.createElement("title",null,t),ze.createElement("g",{className:"PhoneInputInternationalIconGlobe",stroke:"currentColor",fill:"none",strokeWidth:"2",strokeLinecap:"round"},ze.createElement("path",{d:"M8.45,13A21.44,21.44,0,1,1,37.08,41.56"}),ze.createElement("path",{d:"M19.36,35.47a36.9,36.9,0,0,1-2.28-13.24C17.08,10.39,21.88.85,27.8.85s10.72,9.54,10.72,21.38c0,6.48-1.44,12.28-3.71,16.21"}),ze.createElement("path",{d:"M17.41,33.4A39,39,0,0,1,27.8,32.06c6.62,0,12.55,1.5,16.48,3.86"}),ze.createElement("path",{d:"M44.29,8.53c-3.93,2.37-9.86,3.88-16.49,3.88S15.25,10.9,11.31,8.54"}),ze.createElement("line",{x1:"27.8",y1:"0.85",x2:"27.8",y2:"34.61"}),ze.createElement("line",{x1:"15.2",y1:"22.23",x2:"49.15",y2:"22.23"})),ze.createElement("path",{className:"PhoneInputInternationalIconPhone",stroke:"transparent",fill:"currentColor",d:"M9.42,26.64c2.22-2.22,4.15-3.59.22-8.49S3.08,17,.93,19.17c-2.49,2.48-.13,11.74,9,20.89s18.41,11.5,20.89,9c2.15-2.15,5.91-4.77,1-8.71s-6.27-2-8.49.22c-1.55,1.55-5.48-1.69-8.86-5.08S7.87,28.19,9.42,26.64Z"}))}RZ.propTypes={title:Ye.string.isRequired};function IEe(e){if(e.length<2||e[0]!=="+")return!1;for(var t=1;t=48&&n<=57))return!1;t++}return!0}function PZ(e){IEe(e)||console.error("[react-phone-number-input] Expected the initial `value` to be a E.164 phone number. Got",e)}function DEe(e,t){var n=typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n)return(n=n.call(e)).next.bind(n);if(Array.isArray(e)||(n=$Ee(e))||t){n&&(e=n);var r=0;return function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. -In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function $Ee(e,t){if(e){if(typeof e=="string")return X8(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return X8(e,t)}}function X8(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n0))return e}function __(e,t){return aZ(e,t)?!0:(console.error("Country not found: ".concat(e)),!1)}function AZ(e,t){return e&&(e=e.filter(function(n){return __(n,t)}),e.length===0&&(e=void 0)),e}var jEe=["country","label","aspectRatio"];function YL(){return YL=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function BEe(e,t){if(e==null)return{};var n={},r=Object.keys(e),a,i;for(i=0;i=0)&&(n[a]=e[a]);return n}function NZ(e){var t=e.flags,n=e.flagUrl,r=e.flagComponent,a=e.internationalIcon;function i(o){var l=o.country,u=o.label,d=o.aspectRatio,f=UEe(o,jEe),g=a===x_?d:void 0;return ze.createElement("div",YL({},f,{className:oa("PhoneInputCountryIcon",{"PhoneInputCountryIcon--square":g===1,"PhoneInputCountryIcon--border":l})}),l?ze.createElement(r,{country:l,countryName:u,flags:t,flagUrl:n,className:"PhoneInputCountryIconImg"}):ze.createElement(a,{title:u,aspectRatio:g,className:"PhoneInputCountryIconImg"}))}return i.propTypes={country:Ye.string,label:Ye.string.isRequired,aspectRatio:Ye.number},i}NZ({flagUrl:"https://purecatamphetamine.github.io/country-flag-icons/3x2/{XX}.svg",flagComponent:jF,internationalIcon:x_});function WEe(e,t){var n=typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n)return(n=n.call(e)).next.bind(n);if(Array.isArray(e)||(n=zEe(e))||t){n&&(e=n);var r=0;return function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. -In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function zEe(e,t){if(e){if(typeof e=="string")return Q8(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Q8(e,t)}}function Q8(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n0&&(u=a()),u}function GEe(e){var t=e.countries,n=e.countryNames,r=e.addInternationalOption,a=e.compareStringsLocales,i=e.compareStrings;i||(i=eTe);var o=t.map(function(l){return{value:l,label:n[l]||l}});return o.sort(function(l,u){return i(l.label,u.label,a)}),r&&o.unshift({label:n.ZZ}),o}function DZ(e,t){return Q1e(e||"",t)}function YEe(e){return e.formatNational().replace(/\D/g,"")}function KEe(e,t){var n=t.prevCountry,r=t.newCountry,a=t.metadata,i=t.useNationalFormat;if(n===r)return e;if(!e)return i?"":r?Dd(r,a):"";if(r){if(e[0]==="+"){if(i)return e.indexOf("+"+yh(r,a))===0?tTe(e,r,a):"";if(n){var o=Dd(r,a);return e.indexOf(o)===0?e:o}else{var l=Dd(r,a);return e.indexOf(l)===0?e:l}}}else if(e[0]!=="+")return Ib(e,n,a)||"";return e}function Ib(e,t,n){if(e){if(e[0]==="+"){if(e==="+")return;var r=new k0(t,n);return r.input(e),r.getNumberValue()}if(t){var a=LZ(e,t,n);return"+".concat(yh(t,n)).concat(a||"")}}}function XEe(e,t,n){var r=LZ(e,t,n);if(r){var a=r.length-QEe(t,n);if(a>0)return e.slice(0,e.length-a)}return e}function QEe(e,t){return t=new ii(t),t.selectNumberingPlan(e),t.numberingPlan.possibleLengths()[t.numberingPlan.possibleLengths().length-1]}function $Z(e,t){var n=t.country,r=t.countries,a=t.defaultCountry,i=t.latestCountrySelectedByUser,o=t.required,l=t.metadata;if(e==="+")return n;var u=ZEe(e,l);if(u)return!r||r.indexOf(u)>=0?u:void 0;if(n){if(Qb(e,n,l)){if(i&&Qb(e,i,l))return i;if(a&&Qb(e,a,l))return a;if(!o)return}else if(!o)return}return n}function JEe(e,t){var n=t.prevPhoneDigits,r=t.country,a=t.defaultCountry,i=t.latestCountrySelectedByUser,o=t.countryRequired,l=t.getAnyCountry,u=t.countries,d=t.international,f=t.limitMaxLength,g=t.countryCallingCodeEditable,y=t.metadata;if(d&&g===!1&&r){var h=Dd(r,y);if(e.indexOf(h)!==0){var v,E=e&&e[0]!=="+";return E?(e=h+e,v=Ib(e,r,y)):e=h,{phoneDigits:e,value:v,country:r}}}d===!1&&r&&e&&e[0]==="+"&&(e=J8(e,r,y)),e&&r&&f&&(e=XEe(e,r,y)),e&&e[0]!=="+"&&(!r||d)&&(e="+"+e),!e&&n&&n[0]==="+"&&(d?r=void 0:r=a),e==="+"&&n&&n[0]==="+"&&n.length>1&&(r=void 0);var T;return e&&(e[0]==="+"&&(e==="+"||r&&Dd(r,y).indexOf(e)===0)?T=void 0:T=Ib(e,r,y)),T&&(r=$Z(T,{country:r,countries:u,defaultCountry:a,latestCountrySelectedByUser:i,required:!1,metadata:y}),d===!1&&r&&e&&e[0]==="+"&&(e=J8(e,r,y),T=Ib(e,r,y))),!r&&o&&(r=a||l()),{phoneDigits:e,country:r,value:T}}function J8(e,t,n){if(e.indexOf(Dd(t,n))===0){var r=new k0(t,n);r.input(e);var a=r.getNumber();return a?a.formatNational().replace(/\D/g,""):""}else return e.replace(/\D/g,"")}function ZEe(e,t){var n=new k0(null,t);return n.input(e),n.getCountry()}function eTe(e,t,n){return String.prototype.localeCompare?e.localeCompare(t,n):et?1:0}function tTe(e,t,n){if(t){var r="+"+yh(t,n);if(e.length=0)&&(N=P.country):(N=$Z(o,{country:void 0,countries:I,metadata:r}),N||i&&o.indexOf(Dd(i,r))===0&&(N=i))}var L;if(o){if(T){var j=N?T===N:Qb(o,T,r);j?N||(N=T):L={latestCountrySelectedByUser:void 0}}}else L={latestCountrySelectedByUser:void 0,hasUserSelectedACountry:void 0};return ok(ok({},L),{},{phoneDigits:C({phoneNumber:P,value:o,defaultCountry:i}),value:o,country:o?N:i})}}function e5(e,t){return e===null&&(e=void 0),t===null&&(t=void 0),e===t}var oTe=["name","disabled","readOnly","autoComplete","style","className","inputRef","inputComponent","numberInputProps","smartCaret","countrySelectComponent","countrySelectProps","containerComponent","containerComponentProps","defaultCountry","countries","countryOptionsOrder","labels","flags","flagComponent","flagUrl","addInternationalOption","internationalIcon","displayInitialValueAsLocalNumber","initialValueFormat","onCountryChange","limitMaxLength","countryCallingCodeEditable","focusInputOnCountrySelection","reset","metadata","international","locales"];function u0(e){"@babel/helpers - typeof";return u0=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},u0(e)}function t5(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function jZ(e){for(var t=1;t=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function lTe(e,t){if(e==null)return{};var n={},r=Object.keys(e),a,i;for(i=0;i=0)&&(n[a]=e[a]);return n}function uTe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function n5(e,t){for(var n=0;n=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function ETe(e,t){if(e==null)return{};var n={},r=Object.keys(e),a,i;for(i=0;i=0)&&(n[a]=e[a]);return n}function zZ(e){var t=ze.forwardRef(function(n,r){var a=n.metadata,i=a===void 0?e:a,o=n.labels,l=o===void 0?bTe:o,u=STe(n,wTe);return ze.createElement(WZ,XL({},u,{ref:r,metadata:i,labels:l}))});return t.propTypes={metadata:MZ,labels:IZ},t}zZ();const TTe=zZ(N0e),In=e=>{const{region:t}=sr(),{label:n,getInputRef:r,secureTextEntry:a,Icon:i,onChange:o,value:l,children:u,errorMessage:d,type:f,focused:g=!1,autoFocus:y,...h}=e,[v,E]=R.useState(!1),T=R.useRef(),C=R.useCallback(()=>{var A;(A=T.current)==null||A.focus()},[T.current]);let k=l===void 0?"":l;f==="number"&&(k=+l);const _=A=>{o&&o(f==="number"?+A.target.value:A.target.value)};return w.jsxs(rf,{focused:v,onClick:C,...e,children:[e.type==="phonenumber"?w.jsx(TTe,{country:t,autoFocus:y,value:k,onChange:A=>o&&o(A)}):w.jsx("input",{...h,ref:T,value:k,autoFocus:y,className:oa("form-control",e.errorMessage&&"is-invalid",e.validMessage&&"is-valid"),type:f||"text",onChange:_,onBlur:()=>E(!1),onFocus:()=>E(!0)}),u]})};function ao(e){"@babel/helpers - typeof";return ao=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},ao(e)}function CTe(e,t){if(ao(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(ao(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function qZ(e){var t=CTe(e,"string");return ao(t)=="symbol"?t:String(t)}function wt(e,t,n){return t=qZ(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function a5(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function Jt(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=new Array(t);n0?zi(x0,--ss):0,d0--,Ka===10&&(d0=1,R_--),Ka}function js(){return Ka=ss2||tE(Ka)>3?"":" "}function WTe(e,t){for(;--t&&js()&&!(Ka<48||Ka>102||Ka>57&&Ka<65||Ka>70&&Ka<97););return UE(e,Wk()+(t<6&&Ec()==32&&js()==32))}function ZL(e){for(;js();)switch(Ka){case e:return ss;case 34:case 39:e!==34&&e!==39&&ZL(Ka);break;case 40:e===41&&ZL(e);break;case 92:js();break}return ss}function zTe(e,t){for(;js()&&e+Ka!==57;)if(e+Ka===84&&Ec()===47)break;return"/*"+UE(t,ss-1)+"*"+O_(e===47?e:js())}function qTe(e){for(;!tE(Ec());)js();return UE(e,ss)}function HTe(e){return QZ(qk("",null,null,null,[""],e=XZ(e),0,[0],e))}function qk(e,t,n,r,a,i,o,l,u){for(var d=0,f=0,g=o,y=0,h=0,v=0,E=1,T=1,C=1,k=0,_="",A=a,P=i,N=r,I=_;T;)switch(v=k,k=js()){case 40:if(v!=108&&zi(I,g-1)==58){JL(I+=br(zk(k),"&","&\f"),"&\f")!=-1&&(C=-1);break}case 34:case 39:case 91:I+=zk(k);break;case 9:case 10:case 13:case 32:I+=BTe(v);break;case 92:I+=WTe(Wk()-1,7);continue;case 47:switch(Ec()){case 42:case 47:sk(VTe(zTe(js(),Wk()),t,n),u);break;default:I+="/"}break;case 123*E:l[d++]=hc(I)*C;case 125*E:case 59:case 0:switch(k){case 0:case 125:T=0;case 59+f:C==-1&&(I=br(I,/\f/g,"")),h>0&&hc(I)-g&&sk(h>32?s5(I+";",r,n,g-1):s5(br(I," ","")+";",r,n,g-2),u);break;case 59:I+=";";default:if(sk(N=o5(I,t,n,d,f,a,l,_,A=[],P=[],g),i),k===123)if(f===0)qk(I,t,N,N,A,i,g,l,P);else switch(y===99&&zi(I,3)===110?100:y){case 100:case 108:case 109:case 115:qk(e,N,N,r&&sk(o5(e,N,N,0,0,a,l,_,a,A=[],g),P),a,P,g,l,r?A:P);break;default:qk(I,N,N,N,[""],P,0,l,P)}}d=f=h=0,E=C=1,_=I="",g=o;break;case 58:g=1+hc(I),h=v;default:if(E<1){if(k==123)--E;else if(k==125&&E++==0&&UTe()==125)continue}switch(I+=O_(k),k*E){case 38:C=f>0?1:(I+="\f",-1);break;case 44:l[d++]=(hc(I)-1)*C,C=1;break;case 64:Ec()===45&&(I+=zk(js())),y=Ec(),f=g=hc(_=I+=qTe(Wk())),k++;break;case 45:v===45&&hc(I)==2&&(E=0)}}return i}function o5(e,t,n,r,a,i,o,l,u,d,f){for(var g=a-1,y=a===0?i:[""],h=qF(y),v=0,E=0,T=0;v0?y[C]+" "+k:br(k,/&\f/g,y[C])))&&(u[T++]=_);return P_(e,t,n,a===0?WF:l,u,d,f)}function VTe(e,t,n){return P_(e,t,n,VZ,O_(jTe()),eE(e,2,-2),0)}function s5(e,t,n,r){return P_(e,t,n,zF,eE(e,0,r),eE(e,r+1,-1),r)}function Zb(e,t){for(var n="",r=qF(e),a=0;a6)switch(zi(e,t+1)){case 109:if(zi(e,t+4)!==45)break;case 102:return br(e,/(.+:)(.+)-([^]+)/,"$1"+yr+"$2-$3$1"+Rx+(zi(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~JL(e,"stretch")?JZ(br(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(zi(e,t+1)!==115)break;case 6444:switch(zi(e,hc(e)-3-(~JL(e,"!important")&&10))){case 107:return br(e,":",":"+yr)+e;case 101:return br(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+yr+(zi(e,14)===45?"inline-":"")+"box$3$1"+yr+"$2$3$1"+Qi+"$2box$3")+e}break;case 5936:switch(zi(e,t+11)){case 114:return yr+e+Qi+br(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return yr+e+Qi+br(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return yr+e+Qi+br(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return yr+e+Qi+e+e}return e}var tCe=function(t,n,r,a){if(t.length>-1&&!t.return)switch(t.type){case zF:t.return=JZ(t.value,t.length);break;case GZ:return Zb([R1(t,{value:br(t.value,"@","@"+yr)})],a);case WF:if(t.length)return FTe(t.props,function(i){switch(LTe(i,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return Zb([R1(t,{props:[br(i,/:(read-\w+)/,":"+Rx+"$1")]})],a);case"::placeholder":return Zb([R1(t,{props:[br(i,/:(plac\w+)/,":"+yr+"input-$1")]}),R1(t,{props:[br(i,/:(plac\w+)/,":"+Rx+"$1")]}),R1(t,{props:[br(i,/:(plac\w+)/,Qi+"input-$1")]})],a)}return""})}},nCe=[tCe],rCe=function(t){var n=t.key;if(n==="css"){var r=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(r,function(E){var T=E.getAttribute("data-emotion");T.indexOf(" ")!==-1&&(document.head.appendChild(E),E.setAttribute("data-s",""))})}var a=t.stylisPlugins||nCe,i={},o,l=[];o=t.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+n+' "]'),function(E){for(var T=E.getAttribute("data-emotion").split(" "),C=1;C=4;++r,a-=4)n=e.charCodeAt(r)&255|(e.charCodeAt(++r)&255)<<8|(e.charCodeAt(++r)&255)<<16|(e.charCodeAt(++r)&255)<<24,n=(n&65535)*1540483477+((n>>>16)*59797<<16),n^=n>>>24,t=(n&65535)*1540483477+((n>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(a){case 3:t^=(e.charCodeAt(r+2)&255)<<16;case 2:t^=(e.charCodeAt(r+1)&255)<<8;case 1:t^=e.charCodeAt(r)&255,t=(t&65535)*1540483477+((t>>>16)*59797<<16)}return t^=t>>>13,t=(t&65535)*1540483477+((t>>>16)*59797<<16),((t^t>>>15)>>>0).toString(36)}var lCe={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1};function uCe(e){var t=Object.create(null);return function(n){return t[n]===void 0&&(t[n]=e(n)),t[n]}}var cCe=/[A-Z]|^ms/g,dCe=/_EMO_([^_]+?)_([^]*?)_EMO_/g,eee=function(t){return t.charCodeAt(1)===45},u5=function(t){return t!=null&&typeof t!="boolean"},QP=uCe(function(e){return eee(e)?e:e.replace(cCe,"-$&").toLowerCase()}),c5=function(t,n){switch(t){case"animation":case"animationName":if(typeof n=="string")return n.replace(dCe,function(r,a,i){return mc={name:a,styles:i,next:mc},a})}return lCe[t]!==1&&!eee(t)&&typeof n=="number"&&n!==0?n+"px":n};function nE(e,t,n){if(n==null)return"";if(n.__emotion_styles!==void 0)return n;switch(typeof n){case"boolean":return"";case"object":{if(n.anim===1)return mc={name:n.name,styles:n.styles,next:mc},n.name;if(n.styles!==void 0){var r=n.next;if(r!==void 0)for(;r!==void 0;)mc={name:r.name,styles:r.styles,next:mc},r=r.next;var a=n.styles+";";return a}return fCe(e,t,n)}case"function":{if(e!==void 0){var i=mc,o=n(e);return mc=i,nE(e,t,o)}break}}return n}function fCe(e,t,n){var r="";if(Array.isArray(n))for(var a=0;a=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function xCe(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}const _Ce=Math.min,OCe=Math.max,Px=Math.round,lk=Math.floor,Ax=e=>({x:e,y:e});function RCe(e){return{...e,top:e.y,left:e.x,right:e.x+e.width,bottom:e.y+e.height}}function ree(e){return iee(e)?(e.nodeName||"").toLowerCase():"#document"}function Bd(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function aee(e){var t;return(t=(iee(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function iee(e){return e instanceof Node||e instanceof Bd(e).Node}function PCe(e){return e instanceof Element||e instanceof Bd(e).Element}function GF(e){return e instanceof HTMLElement||e instanceof Bd(e).HTMLElement}function f5(e){return typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof Bd(e).ShadowRoot}function oee(e){const{overflow:t,overflowX:n,overflowY:r,display:a}=YF(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!["inline","contents"].includes(a)}function ACe(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function NCe(e){return["html","body","#document"].includes(ree(e))}function YF(e){return Bd(e).getComputedStyle(e)}function MCe(e){if(ree(e)==="html")return e;const t=e.assignedSlot||e.parentNode||f5(e)&&e.host||aee(e);return f5(t)?t.host:t}function see(e){const t=MCe(e);return NCe(t)?e.ownerDocument?e.ownerDocument.body:e.body:GF(t)&&oee(t)?t:see(t)}function Nx(e,t,n){var r;t===void 0&&(t=[]),n===void 0&&(n=!0);const a=see(e),i=a===((r=e.ownerDocument)==null?void 0:r.body),o=Bd(a);return i?t.concat(o,o.visualViewport||[],oee(a)?a:[],o.frameElement&&n?Nx(o.frameElement):[]):t.concat(a,Nx(a,[],n))}function ICe(e){const t=YF(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const a=GF(e),i=a?e.offsetWidth:n,o=a?e.offsetHeight:r,l=Px(n)!==i||Px(r)!==o;return l&&(n=i,r=o),{width:n,height:r,$:l}}function KF(e){return PCe(e)?e:e.contextElement}function p5(e){const t=KF(e);if(!GF(t))return Ax(1);const n=t.getBoundingClientRect(),{width:r,height:a,$:i}=ICe(t);let o=(i?Px(n.width):n.width)/r,l=(i?Px(n.height):n.height)/a;return(!o||!Number.isFinite(o))&&(o=1),(!l||!Number.isFinite(l))&&(l=1),{x:o,y:l}}const DCe=Ax(0);function $Ce(e){const t=Bd(e);return!ACe()||!t.visualViewport?DCe:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function LCe(e,t,n){return!1}function h5(e,t,n,r){t===void 0&&(t=!1);const a=e.getBoundingClientRect(),i=KF(e);let o=Ax(1);t&&(o=p5(e));const l=LCe()?$Ce(i):Ax(0);let u=(a.left+l.x)/o.x,d=(a.top+l.y)/o.y,f=a.width/o.x,g=a.height/o.y;if(i){const y=Bd(i),h=r;let v=y,E=v.frameElement;for(;E&&r&&h!==v;){const T=p5(E),C=E.getBoundingClientRect(),k=YF(E),_=C.left+(E.clientLeft+parseFloat(k.paddingLeft))*T.x,A=C.top+(E.clientTop+parseFloat(k.paddingTop))*T.y;u*=T.x,d*=T.y,f*=T.x,g*=T.y,u+=_,d+=A,v=Bd(E),E=v.frameElement}}return RCe({width:f,height:g,x:u,y:d})}function FCe(e,t){let n=null,r;const a=aee(e);function i(){var l;clearTimeout(r),(l=n)==null||l.disconnect(),n=null}function o(l,u){l===void 0&&(l=!1),u===void 0&&(u=1),i();const{left:d,top:f,width:g,height:y}=e.getBoundingClientRect();if(l||t(),!g||!y)return;const h=lk(f),v=lk(a.clientWidth-(d+g)),E=lk(a.clientHeight-(f+y)),T=lk(d),k={rootMargin:-h+"px "+-v+"px "+-E+"px "+-T+"px",threshold:OCe(0,_Ce(1,u))||1};let _=!0;function A(P){const N=P[0].intersectionRatio;if(N!==u){if(!_)return o();N?o(!1,N):r=setTimeout(()=>{o(!1,1e-7)},100)}_=!1}try{n=new IntersectionObserver(A,{...k,root:a.ownerDocument})}catch{n=new IntersectionObserver(A,k)}n.observe(e)}return o(!0),i}function jCe(e,t,n,r){r===void 0&&(r={});const{ancestorScroll:a=!0,ancestorResize:i=!0,elementResize:o=typeof ResizeObserver=="function",layoutShift:l=typeof IntersectionObserver=="function",animationFrame:u=!1}=r,d=KF(e),f=a||i?[...d?Nx(d):[],...Nx(t)]:[];f.forEach(C=>{a&&C.addEventListener("scroll",n,{passive:!0}),i&&C.addEventListener("resize",n)});const g=d&&l?FCe(d,n):null;let y=-1,h=null;o&&(h=new ResizeObserver(C=>{let[k]=C;k&&k.target===d&&h&&(h.unobserve(t),cancelAnimationFrame(y),y=requestAnimationFrame(()=>{var _;(_=h)==null||_.observe(t)})),n()}),d&&!u&&h.observe(d),h.observe(t));let v,E=u?h5(e):null;u&&T();function T(){const C=h5(e);E&&(C.x!==E.x||C.y!==E.y||C.width!==E.width||C.height!==E.height)&&n(),E=C,v=requestAnimationFrame(T)}return n(),()=>{var C;f.forEach(k=>{a&&k.removeEventListener("scroll",n),i&&k.removeEventListener("resize",n)}),g==null||g(),(C=h)==null||C.disconnect(),h=null,u&&cancelAnimationFrame(v)}}var t3=R.useLayoutEffect,UCe=["className","clearValue","cx","getStyles","getClassNames","getValue","hasValue","isMulti","isRtl","options","selectOption","selectProps","setValue","theme"],Mx=function(){};function BCe(e,t){return t?t[0]==="-"?e+t:e+"__"+t:e}function WCe(e,t){for(var n=arguments.length,r=new Array(n>2?n-2:0),a=2;a-1}function qCe(e){return A_(e)?window.innerHeight:e.clientHeight}function uee(e){return A_(e)?window.pageYOffset:e.scrollTop}function Ix(e,t){if(A_(e)){window.scrollTo(0,t);return}e.scrollTop=t}function HCe(e){var t=getComputedStyle(e),n=t.position==="absolute",r=/(auto|scroll)/;if(t.position==="fixed")return document.documentElement;for(var a=e;a=a.parentElement;)if(t=getComputedStyle(a),!(n&&t.position==="static")&&r.test(t.overflow+t.overflowY+t.overflowX))return a;return document.documentElement}function VCe(e,t,n,r){return n*((e=e/r-1)*e*e+1)+t}function uk(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:200,r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:Mx,a=uee(e),i=t-a,o=10,l=0;function u(){l+=o;var d=VCe(l,a,i,n);Ix(e,d),ln.bottom?Ix(e,Math.min(t.offsetTop+t.clientHeight-e.offsetHeight+a,e.scrollHeight)):r.top-a1?n-1:0),a=1;a=v)return{placement:"bottom",maxHeight:t};if(j>=v&&!o)return i&&uk(u,z,le),{placement:"bottom",maxHeight:t};if(!o&&j>=r||o&&I>=r){i&&uk(u,z,le);var re=o?I-A:j-A;return{placement:"bottom",maxHeight:re}}if(a==="auto"||o){var ge=t,me=o?N:L;return me>=r&&(ge=Math.min(me-A-l,t)),{placement:"top",maxHeight:ge}}if(a==="bottom")return i&&Ix(u,z),{placement:"bottom",maxHeight:t};break;case"top":if(N>=v)return{placement:"top",maxHeight:t};if(L>=v&&!o)return i&&uk(u,Q,le),{placement:"top",maxHeight:t};if(!o&&L>=r||o&&N>=r){var W=t;return(!o&&L>=r||o&&N>=r)&&(W=o?N-P:L-P),i&&uk(u,Q,le),{placement:"top",maxHeight:W}}return{placement:"bottom",maxHeight:t};default:throw new Error('Invalid placement provided "'.concat(a,'".'))}return d}function rke(e){var t={bottom:"top",top:"bottom"};return e?t[e]:"bottom"}var dee=function(t){return t==="auto"?"bottom":t},ake=function(t,n){var r,a=t.placement,i=t.theme,o=i.borderRadius,l=i.spacing,u=i.colors;return Jt((r={label:"menu"},wt(r,rke(a),"100%"),wt(r,"position","absolute"),wt(r,"width","100%"),wt(r,"zIndex",1),r),n?{}:{backgroundColor:u.neutral0,borderRadius:o,boxShadow:"0 0 0 1px hsla(0, 0%, 0%, 0.1), 0 4px 11px hsla(0, 0%, 0%, 0.1)",marginBottom:l.menuGutter,marginTop:l.menuGutter})},fee=R.createContext(null),ike=function(t){var n=t.children,r=t.minMenuHeight,a=t.maxMenuHeight,i=t.menuPlacement,o=t.menuPosition,l=t.menuShouldScrollIntoView,u=t.theme,d=R.useContext(fee)||{},f=d.setPortalPlacement,g=R.useRef(null),y=R.useState(a),h=mi(y,2),v=h[0],E=h[1],T=R.useState(null),C=mi(T,2),k=C[0],_=C[1],A=u.spacing.controlHeight;return t3(function(){var P=g.current;if(P){var N=o==="fixed",I=l&&!N,L=nke({maxHeight:a,menuEl:P,minHeight:r,placement:i,shouldScroll:I,isFixedPosition:N,controlHeight:A});E(L.maxHeight),_(L.placement),f==null||f(L.placement)}},[a,i,o,l,r,f,A]),n({ref:g,placerProps:Jt(Jt({},t),{},{placement:k||dee(i),maxHeight:v})})},oke=function(t){var n=t.children,r=t.innerRef,a=t.innerProps;return rn("div",vt({},Ca(t,"menu",{menu:!0}),{ref:r},a),n)},ske=oke,lke=function(t,n){var r=t.maxHeight,a=t.theme.spacing.baseUnit;return Jt({maxHeight:r,overflowY:"auto",position:"relative",WebkitOverflowScrolling:"touch"},n?{}:{paddingBottom:a,paddingTop:a})},uke=function(t){var n=t.children,r=t.innerProps,a=t.innerRef,i=t.isMulti;return rn("div",vt({},Ca(t,"menuList",{"menu-list":!0,"menu-list--is-multi":i}),{ref:a},r),n)},pee=function(t,n){var r=t.theme,a=r.spacing.baseUnit,i=r.colors;return Jt({textAlign:"center"},n?{}:{color:i.neutral40,padding:"".concat(a*2,"px ").concat(a*3,"px")})},cke=pee,dke=pee,fke=function(t){var n=t.children,r=n===void 0?"No options":n,a=t.innerProps,i=Ru(t,eke);return rn("div",vt({},Ca(Jt(Jt({},i),{},{children:r,innerProps:a}),"noOptionsMessage",{"menu-notice":!0,"menu-notice--no-options":!0}),a),r)},pke=function(t){var n=t.children,r=n===void 0?"Loading...":n,a=t.innerProps,i=Ru(t,tke);return rn("div",vt({},Ca(Jt(Jt({},i),{},{children:r,innerProps:a}),"loadingMessage",{"menu-notice":!0,"menu-notice--loading":!0}),a),r)},hke=function(t){var n=t.rect,r=t.offset,a=t.position;return{left:n.left,position:a,top:r,width:n.width,zIndex:1}},mke=function(t){var n=t.appendTo,r=t.children,a=t.controlElement,i=t.innerProps,o=t.menuPlacement,l=t.menuPosition,u=R.useRef(null),d=R.useRef(null),f=R.useState(dee(o)),g=mi(f,2),y=g[0],h=g[1],v=R.useMemo(function(){return{setPortalPlacement:h}},[]),E=R.useState(null),T=mi(E,2),C=T[0],k=T[1],_=R.useCallback(function(){if(a){var I=GCe(a),L=l==="fixed"?0:window.pageYOffset,j=I[y]+L;(j!==(C==null?void 0:C.offset)||I.left!==(C==null?void 0:C.rect.left)||I.width!==(C==null?void 0:C.rect.width))&&k({offset:j,rect:I})}},[a,l,y,C==null?void 0:C.offset,C==null?void 0:C.rect.left,C==null?void 0:C.rect.width]);t3(function(){_()},[_]);var A=R.useCallback(function(){typeof d.current=="function"&&(d.current(),d.current=null),a&&u.current&&(d.current=jCe(a,u.current,_,{elementResize:"ResizeObserver"in window}))},[a,_]);t3(function(){A()},[A]);var P=R.useCallback(function(I){u.current=I,A()},[A]);if(!n&&l!=="fixed"||!C)return null;var N=rn("div",vt({ref:P},Ca(Jt(Jt({},t),{},{offset:C.offset,position:l,rect:C.rect}),"menuPortal",{"menu-portal":!0}),i),r);return rn(fee.Provider,{value:v},n?Sc.createPortal(N,n):N)},gke=function(t){var n=t.isDisabled,r=t.isRtl;return{label:"container",direction:r?"rtl":void 0,pointerEvents:n?"none":void 0,position:"relative"}},vke=function(t){var n=t.children,r=t.innerProps,a=t.isDisabled,i=t.isRtl;return rn("div",vt({},Ca(t,"container",{"--is-disabled":a,"--is-rtl":i}),r),n)},yke=function(t,n){var r=t.theme.spacing,a=t.isMulti,i=t.hasValue,o=t.selectProps.controlShouldRenderValue;return Jt({alignItems:"center",display:a&&i&&o?"flex":"grid",flex:1,flexWrap:"wrap",WebkitOverflowScrolling:"touch",position:"relative",overflow:"hidden"},n?{}:{padding:"".concat(r.baseUnit/2,"px ").concat(r.baseUnit*2,"px")})},bke=function(t){var n=t.children,r=t.innerProps,a=t.isMulti,i=t.hasValue;return rn("div",vt({},Ca(t,"valueContainer",{"value-container":!0,"value-container--is-multi":a,"value-container--has-value":i}),r),n)},wke=function(){return{alignItems:"center",alignSelf:"stretch",display:"flex",flexShrink:0}},Ske=function(t){var n=t.children,r=t.innerProps;return rn("div",vt({},Ca(t,"indicatorsContainer",{indicators:!0}),r),n)},y5,Eke=["size"],Tke=["innerProps","isRtl","size"],Cke={name:"8mmkcg",styles:"display:inline-block;fill:currentColor;line-height:1;stroke:currentColor;stroke-width:0"},hee=function(t){var n=t.size,r=Ru(t,Eke);return rn("svg",vt({height:n,width:n,viewBox:"0 0 20 20","aria-hidden":"true",focusable:"false",css:Cke},r))},XF=function(t){return rn(hee,vt({size:20},t),rn("path",{d:"M14.348 14.849c-0.469 0.469-1.229 0.469-1.697 0l-2.651-3.030-2.651 3.029c-0.469 0.469-1.229 0.469-1.697 0-0.469-0.469-0.469-1.229 0-1.697l2.758-3.15-2.759-3.152c-0.469-0.469-0.469-1.228 0-1.697s1.228-0.469 1.697 0l2.652 3.031 2.651-3.031c0.469-0.469 1.228-0.469 1.697 0s0.469 1.229 0 1.697l-2.758 3.152 2.758 3.15c0.469 0.469 0.469 1.229 0 1.698z"}))},mee=function(t){return rn(hee,vt({size:20},t),rn("path",{d:"M4.516 7.548c0.436-0.446 1.043-0.481 1.576 0l3.908 3.747 3.908-3.747c0.533-0.481 1.141-0.446 1.574 0 0.436 0.445 0.408 1.197 0 1.615-0.406 0.418-4.695 4.502-4.695 4.502-0.217 0.223-0.502 0.335-0.787 0.335s-0.57-0.112-0.789-0.335c0 0-4.287-4.084-4.695-4.502s-0.436-1.17 0-1.615z"}))},gee=function(t,n){var r=t.isFocused,a=t.theme,i=a.spacing.baseUnit,o=a.colors;return Jt({label:"indicatorContainer",display:"flex",transition:"color 150ms"},n?{}:{color:r?o.neutral60:o.neutral20,padding:i*2,":hover":{color:r?o.neutral80:o.neutral40}})},kke=gee,xke=function(t){var n=t.children,r=t.innerProps;return rn("div",vt({},Ca(t,"dropdownIndicator",{indicator:!0,"dropdown-indicator":!0}),r),n||rn(mee,null))},_ke=gee,Oke=function(t){var n=t.children,r=t.innerProps;return rn("div",vt({},Ca(t,"clearIndicator",{indicator:!0,"clear-indicator":!0}),r),n||rn(XF,null))},Rke=function(t,n){var r=t.isDisabled,a=t.theme,i=a.spacing.baseUnit,o=a.colors;return Jt({label:"indicatorSeparator",alignSelf:"stretch",width:1},n?{}:{backgroundColor:r?o.neutral10:o.neutral20,marginBottom:i*2,marginTop:i*2})},Pke=function(t){var n=t.innerProps;return rn("span",vt({},n,Ca(t,"indicatorSeparator",{"indicator-separator":!0})))},Ake=ECe(y5||(y5=xCe([` + `})]}),df=({label:e,getInputRef:t,displayValue:n,Icon:r,children:a,errorMessage:i,validMessage:o,value:l,hint:u,onClick:d,onChange:f,className:g,focused:y=!1,hasAnimation:h})=>w.jsxs("div",{style:{position:"relative"},className:sa("mb-3",g),children:[e&&w.jsx("label",{className:"form-label",children:e}),a,w.jsx("div",{className:"form-text",children:u}),w.jsx("div",{className:"invalid-feedback",children:i}),w.jsx("div",{className:"valid-feedback",children:o})]}),Ys=e=>{const{placeholder:t,label:n,getInputRef:r,secureTextEntry:a,Icon:i,isSubmitting:o,errorMessage:l,onChange:u,value:d,disabled:f,type:g,focused:y=!1,className:h,mutation:v,...E}=e,T=v==null?void 0:v.isLoading;return w.jsx("button",{onClick:e.onClick,type:"submit",disabled:f||T,className:sa("btn mb-3",`btn-${g||"primary"}`,h),...e,children:e.children||e.label})};function J0e(e,t,n={}){var r,a,i,o,l,u,d,f,g,y;if(t.isError){if(((r=t.error)==null?void 0:r.status)===404)return e.notfound+"("+n.remote+")";if(t.error.message==="Failed to fetch")return e.networkError+"("+n.remote+")";if((i=(a=t.error)==null?void 0:a.error)!=null&&i.messageTranslated)return(l=(o=t.error)==null?void 0:o.error)==null?void 0:l.messageTranslated;if((d=(u=t.error)==null?void 0:u.error)!=null&&d.message)return(g=(f=t.error)==null?void 0:f.error)==null?void 0:g.message;let h=(y=t.error)==null?void 0:y.toString();return(h+"").includes("object Object")&&(h="There is an unknown error while getting information, please contact your software provider if issue persists."),h}return null}function Ll({query:e,children:t}){var d,f,g,y;const n=At(),{options:r,setOverrideRemoteUrl:a,overrideRemoteUrl:i}=R.useContext(it);let o=!1,l="80";try{if(r!=null&&r.prefix){const h=new URL(r==null?void 0:r.prefix);l=h.port||(h.protocol==="https:"?"443":"80"),o=(location.host.includes("192.168")||location.host.includes("127.0"))&&((f=(d=e.error)==null?void 0:d.message)==null?void 0:f.includes("Failed to fetch"))}}catch{}const u=()=>{a("http://"+location.hostname+":"+l+"/")};return e?w.jsxs(w.Fragment,{children:[e.isError&&w.jsxs("div",{className:"basic-error-box fadein",children:[J0e(n,e,{remote:r.prefix})||"",o&&w.jsx("button",{className:"btn btn-sm btn-secondary",onClick:u,children:"Auto-reroute"}),i&&w.jsx("button",{className:"btn btn-sm btn-secondary",onClick:()=>a(void 0),children:"Reset"}),w.jsx("ul",{children:(((y=(g=e.error)==null?void 0:g.error)==null?void 0:y.errors)||[]).map(h=>w.jsxs("li",{children:[h.messageTranslated||h.message," (",h.location,")"]},h.location))}),e.refetch&&w.jsx(Ys,{onClick:e.refetch,children:"Retry"})]}),!e.isError||e.isPreviousData?t:null]}):null}function PZ({content:e,columns:t,uniqueIdHrefHandler:n,style:r}){const a=n?Ml:"span";return w.jsx(a,{className:"auto-card-list-item card mb-2 p-3",style:r,href:n(e.uniqueId),children:t.map(i=>{let o=i.getCellValue?i.getCellValue(e):"";return o||(o=i.name?e[i.name]:""),o||(o="-"),i.name==="uniqueId"?null:w.jsxs("div",{className:"row auto-card-drawer",children:[w.jsxs("div",{className:"col-6",children:[i.title,":"]}),w.jsx("div",{className:"col-6",children:o})]},i.title)})})}const Z0e=()=>{const e=At();return w.jsxs("div",{className:"empty-list-indicator",children:[w.jsx("img",{src:qs("/common/empty.png")}),w.jsx("div",{children:e.table.noRecords})]})};function Dt(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}var R8=Number.isNaN||function(t){return typeof t=="number"&&t!==t};function ewe(e,t){return!!(e===t||R8(e)&&R8(t))}function twe(e,t){if(e.length!==t.length)return!1;for(var n=0;n=0)&&(n[a]=e[a]);return n}var rwe=typeof performance=="object"&&typeof performance.now=="function",P8=rwe?function(){return performance.now()}:function(){return Date.now()};function A8(e){cancelAnimationFrame(e.id)}function awe(e,t){var n=P8();function r(){P8()-n>=t?e.call(null):a.id=requestAnimationFrame(r)}var a={id:requestAnimationFrame(r)};return a}var wA=-1;function N8(e){if(e===void 0&&(e=!1),wA===-1||e){var t=document.createElement("div"),n=t.style;n.width="50px",n.height="50px",n.overflow="scroll",document.body.appendChild(t),wA=t.offsetWidth-t.clientWidth,document.body.removeChild(t)}return wA}var jb=null;function M8(e){if(e===void 0&&(e=!1),jb===null||e){var t=document.createElement("div"),n=t.style;n.width="50px",n.height="50px",n.overflow="scroll",n.direction="rtl";var r=document.createElement("div"),a=r.style;return a.width="100px",a.height="100px",t.appendChild(r),document.body.appendChild(t),t.scrollLeft>0?jb="positive-descending":(t.scrollLeft=1,t.scrollLeft===0?jb="negative":jb="positive-ascending"),document.body.removeChild(t),jb}return jb}var iwe=150,owe=function(t,n){return t};function swe(e){var t,n=e.getItemOffset,r=e.getEstimatedTotalSize,a=e.getItemSize,i=e.getOffsetForIndexAndAlignment,o=e.getStartIndexForOffset,l=e.getStopIndexForStartIndex,u=e.initInstanceProps,d=e.shouldResetStyleCacheOnItemSizeChange,f=e.validateProps;return t=(function(g){fy(y,g);function y(v){var E;return E=g.call(this,v)||this,E._instanceProps=u(E.props,Dt(E)),E._outerRef=void 0,E._resetIsScrollingTimeoutId=null,E.state={instance:Dt(E),isScrolling:!1,scrollDirection:"forward",scrollOffset:typeof E.props.initialScrollOffset=="number"?E.props.initialScrollOffset:0,scrollUpdateWasRequested:!1},E._callOnItemsRendered=void 0,E._callOnItemsRendered=bA(function(T,C,k,_){return E.props.onItemsRendered({overscanStartIndex:T,overscanStopIndex:C,visibleStartIndex:k,visibleStopIndex:_})}),E._callOnScroll=void 0,E._callOnScroll=bA(function(T,C,k){return E.props.onScroll({scrollDirection:T,scrollOffset:C,scrollUpdateWasRequested:k})}),E._getItemStyle=void 0,E._getItemStyle=function(T){var C=E.props,k=C.direction,_=C.itemSize,A=C.layout,P=E._getItemStyleCache(d&&_,d&&A,d&&k),N;if(P.hasOwnProperty(T))N=P[T];else{var I=n(E.props,T,E._instanceProps),L=a(E.props,T,E._instanceProps),j=k==="horizontal"||A==="horizontal",z=k==="rtl",Q=j?I:0;P[T]=N={position:"absolute",left:z?void 0:Q,right:z?Q:void 0,top:j?0:I,height:j?"100%":L,width:j?L:"100%"}}return N},E._getItemStyleCache=void 0,E._getItemStyleCache=bA(function(T,C,k){return{}}),E._onScrollHorizontal=function(T){var C=T.currentTarget,k=C.clientWidth,_=C.scrollLeft,A=C.scrollWidth;E.setState(function(P){if(P.scrollOffset===_)return null;var N=E.props.direction,I=_;if(N==="rtl")switch(M8()){case"negative":I=-_;break;case"positive-descending":I=A-k-_;break}return I=Math.max(0,Math.min(I,A-k)),{isScrolling:!0,scrollDirection:P.scrollOffsetN.clientWidth?N8():0:P=N.scrollHeight>N.clientHeight?N8():0}this.scrollTo(i(this.props,E,T,A,this._instanceProps,P))},h.componentDidMount=function(){var E=this.props,T=E.direction,C=E.initialScrollOffset,k=E.layout;if(typeof C=="number"&&this._outerRef!=null){var _=this._outerRef;T==="horizontal"||k==="horizontal"?_.scrollLeft=C:_.scrollTop=C}this._callPropsCallbacks()},h.componentDidUpdate=function(){var E=this.props,T=E.direction,C=E.layout,k=this.state,_=k.scrollOffset,A=k.scrollUpdateWasRequested;if(A&&this._outerRef!=null){var P=this._outerRef;if(T==="horizontal"||C==="horizontal")if(T==="rtl")switch(M8()){case"negative":P.scrollLeft=-_;break;case"positive-ascending":P.scrollLeft=_;break;default:var N=P.clientWidth,I=P.scrollWidth;P.scrollLeft=I-N-_;break}else P.scrollLeft=_;else P.scrollTop=_}this._callPropsCallbacks()},h.componentWillUnmount=function(){this._resetIsScrollingTimeoutId!==null&&A8(this._resetIsScrollingTimeoutId)},h.render=function(){var E=this.props,T=E.children,C=E.className,k=E.direction,_=E.height,A=E.innerRef,P=E.innerElementType,N=E.innerTagName,I=E.itemCount,L=E.itemData,j=E.itemKey,z=j===void 0?owe:j,Q=E.layout,ue=E.outerElementType,re=E.outerTagName,me=E.style,ge=E.useIsScrolling,W=E.width,G=this.state.isScrolling,q=k==="horizontal"||Q==="horizontal",ce=q?this._onScrollHorizontal:this._onScrollVertical,H=this._getRangeToRender(),K=H[0],ae=H[1],J=[];if(I>0)for(var ee=K;ee<=ae;ee++)J.push(R.createElement(T,{data:L,key:z(ee,L),index:ee,isScrolling:ge?G:void 0,style:this._getItemStyle(ee)}));var Z=r(this.props,this._instanceProps);return R.createElement(ue||re||"div",{className:C,onScroll:ce,ref:this._outerRefSetter,style:vt({position:"relative",height:_,width:W,overflow:"auto",WebkitOverflowScrolling:"touch",willChange:"transform",direction:k},me)},R.createElement(P||N||"div",{children:J,ref:A,style:{height:q?"100%":Z,pointerEvents:G?"none":void 0,width:q?Z:"100%"}}))},h._callPropsCallbacks=function(){if(typeof this.props.onItemsRendered=="function"){var E=this.props.itemCount;if(E>0){var T=this._getRangeToRender(),C=T[0],k=T[1],_=T[2],A=T[3];this._callOnItemsRendered(C,k,_,A)}}if(typeof this.props.onScroll=="function"){var P=this.state,N=P.scrollDirection,I=P.scrollOffset,L=P.scrollUpdateWasRequested;this._callOnScroll(N,I,L)}},h._getRangeToRender=function(){var E=this.props,T=E.itemCount,C=E.overscanCount,k=this.state,_=k.isScrolling,A=k.scrollDirection,P=k.scrollOffset;if(T===0)return[0,0,0,0];var N=o(this.props,P,this._instanceProps),I=l(this.props,N,P,this._instanceProps),L=!_||A==="backward"?Math.max(1,C):1,j=!_||A==="forward"?Math.max(1,C):1;return[Math.max(0,N-L),Math.max(0,Math.min(T-1,I+j)),N,I]},y})(R.PureComponent),t.defaultProps={direction:"ltr",itemData:void 0,layout:"vertical",overscanCount:2,useIsScrolling:!1},t}var lwe=function(t,n){t.children,t.direction,t.height,t.layout,t.innerTagName,t.outerTagName,t.width,n.instance},uwe=swe({getItemOffset:function(t,n){var r=t.itemSize;return n*r},getItemSize:function(t,n){var r=t.itemSize;return r},getEstimatedTotalSize:function(t){var n=t.itemCount,r=t.itemSize;return r*n},getOffsetForIndexAndAlignment:function(t,n,r,a,i,o){var l=t.direction,u=t.height,d=t.itemCount,f=t.itemSize,g=t.layout,y=t.width,h=l==="horizontal"||g==="horizontal",v=h?y:u,E=Math.max(0,d*f-v),T=Math.min(E,n*f),C=Math.max(0,n*f-v+f+o);switch(r==="smart"&&(a>=C-v&&a<=T+v?r="auto":r="center"),r){case"start":return T;case"end":return C;case"center":{var k=Math.round(C+(T-C)/2);return kE+Math.floor(v/2)?E:k}case"auto":default:return a>=C&&a<=T?a:a{var k,_,A,P,N,I;At();const l=R.useRef();let[u,d]=R.useState([]);const[f,g]=R.useState(!0),y=Gs();t&&t({queryClient:y});const h=(L,j)=>{const z=r.debouncedFilters.startIndex||0,Q=[...u];l.current!==j&&(Q.length=0,l.current=j);for(let ue=z;ue<(r.debouncedFilters.itemsPerPage||0)+z;ue++){const re=ue-z;L[re]&&(Q[ue]=L[re])}d(Q)};R.useEffect(()=>{var j,z,Q;const L=((z=(j=i.query.data)==null?void 0:j.data)==null?void 0:z.items)||[];h(L,(Q=i.query.data)==null?void 0:Q.jsonQuery)},[(_=(k=i.query.data)==null?void 0:k.data)==null?void 0:_.items]);const v=({index:L,style:j})=>{var Q,ue;return u[L]?o?w.jsx(o,{content:u[L]},(Q=u[L])==null?void 0:Q.uniqueId):w.jsx(PZ,{style:{...j,top:j.top+10,height:j.height-10,width:j.width},uniqueIdHrefHandler:n,columns:e,content:u[L]},(ue=u[L])==null?void 0:ue.uniqueId):null},E=({scrollOffset:L})=>{L===0&&!f?g(!0):L>0&&f&&g(!1)},T=R.useCallback(()=>(i.query.refetch(),Promise.resolve(!0)),[]),C=((N=(P=(A=i.query)==null?void 0:A.data)==null?void 0:P.data)==null?void 0:N.totalItems)||0;return w.jsx(w.Fragment,{children:w.jsx(Y0e,{pullDownContent:w.jsx(X0e,{label:""}),releaseContent:w.jsx(Q0e,{}),refreshContent:w.jsx(K0e,{}),pullDownThreshold:200,onRefresh:T,triggerHeight:f?500:0,startInvisible:!0,children:u.length===0&&!((I=i.query)!=null&&I.isError)?w.jsx("div",{style:{height:"calc(100vh - 130px)"},children:w.jsx(Z0e,{})}):w.jsxs("div",{style:{height:"calc(100vh - 130px)"},children:[w.jsx(Ll,{query:i.query}),w.jsx(H0e,{isItemLoaded:L=>!!u[L],itemCount:C,loadMoreItems:async(L,j)=>{r.setFilter({startIndex:L,itemsPerPage:j-L})},children:({onItemsRendered:L,ref:j})=>w.jsx(j0e,{children:({height:z,width:Q})=>w.jsx(uwe,{height:z,itemCount:u.length,itemSize:o!=null&&o.getHeight?o.getHeight():e.length*24+10,width:Q,onScroll:E,onItemsRendered:L,ref:j,children:v})})})]})})})},dwe=({columns:e,deleteHook:t,uniqueIdHrefHandler:n,udf:r,q:a})=>{var d,f,g,y,h,v,E,T;const i=At(),o=Gs();t&&t({queryClient:o}),(f=(d=a.query.data)==null?void 0:d.data)!=null&&f.items;const l=((h=(y=(g=a.query)==null?void 0:g.data)==null?void 0:y.data)==null?void 0:h.items)||[],u=((T=(E=(v=a.query)==null?void 0:v.data)==null?void 0:E.data)==null?void 0:T.totalItems)||0;return w.jsxs(w.Fragment,{children:[u===0&&w.jsx("p",{children:i.table.noRecords}),l.map(C=>w.jsx(PZ,{style:{},uniqueIdHrefHandler:n,columns:e,content:C},C.uniqueId))]})},I8=matchMedia("(max-width: 600px)");function fwe(){const e=R.useRef(I8),[t,n]=R.useState(I8.matches?"card":"datatable");return R.useEffect(()=>{const r=e.current;function a(){r.matches?n("card"):n("datatable")}return r.addEventListener("change",a),()=>r.removeEventListener("change",a)},[]),{view:t}}const Go=({children:e,columns:t,deleteHook:n,uniqueIdHrefHandler:r,withFilters:a,queryHook:i,onRecordsDeleted:o,selectable:l,id:u,RowDetail:d,withPreloads:f,queryFilters:g,deep:y,inlineInsertHook:h,bulkEditHook:v,urlMask:E,CardComponent:T})=>{var q,ce,H,K;At();const{view:C}=fwe(),k=Gs(),{query:_}=xye({query:{uniqueId:i.UKEY}}),[A,P]=R.useState(t.map(ae=>({columnName:ae.name,width:ae.width})));R.useEffect(()=>{var ae,J,ee,Z;if((J=(ae=_.data)==null?void 0:ae.data)!=null&&J.sizes)P(JSON.parse((Z=(ee=_.data)==null?void 0:ee.data)==null?void 0:Z.sizes));else{const le=localStorage.getItem(`table_${i.UKEY}`);le&&P(JSON.parse(le))}},[(ce=(q=_.data)==null?void 0:q.data)==null?void 0:ce.sizes]);const{submit:N}=_ye({queryClient:k}),I=n&&n({queryClient:k}),L=kye({urlMask:"",submitDelete:I==null?void 0:I.submit,onRecordsDeleted:o?()=>o({queryClient:k}):void 0}),[j]=R.useState(t.map(ae=>({columnName:ae.name,width:ae.width}))),z=ae=>{P(ae);const J=JSON.stringify(ae);N({uniqueId:i.UKEY,sizes:J}),localStorage.setItem(`table_${i.UKEY}`,J)};let Q=({value:ae})=>w.jsx("div",{style:{position:"relative"},children:w.jsx(Ml,{href:r&&r(ae),children:ae})}),ue=ae=>w.jsx(bye,{formatterComponent:Q,...ae});const re=[...g||[]],me=R.useMemo(()=>L0e(re),[re]),ge=i({query:{deep:y===void 0?!0:y,...L.debouncedFilters,withPreloads:f},queryClient:k}),W=ge.query?ge:{query:ge};W.jsonQuery=me;const G=((K=(H=W.query.data)==null?void 0:H.data)==null?void 0:K.items)||[];return w.jsxs(w.Fragment,{children:[C==="map"&&w.jsx(dwe,{columns:t,deleteHook:n,uniqueIdHrefHandler:r,q:W,udf:L}),C==="card"&&w.jsx(cwe,{columns:t,CardComponent:T,jsonQuery:me,deleteHook:n,uniqueIdHrefHandler:r,q:W,udf:L}),C==="datatable"&&w.jsxs(D0e,{udf:L,selectable:l,bulkEditHook:v,RowDetail:d,uniqueIdHrefHandler:r,onColumnWidthsChange:z,columns:t,columnSizes:A,inlineInsertHook:h,rows:G,defaultColumnWidths:j,query:W.query,booleanColumns:["uniqueId"],withFilters:a,children:[w.jsx(ue,{for:["uniqueId"]}),e]})]})},pwe=e=>[{name:"uniqueId",title:"uniqueId",width:200},{name:yi.Fields.name,title:e.capabilities.name,width:100},{name:yi.Fields.description,title:e.capabilities.description,width:100}];function hwe(e){const{execFnOverride:t,queryClient:n,query:r}=e||{},{options:a,execFn:i}=R.useContext(it),o=t?t(a):i?i(a):Tt(a);let u=`${"/capability".substr(1)}?${new URLSearchParams(Gt(r)).toString()}`;const f=un(h=>o("DELETE",u,h)),g=(h,v)=>h;return{mutation:f,submit:(h,v)=>new Promise((E,T)=>{f.mutate(h,{onSuccess(C){n==null||n.setQueryData("*fireback.CapabilityEntity",k=>g(k)),n==null||n.invalidateQueries("*fireback.CapabilityEntity"),E(C)},onError(C){v==null||v.setErrors(Pn(C)),T(C)}})}),fnUpdater:g}}function AZ({queryOptions:e,query:t,queryClient:n,execFnOverride:r,unauthorized:a,optionFn:i}){var k,_,A;const{options:o,execFn:l}=R.useContext(it),u=i?i(o):o,d=r?r(u):l?l(u):Tt(u);let g=`${"/capabilities".substr(1)}?${oi.stringify(t)}`;const y=()=>d("GET",g),h=(k=u==null?void 0:u.headers)==null?void 0:k.authorization,v=h!="undefined"&&h!=null&&h!=null&&h!="null"&&!!h;let E=!0;!v&&!a&&(E=!1);const T=jn(["*fireback.CapabilityEntity",u,t],y,{cacheTime:1e3,retry:!1,keepPreviousData:!0,enabled:E,...e||{}}),C=((A=(_=T.data)==null?void 0:_.data)==null?void 0:A.items)||[];return{query:T,items:C,keyExtractor:P=>P.uniqueId}}AZ.UKEY="*fireback.CapabilityEntity";const mwe=()=>{const e=Kt(oT);return w.jsx(w.Fragment,{children:w.jsx(Go,{columns:pwe(e),queryHook:AZ,uniqueIdHrefHandler:t=>yi.Navigation.single(t),deleteHook:hwe})})},gwe=()=>{const e=Kt(oT);return w.jsx(Vo,{pageTitle:e.capabilities.archiveTitle,newEntityHandler:({locale:t,router:n})=>{n.push(yi.Navigation.create())},children:w.jsx(mwe,{})})};function $r(e){const t=R.useRef(),n=Gs();R.useEffect(()=>{var d;e!=null&&e.data&&((d=t.current)==null||d.setValues(e.data))},[e==null?void 0:e.data]);const r=xr(),a=r.query.uniqueId,i=r.query.linkerId,o=!!a,{locale:l}=sr(),u=At();return{router:r,t:u,isEditing:o,locale:l,queryClient:n,formik:t,uniqueId:a,linkerId:i}}const Yo=({data:e,Form:t,getSingleHook:n,postHook:r,onCancel:a,onFinishUriResolver:i,disableOnGetFailed:o,patchHook:l,onCreateTitle:u,onEditTitle:d,setInnerRef:f,beforeSetValues:g,forceEdit:y,onlyOnRoot:h,customClass:v,beforeSubmit:E,onSuccessPatchOrPost:T})=>{var re,me,ge;const[C,k]=R.useState(),{router:_,isEditing:A,locale:P,formik:N,t:I}=$r({data:e}),L=R.useRef({});pJ(a,Ir.CommonBack);const{selectedUrw:j}=R.useContext(it);xh((A||y?d:u)||"");const{query:z}=n;R.useEffect(()=>{var W,G,q;(W=z.data)!=null&&W.data&&((G=N.current)==null||G.setValues(g?g({...z.data.data}):{...z.data.data}),k((q=z.data)==null?void 0:q.data))},[z.data]),R.useEffect(()=>{var W;(W=N.current)==null||W.setSubmitting((r==null?void 0:r.mutation.isLoading)||(l==null?void 0:l.mutation.isLoading))},[r==null?void 0:r.isLoading,l==null?void 0:l.isLoading]);const Q=(W,G)=>{let q=L.current;q.uniqueId=W.uniqueId,E&&(q=E(q)),(A||y?l==null?void 0:l.submit(q,G):r==null?void 0:r.submit(q,G)).then(H=>{var K;(K=H.data)!=null&&K.uniqueId&&(T?T(H):i?_.goBackOrDefault(i(H,P)):cme("Done",{type:"success"}))}).catch(H=>void 0)},ue=((re=n==null?void 0:n.query)==null?void 0:re.isLoading)||!1||((me=r==null?void 0:r.query)==null?void 0:me.isLoading)||!1||((ge=l==null?void 0:l.query)==null?void 0:ge.isLoading)||!1;return Qhe({onSave(){var W;(W=N.current)==null||W.submitForm()}}),h&&j.workspaceId!=="root"?w.jsx("div",{children:I.onlyOnRoot}):w.jsx(ms,{innerRef:W=>{W&&(N.current=W,f&&f(W))},initialValues:{},onSubmit:Q,children:W=>{var G,q,ce,H;return w.jsx("form",{onSubmit:K=>{K.preventDefault(),W.submitForm()},className:v??"headless-form-entity-manager",children:w.jsxs("fieldset",{disabled:ue,children:[w.jsx("div",{style:{marginBottom:"15px"},children:w.jsx(Ll,{query:(G=r==null?void 0:r.mutation)!=null&&G.isError?r.mutation:(q=l==null?void 0:l.mutation)!=null&&q.isError?l.mutation:(ce=n==null?void 0:n.query)!=null&&ce.isError?n.query:null})}),o===!0&&((H=n==null?void 0:n.query)!=null&&H.isError)?null:w.jsx(t,{isEditing:A,initialData:C,form:{...W,setValues:(K,ae)=>{for(const J in K)ka.set(L.current,J,K[J]);return W.setValues(K)},setFieldValue:(K,ae,J)=>(ka.set(L.current,K,ae),W.setFieldValue(K,ae,J))}}),w.jsx("button",{type:"submit",className:"d-none"})]})})}})},vwe={version:4,country_calling_codes:{1:["US","AG","AI","AS","BB","BM","BS","CA","DM","DO","GD","GU","JM","KN","KY","LC","MP","MS","PR","SX","TC","TT","VC","VG","VI"],7:["RU","KZ"],20:["EG"],27:["ZA"],30:["GR"],31:["NL"],32:["BE"],33:["FR"],34:["ES"],36:["HU"],39:["IT","VA"],40:["RO"],41:["CH"],43:["AT"],44:["GB","GG","IM","JE"],45:["DK"],46:["SE"],47:["NO","SJ"],48:["PL"],49:["DE"],51:["PE"],52:["MX"],53:["CU"],54:["AR"],55:["BR"],56:["CL"],57:["CO"],58:["VE"],60:["MY"],61:["AU","CC","CX"],62:["ID"],63:["PH"],64:["NZ"],65:["SG"],66:["TH"],81:["JP"],82:["KR"],84:["VN"],86:["CN"],90:["TR"],91:["IN"],92:["PK"],93:["AF"],94:["LK"],95:["MM"],98:["IR"],211:["SS"],212:["MA","EH"],213:["DZ"],216:["TN"],218:["LY"],220:["GM"],221:["SN"],222:["MR"],223:["ML"],224:["GN"],225:["CI"],226:["BF"],227:["NE"],228:["TG"],229:["BJ"],230:["MU"],231:["LR"],232:["SL"],233:["GH"],234:["NG"],235:["TD"],236:["CF"],237:["CM"],238:["CV"],239:["ST"],240:["GQ"],241:["GA"],242:["CG"],243:["CD"],244:["AO"],245:["GW"],246:["IO"],247:["AC"],248:["SC"],249:["SD"],250:["RW"],251:["ET"],252:["SO"],253:["DJ"],254:["KE"],255:["TZ"],256:["UG"],257:["BI"],258:["MZ"],260:["ZM"],261:["MG"],262:["RE","YT"],263:["ZW"],264:["NA"],265:["MW"],266:["LS"],267:["BW"],268:["SZ"],269:["KM"],290:["SH","TA"],291:["ER"],297:["AW"],298:["FO"],299:["GL"],350:["GI"],351:["PT"],352:["LU"],353:["IE"],354:["IS"],355:["AL"],356:["MT"],357:["CY"],358:["FI","AX"],359:["BG"],370:["LT"],371:["LV"],372:["EE"],373:["MD"],374:["AM"],375:["BY"],376:["AD"],377:["MC"],378:["SM"],380:["UA"],381:["RS"],382:["ME"],383:["XK"],385:["HR"],386:["SI"],387:["BA"],389:["MK"],420:["CZ"],421:["SK"],423:["LI"],500:["FK"],501:["BZ"],502:["GT"],503:["SV"],504:["HN"],505:["NI"],506:["CR"],507:["PA"],508:["PM"],509:["HT"],590:["GP","BL","MF"],591:["BO"],592:["GY"],593:["EC"],594:["GF"],595:["PY"],596:["MQ"],597:["SR"],598:["UY"],599:["CW","BQ"],670:["TL"],672:["NF"],673:["BN"],674:["NR"],675:["PG"],676:["TO"],677:["SB"],678:["VU"],679:["FJ"],680:["PW"],681:["WF"],682:["CK"],683:["NU"],685:["WS"],686:["KI"],687:["NC"],688:["TV"],689:["PF"],690:["TK"],691:["FM"],692:["MH"],850:["KP"],852:["HK"],853:["MO"],855:["KH"],856:["LA"],880:["BD"],886:["TW"],960:["MV"],961:["LB"],962:["JO"],963:["SY"],964:["IQ"],965:["KW"],966:["SA"],967:["YE"],968:["OM"],970:["PS"],971:["AE"],972:["IL"],973:["BH"],974:["QA"],975:["BT"],976:["MN"],977:["NP"],992:["TJ"],993:["TM"],994:["AZ"],995:["GE"],996:["KG"],998:["UZ"]},countries:{AC:["247","00","(?:[01589]\\d|[46])\\d{4}",[5,6]],AD:["376","00","(?:1|6\\d)\\d{7}|[135-9]\\d{5}",[6,8,9],[["(\\d{3})(\\d{3})","$1 $2",["[135-9]"]],["(\\d{4})(\\d{4})","$1 $2",["1"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["6"]]]],AE:["971","00","(?:[4-7]\\d|9[0-689])\\d{7}|800\\d{2,9}|[2-4679]\\d{7}",[5,6,7,8,9,10,11,12],[["(\\d{3})(\\d{2,9})","$1 $2",["60|8"]],["(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["[236]|[479][2-8]"],"0$1"],["(\\d{3})(\\d)(\\d{5})","$1 $2 $3",["[479]"]],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["5"],"0$1"]],"0"],AF:["93","00","[2-7]\\d{8}",[9],[["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[2-7]"],"0$1"]],"0"],AG:["1","011","(?:268|[58]\\d\\d|900)\\d{7}",[10],0,"1",0,"([457]\\d{6})$|1","268$1",0,"268"],AI:["1","011","(?:264|[58]\\d\\d|900)\\d{7}",[10],0,"1",0,"([2457]\\d{6})$|1","264$1",0,"264"],AL:["355","00","(?:700\\d\\d|900)\\d{3}|8\\d{5,7}|(?:[2-5]|6\\d)\\d{7}",[6,7,8,9],[["(\\d{3})(\\d{3,4})","$1 $2",["80|9"],"0$1"],["(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["4[2-6]"],"0$1"],["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["[2358][2-5]|4"],"0$1"],["(\\d{3})(\\d{5})","$1 $2",["[23578]"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["6"],"0$1"]],"0"],AM:["374","00","(?:[1-489]\\d|55|60|77)\\d{6}",[8],[["(\\d{3})(\\d{2})(\\d{3})","$1 $2 $3",["[89]0"],"0 $1"],["(\\d{3})(\\d{5})","$1 $2",["2|3[12]"],"(0$1)"],["(\\d{2})(\\d{6})","$1 $2",["1|47"],"(0$1)"],["(\\d{2})(\\d{6})","$1 $2",["[3-9]"],"0$1"]],"0"],AO:["244","00","[29]\\d{8}",[9],[["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[29]"]]]],AR:["54","00","(?:11|[89]\\d\\d)\\d{8}|[2368]\\d{9}",[10,11],[["(\\d{4})(\\d{2})(\\d{4})","$1 $2-$3",["2(?:2[024-9]|3[0-59]|47|6[245]|9[02-8])|3(?:3[28]|4[03-9]|5[2-46-8]|7[1-578]|8[2-9])","2(?:[23]02|6(?:[25]|4[6-8])|9(?:[02356]|4[02568]|72|8[23]))|3(?:3[28]|4(?:[04679]|3[5-8]|5[4-68]|8[2379])|5(?:[2467]|3[237]|8[2-5])|7[1-578]|8(?:[2469]|3[2578]|5[4-8]|7[36-8]|8[5-8]))|2(?:2[24-9]|3[1-59]|47)","2(?:[23]02|6(?:[25]|4(?:64|[78]))|9(?:[02356]|4(?:[0268]|5[2-6])|72|8[23]))|3(?:3[28]|4(?:[04679]|3[78]|5(?:4[46]|8)|8[2379])|5(?:[2467]|3[237]|8[23])|7[1-578]|8(?:[2469]|3[278]|5[56][46]|86[3-6]))|2(?:2[24-9]|3[1-59]|47)|38(?:[58][78]|7[378])|3(?:4[35][56]|58[45]|8(?:[38]5|54|76))[4-6]","2(?:[23]02|6(?:[25]|4(?:64|[78]))|9(?:[02356]|4(?:[0268]|5[2-6])|72|8[23]))|3(?:3[28]|4(?:[04679]|3(?:5(?:4[0-25689]|[56])|[78])|58|8[2379])|5(?:[2467]|3[237]|8(?:[23]|4(?:[45]|60)|5(?:4[0-39]|5|64)))|7[1-578]|8(?:[2469]|3[278]|54(?:4|5[13-7]|6[89])|86[3-6]))|2(?:2[24-9]|3[1-59]|47)|38(?:[58][78]|7[378])|3(?:454|85[56])[46]|3(?:4(?:36|5[56])|8(?:[38]5|76))[4-6]"],"0$1",1],["(\\d{2})(\\d{4})(\\d{4})","$1 $2-$3",["1"],"0$1",1],["(\\d{3})(\\d{3})(\\d{4})","$1-$2-$3",["[68]"],"0$1"],["(\\d{3})(\\d{3})(\\d{4})","$1 $2-$3",["[23]"],"0$1",1],["(\\d)(\\d{4})(\\d{2})(\\d{4})","$2 15-$3-$4",["9(?:2[2-469]|3[3-578])","9(?:2(?:2[024-9]|3[0-59]|47|6[245]|9[02-8])|3(?:3[28]|4[03-9]|5[2-46-8]|7[1-578]|8[2-9]))","9(?:2(?:[23]02|6(?:[25]|4[6-8])|9(?:[02356]|4[02568]|72|8[23]))|3(?:3[28]|4(?:[04679]|3[5-8]|5[4-68]|8[2379])|5(?:[2467]|3[237]|8[2-5])|7[1-578]|8(?:[2469]|3[2578]|5[4-8]|7[36-8]|8[5-8])))|92(?:2[24-9]|3[1-59]|47)","9(?:2(?:[23]02|6(?:[25]|4(?:64|[78]))|9(?:[02356]|4(?:[0268]|5[2-6])|72|8[23]))|3(?:3[28]|4(?:[04679]|3[78]|5(?:4[46]|8)|8[2379])|5(?:[2467]|3[237]|8[23])|7[1-578]|8(?:[2469]|3[278]|5(?:[56][46]|[78])|7[378]|8(?:6[3-6]|[78]))))|92(?:2[24-9]|3[1-59]|47)|93(?:4[35][56]|58[45]|8(?:[38]5|54|76))[4-6]","9(?:2(?:[23]02|6(?:[25]|4(?:64|[78]))|9(?:[02356]|4(?:[0268]|5[2-6])|72|8[23]))|3(?:3[28]|4(?:[04679]|3(?:5(?:4[0-25689]|[56])|[78])|5(?:4[46]|8)|8[2379])|5(?:[2467]|3[237]|8(?:[23]|4(?:[45]|60)|5(?:4[0-39]|5|64)))|7[1-578]|8(?:[2469]|3[278]|5(?:4(?:4|5[13-7]|6[89])|[56][46]|[78])|7[378]|8(?:6[3-6]|[78]))))|92(?:2[24-9]|3[1-59]|47)|93(?:4(?:36|5[56])|8(?:[38]5|76))[4-6]"],"0$1",0,"$1 $2 $3-$4"],["(\\d)(\\d{2})(\\d{4})(\\d{4})","$2 15-$3-$4",["91"],"0$1",0,"$1 $2 $3-$4"],["(\\d{3})(\\d{3})(\\d{5})","$1-$2-$3",["8"],"0$1"],["(\\d)(\\d{3})(\\d{3})(\\d{4})","$2 15-$3-$4",["9"],"0$1",0,"$1 $2 $3-$4"]],"0",0,"0?(?:(11|2(?:2(?:02?|[13]|2[13-79]|4[1-6]|5[2457]|6[124-8]|7[1-4]|8[13-6]|9[1267])|3(?:02?|1[467]|2[03-6]|3[13-8]|[49][2-6]|5[2-8]|[67])|4(?:7[3-578]|9)|6(?:[0136]|2[24-6]|4[6-8]?|5[15-8])|80|9(?:0[1-3]|[19]|2\\d|3[1-6]|4[02568]?|5[2-4]|6[2-46]|72?|8[23]?))|3(?:3(?:2[79]|6|8[2578])|4(?:0[0-24-9]|[12]|3[5-8]?|4[24-7]|5[4-68]?|6[02-9]|7[126]|8[2379]?|9[1-36-8])|5(?:1|2[1245]|3[237]?|4[1-46-9]|6[2-4]|7[1-6]|8[2-5]?)|6[24]|7(?:[069]|1[1568]|2[15]|3[145]|4[13]|5[14-8]|7[2-57]|8[126])|8(?:[01]|2[15-7]|3[2578]?|4[13-6]|5[4-8]?|6[1-357-9]|7[36-8]?|8[5-8]?|9[124])))15)?","9$1"],AS:["1","011","(?:[58]\\d\\d|684|900)\\d{7}",[10],0,"1",0,"([267]\\d{6})$|1","684$1",0,"684"],AT:["43","00","1\\d{3,12}|2\\d{6,12}|43(?:(?:0\\d|5[02-9])\\d{3,9}|2\\d{4,5}|[3467]\\d{4}|8\\d{4,6}|9\\d{4,7})|5\\d{4,12}|8\\d{7,12}|9\\d{8,12}|(?:[367]\\d|4[0-24-9])\\d{4,11}",[4,5,6,7,8,9,10,11,12,13],[["(\\d)(\\d{3,12})","$1 $2",["1(?:11|[2-9])"],"0$1"],["(\\d{3})(\\d{2})","$1 $2",["517"],"0$1"],["(\\d{2})(\\d{3,5})","$1 $2",["5[079]"],"0$1"],["(\\d{3})(\\d{3,10})","$1 $2",["(?:31|4)6|51|6(?:5[0-3579]|[6-9])|7(?:20|32|8)|[89]"],"0$1"],["(\\d{4})(\\d{3,9})","$1 $2",["[2-467]|5[2-6]"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["5"],"0$1"],["(\\d{2})(\\d{4})(\\d{4,7})","$1 $2 $3",["5"],"0$1"]],"0"],AU:["61","001[14-689]|14(?:1[14]|34|4[17]|[56]6|7[47]|88)0011","1(?:[0-79]\\d{7}(?:\\d(?:\\d{2})?)?|8[0-24-9]\\d{7})|[2-478]\\d{8}|1\\d{4,7}",[5,6,7,8,9,10,12],[["(\\d{2})(\\d{3,4})","$1 $2",["16"],"0$1"],["(\\d{2})(\\d{3})(\\d{2,4})","$1 $2 $3",["16"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["14|4"],"0$1"],["(\\d)(\\d{4})(\\d{4})","$1 $2 $3",["[2378]"],"(0$1)"],["(\\d{4})(\\d{3})(\\d{3})","$1 $2 $3",["1(?:30|[89])"]]],"0",0,"(183[12])|0",0,0,0,[["(?:(?:(?:2(?:[0-26-9]\\d|3[0-8]|4[02-9]|5[0135-9])|7(?:[013-57-9]\\d|2[0-8]))\\d|3(?:(?:[0-3589]\\d|6[1-9]|7[0-35-9])\\d|4(?:[0-578]\\d|90)))\\d\\d|8(?:51(?:0(?:0[03-9]|[12479]\\d|3[2-9]|5[0-8]|6[1-9]|8[0-7])|1(?:[0235689]\\d|1[0-69]|4[0-589]|7[0-47-9])|2(?:0[0-79]|[18][13579]|2[14-9]|3[0-46-9]|[4-6]\\d|7[89]|9[0-4])|3\\d\\d)|(?:6[0-8]|[78]\\d)\\d{3}|9(?:[02-9]\\d{3}|1(?:(?:[0-58]\\d|6[0135-9])\\d|7(?:0[0-24-9]|[1-9]\\d)|9(?:[0-46-9]\\d|5[0-79])))))\\d{3}",[9]],["4(?:79[01]|83[0-389]|94[0-4])\\d{5}|4(?:[0-36]\\d|4[047-9]|5[0-25-9]|7[02-8]|8[0-24-9]|9[0-37-9])\\d{6}",[9]],["180(?:0\\d{3}|2)\\d{3}",[7,10]],["190[0-26]\\d{6}",[10]],0,0,0,["163\\d{2,6}",[5,6,7,8,9]],["14(?:5(?:1[0458]|[23][458])|71\\d)\\d{4}",[9]],["13(?:00\\d{6}(?:\\d{2})?|45[0-4]\\d{3})|13\\d{4}",[6,8,10,12]]],"0011"],AW:["297","00","(?:[25-79]\\d\\d|800)\\d{4}",[7],[["(\\d{3})(\\d{4})","$1 $2",["[25-9]"]]]],AX:["358","00|99(?:[01469]|5(?:[14]1|3[23]|5[59]|77|88|9[09]))","2\\d{4,9}|35\\d{4,5}|(?:60\\d\\d|800)\\d{4,6}|7\\d{5,11}|(?:[14]\\d|3[0-46-9]|50)\\d{4,8}",[5,6,7,8,9,10,11,12],0,"0",0,0,0,0,"18",0,"00"],AZ:["994","00","365\\d{6}|(?:[124579]\\d|60|88)\\d{7}",[9],[["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["90"],"0$1"],["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["1[28]|2|365|46","1[28]|2|365[45]|46","1[28]|2|365(?:4|5[02])|46"],"(0$1)"],["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[13-9]"],"0$1"]],"0"],BA:["387","00","6\\d{8}|(?:[35689]\\d|49|70)\\d{6}",[8,9],[["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["6[1-3]|[7-9]"],"0$1"],["(\\d{2})(\\d{3})(\\d{3})","$1 $2-$3",["[3-5]|6[56]"],"0$1"],["(\\d{2})(\\d{2})(\\d{2})(\\d{3})","$1 $2 $3 $4",["6"],"0$1"]],"0"],BB:["1","011","(?:246|[58]\\d\\d|900)\\d{7}",[10],0,"1",0,"([2-9]\\d{6})$|1","246$1",0,"246"],BD:["880","00","[1-469]\\d{9}|8[0-79]\\d{7,8}|[2-79]\\d{8}|[2-9]\\d{7}|[3-9]\\d{6}|[57-9]\\d{5}",[6,7,8,9,10],[["(\\d{2})(\\d{4,6})","$1-$2",["31[5-8]|[459]1"],"0$1"],["(\\d{3})(\\d{3,7})","$1-$2",["3(?:[67]|8[013-9])|4(?:6[168]|7|[89][18])|5(?:6[128]|9)|6(?:[15]|28|4[14])|7[2-589]|8(?:0[014-9]|[12])|9[358]|(?:3[2-5]|4[235]|5[2-578]|6[0389]|76|8[3-7]|9[24])1|(?:44|66)[01346-9]"],"0$1"],["(\\d{4})(\\d{3,6})","$1-$2",["[13-9]|2[23]"],"0$1"],["(\\d)(\\d{7,8})","$1-$2",["2"],"0$1"]],"0"],BE:["32","00","4\\d{8}|[1-9]\\d{7}",[8,9],[["(\\d{3})(\\d{2})(\\d{3})","$1 $2 $3",["(?:80|9)0"],"0$1"],["(\\d)(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[239]|4[23]"],"0$1"],["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[15-8]"],"0$1"],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["4"],"0$1"]],"0"],BF:["226","00","[025-7]\\d{7}",[8],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[025-7]"]]]],BG:["359","00","00800\\d{7}|[2-7]\\d{6,7}|[89]\\d{6,8}|2\\d{5}",[6,7,8,9,12],[["(\\d)(\\d)(\\d{2})(\\d{2})","$1 $2 $3 $4",["2"],"0$1"],["(\\d{3})(\\d{4})","$1 $2",["43[1-6]|70[1-9]"],"0$1"],["(\\d)(\\d{3})(\\d{3,4})","$1 $2 $3",["2"],"0$1"],["(\\d{2})(\\d{3})(\\d{2,3})","$1 $2 $3",["[356]|4[124-7]|7[1-9]|8[1-6]|9[1-7]"],"0$1"],["(\\d{3})(\\d{2})(\\d{3})","$1 $2 $3",["(?:70|8)0"],"0$1"],["(\\d{3})(\\d{3})(\\d{2})","$1 $2 $3",["43[1-7]|7"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["[48]|9[08]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["9"],"0$1"]],"0"],BH:["973","00","[136-9]\\d{7}",[8],[["(\\d{4})(\\d{4})","$1 $2",["[13679]|8[02-4679]"]]]],BI:["257","00","(?:[267]\\d|31)\\d{6}",[8],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[2367]"]]]],BJ:["229","00","(?:01\\d|[24-689])\\d{7}",[8,10],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[24-689]"]],["(\\d{2})(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4 $5",["0"]]]],BL:["590","00","(?:590\\d|7090)\\d{5}|(?:69|80|9\\d)\\d{7}",[9],0,"0",0,0,0,0,0,[["590(?:2[7-9]|3[3-7]|5[12]|87)\\d{4}"],["(?:69(?:0\\d\\d|1(?:2[2-9]|3[0-5])|4(?:0[89]|1[2-6]|9\\d)|6(?:1[016-9]|5[0-4]|[67]\\d))|7090[0-4])\\d{4}"],["80[0-5]\\d{6}"],0,0,0,0,0,["9(?:(?:39[5-7]|76[018])\\d|475[0-6])\\d{4}"]]],BM:["1","011","(?:441|[58]\\d\\d|900)\\d{7}",[10],0,"1",0,"([2-9]\\d{6})$|1","441$1",0,"441"],BN:["673","00","[2-578]\\d{6}",[7],[["(\\d{3})(\\d{4})","$1 $2",["[2-578]"]]]],BO:["591","00(?:1\\d)?","8001\\d{5}|(?:[2-467]\\d|50)\\d{6}",[8,9],[["(\\d)(\\d{7})","$1 $2",["[235]|4[46]"]],["(\\d{8})","$1",["[67]"]],["(\\d{3})(\\d{2})(\\d{4})","$1 $2 $3",["8"]]],"0",0,"0(1\\d)?"],BQ:["599","00","(?:[34]1|7\\d)\\d{5}",[7],0,0,0,0,0,0,"[347]"],BR:["55","00(?:1[245]|2[1-35]|31|4[13]|[56]5|99)","(?:[1-46-9]\\d\\d|5(?:[0-46-9]\\d|5[0-46-9]))\\d{8}|[1-9]\\d{9}|[3589]\\d{8}|[34]\\d{7}",[8,9,10,11],[["(\\d{4})(\\d{4})","$1-$2",["300|4(?:0[02]|37)","4(?:02|37)0|[34]00"]],["(\\d{3})(\\d{2,3})(\\d{4})","$1 $2 $3",["(?:[358]|90)0"],"0$1"],["(\\d{2})(\\d{4})(\\d{4})","$1 $2-$3",["(?:[14689][1-9]|2[12478]|3[1-578]|5[13-5]|7[13-579])[2-57]"],"($1)"],["(\\d{2})(\\d{5})(\\d{4})","$1 $2-$3",["[16][1-9]|[2-57-9]"],"($1)"]],"0",0,"(?:0|90)(?:(1[245]|2[1-35]|31|4[13]|[56]5|99)(\\d{10,11}))?","$2"],BS:["1","011","(?:242|[58]\\d\\d|900)\\d{7}",[10],0,"1",0,"([3-8]\\d{6})$|1","242$1",0,"242"],BT:["975","00","[17]\\d{7}|[2-8]\\d{6}",[7,8],[["(\\d)(\\d{3})(\\d{3})","$1 $2 $3",["[2-68]|7[246]"]],["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["1[67]|7"]]]],BW:["267","00","(?:0800|(?:[37]|800)\\d)\\d{6}|(?:[2-6]\\d|90)\\d{5}",[7,8,10],[["(\\d{2})(\\d{5})","$1 $2",["90"]],["(\\d{3})(\\d{4})","$1 $2",["[24-6]|3[15-9]"]],["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["[37]"]],["(\\d{4})(\\d{3})(\\d{3})","$1 $2 $3",["0"]],["(\\d{3})(\\d{4})(\\d{3})","$1 $2 $3",["8"]]]],BY:["375","810","(?:[12]\\d|33|44|902)\\d{7}|8(?:0[0-79]\\d{5,7}|[1-7]\\d{9})|8(?:1[0-489]|[5-79]\\d)\\d{7}|8[1-79]\\d{6,7}|8[0-79]\\d{5}|8\\d{5}",[6,7,8,9,10,11],[["(\\d{3})(\\d{3})","$1 $2",["800"],"8 $1"],["(\\d{3})(\\d{2})(\\d{2,4})","$1 $2 $3",["800"],"8 $1"],["(\\d{4})(\\d{2})(\\d{3})","$1 $2-$3",["1(?:5[169]|6[3-5]|7[179])|2(?:1[35]|2[34]|3[3-5])","1(?:5[169]|6(?:3[1-3]|4|5[125])|7(?:1[3-9]|7[0-24-6]|9[2-7]))|2(?:1[35]|2[34]|3[3-5])"],"8 0$1"],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2-$3-$4",["1(?:[56]|7[467])|2[1-3]"],"8 0$1"],["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2-$3-$4",["[1-4]"],"8 0$1"],["(\\d{3})(\\d{3,4})(\\d{4})","$1 $2 $3",["[89]"],"8 $1"]],"8",0,"0|80?",0,0,0,0,"8~10"],BZ:["501","00","(?:0800\\d|[2-8])\\d{6}",[7,11],[["(\\d{3})(\\d{4})","$1-$2",["[2-8]"]],["(\\d)(\\d{3})(\\d{4})(\\d{3})","$1-$2-$3-$4",["0"]]]],CA:["1","011","[2-9]\\d{9}|3\\d{6}",[7,10],0,"1",0,0,0,0,0,[["(?:2(?:04|[23]6|[48]9|50|63)|3(?:06|43|54|6[578]|82)|4(?:03|1[68]|[26]8|3[178]|50|74)|5(?:06|1[49]|48|79|8[147])|6(?:04|[18]3|39|47|72)|7(?:0[59]|42|53|78|8[02])|8(?:[06]7|19|25|7[39])|9(?:0[25]|42))[2-9]\\d{6}",[10]],["",[10]],["8(?:00|33|44|55|66|77|88)[2-9]\\d{6}",[10]],["900[2-9]\\d{6}",[10]],["52(?:3(?:[2-46-9][02-9]\\d|5(?:[02-46-9]\\d|5[0-46-9]))|4(?:[2-478][02-9]\\d|5(?:[034]\\d|2[024-9]|5[0-46-9])|6(?:0[1-9]|[2-9]\\d)|9(?:[05-9]\\d|2[0-5]|49)))\\d{4}|52[34][2-9]1[02-9]\\d{4}|(?:5(?:2[125-9]|33|44|66|77|88)|6(?:22|33))[2-9]\\d{6}",[10]],0,["310\\d{4}",[7]],0,["600[2-9]\\d{6}",[10]]]],CC:["61","001[14-689]|14(?:1[14]|34|4[17]|[56]6|7[47]|88)0011","1(?:[0-79]\\d{8}(?:\\d{2})?|8[0-24-9]\\d{7})|[148]\\d{8}|1\\d{5,7}",[6,7,8,9,10,12],0,"0",0,"([59]\\d{7})$|0","8$1",0,0,[["8(?:51(?:0(?:02|31|60|89)|1(?:18|76)|223)|91(?:0(?:1[0-2]|29)|1(?:[28]2|50|79)|2(?:10|64)|3(?:[06]8|22)|4[29]8|62\\d|70[23]|959))\\d{3}",[9]],["4(?:79[01]|83[0-389]|94[0-4])\\d{5}|4(?:[0-36]\\d|4[047-9]|5[0-25-9]|7[02-8]|8[0-24-9]|9[0-37-9])\\d{6}",[9]],["180(?:0\\d{3}|2)\\d{3}",[7,10]],["190[0-26]\\d{6}",[10]],0,0,0,0,["14(?:5(?:1[0458]|[23][458])|71\\d)\\d{4}",[9]],["13(?:00\\d{6}(?:\\d{2})?|45[0-4]\\d{3})|13\\d{4}",[6,8,10,12]]],"0011"],CD:["243","00","(?:(?:[189]|5\\d)\\d|2)\\d{7}|[1-68]\\d{6}",[7,8,9,10],[["(\\d{2})(\\d{2})(\\d{3})","$1 $2 $3",["88"],"0$1"],["(\\d{2})(\\d{5})","$1 $2",["[1-6]"],"0$1"],["(\\d{2})(\\d{2})(\\d{4})","$1 $2 $3",["2"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["1"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[89]"],"0$1"],["(\\d{2})(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3 $4",["5"],"0$1"]],"0"],CF:["236","00","(?:[27]\\d{3}|8776)\\d{4}",[8],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[278]"]]]],CG:["242","00","222\\d{6}|(?:0\\d|80)\\d{7}",[9],[["(\\d)(\\d{4})(\\d{4})","$1 $2 $3",["8"]],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[02]"]]]],CH:["41","00","8\\d{11}|[2-9]\\d{8}",[9,12],[["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["8[047]|90"],"0$1"],["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[2-79]|81"],"0$1"],["(\\d{3})(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4 $5",["8"],"0$1"]],"0"],CI:["225","00","[02]\\d{9}",[10],[["(\\d{2})(\\d{2})(\\d)(\\d{5})","$1 $2 $3 $4",["2"]],["(\\d{2})(\\d{2})(\\d{2})(\\d{4})","$1 $2 $3 $4",["0"]]]],CK:["682","00","[2-578]\\d{4}",[5],[["(\\d{2})(\\d{3})","$1 $2",["[2-578]"]]]],CL:["56","(?:0|1(?:1[0-69]|2[02-5]|5[13-58]|69|7[0167]|8[018]))0","12300\\d{6}|6\\d{9,10}|[2-9]\\d{8}",[9,10,11],[["(\\d{5})(\\d{4})","$1 $2",["219","2196"],"($1)"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["44"]],["(\\d)(\\d{4})(\\d{4})","$1 $2 $3",["2[1-36]"],"($1)"],["(\\d)(\\d{4})(\\d{4})","$1 $2 $3",["9[2-9]"]],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["3[2-5]|[47]|5[1-3578]|6[13-57]|8(?:0[1-9]|[1-9])"],"($1)"],["(\\d{3})(\\d{3})(\\d{3,4})","$1 $2 $3",["60|8"]],["(\\d{4})(\\d{3})(\\d{4})","$1 $2 $3",["1"]],["(\\d{3})(\\d{3})(\\d{2})(\\d{3})","$1 $2 $3 $4",["60"]]]],CM:["237","00","[26]\\d{8}|88\\d{6,7}",[8,9],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["88"]],["(\\d)(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4 $5",["[26]|88"]]]],CN:["86","00|1(?:[12]\\d|79)\\d\\d00","(?:(?:1[03-689]|2\\d)\\d\\d|6)\\d{8}|1\\d{10}|[126]\\d{6}(?:\\d(?:\\d{2})?)?|86\\d{5,6}|(?:[3-579]\\d|8[0-57-9])\\d{5,9}",[7,8,9,10,11,12],[["(\\d{2})(\\d{5,6})","$1 $2",["(?:10|2[0-57-9])[19]|3(?:[157]|35|49|9[1-68])|4(?:1[124-9]|2[179]|6[47-9]|7|8[23])|5(?:[1357]|2[37]|4[36]|6[1-46]|80)|6(?:3[1-5]|6[0238]|9[12])|7(?:01|[1579]|2[248]|3[014-9]|4[3-6]|6[023689])|8(?:07|1[236-8]|2[5-7]|[37]|8[36-8]|9[1-8])|9(?:0[1-3689]|1[1-79]|3|4[13]|5[1-5]|7[0-79]|9[0-35-9])|(?:4[35]|59|85)[1-9]","(?:10|2[0-57-9])(?:1[02]|9[56])|8078|(?:3(?:[157]\\d|35|49|9[1-68])|4(?:1[124-9]|2[179]|[35][1-9]|6[47-9]|7\\d|8[23])|5(?:[1357]\\d|2[37]|4[36]|6[1-46]|80|9[1-9])|6(?:3[1-5]|6[0238]|9[12])|7(?:01|[1579]\\d|2[248]|3[014-9]|4[3-6]|6[023689])|8(?:1[236-8]|2[5-7]|[37]\\d|5[1-9]|8[36-8]|9[1-8])|9(?:0[1-3689]|1[1-79]|3\\d|4[13]|5[1-5]|7[0-79]|9[0-35-9]))1","10(?:1(?:0|23)|9[56])|2[0-57-9](?:1(?:00|23)|9[56])|80781|(?:3(?:[157]\\d|35|49|9[1-68])|4(?:1[124-9]|2[179]|[35][1-9]|6[47-9]|7\\d|8[23])|5(?:[1357]\\d|2[37]|4[36]|6[1-46]|80|9[1-9])|6(?:3[1-5]|6[0238]|9[12])|7(?:01|[1579]\\d|2[248]|3[014-9]|4[3-6]|6[023689])|8(?:1[236-8]|2[5-7]|[37]\\d|5[1-9]|8[36-8]|9[1-8])|9(?:0[1-3689]|1[1-79]|3\\d|4[13]|5[1-5]|7[0-79]|9[0-35-9]))12","10(?:1(?:0|23)|9[56])|2[0-57-9](?:1(?:00|23)|9[56])|807812|(?:3(?:[157]\\d|35|49|9[1-68])|4(?:1[124-9]|2[179]|[35][1-9]|6[47-9]|7\\d|8[23])|5(?:[1357]\\d|2[37]|4[36]|6[1-46]|80|9[1-9])|6(?:3[1-5]|6[0238]|9[12])|7(?:01|[1579]\\d|2[248]|3[014-9]|4[3-6]|6[023689])|8(?:1[236-8]|2[5-7]|[37]\\d|5[1-9]|8[36-8]|9[1-8])|9(?:0[1-3689]|1[1-79]|3\\d|4[13]|5[1-5]|7[0-79]|9[0-35-9]))123","10(?:1(?:0|23)|9[56])|2[0-57-9](?:1(?:00|23)|9[56])|(?:3(?:[157]\\d|35|49|9[1-68])|4(?:1[124-9]|2[179]|[35][1-9]|6[47-9]|7\\d|8[23])|5(?:[1357]\\d|2[37]|4[36]|6[1-46]|80|9[1-9])|6(?:3[1-5]|6[0238]|9[12])|7(?:01|[1579]\\d|2[248]|3[014-9]|4[3-6]|6[023689])|8(?:078|1[236-8]|2[5-7]|[37]\\d|5[1-9]|8[36-8]|9[1-8])|9(?:0[1-3689]|1[1-79]|3\\d|4[13]|5[1-5]|7[0-79]|9[0-35-9]))123"],"0$1"],["(\\d{3})(\\d{5,6})","$1 $2",["3(?:[157]|35|49|9[1-68])|4(?:[17]|2[179]|6[47-9]|8[23])|5(?:[1357]|2[37]|4[36]|6[1-46]|80)|6(?:3[1-5]|6[0238]|9[12])|7(?:01|[1579]|2[248]|3[014-9]|4[3-6]|6[023689])|8(?:1[236-8]|2[5-7]|[37]|8[36-8]|9[1-8])|9(?:0[1-3689]|1[1-79]|[379]|4[13]|5[1-5])|(?:4[35]|59|85)[1-9]","(?:3(?:[157]\\d|35|49|9[1-68])|4(?:[17]\\d|2[179]|[35][1-9]|6[47-9]|8[23])|5(?:[1357]\\d|2[37]|4[36]|6[1-46]|80|9[1-9])|6(?:3[1-5]|6[0238]|9[12])|7(?:01|[1579]\\d|2[248]|3[014-9]|4[3-6]|6[023689])|8(?:1[236-8]|2[5-7]|[37]\\d|5[1-9]|8[36-8]|9[1-8])|9(?:0[1-3689]|1[1-79]|[379]\\d|4[13]|5[1-5]))[19]","85[23](?:10|95)|(?:3(?:[157]\\d|35|49|9[1-68])|4(?:[17]\\d|2[179]|[35][1-9]|6[47-9]|8[23])|5(?:[1357]\\d|2[37]|4[36]|6[1-46]|80|9[1-9])|6(?:3[1-5]|6[0238]|9[12])|7(?:01|[1579]\\d|2[248]|3[014-9]|4[3-6]|6[023689])|8(?:1[236-8]|2[5-7]|[37]\\d|5[14-9]|8[36-8]|9[1-8])|9(?:0[1-3689]|1[1-79]|[379]\\d|4[13]|5[1-5]))(?:10|9[56])","85[23](?:100|95)|(?:3(?:[157]\\d|35|49|9[1-68])|4(?:[17]\\d|2[179]|[35][1-9]|6[47-9]|8[23])|5(?:[1357]\\d|2[37]|4[36]|6[1-46]|80|9[1-9])|6(?:3[1-5]|6[0238]|9[12])|7(?:01|[1579]\\d|2[248]|3[014-9]|4[3-6]|6[023689])|8(?:1[236-8]|2[5-7]|[37]\\d|5[14-9]|8[36-8]|9[1-8])|9(?:0[1-3689]|1[1-79]|[379]\\d|4[13]|5[1-5]))(?:100|9[56])"],"0$1"],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["(?:4|80)0"]],["(\\d{2})(\\d{4})(\\d{4})","$1 $2 $3",["10|2(?:[02-57-9]|1[1-9])","10|2(?:[02-57-9]|1[1-9])","10[0-79]|2(?:[02-57-9]|1[1-79])|(?:10|21)8(?:0[1-9]|[1-9])"],"0$1",1],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["3(?:[3-59]|7[02-68])|4(?:[26-8]|3[3-9]|5[2-9])|5(?:3[03-9]|[468]|7[028]|9[2-46-9])|6|7(?:[0-247]|3[04-9]|5[0-4689]|6[2368])|8(?:[1-358]|9[1-7])|9(?:[013479]|5[1-5])|(?:[34]1|55|79|87)[02-9]"],"0$1",1],["(\\d{3})(\\d{7,8})","$1 $2",["9"]],["(\\d{4})(\\d{3})(\\d{4})","$1 $2 $3",["80"],"0$1",1],["(\\d{3})(\\d{4})(\\d{4})","$1 $2 $3",["[3-578]"],"0$1",1],["(\\d{3})(\\d{4})(\\d{4})","$1 $2 $3",["1[3-9]"]],["(\\d{2})(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3 $4",["[12]"],"0$1",1]],"0",0,"(1(?:[12]\\d|79)\\d\\d)|0",0,0,0,0,"00"],CO:["57","00(?:4(?:[14]4|56)|[579])","(?:46|60\\d\\d)\\d{6}|(?:1\\d|[39])\\d{9}",[8,10,11],[["(\\d{4})(\\d{4})","$1 $2",["46"]],["(\\d{3})(\\d{7})","$1 $2",["6|90"],"($1)"],["(\\d{3})(\\d{7})","$1 $2",["3[0-357]|91"]],["(\\d)(\\d{3})(\\d{7})","$1-$2-$3",["1"],"0$1",0,"$1 $2 $3"]],"0",0,"0([3579]|4(?:[14]4|56))?"],CR:["506","00","(?:8\\d|90)\\d{8}|(?:[24-8]\\d{3}|3005)\\d{4}",[8,10],[["(\\d{4})(\\d{4})","$1 $2",["[2-7]|8[3-9]"]],["(\\d{3})(\\d{3})(\\d{4})","$1-$2-$3",["[89]"]]],0,0,"(19(?:0[0-2468]|1[09]|20|66|77|99))"],CU:["53","119","(?:[2-7]|8\\d\\d)\\d{7}|[2-47]\\d{6}|[34]\\d{5}",[6,7,8,10],[["(\\d{2})(\\d{4,6})","$1 $2",["2[1-4]|[34]"],"(0$1)"],["(\\d)(\\d{6,7})","$1 $2",["7"],"(0$1)"],["(\\d)(\\d{7})","$1 $2",["[56]"],"0$1"],["(\\d{3})(\\d{7})","$1 $2",["8"],"0$1"]],"0"],CV:["238","0","(?:[2-59]\\d\\d|800)\\d{4}",[7],[["(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3",["[2-589]"]]]],CW:["599","00","(?:[34]1|60|(?:7|9\\d)\\d)\\d{5}",[7,8],[["(\\d{3})(\\d{4})","$1 $2",["[3467]"]],["(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["9[4-8]"]]],0,0,0,0,0,"[69]"],CX:["61","001[14-689]|14(?:1[14]|34|4[17]|[56]6|7[47]|88)0011","1(?:[0-79]\\d{8}(?:\\d{2})?|8[0-24-9]\\d{7})|[148]\\d{8}|1\\d{5,7}",[6,7,8,9,10,12],0,"0",0,"([59]\\d{7})$|0","8$1",0,0,[["8(?:51(?:0(?:01|30|59|88)|1(?:17|46|75)|2(?:22|35))|91(?:00[6-9]|1(?:[28]1|49|78)|2(?:09|63)|3(?:12|26|75)|4(?:56|97)|64\\d|7(?:0[01]|1[0-2])|958))\\d{3}",[9]],["4(?:79[01]|83[0-389]|94[0-4])\\d{5}|4(?:[0-36]\\d|4[047-9]|5[0-25-9]|7[02-8]|8[0-24-9]|9[0-37-9])\\d{6}",[9]],["180(?:0\\d{3}|2)\\d{3}",[7,10]],["190[0-26]\\d{6}",[10]],0,0,0,0,["14(?:5(?:1[0458]|[23][458])|71\\d)\\d{4}",[9]],["13(?:00\\d{6}(?:\\d{2})?|45[0-4]\\d{3})|13\\d{4}",[6,8,10,12]]],"0011"],CY:["357","00","(?:[279]\\d|[58]0)\\d{6}",[8],[["(\\d{2})(\\d{6})","$1 $2",["[257-9]"]]]],CZ:["420","00","(?:[2-578]\\d|60)\\d{7}|9\\d{8,11}",[9,10,11,12],[["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[2-8]|9[015-7]"]],["(\\d{2})(\\d{3})(\\d{3})(\\d{2})","$1 $2 $3 $4",["96"]],["(\\d{2})(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3 $4",["9"]],["(\\d{3})(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3 $4",["9"]]]],DE:["49","00","[2579]\\d{5,14}|49(?:[34]0|69|8\\d)\\d\\d?|49(?:37|49|60|7[089]|9\\d)\\d{1,3}|49(?:2[024-9]|3[2-689]|7[1-7])\\d{1,8}|(?:1|[368]\\d|4[0-8])\\d{3,13}|49(?:[015]\\d|2[13]|31|[46][1-8])\\d{1,9}",[4,5,6,7,8,9,10,11,12,13,14,15],[["(\\d{2})(\\d{3,13})","$1 $2",["3[02]|40|[68]9"],"0$1"],["(\\d{3})(\\d{3,12})","$1 $2",["2(?:0[1-389]|1[124]|2[18]|3[14])|3(?:[35-9][15]|4[015])|906|(?:2[4-9]|4[2-9]|[579][1-9]|[68][1-8])1","2(?:0[1-389]|12[0-8])|3(?:[35-9][15]|4[015])|906|2(?:[13][14]|2[18])|(?:2[4-9]|4[2-9]|[579][1-9]|[68][1-8])1"],"0$1"],["(\\d{4})(\\d{2,11})","$1 $2",["[24-6]|3(?:[3569][02-46-9]|4[2-4679]|7[2-467]|8[2-46-8])|70[2-8]|8(?:0[2-9]|[1-8])|90[7-9]|[79][1-9]","[24-6]|3(?:3(?:0[1-467]|2[127-9]|3[124578]|7[1257-9]|8[1256]|9[145])|4(?:2[135]|4[13578]|9[1346])|5(?:0[14]|2[1-3589]|6[1-4]|7[13468]|8[13568])|6(?:2[1-489]|3[124-6]|6[13]|7[12579]|8[1-356]|9[135])|7(?:2[1-7]|4[145]|6[1-5]|7[1-4])|8(?:21|3[1468]|6|7[1467]|8[136])|9(?:0[12479]|2[1358]|4[134679]|6[1-9]|7[136]|8[147]|9[1468]))|70[2-8]|8(?:0[2-9]|[1-8])|90[7-9]|[79][1-9]|3[68]4[1347]|3(?:47|60)[1356]|3(?:3[46]|46|5[49])[1246]|3[4579]3[1357]"],"0$1"],["(\\d{3})(\\d{4})","$1 $2",["138"],"0$1"],["(\\d{5})(\\d{2,10})","$1 $2",["3"],"0$1"],["(\\d{3})(\\d{5,11})","$1 $2",["181"],"0$1"],["(\\d{3})(\\d)(\\d{4,10})","$1 $2 $3",["1(?:3|80)|9"],"0$1"],["(\\d{3})(\\d{7,8})","$1 $2",["1[67]"],"0$1"],["(\\d{3})(\\d{7,12})","$1 $2",["8"],"0$1"],["(\\d{5})(\\d{6})","$1 $2",["185","1850","18500"],"0$1"],["(\\d{3})(\\d{4})(\\d{4})","$1 $2 $3",["7"],"0$1"],["(\\d{4})(\\d{7})","$1 $2",["18[68]"],"0$1"],["(\\d{4})(\\d{7})","$1 $2",["15[1279]"],"0$1"],["(\\d{5})(\\d{6})","$1 $2",["15[03568]","15(?:[0568]|31)"],"0$1"],["(\\d{3})(\\d{8})","$1 $2",["18"],"0$1"],["(\\d{3})(\\d{2})(\\d{7,8})","$1 $2 $3",["1(?:6[023]|7)"],"0$1"],["(\\d{4})(\\d{2})(\\d{7})","$1 $2 $3",["15[279]"],"0$1"],["(\\d{3})(\\d{2})(\\d{8})","$1 $2 $3",["15"],"0$1"]],"0"],DJ:["253","00","(?:2\\d|77)\\d{6}",[8],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[27]"]]]],DK:["45","00","[2-9]\\d{7}",[8],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[2-9]"]]]],DM:["1","011","(?:[58]\\d\\d|767|900)\\d{7}",[10],0,"1",0,"([2-7]\\d{6})$|1","767$1",0,"767"],DO:["1","011","(?:[58]\\d\\d|900)\\d{7}",[10],0,"1",0,0,0,0,"8001|8[024]9"],DZ:["213","00","(?:[1-4]|[5-79]\\d|80)\\d{7}",[8,9],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[1-4]"],"0$1"],["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["9"],"0$1"],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[5-8]"],"0$1"]],"0"],EC:["593","00","1\\d{9,10}|(?:[2-7]|9\\d)\\d{7}",[8,9,10,11],[["(\\d)(\\d{3})(\\d{4})","$1 $2-$3",["[2-7]"],"(0$1)",0,"$1-$2-$3"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["9"],"0$1"],["(\\d{4})(\\d{3})(\\d{3,4})","$1 $2 $3",["1"]]],"0"],EE:["372","00","8\\d{9}|[4578]\\d{7}|(?:[3-8]\\d|90)\\d{5}",[7,8,10],[["(\\d{3})(\\d{4})","$1 $2",["[369]|4[3-8]|5(?:[0-2]|5[0-478]|6[45])|7[1-9]|88","[369]|4[3-8]|5(?:[02]|1(?:[0-8]|95)|5[0-478]|6(?:4[0-4]|5[1-589]))|7[1-9]|88"]],["(\\d{4})(\\d{3,4})","$1 $2",["[45]|8(?:00|[1-49])","[45]|8(?:00[1-9]|[1-49])"]],["(\\d{2})(\\d{2})(\\d{4})","$1 $2 $3",["7"]],["(\\d{4})(\\d{3})(\\d{3})","$1 $2 $3",["8"]]]],EG:["20","00","[189]\\d{8,9}|[24-6]\\d{8}|[135]\\d{7}",[8,9,10],[["(\\d)(\\d{7,8})","$1 $2",["[23]"],"0$1"],["(\\d{2})(\\d{6,7})","$1 $2",["1[35]|[4-6]|8[2468]|9[235-7]"],"0$1"],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["[89]"],"0$1"],["(\\d{2})(\\d{8})","$1 $2",["1"],"0$1"]],"0"],EH:["212","00","[5-8]\\d{8}",[9],0,"0",0,0,0,0,"528[89]"],ER:["291","00","[178]\\d{6}",[7],[["(\\d)(\\d{3})(\\d{3})","$1 $2 $3",["[178]"],"0$1"]],"0"],ES:["34","00","[5-9]\\d{8}",[9],[["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[89]00"]],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[5-9]"]]]],ET:["251","00","(?:11|[2-579]\\d)\\d{7}",[9],[["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[1-579]"],"0$1"]],"0"],FI:["358","00|99(?:[01469]|5(?:[14]1|3[23]|5[59]|77|88|9[09]))","[1-35689]\\d{4}|7\\d{10,11}|(?:[124-7]\\d|3[0-46-9])\\d{8}|[1-9]\\d{5,8}",[5,6,7,8,9,10,11,12],[["(\\d{5})","$1",["20[2-59]"],"0$1"],["(\\d{3})(\\d{3,7})","$1 $2",["(?:[1-3]0|[68])0|70[07-9]"],"0$1"],["(\\d{2})(\\d{4,8})","$1 $2",["[14]|2[09]|50|7[135]"],"0$1"],["(\\d{2})(\\d{6,10})","$1 $2",["7"],"0$1"],["(\\d)(\\d{4,9})","$1 $2",["(?:19|[2568])[1-8]|3(?:0[1-9]|[1-9])|9"],"0$1"]],"0",0,0,0,0,"1[03-79]|[2-9]",0,"00"],FJ:["679","0(?:0|52)","45\\d{5}|(?:0800\\d|[235-9])\\d{6}",[7,11],[["(\\d{3})(\\d{4})","$1 $2",["[235-9]|45"]],["(\\d{4})(\\d{3})(\\d{4})","$1 $2 $3",["0"]]],0,0,0,0,0,0,0,"00"],FK:["500","00","[2-7]\\d{4}",[5]],FM:["691","00","(?:[39]\\d\\d|820)\\d{4}",[7],[["(\\d{3})(\\d{4})","$1 $2",["[389]"]]]],FO:["298","00","[2-9]\\d{5}",[6],[["(\\d{6})","$1",["[2-9]"]]],0,0,"(10(?:01|[12]0|88))"],FR:["33","00","[1-9]\\d{8}",[9],[["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["8"],"0 $1"],["(\\d)(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4 $5",["[1-79]"],"0$1"]],"0"],GA:["241","00","(?:[067]\\d|11)\\d{6}|[2-7]\\d{6}",[7,8],[["(\\d)(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[2-7]"],"0$1"],["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["0"]],["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["11|[67]"],"0$1"]],0,0,"0(11\\d{6}|60\\d{6}|61\\d{6}|6[256]\\d{6}|7[467]\\d{6})","$1"],GB:["44","00","[1-357-9]\\d{9}|[18]\\d{8}|8\\d{6}",[7,9,10],[["(\\d{3})(\\d{4})","$1 $2",["800","8001","80011","800111","8001111"],"0$1"],["(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3",["845","8454","84546","845464"],"0$1"],["(\\d{3})(\\d{6})","$1 $2",["800"],"0$1"],["(\\d{5})(\\d{4,5})","$1 $2",["1(?:38|5[23]|69|76|94)","1(?:(?:38|69)7|5(?:24|39)|768|946)","1(?:3873|5(?:242|39[4-6])|(?:697|768)[347]|9467)"],"0$1"],["(\\d{4})(\\d{5,6})","$1 $2",["1(?:[2-69][02-9]|[78])"],"0$1"],["(\\d{2})(\\d{4})(\\d{4})","$1 $2 $3",["[25]|7(?:0|6[02-9])","[25]|7(?:0|6(?:[03-9]|2[356]))"],"0$1"],["(\\d{4})(\\d{6})","$1 $2",["7"],"0$1"],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["[1389]"],"0$1"]],"0",0,0,0,0,0,[["(?:1(?:1(?:3(?:[0-58]\\d\\d|73[0-35])|4(?:(?:[0-5]\\d|70)\\d|69[7-9])|(?:(?:5[0-26-9]|[78][0-49])\\d|6(?:[0-4]\\d|50))\\d)|(?:2(?:(?:0[024-9]|2[3-9]|3[3-79]|4[1-689]|[58][02-9]|6[0-47-9]|7[013-9]|9\\d)\\d|1(?:[0-7]\\d|8[0-3]))|(?:3(?:0\\d|1[0-8]|[25][02-9]|3[02-579]|[468][0-46-9]|7[1-35-79]|9[2-578])|4(?:0[03-9]|[137]\\d|[28][02-57-9]|4[02-69]|5[0-8]|[69][0-79])|5(?:0[1-35-9]|[16]\\d|2[024-9]|3[015689]|4[02-9]|5[03-9]|7[0-35-9]|8[0-468]|9[0-57-9])|6(?:0[034689]|1\\d|2[0-35689]|[38][013-9]|4[1-467]|5[0-69]|6[13-9]|7[0-8]|9[0-24578])|7(?:0[0246-9]|2\\d|3[0236-8]|4[03-9]|5[0-46-9]|6[013-9]|7[0-35-9]|8[024-9]|9[02-9])|8(?:0[35-9]|2[1-57-9]|3[02-578]|4[0-578]|5[124-9]|6[2-69]|7\\d|8[02-9]|9[02569])|9(?:0[02-589]|[18]\\d|2[02-689]|3[1-57-9]|4[2-9]|5[0-579]|6[2-47-9]|7[0-24578]|9[2-57]))\\d)\\d)|2(?:0[013478]|3[0189]|4[017]|8[0-46-9]|9[0-2])\\d{3})\\d{4}|1(?:2(?:0(?:46[1-4]|87[2-9])|545[1-79]|76(?:2\\d|3[1-8]|6[1-6])|9(?:7(?:2[0-4]|3[2-5])|8(?:2[2-8]|7[0-47-9]|8[3-5])))|3(?:6(?:38[2-5]|47[23])|8(?:47[04-9]|64[0157-9]))|4(?:044[1-7]|20(?:2[23]|8\\d)|6(?:0(?:30|5[2-57]|6[1-8]|7[2-8])|140)|8(?:052|87[1-3]))|5(?:2(?:4(?:3[2-79]|6\\d)|76\\d)|6(?:26[06-9]|686))|6(?:06(?:4\\d|7[4-79])|295[5-7]|35[34]\\d|47(?:24|61)|59(?:5[08]|6[67]|74)|9(?:55[0-4]|77[23]))|7(?:26(?:6[13-9]|7[0-7])|(?:442|688)\\d|50(?:2[0-3]|[3-68]2|76))|8(?:27[56]\\d|37(?:5[2-5]|8[239])|843[2-58])|9(?:0(?:0(?:6[1-8]|85)|52\\d)|3583|4(?:66[1-8]|9(?:2[01]|81))|63(?:23|3[1-4])|9561))\\d{3}",[9,10]],["7(?:457[0-57-9]|700[01]|911[028])\\d{5}|7(?:[1-3]\\d\\d|4(?:[0-46-9]\\d|5[0-689])|5(?:0[0-8]|[13-9]\\d|2[0-35-9])|7(?:0[1-9]|[1-7]\\d|8[02-9]|9[0-689])|8(?:[014-9]\\d|[23][0-8])|9(?:[024-9]\\d|1[02-9]|3[0-689]))\\d{6}",[10]],["80[08]\\d{7}|800\\d{6}|8001111"],["(?:8(?:4[2-5]|7[0-3])|9(?:[01]\\d|8[2-49]))\\d{7}|845464\\d",[7,10]],["70\\d{8}",[10]],0,["(?:3[0347]|55)\\d{8}",[10]],["76(?:464|652)\\d{5}|76(?:0[0-28]|2[356]|34|4[01347]|5[49]|6[0-369]|77|8[14]|9[139])\\d{6}",[10]],["56\\d{8}",[10]]],0," x"],GD:["1","011","(?:473|[58]\\d\\d|900)\\d{7}",[10],0,"1",0,"([2-9]\\d{6})$|1","473$1",0,"473"],GE:["995","00","(?:[3-57]\\d\\d|800)\\d{6}",[9],[["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["70"],"0$1"],["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["32"],"0$1"],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[57]"]],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[348]"],"0$1"]],"0"],GF:["594","00","(?:[56]94\\d|7093)\\d{5}|(?:80|9\\d)\\d{7}",[9],[["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[5-7]|9[47]"],"0$1"],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[89]"],"0$1"]],"0"],GG:["44","00","(?:1481|[357-9]\\d{3})\\d{6}|8\\d{6}(?:\\d{2})?",[7,9,10],0,"0",0,"([25-9]\\d{5})$|0","1481$1",0,0,[["1481[25-9]\\d{5}",[10]],["7(?:(?:781|839)\\d|911[17])\\d{5}",[10]],["80[08]\\d{7}|800\\d{6}|8001111"],["(?:8(?:4[2-5]|7[0-3])|9(?:[01]\\d|8[0-3]))\\d{7}|845464\\d",[7,10]],["70\\d{8}",[10]],0,["(?:3[0347]|55)\\d{8}",[10]],["76(?:464|652)\\d{5}|76(?:0[0-28]|2[356]|34|4[01347]|5[49]|6[0-369]|77|8[14]|9[139])\\d{6}",[10]],["56\\d{8}",[10]]]],GH:["233","00","(?:[235]\\d{3}|800)\\d{5}",[8,9],[["(\\d{3})(\\d{5})","$1 $2",["8"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[235]"],"0$1"]],"0"],GI:["350","00","(?:[25]\\d|60)\\d{6}",[8],[["(\\d{3})(\\d{5})","$1 $2",["2"]]]],GL:["299","00","(?:19|[2-689]\\d|70)\\d{4}",[6],[["(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3",["19|[2-9]"]]]],GM:["220","00","[2-9]\\d{6}",[7],[["(\\d{3})(\\d{4})","$1 $2",["[2-9]"]]]],GN:["224","00","722\\d{6}|(?:3|6\\d)\\d{7}",[8,9],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["3"]],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[67]"]]]],GP:["590","00","(?:590\\d|7090)\\d{5}|(?:69|80|9\\d)\\d{7}",[9],[["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[5-79]"],"0$1"],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["8"],"0$1"]],"0",0,0,0,0,0,[["590(?:0[1-68]|[14][0-24-9]|2[0-68]|3[1-9]|5[3-579]|[68][0-689]|7[08]|9\\d)\\d{4}"],["(?:69(?:0\\d\\d|1(?:2[2-9]|3[0-5])|4(?:0[89]|1[2-6]|9\\d)|6(?:1[016-9]|5[0-4]|[67]\\d))|7090[0-4])\\d{4}"],["80[0-5]\\d{6}"],0,0,0,0,0,["9(?:(?:39[5-7]|76[018])\\d|475[0-6])\\d{4}"]]],GQ:["240","00","222\\d{6}|(?:3\\d|55|[89]0)\\d{7}",[9],[["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[235]"]],["(\\d{3})(\\d{6})","$1 $2",["[89]"]]]],GR:["30","00","5005000\\d{3}|8\\d{9,11}|(?:[269]\\d|70)\\d{8}",[10,11,12],[["(\\d{2})(\\d{4})(\\d{4})","$1 $2 $3",["21|7"]],["(\\d{4})(\\d{6})","$1 $2",["2(?:2|3[2-57-9]|4[2-469]|5[2-59]|6[2-9]|7[2-69]|8[2-49])|5"]],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["[2689]"]],["(\\d{3})(\\d{3,4})(\\d{5})","$1 $2 $3",["8"]]]],GT:["502","00","80\\d{6}|(?:1\\d{3}|[2-7])\\d{7}",[8,11],[["(\\d{4})(\\d{4})","$1 $2",["[2-8]"]],["(\\d{4})(\\d{3})(\\d{4})","$1 $2 $3",["1"]]]],GU:["1","011","(?:[58]\\d\\d|671|900)\\d{7}",[10],0,"1",0,"([2-9]\\d{6})$|1","671$1",0,"671"],GW:["245","00","[49]\\d{8}|4\\d{6}",[7,9],[["(\\d{3})(\\d{4})","$1 $2",["40"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[49]"]]]],GY:["592","001","(?:[2-8]\\d{3}|9008)\\d{3}",[7],[["(\\d{3})(\\d{4})","$1 $2",["[2-9]"]]]],HK:["852","00(?:30|5[09]|[126-9]?)","8[0-46-9]\\d{6,7}|9\\d{4,7}|(?:[2-7]|9\\d{3})\\d{7}",[5,6,7,8,9,11],[["(\\d{3})(\\d{2,5})","$1 $2",["900","9003"]],["(\\d{4})(\\d{4})","$1 $2",["[2-7]|8[1-4]|9(?:0[1-9]|[1-8])"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["8"]],["(\\d{3})(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3 $4",["9"]]],0,0,0,0,0,0,0,"00"],HN:["504","00","8\\d{10}|[237-9]\\d{7}",[8,11],[["(\\d{4})(\\d{4})","$1-$2",["[237-9]"]]]],HR:["385","00","(?:[24-69]\\d|3[0-79])\\d{7}|80\\d{5,7}|[1-79]\\d{7}|6\\d{5,6}",[6,7,8,9],[["(\\d{2})(\\d{2})(\\d{2,3})","$1 $2 $3",["6[01]"],"0$1"],["(\\d{3})(\\d{2})(\\d{2,3})","$1 $2 $3",["8"],"0$1"],["(\\d)(\\d{4})(\\d{3})","$1 $2 $3",["1"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["6|7[245]"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["9"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["[2-57]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["8"],"0$1"]],"0"],HT:["509","00","(?:[2-489]\\d|55)\\d{6}",[8],[["(\\d{2})(\\d{2})(\\d{4})","$1 $2 $3",["[2-589]"]]]],HU:["36","00","[235-7]\\d{8}|[1-9]\\d{7}",[8,9],[["(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["1"],"(06 $1)"],["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["[27][2-9]|3[2-7]|4[24-9]|5[2-79]|6|8[2-57-9]|9[2-69]"],"(06 $1)"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["[2-9]"],"06 $1"]],"06"],ID:["62","00[89]","00[1-9]\\d{9,14}|(?:[1-36]|8\\d{5})\\d{6}|00\\d{9}|[1-9]\\d{8,10}|[2-9]\\d{7}",[7,8,9,10,11,12,13,14,15,16,17],[["(\\d)(\\d{3})(\\d{3})","$1 $2 $3",["15"]],["(\\d{2})(\\d{5,9})","$1 $2",["2[124]|[36]1"],"(0$1)"],["(\\d{3})(\\d{5,7})","$1 $2",["800"],"0$1"],["(\\d{3})(\\d{5,8})","$1 $2",["[2-79]"],"(0$1)"],["(\\d{3})(\\d{3,4})(\\d{3})","$1-$2-$3",["8[1-35-9]"],"0$1"],["(\\d{3})(\\d{6,8})","$1 $2",["1"],"0$1"],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["804"],"0$1"],["(\\d{3})(\\d)(\\d{3})(\\d{3})","$1 $2 $3 $4",["80"],"0$1"],["(\\d{3})(\\d{4})(\\d{4,5})","$1-$2-$3",["8"],"0$1"]],"0"],IE:["353","00","(?:1\\d|[2569])\\d{6,8}|4\\d{6,9}|7\\d{8}|8\\d{8,9}",[7,8,9,10],[["(\\d{2})(\\d{5})","$1 $2",["2[24-9]|47|58|6[237-9]|9[35-9]"],"(0$1)"],["(\\d{3})(\\d{5})","$1 $2",["[45]0"],"(0$1)"],["(\\d)(\\d{3,4})(\\d{4})","$1 $2 $3",["1"],"(0$1)"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["[2569]|4[1-69]|7[14]"],"(0$1)"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["70"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["81"],"(0$1)"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[78]"],"0$1"],["(\\d{4})(\\d{3})(\\d{3})","$1 $2 $3",["1"]],["(\\d{2})(\\d{4})(\\d{4})","$1 $2 $3",["4"],"(0$1)"],["(\\d{2})(\\d)(\\d{3})(\\d{4})","$1 $2 $3 $4",["8"],"0$1"]],"0"],IL:["972","0(?:0|1[2-9])","1\\d{6}(?:\\d{3,5})?|[57]\\d{8}|[1-489]\\d{7}",[7,8,9,10,11,12],[["(\\d{4})(\\d{3})","$1-$2",["125"]],["(\\d{4})(\\d{2})(\\d{2})","$1-$2-$3",["121"]],["(\\d)(\\d{3})(\\d{4})","$1-$2-$3",["[2-489]"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1-$2-$3",["[57]"],"0$1"],["(\\d{4})(\\d{3})(\\d{3})","$1-$2-$3",["12"]],["(\\d{4})(\\d{6})","$1-$2",["159"]],["(\\d)(\\d{3})(\\d{3})(\\d{3})","$1-$2-$3-$4",["1[7-9]"]],["(\\d{3})(\\d{1,2})(\\d{3})(\\d{4})","$1-$2 $3-$4",["15"]]],"0"],IM:["44","00","1624\\d{6}|(?:[3578]\\d|90)\\d{8}",[10],0,"0",0,"([25-8]\\d{5})$|0","1624$1",0,"74576|(?:16|7[56])24"],IN:["91","00","(?:000800|[2-9]\\d\\d)\\d{7}|1\\d{7,12}",[8,9,10,11,12,13],[["(\\d{8})","$1",["5(?:0|2[23]|3[03]|[67]1|88)","5(?:0|2(?:21|3)|3(?:0|3[23])|616|717|888)","5(?:0|2(?:21|3)|3(?:0|3[23])|616|717|8888)"],0,1],["(\\d{4})(\\d{4,5})","$1 $2",["180","1800"],0,1],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["140"],0,1],["(\\d{2})(\\d{4})(\\d{4})","$1 $2 $3",["11|2[02]|33|4[04]|79[1-7]|80[2-46]","11|2[02]|33|4[04]|79(?:[1-6]|7[19])|80(?:[2-4]|6[0-589])","11|2[02]|33|4[04]|79(?:[124-6]|3(?:[02-9]|1[0-24-9])|7(?:1|9[1-6]))|80(?:[2-4]|6[0-589])"],"0$1",1],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["1(?:2[0-249]|3[0-25]|4[145]|[68]|7[1257])|2(?:1[257]|3[013]|4[01]|5[0137]|6[0158]|78|8[1568])|3(?:26|4[1-3]|5[34]|6[01489]|7[02-46]|8[159])|4(?:1[36]|2[1-47]|5[12]|6[0-26-9]|7[0-24-9]|8[013-57]|9[014-7])|5(?:1[025]|22|[36][25]|4[28]|5[12]|[78]1)|6(?:12|[2-4]1|5[17]|6[13]|80)|7(?:12|3[134]|4[47]|61|88)|8(?:16|2[014]|3[126]|6[136]|7[078]|8[34]|91)|(?:43|59|75)[15]|(?:1[59]|29|67|72)[14]","1(?:2[0-24]|3[0-25]|4[145]|[59][14]|6[1-9]|7[1257]|8[1-57-9])|2(?:1[257]|3[013]|4[01]|5[0137]|6[058]|78|8[1568]|9[14])|3(?:26|4[1-3]|5[34]|6[01489]|7[02-46]|8[159])|4(?:1[36]|2[1-47]|3[15]|5[12]|6[0-26-9]|7[0-24-9]|8[013-57]|9[014-7])|5(?:1[025]|22|[36][25]|4[28]|[578]1|9[15])|674|7(?:(?:2[14]|3[34]|5[15])[2-6]|61[346]|88[0-8])|8(?:70[2-6]|84[235-7]|91[3-7])|(?:1(?:29|60|8[06])|261|552|6(?:12|[2-47]1|5[17]|6[13]|80)|7(?:12|31|4[47])|8(?:16|2[014]|3[126]|6[136]|7[78]|83))[2-7]","1(?:2[0-24]|3[0-25]|4[145]|[59][14]|6[1-9]|7[1257]|8[1-57-9])|2(?:1[257]|3[013]|4[01]|5[0137]|6[058]|78|8[1568]|9[14])|3(?:26|4[1-3]|5[34]|6[01489]|7[02-46]|8[159])|4(?:1[36]|2[1-47]|3[15]|5[12]|6[0-26-9]|7[0-24-9]|8[013-57]|9[014-7])|5(?:1[025]|22|[36][25]|4[28]|[578]1|9[15])|6(?:12(?:[2-6]|7[0-8])|74[2-7])|7(?:(?:2[14]|5[15])[2-6]|3171|61[346]|88(?:[2-7]|82))|8(?:70[2-6]|84(?:[2356]|7[19])|91(?:[3-6]|7[19]))|73[134][2-6]|(?:74[47]|8(?:16|2[014]|3[126]|6[136]|7[78]|83))(?:[2-6]|7[19])|(?:1(?:29|60|8[06])|261|552|6(?:[2-4]1|5[17]|6[13]|7(?:1|4[0189])|80)|7(?:12|88[01]))[2-7]"],"0$1",1],["(\\d{4})(\\d{3})(\\d{3})","$1 $2 $3",["1(?:[2-479]|5[0235-9])|[2-5]|6(?:1[1358]|2[2457-9]|3[2-5]|4[235-7]|5[2-689]|6[24578]|7[235689]|8[1-6])|7(?:1[013-9]|28|3[129]|4[1-35689]|5[29]|6[02-5]|70)|807","1(?:[2-479]|5[0235-9])|[2-5]|6(?:1[1358]|2(?:[2457]|84|95)|3(?:[2-4]|55)|4[235-7]|5[2-689]|6[24578]|7[235689]|8[1-6])|7(?:1(?:[013-8]|9[6-9])|28[6-8]|3(?:17|2[0-49]|9[2-57])|4(?:1[2-4]|[29][0-7]|3[0-8]|[56]|8[0-24-7])|5(?:2[1-3]|9[0-6])|6(?:0[5689]|2[5-9]|3[02-8]|4|5[0-367])|70[13-7])|807[19]","1(?:[2-479]|5(?:[0236-9]|5[013-9]))|[2-5]|6(?:2(?:84|95)|355|83)|73179|807(?:1|9[1-3])|(?:1552|6(?:1[1358]|2[2457]|3[2-4]|4[235-7]|5[2-689]|6[24578]|7[235689]|8[124-6])\\d|7(?:1(?:[013-8]\\d|9[6-9])|28[6-8]|3(?:2[0-49]|9[2-57])|4(?:1[2-4]|[29][0-7]|3[0-8]|[56]\\d|8[0-24-7])|5(?:2[1-3]|9[0-6])|6(?:0[5689]|2[5-9]|3[02-8]|4\\d|5[0-367])|70[13-7]))[2-7]"],"0$1",1],["(\\d{5})(\\d{5})","$1 $2",["[6-9]"],"0$1",1],["(\\d{4})(\\d{2,4})(\\d{4})","$1 $2 $3",["1(?:6|8[06])","1(?:6|8[06]0)"],0,1],["(\\d{4})(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3 $4",["18"],0,1]],"0"],IO:["246","00","3\\d{6}",[7],[["(\\d{3})(\\d{4})","$1 $2",["3"]]]],IQ:["964","00","(?:1|7\\d\\d)\\d{7}|[2-6]\\d{7,8}",[8,9,10],[["(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["1"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["[2-6]"],"0$1"],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["7"],"0$1"]],"0"],IR:["98","00","[1-9]\\d{9}|(?:[1-8]\\d\\d|9)\\d{3,4}",[4,5,6,7,10],[["(\\d{4,5})","$1",["96"],"0$1"],["(\\d{2})(\\d{4,5})","$1 $2",["(?:1[137]|2[13-68]|3[1458]|4[145]|5[1468]|6[16]|7[1467]|8[13467])[12689]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3,4})","$1 $2 $3",["9"],"0$1"],["(\\d{2})(\\d{4})(\\d{4})","$1 $2 $3",["[1-8]"],"0$1"]],"0"],IS:["354","00|1(?:0(?:01|[12]0)|100)","(?:38\\d|[4-9])\\d{6}",[7,9],[["(\\d{3})(\\d{4})","$1 $2",["[4-9]"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["3"]]],0,0,0,0,0,0,0,"00"],IT:["39","00","0\\d{5,10}|1\\d{8,10}|3(?:[0-8]\\d{7,10}|9\\d{7,8})|(?:43|55|70)\\d{8}|8\\d{5}(?:\\d{2,4})?",[6,7,8,9,10,11,12],[["(\\d{2})(\\d{4,6})","$1 $2",["0[26]"]],["(\\d{3})(\\d{3,6})","$1 $2",["0[13-57-9][0159]|8(?:03|4[17]|9[2-5])","0[13-57-9][0159]|8(?:03|4[17]|9(?:2|3[04]|[45][0-4]))"]],["(\\d{4})(\\d{2,6})","$1 $2",["0(?:[13-579][2-46-8]|8[236-8])"]],["(\\d{4})(\\d{4})","$1 $2",["894"]],["(\\d{2})(\\d{3,4})(\\d{4})","$1 $2 $3",["0[26]|5"]],["(\\d{3})(\\d{3})(\\d{3,4})","$1 $2 $3",["1(?:44|[679])|[378]|43"]],["(\\d{3})(\\d{3,4})(\\d{4})","$1 $2 $3",["0[13-57-9][0159]|14"]],["(\\d{2})(\\d{4})(\\d{5})","$1 $2 $3",["0[26]"]],["(\\d{4})(\\d{3})(\\d{4})","$1 $2 $3",["0"]],["(\\d{3})(\\d{4})(\\d{4,5})","$1 $2 $3",["3"]]],0,0,0,0,0,0,[["0669[0-79]\\d{1,6}|0(?:1(?:[0159]\\d|[27][1-5]|31|4[1-4]|6[1356]|8[2-57])|2\\d\\d|3(?:[0159]\\d|2[1-4]|3[12]|[48][1-6]|6[2-59]|7[1-7])|4(?:[0159]\\d|[23][1-9]|4[245]|6[1-5]|7[1-4]|81)|5(?:[0159]\\d|2[1-5]|3[2-6]|4[1-79]|6[4-6]|7[1-578]|8[3-8])|6(?:[0-57-9]\\d|6[0-8])|7(?:[0159]\\d|2[12]|3[1-7]|4[2-46]|6[13569]|7[13-6]|8[1-59])|8(?:[0159]\\d|2[3-578]|3[1-356]|[6-8][1-5])|9(?:[0159]\\d|[238][1-5]|4[12]|6[1-8]|7[1-6]))\\d{2,7}",[6,7,8,9,10,11]],["3[2-9]\\d{7,8}|(?:31|43)\\d{8}",[9,10]],["80(?:0\\d{3}|3)\\d{3}",[6,9]],["(?:0878\\d{3}|89(?:2\\d|3[04]|4(?:[0-4]|[5-9]\\d\\d)|5[0-4]))\\d\\d|(?:1(?:44|6[346])|89(?:38|5[5-9]|9))\\d{6}",[6,8,9,10]],["1(?:78\\d|99)\\d{6}",[9,10]],["3[2-8]\\d{9,10}",[11,12]],0,0,["55\\d{8}",[10]],["84(?:[08]\\d{3}|[17])\\d{3}",[6,9]]]],JE:["44","00","1534\\d{6}|(?:[3578]\\d|90)\\d{8}",[10],0,"0",0,"([0-24-8]\\d{5})$|0","1534$1",0,0,[["1534[0-24-8]\\d{5}"],["7(?:(?:(?:50|82)9|937)\\d|7(?:00[378]|97\\d))\\d{5}"],["80(?:07(?:35|81)|8901)\\d{4}"],["(?:8(?:4(?:4(?:4(?:05|42|69)|703)|5(?:041|800))|7(?:0002|1206))|90(?:066[59]|1810|71(?:07|55)))\\d{4}"],["701511\\d{4}"],0,["(?:3(?:0(?:07(?:35|81)|8901)|3\\d{4}|4(?:4(?:4(?:05|42|69)|703)|5(?:041|800))|7(?:0002|1206))|55\\d{4})\\d{4}"],["76(?:464|652)\\d{5}|76(?:0[0-28]|2[356]|34|4[01347]|5[49]|6[0-369]|77|8[14]|9[139])\\d{6}"],["56\\d{8}"]]],JM:["1","011","(?:[58]\\d\\d|658|900)\\d{7}",[10],0,"1",0,0,0,0,"658|876"],JO:["962","00","(?:(?:[2689]|7\\d)\\d|32|53)\\d{6}",[8,9],[["(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["[2356]|87"],"(0$1)"],["(\\d{3})(\\d{5,6})","$1 $2",["[89]"],"0$1"],["(\\d{2})(\\d{7})","$1 $2",["70"],"0$1"],["(\\d)(\\d{4})(\\d{4})","$1 $2 $3",["7"],"0$1"]],"0"],JP:["81","010","00[1-9]\\d{6,14}|[257-9]\\d{9}|(?:00|[1-9]\\d\\d)\\d{6}",[8,9,10,11,12,13,14,15,16,17],[["(\\d{3})(\\d{3})(\\d{3})","$1-$2-$3",["(?:12|57|99)0"],"0$1"],["(\\d{4})(\\d)(\\d{4})","$1-$2-$3",["1(?:26|3[79]|4[56]|5[4-68]|6[3-5])|499|5(?:76|97)|746|8(?:3[89]|47|51)|9(?:80|9[16])","1(?:267|3(?:7[247]|9[278])|466|5(?:47|58|64)|6(?:3[245]|48|5[4-68]))|499[2468]|5(?:76|97)9|7468|8(?:3(?:8[7-9]|96)|477|51[2-9])|9(?:802|9(?:1[23]|69))|1(?:45|58)[67]","1(?:267|3(?:7[247]|9[278])|466|5(?:47|58|64)|6(?:3[245]|48|5[4-68]))|499[2468]|5(?:769|979[2-69])|7468|8(?:3(?:8[7-9]|96[2457-9])|477|51[2-9])|9(?:802|9(?:1[23]|69))|1(?:45|58)[67]"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1-$2-$3",["60"],"0$1"],["(\\d)(\\d{4})(\\d{4})","$1-$2-$3",["[36]|4(?:2[09]|7[01])","[36]|4(?:2(?:0|9[02-69])|7(?:0[019]|1))"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1-$2-$3",["1(?:1|5[45]|77|88|9[69])|2(?:2[1-37]|3[0-269]|4[59]|5|6[24]|7[1-358]|8[1369]|9[0-38])|4(?:[28][1-9]|3[0-57]|[45]|6[248]|7[2-579]|9[29])|5(?:2|3[0459]|4[0-369]|5[29]|8[02389]|9[0-389])|7(?:2[02-46-9]|34|[58]|6[0249]|7[57]|9[2-6])|8(?:2[124589]|3[26-9]|49|51|6|7[0-468]|8[68]|9[019])|9(?:[23][1-9]|4[15]|5[138]|6[1-3]|7[156]|8[189]|9[1-489])","1(?:1|5(?:4[018]|5[017])|77|88|9[69])|2(?:2(?:[127]|3[014-9])|3[0-269]|4[59]|5(?:[1-3]|5[0-69]|9[19])|62|7(?:[1-35]|8[0189])|8(?:[16]|3[0134]|9[0-5])|9(?:[028]|17))|4(?:2(?:[13-79]|8[014-6])|3[0-57]|[45]|6[248]|7[2-47]|8[1-9]|9[29])|5(?:2|3(?:[045]|9[0-8])|4[0-369]|5[29]|8[02389]|9[0-3])|7(?:2[02-46-9]|34|[58]|6[0249]|7[57]|9(?:[23]|4[0-59]|5[01569]|6[0167]))|8(?:2(?:[1258]|4[0-39]|9[0-2469])|3(?:[29]|60)|49|51|6(?:[0-24]|36|5[0-3589]|7[23]|9[01459])|7[0-468]|8[68])|9(?:[23][1-9]|4[15]|5[138]|6[1-3]|7[156]|8[189]|9(?:[1289]|3[34]|4[0178]))|(?:264|837)[016-9]|2(?:57|93)[015-9]|(?:25[0468]|422|838)[01]|(?:47[59]|59[89]|8(?:6[68]|9))[019]","1(?:1|5(?:4[018]|5[017])|77|88|9[69])|2(?:2[127]|3[0-269]|4[59]|5(?:[1-3]|5[0-69]|9(?:17|99))|6(?:2|4[016-9])|7(?:[1-35]|8[0189])|8(?:[16]|3[0134]|9[0-5])|9(?:[028]|17))|4(?:2(?:[13-79]|8[014-6])|3[0-57]|[45]|6[248]|7[2-47]|9[29])|5(?:2|3(?:[045]|9(?:[0-58]|6[4-9]|7[0-35689]))|4[0-369]|5[29]|8[02389]|9[0-3])|7(?:2[02-46-9]|34|[58]|6[0249]|7[57]|9(?:[23]|4[0-59]|5[01569]|6[0167]))|8(?:2(?:[1258]|4[0-39]|9[0169])|3(?:[29]|60|7(?:[017-9]|6[6-8]))|49|51|6(?:[0-24]|36[2-57-9]|5(?:[0-389]|5[23])|6(?:[01]|9[178])|7(?:2[2-468]|3[78])|9[0145])|7[0-468]|8[68])|9(?:4[15]|5[138]|7[156]|8[189]|9(?:[1289]|3(?:31|4[357])|4[0178]))|(?:8294|96)[1-3]|2(?:57|93)[015-9]|(?:223|8699)[014-9]|(?:25[0468]|422|838)[01]|(?:48|8292|9[23])[1-9]|(?:47[59]|59[89]|8(?:68|9))[019]"],"0$1"],["(\\d{3})(\\d{2})(\\d{4})","$1-$2-$3",["[14]|[289][2-9]|5[3-9]|7[2-4679]"],"0$1"],["(\\d{3})(\\d{3})(\\d{4})","$1-$2-$3",["800"],"0$1"],["(\\d{2})(\\d{4})(\\d{4})","$1-$2-$3",["[257-9]"],"0$1"]],"0",0,"(000[259]\\d{6})$|(?:(?:003768)0?)|0","$1"],KE:["254","000","(?:[17]\\d\\d|900)\\d{6}|(?:2|80)0\\d{6,7}|[4-6]\\d{6,8}",[7,8,9,10],[["(\\d{2})(\\d{5,7})","$1 $2",["[24-6]"],"0$1"],["(\\d{3})(\\d{6})","$1 $2",["[17]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3,4})","$1 $2 $3",["[89]"],"0$1"]],"0"],KG:["996","00","8\\d{9}|[235-9]\\d{8}",[9,10],[["(\\d{4})(\\d{5})","$1 $2",["3(?:1[346]|[24-79])"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[235-79]|88"],"0$1"],["(\\d{3})(\\d{3})(\\d)(\\d{2,3})","$1 $2 $3 $4",["8"],"0$1"]],"0"],KH:["855","00[14-9]","1\\d{9}|[1-9]\\d{7,8}",[8,9,10],[["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["[1-9]"],"0$1"],["(\\d{4})(\\d{3})(\\d{3})","$1 $2 $3",["1"]]],"0"],KI:["686","00","(?:[37]\\d|6[0-79])\\d{6}|(?:[2-48]\\d|50)\\d{3}",[5,8],0,"0"],KM:["269","00","[3478]\\d{6}",[7],[["(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3",["[3478]"]]]],KN:["1","011","(?:[58]\\d\\d|900)\\d{7}",[10],0,"1",0,"([2-7]\\d{6})$|1","869$1",0,"869"],KP:["850","00|99","85\\d{6}|(?:19\\d|[2-7])\\d{7}",[8,10],[["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["8"],"0$1"],["(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["[2-7]"],"0$1"],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["1"],"0$1"]],"0"],KR:["82","00(?:[125689]|3(?:[46]5|91)|7(?:00|27|3|55|6[126]))","00[1-9]\\d{8,11}|(?:[12]|5\\d{3})\\d{7}|[13-6]\\d{9}|(?:[1-6]\\d|80)\\d{7}|[3-6]\\d{4,5}|(?:00|7)0\\d{8}",[5,6,8,9,10,11,12,13,14],[["(\\d{2})(\\d{3,4})","$1-$2",["(?:3[1-3]|[46][1-4]|5[1-5])1"],"0$1"],["(\\d{4})(\\d{4})","$1-$2",["1"]],["(\\d)(\\d{3,4})(\\d{4})","$1-$2-$3",["2"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1-$2-$3",["[36]0|8"],"0$1"],["(\\d{2})(\\d{3,4})(\\d{4})","$1-$2-$3",["[1346]|5[1-5]"],"0$1"],["(\\d{2})(\\d{4})(\\d{4})","$1-$2-$3",["[57]"],"0$1"],["(\\d{2})(\\d{5})(\\d{4})","$1-$2-$3",["5"],"0$1"]],"0",0,"0(8(?:[1-46-8]|5\\d\\d))?"],KW:["965","00","18\\d{5}|(?:[2569]\\d|41)\\d{6}",[7,8],[["(\\d{4})(\\d{3,4})","$1 $2",["[169]|2(?:[235]|4[1-35-9])|52"]],["(\\d{3})(\\d{5})","$1 $2",["[245]"]]]],KY:["1","011","(?:345|[58]\\d\\d|900)\\d{7}",[10],0,"1",0,"([2-9]\\d{6})$|1","345$1",0,"345"],KZ:["7","810","(?:33622|8\\d{8})\\d{5}|[78]\\d{9}",[10,14],0,"8",0,0,0,0,"33|7",0,"8~10"],LA:["856","00","[23]\\d{9}|3\\d{8}|(?:[235-8]\\d|41)\\d{6}",[8,9,10],[["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["2[13]|3[14]|[4-8]"],"0$1"],["(\\d{2})(\\d{2})(\\d{2})(\\d{3})","$1 $2 $3 $4",["30[0135-9]"],"0$1"],["(\\d{2})(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3 $4",["[23]"],"0$1"]],"0"],LB:["961","00","[27-9]\\d{7}|[13-9]\\d{6}",[7,8],[["(\\d)(\\d{3})(\\d{3})","$1 $2 $3",["[13-69]|7(?:[2-57]|62|8[0-7]|9[04-9])|8[02-9]"],"0$1"],["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["[27-9]"]]],"0"],LC:["1","011","(?:[58]\\d\\d|758|900)\\d{7}",[10],0,"1",0,"([2-8]\\d{6})$|1","758$1",0,"758"],LI:["423","00","[68]\\d{8}|(?:[2378]\\d|90)\\d{5}",[7,9],[["(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3",["[2379]|8(?:0[09]|7)","[2379]|8(?:0(?:02|9)|7)"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["8"]],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["69"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["6"]]],"0",0,"(1001)|0"],LK:["94","00","[1-9]\\d{8}",[9],[["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["7"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[1-689]"],"0$1"]],"0"],LR:["231","00","(?:[245]\\d|33|77|88)\\d{7}|(?:2\\d|[4-6])\\d{6}",[7,8,9],[["(\\d)(\\d{3})(\\d{3})","$1 $2 $3",["4[67]|[56]"],"0$1"],["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["2"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[2-578]"],"0$1"]],"0"],LS:["266","00","(?:[256]\\d\\d|800)\\d{5}",[8],[["(\\d{4})(\\d{4})","$1 $2",["[2568]"]]]],LT:["370","00","(?:[3469]\\d|52|[78]0)\\d{6}",[8],[["(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["52[0-7]"],"(0-$1)",1],["(\\d{3})(\\d{2})(\\d{3})","$1 $2 $3",["[7-9]"],"0 $1",1],["(\\d{2})(\\d{6})","$1 $2",["37|4(?:[15]|6[1-8])"],"(0-$1)",1],["(\\d{3})(\\d{5})","$1 $2",["[3-6]"],"(0-$1)",1]],"0",0,"[08]"],LU:["352","00","35[013-9]\\d{4,8}|6\\d{8}|35\\d{2,4}|(?:[2457-9]\\d|3[0-46-9])\\d{2,9}",[4,5,6,7,8,9,10,11],[["(\\d{2})(\\d{3})","$1 $2",["2(?:0[2-689]|[2-9])|[3-57]|8(?:0[2-9]|[13-9])|9(?:0[89]|[2-579])"]],["(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3",["2(?:0[2-689]|[2-9])|[3-57]|8(?:0[2-9]|[13-9])|9(?:0[89]|[2-579])"]],["(\\d{2})(\\d{2})(\\d{3})","$1 $2 $3",["20[2-689]"]],["(\\d{2})(\\d{2})(\\d{2})(\\d{1,2})","$1 $2 $3 $4",["2(?:[0367]|4[3-8])"]],["(\\d{3})(\\d{2})(\\d{3})","$1 $2 $3",["80[01]|90[015]"]],["(\\d{2})(\\d{2})(\\d{2})(\\d{3})","$1 $2 $3 $4",["20"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["6"]],["(\\d{2})(\\d{2})(\\d{2})(\\d{2})(\\d{1,2})","$1 $2 $3 $4 $5",["2(?:[0367]|4[3-8])"]],["(\\d{2})(\\d{2})(\\d{2})(\\d{1,5})","$1 $2 $3 $4",["[3-57]|8[13-9]|9(?:0[89]|[2-579])|(?:2|80)[2-9]"]]],0,0,"(15(?:0[06]|1[12]|[35]5|4[04]|6[26]|77|88|99)\\d)"],LV:["371","00","(?:[268]\\d|90)\\d{6}",[8],[["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["[269]|8[01]"]]]],LY:["218","00","[2-9]\\d{8}",[9],[["(\\d{2})(\\d{7})","$1-$2",["[2-9]"],"0$1"]],"0"],MA:["212","00","[5-8]\\d{8}",[9],[["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["5[45]"],"0$1"],["(\\d{4})(\\d{5})","$1-$2",["5(?:2[2-46-9]|3[3-9]|9)|8(?:0[89]|92)"],"0$1"],["(\\d{2})(\\d{7})","$1-$2",["8"],"0$1"],["(\\d{3})(\\d{6})","$1-$2",["[5-7]"],"0$1"]],"0",0,0,0,0,0,[["5(?:2(?:[0-25-79]\\d|3[1-578]|4[02-46-8]|8[0235-7])|3(?:[0-47]\\d|5[02-9]|6[02-8]|8[014-9]|9[3-9])|(?:4[067]|5[03])\\d)\\d{5}"],["(?:6(?:[0-79]\\d|8[0-247-9])|7(?:[0167]\\d|2[0-467]|5[0-3]|8[0-5]))\\d{6}"],["80[0-7]\\d{6}"],["89\\d{7}"],0,0,0,0,["(?:592(?:4[0-2]|93)|80[89]\\d\\d)\\d{4}"]]],MC:["377","00","(?:[3489]|6\\d)\\d{7}",[8,9],[["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["4"],"0$1"],["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[389]"]],["(\\d)(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4 $5",["6"],"0$1"]],"0"],MD:["373","00","(?:[235-7]\\d|[89]0)\\d{6}",[8],[["(\\d{3})(\\d{5})","$1 $2",["[89]"],"0$1"],["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["22|3"],"0$1"],["(\\d{3})(\\d{2})(\\d{3})","$1 $2 $3",["[25-7]"],"0$1"]],"0"],ME:["382","00","(?:20|[3-79]\\d)\\d{6}|80\\d{6,7}",[8,9],[["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["[2-9]"],"0$1"]],"0"],MF:["590","00","(?:590\\d|7090)\\d{5}|(?:69|80|9\\d)\\d{7}",[9],0,"0",0,0,0,0,0,[["590(?:0[079]|[14]3|[27][79]|3[03-7]|5[0-268]|87)\\d{4}"],["(?:69(?:0\\d\\d|1(?:2[2-9]|3[0-5])|4(?:0[89]|1[2-6]|9\\d)|6(?:1[016-9]|5[0-4]|[67]\\d))|7090[0-4])\\d{4}"],["80[0-5]\\d{6}"],0,0,0,0,0,["9(?:(?:39[5-7]|76[018])\\d|475[0-6])\\d{4}"]]],MG:["261","00","[23]\\d{8}",[9],[["(\\d{2})(\\d{2})(\\d{3})(\\d{2})","$1 $2 $3 $4",["[23]"],"0$1"]],"0",0,"([24-9]\\d{6})$|0","20$1"],MH:["692","011","329\\d{4}|(?:[256]\\d|45)\\d{5}",[7],[["(\\d{3})(\\d{4})","$1-$2",["[2-6]"]]],"1"],MK:["389","00","[2-578]\\d{7}",[8],[["(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["2|34[47]|4(?:[37]7|5[47]|64)"],"0$1"],["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["[347]"],"0$1"],["(\\d{3})(\\d)(\\d{2})(\\d{2})","$1 $2 $3 $4",["[58]"],"0$1"]],"0"],ML:["223","00","[24-9]\\d{7}",[8],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[24-9]"]]]],MM:["95","00","1\\d{5,7}|95\\d{6}|(?:[4-7]|9[0-46-9])\\d{6,8}|(?:2|8\\d)\\d{5,8}",[6,7,8,9,10],[["(\\d)(\\d{2})(\\d{3})","$1 $2 $3",["16|2"],"0$1"],["(\\d{2})(\\d{2})(\\d{3})","$1 $2 $3",["4(?:[2-46]|5[3-5])|5|6(?:[1-689]|7[235-7])|7(?:[0-4]|5[2-7])|8[1-5]|(?:60|86)[23]"],"0$1"],["(\\d)(\\d{3})(\\d{3,4})","$1 $2 $3",["[12]|452|678|86","[12]|452|6788|86"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["[4-7]|8[1-35]"],"0$1"],["(\\d)(\\d{3})(\\d{4,6})","$1 $2 $3",["9(?:2[0-4]|[35-9]|4[137-9])"],"0$1"],["(\\d)(\\d{4})(\\d{4})","$1 $2 $3",["2"],"0$1"],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["8"],"0$1"],["(\\d)(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3 $4",["92"],"0$1"],["(\\d)(\\d{5})(\\d{4})","$1 $2 $3",["9"],"0$1"]],"0"],MN:["976","001","[12]\\d{7,9}|[5-9]\\d{7}",[8,9,10],[["(\\d{2})(\\d{2})(\\d{4})","$1 $2 $3",["[12]1"],"0$1"],["(\\d{4})(\\d{4})","$1 $2",["[5-9]"]],["(\\d{3})(\\d{5,6})","$1 $2",["[12]2[1-3]"],"0$1"],["(\\d{4})(\\d{5,6})","$1 $2",["[12](?:27|3[2-8]|4[2-68]|5[1-4689])","[12](?:27|3[2-8]|4[2-68]|5[1-4689])[0-3]"],"0$1"],["(\\d{5})(\\d{4,5})","$1 $2",["[12]"],"0$1"]],"0"],MO:["853","00","0800\\d{3}|(?:28|[68]\\d)\\d{6}",[7,8],[["(\\d{4})(\\d{3})","$1 $2",["0"]],["(\\d{4})(\\d{4})","$1 $2",["[268]"]]]],MP:["1","011","[58]\\d{9}|(?:67|90)0\\d{7}",[10],0,"1",0,"([2-9]\\d{6})$|1","670$1",0,"670"],MQ:["596","00","(?:596\\d|7091)\\d{5}|(?:69|[89]\\d)\\d{7}",[9],[["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[5-79]|8(?:0[6-9]|[36])"],"0$1"],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["8"],"0$1"]],"0"],MR:["222","00","(?:[2-4]\\d\\d|800)\\d{5}",[8],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[2-48]"]]]],MS:["1","011","(?:[58]\\d\\d|664|900)\\d{7}",[10],0,"1",0,"([34]\\d{6})$|1","664$1",0,"664"],MT:["356","00","3550\\d{4}|(?:[2579]\\d\\d|800)\\d{5}",[8],[["(\\d{4})(\\d{4})","$1 $2",["[2357-9]"]]]],MU:["230","0(?:0|[24-7]0|3[03])","(?:[57]|8\\d\\d)\\d{7}|[2-468]\\d{6}",[7,8,10],[["(\\d{3})(\\d{4})","$1 $2",["[2-46]|8[013]"]],["(\\d{4})(\\d{4})","$1 $2",["[57]"]],["(\\d{5})(\\d{5})","$1 $2",["8"]]],0,0,0,0,0,0,0,"020"],MV:["960","0(?:0|19)","(?:800|9[0-57-9]\\d)\\d{7}|[34679]\\d{6}",[7,10],[["(\\d{3})(\\d{4})","$1-$2",["[34679]"]],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["[89]"]]],0,0,0,0,0,0,0,"00"],MW:["265","00","(?:[1289]\\d|31|77)\\d{7}|1\\d{6}",[7,9],[["(\\d)(\\d{3})(\\d{3})","$1 $2 $3",["1[2-9]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["2"],"0$1"],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[137-9]"],"0$1"]],"0"],MX:["52","0[09]","[2-9]\\d{9}",[10],[["(\\d{2})(\\d{4})(\\d{4})","$1 $2 $3",["33|5[56]|81"]],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["[2-9]"]]],0,0,0,0,0,0,0,"00"],MY:["60","00","1\\d{8,9}|(?:3\\d|[4-9])\\d{7}",[8,9,10],[["(\\d)(\\d{3})(\\d{4})","$1-$2 $3",["[4-79]"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1-$2 $3",["1(?:[02469]|[378][1-9]|53)|8","1(?:[02469]|[37][1-9]|53|8(?:[1-46-9]|5[7-9]))|8"],"0$1"],["(\\d)(\\d{4})(\\d{4})","$1-$2 $3",["3"],"0$1"],["(\\d)(\\d{3})(\\d{2})(\\d{4})","$1-$2-$3-$4",["1(?:[367]|80)"]],["(\\d{3})(\\d{3})(\\d{4})","$1-$2 $3",["15"],"0$1"],["(\\d{2})(\\d{4})(\\d{4})","$1-$2 $3",["1"],"0$1"]],"0"],MZ:["258","00","(?:2|8\\d)\\d{7}",[8,9],[["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["2|8[2-79]"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["8"]]]],NA:["264","00","[68]\\d{7,8}",[8,9],[["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["88"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["6"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["87"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["8"],"0$1"]],"0"],NC:["687","00","(?:050|[2-57-9]\\d\\d)\\d{3}",[6],[["(\\d{2})(\\d{2})(\\d{2})","$1.$2.$3",["[02-57-9]"]]]],NE:["227","00","[027-9]\\d{7}",[8],[["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["08"]],["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[089]|2[013]|7[0467]"]]]],NF:["672","00","[13]\\d{5}",[6],[["(\\d{2})(\\d{4})","$1 $2",["1[0-3]"]],["(\\d)(\\d{5})","$1 $2",["[13]"]]],0,0,"([0-258]\\d{4})$","3$1"],NG:["234","009","38\\d{6}|[78]\\d{9,13}|(?:20|9\\d)\\d{8}",[8,10,11,12,13,14],[["(\\d{2})(\\d{3})(\\d{2,3})","$1 $2 $3",["3"],"0$1"],["(\\d{3})(\\d{3})(\\d{3,4})","$1 $2 $3",["[7-9]"],"0$1"],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["20[129]"],"0$1"],["(\\d{4})(\\d{2})(\\d{4})","$1 $2 $3",["2"],"0$1"],["(\\d{3})(\\d{4})(\\d{4,5})","$1 $2 $3",["[78]"],"0$1"],["(\\d{3})(\\d{5})(\\d{5,6})","$1 $2 $3",["[78]"],"0$1"]],"0"],NI:["505","00","(?:1800|[25-8]\\d{3})\\d{4}",[8],[["(\\d{4})(\\d{4})","$1 $2",["[125-8]"]]]],NL:["31","00","(?:[124-7]\\d\\d|3(?:[02-9]\\d|1[0-8]))\\d{6}|8\\d{6,9}|9\\d{6,10}|1\\d{4,5}",[5,6,7,8,9,10,11],[["(\\d{3})(\\d{4,7})","$1 $2",["[89]0"],"0$1"],["(\\d{2})(\\d{7})","$1 $2",["66"],"0$1"],["(\\d)(\\d{8})","$1 $2",["6"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["1[16-8]|2[259]|3[124]|4[17-9]|5[124679]"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[1-578]|91"],"0$1"],["(\\d{3})(\\d{3})(\\d{5})","$1 $2 $3",["9"],"0$1"]],"0"],NO:["47","00","(?:0|[2-9]\\d{3})\\d{4}",[5,8],[["(\\d{3})(\\d{2})(\\d{3})","$1 $2 $3",["8"]],["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[2-79]"]]],0,0,0,0,0,"[02-689]|7[0-8]"],NP:["977","00","(?:1\\d|9)\\d{9}|[1-9]\\d{7}",[8,10,11],[["(\\d)(\\d{7})","$1-$2",["1[2-6]"],"0$1"],["(\\d{2})(\\d{6})","$1-$2",["1[01]|[2-8]|9(?:[1-59]|[67][2-6])"],"0$1"],["(\\d{3})(\\d{7})","$1-$2",["9"]]],"0"],NR:["674","00","(?:444|(?:55|8\\d)\\d|666)\\d{4}",[7],[["(\\d{3})(\\d{4})","$1 $2",["[4-68]"]]]],NU:["683","00","(?:[4-7]|888\\d)\\d{3}",[4,7],[["(\\d{3})(\\d{4})","$1 $2",["8"]]]],NZ:["64","0(?:0|161)","[1289]\\d{9}|50\\d{5}(?:\\d{2,3})?|[27-9]\\d{7,8}|(?:[34]\\d|6[0-35-9])\\d{6}|8\\d{4,6}",[5,6,7,8,9,10],[["(\\d{2})(\\d{3,8})","$1 $2",["8[1-79]"],"0$1"],["(\\d{3})(\\d{2})(\\d{2,3})","$1 $2 $3",["50[036-8]|8|90","50(?:[0367]|88)|8|90"],"0$1"],["(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["24|[346]|7[2-57-9]|9[2-9]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3,4})","$1 $2 $3",["2(?:10|74)|[589]"],"0$1"],["(\\d{2})(\\d{3,4})(\\d{4})","$1 $2 $3",["1|2[028]"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,5})","$1 $2 $3",["2(?:[169]|7[0-35-9])|7"],"0$1"]],"0",0,0,0,0,0,0,"00"],OM:["968","00","(?:1505|[279]\\d{3}|500)\\d{4}|800\\d{5,6}",[7,8,9],[["(\\d{3})(\\d{4,6})","$1 $2",["[58]"]],["(\\d{2})(\\d{6})","$1 $2",["2"]],["(\\d{4})(\\d{4})","$1 $2",["[179]"]]]],PA:["507","00","(?:00800|8\\d{3})\\d{6}|[68]\\d{7}|[1-57-9]\\d{6}",[7,8,10,11],[["(\\d{3})(\\d{4})","$1-$2",["[1-57-9]"]],["(\\d{4})(\\d{4})","$1-$2",["[68]"]],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["8"]]]],PE:["51","00|19(?:1[124]|77|90)00","(?:[14-8]|9\\d)\\d{7}",[8,9],[["(\\d{3})(\\d{5})","$1 $2",["80"],"(0$1)"],["(\\d)(\\d{7})","$1 $2",["1"],"(0$1)"],["(\\d{2})(\\d{6})","$1 $2",["[4-8]"],"(0$1)"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["9"]]],"0",0,0,0,0,0,0,"00"," Anexo "],PF:["689","00","4\\d{5}(?:\\d{2})?|8\\d{7,8}",[6,8,9],[["(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3",["44"]],["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["4|8[7-9]"]],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["8"]]]],PG:["675","00|140[1-3]","(?:180|[78]\\d{3})\\d{4}|(?:[2-589]\\d|64)\\d{5}",[7,8],[["(\\d{3})(\\d{4})","$1 $2",["18|[2-69]|85"]],["(\\d{4})(\\d{4})","$1 $2",["[78]"]]],0,0,0,0,0,0,0,"00"],PH:["63","00","(?:[2-7]|9\\d)\\d{8}|2\\d{5}|(?:1800|8)\\d{7,9}",[6,8,9,10,11,12,13],[["(\\d)(\\d{5})","$1 $2",["2"],"(0$1)"],["(\\d{4})(\\d{4,6})","$1 $2",["3(?:23|39|46)|4(?:2[3-6]|[35]9|4[26]|76)|544|88[245]|(?:52|64|86)2","3(?:230|397|461)|4(?:2(?:35|[46]4|51)|396|4(?:22|63)|59[347]|76[15])|5(?:221|446)|642[23]|8(?:622|8(?:[24]2|5[13]))"],"(0$1)"],["(\\d{5})(\\d{4})","$1 $2",["346|4(?:27|9[35])|883","3469|4(?:279|9(?:30|56))|8834"],"(0$1)"],["(\\d)(\\d{4})(\\d{4})","$1 $2 $3",["2"],"(0$1)"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[3-7]|8[2-8]"],"(0$1)"],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["[89]"],"0$1"],["(\\d{4})(\\d{3})(\\d{4})","$1 $2 $3",["1"]],["(\\d{4})(\\d{1,2})(\\d{3})(\\d{4})","$1 $2 $3 $4",["1"]]],"0"],PK:["92","00","122\\d{6}|[24-8]\\d{10,11}|9(?:[013-9]\\d{8,10}|2(?:[01]\\d\\d|2(?:[06-8]\\d|1[01]))\\d{7})|(?:[2-8]\\d{3}|92(?:[0-7]\\d|8[1-9]))\\d{6}|[24-9]\\d{8}|[89]\\d{7}",[8,9,10,11,12],[["(\\d{3})(\\d{3})(\\d{2,7})","$1 $2 $3",["[89]0"],"0$1"],["(\\d{4})(\\d{5})","$1 $2",["1"]],["(\\d{3})(\\d{6,7})","$1 $2",["2(?:3[2358]|4[2-4]|9[2-8])|45[3479]|54[2-467]|60[468]|72[236]|8(?:2[2-689]|3[23578]|4[3478]|5[2356])|9(?:2[2-8]|3[27-9]|4[2-6]|6[3569]|9[25-8])","9(?:2[3-8]|98)|(?:2(?:3[2358]|4[2-4]|9[2-8])|45[3479]|54[2-467]|60[468]|72[236]|8(?:2[2-689]|3[23578]|4[3478]|5[2356])|9(?:22|3[27-9]|4[2-6]|6[3569]|9[25-7]))[2-9]"],"(0$1)"],["(\\d{2})(\\d{7,8})","$1 $2",["(?:2[125]|4[0-246-9]|5[1-35-7]|6[1-8]|7[14]|8[16]|91)[2-9]"],"(0$1)"],["(\\d{5})(\\d{5})","$1 $2",["58"],"(0$1)"],["(\\d{3})(\\d{7})","$1 $2",["3"],"0$1"],["(\\d{2})(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3 $4",["2[125]|4[0-246-9]|5[1-35-7]|6[1-8]|7[14]|8[16]|91"],"(0$1)"],["(\\d{3})(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3 $4",["[24-9]"],"(0$1)"]],"0"],PL:["48","00","(?:6|8\\d\\d)\\d{7}|[1-9]\\d{6}(?:\\d{2})?|[26]\\d{5}",[6,7,8,9,10],[["(\\d{5})","$1",["19"]],["(\\d{3})(\\d{3})","$1 $2",["11|20|64"]],["(\\d{2})(\\d{2})(\\d{3})","$1 $2 $3",["(?:1[2-8]|2[2-69]|3[2-4]|4[1-468]|5[24-689]|6[1-3578]|7[14-7]|8[1-79]|9[145])1","(?:1[2-8]|2[2-69]|3[2-4]|4[1-468]|5[24-689]|6[1-3578]|7[14-7]|8[1-79]|9[145])19"]],["(\\d{3})(\\d{2})(\\d{2,3})","$1 $2 $3",["64"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["21|39|45|5[0137]|6[0469]|7[02389]|8(?:0[14]|8)"]],["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["1[2-8]|[2-7]|8[1-79]|9[145]"]],["(\\d{3})(\\d{3})(\\d{3,4})","$1 $2 $3",["8"]]]],PM:["508","00","[45]\\d{5}|(?:708|8\\d\\d)\\d{6}",[6,9],[["(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3",["[45]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["7"]],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["8"],"0$1"]],"0"],PR:["1","011","(?:[589]\\d\\d|787)\\d{7}",[10],0,"1",0,0,0,0,"787|939"],PS:["970","00","[2489]2\\d{6}|(?:1\\d|5)\\d{8}",[8,9,10],[["(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["[2489]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["5"],"0$1"],["(\\d{4})(\\d{3})(\\d{3})","$1 $2 $3",["1"]]],"0"],PT:["351","00","1693\\d{5}|(?:[26-9]\\d|30)\\d{7}",[9],[["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["2[12]"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["16|[236-9]"]]]],PW:["680","01[12]","(?:[24-8]\\d\\d|345|900)\\d{4}",[7],[["(\\d{3})(\\d{4})","$1 $2",["[2-9]"]]]],PY:["595","00","59\\d{4,6}|9\\d{5,10}|(?:[2-46-8]\\d|5[0-8])\\d{4,7}",[6,7,8,9,10,11],[["(\\d{3})(\\d{3,6})","$1 $2",["[2-9]0"],"0$1"],["(\\d{2})(\\d{5})","$1 $2",["[26]1|3[289]|4[1246-8]|7[1-3]|8[1-36]"],"(0$1)"],["(\\d{3})(\\d{4,5})","$1 $2",["2[279]|3[13-5]|4[359]|5|6(?:[34]|7[1-46-8])|7[46-8]|85"],"(0$1)"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["2[14-68]|3[26-9]|4[1246-8]|6(?:1|75)|7[1-35]|8[1-36]"],"(0$1)"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["87"]],["(\\d{3})(\\d{6})","$1 $2",["9(?:[5-79]|8[1-7])"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[2-8]"],"0$1"],["(\\d{4})(\\d{3})(\\d{4})","$1 $2 $3",["9"]]],"0"],QA:["974","00","800\\d{4}|(?:2|800)\\d{6}|(?:0080|[3-7])\\d{7}",[7,8,9,11],[["(\\d{3})(\\d{4})","$1 $2",["2[16]|8"]],["(\\d{4})(\\d{4})","$1 $2",["[3-7]"]]]],RE:["262","00","709\\d{6}|(?:26|[689]\\d)\\d{7}",[9],[["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[26-9]"],"0$1"]],"0",0,0,0,0,0,[["26(?:2\\d\\d|3(?:0\\d|1[0-6]))\\d{4}"],["(?:69(?:2\\d\\d|3(?:[06][0-6]|1[013]|2[0-2]|3[0-39]|4\\d|5[0-5]|7[0-37]|8[0-8]|9[0-479]))|7092[0-3])\\d{4}"],["80\\d{7}"],["89[1-37-9]\\d{6}"],0,0,0,0,["9(?:399[0-3]|479[0-6]|76(?:2[278]|3[0-37]))\\d{4}"],["8(?:1[019]|2[0156]|84|90)\\d{6}"]]],RO:["40","00","(?:[236-8]\\d|90)\\d{7}|[23]\\d{5}",[6,9],[["(\\d{3})(\\d{3})","$1 $2",["2[3-6]","2[3-6]\\d9"],"0$1"],["(\\d{2})(\\d{4})","$1 $2",["219|31"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[23]1"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[236-9]"],"0$1"]],"0",0,0,0,0,0,0,0," int "],RS:["381","00","38[02-9]\\d{6,9}|6\\d{7,9}|90\\d{4,8}|38\\d{5,6}|(?:7\\d\\d|800)\\d{3,9}|(?:[12]\\d|3[0-79])\\d{5,10}",[6,7,8,9,10,11,12],[["(\\d{3})(\\d{3,9})","$1 $2",["(?:2[389]|39)0|[7-9]"],"0$1"],["(\\d{2})(\\d{5,10})","$1 $2",["[1-36]"],"0$1"]],"0"],RU:["7","810","8\\d{13}|[347-9]\\d{9}",[10,14],[["(\\d{4})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["7(?:1[0-8]|2[1-9])","7(?:1(?:[0-356]2|4[29]|7|8[27])|2(?:1[23]|[2-9]2))","7(?:1(?:[0-356]2|4[29]|7|8[27])|2(?:13[03-69]|62[013-9]))|72[1-57-9]2"],"8 ($1)",1],["(\\d{5})(\\d)(\\d{2})(\\d{2})","$1 $2 $3 $4",["7(?:1[0-68]|2[1-9])","7(?:1(?:[06][3-6]|[18]|2[35]|[3-5][3-5])|2(?:[13][3-5]|[24-689]|7[457]))","7(?:1(?:0(?:[356]|4[023])|[18]|2(?:3[013-9]|5)|3[45]|43[013-79]|5(?:3[1-8]|4[1-7]|5)|6(?:3[0-35-9]|[4-6]))|2(?:1(?:3[178]|[45])|[24-689]|3[35]|7[457]))|7(?:14|23)4[0-8]|71(?:33|45)[1-79]"],"8 ($1)",1],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["7"],"8 ($1)",1],["(\\d{3})(\\d{3})(\\d{2})(\\d{2})","$1 $2-$3-$4",["[349]|8(?:[02-7]|1[1-8])"],"8 ($1)",1],["(\\d{4})(\\d{4})(\\d{3})(\\d{3})","$1 $2 $3 $4",["8"],"8 ($1)"]],"8",0,0,0,0,"3[04-689]|[489]",0,"8~10"],RW:["250","00","(?:06|[27]\\d\\d|[89]00)\\d{6}",[8,9],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["0"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["2"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[7-9]"],"0$1"]],"0"],SA:["966","00","92\\d{7}|(?:[15]|8\\d)\\d{8}",[9,10],[["(\\d{4})(\\d{5})","$1 $2",["9"]],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["1"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["5"],"0$1"],["(\\d{3})(\\d{3})(\\d{3,4})","$1 $2 $3",["81"],"0$1"],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["8"]]],"0"],SB:["677","0[01]","[6-9]\\d{6}|[1-6]\\d{4}",[5,7],[["(\\d{2})(\\d{5})","$1 $2",["6[89]|7|8[4-9]|9(?:[1-8]|9[0-8])"]]]],SC:["248","010|0[0-2]","(?:[2489]\\d|64)\\d{5}",[7],[["(\\d)(\\d{3})(\\d{3})","$1 $2 $3",["[246]|9[57]"]]],0,0,0,0,0,0,0,"00"],SD:["249","00","[19]\\d{8}",[9],[["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[19]"],"0$1"]],"0"],SE:["46","00","(?:[26]\\d\\d|9)\\d{9}|[1-9]\\d{8}|[1-689]\\d{7}|[1-4689]\\d{6}|2\\d{5}",[6,7,8,9,10,12],[["(\\d{2})(\\d{2,3})(\\d{2})","$1-$2 $3",["20"],"0$1",0,"$1 $2 $3"],["(\\d{3})(\\d{4})","$1-$2",["9(?:00|39|44|9)"],"0$1",0,"$1 $2"],["(\\d{2})(\\d{3})(\\d{2})","$1-$2 $3",["[12][136]|3[356]|4[0246]|6[03]|90[1-9]"],"0$1",0,"$1 $2 $3"],["(\\d)(\\d{2,3})(\\d{2})(\\d{2})","$1-$2 $3 $4",["8"],"0$1",0,"$1 $2 $3 $4"],["(\\d{3})(\\d{2,3})(\\d{2})","$1-$2 $3",["1[2457]|2(?:[247-9]|5[0138])|3[0247-9]|4[1357-9]|5[0-35-9]|6(?:[125689]|4[02-57]|7[0-2])|9(?:[125-8]|3[02-5]|4[0-3])"],"0$1",0,"$1 $2 $3"],["(\\d{3})(\\d{2,3})(\\d{3})","$1-$2 $3",["9(?:00|39|44)"],"0$1",0,"$1 $2 $3"],["(\\d{2})(\\d{2,3})(\\d{2})(\\d{2})","$1-$2 $3 $4",["1[13689]|2[0136]|3[1356]|4[0246]|54|6[03]|90[1-9]"],"0$1",0,"$1 $2 $3 $4"],["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1-$2 $3 $4",["10|7"],"0$1",0,"$1 $2 $3 $4"],["(\\d)(\\d{3})(\\d{3})(\\d{2})","$1-$2 $3 $4",["8"],"0$1",0,"$1 $2 $3 $4"],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1-$2 $3 $4",["[13-5]|2(?:[247-9]|5[0138])|6(?:[124-689]|7[0-2])|9(?:[125-8]|3[02-5]|4[0-3])"],"0$1",0,"$1 $2 $3 $4"],["(\\d{3})(\\d{2})(\\d{2})(\\d{3})","$1-$2 $3 $4",["9"],"0$1",0,"$1 $2 $3 $4"],["(\\d{3})(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1-$2 $3 $4 $5",["[26]"],"0$1",0,"$1 $2 $3 $4 $5"]],"0"],SG:["65","0[0-3]\\d","(?:(?:1\\d|8)\\d\\d|7000)\\d{7}|[3689]\\d{7}",[8,10,11],[["(\\d{4})(\\d{4})","$1 $2",["[369]|8(?:0[1-9]|[1-9])"]],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["8"]],["(\\d{4})(\\d{4})(\\d{3})","$1 $2 $3",["7"]],["(\\d{4})(\\d{3})(\\d{4})","$1 $2 $3",["1"]]]],SH:["290","00","(?:[256]\\d|8)\\d{3}",[4,5],0,0,0,0,0,0,"[256]"],SI:["386","00|10(?:22|66|88|99)","[1-7]\\d{7}|8\\d{4,7}|90\\d{4,6}",[5,6,7,8],[["(\\d{2})(\\d{3,6})","$1 $2",["8[09]|9"],"0$1"],["(\\d{3})(\\d{5})","$1 $2",["59|8"],"0$1"],["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["[37][01]|4[0139]|51|6"],"0$1"],["(\\d)(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[1-57]"],"(0$1)"]],"0",0,0,0,0,0,0,"00"],SJ:["47","00","0\\d{4}|(?:[489]\\d|79)\\d{6}",[5,8],0,0,0,0,0,0,"79"],SK:["421","00","[2-689]\\d{8}|[2-59]\\d{6}|[2-5]\\d{5}",[6,7,9],[["(\\d)(\\d{2})(\\d{3,4})","$1 $2 $3",["21"],"0$1"],["(\\d{2})(\\d{2})(\\d{2,3})","$1 $2 $3",["[3-5][1-8]1","[3-5][1-8]1[67]"],"0$1"],["(\\d)(\\d{3})(\\d{3})(\\d{2})","$1/$2 $3 $4",["2"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[689]"],"0$1"],["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1/$2 $3 $4",["[3-5]"],"0$1"]],"0"],SL:["232","00","(?:[237-9]\\d|66)\\d{6}",[8],[["(\\d{2})(\\d{6})","$1 $2",["[236-9]"],"(0$1)"]],"0"],SM:["378","00","(?:0549|[5-7]\\d)\\d{6}",[8,10],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[5-7]"]],["(\\d{4})(\\d{6})","$1 $2",["0"]]],0,0,"([89]\\d{5})$","0549$1"],SN:["221","00","(?:[378]\\d|93)\\d{7}",[9],[["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["8"]],["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[379]"]]]],SO:["252","00","[346-9]\\d{8}|[12679]\\d{7}|[1-5]\\d{6}|[1348]\\d{5}",[6,7,8,9],[["(\\d{2})(\\d{4})","$1 $2",["8[125]"]],["(\\d{6})","$1",["[134]"]],["(\\d)(\\d{6})","$1 $2",["[15]|2[0-79]|3[0-46-8]|4[0-7]"]],["(\\d)(\\d{7})","$1 $2",["(?:2|90)4|[67]"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[348]|64|79|90"]],["(\\d{2})(\\d{5,7})","$1 $2",["1|28|6[0-35-9]|7[67]|9[2-9]"]]],"0"],SR:["597","00","(?:[2-5]|68|[78]\\d)\\d{5}",[6,7],[["(\\d{2})(\\d{2})(\\d{2})","$1-$2-$3",["56"]],["(\\d{3})(\\d{3})","$1-$2",["[2-5]"]],["(\\d{3})(\\d{4})","$1-$2",["[6-8]"]]]],SS:["211","00","[19]\\d{8}",[9],[["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[19]"],"0$1"]],"0"],ST:["239","00","(?:22|9\\d)\\d{5}",[7],[["(\\d{3})(\\d{4})","$1 $2",["[29]"]]]],SV:["503","00","[267]\\d{7}|(?:80\\d|900)\\d{4}(?:\\d{4})?",[7,8,11],[["(\\d{3})(\\d{4})","$1 $2",["[89]"]],["(\\d{4})(\\d{4})","$1 $2",["[267]"]],["(\\d{3})(\\d{4})(\\d{4})","$1 $2 $3",["[89]"]]]],SX:["1","011","7215\\d{6}|(?:[58]\\d\\d|900)\\d{7}",[10],0,"1",0,"(5\\d{6})$|1","721$1",0,"721"],SY:["963","00","[1-359]\\d{8}|[1-5]\\d{7}",[8,9],[["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["[1-4]|5[1-3]"],"0$1",1],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[59]"],"0$1",1]],"0"],SZ:["268","00","0800\\d{4}|(?:[237]\\d|900)\\d{6}",[8,9],[["(\\d{4})(\\d{4})","$1 $2",["[0237]"]],["(\\d{5})(\\d{4})","$1 $2",["9"]]]],TA:["290","00","8\\d{3}",[4],0,0,0,0,0,0,"8"],TC:["1","011","(?:[58]\\d\\d|649|900)\\d{7}",[10],0,"1",0,"([2-479]\\d{6})$|1","649$1",0,"649"],TD:["235","00|16","(?:22|[689]\\d|77)\\d{6}",[8],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[26-9]"]]],0,0,0,0,0,0,0,"00"],TG:["228","00","[279]\\d{7}",[8],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[279]"]]]],TH:["66","00[1-9]","(?:001800|[2-57]|[689]\\d)\\d{7}|1\\d{7,9}",[8,9,10,13],[["(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["2"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["[13-9]"],"0$1"],["(\\d{4})(\\d{3})(\\d{3})","$1 $2 $3",["1"]]],"0"],TJ:["992","810","[0-57-9]\\d{8}",[9],[["(\\d{6})(\\d)(\\d{2})","$1 $2 $3",["331","3317"]],["(\\d{3})(\\d{2})(\\d{4})","$1 $2 $3",["44[02-479]|[34]7"]],["(\\d{4})(\\d)(\\d{4})","$1 $2 $3",["3(?:[1245]|3[12])"]],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[0-57-9]"]]],0,0,0,0,0,0,0,"8~10"],TK:["690","00","[2-47]\\d{3,6}",[4,5,6,7]],TL:["670","00","7\\d{7}|(?:[2-47]\\d|[89]0)\\d{5}",[7,8],[["(\\d{3})(\\d{4})","$1 $2",["[2-489]|70"]],["(\\d{4})(\\d{4})","$1 $2",["7"]]]],TM:["993","810","(?:[1-6]\\d|71)\\d{6}",[8],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2-$3-$4",["12"],"(8 $1)"],["(\\d{3})(\\d)(\\d{2})(\\d{2})","$1 $2-$3-$4",["[1-5]"],"(8 $1)"],["(\\d{2})(\\d{6})","$1 $2",["[67]"],"8 $1"]],"8",0,0,0,0,0,0,"8~10"],TN:["216","00","[2-57-9]\\d{7}",[8],[["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["[2-57-9]"]]]],TO:["676","00","(?:0800|(?:[5-8]\\d\\d|999)\\d)\\d{3}|[2-8]\\d{4}",[5,7],[["(\\d{2})(\\d{3})","$1-$2",["[2-4]|50|6[09]|7[0-24-69]|8[05]"]],["(\\d{4})(\\d{3})","$1 $2",["0"]],["(\\d{3})(\\d{4})","$1 $2",["[5-9]"]]]],TR:["90","00","4\\d{6}|8\\d{11,12}|(?:[2-58]\\d\\d|900)\\d{7}",[7,10,12,13],[["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["512|8[01589]|90"],"0$1",1],["(\\d{3})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["5(?:[0-59]|61)","5(?:[0-59]|61[06])","5(?:[0-59]|61[06]1)"],"0$1",1],["(\\d{3})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[24][1-8]|3[1-9]"],"(0$1)",1],["(\\d{3})(\\d{3})(\\d{6,7})","$1 $2 $3",["80"],"0$1",1]],"0"],TT:["1","011","(?:[58]\\d\\d|900)\\d{7}",[10],0,"1",0,"([2-46-8]\\d{6})$|1","868$1",0,"868"],TV:["688","00","(?:2|7\\d\\d|90)\\d{4}",[5,6,7],[["(\\d{2})(\\d{3})","$1 $2",["2"]],["(\\d{2})(\\d{4})","$1 $2",["90"]],["(\\d{2})(\\d{5})","$1 $2",["7"]]]],TW:["886","0(?:0[25-79]|19)","[2-689]\\d{8}|7\\d{9,10}|[2-8]\\d{7}|2\\d{6}",[7,8,9,10,11],[["(\\d{2})(\\d)(\\d{4})","$1 $2 $3",["202"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["[258]0"],"0$1"],["(\\d)(\\d{3,4})(\\d{4})","$1 $2 $3",["[23568]|4(?:0[02-48]|[1-47-9])|7[1-9]","[23568]|4(?:0[2-48]|[1-47-9])|(?:400|7)[1-9]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[49]"],"0$1"],["(\\d{2})(\\d{4})(\\d{4,5})","$1 $2 $3",["7"],"0$1"]],"0",0,0,0,0,0,0,0,"#"],TZ:["255","00[056]","(?:[25-8]\\d|41|90)\\d{7}",[9],[["(\\d{3})(\\d{2})(\\d{4})","$1 $2 $3",["[89]"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[24]"],"0$1"],["(\\d{2})(\\d{7})","$1 $2",["5"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[67]"],"0$1"]],"0"],UA:["380","00","[89]\\d{9}|[3-9]\\d{8}",[9,10],[["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["6[12][29]|(?:3[1-8]|4[136-8]|5[12457]|6[49])2|(?:56|65)[24]","6[12][29]|(?:35|4[1378]|5[12457]|6[49])2|(?:56|65)[24]|(?:3[1-46-8]|46)2[013-9]"],"0$1"],["(\\d{4})(\\d{5})","$1 $2",["3[1-8]|4(?:[1367]|[45][6-9]|8[4-6])|5(?:[1-5]|6[0135689]|7[4-6])|6(?:[12][3-7]|[459])","3[1-8]|4(?:[1367]|[45][6-9]|8[4-6])|5(?:[1-5]|6(?:[015689]|3[02389])|7[4-6])|6(?:[12][3-7]|[459])"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[3-7]|89|9[1-9]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3,4})","$1 $2 $3",["[89]"],"0$1"]],"0",0,0,0,0,0,0,"0~0"],UG:["256","00[057]","800\\d{6}|(?:[29]0|[347]\\d)\\d{7}",[9],[["(\\d{4})(\\d{5})","$1 $2",["202","2024"],"0$1"],["(\\d{3})(\\d{6})","$1 $2",["[27-9]|4(?:6[45]|[7-9])"],"0$1"],["(\\d{2})(\\d{7})","$1 $2",["[34]"],"0$1"]],"0"],US:["1","011","[2-9]\\d{9}|3\\d{6}",[10],[["(\\d{3})(\\d{4})","$1-$2",["310"],0,1],["(\\d{3})(\\d{3})(\\d{4})","($1) $2-$3",["[2-9]"],0,1,"$1-$2-$3"]],"1",0,0,0,0,0,[["(?:3052(?:0[0-8]|[1-9]\\d)|5056(?:[0-35-9]\\d|4[0-468]))\\d{4}|(?:2742|305[3-9]|472[247-9]|505[2-57-9]|983[2-47-9])\\d{6}|(?:2(?:0[1-35-9]|1[02-9]|2[03-57-9]|3[1459]|4[08]|5[1-46]|6[0279]|7[0269]|8[13])|3(?:0[1-47-9]|1[02-9]|2[0135-79]|3[0-24679]|4[167]|5[0-2]|6[01349]|8[056])|4(?:0[124-9]|1[02-579]|2[3-5]|3[0245]|4[023578]|58|6[349]|7[0589]|8[04])|5(?:0[1-47-9]|1[0235-8]|20|3[0149]|4[01]|5[179]|6[1-47]|7[0-5]|8[0256])|6(?:0[1-35-9]|1[024-9]|2[03689]|3[016]|4[0156]|5[01679]|6[0-279]|78|8[0-29])|7(?:0[1-46-8]|1[2-9]|2[04-8]|3[0-247]|4[037]|5[47]|6[02359]|7[0-59]|8[156])|8(?:0[1-68]|1[02-8]|2[068]|3[0-2589]|4[03578]|5[046-9]|6[02-5]|7[028])|9(?:0[1346-9]|1[02-9]|2[0589]|3[0146-8]|4[01357-9]|5[12469]|7[0-389]|8[04-69]))[2-9]\\d{6}"],[""],["8(?:00|33|44|55|66|77|88)[2-9]\\d{6}"],["900[2-9]\\d{6}"],["52(?:3(?:[2-46-9][02-9]\\d|5(?:[02-46-9]\\d|5[0-46-9]))|4(?:[2-478][02-9]\\d|5(?:[034]\\d|2[024-9]|5[0-46-9])|6(?:0[1-9]|[2-9]\\d)|9(?:[05-9]\\d|2[0-5]|49)))\\d{4}|52[34][2-9]1[02-9]\\d{4}|5(?:00|2[125-9]|33|44|66|77|88)[2-9]\\d{6}"],0,0,0,["305209\\d{4}"]]],UY:["598","0(?:0|1[3-9]\\d)","0004\\d{2,9}|[1249]\\d{7}|(?:[49]\\d|80)\\d{5}",[6,7,8,9,10,11,12,13],[["(\\d{3})(\\d{3,4})","$1 $2",["0"]],["(\\d{3})(\\d{4})","$1 $2",["[49]0|8"],"0$1"],["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["9"],"0$1"],["(\\d{4})(\\d{4})","$1 $2",["[124]"]],["(\\d{3})(\\d{3})(\\d{2,4})","$1 $2 $3",["0"]],["(\\d{3})(\\d{3})(\\d{3})(\\d{2,4})","$1 $2 $3 $4",["0"]]],"0",0,0,0,0,0,0,"00"," int. "],UZ:["998","00","(?:20|33|[5-9]\\d)\\d{7}",[9],[["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[235-9]"]]]],VA:["39","00","0\\d{5,10}|3[0-8]\\d{7,10}|55\\d{8}|8\\d{5}(?:\\d{2,4})?|(?:1\\d|39)\\d{7,8}",[6,7,8,9,10,11,12],0,0,0,0,0,0,"06698"],VC:["1","011","(?:[58]\\d\\d|784|900)\\d{7}",[10],0,"1",0,"([2-7]\\d{6})$|1","784$1",0,"784"],VE:["58","00","[68]00\\d{7}|(?:[24]\\d|[59]0)\\d{8}",[10],[["(\\d{3})(\\d{7})","$1-$2",["[24-689]"],"0$1"]],"0"],VG:["1","011","(?:284|[58]\\d\\d|900)\\d{7}",[10],0,"1",0,"([2-578]\\d{6})$|1","284$1",0,"284"],VI:["1","011","[58]\\d{9}|(?:34|90)0\\d{7}",[10],0,"1",0,"([2-9]\\d{6})$|1","340$1",0,"340"],VN:["84","00","[12]\\d{9}|[135-9]\\d{8}|[16]\\d{7}|[16-8]\\d{6}",[7,8,9,10],[["(\\d{2})(\\d{5})","$1 $2",["80"],"0$1",1],["(\\d{4})(\\d{4,6})","$1 $2",["1"],0,1],["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["6"],"0$1",1],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[357-9]"],"0$1",1],["(\\d{2})(\\d{4})(\\d{4})","$1 $2 $3",["2[48]"],"0$1",1],["(\\d{3})(\\d{4})(\\d{3})","$1 $2 $3",["2"],"0$1",1]],"0"],VU:["678","00","[57-9]\\d{6}|(?:[238]\\d|48)\\d{3}",[5,7],[["(\\d{3})(\\d{4})","$1 $2",["[57-9]"]]]],WF:["681","00","(?:40|72|8\\d{4})\\d{4}|[89]\\d{5}",[6,9],[["(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3",["[47-9]"]],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["8"]]]],WS:["685","0","(?:[2-6]|8\\d{5})\\d{4}|[78]\\d{6}|[68]\\d{5}",[5,6,7,10],[["(\\d{5})","$1",["[2-5]|6[1-9]"]],["(\\d{3})(\\d{3,7})","$1 $2",["[68]"]],["(\\d{2})(\\d{5})","$1 $2",["7"]]]],XK:["383","00","2\\d{7,8}|3\\d{7,11}|(?:4\\d\\d|[89]00)\\d{5}",[8,9,10,11,12],[["(\\d{3})(\\d{5})","$1 $2",["[89]"],"0$1"],["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["[2-4]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["2|39"],"0$1"],["(\\d{2})(\\d{7,10})","$1 $2",["3"],"0$1"]],"0"],YE:["967","00","(?:1|7\\d)\\d{7}|[1-7]\\d{6}",[7,8,9],[["(\\d)(\\d{3})(\\d{3,4})","$1 $2 $3",["[1-6]|7(?:[24-6]|8[0-7])"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["7"],"0$1"]],"0"],YT:["262","00","7093\\d{5}|(?:80|9\\d)\\d{7}|(?:26|63)9\\d{6}",[9],0,"0",0,0,0,0,0,[["269(?:0[0-467]|15|5[0-4]|6\\d|[78]0)\\d{4}"],["(?:639(?:0[0-79]|1[019]|[267]\\d|3[09]|40|5[05-9]|9[04-79])|7093[5-7])\\d{4}"],["80\\d{7}"],0,0,0,0,0,["9(?:(?:39|47)8[01]|769\\d)\\d{4}"]]],ZA:["27","00","[1-79]\\d{8}|8\\d{4,9}",[5,6,7,8,9,10],[["(\\d{2})(\\d{3,4})","$1 $2",["8[1-4]"],"0$1"],["(\\d{2})(\\d{3})(\\d{2,3})","$1 $2 $3",["8[1-4]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["860"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[1-9]"],"0$1"],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["8"],"0$1"]],"0"],ZM:["260","00","800\\d{6}|(?:21|[579]\\d|63)\\d{7}",[9],[["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[28]"],"0$1"],["(\\d{2})(\\d{7})","$1 $2",["[579]"],"0$1"]],"0"],ZW:["263","00","2(?:[0-57-9]\\d{6,8}|6[0-24-9]\\d{6,7})|[38]\\d{9}|[35-8]\\d{8}|[3-6]\\d{7}|[1-689]\\d{6}|[1-3569]\\d{5}|[1356]\\d{4}",[5,6,7,8,9,10],[["(\\d{3})(\\d{3,5})","$1 $2",["2(?:0[45]|2[278]|[49]8)|3(?:[09]8|17)|6(?:[29]8|37|75)|[23][78]|(?:33|5[15]|6[68])[78]"],"0$1"],["(\\d)(\\d{3})(\\d{2,4})","$1 $2 $3",["[49]"],"0$1"],["(\\d{3})(\\d{4})","$1 $2",["80"],"0$1"],["(\\d{2})(\\d{7})","$1 $2",["24|8[13-59]|(?:2[05-79]|39|5[45]|6[15-8])2","2(?:02[014]|4|[56]20|[79]2)|392|5(?:42|525)|6(?:[16-8]21|52[013])|8[13-59]"],"(0$1)"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["7"],"0$1"],["(\\d{3})(\\d{3})(\\d{3,4})","$1 $2 $3",["2(?:1[39]|2[0157]|[378]|[56][14])|3(?:12|29)","2(?:1[39]|2[0157]|[378]|[56][14])|3(?:123|29)"],"0$1"],["(\\d{4})(\\d{6})","$1 $2",["8"],"0$1"],["(\\d{2})(\\d{3,5})","$1 $2",["1|2(?:0[0-36-9]|12|29|[56])|3(?:1[0-689]|[24-6])|5(?:[0236-9]|1[2-4])|6(?:[013-59]|7[0-46-9])|(?:33|55|6[68])[0-69]|(?:29|3[09]|62)[0-79]"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["29[013-9]|39|54"],"0$1"],["(\\d{4})(\\d{3,5})","$1 $2",["(?:25|54)8","258|5483"],"0$1"]],"0"]},nonGeographic:{800:["800",0,"(?:00|[1-9]\\d)\\d{6}",[8],[["(\\d{4})(\\d{4})","$1 $2",["\\d"]]],0,0,0,0,0,0,[0,0,["(?:00|[1-9]\\d)\\d{6}"]]],808:["808",0,"[1-9]\\d{7}",[8],[["(\\d{4})(\\d{4})","$1 $2",["[1-9]"]]],0,0,0,0,0,0,[0,0,0,0,0,0,0,0,0,["[1-9]\\d{7}"]]],870:["870",0,"7\\d{11}|[235-7]\\d{8}",[9,12],[["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[235-7]"]]],0,0,0,0,0,0,[0,["(?:[356]|774[45])\\d{8}|7[6-8]\\d{7}"],0,0,0,0,0,0,["2\\d{8}",[9]]]],878:["878",0,"10\\d{10}",[12],[["(\\d{2})(\\d{5})(\\d{5})","$1 $2 $3",["1"]]],0,0,0,0,0,0,[0,0,0,0,0,0,0,0,["10\\d{10}"]]],881:["881",0,"6\\d{9}|[0-36-9]\\d{8}",[9,10],[["(\\d)(\\d{3})(\\d{5})","$1 $2 $3",["[0-37-9]"]],["(\\d)(\\d{3})(\\d{5,6})","$1 $2 $3",["6"]]],0,0,0,0,0,0,[0,["6\\d{9}|[0-36-9]\\d{8}"]]],882:["882",0,"[13]\\d{6}(?:\\d{2,5})?|[19]\\d{7}|(?:[25]\\d\\d|4)\\d{7}(?:\\d{2})?",[7,8,9,10,11,12],[["(\\d{2})(\\d{5})","$1 $2",["16|342"]],["(\\d{2})(\\d{6})","$1 $2",["49"]],["(\\d{2})(\\d{2})(\\d{4})","$1 $2 $3",["1[36]|9"]],["(\\d{2})(\\d{4})(\\d{3})","$1 $2 $3",["3[23]"]],["(\\d{2})(\\d{3,4})(\\d{4})","$1 $2 $3",["16"]],["(\\d{2})(\\d{4})(\\d{4})","$1 $2 $3",["10|23|3(?:[15]|4[57])|4|51"]],["(\\d{3})(\\d{4})(\\d{4})","$1 $2 $3",["34"]],["(\\d{2})(\\d{4,5})(\\d{5})","$1 $2 $3",["[1-35]"]]],0,0,0,0,0,0,[0,["342\\d{4}|(?:337|49)\\d{6}|(?:3(?:2|47|7\\d{3})|50\\d{3})\\d{7}",[7,8,9,10,12]],0,0,0,["348[57]\\d{7}",[11]],0,0,["1(?:3(?:0[0347]|[13][0139]|2[035]|4[013568]|6[0459]|7[06]|8[15-8]|9[0689])\\d{4}|6\\d{5,10})|(?:345\\d|9[89])\\d{6}|(?:10|2(?:3|85\\d)|3(?:[15]|[69]\\d\\d)|4[15-8]|51)\\d{8}"]]],883:["883",0,"(?:[1-4]\\d|51)\\d{6,10}",[8,9,10,11,12],[["(\\d{3})(\\d{3})(\\d{2,8})","$1 $2 $3",["[14]|2[24-689]|3[02-689]|51[24-9]"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["510"]],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["21"]],["(\\d{4})(\\d{4})(\\d{4})","$1 $2 $3",["51[13]"]],["(\\d{3})(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3 $4",["[235]"]]],0,0,0,0,0,0,[0,0,0,0,0,0,0,0,["(?:2(?:00\\d\\d|10)|(?:370[1-9]|51\\d0)\\d)\\d{7}|51(?:00\\d{5}|[24-9]0\\d{4,7})|(?:1[0-79]|2[24-689]|3[02-689]|4[0-4])0\\d{5,9}"]]],888:["888",0,"\\d{11}",[11],[["(\\d{3})(\\d{3})(\\d{5})","$1 $2 $3"]],0,0,0,0,0,0,[0,0,0,0,0,0,["\\d{11}"]]],979:["979",0,"[1359]\\d{8}",[9],[["(\\d)(\\d{4})(\\d{4})","$1 $2 $3",["[1359]"]]],0,0,0,0,0,0,[0,0,0,["[1359]\\d{8}"]]]}};function ywe(e,t,n){switch(n){case"Backspace":t>0&&(e=e.slice(0,t-1)+e.slice(t),t--);break;case"Delete":e=e.slice(0,t)+e.slice(t+1);break}return{value:e,caret:t}}function bwe(e,t,n){for(var r={},a="",i=0,o=0;oo&&(i=a.length))),o++}t===void 0&&(i=a.length);var u={value:a,caret:i};return u}function wwe(e,t){var n=typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n)return(n=n.call(e)).next.bind(n);if(Array.isArray(e)||(n=Swe(e))||t){n&&(e=n);var r=0;return function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Swe(e,t){if(e){if(typeof e=="string")return D8(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return D8(e,t)}}function D8(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n2&&arguments[2]!==void 0?arguments[2]:"x",r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:" ",a=e.length,i=s3("(",e),o=s3(")",e),l=i-o;l>0&&a=e.length?{done:!0}:{done:!1,value:e[r++]}}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Cwe(e,t){if(e){if(typeof e=="string")return $8(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return $8(e,t)}}function $8(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n1&&arguments[1]!==void 0?arguments[1]:"x",n=arguments.length>2?arguments[2]:void 0;if(!e)return function(a){return{text:a}};var r=s3(t,e);return function(a){if(!a)return{text:"",template:e};for(var i=0,o="",l=Twe(e.split("")),u;!(u=l()).done;){var d=u.value;if(d!==t){o+=d;continue}if(o+=a[i],i++,i===a.length&&a.length=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function jwe(e,t){if(e==null)return{};var n={},r=Object.keys(e),a,i;for(i=0;i=0)&&(n[a]=e[a]);return n}function Uwe(e){var t=e.ref,n=e.parse,r=e.format,a=e.value,i=e.defaultValue,o=e.controlled,l=o===void 0?!0:o,u=e.onChange,d=e.onKeyDown,f=Fwe(e,$we),g=R.useRef(),y=R.useCallback(function(T){g.current=T,t&&(typeof t=="function"?t(T):t.current=T)},[t]),h=R.useCallback(function(T){return Mwe(T,g.current,n,r,u)},[g,n,r,u]),v=R.useCallback(function(T){if(d&&d(T),!T.defaultPrevented)return Iwe(T,g.current,n,r,u)},[g,n,r,u,d]),E=Ub(Ub({},f),{},{ref:y,onChange:h,onKeyDown:v});return l?Ub(Ub({},E),{},{value:r(j8(a)?"":a).text}):Ub(Ub({},E),{},{defaultValue:r(j8(i)?"":i).text})}function j8(e){return e==null}var Bwe=["inputComponent","parse","format","value","defaultValue","onChange","controlled","onKeyDown","type"];function U8(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function Wwe(e){for(var t=1;t=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function Hwe(e,t){if(e==null)return{};var n={},r=Object.keys(e),a,i;for(i=0;i=0)&&(n[a]=e[a]);return n}function Gx(e,t){var n=e.inputComponent,r=n===void 0?"input":n,a=e.parse,i=e.format,o=e.value,l=e.defaultValue,u=e.onChange,d=e.controlled,f=e.onKeyDown,g=e.type,y=g===void 0?"text":g,h=qwe(e,Bwe),v=Uwe(Wwe({ref:t,parse:a,format:i,value:o,defaultValue:l,onChange:u,controlled:d,onKeyDown:f,type:y},h));return ze.createElement(r,v)}Gx=ze.forwardRef(Gx);Gx.propTypes={parse:Ye.func.isRequired,format:Ye.func.isRequired,inputComponent:Ye.elementType,type:Ye.string,value:Ye.string,defaultValue:Ye.string,onChange:Ye.func,controlled:Ye.bool,onKeyDown:Ye.func,onCut:Ye.func,onPaste:Ye.func};function B8(e,t){e=e.split("-"),t=t.split("-");for(var n=e[0].split("."),r=t[0].split("."),a=0;a<3;a++){var i=Number(n[a]),o=Number(r[a]);if(i>o)return 1;if(o>i)return-1;if(!isNaN(i)&&isNaN(o))return 1;if(isNaN(i)&&!isNaN(o))return-1}return e[1]&&t[1]?e[1]>t[1]?1:e[1]i?"TOO_SHORT":a[a.length-1]=0?"IS_POSSIBLE":"INVALID_LENGTH"}function nSe(e,t,n){if(t===void 0&&(t={}),n=new si(n),t.v2){if(!e.countryCallingCode)throw new Error("Invalid phone number object passed");n.selectNumberingPlan(e.countryCallingCode)}else{if(!e.phone)return!1;if(e.country){if(!n.hasCountry(e.country))throw new Error("Unknown country: ".concat(e.country));n.country(e.country)}else{if(!e.countryCallingCode)throw new Error("Invalid phone number object passed");n.selectNumberingPlan(e.countryCallingCode)}}if(n.possibleLengths())return $Z(e.phone||e.nationalNumber,n);if(e.countryCallingCode&&n.isNonGeographicCallingCode(e.countryCallingCode))return!0;throw new Error('Missing "possibleLengths" in metadata. Perhaps the metadata has been generated before v1.0.18.')}function $Z(e,t){switch(X_(e,t)){case"IS_POSSIBLE":return!0;default:return!1}}function Gd(e,t){return e=e||"",new RegExp("^(?:"+t+")$").test(e)}function rSe(e,t){var n=typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n)return(n=n.call(e)).next.bind(n);if(Array.isArray(e)||(n=aSe(e))||t){n&&(e=n);var r=0;return function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function aSe(e,t){if(e){if(typeof e=="string")return H8(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return H8(e,t)}}function H8(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n=0}var fj=2,uSe=17,cSe=3,Uo="0-90-9٠-٩۰-۹",dSe="-‐-―−ー-",fSe="//",pSe="..",hSe="  ­​⁠ ",mSe="()()[]\\[\\]",gSe="~⁓∼~",xu="".concat(dSe).concat(fSe).concat(pSe).concat(hSe).concat(mSe).concat(gSe),Q_="++",vSe=new RegExp("(["+Uo+"])");function LZ(e,t,n,r){if(t){var a=new si(r);a.selectNumberingPlan(t,n);var i=new RegExp(a.IDDPrefix());if(e.search(i)===0){e=e.slice(e.match(i)[0].length);var o=e.match(vSe);if(!(o&&o[1]!=null&&o[1].length>0&&o[1]==="0"))return e}}}function c3(e,t){if(e&&t.numberingPlan.nationalPrefixForParsing()){var n=new RegExp("^(?:"+t.numberingPlan.nationalPrefixForParsing()+")"),r=n.exec(e);if(r){var a,i,o=r.length-1,l=o>0&&r[o];if(t.nationalPrefixTransformRule()&&l)a=e.replace(n,t.nationalPrefixTransformRule()),o>1&&(i=r[1]);else{var u=r[0];a=e.slice(u.length),l&&(i=r[1])}var d;if(l){var f=e.indexOf(r[1]),g=e.slice(0,f);g===t.numberingPlan.nationalPrefix()&&(d=t.numberingPlan.nationalPrefix())}else d=r[0];return{nationalNumber:a,nationalPrefix:d,carrierCode:i}}}return{nationalNumber:e}}function d3(e,t){var n=c3(e,t),r=n.carrierCode,a=n.nationalNumber;if(a!==e){if(!ySe(e,a,t))return{nationalNumber:e};if(t.possibleLengths()&&!bSe(a,t))return{nationalNumber:e}}return{nationalNumber:a,carrierCode:r}}function ySe(e,t,n){return!(Gd(e,n.nationalNumberPattern())&&!Gd(t,n.nationalNumberPattern()))}function bSe(e,t){switch(X_(e,t)){case"TOO_SHORT":case"INVALID_LENGTH":return!1;default:return!0}}function FZ(e,t,n,r){var a=t?Oh(t,r):n;if(e.indexOf(a)===0){r=new si(r),r.selectNumberingPlan(t,n);var i=e.slice(a.length),o=d3(i,r),l=o.nationalNumber,u=d3(e,r),d=u.nationalNumber;if(!Gd(d,r.nationalNumberPattern())&&Gd(l,r.nationalNumberPattern())||X_(d,r)==="TOO_LONG")return{countryCallingCode:a,number:i}}return{number:e}}function pj(e,t,n,r){if(!e)return{};var a;if(e[0]!=="+"){var i=LZ(e,t,n,r);if(i&&i!==e)a=!0,e="+"+i;else{if(t||n){var o=FZ(e,t,n,r),l=o.countryCallingCode,u=o.number;if(l)return{countryCallingCodeSource:"FROM_NUMBER_WITHOUT_PLUS_SIGN",countryCallingCode:l,number:u}}return{number:e}}}if(e[1]==="0")return{};r=new si(r);for(var d=2;d-1<=cSe&&d<=e.length;){var f=e.slice(1,d);if(r.hasCallingCode(f))return r.selectNumberingPlan(f),{countryCallingCodeSource:a?"FROM_NUMBER_WITH_IDD":"FROM_NUMBER_WITH_PLUS_SIGN",countryCallingCode:f,number:e.slice(d)};d++}return{}}function jZ(e){return e.replace(new RegExp("[".concat(xu,"]+"),"g")," ").trim()}var UZ=/(\$\d)/;function BZ(e,t,n){var r=n.useInternationalFormat,a=n.withNationalPrefix;n.carrierCode,n.metadata;var i=e.replace(new RegExp(t.pattern()),r?t.internationalFormat():a&&t.nationalPrefixFormattingRule()?t.format().replace(UZ,t.nationalPrefixFormattingRule()):t.format());return r?jZ(i):i}var wSe=/^[\d]+(?:[~\u2053\u223C\uFF5E][\d]+)?$/;function SSe(e,t,n){var r=new si(n);if(r.selectNumberingPlan(e,t),r.defaultIDDPrefix())return r.defaultIDDPrefix();if(wSe.test(r.IDDPrefix()))return r.IDDPrefix()}var ESe=";ext=",Bb=function(t){return"([".concat(Uo,"]{1,").concat(t,"})")};function WZ(e){var t="20",n="15",r="9",a="6",i="[  \\t,]*",o="[:\\..]?[  \\t,-]*",l="#?",u="(?:e?xt(?:ensi(?:ó?|ó))?n?|e?xtn?|доб|anexo)",d="(?:[xx##~~]|int|int)",f="[- ]+",g="[  \\t]*",y="(?:,{2}|;)",h=ESe+Bb(t),v=i+u+o+Bb(t)+l,E=i+d+o+Bb(r)+l,T=f+Bb(a)+"#",C=g+y+o+Bb(n)+l,k=g+"(?:,)+"+o+Bb(r)+l;return h+"|"+v+"|"+E+"|"+T+"|"+C+"|"+k}var TSe="["+Uo+"]{"+fj+"}",CSe="["+Q_+"]{0,1}(?:["+xu+"]*["+Uo+"]){3,}["+xu+Uo+"]*",kSe=new RegExp("^["+Q_+"]{0,1}(?:["+xu+"]*["+Uo+"]){1,2}$","i"),xSe=CSe+"(?:"+WZ()+")?",_Se=new RegExp("^"+TSe+"$|^"+xSe+"$","i");function OSe(e){return e.length>=fj&&_Se.test(e)}function RSe(e){return kSe.test(e)}function PSe(e){var t=e.number,n=e.ext;if(!t)return"";if(t[0]!=="+")throw new Error('"formatRFC3966()" expects "number" to be in E.164 format.');return"tel:".concat(t).concat(n?";ext="+n:"")}function ASe(e,t){var n=typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n)return(n=n.call(e)).next.bind(n);if(Array.isArray(e)||(n=NSe(e))||t){n&&(e=n);var r=0;return function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function NSe(e,t){if(e){if(typeof e=="string")return V8(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return V8(e,t)}}function V8(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n0){var i=a.leadingDigitsPatterns()[a.leadingDigitsPatterns().length-1];if(t.search(i)!==0)continue}if(Gd(t,a.pattern()))return a}}function EA(e,t,n,r){return t?r(e,t,n):e}function $Se(e,t,n,r,a){var i=Oh(r,a.metadata);if(i===n){var o=Yx(e,t,"NATIONAL",a);return n==="1"?n+" "+o:o}var l=SSe(r,void 0,a.metadata);if(l)return"".concat(l," ").concat(n," ").concat(Yx(e,null,"INTERNATIONAL",a))}function X8(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function Q8(e){for(var t=1;t"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function KSe(e){return Function.toString.call(e).indexOf("[native code]")!==-1}function SE(e,t){return SE=Object.setPrototypeOf||function(r,a){return r.__proto__=a,r},SE(e,t)}function EE(e){return EE=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},EE(e)}var Id=(function(e){VSe(n,e);var t=GSe(n);function n(r){var a;return HSe(this,n),a=t.call(this,r),Object.setPrototypeOf(qZ(a),n.prototype),a.name=a.constructor.name,a}return qSe(n)})(p3(Error)),J8=new RegExp("(?:"+WZ()+")$","i");function XSe(e){var t=e.search(J8);if(t<0)return{};for(var n=e.slice(0,t),r=e.match(J8),a=1;a=e.length?{done:!0}:{done:!1,value:e[r++]}}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function JSe(e,t){if(e){if(typeof e=="string")return Z8(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Z8(e,t)}}function Z8(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n=e.length?{done:!0}:{done:!1,value:e[r++]}}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function t1e(e,t){if(e){if(typeof e=="string")return e5(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return e5(e,t)}}function e5(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n=e.length?{done:!0}:{done:!1,value:e[r++]}}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function r1e(e,t){if(e){if(typeof e=="string")return t5(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return t5(e,t)}}function t5(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n=e.length)return"";var r=e.indexOf(";",n);return r>=0?e.substring(n,r):e.substring(n)}function h1e(e){return e===null?!0:e.length===0?!1:o1e.test(e)||d1e.test(e)}function m1e(e,t){var n=t.extractFormattedPhoneNumber,r=p1e(e);if(!h1e(r))throw new Id("NOT_A_NUMBER");var a;if(r===null)a=n(e)||"";else{a="",r.charAt(0)===XZ&&(a+=r);var i=e.indexOf(r5),o;i>=0?o=i+r5.length:o=0;var l=e.indexOf(g3);a+=e.substring(o,l)}var u=a.indexOf(f1e);if(u>0&&(a=a.substring(0,u)),a!=="")return a}var g1e=250,v1e=new RegExp("["+Q_+Uo+"]"),y1e=new RegExp("[^"+Uo+"#]+$");function b1e(e,t,n){if(t=t||{},n=new si(n),t.defaultCountry&&!n.hasCountry(t.defaultCountry))throw t.v2?new Id("INVALID_COUNTRY"):new Error("Unknown country: ".concat(t.defaultCountry));var r=S1e(e,t.v2,t.extract),a=r.number,i=r.ext,o=r.error;if(!a){if(t.v2)throw o==="TOO_SHORT"?new Id("TOO_SHORT"):new Id("NOT_A_NUMBER");return{}}var l=T1e(a,t.defaultCountry,t.defaultCallingCode,n),u=l.country,d=l.nationalNumber,f=l.countryCallingCode,g=l.countryCallingCodeSource,y=l.carrierCode;if(!n.hasSelectedNumberingPlan()){if(t.v2)throw new Id("INVALID_COUNTRY");return{}}if(!d||d.lengthuSe){if(t.v2)throw new Id("TOO_LONG");return{}}if(t.v2){var h=new zZ(f,d,n.metadata);return u&&(h.country=u),y&&(h.carrierCode=y),i&&(h.ext=i),h.__countryCallingCodeSource=g,h}var v=(t.extended?n.hasSelectedNumberingPlan():u)?Gd(d,n.nationalNumberPattern()):!1;return t.extended?{country:u,countryCallingCode:f,carrierCode:y,valid:v,possible:v?!0:!!(t.extended===!0&&n.possibleLengths()&&$Z(d,n)),phone:d,ext:i}:v?E1e(u,d,i):{}}function w1e(e,t,n){if(e){if(e.length>g1e){if(n)throw new Id("TOO_LONG");return}if(t===!1)return e;var r=e.search(v1e);if(!(r<0))return e.slice(r).replace(y1e,"")}}function S1e(e,t,n){var r=m1e(e,{extractFormattedPhoneNumber:function(o){return w1e(o,n,t)}});if(!r)return{};if(!OSe(r))return RSe(r)?{error:"TOO_SHORT"}:{};var a=XSe(r);return a.ext?a:{number:r}}function E1e(e,t,n){var r={country:e,phone:t};return n&&(r.ext=n),r}function T1e(e,t,n,r){var a=pj(h3(e),t,n,r.metadata),i=a.countryCallingCodeSource,o=a.countryCallingCode,l=a.number,u;if(o)r.selectNumberingPlan(o);else if(l&&(t||n))r.selectNumberingPlan(t,n),t&&(u=t),o=n||Oh(t,r.metadata);else return{};if(!l)return{countryCallingCodeSource:i,countryCallingCode:o};var d=d3(h3(l),r),f=d.nationalNumber,g=d.carrierCode,y=KZ(o,{nationalNumber:f,defaultCountry:t,metadata:r});return y&&(u=y,y==="001"||r.country(u)),{country:u,countryCallingCode:o,countryCallingCodeSource:i,nationalNumber:f,carrierCode:g}}function a5(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function i5(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=new Array(t);n=e.length?{done:!0}:{done:!1,value:e[r++]}}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function W1e(e,t){if(e){if(typeof e=="string")return c5(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return c5(e,t)}}function c5(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n1;)t&1&&(n+=e),t>>=1,e+=e;return n+e}function d5(e,t){return e[t]===")"&&t++,z1e(e.slice(0,t))}function z1e(e){for(var t=[],n=0;n=e.length?{done:!0}:{done:!1,value:e[r++]}}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function nEe(e,t){if(e){if(typeof e=="string")return h5(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return h5(e,t)}}function h5(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n1&&arguments[1]!==void 0?arguments[1]:{},a=r.allowOverflow;if(!n)throw new Error("String is required");var i=v3(n.split(""),this.matchTree,!0);if(i&&i.match&&delete i.matchedChars,!(i&&i.overflow&&!a))return i}}]),e})();function v3(e,t,n){if(typeof t=="string"){var r=e.join("");return t.indexOf(r)===0?e.length===t.length?{match:!0,matchedChars:e}:{partialMatch:!0}:r.indexOf(t)===0?n&&e.length>t.length?{overflow:!0}:{match:!0,matchedChars:e.slice(0,t.length)}:void 0}if(Array.isArray(t)){for(var a=e.slice(),i=0;i=e.length?{done:!0}:{done:!1,value:e[r++]}}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function sEe(e,t){if(e){if(typeof e=="string")return g5(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return g5(e,t)}}function g5(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n=0)){var a=this.getTemplateForFormat(n,r);if(a)return this.setNationalNumberTemplate(a,r),!0}}},{key:"getSeparatorAfterNationalPrefix",value:function(n){return this.isNANP||n&&n.nationalPrefixFormattingRule()&&pEe.test(n.nationalPrefixFormattingRule())?" ":""}},{key:"getInternationalPrefixBeforeCountryCallingCode",value:function(n,r){var a=n.IDDPrefix,i=n.missingPlus;return a?r&&r.spacing===!1?a:a+" ":i?"":"+"}},{key:"getTemplate",value:function(n){if(this.template){for(var r=-1,a=0,i=n.international?this.getInternationalPrefixBeforeCountryCallingCode(n,{spacing:!1}):"";ad.length)){var f=new RegExp("^"+u+"$"),g=a.replace(/\d/g,y3);f.test(g)&&(d=g);var y=this.getFormatFormat(n,i),h;if(this.shouldTryNationalPrefixFormattingRule(n,{international:i,nationalPrefix:o})){var v=y.replace(UZ,n.nationalPrefixFormattingRule());if(Kx(n.nationalPrefixFormattingRule())===(o||"")+Kx("$1")&&(y=v,h=!0,o))for(var E=o.length;E>0;)y=y.replace(/\d/,wu),E--}var T=d.replace(new RegExp(u),y).replace(new RegExp(y3,"g"),wu);return h||(l?T=fx(wu,l.length)+" "+T:o&&(T=fx(wu,o.length)+this.getSeparatorAfterNationalPrefix(n)+T)),i&&(T=jZ(T)),T}}},{key:"formatNextNationalNumberDigits",value:function(n){var r=q1e(this.populatedNationalNumberTemplate,this.populatedNationalNumberTemplatePosition,n);if(!r){this.resetFormat();return}return this.populatedNationalNumberTemplate=r[0],this.populatedNationalNumberTemplatePosition=r[1],d5(this.populatedNationalNumberTemplate,this.populatedNationalNumberTemplatePosition+1)}},{key:"shouldTryNationalPrefixFormattingRule",value:function(n,r){var a=r.international,i=r.nationalPrefix;if(n.nationalPrefixFormattingRule()){var o=n.usesNationalPrefix();if(o&&i||!o&&!a)return!0}}}]),e})();function QZ(e,t){return SEe(e)||wEe(e,t)||bEe(e,t)||yEe()}function yEe(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function bEe(e,t){if(e){if(typeof e=="string")return y5(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return y5(e,t)}}function y5(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n=3;if(r.appendDigits(n),i&&this.extractIddPrefix(r),this.isWaitingForCountryCallingCode(r)){if(!this.extractCountryCallingCode(r))return}else r.appendNationalSignificantNumberDigits(n);r.international||this.hasExtractedNationalSignificantNumber||this.extractNationalSignificantNumber(r.getNationalDigits(),function(o){return r.update(o)})}},{key:"isWaitingForCountryCallingCode",value:function(n){var r=n.international,a=n.callingCode;return r&&!a}},{key:"extractCountryCallingCode",value:function(n){var r=pj("+"+n.getDigitsWithoutInternationalPrefix(),this.defaultCountry,this.defaultCallingCode,this.metadata.metadata),a=r.countryCallingCode,i=r.number;if(a)return n.setCallingCode(a),n.update({nationalSignificantNumber:i}),!0}},{key:"reset",value:function(n){if(n){this.hasSelectedNumberingPlan=!0;var r=n._nationalPrefixForParsing();this.couldPossiblyExtractAnotherNationalSignificantNumber=r&&REe.test(r)}else this.hasSelectedNumberingPlan=void 0,this.couldPossiblyExtractAnotherNationalSignificantNumber=void 0}},{key:"extractNationalSignificantNumber",value:function(n,r){if(this.hasSelectedNumberingPlan){var a=c3(n,this.metadata),i=a.nationalPrefix,o=a.nationalNumber,l=a.carrierCode;if(o!==n)return this.onExtractedNationalNumber(i,l,o,n,r),!0}}},{key:"extractAnotherNationalSignificantNumber",value:function(n,r,a){if(!this.hasExtractedNationalSignificantNumber)return this.extractNationalSignificantNumber(n,a);if(this.couldPossiblyExtractAnotherNationalSignificantNumber){var i=c3(n,this.metadata),o=i.nationalPrefix,l=i.nationalNumber,u=i.carrierCode;if(l!==r)return this.onExtractedNationalNumber(o,u,l,n,a),!0}}},{key:"onExtractedNationalNumber",value:function(n,r,a,i,o){var l,u,d=i.lastIndexOf(a);if(d>=0&&d===i.length-a.length){u=!0;var f=i.slice(0,d);f!==n&&(l=f)}o({nationalPrefix:n,carrierCode:r,nationalSignificantNumber:a,nationalSignificantNumberMatchesInput:u,complexPrefixBeforeNationalSignificantNumber:l}),this.hasExtractedNationalSignificantNumber=!0,this.onNationalSignificantNumberChange()}},{key:"reExtractNationalSignificantNumber",value:function(n){if(this.extractAnotherNationalSignificantNumber(n.getNationalDigits(),n.nationalSignificantNumber,function(r){return n.update(r)}))return!0;if(this.extractIddPrefix(n))return this.extractCallingCodeAndNationalSignificantNumber(n),!0;if(this.fixMissingPlus(n))return this.extractCallingCodeAndNationalSignificantNumber(n),!0}},{key:"extractIddPrefix",value:function(n){var r=n.international,a=n.IDDPrefix,i=n.digits;if(n.nationalSignificantNumber,!(r||a)){var o=LZ(i,this.defaultCountry,this.defaultCallingCode,this.metadata.metadata);if(o!==void 0&&o!==i)return n.update({IDDPrefix:i.slice(0,i.length-o.length)}),this.startInternationalNumber(n,{country:void 0,callingCode:void 0}),!0}}},{key:"fixMissingPlus",value:function(n){if(!n.international){var r=FZ(n.digits,this.defaultCountry,this.defaultCallingCode,this.metadata.metadata),a=r.countryCallingCode;if(r.number,a)return n.update({missingPlus:!0}),this.startInternationalNumber(n,{country:n.country,callingCode:a}),!0}}},{key:"startInternationalNumber",value:function(n,r){var a=r.country,i=r.callingCode;n.startInternationalNumber(a,i),n.nationalSignificantNumber&&(n.resetNationalSignificantNumber(),this.onNationalSignificantNumberChange(),this.hasExtractedNationalSignificantNumber=void 0)}},{key:"extractCallingCodeAndNationalSignificantNumber",value:function(n){this.extractCountryCallingCode(n)&&this.extractNationalSignificantNumber(n.getNationalDigits(),function(r){return n.update(r)})}}]),e})();function AEe(e){var t=e.search(_Ee);if(!(t<0)){e=e.slice(t);var n;return e[0]==="+"&&(n=!0,e=e.slice(1)),e=e.replace(OEe,""),n&&(e="+"+e),e}}function NEe(e){var t=AEe(e)||"";return t[0]==="+"?[t.slice(1),!0]:[t]}function MEe(e){var t=NEe(e),n=QZ(t,2),r=n[0],a=n[1];return xEe.test(r)||(r=""),[r,a]}function IEe(e,t){return FEe(e)||LEe(e,t)||$Ee(e,t)||DEe()}function DEe(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function $Ee(e,t){if(e){if(typeof e=="string")return b5(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return b5(e,t)}}function b5(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n1}},{key:"determineTheCountry",value:function(){this.state.setCountry(KZ(this.isInternational()?this.state.callingCode:this.defaultCallingCode,{nationalNumber:this.state.nationalSignificantNumber,defaultCountry:this.defaultCountry,metadata:this.metadata}))}},{key:"getNumberValue",value:function(){var n=this.state,r=n.digits,a=n.callingCode,i=n.country,o=n.nationalSignificantNumber;if(r){if(this.isInternational())return a?"+"+a+o:"+"+r;if(i||a){var l=i?this.metadata.countryCallingCode():a;return"+"+l+o}}}},{key:"getNumber",value:function(){var n=this.state,r=n.nationalSignificantNumber,a=n.carrierCode,i=n.callingCode,o=this._getCountry();if(r&&!(!o&&!i)){if(o&&o===this.defaultCountry){var l=new si(this.metadata.metadata);l.selectNumberingPlan(o);var u=l.numberingPlan.callingCode(),d=this.metadata.getCountryCodesForCallingCode(u);if(d.length>1){var f=YZ(r,{countries:d,defaultCountry:this.defaultCountry,metadata:this.metadata.metadata});f&&(o=f)}}var g=new zZ(o||i,r,this.metadata.metadata);return a&&(g.carrierCode=a),g}}},{key:"isPossible",value:function(){var n=this.getNumber();return n?n.isPossible():!1}},{key:"isValid",value:function(){var n=this.getNumber();return n?n.isValid():!1}},{key:"getNationalNumber",value:function(){return this.state.nationalSignificantNumber}},{key:"getChars",value:function(){return(this.state.international?"+":"")+this.state.digits}},{key:"getTemplate",value:function(){return this.formatter.getTemplate(this.state)||this.getNonFormattedTemplate()||""}}]),e})();function w5(e){return new si(e).getCountries()}function WEe(e,t,n){return n||(n=t,t=void 0),new G0(t,n).input(e)}function JZ(e){var t=e.inputFormat,n=e.country,r=e.metadata;return t==="NATIONAL_PART_OF_INTERNATIONAL"?"+".concat(Oh(n,r)):""}function b3(e,t){return t&&(e=e.slice(t.length),e[0]===" "&&(e=e.slice(1))),e}function zEe(e,t,n){if(!(n&&n.ignoreRest)){var r=function(i){if(n)switch(i){case"end":n.ignoreRest=!0;break}};return GZ(e,t,r)}}function ZZ(e){var t=e.onKeyDown,n=e.inputFormat;return R.useCallback(function(r){if(r.keyCode===HEe&&n==="INTERNATIONAL"&&r.target instanceof HTMLInputElement&&qEe(r.target)===VEe.length){r.preventDefault();return}t&&t(r)},[t,n])}function qEe(e){return e.selectionStart}var HEe=8,VEe="+",GEe=["onKeyDown","country","inputFormat","metadata","international","withCountryCallingCode"];function w3(){return w3=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function KEe(e,t){if(e==null)return{};var n={},r=Object.keys(e),a,i;for(i=0;i=0)&&(n[a]=e[a]);return n}function XEe(e){function t(n,r){var a=n.onKeyDown,i=n.country,o=n.inputFormat,l=n.metadata,u=l===void 0?e:l;n.international,n.withCountryCallingCode;var d=YEe(n,GEe),f=R.useCallback(function(y){var h=new G0(i,u),v=JZ({inputFormat:o,country:i,metadata:u}),E=h.input(v+y),T=h.getTemplate();return v&&(E=b3(E,v),T&&(T=b3(T,v))),{text:E,template:T}},[i,u]),g=ZZ({onKeyDown:a,inputFormat:o});return ze.createElement(Gx,w3({},d,{ref:r,parse:zEe,format:f,onKeyDown:g}))}return t=ze.forwardRef(t),t.propTypes={value:Ye.string.isRequired,onChange:Ye.func.isRequired,onKeyDown:Ye.func,country:Ye.string,inputFormat:Ye.oneOf(["INTERNATIONAL","NATIONAL_PART_OF_INTERNATIONAL","NATIONAL","INTERNATIONAL_OR_NATIONAL"]).isRequired,metadata:Ye.object},t}const QEe=XEe();var JEe=["value","onChange","onKeyDown","country","inputFormat","metadata","inputComponent","international","withCountryCallingCode"];function S3(){return S3=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function eTe(e,t){if(e==null)return{};var n={},r=Object.keys(e),a,i;for(i=0;i=0)&&(n[a]=e[a]);return n}function tTe(e){function t(n,r){var a=n.value,i=n.onChange,o=n.onKeyDown,l=n.country,u=n.inputFormat,d=n.metadata,f=d===void 0?e:d,g=n.inputComponent,y=g===void 0?"input":g;n.international,n.withCountryCallingCode;var h=ZEe(n,JEe),v=JZ({inputFormat:u,country:l,metadata:f}),E=R.useCallback(function(C){var k=h3(C.target.value);if(k===a){var _=S5(v,k,l,f);_.indexOf(C.target.value)===0&&(k=k.slice(0,-1))}i(k)},[v,a,i,l,f]),T=ZZ({onKeyDown:o,inputFormat:u});return ze.createElement(y,S3({},h,{ref:r,value:S5(v,a,l,f),onChange:E,onKeyDown:T}))}return t=ze.forwardRef(t),t.propTypes={value:Ye.string.isRequired,onChange:Ye.func.isRequired,onKeyDown:Ye.func,country:Ye.string,inputFormat:Ye.oneOf(["INTERNATIONAL","NATIONAL_PART_OF_INTERNATIONAL","NATIONAL","INTERNATIONAL_OR_NATIONAL"]).isRequired,metadata:Ye.object,inputComponent:Ye.elementType},t}const nTe=tTe();function S5(e,t,n,r){return b3(WEe(e+t,n,r),e)}function rTe(e){return E5(e[0])+E5(e[1])}function E5(e){return String.fromCodePoint(127397+e.toUpperCase().charCodeAt(0))}var aTe=["value","onChange","options","disabled","readOnly"],iTe=["value","options","className","iconComponent","getIconAspectRatio","arrowComponent","unicodeFlags"];function oTe(e,t){var n=typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n)return(n=n.call(e)).next.bind(n);if(Array.isArray(e)||(n=sTe(e))||t){n&&(e=n);var r=0;return function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function sTe(e,t){if(e){if(typeof e=="string")return T5(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return T5(e,t)}}function T5(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function lTe(e,t){if(e==null)return{};var n={},r=Object.keys(e),a,i;for(i=0;i=0)&&(n[a]=e[a]);return n}function tee(e){var t=e.value,n=e.onChange,r=e.options,a=e.disabled,i=e.readOnly,o=eee(e,aTe),l=R.useCallback(function(u){var d=u.target.value;n(d==="ZZ"?void 0:d)},[n]);return R.useMemo(function(){return ree(r,t)},[r,t]),ze.createElement("select",Xx({},o,{disabled:a||i,readOnly:i,value:t||"ZZ",onChange:l}),r.map(function(u){var d=u.value,f=u.label,g=u.divider;return ze.createElement("option",{key:g?"|":d||"ZZ",value:g?"|":d||"ZZ",disabled:!!g,style:g?uTe:void 0},f)}))}tee.propTypes={value:Ye.string,onChange:Ye.func.isRequired,options:Ye.arrayOf(Ye.shape({value:Ye.string,label:Ye.string,divider:Ye.bool})).isRequired,disabled:Ye.bool,readOnly:Ye.bool};var uTe={fontSize:"1px",backgroundColor:"currentColor",color:"inherit"};function nee(e){var t=e.value,n=e.options,r=e.className,a=e.iconComponent;e.getIconAspectRatio;var i=e.arrowComponent,o=i===void 0?cTe:i,l=e.unicodeFlags,u=eee(e,iTe),d=R.useMemo(function(){return ree(n,t)},[n,t]);return ze.createElement("div",{className:"PhoneInputCountry"},ze.createElement(tee,Xx({},u,{value:t,options:n,className:sa("PhoneInputCountrySelect",r)})),d&&(l&&t?ze.createElement("div",{className:"PhoneInputCountryIconUnicode"},rTe(t)):ze.createElement(a,{"aria-hidden":!0,country:t,label:d.label,aspectRatio:l?1:void 0})),ze.createElement(o,null))}nee.propTypes={iconComponent:Ye.elementType,arrowComponent:Ye.elementType,unicodeFlags:Ye.bool};function cTe(){return ze.createElement("div",{className:"PhoneInputCountrySelectArrow"})}function ree(e,t){for(var n=oTe(e),r;!(r=n()).done;){var a=r.value;if(!a.divider&&dTe(a.value,t))return a}}function dTe(e,t){return e==null?t==null:e===t}var fTe=["country","countryName","flags","flagUrl"];function E3(){return E3=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function hTe(e,t){if(e==null)return{};var n={},r=Object.keys(e),a,i;for(i=0;i=0)&&(n[a]=e[a]);return n}function hj(e){var t=e.country,n=e.countryName,r=e.flags,a=e.flagUrl,i=pTe(e,fTe);return r&&r[t]?r[t]({title:n}):ze.createElement("img",E3({},i,{alt:n,role:n?void 0:"presentation",src:a.replace("{XX}",t).replace("{xx}",t.toLowerCase())}))}hj.propTypes={country:Ye.string.isRequired,countryName:Ye.string.isRequired,flags:Ye.objectOf(Ye.elementType),flagUrl:Ye.string.isRequired};var mTe=["aspectRatio"],gTe=["title"],vTe=["title"];function Qx(){return Qx=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function yTe(e,t){if(e==null)return{};var n={},r=Object.keys(e),a,i;for(i=0;i=0)&&(n[a]=e[a]);return n}function J_(e){var t=e.aspectRatio,n=mj(e,mTe);return t===1?ze.createElement(iee,n):ze.createElement(aee,n)}J_.propTypes={title:Ye.string.isRequired,aspectRatio:Ye.number};function aee(e){var t=e.title,n=mj(e,gTe);return ze.createElement("svg",Qx({},n,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 75 50"}),ze.createElement("title",null,t),ze.createElement("g",{className:"PhoneInputInternationalIconGlobe",stroke:"currentColor",fill:"none",strokeWidth:"2",strokeMiterlimit:"10"},ze.createElement("path",{strokeLinecap:"round",d:"M47.2,36.1C48.1,36,49,36,50,36c7.4,0,14,1.7,18.5,4.3"}),ze.createElement("path",{d:"M68.6,9.6C64.2,12.3,57.5,14,50,14c-7.4,0-14-1.7-18.5-4.3"}),ze.createElement("line",{x1:"26",y1:"25",x2:"74",y2:"25"}),ze.createElement("line",{x1:"50",y1:"1",x2:"50",y2:"49"}),ze.createElement("path",{strokeLinecap:"round",d:"M46.3,48.7c1.2,0.2,2.5,0.3,3.7,0.3c13.3,0,24-10.7,24-24S63.3,1,50,1S26,11.7,26,25c0,2,0.3,3.9,0.7,5.8"}),ze.createElement("path",{strokeLinecap:"round",d:"M46.8,48.2c1,0.6,2.1,0.8,3.2,0.8c6.6,0,12-10.7,12-24S56.6,1,50,1S38,11.7,38,25c0,1.4,0.1,2.7,0.2,4c0,0.1,0,0.2,0,0.2"})),ze.createElement("path",{className:"PhoneInputInternationalIconPhone",stroke:"none",fill:"currentColor",d:"M12.4,17.9c2.9-2.9,5.4-4.8,0.3-11.2S4.1,5.2,1.3,8.1C-2,11.4,1.1,23.5,13.1,35.6s24.3,15.2,27.5,11.9c2.8-2.8,7.8-6.3,1.4-11.5s-8.3-2.6-11.2,0.3c-2,2-7.2-2.2-11.7-6.7S10.4,19.9,12.4,17.9z"}))}aee.propTypes={title:Ye.string.isRequired};function iee(e){var t=e.title,n=mj(e,vTe);return ze.createElement("svg",Qx({},n,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 50 50"}),ze.createElement("title",null,t),ze.createElement("g",{className:"PhoneInputInternationalIconGlobe",stroke:"currentColor",fill:"none",strokeWidth:"2",strokeLinecap:"round"},ze.createElement("path",{d:"M8.45,13A21.44,21.44,0,1,1,37.08,41.56"}),ze.createElement("path",{d:"M19.36,35.47a36.9,36.9,0,0,1-2.28-13.24C17.08,10.39,21.88.85,27.8.85s10.72,9.54,10.72,21.38c0,6.48-1.44,12.28-3.71,16.21"}),ze.createElement("path",{d:"M17.41,33.4A39,39,0,0,1,27.8,32.06c6.62,0,12.55,1.5,16.48,3.86"}),ze.createElement("path",{d:"M44.29,8.53c-3.93,2.37-9.86,3.88-16.49,3.88S15.25,10.9,11.31,8.54"}),ze.createElement("line",{x1:"27.8",y1:"0.85",x2:"27.8",y2:"34.61"}),ze.createElement("line",{x1:"15.2",y1:"22.23",x2:"49.15",y2:"22.23"})),ze.createElement("path",{className:"PhoneInputInternationalIconPhone",stroke:"transparent",fill:"currentColor",d:"M9.42,26.64c2.22-2.22,4.15-3.59.22-8.49S3.08,17,.93,19.17c-2.49,2.48-.13,11.74,9,20.89s18.41,11.5,20.89,9c2.15-2.15,5.91-4.77,1-8.71s-6.27-2-8.49.22c-1.55,1.55-5.48-1.69-8.86-5.08S7.87,28.19,9.42,26.64Z"}))}iee.propTypes={title:Ye.string.isRequired};function bTe(e){if(e.length<2||e[0]!=="+")return!1;for(var t=1;t=48&&n<=57))return!1;t++}return!0}function oee(e){bTe(e)||console.error("[react-phone-number-input] Expected the initial `value` to be a E.164 phone number. Got",e)}function wTe(e,t){var n=typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n)return(n=n.call(e)).next.bind(n);if(Array.isArray(e)||(n=STe(e))||t){n&&(e=n);var r=0;return function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function STe(e,t){if(e){if(typeof e=="string")return C5(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return C5(e,t)}}function C5(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n0))return e}function Z_(e,t){return IZ(e,t)?!0:(console.error("Country not found: ".concat(e)),!1)}function see(e,t){return e&&(e=e.filter(function(n){return Z_(n,t)}),e.length===0&&(e=void 0)),e}var CTe=["country","label","aspectRatio"];function T3(){return T3=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function xTe(e,t){if(e==null)return{};var n={},r=Object.keys(e),a,i;for(i=0;i=0)&&(n[a]=e[a]);return n}function lee(e){var t=e.flags,n=e.flagUrl,r=e.flagComponent,a=e.internationalIcon;function i(o){var l=o.country,u=o.label,d=o.aspectRatio,f=kTe(o,CTe),g=a===J_?d:void 0;return ze.createElement("div",T3({},f,{className:sa("PhoneInputCountryIcon",{"PhoneInputCountryIcon--square":g===1,"PhoneInputCountryIcon--border":l})}),l?ze.createElement(r,{country:l,countryName:u,flags:t,flagUrl:n,className:"PhoneInputCountryIconImg"}):ze.createElement(a,{title:u,aspectRatio:g,className:"PhoneInputCountryIconImg"}))}return i.propTypes={country:Ye.string,label:Ye.string.isRequired,aspectRatio:Ye.number},i}lee({flagUrl:"https://purecatamphetamine.github.io/country-flag-icons/3x2/{XX}.svg",flagComponent:hj,internationalIcon:J_});function _Te(e,t){var n=typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n)return(n=n.call(e)).next.bind(n);if(Array.isArray(e)||(n=OTe(e))||t){n&&(e=n);var r=0;return function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function OTe(e,t){if(e){if(typeof e=="string")return k5(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return k5(e,t)}}function k5(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n0&&(u=a()),u}function NTe(e){var t=e.countries,n=e.countryNames,r=e.addInternationalOption,a=e.compareStringsLocales,i=e.compareStrings;i||(i=jTe);var o=t.map(function(l){return{value:l,label:n[l]||l}});return o.sort(function(l,u){return i(l.label,u.label,a)}),r&&o.unshift({label:n.ZZ}),o}function dee(e,t){return $1e(e||"",t)}function MTe(e){return e.formatNational().replace(/\D/g,"")}function ITe(e,t){var n=t.prevCountry,r=t.newCountry,a=t.metadata,i=t.useNationalFormat;if(n===r)return e;if(!e)return i?"":r?Bd(r,a):"";if(r){if(e[0]==="+"){if(i)return e.indexOf("+"+Oh(r,a))===0?UTe(e,r,a):"";if(n){var o=Bd(r,a);return e.indexOf(o)===0?e:o}else{var l=Bd(r,a);return e.indexOf(l)===0?e:l}}}else if(e[0]!=="+")return n0(e,n,a)||"";return e}function n0(e,t,n){if(e){if(e[0]==="+"){if(e==="+")return;var r=new G0(t,n);return r.input(e),r.getNumberValue()}if(t){var a=pee(e,t,n);return"+".concat(Oh(t,n)).concat(a||"")}}}function DTe(e,t,n){var r=pee(e,t,n);if(r){var a=r.length-$Te(t,n);if(a>0)return e.slice(0,e.length-a)}return e}function $Te(e,t){return t=new si(t),t.selectNumberingPlan(e),t.numberingPlan.possibleLengths()[t.numberingPlan.possibleLengths().length-1]}function fee(e,t){var n=t.country,r=t.countries,a=t.defaultCountry,i=t.latestCountrySelectedByUser,o=t.required,l=t.metadata;if(e==="+")return n;var u=FTe(e,l);if(u)return!r||r.indexOf(u)>=0?u:void 0;if(n){if(b0(e,n,l)){if(i&&b0(e,i,l))return i;if(a&&b0(e,a,l))return a;if(!o)return}else if(!o)return}return n}function LTe(e,t){var n=t.prevPhoneDigits,r=t.country,a=t.defaultCountry,i=t.latestCountrySelectedByUser,o=t.countryRequired,l=t.getAnyCountry,u=t.countries,d=t.international,f=t.limitMaxLength,g=t.countryCallingCodeEditable,y=t.metadata;if(d&&g===!1&&r){var h=Bd(r,y);if(e.indexOf(h)!==0){var v,E=e&&e[0]!=="+";return E?(e=h+e,v=n0(e,r,y)):e=h,{phoneDigits:e,value:v,country:r}}}d===!1&&r&&e&&e[0]==="+"&&(e=x5(e,r,y)),e&&r&&f&&(e=DTe(e,r,y)),e&&e[0]!=="+"&&(!r||d)&&(e="+"+e),!e&&n&&n[0]==="+"&&(d?r=void 0:r=a),e==="+"&&n&&n[0]==="+"&&n.length>1&&(r=void 0);var T;return e&&(e[0]==="+"&&(e==="+"||r&&Bd(r,y).indexOf(e)===0)?T=void 0:T=n0(e,r,y)),T&&(r=fee(T,{country:r,countries:u,defaultCountry:a,latestCountrySelectedByUser:i,required:!1,metadata:y}),d===!1&&r&&e&&e[0]==="+"&&(e=x5(e,r,y),T=n0(e,r,y))),!r&&o&&(r=a||l()),{phoneDigits:e,country:r,value:T}}function x5(e,t,n){if(e.indexOf(Bd(t,n))===0){var r=new G0(t,n);r.input(e);var a=r.getNumber();return a?a.formatNational().replace(/\D/g,""):""}else return e.replace(/\D/g,"")}function FTe(e,t){var n=new G0(null,t);return n.input(e),n.getCountry()}function jTe(e,t,n){return String.prototype.localeCompare?e.localeCompare(t,n):et?1:0}function UTe(e,t,n){if(t){var r="+"+Oh(t,n);if(e.length=0)&&(N=P.country):(N=fee(o,{country:void 0,countries:I,metadata:r}),N||i&&o.indexOf(Bd(i,r))===0&&(N=i))}var L;if(o){if(T){var j=N?T===N:b0(o,T,r);j?N||(N=T):L={latestCountrySelectedByUser:void 0}}}else L={latestCountrySelectedByUser:void 0,hasUserSelectedACountry:void 0};return Dk(Dk({},L),{},{phoneDigits:C({phoneNumber:P,value:o,defaultCountry:i}),value:o,country:o?N:i})}}function O5(e,t){return e===null&&(e=void 0),t===null&&(t=void 0),e===t}var HTe=["name","disabled","readOnly","autoComplete","style","className","inputRef","inputComponent","numberInputProps","smartCaret","countrySelectComponent","countrySelectProps","containerComponent","containerComponentProps","defaultCountry","countries","countryOptionsOrder","labels","flags","flagComponent","flagUrl","addInternationalOption","internationalIcon","displayInitialValueAsLocalNumber","initialValueFormat","onCountryChange","limitMaxLength","countryCallingCodeEditable","focusInputOnCountrySelection","reset","metadata","international","locales"];function A0(e){"@babel/helpers - typeof";return A0=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},A0(e)}function R5(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function mee(e){for(var t=1;t=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function GTe(e,t){if(e==null)return{};var n={},r=Object.keys(e),a,i;for(i=0;i=0)&&(n[a]=e[a]);return n}function YTe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function P5(e,t){for(var n=0;n=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function sCe(e,t){if(e==null)return{};var n={},r=Object.keys(e),a,i;for(i=0;i=0)&&(n[a]=e[a]);return n}function bee(e){var t=ze.forwardRef(function(n,r){var a=n.metadata,i=a===void 0?e:a,o=n.labels,l=o===void 0?aCe:o,u=oCe(n,iCe);return ze.createElement(yee,k3({},u,{ref:r,metadata:i,labels:l}))});return t.propTypes={metadata:uee,labels:cee},t}bee();const lCe=bee(vwe),In=e=>{const{region:t}=sr(),{label:n,getInputRef:r,secureTextEntry:a,Icon:i,onChange:o,value:l,children:u,errorMessage:d,type:f,focused:g=!1,autoFocus:y,...h}=e,[v,E]=R.useState(!1),T=R.useRef(),C=R.useCallback(()=>{var A;(A=T.current)==null||A.focus()},[T.current]);let k=l===void 0?"":l;f==="number"&&(k=+l);const _=A=>{o&&o(f==="number"?+A.target.value:A.target.value)};return w.jsxs(df,{focused:v,onClick:C,...e,children:[e.type==="phonenumber"?w.jsx(lCe,{country:t,autoFocus:y,value:k,onChange:A=>o&&o(A)}):w.jsx("input",{...h,ref:T,value:k,autoFocus:y,className:sa("form-control",e.errorMessage&&"is-invalid",e.validMessage&&"is-valid"),type:f||"text",onChange:_,onBlur:()=>E(!1),onFocus:()=>E(!0)}),u]})};function oo(e){"@babel/helpers - typeof";return oo=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},oo(e)}function uCe(e,t){if(oo(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(oo(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function wee(e){var t=uCe(e,"string");return oo(t)=="symbol"?t:String(t)}function wt(e,t,n){return t=wee(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function N5(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function Jt(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=new Array(t);n0?Hi(Y0,--hs):0,M0--,Xa===10&&(M0=1,tO--),Xa}function Hs(){return Xa=hs2||kE(Xa)>3?"":" "}function _Ce(e,t){for(;--t&&Hs()&&!(Xa<48||Xa>102||Xa>57&&Xa<65||Xa>70&&Xa<97););return cT(e,px()+(t<6&&kc()==32&&Hs()==32))}function O3(e){for(;Hs();)switch(Xa){case e:return hs;case 34:case 39:e!==34&&e!==39&&O3(Xa);break;case 40:e===41&&O3(e);break;case 92:Hs();break}return hs}function OCe(e,t){for(;Hs()&&e+Xa!==57;)if(e+Xa===84&&kc()===47)break;return"/*"+cT(t,hs-1)+"*"+eO(e===47?e:Hs())}function RCe(e){for(;!kE(kc());)Hs();return cT(e,hs)}function PCe(e){return _ee(mx("",null,null,null,[""],e=xee(e),0,[0],e))}function mx(e,t,n,r,a,i,o,l,u){for(var d=0,f=0,g=o,y=0,h=0,v=0,E=1,T=1,C=1,k=0,_="",A=a,P=i,N=r,I=_;T;)switch(v=k,k=Hs()){case 40:if(v!=108&&Hi(I,g-1)==58){_3(I+=br(hx(k),"&","&\f"),"&\f")!=-1&&(C=-1);break}case 34:case 39:case 91:I+=hx(k);break;case 9:case 10:case 13:case 32:I+=xCe(v);break;case 92:I+=_Ce(px()-1,7);continue;case 47:switch(kc()){case 42:case 47:$k(ACe(OCe(Hs(),px()),t,n),u);break;default:I+="/"}break;case 123*E:l[d++]=vc(I)*C;case 125*E:case 59:case 0:switch(k){case 0:case 125:T=0;case 59+f:C==-1&&(I=br(I,/\f/g,"")),h>0&&vc(I)-g&&$k(h>32?D5(I+";",r,n,g-1):D5(br(I," ","")+";",r,n,g-2),u);break;case 59:I+=";";default:if($k(N=I5(I,t,n,d,f,a,l,_,A=[],P=[],g),i),k===123)if(f===0)mx(I,t,N,N,A,i,g,l,P);else switch(y===99&&Hi(I,3)===110?100:y){case 100:case 108:case 109:case 115:mx(e,N,N,r&&$k(I5(e,N,N,0,0,a,l,_,a,A=[],g),P),a,P,g,l,r?A:P);break;default:mx(I,N,N,N,[""],P,0,l,P)}}d=f=h=0,E=C=1,_=I="",g=o;break;case 58:g=1+vc(I),h=v;default:if(E<1){if(k==123)--E;else if(k==125&&E++==0&&kCe()==125)continue}switch(I+=eO(k),k*E){case 38:C=f>0?1:(I+="\f",-1);break;case 44:l[d++]=(vc(I)-1)*C,C=1;break;case 64:kc()===45&&(I+=hx(Hs())),y=kc(),f=g=vc(_=I+=RCe(px())),k++;break;case 45:v===45&&vc(I)==2&&(E=0)}}return i}function I5(e,t,n,r,a,i,o,l,u,d,f){for(var g=a-1,y=a===0?i:[""],h=bj(y),v=0,E=0,T=0;v0?y[C]+" "+k:br(k,/&\f/g,y[C])))&&(u[T++]=_);return nO(e,t,n,a===0?vj:l,u,d,f)}function ACe(e,t,n){return nO(e,t,n,Eee,eO(CCe()),CE(e,2,-2),0)}function D5(e,t,n,r){return nO(e,t,n,yj,CE(e,0,r),CE(e,r+1,-1),r)}function S0(e,t){for(var n="",r=bj(e),a=0;a6)switch(Hi(e,t+1)){case 109:if(Hi(e,t+4)!==45)break;case 102:return br(e,/(.+:)(.+)-([^]+)/,"$1"+yr+"$2-$3$1"+e_+(Hi(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~_3(e,"stretch")?Oee(br(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(Hi(e,t+1)!==115)break;case 6444:switch(Hi(e,vc(e)-3-(~_3(e,"!important")&&10))){case 107:return br(e,":",":"+yr)+e;case 101:return br(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+yr+(Hi(e,14)===45?"inline-":"")+"box$3$1"+yr+"$2$3$1"+Zi+"$2box$3")+e}break;case 5936:switch(Hi(e,t+11)){case 114:return yr+e+Zi+br(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return yr+e+Zi+br(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return yr+e+Zi+br(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return yr+e+Zi+e+e}return e}var UCe=function(t,n,r,a){if(t.length>-1&&!t.return)switch(t.type){case yj:t.return=Oee(t.value,t.length);break;case Tee:return S0([JS(t,{value:br(t.value,"@","@"+yr)})],a);case vj:if(t.length)return TCe(t.props,function(i){switch(ECe(i,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return S0([JS(t,{props:[br(i,/:(read-\w+)/,":"+e_+"$1")]})],a);case"::placeholder":return S0([JS(t,{props:[br(i,/:(plac\w+)/,":"+yr+"input-$1")]}),JS(t,{props:[br(i,/:(plac\w+)/,":"+e_+"$1")]}),JS(t,{props:[br(i,/:(plac\w+)/,Zi+"input-$1")]})],a)}return""})}},BCe=[UCe],WCe=function(t){var n=t.key;if(n==="css"){var r=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(r,function(E){var T=E.getAttribute("data-emotion");T.indexOf(" ")!==-1&&(document.head.appendChild(E),E.setAttribute("data-s",""))})}var a=t.stylisPlugins||BCe,i={},o,l=[];o=t.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+n+' "]'),function(E){for(var T=E.getAttribute("data-emotion").split(" "),C=1;C=4;++r,a-=4)n=e.charCodeAt(r)&255|(e.charCodeAt(++r)&255)<<8|(e.charCodeAt(++r)&255)<<16|(e.charCodeAt(++r)&255)<<24,n=(n&65535)*1540483477+((n>>>16)*59797<<16),n^=n>>>24,t=(n&65535)*1540483477+((n>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(a){case 3:t^=(e.charCodeAt(r+2)&255)<<16;case 2:t^=(e.charCodeAt(r+1)&255)<<8;case 1:t^=e.charCodeAt(r)&255,t=(t&65535)*1540483477+((t>>>16)*59797<<16)}return t^=t>>>13,t=(t&65535)*1540483477+((t>>>16)*59797<<16),((t^t>>>15)>>>0).toString(36)}var GCe={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1};function YCe(e){var t=Object.create(null);return function(n){return t[n]===void 0&&(t[n]=e(n)),t[n]}}var KCe=/[A-Z]|^ms/g,XCe=/_EMO_([^_]+?)_([^]*?)_EMO_/g,Pee=function(t){return t.charCodeAt(1)===45},L5=function(t){return t!=null&&typeof t!="boolean"},kA=YCe(function(e){return Pee(e)?e:e.replace(KCe,"-$&").toLowerCase()}),F5=function(t,n){switch(t){case"animation":case"animationName":if(typeof n=="string")return n.replace(XCe,function(r,a,i){return yc={name:a,styles:i,next:yc},a})}return GCe[t]!==1&&!Pee(t)&&typeof n=="number"&&n!==0?n+"px":n};function xE(e,t,n){if(n==null)return"";if(n.__emotion_styles!==void 0)return n;switch(typeof n){case"boolean":return"";case"object":{if(n.anim===1)return yc={name:n.name,styles:n.styles,next:yc},n.name;if(n.styles!==void 0){var r=n.next;if(r!==void 0)for(;r!==void 0;)yc={name:r.name,styles:r.styles,next:yc},r=r.next;var a=n.styles+";";return a}return QCe(e,t,n)}case"function":{if(e!==void 0){var i=yc,o=n(e);return yc=i,xE(e,t,o)}break}}return n}function QCe(e,t,n){var r="";if(Array.isArray(n))for(var a=0;a=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function dke(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}const fke=Math.min,pke=Math.max,t_=Math.round,Lk=Math.floor,n_=e=>({x:e,y:e});function hke(e){return{...e,top:e.y,left:e.x,right:e.x+e.width,bottom:e.y+e.height}}function Mee(e){return Dee(e)?(e.nodeName||"").toLowerCase():"#document"}function Yd(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function Iee(e){var t;return(t=(Dee(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function Dee(e){return e instanceof Node||e instanceof Yd(e).Node}function mke(e){return e instanceof Element||e instanceof Yd(e).Element}function Ej(e){return e instanceof HTMLElement||e instanceof Yd(e).HTMLElement}function U5(e){return typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof Yd(e).ShadowRoot}function $ee(e){const{overflow:t,overflowX:n,overflowY:r,display:a}=Tj(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!["inline","contents"].includes(a)}function gke(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function vke(e){return["html","body","#document"].includes(Mee(e))}function Tj(e){return Yd(e).getComputedStyle(e)}function yke(e){if(Mee(e)==="html")return e;const t=e.assignedSlot||e.parentNode||U5(e)&&e.host||Iee(e);return U5(t)?t.host:t}function Lee(e){const t=yke(e);return vke(t)?e.ownerDocument?e.ownerDocument.body:e.body:Ej(t)&&$ee(t)?t:Lee(t)}function r_(e,t,n){var r;t===void 0&&(t=[]),n===void 0&&(n=!0);const a=Lee(e),i=a===((r=e.ownerDocument)==null?void 0:r.body),o=Yd(a);return i?t.concat(o,o.visualViewport||[],$ee(a)?a:[],o.frameElement&&n?r_(o.frameElement):[]):t.concat(a,r_(a,[],n))}function bke(e){const t=Tj(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const a=Ej(e),i=a?e.offsetWidth:n,o=a?e.offsetHeight:r,l=t_(n)!==i||t_(r)!==o;return l&&(n=i,r=o),{width:n,height:r,$:l}}function Cj(e){return mke(e)?e:e.contextElement}function B5(e){const t=Cj(e);if(!Ej(t))return n_(1);const n=t.getBoundingClientRect(),{width:r,height:a,$:i}=bke(t);let o=(i?t_(n.width):n.width)/r,l=(i?t_(n.height):n.height)/a;return(!o||!Number.isFinite(o))&&(o=1),(!l||!Number.isFinite(l))&&(l=1),{x:o,y:l}}const wke=n_(0);function Ske(e){const t=Yd(e);return!gke()||!t.visualViewport?wke:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function Eke(e,t,n){return!1}function W5(e,t,n,r){t===void 0&&(t=!1);const a=e.getBoundingClientRect(),i=Cj(e);let o=n_(1);t&&(o=B5(e));const l=Eke()?Ske(i):n_(0);let u=(a.left+l.x)/o.x,d=(a.top+l.y)/o.y,f=a.width/o.x,g=a.height/o.y;if(i){const y=Yd(i),h=r;let v=y,E=v.frameElement;for(;E&&r&&h!==v;){const T=B5(E),C=E.getBoundingClientRect(),k=Tj(E),_=C.left+(E.clientLeft+parseFloat(k.paddingLeft))*T.x,A=C.top+(E.clientTop+parseFloat(k.paddingTop))*T.y;u*=T.x,d*=T.y,f*=T.x,g*=T.y,u+=_,d+=A,v=Yd(E),E=v.frameElement}}return hke({width:f,height:g,x:u,y:d})}function Tke(e,t){let n=null,r;const a=Iee(e);function i(){var l;clearTimeout(r),(l=n)==null||l.disconnect(),n=null}function o(l,u){l===void 0&&(l=!1),u===void 0&&(u=1),i();const{left:d,top:f,width:g,height:y}=e.getBoundingClientRect();if(l||t(),!g||!y)return;const h=Lk(f),v=Lk(a.clientWidth-(d+g)),E=Lk(a.clientHeight-(f+y)),T=Lk(d),k={rootMargin:-h+"px "+-v+"px "+-E+"px "+-T+"px",threshold:pke(0,fke(1,u))||1};let _=!0;function A(P){const N=P[0].intersectionRatio;if(N!==u){if(!_)return o();N?o(!1,N):r=setTimeout(()=>{o(!1,1e-7)},100)}_=!1}try{n=new IntersectionObserver(A,{...k,root:a.ownerDocument})}catch{n=new IntersectionObserver(A,k)}n.observe(e)}return o(!0),i}function Cke(e,t,n,r){r===void 0&&(r={});const{ancestorScroll:a=!0,ancestorResize:i=!0,elementResize:o=typeof ResizeObserver=="function",layoutShift:l=typeof IntersectionObserver=="function",animationFrame:u=!1}=r,d=Cj(e),f=a||i?[...d?r_(d):[],...r_(t)]:[];f.forEach(C=>{a&&C.addEventListener("scroll",n,{passive:!0}),i&&C.addEventListener("resize",n)});const g=d&&l?Tke(d,n):null;let y=-1,h=null;o&&(h=new ResizeObserver(C=>{let[k]=C;k&&k.target===d&&h&&(h.unobserve(t),cancelAnimationFrame(y),y=requestAnimationFrame(()=>{var _;(_=h)==null||_.observe(t)})),n()}),d&&!u&&h.observe(d),h.observe(t));let v,E=u?W5(e):null;u&&T();function T(){const C=W5(e);E&&(C.x!==E.x||C.y!==E.y||C.width!==E.width||C.height!==E.height)&&n(),E=C,v=requestAnimationFrame(T)}return n(),()=>{var C;f.forEach(k=>{a&&k.removeEventListener("scroll",n),i&&k.removeEventListener("resize",n)}),g==null||g(),(C=h)==null||C.disconnect(),h=null,u&&cancelAnimationFrame(v)}}var P3=R.useLayoutEffect,kke=["className","clearValue","cx","getStyles","getClassNames","getValue","hasValue","isMulti","isRtl","options","selectOption","selectProps","setValue","theme"],a_=function(){};function xke(e,t){return t?t[0]==="-"?e+t:e+"__"+t:e}function _ke(e,t){for(var n=arguments.length,r=new Array(n>2?n-2:0),a=2;a-1}function Rke(e){return rO(e)?window.innerHeight:e.clientHeight}function jee(e){return rO(e)?window.pageYOffset:e.scrollTop}function i_(e,t){if(rO(e)){window.scrollTo(0,t);return}e.scrollTop=t}function Pke(e){var t=getComputedStyle(e),n=t.position==="absolute",r=/(auto|scroll)/;if(t.position==="fixed")return document.documentElement;for(var a=e;a=a.parentElement;)if(t=getComputedStyle(a),!(n&&t.position==="static")&&r.test(t.overflow+t.overflowY+t.overflowX))return a;return document.documentElement}function Ake(e,t,n,r){return n*((e=e/r-1)*e*e+1)+t}function Fk(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:200,r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:a_,a=jee(e),i=t-a,o=10,l=0;function u(){l+=o;var d=Ake(l,a,i,n);i_(e,d),ln.bottom?i_(e,Math.min(t.offsetTop+t.clientHeight-e.offsetHeight+a,e.scrollHeight)):r.top-a1?n-1:0),a=1;a=v)return{placement:"bottom",maxHeight:t};if(j>=v&&!o)return i&&Fk(u,z,ue),{placement:"bottom",maxHeight:t};if(!o&&j>=r||o&&I>=r){i&&Fk(u,z,ue);var re=o?I-A:j-A;return{placement:"bottom",maxHeight:re}}if(a==="auto"||o){var me=t,ge=o?N:L;return ge>=r&&(me=Math.min(ge-A-l,t)),{placement:"top",maxHeight:me}}if(a==="bottom")return i&&i_(u,z),{placement:"bottom",maxHeight:t};break;case"top":if(N>=v)return{placement:"top",maxHeight:t};if(L>=v&&!o)return i&&Fk(u,Q,ue),{placement:"top",maxHeight:t};if(!o&&L>=r||o&&N>=r){var W=t;return(!o&&L>=r||o&&N>=r)&&(W=o?N-P:L-P),i&&Fk(u,Q,ue),{placement:"top",maxHeight:W}}return{placement:"bottom",maxHeight:t};default:throw new Error('Invalid placement provided "'.concat(a,'".'))}return d}function Wke(e){var t={bottom:"top",top:"bottom"};return e?t[e]:"bottom"}var Bee=function(t){return t==="auto"?"bottom":t},zke=function(t,n){var r,a=t.placement,i=t.theme,o=i.borderRadius,l=i.spacing,u=i.colors;return Jt((r={label:"menu"},wt(r,Wke(a),"100%"),wt(r,"position","absolute"),wt(r,"width","100%"),wt(r,"zIndex",1),r),n?{}:{backgroundColor:u.neutral0,borderRadius:o,boxShadow:"0 0 0 1px hsla(0, 0%, 0%, 0.1), 0 4px 11px hsla(0, 0%, 0%, 0.1)",marginBottom:l.menuGutter,marginTop:l.menuGutter})},Wee=R.createContext(null),qke=function(t){var n=t.children,r=t.minMenuHeight,a=t.maxMenuHeight,i=t.menuPlacement,o=t.menuPosition,l=t.menuShouldScrollIntoView,u=t.theme,d=R.useContext(Wee)||{},f=d.setPortalPlacement,g=R.useRef(null),y=R.useState(a),h=vi(y,2),v=h[0],E=h[1],T=R.useState(null),C=vi(T,2),k=C[0],_=C[1],A=u.spacing.controlHeight;return P3(function(){var P=g.current;if(P){var N=o==="fixed",I=l&&!N,L=Bke({maxHeight:a,menuEl:P,minHeight:r,placement:i,shouldScroll:I,isFixedPosition:N,controlHeight:A});E(L.maxHeight),_(L.placement),f==null||f(L.placement)}},[a,i,o,l,r,f,A]),n({ref:g,placerProps:Jt(Jt({},t),{},{placement:k||Bee(i),maxHeight:v})})},Hke=function(t){var n=t.children,r=t.innerRef,a=t.innerProps;return rn("div",vt({},xa(t,"menu",{menu:!0}),{ref:r},a),n)},Vke=Hke,Gke=function(t,n){var r=t.maxHeight,a=t.theme.spacing.baseUnit;return Jt({maxHeight:r,overflowY:"auto",position:"relative",WebkitOverflowScrolling:"touch"},n?{}:{paddingBottom:a,paddingTop:a})},Yke=function(t){var n=t.children,r=t.innerProps,a=t.innerRef,i=t.isMulti;return rn("div",vt({},xa(t,"menuList",{"menu-list":!0,"menu-list--is-multi":i}),{ref:a},r),n)},zee=function(t,n){var r=t.theme,a=r.spacing.baseUnit,i=r.colors;return Jt({textAlign:"center"},n?{}:{color:i.neutral40,padding:"".concat(a*2,"px ").concat(a*3,"px")})},Kke=zee,Xke=zee,Qke=function(t){var n=t.children,r=n===void 0?"No options":n,a=t.innerProps,i=Nu(t,jke);return rn("div",vt({},xa(Jt(Jt({},i),{},{children:r,innerProps:a}),"noOptionsMessage",{"menu-notice":!0,"menu-notice--no-options":!0}),a),r)},Jke=function(t){var n=t.children,r=n===void 0?"Loading...":n,a=t.innerProps,i=Nu(t,Uke);return rn("div",vt({},xa(Jt(Jt({},i),{},{children:r,innerProps:a}),"loadingMessage",{"menu-notice":!0,"menu-notice--loading":!0}),a),r)},Zke=function(t){var n=t.rect,r=t.offset,a=t.position;return{left:n.left,position:a,top:r,width:n.width,zIndex:1}},exe=function(t){var n=t.appendTo,r=t.children,a=t.controlElement,i=t.innerProps,o=t.menuPlacement,l=t.menuPosition,u=R.useRef(null),d=R.useRef(null),f=R.useState(Bee(o)),g=vi(f,2),y=g[0],h=g[1],v=R.useMemo(function(){return{setPortalPlacement:h}},[]),E=R.useState(null),T=vi(E,2),C=T[0],k=T[1],_=R.useCallback(function(){if(a){var I=Nke(a),L=l==="fixed"?0:window.pageYOffset,j=I[y]+L;(j!==(C==null?void 0:C.offset)||I.left!==(C==null?void 0:C.rect.left)||I.width!==(C==null?void 0:C.rect.width))&&k({offset:j,rect:I})}},[a,l,y,C==null?void 0:C.offset,C==null?void 0:C.rect.left,C==null?void 0:C.rect.width]);P3(function(){_()},[_]);var A=R.useCallback(function(){typeof d.current=="function"&&(d.current(),d.current=null),a&&u.current&&(d.current=Cke(a,u.current,_,{elementResize:"ResizeObserver"in window}))},[a,_]);P3(function(){A()},[A]);var P=R.useCallback(function(I){u.current=I,A()},[A]);if(!n&&l!=="fixed"||!C)return null;var N=rn("div",vt({ref:P},xa(Jt(Jt({},t),{},{offset:C.offset,position:l,rect:C.rect}),"menuPortal",{"menu-portal":!0}),i),r);return rn(Wee.Provider,{value:v},n?Cc.createPortal(N,n):N)},txe=function(t){var n=t.isDisabled,r=t.isRtl;return{label:"container",direction:r?"rtl":void 0,pointerEvents:n?"none":void 0,position:"relative"}},nxe=function(t){var n=t.children,r=t.innerProps,a=t.isDisabled,i=t.isRtl;return rn("div",vt({},xa(t,"container",{"--is-disabled":a,"--is-rtl":i}),r),n)},rxe=function(t,n){var r=t.theme.spacing,a=t.isMulti,i=t.hasValue,o=t.selectProps.controlShouldRenderValue;return Jt({alignItems:"center",display:a&&i&&o?"flex":"grid",flex:1,flexWrap:"wrap",WebkitOverflowScrolling:"touch",position:"relative",overflow:"hidden"},n?{}:{padding:"".concat(r.baseUnit/2,"px ").concat(r.baseUnit*2,"px")})},axe=function(t){var n=t.children,r=t.innerProps,a=t.isMulti,i=t.hasValue;return rn("div",vt({},xa(t,"valueContainer",{"value-container":!0,"value-container--is-multi":a,"value-container--has-value":i}),r),n)},ixe=function(){return{alignItems:"center",alignSelf:"stretch",display:"flex",flexShrink:0}},oxe=function(t){var n=t.children,r=t.innerProps;return rn("div",vt({},xa(t,"indicatorsContainer",{indicators:!0}),r),n)},V5,sxe=["size"],lxe=["innerProps","isRtl","size"],uxe={name:"8mmkcg",styles:"display:inline-block;fill:currentColor;line-height:1;stroke:currentColor;stroke-width:0"},qee=function(t){var n=t.size,r=Nu(t,sxe);return rn("svg",vt({height:n,width:n,viewBox:"0 0 20 20","aria-hidden":"true",focusable:"false",css:uxe},r))},kj=function(t){return rn(qee,vt({size:20},t),rn("path",{d:"M14.348 14.849c-0.469 0.469-1.229 0.469-1.697 0l-2.651-3.030-2.651 3.029c-0.469 0.469-1.229 0.469-1.697 0-0.469-0.469-0.469-1.229 0-1.697l2.758-3.15-2.759-3.152c-0.469-0.469-0.469-1.228 0-1.697s1.228-0.469 1.697 0l2.652 3.031 2.651-3.031c0.469-0.469 1.228-0.469 1.697 0s0.469 1.229 0 1.697l-2.758 3.152 2.758 3.15c0.469 0.469 0.469 1.229 0 1.698z"}))},Hee=function(t){return rn(qee,vt({size:20},t),rn("path",{d:"M4.516 7.548c0.436-0.446 1.043-0.481 1.576 0l3.908 3.747 3.908-3.747c0.533-0.481 1.141-0.446 1.574 0 0.436 0.445 0.408 1.197 0 1.615-0.406 0.418-4.695 4.502-4.695 4.502-0.217 0.223-0.502 0.335-0.787 0.335s-0.57-0.112-0.789-0.335c0 0-4.287-4.084-4.695-4.502s-0.436-1.17 0-1.615z"}))},Vee=function(t,n){var r=t.isFocused,a=t.theme,i=a.spacing.baseUnit,o=a.colors;return Jt({label:"indicatorContainer",display:"flex",transition:"color 150ms"},n?{}:{color:r?o.neutral60:o.neutral20,padding:i*2,":hover":{color:r?o.neutral80:o.neutral40}})},cxe=Vee,dxe=function(t){var n=t.children,r=t.innerProps;return rn("div",vt({},xa(t,"dropdownIndicator",{indicator:!0,"dropdown-indicator":!0}),r),n||rn(Hee,null))},fxe=Vee,pxe=function(t){var n=t.children,r=t.innerProps;return rn("div",vt({},xa(t,"clearIndicator",{indicator:!0,"clear-indicator":!0}),r),n||rn(kj,null))},hxe=function(t,n){var r=t.isDisabled,a=t.theme,i=a.spacing.baseUnit,o=a.colors;return Jt({label:"indicatorSeparator",alignSelf:"stretch",width:1},n?{}:{backgroundColor:r?o.neutral10:o.neutral20,marginBottom:i*2,marginTop:i*2})},mxe=function(t){var n=t.innerProps;return rn("span",vt({},n,xa(t,"indicatorSeparator",{"indicator-separator":!0})))},gxe=ske(V5||(V5=dke([` 0%, 80%, 100% { opacity: 0; } 40% { opacity: 1; } -`]))),Nke=function(t,n){var r=t.isFocused,a=t.size,i=t.theme,o=i.colors,l=i.spacing.baseUnit;return Jt({label:"loadingIndicator",display:"flex",transition:"color 150ms",alignSelf:"center",fontSize:a,lineHeight:1,marginRight:a,textAlign:"center",verticalAlign:"middle"},n?{}:{color:r?o.neutral60:o.neutral20,padding:l*2})},JP=function(t){var n=t.delay,r=t.offset;return rn("span",{css:VF({animation:"".concat(Ake," 1s ease-in-out ").concat(n,"ms infinite;"),backgroundColor:"currentColor",borderRadius:"1em",display:"inline-block",marginLeft:r?"1em":void 0,height:"1em",verticalAlign:"top",width:"1em"},"","")})},Mke=function(t){var n=t.innerProps,r=t.isRtl,a=t.size,i=a===void 0?4:a,o=Ru(t,Tke);return rn("div",vt({},Ca(Jt(Jt({},o),{},{innerProps:n,isRtl:r,size:i}),"loadingIndicator",{indicator:!0,"loading-indicator":!0}),n),rn(JP,{delay:0,offset:r}),rn(JP,{delay:160,offset:!0}),rn(JP,{delay:320,offset:!r}))},Ike=function(t,n){var r=t.isDisabled,a=t.isFocused,i=t.theme,o=i.colors,l=i.borderRadius,u=i.spacing;return Jt({label:"control",alignItems:"center",cursor:"default",display:"flex",flexWrap:"wrap",justifyContent:"space-between",minHeight:u.controlHeight,outline:"0 !important",position:"relative",transition:"all 100ms"},n?{}:{backgroundColor:r?o.neutral5:o.neutral0,borderColor:r?o.neutral10:a?o.primary:o.neutral20,borderRadius:l,borderStyle:"solid",borderWidth:1,boxShadow:a?"0 0 0 1px ".concat(o.primary):void 0,"&:hover":{borderColor:a?o.primary:o.neutral30}})},Dke=function(t){var n=t.children,r=t.isDisabled,a=t.isFocused,i=t.innerRef,o=t.innerProps,l=t.menuIsOpen;return rn("div",vt({ref:i},Ca(t,"control",{control:!0,"control--is-disabled":r,"control--is-focused":a,"control--menu-is-open":l}),o,{"aria-disabled":r||void 0}),n)},$ke=Dke,Lke=["data"],Fke=function(t,n){var r=t.theme.spacing;return n?{}:{paddingBottom:r.baseUnit*2,paddingTop:r.baseUnit*2}},jke=function(t){var n=t.children,r=t.cx,a=t.getStyles,i=t.getClassNames,o=t.Heading,l=t.headingProps,u=t.innerProps,d=t.label,f=t.theme,g=t.selectProps;return rn("div",vt({},Ca(t,"group",{group:!0}),u),rn(o,vt({},l,{selectProps:g,theme:f,getStyles:a,getClassNames:i,cx:r}),d),rn("div",null,n))},Uke=function(t,n){var r=t.theme,a=r.colors,i=r.spacing;return Jt({label:"group",cursor:"default",display:"block"},n?{}:{color:a.neutral40,fontSize:"75%",fontWeight:500,marginBottom:"0.25em",paddingLeft:i.baseUnit*3,paddingRight:i.baseUnit*3,textTransform:"uppercase"})},Bke=function(t){var n=lee(t);n.data;var r=Ru(n,Lke);return rn("div",vt({},Ca(t,"groupHeading",{"group-heading":!0}),r))},Wke=jke,zke=["innerRef","isDisabled","isHidden","inputClassName"],qke=function(t,n){var r=t.isDisabled,a=t.value,i=t.theme,o=i.spacing,l=i.colors;return Jt(Jt({visibility:r?"hidden":"visible",transform:a?"translateZ(0)":""},Hke),n?{}:{margin:o.baseUnit/2,paddingBottom:o.baseUnit/2,paddingTop:o.baseUnit/2,color:l.neutral80})},vee={gridArea:"1 / 2",font:"inherit",minWidth:"2px",border:0,margin:0,outline:0,padding:0},Hke={flex:"1 1 auto",display:"inline-grid",gridArea:"1 / 1 / 2 / 3",gridTemplateColumns:"0 min-content","&:after":Jt({content:'attr(data-value) " "',visibility:"hidden",whiteSpace:"pre"},vee)},Vke=function(t){return Jt({label:"input",color:"inherit",background:0,opacity:t?0:1,width:"100%"},vee)},Gke=function(t){var n=t.cx,r=t.value,a=lee(t),i=a.innerRef,o=a.isDisabled,l=a.isHidden,u=a.inputClassName,d=Ru(a,zke);return rn("div",vt({},Ca(t,"input",{"input-container":!0}),{"data-value":r||""}),rn("input",vt({className:n({input:!0},u),ref:i,style:Vke(l),disabled:o},d)))},Yke=Gke,Kke=function(t,n){var r=t.theme,a=r.spacing,i=r.borderRadius,o=r.colors;return Jt({label:"multiValue",display:"flex",minWidth:0},n?{}:{backgroundColor:o.neutral10,borderRadius:i/2,margin:a.baseUnit/2})},Xke=function(t,n){var r=t.theme,a=r.borderRadius,i=r.colors,o=t.cropWithEllipsis;return Jt({overflow:"hidden",textOverflow:o||o===void 0?"ellipsis":void 0,whiteSpace:"nowrap"},n?{}:{borderRadius:a/2,color:i.neutral80,fontSize:"85%",padding:3,paddingLeft:6})},Qke=function(t,n){var r=t.theme,a=r.spacing,i=r.borderRadius,o=r.colors,l=t.isFocused;return Jt({alignItems:"center",display:"flex"},n?{}:{borderRadius:i/2,backgroundColor:l?o.dangerLight:void 0,paddingLeft:a.baseUnit,paddingRight:a.baseUnit,":hover":{backgroundColor:o.dangerLight,color:o.danger}})},yee=function(t){var n=t.children,r=t.innerProps;return rn("div",r,n)},Jke=yee,Zke=yee;function exe(e){var t=e.children,n=e.innerProps;return rn("div",vt({role:"button"},n),t||rn(XF,{size:14}))}var txe=function(t){var n=t.children,r=t.components,a=t.data,i=t.innerProps,o=t.isDisabled,l=t.removeProps,u=t.selectProps,d=r.Container,f=r.Label,g=r.Remove;return rn(d,{data:a,innerProps:Jt(Jt({},Ca(t,"multiValue",{"multi-value":!0,"multi-value--is-disabled":o})),i),selectProps:u},rn(f,{data:a,innerProps:Jt({},Ca(t,"multiValueLabel",{"multi-value__label":!0})),selectProps:u},n),rn(g,{data:a,innerProps:Jt(Jt({},Ca(t,"multiValueRemove",{"multi-value__remove":!0})),{},{"aria-label":"Remove ".concat(n||"option")},l),selectProps:u}))},nxe=txe,rxe=function(t,n){var r=t.isDisabled,a=t.isFocused,i=t.isSelected,o=t.theme,l=o.spacing,u=o.colors;return Jt({label:"option",cursor:"default",display:"block",fontSize:"inherit",width:"100%",userSelect:"none",WebkitTapHighlightColor:"rgba(0, 0, 0, 0)"},n?{}:{backgroundColor:i?u.primary:a?u.primary25:"transparent",color:r?u.neutral20:i?u.neutral0:"inherit",padding:"".concat(l.baseUnit*2,"px ").concat(l.baseUnit*3,"px"),":active":{backgroundColor:r?void 0:i?u.primary:u.primary50}})},axe=function(t){var n=t.children,r=t.isDisabled,a=t.isFocused,i=t.isSelected,o=t.innerRef,l=t.innerProps;return rn("div",vt({},Ca(t,"option",{option:!0,"option--is-disabled":r,"option--is-focused":a,"option--is-selected":i}),{ref:o,"aria-disabled":r},l),n)},ixe=axe,oxe=function(t,n){var r=t.theme,a=r.spacing,i=r.colors;return Jt({label:"placeholder",gridArea:"1 / 1 / 2 / 3"},n?{}:{color:i.neutral50,marginLeft:a.baseUnit/2,marginRight:a.baseUnit/2})},sxe=function(t){var n=t.children,r=t.innerProps;return rn("div",vt({},Ca(t,"placeholder",{placeholder:!0}),r),n)},lxe=sxe,uxe=function(t,n){var r=t.isDisabled,a=t.theme,i=a.spacing,o=a.colors;return Jt({label:"singleValue",gridArea:"1 / 1 / 2 / 3",maxWidth:"100%",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},n?{}:{color:r?o.neutral40:o.neutral80,marginLeft:i.baseUnit/2,marginRight:i.baseUnit/2})},cxe=function(t){var n=t.children,r=t.isDisabled,a=t.innerProps;return rn("div",vt({},Ca(t,"singleValue",{"single-value":!0,"single-value--is-disabled":r}),a),n)},dxe=cxe,fxe={ClearIndicator:Oke,Control:$ke,DropdownIndicator:xke,DownChevron:mee,CrossIcon:XF,Group:Wke,GroupHeading:Bke,IndicatorsContainer:Ske,IndicatorSeparator:Pke,Input:Yke,LoadingIndicator:Mke,Menu:ske,MenuList:uke,MenuPortal:mke,LoadingMessage:pke,NoOptionsMessage:fke,MultiValue:nxe,MultiValueContainer:Jke,MultiValueLabel:Zke,MultiValueRemove:exe,Option:ixe,Placeholder:lxe,SelectContainer:vke,SingleValue:dxe,ValueContainer:bke},pxe=function(t){return Jt(Jt({},fxe),t.components)},b5=Number.isNaN||function(t){return typeof t=="number"&&t!==t};function hxe(e,t){return!!(e===t||b5(e)&&b5(t))}function mxe(e,t){if(e.length!==t.length)return!1;for(var n=0;n1?"s":""," ").concat(i.join(","),", selected.");case"select-option":return o?"option ".concat(a," is disabled. Select another option."):"option ".concat(a,", selected.");default:return""}},onFocus:function(t){var n=t.context,r=t.focused,a=t.options,i=t.label,o=i===void 0?"":i,l=t.selectValue,u=t.isDisabled,d=t.isSelected,f=t.isAppleDevice,g=function(E,T){return E&&E.length?"".concat(E.indexOf(T)+1," of ").concat(E.length):""};if(n==="value"&&l)return"value ".concat(o," focused, ").concat(g(l,r),".");if(n==="menu"&&f){var y=u?" disabled":"",h="".concat(d?" selected":"").concat(y);return"".concat(o).concat(h,", ").concat(g(a,r),".")}return""},onFilter:function(t){var n=t.inputValue,r=t.resultsMessage;return"".concat(r).concat(n?" for search term "+n:"",".")}},wxe=function(t){var n=t.ariaSelection,r=t.focusedOption,a=t.focusedValue,i=t.focusableOptions,o=t.isFocused,l=t.selectValue,u=t.selectProps,d=t.id,f=t.isAppleDevice,g=u.ariaLiveMessages,y=u.getOptionLabel,h=u.inputValue,v=u.isMulti,E=u.isOptionDisabled,T=u.isSearchable,C=u.menuIsOpen,k=u.options,_=u.screenReaderStatus,A=u.tabSelectsValue,P=u.isLoading,N=u["aria-label"],I=u["aria-live"],L=R.useMemo(function(){return Jt(Jt({},bxe),g||{})},[g]),j=R.useMemo(function(){var me="";if(n&&L.onChange){var W=n.option,G=n.options,q=n.removedValue,ce=n.removedValues,H=n.value,Y=function(fe){return Array.isArray(fe)?null:fe},ie=q||W||Y(H),J=ie?y(ie):"",ee=G||ce||void 0,Z=ee?ee.map(y):[],ue=Jt({isDisabled:ie&&E(ie,l),label:J,labels:Z},n);me=L.onChange(ue)}return me},[n,L,E,l,y]),z=R.useMemo(function(){var me="",W=r||a,G=!!(r&&l&&l.includes(r));if(W&&L.onFocus){var q={focused:W,label:y(W),isDisabled:E(W,l),isSelected:G,options:i,context:W===r?"menu":"value",selectValue:l,isAppleDevice:f};me=L.onFocus(q)}return me},[r,a,y,E,L,i,l,f]),Q=R.useMemo(function(){var me="";if(C&&k.length&&!P&&L.onFilter){var W=_({count:i.length});me=L.onFilter({inputValue:h,resultsMessage:W})}return me},[i,h,C,L,k,_,P]),le=(n==null?void 0:n.action)==="initial-input-focus",re=R.useMemo(function(){var me="";if(L.guidance){var W=a?"value":C?"menu":"input";me=L.guidance({"aria-label":N,context:W,isDisabled:r&&E(r,l),isMulti:v,isSearchable:T,tabSelectsValue:A,isInitialFocus:le})}return me},[N,r,a,v,E,T,C,L,l,A,le]),ge=rn(R.Fragment,null,rn("span",{id:"aria-selection"},j),rn("span",{id:"aria-focused"},z),rn("span",{id:"aria-results"},Q),rn("span",{id:"aria-guidance"},re));return rn(R.Fragment,null,rn(w5,{id:d},le&&ge),rn(w5,{"aria-live":I,"aria-atomic":"false","aria-relevant":"additions text",role:"log"},o&&!le&&ge))},Sxe=wxe,n3=[{base:"A",letters:"AⒶAÀÁÂẦẤẪẨÃĀĂẰẮẴẲȦǠÄǞẢÅǺǍȀȂẠẬẶḀĄȺⱯ"},{base:"AA",letters:"Ꜳ"},{base:"AE",letters:"ÆǼǢ"},{base:"AO",letters:"Ꜵ"},{base:"AU",letters:"Ꜷ"},{base:"AV",letters:"ꜸꜺ"},{base:"AY",letters:"Ꜽ"},{base:"B",letters:"BⒷBḂḄḆɃƂƁ"},{base:"C",letters:"CⒸCĆĈĊČÇḈƇȻꜾ"},{base:"D",letters:"DⒹDḊĎḌḐḒḎĐƋƊƉꝹ"},{base:"DZ",letters:"DZDŽ"},{base:"Dz",letters:"DzDž"},{base:"E",letters:"EⒺEÈÉÊỀẾỄỂẼĒḔḖĔĖËẺĚȄȆẸỆȨḜĘḘḚƐƎ"},{base:"F",letters:"FⒻFḞƑꝻ"},{base:"G",letters:"GⒼGǴĜḠĞĠǦĢǤƓꞠꝽꝾ"},{base:"H",letters:"HⒽHĤḢḦȞḤḨḪĦⱧⱵꞍ"},{base:"I",letters:"IⒾIÌÍÎĨĪĬİÏḮỈǏȈȊỊĮḬƗ"},{base:"J",letters:"JⒿJĴɈ"},{base:"K",letters:"KⓀKḰǨḲĶḴƘⱩꝀꝂꝄꞢ"},{base:"L",letters:"LⓁLĿĹĽḶḸĻḼḺŁȽⱢⱠꝈꝆꞀ"},{base:"LJ",letters:"LJ"},{base:"Lj",letters:"Lj"},{base:"M",letters:"MⓂMḾṀṂⱮƜ"},{base:"N",letters:"NⓃNǸŃÑṄŇṆŅṊṈȠƝꞐꞤ"},{base:"NJ",letters:"NJ"},{base:"Nj",letters:"Nj"},{base:"O",letters:"OⓄOÒÓÔỒỐỖỔÕṌȬṎŌṐṒŎȮȰÖȪỎŐǑȌȎƠỜỚỠỞỢỌỘǪǬØǾƆƟꝊꝌ"},{base:"OI",letters:"Ƣ"},{base:"OO",letters:"Ꝏ"},{base:"OU",letters:"Ȣ"},{base:"P",letters:"PⓅPṔṖƤⱣꝐꝒꝔ"},{base:"Q",letters:"QⓆQꝖꝘɊ"},{base:"R",letters:"RⓇRŔṘŘȐȒṚṜŖṞɌⱤꝚꞦꞂ"},{base:"S",letters:"SⓈSẞŚṤŜṠŠṦṢṨȘŞⱾꞨꞄ"},{base:"T",letters:"TⓉTṪŤṬȚŢṰṮŦƬƮȾꞆ"},{base:"TZ",letters:"Ꜩ"},{base:"U",letters:"UⓊUÙÚÛŨṸŪṺŬÜǛǗǕǙỦŮŰǓȔȖƯỪỨỮỬỰỤṲŲṶṴɄ"},{base:"V",letters:"VⓋVṼṾƲꝞɅ"},{base:"VY",letters:"Ꝡ"},{base:"W",letters:"WⓌWẀẂŴẆẄẈⱲ"},{base:"X",letters:"XⓍXẊẌ"},{base:"Y",letters:"YⓎYỲÝŶỸȲẎŸỶỴƳɎỾ"},{base:"Z",letters:"ZⓏZŹẐŻŽẒẔƵȤⱿⱫꝢ"},{base:"a",letters:"aⓐaẚàáâầấẫẩãāăằắẵẳȧǡäǟảåǻǎȁȃạậặḁąⱥɐ"},{base:"aa",letters:"ꜳ"},{base:"ae",letters:"æǽǣ"},{base:"ao",letters:"ꜵ"},{base:"au",letters:"ꜷ"},{base:"av",letters:"ꜹꜻ"},{base:"ay",letters:"ꜽ"},{base:"b",letters:"bⓑbḃḅḇƀƃɓ"},{base:"c",letters:"cⓒcćĉċčçḉƈȼꜿↄ"},{base:"d",letters:"dⓓdḋďḍḑḓḏđƌɖɗꝺ"},{base:"dz",letters:"dzdž"},{base:"e",letters:"eⓔeèéêềếễểẽēḕḗĕėëẻěȅȇẹệȩḝęḙḛɇɛǝ"},{base:"f",letters:"fⓕfḟƒꝼ"},{base:"g",letters:"gⓖgǵĝḡğġǧģǥɠꞡᵹꝿ"},{base:"h",letters:"hⓗhĥḣḧȟḥḩḫẖħⱨⱶɥ"},{base:"hv",letters:"ƕ"},{base:"i",letters:"iⓘiìíîĩīĭïḯỉǐȉȋịįḭɨı"},{base:"j",letters:"jⓙjĵǰɉ"},{base:"k",letters:"kⓚkḱǩḳķḵƙⱪꝁꝃꝅꞣ"},{base:"l",letters:"lⓛlŀĺľḷḹļḽḻſłƚɫⱡꝉꞁꝇ"},{base:"lj",letters:"lj"},{base:"m",letters:"mⓜmḿṁṃɱɯ"},{base:"n",letters:"nⓝnǹńñṅňṇņṋṉƞɲʼnꞑꞥ"},{base:"nj",letters:"nj"},{base:"o",letters:"oⓞoòóôồốỗổõṍȭṏōṑṓŏȯȱöȫỏőǒȍȏơờớỡởợọộǫǭøǿɔꝋꝍɵ"},{base:"oi",letters:"ƣ"},{base:"ou",letters:"ȣ"},{base:"oo",letters:"ꝏ"},{base:"p",letters:"pⓟpṕṗƥᵽꝑꝓꝕ"},{base:"q",letters:"qⓠqɋꝗꝙ"},{base:"r",letters:"rⓡrŕṙřȑȓṛṝŗṟɍɽꝛꞧꞃ"},{base:"s",letters:"sⓢsßśṥŝṡšṧṣṩșşȿꞩꞅẛ"},{base:"t",letters:"tⓣtṫẗťṭțţṱṯŧƭʈⱦꞇ"},{base:"tz",letters:"ꜩ"},{base:"u",letters:"uⓤuùúûũṹūṻŭüǜǘǖǚủůűǔȕȗưừứữửựụṳųṷṵʉ"},{base:"v",letters:"vⓥvṽṿʋꝟʌ"},{base:"vy",letters:"ꝡ"},{base:"w",letters:"wⓦwẁẃŵẇẅẘẉⱳ"},{base:"x",letters:"xⓧxẋẍ"},{base:"y",letters:"yⓨyỳýŷỹȳẏÿỷẙỵƴɏỿ"},{base:"z",letters:"zⓩzźẑżžẓẕƶȥɀⱬꝣ"}],Exe=new RegExp("["+n3.map(function(e){return e.letters}).join("")+"]","g"),bee={};for(var ZP=0;ZP-1}},xxe=["innerRef"];function _xe(e){var t=e.innerRef,n=Ru(e,xxe),r=ZCe(n,"onExited","in","enter","exit","appear");return rn("input",vt({ref:t},r,{css:VF({label:"dummyInput",background:0,border:0,caretColor:"transparent",fontSize:"inherit",gridArea:"1 / 1 / 2 / 3",outline:0,padding:0,width:1,color:"transparent",left:-100,opacity:0,position:"relative",transform:"scale(.01)"},"","")}))}var Oxe=function(t){t.cancelable&&t.preventDefault(),t.stopPropagation()};function Rxe(e){var t=e.isEnabled,n=e.onBottomArrive,r=e.onBottomLeave,a=e.onTopArrive,i=e.onTopLeave,o=R.useRef(!1),l=R.useRef(!1),u=R.useRef(0),d=R.useRef(null),f=R.useCallback(function(T,C){if(d.current!==null){var k=d.current,_=k.scrollTop,A=k.scrollHeight,P=k.clientHeight,N=d.current,I=C>0,L=A-P-_,j=!1;L>C&&o.current&&(r&&r(T),o.current=!1),I&&l.current&&(i&&i(T),l.current=!1),I&&C>L?(n&&!o.current&&n(T),N.scrollTop=A,j=!0,o.current=!0):!I&&-C>_&&(a&&!l.current&&a(T),N.scrollTop=0,j=!0,l.current=!0),j&&Oxe(T)}},[n,r,a,i]),g=R.useCallback(function(T){f(T,T.deltaY)},[f]),y=R.useCallback(function(T){u.current=T.changedTouches[0].clientY},[]),h=R.useCallback(function(T){var C=u.current-T.changedTouches[0].clientY;f(T,C)},[f]),v=R.useCallback(function(T){if(T){var C=XCe?{passive:!1}:!1;T.addEventListener("wheel",g,C),T.addEventListener("touchstart",y,C),T.addEventListener("touchmove",h,C)}},[h,y,g]),E=R.useCallback(function(T){T&&(T.removeEventListener("wheel",g,!1),T.removeEventListener("touchstart",y,!1),T.removeEventListener("touchmove",h,!1))},[h,y,g]);return R.useEffect(function(){if(t){var T=d.current;return v(T),function(){E(T)}}},[t,v,E]),function(T){d.current=T}}var E5=["boxSizing","height","overflow","paddingRight","position"],T5={boxSizing:"border-box",overflow:"hidden",position:"relative",height:"100%"};function C5(e){e.cancelable&&e.preventDefault()}function k5(e){e.stopPropagation()}function x5(){var e=this.scrollTop,t=this.scrollHeight,n=e+this.offsetHeight;e===0?this.scrollTop=1:n===t&&(this.scrollTop=e-1)}function _5(){return"ontouchstart"in window||navigator.maxTouchPoints}var O5=!!(typeof window<"u"&&window.document&&window.document.createElement),P1=0,wb={capture:!1,passive:!1};function Pxe(e){var t=e.isEnabled,n=e.accountForScrollbars,r=n===void 0?!0:n,a=R.useRef({}),i=R.useRef(null),o=R.useCallback(function(u){if(O5){var d=document.body,f=d&&d.style;if(r&&E5.forEach(function(v){var E=f&&f[v];a.current[v]=E}),r&&P1<1){var g=parseInt(a.current.paddingRight,10)||0,y=document.body?document.body.clientWidth:0,h=window.innerWidth-y+g||0;Object.keys(T5).forEach(function(v){var E=T5[v];f&&(f[v]=E)}),f&&(f.paddingRight="".concat(h,"px"))}d&&_5()&&(d.addEventListener("touchmove",C5,wb),u&&(u.addEventListener("touchstart",x5,wb),u.addEventListener("touchmove",k5,wb))),P1+=1}},[r]),l=R.useCallback(function(u){if(O5){var d=document.body,f=d&&d.style;P1=Math.max(P1-1,0),r&&P1<1&&E5.forEach(function(g){var y=a.current[g];f&&(f[g]=y)}),d&&_5()&&(d.removeEventListener("touchmove",C5,wb),u&&(u.removeEventListener("touchstart",x5,wb),u.removeEventListener("touchmove",k5,wb)))}},[r]);return R.useEffect(function(){if(t){var u=i.current;return o(u),function(){l(u)}}},[t,o,l]),function(u){i.current=u}}var Axe=function(t){var n=t.target;return n.ownerDocument.activeElement&&n.ownerDocument.activeElement.blur()},Nxe={name:"1kfdb0e",styles:"position:fixed;left:0;bottom:0;right:0;top:0"};function Mxe(e){var t=e.children,n=e.lockEnabled,r=e.captureEnabled,a=r===void 0?!0:r,i=e.onBottomArrive,o=e.onBottomLeave,l=e.onTopArrive,u=e.onTopLeave,d=Rxe({isEnabled:a,onBottomArrive:i,onBottomLeave:o,onTopArrive:l,onTopLeave:u}),f=Pxe({isEnabled:n}),g=function(h){d(h),f(h)};return rn(R.Fragment,null,n&&rn("div",{onClick:Axe,css:Nxe}),t(g))}var Ixe={name:"1a0ro4n-requiredInput",styles:"label:requiredInput;opacity:0;pointer-events:none;position:absolute;bottom:0;left:0;right:0;width:100%"},Dxe=function(t){var n=t.name,r=t.onFocus;return rn("input",{required:!0,name:n,tabIndex:-1,"aria-hidden":"true",onFocus:r,css:Ixe,value:"",onChange:function(){}})},$xe=Dxe;function QF(e){var t;return typeof window<"u"&&window.navigator!=null?e.test(((t=window.navigator.userAgentData)===null||t===void 0?void 0:t.platform)||window.navigator.platform):!1}function Lxe(){return QF(/^iPhone/i)}function See(){return QF(/^Mac/i)}function Fxe(){return QF(/^iPad/i)||See()&&navigator.maxTouchPoints>1}function jxe(){return Lxe()||Fxe()}function Uxe(){return See()||jxe()}var Bxe=function(t){return t.label},Wxe=function(t){return t.label},zxe=function(t){return t.value},qxe=function(t){return!!t.isDisabled},Hxe={clearIndicator:_ke,container:gke,control:Ike,dropdownIndicator:kke,group:Fke,groupHeading:Uke,indicatorsContainer:wke,indicatorSeparator:Rke,input:qke,loadingIndicator:Nke,loadingMessage:dke,menu:ake,menuList:lke,menuPortal:hke,multiValue:Kke,multiValueLabel:Xke,multiValueRemove:Qke,noOptionsMessage:cke,option:rxe,placeholder:oxe,singleValue:uxe,valueContainer:yke},Vxe={primary:"#2684FF",primary75:"#4C9AFF",primary50:"#B2D4FF",primary25:"#DEEBFF",danger:"#DE350B",dangerLight:"#FFBDAD",neutral0:"hsl(0, 0%, 100%)",neutral5:"hsl(0, 0%, 95%)",neutral10:"hsl(0, 0%, 90%)",neutral20:"hsl(0, 0%, 80%)",neutral30:"hsl(0, 0%, 70%)",neutral40:"hsl(0, 0%, 60%)",neutral50:"hsl(0, 0%, 50%)",neutral60:"hsl(0, 0%, 40%)",neutral70:"hsl(0, 0%, 30%)",neutral80:"hsl(0, 0%, 20%)",neutral90:"hsl(0, 0%, 10%)"},Gxe=4,Eee=4,Yxe=38,Kxe=Eee*2,Xxe={baseUnit:Eee,controlHeight:Yxe,menuGutter:Kxe},nA={borderRadius:Gxe,colors:Vxe,spacing:Xxe},Qxe={"aria-live":"polite",backspaceRemovesValue:!0,blurInputOnSelect:v5(),captureMenuScroll:!v5(),classNames:{},closeMenuOnSelect:!0,closeMenuOnScroll:!1,components:{},controlShouldRenderValue:!0,escapeClearsValue:!1,filterOption:kxe(),formatGroupLabel:Bxe,getOptionLabel:Wxe,getOptionValue:zxe,isDisabled:!1,isLoading:!1,isMulti:!1,isRtl:!1,isSearchable:!0,isOptionDisabled:qxe,loadingMessage:function(){return"Loading..."},maxMenuHeight:300,minMenuHeight:140,menuIsOpen:!1,menuPlacement:"bottom",menuPosition:"absolute",menuShouldBlockScroll:!1,menuShouldScrollIntoView:!YCe(),noOptionsMessage:function(){return"No options"},openMenuOnFocus:!1,openMenuOnClick:!0,options:[],pageSize:5,placeholder:"Select...",screenReaderStatus:function(t){var n=t.count;return"".concat(n," result").concat(n!==1?"s":""," available")},styles:{},tabIndex:0,tabSelectsValue:!0,unstyled:!1};function R5(e,t,n,r){var a=kee(e,t,n),i=xee(e,t,n),o=Cee(e,t),l=Dx(e,t);return{type:"option",data:t,isDisabled:a,isSelected:i,label:o,value:l,index:r}}function Hk(e,t){return e.options.map(function(n,r){if("options"in n){var a=n.options.map(function(o,l){return R5(e,o,t,l)}).filter(function(o){return A5(e,o)});return a.length>0?{type:"group",data:n,options:a,index:r}:void 0}var i=R5(e,n,t,r);return A5(e,i)?i:void 0}).filter(QCe)}function Tee(e){return e.reduce(function(t,n){return n.type==="group"?t.push.apply(t,c0(n.options.map(function(r){return r.data}))):t.push(n.data),t},[])}function P5(e,t){return e.reduce(function(n,r){return r.type==="group"?n.push.apply(n,c0(r.options.map(function(a){return{data:a.data,id:"".concat(t,"-").concat(r.index,"-").concat(a.index)}}))):n.push({data:r.data,id:"".concat(t,"-").concat(r.index)}),n},[])}function Jxe(e,t){return Tee(Hk(e,t))}function A5(e,t){var n=e.inputValue,r=n===void 0?"":n,a=t.data,i=t.isSelected,o=t.label,l=t.value;return(!Oee(e)||!i)&&_ee(e,{label:o,value:l,data:a},r)}function Zxe(e,t){var n=e.focusedValue,r=e.selectValue,a=r.indexOf(n);if(a>-1){var i=t.indexOf(n);if(i>-1)return n;if(a-1?n:t[0]}var rA=function(t,n){var r,a=(r=t.find(function(i){return i.data===n}))===null||r===void 0?void 0:r.id;return a||null},Cee=function(t,n){return t.getOptionLabel(n)},Dx=function(t,n){return t.getOptionValue(n)};function kee(e,t,n){return typeof e.isOptionDisabled=="function"?e.isOptionDisabled(t,n):!1}function xee(e,t,n){if(n.indexOf(t)>-1)return!0;if(typeof e.isOptionSelected=="function")return e.isOptionSelected(t,n);var r=Dx(e,t);return n.some(function(a){return Dx(e,a)===r})}function _ee(e,t,n){return e.filterOption?e.filterOption(t,n):!0}var Oee=function(t){var n=t.hideSelectedOptions,r=t.isMulti;return n===void 0?r:n},t_e=1,Ree=(function(e){tr(n,e);var t=nr(n);function n(r){var a;if(Xn(this,n),a=t.call(this,r),a.state={ariaSelection:null,focusedOption:null,focusedOptionId:null,focusableOptionsWithIds:[],focusedValue:null,inputIsHidden:!1,isFocused:!1,selectValue:[],clearFocusValueOnUpdate:!1,prevWasFocused:!1,inputIsHiddenAfterUpdate:void 0,prevProps:void 0,instancePrefix:""},a.blockOptionHover=!1,a.isComposing=!1,a.commonProps=void 0,a.initialTouchX=0,a.initialTouchY=0,a.openAfterFocus=!1,a.scrollToFocusedOptionOnUpdate=!1,a.userIsDragging=void 0,a.isAppleDevice=Uxe(),a.controlRef=null,a.getControlRef=function(u){a.controlRef=u},a.focusedOptionRef=null,a.getFocusedOptionRef=function(u){a.focusedOptionRef=u},a.menuListRef=null,a.getMenuListRef=function(u){a.menuListRef=u},a.inputRef=null,a.getInputRef=function(u){a.inputRef=u},a.focus=a.focusInput,a.blur=a.blurInput,a.onChange=function(u,d){var f=a.props,g=f.onChange,y=f.name;d.name=y,a.ariaOnChange(u,d),g(u,d)},a.setValue=function(u,d,f){var g=a.props,y=g.closeMenuOnSelect,h=g.isMulti,v=g.inputValue;a.onInputChange("",{action:"set-value",prevInputValue:v}),y&&(a.setState({inputIsHiddenAfterUpdate:!h}),a.onMenuClose()),a.setState({clearFocusValueOnUpdate:!0}),a.onChange(u,{action:d,option:f})},a.selectOption=function(u){var d=a.props,f=d.blurInputOnSelect,g=d.isMulti,y=d.name,h=a.state.selectValue,v=g&&a.isOptionSelected(u,h),E=a.isOptionDisabled(u,h);if(v){var T=a.getOptionValue(u);a.setValue(h.filter(function(C){return a.getOptionValue(C)!==T}),"deselect-option",u)}else if(!E)g?a.setValue([].concat(c0(h),[u]),"select-option",u):a.setValue(u,"select-option");else{a.ariaOnChange(u,{action:"select-option",option:u,name:y});return}f&&a.blurInput()},a.removeValue=function(u){var d=a.props.isMulti,f=a.state.selectValue,g=a.getOptionValue(u),y=f.filter(function(v){return a.getOptionValue(v)!==g}),h=dk(d,y,y[0]||null);a.onChange(h,{action:"remove-value",removedValue:u}),a.focusInput()},a.clearValue=function(){var u=a.state.selectValue;a.onChange(dk(a.props.isMulti,[],null),{action:"clear",removedValues:u})},a.popValue=function(){var u=a.props.isMulti,d=a.state.selectValue,f=d[d.length-1],g=d.slice(0,d.length-1),y=dk(u,g,g[0]||null);f&&a.onChange(y,{action:"pop-value",removedValue:f})},a.getFocusedOptionId=function(u){return rA(a.state.focusableOptionsWithIds,u)},a.getFocusableOptionsWithIds=function(){return P5(Hk(a.props,a.state.selectValue),a.getElementId("option"))},a.getValue=function(){return a.state.selectValue},a.cx=function(){for(var u=arguments.length,d=new Array(u),f=0;fh||y>h}},a.onTouchEnd=function(u){a.userIsDragging||(a.controlRef&&!a.controlRef.contains(u.target)&&a.menuListRef&&!a.menuListRef.contains(u.target)&&a.blurInput(),a.initialTouchX=0,a.initialTouchY=0)},a.onControlTouchEnd=function(u){a.userIsDragging||a.onControlMouseDown(u)},a.onClearIndicatorTouchEnd=function(u){a.userIsDragging||a.onClearIndicatorMouseDown(u)},a.onDropdownIndicatorTouchEnd=function(u){a.userIsDragging||a.onDropdownIndicatorMouseDown(u)},a.handleInputChange=function(u){var d=a.props.inputValue,f=u.currentTarget.value;a.setState({inputIsHiddenAfterUpdate:!1}),a.onInputChange(f,{action:"input-change",prevInputValue:d}),a.props.menuIsOpen||a.onMenuOpen()},a.onInputFocus=function(u){a.props.onFocus&&a.props.onFocus(u),a.setState({inputIsHiddenAfterUpdate:!1,isFocused:!0}),(a.openAfterFocus||a.props.openMenuOnFocus)&&a.openMenu("first"),a.openAfterFocus=!1},a.onInputBlur=function(u){var d=a.props.inputValue;if(a.menuListRef&&a.menuListRef.contains(document.activeElement)){a.inputRef.focus();return}a.props.onBlur&&a.props.onBlur(u),a.onInputChange("",{action:"input-blur",prevInputValue:d}),a.onMenuClose(),a.setState({focusedValue:null,isFocused:!1})},a.onOptionHover=function(u){if(!(a.blockOptionHover||a.state.focusedOption===u)){var d=a.getFocusableOptions(),f=d.indexOf(u);a.setState({focusedOption:u,focusedOptionId:f>-1?a.getFocusedOptionId(u):null})}},a.shouldHideSelectedOptions=function(){return Oee(a.props)},a.onValueInputFocus=function(u){u.preventDefault(),u.stopPropagation(),a.focus()},a.onKeyDown=function(u){var d=a.props,f=d.isMulti,g=d.backspaceRemovesValue,y=d.escapeClearsValue,h=d.inputValue,v=d.isClearable,E=d.isDisabled,T=d.menuIsOpen,C=d.onKeyDown,k=d.tabSelectsValue,_=d.openMenuOnFocus,A=a.state,P=A.focusedOption,N=A.focusedValue,I=A.selectValue;if(!E&&!(typeof C=="function"&&(C(u),u.defaultPrevented))){switch(a.blockOptionHover=!0,u.key){case"ArrowLeft":if(!f||h)return;a.focusValue("previous");break;case"ArrowRight":if(!f||h)return;a.focusValue("next");break;case"Delete":case"Backspace":if(h)return;if(N)a.removeValue(N);else{if(!g)return;f?a.popValue():v&&a.clearValue()}break;case"Tab":if(a.isComposing||u.shiftKey||!T||!k||!P||_&&a.isOptionSelected(P,I))return;a.selectOption(P);break;case"Enter":if(u.keyCode===229)break;if(T){if(!P||a.isComposing)return;a.selectOption(P);break}return;case"Escape":T?(a.setState({inputIsHiddenAfterUpdate:!1}),a.onInputChange("",{action:"menu-close",prevInputValue:h}),a.onMenuClose()):v&&y&&a.clearValue();break;case" ":if(h)return;if(!T){a.openMenu("first");break}if(!P)return;a.selectOption(P);break;case"ArrowUp":T?a.focusOption("up"):a.openMenu("last");break;case"ArrowDown":T?a.focusOption("down"):a.openMenu("first");break;case"PageUp":if(!T)return;a.focusOption("pageup");break;case"PageDown":if(!T)return;a.focusOption("pagedown");break;case"Home":if(!T)return;a.focusOption("first");break;case"End":if(!T)return;a.focusOption("last");break;default:return}u.preventDefault()}},a.state.instancePrefix="react-select-"+(a.props.instanceId||++t_e),a.state.selectValue=m5(r.value),r.menuIsOpen&&a.state.selectValue.length){var i=a.getFocusableOptionsWithIds(),o=a.buildFocusableOptions(),l=o.indexOf(a.state.selectValue[0]);a.state.focusableOptionsWithIds=i,a.state.focusedOption=o[l],a.state.focusedOptionId=rA(i,o[l])}return a}return Qn(n,[{key:"componentDidMount",value:function(){this.startListeningComposition(),this.startListeningToTouch(),this.props.closeMenuOnScroll&&document&&document.addEventListener&&document.addEventListener("scroll",this.onScroll,!0),this.props.autoFocus&&this.focusInput(),this.props.menuIsOpen&&this.state.focusedOption&&this.menuListRef&&this.focusedOptionRef&&g5(this.menuListRef,this.focusedOptionRef)}},{key:"componentDidUpdate",value:function(a){var i=this.props,o=i.isDisabled,l=i.menuIsOpen,u=this.state.isFocused;(u&&!o&&a.isDisabled||u&&l&&!a.menuIsOpen)&&this.focusInput(),u&&o&&!a.isDisabled?this.setState({isFocused:!1},this.onMenuClose):!u&&!o&&a.isDisabled&&this.inputRef===document.activeElement&&this.setState({isFocused:!0}),this.menuListRef&&this.focusedOptionRef&&this.scrollToFocusedOptionOnUpdate&&(g5(this.menuListRef,this.focusedOptionRef),this.scrollToFocusedOptionOnUpdate=!1)}},{key:"componentWillUnmount",value:function(){this.stopListeningComposition(),this.stopListeningToTouch(),document.removeEventListener("scroll",this.onScroll,!0)}},{key:"onMenuOpen",value:function(){this.props.onMenuOpen()}},{key:"onMenuClose",value:function(){this.onInputChange("",{action:"menu-close",prevInputValue:this.props.inputValue}),this.props.onMenuClose()}},{key:"onInputChange",value:function(a,i){this.props.onInputChange(a,i)}},{key:"focusInput",value:function(){this.inputRef&&this.inputRef.focus()}},{key:"blurInput",value:function(){this.inputRef&&this.inputRef.blur()}},{key:"openMenu",value:function(a){var i=this,o=this.state,l=o.selectValue,u=o.isFocused,d=this.buildFocusableOptions(),f=a==="first"?0:d.length-1;if(!this.props.isMulti){var g=d.indexOf(l[0]);g>-1&&(f=g)}this.scrollToFocusedOptionOnUpdate=!(u&&this.menuListRef),this.setState({inputIsHiddenAfterUpdate:!1,focusedValue:null,focusedOption:d[f],focusedOptionId:this.getFocusedOptionId(d[f])},function(){return i.onMenuOpen()})}},{key:"focusValue",value:function(a){var i=this.state,o=i.selectValue,l=i.focusedValue;if(this.props.isMulti){this.setState({focusedOption:null});var u=o.indexOf(l);l||(u=-1);var d=o.length-1,f=-1;if(o.length){switch(a){case"previous":u===0?f=0:u===-1?f=d:f=u-1;break;case"next":u>-1&&u0&&arguments[0]!==void 0?arguments[0]:"first",i=this.props.pageSize,o=this.state.focusedOption,l=this.getFocusableOptions();if(l.length){var u=0,d=l.indexOf(o);o||(d=-1),a==="up"?u=d>0?d-1:l.length-1:a==="down"?u=(d+1)%l.length:a==="pageup"?(u=d-i,u<0&&(u=0)):a==="pagedown"?(u=d+i,u>l.length-1&&(u=l.length-1)):a==="last"&&(u=l.length-1),this.scrollToFocusedOptionOnUpdate=!0,this.setState({focusedOption:l[u],focusedValue:null,focusedOptionId:this.getFocusedOptionId(l[u])})}}},{key:"getTheme",value:(function(){return this.props.theme?typeof this.props.theme=="function"?this.props.theme(nA):Jt(Jt({},nA),this.props.theme):nA})},{key:"getCommonProps",value:function(){var a=this.clearValue,i=this.cx,o=this.getStyles,l=this.getClassNames,u=this.getValue,d=this.selectOption,f=this.setValue,g=this.props,y=g.isMulti,h=g.isRtl,v=g.options,E=this.hasValue();return{clearValue:a,cx:i,getStyles:o,getClassNames:l,getValue:u,hasValue:E,isMulti:y,isRtl:h,options:v,selectOption:d,selectProps:g,setValue:f,theme:this.getTheme()}}},{key:"hasValue",value:function(){var a=this.state.selectValue;return a.length>0}},{key:"hasOptions",value:function(){return!!this.getFocusableOptions().length}},{key:"isClearable",value:function(){var a=this.props,i=a.isClearable,o=a.isMulti;return i===void 0?o:i}},{key:"isOptionDisabled",value:function(a,i){return kee(this.props,a,i)}},{key:"isOptionSelected",value:function(a,i){return xee(this.props,a,i)}},{key:"filterOption",value:function(a,i){return _ee(this.props,a,i)}},{key:"formatOptionLabel",value:function(a,i){if(typeof this.props.formatOptionLabel=="function"){var o=this.props.inputValue,l=this.state.selectValue;return this.props.formatOptionLabel(a,{context:i,inputValue:o,selectValue:l})}else return this.getOptionLabel(a)}},{key:"formatGroupLabel",value:function(a){return this.props.formatGroupLabel(a)}},{key:"startListeningComposition",value:(function(){document&&document.addEventListener&&(document.addEventListener("compositionstart",this.onCompositionStart,!1),document.addEventListener("compositionend",this.onCompositionEnd,!1))})},{key:"stopListeningComposition",value:function(){document&&document.removeEventListener&&(document.removeEventListener("compositionstart",this.onCompositionStart),document.removeEventListener("compositionend",this.onCompositionEnd))}},{key:"startListeningToTouch",value:(function(){document&&document.addEventListener&&(document.addEventListener("touchstart",this.onTouchStart,!1),document.addEventListener("touchmove",this.onTouchMove,!1),document.addEventListener("touchend",this.onTouchEnd,!1))})},{key:"stopListeningToTouch",value:function(){document&&document.removeEventListener&&(document.removeEventListener("touchstart",this.onTouchStart),document.removeEventListener("touchmove",this.onTouchMove),document.removeEventListener("touchend",this.onTouchEnd))}},{key:"renderInput",value:(function(){var a=this.props,i=a.isDisabled,o=a.isSearchable,l=a.inputId,u=a.inputValue,d=a.tabIndex,f=a.form,g=a.menuIsOpen,y=a.required,h=this.getComponents(),v=h.Input,E=this.state,T=E.inputIsHidden,C=E.ariaSelection,k=this.commonProps,_=l||this.getElementId("input"),A=Jt(Jt(Jt({"aria-autocomplete":"list","aria-expanded":g,"aria-haspopup":!0,"aria-errormessage":this.props["aria-errormessage"],"aria-invalid":this.props["aria-invalid"],"aria-label":this.props["aria-label"],"aria-labelledby":this.props["aria-labelledby"],"aria-required":y,role:"combobox","aria-activedescendant":this.isAppleDevice?void 0:this.state.focusedOptionId||""},g&&{"aria-controls":this.getElementId("listbox")}),!o&&{"aria-readonly":!0}),this.hasValue()?(C==null?void 0:C.action)==="initial-input-focus"&&{"aria-describedby":this.getElementId("live-region")}:{"aria-describedby":this.getElementId("placeholder")});return o?R.createElement(v,vt({},k,{autoCapitalize:"none",autoComplete:"off",autoCorrect:"off",id:_,innerRef:this.getInputRef,isDisabled:i,isHidden:T,onBlur:this.onInputBlur,onChange:this.handleInputChange,onFocus:this.onInputFocus,spellCheck:"false",tabIndex:d,form:f,type:"text",value:u},A)):R.createElement(_xe,vt({id:_,innerRef:this.getInputRef,onBlur:this.onInputBlur,onChange:Mx,onFocus:this.onInputFocus,disabled:i,tabIndex:d,inputMode:"none",form:f,value:""},A))})},{key:"renderPlaceholderOrValue",value:function(){var a=this,i=this.getComponents(),o=i.MultiValue,l=i.MultiValueContainer,u=i.MultiValueLabel,d=i.MultiValueRemove,f=i.SingleValue,g=i.Placeholder,y=this.commonProps,h=this.props,v=h.controlShouldRenderValue,E=h.isDisabled,T=h.isMulti,C=h.inputValue,k=h.placeholder,_=this.state,A=_.selectValue,P=_.focusedValue,N=_.isFocused;if(!this.hasValue()||!v)return C?null:R.createElement(g,vt({},y,{key:"placeholder",isDisabled:E,isFocused:N,innerProps:{id:this.getElementId("placeholder")}}),k);if(T)return A.map(function(L,j){var z=L===P,Q="".concat(a.getOptionLabel(L),"-").concat(a.getOptionValue(L));return R.createElement(o,vt({},y,{components:{Container:l,Label:u,Remove:d},isFocused:z,isDisabled:E,key:Q,index:j,removeProps:{onClick:function(){return a.removeValue(L)},onTouchEnd:function(){return a.removeValue(L)},onMouseDown:function(re){re.preventDefault()}},data:L}),a.formatOptionLabel(L,"value"))});if(C)return null;var I=A[0];return R.createElement(f,vt({},y,{data:I,isDisabled:E}),this.formatOptionLabel(I,"value"))}},{key:"renderClearIndicator",value:function(){var a=this.getComponents(),i=a.ClearIndicator,o=this.commonProps,l=this.props,u=l.isDisabled,d=l.isLoading,f=this.state.isFocused;if(!this.isClearable()||!i||u||!this.hasValue()||d)return null;var g={onMouseDown:this.onClearIndicatorMouseDown,onTouchEnd:this.onClearIndicatorTouchEnd,"aria-hidden":"true"};return R.createElement(i,vt({},o,{innerProps:g,isFocused:f}))}},{key:"renderLoadingIndicator",value:function(){var a=this.getComponents(),i=a.LoadingIndicator,o=this.commonProps,l=this.props,u=l.isDisabled,d=l.isLoading,f=this.state.isFocused;if(!i||!d)return null;var g={"aria-hidden":"true"};return R.createElement(i,vt({},o,{innerProps:g,isDisabled:u,isFocused:f}))}},{key:"renderIndicatorSeparator",value:function(){var a=this.getComponents(),i=a.DropdownIndicator,o=a.IndicatorSeparator;if(!i||!o)return null;var l=this.commonProps,u=this.props.isDisabled,d=this.state.isFocused;return R.createElement(o,vt({},l,{isDisabled:u,isFocused:d}))}},{key:"renderDropdownIndicator",value:function(){var a=this.getComponents(),i=a.DropdownIndicator;if(!i)return null;var o=this.commonProps,l=this.props.isDisabled,u=this.state.isFocused,d={onMouseDown:this.onDropdownIndicatorMouseDown,onTouchEnd:this.onDropdownIndicatorTouchEnd,"aria-hidden":"true"};return R.createElement(i,vt({},o,{innerProps:d,isDisabled:l,isFocused:u}))}},{key:"renderMenu",value:function(){var a=this,i=this.getComponents(),o=i.Group,l=i.GroupHeading,u=i.Menu,d=i.MenuList,f=i.MenuPortal,g=i.LoadingMessage,y=i.NoOptionsMessage,h=i.Option,v=this.commonProps,E=this.state.focusedOption,T=this.props,C=T.captureMenuScroll,k=T.inputValue,_=T.isLoading,A=T.loadingMessage,P=T.minMenuHeight,N=T.maxMenuHeight,I=T.menuIsOpen,L=T.menuPlacement,j=T.menuPosition,z=T.menuPortalTarget,Q=T.menuShouldBlockScroll,le=T.menuShouldScrollIntoView,re=T.noOptionsMessage,ge=T.onMenuScrollToTop,me=T.onMenuScrollToBottom;if(!I)return null;var W=function(J,ee){var Z=J.type,ue=J.data,ke=J.isDisabled,fe=J.isSelected,xe=J.label,Ie=J.value,qe=E===ue,tt=ke?void 0:function(){return a.onOptionHover(ue)},Ge=ke?void 0:function(){return a.selectOption(ue)},at="".concat(a.getElementId("option"),"-").concat(ee),Et={id:at,onClick:Ge,onMouseMove:tt,onMouseOver:tt,tabIndex:-1,role:"option","aria-selected":a.isAppleDevice?void 0:fe};return R.createElement(h,vt({},v,{innerProps:Et,data:ue,isDisabled:ke,isSelected:fe,key:at,label:xe,type:Z,value:Ie,isFocused:qe,innerRef:qe?a.getFocusedOptionRef:void 0}),a.formatOptionLabel(J.data,"menu"))},G;if(this.hasOptions())G=this.getCategorizedOptions().map(function(ie){if(ie.type==="group"){var J=ie.data,ee=ie.options,Z=ie.index,ue="".concat(a.getElementId("group"),"-").concat(Z),ke="".concat(ue,"-heading");return R.createElement(o,vt({},v,{key:ue,data:J,options:ee,Heading:l,headingProps:{id:ke,data:ie.data},label:a.formatGroupLabel(ie.data)}),ie.options.map(function(fe){return W(fe,"".concat(Z,"-").concat(fe.index))}))}else if(ie.type==="option")return W(ie,"".concat(ie.index))});else if(_){var q=A({inputValue:k});if(q===null)return null;G=R.createElement(g,v,q)}else{var ce=re({inputValue:k});if(ce===null)return null;G=R.createElement(y,v,ce)}var H={minMenuHeight:P,maxMenuHeight:N,menuPlacement:L,menuPosition:j,menuShouldScrollIntoView:le},Y=R.createElement(ike,vt({},v,H),function(ie){var J=ie.ref,ee=ie.placerProps,Z=ee.placement,ue=ee.maxHeight;return R.createElement(u,vt({},v,H,{innerRef:J,innerProps:{onMouseDown:a.onMenuMouseDown,onMouseMove:a.onMenuMouseMove},isLoading:_,placement:Z}),R.createElement(Mxe,{captureEnabled:C,onTopArrive:ge,onBottomArrive:me,lockEnabled:Q},function(ke){return R.createElement(d,vt({},v,{innerRef:function(xe){a.getMenuListRef(xe),ke(xe)},innerProps:{role:"listbox","aria-multiselectable":v.isMulti,id:a.getElementId("listbox")},isLoading:_,maxHeight:ue,focusedOption:E}),G)}))});return z||j==="fixed"?R.createElement(f,vt({},v,{appendTo:z,controlElement:this.controlRef,menuPlacement:L,menuPosition:j}),Y):Y}},{key:"renderFormField",value:function(){var a=this,i=this.props,o=i.delimiter,l=i.isDisabled,u=i.isMulti,d=i.name,f=i.required,g=this.state.selectValue;if(f&&!this.hasValue()&&!l)return R.createElement($xe,{name:d,onFocus:this.onValueInputFocus});if(!(!d||l))if(u)if(o){var y=g.map(function(E){return a.getOptionValue(E)}).join(o);return R.createElement("input",{name:d,type:"hidden",value:y})}else{var h=g.length>0?g.map(function(E,T){return R.createElement("input",{key:"i-".concat(T),name:d,type:"hidden",value:a.getOptionValue(E)})}):R.createElement("input",{name:d,type:"hidden",value:""});return R.createElement("div",null,h)}else{var v=g[0]?this.getOptionValue(g[0]):"";return R.createElement("input",{name:d,type:"hidden",value:v})}}},{key:"renderLiveRegion",value:function(){var a=this.commonProps,i=this.state,o=i.ariaSelection,l=i.focusedOption,u=i.focusedValue,d=i.isFocused,f=i.selectValue,g=this.getFocusableOptions();return R.createElement(Sxe,vt({},a,{id:this.getElementId("live-region"),ariaSelection:o,focusedOption:l,focusedValue:u,isFocused:d,selectValue:f,focusableOptions:g,isAppleDevice:this.isAppleDevice}))}},{key:"render",value:function(){var a=this.getComponents(),i=a.Control,o=a.IndicatorsContainer,l=a.SelectContainer,u=a.ValueContainer,d=this.props,f=d.className,g=d.id,y=d.isDisabled,h=d.menuIsOpen,v=this.state.isFocused,E=this.commonProps=this.getCommonProps();return R.createElement(l,vt({},E,{className:f,innerProps:{id:g,onKeyDown:this.onKeyDown},isDisabled:y,isFocused:v}),this.renderLiveRegion(),R.createElement(i,vt({},E,{innerRef:this.getControlRef,innerProps:{onMouseDown:this.onControlMouseDown,onTouchEnd:this.onControlTouchEnd},isDisabled:y,isFocused:v,menuIsOpen:h}),R.createElement(u,vt({},E,{isDisabled:y}),this.renderPlaceholderOrValue(),this.renderInput()),R.createElement(o,vt({},E,{isDisabled:y}),this.renderClearIndicator(),this.renderLoadingIndicator(),this.renderIndicatorSeparator(),this.renderDropdownIndicator())),this.renderMenu(),this.renderFormField())}}],[{key:"getDerivedStateFromProps",value:function(a,i){var o=i.prevProps,l=i.clearFocusValueOnUpdate,u=i.inputIsHiddenAfterUpdate,d=i.ariaSelection,f=i.isFocused,g=i.prevWasFocused,y=i.instancePrefix,h=a.options,v=a.value,E=a.menuIsOpen,T=a.inputValue,C=a.isMulti,k=m5(v),_={};if(o&&(v!==o.value||h!==o.options||E!==o.menuIsOpen||T!==o.inputValue)){var A=E?Jxe(a,k):[],P=E?P5(Hk(a,k),"".concat(y,"-option")):[],N=l?Zxe(i,k):null,I=e_e(i,A),L=rA(P,I);_={selectValue:k,focusedOption:I,focusedOptionId:L,focusableOptionsWithIds:P,focusedValue:N,clearFocusValueOnUpdate:!1}}var j=u!=null&&a!==o?{inputIsHidden:u,inputIsHiddenAfterUpdate:void 0}:{},z=d,Q=f&&g;return f&&!Q&&(z={value:dk(C,k,k[0]||null),options:k,action:"initial-input-focus"},Q=!g),(d==null?void 0:d.action)==="initial-input-focus"&&(z=null),Jt(Jt(Jt({},_),j),{},{prevProps:a,ariaSelection:z,prevWasFocused:Q})}}]),n})(R.Component);Ree.defaultProps=Qxe;var n_e=["defaultInputValue","defaultMenuIsOpen","defaultValue","inputValue","menuIsOpen","onChange","onInputChange","onMenuClose","onMenuOpen","value"];function r_e(e){var t=e.defaultInputValue,n=t===void 0?"":t,r=e.defaultMenuIsOpen,a=r===void 0?!1:r,i=e.defaultValue,o=i===void 0?null:i,l=e.inputValue,u=e.menuIsOpen,d=e.onChange,f=e.onInputChange,g=e.onMenuClose,y=e.onMenuOpen,h=e.value,v=Ru(e,n_e),E=R.useState(l!==void 0?l:n),T=mi(E,2),C=T[0],k=T[1],_=R.useState(u!==void 0?u:a),A=mi(_,2),P=A[0],N=A[1],I=R.useState(h!==void 0?h:o),L=mi(I,2),j=L[0],z=L[1],Q=R.useCallback(function(q,ce){typeof d=="function"&&d(q,ce),z(q)},[d]),le=R.useCallback(function(q,ce){var H;typeof f=="function"&&(H=f(q,ce)),k(H!==void 0?H:q)},[f]),re=R.useCallback(function(){typeof y=="function"&&y(),N(!0)},[y]),ge=R.useCallback(function(){typeof g=="function"&&g(),N(!1)},[g]),me=l!==void 0?l:C,W=u!==void 0?u:P,G=h!==void 0?h:j;return Jt(Jt({},v),{},{inputValue:me,menuIsOpen:W,onChange:Q,onInputChange:le,onMenuClose:ge,onMenuOpen:re,value:G})}var a_e=["defaultOptions","cacheOptions","loadOptions","options","isLoading","onInputChange","filterOption"];function i_e(e){var t=e.defaultOptions,n=t===void 0?!1:t,r=e.cacheOptions,a=r===void 0?!1:r,i=e.loadOptions;e.options;var o=e.isLoading,l=o===void 0?!1:o,u=e.onInputChange,d=e.filterOption,f=d===void 0?null:d,g=Ru(e,a_e),y=g.inputValue,h=R.useRef(void 0),v=R.useRef(!1),E=R.useState(Array.isArray(n)?n:void 0),T=mi(E,2),C=T[0],k=T[1],_=R.useState(typeof y<"u"?y:""),A=mi(_,2),P=A[0],N=A[1],I=R.useState(n===!0),L=mi(I,2),j=L[0],z=L[1],Q=R.useState(void 0),le=mi(Q,2),re=le[0],ge=le[1],me=R.useState([]),W=mi(me,2),G=W[0],q=W[1],ce=R.useState(!1),H=mi(ce,2),Y=H[0],ie=H[1],J=R.useState({}),ee=mi(J,2),Z=ee[0],ue=ee[1],ke=R.useState(void 0),fe=mi(ke,2),xe=fe[0],Ie=fe[1],qe=R.useState(void 0),tt=mi(qe,2),Ge=tt[0],at=tt[1];a!==Ge&&(ue({}),at(a)),n!==xe&&(k(Array.isArray(n)?n:void 0),Ie(n)),R.useEffect(function(){return v.current=!0,function(){v.current=!1}},[]);var Et=R.useCallback(function(Rt,cn){if(!i)return cn();var qt=i(Rt,cn);qt&&typeof qt.then=="function"&&qt.then(cn,function(){return cn()})},[i]);R.useEffect(function(){n===!0&&Et(P,function(Rt){v.current&&(k(Rt||[]),z(!!h.current))})},[]);var kt=R.useCallback(function(Rt,cn){var qt=zCe(Rt,cn,u);if(!qt){h.current=void 0,N(""),ge(""),q([]),z(!1),ie(!1);return}if(a&&Z[qt])N(qt),ge(qt),q(Z[qt]),z(!1),ie(!1);else{var Wt=h.current={};N(qt),z(!0),ie(!re),Et(qt,function(Oe){v&&Wt===h.current&&(h.current=void 0,z(!1),ge(qt),q(Oe||[]),ie(!1),ue(Oe?Jt(Jt({},Z),{},wt({},qt,Oe)):Z))})}},[a,Et,re,Z,u]),xt=Y?[]:P&&re?G:C||[];return Jt(Jt({},g),{},{options:xt,isLoading:j||l,onInputChange:kt,filterOption:f})}var o_e=R.forwardRef(function(e,t){var n=i_e(e),r=r_e(n);return R.createElement(Ree,vt({ref:t},r))}),s_e=o_e;function l_e(e,t){return t?t(e):{name:{operation:"contains",value:e}}}function JF(e){return w.jsx(da,{...e,multiple:!0})}function da(e){var y,h,v;const t=At(),n=Bs();let[r,a]=R.useState("");if(!e.querySource)return w.jsx("div",{children:"No query source to render"});const{query:i,keyExtractor:o}=e.querySource({queryClient:n,query:{itemsPerPage:20,jsonQuery:l_e(r,e.jsonQuery),withPreloads:e.withPreloads},queryOptions:{refetchOnWindowFocus:!1}}),l=e.keyExtractor||o||(E=>JSON.stringify(E)),u=(h=(y=i==null?void 0:i.data)==null?void 0:y.data)==null?void 0:h.items,d=E=>{var T;if((T=e==null?void 0:e.formEffect)!=null&&T.form){const{formEffect:C}=e,k={...C.form.values};if(C.beforeSet&&(E=C.beforeSet(E)),Ta.set(k,C.field,E),Ta.isObject(E)&&E.uniqueId&&C.skipFirebackMetaData!==!0&&Ta.set(k,C.field+"Id",E.uniqueId),Ta.isArray(E)&&C.skipFirebackMetaData!==!0){const _=C.field+"ListId";Ta.set(k,_,(E||[]).map(A=>A.uniqueId))}C==null||C.form.setValues(k)}e.onChange&&typeof e.onChange=="function"&&e.onChange(E)};let f=e.value;if(f===void 0&&((v=e.formEffect)!=null&&v.form)){const E=Ta.get(e.formEffect.form.values,e.formEffect.field);E!==void 0&&(f=E)}typeof f!="object"&&l&&f!==void 0&&(f=u.find(E=>l(E)===f));const g=E=>new Promise(T=>{setTimeout(()=>{T(u)},100)});return w.jsxs(rf,{...e,children:[e.children,e.convertToNative?w.jsxs("select",{value:f,multiple:e.multiple,onChange:E=>{const T=u==null?void 0:u.find(C=>C.uniqueId===E.target.value);d(T)},className:oa("form-select",e.errorMessage&&"is-invalid",e.validMessage&&"is-valid"),disabled:e.disabled,"aria-label":"Default select example",children:[w.jsx("option",{value:"",children:t.selectPlaceholder},void 0),u==null?void 0:u.filter(Boolean).map(E=>{const T=l(E);return w.jsx("option",{value:T,children:e.fnLabelFormat(E)},T)})]}):w.jsx(w.Fragment,{children:w.jsx(s_e,{value:f,onChange:E=>{d(E)},isMulti:e.multiple,classNames:{container(E){return oa(e.errorMessage&&" form-control form-control-no-padding is-invalid",e.validMessage&&"is-valid")},control(E){return oa("form-control form-control-no-padding")},menu(E){return"react-select-menu-area"}},isSearchable:!0,defaultOptions:u,placeholder:t.searchplaceholder,noOptionsMessage:()=>t.noOptions,getOptionValue:l,loadOptions:g,formatOptionLabel:e.fnLabelFormat,onInputChange:a})})]})}const u_e=({form:e,isEditing:t})=>{const{options:n}=R.useContext(rt),{values:r,setValues:a,setFieldValue:i,errors:o}=e,l=Kt($E);return w.jsxs(w.Fragment,{children:[w.jsx(In,{value:r.name,onChange:u=>i(vi.Fields.name,u,!1),errorMessage:o.name,label:l.capabilities.name,hint:l.capabilities.nameHint}),w.jsx(In,{value:r.description,onChange:u=>i(vi.Fields.description,u,!1),errorMessage:o.description,label:l.capabilities.description,hint:l.capabilities.descriptionHint})]})};function Pee({queryOptions:e,execFnOverride:t,query:n,queryClient:r,unauthorized:a}){var T;const{options:i,execFn:o}=R.useContext(rt),l=t?t(i):o?o(i):St(i);let d=`${"/capability/:uniqueId".substr(1)}?${new URLSearchParams(Gt(n)).toString()}`,f=!0;d=d.replace(":uniqueId",n[":uniqueId".replace(":","")]),n[":uniqueId".replace(":","")]===void 0&&(f=!1);const g=()=>l("GET",d),y=(T=i==null?void 0:i.headers)==null?void 0:T.authorization,h=y!="undefined"&&y!=null&&y!=null&&y!="null"&&!!y;let v=!0;return f?!h&&!a&&(v=!1):v=!1,{query:jn([i,n,"*fireback.CapabilityEntity"],g,{cacheTime:1001,retry:!1,keepPreviousData:!0,enabled:v,...e||{}})}}function c_e(e){let{queryClient:t,query:n,execFnOverride:r}=e||{};n=n||{};const{options:a,execFn:i}=R.useContext(rt),o=r?r(a):i?i(a):St(a);let u=`${"/capability".substr(1)}?${new URLSearchParams(Gt(n)).toString()}`;const f=un(h=>o("POST",u,h)),g=(h,v)=>{var E;return h?(h.data&&(v!=null&&v.data)&&(h.data.items=[v.data,...((E=h==null?void 0:h.data)==null?void 0:E.items)||[]]),h):{data:{items:[]}}};return{mutation:f,submit:(h,v)=>new Promise((E,T)=>{f.mutate(h,{onSuccess(C){t==null||t.setQueryData("*fireback.CapabilityEntity",k=>g(k,C)),E(C)},onError(C){v==null||v.setErrors(Pn(C)),T(C)}})}),fnUpdater:g}}function d_e(e){let{queryClient:t,query:n,execFnOverride:r}=e||{};n=n||{};const{options:a,execFn:i}=R.useContext(rt),o=r?r(a):i?i(a):St(a);let u=`${"/capability".substr(1)}?${new URLSearchParams(Gt(n)).toString()}`;const f=un(h=>o("PATCH",u,h)),g=(h,v)=>{var E;return h?(h.data&&(v!=null&&v.data)&&(h.data.items=[v.data,...((E=h==null?void 0:h.data)==null?void 0:E.items)||[]]),h):{data:{items:[]}}};return{mutation:f,submit:(h,v)=>new Promise((E,T)=>{f.mutate(h,{onSuccess(C){t==null||t.setQueriesData("*fireback.CapabilityEntity",k=>g(k,C)),E(C)},onError(C){v==null||v.setErrors(Pn(C)),T(C)}})}),fnUpdater:g}}const N5=({data:e})=>{const t=Kt($E),{router:n,uniqueId:r,queryClient:a,locale:i}=$r({data:e}),o=Pee({query:{uniqueId:r}}),l=c_e({queryClient:a}),u=d_e({queryClient:a});return w.jsx(Bo,{postHook:l,patchHook:u,getSingleHook:o,onCancel:()=>{n.goBackOrDefault(vi.Navigation.query(void 0,i))},onFinishUriResolver:(d,f)=>{var g;return vi.Navigation.single((g=d.data)==null?void 0:g.uniqueId,f)},Form:u_e,onEditTitle:t.capabilities.editCapability,onCreateTitle:t.capabilities.newCapability,data:e})},io=({children:e,getSingleHook:t,editEntityHandler:n,noBack:r,disableOnGetFailed:a})=>{var l;const{router:i,locale:o}=$r({});return _he(n?()=>n({locale:o,router:i}):void 0,Ir.EditEntity),jQ(r!==!0?()=>i.goBack():null,Ir.CommonBack),w.jsxs(w.Fragment,{children:[w.jsx(Il,{query:t.query}),a===!0&&((l=t==null?void 0:t.query)!=null&&l.isError)?null:w.jsx(w.Fragment,{children:e})]})};function oo({entity:e,fields:t,title:n,description:r}){var i;const a=At();return w.jsx("div",{className:"mt-4",children:w.jsxs("div",{className:"general-entity-view ",children:[n?w.jsx("h1",{children:n}):null,r?w.jsx("p",{children:r}):null,w.jsxs("div",{className:"entity-view-row entity-view-head",children:[w.jsx("div",{className:"field-info",children:a.table.info}),w.jsx("div",{className:"field-value",children:a.table.value})]}),(e==null?void 0:e.uniqueId)&&w.jsxs("div",{className:"entity-view-row entity-view-body",children:[w.jsx("div",{className:"field-info",children:a.table.uniqueId}),w.jsx("div",{className:"field-value",children:e.uniqueId})]}),(i=t||[])==null?void 0:i.map((o,l)=>{var d;let u=o.elem===void 0?"-":o.elem;return o.elem===!0&&(u=a.common.yes),o.elem===!1&&(u=a.common.no),o.elem===null&&(u=w.jsx("i",{children:w.jsx("b",{children:a.common.isNUll})})),w.jsxs("div",{className:"entity-view-row entity-view-body",children:[w.jsx("div",{className:"field-info",children:o.label}),w.jsxs("div",{className:"field-value","data-test-id":((d=o.label)==null?void 0:d.toString())||"",children:[u," ",w.jsx(QJ,{value:u})]})]},l)}),(e==null?void 0:e.createdFormatted)&&w.jsxs("div",{className:"entity-view-row entity-view-body",children:[w.jsx("div",{className:"field-info",children:a.table.created}),w.jsx("div",{className:"field-value",children:e.createdFormatted})]})]})})}const f_e=()=>{var a;const{uniqueId:e}=$r({}),t=Pee({query:{uniqueId:e}});var n=(a=t.query.data)==null?void 0:a.data;const r=Kt($E);return w.jsx(w.Fragment,{children:w.jsx(io,{editEntityHandler:({locale:i,router:o})=>{o.push(vi.Navigation.edit(e))},getSingleHook:t,children:w.jsx(oo,{entity:n,fields:[{elem:n==null?void 0:n.name,label:r.capabilities.name},{elem:n==null?void 0:n.description,label:r.capabilities.description}]})})})};function p_e(){return w.jsxs(w.Fragment,{children:[w.jsx(mt,{element:w.jsx(N5,{}),path:vi.Navigation.Rcreate}),w.jsx(mt,{element:w.jsx(f_e,{}),path:vi.Navigation.Rsingle}),w.jsx(mt,{element:w.jsx(N5,{}),path:vi.Navigation.Redit}),w.jsx(mt,{element:w.jsx(A0e,{}),path:vi.Navigation.Rquery})]})}function h_e(e){const t=R.useContext(m_e);R.useEffect(()=>{const n=t.listenFiles(e);return()=>t.removeSubscription(n)},[])}const m_e=ze.createContext({listenFiles(){return""},removeSubscription(){},refs:[]});function Aee({queryOptions:e,query:t,queryClient:n,execFnOverride:r,unauthorized:a,optionFn:i}){var k,_,A;const{options:o,execFn:l}=R.useContext(rt),u=i?i(o):o,d=r?r(u):l?l(u):St(u);let g=`${"/files".substr(1)}?${qa.stringify(t)}`;const y=()=>d("GET",g),h=(k=u==null?void 0:u.headers)==null?void 0:k.authorization,v=h!="undefined"&&h!=null&&h!=null&&h!="null"&&!!h;let E=!0;!v&&!a&&(E=!1);const T=jn(["*abac.FileEntity",u,t],y,{cacheTime:1e3,retry:!1,keepPreviousData:!0,enabled:E,...e||{}}),C=((A=(_=T.data)==null?void 0:_.data)==null?void 0:A.items)||[];return{query:T,items:C,keyExtractor:P=>P.uniqueId}}Aee.UKEY="*abac.FileEntity";const g_e=e=>[{name:Pd.Fields.uniqueId,title:e.table.uniqueId,width:200},{name:Pd.Fields.name,title:e.drive.title,width:200},{name:Pd.Fields.size,title:e.drive.size,width:100},{name:Pd.Fields.virtualPath,title:e.drive.virtualPath,width:100},{name:Pd.Fields.type,title:e.drive.type,width:100}],v_e=()=>{const e=At();return w.jsx(w.Fragment,{children:w.jsx(Uo,{columns:g_e(e),queryHook:Aee,uniqueIdHrefHandler:t=>Pd.Navigation.single(t)})})};function y_e(e,t){const n=[];let r=!1;for(let a of e)a.uploadId===t.uploadId?(r=!0,n.push(t)):n.push(a);return r===!1&&n.push(t),n}function Nee(){const{session:e,selectedUrw:t,activeUploads:n,setActiveUploads:r}=R.useContext(rt),a=(l,u)=>o([new File([l],u)]),i=(l,u=!1)=>new Promise((d,f)=>{const g=new ohe(l,{endpoint:kr.REMOTE_SERVICE+"tus",onBeforeRequest(y){y.setHeader("authorization",e.token),y.setHeader("workspace-id",t==null?void 0:t.workspaceId)},headers:{},metadata:{filename:l.name,path:"/database/users",filetype:l.type},onSuccess(){var h;const y=(h=g.url)==null?void 0:h.match(/([a-z0-9]){10,}/gi);d(`${y}`)},onError(y){f(y)},onProgress(y,h){var E,T;const v=(T=(E=g.url)==null?void 0:E.match(/([a-z0-9]){10,}/gi))==null?void 0:T.toString();if(v){const C={uploadId:v,bytesSent:y,filename:l.name,bytesTotal:h};u!==!0&&r(k=>y_e(k,C))}}});g.start()}),o=(l,u=!1)=>l.map(d=>i(d));return{upload:o,activeUploads:n,uploadBlob:a,uploadSingle:i}}const M5=()=>{const e=At(),{upload:t}=Nee(),n=Bs(),r=i=>{Promise.all(t(i)).then(o=>{n.invalidateQueries("*drive.FileEntity")}).catch(o=>{alert(o)})};h_e({label:"Add files or documents to drive",extentions:["*"],onCaptureFile(i){r(i)}});const a=()=>{var i=document.createElement("input");i.type="file",i.onchange=o=>{r(Array.from(o.target.files))},i.click()};return w.jsx(jo,{pageTitle:e.drive.driveTitle,newEntityHandler:()=>{a()},children:w.jsx(v_e,{})})};function b_e({queryOptions:e,execFnOverride:t,query:n,queryClient:r,unauthorized:a}){var T;const{options:i,execFn:o}=R.useContext(rt),l=t?t(i):o?o(i):St(i);let d=`${"/file/:uniqueId".substr(1)}?${new URLSearchParams(Gt(n)).toString()}`,f=!0;d=d.replace(":uniqueId",n[":uniqueId".replace(":","")]),n[":uniqueId".replace(":","")]===void 0&&(f=!1);const g=()=>l("GET",d),y=(T=i==null?void 0:i.headers)==null?void 0:T.authorization,h=y!="undefined"&&y!=null&&y!=null&&y!="null"&&!!y;let v=!0;return f?!h&&!a&&(v=!1):v=!1,{query:jn([i,n,"*abac.FileEntity"],g,{cacheTime:1001,retry:!1,keepPreviousData:!0,enabled:v,...e||{}})}}const w_e=()=>{var o;const t=xr().query.uniqueId,n=b_e({query:{uniqueId:t}});let r=(o=n.query.data)==null?void 0:o.data;gh((r==null?void 0:r.name)||"");const a=At(),{directPath:i}=VQ();return w.jsx(w.Fragment,{children:w.jsx(io,{getSingleHook:n,children:w.jsx(oo,{entity:r,fields:[{label:a.drive.name,elem:r==null?void 0:r.name},{label:a.drive.size,elem:r==null?void 0:r.size},{label:a.drive.type,elem:r==null?void 0:r.type},{label:a.drive.virtualPath,elem:r==null?void 0:r.virtualPath},{label:a.drive.viewPath,elem:w.jsx("pre",{children:i(r)})}]})})})};function S_e(){return w.jsxs(w.Fragment,{children:[w.jsx(mt,{path:"drive",element:w.jsx(M5,{})}),w.jsx(mt,{path:"drives",element:w.jsx(M5,{})}),w.jsx(mt,{path:"file/:uniqueId",element:w.jsx(w_e,{})})]})}function Mee({queryOptions:e,execFnOverride:t,query:n,queryClient:r,unauthorized:a}){var T;const{options:i,execFn:o}=R.useContext(rt),l=t?t(i):o?o(i):St(i);let d=`${"/email-provider/:uniqueId".substr(1)}?${new URLSearchParams(Gt(n)).toString()}`,f=!0;d=d.replace(":uniqueId",n[":uniqueId".replace(":","")]),n[":uniqueId".replace(":","")]===void 0&&(f=!1);const g=()=>l("GET",d),y=(T=i==null?void 0:i.headers)==null?void 0:T.authorization,h=y!="undefined"&&y!=null&&y!=null&&y!="null"&&!!y;let v=!0;return f?!h&&!a&&(v=!1):v=!1,{query:jn([i,n,"*abac.EmailProviderEntity"],g,{cacheTime:1001,retry:!1,keepPreviousData:!0,enabled:v,...e||{}})}}function E_e(e){let{queryClient:t,query:n,execFnOverride:r}=e||{};n=n||{};const{options:a,execFn:i}=R.useContext(rt),o=r?r(a):i?i(a):St(a);let u=`${"/email-provider".substr(1)}?${new URLSearchParams(Gt(n)).toString()}`;const f=un(h=>o("PATCH",u,h)),g=(h,v)=>{var E;return h?(h.data&&(v!=null&&v.data)&&(h.data.items=[v.data,...((E=h==null?void 0:h.data)==null?void 0:E.items)||[]]),h):{data:{items:[]}}};return{mutation:f,submit:(h,v)=>new Promise((E,T)=>{f.mutate(h,{onSuccess(C){t==null||t.setQueriesData("*abac.EmailProviderEntity",k=>g(k,C)),E(C)},onError(C){v==null||v.setErrors(Pn(C)),T(C)}})}),fnUpdater:g}}function T_e(e){let{queryClient:t,query:n,execFnOverride:r}=e||{};n=n||{};const{options:a,execFn:i}=R.useContext(rt),o=r?r(a):i?i(a):St(a);let u=`${"/email-provider".substr(1)}?${new URLSearchParams(Gt(n)).toString()}`;const f=un(h=>o("POST",u,h)),g=(h,v)=>{var E;return h?(h.data&&(v!=null&&v.data)&&(h.data.items=[v.data,...((E=h==null?void 0:h.data)==null?void 0:E.items)||[]]),h):{data:{items:[]}}};return{mutation:f,submit:(h,v)=>new Promise((E,T)=>{f.mutate(h,{onSuccess(C){t==null||t.setQueryData("*abac.EmailProviderEntity",k=>g(k,C)),E(C)},onError(C){v==null||v.setErrors(Pn(C)),T(C)}})}),fnUpdater:g}}function C_e(e,t){const n=Ta.flatMapDeep(t,(r,a,i)=>{let o=[],l=a;if(r&&typeof r=="object"&&!r.value){const u=Object.keys(r);if(u.length)for(let d of u)o.push({name:`${l}.${d}`,filter:r[d]})}else o.push({name:l,filter:r});return o});return e.filter((r,a)=>{for(let i of n){const o=Ta.get(r,i.name);if(o)switch(i.filter.operation){case"equal":if(o!==i.filter.value)return!1;break;case"contains":if(!o.includes(i.filter.value))return!1;break;case"notContains":if(o.includes(i.filter.value))return!1;break;case"endsWith":if(!o.endsWith(i.filter.value))return!1;break;case"startsWith":if(!o.startsWith(i.filter.value))return!1;break;case"greaterThan":if(oi.filter.value)return!1;break;case"lessThanOrEqual":if(o>=i.filter.value)return!1;break;case"notEqual":if(o===i.filter.value)return!1;break}}return!0})}function zs(e){return t=>k_e({items:e,...t})}function k_e(e){var i,o;let t=((i=e.query)==null?void 0:i.itemsPerPage)||2,n=e.query.startIndex||0,r=e.items||[];return(o=e.query)!=null&&o.jsonQuery&&(r=C_e(r,e.query.jsonQuery)),r=r.slice(n,n+t),{query:{data:{data:{items:r,totalItems:r.length,totalAvailableItems:r.length}},dataUpdatedAt:0,error:null,errorUpdateCount:0,errorUpdatedAt:0,failureCount:0,isError:!1,isFetched:!1,isFetchedAfterMount:!1,isFetching:!1,isIdle:!1,isLoading:!1,isLoadingError:!1,isPlaceholderData:!1,isPreviousData:!1,isRefetchError:!1,isRefetching:!1,isStale:!1,remove(){console.log("Use as query has not implemented this.")},refetch(){return console.log("Refetch is not working actually."),Promise.resolve(void 0)},isSuccess:!0,status:"success"},items:r}}const x_e=({form:e,isEditing:t})=>{const{values:n,setFieldValue:r,errors:a}=e,i=At(),l=zs([{label:"Sendgrid",value:"sendgrid"}]);return w.jsxs(w.Fragment,{children:[w.jsx(da,{formEffect:{form:e,field:gi.Fields.type,beforeSet(u){return u.value}},querySource:l,errorMessage:a.type,label:i.mailProvider.type,hint:i.mailProvider.typeHint}),w.jsx(In,{value:n.apiKey,autoFocus:!t,onChange:u=>r(gi.Fields.apiKey,u,!1),dir:"ltr",errorMessage:a.apiKey,label:i.mailProvider.apiKey,hint:i.mailProvider.apiKeyHint})]})},I5=({data:e})=>{const{router:t,uniqueId:n,queryClient:r,t:a,locale:i}=$r({data:e}),o=Mee({query:{uniqueId:n}}),l=T_e({queryClient:r}),u=E_e({queryClient:r});return w.jsx(Bo,{postHook:l,getSingleHook:o,patchHook:u,onCancel:()=>{t.goBackOrDefault(gi.Navigation.query(void 0,i))},onFinishUriResolver:(d,f)=>{var g;return gi.Navigation.single((g=d.data)==null?void 0:g.uniqueId,f)},Form:x_e,onEditTitle:a.fb.editMailProvider,onCreateTitle:a.fb.newMailProvider,data:e})};class rE extends wn{constructor(...t){super(...t),this.children=void 0,this.thirdPartyVerifier=void 0,this.type=void 0,this.user=void 0,this.value=void 0,this.totpSecret=void 0,this.totpConfirmed=void 0,this.password=void 0,this.confirmed=void 0,this.accessToken=void 0}}rE.Navigation={edit(e,t){return`${t?"/"+t:".."}/passport/edit/${e}`},create(e){return`${e?"/"+e:".."}/passport/new`},single(e,t){return`${t?"/"+t:".."}/passport/${e}`},query(e={},t){return`${t?"/"+t:".."}/passports`},Redit:"passport/edit/:uniqueId",Rcreate:"passport/new",Rsingle:"passport/:uniqueId",Rquery:"passports"};rE.definition={rpc:{query:{}},permRewrite:{replace:"root.modules",with:"root.manage"},name:"passport",features:{},security:{writeOnRoot:!0},gormMap:{},fields:[{name:"thirdPartyVerifier",description:"When user creates account via oauth services such as google, it's essential to set the provider and do not allow passwordless logins if it's not via that specific provider.",type:"string",default:!1,computedType:"string",gormMap:{}},{name:"type",type:"string",validate:"required",computedType:"string",gormMap:{}},{name:"user",type:"one",target:"UserEntity",computedType:"UserEntity",gormMap:{}},{name:"value",type:"string",validate:"required",computedType:"string",gorm:"unique",gormMap:{}},{name:"totpSecret",description:"Store the secret of 2FA using time based dual factor authentication here for this specific passport. If set, during authorization will be asked.",type:"string",computedType:"string",gormMap:{}},{name:"totpConfirmed",description:"Regardless of the secret, user needs to confirm his secret. There is an extra action to confirm user totp, could be used after signup or prior to login.",type:"bool?",computedType:"boolean",gormMap:{}},{name:"password",type:"string",json:"-",yaml:"-",computedType:"string",gormMap:{}},{name:"confirmed",type:"bool?",computedType:"boolean",gormMap:{}},{name:"accessToken",type:"string",computedType:"string",gormMap:{}}],description:"Represent a mean to login in into the system, each user could have multiple passport (email, phone) and authenticate into the system."};rE.Fields={...wn.Fields,thirdPartyVerifier:"thirdPartyVerifier",type:"type",user$:"user",user:ia.Fields,value:"value",totpSecret:"totpSecret",totpConfirmed:"totpConfirmed",password:"password",confirmed:"confirmed",accessToken:"accessToken"};async function qs(e,t,n){let r=e.toString(),a=t||{},i,o=fetch;return n&&([r,a]=await n.apply(r,a),n.fetchOverrideFn&&(o=n.fetchOverrideFn)),i=await o(r,a),n&&(i=await n.handle(i)),i}function __e(e){return typeof e=="function"&&e.prototype&&e.prototype.constructor===e}async function Hs(e,t,n,r){const a=e.headers.get("content-type")||"",i=e.headers.get("content-disposition")||"";if(a.includes("text/event-stream"))return O_e(e,n,r);if(i.includes("attachment")||!a.includes("json")&&!a.startsWith("text/"))e.result=e.body;else if(a.includes("application/json")){const o=await e.json();t?__e(t)?e.result=new t(o):e.result=t(o):e.result=o}else e.result=await e.text();return{done:Promise.resolve(),response:e}}const O_e=(e,t,n)=>{if(!e.body)throw new Error("SSE requires readable body");const r=e.body.getReader(),a=new TextDecoder;let i="";const o=new Promise((l,u)=>{function d(){r.read().then(({done:f,value:g})=>{if(n!=null&&n.aborted)return r.cancel(),l();if(f)return l();i+=a.decode(g,{stream:!0});const y=i.split(` - -`);i=y.pop()||"";for(const h of y){let v="",E="message";if(h.split(` -`).forEach(T=>{T.startsWith("data:")?v+=T.slice(5).trim():T.startsWith("event:")&&(E=T.slice(6).trim())}),v){if(v==="[DONE]")return l();t==null||t(new MessageEvent(E,{data:v}))}}d()}).catch(f=>{f.name==="AbortError"?l():u(f)})}d()});return{response:e,done:o}};class ZF{constructor(t="",n={},r,a,i=null){this.baseUrl=t,this.defaultHeaders=n,this.requestInterceptor=r,this.responseInterceptor=a,this.fetchOverrideFn=i}async apply(t,n){return/^https?:\/\//.test(t)||(t=this.baseUrl+t),n.headers={...this.defaultHeaders,...n.headers||{}},this.requestInterceptor?this.requestInterceptor(t,n):[t,n]}async handle(t){return this.responseInterceptor?this.responseInterceptor(t):t}clone(t){return new ZF((t==null?void 0:t.baseUrl)??this.baseUrl,{...this.defaultHeaders,...(t==null?void 0:t.defaultHeaders)||{}},(t==null?void 0:t.requestInterceptor)??this.requestInterceptor,(t==null?void 0:t.responseInterceptor)??this.responseInterceptor)}}function Wd(e,t){const n={};for(const[r,a]of Object.entries(t))typeof a=="string"?n[r]=`${e}.${a}`:typeof a=="object"&&a!==null&&(n[r]=a);return n}function ba(e,t){if(!{}.hasOwnProperty.call(e,t))throw new TypeError("attempted to use private field on non-instance");return e}var R_e=0;function Hv(e){return"__private_"+R_e+++"_"+e}var ld=Hv("passport"),Dm=Hv("token"),$m=Hv("exchangeKey"),ud=Hv("userWorkspaces"),cd=Hv("user"),Lm=Hv("userId"),aA=Hv("isJsonAppliable");class Dr{get passport(){return ba(this,ld)[ld]}set passport(t){t instanceof rE?ba(this,ld)[ld]=t:ba(this,ld)[ld]=new rE(t)}setPassport(t){return this.passport=t,this}get token(){return ba(this,Dm)[Dm]}set token(t){ba(this,Dm)[Dm]=String(t)}setToken(t){return this.token=t,this}get exchangeKey(){return ba(this,$m)[$m]}set exchangeKey(t){ba(this,$m)[$m]=String(t)}setExchangeKey(t){return this.exchangeKey=t,this}get userWorkspaces(){return ba(this,ud)[ud]}set userWorkspaces(t){Array.isArray(t)&&(t.length>0&&t[0]instanceof Kb?ba(this,ud)[ud]=t:ba(this,ud)[ud]=t.map(n=>new Kb(n)))}setUserWorkspaces(t){return this.userWorkspaces=t,this}get user(){return ba(this,cd)[cd]}set user(t){t instanceof ia?ba(this,cd)[cd]=t:ba(this,cd)[cd]=new ia(t)}setUser(t){return this.user=t,this}get userId(){return ba(this,Lm)[Lm]}set userId(t){const n=typeof t=="string"||t===void 0||t===null;ba(this,Lm)[Lm]=n?t:String(t)}setUserId(t){return this.userId=t,this}constructor(t=void 0){if(Object.defineProperty(this,aA,{value:P_e}),Object.defineProperty(this,ld,{writable:!0,value:void 0}),Object.defineProperty(this,Dm,{writable:!0,value:""}),Object.defineProperty(this,$m,{writable:!0,value:""}),Object.defineProperty(this,ud,{writable:!0,value:[]}),Object.defineProperty(this,cd,{writable:!0,value:void 0}),Object.defineProperty(this,Lm,{writable:!0,value:void 0}),t!=null)if(typeof t=="string")this.applyFromObject(JSON.parse(t));else if(ba(this,aA)[aA](t))this.applyFromObject(t);else throw new Error("Instance cannot be created on an unknown value, check the content being passed. got: "+typeof t)}applyFromObject(t={}){const n=t;n.passport!==void 0&&(this.passport=n.passport),n.token!==void 0&&(this.token=n.token),n.exchangeKey!==void 0&&(this.exchangeKey=n.exchangeKey),n.userWorkspaces!==void 0&&(this.userWorkspaces=n.userWorkspaces),n.user!==void 0&&(this.user=n.user),n.userId!==void 0&&(this.userId=n.userId)}toJSON(){return{passport:ba(this,ld)[ld],token:ba(this,Dm)[Dm],exchangeKey:ba(this,$m)[$m],userWorkspaces:ba(this,ud)[ud],user:ba(this,cd)[cd],userId:ba(this,Lm)[Lm]}}toString(){return JSON.stringify(this)}static get Fields(){return{passport:"passport",token:"token",exchangeKey:"exchangeKey",userWorkspaces$:"userWorkspaces",get userWorkspaces(){return Wd("userWorkspaces[:i]",Kb.Fields)},user:"user",userId:"userId"}}static from(t){return new Dr(t)}static with(t){return new Dr(t)}copyWith(t){return new Dr({...this.toJSON(),...t})}clone(){return new Dr(this.toJSON())}}function P_e(e){const t=globalThis,n=typeof t.Buffer<"u"&&typeof t.Buffer.isBuffer=="function"&&t.Buffer.isBuffer(e),r=typeof t.Blob<"u"&&e instanceof t.Blob;return e&&typeof e=="object"&&!Array.isArray(e)&&!n&&!(e instanceof ArrayBuffer)&&!r}const Iee=ze.createContext({setToken(){},setSession(){},signout(){},ref:{token:""},isAuthenticated:!1});function A_e(){const e=localStorage.getItem("app_auth_state");if(e){try{const t=JSON.parse(e);return t?{...t}:{}}catch{}return{}}}const N_e=A_e();function N_(e){const t=R.useContext(Iee);R.useEffect(()=>{t.setToken(e||"")},[e])}function M_e({children:e}){const[t,n]=R.useState(N_e),r=()=>{n({token:""}),localStorage.removeItem("app_auth_state")},a=l=>{const u={...t,...l};n(u),localStorage.setItem("app_auth_state",JSON.stringify(u))},i=l=>{const u={...t,token:l};n(u),localStorage.setItem("app_auth_state",JSON.stringify(u))},o=!!(t!=null&&t.token);return w.jsx(Iee.Provider,{value:{signout:r,setSession:a,isAuthenticated:o,ref:t,setToken:i},children:e})}const I_e=()=>{var i;const e=xr(),t=At(),n=e.query.uniqueId;sr();const r=Mee({query:{uniqueId:n}});var a=(i=r.query.data)==null?void 0:i.data;return N_((a==null?void 0:a.type)||""),w.jsx(w.Fragment,{children:w.jsx(io,{editEntityHandler:()=>{e.push(gi.Navigation.edit(n))},getSingleHook:r,children:w.jsx(oo,{entity:a,fields:[{label:t.mailProvider.type,elem:w.jsx("span",{children:a==null?void 0:a.type})},{label:t.mailProvider.apiKey,elem:w.jsx("pre",{dir:"ltr",children:a==null?void 0:a.apiKey})}]})})})},D_e=e=>[{name:gi.Fields.uniqueId,title:e.table.uniqueId,width:200},{name:gi.Fields.type,title:e.mailProvider.type,width:200},{name:gi.Fields.apiKey,title:e.mailProvider.apiKey,width:200}];function ej({queryOptions:e,query:t,queryClient:n,execFnOverride:r,unauthorized:a,optionFn:i}){var k,_,A;const{options:o,execFn:l}=R.useContext(rt),u=i?i(o):o,d=r?r(u):l?l(u):St(u);let g=`${"/email-providers".substr(1)}?${qa.stringify(t)}`;const y=()=>d("GET",g),h=(k=u==null?void 0:u.headers)==null?void 0:k.authorization,v=h!="undefined"&&h!=null&&h!=null&&h!="null"&&!!h;let E=!0;!v&&!a&&(E=!1);const T=jn(["*abac.EmailProviderEntity",u,t],y,{cacheTime:1e3,retry:!1,keepPreviousData:!0,enabled:E,...e||{}}),C=((A=(_=T.data)==null?void 0:_.data)==null?void 0:A.items)||[];return{query:T,items:C,keyExtractor:P=>P.uniqueId}}ej.UKEY="*abac.EmailProviderEntity";function $_e(e){const{execFnOverride:t,queryClient:n,query:r}=e||{},{options:a,execFn:i}=R.useContext(rt),o=t?t(a):i?i(a):St(a);let u=`${"/email-provider".substr(1)}?${new URLSearchParams(Gt(r)).toString()}`;const f=un(h=>o("DELETE",u,h)),g=(h,v)=>h;return{mutation:f,submit:(h,v)=>new Promise((E,T)=>{f.mutate(h,{onSuccess(C){n==null||n.setQueryData("*abac.EmailProviderEntity",k=>g(k)),n==null||n.invalidateQueries("*abac.EmailProviderEntity"),E(C)},onError(C){v==null||v.setErrors(Pn(C)),T(C)}})}),fnUpdater:g}}const L_e=()=>{const e=At();return w.jsx(w.Fragment,{children:w.jsx(Uo,{columns:D_e(e),queryHook:ej,uniqueIdHrefHandler:t=>gi.Navigation.single(t),deleteHook:$_e})})},F_e=()=>{const e=At();return w.jsx(w.Fragment,{children:w.jsx(jo,{pageTitle:e.fbMenu.emailProviders,newEntityHandler:({locale:t,router:n})=>{n.push(gi.Navigation.create())},children:w.jsx(L_e,{})})})};function j_e(){return w.jsxs(w.Fragment,{children:[w.jsx(mt,{element:w.jsx(I5,{}),path:gi.Navigation.Rcreate}),w.jsx(mt,{element:w.jsx(I_e,{}),path:gi.Navigation.Rsingle}),w.jsx(mt,{element:w.jsx(I5,{}),path:gi.Navigation.Redit}),w.jsx(mt,{element:w.jsx(F_e,{}),path:gi.Navigation.Rquery})]})}class Ua extends wn{constructor(...t){super(...t),this.children=void 0,this.fromName=void 0,this.fromEmailAddress=void 0,this.replyTo=void 0,this.nickName=void 0}}Ua.Navigation={edit(e,t){return`${t?"/"+t:".."}/email-sender/edit/${e}`},create(e){return`${e?"/"+e:".."}/email-sender/new`},single(e,t){return`${t?"/"+t:".."}/email-sender/${e}`},query(e={},t){return`${t?"/"+t:".."}/email-senders`},Redit:"email-sender/edit/:uniqueId",Rcreate:"email-sender/new",Rsingle:"email-sender/:uniqueId",Rquery:"email-senders"};Ua.definition={rpc:{query:{}},permRewrite:{replace:"root.modules",with:"root.manage"},name:"emailSender",features:{},security:{writeOnRoot:!0},gormMap:{},fields:[{name:"fromName",type:"string",validate:"required",computedType:"string",gormMap:{}},{name:"fromEmailAddress",type:"string",validate:"required",computedType:"string",gorm:"unique",gormMap:{}},{name:"replyTo",type:"string",validate:"required",computedType:"string",gormMap:{}},{name:"nickName",type:"string",validate:"required",computedType:"string",gormMap:{}}],description:"All emails going from the system need to have a virtual sender (nick name, email address, etc)"};Ua.Fields={...wn.Fields,fromName:"fromName",fromEmailAddress:"fromEmailAddress",replyTo:"replyTo",nickName:"nickName"};function Dee({queryOptions:e,execFnOverride:t,query:n,queryClient:r,unauthorized:a}){var T;const{options:i,execFn:o}=R.useContext(rt),l=t?t(i):o?o(i):St(i);let d=`${"/email-sender/:uniqueId".substr(1)}?${new URLSearchParams(Gt(n)).toString()}`,f=!0;d=d.replace(":uniqueId",n[":uniqueId".replace(":","")]),n[":uniqueId".replace(":","")]===void 0&&(f=!1);const g=()=>l("GET",d),y=(T=i==null?void 0:i.headers)==null?void 0:T.authorization,h=y!="undefined"&&y!=null&&y!=null&&y!="null"&&!!y;let v=!0;return f?!h&&!a&&(v=!1):v=!1,{query:jn([i,n,"*abac.EmailSenderEntity"],g,{cacheTime:1001,retry:!1,keepPreviousData:!0,enabled:v,...e||{}})}}function U_e(e){let{queryClient:t,query:n,execFnOverride:r}=e||{};n=n||{};const{options:a,execFn:i}=R.useContext(rt),o=r?r(a):i?i(a):St(a);let u=`${"/email-sender".substr(1)}?${new URLSearchParams(Gt(n)).toString()}`;const f=un(h=>o("PATCH",u,h)),g=(h,v)=>{var E;return h?(h.data&&(v!=null&&v.data)&&(h.data.items=[v.data,...((E=h==null?void 0:h.data)==null?void 0:E.items)||[]]),h):{data:{items:[]}}};return{mutation:f,submit:(h,v)=>new Promise((E,T)=>{f.mutate(h,{onSuccess(C){t==null||t.setQueriesData("*abac.EmailSenderEntity",k=>g(k,C)),E(C)},onError(C){v==null||v.setErrors(Pn(C)),T(C)}})}),fnUpdater:g}}function B_e(e){let{queryClient:t,query:n,execFnOverride:r}=e||{};n=n||{};const{options:a,execFn:i}=R.useContext(rt),o=r?r(a):i?i(a):St(a);let u=`${"/email-sender".substr(1)}?${new URLSearchParams(Gt(n)).toString()}`;const f=un(h=>o("POST",u,h)),g=(h,v)=>{var E;return h?(h.data&&(v!=null&&v.data)&&(h.data.items=[v.data,...((E=h==null?void 0:h.data)==null?void 0:E.items)||[]]),h):{data:{items:[]}}};return{mutation:f,submit:(h,v)=>new Promise((E,T)=>{f.mutate(h,{onSuccess(C){t==null||t.setQueryData("*abac.EmailSenderEntity",k=>g(k,C)),E(C)},onError(C){v==null||v.setErrors(Pn(C)),T(C)}})}),fnUpdater:g}}const W_e=({form:e,isEditing:t})=>{const n=At(),{values:r,setFieldValue:a,errors:i}=e;return w.jsxs(w.Fragment,{children:[w.jsx(In,{value:r.fromEmailAddress,onChange:o=>a(Ua.Fields.fromEmailAddress,o,!1),autoFocus:!t,errorMessage:i.fromEmailAddress,label:n.mailProvider.fromEmailAddress,hint:n.mailProvider.fromEmailAddressHint}),w.jsx(In,{value:r.fromName,onChange:o=>a(Ua.Fields.fromName,o,!1),errorMessage:i.fromName,label:n.mailProvider.fromName,hint:n.mailProvider.fromNameHint}),w.jsx(In,{value:r.nickName,onChange:o=>a(Ua.Fields.nickName,o,!1),errorMessage:i.nickName,label:n.mailProvider.nickName,hint:n.mailProvider.nickNameHint}),w.jsx(In,{value:r.replyTo,onChange:o=>a(Ua.Fields.replyTo,o,!1),errorMessage:i.replyTo,label:n.mailProvider.replyTo,hint:n.mailProvider.replyToHint})]})},D5=({data:e})=>{const{router:t,uniqueId:n,queryClient:r,locale:a}=$r({data:e}),i=At(),o=Dee({query:{uniqueId:n}}),l=B_e({queryClient:r}),u=U_e({queryClient:r});return w.jsx(Bo,{postHook:l,getSingleHook:o,patchHook:u,onCancel:()=>{t.goBackOrDefault(Ua.Navigation.query(void 0,a))},onFinishUriResolver:(d,f)=>{var g;return Ua.Navigation.single((g=d.data)==null?void 0:g.uniqueId,f)},Form:W_e,onEditTitle:i.fb.editMailSender,onCreateTitle:i.fb.newMailSender,data:e})},z_e=()=>{var l;const e=xr(),t=At(),n=e.query.uniqueId;sr();const[r,a]=R.useState([]),i=Dee({query:{uniqueId:n}});var o=(l=i.query.data)==null?void 0:l.data;return N_((o==null?void 0:o.fromName)||""),w.jsx(w.Fragment,{children:w.jsx(io,{editEntityHandler:()=>{e.push(Ua.Navigation.edit(n))},getSingleHook:i,children:w.jsx(oo,{entity:o,fields:[{label:t.mailProvider.fromName,elem:o==null?void 0:o.fromName},{label:t.mailProvider.fromEmailAddress,elem:o==null?void 0:o.fromEmailAddress},{label:t.mailProvider.nickName,elem:o==null?void 0:o.nickName},{label:t.mailProvider.replyTo,elem:o==null?void 0:o.replyTo}]})})})},q_e=e=>[{name:Ua.Fields.uniqueId,title:e.table.uniqueId,width:200},{name:Ua.Fields.fromName,title:e.mailProvider.fromName,width:200},{name:Ua.Fields.fromEmailAddress,title:e.mailProvider.fromEmailAddress,width:200},{name:Ua.Fields.nickName,title:e.mailProvider.nickName,width:200},{name:Ua.Fields.replyTo,title:e.mailProvider.replyTo,width:200}];function $ee({queryOptions:e,query:t,queryClient:n,execFnOverride:r,unauthorized:a,optionFn:i}){var k,_,A;const{options:o,execFn:l}=R.useContext(rt),u=i?i(o):o,d=r?r(u):l?l(u):St(u);let g=`${"/email-senders".substr(1)}?${qa.stringify(t)}`;const y=()=>d("GET",g),h=(k=u==null?void 0:u.headers)==null?void 0:k.authorization,v=h!="undefined"&&h!=null&&h!=null&&h!="null"&&!!h;let E=!0;!v&&!a&&(E=!1);const T=jn(["*abac.EmailSenderEntity",u,t],y,{cacheTime:1e3,retry:!1,keepPreviousData:!0,enabled:E,...e||{}}),C=((A=(_=T.data)==null?void 0:_.data)==null?void 0:A.items)||[];return{query:T,items:C,keyExtractor:P=>P.uniqueId}}$ee.UKEY="*abac.EmailSenderEntity";function H_e(e){const{execFnOverride:t,queryClient:n,query:r}=e||{},{options:a,execFn:i}=R.useContext(rt),o=t?t(a):i?i(a):St(a);let u=`${"/email-sender".substr(1)}?${new URLSearchParams(Gt(r)).toString()}`;const f=un(h=>o("DELETE",u,h)),g=(h,v)=>h;return{mutation:f,submit:(h,v)=>new Promise((E,T)=>{f.mutate(h,{onSuccess(C){n==null||n.setQueryData("*abac.EmailSenderEntity",k=>g(k)),n==null||n.invalidateQueries("*abac.EmailSenderEntity"),E(C)},onError(C){v==null||v.setErrors(Pn(C)),T(C)}})}),fnUpdater:g}}const V_e=()=>{const e=At();return w.jsx(w.Fragment,{children:w.jsx(Uo,{columns:q_e(e),queryHook:$ee,uniqueIdHrefHandler:t=>Ua.Navigation.single(t),deleteHook:H_e})})},G_e=()=>{const e=At();return w.jsx(w.Fragment,{children:w.jsx(jo,{pageTitle:e.fbMenu.emailSenders,newEntityHandler:({locale:t,router:n})=>{n.push(Ua.Navigation.create())},children:w.jsx(V_e,{})})})};function Y_e(){return w.jsxs(w.Fragment,{children:[w.jsx(mt,{element:w.jsx(D5,{}),path:Ua.Navigation.Rcreate}),w.jsx(mt,{element:w.jsx(z_e,{}),path:Ua.Navigation.Rsingle}),w.jsx(mt,{element:w.jsx(D5,{}),path:Ua.Navigation.Redit}),w.jsx(mt,{element:w.jsx(G_e,{}),path:Ua.Navigation.Rquery})]})}const K_e={passportMethods:{clientKeyHint:"Klucz klienta dla metod takich jak Google, służący do autoryzacji OAuth2",archiveTitle:"Metody paszportowe",region:"Region",regionHint:"Region",type:"Typ",editPassportMethod:"Edytuj metodę paszportową",newPassportMethod:"Nowa metoda paszportowa",typeHint:"Typ",clientKey:"Klucz klienta"}},X_e={passportMethods:{archiveTitle:"Passport methods",clientKey:"Client Key",editPassportMethod:"Edit passport method",newPassportMethod:"New passport method",region:"Region",typeHint:"Type",clientKeyHint:"Client key for methods such as google, to authroize the oauth2",regionHint:"Region",type:"Type"}},BE={...K_e,$pl:X_e};class qi extends wn{constructor(...t){super(...t),this.children=void 0,this.type=void 0,this.region=void 0,this.clientKey=void 0}}qi.Navigation={edit(e,t){return`${t?"/"+t:".."}/passport-method/edit/${e}`},create(e){return`${e?"/"+e:".."}/passport-method/new`},single(e,t){return`${t?"/"+t:".."}/passport-method/${e}`},query(e={},t){return`${t?"/"+t:".."}/passport-methods`},Redit:"passport-method/edit/:uniqueId",Rcreate:"passport-method/new",Rsingle:"passport-method/:uniqueId",Rquery:"passport-methods"};qi.definition={rpc:{query:{}},permRewrite:{replace:"root.modules",with:"root.manage"},name:"passportMethod",features:{mock:!1,msync:!1},security:{writeOnRoot:!0,readOnRoot:!0,resolveStrategy:"workspace"},gormMap:{},fields:[{name:"type",type:"enum",validate:"oneof=email phone google facebook,required",of:[{k:"email",description:"Authenticate users using email"},{k:"phone",description:"Authenticat users using phone number, can be sms, calls, or whatsapp."},{k:"google",description:"Users can be authenticated using their google account"},{k:"facebook",description:"Users can be authenticated using their facebook account"}],computedType:'"email" | "phone" | "google" | "facebook"',gormMap:{}},{name:"region",description:"The region which would be using this method of passports for authentication. In Fireback open-source, only 'global' is available.",type:"enum",validate:"required,oneof=global",default:"global",of:[{k:"global"}],computedType:'"global"',gormMap:{}},{name:"clientKey",description:"Client key for those methods such as 'google' which require oauth client key",type:"string",computedType:"string",gormMap:{}}],cliShort:"method",description:"Login/Signup methods which are available in the app for different regions (Email, Phone Number, Google, etc)"};qi.Fields={...wn.Fields,type:"type",region:"region",clientKey:"clientKey"};const Q_e=e=>[{name:"uniqueId",title:"uniqueId",width:200},{name:qi.Fields.type,title:e.passportMethods.type,width:100},{name:qi.Fields.region,title:e.passportMethods.region,width:100}];function Lee({queryOptions:e,query:t,queryClient:n,execFnOverride:r,unauthorized:a,optionFn:i}){var k,_,A;const{options:o,execFn:l}=R.useContext(rt),u=i?i(o):o,d=r?r(u):l?l(u):St(u);let g=`${"/passport-methods".substr(1)}?${qa.stringify(t)}`;const y=()=>d("GET",g),h=(k=u==null?void 0:u.headers)==null?void 0:k.authorization,v=h!="undefined"&&h!=null&&h!=null&&h!="null"&&!!h;let E=!0;!v&&!a&&(E=!1);const T=jn(["*abac.PassportMethodEntity",u,t],y,{cacheTime:1e3,retry:!1,keepPreviousData:!0,enabled:E,...e||{}}),C=((A=(_=T.data)==null?void 0:_.data)==null?void 0:A.items)||[];return{query:T,items:C,keyExtractor:P=>P.uniqueId}}Lee.UKEY="*abac.PassportMethodEntity";function J_e(e){const{execFnOverride:t,queryClient:n,query:r}=e||{},{options:a,execFn:i}=R.useContext(rt),o=t?t(a):i?i(a):St(a);let u=`${"/passport-method".substr(1)}?${new URLSearchParams(Gt(r)).toString()}`;const f=un(h=>o("DELETE",u,h)),g=(h,v)=>h;return{mutation:f,submit:(h,v)=>new Promise((E,T)=>{f.mutate(h,{onSuccess(C){n==null||n.setQueryData("*abac.PassportMethodEntity",k=>g(k)),n==null||n.invalidateQueries("*abac.PassportMethodEntity"),E(C)},onError(C){v==null||v.setErrors(Pn(C)),T(C)}})}),fnUpdater:g}}const Z_e=()=>{const e=Kt(BE);return w.jsx(w.Fragment,{children:w.jsx(Uo,{columns:Q_e(e),queryHook:Lee,uniqueIdHrefHandler:t=>qi.Navigation.single(t),deleteHook:J_e})})},eOe=()=>{const e=Kt(BE);return w.jsx(jo,{pageTitle:e.passportMethods.archiveTitle,newEntityHandler:({locale:t,router:n})=>{n.push(qi.Navigation.create())},children:w.jsx(Z_e,{})})},tOe=({form:e,isEditing:t})=>{const{options:n}=R.useContext(rt),{values:r,setValues:a,setFieldValue:i,errors:o}=e,l=Kt(BE),u=zs([{name:"Google",uniqueId:"google"},{name:"Facebook",uniqueId:"facebook"},{name:"Email",uniqueId:"email"},{name:"Phone",uniqueId:"phone"}]);return w.jsxs(w.Fragment,{children:[w.jsx(da,{querySource:u,formEffect:{form:e,field:qi.Fields.type,beforeSet(d){return d.uniqueId}},keyExtractor:d=>d.uniqueId,fnLabelFormat:d=>d.name,errorMessage:o.type,label:l.passportMethods.type,hint:l.passportMethods.typeHint}),w.jsx(In,{value:r.region,onChange:d=>i(qi.Fields.region,d,!1),errorMessage:o.region,label:l.passportMethods.region,hint:l.passportMethods.regionHint}),r.type==="google"||r.type==="facebook"?w.jsx(In,{value:r.clientKey,onChange:d=>i(qi.Fields.clientKey,d,!1),errorMessage:o.clientKey,label:l.passportMethods.clientKey,hint:l.passportMethods.clientKeyHint}):null]})};function Fee({queryOptions:e,execFnOverride:t,query:n,queryClient:r,unauthorized:a}){var T;const{options:i,execFn:o}=R.useContext(rt),l=t?t(i):o?o(i):St(i);let d=`${"/passport-method/:uniqueId".substr(1)}?${new URLSearchParams(Gt(n)).toString()}`,f=!0;d=d.replace(":uniqueId",n[":uniqueId".replace(":","")]),n[":uniqueId".replace(":","")]===void 0&&(f=!1);const g=()=>l("GET",d),y=(T=i==null?void 0:i.headers)==null?void 0:T.authorization,h=y!="undefined"&&y!=null&&y!=null&&y!="null"&&!!y;let v=!0;return f?!h&&!a&&(v=!1):v=!1,{query:jn([i,n,"*abac.PassportMethodEntity"],g,{cacheTime:1001,retry:!1,keepPreviousData:!0,enabled:v,...e||{}})}}function nOe(e){let{queryClient:t,query:n,execFnOverride:r}=e||{};n=n||{};const{options:a,execFn:i}=R.useContext(rt),o=r?r(a):i?i(a):St(a);let u=`${"/passport-method".substr(1)}?${new URLSearchParams(Gt(n)).toString()}`;const f=un(h=>o("POST",u,h)),g=(h,v)=>{var E;return h?(h.data&&(v!=null&&v.data)&&(h.data.items=[v.data,...((E=h==null?void 0:h.data)==null?void 0:E.items)||[]]),h):{data:{items:[]}}};return{mutation:f,submit:(h,v)=>new Promise((E,T)=>{f.mutate(h,{onSuccess(C){t==null||t.setQueryData("*abac.PassportMethodEntity",k=>g(k,C)),E(C)},onError(C){v==null||v.setErrors(Pn(C)),T(C)}})}),fnUpdater:g}}function rOe(e){let{queryClient:t,query:n,execFnOverride:r}=e||{};n=n||{};const{options:a,execFn:i}=R.useContext(rt),o=r?r(a):i?i(a):St(a);let u=`${"/passport-method".substr(1)}?${new URLSearchParams(Gt(n)).toString()}`;const f=un(h=>o("PATCH",u,h)),g=(h,v)=>{var E;return h?(h.data&&(v!=null&&v.data)&&(h.data.items=[v.data,...((E=h==null?void 0:h.data)==null?void 0:E.items)||[]]),h):{data:{items:[]}}};return{mutation:f,submit:(h,v)=>new Promise((E,T)=>{f.mutate(h,{onSuccess(C){t==null||t.setQueriesData("*abac.PassportMethodEntity",k=>g(k,C)),E(C)},onError(C){v==null||v.setErrors(Pn(C)),T(C)}})}),fnUpdater:g}}const $5=({data:e})=>{const t=Kt(BE),{router:n,uniqueId:r,queryClient:a,locale:i}=$r({data:e}),o=Fee({query:{uniqueId:r}}),l=nOe({queryClient:a}),u=rOe({queryClient:a});return w.jsx(Bo,{postHook:l,patchHook:u,getSingleHook:o,onCancel:()=>{n.goBackOrDefault(qi.Navigation.query(void 0,i))},onFinishUriResolver:(d,f)=>{var g;return qi.Navigation.single((g=d.data)==null?void 0:g.uniqueId,f)},Form:tOe,onEditTitle:t.passportMethods.editPassportMethod,onCreateTitle:t.passportMethods.newPassportMethod,data:e})},aOe=()=>{var r;const{uniqueId:e}=$r({}),t=Fee({query:{uniqueId:e}});var n=(r=t.query.data)==null?void 0:r.data;return Kt(BE),w.jsx(w.Fragment,{children:w.jsx(io,{editEntityHandler:({locale:a,router:i})=>{i.push(qi.Navigation.edit(e))},getSingleHook:t,children:w.jsx(oo,{entity:n,fields:[]})})})};function iOe(){return w.jsxs(w.Fragment,{children:[w.jsx(mt,{element:w.jsx($5,{}),path:qi.Navigation.Rcreate}),w.jsx(mt,{element:w.jsx(aOe,{}),path:qi.Navigation.Rsingle}),w.jsx(mt,{element:w.jsx($5,{}),path:qi.Navigation.Redit}),w.jsx(mt,{element:w.jsx(eOe,{}),path:qi.Navigation.Rquery})]})}class ah extends wn{constructor(...t){super(...t),this.children=void 0,this.enableStripe=void 0,this.stripeSecretKey=void 0,this.stripeCallbackUrl=void 0}}ah.Navigation={edit(e,t){return`${t?"/"+t:".."}/payment-config/edit/${e}`},create(e){return`${e?"/"+e:".."}/payment-config/new`},single(e,t){return`${t?"/"+t:".."}/payment-config/${e}`},query(e={},t){return`${t?"/"+t:".."}/payment-configs`},Redit:"payment-config/edit/:uniqueId",Rcreate:"payment-config/new",Rsingle:"payment-config/:uniqueId",Rquery:"payment-configs"};ah.definition={rpc:{query:{}},permRewrite:{replace:"root.modules",with:"root.manage"},name:"paymentConfig",distinctBy:"workspace",features:{},security:{writeOnRoot:!0,readOnRoot:!0,resolveStrategy:"workspace"},gormMap:{},fields:[{name:"enableStripe",description:"Enables the stripe payment integration in the project",type:"bool?",computedType:"boolean",gormMap:{}},{name:"stripeSecretKey",description:"Stripe secret key to initiate a payment intent",type:"string",computedType:"string",gormMap:{}},{name:"stripeCallbackUrl",description:"The endpoint which the payment module will handle response coming back from stripe.",type:"string",computedType:"string",gormMap:{}}],description:"Contains the api keys, configuration, urls, callbacks for different payment gateways."};ah.Fields={...wn.Fields,enableStripe:"enableStripe",stripeSecretKey:"stripeSecretKey",stripeCallbackUrl:"stripeCallbackUrl"};function jee({queryOptions:e,execFnOverride:t,query:n,queryClient:r,unauthorized:a}){var E;const{options:i,execFn:o}=R.useContext(rt),l=t?t(i):o?o(i):St(i);let d=`${"/payment-config/distinct".substr(1)}?${new URLSearchParams(Gt(n)).toString()}`;const f=()=>l("GET",d),g=(E=i==null?void 0:i.headers)==null?void 0:E.authorization,y=g!="undefined"&&g!=null&&g!=null&&g!="null"&&!!g;let h=!0;return!y&&!a&&(h=!1),{query:jn([i,n,"*payment.PaymentConfigEntity"],f,{cacheTime:1001,retry:!1,keepPreviousData:!0,enabled:h,...e||{}})}}function oOe(e){let{queryClient:t,query:n,execFnOverride:r}=e||{};n=n||{};const{options:a,execFn:i}=R.useContext(rt),o=r?r(a):i?i(a):St(a);let u=`${"/payment-config/distinct".substr(1)}?${new URLSearchParams(Gt(n)).toString()}`;const f=un(h=>o("PATCH",u,h)),g=(h,v)=>{var E;return h?(h.data&&(v!=null&&v.data)&&(h.data.items=[v.data,...((E=h==null?void 0:h.data)==null?void 0:E.items)||[]]),h):{data:{items:[]}}};return{mutation:f,submit:(h,v)=>new Promise((E,T)=>{f.mutate(h,{onSuccess(C){t==null||t.setQueriesData("*payment.PaymentConfigEntity",k=>g(k,C)),E(C)},onError(C){v==null||v.setErrors(Pn(C)),T(C)}})}),fnUpdater:g}}const sOe={paymentConfigs:{stripeSecretKeyHint:"Stripe secret key is starting with sk_...",enableStripe:"Enable stripe",enableStripeHint:"Enable stripe",stripeCallbackUrl:"Stripe callback url",archiveTitle:"Payment configs",editPaymentConfig:"Edit payment config",newPaymentConfig:"New payment config",stripeCallbackUrlHint:"The url, which the payment success validator service is deployed, such as http://localhost:4500/payment/invoice",stripeSecretKey:"Stripe secret key"}},lOe={paymentConfigs:{enableStripe:"Włącz Stripe",newPaymentConfig:"Nowa konfiguracja płatności",stripeCallbackUrl:"URL zwrotny Stripe",stripeCallbackUrlHint:"URL, pod którym działa usługa weryfikująca powodzenie płatności, np. http://localhost:4500/payment/invoice",archiveTitle:"Konfiguracje płatności",editPaymentConfig:"Edytuj konfigurację płatności",enableStripeHint:"Włącz Stripe",stripeSecretKey:"Tajny klucz Stripe",stripeSecretKeyHint:"Tajny klucz Stripe zaczyna się od sk_..."}},tj={...sOe,$pl:lOe},El=e=>{const{placeholder:t,label:n,getInputRef:r,secureTextEntry:a,Icon:i,onChange:o,value:l,disabled:u,focused:d=!1,errorMessage:f,autoFocus:g,...y}=e,[h,v]=R.useState(!1),E=R.useRef(null),T=R.useCallback(()=>{var C;(C=E.current)==null||C.focus()},[E.current]);return w.jsx(rf,{focused:h,onClick:T,...e,label:"",children:w.jsxs("label",{className:"form-label mr-2",children:[w.jsx("input",{...y,ref:E,checked:!!l,type:"checkbox",onChange:C=>o&&o(!l),onBlur:()=>v(!1),onFocus:()=>v(!0),className:"form-checkbox"}),n]})})};function Do({title:e,children:t,className:n,description:r}){return w.jsxs("div",{className:oa("page-section",n),children:[e?w.jsx("h2",{className:"",children:e}):null,r?w.jsx("p",{className:"",children:r}):null,w.jsx("div",{className:"mt-4",children:t})]})}const uOe=({form:e,isEditing:t})=>{const{options:n}=R.useContext(rt),{values:r,setValues:a,setFieldValue:i,errors:o}=e,l=Kt(tj);return w.jsx(w.Fragment,{children:w.jsxs(Do,{title:"Stripe configuration",children:[w.jsx(El,{value:r.enableStripe,onChange:u=>i(ah.Fields.enableStripe,u,!1),errorMessage:o.enableStripe,label:l.paymentConfigs.enableStripe,hint:l.paymentConfigs.enableStripeHint}),w.jsx(In,{disabled:!r.enableStripe,value:r.stripeSecretKey,onChange:u=>i(ah.Fields.stripeSecretKey,u,!1),errorMessage:o.stripeSecretKey,label:l.paymentConfigs.stripeSecretKey,hint:l.paymentConfigs.stripeSecretKeyHint}),w.jsx(In,{disabled:!r.enableStripe,value:r.stripeCallbackUrl,onChange:u=>i(ah.Fields.stripeCallbackUrl,u,!1),errorMessage:o.stripeCallbackUrl,label:l.paymentConfigs.stripeCallbackUrl,hint:l.paymentConfigs.stripeCallbackUrlHint})]})})},cOe=({data:e})=>{const t=Kt(tj),{router:n,queryClient:r,locale:a}=$r({data:e}),o=jee({query:{uniqueId:"workspace"}}),l=oOe({queryClient:r});return w.jsx(Bo,{patchHook:l,forceEdit:!0,getSingleHook:o,onCancel:()=>{n.goBackOrDefault(ah.Navigation.query(void 0,a))},onFinishUriResolver:(u,d)=>{var f;return ah.Navigation.single((f=u.data)==null?void 0:f.uniqueId,d)},Form:uOe,onEditTitle:t.paymentConfigs.editPaymentConfig,onCreateTitle:t.paymentConfigs.newPaymentConfig,data:e})},dOe=()=>{var a;const{uniqueId:e}=$r({}),t=jee({query:{uniqueId:e}});var n=(a=t.query.data)==null?void 0:a.data;const r=Kt(tj);return w.jsx(w.Fragment,{children:w.jsx(io,{editEntityHandler:({locale:i,router:o})=>{o.push("../config/edit")},getSingleHook:t,children:w.jsx(oo,{entity:n,fields:[{elem:n==null?void 0:n.stripeSecretKey,label:r.paymentConfigs.stripeSecretKey},{elem:n==null?void 0:n.stripeCallbackUrl,label:r.paymentConfigs.stripeCallbackUrl}]})})})};function fOe(){return w.jsxs(w.Fragment,{children:[w.jsx(mt,{element:w.jsx(cOe,{}),path:"config/edit"}),w.jsx(mt,{element:w.jsx(dOe,{}),path:"config"})]})}const pOe={invoices:{amountHint:"Amount",archiveTitle:"Invoices",newInvoice:"New invoice",titleHint:"Title",amount:"Amount",editInvoice:"Edit invoice",finalStatus:"Final status",finalStatusHint:"Final status",title:"Title"}},hOe={invoices:{amount:"Kwota",amountHint:"Kwota",finalStatus:"Status końcowy",newInvoice:"Nowa faktura",titleHint:"Tytuł",archiveTitle:"Faktury",editInvoice:"Edytuj fakturę",finalStatusHint:"Status końcowy",title:"Tytuł"}},WE={...pOe,$pl:hOe};class bi extends wn{constructor(...t){super(...t),this.children=void 0,this.title=void 0,this.titleExcerpt=void 0,this.amount=void 0,this.notificationKey=void 0,this.redirectAfterSuccess=void 0,this.finalStatus=void 0}}bi.Navigation={edit(e,t){return`${t?"/"+t:".."}/invoice/edit/${e}`},create(e){return`${e?"/"+e:".."}/invoice/new`},single(e,t){return`${t?"/"+t:".."}/invoice/${e}`},query(e={},t){return`${t?"/"+t:".."}/invoices`},Redit:"invoice/edit/:uniqueId",Rcreate:"invoice/new",Rsingle:"invoice/:uniqueId",Rquery:"invoices"};bi.definition={rpc:{query:{}},permRewrite:{replace:"root.modules",with:"root.manage"},name:"invoice",features:{},security:{writeOnRoot:!0,readOnRoot:!0},gormMap:{},fields:[{name:"title",description:"Explanation about the invoice, the reason someone needs to pay",type:"text",validate:"required",computedType:"string",gormMap:{}},{name:"amount",description:"Amount of the invoice which has to be payed",type:"money?",validate:"required",computedType:"{amount: number, currency: string, formatted?: string}",gormMap:{}},{name:"notificationKey",description:"The unique key, when an event related to the invoice happened it would be triggered. For example if another module wants to initiate the payment, and after payment success, wants to run some code, it would be listening to invoice events and notificationKey will come.",type:"string",computedType:"string",gormMap:{}},{name:"redirectAfterSuccess",description:"When the payment is successful, it might use this url to make a redirect.",type:"string",computedType:"string",gormMap:{}},{name:"finalStatus",description:"Final status of the invoice from a accounting perspective",type:"enum",validate:"required",of:[{k:"payed",description:"Payed"},{k:"pending",description:"Pending"}],computedType:'"payed" | "pending"',gormMap:{}}],description:"Invoice is a billable value, which a party recieves, and needs to pay it by different means. Invoice keeps information such as reason, total amount, tax amount and other details. An invoice can be payed via different payment methods."};bi.Fields={...wn.Fields,title:"title",amount:"amount",notificationKey:"notificationKey",redirectAfterSuccess:"redirectAfterSuccess",finalStatus:"finalStatus"};const mOe=e=>[{name:"uniqueId",title:"uniqueId",width:200},{name:bi.Fields.title,title:e.invoices.title,width:100},{name:bi.Fields.amount,title:e.invoices.amount,width:100,getCellValue:t=>{var n;return(n=t.amount)==null?void 0:n.formatted}},{name:bi.Fields.finalStatus,title:e.invoices.finalStatus,width:100}];function Uee({queryOptions:e,query:t,queryClient:n,execFnOverride:r,unauthorized:a,optionFn:i}){var k,_,A;const{options:o,execFn:l}=R.useContext(rt),u=i?i(o):o,d=r?r(u):l?l(u):St(u);let g=`${"/invoices".substr(1)}?${qa.stringify(t)}`;const y=()=>d("GET",g),h=(k=u==null?void 0:u.headers)==null?void 0:k.authorization,v=h!="undefined"&&h!=null&&h!=null&&h!="null"&&!!h;let E=!0;!v&&!a&&(E=!1);const T=jn(["*payment.InvoiceEntity",u,t],y,{cacheTime:1e3,retry:!1,keepPreviousData:!0,enabled:E,...e||{}}),C=((A=(_=T.data)==null?void 0:_.data)==null?void 0:A.items)||[];return{query:T,items:C,keyExtractor:P=>P.uniqueId}}Uee.UKEY="*payment.InvoiceEntity";function gOe(e){const{execFnOverride:t,queryClient:n,query:r}=e||{},{options:a,execFn:i}=R.useContext(rt),o=t?t(a):i?i(a):St(a);let u=`${"/invoice".substr(1)}?${new URLSearchParams(Gt(r)).toString()}`;const f=un(h=>o("DELETE",u,h)),g=(h,v)=>h;return{mutation:f,submit:(h,v)=>new Promise((E,T)=>{f.mutate(h,{onSuccess(C){n==null||n.setQueryData("*payment.InvoiceEntity",k=>g(k)),n==null||n.invalidateQueries("*payment.InvoiceEntity"),E(C)},onError(C){v==null||v.setErrors(Pn(C)),T(C)}})}),fnUpdater:g}}const vOe=()=>{const e=Kt(WE);return w.jsx(w.Fragment,{children:w.jsx(Uo,{columns:mOe(e),queryHook:Uee,uniqueIdHrefHandler:t=>bi.Navigation.single(t),deleteHook:gOe})})},yOe=()=>{const e=Kt(WE);return w.jsx(jo,{pageTitle:e.invoices.archiveTitle,newEntityHandler:({locale:t,router:n})=>{n.push(bi.Navigation.create())},children:w.jsx(vOe,{})})};var hr=function(){return hr=Object.assign||function(t){for(var n,r=1,a=arguments.length;r1){if(n===0)return e.replace(t,"");if(e.includes(t)){var r=e.split(t),a=r[0],i=r[1];if(i.length===n)return e;if(i.length>n)return"".concat(a).concat(t).concat(i.slice(0,n))}var o=e.length>n?new RegExp("(\\d+)(\\d{".concat(n,"})")):new RegExp("(\\d)(\\d+)"),l=e.match(o);if(l){var a=l[1],i=l[2];return"".concat(a).concat(t).concat(i)}}return e},Bee=function(e,t){var n=t.groupSeparator,r=n===void 0?",":n,a=t.decimalSeparator,i=a===void 0?".":a,o=new RegExp("\\d([^".concat(_c(r)).concat(_c(i),"0-9]+)")),l=e.match(o);return l?l[1]:void 0},A1=function(e){var t=e.value,n=e.decimalSeparator,r=e.intlConfig,a=e.decimalScale,i=e.prefix,o=i===void 0?"":i,l=e.suffix,u=l===void 0?"":l;if(t===""||t===void 0)return"";if(t==="-")return"-";var d=new RegExp("^\\d?-".concat(o?"".concat(_c(o),"?"):"","\\d")).test(t),f=n!=="."?COe(t,n,d):t;n&&n!=="-"&&f.startsWith(n)&&(f="0"+f);var g=r||{},y=g.locale,h=g.currency,v=nj(g,["locale","currency"]),E=hr(hr({},v),{minimumFractionDigits:a||0,maximumFractionDigits:20}),T=r?new Intl.NumberFormat(y,hr(hr({},E),h&&{style:"currency",currency:h})):new Intl.NumberFormat(void 0,E),C=T.formatToParts(Number(f)),k=kOe(C,e),_=Bee(k,hr({},e)),A=t.slice(-1)===n?n:"",P=f.match(RegExp("\\d+\\.(\\d+)"))||[],N=P[1];return a===void 0&&N&&n&&(k.includes(n)?k=k.replace(RegExp("(\\d+)(".concat(_c(n),")(\\d+)"),"g"),"$1$2".concat(N)):_&&!u?k=k.replace(_,"".concat(n).concat(N).concat(_)):k="".concat(k).concat(n).concat(N)),u&&A?"".concat(k).concat(A).concat(u):_&&A?k.replace(_,"".concat(A).concat(_)):_&&u?k.replace(_,"".concat(A).concat(u)):[k,A,u].join("")},COe=function(e,t,n){var r=e;return t&&t!=="."&&(r=r.replace(RegExp(_c(t),"g"),"."),n&&t==="-"&&(r="-".concat(r.slice(1)))),r},kOe=function(e,t){var n=t.prefix,r=t.groupSeparator,a=t.decimalSeparator,i=t.decimalScale,o=t.disableGroupSeparators,l=o===void 0?!1:o;return e.reduce(function(u,d,f){var g=d.type,y=d.value;return f===0&&n?g==="minusSign"?[y,n]:g==="currency"?As(As([],u,!0),[n],!1):[n,y]:g==="currency"?n?u:As(As([],u,!0),[y],!1):g==="group"?l?u:As(As([],u,!0),[r!==void 0?r:y],!1):g==="decimal"?i!==void 0&&i===0?u:As(As([],u,!0),[a!==void 0?a:y],!1):g==="fraction"?As(As([],u,!0),[i!==void 0?y.slice(0,i):y],!1):As(As([],u,!0),[y],!1)},[""]).join("")},xOe={currencySymbol:"",groupSeparator:"",decimalSeparator:"",prefix:"",suffix:""},_Oe=function(e){var t=e||{},n=t.locale,r=t.currency,a=nj(t,["locale","currency"]),i=n?new Intl.NumberFormat(n,hr(hr({},a),r&&{currency:r,style:"currency"})):new Intl.NumberFormat;return i.formatToParts(1000.1).reduce(function(o,l,u){return l.type==="currency"?u===0?hr(hr({},o),{currencySymbol:l.value,prefix:l.value}):hr(hr({},o),{currencySymbol:l.value,suffix:l.value}):l.type==="group"?hr(hr({},o),{groupSeparator:l.value}):l.type==="decimal"?hr(hr({},o),{decimalSeparator:l.value}):o},xOe)},L5=function(e){return RegExp(/\d/,"gi").test(e)},OOe=function(e,t,n){if(n===void 0||t===""||t===void 0||e===""||e===void 0)return e;if(!e.match(/\d/g))return"";var r=e.split(t),a=r[0],i=r[1];if(n===0)return a;var o=i||"";if(o.lengthv)){if(_t===""||_t==="-"||_t===ue){T&&T(void 0,l,{float:null,formatted:"",value:""}),tt(_t),Rt(1);return}var Ut=ue?_t.replace(ue,"."):_t,_n=parseFloat(Ut),gn=A1(hr({value:_t},fe));if(Lt!=null){var ln=Lt+(gn.length-Mt.length);ln=ln<=0?A?A.length:0:ln,Rt(ln),Wt(qt+1)}if(tt(gn),T){var Bn={float:_n,formatted:gn,value:_t};T(_t,l,Bn)}}},U=function(Mt){var be=Mt.target,Ee=be.value,gt=be.selectionStart;Nt(Ee,gt),W&&W(Mt)},D=function(Mt){return G&&G(Mt),qe?qe.length:0},F=function(Mt){var be=Mt.target.value,Ee=iA(hr({value:be},xe));if(Ee==="-"||Ee===ue||!Ee){tt(""),q&&q(Mt);return}var gt=TOe(Ee,ue,C),Lt=OOe(gt,ue,_!==void 0?_:C),_t=ue?Lt.replace(ue,"."):Lt,Ut=parseFloat(_t),_n=A1(hr(hr({},fe),{value:Lt}));T&&J&&T(Lt,l,{float:Ut,formatted:_n,value:Lt}),tt(_n),q&&q(Mt)},ae=function(Mt){var be=Mt.key;if(ft(be),I&&(be==="ArrowUp"||be==="ArrowDown")){Mt.preventDefault(),Rt(qe.length);var Ee=E!=null?String(E):void 0,gt=ue&&Ee?Ee.replace(ue,"."):Ee,Lt=parseFloat(gt??iA(hr({value:qe},xe)))||0,_t=be==="ArrowUp"?Lt+I:Lt-I;if(L!==void 0&&_tNumber(j))return;var Ut=String(I).includes(".")?Number(String(I).split(".")[1].length):void 0;Nt(String(Ut?_t.toFixed(Ut):_t).replace(".",ue))}ce&&ce(Mt)},Te=function(Mt){var be=Mt.key,Ee=Mt.currentTarget.selectionStart;if(be!=="ArrowUp"&&be!=="ArrowDown"&&qe!=="-"){var gt=Bee(qe,{groupSeparator:ke,decimalSeparator:ue});if(gt&&Ee&&Ee>qe.length-gt.length&&ut.current){var Lt=qe.length-gt.length;ut.current.setSelectionRange(Lt,Lt)}}H&&H(Mt)};R.useEffect(function(){E==null&&g==null&&tt("")},[g,E]),R.useEffect(function(){at&&qe!=="-"&&ut.current&&document.activeElement===ut.current&&ut.current.setSelectionRange(xt,xt)},[qe,xt,ut,at,qt]);var Fe=function(){return E!=null&&qe!=="-"&&(!ue||qe!==ue)?A1(hr(hr({},fe),{decimalScale:at?void 0:_,value:String(E)})):qe},We=hr({type:"text",inputMode:"decimal",id:o,name:l,className:u,onChange:U,onBlur:F,onFocus:D,onKeyDown:ae,onKeyUp:Te,placeholder:k,disabled:h,value:Fe(),ref:ut},ee);if(d){var Tt=d;return ze.createElement(Tt,hr({},We))}return ze.createElement("input",hr({},We))});Wee.displayName="CurrencyInput";const POe=e=>{const{placeholder:t,onChange:n,value:r,...a}=e,[i,o]=R.useState(()=>(r==null?void 0:r.amount)!=null?r.amount.toString():"");R.useEffect(()=>{const d=(r==null?void 0:r.amount)!=null?r.amount.toString():"";d!==i&&o(d)},[r==null?void 0:r.amount]);const l=d=>{const f=parseFloat(d);isNaN(f)||n==null||n({...r,amount:f})},u=d=>{const f=d||"";o(f),f.trim()!==""&&l(f)};return w.jsx(rf,{...a,children:w.jsxs("div",{className:"flex gap-2 items-center",style:{flexDirection:"row",display:"flex"},children:[w.jsx(Wee,{placeholder:t,value:i,decimalsLimit:2,className:oa("form-control",e.errorMessage&&"is-invalid",e.validMessage&&"is-valid"),onValueChange:u}),w.jsxs("select",{value:r==null?void 0:r.currency,onChange:d=>n==null?void 0:n({...r,currency:d.target.value}),className:"form-select w-24",style:{width:"110px"},children:[w.jsx("option",{value:"USD",children:"USD"}),w.jsx("option",{value:"PLN",children:"PLN"}),w.jsx("option",{value:"EUR",children:"EUR"})]})]})})},AOe=({form:e,isEditing:t})=>{const{options:n}=R.useContext(rt),{values:r,setValues:a,setFieldValue:i,errors:o}=e,l=Kt(WE);return w.jsxs(w.Fragment,{children:[w.jsx(In,{value:r.title,onChange:u=>i(bi.Fields.title,u,!1),errorMessage:o.title,label:l.invoices.title,hint:l.invoices.titleHint}),w.jsx(POe,{value:r.amount,onChange:u=>i(bi.Fields.amount,u,!1),label:l.invoices.amount,hint:l.invoices.amountHint}),w.jsx(In,{value:r.finalStatus,onChange:u=>i(bi.Fields.finalStatus,u,!1),errorMessage:o.finalStatus,label:l.invoices.finalStatus,hint:l.invoices.finalStatusHint})]})};function zee({queryOptions:e,execFnOverride:t,query:n,queryClient:r,unauthorized:a}){var T;const{options:i,execFn:o}=R.useContext(rt),l=t?t(i):o?o(i):St(i);let d=`${"/invoice/:uniqueId".substr(1)}?${new URLSearchParams(Gt(n)).toString()}`,f=!0;d=d.replace(":uniqueId",n[":uniqueId".replace(":","")]),n[":uniqueId".replace(":","")]===void 0&&(f=!1);const g=()=>l("GET",d),y=(T=i==null?void 0:i.headers)==null?void 0:T.authorization,h=y!="undefined"&&y!=null&&y!=null&&y!="null"&&!!y;let v=!0;return f?!h&&!a&&(v=!1):v=!1,{query:jn([i,n,"*payment.InvoiceEntity"],g,{cacheTime:1001,retry:!1,keepPreviousData:!0,enabled:v,...e||{}})}}function NOe(e){let{queryClient:t,query:n,execFnOverride:r}=e||{};n=n||{};const{options:a,execFn:i}=R.useContext(rt),o=r?r(a):i?i(a):St(a);let u=`${"/invoice".substr(1)}?${new URLSearchParams(Gt(n)).toString()}`;const f=un(h=>o("POST",u,h)),g=(h,v)=>{var E;return h?(h.data&&(v!=null&&v.data)&&(h.data.items=[v.data,...((E=h==null?void 0:h.data)==null?void 0:E.items)||[]]),h):{data:{items:[]}}};return{mutation:f,submit:(h,v)=>new Promise((E,T)=>{f.mutate(h,{onSuccess(C){t==null||t.setQueryData("*payment.InvoiceEntity",k=>g(k,C)),E(C)},onError(C){v==null||v.setErrors(Pn(C)),T(C)}})}),fnUpdater:g}}function MOe(e){let{queryClient:t,query:n,execFnOverride:r}=e||{};n=n||{};const{options:a,execFn:i}=R.useContext(rt),o=r?r(a):i?i(a):St(a);let u=`${"/invoice".substr(1)}?${new URLSearchParams(Gt(n)).toString()}`;const f=un(h=>o("PATCH",u,h)),g=(h,v)=>{var E;return h?(h.data&&(v!=null&&v.data)&&(h.data.items=[v.data,...((E=h==null?void 0:h.data)==null?void 0:E.items)||[]]),h):{data:{items:[]}}};return{mutation:f,submit:(h,v)=>new Promise((E,T)=>{f.mutate(h,{onSuccess(C){t==null||t.setQueriesData("*payment.InvoiceEntity",k=>g(k,C)),E(C)},onError(C){v==null||v.setErrors(Pn(C)),T(C)}})}),fnUpdater:g}}const F5=({data:e})=>{const t=Kt(WE),{router:n,uniqueId:r,queryClient:a,locale:i}=$r({data:e}),o=zee({query:{uniqueId:r}}),l=NOe({queryClient:a}),u=MOe({queryClient:a});return w.jsx(Bo,{postHook:l,patchHook:u,getSingleHook:o,onCancel:()=>{n.goBackOrDefault(bi.Navigation.query(void 0,i))},onFinishUriResolver:(d,f)=>{var g;return bi.Navigation.single((g=d.data)==null?void 0:g.uniqueId,f)},Form:AOe,onEditTitle:t.invoices.editInvoice,onCreateTitle:t.invoices.newInvoice,data:e})},IOe=()=>{var i,o;const{uniqueId:e}=$r({}),t=zee({query:{uniqueId:e}});var n=(i=t.query.data)==null?void 0:i.data;const r=Kt(WE),a=l=>{window.open(`http://localhost:4500/payment/invoice/${l}`,"_blank")};return w.jsx(w.Fragment,{children:w.jsx(io,{editEntityHandler:({locale:l,router:u})=>{u.push(bi.Navigation.edit(e))},getSingleHook:t,children:w.jsx(oo,{entity:n,fields:[{elem:n==null?void 0:n.title,label:r.invoices.title},{elem:(o=n==null?void 0:n.amount)==null?void 0:o.formatted,label:r.invoices.amount},{elem:w.jsx(w.Fragment,{children:w.jsx("button",{className:"btn btn-small",onClick:()=>a(e),children:"Pay now"})}),label:"Actions"}]})})})};function DOe(){return w.jsxs(w.Fragment,{children:[w.jsx(mt,{element:w.jsx(F5,{}),path:bi.Navigation.Rcreate}),w.jsx(mt,{element:w.jsx(IOe,{}),path:bi.Navigation.Rsingle}),w.jsx(mt,{element:w.jsx(F5,{}),path:bi.Navigation.Redit}),w.jsx(mt,{element:w.jsx(yOe,{}),path:bi.Navigation.Rquery})]})}function $Oe(){const e=fOe(),t=DOe();return w.jsxs(mt,{path:"payment",children:[e,t]})}const LOe={regionalContents:{titleHint:"Title",archiveTitle:"Regional contents",keyGroup:"Key group",languageId:"Language id",regionHint:"Region",title:"Title",content:"Content",contentHint:"Content",editRegionalContent:"Edit regional content",keyGroupHint:"Key group",languageIdHint:"Language id",newRegionalContent:"New regional content",region:"Region"}},FOe={regionalContents:{editRegionalContent:"Edytuj treść regionalną",keyGroup:"Grupa kluczy",keyGroupHint:"Grupa kluczy",languageId:"Identyfikator języka",region:"Region",title:"Tytuł",titleHint:"Tytuł",archiveTitle:"Treści regionalne",content:"Treść",contentHint:"Treść",languageIdHint:"Identyfikator języka",newRegionalContent:"Nowa treść regionalna",regionHint:"Region"}},zE={...LOe,$pl:FOe};class Wr extends wn{constructor(...t){super(...t),this.children=void 0,this.content=void 0,this.contentExcerpt=void 0,this.region=void 0,this.title=void 0,this.languageId=void 0,this.keyGroup=void 0}}Wr.Navigation={edit(e,t){return`${t?"/"+t:".."}/regional-content/edit/${e}`},create(e){return`${e?"/"+e:".."}/regional-content/new`},single(e,t){return`${t?"/"+t:".."}/regional-content/${e}`},query(e={},t){return`${t?"/"+t:".."}/regional-contents`},Redit:"regional-content/edit/:uniqueId",Rcreate:"regional-content/new",Rsingle:"regional-content/:uniqueId",Rquery:"regional-contents"};Wr.definition={rpc:{query:{}},permRewrite:{replace:"root.modules",with:"root.manage"},name:"regionalContent",features:{},security:{writeOnRoot:!0},gormMap:{},fields:[{name:"content",type:"html",validate:"required",computedType:"string",gormMap:{}},{name:"region",type:"string",validate:"required",computedType:"string",gormMap:{}},{name:"title",type:"string",computedType:"string",gormMap:{}},{name:"languageId",type:"string",validate:"required",computedType:"string",gorm:"index:regional_content_index,unique",gormMap:{}},{name:"keyGroup",type:"enum",validate:"required",of:[{k:"SMS_OTP",description:"Used when an email would be sent with one time password"},{k:"EMAIL_OTP",description:"Used when an sms would be sent with one time password"}],computedType:'"SMS_OTP" | "EMAIL_OTP"',gorm:"index:regional_content_index,unique",gormMap:{}}],cliShort:"rc",description:"Email templates, sms templates or other textual content which can be accessed."};Wr.Fields={...wn.Fields,content:"content",region:"region",title:"title",languageId:"languageId",keyGroup:"keyGroup"};const jOe=e=>[{name:"uniqueId",title:"uniqueId",width:200},{name:Wr.Fields.content,title:e.regionalContents.content,width:100},{name:Wr.Fields.region,title:e.regionalContents.region,width:100},{name:Wr.Fields.title,title:e.regionalContents.title,width:100},{name:Wr.Fields.languageId,title:e.regionalContents.languageId,width:100},{name:Wr.Fields.keyGroup,title:e.regionalContents.keyGroup,width:100}];function _S({queryOptions:e,query:t,queryClient:n,execFnOverride:r,unauthorized:a,optionFn:i}){var k,_,A;const{options:o,execFn:l}=R.useContext(rt),u=i?i(o):o,d=r?r(u):l?l(u):St(u);let g=`${"/regional-contents".substr(1)}?${qa.stringify(t)}`;const y=()=>d("GET",g),h=(k=u==null?void 0:u.headers)==null?void 0:k.authorization,v=h!="undefined"&&h!=null&&h!=null&&h!="null"&&!!h;let E=!0;!v&&!a&&(E=!1);const T=jn(["*abac.RegionalContentEntity",u,t],y,{cacheTime:1e3,retry:!1,keepPreviousData:!0,enabled:E,...e||{}}),C=((A=(_=T.data)==null?void 0:_.data)==null?void 0:A.items)||[];return{query:T,items:C,keyExtractor:P=>P.uniqueId}}_S.UKEY="*abac.RegionalContentEntity";function UOe(e){const{execFnOverride:t,queryClient:n,query:r}=e||{},{options:a,execFn:i}=R.useContext(rt),o=t?t(a):i?i(a):St(a);let u=`${"/regional-content".substr(1)}?${new URLSearchParams(Gt(r)).toString()}`;const f=un(h=>o("DELETE",u,h)),g=(h,v)=>h;return{mutation:f,submit:(h,v)=>new Promise((E,T)=>{f.mutate(h,{onSuccess(C){n==null||n.setQueryData("*abac.RegionalContentEntity",k=>g(k)),n==null||n.invalidateQueries("*abac.RegionalContentEntity"),E(C)},onError(C){v==null||v.setErrors(Pn(C)),T(C)}})}),fnUpdater:g}}const BOe=()=>{const e=Kt(zE);return w.jsx(w.Fragment,{children:w.jsx(Uo,{columns:jOe(e),queryHook:_S,uniqueIdHrefHandler:t=>Wr.Navigation.single(t),deleteHook:UOe})})},WOe=()=>{const e=Kt(zE);return w.jsx(jo,{pageTitle:e.regionalContents.archiveTitle,newEntityHandler:({locale:t,router:n})=>{n.push(Wr.Navigation.create())},children:w.jsx(BOe,{})})};var r3=function(){return r3=Object.assign||function(e){for(var t,n=1,r=arguments.length;n"u"||e===""?[]:Array.isArray(e)?e:e.split(" ")},VOe=function(e,t){return z5(e).concat(z5(t))},GOe=function(){return window.InputEvent&&typeof InputEvent.prototype.getTargetRanges=="function"},YOe=function(e){if(!("isConnected"in Node.prototype)){for(var t=e,n=e.parentNode;n!=null;)t=n,n=t.parentNode;return t===e.ownerDocument}return e.isConnected},q5=function(e,t){e!==void 0&&(e.mode!=null&&typeof e.mode=="object"&&typeof e.mode.set=="function"?e.mode.set(t):e.setMode(t))},a3=function(){return a3=Object.assign||function(e){for(var t,n=1,r=arguments.length;n0?setTimeout(d,o):d()},r=function(){for(var a=e.pop();a!=null;a=e.pop())a.deleteScripts()};return{loadList:n,reinitialize:r}},JOe=QOe(),sA=function(e){var t=e;return t&&t.tinymce?t.tinymce:null},ZOe=(function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,a){r.__proto__=a}||function(r,a){for(var i in a)Object.prototype.hasOwnProperty.call(a,i)&&(r[i]=a[i])},e(t,n)};return function(t,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}})(),$x=function(){return $x=Object.assign||function(e){for(var t,n=1,r=arguments.length;n0)throw new Error("Invalid string. Length must be a multiple of 4");var E=h.indexOf("=");E===-1&&(E=v);var T=E===v?0:4-E%4;return[E,T]}function l(h){var v=o(h),E=v[0],T=v[1];return(E+T)*3/4-T}function u(h,v,E){return(v+E)*3/4-E}function d(h){var v,E=o(h),T=E[0],C=E[1],k=new n(u(h,T,C)),_=0,A=C>0?T-4:T,P;for(P=0;P>16&255,k[_++]=v>>8&255,k[_++]=v&255;return C===2&&(v=t[h.charCodeAt(P)]<<2|t[h.charCodeAt(P+1)]>>4,k[_++]=v&255),C===1&&(v=t[h.charCodeAt(P)]<<10|t[h.charCodeAt(P+1)]<<4|t[h.charCodeAt(P+2)]>>2,k[_++]=v>>8&255,k[_++]=v&255),k}function f(h){return e[h>>18&63]+e[h>>12&63]+e[h>>6&63]+e[h&63]}function g(h,v,E){for(var T,C=[],k=v;kA?A:_+k));return T===1?(v=h[E-1],C.push(e[v>>2]+e[v<<4&63]+"==")):T===2&&(v=(h[E-2]<<8)+h[E-1],C.push(e[v>>10]+e[v>>4&63]+e[v<<2&63]+"=")),C.join("")}return N1}var fk={};/*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh */var V5;function nRe(){return V5||(V5=1,fk.read=function(e,t,n,r,a){var i,o,l=a*8-r-1,u=(1<>1,f=-7,g=n?a-1:0,y=n?-1:1,h=e[t+g];for(g+=y,i=h&(1<<-f)-1,h>>=-f,f+=l;f>0;i=i*256+e[t+g],g+=y,f-=8);for(o=i&(1<<-f)-1,i>>=-f,f+=r;f>0;o=o*256+e[t+g],g+=y,f-=8);if(i===0)i=1-d;else{if(i===u)return o?NaN:(h?-1:1)*(1/0);o=o+Math.pow(2,r),i=i-d}return(h?-1:1)*o*Math.pow(2,i-r)},fk.write=function(e,t,n,r,a,i){var o,l,u,d=i*8-a-1,f=(1<>1,y=a===23?Math.pow(2,-24)-Math.pow(2,-77):0,h=r?0:i-1,v=r?1:-1,E=t<0||t===0&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(l=isNaN(t)?1:0,o=f):(o=Math.floor(Math.log(t)/Math.LN2),t*(u=Math.pow(2,-o))<1&&(o--,u*=2),o+g>=1?t+=y/u:t+=y*Math.pow(2,1-g),t*u>=2&&(o++,u/=2),o+g>=f?(l=0,o=f):o+g>=1?(l=(t*u-1)*Math.pow(2,a),o=o+g):(l=t*Math.pow(2,g-1)*Math.pow(2,a),o=0));a>=8;e[n+h]=l&255,h+=v,l/=256,a-=8);for(o=o<0;e[n+h]=o&255,h+=v,o/=256,d-=8);e[n+h-v]|=E*128}),fk}/*! +`]))),vxe=function(t,n){var r=t.isFocused,a=t.size,i=t.theme,o=i.colors,l=i.spacing.baseUnit;return Jt({label:"loadingIndicator",display:"flex",transition:"color 150ms",alignSelf:"center",fontSize:a,lineHeight:1,marginRight:a,textAlign:"center",verticalAlign:"middle"},n?{}:{color:r?o.neutral60:o.neutral20,padding:l*2})},xA=function(t){var n=t.delay,r=t.offset;return rn("span",{css:Sj({animation:"".concat(gxe," 1s ease-in-out ").concat(n,"ms infinite;"),backgroundColor:"currentColor",borderRadius:"1em",display:"inline-block",marginLeft:r?"1em":void 0,height:"1em",verticalAlign:"top",width:"1em"},"","")})},yxe=function(t){var n=t.innerProps,r=t.isRtl,a=t.size,i=a===void 0?4:a,o=Nu(t,lxe);return rn("div",vt({},xa(Jt(Jt({},o),{},{innerProps:n,isRtl:r,size:i}),"loadingIndicator",{indicator:!0,"loading-indicator":!0}),n),rn(xA,{delay:0,offset:r}),rn(xA,{delay:160,offset:!0}),rn(xA,{delay:320,offset:!r}))},bxe=function(t,n){var r=t.isDisabled,a=t.isFocused,i=t.theme,o=i.colors,l=i.borderRadius,u=i.spacing;return Jt({label:"control",alignItems:"center",cursor:"default",display:"flex",flexWrap:"wrap",justifyContent:"space-between",minHeight:u.controlHeight,outline:"0 !important",position:"relative",transition:"all 100ms"},n?{}:{backgroundColor:r?o.neutral5:o.neutral0,borderColor:r?o.neutral10:a?o.primary:o.neutral20,borderRadius:l,borderStyle:"solid",borderWidth:1,boxShadow:a?"0 0 0 1px ".concat(o.primary):void 0,"&:hover":{borderColor:a?o.primary:o.neutral30}})},wxe=function(t){var n=t.children,r=t.isDisabled,a=t.isFocused,i=t.innerRef,o=t.innerProps,l=t.menuIsOpen;return rn("div",vt({ref:i},xa(t,"control",{control:!0,"control--is-disabled":r,"control--is-focused":a,"control--menu-is-open":l}),o,{"aria-disabled":r||void 0}),n)},Sxe=wxe,Exe=["data"],Txe=function(t,n){var r=t.theme.spacing;return n?{}:{paddingBottom:r.baseUnit*2,paddingTop:r.baseUnit*2}},Cxe=function(t){var n=t.children,r=t.cx,a=t.getStyles,i=t.getClassNames,o=t.Heading,l=t.headingProps,u=t.innerProps,d=t.label,f=t.theme,g=t.selectProps;return rn("div",vt({},xa(t,"group",{group:!0}),u),rn(o,vt({},l,{selectProps:g,theme:f,getStyles:a,getClassNames:i,cx:r}),d),rn("div",null,n))},kxe=function(t,n){var r=t.theme,a=r.colors,i=r.spacing;return Jt({label:"group",cursor:"default",display:"block"},n?{}:{color:a.neutral40,fontSize:"75%",fontWeight:500,marginBottom:"0.25em",paddingLeft:i.baseUnit*3,paddingRight:i.baseUnit*3,textTransform:"uppercase"})},xxe=function(t){var n=Fee(t);n.data;var r=Nu(n,Exe);return rn("div",vt({},xa(t,"groupHeading",{"group-heading":!0}),r))},_xe=Cxe,Oxe=["innerRef","isDisabled","isHidden","inputClassName"],Rxe=function(t,n){var r=t.isDisabled,a=t.value,i=t.theme,o=i.spacing,l=i.colors;return Jt(Jt({visibility:r?"hidden":"visible",transform:a?"translateZ(0)":""},Pxe),n?{}:{margin:o.baseUnit/2,paddingBottom:o.baseUnit/2,paddingTop:o.baseUnit/2,color:l.neutral80})},Gee={gridArea:"1 / 2",font:"inherit",minWidth:"2px",border:0,margin:0,outline:0,padding:0},Pxe={flex:"1 1 auto",display:"inline-grid",gridArea:"1 / 1 / 2 / 3",gridTemplateColumns:"0 min-content","&:after":Jt({content:'attr(data-value) " "',visibility:"hidden",whiteSpace:"pre"},Gee)},Axe=function(t){return Jt({label:"input",color:"inherit",background:0,opacity:t?0:1,width:"100%"},Gee)},Nxe=function(t){var n=t.cx,r=t.value,a=Fee(t),i=a.innerRef,o=a.isDisabled,l=a.isHidden,u=a.inputClassName,d=Nu(a,Oxe);return rn("div",vt({},xa(t,"input",{"input-container":!0}),{"data-value":r||""}),rn("input",vt({className:n({input:!0},u),ref:i,style:Axe(l),disabled:o},d)))},Mxe=Nxe,Ixe=function(t,n){var r=t.theme,a=r.spacing,i=r.borderRadius,o=r.colors;return Jt({label:"multiValue",display:"flex",minWidth:0},n?{}:{backgroundColor:o.neutral10,borderRadius:i/2,margin:a.baseUnit/2})},Dxe=function(t,n){var r=t.theme,a=r.borderRadius,i=r.colors,o=t.cropWithEllipsis;return Jt({overflow:"hidden",textOverflow:o||o===void 0?"ellipsis":void 0,whiteSpace:"nowrap"},n?{}:{borderRadius:a/2,color:i.neutral80,fontSize:"85%",padding:3,paddingLeft:6})},$xe=function(t,n){var r=t.theme,a=r.spacing,i=r.borderRadius,o=r.colors,l=t.isFocused;return Jt({alignItems:"center",display:"flex"},n?{}:{borderRadius:i/2,backgroundColor:l?o.dangerLight:void 0,paddingLeft:a.baseUnit,paddingRight:a.baseUnit,":hover":{backgroundColor:o.dangerLight,color:o.danger}})},Yee=function(t){var n=t.children,r=t.innerProps;return rn("div",r,n)},Lxe=Yee,Fxe=Yee;function jxe(e){var t=e.children,n=e.innerProps;return rn("div",vt({role:"button"},n),t||rn(kj,{size:14}))}var Uxe=function(t){var n=t.children,r=t.components,a=t.data,i=t.innerProps,o=t.isDisabled,l=t.removeProps,u=t.selectProps,d=r.Container,f=r.Label,g=r.Remove;return rn(d,{data:a,innerProps:Jt(Jt({},xa(t,"multiValue",{"multi-value":!0,"multi-value--is-disabled":o})),i),selectProps:u},rn(f,{data:a,innerProps:Jt({},xa(t,"multiValueLabel",{"multi-value__label":!0})),selectProps:u},n),rn(g,{data:a,innerProps:Jt(Jt({},xa(t,"multiValueRemove",{"multi-value__remove":!0})),{},{"aria-label":"Remove ".concat(n||"option")},l),selectProps:u}))},Bxe=Uxe,Wxe=function(t,n){var r=t.isDisabled,a=t.isFocused,i=t.isSelected,o=t.theme,l=o.spacing,u=o.colors;return Jt({label:"option",cursor:"default",display:"block",fontSize:"inherit",width:"100%",userSelect:"none",WebkitTapHighlightColor:"rgba(0, 0, 0, 0)"},n?{}:{backgroundColor:i?u.primary:a?u.primary25:"transparent",color:r?u.neutral20:i?u.neutral0:"inherit",padding:"".concat(l.baseUnit*2,"px ").concat(l.baseUnit*3,"px"),":active":{backgroundColor:r?void 0:i?u.primary:u.primary50}})},zxe=function(t){var n=t.children,r=t.isDisabled,a=t.isFocused,i=t.isSelected,o=t.innerRef,l=t.innerProps;return rn("div",vt({},xa(t,"option",{option:!0,"option--is-disabled":r,"option--is-focused":a,"option--is-selected":i}),{ref:o,"aria-disabled":r},l),n)},qxe=zxe,Hxe=function(t,n){var r=t.theme,a=r.spacing,i=r.colors;return Jt({label:"placeholder",gridArea:"1 / 1 / 2 / 3"},n?{}:{color:i.neutral50,marginLeft:a.baseUnit/2,marginRight:a.baseUnit/2})},Vxe=function(t){var n=t.children,r=t.innerProps;return rn("div",vt({},xa(t,"placeholder",{placeholder:!0}),r),n)},Gxe=Vxe,Yxe=function(t,n){var r=t.isDisabled,a=t.theme,i=a.spacing,o=a.colors;return Jt({label:"singleValue",gridArea:"1 / 1 / 2 / 3",maxWidth:"100%",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},n?{}:{color:r?o.neutral40:o.neutral80,marginLeft:i.baseUnit/2,marginRight:i.baseUnit/2})},Kxe=function(t){var n=t.children,r=t.isDisabled,a=t.innerProps;return rn("div",vt({},xa(t,"singleValue",{"single-value":!0,"single-value--is-disabled":r}),a),n)},Xxe=Kxe,Qxe={ClearIndicator:pxe,Control:Sxe,DropdownIndicator:dxe,DownChevron:Hee,CrossIcon:kj,Group:_xe,GroupHeading:xxe,IndicatorsContainer:oxe,IndicatorSeparator:mxe,Input:Mxe,LoadingIndicator:yxe,Menu:Vke,MenuList:Yke,MenuPortal:exe,LoadingMessage:Jke,NoOptionsMessage:Qke,MultiValue:Bxe,MultiValueContainer:Lxe,MultiValueLabel:Fxe,MultiValueRemove:jxe,Option:qxe,Placeholder:Gxe,SelectContainer:nxe,SingleValue:Xxe,ValueContainer:axe},Jxe=function(t){return Jt(Jt({},Qxe),t.components)},G5=Number.isNaN||function(t){return typeof t=="number"&&t!==t};function Zxe(e,t){return!!(e===t||G5(e)&&G5(t))}function e_e(e,t){if(e.length!==t.length)return!1;for(var n=0;n1?"s":""," ").concat(i.join(","),", selected.");case"select-option":return o?"option ".concat(a," is disabled. Select another option."):"option ".concat(a,", selected.");default:return""}},onFocus:function(t){var n=t.context,r=t.focused,a=t.options,i=t.label,o=i===void 0?"":i,l=t.selectValue,u=t.isDisabled,d=t.isSelected,f=t.isAppleDevice,g=function(E,T){return E&&E.length?"".concat(E.indexOf(T)+1," of ").concat(E.length):""};if(n==="value"&&l)return"value ".concat(o," focused, ").concat(g(l,r),".");if(n==="menu"&&f){var y=u?" disabled":"",h="".concat(d?" selected":"").concat(y);return"".concat(o).concat(h,", ").concat(g(a,r),".")}return""},onFilter:function(t){var n=t.inputValue,r=t.resultsMessage;return"".concat(r).concat(n?" for search term "+n:"",".")}},i_e=function(t){var n=t.ariaSelection,r=t.focusedOption,a=t.focusedValue,i=t.focusableOptions,o=t.isFocused,l=t.selectValue,u=t.selectProps,d=t.id,f=t.isAppleDevice,g=u.ariaLiveMessages,y=u.getOptionLabel,h=u.inputValue,v=u.isMulti,E=u.isOptionDisabled,T=u.isSearchable,C=u.menuIsOpen,k=u.options,_=u.screenReaderStatus,A=u.tabSelectsValue,P=u.isLoading,N=u["aria-label"],I=u["aria-live"],L=R.useMemo(function(){return Jt(Jt({},a_e),g||{})},[g]),j=R.useMemo(function(){var ge="";if(n&&L.onChange){var W=n.option,G=n.options,q=n.removedValue,ce=n.removedValues,H=n.value,K=function(fe){return Array.isArray(fe)?null:fe},ae=q||W||K(H),J=ae?y(ae):"",ee=G||ce||void 0,Z=ee?ee.map(y):[],le=Jt({isDisabled:ae&&E(ae,l),label:J,labels:Z},n);ge=L.onChange(le)}return ge},[n,L,E,l,y]),z=R.useMemo(function(){var ge="",W=r||a,G=!!(r&&l&&l.includes(r));if(W&&L.onFocus){var q={focused:W,label:y(W),isDisabled:E(W,l),isSelected:G,options:i,context:W===r?"menu":"value",selectValue:l,isAppleDevice:f};ge=L.onFocus(q)}return ge},[r,a,y,E,L,i,l,f]),Q=R.useMemo(function(){var ge="";if(C&&k.length&&!P&&L.onFilter){var W=_({count:i.length});ge=L.onFilter({inputValue:h,resultsMessage:W})}return ge},[i,h,C,L,k,_,P]),ue=(n==null?void 0:n.action)==="initial-input-focus",re=R.useMemo(function(){var ge="";if(L.guidance){var W=a?"value":C?"menu":"input";ge=L.guidance({"aria-label":N,context:W,isDisabled:r&&E(r,l),isMulti:v,isSearchable:T,tabSelectsValue:A,isInitialFocus:ue})}return ge},[N,r,a,v,E,T,C,L,l,A,ue]),me=rn(R.Fragment,null,rn("span",{id:"aria-selection"},j),rn("span",{id:"aria-focused"},z),rn("span",{id:"aria-results"},Q),rn("span",{id:"aria-guidance"},re));return rn(R.Fragment,null,rn(Y5,{id:d},ue&&me),rn(Y5,{"aria-live":I,"aria-atomic":"false","aria-relevant":"additions text",role:"log"},o&&!ue&&me))},o_e=i_e,A3=[{base:"A",letters:"AⒶAÀÁÂẦẤẪẨÃĀĂẰẮẴẲȦǠÄǞẢÅǺǍȀȂẠẬẶḀĄȺⱯ"},{base:"AA",letters:"Ꜳ"},{base:"AE",letters:"ÆǼǢ"},{base:"AO",letters:"Ꜵ"},{base:"AU",letters:"Ꜷ"},{base:"AV",letters:"ꜸꜺ"},{base:"AY",letters:"Ꜽ"},{base:"B",letters:"BⒷBḂḄḆɃƂƁ"},{base:"C",letters:"CⒸCĆĈĊČÇḈƇȻꜾ"},{base:"D",letters:"DⒹDḊĎḌḐḒḎĐƋƊƉꝹ"},{base:"DZ",letters:"DZDŽ"},{base:"Dz",letters:"DzDž"},{base:"E",letters:"EⒺEÈÉÊỀẾỄỂẼĒḔḖĔĖËẺĚȄȆẸỆȨḜĘḘḚƐƎ"},{base:"F",letters:"FⒻFḞƑꝻ"},{base:"G",letters:"GⒼGǴĜḠĞĠǦĢǤƓꞠꝽꝾ"},{base:"H",letters:"HⒽHĤḢḦȞḤḨḪĦⱧⱵꞍ"},{base:"I",letters:"IⒾIÌÍÎĨĪĬİÏḮỈǏȈȊỊĮḬƗ"},{base:"J",letters:"JⒿJĴɈ"},{base:"K",letters:"KⓀKḰǨḲĶḴƘⱩꝀꝂꝄꞢ"},{base:"L",letters:"LⓁLĿĹĽḶḸĻḼḺŁȽⱢⱠꝈꝆꞀ"},{base:"LJ",letters:"LJ"},{base:"Lj",letters:"Lj"},{base:"M",letters:"MⓂMḾṀṂⱮƜ"},{base:"N",letters:"NⓃNǸŃÑṄŇṆŅṊṈȠƝꞐꞤ"},{base:"NJ",letters:"NJ"},{base:"Nj",letters:"Nj"},{base:"O",letters:"OⓄOÒÓÔỒỐỖỔÕṌȬṎŌṐṒŎȮȰÖȪỎŐǑȌȎƠỜỚỠỞỢỌỘǪǬØǾƆƟꝊꝌ"},{base:"OI",letters:"Ƣ"},{base:"OO",letters:"Ꝏ"},{base:"OU",letters:"Ȣ"},{base:"P",letters:"PⓅPṔṖƤⱣꝐꝒꝔ"},{base:"Q",letters:"QⓆQꝖꝘɊ"},{base:"R",letters:"RⓇRŔṘŘȐȒṚṜŖṞɌⱤꝚꞦꞂ"},{base:"S",letters:"SⓈSẞŚṤŜṠŠṦṢṨȘŞⱾꞨꞄ"},{base:"T",letters:"TⓉTṪŤṬȚŢṰṮŦƬƮȾꞆ"},{base:"TZ",letters:"Ꜩ"},{base:"U",letters:"UⓊUÙÚÛŨṸŪṺŬÜǛǗǕǙỦŮŰǓȔȖƯỪỨỮỬỰỤṲŲṶṴɄ"},{base:"V",letters:"VⓋVṼṾƲꝞɅ"},{base:"VY",letters:"Ꝡ"},{base:"W",letters:"WⓌWẀẂŴẆẄẈⱲ"},{base:"X",letters:"XⓍXẊẌ"},{base:"Y",letters:"YⓎYỲÝŶỸȲẎŸỶỴƳɎỾ"},{base:"Z",letters:"ZⓏZŹẐŻŽẒẔƵȤⱿⱫꝢ"},{base:"a",letters:"aⓐaẚàáâầấẫẩãāăằắẵẳȧǡäǟảåǻǎȁȃạậặḁąⱥɐ"},{base:"aa",letters:"ꜳ"},{base:"ae",letters:"æǽǣ"},{base:"ao",letters:"ꜵ"},{base:"au",letters:"ꜷ"},{base:"av",letters:"ꜹꜻ"},{base:"ay",letters:"ꜽ"},{base:"b",letters:"bⓑbḃḅḇƀƃɓ"},{base:"c",letters:"cⓒcćĉċčçḉƈȼꜿↄ"},{base:"d",letters:"dⓓdḋďḍḑḓḏđƌɖɗꝺ"},{base:"dz",letters:"dzdž"},{base:"e",letters:"eⓔeèéêềếễểẽēḕḗĕėëẻěȅȇẹệȩḝęḙḛɇɛǝ"},{base:"f",letters:"fⓕfḟƒꝼ"},{base:"g",letters:"gⓖgǵĝḡğġǧģǥɠꞡᵹꝿ"},{base:"h",letters:"hⓗhĥḣḧȟḥḩḫẖħⱨⱶɥ"},{base:"hv",letters:"ƕ"},{base:"i",letters:"iⓘiìíîĩīĭïḯỉǐȉȋịįḭɨı"},{base:"j",letters:"jⓙjĵǰɉ"},{base:"k",letters:"kⓚkḱǩḳķḵƙⱪꝁꝃꝅꞣ"},{base:"l",letters:"lⓛlŀĺľḷḹļḽḻſłƚɫⱡꝉꞁꝇ"},{base:"lj",letters:"lj"},{base:"m",letters:"mⓜmḿṁṃɱɯ"},{base:"n",letters:"nⓝnǹńñṅňṇņṋṉƞɲʼnꞑꞥ"},{base:"nj",letters:"nj"},{base:"o",letters:"oⓞoòóôồốỗổõṍȭṏōṑṓŏȯȱöȫỏőǒȍȏơờớỡởợọộǫǭøǿɔꝋꝍɵ"},{base:"oi",letters:"ƣ"},{base:"ou",letters:"ȣ"},{base:"oo",letters:"ꝏ"},{base:"p",letters:"pⓟpṕṗƥᵽꝑꝓꝕ"},{base:"q",letters:"qⓠqɋꝗꝙ"},{base:"r",letters:"rⓡrŕṙřȑȓṛṝŗṟɍɽꝛꞧꞃ"},{base:"s",letters:"sⓢsßśṥŝṡšṧṣṩșşȿꞩꞅẛ"},{base:"t",letters:"tⓣtṫẗťṭțţṱṯŧƭʈⱦꞇ"},{base:"tz",letters:"ꜩ"},{base:"u",letters:"uⓤuùúûũṹūṻŭüǜǘǖǚủůűǔȕȗưừứữửựụṳųṷṵʉ"},{base:"v",letters:"vⓥvṽṿʋꝟʌ"},{base:"vy",letters:"ꝡ"},{base:"w",letters:"wⓦwẁẃŵẇẅẘẉⱳ"},{base:"x",letters:"xⓧxẋẍ"},{base:"y",letters:"yⓨyỳýŷỹȳẏÿỷẙỵƴɏỿ"},{base:"z",letters:"zⓩzźẑżžẓẕƶȥɀⱬꝣ"}],s_e=new RegExp("["+A3.map(function(e){return e.letters}).join("")+"]","g"),Kee={};for(var _A=0;_A-1}},d_e=["innerRef"];function f_e(e){var t=e.innerRef,n=Nu(e,d_e),r=Fke(n,"onExited","in","enter","exit","appear");return rn("input",vt({ref:t},r,{css:Sj({label:"dummyInput",background:0,border:0,caretColor:"transparent",fontSize:"inherit",gridArea:"1 / 1 / 2 / 3",outline:0,padding:0,width:1,color:"transparent",left:-100,opacity:0,position:"relative",transform:"scale(.01)"},"","")}))}var p_e=function(t){t.cancelable&&t.preventDefault(),t.stopPropagation()};function h_e(e){var t=e.isEnabled,n=e.onBottomArrive,r=e.onBottomLeave,a=e.onTopArrive,i=e.onTopLeave,o=R.useRef(!1),l=R.useRef(!1),u=R.useRef(0),d=R.useRef(null),f=R.useCallback(function(T,C){if(d.current!==null){var k=d.current,_=k.scrollTop,A=k.scrollHeight,P=k.clientHeight,N=d.current,I=C>0,L=A-P-_,j=!1;L>C&&o.current&&(r&&r(T),o.current=!1),I&&l.current&&(i&&i(T),l.current=!1),I&&C>L?(n&&!o.current&&n(T),N.scrollTop=A,j=!0,o.current=!0):!I&&-C>_&&(a&&!l.current&&a(T),N.scrollTop=0,j=!0,l.current=!0),j&&p_e(T)}},[n,r,a,i]),g=R.useCallback(function(T){f(T,T.deltaY)},[f]),y=R.useCallback(function(T){u.current=T.changedTouches[0].clientY},[]),h=R.useCallback(function(T){var C=u.current-T.changedTouches[0].clientY;f(T,C)},[f]),v=R.useCallback(function(T){if(T){var C=Dke?{passive:!1}:!1;T.addEventListener("wheel",g,C),T.addEventListener("touchstart",y,C),T.addEventListener("touchmove",h,C)}},[h,y,g]),E=R.useCallback(function(T){T&&(T.removeEventListener("wheel",g,!1),T.removeEventListener("touchstart",y,!1),T.removeEventListener("touchmove",h,!1))},[h,y,g]);return R.useEffect(function(){if(t){var T=d.current;return v(T),function(){E(T)}}},[t,v,E]),function(T){d.current=T}}var X5=["boxSizing","height","overflow","paddingRight","position"],Q5={boxSizing:"border-box",overflow:"hidden",position:"relative",height:"100%"};function J5(e){e.cancelable&&e.preventDefault()}function Z5(e){e.stopPropagation()}function eW(){var e=this.scrollTop,t=this.scrollHeight,n=e+this.offsetHeight;e===0?this.scrollTop=1:n===t&&(this.scrollTop=e-1)}function tW(){return"ontouchstart"in window||navigator.maxTouchPoints}var nW=!!(typeof window<"u"&&window.document&&window.document.createElement),ZS=0,Wb={capture:!1,passive:!1};function m_e(e){var t=e.isEnabled,n=e.accountForScrollbars,r=n===void 0?!0:n,a=R.useRef({}),i=R.useRef(null),o=R.useCallback(function(u){if(nW){var d=document.body,f=d&&d.style;if(r&&X5.forEach(function(v){var E=f&&f[v];a.current[v]=E}),r&&ZS<1){var g=parseInt(a.current.paddingRight,10)||0,y=document.body?document.body.clientWidth:0,h=window.innerWidth-y+g||0;Object.keys(Q5).forEach(function(v){var E=Q5[v];f&&(f[v]=E)}),f&&(f.paddingRight="".concat(h,"px"))}d&&tW()&&(d.addEventListener("touchmove",J5,Wb),u&&(u.addEventListener("touchstart",eW,Wb),u.addEventListener("touchmove",Z5,Wb))),ZS+=1}},[r]),l=R.useCallback(function(u){if(nW){var d=document.body,f=d&&d.style;ZS=Math.max(ZS-1,0),r&&ZS<1&&X5.forEach(function(g){var y=a.current[g];f&&(f[g]=y)}),d&&tW()&&(d.removeEventListener("touchmove",J5,Wb),u&&(u.removeEventListener("touchstart",eW,Wb),u.removeEventListener("touchmove",Z5,Wb)))}},[r]);return R.useEffect(function(){if(t){var u=i.current;return o(u),function(){l(u)}}},[t,o,l]),function(u){i.current=u}}var g_e=function(t){var n=t.target;return n.ownerDocument.activeElement&&n.ownerDocument.activeElement.blur()},v_e={name:"1kfdb0e",styles:"position:fixed;left:0;bottom:0;right:0;top:0"};function y_e(e){var t=e.children,n=e.lockEnabled,r=e.captureEnabled,a=r===void 0?!0:r,i=e.onBottomArrive,o=e.onBottomLeave,l=e.onTopArrive,u=e.onTopLeave,d=h_e({isEnabled:a,onBottomArrive:i,onBottomLeave:o,onTopArrive:l,onTopLeave:u}),f=m_e({isEnabled:n}),g=function(h){d(h),f(h)};return rn(R.Fragment,null,n&&rn("div",{onClick:g_e,css:v_e}),t(g))}var b_e={name:"1a0ro4n-requiredInput",styles:"label:requiredInput;opacity:0;pointer-events:none;position:absolute;bottom:0;left:0;right:0;width:100%"},w_e=function(t){var n=t.name,r=t.onFocus;return rn("input",{required:!0,name:n,tabIndex:-1,"aria-hidden":"true",onFocus:r,css:b_e,value:"",onChange:function(){}})},S_e=w_e;function xj(e){var t;return typeof window<"u"&&window.navigator!=null?e.test(((t=window.navigator.userAgentData)===null||t===void 0?void 0:t.platform)||window.navigator.platform):!1}function E_e(){return xj(/^iPhone/i)}function Qee(){return xj(/^Mac/i)}function T_e(){return xj(/^iPad/i)||Qee()&&navigator.maxTouchPoints>1}function C_e(){return E_e()||T_e()}function k_e(){return Qee()||C_e()}var x_e=function(t){return t.label},__e=function(t){return t.label},O_e=function(t){return t.value},R_e=function(t){return!!t.isDisabled},P_e={clearIndicator:fxe,container:txe,control:bxe,dropdownIndicator:cxe,group:Txe,groupHeading:kxe,indicatorsContainer:ixe,indicatorSeparator:hxe,input:Rxe,loadingIndicator:vxe,loadingMessage:Xke,menu:zke,menuList:Gke,menuPortal:Zke,multiValue:Ixe,multiValueLabel:Dxe,multiValueRemove:$xe,noOptionsMessage:Kke,option:Wxe,placeholder:Hxe,singleValue:Yxe,valueContainer:rxe},A_e={primary:"#2684FF",primary75:"#4C9AFF",primary50:"#B2D4FF",primary25:"#DEEBFF",danger:"#DE350B",dangerLight:"#FFBDAD",neutral0:"hsl(0, 0%, 100%)",neutral5:"hsl(0, 0%, 95%)",neutral10:"hsl(0, 0%, 90%)",neutral20:"hsl(0, 0%, 80%)",neutral30:"hsl(0, 0%, 70%)",neutral40:"hsl(0, 0%, 60%)",neutral50:"hsl(0, 0%, 50%)",neutral60:"hsl(0, 0%, 40%)",neutral70:"hsl(0, 0%, 30%)",neutral80:"hsl(0, 0%, 20%)",neutral90:"hsl(0, 0%, 10%)"},N_e=4,Jee=4,M_e=38,I_e=Jee*2,D_e={baseUnit:Jee,controlHeight:M_e,menuGutter:I_e},PA={borderRadius:N_e,colors:A_e,spacing:D_e},$_e={"aria-live":"polite",backspaceRemovesValue:!0,blurInputOnSelect:H5(),captureMenuScroll:!H5(),classNames:{},closeMenuOnSelect:!0,closeMenuOnScroll:!1,components:{},controlShouldRenderValue:!0,escapeClearsValue:!1,filterOption:c_e(),formatGroupLabel:x_e,getOptionLabel:__e,getOptionValue:O_e,isDisabled:!1,isLoading:!1,isMulti:!1,isRtl:!1,isSearchable:!0,isOptionDisabled:R_e,loadingMessage:function(){return"Loading..."},maxMenuHeight:300,minMenuHeight:140,menuIsOpen:!1,menuPlacement:"bottom",menuPosition:"absolute",menuShouldBlockScroll:!1,menuShouldScrollIntoView:!Mke(),noOptionsMessage:function(){return"No options"},openMenuOnFocus:!1,openMenuOnClick:!0,options:[],pageSize:5,placeholder:"Select...",screenReaderStatus:function(t){var n=t.count;return"".concat(n," result").concat(n!==1?"s":""," available")},styles:{},tabIndex:0,tabSelectsValue:!0,unstyled:!1};function rW(e,t,n,r){var a=tte(e,t,n),i=nte(e,t,n),o=ete(e,t),l=o_(e,t);return{type:"option",data:t,isDisabled:a,isSelected:i,label:o,value:l,index:r}}function gx(e,t){return e.options.map(function(n,r){if("options"in n){var a=n.options.map(function(o,l){return rW(e,o,t,l)}).filter(function(o){return iW(e,o)});return a.length>0?{type:"group",data:n,options:a,index:r}:void 0}var i=rW(e,n,t,r);return iW(e,i)?i:void 0}).filter($ke)}function Zee(e){return e.reduce(function(t,n){return n.type==="group"?t.push.apply(t,N0(n.options.map(function(r){return r.data}))):t.push(n.data),t},[])}function aW(e,t){return e.reduce(function(n,r){return r.type==="group"?n.push.apply(n,N0(r.options.map(function(a){return{data:a.data,id:"".concat(t,"-").concat(r.index,"-").concat(a.index)}}))):n.push({data:r.data,id:"".concat(t,"-").concat(r.index)}),n},[])}function L_e(e,t){return Zee(gx(e,t))}function iW(e,t){var n=e.inputValue,r=n===void 0?"":n,a=t.data,i=t.isSelected,o=t.label,l=t.value;return(!ate(e)||!i)&&rte(e,{label:o,value:l,data:a},r)}function F_e(e,t){var n=e.focusedValue,r=e.selectValue,a=r.indexOf(n);if(a>-1){var i=t.indexOf(n);if(i>-1)return n;if(a-1?n:t[0]}var AA=function(t,n){var r,a=(r=t.find(function(i){return i.data===n}))===null||r===void 0?void 0:r.id;return a||null},ete=function(t,n){return t.getOptionLabel(n)},o_=function(t,n){return t.getOptionValue(n)};function tte(e,t,n){return typeof e.isOptionDisabled=="function"?e.isOptionDisabled(t,n):!1}function nte(e,t,n){if(n.indexOf(t)>-1)return!0;if(typeof e.isOptionSelected=="function")return e.isOptionSelected(t,n);var r=o_(e,t);return n.some(function(a){return o_(e,a)===r})}function rte(e,t,n){return e.filterOption?e.filterOption(t,n):!0}var ate=function(t){var n=t.hideSelectedOptions,r=t.isMulti;return n===void 0?r:n},U_e=1,ite=(function(e){tr(n,e);var t=nr(n);function n(r){var a;if(Xn(this,n),a=t.call(this,r),a.state={ariaSelection:null,focusedOption:null,focusedOptionId:null,focusableOptionsWithIds:[],focusedValue:null,inputIsHidden:!1,isFocused:!1,selectValue:[],clearFocusValueOnUpdate:!1,prevWasFocused:!1,inputIsHiddenAfterUpdate:void 0,prevProps:void 0,instancePrefix:""},a.blockOptionHover=!1,a.isComposing=!1,a.commonProps=void 0,a.initialTouchX=0,a.initialTouchY=0,a.openAfterFocus=!1,a.scrollToFocusedOptionOnUpdate=!1,a.userIsDragging=void 0,a.isAppleDevice=k_e(),a.controlRef=null,a.getControlRef=function(u){a.controlRef=u},a.focusedOptionRef=null,a.getFocusedOptionRef=function(u){a.focusedOptionRef=u},a.menuListRef=null,a.getMenuListRef=function(u){a.menuListRef=u},a.inputRef=null,a.getInputRef=function(u){a.inputRef=u},a.focus=a.focusInput,a.blur=a.blurInput,a.onChange=function(u,d){var f=a.props,g=f.onChange,y=f.name;d.name=y,a.ariaOnChange(u,d),g(u,d)},a.setValue=function(u,d,f){var g=a.props,y=g.closeMenuOnSelect,h=g.isMulti,v=g.inputValue;a.onInputChange("",{action:"set-value",prevInputValue:v}),y&&(a.setState({inputIsHiddenAfterUpdate:!h}),a.onMenuClose()),a.setState({clearFocusValueOnUpdate:!0}),a.onChange(u,{action:d,option:f})},a.selectOption=function(u){var d=a.props,f=d.blurInputOnSelect,g=d.isMulti,y=d.name,h=a.state.selectValue,v=g&&a.isOptionSelected(u,h),E=a.isOptionDisabled(u,h);if(v){var T=a.getOptionValue(u);a.setValue(h.filter(function(C){return a.getOptionValue(C)!==T}),"deselect-option",u)}else if(!E)g?a.setValue([].concat(N0(h),[u]),"select-option",u):a.setValue(u,"select-option");else{a.ariaOnChange(u,{action:"select-option",option:u,name:y});return}f&&a.blurInput()},a.removeValue=function(u){var d=a.props.isMulti,f=a.state.selectValue,g=a.getOptionValue(u),y=f.filter(function(v){return a.getOptionValue(v)!==g}),h=Uk(d,y,y[0]||null);a.onChange(h,{action:"remove-value",removedValue:u}),a.focusInput()},a.clearValue=function(){var u=a.state.selectValue;a.onChange(Uk(a.props.isMulti,[],null),{action:"clear",removedValues:u})},a.popValue=function(){var u=a.props.isMulti,d=a.state.selectValue,f=d[d.length-1],g=d.slice(0,d.length-1),y=Uk(u,g,g[0]||null);f&&a.onChange(y,{action:"pop-value",removedValue:f})},a.getFocusedOptionId=function(u){return AA(a.state.focusableOptionsWithIds,u)},a.getFocusableOptionsWithIds=function(){return aW(gx(a.props,a.state.selectValue),a.getElementId("option"))},a.getValue=function(){return a.state.selectValue},a.cx=function(){for(var u=arguments.length,d=new Array(u),f=0;fh||y>h}},a.onTouchEnd=function(u){a.userIsDragging||(a.controlRef&&!a.controlRef.contains(u.target)&&a.menuListRef&&!a.menuListRef.contains(u.target)&&a.blurInput(),a.initialTouchX=0,a.initialTouchY=0)},a.onControlTouchEnd=function(u){a.userIsDragging||a.onControlMouseDown(u)},a.onClearIndicatorTouchEnd=function(u){a.userIsDragging||a.onClearIndicatorMouseDown(u)},a.onDropdownIndicatorTouchEnd=function(u){a.userIsDragging||a.onDropdownIndicatorMouseDown(u)},a.handleInputChange=function(u){var d=a.props.inputValue,f=u.currentTarget.value;a.setState({inputIsHiddenAfterUpdate:!1}),a.onInputChange(f,{action:"input-change",prevInputValue:d}),a.props.menuIsOpen||a.onMenuOpen()},a.onInputFocus=function(u){a.props.onFocus&&a.props.onFocus(u),a.setState({inputIsHiddenAfterUpdate:!1,isFocused:!0}),(a.openAfterFocus||a.props.openMenuOnFocus)&&a.openMenu("first"),a.openAfterFocus=!1},a.onInputBlur=function(u){var d=a.props.inputValue;if(a.menuListRef&&a.menuListRef.contains(document.activeElement)){a.inputRef.focus();return}a.props.onBlur&&a.props.onBlur(u),a.onInputChange("",{action:"input-blur",prevInputValue:d}),a.onMenuClose(),a.setState({focusedValue:null,isFocused:!1})},a.onOptionHover=function(u){if(!(a.blockOptionHover||a.state.focusedOption===u)){var d=a.getFocusableOptions(),f=d.indexOf(u);a.setState({focusedOption:u,focusedOptionId:f>-1?a.getFocusedOptionId(u):null})}},a.shouldHideSelectedOptions=function(){return ate(a.props)},a.onValueInputFocus=function(u){u.preventDefault(),u.stopPropagation(),a.focus()},a.onKeyDown=function(u){var d=a.props,f=d.isMulti,g=d.backspaceRemovesValue,y=d.escapeClearsValue,h=d.inputValue,v=d.isClearable,E=d.isDisabled,T=d.menuIsOpen,C=d.onKeyDown,k=d.tabSelectsValue,_=d.openMenuOnFocus,A=a.state,P=A.focusedOption,N=A.focusedValue,I=A.selectValue;if(!E&&!(typeof C=="function"&&(C(u),u.defaultPrevented))){switch(a.blockOptionHover=!0,u.key){case"ArrowLeft":if(!f||h)return;a.focusValue("previous");break;case"ArrowRight":if(!f||h)return;a.focusValue("next");break;case"Delete":case"Backspace":if(h)return;if(N)a.removeValue(N);else{if(!g)return;f?a.popValue():v&&a.clearValue()}break;case"Tab":if(a.isComposing||u.shiftKey||!T||!k||!P||_&&a.isOptionSelected(P,I))return;a.selectOption(P);break;case"Enter":if(u.keyCode===229)break;if(T){if(!P||a.isComposing)return;a.selectOption(P);break}return;case"Escape":T?(a.setState({inputIsHiddenAfterUpdate:!1}),a.onInputChange("",{action:"menu-close",prevInputValue:h}),a.onMenuClose()):v&&y&&a.clearValue();break;case" ":if(h)return;if(!T){a.openMenu("first");break}if(!P)return;a.selectOption(P);break;case"ArrowUp":T?a.focusOption("up"):a.openMenu("last");break;case"ArrowDown":T?a.focusOption("down"):a.openMenu("first");break;case"PageUp":if(!T)return;a.focusOption("pageup");break;case"PageDown":if(!T)return;a.focusOption("pagedown");break;case"Home":if(!T)return;a.focusOption("first");break;case"End":if(!T)return;a.focusOption("last");break;default:return}u.preventDefault()}},a.state.instancePrefix="react-select-"+(a.props.instanceId||++U_e),a.state.selectValue=z5(r.value),r.menuIsOpen&&a.state.selectValue.length){var i=a.getFocusableOptionsWithIds(),o=a.buildFocusableOptions(),l=o.indexOf(a.state.selectValue[0]);a.state.focusableOptionsWithIds=i,a.state.focusedOption=o[l],a.state.focusedOptionId=AA(i,o[l])}return a}return Qn(n,[{key:"componentDidMount",value:function(){this.startListeningComposition(),this.startListeningToTouch(),this.props.closeMenuOnScroll&&document&&document.addEventListener&&document.addEventListener("scroll",this.onScroll,!0),this.props.autoFocus&&this.focusInput(),this.props.menuIsOpen&&this.state.focusedOption&&this.menuListRef&&this.focusedOptionRef&&q5(this.menuListRef,this.focusedOptionRef)}},{key:"componentDidUpdate",value:function(a){var i=this.props,o=i.isDisabled,l=i.menuIsOpen,u=this.state.isFocused;(u&&!o&&a.isDisabled||u&&l&&!a.menuIsOpen)&&this.focusInput(),u&&o&&!a.isDisabled?this.setState({isFocused:!1},this.onMenuClose):!u&&!o&&a.isDisabled&&this.inputRef===document.activeElement&&this.setState({isFocused:!0}),this.menuListRef&&this.focusedOptionRef&&this.scrollToFocusedOptionOnUpdate&&(q5(this.menuListRef,this.focusedOptionRef),this.scrollToFocusedOptionOnUpdate=!1)}},{key:"componentWillUnmount",value:function(){this.stopListeningComposition(),this.stopListeningToTouch(),document.removeEventListener("scroll",this.onScroll,!0)}},{key:"onMenuOpen",value:function(){this.props.onMenuOpen()}},{key:"onMenuClose",value:function(){this.onInputChange("",{action:"menu-close",prevInputValue:this.props.inputValue}),this.props.onMenuClose()}},{key:"onInputChange",value:function(a,i){this.props.onInputChange(a,i)}},{key:"focusInput",value:function(){this.inputRef&&this.inputRef.focus()}},{key:"blurInput",value:function(){this.inputRef&&this.inputRef.blur()}},{key:"openMenu",value:function(a){var i=this,o=this.state,l=o.selectValue,u=o.isFocused,d=this.buildFocusableOptions(),f=a==="first"?0:d.length-1;if(!this.props.isMulti){var g=d.indexOf(l[0]);g>-1&&(f=g)}this.scrollToFocusedOptionOnUpdate=!(u&&this.menuListRef),this.setState({inputIsHiddenAfterUpdate:!1,focusedValue:null,focusedOption:d[f],focusedOptionId:this.getFocusedOptionId(d[f])},function(){return i.onMenuOpen()})}},{key:"focusValue",value:function(a){var i=this.state,o=i.selectValue,l=i.focusedValue;if(this.props.isMulti){this.setState({focusedOption:null});var u=o.indexOf(l);l||(u=-1);var d=o.length-1,f=-1;if(o.length){switch(a){case"previous":u===0?f=0:u===-1?f=d:f=u-1;break;case"next":u>-1&&u0&&arguments[0]!==void 0?arguments[0]:"first",i=this.props.pageSize,o=this.state.focusedOption,l=this.getFocusableOptions();if(l.length){var u=0,d=l.indexOf(o);o||(d=-1),a==="up"?u=d>0?d-1:l.length-1:a==="down"?u=(d+1)%l.length:a==="pageup"?(u=d-i,u<0&&(u=0)):a==="pagedown"?(u=d+i,u>l.length-1&&(u=l.length-1)):a==="last"&&(u=l.length-1),this.scrollToFocusedOptionOnUpdate=!0,this.setState({focusedOption:l[u],focusedValue:null,focusedOptionId:this.getFocusedOptionId(l[u])})}}},{key:"getTheme",value:(function(){return this.props.theme?typeof this.props.theme=="function"?this.props.theme(PA):Jt(Jt({},PA),this.props.theme):PA})},{key:"getCommonProps",value:function(){var a=this.clearValue,i=this.cx,o=this.getStyles,l=this.getClassNames,u=this.getValue,d=this.selectOption,f=this.setValue,g=this.props,y=g.isMulti,h=g.isRtl,v=g.options,E=this.hasValue();return{clearValue:a,cx:i,getStyles:o,getClassNames:l,getValue:u,hasValue:E,isMulti:y,isRtl:h,options:v,selectOption:d,selectProps:g,setValue:f,theme:this.getTheme()}}},{key:"hasValue",value:function(){var a=this.state.selectValue;return a.length>0}},{key:"hasOptions",value:function(){return!!this.getFocusableOptions().length}},{key:"isClearable",value:function(){var a=this.props,i=a.isClearable,o=a.isMulti;return i===void 0?o:i}},{key:"isOptionDisabled",value:function(a,i){return tte(this.props,a,i)}},{key:"isOptionSelected",value:function(a,i){return nte(this.props,a,i)}},{key:"filterOption",value:function(a,i){return rte(this.props,a,i)}},{key:"formatOptionLabel",value:function(a,i){if(typeof this.props.formatOptionLabel=="function"){var o=this.props.inputValue,l=this.state.selectValue;return this.props.formatOptionLabel(a,{context:i,inputValue:o,selectValue:l})}else return this.getOptionLabel(a)}},{key:"formatGroupLabel",value:function(a){return this.props.formatGroupLabel(a)}},{key:"startListeningComposition",value:(function(){document&&document.addEventListener&&(document.addEventListener("compositionstart",this.onCompositionStart,!1),document.addEventListener("compositionend",this.onCompositionEnd,!1))})},{key:"stopListeningComposition",value:function(){document&&document.removeEventListener&&(document.removeEventListener("compositionstart",this.onCompositionStart),document.removeEventListener("compositionend",this.onCompositionEnd))}},{key:"startListeningToTouch",value:(function(){document&&document.addEventListener&&(document.addEventListener("touchstart",this.onTouchStart,!1),document.addEventListener("touchmove",this.onTouchMove,!1),document.addEventListener("touchend",this.onTouchEnd,!1))})},{key:"stopListeningToTouch",value:function(){document&&document.removeEventListener&&(document.removeEventListener("touchstart",this.onTouchStart),document.removeEventListener("touchmove",this.onTouchMove),document.removeEventListener("touchend",this.onTouchEnd))}},{key:"renderInput",value:(function(){var a=this.props,i=a.isDisabled,o=a.isSearchable,l=a.inputId,u=a.inputValue,d=a.tabIndex,f=a.form,g=a.menuIsOpen,y=a.required,h=this.getComponents(),v=h.Input,E=this.state,T=E.inputIsHidden,C=E.ariaSelection,k=this.commonProps,_=l||this.getElementId("input"),A=Jt(Jt(Jt({"aria-autocomplete":"list","aria-expanded":g,"aria-haspopup":!0,"aria-errormessage":this.props["aria-errormessage"],"aria-invalid":this.props["aria-invalid"],"aria-label":this.props["aria-label"],"aria-labelledby":this.props["aria-labelledby"],"aria-required":y,role:"combobox","aria-activedescendant":this.isAppleDevice?void 0:this.state.focusedOptionId||""},g&&{"aria-controls":this.getElementId("listbox")}),!o&&{"aria-readonly":!0}),this.hasValue()?(C==null?void 0:C.action)==="initial-input-focus"&&{"aria-describedby":this.getElementId("live-region")}:{"aria-describedby":this.getElementId("placeholder")});return o?R.createElement(v,vt({},k,{autoCapitalize:"none",autoComplete:"off",autoCorrect:"off",id:_,innerRef:this.getInputRef,isDisabled:i,isHidden:T,onBlur:this.onInputBlur,onChange:this.handleInputChange,onFocus:this.onInputFocus,spellCheck:"false",tabIndex:d,form:f,type:"text",value:u},A)):R.createElement(f_e,vt({id:_,innerRef:this.getInputRef,onBlur:this.onInputBlur,onChange:a_,onFocus:this.onInputFocus,disabled:i,tabIndex:d,inputMode:"none",form:f,value:""},A))})},{key:"renderPlaceholderOrValue",value:function(){var a=this,i=this.getComponents(),o=i.MultiValue,l=i.MultiValueContainer,u=i.MultiValueLabel,d=i.MultiValueRemove,f=i.SingleValue,g=i.Placeholder,y=this.commonProps,h=this.props,v=h.controlShouldRenderValue,E=h.isDisabled,T=h.isMulti,C=h.inputValue,k=h.placeholder,_=this.state,A=_.selectValue,P=_.focusedValue,N=_.isFocused;if(!this.hasValue()||!v)return C?null:R.createElement(g,vt({},y,{key:"placeholder",isDisabled:E,isFocused:N,innerProps:{id:this.getElementId("placeholder")}}),k);if(T)return A.map(function(L,j){var z=L===P,Q="".concat(a.getOptionLabel(L),"-").concat(a.getOptionValue(L));return R.createElement(o,vt({},y,{components:{Container:l,Label:u,Remove:d},isFocused:z,isDisabled:E,key:Q,index:j,removeProps:{onClick:function(){return a.removeValue(L)},onTouchEnd:function(){return a.removeValue(L)},onMouseDown:function(re){re.preventDefault()}},data:L}),a.formatOptionLabel(L,"value"))});if(C)return null;var I=A[0];return R.createElement(f,vt({},y,{data:I,isDisabled:E}),this.formatOptionLabel(I,"value"))}},{key:"renderClearIndicator",value:function(){var a=this.getComponents(),i=a.ClearIndicator,o=this.commonProps,l=this.props,u=l.isDisabled,d=l.isLoading,f=this.state.isFocused;if(!this.isClearable()||!i||u||!this.hasValue()||d)return null;var g={onMouseDown:this.onClearIndicatorMouseDown,onTouchEnd:this.onClearIndicatorTouchEnd,"aria-hidden":"true"};return R.createElement(i,vt({},o,{innerProps:g,isFocused:f}))}},{key:"renderLoadingIndicator",value:function(){var a=this.getComponents(),i=a.LoadingIndicator,o=this.commonProps,l=this.props,u=l.isDisabled,d=l.isLoading,f=this.state.isFocused;if(!i||!d)return null;var g={"aria-hidden":"true"};return R.createElement(i,vt({},o,{innerProps:g,isDisabled:u,isFocused:f}))}},{key:"renderIndicatorSeparator",value:function(){var a=this.getComponents(),i=a.DropdownIndicator,o=a.IndicatorSeparator;if(!i||!o)return null;var l=this.commonProps,u=this.props.isDisabled,d=this.state.isFocused;return R.createElement(o,vt({},l,{isDisabled:u,isFocused:d}))}},{key:"renderDropdownIndicator",value:function(){var a=this.getComponents(),i=a.DropdownIndicator;if(!i)return null;var o=this.commonProps,l=this.props.isDisabled,u=this.state.isFocused,d={onMouseDown:this.onDropdownIndicatorMouseDown,onTouchEnd:this.onDropdownIndicatorTouchEnd,"aria-hidden":"true"};return R.createElement(i,vt({},o,{innerProps:d,isDisabled:l,isFocused:u}))}},{key:"renderMenu",value:function(){var a=this,i=this.getComponents(),o=i.Group,l=i.GroupHeading,u=i.Menu,d=i.MenuList,f=i.MenuPortal,g=i.LoadingMessage,y=i.NoOptionsMessage,h=i.Option,v=this.commonProps,E=this.state.focusedOption,T=this.props,C=T.captureMenuScroll,k=T.inputValue,_=T.isLoading,A=T.loadingMessage,P=T.minMenuHeight,N=T.maxMenuHeight,I=T.menuIsOpen,L=T.menuPlacement,j=T.menuPosition,z=T.menuPortalTarget,Q=T.menuShouldBlockScroll,ue=T.menuShouldScrollIntoView,re=T.noOptionsMessage,me=T.onMenuScrollToTop,ge=T.onMenuScrollToBottom;if(!I)return null;var W=function(J,ee){var Z=J.type,le=J.data,ke=J.isDisabled,fe=J.isSelected,xe=J.label,Ie=J.value,qe=E===le,tt=ke?void 0:function(){return a.onOptionHover(le)},Ge=ke?void 0:function(){return a.selectOption(le)},rt="".concat(a.getElementId("option"),"-").concat(ee),St={id:rt,onClick:Ge,onMouseMove:tt,onMouseOver:tt,tabIndex:-1,role:"option","aria-selected":a.isAppleDevice?void 0:fe};return R.createElement(h,vt({},v,{innerProps:St,data:le,isDisabled:ke,isSelected:fe,key:rt,label:xe,type:Z,value:Ie,isFocused:qe,innerRef:qe?a.getFocusedOptionRef:void 0}),a.formatOptionLabel(J.data,"menu"))},G;if(this.hasOptions())G=this.getCategorizedOptions().map(function(ae){if(ae.type==="group"){var J=ae.data,ee=ae.options,Z=ae.index,le="".concat(a.getElementId("group"),"-").concat(Z),ke="".concat(le,"-heading");return R.createElement(o,vt({},v,{key:le,data:J,options:ee,Heading:l,headingProps:{id:ke,data:ae.data},label:a.formatGroupLabel(ae.data)}),ae.options.map(function(fe){return W(fe,"".concat(Z,"-").concat(fe.index))}))}else if(ae.type==="option")return W(ae,"".concat(ae.index))});else if(_){var q=A({inputValue:k});if(q===null)return null;G=R.createElement(g,v,q)}else{var ce=re({inputValue:k});if(ce===null)return null;G=R.createElement(y,v,ce)}var H={minMenuHeight:P,maxMenuHeight:N,menuPlacement:L,menuPosition:j,menuShouldScrollIntoView:ue},K=R.createElement(qke,vt({},v,H),function(ae){var J=ae.ref,ee=ae.placerProps,Z=ee.placement,le=ee.maxHeight;return R.createElement(u,vt({},v,H,{innerRef:J,innerProps:{onMouseDown:a.onMenuMouseDown,onMouseMove:a.onMenuMouseMove},isLoading:_,placement:Z}),R.createElement(y_e,{captureEnabled:C,onTopArrive:me,onBottomArrive:ge,lockEnabled:Q},function(ke){return R.createElement(d,vt({},v,{innerRef:function(xe){a.getMenuListRef(xe),ke(xe)},innerProps:{role:"listbox","aria-multiselectable":v.isMulti,id:a.getElementId("listbox")},isLoading:_,maxHeight:le,focusedOption:E}),G)}))});return z||j==="fixed"?R.createElement(f,vt({},v,{appendTo:z,controlElement:this.controlRef,menuPlacement:L,menuPosition:j}),K):K}},{key:"renderFormField",value:function(){var a=this,i=this.props,o=i.delimiter,l=i.isDisabled,u=i.isMulti,d=i.name,f=i.required,g=this.state.selectValue;if(f&&!this.hasValue()&&!l)return R.createElement(S_e,{name:d,onFocus:this.onValueInputFocus});if(!(!d||l))if(u)if(o){var y=g.map(function(E){return a.getOptionValue(E)}).join(o);return R.createElement("input",{name:d,type:"hidden",value:y})}else{var h=g.length>0?g.map(function(E,T){return R.createElement("input",{key:"i-".concat(T),name:d,type:"hidden",value:a.getOptionValue(E)})}):R.createElement("input",{name:d,type:"hidden",value:""});return R.createElement("div",null,h)}else{var v=g[0]?this.getOptionValue(g[0]):"";return R.createElement("input",{name:d,type:"hidden",value:v})}}},{key:"renderLiveRegion",value:function(){var a=this.commonProps,i=this.state,o=i.ariaSelection,l=i.focusedOption,u=i.focusedValue,d=i.isFocused,f=i.selectValue,g=this.getFocusableOptions();return R.createElement(o_e,vt({},a,{id:this.getElementId("live-region"),ariaSelection:o,focusedOption:l,focusedValue:u,isFocused:d,selectValue:f,focusableOptions:g,isAppleDevice:this.isAppleDevice}))}},{key:"render",value:function(){var a=this.getComponents(),i=a.Control,o=a.IndicatorsContainer,l=a.SelectContainer,u=a.ValueContainer,d=this.props,f=d.className,g=d.id,y=d.isDisabled,h=d.menuIsOpen,v=this.state.isFocused,E=this.commonProps=this.getCommonProps();return R.createElement(l,vt({},E,{className:f,innerProps:{id:g,onKeyDown:this.onKeyDown},isDisabled:y,isFocused:v}),this.renderLiveRegion(),R.createElement(i,vt({},E,{innerRef:this.getControlRef,innerProps:{onMouseDown:this.onControlMouseDown,onTouchEnd:this.onControlTouchEnd},isDisabled:y,isFocused:v,menuIsOpen:h}),R.createElement(u,vt({},E,{isDisabled:y}),this.renderPlaceholderOrValue(),this.renderInput()),R.createElement(o,vt({},E,{isDisabled:y}),this.renderClearIndicator(),this.renderLoadingIndicator(),this.renderIndicatorSeparator(),this.renderDropdownIndicator())),this.renderMenu(),this.renderFormField())}}],[{key:"getDerivedStateFromProps",value:function(a,i){var o=i.prevProps,l=i.clearFocusValueOnUpdate,u=i.inputIsHiddenAfterUpdate,d=i.ariaSelection,f=i.isFocused,g=i.prevWasFocused,y=i.instancePrefix,h=a.options,v=a.value,E=a.menuIsOpen,T=a.inputValue,C=a.isMulti,k=z5(v),_={};if(o&&(v!==o.value||h!==o.options||E!==o.menuIsOpen||T!==o.inputValue)){var A=E?L_e(a,k):[],P=E?aW(gx(a,k),"".concat(y,"-option")):[],N=l?F_e(i,k):null,I=j_e(i,A),L=AA(P,I);_={selectValue:k,focusedOption:I,focusedOptionId:L,focusableOptionsWithIds:P,focusedValue:N,clearFocusValueOnUpdate:!1}}var j=u!=null&&a!==o?{inputIsHidden:u,inputIsHiddenAfterUpdate:void 0}:{},z=d,Q=f&&g;return f&&!Q&&(z={value:Uk(C,k,k[0]||null),options:k,action:"initial-input-focus"},Q=!g),(d==null?void 0:d.action)==="initial-input-focus"&&(z=null),Jt(Jt(Jt({},_),j),{},{prevProps:a,ariaSelection:z,prevWasFocused:Q})}}]),n})(R.Component);ite.defaultProps=$_e;var B_e=["defaultInputValue","defaultMenuIsOpen","defaultValue","inputValue","menuIsOpen","onChange","onInputChange","onMenuClose","onMenuOpen","value"];function W_e(e){var t=e.defaultInputValue,n=t===void 0?"":t,r=e.defaultMenuIsOpen,a=r===void 0?!1:r,i=e.defaultValue,o=i===void 0?null:i,l=e.inputValue,u=e.menuIsOpen,d=e.onChange,f=e.onInputChange,g=e.onMenuClose,y=e.onMenuOpen,h=e.value,v=Nu(e,B_e),E=R.useState(l!==void 0?l:n),T=vi(E,2),C=T[0],k=T[1],_=R.useState(u!==void 0?u:a),A=vi(_,2),P=A[0],N=A[1],I=R.useState(h!==void 0?h:o),L=vi(I,2),j=L[0],z=L[1],Q=R.useCallback(function(q,ce){typeof d=="function"&&d(q,ce),z(q)},[d]),ue=R.useCallback(function(q,ce){var H;typeof f=="function"&&(H=f(q,ce)),k(H!==void 0?H:q)},[f]),re=R.useCallback(function(){typeof y=="function"&&y(),N(!0)},[y]),me=R.useCallback(function(){typeof g=="function"&&g(),N(!1)},[g]),ge=l!==void 0?l:C,W=u!==void 0?u:P,G=h!==void 0?h:j;return Jt(Jt({},v),{},{inputValue:ge,menuIsOpen:W,onChange:Q,onInputChange:ue,onMenuClose:me,onMenuOpen:re,value:G})}var z_e=["defaultOptions","cacheOptions","loadOptions","options","isLoading","onInputChange","filterOption"];function q_e(e){var t=e.defaultOptions,n=t===void 0?!1:t,r=e.cacheOptions,a=r===void 0?!1:r,i=e.loadOptions;e.options;var o=e.isLoading,l=o===void 0?!1:o,u=e.onInputChange,d=e.filterOption,f=d===void 0?null:d,g=Nu(e,z_e),y=g.inputValue,h=R.useRef(void 0),v=R.useRef(!1),E=R.useState(Array.isArray(n)?n:void 0),T=vi(E,2),C=T[0],k=T[1],_=R.useState(typeof y<"u"?y:""),A=vi(_,2),P=A[0],N=A[1],I=R.useState(n===!0),L=vi(I,2),j=L[0],z=L[1],Q=R.useState(void 0),ue=vi(Q,2),re=ue[0],me=ue[1],ge=R.useState([]),W=vi(ge,2),G=W[0],q=W[1],ce=R.useState(!1),H=vi(ce,2),K=H[0],ae=H[1],J=R.useState({}),ee=vi(J,2),Z=ee[0],le=ee[1],ke=R.useState(void 0),fe=vi(ke,2),xe=fe[0],Ie=fe[1],qe=R.useState(void 0),tt=vi(qe,2),Ge=tt[0],rt=tt[1];a!==Ge&&(le({}),rt(a)),n!==xe&&(k(Array.isArray(n)?n:void 0),Ie(n)),R.useEffect(function(){return v.current=!0,function(){v.current=!1}},[]);var St=R.useCallback(function(Rt,cn){if(!i)return cn();var qt=i(Rt,cn);qt&&typeof qt.then=="function"&&qt.then(cn,function(){return cn()})},[i]);R.useEffect(function(){n===!0&&St(P,function(Rt){v.current&&(k(Rt||[]),z(!!h.current))})},[]);var kt=R.useCallback(function(Rt,cn){var qt=Oke(Rt,cn,u);if(!qt){h.current=void 0,N(""),me(""),q([]),z(!1),ae(!1);return}if(a&&Z[qt])N(qt),me(qt),q(Z[qt]),z(!1),ae(!1);else{var Wt=h.current={};N(qt),z(!0),ae(!re),St(qt,function(Oe){v&&Wt===h.current&&(h.current=void 0,z(!1),me(qt),q(Oe||[]),ae(!1),le(Oe?Jt(Jt({},Z),{},wt({},qt,Oe)):Z))})}},[a,St,re,Z,u]),xt=K?[]:P&&re?G:C||[];return Jt(Jt({},g),{},{options:xt,isLoading:j||l,onInputChange:kt,filterOption:f})}var H_e=R.forwardRef(function(e,t){var n=q_e(e),r=W_e(n);return R.createElement(ite,vt({ref:t},r))}),V_e=H_e;function G_e(e,t){return t?t(e):{name:{operation:"contains",value:e}}}function _j(e){return w.jsx(da,{...e,multiple:!0})}function da(e){var y,h,v;const t=At(),n=Gs();let[r,a]=R.useState("");if(!e.querySource)return w.jsx("div",{children:"No query source to render"});const{query:i,keyExtractor:o}=e.querySource({queryClient:n,query:{itemsPerPage:20,jsonQuery:G_e(r,e.jsonQuery),withPreloads:e.withPreloads},queryOptions:{refetchOnWindowFocus:!1}}),l=e.keyExtractor||o||(E=>JSON.stringify(E)),u=(h=(y=i==null?void 0:i.data)==null?void 0:y.data)==null?void 0:h.items,d=E=>{var T;if((T=e==null?void 0:e.formEffect)!=null&&T.form){const{formEffect:C}=e,k={...C.form.values};if(C.beforeSet&&(E=C.beforeSet(E)),ka.set(k,C.field,E),ka.isObject(E)&&E.uniqueId&&C.skipFirebackMetaData!==!0&&ka.set(k,C.field+"Id",E.uniqueId),ka.isArray(E)&&C.skipFirebackMetaData!==!0){const _=C.field+"ListId";ka.set(k,_,(E||[]).map(A=>A.uniqueId))}C==null||C.form.setValues(k)}e.onChange&&typeof e.onChange=="function"&&e.onChange(E)};let f=e.value;if(f===void 0&&((v=e.formEffect)!=null&&v.form)){const E=ka.get(e.formEffect.form.values,e.formEffect.field);E!==void 0&&(f=E)}typeof f!="object"&&l&&f!==void 0&&(f=u.find(E=>l(E)===f));const g=E=>new Promise(T=>{setTimeout(()=>{T(u)},100)});return w.jsxs(df,{...e,children:[e.children,e.convertToNative?w.jsxs("select",{value:f,multiple:e.multiple,onChange:E=>{const T=u==null?void 0:u.find(C=>C.uniqueId===E.target.value);d(T)},className:sa("form-select",e.errorMessage&&"is-invalid",e.validMessage&&"is-valid"),disabled:e.disabled,"aria-label":"Default select example",children:[w.jsx("option",{value:"",children:t.selectPlaceholder},void 0),u==null?void 0:u.filter(Boolean).map(E=>{const T=l(E);return w.jsx("option",{value:T,children:e.fnLabelFormat(E)},T)})]}):w.jsx(w.Fragment,{children:w.jsx(V_e,{value:f,onChange:E=>{d(E)},isMulti:e.multiple,classNames:{container(E){return sa(e.errorMessage&&" form-control form-control-no-padding is-invalid",e.validMessage&&"is-valid")},control(E){return sa("form-control form-control-no-padding")},menu(E){return"react-select-menu-area"}},isSearchable:!0,defaultOptions:u,placeholder:t.searchplaceholder,noOptionsMessage:()=>t.noOptions,getOptionValue:l,loadOptions:g,formatOptionLabel:e.fnLabelFormat,onInputChange:a})})]})}const Y_e=({form:e,isEditing:t})=>{const{options:n}=R.useContext(it),{values:r,setValues:a,setFieldValue:i,errors:o}=e,l=Kt(oT);return w.jsxs(w.Fragment,{children:[w.jsx(In,{value:r.name,onChange:u=>i(yi.Fields.name,u,!1),errorMessage:o.name,label:l.capabilities.name,hint:l.capabilities.nameHint}),w.jsx(In,{value:r.description,onChange:u=>i(yi.Fields.description,u,!1),errorMessage:o.description,label:l.capabilities.description,hint:l.capabilities.descriptionHint})]})};function ote({queryOptions:e,execFnOverride:t,query:n,queryClient:r,unauthorized:a}){var T;const{options:i,execFn:o}=R.useContext(it),l=t?t(i):o?o(i):Tt(i);let d=`${"/capability/:uniqueId".substr(1)}?${new URLSearchParams(Gt(n)).toString()}`,f=!0;d=d.replace(":uniqueId",n[":uniqueId".replace(":","")]),n[":uniqueId".replace(":","")]===void 0&&(f=!1);const g=()=>l("GET",d),y=(T=i==null?void 0:i.headers)==null?void 0:T.authorization,h=y!="undefined"&&y!=null&&y!=null&&y!="null"&&!!y;let v=!0;return f?!h&&!a&&(v=!1):v=!1,{query:jn([i,n,"*fireback.CapabilityEntity"],g,{cacheTime:1001,retry:!1,keepPreviousData:!0,enabled:v,...e||{}})}}function K_e(e){let{queryClient:t,query:n,execFnOverride:r}=e||{};n=n||{};const{options:a,execFn:i}=R.useContext(it),o=r?r(a):i?i(a):Tt(a);let u=`${"/capability".substr(1)}?${new URLSearchParams(Gt(n)).toString()}`;const f=un(h=>o("POST",u,h)),g=(h,v)=>{var E;return h?(h.data&&(v!=null&&v.data)&&(h.data.items=[v.data,...((E=h==null?void 0:h.data)==null?void 0:E.items)||[]]),h):{data:{items:[]}}};return{mutation:f,submit:(h,v)=>new Promise((E,T)=>{f.mutate(h,{onSuccess(C){t==null||t.setQueryData("*fireback.CapabilityEntity",k=>g(k,C)),E(C)},onError(C){v==null||v.setErrors(Pn(C)),T(C)}})}),fnUpdater:g}}function X_e(e){let{queryClient:t,query:n,execFnOverride:r}=e||{};n=n||{};const{options:a,execFn:i}=R.useContext(it),o=r?r(a):i?i(a):Tt(a);let u=`${"/capability".substr(1)}?${new URLSearchParams(Gt(n)).toString()}`;const f=un(h=>o("PATCH",u,h)),g=(h,v)=>{var E;return h?(h.data&&(v!=null&&v.data)&&(h.data.items=[v.data,...((E=h==null?void 0:h.data)==null?void 0:E.items)||[]]),h):{data:{items:[]}}};return{mutation:f,submit:(h,v)=>new Promise((E,T)=>{f.mutate(h,{onSuccess(C){t==null||t.setQueriesData("*fireback.CapabilityEntity",k=>g(k,C)),E(C)},onError(C){v==null||v.setErrors(Pn(C)),T(C)}})}),fnUpdater:g}}const oW=({data:e})=>{const t=Kt(oT),{router:n,uniqueId:r,queryClient:a,locale:i}=$r({data:e}),o=ote({query:{uniqueId:r}}),l=K_e({queryClient:a}),u=X_e({queryClient:a});return w.jsx(Yo,{postHook:l,patchHook:u,getSingleHook:o,onCancel:()=>{n.goBackOrDefault(yi.Navigation.query(void 0,i))},onFinishUriResolver:(d,f)=>{var g;return yi.Navigation.single((g=d.data)==null?void 0:g.uniqueId,f)},Form:Y_e,onEditTitle:t.capabilities.editCapability,onCreateTitle:t.capabilities.newCapability,data:e})},lo=({children:e,getSingleHook:t,editEntityHandler:n,noBack:r,disableOnGetFailed:a})=>{var l;const{router:i,locale:o}=$r({});return eme(n?()=>n({locale:o,router:i}):void 0,Ir.EditEntity),pJ(r!==!0?()=>i.goBack():null,Ir.CommonBack),w.jsxs(w.Fragment,{children:[w.jsx(Ll,{query:t.query}),a===!0&&((l=t==null?void 0:t.query)!=null&&l.isError)?null:w.jsx(w.Fragment,{children:e})]})};function uo({entity:e,fields:t,title:n,description:r}){var i;const a=At();return w.jsx("div",{className:"mt-4",children:w.jsxs("div",{className:"general-entity-view ",children:[n?w.jsx("h1",{children:n}):null,r?w.jsx("p",{children:r}):null,w.jsxs("div",{className:"entity-view-row entity-view-head",children:[w.jsx("div",{className:"field-info",children:a.table.info}),w.jsx("div",{className:"field-value",children:a.table.value})]}),(e==null?void 0:e.uniqueId)&&w.jsxs("div",{className:"entity-view-row entity-view-body",children:[w.jsx("div",{className:"field-info",children:a.table.uniqueId}),w.jsx("div",{className:"field-value",children:e.uniqueId})]}),(i=t||[])==null?void 0:i.map((o,l)=>{var d;let u=o.elem===void 0?"-":o.elem;return o.elem===!0&&(u=a.common.yes),o.elem===!1&&(u=a.common.no),o.elem===null&&(u=w.jsx("i",{children:w.jsx("b",{children:a.common.isNUll})})),w.jsxs("div",{className:"entity-view-row entity-view-body",children:[w.jsx("div",{className:"field-info",children:o.label}),w.jsxs("div",{className:"field-value","data-test-id":((d=o.label)==null?void 0:d.toString())||"",children:[u," ",w.jsx(_Z,{value:u})]})]},l)}),(e==null?void 0:e.createdFormatted)&&w.jsxs("div",{className:"entity-view-row entity-view-body",children:[w.jsx("div",{className:"field-info",children:a.table.created}),w.jsx("div",{className:"field-value",children:e.createdFormatted})]})]})})}const Q_e=()=>{var a;const{uniqueId:e}=$r({}),t=ote({query:{uniqueId:e}});var n=(a=t.query.data)==null?void 0:a.data;const r=Kt(oT);return w.jsx(w.Fragment,{children:w.jsx(lo,{editEntityHandler:({locale:i,router:o})=>{o.push(yi.Navigation.edit(e))},getSingleHook:t,children:w.jsx(uo,{entity:n,fields:[{elem:n==null?void 0:n.name,label:r.capabilities.name},{elem:n==null?void 0:n.description,label:r.capabilities.description}]})})})};function J_e(){return w.jsxs(w.Fragment,{children:[w.jsx(mt,{element:w.jsx(oW,{}),path:yi.Navigation.Rcreate}),w.jsx(mt,{element:w.jsx(Q_e,{}),path:yi.Navigation.Rsingle}),w.jsx(mt,{element:w.jsx(oW,{}),path:yi.Navigation.Redit}),w.jsx(mt,{element:w.jsx(gwe,{}),path:yi.Navigation.Rquery})]})}function Z_e(e){const t=R.useContext(eOe);R.useEffect(()=>{const n=t.listenFiles(e);return()=>t.removeSubscription(n)},[])}const eOe=ze.createContext({listenFiles(){return""},removeSubscription(){},refs:[]});function ste({queryOptions:e,query:t,queryClient:n,execFnOverride:r,unauthorized:a,optionFn:i}){var k,_,A;const{options:o,execFn:l}=R.useContext(it),u=i?i(o):o,d=r?r(u):l?l(u):Tt(u);let g=`${"/files".substr(1)}?${oi.stringify(t)}`;const y=()=>d("GET",g),h=(k=u==null?void 0:u.headers)==null?void 0:k.authorization,v=h!="undefined"&&h!=null&&h!=null&&h!="null"&&!!h;let E=!0;!v&&!a&&(E=!1);const T=jn(["*abac.FileEntity",u,t],y,{cacheTime:1e3,retry:!1,keepPreviousData:!0,enabled:E,...e||{}}),C=((A=(_=T.data)==null?void 0:_.data)==null?void 0:A.items)||[];return{query:T,items:C,keyExtractor:P=>P.uniqueId}}ste.UKEY="*abac.FileEntity";const tOe=e=>[{name:Dd.Fields.uniqueId,title:e.table.uniqueId,width:200},{name:Dd.Fields.name,title:e.drive.title,width:200},{name:Dd.Fields.size,title:e.drive.size,width:100},{name:Dd.Fields.virtualPath,title:e.drive.virtualPath,width:100},{name:Dd.Fields.type,title:e.drive.type,width:100}],nOe=()=>{const e=At();return w.jsx(w.Fragment,{children:w.jsx(Go,{columns:tOe(e),queryHook:ste,uniqueIdHrefHandler:t=>Dd.Navigation.single(t)})})};function rOe(e,t){const n=[];let r=!1;for(let a of e)a.uploadId===t.uploadId?(r=!0,n.push(t)):n.push(a);return r===!1&&n.push(t),n}function lte(){const{session:e,selectedUrw:t,activeUploads:n,setActiveUploads:r}=R.useContext(it),a=(l,u)=>o([new File([l],u)]),i=(l,u=!1)=>new Promise((d,f)=>{const g=new Mhe(l,{endpoint:kr.REMOTE_SERVICE+"tus",onBeforeRequest(y){y.setHeader("authorization",e.token),y.setHeader("workspace-id",t==null?void 0:t.workspaceId)},headers:{},metadata:{filename:l.name,path:"/database/users",filetype:l.type},onSuccess(){var h;const y=(h=g.url)==null?void 0:h.match(/([a-z0-9]){10,}/gi);d(`${y}`)},onError(y){f(y)},onProgress(y,h){var E,T;const v=(T=(E=g.url)==null?void 0:E.match(/([a-z0-9]){10,}/gi))==null?void 0:T.toString();if(v){const C={uploadId:v,bytesSent:y,filename:l.name,bytesTotal:h};u!==!0&&r(k=>rOe(k,C))}}});g.start()}),o=(l,u=!1)=>l.map(d=>i(d));return{upload:o,activeUploads:n,uploadBlob:a,uploadSingle:i}}const sW=()=>{const e=At(),{upload:t}=lte(),n=Gs(),r=i=>{Promise.all(t(i)).then(o=>{n.invalidateQueries("*drive.FileEntity")}).catch(o=>{alert(o)})};Z_e({label:"Add files or documents to drive",extentions:["*"],onCaptureFile(i){r(i)}});const a=()=>{var i=document.createElement("input");i.type="file",i.onchange=o=>{r(Array.from(o.target.files))},i.click()};return w.jsx(Vo,{pageTitle:e.drive.driveTitle,newEntityHandler:()=>{a()},children:w.jsx(nOe,{})})};function aOe({queryOptions:e,execFnOverride:t,query:n,queryClient:r,unauthorized:a}){var T;const{options:i,execFn:o}=R.useContext(it),l=t?t(i):o?o(i):Tt(i);let d=`${"/file/:uniqueId".substr(1)}?${new URLSearchParams(Gt(n)).toString()}`,f=!0;d=d.replace(":uniqueId",n[":uniqueId".replace(":","")]),n[":uniqueId".replace(":","")]===void 0&&(f=!1);const g=()=>l("GET",d),y=(T=i==null?void 0:i.headers)==null?void 0:T.authorization,h=y!="undefined"&&y!=null&&y!=null&&y!="null"&&!!y;let v=!0;return f?!h&&!a&&(v=!1):v=!1,{query:jn([i,n,"*abac.FileEntity"],g,{cacheTime:1001,retry:!1,keepPreviousData:!0,enabled:v,...e||{}})}}const iOe=()=>{var o;const t=xr().query.uniqueId,n=aOe({query:{uniqueId:t}});let r=(o=n.query.data)==null?void 0:o.data;xh((r==null?void 0:r.name)||"");const a=At(),{directPath:i}=wJ();return w.jsx(w.Fragment,{children:w.jsx(lo,{getSingleHook:n,children:w.jsx(uo,{entity:r,fields:[{label:a.drive.name,elem:r==null?void 0:r.name},{label:a.drive.size,elem:r==null?void 0:r.size},{label:a.drive.type,elem:r==null?void 0:r.type},{label:a.drive.virtualPath,elem:r==null?void 0:r.virtualPath},{label:a.drive.viewPath,elem:w.jsx("pre",{children:i(r)})}]})})})};function oOe(){return w.jsxs(w.Fragment,{children:[w.jsx(mt,{path:"drive",element:w.jsx(sW,{})}),w.jsx(mt,{path:"drives",element:w.jsx(sW,{})}),w.jsx(mt,{path:"file/:uniqueId",element:w.jsx(iOe,{})})]})}class wi extends wn{constructor(...t){super(...t),this.children=void 0,this.type=void 0,this.apiKey=void 0}}wi.Navigation={edit(e,t){return`${t?"/"+t:".."}/email-provider/edit/${e}`},create(e){return`${e?"/"+e:".."}/email-provider/new`},single(e,t){return`${t?"/"+t:".."}/email-provider/${e}`},query(e={},t){return`${t?"/"+t:".."}/email-providers`},Redit:"email-provider/edit/:uniqueId",Rcreate:"email-provider/new",Rsingle:"email-provider/:uniqueId",Rquery:"email-providers"};wi.definition={rpc:{query:{}},permRewrite:{replace:"root.modules",with:"root.manage"},name:"emailProvider",features:{},security:{writeOnRoot:!0},gormMap:{},fields:[{name:"type",type:"enum",validate:"required",of:[{k:"terminal"},{k:"sendgrid"}],computedType:'"terminal" | "sendgrid"',gormMap:{}},{name:"apiKey",type:"string",computedType:"string",gormMap:{}}],description:"Thirdparty services which will send email, allows each workspace graphically configure their token without the need of restarting servers"};wi.Fields={...wn.Fields,type:"type",apiKey:"apiKey"};function ute({queryOptions:e,execFnOverride:t,query:n,queryClient:r,unauthorized:a}){var T;const{options:i,execFn:o}=R.useContext(it),l=t?t(i):o?o(i):Tt(i);let d=`${"/email-provider/:uniqueId".substr(1)}?${new URLSearchParams(Gt(n)).toString()}`,f=!0;d=d.replace(":uniqueId",n[":uniqueId".replace(":","")]),n[":uniqueId".replace(":","")]===void 0&&(f=!1);const g=()=>l("GET",d),y=(T=i==null?void 0:i.headers)==null?void 0:T.authorization,h=y!="undefined"&&y!=null&&y!=null&&y!="null"&&!!y;let v=!0;return f?!h&&!a&&(v=!1):v=!1,{query:jn([i,n,"*abac.EmailProviderEntity"],g,{cacheTime:1001,retry:!1,keepPreviousData:!0,enabled:v,...e||{}})}}function sOe(e){let{queryClient:t,query:n,execFnOverride:r}=e||{};n=n||{};const{options:a,execFn:i}=R.useContext(it),o=r?r(a):i?i(a):Tt(a);let u=`${"/email-provider".substr(1)}?${new URLSearchParams(Gt(n)).toString()}`;const f=un(h=>o("PATCH",u,h)),g=(h,v)=>{var E;return h?(h.data&&(v!=null&&v.data)&&(h.data.items=[v.data,...((E=h==null?void 0:h.data)==null?void 0:E.items)||[]]),h):{data:{items:[]}}};return{mutation:f,submit:(h,v)=>new Promise((E,T)=>{f.mutate(h,{onSuccess(C){t==null||t.setQueriesData("*abac.EmailProviderEntity",k=>g(k,C)),E(C)},onError(C){v==null||v.setErrors(Pn(C)),T(C)}})}),fnUpdater:g}}function lOe(e){let{queryClient:t,query:n,execFnOverride:r}=e||{};n=n||{};const{options:a,execFn:i}=R.useContext(it),o=r?r(a):i?i(a):Tt(a);let u=`${"/email-provider".substr(1)}?${new URLSearchParams(Gt(n)).toString()}`;const f=un(h=>o("POST",u,h)),g=(h,v)=>{var E;return h?(h.data&&(v!=null&&v.data)&&(h.data.items=[v.data,...((E=h==null?void 0:h.data)==null?void 0:E.items)||[]]),h):{data:{items:[]}}};return{mutation:f,submit:(h,v)=>new Promise((E,T)=>{f.mutate(h,{onSuccess(C){t==null||t.setQueryData("*abac.EmailProviderEntity",k=>g(k,C)),E(C)},onError(C){v==null||v.setErrors(Pn(C)),T(C)}})}),fnUpdater:g}}function uOe(e,t){const n=ka.flatMapDeep(t,(r,a,i)=>{let o=[],l=a;if(r&&typeof r=="object"&&!r.value){const u=Object.keys(r);if(u.length)for(let d of u)o.push({name:`${l}.${d}`,filter:r[d]})}else o.push({name:l,filter:r});return o});return e.filter((r,a)=>{for(let i of n){const o=ka.get(r,i.name);if(o)switch(i.filter.operation){case"equal":if(o!==i.filter.value)return!1;break;case"contains":if(!o.includes(i.filter.value))return!1;break;case"notContains":if(o.includes(i.filter.value))return!1;break;case"endsWith":if(!o.endsWith(i.filter.value))return!1;break;case"startsWith":if(!o.startsWith(i.filter.value))return!1;break;case"greaterThan":if(oi.filter.value)return!1;break;case"lessThanOrEqual":if(o>=i.filter.value)return!1;break;case"notEqual":if(o===i.filter.value)return!1;break}}return!0})}function Ks(e){return t=>cOe({items:e,...t})}function cOe(e){var i,o;let t=((i=e.query)==null?void 0:i.itemsPerPage)||2,n=e.query.startIndex||0,r=e.items||[];return(o=e.query)!=null&&o.jsonQuery&&(r=uOe(r,e.query.jsonQuery)),r=r.slice(n,n+t),{query:{data:{data:{items:r,totalItems:r.length,totalAvailableItems:r.length}},dataUpdatedAt:0,error:null,errorUpdateCount:0,errorUpdatedAt:0,failureCount:0,isError:!1,isFetched:!1,isFetchedAfterMount:!1,isFetching:!1,isIdle:!1,isLoading:!1,isLoadingError:!1,isPlaceholderData:!1,isPreviousData:!1,isRefetchError:!1,isRefetching:!1,isStale:!1,remove(){console.log("Use as query has not implemented this.")},refetch(){return console.log("Refetch is not working actually."),Promise.resolve(void 0)},isSuccess:!0,status:"success"},items:r}}const dOe=({form:e,isEditing:t})=>{const{values:n,setFieldValue:r,errors:a}=e,i=At(),l=Ks([{label:"Sendgrid",value:"sendgrid"}]);return w.jsxs(w.Fragment,{children:[w.jsx(da,{formEffect:{form:e,field:wi.Fields.type,beforeSet(u){return u.value}},querySource:l,errorMessage:a.type,label:i.mailProvider.type,hint:i.mailProvider.typeHint}),w.jsx(In,{value:n.apiKey,autoFocus:!t,onChange:u=>r(wi.Fields.apiKey,u,!1),dir:"ltr",errorMessage:a.apiKey,label:i.mailProvider.apiKey,hint:i.mailProvider.apiKeyHint})]})},lW=({data:e})=>{const{router:t,uniqueId:n,queryClient:r,t:a,locale:i}=$r({data:e}),o=ute({query:{uniqueId:n}}),l=lOe({queryClient:r}),u=sOe({queryClient:r});return w.jsx(Yo,{postHook:l,getSingleHook:o,patchHook:u,onCancel:()=>{t.goBackOrDefault(wi.Navigation.query(void 0,i))},onFinishUriResolver:(d,f)=>{var g;return wi.Navigation.single((g=d.data)==null?void 0:g.uniqueId,f)},Form:dOe,onEditTitle:a.fb.editMailProvider,onCreateTitle:a.fb.newMailProvider,data:e})};class _E extends wn{constructor(...t){super(...t),this.children=void 0,this.thirdPartyVerifier=void 0,this.type=void 0,this.user=void 0,this.value=void 0,this.totpSecret=void 0,this.totpConfirmed=void 0,this.password=void 0,this.confirmed=void 0,this.accessToken=void 0}}_E.Navigation={edit(e,t){return`${t?"/"+t:".."}/passport/edit/${e}`},create(e){return`${e?"/"+e:".."}/passport/new`},single(e,t){return`${t?"/"+t:".."}/passport/${e}`},query(e={},t){return`${t?"/"+t:".."}/passports`},Redit:"passport/edit/:uniqueId",Rcreate:"passport/new",Rsingle:"passport/:uniqueId",Rquery:"passports"};_E.definition={rpc:{query:{}},permRewrite:{replace:"root.modules",with:"root.manage"},name:"passport",features:{},security:{writeOnRoot:!0},gormMap:{},fields:[{name:"thirdPartyVerifier",description:"When user creates account via oauth services such as google, it's essential to set the provider and do not allow passwordless logins if it's not via that specific provider.",type:"string",default:!1,computedType:"string",gormMap:{}},{name:"type",type:"string",validate:"required",computedType:"string",gormMap:{}},{name:"user",type:"one",target:"UserEntity",computedType:"UserEntity",gormMap:{}},{name:"value",type:"string",validate:"required",computedType:"string",gorm:"unique",gormMap:{}},{name:"totpSecret",description:"Store the secret of 2FA using time based dual factor authentication here for this specific passport. If set, during authorization will be asked.",type:"string",computedType:"string",gormMap:{}},{name:"totpConfirmed",description:"Regardless of the secret, user needs to confirm his secret. There is an extra action to confirm user totp, could be used after signup or prior to login.",type:"bool?",computedType:"boolean",gormMap:{}},{name:"password",type:"string",json:"-",yaml:"-",computedType:"string",gormMap:{}},{name:"confirmed",type:"bool?",computedType:"boolean",gormMap:{}},{name:"accessToken",type:"string",computedType:"string",gormMap:{}}],description:"Represent a mean to login in into the system, each user could have multiple passport (email, phone) and authenticate into the system."};_E.Fields={...wn.Fields,thirdPartyVerifier:"thirdPartyVerifier",type:"type",user$:"user",user:oa.Fields,value:"value",totpSecret:"totpSecret",totpConfirmed:"totpConfirmed",password:"password",confirmed:"confirmed",accessToken:"accessToken"};function wa(e,t){if(!{}.hasOwnProperty.call(e,t))throw new TypeError("attempted to use private field on non-instance");return e}var fOe=0;function py(e){return"__private_"+fOe+++"_"+e}var md=py("passport"),eg=py("token"),tg=py("exchangeKey"),gd=py("userWorkspaces"),vd=py("user"),ng=py("userId"),NA=py("isJsonAppliable");class Dr{get passport(){return wa(this,md)[md]}set passport(t){t instanceof _E?wa(this,md)[md]=t:wa(this,md)[md]=new _E(t)}setPassport(t){return this.passport=t,this}get token(){return wa(this,eg)[eg]}set token(t){wa(this,eg)[eg]=String(t)}setToken(t){return this.token=t,this}get exchangeKey(){return wa(this,tg)[tg]}set exchangeKey(t){wa(this,tg)[tg]=String(t)}setExchangeKey(t){return this.exchangeKey=t,this}get userWorkspaces(){return wa(this,gd)[gd]}set userWorkspaces(t){Array.isArray(t)&&(t.length>0&&t[0]instanceof v0?wa(this,gd)[gd]=t:wa(this,gd)[gd]=t.map(n=>new v0(n)))}setUserWorkspaces(t){return this.userWorkspaces=t,this}get user(){return wa(this,vd)[vd]}set user(t){t instanceof oa?wa(this,vd)[vd]=t:wa(this,vd)[vd]=new oa(t)}setUser(t){return this.user=t,this}get userId(){return wa(this,ng)[ng]}set userId(t){const n=typeof t=="string"||t===void 0||t===null;wa(this,ng)[ng]=n?t:String(t)}setUserId(t){return this.userId=t,this}constructor(t=void 0){if(Object.defineProperty(this,NA,{value:pOe}),Object.defineProperty(this,md,{writable:!0,value:void 0}),Object.defineProperty(this,eg,{writable:!0,value:""}),Object.defineProperty(this,tg,{writable:!0,value:""}),Object.defineProperty(this,gd,{writable:!0,value:[]}),Object.defineProperty(this,vd,{writable:!0,value:void 0}),Object.defineProperty(this,ng,{writable:!0,value:void 0}),t!=null)if(typeof t=="string")this.applyFromObject(JSON.parse(t));else if(wa(this,NA)[NA](t))this.applyFromObject(t);else throw new Error("Instance cannot be created on an unknown value, check the content being passed. got: "+typeof t)}applyFromObject(t={}){const n=t;n.passport!==void 0&&(this.passport=n.passport),n.token!==void 0&&(this.token=n.token),n.exchangeKey!==void 0&&(this.exchangeKey=n.exchangeKey),n.userWorkspaces!==void 0&&(this.userWorkspaces=n.userWorkspaces),n.user!==void 0&&(this.user=n.user),n.userId!==void 0&&(this.userId=n.userId)}toJSON(){return{passport:wa(this,md)[md],token:wa(this,eg)[eg],exchangeKey:wa(this,tg)[tg],userWorkspaces:wa(this,gd)[gd],user:wa(this,vd)[vd],userId:wa(this,ng)[ng]}}toString(){return JSON.stringify(this)}static get Fields(){return{passport:"passport",token:"token",exchangeKey:"exchangeKey",userWorkspaces$:"userWorkspaces",get userWorkspaces(){return Pc("userWorkspaces[:i]",v0.Fields)},user:"user",userId:"userId"}}static from(t){return new Dr(t)}static with(t){return new Dr(t)}copyWith(t){return new Dr({...this.toJSON(),...t})}clone(){return new Dr(this.toJSON())}}function pOe(e){const t=globalThis,n=typeof t.Buffer<"u"&&typeof t.Buffer.isBuffer=="function"&&t.Buffer.isBuffer(e),r=typeof t.Blob<"u"&&e instanceof t.Blob;return e&&typeof e=="object"&&!Array.isArray(e)&&!n&&!(e instanceof ArrayBuffer)&&!r}const cte=ze.createContext({setToken(){},setSession(){},signout(){},ref:{token:""},isAuthenticated:!1});function hOe(){const e=localStorage.getItem("app_auth_state");if(e){try{const t=JSON.parse(e);return t?{...t}:{}}catch{}return{}}}const mOe=hOe();function aO(e){const t=R.useContext(cte);R.useEffect(()=>{t.setToken(e||"")},[e])}function gOe({children:e}){const[t,n]=R.useState(mOe),r=()=>{n({token:""}),localStorage.removeItem("app_auth_state")},a=l=>{const u={...t,...l};n(u),localStorage.setItem("app_auth_state",JSON.stringify(u))},i=l=>{const u={...t,token:l};n(u),localStorage.setItem("app_auth_state",JSON.stringify(u))},o=!!(t!=null&&t.token);return w.jsx(cte.Provider,{value:{signout:r,setSession:a,isAuthenticated:o,ref:t,setToken:i},children:e})}const vOe=()=>{var i;const e=xr(),t=At(),n=e.query.uniqueId;sr();const r=ute({query:{uniqueId:n}});var a=(i=r.query.data)==null?void 0:i.data;return aO((a==null?void 0:a.type)||""),w.jsx(w.Fragment,{children:w.jsx(lo,{editEntityHandler:()=>{e.push(wi.Navigation.edit(n))},getSingleHook:r,children:w.jsx(uo,{entity:a,fields:[{label:t.mailProvider.type,elem:w.jsx("span",{children:a==null?void 0:a.type})},{label:t.mailProvider.apiKey,elem:w.jsx("pre",{dir:"ltr",children:a==null?void 0:a.apiKey})}]})})})},yOe=e=>[{name:wi.Fields.uniqueId,title:e.table.uniqueId,width:200},{name:wi.Fields.type,title:e.mailProvider.type,width:200},{name:wi.Fields.apiKey,title:e.mailProvider.apiKey,width:200}];function Oj({queryOptions:e,query:t,queryClient:n,execFnOverride:r,unauthorized:a,optionFn:i}){var k,_,A;const{options:o,execFn:l}=R.useContext(it),u=i?i(o):o,d=r?r(u):l?l(u):Tt(u);let g=`${"/email-providers".substr(1)}?${oi.stringify(t)}`;const y=()=>d("GET",g),h=(k=u==null?void 0:u.headers)==null?void 0:k.authorization,v=h!="undefined"&&h!=null&&h!=null&&h!="null"&&!!h;let E=!0;!v&&!a&&(E=!1);const T=jn(["*abac.EmailProviderEntity",u,t],y,{cacheTime:1e3,retry:!1,keepPreviousData:!0,enabled:E,...e||{}}),C=((A=(_=T.data)==null?void 0:_.data)==null?void 0:A.items)||[];return{query:T,items:C,keyExtractor:P=>P.uniqueId}}Oj.UKEY="*abac.EmailProviderEntity";function bOe(e){const{execFnOverride:t,queryClient:n,query:r}=e||{},{options:a,execFn:i}=R.useContext(it),o=t?t(a):i?i(a):Tt(a);let u=`${"/email-provider".substr(1)}?${new URLSearchParams(Gt(r)).toString()}`;const f=un(h=>o("DELETE",u,h)),g=(h,v)=>h;return{mutation:f,submit:(h,v)=>new Promise((E,T)=>{f.mutate(h,{onSuccess(C){n==null||n.setQueryData("*abac.EmailProviderEntity",k=>g(k)),n==null||n.invalidateQueries("*abac.EmailProviderEntity"),E(C)},onError(C){v==null||v.setErrors(Pn(C)),T(C)}})}),fnUpdater:g}}const wOe=()=>{const e=At();return w.jsx(w.Fragment,{children:w.jsx(Go,{columns:yOe(e),queryHook:Oj,uniqueIdHrefHandler:t=>wi.Navigation.single(t),deleteHook:bOe})})},SOe=()=>{const e=At();return w.jsx(w.Fragment,{children:w.jsx(Vo,{pageTitle:e.fbMenu.emailProviders,newEntityHandler:({locale:t,router:n})=>{n.push(wi.Navigation.create())},children:w.jsx(wOe,{})})})};function EOe(){return w.jsxs(w.Fragment,{children:[w.jsx(mt,{element:w.jsx(lW,{}),path:wi.Navigation.Rcreate}),w.jsx(mt,{element:w.jsx(vOe,{}),path:wi.Navigation.Rsingle}),w.jsx(mt,{element:w.jsx(lW,{}),path:wi.Navigation.Redit}),w.jsx(mt,{element:w.jsx(SOe,{}),path:wi.Navigation.Rquery})]})}class Wa extends wn{constructor(...t){super(...t),this.children=void 0,this.fromName=void 0,this.fromEmailAddress=void 0,this.replyTo=void 0,this.nickName=void 0}}Wa.Navigation={edit(e,t){return`${t?"/"+t:".."}/email-sender/edit/${e}`},create(e){return`${e?"/"+e:".."}/email-sender/new`},single(e,t){return`${t?"/"+t:".."}/email-sender/${e}`},query(e={},t){return`${t?"/"+t:".."}/email-senders`},Redit:"email-sender/edit/:uniqueId",Rcreate:"email-sender/new",Rsingle:"email-sender/:uniqueId",Rquery:"email-senders"};Wa.definition={rpc:{query:{}},permRewrite:{replace:"root.modules",with:"root.manage"},name:"emailSender",features:{},security:{writeOnRoot:!0},gormMap:{},fields:[{name:"fromName",type:"string",validate:"required",computedType:"string",gormMap:{}},{name:"fromEmailAddress",type:"string",validate:"required",computedType:"string",gorm:"unique",gormMap:{}},{name:"replyTo",type:"string",validate:"required",computedType:"string",gormMap:{}},{name:"nickName",type:"string",validate:"required",computedType:"string",gormMap:{}}],description:"All emails going from the system need to have a virtual sender (nick name, email address, etc)"};Wa.Fields={...wn.Fields,fromName:"fromName",fromEmailAddress:"fromEmailAddress",replyTo:"replyTo",nickName:"nickName"};function dte({queryOptions:e,execFnOverride:t,query:n,queryClient:r,unauthorized:a}){var T;const{options:i,execFn:o}=R.useContext(it),l=t?t(i):o?o(i):Tt(i);let d=`${"/email-sender/:uniqueId".substr(1)}?${new URLSearchParams(Gt(n)).toString()}`,f=!0;d=d.replace(":uniqueId",n[":uniqueId".replace(":","")]),n[":uniqueId".replace(":","")]===void 0&&(f=!1);const g=()=>l("GET",d),y=(T=i==null?void 0:i.headers)==null?void 0:T.authorization,h=y!="undefined"&&y!=null&&y!=null&&y!="null"&&!!y;let v=!0;return f?!h&&!a&&(v=!1):v=!1,{query:jn([i,n,"*abac.EmailSenderEntity"],g,{cacheTime:1001,retry:!1,keepPreviousData:!0,enabled:v,...e||{}})}}function TOe(e){let{queryClient:t,query:n,execFnOverride:r}=e||{};n=n||{};const{options:a,execFn:i}=R.useContext(it),o=r?r(a):i?i(a):Tt(a);let u=`${"/email-sender".substr(1)}?${new URLSearchParams(Gt(n)).toString()}`;const f=un(h=>o("PATCH",u,h)),g=(h,v)=>{var E;return h?(h.data&&(v!=null&&v.data)&&(h.data.items=[v.data,...((E=h==null?void 0:h.data)==null?void 0:E.items)||[]]),h):{data:{items:[]}}};return{mutation:f,submit:(h,v)=>new Promise((E,T)=>{f.mutate(h,{onSuccess(C){t==null||t.setQueriesData("*abac.EmailSenderEntity",k=>g(k,C)),E(C)},onError(C){v==null||v.setErrors(Pn(C)),T(C)}})}),fnUpdater:g}}function COe(e){let{queryClient:t,query:n,execFnOverride:r}=e||{};n=n||{};const{options:a,execFn:i}=R.useContext(it),o=r?r(a):i?i(a):Tt(a);let u=`${"/email-sender".substr(1)}?${new URLSearchParams(Gt(n)).toString()}`;const f=un(h=>o("POST",u,h)),g=(h,v)=>{var E;return h?(h.data&&(v!=null&&v.data)&&(h.data.items=[v.data,...((E=h==null?void 0:h.data)==null?void 0:E.items)||[]]),h):{data:{items:[]}}};return{mutation:f,submit:(h,v)=>new Promise((E,T)=>{f.mutate(h,{onSuccess(C){t==null||t.setQueryData("*abac.EmailSenderEntity",k=>g(k,C)),E(C)},onError(C){v==null||v.setErrors(Pn(C)),T(C)}})}),fnUpdater:g}}const kOe=({form:e,isEditing:t})=>{const n=At(),{values:r,setFieldValue:a,errors:i}=e;return w.jsxs(w.Fragment,{children:[w.jsx(In,{value:r.fromEmailAddress,onChange:o=>a(Wa.Fields.fromEmailAddress,o,!1),autoFocus:!t,errorMessage:i.fromEmailAddress,label:n.mailProvider.fromEmailAddress,hint:n.mailProvider.fromEmailAddressHint}),w.jsx(In,{value:r.fromName,onChange:o=>a(Wa.Fields.fromName,o,!1),errorMessage:i.fromName,label:n.mailProvider.fromName,hint:n.mailProvider.fromNameHint}),w.jsx(In,{value:r.nickName,onChange:o=>a(Wa.Fields.nickName,o,!1),errorMessage:i.nickName,label:n.mailProvider.nickName,hint:n.mailProvider.nickNameHint}),w.jsx(In,{value:r.replyTo,onChange:o=>a(Wa.Fields.replyTo,o,!1),errorMessage:i.replyTo,label:n.mailProvider.replyTo,hint:n.mailProvider.replyToHint})]})},uW=({data:e})=>{const{router:t,uniqueId:n,queryClient:r,locale:a}=$r({data:e}),i=At(),o=dte({query:{uniqueId:n}}),l=COe({queryClient:r}),u=TOe({queryClient:r});return w.jsx(Yo,{postHook:l,getSingleHook:o,patchHook:u,onCancel:()=>{t.goBackOrDefault(Wa.Navigation.query(void 0,a))},onFinishUriResolver:(d,f)=>{var g;return Wa.Navigation.single((g=d.data)==null?void 0:g.uniqueId,f)},Form:kOe,onEditTitle:i.fb.editMailSender,onCreateTitle:i.fb.newMailSender,data:e})},xOe=()=>{var l;const e=xr(),t=At(),n=e.query.uniqueId;sr();const[r,a]=R.useState([]),i=dte({query:{uniqueId:n}});var o=(l=i.query.data)==null?void 0:l.data;return aO((o==null?void 0:o.fromName)||""),w.jsx(w.Fragment,{children:w.jsx(lo,{editEntityHandler:()=>{e.push(Wa.Navigation.edit(n))},getSingleHook:i,children:w.jsx(uo,{entity:o,fields:[{label:t.mailProvider.fromName,elem:o==null?void 0:o.fromName},{label:t.mailProvider.fromEmailAddress,elem:o==null?void 0:o.fromEmailAddress},{label:t.mailProvider.nickName,elem:o==null?void 0:o.nickName},{label:t.mailProvider.replyTo,elem:o==null?void 0:o.replyTo}]})})})},_Oe=e=>[{name:Wa.Fields.uniqueId,title:e.table.uniqueId,width:200},{name:Wa.Fields.fromName,title:e.mailProvider.fromName,width:200},{name:Wa.Fields.fromEmailAddress,title:e.mailProvider.fromEmailAddress,width:200},{name:Wa.Fields.nickName,title:e.mailProvider.nickName,width:200},{name:Wa.Fields.replyTo,title:e.mailProvider.replyTo,width:200}];function fte({queryOptions:e,query:t,queryClient:n,execFnOverride:r,unauthorized:a,optionFn:i}){var k,_,A;const{options:o,execFn:l}=R.useContext(it),u=i?i(o):o,d=r?r(u):l?l(u):Tt(u);let g=`${"/email-senders".substr(1)}?${oi.stringify(t)}`;const y=()=>d("GET",g),h=(k=u==null?void 0:u.headers)==null?void 0:k.authorization,v=h!="undefined"&&h!=null&&h!=null&&h!="null"&&!!h;let E=!0;!v&&!a&&(E=!1);const T=jn(["*abac.EmailSenderEntity",u,t],y,{cacheTime:1e3,retry:!1,keepPreviousData:!0,enabled:E,...e||{}}),C=((A=(_=T.data)==null?void 0:_.data)==null?void 0:A.items)||[];return{query:T,items:C,keyExtractor:P=>P.uniqueId}}fte.UKEY="*abac.EmailSenderEntity";function OOe(e){const{execFnOverride:t,queryClient:n,query:r}=e||{},{options:a,execFn:i}=R.useContext(it),o=t?t(a):i?i(a):Tt(a);let u=`${"/email-sender".substr(1)}?${new URLSearchParams(Gt(r)).toString()}`;const f=un(h=>o("DELETE",u,h)),g=(h,v)=>h;return{mutation:f,submit:(h,v)=>new Promise((E,T)=>{f.mutate(h,{onSuccess(C){n==null||n.setQueryData("*abac.EmailSenderEntity",k=>g(k)),n==null||n.invalidateQueries("*abac.EmailSenderEntity"),E(C)},onError(C){v==null||v.setErrors(Pn(C)),T(C)}})}),fnUpdater:g}}const ROe=()=>{const e=At();return w.jsx(w.Fragment,{children:w.jsx(Go,{columns:_Oe(e),queryHook:fte,uniqueIdHrefHandler:t=>Wa.Navigation.single(t),deleteHook:OOe})})},POe=()=>{const e=At();return w.jsx(w.Fragment,{children:w.jsx(Vo,{pageTitle:e.fbMenu.emailSenders,newEntityHandler:({locale:t,router:n})=>{n.push(Wa.Navigation.create())},children:w.jsx(ROe,{})})})};function AOe(){return w.jsxs(w.Fragment,{children:[w.jsx(mt,{element:w.jsx(uW,{}),path:Wa.Navigation.Rcreate}),w.jsx(mt,{element:w.jsx(xOe,{}),path:Wa.Navigation.Rsingle}),w.jsx(mt,{element:w.jsx(uW,{}),path:Wa.Navigation.Redit}),w.jsx(mt,{element:w.jsx(POe,{}),path:Wa.Navigation.Rquery})]})}const NOe={passportMethods:{clientKeyHint:"Klucz klienta dla metod takich jak Google, służący do autoryzacji OAuth2",archiveTitle:"Metody paszportowe",region:"Region",regionHint:"Region",type:"Typ",editPassportMethod:"Edytuj metodę paszportową",newPassportMethod:"Nowa metoda paszportowa",typeHint:"Typ",clientKey:"Klucz klienta"}},MOe={passportMethods:{archiveTitle:"Passport methods",clientKey:"Client Key",editPassportMethod:"Edit passport method",newPassportMethod:"New passport method",region:"Region",typeHint:"Type",clientKeyHint:"Client key for methods such as google, to authroize the oauth2",regionHint:"Region",type:"Type"}},dT={...NOe,$pl:MOe};class Vi extends wn{constructor(...t){super(...t),this.children=void 0,this.type=void 0,this.region=void 0,this.clientKey=void 0}}Vi.Navigation={edit(e,t){return`${t?"/"+t:".."}/passport-method/edit/${e}`},create(e){return`${e?"/"+e:".."}/passport-method/new`},single(e,t){return`${t?"/"+t:".."}/passport-method/${e}`},query(e={},t){return`${t?"/"+t:".."}/passport-methods`},Redit:"passport-method/edit/:uniqueId",Rcreate:"passport-method/new",Rsingle:"passport-method/:uniqueId",Rquery:"passport-methods"};Vi.definition={rpc:{query:{}},permRewrite:{replace:"root.modules",with:"root.manage"},name:"passportMethod",features:{mock:!1,msync:!1},security:{writeOnRoot:!0,readOnRoot:!0,resolveStrategy:"workspace"},gormMap:{},fields:[{name:"type",type:"enum",validate:"oneof=email phone google facebook,required",of:[{k:"email",description:"Authenticate users using email"},{k:"phone",description:"Authenticat users using phone number, can be sms, calls, or whatsapp."},{k:"google",description:"Users can be authenticated using their google account"},{k:"facebook",description:"Users can be authenticated using their facebook account"}],computedType:'"email" | "phone" | "google" | "facebook"',gormMap:{}},{name:"region",description:"The region which would be using this method of passports for authentication. In Fireback open-source, only 'global' is available.",type:"enum",validate:"required,oneof=global",default:"global",of:[{k:"global"}],computedType:'"global"',gormMap:{}},{name:"clientKey",description:"Client key for those methods such as 'google' which require oauth client key",type:"string",computedType:"string",gormMap:{}}],cliShort:"method",description:"Login/Signup methods which are available in the app for different regions (Email, Phone Number, Google, etc)"};Vi.Fields={...wn.Fields,type:"type",region:"region",clientKey:"clientKey"};const IOe=e=>[{name:"uniqueId",title:"uniqueId",width:200},{name:Vi.Fields.type,title:e.passportMethods.type,width:100},{name:Vi.Fields.region,title:e.passportMethods.region,width:100}];function pte({queryOptions:e,query:t,queryClient:n,execFnOverride:r,unauthorized:a,optionFn:i}){var k,_,A;const{options:o,execFn:l}=R.useContext(it),u=i?i(o):o,d=r?r(u):l?l(u):Tt(u);let g=`${"/passport-methods".substr(1)}?${oi.stringify(t)}`;const y=()=>d("GET",g),h=(k=u==null?void 0:u.headers)==null?void 0:k.authorization,v=h!="undefined"&&h!=null&&h!=null&&h!="null"&&!!h;let E=!0;!v&&!a&&(E=!1);const T=jn(["*abac.PassportMethodEntity",u,t],y,{cacheTime:1e3,retry:!1,keepPreviousData:!0,enabled:E,...e||{}}),C=((A=(_=T.data)==null?void 0:_.data)==null?void 0:A.items)||[];return{query:T,items:C,keyExtractor:P=>P.uniqueId}}pte.UKEY="*abac.PassportMethodEntity";function DOe(e){const{execFnOverride:t,queryClient:n,query:r}=e||{},{options:a,execFn:i}=R.useContext(it),o=t?t(a):i?i(a):Tt(a);let u=`${"/passport-method".substr(1)}?${new URLSearchParams(Gt(r)).toString()}`;const f=un(h=>o("DELETE",u,h)),g=(h,v)=>h;return{mutation:f,submit:(h,v)=>new Promise((E,T)=>{f.mutate(h,{onSuccess(C){n==null||n.setQueryData("*abac.PassportMethodEntity",k=>g(k)),n==null||n.invalidateQueries("*abac.PassportMethodEntity"),E(C)},onError(C){v==null||v.setErrors(Pn(C)),T(C)}})}),fnUpdater:g}}const $Oe=()=>{const e=Kt(dT);return w.jsx(w.Fragment,{children:w.jsx(Go,{columns:IOe(e),queryHook:pte,uniqueIdHrefHandler:t=>Vi.Navigation.single(t),deleteHook:DOe})})},LOe=()=>{const e=Kt(dT);return w.jsx(Vo,{pageTitle:e.passportMethods.archiveTitle,newEntityHandler:({locale:t,router:n})=>{n.push(Vi.Navigation.create())},children:w.jsx($Oe,{})})},FOe=({form:e,isEditing:t})=>{const{options:n}=R.useContext(it),{values:r,setValues:a,setFieldValue:i,errors:o}=e,l=Kt(dT),u=Ks([{name:"Google",uniqueId:"google"},{name:"Facebook",uniqueId:"facebook"},{name:"Email",uniqueId:"email"},{name:"Phone",uniqueId:"phone"}]);return w.jsxs(w.Fragment,{children:[w.jsx(da,{querySource:u,formEffect:{form:e,field:Vi.Fields.type,beforeSet(d){return d.uniqueId}},keyExtractor:d=>d.uniqueId,fnLabelFormat:d=>d.name,errorMessage:o.type,label:l.passportMethods.type,hint:l.passportMethods.typeHint}),w.jsx(In,{value:r.region,onChange:d=>i(Vi.Fields.region,d,!1),errorMessage:o.region,label:l.passportMethods.region,hint:l.passportMethods.regionHint}),r.type==="google"||r.type==="facebook"?w.jsx(In,{value:r.clientKey,onChange:d=>i(Vi.Fields.clientKey,d,!1),errorMessage:o.clientKey,label:l.passportMethods.clientKey,hint:l.passportMethods.clientKeyHint}):null]})};function hte({queryOptions:e,execFnOverride:t,query:n,queryClient:r,unauthorized:a}){var T;const{options:i,execFn:o}=R.useContext(it),l=t?t(i):o?o(i):Tt(i);let d=`${"/passport-method/:uniqueId".substr(1)}?${new URLSearchParams(Gt(n)).toString()}`,f=!0;d=d.replace(":uniqueId",n[":uniqueId".replace(":","")]),n[":uniqueId".replace(":","")]===void 0&&(f=!1);const g=()=>l("GET",d),y=(T=i==null?void 0:i.headers)==null?void 0:T.authorization,h=y!="undefined"&&y!=null&&y!=null&&y!="null"&&!!y;let v=!0;return f?!h&&!a&&(v=!1):v=!1,{query:jn([i,n,"*abac.PassportMethodEntity"],g,{cacheTime:1001,retry:!1,keepPreviousData:!0,enabled:v,...e||{}})}}function jOe(e){let{queryClient:t,query:n,execFnOverride:r}=e||{};n=n||{};const{options:a,execFn:i}=R.useContext(it),o=r?r(a):i?i(a):Tt(a);let u=`${"/passport-method".substr(1)}?${new URLSearchParams(Gt(n)).toString()}`;const f=un(h=>o("POST",u,h)),g=(h,v)=>{var E;return h?(h.data&&(v!=null&&v.data)&&(h.data.items=[v.data,...((E=h==null?void 0:h.data)==null?void 0:E.items)||[]]),h):{data:{items:[]}}};return{mutation:f,submit:(h,v)=>new Promise((E,T)=>{f.mutate(h,{onSuccess(C){t==null||t.setQueryData("*abac.PassportMethodEntity",k=>g(k,C)),E(C)},onError(C){v==null||v.setErrors(Pn(C)),T(C)}})}),fnUpdater:g}}function UOe(e){let{queryClient:t,query:n,execFnOverride:r}=e||{};n=n||{};const{options:a,execFn:i}=R.useContext(it),o=r?r(a):i?i(a):Tt(a);let u=`${"/passport-method".substr(1)}?${new URLSearchParams(Gt(n)).toString()}`;const f=un(h=>o("PATCH",u,h)),g=(h,v)=>{var E;return h?(h.data&&(v!=null&&v.data)&&(h.data.items=[v.data,...((E=h==null?void 0:h.data)==null?void 0:E.items)||[]]),h):{data:{items:[]}}};return{mutation:f,submit:(h,v)=>new Promise((E,T)=>{f.mutate(h,{onSuccess(C){t==null||t.setQueriesData("*abac.PassportMethodEntity",k=>g(k,C)),E(C)},onError(C){v==null||v.setErrors(Pn(C)),T(C)}})}),fnUpdater:g}}const cW=({data:e})=>{const t=Kt(dT),{router:n,uniqueId:r,queryClient:a,locale:i}=$r({data:e}),o=hte({query:{uniqueId:r}}),l=jOe({queryClient:a}),u=UOe({queryClient:a});return w.jsx(Yo,{postHook:l,patchHook:u,getSingleHook:o,onCancel:()=>{n.goBackOrDefault(Vi.Navigation.query(void 0,i))},onFinishUriResolver:(d,f)=>{var g;return Vi.Navigation.single((g=d.data)==null?void 0:g.uniqueId,f)},Form:FOe,onEditTitle:t.passportMethods.editPassportMethod,onCreateTitle:t.passportMethods.newPassportMethod,data:e})},BOe=()=>{var r;const{uniqueId:e}=$r({}),t=hte({query:{uniqueId:e}});var n=(r=t.query.data)==null?void 0:r.data;return Kt(dT),w.jsx(w.Fragment,{children:w.jsx(lo,{editEntityHandler:({locale:a,router:i})=>{i.push(Vi.Navigation.edit(e))},getSingleHook:t,children:w.jsx(uo,{entity:n,fields:[]})})})};function WOe(){return w.jsxs(w.Fragment,{children:[w.jsx(mt,{element:w.jsx(cW,{}),path:Vi.Navigation.Rcreate}),w.jsx(mt,{element:w.jsx(BOe,{}),path:Vi.Navigation.Rsingle}),w.jsx(mt,{element:w.jsx(cW,{}),path:Vi.Navigation.Redit}),w.jsx(mt,{element:w.jsx(LOe,{}),path:Vi.Navigation.Rquery})]})}class hh extends wn{constructor(...t){super(...t),this.children=void 0,this.enableStripe=void 0,this.stripeSecretKey=void 0,this.stripeCallbackUrl=void 0}}hh.Navigation={edit(e,t){return`${t?"/"+t:".."}/payment-config/edit/${e}`},create(e){return`${e?"/"+e:".."}/payment-config/new`},single(e,t){return`${t?"/"+t:".."}/payment-config/${e}`},query(e={},t){return`${t?"/"+t:".."}/payment-configs`},Redit:"payment-config/edit/:uniqueId",Rcreate:"payment-config/new",Rsingle:"payment-config/:uniqueId",Rquery:"payment-configs"};hh.definition={rpc:{query:{}},permRewrite:{replace:"root.modules",with:"root.manage"},name:"paymentConfig",distinctBy:"workspace",features:{},security:{writeOnRoot:!0,readOnRoot:!0,resolveStrategy:"workspace"},gormMap:{},fields:[{name:"enableStripe",description:"Enables the stripe payment integration in the project",type:"bool?",computedType:"boolean",gormMap:{}},{name:"stripeSecretKey",description:"Stripe secret key to initiate a payment intent",type:"string",computedType:"string",gormMap:{}},{name:"stripeCallbackUrl",description:"The endpoint which the payment module will handle response coming back from stripe.",type:"string",computedType:"string",gormMap:{}}],description:"Contains the api keys, configuration, urls, callbacks for different payment gateways."};hh.Fields={...wn.Fields,enableStripe:"enableStripe",stripeSecretKey:"stripeSecretKey",stripeCallbackUrl:"stripeCallbackUrl"};function mte({queryOptions:e,execFnOverride:t,query:n,queryClient:r,unauthorized:a}){var E;const{options:i,execFn:o}=R.useContext(it),l=t?t(i):o?o(i):Tt(i);let d=`${"/payment-config/distinct".substr(1)}?${new URLSearchParams(Gt(n)).toString()}`;const f=()=>l("GET",d),g=(E=i==null?void 0:i.headers)==null?void 0:E.authorization,y=g!="undefined"&&g!=null&&g!=null&&g!="null"&&!!g;let h=!0;return!y&&!a&&(h=!1),{query:jn([i,n,"*payment.PaymentConfigEntity"],f,{cacheTime:1001,retry:!1,keepPreviousData:!0,enabled:h,...e||{}})}}function zOe(e){let{queryClient:t,query:n,execFnOverride:r}=e||{};n=n||{};const{options:a,execFn:i}=R.useContext(it),o=r?r(a):i?i(a):Tt(a);let u=`${"/payment-config/distinct".substr(1)}?${new URLSearchParams(Gt(n)).toString()}`;const f=un(h=>o("PATCH",u,h)),g=(h,v)=>{var E;return h?(h.data&&(v!=null&&v.data)&&(h.data.items=[v.data,...((E=h==null?void 0:h.data)==null?void 0:E.items)||[]]),h):{data:{items:[]}}};return{mutation:f,submit:(h,v)=>new Promise((E,T)=>{f.mutate(h,{onSuccess(C){t==null||t.setQueriesData("*payment.PaymentConfigEntity",k=>g(k,C)),E(C)},onError(C){v==null||v.setErrors(Pn(C)),T(C)}})}),fnUpdater:g}}const qOe={paymentConfigs:{stripeSecretKeyHint:"Stripe secret key is starting with sk_...",enableStripe:"Enable stripe",enableStripeHint:"Enable stripe",stripeCallbackUrl:"Stripe callback url",archiveTitle:"Payment configs",editPaymentConfig:"Edit payment config",newPaymentConfig:"New payment config",stripeCallbackUrlHint:"The url, which the payment success validator service is deployed, such as http://localhost:4500/payment/invoice",stripeSecretKey:"Stripe secret key"}},HOe={paymentConfigs:{enableStripe:"Włącz Stripe",newPaymentConfig:"Nowa konfiguracja płatności",stripeCallbackUrl:"URL zwrotny Stripe",stripeCallbackUrlHint:"URL, pod którym działa usługa weryfikująca powodzenie płatności, np. http://localhost:4500/payment/invoice",archiveTitle:"Konfiguracje płatności",editPaymentConfig:"Edytuj konfigurację płatności",enableStripeHint:"Włącz Stripe",stripeSecretKey:"Tajny klucz Stripe",stripeSecretKeyHint:"Tajny klucz Stripe zaczyna się od sk_..."}},Rj={...qOe,$pl:HOe},Cl=e=>{const{placeholder:t,label:n,getInputRef:r,secureTextEntry:a,Icon:i,onChange:o,value:l,disabled:u,focused:d=!1,errorMessage:f,autoFocus:g,...y}=e,[h,v]=R.useState(!1),E=R.useRef(null),T=R.useCallback(()=>{var C;(C=E.current)==null||C.focus()},[E.current]);return w.jsx(df,{focused:h,onClick:T,...e,label:"",children:w.jsxs("label",{className:"form-label mr-2",children:[w.jsx("input",{...y,ref:E,checked:!!l,type:"checkbox",onChange:C=>o&&o(!l),onBlur:()=>v(!1),onFocus:()=>v(!0),className:"form-checkbox"}),n]})})};function Fo({title:e,children:t,className:n,description:r}){return w.jsxs("div",{className:sa("page-section",n),children:[e?w.jsx("h2",{className:"",children:e}):null,r?w.jsx("p",{className:"",children:r}):null,w.jsx("div",{className:"mt-4",children:t})]})}const VOe=({form:e,isEditing:t})=>{const{options:n}=R.useContext(it),{values:r,setValues:a,setFieldValue:i,errors:o}=e,l=Kt(Rj);return w.jsx(w.Fragment,{children:w.jsxs(Fo,{title:"Stripe configuration",children:[w.jsx(Cl,{value:r.enableStripe,onChange:u=>i(hh.Fields.enableStripe,u,!1),errorMessage:o.enableStripe,label:l.paymentConfigs.enableStripe,hint:l.paymentConfigs.enableStripeHint}),w.jsx(In,{disabled:!r.enableStripe,value:r.stripeSecretKey,onChange:u=>i(hh.Fields.stripeSecretKey,u,!1),errorMessage:o.stripeSecretKey,label:l.paymentConfigs.stripeSecretKey,hint:l.paymentConfigs.stripeSecretKeyHint}),w.jsx(In,{disabled:!r.enableStripe,value:r.stripeCallbackUrl,onChange:u=>i(hh.Fields.stripeCallbackUrl,u,!1),errorMessage:o.stripeCallbackUrl,label:l.paymentConfigs.stripeCallbackUrl,hint:l.paymentConfigs.stripeCallbackUrlHint})]})})},GOe=({data:e})=>{const t=Kt(Rj),{router:n,queryClient:r,locale:a}=$r({data:e}),o=mte({query:{uniqueId:"workspace"}}),l=zOe({queryClient:r});return w.jsx(Yo,{patchHook:l,forceEdit:!0,getSingleHook:o,onCancel:()=>{n.goBackOrDefault(hh.Navigation.query(void 0,a))},onFinishUriResolver:(u,d)=>{var f;return hh.Navigation.single((f=u.data)==null?void 0:f.uniqueId,d)},Form:VOe,onEditTitle:t.paymentConfigs.editPaymentConfig,onCreateTitle:t.paymentConfigs.newPaymentConfig,data:e})},YOe=()=>{var a;const{uniqueId:e}=$r({}),t=mte({query:{uniqueId:e}});var n=(a=t.query.data)==null?void 0:a.data;const r=Kt(Rj);return w.jsx(w.Fragment,{children:w.jsx(lo,{editEntityHandler:({locale:i,router:o})=>{o.push("../config/edit")},getSingleHook:t,children:w.jsx(uo,{entity:n,fields:[{elem:n==null?void 0:n.stripeSecretKey,label:r.paymentConfigs.stripeSecretKey},{elem:n==null?void 0:n.stripeCallbackUrl,label:r.paymentConfigs.stripeCallbackUrl}]})})})};function KOe(){return w.jsxs(w.Fragment,{children:[w.jsx(mt,{element:w.jsx(GOe,{}),path:"config/edit"}),w.jsx(mt,{element:w.jsx(YOe,{}),path:"config"})]})}const XOe={invoices:{amountHint:"Amount",archiveTitle:"Invoices",newInvoice:"New invoice",titleHint:"Title",amount:"Amount",editInvoice:"Edit invoice",finalStatus:"Final status",finalStatusHint:"Final status",title:"Title"}},QOe={invoices:{amount:"Kwota",amountHint:"Kwota",finalStatus:"Status końcowy",newInvoice:"Nowa faktura",titleHint:"Tytuł",archiveTitle:"Faktury",editInvoice:"Edytuj fakturę",finalStatusHint:"Status końcowy",title:"Tytuł"}},fT={...XOe,$pl:QOe};class Si extends wn{constructor(...t){super(...t),this.children=void 0,this.title=void 0,this.titleExcerpt=void 0,this.amount=void 0,this.notificationKey=void 0,this.redirectAfterSuccess=void 0,this.finalStatus=void 0}}Si.Navigation={edit(e,t){return`${t?"/"+t:".."}/invoice/edit/${e}`},create(e){return`${e?"/"+e:".."}/invoice/new`},single(e,t){return`${t?"/"+t:".."}/invoice/${e}`},query(e={},t){return`${t?"/"+t:".."}/invoices`},Redit:"invoice/edit/:uniqueId",Rcreate:"invoice/new",Rsingle:"invoice/:uniqueId",Rquery:"invoices"};Si.definition={rpc:{query:{}},permRewrite:{replace:"root.modules",with:"root.manage"},name:"invoice",features:{},security:{writeOnRoot:!0,readOnRoot:!0},gormMap:{},fields:[{name:"title",description:"Explanation about the invoice, the reason someone needs to pay",type:"text",validate:"required",computedType:"string",gormMap:{}},{name:"amount",description:"Amount of the invoice which has to be payed",type:"money?",validate:"required",computedType:"{amount: number, currency: string, formatted?: string}",gormMap:{}},{name:"notificationKey",description:"The unique key, when an event related to the invoice happened it would be triggered. For example if another module wants to initiate the payment, and after payment success, wants to run some code, it would be listening to invoice events and notificationKey will come.",type:"string",computedType:"string",gormMap:{}},{name:"redirectAfterSuccess",description:"When the payment is successful, it might use this url to make a redirect.",type:"string",computedType:"string",gormMap:{}},{name:"finalStatus",description:"Final status of the invoice from a accounting perspective",type:"enum",validate:"required",of:[{k:"payed",description:"Payed"},{k:"pending",description:"Pending"}],computedType:'"payed" | "pending"',gormMap:{}}],description:"Invoice is a billable value, which a party recieves, and needs to pay it by different means. Invoice keeps information such as reason, total amount, tax amount and other details. An invoice can be payed via different payment methods."};Si.Fields={...wn.Fields,title:"title",amount:"amount",notificationKey:"notificationKey",redirectAfterSuccess:"redirectAfterSuccess",finalStatus:"finalStatus"};const JOe=e=>[{name:"uniqueId",title:"uniqueId",width:200},{name:Si.Fields.title,title:e.invoices.title,width:100},{name:Si.Fields.amount,title:e.invoices.amount,width:100,getCellValue:t=>{var n;return(n=t.amount)==null?void 0:n.formatted}},{name:Si.Fields.finalStatus,title:e.invoices.finalStatus,width:100}];function gte({queryOptions:e,query:t,queryClient:n,execFnOverride:r,unauthorized:a,optionFn:i}){var k,_,A;const{options:o,execFn:l}=R.useContext(it),u=i?i(o):o,d=r?r(u):l?l(u):Tt(u);let g=`${"/invoices".substr(1)}?${oi.stringify(t)}`;const y=()=>d("GET",g),h=(k=u==null?void 0:u.headers)==null?void 0:k.authorization,v=h!="undefined"&&h!=null&&h!=null&&h!="null"&&!!h;let E=!0;!v&&!a&&(E=!1);const T=jn(["*payment.InvoiceEntity",u,t],y,{cacheTime:1e3,retry:!1,keepPreviousData:!0,enabled:E,...e||{}}),C=((A=(_=T.data)==null?void 0:_.data)==null?void 0:A.items)||[];return{query:T,items:C,keyExtractor:P=>P.uniqueId}}gte.UKEY="*payment.InvoiceEntity";function ZOe(e){const{execFnOverride:t,queryClient:n,query:r}=e||{},{options:a,execFn:i}=R.useContext(it),o=t?t(a):i?i(a):Tt(a);let u=`${"/invoice".substr(1)}?${new URLSearchParams(Gt(r)).toString()}`;const f=un(h=>o("DELETE",u,h)),g=(h,v)=>h;return{mutation:f,submit:(h,v)=>new Promise((E,T)=>{f.mutate(h,{onSuccess(C){n==null||n.setQueryData("*payment.InvoiceEntity",k=>g(k)),n==null||n.invalidateQueries("*payment.InvoiceEntity"),E(C)},onError(C){v==null||v.setErrors(Pn(C)),T(C)}})}),fnUpdater:g}}const eRe=()=>{const e=Kt(fT);return w.jsx(w.Fragment,{children:w.jsx(Go,{columns:JOe(e),queryHook:gte,uniqueIdHrefHandler:t=>Si.Navigation.single(t),deleteHook:ZOe})})},tRe=()=>{const e=Kt(fT);return w.jsx(Vo,{pageTitle:e.invoices.archiveTitle,newEntityHandler:({locale:t,router:n})=>{n.push(Si.Navigation.create())},children:w.jsx(eRe,{})})};var hr=function(){return hr=Object.assign||function(t){for(var n,r=1,a=arguments.length;r1){if(n===0)return e.replace(t,"");if(e.includes(t)){var r=e.split(t),a=r[0],i=r[1];if(i.length===n)return e;if(i.length>n)return"".concat(a).concat(t).concat(i.slice(0,n))}var o=e.length>n?new RegExp("(\\d+)(\\d{".concat(n,"})")):new RegExp("(\\d)(\\d+)"),l=e.match(o);if(l){var a=l[1],i=l[2];return"".concat(a).concat(t).concat(i)}}return e},vte=function(e,t){var n=t.groupSeparator,r=n===void 0?",":n,a=t.decimalSeparator,i=a===void 0?".":a,o=new RegExp("\\d([^".concat(Ac(r)).concat(Ac(i),"0-9]+)")),l=e.match(o);return l?l[1]:void 0},e1=function(e){var t=e.value,n=e.decimalSeparator,r=e.intlConfig,a=e.decimalScale,i=e.prefix,o=i===void 0?"":i,l=e.suffix,u=l===void 0?"":l;if(t===""||t===void 0)return"";if(t==="-")return"-";var d=new RegExp("^\\d?-".concat(o?"".concat(Ac(o),"?"):"","\\d")).test(t),f=n!=="."?sRe(t,n,d):t;n&&n!=="-"&&f.startsWith(n)&&(f="0"+f);var g=r||{},y=g.locale,h=g.currency,v=Pj(g,["locale","currency"]),E=hr(hr({},v),{minimumFractionDigits:a||0,maximumFractionDigits:20}),T=r?new Intl.NumberFormat(y,hr(hr({},E),h&&{style:"currency",currency:h})):new Intl.NumberFormat(void 0,E),C=T.formatToParts(Number(f)),k=lRe(C,e),_=vte(k,hr({},e)),A=t.slice(-1)===n?n:"",P=f.match(RegExp("\\d+\\.(\\d+)"))||[],N=P[1];return a===void 0&&N&&n&&(k.includes(n)?k=k.replace(RegExp("(\\d+)(".concat(Ac(n),")(\\d+)"),"g"),"$1$2".concat(N)):_&&!u?k=k.replace(_,"".concat(n).concat(N).concat(_)):k="".concat(k).concat(n).concat(N)),u&&A?"".concat(k).concat(A).concat(u):_&&A?k.replace(_,"".concat(A).concat(_)):_&&u?k.replace(_,"".concat(A).concat(u)):[k,A,u].join("")},sRe=function(e,t,n){var r=e;return t&&t!=="."&&(r=r.replace(RegExp(Ac(t),"g"),"."),n&&t==="-"&&(r="-".concat(r.slice(1)))),r},lRe=function(e,t){var n=t.prefix,r=t.groupSeparator,a=t.decimalSeparator,i=t.decimalScale,o=t.disableGroupSeparators,l=o===void 0?!1:o;return e.reduce(function(u,d,f){var g=d.type,y=d.value;return f===0&&n?g==="minusSign"?[y,n]:g==="currency"?Ls(Ls([],u,!0),[n],!1):[n,y]:g==="currency"?n?u:Ls(Ls([],u,!0),[y],!1):g==="group"?l?u:Ls(Ls([],u,!0),[r!==void 0?r:y],!1):g==="decimal"?i!==void 0&&i===0?u:Ls(Ls([],u,!0),[a!==void 0?a:y],!1):g==="fraction"?Ls(Ls([],u,!0),[i!==void 0?y.slice(0,i):y],!1):Ls(Ls([],u,!0),[y],!1)},[""]).join("")},uRe={currencySymbol:"",groupSeparator:"",decimalSeparator:"",prefix:"",suffix:""},cRe=function(e){var t=e||{},n=t.locale,r=t.currency,a=Pj(t,["locale","currency"]),i=n?new Intl.NumberFormat(n,hr(hr({},a),r&&{currency:r,style:"currency"})):new Intl.NumberFormat;return i.formatToParts(1000.1).reduce(function(o,l,u){return l.type==="currency"?u===0?hr(hr({},o),{currencySymbol:l.value,prefix:l.value}):hr(hr({},o),{currencySymbol:l.value,suffix:l.value}):l.type==="group"?hr(hr({},o),{groupSeparator:l.value}):l.type==="decimal"?hr(hr({},o),{decimalSeparator:l.value}):o},uRe)},dW=function(e){return RegExp(/\d/,"gi").test(e)},dRe=function(e,t,n){if(n===void 0||t===""||t===void 0||e===""||e===void 0)return e;if(!e.match(/\d/g))return"";var r=e.split(t),a=r[0],i=r[1];if(n===0)return a;var o=i||"";if(o.lengthv)){if(_t===""||_t==="-"||_t===le){T&&T(void 0,l,{float:null,formatted:"",value:""}),tt(_t),Rt(1);return}var Ut=le?_t.replace(le,"."):_t,_n=parseFloat(Ut),gn=e1(hr({value:_t},fe));if(Lt!=null){var ln=Lt+(gn.length-Mt.length);ln=ln<=0?A?A.length:0:ln,Rt(ln),Wt(qt+1)}if(tt(gn),T){var Bn={float:_n,formatted:gn,value:_t};T(_t,l,Bn)}}},U=function(Mt){var be=Mt.target,Ee=be.value,gt=be.selectionStart;Nt(Ee,gt),W&&W(Mt)},D=function(Mt){return G&&G(Mt),qe?qe.length:0},F=function(Mt){var be=Mt.target.value,Ee=MA(hr({value:be},xe));if(Ee==="-"||Ee===le||!Ee){tt(""),q&&q(Mt);return}var gt=oRe(Ee,le,C),Lt=dRe(gt,le,_!==void 0?_:C),_t=le?Lt.replace(le,"."):Lt,Ut=parseFloat(_t),_n=e1(hr(hr({},fe),{value:Lt}));T&&J&&T(Lt,l,{float:Ut,formatted:_n,value:Lt}),tt(_n),q&&q(Mt)},ie=function(Mt){var be=Mt.key;if(ft(be),I&&(be==="ArrowUp"||be==="ArrowDown")){Mt.preventDefault(),Rt(qe.length);var Ee=E!=null?String(E):void 0,gt=le&&Ee?Ee.replace(le,"."):Ee,Lt=parseFloat(gt??MA(hr({value:qe},xe)))||0,_t=be==="ArrowUp"?Lt+I:Lt-I;if(L!==void 0&&_tNumber(j))return;var Ut=String(I).includes(".")?Number(String(I).split(".")[1].length):void 0;Nt(String(Ut?_t.toFixed(Ut):_t).replace(".",le))}ce&&ce(Mt)},Te=function(Mt){var be=Mt.key,Ee=Mt.currentTarget.selectionStart;if(be!=="ArrowUp"&&be!=="ArrowDown"&&qe!=="-"){var gt=vte(qe,{groupSeparator:ke,decimalSeparator:le});if(gt&&Ee&&Ee>qe.length-gt.length&&ut.current){var Lt=qe.length-gt.length;ut.current.setSelectionRange(Lt,Lt)}}H&&H(Mt)};R.useEffect(function(){E==null&&g==null&&tt("")},[g,E]),R.useEffect(function(){rt&&qe!=="-"&&ut.current&&document.activeElement===ut.current&&ut.current.setSelectionRange(xt,xt)},[qe,xt,ut,rt,qt]);var Fe=function(){return E!=null&&qe!=="-"&&(!le||qe!==le)?e1(hr(hr({},fe),{decimalScale:rt?void 0:_,value:String(E)})):qe},We=hr({type:"text",inputMode:"decimal",id:o,name:l,className:u,onChange:U,onBlur:F,onFocus:D,onKeyDown:ie,onKeyUp:Te,placeholder:k,disabled:h,value:Fe(),ref:ut},ee);if(d){var Et=d;return ze.createElement(Et,hr({},We))}return ze.createElement("input",hr({},We))});yte.displayName="CurrencyInput";const pRe=e=>{const{placeholder:t,onChange:n,value:r,...a}=e,[i,o]=R.useState(()=>(r==null?void 0:r.amount)!=null?r.amount.toString():"");R.useEffect(()=>{const d=(r==null?void 0:r.amount)!=null?r.amount.toString():"";d!==i&&o(d)},[r==null?void 0:r.amount]);const l=d=>{const f=parseFloat(d);isNaN(f)||n==null||n({...r,amount:f})},u=d=>{const f=d||"";o(f),f.trim()!==""&&l(f)};return w.jsx(df,{...a,children:w.jsxs("div",{className:"flex gap-2 items-center",style:{flexDirection:"row",display:"flex"},children:[w.jsx(yte,{placeholder:t,value:i,decimalsLimit:2,className:sa("form-control",e.errorMessage&&"is-invalid",e.validMessage&&"is-valid"),onValueChange:u}),w.jsxs("select",{value:r==null?void 0:r.currency,onChange:d=>n==null?void 0:n({...r,currency:d.target.value}),className:"form-select w-24",style:{width:"110px"},children:[w.jsx("option",{value:"USD",children:"USD"}),w.jsx("option",{value:"PLN",children:"PLN"}),w.jsx("option",{value:"EUR",children:"EUR"})]})]})})},hRe=({form:e,isEditing:t})=>{const{options:n}=R.useContext(it),{values:r,setValues:a,setFieldValue:i,errors:o}=e,l=Kt(fT);return w.jsxs(w.Fragment,{children:[w.jsx(In,{value:r.title,onChange:u=>i(Si.Fields.title,u,!1),errorMessage:o.title,label:l.invoices.title,hint:l.invoices.titleHint}),w.jsx(pRe,{value:r.amount,onChange:u=>i(Si.Fields.amount,u,!1),label:l.invoices.amount,hint:l.invoices.amountHint}),w.jsx(In,{value:r.finalStatus,onChange:u=>i(Si.Fields.finalStatus,u,!1),errorMessage:o.finalStatus,label:l.invoices.finalStatus,hint:l.invoices.finalStatusHint})]})};function bte({queryOptions:e,execFnOverride:t,query:n,queryClient:r,unauthorized:a}){var T;const{options:i,execFn:o}=R.useContext(it),l=t?t(i):o?o(i):Tt(i);let d=`${"/invoice/:uniqueId".substr(1)}?${new URLSearchParams(Gt(n)).toString()}`,f=!0;d=d.replace(":uniqueId",n[":uniqueId".replace(":","")]),n[":uniqueId".replace(":","")]===void 0&&(f=!1);const g=()=>l("GET",d),y=(T=i==null?void 0:i.headers)==null?void 0:T.authorization,h=y!="undefined"&&y!=null&&y!=null&&y!="null"&&!!y;let v=!0;return f?!h&&!a&&(v=!1):v=!1,{query:jn([i,n,"*payment.InvoiceEntity"],g,{cacheTime:1001,retry:!1,keepPreviousData:!0,enabled:v,...e||{}})}}function mRe(e){let{queryClient:t,query:n,execFnOverride:r}=e||{};n=n||{};const{options:a,execFn:i}=R.useContext(it),o=r?r(a):i?i(a):Tt(a);let u=`${"/invoice".substr(1)}?${new URLSearchParams(Gt(n)).toString()}`;const f=un(h=>o("POST",u,h)),g=(h,v)=>{var E;return h?(h.data&&(v!=null&&v.data)&&(h.data.items=[v.data,...((E=h==null?void 0:h.data)==null?void 0:E.items)||[]]),h):{data:{items:[]}}};return{mutation:f,submit:(h,v)=>new Promise((E,T)=>{f.mutate(h,{onSuccess(C){t==null||t.setQueryData("*payment.InvoiceEntity",k=>g(k,C)),E(C)},onError(C){v==null||v.setErrors(Pn(C)),T(C)}})}),fnUpdater:g}}function gRe(e){let{queryClient:t,query:n,execFnOverride:r}=e||{};n=n||{};const{options:a,execFn:i}=R.useContext(it),o=r?r(a):i?i(a):Tt(a);let u=`${"/invoice".substr(1)}?${new URLSearchParams(Gt(n)).toString()}`;const f=un(h=>o("PATCH",u,h)),g=(h,v)=>{var E;return h?(h.data&&(v!=null&&v.data)&&(h.data.items=[v.data,...((E=h==null?void 0:h.data)==null?void 0:E.items)||[]]),h):{data:{items:[]}}};return{mutation:f,submit:(h,v)=>new Promise((E,T)=>{f.mutate(h,{onSuccess(C){t==null||t.setQueriesData("*payment.InvoiceEntity",k=>g(k,C)),E(C)},onError(C){v==null||v.setErrors(Pn(C)),T(C)}})}),fnUpdater:g}}const fW=({data:e})=>{const t=Kt(fT),{router:n,uniqueId:r,queryClient:a,locale:i}=$r({data:e}),o=bte({query:{uniqueId:r}}),l=mRe({queryClient:a}),u=gRe({queryClient:a});return w.jsx(Yo,{postHook:l,patchHook:u,getSingleHook:o,onCancel:()=>{n.goBackOrDefault(Si.Navigation.query(void 0,i))},onFinishUriResolver:(d,f)=>{var g;return Si.Navigation.single((g=d.data)==null?void 0:g.uniqueId,f)},Form:hRe,onEditTitle:t.invoices.editInvoice,onCreateTitle:t.invoices.newInvoice,data:e})},vRe=()=>{var i,o;const{uniqueId:e}=$r({}),t=bte({query:{uniqueId:e}});var n=(i=t.query.data)==null?void 0:i.data;const r=Kt(fT),a=l=>{window.open(`http://localhost:4500/payment/invoice/${l}`,"_blank")};return w.jsx(w.Fragment,{children:w.jsx(lo,{editEntityHandler:({locale:l,router:u})=>{u.push(Si.Navigation.edit(e))},getSingleHook:t,children:w.jsx(uo,{entity:n,fields:[{elem:n==null?void 0:n.title,label:r.invoices.title},{elem:(o=n==null?void 0:n.amount)==null?void 0:o.formatted,label:r.invoices.amount},{elem:w.jsx(w.Fragment,{children:w.jsx("button",{className:"btn btn-small",onClick:()=>a(e),children:"Pay now"})}),label:"Actions"}]})})})};function yRe(){return w.jsxs(w.Fragment,{children:[w.jsx(mt,{element:w.jsx(fW,{}),path:Si.Navigation.Rcreate}),w.jsx(mt,{element:w.jsx(vRe,{}),path:Si.Navigation.Rsingle}),w.jsx(mt,{element:w.jsx(fW,{}),path:Si.Navigation.Redit}),w.jsx(mt,{element:w.jsx(tRe,{}),path:Si.Navigation.Rquery})]})}function bRe(){const e=KOe(),t=yRe();return w.jsxs(mt,{path:"payment",children:[e,t]})}const wRe={regionalContents:{titleHint:"Title",archiveTitle:"Regional contents",keyGroup:"Key group",languageId:"Language id",regionHint:"Region",title:"Title",content:"Content",contentHint:"Content",editRegionalContent:"Edit regional content",keyGroupHint:"Key group",languageIdHint:"Language id",newRegionalContent:"New regional content",region:"Region"}},SRe={regionalContents:{editRegionalContent:"Edytuj treść regionalną",keyGroup:"Grupa kluczy",keyGroupHint:"Grupa kluczy",languageId:"Identyfikator języka",region:"Region",title:"Tytuł",titleHint:"Tytuł",archiveTitle:"Treści regionalne",content:"Treść",contentHint:"Treść",languageIdHint:"Identyfikator języka",newRegionalContent:"Nowa treść regionalna",regionHint:"Region"}},pT={...wRe,$pl:SRe};class Wr extends wn{constructor(...t){super(...t),this.children=void 0,this.content=void 0,this.contentExcerpt=void 0,this.region=void 0,this.title=void 0,this.languageId=void 0,this.keyGroup=void 0}}Wr.Navigation={edit(e,t){return`${t?"/"+t:".."}/regional-content/edit/${e}`},create(e){return`${e?"/"+e:".."}/regional-content/new`},single(e,t){return`${t?"/"+t:".."}/regional-content/${e}`},query(e={},t){return`${t?"/"+t:".."}/regional-contents`},Redit:"regional-content/edit/:uniqueId",Rcreate:"regional-content/new",Rsingle:"regional-content/:uniqueId",Rquery:"regional-contents"};Wr.definition={rpc:{query:{}},permRewrite:{replace:"root.modules",with:"root.manage"},name:"regionalContent",features:{},security:{writeOnRoot:!0},gormMap:{},fields:[{name:"content",type:"html",validate:"required",computedType:"string",gormMap:{}},{name:"region",type:"string",validate:"required",computedType:"string",gormMap:{}},{name:"title",type:"string",computedType:"string",gormMap:{}},{name:"languageId",type:"string",validate:"required",computedType:"string",gorm:"index:regional_content_index,unique",gormMap:{}},{name:"keyGroup",type:"enum",validate:"required",of:[{k:"SMS_OTP",description:"Used when an email would be sent with one time password"},{k:"EMAIL_OTP",description:"Used when an sms would be sent with one time password"}],computedType:'"SMS_OTP" | "EMAIL_OTP"',gorm:"index:regional_content_index,unique",gormMap:{}}],cliShort:"rc",description:"Email templates, sms templates or other textual content which can be accessed."};Wr.Fields={...wn.Fields,content:"content",region:"region",title:"title",languageId:"languageId",keyGroup:"keyGroup"};const ERe=e=>[{name:"uniqueId",title:"uniqueId",width:200},{name:Wr.Fields.content,title:e.regionalContents.content,width:100},{name:Wr.Fields.region,title:e.regionalContents.region,width:100},{name:Wr.Fields.title,title:e.regionalContents.title,width:100},{name:Wr.Fields.languageId,title:e.regionalContents.languageId,width:100},{name:Wr.Fields.keyGroup,title:e.regionalContents.keyGroup,width:100}];function X1({queryOptions:e,query:t,queryClient:n,execFnOverride:r,unauthorized:a,optionFn:i}){var k,_,A;const{options:o,execFn:l}=R.useContext(it),u=i?i(o):o,d=r?r(u):l?l(u):Tt(u);let g=`${"/regional-contents".substr(1)}?${oi.stringify(t)}`;const y=()=>d("GET",g),h=(k=u==null?void 0:u.headers)==null?void 0:k.authorization,v=h!="undefined"&&h!=null&&h!=null&&h!="null"&&!!h;let E=!0;!v&&!a&&(E=!1);const T=jn(["*abac.RegionalContentEntity",u,t],y,{cacheTime:1e3,retry:!1,keepPreviousData:!0,enabled:E,...e||{}}),C=((A=(_=T.data)==null?void 0:_.data)==null?void 0:A.items)||[];return{query:T,items:C,keyExtractor:P=>P.uniqueId}}X1.UKEY="*abac.RegionalContentEntity";function TRe(e){const{execFnOverride:t,queryClient:n,query:r}=e||{},{options:a,execFn:i}=R.useContext(it),o=t?t(a):i?i(a):Tt(a);let u=`${"/regional-content".substr(1)}?${new URLSearchParams(Gt(r)).toString()}`;const f=un(h=>o("DELETE",u,h)),g=(h,v)=>h;return{mutation:f,submit:(h,v)=>new Promise((E,T)=>{f.mutate(h,{onSuccess(C){n==null||n.setQueryData("*abac.RegionalContentEntity",k=>g(k)),n==null||n.invalidateQueries("*abac.RegionalContentEntity"),E(C)},onError(C){v==null||v.setErrors(Pn(C)),T(C)}})}),fnUpdater:g}}const CRe=()=>{const e=Kt(pT);return w.jsx(w.Fragment,{children:w.jsx(Go,{columns:ERe(e),queryHook:X1,uniqueIdHrefHandler:t=>Wr.Navigation.single(t),deleteHook:TRe})})},kRe=()=>{const e=Kt(pT);return w.jsx(Vo,{pageTitle:e.regionalContents.archiveTitle,newEntityHandler:({locale:t,router:n})=>{n.push(Wr.Navigation.create())},children:w.jsx(CRe,{})})};var N3=function(){return N3=Object.assign||function(e){for(var t,n=1,r=arguments.length;n"u"||e===""?[]:Array.isArray(e)?e:e.split(" ")},RRe=function(e,t){return vW(e).concat(vW(t))},PRe=function(){return window.InputEvent&&typeof InputEvent.prototype.getTargetRanges=="function"},ARe=function(e){if(!("isConnected"in Node.prototype)){for(var t=e,n=e.parentNode;n!=null;)t=n,n=t.parentNode;return t===e.ownerDocument}return e.isConnected},yW=function(e,t){e!==void 0&&(e.mode!=null&&typeof e.mode=="object"&&typeof e.mode.set=="function"?e.mode.set(t):e.setMode(t))},M3=function(){return M3=Object.assign||function(e){for(var t,n=1,r=arguments.length;n0?setTimeout(d,o):d()},r=function(){for(var a=e.pop();a!=null;a=e.pop())a.deleteScripts()};return{loadList:n,reinitialize:r}},DRe=IRe(),DA=function(e){var t=e;return t&&t.tinymce?t.tinymce:null},$Re=(function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,a){r.__proto__=a}||function(r,a){for(var i in a)Object.prototype.hasOwnProperty.call(a,i)&&(r[i]=a[i])},e(t,n)};return function(t,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}})(),s_=function(){return s_=Object.assign||function(e){for(var t,n=1,r=arguments.length;n0)throw new Error("Invalid string. Length must be a multiple of 4");var E=h.indexOf("=");E===-1&&(E=v);var T=E===v?0:4-E%4;return[E,T]}function l(h){var v=o(h),E=v[0],T=v[1];return(E+T)*3/4-T}function u(h,v,E){return(v+E)*3/4-E}function d(h){var v,E=o(h),T=E[0],C=E[1],k=new n(u(h,T,C)),_=0,A=C>0?T-4:T,P;for(P=0;P>16&255,k[_++]=v>>8&255,k[_++]=v&255;return C===2&&(v=t[h.charCodeAt(P)]<<2|t[h.charCodeAt(P+1)]>>4,k[_++]=v&255),C===1&&(v=t[h.charCodeAt(P)]<<10|t[h.charCodeAt(P+1)]<<4|t[h.charCodeAt(P+2)]>>2,k[_++]=v>>8&255,k[_++]=v&255),k}function f(h){return e[h>>18&63]+e[h>>12&63]+e[h>>6&63]+e[h&63]}function g(h,v,E){for(var T,C=[],k=v;kA?A:_+k));return T===1?(v=h[E-1],C.push(e[v>>2]+e[v<<4&63]+"==")):T===2&&(v=(h[E-2]<<8)+h[E-1],C.push(e[v>>10]+e[v>>4&63]+e[v<<2&63]+"=")),C.join("")}return t1}var Bk={};/*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh */var wW;function jRe(){return wW||(wW=1,Bk.read=function(e,t,n,r,a){var i,o,l=a*8-r-1,u=(1<>1,f=-7,g=n?a-1:0,y=n?-1:1,h=e[t+g];for(g+=y,i=h&(1<<-f)-1,h>>=-f,f+=l;f>0;i=i*256+e[t+g],g+=y,f-=8);for(o=i&(1<<-f)-1,i>>=-f,f+=r;f>0;o=o*256+e[t+g],g+=y,f-=8);if(i===0)i=1-d;else{if(i===u)return o?NaN:(h?-1:1)*(1/0);o=o+Math.pow(2,r),i=i-d}return(h?-1:1)*o*Math.pow(2,i-r)},Bk.write=function(e,t,n,r,a,i){var o,l,u,d=i*8-a-1,f=(1<>1,y=a===23?Math.pow(2,-24)-Math.pow(2,-77):0,h=r?0:i-1,v=r?1:-1,E=t<0||t===0&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(l=isNaN(t)?1:0,o=f):(o=Math.floor(Math.log(t)/Math.LN2),t*(u=Math.pow(2,-o))<1&&(o--,u*=2),o+g>=1?t+=y/u:t+=y*Math.pow(2,1-g),t*u>=2&&(o++,u/=2),o+g>=f?(l=0,o=f):o+g>=1?(l=(t*u-1)*Math.pow(2,a),o=o+g):(l=t*Math.pow(2,g-1)*Math.pow(2,a),o=0));a>=8;e[n+h]=l&255,h+=v,l/=256,a-=8);for(o=o<0;e[n+h]=o&255,h+=v,o/=256,d-=8);e[n+h-v]|=E*128}),Bk}/*! * The buffer module from node.js, for the browser. * * @author Feross Aboukhadijeh * @license MIT - */var G5;function rRe(){return G5||(G5=1,(function(e){const t=tRe(),n=nRe(),r=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;e.Buffer=l,e.SlowBuffer=k,e.INSPECT_MAX_BYTES=50;const a=2147483647;e.kMaxLength=a,l.TYPED_ARRAY_SUPPORT=i(),!l.TYPED_ARRAY_SUPPORT&&typeof console<"u"&&typeof console.error=="function"&&console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support.");function i(){try{const U=new Uint8Array(1),D={foo:function(){return 42}};return Object.setPrototypeOf(D,Uint8Array.prototype),Object.setPrototypeOf(U,D),U.foo()===42}catch{return!1}}Object.defineProperty(l.prototype,"parent",{enumerable:!0,get:function(){if(l.isBuffer(this))return this.buffer}}),Object.defineProperty(l.prototype,"offset",{enumerable:!0,get:function(){if(l.isBuffer(this))return this.byteOffset}});function o(U){if(U>a)throw new RangeError('The value "'+U+'" is invalid for option "size"');const D=new Uint8Array(U);return Object.setPrototypeOf(D,l.prototype),D}function l(U,D,F){if(typeof U=="number"){if(typeof D=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return g(U)}return u(U,D,F)}l.poolSize=8192;function u(U,D,F){if(typeof U=="string")return y(U,D);if(ArrayBuffer.isView(U))return v(U);if(U==null)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof U);if(Oe(U,ArrayBuffer)||U&&Oe(U.buffer,ArrayBuffer)||typeof SharedArrayBuffer<"u"&&(Oe(U,SharedArrayBuffer)||U&&Oe(U.buffer,SharedArrayBuffer)))return E(U,D,F);if(typeof U=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');const ae=U.valueOf&&U.valueOf();if(ae!=null&&ae!==U)return l.from(ae,D,F);const Te=T(U);if(Te)return Te;if(typeof Symbol<"u"&&Symbol.toPrimitive!=null&&typeof U[Symbol.toPrimitive]=="function")return l.from(U[Symbol.toPrimitive]("string"),D,F);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof U)}l.from=function(U,D,F){return u(U,D,F)},Object.setPrototypeOf(l.prototype,Uint8Array.prototype),Object.setPrototypeOf(l,Uint8Array);function d(U){if(typeof U!="number")throw new TypeError('"size" argument must be of type number');if(U<0)throw new RangeError('The value "'+U+'" is invalid for option "size"')}function f(U,D,F){return d(U),U<=0?o(U):D!==void 0?typeof F=="string"?o(U).fill(D,F):o(U).fill(D):o(U)}l.alloc=function(U,D,F){return f(U,D,F)};function g(U){return d(U),o(U<0?0:C(U)|0)}l.allocUnsafe=function(U){return g(U)},l.allocUnsafeSlow=function(U){return g(U)};function y(U,D){if((typeof D!="string"||D==="")&&(D="utf8"),!l.isEncoding(D))throw new TypeError("Unknown encoding: "+D);const F=_(U,D)|0;let ae=o(F);const Te=ae.write(U,D);return Te!==F&&(ae=ae.slice(0,Te)),ae}function h(U){const D=U.length<0?0:C(U.length)|0,F=o(D);for(let ae=0;ae=a)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+a.toString(16)+" bytes");return U|0}function k(U){return+U!=U&&(U=0),l.alloc(+U)}l.isBuffer=function(D){return D!=null&&D._isBuffer===!0&&D!==l.prototype},l.compare=function(D,F){if(Oe(D,Uint8Array)&&(D=l.from(D,D.offset,D.byteLength)),Oe(F,Uint8Array)&&(F=l.from(F,F.offset,F.byteLength)),!l.isBuffer(D)||!l.isBuffer(F))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(D===F)return 0;let ae=D.length,Te=F.length;for(let Fe=0,We=Math.min(ae,Te);FeTe.length?(l.isBuffer(We)||(We=l.from(We)),We.copy(Te,Fe)):Uint8Array.prototype.set.call(Te,We,Fe);else if(l.isBuffer(We))We.copy(Te,Fe);else throw new TypeError('"list" argument must be an Array of Buffers');Fe+=We.length}return Te};function _(U,D){if(l.isBuffer(U))return U.length;if(ArrayBuffer.isView(U)||Oe(U,ArrayBuffer))return U.byteLength;if(typeof U!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof U);const F=U.length,ae=arguments.length>2&&arguments[2]===!0;if(!ae&&F===0)return 0;let Te=!1;for(;;)switch(D){case"ascii":case"latin1":case"binary":return F;case"utf8":case"utf-8":return xt(U).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return F*2;case"hex":return F>>>1;case"base64":return qt(U).length;default:if(Te)return ae?-1:xt(U).length;D=(""+D).toLowerCase(),Te=!0}}l.byteLength=_;function A(U,D,F){let ae=!1;if((D===void 0||D<0)&&(D=0),D>this.length||((F===void 0||F>this.length)&&(F=this.length),F<=0)||(F>>>=0,D>>>=0,F<=D))return"";for(U||(U="utf8");;)switch(U){case"hex":return ce(this,D,F);case"utf8":case"utf-8":return ge(this,D,F);case"ascii":return G(this,D,F);case"latin1":case"binary":return q(this,D,F);case"base64":return re(this,D,F);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return H(this,D,F);default:if(ae)throw new TypeError("Unknown encoding: "+U);U=(U+"").toLowerCase(),ae=!0}}l.prototype._isBuffer=!0;function P(U,D,F){const ae=U[D];U[D]=U[F],U[F]=ae}l.prototype.swap16=function(){const D=this.length;if(D%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(let F=0;FF&&(D+=" ... "),""},r&&(l.prototype[r]=l.prototype.inspect),l.prototype.compare=function(D,F,ae,Te,Fe){if(Oe(D,Uint8Array)&&(D=l.from(D,D.offset,D.byteLength)),!l.isBuffer(D))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof D);if(F===void 0&&(F=0),ae===void 0&&(ae=D?D.length:0),Te===void 0&&(Te=0),Fe===void 0&&(Fe=this.length),F<0||ae>D.length||Te<0||Fe>this.length)throw new RangeError("out of range index");if(Te>=Fe&&F>=ae)return 0;if(Te>=Fe)return-1;if(F>=ae)return 1;if(F>>>=0,ae>>>=0,Te>>>=0,Fe>>>=0,this===D)return 0;let We=Fe-Te,Tt=ae-F;const Mt=Math.min(We,Tt),be=this.slice(Te,Fe),Ee=D.slice(F,ae);for(let gt=0;gt2147483647?F=2147483647:F<-2147483648&&(F=-2147483648),F=+F,dt(F)&&(F=Te?0:U.length-1),F<0&&(F=U.length+F),F>=U.length){if(Te)return-1;F=U.length-1}else if(F<0)if(Te)F=0;else return-1;if(typeof D=="string"&&(D=l.from(D,ae)),l.isBuffer(D))return D.length===0?-1:I(U,D,F,ae,Te);if(typeof D=="number")return D=D&255,typeof Uint8Array.prototype.indexOf=="function"?Te?Uint8Array.prototype.indexOf.call(U,D,F):Uint8Array.prototype.lastIndexOf.call(U,D,F):I(U,[D],F,ae,Te);throw new TypeError("val must be string, number or Buffer")}function I(U,D,F,ae,Te){let Fe=1,We=U.length,Tt=D.length;if(ae!==void 0&&(ae=String(ae).toLowerCase(),ae==="ucs2"||ae==="ucs-2"||ae==="utf16le"||ae==="utf-16le")){if(U.length<2||D.length<2)return-1;Fe=2,We/=2,Tt/=2,F/=2}function Mt(Ee,gt){return Fe===1?Ee[gt]:Ee.readUInt16BE(gt*Fe)}let be;if(Te){let Ee=-1;for(be=F;beWe&&(F=We-Tt),be=F;be>=0;be--){let Ee=!0;for(let gt=0;gtTe&&(ae=Te)):ae=Te;const Fe=D.length;ae>Fe/2&&(ae=Fe/2);let We;for(We=0;We>>0,isFinite(ae)?(ae=ae>>>0,Te===void 0&&(Te="utf8")):(Te=ae,ae=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");const Fe=this.length-F;if((ae===void 0||ae>Fe)&&(ae=Fe),D.length>0&&(ae<0||F<0)||F>this.length)throw new RangeError("Attempt to write outside buffer bounds");Te||(Te="utf8");let We=!1;for(;;)switch(Te){case"hex":return L(this,D,F,ae);case"utf8":case"utf-8":return j(this,D,F,ae);case"ascii":case"latin1":case"binary":return z(this,D,F,ae);case"base64":return Q(this,D,F,ae);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return le(this,D,F,ae);default:if(We)throw new TypeError("Unknown encoding: "+Te);Te=(""+Te).toLowerCase(),We=!0}},l.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function re(U,D,F){return D===0&&F===U.length?t.fromByteArray(U):t.fromByteArray(U.slice(D,F))}function ge(U,D,F){F=Math.min(U.length,F);const ae=[];let Te=D;for(;Te239?4:Fe>223?3:Fe>191?2:1;if(Te+Tt<=F){let Mt,be,Ee,gt;switch(Tt){case 1:Fe<128&&(We=Fe);break;case 2:Mt=U[Te+1],(Mt&192)===128&&(gt=(Fe&31)<<6|Mt&63,gt>127&&(We=gt));break;case 3:Mt=U[Te+1],be=U[Te+2],(Mt&192)===128&&(be&192)===128&&(gt=(Fe&15)<<12|(Mt&63)<<6|be&63,gt>2047&&(gt<55296||gt>57343)&&(We=gt));break;case 4:Mt=U[Te+1],be=U[Te+2],Ee=U[Te+3],(Mt&192)===128&&(be&192)===128&&(Ee&192)===128&&(gt=(Fe&15)<<18|(Mt&63)<<12|(be&63)<<6|Ee&63,gt>65535&><1114112&&(We=gt))}}We===null?(We=65533,Tt=1):We>65535&&(We-=65536,ae.push(We>>>10&1023|55296),We=56320|We&1023),ae.push(We),Te+=Tt}return W(ae)}const me=4096;function W(U){const D=U.length;if(D<=me)return String.fromCharCode.apply(String,U);let F="",ae=0;for(;aeae)&&(F=ae);let Te="";for(let Fe=D;Feae&&(D=ae),F<0?(F+=ae,F<0&&(F=0)):F>ae&&(F=ae),FF)throw new RangeError("Trying to access beyond buffer length")}l.prototype.readUintLE=l.prototype.readUIntLE=function(D,F,ae){D=D>>>0,F=F>>>0,ae||Y(D,F,this.length);let Te=this[D],Fe=1,We=0;for(;++We>>0,F=F>>>0,ae||Y(D,F,this.length);let Te=this[D+--F],Fe=1;for(;F>0&&(Fe*=256);)Te+=this[D+--F]*Fe;return Te},l.prototype.readUint8=l.prototype.readUInt8=function(D,F){return D=D>>>0,F||Y(D,1,this.length),this[D]},l.prototype.readUint16LE=l.prototype.readUInt16LE=function(D,F){return D=D>>>0,F||Y(D,2,this.length),this[D]|this[D+1]<<8},l.prototype.readUint16BE=l.prototype.readUInt16BE=function(D,F){return D=D>>>0,F||Y(D,2,this.length),this[D]<<8|this[D+1]},l.prototype.readUint32LE=l.prototype.readUInt32LE=function(D,F){return D=D>>>0,F||Y(D,4,this.length),(this[D]|this[D+1]<<8|this[D+2]<<16)+this[D+3]*16777216},l.prototype.readUint32BE=l.prototype.readUInt32BE=function(D,F){return D=D>>>0,F||Y(D,4,this.length),this[D]*16777216+(this[D+1]<<16|this[D+2]<<8|this[D+3])},l.prototype.readBigUInt64LE=ut(function(D){D=D>>>0,Ge(D,"offset");const F=this[D],ae=this[D+7];(F===void 0||ae===void 0)&&at(D,this.length-8);const Te=F+this[++D]*2**8+this[++D]*2**16+this[++D]*2**24,Fe=this[++D]+this[++D]*2**8+this[++D]*2**16+ae*2**24;return BigInt(Te)+(BigInt(Fe)<>>0,Ge(D,"offset");const F=this[D],ae=this[D+7];(F===void 0||ae===void 0)&&at(D,this.length-8);const Te=F*2**24+this[++D]*2**16+this[++D]*2**8+this[++D],Fe=this[++D]*2**24+this[++D]*2**16+this[++D]*2**8+ae;return(BigInt(Te)<>>0,F=F>>>0,ae||Y(D,F,this.length);let Te=this[D],Fe=1,We=0;for(;++We=Fe&&(Te-=Math.pow(2,8*F)),Te},l.prototype.readIntBE=function(D,F,ae){D=D>>>0,F=F>>>0,ae||Y(D,F,this.length);let Te=F,Fe=1,We=this[D+--Te];for(;Te>0&&(Fe*=256);)We+=this[D+--Te]*Fe;return Fe*=128,We>=Fe&&(We-=Math.pow(2,8*F)),We},l.prototype.readInt8=function(D,F){return D=D>>>0,F||Y(D,1,this.length),this[D]&128?(255-this[D]+1)*-1:this[D]},l.prototype.readInt16LE=function(D,F){D=D>>>0,F||Y(D,2,this.length);const ae=this[D]|this[D+1]<<8;return ae&32768?ae|4294901760:ae},l.prototype.readInt16BE=function(D,F){D=D>>>0,F||Y(D,2,this.length);const ae=this[D+1]|this[D]<<8;return ae&32768?ae|4294901760:ae},l.prototype.readInt32LE=function(D,F){return D=D>>>0,F||Y(D,4,this.length),this[D]|this[D+1]<<8|this[D+2]<<16|this[D+3]<<24},l.prototype.readInt32BE=function(D,F){return D=D>>>0,F||Y(D,4,this.length),this[D]<<24|this[D+1]<<16|this[D+2]<<8|this[D+3]},l.prototype.readBigInt64LE=ut(function(D){D=D>>>0,Ge(D,"offset");const F=this[D],ae=this[D+7];(F===void 0||ae===void 0)&&at(D,this.length-8);const Te=this[D+4]+this[D+5]*2**8+this[D+6]*2**16+(ae<<24);return(BigInt(Te)<>>0,Ge(D,"offset");const F=this[D],ae=this[D+7];(F===void 0||ae===void 0)&&at(D,this.length-8);const Te=(F<<24)+this[++D]*2**16+this[++D]*2**8+this[++D];return(BigInt(Te)<>>0,F||Y(D,4,this.length),n.read(this,D,!0,23,4)},l.prototype.readFloatBE=function(D,F){return D=D>>>0,F||Y(D,4,this.length),n.read(this,D,!1,23,4)},l.prototype.readDoubleLE=function(D,F){return D=D>>>0,F||Y(D,8,this.length),n.read(this,D,!0,52,8)},l.prototype.readDoubleBE=function(D,F){return D=D>>>0,F||Y(D,8,this.length),n.read(this,D,!1,52,8)};function ie(U,D,F,ae,Te,Fe){if(!l.isBuffer(U))throw new TypeError('"buffer" argument must be a Buffer instance');if(D>Te||DU.length)throw new RangeError("Index out of range")}l.prototype.writeUintLE=l.prototype.writeUIntLE=function(D,F,ae,Te){if(D=+D,F=F>>>0,ae=ae>>>0,!Te){const Tt=Math.pow(2,8*ae)-1;ie(this,D,F,ae,Tt,0)}let Fe=1,We=0;for(this[F]=D&255;++We>>0,ae=ae>>>0,!Te){const Tt=Math.pow(2,8*ae)-1;ie(this,D,F,ae,Tt,0)}let Fe=ae-1,We=1;for(this[F+Fe]=D&255;--Fe>=0&&(We*=256);)this[F+Fe]=D/We&255;return F+ae},l.prototype.writeUint8=l.prototype.writeUInt8=function(D,F,ae){return D=+D,F=F>>>0,ae||ie(this,D,F,1,255,0),this[F]=D&255,F+1},l.prototype.writeUint16LE=l.prototype.writeUInt16LE=function(D,F,ae){return D=+D,F=F>>>0,ae||ie(this,D,F,2,65535,0),this[F]=D&255,this[F+1]=D>>>8,F+2},l.prototype.writeUint16BE=l.prototype.writeUInt16BE=function(D,F,ae){return D=+D,F=F>>>0,ae||ie(this,D,F,2,65535,0),this[F]=D>>>8,this[F+1]=D&255,F+2},l.prototype.writeUint32LE=l.prototype.writeUInt32LE=function(D,F,ae){return D=+D,F=F>>>0,ae||ie(this,D,F,4,4294967295,0),this[F+3]=D>>>24,this[F+2]=D>>>16,this[F+1]=D>>>8,this[F]=D&255,F+4},l.prototype.writeUint32BE=l.prototype.writeUInt32BE=function(D,F,ae){return D=+D,F=F>>>0,ae||ie(this,D,F,4,4294967295,0),this[F]=D>>>24,this[F+1]=D>>>16,this[F+2]=D>>>8,this[F+3]=D&255,F+4};function J(U,D,F,ae,Te){tt(D,ae,Te,U,F,7);let Fe=Number(D&BigInt(4294967295));U[F++]=Fe,Fe=Fe>>8,U[F++]=Fe,Fe=Fe>>8,U[F++]=Fe,Fe=Fe>>8,U[F++]=Fe;let We=Number(D>>BigInt(32)&BigInt(4294967295));return U[F++]=We,We=We>>8,U[F++]=We,We=We>>8,U[F++]=We,We=We>>8,U[F++]=We,F}function ee(U,D,F,ae,Te){tt(D,ae,Te,U,F,7);let Fe=Number(D&BigInt(4294967295));U[F+7]=Fe,Fe=Fe>>8,U[F+6]=Fe,Fe=Fe>>8,U[F+5]=Fe,Fe=Fe>>8,U[F+4]=Fe;let We=Number(D>>BigInt(32)&BigInt(4294967295));return U[F+3]=We,We=We>>8,U[F+2]=We,We=We>>8,U[F+1]=We,We=We>>8,U[F]=We,F+8}l.prototype.writeBigUInt64LE=ut(function(D,F=0){return J(this,D,F,BigInt(0),BigInt("0xffffffffffffffff"))}),l.prototype.writeBigUInt64BE=ut(function(D,F=0){return ee(this,D,F,BigInt(0),BigInt("0xffffffffffffffff"))}),l.prototype.writeIntLE=function(D,F,ae,Te){if(D=+D,F=F>>>0,!Te){const Mt=Math.pow(2,8*ae-1);ie(this,D,F,ae,Mt-1,-Mt)}let Fe=0,We=1,Tt=0;for(this[F]=D&255;++Fe>0)-Tt&255;return F+ae},l.prototype.writeIntBE=function(D,F,ae,Te){if(D=+D,F=F>>>0,!Te){const Mt=Math.pow(2,8*ae-1);ie(this,D,F,ae,Mt-1,-Mt)}let Fe=ae-1,We=1,Tt=0;for(this[F+Fe]=D&255;--Fe>=0&&(We*=256);)D<0&&Tt===0&&this[F+Fe+1]!==0&&(Tt=1),this[F+Fe]=(D/We>>0)-Tt&255;return F+ae},l.prototype.writeInt8=function(D,F,ae){return D=+D,F=F>>>0,ae||ie(this,D,F,1,127,-128),D<0&&(D=255+D+1),this[F]=D&255,F+1},l.prototype.writeInt16LE=function(D,F,ae){return D=+D,F=F>>>0,ae||ie(this,D,F,2,32767,-32768),this[F]=D&255,this[F+1]=D>>>8,F+2},l.prototype.writeInt16BE=function(D,F,ae){return D=+D,F=F>>>0,ae||ie(this,D,F,2,32767,-32768),this[F]=D>>>8,this[F+1]=D&255,F+2},l.prototype.writeInt32LE=function(D,F,ae){return D=+D,F=F>>>0,ae||ie(this,D,F,4,2147483647,-2147483648),this[F]=D&255,this[F+1]=D>>>8,this[F+2]=D>>>16,this[F+3]=D>>>24,F+4},l.prototype.writeInt32BE=function(D,F,ae){return D=+D,F=F>>>0,ae||ie(this,D,F,4,2147483647,-2147483648),D<0&&(D=4294967295+D+1),this[F]=D>>>24,this[F+1]=D>>>16,this[F+2]=D>>>8,this[F+3]=D&255,F+4},l.prototype.writeBigInt64LE=ut(function(D,F=0){return J(this,D,F,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),l.prototype.writeBigInt64BE=ut(function(D,F=0){return ee(this,D,F,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))});function Z(U,D,F,ae,Te,Fe){if(F+ae>U.length)throw new RangeError("Index out of range");if(F<0)throw new RangeError("Index out of range")}function ue(U,D,F,ae,Te){return D=+D,F=F>>>0,Te||Z(U,D,F,4),n.write(U,D,F,ae,23,4),F+4}l.prototype.writeFloatLE=function(D,F,ae){return ue(this,D,F,!0,ae)},l.prototype.writeFloatBE=function(D,F,ae){return ue(this,D,F,!1,ae)};function ke(U,D,F,ae,Te){return D=+D,F=F>>>0,Te||Z(U,D,F,8),n.write(U,D,F,ae,52,8),F+8}l.prototype.writeDoubleLE=function(D,F,ae){return ke(this,D,F,!0,ae)},l.prototype.writeDoubleBE=function(D,F,ae){return ke(this,D,F,!1,ae)},l.prototype.copy=function(D,F,ae,Te){if(!l.isBuffer(D))throw new TypeError("argument should be a Buffer");if(ae||(ae=0),!Te&&Te!==0&&(Te=this.length),F>=D.length&&(F=D.length),F||(F=0),Te>0&&Te=this.length)throw new RangeError("Index out of range");if(Te<0)throw new RangeError("sourceEnd out of bounds");Te>this.length&&(Te=this.length),D.length-F>>0,ae=ae===void 0?this.length:ae>>>0,D||(D=0);let Fe;if(typeof D=="number")for(Fe=F;Fe2**32?Te=Ie(String(F)):typeof F=="bigint"&&(Te=String(F),(F>BigInt(2)**BigInt(32)||F<-(BigInt(2)**BigInt(32)))&&(Te=Ie(Te)),Te+="n"),ae+=` It must be ${D}. Received ${Te}`,ae},RangeError);function Ie(U){let D="",F=U.length;const ae=U[0]==="-"?1:0;for(;F>=ae+4;F-=3)D=`_${U.slice(F-3,F)}${D}`;return`${U.slice(0,F)}${D}`}function qe(U,D,F){Ge(D,"offset"),(U[D]===void 0||U[D+F]===void 0)&&at(D,U.length-(F+1))}function tt(U,D,F,ae,Te,Fe){if(U>F||U= 0${We} and < 2${We} ** ${(Fe+1)*8}${We}`:Tt=`>= -(2${We} ** ${(Fe+1)*8-1}${We}) and < 2 ** ${(Fe+1)*8-1}${We}`,new fe.ERR_OUT_OF_RANGE("value",Tt,U)}qe(ae,Te,Fe)}function Ge(U,D){if(typeof U!="number")throw new fe.ERR_INVALID_ARG_TYPE(D,"number",U)}function at(U,D,F){throw Math.floor(U)!==U?(Ge(U,F),new fe.ERR_OUT_OF_RANGE("offset","an integer",U)):D<0?new fe.ERR_BUFFER_OUT_OF_BOUNDS:new fe.ERR_OUT_OF_RANGE("offset",`>= 0 and <= ${D}`,U)}const Et=/[^+/0-9A-Za-z-_]/g;function kt(U){if(U=U.split("=")[0],U=U.trim().replace(Et,""),U.length<2)return"";for(;U.length%4!==0;)U=U+"=";return U}function xt(U,D){D=D||1/0;let F;const ae=U.length;let Te=null;const Fe=[];for(let We=0;We55295&&F<57344){if(!Te){if(F>56319){(D-=3)>-1&&Fe.push(239,191,189);continue}else if(We+1===ae){(D-=3)>-1&&Fe.push(239,191,189);continue}Te=F;continue}if(F<56320){(D-=3)>-1&&Fe.push(239,191,189),Te=F;continue}F=(Te-55296<<10|F-56320)+65536}else Te&&(D-=3)>-1&&Fe.push(239,191,189);if(Te=null,F<128){if((D-=1)<0)break;Fe.push(F)}else if(F<2048){if((D-=2)<0)break;Fe.push(F>>6|192,F&63|128)}else if(F<65536){if((D-=3)<0)break;Fe.push(F>>12|224,F>>6&63|128,F&63|128)}else if(F<1114112){if((D-=4)<0)break;Fe.push(F>>18|240,F>>12&63|128,F>>6&63|128,F&63|128)}else throw new Error("Invalid code point")}return Fe}function Rt(U){const D=[];for(let F=0;F>8,Te=F%256,Fe.push(Te),Fe.push(ae);return Fe}function qt(U){return t.toByteArray(kt(U))}function Wt(U,D,F,ae){let Te;for(Te=0;Te=D.length||Te>=U.length);++Te)D[Te+F]=U[Te];return Te}function Oe(U,D){return U instanceof D||U!=null&&U.constructor!=null&&U.constructor.name!=null&&U.constructor.name===D.name}function dt(U){return U!==U}const ft=(function(){const U="0123456789abcdef",D=new Array(256);for(let F=0;F<16;++F){const ae=F*16;for(let Te=0;Te<16;++Te)D[ae+Te]=U[F]+U[Te]}return D})();function ut(U){return typeof BigInt>"u"?Nt:U}function Nt(){throw new Error("BigInt not supported")}})(lA)),lA}rRe();const rj=e=>{const{config:t}=R.useContext(ph);At();const{placeholder:n,label:r,getInputRef:a,secureTextEntry:i,Icon:o,onChange:l,value:u,height:d,disabled:f,forceBasic:g,forceRich:y,focused:h=!1,autoFocus:v,...E}=e,[T,C]=R.useState(!1),k=R.useRef(),_=R.useRef(!1),[A,P]=R.useState("tinymce"),{upload:N}=Nee(),{directPath:I}=VQ();R.useEffect(()=>{if(t.textEditorModule!=="tinymce")e.onReady&&e.onReady();else{const z=setTimeout(()=>{_.current===!1&&(P("textarea"),e.onReady&&e.onReady())},5e3);return()=>{clearTimeout(z)}}},[]);const L=async(z,Q)=>{const le=await N([new File([z.blob()],"filename")],!0)[0];return I({diskPath:le})},j=window.matchMedia("(prefers-color-scheme: dark)").matches||document.getElementsByTagName("body")[0].classList.contains("dark-theme");return w.jsx(rf,{focused:T,...e,children:t.textEditorModule==="tinymce"&&!g||y?w.jsx(eRe,{onInit:(z,Q)=>{k.current=Q,setTimeout(()=>{Q.setContent(u||"",{format:"raw"})},0),e.onReady&&e.onReady()},onEditorChange:(z,Q)=>{l&&l(Q.getContent({format:"raw"}))},onLoadContent:()=>{_.current=!0},apiKey:"4dh1g4gxp1gbmxi3hnkro4wf9lfgmqr86khygey2bwb7ps74",onBlur:()=>C(!1),tinymceScriptSrc:kr.PUBLIC_URL+"plugins/js/tinymce/tinymce.min.js",onFocus:()=>C(!0),init:{menubar:!1,height:d||400,images_upload_handler:L,skin:j?"oxide-dark":"oxide",content_css:j?"dark":"default",plugins:["example","image","directionality","image"],toolbar:"undo redo | formatselect | example | image | rtl ltr | link | bullist numlist bold italic backcolor h2 h3 | alignleft aligncenter alignright alignjustify | bullist numlist outdent indent | removeformat | help",content_style:"body {font-size:18px }"}}):w.jsx("textarea",{...E,value:u,placeholder:n,style:{minHeight:"140px"},autoFocus:v,className:oa("form-control",e.errorMessage&&"is-invalid",e.validMessage&&"is-valid"),onChange:z=>l&&l(z.target.value),onBlur:()=>C(!1),onFocus:()=>C(!0)})})},aRe=({form:e,isEditing:t})=>{const{options:n}=R.useContext(rt),{values:r,setValues:a,setFieldValue:i,errors:o}=e,l=Kt(zE),u=zs(Wr.definition.fields.find(d=>d.name==="keyGroup").of.map(d=>({label:d.k,value:d.k})));return w.jsxs(w.Fragment,{children:[w.jsx(da,{keyExtractor:d=>d.value,formEffect:{form:e,field:Wr.Fields.keyGroup,beforeSet(d){return d.value}},querySource:u,errorMessage:o.keyGroup,label:l.regionalContents.keyGroup,hint:l.regionalContents.keyGroupHint}),w.jsx(rj,{value:r.content,forceRich:r.keyGroup==="EMAIL_OTP",forceBasic:r.keyGroup==="SMS_OTP",onChange:d=>i(Wr.Fields.content,d,!1),errorMessage:o.content,label:l.regionalContents.content,hint:l.regionalContents.contentHint}),w.jsx(In,{value:"global",readonly:!0,onChange:d=>i(Wr.Fields.region,d,!1),errorMessage:o.region,label:l.regionalContents.region,hint:l.regionalContents.regionHint}),w.jsx(In,{value:r.title,onChange:d=>i(Wr.Fields.title,d,!1),errorMessage:o.title,label:l.regionalContents.title,hint:l.regionalContents.titleHint}),w.jsx(In,{value:r.languageId,onChange:d=>i(Wr.Fields.languageId,d,!1),errorMessage:o.languageId,label:l.regionalContents.languageId,hint:l.regionalContents.languageIdHint})]})};function Vee({queryOptions:e,execFnOverride:t,query:n,queryClient:r,unauthorized:a}){var T;const{options:i,execFn:o}=R.useContext(rt),l=t?t(i):o?o(i):St(i);let d=`${"/regional-content/:uniqueId".substr(1)}?${new URLSearchParams(Gt(n)).toString()}`,f=!0;d=d.replace(":uniqueId",n[":uniqueId".replace(":","")]),n[":uniqueId".replace(":","")]===void 0&&(f=!1);const g=()=>l("GET",d),y=(T=i==null?void 0:i.headers)==null?void 0:T.authorization,h=y!="undefined"&&y!=null&&y!=null&&y!="null"&&!!y;let v=!0;return f?!h&&!a&&(v=!1):v=!1,{query:jn([i,n,"*abac.RegionalContentEntity"],g,{cacheTime:1001,retry:!1,keepPreviousData:!0,enabled:v,...e||{}})}}function iRe(e){let{queryClient:t,query:n,execFnOverride:r}=e||{};n=n||{};const{options:a,execFn:i}=R.useContext(rt),o=r?r(a):i?i(a):St(a);let u=`${"/regional-content".substr(1)}?${new URLSearchParams(Gt(n)).toString()}`;const f=un(h=>o("POST",u,h)),g=(h,v)=>{var E;return h?(h.data&&(v!=null&&v.data)&&(h.data.items=[v.data,...((E=h==null?void 0:h.data)==null?void 0:E.items)||[]]),h):{data:{items:[]}}};return{mutation:f,submit:(h,v)=>new Promise((E,T)=>{f.mutate(h,{onSuccess(C){t==null||t.setQueryData("*abac.RegionalContentEntity",k=>g(k,C)),E(C)},onError(C){v==null||v.setErrors(Pn(C)),T(C)}})}),fnUpdater:g}}function oRe(e){let{queryClient:t,query:n,execFnOverride:r}=e||{};n=n||{};const{options:a,execFn:i}=R.useContext(rt),o=r?r(a):i?i(a):St(a);let u=`${"/regional-content".substr(1)}?${new URLSearchParams(Gt(n)).toString()}`;const f=un(h=>o("PATCH",u,h)),g=(h,v)=>{var E;return h?(h.data&&(v!=null&&v.data)&&(h.data.items=[v.data,...((E=h==null?void 0:h.data)==null?void 0:E.items)||[]]),h):{data:{items:[]}}};return{mutation:f,submit:(h,v)=>new Promise((E,T)=>{f.mutate(h,{onSuccess(C){t==null||t.setQueriesData("*abac.RegionalContentEntity",k=>g(k,C)),E(C)},onError(C){v==null||v.setErrors(Pn(C)),T(C)}})}),fnUpdater:g}}const Y5=({data:e})=>{const t=Kt(zE),{router:n,uniqueId:r,queryClient:a,locale:i}=$r({data:e}),o=Vee({query:{uniqueId:r}}),l=iRe({queryClient:a}),u=oRe({queryClient:a});return w.jsx(Bo,{postHook:l,patchHook:u,getSingleHook:o,onCancel:()=>{n.goBackOrDefault(Wr.Navigation.query(void 0,i))},onFinishUriResolver:(d,f)=>{var g;return Wr.Navigation.single((g=d.data)==null?void 0:g.uniqueId,f)},Form:aRe,onEditTitle:t.regionalContents.editRegionalContent,onCreateTitle:t.regionalContents.newRegionalContent,data:e})},sRe=()=>{var a;const{uniqueId:e}=$r({}),t=Vee({query:{uniqueId:e}});var n=(a=t.query.data)==null?void 0:a.data;const r=Kt(zE);return w.jsx(w.Fragment,{children:w.jsx(io,{editEntityHandler:({locale:i,router:o})=>{o.push(Wr.Navigation.edit(e))},getSingleHook:t,children:w.jsx(oo,{entity:n,fields:[{elem:n==null?void 0:n.region,label:r.regionalContents.region},{elem:n==null?void 0:n.title,label:r.regionalContents.title},{elem:n==null?void 0:n.languageId,label:r.regionalContents.languageId}]})})})};function lRe(){return w.jsxs(w.Fragment,{children:[w.jsx(mt,{element:w.jsx(Y5,{}),path:Wr.Navigation.Rcreate}),w.jsx(mt,{element:w.jsx(sRe,{}),path:Wr.Navigation.Rsingle}),w.jsx(mt,{element:w.jsx(Y5,{}),path:Wr.Navigation.Redit}),w.jsx(mt,{element:w.jsx(WOe,{}),path:Wr.Navigation.Rquery})]})}function Gee({queryOptions:e,execFnOverride:t,query:n,queryClient:r,unauthorized:a}){var T;const{options:i,execFn:o}=R.useContext(rt),l=t?t(i):o?o(i):St(i);let d=`${"/user/:uniqueId".substr(1)}?${new URLSearchParams(Gt(n)).toString()}`,f=!0;d=d.replace(":uniqueId",n[":uniqueId".replace(":","")]),n[":uniqueId".replace(":","")]===void 0&&(f=!1);const g=()=>l("GET",d),y=(T=i==null?void 0:i.headers)==null?void 0:T.authorization,h=y!="undefined"&&y!=null&&y!=null&&y!="null"&&!!y;let v=!0;return f?!h&&!a&&(v=!1):v=!1,{query:jn([i,n,"*abac.UserEntity"],g,{cacheTime:1001,retry:!1,keepPreviousData:!0,enabled:v,...e||{}})}}function uRe(e){let{queryClient:t,query:n,execFnOverride:r}=e||{};n=n||{};const{options:a,execFn:i}=R.useContext(rt),o=r?r(a):i?i(a):St(a);let u=`${"/user".substr(1)}?${new URLSearchParams(Gt(n)).toString()}`;const f=un(h=>o("PATCH",u,h)),g=(h,v)=>{var E;return h?(h.data&&(v!=null&&v.data)&&(h.data.items=[v.data,...((E=h==null?void 0:h.data)==null?void 0:E.items)||[]]),h):{data:{items:[]}}};return{mutation:f,submit:(h,v)=>new Promise((E,T)=>{f.mutate(h,{onSuccess(C){t==null||t.setQueriesData("*abac.UserEntity",k=>g(k,C)),E(C)},onError(C){v==null||v.setErrors(Pn(C)),T(C)}})}),fnUpdater:g}}function cRe(e){let{queryClient:t,query:n,execFnOverride:r}=e||{};n=n||{};const{options:a,execFn:i}=R.useContext(rt),o=r?r(a):i?i(a):St(a);let u=`${"/user".substr(1)}?${new URLSearchParams(Gt(n)).toString()}`;const f=un(h=>o("POST",u,h)),g=(h,v)=>{var E;return h?(h.data&&(v!=null&&v.data)&&(h.data.items=[v.data,...((E=h==null?void 0:h.data)==null?void 0:E.items)||[]]),h):{data:{items:[]}}};return{mutation:f,submit:(h,v)=>new Promise((E,T)=>{f.mutate(h,{onSuccess(C){t==null||t.setQueryData("*abac.UserEntity",k=>g(k,C)),E(C)},onError(C){v==null||v.setErrors(Pn(C)),T(C)}})}),fnUpdater:g}}const dRe=({form:e,isEditing:t})=>{const{values:n,setFieldValue:r,errors:a,setValues:i}=e,{options:o}=R.useContext(rt),l=At();return w.jsx(w.Fragment,{children:w.jsxs("div",{className:"row",children:[w.jsx("div",{className:"col-md-12",children:w.jsx(In,{value:n==null?void 0:n.firstName,onChange:u=>r(ia.Fields.firstName,u,!1),autoFocus:!t,errorMessage:a==null?void 0:a.firstName,label:l.wokspaces.invite.firstName,hint:l.wokspaces.invite.firstNameHint})}),w.jsx("div",{className:"col-md-12",children:w.jsx(In,{value:n==null?void 0:n.lastName,onChange:u=>r(ia.Fields.lastName,u,!1),errorMessage:a==null?void 0:a.lastName,label:l.wokspaces.invite.lastName,hint:l.wokspaces.invite.lastNameHint})})]})})},K5=({data:e})=>{const{router:t,uniqueId:n,queryClient:r,locale:a,t:i}=$r({data:e}),o=Gee({query:{uniqueId:n,deep:!0}}),l=cRe({queryClient:r}),u=uRe({queryClient:r});return w.jsx(Bo,{postHook:l,getSingleHook:o,patchHook:u,onCancel:()=>{t.goBackOrDefault(ia.Navigation.query(void 0,a))},onFinishUriResolver:(d,f)=>{var g;return ia.Navigation.single((g=d.data)==null?void 0:g.uniqueId,f)},Form:dRe,onEditTitle:i.user.editUser,onCreateTitle:i.user.newUser,data:e})};function Yee({queryOptions:e,query:t,queryClient:n,execFnOverride:r,unauthorized:a,optionFn:i}){var k,_,A;const{options:o,execFn:l}=R.useContext(rt),u=i?i(o):o,d=r?r(u):l?l(u):St(u);let g=`${"/passports".substr(1)}?${qa.stringify(t)}`;const y=()=>d("GET",g),h=(k=u==null?void 0:u.headers)==null?void 0:k.authorization,v=h!="undefined"&&h!=null&&h!=null&&h!="null"&&!!h;let E=!0;!v&&!a&&(E=!1);const T=jn(["*abac.PassportEntity",u,t],y,{cacheTime:1e3,retry:!1,keepPreviousData:!0,enabled:E,...e||{}}),C=((A=(_=T.data)==null?void 0:_.data)==null?void 0:A.items)||[];return{query:T,items:C,keyExtractor:P=>P.uniqueId}}Yee.UKEY="*abac.PassportEntity";const fRe=({userId:e})=>{const{items:t}=Yee({query:{query:e?"user_id = "+e:null}});return w.jsx("div",{children:w.jsx(Do,{title:"Passports",children:t.map(n=>w.jsx(hRe,{passport:n},n.uniqueId))})})};function pRe(e){if(e==null)return"n/a";if(e===!0)return"Yes";if(e===!1)return"No"}const hRe=({passport:e})=>w.jsx("div",{children:w.jsxs("div",{className:"general-entity-view ",children:[w.jsxs("div",{className:"entity-view-row entity-view-head",children:[w.jsx("div",{className:"field-info",children:"Value:"}),w.jsx("div",{className:"field-value",children:e.value})]}),w.jsxs("div",{className:"entity-view-row entity-view-head",children:[w.jsx("div",{className:"field-info",children:"Type:"}),w.jsx("div",{className:"field-value",children:e.type})]}),w.jsxs("div",{className:"entity-view-row entity-view-head",children:[w.jsx("div",{className:"field-info",children:"Confirmed:"}),w.jsx("div",{className:"field-value",children:pRe(e.confirmed)})]})]})}),mRe=()=>{var i;const e=xr(),t=At(),n=e.query.uniqueId;sr();const r=Gee({query:{uniqueId:n}});var a=(i=r.query.data)==null?void 0:i.data;return gh((a==null?void 0:a.firstName)||""),w.jsx(w.Fragment,{children:w.jsxs(io,{editEntityHandler:()=>{e.push(ia.Navigation.edit(n))},getSingleHook:r,children:[w.jsx(oo,{entity:a,fields:[{label:t.users.firstName,elem:a==null?void 0:a.firstName},{label:t.users.lastName,elem:a==null?void 0:a.lastName}]}),w.jsx(fRe,{userId:n})]})})};function gRe(e){const{execFnOverride:t,queryClient:n,query:r}=e||{},{options:a,execFn:i}=R.useContext(rt),o=t?t(a):i?i(a):St(a);let u=`${"/user".substr(1)}?${new URLSearchParams(Gt(r)).toString()}`;const f=un(h=>o("DELETE",u,h)),g=(h,v)=>h;return{mutation:f,submit:(h,v)=>new Promise((E,T)=>{f.mutate(h,{onSuccess(C){n==null||n.setQueryData("*abac.UserEntity",k=>g(k)),n==null||n.invalidateQueries("*abac.UserEntity"),E(C)},onError(C){v==null||v.setErrors(Pn(C)),T(C)}})}),fnUpdater:g}}function Kee({queryOptions:e,query:t,queryClient:n,execFnOverride:r,unauthorized:a,optionFn:i}){var k,_,A;const{options:o,execFn:l}=R.useContext(rt),u=i?i(o):o,d=r?r(u):l?l(u):St(u);let g=`${"/users".substr(1)}?${qa.stringify(t)}`;const y=()=>d("GET",g),h=(k=u==null?void 0:u.headers)==null?void 0:k.authorization,v=h!="undefined"&&h!=null&&h!=null&&h!="null"&&!!h;let E=!0;!v&&!a&&(E=!1);const T=jn(["*abac.UserEntity",u,t],y,{cacheTime:1e3,retry:!1,keepPreviousData:!0,enabled:E,...e||{}}),C=((A=(_=T.data)==null?void 0:_.data)==null?void 0:A.items)||[];return{query:T,items:C,keyExtractor:P=>P.uniqueId}}Kee.UKEY="*abac.UserEntity";const vRe=({gender:e})=>e===0?w.jsx("img",{style:{width:"20px",height:"20px"},src:"data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiA/Pjxzdmcgdmlld0JveD0iMCAwIDI1NiA1MTIiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTTEyOCAwYzM1LjM0NiAwIDY0IDI4LjY1NCA2NCA2NHMtMjguNjU0IDY0LTY0IDY0Yy0zNS4zNDYgMC02NC0yOC42NTQtNjQtNjRTOTIuNjU0IDAgMTI4IDBtMTE5LjI4MyAzNTQuMTc5bC00OC0xOTJBMjQgMjQgMCAwIDAgMTc2IDE0NGgtMTEuMzZjLTIyLjcxMSAxMC40NDMtNDkuNTkgMTAuODk0LTczLjI4IDBIODBhMjQgMjQgMCAwIDAtMjMuMjgzIDE4LjE3OWwtNDggMTkyQzQuOTM1IDM2OS4zMDUgMTYuMzgzIDM4NCAzMiAzODRoNTZ2MTA0YzAgMTMuMjU1IDEwLjc0NSAyNCAyNCAyNGgzMmMxMy4yNTUgMCAyNC0xMC43NDUgMjQtMjRWMzg0aDU2YzE1LjU5MSAwIDI3LjA3MS0xNC42NzEgMjMuMjgzLTI5LjgyMXoiLz48L3N2Zz4="}):w.jsx("img",{style:{width:"20px",height:"20px"},src:"data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiA/PjwhRE9DVFlQRSBzdmcgIFBVQkxJQyAnLS8vVzNDLy9EVEQgU1ZHIDEuMS8vRU4nICAnaHR0cDovL3d3dy53My5vcmcvR3JhcGhpY3MvU1ZHLzEuMS9EVEQvc3ZnMTEuZHRkJz48c3ZnIGVuYWJsZS1iYWNrZ3JvdW5kPSJuZXcgMCAwIDE0MS43MzIgMTQxLjczMiIgaGVpZ2h0PSIxNDEuNzMycHgiIGlkPSJMaXZlbGxvXzEiIHZlcnNpb249IjEuMSIgdmlld0JveD0iMCAwIDE0MS43MzIgMTQxLjczMiIgd2lkdGg9IjE0MS43MzJweCIgeG1sOnNwYWNlPSJwcmVzZXJ2ZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB4bWxuczp4bGluaz0iaHR0cDovL3d3dy53My5vcmcvMTk5OS94bGluayI+PGcgaWQ9IkxpdmVsbG9fOTAiPjxwYXRoIGQ9Ik04MS42NDcsMTAuNzU0YzAtNS4zNzItMy45NzMtOS44MTgtOS4xNi0xMC42MjRoMC4xMTdjLTAuMzc5LTAuMDU4LTAuNzY4LTAuMDktMS4xNTYtMC4xMDQgICBjLTAuMTAzLTAuMDA2LTAuMjA3LTAuMDA5LTAuMzExLTAuMDEyQzcxLjA2NiwwLjAxLDcwLjk5NiwwLDcwLjkyMywwYy0wLjAyMSwwLTAuMDM4LDAuMDAzLTAuMDYsMC4wMDMgICBDNzAuODQ2LDAuMDAzLDcwLjgyOCwwLDcwLjgwNywwYy0wLjA2OSwwLTAuMTQyLDAuMDEyLTAuMjE0LDAuMDE0Yy0wLjEwNCwwLjAwMy0wLjIwOCwwLjAwNi0wLjMxMiwwLjAxMiAgIGMtMC4zOTMsMC4wMTktMC43NzQsMC4wNTEtMS4xNTMsMC4xMDRoMC4xMTdjLTUuMTg5LDAuODA2LTkuMTYsNS4yNTItOS4xNiwxMC42MjRjMCw1Ljg5OSw0Ljc5MSwxMC42ODgsMTAuNzI0LDEwLjc0OHYwLjAwNCAgIGMwLjAyMSwwLDAuMDM5LTAuMDAxLDAuMDYyLTAuMDAyYzAuMDIxLDAuMDAxLDAuMDM4LDAuMDAyLDAuMDU5LDAuMDAydi0wLjAwNEM3Ni44NTYsMjEuNDQsODEuNjQ3LDE2LjY1Myw4MS42NDcsMTAuNzU0ICAgIE05NS45MTUsNjcuODEzVjI1LjYzOGMwLTIuMjgyLTEuODUyLTQuMTM2LTQuMTM1LTQuMTM2SDcwLjkyM2gtMC4xMTZINDkuOTVjLTIuMjgyLDAuMDAzLTQuMTMzLDEuODUzLTQuMTMzLDQuMTM2djQyLjE3NmgwLjAwNCAgIGMwLjA0OCwyLjI0MiwxLjg3NSw0LjA0Nyw0LjEyOSw0LjA0N2MyLjI1MywwLDQuMDgyLTEuODA1LDQuMTI4LTQuMDQ3aDAuMDA0VjQ0Ljk3MmgtMC4wMDlWMzMuOTM0YzAtMC43ODQsMC42MzgtMS40MiwxLjQyMS0xLjQyICAgczEuNDIsMC42MzYsMS40MiwxLjQydjExLjAzOHY4OC4zMTRjMC4zMiwzLjEwNywyLjkxNCw1LjUzNyw2LjA5LDUuNjA4aDAuMjg1YzMuMzk2LTAuMDc2LDYuMTI1LTIuODQ5LDYuMTI1LTYuMjU5Vjc3LjQ1NSAgIGMwLTAuNzcxLDAuNjItMS4zOTYsMS4zOTQtMS40MTF2MC4wMTJjMC4wMjEtMC4wMDEsMC4wMzktMC4wMDcsMC4wNjItMC4wMWMwLjAyMSwwLjAwMywwLjAzOCwwLjAwOSwwLjA1OSwwLjAxdi0wLjAxMiAgIGMwLjc3LDAuMDE4LDEuMzk1LDAuNjQzLDEuMzk1LDEuNDExdjU1LjE4OGMwLDMuNDEyLDIuNzMsNi4xODMsNi4xMjUsNi4yNTloMC4yODVjMy4xNzYtMC4wNzEsNS43Ny0yLjUwMSw2LjA5LTUuNjA4VjQ0Ljk3NCAgIHYtMTEuMDRjMC0wLjc4NCwwLjYzNy0xLjQyLDEuNDIyLTEuNDJjMC43ODEsMCwxLjQyLDAuNjM2LDEuNDIsMS40MnYxMS4wMzhoLTAuMDF2MjIuODQyaDAuMDA0ICAgYzAuMDQ3LDIuMjQyLDEuODc1LDQuMDQ3LDQuMTI5LDQuMDQ3Qzk0LjA0LDcxLjg2MSw5NS44NjYsNzAuMDU2LDk1LjkxNSw2Ny44MTNMOTUuOTE1LDY3LjgxM0w5NS45MTUsNjcuODEzeiIvPjwvZz48ZyBpZD0iTGl2ZWxsb18xXzFfIi8+PC9zdmc+"}),yRe=e=>[{name:ia.Fields.uniqueId,title:e.table.uniqueId,width:100},{name:"firstName",title:e.users.firstName,width:200,sortable:!0,filterable:!0,getCellValue:t=>t==null?void 0:t.firstName},{filterable:!0,name:"lastName",sortable:!0,title:e.users.lastName,width:200,getCellValue:t=>t==null?void 0:t.lastName},{name:"birthDate",title:"birthdate",width:140,getCellValue:t=>w.jsx(w.Fragment,{children:t==null?void 0:t.birthDate}),filterType:"date",filterable:!0,sortable:!0},{name:"gender",title:"gender",width:50,getCellValue:t=>w.jsx(w.Fragment,{children:w.jsx(vRe,{gender:t.gender})})},{name:"Image",title:"Image",width:40,getCellValue:t=>w.jsx(w.Fragment,{children:(t==null?void 0:t.photo)&&w.jsx("img",{src:t==null?void 0:t.photo,style:{width:"20px",height:"20px"}})})},{name:ia.Fields.primaryAddress.countryCode,title:"Country code",width:40,getCellValue:t=>{var n;return w.jsx(w.Fragment,{children:(n=t.primaryAddress)==null?void 0:n.countryCode})}},{name:ia.Fields.primaryAddress.addressLine1,title:"Address Line 1",width:180,getCellValue:t=>{var n;return w.jsx(w.Fragment,{children:(n=t.primaryAddress)==null?void 0:n.addressLine1})}},{name:ia.Fields.primaryAddress.addressLine2,title:"Address Line 2",width:180,getCellValue:t=>{var n;return w.jsx(w.Fragment,{children:(n=t.primaryAddress)==null?void 0:n.addressLine2})}},{name:ia.Fields.primaryAddress.city,title:"City",width:180,getCellValue:t=>{var n;return w.jsx(w.Fragment,{children:(n=t.primaryAddress)==null?void 0:n.city})}},{name:ia.Fields.primaryAddress.postalCode,title:"Postal Code",width:80,getCellValue:t=>{var n;return w.jsx(w.Fragment,{children:(n=t.primaryAddress)==null?void 0:n.postalCode})}}],bRe=()=>{const e=At();return gh(e.fbMenu.users),w.jsx(w.Fragment,{children:w.jsx(Uo,{columns:yRe(e),queryHook:Kee,uniqueIdHrefHandler:t=>ia.Navigation.single(t),deleteHook:gRe})})},wRe=()=>{const e=At(),t=xr();return sr(),w.jsx(w.Fragment,{children:w.jsx(jo,{newEntityHandler:()=>{t.push(ia.Navigation.create())},pageTitle:e.fbMenu.users,children:w.jsx(bRe,{})})})};function SRe(){return w.jsxs(w.Fragment,{children:[w.jsx(mt,{element:w.jsx(K5,{}),path:ia.Navigation.Rcreate}),w.jsx(mt,{element:w.jsx(mRe,{}),path:ia.Navigation.Rsingle}),w.jsx(mt,{element:w.jsx(K5,{}),path:ia.Navigation.Redit}),w.jsx(mt,{element:w.jsx(wRe,{}),path:ia.Navigation.Rquery})]})}class La extends wn{constructor(...t){super(...t),this.children=void 0,this.enableRecaptcha2=void 0,this.enableOtp=void 0,this.requireOtpOnSignup=void 0,this.requireOtpOnSignin=void 0,this.recaptcha2ServerKey=void 0,this.recaptcha2ClientKey=void 0,this.enableTotp=void 0,this.forceTotp=void 0,this.forcePasswordOnPhone=void 0,this.forcePersonNameOnPhone=void 0,this.generalEmailProvider=void 0,this.generalEmailProviderId=void 0,this.generalGsmProvider=void 0,this.generalGsmProviderId=void 0,this.inviteToWorkspaceContent=void 0,this.inviteToWorkspaceContentId=void 0,this.emailOtpContent=void 0,this.emailOtpContentId=void 0,this.smsOtpContent=void 0,this.smsOtpContentId=void 0}}La.Navigation={edit(e,t){return`${t?"/"+t:".."}/workspace-config/edit/${e}`},create(e){return`${e?"/"+e:".."}/workspace-config/new`},single(e,t){return`${t?"/"+t:".."}/workspace-config/${e}`},query(e={},t){return`${t?"/"+t:".."}/workspace-configs`},Redit:"workspace-config/edit/:uniqueId",Rcreate:"workspace-config/new",Rsingle:"workspace-config/:uniqueId",Rquery:"workspace-configs"};La.definition={rpc:{query:{}},permRewrite:{replace:"root.modules",with:"root.manage"},name:"workspaceConfig",distinctBy:"workspace",features:{},security:{writeOnRoot:!0,readOnRoot:!0,resolveStrategy:"workspace"},gormMap:{},fields:[{name:"enableRecaptcha2",description:"Enables the recaptcha2 for authentication flow.",type:"bool?",computedType:"boolean",gormMap:{}},{name:"enableOtp",recommended:!0,description:"Enables the otp option. It's not forcing it, so user can choose if they want otp or password.",type:"bool?",computedType:"boolean",gormMap:{}},{name:"requireOtpOnSignup",recommended:!0,description:"Forces the user to have otp verification before can create an account. They can define their password still.",type:"bool?",computedType:"boolean",gormMap:{}},{name:"requireOtpOnSignin",recommended:!0,description:"Forces the user to use otp when signing in. Even if they have password set, they won't use it and only will be able to signin using that otp.",type:"bool?",default:!1,computedType:"boolean",gormMap:{}},{name:"recaptcha2ServerKey",description:"Secret which would be used to decrypt if the recaptcha is correct. Should not be available publicly.",type:"string",computedType:"string",gormMap:{}},{name:"recaptcha2ClientKey",description:"Secret which would be used for recaptcha2 on the client side. Can be publicly visible, and upon authenticating users it would be sent to front-end.",type:"string",computedType:"string",gormMap:{}},{name:"enableTotp",recommended:!0,description:"Enables user to make 2FA using apps such as google authenticator or microsoft authenticator.",type:"bool?",computedType:"boolean",gormMap:{}},{name:"forceTotp",recommended:!0,description:"Forces the user to setup a 2FA in order to access their account. Users which did not setup this won't be affected.",type:"bool?",computedType:"boolean",gormMap:{}},{name:"forcePasswordOnPhone",description:"Forces users who want to create account using phone number to also set a password on their account",type:"bool?",computedType:"boolean",gormMap:{}},{name:"forcePersonNameOnPhone",description:"Forces the creation of account using phone number to ask for user first name and last name",type:"bool?",computedType:"boolean",gormMap:{}},{name:"generalEmailProvider",description:"Email provider service, which will be used to send the messages using it's service. It doesn't affect the message content, rather, you can choose via which third-party service, or even your own smtp service to send emails.",type:"one",target:"EmailProviderEntity",computedType:"EmailProviderEntity",gormMap:{}},{name:"generalGsmProvider",description:"General service which would be used to send text messages (sms) using it's services or API.",type:"one",target:"GsmProviderEntity",computedType:"GsmProviderEntity",gormMap:{}},{name:"inviteToWorkspaceContent",description:"This template would be used, as default when a user is inviting a third-party into their own workspace.",type:"one",target:"RegionalContentEntity",computedType:"RegionalContentEntity",gormMap:{}},{name:"emailOtpContent",description:"Upon one time password request for email, the content will be read to fill the message which will go to user.",type:"one",target:"RegionalContentEntity",computedType:"RegionalContentEntity",gormMap:{}},{name:"smsOtpContent",description:"Upon OTP text messages, this template will be used to create such text message, including the one time password code.",type:"one",target:"RegionalContentEntity",computedType:"RegionalContentEntity",gormMap:{}}],cliName:"config",description:"Contains configuration which would be necessary for application environment to be running. At the moment, a single record is allowed, and only for root workspace. But in theory it could be configured per each workspace independently. For sub projects do not touch this, rather create a custom config entity if workspaces in the product need extra config."};La.Fields={...wn.Fields,enableRecaptcha2:"enableRecaptcha2",enableOtp:"enableOtp",requireOtpOnSignup:"requireOtpOnSignup",requireOtpOnSignin:"requireOtpOnSignin",recaptcha2ServerKey:"recaptcha2ServerKey",recaptcha2ClientKey:"recaptcha2ClientKey",enableTotp:"enableTotp",forceTotp:"forceTotp",forcePasswordOnPhone:"forcePasswordOnPhone",forcePersonNameOnPhone:"forcePersonNameOnPhone",generalEmailProviderId:"generalEmailProviderId",generalEmailProvider$:"generalEmailProvider",generalEmailProvider:gi.Fields,generalGsmProviderId:"generalGsmProviderId",generalGsmProvider$:"generalGsmProvider",generalGsmProvider:ca.Fields,inviteToWorkspaceContentId:"inviteToWorkspaceContentId",inviteToWorkspaceContent$:"inviteToWorkspaceContent",inviteToWorkspaceContent:Wr.Fields,emailOtpContentId:"emailOtpContentId",emailOtpContent$:"emailOtpContent",emailOtpContent:Wr.Fields,smsOtpContentId:"smsOtpContentId",smsOtpContent$:"smsOtpContent",smsOtpContent:Wr.Fields};function Xee({queryOptions:e,execFnOverride:t,query:n,queryClient:r,unauthorized:a}){var E;const{options:i,execFn:o}=R.useContext(rt),l=t?t(i):o?o(i):St(i);let d=`${"/workspace-config/distinct".substr(1)}?${new URLSearchParams(Gt(n)).toString()}`;const f=()=>l("GET",d),g=(E=i==null?void 0:i.headers)==null?void 0:E.authorization,y=g!="undefined"&&g!=null&&g!=null&&g!="null"&&!!g;let h=!0;return!y&&!a&&(h=!1),{query:jn([i,n,"*abac.WorkspaceConfigEntity"],f,{cacheTime:1001,retry:!1,keepPreviousData:!0,enabled:h,...e||{}})}}function ERe(e){let{queryClient:t,query:n,execFnOverride:r}=e||{};n=n||{};const{options:a,execFn:i}=R.useContext(rt),o=r?r(a):i?i(a):St(a);let u=`${"/workspace-config/distinct".substr(1)}?${new URLSearchParams(Gt(n)).toString()}`;const f=un(h=>o("PATCH",u,h)),g=(h,v)=>{var E;return h?(h.data&&(v!=null&&v.data)&&(h.data.items=[v.data,...((E=h==null?void 0:h.data)==null?void 0:E.items)||[]]),h):{data:{items:[]}}};return{mutation:f,submit:(h,v)=>new Promise((E,T)=>{f.mutate(h,{onSuccess(C){t==null||t.setQueriesData("*abac.WorkspaceConfigEntity",k=>g(k,C)),E(C)},onError(C){v==null||v.setErrors(Pn(C)),T(C)}})}),fnUpdater:g}}const TRe={workspaceConfigs:{archiveTitle:"Workspace configs",description:"Configurate how the workspaces work in terms of totp, forced otp, recaptcha and how the user can interact with the application.",editWorkspaceConfig:"Edit workspace config",emailOtpContentHint:"Upon one time password request for email, the content will be read to fill the message which will go to user.",emailOtpContentLabel:"Email Otp Content",enableOtp:"Enable otp",enableOtpHint:"Enables the one time password for the selfservice. It would allow email or phone numbers to bypass password and recieve a 6 digit code on their inbox or phone.",enableRecaptcha2:"Enable reCAPTCHA2",enableRecaptcha2Hint:"Enables reCAPTCHA2 from google integration into the project selfservice. You need to provide Server Key and Client Key to make it effective.",enableTotp:"Enable totp",enableTotpHint:"Enables time based otp for account creation and signin.",forcePasswordOnPhone:"Force password on phone",forcePasswordOnPhoneHint:"Force password on phone",forcePersonNameOnPhone:"Force person name on phone",forcePersonNameOnPhoneHint:"Force person name on phone",forceTotp:"Force totp",forceTotpHint:"Forces the totp for account creation. If an account doesn't have it, they need to setup before they can login.",generalEmailProviderHint:"Email provider service, which will be used to send the messages using it's service. It doesn't affect the message content, rather, you can choose via which third-party service, or even your own smtp service to send emails.",generalEmailProviderLabel:"General Email Provider",generalGsmProviderHint:"General service which would be used to send text messages (sms) using it's services or API.",generalGsmProviderLabel:"General Gsm Provider",inviteToWorkspaceContentHint:"This template would be used, as default when a user is inviting a third-party into their own workspace.",inviteToWorkspaceContentLabel:"Invite To Workspace Content",newWorkspaceConfig:"New workspace config",otpSectionDescription:"Manage the user authentication using single time password over sms/email",otpSectionTitle:"OTP (One time password)",passwordSectionDescription:"Configurate the usage of password by users",passwordSectionTitle:"Password management",recaptcha2ClientKey:"Client key",recaptcha2ClientKeyHint:"Client key for reCAPTCHA2",recaptcha2ServerKey:"Server key",recaptcha2ServerKeyHint:"Server key for reCAPTCHA2",recaptchaSectionDescription:"Configurate the recaptcha 2 related options for the application.",recaptchaSectionTitle:"Recaptcha section",requireOtpOnSignin:"Require otp on signin",requireOtpOnSigninHint:"Forces passports such as phone and email to approve signin with 6 digit code, even if the passport has a password. OAuth is exempted.",requireOtpOnSignup:"Require otp on signup",requireOtpOnSignupHint:"It would force account creation to first make a one time password verification and then continue the process.",smsOtpContentHint:"Upon OTP text messages, this template will be used to create such text message, including the one time password code.",smsOtpContentLabel:"SMS Otp Content",title:"Workspace Config",totpSectionDescription:"Usage of the authenticator app as a second security step for the password.",totpSectionTitle:"TOTP (Time based Dual Factor)"}},CRe={workspaceConfigs:{archiveTitle:"Workspace configs",description:"Configurate how the workspaces work in terms of totp, forced otp, recaptcha and how the user can interact with the application.",editWorkspaceConfig:"Edit workspace config",emailOtpContentHint:"Upon one time password request for email, the content will be read to fill the message which will go to user.",emailOtpContentLabel:"Email Otp Content",enableOtp:"Enable otp",enableOtpHint:"Enables the one time password for the selfservice. It would allow email or phone numbers to bypass password and recieve a 6 digit code on their inbox or phone.",enableRecaptcha2:"Enable reCAPTCHA2",enableRecaptcha2Hint:"Enables reCAPTCHA2 from google integration into the project selfservice. You need to provide Server Key and Client Key to make it effective.",enableTotp:"Enable totp",enableTotpHint:"Enables time based otp for account creation and signin.",forcePasswordOnPhone:"Force password on phone",forcePasswordOnPhoneHint:"Force password on phone",forcePersonNameOnPhone:"Force person name on phone",forcePersonNameOnPhoneHint:"Force person name on phone",forceTotp:"Force totp",forceTotpHint:"Forces the totp for account creation. If an account doesn't have it, they need to setup before they can login.",generalEmailProviderHint:"Email provider service, which will be used to send the messages using it's service. It doesn't affect the message content, rather, you can choose via which third-party service, or even your own smtp service to send emails.",generalEmailProviderLabel:"General Email Provider",generalGsmProviderHint:"General service which would be used to send text messages (sms) using it's services or API.",generalGsmProviderLabel:"General Gsm Provider",inviteToWorkspaceContentHint:"This template would be used, as default when a user is inviting a third-party into their own workspace.",inviteToWorkspaceContentLabel:"Invite To Workspace Content",newWorkspaceConfig:"New workspace config",otpSectionDescription:"Manage the user authentication using single time password over sms/email",otpSectionTitle:"OTP (One time password)",passwordSectionDescription:"Configurate the usage of password by users",passwordSectionTitle:"Password management",recaptcha2ClientKey:"Client key",recaptcha2ClientKeyHint:"Client key for reCAPTCHA2",recaptcha2ServerKey:"Server key",recaptcha2ServerKeyHint:"Server key for reCAPTCHA2",recaptchaSectionDescription:"Configurate the recaptcha 2 related options for the application.",recaptchaSectionTitle:"Recaptcha section",requireOtpOnSignin:"Require otp on signin",requireOtpOnSigninHint:"Forces passports such as phone and email to approve signin with 6 digit code, even if the passport has a password. OAuth is exempted.",requireOtpOnSignup:"Require otp on signup",requireOtpOnSignupHint:"It would force account creation to first make a one time password verification and then continue the process.",smsOtpContentHint:"Upon one time password request for email, the content will be read to fill the message which will go to user.",smsOtpContentLabel:"SMS Otp Content",title:"Workspace Config",totpSectionDescription:"Usage of the authenticator app as a second security step for the password.",totpSectionTitle:"TOTP (Time based Dual Factor)"}},aj={...TRe,$pl:CRe};function ij({queryOptions:e,query:t,queryClient:n,execFnOverride:r,unauthorized:a,optionFn:i}){var k,_,A;const{options:o,execFn:l}=R.useContext(rt),u=i?i(o):o,d=r?r(u):l?l(u):St(u);let g=`${"/gsm-providers".substr(1)}?${qa.stringify(t)}`;const y=()=>d("GET",g),h=(k=u==null?void 0:u.headers)==null?void 0:k.authorization,v=h!="undefined"&&h!=null&&h!=null&&h!="null"&&!!h;let E=!0;!v&&!a&&(E=!1);const T=jn(["*abac.GsmProviderEntity",u,t],y,{cacheTime:1e3,retry:!1,keepPreviousData:!0,enabled:E,...e||{}}),C=((A=(_=T.data)==null?void 0:_.data)==null?void 0:A.items)||[];return{query:T,items:C,keyExtractor:P=>P.uniqueId}}ij.UKEY="*abac.GsmProviderEntity";const kRe=({form:e,isEditing:t})=>{const{values:n,setValues:r,setFieldValue:a,errors:i}=e,o=Kt(aj);return w.jsxs(w.Fragment,{children:[w.jsxs(Do,{title:o.workspaceConfigs.recaptchaSectionTitle,description:o.workspaceConfigs.recaptchaSectionDescription,children:[w.jsx(El,{value:n.enableRecaptcha2,onChange:l=>a(La.Fields.enableRecaptcha2,l,!1),errorMessage:i.enableRecaptcha2,label:o.workspaceConfigs.enableRecaptcha2,hint:o.workspaceConfigs.enableRecaptcha2Hint}),w.jsx(In,{value:n.recaptcha2ServerKey,disabled:!n.enableRecaptcha2,onChange:l=>a(La.Fields.recaptcha2ServerKey,l,!1),errorMessage:i.recaptcha2ServerKey,label:o.workspaceConfigs.recaptcha2ServerKey,hint:o.workspaceConfigs.recaptcha2ServerKeyHint}),w.jsx(In,{value:n.recaptcha2ClientKey,disabled:!n.enableRecaptcha2,onChange:l=>a(La.Fields.recaptcha2ClientKey,l,!1),errorMessage:i.recaptcha2ClientKey,label:o.workspaceConfigs.recaptcha2ClientKey,hint:o.workspaceConfigs.recaptcha2ClientKeyHint})]}),w.jsxs(Do,{title:o.workspaceConfigs.otpSectionTitle,description:o.workspaceConfigs.otpSectionDescription,children:[w.jsx(El,{value:n.enableOtp,onChange:l=>a(La.Fields.enableOtp,l,!1),errorMessage:i.enableOtp,label:o.workspaceConfigs.enableOtp,hint:o.workspaceConfigs.enableOtpHint}),w.jsx(El,{value:n.requireOtpOnSignup,onChange:l=>a(La.Fields.requireOtpOnSignup,l,!1),errorMessage:i.requireOtpOnSignup,label:o.workspaceConfigs.requireOtpOnSignup,hint:o.workspaceConfigs.requireOtpOnSignupHint}),w.jsx(El,{value:n.requireOtpOnSignin,onChange:l=>a(La.Fields.requireOtpOnSignin,l,!1),errorMessage:i.requireOtpOnSignin,label:o.workspaceConfigs.requireOtpOnSignin,hint:o.workspaceConfigs.requireOtpOnSigninHint})]}),w.jsxs(Do,{title:o.workspaceConfigs.totpSectionTitle,description:o.workspaceConfigs.totpSectionDescription,children:[w.jsx(El,{value:n.enableTotp,onChange:l=>a(La.Fields.enableTotp,l,!1),errorMessage:i.enableTotp,label:o.workspaceConfigs.enableTotp,hint:o.workspaceConfigs.enableTotpHint}),w.jsx(El,{value:n.forceTotp,onChange:l=>a(La.Fields.forceTotp,l,!1),errorMessage:i.forceTotp,label:o.workspaceConfigs.forceTotp,hint:o.workspaceConfigs.forceTotpHint})]}),w.jsxs(Do,{title:o.workspaceConfigs.passwordSectionTitle,description:o.workspaceConfigs.passwordSectionDescription,children:[w.jsx(El,{value:n.forcePasswordOnPhone,onChange:l=>a(La.Fields.forcePasswordOnPhone,l,!1),errorMessage:i.forcePasswordOnPhone,label:o.workspaceConfigs.forcePasswordOnPhone,hint:o.workspaceConfigs.forcePasswordOnPhoneHint}),w.jsx(El,{value:n.forcePersonNameOnPhone,onChange:l=>a(La.Fields.forcePersonNameOnPhone,l,!1),errorMessage:i.forcePersonNameOnPhone,label:o.workspaceConfigs.forcePersonNameOnPhone,hint:o.workspaceConfigs.forcePersonNameOnPhoneHint})]}),w.jsxs(Do,{title:o.workspaceConfigs.passwordSectionTitle,description:o.workspaceConfigs.passwordSectionDescription,children:[w.jsx(da,{keyExtractor:l=>l.uniqueId,formEffect:{form:e,field:La.Fields.generalEmailProviderId,beforeSet(l){return l.uniqueId}},fnLabelFormat:l=>`${l.type} (${l.uniqueId})`,querySource:ej,errorMessage:i.generalEmailProviderId,label:o.workspaceConfigs.generalEmailProviderLabel,hint:o.workspaceConfigs.generalEmailProviderHint}),w.jsx(da,{keyExtractor:l=>l.uniqueId,formEffect:{form:e,field:La.Fields.generalGsmProviderId,beforeSet(l){return l.uniqueId}},fnLabelFormat:l=>`${l.type} (${l.uniqueId})`,querySource:ij,errorMessage:i.generalGsmProviderId,label:o.workspaceConfigs.generalGsmProviderLabel,hint:o.workspaceConfigs.generalGsmProviderHint}),w.jsx(da,{keyExtractor:l=>l.uniqueId,formEffect:{form:e,field:La.Fields.inviteToWorkspaceContentId,beforeSet(l){return l.uniqueId}},fnLabelFormat:l=>`${l.title})`,querySource:_S,errorMessage:i.inviteToWorkspaceContentId,label:o.workspaceConfigs.inviteToWorkspaceContentLabel,hint:o.workspaceConfigs.inviteToWorkspaceContentHint}),w.jsx(da,{keyExtractor:l=>l.uniqueId,formEffect:{form:e,field:La.Fields.emailOtpContentId,beforeSet(l){return l.uniqueId}},fnLabelFormat:l=>`${l.title})`,querySource:_S,errorMessage:i.emailOtpContentId,label:o.workspaceConfigs.emailOtpContentLabel,hint:o.workspaceConfigs.emailOtpContentHint}),w.jsx(da,{keyExtractor:l=>l.uniqueId,formEffect:{form:e,field:La.Fields.smsOtpContentId,beforeSet(l){return l.uniqueId}},fnLabelFormat:l=>`${l.title})`,querySource:_S,errorMessage:i.smsOtpContentId,label:o.workspaceConfigs.smsOtpContentLabel,hint:o.workspaceConfigs.smsOtpContentHint})]})]})},xRe=({data:e})=>{const t=Kt(aj),{router:n,uniqueId:r,queryClient:a,locale:i}=$r({data:e}),o=Xee({query:{uniqueId:r}}),l=ERe({queryClient:a});return w.jsx(Bo,{patchHook:l,getSingleHook:o,disableOnGetFailed:!0,forceEdit:!0,onCancel:()=>{n.goBackOrDefault(La.Navigation.single(void 0,i))},onFinishUriResolver:(u,d)=>{var f;return La.Navigation.single((f=u.data)==null?void 0:f.uniqueId,d)},customClass:"w-100",Form:kRe,onEditTitle:t.workspaceConfigs.editWorkspaceConfig,onCreateTitle:t.workspaceConfigs.newWorkspaceConfig,data:e})},_Re=()=>{var r;const e=Xee({});var t=(r=e.query.data)==null?void 0:r.data;const n=Kt(aj);return w.jsx(w.Fragment,{children:w.jsx(io,{editEntityHandler:({locale:a,router:i})=>{i.push(La.Navigation.edit(""))},noBack:!0,disableOnGetFailed:!0,getSingleHook:e,children:w.jsx(oo,{title:n.workspaceConfigs.title,description:n.workspaceConfigs.description,entity:t,fields:[{elem:t==null?void 0:t.recaptcha2ServerKey,label:n.workspaceConfigs.recaptcha2ServerKey},{elem:t==null?void 0:t.recaptcha2ClientKey,label:n.workspaceConfigs.recaptcha2ClientKey},{elem:t==null?void 0:t.enableOtp,label:n.workspaceConfigs.enableOtp},{elem:t==null?void 0:t.enableRecaptcha2,label:n.workspaceConfigs.enableRecaptcha2},{elem:t==null?void 0:t.requireOtpOnSignin,label:n.workspaceConfigs.requireOtpOnSignin},{elem:t==null?void 0:t.requireOtpOnSignup,label:n.workspaceConfigs.requireOtpOnSignup},{elem:t==null?void 0:t.enableTotp,label:n.workspaceConfigs.enableTotp},{elem:t==null?void 0:t.forceTotp,label:n.workspaceConfigs.forceTotp},{elem:t==null?void 0:t.forcePasswordOnPhone,label:n.workspaceConfigs.forcePasswordOnPhone},{elem:t==null?void 0:t.forcePersonNameOnPhone,label:n.workspaceConfigs.forcePersonNameOnPhone},{elem:t==null?void 0:t.generalEmailProviderId,label:n.workspaceConfigs.generalEmailProviderLabel},{elem:t==null?void 0:t.generalGsmProviderId,label:n.workspaceConfigs.generalGsmProviderLabel},{elem:t==null?void 0:t.inviteToWorkspaceContentId,label:n.workspaceConfigs.inviteToWorkspaceContentLabel},{elem:t==null?void 0:t.emailOtpContentId,label:n.workspaceConfigs.emailOtpContentLabel},{elem:t==null?void 0:t.smsOtpContentId,label:n.workspaceConfigs.smsOtpContentLabel}]})})})};function ORe(){return w.jsxs(w.Fragment,{children:[w.jsx(mt,{element:w.jsx(_Re,{}),path:"workspace-config"}),w.jsx(mt,{element:w.jsx(xRe,{}),path:"workspace-config/edit"})]})}function af({queryOptions:e,query:t,queryClient:n,execFnOverride:r,unauthorized:a,optionFn:i}){var k,_,A;const{options:o,execFn:l}=R.useContext(rt),u=i?i(o):o,d=r?r(u):l?l(u):St(u);let g=`${"/roles".substr(1)}?${qa.stringify(t)}`;const y=()=>d("GET",g),h=(k=u==null?void 0:u.headers)==null?void 0:k.authorization,v=h!="undefined"&&h!=null&&h!=null&&h!="null"&&!!h;let E=!0;!v&&!a&&(E=!1);const T=jn(["*abac.RoleEntity",u,t],y,{cacheTime:1e3,retry:!1,keepPreviousData:!0,enabled:E,...e||{}}),C=((A=(_=T.data)==null?void 0:_.data)==null?void 0:A.items)||[];return{query:T,items:C,keyExtractor:P=>P.uniqueId}}af.UKEY="*abac.RoleEntity";const RRe=({form:e,isEditing:t})=>{const{values:n,setValues:r}=e,{options:a}=R.useContext(rt),i=At();return w.jsxs(w.Fragment,{children:[w.jsx(In,{value:n.uniqueId,onChange:o=>e.setFieldValue(Ji.Fields.uniqueId,o,!1),errorMessage:e.errors.uniqueId,label:i.wokspaces.workspaceTypeUniqueId,autoFocus:!t,hint:i.wokspaces.workspaceTypeUniqueIdHint}),w.jsx(In,{value:n.title,onChange:o=>e.setFieldValue(Ji.Fields.title,o,!1),errorMessage:e.errors.title,label:i.wokspaces.workspaceTypeTitle,autoFocus:!t,hint:i.wokspaces.workspaceTypeTitleHint}),w.jsx(In,{value:n.slug,onChange:o=>e.setFieldValue(Ji.Fields.slug,o,!1),errorMessage:e.errors.slug,label:i.wokspaces.workspaceTypeSlug,hint:i.wokspaces.workspaceTypeSlugHint}),w.jsx(da,{label:i.wokspaces.invite.role,hint:i.wokspaces.invite.roleHint,fnLabelFormat:o=>o.name,querySource:af,formEffect:{form:e,field:Ji.Fields.role$},errorMessage:e.errors.roleId}),w.jsx(rj,{value:n.description,onChange:o=>e.setFieldValue(Ji.Fields.description,o,!1),errorMessage:e.errors.description,label:i.wokspaces.typeDescription,hint:i.wokspaces.typeDescriptionHint})]})};function Qee({queryOptions:e,execFnOverride:t,query:n,queryClient:r,unauthorized:a}){var T;const{options:i,execFn:o}=R.useContext(rt),l=t?t(i):o?o(i):St(i);let d=`${"/workspace-type/:uniqueId".substr(1)}?${new URLSearchParams(Gt(n)).toString()}`,f=!0;d=d.replace(":uniqueId",n[":uniqueId".replace(":","")]),n[":uniqueId".replace(":","")]===void 0&&(f=!1);const g=()=>l("GET",d),y=(T=i==null?void 0:i.headers)==null?void 0:T.authorization,h=y!="undefined"&&y!=null&&y!=null&&y!="null"&&!!y;let v=!0;return f?!h&&!a&&(v=!1):v=!1,{query:jn([i,n,"*abac.WorkspaceTypeEntity"],g,{cacheTime:1001,retry:!1,keepPreviousData:!0,enabled:v,...e||{}})}}function PRe(e){let{queryClient:t,query:n,execFnOverride:r}=e||{};n=n||{};const{options:a,execFn:i}=R.useContext(rt),o=r?r(a):i?i(a):St(a);let u=`${"/workspace-type".substr(1)}?${new URLSearchParams(Gt(n)).toString()}`;const f=un(h=>o("POST",u,h)),g=(h,v)=>{var E;return h?(h.data&&(v!=null&&v.data)&&(h.data.items=[v.data,...((E=h==null?void 0:h.data)==null?void 0:E.items)||[]]),h):{data:{items:[]}}};return{mutation:f,submit:(h,v)=>new Promise((E,T)=>{f.mutate(h,{onSuccess(C){t==null||t.setQueryData("*abac.WorkspaceTypeEntity",k=>g(k,C)),E(C)},onError(C){v==null||v.setErrors(Pn(C)),T(C)}})}),fnUpdater:g}}function ARe(e){let{queryClient:t,query:n,execFnOverride:r}=e||{};n=n||{};const{options:a,execFn:i}=R.useContext(rt),o=r?r(a):i?i(a):St(a);let u=`${"/workspace-type".substr(1)}?${new URLSearchParams(Gt(n)).toString()}`;const f=un(h=>o("PATCH",u,h)),g=(h,v)=>{var E;return h?(h.data&&(v!=null&&v.data)&&(h.data.items=[v.data,...((E=h==null?void 0:h.data)==null?void 0:E.items)||[]]),h):{data:{items:[]}}};return{mutation:f,submit:(h,v)=>new Promise((E,T)=>{f.mutate(h,{onSuccess(C){t==null||t.setQueriesData("*abac.WorkspaceTypeEntity",k=>g(k,C)),E(C)},onError(C){v==null||v.setErrors(Pn(C)),T(C)}})}),fnUpdater:g}}const X5=({data:e})=>{const{router:t,uniqueId:n,queryClient:r,locale:a,t:i}=$r({data:e}),o=Qee({query:{uniqueId:n}}),l=PRe({queryClient:r}),u=ARe({queryClient:r});return w.jsx(Bo,{postHook:l,getSingleHook:o,patchHook:u,onCancel:()=>{t.goBackOrDefault(`/${a}/workspace-types`)},onFinishUriResolver:(d,f)=>{var g;return`/${f}/workspace-type/${(g=d.data)==null?void 0:g.uniqueId}`},Form:RRe,onEditTitle:i.fb.editWorkspaceType,onCreateTitle:i.fb.newWorkspaceType,data:e})};function NRe(e){const{execFnOverride:t,queryClient:n,query:r}=e||{},{options:a,execFn:i}=R.useContext(rt),o=t?t(a):i?i(a):St(a);let u=`${"/workspace-type".substr(1)}?${new URLSearchParams(Gt(r)).toString()}`;const f=un(h=>o("DELETE",u,h)),g=(h,v)=>h;return{mutation:f,submit:(h,v)=>new Promise((E,T)=>{f.mutate(h,{onSuccess(C){n==null||n.setQueryData("*abac.WorkspaceTypeEntity",k=>g(k)),n==null||n.invalidateQueries("*abac.WorkspaceTypeEntity"),E(C)},onError(C){v==null||v.setErrors(Pn(C)),T(C)}})}),fnUpdater:g}}function Jee({queryOptions:e,query:t,queryClient:n,execFnOverride:r,unauthorized:a,optionFn:i}){var k,_,A;const{options:o,execFn:l}=R.useContext(rt),u=i?i(o):o,d=r?r(u):l?l(u):St(u);let g=`${"/workspace-types".substr(1)}?${qa.stringify(t)}`;const y=()=>d("GET",g),h=(k=u==null?void 0:u.headers)==null?void 0:k.authorization,v=h!="undefined"&&h!=null&&h!=null&&h!="null"&&!!h;let E=!0;!v&&!a&&(E=!1);const T=jn(["*abac.WorkspaceTypeEntity",u,t],y,{cacheTime:1e3,retry:!1,keepPreviousData:!0,enabled:E,...e||{}}),C=((A=(_=T.data)==null?void 0:_.data)==null?void 0:A.items)||[];return{query:T,items:C,keyExtractor:P=>P.uniqueId}}Jee.UKEY="*abac.WorkspaceTypeEntity";const MRe=e=>[{name:"uniqueId",title:e.table.uniqueId,width:200},{name:"title",title:e.wokspaces.title,width:200,getCellValue:t=>t.title},{name:"slug",slug:e.wokspaces.slug,width:200,getCellValue:t=>t.slug}],IRe=()=>{const e=At();return w.jsx(w.Fragment,{children:w.jsx(Uo,{columns:MRe(e),queryHook:Jee,uniqueIdHrefHandler:t=>Ji.Navigation.single(t),deleteHook:NRe})})},DRe=()=>{const e=At(),t=xr();return sr(),w.jsx(w.Fragment,{children:w.jsx(jo,{newEntityHandler:()=>{t.push(Ji.Navigation.create())},pageTitle:e.fbMenu.workspaceTypes,children:w.jsx(IRe,{})})})},$Re=()=>{var i;const e=xr(),t=At(),n=e.query.uniqueId;sr();const r=Qee({query:{uniqueId:n}});var a=(i=r.query.data)==null?void 0:i.data;return gh((a==null?void 0:a.title)||""),w.jsx(w.Fragment,{children:w.jsx(io,{editEntityHandler:()=>{e.push(Ji.Navigation.edit(n))},getSingleHook:r,children:w.jsx(oo,{entity:a,fields:[{label:t.wokspaces.slug,elem:a==null?void 0:a.slug}]})})})};function LRe(){return w.jsxs(w.Fragment,{children:[w.jsx(mt,{element:w.jsx(X5,{}),path:Ji.Navigation.Rcreate}),w.jsx(mt,{element:w.jsx(X5,{}),path:Ji.Navigation.Redit}),w.jsx(mt,{element:w.jsx($Re,{}),path:Ji.Navigation.Rsingle}),w.jsx(mt,{element:w.jsx(DRe,{}),path:Ji.Navigation.Rquery})]})}function FRe(e){let{queryClient:t,query:n,execFnOverride:r}=e||{};n=n||{};const{options:a,execFn:i}=R.useContext(rt),o=r?r(a):i?i(a):St(a);let u=`${"/workspace".substr(1)}?${new URLSearchParams(Gt(n)).toString()}`;const f=un(h=>o("POST",u,h)),g=(h,v)=>{var E;return h?(h.data&&(v!=null&&v.data)&&(h.data.items=[v.data,...((E=h==null?void 0:h.data)==null?void 0:E.items)||[]]),h):{data:{items:[]}}};return{mutation:f,submit:(h,v)=>new Promise((E,T)=>{f.mutate(h,{onSuccess(C){t==null||t.setQueryData("*abac.WorkspaceEntity",k=>g(k,C)),E(C)},onError(C){v==null||v.setErrors(Pn(C)),T(C)}})}),fnUpdater:g}}function Zee({queryOptions:e,execFnOverride:t,query:n,queryClient:r,unauthorized:a}){var T;const{options:i,execFn:o}=R.useContext(rt),l=t?t(i):o?o(i):St(i);let d=`${"/workspace/:uniqueId".substr(1)}?${new URLSearchParams(Gt(n)).toString()}`,f=!0;d=d.replace(":uniqueId",n[":uniqueId".replace(":","")]),n[":uniqueId".replace(":","")]===void 0&&(f=!1);const g=()=>l("GET",d),y=(T=i==null?void 0:i.headers)==null?void 0:T.authorization,h=y!="undefined"&&y!=null&&y!=null&&y!="null"&&!!y;let v=!0;return f?!h&&!a&&(v=!1):v=!1,{query:jn([i,n,"*abac.WorkspaceEntity"],g,{cacheTime:1001,retry:!1,keepPreviousData:!0,enabled:v,...e||{}})}}function jRe(e){let{queryClient:t,query:n,execFnOverride:r}=e||{};n=n||{};const{options:a,execFn:i}=R.useContext(rt),o=r?r(a):i?i(a):St(a);let u=`${"/workspace".substr(1)}?${new URLSearchParams(Gt(n)).toString()}`;const f=un(h=>o("PATCH",u,h)),g=(h,v)=>{var E;return h?(h.data&&(v!=null&&v.data)&&(h.data.items=[v.data,...((E=h==null?void 0:h.data)==null?void 0:E.items)||[]]),h):{data:{items:[]}}};return{mutation:f,submit:(h,v)=>new Promise((E,T)=>{f.mutate(h,{onSuccess(C){t==null||t.setQueriesData("*abac.WorkspaceEntity",k=>g(k,C)),E(C)},onError(C){v==null||v.setErrors(Pn(C)),T(C)}})}),fnUpdater:g}}const URe=({form:e,isEditing:t})=>{const{values:n,setFieldValue:r,errors:a}=e,i=At();return w.jsx(w.Fragment,{children:w.jsx(In,{value:n.name,autoFocus:!t,onChange:o=>r(yi.Fields.name,o,!1),errorMessage:a.name,label:i.wokspaces.workspaceName,hint:i.wokspaces.workspaceNameHint})})},Q5=({data:e})=>{const t=At(),{router:n,uniqueId:r,queryClient:a,locale:i}=$r({data:e}),o=Zee({query:{uniqueId:r}}),l=FRe({queryClient:a}),u=jRe({queryClient:a});return w.jsx(Bo,{postHook:l,getSingleHook:o,patchHook:u,onCancel:()=>{n.goBackOrDefault(yi.Navigation.query(void 0,i))},onFinishUriResolver:(d,f)=>{var g;return yi.Navigation.single((g=d.data)==null?void 0:g.uniqueId,f)},Form:URe,onEditTitle:t.wokspaces.editWorkspae,onCreateTitle:t.wokspaces.createNewWorkspace,data:e})},BRe=({row:e,uniqueIdHrefHandler:t,columns:n})=>{const r=At();return w.jsx(w.Fragment,{children:(e.children||[]).map(a=>w.jsxs("tr",{children:[w.jsx("td",{}),w.jsx("td",{}),n(r).map(i=>{let o=a.getCellValue?a.getCellValue(e):a[i.name];return i.name==="uniqueId"?w.jsx("td",{children:w.jsx(Pl,{href:t&&t(o),children:o})}):w.jsx("td",{children:o})})]}))})};function ete({queryOptions:e,query:t,queryClient:n,execFnOverride:r,unauthorized:a,optionFn:i}){var k,_,A;const{options:o,execFn:l}=R.useContext(rt),u=i?i(o):o,d=r?r(u):l?l(u):St(u);let g=`${"/cte-workspaces".substr(1)}?${qa.stringify(t)}`;const y=()=>d("GET",g),h=(k=u==null?void 0:u.headers)==null?void 0:k.authorization,v=h!="undefined"&&h!=null&&h!=null&&h!="null"&&!!h;let E=!0;!v&&!a&&(E=!1);const T=jn(["*abac.WorkspaceEntity",u,t],y,{cacheTime:1e3,retry:!1,keepPreviousData:!0,enabled:E,...e||{}}),C=((A=(_=T.data)==null?void 0:_.data)==null?void 0:A.items)||[];return{query:T,items:C,keyExtractor:P=>P.uniqueId}}ete.UKEY="*abac.WorkspaceEntity";const J5=e=>[{name:yi.Fields.uniqueId,title:e.table.uniqueId,width:100},{name:yi.Fields.name,title:e.wokspaces.name,width:200}],WRe=()=>{const e=At(),t=n=>yi.Navigation.single(n);return w.jsx(w.Fragment,{children:w.jsx(Uo,{columns:J5(e),queryHook:ete,onRecordsDeleted:({queryClient:n})=>{n.invalidateQueries("*fireback.UserRoleWorkspace"),n.invalidateQueries("*fireback.WorkspaceEntity")},RowDetail:n=>w.jsx(BRe,{...n,columns:J5,uniqueIdHref:!0,Handler:t}),uniqueIdHrefHandler:t})})},zRe=()=>{const e=At();return w.jsx(w.Fragment,{children:w.jsx(jo,{pageTitle:e.fbMenu.workspaces,newEntityHandler:({locale:t,router:n})=>{n.push(yi.Navigation.create())},children:w.jsx(WRe,{})})})},qRe=()=>{var i;const e=xr(),t=At(),n=e.query.uniqueId;sr();const r=Zee({query:{uniqueId:n}});var a=(i=r.query.data)==null?void 0:i.data;return gh((a==null?void 0:a.name)||""),w.jsx(w.Fragment,{children:w.jsx(io,{editEntityHandler:()=>{e.push(yi.Navigation.edit(n))},getSingleHook:r,children:w.jsx(oo,{entity:a,fields:[{label:t.wokspaces.name,elem:a==null?void 0:a.name}]})})})};function HRe(){return w.jsxs(w.Fragment,{children:[w.jsx(mt,{element:w.jsx(Q5,{}),path:yi.Navigation.Rcreate}),w.jsx(mt,{element:w.jsx(Q5,{}),path:yi.Navigation.Redit}),w.jsx(mt,{element:w.jsx(qRe,{}),path:yi.Navigation.Rsingle}),w.jsx(mt,{element:w.jsx(zRe,{}),path:yi.Navigation.Rquery})]})}const VRe={gsmProviders:{apiKey:"Api key",apiKeyHint:"Api key",archiveTitle:"Gsm providers",editGsmProvider:"Edit gsm provider",invokeBody:"Invoke body",invokeBodyHint:"Invoke body",invokeUrl:"Invoke url",invokeUrlHint:"Invoke url",mainSenderNumber:"Main sender number",mainSenderNumberHint:"Main sender number",newGsmProvider:"New gsm provider",type:"Type",typeHint:"Type"}},GRe={gsmProviders:{apiKey:"Api key",apiKeyHint:"Api key",archiveTitle:"Gsm providers",editGsmProvider:"Edit gsm provider",invokeBody:"Invoke body",invokeBodyHint:"Invoke body",invokeUrl:"Invoke url",invokeUrlHint:"Invoke url",mainSenderNumber:"Main sender number",mainSenderNumberHint:"Main sender number",newGsmProvider:"New gsm provider",type:"Type",typeHint:"Type"}},qE={...VRe,$pl:GRe},YRe=e=>[{name:"uniqueId",title:"uniqueId",width:200},{name:ca.Fields.apiKey,title:e.gsmProviders.apiKey,width:100},{name:ca.Fields.mainSenderNumber,title:e.gsmProviders.mainSenderNumber,width:100},{name:ca.Fields.type,title:e.gsmProviders.type,width:100},{name:ca.Fields.invokeUrl,title:e.gsmProviders.invokeUrl,width:100},{name:ca.Fields.invokeBody,title:e.gsmProviders.invokeBody,width:100}];function KRe(e){const{execFnOverride:t,queryClient:n,query:r}=e||{},{options:a,execFn:i}=R.useContext(rt),o=t?t(a):i?i(a):St(a);let u=`${"/gsm-provider".substr(1)}?${new URLSearchParams(Gt(r)).toString()}`;const f=un(h=>o("DELETE",u,h)),g=(h,v)=>h;return{mutation:f,submit:(h,v)=>new Promise((E,T)=>{f.mutate(h,{onSuccess(C){n==null||n.setQueryData("*abac.GsmProviderEntity",k=>g(k)),n==null||n.invalidateQueries("*abac.GsmProviderEntity"),E(C)},onError(C){v==null||v.setErrors(Pn(C)),T(C)}})}),fnUpdater:g}}const XRe=()=>{const e=Kt(qE);return w.jsx(w.Fragment,{children:w.jsx(Uo,{columns:YRe(e),queryHook:ij,uniqueIdHrefHandler:t=>ca.Navigation.single(t),deleteHook:KRe})})},QRe=()=>{const e=Kt(qE);return w.jsx(jo,{pageTitle:e.gsmProviders.archiveTitle,newEntityHandler:({locale:t,router:n})=>{n.push(ca.Navigation.create())},children:w.jsx(XRe,{})})},JRe=({form:e,isEditing:t})=>{const{options:n}=R.useContext(rt),{values:r,setValues:a,setFieldValue:i,errors:o}=e,l=zs([{uniqueId:"terminal",title:"Terminal"},{uniqueId:"url",title:"Url"}]),u=Kt(qE);return w.jsxs(w.Fragment,{children:[w.jsx(In,{value:r.apiKey,onChange:d=>i(ca.Fields.apiKey,d,!1),errorMessage:o.apiKey,label:u.gsmProviders.apiKey,hint:u.gsmProviders.apiKeyHint}),w.jsx(In,{value:r.mainSenderNumber,onChange:d=>i(ca.Fields.mainSenderNumber,d,!1),errorMessage:o.mainSenderNumber,label:u.gsmProviders.mainSenderNumber,hint:u.gsmProviders.mainSenderNumberHint}),w.jsx(da,{querySource:l,value:r.type,fnLabelFormat:d=>d.title,keyExtractor:d=>d.uniqueId,onChange:d=>i(ca.Fields.type,d.uniqueId,!1),errorMessage:o.type,label:u.gsmProviders.type,hint:u.gsmProviders.typeHint}),w.jsx(In,{value:r.invokeUrl,onChange:d=>i(ca.Fields.invokeUrl,d,!1),errorMessage:o.invokeUrl,label:u.gsmProviders.invokeUrl,hint:u.gsmProviders.invokeUrlHint}),w.jsx(In,{value:r.invokeBody,onChange:d=>i(ca.Fields.invokeBody,d,!1),errorMessage:o.invokeBody,label:u.gsmProviders.invokeBody,hint:u.gsmProviders.invokeBodyHint})]})};function tte({queryOptions:e,execFnOverride:t,query:n,queryClient:r,unauthorized:a}){var T;const{options:i,execFn:o}=R.useContext(rt),l=t?t(i):o?o(i):St(i);let d=`${"/gsm-provider/:uniqueId".substr(1)}?${new URLSearchParams(Gt(n)).toString()}`,f=!0;d=d.replace(":uniqueId",n[":uniqueId".replace(":","")]),n[":uniqueId".replace(":","")]===void 0&&(f=!1);const g=()=>l("GET",d),y=(T=i==null?void 0:i.headers)==null?void 0:T.authorization,h=y!="undefined"&&y!=null&&y!=null&&y!="null"&&!!y;let v=!0;return f?!h&&!a&&(v=!1):v=!1,{query:jn([i,n,"*abac.GsmProviderEntity"],g,{cacheTime:1001,retry:!1,keepPreviousData:!0,enabled:v,...e||{}})}}function ZRe(e){let{queryClient:t,query:n,execFnOverride:r}=e||{};n=n||{};const{options:a,execFn:i}=R.useContext(rt),o=r?r(a):i?i(a):St(a);let u=`${"/gsm-provider".substr(1)}?${new URLSearchParams(Gt(n)).toString()}`;const f=un(h=>o("POST",u,h)),g=(h,v)=>{var E;return h?(h.data&&(v!=null&&v.data)&&(h.data.items=[v.data,...((E=h==null?void 0:h.data)==null?void 0:E.items)||[]]),h):{data:{items:[]}}};return{mutation:f,submit:(h,v)=>new Promise((E,T)=>{f.mutate(h,{onSuccess(C){t==null||t.setQueryData("*abac.GsmProviderEntity",k=>g(k,C)),E(C)},onError(C){v==null||v.setErrors(Pn(C)),T(C)}})}),fnUpdater:g}}function ePe(e){let{queryClient:t,query:n,execFnOverride:r}=e||{};n=n||{};const{options:a,execFn:i}=R.useContext(rt),o=r?r(a):i?i(a):St(a);let u=`${"/gsm-provider".substr(1)}?${new URLSearchParams(Gt(n)).toString()}`;const f=un(h=>o("PATCH",u,h)),g=(h,v)=>{var E;return h?(h.data&&(v!=null&&v.data)&&(h.data.items=[v.data,...((E=h==null?void 0:h.data)==null?void 0:E.items)||[]]),h):{data:{items:[]}}};return{mutation:f,submit:(h,v)=>new Promise((E,T)=>{f.mutate(h,{onSuccess(C){t==null||t.setQueriesData("*abac.GsmProviderEntity",k=>g(k,C)),E(C)},onError(C){v==null||v.setErrors(Pn(C)),T(C)}})}),fnUpdater:g}}const Z5=({data:e})=>{const t=Kt(qE),{router:n,uniqueId:r,queryClient:a,locale:i}=$r({data:e}),o=tte({query:{uniqueId:r}}),l=ZRe({queryClient:a}),u=ePe({queryClient:a});return w.jsx(Bo,{postHook:l,patchHook:u,getSingleHook:o,onCancel:()=>{n.goBackOrDefault(ca.Navigation.query(void 0,i))},onFinishUriResolver:(d,f)=>{var g;return ca.Navigation.single((g=d.data)==null?void 0:g.uniqueId,f)},Form:JRe,onEditTitle:t.gsmProviders.editGsmProvider,onCreateTitle:t.gsmProviders.newGsmProvider,data:e})},tPe=()=>{var a;const{uniqueId:e}=$r({}),t=tte({query:{uniqueId:e}});var n=(a=t.query.data)==null?void 0:a.data;const r=Kt(qE);return w.jsx(w.Fragment,{children:w.jsx(io,{editEntityHandler:({locale:i,router:o})=>{o.push(ca.Navigation.edit(e))},getSingleHook:t,children:w.jsx(oo,{entity:n,fields:[{elem:n==null?void 0:n.apiKey,label:r.gsmProviders.apiKey},{elem:n==null?void 0:n.mainSenderNumber,label:r.gsmProviders.mainSenderNumber},{elem:n==null?void 0:n.invokeUrl,label:r.gsmProviders.invokeUrl},{elem:n==null?void 0:n.invokeBody,label:r.gsmProviders.invokeBody}]})})})};function nPe(){return w.jsxs(w.Fragment,{children:[w.jsx(mt,{element:w.jsx(Z5,{}),path:ca.Navigation.Rcreate}),w.jsx(mt,{element:w.jsx(tPe,{}),path:ca.Navigation.Rsingle}),w.jsx(mt,{element:w.jsx(Z5,{}),path:ca.Navigation.Redit}),w.jsx(mt,{element:w.jsx(QRe,{}),path:ca.Navigation.Rquery})]})}function rPe(){const e=p_e(),t=S_e(),n=j_e(),r=nPe(),a=Y_e(),i=iOe(),o=SRe(),l=ORe(),u=LRe(),d=HRe(),f=lRe(),g=$Oe();return w.jsxs(mt,{path:"manage",children:[e,t,g,n,a,i,o,r,l,u,d,f]})}const aPe=()=>w.jsxs("div",{children:[w.jsx("h1",{className:"mt-4",children:"Dashboard"}),w.jsx("p",{children:"Welcome to the dashboard. You can see what's going on here."})]}),oj=R.createContext({});function sj(e){const t=R.useRef(null);return t.current===null&&(t.current=e()),t.current}const lj=typeof window<"u",nte=lj?R.useLayoutEffect:R.useEffect,M_=R.createContext(null);function uj(e,t){e.indexOf(t)===-1&&e.push(t)}function cj(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}const zd=(e,t,n)=>n>t?t:n{};const qd={},rte=e=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e);function ate(e){return typeof e=="object"&&e!==null}const ite=e=>/^0[^.\s]+$/u.test(e);function fj(e){let t;return()=>(t===void 0&&(t=e()),t)}const Nl=e=>e,iPe=(e,t)=>n=>t(e(n)),HE=(...e)=>e.reduce(iPe),aE=(e,t,n)=>{const r=t-e;return r===0?1:(n-e)/r};class pj{constructor(){this.subscriptions=[]}add(t){return uj(this.subscriptions,t),()=>cj(this.subscriptions,t)}notify(t,n,r){const a=this.subscriptions.length;if(a)if(a===1)this.subscriptions[0](t,n,r);else for(let i=0;ie*1e3,Cc=e=>e/1e3;function ote(e,t){return t?e*(1e3/t):0}const ste=(e,t,n)=>(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e,oPe=1e-7,sPe=12;function lPe(e,t,n,r,a){let i,o,l=0;do o=t+(n-t)/2,i=ste(o,r,a)-e,i>0?n=o:t=o;while(Math.abs(i)>oPe&&++llPe(i,0,1,e,n);return i=>i===0||i===1?i:ste(a(i),t,r)}const lte=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,ute=e=>t=>1-e(1-t),cte=VE(.33,1.53,.69,.99),hj=ute(cte),dte=lte(hj),fte=e=>(e*=2)<1?.5*hj(e):.5*(2-Math.pow(2,-10*(e-1))),mj=e=>1-Math.sin(Math.acos(e)),pte=ute(mj),hte=lte(mj),uPe=VE(.42,0,1,1),cPe=VE(0,0,.58,1),mte=VE(.42,0,.58,1),dPe=e=>Array.isArray(e)&&typeof e[0]!="number",gte=e=>Array.isArray(e)&&typeof e[0]=="number",fPe={linear:Nl,easeIn:uPe,easeInOut:mte,easeOut:cPe,circIn:mj,circInOut:hte,circOut:pte,backIn:hj,backInOut:dte,backOut:cte,anticipate:fte},pPe=e=>typeof e=="string",eW=e=>{if(gte(e)){dj(e.length===4);const[t,n,r,a]=e;return VE(t,n,r,a)}else if(pPe(e))return fPe[e];return e},pk=["setup","read","resolveKeyframes","preUpdate","update","preRender","render","postRender"],tW={value:null};function hPe(e,t){let n=new Set,r=new Set,a=!1,i=!1;const o=new WeakSet;let l={delta:0,timestamp:0,isProcessing:!1},u=0;function d(g){o.has(g)&&(f.schedule(g),e()),u++,g(l)}const f={schedule:(g,y=!1,h=!1)=>{const E=h&&a?n:r;return y&&o.add(g),E.has(g)||E.add(g),g},cancel:g=>{r.delete(g),o.delete(g)},process:g=>{if(l=g,a){i=!0;return}a=!0,[n,r]=[r,n],n.forEach(d),t&&tW.value&&tW.value.frameloop[t].push(u),u=0,n.clear(),a=!1,i&&(i=!1,f.process(g))}};return f}const mPe=40;function vte(e,t){let n=!1,r=!0;const a={delta:0,timestamp:0,isProcessing:!1},i=()=>n=!0,o=pk.reduce((_,A)=>(_[A]=hPe(i,t?A:void 0),_),{}),{setup:l,read:u,resolveKeyframes:d,preUpdate:f,update:g,preRender:y,render:h,postRender:v}=o,E=()=>{const _=qd.useManualTiming?a.timestamp:performance.now();n=!1,qd.useManualTiming||(a.delta=r?1e3/60:Math.max(Math.min(_-a.timestamp,mPe),1)),a.timestamp=_,a.isProcessing=!0,l.process(a),u.process(a),d.process(a),f.process(a),g.process(a),y.process(a),h.process(a),v.process(a),a.isProcessing=!1,n&&t&&(r=!1,e(E))},T=()=>{n=!0,r=!0,a.isProcessing||e(E)};return{schedule:pk.reduce((_,A)=>{const P=o[A];return _[A]=(N,I=!1,L=!1)=>(n||T(),P.schedule(N,I,L)),_},{}),cancel:_=>{for(let A=0;A(Vk===void 0&&os.set(Fi.isProcessing||qd.useManualTiming?Fi.timestamp:performance.now()),Vk),set:e=>{Vk=e,queueMicrotask(gPe)}},yte=e=>t=>typeof t=="string"&&t.startsWith(e),gj=yte("--"),vPe=yte("var(--"),vj=e=>vPe(e)?yPe.test(e.split("/*")[0].trim()):!1,yPe=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu,_0={test:e=>typeof e=="number",parse:parseFloat,transform:e=>e},iE={..._0,transform:e=>zd(0,1,e)},hk={..._0,default:1},OS=e=>Math.round(e*1e5)/1e5,yj=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function bPe(e){return e==null}const wPe=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,bj=(e,t)=>n=>!!(typeof n=="string"&&wPe.test(n)&&n.startsWith(e)||t&&!bPe(n)&&Object.prototype.hasOwnProperty.call(n,t)),bte=(e,t,n)=>r=>{if(typeof r!="string")return r;const[a,i,o,l]=r.match(yj);return{[e]:parseFloat(a),[t]:parseFloat(i),[n]:parseFloat(o),alpha:l!==void 0?parseFloat(l):1}},SPe=e=>zd(0,255,e),cA={..._0,transform:e=>Math.round(SPe(e))},uv={test:bj("rgb","red"),parse:bte("red","green","blue"),transform:({red:e,green:t,blue:n,alpha:r=1})=>"rgba("+cA.transform(e)+", "+cA.transform(t)+", "+cA.transform(n)+", "+OS(iE.transform(r))+")"};function EPe(e){let t="",n="",r="",a="";return e.length>5?(t=e.substring(1,3),n=e.substring(3,5),r=e.substring(5,7),a=e.substring(7,9)):(t=e.substring(1,2),n=e.substring(2,3),r=e.substring(3,4),a=e.substring(4,5),t+=t,n+=n,r+=r,a+=a),{red:parseInt(t,16),green:parseInt(n,16),blue:parseInt(r,16),alpha:a?parseInt(a,16)/255:1}}const i3={test:bj("#"),parse:EPe,transform:uv.transform},GE=e=>({test:t=>typeof t=="string"&&t.endsWith(e)&&t.split(" ").length===1,parse:parseFloat,transform:t=>`${t}${e}`}),Hp=GE("deg"),kc=GE("%"),mn=GE("px"),TPe=GE("vh"),CPe=GE("vw"),nW={...kc,parse:e=>kc.parse(e)/100,transform:e=>kc.transform(e*100)},Db={test:bj("hsl","hue"),parse:bte("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:n,alpha:r=1})=>"hsla("+Math.round(e)+", "+kc.transform(OS(t))+", "+kc.transform(OS(n))+", "+OS(iE.transform(r))+")"},Ga={test:e=>uv.test(e)||i3.test(e)||Db.test(e),parse:e=>uv.test(e)?uv.parse(e):Db.test(e)?Db.parse(e):i3.parse(e),transform:e=>typeof e=="string"?e:e.hasOwnProperty("red")?uv.transform(e):Db.transform(e),getAnimatableNone:e=>{const t=Ga.parse(e);return t.alpha=0,Ga.transform(t)}},kPe=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function xPe(e){var t,n;return isNaN(e)&&typeof e=="string"&&(((t=e.match(yj))==null?void 0:t.length)||0)+(((n=e.match(kPe))==null?void 0:n.length)||0)>0}const wte="number",Ste="color",_Pe="var",OPe="var(",rW="${}",RPe=/var\s*\(\s*--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)|#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\)|-?(?:\d+(?:\.\d+)?|\.\d+)/giu;function oE(e){const t=e.toString(),n=[],r={color:[],number:[],var:[]},a=[];let i=0;const l=t.replace(RPe,u=>(Ga.test(u)?(r.color.push(i),a.push(Ste),n.push(Ga.parse(u))):u.startsWith(OPe)?(r.var.push(i),a.push(_Pe),n.push(u)):(r.number.push(i),a.push(wte),n.push(parseFloat(u))),++i,rW)).split(rW);return{values:n,split:l,indexes:r,types:a}}function Ete(e){return oE(e).values}function Tte(e){const{split:t,types:n}=oE(e),r=t.length;return a=>{let i="";for(let o=0;otypeof e=="number"?0:Ga.test(e)?Ga.getAnimatableNone(e):e;function APe(e){const t=Ete(e);return Tte(e)(t.map(PPe))}const uh={test:xPe,parse:Ete,createTransformer:Tte,getAnimatableNone:APe};function dA(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+(t-e)*6*n:n<1/2?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function NPe({hue:e,saturation:t,lightness:n,alpha:r}){e/=360,t/=100,n/=100;let a=0,i=0,o=0;if(!t)a=i=o=n;else{const l=n<.5?n*(1+t):n+t-n*t,u=2*n-l;a=dA(u,l,e+1/3),i=dA(u,l,e),o=dA(u,l,e-1/3)}return{red:Math.round(a*255),green:Math.round(i*255),blue:Math.round(o*255),alpha:r}}function Lx(e,t){return n=>n>0?t:e}const fa=(e,t,n)=>e+(t-e)*n,fA=(e,t,n)=>{const r=e*e,a=n*(t*t-r)+r;return a<0?0:Math.sqrt(a)},MPe=[i3,uv,Db],IPe=e=>MPe.find(t=>t.test(e));function aW(e){const t=IPe(e);if(!t)return!1;let n=t.parse(e);return t===Db&&(n=NPe(n)),n}const iW=(e,t)=>{const n=aW(e),r=aW(t);if(!n||!r)return Lx(e,t);const a={...n};return i=>(a.red=fA(n.red,r.red,i),a.green=fA(n.green,r.green,i),a.blue=fA(n.blue,r.blue,i),a.alpha=fa(n.alpha,r.alpha,i),uv.transform(a))},o3=new Set(["none","hidden"]);function DPe(e,t){return o3.has(e)?n=>n<=0?e:t:n=>n>=1?t:e}function $Pe(e,t){return n=>fa(e,t,n)}function wj(e){return typeof e=="number"?$Pe:typeof e=="string"?vj(e)?Lx:Ga.test(e)?iW:jPe:Array.isArray(e)?Cte:typeof e=="object"?Ga.test(e)?iW:LPe:Lx}function Cte(e,t){const n=[...e],r=n.length,a=e.map((i,o)=>wj(i)(i,t[o]));return i=>{for(let o=0;o{for(const i in r)n[i]=r[i](a);return n}}function FPe(e,t){const n=[],r={color:0,var:0,number:0};for(let a=0;a{const n=uh.createTransformer(t),r=oE(e),a=oE(t);return r.indexes.var.length===a.indexes.var.length&&r.indexes.color.length===a.indexes.color.length&&r.indexes.number.length>=a.indexes.number.length?o3.has(e)&&!a.values.length||o3.has(t)&&!r.values.length?DPe(e,t):HE(Cte(FPe(r,a),a.values),n):Lx(e,t)};function kte(e,t,n){return typeof e=="number"&&typeof t=="number"&&typeof n=="number"?fa(e,t,n):wj(e)(e,t)}const UPe=e=>{const t=({timestamp:n})=>e(n);return{start:(n=!0)=>ha.update(t,n),stop:()=>lh(t),now:()=>Fi.isProcessing?Fi.timestamp:os.now()}},xte=(e,t,n=10)=>{let r="";const a=Math.max(Math.round(t/n),2);for(let i=0;i=Fx?1/0:t}function BPe(e,t=100,n){const r=n({...e,keyframes:[0,t]}),a=Math.min(Sj(r),Fx);return{type:"keyframes",ease:i=>r.next(a*i).value/t,duration:Cc(a)}}const WPe=5;function _te(e,t,n){const r=Math.max(t-WPe,0);return ote(n-e(r),t-r)}const Sa={stiffness:100,damping:10,mass:1,velocity:0,duration:800,bounce:.3,visualDuration:.3,restSpeed:{granular:.01,default:2},restDelta:{granular:.005,default:.5},minDuration:.01,maxDuration:10,minDamping:.05,maxDamping:1},pA=.001;function zPe({duration:e=Sa.duration,bounce:t=Sa.bounce,velocity:n=Sa.velocity,mass:r=Sa.mass}){let a,i,o=1-t;o=zd(Sa.minDamping,Sa.maxDamping,o),e=zd(Sa.minDuration,Sa.maxDuration,Cc(e)),o<1?(a=d=>{const f=d*o,g=f*e,y=f-n,h=s3(d,o),v=Math.exp(-g);return pA-y/h*v},i=d=>{const g=d*o*e,y=g*n+n,h=Math.pow(o,2)*Math.pow(d,2)*e,v=Math.exp(-g),E=s3(Math.pow(d,2),o);return(-a(d)+pA>0?-1:1)*((y-h)*v)/E}):(a=d=>{const f=Math.exp(-d*e),g=(d-n)*e+1;return-pA+f*g},i=d=>{const f=Math.exp(-d*e),g=(n-d)*(e*e);return f*g});const l=5/e,u=HPe(a,i,l);if(e=Tc(e),isNaN(u))return{stiffness:Sa.stiffness,damping:Sa.damping,duration:e};{const d=Math.pow(u,2)*r;return{stiffness:d,damping:o*2*Math.sqrt(r*d),duration:e}}}const qPe=12;function HPe(e,t,n){let r=n;for(let a=1;ae[n]!==void 0)}function YPe(e){let t={velocity:Sa.velocity,stiffness:Sa.stiffness,damping:Sa.damping,mass:Sa.mass,isResolvedFromDuration:!1,...e};if(!oW(e,GPe)&&oW(e,VPe))if(e.visualDuration){const n=e.visualDuration,r=2*Math.PI/(n*1.2),a=r*r,i=2*zd(.05,1,1-(e.bounce||0))*Math.sqrt(a);t={...t,mass:Sa.mass,stiffness:a,damping:i}}else{const n=zPe(e);t={...t,...n,mass:Sa.mass},t.isResolvedFromDuration=!0}return t}function jx(e=Sa.visualDuration,t=Sa.bounce){const n=typeof e!="object"?{visualDuration:e,keyframes:[0,1],bounce:t}:e;let{restSpeed:r,restDelta:a}=n;const i=n.keyframes[0],o=n.keyframes[n.keyframes.length-1],l={done:!1,value:i},{stiffness:u,damping:d,mass:f,duration:g,velocity:y,isResolvedFromDuration:h}=YPe({...n,velocity:-Cc(n.velocity||0)}),v=y||0,E=d/(2*Math.sqrt(u*f)),T=o-i,C=Cc(Math.sqrt(u/f)),k=Math.abs(T)<5;r||(r=k?Sa.restSpeed.granular:Sa.restSpeed.default),a||(a=k?Sa.restDelta.granular:Sa.restDelta.default);let _;if(E<1){const P=s3(C,E);_=N=>{const I=Math.exp(-E*C*N);return o-I*((v+E*C*T)/P*Math.sin(P*N)+T*Math.cos(P*N))}}else if(E===1)_=P=>o-Math.exp(-C*P)*(T+(v+C*T)*P);else{const P=C*Math.sqrt(E*E-1);_=N=>{const I=Math.exp(-E*C*N),L=Math.min(P*N,300);return o-I*((v+E*C*T)*Math.sinh(L)+P*T*Math.cosh(L))/P}}const A={calculatedDuration:h&&g||null,next:P=>{const N=_(P);if(h)l.done=P>=g;else{let I=P===0?v:0;E<1&&(I=P===0?Tc(v):_te(_,P,N));const L=Math.abs(I)<=r,j=Math.abs(o-N)<=a;l.done=L&&j}return l.value=l.done?o:N,l},toString:()=>{const P=Math.min(Sj(A),Fx),N=xte(I=>A.next(P*I).value,P,30);return P+"ms "+N},toTransition:()=>{}};return A}jx.applyToOptions=e=>{const t=BPe(e,100,jx);return e.ease=t.ease,e.duration=Tc(t.duration),e.type="keyframes",e};function l3({keyframes:e,velocity:t=0,power:n=.8,timeConstant:r=325,bounceDamping:a=10,bounceStiffness:i=500,modifyTarget:o,min:l,max:u,restDelta:d=.5,restSpeed:f}){const g=e[0],y={done:!1,value:g},h=L=>l!==void 0&&Lu,v=L=>l===void 0?u:u===void 0||Math.abs(l-L)-E*Math.exp(-L/r),_=L=>C+k(L),A=L=>{const j=k(L),z=_(L);y.done=Math.abs(j)<=d,y.value=y.done?C:z};let P,N;const I=L=>{h(y.value)&&(P=L,N=jx({keyframes:[y.value,v(y.value)],velocity:_te(_,L,y.value),damping:a,stiffness:i,restDelta:d,restSpeed:f}))};return I(0),{calculatedDuration:null,next:L=>{let j=!1;return!N&&P===void 0&&(j=!0,A(L),I(L)),P!==void 0&&L>=P?N.next(L-P):(!j&&A(L),y)}}}function KPe(e,t,n){const r=[],a=n||qd.mix||kte,i=e.length-1;for(let o=0;ot[0];if(i===2&&t[0]===t[1])return()=>t[1];const o=e[0]===e[1];e[0]>e[i-1]&&(e=[...e].reverse(),t=[...t].reverse());const l=KPe(t,r,a),u=l.length,d=f=>{if(o&&f1)for(;gd(zd(e[0],e[i-1],f)):d}function QPe(e,t){const n=e[e.length-1];for(let r=1;r<=t;r++){const a=aE(0,t,r);e.push(fa(n,1,a))}}function JPe(e){const t=[0];return QPe(t,e.length-1),t}function ZPe(e,t){return e.map(n=>n*t)}function eAe(e,t){return e.map(()=>t||mte).splice(0,e.length-1)}function RS({duration:e=300,keyframes:t,times:n,ease:r="easeInOut"}){const a=dPe(r)?r.map(eW):eW(r),i={done:!1,value:t[0]},o=ZPe(n&&n.length===t.length?n:JPe(t),e),l=XPe(o,t,{ease:Array.isArray(a)?a:eAe(t,a)});return{calculatedDuration:e,next:u=>(i.value=l(u),i.done=u>=e,i)}}const tAe=e=>e!==null;function Ej(e,{repeat:t,repeatType:n="loop"},r,a=1){const i=e.filter(tAe),l=a<0||t&&n!=="loop"&&t%2===1?0:i.length-1;return!l||r===void 0?i[l]:r}const nAe={decay:l3,inertia:l3,tween:RS,keyframes:RS,spring:jx};function Ote(e){typeof e.type=="string"&&(e.type=nAe[e.type])}class Tj{constructor(){this.updateFinished()}get finished(){return this._finished}updateFinished(){this._finished=new Promise(t=>{this.resolve=t})}notifyFinished(){this.resolve()}then(t,n){return this.finished.then(t,n)}}const rAe=e=>e/100;class Cj extends Tj{constructor(t){super(),this.state="idle",this.startTime=null,this.isStopped=!1,this.currentTime=0,this.holdTime=null,this.playbackSpeed=1,this.stop=()=>{var r,a;const{motionValue:n}=this.options;n&&n.updatedAt!==os.now()&&this.tick(os.now()),this.isStopped=!0,this.state!=="idle"&&(this.teardown(),(a=(r=this.options).onStop)==null||a.call(r))},this.options=t,this.initAnimation(),this.play(),t.autoplay===!1&&this.pause()}initAnimation(){const{options:t}=this;Ote(t);const{type:n=RS,repeat:r=0,repeatDelay:a=0,repeatType:i,velocity:o=0}=t;let{keyframes:l}=t;const u=n||RS;u!==RS&&typeof l[0]!="number"&&(this.mixKeyframes=HE(rAe,kte(l[0],l[1])),l=[0,100]);const d=u({...t,keyframes:l});i==="mirror"&&(this.mirroredGenerator=u({...t,keyframes:[...l].reverse(),velocity:-o})),d.calculatedDuration===null&&(d.calculatedDuration=Sj(d));const{calculatedDuration:f}=d;this.calculatedDuration=f,this.resolvedDuration=f+a,this.totalDuration=this.resolvedDuration*(r+1)-a,this.generator=d}updateTime(t){const n=Math.round(t-this.startTime)*this.playbackSpeed;this.holdTime!==null?this.currentTime=this.holdTime:this.currentTime=n}tick(t,n=!1){const{generator:r,totalDuration:a,mixKeyframes:i,mirroredGenerator:o,resolvedDuration:l,calculatedDuration:u}=this;if(this.startTime===null)return r.next(0);const{delay:d=0,keyframes:f,repeat:g,repeatType:y,repeatDelay:h,type:v,onUpdate:E,finalKeyframe:T}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,t):this.speed<0&&(this.startTime=Math.min(t-a/this.speed,this.startTime)),n?this.currentTime=t:this.updateTime(t);const C=this.currentTime-d*(this.playbackSpeed>=0?1:-1),k=this.playbackSpeed>=0?C<0:C>a;this.currentTime=Math.max(C,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=a);let _=this.currentTime,A=r;if(g){const L=Math.min(this.currentTime,a)/l;let j=Math.floor(L),z=L%1;!z&&L>=1&&(z=1),z===1&&j--,j=Math.min(j,g+1),!!(j%2)&&(y==="reverse"?(z=1-z,h&&(z-=h/l)):y==="mirror"&&(A=o)),_=zd(0,1,z)*l}const P=k?{done:!1,value:f[0]}:A.next(_);i&&(P.value=i(P.value));let{done:N}=P;!k&&u!==null&&(N=this.playbackSpeed>=0?this.currentTime>=a:this.currentTime<=0);const I=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&N);return I&&v!==l3&&(P.value=Ej(f,this.options,T,this.speed)),E&&E(P.value),I&&this.finish(),P}then(t,n){return this.finished.then(t,n)}get duration(){return Cc(this.calculatedDuration)}get time(){return Cc(this.currentTime)}set time(t){var n;t=Tc(t),this.currentTime=t,this.startTime===null||this.holdTime!==null||this.playbackSpeed===0?this.holdTime=t:this.driver&&(this.startTime=this.driver.now()-t/this.playbackSpeed),(n=this.driver)==null||n.start(!1)}get speed(){return this.playbackSpeed}set speed(t){this.updateTime(os.now());const n=this.playbackSpeed!==t;this.playbackSpeed=t,n&&(this.time=Cc(this.currentTime))}play(){var a,i;if(this.isStopped)return;const{driver:t=UPe,startTime:n}=this.options;this.driver||(this.driver=t(o=>this.tick(o))),(i=(a=this.options).onPlay)==null||i.call(a);const r=this.driver.now();this.state==="finished"?(this.updateFinished(),this.startTime=r):this.holdTime!==null?this.startTime=r-this.holdTime:this.startTime||(this.startTime=n??r),this.state==="finished"&&this.speed<0&&(this.startTime+=this.calculatedDuration),this.holdTime=null,this.state="running",this.driver.start()}pause(){this.state="paused",this.updateTime(os.now()),this.holdTime=this.currentTime}complete(){this.state!=="running"&&this.play(),this.state="finished",this.holdTime=null}finish(){var t,n;this.notifyFinished(),this.teardown(),this.state="finished",(n=(t=this.options).onComplete)==null||n.call(t)}cancel(){var t,n;this.holdTime=null,this.startTime=0,this.tick(0),this.teardown(),(n=(t=this.options).onCancel)==null||n.call(t)}teardown(){this.state="idle",this.stopDriver(),this.startTime=this.holdTime=null}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(t){return this.startTime=0,this.tick(t,!0)}attachTimeline(t){var n;return this.options.allowFlatten&&(this.options.type="keyframes",this.options.ease="linear",this.initAnimation()),(n=this.driver)==null||n.stop(),t.observe(this)}}function aAe(e){for(let t=1;te*180/Math.PI,u3=e=>{const t=cv(Math.atan2(e[1],e[0]));return c3(t)},iAe={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:e=>(Math.abs(e[0])+Math.abs(e[3]))/2,rotate:u3,rotateZ:u3,skewX:e=>cv(Math.atan(e[1])),skewY:e=>cv(Math.atan(e[2])),skew:e=>(Math.abs(e[1])+Math.abs(e[2]))/2},c3=e=>(e=e%360,e<0&&(e+=360),e),sW=u3,lW=e=>Math.sqrt(e[0]*e[0]+e[1]*e[1]),uW=e=>Math.sqrt(e[4]*e[4]+e[5]*e[5]),oAe={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:lW,scaleY:uW,scale:e=>(lW(e)+uW(e))/2,rotateX:e=>c3(cv(Math.atan2(e[6],e[5]))),rotateY:e=>c3(cv(Math.atan2(-e[2],e[0]))),rotateZ:sW,rotate:sW,skewX:e=>cv(Math.atan(e[4])),skewY:e=>cv(Math.atan(e[1])),skew:e=>(Math.abs(e[1])+Math.abs(e[4]))/2};function d3(e){return e.includes("scale")?1:0}function f3(e,t){if(!e||e==="none")return d3(t);const n=e.match(/^matrix3d\(([-\d.e\s,]+)\)$/u);let r,a;if(n)r=oAe,a=n;else{const l=e.match(/^matrix\(([-\d.e\s,]+)\)$/u);r=iAe,a=l}if(!a)return d3(t);const i=r[t],o=a[1].split(",").map(lAe);return typeof i=="function"?i(o):o[i]}const sAe=(e,t)=>{const{transform:n="none"}=getComputedStyle(e);return f3(n,t)};function lAe(e){return parseFloat(e.trim())}const O0=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],R0=new Set(O0),cW=e=>e===_0||e===mn,uAe=new Set(["x","y","z"]),cAe=O0.filter(e=>!uAe.has(e));function dAe(e){const t=[];return cAe.forEach(n=>{const r=e.getValue(n);r!==void 0&&(t.push([n,r.get()]),r.set(n.startsWith("scale")?1:0))}),t}const Ov={width:({x:e},{paddingLeft:t="0",paddingRight:n="0"})=>e.max-e.min-parseFloat(t)-parseFloat(n),height:({y:e},{paddingTop:t="0",paddingBottom:n="0"})=>e.max-e.min-parseFloat(t)-parseFloat(n),top:(e,{top:t})=>parseFloat(t),left:(e,{left:t})=>parseFloat(t),bottom:({y:e},{top:t})=>parseFloat(t)+(e.max-e.min),right:({x:e},{left:t})=>parseFloat(t)+(e.max-e.min),x:(e,{transform:t})=>f3(t,"x"),y:(e,{transform:t})=>f3(t,"y")};Ov.translateX=Ov.x;Ov.translateY=Ov.y;const Rv=new Set;let p3=!1,h3=!1,m3=!1;function Rte(){if(h3){const e=Array.from(Rv).filter(r=>r.needsMeasurement),t=new Set(e.map(r=>r.element)),n=new Map;t.forEach(r=>{const a=dAe(r);a.length&&(n.set(r,a),r.render())}),e.forEach(r=>r.measureInitialState()),t.forEach(r=>{r.render();const a=n.get(r);a&&a.forEach(([i,o])=>{var l;(l=r.getValue(i))==null||l.set(o)})}),e.forEach(r=>r.measureEndState()),e.forEach(r=>{r.suspendedScrollY!==void 0&&window.scrollTo(0,r.suspendedScrollY)})}h3=!1,p3=!1,Rv.forEach(e=>e.complete(m3)),Rv.clear()}function Pte(){Rv.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(h3=!0)})}function fAe(){m3=!0,Pte(),Rte(),m3=!1}class kj{constructor(t,n,r,a,i,o=!1){this.state="pending",this.isAsync=!1,this.needsMeasurement=!1,this.unresolvedKeyframes=[...t],this.onComplete=n,this.name=r,this.motionValue=a,this.element=i,this.isAsync=o}scheduleResolve(){this.state="scheduled",this.isAsync?(Rv.add(this),p3||(p3=!0,ha.read(Pte),ha.resolveKeyframes(Rte))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:t,name:n,element:r,motionValue:a}=this;if(t[0]===null){const i=a==null?void 0:a.get(),o=t[t.length-1];if(i!==void 0)t[0]=i;else if(r&&n){const l=r.readValue(n,o);l!=null&&(t[0]=l)}t[0]===void 0&&(t[0]=o),a&&i===void 0&&a.set(t[0])}aAe(t)}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(t=!1){this.state="complete",this.onComplete(this.unresolvedKeyframes,this.finalKeyframe,t),Rv.delete(this)}cancel(){this.state==="scheduled"&&(Rv.delete(this),this.state="pending")}resume(){this.state==="pending"&&this.scheduleResolve()}}const pAe=e=>e.startsWith("--");function hAe(e,t,n){pAe(t)?e.style.setProperty(t,n):e.style[t]=n}const mAe=fj(()=>window.ScrollTimeline!==void 0),gAe={};function vAe(e,t){const n=fj(e);return()=>gAe[t]??n()}const Ate=vAe(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch{return!1}return!0},"linearEasing"),vS=([e,t,n,r])=>`cubic-bezier(${e}, ${t}, ${n}, ${r})`,dW={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:vS([0,.65,.55,1]),circOut:vS([.55,0,1,.45]),backIn:vS([.31,.01,.66,-.59]),backOut:vS([.33,1.53,.69,.99])};function Nte(e,t){if(e)return typeof e=="function"?Ate()?xte(e,t):"ease-out":gte(e)?vS(e):Array.isArray(e)?e.map(n=>Nte(n,t)||dW.easeOut):dW[e]}function yAe(e,t,n,{delay:r=0,duration:a=300,repeat:i=0,repeatType:o="loop",ease:l="easeOut",times:u}={},d=void 0){const f={[t]:n};u&&(f.offset=u);const g=Nte(l,a);Array.isArray(g)&&(f.easing=g);const y={delay:r,duration:a,easing:Array.isArray(g)?"linear":g,fill:"both",iterations:i+1,direction:o==="reverse"?"alternate":"normal"};return d&&(y.pseudoElement=d),e.animate(f,y)}function Mte(e){return typeof e=="function"&&"applyToOptions"in e}function bAe({type:e,...t}){return Mte(e)&&Ate()?e.applyToOptions(t):(t.duration??(t.duration=300),t.ease??(t.ease="easeOut"),t)}class wAe extends Tj{constructor(t){if(super(),this.finishedTime=null,this.isStopped=!1,!t)return;const{element:n,name:r,keyframes:a,pseudoElement:i,allowFlatten:o=!1,finalKeyframe:l,onComplete:u}=t;this.isPseudoElement=!!i,this.allowFlatten=o,this.options=t,dj(typeof t.type!="string");const d=bAe(t);this.animation=yAe(n,r,a,d,i),d.autoplay===!1&&this.animation.pause(),this.animation.onfinish=()=>{if(this.finishedTime=this.time,!i){const f=Ej(a,this.options,l,this.speed);this.updateMotionValue?this.updateMotionValue(f):hAe(n,r,f),this.animation.cancel()}u==null||u(),this.notifyFinished()}}play(){this.isStopped||(this.animation.play(),this.state==="finished"&&this.updateFinished())}pause(){this.animation.pause()}complete(){var t,n;(n=(t=this.animation).finish)==null||n.call(t)}cancel(){try{this.animation.cancel()}catch{}}stop(){if(this.isStopped)return;this.isStopped=!0;const{state:t}=this;t==="idle"||t==="finished"||(this.updateMotionValue?this.updateMotionValue():this.commitStyles(),this.isPseudoElement||this.cancel())}commitStyles(){var t,n;this.isPseudoElement||(n=(t=this.animation).commitStyles)==null||n.call(t)}get duration(){var n,r;const t=((r=(n=this.animation.effect)==null?void 0:n.getComputedTiming)==null?void 0:r.call(n).duration)||0;return Cc(Number(t))}get time(){return Cc(Number(this.animation.currentTime)||0)}set time(t){this.finishedTime=null,this.animation.currentTime=Tc(t)}get speed(){return this.animation.playbackRate}set speed(t){t<0&&(this.finishedTime=null),this.animation.playbackRate=t}get state(){return this.finishedTime!==null?"finished":this.animation.playState}get startTime(){return Number(this.animation.startTime)}set startTime(t){this.animation.startTime=t}attachTimeline({timeline:t,observe:n}){var r;return this.allowFlatten&&((r=this.animation.effect)==null||r.updateTiming({easing:"linear"})),this.animation.onfinish=null,t&&mAe()?(this.animation.timeline=t,Nl):n(this)}}const Ite={anticipate:fte,backInOut:dte,circInOut:hte};function SAe(e){return e in Ite}function EAe(e){typeof e.ease=="string"&&SAe(e.ease)&&(e.ease=Ite[e.ease])}const fW=10;class TAe extends wAe{constructor(t){EAe(t),Ote(t),super(t),t.startTime&&(this.startTime=t.startTime),this.options=t}updateMotionValue(t){const{motionValue:n,onUpdate:r,onComplete:a,element:i,...o}=this.options;if(!n)return;if(t!==void 0){n.set(t);return}const l=new Cj({...o,autoplay:!1}),u=Tc(this.finishedTime??this.time);n.setWithVelocity(l.sample(u-fW).value,l.sample(u).value,fW),l.stop()}}const pW=(e,t)=>t==="zIndex"?!1:!!(typeof e=="number"||Array.isArray(e)||typeof e=="string"&&(uh.test(e)||e==="0")&&!e.startsWith("url("));function CAe(e){const t=e[0];if(e.length===1)return!0;for(let n=0;nObject.hasOwnProperty.call(Element.prototype,"animate"));function OAe(e){var d;const{motionValue:t,name:n,repeatDelay:r,repeatType:a,damping:i,type:o}=e;if(!xj((d=t==null?void 0:t.owner)==null?void 0:d.current))return!1;const{onUpdate:l,transformTemplate:u}=t.owner.getProps();return _Ae()&&n&&xAe.has(n)&&(n!=="transform"||!u)&&!l&&!r&&a!=="mirror"&&i!==0&&o!=="inertia"}const RAe=40;class PAe extends Tj{constructor({autoplay:t=!0,delay:n=0,type:r="keyframes",repeat:a=0,repeatDelay:i=0,repeatType:o="loop",keyframes:l,name:u,motionValue:d,element:f,...g}){var v;super(),this.stop=()=>{var E,T;this._animation&&(this._animation.stop(),(E=this.stopTimeline)==null||E.call(this)),(T=this.keyframeResolver)==null||T.cancel()},this.createdAt=os.now();const y={autoplay:t,delay:n,type:r,repeat:a,repeatDelay:i,repeatType:o,name:u,motionValue:d,element:f,...g},h=(f==null?void 0:f.KeyframeResolver)||kj;this.keyframeResolver=new h(l,(E,T,C)=>this.onKeyframesResolved(E,T,y,!C),u,d,f),(v=this.keyframeResolver)==null||v.scheduleResolve()}onKeyframesResolved(t,n,r,a){this.keyframeResolver=void 0;const{name:i,type:o,velocity:l,delay:u,isHandoff:d,onUpdate:f}=r;this.resolvedAt=os.now(),kAe(t,i,o,l)||((qd.instantAnimations||!u)&&(f==null||f(Ej(t,r,n))),t[0]=t[t.length-1],r.duration=0,r.repeat=0);const y={startTime:a?this.resolvedAt?this.resolvedAt-this.createdAt>RAe?this.resolvedAt:this.createdAt:this.createdAt:void 0,finalKeyframe:n,...r,keyframes:t},h=!d&&OAe(y)?new TAe({...y,element:y.motionValue.owner.current}):new Cj(y);h.finished.then(()=>this.notifyFinished()).catch(Nl),this.pendingTimeline&&(this.stopTimeline=h.attachTimeline(this.pendingTimeline),this.pendingTimeline=void 0),this._animation=h}get finished(){return this._animation?this.animation.finished:this._finished}then(t,n){return this.finished.finally(t).then(()=>{})}get animation(){var t;return this._animation||((t=this.keyframeResolver)==null||t.resume(),fAe()),this._animation}get duration(){return this.animation.duration}get time(){return this.animation.time}set time(t){this.animation.time=t}get speed(){return this.animation.speed}get state(){return this.animation.state}set speed(t){this.animation.speed=t}get startTime(){return this.animation.startTime}attachTimeline(t){return this._animation?this.stopTimeline=this.animation.attachTimeline(t):this.pendingTimeline=t,()=>this.stop()}play(){this.animation.play()}pause(){this.animation.pause()}complete(){this.animation.complete()}cancel(){var t;this._animation&&this.animation.cancel(),(t=this.keyframeResolver)==null||t.cancel()}}const AAe=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function NAe(e){const t=AAe.exec(e);if(!t)return[,];const[,n,r,a]=t;return[`--${n??r}`,a]}function Dte(e,t,n=1){const[r,a]=NAe(e);if(!r)return;const i=window.getComputedStyle(t).getPropertyValue(r);if(i){const o=i.trim();return rte(o)?parseFloat(o):o}return vj(a)?Dte(a,t,n+1):a}function _j(e,t){return(e==null?void 0:e[t])??(e==null?void 0:e.default)??e}const $te=new Set(["width","height","top","left","right","bottom",...O0]),MAe={test:e=>e==="auto",parse:e=>e},Lte=e=>t=>t.test(e),Fte=[_0,mn,kc,Hp,CPe,TPe,MAe],hW=e=>Fte.find(Lte(e));function IAe(e){return typeof e=="number"?e===0:e!==null?e==="none"||e==="0"||ite(e):!0}const DAe=new Set(["brightness","contrast","saturate","opacity"]);function $Ae(e){const[t,n]=e.slice(0,-1).split("(");if(t==="drop-shadow")return e;const[r]=n.match(yj)||[];if(!r)return e;const a=n.replace(r,"");let i=DAe.has(t)?1:0;return r!==n&&(i*=100),t+"("+i+a+")"}const LAe=/\b([a-z-]*)\(.*?\)/gu,g3={...uh,getAnimatableNone:e=>{const t=e.match(LAe);return t?t.map($Ae).join(" "):e}},mW={..._0,transform:Math.round},FAe={rotate:Hp,rotateX:Hp,rotateY:Hp,rotateZ:Hp,scale:hk,scaleX:hk,scaleY:hk,scaleZ:hk,skew:Hp,skewX:Hp,skewY:Hp,distance:mn,translateX:mn,translateY:mn,translateZ:mn,x:mn,y:mn,z:mn,perspective:mn,transformPerspective:mn,opacity:iE,originX:nW,originY:nW,originZ:mn},Oj={borderWidth:mn,borderTopWidth:mn,borderRightWidth:mn,borderBottomWidth:mn,borderLeftWidth:mn,borderRadius:mn,radius:mn,borderTopLeftRadius:mn,borderTopRightRadius:mn,borderBottomRightRadius:mn,borderBottomLeftRadius:mn,width:mn,maxWidth:mn,height:mn,maxHeight:mn,top:mn,right:mn,bottom:mn,left:mn,padding:mn,paddingTop:mn,paddingRight:mn,paddingBottom:mn,paddingLeft:mn,margin:mn,marginTop:mn,marginRight:mn,marginBottom:mn,marginLeft:mn,backgroundPositionX:mn,backgroundPositionY:mn,...FAe,zIndex:mW,fillOpacity:iE,strokeOpacity:iE,numOctaves:mW},jAe={...Oj,color:Ga,backgroundColor:Ga,outlineColor:Ga,fill:Ga,stroke:Ga,borderColor:Ga,borderTopColor:Ga,borderRightColor:Ga,borderBottomColor:Ga,borderLeftColor:Ga,filter:g3,WebkitFilter:g3},jte=e=>jAe[e];function Ute(e,t){let n=jte(e);return n!==g3&&(n=uh),n.getAnimatableNone?n.getAnimatableNone(t):void 0}const UAe=new Set(["auto","none","0"]);function BAe(e,t,n){let r=0,a;for(;r{t.getValue(u).set(d)}),this.resolveNoneKeyframes()}}function zAe(e,t,n){if(e instanceof EventTarget)return[e];if(typeof e=="string"){let r=document;const a=(n==null?void 0:n[e])??r.querySelectorAll(e);return a?Array.from(a):[]}return Array.from(e)}const Bte=(e,t)=>t&&typeof e=="number"?t.transform(e):e,gW=30,qAe=e=>!isNaN(parseFloat(e));class HAe{constructor(t,n={}){this.canTrackVelocity=null,this.events={},this.updateAndNotify=(r,a=!0)=>{var o,l;const i=os.now();if(this.updatedAt!==i&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(r),this.current!==this.prev&&((o=this.events.change)==null||o.notify(this.current),this.dependents))for(const u of this.dependents)u.dirty();a&&((l=this.events.renderRequest)==null||l.notify(this.current))},this.hasAnimated=!1,this.setCurrent(t),this.owner=n.owner}setCurrent(t){this.current=t,this.updatedAt=os.now(),this.canTrackVelocity===null&&t!==void 0&&(this.canTrackVelocity=qAe(this.current))}setPrevFrameValue(t=this.current){this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt}onChange(t){return this.on("change",t)}on(t,n){this.events[t]||(this.events[t]=new pj);const r=this.events[t].add(n);return t==="change"?()=>{r(),ha.read(()=>{this.events.change.getSize()||this.stop()})}:r}clearListeners(){for(const t in this.events)this.events[t].clear()}attach(t,n){this.passiveEffect=t,this.stopPassiveEffect=n}set(t,n=!0){!n||!this.passiveEffect?this.updateAndNotify(t,n):this.passiveEffect(t,this.updateAndNotify)}setWithVelocity(t,n,r){this.set(n),this.prev=void 0,this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt-r}jump(t,n=!0){this.updateAndNotify(t),this.prev=t,this.prevUpdatedAt=this.prevFrameValue=void 0,n&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}dirty(){var t;(t=this.events.change)==null||t.notify(this.current)}addDependent(t){this.dependents||(this.dependents=new Set),this.dependents.add(t)}removeDependent(t){this.dependents&&this.dependents.delete(t)}get(){return this.current}getPrevious(){return this.prev}getVelocity(){const t=os.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||t-this.updatedAt>gW)return 0;const n=Math.min(this.updatedAt-this.prevUpdatedAt,gW);return ote(parseFloat(this.current)-parseFloat(this.prevFrameValue),n)}start(t){return this.stop(),new Promise(n=>{this.hasAnimated=!0,this.animation=t(n),this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){var t,n;(t=this.dependents)==null||t.clear(),(n=this.events.destroy)==null||n.notify(),this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function f0(e,t){return new HAe(e,t)}const{schedule:Rj}=vte(queueMicrotask,!1),yu={x:!1,y:!1};function Wte(){return yu.x||yu.y}function VAe(e){return e==="x"||e==="y"?yu[e]?null:(yu[e]=!0,()=>{yu[e]=!1}):yu.x||yu.y?null:(yu.x=yu.y=!0,()=>{yu.x=yu.y=!1})}function zte(e,t){const n=zAe(e),r=new AbortController,a={passive:!0,...t,signal:r.signal};return[n,a,()=>r.abort()]}function vW(e){return!(e.pointerType==="touch"||Wte())}function GAe(e,t,n={}){const[r,a,i]=zte(e,n),o=l=>{if(!vW(l))return;const{target:u}=l,d=t(u,l);if(typeof d!="function"||!u)return;const f=g=>{vW(g)&&(d(g),u.removeEventListener("pointerleave",f))};u.addEventListener("pointerleave",f,a)};return r.forEach(l=>{l.addEventListener("pointerenter",o,a)}),i}const qte=(e,t)=>t?e===t?!0:qte(e,t.parentElement):!1,Pj=e=>e.pointerType==="mouse"?typeof e.button!="number"||e.button<=0:e.isPrimary!==!1,YAe=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);function KAe(e){return YAe.has(e.tagName)||e.tabIndex!==-1}const Gk=new WeakSet;function yW(e){return t=>{t.key==="Enter"&&e(t)}}function hA(e,t){e.dispatchEvent(new PointerEvent("pointer"+t,{isPrimary:!0,bubbles:!0}))}const XAe=(e,t)=>{const n=e.currentTarget;if(!n)return;const r=yW(()=>{if(Gk.has(n))return;hA(n,"down");const a=yW(()=>{hA(n,"up")}),i=()=>hA(n,"cancel");n.addEventListener("keyup",a,t),n.addEventListener("blur",i,t)});n.addEventListener("keydown",r,t),n.addEventListener("blur",()=>n.removeEventListener("keydown",r),t)};function bW(e){return Pj(e)&&!Wte()}function QAe(e,t,n={}){const[r,a,i]=zte(e,n),o=l=>{const u=l.currentTarget;if(!bW(l))return;Gk.add(u);const d=t(u,l),f=(h,v)=>{window.removeEventListener("pointerup",g),window.removeEventListener("pointercancel",y),Gk.has(u)&&Gk.delete(u),bW(h)&&typeof d=="function"&&d(h,{success:v})},g=h=>{f(h,u===window||u===document||n.useGlobalTarget||qte(u,h.target))},y=h=>{f(h,!1)};window.addEventListener("pointerup",g,a),window.addEventListener("pointercancel",y,a)};return r.forEach(l=>{(n.useGlobalTarget?window:l).addEventListener("pointerdown",o,a),xj(l)&&(l.addEventListener("focus",d=>XAe(d,a)),!KAe(l)&&!l.hasAttribute("tabindex")&&(l.tabIndex=0))}),i}function Hte(e){return ate(e)&&"ownerSVGElement"in e}function JAe(e){return Hte(e)&&e.tagName==="svg"}const to=e=>!!(e&&e.getVelocity),ZAe=[...Fte,Ga,uh],eNe=e=>ZAe.find(Lte(e)),Aj=R.createContext({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"});class tNe extends R.Component{getSnapshotBeforeUpdate(t){const n=this.props.childRef.current;if(n&&t.isPresent&&!this.props.isPresent){const r=n.offsetParent,a=xj(r)&&r.offsetWidth||0,i=this.props.sizeRef.current;i.height=n.offsetHeight||0,i.width=n.offsetWidth||0,i.top=n.offsetTop,i.left=n.offsetLeft,i.right=a-i.width-i.left}return null}componentDidUpdate(){}render(){return this.props.children}}function nNe({children:e,isPresent:t,anchorX:n}){const r=R.useId(),a=R.useRef(null),i=R.useRef({width:0,height:0,top:0,left:0,right:0}),{nonce:o}=R.useContext(Aj);return R.useInsertionEffect(()=>{const{width:l,height:u,top:d,left:f,right:g}=i.current;if(t||!a.current||!l||!u)return;const y=n==="left"?`left: ${f}`:`right: ${g}`;a.current.dataset.motionPopId=r;const h=document.createElement("style");return o&&(h.nonce=o),document.head.appendChild(h),h.sheet&&h.sheet.insertRule(` + */var SW;function URe(){return SW||(SW=1,(function(e){const t=FRe(),n=jRe(),r=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;e.Buffer=l,e.SlowBuffer=k,e.INSPECT_MAX_BYTES=50;const a=2147483647;e.kMaxLength=a,l.TYPED_ARRAY_SUPPORT=i(),!l.TYPED_ARRAY_SUPPORT&&typeof console<"u"&&typeof console.error=="function"&&console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support.");function i(){try{const U=new Uint8Array(1),D={foo:function(){return 42}};return Object.setPrototypeOf(D,Uint8Array.prototype),Object.setPrototypeOf(U,D),U.foo()===42}catch{return!1}}Object.defineProperty(l.prototype,"parent",{enumerable:!0,get:function(){if(l.isBuffer(this))return this.buffer}}),Object.defineProperty(l.prototype,"offset",{enumerable:!0,get:function(){if(l.isBuffer(this))return this.byteOffset}});function o(U){if(U>a)throw new RangeError('The value "'+U+'" is invalid for option "size"');const D=new Uint8Array(U);return Object.setPrototypeOf(D,l.prototype),D}function l(U,D,F){if(typeof U=="number"){if(typeof D=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return g(U)}return u(U,D,F)}l.poolSize=8192;function u(U,D,F){if(typeof U=="string")return y(U,D);if(ArrayBuffer.isView(U))return v(U);if(U==null)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof U);if(Oe(U,ArrayBuffer)||U&&Oe(U.buffer,ArrayBuffer)||typeof SharedArrayBuffer<"u"&&(Oe(U,SharedArrayBuffer)||U&&Oe(U.buffer,SharedArrayBuffer)))return E(U,D,F);if(typeof U=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');const ie=U.valueOf&&U.valueOf();if(ie!=null&&ie!==U)return l.from(ie,D,F);const Te=T(U);if(Te)return Te;if(typeof Symbol<"u"&&Symbol.toPrimitive!=null&&typeof U[Symbol.toPrimitive]=="function")return l.from(U[Symbol.toPrimitive]("string"),D,F);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof U)}l.from=function(U,D,F){return u(U,D,F)},Object.setPrototypeOf(l.prototype,Uint8Array.prototype),Object.setPrototypeOf(l,Uint8Array);function d(U){if(typeof U!="number")throw new TypeError('"size" argument must be of type number');if(U<0)throw new RangeError('The value "'+U+'" is invalid for option "size"')}function f(U,D,F){return d(U),U<=0?o(U):D!==void 0?typeof F=="string"?o(U).fill(D,F):o(U).fill(D):o(U)}l.alloc=function(U,D,F){return f(U,D,F)};function g(U){return d(U),o(U<0?0:C(U)|0)}l.allocUnsafe=function(U){return g(U)},l.allocUnsafeSlow=function(U){return g(U)};function y(U,D){if((typeof D!="string"||D==="")&&(D="utf8"),!l.isEncoding(D))throw new TypeError("Unknown encoding: "+D);const F=_(U,D)|0;let ie=o(F);const Te=ie.write(U,D);return Te!==F&&(ie=ie.slice(0,Te)),ie}function h(U){const D=U.length<0?0:C(U.length)|0,F=o(D);for(let ie=0;ie=a)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+a.toString(16)+" bytes");return U|0}function k(U){return+U!=U&&(U=0),l.alloc(+U)}l.isBuffer=function(D){return D!=null&&D._isBuffer===!0&&D!==l.prototype},l.compare=function(D,F){if(Oe(D,Uint8Array)&&(D=l.from(D,D.offset,D.byteLength)),Oe(F,Uint8Array)&&(F=l.from(F,F.offset,F.byteLength)),!l.isBuffer(D)||!l.isBuffer(F))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(D===F)return 0;let ie=D.length,Te=F.length;for(let Fe=0,We=Math.min(ie,Te);FeTe.length?(l.isBuffer(We)||(We=l.from(We)),We.copy(Te,Fe)):Uint8Array.prototype.set.call(Te,We,Fe);else if(l.isBuffer(We))We.copy(Te,Fe);else throw new TypeError('"list" argument must be an Array of Buffers');Fe+=We.length}return Te};function _(U,D){if(l.isBuffer(U))return U.length;if(ArrayBuffer.isView(U)||Oe(U,ArrayBuffer))return U.byteLength;if(typeof U!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof U);const F=U.length,ie=arguments.length>2&&arguments[2]===!0;if(!ie&&F===0)return 0;let Te=!1;for(;;)switch(D){case"ascii":case"latin1":case"binary":return F;case"utf8":case"utf-8":return xt(U).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return F*2;case"hex":return F>>>1;case"base64":return qt(U).length;default:if(Te)return ie?-1:xt(U).length;D=(""+D).toLowerCase(),Te=!0}}l.byteLength=_;function A(U,D,F){let ie=!1;if((D===void 0||D<0)&&(D=0),D>this.length||((F===void 0||F>this.length)&&(F=this.length),F<=0)||(F>>>=0,D>>>=0,F<=D))return"";for(U||(U="utf8");;)switch(U){case"hex":return ce(this,D,F);case"utf8":case"utf-8":return me(this,D,F);case"ascii":return G(this,D,F);case"latin1":case"binary":return q(this,D,F);case"base64":return re(this,D,F);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return H(this,D,F);default:if(ie)throw new TypeError("Unknown encoding: "+U);U=(U+"").toLowerCase(),ie=!0}}l.prototype._isBuffer=!0;function P(U,D,F){const ie=U[D];U[D]=U[F],U[F]=ie}l.prototype.swap16=function(){const D=this.length;if(D%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(let F=0;FF&&(D+=" ... "),""},r&&(l.prototype[r]=l.prototype.inspect),l.prototype.compare=function(D,F,ie,Te,Fe){if(Oe(D,Uint8Array)&&(D=l.from(D,D.offset,D.byteLength)),!l.isBuffer(D))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof D);if(F===void 0&&(F=0),ie===void 0&&(ie=D?D.length:0),Te===void 0&&(Te=0),Fe===void 0&&(Fe=this.length),F<0||ie>D.length||Te<0||Fe>this.length)throw new RangeError("out of range index");if(Te>=Fe&&F>=ie)return 0;if(Te>=Fe)return-1;if(F>=ie)return 1;if(F>>>=0,ie>>>=0,Te>>>=0,Fe>>>=0,this===D)return 0;let We=Fe-Te,Et=ie-F;const Mt=Math.min(We,Et),be=this.slice(Te,Fe),Ee=D.slice(F,ie);for(let gt=0;gt2147483647?F=2147483647:F<-2147483648&&(F=-2147483648),F=+F,dt(F)&&(F=Te?0:U.length-1),F<0&&(F=U.length+F),F>=U.length){if(Te)return-1;F=U.length-1}else if(F<0)if(Te)F=0;else return-1;if(typeof D=="string"&&(D=l.from(D,ie)),l.isBuffer(D))return D.length===0?-1:I(U,D,F,ie,Te);if(typeof D=="number")return D=D&255,typeof Uint8Array.prototype.indexOf=="function"?Te?Uint8Array.prototype.indexOf.call(U,D,F):Uint8Array.prototype.lastIndexOf.call(U,D,F):I(U,[D],F,ie,Te);throw new TypeError("val must be string, number or Buffer")}function I(U,D,F,ie,Te){let Fe=1,We=U.length,Et=D.length;if(ie!==void 0&&(ie=String(ie).toLowerCase(),ie==="ucs2"||ie==="ucs-2"||ie==="utf16le"||ie==="utf-16le")){if(U.length<2||D.length<2)return-1;Fe=2,We/=2,Et/=2,F/=2}function Mt(Ee,gt){return Fe===1?Ee[gt]:Ee.readUInt16BE(gt*Fe)}let be;if(Te){let Ee=-1;for(be=F;beWe&&(F=We-Et),be=F;be>=0;be--){let Ee=!0;for(let gt=0;gtTe&&(ie=Te)):ie=Te;const Fe=D.length;ie>Fe/2&&(ie=Fe/2);let We;for(We=0;We>>0,isFinite(ie)?(ie=ie>>>0,Te===void 0&&(Te="utf8")):(Te=ie,ie=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");const Fe=this.length-F;if((ie===void 0||ie>Fe)&&(ie=Fe),D.length>0&&(ie<0||F<0)||F>this.length)throw new RangeError("Attempt to write outside buffer bounds");Te||(Te="utf8");let We=!1;for(;;)switch(Te){case"hex":return L(this,D,F,ie);case"utf8":case"utf-8":return j(this,D,F,ie);case"ascii":case"latin1":case"binary":return z(this,D,F,ie);case"base64":return Q(this,D,F,ie);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return ue(this,D,F,ie);default:if(We)throw new TypeError("Unknown encoding: "+Te);Te=(""+Te).toLowerCase(),We=!0}},l.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function re(U,D,F){return D===0&&F===U.length?t.fromByteArray(U):t.fromByteArray(U.slice(D,F))}function me(U,D,F){F=Math.min(U.length,F);const ie=[];let Te=D;for(;Te239?4:Fe>223?3:Fe>191?2:1;if(Te+Et<=F){let Mt,be,Ee,gt;switch(Et){case 1:Fe<128&&(We=Fe);break;case 2:Mt=U[Te+1],(Mt&192)===128&&(gt=(Fe&31)<<6|Mt&63,gt>127&&(We=gt));break;case 3:Mt=U[Te+1],be=U[Te+2],(Mt&192)===128&&(be&192)===128&&(gt=(Fe&15)<<12|(Mt&63)<<6|be&63,gt>2047&&(gt<55296||gt>57343)&&(We=gt));break;case 4:Mt=U[Te+1],be=U[Te+2],Ee=U[Te+3],(Mt&192)===128&&(be&192)===128&&(Ee&192)===128&&(gt=(Fe&15)<<18|(Mt&63)<<12|(be&63)<<6|Ee&63,gt>65535&><1114112&&(We=gt))}}We===null?(We=65533,Et=1):We>65535&&(We-=65536,ie.push(We>>>10&1023|55296),We=56320|We&1023),ie.push(We),Te+=Et}return W(ie)}const ge=4096;function W(U){const D=U.length;if(D<=ge)return String.fromCharCode.apply(String,U);let F="",ie=0;for(;ieie)&&(F=ie);let Te="";for(let Fe=D;Feie&&(D=ie),F<0?(F+=ie,F<0&&(F=0)):F>ie&&(F=ie),FF)throw new RangeError("Trying to access beyond buffer length")}l.prototype.readUintLE=l.prototype.readUIntLE=function(D,F,ie){D=D>>>0,F=F>>>0,ie||K(D,F,this.length);let Te=this[D],Fe=1,We=0;for(;++We>>0,F=F>>>0,ie||K(D,F,this.length);let Te=this[D+--F],Fe=1;for(;F>0&&(Fe*=256);)Te+=this[D+--F]*Fe;return Te},l.prototype.readUint8=l.prototype.readUInt8=function(D,F){return D=D>>>0,F||K(D,1,this.length),this[D]},l.prototype.readUint16LE=l.prototype.readUInt16LE=function(D,F){return D=D>>>0,F||K(D,2,this.length),this[D]|this[D+1]<<8},l.prototype.readUint16BE=l.prototype.readUInt16BE=function(D,F){return D=D>>>0,F||K(D,2,this.length),this[D]<<8|this[D+1]},l.prototype.readUint32LE=l.prototype.readUInt32LE=function(D,F){return D=D>>>0,F||K(D,4,this.length),(this[D]|this[D+1]<<8|this[D+2]<<16)+this[D+3]*16777216},l.prototype.readUint32BE=l.prototype.readUInt32BE=function(D,F){return D=D>>>0,F||K(D,4,this.length),this[D]*16777216+(this[D+1]<<16|this[D+2]<<8|this[D+3])},l.prototype.readBigUInt64LE=ut(function(D){D=D>>>0,Ge(D,"offset");const F=this[D],ie=this[D+7];(F===void 0||ie===void 0)&&rt(D,this.length-8);const Te=F+this[++D]*2**8+this[++D]*2**16+this[++D]*2**24,Fe=this[++D]+this[++D]*2**8+this[++D]*2**16+ie*2**24;return BigInt(Te)+(BigInt(Fe)<>>0,Ge(D,"offset");const F=this[D],ie=this[D+7];(F===void 0||ie===void 0)&&rt(D,this.length-8);const Te=F*2**24+this[++D]*2**16+this[++D]*2**8+this[++D],Fe=this[++D]*2**24+this[++D]*2**16+this[++D]*2**8+ie;return(BigInt(Te)<>>0,F=F>>>0,ie||K(D,F,this.length);let Te=this[D],Fe=1,We=0;for(;++We=Fe&&(Te-=Math.pow(2,8*F)),Te},l.prototype.readIntBE=function(D,F,ie){D=D>>>0,F=F>>>0,ie||K(D,F,this.length);let Te=F,Fe=1,We=this[D+--Te];for(;Te>0&&(Fe*=256);)We+=this[D+--Te]*Fe;return Fe*=128,We>=Fe&&(We-=Math.pow(2,8*F)),We},l.prototype.readInt8=function(D,F){return D=D>>>0,F||K(D,1,this.length),this[D]&128?(255-this[D]+1)*-1:this[D]},l.prototype.readInt16LE=function(D,F){D=D>>>0,F||K(D,2,this.length);const ie=this[D]|this[D+1]<<8;return ie&32768?ie|4294901760:ie},l.prototype.readInt16BE=function(D,F){D=D>>>0,F||K(D,2,this.length);const ie=this[D+1]|this[D]<<8;return ie&32768?ie|4294901760:ie},l.prototype.readInt32LE=function(D,F){return D=D>>>0,F||K(D,4,this.length),this[D]|this[D+1]<<8|this[D+2]<<16|this[D+3]<<24},l.prototype.readInt32BE=function(D,F){return D=D>>>0,F||K(D,4,this.length),this[D]<<24|this[D+1]<<16|this[D+2]<<8|this[D+3]},l.prototype.readBigInt64LE=ut(function(D){D=D>>>0,Ge(D,"offset");const F=this[D],ie=this[D+7];(F===void 0||ie===void 0)&&rt(D,this.length-8);const Te=this[D+4]+this[D+5]*2**8+this[D+6]*2**16+(ie<<24);return(BigInt(Te)<>>0,Ge(D,"offset");const F=this[D],ie=this[D+7];(F===void 0||ie===void 0)&&rt(D,this.length-8);const Te=(F<<24)+this[++D]*2**16+this[++D]*2**8+this[++D];return(BigInt(Te)<>>0,F||K(D,4,this.length),n.read(this,D,!0,23,4)},l.prototype.readFloatBE=function(D,F){return D=D>>>0,F||K(D,4,this.length),n.read(this,D,!1,23,4)},l.prototype.readDoubleLE=function(D,F){return D=D>>>0,F||K(D,8,this.length),n.read(this,D,!0,52,8)},l.prototype.readDoubleBE=function(D,F){return D=D>>>0,F||K(D,8,this.length),n.read(this,D,!1,52,8)};function ae(U,D,F,ie,Te,Fe){if(!l.isBuffer(U))throw new TypeError('"buffer" argument must be a Buffer instance');if(D>Te||DU.length)throw new RangeError("Index out of range")}l.prototype.writeUintLE=l.prototype.writeUIntLE=function(D,F,ie,Te){if(D=+D,F=F>>>0,ie=ie>>>0,!Te){const Et=Math.pow(2,8*ie)-1;ae(this,D,F,ie,Et,0)}let Fe=1,We=0;for(this[F]=D&255;++We>>0,ie=ie>>>0,!Te){const Et=Math.pow(2,8*ie)-1;ae(this,D,F,ie,Et,0)}let Fe=ie-1,We=1;for(this[F+Fe]=D&255;--Fe>=0&&(We*=256);)this[F+Fe]=D/We&255;return F+ie},l.prototype.writeUint8=l.prototype.writeUInt8=function(D,F,ie){return D=+D,F=F>>>0,ie||ae(this,D,F,1,255,0),this[F]=D&255,F+1},l.prototype.writeUint16LE=l.prototype.writeUInt16LE=function(D,F,ie){return D=+D,F=F>>>0,ie||ae(this,D,F,2,65535,0),this[F]=D&255,this[F+1]=D>>>8,F+2},l.prototype.writeUint16BE=l.prototype.writeUInt16BE=function(D,F,ie){return D=+D,F=F>>>0,ie||ae(this,D,F,2,65535,0),this[F]=D>>>8,this[F+1]=D&255,F+2},l.prototype.writeUint32LE=l.prototype.writeUInt32LE=function(D,F,ie){return D=+D,F=F>>>0,ie||ae(this,D,F,4,4294967295,0),this[F+3]=D>>>24,this[F+2]=D>>>16,this[F+1]=D>>>8,this[F]=D&255,F+4},l.prototype.writeUint32BE=l.prototype.writeUInt32BE=function(D,F,ie){return D=+D,F=F>>>0,ie||ae(this,D,F,4,4294967295,0),this[F]=D>>>24,this[F+1]=D>>>16,this[F+2]=D>>>8,this[F+3]=D&255,F+4};function J(U,D,F,ie,Te){tt(D,ie,Te,U,F,7);let Fe=Number(D&BigInt(4294967295));U[F++]=Fe,Fe=Fe>>8,U[F++]=Fe,Fe=Fe>>8,U[F++]=Fe,Fe=Fe>>8,U[F++]=Fe;let We=Number(D>>BigInt(32)&BigInt(4294967295));return U[F++]=We,We=We>>8,U[F++]=We,We=We>>8,U[F++]=We,We=We>>8,U[F++]=We,F}function ee(U,D,F,ie,Te){tt(D,ie,Te,U,F,7);let Fe=Number(D&BigInt(4294967295));U[F+7]=Fe,Fe=Fe>>8,U[F+6]=Fe,Fe=Fe>>8,U[F+5]=Fe,Fe=Fe>>8,U[F+4]=Fe;let We=Number(D>>BigInt(32)&BigInt(4294967295));return U[F+3]=We,We=We>>8,U[F+2]=We,We=We>>8,U[F+1]=We,We=We>>8,U[F]=We,F+8}l.prototype.writeBigUInt64LE=ut(function(D,F=0){return J(this,D,F,BigInt(0),BigInt("0xffffffffffffffff"))}),l.prototype.writeBigUInt64BE=ut(function(D,F=0){return ee(this,D,F,BigInt(0),BigInt("0xffffffffffffffff"))}),l.prototype.writeIntLE=function(D,F,ie,Te){if(D=+D,F=F>>>0,!Te){const Mt=Math.pow(2,8*ie-1);ae(this,D,F,ie,Mt-1,-Mt)}let Fe=0,We=1,Et=0;for(this[F]=D&255;++Fe>0)-Et&255;return F+ie},l.prototype.writeIntBE=function(D,F,ie,Te){if(D=+D,F=F>>>0,!Te){const Mt=Math.pow(2,8*ie-1);ae(this,D,F,ie,Mt-1,-Mt)}let Fe=ie-1,We=1,Et=0;for(this[F+Fe]=D&255;--Fe>=0&&(We*=256);)D<0&&Et===0&&this[F+Fe+1]!==0&&(Et=1),this[F+Fe]=(D/We>>0)-Et&255;return F+ie},l.prototype.writeInt8=function(D,F,ie){return D=+D,F=F>>>0,ie||ae(this,D,F,1,127,-128),D<0&&(D=255+D+1),this[F]=D&255,F+1},l.prototype.writeInt16LE=function(D,F,ie){return D=+D,F=F>>>0,ie||ae(this,D,F,2,32767,-32768),this[F]=D&255,this[F+1]=D>>>8,F+2},l.prototype.writeInt16BE=function(D,F,ie){return D=+D,F=F>>>0,ie||ae(this,D,F,2,32767,-32768),this[F]=D>>>8,this[F+1]=D&255,F+2},l.prototype.writeInt32LE=function(D,F,ie){return D=+D,F=F>>>0,ie||ae(this,D,F,4,2147483647,-2147483648),this[F]=D&255,this[F+1]=D>>>8,this[F+2]=D>>>16,this[F+3]=D>>>24,F+4},l.prototype.writeInt32BE=function(D,F,ie){return D=+D,F=F>>>0,ie||ae(this,D,F,4,2147483647,-2147483648),D<0&&(D=4294967295+D+1),this[F]=D>>>24,this[F+1]=D>>>16,this[F+2]=D>>>8,this[F+3]=D&255,F+4},l.prototype.writeBigInt64LE=ut(function(D,F=0){return J(this,D,F,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),l.prototype.writeBigInt64BE=ut(function(D,F=0){return ee(this,D,F,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))});function Z(U,D,F,ie,Te,Fe){if(F+ie>U.length)throw new RangeError("Index out of range");if(F<0)throw new RangeError("Index out of range")}function le(U,D,F,ie,Te){return D=+D,F=F>>>0,Te||Z(U,D,F,4),n.write(U,D,F,ie,23,4),F+4}l.prototype.writeFloatLE=function(D,F,ie){return le(this,D,F,!0,ie)},l.prototype.writeFloatBE=function(D,F,ie){return le(this,D,F,!1,ie)};function ke(U,D,F,ie,Te){return D=+D,F=F>>>0,Te||Z(U,D,F,8),n.write(U,D,F,ie,52,8),F+8}l.prototype.writeDoubleLE=function(D,F,ie){return ke(this,D,F,!0,ie)},l.prototype.writeDoubleBE=function(D,F,ie){return ke(this,D,F,!1,ie)},l.prototype.copy=function(D,F,ie,Te){if(!l.isBuffer(D))throw new TypeError("argument should be a Buffer");if(ie||(ie=0),!Te&&Te!==0&&(Te=this.length),F>=D.length&&(F=D.length),F||(F=0),Te>0&&Te=this.length)throw new RangeError("Index out of range");if(Te<0)throw new RangeError("sourceEnd out of bounds");Te>this.length&&(Te=this.length),D.length-F>>0,ie=ie===void 0?this.length:ie>>>0,D||(D=0);let Fe;if(typeof D=="number")for(Fe=F;Fe2**32?Te=Ie(String(F)):typeof F=="bigint"&&(Te=String(F),(F>BigInt(2)**BigInt(32)||F<-(BigInt(2)**BigInt(32)))&&(Te=Ie(Te)),Te+="n"),ie+=` It must be ${D}. Received ${Te}`,ie},RangeError);function Ie(U){let D="",F=U.length;const ie=U[0]==="-"?1:0;for(;F>=ie+4;F-=3)D=`_${U.slice(F-3,F)}${D}`;return`${U.slice(0,F)}${D}`}function qe(U,D,F){Ge(D,"offset"),(U[D]===void 0||U[D+F]===void 0)&&rt(D,U.length-(F+1))}function tt(U,D,F,ie,Te,Fe){if(U>F||U= 0${We} and < 2${We} ** ${(Fe+1)*8}${We}`:Et=`>= -(2${We} ** ${(Fe+1)*8-1}${We}) and < 2 ** ${(Fe+1)*8-1}${We}`,new fe.ERR_OUT_OF_RANGE("value",Et,U)}qe(ie,Te,Fe)}function Ge(U,D){if(typeof U!="number")throw new fe.ERR_INVALID_ARG_TYPE(D,"number",U)}function rt(U,D,F){throw Math.floor(U)!==U?(Ge(U,F),new fe.ERR_OUT_OF_RANGE("offset","an integer",U)):D<0?new fe.ERR_BUFFER_OUT_OF_BOUNDS:new fe.ERR_OUT_OF_RANGE("offset",`>= 0 and <= ${D}`,U)}const St=/[^+/0-9A-Za-z-_]/g;function kt(U){if(U=U.split("=")[0],U=U.trim().replace(St,""),U.length<2)return"";for(;U.length%4!==0;)U=U+"=";return U}function xt(U,D){D=D||1/0;let F;const ie=U.length;let Te=null;const Fe=[];for(let We=0;We55295&&F<57344){if(!Te){if(F>56319){(D-=3)>-1&&Fe.push(239,191,189);continue}else if(We+1===ie){(D-=3)>-1&&Fe.push(239,191,189);continue}Te=F;continue}if(F<56320){(D-=3)>-1&&Fe.push(239,191,189),Te=F;continue}F=(Te-55296<<10|F-56320)+65536}else Te&&(D-=3)>-1&&Fe.push(239,191,189);if(Te=null,F<128){if((D-=1)<0)break;Fe.push(F)}else if(F<2048){if((D-=2)<0)break;Fe.push(F>>6|192,F&63|128)}else if(F<65536){if((D-=3)<0)break;Fe.push(F>>12|224,F>>6&63|128,F&63|128)}else if(F<1114112){if((D-=4)<0)break;Fe.push(F>>18|240,F>>12&63|128,F>>6&63|128,F&63|128)}else throw new Error("Invalid code point")}return Fe}function Rt(U){const D=[];for(let F=0;F>8,Te=F%256,Fe.push(Te),Fe.push(ie);return Fe}function qt(U){return t.toByteArray(kt(U))}function Wt(U,D,F,ie){let Te;for(Te=0;Te=D.length||Te>=U.length);++Te)D[Te+F]=U[Te];return Te}function Oe(U,D){return U instanceof D||U!=null&&U.constructor!=null&&U.constructor.name!=null&&U.constructor.name===D.name}function dt(U){return U!==U}const ft=(function(){const U="0123456789abcdef",D=new Array(256);for(let F=0;F<16;++F){const ie=F*16;for(let Te=0;Te<16;++Te)D[ie+Te]=U[F]+U[Te]}return D})();function ut(U){return typeof BigInt>"u"?Nt:U}function Nt(){throw new Error("BigInt not supported")}})($A)),$A}URe();const Aj=e=>{const{config:t}=R.useContext(Th);At();const{placeholder:n,label:r,getInputRef:a,secureTextEntry:i,Icon:o,onChange:l,value:u,height:d,disabled:f,forceBasic:g,forceRich:y,focused:h=!1,autoFocus:v,...E}=e,[T,C]=R.useState(!1),k=R.useRef(),_=R.useRef(!1),[A,P]=R.useState("tinymce"),{upload:N}=lte(),{directPath:I}=wJ();R.useEffect(()=>{if(t.textEditorModule!=="tinymce")e.onReady&&e.onReady();else{const z=setTimeout(()=>{_.current===!1&&(P("textarea"),e.onReady&&e.onReady())},5e3);return()=>{clearTimeout(z)}}},[]);const L=async(z,Q)=>{const ue=await N([new File([z.blob()],"filename")],!0)[0];return I({diskPath:ue})},j=window.matchMedia("(prefers-color-scheme: dark)").matches||document.getElementsByTagName("body")[0].classList.contains("dark-theme");return w.jsx(df,{focused:T,...e,children:t.textEditorModule==="tinymce"&&!g||y?w.jsx(LRe,{onInit:(z,Q)=>{k.current=Q,setTimeout(()=>{Q.setContent(u||"",{format:"raw"})},0),e.onReady&&e.onReady()},onEditorChange:(z,Q)=>{l&&l(Q.getContent({format:"raw"}))},onLoadContent:()=>{_.current=!0},apiKey:"4dh1g4gxp1gbmxi3hnkro4wf9lfgmqr86khygey2bwb7ps74",onBlur:()=>C(!1),tinymceScriptSrc:kr.PUBLIC_URL+"plugins/js/tinymce/tinymce.min.js",onFocus:()=>C(!0),init:{menubar:!1,height:d||400,images_upload_handler:L,skin:j?"oxide-dark":"oxide",content_css:j?"dark":"default",plugins:["example","image","directionality","image"],toolbar:"undo redo | formatselect | example | image | rtl ltr | link | bullist numlist bold italic backcolor h2 h3 | alignleft aligncenter alignright alignjustify | bullist numlist outdent indent | removeformat | help",content_style:"body {font-size:18px }"}}):w.jsx("textarea",{...E,value:u,placeholder:n,style:{minHeight:"140px"},autoFocus:v,className:sa("form-control",e.errorMessage&&"is-invalid",e.validMessage&&"is-valid"),onChange:z=>l&&l(z.target.value),onBlur:()=>C(!1),onFocus:()=>C(!0)})})},BRe=({form:e,isEditing:t})=>{const{options:n}=R.useContext(it),{values:r,setValues:a,setFieldValue:i,errors:o}=e,l=Kt(pT),u=Ks(Wr.definition.fields.find(d=>d.name==="keyGroup").of.map(d=>({label:d.k,value:d.k})));return w.jsxs(w.Fragment,{children:[w.jsx(da,{keyExtractor:d=>d.value,formEffect:{form:e,field:Wr.Fields.keyGroup,beforeSet(d){return d.value}},querySource:u,errorMessage:o.keyGroup,label:l.regionalContents.keyGroup,hint:l.regionalContents.keyGroupHint}),w.jsx(Aj,{value:r.content,forceRich:r.keyGroup==="EMAIL_OTP",forceBasic:r.keyGroup==="SMS_OTP",onChange:d=>i(Wr.Fields.content,d,!1),errorMessage:o.content,label:l.regionalContents.content,hint:l.regionalContents.contentHint}),w.jsx(In,{value:"global",readonly:!0,onChange:d=>i(Wr.Fields.region,d,!1),errorMessage:o.region,label:l.regionalContents.region,hint:l.regionalContents.regionHint}),w.jsx(In,{value:r.title,onChange:d=>i(Wr.Fields.title,d,!1),errorMessage:o.title,label:l.regionalContents.title,hint:l.regionalContents.titleHint}),w.jsx(In,{value:r.languageId,onChange:d=>i(Wr.Fields.languageId,d,!1),errorMessage:o.languageId,label:l.regionalContents.languageId,hint:l.regionalContents.languageIdHint})]})};function Ete({queryOptions:e,execFnOverride:t,query:n,queryClient:r,unauthorized:a}){var T;const{options:i,execFn:o}=R.useContext(it),l=t?t(i):o?o(i):Tt(i);let d=`${"/regional-content/:uniqueId".substr(1)}?${new URLSearchParams(Gt(n)).toString()}`,f=!0;d=d.replace(":uniqueId",n[":uniqueId".replace(":","")]),n[":uniqueId".replace(":","")]===void 0&&(f=!1);const g=()=>l("GET",d),y=(T=i==null?void 0:i.headers)==null?void 0:T.authorization,h=y!="undefined"&&y!=null&&y!=null&&y!="null"&&!!y;let v=!0;return f?!h&&!a&&(v=!1):v=!1,{query:jn([i,n,"*abac.RegionalContentEntity"],g,{cacheTime:1001,retry:!1,keepPreviousData:!0,enabled:v,...e||{}})}}function WRe(e){let{queryClient:t,query:n,execFnOverride:r}=e||{};n=n||{};const{options:a,execFn:i}=R.useContext(it),o=r?r(a):i?i(a):Tt(a);let u=`${"/regional-content".substr(1)}?${new URLSearchParams(Gt(n)).toString()}`;const f=un(h=>o("POST",u,h)),g=(h,v)=>{var E;return h?(h.data&&(v!=null&&v.data)&&(h.data.items=[v.data,...((E=h==null?void 0:h.data)==null?void 0:E.items)||[]]),h):{data:{items:[]}}};return{mutation:f,submit:(h,v)=>new Promise((E,T)=>{f.mutate(h,{onSuccess(C){t==null||t.setQueryData("*abac.RegionalContentEntity",k=>g(k,C)),E(C)},onError(C){v==null||v.setErrors(Pn(C)),T(C)}})}),fnUpdater:g}}function zRe(e){let{queryClient:t,query:n,execFnOverride:r}=e||{};n=n||{};const{options:a,execFn:i}=R.useContext(it),o=r?r(a):i?i(a):Tt(a);let u=`${"/regional-content".substr(1)}?${new URLSearchParams(Gt(n)).toString()}`;const f=un(h=>o("PATCH",u,h)),g=(h,v)=>{var E;return h?(h.data&&(v!=null&&v.data)&&(h.data.items=[v.data,...((E=h==null?void 0:h.data)==null?void 0:E.items)||[]]),h):{data:{items:[]}}};return{mutation:f,submit:(h,v)=>new Promise((E,T)=>{f.mutate(h,{onSuccess(C){t==null||t.setQueriesData("*abac.RegionalContentEntity",k=>g(k,C)),E(C)},onError(C){v==null||v.setErrors(Pn(C)),T(C)}})}),fnUpdater:g}}const EW=({data:e})=>{const t=Kt(pT),{router:n,uniqueId:r,queryClient:a,locale:i}=$r({data:e}),o=Ete({query:{uniqueId:r}}),l=WRe({queryClient:a}),u=zRe({queryClient:a});return w.jsx(Yo,{postHook:l,patchHook:u,getSingleHook:o,onCancel:()=>{n.goBackOrDefault(Wr.Navigation.query(void 0,i))},onFinishUriResolver:(d,f)=>{var g;return Wr.Navigation.single((g=d.data)==null?void 0:g.uniqueId,f)},Form:BRe,onEditTitle:t.regionalContents.editRegionalContent,onCreateTitle:t.regionalContents.newRegionalContent,data:e})},qRe=()=>{var a;const{uniqueId:e}=$r({}),t=Ete({query:{uniqueId:e}});var n=(a=t.query.data)==null?void 0:a.data;const r=Kt(pT);return w.jsx(w.Fragment,{children:w.jsx(lo,{editEntityHandler:({locale:i,router:o})=>{o.push(Wr.Navigation.edit(e))},getSingleHook:t,children:w.jsx(uo,{entity:n,fields:[{elem:n==null?void 0:n.region,label:r.regionalContents.region},{elem:n==null?void 0:n.title,label:r.regionalContents.title},{elem:n==null?void 0:n.languageId,label:r.regionalContents.languageId}]})})})};function HRe(){return w.jsxs(w.Fragment,{children:[w.jsx(mt,{element:w.jsx(EW,{}),path:Wr.Navigation.Rcreate}),w.jsx(mt,{element:w.jsx(qRe,{}),path:Wr.Navigation.Rsingle}),w.jsx(mt,{element:w.jsx(EW,{}),path:Wr.Navigation.Redit}),w.jsx(mt,{element:w.jsx(kRe,{}),path:Wr.Navigation.Rquery})]})}function Tte({queryOptions:e,execFnOverride:t,query:n,queryClient:r,unauthorized:a}){var T;const{options:i,execFn:o}=R.useContext(it),l=t?t(i):o?o(i):Tt(i);let d=`${"/user/:uniqueId".substr(1)}?${new URLSearchParams(Gt(n)).toString()}`,f=!0;d=d.replace(":uniqueId",n[":uniqueId".replace(":","")]),n[":uniqueId".replace(":","")]===void 0&&(f=!1);const g=()=>l("GET",d),y=(T=i==null?void 0:i.headers)==null?void 0:T.authorization,h=y!="undefined"&&y!=null&&y!=null&&y!="null"&&!!y;let v=!0;return f?!h&&!a&&(v=!1):v=!1,{query:jn([i,n,"*abac.UserEntity"],g,{cacheTime:1001,retry:!1,keepPreviousData:!0,enabled:v,...e||{}})}}function VRe(e){let{queryClient:t,query:n,execFnOverride:r}=e||{};n=n||{};const{options:a,execFn:i}=R.useContext(it),o=r?r(a):i?i(a):Tt(a);let u=`${"/user".substr(1)}?${new URLSearchParams(Gt(n)).toString()}`;const f=un(h=>o("PATCH",u,h)),g=(h,v)=>{var E;return h?(h.data&&(v!=null&&v.data)&&(h.data.items=[v.data,...((E=h==null?void 0:h.data)==null?void 0:E.items)||[]]),h):{data:{items:[]}}};return{mutation:f,submit:(h,v)=>new Promise((E,T)=>{f.mutate(h,{onSuccess(C){t==null||t.setQueriesData("*abac.UserEntity",k=>g(k,C)),E(C)},onError(C){v==null||v.setErrors(Pn(C)),T(C)}})}),fnUpdater:g}}function GRe(e){let{queryClient:t,query:n,execFnOverride:r}=e||{};n=n||{};const{options:a,execFn:i}=R.useContext(it),o=r?r(a):i?i(a):Tt(a);let u=`${"/user".substr(1)}?${new URLSearchParams(Gt(n)).toString()}`;const f=un(h=>o("POST",u,h)),g=(h,v)=>{var E;return h?(h.data&&(v!=null&&v.data)&&(h.data.items=[v.data,...((E=h==null?void 0:h.data)==null?void 0:E.items)||[]]),h):{data:{items:[]}}};return{mutation:f,submit:(h,v)=>new Promise((E,T)=>{f.mutate(h,{onSuccess(C){t==null||t.setQueryData("*abac.UserEntity",k=>g(k,C)),E(C)},onError(C){v==null||v.setErrors(Pn(C)),T(C)}})}),fnUpdater:g}}const YRe=({form:e,isEditing:t})=>{const{values:n,setFieldValue:r,errors:a,setValues:i}=e,{options:o}=R.useContext(it),l=At();return w.jsx(w.Fragment,{children:w.jsxs("div",{className:"row",children:[w.jsx("div",{className:"col-md-12",children:w.jsx(In,{value:n==null?void 0:n.firstName,onChange:u=>r(oa.Fields.firstName,u,!1),autoFocus:!t,errorMessage:a==null?void 0:a.firstName,label:l.wokspaces.invite.firstName,hint:l.wokspaces.invite.firstNameHint})}),w.jsx("div",{className:"col-md-12",children:w.jsx(In,{value:n==null?void 0:n.lastName,onChange:u=>r(oa.Fields.lastName,u,!1),errorMessage:a==null?void 0:a.lastName,label:l.wokspaces.invite.lastName,hint:l.wokspaces.invite.lastNameHint})})]})})},TW=({data:e})=>{const{router:t,uniqueId:n,queryClient:r,locale:a,t:i}=$r({data:e}),o=Tte({query:{uniqueId:n,deep:!0}}),l=GRe({queryClient:r}),u=VRe({queryClient:r});return w.jsx(Yo,{postHook:l,getSingleHook:o,patchHook:u,onCancel:()=>{t.goBackOrDefault(oa.Navigation.query(void 0,a))},onFinishUriResolver:(d,f)=>{var g;return oa.Navigation.single((g=d.data)==null?void 0:g.uniqueId,f)},Form:YRe,onEditTitle:i.user.editUser,onCreateTitle:i.user.newUser,data:e})};function Cte({queryOptions:e,query:t,queryClient:n,execFnOverride:r,unauthorized:a,optionFn:i}){var k,_,A;const{options:o,execFn:l}=R.useContext(it),u=i?i(o):o,d=r?r(u):l?l(u):Tt(u);let g=`${"/passports".substr(1)}?${oi.stringify(t)}`;const y=()=>d("GET",g),h=(k=u==null?void 0:u.headers)==null?void 0:k.authorization,v=h!="undefined"&&h!=null&&h!=null&&h!="null"&&!!h;let E=!0;!v&&!a&&(E=!1);const T=jn(["*abac.PassportEntity",u,t],y,{cacheTime:1e3,retry:!1,keepPreviousData:!0,enabled:E,...e||{}}),C=((A=(_=T.data)==null?void 0:_.data)==null?void 0:A.items)||[];return{query:T,items:C,keyExtractor:P=>P.uniqueId}}Cte.UKEY="*abac.PassportEntity";const KRe=({userId:e})=>{const{items:t}=Cte({query:{query:e?"user_id = "+e:null}});return w.jsx("div",{children:w.jsx(Fo,{title:"Passports",children:t.map(n=>w.jsx(QRe,{passport:n},n.uniqueId))})})};function XRe(e){if(e==null)return"n/a";if(e===!0)return"Yes";if(e===!1)return"No"}const QRe=({passport:e})=>w.jsx("div",{children:w.jsxs("div",{className:"general-entity-view ",children:[w.jsxs("div",{className:"entity-view-row entity-view-head",children:[w.jsx("div",{className:"field-info",children:"Value:"}),w.jsx("div",{className:"field-value",children:e.value})]}),w.jsxs("div",{className:"entity-view-row entity-view-head",children:[w.jsx("div",{className:"field-info",children:"Type:"}),w.jsx("div",{className:"field-value",children:e.type})]}),w.jsxs("div",{className:"entity-view-row entity-view-head",children:[w.jsx("div",{className:"field-info",children:"Confirmed:"}),w.jsx("div",{className:"field-value",children:XRe(e.confirmed)})]})]})}),JRe=()=>{var i;const e=xr(),t=At(),n=e.query.uniqueId;sr();const r=Tte({query:{uniqueId:n}});var a=(i=r.query.data)==null?void 0:i.data;return xh((a==null?void 0:a.firstName)||""),w.jsx(w.Fragment,{children:w.jsxs(lo,{editEntityHandler:()=>{e.push(oa.Navigation.edit(n))},getSingleHook:r,children:[w.jsx(uo,{entity:a,fields:[{label:t.users.firstName,elem:a==null?void 0:a.firstName},{label:t.users.lastName,elem:a==null?void 0:a.lastName}]}),w.jsx(KRe,{userId:n})]})})};function ZRe(e){const{execFnOverride:t,queryClient:n,query:r}=e||{},{options:a,execFn:i}=R.useContext(it),o=t?t(a):i?i(a):Tt(a);let u=`${"/user".substr(1)}?${new URLSearchParams(Gt(r)).toString()}`;const f=un(h=>o("DELETE",u,h)),g=(h,v)=>h;return{mutation:f,submit:(h,v)=>new Promise((E,T)=>{f.mutate(h,{onSuccess(C){n==null||n.setQueryData("*abac.UserEntity",k=>g(k)),n==null||n.invalidateQueries("*abac.UserEntity"),E(C)},onError(C){v==null||v.setErrors(Pn(C)),T(C)}})}),fnUpdater:g}}function kte({queryOptions:e,query:t,queryClient:n,execFnOverride:r,unauthorized:a,optionFn:i}){var k,_,A;const{options:o,execFn:l}=R.useContext(it),u=i?i(o):o,d=r?r(u):l?l(u):Tt(u);let g=`${"/users".substr(1)}?${oi.stringify(t)}`;const y=()=>d("GET",g),h=(k=u==null?void 0:u.headers)==null?void 0:k.authorization,v=h!="undefined"&&h!=null&&h!=null&&h!="null"&&!!h;let E=!0;!v&&!a&&(E=!1);const T=jn(["*abac.UserEntity",u,t],y,{cacheTime:1e3,retry:!1,keepPreviousData:!0,enabled:E,...e||{}}),C=((A=(_=T.data)==null?void 0:_.data)==null?void 0:A.items)||[];return{query:T,items:C,keyExtractor:P=>P.uniqueId}}kte.UKEY="*abac.UserEntity";const ePe=({gender:e})=>e===0?w.jsx("img",{style:{width:"20px",height:"20px"},src:"data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiA/Pjxzdmcgdmlld0JveD0iMCAwIDI1NiA1MTIiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTTEyOCAwYzM1LjM0NiAwIDY0IDI4LjY1NCA2NCA2NHMtMjguNjU0IDY0LTY0IDY0Yy0zNS4zNDYgMC02NC0yOC42NTQtNjQtNjRTOTIuNjU0IDAgMTI4IDBtMTE5LjI4MyAzNTQuMTc5bC00OC0xOTJBMjQgMjQgMCAwIDAgMTc2IDE0NGgtMTEuMzZjLTIyLjcxMSAxMC40NDMtNDkuNTkgMTAuODk0LTczLjI4IDBIODBhMjQgMjQgMCAwIDAtMjMuMjgzIDE4LjE3OWwtNDggMTkyQzQuOTM1IDM2OS4zMDUgMTYuMzgzIDM4NCAzMiAzODRoNTZ2MTA0YzAgMTMuMjU1IDEwLjc0NSAyNCAyNCAyNGgzMmMxMy4yNTUgMCAyNC0xMC43NDUgMjQtMjRWMzg0aDU2YzE1LjU5MSAwIDI3LjA3MS0xNC42NzEgMjMuMjgzLTI5LjgyMXoiLz48L3N2Zz4="}):w.jsx("img",{style:{width:"20px",height:"20px"},src:"data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiA/PjwhRE9DVFlQRSBzdmcgIFBVQkxJQyAnLS8vVzNDLy9EVEQgU1ZHIDEuMS8vRU4nICAnaHR0cDovL3d3dy53My5vcmcvR3JhcGhpY3MvU1ZHLzEuMS9EVEQvc3ZnMTEuZHRkJz48c3ZnIGVuYWJsZS1iYWNrZ3JvdW5kPSJuZXcgMCAwIDE0MS43MzIgMTQxLjczMiIgaGVpZ2h0PSIxNDEuNzMycHgiIGlkPSJMaXZlbGxvXzEiIHZlcnNpb249IjEuMSIgdmlld0JveD0iMCAwIDE0MS43MzIgMTQxLjczMiIgd2lkdGg9IjE0MS43MzJweCIgeG1sOnNwYWNlPSJwcmVzZXJ2ZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB4bWxuczp4bGluaz0iaHR0cDovL3d3dy53My5vcmcvMTk5OS94bGluayI+PGcgaWQ9IkxpdmVsbG9fOTAiPjxwYXRoIGQ9Ik04MS42NDcsMTAuNzU0YzAtNS4zNzItMy45NzMtOS44MTgtOS4xNi0xMC42MjRoMC4xMTdjLTAuMzc5LTAuMDU4LTAuNzY4LTAuMDktMS4xNTYtMC4xMDQgICBjLTAuMTAzLTAuMDA2LTAuMjA3LTAuMDA5LTAuMzExLTAuMDEyQzcxLjA2NiwwLjAxLDcwLjk5NiwwLDcwLjkyMywwYy0wLjAyMSwwLTAuMDM4LDAuMDAzLTAuMDYsMC4wMDMgICBDNzAuODQ2LDAuMDAzLDcwLjgyOCwwLDcwLjgwNywwYy0wLjA2OSwwLTAuMTQyLDAuMDEyLTAuMjE0LDAuMDE0Yy0wLjEwNCwwLjAwMy0wLjIwOCwwLjAwNi0wLjMxMiwwLjAxMiAgIGMtMC4zOTMsMC4wMTktMC43NzQsMC4wNTEtMS4xNTMsMC4xMDRoMC4xMTdjLTUuMTg5LDAuODA2LTkuMTYsNS4yNTItOS4xNiwxMC42MjRjMCw1Ljg5OSw0Ljc5MSwxMC42ODgsMTAuNzI0LDEwLjc0OHYwLjAwNCAgIGMwLjAyMSwwLDAuMDM5LTAuMDAxLDAuMDYyLTAuMDAyYzAuMDIxLDAuMDAxLDAuMDM4LDAuMDAyLDAuMDU5LDAuMDAydi0wLjAwNEM3Ni44NTYsMjEuNDQsODEuNjQ3LDE2LjY1Myw4MS42NDcsMTAuNzU0ICAgIE05NS45MTUsNjcuODEzVjI1LjYzOGMwLTIuMjgyLTEuODUyLTQuMTM2LTQuMTM1LTQuMTM2SDcwLjkyM2gtMC4xMTZINDkuOTVjLTIuMjgyLDAuMDAzLTQuMTMzLDEuODUzLTQuMTMzLDQuMTM2djQyLjE3NmgwLjAwNCAgIGMwLjA0OCwyLjI0MiwxLjg3NSw0LjA0Nyw0LjEyOSw0LjA0N2MyLjI1MywwLDQuMDgyLTEuODA1LDQuMTI4LTQuMDQ3aDAuMDA0VjQ0Ljk3MmgtMC4wMDlWMzMuOTM0YzAtMC43ODQsMC42MzgtMS40MiwxLjQyMS0xLjQyICAgczEuNDIsMC42MzYsMS40MiwxLjQydjExLjAzOHY4OC4zMTRjMC4zMiwzLjEwNywyLjkxNCw1LjUzNyw2LjA5LDUuNjA4aDAuMjg1YzMuMzk2LTAuMDc2LDYuMTI1LTIuODQ5LDYuMTI1LTYuMjU5Vjc3LjQ1NSAgIGMwLTAuNzcxLDAuNjItMS4zOTYsMS4zOTQtMS40MTF2MC4wMTJjMC4wMjEtMC4wMDEsMC4wMzktMC4wMDcsMC4wNjItMC4wMWMwLjAyMSwwLjAwMywwLjAzOCwwLjAwOSwwLjA1OSwwLjAxdi0wLjAxMiAgIGMwLjc3LDAuMDE4LDEuMzk1LDAuNjQzLDEuMzk1LDEuNDExdjU1LjE4OGMwLDMuNDEyLDIuNzMsNi4xODMsNi4xMjUsNi4yNTloMC4yODVjMy4xNzYtMC4wNzEsNS43Ny0yLjUwMSw2LjA5LTUuNjA4VjQ0Ljk3NCAgIHYtMTEuMDRjMC0wLjc4NCwwLjYzNy0xLjQyLDEuNDIyLTEuNDJjMC43ODEsMCwxLjQyLDAuNjM2LDEuNDIsMS40MnYxMS4wMzhoLTAuMDF2MjIuODQyaDAuMDA0ICAgYzAuMDQ3LDIuMjQyLDEuODc1LDQuMDQ3LDQuMTI5LDQuMDQ3Qzk0LjA0LDcxLjg2MSw5NS44NjYsNzAuMDU2LDk1LjkxNSw2Ny44MTNMOTUuOTE1LDY3LjgxM0w5NS45MTUsNjcuODEzeiIvPjwvZz48ZyBpZD0iTGl2ZWxsb18xXzFfIi8+PC9zdmc+"}),tPe=e=>[{name:oa.Fields.uniqueId,title:e.table.uniqueId,width:100},{name:"firstName",title:e.users.firstName,width:200,sortable:!0,filterable:!0,getCellValue:t=>t==null?void 0:t.firstName},{filterable:!0,name:"lastName",sortable:!0,title:e.users.lastName,width:200,getCellValue:t=>t==null?void 0:t.lastName},{name:"birthDate",title:"birthdate",width:140,getCellValue:t=>w.jsx(w.Fragment,{children:t==null?void 0:t.birthDate}),filterType:"date",filterable:!0,sortable:!0},{name:"gender",title:"gender",width:50,getCellValue:t=>w.jsx(w.Fragment,{children:w.jsx(ePe,{gender:t.gender})})},{name:"Image",title:"Image",width:40,getCellValue:t=>w.jsx(w.Fragment,{children:(t==null?void 0:t.photo)&&w.jsx("img",{src:t==null?void 0:t.photo,style:{width:"20px",height:"20px"}})})},{name:oa.Fields.primaryAddress.countryCode,title:"Country code",width:40,getCellValue:t=>{var n;return w.jsx(w.Fragment,{children:(n=t.primaryAddress)==null?void 0:n.countryCode})}},{name:oa.Fields.primaryAddress.addressLine1,title:"Address Line 1",width:180,getCellValue:t=>{var n;return w.jsx(w.Fragment,{children:(n=t.primaryAddress)==null?void 0:n.addressLine1})}},{name:oa.Fields.primaryAddress.addressLine2,title:"Address Line 2",width:180,getCellValue:t=>{var n;return w.jsx(w.Fragment,{children:(n=t.primaryAddress)==null?void 0:n.addressLine2})}},{name:oa.Fields.primaryAddress.city,title:"City",width:180,getCellValue:t=>{var n;return w.jsx(w.Fragment,{children:(n=t.primaryAddress)==null?void 0:n.city})}},{name:oa.Fields.primaryAddress.postalCode,title:"Postal Code",width:80,getCellValue:t=>{var n;return w.jsx(w.Fragment,{children:(n=t.primaryAddress)==null?void 0:n.postalCode})}}],nPe=()=>{const e=At();return xh(e.fbMenu.users),w.jsx(w.Fragment,{children:w.jsx(Go,{columns:tPe(e),queryHook:kte,uniqueIdHrefHandler:t=>oa.Navigation.single(t),deleteHook:ZRe})})},rPe=()=>{const e=At(),t=xr();return sr(),w.jsx(w.Fragment,{children:w.jsx(Vo,{newEntityHandler:()=>{t.push(oa.Navigation.create())},pageTitle:e.fbMenu.users,children:w.jsx(nPe,{})})})};function aPe(){return w.jsxs(w.Fragment,{children:[w.jsx(mt,{element:w.jsx(TW,{}),path:oa.Navigation.Rcreate}),w.jsx(mt,{element:w.jsx(JRe,{}),path:oa.Navigation.Rsingle}),w.jsx(mt,{element:w.jsx(TW,{}),path:oa.Navigation.Redit}),w.jsx(mt,{element:w.jsx(rPe,{}),path:oa.Navigation.Rquery})]})}class fa extends wn{constructor(...t){super(...t),this.children=void 0,this.apiKey=void 0,this.mainSenderNumber=void 0,this.type=void 0,this.invokeUrl=void 0,this.invokeBody=void 0}}fa.Navigation={edit(e,t){return`${t?"/"+t:".."}/gsm-provider/edit/${e}`},create(e){return`${e?"/"+e:".."}/gsm-provider/new`},single(e,t){return`${t?"/"+t:".."}/gsm-provider/${e}`},query(e={},t){return`${t?"/"+t:".."}/gsm-providers`},Redit:"gsm-provider/edit/:uniqueId",Rcreate:"gsm-provider/new",Rsingle:"gsm-provider/:uniqueId",Rquery:"gsm-providers"};fa.definition={rpc:{query:{}},permRewrite:{replace:"root.modules",with:"root.manage"},name:"gsmProvider",features:{},gormMap:{},fields:[{name:"apiKey",type:"string",computedType:"string",gormMap:{}},{name:"mainSenderNumber",type:"string",validate:"required",computedType:"string",gormMap:{}},{name:"type",type:"enum",validate:"required",of:[{k:"url"},{k:"terminal"},{k:"mediana"}],computedType:'"url" | "terminal" | "mediana"',gormMap:{}},{name:"invokeUrl",type:"string",computedType:"string",gormMap:{}},{name:"invokeBody",type:"string",computedType:"string",gormMap:{}}]};fa.Fields={...wn.Fields,apiKey:"apiKey",mainSenderNumber:"mainSenderNumber",type:"type",invokeUrl:"invokeUrl",invokeBody:"invokeBody"};class ja extends wn{constructor(...t){super(...t),this.children=void 0,this.enableRecaptcha2=void 0,this.enableOtp=void 0,this.requireOtpOnSignup=void 0,this.requireOtpOnSignin=void 0,this.recaptcha2ServerKey=void 0,this.recaptcha2ClientKey=void 0,this.enableTotp=void 0,this.forceTotp=void 0,this.forcePasswordOnPhone=void 0,this.forcePersonNameOnPhone=void 0,this.generalEmailProvider=void 0,this.generalEmailProviderId=void 0,this.generalGsmProvider=void 0,this.generalGsmProviderId=void 0,this.inviteToWorkspaceContent=void 0,this.inviteToWorkspaceContentId=void 0,this.emailOtpContent=void 0,this.emailOtpContentId=void 0,this.smsOtpContent=void 0,this.smsOtpContentId=void 0}}ja.Navigation={edit(e,t){return`${t?"/"+t:".."}/workspace-config/edit/${e}`},create(e){return`${e?"/"+e:".."}/workspace-config/new`},single(e,t){return`${t?"/"+t:".."}/workspace-config/${e}`},query(e={},t){return`${t?"/"+t:".."}/workspace-configs`},Redit:"workspace-config/edit/:uniqueId",Rcreate:"workspace-config/new",Rsingle:"workspace-config/:uniqueId",Rquery:"workspace-configs"};ja.definition={rpc:{query:{}},permRewrite:{replace:"root.modules",with:"root.manage"},name:"workspaceConfig",distinctBy:"workspace",features:{},security:{writeOnRoot:!0,readOnRoot:!0,resolveStrategy:"workspace"},gormMap:{},fields:[{name:"enableRecaptcha2",description:"Enables the recaptcha2 for authentication flow.",type:"bool?",computedType:"boolean",gormMap:{}},{name:"enableOtp",recommended:!0,description:"Enables the otp option. It's not forcing it, so user can choose if they want otp or password.",type:"bool?",computedType:"boolean",gormMap:{}},{name:"requireOtpOnSignup",recommended:!0,description:"Forces the user to have otp verification before can create an account. They can define their password still.",type:"bool?",computedType:"boolean",gormMap:{}},{name:"requireOtpOnSignin",recommended:!0,description:"Forces the user to use otp when signing in. Even if they have password set, they won't use it and only will be able to signin using that otp.",type:"bool?",default:!1,computedType:"boolean",gormMap:{}},{name:"recaptcha2ServerKey",description:"Secret which would be used to decrypt if the recaptcha is correct. Should not be available publicly.",type:"string",computedType:"string",gormMap:{}},{name:"recaptcha2ClientKey",description:"Secret which would be used for recaptcha2 on the client side. Can be publicly visible, and upon authenticating users it would be sent to front-end.",type:"string",computedType:"string",gormMap:{}},{name:"enableTotp",recommended:!0,description:"Enables user to make 2FA using apps such as google authenticator or microsoft authenticator.",type:"bool?",computedType:"boolean",gormMap:{}},{name:"forceTotp",recommended:!0,description:"Forces the user to setup a 2FA in order to access their account. Users which did not setup this won't be affected.",type:"bool?",computedType:"boolean",gormMap:{}},{name:"forcePasswordOnPhone",description:"Forces users who want to create account using phone number to also set a password on their account",type:"bool?",computedType:"boolean",gormMap:{}},{name:"forcePersonNameOnPhone",description:"Forces the creation of account using phone number to ask for user first name and last name",type:"bool?",computedType:"boolean",gormMap:{}},{name:"generalEmailProvider",description:"Email provider service, which will be used to send the messages using it's service. It doesn't affect the message content, rather, you can choose via which third-party service, or even your own smtp service to send emails.",type:"one",target:"EmailProviderEntity",computedType:"EmailProviderEntity",gormMap:{}},{name:"generalGsmProvider",description:"General service which would be used to send text messages (sms) using it's services or API.",type:"one",target:"GsmProviderEntity",computedType:"GsmProviderEntity",gormMap:{}},{name:"inviteToWorkspaceContent",description:"This template would be used, as default when a user is inviting a third-party into their own workspace.",type:"one",target:"RegionalContentEntity",computedType:"RegionalContentEntity",gormMap:{}},{name:"emailOtpContent",description:"Upon one time password request for email, the content will be read to fill the message which will go to user.",type:"one",target:"RegionalContentEntity",computedType:"RegionalContentEntity",gormMap:{}},{name:"smsOtpContent",description:"Upon OTP text messages, this template will be used to create such text message, including the one time password code.",type:"one",target:"RegionalContentEntity",computedType:"RegionalContentEntity",gormMap:{}}],cliName:"config",description:"Contains configuration which would be necessary for application environment to be running. At the moment, a single record is allowed, and only for root workspace. But in theory it could be configured per each workspace independently. For sub projects do not touch this, rather create a custom config entity if workspaces in the product need extra config."};ja.Fields={...wn.Fields,enableRecaptcha2:"enableRecaptcha2",enableOtp:"enableOtp",requireOtpOnSignup:"requireOtpOnSignup",requireOtpOnSignin:"requireOtpOnSignin",recaptcha2ServerKey:"recaptcha2ServerKey",recaptcha2ClientKey:"recaptcha2ClientKey",enableTotp:"enableTotp",forceTotp:"forceTotp",forcePasswordOnPhone:"forcePasswordOnPhone",forcePersonNameOnPhone:"forcePersonNameOnPhone",generalEmailProviderId:"generalEmailProviderId",generalEmailProvider$:"generalEmailProvider",generalEmailProvider:wi.Fields,generalGsmProviderId:"generalGsmProviderId",generalGsmProvider$:"generalGsmProvider",generalGsmProvider:fa.Fields,inviteToWorkspaceContentId:"inviteToWorkspaceContentId",inviteToWorkspaceContent$:"inviteToWorkspaceContent",inviteToWorkspaceContent:Wr.Fields,emailOtpContentId:"emailOtpContentId",emailOtpContent$:"emailOtpContent",emailOtpContent:Wr.Fields,smsOtpContentId:"smsOtpContentId",smsOtpContent$:"smsOtpContent",smsOtpContent:Wr.Fields};function xte({queryOptions:e,execFnOverride:t,query:n,queryClient:r,unauthorized:a}){var E;const{options:i,execFn:o}=R.useContext(it),l=t?t(i):o?o(i):Tt(i);let d=`${"/workspace-config/distinct".substr(1)}?${new URLSearchParams(Gt(n)).toString()}`;const f=()=>l("GET",d),g=(E=i==null?void 0:i.headers)==null?void 0:E.authorization,y=g!="undefined"&&g!=null&&g!=null&&g!="null"&&!!g;let h=!0;return!y&&!a&&(h=!1),{query:jn([i,n,"*abac.WorkspaceConfigEntity"],f,{cacheTime:1001,retry:!1,keepPreviousData:!0,enabled:h,...e||{}})}}function iPe(e){let{queryClient:t,query:n,execFnOverride:r}=e||{};n=n||{};const{options:a,execFn:i}=R.useContext(it),o=r?r(a):i?i(a):Tt(a);let u=`${"/workspace-config/distinct".substr(1)}?${new URLSearchParams(Gt(n)).toString()}`;const f=un(h=>o("PATCH",u,h)),g=(h,v)=>{var E;return h?(h.data&&(v!=null&&v.data)&&(h.data.items=[v.data,...((E=h==null?void 0:h.data)==null?void 0:E.items)||[]]),h):{data:{items:[]}}};return{mutation:f,submit:(h,v)=>new Promise((E,T)=>{f.mutate(h,{onSuccess(C){t==null||t.setQueriesData("*abac.WorkspaceConfigEntity",k=>g(k,C)),E(C)},onError(C){v==null||v.setErrors(Pn(C)),T(C)}})}),fnUpdater:g}}const oPe={workspaceConfigs:{archiveTitle:"Workspace configs",description:"Configurate how the workspaces work in terms of totp, forced otp, recaptcha and how the user can interact with the application.",editWorkspaceConfig:"Edit workspace config",emailOtpContentHint:"Upon one time password request for email, the content will be read to fill the message which will go to user.",emailOtpContentLabel:"Email Otp Content",enableOtp:"Enable otp",enableOtpHint:"Enables the one time password for the selfservice. It would allow email or phone numbers to bypass password and recieve a 6 digit code on their inbox or phone.",enableRecaptcha2:"Enable reCAPTCHA2",enableRecaptcha2Hint:"Enables reCAPTCHA2 from google integration into the project selfservice. You need to provide Server Key and Client Key to make it effective.",enableTotp:"Enable totp",enableTotpHint:"Enables time based otp for account creation and signin.",forcePasswordOnPhone:"Force password on phone",forcePasswordOnPhoneHint:"Force password on phone",forcePersonNameOnPhone:"Force person name on phone",forcePersonNameOnPhoneHint:"Force person name on phone",forceTotp:"Force totp",forceTotpHint:"Forces the totp for account creation. If an account doesn't have it, they need to setup before they can login.",generalEmailProviderHint:"Email provider service, which will be used to send the messages using it's service. It doesn't affect the message content, rather, you can choose via which third-party service, or even your own smtp service to send emails.",generalEmailProviderLabel:"General Email Provider",generalGsmProviderHint:"General service which would be used to send text messages (sms) using it's services or API.",generalGsmProviderLabel:"General Gsm Provider",inviteToWorkspaceContentHint:"This template would be used, as default when a user is inviting a third-party into their own workspace.",inviteToWorkspaceContentLabel:"Invite To Workspace Content",newWorkspaceConfig:"New workspace config",otpSectionDescription:"Manage the user authentication using single time password over sms/email",otpSectionTitle:"OTP (One time password)",passwordSectionDescription:"Configurate the usage of password by users",passwordSectionTitle:"Password management",recaptcha2ClientKey:"Client key",recaptcha2ClientKeyHint:"Client key for reCAPTCHA2",recaptcha2ServerKey:"Server key",recaptcha2ServerKeyHint:"Server key for reCAPTCHA2",recaptchaSectionDescription:"Configurate the recaptcha 2 related options for the application.",recaptchaSectionTitle:"Recaptcha section",requireOtpOnSignin:"Require otp on signin",requireOtpOnSigninHint:"Forces passports such as phone and email to approve signin with 6 digit code, even if the passport has a password. OAuth is exempted.",requireOtpOnSignup:"Require otp on signup",requireOtpOnSignupHint:"It would force account creation to first make a one time password verification and then continue the process.",smsOtpContentHint:"Upon OTP text messages, this template will be used to create such text message, including the one time password code.",smsOtpContentLabel:"SMS Otp Content",title:"Workspace Config",totpSectionDescription:"Usage of the authenticator app as a second security step for the password.",totpSectionTitle:"TOTP (Time based Dual Factor)"}},sPe={workspaceConfigs:{archiveTitle:"Workspace configs",description:"Configurate how the workspaces work in terms of totp, forced otp, recaptcha and how the user can interact with the application.",editWorkspaceConfig:"Edit workspace config",emailOtpContentHint:"Upon one time password request for email, the content will be read to fill the message which will go to user.",emailOtpContentLabel:"Email Otp Content",enableOtp:"Enable otp",enableOtpHint:"Enables the one time password for the selfservice. It would allow email or phone numbers to bypass password and recieve a 6 digit code on their inbox or phone.",enableRecaptcha2:"Enable reCAPTCHA2",enableRecaptcha2Hint:"Enables reCAPTCHA2 from google integration into the project selfservice. You need to provide Server Key and Client Key to make it effective.",enableTotp:"Enable totp",enableTotpHint:"Enables time based otp for account creation and signin.",forcePasswordOnPhone:"Force password on phone",forcePasswordOnPhoneHint:"Force password on phone",forcePersonNameOnPhone:"Force person name on phone",forcePersonNameOnPhoneHint:"Force person name on phone",forceTotp:"Force totp",forceTotpHint:"Forces the totp for account creation. If an account doesn't have it, they need to setup before they can login.",generalEmailProviderHint:"Email provider service, which will be used to send the messages using it's service. It doesn't affect the message content, rather, you can choose via which third-party service, or even your own smtp service to send emails.",generalEmailProviderLabel:"General Email Provider",generalGsmProviderHint:"General service which would be used to send text messages (sms) using it's services or API.",generalGsmProviderLabel:"General Gsm Provider",inviteToWorkspaceContentHint:"This template would be used, as default when a user is inviting a third-party into their own workspace.",inviteToWorkspaceContentLabel:"Invite To Workspace Content",newWorkspaceConfig:"New workspace config",otpSectionDescription:"Manage the user authentication using single time password over sms/email",otpSectionTitle:"OTP (One time password)",passwordSectionDescription:"Configurate the usage of password by users",passwordSectionTitle:"Password management",recaptcha2ClientKey:"Client key",recaptcha2ClientKeyHint:"Client key for reCAPTCHA2",recaptcha2ServerKey:"Server key",recaptcha2ServerKeyHint:"Server key for reCAPTCHA2",recaptchaSectionDescription:"Configurate the recaptcha 2 related options for the application.",recaptchaSectionTitle:"Recaptcha section",requireOtpOnSignin:"Require otp on signin",requireOtpOnSigninHint:"Forces passports such as phone and email to approve signin with 6 digit code, even if the passport has a password. OAuth is exempted.",requireOtpOnSignup:"Require otp on signup",requireOtpOnSignupHint:"It would force account creation to first make a one time password verification and then continue the process.",smsOtpContentHint:"Upon one time password request for email, the content will be read to fill the message which will go to user.",smsOtpContentLabel:"SMS Otp Content",title:"Workspace Config",totpSectionDescription:"Usage of the authenticator app as a second security step for the password.",totpSectionTitle:"TOTP (Time based Dual Factor)"}},Nj={...oPe,$pl:sPe};function Mj({queryOptions:e,query:t,queryClient:n,execFnOverride:r,unauthorized:a,optionFn:i}){var k,_,A;const{options:o,execFn:l}=R.useContext(it),u=i?i(o):o,d=r?r(u):l?l(u):Tt(u);let g=`${"/gsm-providers".substr(1)}?${oi.stringify(t)}`;const y=()=>d("GET",g),h=(k=u==null?void 0:u.headers)==null?void 0:k.authorization,v=h!="undefined"&&h!=null&&h!=null&&h!="null"&&!!h;let E=!0;!v&&!a&&(E=!1);const T=jn(["*abac.GsmProviderEntity",u,t],y,{cacheTime:1e3,retry:!1,keepPreviousData:!0,enabled:E,...e||{}}),C=((A=(_=T.data)==null?void 0:_.data)==null?void 0:A.items)||[];return{query:T,items:C,keyExtractor:P=>P.uniqueId}}Mj.UKEY="*abac.GsmProviderEntity";const lPe=({form:e,isEditing:t})=>{const{values:n,setValues:r,setFieldValue:a,errors:i}=e,o=Kt(Nj);return w.jsxs(w.Fragment,{children:[w.jsxs(Fo,{title:o.workspaceConfigs.recaptchaSectionTitle,description:o.workspaceConfigs.recaptchaSectionDescription,children:[w.jsx(Cl,{value:n.enableRecaptcha2,onChange:l=>a(ja.Fields.enableRecaptcha2,l,!1),errorMessage:i.enableRecaptcha2,label:o.workspaceConfigs.enableRecaptcha2,hint:o.workspaceConfigs.enableRecaptcha2Hint}),w.jsx(In,{value:n.recaptcha2ServerKey,disabled:!n.enableRecaptcha2,onChange:l=>a(ja.Fields.recaptcha2ServerKey,l,!1),errorMessage:i.recaptcha2ServerKey,label:o.workspaceConfigs.recaptcha2ServerKey,hint:o.workspaceConfigs.recaptcha2ServerKeyHint}),w.jsx(In,{value:n.recaptcha2ClientKey,disabled:!n.enableRecaptcha2,onChange:l=>a(ja.Fields.recaptcha2ClientKey,l,!1),errorMessage:i.recaptcha2ClientKey,label:o.workspaceConfigs.recaptcha2ClientKey,hint:o.workspaceConfigs.recaptcha2ClientKeyHint})]}),w.jsxs(Fo,{title:o.workspaceConfigs.otpSectionTitle,description:o.workspaceConfigs.otpSectionDescription,children:[w.jsx(Cl,{value:n.enableOtp,onChange:l=>a(ja.Fields.enableOtp,l,!1),errorMessage:i.enableOtp,label:o.workspaceConfigs.enableOtp,hint:o.workspaceConfigs.enableOtpHint}),w.jsx(Cl,{value:n.requireOtpOnSignup,onChange:l=>a(ja.Fields.requireOtpOnSignup,l,!1),errorMessage:i.requireOtpOnSignup,label:o.workspaceConfigs.requireOtpOnSignup,hint:o.workspaceConfigs.requireOtpOnSignupHint}),w.jsx(Cl,{value:n.requireOtpOnSignin,onChange:l=>a(ja.Fields.requireOtpOnSignin,l,!1),errorMessage:i.requireOtpOnSignin,label:o.workspaceConfigs.requireOtpOnSignin,hint:o.workspaceConfigs.requireOtpOnSigninHint})]}),w.jsxs(Fo,{title:o.workspaceConfigs.totpSectionTitle,description:o.workspaceConfigs.totpSectionDescription,children:[w.jsx(Cl,{value:n.enableTotp,onChange:l=>a(ja.Fields.enableTotp,l,!1),errorMessage:i.enableTotp,label:o.workspaceConfigs.enableTotp,hint:o.workspaceConfigs.enableTotpHint}),w.jsx(Cl,{value:n.forceTotp,onChange:l=>a(ja.Fields.forceTotp,l,!1),errorMessage:i.forceTotp,label:o.workspaceConfigs.forceTotp,hint:o.workspaceConfigs.forceTotpHint})]}),w.jsxs(Fo,{title:o.workspaceConfigs.passwordSectionTitle,description:o.workspaceConfigs.passwordSectionDescription,children:[w.jsx(Cl,{value:n.forcePasswordOnPhone,onChange:l=>a(ja.Fields.forcePasswordOnPhone,l,!1),errorMessage:i.forcePasswordOnPhone,label:o.workspaceConfigs.forcePasswordOnPhone,hint:o.workspaceConfigs.forcePasswordOnPhoneHint}),w.jsx(Cl,{value:n.forcePersonNameOnPhone,onChange:l=>a(ja.Fields.forcePersonNameOnPhone,l,!1),errorMessage:i.forcePersonNameOnPhone,label:o.workspaceConfigs.forcePersonNameOnPhone,hint:o.workspaceConfigs.forcePersonNameOnPhoneHint})]}),w.jsxs(Fo,{title:o.workspaceConfigs.passwordSectionTitle,description:o.workspaceConfigs.passwordSectionDescription,children:[w.jsx(da,{keyExtractor:l=>l.uniqueId,formEffect:{form:e,field:ja.Fields.generalEmailProviderId,beforeSet(l){return l.uniqueId}},fnLabelFormat:l=>`${l.type} (${l.uniqueId})`,querySource:Oj,errorMessage:i.generalEmailProviderId,label:o.workspaceConfigs.generalEmailProviderLabel,hint:o.workspaceConfigs.generalEmailProviderHint}),w.jsx(da,{keyExtractor:l=>l.uniqueId,formEffect:{form:e,field:ja.Fields.generalGsmProviderId,beforeSet(l){return l.uniqueId}},fnLabelFormat:l=>`${l.type} (${l.uniqueId})`,querySource:Mj,errorMessage:i.generalGsmProviderId,label:o.workspaceConfigs.generalGsmProviderLabel,hint:o.workspaceConfigs.generalGsmProviderHint}),w.jsx(da,{keyExtractor:l=>l.uniqueId,formEffect:{form:e,field:ja.Fields.inviteToWorkspaceContentId,beforeSet(l){return l.uniqueId}},fnLabelFormat:l=>`${l.title})`,querySource:X1,errorMessage:i.inviteToWorkspaceContentId,label:o.workspaceConfigs.inviteToWorkspaceContentLabel,hint:o.workspaceConfigs.inviteToWorkspaceContentHint}),w.jsx(da,{keyExtractor:l=>l.uniqueId,formEffect:{form:e,field:ja.Fields.emailOtpContentId,beforeSet(l){return l.uniqueId}},fnLabelFormat:l=>`${l.title})`,querySource:X1,errorMessage:i.emailOtpContentId,label:o.workspaceConfigs.emailOtpContentLabel,hint:o.workspaceConfigs.emailOtpContentHint}),w.jsx(da,{keyExtractor:l=>l.uniqueId,formEffect:{form:e,field:ja.Fields.smsOtpContentId,beforeSet(l){return l.uniqueId}},fnLabelFormat:l=>`${l.title})`,querySource:X1,errorMessage:i.smsOtpContentId,label:o.workspaceConfigs.smsOtpContentLabel,hint:o.workspaceConfigs.smsOtpContentHint})]})]})},uPe=({data:e})=>{const t=Kt(Nj),{router:n,uniqueId:r,queryClient:a,locale:i}=$r({data:e}),o=xte({query:{uniqueId:r}}),l=iPe({queryClient:a});return w.jsx(Yo,{patchHook:l,getSingleHook:o,disableOnGetFailed:!0,forceEdit:!0,onCancel:()=>{n.goBackOrDefault(ja.Navigation.single(void 0,i))},onFinishUriResolver:(u,d)=>{var f;return ja.Navigation.single((f=u.data)==null?void 0:f.uniqueId,d)},customClass:"w-100",Form:lPe,onEditTitle:t.workspaceConfigs.editWorkspaceConfig,onCreateTitle:t.workspaceConfigs.newWorkspaceConfig,data:e})},cPe=()=>{var r;const e=xte({});var t=(r=e.query.data)==null?void 0:r.data;const n=Kt(Nj);return w.jsx(w.Fragment,{children:w.jsx(lo,{editEntityHandler:({locale:a,router:i})=>{i.push(ja.Navigation.edit(""))},noBack:!0,disableOnGetFailed:!0,getSingleHook:e,children:w.jsx(uo,{title:n.workspaceConfigs.title,description:n.workspaceConfigs.description,entity:t,fields:[{elem:t==null?void 0:t.recaptcha2ServerKey,label:n.workspaceConfigs.recaptcha2ServerKey},{elem:t==null?void 0:t.recaptcha2ClientKey,label:n.workspaceConfigs.recaptcha2ClientKey},{elem:t==null?void 0:t.enableOtp,label:n.workspaceConfigs.enableOtp},{elem:t==null?void 0:t.enableRecaptcha2,label:n.workspaceConfigs.enableRecaptcha2},{elem:t==null?void 0:t.requireOtpOnSignin,label:n.workspaceConfigs.requireOtpOnSignin},{elem:t==null?void 0:t.requireOtpOnSignup,label:n.workspaceConfigs.requireOtpOnSignup},{elem:t==null?void 0:t.enableTotp,label:n.workspaceConfigs.enableTotp},{elem:t==null?void 0:t.forceTotp,label:n.workspaceConfigs.forceTotp},{elem:t==null?void 0:t.forcePasswordOnPhone,label:n.workspaceConfigs.forcePasswordOnPhone},{elem:t==null?void 0:t.forcePersonNameOnPhone,label:n.workspaceConfigs.forcePersonNameOnPhone},{elem:t==null?void 0:t.generalEmailProviderId,label:n.workspaceConfigs.generalEmailProviderLabel},{elem:t==null?void 0:t.generalGsmProviderId,label:n.workspaceConfigs.generalGsmProviderLabel},{elem:t==null?void 0:t.inviteToWorkspaceContentId,label:n.workspaceConfigs.inviteToWorkspaceContentLabel},{elem:t==null?void 0:t.emailOtpContentId,label:n.workspaceConfigs.emailOtpContentLabel},{elem:t==null?void 0:t.smsOtpContentId,label:n.workspaceConfigs.smsOtpContentLabel}]})})})};function dPe(){return w.jsxs(w.Fragment,{children:[w.jsx(mt,{element:w.jsx(cPe,{}),path:"workspace-config"}),w.jsx(mt,{element:w.jsx(uPe,{}),path:"workspace-config/edit"})]})}function ff({queryOptions:e,query:t,queryClient:n,execFnOverride:r,unauthorized:a,optionFn:i}){var k,_,A;const{options:o,execFn:l}=R.useContext(it),u=i?i(o):o,d=r?r(u):l?l(u):Tt(u);let g=`${"/roles".substr(1)}?${oi.stringify(t)}`;const y=()=>d("GET",g),h=(k=u==null?void 0:u.headers)==null?void 0:k.authorization,v=h!="undefined"&&h!=null&&h!=null&&h!="null"&&!!h;let E=!0;!v&&!a&&(E=!1);const T=jn(["*abac.RoleEntity",u,t],y,{cacheTime:1e3,retry:!1,keepPreviousData:!0,enabled:E,...e||{}}),C=((A=(_=T.data)==null?void 0:_.data)==null?void 0:A.items)||[];return{query:T,items:C,keyExtractor:P=>P.uniqueId}}ff.UKEY="*abac.RoleEntity";const fPe=({form:e,isEditing:t})=>{const{values:n,setValues:r}=e,{options:a}=R.useContext(it),i=At();return w.jsxs(w.Fragment,{children:[w.jsx(In,{value:n.uniqueId,onChange:o=>e.setFieldValue(eo.Fields.uniqueId,o,!1),errorMessage:e.errors.uniqueId,label:i.wokspaces.workspaceTypeUniqueId,autoFocus:!t,hint:i.wokspaces.workspaceTypeUniqueIdHint}),w.jsx(In,{value:n.title,onChange:o=>e.setFieldValue(eo.Fields.title,o,!1),errorMessage:e.errors.title,label:i.wokspaces.workspaceTypeTitle,autoFocus:!t,hint:i.wokspaces.workspaceTypeTitleHint}),w.jsx(In,{value:n.slug,onChange:o=>e.setFieldValue(eo.Fields.slug,o,!1),errorMessage:e.errors.slug,label:i.wokspaces.workspaceTypeSlug,hint:i.wokspaces.workspaceTypeSlugHint}),w.jsx(da,{label:i.wokspaces.invite.role,hint:i.wokspaces.invite.roleHint,fnLabelFormat:o=>o.name,querySource:ff,formEffect:{form:e,field:eo.Fields.role$},errorMessage:e.errors.roleId}),w.jsx(Aj,{value:n.description,onChange:o=>e.setFieldValue(eo.Fields.description,o,!1),errorMessage:e.errors.description,label:i.wokspaces.typeDescription,hint:i.wokspaces.typeDescriptionHint})]})};function _te({queryOptions:e,execFnOverride:t,query:n,queryClient:r,unauthorized:a}){var T;const{options:i,execFn:o}=R.useContext(it),l=t?t(i):o?o(i):Tt(i);let d=`${"/workspace-type/:uniqueId".substr(1)}?${new URLSearchParams(Gt(n)).toString()}`,f=!0;d=d.replace(":uniqueId",n[":uniqueId".replace(":","")]),n[":uniqueId".replace(":","")]===void 0&&(f=!1);const g=()=>l("GET",d),y=(T=i==null?void 0:i.headers)==null?void 0:T.authorization,h=y!="undefined"&&y!=null&&y!=null&&y!="null"&&!!y;let v=!0;return f?!h&&!a&&(v=!1):v=!1,{query:jn([i,n,"*abac.WorkspaceTypeEntity"],g,{cacheTime:1001,retry:!1,keepPreviousData:!0,enabled:v,...e||{}})}}function pPe(e){let{queryClient:t,query:n,execFnOverride:r}=e||{};n=n||{};const{options:a,execFn:i}=R.useContext(it),o=r?r(a):i?i(a):Tt(a);let u=`${"/workspace-type".substr(1)}?${new URLSearchParams(Gt(n)).toString()}`;const f=un(h=>o("POST",u,h)),g=(h,v)=>{var E;return h?(h.data&&(v!=null&&v.data)&&(h.data.items=[v.data,...((E=h==null?void 0:h.data)==null?void 0:E.items)||[]]),h):{data:{items:[]}}};return{mutation:f,submit:(h,v)=>new Promise((E,T)=>{f.mutate(h,{onSuccess(C){t==null||t.setQueryData("*abac.WorkspaceTypeEntity",k=>g(k,C)),E(C)},onError(C){v==null||v.setErrors(Pn(C)),T(C)}})}),fnUpdater:g}}function hPe(e){let{queryClient:t,query:n,execFnOverride:r}=e||{};n=n||{};const{options:a,execFn:i}=R.useContext(it),o=r?r(a):i?i(a):Tt(a);let u=`${"/workspace-type".substr(1)}?${new URLSearchParams(Gt(n)).toString()}`;const f=un(h=>o("PATCH",u,h)),g=(h,v)=>{var E;return h?(h.data&&(v!=null&&v.data)&&(h.data.items=[v.data,...((E=h==null?void 0:h.data)==null?void 0:E.items)||[]]),h):{data:{items:[]}}};return{mutation:f,submit:(h,v)=>new Promise((E,T)=>{f.mutate(h,{onSuccess(C){t==null||t.setQueriesData("*abac.WorkspaceTypeEntity",k=>g(k,C)),E(C)},onError(C){v==null||v.setErrors(Pn(C)),T(C)}})}),fnUpdater:g}}const CW=({data:e})=>{const{router:t,uniqueId:n,queryClient:r,locale:a,t:i}=$r({data:e}),o=_te({query:{uniqueId:n}}),l=pPe({queryClient:r}),u=hPe({queryClient:r});return w.jsx(Yo,{postHook:l,getSingleHook:o,patchHook:u,onCancel:()=>{t.goBackOrDefault(`/${a}/workspace-types`)},onFinishUriResolver:(d,f)=>{var g;return`/${f}/workspace-type/${(g=d.data)==null?void 0:g.uniqueId}`},Form:fPe,onEditTitle:i.fb.editWorkspaceType,onCreateTitle:i.fb.newWorkspaceType,data:e})};function mPe(e){const{execFnOverride:t,queryClient:n,query:r}=e||{},{options:a,execFn:i}=R.useContext(it),o=t?t(a):i?i(a):Tt(a);let u=`${"/workspace-type".substr(1)}?${new URLSearchParams(Gt(r)).toString()}`;const f=un(h=>o("DELETE",u,h)),g=(h,v)=>h;return{mutation:f,submit:(h,v)=>new Promise((E,T)=>{f.mutate(h,{onSuccess(C){n==null||n.setQueryData("*abac.WorkspaceTypeEntity",k=>g(k)),n==null||n.invalidateQueries("*abac.WorkspaceTypeEntity"),E(C)},onError(C){v==null||v.setErrors(Pn(C)),T(C)}})}),fnUpdater:g}}function Ote({queryOptions:e,query:t,queryClient:n,execFnOverride:r,unauthorized:a,optionFn:i}){var k,_,A;const{options:o,execFn:l}=R.useContext(it),u=i?i(o):o,d=r?r(u):l?l(u):Tt(u);let g=`${"/workspace-types".substr(1)}?${oi.stringify(t)}`;const y=()=>d("GET",g),h=(k=u==null?void 0:u.headers)==null?void 0:k.authorization,v=h!="undefined"&&h!=null&&h!=null&&h!="null"&&!!h;let E=!0;!v&&!a&&(E=!1);const T=jn(["*abac.WorkspaceTypeEntity",u,t],y,{cacheTime:1e3,retry:!1,keepPreviousData:!0,enabled:E,...e||{}}),C=((A=(_=T.data)==null?void 0:_.data)==null?void 0:A.items)||[];return{query:T,items:C,keyExtractor:P=>P.uniqueId}}Ote.UKEY="*abac.WorkspaceTypeEntity";const gPe=e=>[{name:"uniqueId",title:e.table.uniqueId,width:200},{name:"title",title:e.wokspaces.title,width:200,getCellValue:t=>t.title},{name:"slug",slug:e.wokspaces.slug,width:200,getCellValue:t=>t.slug}],vPe=()=>{const e=At();return w.jsx(w.Fragment,{children:w.jsx(Go,{columns:gPe(e),queryHook:Ote,uniqueIdHrefHandler:t=>eo.Navigation.single(t),deleteHook:mPe})})},yPe=()=>{const e=At(),t=xr();return sr(),w.jsx(w.Fragment,{children:w.jsx(Vo,{newEntityHandler:()=>{t.push(eo.Navigation.create())},pageTitle:e.fbMenu.workspaceTypes,children:w.jsx(vPe,{})})})},bPe=()=>{var i;const e=xr(),t=At(),n=e.query.uniqueId;sr();const r=_te({query:{uniqueId:n}});var a=(i=r.query.data)==null?void 0:i.data;return xh((a==null?void 0:a.title)||""),w.jsx(w.Fragment,{children:w.jsx(lo,{editEntityHandler:()=>{e.push(eo.Navigation.edit(n))},getSingleHook:r,children:w.jsx(uo,{entity:a,fields:[{label:t.wokspaces.slug,elem:a==null?void 0:a.slug}]})})})};function wPe(){return w.jsxs(w.Fragment,{children:[w.jsx(mt,{element:w.jsx(CW,{}),path:eo.Navigation.Rcreate}),w.jsx(mt,{element:w.jsx(CW,{}),path:eo.Navigation.Redit}),w.jsx(mt,{element:w.jsx(bPe,{}),path:eo.Navigation.Rsingle}),w.jsx(mt,{element:w.jsx(yPe,{}),path:eo.Navigation.Rquery})]})}function SPe(e){let{queryClient:t,query:n,execFnOverride:r}=e||{};n=n||{};const{options:a,execFn:i}=R.useContext(it),o=r?r(a):i?i(a):Tt(a);let u=`${"/workspace".substr(1)}?${new URLSearchParams(Gt(n)).toString()}`;const f=un(h=>o("POST",u,h)),g=(h,v)=>{var E;return h?(h.data&&(v!=null&&v.data)&&(h.data.items=[v.data,...((E=h==null?void 0:h.data)==null?void 0:E.items)||[]]),h):{data:{items:[]}}};return{mutation:f,submit:(h,v)=>new Promise((E,T)=>{f.mutate(h,{onSuccess(C){t==null||t.setQueryData("*abac.WorkspaceEntity",k=>g(k,C)),E(C)},onError(C){v==null||v.setErrors(Pn(C)),T(C)}})}),fnUpdater:g}}function Rte({queryOptions:e,execFnOverride:t,query:n,queryClient:r,unauthorized:a}){var T;const{options:i,execFn:o}=R.useContext(it),l=t?t(i):o?o(i):Tt(i);let d=`${"/workspace/:uniqueId".substr(1)}?${new URLSearchParams(Gt(n)).toString()}`,f=!0;d=d.replace(":uniqueId",n[":uniqueId".replace(":","")]),n[":uniqueId".replace(":","")]===void 0&&(f=!1);const g=()=>l("GET",d),y=(T=i==null?void 0:i.headers)==null?void 0:T.authorization,h=y!="undefined"&&y!=null&&y!=null&&y!="null"&&!!y;let v=!0;return f?!h&&!a&&(v=!1):v=!1,{query:jn([i,n,"*abac.WorkspaceEntity"],g,{cacheTime:1001,retry:!1,keepPreviousData:!0,enabled:v,...e||{}})}}function EPe(e){let{queryClient:t,query:n,execFnOverride:r}=e||{};n=n||{};const{options:a,execFn:i}=R.useContext(it),o=r?r(a):i?i(a):Tt(a);let u=`${"/workspace".substr(1)}?${new URLSearchParams(Gt(n)).toString()}`;const f=un(h=>o("PATCH",u,h)),g=(h,v)=>{var E;return h?(h.data&&(v!=null&&v.data)&&(h.data.items=[v.data,...((E=h==null?void 0:h.data)==null?void 0:E.items)||[]]),h):{data:{items:[]}}};return{mutation:f,submit:(h,v)=>new Promise((E,T)=>{f.mutate(h,{onSuccess(C){t==null||t.setQueriesData("*abac.WorkspaceEntity",k=>g(k,C)),E(C)},onError(C){v==null||v.setErrors(Pn(C)),T(C)}})}),fnUpdater:g}}const TPe=({form:e,isEditing:t})=>{const{values:n,setFieldValue:r,errors:a}=e,i=At();return w.jsx(w.Fragment,{children:w.jsx(In,{value:n.name,autoFocus:!t,onChange:o=>r(bi.Fields.name,o,!1),errorMessage:a.name,label:i.wokspaces.workspaceName,hint:i.wokspaces.workspaceNameHint})})},kW=({data:e})=>{const t=At(),{router:n,uniqueId:r,queryClient:a,locale:i}=$r({data:e}),o=Rte({query:{uniqueId:r}}),l=SPe({queryClient:a}),u=EPe({queryClient:a});return w.jsx(Yo,{postHook:l,getSingleHook:o,patchHook:u,onCancel:()=>{n.goBackOrDefault(bi.Navigation.query(void 0,i))},onFinishUriResolver:(d,f)=>{var g;return bi.Navigation.single((g=d.data)==null?void 0:g.uniqueId,f)},Form:TPe,onEditTitle:t.wokspaces.editWorkspae,onCreateTitle:t.wokspaces.createNewWorkspace,data:e})},CPe=({row:e,uniqueIdHrefHandler:t,columns:n})=>{const r=At();return w.jsx(w.Fragment,{children:(e.children||[]).map(a=>w.jsxs("tr",{children:[w.jsx("td",{}),w.jsx("td",{}),n(r).map(i=>{let o=a.getCellValue?a.getCellValue(e):a[i.name];return i.name==="uniqueId"?w.jsx("td",{children:w.jsx(Ml,{href:t&&t(o),children:o})}):w.jsx("td",{children:o})})]}))})};function Pte({queryOptions:e,query:t,queryClient:n,execFnOverride:r,unauthorized:a,optionFn:i}){var k,_,A;const{options:o,execFn:l}=R.useContext(it),u=i?i(o):o,d=r?r(u):l?l(u):Tt(u);let g=`${"/cte-workspaces".substr(1)}?${oi.stringify(t)}`;const y=()=>d("GET",g),h=(k=u==null?void 0:u.headers)==null?void 0:k.authorization,v=h!="undefined"&&h!=null&&h!=null&&h!="null"&&!!h;let E=!0;!v&&!a&&(E=!1);const T=jn(["*abac.WorkspaceEntity",u,t],y,{cacheTime:1e3,retry:!1,keepPreviousData:!0,enabled:E,...e||{}}),C=((A=(_=T.data)==null?void 0:_.data)==null?void 0:A.items)||[];return{query:T,items:C,keyExtractor:P=>P.uniqueId}}Pte.UKEY="*abac.WorkspaceEntity";const xW=e=>[{name:bi.Fields.uniqueId,title:e.table.uniqueId,width:100},{name:bi.Fields.name,title:e.wokspaces.name,width:200}],kPe=()=>{const e=At(),t=n=>bi.Navigation.single(n);return w.jsx(w.Fragment,{children:w.jsx(Go,{columns:xW(e),queryHook:Pte,onRecordsDeleted:({queryClient:n})=>{n.invalidateQueries("*fireback.UserRoleWorkspace"),n.invalidateQueries("*fireback.WorkspaceEntity")},RowDetail:n=>w.jsx(CPe,{...n,columns:xW,uniqueIdHref:!0,Handler:t}),uniqueIdHrefHandler:t})})},xPe=()=>{const e=At();return w.jsx(w.Fragment,{children:w.jsx(Vo,{pageTitle:e.fbMenu.workspaces,newEntityHandler:({locale:t,router:n})=>{n.push(bi.Navigation.create())},children:w.jsx(kPe,{})})})},_Pe=()=>{var i;const e=xr(),t=At(),n=e.query.uniqueId;sr();const r=Rte({query:{uniqueId:n}});var a=(i=r.query.data)==null?void 0:i.data;return xh((a==null?void 0:a.name)||""),w.jsx(w.Fragment,{children:w.jsx(lo,{editEntityHandler:()=>{e.push(bi.Navigation.edit(n))},getSingleHook:r,children:w.jsx(uo,{entity:a,fields:[{label:t.wokspaces.name,elem:a==null?void 0:a.name}]})})})};function OPe(){return w.jsxs(w.Fragment,{children:[w.jsx(mt,{element:w.jsx(kW,{}),path:bi.Navigation.Rcreate}),w.jsx(mt,{element:w.jsx(kW,{}),path:bi.Navigation.Redit}),w.jsx(mt,{element:w.jsx(_Pe,{}),path:bi.Navigation.Rsingle}),w.jsx(mt,{element:w.jsx(xPe,{}),path:bi.Navigation.Rquery})]})}const RPe={gsmProviders:{apiKey:"Api key",apiKeyHint:"Api key",archiveTitle:"Gsm providers",editGsmProvider:"Edit gsm provider",invokeBody:"Invoke body",invokeBodyHint:"Invoke body",invokeUrl:"Invoke url",invokeUrlHint:"Invoke url",mainSenderNumber:"Main sender number",mainSenderNumberHint:"Main sender number",newGsmProvider:"New gsm provider",type:"Type",typeHint:"Type"}},PPe={gsmProviders:{apiKey:"Api key",apiKeyHint:"Api key",archiveTitle:"Gsm providers",editGsmProvider:"Edit gsm provider",invokeBody:"Invoke body",invokeBodyHint:"Invoke body",invokeUrl:"Invoke url",invokeUrlHint:"Invoke url",mainSenderNumber:"Main sender number",mainSenderNumberHint:"Main sender number",newGsmProvider:"New gsm provider",type:"Type",typeHint:"Type"}},hT={...RPe,$pl:PPe},APe=e=>[{name:"uniqueId",title:"uniqueId",width:200},{name:fa.Fields.apiKey,title:e.gsmProviders.apiKey,width:100},{name:fa.Fields.mainSenderNumber,title:e.gsmProviders.mainSenderNumber,width:100},{name:fa.Fields.type,title:e.gsmProviders.type,width:100},{name:fa.Fields.invokeUrl,title:e.gsmProviders.invokeUrl,width:100},{name:fa.Fields.invokeBody,title:e.gsmProviders.invokeBody,width:100}];function NPe(e){const{execFnOverride:t,queryClient:n,query:r}=e||{},{options:a,execFn:i}=R.useContext(it),o=t?t(a):i?i(a):Tt(a);let u=`${"/gsm-provider".substr(1)}?${new URLSearchParams(Gt(r)).toString()}`;const f=un(h=>o("DELETE",u,h)),g=(h,v)=>h;return{mutation:f,submit:(h,v)=>new Promise((E,T)=>{f.mutate(h,{onSuccess(C){n==null||n.setQueryData("*abac.GsmProviderEntity",k=>g(k)),n==null||n.invalidateQueries("*abac.GsmProviderEntity"),E(C)},onError(C){v==null||v.setErrors(Pn(C)),T(C)}})}),fnUpdater:g}}const MPe=()=>{const e=Kt(hT);return w.jsx(w.Fragment,{children:w.jsx(Go,{columns:APe(e),queryHook:Mj,uniqueIdHrefHandler:t=>fa.Navigation.single(t),deleteHook:NPe})})},IPe=()=>{const e=Kt(hT);return w.jsx(Vo,{pageTitle:e.gsmProviders.archiveTitle,newEntityHandler:({locale:t,router:n})=>{n.push(fa.Navigation.create())},children:w.jsx(MPe,{})})},DPe=({form:e,isEditing:t})=>{const{options:n}=R.useContext(it),{values:r,setValues:a,setFieldValue:i,errors:o}=e,l=Ks([{uniqueId:"terminal",title:"Terminal"},{uniqueId:"url",title:"Url"}]),u=Kt(hT);return w.jsxs(w.Fragment,{children:[w.jsx(In,{value:r.apiKey,onChange:d=>i(fa.Fields.apiKey,d,!1),errorMessage:o.apiKey,label:u.gsmProviders.apiKey,hint:u.gsmProviders.apiKeyHint}),w.jsx(In,{value:r.mainSenderNumber,onChange:d=>i(fa.Fields.mainSenderNumber,d,!1),errorMessage:o.mainSenderNumber,label:u.gsmProviders.mainSenderNumber,hint:u.gsmProviders.mainSenderNumberHint}),w.jsx(da,{querySource:l,value:r.type,fnLabelFormat:d=>d.title,keyExtractor:d=>d.uniqueId,onChange:d=>i(fa.Fields.type,d.uniqueId,!1),errorMessage:o.type,label:u.gsmProviders.type,hint:u.gsmProviders.typeHint}),w.jsx(In,{value:r.invokeUrl,onChange:d=>i(fa.Fields.invokeUrl,d,!1),errorMessage:o.invokeUrl,label:u.gsmProviders.invokeUrl,hint:u.gsmProviders.invokeUrlHint}),w.jsx(In,{value:r.invokeBody,onChange:d=>i(fa.Fields.invokeBody,d,!1),errorMessage:o.invokeBody,label:u.gsmProviders.invokeBody,hint:u.gsmProviders.invokeBodyHint})]})};function Ate({queryOptions:e,execFnOverride:t,query:n,queryClient:r,unauthorized:a}){var T;const{options:i,execFn:o}=R.useContext(it),l=t?t(i):o?o(i):Tt(i);let d=`${"/gsm-provider/:uniqueId".substr(1)}?${new URLSearchParams(Gt(n)).toString()}`,f=!0;d=d.replace(":uniqueId",n[":uniqueId".replace(":","")]),n[":uniqueId".replace(":","")]===void 0&&(f=!1);const g=()=>l("GET",d),y=(T=i==null?void 0:i.headers)==null?void 0:T.authorization,h=y!="undefined"&&y!=null&&y!=null&&y!="null"&&!!y;let v=!0;return f?!h&&!a&&(v=!1):v=!1,{query:jn([i,n,"*abac.GsmProviderEntity"],g,{cacheTime:1001,retry:!1,keepPreviousData:!0,enabled:v,...e||{}})}}function $Pe(e){let{queryClient:t,query:n,execFnOverride:r}=e||{};n=n||{};const{options:a,execFn:i}=R.useContext(it),o=r?r(a):i?i(a):Tt(a);let u=`${"/gsm-provider".substr(1)}?${new URLSearchParams(Gt(n)).toString()}`;const f=un(h=>o("POST",u,h)),g=(h,v)=>{var E;return h?(h.data&&(v!=null&&v.data)&&(h.data.items=[v.data,...((E=h==null?void 0:h.data)==null?void 0:E.items)||[]]),h):{data:{items:[]}}};return{mutation:f,submit:(h,v)=>new Promise((E,T)=>{f.mutate(h,{onSuccess(C){t==null||t.setQueryData("*abac.GsmProviderEntity",k=>g(k,C)),E(C)},onError(C){v==null||v.setErrors(Pn(C)),T(C)}})}),fnUpdater:g}}function LPe(e){let{queryClient:t,query:n,execFnOverride:r}=e||{};n=n||{};const{options:a,execFn:i}=R.useContext(it),o=r?r(a):i?i(a):Tt(a);let u=`${"/gsm-provider".substr(1)}?${new URLSearchParams(Gt(n)).toString()}`;const f=un(h=>o("PATCH",u,h)),g=(h,v)=>{var E;return h?(h.data&&(v!=null&&v.data)&&(h.data.items=[v.data,...((E=h==null?void 0:h.data)==null?void 0:E.items)||[]]),h):{data:{items:[]}}};return{mutation:f,submit:(h,v)=>new Promise((E,T)=>{f.mutate(h,{onSuccess(C){t==null||t.setQueriesData("*abac.GsmProviderEntity",k=>g(k,C)),E(C)},onError(C){v==null||v.setErrors(Pn(C)),T(C)}})}),fnUpdater:g}}const _W=({data:e})=>{const t=Kt(hT),{router:n,uniqueId:r,queryClient:a,locale:i}=$r({data:e}),o=Ate({query:{uniqueId:r}}),l=$Pe({queryClient:a}),u=LPe({queryClient:a});return w.jsx(Yo,{postHook:l,patchHook:u,getSingleHook:o,onCancel:()=>{n.goBackOrDefault(fa.Navigation.query(void 0,i))},onFinishUriResolver:(d,f)=>{var g;return fa.Navigation.single((g=d.data)==null?void 0:g.uniqueId,f)},Form:DPe,onEditTitle:t.gsmProviders.editGsmProvider,onCreateTitle:t.gsmProviders.newGsmProvider,data:e})},FPe=()=>{var a;const{uniqueId:e}=$r({}),t=Ate({query:{uniqueId:e}});var n=(a=t.query.data)==null?void 0:a.data;const r=Kt(hT);return w.jsx(w.Fragment,{children:w.jsx(lo,{editEntityHandler:({locale:i,router:o})=>{o.push(fa.Navigation.edit(e))},getSingleHook:t,children:w.jsx(uo,{entity:n,fields:[{elem:n==null?void 0:n.apiKey,label:r.gsmProviders.apiKey},{elem:n==null?void 0:n.mainSenderNumber,label:r.gsmProviders.mainSenderNumber},{elem:n==null?void 0:n.invokeUrl,label:r.gsmProviders.invokeUrl},{elem:n==null?void 0:n.invokeBody,label:r.gsmProviders.invokeBody}]})})})};function jPe(){return w.jsxs(w.Fragment,{children:[w.jsx(mt,{element:w.jsx(_W,{}),path:fa.Navigation.Rcreate}),w.jsx(mt,{element:w.jsx(FPe,{}),path:fa.Navigation.Rsingle}),w.jsx(mt,{element:w.jsx(_W,{}),path:fa.Navigation.Redit}),w.jsx(mt,{element:w.jsx(IPe,{}),path:fa.Navigation.Rquery})]})}function UPe(){const e=J_e(),t=oOe(),n=EOe(),r=jPe(),a=AOe(),i=WOe(),o=aPe(),l=dPe(),u=wPe(),d=OPe(),f=HRe(),g=bRe();return w.jsxs(mt,{path:"manage",children:[e,t,g,n,a,i,o,r,l,u,d,f]})}const BPe=()=>w.jsxs("div",{children:[w.jsx("h1",{className:"mt-4",children:"Dashboard"}),w.jsx("p",{children:"Welcome to the dashboard. You can see what's going on here."})]}),Ij=R.createContext({});function Dj(e){const t=R.useRef(null);return t.current===null&&(t.current=e()),t.current}const $j=typeof window<"u",Nte=$j?R.useLayoutEffect:R.useEffect,iO=R.createContext(null);function Lj(e,t){e.indexOf(t)===-1&&e.push(t)}function Fj(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}const Kd=(e,t,n)=>n>t?t:n{};const Xd={},Mte=e=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e);function Ite(e){return typeof e=="object"&&e!==null}const Dte=e=>/^0[^.\s]+$/u.test(e);function Uj(e){let t;return()=>(t===void 0&&(t=e()),t)}const Dl=e=>e,WPe=(e,t)=>n=>t(e(n)),mT=(...e)=>e.reduce(WPe),OE=(e,t,n)=>{const r=t-e;return r===0?1:(n-e)/r};class Bj{constructor(){this.subscriptions=[]}add(t){return Lj(this.subscriptions,t),()=>Fj(this.subscriptions,t)}notify(t,n,r){const a=this.subscriptions.length;if(a)if(a===1)this.subscriptions[0](t,n,r);else for(let i=0;ie*1e3,_c=e=>e/1e3;function $te(e,t){return t?e*(1e3/t):0}const Lte=(e,t,n)=>(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e,zPe=1e-7,qPe=12;function HPe(e,t,n,r,a){let i,o,l=0;do o=t+(n-t)/2,i=Lte(o,r,a)-e,i>0?n=o:t=o;while(Math.abs(i)>zPe&&++lHPe(i,0,1,e,n);return i=>i===0||i===1?i:Lte(a(i),t,r)}const Fte=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,jte=e=>t=>1-e(1-t),Ute=gT(.33,1.53,.69,.99),Wj=jte(Ute),Bte=Fte(Wj),Wte=e=>(e*=2)<1?.5*Wj(e):.5*(2-Math.pow(2,-10*(e-1))),zj=e=>1-Math.sin(Math.acos(e)),zte=jte(zj),qte=Fte(zj),VPe=gT(.42,0,1,1),GPe=gT(0,0,.58,1),Hte=gT(.42,0,.58,1),YPe=e=>Array.isArray(e)&&typeof e[0]!="number",Vte=e=>Array.isArray(e)&&typeof e[0]=="number",KPe={linear:Dl,easeIn:VPe,easeInOut:Hte,easeOut:GPe,circIn:zj,circInOut:qte,circOut:zte,backIn:Wj,backInOut:Bte,backOut:Ute,anticipate:Wte},XPe=e=>typeof e=="string",OW=e=>{if(Vte(e)){jj(e.length===4);const[t,n,r,a]=e;return gT(t,n,r,a)}else if(XPe(e))return KPe[e];return e},Wk=["setup","read","resolveKeyframes","preUpdate","update","preRender","render","postRender"],RW={value:null};function QPe(e,t){let n=new Set,r=new Set,a=!1,i=!1;const o=new WeakSet;let l={delta:0,timestamp:0,isProcessing:!1},u=0;function d(g){o.has(g)&&(f.schedule(g),e()),u++,g(l)}const f={schedule:(g,y=!1,h=!1)=>{const E=h&&a?n:r;return y&&o.add(g),E.has(g)||E.add(g),g},cancel:g=>{r.delete(g),o.delete(g)},process:g=>{if(l=g,a){i=!0;return}a=!0,[n,r]=[r,n],n.forEach(d),t&&RW.value&&RW.value.frameloop[t].push(u),u=0,n.clear(),a=!1,i&&(i=!1,f.process(g))}};return f}const JPe=40;function Gte(e,t){let n=!1,r=!0;const a={delta:0,timestamp:0,isProcessing:!1},i=()=>n=!0,o=Wk.reduce((_,A)=>(_[A]=QPe(i,t?A:void 0),_),{}),{setup:l,read:u,resolveKeyframes:d,preUpdate:f,update:g,preRender:y,render:h,postRender:v}=o,E=()=>{const _=Xd.useManualTiming?a.timestamp:performance.now();n=!1,Xd.useManualTiming||(a.delta=r?1e3/60:Math.max(Math.min(_-a.timestamp,JPe),1)),a.timestamp=_,a.isProcessing=!0,l.process(a),u.process(a),d.process(a),f.process(a),g.process(a),y.process(a),h.process(a),v.process(a),a.isProcessing=!1,n&&t&&(r=!1,e(E))},T=()=>{n=!0,r=!0,a.isProcessing||e(E)};return{schedule:Wk.reduce((_,A)=>{const P=o[A];return _[A]=(N,I=!1,L=!1)=>(n||T(),P.schedule(N,I,L)),_},{}),cancel:_=>{for(let A=0;A(vx===void 0&&ps.set(Ui.isProcessing||Xd.useManualTiming?Ui.timestamp:performance.now()),vx),set:e=>{vx=e,queueMicrotask(ZPe)}},Yte=e=>t=>typeof t=="string"&&t.startsWith(e),qj=Yte("--"),eAe=Yte("var(--"),Hj=e=>eAe(e)?tAe.test(e.split("/*")[0].trim()):!1,tAe=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu,K0={test:e=>typeof e=="number",parse:parseFloat,transform:e=>e},RE={...K0,transform:e=>Kd(0,1,e)},zk={...K0,default:1},Q1=e=>Math.round(e*1e5)/1e5,Vj=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function nAe(e){return e==null}const rAe=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,Gj=(e,t)=>n=>!!(typeof n=="string"&&rAe.test(n)&&n.startsWith(e)||t&&!nAe(n)&&Object.prototype.hasOwnProperty.call(n,t)),Kte=(e,t,n)=>r=>{if(typeof r!="string")return r;const[a,i,o,l]=r.match(Vj);return{[e]:parseFloat(a),[t]:parseFloat(i),[n]:parseFloat(o),alpha:l!==void 0?parseFloat(l):1}},aAe=e=>Kd(0,255,e),FA={...K0,transform:e=>Math.round(aAe(e))},Pv={test:Gj("rgb","red"),parse:Kte("red","green","blue"),transform:({red:e,green:t,blue:n,alpha:r=1})=>"rgba("+FA.transform(e)+", "+FA.transform(t)+", "+FA.transform(n)+", "+Q1(RE.transform(r))+")"};function iAe(e){let t="",n="",r="",a="";return e.length>5?(t=e.substring(1,3),n=e.substring(3,5),r=e.substring(5,7),a=e.substring(7,9)):(t=e.substring(1,2),n=e.substring(2,3),r=e.substring(3,4),a=e.substring(4,5),t+=t,n+=n,r+=r,a+=a),{red:parseInt(t,16),green:parseInt(n,16),blue:parseInt(r,16),alpha:a?parseInt(a,16)/255:1}}const I3={test:Gj("#"),parse:iAe,transform:Pv.transform},vT=e=>({test:t=>typeof t=="string"&&t.endsWith(e)&&t.split(" ").length===1,parse:parseFloat,transform:t=>`${t}${e}`}),th=vT("deg"),Oc=vT("%"),mn=vT("px"),oAe=vT("vh"),sAe=vT("vw"),PW={...Oc,parse:e=>Oc.parse(e)/100,transform:e=>Oc.transform(e*100)},r0={test:Gj("hsl","hue"),parse:Kte("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:n,alpha:r=1})=>"hsla("+Math.round(e)+", "+Oc.transform(Q1(t))+", "+Oc.transform(Q1(n))+", "+Q1(RE.transform(r))+")"},Ya={test:e=>Pv.test(e)||I3.test(e)||r0.test(e),parse:e=>Pv.test(e)?Pv.parse(e):r0.test(e)?r0.parse(e):I3.parse(e),transform:e=>typeof e=="string"?e:e.hasOwnProperty("red")?Pv.transform(e):r0.transform(e),getAnimatableNone:e=>{const t=Ya.parse(e);return t.alpha=0,Ya.transform(t)}},lAe=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function uAe(e){var t,n;return isNaN(e)&&typeof e=="string"&&(((t=e.match(Vj))==null?void 0:t.length)||0)+(((n=e.match(lAe))==null?void 0:n.length)||0)>0}const Xte="number",Qte="color",cAe="var",dAe="var(",AW="${}",fAe=/var\s*\(\s*--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)|#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\)|-?(?:\d+(?:\.\d+)?|\.\d+)/giu;function PE(e){const t=e.toString(),n=[],r={color:[],number:[],var:[]},a=[];let i=0;const l=t.replace(fAe,u=>(Ya.test(u)?(r.color.push(i),a.push(Qte),n.push(Ya.parse(u))):u.startsWith(dAe)?(r.var.push(i),a.push(cAe),n.push(u)):(r.number.push(i),a.push(Xte),n.push(parseFloat(u))),++i,AW)).split(AW);return{values:n,split:l,indexes:r,types:a}}function Jte(e){return PE(e).values}function Zte(e){const{split:t,types:n}=PE(e),r=t.length;return a=>{let i="";for(let o=0;otypeof e=="number"?0:Ya.test(e)?Ya.getAnimatableNone(e):e;function hAe(e){const t=Jte(e);return Zte(e)(t.map(pAe))}const bh={test:uAe,parse:Jte,createTransformer:Zte,getAnimatableNone:hAe};function jA(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+(t-e)*6*n:n<1/2?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function mAe({hue:e,saturation:t,lightness:n,alpha:r}){e/=360,t/=100,n/=100;let a=0,i=0,o=0;if(!t)a=i=o=n;else{const l=n<.5?n*(1+t):n+t-n*t,u=2*n-l;a=jA(u,l,e+1/3),i=jA(u,l,e),o=jA(u,l,e-1/3)}return{red:Math.round(a*255),green:Math.round(i*255),blue:Math.round(o*255),alpha:r}}function l_(e,t){return n=>n>0?t:e}const pa=(e,t,n)=>e+(t-e)*n,UA=(e,t,n)=>{const r=e*e,a=n*(t*t-r)+r;return a<0?0:Math.sqrt(a)},gAe=[I3,Pv,r0],vAe=e=>gAe.find(t=>t.test(e));function NW(e){const t=vAe(e);if(!t)return!1;let n=t.parse(e);return t===r0&&(n=mAe(n)),n}const MW=(e,t)=>{const n=NW(e),r=NW(t);if(!n||!r)return l_(e,t);const a={...n};return i=>(a.red=UA(n.red,r.red,i),a.green=UA(n.green,r.green,i),a.blue=UA(n.blue,r.blue,i),a.alpha=pa(n.alpha,r.alpha,i),Pv.transform(a))},D3=new Set(["none","hidden"]);function yAe(e,t){return D3.has(e)?n=>n<=0?e:t:n=>n>=1?t:e}function bAe(e,t){return n=>pa(e,t,n)}function Yj(e){return typeof e=="number"?bAe:typeof e=="string"?Hj(e)?l_:Ya.test(e)?MW:EAe:Array.isArray(e)?ene:typeof e=="object"?Ya.test(e)?MW:wAe:l_}function ene(e,t){const n=[...e],r=n.length,a=e.map((i,o)=>Yj(i)(i,t[o]));return i=>{for(let o=0;o{for(const i in r)n[i]=r[i](a);return n}}function SAe(e,t){const n=[],r={color:0,var:0,number:0};for(let a=0;a{const n=bh.createTransformer(t),r=PE(e),a=PE(t);return r.indexes.var.length===a.indexes.var.length&&r.indexes.color.length===a.indexes.color.length&&r.indexes.number.length>=a.indexes.number.length?D3.has(e)&&!a.values.length||D3.has(t)&&!r.values.length?yAe(e,t):mT(ene(SAe(r,a),a.values),n):l_(e,t)};function tne(e,t,n){return typeof e=="number"&&typeof t=="number"&&typeof n=="number"?pa(e,t,n):Yj(e)(e,t)}const TAe=e=>{const t=({timestamp:n})=>e(n);return{start:(n=!0)=>ma.update(t,n),stop:()=>yh(t),now:()=>Ui.isProcessing?Ui.timestamp:ps.now()}},nne=(e,t,n=10)=>{let r="";const a=Math.max(Math.round(t/n),2);for(let i=0;i=u_?1/0:t}function CAe(e,t=100,n){const r=n({...e,keyframes:[0,t]}),a=Math.min(Kj(r),u_);return{type:"keyframes",ease:i=>r.next(a*i).value/t,duration:_c(a)}}const kAe=5;function rne(e,t,n){const r=Math.max(t-kAe,0);return $te(n-e(r),t-r)}const Ta={stiffness:100,damping:10,mass:1,velocity:0,duration:800,bounce:.3,visualDuration:.3,restSpeed:{granular:.01,default:2},restDelta:{granular:.005,default:.5},minDuration:.01,maxDuration:10,minDamping:.05,maxDamping:1},BA=.001;function xAe({duration:e=Ta.duration,bounce:t=Ta.bounce,velocity:n=Ta.velocity,mass:r=Ta.mass}){let a,i,o=1-t;o=Kd(Ta.minDamping,Ta.maxDamping,o),e=Kd(Ta.minDuration,Ta.maxDuration,_c(e)),o<1?(a=d=>{const f=d*o,g=f*e,y=f-n,h=$3(d,o),v=Math.exp(-g);return BA-y/h*v},i=d=>{const g=d*o*e,y=g*n+n,h=Math.pow(o,2)*Math.pow(d,2)*e,v=Math.exp(-g),E=$3(Math.pow(d,2),o);return(-a(d)+BA>0?-1:1)*((y-h)*v)/E}):(a=d=>{const f=Math.exp(-d*e),g=(d-n)*e+1;return-BA+f*g},i=d=>{const f=Math.exp(-d*e),g=(n-d)*(e*e);return f*g});const l=5/e,u=OAe(a,i,l);if(e=xc(e),isNaN(u))return{stiffness:Ta.stiffness,damping:Ta.damping,duration:e};{const d=Math.pow(u,2)*r;return{stiffness:d,damping:o*2*Math.sqrt(r*d),duration:e}}}const _Ae=12;function OAe(e,t,n){let r=n;for(let a=1;a<_Ae;a++)r=r-e(r)/t(r);return r}function $3(e,t){return e*Math.sqrt(1-t*t)}const RAe=["duration","bounce"],PAe=["stiffness","damping","mass"];function IW(e,t){return t.some(n=>e[n]!==void 0)}function AAe(e){let t={velocity:Ta.velocity,stiffness:Ta.stiffness,damping:Ta.damping,mass:Ta.mass,isResolvedFromDuration:!1,...e};if(!IW(e,PAe)&&IW(e,RAe))if(e.visualDuration){const n=e.visualDuration,r=2*Math.PI/(n*1.2),a=r*r,i=2*Kd(.05,1,1-(e.bounce||0))*Math.sqrt(a);t={...t,mass:Ta.mass,stiffness:a,damping:i}}else{const n=xAe(e);t={...t,...n,mass:Ta.mass},t.isResolvedFromDuration=!0}return t}function c_(e=Ta.visualDuration,t=Ta.bounce){const n=typeof e!="object"?{visualDuration:e,keyframes:[0,1],bounce:t}:e;let{restSpeed:r,restDelta:a}=n;const i=n.keyframes[0],o=n.keyframes[n.keyframes.length-1],l={done:!1,value:i},{stiffness:u,damping:d,mass:f,duration:g,velocity:y,isResolvedFromDuration:h}=AAe({...n,velocity:-_c(n.velocity||0)}),v=y||0,E=d/(2*Math.sqrt(u*f)),T=o-i,C=_c(Math.sqrt(u/f)),k=Math.abs(T)<5;r||(r=k?Ta.restSpeed.granular:Ta.restSpeed.default),a||(a=k?Ta.restDelta.granular:Ta.restDelta.default);let _;if(E<1){const P=$3(C,E);_=N=>{const I=Math.exp(-E*C*N);return o-I*((v+E*C*T)/P*Math.sin(P*N)+T*Math.cos(P*N))}}else if(E===1)_=P=>o-Math.exp(-C*P)*(T+(v+C*T)*P);else{const P=C*Math.sqrt(E*E-1);_=N=>{const I=Math.exp(-E*C*N),L=Math.min(P*N,300);return o-I*((v+E*C*T)*Math.sinh(L)+P*T*Math.cosh(L))/P}}const A={calculatedDuration:h&&g||null,next:P=>{const N=_(P);if(h)l.done=P>=g;else{let I=P===0?v:0;E<1&&(I=P===0?xc(v):rne(_,P,N));const L=Math.abs(I)<=r,j=Math.abs(o-N)<=a;l.done=L&&j}return l.value=l.done?o:N,l},toString:()=>{const P=Math.min(Kj(A),u_),N=nne(I=>A.next(P*I).value,P,30);return P+"ms "+N},toTransition:()=>{}};return A}c_.applyToOptions=e=>{const t=CAe(e,100,c_);return e.ease=t.ease,e.duration=xc(t.duration),e.type="keyframes",e};function L3({keyframes:e,velocity:t=0,power:n=.8,timeConstant:r=325,bounceDamping:a=10,bounceStiffness:i=500,modifyTarget:o,min:l,max:u,restDelta:d=.5,restSpeed:f}){const g=e[0],y={done:!1,value:g},h=L=>l!==void 0&&Lu,v=L=>l===void 0?u:u===void 0||Math.abs(l-L)-E*Math.exp(-L/r),_=L=>C+k(L),A=L=>{const j=k(L),z=_(L);y.done=Math.abs(j)<=d,y.value=y.done?C:z};let P,N;const I=L=>{h(y.value)&&(P=L,N=c_({keyframes:[y.value,v(y.value)],velocity:rne(_,L,y.value),damping:a,stiffness:i,restDelta:d,restSpeed:f}))};return I(0),{calculatedDuration:null,next:L=>{let j=!1;return!N&&P===void 0&&(j=!0,A(L),I(L)),P!==void 0&&L>=P?N.next(L-P):(!j&&A(L),y)}}}function NAe(e,t,n){const r=[],a=n||Xd.mix||tne,i=e.length-1;for(let o=0;ot[0];if(i===2&&t[0]===t[1])return()=>t[1];const o=e[0]===e[1];e[0]>e[i-1]&&(e=[...e].reverse(),t=[...t].reverse());const l=NAe(t,r,a),u=l.length,d=f=>{if(o&&f1)for(;gd(Kd(e[0],e[i-1],f)):d}function IAe(e,t){const n=e[e.length-1];for(let r=1;r<=t;r++){const a=OE(0,t,r);e.push(pa(n,1,a))}}function DAe(e){const t=[0];return IAe(t,e.length-1),t}function $Ae(e,t){return e.map(n=>n*t)}function LAe(e,t){return e.map(()=>t||Hte).splice(0,e.length-1)}function J1({duration:e=300,keyframes:t,times:n,ease:r="easeInOut"}){const a=YPe(r)?r.map(OW):OW(r),i={done:!1,value:t[0]},o=$Ae(n&&n.length===t.length?n:DAe(t),e),l=MAe(o,t,{ease:Array.isArray(a)?a:LAe(t,a)});return{calculatedDuration:e,next:u=>(i.value=l(u),i.done=u>=e,i)}}const FAe=e=>e!==null;function Xj(e,{repeat:t,repeatType:n="loop"},r,a=1){const i=e.filter(FAe),l=a<0||t&&n!=="loop"&&t%2===1?0:i.length-1;return!l||r===void 0?i[l]:r}const jAe={decay:L3,inertia:L3,tween:J1,keyframes:J1,spring:c_};function ane(e){typeof e.type=="string"&&(e.type=jAe[e.type])}class Qj{constructor(){this.updateFinished()}get finished(){return this._finished}updateFinished(){this._finished=new Promise(t=>{this.resolve=t})}notifyFinished(){this.resolve()}then(t,n){return this.finished.then(t,n)}}const UAe=e=>e/100;class Jj extends Qj{constructor(t){super(),this.state="idle",this.startTime=null,this.isStopped=!1,this.currentTime=0,this.holdTime=null,this.playbackSpeed=1,this.stop=()=>{var r,a;const{motionValue:n}=this.options;n&&n.updatedAt!==ps.now()&&this.tick(ps.now()),this.isStopped=!0,this.state!=="idle"&&(this.teardown(),(a=(r=this.options).onStop)==null||a.call(r))},this.options=t,this.initAnimation(),this.play(),t.autoplay===!1&&this.pause()}initAnimation(){const{options:t}=this;ane(t);const{type:n=J1,repeat:r=0,repeatDelay:a=0,repeatType:i,velocity:o=0}=t;let{keyframes:l}=t;const u=n||J1;u!==J1&&typeof l[0]!="number"&&(this.mixKeyframes=mT(UAe,tne(l[0],l[1])),l=[0,100]);const d=u({...t,keyframes:l});i==="mirror"&&(this.mirroredGenerator=u({...t,keyframes:[...l].reverse(),velocity:-o})),d.calculatedDuration===null&&(d.calculatedDuration=Kj(d));const{calculatedDuration:f}=d;this.calculatedDuration=f,this.resolvedDuration=f+a,this.totalDuration=this.resolvedDuration*(r+1)-a,this.generator=d}updateTime(t){const n=Math.round(t-this.startTime)*this.playbackSpeed;this.holdTime!==null?this.currentTime=this.holdTime:this.currentTime=n}tick(t,n=!1){const{generator:r,totalDuration:a,mixKeyframes:i,mirroredGenerator:o,resolvedDuration:l,calculatedDuration:u}=this;if(this.startTime===null)return r.next(0);const{delay:d=0,keyframes:f,repeat:g,repeatType:y,repeatDelay:h,type:v,onUpdate:E,finalKeyframe:T}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,t):this.speed<0&&(this.startTime=Math.min(t-a/this.speed,this.startTime)),n?this.currentTime=t:this.updateTime(t);const C=this.currentTime-d*(this.playbackSpeed>=0?1:-1),k=this.playbackSpeed>=0?C<0:C>a;this.currentTime=Math.max(C,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=a);let _=this.currentTime,A=r;if(g){const L=Math.min(this.currentTime,a)/l;let j=Math.floor(L),z=L%1;!z&&L>=1&&(z=1),z===1&&j--,j=Math.min(j,g+1),!!(j%2)&&(y==="reverse"?(z=1-z,h&&(z-=h/l)):y==="mirror"&&(A=o)),_=Kd(0,1,z)*l}const P=k?{done:!1,value:f[0]}:A.next(_);i&&(P.value=i(P.value));let{done:N}=P;!k&&u!==null&&(N=this.playbackSpeed>=0?this.currentTime>=a:this.currentTime<=0);const I=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&N);return I&&v!==L3&&(P.value=Xj(f,this.options,T,this.speed)),E&&E(P.value),I&&this.finish(),P}then(t,n){return this.finished.then(t,n)}get duration(){return _c(this.calculatedDuration)}get time(){return _c(this.currentTime)}set time(t){var n;t=xc(t),this.currentTime=t,this.startTime===null||this.holdTime!==null||this.playbackSpeed===0?this.holdTime=t:this.driver&&(this.startTime=this.driver.now()-t/this.playbackSpeed),(n=this.driver)==null||n.start(!1)}get speed(){return this.playbackSpeed}set speed(t){this.updateTime(ps.now());const n=this.playbackSpeed!==t;this.playbackSpeed=t,n&&(this.time=_c(this.currentTime))}play(){var a,i;if(this.isStopped)return;const{driver:t=TAe,startTime:n}=this.options;this.driver||(this.driver=t(o=>this.tick(o))),(i=(a=this.options).onPlay)==null||i.call(a);const r=this.driver.now();this.state==="finished"?(this.updateFinished(),this.startTime=r):this.holdTime!==null?this.startTime=r-this.holdTime:this.startTime||(this.startTime=n??r),this.state==="finished"&&this.speed<0&&(this.startTime+=this.calculatedDuration),this.holdTime=null,this.state="running",this.driver.start()}pause(){this.state="paused",this.updateTime(ps.now()),this.holdTime=this.currentTime}complete(){this.state!=="running"&&this.play(),this.state="finished",this.holdTime=null}finish(){var t,n;this.notifyFinished(),this.teardown(),this.state="finished",(n=(t=this.options).onComplete)==null||n.call(t)}cancel(){var t,n;this.holdTime=null,this.startTime=0,this.tick(0),this.teardown(),(n=(t=this.options).onCancel)==null||n.call(t)}teardown(){this.state="idle",this.stopDriver(),this.startTime=this.holdTime=null}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(t){return this.startTime=0,this.tick(t,!0)}attachTimeline(t){var n;return this.options.allowFlatten&&(this.options.type="keyframes",this.options.ease="linear",this.initAnimation()),(n=this.driver)==null||n.stop(),t.observe(this)}}function BAe(e){for(let t=1;te*180/Math.PI,F3=e=>{const t=Av(Math.atan2(e[1],e[0]));return j3(t)},WAe={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:e=>(Math.abs(e[0])+Math.abs(e[3]))/2,rotate:F3,rotateZ:F3,skewX:e=>Av(Math.atan(e[1])),skewY:e=>Av(Math.atan(e[2])),skew:e=>(Math.abs(e[1])+Math.abs(e[2]))/2},j3=e=>(e=e%360,e<0&&(e+=360),e),DW=F3,$W=e=>Math.sqrt(e[0]*e[0]+e[1]*e[1]),LW=e=>Math.sqrt(e[4]*e[4]+e[5]*e[5]),zAe={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:$W,scaleY:LW,scale:e=>($W(e)+LW(e))/2,rotateX:e=>j3(Av(Math.atan2(e[6],e[5]))),rotateY:e=>j3(Av(Math.atan2(-e[2],e[0]))),rotateZ:DW,rotate:DW,skewX:e=>Av(Math.atan(e[4])),skewY:e=>Av(Math.atan(e[1])),skew:e=>(Math.abs(e[1])+Math.abs(e[4]))/2};function U3(e){return e.includes("scale")?1:0}function B3(e,t){if(!e||e==="none")return U3(t);const n=e.match(/^matrix3d\(([-\d.e\s,]+)\)$/u);let r,a;if(n)r=zAe,a=n;else{const l=e.match(/^matrix\(([-\d.e\s,]+)\)$/u);r=WAe,a=l}if(!a)return U3(t);const i=r[t],o=a[1].split(",").map(HAe);return typeof i=="function"?i(o):o[i]}const qAe=(e,t)=>{const{transform:n="none"}=getComputedStyle(e);return B3(n,t)};function HAe(e){return parseFloat(e.trim())}const X0=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],Q0=new Set(X0),FW=e=>e===K0||e===mn,VAe=new Set(["x","y","z"]),GAe=X0.filter(e=>!VAe.has(e));function YAe(e){const t=[];return GAe.forEach(n=>{const r=e.getValue(n);r!==void 0&&(t.push([n,r.get()]),r.set(n.startsWith("scale")?1:0))}),t}const Xv={width:({x:e},{paddingLeft:t="0",paddingRight:n="0"})=>e.max-e.min-parseFloat(t)-parseFloat(n),height:({y:e},{paddingTop:t="0",paddingBottom:n="0"})=>e.max-e.min-parseFloat(t)-parseFloat(n),top:(e,{top:t})=>parseFloat(t),left:(e,{left:t})=>parseFloat(t),bottom:({y:e},{top:t})=>parseFloat(t)+(e.max-e.min),right:({x:e},{left:t})=>parseFloat(t)+(e.max-e.min),x:(e,{transform:t})=>B3(t,"x"),y:(e,{transform:t})=>B3(t,"y")};Xv.translateX=Xv.x;Xv.translateY=Xv.y;const Qv=new Set;let W3=!1,z3=!1,q3=!1;function ine(){if(z3){const e=Array.from(Qv).filter(r=>r.needsMeasurement),t=new Set(e.map(r=>r.element)),n=new Map;t.forEach(r=>{const a=YAe(r);a.length&&(n.set(r,a),r.render())}),e.forEach(r=>r.measureInitialState()),t.forEach(r=>{r.render();const a=n.get(r);a&&a.forEach(([i,o])=>{var l;(l=r.getValue(i))==null||l.set(o)})}),e.forEach(r=>r.measureEndState()),e.forEach(r=>{r.suspendedScrollY!==void 0&&window.scrollTo(0,r.suspendedScrollY)})}z3=!1,W3=!1,Qv.forEach(e=>e.complete(q3)),Qv.clear()}function one(){Qv.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(z3=!0)})}function KAe(){q3=!0,one(),ine(),q3=!1}class Zj{constructor(t,n,r,a,i,o=!1){this.state="pending",this.isAsync=!1,this.needsMeasurement=!1,this.unresolvedKeyframes=[...t],this.onComplete=n,this.name=r,this.motionValue=a,this.element=i,this.isAsync=o}scheduleResolve(){this.state="scheduled",this.isAsync?(Qv.add(this),W3||(W3=!0,ma.read(one),ma.resolveKeyframes(ine))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:t,name:n,element:r,motionValue:a}=this;if(t[0]===null){const i=a==null?void 0:a.get(),o=t[t.length-1];if(i!==void 0)t[0]=i;else if(r&&n){const l=r.readValue(n,o);l!=null&&(t[0]=l)}t[0]===void 0&&(t[0]=o),a&&i===void 0&&a.set(t[0])}BAe(t)}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(t=!1){this.state="complete",this.onComplete(this.unresolvedKeyframes,this.finalKeyframe,t),Qv.delete(this)}cancel(){this.state==="scheduled"&&(Qv.delete(this),this.state="pending")}resume(){this.state==="pending"&&this.scheduleResolve()}}const XAe=e=>e.startsWith("--");function QAe(e,t,n){XAe(t)?e.style.setProperty(t,n):e.style[t]=n}const JAe=Uj(()=>window.ScrollTimeline!==void 0),ZAe={};function eNe(e,t){const n=Uj(e);return()=>ZAe[t]??n()}const sne=eNe(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch{return!1}return!0},"linearEasing"),U1=([e,t,n,r])=>`cubic-bezier(${e}, ${t}, ${n}, ${r})`,jW={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:U1([0,.65,.55,1]),circOut:U1([.55,0,1,.45]),backIn:U1([.31,.01,.66,-.59]),backOut:U1([.33,1.53,.69,.99])};function lne(e,t){if(e)return typeof e=="function"?sne()?nne(e,t):"ease-out":Vte(e)?U1(e):Array.isArray(e)?e.map(n=>lne(n,t)||jW.easeOut):jW[e]}function tNe(e,t,n,{delay:r=0,duration:a=300,repeat:i=0,repeatType:o="loop",ease:l="easeOut",times:u}={},d=void 0){const f={[t]:n};u&&(f.offset=u);const g=lne(l,a);Array.isArray(g)&&(f.easing=g);const y={delay:r,duration:a,easing:Array.isArray(g)?"linear":g,fill:"both",iterations:i+1,direction:o==="reverse"?"alternate":"normal"};return d&&(y.pseudoElement=d),e.animate(f,y)}function une(e){return typeof e=="function"&&"applyToOptions"in e}function nNe({type:e,...t}){return une(e)&&sne()?e.applyToOptions(t):(t.duration??(t.duration=300),t.ease??(t.ease="easeOut"),t)}class rNe extends Qj{constructor(t){if(super(),this.finishedTime=null,this.isStopped=!1,!t)return;const{element:n,name:r,keyframes:a,pseudoElement:i,allowFlatten:o=!1,finalKeyframe:l,onComplete:u}=t;this.isPseudoElement=!!i,this.allowFlatten=o,this.options=t,jj(typeof t.type!="string");const d=nNe(t);this.animation=tNe(n,r,a,d,i),d.autoplay===!1&&this.animation.pause(),this.animation.onfinish=()=>{if(this.finishedTime=this.time,!i){const f=Xj(a,this.options,l,this.speed);this.updateMotionValue?this.updateMotionValue(f):QAe(n,r,f),this.animation.cancel()}u==null||u(),this.notifyFinished()}}play(){this.isStopped||(this.animation.play(),this.state==="finished"&&this.updateFinished())}pause(){this.animation.pause()}complete(){var t,n;(n=(t=this.animation).finish)==null||n.call(t)}cancel(){try{this.animation.cancel()}catch{}}stop(){if(this.isStopped)return;this.isStopped=!0;const{state:t}=this;t==="idle"||t==="finished"||(this.updateMotionValue?this.updateMotionValue():this.commitStyles(),this.isPseudoElement||this.cancel())}commitStyles(){var t,n;this.isPseudoElement||(n=(t=this.animation).commitStyles)==null||n.call(t)}get duration(){var n,r;const t=((r=(n=this.animation.effect)==null?void 0:n.getComputedTiming)==null?void 0:r.call(n).duration)||0;return _c(Number(t))}get time(){return _c(Number(this.animation.currentTime)||0)}set time(t){this.finishedTime=null,this.animation.currentTime=xc(t)}get speed(){return this.animation.playbackRate}set speed(t){t<0&&(this.finishedTime=null),this.animation.playbackRate=t}get state(){return this.finishedTime!==null?"finished":this.animation.playState}get startTime(){return Number(this.animation.startTime)}set startTime(t){this.animation.startTime=t}attachTimeline({timeline:t,observe:n}){var r;return this.allowFlatten&&((r=this.animation.effect)==null||r.updateTiming({easing:"linear"})),this.animation.onfinish=null,t&&JAe()?(this.animation.timeline=t,Dl):n(this)}}const cne={anticipate:Wte,backInOut:Bte,circInOut:qte};function aNe(e){return e in cne}function iNe(e){typeof e.ease=="string"&&aNe(e.ease)&&(e.ease=cne[e.ease])}const UW=10;class oNe extends rNe{constructor(t){iNe(t),ane(t),super(t),t.startTime&&(this.startTime=t.startTime),this.options=t}updateMotionValue(t){const{motionValue:n,onUpdate:r,onComplete:a,element:i,...o}=this.options;if(!n)return;if(t!==void 0){n.set(t);return}const l=new Jj({...o,autoplay:!1}),u=xc(this.finishedTime??this.time);n.setWithVelocity(l.sample(u-UW).value,l.sample(u).value,UW),l.stop()}}const BW=(e,t)=>t==="zIndex"?!1:!!(typeof e=="number"||Array.isArray(e)||typeof e=="string"&&(bh.test(e)||e==="0")&&!e.startsWith("url("));function sNe(e){const t=e[0];if(e.length===1)return!0;for(let n=0;nObject.hasOwnProperty.call(Element.prototype,"animate"));function dNe(e){var d;const{motionValue:t,name:n,repeatDelay:r,repeatType:a,damping:i,type:o}=e;if(!e4((d=t==null?void 0:t.owner)==null?void 0:d.current))return!1;const{onUpdate:l,transformTemplate:u}=t.owner.getProps();return cNe()&&n&&uNe.has(n)&&(n!=="transform"||!u)&&!l&&!r&&a!=="mirror"&&i!==0&&o!=="inertia"}const fNe=40;class pNe extends Qj{constructor({autoplay:t=!0,delay:n=0,type:r="keyframes",repeat:a=0,repeatDelay:i=0,repeatType:o="loop",keyframes:l,name:u,motionValue:d,element:f,...g}){var v;super(),this.stop=()=>{var E,T;this._animation&&(this._animation.stop(),(E=this.stopTimeline)==null||E.call(this)),(T=this.keyframeResolver)==null||T.cancel()},this.createdAt=ps.now();const y={autoplay:t,delay:n,type:r,repeat:a,repeatDelay:i,repeatType:o,name:u,motionValue:d,element:f,...g},h=(f==null?void 0:f.KeyframeResolver)||Zj;this.keyframeResolver=new h(l,(E,T,C)=>this.onKeyframesResolved(E,T,y,!C),u,d,f),(v=this.keyframeResolver)==null||v.scheduleResolve()}onKeyframesResolved(t,n,r,a){this.keyframeResolver=void 0;const{name:i,type:o,velocity:l,delay:u,isHandoff:d,onUpdate:f}=r;this.resolvedAt=ps.now(),lNe(t,i,o,l)||((Xd.instantAnimations||!u)&&(f==null||f(Xj(t,r,n))),t[0]=t[t.length-1],r.duration=0,r.repeat=0);const y={startTime:a?this.resolvedAt?this.resolvedAt-this.createdAt>fNe?this.resolvedAt:this.createdAt:this.createdAt:void 0,finalKeyframe:n,...r,keyframes:t},h=!d&&dNe(y)?new oNe({...y,element:y.motionValue.owner.current}):new Jj(y);h.finished.then(()=>this.notifyFinished()).catch(Dl),this.pendingTimeline&&(this.stopTimeline=h.attachTimeline(this.pendingTimeline),this.pendingTimeline=void 0),this._animation=h}get finished(){return this._animation?this.animation.finished:this._finished}then(t,n){return this.finished.finally(t).then(()=>{})}get animation(){var t;return this._animation||((t=this.keyframeResolver)==null||t.resume(),KAe()),this._animation}get duration(){return this.animation.duration}get time(){return this.animation.time}set time(t){this.animation.time=t}get speed(){return this.animation.speed}get state(){return this.animation.state}set speed(t){this.animation.speed=t}get startTime(){return this.animation.startTime}attachTimeline(t){return this._animation?this.stopTimeline=this.animation.attachTimeline(t):this.pendingTimeline=t,()=>this.stop()}play(){this.animation.play()}pause(){this.animation.pause()}complete(){this.animation.complete()}cancel(){var t;this._animation&&this.animation.cancel(),(t=this.keyframeResolver)==null||t.cancel()}}const hNe=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function mNe(e){const t=hNe.exec(e);if(!t)return[,];const[,n,r,a]=t;return[`--${n??r}`,a]}function dne(e,t,n=1){const[r,a]=mNe(e);if(!r)return;const i=window.getComputedStyle(t).getPropertyValue(r);if(i){const o=i.trim();return Mte(o)?parseFloat(o):o}return Hj(a)?dne(a,t,n+1):a}function t4(e,t){return(e==null?void 0:e[t])??(e==null?void 0:e.default)??e}const fne=new Set(["width","height","top","left","right","bottom",...X0]),gNe={test:e=>e==="auto",parse:e=>e},pne=e=>t=>t.test(e),hne=[K0,mn,Oc,th,sAe,oAe,gNe],WW=e=>hne.find(pne(e));function vNe(e){return typeof e=="number"?e===0:e!==null?e==="none"||e==="0"||Dte(e):!0}const yNe=new Set(["brightness","contrast","saturate","opacity"]);function bNe(e){const[t,n]=e.slice(0,-1).split("(");if(t==="drop-shadow")return e;const[r]=n.match(Vj)||[];if(!r)return e;const a=n.replace(r,"");let i=yNe.has(t)?1:0;return r!==n&&(i*=100),t+"("+i+a+")"}const wNe=/\b([a-z-]*)\(.*?\)/gu,H3={...bh,getAnimatableNone:e=>{const t=e.match(wNe);return t?t.map(bNe).join(" "):e}},zW={...K0,transform:Math.round},SNe={rotate:th,rotateX:th,rotateY:th,rotateZ:th,scale:zk,scaleX:zk,scaleY:zk,scaleZ:zk,skew:th,skewX:th,skewY:th,distance:mn,translateX:mn,translateY:mn,translateZ:mn,x:mn,y:mn,z:mn,perspective:mn,transformPerspective:mn,opacity:RE,originX:PW,originY:PW,originZ:mn},n4={borderWidth:mn,borderTopWidth:mn,borderRightWidth:mn,borderBottomWidth:mn,borderLeftWidth:mn,borderRadius:mn,radius:mn,borderTopLeftRadius:mn,borderTopRightRadius:mn,borderBottomRightRadius:mn,borderBottomLeftRadius:mn,width:mn,maxWidth:mn,height:mn,maxHeight:mn,top:mn,right:mn,bottom:mn,left:mn,padding:mn,paddingTop:mn,paddingRight:mn,paddingBottom:mn,paddingLeft:mn,margin:mn,marginTop:mn,marginRight:mn,marginBottom:mn,marginLeft:mn,backgroundPositionX:mn,backgroundPositionY:mn,...SNe,zIndex:zW,fillOpacity:RE,strokeOpacity:RE,numOctaves:zW},ENe={...n4,color:Ya,backgroundColor:Ya,outlineColor:Ya,fill:Ya,stroke:Ya,borderColor:Ya,borderTopColor:Ya,borderRightColor:Ya,borderBottomColor:Ya,borderLeftColor:Ya,filter:H3,WebkitFilter:H3},mne=e=>ENe[e];function gne(e,t){let n=mne(e);return n!==H3&&(n=bh),n.getAnimatableNone?n.getAnimatableNone(t):void 0}const TNe=new Set(["auto","none","0"]);function CNe(e,t,n){let r=0,a;for(;r{t.getValue(u).set(d)}),this.resolveNoneKeyframes()}}function xNe(e,t,n){if(e instanceof EventTarget)return[e];if(typeof e=="string"){let r=document;const a=(n==null?void 0:n[e])??r.querySelectorAll(e);return a?Array.from(a):[]}return Array.from(e)}const vne=(e,t)=>t&&typeof e=="number"?t.transform(e):e,qW=30,_Ne=e=>!isNaN(parseFloat(e));class ONe{constructor(t,n={}){this.canTrackVelocity=null,this.events={},this.updateAndNotify=(r,a=!0)=>{var o,l;const i=ps.now();if(this.updatedAt!==i&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(r),this.current!==this.prev&&((o=this.events.change)==null||o.notify(this.current),this.dependents))for(const u of this.dependents)u.dirty();a&&((l=this.events.renderRequest)==null||l.notify(this.current))},this.hasAnimated=!1,this.setCurrent(t),this.owner=n.owner}setCurrent(t){this.current=t,this.updatedAt=ps.now(),this.canTrackVelocity===null&&t!==void 0&&(this.canTrackVelocity=_Ne(this.current))}setPrevFrameValue(t=this.current){this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt}onChange(t){return this.on("change",t)}on(t,n){this.events[t]||(this.events[t]=new Bj);const r=this.events[t].add(n);return t==="change"?()=>{r(),ma.read(()=>{this.events.change.getSize()||this.stop()})}:r}clearListeners(){for(const t in this.events)this.events[t].clear()}attach(t,n){this.passiveEffect=t,this.stopPassiveEffect=n}set(t,n=!0){!n||!this.passiveEffect?this.updateAndNotify(t,n):this.passiveEffect(t,this.updateAndNotify)}setWithVelocity(t,n,r){this.set(n),this.prev=void 0,this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt-r}jump(t,n=!0){this.updateAndNotify(t),this.prev=t,this.prevUpdatedAt=this.prevFrameValue=void 0,n&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}dirty(){var t;(t=this.events.change)==null||t.notify(this.current)}addDependent(t){this.dependents||(this.dependents=new Set),this.dependents.add(t)}removeDependent(t){this.dependents&&this.dependents.delete(t)}get(){return this.current}getPrevious(){return this.prev}getVelocity(){const t=ps.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||t-this.updatedAt>qW)return 0;const n=Math.min(this.updatedAt-this.prevUpdatedAt,qW);return $te(parseFloat(this.current)-parseFloat(this.prevFrameValue),n)}start(t){return this.stop(),new Promise(n=>{this.hasAnimated=!0,this.animation=t(n),this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){var t,n;(t=this.dependents)==null||t.clear(),(n=this.events.destroy)==null||n.notify(),this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function I0(e,t){return new ONe(e,t)}const{schedule:r4}=Gte(queueMicrotask,!1),Su={x:!1,y:!1};function yne(){return Su.x||Su.y}function RNe(e){return e==="x"||e==="y"?Su[e]?null:(Su[e]=!0,()=>{Su[e]=!1}):Su.x||Su.y?null:(Su.x=Su.y=!0,()=>{Su.x=Su.y=!1})}function bne(e,t){const n=xNe(e),r=new AbortController,a={passive:!0,...t,signal:r.signal};return[n,a,()=>r.abort()]}function HW(e){return!(e.pointerType==="touch"||yne())}function PNe(e,t,n={}){const[r,a,i]=bne(e,n),o=l=>{if(!HW(l))return;const{target:u}=l,d=t(u,l);if(typeof d!="function"||!u)return;const f=g=>{HW(g)&&(d(g),u.removeEventListener("pointerleave",f))};u.addEventListener("pointerleave",f,a)};return r.forEach(l=>{l.addEventListener("pointerenter",o,a)}),i}const wne=(e,t)=>t?e===t?!0:wne(e,t.parentElement):!1,a4=e=>e.pointerType==="mouse"?typeof e.button!="number"||e.button<=0:e.isPrimary!==!1,ANe=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);function NNe(e){return ANe.has(e.tagName)||e.tabIndex!==-1}const yx=new WeakSet;function VW(e){return t=>{t.key==="Enter"&&e(t)}}function WA(e,t){e.dispatchEvent(new PointerEvent("pointer"+t,{isPrimary:!0,bubbles:!0}))}const MNe=(e,t)=>{const n=e.currentTarget;if(!n)return;const r=VW(()=>{if(yx.has(n))return;WA(n,"down");const a=VW(()=>{WA(n,"up")}),i=()=>WA(n,"cancel");n.addEventListener("keyup",a,t),n.addEventListener("blur",i,t)});n.addEventListener("keydown",r,t),n.addEventListener("blur",()=>n.removeEventListener("keydown",r),t)};function GW(e){return a4(e)&&!yne()}function INe(e,t,n={}){const[r,a,i]=bne(e,n),o=l=>{const u=l.currentTarget;if(!GW(l))return;yx.add(u);const d=t(u,l),f=(h,v)=>{window.removeEventListener("pointerup",g),window.removeEventListener("pointercancel",y),yx.has(u)&&yx.delete(u),GW(h)&&typeof d=="function"&&d(h,{success:v})},g=h=>{f(h,u===window||u===document||n.useGlobalTarget||wne(u,h.target))},y=h=>{f(h,!1)};window.addEventListener("pointerup",g,a),window.addEventListener("pointercancel",y,a)};return r.forEach(l=>{(n.useGlobalTarget?window:l).addEventListener("pointerdown",o,a),e4(l)&&(l.addEventListener("focus",d=>MNe(d,a)),!NNe(l)&&!l.hasAttribute("tabindex")&&(l.tabIndex=0))}),i}function Sne(e){return Ite(e)&&"ownerSVGElement"in e}function DNe(e){return Sne(e)&&e.tagName==="svg"}const ro=e=>!!(e&&e.getVelocity),$Ne=[...hne,Ya,bh],LNe=e=>$Ne.find(pne(e)),i4=R.createContext({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"});class FNe extends R.Component{getSnapshotBeforeUpdate(t){const n=this.props.childRef.current;if(n&&t.isPresent&&!this.props.isPresent){const r=n.offsetParent,a=e4(r)&&r.offsetWidth||0,i=this.props.sizeRef.current;i.height=n.offsetHeight||0,i.width=n.offsetWidth||0,i.top=n.offsetTop,i.left=n.offsetLeft,i.right=a-i.width-i.left}return null}componentDidUpdate(){}render(){return this.props.children}}function jNe({children:e,isPresent:t,anchorX:n}){const r=R.useId(),a=R.useRef(null),i=R.useRef({width:0,height:0,top:0,left:0,right:0}),{nonce:o}=R.useContext(i4);return R.useInsertionEffect(()=>{const{width:l,height:u,top:d,left:f,right:g}=i.current;if(t||!a.current||!l||!u)return;const y=n==="left"?`left: ${f}`:`right: ${g}`;a.current.dataset.motionPopId=r;const h=document.createElement("style");return o&&(h.nonce=o),document.head.appendChild(h),h.sheet&&h.sheet.insertRule(` [data-motion-pop-id="${r}"] { position: absolute !important; width: ${l}px !important; @@ -445,30 +445,30 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho ${y}px !important; top: ${d}px !important; } - `),()=>{document.head.contains(h)&&document.head.removeChild(h)}},[t]),w.jsx(tNe,{isPresent:t,childRef:a,sizeRef:i,children:R.cloneElement(e,{ref:a})})}const rNe=({children:e,initial:t,isPresent:n,onExitComplete:r,custom:a,presenceAffectsLayout:i,mode:o,anchorX:l})=>{const u=sj(aNe),d=R.useId();let f=!0,g=R.useMemo(()=>(f=!1,{id:d,initial:t,isPresent:n,custom:a,onExitComplete:y=>{u.set(y,!0);for(const h of u.values())if(!h)return;r&&r()},register:y=>(u.set(y,!1),()=>u.delete(y))}),[n,u,r]);return i&&f&&(g={...g}),R.useMemo(()=>{u.forEach((y,h)=>u.set(h,!1))},[n]),R.useEffect(()=>{!n&&!u.size&&r&&r()},[n]),o==="popLayout"&&(e=w.jsx(nNe,{isPresent:n,anchorX:l,children:e})),w.jsx(M_.Provider,{value:g,children:e})};function aNe(){return new Map}function Vte(e=!0){const t=R.useContext(M_);if(t===null)return[!0,null];const{isPresent:n,onExitComplete:r,register:a}=t,i=R.useId();R.useEffect(()=>{if(e)return a(i)},[e]);const o=R.useCallback(()=>e&&r&&r(i),[i,r,e]);return!n&&r?[!1,o]:[!0]}const mk=e=>e.key||"";function wW(e){const t=[];return R.Children.forEach(e,n=>{R.isValidElement(n)&&t.push(n)}),t}const iNe=({children:e,custom:t,initial:n=!0,onExitComplete:r,presenceAffectsLayout:a=!0,mode:i="sync",propagate:o=!1,anchorX:l="left"})=>{const[u,d]=Vte(o),f=R.useMemo(()=>wW(e),[e]),g=o&&!u?[]:f.map(mk),y=R.useRef(!0),h=R.useRef(f),v=sj(()=>new Map),[E,T]=R.useState(f),[C,k]=R.useState(f);nte(()=>{y.current=!1,h.current=f;for(let P=0;P{const N=mk(P),I=o&&!u?!1:f===C||g.includes(N),L=()=>{if(v.has(N))v.set(N,!0);else return;let j=!0;v.forEach(z=>{z||(j=!1)}),j&&(A==null||A(),k(h.current),o&&(d==null||d()),r&&r())};return w.jsx(rNe,{isPresent:I,initial:!y.current||n?void 0:!1,custom:t,presenceAffectsLayout:a,mode:i,onExitComplete:I?void 0:L,anchorX:l,children:P},N)})})},Gte=R.createContext({strict:!1}),SW={animation:["animate","variants","whileHover","whileTap","exit","whileInView","whileFocus","whileDrag"],exit:["exit"],drag:["drag","dragControls"],focus:["whileFocus"],hover:["whileHover","onHoverStart","onHoverEnd"],tap:["whileTap","onTap","onTapStart","onTapCancel"],pan:["onPan","onPanStart","onPanSessionStart","onPanEnd"],inView:["whileInView","onViewportEnter","onViewportLeave"],layout:["layout","layoutId"]},p0={};for(const e in SW)p0[e]={isEnabled:t=>SW[e].some(n=>!!t[n])};function oNe(e){for(const t in e)p0[t]={...p0[t],...e[t]}}const sNe=new Set(["animate","exit","variants","initial","style","values","variants","transition","transformTemplate","custom","inherit","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","_dragX","_dragY","onHoverStart","onHoverEnd","onViewportEnter","onViewportLeave","globalTapTarget","ignoreStrict","viewport"]);function Ux(e){return e.startsWith("while")||e.startsWith("drag")&&e!=="draggable"||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||e.startsWith("onLayout")||sNe.has(e)}let Yte=e=>!Ux(e);function lNe(e){typeof e=="function"&&(Yte=t=>t.startsWith("on")?!Ux(t):e(t))}try{lNe(require("@emotion/is-prop-valid").default)}catch{}function uNe(e,t,n){const r={};for(const a in e)a==="values"&&typeof e.values=="object"||(Yte(a)||n===!0&&Ux(a)||!t&&!Ux(a)||e.draggable&&a.startsWith("onDrag"))&&(r[a]=e[a]);return r}function cNe(e){if(typeof Proxy>"u")return e;const t=new Map,n=(...r)=>e(...r);return new Proxy(n,{get:(r,a)=>a==="create"?e:(t.has(a)||t.set(a,e(a)),t.get(a))})}const I_=R.createContext({});function D_(e){return e!==null&&typeof e=="object"&&typeof e.start=="function"}function sE(e){return typeof e=="string"||Array.isArray(e)}const Nj=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],Mj=["initial",...Nj];function $_(e){return D_(e.animate)||Mj.some(t=>sE(e[t]))}function Kte(e){return!!($_(e)||e.variants)}function dNe(e,t){if($_(e)){const{initial:n,animate:r}=e;return{initial:n===!1||sE(n)?n:void 0,animate:sE(r)?r:void 0}}return e.inherit!==!1?t:{}}function fNe(e){const{initial:t,animate:n}=dNe(e,R.useContext(I_));return R.useMemo(()=>({initial:t,animate:n}),[EW(t),EW(n)])}function EW(e){return Array.isArray(e)?e.join(" "):e}const pNe=Symbol.for("motionComponentSymbol");function $b(e){return e&&typeof e=="object"&&Object.prototype.hasOwnProperty.call(e,"current")}function hNe(e,t,n){return R.useCallback(r=>{r&&e.onMount&&e.onMount(r),t&&(r?t.mount(r):t.unmount()),n&&(typeof n=="function"?n(r):$b(n)&&(n.current=r))},[t])}const Ij=e=>e.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase(),mNe="framerAppearId",Xte="data-"+Ij(mNe),Qte=R.createContext({});function gNe(e,t,n,r,a){var E,T;const{visualElement:i}=R.useContext(I_),o=R.useContext(Gte),l=R.useContext(M_),u=R.useContext(Aj).reducedMotion,d=R.useRef(null);r=r||o.renderer,!d.current&&r&&(d.current=r(e,{visualState:t,parent:i,props:n,presenceContext:l,blockInitialAnimation:l?l.initial===!1:!1,reducedMotionConfig:u}));const f=d.current,g=R.useContext(Qte);f&&!f.projection&&a&&(f.type==="html"||f.type==="svg")&&vNe(d.current,n,a,g);const y=R.useRef(!1);R.useInsertionEffect(()=>{f&&y.current&&f.update(n,l)});const h=n[Xte],v=R.useRef(!!h&&!((E=window.MotionHandoffIsComplete)!=null&&E.call(window,h))&&((T=window.MotionHasOptimisedAnimation)==null?void 0:T.call(window,h)));return nte(()=>{f&&(y.current=!0,window.MotionIsMounted=!0,f.updateFeatures(),Rj.render(f.render),v.current&&f.animationState&&f.animationState.animateChanges())}),R.useEffect(()=>{f&&(!v.current&&f.animationState&&f.animationState.animateChanges(),v.current&&(queueMicrotask(()=>{var C;(C=window.MotionHandoffMarkAsComplete)==null||C.call(window,h)}),v.current=!1))}),f}function vNe(e,t,n,r){const{layoutId:a,layout:i,drag:o,dragConstraints:l,layoutScroll:u,layoutRoot:d,layoutCrossfade:f}=t;e.projection=new n(e.latestValues,t["data-framer-portal-id"]?void 0:Jte(e.parent)),e.projection.setOptions({layoutId:a,layout:i,alwaysMeasureLayout:!!o||l&&$b(l),visualElement:e,animationType:typeof i=="string"?i:"both",initialPromotionConfig:r,crossfade:f,layoutScroll:u,layoutRoot:d})}function Jte(e){if(e)return e.options.allowProjection!==!1?e.projection:Jte(e.parent)}function yNe({preloadedFeatures:e,createVisualElement:t,useRender:n,useVisualState:r,Component:a}){e&&oNe(e);function i(l,u){let d;const f={...R.useContext(Aj),...l,layoutId:bNe(l)},{isStatic:g}=f,y=fNe(l),h=r(l,g);if(!g&&lj){wNe();const v=SNe(f);d=v.MeasureLayout,y.visualElement=gNe(a,h,f,t,v.ProjectionNode)}return w.jsxs(I_.Provider,{value:y,children:[d&&y.visualElement?w.jsx(d,{visualElement:y.visualElement,...f}):null,n(a,l,hNe(h,y.visualElement,u),h,g,y.visualElement)]})}i.displayName=`motion.${typeof a=="string"?a:`create(${a.displayName??a.name??""})`}`;const o=R.forwardRef(i);return o[pNe]=a,o}function bNe({layoutId:e}){const t=R.useContext(oj).id;return t&&e!==void 0?t+"-"+e:e}function wNe(e,t){R.useContext(Gte).strict}function SNe(e){const{drag:t,layout:n}=p0;if(!t&&!n)return{};const r={...t,...n};return{MeasureLayout:t!=null&&t.isEnabled(e)||n!=null&&n.isEnabled(e)?r.MeasureLayout:void 0,ProjectionNode:r.ProjectionNode}}const lE={};function ENe(e){for(const t in e)lE[t]=e[t],gj(t)&&(lE[t].isCSSVariable=!0)}function Zte(e,{layout:t,layoutId:n}){return R0.has(e)||e.startsWith("origin")||(t||n!==void 0)&&(!!lE[e]||e==="opacity")}const TNe={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},CNe=O0.length;function kNe(e,t,n){let r="",a=!0;for(let i=0;i({style:{},transform:{},transformOrigin:{},vars:{}});function ene(e,t,n){for(const r in t)!to(t[r])&&!Zte(r,n)&&(e[r]=t[r])}function xNe({transformTemplate:e},t){return R.useMemo(()=>{const n=$j();return Dj(n,t,e),Object.assign({},n.vars,n.style)},[t])}function _Ne(e,t){const n=e.style||{},r={};return ene(r,n,e),Object.assign(r,xNe(e,t)),r}function ONe(e,t){const n={},r=_Ne(e,t);return e.drag&&e.dragListener!==!1&&(n.draggable=!1,r.userSelect=r.WebkitUserSelect=r.WebkitTouchCallout="none",r.touchAction=e.drag===!0?"none":`pan-${e.drag==="x"?"y":"x"}`),e.tabIndex===void 0&&(e.onTap||e.onTapStart||e.whileTap)&&(n.tabIndex=0),n.style=r,n}const RNe={offset:"stroke-dashoffset",array:"stroke-dasharray"},PNe={offset:"strokeDashoffset",array:"strokeDasharray"};function ANe(e,t,n=1,r=0,a=!0){e.pathLength=1;const i=a?RNe:PNe;e[i.offset]=mn.transform(-r);const o=mn.transform(t),l=mn.transform(n);e[i.array]=`${o} ${l}`}function tne(e,{attrX:t,attrY:n,attrScale:r,pathLength:a,pathSpacing:i=1,pathOffset:o=0,...l},u,d,f){if(Dj(e,l,d),u){e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox);return}e.attrs=e.style,e.style={};const{attrs:g,style:y}=e;g.transform&&(y.transform=g.transform,delete g.transform),(y.transform||g.transformOrigin)&&(y.transformOrigin=g.transformOrigin??"50% 50%",delete g.transformOrigin),y.transform&&(y.transformBox=(f==null?void 0:f.transformBox)??"fill-box",delete g.transformBox),t!==void 0&&(g.x=t),n!==void 0&&(g.y=n),r!==void 0&&(g.scale=r),a!==void 0&&ANe(g,a,i,o,!1)}const nne=()=>({...$j(),attrs:{}}),rne=e=>typeof e=="string"&&e.toLowerCase()==="svg";function NNe(e,t,n,r){const a=R.useMemo(()=>{const i=nne();return tne(i,t,rne(r),e.transformTemplate,e.style),{...i.attrs,style:{...i.style}}},[t]);if(e.style){const i={};ene(i,e.style,e),a.style={...i,...a.style}}return a}const MNe=["animate","circle","defs","desc","ellipse","g","image","line","filter","marker","mask","metadata","path","pattern","polygon","polyline","rect","stop","switch","symbol","svg","text","tspan","use","view"];function Lj(e){return typeof e!="string"||e.includes("-")?!1:!!(MNe.indexOf(e)>-1||/[A-Z]/u.test(e))}function INe(e=!1){return(n,r,a,{latestValues:i},o)=>{const u=(Lj(n)?NNe:ONe)(r,i,o,n),d=uNe(r,typeof n=="string",e),f=n!==R.Fragment?{...d,...u,ref:a}:{},{children:g}=r,y=R.useMemo(()=>to(g)?g.get():g,[g]);return R.createElement(n,{...f,children:y})}}function TW(e){const t=[{},{}];return e==null||e.values.forEach((n,r)=>{t[0][r]=n.get(),t[1][r]=n.getVelocity()}),t}function Fj(e,t,n,r){if(typeof t=="function"){const[a,i]=TW(r);t=t(n!==void 0?n:e.custom,a,i)}if(typeof t=="string"&&(t=e.variants&&e.variants[t]),typeof t=="function"){const[a,i]=TW(r);t=t(n!==void 0?n:e.custom,a,i)}return t}function Yk(e){return to(e)?e.get():e}function DNe({scrapeMotionValuesFromProps:e,createRenderState:t},n,r,a){return{latestValues:$Ne(n,r,a,e),renderState:t()}}const ane=e=>(t,n)=>{const r=R.useContext(I_),a=R.useContext(M_),i=()=>DNe(e,t,r,a);return n?i():sj(i)};function $Ne(e,t,n,r){const a={},i=r(e,{});for(const y in i)a[y]=Yk(i[y]);let{initial:o,animate:l}=e;const u=$_(e),d=Kte(e);t&&d&&!u&&e.inherit!==!1&&(o===void 0&&(o=t.initial),l===void 0&&(l=t.animate));let f=n?n.initial===!1:!1;f=f||o===!1;const g=f?l:o;if(g&&typeof g!="boolean"&&!D_(g)){const y=Array.isArray(g)?g:[g];for(let h=0;hArray.isArray(e);function UNe(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,f0(n))}function BNe(e){return v3(e)?e[e.length-1]||0:e}function WNe(e,t){const n=uE(e,t);let{transitionEnd:r={},transition:a={},...i}=n||{};i={...i,...r};for(const o in i){const l=BNe(i[o]);UNe(e,o,l)}}function zNe(e){return!!(to(e)&&e.add)}function y3(e,t){const n=e.getValue("willChange");if(zNe(n))return n.add(t);if(!n&&qd.WillChange){const r=new qd.WillChange("auto");e.addValue("willChange",r),r.add(t)}}function one(e){return e.props[Xte]}const qNe=e=>e!==null;function HNe(e,{repeat:t,repeatType:n="loop"},r){const a=e.filter(qNe),i=t&&n!=="loop"&&t%2===1?0:a.length-1;return a[i]}const VNe={type:"spring",stiffness:500,damping:25,restSpeed:10},GNe=e=>({type:"spring",stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),YNe={type:"keyframes",duration:.8},KNe={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},XNe=(e,{keyframes:t})=>t.length>2?YNe:R0.has(e)?e.startsWith("scale")?GNe(t[1]):VNe:KNe;function QNe({when:e,delay:t,delayChildren:n,staggerChildren:r,staggerDirection:a,repeat:i,repeatType:o,repeatDelay:l,from:u,elapsed:d,...f}){return!!Object.keys(f).length}const Uj=(e,t,n,r={},a,i)=>o=>{const l=_j(r,e)||{},u=l.delay||r.delay||0;let{elapsed:d=0}=r;d=d-Tc(u);const f={keyframes:Array.isArray(n)?n:[null,n],ease:"easeOut",velocity:t.getVelocity(),...l,delay:-d,onUpdate:y=>{t.set(y),l.onUpdate&&l.onUpdate(y)},onComplete:()=>{o(),l.onComplete&&l.onComplete()},name:e,motionValue:t,element:i?void 0:a};QNe(l)||Object.assign(f,XNe(e,f)),f.duration&&(f.duration=Tc(f.duration)),f.repeatDelay&&(f.repeatDelay=Tc(f.repeatDelay)),f.from!==void 0&&(f.keyframes[0]=f.from);let g=!1;if((f.type===!1||f.duration===0&&!f.repeatDelay)&&(f.duration=0,f.delay===0&&(g=!0)),(qd.instantAnimations||qd.skipAnimations)&&(g=!0,f.duration=0,f.delay=0),f.allowFlatten=!l.type&&!l.ease,g&&!i&&t.get()!==void 0){const y=HNe(f.keyframes,l);if(y!==void 0){ha.update(()=>{f.onUpdate(y),f.onComplete()});return}}return l.isSync?new Cj(f):new PAe(f)};function JNe({protectedKeys:e,needsAnimating:t},n){const r=e.hasOwnProperty(n)&&t[n]!==!0;return t[n]=!1,r}function sne(e,t,{delay:n=0,transitionOverride:r,type:a}={}){let{transition:i=e.getDefaultTransition(),transitionEnd:o,...l}=t;r&&(i=r);const u=[],d=a&&e.animationState&&e.animationState.getState()[a];for(const f in l){const g=e.getValue(f,e.latestValues[f]??null),y=l[f];if(y===void 0||d&&JNe(d,f))continue;const h={delay:n,..._j(i||{},f)},v=g.get();if(v!==void 0&&!g.isAnimating&&!Array.isArray(y)&&y===v&&!h.velocity)continue;let E=!1;if(window.MotionHandoffAnimation){const C=one(e);if(C){const k=window.MotionHandoffAnimation(C,f,ha);k!==null&&(h.startTime=k,E=!0)}}y3(e,f),g.start(Uj(f,g,y,e.shouldReduceMotion&&$te.has(f)?{type:!1}:h,e,E));const T=g.animation;T&&u.push(T)}return o&&Promise.all(u).then(()=>{ha.update(()=>{o&&WNe(e,o)})}),u}function b3(e,t,n={}){var u;const r=uE(e,t,n.type==="exit"?(u=e.presenceContext)==null?void 0:u.custom:void 0);let{transition:a=e.getDefaultTransition()||{}}=r||{};n.transitionOverride&&(a=n.transitionOverride);const i=r?()=>Promise.all(sne(e,r,n)):()=>Promise.resolve(),o=e.variantChildren&&e.variantChildren.size?(d=0)=>{const{delayChildren:f=0,staggerChildren:g,staggerDirection:y}=a;return ZNe(e,t,f+d,g,y,n)}:()=>Promise.resolve(),{when:l}=a;if(l){const[d,f]=l==="beforeChildren"?[i,o]:[o,i];return d().then(()=>f())}else return Promise.all([i(),o(n.delay)])}function ZNe(e,t,n=0,r=0,a=1,i){const o=[],l=(e.variantChildren.size-1)*r,u=a===1?(d=0)=>d*r:(d=0)=>l-d*r;return Array.from(e.variantChildren).sort(e2e).forEach((d,f)=>{d.notify("AnimationStart",t),o.push(b3(d,t,{...i,delay:n+u(f)}).then(()=>d.notify("AnimationComplete",t)))}),Promise.all(o)}function e2e(e,t){return e.sortNodePosition(t)}function t2e(e,t,n={}){e.notify("AnimationStart",t);let r;if(Array.isArray(t)){const a=t.map(i=>b3(e,i,n));r=Promise.all(a)}else if(typeof t=="string")r=b3(e,t,n);else{const a=typeof t=="function"?uE(e,t,n.custom):t;r=Promise.all(sne(e,a,n))}return r.then(()=>{e.notify("AnimationComplete",t)})}function lne(e,t){if(!Array.isArray(t))return!1;const n=t.length;if(n!==e.length)return!1;for(let r=0;rPromise.all(t.map(({animation:n,options:r})=>t2e(e,n,r)))}function o2e(e){let t=i2e(e),n=CW(),r=!0;const a=u=>(d,f)=>{var y;const g=uE(e,f,u==="exit"?(y=e.presenceContext)==null?void 0:y.custom:void 0);if(g){const{transition:h,transitionEnd:v,...E}=g;d={...d,...E,...v}}return d};function i(u){t=u(e)}function o(u){const{props:d}=e,f=une(e.parent)||{},g=[],y=new Set;let h={},v=1/0;for(let T=0;Tv&&A,j=!1;const z=Array.isArray(_)?_:[_];let Q=z.reduce(a(C),{});P===!1&&(Q={});const{prevResolvedValues:le={}}=k,re={...le,...Q},ge=G=>{L=!0,y.has(G)&&(j=!0,y.delete(G)),k.needsAnimating[G]=!0;const q=e.getValue(G);q&&(q.liveStyle=!1)};for(const G in re){const q=Q[G],ce=le[G];if(h.hasOwnProperty(G))continue;let H=!1;v3(q)&&v3(ce)?H=!lne(q,ce):H=q!==ce,H?q!=null?ge(G):y.add(G):q!==void 0&&y.has(G)?ge(G):k.protectedKeys[G]=!0}k.prevProp=_,k.prevResolvedValues=Q,k.isActive&&(h={...h,...Q}),r&&e.blockInitialAnimation&&(L=!1),L&&(!(N&&I)||j)&&g.push(...z.map(G=>({animation:G,options:{type:C}})))}if(y.size){const T={};if(typeof d.initial!="boolean"){const C=uE(e,Array.isArray(d.initial)?d.initial[0]:d.initial);C&&C.transition&&(T.transition=C.transition)}y.forEach(C=>{const k=e.getBaseTarget(C),_=e.getValue(C);_&&(_.liveStyle=!0),T[C]=k??null}),g.push({animation:T})}let E=!!g.length;return r&&(d.initial===!1||d.initial===d.animate)&&!e.manuallyAnimateOnMount&&(E=!1),r=!1,E?t(g):Promise.resolve()}function l(u,d){var g;if(n[u].isActive===d)return Promise.resolve();(g=e.variantChildren)==null||g.forEach(y=>{var h;return(h=y.animationState)==null?void 0:h.setActive(u,d)}),n[u].isActive=d;const f=o(u);for(const y in n)n[y].protectedKeys={};return f}return{animateChanges:o,setActive:l,setAnimateFunction:i,getState:()=>n,reset:()=>{n=CW(),r=!0}}}function s2e(e,t){return typeof t=="string"?t!==e:Array.isArray(t)?!lne(t,e):!1}function Fm(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function CW(){return{animate:Fm(!0),whileInView:Fm(),whileHover:Fm(),whileTap:Fm(),whileDrag:Fm(),whileFocus:Fm(),exit:Fm()}}class bh{constructor(t){this.isMounted=!1,this.node=t}update(){}}class l2e extends bh{constructor(t){super(t),t.animationState||(t.animationState=o2e(t))}updateAnimationControlsSubscription(){const{animate:t}=this.node.getProps();D_(t)&&(this.unmountControls=t.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){const{animate:t}=this.node.getProps(),{animate:n}=this.node.prevProps||{};t!==n&&this.updateAnimationControlsSubscription()}unmount(){var t;this.node.animationState.reset(),(t=this.unmountControls)==null||t.call(this)}}let u2e=0;class c2e extends bh{constructor(){super(...arguments),this.id=u2e++}update(){if(!this.node.presenceContext)return;const{isPresent:t,onExitComplete:n}=this.node.presenceContext,{isPresent:r}=this.node.prevPresenceContext||{};if(!this.node.animationState||t===r)return;const a=this.node.animationState.setActive("exit",!t);n&&!t&&a.then(()=>{n(this.id)})}mount(){const{register:t,onExitComplete:n}=this.node.presenceContext||{};n&&n(this.id),t&&(this.unmount=t(this.id))}unmount(){}}const d2e={animation:{Feature:l2e},exit:{Feature:c2e}};function cE(e,t,n,r={passive:!0}){return e.addEventListener(t,n,r),()=>e.removeEventListener(t,n)}function YE(e){return{point:{x:e.pageX,y:e.pageY}}}const f2e=e=>t=>Pj(t)&&e(t,YE(t));function PS(e,t,n,r){return cE(e,t,f2e(n),r)}function cne({top:e,left:t,right:n,bottom:r}){return{x:{min:t,max:n},y:{min:e,max:r}}}function p2e({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}function h2e(e,t){if(!t)return e;const n=t({x:e.left,y:e.top}),r=t({x:e.right,y:e.bottom});return{top:n.y,left:n.x,bottom:r.y,right:r.x}}const dne=1e-4,m2e=1-dne,g2e=1+dne,fne=.01,v2e=0-fne,y2e=0+fne;function $o(e){return e.max-e.min}function b2e(e,t,n){return Math.abs(e-t)<=n}function kW(e,t,n,r=.5){e.origin=r,e.originPoint=fa(t.min,t.max,e.origin),e.scale=$o(n)/$o(t),e.translate=fa(n.min,n.max,e.origin)-e.originPoint,(e.scale>=m2e&&e.scale<=g2e||isNaN(e.scale))&&(e.scale=1),(e.translate>=v2e&&e.translate<=y2e||isNaN(e.translate))&&(e.translate=0)}function AS(e,t,n,r){kW(e.x,t.x,n.x,r?r.originX:void 0),kW(e.y,t.y,n.y,r?r.originY:void 0)}function xW(e,t,n){e.min=n.min+t.min,e.max=e.min+$o(t)}function w2e(e,t,n){xW(e.x,t.x,n.x),xW(e.y,t.y,n.y)}function _W(e,t,n){e.min=t.min-n.min,e.max=e.min+$o(t)}function NS(e,t,n){_W(e.x,t.x,n.x),_W(e.y,t.y,n.y)}const OW=()=>({translate:0,scale:1,origin:0,originPoint:0}),Lb=()=>({x:OW(),y:OW()}),RW=()=>({min:0,max:0}),$a=()=>({x:RW(),y:RW()});function Sl(e){return[e("x"),e("y")]}function mA(e){return e===void 0||e===1}function w3({scale:e,scaleX:t,scaleY:n}){return!mA(e)||!mA(t)||!mA(n)}function ov(e){return w3(e)||pne(e)||e.z||e.rotate||e.rotateX||e.rotateY||e.skewX||e.skewY}function pne(e){return PW(e.x)||PW(e.y)}function PW(e){return e&&e!=="0%"}function Bx(e,t,n){const r=e-n,a=t*r;return n+a}function AW(e,t,n,r,a){return a!==void 0&&(e=Bx(e,a,r)),Bx(e,n,r)+t}function S3(e,t=0,n=1,r,a){e.min=AW(e.min,t,n,r,a),e.max=AW(e.max,t,n,r,a)}function hne(e,{x:t,y:n}){S3(e.x,t.translate,t.scale,t.originPoint),S3(e.y,n.translate,n.scale,n.originPoint)}const NW=.999999999999,MW=1.0000000000001;function S2e(e,t,n,r=!1){const a=n.length;if(!a)return;t.x=t.y=1;let i,o;for(let l=0;lNW&&(t.x=1),t.yNW&&(t.y=1)}function Fb(e,t){e.min=e.min+t,e.max=e.max+t}function IW(e,t,n,r,a=.5){const i=fa(e.min,e.max,a);S3(e,t,n,i,r)}function jb(e,t){IW(e.x,t.x,t.scaleX,t.scale,t.originX),IW(e.y,t.y,t.scaleY,t.scale,t.originY)}function mne(e,t){return cne(h2e(e.getBoundingClientRect(),t))}function E2e(e,t,n){const r=mne(e,n),{scroll:a}=t;return a&&(Fb(r.x,a.offset.x),Fb(r.y,a.offset.y)),r}const gne=({current:e})=>e?e.ownerDocument.defaultView:null,DW=(e,t)=>Math.abs(e-t);function T2e(e,t){const n=DW(e.x,t.x),r=DW(e.y,t.y);return Math.sqrt(n**2+r**2)}class vne{constructor(t,n,{transformPagePoint:r,contextWindow:a,dragSnapToOrigin:i=!1}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const g=vA(this.lastMoveEventInfo,this.history),y=this.startEvent!==null,h=T2e(g.offset,{x:0,y:0})>=3;if(!y&&!h)return;const{point:v}=g,{timestamp:E}=Fi;this.history.push({...v,timestamp:E});const{onStart:T,onMove:C}=this.handlers;y||(T&&T(this.lastMoveEvent,g),this.startEvent=this.lastMoveEvent),C&&C(this.lastMoveEvent,g)},this.handlePointerMove=(g,y)=>{this.lastMoveEvent=g,this.lastMoveEventInfo=gA(y,this.transformPagePoint),ha.update(this.updatePoint,!0)},this.handlePointerUp=(g,y)=>{this.end();const{onEnd:h,onSessionEnd:v,resumeAnimation:E}=this.handlers;if(this.dragSnapToOrigin&&E&&E(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const T=vA(g.type==="pointercancel"?this.lastMoveEventInfo:gA(y,this.transformPagePoint),this.history);this.startEvent&&h&&h(g,T),v&&v(g,T)},!Pj(t))return;this.dragSnapToOrigin=i,this.handlers=n,this.transformPagePoint=r,this.contextWindow=a||window;const o=YE(t),l=gA(o,this.transformPagePoint),{point:u}=l,{timestamp:d}=Fi;this.history=[{...u,timestamp:d}];const{onSessionStart:f}=n;f&&f(t,vA(l,this.history)),this.removeListeners=HE(PS(this.contextWindow,"pointermove",this.handlePointerMove),PS(this.contextWindow,"pointerup",this.handlePointerUp),PS(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),lh(this.updatePoint)}}function gA(e,t){return t?{point:t(e.point)}:e}function $W(e,t){return{x:e.x-t.x,y:e.y-t.y}}function vA({point:e},t){return{point:e,delta:$W(e,yne(t)),offset:$W(e,C2e(t)),velocity:k2e(t,.1)}}function C2e(e){return e[0]}function yne(e){return e[e.length-1]}function k2e(e,t){if(e.length<2)return{x:0,y:0};let n=e.length-1,r=null;const a=yne(e);for(;n>=0&&(r=e[n],!(a.timestamp-r.timestamp>Tc(t)));)n--;if(!r)return{x:0,y:0};const i=Cc(a.timestamp-r.timestamp);if(i===0)return{x:0,y:0};const o={x:(a.x-r.x)/i,y:(a.y-r.y)/i};return o.x===1/0&&(o.x=0),o.y===1/0&&(o.y=0),o}function x2e(e,{min:t,max:n},r){return t!==void 0&&en&&(e=r?fa(n,e,r.max):Math.min(e,n)),e}function LW(e,t,n){return{min:t!==void 0?e.min+t:void 0,max:n!==void 0?e.max+n-(e.max-e.min):void 0}}function _2e(e,{top:t,left:n,bottom:r,right:a}){return{x:LW(e.x,n,a),y:LW(e.y,t,r)}}function FW(e,t){let n=t.min-e.min,r=t.max-e.max;return t.max-t.minr?n=aE(t.min,t.max-r,e.min):r>a&&(n=aE(e.min,e.max-a,t.min)),zd(0,1,n)}function P2e(e,t){const n={};return t.min!==void 0&&(n.min=t.min-e.min),t.max!==void 0&&(n.max=t.max-e.min),n}const E3=.35;function A2e(e=E3){return e===!1?e=0:e===!0&&(e=E3),{x:jW(e,"left","right"),y:jW(e,"top","bottom")}}function jW(e,t,n){return{min:UW(e,t),max:UW(e,n)}}function UW(e,t){return typeof e=="number"?e:e[t]||0}const N2e=new WeakMap;class M2e{constructor(t){this.openDragLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=$a(),this.visualElement=t}start(t,{snapToCursor:n=!1}={}){const{presenceContext:r}=this.visualElement;if(r&&r.isPresent===!1)return;const a=f=>{const{dragSnapToOrigin:g}=this.getProps();g?this.pauseAnimation():this.stopAnimation(),n&&this.snapToCursor(YE(f).point)},i=(f,g)=>{const{drag:y,dragPropagation:h,onDragStart:v}=this.getProps();if(y&&!h&&(this.openDragLock&&this.openDragLock(),this.openDragLock=VAe(y),!this.openDragLock))return;this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),Sl(T=>{let C=this.getAxisMotionValue(T).get()||0;if(kc.test(C)){const{projection:k}=this.visualElement;if(k&&k.layout){const _=k.layout.layoutBox[T];_&&(C=$o(_)*(parseFloat(C)/100))}}this.originPoint[T]=C}),v&&ha.postRender(()=>v(f,g)),y3(this.visualElement,"transform");const{animationState:E}=this.visualElement;E&&E.setActive("whileDrag",!0)},o=(f,g)=>{const{dragPropagation:y,dragDirectionLock:h,onDirectionLock:v,onDrag:E}=this.getProps();if(!y&&!this.openDragLock)return;const{offset:T}=g;if(h&&this.currentDirection===null){this.currentDirection=I2e(T),this.currentDirection!==null&&v&&v(this.currentDirection);return}this.updateAxis("x",g.point,T),this.updateAxis("y",g.point,T),this.visualElement.render(),E&&E(f,g)},l=(f,g)=>this.stop(f,g),u=()=>Sl(f=>{var g;return this.getAnimationState(f)==="paused"&&((g=this.getAxisMotionValue(f).animation)==null?void 0:g.play())}),{dragSnapToOrigin:d}=this.getProps();this.panSession=new vne(t,{onSessionStart:a,onStart:i,onMove:o,onSessionEnd:l,resumeAnimation:u},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:d,contextWindow:gne(this.visualElement)})}stop(t,n){const r=this.isDragging;if(this.cancel(),!r)return;const{velocity:a}=n;this.startAnimation(a);const{onDragEnd:i}=this.getProps();i&&ha.postRender(()=>i(t,n))}cancel(){this.isDragging=!1;const{projection:t,animationState:n}=this.visualElement;t&&(t.isAnimationBlocked=!1),this.panSession&&this.panSession.end(),this.panSession=void 0;const{dragPropagation:r}=this.getProps();!r&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),n&&n.setActive("whileDrag",!1)}updateAxis(t,n,r){const{drag:a}=this.getProps();if(!r||!gk(t,a,this.currentDirection))return;const i=this.getAxisMotionValue(t);let o=this.originPoint[t]+r[t];this.constraints&&this.constraints[t]&&(o=x2e(o,this.constraints[t],this.elastic[t])),i.set(o)}resolveConstraints(){var i;const{dragConstraints:t,dragElastic:n}=this.getProps(),r=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):(i=this.visualElement.projection)==null?void 0:i.layout,a=this.constraints;t&&$b(t)?this.constraints||(this.constraints=this.resolveRefConstraints()):t&&r?this.constraints=_2e(r.layoutBox,t):this.constraints=!1,this.elastic=A2e(n),a!==this.constraints&&r&&this.constraints&&!this.hasMutatedConstraints&&Sl(o=>{this.constraints!==!1&&this.getAxisMotionValue(o)&&(this.constraints[o]=P2e(r.layoutBox[o],this.constraints[o]))})}resolveRefConstraints(){const{dragConstraints:t,onMeasureDragConstraints:n}=this.getProps();if(!t||!$b(t))return!1;const r=t.current,{projection:a}=this.visualElement;if(!a||!a.layout)return!1;const i=E2e(r,a.root,this.visualElement.getTransformPagePoint());let o=O2e(a.layout.layoutBox,i);if(n){const l=n(p2e(o));this.hasMutatedConstraints=!!l,l&&(o=cne(l))}return o}startAnimation(t){const{drag:n,dragMomentum:r,dragElastic:a,dragTransition:i,dragSnapToOrigin:o,onDragTransitionEnd:l}=this.getProps(),u=this.constraints||{},d=Sl(f=>{if(!gk(f,n,this.currentDirection))return;let g=u&&u[f]||{};o&&(g={min:0,max:0});const y=a?200:1e6,h=a?40:1e7,v={type:"inertia",velocity:r?t[f]:0,bounceStiffness:y,bounceDamping:h,timeConstant:750,restDelta:1,restSpeed:10,...i,...g};return this.startAxisValueAnimation(f,v)});return Promise.all(d).then(l)}startAxisValueAnimation(t,n){const r=this.getAxisMotionValue(t);return y3(this.visualElement,t),r.start(Uj(t,r,0,n,this.visualElement,!1))}stopAnimation(){Sl(t=>this.getAxisMotionValue(t).stop())}pauseAnimation(){Sl(t=>{var n;return(n=this.getAxisMotionValue(t).animation)==null?void 0:n.pause()})}getAnimationState(t){var n;return(n=this.getAxisMotionValue(t).animation)==null?void 0:n.state}getAxisMotionValue(t){const n=`_drag${t.toUpperCase()}`,r=this.visualElement.getProps(),a=r[n];return a||this.visualElement.getValue(t,(r.initial?r.initial[t]:void 0)||0)}snapToCursor(t){Sl(n=>{const{drag:r}=this.getProps();if(!gk(n,r,this.currentDirection))return;const{projection:a}=this.visualElement,i=this.getAxisMotionValue(n);if(a&&a.layout){const{min:o,max:l}=a.layout.layoutBox[n];i.set(t[n]-fa(o,l,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:t,dragConstraints:n}=this.getProps(),{projection:r}=this.visualElement;if(!$b(n)||!r||!this.constraints)return;this.stopAnimation();const a={x:0,y:0};Sl(o=>{const l=this.getAxisMotionValue(o);if(l&&this.constraints!==!1){const u=l.get();a[o]=R2e({min:u,max:u},this.constraints[o])}});const{transformTemplate:i}=this.visualElement.getProps();this.visualElement.current.style.transform=i?i({},""):"none",r.root&&r.root.updateScroll(),r.updateLayout(),this.resolveConstraints(),Sl(o=>{if(!gk(o,t,null))return;const l=this.getAxisMotionValue(o),{min:u,max:d}=this.constraints[o];l.set(fa(u,d,a[o]))})}addListeners(){if(!this.visualElement.current)return;N2e.set(this.visualElement,this);const t=this.visualElement.current,n=PS(t,"pointerdown",u=>{const{drag:d,dragListener:f=!0}=this.getProps();d&&f&&this.start(u)}),r=()=>{const{dragConstraints:u}=this.getProps();$b(u)&&u.current&&(this.constraints=this.resolveRefConstraints())},{projection:a}=this.visualElement,i=a.addEventListener("measure",r);a&&!a.layout&&(a.root&&a.root.updateScroll(),a.updateLayout()),ha.read(r);const o=cE(window,"resize",()=>this.scalePositionWithinConstraints()),l=a.addEventListener("didUpdate",(({delta:u,hasLayoutChanged:d})=>{this.isDragging&&d&&(Sl(f=>{const g=this.getAxisMotionValue(f);g&&(this.originPoint[f]+=u[f].translate,g.set(g.get()+u[f].translate))}),this.visualElement.render())}));return()=>{o(),n(),i(),l&&l()}}getProps(){const t=this.visualElement.getProps(),{drag:n=!1,dragDirectionLock:r=!1,dragPropagation:a=!1,dragConstraints:i=!1,dragElastic:o=E3,dragMomentum:l=!0}=t;return{...t,drag:n,dragDirectionLock:r,dragPropagation:a,dragConstraints:i,dragElastic:o,dragMomentum:l}}}function gk(e,t,n){return(t===!0||t===e)&&(n===null||n===e)}function I2e(e,t=10){let n=null;return Math.abs(e.y)>t?n="y":Math.abs(e.x)>t&&(n="x"),n}class D2e extends bh{constructor(t){super(t),this.removeGroupControls=Nl,this.removeListeners=Nl,this.controls=new M2e(t)}mount(){const{dragControls:t}=this.node.getProps();t&&(this.removeGroupControls=t.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||Nl}unmount(){this.removeGroupControls(),this.removeListeners()}}const BW=e=>(t,n)=>{e&&ha.postRender(()=>e(t,n))};class $2e extends bh{constructor(){super(...arguments),this.removePointerDownListener=Nl}onPointerDown(t){this.session=new vne(t,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:gne(this.node)})}createPanHandlers(){const{onPanSessionStart:t,onPanStart:n,onPan:r,onPanEnd:a}=this.node.getProps();return{onSessionStart:BW(t),onStart:BW(n),onMove:r,onEnd:(i,o)=>{delete this.session,a&&ha.postRender(()=>a(i,o))}}}mount(){this.removePointerDownListener=PS(this.node.current,"pointerdown",t=>this.onPointerDown(t))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}const Kk={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function WW(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}const M1={correct:(e,t)=>{if(!t.target)return e;if(typeof e=="string")if(mn.test(e))e=parseFloat(e);else return e;const n=WW(e,t.target.x),r=WW(e,t.target.y);return`${n}% ${r}%`}},L2e={correct:(e,{treeScale:t,projectionDelta:n})=>{const r=e,a=uh.parse(e);if(a.length>5)return r;const i=uh.createTransformer(e),o=typeof a[0]!="number"?1:0,l=n.x.scale*t.x,u=n.y.scale*t.y;a[0+o]/=l,a[1+o]/=u;const d=fa(l,u,.5);return typeof a[2+o]=="number"&&(a[2+o]/=d),typeof a[3+o]=="number"&&(a[3+o]/=d),i(a)}};class F2e extends R.Component{componentDidMount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:r,layoutId:a}=this.props,{projection:i}=t;ENe(j2e),i&&(n.group&&n.group.add(i),r&&r.register&&a&&r.register(i),i.root.didUpdate(),i.addEventListener("animationComplete",()=>{this.safeToRemove()}),i.setOptions({...i.options,onExitComplete:()=>this.safeToRemove()})),Kk.hasEverUpdated=!0}getSnapshotBeforeUpdate(t){const{layoutDependency:n,visualElement:r,drag:a,isPresent:i}=this.props,{projection:o}=r;return o&&(o.isPresent=i,a||t.layoutDependency!==n||n===void 0||t.isPresent!==i?o.willUpdate():this.safeToRemove(),t.isPresent!==i&&(i?o.promote():o.relegate()||ha.postRender(()=>{const l=o.getStack();(!l||!l.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{projection:t}=this.props.visualElement;t&&(t.root.didUpdate(),Rj.postRender(()=>{!t.currentAnimation&&t.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:r}=this.props,{projection:a}=t;a&&(a.scheduleCheckAfterUnmount(),n&&n.group&&n.group.remove(a),r&&r.deregister&&r.deregister(a))}safeToRemove(){const{safeToRemove:t}=this.props;t&&t()}render(){return null}}function bne(e){const[t,n]=Vte(),r=R.useContext(oj);return w.jsx(F2e,{...e,layoutGroup:r,switchLayoutGroup:R.useContext(Qte),isPresent:t,safeToRemove:n})}const j2e={borderRadius:{...M1,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:M1,borderTopRightRadius:M1,borderBottomLeftRadius:M1,borderBottomRightRadius:M1,boxShadow:L2e};function U2e(e,t,n){const r=to(e)?e:f0(e);return r.start(Uj("",r,t,n)),r.animation}const B2e=(e,t)=>e.depth-t.depth;class W2e{constructor(){this.children=[],this.isDirty=!1}add(t){uj(this.children,t),this.isDirty=!0}remove(t){cj(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(B2e),this.isDirty=!1,this.children.forEach(t)}}function z2e(e,t){const n=os.now(),r=({timestamp:a})=>{const i=a-n;i>=t&&(lh(r),e(i-t))};return ha.setup(r,!0),()=>lh(r)}const wne=["TopLeft","TopRight","BottomLeft","BottomRight"],q2e=wne.length,zW=e=>typeof e=="string"?parseFloat(e):e,qW=e=>typeof e=="number"||mn.test(e);function H2e(e,t,n,r,a,i){a?(e.opacity=fa(0,n.opacity??1,V2e(r)),e.opacityExit=fa(t.opacity??1,0,G2e(r))):i&&(e.opacity=fa(t.opacity??1,n.opacity??1,r));for(let o=0;ort?1:n(aE(e,t,r))}function VW(e,t){e.min=t.min,e.max=t.max}function bl(e,t){VW(e.x,t.x),VW(e.y,t.y)}function GW(e,t){e.translate=t.translate,e.scale=t.scale,e.originPoint=t.originPoint,e.origin=t.origin}function YW(e,t,n,r,a){return e-=t,e=Bx(e,1/n,r),a!==void 0&&(e=Bx(e,1/a,r)),e}function Y2e(e,t=0,n=1,r=.5,a,i=e,o=e){if(kc.test(t)&&(t=parseFloat(t),t=fa(o.min,o.max,t/100)-o.min),typeof t!="number")return;let l=fa(i.min,i.max,r);e===i&&(l-=t),e.min=YW(e.min,t,n,l,a),e.max=YW(e.max,t,n,l,a)}function KW(e,t,[n,r,a],i,o){Y2e(e,t[n],t[r],t[a],t.scale,i,o)}const K2e=["x","scaleX","originX"],X2e=["y","scaleY","originY"];function XW(e,t,n,r){KW(e.x,t,K2e,n?n.x:void 0,r?r.x:void 0),KW(e.y,t,X2e,n?n.y:void 0,r?r.y:void 0)}function QW(e){return e.translate===0&&e.scale===1}function Ene(e){return QW(e.x)&&QW(e.y)}function JW(e,t){return e.min===t.min&&e.max===t.max}function Q2e(e,t){return JW(e.x,t.x)&&JW(e.y,t.y)}function ZW(e,t){return Math.round(e.min)===Math.round(t.min)&&Math.round(e.max)===Math.round(t.max)}function Tne(e,t){return ZW(e.x,t.x)&&ZW(e.y,t.y)}function ez(e){return $o(e.x)/$o(e.y)}function tz(e,t){return e.translate===t.translate&&e.scale===t.scale&&e.originPoint===t.originPoint}class J2e{constructor(){this.members=[]}add(t){uj(this.members,t),t.scheduleRender()}remove(t){if(cj(this.members,t),t===this.prevLead&&(this.prevLead=void 0),t===this.lead){const n=this.members[this.members.length-1];n&&this.promote(n)}}relegate(t){const n=this.members.findIndex(a=>t===a);if(n===0)return!1;let r;for(let a=n;a>=0;a--){const i=this.members[a];if(i.isPresent!==!1){r=i;break}}return r?(this.promote(r),!0):!1}promote(t,n){const r=this.lead;if(t!==r&&(this.prevLead=r,this.lead=t,t.show(),r)){r.instance&&r.scheduleRender(),t.scheduleRender(),t.resumeFrom=r,n&&(t.resumeFrom.preserveOpacity=!0),r.snapshot&&(t.snapshot=r.snapshot,t.snapshot.latestValues=r.animationValues||r.latestValues),t.root&&t.root.isUpdating&&(t.isLayoutDirty=!0);const{crossfade:a}=t.options;a===!1&&r.hide()}}exitAnimationComplete(){this.members.forEach(t=>{const{options:n,resumingFrom:r}=t;n.onExitComplete&&n.onExitComplete(),r&&r.options.onExitComplete&&r.options.onExitComplete()})}scheduleRender(){this.members.forEach(t=>{t.instance&&t.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}function Z2e(e,t,n){let r="";const a=e.x.translate/t.x,i=e.y.translate/t.y,o=(n==null?void 0:n.z)||0;if((a||i||o)&&(r=`translate3d(${a}px, ${i}px, ${o}px) `),(t.x!==1||t.y!==1)&&(r+=`scale(${1/t.x}, ${1/t.y}) `),n){const{transformPerspective:d,rotate:f,rotateX:g,rotateY:y,skewX:h,skewY:v}=n;d&&(r=`perspective(${d}px) ${r}`),f&&(r+=`rotate(${f}deg) `),g&&(r+=`rotateX(${g}deg) `),y&&(r+=`rotateY(${y}deg) `),h&&(r+=`skewX(${h}deg) `),v&&(r+=`skewY(${v}deg) `)}const l=e.x.scale*t.x,u=e.y.scale*t.y;return(l!==1||u!==1)&&(r+=`scale(${l}, ${u})`),r||"none"}const yA=["","X","Y","Z"],eMe={visibility:"hidden"},tMe=1e3;let nMe=0;function bA(e,t,n,r){const{latestValues:a}=t;a[e]&&(n[e]=a[e],t.setStaticValue(e,0),r&&(r[e]=0))}function Cne(e){if(e.hasCheckedOptimisedAppear=!0,e.root===e)return;const{visualElement:t}=e.options;if(!t)return;const n=one(t);if(window.MotionHasOptimisedAnimation(n,"transform")){const{layout:a,layoutId:i}=e.options;window.MotionCancelOptimisedAnimation(n,"transform",ha,!(a||i))}const{parent:r}=e;r&&!r.hasCheckedOptimisedAppear&&Cne(r)}function kne({attachResizeListener:e,defaultParent:t,measureScroll:n,checkIsScrollRoot:r,resetTransform:a}){return class{constructor(o={},l=t==null?void 0:t()){this.id=nMe++,this.animationId=0,this.animationCommitId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.hasCheckedOptimisedAppear=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.updateScheduled=!1,this.scheduleUpdate=()=>this.update(),this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,this.nodes.forEach(iMe),this.nodes.forEach(uMe),this.nodes.forEach(cMe),this.nodes.forEach(oMe)},this.resolvedRelativeTargetAt=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=o,this.root=l?l.root||l:this,this.path=l?[...l.path,l]:[],this.parent=l,this.depth=l?l.depth+1:0;for(let u=0;uthis.root.updateBlockedByResize=!1;e(o,()=>{this.root.updateBlockedByResize=!0,f&&f(),f=z2e(g,250),Kk.hasAnimatedSinceResize&&(Kk.hasAnimatedSinceResize=!1,this.nodes.forEach(az))})}l&&this.root.registerSharedNode(l,this),this.options.animate!==!1&&d&&(l||u)&&this.addEventListener("didUpdate",({delta:f,hasLayoutChanged:g,hasRelativeLayoutChanged:y,layout:h})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const v=this.options.transition||d.getDefaultTransition()||mMe,{onLayoutAnimationStart:E,onLayoutAnimationComplete:T}=d.getProps(),C=!this.targetLayout||!Tne(this.targetLayout,h),k=!g&&y;if(this.options.layoutRoot||this.resumeFrom||k||g&&(C||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0);const _={..._j(v,"layout"),onPlay:E,onComplete:T};(d.shouldReduceMotion||this.options.layoutRoot)&&(_.delay=0,_.type=!1),this.startAnimation(_),this.setAnimationOrigin(f,k)}else g||az(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=h})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const o=this.getStack();o&&o.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,this.eventHandlers.clear(),lh(this.updateProjection)}blockUpdate(){this.updateManuallyBlocked=!0}unblockUpdate(){this.updateManuallyBlocked=!1}isUpdateBlocked(){return this.updateManuallyBlocked||this.updateBlockedByResize}isTreeAnimationBlocked(){return this.isAnimationBlocked||this.parent&&this.parent.isTreeAnimationBlocked()||!1}startUpdate(){this.isUpdateBlocked()||(this.isUpdating=!0,this.nodes&&this.nodes.forEach(dMe),this.animationId++)}getTransformTemplate(){const{visualElement:o}=this.options;return o&&o.getProps().transformTemplate}willUpdate(o=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&Cne(this),!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let f=0;f{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure(),this.snapshot&&!$o(this.snapshot.measuredBox.x)&&!$o(this.snapshot.measuredBox.y)&&(this.snapshot=void 0))}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let u=0;u{const P=A/1e3;iz(g.x,o.x,P),iz(g.y,o.y,P),this.setTargetDelta(g),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(NS(y,this.layout.layoutBox,this.relativeParent.layout.layoutBox),pMe(this.relativeTarget,this.relativeTargetOrigin,y,P),_&&Q2e(this.relativeTarget,_)&&(this.isProjectionDirty=!1),_||(_=$a()),bl(_,this.relativeTarget)),E&&(this.animationValues=f,H2e(f,d,this.latestValues,P,k,C)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=P},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(o){var l,u,d;this.notifyListeners("animationStart"),(l=this.currentAnimation)==null||l.stop(),(d=(u=this.resumingFrom)==null?void 0:u.currentAnimation)==null||d.stop(),this.pendingAnimation&&(lh(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=ha.update(()=>{Kk.hasAnimatedSinceResize=!0,this.motionValue||(this.motionValue=f0(0)),this.currentAnimation=U2e(this.motionValue,[0,1e3],{...o,velocity:0,isSync:!0,onUpdate:f=>{this.mixTargetDelta(f),o.onUpdate&&o.onUpdate(f)},onStop:()=>{},onComplete:()=>{o.onComplete&&o.onComplete(),this.completeAnimation()}}),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0})}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);const o=this.getStack();o&&o.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(tMe),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const o=this.getLead();let{targetWithTransforms:l,target:u,layout:d,latestValues:f}=o;if(!(!l||!u||!d)){if(this!==o&&this.layout&&d&&xne(this.options.animationType,this.layout.layoutBox,d.layoutBox)){u=this.target||$a();const g=$o(this.layout.layoutBox.x);u.x.min=o.target.x.min,u.x.max=u.x.min+g;const y=$o(this.layout.layoutBox.y);u.y.min=o.target.y.min,u.y.max=u.y.min+y}bl(l,u),jb(l,f),AS(this.projectionDeltaWithTransform,this.layoutCorrected,l,f)}}registerSharedNode(o,l){this.sharedNodes.has(o)||this.sharedNodes.set(o,new J2e),this.sharedNodes.get(o).add(l);const d=l.options.initialPromotionConfig;l.promote({transition:d?d.transition:void 0,preserveFollowOpacity:d&&d.shouldPreserveFollowOpacity?d.shouldPreserveFollowOpacity(l):void 0})}isLead(){const o=this.getStack();return o?o.lead===this:!0}getLead(){var l;const{layoutId:o}=this.options;return o?((l=this.getStack())==null?void 0:l.lead)||this:this}getPrevLead(){var l;const{layoutId:o}=this.options;return o?(l=this.getStack())==null?void 0:l.prevLead:void 0}getStack(){const{layoutId:o}=this.options;if(o)return this.root.sharedNodes.get(o)}promote({needsReset:o,transition:l,preserveFollowOpacity:u}={}){const d=this.getStack();d&&d.promote(this,u),o&&(this.projectionDelta=void 0,this.needsReset=!0),l&&this.setOptions({transition:l})}relegate(){const o=this.getStack();return o?o.relegate(this):!1}resetSkewAndRotation(){const{visualElement:o}=this.options;if(!o)return;let l=!1;const{latestValues:u}=o;if((u.z||u.rotate||u.rotateX||u.rotateY||u.rotateZ||u.skewX||u.skewY)&&(l=!0),!l)return;const d={};u.z&&bA("z",o,d,this.animationValues);for(let f=0;f{var l;return(l=o.currentAnimation)==null?void 0:l.stop()}),this.root.nodes.forEach(nz),this.root.sharedNodes.clear()}}}function rMe(e){e.updateLayout()}function aMe(e){var n;const t=((n=e.resumeFrom)==null?void 0:n.snapshot)||e.snapshot;if(e.isLead()&&e.layout&&t&&e.hasListeners("didUpdate")){const{layoutBox:r,measuredBox:a}=e.layout,{animationType:i}=e.options,o=t.source!==e.layout.source;i==="size"?Sl(g=>{const y=o?t.measuredBox[g]:t.layoutBox[g],h=$o(y);y.min=r[g].min,y.max=y.min+h}):xne(i,t.layoutBox,r)&&Sl(g=>{const y=o?t.measuredBox[g]:t.layoutBox[g],h=$o(r[g]);y.max=y.min+h,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[g].max=e.relativeTarget[g].min+h)});const l=Lb();AS(l,r,t.layoutBox);const u=Lb();o?AS(u,e.applyTransform(a,!0),t.measuredBox):AS(u,r,t.layoutBox);const d=!Ene(l);let f=!1;if(!e.resumeFrom){const g=e.getClosestProjectingParent();if(g&&!g.resumeFrom){const{snapshot:y,layout:h}=g;if(y&&h){const v=$a();NS(v,t.layoutBox,y.layoutBox);const E=$a();NS(E,r,h.layoutBox),Tne(v,E)||(f=!0),g.options.layoutRoot&&(e.relativeTarget=E,e.relativeTargetOrigin=v,e.relativeParent=g)}}}e.notifyListeners("didUpdate",{layout:r,snapshot:t,delta:u,layoutDelta:l,hasLayoutChanged:d,hasRelativeLayoutChanged:f})}else if(e.isLead()){const{onExitComplete:r}=e.options;r&&r()}e.options.transition=void 0}function iMe(e){e.parent&&(e.isProjecting()||(e.isProjectionDirty=e.parent.isProjectionDirty),e.isSharedProjectionDirty||(e.isSharedProjectionDirty=!!(e.isProjectionDirty||e.parent.isProjectionDirty||e.parent.isSharedProjectionDirty)),e.isTransformDirty||(e.isTransformDirty=e.parent.isTransformDirty))}function oMe(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function sMe(e){e.clearSnapshot()}function nz(e){e.clearMeasurements()}function rz(e){e.isLayoutDirty=!1}function lMe(e){const{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function az(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function uMe(e){e.resolveTargetDelta()}function cMe(e){e.calcProjection()}function dMe(e){e.resetSkewAndRotation()}function fMe(e){e.removeLeadSnapshot()}function iz(e,t,n){e.translate=fa(t.translate,0,n),e.scale=fa(t.scale,1,n),e.origin=t.origin,e.originPoint=t.originPoint}function oz(e,t,n,r){e.min=fa(t.min,n.min,r),e.max=fa(t.max,n.max,r)}function pMe(e,t,n,r){oz(e.x,t.x,n.x,r),oz(e.y,t.y,n.y,r)}function hMe(e){return e.animationValues&&e.animationValues.opacityExit!==void 0}const mMe={duration:.45,ease:[.4,0,.1,1]},sz=e=>typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(e),lz=sz("applewebkit/")&&!sz("chrome/")?Math.round:Nl;function uz(e){e.min=lz(e.min),e.max=lz(e.max)}function gMe(e){uz(e.x),uz(e.y)}function xne(e,t,n){return e==="position"||e==="preserve-aspect"&&!b2e(ez(t),ez(n),.2)}function vMe(e){var t;return e!==e.root&&((t=e.scroll)==null?void 0:t.wasRoot)}const yMe=kne({attachResizeListener:(e,t)=>cE(e,"resize",t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),wA={current:void 0},_ne=kne({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!wA.current){const e=new yMe({});e.mount(window),e.setOptions({layoutScroll:!0}),wA.current=e}return wA.current},resetTransform:(e,t)=>{e.style.transform=t!==void 0?t:"none"},checkIsScrollRoot:e=>window.getComputedStyle(e).position==="fixed"}),bMe={pan:{Feature:$2e},drag:{Feature:D2e,ProjectionNode:_ne,MeasureLayout:bne}};function cz(e,t,n){const{props:r}=e;e.animationState&&r.whileHover&&e.animationState.setActive("whileHover",n==="Start");const a="onHover"+n,i=r[a];i&&ha.postRender(()=>i(t,YE(t)))}class wMe extends bh{mount(){const{current:t}=this.node;t&&(this.unmount=GAe(t,(n,r)=>(cz(this.node,r,"Start"),a=>cz(this.node,a,"End"))))}unmount(){}}class SMe extends bh{constructor(){super(...arguments),this.isActive=!1}onFocus(){let t=!1;try{t=this.node.current.matches(":focus-visible")}catch{t=!0}!t||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!0),this.isActive=!0)}onBlur(){!this.isActive||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!1),this.isActive=!1)}mount(){this.unmount=HE(cE(this.node.current,"focus",()=>this.onFocus()),cE(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}function dz(e,t,n){const{props:r}=e;if(e.current instanceof HTMLButtonElement&&e.current.disabled)return;e.animationState&&r.whileTap&&e.animationState.setActive("whileTap",n==="Start");const a="onTap"+(n==="End"?"":n),i=r[a];i&&ha.postRender(()=>i(t,YE(t)))}class EMe extends bh{mount(){const{current:t}=this.node;t&&(this.unmount=QAe(t,(n,r)=>(dz(this.node,r,"Start"),(a,{success:i})=>dz(this.node,a,i?"End":"Cancel")),{useGlobalTarget:this.node.props.globalTapTarget}))}unmount(){}}const T3=new WeakMap,SA=new WeakMap,TMe=e=>{const t=T3.get(e.target);t&&t(e)},CMe=e=>{e.forEach(TMe)};function kMe({root:e,...t}){const n=e||document;SA.has(n)||SA.set(n,{});const r=SA.get(n),a=JSON.stringify(t);return r[a]||(r[a]=new IntersectionObserver(CMe,{root:e,...t})),r[a]}function xMe(e,t,n){const r=kMe(t);return T3.set(e,n),r.observe(e),()=>{T3.delete(e),r.unobserve(e)}}const _Me={some:0,all:1};class OMe extends bh{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();const{viewport:t={}}=this.node.getProps(),{root:n,margin:r,amount:a="some",once:i}=t,o={root:n?n.current:void 0,rootMargin:r,threshold:typeof a=="number"?a:_Me[a]},l=u=>{const{isIntersecting:d}=u;if(this.isInView===d||(this.isInView=d,i&&!d&&this.hasEnteredView))return;d&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",d);const{onViewportEnter:f,onViewportLeave:g}=this.node.getProps(),y=d?f:g;y&&y(u)};return xMe(this.node.current,o,l)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;const{props:t,prevProps:n}=this.node;["amount","margin","root"].some(RMe(t,n))&&this.startObserver()}unmount(){}}function RMe({viewport:e={}},{viewport:t={}}={}){return n=>e[n]!==t[n]}const PMe={inView:{Feature:OMe},tap:{Feature:EMe},focus:{Feature:SMe},hover:{Feature:wMe}},AMe={layout:{ProjectionNode:_ne,MeasureLayout:bne}},C3={current:null},One={current:!1};function NMe(){if(One.current=!0,!!lj)if(window.matchMedia){const e=window.matchMedia("(prefers-reduced-motion)"),t=()=>C3.current=e.matches;e.addListener(t),t()}else C3.current=!1}const MMe=new WeakMap;function IMe(e,t,n){for(const r in t){const a=t[r],i=n[r];if(to(a))e.addValue(r,a);else if(to(i))e.addValue(r,f0(a,{owner:e}));else if(i!==a)if(e.hasValue(r)){const o=e.getValue(r);o.liveStyle===!0?o.jump(a):o.hasAnimated||o.set(a)}else{const o=e.getStaticValue(r);e.addValue(r,f0(o!==void 0?o:a,{owner:e}))}}for(const r in n)t[r]===void 0&&e.removeValue(r);return t}const fz=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];class DMe{scrapeMotionValuesFromProps(t,n,r){return{}}constructor({parent:t,props:n,presenceContext:r,reducedMotionConfig:a,blockInitialAnimation:i,visualState:o},l={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.KeyframeResolver=kj,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.renderScheduledAt=0,this.scheduleRender=()=>{const y=os.now();this.renderScheduledAtthis.bindToMotionValue(r,n)),One.current||NMe(),this.shouldReduceMotion=this.reducedMotionConfig==="never"?!1:this.reducedMotionConfig==="always"?!0:C3.current,this.parent&&this.parent.children.add(this),this.update(this.props,this.presenceContext)}unmount(){this.projection&&this.projection.unmount(),lh(this.notifyUpdate),lh(this.render),this.valueSubscriptions.forEach(t=>t()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent&&this.parent.children.delete(this);for(const t in this.events)this.events[t].clear();for(const t in this.features){const n=this.features[t];n&&(n.unmount(),n.isMounted=!1)}this.current=null}bindToMotionValue(t,n){this.valueSubscriptions.has(t)&&this.valueSubscriptions.get(t)();const r=R0.has(t);r&&this.onBindTransform&&this.onBindTransform();const a=n.on("change",l=>{this.latestValues[t]=l,this.props.onUpdate&&ha.preRender(this.notifyUpdate),r&&this.projection&&(this.projection.isTransformDirty=!0)}),i=n.on("renderRequest",this.scheduleRender);let o;window.MotionCheckAppearSync&&(o=window.MotionCheckAppearSync(this,t,n)),this.valueSubscriptions.set(t,()=>{a(),i(),o&&o(),n.owner&&n.stop()})}sortNodePosition(t){return!this.current||!this.sortInstanceNodePosition||this.type!==t.type?0:this.sortInstanceNodePosition(this.current,t.current)}updateFeatures(){let t="animation";for(t in p0){const n=p0[t];if(!n)continue;const{isEnabled:r,Feature:a}=n;if(!this.features[t]&&a&&r(this.props)&&(this.features[t]=new a(this)),this.features[t]){const i=this.features[t];i.isMounted?i.update():(i.mount(),i.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):$a()}getStaticValue(t){return this.latestValues[t]}setStaticValue(t,n){this.latestValues[t]=n}update(t,n){(t.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=t,this.prevPresenceContext=this.presenceContext,this.presenceContext=n;for(let r=0;rn.variantChildren.delete(t)}addValue(t,n){const r=this.values.get(t);n!==r&&(r&&this.removeValue(t),this.bindToMotionValue(t,n),this.values.set(t,n),this.latestValues[t]=n.get())}removeValue(t){this.values.delete(t);const n=this.valueSubscriptions.get(t);n&&(n(),this.valueSubscriptions.delete(t)),delete this.latestValues[t],this.removeValueFromRenderState(t,this.renderState)}hasValue(t){return this.values.has(t)}getValue(t,n){if(this.props.values&&this.props.values[t])return this.props.values[t];let r=this.values.get(t);return r===void 0&&n!==void 0&&(r=f0(n===null?void 0:n,{owner:this}),this.addValue(t,r)),r}readValue(t,n){let r=this.latestValues[t]!==void 0||!this.current?this.latestValues[t]:this.getBaseTargetFromProps(this.props,t)??this.readValueFromInstance(this.current,t,this.options);return r!=null&&(typeof r=="string"&&(rte(r)||ite(r))?r=parseFloat(r):!eNe(r)&&uh.test(n)&&(r=Ute(t,n)),this.setBaseTarget(t,to(r)?r.get():r)),to(r)?r.get():r}setBaseTarget(t,n){this.baseTarget[t]=n}getBaseTarget(t){var i;const{initial:n}=this.props;let r;if(typeof n=="string"||typeof n=="object"){const o=Fj(this.props,n,(i=this.presenceContext)==null?void 0:i.custom);o&&(r=o[t])}if(n&&r!==void 0)return r;const a=this.getBaseTargetFromProps(this.props,t);return a!==void 0&&!to(a)?a:this.initialValues[t]!==void 0&&r===void 0?void 0:this.baseTarget[t]}on(t,n){return this.events[t]||(this.events[t]=new pj),this.events[t].add(n)}notify(t,...n){this.events[t]&&this.events[t].notify(...n)}}class Rne extends DMe{constructor(){super(...arguments),this.KeyframeResolver=WAe}sortInstanceNodePosition(t,n){return t.compareDocumentPosition(n)&2?1:-1}getBaseTargetFromProps(t,n){return t.style?t.style[n]:void 0}removeValueFromRenderState(t,{vars:n,style:r}){delete n[t],delete r[t]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:t}=this.props;to(t)&&(this.childSubscription=t.on("change",n=>{this.current&&(this.current.textContent=`${n}`)}))}}function Pne(e,{style:t,vars:n},r,a){Object.assign(e.style,t,a&&a.getProjectionStyles(r));for(const i in n)e.style.setProperty(i,n[i])}function $Me(e){return window.getComputedStyle(e)}class LMe extends Rne{constructor(){super(...arguments),this.type="html",this.renderInstance=Pne}readValueFromInstance(t,n){var r;if(R0.has(n))return(r=this.projection)!=null&&r.isProjecting?d3(n):sAe(t,n);{const a=$Me(t),i=(gj(n)?a.getPropertyValue(n):a[n])||0;return typeof i=="string"?i.trim():i}}measureInstanceViewportBox(t,{transformPagePoint:n}){return mne(t,n)}build(t,n,r){Dj(t,n,r.transformTemplate)}scrapeMotionValuesFromProps(t,n,r){return jj(t,n,r)}}const Ane=new Set(["baseFrequency","diffuseConstant","kernelMatrix","kernelUnitLength","keySplines","keyTimes","limitingConeAngle","markerHeight","markerWidth","numOctaves","targetX","targetY","surfaceScale","specularConstant","specularExponent","stdDeviation","tableValues","viewBox","gradientTransform","pathLength","startOffset","textLength","lengthAdjust"]);function FMe(e,t,n,r){Pne(e,t,void 0,r);for(const a in t.attrs)e.setAttribute(Ane.has(a)?a:Ij(a),t.attrs[a])}class jMe extends Rne{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=$a}getBaseTargetFromProps(t,n){return t[n]}readValueFromInstance(t,n){if(R0.has(n)){const r=jte(n);return r&&r.default||0}return n=Ane.has(n)?n:Ij(n),t.getAttribute(n)}scrapeMotionValuesFromProps(t,n,r){return ine(t,n,r)}build(t,n,r){tne(t,n,this.isSVGTag,r.transformTemplate,r.style)}renderInstance(t,n,r,a){FMe(t,n,r,a)}mount(t){this.isSVGTag=rne(t.tagName),super.mount(t)}}const UMe=(e,t)=>Lj(e)?new jMe(t):new LMe(t,{allowProjection:e!==R.Fragment}),BMe=jNe({...d2e,...PMe,...bMe,...AMe},UMe),WMe=cNe(BMe),zMe={initial:{x:"100%",opacity:0},animate:{x:0,opacity:1},exit:{x:"100%",opacity:0}};function Bj({children:e}){var r;const t=Zd();return((r=t.state)==null?void 0:r.animated)?w.jsx(iNe,{mode:"wait",children:w.jsx(WMe.div,{variants:zMe,initial:"initial",animate:"animate",exit:"exit",transition:{duration:.15},style:{width:"100%"},children:e},t.pathname)}):w.jsx(w.Fragment,{children:e})}function qMe(){return w.jsx(mt,{path:"",children:w.jsx(mt,{element:w.jsx(Bj,{children:w.jsx(aPe,{})}),path:"dashboard"})})}const P0=({errors:e,error:t})=>{if(!t&&!e)return null;let n={};t&&t.errors?n=t.errors:e&&(n=e);const r=Object.keys(n);return w.jsxs("div",{style:{minHeight:"30px"},children:[(e==null?void 0:e.form)&&w.jsx("div",{className:"with-fade-in",style:{color:"red"},children:e.form}),n.length&&w.jsxs("div",{children:[((t==null?void 0:t.title)||(t==null?void 0:t.message))&&w.jsx("span",{children:(t==null?void 0:t.title)||(t==null?void 0:t.message)}),r.map(a=>w.jsx("div",{children:w.jsxs("span",{children:["• ",n[a]]})},a))]})]})},HMe={remoteTitle:"Remote service",grpcMethod:"Over grpc",hostAddress:"Host address",httpMethod:"Over http",interfaceLang:{description:"Here you can change your software interface language settings",title:"Language & Region"},port:"Port",remoteDescription:"Remote service, is the place that all data, logics, and services are installed there. It could be cloud, or locally. Only advanced users, changing it to wrong address might cause inaccessibility.",richTextEditor:{description:"Manage how you want to edit textual content in the app",title:"Text Editor"},theme:{title:"Theme",description:"Change the interface theme color"},accessibility:{description:"Handle the accessibility settings",title:"Accessibility"},debugSettings:{description:"See the debug information of the app, for developers or help desks",title:"Debug Settings"}},VMe={interfaceLang:{description:"Tutaj możesz zmienić ustawienia języka interfejsu oprogramowania",title:"Język i Region"},port:"Port",remoteDescription:"Usługa zdalna, to miejsce, w którym zainstalowane są wszystkie dane, logiki i usługi. Może to być chmura lub lokalnie. Tylko zaawansowani użytkownicy, zmieniając go na błędny adres, mogą spowodować niedostępność.",theme:{description:"Zmień kolor motywu interfejsu",title:"Motyw"},grpcMethod:"Przez gRPC",httpMethod:"Przez HTTP",hostAddress:"Adres hosta",remoteTitle:"Usługa zdalna",richTextEditor:{description:"Zarządzaj sposobem edycji treści tekstowej w aplikacji",title:"Edytor tekstu"},accessibility:{description:"Obsługa ustawień dostępności",title:"Dostępność"},debugSettings:{description:"Wyświetl informacje debugowania aplikacji, dla programistów lub biur pomocy",title:"Ustawienia debugowania"}},GMe={accessibility:{description:"مدیریت تنظیمات دسترسی",title:"دسترسی"},debugSettings:{description:"نمایش اطلاعات اشکال زدایی برنامه، برای توسعه‌دهندگان یا مراکز کمک",title:"تنظیمات اشکال زدایی"},httpMethod:"از طریق HTTP",interfaceLang:{description:"در اینجا می‌توانید تنظیمات زبان و منطقه رابط کاربری نرم‌افزار را تغییر دهید",title:"زبان و منطقه"},port:"پورت",remoteDescription:"سرویس از راه دور، مکانی است که تمام داده‌ها، منطق‌ها و خدمات در آن نصب می‌شوند. ممکن است این ابری یا محلی باشد. تنها کاربران پیشرفته با تغییر آن به آدرس نادرست، ممکن است بر ندسترسی برخورد کنند.",remoteTitle:"سرویس از راه دور",grpcMethod:"از طریق gRPC",hostAddress:"آدرس میزبان",richTextEditor:{title:"ویرایشگر متن",description:"مدیریت نحوه ویرایش محتوای متنی در برنامه"},theme:{description:"تغییر رنگ موضوع رابط کاربری",title:"موضوع"}},YMe={...HMe,$pl:VMe,$fa:GMe},KMe=(e,t)=>{e.preferredHand&&localStorage.setItem("app_preferredHand_address",e.preferredHand)},XMe=e=>[{label:e.accesibility.leftHand,value:"left"},{label:e.accesibility.rightHand,value:"right"}];function QMe({}){const{config:e,patchConfig:t}=R.useContext(ph),n=At(),r=Kt(YMe),{formik:a}=$r({}),i=(l,u)=>{l.preferredHand&&(t({preferredHand:l.preferredHand}),KMe(l))},o=zs(XMe(n));return R.useEffect(()=>{var l;(l=a.current)==null||l.setValues({preferredHand:e.preferredHand})},[e.remote]),w.jsxs(Do,{title:n.generalSettings.accessibility.title,children:[w.jsx("p",{children:r.accessibility.description}),w.jsx(ls,{innerRef:l=>{l&&(a.current=l)},initialValues:{},onSubmit:i,children:l=>w.jsxs("form",{className:"richtext-editor-config-form",onSubmit:u=>u.preventDefault(),children:[w.jsx(P0,{errors:l.errors}),w.jsx(da,{formEffect:{form:l,field:"preferredHand",beforeSet(u){return u.value}},keyExtractor:u=>u.value,errorMessage:l.errors.preferredHand,querySource:o,label:n.settings.preferredHand,hint:n.settings.preferredHandHint}),w.jsx(Ws,{disabled:l.values.preferredHand===""||l.values.preferredHand===e.preferredHand,label:n.settings.apply,onClick:()=>l.submitForm()})]})})]})}function JMe(){const e=Bs(),{query:t}=CF({queryClient:e,query:{},queryOptions:{cacheTime:0}});return w.jsxs(w.Fragment,{children:[w.jsx("h2",{children:"User Role Workspaces"}),w.jsx("p",{children:"Data:"}),w.jsx("pre",{children:JSON.stringify(t.data,null,2)}),w.jsx("p",{children:"Error:"}),w.jsx("pre",{children:JSON.stringify(t.error,null,2)})]})}function ZMe(){const e=R.useContext(rt);return w.jsxs(w.Fragment,{children:[w.jsx("h2",{children:"Fireback context:"}),w.jsx("pre",{children:JSON.stringify(e,null,2)})]})}function eIe({}){const[e,t]=R.useState(!1);R.useContext(rt);const n=At();return w.jsxs(Do,{title:n.generalSettings.debugSettings.title,children:[w.jsx("p",{children:n.generalSettings.debugSettings.description}),w.jsx(El,{value:e,label:n.debugInfo,onChange:()=>t(r=>!r)}),e&&w.jsxs(w.Fragment,{children:[w.jsx("pre",{}),w.jsx(Pl,{href:"/lalaland",children:"Go to Lalaland"}),w.jsx(Pl,{href:"/view3d",children:"View 3D"}),w.jsx(JMe,{}),w.jsx(ZMe,{})]})]})}const Nne=e=>[kr.SUPPORTED_LANGUAGES.includes("en")?{label:e.locale.englishWorldwide,value:"en"}:void 0,kr.SUPPORTED_LANGUAGES.includes("fa")?{label:e.locale.persianIran,value:"fa"}:void 0,kr.SUPPORTED_LANGUAGES.includes("ru")?{label:"Russian (Русский)",value:"ru"}:void 0,kr.SUPPORTED_LANGUAGES.includes("pl")?{label:e.locale.polishPoland,value:"pl"}:void 0,kr.SUPPORTED_LANGUAGES.includes("ua")?{label:"Ukrainain (українська)",value:"ua"}:void 0].filter(Boolean),tIe=(e,t)=>{e.interfaceLanguage&&localStorage.setItem("app_interfaceLanguage_address",e.interfaceLanguage)};function nIe({}){const{config:e,patchConfig:t}=R.useContext(ph),n=At(),{router:r,formik:a}=$r({}),i=(u,d)=>{u.interfaceLanguage&&(t({interfaceLanguage:u.interfaceLanguage}),tIe(u),r.push(`/${u.interfaceLanguage}/settings`))};R.useEffect(()=>{var u;(u=a.current)==null||u.setValues({interfaceLanguage:e.interfaceLanguage})},[e.remote]);const o=Nne(n),l=zs(o);return w.jsxs(Do,{title:n.generalSettings.interfaceLang.title,children:[w.jsx("p",{children:n.generalSettings.interfaceLang.description}),w.jsx(ls,{innerRef:u=>{u&&(a.current=u)},initialValues:{},onSubmit:i,children:u=>w.jsxs("form",{className:"remote-service-form",onSubmit:d=>d.preventDefault(),children:[w.jsx(P0,{errors:u.errors}),w.jsx(da,{keyExtractor:d=>d.value,formEffect:{form:u,field:"interfaceLanguage",beforeSet(d){return d.value}},errorMessage:u.errors.interfaceLanguage,querySource:l,label:n.settings.interfaceLanguage,hint:n.settings.interfaceLanguageHint}),w.jsx(Ws,{disabled:u.values.interfaceLanguage===""||u.values.interfaceLanguage===e.interfaceLanguage,label:n.settings.apply,onClick:()=>u.submitForm()})]})})]})}class Wj extends wn{constructor(...t){super(...t),this.children=void 0,this.subscription=void 0}}Wj.Navigation={edit(e,t){return`${t?"/"+t:".."}/web-push-config/edit/${e}`},create(e){return`${e?"/"+e:".."}/web-push-config/new`},single(e,t){return`${t?"/"+t:".."}/web-push-config/${e}`},query(e={},t){return`${t?"/"+t:".."}/web-push-configs`},Redit:"web-push-config/edit/:uniqueId",Rcreate:"web-push-config/new",Rsingle:"web-push-config/:uniqueId",Rquery:"web-push-configs"};Wj.definition={rpc:{query:{}},name:"webPushConfig",distinctBy:"user",features:{},security:{resolveStrategy:"user"},gormMap:{},fields:[{name:"subscription",description:"The json content of the web push after getting it from browser",type:"json",validate:"required",computedType:"any",gormMap:{}}],description:"Keep the web push notification configuration for each user"};Wj.Fields={...wn.Fields,subscription:"subscription"};function rIe(e){let{queryClient:t,query:n,execFnOverride:r}={};n=n||{};const{options:a,execFn:i}=R.useContext(rt),o=r?r(a):i?i(a):St(a);let u=`${"/web-push-config".substr(1)}?${new URLSearchParams(Gt(n)).toString()}`;const f=un(h=>o("POST",u,h)),g=(h,v)=>{var E;return h?(h.data&&(v!=null&&v.data)&&(h.data.items=[v.data,...((E=h==null?void 0:h.data)==null?void 0:E.items)||[]]),h):{data:{items:[]}}};return{mutation:f,submit:(h,v)=>new Promise((E,T)=>{f.mutate(h,{onSuccess(C){t==null||t.setQueryData("*fireback.WebPushConfigEntity",k=>g(k,C)),E(C)},onError(C){v==null||v.setErrors(Pn(C)),T(C)}})}),fnUpdater:g}}function aIe(){const{submit:e}=rIe();R.useEffect(()=>{navigator.serviceWorker&&navigator.serviceWorker.addEventListener("message",d=>{var f;((f=d.data)==null?void 0:f.type)==="PUSH_RECEIVED"&&console.log("Push message in UI:",d.data.payload)})},[]);const[t,n]=R.useState(!1),[r,a]=R.useState(!1),[i,o]=R.useState(null);return R.useEffect(()=>{async function d(){try{const g=await(await navigator.serviceWorker.ready).pushManager.getSubscription();a(!!g)}catch(f){console.error("Failed to check subscription",f)}}d()},[]),{isSubscribing:t,isSubscribed:r,error:i,subscribe:async()=>{n(!0),o(null);try{const f=await(await navigator.serviceWorker.ready).pushManager.subscribe({userVisibleOnly:!0,applicationServerKey:"BAw6oGpr6FoFDj49xOhFbTSOY07zvcqYWyyXeQXUJIFubi5iLQNV0vYsXKLz7J8520o4IjCq8u9tLPBx2NSuu04"});console.log(25,f),e({subscription:f}),console.log("Subscribed:",JSON.stringify(f)),a(!0)}catch(d){o("Failed to subscribe."),console.error("Subscription failed:",d)}finally{n(!1)}},unsubscribe:async()=>{n(!0),o(null);try{const f=await(await navigator.serviceWorker.ready).pushManager.getSubscription();f?(await f.unsubscribe(),a(!1)):o("No subscription found")}catch(d){o("Failed to unsubscribe."),console.error("Unsubscription failed:",d)}finally{n(!1)}}}}function iIe({}){const{error:e,isSubscribed:t,isSubscribing:n,subscribe:r,unsubscribe:a}=aIe();return w.jsxs(Do,{title:"Notification settings",children:[w.jsx("p",{children:"Here you can manage your notifications"}),w.jsx(P0,{error:e}),w.jsx("button",{className:"btn",disabled:n||t,onClick:()=>r(),children:"Subscribe"}),w.jsx("button",{disabled:!t,className:"btn",onClick:()=>a(),children:"Unsubscribe"})]})}const oIe=(e,t)=>{e.textEditorModule&&localStorage.setItem("app_textEditorModule_address",e.textEditorModule)},sIe=e=>[{label:e.simpleTextEditor,value:"bare"},{label:e.tinymceeditor,value:"tinymce"}];function lIe({}){const{config:e,patchConfig:t}=R.useContext(ph),n=At(),{formik:r}=$r({}),a=(l,u)=>{l.textEditorModule&&(t({textEditorModule:l.textEditorModule}),oIe(l))};R.useEffect(()=>{var l;(l=r.current)==null||l.setValues({textEditorModule:e.textEditorModule})},[e.remote]);const i=sIe(n),o=zs(i);return w.jsxs(Do,{title:n.generalSettings.richTextEditor.title,children:[w.jsx("p",{children:n.generalSettings.richTextEditor.description}),w.jsx(ls,{innerRef:l=>{l&&(r.current=l)},initialValues:{},onSubmit:a,children:l=>w.jsxs("form",{className:"richtext-editor-config-form",onSubmit:u=>u.preventDefault(),children:[w.jsx(P0,{errors:l.errors}),w.jsx(da,{formEffect:{form:l,field:"textEditorModule",beforeSet(u){return u.value}},keyExtractor:u=>u.value,querySource:o,errorMessage:l.errors.textEditorModule,label:n.settings.textEditorModule,hint:n.settings.textEditorModuleHint}),w.jsx(Ws,{disabled:l.values.textEditorModule===""||l.values.textEditorModule===e.textEditorModule,label:n.settings.apply,onClick:()=>l.submitForm()})]})})]})}const uIe=(e,t)=>{if(e.theme){localStorage.setItem("ui_theme",e.theme);const n=document.getElementsByTagName("body")[0].classList;for(const r of n.value.split(" "))r.endsWith("-theme")&&n.remove(r);e.theme.split(" ").forEach(r=>{n.add(r)})}},cIe=[{label:"MacOSX Automatic",value:"mac-theme"},{label:"MacOSX Light",value:"mac-theme light-theme"},{label:"MacOSX Dark",value:"mac-theme dark-theme"}];function dIe({}){const{config:e,patchConfig:t}=R.useContext(ph),n=At(),{formik:r}=$r({}),a=(o,l)=>{o.theme&&(t({theme:o.theme}),uIe(o))};R.useEffect(()=>{var o;(o=r.current)==null||o.setValues({theme:e.theme})},[e.remote]);const i=zs(cIe);return w.jsxs(Do,{title:n.generalSettings.theme.title,children:[w.jsx("p",{children:n.generalSettings.theme.description}),w.jsx(ls,{innerRef:o=>{o&&(r.current=o)},initialValues:{},onSubmit:a,children:o=>w.jsxs("form",{className:"richtext-editor-config-form",onSubmit:l=>l.preventDefault(),children:[w.jsx(P0,{errors:o.errors}),w.jsx(da,{keyExtractor:l=>l.value,formEffect:{form:o,field:"theme",beforeSet(l){return l.value}},errorMessage:o.errors.theme,querySource:i,label:n.settings.theme,hint:n.settings.themeHint}),w.jsx(Ws,{disabled:o.values.theme===""||o.values.theme===e.theme,label:n.settings.apply,onClick:()=>o.submitForm()})]})})]})}function fIe({}){const e=At();return gh(e.menu.settings),w.jsxs("div",{children:[w.jsx(iIe,{}),kr.FORCED_LOCALE?null:w.jsx(nIe,{}),w.jsx(lIe,{}),w.jsx(QMe,{}),kr.FORCE_APP_THEME!=="true"?w.jsx(dIe,{}):null,w.jsx(eIe,{})]})}const pIe={setupTotpDescription:'In order to complete account registeration, you need to scan the following code using "Microsoft authenticator" or "Google Authenticator". After that, you need to enter the 6 digit code from the app here.',welcomeBackDescription:"Select any option to continue to access your account.",google:"Google",selectWorkspace:"You have multiple workspaces associated with your account. Select one to continue.",completeYourAccount:"Complete your account",completeYourAccountDescription:"Complete the information below to complete your signup",registerationNotPossibleLine1:"In this project there are no workspace types that can be used publicly to create account.",enterPassword:"Enter Password",welcomeBack:"Welcome back",emailMethod:"Email",phoneMethod:"Phone number",noAuthenticationMethod:"Authentication Currently Unavailable",firstName:"First name",registerationNotPossible:"Registeration not possible.",setupDualFactor:"Setup Dual Factor",cancelStep:"Cancel and try another way.",enterOtp:"Enter OTP",skipTotpInfo:"You can setup this any time later, by visiting your account security section.",continueWithEmailDescription:"Enter your email address to continue.",enterOtpDescription:"We have sent you an one time password, please enter to continue.",continueWithEmail:"Continue with Email",continueWithPhone:"Continue with Phone",registerationNotPossibleLine2:"Contact the service administrator to create your account for you.",useOneTimePassword:"Use one time password instead",changePassword:{pass1Label:"Password",pass2Label:"Repeat password",submit:"Change Password",title:"Change password",description:"In order to change your password, enter new password twice same in the fields"},continueWithPhoneDescription:"Enter your phone number to continue.",lastName:"Last name",password:"Password",continue:"Continue",anotherAccount:"Choose another account",noAuthenticationMethodDescription:"Sign-in and registration are not available in your region at this time. If you believe this is an error or need access, please contact the administrator.",home:{title:"Account & Profile",description:"Manage your account, emails, passwords and more",passports:"Passports",passportsTitle:"Passports",passportsDescription:"View emails, phone numbers associated with your account."},enterTotp:"Enter Totp Code",enterTotpDescription:"Open your authenticator app and enter the 6 digits.",setupTotp:"Setup Dual Factor",skipTotpButton:"Skip for now",userPassports:{title:"Passports",description:"You can see a list of passports that you can use to authenticate into the system here.",add:"Add new passport",remove:"Remove passport"},selectWorkspaceTitle:"Select workspace",chooseAnotherMethod:"Choose another method",enterPasswordDescription:"Enter your password to continue authorizing your account."},hIe={registerationNotPossibleLine2:"Skontaktuj się z administratorem usługi, aby utworzył konto dla Ciebie.",chooseAnotherMethod:"Wybierz inną metodę",continue:"Kontynuuj",continueWithPhone:"Kontynuuj za pomocą numeru telefonu",enterPassword:"Wprowadź hasło",noAuthenticationMethod:"Uwierzytelnianie obecnie niedostępne",completeYourAccountDescription:"Uzupełnij poniższe informacje, aby zakończyć rejestrację",registerationNotPossible:"Rejestracja niemożliwa.",selectWorkspace:"Masz wiele przestrzeni roboczych powiązanych z Twoim kontem. Wybierz jedną, aby kontynuować.",welcomeBack:"Witamy ponownie",enterOtp:"Wprowadź jednorazowy kod",enterPasswordDescription:"Wprowadź swoje hasło, aby kontynuować autoryzację konta.",userPassports:{add:"Dodaj nowy paszport",description:"Tutaj możesz zobaczyć listę paszportów, które możesz wykorzystać do uwierzytelniania w systemie.",remove:"Usuń paszport",title:"Paszporty"},registerationNotPossibleLine1:"W tym projekcie nie ma dostępnych typów przestrzeni roboczych do publicznego tworzenia konta.",cancelStep:"Anuluj i spróbuj innej metody.",continueWithEmail:"Kontynuuj za pomocą e-maila",continueWithPhoneDescription:"Wprowadź swój numer telefonu, aby kontynuować.",emailMethod:"E-mail",enterTotp:"Wprowadź kod TOTP",noAuthenticationMethodDescription:"Logowanie i rejestracja są obecnie niedostępne w Twoim regionie. Jeśli uważasz, że to błąd lub potrzebujesz dostępu, skontaktuj się z administratorem.",password:"Hasło",anotherAccount:"Wybierz inne konto",enterTotpDescription:"Otwórz aplikację uwierzytelniającą i wprowadź 6-cyfrowy kod.",firstName:"Imię",phoneMethod:"Numer telefonu",setupDualFactor:"Skonfiguruj uwierzytelnianie dwuskładnikowe",setupTotp:"Skonfiguruj uwierzytelnianie dwuskładnikowe",skipTotpInfo:"Możesz skonfigurować to później, odwiedzając sekcję bezpieczeństwa konta.",welcomeBackDescription:"Wybierz dowolną opcję, aby kontynuować dostęp do swojego konta.",changePassword:{pass1Label:"Hasło",pass2Label:"Powtórz hasło",submit:"Zmień hasło",title:"Zmień hasło",description:"Aby zmienić hasło, wprowadź nowe hasło dwukrotnie w polach poniżej"},lastName:"Nazwisko",useOneTimePassword:"Użyj jednorazowego hasła zamiast tego",completeYourAccount:"Uzupełnij swoje konto",continueWithEmailDescription:"Wprowadź swój adres e-mail, aby kontynuować.",enterOtpDescription:"Wysłaliśmy jednorazowy kod, wprowadź go, aby kontynuować.",google:"Google",home:{description:"Zarządzaj swoim kontem, e-mailami, hasłami i innymi",passports:"Paszporty",passportsDescription:"Zobacz e-maile i numery telefonów powiązane z Twoim kontem.",passportsTitle:"Paszporty",title:"Konto i profil"},selectWorkspaceTitle:"Wybierz przestrzeń roboczą",setupTotpDescription:"Aby zakończyć rejestrację konta, zeskanuj poniższy kod za pomocą aplikacji „Microsoft Authenticator” lub „Google Authenticator”. Następnie wprowadź tutaj 6-cyfrowy kod z aplikacji.",skipTotpButton:"Pomiń na razie"},xa={...pIe,$pl:hIe};function k3(e,t){const n={};for(const[r,a]of Object.entries(t))typeof a=="string"?n[r]=`${e}.${a}`:typeof a=="object"&&a!==null&&(n[r]=a);return n}var Va,up,cp,dp,fp,pp,hp,mp,gp,vp,yp,bp,wp,Sp,Ep,Tp,Cp,kp,xp,vk,yk,_p,Op,Rp,uc,bk,Pp,Ap,Np,Mp,Ip,Dp,$p,Lp,wk;function Xe(e,t){if(!{}.hasOwnProperty.call(e,t))throw new TypeError("attempted to use private field on non-instance");return e}var mIe=0;function Rn(e){return"__private_"+mIe+++"_"+e}var jm=Rn("apiVersion"),Um=Rn("context"),Bm=Rn("id"),Wm=Rn("method"),zm=Rn("params"),dd=Rn("data"),fd=Rn("error"),EA=Rn("isJsonAppliable"),I1=Rn("lateInitFields");class Io{get apiVersion(){return Xe(this,jm)[jm]}set apiVersion(t){const n=typeof t=="string"||t===void 0||t===null;Xe(this,jm)[jm]=n?t:String(t)}setApiVersion(t){return this.apiVersion=t,this}get context(){return Xe(this,Um)[Um]}set context(t){const n=typeof t=="string"||t===void 0||t===null;Xe(this,Um)[Um]=n?t:String(t)}setContext(t){return this.context=t,this}get id(){return Xe(this,Bm)[Bm]}set id(t){const n=typeof t=="string"||t===void 0||t===null;Xe(this,Bm)[Bm]=n?t:String(t)}setId(t){return this.id=t,this}get method(){return Xe(this,Wm)[Wm]}set method(t){const n=typeof t=="string"||t===void 0||t===null;Xe(this,Wm)[Wm]=n?t:String(t)}setMethod(t){return this.method=t,this}get params(){return Xe(this,zm)[zm]}set params(t){Xe(this,zm)[zm]=t}setParams(t){return this.params=t,this}get data(){return Xe(this,dd)[dd]}set data(t){t instanceof Io.Data?Xe(this,dd)[dd]=t:Xe(this,dd)[dd]=new Io.Data(t)}setData(t){return this.data=t,this}get error(){return Xe(this,fd)[fd]}set error(t){t instanceof Io.Error?Xe(this,fd)[fd]=t:Xe(this,fd)[fd]=new Io.Error(t)}setError(t){return this.error=t,this}constructor(t=void 0){if(Object.defineProperty(this,I1,{value:vIe}),Object.defineProperty(this,EA,{value:gIe}),Object.defineProperty(this,jm,{writable:!0,value:void 0}),Object.defineProperty(this,Um,{writable:!0,value:void 0}),Object.defineProperty(this,Bm,{writable:!0,value:void 0}),Object.defineProperty(this,Wm,{writable:!0,value:void 0}),Object.defineProperty(this,zm,{writable:!0,value:null}),Object.defineProperty(this,dd,{writable:!0,value:void 0}),Object.defineProperty(this,fd,{writable:!0,value:void 0}),t==null){Xe(this,I1)[I1]();return}if(typeof t=="string")this.applyFromObject(JSON.parse(t));else if(Xe(this,EA)[EA](t))this.applyFromObject(t);else throw new Error("Instance cannot be created on an unknown value, check the content being passed. got: "+typeof t)}applyFromObject(t={}){const n=t;n.apiVersion!==void 0&&(this.apiVersion=n.apiVersion),n.context!==void 0&&(this.context=n.context),n.id!==void 0&&(this.id=n.id),n.method!==void 0&&(this.method=n.method),n.params!==void 0&&(this.params=n.params),n.data!==void 0&&(this.data=n.data),n.error!==void 0&&(this.error=n.error),Xe(this,I1)[I1](t)}toJSON(){return{apiVersion:Xe(this,jm)[jm],context:Xe(this,Um)[Um],id:Xe(this,Bm)[Bm],method:Xe(this,Wm)[Wm],params:Xe(this,zm)[zm],data:Xe(this,dd)[dd],error:Xe(this,fd)[fd]}}toString(){return JSON.stringify(this)}static get Fields(){return{apiVersion:"apiVersion",context:"context",id:"id",method:"method",params:"params",data$:"data",get data(){return k3("data",Io.Data.Fields)},error$:"error",get error(){return k3("error",Io.Error.Fields)}}}static from(t){return new Io(t)}static with(t){return new Io(t)}copyWith(t){return new Io({...this.toJSON(),...t})}clone(){return new Io(this.toJSON())}}Va=Io;function gIe(e){const t=globalThis,n=typeof t.Buffer<"u"&&typeof t.Buffer.isBuffer=="function"&&t.Buffer.isBuffer(e),r=typeof t.Blob<"u"&&e instanceof t.Blob;return e&&typeof e=="object"&&!Array.isArray(e)&&!n&&!(e instanceof ArrayBuffer)&&!r}function vIe(e={}){const t=e;t.data instanceof Va.Data||(this.data=new Va.Data(t.data||{})),t.error instanceof Va.Error||(this.error=new Va.Error(t.error||{}))}Io.Data=(up=Rn("item"),cp=Rn("items"),dp=Rn("editLink"),fp=Rn("selfLink"),pp=Rn("kind"),hp=Rn("fields"),mp=Rn("etag"),gp=Rn("cursor"),vp=Rn("id"),yp=Rn("lang"),bp=Rn("updated"),wp=Rn("currentItemCount"),Sp=Rn("itemsPerPage"),Ep=Rn("startIndex"),Tp=Rn("totalItems"),Cp=Rn("totalAvailableItems"),kp=Rn("pageIndex"),xp=Rn("totalPages"),vk=Rn("isJsonAppliable"),class{get item(){return Xe(this,up)[up]}set item(t){Xe(this,up)[up]=t}setItem(t){return this.item=t,this}get items(){return Xe(this,cp)[cp]}set items(t){Xe(this,cp)[cp]=t}setItems(t){return this.items=t,this}get editLink(){return Xe(this,dp)[dp]}set editLink(t){const n=typeof t=="string"||t===void 0||t===null;Xe(this,dp)[dp]=n?t:String(t)}setEditLink(t){return this.editLink=t,this}get selfLink(){return Xe(this,fp)[fp]}set selfLink(t){const n=typeof t=="string"||t===void 0||t===null;Xe(this,fp)[fp]=n?t:String(t)}setSelfLink(t){return this.selfLink=t,this}get kind(){return Xe(this,pp)[pp]}set kind(t){const n=typeof t=="string"||t===void 0||t===null;Xe(this,pp)[pp]=n?t:String(t)}setKind(t){return this.kind=t,this}get fields(){return Xe(this,hp)[hp]}set fields(t){const n=typeof t=="string"||t===void 0||t===null;Xe(this,hp)[hp]=n?t:String(t)}setFields(t){return this.fields=t,this}get etag(){return Xe(this,mp)[mp]}set etag(t){const n=typeof t=="string"||t===void 0||t===null;Xe(this,mp)[mp]=n?t:String(t)}setEtag(t){return this.etag=t,this}get cursor(){return Xe(this,gp)[gp]}set cursor(t){const n=typeof t=="string"||t===void 0||t===null;Xe(this,gp)[gp]=n?t:String(t)}setCursor(t){return this.cursor=t,this}get id(){return Xe(this,vp)[vp]}set id(t){const n=typeof t=="string"||t===void 0||t===null;Xe(this,vp)[vp]=n?t:String(t)}setId(t){return this.id=t,this}get lang(){return Xe(this,yp)[yp]}set lang(t){const n=typeof t=="string"||t===void 0||t===null;Xe(this,yp)[yp]=n?t:String(t)}setLang(t){return this.lang=t,this}get updated(){return Xe(this,bp)[bp]}set updated(t){const n=typeof t=="string"||t===void 0||t===null;Xe(this,bp)[bp]=n?t:String(t)}setUpdated(t){return this.updated=t,this}get currentItemCount(){return Xe(this,wp)[wp]}set currentItemCount(t){const r=typeof t=="number"||t===void 0||t===null?t:Number(t);Number.isNaN(r)||(Xe(this,wp)[wp]=r)}setCurrentItemCount(t){return this.currentItemCount=t,this}get itemsPerPage(){return Xe(this,Sp)[Sp]}set itemsPerPage(t){const r=typeof t=="number"||t===void 0||t===null?t:Number(t);Number.isNaN(r)||(Xe(this,Sp)[Sp]=r)}setItemsPerPage(t){return this.itemsPerPage=t,this}get startIndex(){return Xe(this,Ep)[Ep]}set startIndex(t){const r=typeof t=="number"||t===void 0||t===null?t:Number(t);Number.isNaN(r)||(Xe(this,Ep)[Ep]=r)}setStartIndex(t){return this.startIndex=t,this}get totalItems(){return Xe(this,Tp)[Tp]}set totalItems(t){const r=typeof t=="number"||t===void 0||t===null?t:Number(t);Number.isNaN(r)||(Xe(this,Tp)[Tp]=r)}setTotalItems(t){return this.totalItems=t,this}get totalAvailableItems(){return Xe(this,Cp)[Cp]}set totalAvailableItems(t){const r=typeof t=="number"||t===void 0||t===null?t:Number(t);Number.isNaN(r)||(Xe(this,Cp)[Cp]=r)}setTotalAvailableItems(t){return this.totalAvailableItems=t,this}get pageIndex(){return Xe(this,kp)[kp]}set pageIndex(t){const r=typeof t=="number"||t===void 0||t===null?t:Number(t);Number.isNaN(r)||(Xe(this,kp)[kp]=r)}setPageIndex(t){return this.pageIndex=t,this}get totalPages(){return Xe(this,xp)[xp]}set totalPages(t){const r=typeof t=="number"||t===void 0||t===null?t:Number(t);Number.isNaN(r)||(Xe(this,xp)[xp]=r)}setTotalPages(t){return this.totalPages=t,this}constructor(t=void 0){if(Object.defineProperty(this,vk,{value:yIe}),Object.defineProperty(this,up,{writable:!0,value:null}),Object.defineProperty(this,cp,{writable:!0,value:null}),Object.defineProperty(this,dp,{writable:!0,value:void 0}),Object.defineProperty(this,fp,{writable:!0,value:void 0}),Object.defineProperty(this,pp,{writable:!0,value:void 0}),Object.defineProperty(this,hp,{writable:!0,value:void 0}),Object.defineProperty(this,mp,{writable:!0,value:void 0}),Object.defineProperty(this,gp,{writable:!0,value:void 0}),Object.defineProperty(this,vp,{writable:!0,value:void 0}),Object.defineProperty(this,yp,{writable:!0,value:void 0}),Object.defineProperty(this,bp,{writable:!0,value:void 0}),Object.defineProperty(this,wp,{writable:!0,value:void 0}),Object.defineProperty(this,Sp,{writable:!0,value:void 0}),Object.defineProperty(this,Ep,{writable:!0,value:void 0}),Object.defineProperty(this,Tp,{writable:!0,value:void 0}),Object.defineProperty(this,Cp,{writable:!0,value:void 0}),Object.defineProperty(this,kp,{writable:!0,value:void 0}),Object.defineProperty(this,xp,{writable:!0,value:void 0}),t!=null)if(typeof t=="string")this.applyFromObject(JSON.parse(t));else if(Xe(this,vk)[vk](t))this.applyFromObject(t);else throw new Error("Instance cannot be created on an unknown value, check the content being passed. got: "+typeof t)}applyFromObject(t={}){const n=t;n.item!==void 0&&(this.item=n.item),n.items!==void 0&&(this.items=n.items),n.editLink!==void 0&&(this.editLink=n.editLink),n.selfLink!==void 0&&(this.selfLink=n.selfLink),n.kind!==void 0&&(this.kind=n.kind),n.fields!==void 0&&(this.fields=n.fields),n.etag!==void 0&&(this.etag=n.etag),n.cursor!==void 0&&(this.cursor=n.cursor),n.id!==void 0&&(this.id=n.id),n.lang!==void 0&&(this.lang=n.lang),n.updated!==void 0&&(this.updated=n.updated),n.currentItemCount!==void 0&&(this.currentItemCount=n.currentItemCount),n.itemsPerPage!==void 0&&(this.itemsPerPage=n.itemsPerPage),n.startIndex!==void 0&&(this.startIndex=n.startIndex),n.totalItems!==void 0&&(this.totalItems=n.totalItems),n.totalAvailableItems!==void 0&&(this.totalAvailableItems=n.totalAvailableItems),n.pageIndex!==void 0&&(this.pageIndex=n.pageIndex),n.totalPages!==void 0&&(this.totalPages=n.totalPages)}toJSON(){return{item:Xe(this,up)[up],items:Xe(this,cp)[cp],editLink:Xe(this,dp)[dp],selfLink:Xe(this,fp)[fp],kind:Xe(this,pp)[pp],fields:Xe(this,hp)[hp],etag:Xe(this,mp)[mp],cursor:Xe(this,gp)[gp],id:Xe(this,vp)[vp],lang:Xe(this,yp)[yp],updated:Xe(this,bp)[bp],currentItemCount:Xe(this,wp)[wp],itemsPerPage:Xe(this,Sp)[Sp],startIndex:Xe(this,Ep)[Ep],totalItems:Xe(this,Tp)[Tp],totalAvailableItems:Xe(this,Cp)[Cp],pageIndex:Xe(this,kp)[kp],totalPages:Xe(this,xp)[xp]}}toString(){return JSON.stringify(this)}static get Fields(){return{item:"item",items:"items",editLink:"editLink",selfLink:"selfLink",kind:"kind",fields:"fields",etag:"etag",cursor:"cursor",id:"id",lang:"lang",updated:"updated",currentItemCount:"currentItemCount",itemsPerPage:"itemsPerPage",startIndex:"startIndex",totalItems:"totalItems",totalAvailableItems:"totalAvailableItems",pageIndex:"pageIndex",totalPages:"totalPages"}}static from(t){return new Va.Data(t)}static with(t){return new Va.Data(t)}copyWith(t){return new Va.Data({...this.toJSON(),...t})}clone(){return new Va.Data(this.toJSON())}});function yIe(e){const t=globalThis,n=typeof t.Buffer<"u"&&typeof t.Buffer.isBuffer=="function"&&t.Buffer.isBuffer(e),r=typeof t.Blob<"u"&&e instanceof t.Blob;return e&&typeof e=="object"&&!Array.isArray(e)&&!n&&!(e instanceof ArrayBuffer)&&!r}Io.Error=(_p=Rn("code"),Op=Rn("message"),Rp=Rn("messageTranslated"),uc=Rn("errors"),bk=Rn("isJsonAppliable"),yk=class Mne{get code(){return Xe(this,_p)[_p]}set code(t){const r=typeof t=="number"?t:Number(t);Number.isNaN(r)||(Xe(this,_p)[_p]=r)}setCode(t){return this.code=t,this}get message(){return Xe(this,Op)[Op]}set message(t){Xe(this,Op)[Op]=String(t)}setMessage(t){return this.message=t,this}get messageTranslated(){return Xe(this,Rp)[Rp]}set messageTranslated(t){Xe(this,Rp)[Rp]=String(t)}setMessageTranslated(t){return this.messageTranslated=t,this}get errors(){return Xe(this,uc)[uc]}set errors(t){Array.isArray(t)&&(t.length>0&&t[0]instanceof Va.Error.Errors?Xe(this,uc)[uc]=t:Xe(this,uc)[uc]=t.map(n=>new Va.Error.Errors(n)))}setErrors(t){return this.errors=t,this}constructor(t=void 0){if(Object.defineProperty(this,bk,{value:wIe}),Object.defineProperty(this,_p,{writable:!0,value:0}),Object.defineProperty(this,Op,{writable:!0,value:""}),Object.defineProperty(this,Rp,{writable:!0,value:""}),Object.defineProperty(this,uc,{writable:!0,value:[]}),t!=null)if(typeof t=="string")this.applyFromObject(JSON.parse(t));else if(Xe(this,bk)[bk](t))this.applyFromObject(t);else throw new Mne("Instance cannot be created on an unknown value, check the content being passed. got: "+typeof t)}applyFromObject(t={}){const n=t;n.code!==void 0&&(this.code=n.code),n.message!==void 0&&(this.message=n.message),n.messageTranslated!==void 0&&(this.messageTranslated=n.messageTranslated),n.errors!==void 0&&(this.errors=n.errors)}toJSON(){return{code:Xe(this,_p)[_p],message:Xe(this,Op)[Op],messageTranslated:Xe(this,Rp)[Rp],errors:Xe(this,uc)[uc]}}toString(){return JSON.stringify(this)}static get Fields(){return{code:"code",message:"message",messageTranslated:"messageTranslated",errors$:"errors",get errors(){return k3("error.errors[:i]",Va.Error.Errors.Fields)}}}static from(t){return new Va.Error(t)}static with(t){return new Va.Error(t)}copyWith(t){return new Va.Error({...this.toJSON(),...t})}clone(){return new Va.Error(this.toJSON())}},yk.Errors=(Pp=Rn("domain"),Ap=Rn("reason"),Np=Rn("message"),Mp=Rn("messageTranslated"),Ip=Rn("location"),Dp=Rn("locationType"),$p=Rn("extendedHelp"),Lp=Rn("sendReport"),wk=Rn("isJsonAppliable"),class{get domain(){return Xe(this,Pp)[Pp]}set domain(t){const n=typeof t=="string"||t===void 0||t===null;Xe(this,Pp)[Pp]=n?t:String(t)}setDomain(t){return this.domain=t,this}get reason(){return Xe(this,Ap)[Ap]}set reason(t){const n=typeof t=="string"||t===void 0||t===null;Xe(this,Ap)[Ap]=n?t:String(t)}setReason(t){return this.reason=t,this}get message(){return Xe(this,Np)[Np]}set message(t){const n=typeof t=="string"||t===void 0||t===null;Xe(this,Np)[Np]=n?t:String(t)}setMessage(t){return this.message=t,this}get messageTranslated(){return Xe(this,Mp)[Mp]}set messageTranslated(t){const n=typeof t=="string"||t===void 0||t===null;Xe(this,Mp)[Mp]=n?t:String(t)}setMessageTranslated(t){return this.messageTranslated=t,this}get location(){return Xe(this,Ip)[Ip]}set location(t){const n=typeof t=="string"||t===void 0||t===null;Xe(this,Ip)[Ip]=n?t:String(t)}setLocation(t){return this.location=t,this}get locationType(){return Xe(this,Dp)[Dp]}set locationType(t){const n=typeof t=="string"||t===void 0||t===null;Xe(this,Dp)[Dp]=n?t:String(t)}setLocationType(t){return this.locationType=t,this}get extendedHelp(){return Xe(this,$p)[$p]}set extendedHelp(t){const n=typeof t=="string"||t===void 0||t===null;Xe(this,$p)[$p]=n?t:String(t)}setExtendedHelp(t){return this.extendedHelp=t,this}get sendReport(){return Xe(this,Lp)[Lp]}set sendReport(t){const n=typeof t=="string"||t===void 0||t===null;Xe(this,Lp)[Lp]=n?t:String(t)}setSendReport(t){return this.sendReport=t,this}constructor(t=void 0){if(Object.defineProperty(this,wk,{value:bIe}),Object.defineProperty(this,Pp,{writable:!0,value:void 0}),Object.defineProperty(this,Ap,{writable:!0,value:void 0}),Object.defineProperty(this,Np,{writable:!0,value:void 0}),Object.defineProperty(this,Mp,{writable:!0,value:void 0}),Object.defineProperty(this,Ip,{writable:!0,value:void 0}),Object.defineProperty(this,Dp,{writable:!0,value:void 0}),Object.defineProperty(this,$p,{writable:!0,value:void 0}),Object.defineProperty(this,Lp,{writable:!0,value:void 0}),t!=null)if(typeof t=="string")this.applyFromObject(JSON.parse(t));else if(Xe(this,wk)[wk](t))this.applyFromObject(t);else throw new yk("Instance cannot be created on an unknown value, check the content being passed. got: "+typeof t)}applyFromObject(t={}){const n=t;n.domain!==void 0&&(this.domain=n.domain),n.reason!==void 0&&(this.reason=n.reason),n.message!==void 0&&(this.message=n.message),n.messageTranslated!==void 0&&(this.messageTranslated=n.messageTranslated),n.location!==void 0&&(this.location=n.location),n.locationType!==void 0&&(this.locationType=n.locationType),n.extendedHelp!==void 0&&(this.extendedHelp=n.extendedHelp),n.sendReport!==void 0&&(this.sendReport=n.sendReport)}toJSON(){return{domain:Xe(this,Pp)[Pp],reason:Xe(this,Ap)[Ap],message:Xe(this,Np)[Np],messageTranslated:Xe(this,Mp)[Mp],location:Xe(this,Ip)[Ip],locationType:Xe(this,Dp)[Dp],extendedHelp:Xe(this,$p)[$p],sendReport:Xe(this,Lp)[Lp]}}toString(){return JSON.stringify(this)}static get Fields(){return{domain:"domain",reason:"reason",message:"message",messageTranslated:"messageTranslated",location:"location",locationType:"locationType",extendedHelp:"extendedHelp",sendReport:"sendReport"}}static from(t){return new Va.Error.Errors(t)}static with(t){return new Va.Error.Errors(t)}copyWith(t){return new Va.Error.Errors({...this.toJSON(),...t})}clone(){return new Va.Error.Errors(this.toJSON())}}),yk);function bIe(e){const t=globalThis,n=typeof t.Buffer<"u"&&typeof t.Buffer.isBuffer=="function"&&t.Buffer.isBuffer(e),r=typeof t.Blob<"u"&&e instanceof t.Blob;return e&&typeof e=="object"&&!Array.isArray(e)&&!n&&!(e instanceof ArrayBuffer)&&!r}function wIe(e){const t=globalThis,n=typeof t.Buffer<"u"&&typeof t.Buffer.isBuffer=="function"&&t.Buffer.isBuffer(e),r=typeof t.Blob<"u"&&e instanceof t.Blob;return e&&typeof e=="object"&&!Array.isArray(e)&&!n&&!(e instanceof ArrayBuffer)&&!r}class us extends Io{constructor(t){super(t),this.creator=void 0}setCreator(t){return this.creator=t,this}inject(t){var n,r,a,i,o,l,u,d;return this.applyFromObject(t),t!=null&&t.data&&(this.data||this.setData({}),Array.isArray(t==null?void 0:t.data.items)&&typeof this.creator<"u"&&this.creator!==null?(a=this.data)==null||a.setItems((r=(n=t==null?void 0:t.data)==null?void 0:n.items)==null?void 0:r.map(f=>{var g;return(g=this.creator)==null?void 0:g.call(this,f)})):typeof((i=t==null?void 0:t.data)==null?void 0:i.item)=="object"&&typeof this.creator<"u"&&this.creator!==null?(l=this.data)==null||l.setItem(this.creator((o=t==null?void 0:t.data)==null?void 0:o.item)):(d=this.data)==null||d.setItem((u=t==null?void 0:t.data)==null?void 0:u.item)),this}}function Vs(e,t,n){if(n&&n instanceof URLSearchParams)e+=`?${n.toString()}`;else if(n&&Object.keys(n).length){const r=new URLSearchParams(Object.entries(n).map(([a,i])=>[a,String(i)])).toString();e+=`?${r}`}return e}const Ine=R.createContext(null),SIe=Ine.Provider;function Gs(){return R.useContext(Ine)}var dE;function Rs(e,t){if(!{}.hasOwnProperty.call(e,t))throw new TypeError("attempted to use private field on non-instance");return e}var EIe=0;function KE(e){return"__private_"+EIe+++"_"+e}const TIe=e=>{const t=Gs(),n=(e==null?void 0:e.ctx)??t??void 0,[r,a]=R.useState(!1),[i,o]=R.useState(),l=()=>(a(!1),Hd.Fetch({headers:e==null?void 0:e.headers},{creatorFn:e==null?void 0:e.creatorFn,qs:e==null?void 0:e.qs,ctx:n,onMessage:e==null?void 0:e.onMessage,overrideUrl:e==null?void 0:e.overrideUrl}).then(d=>(d.done.then(()=>{a(!0)}),o(d.response),d.response.result)));return{...jn({queryKey:[Hd.NewUrl(e==null?void 0:e.qs)],queryFn:l,...e||{}}),isCompleted:r,response:i}};class Hd{}dE=Hd;Hd.URL="/user/passports";Hd.NewUrl=e=>Vs(dE.URL,void 0,e);Hd.Method="get";Hd.Fetch$=async(e,t,n,r)=>qs(r??dE.NewUrl(e),{method:dE.Method,...n||{}},t);Hd.Fetch=async(e,{creatorFn:t,qs:n,ctx:r,onMessage:a,overrideUrl:i}={creatorFn:o=>new dv(o)})=>{t=t||(l=>new dv(l));const o=await dE.Fetch$(n,r,e,i);return Hs(o,l=>{const u=new us;return t&&u.setCreator(t),u.inject(l),u},a,e==null?void 0:e.signal)};Hd.Definition={name:"UserPassports",url:"/user/passports",method:"get",description:"Returns list of passports belongs to an specific user.",out:{envelope:"GResponse",fields:[{name:"value",description:"The passport value, such as email address or phone number",type:"string"},{name:"uniqueId",description:"Unique identifier of the passport to operate some action on top of it",type:"string"},{name:"type",description:"The type of the passport, such as email, phone number",type:"string"},{name:"totpConfirmed",description:"Regardless of the secret, user needs to confirm his secret. There is an extra action to confirm user totp, could be used after signup or prior to login.",type:"bool"}]}};var qm=KE("value"),Hm=KE("uniqueId"),Vm=KE("type"),Gm=KE("totpConfirmed"),TA=KE("isJsonAppliable");class dv{get value(){return Rs(this,qm)[qm]}set value(t){Rs(this,qm)[qm]=String(t)}setValue(t){return this.value=t,this}get uniqueId(){return Rs(this,Hm)[Hm]}set uniqueId(t){Rs(this,Hm)[Hm]=String(t)}setUniqueId(t){return this.uniqueId=t,this}get type(){return Rs(this,Vm)[Vm]}set type(t){Rs(this,Vm)[Vm]=String(t)}setType(t){return this.type=t,this}get totpConfirmed(){return Rs(this,Gm)[Gm]}set totpConfirmed(t){Rs(this,Gm)[Gm]=!!t}setTotpConfirmed(t){return this.totpConfirmed=t,this}constructor(t=void 0){if(Object.defineProperty(this,TA,{value:CIe}),Object.defineProperty(this,qm,{writable:!0,value:""}),Object.defineProperty(this,Hm,{writable:!0,value:""}),Object.defineProperty(this,Vm,{writable:!0,value:""}),Object.defineProperty(this,Gm,{writable:!0,value:void 0}),t!=null)if(typeof t=="string")this.applyFromObject(JSON.parse(t));else if(Rs(this,TA)[TA](t))this.applyFromObject(t);else throw new Error("Instance cannot be created on an unknown value, check the content being passed. got: "+typeof t)}applyFromObject(t={}){const n=t;n.value!==void 0&&(this.value=n.value),n.uniqueId!==void 0&&(this.uniqueId=n.uniqueId),n.type!==void 0&&(this.type=n.type),n.totpConfirmed!==void 0&&(this.totpConfirmed=n.totpConfirmed)}toJSON(){return{value:Rs(this,qm)[qm],uniqueId:Rs(this,Hm)[Hm],type:Rs(this,Vm)[Vm],totpConfirmed:Rs(this,Gm)[Gm]}}toString(){return JSON.stringify(this)}static get Fields(){return{value:"value",uniqueId:"uniqueId",type:"type",totpConfirmed:"totpConfirmed"}}static from(t){return new dv(t)}static with(t){return new dv(t)}copyWith(t){return new dv({...this.toJSON(),...t})}clone(){return new dv(this.toJSON())}}function CIe(e){const t=globalThis,n=typeof t.Buffer<"u"&&typeof t.Buffer.isBuffer=="function"&&t.Buffer.isBuffer(e),r=typeof t.Blob<"u"&&e instanceof t.Blob;return e&&typeof e=="object"&&!Array.isArray(e)&&!n&&!(e instanceof ArrayBuffer)&&!r}const kIe=()=>{const e=Kt(xa),{goBack:t}=xr(),n=TIe({}),{signout:r}=R.useContext(rt);return{goBack:t,signout:r,query:n,s:e}},xIe=({})=>{var a,i;const{query:e,s:t,signout:n}=kIe(),r=((i=(a=e==null?void 0:e.data)==null?void 0:a.data)==null?void 0:i.items)||[];return w.jsxs("div",{className:"signin-form-container",children:[w.jsx("h1",{children:t.userPassports.title}),w.jsx("p",{children:t.userPassports.description}),w.jsx(Il,{query:e}),w.jsx(_Ie,{passports:r}),w.jsx("button",{className:"btn btn-danger mt-3 w-100",onClick:n,children:"Signout"})]})},_Ie=({passports:e})=>{const t=Kt(xa);return w.jsx("div",{className:"d-flex ",children:e.map(n=>w.jsxs("div",{className:"card p-3 w-100",children:[w.jsx("h3",{className:"card-title",children:n.type.toUpperCase()}),w.jsx("p",{className:"card-text",children:n.value}),w.jsxs("p",{className:"text-muted",children:["TOTP: ",n.totpConfirmed?"Yes":"No"]}),w.jsx(Yb,{href:`../change-password/${n.uniqueId}`,children:w.jsx("button",{className:"btn btn-primary",children:t.changePassword.submit})})]},n.uniqueId))})};var fE;function bu(e,t){if(!{}.hasOwnProperty.call(e,t))throw new TypeError("attempted to use private field on non-instance");return e}var OIe=0;function XE(e){return"__private_"+OIe+++"_"+e}const RIe=e=>{const n=Gs()??void 0,[r,a]=R.useState(!1),[i,o]=R.useState();return{...un({mutationFn:d=>(a(!1),wh.Fetch({body:d,headers:e==null?void 0:e.headers},{creatorFn:e==null?void 0:e.creatorFn,qs:e==null?void 0:e.qs,ctx:n,onMessage:e==null?void 0:e.onMessage,overrideUrl:e==null?void 0:e.overrideUrl}).then(f=>(f.done.then(()=>{a(!0)}),o(f.response),f.response.result)))}),isCompleted:r,response:i}};class wh{}fE=wh;wh.URL="/passport/change-password";wh.NewUrl=e=>Vs(fE.URL,void 0,e);wh.Method="post";wh.Fetch$=async(e,t,n,r)=>qs(r??fE.NewUrl(e),{method:fE.Method,...n||{}},t);wh.Fetch=async(e,{creatorFn:t,qs:n,ctx:r,onMessage:a,overrideUrl:i}={creatorFn:o=>new pv(o)})=>{t=t||(l=>new pv(l));const o=await fE.Fetch$(n,r,e,i);return Hs(o,l=>{const u=new us;return t&&u.setCreator(t),u.inject(l),u},a,e==null?void 0:e.signal)};wh.Definition={name:"ChangePassword",cliName:"cp",url:"/passport/change-password",method:"post",description:"Change the password for a given passport of the user. User needs to be authenticated in order to be able to change the password for a given account.",in:{fields:[{name:"password",description:"New password meeting the security requirements.",type:"string",tags:{validate:"required"}},{name:"uniqueId",description:"The passport uniqueId (not the email or phone number) which password would be applied to. Don't confuse with value.",type:"string",tags:{validate:"required"}}]},out:{envelope:"GResponse",fields:[{name:"changed",type:"bool"}]}};var Ym=XE("password"),Km=XE("uniqueId"),CA=XE("isJsonAppliable");class fv{get password(){return bu(this,Ym)[Ym]}set password(t){bu(this,Ym)[Ym]=String(t)}setPassword(t){return this.password=t,this}get uniqueId(){return bu(this,Km)[Km]}set uniqueId(t){bu(this,Km)[Km]=String(t)}setUniqueId(t){return this.uniqueId=t,this}constructor(t=void 0){if(Object.defineProperty(this,CA,{value:PIe}),Object.defineProperty(this,Ym,{writable:!0,value:""}),Object.defineProperty(this,Km,{writable:!0,value:""}),t!=null)if(typeof t=="string")this.applyFromObject(JSON.parse(t));else if(bu(this,CA)[CA](t))this.applyFromObject(t);else throw new Error("Instance cannot be created on an unknown value, check the content being passed. got: "+typeof t)}applyFromObject(t={}){const n=t;n.password!==void 0&&(this.password=n.password),n.uniqueId!==void 0&&(this.uniqueId=n.uniqueId)}toJSON(){return{password:bu(this,Ym)[Ym],uniqueId:bu(this,Km)[Km]}}toString(){return JSON.stringify(this)}static get Fields(){return{password:"password",uniqueId:"uniqueId"}}static from(t){return new fv(t)}static with(t){return new fv(t)}copyWith(t){return new fv({...this.toJSON(),...t})}clone(){return new fv(this.toJSON())}}function PIe(e){const t=globalThis,n=typeof t.Buffer<"u"&&typeof t.Buffer.isBuffer=="function"&&t.Buffer.isBuffer(e),r=typeof t.Blob<"u"&&e instanceof t.Blob;return e&&typeof e=="object"&&!Array.isArray(e)&&!n&&!(e instanceof ArrayBuffer)&&!r}var Xm=XE("changed"),kA=XE("isJsonAppliable");class pv{get changed(){return bu(this,Xm)[Xm]}set changed(t){bu(this,Xm)[Xm]=!!t}setChanged(t){return this.changed=t,this}constructor(t=void 0){if(Object.defineProperty(this,kA,{value:AIe}),Object.defineProperty(this,Xm,{writable:!0,value:void 0}),t!=null)if(typeof t=="string")this.applyFromObject(JSON.parse(t));else if(bu(this,kA)[kA](t))this.applyFromObject(t);else throw new Error("Instance cannot be created on an unknown value, check the content being passed. got: "+typeof t)}applyFromObject(t={}){const n=t;n.changed!==void 0&&(this.changed=n.changed)}toJSON(){return{changed:bu(this,Xm)[Xm]}}toString(){return JSON.stringify(this)}static get Fields(){return{changed:"changed"}}static from(t){return new pv(t)}static with(t){return new pv(t)}copyWith(t){return new pv({...this.toJSON(),...t})}clone(){return new pv(this.toJSON())}}function AIe(e){const t=globalThis,n=typeof t.Buffer<"u"&&typeof t.Buffer.isBuffer=="function"&&t.Buffer.isBuffer(e),r=typeof t.Blob<"u"&&e instanceof t.Blob;return e&&typeof e=="object"&&!Array.isArray(e)&&!n&&!(e instanceof ArrayBuffer)&&!r}const NIe=()=>{const e=Kt(xa),{goBack:t,state:n,replace:r,push:a,query:i}=xr(),o=RIe(),l=i==null?void 0:i.uniqueId,u=()=>{o.mutateAsync(new fv(d.values)).then(f=>{t()})},d=tf({initialValues:{},onSubmit:u});return R.useEffect(()=>{!l||!d||d.setFieldValue(fv.Fields.uniqueId,l)},[l]),{mutation:o,form:d,submit:u,goBack:t,s:e}},MIe=({})=>{const{mutation:e,form:t,s:n}=NIe();return w.jsxs("div",{className:"signin-form-container",children:[w.jsx("h1",{children:n.changePassword.title}),w.jsx("p",{children:n.changePassword.description}),w.jsx(Il,{query:e}),w.jsx(IIe,{form:t,mutation:e})]})},IIe=({form:e,mutation:t})=>{const n=Kt(xa),{password2:r,password:a}=e.values,i=a!==r||((a==null?void 0:a.length)||0)<6;return w.jsxs("form",{onSubmit:o=>{o.preventDefault(),e.submitForm()},children:[w.jsx(In,{type:"password",value:e.values.password,label:n.changePassword.pass1Label,id:"password-input",errorMessage:e.errors.password,onChange:o=>e.setFieldValue("password",o,!1)}),w.jsx(In,{type:"password",value:e.values.password2,label:n.changePassword.pass2Label,id:"password-input-2",errorMessage:e.errors.password,onChange:o=>e.setFieldValue("password2",o,!1)}),w.jsx(Ws,{className:"btn btn-primary w-100 d-block mb-2",mutation:t,id:"submit-form",disabled:i,children:n.continue})]})};function DIe(e={}){const{nonce:t,onScriptLoadSuccess:n,onScriptLoadError:r}=e,[a,i]=R.useState(!1),o=R.useRef(n);o.current=n;const l=R.useRef(r);return l.current=r,R.useEffect(()=>{const u=document.createElement("script");return u.src="https://accounts.google.com/gsi/client",u.async=!0,u.defer=!0,u.nonce=t,u.onload=()=>{var d;i(!0),(d=o.current)===null||d===void 0||d.call(o)},u.onerror=()=>{var d;i(!1),(d=l.current)===null||d===void 0||d.call(l)},document.body.appendChild(u),()=>{document.body.removeChild(u)}},[t]),a}const Dne=R.createContext(null);function $Ie({clientId:e,nonce:t,onScriptLoadSuccess:n,onScriptLoadError:r,children:a}){const i=DIe({nonce:t,onScriptLoadSuccess:n,onScriptLoadError:r}),o=R.useMemo(()=>({clientId:e,scriptLoadedSuccessfully:i}),[e,i]);return ze.createElement(Dne.Provider,{value:o},a)}function LIe(){const e=R.useContext(Dne);if(!e)throw new Error("Google OAuth components must be used within GoogleOAuthProvider");return e}function FIe({flow:e="implicit",scope:t="",onSuccess:n,onError:r,onNonOAuthError:a,overrideScope:i,state:o,...l}){const{clientId:u,scriptLoadedSuccessfully:d}=LIe(),f=R.useRef(),g=R.useRef(n);g.current=n;const y=R.useRef(r);y.current=r;const h=R.useRef(a);h.current=a,R.useEffect(()=>{var T,C;if(!d)return;const k=e==="implicit"?"initTokenClient":"initCodeClient",_=(C=(T=window==null?void 0:window.google)===null||T===void 0?void 0:T.accounts)===null||C===void 0?void 0:C.oauth2[k]({client_id:u,scope:i?t:`openid profile email ${t}`,callback:A=>{var P,N;if(A.error)return(P=y.current)===null||P===void 0?void 0:P.call(y,A);(N=g.current)===null||N===void 0||N.call(g,A)},error_callback:A=>{var P;(P=h.current)===null||P===void 0||P.call(h,A)},state:o,...l});f.current=_},[u,d,e,t,o]);const v=R.useCallback(T=>{var C;return(C=f.current)===null||C===void 0?void 0:C.requestAccessToken(T)},[]),E=R.useCallback(()=>{var T;return(T=f.current)===null||T===void 0?void 0:T.requestCode()},[]);return e==="implicit"?v:E}const $ne=()=>w.jsxs("div",{className:"loader",id:"loader-4",children:[w.jsx("span",{}),w.jsx("span",{}),w.jsx("span",{})]});var pE;function Ui(e,t){if(!{}.hasOwnProperty.call(e,t))throw new TypeError("attempted to use private field on non-instance");return e}var jIe=0;function Vv(e){return"__private_"+jIe+++"_"+e}const UIe=e=>{const t=Gs(),n=(e==null?void 0:e.ctx)??t??void 0,[r,a]=R.useState(!1),[i,o]=R.useState();return{...un({mutationFn:d=>(a(!1),Sh.Fetch({body:d,headers:e==null?void 0:e.headers},{creatorFn:e==null?void 0:e.creatorFn,qs:e==null?void 0:e.qs,ctx:n,onMessage:e==null?void 0:e.onMessage,overrideUrl:e==null?void 0:e.overrideUrl}).then(f=>(f.done.then(()=>{a(!0)}),o(f.response),f.response.result))),...e||{}}),isCompleted:r,response:i}};class Sh{}pE=Sh;Sh.URL="/passport/via-oauth";Sh.NewUrl=e=>Vs(pE.URL,void 0,e);Sh.Method="post";Sh.Fetch$=async(e,t,n,r)=>qs(r??pE.NewUrl(e),{method:pE.Method,...n||{}},t);Sh.Fetch=async(e,{creatorFn:t,qs:n,ctx:r,onMessage:a,overrideUrl:i}={creatorFn:o=>new hv(o)})=>{t=t||(l=>new hv(l));const o=await pE.Fetch$(n,r,e,i);return Hs(o,l=>{const u=new us;return t&&u.setCreator(t),u.inject(l),u},a,e==null?void 0:e.signal)};Sh.Definition={name:"OauthAuthenticate",url:"/passport/via-oauth",method:"post",description:"When a token is got from a oauth service such as google, we send the token here to authenticate the user. To me seems this doesn't need to have 2FA or anything, so we return the session directly, or maybe there needs to be next step.",in:{fields:[{name:"token",description:"The token that Auth2 provider returned to the front-end, which will be used to validate the backend",type:"string"},{name:"service",description:"The service name, such as 'google' which later backend will use to authorize the token and create the user.",type:"string"}]},out:{envelope:"GResponse",fields:[{name:"session",type:"one",target:"UserSessionDto"},{name:"next",description:"The next possible action which is suggested.",type:"slice",primitive:"string"}]}};var Qm=Vv("token"),Jm=Vv("service"),xA=Vv("isJsonAppliable");class Ub{get token(){return Ui(this,Qm)[Qm]}set token(t){Ui(this,Qm)[Qm]=String(t)}setToken(t){return this.token=t,this}get service(){return Ui(this,Jm)[Jm]}set service(t){Ui(this,Jm)[Jm]=String(t)}setService(t){return this.service=t,this}constructor(t=void 0){if(Object.defineProperty(this,xA,{value:BIe}),Object.defineProperty(this,Qm,{writable:!0,value:""}),Object.defineProperty(this,Jm,{writable:!0,value:""}),t!=null)if(typeof t=="string")this.applyFromObject(JSON.parse(t));else if(Ui(this,xA)[xA](t))this.applyFromObject(t);else throw new Error("Instance cannot be created on an unknown value, check the content being passed. got: "+typeof t)}applyFromObject(t={}){const n=t;n.token!==void 0&&(this.token=n.token),n.service!==void 0&&(this.service=n.service)}toJSON(){return{token:Ui(this,Qm)[Qm],service:Ui(this,Jm)[Jm]}}toString(){return JSON.stringify(this)}static get Fields(){return{token:"token",service:"service"}}static from(t){return new Ub(t)}static with(t){return new Ub(t)}copyWith(t){return new Ub({...this.toJSON(),...t})}clone(){return new Ub(this.toJSON())}}function BIe(e){const t=globalThis,n=typeof t.Buffer<"u"&&typeof t.Buffer.isBuffer=="function"&&t.Buffer.isBuffer(e),r=typeof t.Blob<"u"&&e instanceof t.Blob;return e&&typeof e=="object"&&!Array.isArray(e)&&!n&&!(e instanceof ArrayBuffer)&&!r}var pd=Vv("session"),Zm=Vv("next"),_A=Vv("isJsonAppliable"),D1=Vv("lateInitFields");class hv{get session(){return Ui(this,pd)[pd]}set session(t){t instanceof Dr?Ui(this,pd)[pd]=t:Ui(this,pd)[pd]=new Dr(t)}setSession(t){return this.session=t,this}get next(){return Ui(this,Zm)[Zm]}set next(t){Ui(this,Zm)[Zm]=t}setNext(t){return this.next=t,this}constructor(t=void 0){if(Object.defineProperty(this,D1,{value:zIe}),Object.defineProperty(this,_A,{value:WIe}),Object.defineProperty(this,pd,{writable:!0,value:void 0}),Object.defineProperty(this,Zm,{writable:!0,value:[]}),t==null){Ui(this,D1)[D1]();return}if(typeof t=="string")this.applyFromObject(JSON.parse(t));else if(Ui(this,_A)[_A](t))this.applyFromObject(t);else throw new Error("Instance cannot be created on an unknown value, check the content being passed. got: "+typeof t)}applyFromObject(t={}){const n=t;n.session!==void 0&&(this.session=n.session),n.next!==void 0&&(this.next=n.next),Ui(this,D1)[D1](t)}toJSON(){return{session:Ui(this,pd)[pd],next:Ui(this,Zm)[Zm]}}toString(){return JSON.stringify(this)}static get Fields(){return{session$:"session",get session(){return Wd("session",Dr.Fields)},next$:"next",get next(){return"next[:i]"}}}static from(t){return new hv(t)}static with(t){return new hv(t)}copyWith(t){return new hv({...this.toJSON(),...t})}clone(){return new hv(this.toJSON())}}function WIe(e){const t=globalThis,n=typeof t.Buffer<"u"&&typeof t.Buffer.isBuffer=="function"&&t.Buffer.isBuffer(e),r=typeof t.Blob<"u"&&e instanceof t.Blob;return e&&typeof e=="object"&&!Array.isArray(e)&&!n&&!(e instanceof ArrayBuffer)&&!r}function zIe(e={}){const t=e;t.session instanceof Dr||(this.session=new Dr(t.session||{}))}var Ds=(e=>(e.Email="email",e.Phone="phone",e.Google="google",e.Facebook="facebook",e))(Ds||{});const QE=()=>{const{setSession:e,selectUrw:t,selectedUrw:n}=R.useContext(rt),{locale:r}=sr(),{replace:a}=xr();return{onComplete:o=>{var g,y;e(o.data.item.session),window.ReactNativeWebView&&window.ReactNativeWebView.postMessage(JSON.stringify(o.data));const u=new URLSearchParams(window.location.search).get("redirect"),d=sessionStorage.getItem("redirect_temporary");if(!((y=(g=o.data)==null?void 0:g.item.session)==null?void 0:y.token)){alert("Authentication has failed.");return}if(sessionStorage.removeItem("redirect_temporary"),sessionStorage.removeItem("workspace_type_id"),d)window.location.href=d;else if(u){const h=new URL(u);h.searchParams.set("session",JSON.stringify(o.data.item.session)),window.location.href=h.toString()}else{const h="/{locale}/dashboard".replace("{locale}",r||"en");a(h,h)}}}},qIe=e=>{R.useEffect(()=>{const t=new URLSearchParams(window.location.search),n=window.location.hash.indexOf("?"),r=n!==-1?new URLSearchParams(window.location.hash.slice(n)):new URLSearchParams;e.forEach(a=>{const i=t.get(a)||r.get(a);i&&sessionStorage.setItem(a,i)})},[e.join(",")])},HIe=({continueWithResult:e,facebookAppId:t})=>{Kt(xa),R.useEffect(()=>{if(window.FB)return;const r=document.createElement("script");r.src="https://connect.facebook.net/en_US/sdk.js",r.async=!0,r.onload=()=>{window.FB.init({appId:t,cookie:!0,xfbml:!1,version:"v19.0"})},document.body.appendChild(r)},[]);const n=()=>{const r=window.FB;if(!r){alert("Facebook SDK not loaded");return}r.login(a=>{var i;console.log("Facebook:",a),(i=a.authResponse)!=null&&i.accessToken?e(a.authResponse.accessToken):alert("Facebook login failed")},{scope:"email,public_profile"})};return w.jsxs("button",{id:"using-facebook",type:"button",onClick:n,children:[w.jsx("img",{className:"button-icon",src:Fs("/common/facebook.png")}),"Facebook"]})};var hE;function Gr(e,t){if(!{}.hasOwnProperty.call(e,t))throw new TypeError("attempted to use private field on non-instance");return e}var VIe=0;function of(e){return"__private_"+VIe+++"_"+e}const Lne=e=>{const t=Gs(),n=(e==null?void 0:e.ctx)??t??void 0,[r,a]=R.useState(!1),[i,o]=R.useState(),l=()=>(a(!1),Vd.Fetch({headers:e==null?void 0:e.headers},{creatorFn:e==null?void 0:e.creatorFn,qs:e==null?void 0:e.qs,ctx:n,onMessage:e==null?void 0:e.onMessage,overrideUrl:e==null?void 0:e.overrideUrl}).then(d=>(d.done.then(()=>{a(!0)}),o(d.response),d.response.result)));return{...jn({queryKey:[Vd.NewUrl(e==null?void 0:e.qs)],queryFn:l,...e||{}}),isCompleted:r,response:i}};class Vd{}hE=Vd;Vd.URL="/passports/available-methods";Vd.NewUrl=e=>Vs(hE.URL,void 0,e);Vd.Method="get";Vd.Fetch$=async(e,t,n,r)=>qs(r??hE.NewUrl(e),{method:hE.Method,...n||{}},t);Vd.Fetch=async(e,{creatorFn:t,qs:n,ctx:r,onMessage:a,overrideUrl:i}={creatorFn:o=>new Qp(o)})=>{t=t||(l=>new Qp(l));const o=await hE.Fetch$(n,r,e,i);return Hs(o,l=>{const u=new us;return t&&u.setCreator(t),u.inject(l),u},a,e==null?void 0:e.signal)};Vd.Definition={name:"CheckPassportMethods",cliName:"check-passport-methods",url:"/passports/available-methods",method:"get",description:"Publicly available information to create the authentication form, and show users how they can signin or signup to the system. Based on the PassportMethod entities, it will compute the available methods for the user, considering their region (IP for example)",out:{envelope:"GResponse",fields:[{name:"email",type:"bool",default:!1},{name:"phone",type:"bool",default:!1},{name:"google",type:"bool",default:!1},{name:"facebook",type:"bool",default:!1},{name:"googleOAuthClientKey",type:"string"},{name:"facebookAppId",type:"string"},{name:"enabledRecaptcha2",type:"bool",default:!1},{name:"recaptcha2ClientKey",type:"string"}]}};var eg=of("email"),tg=of("phone"),ng=of("google"),rg=of("facebook"),ag=of("googleOAuthClientKey"),ig=of("facebookAppId"),og=of("enabledRecaptcha2"),sg=of("recaptcha2ClientKey"),OA=of("isJsonAppliable");class Qp{get email(){return Gr(this,eg)[eg]}set email(t){Gr(this,eg)[eg]=!!t}setEmail(t){return this.email=t,this}get phone(){return Gr(this,tg)[tg]}set phone(t){Gr(this,tg)[tg]=!!t}setPhone(t){return this.phone=t,this}get google(){return Gr(this,ng)[ng]}set google(t){Gr(this,ng)[ng]=!!t}setGoogle(t){return this.google=t,this}get facebook(){return Gr(this,rg)[rg]}set facebook(t){Gr(this,rg)[rg]=!!t}setFacebook(t){return this.facebook=t,this}get googleOAuthClientKey(){return Gr(this,ag)[ag]}set googleOAuthClientKey(t){Gr(this,ag)[ag]=String(t)}setGoogleOAuthClientKey(t){return this.googleOAuthClientKey=t,this}get facebookAppId(){return Gr(this,ig)[ig]}set facebookAppId(t){Gr(this,ig)[ig]=String(t)}setFacebookAppId(t){return this.facebookAppId=t,this}get enabledRecaptcha2(){return Gr(this,og)[og]}set enabledRecaptcha2(t){Gr(this,og)[og]=!!t}setEnabledRecaptcha2(t){return this.enabledRecaptcha2=t,this}get recaptcha2ClientKey(){return Gr(this,sg)[sg]}set recaptcha2ClientKey(t){Gr(this,sg)[sg]=String(t)}setRecaptcha2ClientKey(t){return this.recaptcha2ClientKey=t,this}constructor(t=void 0){if(Object.defineProperty(this,OA,{value:GIe}),Object.defineProperty(this,eg,{writable:!0,value:!1}),Object.defineProperty(this,tg,{writable:!0,value:!1}),Object.defineProperty(this,ng,{writable:!0,value:!1}),Object.defineProperty(this,rg,{writable:!0,value:!1}),Object.defineProperty(this,ag,{writable:!0,value:""}),Object.defineProperty(this,ig,{writable:!0,value:""}),Object.defineProperty(this,og,{writable:!0,value:!1}),Object.defineProperty(this,sg,{writable:!0,value:""}),t!=null)if(typeof t=="string")this.applyFromObject(JSON.parse(t));else if(Gr(this,OA)[OA](t))this.applyFromObject(t);else throw new Error("Instance cannot be created on an unknown value, check the content being passed. got: "+typeof t)}applyFromObject(t={}){const n=t;n.email!==void 0&&(this.email=n.email),n.phone!==void 0&&(this.phone=n.phone),n.google!==void 0&&(this.google=n.google),n.facebook!==void 0&&(this.facebook=n.facebook),n.googleOAuthClientKey!==void 0&&(this.googleOAuthClientKey=n.googleOAuthClientKey),n.facebookAppId!==void 0&&(this.facebookAppId=n.facebookAppId),n.enabledRecaptcha2!==void 0&&(this.enabledRecaptcha2=n.enabledRecaptcha2),n.recaptcha2ClientKey!==void 0&&(this.recaptcha2ClientKey=n.recaptcha2ClientKey)}toJSON(){return{email:Gr(this,eg)[eg],phone:Gr(this,tg)[tg],google:Gr(this,ng)[ng],facebook:Gr(this,rg)[rg],googleOAuthClientKey:Gr(this,ag)[ag],facebookAppId:Gr(this,ig)[ig],enabledRecaptcha2:Gr(this,og)[og],recaptcha2ClientKey:Gr(this,sg)[sg]}}toString(){return JSON.stringify(this)}static get Fields(){return{email:"email",phone:"phone",google:"google",facebook:"facebook",googleOAuthClientKey:"googleOAuthClientKey",facebookAppId:"facebookAppId",enabledRecaptcha2:"enabledRecaptcha2",recaptcha2ClientKey:"recaptcha2ClientKey"}}static from(t){return new Qp(t)}static with(t){return new Qp(t)}copyWith(t){return new Qp({...this.toJSON(),...t})}clone(){return new Qp(this.toJSON())}}function GIe(e){const t=globalThis,n=typeof t.Buffer<"u"&&typeof t.Buffer.isBuffer=="function"&&t.Buffer.isBuffer(e),r=typeof t.Blob<"u"&&e instanceof t.Blob;return e&&typeof e=="object"&&!Array.isArray(e)&&!n&&!(e instanceof ArrayBuffer)&&!r}const YIe=()=>{var f,g;const e=At(),{locale:t}=sr(),{push:n}=xr(),r=R.useRef(),a=Lne({});qIe(["redirect_temporary","workspace_type_id"]);const[i,o]=R.useState(void 0),l=i?Object.values(i).filter(Boolean).length:void 0,u=(g=(f=a.data)==null?void 0:f.data)==null?void 0:g.item,d=(y,h=!0)=>{switch(y){case Ds.Email:n(`/${t}/selfservice/email`,void 0,{canGoBack:h});break;case Ds.Phone:n(`/${t}/selfservice/phone`,void 0,{canGoBack:h});break}};return R.useEffect(()=>{if(!u)return;const y={email:u.email,google:u.google,facebook:u.facebook,phone:u.phone,googleOAuthClientKey:u.googleOAuthClientKey,facebookAppId:u.facebookAppId};Object.values(y).filter(Boolean).length===1&&(y.email&&d(Ds.Email,!1),y.phone&&d(Ds.Phone,!1),y.google&&d(Ds.Google,!1),y.facebook&&d(Ds.Facebook,!1)),o(y)},[u]),{t:e,formik:r,onSelect:d,availableOptions:i,passportMethodsQuery:a,isLoadingMethods:a.isLoading,totalAvailableMethods:l}},KIe=()=>{const{onSelect:e,availableOptions:t,totalAvailableMethods:n,isLoadingMethods:r,passportMethodsQuery:a}=YIe(),i=tf({initialValues:{},onSubmit:()=>{}});return a.isError||a.error?w.jsx("div",{className:"signin-form-container",children:w.jsx(Il,{query:a})}):n===void 0||r?w.jsx("div",{className:"signin-form-container",children:w.jsx($ne,{})}):n===0?w.jsx("div",{className:"signin-form-container",children:w.jsx(QIe,{})}):w.jsx("div",{className:"signin-form-container",children:t.googleOAuthClientKey?w.jsx($Ie,{clientId:t.googleOAuthClientKey,children:w.jsx(pz,{availableOptions:t,onSelect:e,form:i})}):w.jsx(pz,{availableOptions:t,onSelect:e,form:i})})},pz=({form:e,onSelect:t,availableOptions:n})=>{const{mutateAsync:r}=UIe({}),{setSession:a}=R.useContext(rt),{locale:i}=sr(),{replace:o}=xr(),l=(d,f)=>{r(new Ub({service:f,token:d})).then(g=>{var y,h,v;a((h=(y=g.data)==null?void 0:y.item)==null?void 0:h.session),window.ReactNativeWebView&&window.ReactNativeWebView.postMessage(JSON.stringify((v=g.data)==null?void 0:v.item));{const E=kr.DEFAULT_ROUTE.replace("{locale}",i||"en");o(E,E)}}).catch(g=>{alert(g)})},u=Kt(xa);return w.jsxs("form",{onSubmit:d=>{d.preventDefault(),e.submitForm()},children:[w.jsx("h1",{children:u.welcomeBack}),w.jsxs("p",{children:[u.welcomeBackDescription," "]}),w.jsxs("div",{role:"group","aria-label":"Login method",className:"flex gap-2 login-option-buttons",children:[n.email?w.jsx("button",{id:"using-email",type:"button",onClick:()=>t(Ds.Email),children:u.emailMethod}):null,n.phone?w.jsx("button",{id:"using-phone",type:"button",onClick:()=>t(Ds.Phone),children:u.phoneMethod}):null,n.facebook?w.jsx(HIe,{facebookAppId:n.facebookAppId,continueWithResult:d=>l(d,"facebook")}):null,n.google?w.jsx(XIe,{continueWithResult:d=>l(d,"google")}):null]})]})},XIe=({continueWithResult:e})=>{const t=Kt(xa),n=FIe({onSuccess:r=>{e(r.access_token)},scope:["https://www.googleapis.com/auth/userinfo.profile"].join(" ")});return w.jsx(w.Fragment,{children:w.jsxs("button",{id:"using-google",type:"button",onClick:()=>n(),children:[w.jsx("img",{className:"button-icon",src:Fs("/common/google.png")}),t.google]})})},QIe=()=>{const e=Kt(xa);return w.jsxs(w.Fragment,{children:[w.jsx("h1",{children:e.noAuthenticationMethod}),w.jsx("p",{children:e.noAuthenticationMethodDescription})]})};var JIe=["sitekey","onChange","theme","type","tabindex","onExpired","onErrored","size","stoken","grecaptcha","badge","hl","isolated"];function x3(){return x3=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0)&&(n[a]=e[a]);return n}function Sk(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function eDe(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,_3(e,t)}function _3(e,t){return _3=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,a){return r.__proto__=a,r},_3(e,t)}var L_=(function(e){eDe(t,e);function t(){var r;return r=e.call(this)||this,r.handleExpired=r.handleExpired.bind(Sk(r)),r.handleErrored=r.handleErrored.bind(Sk(r)),r.handleChange=r.handleChange.bind(Sk(r)),r.handleRecaptchaRef=r.handleRecaptchaRef.bind(Sk(r)),r}var n=t.prototype;return n.getCaptchaFunction=function(a){return this.props.grecaptcha?this.props.grecaptcha.enterprise?this.props.grecaptcha.enterprise[a]:this.props.grecaptcha[a]:null},n.getValue=function(){var a=this.getCaptchaFunction("getResponse");return a&&this._widgetId!==void 0?a(this._widgetId):null},n.getWidgetId=function(){return this.props.grecaptcha&&this._widgetId!==void 0?this._widgetId:null},n.execute=function(){var a=this.getCaptchaFunction("execute");if(a&&this._widgetId!==void 0)return a(this._widgetId);this._executeRequested=!0},n.executeAsync=function(){var a=this;return new Promise(function(i,o){a.executionResolve=i,a.executionReject=o,a.execute()})},n.reset=function(){var a=this.getCaptchaFunction("reset");a&&this._widgetId!==void 0&&a(this._widgetId)},n.forceReset=function(){var a=this.getCaptchaFunction("reset");a&&a()},n.handleExpired=function(){this.props.onExpired?this.props.onExpired():this.handleChange(null)},n.handleErrored=function(){this.props.onErrored&&this.props.onErrored(),this.executionReject&&(this.executionReject(),delete this.executionResolve,delete this.executionReject)},n.handleChange=function(a){this.props.onChange&&this.props.onChange(a),this.executionResolve&&(this.executionResolve(a),delete this.executionReject,delete this.executionResolve)},n.explicitRender=function(){var a=this.getCaptchaFunction("render");if(a&&this._widgetId===void 0){var i=document.createElement("div");this._widgetId=a(i,{sitekey:this.props.sitekey,callback:this.handleChange,theme:this.props.theme,type:this.props.type,tabindex:this.props.tabindex,"expired-callback":this.handleExpired,"error-callback":this.handleErrored,size:this.props.size,stoken:this.props.stoken,hl:this.props.hl,badge:this.props.badge,isolated:this.props.isolated}),this.captcha.appendChild(i)}this._executeRequested&&this.props.grecaptcha&&this._widgetId!==void 0&&(this._executeRequested=!1,this.execute())},n.componentDidMount=function(){this.explicitRender()},n.componentDidUpdate=function(){this.explicitRender()},n.handleRecaptchaRef=function(a){this.captcha=a},n.render=function(){var a=this.props;a.sitekey,a.onChange,a.theme,a.type,a.tabindex,a.onExpired,a.onErrored,a.size,a.stoken,a.grecaptcha,a.badge,a.hl,a.isolated;var i=ZIe(a,JIe);return R.createElement("div",x3({},i,{ref:this.handleRecaptchaRef}))},t})(R.Component);L_.displayName="ReCAPTCHA";L_.propTypes={sitekey:Ye.string.isRequired,onChange:Ye.func,grecaptcha:Ye.object,theme:Ye.oneOf(["dark","light"]),type:Ye.oneOf(["image","audio"]),tabindex:Ye.number,onExpired:Ye.func,onErrored:Ye.func,size:Ye.oneOf(["compact","normal","invisible"]),stoken:Ye.string,hl:Ye.string,badge:Ye.oneOf(["bottomright","bottomleft","inline"]),isolated:Ye.bool};L_.defaultProps={onChange:function(){},theme:"light",type:"image",tabindex:0,size:"normal",badge:"bottomright"};function O3(){return O3=Object.assign||function(e){for(var t=1;t=0)&&(n[a]=e[a]);return n}function nDe(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}var hu={},rDe=0;function aDe(e,t){return t=t||{},function(r){var a=r.displayName||r.name||"Component",i=(function(l){nDe(u,l);function u(f,g){var y;return y=l.call(this,f,g)||this,y.state={},y.__scriptURL="",y}var d=u.prototype;return d.asyncScriptLoaderGetScriptLoaderID=function(){return this.__scriptLoaderID||(this.__scriptLoaderID="async-script-loader-"+rDe++),this.__scriptLoaderID},d.setupScriptURL=function(){return this.__scriptURL=typeof e=="function"?e():e,this.__scriptURL},d.asyncScriptLoaderHandleLoad=function(g){var y=this;this.setState(g,function(){return y.props.asyncScriptOnLoad&&y.props.asyncScriptOnLoad(y.state)})},d.asyncScriptLoaderTriggerOnScriptLoaded=function(){var g=hu[this.__scriptURL];if(!g||!g.loaded)throw new Error("Script is not loaded.");for(var y in g.observers)g.observers[y](g);delete window[t.callbackName]},d.componentDidMount=function(){var g=this,y=this.setupScriptURL(),h=this.asyncScriptLoaderGetScriptLoaderID(),v=t,E=v.globalName,T=v.callbackName,C=v.scriptId;if(E&&typeof window[E]<"u"&&(hu[y]={loaded:!0,observers:{}}),hu[y]){var k=hu[y];if(k&&(k.loaded||k.errored)){this.asyncScriptLoaderHandleLoad(k);return}k.observers[h]=function(I){return g.asyncScriptLoaderHandleLoad(I)};return}var _={};_[h]=function(I){return g.asyncScriptLoaderHandleLoad(I)},hu[y]={loaded:!1,observers:_};var A=document.createElement("script");A.src=y,A.async=!0;for(var P in t.attributes)A.setAttribute(P,t.attributes[P]);C&&(A.id=C);var N=function(L){if(hu[y]){var j=hu[y],z=j.observers;for(var Q in z)L(z[Q])&&delete z[Q]}};T&&typeof window<"u"&&(window[T]=function(){return g.asyncScriptLoaderTriggerOnScriptLoaded()}),A.onload=function(){var I=hu[y];I&&(I.loaded=!0,N(function(L){return T?!1:(L(I),!0)}))},A.onerror=function(){var I=hu[y];I&&(I.errored=!0,N(function(L){return L(I),!0}))},document.body.appendChild(A)},d.componentWillUnmount=function(){var g=this.__scriptURL;if(t.removeOnUnmount===!0)for(var y=document.getElementsByTagName("script"),h=0;h-1&&y[h].parentNode&&y[h].parentNode.removeChild(y[h]);var v=hu[g];v&&(delete v.observers[this.asyncScriptLoaderGetScriptLoaderID()],t.removeOnUnmount===!0&&delete hu[g])},d.render=function(){var g=t.globalName,y=this.props;y.asyncScriptOnLoad;var h=y.forwardedRef,v=tDe(y,["asyncScriptOnLoad","forwardedRef"]);return g&&typeof window<"u"&&(v[g]=typeof window[g]<"u"?window[g]:void 0),v.ref=h,R.createElement(r,v)},u})(R.Component),o=R.forwardRef(function(l,u){return R.createElement(i,O3({},l,{forwardedRef:u}))});return o.displayName="AsyncScriptLoader("+a+")",o.propTypes={asyncScriptOnLoad:Ye.func},cfe(o,r)}}var R3="onloadcallback",iDe="grecaptcha";function P3(){return typeof window<"u"&&window.recaptchaOptions||{}}function oDe(){var e=P3(),t=e.useRecaptchaNet?"recaptcha.net":"www.google.com";return e.enterprise?"https://"+t+"/recaptcha/enterprise.js?onload="+R3+"&render=explicit":"https://"+t+"/recaptcha/api.js?onload="+R3+"&render=explicit"}const sDe=aDe(oDe,{callbackName:R3,globalName:iDe,attributes:P3().nonce?{nonce:P3().nonce}:{}})(L_),lDe=({sitekey:e,enabled:t,invisible:n})=>{n=n===void 0?!0:n;const[r,a]=R.useState(),[i,o]=R.useState(!1),l=R.createRef(),u=R.useRef("");return R.useEffect(()=>{var g,y;t&&l.current&&((g=l.current)==null||g.execute(),(y=l.current)==null||y.reset())},[t,l.current]),R.useEffect(()=>{setTimeout(()=>{u.current||o(!0)},2e3)},[]),{value:r,Component:()=>!t||!e?null:w.jsx(w.Fragment,{children:w.jsx(sDe,{sitekey:e,size:n&&!i?"invisible":void 0,ref:l,onChange:g=>{a(g),u.current=g}})}),LegalNotice:()=>!n||!t?null:w.jsxs("div",{className:"mt-5 recaptcha-closure",children:["This site is protected by reCAPTCHA and the Google",w.jsxs("a",{target:"_blank",href:"https://policies.google.com/privacy",children:[" ","Privacy Policy"," "]})," ","and",w.jsxs("a",{target:"_blank",href:"https://policies.google.com/terms",children:[" ","Terms of Service"," "]})," ","apply."]})}};var mE,yS,Fp,jp,Up,Bp,Ek;function wr(e,t){if(!{}.hasOwnProperty.call(e,t))throw new TypeError("attempted to use private field on non-instance");return e}var uDe=0;function xl(e){return"__private_"+uDe+++"_"+e}const cDe=e=>{const n=Gs()??void 0,[r,a]=R.useState(!1),[i,o]=R.useState();return{...un({mutationFn:d=>(a(!1),Eh.Fetch({body:d,headers:e==null?void 0:e.headers},{creatorFn:e==null?void 0:e.creatorFn,qs:e==null?void 0:e.qs,ctx:n,onMessage:e==null?void 0:e.onMessage,overrideUrl:e==null?void 0:e.overrideUrl}).then(f=>(f.done.then(()=>{a(!0)}),o(f.response),f.response.result)))}),isCompleted:r,response:i}};class Eh{}mE=Eh;Eh.URL="/workspace/passport/check";Eh.NewUrl=e=>Vs(mE.URL,void 0,e);Eh.Method="post";Eh.Fetch$=async(e,t,n,r)=>qs(r??mE.NewUrl(e),{method:mE.Method,...n||{}},t);Eh.Fetch=async(e,{creatorFn:t,qs:n,ctx:r,onMessage:a,overrideUrl:i}={creatorFn:o=>new Cl(o)})=>{t=t||(l=>new Cl(l));const o=await mE.Fetch$(n,r,e,i);return Hs(o,l=>{const u=new us;return t&&u.setCreator(t),u.inject(l),u},a,e==null?void 0:e.signal)};Eh.Definition={name:"CheckClassicPassport",cliName:"ccp",url:"/workspace/passport/check",method:"post",description:"Checks if a classic passport (email, phone) exists or not, used in multi step authentication",in:{fields:[{name:"value",type:"string",tags:{validate:"required"}},{name:"securityToken",description:"This can be the value of ReCaptcha2, ReCaptcha3, or generate security image or voice for verification. Will be used based on the configuration.",type:"string"}]},out:{envelope:"GResponse",fields:[{name:"next",description:"The next possible action which is suggested.",type:"slice",primitive:"string"},{name:"flags",description:"Extra information that can be useful actually when doing onboarding. Make sure sensitive information doesn't go out.",type:"slice",primitive:"string"},{name:"otpInfo",description:"If the endpoint automatically triggers a send otp, then it would be holding that information, Also the otp information can become available.",type:"object?",fields:[{name:"suspendUntil",type:"int64"},{name:"validUntil",type:"int64"},{name:"blockedUntil",type:"int64"},{name:"secondsToUnblock",description:"The amount of time left to unblock for next request",type:"int64"}]}]}};var lg=xl("value"),ug=xl("securityToken"),RA=xl("isJsonAppliable");class mv{get value(){return wr(this,lg)[lg]}set value(t){wr(this,lg)[lg]=String(t)}setValue(t){return this.value=t,this}get securityToken(){return wr(this,ug)[ug]}set securityToken(t){wr(this,ug)[ug]=String(t)}setSecurityToken(t){return this.securityToken=t,this}constructor(t=void 0){if(Object.defineProperty(this,RA,{value:dDe}),Object.defineProperty(this,lg,{writable:!0,value:""}),Object.defineProperty(this,ug,{writable:!0,value:""}),t!=null)if(typeof t=="string")this.applyFromObject(JSON.parse(t));else if(wr(this,RA)[RA](t))this.applyFromObject(t);else throw new Error("Instance cannot be created on an unknown value, check the content being passed. got: "+typeof t)}applyFromObject(t={}){const n=t;n.value!==void 0&&(this.value=n.value),n.securityToken!==void 0&&(this.securityToken=n.securityToken)}toJSON(){return{value:wr(this,lg)[lg],securityToken:wr(this,ug)[ug]}}toString(){return JSON.stringify(this)}static get Fields(){return{value:"value",securityToken:"securityToken"}}static from(t){return new mv(t)}static with(t){return new mv(t)}copyWith(t){return new mv({...this.toJSON(),...t})}clone(){return new mv(this.toJSON())}}function dDe(e){const t=globalThis,n=typeof t.Buffer<"u"&&typeof t.Buffer.isBuffer=="function"&&t.Buffer.isBuffer(e),r=typeof t.Blob<"u"&&e instanceof t.Blob;return e&&typeof e=="object"&&!Array.isArray(e)&&!n&&!(e instanceof ArrayBuffer)&&!r}var cg=xl("next"),dg=xl("flags"),hd=xl("otpInfo"),PA=xl("isJsonAppliable");class Cl{get next(){return wr(this,cg)[cg]}set next(t){wr(this,cg)[cg]=t}setNext(t){return this.next=t,this}get flags(){return wr(this,dg)[dg]}set flags(t){wr(this,dg)[dg]=t}setFlags(t){return this.flags=t,this}get otpInfo(){return wr(this,hd)[hd]}set otpInfo(t){t instanceof Cl.OtpInfo?wr(this,hd)[hd]=t:wr(this,hd)[hd]=new Cl.OtpInfo(t)}setOtpInfo(t){return this.otpInfo=t,this}constructor(t=void 0){if(Object.defineProperty(this,PA,{value:fDe}),Object.defineProperty(this,cg,{writable:!0,value:[]}),Object.defineProperty(this,dg,{writable:!0,value:[]}),Object.defineProperty(this,hd,{writable:!0,value:void 0}),t!=null)if(typeof t=="string")this.applyFromObject(JSON.parse(t));else if(wr(this,PA)[PA](t))this.applyFromObject(t);else throw new Error("Instance cannot be created on an unknown value, check the content being passed. got: "+typeof t)}applyFromObject(t={}){const n=t;n.next!==void 0&&(this.next=n.next),n.flags!==void 0&&(this.flags=n.flags),n.otpInfo!==void 0&&(this.otpInfo=n.otpInfo)}toJSON(){return{next:wr(this,cg)[cg],flags:wr(this,dg)[dg],otpInfo:wr(this,hd)[hd]}}toString(){return JSON.stringify(this)}static get Fields(){return{next$:"next",get next(){return"next[:i]"},flags$:"flags",get flags(){return"flags[:i]"},otpInfo$:"otpInfo",get otpInfo(){return Wd("otpInfo",Cl.OtpInfo.Fields)}}}static from(t){return new Cl(t)}static with(t){return new Cl(t)}copyWith(t){return new Cl({...this.toJSON(),...t})}clone(){return new Cl(this.toJSON())}}yS=Cl;function fDe(e){const t=globalThis,n=typeof t.Buffer<"u"&&typeof t.Buffer.isBuffer=="function"&&t.Buffer.isBuffer(e),r=typeof t.Blob<"u"&&e instanceof t.Blob;return e&&typeof e=="object"&&!Array.isArray(e)&&!n&&!(e instanceof ArrayBuffer)&&!r}Cl.OtpInfo=(Fp=xl("suspendUntil"),jp=xl("validUntil"),Up=xl("blockedUntil"),Bp=xl("secondsToUnblock"),Ek=xl("isJsonAppliable"),class{get suspendUntil(){return wr(this,Fp)[Fp]}set suspendUntil(t){const r=typeof t=="number"?t:Number(t);Number.isNaN(r)||(wr(this,Fp)[Fp]=r)}setSuspendUntil(t){return this.suspendUntil=t,this}get validUntil(){return wr(this,jp)[jp]}set validUntil(t){const r=typeof t=="number"?t:Number(t);Number.isNaN(r)||(wr(this,jp)[jp]=r)}setValidUntil(t){return this.validUntil=t,this}get blockedUntil(){return wr(this,Up)[Up]}set blockedUntil(t){const r=typeof t=="number"?t:Number(t);Number.isNaN(r)||(wr(this,Up)[Up]=r)}setBlockedUntil(t){return this.blockedUntil=t,this}get secondsToUnblock(){return wr(this,Bp)[Bp]}set secondsToUnblock(t){const r=typeof t=="number"?t:Number(t);Number.isNaN(r)||(wr(this,Bp)[Bp]=r)}setSecondsToUnblock(t){return this.secondsToUnblock=t,this}constructor(t=void 0){if(Object.defineProperty(this,Ek,{value:pDe}),Object.defineProperty(this,Fp,{writable:!0,value:0}),Object.defineProperty(this,jp,{writable:!0,value:0}),Object.defineProperty(this,Up,{writable:!0,value:0}),Object.defineProperty(this,Bp,{writable:!0,value:0}),t!=null)if(typeof t=="string")this.applyFromObject(JSON.parse(t));else if(wr(this,Ek)[Ek](t))this.applyFromObject(t);else throw new Error("Instance cannot be created on an unknown value, check the content being passed. got: "+typeof t)}applyFromObject(t={}){const n=t;n.suspendUntil!==void 0&&(this.suspendUntil=n.suspendUntil),n.validUntil!==void 0&&(this.validUntil=n.validUntil),n.blockedUntil!==void 0&&(this.blockedUntil=n.blockedUntil),n.secondsToUnblock!==void 0&&(this.secondsToUnblock=n.secondsToUnblock)}toJSON(){return{suspendUntil:wr(this,Fp)[Fp],validUntil:wr(this,jp)[jp],blockedUntil:wr(this,Up)[Up],secondsToUnblock:wr(this,Bp)[Bp]}}toString(){return JSON.stringify(this)}static get Fields(){return{suspendUntil:"suspendUntil",validUntil:"validUntil",blockedUntil:"blockedUntil",secondsToUnblock:"secondsToUnblock"}}static from(t){return new yS.OtpInfo(t)}static with(t){return new yS.OtpInfo(t)}copyWith(t){return new yS.OtpInfo({...this.toJSON(),...t})}clone(){return new yS.OtpInfo(this.toJSON())}});function pDe(e){const t=globalThis,n=typeof t.Buffer<"u"&&typeof t.Buffer.isBuffer=="function"&&t.Buffer.isBuffer(e),r=typeof t.Blob<"u"&&e instanceof t.Blob;return e&&typeof e=="object"&&!Array.isArray(e)&&!n&&!(e instanceof ArrayBuffer)&&!r}const hDe=({method:e})=>{var k,_,A;const t=Kt(xa),{goBack:n,push:r,state:a}=xr(),{locale:i}=sr(),o=cDe(),l=(a==null?void 0:a.canGoBack)!==!1;let u=!1,d="";const{data:f}=Lne({});f instanceof us&&f.data.item instanceof Qp&&(u=(k=f==null?void 0:f.data)==null?void 0:k.item.enabledRecaptcha2,d=(A=(_=f==null?void 0:f.data)==null?void 0:_.item)==null?void 0:A.recaptcha2ClientKey);const g=P=>{o.mutateAsync(new mv(P)).then(N=>{var j;const{next:I,flags:L}=(j=N==null?void 0:N.data)==null?void 0:j.item;I.includes("otp")&&I.length===1?r(`/${i}/selfservice/otp`,void 0,{value:P.value,type:e}):I.includes("signin-with-password")?r(`/${i}/selfservice/password`,void 0,{value:P.value,next:I,canContinueOnOtp:I==null?void 0:I.includes("otp"),flags:L}):I.includes("create-with-password")&&r(`/${i}/selfservice/complete`,void 0,{value:P.value,type:e,next:I,flags:L})}).catch(N=>{y==null||y.setErrors(S0(N))})},y=tf({initialValues:{},onSubmit:g});let h=t.continueWithEmail,v=t.continueWithEmailDescription;e==="phone"&&(h=t.continueWithPhone,v=t.continueWithPhoneDescription);const{Component:E,LegalNotice:T,value:C}=lDe({enabled:u,sitekey:d});return R.useEffect(()=>{!u||!C||y.setFieldValue(mv.Fields.securityToken,C)},[C]),{title:h,mutation:o,canGoBack:l,form:y,enabledRecaptcha2:u,recaptcha2ClientKey:d,description:v,Recaptcha:E,LegalNotice:T,s:t,submit:g,goBack:n}};var gE;function Or(e,t){if(!{}.hasOwnProperty.call(e,t))throw new TypeError("attempted to use private field on non-instance");return e}var mDe=0;function Pu(e){return"__private_"+mDe+++"_"+e}const Fne=e=>{const n=Gs()??void 0,[r,a]=R.useState(!1),[i,o]=R.useState();return{...un({mutationFn:d=>(a(!1),Th.Fetch({body:d,headers:e==null?void 0:e.headers},{creatorFn:e==null?void 0:e.creatorFn,qs:e==null?void 0:e.qs,ctx:n,onMessage:e==null?void 0:e.onMessage,overrideUrl:e==null?void 0:e.overrideUrl}).then(f=>(f.done.then(()=>{a(!0)}),o(f.response),f.response.result)))}),isCompleted:r,response:i}};class Th{}gE=Th;Th.URL="/passports/signin/classic";Th.NewUrl=e=>Vs(gE.URL,void 0,e);Th.Method="post";Th.Fetch$=async(e,t,n,r)=>qs(r??gE.NewUrl(e),{method:gE.Method,...n||{}},t);Th.Fetch=async(e,{creatorFn:t,qs:n,ctx:r,onMessage:a,overrideUrl:i}={creatorFn:o=>new gv(o)})=>{t=t||(l=>new gv(l));const o=await gE.Fetch$(n,r,e,i);return Hs(o,l=>{const u=new us;return t&&u.setCreator(t),u.inject(l),u},a,e==null?void 0:e.signal)};Th.Definition={name:"ClassicSignin",cliName:"in",url:"/passports/signin/classic",method:"post",description:"Signin publicly to and account using class passports (email, password)",in:{fields:[{name:"value",type:"string",tags:{validate:"required"}},{name:"password",type:"string",tags:{validate:"required"}},{name:"totpCode",description:"Accepts login with totp code. If enabled, first login would return a success response with next[enter-totp] value and ui can understand that user needs to be navigated into the screen other screen.",type:"string"},{name:"sessionSecret",description:"Session secret when logging in to the application requires more steps to complete.",type:"string"}]},out:{envelope:"GResponse",fields:[{name:"session",type:"one",target:"UserSessionDto"},{name:"next",description:"The next possible action which is suggested.",type:"slice",primitive:"string"},{name:"totpUrl",description:"In case the account doesn't have totp, but enforced by installation, this value will contain the link",type:"string"},{name:"sessionSecret",description:"Returns a secret session if the authentication requires more steps.",type:"string"}]}};var fg=Pu("value"),pg=Pu("password"),hg=Pu("totpCode"),mg=Pu("sessionSecret"),AA=Pu("isJsonAppliable");class Su{get value(){return Or(this,fg)[fg]}set value(t){Or(this,fg)[fg]=String(t)}setValue(t){return this.value=t,this}get password(){return Or(this,pg)[pg]}set password(t){Or(this,pg)[pg]=String(t)}setPassword(t){return this.password=t,this}get totpCode(){return Or(this,hg)[hg]}set totpCode(t){Or(this,hg)[hg]=String(t)}setTotpCode(t){return this.totpCode=t,this}get sessionSecret(){return Or(this,mg)[mg]}set sessionSecret(t){Or(this,mg)[mg]=String(t)}setSessionSecret(t){return this.sessionSecret=t,this}constructor(t=void 0){if(Object.defineProperty(this,AA,{value:gDe}),Object.defineProperty(this,fg,{writable:!0,value:""}),Object.defineProperty(this,pg,{writable:!0,value:""}),Object.defineProperty(this,hg,{writable:!0,value:""}),Object.defineProperty(this,mg,{writable:!0,value:""}),t!=null)if(typeof t=="string")this.applyFromObject(JSON.parse(t));else if(Or(this,AA)[AA](t))this.applyFromObject(t);else throw new Error("Instance cannot be created on an unknown value, check the content being passed. got: "+typeof t)}applyFromObject(t={}){const n=t;n.value!==void 0&&(this.value=n.value),n.password!==void 0&&(this.password=n.password),n.totpCode!==void 0&&(this.totpCode=n.totpCode),n.sessionSecret!==void 0&&(this.sessionSecret=n.sessionSecret)}toJSON(){return{value:Or(this,fg)[fg],password:Or(this,pg)[pg],totpCode:Or(this,hg)[hg],sessionSecret:Or(this,mg)[mg]}}toString(){return JSON.stringify(this)}static get Fields(){return{value:"value",password:"password",totpCode:"totpCode",sessionSecret:"sessionSecret"}}static from(t){return new Su(t)}static with(t){return new Su(t)}copyWith(t){return new Su({...this.toJSON(),...t})}clone(){return new Su(this.toJSON())}}function gDe(e){const t=globalThis,n=typeof t.Buffer<"u"&&typeof t.Buffer.isBuffer=="function"&&t.Buffer.isBuffer(e),r=typeof t.Blob<"u"&&e instanceof t.Blob;return e&&typeof e=="object"&&!Array.isArray(e)&&!n&&!(e instanceof ArrayBuffer)&&!r}var md=Pu("session"),gg=Pu("next"),vg=Pu("totpUrl"),yg=Pu("sessionSecret"),NA=Pu("isJsonAppliable"),$1=Pu("lateInitFields");class gv{get session(){return Or(this,md)[md]}set session(t){t instanceof Dr?Or(this,md)[md]=t:Or(this,md)[md]=new Dr(t)}setSession(t){return this.session=t,this}get next(){return Or(this,gg)[gg]}set next(t){Or(this,gg)[gg]=t}setNext(t){return this.next=t,this}get totpUrl(){return Or(this,vg)[vg]}set totpUrl(t){Or(this,vg)[vg]=String(t)}setTotpUrl(t){return this.totpUrl=t,this}get sessionSecret(){return Or(this,yg)[yg]}set sessionSecret(t){Or(this,yg)[yg]=String(t)}setSessionSecret(t){return this.sessionSecret=t,this}constructor(t=void 0){if(Object.defineProperty(this,$1,{value:yDe}),Object.defineProperty(this,NA,{value:vDe}),Object.defineProperty(this,md,{writable:!0,value:void 0}),Object.defineProperty(this,gg,{writable:!0,value:[]}),Object.defineProperty(this,vg,{writable:!0,value:""}),Object.defineProperty(this,yg,{writable:!0,value:""}),t==null){Or(this,$1)[$1]();return}if(typeof t=="string")this.applyFromObject(JSON.parse(t));else if(Or(this,NA)[NA](t))this.applyFromObject(t);else throw new Error("Instance cannot be created on an unknown value, check the content being passed. got: "+typeof t)}applyFromObject(t={}){const n=t;n.session!==void 0&&(this.session=n.session),n.next!==void 0&&(this.next=n.next),n.totpUrl!==void 0&&(this.totpUrl=n.totpUrl),n.sessionSecret!==void 0&&(this.sessionSecret=n.sessionSecret),Or(this,$1)[$1](t)}toJSON(){return{session:Or(this,md)[md],next:Or(this,gg)[gg],totpUrl:Or(this,vg)[vg],sessionSecret:Or(this,yg)[yg]}}toString(){return JSON.stringify(this)}static get Fields(){return{session$:"session",get session(){return Wd("session",Dr.Fields)},next$:"next",get next(){return"next[:i]"},totpUrl:"totpUrl",sessionSecret:"sessionSecret"}}static from(t){return new gv(t)}static with(t){return new gv(t)}copyWith(t){return new gv({...this.toJSON(),...t})}clone(){return new gv(this.toJSON())}}function vDe(e){const t=globalThis,n=typeof t.Buffer<"u"&&typeof t.Buffer.isBuffer=="function"&&t.Buffer.isBuffer(e),r=typeof t.Blob<"u"&&e instanceof t.Blob;return e&&typeof e=="object"&&!Array.isArray(e)&&!n&&!(e instanceof ArrayBuffer)&&!r}function yDe(e={}){const t=e;t.session instanceof Dr||(this.session=new Dr(t.session||{}))}const hz=({method:e})=>{const{description:t,title:n,goBack:r,mutation:a,form:i,canGoBack:o,LegalNotice:l,Recaptcha:u,s:d}=hDe({method:e});return w.jsxs("div",{className:"signin-form-container",children:[w.jsx("h1",{children:n}),w.jsx("p",{children:t}),w.jsx(Il,{query:a}),w.jsx(wDe,{form:i,method:e,mutation:a}),w.jsx(u,{}),o?w.jsx("button",{id:"go-back-button",className:"btn bg-transparent w-100 mt-4",onClick:r,children:d.chooseAnotherMethod}):null,w.jsx(l,{})]})},bDe=e=>/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(e),wDe=({form:e,mutation:t,method:n})=>{var o,l,u;let r="email";n===Ds.Phone&&(r="phonenumber");let a=!((o=e==null?void 0:e.values)!=null&&o.value);Ds.Email===n&&(a=!bDe((l=e==null?void 0:e.values)==null?void 0:l.value));const i=Kt(xa);return w.jsxs("form",{onSubmit:d=>{d.preventDefault(),e.submitForm()},children:[w.jsx(In,{autoFocus:!0,type:r,id:"value-input",dir:"ltr",value:(u=e==null?void 0:e.values)==null?void 0:u.value,errorMessage:e==null?void 0:e.errors.value,onChange:d=>e.setFieldValue(Su.Fields.value,d,!1)}),w.jsx(Ws,{className:"btn btn-primary w-100 d-block mb-2",mutation:t,id:"submit-form",disabled:a,children:i.continue})]})};var SDe=Object.defineProperty,Wx=Object.getOwnPropertySymbols,jne=Object.prototype.hasOwnProperty,Une=Object.prototype.propertyIsEnumerable,mz=(e,t,n)=>t in e?SDe(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,A3=(e,t)=>{for(var n in t||(t={}))jne.call(t,n)&&mz(e,n,t[n]);if(Wx)for(var n of Wx(t))Une.call(t,n)&&mz(e,n,t[n]);return e},N3=(e,t)=>{var n={};for(var r in e)jne.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&Wx)for(var r of Wx(e))t.indexOf(r)<0&&Une.call(e,r)&&(n[r]=e[r]);return n};/** + `),()=>{document.head.contains(h)&&document.head.removeChild(h)}},[t]),w.jsx(FNe,{isPresent:t,childRef:a,sizeRef:i,children:R.cloneElement(e,{ref:a})})}const UNe=({children:e,initial:t,isPresent:n,onExitComplete:r,custom:a,presenceAffectsLayout:i,mode:o,anchorX:l})=>{const u=Dj(BNe),d=R.useId();let f=!0,g=R.useMemo(()=>(f=!1,{id:d,initial:t,isPresent:n,custom:a,onExitComplete:y=>{u.set(y,!0);for(const h of u.values())if(!h)return;r&&r()},register:y=>(u.set(y,!1),()=>u.delete(y))}),[n,u,r]);return i&&f&&(g={...g}),R.useMemo(()=>{u.forEach((y,h)=>u.set(h,!1))},[n]),R.useEffect(()=>{!n&&!u.size&&r&&r()},[n]),o==="popLayout"&&(e=w.jsx(jNe,{isPresent:n,anchorX:l,children:e})),w.jsx(iO.Provider,{value:g,children:e})};function BNe(){return new Map}function Ene(e=!0){const t=R.useContext(iO);if(t===null)return[!0,null];const{isPresent:n,onExitComplete:r,register:a}=t,i=R.useId();R.useEffect(()=>{if(e)return a(i)},[e]);const o=R.useCallback(()=>e&&r&&r(i),[i,r,e]);return!n&&r?[!1,o]:[!0]}const qk=e=>e.key||"";function YW(e){const t=[];return R.Children.forEach(e,n=>{R.isValidElement(n)&&t.push(n)}),t}const WNe=({children:e,custom:t,initial:n=!0,onExitComplete:r,presenceAffectsLayout:a=!0,mode:i="sync",propagate:o=!1,anchorX:l="left"})=>{const[u,d]=Ene(o),f=R.useMemo(()=>YW(e),[e]),g=o&&!u?[]:f.map(qk),y=R.useRef(!0),h=R.useRef(f),v=Dj(()=>new Map),[E,T]=R.useState(f),[C,k]=R.useState(f);Nte(()=>{y.current=!1,h.current=f;for(let P=0;P{const N=qk(P),I=o&&!u?!1:f===C||g.includes(N),L=()=>{if(v.has(N))v.set(N,!0);else return;let j=!0;v.forEach(z=>{z||(j=!1)}),j&&(A==null||A(),k(h.current),o&&(d==null||d()),r&&r())};return w.jsx(UNe,{isPresent:I,initial:!y.current||n?void 0:!1,custom:t,presenceAffectsLayout:a,mode:i,onExitComplete:I?void 0:L,anchorX:l,children:P},N)})})},Tne=R.createContext({strict:!1}),KW={animation:["animate","variants","whileHover","whileTap","exit","whileInView","whileFocus","whileDrag"],exit:["exit"],drag:["drag","dragControls"],focus:["whileFocus"],hover:["whileHover","onHoverStart","onHoverEnd"],tap:["whileTap","onTap","onTapStart","onTapCancel"],pan:["onPan","onPanStart","onPanSessionStart","onPanEnd"],inView:["whileInView","onViewportEnter","onViewportLeave"],layout:["layout","layoutId"]},D0={};for(const e in KW)D0[e]={isEnabled:t=>KW[e].some(n=>!!t[n])};function zNe(e){for(const t in e)D0[t]={...D0[t],...e[t]}}const qNe=new Set(["animate","exit","variants","initial","style","values","variants","transition","transformTemplate","custom","inherit","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","_dragX","_dragY","onHoverStart","onHoverEnd","onViewportEnter","onViewportLeave","globalTapTarget","ignoreStrict","viewport"]);function d_(e){return e.startsWith("while")||e.startsWith("drag")&&e!=="draggable"||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||e.startsWith("onLayout")||qNe.has(e)}let Cne=e=>!d_(e);function HNe(e){typeof e=="function"&&(Cne=t=>t.startsWith("on")?!d_(t):e(t))}try{HNe(require("@emotion/is-prop-valid").default)}catch{}function VNe(e,t,n){const r={};for(const a in e)a==="values"&&typeof e.values=="object"||(Cne(a)||n===!0&&d_(a)||!t&&!d_(a)||e.draggable&&a.startsWith("onDrag"))&&(r[a]=e[a]);return r}function GNe(e){if(typeof Proxy>"u")return e;const t=new Map,n=(...r)=>e(...r);return new Proxy(n,{get:(r,a)=>a==="create"?e:(t.has(a)||t.set(a,e(a)),t.get(a))})}const oO=R.createContext({});function sO(e){return e!==null&&typeof e=="object"&&typeof e.start=="function"}function AE(e){return typeof e=="string"||Array.isArray(e)}const o4=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],s4=["initial",...o4];function lO(e){return sO(e.animate)||s4.some(t=>AE(e[t]))}function kne(e){return!!(lO(e)||e.variants)}function YNe(e,t){if(lO(e)){const{initial:n,animate:r}=e;return{initial:n===!1||AE(n)?n:void 0,animate:AE(r)?r:void 0}}return e.inherit!==!1?t:{}}function KNe(e){const{initial:t,animate:n}=YNe(e,R.useContext(oO));return R.useMemo(()=>({initial:t,animate:n}),[XW(t),XW(n)])}function XW(e){return Array.isArray(e)?e.join(" "):e}const XNe=Symbol.for("motionComponentSymbol");function a0(e){return e&&typeof e=="object"&&Object.prototype.hasOwnProperty.call(e,"current")}function QNe(e,t,n){return R.useCallback(r=>{r&&e.onMount&&e.onMount(r),t&&(r?t.mount(r):t.unmount()),n&&(typeof n=="function"?n(r):a0(n)&&(n.current=r))},[t])}const l4=e=>e.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase(),JNe="framerAppearId",xne="data-"+l4(JNe),_ne=R.createContext({});function ZNe(e,t,n,r,a){var E,T;const{visualElement:i}=R.useContext(oO),o=R.useContext(Tne),l=R.useContext(iO),u=R.useContext(i4).reducedMotion,d=R.useRef(null);r=r||o.renderer,!d.current&&r&&(d.current=r(e,{visualState:t,parent:i,props:n,presenceContext:l,blockInitialAnimation:l?l.initial===!1:!1,reducedMotionConfig:u}));const f=d.current,g=R.useContext(_ne);f&&!f.projection&&a&&(f.type==="html"||f.type==="svg")&&e2e(d.current,n,a,g);const y=R.useRef(!1);R.useInsertionEffect(()=>{f&&y.current&&f.update(n,l)});const h=n[xne],v=R.useRef(!!h&&!((E=window.MotionHandoffIsComplete)!=null&&E.call(window,h))&&((T=window.MotionHasOptimisedAnimation)==null?void 0:T.call(window,h)));return Nte(()=>{f&&(y.current=!0,window.MotionIsMounted=!0,f.updateFeatures(),r4.render(f.render),v.current&&f.animationState&&f.animationState.animateChanges())}),R.useEffect(()=>{f&&(!v.current&&f.animationState&&f.animationState.animateChanges(),v.current&&(queueMicrotask(()=>{var C;(C=window.MotionHandoffMarkAsComplete)==null||C.call(window,h)}),v.current=!1))}),f}function e2e(e,t,n,r){const{layoutId:a,layout:i,drag:o,dragConstraints:l,layoutScroll:u,layoutRoot:d,layoutCrossfade:f}=t;e.projection=new n(e.latestValues,t["data-framer-portal-id"]?void 0:One(e.parent)),e.projection.setOptions({layoutId:a,layout:i,alwaysMeasureLayout:!!o||l&&a0(l),visualElement:e,animationType:typeof i=="string"?i:"both",initialPromotionConfig:r,crossfade:f,layoutScroll:u,layoutRoot:d})}function One(e){if(e)return e.options.allowProjection!==!1?e.projection:One(e.parent)}function t2e({preloadedFeatures:e,createVisualElement:t,useRender:n,useVisualState:r,Component:a}){e&&zNe(e);function i(l,u){let d;const f={...R.useContext(i4),...l,layoutId:n2e(l)},{isStatic:g}=f,y=KNe(l),h=r(l,g);if(!g&&$j){r2e();const v=a2e(f);d=v.MeasureLayout,y.visualElement=ZNe(a,h,f,t,v.ProjectionNode)}return w.jsxs(oO.Provider,{value:y,children:[d&&y.visualElement?w.jsx(d,{visualElement:y.visualElement,...f}):null,n(a,l,QNe(h,y.visualElement,u),h,g,y.visualElement)]})}i.displayName=`motion.${typeof a=="string"?a:`create(${a.displayName??a.name??""})`}`;const o=R.forwardRef(i);return o[XNe]=a,o}function n2e({layoutId:e}){const t=R.useContext(Ij).id;return t&&e!==void 0?t+"-"+e:e}function r2e(e,t){R.useContext(Tne).strict}function a2e(e){const{drag:t,layout:n}=D0;if(!t&&!n)return{};const r={...t,...n};return{MeasureLayout:t!=null&&t.isEnabled(e)||n!=null&&n.isEnabled(e)?r.MeasureLayout:void 0,ProjectionNode:r.ProjectionNode}}const NE={};function i2e(e){for(const t in e)NE[t]=e[t],qj(t)&&(NE[t].isCSSVariable=!0)}function Rne(e,{layout:t,layoutId:n}){return Q0.has(e)||e.startsWith("origin")||(t||n!==void 0)&&(!!NE[e]||e==="opacity")}const o2e={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},s2e=X0.length;function l2e(e,t,n){let r="",a=!0;for(let i=0;i({style:{},transform:{},transformOrigin:{},vars:{}});function Pne(e,t,n){for(const r in t)!ro(t[r])&&!Rne(r,n)&&(e[r]=t[r])}function u2e({transformTemplate:e},t){return R.useMemo(()=>{const n=c4();return u4(n,t,e),Object.assign({},n.vars,n.style)},[t])}function c2e(e,t){const n=e.style||{},r={};return Pne(r,n,e),Object.assign(r,u2e(e,t)),r}function d2e(e,t){const n={},r=c2e(e,t);return e.drag&&e.dragListener!==!1&&(n.draggable=!1,r.userSelect=r.WebkitUserSelect=r.WebkitTouchCallout="none",r.touchAction=e.drag===!0?"none":`pan-${e.drag==="x"?"y":"x"}`),e.tabIndex===void 0&&(e.onTap||e.onTapStart||e.whileTap)&&(n.tabIndex=0),n.style=r,n}const f2e={offset:"stroke-dashoffset",array:"stroke-dasharray"},p2e={offset:"strokeDashoffset",array:"strokeDasharray"};function h2e(e,t,n=1,r=0,a=!0){e.pathLength=1;const i=a?f2e:p2e;e[i.offset]=mn.transform(-r);const o=mn.transform(t),l=mn.transform(n);e[i.array]=`${o} ${l}`}function Ane(e,{attrX:t,attrY:n,attrScale:r,pathLength:a,pathSpacing:i=1,pathOffset:o=0,...l},u,d,f){if(u4(e,l,d),u){e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox);return}e.attrs=e.style,e.style={};const{attrs:g,style:y}=e;g.transform&&(y.transform=g.transform,delete g.transform),(y.transform||g.transformOrigin)&&(y.transformOrigin=g.transformOrigin??"50% 50%",delete g.transformOrigin),y.transform&&(y.transformBox=(f==null?void 0:f.transformBox)??"fill-box",delete g.transformBox),t!==void 0&&(g.x=t),n!==void 0&&(g.y=n),r!==void 0&&(g.scale=r),a!==void 0&&h2e(g,a,i,o,!1)}const Nne=()=>({...c4(),attrs:{}}),Mne=e=>typeof e=="string"&&e.toLowerCase()==="svg";function m2e(e,t,n,r){const a=R.useMemo(()=>{const i=Nne();return Ane(i,t,Mne(r),e.transformTemplate,e.style),{...i.attrs,style:{...i.style}}},[t]);if(e.style){const i={};Pne(i,e.style,e),a.style={...i,...a.style}}return a}const g2e=["animate","circle","defs","desc","ellipse","g","image","line","filter","marker","mask","metadata","path","pattern","polygon","polyline","rect","stop","switch","symbol","svg","text","tspan","use","view"];function d4(e){return typeof e!="string"||e.includes("-")?!1:!!(g2e.indexOf(e)>-1||/[A-Z]/u.test(e))}function v2e(e=!1){return(n,r,a,{latestValues:i},o)=>{const u=(d4(n)?m2e:d2e)(r,i,o,n),d=VNe(r,typeof n=="string",e),f=n!==R.Fragment?{...d,...u,ref:a}:{},{children:g}=r,y=R.useMemo(()=>ro(g)?g.get():g,[g]);return R.createElement(n,{...f,children:y})}}function QW(e){const t=[{},{}];return e==null||e.values.forEach((n,r)=>{t[0][r]=n.get(),t[1][r]=n.getVelocity()}),t}function f4(e,t,n,r){if(typeof t=="function"){const[a,i]=QW(r);t=t(n!==void 0?n:e.custom,a,i)}if(typeof t=="string"&&(t=e.variants&&e.variants[t]),typeof t=="function"){const[a,i]=QW(r);t=t(n!==void 0?n:e.custom,a,i)}return t}function bx(e){return ro(e)?e.get():e}function y2e({scrapeMotionValuesFromProps:e,createRenderState:t},n,r,a){return{latestValues:b2e(n,r,a,e),renderState:t()}}const Ine=e=>(t,n)=>{const r=R.useContext(oO),a=R.useContext(iO),i=()=>y2e(e,t,r,a);return n?i():Dj(i)};function b2e(e,t,n,r){const a={},i=r(e,{});for(const y in i)a[y]=bx(i[y]);let{initial:o,animate:l}=e;const u=lO(e),d=kne(e);t&&d&&!u&&e.inherit!==!1&&(o===void 0&&(o=t.initial),l===void 0&&(l=t.animate));let f=n?n.initial===!1:!1;f=f||o===!1;const g=f?l:o;if(g&&typeof g!="boolean"&&!sO(g)){const y=Array.isArray(g)?g:[g];for(let h=0;hArray.isArray(e);function T2e(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,I0(n))}function C2e(e){return V3(e)?e[e.length-1]||0:e}function k2e(e,t){const n=ME(e,t);let{transitionEnd:r={},transition:a={},...i}=n||{};i={...i,...r};for(const o in i){const l=C2e(i[o]);T2e(e,o,l)}}function x2e(e){return!!(ro(e)&&e.add)}function G3(e,t){const n=e.getValue("willChange");if(x2e(n))return n.add(t);if(!n&&Xd.WillChange){const r=new Xd.WillChange("auto");e.addValue("willChange",r),r.add(t)}}function $ne(e){return e.props[xne]}const _2e=e=>e!==null;function O2e(e,{repeat:t,repeatType:n="loop"},r){const a=e.filter(_2e),i=t&&n!=="loop"&&t%2===1?0:a.length-1;return a[i]}const R2e={type:"spring",stiffness:500,damping:25,restSpeed:10},P2e=e=>({type:"spring",stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),A2e={type:"keyframes",duration:.8},N2e={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},M2e=(e,{keyframes:t})=>t.length>2?A2e:Q0.has(e)?e.startsWith("scale")?P2e(t[1]):R2e:N2e;function I2e({when:e,delay:t,delayChildren:n,staggerChildren:r,staggerDirection:a,repeat:i,repeatType:o,repeatDelay:l,from:u,elapsed:d,...f}){return!!Object.keys(f).length}const h4=(e,t,n,r={},a,i)=>o=>{const l=t4(r,e)||{},u=l.delay||r.delay||0;let{elapsed:d=0}=r;d=d-xc(u);const f={keyframes:Array.isArray(n)?n:[null,n],ease:"easeOut",velocity:t.getVelocity(),...l,delay:-d,onUpdate:y=>{t.set(y),l.onUpdate&&l.onUpdate(y)},onComplete:()=>{o(),l.onComplete&&l.onComplete()},name:e,motionValue:t,element:i?void 0:a};I2e(l)||Object.assign(f,M2e(e,f)),f.duration&&(f.duration=xc(f.duration)),f.repeatDelay&&(f.repeatDelay=xc(f.repeatDelay)),f.from!==void 0&&(f.keyframes[0]=f.from);let g=!1;if((f.type===!1||f.duration===0&&!f.repeatDelay)&&(f.duration=0,f.delay===0&&(g=!0)),(Xd.instantAnimations||Xd.skipAnimations)&&(g=!0,f.duration=0,f.delay=0),f.allowFlatten=!l.type&&!l.ease,g&&!i&&t.get()!==void 0){const y=O2e(f.keyframes,l);if(y!==void 0){ma.update(()=>{f.onUpdate(y),f.onComplete()});return}}return l.isSync?new Jj(f):new pNe(f)};function D2e({protectedKeys:e,needsAnimating:t},n){const r=e.hasOwnProperty(n)&&t[n]!==!0;return t[n]=!1,r}function Lne(e,t,{delay:n=0,transitionOverride:r,type:a}={}){let{transition:i=e.getDefaultTransition(),transitionEnd:o,...l}=t;r&&(i=r);const u=[],d=a&&e.animationState&&e.animationState.getState()[a];for(const f in l){const g=e.getValue(f,e.latestValues[f]??null),y=l[f];if(y===void 0||d&&D2e(d,f))continue;const h={delay:n,...t4(i||{},f)},v=g.get();if(v!==void 0&&!g.isAnimating&&!Array.isArray(y)&&y===v&&!h.velocity)continue;let E=!1;if(window.MotionHandoffAnimation){const C=$ne(e);if(C){const k=window.MotionHandoffAnimation(C,f,ma);k!==null&&(h.startTime=k,E=!0)}}G3(e,f),g.start(h4(f,g,y,e.shouldReduceMotion&&fne.has(f)?{type:!1}:h,e,E));const T=g.animation;T&&u.push(T)}return o&&Promise.all(u).then(()=>{ma.update(()=>{o&&k2e(e,o)})}),u}function Y3(e,t,n={}){var u;const r=ME(e,t,n.type==="exit"?(u=e.presenceContext)==null?void 0:u.custom:void 0);let{transition:a=e.getDefaultTransition()||{}}=r||{};n.transitionOverride&&(a=n.transitionOverride);const i=r?()=>Promise.all(Lne(e,r,n)):()=>Promise.resolve(),o=e.variantChildren&&e.variantChildren.size?(d=0)=>{const{delayChildren:f=0,staggerChildren:g,staggerDirection:y}=a;return $2e(e,t,f+d,g,y,n)}:()=>Promise.resolve(),{when:l}=a;if(l){const[d,f]=l==="beforeChildren"?[i,o]:[o,i];return d().then(()=>f())}else return Promise.all([i(),o(n.delay)])}function $2e(e,t,n=0,r=0,a=1,i){const o=[],l=(e.variantChildren.size-1)*r,u=a===1?(d=0)=>d*r:(d=0)=>l-d*r;return Array.from(e.variantChildren).sort(L2e).forEach((d,f)=>{d.notify("AnimationStart",t),o.push(Y3(d,t,{...i,delay:n+u(f)}).then(()=>d.notify("AnimationComplete",t)))}),Promise.all(o)}function L2e(e,t){return e.sortNodePosition(t)}function F2e(e,t,n={}){e.notify("AnimationStart",t);let r;if(Array.isArray(t)){const a=t.map(i=>Y3(e,i,n));r=Promise.all(a)}else if(typeof t=="string")r=Y3(e,t,n);else{const a=typeof t=="function"?ME(e,t,n.custom):t;r=Promise.all(Lne(e,a,n))}return r.then(()=>{e.notify("AnimationComplete",t)})}function Fne(e,t){if(!Array.isArray(t))return!1;const n=t.length;if(n!==e.length)return!1;for(let r=0;rPromise.all(t.map(({animation:n,options:r})=>F2e(e,n,r)))}function z2e(e){let t=W2e(e),n=JW(),r=!0;const a=u=>(d,f)=>{var y;const g=ME(e,f,u==="exit"?(y=e.presenceContext)==null?void 0:y.custom:void 0);if(g){const{transition:h,transitionEnd:v,...E}=g;d={...d,...E,...v}}return d};function i(u){t=u(e)}function o(u){const{props:d}=e,f=jne(e.parent)||{},g=[],y=new Set;let h={},v=1/0;for(let T=0;Tv&&A,j=!1;const z=Array.isArray(_)?_:[_];let Q=z.reduce(a(C),{});P===!1&&(Q={});const{prevResolvedValues:ue={}}=k,re={...ue,...Q},me=G=>{L=!0,y.has(G)&&(j=!0,y.delete(G)),k.needsAnimating[G]=!0;const q=e.getValue(G);q&&(q.liveStyle=!1)};for(const G in re){const q=Q[G],ce=ue[G];if(h.hasOwnProperty(G))continue;let H=!1;V3(q)&&V3(ce)?H=!Fne(q,ce):H=q!==ce,H?q!=null?me(G):y.add(G):q!==void 0&&y.has(G)?me(G):k.protectedKeys[G]=!0}k.prevProp=_,k.prevResolvedValues=Q,k.isActive&&(h={...h,...Q}),r&&e.blockInitialAnimation&&(L=!1),L&&(!(N&&I)||j)&&g.push(...z.map(G=>({animation:G,options:{type:C}})))}if(y.size){const T={};if(typeof d.initial!="boolean"){const C=ME(e,Array.isArray(d.initial)?d.initial[0]:d.initial);C&&C.transition&&(T.transition=C.transition)}y.forEach(C=>{const k=e.getBaseTarget(C),_=e.getValue(C);_&&(_.liveStyle=!0),T[C]=k??null}),g.push({animation:T})}let E=!!g.length;return r&&(d.initial===!1||d.initial===d.animate)&&!e.manuallyAnimateOnMount&&(E=!1),r=!1,E?t(g):Promise.resolve()}function l(u,d){var g;if(n[u].isActive===d)return Promise.resolve();(g=e.variantChildren)==null||g.forEach(y=>{var h;return(h=y.animationState)==null?void 0:h.setActive(u,d)}),n[u].isActive=d;const f=o(u);for(const y in n)n[y].protectedKeys={};return f}return{animateChanges:o,setActive:l,setAnimateFunction:i,getState:()=>n,reset:()=>{n=JW(),r=!0}}}function q2e(e,t){return typeof t=="string"?t!==e:Array.isArray(t)?!Fne(t,e):!1}function rg(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function JW(){return{animate:rg(!0),whileInView:rg(),whileHover:rg(),whileTap:rg(),whileDrag:rg(),whileFocus:rg(),exit:rg()}}class Rh{constructor(t){this.isMounted=!1,this.node=t}update(){}}class H2e extends Rh{constructor(t){super(t),t.animationState||(t.animationState=z2e(t))}updateAnimationControlsSubscription(){const{animate:t}=this.node.getProps();sO(t)&&(this.unmountControls=t.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){const{animate:t}=this.node.getProps(),{animate:n}=this.node.prevProps||{};t!==n&&this.updateAnimationControlsSubscription()}unmount(){var t;this.node.animationState.reset(),(t=this.unmountControls)==null||t.call(this)}}let V2e=0;class G2e extends Rh{constructor(){super(...arguments),this.id=V2e++}update(){if(!this.node.presenceContext)return;const{isPresent:t,onExitComplete:n}=this.node.presenceContext,{isPresent:r}=this.node.prevPresenceContext||{};if(!this.node.animationState||t===r)return;const a=this.node.animationState.setActive("exit",!t);n&&!t&&a.then(()=>{n(this.id)})}mount(){const{register:t,onExitComplete:n}=this.node.presenceContext||{};n&&n(this.id),t&&(this.unmount=t(this.id))}unmount(){}}const Y2e={animation:{Feature:H2e},exit:{Feature:G2e}};function IE(e,t,n,r={passive:!0}){return e.addEventListener(t,n,r),()=>e.removeEventListener(t,n)}function yT(e){return{point:{x:e.pageX,y:e.pageY}}}const K2e=e=>t=>a4(t)&&e(t,yT(t));function Z1(e,t,n,r){return IE(e,t,K2e(n),r)}function Une({top:e,left:t,right:n,bottom:r}){return{x:{min:t,max:n},y:{min:e,max:r}}}function X2e({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}function Q2e(e,t){if(!t)return e;const n=t({x:e.left,y:e.top}),r=t({x:e.right,y:e.bottom});return{top:n.y,left:n.x,bottom:r.y,right:r.x}}const Bne=1e-4,J2e=1-Bne,Z2e=1+Bne,Wne=.01,eMe=0-Wne,tMe=0+Wne;function jo(e){return e.max-e.min}function nMe(e,t,n){return Math.abs(e-t)<=n}function ZW(e,t,n,r=.5){e.origin=r,e.originPoint=pa(t.min,t.max,e.origin),e.scale=jo(n)/jo(t),e.translate=pa(n.min,n.max,e.origin)-e.originPoint,(e.scale>=J2e&&e.scale<=Z2e||isNaN(e.scale))&&(e.scale=1),(e.translate>=eMe&&e.translate<=tMe||isNaN(e.translate))&&(e.translate=0)}function eE(e,t,n,r){ZW(e.x,t.x,n.x,r?r.originX:void 0),ZW(e.y,t.y,n.y,r?r.originY:void 0)}function ez(e,t,n){e.min=n.min+t.min,e.max=e.min+jo(t)}function rMe(e,t,n){ez(e.x,t.x,n.x),ez(e.y,t.y,n.y)}function tz(e,t,n){e.min=t.min-n.min,e.max=e.min+jo(t)}function tE(e,t,n){tz(e.x,t.x,n.x),tz(e.y,t.y,n.y)}const nz=()=>({translate:0,scale:1,origin:0,originPoint:0}),i0=()=>({x:nz(),y:nz()}),rz=()=>({min:0,max:0}),Fa=()=>({x:rz(),y:rz()});function Tl(e){return[e("x"),e("y")]}function zA(e){return e===void 0||e===1}function K3({scale:e,scaleX:t,scaleY:n}){return!zA(e)||!zA(t)||!zA(n)}function _v(e){return K3(e)||zne(e)||e.z||e.rotate||e.rotateX||e.rotateY||e.skewX||e.skewY}function zne(e){return az(e.x)||az(e.y)}function az(e){return e&&e!=="0%"}function f_(e,t,n){const r=e-n,a=t*r;return n+a}function iz(e,t,n,r,a){return a!==void 0&&(e=f_(e,a,r)),f_(e,n,r)+t}function X3(e,t=0,n=1,r,a){e.min=iz(e.min,t,n,r,a),e.max=iz(e.max,t,n,r,a)}function qne(e,{x:t,y:n}){X3(e.x,t.translate,t.scale,t.originPoint),X3(e.y,n.translate,n.scale,n.originPoint)}const oz=.999999999999,sz=1.0000000000001;function aMe(e,t,n,r=!1){const a=n.length;if(!a)return;t.x=t.y=1;let i,o;for(let l=0;loz&&(t.x=1),t.yoz&&(t.y=1)}function o0(e,t){e.min=e.min+t,e.max=e.max+t}function lz(e,t,n,r,a=.5){const i=pa(e.min,e.max,a);X3(e,t,n,i,r)}function s0(e,t){lz(e.x,t.x,t.scaleX,t.scale,t.originX),lz(e.y,t.y,t.scaleY,t.scale,t.originY)}function Hne(e,t){return Une(Q2e(e.getBoundingClientRect(),t))}function iMe(e,t,n){const r=Hne(e,n),{scroll:a}=t;return a&&(o0(r.x,a.offset.x),o0(r.y,a.offset.y)),r}const Vne=({current:e})=>e?e.ownerDocument.defaultView:null,uz=(e,t)=>Math.abs(e-t);function oMe(e,t){const n=uz(e.x,t.x),r=uz(e.y,t.y);return Math.sqrt(n**2+r**2)}class Gne{constructor(t,n,{transformPagePoint:r,contextWindow:a,dragSnapToOrigin:i=!1}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const g=HA(this.lastMoveEventInfo,this.history),y=this.startEvent!==null,h=oMe(g.offset,{x:0,y:0})>=3;if(!y&&!h)return;const{point:v}=g,{timestamp:E}=Ui;this.history.push({...v,timestamp:E});const{onStart:T,onMove:C}=this.handlers;y||(T&&T(this.lastMoveEvent,g),this.startEvent=this.lastMoveEvent),C&&C(this.lastMoveEvent,g)},this.handlePointerMove=(g,y)=>{this.lastMoveEvent=g,this.lastMoveEventInfo=qA(y,this.transformPagePoint),ma.update(this.updatePoint,!0)},this.handlePointerUp=(g,y)=>{this.end();const{onEnd:h,onSessionEnd:v,resumeAnimation:E}=this.handlers;if(this.dragSnapToOrigin&&E&&E(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const T=HA(g.type==="pointercancel"?this.lastMoveEventInfo:qA(y,this.transformPagePoint),this.history);this.startEvent&&h&&h(g,T),v&&v(g,T)},!a4(t))return;this.dragSnapToOrigin=i,this.handlers=n,this.transformPagePoint=r,this.contextWindow=a||window;const o=yT(t),l=qA(o,this.transformPagePoint),{point:u}=l,{timestamp:d}=Ui;this.history=[{...u,timestamp:d}];const{onSessionStart:f}=n;f&&f(t,HA(l,this.history)),this.removeListeners=mT(Z1(this.contextWindow,"pointermove",this.handlePointerMove),Z1(this.contextWindow,"pointerup",this.handlePointerUp),Z1(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),yh(this.updatePoint)}}function qA(e,t){return t?{point:t(e.point)}:e}function cz(e,t){return{x:e.x-t.x,y:e.y-t.y}}function HA({point:e},t){return{point:e,delta:cz(e,Yne(t)),offset:cz(e,sMe(t)),velocity:lMe(t,.1)}}function sMe(e){return e[0]}function Yne(e){return e[e.length-1]}function lMe(e,t){if(e.length<2)return{x:0,y:0};let n=e.length-1,r=null;const a=Yne(e);for(;n>=0&&(r=e[n],!(a.timestamp-r.timestamp>xc(t)));)n--;if(!r)return{x:0,y:0};const i=_c(a.timestamp-r.timestamp);if(i===0)return{x:0,y:0};const o={x:(a.x-r.x)/i,y:(a.y-r.y)/i};return o.x===1/0&&(o.x=0),o.y===1/0&&(o.y=0),o}function uMe(e,{min:t,max:n},r){return t!==void 0&&en&&(e=r?pa(n,e,r.max):Math.min(e,n)),e}function dz(e,t,n){return{min:t!==void 0?e.min+t:void 0,max:n!==void 0?e.max+n-(e.max-e.min):void 0}}function cMe(e,{top:t,left:n,bottom:r,right:a}){return{x:dz(e.x,n,a),y:dz(e.y,t,r)}}function fz(e,t){let n=t.min-e.min,r=t.max-e.max;return t.max-t.minr?n=OE(t.min,t.max-r,e.min):r>a&&(n=OE(e.min,e.max-a,t.min)),Kd(0,1,n)}function pMe(e,t){const n={};return t.min!==void 0&&(n.min=t.min-e.min),t.max!==void 0&&(n.max=t.max-e.min),n}const Q3=.35;function hMe(e=Q3){return e===!1?e=0:e===!0&&(e=Q3),{x:pz(e,"left","right"),y:pz(e,"top","bottom")}}function pz(e,t,n){return{min:hz(e,t),max:hz(e,n)}}function hz(e,t){return typeof e=="number"?e:e[t]||0}const mMe=new WeakMap;class gMe{constructor(t){this.openDragLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=Fa(),this.visualElement=t}start(t,{snapToCursor:n=!1}={}){const{presenceContext:r}=this.visualElement;if(r&&r.isPresent===!1)return;const a=f=>{const{dragSnapToOrigin:g}=this.getProps();g?this.pauseAnimation():this.stopAnimation(),n&&this.snapToCursor(yT(f).point)},i=(f,g)=>{const{drag:y,dragPropagation:h,onDragStart:v}=this.getProps();if(y&&!h&&(this.openDragLock&&this.openDragLock(),this.openDragLock=RNe(y),!this.openDragLock))return;this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),Tl(T=>{let C=this.getAxisMotionValue(T).get()||0;if(Oc.test(C)){const{projection:k}=this.visualElement;if(k&&k.layout){const _=k.layout.layoutBox[T];_&&(C=jo(_)*(parseFloat(C)/100))}}this.originPoint[T]=C}),v&&ma.postRender(()=>v(f,g)),G3(this.visualElement,"transform");const{animationState:E}=this.visualElement;E&&E.setActive("whileDrag",!0)},o=(f,g)=>{const{dragPropagation:y,dragDirectionLock:h,onDirectionLock:v,onDrag:E}=this.getProps();if(!y&&!this.openDragLock)return;const{offset:T}=g;if(h&&this.currentDirection===null){this.currentDirection=vMe(T),this.currentDirection!==null&&v&&v(this.currentDirection);return}this.updateAxis("x",g.point,T),this.updateAxis("y",g.point,T),this.visualElement.render(),E&&E(f,g)},l=(f,g)=>this.stop(f,g),u=()=>Tl(f=>{var g;return this.getAnimationState(f)==="paused"&&((g=this.getAxisMotionValue(f).animation)==null?void 0:g.play())}),{dragSnapToOrigin:d}=this.getProps();this.panSession=new Gne(t,{onSessionStart:a,onStart:i,onMove:o,onSessionEnd:l,resumeAnimation:u},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:d,contextWindow:Vne(this.visualElement)})}stop(t,n){const r=this.isDragging;if(this.cancel(),!r)return;const{velocity:a}=n;this.startAnimation(a);const{onDragEnd:i}=this.getProps();i&&ma.postRender(()=>i(t,n))}cancel(){this.isDragging=!1;const{projection:t,animationState:n}=this.visualElement;t&&(t.isAnimationBlocked=!1),this.panSession&&this.panSession.end(),this.panSession=void 0;const{dragPropagation:r}=this.getProps();!r&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),n&&n.setActive("whileDrag",!1)}updateAxis(t,n,r){const{drag:a}=this.getProps();if(!r||!Hk(t,a,this.currentDirection))return;const i=this.getAxisMotionValue(t);let o=this.originPoint[t]+r[t];this.constraints&&this.constraints[t]&&(o=uMe(o,this.constraints[t],this.elastic[t])),i.set(o)}resolveConstraints(){var i;const{dragConstraints:t,dragElastic:n}=this.getProps(),r=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):(i=this.visualElement.projection)==null?void 0:i.layout,a=this.constraints;t&&a0(t)?this.constraints||(this.constraints=this.resolveRefConstraints()):t&&r?this.constraints=cMe(r.layoutBox,t):this.constraints=!1,this.elastic=hMe(n),a!==this.constraints&&r&&this.constraints&&!this.hasMutatedConstraints&&Tl(o=>{this.constraints!==!1&&this.getAxisMotionValue(o)&&(this.constraints[o]=pMe(r.layoutBox[o],this.constraints[o]))})}resolveRefConstraints(){const{dragConstraints:t,onMeasureDragConstraints:n}=this.getProps();if(!t||!a0(t))return!1;const r=t.current,{projection:a}=this.visualElement;if(!a||!a.layout)return!1;const i=iMe(r,a.root,this.visualElement.getTransformPagePoint());let o=dMe(a.layout.layoutBox,i);if(n){const l=n(X2e(o));this.hasMutatedConstraints=!!l,l&&(o=Une(l))}return o}startAnimation(t){const{drag:n,dragMomentum:r,dragElastic:a,dragTransition:i,dragSnapToOrigin:o,onDragTransitionEnd:l}=this.getProps(),u=this.constraints||{},d=Tl(f=>{if(!Hk(f,n,this.currentDirection))return;let g=u&&u[f]||{};o&&(g={min:0,max:0});const y=a?200:1e6,h=a?40:1e7,v={type:"inertia",velocity:r?t[f]:0,bounceStiffness:y,bounceDamping:h,timeConstant:750,restDelta:1,restSpeed:10,...i,...g};return this.startAxisValueAnimation(f,v)});return Promise.all(d).then(l)}startAxisValueAnimation(t,n){const r=this.getAxisMotionValue(t);return G3(this.visualElement,t),r.start(h4(t,r,0,n,this.visualElement,!1))}stopAnimation(){Tl(t=>this.getAxisMotionValue(t).stop())}pauseAnimation(){Tl(t=>{var n;return(n=this.getAxisMotionValue(t).animation)==null?void 0:n.pause()})}getAnimationState(t){var n;return(n=this.getAxisMotionValue(t).animation)==null?void 0:n.state}getAxisMotionValue(t){const n=`_drag${t.toUpperCase()}`,r=this.visualElement.getProps(),a=r[n];return a||this.visualElement.getValue(t,(r.initial?r.initial[t]:void 0)||0)}snapToCursor(t){Tl(n=>{const{drag:r}=this.getProps();if(!Hk(n,r,this.currentDirection))return;const{projection:a}=this.visualElement,i=this.getAxisMotionValue(n);if(a&&a.layout){const{min:o,max:l}=a.layout.layoutBox[n];i.set(t[n]-pa(o,l,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:t,dragConstraints:n}=this.getProps(),{projection:r}=this.visualElement;if(!a0(n)||!r||!this.constraints)return;this.stopAnimation();const a={x:0,y:0};Tl(o=>{const l=this.getAxisMotionValue(o);if(l&&this.constraints!==!1){const u=l.get();a[o]=fMe({min:u,max:u},this.constraints[o])}});const{transformTemplate:i}=this.visualElement.getProps();this.visualElement.current.style.transform=i?i({},""):"none",r.root&&r.root.updateScroll(),r.updateLayout(),this.resolveConstraints(),Tl(o=>{if(!Hk(o,t,null))return;const l=this.getAxisMotionValue(o),{min:u,max:d}=this.constraints[o];l.set(pa(u,d,a[o]))})}addListeners(){if(!this.visualElement.current)return;mMe.set(this.visualElement,this);const t=this.visualElement.current,n=Z1(t,"pointerdown",u=>{const{drag:d,dragListener:f=!0}=this.getProps();d&&f&&this.start(u)}),r=()=>{const{dragConstraints:u}=this.getProps();a0(u)&&u.current&&(this.constraints=this.resolveRefConstraints())},{projection:a}=this.visualElement,i=a.addEventListener("measure",r);a&&!a.layout&&(a.root&&a.root.updateScroll(),a.updateLayout()),ma.read(r);const o=IE(window,"resize",()=>this.scalePositionWithinConstraints()),l=a.addEventListener("didUpdate",(({delta:u,hasLayoutChanged:d})=>{this.isDragging&&d&&(Tl(f=>{const g=this.getAxisMotionValue(f);g&&(this.originPoint[f]+=u[f].translate,g.set(g.get()+u[f].translate))}),this.visualElement.render())}));return()=>{o(),n(),i(),l&&l()}}getProps(){const t=this.visualElement.getProps(),{drag:n=!1,dragDirectionLock:r=!1,dragPropagation:a=!1,dragConstraints:i=!1,dragElastic:o=Q3,dragMomentum:l=!0}=t;return{...t,drag:n,dragDirectionLock:r,dragPropagation:a,dragConstraints:i,dragElastic:o,dragMomentum:l}}}function Hk(e,t,n){return(t===!0||t===e)&&(n===null||n===e)}function vMe(e,t=10){let n=null;return Math.abs(e.y)>t?n="y":Math.abs(e.x)>t&&(n="x"),n}class yMe extends Rh{constructor(t){super(t),this.removeGroupControls=Dl,this.removeListeners=Dl,this.controls=new gMe(t)}mount(){const{dragControls:t}=this.node.getProps();t&&(this.removeGroupControls=t.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||Dl}unmount(){this.removeGroupControls(),this.removeListeners()}}const mz=e=>(t,n)=>{e&&ma.postRender(()=>e(t,n))};class bMe extends Rh{constructor(){super(...arguments),this.removePointerDownListener=Dl}onPointerDown(t){this.session=new Gne(t,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:Vne(this.node)})}createPanHandlers(){const{onPanSessionStart:t,onPanStart:n,onPan:r,onPanEnd:a}=this.node.getProps();return{onSessionStart:mz(t),onStart:mz(n),onMove:r,onEnd:(i,o)=>{delete this.session,a&&ma.postRender(()=>a(i,o))}}}mount(){this.removePointerDownListener=Z1(this.node.current,"pointerdown",t=>this.onPointerDown(t))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}const wx={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function gz(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}const n1={correct:(e,t)=>{if(!t.target)return e;if(typeof e=="string")if(mn.test(e))e=parseFloat(e);else return e;const n=gz(e,t.target.x),r=gz(e,t.target.y);return`${n}% ${r}%`}},wMe={correct:(e,{treeScale:t,projectionDelta:n})=>{const r=e,a=bh.parse(e);if(a.length>5)return r;const i=bh.createTransformer(e),o=typeof a[0]!="number"?1:0,l=n.x.scale*t.x,u=n.y.scale*t.y;a[0+o]/=l,a[1+o]/=u;const d=pa(l,u,.5);return typeof a[2+o]=="number"&&(a[2+o]/=d),typeof a[3+o]=="number"&&(a[3+o]/=d),i(a)}};class SMe extends R.Component{componentDidMount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:r,layoutId:a}=this.props,{projection:i}=t;i2e(EMe),i&&(n.group&&n.group.add(i),r&&r.register&&a&&r.register(i),i.root.didUpdate(),i.addEventListener("animationComplete",()=>{this.safeToRemove()}),i.setOptions({...i.options,onExitComplete:()=>this.safeToRemove()})),wx.hasEverUpdated=!0}getSnapshotBeforeUpdate(t){const{layoutDependency:n,visualElement:r,drag:a,isPresent:i}=this.props,{projection:o}=r;return o&&(o.isPresent=i,a||t.layoutDependency!==n||n===void 0||t.isPresent!==i?o.willUpdate():this.safeToRemove(),t.isPresent!==i&&(i?o.promote():o.relegate()||ma.postRender(()=>{const l=o.getStack();(!l||!l.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{projection:t}=this.props.visualElement;t&&(t.root.didUpdate(),r4.postRender(()=>{!t.currentAnimation&&t.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:r}=this.props,{projection:a}=t;a&&(a.scheduleCheckAfterUnmount(),n&&n.group&&n.group.remove(a),r&&r.deregister&&r.deregister(a))}safeToRemove(){const{safeToRemove:t}=this.props;t&&t()}render(){return null}}function Kne(e){const[t,n]=Ene(),r=R.useContext(Ij);return w.jsx(SMe,{...e,layoutGroup:r,switchLayoutGroup:R.useContext(_ne),isPresent:t,safeToRemove:n})}const EMe={borderRadius:{...n1,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:n1,borderTopRightRadius:n1,borderBottomLeftRadius:n1,borderBottomRightRadius:n1,boxShadow:wMe};function TMe(e,t,n){const r=ro(e)?e:I0(e);return r.start(h4("",r,t,n)),r.animation}const CMe=(e,t)=>e.depth-t.depth;class kMe{constructor(){this.children=[],this.isDirty=!1}add(t){Lj(this.children,t),this.isDirty=!0}remove(t){Fj(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(CMe),this.isDirty=!1,this.children.forEach(t)}}function xMe(e,t){const n=ps.now(),r=({timestamp:a})=>{const i=a-n;i>=t&&(yh(r),e(i-t))};return ma.setup(r,!0),()=>yh(r)}const Xne=["TopLeft","TopRight","BottomLeft","BottomRight"],_Me=Xne.length,vz=e=>typeof e=="string"?parseFloat(e):e,yz=e=>typeof e=="number"||mn.test(e);function OMe(e,t,n,r,a,i){a?(e.opacity=pa(0,n.opacity??1,RMe(r)),e.opacityExit=pa(t.opacity??1,0,PMe(r))):i&&(e.opacity=pa(t.opacity??1,n.opacity??1,r));for(let o=0;o<_Me;o++){const l=`border${Xne[o]}Radius`;let u=bz(t,l),d=bz(n,l);if(u===void 0&&d===void 0)continue;u||(u=0),d||(d=0),u===0||d===0||yz(u)===yz(d)?(e[l]=Math.max(pa(vz(u),vz(d),r),0),(Oc.test(d)||Oc.test(u))&&(e[l]+="%")):e[l]=d}(t.rotate||n.rotate)&&(e.rotate=pa(t.rotate||0,n.rotate||0,r))}function bz(e,t){return e[t]!==void 0?e[t]:e.borderRadius}const RMe=Qne(0,.5,zte),PMe=Qne(.5,.95,Dl);function Qne(e,t,n){return r=>rt?1:n(OE(e,t,r))}function wz(e,t){e.min=t.min,e.max=t.max}function Sl(e,t){wz(e.x,t.x),wz(e.y,t.y)}function Sz(e,t){e.translate=t.translate,e.scale=t.scale,e.originPoint=t.originPoint,e.origin=t.origin}function Ez(e,t,n,r,a){return e-=t,e=f_(e,1/n,r),a!==void 0&&(e=f_(e,1/a,r)),e}function AMe(e,t=0,n=1,r=.5,a,i=e,o=e){if(Oc.test(t)&&(t=parseFloat(t),t=pa(o.min,o.max,t/100)-o.min),typeof t!="number")return;let l=pa(i.min,i.max,r);e===i&&(l-=t),e.min=Ez(e.min,t,n,l,a),e.max=Ez(e.max,t,n,l,a)}function Tz(e,t,[n,r,a],i,o){AMe(e,t[n],t[r],t[a],t.scale,i,o)}const NMe=["x","scaleX","originX"],MMe=["y","scaleY","originY"];function Cz(e,t,n,r){Tz(e.x,t,NMe,n?n.x:void 0,r?r.x:void 0),Tz(e.y,t,MMe,n?n.y:void 0,r?r.y:void 0)}function kz(e){return e.translate===0&&e.scale===1}function Jne(e){return kz(e.x)&&kz(e.y)}function xz(e,t){return e.min===t.min&&e.max===t.max}function IMe(e,t){return xz(e.x,t.x)&&xz(e.y,t.y)}function _z(e,t){return Math.round(e.min)===Math.round(t.min)&&Math.round(e.max)===Math.round(t.max)}function Zne(e,t){return _z(e.x,t.x)&&_z(e.y,t.y)}function Oz(e){return jo(e.x)/jo(e.y)}function Rz(e,t){return e.translate===t.translate&&e.scale===t.scale&&e.originPoint===t.originPoint}class DMe{constructor(){this.members=[]}add(t){Lj(this.members,t),t.scheduleRender()}remove(t){if(Fj(this.members,t),t===this.prevLead&&(this.prevLead=void 0),t===this.lead){const n=this.members[this.members.length-1];n&&this.promote(n)}}relegate(t){const n=this.members.findIndex(a=>t===a);if(n===0)return!1;let r;for(let a=n;a>=0;a--){const i=this.members[a];if(i.isPresent!==!1){r=i;break}}return r?(this.promote(r),!0):!1}promote(t,n){const r=this.lead;if(t!==r&&(this.prevLead=r,this.lead=t,t.show(),r)){r.instance&&r.scheduleRender(),t.scheduleRender(),t.resumeFrom=r,n&&(t.resumeFrom.preserveOpacity=!0),r.snapshot&&(t.snapshot=r.snapshot,t.snapshot.latestValues=r.animationValues||r.latestValues),t.root&&t.root.isUpdating&&(t.isLayoutDirty=!0);const{crossfade:a}=t.options;a===!1&&r.hide()}}exitAnimationComplete(){this.members.forEach(t=>{const{options:n,resumingFrom:r}=t;n.onExitComplete&&n.onExitComplete(),r&&r.options.onExitComplete&&r.options.onExitComplete()})}scheduleRender(){this.members.forEach(t=>{t.instance&&t.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}function $Me(e,t,n){let r="";const a=e.x.translate/t.x,i=e.y.translate/t.y,o=(n==null?void 0:n.z)||0;if((a||i||o)&&(r=`translate3d(${a}px, ${i}px, ${o}px) `),(t.x!==1||t.y!==1)&&(r+=`scale(${1/t.x}, ${1/t.y}) `),n){const{transformPerspective:d,rotate:f,rotateX:g,rotateY:y,skewX:h,skewY:v}=n;d&&(r=`perspective(${d}px) ${r}`),f&&(r+=`rotate(${f}deg) `),g&&(r+=`rotateX(${g}deg) `),y&&(r+=`rotateY(${y}deg) `),h&&(r+=`skewX(${h}deg) `),v&&(r+=`skewY(${v}deg) `)}const l=e.x.scale*t.x,u=e.y.scale*t.y;return(l!==1||u!==1)&&(r+=`scale(${l}, ${u})`),r||"none"}const VA=["","X","Y","Z"],LMe={visibility:"hidden"},FMe=1e3;let jMe=0;function GA(e,t,n,r){const{latestValues:a}=t;a[e]&&(n[e]=a[e],t.setStaticValue(e,0),r&&(r[e]=0))}function ere(e){if(e.hasCheckedOptimisedAppear=!0,e.root===e)return;const{visualElement:t}=e.options;if(!t)return;const n=$ne(t);if(window.MotionHasOptimisedAnimation(n,"transform")){const{layout:a,layoutId:i}=e.options;window.MotionCancelOptimisedAnimation(n,"transform",ma,!(a||i))}const{parent:r}=e;r&&!r.hasCheckedOptimisedAppear&&ere(r)}function tre({attachResizeListener:e,defaultParent:t,measureScroll:n,checkIsScrollRoot:r,resetTransform:a}){return class{constructor(o={},l=t==null?void 0:t()){this.id=jMe++,this.animationId=0,this.animationCommitId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.hasCheckedOptimisedAppear=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.updateScheduled=!1,this.scheduleUpdate=()=>this.update(),this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,this.nodes.forEach(WMe),this.nodes.forEach(VMe),this.nodes.forEach(GMe),this.nodes.forEach(zMe)},this.resolvedRelativeTargetAt=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=o,this.root=l?l.root||l:this,this.path=l?[...l.path,l]:[],this.parent=l,this.depth=l?l.depth+1:0;for(let u=0;uthis.root.updateBlockedByResize=!1;e(o,()=>{this.root.updateBlockedByResize=!0,f&&f(),f=xMe(g,250),wx.hasAnimatedSinceResize&&(wx.hasAnimatedSinceResize=!1,this.nodes.forEach(Nz))})}l&&this.root.registerSharedNode(l,this),this.options.animate!==!1&&d&&(l||u)&&this.addEventListener("didUpdate",({delta:f,hasLayoutChanged:g,hasRelativeLayoutChanged:y,layout:h})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const v=this.options.transition||d.getDefaultTransition()||JMe,{onLayoutAnimationStart:E,onLayoutAnimationComplete:T}=d.getProps(),C=!this.targetLayout||!Zne(this.targetLayout,h),k=!g&&y;if(this.options.layoutRoot||this.resumeFrom||k||g&&(C||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0);const _={...t4(v,"layout"),onPlay:E,onComplete:T};(d.shouldReduceMotion||this.options.layoutRoot)&&(_.delay=0,_.type=!1),this.startAnimation(_),this.setAnimationOrigin(f,k)}else g||Nz(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=h})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const o=this.getStack();o&&o.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,this.eventHandlers.clear(),yh(this.updateProjection)}blockUpdate(){this.updateManuallyBlocked=!0}unblockUpdate(){this.updateManuallyBlocked=!1}isUpdateBlocked(){return this.updateManuallyBlocked||this.updateBlockedByResize}isTreeAnimationBlocked(){return this.isAnimationBlocked||this.parent&&this.parent.isTreeAnimationBlocked()||!1}startUpdate(){this.isUpdateBlocked()||(this.isUpdating=!0,this.nodes&&this.nodes.forEach(YMe),this.animationId++)}getTransformTemplate(){const{visualElement:o}=this.options;return o&&o.getProps().transformTemplate}willUpdate(o=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&ere(this),!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let f=0;f{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure(),this.snapshot&&!jo(this.snapshot.measuredBox.x)&&!jo(this.snapshot.measuredBox.y)&&(this.snapshot=void 0))}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let u=0;u{const P=A/1e3;Mz(g.x,o.x,P),Mz(g.y,o.y,P),this.setTargetDelta(g),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(tE(y,this.layout.layoutBox,this.relativeParent.layout.layoutBox),XMe(this.relativeTarget,this.relativeTargetOrigin,y,P),_&&IMe(this.relativeTarget,_)&&(this.isProjectionDirty=!1),_||(_=Fa()),Sl(_,this.relativeTarget)),E&&(this.animationValues=f,OMe(f,d,this.latestValues,P,k,C)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=P},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(o){var l,u,d;this.notifyListeners("animationStart"),(l=this.currentAnimation)==null||l.stop(),(d=(u=this.resumingFrom)==null?void 0:u.currentAnimation)==null||d.stop(),this.pendingAnimation&&(yh(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=ma.update(()=>{wx.hasAnimatedSinceResize=!0,this.motionValue||(this.motionValue=I0(0)),this.currentAnimation=TMe(this.motionValue,[0,1e3],{...o,velocity:0,isSync:!0,onUpdate:f=>{this.mixTargetDelta(f),o.onUpdate&&o.onUpdate(f)},onStop:()=>{},onComplete:()=>{o.onComplete&&o.onComplete(),this.completeAnimation()}}),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0})}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);const o=this.getStack();o&&o.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(FMe),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const o=this.getLead();let{targetWithTransforms:l,target:u,layout:d,latestValues:f}=o;if(!(!l||!u||!d)){if(this!==o&&this.layout&&d&&nre(this.options.animationType,this.layout.layoutBox,d.layoutBox)){u=this.target||Fa();const g=jo(this.layout.layoutBox.x);u.x.min=o.target.x.min,u.x.max=u.x.min+g;const y=jo(this.layout.layoutBox.y);u.y.min=o.target.y.min,u.y.max=u.y.min+y}Sl(l,u),s0(l,f),eE(this.projectionDeltaWithTransform,this.layoutCorrected,l,f)}}registerSharedNode(o,l){this.sharedNodes.has(o)||this.sharedNodes.set(o,new DMe),this.sharedNodes.get(o).add(l);const d=l.options.initialPromotionConfig;l.promote({transition:d?d.transition:void 0,preserveFollowOpacity:d&&d.shouldPreserveFollowOpacity?d.shouldPreserveFollowOpacity(l):void 0})}isLead(){const o=this.getStack();return o?o.lead===this:!0}getLead(){var l;const{layoutId:o}=this.options;return o?((l=this.getStack())==null?void 0:l.lead)||this:this}getPrevLead(){var l;const{layoutId:o}=this.options;return o?(l=this.getStack())==null?void 0:l.prevLead:void 0}getStack(){const{layoutId:o}=this.options;if(o)return this.root.sharedNodes.get(o)}promote({needsReset:o,transition:l,preserveFollowOpacity:u}={}){const d=this.getStack();d&&d.promote(this,u),o&&(this.projectionDelta=void 0,this.needsReset=!0),l&&this.setOptions({transition:l})}relegate(){const o=this.getStack();return o?o.relegate(this):!1}resetSkewAndRotation(){const{visualElement:o}=this.options;if(!o)return;let l=!1;const{latestValues:u}=o;if((u.z||u.rotate||u.rotateX||u.rotateY||u.rotateZ||u.skewX||u.skewY)&&(l=!0),!l)return;const d={};u.z&&GA("z",o,d,this.animationValues);for(let f=0;f{var l;return(l=o.currentAnimation)==null?void 0:l.stop()}),this.root.nodes.forEach(Pz),this.root.sharedNodes.clear()}}}function UMe(e){e.updateLayout()}function BMe(e){var n;const t=((n=e.resumeFrom)==null?void 0:n.snapshot)||e.snapshot;if(e.isLead()&&e.layout&&t&&e.hasListeners("didUpdate")){const{layoutBox:r,measuredBox:a}=e.layout,{animationType:i}=e.options,o=t.source!==e.layout.source;i==="size"?Tl(g=>{const y=o?t.measuredBox[g]:t.layoutBox[g],h=jo(y);y.min=r[g].min,y.max=y.min+h}):nre(i,t.layoutBox,r)&&Tl(g=>{const y=o?t.measuredBox[g]:t.layoutBox[g],h=jo(r[g]);y.max=y.min+h,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[g].max=e.relativeTarget[g].min+h)});const l=i0();eE(l,r,t.layoutBox);const u=i0();o?eE(u,e.applyTransform(a,!0),t.measuredBox):eE(u,r,t.layoutBox);const d=!Jne(l);let f=!1;if(!e.resumeFrom){const g=e.getClosestProjectingParent();if(g&&!g.resumeFrom){const{snapshot:y,layout:h}=g;if(y&&h){const v=Fa();tE(v,t.layoutBox,y.layoutBox);const E=Fa();tE(E,r,h.layoutBox),Zne(v,E)||(f=!0),g.options.layoutRoot&&(e.relativeTarget=E,e.relativeTargetOrigin=v,e.relativeParent=g)}}}e.notifyListeners("didUpdate",{layout:r,snapshot:t,delta:u,layoutDelta:l,hasLayoutChanged:d,hasRelativeLayoutChanged:f})}else if(e.isLead()){const{onExitComplete:r}=e.options;r&&r()}e.options.transition=void 0}function WMe(e){e.parent&&(e.isProjecting()||(e.isProjectionDirty=e.parent.isProjectionDirty),e.isSharedProjectionDirty||(e.isSharedProjectionDirty=!!(e.isProjectionDirty||e.parent.isProjectionDirty||e.parent.isSharedProjectionDirty)),e.isTransformDirty||(e.isTransformDirty=e.parent.isTransformDirty))}function zMe(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function qMe(e){e.clearSnapshot()}function Pz(e){e.clearMeasurements()}function Az(e){e.isLayoutDirty=!1}function HMe(e){const{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function Nz(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function VMe(e){e.resolveTargetDelta()}function GMe(e){e.calcProjection()}function YMe(e){e.resetSkewAndRotation()}function KMe(e){e.removeLeadSnapshot()}function Mz(e,t,n){e.translate=pa(t.translate,0,n),e.scale=pa(t.scale,1,n),e.origin=t.origin,e.originPoint=t.originPoint}function Iz(e,t,n,r){e.min=pa(t.min,n.min,r),e.max=pa(t.max,n.max,r)}function XMe(e,t,n,r){Iz(e.x,t.x,n.x,r),Iz(e.y,t.y,n.y,r)}function QMe(e){return e.animationValues&&e.animationValues.opacityExit!==void 0}const JMe={duration:.45,ease:[.4,0,.1,1]},Dz=e=>typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(e),$z=Dz("applewebkit/")&&!Dz("chrome/")?Math.round:Dl;function Lz(e){e.min=$z(e.min),e.max=$z(e.max)}function ZMe(e){Lz(e.x),Lz(e.y)}function nre(e,t,n){return e==="position"||e==="preserve-aspect"&&!nMe(Oz(t),Oz(n),.2)}function eIe(e){var t;return e!==e.root&&((t=e.scroll)==null?void 0:t.wasRoot)}const tIe=tre({attachResizeListener:(e,t)=>IE(e,"resize",t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),YA={current:void 0},rre=tre({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!YA.current){const e=new tIe({});e.mount(window),e.setOptions({layoutScroll:!0}),YA.current=e}return YA.current},resetTransform:(e,t)=>{e.style.transform=t!==void 0?t:"none"},checkIsScrollRoot:e=>window.getComputedStyle(e).position==="fixed"}),nIe={pan:{Feature:bMe},drag:{Feature:yMe,ProjectionNode:rre,MeasureLayout:Kne}};function Fz(e,t,n){const{props:r}=e;e.animationState&&r.whileHover&&e.animationState.setActive("whileHover",n==="Start");const a="onHover"+n,i=r[a];i&&ma.postRender(()=>i(t,yT(t)))}class rIe extends Rh{mount(){const{current:t}=this.node;t&&(this.unmount=PNe(t,(n,r)=>(Fz(this.node,r,"Start"),a=>Fz(this.node,a,"End"))))}unmount(){}}class aIe extends Rh{constructor(){super(...arguments),this.isActive=!1}onFocus(){let t=!1;try{t=this.node.current.matches(":focus-visible")}catch{t=!0}!t||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!0),this.isActive=!0)}onBlur(){!this.isActive||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!1),this.isActive=!1)}mount(){this.unmount=mT(IE(this.node.current,"focus",()=>this.onFocus()),IE(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}function jz(e,t,n){const{props:r}=e;if(e.current instanceof HTMLButtonElement&&e.current.disabled)return;e.animationState&&r.whileTap&&e.animationState.setActive("whileTap",n==="Start");const a="onTap"+(n==="End"?"":n),i=r[a];i&&ma.postRender(()=>i(t,yT(t)))}class iIe extends Rh{mount(){const{current:t}=this.node;t&&(this.unmount=INe(t,(n,r)=>(jz(this.node,r,"Start"),(a,{success:i})=>jz(this.node,a,i?"End":"Cancel")),{useGlobalTarget:this.node.props.globalTapTarget}))}unmount(){}}const J3=new WeakMap,KA=new WeakMap,oIe=e=>{const t=J3.get(e.target);t&&t(e)},sIe=e=>{e.forEach(oIe)};function lIe({root:e,...t}){const n=e||document;KA.has(n)||KA.set(n,{});const r=KA.get(n),a=JSON.stringify(t);return r[a]||(r[a]=new IntersectionObserver(sIe,{root:e,...t})),r[a]}function uIe(e,t,n){const r=lIe(t);return J3.set(e,n),r.observe(e),()=>{J3.delete(e),r.unobserve(e)}}const cIe={some:0,all:1};class dIe extends Rh{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();const{viewport:t={}}=this.node.getProps(),{root:n,margin:r,amount:a="some",once:i}=t,o={root:n?n.current:void 0,rootMargin:r,threshold:typeof a=="number"?a:cIe[a]},l=u=>{const{isIntersecting:d}=u;if(this.isInView===d||(this.isInView=d,i&&!d&&this.hasEnteredView))return;d&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",d);const{onViewportEnter:f,onViewportLeave:g}=this.node.getProps(),y=d?f:g;y&&y(u)};return uIe(this.node.current,o,l)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;const{props:t,prevProps:n}=this.node;["amount","margin","root"].some(fIe(t,n))&&this.startObserver()}unmount(){}}function fIe({viewport:e={}},{viewport:t={}}={}){return n=>e[n]!==t[n]}const pIe={inView:{Feature:dIe},tap:{Feature:iIe},focus:{Feature:aIe},hover:{Feature:rIe}},hIe={layout:{ProjectionNode:rre,MeasureLayout:Kne}},Z3={current:null},are={current:!1};function mIe(){if(are.current=!0,!!$j)if(window.matchMedia){const e=window.matchMedia("(prefers-reduced-motion)"),t=()=>Z3.current=e.matches;e.addListener(t),t()}else Z3.current=!1}const gIe=new WeakMap;function vIe(e,t,n){for(const r in t){const a=t[r],i=n[r];if(ro(a))e.addValue(r,a);else if(ro(i))e.addValue(r,I0(a,{owner:e}));else if(i!==a)if(e.hasValue(r)){const o=e.getValue(r);o.liveStyle===!0?o.jump(a):o.hasAnimated||o.set(a)}else{const o=e.getStaticValue(r);e.addValue(r,I0(o!==void 0?o:a,{owner:e}))}}for(const r in n)t[r]===void 0&&e.removeValue(r);return t}const Uz=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];class yIe{scrapeMotionValuesFromProps(t,n,r){return{}}constructor({parent:t,props:n,presenceContext:r,reducedMotionConfig:a,blockInitialAnimation:i,visualState:o},l={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.KeyframeResolver=Zj,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.renderScheduledAt=0,this.scheduleRender=()=>{const y=ps.now();this.renderScheduledAtthis.bindToMotionValue(r,n)),are.current||mIe(),this.shouldReduceMotion=this.reducedMotionConfig==="never"?!1:this.reducedMotionConfig==="always"?!0:Z3.current,this.parent&&this.parent.children.add(this),this.update(this.props,this.presenceContext)}unmount(){this.projection&&this.projection.unmount(),yh(this.notifyUpdate),yh(this.render),this.valueSubscriptions.forEach(t=>t()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent&&this.parent.children.delete(this);for(const t in this.events)this.events[t].clear();for(const t in this.features){const n=this.features[t];n&&(n.unmount(),n.isMounted=!1)}this.current=null}bindToMotionValue(t,n){this.valueSubscriptions.has(t)&&this.valueSubscriptions.get(t)();const r=Q0.has(t);r&&this.onBindTransform&&this.onBindTransform();const a=n.on("change",l=>{this.latestValues[t]=l,this.props.onUpdate&&ma.preRender(this.notifyUpdate),r&&this.projection&&(this.projection.isTransformDirty=!0)}),i=n.on("renderRequest",this.scheduleRender);let o;window.MotionCheckAppearSync&&(o=window.MotionCheckAppearSync(this,t,n)),this.valueSubscriptions.set(t,()=>{a(),i(),o&&o(),n.owner&&n.stop()})}sortNodePosition(t){return!this.current||!this.sortInstanceNodePosition||this.type!==t.type?0:this.sortInstanceNodePosition(this.current,t.current)}updateFeatures(){let t="animation";for(t in D0){const n=D0[t];if(!n)continue;const{isEnabled:r,Feature:a}=n;if(!this.features[t]&&a&&r(this.props)&&(this.features[t]=new a(this)),this.features[t]){const i=this.features[t];i.isMounted?i.update():(i.mount(),i.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):Fa()}getStaticValue(t){return this.latestValues[t]}setStaticValue(t,n){this.latestValues[t]=n}update(t,n){(t.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=t,this.prevPresenceContext=this.presenceContext,this.presenceContext=n;for(let r=0;rn.variantChildren.delete(t)}addValue(t,n){const r=this.values.get(t);n!==r&&(r&&this.removeValue(t),this.bindToMotionValue(t,n),this.values.set(t,n),this.latestValues[t]=n.get())}removeValue(t){this.values.delete(t);const n=this.valueSubscriptions.get(t);n&&(n(),this.valueSubscriptions.delete(t)),delete this.latestValues[t],this.removeValueFromRenderState(t,this.renderState)}hasValue(t){return this.values.has(t)}getValue(t,n){if(this.props.values&&this.props.values[t])return this.props.values[t];let r=this.values.get(t);return r===void 0&&n!==void 0&&(r=I0(n===null?void 0:n,{owner:this}),this.addValue(t,r)),r}readValue(t,n){let r=this.latestValues[t]!==void 0||!this.current?this.latestValues[t]:this.getBaseTargetFromProps(this.props,t)??this.readValueFromInstance(this.current,t,this.options);return r!=null&&(typeof r=="string"&&(Mte(r)||Dte(r))?r=parseFloat(r):!LNe(r)&&bh.test(n)&&(r=gne(t,n)),this.setBaseTarget(t,ro(r)?r.get():r)),ro(r)?r.get():r}setBaseTarget(t,n){this.baseTarget[t]=n}getBaseTarget(t){var i;const{initial:n}=this.props;let r;if(typeof n=="string"||typeof n=="object"){const o=f4(this.props,n,(i=this.presenceContext)==null?void 0:i.custom);o&&(r=o[t])}if(n&&r!==void 0)return r;const a=this.getBaseTargetFromProps(this.props,t);return a!==void 0&&!ro(a)?a:this.initialValues[t]!==void 0&&r===void 0?void 0:this.baseTarget[t]}on(t,n){return this.events[t]||(this.events[t]=new Bj),this.events[t].add(n)}notify(t,...n){this.events[t]&&this.events[t].notify(...n)}}class ire extends yIe{constructor(){super(...arguments),this.KeyframeResolver=kNe}sortInstanceNodePosition(t,n){return t.compareDocumentPosition(n)&2?1:-1}getBaseTargetFromProps(t,n){return t.style?t.style[n]:void 0}removeValueFromRenderState(t,{vars:n,style:r}){delete n[t],delete r[t]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:t}=this.props;ro(t)&&(this.childSubscription=t.on("change",n=>{this.current&&(this.current.textContent=`${n}`)}))}}function ore(e,{style:t,vars:n},r,a){Object.assign(e.style,t,a&&a.getProjectionStyles(r));for(const i in n)e.style.setProperty(i,n[i])}function bIe(e){return window.getComputedStyle(e)}class wIe extends ire{constructor(){super(...arguments),this.type="html",this.renderInstance=ore}readValueFromInstance(t,n){var r;if(Q0.has(n))return(r=this.projection)!=null&&r.isProjecting?U3(n):qAe(t,n);{const a=bIe(t),i=(qj(n)?a.getPropertyValue(n):a[n])||0;return typeof i=="string"?i.trim():i}}measureInstanceViewportBox(t,{transformPagePoint:n}){return Hne(t,n)}build(t,n,r){u4(t,n,r.transformTemplate)}scrapeMotionValuesFromProps(t,n,r){return p4(t,n,r)}}const sre=new Set(["baseFrequency","diffuseConstant","kernelMatrix","kernelUnitLength","keySplines","keyTimes","limitingConeAngle","markerHeight","markerWidth","numOctaves","targetX","targetY","surfaceScale","specularConstant","specularExponent","stdDeviation","tableValues","viewBox","gradientTransform","pathLength","startOffset","textLength","lengthAdjust"]);function SIe(e,t,n,r){ore(e,t,void 0,r);for(const a in t.attrs)e.setAttribute(sre.has(a)?a:l4(a),t.attrs[a])}class EIe extends ire{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=Fa}getBaseTargetFromProps(t,n){return t[n]}readValueFromInstance(t,n){if(Q0.has(n)){const r=mne(n);return r&&r.default||0}return n=sre.has(n)?n:l4(n),t.getAttribute(n)}scrapeMotionValuesFromProps(t,n,r){return Dne(t,n,r)}build(t,n,r){Ane(t,n,this.isSVGTag,r.transformTemplate,r.style)}renderInstance(t,n,r,a){SIe(t,n,r,a)}mount(t){this.isSVGTag=Mne(t.tagName),super.mount(t)}}const TIe=(e,t)=>d4(e)?new EIe(t):new wIe(t,{allowProjection:e!==R.Fragment}),CIe=E2e({...Y2e,...pIe,...nIe,...hIe},TIe),kIe=GNe(CIe),xIe={initial:{x:"100%",opacity:0},animate:{x:0,opacity:1},exit:{x:"100%",opacity:0}};function m4({children:e}){var r;const t=sf();return((r=t.state)==null?void 0:r.animated)?w.jsx(WNe,{mode:"wait",children:w.jsx(kIe.div,{variants:xIe,initial:"initial",animate:"animate",exit:"exit",transition:{duration:.15},style:{width:"100%"},children:e},t.pathname)}):w.jsx(w.Fragment,{children:e})}function _Ie(){return w.jsx(mt,{path:"",children:w.jsx(mt,{element:w.jsx(m4,{children:w.jsx(BPe,{})}),path:"dashboard"})})}const J0=({errors:e,error:t})=>{if(!t&&!e)return null;let n={};t&&t.errors?n=t.errors:e&&(n=e);const r=Object.keys(n);return w.jsxs("div",{style:{minHeight:"30px"},children:[(e==null?void 0:e.form)&&w.jsx("div",{className:"with-fade-in",style:{color:"red"},children:e.form}),n.length&&w.jsxs("div",{children:[((t==null?void 0:t.title)||(t==null?void 0:t.message))&&w.jsx("span",{children:(t==null?void 0:t.title)||(t==null?void 0:t.message)}),r.map(a=>w.jsx("div",{children:w.jsxs("span",{children:["• ",n[a]]})},a))]})]})},OIe={remoteTitle:"Remote service",grpcMethod:"Over grpc",hostAddress:"Host address",httpMethod:"Over http",interfaceLang:{description:"Here you can change your software interface language settings",title:"Language & Region"},port:"Port",remoteDescription:"Remote service, is the place that all data, logics, and services are installed there. It could be cloud, or locally. Only advanced users, changing it to wrong address might cause inaccessibility.",richTextEditor:{description:"Manage how you want to edit textual content in the app",title:"Text Editor"},theme:{title:"Theme",description:"Change the interface theme color"},accessibility:{description:"Handle the accessibility settings",title:"Accessibility"},debugSettings:{description:"See the debug information of the app, for developers or help desks",title:"Debug Settings"}},RIe={interfaceLang:{description:"Tutaj możesz zmienić ustawienia języka interfejsu oprogramowania",title:"Język i Region"},port:"Port",remoteDescription:"Usługa zdalna, to miejsce, w którym zainstalowane są wszystkie dane, logiki i usługi. Może to być chmura lub lokalnie. Tylko zaawansowani użytkownicy, zmieniając go na błędny adres, mogą spowodować niedostępność.",theme:{description:"Zmień kolor motywu interfejsu",title:"Motyw"},grpcMethod:"Przez gRPC",httpMethod:"Przez HTTP",hostAddress:"Adres hosta",remoteTitle:"Usługa zdalna",richTextEditor:{description:"Zarządzaj sposobem edycji treści tekstowej w aplikacji",title:"Edytor tekstu"},accessibility:{description:"Obsługa ustawień dostępności",title:"Dostępność"},debugSettings:{description:"Wyświetl informacje debugowania aplikacji, dla programistów lub biur pomocy",title:"Ustawienia debugowania"}},PIe={accessibility:{description:"مدیریت تنظیمات دسترسی",title:"دسترسی"},debugSettings:{description:"نمایش اطلاعات اشکال زدایی برنامه، برای توسعه‌دهندگان یا مراکز کمک",title:"تنظیمات اشکال زدایی"},httpMethod:"از طریق HTTP",interfaceLang:{description:"در اینجا می‌توانید تنظیمات زبان و منطقه رابط کاربری نرم‌افزار را تغییر دهید",title:"زبان و منطقه"},port:"پورت",remoteDescription:"سرویس از راه دور، مکانی است که تمام داده‌ها، منطق‌ها و خدمات در آن نصب می‌شوند. ممکن است این ابری یا محلی باشد. تنها کاربران پیشرفته با تغییر آن به آدرس نادرست، ممکن است بر ندسترسی برخورد کنند.",remoteTitle:"سرویس از راه دور",grpcMethod:"از طریق gRPC",hostAddress:"آدرس میزبان",richTextEditor:{title:"ویرایشگر متن",description:"مدیریت نحوه ویرایش محتوای متنی در برنامه"},theme:{description:"تغییر رنگ موضوع رابط کاربری",title:"موضوع"}},AIe={...OIe,$pl:RIe,$fa:PIe},NIe=(e,t)=>{e.preferredHand&&localStorage.setItem("app_preferredHand_address",e.preferredHand)},MIe=e=>[{label:e.accesibility.leftHand,value:"left"},{label:e.accesibility.rightHand,value:"right"}];function IIe({}){const{config:e,patchConfig:t}=R.useContext(Th),n=At(),r=Kt(AIe),{formik:a}=$r({}),i=(l,u)=>{l.preferredHand&&(t({preferredHand:l.preferredHand}),NIe(l))},o=Ks(MIe(n));return R.useEffect(()=>{var l;(l=a.current)==null||l.setValues({preferredHand:e.preferredHand})},[e.remote]),w.jsxs(Fo,{title:n.generalSettings.accessibility.title,children:[w.jsx("p",{children:r.accessibility.description}),w.jsx(ms,{innerRef:l=>{l&&(a.current=l)},initialValues:{},onSubmit:i,children:l=>w.jsxs("form",{className:"richtext-editor-config-form",onSubmit:u=>u.preventDefault(),children:[w.jsx(J0,{errors:l.errors}),w.jsx(da,{formEffect:{form:l,field:"preferredHand",beforeSet(u){return u.value}},keyExtractor:u=>u.value,errorMessage:l.errors.preferredHand,querySource:o,label:n.settings.preferredHand,hint:n.settings.preferredHandHint}),w.jsx(Ys,{disabled:l.values.preferredHand===""||l.values.preferredHand===e.preferredHand,label:n.settings.apply,onClick:()=>l.submitForm()})]})})]})}function DIe(){const e=Gs(),{query:t}=ZF({queryClient:e,query:{},queryOptions:{cacheTime:0}});return w.jsxs(w.Fragment,{children:[w.jsx("h2",{children:"User Role Workspaces"}),w.jsx("p",{children:"Data:"}),w.jsx("pre",{children:JSON.stringify(t.data,null,2)}),w.jsx("p",{children:"Error:"}),w.jsx("pre",{children:JSON.stringify(t.error,null,2)})]})}function $Ie(){const e=R.useContext(it);return w.jsxs(w.Fragment,{children:[w.jsx("h2",{children:"Fireback context:"}),w.jsx("pre",{children:JSON.stringify(e,null,2)})]})}function LIe({}){const[e,t]=R.useState(!1);R.useContext(it);const n=At();return w.jsxs(Fo,{title:n.generalSettings.debugSettings.title,children:[w.jsx("p",{children:n.generalSettings.debugSettings.description}),w.jsx(Cl,{value:e,label:n.debugInfo,onChange:()=>t(r=>!r)}),e&&w.jsxs(w.Fragment,{children:[w.jsx("pre",{}),w.jsx(Ml,{href:"/lalaland",children:"Go to Lalaland"}),w.jsx(Ml,{href:"/view3d",children:"View 3D"}),w.jsx(DIe,{}),w.jsx($Ie,{})]})]})}const lre=e=>[kr.SUPPORTED_LANGUAGES.includes("en")?{label:e.locale.englishWorldwide,value:"en"}:void 0,kr.SUPPORTED_LANGUAGES.includes("fa")?{label:e.locale.persianIran,value:"fa"}:void 0,kr.SUPPORTED_LANGUAGES.includes("ru")?{label:"Russian (Русский)",value:"ru"}:void 0,kr.SUPPORTED_LANGUAGES.includes("pl")?{label:e.locale.polishPoland,value:"pl"}:void 0,kr.SUPPORTED_LANGUAGES.includes("ua")?{label:"Ukrainain (українська)",value:"ua"}:void 0].filter(Boolean),FIe=(e,t)=>{e.interfaceLanguage&&localStorage.setItem("app_interfaceLanguage_address",e.interfaceLanguage)};function jIe({}){const{config:e,patchConfig:t}=R.useContext(Th),n=At(),{router:r,formik:a}=$r({}),i=(u,d)=>{u.interfaceLanguage&&(t({interfaceLanguage:u.interfaceLanguage}),FIe(u),r.push(`/${u.interfaceLanguage}/settings`))};R.useEffect(()=>{var u;(u=a.current)==null||u.setValues({interfaceLanguage:e.interfaceLanguage})},[e.remote]);const o=lre(n),l=Ks(o);return w.jsxs(Fo,{title:n.generalSettings.interfaceLang.title,children:[w.jsx("p",{children:n.generalSettings.interfaceLang.description}),w.jsx(ms,{innerRef:u=>{u&&(a.current=u)},initialValues:{},onSubmit:i,children:u=>w.jsxs("form",{className:"remote-service-form",onSubmit:d=>d.preventDefault(),children:[w.jsx(J0,{errors:u.errors}),w.jsx(da,{keyExtractor:d=>d.value,formEffect:{form:u,field:"interfaceLanguage",beforeSet(d){return d.value}},errorMessage:u.errors.interfaceLanguage,querySource:l,label:n.settings.interfaceLanguage,hint:n.settings.interfaceLanguageHint}),w.jsx(Ys,{disabled:u.values.interfaceLanguage===""||u.values.interfaceLanguage===e.interfaceLanguage,label:n.settings.apply,onClick:()=>u.submitForm()})]})})]})}class g4 extends wn{constructor(...t){super(...t),this.children=void 0,this.subscription=void 0}}g4.Navigation={edit(e,t){return`${t?"/"+t:".."}/web-push-config/edit/${e}`},create(e){return`${e?"/"+e:".."}/web-push-config/new`},single(e,t){return`${t?"/"+t:".."}/web-push-config/${e}`},query(e={},t){return`${t?"/"+t:".."}/web-push-configs`},Redit:"web-push-config/edit/:uniqueId",Rcreate:"web-push-config/new",Rsingle:"web-push-config/:uniqueId",Rquery:"web-push-configs"};g4.definition={rpc:{query:{}},name:"webPushConfig",distinctBy:"user",features:{},security:{resolveStrategy:"user"},gormMap:{},fields:[{name:"subscription",description:"The json content of the web push after getting it from browser",type:"json",validate:"required",computedType:"any",gormMap:{}}],description:"Keep the web push notification configuration for each user"};g4.Fields={...wn.Fields,subscription:"subscription"};function UIe(e){let{queryClient:t,query:n,execFnOverride:r}={};n=n||{};const{options:a,execFn:i}=R.useContext(it),o=r?r(a):i?i(a):Tt(a);let u=`${"/web-push-config".substr(1)}?${new URLSearchParams(Gt(n)).toString()}`;const f=un(h=>o("POST",u,h)),g=(h,v)=>{var E;return h?(h.data&&(v!=null&&v.data)&&(h.data.items=[v.data,...((E=h==null?void 0:h.data)==null?void 0:E.items)||[]]),h):{data:{items:[]}}};return{mutation:f,submit:(h,v)=>new Promise((E,T)=>{f.mutate(h,{onSuccess(C){t==null||t.setQueryData("*fireback.WebPushConfigEntity",k=>g(k,C)),E(C)},onError(C){v==null||v.setErrors(Pn(C)),T(C)}})}),fnUpdater:g}}function BIe(){const{submit:e}=UIe();R.useEffect(()=>{navigator.serviceWorker&&navigator.serviceWorker.addEventListener("message",d=>{var f;((f=d.data)==null?void 0:f.type)==="PUSH_RECEIVED"&&console.log("Push message in UI:",d.data.payload)})},[]);const[t,n]=R.useState(!1),[r,a]=R.useState(!1),[i,o]=R.useState(null);return R.useEffect(()=>{async function d(){try{const g=await(await navigator.serviceWorker.ready).pushManager.getSubscription();a(!!g)}catch(f){console.error("Failed to check subscription",f)}}d()},[]),{isSubscribing:t,isSubscribed:r,error:i,subscribe:async()=>{n(!0),o(null);try{const f=await(await navigator.serviceWorker.ready).pushManager.subscribe({userVisibleOnly:!0,applicationServerKey:"BAw6oGpr6FoFDj49xOhFbTSOY07zvcqYWyyXeQXUJIFubi5iLQNV0vYsXKLz7J8520o4IjCq8u9tLPBx2NSuu04"});console.log(25,f),e({subscription:f}),console.log("Subscribed:",JSON.stringify(f)),a(!0)}catch(d){o("Failed to subscribe."),console.error("Subscription failed:",d)}finally{n(!1)}},unsubscribe:async()=>{n(!0),o(null);try{const f=await(await navigator.serviceWorker.ready).pushManager.getSubscription();f?(await f.unsubscribe(),a(!1)):o("No subscription found")}catch(d){o("Failed to unsubscribe."),console.error("Unsubscription failed:",d)}finally{n(!1)}}}}function WIe({}){const{error:e,isSubscribed:t,isSubscribing:n,subscribe:r,unsubscribe:a}=BIe();return w.jsxs(Fo,{title:"Notification settings",children:[w.jsx("p",{children:"Here you can manage your notifications"}),w.jsx(J0,{error:e}),w.jsx("button",{className:"btn",disabled:n||t,onClick:()=>r(),children:"Subscribe"}),w.jsx("button",{disabled:!t,className:"btn",onClick:()=>a(),children:"Unsubscribe"})]})}const zIe=(e,t)=>{e.textEditorModule&&localStorage.setItem("app_textEditorModule_address",e.textEditorModule)},qIe=e=>[{label:e.simpleTextEditor,value:"bare"},{label:e.tinymceeditor,value:"tinymce"}];function HIe({}){const{config:e,patchConfig:t}=R.useContext(Th),n=At(),{formik:r}=$r({}),a=(l,u)=>{l.textEditorModule&&(t({textEditorModule:l.textEditorModule}),zIe(l))};R.useEffect(()=>{var l;(l=r.current)==null||l.setValues({textEditorModule:e.textEditorModule})},[e.remote]);const i=qIe(n),o=Ks(i);return w.jsxs(Fo,{title:n.generalSettings.richTextEditor.title,children:[w.jsx("p",{children:n.generalSettings.richTextEditor.description}),w.jsx(ms,{innerRef:l=>{l&&(r.current=l)},initialValues:{},onSubmit:a,children:l=>w.jsxs("form",{className:"richtext-editor-config-form",onSubmit:u=>u.preventDefault(),children:[w.jsx(J0,{errors:l.errors}),w.jsx(da,{formEffect:{form:l,field:"textEditorModule",beforeSet(u){return u.value}},keyExtractor:u=>u.value,querySource:o,errorMessage:l.errors.textEditorModule,label:n.settings.textEditorModule,hint:n.settings.textEditorModuleHint}),w.jsx(Ys,{disabled:l.values.textEditorModule===""||l.values.textEditorModule===e.textEditorModule,label:n.settings.apply,onClick:()=>l.submitForm()})]})})]})}const VIe=(e,t)=>{if(e.theme){localStorage.setItem("ui_theme",e.theme);const n=document.getElementsByTagName("body")[0].classList;for(const r of n.value.split(" "))r.endsWith("-theme")&&n.remove(r);e.theme.split(" ").forEach(r=>{n.add(r)})}},GIe=[{label:"MacOSX Automatic",value:"mac-theme"},{label:"MacOSX Light",value:"mac-theme light-theme"},{label:"MacOSX Dark",value:"mac-theme dark-theme"}];function YIe({}){const{config:e,patchConfig:t}=R.useContext(Th),n=At(),{formik:r}=$r({}),a=(o,l)=>{o.theme&&(t({theme:o.theme}),VIe(o))};R.useEffect(()=>{var o;(o=r.current)==null||o.setValues({theme:e.theme})},[e.remote]);const i=Ks(GIe);return w.jsxs(Fo,{title:n.generalSettings.theme.title,children:[w.jsx("p",{children:n.generalSettings.theme.description}),w.jsx(ms,{innerRef:o=>{o&&(r.current=o)},initialValues:{},onSubmit:a,children:o=>w.jsxs("form",{className:"richtext-editor-config-form",onSubmit:l=>l.preventDefault(),children:[w.jsx(J0,{errors:o.errors}),w.jsx(da,{keyExtractor:l=>l.value,formEffect:{form:o,field:"theme",beforeSet(l){return l.value}},errorMessage:o.errors.theme,querySource:i,label:n.settings.theme,hint:n.settings.themeHint}),w.jsx(Ys,{disabled:o.values.theme===""||o.values.theme===e.theme,label:n.settings.apply,onClick:()=>o.submitForm()})]})})]})}function KIe({}){const e=At();return xh(e.menu.settings),w.jsxs("div",{children:[w.jsx(WIe,{}),kr.FORCED_LOCALE?null:w.jsx(jIe,{}),w.jsx(HIe,{}),w.jsx(IIe,{}),kr.FORCE_APP_THEME!=="true"?w.jsx(YIe,{}):null,w.jsx(LIe,{})]})}const XIe={setupTotpDescription:'In order to complete account registeration, you need to scan the following code using "Microsoft authenticator" or "Google Authenticator". After that, you need to enter the 6 digit code from the app here.',welcomeBackDescription:"Select any option to continue to access your account.",google:"Google",selectWorkspace:"You have multiple workspaces associated with your account. Select one to continue.",completeYourAccount:"Complete your account",completeYourAccountDescription:"Complete the information below to complete your signup",registerationNotPossibleLine1:"In this project there are no workspace types that can be used publicly to create account.",enterPassword:"Enter Password",welcomeBack:"Welcome back",emailMethod:"Email",phoneMethod:"Phone number",noAuthenticationMethod:"Authentication Currently Unavailable",firstName:"First name",registerationNotPossible:"Registeration not possible.",setupDualFactor:"Setup Dual Factor",cancelStep:"Cancel and try another way.",enterOtp:"Enter OTP",skipTotpInfo:"You can setup this any time later, by visiting your account security section.",continueWithEmailDescription:"Enter your email address to continue.",enterOtpDescription:"We have sent you an one time password, please enter to continue.",continueWithEmail:"Continue with Email",continueWithPhone:"Continue with Phone",registerationNotPossibleLine2:"Contact the service administrator to create your account for you.",useOneTimePassword:"Use one time password instead",changePassword:{pass1Label:"Password",pass2Label:"Repeat password",submit:"Change Password",title:"Change password",description:"In order to change your password, enter new password twice same in the fields"},continueWithPhoneDescription:"Enter your phone number to continue.",lastName:"Last name",password:"Password",continue:"Continue",anotherAccount:"Choose another account",noAuthenticationMethodDescription:"Sign-in and registration are not available in your region at this time. If you believe this is an error or need access, please contact the administrator.",home:{title:"Account & Profile",description:"Manage your account, emails, passwords and more",passports:"Passports",passportsTitle:"Passports",passportsDescription:"View emails, phone numbers associated with your account."},enterTotp:"Enter Totp Code",enterTotpDescription:"Open your authenticator app and enter the 6 digits.",setupTotp:"Setup Dual Factor",skipTotpButton:"Skip for now",userPassports:{title:"Passports",description:"You can see a list of passports that you can use to authenticate into the system here.",add:"Add new passport",remove:"Remove passport"},selectWorkspaceTitle:"Select workspace",chooseAnotherMethod:"Choose another method",enterPasswordDescription:"Enter your password to continue authorizing your account."},QIe={registerationNotPossibleLine2:"Skontaktuj się z administratorem usługi, aby utworzył konto dla Ciebie.",chooseAnotherMethod:"Wybierz inną metodę",continue:"Kontynuuj",continueWithPhone:"Kontynuuj za pomocą numeru telefonu",enterPassword:"Wprowadź hasło",noAuthenticationMethod:"Uwierzytelnianie obecnie niedostępne",completeYourAccountDescription:"Uzupełnij poniższe informacje, aby zakończyć rejestrację",registerationNotPossible:"Rejestracja niemożliwa.",selectWorkspace:"Masz wiele przestrzeni roboczych powiązanych z Twoim kontem. Wybierz jedną, aby kontynuować.",welcomeBack:"Witamy ponownie",enterOtp:"Wprowadź jednorazowy kod",enterPasswordDescription:"Wprowadź swoje hasło, aby kontynuować autoryzację konta.",userPassports:{add:"Dodaj nowy paszport",description:"Tutaj możesz zobaczyć listę paszportów, które możesz wykorzystać do uwierzytelniania w systemie.",remove:"Usuń paszport",title:"Paszporty"},registerationNotPossibleLine1:"W tym projekcie nie ma dostępnych typów przestrzeni roboczych do publicznego tworzenia konta.",cancelStep:"Anuluj i spróbuj innej metody.",continueWithEmail:"Kontynuuj za pomocą e-maila",continueWithPhoneDescription:"Wprowadź swój numer telefonu, aby kontynuować.",emailMethod:"E-mail",enterTotp:"Wprowadź kod TOTP",noAuthenticationMethodDescription:"Logowanie i rejestracja są obecnie niedostępne w Twoim regionie. Jeśli uważasz, że to błąd lub potrzebujesz dostępu, skontaktuj się z administratorem.",password:"Hasło",anotherAccount:"Wybierz inne konto",enterTotpDescription:"Otwórz aplikację uwierzytelniającą i wprowadź 6-cyfrowy kod.",firstName:"Imię",phoneMethod:"Numer telefonu",setupDualFactor:"Skonfiguruj uwierzytelnianie dwuskładnikowe",setupTotp:"Skonfiguruj uwierzytelnianie dwuskładnikowe",skipTotpInfo:"Możesz skonfigurować to później, odwiedzając sekcję bezpieczeństwa konta.",welcomeBackDescription:"Wybierz dowolną opcję, aby kontynuować dostęp do swojego konta.",changePassword:{pass1Label:"Hasło",pass2Label:"Powtórz hasło",submit:"Zmień hasło",title:"Zmień hasło",description:"Aby zmienić hasło, wprowadź nowe hasło dwukrotnie w polach poniżej"},lastName:"Nazwisko",useOneTimePassword:"Użyj jednorazowego hasła zamiast tego",completeYourAccount:"Uzupełnij swoje konto",continueWithEmailDescription:"Wprowadź swój adres e-mail, aby kontynuować.",enterOtpDescription:"Wysłaliśmy jednorazowy kod, wprowadź go, aby kontynuować.",google:"Google",home:{description:"Zarządzaj swoim kontem, e-mailami, hasłami i innymi",passports:"Paszporty",passportsDescription:"Zobacz e-maile i numery telefonów powiązane z Twoim kontem.",passportsTitle:"Paszporty",title:"Konto i profil"},selectWorkspaceTitle:"Wybierz przestrzeń roboczą",setupTotpDescription:"Aby zakończyć rejestrację konta, zeskanuj poniższy kod za pomocą aplikacji „Microsoft Authenticator” lub „Google Authenticator”. Następnie wprowadź tutaj 6-cyfrowy kod z aplikacji.",skipTotpButton:"Pomiń na razie"},Oa={...XIe,$pl:QIe};var DE;function Ds(e,t){if(!{}.hasOwnProperty.call(e,t))throw new TypeError("attempted to use private field on non-instance");return e}var JIe=0;function bT(e){return"__private_"+JIe+++"_"+e}const ZIe=e=>{const t=Ho(),n=(e==null?void 0:e.ctx)??t??void 0,[r,a]=R.useState(!1),[i,o]=R.useState(),l=()=>(a(!1),Qd.Fetch({headers:e==null?void 0:e.headers},{creatorFn:e==null?void 0:e.creatorFn,qs:e==null?void 0:e.qs,ctx:n,onMessage:e==null?void 0:e.onMessage,overrideUrl:e==null?void 0:e.overrideUrl}).then(d=>(d.done.then(()=>{a(!0)}),o(d.response),d.response.result)));return{...jn({queryKey:[Qd.NewUrl(e==null?void 0:e.qs)],queryFn:l,...e||{}}),isCompleted:r,response:i}};class Qd{}DE=Qd;Qd.URL="/user/passports";Qd.NewUrl=e=>Wo(DE.URL,void 0,e);Qd.Method="get";Qd.Fetch$=async(e,t,n,r)=>zo(r??DE.NewUrl(e),{method:DE.Method,...n||{}},t);Qd.Fetch=async(e,{creatorFn:t,qs:n,ctx:r,onMessage:a,overrideUrl:i}={creatorFn:o=>new Nv(o)})=>{t=t||(l=>new Nv(l));const o=await DE.Fetch$(n,r,e,i);return qo(o,l=>{const u=new so;return t&&u.setCreator(t),u.inject(l),u},a,e==null?void 0:e.signal)};Qd.Definition={name:"UserPassports",url:"/user/passports",method:"get",description:"Returns list of passports belongs to an specific user.",out:{envelope:"GResponse",fields:[{name:"value",description:"The passport value, such as email address or phone number",type:"string"},{name:"uniqueId",description:"Unique identifier of the passport to operate some action on top of it",type:"string"},{name:"type",description:"The type of the passport, such as email, phone number",type:"string"},{name:"totpConfirmed",description:"Regardless of the secret, user needs to confirm his secret. There is an extra action to confirm user totp, could be used after signup or prior to login.",type:"bool"}]}};var ag=bT("value"),ig=bT("uniqueId"),og=bT("type"),sg=bT("totpConfirmed"),XA=bT("isJsonAppliable");class Nv{get value(){return Ds(this,ag)[ag]}set value(t){Ds(this,ag)[ag]=String(t)}setValue(t){return this.value=t,this}get uniqueId(){return Ds(this,ig)[ig]}set uniqueId(t){Ds(this,ig)[ig]=String(t)}setUniqueId(t){return this.uniqueId=t,this}get type(){return Ds(this,og)[og]}set type(t){Ds(this,og)[og]=String(t)}setType(t){return this.type=t,this}get totpConfirmed(){return Ds(this,sg)[sg]}set totpConfirmed(t){Ds(this,sg)[sg]=!!t}setTotpConfirmed(t){return this.totpConfirmed=t,this}constructor(t=void 0){if(Object.defineProperty(this,XA,{value:eDe}),Object.defineProperty(this,ag,{writable:!0,value:""}),Object.defineProperty(this,ig,{writable:!0,value:""}),Object.defineProperty(this,og,{writable:!0,value:""}),Object.defineProperty(this,sg,{writable:!0,value:void 0}),t!=null)if(typeof t=="string")this.applyFromObject(JSON.parse(t));else if(Ds(this,XA)[XA](t))this.applyFromObject(t);else throw new Error("Instance cannot be created on an unknown value, check the content being passed. got: "+typeof t)}applyFromObject(t={}){const n=t;n.value!==void 0&&(this.value=n.value),n.uniqueId!==void 0&&(this.uniqueId=n.uniqueId),n.type!==void 0&&(this.type=n.type),n.totpConfirmed!==void 0&&(this.totpConfirmed=n.totpConfirmed)}toJSON(){return{value:Ds(this,ag)[ag],uniqueId:Ds(this,ig)[ig],type:Ds(this,og)[og],totpConfirmed:Ds(this,sg)[sg]}}toString(){return JSON.stringify(this)}static get Fields(){return{value:"value",uniqueId:"uniqueId",type:"type",totpConfirmed:"totpConfirmed"}}static from(t){return new Nv(t)}static with(t){return new Nv(t)}copyWith(t){return new Nv({...this.toJSON(),...t})}clone(){return new Nv(this.toJSON())}}function eDe(e){const t=globalThis,n=typeof t.Buffer<"u"&&typeof t.Buffer.isBuffer=="function"&&t.Buffer.isBuffer(e),r=typeof t.Blob<"u"&&e instanceof t.Blob;return e&&typeof e=="object"&&!Array.isArray(e)&&!n&&!(e instanceof ArrayBuffer)&&!r}const tDe=()=>{const e=Kt(Oa),{goBack:t}=xr(),n=ZIe({}),{signout:r}=R.useContext(it);return{goBack:t,signout:r,query:n,s:e}},nDe=({})=>{var a,i;const{query:e,s:t,signout:n}=tDe(),r=((i=(a=e==null?void 0:e.data)==null?void 0:a.data)==null?void 0:i.items)||[];return w.jsxs("div",{className:"signin-form-container",children:[w.jsx("h1",{children:t.userPassports.title}),w.jsx("p",{children:t.userPassports.description}),w.jsx(Ll,{query:e}),w.jsx(rDe,{passports:r}),w.jsx("button",{className:"btn btn-danger mt-3 w-100",onClick:n,children:"Signout"})]})},rDe=({passports:e})=>{const t=Kt(Oa);return w.jsx("div",{className:"d-flex ",children:e.map(n=>w.jsxs("div",{className:"card p-3 w-100",children:[w.jsx("h3",{className:"card-title",children:n.type.toUpperCase()}),w.jsx("p",{className:"card-text",children:n.value}),w.jsxs("p",{className:"text-muted",children:["TOTP: ",n.totpConfirmed?"Yes":"No"]}),w.jsx(g0,{href:`../change-password/${n.uniqueId}`,children:w.jsx("button",{className:"btn btn-primary",children:t.changePassword.submit})})]},n.uniqueId))})};var $E;function Eu(e,t){if(!{}.hasOwnProperty.call(e,t))throw new TypeError("attempted to use private field on non-instance");return e}var aDe=0;function wT(e){return"__private_"+aDe+++"_"+e}const iDe=e=>{const n=Ho()??void 0,[r,a]=R.useState(!1),[i,o]=R.useState();return{...un({mutationFn:d=>(a(!1),Ph.Fetch({body:d,headers:e==null?void 0:e.headers},{creatorFn:e==null?void 0:e.creatorFn,qs:e==null?void 0:e.qs,ctx:n,onMessage:e==null?void 0:e.onMessage,overrideUrl:e==null?void 0:e.overrideUrl}).then(f=>(f.done.then(()=>{a(!0)}),o(f.response),f.response.result)))}),isCompleted:r,response:i}};class Ph{}$E=Ph;Ph.URL="/passport/change-password";Ph.NewUrl=e=>Wo($E.URL,void 0,e);Ph.Method="post";Ph.Fetch$=async(e,t,n,r)=>zo(r??$E.NewUrl(e),{method:$E.Method,...n||{}},t);Ph.Fetch=async(e,{creatorFn:t,qs:n,ctx:r,onMessage:a,overrideUrl:i}={creatorFn:o=>new Iv(o)})=>{t=t||(l=>new Iv(l));const o=await $E.Fetch$(n,r,e,i);return qo(o,l=>{const u=new so;return t&&u.setCreator(t),u.inject(l),u},a,e==null?void 0:e.signal)};Ph.Definition={name:"ChangePassword",cliName:"cp",url:"/passport/change-password",method:"post",description:"Change the password for a given passport of the user. User needs to be authenticated in order to be able to change the password for a given account.",in:{fields:[{name:"password",description:"New password meeting the security requirements.",type:"string",tags:{validate:"required"}},{name:"uniqueId",description:"The passport uniqueId (not the email or phone number) which password would be applied to. Don't confuse with value.",type:"string",tags:{validate:"required"}}]},out:{envelope:"GResponse",fields:[{name:"changed",type:"bool"}]}};var lg=wT("password"),ug=wT("uniqueId"),QA=wT("isJsonAppliable");class Mv{get password(){return Eu(this,lg)[lg]}set password(t){Eu(this,lg)[lg]=String(t)}setPassword(t){return this.password=t,this}get uniqueId(){return Eu(this,ug)[ug]}set uniqueId(t){Eu(this,ug)[ug]=String(t)}setUniqueId(t){return this.uniqueId=t,this}constructor(t=void 0){if(Object.defineProperty(this,QA,{value:oDe}),Object.defineProperty(this,lg,{writable:!0,value:""}),Object.defineProperty(this,ug,{writable:!0,value:""}),t!=null)if(typeof t=="string")this.applyFromObject(JSON.parse(t));else if(Eu(this,QA)[QA](t))this.applyFromObject(t);else throw new Error("Instance cannot be created on an unknown value, check the content being passed. got: "+typeof t)}applyFromObject(t={}){const n=t;n.password!==void 0&&(this.password=n.password),n.uniqueId!==void 0&&(this.uniqueId=n.uniqueId)}toJSON(){return{password:Eu(this,lg)[lg],uniqueId:Eu(this,ug)[ug]}}toString(){return JSON.stringify(this)}static get Fields(){return{password:"password",uniqueId:"uniqueId"}}static from(t){return new Mv(t)}static with(t){return new Mv(t)}copyWith(t){return new Mv({...this.toJSON(),...t})}clone(){return new Mv(this.toJSON())}}function oDe(e){const t=globalThis,n=typeof t.Buffer<"u"&&typeof t.Buffer.isBuffer=="function"&&t.Buffer.isBuffer(e),r=typeof t.Blob<"u"&&e instanceof t.Blob;return e&&typeof e=="object"&&!Array.isArray(e)&&!n&&!(e instanceof ArrayBuffer)&&!r}var cg=wT("changed"),JA=wT("isJsonAppliable");class Iv{get changed(){return Eu(this,cg)[cg]}set changed(t){Eu(this,cg)[cg]=!!t}setChanged(t){return this.changed=t,this}constructor(t=void 0){if(Object.defineProperty(this,JA,{value:sDe}),Object.defineProperty(this,cg,{writable:!0,value:void 0}),t!=null)if(typeof t=="string")this.applyFromObject(JSON.parse(t));else if(Eu(this,JA)[JA](t))this.applyFromObject(t);else throw new Error("Instance cannot be created on an unknown value, check the content being passed. got: "+typeof t)}applyFromObject(t={}){const n=t;n.changed!==void 0&&(this.changed=n.changed)}toJSON(){return{changed:Eu(this,cg)[cg]}}toString(){return JSON.stringify(this)}static get Fields(){return{changed:"changed"}}static from(t){return new Iv(t)}static with(t){return new Iv(t)}copyWith(t){return new Iv({...this.toJSON(),...t})}clone(){return new Iv(this.toJSON())}}function sDe(e){const t=globalThis,n=typeof t.Buffer<"u"&&typeof t.Buffer.isBuffer=="function"&&t.Buffer.isBuffer(e),r=typeof t.Blob<"u"&&e instanceof t.Blob;return e&&typeof e=="object"&&!Array.isArray(e)&&!n&&!(e instanceof ArrayBuffer)&&!r}const lDe=()=>{const e=Kt(Oa),{goBack:t,state:n,replace:r,push:a,query:i}=xr(),o=iDe(),l=i==null?void 0:i.uniqueId,u=()=>{o.mutateAsync(new Mv(d.values)).then(f=>{t()})},d=uf({initialValues:{},onSubmit:u});return R.useEffect(()=>{!l||!d||d.setFieldValue(Mv.Fields.uniqueId,l)},[l]),{mutation:o,form:d,submit:u,goBack:t,s:e}},uDe=({})=>{const{mutation:e,form:t,s:n}=lDe();return w.jsxs("div",{className:"signin-form-container",children:[w.jsx("h1",{children:n.changePassword.title}),w.jsx("p",{children:n.changePassword.description}),w.jsx(Ll,{query:e}),w.jsx(cDe,{form:t,mutation:e})]})},cDe=({form:e,mutation:t})=>{const n=Kt(Oa),{password2:r,password:a}=e.values,i=a!==r||((a==null?void 0:a.length)||0)<6;return w.jsxs("form",{onSubmit:o=>{o.preventDefault(),e.submitForm()},children:[w.jsx(In,{type:"password",value:e.values.password,label:n.changePassword.pass1Label,id:"password-input",errorMessage:e.errors.password,onChange:o=>e.setFieldValue("password",o,!1)}),w.jsx(In,{type:"password",value:e.values.password2,label:n.changePassword.pass2Label,id:"password-input-2",errorMessage:e.errors.password,onChange:o=>e.setFieldValue("password2",o,!1)}),w.jsx(Ys,{className:"btn btn-primary w-100 d-block mb-2",mutation:t,id:"submit-form",disabled:i,children:n.continue})]})};function dDe(e={}){const{nonce:t,onScriptLoadSuccess:n,onScriptLoadError:r}=e,[a,i]=R.useState(!1),o=R.useRef(n);o.current=n;const l=R.useRef(r);return l.current=r,R.useEffect(()=>{const u=document.createElement("script");return u.src="https://accounts.google.com/gsi/client",u.async=!0,u.defer=!0,u.nonce=t,u.onload=()=>{var d;i(!0),(d=o.current)===null||d===void 0||d.call(o)},u.onerror=()=>{var d;i(!1),(d=l.current)===null||d===void 0||d.call(l)},document.body.appendChild(u),()=>{document.body.removeChild(u)}},[t]),a}const ure=R.createContext(null);function fDe({clientId:e,nonce:t,onScriptLoadSuccess:n,onScriptLoadError:r,children:a}){const i=dDe({nonce:t,onScriptLoadSuccess:n,onScriptLoadError:r}),o=R.useMemo(()=>({clientId:e,scriptLoadedSuccessfully:i}),[e,i]);return ze.createElement(ure.Provider,{value:o},a)}function pDe(){const e=R.useContext(ure);if(!e)throw new Error("Google OAuth components must be used within GoogleOAuthProvider");return e}function hDe({flow:e="implicit",scope:t="",onSuccess:n,onError:r,onNonOAuthError:a,overrideScope:i,state:o,...l}){const{clientId:u,scriptLoadedSuccessfully:d}=pDe(),f=R.useRef(),g=R.useRef(n);g.current=n;const y=R.useRef(r);y.current=r;const h=R.useRef(a);h.current=a,R.useEffect(()=>{var T,C;if(!d)return;const k=e==="implicit"?"initTokenClient":"initCodeClient",_=(C=(T=window==null?void 0:window.google)===null||T===void 0?void 0:T.accounts)===null||C===void 0?void 0:C.oauth2[k]({client_id:u,scope:i?t:`openid profile email ${t}`,callback:A=>{var P,N;if(A.error)return(P=y.current)===null||P===void 0?void 0:P.call(y,A);(N=g.current)===null||N===void 0||N.call(g,A)},error_callback:A=>{var P;(P=h.current)===null||P===void 0||P.call(h,A)},state:o,...l});f.current=_},[u,d,e,t,o]);const v=R.useCallback(T=>{var C;return(C=f.current)===null||C===void 0?void 0:C.requestAccessToken(T)},[]),E=R.useCallback(()=>{var T;return(T=f.current)===null||T===void 0?void 0:T.requestCode()},[]);return e==="implicit"?v:E}const cre=()=>w.jsxs("div",{className:"loader",id:"loader-4",children:[w.jsx("span",{}),w.jsx("span",{}),w.jsx("span",{})]});var LE;function Wi(e,t){if(!{}.hasOwnProperty.call(e,t))throw new TypeError("attempted to use private field on non-instance");return e}var mDe=0;function hy(e){return"__private_"+mDe+++"_"+e}const gDe=e=>{const t=Ho(),n=(e==null?void 0:e.ctx)??t??void 0,[r,a]=R.useState(!1),[i,o]=R.useState();return{...un({mutationFn:d=>(a(!1),Ah.Fetch({body:d,headers:e==null?void 0:e.headers},{creatorFn:e==null?void 0:e.creatorFn,qs:e==null?void 0:e.qs,ctx:n,onMessage:e==null?void 0:e.onMessage,overrideUrl:e==null?void 0:e.overrideUrl}).then(f=>(f.done.then(()=>{a(!0)}),o(f.response),f.response.result))),...e||{}}),isCompleted:r,response:i}};class Ah{}LE=Ah;Ah.URL="/passport/via-oauth";Ah.NewUrl=e=>Wo(LE.URL,void 0,e);Ah.Method="post";Ah.Fetch$=async(e,t,n,r)=>zo(r??LE.NewUrl(e),{method:LE.Method,...n||{}},t);Ah.Fetch=async(e,{creatorFn:t,qs:n,ctx:r,onMessage:a,overrideUrl:i}={creatorFn:o=>new Dv(o)})=>{t=t||(l=>new Dv(l));const o=await LE.Fetch$(n,r,e,i);return qo(o,l=>{const u=new so;return t&&u.setCreator(t),u.inject(l),u},a,e==null?void 0:e.signal)};Ah.Definition={name:"OauthAuthenticate",url:"/passport/via-oauth",method:"post",description:"When a token is got from a oauth service such as google, we send the token here to authenticate the user. To me seems this doesn't need to have 2FA or anything, so we return the session directly, or maybe there needs to be next step.",in:{fields:[{name:"token",description:"The token that Auth2 provider returned to the front-end, which will be used to validate the backend",type:"string"},{name:"service",description:"The service name, such as 'google' which later backend will use to authorize the token and create the user.",type:"string"}]},out:{envelope:"GResponse",fields:[{name:"session",type:"one",target:"UserSessionDto"},{name:"next",description:"The next possible action which is suggested.",type:"slice",primitive:"string"}]}};var dg=hy("token"),fg=hy("service"),ZA=hy("isJsonAppliable");class l0{get token(){return Wi(this,dg)[dg]}set token(t){Wi(this,dg)[dg]=String(t)}setToken(t){return this.token=t,this}get service(){return Wi(this,fg)[fg]}set service(t){Wi(this,fg)[fg]=String(t)}setService(t){return this.service=t,this}constructor(t=void 0){if(Object.defineProperty(this,ZA,{value:vDe}),Object.defineProperty(this,dg,{writable:!0,value:""}),Object.defineProperty(this,fg,{writable:!0,value:""}),t!=null)if(typeof t=="string")this.applyFromObject(JSON.parse(t));else if(Wi(this,ZA)[ZA](t))this.applyFromObject(t);else throw new Error("Instance cannot be created on an unknown value, check the content being passed. got: "+typeof t)}applyFromObject(t={}){const n=t;n.token!==void 0&&(this.token=n.token),n.service!==void 0&&(this.service=n.service)}toJSON(){return{token:Wi(this,dg)[dg],service:Wi(this,fg)[fg]}}toString(){return JSON.stringify(this)}static get Fields(){return{token:"token",service:"service"}}static from(t){return new l0(t)}static with(t){return new l0(t)}copyWith(t){return new l0({...this.toJSON(),...t})}clone(){return new l0(this.toJSON())}}function vDe(e){const t=globalThis,n=typeof t.Buffer<"u"&&typeof t.Buffer.isBuffer=="function"&&t.Buffer.isBuffer(e),r=typeof t.Blob<"u"&&e instanceof t.Blob;return e&&typeof e=="object"&&!Array.isArray(e)&&!n&&!(e instanceof ArrayBuffer)&&!r}var yd=hy("session"),pg=hy("next"),eN=hy("isJsonAppliable"),r1=hy("lateInitFields");class Dv{get session(){return Wi(this,yd)[yd]}set session(t){t instanceof Dr?Wi(this,yd)[yd]=t:Wi(this,yd)[yd]=new Dr(t)}setSession(t){return this.session=t,this}get next(){return Wi(this,pg)[pg]}set next(t){Wi(this,pg)[pg]=t}setNext(t){return this.next=t,this}constructor(t=void 0){if(Object.defineProperty(this,r1,{value:bDe}),Object.defineProperty(this,eN,{value:yDe}),Object.defineProperty(this,yd,{writable:!0,value:void 0}),Object.defineProperty(this,pg,{writable:!0,value:[]}),t==null){Wi(this,r1)[r1]();return}if(typeof t=="string")this.applyFromObject(JSON.parse(t));else if(Wi(this,eN)[eN](t))this.applyFromObject(t);else throw new Error("Instance cannot be created on an unknown value, check the content being passed. got: "+typeof t)}applyFromObject(t={}){const n=t;n.session!==void 0&&(this.session=n.session),n.next!==void 0&&(this.next=n.next),Wi(this,r1)[r1](t)}toJSON(){return{session:Wi(this,yd)[yd],next:Wi(this,pg)[pg]}}toString(){return JSON.stringify(this)}static get Fields(){return{session$:"session",get session(){return Pc("session",Dr.Fields)},next$:"next",get next(){return"next[:i]"}}}static from(t){return new Dv(t)}static with(t){return new Dv(t)}copyWith(t){return new Dv({...this.toJSON(),...t})}clone(){return new Dv(this.toJSON())}}function yDe(e){const t=globalThis,n=typeof t.Buffer<"u"&&typeof t.Buffer.isBuffer=="function"&&t.Buffer.isBuffer(e),r=typeof t.Blob<"u"&&e instanceof t.Blob;return e&&typeof e=="object"&&!Array.isArray(e)&&!n&&!(e instanceof ArrayBuffer)&&!r}function bDe(e={}){const t=e;t.session instanceof Dr||(this.session=new Dr(t.session||{}))}var Bs=(e=>(e.Email="email",e.Phone="phone",e.Google="google",e.Facebook="facebook",e))(Bs||{});const ST=()=>{const{setSession:e,selectUrw:t,selectedUrw:n}=R.useContext(it),{locale:r}=sr(),{replace:a}=xr();return{onComplete:o=>{var g,y;e(o.data.item.session),window.ReactNativeWebView&&window.ReactNativeWebView.postMessage(JSON.stringify(o.data));const u=new URLSearchParams(window.location.search).get("redirect"),d=sessionStorage.getItem("redirect_temporary");if(!((y=(g=o.data)==null?void 0:g.item.session)==null?void 0:y.token)){alert("Authentication has failed.");return}if(sessionStorage.removeItem("redirect_temporary"),sessionStorage.removeItem("workspace_type_id"),d)window.location.href=d;else if(u){const h=new URL(u);h.searchParams.set("session",JSON.stringify(o.data.item.session)),window.location.href=h.toString()}else{const h="/{locale}/dashboard".replace("{locale}",r||"en");a(h,h)}}}},wDe=e=>{R.useEffect(()=>{const t=new URLSearchParams(window.location.search),n=window.location.hash.indexOf("?"),r=n!==-1?new URLSearchParams(window.location.hash.slice(n)):new URLSearchParams;e.forEach(a=>{const i=t.get(a)||r.get(a);i&&sessionStorage.setItem(a,i)})},[e.join(",")])},SDe=({continueWithResult:e,facebookAppId:t})=>{Kt(Oa),R.useEffect(()=>{if(window.FB)return;const r=document.createElement("script");r.src="https://connect.facebook.net/en_US/sdk.js",r.async=!0,r.onload=()=>{window.FB.init({appId:t,cookie:!0,xfbml:!1,version:"v19.0"})},document.body.appendChild(r)},[]);const n=()=>{const r=window.FB;if(!r){alert("Facebook SDK not loaded");return}r.login(a=>{var i;console.log("Facebook:",a),(i=a.authResponse)!=null&&i.accessToken?e(a.authResponse.accessToken):alert("Facebook login failed")},{scope:"email,public_profile"})};return w.jsxs("button",{id:"using-facebook",type:"button",onClick:n,children:[w.jsx("img",{className:"button-icon",src:qs("/common/facebook.png")}),"Facebook"]})};var FE;function Gr(e,t){if(!{}.hasOwnProperty.call(e,t))throw new TypeError("attempted to use private field on non-instance");return e}var EDe=0;function pf(e){return"__private_"+EDe+++"_"+e}const dre=e=>{const t=Ho(),n=(e==null?void 0:e.ctx)??t??void 0,[r,a]=R.useState(!1),[i,o]=R.useState(),l=()=>(a(!1),Jd.Fetch({headers:e==null?void 0:e.headers},{creatorFn:e==null?void 0:e.creatorFn,qs:e==null?void 0:e.qs,ctx:n,onMessage:e==null?void 0:e.onMessage,overrideUrl:e==null?void 0:e.overrideUrl}).then(d=>(d.done.then(()=>{a(!0)}),o(d.response),d.response.result)));return{...jn({queryKey:[Jd.NewUrl(e==null?void 0:e.qs)],queryFn:l,...e||{}}),isCompleted:r,response:i}};class Jd{}FE=Jd;Jd.URL="/passports/available-methods";Jd.NewUrl=e=>Wo(FE.URL,void 0,e);Jd.Method="get";Jd.Fetch$=async(e,t,n,r)=>zo(r??FE.NewUrl(e),{method:FE.Method,...n||{}},t);Jd.Fetch=async(e,{creatorFn:t,qs:n,ctx:r,onMessage:a,overrideUrl:i}={creatorFn:o=>new sh(o)})=>{t=t||(l=>new sh(l));const o=await FE.Fetch$(n,r,e,i);return qo(o,l=>{const u=new so;return t&&u.setCreator(t),u.inject(l),u},a,e==null?void 0:e.signal)};Jd.Definition={name:"CheckPassportMethods",cliName:"check-passport-methods",url:"/passports/available-methods",method:"get",description:"Publicly available information to create the authentication form, and show users how they can signin or signup to the system. Based on the PassportMethod entities, it will compute the available methods for the user, considering their region (IP for example)",out:{envelope:"GResponse",fields:[{name:"email",type:"bool",default:!1},{name:"phone",type:"bool",default:!1},{name:"google",type:"bool",default:!1},{name:"facebook",type:"bool",default:!1},{name:"googleOAuthClientKey",type:"string"},{name:"facebookAppId",type:"string"},{name:"enabledRecaptcha2",type:"bool",default:!1},{name:"recaptcha2ClientKey",type:"string"}]}};var hg=pf("email"),mg=pf("phone"),gg=pf("google"),vg=pf("facebook"),yg=pf("googleOAuthClientKey"),bg=pf("facebookAppId"),wg=pf("enabledRecaptcha2"),Sg=pf("recaptcha2ClientKey"),tN=pf("isJsonAppliable");class sh{get email(){return Gr(this,hg)[hg]}set email(t){Gr(this,hg)[hg]=!!t}setEmail(t){return this.email=t,this}get phone(){return Gr(this,mg)[mg]}set phone(t){Gr(this,mg)[mg]=!!t}setPhone(t){return this.phone=t,this}get google(){return Gr(this,gg)[gg]}set google(t){Gr(this,gg)[gg]=!!t}setGoogle(t){return this.google=t,this}get facebook(){return Gr(this,vg)[vg]}set facebook(t){Gr(this,vg)[vg]=!!t}setFacebook(t){return this.facebook=t,this}get googleOAuthClientKey(){return Gr(this,yg)[yg]}set googleOAuthClientKey(t){Gr(this,yg)[yg]=String(t)}setGoogleOAuthClientKey(t){return this.googleOAuthClientKey=t,this}get facebookAppId(){return Gr(this,bg)[bg]}set facebookAppId(t){Gr(this,bg)[bg]=String(t)}setFacebookAppId(t){return this.facebookAppId=t,this}get enabledRecaptcha2(){return Gr(this,wg)[wg]}set enabledRecaptcha2(t){Gr(this,wg)[wg]=!!t}setEnabledRecaptcha2(t){return this.enabledRecaptcha2=t,this}get recaptcha2ClientKey(){return Gr(this,Sg)[Sg]}set recaptcha2ClientKey(t){Gr(this,Sg)[Sg]=String(t)}setRecaptcha2ClientKey(t){return this.recaptcha2ClientKey=t,this}constructor(t=void 0){if(Object.defineProperty(this,tN,{value:TDe}),Object.defineProperty(this,hg,{writable:!0,value:!1}),Object.defineProperty(this,mg,{writable:!0,value:!1}),Object.defineProperty(this,gg,{writable:!0,value:!1}),Object.defineProperty(this,vg,{writable:!0,value:!1}),Object.defineProperty(this,yg,{writable:!0,value:""}),Object.defineProperty(this,bg,{writable:!0,value:""}),Object.defineProperty(this,wg,{writable:!0,value:!1}),Object.defineProperty(this,Sg,{writable:!0,value:""}),t!=null)if(typeof t=="string")this.applyFromObject(JSON.parse(t));else if(Gr(this,tN)[tN](t))this.applyFromObject(t);else throw new Error("Instance cannot be created on an unknown value, check the content being passed. got: "+typeof t)}applyFromObject(t={}){const n=t;n.email!==void 0&&(this.email=n.email),n.phone!==void 0&&(this.phone=n.phone),n.google!==void 0&&(this.google=n.google),n.facebook!==void 0&&(this.facebook=n.facebook),n.googleOAuthClientKey!==void 0&&(this.googleOAuthClientKey=n.googleOAuthClientKey),n.facebookAppId!==void 0&&(this.facebookAppId=n.facebookAppId),n.enabledRecaptcha2!==void 0&&(this.enabledRecaptcha2=n.enabledRecaptcha2),n.recaptcha2ClientKey!==void 0&&(this.recaptcha2ClientKey=n.recaptcha2ClientKey)}toJSON(){return{email:Gr(this,hg)[hg],phone:Gr(this,mg)[mg],google:Gr(this,gg)[gg],facebook:Gr(this,vg)[vg],googleOAuthClientKey:Gr(this,yg)[yg],facebookAppId:Gr(this,bg)[bg],enabledRecaptcha2:Gr(this,wg)[wg],recaptcha2ClientKey:Gr(this,Sg)[Sg]}}toString(){return JSON.stringify(this)}static get Fields(){return{email:"email",phone:"phone",google:"google",facebook:"facebook",googleOAuthClientKey:"googleOAuthClientKey",facebookAppId:"facebookAppId",enabledRecaptcha2:"enabledRecaptcha2",recaptcha2ClientKey:"recaptcha2ClientKey"}}static from(t){return new sh(t)}static with(t){return new sh(t)}copyWith(t){return new sh({...this.toJSON(),...t})}clone(){return new sh(this.toJSON())}}function TDe(e){const t=globalThis,n=typeof t.Buffer<"u"&&typeof t.Buffer.isBuffer=="function"&&t.Buffer.isBuffer(e),r=typeof t.Blob<"u"&&e instanceof t.Blob;return e&&typeof e=="object"&&!Array.isArray(e)&&!n&&!(e instanceof ArrayBuffer)&&!r}const CDe=()=>{var f,g;const e=At(),{locale:t}=sr(),{push:n}=xr(),r=R.useRef(),a=dre({});wDe(["redirect_temporary","workspace_type_id"]);const[i,o]=R.useState(void 0),l=i?Object.values(i).filter(Boolean).length:void 0,u=(g=(f=a.data)==null?void 0:f.data)==null?void 0:g.item,d=(y,h=!0)=>{switch(y){case Bs.Email:n(`/${t}/selfservice/email`,void 0,{canGoBack:h});break;case Bs.Phone:n(`/${t}/selfservice/phone`,void 0,{canGoBack:h});break}};return R.useEffect(()=>{if(!u)return;const y={email:u.email,google:u.google,facebook:u.facebook,phone:u.phone,googleOAuthClientKey:u.googleOAuthClientKey,facebookAppId:u.facebookAppId};Object.values(y).filter(Boolean).length===1&&(y.email&&d(Bs.Email,!1),y.phone&&d(Bs.Phone,!1),y.google&&d(Bs.Google,!1),y.facebook&&d(Bs.Facebook,!1)),o(y)},[u]),{t:e,formik:r,onSelect:d,availableOptions:i,passportMethodsQuery:a,isLoadingMethods:a.isLoading,totalAvailableMethods:l}},kDe=()=>{const{onSelect:e,availableOptions:t,totalAvailableMethods:n,isLoadingMethods:r,passportMethodsQuery:a}=CDe(),i=uf({initialValues:{},onSubmit:()=>{}});return a.isError||a.error?w.jsx("div",{className:"signin-form-container",children:w.jsx(Ll,{query:a})}):n===void 0||r?w.jsx("div",{className:"signin-form-container",children:w.jsx(cre,{})}):n===0?w.jsx("div",{className:"signin-form-container",children:w.jsx(_De,{})}):w.jsx("div",{className:"signin-form-container",children:t.googleOAuthClientKey?w.jsx(fDe,{clientId:t.googleOAuthClientKey,children:w.jsx(Bz,{availableOptions:t,onSelect:e,form:i})}):w.jsx(Bz,{availableOptions:t,onSelect:e,form:i})})},Bz=({form:e,onSelect:t,availableOptions:n})=>{const{mutateAsync:r}=gDe({}),{setSession:a}=R.useContext(it),{locale:i}=sr(),{replace:o}=xr(),l=(d,f)=>{r(new l0({service:f,token:d})).then(g=>{var y,h,v;a((h=(y=g.data)==null?void 0:y.item)==null?void 0:h.session),window.ReactNativeWebView&&window.ReactNativeWebView.postMessage(JSON.stringify((v=g.data)==null?void 0:v.item));{const E=kr.DEFAULT_ROUTE.replace("{locale}",i||"en");o(E,E)}}).catch(g=>{alert(g)})},u=Kt(Oa);return w.jsxs("form",{onSubmit:d=>{d.preventDefault(),e.submitForm()},children:[w.jsx("h1",{children:u.welcomeBack}),w.jsxs("p",{children:[u.welcomeBackDescription," "]}),w.jsxs("div",{role:"group","aria-label":"Login method",className:"flex gap-2 login-option-buttons",children:[n.email?w.jsx("button",{id:"using-email",type:"button",onClick:()=>t(Bs.Email),children:u.emailMethod}):null,n.phone?w.jsx("button",{id:"using-phone",type:"button",onClick:()=>t(Bs.Phone),children:u.phoneMethod}):null,n.facebook?w.jsx(SDe,{facebookAppId:n.facebookAppId,continueWithResult:d=>l(d,"facebook")}):null,n.google?w.jsx(xDe,{continueWithResult:d=>l(d,"google")}):null]})]})},xDe=({continueWithResult:e})=>{const t=Kt(Oa),n=hDe({onSuccess:r=>{e(r.access_token)},scope:["https://www.googleapis.com/auth/userinfo.profile"].join(" ")});return w.jsx(w.Fragment,{children:w.jsxs("button",{id:"using-google",type:"button",onClick:()=>n(),children:[w.jsx("img",{className:"button-icon",src:qs("/common/google.png")}),t.google]})})},_De=()=>{const e=Kt(Oa);return w.jsxs(w.Fragment,{children:[w.jsx("h1",{children:e.noAuthenticationMethod}),w.jsx("p",{children:e.noAuthenticationMethodDescription})]})};var ODe=["sitekey","onChange","theme","type","tabindex","onExpired","onErrored","size","stoken","grecaptcha","badge","hl","isolated"];function eF(){return eF=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0)&&(n[a]=e[a]);return n}function Vk(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function PDe(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,tF(e,t)}function tF(e,t){return tF=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,a){return r.__proto__=a,r},tF(e,t)}var uO=(function(e){PDe(t,e);function t(){var r;return r=e.call(this)||this,r.handleExpired=r.handleExpired.bind(Vk(r)),r.handleErrored=r.handleErrored.bind(Vk(r)),r.handleChange=r.handleChange.bind(Vk(r)),r.handleRecaptchaRef=r.handleRecaptchaRef.bind(Vk(r)),r}var n=t.prototype;return n.getCaptchaFunction=function(a){return this.props.grecaptcha?this.props.grecaptcha.enterprise?this.props.grecaptcha.enterprise[a]:this.props.grecaptcha[a]:null},n.getValue=function(){var a=this.getCaptchaFunction("getResponse");return a&&this._widgetId!==void 0?a(this._widgetId):null},n.getWidgetId=function(){return this.props.grecaptcha&&this._widgetId!==void 0?this._widgetId:null},n.execute=function(){var a=this.getCaptchaFunction("execute");if(a&&this._widgetId!==void 0)return a(this._widgetId);this._executeRequested=!0},n.executeAsync=function(){var a=this;return new Promise(function(i,o){a.executionResolve=i,a.executionReject=o,a.execute()})},n.reset=function(){var a=this.getCaptchaFunction("reset");a&&this._widgetId!==void 0&&a(this._widgetId)},n.forceReset=function(){var a=this.getCaptchaFunction("reset");a&&a()},n.handleExpired=function(){this.props.onExpired?this.props.onExpired():this.handleChange(null)},n.handleErrored=function(){this.props.onErrored&&this.props.onErrored(),this.executionReject&&(this.executionReject(),delete this.executionResolve,delete this.executionReject)},n.handleChange=function(a){this.props.onChange&&this.props.onChange(a),this.executionResolve&&(this.executionResolve(a),delete this.executionReject,delete this.executionResolve)},n.explicitRender=function(){var a=this.getCaptchaFunction("render");if(a&&this._widgetId===void 0){var i=document.createElement("div");this._widgetId=a(i,{sitekey:this.props.sitekey,callback:this.handleChange,theme:this.props.theme,type:this.props.type,tabindex:this.props.tabindex,"expired-callback":this.handleExpired,"error-callback":this.handleErrored,size:this.props.size,stoken:this.props.stoken,hl:this.props.hl,badge:this.props.badge,isolated:this.props.isolated}),this.captcha.appendChild(i)}this._executeRequested&&this.props.grecaptcha&&this._widgetId!==void 0&&(this._executeRequested=!1,this.execute())},n.componentDidMount=function(){this.explicitRender()},n.componentDidUpdate=function(){this.explicitRender()},n.handleRecaptchaRef=function(a){this.captcha=a},n.render=function(){var a=this.props;a.sitekey,a.onChange,a.theme,a.type,a.tabindex,a.onExpired,a.onErrored,a.size,a.stoken,a.grecaptcha,a.badge,a.hl,a.isolated;var i=RDe(a,ODe);return R.createElement("div",eF({},i,{ref:this.handleRecaptchaRef}))},t})(R.Component);uO.displayName="ReCAPTCHA";uO.propTypes={sitekey:Ye.string.isRequired,onChange:Ye.func,grecaptcha:Ye.object,theme:Ye.oneOf(["dark","light"]),type:Ye.oneOf(["image","audio"]),tabindex:Ye.number,onExpired:Ye.func,onErrored:Ye.func,size:Ye.oneOf(["compact","normal","invisible"]),stoken:Ye.string,hl:Ye.string,badge:Ye.oneOf(["bottomright","bottomleft","inline"]),isolated:Ye.bool};uO.defaultProps={onChange:function(){},theme:"light",type:"image",tabindex:0,size:"normal",badge:"bottomright"};function nF(){return nF=Object.assign||function(e){for(var t=1;t=0)&&(n[a]=e[a]);return n}function NDe(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}var vu={},MDe=0;function IDe(e,t){return t=t||{},function(r){var a=r.displayName||r.name||"Component",i=(function(l){NDe(u,l);function u(f,g){var y;return y=l.call(this,f,g)||this,y.state={},y.__scriptURL="",y}var d=u.prototype;return d.asyncScriptLoaderGetScriptLoaderID=function(){return this.__scriptLoaderID||(this.__scriptLoaderID="async-script-loader-"+MDe++),this.__scriptLoaderID},d.setupScriptURL=function(){return this.__scriptURL=typeof e=="function"?e():e,this.__scriptURL},d.asyncScriptLoaderHandleLoad=function(g){var y=this;this.setState(g,function(){return y.props.asyncScriptOnLoad&&y.props.asyncScriptOnLoad(y.state)})},d.asyncScriptLoaderTriggerOnScriptLoaded=function(){var g=vu[this.__scriptURL];if(!g||!g.loaded)throw new Error("Script is not loaded.");for(var y in g.observers)g.observers[y](g);delete window[t.callbackName]},d.componentDidMount=function(){var g=this,y=this.setupScriptURL(),h=this.asyncScriptLoaderGetScriptLoaderID(),v=t,E=v.globalName,T=v.callbackName,C=v.scriptId;if(E&&typeof window[E]<"u"&&(vu[y]={loaded:!0,observers:{}}),vu[y]){var k=vu[y];if(k&&(k.loaded||k.errored)){this.asyncScriptLoaderHandleLoad(k);return}k.observers[h]=function(I){return g.asyncScriptLoaderHandleLoad(I)};return}var _={};_[h]=function(I){return g.asyncScriptLoaderHandleLoad(I)},vu[y]={loaded:!1,observers:_};var A=document.createElement("script");A.src=y,A.async=!0;for(var P in t.attributes)A.setAttribute(P,t.attributes[P]);C&&(A.id=C);var N=function(L){if(vu[y]){var j=vu[y],z=j.observers;for(var Q in z)L(z[Q])&&delete z[Q]}};T&&typeof window<"u"&&(window[T]=function(){return g.asyncScriptLoaderTriggerOnScriptLoaded()}),A.onload=function(){var I=vu[y];I&&(I.loaded=!0,N(function(L){return T?!1:(L(I),!0)}))},A.onerror=function(){var I=vu[y];I&&(I.errored=!0,N(function(L){return L(I),!0}))},document.body.appendChild(A)},d.componentWillUnmount=function(){var g=this.__scriptURL;if(t.removeOnUnmount===!0)for(var y=document.getElementsByTagName("script"),h=0;h-1&&y[h].parentNode&&y[h].parentNode.removeChild(y[h]);var v=vu[g];v&&(delete v.observers[this.asyncScriptLoaderGetScriptLoaderID()],t.removeOnUnmount===!0&&delete vu[g])},d.render=function(){var g=t.globalName,y=this.props;y.asyncScriptOnLoad;var h=y.forwardedRef,v=ADe(y,["asyncScriptOnLoad","forwardedRef"]);return g&&typeof window<"u"&&(v[g]=typeof window[g]<"u"?window[g]:void 0),v.ref=h,R.createElement(r,v)},u})(R.Component),o=R.forwardRef(function(l,u){return R.createElement(i,nF({},l,{forwardedRef:u}))});return o.displayName="AsyncScriptLoader("+a+")",o.propTypes={asyncScriptOnLoad:Ye.func},Lfe(o,r)}}var rF="onloadcallback",DDe="grecaptcha";function aF(){return typeof window<"u"&&window.recaptchaOptions||{}}function $De(){var e=aF(),t=e.useRecaptchaNet?"recaptcha.net":"www.google.com";return e.enterprise?"https://"+t+"/recaptcha/enterprise.js?onload="+rF+"&render=explicit":"https://"+t+"/recaptcha/api.js?onload="+rF+"&render=explicit"}const LDe=IDe($De,{callbackName:rF,globalName:DDe,attributes:aF().nonce?{nonce:aF().nonce}:{}})(uO),FDe=({sitekey:e,enabled:t,invisible:n})=>{n=n===void 0?!0:n;const[r,a]=R.useState(),[i,o]=R.useState(!1),l=R.createRef(),u=R.useRef("");return R.useEffect(()=>{var g,y;t&&l.current&&((g=l.current)==null||g.execute(),(y=l.current)==null||y.reset())},[t,l.current]),R.useEffect(()=>{setTimeout(()=>{u.current||o(!0)},2e3)},[]),{value:r,Component:()=>!t||!e?null:w.jsx(w.Fragment,{children:w.jsx(LDe,{sitekey:e,size:n&&!i?"invisible":void 0,ref:l,onChange:g=>{a(g),u.current=g}})}),LegalNotice:()=>!n||!t?null:w.jsxs("div",{className:"mt-5 recaptcha-closure",children:["This site is protected by reCAPTCHA and the Google",w.jsxs("a",{target:"_blank",href:"https://policies.google.com/privacy",children:[" ","Privacy Policy"," "]})," ","and",w.jsxs("a",{target:"_blank",href:"https://policies.google.com/terms",children:[" ","Terms of Service"," "]})," ","apply."]})}};var jE,B1,Yp,Kp,Xp,Qp,Gk;function wr(e,t){if(!{}.hasOwnProperty.call(e,t))throw new TypeError("attempted to use private field on non-instance");return e}var jDe=0;function Rl(e){return"__private_"+jDe+++"_"+e}const UDe=e=>{const n=Ho()??void 0,[r,a]=R.useState(!1),[i,o]=R.useState();return{...un({mutationFn:d=>(a(!1),Nh.Fetch({body:d,headers:e==null?void 0:e.headers},{creatorFn:e==null?void 0:e.creatorFn,qs:e==null?void 0:e.qs,ctx:n,onMessage:e==null?void 0:e.onMessage,overrideUrl:e==null?void 0:e.overrideUrl}).then(f=>(f.done.then(()=>{a(!0)}),o(f.response),f.response.result)))}),isCompleted:r,response:i}};class Nh{}jE=Nh;Nh.URL="/workspace/passport/check";Nh.NewUrl=e=>Wo(jE.URL,void 0,e);Nh.Method="post";Nh.Fetch$=async(e,t,n,r)=>zo(r??jE.NewUrl(e),{method:jE.Method,...n||{}},t);Nh.Fetch=async(e,{creatorFn:t,qs:n,ctx:r,onMessage:a,overrideUrl:i}={creatorFn:o=>new _l(o)})=>{t=t||(l=>new _l(l));const o=await jE.Fetch$(n,r,e,i);return qo(o,l=>{const u=new so;return t&&u.setCreator(t),u.inject(l),u},a,e==null?void 0:e.signal)};Nh.Definition={name:"CheckClassicPassport",cliName:"ccp",url:"/workspace/passport/check",method:"post",description:"Checks if a classic passport (email, phone) exists or not, used in multi step authentication",in:{fields:[{name:"value",type:"string",tags:{validate:"required"}},{name:"securityToken",description:"This can be the value of ReCaptcha2, ReCaptcha3, or generate security image or voice for verification. Will be used based on the configuration.",type:"string"}]},out:{envelope:"GResponse",fields:[{name:"next",description:"The next possible action which is suggested.",type:"slice",primitive:"string"},{name:"flags",description:"Extra information that can be useful actually when doing onboarding. Make sure sensitive information doesn't go out.",type:"slice",primitive:"string"},{name:"otpInfo",description:"If the endpoint automatically triggers a send otp, then it would be holding that information, Also the otp information can become available.",type:"object?",fields:[{name:"suspendUntil",type:"int64"},{name:"validUntil",type:"int64"},{name:"blockedUntil",type:"int64"},{name:"secondsToUnblock",description:"The amount of time left to unblock for next request",type:"int64"}]}]}};var Eg=Rl("value"),Tg=Rl("securityToken"),nN=Rl("isJsonAppliable");class $v{get value(){return wr(this,Eg)[Eg]}set value(t){wr(this,Eg)[Eg]=String(t)}setValue(t){return this.value=t,this}get securityToken(){return wr(this,Tg)[Tg]}set securityToken(t){wr(this,Tg)[Tg]=String(t)}setSecurityToken(t){return this.securityToken=t,this}constructor(t=void 0){if(Object.defineProperty(this,nN,{value:BDe}),Object.defineProperty(this,Eg,{writable:!0,value:""}),Object.defineProperty(this,Tg,{writable:!0,value:""}),t!=null)if(typeof t=="string")this.applyFromObject(JSON.parse(t));else if(wr(this,nN)[nN](t))this.applyFromObject(t);else throw new Error("Instance cannot be created on an unknown value, check the content being passed. got: "+typeof t)}applyFromObject(t={}){const n=t;n.value!==void 0&&(this.value=n.value),n.securityToken!==void 0&&(this.securityToken=n.securityToken)}toJSON(){return{value:wr(this,Eg)[Eg],securityToken:wr(this,Tg)[Tg]}}toString(){return JSON.stringify(this)}static get Fields(){return{value:"value",securityToken:"securityToken"}}static from(t){return new $v(t)}static with(t){return new $v(t)}copyWith(t){return new $v({...this.toJSON(),...t})}clone(){return new $v(this.toJSON())}}function BDe(e){const t=globalThis,n=typeof t.Buffer<"u"&&typeof t.Buffer.isBuffer=="function"&&t.Buffer.isBuffer(e),r=typeof t.Blob<"u"&&e instanceof t.Blob;return e&&typeof e=="object"&&!Array.isArray(e)&&!n&&!(e instanceof ArrayBuffer)&&!r}var Cg=Rl("next"),kg=Rl("flags"),bd=Rl("otpInfo"),rN=Rl("isJsonAppliable");class _l{get next(){return wr(this,Cg)[Cg]}set next(t){wr(this,Cg)[Cg]=t}setNext(t){return this.next=t,this}get flags(){return wr(this,kg)[kg]}set flags(t){wr(this,kg)[kg]=t}setFlags(t){return this.flags=t,this}get otpInfo(){return wr(this,bd)[bd]}set otpInfo(t){t instanceof _l.OtpInfo?wr(this,bd)[bd]=t:wr(this,bd)[bd]=new _l.OtpInfo(t)}setOtpInfo(t){return this.otpInfo=t,this}constructor(t=void 0){if(Object.defineProperty(this,rN,{value:WDe}),Object.defineProperty(this,Cg,{writable:!0,value:[]}),Object.defineProperty(this,kg,{writable:!0,value:[]}),Object.defineProperty(this,bd,{writable:!0,value:void 0}),t!=null)if(typeof t=="string")this.applyFromObject(JSON.parse(t));else if(wr(this,rN)[rN](t))this.applyFromObject(t);else throw new Error("Instance cannot be created on an unknown value, check the content being passed. got: "+typeof t)}applyFromObject(t={}){const n=t;n.next!==void 0&&(this.next=n.next),n.flags!==void 0&&(this.flags=n.flags),n.otpInfo!==void 0&&(this.otpInfo=n.otpInfo)}toJSON(){return{next:wr(this,Cg)[Cg],flags:wr(this,kg)[kg],otpInfo:wr(this,bd)[bd]}}toString(){return JSON.stringify(this)}static get Fields(){return{next$:"next",get next(){return"next[:i]"},flags$:"flags",get flags(){return"flags[:i]"},otpInfo$:"otpInfo",get otpInfo(){return Pc("otpInfo",_l.OtpInfo.Fields)}}}static from(t){return new _l(t)}static with(t){return new _l(t)}copyWith(t){return new _l({...this.toJSON(),...t})}clone(){return new _l(this.toJSON())}}B1=_l;function WDe(e){const t=globalThis,n=typeof t.Buffer<"u"&&typeof t.Buffer.isBuffer=="function"&&t.Buffer.isBuffer(e),r=typeof t.Blob<"u"&&e instanceof t.Blob;return e&&typeof e=="object"&&!Array.isArray(e)&&!n&&!(e instanceof ArrayBuffer)&&!r}_l.OtpInfo=(Yp=Rl("suspendUntil"),Kp=Rl("validUntil"),Xp=Rl("blockedUntil"),Qp=Rl("secondsToUnblock"),Gk=Rl("isJsonAppliable"),class{get suspendUntil(){return wr(this,Yp)[Yp]}set suspendUntil(t){const r=typeof t=="number"?t:Number(t);Number.isNaN(r)||(wr(this,Yp)[Yp]=r)}setSuspendUntil(t){return this.suspendUntil=t,this}get validUntil(){return wr(this,Kp)[Kp]}set validUntil(t){const r=typeof t=="number"?t:Number(t);Number.isNaN(r)||(wr(this,Kp)[Kp]=r)}setValidUntil(t){return this.validUntil=t,this}get blockedUntil(){return wr(this,Xp)[Xp]}set blockedUntil(t){const r=typeof t=="number"?t:Number(t);Number.isNaN(r)||(wr(this,Xp)[Xp]=r)}setBlockedUntil(t){return this.blockedUntil=t,this}get secondsToUnblock(){return wr(this,Qp)[Qp]}set secondsToUnblock(t){const r=typeof t=="number"?t:Number(t);Number.isNaN(r)||(wr(this,Qp)[Qp]=r)}setSecondsToUnblock(t){return this.secondsToUnblock=t,this}constructor(t=void 0){if(Object.defineProperty(this,Gk,{value:zDe}),Object.defineProperty(this,Yp,{writable:!0,value:0}),Object.defineProperty(this,Kp,{writable:!0,value:0}),Object.defineProperty(this,Xp,{writable:!0,value:0}),Object.defineProperty(this,Qp,{writable:!0,value:0}),t!=null)if(typeof t=="string")this.applyFromObject(JSON.parse(t));else if(wr(this,Gk)[Gk](t))this.applyFromObject(t);else throw new Error("Instance cannot be created on an unknown value, check the content being passed. got: "+typeof t)}applyFromObject(t={}){const n=t;n.suspendUntil!==void 0&&(this.suspendUntil=n.suspendUntil),n.validUntil!==void 0&&(this.validUntil=n.validUntil),n.blockedUntil!==void 0&&(this.blockedUntil=n.blockedUntil),n.secondsToUnblock!==void 0&&(this.secondsToUnblock=n.secondsToUnblock)}toJSON(){return{suspendUntil:wr(this,Yp)[Yp],validUntil:wr(this,Kp)[Kp],blockedUntil:wr(this,Xp)[Xp],secondsToUnblock:wr(this,Qp)[Qp]}}toString(){return JSON.stringify(this)}static get Fields(){return{suspendUntil:"suspendUntil",validUntil:"validUntil",blockedUntil:"blockedUntil",secondsToUnblock:"secondsToUnblock"}}static from(t){return new B1.OtpInfo(t)}static with(t){return new B1.OtpInfo(t)}copyWith(t){return new B1.OtpInfo({...this.toJSON(),...t})}clone(){return new B1.OtpInfo(this.toJSON())}});function zDe(e){const t=globalThis,n=typeof t.Buffer<"u"&&typeof t.Buffer.isBuffer=="function"&&t.Buffer.isBuffer(e),r=typeof t.Blob<"u"&&e instanceof t.Blob;return e&&typeof e=="object"&&!Array.isArray(e)&&!n&&!(e instanceof ArrayBuffer)&&!r}const qDe=({method:e})=>{var k,_,A;const t=Kt(Oa),{goBack:n,push:r,state:a}=xr(),{locale:i}=sr(),o=UDe(),l=(a==null?void 0:a.canGoBack)!==!1;let u=!1,d="";const{data:f}=dre({});f instanceof so&&f.data.item instanceof sh&&(u=(k=f==null?void 0:f.data)==null?void 0:k.item.enabledRecaptcha2,d=(A=(_=f==null?void 0:f.data)==null?void 0:_.item)==null?void 0:A.recaptcha2ClientKey);const g=P=>{o.mutateAsync(new $v(P)).then(N=>{var j;const{next:I,flags:L}=(j=N==null?void 0:N.data)==null?void 0:j.item;I.includes("otp")&&I.length===1?r(`/${i}/selfservice/otp`,void 0,{value:P.value,type:e}):I.includes("signin-with-password")?r(`/${i}/selfservice/password`,void 0,{value:P.value,next:I,canContinueOnOtp:I==null?void 0:I.includes("otp"),flags:L}):I.includes("create-with-password")&&r(`/${i}/selfservice/complete`,void 0,{value:P.value,type:e,next:I,flags:L})}).catch(N=>{y==null||y.setErrors(z0(N))})},y=uf({initialValues:{},onSubmit:g});let h=t.continueWithEmail,v=t.continueWithEmailDescription;e==="phone"&&(h=t.continueWithPhone,v=t.continueWithPhoneDescription);const{Component:E,LegalNotice:T,value:C}=FDe({enabled:u,sitekey:d});return R.useEffect(()=>{!u||!C||y.setFieldValue($v.Fields.securityToken,C)},[C]),{title:h,mutation:o,canGoBack:l,form:y,enabledRecaptcha2:u,recaptcha2ClientKey:d,description:v,Recaptcha:E,LegalNotice:T,s:t,submit:g,goBack:n}};var UE;function Or(e,t){if(!{}.hasOwnProperty.call(e,t))throw new TypeError("attempted to use private field on non-instance");return e}var HDe=0;function Mu(e){return"__private_"+HDe+++"_"+e}const fre=e=>{const n=Ho()??void 0,[r,a]=R.useState(!1),[i,o]=R.useState();return{...un({mutationFn:d=>(a(!1),Mh.Fetch({body:d,headers:e==null?void 0:e.headers},{creatorFn:e==null?void 0:e.creatorFn,qs:e==null?void 0:e.qs,ctx:n,onMessage:e==null?void 0:e.onMessage,overrideUrl:e==null?void 0:e.overrideUrl}).then(f=>(f.done.then(()=>{a(!0)}),o(f.response),f.response.result)))}),isCompleted:r,response:i}};class Mh{}UE=Mh;Mh.URL="/passports/signin/classic";Mh.NewUrl=e=>Wo(UE.URL,void 0,e);Mh.Method="post";Mh.Fetch$=async(e,t,n,r)=>zo(r??UE.NewUrl(e),{method:UE.Method,...n||{}},t);Mh.Fetch=async(e,{creatorFn:t,qs:n,ctx:r,onMessage:a,overrideUrl:i}={creatorFn:o=>new Lv(o)})=>{t=t||(l=>new Lv(l));const o=await UE.Fetch$(n,r,e,i);return qo(o,l=>{const u=new so;return t&&u.setCreator(t),u.inject(l),u},a,e==null?void 0:e.signal)};Mh.Definition={name:"ClassicSignin",cliName:"in",url:"/passports/signin/classic",method:"post",description:"Signin publicly to and account using class passports (email, password)",in:{fields:[{name:"value",type:"string",tags:{validate:"required"}},{name:"password",type:"string",tags:{validate:"required"}},{name:"totpCode",description:"Accepts login with totp code. If enabled, first login would return a success response with next[enter-totp] value and ui can understand that user needs to be navigated into the screen other screen.",type:"string"},{name:"sessionSecret",description:"Session secret when logging in to the application requires more steps to complete.",type:"string"}]},out:{envelope:"GResponse",fields:[{name:"session",type:"one",target:"UserSessionDto"},{name:"next",description:"The next possible action which is suggested.",type:"slice",primitive:"string"},{name:"totpUrl",description:"In case the account doesn't have totp, but enforced by installation, this value will contain the link",type:"string"},{name:"sessionSecret",description:"Returns a secret session if the authentication requires more steps.",type:"string"}]}};var xg=Mu("value"),_g=Mu("password"),Og=Mu("totpCode"),Rg=Mu("sessionSecret"),aN=Mu("isJsonAppliable");class Cu{get value(){return Or(this,xg)[xg]}set value(t){Or(this,xg)[xg]=String(t)}setValue(t){return this.value=t,this}get password(){return Or(this,_g)[_g]}set password(t){Or(this,_g)[_g]=String(t)}setPassword(t){return this.password=t,this}get totpCode(){return Or(this,Og)[Og]}set totpCode(t){Or(this,Og)[Og]=String(t)}setTotpCode(t){return this.totpCode=t,this}get sessionSecret(){return Or(this,Rg)[Rg]}set sessionSecret(t){Or(this,Rg)[Rg]=String(t)}setSessionSecret(t){return this.sessionSecret=t,this}constructor(t=void 0){if(Object.defineProperty(this,aN,{value:VDe}),Object.defineProperty(this,xg,{writable:!0,value:""}),Object.defineProperty(this,_g,{writable:!0,value:""}),Object.defineProperty(this,Og,{writable:!0,value:""}),Object.defineProperty(this,Rg,{writable:!0,value:""}),t!=null)if(typeof t=="string")this.applyFromObject(JSON.parse(t));else if(Or(this,aN)[aN](t))this.applyFromObject(t);else throw new Error("Instance cannot be created on an unknown value, check the content being passed. got: "+typeof t)}applyFromObject(t={}){const n=t;n.value!==void 0&&(this.value=n.value),n.password!==void 0&&(this.password=n.password),n.totpCode!==void 0&&(this.totpCode=n.totpCode),n.sessionSecret!==void 0&&(this.sessionSecret=n.sessionSecret)}toJSON(){return{value:Or(this,xg)[xg],password:Or(this,_g)[_g],totpCode:Or(this,Og)[Og],sessionSecret:Or(this,Rg)[Rg]}}toString(){return JSON.stringify(this)}static get Fields(){return{value:"value",password:"password",totpCode:"totpCode",sessionSecret:"sessionSecret"}}static from(t){return new Cu(t)}static with(t){return new Cu(t)}copyWith(t){return new Cu({...this.toJSON(),...t})}clone(){return new Cu(this.toJSON())}}function VDe(e){const t=globalThis,n=typeof t.Buffer<"u"&&typeof t.Buffer.isBuffer=="function"&&t.Buffer.isBuffer(e),r=typeof t.Blob<"u"&&e instanceof t.Blob;return e&&typeof e=="object"&&!Array.isArray(e)&&!n&&!(e instanceof ArrayBuffer)&&!r}var wd=Mu("session"),Pg=Mu("next"),Ag=Mu("totpUrl"),Ng=Mu("sessionSecret"),iN=Mu("isJsonAppliable"),a1=Mu("lateInitFields");class Lv{get session(){return Or(this,wd)[wd]}set session(t){t instanceof Dr?Or(this,wd)[wd]=t:Or(this,wd)[wd]=new Dr(t)}setSession(t){return this.session=t,this}get next(){return Or(this,Pg)[Pg]}set next(t){Or(this,Pg)[Pg]=t}setNext(t){return this.next=t,this}get totpUrl(){return Or(this,Ag)[Ag]}set totpUrl(t){Or(this,Ag)[Ag]=String(t)}setTotpUrl(t){return this.totpUrl=t,this}get sessionSecret(){return Or(this,Ng)[Ng]}set sessionSecret(t){Or(this,Ng)[Ng]=String(t)}setSessionSecret(t){return this.sessionSecret=t,this}constructor(t=void 0){if(Object.defineProperty(this,a1,{value:YDe}),Object.defineProperty(this,iN,{value:GDe}),Object.defineProperty(this,wd,{writable:!0,value:void 0}),Object.defineProperty(this,Pg,{writable:!0,value:[]}),Object.defineProperty(this,Ag,{writable:!0,value:""}),Object.defineProperty(this,Ng,{writable:!0,value:""}),t==null){Or(this,a1)[a1]();return}if(typeof t=="string")this.applyFromObject(JSON.parse(t));else if(Or(this,iN)[iN](t))this.applyFromObject(t);else throw new Error("Instance cannot be created on an unknown value, check the content being passed. got: "+typeof t)}applyFromObject(t={}){const n=t;n.session!==void 0&&(this.session=n.session),n.next!==void 0&&(this.next=n.next),n.totpUrl!==void 0&&(this.totpUrl=n.totpUrl),n.sessionSecret!==void 0&&(this.sessionSecret=n.sessionSecret),Or(this,a1)[a1](t)}toJSON(){return{session:Or(this,wd)[wd],next:Or(this,Pg)[Pg],totpUrl:Or(this,Ag)[Ag],sessionSecret:Or(this,Ng)[Ng]}}toString(){return JSON.stringify(this)}static get Fields(){return{session$:"session",get session(){return Pc("session",Dr.Fields)},next$:"next",get next(){return"next[:i]"},totpUrl:"totpUrl",sessionSecret:"sessionSecret"}}static from(t){return new Lv(t)}static with(t){return new Lv(t)}copyWith(t){return new Lv({...this.toJSON(),...t})}clone(){return new Lv(this.toJSON())}}function GDe(e){const t=globalThis,n=typeof t.Buffer<"u"&&typeof t.Buffer.isBuffer=="function"&&t.Buffer.isBuffer(e),r=typeof t.Blob<"u"&&e instanceof t.Blob;return e&&typeof e=="object"&&!Array.isArray(e)&&!n&&!(e instanceof ArrayBuffer)&&!r}function YDe(e={}){const t=e;t.session instanceof Dr||(this.session=new Dr(t.session||{}))}const Wz=({method:e})=>{const{description:t,title:n,goBack:r,mutation:a,form:i,canGoBack:o,LegalNotice:l,Recaptcha:u,s:d}=qDe({method:e});return w.jsxs("div",{className:"signin-form-container",children:[w.jsx("h1",{children:n}),w.jsx("p",{children:t}),w.jsx(Ll,{query:a}),w.jsx(XDe,{form:i,method:e,mutation:a}),w.jsx(u,{}),o?w.jsx("button",{id:"go-back-button",className:"btn bg-transparent w-100 mt-4",onClick:r,children:d.chooseAnotherMethod}):null,w.jsx(l,{})]})},KDe=e=>/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(e),XDe=({form:e,mutation:t,method:n})=>{var o,l,u;let r="email";n===Bs.Phone&&(r="phonenumber");let a=!((o=e==null?void 0:e.values)!=null&&o.value);Bs.Email===n&&(a=!KDe((l=e==null?void 0:e.values)==null?void 0:l.value));const i=Kt(Oa);return w.jsxs("form",{onSubmit:d=>{d.preventDefault(),e.submitForm()},children:[w.jsx(In,{autoFocus:!0,type:r,id:"value-input",dir:"ltr",value:(u=e==null?void 0:e.values)==null?void 0:u.value,errorMessage:e==null?void 0:e.errors.value,onChange:d=>e.setFieldValue(Cu.Fields.value,d,!1)}),w.jsx(Ys,{className:"btn btn-primary w-100 d-block mb-2",mutation:t,id:"submit-form",disabled:a,children:i.continue})]})};var QDe=Object.defineProperty,p_=Object.getOwnPropertySymbols,pre=Object.prototype.hasOwnProperty,hre=Object.prototype.propertyIsEnumerable,zz=(e,t,n)=>t in e?QDe(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,iF=(e,t)=>{for(var n in t||(t={}))pre.call(t,n)&&zz(e,n,t[n]);if(p_)for(var n of p_(t))hre.call(t,n)&&zz(e,n,t[n]);return e},oF=(e,t)=>{var n={};for(var r in e)pre.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&p_)for(var r of p_(e))t.indexOf(r)<0&&hre.call(e,r)&&(n[r]=e[r]);return n};/** * @license QR Code generator library (TypeScript) * Copyright (c) Project Nayuki. * SPDX-License-Identifier: MIT - */var $v;(e=>{const t=class Vn{constructor(u,d,f,g){if(this.version=u,this.errorCorrectionLevel=d,this.modules=[],this.isFunction=[],uVn.MAX_VERSION)throw new RangeError("Version value out of range");if(g<-1||g>7)throw new RangeError("Mask value out of range");this.size=u*4+17;let y=[];for(let v=0;v7)throw new RangeError("Invalid value");let v,E;for(v=f;;v++){const _=Vn.getNumDataCodewords(v,d)*8,A=o.getTotalBits(u,v);if(A<=_){E=A;break}if(v>=g)throw new RangeError("Data too long")}for(const _ of[Vn.Ecc.MEDIUM,Vn.Ecc.QUARTILE,Vn.Ecc.HIGH])h&&E<=Vn.getNumDataCodewords(v,_)*8&&(d=_);let T=[];for(const _ of u){n(_.mode.modeBits,4,T),n(_.numChars,_.mode.numCharCountBits(v),T);for(const A of _.getData())T.push(A)}a(T.length==E);const C=Vn.getNumDataCodewords(v,d)*8;a(T.length<=C),n(0,Math.min(4,C-T.length),T),n(0,(8-T.length%8)%8,T),a(T.length%8==0);for(let _=236;T.lengthk[A>>>3]|=_<<7-(A&7)),new Vn(v,d,k,y)}getModule(u,d){return 0<=u&&u>>9)*1335;const g=(d<<10|f)^21522;a(g>>>15==0);for(let y=0;y<=5;y++)this.setFunctionModule(8,y,r(g,y));this.setFunctionModule(8,7,r(g,6)),this.setFunctionModule(8,8,r(g,7)),this.setFunctionModule(7,8,r(g,8));for(let y=9;y<15;y++)this.setFunctionModule(14-y,8,r(g,y));for(let y=0;y<8;y++)this.setFunctionModule(this.size-1-y,8,r(g,y));for(let y=8;y<15;y++)this.setFunctionModule(8,this.size-15+y,r(g,y));this.setFunctionModule(8,this.size-8,!0)}drawVersion(){if(this.version<7)return;let u=this.version;for(let f=0;f<12;f++)u=u<<1^(u>>>11)*7973;const d=this.version<<12|u;a(d>>>18==0);for(let f=0;f<18;f++){const g=r(d,f),y=this.size-11+f%3,h=Math.floor(f/3);this.setFunctionModule(y,h,g),this.setFunctionModule(h,y,g)}}drawFinderPattern(u,d){for(let f=-4;f<=4;f++)for(let g=-4;g<=4;g++){const y=Math.max(Math.abs(g),Math.abs(f)),h=u+g,v=d+f;0<=h&&h{(_!=E-y||P>=v)&&k.push(A[_])});return a(k.length==h),k}drawCodewords(u){if(u.length!=Math.floor(Vn.getNumRawDataModules(this.version)/8))throw new RangeError("Invalid argument");let d=0;for(let f=this.size-1;f>=1;f-=2){f==6&&(f=5);for(let g=0;g>>3],7-(d&7)),d++)}}a(d==u.length*8)}applyMask(u){if(u<0||u>7)throw new RangeError("Mask value out of range");for(let d=0;d5&&u++):(this.finderPenaltyAddHistory(v,E),h||(u+=this.finderPenaltyCountPatterns(E)*Vn.PENALTY_N3),h=this.modules[y][T],v=1);u+=this.finderPenaltyTerminateAndCount(h,v,E)*Vn.PENALTY_N3}for(let y=0;y5&&u++):(this.finderPenaltyAddHistory(v,E),h||(u+=this.finderPenaltyCountPatterns(E)*Vn.PENALTY_N3),h=this.modules[T][y],v=1);u+=this.finderPenaltyTerminateAndCount(h,v,E)*Vn.PENALTY_N3}for(let y=0;yh+(v?1:0),d);const f=this.size*this.size,g=Math.ceil(Math.abs(d*20-f*10)/f)-1;return a(0<=g&&g<=9),u+=g*Vn.PENALTY_N4,a(0<=u&&u<=2568888),u}getAlignmentPatternPositions(){if(this.version==1)return[];{const u=Math.floor(this.version/7)+2,d=this.version==32?26:Math.ceil((this.version*4+4)/(u*2-2))*2;let f=[6];for(let g=this.size-7;f.lengthVn.MAX_VERSION)throw new RangeError("Version number out of range");let d=(16*u+128)*u+64;if(u>=2){const f=Math.floor(u/7)+2;d-=(25*f-10)*f-55,u>=7&&(d-=36)}return a(208<=d&&d<=29648),d}static getNumDataCodewords(u,d){return Math.floor(Vn.getNumRawDataModules(u)/8)-Vn.ECC_CODEWORDS_PER_BLOCK[d.ordinal][u]*Vn.NUM_ERROR_CORRECTION_BLOCKS[d.ordinal][u]}static reedSolomonComputeDivisor(u){if(u<1||u>255)throw new RangeError("Degree out of range");let d=[];for(let g=0;g0);for(const g of u){const y=g^f.shift();f.push(0),d.forEach((h,v)=>f[v]^=Vn.reedSolomonMultiply(h,y))}return f}static reedSolomonMultiply(u,d){if(u>>>8||d>>>8)throw new RangeError("Byte out of range");let f=0;for(let g=7;g>=0;g--)f=f<<1^(f>>>7)*285,f^=(d>>>g&1)*u;return a(f>>>8==0),f}finderPenaltyCountPatterns(u){const d=u[1];a(d<=this.size*3);const f=d>0&&u[2]==d&&u[3]==d*3&&u[4]==d&&u[5]==d;return(f&&u[0]>=d*4&&u[6]>=d?1:0)+(f&&u[6]>=d*4&&u[0]>=d?1:0)}finderPenaltyTerminateAndCount(u,d,f){return u&&(this.finderPenaltyAddHistory(d,f),d=0),d+=this.size,this.finderPenaltyAddHistory(d,f),this.finderPenaltyCountPatterns(f)}finderPenaltyAddHistory(u,d){d[0]==0&&(u+=this.size),d.pop(),d.unshift(u)}};t.MIN_VERSION=1,t.MAX_VERSION=40,t.PENALTY_N1=3,t.PENALTY_N2=3,t.PENALTY_N3=40,t.PENALTY_N4=10,t.ECC_CODEWORDS_PER_BLOCK=[[-1,7,10,15,20,26,18,20,24,30,18,20,24,26,30,22,24,28,30,28,28,28,28,30,30,26,28,30,30,30,30,30,30,30,30,30,30,30,30,30,30],[-1,10,16,26,18,24,16,18,22,22,26,30,22,22,24,24,28,28,26,26,26,26,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28],[-1,13,22,18,26,18,24,18,22,20,24,28,26,24,20,30,24,28,28,26,30,28,30,30,30,30,28,30,30,30,30,30,30,30,30,30,30,30,30,30,30],[-1,17,28,22,16,22,28,26,26,24,28,24,28,22,24,24,30,28,28,26,28,30,24,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30]],t.NUM_ERROR_CORRECTION_BLOCKS=[[-1,1,1,1,1,1,2,2,2,2,4,4,4,4,4,6,6,6,6,7,8,8,9,9,10,12,12,12,13,14,15,16,17,18,19,19,20,21,22,24,25],[-1,1,1,1,2,2,4,4,4,5,5,5,8,9,9,10,10,11,13,14,16,17,17,18,20,21,23,25,26,28,29,31,33,35,37,38,40,43,45,47,49],[-1,1,1,2,2,4,4,6,6,8,8,8,10,12,16,12,17,16,18,21,20,23,23,25,27,29,34,34,35,38,40,43,45,48,51,53,56,59,62,65,68],[-1,1,1,2,4,4,4,5,6,8,8,11,11,16,16,18,16,19,21,25,25,25,34,30,32,35,37,40,42,45,48,51,54,57,60,63,66,70,74,77,81]],e.QrCode=t;function n(l,u,d){if(u<0||u>31||l>>>u)throw new RangeError("Value out of range");for(let f=u-1;f>=0;f--)d.push(l>>>f&1)}function r(l,u){return(l>>>u&1)!=0}function a(l){if(!l)throw new Error("Assertion error")}const i=class wa{constructor(u,d,f){if(this.mode=u,this.numChars=d,this.bitData=f,d<0)throw new RangeError("Invalid argument");this.bitData=f.slice()}static makeBytes(u){let d=[];for(const f of u)n(f,8,d);return new wa(wa.Mode.BYTE,u.length,d)}static makeNumeric(u){if(!wa.isNumeric(u))throw new RangeError("String contains non-numeric characters");let d=[];for(let f=0;f=1<{(t=>{const n=class{constructor(a,i){this.ordinal=a,this.formatBits=i}};n.LOW=new n(0,1),n.MEDIUM=new n(1,0),n.QUARTILE=new n(2,3),n.HIGH=new n(3,2),t.Ecc=n})(e.QrCode||(e.QrCode={}))})($v||($v={}));(e=>{(t=>{const n=class{constructor(a,i){this.modeBits=a,this.numBitsCharCount=i}numCharCountBits(a){return this.numBitsCharCount[Math.floor((a+7)/17)]}};n.NUMERIC=new n(1,[10,12,14]),n.ALPHANUMERIC=new n(2,[9,11,13]),n.BYTE=new n(4,[8,16,16]),n.KANJI=new n(8,[8,10,12]),n.ECI=new n(7,[0,0,0]),t.Mode=n})(e.QrSegment||(e.QrSegment={}))})($v||($v={}));var Bb=$v;/** + */var ay;(e=>{const t=class Vn{constructor(u,d,f,g){if(this.version=u,this.errorCorrectionLevel=d,this.modules=[],this.isFunction=[],uVn.MAX_VERSION)throw new RangeError("Version value out of range");if(g<-1||g>7)throw new RangeError("Mask value out of range");this.size=u*4+17;let y=[];for(let v=0;v7)throw new RangeError("Invalid value");let v,E;for(v=f;;v++){const _=Vn.getNumDataCodewords(v,d)*8,A=o.getTotalBits(u,v);if(A<=_){E=A;break}if(v>=g)throw new RangeError("Data too long")}for(const _ of[Vn.Ecc.MEDIUM,Vn.Ecc.QUARTILE,Vn.Ecc.HIGH])h&&E<=Vn.getNumDataCodewords(v,_)*8&&(d=_);let T=[];for(const _ of u){n(_.mode.modeBits,4,T),n(_.numChars,_.mode.numCharCountBits(v),T);for(const A of _.getData())T.push(A)}a(T.length==E);const C=Vn.getNumDataCodewords(v,d)*8;a(T.length<=C),n(0,Math.min(4,C-T.length),T),n(0,(8-T.length%8)%8,T),a(T.length%8==0);for(let _=236;T.lengthk[A>>>3]|=_<<7-(A&7)),new Vn(v,d,k,y)}getModule(u,d){return 0<=u&&u>>9)*1335;const g=(d<<10|f)^21522;a(g>>>15==0);for(let y=0;y<=5;y++)this.setFunctionModule(8,y,r(g,y));this.setFunctionModule(8,7,r(g,6)),this.setFunctionModule(8,8,r(g,7)),this.setFunctionModule(7,8,r(g,8));for(let y=9;y<15;y++)this.setFunctionModule(14-y,8,r(g,y));for(let y=0;y<8;y++)this.setFunctionModule(this.size-1-y,8,r(g,y));for(let y=8;y<15;y++)this.setFunctionModule(8,this.size-15+y,r(g,y));this.setFunctionModule(8,this.size-8,!0)}drawVersion(){if(this.version<7)return;let u=this.version;for(let f=0;f<12;f++)u=u<<1^(u>>>11)*7973;const d=this.version<<12|u;a(d>>>18==0);for(let f=0;f<18;f++){const g=r(d,f),y=this.size-11+f%3,h=Math.floor(f/3);this.setFunctionModule(y,h,g),this.setFunctionModule(h,y,g)}}drawFinderPattern(u,d){for(let f=-4;f<=4;f++)for(let g=-4;g<=4;g++){const y=Math.max(Math.abs(g),Math.abs(f)),h=u+g,v=d+f;0<=h&&h{(_!=E-y||P>=v)&&k.push(A[_])});return a(k.length==h),k}drawCodewords(u){if(u.length!=Math.floor(Vn.getNumRawDataModules(this.version)/8))throw new RangeError("Invalid argument");let d=0;for(let f=this.size-1;f>=1;f-=2){f==6&&(f=5);for(let g=0;g>>3],7-(d&7)),d++)}}a(d==u.length*8)}applyMask(u){if(u<0||u>7)throw new RangeError("Mask value out of range");for(let d=0;d5&&u++):(this.finderPenaltyAddHistory(v,E),h||(u+=this.finderPenaltyCountPatterns(E)*Vn.PENALTY_N3),h=this.modules[y][T],v=1);u+=this.finderPenaltyTerminateAndCount(h,v,E)*Vn.PENALTY_N3}for(let y=0;y5&&u++):(this.finderPenaltyAddHistory(v,E),h||(u+=this.finderPenaltyCountPatterns(E)*Vn.PENALTY_N3),h=this.modules[T][y],v=1);u+=this.finderPenaltyTerminateAndCount(h,v,E)*Vn.PENALTY_N3}for(let y=0;yh+(v?1:0),d);const f=this.size*this.size,g=Math.ceil(Math.abs(d*20-f*10)/f)-1;return a(0<=g&&g<=9),u+=g*Vn.PENALTY_N4,a(0<=u&&u<=2568888),u}getAlignmentPatternPositions(){if(this.version==1)return[];{const u=Math.floor(this.version/7)+2,d=this.version==32?26:Math.ceil((this.version*4+4)/(u*2-2))*2;let f=[6];for(let g=this.size-7;f.lengthVn.MAX_VERSION)throw new RangeError("Version number out of range");let d=(16*u+128)*u+64;if(u>=2){const f=Math.floor(u/7)+2;d-=(25*f-10)*f-55,u>=7&&(d-=36)}return a(208<=d&&d<=29648),d}static getNumDataCodewords(u,d){return Math.floor(Vn.getNumRawDataModules(u)/8)-Vn.ECC_CODEWORDS_PER_BLOCK[d.ordinal][u]*Vn.NUM_ERROR_CORRECTION_BLOCKS[d.ordinal][u]}static reedSolomonComputeDivisor(u){if(u<1||u>255)throw new RangeError("Degree out of range");let d=[];for(let g=0;g0);for(const g of u){const y=g^f.shift();f.push(0),d.forEach((h,v)=>f[v]^=Vn.reedSolomonMultiply(h,y))}return f}static reedSolomonMultiply(u,d){if(u>>>8||d>>>8)throw new RangeError("Byte out of range");let f=0;for(let g=7;g>=0;g--)f=f<<1^(f>>>7)*285,f^=(d>>>g&1)*u;return a(f>>>8==0),f}finderPenaltyCountPatterns(u){const d=u[1];a(d<=this.size*3);const f=d>0&&u[2]==d&&u[3]==d*3&&u[4]==d&&u[5]==d;return(f&&u[0]>=d*4&&u[6]>=d?1:0)+(f&&u[6]>=d*4&&u[0]>=d?1:0)}finderPenaltyTerminateAndCount(u,d,f){return u&&(this.finderPenaltyAddHistory(d,f),d=0),d+=this.size,this.finderPenaltyAddHistory(d,f),this.finderPenaltyCountPatterns(f)}finderPenaltyAddHistory(u,d){d[0]==0&&(u+=this.size),d.pop(),d.unshift(u)}};t.MIN_VERSION=1,t.MAX_VERSION=40,t.PENALTY_N1=3,t.PENALTY_N2=3,t.PENALTY_N3=40,t.PENALTY_N4=10,t.ECC_CODEWORDS_PER_BLOCK=[[-1,7,10,15,20,26,18,20,24,30,18,20,24,26,30,22,24,28,30,28,28,28,28,30,30,26,28,30,30,30,30,30,30,30,30,30,30,30,30,30,30],[-1,10,16,26,18,24,16,18,22,22,26,30,22,22,24,24,28,28,26,26,26,26,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28],[-1,13,22,18,26,18,24,18,22,20,24,28,26,24,20,30,24,28,28,26,30,28,30,30,30,30,28,30,30,30,30,30,30,30,30,30,30,30,30,30,30],[-1,17,28,22,16,22,28,26,26,24,28,24,28,22,24,24,30,28,28,26,28,30,24,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30]],t.NUM_ERROR_CORRECTION_BLOCKS=[[-1,1,1,1,1,1,2,2,2,2,4,4,4,4,4,6,6,6,6,7,8,8,9,9,10,12,12,12,13,14,15,16,17,18,19,19,20,21,22,24,25],[-1,1,1,1,2,2,4,4,4,5,5,5,8,9,9,10,10,11,13,14,16,17,17,18,20,21,23,25,26,28,29,31,33,35,37,38,40,43,45,47,49],[-1,1,1,2,2,4,4,6,6,8,8,8,10,12,16,12,17,16,18,21,20,23,23,25,27,29,34,34,35,38,40,43,45,48,51,53,56,59,62,65,68],[-1,1,1,2,4,4,4,5,6,8,8,11,11,16,16,18,16,19,21,25,25,25,34,30,32,35,37,40,42,45,48,51,54,57,60,63,66,70,74,77,81]],e.QrCode=t;function n(l,u,d){if(u<0||u>31||l>>>u)throw new RangeError("Value out of range");for(let f=u-1;f>=0;f--)d.push(l>>>f&1)}function r(l,u){return(l>>>u&1)!=0}function a(l){if(!l)throw new Error("Assertion error")}const i=class Ea{constructor(u,d,f){if(this.mode=u,this.numChars=d,this.bitData=f,d<0)throw new RangeError("Invalid argument");this.bitData=f.slice()}static makeBytes(u){let d=[];for(const f of u)n(f,8,d);return new Ea(Ea.Mode.BYTE,u.length,d)}static makeNumeric(u){if(!Ea.isNumeric(u))throw new RangeError("String contains non-numeric characters");let d=[];for(let f=0;f=1<{(t=>{const n=class{constructor(a,i){this.ordinal=a,this.formatBits=i}};n.LOW=new n(0,1),n.MEDIUM=new n(1,0),n.QUARTILE=new n(2,3),n.HIGH=new n(3,2),t.Ecc=n})(e.QrCode||(e.QrCode={}))})(ay||(ay={}));(e=>{(t=>{const n=class{constructor(a,i){this.modeBits=a,this.numBitsCharCount=i}numCharCountBits(a){return this.numBitsCharCount[Math.floor((a+7)/17)]}};n.NUMERIC=new n(1,[10,12,14]),n.ALPHANUMERIC=new n(2,[9,11,13]),n.BYTE=new n(4,[8,16,16]),n.KANJI=new n(8,[8,10,12]),n.ECI=new n(7,[0,0,0]),t.Mode=n})(e.QrSegment||(e.QrSegment={}))})(ay||(ay={}));var u0=ay;/** * @license qrcode.react * Copyright (c) Paul O'Shannessy * SPDX-License-Identifier: ISC - */var EDe={L:Bb.QrCode.Ecc.LOW,M:Bb.QrCode.Ecc.MEDIUM,Q:Bb.QrCode.Ecc.QUARTILE,H:Bb.QrCode.Ecc.HIGH},Bne=128,Wne="L",zne="#FFFFFF",qne="#000000",Hne=!1,Vne=1,TDe=4,CDe=0,kDe=.1;function Gne(e,t=0){const n=[];return e.forEach(function(r,a){let i=null;r.forEach(function(o,l){if(!o&&i!==null){n.push(`M${i+t} ${a+t}h${l-i}v1H${i+t}z`),i=null;return}if(l===r.length-1){if(!o)return;i===null?n.push(`M${l+t},${a+t} h1v1H${l+t}z`):n.push(`M${i+t},${a+t} h${l+1-i}v1H${i+t}z`);return}o&&i===null&&(i=l)})}),n.join("")}function Yne(e,t){return e.slice().map((n,r)=>r=t.y+t.h?n:n.map((a,i)=>i=t.x+t.w?a:!1))}function xDe(e,t,n,r){if(r==null)return null;const a=e.length+n*2,i=Math.floor(t*kDe),o=a/t,l=(r.width||i)*o,u=(r.height||i)*o,d=r.x==null?e.length/2-l/2:r.x*o,f=r.y==null?e.length/2-u/2:r.y*o,g=r.opacity==null?1:r.opacity;let y=null;if(r.excavate){let v=Math.floor(d),E=Math.floor(f),T=Math.ceil(l+d-v),C=Math.ceil(u+f-E);y={x:v,y:E,w:T,h:C}}const h=r.crossOrigin;return{x:d,y:f,h:u,w:l,excavation:y,opacity:g,crossOrigin:h}}function _De(e,t){return t!=null?Math.max(Math.floor(t),0):e?TDe:CDe}function Kne({value:e,level:t,minVersion:n,includeMargin:r,marginSize:a,imageSettings:i,size:o,boostLevel:l}){let u=ze.useMemo(()=>{const v=(Array.isArray(e)?e:[e]).reduce((E,T)=>(E.push(...Bb.QrSegment.makeSegments(T)),E),[]);return Bb.QrCode.encodeSegments(v,EDe[t],n,void 0,void 0,l)},[e,t,n,l]);const{cells:d,margin:f,numCells:g,calculatedImageSettings:y}=ze.useMemo(()=>{let h=u.getModules();const v=_De(r,a),E=h.length+v*2,T=xDe(h,o,v,i);return{cells:h,margin:v,numCells:E,calculatedImageSettings:T}},[u,o,i,r,a]);return{qrcode:u,margin:f,cells:d,numCells:g,calculatedImageSettings:y}}var ODe=(function(){try{new Path2D().addPath(new Path2D)}catch{return!1}return!0})(),RDe=ze.forwardRef(function(t,n){const r=t,{value:a,size:i=Bne,level:o=Wne,bgColor:l=zne,fgColor:u=qne,includeMargin:d=Hne,minVersion:f=Vne,boostLevel:g,marginSize:y,imageSettings:h}=r,E=N3(r,["value","size","level","bgColor","fgColor","includeMargin","minVersion","boostLevel","marginSize","imageSettings"]),{style:T}=E,C=N3(E,["style"]),k=h==null?void 0:h.src,_=ze.useRef(null),A=ze.useRef(null),P=ze.useCallback(ge=>{_.current=ge,typeof n=="function"?n(ge):n&&(n.current=ge)},[n]),[N,I]=ze.useState(!1),{margin:L,cells:j,numCells:z,calculatedImageSettings:Q}=Kne({value:a,level:o,minVersion:f,boostLevel:g,includeMargin:d,marginSize:y,imageSettings:h,size:i});ze.useEffect(()=>{if(_.current!=null){const ge=_.current,me=ge.getContext("2d");if(!me)return;let W=j;const G=A.current,q=Q!=null&&G!==null&&G.complete&&G.naturalHeight!==0&&G.naturalWidth!==0;q&&Q.excavation!=null&&(W=Yne(j,Q.excavation));const ce=window.devicePixelRatio||1;ge.height=ge.width=i*ce;const H=i/z*ce;me.scale(H,H),me.fillStyle=l,me.fillRect(0,0,z,z),me.fillStyle=u,ODe?me.fill(new Path2D(Gne(W,L))):j.forEach(function(Y,ie){Y.forEach(function(J,ee){J&&me.fillRect(ee+L,ie+L,1,1)})}),Q&&(me.globalAlpha=Q.opacity),q&&me.drawImage(G,Q.x+L,Q.y+L,Q.w,Q.h)}}),ze.useEffect(()=>{I(!1)},[k]);const le=A3({height:i,width:i},T);let re=null;return k!=null&&(re=ze.createElement("img",{src:k,key:k,style:{display:"none"},onLoad:()=>{I(!0)},ref:A,crossOrigin:Q==null?void 0:Q.crossOrigin})),ze.createElement(ze.Fragment,null,ze.createElement("canvas",A3({style:le,height:i,width:i,ref:P,role:"img"},C)),re)});RDe.displayName="QRCodeCanvas";var Xne=ze.forwardRef(function(t,n){const r=t,{value:a,size:i=Bne,level:o=Wne,bgColor:l=zne,fgColor:u=qne,includeMargin:d=Hne,minVersion:f=Vne,boostLevel:g,title:y,marginSize:h,imageSettings:v}=r,E=N3(r,["value","size","level","bgColor","fgColor","includeMargin","minVersion","boostLevel","title","marginSize","imageSettings"]),{margin:T,cells:C,numCells:k,calculatedImageSettings:_}=Kne({value:a,level:o,minVersion:f,boostLevel:g,includeMargin:d,marginSize:h,imageSettings:v,size:i});let A=C,P=null;v!=null&&_!=null&&(_.excavation!=null&&(A=Yne(C,_.excavation)),P=ze.createElement("image",{href:v.src,height:_.h,width:_.w,x:_.x+T,y:_.y+T,preserveAspectRatio:"none",opacity:_.opacity,crossOrigin:_.crossOrigin}));const N=Gne(A,T);return ze.createElement("svg",A3({height:i,width:i,viewBox:`0 0 ${k} ${k}`,ref:n,role:"img"},E),!!y&&ze.createElement("title",null,y),ze.createElement("path",{fill:l,d:`M0,0 h${k}v${k}H0z`,shapeRendering:"crispEdges"}),ze.createElement("path",{fill:u,d:N,shapeRendering:"crispEdges"}),P)});Xne.displayName="QRCodeSVG";const L1={backspace:8,left:37,up:38,right:39,down:40};class JE extends R.Component{constructor(t){super(t),this.__clearvalues__=()=>{const{fields:o}=this.props;this.setState({values:Array(o).fill("")}),this.iRefs[0].current.focus()},this.triggerChange=(o=this.state.values)=>{const{onChange:l,onComplete:u,fields:d}=this.props,f=o.join("");l&&l(f),u&&f.length>=d&&u(f)},this.onChange=o=>{const l=parseInt(o.target.dataset.id);if(this.props.type==="number"&&(o.target.value=o.target.value.replace(/[^\d]/gi,"")),o.target.value===""||this.props.type==="number"&&!o.target.validity.valid)return;const{fields:u}=this.props;let d;const f=o.target.value;let{values:g}=this.state;if(g=Object.assign([],g),f.length>1){let y=f.length+l-1;y>=u&&(y=u-1),d=this.iRefs[y],f.split("").forEach((v,E)=>{const T=l+E;T{const l=parseInt(o.target.dataset.id),u=l-1,d=l+1,f=this.iRefs[u],g=this.iRefs[d];switch(o.keyCode){case L1.backspace:o.preventDefault();const y=[...this.state.values];this.state.values[l]?(y[l]="",this.setState({values:y}),this.triggerChange(y)):f&&(y[u]="",f.current.focus(),this.setState({values:y}),this.triggerChange(y));break;case L1.left:o.preventDefault(),f&&f.current.focus();break;case L1.right:o.preventDefault(),g&&g.current.focus();break;case L1.up:case L1.down:o.preventDefault();break}},this.onFocus=o=>{o.target.select(o)};const{fields:n,values:r}=t;let a,i=0;if(r&&r.length){a=[];for(let o=0;o=n?0:r.length}else a=Array(n).fill("");this.state={values:a,autoFocusIndex:i},this.iRefs=[];for(let o=0;ow.jsx("input",{type:f==="number"?"tel":f,pattern:f==="number"?"[0-9]*":null,autoFocus:u&&E===n,style:g,"data-id":E,value:v,id:this.props.id?`${this.props.id}-${E}`:null,ref:this.iRefs[E],onChange:this.onChange,onKeyDown:this.onKeyDown,onFocus:this.onFocus,disabled:this.props.disabled,required:this.props.required,placeholder:this.props.placeholder[E]},`${this.id}-${E}`))}),r&&w.jsxs("div",{className:"rc-loading",style:h,children:[w.jsx("div",{className:"rc-blur"}),w.jsx("svg",{className:"rc-spin",viewBox:"0 0 1024 1024","data-icon":"loading",width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true",children:w.jsx("path",{fill:"#006fff",d:"M988 548c-19.9 0-36-16.1-36-36 0-59.4-11.6-117-34.6-171.3a440.45 440.45 0 0 0-94.3-139.9 437.71 437.71 0 0 0-139.9-94.3C629 83.6 571.4 72 512 72c-19.9 0-36-16.1-36-36s16.1-36 36-36c69.1 0 136.2 13.5 199.3 40.3C772.3 66 827 103 874 150c47 47 83.9 101.8 109.7 162.7 26.7 63.1 40.2 130.2 40.2 199.3.1 19.9-16 36-35.9 36z"})})]})]})}}JE.propTypes={type:Ye.oneOf(["text","number"]),onChange:Ye.func,onComplete:Ye.func,fields:Ye.number,loading:Ye.bool,title:Ye.string,fieldWidth:Ye.number,id:Ye.string,fieldHeight:Ye.number,autoFocus:Ye.bool,className:Ye.string,values:Ye.arrayOf(Ye.string),disabled:Ye.bool,required:Ye.bool,placeholder:Ye.arrayOf(Ye.string)};JE.defaultProps={type:"number",fields:6,fieldWidth:58,fieldHeight:54,autoFocus:!0,disabled:!1,required:!1,placeholder:[]};var vE;function Bi(e,t){if(!{}.hasOwnProperty.call(e,t))throw new TypeError("attempted to use private field on non-instance");return e}var PDe=0;function Gv(e){return"__private_"+PDe+++"_"+e}const ADe=e=>{const n=Gs()??void 0,[r,a]=R.useState(!1),[i,o]=R.useState();return{...un({mutationFn:d=>(a(!1),Ch.Fetch({body:d,headers:e==null?void 0:e.headers},{creatorFn:e==null?void 0:e.creatorFn,qs:e==null?void 0:e.qs,ctx:n,onMessage:e==null?void 0:e.onMessage,overrideUrl:e==null?void 0:e.overrideUrl}).then(f=>(f.done.then(()=>{a(!0)}),o(f.response),f.response.result)))}),isCompleted:r,response:i}};class Ch{}vE=Ch;Ch.URL="/passport/totp/confirm";Ch.NewUrl=e=>Vs(vE.URL,void 0,e);Ch.Method="post";Ch.Fetch$=async(e,t,n,r)=>qs(r??vE.NewUrl(e),{method:vE.Method,...n||{}},t);Ch.Fetch=async(e,{creatorFn:t,qs:n,ctx:r,onMessage:a,overrideUrl:i}={creatorFn:o=>new vv(o)})=>{t=t||(l=>new vv(l));const o=await vE.Fetch$(n,r,e,i);return Hs(o,l=>{const u=new us;return t&&u.setCreator(t),u.inject(l),u},a,e==null?void 0:e.signal)};Ch.Definition={name:"ConfirmClassicPassportTotp",url:"/passport/totp/confirm",method:"post",description:"When user requires to setup the totp for an specifc passport, they can use this endpoint to confirm it.",in:{fields:[{name:"value",description:"Passport value, email or phone number which is already successfully registered.",type:"string",tags:{validate:"required"}},{name:"password",description:"Password related to the passport. Totp is only available for passports with a password. Basically totp is protecting passport, not otp over email or sms.",type:"string",tags:{validate:"required"}},{name:"totpCode",description:"The totp code generated by authenticator such as google or microsft apps.",type:"string",tags:{validate:"required"}}]},out:{envelope:"GResponse",fields:[{name:"session",type:"one",target:"UserSessionDto"}]}};var bg=Gv("value"),wg=Gv("password"),Sg=Gv("totpCode"),MA=Gv("isJsonAppliable");class Jp{get value(){return Bi(this,bg)[bg]}set value(t){Bi(this,bg)[bg]=String(t)}setValue(t){return this.value=t,this}get password(){return Bi(this,wg)[wg]}set password(t){Bi(this,wg)[wg]=String(t)}setPassword(t){return this.password=t,this}get totpCode(){return Bi(this,Sg)[Sg]}set totpCode(t){Bi(this,Sg)[Sg]=String(t)}setTotpCode(t){return this.totpCode=t,this}constructor(t=void 0){if(Object.defineProperty(this,MA,{value:NDe}),Object.defineProperty(this,bg,{writable:!0,value:""}),Object.defineProperty(this,wg,{writable:!0,value:""}),Object.defineProperty(this,Sg,{writable:!0,value:""}),t!=null)if(typeof t=="string")this.applyFromObject(JSON.parse(t));else if(Bi(this,MA)[MA](t))this.applyFromObject(t);else throw new Error("Instance cannot be created on an unknown value, check the content being passed. got: "+typeof t)}applyFromObject(t={}){const n=t;n.value!==void 0&&(this.value=n.value),n.password!==void 0&&(this.password=n.password),n.totpCode!==void 0&&(this.totpCode=n.totpCode)}toJSON(){return{value:Bi(this,bg)[bg],password:Bi(this,wg)[wg],totpCode:Bi(this,Sg)[Sg]}}toString(){return JSON.stringify(this)}static get Fields(){return{value:"value",password:"password",totpCode:"totpCode"}}static from(t){return new Jp(t)}static with(t){return new Jp(t)}copyWith(t){return new Jp({...this.toJSON(),...t})}clone(){return new Jp(this.toJSON())}}function NDe(e){const t=globalThis,n=typeof t.Buffer<"u"&&typeof t.Buffer.isBuffer=="function"&&t.Buffer.isBuffer(e),r=typeof t.Blob<"u"&&e instanceof t.Blob;return e&&typeof e=="object"&&!Array.isArray(e)&&!n&&!(e instanceof ArrayBuffer)&&!r}var gd=Gv("session"),IA=Gv("isJsonAppliable"),F1=Gv("lateInitFields");class vv{get session(){return Bi(this,gd)[gd]}set session(t){t instanceof Dr?Bi(this,gd)[gd]=t:Bi(this,gd)[gd]=new Dr(t)}setSession(t){return this.session=t,this}constructor(t=void 0){if(Object.defineProperty(this,F1,{value:IDe}),Object.defineProperty(this,IA,{value:MDe}),Object.defineProperty(this,gd,{writable:!0,value:void 0}),t==null){Bi(this,F1)[F1]();return}if(typeof t=="string")this.applyFromObject(JSON.parse(t));else if(Bi(this,IA)[IA](t))this.applyFromObject(t);else throw new Error("Instance cannot be created on an unknown value, check the content being passed. got: "+typeof t)}applyFromObject(t={}){const n=t;n.session!==void 0&&(this.session=n.session),Bi(this,F1)[F1](t)}toJSON(){return{session:Bi(this,gd)[gd]}}toString(){return JSON.stringify(this)}static get Fields(){return{session$:"session",get session(){return Wd("session",Dr.Fields)}}}static from(t){return new vv(t)}static with(t){return new vv(t)}copyWith(t){return new vv({...this.toJSON(),...t})}clone(){return new vv(this.toJSON())}}function MDe(e){const t=globalThis,n=typeof t.Buffer<"u"&&typeof t.Buffer.isBuffer=="function"&&t.Buffer.isBuffer(e),r=typeof t.Blob<"u"&&e instanceof t.Blob;return e&&typeof e=="object"&&!Array.isArray(e)&&!n&&!(e instanceof ArrayBuffer)&&!r}function IDe(e={}){const t=e;t.session instanceof Dr||(this.session=new Dr(t.session||{}))}const DDe=()=>{const{goBack:e,state:t}=xr(),n=ADe(),{onComplete:r}=QE(),a=t==null?void 0:t.totpUrl,i=t==null?void 0:t.forcedTotp,o=t==null?void 0:t.password,l=t==null?void 0:t.value,u=g=>{n.mutateAsync(new Jp({...g,password:o,value:l})).then(f).catch(y=>{d==null||d.setErrors(S0(y))})},d=tf({initialValues:{},onSubmit:u}),f=g=>{var y,h;(h=(y=g.data)==null?void 0:y.item)!=null&&h.session&&r(g)};return{mutation:n,totpUrl:a,forcedTotp:i,form:d,submit:u,goBack:e}},$De=({})=>{const{goBack:e,mutation:t,form:n,totpUrl:r,forcedTotp:a}=DDe(),i=Kt(xa);return w.jsxs("div",{className:"signin-form-container",children:[w.jsx("h1",{children:i.setupTotp}),w.jsx("p",{children:i.setupTotpDescription}),w.jsx(Il,{query:t}),w.jsx(LDe,{form:n,totpUrl:r,mutation:t,forcedTotp:a}),w.jsx("button",{id:"go-back-button",className:"btn w-100 d-block",onClick:e,children:"Try another account"})]})},LDe=({form:e,mutation:t,forcedTotp:n,totpUrl:r})=>{var o;const a=Kt(xa),i=!e.values.totpCode||e.values.totpCode.length!=6;return w.jsxs("form",{onSubmit:l=>{l.preventDefault(),e.submitForm()},children:[w.jsx("center",{children:w.jsx(Xne,{value:r,width:200,height:200})}),w.jsx(JE,{values:(o=e.values.totpCode)==null?void 0:o.split(""),onChange:l=>e.setFieldValue(Jp.Fields.totpCode,l,!1),className:"otp-react-code-input"}),w.jsx(Ws,{className:"btn btn-primary w-100 d-block mb-2",mutation:t,id:"submit-form",disabled:i,children:a.continue}),n!==!0&&w.jsxs(w.Fragment,{children:[w.jsx("p",{className:"mt-4",children:a.skipTotpInfo}),w.jsx("button",{className:"btn btn-warning w-100 d-block mb-2",children:a.skipTotpButton})]})]})},FDe=()=>{const{goBack:e,state:t,replace:n,push:r}=xr(),a=Fne(),{onComplete:i}=QE(),o=t==null?void 0:t.totpUrl,l=t==null?void 0:t.forcedTotp,u=t==null?void 0:t.password,d=t==null?void 0:t.value,f=h=>{a.mutateAsync(new Su({...h,password:u,value:d})).then(y).catch(v=>{g==null||g.setErrors(S0(v))})},g=tf({initialValues:{},onSubmit:(h,v)=>{a.mutateAsync(new Su(h))}}),y=h=>{var v,E;(E=(v=h.data)==null?void 0:v.item)!=null&&E.session&&i(h)};return{mutation:a,totpUrl:o,forcedTotp:l,form:g,submit:f,goBack:e}},jDe=({})=>{const{goBack:e,mutation:t,form:n}=FDe(),r=Kt(xa);return w.jsxs("div",{className:"signin-form-container",children:[w.jsx("h1",{children:r.enterTotp}),w.jsx("p",{children:r.enterTotpDescription}),w.jsx(Il,{query:t}),w.jsx(UDe,{form:n,mutation:t}),w.jsx("button",{id:"go-back-button",className:"btn w-100 d-block",onClick:e,children:r.anotherAccount})]})},UDe=({form:e,mutation:t})=>{var a;const n=!e.values.totpCode||e.values.totpCode.length!=6,r=Kt(xa);return w.jsxs("form",{onSubmit:i=>{i.preventDefault(),e.submitForm()},children:[w.jsx(JE,{values:(a=e.values.totpCode)==null?void 0:a.split(""),onChange:i=>e.setFieldValue(Jp.Fields.totpCode,i,!1),className:"otp-react-code-input"}),w.jsx(Ws,{className:"btn btn-success w-100 d-block mb-2",mutation:t,id:"submit-form",disabled:n,children:r.continue})]})};var yE;function Cn(e,t){if(!{}.hasOwnProperty.call(e,t))throw new TypeError("attempted to use private field on non-instance");return e}var BDe=0;function so(e){return"__private_"+BDe+++"_"+e}const WDe=e=>{const n=Gs()??void 0,[r,a]=R.useState(!1),[i,o]=R.useState();return{...un({mutationFn:d=>(a(!1),kh.Fetch({body:d,headers:e==null?void 0:e.headers},{creatorFn:e==null?void 0:e.creatorFn,qs:e==null?void 0:e.qs,ctx:n,onMessage:e==null?void 0:e.onMessage,overrideUrl:e==null?void 0:e.overrideUrl}).then(f=>(f.done.then(()=>{a(!0)}),o(f.response),f.response.result)))}),isCompleted:r,response:i}};class kh{}yE=kh;kh.URL="/passports/signup/classic";kh.NewUrl=e=>Vs(yE.URL,void 0,e);kh.Method="post";kh.Fetch$=async(e,t,n,r)=>qs(r??yE.NewUrl(e),{method:yE.Method,...n||{}},t);kh.Fetch=async(e,{creatorFn:t,qs:n,ctx:r,onMessage:a,overrideUrl:i}={creatorFn:o=>new yv(o)})=>{t=t||(l=>new yv(l));const o=await yE.Fetch$(n,r,e,i);return Hs(o,l=>{const u=new us;return t&&u.setCreator(t),u.inject(l),u},a,e==null?void 0:e.signal)};kh.Definition={name:"ClassicSignup",cliName:"up",url:"/passports/signup/classic",method:"post",description:"Signup a user into system via public access (aka website visitors) using either email or phone number.",in:{fields:[{name:"value",type:"string",tags:{validate:"required"}},{name:"sessionSecret",description:"Required when the account creation requires recaptcha, or otp approval first. If such requirements are there, you first need to follow the otp apis, get the session secret and pass it here to complete the setup.",type:"string"},{name:"type",type:"enum",of:[{k:"phonenumber"},{k:"email"}],tags:{validate:"required"}},{name:"password",type:"string",tags:{validate:"required"}},{name:"firstName",type:"string",tags:{validate:"required"}},{name:"lastName",type:"string",tags:{validate:"required"}},{name:"inviteId",type:"string?"},{name:"publicJoinKeyId",type:"string?"},{name:"workspaceTypeId",type:"string?",tags:{validate:"required"}}]},out:{envelope:"GResponse",fields:[{name:"session",description:"Returns the user session in case that signup is completely successful.",type:"one",target:"UserSessionDto"},{name:"totpUrl",description:"If time based otp is available, we add it response to make it easier for ui.",type:"string"},{name:"continueToTotp",description:"Returns true and session will be empty if, the totp is required by the installation. In such scenario, you need to forward user to setup totp screen.",type:"bool"},{name:"forcedTotp",description:"Determines if user must complete totp in order to continue based on workspace or installation",type:"bool"}]}};var Eg=so("value"),Tg=so("sessionSecret"),Cg=so("type"),kg=so("password"),xg=so("firstName"),_g=so("lastName"),Og=so("inviteId"),Rg=so("publicJoinKeyId"),Pg=so("workspaceTypeId"),DA=so("isJsonAppliable");class wc{get value(){return Cn(this,Eg)[Eg]}set value(t){Cn(this,Eg)[Eg]=String(t)}setValue(t){return this.value=t,this}get sessionSecret(){return Cn(this,Tg)[Tg]}set sessionSecret(t){Cn(this,Tg)[Tg]=String(t)}setSessionSecret(t){return this.sessionSecret=t,this}get type(){return Cn(this,Cg)[Cg]}set type(t){Cn(this,Cg)[Cg]=t}setType(t){return this.type=t,this}get password(){return Cn(this,kg)[kg]}set password(t){Cn(this,kg)[kg]=String(t)}setPassword(t){return this.password=t,this}get firstName(){return Cn(this,xg)[xg]}set firstName(t){Cn(this,xg)[xg]=String(t)}setFirstName(t){return this.firstName=t,this}get lastName(){return Cn(this,_g)[_g]}set lastName(t){Cn(this,_g)[_g]=String(t)}setLastName(t){return this.lastName=t,this}get inviteId(){return Cn(this,Og)[Og]}set inviteId(t){const n=typeof t=="string"||t===void 0||t===null;Cn(this,Og)[Og]=n?t:String(t)}setInviteId(t){return this.inviteId=t,this}get publicJoinKeyId(){return Cn(this,Rg)[Rg]}set publicJoinKeyId(t){const n=typeof t=="string"||t===void 0||t===null;Cn(this,Rg)[Rg]=n?t:String(t)}setPublicJoinKeyId(t){return this.publicJoinKeyId=t,this}get workspaceTypeId(){return Cn(this,Pg)[Pg]}set workspaceTypeId(t){const n=typeof t=="string"||t===void 0||t===null;Cn(this,Pg)[Pg]=n?t:String(t)}setWorkspaceTypeId(t){return this.workspaceTypeId=t,this}constructor(t=void 0){if(Object.defineProperty(this,DA,{value:zDe}),Object.defineProperty(this,Eg,{writable:!0,value:""}),Object.defineProperty(this,Tg,{writable:!0,value:""}),Object.defineProperty(this,Cg,{writable:!0,value:void 0}),Object.defineProperty(this,kg,{writable:!0,value:""}),Object.defineProperty(this,xg,{writable:!0,value:""}),Object.defineProperty(this,_g,{writable:!0,value:""}),Object.defineProperty(this,Og,{writable:!0,value:void 0}),Object.defineProperty(this,Rg,{writable:!0,value:void 0}),Object.defineProperty(this,Pg,{writable:!0,value:void 0}),t!=null)if(typeof t=="string")this.applyFromObject(JSON.parse(t));else if(Cn(this,DA)[DA](t))this.applyFromObject(t);else throw new Error("Instance cannot be created on an unknown value, check the content being passed. got: "+typeof t)}applyFromObject(t={}){const n=t;n.value!==void 0&&(this.value=n.value),n.sessionSecret!==void 0&&(this.sessionSecret=n.sessionSecret),n.type!==void 0&&(this.type=n.type),n.password!==void 0&&(this.password=n.password),n.firstName!==void 0&&(this.firstName=n.firstName),n.lastName!==void 0&&(this.lastName=n.lastName),n.inviteId!==void 0&&(this.inviteId=n.inviteId),n.publicJoinKeyId!==void 0&&(this.publicJoinKeyId=n.publicJoinKeyId),n.workspaceTypeId!==void 0&&(this.workspaceTypeId=n.workspaceTypeId)}toJSON(){return{value:Cn(this,Eg)[Eg],sessionSecret:Cn(this,Tg)[Tg],type:Cn(this,Cg)[Cg],password:Cn(this,kg)[kg],firstName:Cn(this,xg)[xg],lastName:Cn(this,_g)[_g],inviteId:Cn(this,Og)[Og],publicJoinKeyId:Cn(this,Rg)[Rg],workspaceTypeId:Cn(this,Pg)[Pg]}}toString(){return JSON.stringify(this)}static get Fields(){return{value:"value",sessionSecret:"sessionSecret",type:"type",password:"password",firstName:"firstName",lastName:"lastName",inviteId:"inviteId",publicJoinKeyId:"publicJoinKeyId",workspaceTypeId:"workspaceTypeId"}}static from(t){return new wc(t)}static with(t){return new wc(t)}copyWith(t){return new wc({...this.toJSON(),...t})}clone(){return new wc(this.toJSON())}}function zDe(e){const t=globalThis,n=typeof t.Buffer<"u"&&typeof t.Buffer.isBuffer=="function"&&t.Buffer.isBuffer(e),r=typeof t.Blob<"u"&&e instanceof t.Blob;return e&&typeof e=="object"&&!Array.isArray(e)&&!n&&!(e instanceof ArrayBuffer)&&!r}var vd=so("session"),Ag=so("totpUrl"),Ng=so("continueToTotp"),Mg=so("forcedTotp"),$A=so("isJsonAppliable"),j1=so("lateInitFields");class yv{get session(){return Cn(this,vd)[vd]}set session(t){t instanceof Dr?Cn(this,vd)[vd]=t:Cn(this,vd)[vd]=new Dr(t)}setSession(t){return this.session=t,this}get totpUrl(){return Cn(this,Ag)[Ag]}set totpUrl(t){Cn(this,Ag)[Ag]=String(t)}setTotpUrl(t){return this.totpUrl=t,this}get continueToTotp(){return Cn(this,Ng)[Ng]}set continueToTotp(t){Cn(this,Ng)[Ng]=!!t}setContinueToTotp(t){return this.continueToTotp=t,this}get forcedTotp(){return Cn(this,Mg)[Mg]}set forcedTotp(t){Cn(this,Mg)[Mg]=!!t}setForcedTotp(t){return this.forcedTotp=t,this}constructor(t=void 0){if(Object.defineProperty(this,j1,{value:HDe}),Object.defineProperty(this,$A,{value:qDe}),Object.defineProperty(this,vd,{writable:!0,value:void 0}),Object.defineProperty(this,Ag,{writable:!0,value:""}),Object.defineProperty(this,Ng,{writable:!0,value:void 0}),Object.defineProperty(this,Mg,{writable:!0,value:void 0}),t==null){Cn(this,j1)[j1]();return}if(typeof t=="string")this.applyFromObject(JSON.parse(t));else if(Cn(this,$A)[$A](t))this.applyFromObject(t);else throw new Error("Instance cannot be created on an unknown value, check the content being passed. got: "+typeof t)}applyFromObject(t={}){const n=t;n.session!==void 0&&(this.session=n.session),n.totpUrl!==void 0&&(this.totpUrl=n.totpUrl),n.continueToTotp!==void 0&&(this.continueToTotp=n.continueToTotp),n.forcedTotp!==void 0&&(this.forcedTotp=n.forcedTotp),Cn(this,j1)[j1](t)}toJSON(){return{session:Cn(this,vd)[vd],totpUrl:Cn(this,Ag)[Ag],continueToTotp:Cn(this,Ng)[Ng],forcedTotp:Cn(this,Mg)[Mg]}}toString(){return JSON.stringify(this)}static get Fields(){return{session$:"session",get session(){return Wd("session",Dr.Fields)},totpUrl:"totpUrl",continueToTotp:"continueToTotp",forcedTotp:"forcedTotp"}}static from(t){return new yv(t)}static with(t){return new yv(t)}copyWith(t){return new yv({...this.toJSON(),...t})}clone(){return new yv(this.toJSON())}}function qDe(e){const t=globalThis,n=typeof t.Buffer<"u"&&typeof t.Buffer.isBuffer=="function"&&t.Buffer.isBuffer(e),r=typeof t.Blob<"u"&&e instanceof t.Blob;return e&&typeof e=="object"&&!Array.isArray(e)&&!n&&!(e instanceof ArrayBuffer)&&!r}function HDe(e={}){const t=e;t.session instanceof Dr||(this.session=new Dr(t.session||{}))}var bE;function Ps(e,t){if(!{}.hasOwnProperty.call(e,t))throw new TypeError("attempted to use private field on non-instance");return e}var VDe=0;function ZE(e){return"__private_"+VDe+++"_"+e}const GDe=e=>{const t=Gs(),n=(e==null?void 0:e.ctx)??t??void 0,[r,a]=R.useState(!1),[i,o]=R.useState(),l=()=>(a(!1),Gd.Fetch({headers:e==null?void 0:e.headers},{creatorFn:e==null?void 0:e.creatorFn,qs:e==null?void 0:e.qs,ctx:n,onMessage:e==null?void 0:e.onMessage,overrideUrl:e==null?void 0:e.overrideUrl}).then(d=>(d.done.then(()=>{a(!0)}),o(d.response),d.response.result)));return{...jn({queryKey:[Gd.NewUrl(e==null?void 0:e.qs)],queryFn:l,...e||{}}),isCompleted:r,response:i}};class Gd{}bE=Gd;Gd.URL="/workspace/public/types";Gd.NewUrl=e=>Vs(bE.URL,void 0,e);Gd.Method="get";Gd.Fetch$=async(e,t,n,r)=>qs(r??bE.NewUrl(e),{method:bE.Method,...n||{}},t);Gd.Fetch=async(e,{creatorFn:t,qs:n,ctx:r,onMessage:a,overrideUrl:i}={creatorFn:o=>new bv(o)})=>{t=t||(l=>new bv(l));const o=await bE.Fetch$(n,r,e,i);return Hs(o,l=>{const u=new us;return t&&u.setCreator(t),u.inject(l),u},a,e==null?void 0:e.signal)};Gd.Definition={name:"QueryWorkspaceTypesPublicly",cliName:"public-types",url:"/workspace/public/types",method:"get",description:"Returns the workspaces types available in the project publicly without authentication, and the value could be used upon signup to go different route.",out:{envelope:"GResponse",fields:[{name:"title",type:"string"},{name:"description",type:"string"},{name:"uniqueId",type:"string"},{name:"slug",type:"string"}]}};var Ig=ZE("title"),Dg=ZE("description"),$g=ZE("uniqueId"),Lg=ZE("slug"),LA=ZE("isJsonAppliable");class bv{get title(){return Ps(this,Ig)[Ig]}set title(t){Ps(this,Ig)[Ig]=String(t)}setTitle(t){return this.title=t,this}get description(){return Ps(this,Dg)[Dg]}set description(t){Ps(this,Dg)[Dg]=String(t)}setDescription(t){return this.description=t,this}get uniqueId(){return Ps(this,$g)[$g]}set uniqueId(t){Ps(this,$g)[$g]=String(t)}setUniqueId(t){return this.uniqueId=t,this}get slug(){return Ps(this,Lg)[Lg]}set slug(t){Ps(this,Lg)[Lg]=String(t)}setSlug(t){return this.slug=t,this}constructor(t=void 0){if(Object.defineProperty(this,LA,{value:YDe}),Object.defineProperty(this,Ig,{writable:!0,value:""}),Object.defineProperty(this,Dg,{writable:!0,value:""}),Object.defineProperty(this,$g,{writable:!0,value:""}),Object.defineProperty(this,Lg,{writable:!0,value:""}),t!=null)if(typeof t=="string")this.applyFromObject(JSON.parse(t));else if(Ps(this,LA)[LA](t))this.applyFromObject(t);else throw new Error("Instance cannot be created on an unknown value, check the content being passed. got: "+typeof t)}applyFromObject(t={}){const n=t;n.title!==void 0&&(this.title=n.title),n.description!==void 0&&(this.description=n.description),n.uniqueId!==void 0&&(this.uniqueId=n.uniqueId),n.slug!==void 0&&(this.slug=n.slug)}toJSON(){return{title:Ps(this,Ig)[Ig],description:Ps(this,Dg)[Dg],uniqueId:Ps(this,$g)[$g],slug:Ps(this,Lg)[Lg]}}toString(){return JSON.stringify(this)}static get Fields(){return{title:"title",description:"description",uniqueId:"uniqueId",slug:"slug"}}static from(t){return new bv(t)}static with(t){return new bv(t)}copyWith(t){return new bv({...this.toJSON(),...t})}clone(){return new bv(this.toJSON())}}function YDe(e){const t=globalThis,n=typeof t.Buffer<"u"&&typeof t.Buffer.isBuffer=="function"&&t.Buffer.isBuffer(e),r=typeof t.Blob<"u"&&e instanceof t.Blob;return e&&typeof e=="object"&&!Array.isArray(e)&&!n&&!(e instanceof ArrayBuffer)&&!r}const KDe=()=>{var k;const{goBack:e,state:t,push:n}=xr(),{locale:r}=sr(),{onComplete:a}=QE(),i=WDe(),o=t==null?void 0:t.totpUrl,{data:l,isLoading:u}=GDe({}),d=((k=l==null?void 0:l.data)==null?void 0:k.items)||[],f=Kt(xa),g=sessionStorage.getItem("workspace_type_id"),y=_=>{i.mutateAsync(new wc({..._,value:t==null?void 0:t.value,workspaceTypeId:C,type:t==null?void 0:t.type,sessionSecret:t==null?void 0:t.sessionSecret})).then(v).catch(A=>{h==null||h.setErrors(S0(A))})},h=tf({initialValues:{},onSubmit:y});R.useEffect(()=>{h==null||h.setFieldValue(wc.Fields.value,t==null?void 0:t.value)},[t==null?void 0:t.value]);const v=_=>{_.data.item.session?a(_):_.data.item.continueToTotp&&n(`/${r}/selfservice/totp-setup`,void 0,{totpUrl:_.data.item.totpUrl||o,forcedTotp:_.data.item.forcedTotp,password:h.values.password,value:t==null?void 0:t.value})},[E,T]=R.useState("");let C=d.length===1?d[0].uniqueId:E;return g&&(C=g),{mutation:i,isLoading:u,form:h,setSelectedWorkspaceType:T,totpUrl:o,workspaceTypeId:C,submit:y,goBack:e,s:f,workspaceTypes:d,state:t}},XDe=({})=>{const{goBack:e,mutation:t,form:n,workspaceTypes:r,workspaceTypeId:a,isLoading:i,setSelectedWorkspaceType:o,s:l}=KDe();return i?w.jsx("div",{className:"signin-form-container",children:w.jsx($ne,{})}):r.length===0?w.jsxs("div",{className:"signin-form-container",children:[w.jsx("h1",{children:l.registerationNotPossible}),w.jsx("p",{children:l.registerationNotPossibleLine1}),w.jsx("p",{children:l.registerationNotPossibleLine2})]}):r.length>=2&&!a?w.jsxs("div",{className:"signin-form-container fadein",style:{animation:"fadein 1s"},children:[w.jsx("h1",{children:l.completeYourAccount}),w.jsx("p",{children:l.completeYourAccountDescription}),w.jsx("div",{className:" ",children:r.map(u=>w.jsxs("div",{className:"mt-3",children:[w.jsx("h2",{children:u.title}),w.jsx("p",{children:u.description}),w.jsx("button",{className:"btn btn-outline-primary w-100",onClick:()=>{o(u.uniqueId)},children:"Select"},u.uniqueId)]},u.uniqueId))})]}):w.jsxs("div",{className:"signin-form-container fadein",style:{animation:"fadein 1s"},children:[w.jsx("h1",{children:l.completeYourAccount}),w.jsx("p",{children:l.completeYourAccountDescription}),w.jsx(Il,{query:t}),w.jsx(QDe,{form:n,mutation:t}),w.jsx("button",{id:"go-step-back",onClick:e,className:"bg-transparent border-0",children:l.cancelStep})]})},QDe=({form:e,mutation:t})=>{const n=Kt(xa),r=!e.values.firstName||!e.values.lastName||!e.values.password||e.values.password.length<6;return w.jsxs("form",{onSubmit:a=>{a.preventDefault(),e.submitForm()},children:[w.jsx(In,{value:e.values.firstName,label:n.firstName,id:"first-name-input",autoFocus:!0,errorMessage:e.errors.firstName,onChange:a=>e.setFieldValue(wc.Fields.firstName,a,!1)}),w.jsx(In,{value:e.values.lastName,label:n.lastName,id:"last-name-input",errorMessage:e.errors.lastName,onChange:a=>e.setFieldValue(wc.Fields.lastName,a,!1)}),w.jsx(In,{type:"password",value:e.values.password,label:n.password,id:"password-input",errorMessage:e.errors.password,onChange:a=>e.setFieldValue(wc.Fields.password,a,!1)}),w.jsx(Ws,{className:"btn btn-primary w-100 d-block mb-2",mutation:t,id:"submit-form",disabled:r,children:n.continue})]})};var wE;function Li(e,t){if(!{}.hasOwnProperty.call(e,t))throw new TypeError("attempted to use private field on non-instance");return e}var JDe=0;function Yv(e){return"__private_"+JDe+++"_"+e}const ZDe=e=>{const n=Gs()??void 0,[r,a]=R.useState(!1),[i,o]=R.useState();return{...un({mutationFn:d=>(a(!1),xh.Fetch({body:d,headers:e==null?void 0:e.headers},{creatorFn:e==null?void 0:e.creatorFn,qs:e==null?void 0:e.qs,ctx:n,onMessage:e==null?void 0:e.onMessage,overrideUrl:e==null?void 0:e.overrideUrl}).then(f=>(f.done.then(()=>{a(!0)}),o(f.response),f.response.result)))}),isCompleted:r,response:i}};class xh{}wE=xh;xh.URL="/workspace/passport/request-otp";xh.NewUrl=e=>Vs(wE.URL,void 0,e);xh.Method="post";xh.Fetch$=async(e,t,n,r)=>qs(r??wE.NewUrl(e),{method:wE.Method,...n||{}},t);xh.Fetch=async(e,{creatorFn:t,qs:n,ctx:r,onMessage:a,overrideUrl:i}={creatorFn:o=>new wv(o)})=>{t=t||(l=>new wv(l));const o=await wE.Fetch$(n,r,e,i);return Hs(o,l=>{const u=new us;return t&&u.setCreator(t),u.inject(l),u},a,e==null?void 0:e.signal)};xh.Definition={name:"ClassicPassportRequestOtp",cliName:"otp-request",url:"/workspace/passport/request-otp",method:"post",description:"Triggers an otp request, and will send an sms or email to the passport. This endpoint is not used for login, but rather makes a request at initial step. Later you can call classicPassportOtp to get in.",in:{fields:[{name:"value",description:"Passport value (email, phone number) which would be receiving the otp code.",type:"string",tags:{validate:"required"}}]},out:{envelope:"GResponse",fields:[{name:"suspendUntil",type:"int64"},{name:"validUntil",type:"int64"},{name:"blockedUntil",type:"int64"},{name:"secondsToUnblock",description:"The amount of time left to unblock for next request",type:"int64"}]}};var Fg=Yv("value"),FA=Yv("isJsonAppliable");class Wb{get value(){return Li(this,Fg)[Fg]}set value(t){Li(this,Fg)[Fg]=String(t)}setValue(t){return this.value=t,this}constructor(t=void 0){if(Object.defineProperty(this,FA,{value:e$e}),Object.defineProperty(this,Fg,{writable:!0,value:""}),t!=null)if(typeof t=="string")this.applyFromObject(JSON.parse(t));else if(Li(this,FA)[FA](t))this.applyFromObject(t);else throw new Error("Instance cannot be created on an unknown value, check the content being passed. got: "+typeof t)}applyFromObject(t={}){const n=t;n.value!==void 0&&(this.value=n.value)}toJSON(){return{value:Li(this,Fg)[Fg]}}toString(){return JSON.stringify(this)}static get Fields(){return{value:"value"}}static from(t){return new Wb(t)}static with(t){return new Wb(t)}copyWith(t){return new Wb({...this.toJSON(),...t})}clone(){return new Wb(this.toJSON())}}function e$e(e){const t=globalThis,n=typeof t.Buffer<"u"&&typeof t.Buffer.isBuffer=="function"&&t.Buffer.isBuffer(e),r=typeof t.Blob<"u"&&e instanceof t.Blob;return e&&typeof e=="object"&&!Array.isArray(e)&&!n&&!(e instanceof ArrayBuffer)&&!r}var jg=Yv("suspendUntil"),Ug=Yv("validUntil"),Bg=Yv("blockedUntil"),Wg=Yv("secondsToUnblock"),jA=Yv("isJsonAppliable");class wv{get suspendUntil(){return Li(this,jg)[jg]}set suspendUntil(t){const r=typeof t=="number"?t:Number(t);Number.isNaN(r)||(Li(this,jg)[jg]=r)}setSuspendUntil(t){return this.suspendUntil=t,this}get validUntil(){return Li(this,Ug)[Ug]}set validUntil(t){const r=typeof t=="number"?t:Number(t);Number.isNaN(r)||(Li(this,Ug)[Ug]=r)}setValidUntil(t){return this.validUntil=t,this}get blockedUntil(){return Li(this,Bg)[Bg]}set blockedUntil(t){const r=typeof t=="number"?t:Number(t);Number.isNaN(r)||(Li(this,Bg)[Bg]=r)}setBlockedUntil(t){return this.blockedUntil=t,this}get secondsToUnblock(){return Li(this,Wg)[Wg]}set secondsToUnblock(t){const r=typeof t=="number"?t:Number(t);Number.isNaN(r)||(Li(this,Wg)[Wg]=r)}setSecondsToUnblock(t){return this.secondsToUnblock=t,this}constructor(t=void 0){if(Object.defineProperty(this,jA,{value:t$e}),Object.defineProperty(this,jg,{writable:!0,value:0}),Object.defineProperty(this,Ug,{writable:!0,value:0}),Object.defineProperty(this,Bg,{writable:!0,value:0}),Object.defineProperty(this,Wg,{writable:!0,value:0}),t!=null)if(typeof t=="string")this.applyFromObject(JSON.parse(t));else if(Li(this,jA)[jA](t))this.applyFromObject(t);else throw new Error("Instance cannot be created on an unknown value, check the content being passed. got: "+typeof t)}applyFromObject(t={}){const n=t;n.suspendUntil!==void 0&&(this.suspendUntil=n.suspendUntil),n.validUntil!==void 0&&(this.validUntil=n.validUntil),n.blockedUntil!==void 0&&(this.blockedUntil=n.blockedUntil),n.secondsToUnblock!==void 0&&(this.secondsToUnblock=n.secondsToUnblock)}toJSON(){return{suspendUntil:Li(this,jg)[jg],validUntil:Li(this,Ug)[Ug],blockedUntil:Li(this,Bg)[Bg],secondsToUnblock:Li(this,Wg)[Wg]}}toString(){return JSON.stringify(this)}static get Fields(){return{suspendUntil:"suspendUntil",validUntil:"validUntil",blockedUntil:"blockedUntil",secondsToUnblock:"secondsToUnblock"}}static from(t){return new wv(t)}static with(t){return new wv(t)}copyWith(t){return new wv({...this.toJSON(),...t})}clone(){return new wv(this.toJSON())}}function t$e(e){const t=globalThis,n=typeof t.Buffer<"u"&&typeof t.Buffer.isBuffer=="function"&&t.Buffer.isBuffer(e),r=typeof t.Blob<"u"&&e instanceof t.Blob;return e&&typeof e=="object"&&!Array.isArray(e)&&!n&&!(e instanceof ArrayBuffer)&&!r}const n$e=()=>{const e=Kt(xa),{goBack:t,state:n,push:r}=xr(),{locale:a}=sr(),{onComplete:i}=QE(),o=Fne(),l=n==null?void 0:n.canContinueOnOtp,u=ZDe(),d=h=>{o.mutateAsync(new Su({value:h.value,password:h.password})).then(y).catch(v=>{f==null||f.setErrors(S0(v))})},f=tf({initialValues:{},onSubmit:d}),g=()=>{u.mutateAsync(new Wb({value:f.values.value})).then(h=>{r("../otp",void 0,{value:f.values.value})}).catch(h=>{h.error.message==="OtaRequestBlockedUntil"&&r("../otp",void 0,{value:f.values.value})})};R.useEffect(()=>{n!=null&&n.value&&f.setFieldValue(Su.Fields.value,n.value)},[n==null?void 0:n.value]);const y=h=>{var v,E;h.data.item.session?i(h):(v=h.data.item.next)!=null&&v.includes("enter-totp")?r(`/${a}/selfservice/totp-enter`,void 0,{value:f.values.value,password:f.values.password}):(E=h.data.item.next)!=null&&E.includes("setup-totp")&&r(`/${a}/selfservice/totp-setup`,void 0,{totpUrl:h.data.item.totpUrl,forcedTotp:!0,password:f.values.password,value:n==null?void 0:n.value})};return{mutation:o,otpEnabled:l,continueWithOtp:g,form:f,submit:d,goBack:t,s:e}},r$e=({})=>{const{goBack:e,mutation:t,form:n,continueWithOtp:r,otpEnabled:a,s:i}=n$e();return w.jsxs("div",{className:"signin-form-container",children:[w.jsx("h1",{children:i.enterPassword}),w.jsx("p",{children:i.enterPasswordDescription}),w.jsx(Il,{query:t}),w.jsx(a$e,{form:n,mutation:t,continueWithOtp:r,otpEnabled:a}),w.jsx("button",{id:"go-back-button",onClick:e,className:"btn bg-transparent w-100 mt-4",children:i.anotherAccount})]})},a$e=({form:e,mutation:t,otpEnabled:n,continueWithOtp:r})=>{const a=Kt(xa),i=!e.values.value||!e.values.password;return w.jsxs("form",{onSubmit:o=>{o.preventDefault(),e.submitForm()},children:[w.jsx(In,{type:"password",value:e.values.password,label:a.password,id:"password-input",autoFocus:!0,errorMessage:e.errors.password,onChange:o=>e.setFieldValue(Su.Fields.password,o,!1)}),w.jsx(Ws,{className:"btn btn-primary w-100 d-block mb-2",mutation:t,id:"submit-form",disabled:i,children:a.continue}),n&&w.jsx("button",{onClick:r,className:"bg-transparent border-0 mt-3 mb-3",children:a.useOneTimePassword})]})};var SE;function Fa(e,t){if(!{}.hasOwnProperty.call(e,t))throw new TypeError("attempted to use private field on non-instance");return e}var i$e=0;function _h(e){return"__private_"+i$e+++"_"+e}const o$e=e=>{const t=Gs(),n=(e==null?void 0:e.ctx)??t??void 0,[r,a]=R.useState(!1),[i,o]=R.useState();return{...un({mutationFn:d=>(a(!1),Oh.Fetch({body:d,headers:e==null?void 0:e.headers},{creatorFn:e==null?void 0:e.creatorFn,qs:e==null?void 0:e.qs,ctx:n,onMessage:e==null?void 0:e.onMessage,overrideUrl:e==null?void 0:e.overrideUrl}).then(f=>(f.done.then(()=>{a(!0)}),o(f.response),f.response.result))),...e||{}}),isCompleted:r,response:i}};class Oh{}SE=Oh;Oh.URL="/workspace/passport/otp";Oh.NewUrl=e=>Vs(SE.URL,void 0,e);Oh.Method="post";Oh.Fetch$=async(e,t,n,r)=>qs(r??SE.NewUrl(e),{method:SE.Method,...n||{}},t);Oh.Fetch=async(e,{creatorFn:t,qs:n,ctx:r,onMessage:a,overrideUrl:i}={creatorFn:o=>new Ev(o)})=>{t=t||(l=>new Ev(l));const o=await SE.Fetch$(n,r,e,i);return Hs(o,l=>{const u=new us;return t&&u.setCreator(t),u.inject(l),u},a,e==null?void 0:e.signal)};Oh.Definition={name:"ClassicPassportOtp",cliName:"otp",url:"/workspace/passport/otp",method:"post",description:"Authenticate the user publicly for classic methods using communication service, such as sms, call, or email. You need to call classicPassportRequestOtp beforehand to send a otp code, and then validate it with this API. Also checkClassicPassport action might already sent the otp, so make sure you don't send it twice.",in:{fields:[{name:"value",type:"string",tags:{validate:"required"}},{name:"otp",type:"string",tags:{validate:"required"}}]},out:{envelope:"GResponse",fields:[{name:"session",description:"Upon successful authentication, there will be a session dto generated, which is a ground information of authorized user and can be stored in front-end.",type:"one?",target:"UserSessionDto"},{name:"totpUrl",description:"If time based otp is available, we add it response to make it easier for ui.",type:"string"},{name:"sessionSecret",description:"The session secret will be used to call complete user registration api.",type:"string"},{name:"continueWithCreation",description:"If return true, means the OTP is correct and user needs to be created before continue the authentication process.",type:"bool"}]}};var zg=_h("value"),qg=_h("otp"),UA=_h("isJsonAppliable");class Sv{get value(){return Fa(this,zg)[zg]}set value(t){Fa(this,zg)[zg]=String(t)}setValue(t){return this.value=t,this}get otp(){return Fa(this,qg)[qg]}set otp(t){Fa(this,qg)[qg]=String(t)}setOtp(t){return this.otp=t,this}constructor(t=void 0){if(Object.defineProperty(this,UA,{value:s$e}),Object.defineProperty(this,zg,{writable:!0,value:""}),Object.defineProperty(this,qg,{writable:!0,value:""}),t!=null)if(typeof t=="string")this.applyFromObject(JSON.parse(t));else if(Fa(this,UA)[UA](t))this.applyFromObject(t);else throw new Error("Instance cannot be created on an unknown value, check the content being passed. got: "+typeof t)}applyFromObject(t={}){const n=t;n.value!==void 0&&(this.value=n.value),n.otp!==void 0&&(this.otp=n.otp)}toJSON(){return{value:Fa(this,zg)[zg],otp:Fa(this,qg)[qg]}}toString(){return JSON.stringify(this)}static get Fields(){return{value:"value",otp:"otp"}}static from(t){return new Sv(t)}static with(t){return new Sv(t)}copyWith(t){return new Sv({...this.toJSON(),...t})}clone(){return new Sv(this.toJSON())}}function s$e(e){const t=globalThis,n=typeof t.Buffer<"u"&&typeof t.Buffer.isBuffer=="function"&&t.Buffer.isBuffer(e),r=typeof t.Blob<"u"&&e instanceof t.Blob;return e&&typeof e=="object"&&!Array.isArray(e)&&!n&&!(e instanceof ArrayBuffer)&&!r}var yd=_h("session"),Hg=_h("totpUrl"),Vg=_h("sessionSecret"),Gg=_h("continueWithCreation"),BA=_h("isJsonAppliable");class Ev{get session(){return Fa(this,yd)[yd]}set session(t){t instanceof Dr?Fa(this,yd)[yd]=t:Fa(this,yd)[yd]=new Dr(t)}setSession(t){return this.session=t,this}get totpUrl(){return Fa(this,Hg)[Hg]}set totpUrl(t){Fa(this,Hg)[Hg]=String(t)}setTotpUrl(t){return this.totpUrl=t,this}get sessionSecret(){return Fa(this,Vg)[Vg]}set sessionSecret(t){Fa(this,Vg)[Vg]=String(t)}setSessionSecret(t){return this.sessionSecret=t,this}get continueWithCreation(){return Fa(this,Gg)[Gg]}set continueWithCreation(t){Fa(this,Gg)[Gg]=!!t}setContinueWithCreation(t){return this.continueWithCreation=t,this}constructor(t=void 0){if(Object.defineProperty(this,BA,{value:l$e}),Object.defineProperty(this,yd,{writable:!0,value:void 0}),Object.defineProperty(this,Hg,{writable:!0,value:""}),Object.defineProperty(this,Vg,{writable:!0,value:""}),Object.defineProperty(this,Gg,{writable:!0,value:void 0}),t!=null)if(typeof t=="string")this.applyFromObject(JSON.parse(t));else if(Fa(this,BA)[BA](t))this.applyFromObject(t);else throw new Error("Instance cannot be created on an unknown value, check the content being passed. got: "+typeof t)}applyFromObject(t={}){const n=t;n.session!==void 0&&(this.session=n.session),n.totpUrl!==void 0&&(this.totpUrl=n.totpUrl),n.sessionSecret!==void 0&&(this.sessionSecret=n.sessionSecret),n.continueWithCreation!==void 0&&(this.continueWithCreation=n.continueWithCreation)}toJSON(){return{session:Fa(this,yd)[yd],totpUrl:Fa(this,Hg)[Hg],sessionSecret:Fa(this,Vg)[Vg],continueWithCreation:Fa(this,Gg)[Gg]}}toString(){return JSON.stringify(this)}static get Fields(){return{session:"session",totpUrl:"totpUrl",sessionSecret:"sessionSecret",continueWithCreation:"continueWithCreation"}}static from(t){return new Ev(t)}static with(t){return new Ev(t)}copyWith(t){return new Ev({...this.toJSON(),...t})}clone(){return new Ev(this.toJSON())}}function l$e(e){const t=globalThis,n=typeof t.Buffer<"u"&&typeof t.Buffer.isBuffer=="function"&&t.Buffer.isBuffer(e),r=typeof t.Blob<"u"&&e instanceof t.Blob;return e&&typeof e=="object"&&!Array.isArray(e)&&!n&&!(e instanceof ArrayBuffer)&&!r}const u$e=()=>{const{goBack:e,state:t,replace:n,push:r}=xr(),{locale:a}=sr(),i=Kt(xa),o=o$e({}),{onComplete:l}=QE(),u=g=>{o.mutateAsync(new Sv({...g,value:t.value})).then(f).catch(y=>{d==null||d.setErrors(S0(y))})},d=tf({initialValues:{},onSubmit:u}),f=g=>{var y,h,v,E,T;(y=g.data)!=null&&y.item.session?l(g):(v=(h=g.data)==null?void 0:h.item)!=null&&v.continueWithCreation&&r(`/${a}/selfservice/complete`,void 0,{value:t.value,type:t.type,sessionSecret:(E=g.data.item)==null?void 0:E.sessionSecret,totpUrl:(T=g.data.item)==null?void 0:T.totpUrl})};return{mutation:o,form:d,s:i,submit:u,goBack:e}},c$e=({})=>{const{goBack:e,mutation:t,form:n,s:r}=u$e();return w.jsxs("div",{className:"signin-form-container",children:[w.jsx("h1",{children:r.enterOtp}),w.jsx("p",{children:r.enterOtpDescription}),w.jsx(Il,{query:t}),w.jsx(d$e,{form:n,mutation:t}),w.jsx("button",{id:"go-back-button",className:"btn bg-transparent w-100 mt-4",onClick:e,children:r.anotherAccount})]})},d$e=({form:e,mutation:t})=>{var a;const n=!e.values.otp,r=Kt(xa);return w.jsxs("form",{onSubmit:i=>{i.preventDefault(),e.submitForm()},children:[w.jsx(JE,{values:(a=e.values.otp)==null?void 0:a.split(""),onChange:i=>e.setFieldValue(Sv.Fields.otp,i,!1),className:"otp-react-code-input"}),w.jsx(Ws,{className:"btn btn-primary w-100 d-block mb-2",mutation:t,id:"submit-form",disabled:n,children:r.continue})]})};class $s extends wn{constructor(...t){super(...t),this.children=void 0,this.role=void 0,this.roleId=void 0,this.workspace=void 0}}$s.Navigation={edit(e,t){return`${t?"/"+t:".."}/public-join-key/edit/${e}`},create(e){return`${e?"/"+e:".."}/public-join-key/new`},single(e,t){return`${t?"/"+t:".."}/public-join-key/${e}`},query(e={},t){return`${t?"/"+t:".."}/public-join-keys`},Redit:"public-join-key/edit/:uniqueId",Rcreate:"public-join-key/new",Rsingle:"public-join-key/:uniqueId",Rquery:"public-join-keys"};$s.definition={rpc:{query:{}},name:"publicJoinKey",features:{},gormMap:{},fields:[{name:"role",type:"one",target:"RoleEntity",computedType:"RoleEntity",gormMap:{}},{name:"workspace",type:"one",target:"WorkspaceEntity",computedType:"WorkspaceEntity",gormMap:{}}],description:"Joining to different workspaces using a public link directly"};$s.Fields={...wn.Fields,roleId:"roleId",role$:"role",role:ri.Fields,workspace$:"workspace",workspace:yi.Fields};function Qne({queryOptions:e,execFnOverride:t,query:n,queryClient:r,unauthorized:a}){var T;const{options:i,execFn:o}=R.useContext(rt),l=t?t(i):o?o(i):St(i);let d=`${"/public-join-key/:uniqueId".substr(1)}?${new URLSearchParams(Gt(n)).toString()}`,f=!0;d=d.replace(":uniqueId",n[":uniqueId".replace(":","")]),n[":uniqueId".replace(":","")]===void 0&&(f=!1);const g=()=>l("GET",d),y=(T=i==null?void 0:i.headers)==null?void 0:T.authorization,h=y!="undefined"&&y!=null&&y!=null&&y!="null"&&!!y;let v=!0;return f?!h&&!a&&(v=!1):v=!1,{query:jn([i,n,"*abac.PublicJoinKeyEntity"],g,{cacheTime:1001,retry:!1,keepPreviousData:!0,enabled:v,...e||{}})}}function f$e(e){let{queryClient:t,query:n,execFnOverride:r}=e||{};n=n||{};const{options:a,execFn:i}=R.useContext(rt),o=r?r(a):i?i(a):St(a);let u=`${"/public-join-key".substr(1)}?${new URLSearchParams(Gt(n)).toString()}`;const f=un(h=>o("PATCH",u,h)),g=(h,v)=>{var E;return h?(h.data&&(v!=null&&v.data)&&(h.data.items=[v.data,...((E=h==null?void 0:h.data)==null?void 0:E.items)||[]]),h):{data:{items:[]}}};return{mutation:f,submit:(h,v)=>new Promise((E,T)=>{f.mutate(h,{onSuccess(C){t==null||t.setQueriesData("*abac.PublicJoinKeyEntity",k=>g(k,C)),E(C)},onError(C){v==null||v.setErrors(Pn(C)),T(C)}})}),fnUpdater:g}}function p$e(e){let{queryClient:t,query:n,execFnOverride:r}=e||{};n=n||{};const{options:a,execFn:i}=R.useContext(rt),o=r?r(a):i?i(a):St(a);let u=`${"/public-join-key".substr(1)}?${new URLSearchParams(Gt(n)).toString()}`;const f=un(h=>o("POST",u,h)),g=(h,v)=>{var E;return h?(h.data&&(v!=null&&v.data)&&(h.data.items=[v.data,...((E=h==null?void 0:h.data)==null?void 0:E.items)||[]]),h):{data:{items:[]}}};return{mutation:f,submit:(h,v)=>new Promise((E,T)=>{f.mutate(h,{onSuccess(C){t==null||t.setQueryData("*abac.PublicJoinKeyEntity",k=>g(k,C)),E(C)},onError(C){v==null||v.setErrors(Pn(C)),T(C)}})}),fnUpdater:g}}const h$e=({form:e,isEditing:t})=>{const{values:n,setValues:r,setFieldValue:a,errors:i}=e,{options:o}=R.useContext(rt),l=At();return w.jsx(w.Fragment,{children:w.jsx(da,{formEffect:{field:$s.Fields.role$,form:e},querySource:af,label:l.wokspaces.invite.role,errorMessage:i.roleId,fnLabelFormat:u=>u.name,hint:l.wokspaces.invite.roleHint})})},gz=({data:e})=>{const{router:t,uniqueId:n,queryClient:r,t:a}=$r({data:e}),i=Qne({query:{uniqueId:n}}),o=p$e({queryClient:r}),l=f$e({queryClient:r});return w.jsx(Bo,{postHook:o,getSingleHook:i,patchHook:l,onCancel:()=>{t.goBackOrDefault($s.Navigation.query())},onFinishUriResolver:(u,d)=>{var f;return $s.Navigation.single((f=u.data)==null?void 0:f.uniqueId)},Form:h$e,onEditTitle:a.fb.editPublicJoinKey,onCreateTitle:a.fb.newPublicJoinKey,data:e})},m$e=()=>{var i,o;const e=xr(),t=At(),n=e.query.uniqueId;sr();const r=Qne({query:{uniqueId:n}});var a=(i=r.query.data)==null?void 0:i.data;return w.jsx(w.Fragment,{children:w.jsx(io,{editEntityHandler:()=>{e.push($s.Navigation.edit(n))},getSingleHook:r,children:w.jsx(oo,{entity:a,fields:[{label:t.role.name,elem:(o=a==null?void 0:a.role)==null?void 0:o.name}]})})})};function g$e(e){const{execFnOverride:t,queryClient:n,query:r}=e||{},{options:a,execFn:i}=R.useContext(rt),o=t?t(a):i?i(a):St(a);let u=`${"/public-join-key".substr(1)}?${new URLSearchParams(Gt(r)).toString()}`;const f=un(h=>o("DELETE",u,h)),g=(h,v)=>h;return{mutation:f,submit:(h,v)=>new Promise((E,T)=>{f.mutate(h,{onSuccess(C){n==null||n.setQueryData("*abac.PublicJoinKeyEntity",k=>g(k)),n==null||n.invalidateQueries("*abac.PublicJoinKeyEntity"),E(C)},onError(C){v==null||v.setErrors(Pn(C)),T(C)}})}),fnUpdater:g}}function Jne({queryOptions:e,query:t,queryClient:n,execFnOverride:r,unauthorized:a,optionFn:i}){var k,_,A;const{options:o,execFn:l}=R.useContext(rt),u=i?i(o):o,d=r?r(u):l?l(u):St(u);let g=`${"/public-join-keys".substr(1)}?${qa.stringify(t)}`;const y=()=>d("GET",g),h=(k=u==null?void 0:u.headers)==null?void 0:k.authorization,v=h!="undefined"&&h!=null&&h!=null&&h!="null"&&!!h;let E=!0;!v&&!a&&(E=!1);const T=jn(["*abac.PublicJoinKeyEntity",u,t],y,{cacheTime:1e3,retry:!1,keepPreviousData:!0,enabled:E,...e||{}}),C=((A=(_=T.data)==null?void 0:_.data)==null?void 0:A.items)||[];return{query:T,items:C,keyExtractor:P=>P.uniqueId}}Jne.UKEY="*abac.PublicJoinKeyEntity";const v$e={roleName:"Role name",uniqueId:"Unique Id"},y$e={roleName:"Nazwa roli",uniqueId:"Unikalny identyfikator"},b$e={...v$e,$pl:y$e},w$e=e=>[{name:"uniqueId",title:e.uniqueId,width:200},{name:"role",title:e.roleName,width:200,getCellValue:t=>{var n;return(n=t.role)==null?void 0:n.name}}],S$e=()=>{const e=Kt(b$e);return w.jsx(w.Fragment,{children:w.jsx(Uo,{columns:w$e(e),queryHook:Jne,uniqueIdHrefHandler:t=>$s.Navigation.single(t),deleteHook:g$e})})},E$e=()=>{const e=At();return w.jsx(w.Fragment,{children:w.jsx(jo,{pageTitle:e.fbMenu.publicJoinKey,newEntityHandler:({locale:t,router:n})=>{n.push($s.Navigation.create())},children:w.jsx(S$e,{})})})};function T$e(){return w.jsxs(w.Fragment,{children:[w.jsx(mt,{element:w.jsx(gz,{}),path:$s.Navigation.Rcreate}),w.jsx(mt,{element:w.jsx(m$e,{}),path:$s.Navigation.Rsingle}),w.jsx(mt,{element:w.jsx(gz,{}),path:$s.Navigation.Redit}),w.jsx(mt,{element:w.jsx(E$e,{}),path:$s.Navigation.Rquery})]})}function Zne({queryOptions:e,execFnOverride:t,query:n,queryClient:r,unauthorized:a}){var T;const{options:i,execFn:o}=R.useContext(rt),l=t?t(i):o?o(i):St(i);let d=`${"/role/:uniqueId".substr(1)}?${new URLSearchParams(Gt(n)).toString()}`,f=!0;d=d.replace(":uniqueId",n[":uniqueId".replace(":","")]),n[":uniqueId".replace(":","")]===void 0&&(f=!1);const g=()=>l("GET",d),y=(T=i==null?void 0:i.headers)==null?void 0:T.authorization,h=y!="undefined"&&y!=null&&y!=null&&y!="null"&&!!y;let v=!0;return f?!h&&!a&&(v=!1):v=!1,{query:jn([i,n,"*abac.RoleEntity"],g,{cacheTime:1001,retry:!1,keepPreviousData:!0,enabled:v,...e||{}})}}function C$e(e){let{queryClient:t,query:n,execFnOverride:r}=e||{};n=n||{};const{options:a,execFn:i}=R.useContext(rt),o=r?r(a):i?i(a):St(a);let u=`${"/role".substr(1)}?${new URLSearchParams(Gt(n)).toString()}`;const f=un(h=>o("PATCH",u,h)),g=(h,v)=>{var E;return h?(h.data&&(v!=null&&v.data)&&(h.data.items=[v.data,...((E=h==null?void 0:h.data)==null?void 0:E.items)||[]]),h):{data:{items:[]}}};return{mutation:f,submit:(h,v)=>new Promise((E,T)=>{f.mutate(h,{onSuccess(C){t==null||t.setQueriesData("*abac.RoleEntity",k=>g(k,C)),E(C)},onError(C){v==null||v.setErrors(Pn(C)),T(C)}})}),fnUpdater:g}}function k$e(e){let{queryClient:t,query:n,execFnOverride:r}=e||{};n=n||{};const{options:a,execFn:i}=R.useContext(rt),o=r?r(a):i?i(a):St(a);let u=`${"/role".substr(1)}?${new URLSearchParams(Gt(n)).toString()}`;const f=un(h=>o("POST",u,h)),g=(h,v)=>{var E;return h?(h.data&&(v!=null&&v.data)&&(h.data.items=[v.data,...((E=h==null?void 0:h.data)==null?void 0:E.items)||[]]),h):{data:{items:[]}}};return{mutation:f,submit:(h,v)=>new Promise((E,T)=>{f.mutate(h,{onSuccess(C){t==null||t.setQueryData("*abac.RoleEntity",k=>g(k,C)),E(C)},onError(C){v==null||v.setErrors(Pn(C)),T(C)}})}),fnUpdater:g}}function x$e({value:e,onChange:t,...n}){const r=R.useRef();return R.useEffect(()=>{r.current.indeterminate=e==="indeterminate"},[r,e]),w.jsx("input",{...n,type:"checkbox",ref:r,onChange:a=>{t("checked")},checked:e==="checked",className:"form-check-input"})}function mu(e,t){if(!{}.hasOwnProperty.call(e,t))throw new TypeError("attempted to use private field on non-instance");return e}var _$e=0;function F_(e){return"__private_"+_$e+++"_"+e}var Yg=F_("uniqueId"),Kg=F_("name"),bd=F_("children"),WA=F_("isJsonAppliable");class as{get uniqueId(){return mu(this,Yg)[Yg]}set uniqueId(t){mu(this,Yg)[Yg]=String(t)}setUniqueId(t){return this.uniqueId=t,this}get name(){return mu(this,Kg)[Kg]}set name(t){mu(this,Kg)[Kg]=String(t)}setName(t){return this.name=t,this}get children(){return mu(this,bd)[bd]}set children(t){Array.isArray(t)&&(t.length>0&&t[0]instanceof as?mu(this,bd)[bd]=t:mu(this,bd)[bd]=t.map(n=>new as(n)))}setChildren(t){return this.children=t,this}constructor(t=void 0){if(Object.defineProperty(this,WA,{value:O$e}),Object.defineProperty(this,Yg,{writable:!0,value:""}),Object.defineProperty(this,Kg,{writable:!0,value:""}),Object.defineProperty(this,bd,{writable:!0,value:[]}),t!=null)if(typeof t=="string")this.applyFromObject(JSON.parse(t));else if(mu(this,WA)[WA](t))this.applyFromObject(t);else throw new Error("Instance cannot be created on an unknown value, check the content being passed. got: "+typeof t)}applyFromObject(t={}){const n=t;n.uniqueId!==void 0&&(this.uniqueId=n.uniqueId),n.name!==void 0&&(this.name=n.name),n.children!==void 0&&(this.children=n.children)}toJSON(){return{uniqueId:mu(this,Yg)[Yg],name:mu(this,Kg)[Kg],children:mu(this,bd)[bd]}}toString(){return JSON.stringify(this)}static get Fields(){return{uniqueId:"uniqueId",name:"name",children$:"children",get children(){return Wd("children[:i]",as.Fields)}}}static from(t){return new as(t)}static with(t){return new as(t)}copyWith(t){return new as({...this.toJSON(),...t})}clone(){return new as(this.toJSON())}}function O$e(e){const t=globalThis,n=typeof t.Buffer<"u"&&typeof t.Buffer.isBuffer=="function"&&t.Buffer.isBuffer(e),r=typeof t.Blob<"u"&&e instanceof t.Blob;return e&&typeof e=="object"&&!Array.isArray(e)&&!n&&!(e instanceof ArrayBuffer)&&!r}var EE;function wd(e,t){if(!{}.hasOwnProperty.call(e,t))throw new TypeError("attempted to use private field on non-instance");return e}var R$e=0;function zj(e){return"__private_"+R$e+++"_"+e}const P$e=e=>{const t=Gs(),n=(e==null?void 0:e.ctx)??t??void 0,[r,a]=R.useState(!1),[i,o]=R.useState(),l=()=>(a(!1),Yd.Fetch({headers:e==null?void 0:e.headers},{creatorFn:e==null?void 0:e.creatorFn,qs:e==null?void 0:e.qs,ctx:n,onMessage:e==null?void 0:e.onMessage,overrideUrl:e==null?void 0:e.overrideUrl}).then(d=>(d.done.then(()=>{a(!0)}),o(d.response),d.response.result)));return{...jn({queryKey:[Yd.NewUrl(e==null?void 0:e.qs)],queryFn:l,...e||{}}),isCompleted:r,response:i}};class Yd{}EE=Yd;Yd.URL="/capabilitiesTree";Yd.NewUrl=e=>Vs(EE.URL,void 0,e);Yd.Method="get";Yd.Fetch$=async(e,t,n,r)=>qs(r??EE.NewUrl(e),{method:EE.Method,...n||{}},t);Yd.Fetch=async(e,{creatorFn:t,qs:n,ctx:r,onMessage:a,overrideUrl:i}={creatorFn:o=>new Tv(o)})=>{t=t||(l=>new Tv(l));const o=await EE.Fetch$(n,r,e,i);return Hs(o,l=>{const u=new us;return t&&u.setCreator(t),u.inject(l),u},a,e==null?void 0:e.signal)};Yd.Definition={name:"CapabilitiesTree",cliName:"treex",url:"/capabilitiesTree",method:"get",description:"dLists all of the capabilities in database as a array of string as root access",out:{envelope:"GResponse",fields:[{name:"capabilities",type:"collection",target:"CapabilityInfoDto"},{name:"nested",type:"collection",target:"CapabilityInfoDto"}]}};var Sd=zj("capabilities"),Ed=zj("nested"),zA=zj("isJsonAppliable");class Tv{get capabilities(){return wd(this,Sd)[Sd]}set capabilities(t){Array.isArray(t)&&(t.length>0&&t[0]instanceof as?wd(this,Sd)[Sd]=t:wd(this,Sd)[Sd]=t.map(n=>new as(n)))}setCapabilities(t){return this.capabilities=t,this}get nested(){return wd(this,Ed)[Ed]}set nested(t){Array.isArray(t)&&(t.length>0&&t[0]instanceof as?wd(this,Ed)[Ed]=t:wd(this,Ed)[Ed]=t.map(n=>new as(n)))}setNested(t){return this.nested=t,this}constructor(t=void 0){if(Object.defineProperty(this,zA,{value:A$e}),Object.defineProperty(this,Sd,{writable:!0,value:[]}),Object.defineProperty(this,Ed,{writable:!0,value:[]}),t!=null)if(typeof t=="string")this.applyFromObject(JSON.parse(t));else if(wd(this,zA)[zA](t))this.applyFromObject(t);else throw new Error("Instance cannot be created on an unknown value, check the content being passed. got: "+typeof t)}applyFromObject(t={}){const n=t;n.capabilities!==void 0&&(this.capabilities=n.capabilities),n.nested!==void 0&&(this.nested=n.nested)}toJSON(){return{capabilities:wd(this,Sd)[Sd],nested:wd(this,Ed)[Ed]}}toString(){return JSON.stringify(this)}static get Fields(){return{capabilities$:"capabilities",get capabilities(){return Wd("capabilities[:i]",as.Fields)},nested$:"nested",get nested(){return Wd("nested[:i]",as.Fields)}}}static from(t){return new Tv(t)}static with(t){return new Tv(t)}copyWith(t){return new Tv({...this.toJSON(),...t})}clone(){return new Tv(this.toJSON())}}function A$e(e){const t=globalThis,n=typeof t.Buffer<"u"&&typeof t.Buffer.isBuffer=="function"&&t.Buffer.isBuffer(e),r=typeof t.Blob<"u"&&e instanceof t.Blob;return e&&typeof e=="object"&&!Array.isArray(e)&&!n&&!(e instanceof ArrayBuffer)&&!r}function ere({onChange:e,value:t,prefix:n}){var l,u;const{data:r,error:a}=P$e({}),i=((u=(l=r==null?void 0:r.data)==null?void 0:l.item)==null?void 0:u.nested)||[],o=(d,f)=>{let g=[...t||[]];f==="checked"&&g.push(d),f==="unchecked"&&(g=g.filter(y=>y!==d)),e&&e(g)};return w.jsxs("nav",{className:"tree-nav",children:[w.jsx(P0,{error:a}),w.jsx("ul",{className:"list",children:w.jsx(tre,{items:i,onNodeChange:o,value:t,prefix:n})})]})}function tre({items:e,onNodeChange:t,value:n,prefix:r,autoChecked:a}){const i=r?r+".":"";return w.jsx(w.Fragment,{children:e.map(o=>{var d;const l=`${i}${o.uniqueId}${(d=o.children)!=null&&d.length?".*":""}`,u=(n||[]).includes(l)?"checked":"unchecked";return w.jsxs("li",{children:[w.jsx("span",{children:w.jsxs("label",{className:a?"auto-checked":"",children:[w.jsx(x$e,{value:u,onChange:f=>{t(l,u==="checked"?"unchecked":"checked")}}),o.uniqueId]})}),o.children&&w.jsx("ul",{children:w.jsx(tre,{autoChecked:a||u==="checked",onNodeChange:t,value:n,items:o.children,prefix:i+o.uniqueId})})]},o.uniqueId)})})}const N$e=(e,t)=>e!=null&&e.length&&!(t!=null&&t.length)?e.map(n=>n.uniqueId):t||[],M$e=({form:e,isEditing:t})=>{const{values:n,setFieldValue:r,errors:a}=e,i=At();return w.jsxs(w.Fragment,{children:[w.jsx(In,{value:n.name,onChange:o=>r(ri.Fields.name,o,!1),errorMessage:a.name,label:i.wokspaces.invite.role,autoFocus:!t,hint:i.wokspaces.invite.roleHint}),w.jsx(ere,{onChange:o=>r(ri.Fields.capabilitiesListId,o,!1),value:N$e(n.capabilities,n.capabilitiesListId)})]})},vz=({data:e})=>{const{router:t,uniqueId:n,queryClient:r,locale:a}=$r({data:e}),i=At(),o=Zne({query:{uniqueId:n},queryOptions:{enabled:!!n}}),l=k$e({queryClient:r}),u=C$e({queryClient:r});return w.jsx(Bo,{postHook:l,getSingleHook:o,patchHook:u,beforeSubmit:d=>{var f;return((f=d.capabilities)==null?void 0:f.length)>0&&d.capabilitiesListId===null?{...d,capabilitiesListId:d.capabilities.map(g=>g.uniqueId)}:d},onCancel:()=>{t.goBackOrDefault(ri.Navigation.query(void 0,a))},onFinishUriResolver:(d,f)=>{var g;return ri.Navigation.single((g=d.data)==null?void 0:g.uniqueId,f)},Form:M$e,onEditTitle:i.fb.editRole,onCreateTitle:i.fb.newRole,data:e})},I$e=()=>{var l;const e=xr();Bs();const t=e.query.uniqueId,n=At();sr();const[r,a]=R.useState([]),i=Zne({query:{uniqueId:t,deep:!0}});var o=(l=i.query.data)==null?void 0:l.data;return N_((o==null?void 0:o.name)||""),R.useEffect(()=>{var u;a((u=o==null?void 0:o.capabilities)==null?void 0:u.map(d=>d.uniqueId||""))},[o==null?void 0:o.capabilities]),w.jsx(w.Fragment,{children:w.jsxs(io,{editEntityHandler:()=>{e.push(ri.Navigation.edit(t))},getSingleHook:i,children:[w.jsx(oo,{entity:o,fields:[{label:n.role.name,elem:o==null?void 0:o.name}]}),w.jsx(Do,{title:n.role.permissions,className:"mt-3",children:w.jsx(ere,{value:r})})]})})},D$e=e=>[{name:ri.Fields.uniqueId,title:e.table.uniqueId,width:200},{name:ri.Fields.name,title:e.role.name,width:200}];function $$e(e){const{execFnOverride:t,queryClient:n,query:r}=e||{},{options:a,execFn:i}=R.useContext(rt),o=t?t(a):i?i(a):St(a);let u=`${"/role".substr(1)}?${new URLSearchParams(Gt(r)).toString()}`;const f=un(h=>o("DELETE",u,h)),g=(h,v)=>h;return{mutation:f,submit:(h,v)=>new Promise((E,T)=>{f.mutate(h,{onSuccess(C){n==null||n.setQueryData("*abac.RoleEntity",k=>g(k)),n==null||n.invalidateQueries("*abac.RoleEntity"),E(C)},onError(C){v==null||v.setErrors(Pn(C)),T(C)}})}),fnUpdater:g}}const L$e=()=>{const e=At();return w.jsx(w.Fragment,{children:w.jsx(Uo,{columns:D$e(e),queryHook:af,uniqueIdHrefHandler:t=>ri.Navigation.single(t),deleteHook:$$e})})},F$e=()=>{const e=At();return xhe(),w.jsx(w.Fragment,{children:w.jsx(jo,{newEntityHandler:({locale:t,router:n})=>n.push(ri.Navigation.create()),pageTitle:e.fbMenu.roles,children:w.jsx(L$e,{})})})};function j$e(){return w.jsxs(w.Fragment,{children:[w.jsx(mt,{element:w.jsx(vz,{}),path:ri.Navigation.Rcreate}),w.jsx(mt,{element:w.jsx(I$e,{}),path:ri.Navigation.Rsingle}),w.jsx(mt,{element:w.jsx(vz,{}),path:ri.Navigation.Redit}),w.jsx(mt,{element:w.jsx(F$e,{}),path:ri.Navigation.Rquery})]})}({...wn.Fields});function nre({queryOptions:e,query:t,queryClient:n,execFnOverride:r,unauthorized:a,optionFn:i}){var k,_,A;const{options:o,execFn:l}=R.useContext(rt),u=i?i(o):o,d=r?r(u):l?l(u):St(u);let g=`${"/users/invitations".substr(1)}?${qa.stringify(t)}`;const y=()=>d("GET",g),h=(k=u==null?void 0:u.headers)==null?void 0:k.authorization,v=h!="undefined"&&h!=null&&h!=null&&h!="null"&&!!h;let E=!0;!v&&!a&&(E=!1);const T=jn(["*abac.UserInvitationsQueryColumns",u,t],y,{cacheTime:1e3,retry:!1,keepPreviousData:!0,enabled:E,...e||{}}),C=((A=(_=T.data)==null?void 0:_.data)==null?void 0:A.items)||[];return{query:T,items:C,keyExtractor:P=>P.uniqueId}}nre.UKEY="*abac.UserInvitationsQueryColumns";const U$e={confirmRejectTitle:"Reject invite",reject:"Reject",workspaceName:"Workspace Name",passport:"Passport",confirmAcceptDescription:"Are you sure that you are confirming to join?",confirmRejectDescription:"Are you sure to reject this invitation? You need to be reinvited by admins again.",acceptBtn:null,accept:"Accept",roleName:"Role name",method:"Method",actions:"Actions",confirmAcceptTitle:"Confirm invitation"},B$e={actions:"Akcje",confirmRejectTitle:"Odrzuć zaproszenie",method:"Metoda",roleName:"Nazwa roli",accept:"Akceptuj",confirmAcceptDescription:"Czy na pewno chcesz dołączyć?",confirmAcceptTitle:"Potwierdź zaproszenie",confirmRejectDescription:"Czy na pewno chcesz odrzucić to zaproszenie? Aby dołączyć ponownie, musisz zostać ponownie zaproszony przez administratorów.",passport:"Paszport",reject:"Odrzuć",workspaceName:"Nazwa przestrzeni roboczej",acceptBtn:"Tak"},W$e={...U$e,$pl:B$e},z$e=(e,t,n)=>[{name:"roleName",title:e.roleName,width:100},{name:"workspaceName",title:e.workspaceName,width:100},{name:"method",title:e.method,width:100,getCellValue:r=>r.type},{name:"value",title:e.passport,width:100,getCellValue:r=>r.value},{name:"actions",title:e.actions,width:100,getCellValue:r=>w.jsxs(w.Fragment,{children:[w.jsx("button",{className:"btn btn-sm btn-success",style:{marginRight:"2px"},onClick:a=>{t(r)},children:e.accept}),w.jsx("button",{onClick:a=>{n(r)},className:"btn btn-sm btn-danger",children:e.reject})]})}];var TE;function Zp(e,t){if(!{}.hasOwnProperty.call(e,t))throw new TypeError("attempted to use private field on non-instance");return e}var q$e=0;function j_(e){return"__private_"+q$e+++"_"+e}const H$e=e=>{const n=Gs()??void 0,[r,a]=R.useState(!1),[i,o]=R.useState();return{...un({mutationFn:d=>(a(!1),Rh.Fetch({body:d,headers:e==null?void 0:e.headers},{creatorFn:e==null?void 0:e.creatorFn,qs:e==null?void 0:e.qs,ctx:n,onMessage:e==null?void 0:e.onMessage,overrideUrl:e==null?void 0:e.overrideUrl}).then(f=>(f.done.then(()=>{a(!0)}),o(f.response),f.response.result)))}),isCompleted:r,response:i}};class Rh{}TE=Rh;Rh.URL="/user/invitation/accept";Rh.NewUrl=e=>Vs(TE.URL,void 0,e);Rh.Method="post";Rh.Fetch$=async(e,t,n,r)=>qs(r??TE.NewUrl(e),{method:TE.Method,...n||{}},t);Rh.Fetch=async(e,{creatorFn:t,qs:n,ctx:r,onMessage:a,overrideUrl:i}={creatorFn:o=>new Cv(o)})=>{t=t||(l=>new Cv(l));const o=await TE.Fetch$(n,r,e,i);return Hs(o,l=>{const u=new us;return t&&u.setCreator(t),u.inject(l),u},a,e==null?void 0:e.signal)};Rh.Definition={name:"AcceptInvite",url:"/user/invitation/accept",method:"post",description:"Use it when user accepts an invitation, and it will complete the joining process",in:{fields:[{name:"invitationUniqueId",description:"The invitation id which will be used to process",type:"string",tags:{validate:"required"}}]},out:{envelope:"GResponse",fields:[{name:"accepted",type:"bool"}]}};var Xg=j_("invitationUniqueId"),qA=j_("isJsonAppliable");class zb{get invitationUniqueId(){return Zp(this,Xg)[Xg]}set invitationUniqueId(t){Zp(this,Xg)[Xg]=String(t)}setInvitationUniqueId(t){return this.invitationUniqueId=t,this}constructor(t=void 0){if(Object.defineProperty(this,qA,{value:V$e}),Object.defineProperty(this,Xg,{writable:!0,value:""}),t!=null)if(typeof t=="string")this.applyFromObject(JSON.parse(t));else if(Zp(this,qA)[qA](t))this.applyFromObject(t);else throw new Error("Instance cannot be created on an unknown value, check the content being passed. got: "+typeof t)}applyFromObject(t={}){const n=t;n.invitationUniqueId!==void 0&&(this.invitationUniqueId=n.invitationUniqueId)}toJSON(){return{invitationUniqueId:Zp(this,Xg)[Xg]}}toString(){return JSON.stringify(this)}static get Fields(){return{invitationUniqueId:"invitationUniqueId"}}static from(t){return new zb(t)}static with(t){return new zb(t)}copyWith(t){return new zb({...this.toJSON(),...t})}clone(){return new zb(this.toJSON())}}function V$e(e){const t=globalThis,n=typeof t.Buffer<"u"&&typeof t.Buffer.isBuffer=="function"&&t.Buffer.isBuffer(e),r=typeof t.Blob<"u"&&e instanceof t.Blob;return e&&typeof e=="object"&&!Array.isArray(e)&&!n&&!(e instanceof ArrayBuffer)&&!r}var Qg=j_("accepted"),HA=j_("isJsonAppliable");class Cv{get accepted(){return Zp(this,Qg)[Qg]}set accepted(t){Zp(this,Qg)[Qg]=!!t}setAccepted(t){return this.accepted=t,this}constructor(t=void 0){if(Object.defineProperty(this,HA,{value:G$e}),Object.defineProperty(this,Qg,{writable:!0,value:void 0}),t!=null)if(typeof t=="string")this.applyFromObject(JSON.parse(t));else if(Zp(this,HA)[HA](t))this.applyFromObject(t);else throw new Error("Instance cannot be created on an unknown value, check the content being passed. got: "+typeof t)}applyFromObject(t={}){const n=t;n.accepted!==void 0&&(this.accepted=n.accepted)}toJSON(){return{accepted:Zp(this,Qg)[Qg]}}toString(){return JSON.stringify(this)}static get Fields(){return{accepted:"accepted"}}static from(t){return new Cv(t)}static with(t){return new Cv(t)}copyWith(t){return new Cv({...this.toJSON(),...t})}clone(){return new Cv(this.toJSON())}}function G$e(e){const t=globalThis,n=typeof t.Buffer<"u"&&typeof t.Buffer.isBuffer=="function"&&t.Buffer.isBuffer(e),r=typeof t.Blob<"u"&&e instanceof t.Blob;return e&&typeof e=="object"&&!Array.isArray(e)&&!n&&!(e instanceof ArrayBuffer)&&!r}const Y$e=()=>{const e=Kt(W$e),t=R.useContext(b_),n=H$e(),r=i=>{t.openModal({title:e.confirmAcceptTitle,confirmButtonLabel:e.acceptBtn,component:()=>w.jsx("div",{children:e.confirmAcceptDescription}),onSubmit:async()=>n.mutateAsync(new zb({invitationUniqueId:i.uniqueId})).then(o=>{alert("Successful.")})})},a=i=>{t.openModal({title:e.confirmRejectTitle,confirmButtonLabel:e.acceptBtn,component:()=>w.jsx("div",{children:e.confirmRejectDescription}),onSubmit:async()=>!0})};return w.jsx(w.Fragment,{children:w.jsx(Uo,{selectable:!1,columns:z$e(e,r,a),queryHook:nre})})},K$e=()=>{const e=At();return w.jsx(w.Fragment,{children:w.jsx(jo,{pageTitle:e.fbMenu.myInvitations,children:w.jsx(Y$e,{})})})};function X$e(){return w.jsx(w.Fragment,{children:w.jsx(mt,{element:w.jsx(K$e,{}),path:"user-invitations"})})}class Ya extends wn{constructor(...t){super(...t),this.children=void 0,this.publicKey=void 0,this.coverLetter=void 0,this.targetUserLocale=void 0,this.email=void 0,this.phonenumber=void 0,this.workspace=void 0,this.firstName=void 0,this.lastName=void 0,this.forceEmailAddress=void 0,this.forcePhoneNumber=void 0,this.role=void 0,this.roleId=void 0}}Ya.Navigation={edit(e,t){return`${t?"/"+t:".."}/workspace-invite/edit/${e}`},create(e){return`${e?"/"+e:".."}/workspace-invite/new`},single(e,t){return`${t?"/"+t:".."}/workspace-invite/${e}`},query(e={},t){return`${t?"/"+t:".."}/workspace-invites`},Redit:"workspace-invite/edit/:uniqueId",Rcreate:"workspace-invite/new",Rsingle:"workspace-invite/:uniqueId",Rquery:"workspace-invites"};Ya.definition={rpc:{query:{}},name:"workspaceInvite",features:{},gormMap:{},fields:[{name:"publicKey",description:"A long hash to get the user into the confirm or signup page without sending the email or phone number, for example if an administrator wants to copy the link.",type:"string",computedType:"string",gormMap:{}},{name:"coverLetter",description:"The content that user will receive to understand the reason of the letter.",type:"string",computedType:"string",gormMap:{}},{name:"targetUserLocale",description:"If the invited person has a different language, then you can define that so the interface for him will be automatically translated.",type:"string",computedType:"string",gormMap:{}},{name:"email",description:"The email address of the person which is invited.",type:"string",computedType:"string",gormMap:{}},{name:"phonenumber",description:"The phone number of the person which is invited.",type:"string",computedType:"string",gormMap:{}},{name:"workspace",description:"Workspace which user is being invite to.",type:"one",target:"WorkspaceEntity",computedType:"WorkspaceEntity",gormMap:{}},{name:"firstName",description:"First name of the person which is invited",type:"string",validate:"required",computedType:"string",gormMap:{}},{name:"lastName",description:"Last name of the person which is invited.",type:"string",validate:"required",computedType:"string",gormMap:{}},{name:"forceEmailAddress",description:"If forced, the email address cannot be changed by the user which has been invited.",type:"bool?",computedType:"boolean",gormMap:{}},{name:"forcePhoneNumber",description:"If forced, user cannot change the phone number and needs to complete signup.",type:"bool?",computedType:"boolean",gormMap:{}},{name:"role",description:"The role which invitee get if they accept the request.",type:"one",target:"RoleEntity",validate:"required",computedType:"RoleEntity",gormMap:{}}],cliShort:"invite",description:"Active invitations for non-users or already users to join an specific workspace, created by administration of the workspace"};Ya.Fields={...wn.Fields,publicKey:"publicKey",coverLetter:"coverLetter",targetUserLocale:"targetUserLocale",email:"email",phonenumber:"phonenumber",workspace$:"workspace",workspace:yi.Fields,firstName:"firstName",lastName:"lastName",forceEmailAddress:"forceEmailAddress",forcePhoneNumber:"forcePhoneNumber",roleId:"roleId",role$:"role",role:ri.Fields};function rre({queryOptions:e,execFnOverride:t,query:n,queryClient:r,unauthorized:a}){var T;const{options:i,execFn:o}=R.useContext(rt),l=t?t(i):o?o(i):St(i);let d=`${"/workspace-invite/:uniqueId".substr(1)}?${new URLSearchParams(Gt(n)).toString()}`,f=!0;d=d.replace(":uniqueId",n[":uniqueId".replace(":","")]),n[":uniqueId".replace(":","")]===void 0&&(f=!1);const g=()=>l("GET",d),y=(T=i==null?void 0:i.headers)==null?void 0:T.authorization,h=y!="undefined"&&y!=null&&y!=null&&y!="null"&&!!y;let v=!0;return f?!h&&!a&&(v=!1):v=!1,{query:jn([i,n,"*abac.WorkspaceInviteEntity"],g,{cacheTime:1001,retry:!1,keepPreviousData:!0,enabled:v,...e||{}})}}function Q$e(e){let{queryClient:t,query:n,execFnOverride:r}=e||{};n=n||{};const{options:a,execFn:i}=R.useContext(rt),o=r?r(a):i?i(a):St(a);let u=`${"/workspace-invite".substr(1)}?${new URLSearchParams(Gt(n)).toString()}`;const f=un(h=>o("PATCH",u,h)),g=(h,v)=>{var E;return h?(h.data&&(v!=null&&v.data)&&(h.data.items=[v.data,...((E=h==null?void 0:h.data)==null?void 0:E.items)||[]]),h):{data:{items:[]}}};return{mutation:f,submit:(h,v)=>new Promise((E,T)=>{f.mutate(h,{onSuccess(C){t==null||t.setQueriesData("*abac.WorkspaceInviteEntity",k=>g(k,C)),E(C)},onError(C){v==null||v.setErrors(Pn(C)),T(C)}})}),fnUpdater:g}}function J$e(e){let{queryClient:t,query:n,execFnOverride:r}=e||{};n=n||{};const{options:a,execFn:i}=R.useContext(rt),o=r?r(a):i?i(a):St(a);let u=`${"/workspace/invite".substr(1)}?${new URLSearchParams(Gt(n)).toString()}`;const f=un(h=>o("POST",u,h)),g=(h,v)=>{var E;return h?(h.data&&(v!=null&&v.data)&&(h.data.items=[v.data,...((E=h==null?void 0:h.data)==null?void 0:E.items)||[]]),h):{data:{items:[]}}};return{mutation:f,submit:(h,v)=>new Promise((E,T)=>{f.mutate(h,{onSuccess(C){t==null||t.setQueryData("*abac.WorkspaceInviteEntity",k=>g(k,C)),E(C)},onError(C){v==null||v.setErrors(Pn(C)),T(C)}})}),fnUpdater:g}}const Z$e={targetLocaleHint:"If the user has a different language available, the initial interface will be on th selected value.",forcedEmailAddress:"Force Email Address",forcedEmailAddressHint:"If checked, user can only make the invitation using this email address, and won't be able to change it. If account exists, they need to accept invitation there.",forcedPhone:"Force Phone Number",forcedPhoneHint:"If checked, user only can create or join using this phone number",coverLetter:"Cover letter",coverLetterHint:"The invitation text that user would get over sms or email, you can modify it here.",targetLocale:"Target Locale"},eLe={targetLocaleHint:"Jeśli użytkownik ma dostępny inny język, interfejs początkowy będzie ustawiony na wybraną wartość.",coverLetter:"List motywacyjny",coverLetterHint:"Treść zaproszenia, którą użytkownik otrzyma przez SMS lub e-mail – możesz ją tutaj edytować.",forcedEmailAddress:"Wymuszony adres e-mail",forcedEmailAddressHint:"Jeśli zaznaczone, użytkownik może wysłać zaproszenie tylko na ten adres e-mail i nie będzie mógł go zmienić. Jeśli konto już istnieje, użytkownik musi zaakceptować zaproszenie na tym koncie.",forcedPhone:"Wymuszony numer telefonu",forcedPhoneHint:"Jeśli zaznaczone, użytkownik może utworzyć konto lub dołączyć tylko przy użyciu tego numeru telefonu",targetLocale:"Docelowy język"},are={...Z$e,$pl:eLe},tLe=({form:e,isEditing:t})=>{const n=At(),{values:r,setValues:a,setFieldValue:i,errors:o}=e,l=Kt(are),u=Nne(n),d=zs(u);return w.jsxs(w.Fragment,{children:[w.jsxs("div",{className:"row",children:[w.jsx("div",{className:"col-md-12",children:w.jsx(In,{value:r.firstName,onChange:f=>i(Ya.Fields.firstName,f,!1),errorMessage:o.firstName,label:n.wokspaces.invite.firstName,autoFocus:!t,hint:n.wokspaces.invite.firstNameHint})}),w.jsx("div",{className:"col-md-12",children:w.jsx(In,{value:r.lastName,onChange:f=>i(Ya.Fields.lastName,f,!1),errorMessage:o.lastName,label:n.wokspaces.invite.lastName,hint:n.wokspaces.invite.lastNameHint})}),w.jsx("div",{className:"col-md-12",children:w.jsx(da,{keyExtractor:f=>f.value,formEffect:{form:e,field:Ya.Fields.targetUserLocale,beforeSet(f){return f.value}},errorMessage:e.errors.targetUserLocale,querySource:d,label:l.targetLocale,hint:l.targetLocaleHint})}),w.jsx("div",{className:"col-md-12",children:w.jsx(rj,{value:r.coverLetter,onChange:f=>i(Ya.Fields.coverLetter,f,!1),forceBasic:!0,errorMessage:o.coverLetter,label:l.coverLetter,placeholder:l.coverLetterHint,hint:l.coverLetterHint})}),w.jsx("div",{className:"col-md-12",children:w.jsx(da,{formEffect:{field:Ya.Fields.role$,form:e},querySource:af,label:n.wokspaces.invite.role,errorMessage:o.roleId,fnLabelFormat:f=>f.name,hint:n.wokspaces.invite.roleHint})})]}),w.jsxs("div",{className:"row",children:[w.jsx("div",{className:"col-md-12",children:w.jsx(In,{value:r.email,onChange:f=>i(Ya.Fields.email,f,!1),errorMessage:o.email,label:n.wokspaces.invite.email,hint:n.wokspaces.invite.emailHint})}),w.jsx("div",{className:"col-md-12",children:w.jsx(El,{value:r.forceEmailAddress,onChange:f=>i(Ya.Fields.forceEmailAddress,f),errorMessage:o.forceEmailAddress,label:l.forcedEmailAddress,hint:l.forcedEmailAddressHint})}),w.jsx("div",{className:"col-md-12",children:w.jsx(In,{value:r.phonenumber,onChange:f=>i(Ya.Fields.phonenumber,f,!1),errorMessage:o.phonenumber,type:"phonenumber",label:n.wokspaces.invite.phoneNumber,hint:n.wokspaces.invite.phoneNumberHint})}),w.jsx("div",{className:"col-md-12",children:w.jsx(El,{value:r.forcePhoneNumber,onChange:f=>i(Ya.Fields.forcePhoneNumber,f),errorMessage:o.forcePhoneNumber,label:l.forcedPhone,hint:l.forcedPhoneHint})})]})]})},yz=({data:e})=>{const t=At(),{router:n,uniqueId:r,queryClient:a,locale:i}=$r({data:e}),o=rre({query:{uniqueId:r},queryClient:a}),l=J$e({queryClient:a}),u=Q$e({queryClient:a});return w.jsx(Bo,{postHook:l,getSingleHook:o,patchHook:u,onCancel:()=>{n.goBackOrDefault(`/${i}/workspace-invites`)},onFinishUriResolver:(d,f)=>`/${f}/workspace-invites`,Form:tLe,onEditTitle:t.wokspaces.invite.editInvitation,onCreateTitle:t.wokspaces.invite.createInvitation,data:e})},nLe=()=>{var o;const e=xr(),t=At(),n=e.query.uniqueId;sr();const r=Kt(are),a=rre({query:{uniqueId:n}});var i=(o=a.query.data)==null?void 0:o.data;return N_((i==null?void 0:i.firstName)+" "+(i==null?void 0:i.lastName)||""),w.jsx(w.Fragment,{children:w.jsx(io,{getSingleHook:a,editEntityHandler:()=>e.push(Ya.Navigation.edit(n)),children:w.jsx(oo,{entity:i,fields:[{label:t.wokspaces.invite.firstName,elem:i==null?void 0:i.firstName},{label:t.wokspaces.invite.lastName,elem:i==null?void 0:i.lastName},{label:t.wokspaces.invite.email,elem:i==null?void 0:i.email},{label:t.wokspaces.invite.phoneNumber,elem:i==null?void 0:i.phonenumber},{label:r.forcedEmailAddress,elem:i==null?void 0:i.forceEmailAddress},{label:r.forcedPhone,elem:i==null?void 0:i.forcePhoneNumber},{label:r.targetLocale,elem:i==null?void 0:i.targetUserLocale}]})})})},rLe=e=>[{name:Ya.Fields.uniqueId,title:e.table.uniqueId,width:100},{name:"firstName",title:e.wokspaces.invite.firstName,width:100},{name:"lastName",title:e.wokspaces.invite.lastName,width:100},{name:"phoneNumber",title:e.wokspaces.invite.phoneNumber,width:100},{name:"email",title:e.wokspaces.invite.email,width:100},{name:"role_id",title:e.wokspaces.invite.role,width:100,getCellValue:t=>{var n;return(n=t==null?void 0:t.role)==null?void 0:n.name}}];function ire({queryOptions:e,query:t,queryClient:n,execFnOverride:r,unauthorized:a,optionFn:i}){var k,_,A;const{options:o,execFn:l}=R.useContext(rt),u=i?i(o):o,d=r?r(u):l?l(u):St(u);let g=`${"/workspace-invites".substr(1)}?${qa.stringify(t)}`;const y=()=>d("GET",g),h=(k=u==null?void 0:u.headers)==null?void 0:k.authorization,v=h!="undefined"&&h!=null&&h!=null&&h!="null"&&!!h;let E=!0;!v&&!a&&(E=!1);const T=jn(["*abac.WorkspaceInviteEntity",u,t],y,{cacheTime:1e3,retry:!1,keepPreviousData:!0,enabled:E,...e||{}}),C=((A=(_=T.data)==null?void 0:_.data)==null?void 0:A.items)||[];return{query:T,items:C,keyExtractor:P=>P.uniqueId}}ire.UKEY="*abac.WorkspaceInviteEntity";function aLe(e){const{execFnOverride:t,queryClient:n,query:r}=e||{},{options:a,execFn:i}=R.useContext(rt),o=t?t(a):i?i(a):St(a);let u=`${"/workspace-invite".substr(1)}?${new URLSearchParams(Gt(r)).toString()}`;const f=un(h=>o("DELETE",u,h)),g=(h,v)=>h;return{mutation:f,submit:(h,v)=>new Promise((E,T)=>{f.mutate(h,{onSuccess(C){n==null||n.setQueryData("*abac.WorkspaceInviteEntity",k=>g(k)),n==null||n.invalidateQueries("*abac.WorkspaceInviteEntity"),E(C)},onError(C){v==null||v.setErrors(Pn(C)),T(C)}})}),fnUpdater:g}}const iLe=()=>{const e=At();return w.jsx(w.Fragment,{children:w.jsx(Uo,{columns:rLe(e),queryHook:ire,uniqueIdHrefHandler:t=>Ya.Navigation.single(t),deleteHook:aLe})})},oLe=()=>{const e=At();return w.jsx(w.Fragment,{children:w.jsx(jo,{pageTitle:e.fbMenu.workspaceInvites,newEntityHandler:({locale:t,router:n})=>{n.push(Ya.Navigation.create())},children:w.jsx(iLe,{})})})};function sLe(){return w.jsxs(w.Fragment,{children:[w.jsx(mt,{element:w.jsx(yz,{}),path:Ya.Navigation.Rcreate}),w.jsx(mt,{element:w.jsx(yz,{}),path:Ya.Navigation.Redit}),w.jsx(mt,{element:w.jsx(nLe,{}),path:Ya.Navigation.Rsingle}),w.jsx(mt,{element:w.jsx(oLe,{}),path:Ya.Navigation.Rquery})]})}const lLe=()=>{const e=Kt(xa);return w.jsxs(w.Fragment,{children:[w.jsx(Do,{title:e.home.title,description:e.home.description}),w.jsx("h2",{children:w.jsx(J$,{to:"passports",children:e.home.passportsTitle})}),w.jsx("p",{children:e.home.passportsDescription}),w.jsx(J$,{to:"passports",className:"btn btn-success btn-sm",children:e.home.passportsTitle})]})},uLe=()=>{const e=Kt(xa),{goBack:t,query:n}=xr();return{goBack:t,s:e}},cLe=()=>{var i,o;const{s:e}=uLe(),{query:t}=DE({queryOptions:{cacheTime:50},query:{}}),n=((o=(i=t.data)==null?void 0:i.data)==null?void 0:o.items)||[],{selectedUrw:r,selectUrw:a}=R.useContext(rt);return w.jsxs("div",{className:"signin-form-container",children:[w.jsxs("div",{className:"mb-4",children:[w.jsx("h1",{className:"h3",children:e.selectWorkspaceTitle}),w.jsx("p",{className:"text-muted",children:e.selectWorkspace})]}),n.map(l=>w.jsxs("div",{className:"mb-4",children:[w.jsx("h2",{className:"h5",children:l.name}),w.jsx("div",{className:"d-flex flex-wrap gap-2 mt-2",children:l.roles.map(u=>w.jsxs("button",{className:"btn btn-outline-primary w-100",onClick:()=>a({workspaceId:l.uniqueId,roleId:u.uniqueId}),children:["Select (",u.name,")"]},u.uniqueId))})]},l.uniqueId))]})};function dLe(){return w.jsxs(w.Fragment,{children:[w.jsxs(mt,{path:"selfservice",children:[w.jsx(mt,{path:"welcome",element:w.jsx(KIe,{})}),w.jsx(mt,{path:"email",element:w.jsx(hz,{method:Ds.Email})}),w.jsx(mt,{path:"phone",element:w.jsx(hz,{method:Ds.Phone})}),w.jsx(mt,{path:"totp-setup",element:w.jsx($De,{})}),w.jsx(mt,{path:"totp-enter",element:w.jsx(jDe,{})}),w.jsx(mt,{path:"complete",element:w.jsx(XDe,{})}),w.jsx(mt,{path:"password",element:w.jsx(r$e,{})}),w.jsx(mt,{path:"otp",element:w.jsx(c$e,{})})]}),w.jsx(mt,{path:"*",element:w.jsx(eF,{to:"/en/selfservice/welcome",replace:!0})})]})}function fLe(){const e=T$e(),t=j$e(),n=X$e(),r=sLe();return w.jsxs(mt,{path:"selfservice",children:[w.jsx(mt,{path:"passports",element:w.jsx(xIe,{})}),w.jsx(mt,{path:"change-password/:uniqueId",element:w.jsx(MIe,{})}),e,t,n,r,w.jsx(mt,{path:"",element:w.jsx(Bj,{children:w.jsx(lLe,{})})})]})}function pLe({children:e,routerId:t}){const n=At();Tfe();const{locale:r}=sr(),{config:a}=R.useContext(ph),i=mJ(),o=fLe(),l=rPe(),u=qMe();return w.jsx(Whe,{affix:n.productName,children:w.jsxs(jX,{children:[w.jsx(mt,{path:"/",element:w.jsx(eF,{to:kr.DEFAULT_ROUTE.replace("{locale}",a.interfaceLanguage||r||"en"),replace:!0})}),w.jsxs(mt,{path:":locale",element:w.jsx(mge,{routerId:t,sidebarMenu:i}),children:[w.jsx(mt,{path:"settings",element:w.jsx(Bj,{children:w.jsx(fIe,{})})}),o,l,u,e,w.jsx(mt,{path:"*",element:w.jsx(n6,{})})]}),w.jsx(mt,{path:"*",element:w.jsx(n6,{})})]})})}const ore=e=>{sr();const{placeholder:t,label:n,getInputRef:r,secureTextEntry:a,Icon:i,onChange:o,value:l,errorMessage:u,type:d,focused:f=!1,autoFocus:g,...y}=e,[h,v]=R.useState(!1),E=R.useRef(),T=R.useCallback(()=>{var C;(C=E.current)==null||C.focus()},[E.current]);return w.jsx(rf,{focused:h,onClick:T,...e,children:w.jsx("input",{type:"date",className:"form-control",value:e.value,onChange:C=>e.onChange&&e.onChange(C.target.value),...e.inputProps})})};function qj(e,t){const[n,r]=R.useState(()=>{try{const a=localStorage.getItem(e);return a===null?t:JSON.parse(a)}catch(a){return console.error(`Error parsing localStorage key "${e}":`,a),t}});return R.useEffect(()=>{try{localStorage.setItem(e,JSON.stringify(n))}catch(a){console.error(`Error saving to localStorage key "${e}":`,a)}},[e,n]),[n,r]}function bz(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function qb(e){for(var t=1;t=4)return[e[0],e[1],e[2],e[3],"".concat(e[0],".").concat(e[1]),"".concat(e[0],".").concat(e[2]),"".concat(e[0],".").concat(e[3]),"".concat(e[1],".").concat(e[0]),"".concat(e[1],".").concat(e[2]),"".concat(e[1],".").concat(e[3]),"".concat(e[2],".").concat(e[0]),"".concat(e[2],".").concat(e[1]),"".concat(e[2],".").concat(e[3]),"".concat(e[3],".").concat(e[0]),"".concat(e[3],".").concat(e[1]),"".concat(e[3],".").concat(e[2]),"".concat(e[0],".").concat(e[1],".").concat(e[2]),"".concat(e[0],".").concat(e[1],".").concat(e[3]),"".concat(e[0],".").concat(e[2],".").concat(e[1]),"".concat(e[0],".").concat(e[2],".").concat(e[3]),"".concat(e[0],".").concat(e[3],".").concat(e[1]),"".concat(e[0],".").concat(e[3],".").concat(e[2]),"".concat(e[1],".").concat(e[0],".").concat(e[2]),"".concat(e[1],".").concat(e[0],".").concat(e[3]),"".concat(e[1],".").concat(e[2],".").concat(e[0]),"".concat(e[1],".").concat(e[2],".").concat(e[3]),"".concat(e[1],".").concat(e[3],".").concat(e[0]),"".concat(e[1],".").concat(e[3],".").concat(e[2]),"".concat(e[2],".").concat(e[0],".").concat(e[1]),"".concat(e[2],".").concat(e[0],".").concat(e[3]),"".concat(e[2],".").concat(e[1],".").concat(e[0]),"".concat(e[2],".").concat(e[1],".").concat(e[3]),"".concat(e[2],".").concat(e[3],".").concat(e[0]),"".concat(e[2],".").concat(e[3],".").concat(e[1]),"".concat(e[3],".").concat(e[0],".").concat(e[1]),"".concat(e[3],".").concat(e[0],".").concat(e[2]),"".concat(e[3],".").concat(e[1],".").concat(e[0]),"".concat(e[3],".").concat(e[1],".").concat(e[2]),"".concat(e[3],".").concat(e[2],".").concat(e[0]),"".concat(e[3],".").concat(e[2],".").concat(e[1]),"".concat(e[0],".").concat(e[1],".").concat(e[2],".").concat(e[3]),"".concat(e[0],".").concat(e[1],".").concat(e[3],".").concat(e[2]),"".concat(e[0],".").concat(e[2],".").concat(e[1],".").concat(e[3]),"".concat(e[0],".").concat(e[2],".").concat(e[3],".").concat(e[1]),"".concat(e[0],".").concat(e[3],".").concat(e[1],".").concat(e[2]),"".concat(e[0],".").concat(e[3],".").concat(e[2],".").concat(e[1]),"".concat(e[1],".").concat(e[0],".").concat(e[2],".").concat(e[3]),"".concat(e[1],".").concat(e[0],".").concat(e[3],".").concat(e[2]),"".concat(e[1],".").concat(e[2],".").concat(e[0],".").concat(e[3]),"".concat(e[1],".").concat(e[2],".").concat(e[3],".").concat(e[0]),"".concat(e[1],".").concat(e[3],".").concat(e[0],".").concat(e[2]),"".concat(e[1],".").concat(e[3],".").concat(e[2],".").concat(e[0]),"".concat(e[2],".").concat(e[0],".").concat(e[1],".").concat(e[3]),"".concat(e[2],".").concat(e[0],".").concat(e[3],".").concat(e[1]),"".concat(e[2],".").concat(e[1],".").concat(e[0],".").concat(e[3]),"".concat(e[2],".").concat(e[1],".").concat(e[3],".").concat(e[0]),"".concat(e[2],".").concat(e[3],".").concat(e[0],".").concat(e[1]),"".concat(e[2],".").concat(e[3],".").concat(e[1],".").concat(e[0]),"".concat(e[3],".").concat(e[0],".").concat(e[1],".").concat(e[2]),"".concat(e[3],".").concat(e[0],".").concat(e[2],".").concat(e[1]),"".concat(e[3],".").concat(e[1],".").concat(e[0],".").concat(e[2]),"".concat(e[3],".").concat(e[1],".").concat(e[2],".").concat(e[0]),"".concat(e[3],".").concat(e[2],".").concat(e[0],".").concat(e[1]),"".concat(e[3],".").concat(e[2],".").concat(e[1],".").concat(e[0])]}var VA={};function mLe(e){if(e.length===0||e.length===1)return e;var t=e.join(".");return VA[t]||(VA[t]=hLe(e)),VA[t]}function gLe(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=arguments.length>2?arguments[2]:void 0,r=e.filter(function(i){return i!=="token"}),a=mLe(r);return a.reduce(function(i,o){return qb(qb({},i),n[o])},t)}function wz(e){return e.join(" ")}function vLe(e,t){var n=0;return function(r){return n+=1,r.map(function(a,i){return sre({node:a,stylesheet:e,useInlineStyles:t,key:"code-segment-".concat(n,"-").concat(i)})})}}function sre(e){var t=e.node,n=e.stylesheet,r=e.style,a=r===void 0?{}:r,i=e.useInlineStyles,o=e.key,l=t.properties,u=t.type,d=t.tagName,f=t.value;if(u==="text")return f;if(d){var g=vLe(n,i),y;if(!i)y=qb(qb({},l),{},{className:wz(l.className)});else{var h=Object.keys(n).reduce(function(C,k){return k.split(".").forEach(function(_){C.includes(_)||C.push(_)}),C},[]),v=l.className&&l.className.includes("token")?["token"]:[],E=l.className&&v.concat(l.className.filter(function(C){return!h.includes(C)}));y=qb(qb({},l),{},{className:wz(E)||void 0,style:gLe(l.className,Object.assign({},l.style,a),n)})}var T=g(t.children);return ze.createElement(d,vt({key:o},y),T)}}const yLe=(function(e,t){var n=e.listLanguages();return n.indexOf(t)!==-1});var bLe=["language","children","style","customStyle","codeTagProps","useInlineStyles","showLineNumbers","showInlineLineNumbers","startingLineNumber","lineNumberContainerStyle","lineNumberStyle","wrapLines","wrapLongLines","lineProps","renderer","PreTag","CodeTag","code","astGenerator"];function Sz(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function eh(e){for(var t=1;t1&&arguments[1]!==void 0?arguments[1]:[],n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[],r=0;r2&&arguments[2]!==void 0?arguments[2]:[];return Xk({children:P,lineNumber:N,lineNumberStyle:l,largestLineNumber:o,showInlineLineNumbers:a,lineProps:n,className:I,showLineNumbers:r,wrapLongLines:u,wrapLines:t})}function E(P,N){if(r&&N&&a){var I=ure(l,N,o);P.unshift(lre(N,I))}return P}function T(P,N){var I=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[];return t||I.length>0?v(P,N,I):E(P,N)}for(var C=function(){var N=f[h],I=N.children[0].value,L=SLe(I);if(L){var j=I.split(` -`);j.forEach(function(z,Q){var le=r&&g.length+i,re={type:"text",value:"".concat(z,` -`)};if(Q===0){var ge=f.slice(y+1,h).concat(Xk({children:[re],className:N.properties.className})),me=T(ge,le);g.push(me)}else if(Q===j.length-1){var W=f[h+1]&&f[h+1].children&&f[h+1].children[0],G={type:"text",value:"".concat(z)};if(W){var q=Xk({children:[G],className:N.properties.className});f.splice(h+1,0,q)}else{var ce=[G],H=T(ce,le,N.properties.className);g.push(H)}}else{var Y=[re],ie=T(Y,le,N.properties.className);g.push(ie)}}),y=h}h++};h4&&v.slice(0,4)===r&&a.test(h)&&(h.charAt(4)==="-"?E=u(h):h=d(h),T=t),new T(E,h))}function u(y){var h=y.slice(5).replace(i,g);return r+h.charAt(0).toUpperCase()+h.slice(1)}function d(y){var h=y.slice(4);return i.test(h)?y:(h=h.replace(o,f),h.charAt(0)!=="-"&&(h="-"+h),r+h)}function f(y){return"-"+y.toLowerCase()}function g(y){return y.charAt(1).toUpperCase()}return lN}var uN,jz;function ULe(){if(jz)return uN;jz=1,uN=t;var e=/[#.]/g;function t(n,r){for(var a=n||"",i=r||"div",o={},l=0,u,d,f;l=48&&n<=57}return pN}var hN,Vz;function VFe(){if(Vz)return hN;Vz=1,hN=e;function e(t){var n=typeof t=="string"?t.charCodeAt(0):t;return n>=97&&n<=102||n>=65&&n<=70||n>=48&&n<=57}return hN}var mN,Gz;function GFe(){if(Gz)return mN;Gz=1,mN=e;function e(t){var n=typeof t=="string"?t.charCodeAt(0):t;return n>=97&&n<=122||n>=65&&n<=90}return mN}var gN,Yz;function YFe(){if(Yz)return gN;Yz=1;var e=GFe(),t=gre();gN=n;function n(r){return e(r)||t(r)}return gN}var vN,Kz;function KFe(){if(Kz)return vN;Kz=1;var e,t=59;vN=n;function n(r){var a="&"+r+";",i;return e=e||document.createElement("i"),e.innerHTML=a,i=e.textContent,i.charCodeAt(i.length-1)===t&&r!=="semi"||i===a?!1:i}return vN}var yN,Xz;function XFe(){if(Xz)return yN;Xz=1;var e=qFe,t=HFe,n=gre(),r=VFe(),a=YFe(),i=KFe();yN=ce;var o={}.hasOwnProperty,l=String.fromCharCode,u=Function.prototype,d={warning:null,reference:null,text:null,warningContext:null,referenceContext:null,textContext:null,position:{},additional:null,attribute:!1,nonTerminated:!0},f=9,g=10,y=12,h=32,v=38,E=59,T=60,C=61,k=35,_=88,A=120,P=65533,N="named",I="hexadecimal",L="decimal",j={};j[I]=16,j[L]=10;var z={};z[N]=a,z[L]=n,z[I]=r;var Q=1,le=2,re=3,ge=4,me=5,W=6,G=7,q={};q[Q]="Named character references must be terminated by a semicolon",q[le]="Numeric character references must be terminated by a semicolon",q[re]="Named character references cannot be empty",q[ge]="Numeric character references cannot be empty",q[me]="Named character references must be known",q[W]="Numeric character references cannot be disallowed",q[G]="Numeric character references cannot be outside the permissible Unicode range";function ce(J,ee){var Z={},ue,ke;ee||(ee={});for(ke in d)ue=ee[ke],Z[ke]=ue??d[ke];return(Z.position.indent||Z.position.start)&&(Z.indent=Z.position.indent||[],Z.position=Z.position.start),H(J,Z)}function H(J,ee){var Z=ee.additional,ue=ee.nonTerminated,ke=ee.text,fe=ee.reference,xe=ee.warning,Ie=ee.textContext,qe=ee.referenceContext,tt=ee.warningContext,Ge=ee.position,at=ee.indent||[],Et=J.length,kt=0,xt=-1,Rt=Ge.column||1,cn=Ge.line||1,qt="",Wt=[],Oe,dt,ft,ut,Nt,U,D,F,ae,Te,Fe,We,Tt,Mt,be,Ee,gt,Lt,_t;for(typeof Z=="string"&&(Z=Z.charCodeAt(0)),Ee=Ut(),F=xe?_n:u,kt--,Et++;++kt65535&&(U-=65536,Te+=l(U>>>10|55296),U=56320|U&1023),U=Te+l(U))):Mt!==N&&F(ge,Lt)),U?(gn(),Ee=Ut(),kt=_t-1,Rt+=_t-Tt+1,Wt.push(U),gt=Ut(),gt.offset++,fe&&fe.call(qe,U,{start:Ee,end:gt},J.slice(Tt-1,_t)),Ee=gt):(ut=J.slice(Tt-1,_t),qt+=ut,Rt+=ut.length,kt=_t-1)}else Nt===10&&(cn++,xt++,Rt=0),Nt===Nt?(qt+=l(Nt),Rt++):gn();return Wt.join("");function Ut(){return{line:cn,column:Rt,offset:kt+(Ge.offset||0)}}function _n(ln,Bn){var sa=Ut();sa.column+=Bn,sa.offset+=Bn,xe.call(tt,q[ln],sa,ln)}function gn(){qt&&(Wt.push(qt),ke&&ke.call(Ie,qt,{start:Ee,end:Ut()}),qt="")}}function Y(J){return J>=55296&&J<=57343||J>1114111}function ie(J){return J>=1&&J<=8||J===11||J>=13&&J<=31||J>=127&&J<=159||J>=64976&&J<=65007||(J&65535)===65535||(J&65535)===65534}return yN}var bN={exports:{}},Qz;function QFe(){return Qz||(Qz=1,(function(e){var t=typeof window<"u"?window:typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope?self:{};/** + */var JDe={L:u0.QrCode.Ecc.LOW,M:u0.QrCode.Ecc.MEDIUM,Q:u0.QrCode.Ecc.QUARTILE,H:u0.QrCode.Ecc.HIGH},mre=128,gre="L",vre="#FFFFFF",yre="#000000",bre=!1,wre=1,ZDe=4,e$e=0,t$e=.1;function Sre(e,t=0){const n=[];return e.forEach(function(r,a){let i=null;r.forEach(function(o,l){if(!o&&i!==null){n.push(`M${i+t} ${a+t}h${l-i}v1H${i+t}z`),i=null;return}if(l===r.length-1){if(!o)return;i===null?n.push(`M${l+t},${a+t} h1v1H${l+t}z`):n.push(`M${i+t},${a+t} h${l+1-i}v1H${i+t}z`);return}o&&i===null&&(i=l)})}),n.join("")}function Ere(e,t){return e.slice().map((n,r)=>r=t.y+t.h?n:n.map((a,i)=>i=t.x+t.w?a:!1))}function n$e(e,t,n,r){if(r==null)return null;const a=e.length+n*2,i=Math.floor(t*t$e),o=a/t,l=(r.width||i)*o,u=(r.height||i)*o,d=r.x==null?e.length/2-l/2:r.x*o,f=r.y==null?e.length/2-u/2:r.y*o,g=r.opacity==null?1:r.opacity;let y=null;if(r.excavate){let v=Math.floor(d),E=Math.floor(f),T=Math.ceil(l+d-v),C=Math.ceil(u+f-E);y={x:v,y:E,w:T,h:C}}const h=r.crossOrigin;return{x:d,y:f,h:u,w:l,excavation:y,opacity:g,crossOrigin:h}}function r$e(e,t){return t!=null?Math.max(Math.floor(t),0):e?ZDe:e$e}function Tre({value:e,level:t,minVersion:n,includeMargin:r,marginSize:a,imageSettings:i,size:o,boostLevel:l}){let u=ze.useMemo(()=>{const v=(Array.isArray(e)?e:[e]).reduce((E,T)=>(E.push(...u0.QrSegment.makeSegments(T)),E),[]);return u0.QrCode.encodeSegments(v,JDe[t],n,void 0,void 0,l)},[e,t,n,l]);const{cells:d,margin:f,numCells:g,calculatedImageSettings:y}=ze.useMemo(()=>{let h=u.getModules();const v=r$e(r,a),E=h.length+v*2,T=n$e(h,o,v,i);return{cells:h,margin:v,numCells:E,calculatedImageSettings:T}},[u,o,i,r,a]);return{qrcode:u,margin:f,cells:d,numCells:g,calculatedImageSettings:y}}var a$e=(function(){try{new Path2D().addPath(new Path2D)}catch{return!1}return!0})(),i$e=ze.forwardRef(function(t,n){const r=t,{value:a,size:i=mre,level:o=gre,bgColor:l=vre,fgColor:u=yre,includeMargin:d=bre,minVersion:f=wre,boostLevel:g,marginSize:y,imageSettings:h}=r,E=oF(r,["value","size","level","bgColor","fgColor","includeMargin","minVersion","boostLevel","marginSize","imageSettings"]),{style:T}=E,C=oF(E,["style"]),k=h==null?void 0:h.src,_=ze.useRef(null),A=ze.useRef(null),P=ze.useCallback(me=>{_.current=me,typeof n=="function"?n(me):n&&(n.current=me)},[n]),[N,I]=ze.useState(!1),{margin:L,cells:j,numCells:z,calculatedImageSettings:Q}=Tre({value:a,level:o,minVersion:f,boostLevel:g,includeMargin:d,marginSize:y,imageSettings:h,size:i});ze.useEffect(()=>{if(_.current!=null){const me=_.current,ge=me.getContext("2d");if(!ge)return;let W=j;const G=A.current,q=Q!=null&&G!==null&&G.complete&&G.naturalHeight!==0&&G.naturalWidth!==0;q&&Q.excavation!=null&&(W=Ere(j,Q.excavation));const ce=window.devicePixelRatio||1;me.height=me.width=i*ce;const H=i/z*ce;ge.scale(H,H),ge.fillStyle=l,ge.fillRect(0,0,z,z),ge.fillStyle=u,a$e?ge.fill(new Path2D(Sre(W,L))):j.forEach(function(K,ae){K.forEach(function(J,ee){J&&ge.fillRect(ee+L,ae+L,1,1)})}),Q&&(ge.globalAlpha=Q.opacity),q&&ge.drawImage(G,Q.x+L,Q.y+L,Q.w,Q.h)}}),ze.useEffect(()=>{I(!1)},[k]);const ue=iF({height:i,width:i},T);let re=null;return k!=null&&(re=ze.createElement("img",{src:k,key:k,style:{display:"none"},onLoad:()=>{I(!0)},ref:A,crossOrigin:Q==null?void 0:Q.crossOrigin})),ze.createElement(ze.Fragment,null,ze.createElement("canvas",iF({style:ue,height:i,width:i,ref:P,role:"img"},C)),re)});i$e.displayName="QRCodeCanvas";var Cre=ze.forwardRef(function(t,n){const r=t,{value:a,size:i=mre,level:o=gre,bgColor:l=vre,fgColor:u=yre,includeMargin:d=bre,minVersion:f=wre,boostLevel:g,title:y,marginSize:h,imageSettings:v}=r,E=oF(r,["value","size","level","bgColor","fgColor","includeMargin","minVersion","boostLevel","title","marginSize","imageSettings"]),{margin:T,cells:C,numCells:k,calculatedImageSettings:_}=Tre({value:a,level:o,minVersion:f,boostLevel:g,includeMargin:d,marginSize:h,imageSettings:v,size:i});let A=C,P=null;v!=null&&_!=null&&(_.excavation!=null&&(A=Ere(C,_.excavation)),P=ze.createElement("image",{href:v.src,height:_.h,width:_.w,x:_.x+T,y:_.y+T,preserveAspectRatio:"none",opacity:_.opacity,crossOrigin:_.crossOrigin}));const N=Sre(A,T);return ze.createElement("svg",iF({height:i,width:i,viewBox:`0 0 ${k} ${k}`,ref:n,role:"img"},E),!!y&&ze.createElement("title",null,y),ze.createElement("path",{fill:l,d:`M0,0 h${k}v${k}H0z`,shapeRendering:"crispEdges"}),ze.createElement("path",{fill:u,d:N,shapeRendering:"crispEdges"}),P)});Cre.displayName="QRCodeSVG";const i1={backspace:8,left:37,up:38,right:39,down:40};class ET extends R.Component{constructor(t){super(t),this.__clearvalues__=()=>{const{fields:o}=this.props;this.setState({values:Array(o).fill("")}),this.iRefs[0].current.focus()},this.triggerChange=(o=this.state.values)=>{const{onChange:l,onComplete:u,fields:d}=this.props,f=o.join("");l&&l(f),u&&f.length>=d&&u(f)},this.onChange=o=>{const l=parseInt(o.target.dataset.id);if(this.props.type==="number"&&(o.target.value=o.target.value.replace(/[^\d]/gi,"")),o.target.value===""||this.props.type==="number"&&!o.target.validity.valid)return;const{fields:u}=this.props;let d;const f=o.target.value;let{values:g}=this.state;if(g=Object.assign([],g),f.length>1){let y=f.length+l-1;y>=u&&(y=u-1),d=this.iRefs[y],f.split("").forEach((v,E)=>{const T=l+E;T{const l=parseInt(o.target.dataset.id),u=l-1,d=l+1,f=this.iRefs[u],g=this.iRefs[d];switch(o.keyCode){case i1.backspace:o.preventDefault();const y=[...this.state.values];this.state.values[l]?(y[l]="",this.setState({values:y}),this.triggerChange(y)):f&&(y[u]="",f.current.focus(),this.setState({values:y}),this.triggerChange(y));break;case i1.left:o.preventDefault(),f&&f.current.focus();break;case i1.right:o.preventDefault(),g&&g.current.focus();break;case i1.up:case i1.down:o.preventDefault();break}},this.onFocus=o=>{o.target.select(o)};const{fields:n,values:r}=t;let a,i=0;if(r&&r.length){a=[];for(let o=0;o=n?0:r.length}else a=Array(n).fill("");this.state={values:a,autoFocusIndex:i},this.iRefs=[];for(let o=0;ow.jsx("input",{type:f==="number"?"tel":f,pattern:f==="number"?"[0-9]*":null,autoFocus:u&&E===n,style:g,"data-id":E,value:v,id:this.props.id?`${this.props.id}-${E}`:null,ref:this.iRefs[E],onChange:this.onChange,onKeyDown:this.onKeyDown,onFocus:this.onFocus,disabled:this.props.disabled,required:this.props.required,placeholder:this.props.placeholder[E]},`${this.id}-${E}`))}),r&&w.jsxs("div",{className:"rc-loading",style:h,children:[w.jsx("div",{className:"rc-blur"}),w.jsx("svg",{className:"rc-spin",viewBox:"0 0 1024 1024","data-icon":"loading",width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true",children:w.jsx("path",{fill:"#006fff",d:"M988 548c-19.9 0-36-16.1-36-36 0-59.4-11.6-117-34.6-171.3a440.45 440.45 0 0 0-94.3-139.9 437.71 437.71 0 0 0-139.9-94.3C629 83.6 571.4 72 512 72c-19.9 0-36-16.1-36-36s16.1-36 36-36c69.1 0 136.2 13.5 199.3 40.3C772.3 66 827 103 874 150c47 47 83.9 101.8 109.7 162.7 26.7 63.1 40.2 130.2 40.2 199.3.1 19.9-16 36-35.9 36z"})})]})]})}}ET.propTypes={type:Ye.oneOf(["text","number"]),onChange:Ye.func,onComplete:Ye.func,fields:Ye.number,loading:Ye.bool,title:Ye.string,fieldWidth:Ye.number,id:Ye.string,fieldHeight:Ye.number,autoFocus:Ye.bool,className:Ye.string,values:Ye.arrayOf(Ye.string),disabled:Ye.bool,required:Ye.bool,placeholder:Ye.arrayOf(Ye.string)};ET.defaultProps={type:"number",fields:6,fieldWidth:58,fieldHeight:54,autoFocus:!0,disabled:!1,required:!1,placeholder:[]};var BE;function zi(e,t){if(!{}.hasOwnProperty.call(e,t))throw new TypeError("attempted to use private field on non-instance");return e}var o$e=0;function my(e){return"__private_"+o$e+++"_"+e}const s$e=e=>{const n=Ho()??void 0,[r,a]=R.useState(!1),[i,o]=R.useState();return{...un({mutationFn:d=>(a(!1),Ih.Fetch({body:d,headers:e==null?void 0:e.headers},{creatorFn:e==null?void 0:e.creatorFn,qs:e==null?void 0:e.qs,ctx:n,onMessage:e==null?void 0:e.onMessage,overrideUrl:e==null?void 0:e.overrideUrl}).then(f=>(f.done.then(()=>{a(!0)}),o(f.response),f.response.result)))}),isCompleted:r,response:i}};class Ih{}BE=Ih;Ih.URL="/passport/totp/confirm";Ih.NewUrl=e=>Wo(BE.URL,void 0,e);Ih.Method="post";Ih.Fetch$=async(e,t,n,r)=>zo(r??BE.NewUrl(e),{method:BE.Method,...n||{}},t);Ih.Fetch=async(e,{creatorFn:t,qs:n,ctx:r,onMessage:a,overrideUrl:i}={creatorFn:o=>new Fv(o)})=>{t=t||(l=>new Fv(l));const o=await BE.Fetch$(n,r,e,i);return qo(o,l=>{const u=new so;return t&&u.setCreator(t),u.inject(l),u},a,e==null?void 0:e.signal)};Ih.Definition={name:"ConfirmClassicPassportTotp",url:"/passport/totp/confirm",method:"post",description:"When user requires to setup the totp for an specifc passport, they can use this endpoint to confirm it.",in:{fields:[{name:"value",description:"Passport value, email or phone number which is already successfully registered.",type:"string",tags:{validate:"required"}},{name:"password",description:"Password related to the passport. Totp is only available for passports with a password. Basically totp is protecting passport, not otp over email or sms.",type:"string",tags:{validate:"required"}},{name:"totpCode",description:"The totp code generated by authenticator such as google or microsft apps.",type:"string",tags:{validate:"required"}}]},out:{envelope:"GResponse",fields:[{name:"session",type:"one",target:"UserSessionDto"}]}};var Mg=my("value"),Ig=my("password"),Dg=my("totpCode"),oN=my("isJsonAppliable");class lh{get value(){return zi(this,Mg)[Mg]}set value(t){zi(this,Mg)[Mg]=String(t)}setValue(t){return this.value=t,this}get password(){return zi(this,Ig)[Ig]}set password(t){zi(this,Ig)[Ig]=String(t)}setPassword(t){return this.password=t,this}get totpCode(){return zi(this,Dg)[Dg]}set totpCode(t){zi(this,Dg)[Dg]=String(t)}setTotpCode(t){return this.totpCode=t,this}constructor(t=void 0){if(Object.defineProperty(this,oN,{value:l$e}),Object.defineProperty(this,Mg,{writable:!0,value:""}),Object.defineProperty(this,Ig,{writable:!0,value:""}),Object.defineProperty(this,Dg,{writable:!0,value:""}),t!=null)if(typeof t=="string")this.applyFromObject(JSON.parse(t));else if(zi(this,oN)[oN](t))this.applyFromObject(t);else throw new Error("Instance cannot be created on an unknown value, check the content being passed. got: "+typeof t)}applyFromObject(t={}){const n=t;n.value!==void 0&&(this.value=n.value),n.password!==void 0&&(this.password=n.password),n.totpCode!==void 0&&(this.totpCode=n.totpCode)}toJSON(){return{value:zi(this,Mg)[Mg],password:zi(this,Ig)[Ig],totpCode:zi(this,Dg)[Dg]}}toString(){return JSON.stringify(this)}static get Fields(){return{value:"value",password:"password",totpCode:"totpCode"}}static from(t){return new lh(t)}static with(t){return new lh(t)}copyWith(t){return new lh({...this.toJSON(),...t})}clone(){return new lh(this.toJSON())}}function l$e(e){const t=globalThis,n=typeof t.Buffer<"u"&&typeof t.Buffer.isBuffer=="function"&&t.Buffer.isBuffer(e),r=typeof t.Blob<"u"&&e instanceof t.Blob;return e&&typeof e=="object"&&!Array.isArray(e)&&!n&&!(e instanceof ArrayBuffer)&&!r}var Sd=my("session"),sN=my("isJsonAppliable"),o1=my("lateInitFields");class Fv{get session(){return zi(this,Sd)[Sd]}set session(t){t instanceof Dr?zi(this,Sd)[Sd]=t:zi(this,Sd)[Sd]=new Dr(t)}setSession(t){return this.session=t,this}constructor(t=void 0){if(Object.defineProperty(this,o1,{value:c$e}),Object.defineProperty(this,sN,{value:u$e}),Object.defineProperty(this,Sd,{writable:!0,value:void 0}),t==null){zi(this,o1)[o1]();return}if(typeof t=="string")this.applyFromObject(JSON.parse(t));else if(zi(this,sN)[sN](t))this.applyFromObject(t);else throw new Error("Instance cannot be created on an unknown value, check the content being passed. got: "+typeof t)}applyFromObject(t={}){const n=t;n.session!==void 0&&(this.session=n.session),zi(this,o1)[o1](t)}toJSON(){return{session:zi(this,Sd)[Sd]}}toString(){return JSON.stringify(this)}static get Fields(){return{session$:"session",get session(){return Pc("session",Dr.Fields)}}}static from(t){return new Fv(t)}static with(t){return new Fv(t)}copyWith(t){return new Fv({...this.toJSON(),...t})}clone(){return new Fv(this.toJSON())}}function u$e(e){const t=globalThis,n=typeof t.Buffer<"u"&&typeof t.Buffer.isBuffer=="function"&&t.Buffer.isBuffer(e),r=typeof t.Blob<"u"&&e instanceof t.Blob;return e&&typeof e=="object"&&!Array.isArray(e)&&!n&&!(e instanceof ArrayBuffer)&&!r}function c$e(e={}){const t=e;t.session instanceof Dr||(this.session=new Dr(t.session||{}))}const d$e=()=>{const{goBack:e,state:t}=xr(),n=s$e(),{onComplete:r}=ST(),a=t==null?void 0:t.totpUrl,i=t==null?void 0:t.forcedTotp,o=t==null?void 0:t.password,l=t==null?void 0:t.value,u=g=>{n.mutateAsync(new lh({...g,password:o,value:l})).then(f).catch(y=>{d==null||d.setErrors(z0(y))})},d=uf({initialValues:{},onSubmit:u}),f=g=>{var y,h;(h=(y=g.data)==null?void 0:y.item)!=null&&h.session&&r(g)};return{mutation:n,totpUrl:a,forcedTotp:i,form:d,submit:u,goBack:e}},f$e=({})=>{const{goBack:e,mutation:t,form:n,totpUrl:r,forcedTotp:a}=d$e(),i=Kt(Oa);return w.jsxs("div",{className:"signin-form-container",children:[w.jsx("h1",{children:i.setupTotp}),w.jsx("p",{children:i.setupTotpDescription}),w.jsx(Ll,{query:t}),w.jsx(p$e,{form:n,totpUrl:r,mutation:t,forcedTotp:a}),w.jsx("button",{id:"go-back-button",className:"btn w-100 d-block",onClick:e,children:"Try another account"})]})},p$e=({form:e,mutation:t,forcedTotp:n,totpUrl:r})=>{var o;const a=Kt(Oa),i=!e.values.totpCode||e.values.totpCode.length!=6;return w.jsxs("form",{onSubmit:l=>{l.preventDefault(),e.submitForm()},children:[w.jsx("center",{children:w.jsx(Cre,{value:r,width:200,height:200})}),w.jsx(ET,{values:(o=e.values.totpCode)==null?void 0:o.split(""),onChange:l=>e.setFieldValue(lh.Fields.totpCode,l,!1),className:"otp-react-code-input"}),w.jsx(Ys,{className:"btn btn-primary w-100 d-block mb-2",mutation:t,id:"submit-form",disabled:i,children:a.continue}),n!==!0&&w.jsxs(w.Fragment,{children:[w.jsx("p",{className:"mt-4",children:a.skipTotpInfo}),w.jsx("button",{className:"btn btn-warning w-100 d-block mb-2",children:a.skipTotpButton})]})]})},h$e=()=>{const{goBack:e,state:t,replace:n,push:r}=xr(),a=fre(),{onComplete:i}=ST(),o=t==null?void 0:t.totpUrl,l=t==null?void 0:t.forcedTotp,u=t==null?void 0:t.password,d=t==null?void 0:t.value,f=h=>{a.mutateAsync(new Cu({...h,password:u,value:d})).then(y).catch(v=>{g==null||g.setErrors(z0(v))})},g=uf({initialValues:{},onSubmit:(h,v)=>{a.mutateAsync(new Cu(h))}}),y=h=>{var v,E;(E=(v=h.data)==null?void 0:v.item)!=null&&E.session&&i(h)};return{mutation:a,totpUrl:o,forcedTotp:l,form:g,submit:f,goBack:e}},m$e=({})=>{const{goBack:e,mutation:t,form:n}=h$e(),r=Kt(Oa);return w.jsxs("div",{className:"signin-form-container",children:[w.jsx("h1",{children:r.enterTotp}),w.jsx("p",{children:r.enterTotpDescription}),w.jsx(Ll,{query:t}),w.jsx(g$e,{form:n,mutation:t}),w.jsx("button",{id:"go-back-button",className:"btn w-100 d-block",onClick:e,children:r.anotherAccount})]})},g$e=({form:e,mutation:t})=>{var a;const n=!e.values.totpCode||e.values.totpCode.length!=6,r=Kt(Oa);return w.jsxs("form",{onSubmit:i=>{i.preventDefault(),e.submitForm()},children:[w.jsx(ET,{values:(a=e.values.totpCode)==null?void 0:a.split(""),onChange:i=>e.setFieldValue(lh.Fields.totpCode,i,!1),className:"otp-react-code-input"}),w.jsx(Ys,{className:"btn btn-success w-100 d-block mb-2",mutation:t,id:"submit-form",disabled:n,children:r.continue})]})};var WE;function Cn(e,t){if(!{}.hasOwnProperty.call(e,t))throw new TypeError("attempted to use private field on non-instance");return e}var v$e=0;function co(e){return"__private_"+v$e+++"_"+e}const y$e=e=>{const n=Ho()??void 0,[r,a]=R.useState(!1),[i,o]=R.useState();return{...un({mutationFn:d=>(a(!1),Dh.Fetch({body:d,headers:e==null?void 0:e.headers},{creatorFn:e==null?void 0:e.creatorFn,qs:e==null?void 0:e.qs,ctx:n,onMessage:e==null?void 0:e.onMessage,overrideUrl:e==null?void 0:e.overrideUrl}).then(f=>(f.done.then(()=>{a(!0)}),o(f.response),f.response.result)))}),isCompleted:r,response:i}};class Dh{}WE=Dh;Dh.URL="/passports/signup/classic";Dh.NewUrl=e=>Wo(WE.URL,void 0,e);Dh.Method="post";Dh.Fetch$=async(e,t,n,r)=>zo(r??WE.NewUrl(e),{method:WE.Method,...n||{}},t);Dh.Fetch=async(e,{creatorFn:t,qs:n,ctx:r,onMessage:a,overrideUrl:i}={creatorFn:o=>new jv(o)})=>{t=t||(l=>new jv(l));const o=await WE.Fetch$(n,r,e,i);return qo(o,l=>{const u=new so;return t&&u.setCreator(t),u.inject(l),u},a,e==null?void 0:e.signal)};Dh.Definition={name:"ClassicSignup",cliName:"up",url:"/passports/signup/classic",method:"post",description:"Signup a user into system via public access (aka website visitors) using either email or phone number.",in:{fields:[{name:"value",type:"string",tags:{validate:"required"}},{name:"sessionSecret",description:"Required when the account creation requires recaptcha, or otp approval first. If such requirements are there, you first need to follow the otp apis, get the session secret and pass it here to complete the setup.",type:"string"},{name:"type",type:"enum",of:[{k:"phonenumber"},{k:"email"}],tags:{validate:"required"}},{name:"password",type:"string",tags:{validate:"required"}},{name:"firstName",type:"string",tags:{validate:"required"}},{name:"lastName",type:"string",tags:{validate:"required"}},{name:"inviteId",type:"string?"},{name:"publicJoinKeyId",type:"string?"},{name:"workspaceTypeId",type:"string?",tags:{validate:"required"}}]},out:{envelope:"GResponse",fields:[{name:"session",description:"Returns the user session in case that signup is completely successful.",type:"one",target:"UserSessionDto"},{name:"totpUrl",description:"If time based otp is available, we add it response to make it easier for ui.",type:"string"},{name:"continueToTotp",description:"Returns true and session will be empty if, the totp is required by the installation. In such scenario, you need to forward user to setup totp screen.",type:"bool"},{name:"forcedTotp",description:"Determines if user must complete totp in order to continue based on workspace or installation",type:"bool"}]}};var $g=co("value"),Lg=co("sessionSecret"),Fg=co("type"),jg=co("password"),Ug=co("firstName"),Bg=co("lastName"),Wg=co("inviteId"),zg=co("publicJoinKeyId"),qg=co("workspaceTypeId"),lN=co("isJsonAppliable");class Tc{get value(){return Cn(this,$g)[$g]}set value(t){Cn(this,$g)[$g]=String(t)}setValue(t){return this.value=t,this}get sessionSecret(){return Cn(this,Lg)[Lg]}set sessionSecret(t){Cn(this,Lg)[Lg]=String(t)}setSessionSecret(t){return this.sessionSecret=t,this}get type(){return Cn(this,Fg)[Fg]}set type(t){Cn(this,Fg)[Fg]=t}setType(t){return this.type=t,this}get password(){return Cn(this,jg)[jg]}set password(t){Cn(this,jg)[jg]=String(t)}setPassword(t){return this.password=t,this}get firstName(){return Cn(this,Ug)[Ug]}set firstName(t){Cn(this,Ug)[Ug]=String(t)}setFirstName(t){return this.firstName=t,this}get lastName(){return Cn(this,Bg)[Bg]}set lastName(t){Cn(this,Bg)[Bg]=String(t)}setLastName(t){return this.lastName=t,this}get inviteId(){return Cn(this,Wg)[Wg]}set inviteId(t){const n=typeof t=="string"||t===void 0||t===null;Cn(this,Wg)[Wg]=n?t:String(t)}setInviteId(t){return this.inviteId=t,this}get publicJoinKeyId(){return Cn(this,zg)[zg]}set publicJoinKeyId(t){const n=typeof t=="string"||t===void 0||t===null;Cn(this,zg)[zg]=n?t:String(t)}setPublicJoinKeyId(t){return this.publicJoinKeyId=t,this}get workspaceTypeId(){return Cn(this,qg)[qg]}set workspaceTypeId(t){const n=typeof t=="string"||t===void 0||t===null;Cn(this,qg)[qg]=n?t:String(t)}setWorkspaceTypeId(t){return this.workspaceTypeId=t,this}constructor(t=void 0){if(Object.defineProperty(this,lN,{value:b$e}),Object.defineProperty(this,$g,{writable:!0,value:""}),Object.defineProperty(this,Lg,{writable:!0,value:""}),Object.defineProperty(this,Fg,{writable:!0,value:void 0}),Object.defineProperty(this,jg,{writable:!0,value:""}),Object.defineProperty(this,Ug,{writable:!0,value:""}),Object.defineProperty(this,Bg,{writable:!0,value:""}),Object.defineProperty(this,Wg,{writable:!0,value:void 0}),Object.defineProperty(this,zg,{writable:!0,value:void 0}),Object.defineProperty(this,qg,{writable:!0,value:void 0}),t!=null)if(typeof t=="string")this.applyFromObject(JSON.parse(t));else if(Cn(this,lN)[lN](t))this.applyFromObject(t);else throw new Error("Instance cannot be created on an unknown value, check the content being passed. got: "+typeof t)}applyFromObject(t={}){const n=t;n.value!==void 0&&(this.value=n.value),n.sessionSecret!==void 0&&(this.sessionSecret=n.sessionSecret),n.type!==void 0&&(this.type=n.type),n.password!==void 0&&(this.password=n.password),n.firstName!==void 0&&(this.firstName=n.firstName),n.lastName!==void 0&&(this.lastName=n.lastName),n.inviteId!==void 0&&(this.inviteId=n.inviteId),n.publicJoinKeyId!==void 0&&(this.publicJoinKeyId=n.publicJoinKeyId),n.workspaceTypeId!==void 0&&(this.workspaceTypeId=n.workspaceTypeId)}toJSON(){return{value:Cn(this,$g)[$g],sessionSecret:Cn(this,Lg)[Lg],type:Cn(this,Fg)[Fg],password:Cn(this,jg)[jg],firstName:Cn(this,Ug)[Ug],lastName:Cn(this,Bg)[Bg],inviteId:Cn(this,Wg)[Wg],publicJoinKeyId:Cn(this,zg)[zg],workspaceTypeId:Cn(this,qg)[qg]}}toString(){return JSON.stringify(this)}static get Fields(){return{value:"value",sessionSecret:"sessionSecret",type:"type",password:"password",firstName:"firstName",lastName:"lastName",inviteId:"inviteId",publicJoinKeyId:"publicJoinKeyId",workspaceTypeId:"workspaceTypeId"}}static from(t){return new Tc(t)}static with(t){return new Tc(t)}copyWith(t){return new Tc({...this.toJSON(),...t})}clone(){return new Tc(this.toJSON())}}function b$e(e){const t=globalThis,n=typeof t.Buffer<"u"&&typeof t.Buffer.isBuffer=="function"&&t.Buffer.isBuffer(e),r=typeof t.Blob<"u"&&e instanceof t.Blob;return e&&typeof e=="object"&&!Array.isArray(e)&&!n&&!(e instanceof ArrayBuffer)&&!r}var Ed=co("session"),Hg=co("totpUrl"),Vg=co("continueToTotp"),Gg=co("forcedTotp"),uN=co("isJsonAppliable"),s1=co("lateInitFields");class jv{get session(){return Cn(this,Ed)[Ed]}set session(t){t instanceof Dr?Cn(this,Ed)[Ed]=t:Cn(this,Ed)[Ed]=new Dr(t)}setSession(t){return this.session=t,this}get totpUrl(){return Cn(this,Hg)[Hg]}set totpUrl(t){Cn(this,Hg)[Hg]=String(t)}setTotpUrl(t){return this.totpUrl=t,this}get continueToTotp(){return Cn(this,Vg)[Vg]}set continueToTotp(t){Cn(this,Vg)[Vg]=!!t}setContinueToTotp(t){return this.continueToTotp=t,this}get forcedTotp(){return Cn(this,Gg)[Gg]}set forcedTotp(t){Cn(this,Gg)[Gg]=!!t}setForcedTotp(t){return this.forcedTotp=t,this}constructor(t=void 0){if(Object.defineProperty(this,s1,{value:S$e}),Object.defineProperty(this,uN,{value:w$e}),Object.defineProperty(this,Ed,{writable:!0,value:void 0}),Object.defineProperty(this,Hg,{writable:!0,value:""}),Object.defineProperty(this,Vg,{writable:!0,value:void 0}),Object.defineProperty(this,Gg,{writable:!0,value:void 0}),t==null){Cn(this,s1)[s1]();return}if(typeof t=="string")this.applyFromObject(JSON.parse(t));else if(Cn(this,uN)[uN](t))this.applyFromObject(t);else throw new Error("Instance cannot be created on an unknown value, check the content being passed. got: "+typeof t)}applyFromObject(t={}){const n=t;n.session!==void 0&&(this.session=n.session),n.totpUrl!==void 0&&(this.totpUrl=n.totpUrl),n.continueToTotp!==void 0&&(this.continueToTotp=n.continueToTotp),n.forcedTotp!==void 0&&(this.forcedTotp=n.forcedTotp),Cn(this,s1)[s1](t)}toJSON(){return{session:Cn(this,Ed)[Ed],totpUrl:Cn(this,Hg)[Hg],continueToTotp:Cn(this,Vg)[Vg],forcedTotp:Cn(this,Gg)[Gg]}}toString(){return JSON.stringify(this)}static get Fields(){return{session$:"session",get session(){return Pc("session",Dr.Fields)},totpUrl:"totpUrl",continueToTotp:"continueToTotp",forcedTotp:"forcedTotp"}}static from(t){return new jv(t)}static with(t){return new jv(t)}copyWith(t){return new jv({...this.toJSON(),...t})}clone(){return new jv(this.toJSON())}}function w$e(e){const t=globalThis,n=typeof t.Buffer<"u"&&typeof t.Buffer.isBuffer=="function"&&t.Buffer.isBuffer(e),r=typeof t.Blob<"u"&&e instanceof t.Blob;return e&&typeof e=="object"&&!Array.isArray(e)&&!n&&!(e instanceof ArrayBuffer)&&!r}function S$e(e={}){const t=e;t.session instanceof Dr||(this.session=new Dr(t.session||{}))}var zE;function $s(e,t){if(!{}.hasOwnProperty.call(e,t))throw new TypeError("attempted to use private field on non-instance");return e}var E$e=0;function TT(e){return"__private_"+E$e+++"_"+e}const T$e=e=>{const t=Ho(),n=(e==null?void 0:e.ctx)??t??void 0,[r,a]=R.useState(!1),[i,o]=R.useState(),l=()=>(a(!1),Zd.Fetch({headers:e==null?void 0:e.headers},{creatorFn:e==null?void 0:e.creatorFn,qs:e==null?void 0:e.qs,ctx:n,onMessage:e==null?void 0:e.onMessage,overrideUrl:e==null?void 0:e.overrideUrl}).then(d=>(d.done.then(()=>{a(!0)}),o(d.response),d.response.result)));return{...jn({queryKey:[Zd.NewUrl(e==null?void 0:e.qs)],queryFn:l,...e||{}}),isCompleted:r,response:i}};class Zd{}zE=Zd;Zd.URL="/workspace/public/types";Zd.NewUrl=e=>Wo(zE.URL,void 0,e);Zd.Method="get";Zd.Fetch$=async(e,t,n,r)=>zo(r??zE.NewUrl(e),{method:zE.Method,...n||{}},t);Zd.Fetch=async(e,{creatorFn:t,qs:n,ctx:r,onMessage:a,overrideUrl:i}={creatorFn:o=>new Uv(o)})=>{t=t||(l=>new Uv(l));const o=await zE.Fetch$(n,r,e,i);return qo(o,l=>{const u=new so;return t&&u.setCreator(t),u.inject(l),u},a,e==null?void 0:e.signal)};Zd.Definition={name:"QueryWorkspaceTypesPublicly",cliName:"public-types",url:"/workspace/public/types",method:"get",description:"Returns the workspaces types available in the project publicly without authentication, and the value could be used upon signup to go different route.",out:{envelope:"GResponse",fields:[{name:"title",type:"string"},{name:"description",type:"string"},{name:"uniqueId",type:"string"},{name:"slug",type:"string"}]}};var Yg=TT("title"),Kg=TT("description"),Xg=TT("uniqueId"),Qg=TT("slug"),cN=TT("isJsonAppliable");class Uv{get title(){return $s(this,Yg)[Yg]}set title(t){$s(this,Yg)[Yg]=String(t)}setTitle(t){return this.title=t,this}get description(){return $s(this,Kg)[Kg]}set description(t){$s(this,Kg)[Kg]=String(t)}setDescription(t){return this.description=t,this}get uniqueId(){return $s(this,Xg)[Xg]}set uniqueId(t){$s(this,Xg)[Xg]=String(t)}setUniqueId(t){return this.uniqueId=t,this}get slug(){return $s(this,Qg)[Qg]}set slug(t){$s(this,Qg)[Qg]=String(t)}setSlug(t){return this.slug=t,this}constructor(t=void 0){if(Object.defineProperty(this,cN,{value:C$e}),Object.defineProperty(this,Yg,{writable:!0,value:""}),Object.defineProperty(this,Kg,{writable:!0,value:""}),Object.defineProperty(this,Xg,{writable:!0,value:""}),Object.defineProperty(this,Qg,{writable:!0,value:""}),t!=null)if(typeof t=="string")this.applyFromObject(JSON.parse(t));else if($s(this,cN)[cN](t))this.applyFromObject(t);else throw new Error("Instance cannot be created on an unknown value, check the content being passed. got: "+typeof t)}applyFromObject(t={}){const n=t;n.title!==void 0&&(this.title=n.title),n.description!==void 0&&(this.description=n.description),n.uniqueId!==void 0&&(this.uniqueId=n.uniqueId),n.slug!==void 0&&(this.slug=n.slug)}toJSON(){return{title:$s(this,Yg)[Yg],description:$s(this,Kg)[Kg],uniqueId:$s(this,Xg)[Xg],slug:$s(this,Qg)[Qg]}}toString(){return JSON.stringify(this)}static get Fields(){return{title:"title",description:"description",uniqueId:"uniqueId",slug:"slug"}}static from(t){return new Uv(t)}static with(t){return new Uv(t)}copyWith(t){return new Uv({...this.toJSON(),...t})}clone(){return new Uv(this.toJSON())}}function C$e(e){const t=globalThis,n=typeof t.Buffer<"u"&&typeof t.Buffer.isBuffer=="function"&&t.Buffer.isBuffer(e),r=typeof t.Blob<"u"&&e instanceof t.Blob;return e&&typeof e=="object"&&!Array.isArray(e)&&!n&&!(e instanceof ArrayBuffer)&&!r}const k$e=()=>{var k;const{goBack:e,state:t,push:n}=xr(),{locale:r}=sr(),{onComplete:a}=ST(),i=y$e(),o=t==null?void 0:t.totpUrl,{data:l,isLoading:u}=T$e({}),d=((k=l==null?void 0:l.data)==null?void 0:k.items)||[],f=Kt(Oa),g=sessionStorage.getItem("workspace_type_id"),y=_=>{i.mutateAsync(new Tc({..._,value:t==null?void 0:t.value,workspaceTypeId:C,type:t==null?void 0:t.type,sessionSecret:t==null?void 0:t.sessionSecret})).then(v).catch(A=>{h==null||h.setErrors(z0(A))})},h=uf({initialValues:{},onSubmit:y});R.useEffect(()=>{h==null||h.setFieldValue(Tc.Fields.value,t==null?void 0:t.value)},[t==null?void 0:t.value]);const v=_=>{_.data.item.session?a(_):_.data.item.continueToTotp&&n(`/${r}/selfservice/totp-setup`,void 0,{totpUrl:_.data.item.totpUrl||o,forcedTotp:_.data.item.forcedTotp,password:h.values.password,value:t==null?void 0:t.value})},[E,T]=R.useState("");let C=d.length===1?d[0].uniqueId:E;return g&&(C=g),{mutation:i,isLoading:u,form:h,setSelectedWorkspaceType:T,totpUrl:o,workspaceTypeId:C,submit:y,goBack:e,s:f,workspaceTypes:d,state:t}},x$e=({})=>{const{goBack:e,mutation:t,form:n,workspaceTypes:r,workspaceTypeId:a,isLoading:i,setSelectedWorkspaceType:o,s:l}=k$e();return i?w.jsx("div",{className:"signin-form-container",children:w.jsx(cre,{})}):r.length===0?w.jsxs("div",{className:"signin-form-container",children:[w.jsx("h1",{children:l.registerationNotPossible}),w.jsx("p",{children:l.registerationNotPossibleLine1}),w.jsx("p",{children:l.registerationNotPossibleLine2})]}):r.length>=2&&!a?w.jsxs("div",{className:"signin-form-container fadein",style:{animation:"fadein 1s"},children:[w.jsx("h1",{children:l.completeYourAccount}),w.jsx("p",{children:l.completeYourAccountDescription}),w.jsx("div",{className:" ",children:r.map(u=>w.jsxs("div",{className:"mt-3",children:[w.jsx("h2",{children:u.title}),w.jsx("p",{children:u.description}),w.jsx("button",{className:"btn btn-outline-primary w-100",onClick:()=>{o(u.uniqueId)},children:"Select"},u.uniqueId)]},u.uniqueId))})]}):w.jsxs("div",{className:"signin-form-container fadein",style:{animation:"fadein 1s"},children:[w.jsx("h1",{children:l.completeYourAccount}),w.jsx("p",{children:l.completeYourAccountDescription}),w.jsx(Ll,{query:t}),w.jsx(_$e,{form:n,mutation:t}),w.jsx("button",{id:"go-step-back",onClick:e,className:"bg-transparent border-0",children:l.cancelStep})]})},_$e=({form:e,mutation:t})=>{const n=Kt(Oa),r=!e.values.firstName||!e.values.lastName||!e.values.password||e.values.password.length<6;return w.jsxs("form",{onSubmit:a=>{a.preventDefault(),e.submitForm()},children:[w.jsx(In,{value:e.values.firstName,label:n.firstName,id:"first-name-input",autoFocus:!0,errorMessage:e.errors.firstName,onChange:a=>e.setFieldValue(Tc.Fields.firstName,a,!1)}),w.jsx(In,{value:e.values.lastName,label:n.lastName,id:"last-name-input",errorMessage:e.errors.lastName,onChange:a=>e.setFieldValue(Tc.Fields.lastName,a,!1)}),w.jsx(In,{type:"password",value:e.values.password,label:n.password,id:"password-input",errorMessage:e.errors.password,onChange:a=>e.setFieldValue(Tc.Fields.password,a,!1)}),w.jsx(Ys,{className:"btn btn-primary w-100 d-block mb-2",mutation:t,id:"submit-form",disabled:r,children:n.continue})]})};var qE;function ji(e,t){if(!{}.hasOwnProperty.call(e,t))throw new TypeError("attempted to use private field on non-instance");return e}var O$e=0;function gy(e){return"__private_"+O$e+++"_"+e}const R$e=e=>{const n=Ho()??void 0,[r,a]=R.useState(!1),[i,o]=R.useState();return{...un({mutationFn:d=>(a(!1),$h.Fetch({body:d,headers:e==null?void 0:e.headers},{creatorFn:e==null?void 0:e.creatorFn,qs:e==null?void 0:e.qs,ctx:n,onMessage:e==null?void 0:e.onMessage,overrideUrl:e==null?void 0:e.overrideUrl}).then(f=>(f.done.then(()=>{a(!0)}),o(f.response),f.response.result)))}),isCompleted:r,response:i}};class $h{}qE=$h;$h.URL="/workspace/passport/request-otp";$h.NewUrl=e=>Wo(qE.URL,void 0,e);$h.Method="post";$h.Fetch$=async(e,t,n,r)=>zo(r??qE.NewUrl(e),{method:qE.Method,...n||{}},t);$h.Fetch=async(e,{creatorFn:t,qs:n,ctx:r,onMessage:a,overrideUrl:i}={creatorFn:o=>new Bv(o)})=>{t=t||(l=>new Bv(l));const o=await qE.Fetch$(n,r,e,i);return qo(o,l=>{const u=new so;return t&&u.setCreator(t),u.inject(l),u},a,e==null?void 0:e.signal)};$h.Definition={name:"ClassicPassportRequestOtp",cliName:"otp-request",url:"/workspace/passport/request-otp",method:"post",description:"Triggers an otp request, and will send an sms or email to the passport. This endpoint is not used for login, but rather makes a request at initial step. Later you can call classicPassportOtp to get in.",in:{fields:[{name:"value",description:"Passport value (email, phone number) which would be receiving the otp code.",type:"string",tags:{validate:"required"}}]},out:{envelope:"GResponse",fields:[{name:"suspendUntil",type:"int64"},{name:"validUntil",type:"int64"},{name:"blockedUntil",type:"int64"},{name:"secondsToUnblock",description:"The amount of time left to unblock for next request",type:"int64"}]}};var Jg=gy("value"),dN=gy("isJsonAppliable");class c0{get value(){return ji(this,Jg)[Jg]}set value(t){ji(this,Jg)[Jg]=String(t)}setValue(t){return this.value=t,this}constructor(t=void 0){if(Object.defineProperty(this,dN,{value:P$e}),Object.defineProperty(this,Jg,{writable:!0,value:""}),t!=null)if(typeof t=="string")this.applyFromObject(JSON.parse(t));else if(ji(this,dN)[dN](t))this.applyFromObject(t);else throw new Error("Instance cannot be created on an unknown value, check the content being passed. got: "+typeof t)}applyFromObject(t={}){const n=t;n.value!==void 0&&(this.value=n.value)}toJSON(){return{value:ji(this,Jg)[Jg]}}toString(){return JSON.stringify(this)}static get Fields(){return{value:"value"}}static from(t){return new c0(t)}static with(t){return new c0(t)}copyWith(t){return new c0({...this.toJSON(),...t})}clone(){return new c0(this.toJSON())}}function P$e(e){const t=globalThis,n=typeof t.Buffer<"u"&&typeof t.Buffer.isBuffer=="function"&&t.Buffer.isBuffer(e),r=typeof t.Blob<"u"&&e instanceof t.Blob;return e&&typeof e=="object"&&!Array.isArray(e)&&!n&&!(e instanceof ArrayBuffer)&&!r}var Zg=gy("suspendUntil"),ev=gy("validUntil"),tv=gy("blockedUntil"),nv=gy("secondsToUnblock"),fN=gy("isJsonAppliable");class Bv{get suspendUntil(){return ji(this,Zg)[Zg]}set suspendUntil(t){const r=typeof t=="number"?t:Number(t);Number.isNaN(r)||(ji(this,Zg)[Zg]=r)}setSuspendUntil(t){return this.suspendUntil=t,this}get validUntil(){return ji(this,ev)[ev]}set validUntil(t){const r=typeof t=="number"?t:Number(t);Number.isNaN(r)||(ji(this,ev)[ev]=r)}setValidUntil(t){return this.validUntil=t,this}get blockedUntil(){return ji(this,tv)[tv]}set blockedUntil(t){const r=typeof t=="number"?t:Number(t);Number.isNaN(r)||(ji(this,tv)[tv]=r)}setBlockedUntil(t){return this.blockedUntil=t,this}get secondsToUnblock(){return ji(this,nv)[nv]}set secondsToUnblock(t){const r=typeof t=="number"?t:Number(t);Number.isNaN(r)||(ji(this,nv)[nv]=r)}setSecondsToUnblock(t){return this.secondsToUnblock=t,this}constructor(t=void 0){if(Object.defineProperty(this,fN,{value:A$e}),Object.defineProperty(this,Zg,{writable:!0,value:0}),Object.defineProperty(this,ev,{writable:!0,value:0}),Object.defineProperty(this,tv,{writable:!0,value:0}),Object.defineProperty(this,nv,{writable:!0,value:0}),t!=null)if(typeof t=="string")this.applyFromObject(JSON.parse(t));else if(ji(this,fN)[fN](t))this.applyFromObject(t);else throw new Error("Instance cannot be created on an unknown value, check the content being passed. got: "+typeof t)}applyFromObject(t={}){const n=t;n.suspendUntil!==void 0&&(this.suspendUntil=n.suspendUntil),n.validUntil!==void 0&&(this.validUntil=n.validUntil),n.blockedUntil!==void 0&&(this.blockedUntil=n.blockedUntil),n.secondsToUnblock!==void 0&&(this.secondsToUnblock=n.secondsToUnblock)}toJSON(){return{suspendUntil:ji(this,Zg)[Zg],validUntil:ji(this,ev)[ev],blockedUntil:ji(this,tv)[tv],secondsToUnblock:ji(this,nv)[nv]}}toString(){return JSON.stringify(this)}static get Fields(){return{suspendUntil:"suspendUntil",validUntil:"validUntil",blockedUntil:"blockedUntil",secondsToUnblock:"secondsToUnblock"}}static from(t){return new Bv(t)}static with(t){return new Bv(t)}copyWith(t){return new Bv({...this.toJSON(),...t})}clone(){return new Bv(this.toJSON())}}function A$e(e){const t=globalThis,n=typeof t.Buffer<"u"&&typeof t.Buffer.isBuffer=="function"&&t.Buffer.isBuffer(e),r=typeof t.Blob<"u"&&e instanceof t.Blob;return e&&typeof e=="object"&&!Array.isArray(e)&&!n&&!(e instanceof ArrayBuffer)&&!r}const N$e=()=>{const e=Kt(Oa),{goBack:t,state:n,push:r}=xr(),{locale:a}=sr(),{onComplete:i}=ST(),o=fre(),l=n==null?void 0:n.canContinueOnOtp,u=R$e(),d=h=>{o.mutateAsync(new Cu({value:h.value,password:h.password})).then(y).catch(v=>{f==null||f.setErrors(z0(v))})},f=uf({initialValues:{},onSubmit:d}),g=()=>{u.mutateAsync(new c0({value:f.values.value})).then(h=>{r("../otp",void 0,{value:f.values.value})}).catch(h=>{h.error.message==="OtaRequestBlockedUntil"&&r("../otp",void 0,{value:f.values.value})})};R.useEffect(()=>{n!=null&&n.value&&f.setFieldValue(Cu.Fields.value,n.value)},[n==null?void 0:n.value]);const y=h=>{var v,E;h.data.item.session?i(h):(v=h.data.item.next)!=null&&v.includes("enter-totp")?r(`/${a}/selfservice/totp-enter`,void 0,{value:f.values.value,password:f.values.password}):(E=h.data.item.next)!=null&&E.includes("setup-totp")&&r(`/${a}/selfservice/totp-setup`,void 0,{totpUrl:h.data.item.totpUrl,forcedTotp:!0,password:f.values.password,value:n==null?void 0:n.value})};return{mutation:o,otpEnabled:l,continueWithOtp:g,form:f,submit:d,goBack:t,s:e}},M$e=({})=>{const{goBack:e,mutation:t,form:n,continueWithOtp:r,otpEnabled:a,s:i}=N$e();return w.jsxs("div",{className:"signin-form-container",children:[w.jsx("h1",{children:i.enterPassword}),w.jsx("p",{children:i.enterPasswordDescription}),w.jsx(Ll,{query:t}),w.jsx(I$e,{form:n,mutation:t,continueWithOtp:r,otpEnabled:a}),w.jsx("button",{id:"go-back-button",onClick:e,className:"btn bg-transparent w-100 mt-4",children:i.anotherAccount})]})},I$e=({form:e,mutation:t,otpEnabled:n,continueWithOtp:r})=>{const a=Kt(Oa),i=!e.values.value||!e.values.password;return w.jsxs("form",{onSubmit:o=>{o.preventDefault(),e.submitForm()},children:[w.jsx(In,{type:"password",value:e.values.password,label:a.password,id:"password-input",autoFocus:!0,errorMessage:e.errors.password,onChange:o=>e.setFieldValue(Cu.Fields.password,o,!1)}),w.jsx(Ys,{className:"btn btn-primary w-100 d-block mb-2",mutation:t,id:"submit-form",disabled:i,children:a.continue}),n&&w.jsx("button",{onClick:r,className:"bg-transparent border-0 mt-3 mb-3",children:a.useOneTimePassword})]})};var HE;function Ua(e,t){if(!{}.hasOwnProperty.call(e,t))throw new TypeError("attempted to use private field on non-instance");return e}var D$e=0;function Lh(e){return"__private_"+D$e+++"_"+e}const $$e=e=>{const t=Ho(),n=(e==null?void 0:e.ctx)??t??void 0,[r,a]=R.useState(!1),[i,o]=R.useState();return{...un({mutationFn:d=>(a(!1),Fh.Fetch({body:d,headers:e==null?void 0:e.headers},{creatorFn:e==null?void 0:e.creatorFn,qs:e==null?void 0:e.qs,ctx:n,onMessage:e==null?void 0:e.onMessage,overrideUrl:e==null?void 0:e.overrideUrl}).then(f=>(f.done.then(()=>{a(!0)}),o(f.response),f.response.result))),...e||{}}),isCompleted:r,response:i}};class Fh{}HE=Fh;Fh.URL="/workspace/passport/otp";Fh.NewUrl=e=>Wo(HE.URL,void 0,e);Fh.Method="post";Fh.Fetch$=async(e,t,n,r)=>zo(r??HE.NewUrl(e),{method:HE.Method,...n||{}},t);Fh.Fetch=async(e,{creatorFn:t,qs:n,ctx:r,onMessage:a,overrideUrl:i}={creatorFn:o=>new zv(o)})=>{t=t||(l=>new zv(l));const o=await HE.Fetch$(n,r,e,i);return qo(o,l=>{const u=new so;return t&&u.setCreator(t),u.inject(l),u},a,e==null?void 0:e.signal)};Fh.Definition={name:"ClassicPassportOtp",cliName:"otp",url:"/workspace/passport/otp",method:"post",description:"Authenticate the user publicly for classic methods using communication service, such as sms, call, or email. You need to call classicPassportRequestOtp beforehand to send a otp code, and then validate it with this API. Also checkClassicPassport action might already sent the otp, so make sure you don't send it twice.",in:{fields:[{name:"value",type:"string",tags:{validate:"required"}},{name:"otp",type:"string",tags:{validate:"required"}}]},out:{envelope:"GResponse",fields:[{name:"session",description:"Upon successful authentication, there will be a session dto generated, which is a ground information of authorized user and can be stored in front-end.",type:"one?",target:"UserSessionDto"},{name:"totpUrl",description:"If time based otp is available, we add it response to make it easier for ui.",type:"string"},{name:"sessionSecret",description:"The session secret will be used to call complete user registration api.",type:"string"},{name:"continueWithCreation",description:"If return true, means the OTP is correct and user needs to be created before continue the authentication process.",type:"bool"}]}};var rv=Lh("value"),av=Lh("otp"),pN=Lh("isJsonAppliable");class Wv{get value(){return Ua(this,rv)[rv]}set value(t){Ua(this,rv)[rv]=String(t)}setValue(t){return this.value=t,this}get otp(){return Ua(this,av)[av]}set otp(t){Ua(this,av)[av]=String(t)}setOtp(t){return this.otp=t,this}constructor(t=void 0){if(Object.defineProperty(this,pN,{value:L$e}),Object.defineProperty(this,rv,{writable:!0,value:""}),Object.defineProperty(this,av,{writable:!0,value:""}),t!=null)if(typeof t=="string")this.applyFromObject(JSON.parse(t));else if(Ua(this,pN)[pN](t))this.applyFromObject(t);else throw new Error("Instance cannot be created on an unknown value, check the content being passed. got: "+typeof t)}applyFromObject(t={}){const n=t;n.value!==void 0&&(this.value=n.value),n.otp!==void 0&&(this.otp=n.otp)}toJSON(){return{value:Ua(this,rv)[rv],otp:Ua(this,av)[av]}}toString(){return JSON.stringify(this)}static get Fields(){return{value:"value",otp:"otp"}}static from(t){return new Wv(t)}static with(t){return new Wv(t)}copyWith(t){return new Wv({...this.toJSON(),...t})}clone(){return new Wv(this.toJSON())}}function L$e(e){const t=globalThis,n=typeof t.Buffer<"u"&&typeof t.Buffer.isBuffer=="function"&&t.Buffer.isBuffer(e),r=typeof t.Blob<"u"&&e instanceof t.Blob;return e&&typeof e=="object"&&!Array.isArray(e)&&!n&&!(e instanceof ArrayBuffer)&&!r}var Td=Lh("session"),iv=Lh("totpUrl"),ov=Lh("sessionSecret"),sv=Lh("continueWithCreation"),hN=Lh("isJsonAppliable");class zv{get session(){return Ua(this,Td)[Td]}set session(t){t instanceof Dr?Ua(this,Td)[Td]=t:Ua(this,Td)[Td]=new Dr(t)}setSession(t){return this.session=t,this}get totpUrl(){return Ua(this,iv)[iv]}set totpUrl(t){Ua(this,iv)[iv]=String(t)}setTotpUrl(t){return this.totpUrl=t,this}get sessionSecret(){return Ua(this,ov)[ov]}set sessionSecret(t){Ua(this,ov)[ov]=String(t)}setSessionSecret(t){return this.sessionSecret=t,this}get continueWithCreation(){return Ua(this,sv)[sv]}set continueWithCreation(t){Ua(this,sv)[sv]=!!t}setContinueWithCreation(t){return this.continueWithCreation=t,this}constructor(t=void 0){if(Object.defineProperty(this,hN,{value:F$e}),Object.defineProperty(this,Td,{writable:!0,value:void 0}),Object.defineProperty(this,iv,{writable:!0,value:""}),Object.defineProperty(this,ov,{writable:!0,value:""}),Object.defineProperty(this,sv,{writable:!0,value:void 0}),t!=null)if(typeof t=="string")this.applyFromObject(JSON.parse(t));else if(Ua(this,hN)[hN](t))this.applyFromObject(t);else throw new Error("Instance cannot be created on an unknown value, check the content being passed. got: "+typeof t)}applyFromObject(t={}){const n=t;n.session!==void 0&&(this.session=n.session),n.totpUrl!==void 0&&(this.totpUrl=n.totpUrl),n.sessionSecret!==void 0&&(this.sessionSecret=n.sessionSecret),n.continueWithCreation!==void 0&&(this.continueWithCreation=n.continueWithCreation)}toJSON(){return{session:Ua(this,Td)[Td],totpUrl:Ua(this,iv)[iv],sessionSecret:Ua(this,ov)[ov],continueWithCreation:Ua(this,sv)[sv]}}toString(){return JSON.stringify(this)}static get Fields(){return{session:"session",totpUrl:"totpUrl",sessionSecret:"sessionSecret",continueWithCreation:"continueWithCreation"}}static from(t){return new zv(t)}static with(t){return new zv(t)}copyWith(t){return new zv({...this.toJSON(),...t})}clone(){return new zv(this.toJSON())}}function F$e(e){const t=globalThis,n=typeof t.Buffer<"u"&&typeof t.Buffer.isBuffer=="function"&&t.Buffer.isBuffer(e),r=typeof t.Blob<"u"&&e instanceof t.Blob;return e&&typeof e=="object"&&!Array.isArray(e)&&!n&&!(e instanceof ArrayBuffer)&&!r}const j$e=()=>{const{goBack:e,state:t,replace:n,push:r}=xr(),{locale:a}=sr(),i=Kt(Oa),o=$$e({}),{onComplete:l}=ST(),u=g=>{o.mutateAsync(new Wv({...g,value:t.value})).then(f).catch(y=>{d==null||d.setErrors(z0(y))})},d=uf({initialValues:{},onSubmit:u}),f=g=>{var y,h,v,E,T;(y=g.data)!=null&&y.item.session?l(g):(v=(h=g.data)==null?void 0:h.item)!=null&&v.continueWithCreation&&r(`/${a}/selfservice/complete`,void 0,{value:t.value,type:t.type,sessionSecret:(E=g.data.item)==null?void 0:E.sessionSecret,totpUrl:(T=g.data.item)==null?void 0:T.totpUrl})};return{mutation:o,form:d,s:i,submit:u,goBack:e}},U$e=({})=>{const{goBack:e,mutation:t,form:n,s:r}=j$e();return w.jsxs("div",{className:"signin-form-container",children:[w.jsx("h1",{children:r.enterOtp}),w.jsx("p",{children:r.enterOtpDescription}),w.jsx(Ll,{query:t}),w.jsx(B$e,{form:n,mutation:t}),w.jsx("button",{id:"go-back-button",className:"btn bg-transparent w-100 mt-4",onClick:e,children:r.anotherAccount})]})},B$e=({form:e,mutation:t})=>{var a;const n=!e.values.otp,r=Kt(Oa);return w.jsxs("form",{onSubmit:i=>{i.preventDefault(),e.submitForm()},children:[w.jsx(ET,{values:(a=e.values.otp)==null?void 0:a.split(""),onChange:i=>e.setFieldValue(Wv.Fields.otp,i,!1),className:"otp-react-code-input"}),w.jsx(Ys,{className:"btn btn-primary w-100 d-block mb-2",mutation:t,id:"submit-form",disabled:n,children:r.continue})]})};class Ws extends wn{constructor(...t){super(...t),this.children=void 0,this.role=void 0,this.roleId=void 0,this.workspace=void 0}}Ws.Navigation={edit(e,t){return`${t?"/"+t:".."}/public-join-key/edit/${e}`},create(e){return`${e?"/"+e:".."}/public-join-key/new`},single(e,t){return`${t?"/"+t:".."}/public-join-key/${e}`},query(e={},t){return`${t?"/"+t:".."}/public-join-keys`},Redit:"public-join-key/edit/:uniqueId",Rcreate:"public-join-key/new",Rsingle:"public-join-key/:uniqueId",Rquery:"public-join-keys"};Ws.definition={rpc:{query:{}},name:"publicJoinKey",features:{},gormMap:{},fields:[{name:"role",type:"one",target:"RoleEntity",computedType:"RoleEntity",gormMap:{}},{name:"workspace",type:"one",target:"WorkspaceEntity",computedType:"WorkspaceEntity",gormMap:{}}],description:"Joining to different workspaces using a public link directly"};Ws.Fields={...wn.Fields,roleId:"roleId",role$:"role",role:ai.Fields,workspace$:"workspace",workspace:bi.Fields};function kre({queryOptions:e,execFnOverride:t,query:n,queryClient:r,unauthorized:a}){var T;const{options:i,execFn:o}=R.useContext(it),l=t?t(i):o?o(i):Tt(i);let d=`${"/public-join-key/:uniqueId".substr(1)}?${new URLSearchParams(Gt(n)).toString()}`,f=!0;d=d.replace(":uniqueId",n[":uniqueId".replace(":","")]),n[":uniqueId".replace(":","")]===void 0&&(f=!1);const g=()=>l("GET",d),y=(T=i==null?void 0:i.headers)==null?void 0:T.authorization,h=y!="undefined"&&y!=null&&y!=null&&y!="null"&&!!y;let v=!0;return f?!h&&!a&&(v=!1):v=!1,{query:jn([i,n,"*abac.PublicJoinKeyEntity"],g,{cacheTime:1001,retry:!1,keepPreviousData:!0,enabled:v,...e||{}})}}function W$e(e){let{queryClient:t,query:n,execFnOverride:r}=e||{};n=n||{};const{options:a,execFn:i}=R.useContext(it),o=r?r(a):i?i(a):Tt(a);let u=`${"/public-join-key".substr(1)}?${new URLSearchParams(Gt(n)).toString()}`;const f=un(h=>o("PATCH",u,h)),g=(h,v)=>{var E;return h?(h.data&&(v!=null&&v.data)&&(h.data.items=[v.data,...((E=h==null?void 0:h.data)==null?void 0:E.items)||[]]),h):{data:{items:[]}}};return{mutation:f,submit:(h,v)=>new Promise((E,T)=>{f.mutate(h,{onSuccess(C){t==null||t.setQueriesData("*abac.PublicJoinKeyEntity",k=>g(k,C)),E(C)},onError(C){v==null||v.setErrors(Pn(C)),T(C)}})}),fnUpdater:g}}function z$e(e){let{queryClient:t,query:n,execFnOverride:r}=e||{};n=n||{};const{options:a,execFn:i}=R.useContext(it),o=r?r(a):i?i(a):Tt(a);let u=`${"/public-join-key".substr(1)}?${new URLSearchParams(Gt(n)).toString()}`;const f=un(h=>o("POST",u,h)),g=(h,v)=>{var E;return h?(h.data&&(v!=null&&v.data)&&(h.data.items=[v.data,...((E=h==null?void 0:h.data)==null?void 0:E.items)||[]]),h):{data:{items:[]}}};return{mutation:f,submit:(h,v)=>new Promise((E,T)=>{f.mutate(h,{onSuccess(C){t==null||t.setQueryData("*abac.PublicJoinKeyEntity",k=>g(k,C)),E(C)},onError(C){v==null||v.setErrors(Pn(C)),T(C)}})}),fnUpdater:g}}const q$e=({form:e,isEditing:t})=>{const{values:n,setValues:r,setFieldValue:a,errors:i}=e,{options:o}=R.useContext(it),l=At();return w.jsx(w.Fragment,{children:w.jsx(da,{formEffect:{field:Ws.Fields.role$,form:e},querySource:ff,label:l.wokspaces.invite.role,errorMessage:i.roleId,fnLabelFormat:u=>u.name,hint:l.wokspaces.invite.roleHint})})},qz=({data:e})=>{const{router:t,uniqueId:n,queryClient:r,t:a}=$r({data:e}),i=kre({query:{uniqueId:n}}),o=z$e({queryClient:r}),l=W$e({queryClient:r});return w.jsx(Yo,{postHook:o,getSingleHook:i,patchHook:l,onCancel:()=>{t.goBackOrDefault(Ws.Navigation.query())},onFinishUriResolver:(u,d)=>{var f;return Ws.Navigation.single((f=u.data)==null?void 0:f.uniqueId)},Form:q$e,onEditTitle:a.fb.editPublicJoinKey,onCreateTitle:a.fb.newPublicJoinKey,data:e})},H$e=()=>{var i,o;const e=xr(),t=At(),n=e.query.uniqueId;sr();const r=kre({query:{uniqueId:n}});var a=(i=r.query.data)==null?void 0:i.data;return w.jsx(w.Fragment,{children:w.jsx(lo,{editEntityHandler:()=>{e.push(Ws.Navigation.edit(n))},getSingleHook:r,children:w.jsx(uo,{entity:a,fields:[{label:t.role.name,elem:(o=a==null?void 0:a.role)==null?void 0:o.name}]})})})};function V$e(e){const{execFnOverride:t,queryClient:n,query:r}=e||{},{options:a,execFn:i}=R.useContext(it),o=t?t(a):i?i(a):Tt(a);let u=`${"/public-join-key".substr(1)}?${new URLSearchParams(Gt(r)).toString()}`;const f=un(h=>o("DELETE",u,h)),g=(h,v)=>h;return{mutation:f,submit:(h,v)=>new Promise((E,T)=>{f.mutate(h,{onSuccess(C){n==null||n.setQueryData("*abac.PublicJoinKeyEntity",k=>g(k)),n==null||n.invalidateQueries("*abac.PublicJoinKeyEntity"),E(C)},onError(C){v==null||v.setErrors(Pn(C)),T(C)}})}),fnUpdater:g}}function xre({queryOptions:e,query:t,queryClient:n,execFnOverride:r,unauthorized:a,optionFn:i}){var k,_,A;const{options:o,execFn:l}=R.useContext(it),u=i?i(o):o,d=r?r(u):l?l(u):Tt(u);let g=`${"/public-join-keys".substr(1)}?${oi.stringify(t)}`;const y=()=>d("GET",g),h=(k=u==null?void 0:u.headers)==null?void 0:k.authorization,v=h!="undefined"&&h!=null&&h!=null&&h!="null"&&!!h;let E=!0;!v&&!a&&(E=!1);const T=jn(["*abac.PublicJoinKeyEntity",u,t],y,{cacheTime:1e3,retry:!1,keepPreviousData:!0,enabled:E,...e||{}}),C=((A=(_=T.data)==null?void 0:_.data)==null?void 0:A.items)||[];return{query:T,items:C,keyExtractor:P=>P.uniqueId}}xre.UKEY="*abac.PublicJoinKeyEntity";const G$e={roleName:"Role name",uniqueId:"Unique Id"},Y$e={roleName:"Nazwa roli",uniqueId:"Unikalny identyfikator"},K$e={...G$e,$pl:Y$e},X$e=e=>[{name:"uniqueId",title:e.uniqueId,width:200},{name:"role",title:e.roleName,width:200,getCellValue:t=>{var n;return(n=t.role)==null?void 0:n.name}}],Q$e=()=>{const e=Kt(K$e);return w.jsx(w.Fragment,{children:w.jsx(Go,{columns:X$e(e),queryHook:xre,uniqueIdHrefHandler:t=>Ws.Navigation.single(t),deleteHook:V$e})})},J$e=()=>{const e=At();return w.jsx(w.Fragment,{children:w.jsx(Vo,{pageTitle:e.fbMenu.publicJoinKey,newEntityHandler:({locale:t,router:n})=>{n.push(Ws.Navigation.create())},children:w.jsx(Q$e,{})})})};function Z$e(){return w.jsxs(w.Fragment,{children:[w.jsx(mt,{element:w.jsx(qz,{}),path:Ws.Navigation.Rcreate}),w.jsx(mt,{element:w.jsx(H$e,{}),path:Ws.Navigation.Rsingle}),w.jsx(mt,{element:w.jsx(qz,{}),path:Ws.Navigation.Redit}),w.jsx(mt,{element:w.jsx(J$e,{}),path:Ws.Navigation.Rquery})]})}function _re({queryOptions:e,execFnOverride:t,query:n,queryClient:r,unauthorized:a}){var T;const{options:i,execFn:o}=R.useContext(it),l=t?t(i):o?o(i):Tt(i);let d=`${"/role/:uniqueId".substr(1)}?${new URLSearchParams(Gt(n)).toString()}`,f=!0;d=d.replace(":uniqueId",n[":uniqueId".replace(":","")]),n[":uniqueId".replace(":","")]===void 0&&(f=!1);const g=()=>l("GET",d),y=(T=i==null?void 0:i.headers)==null?void 0:T.authorization,h=y!="undefined"&&y!=null&&y!=null&&y!="null"&&!!y;let v=!0;return f?!h&&!a&&(v=!1):v=!1,{query:jn([i,n,"*abac.RoleEntity"],g,{cacheTime:1001,retry:!1,keepPreviousData:!0,enabled:v,...e||{}})}}function eLe(e){let{queryClient:t,query:n,execFnOverride:r}=e||{};n=n||{};const{options:a,execFn:i}=R.useContext(it),o=r?r(a):i?i(a):Tt(a);let u=`${"/role".substr(1)}?${new URLSearchParams(Gt(n)).toString()}`;const f=un(h=>o("PATCH",u,h)),g=(h,v)=>{var E;return h?(h.data&&(v!=null&&v.data)&&(h.data.items=[v.data,...((E=h==null?void 0:h.data)==null?void 0:E.items)||[]]),h):{data:{items:[]}}};return{mutation:f,submit:(h,v)=>new Promise((E,T)=>{f.mutate(h,{onSuccess(C){t==null||t.setQueriesData("*abac.RoleEntity",k=>g(k,C)),E(C)},onError(C){v==null||v.setErrors(Pn(C)),T(C)}})}),fnUpdater:g}}function tLe(e){let{queryClient:t,query:n,execFnOverride:r}=e||{};n=n||{};const{options:a,execFn:i}=R.useContext(it),o=r?r(a):i?i(a):Tt(a);let u=`${"/role".substr(1)}?${new URLSearchParams(Gt(n)).toString()}`;const f=un(h=>o("POST",u,h)),g=(h,v)=>{var E;return h?(h.data&&(v!=null&&v.data)&&(h.data.items=[v.data,...((E=h==null?void 0:h.data)==null?void 0:E.items)||[]]),h):{data:{items:[]}}};return{mutation:f,submit:(h,v)=>new Promise((E,T)=>{f.mutate(h,{onSuccess(C){t==null||t.setQueryData("*abac.RoleEntity",k=>g(k,C)),E(C)},onError(C){v==null||v.setErrors(Pn(C)),T(C)}})}),fnUpdater:g}}function nLe({value:e,onChange:t,...n}){const r=R.useRef();return R.useEffect(()=>{r.current.indeterminate=e==="indeterminate"},[r,e]),w.jsx("input",{...n,type:"checkbox",ref:r,onChange:a=>{t("checked")},checked:e==="checked",className:"form-check-input"})}function yu(e,t){if(!{}.hasOwnProperty.call(e,t))throw new TypeError("attempted to use private field on non-instance");return e}var rLe=0;function cO(e){return"__private_"+rLe+++"_"+e}var lv=cO("uniqueId"),uv=cO("name"),Cd=cO("children"),mN=cO("isJsonAppliable");class ds{get uniqueId(){return yu(this,lv)[lv]}set uniqueId(t){yu(this,lv)[lv]=String(t)}setUniqueId(t){return this.uniqueId=t,this}get name(){return yu(this,uv)[uv]}set name(t){yu(this,uv)[uv]=String(t)}setName(t){return this.name=t,this}get children(){return yu(this,Cd)[Cd]}set children(t){Array.isArray(t)&&(t.length>0&&t[0]instanceof ds?yu(this,Cd)[Cd]=t:yu(this,Cd)[Cd]=t.map(n=>new ds(n)))}setChildren(t){return this.children=t,this}constructor(t=void 0){if(Object.defineProperty(this,mN,{value:aLe}),Object.defineProperty(this,lv,{writable:!0,value:""}),Object.defineProperty(this,uv,{writable:!0,value:""}),Object.defineProperty(this,Cd,{writable:!0,value:[]}),t!=null)if(typeof t=="string")this.applyFromObject(JSON.parse(t));else if(yu(this,mN)[mN](t))this.applyFromObject(t);else throw new Error("Instance cannot be created on an unknown value, check the content being passed. got: "+typeof t)}applyFromObject(t={}){const n=t;n.uniqueId!==void 0&&(this.uniqueId=n.uniqueId),n.name!==void 0&&(this.name=n.name),n.children!==void 0&&(this.children=n.children)}toJSON(){return{uniqueId:yu(this,lv)[lv],name:yu(this,uv)[uv],children:yu(this,Cd)[Cd]}}toString(){return JSON.stringify(this)}static get Fields(){return{uniqueId:"uniqueId",name:"name",children$:"children",get children(){return Pc("children[:i]",ds.Fields)}}}static from(t){return new ds(t)}static with(t){return new ds(t)}copyWith(t){return new ds({...this.toJSON(),...t})}clone(){return new ds(this.toJSON())}}function aLe(e){const t=globalThis,n=typeof t.Buffer<"u"&&typeof t.Buffer.isBuffer=="function"&&t.Buffer.isBuffer(e),r=typeof t.Blob<"u"&&e instanceof t.Blob;return e&&typeof e=="object"&&!Array.isArray(e)&&!n&&!(e instanceof ArrayBuffer)&&!r}var VE;function kd(e,t){if(!{}.hasOwnProperty.call(e,t))throw new TypeError("attempted to use private field on non-instance");return e}var iLe=0;function v4(e){return"__private_"+iLe+++"_"+e}const oLe=e=>{const t=Ho(),n=(e==null?void 0:e.ctx)??t??void 0,[r,a]=R.useState(!1),[i,o]=R.useState(),l=()=>(a(!1),ef.Fetch({headers:e==null?void 0:e.headers},{creatorFn:e==null?void 0:e.creatorFn,qs:e==null?void 0:e.qs,ctx:n,onMessage:e==null?void 0:e.onMessage,overrideUrl:e==null?void 0:e.overrideUrl}).then(d=>(d.done.then(()=>{a(!0)}),o(d.response),d.response.result)));return{...jn({queryKey:[ef.NewUrl(e==null?void 0:e.qs)],queryFn:l,...e||{}}),isCompleted:r,response:i}};class ef{}VE=ef;ef.URL="/capabilitiesTree";ef.NewUrl=e=>Wo(VE.URL,void 0,e);ef.Method="get";ef.Fetch$=async(e,t,n,r)=>zo(r??VE.NewUrl(e),{method:VE.Method,...n||{}},t);ef.Fetch=async(e,{creatorFn:t,qs:n,ctx:r,onMessage:a,overrideUrl:i}={creatorFn:o=>new qv(o)})=>{t=t||(l=>new qv(l));const o=await VE.Fetch$(n,r,e,i);return qo(o,l=>{const u=new so;return t&&u.setCreator(t),u.inject(l),u},a,e==null?void 0:e.signal)};ef.Definition={name:"CapabilitiesTree",cliName:"treex",url:"/capabilitiesTree",method:"get",description:"dLists all of the capabilities in database as a array of string as root access",out:{envelope:"GResponse",fields:[{name:"capabilities",type:"collection",target:"CapabilityInfoDto"},{name:"nested",type:"collection",target:"CapabilityInfoDto"}]}};var xd=v4("capabilities"),_d=v4("nested"),gN=v4("isJsonAppliable");class qv{get capabilities(){return kd(this,xd)[xd]}set capabilities(t){Array.isArray(t)&&(t.length>0&&t[0]instanceof ds?kd(this,xd)[xd]=t:kd(this,xd)[xd]=t.map(n=>new ds(n)))}setCapabilities(t){return this.capabilities=t,this}get nested(){return kd(this,_d)[_d]}set nested(t){Array.isArray(t)&&(t.length>0&&t[0]instanceof ds?kd(this,_d)[_d]=t:kd(this,_d)[_d]=t.map(n=>new ds(n)))}setNested(t){return this.nested=t,this}constructor(t=void 0){if(Object.defineProperty(this,gN,{value:sLe}),Object.defineProperty(this,xd,{writable:!0,value:[]}),Object.defineProperty(this,_d,{writable:!0,value:[]}),t!=null)if(typeof t=="string")this.applyFromObject(JSON.parse(t));else if(kd(this,gN)[gN](t))this.applyFromObject(t);else throw new Error("Instance cannot be created on an unknown value, check the content being passed. got: "+typeof t)}applyFromObject(t={}){const n=t;n.capabilities!==void 0&&(this.capabilities=n.capabilities),n.nested!==void 0&&(this.nested=n.nested)}toJSON(){return{capabilities:kd(this,xd)[xd],nested:kd(this,_d)[_d]}}toString(){return JSON.stringify(this)}static get Fields(){return{capabilities$:"capabilities",get capabilities(){return Pc("capabilities[:i]",ds.Fields)},nested$:"nested",get nested(){return Pc("nested[:i]",ds.Fields)}}}static from(t){return new qv(t)}static with(t){return new qv(t)}copyWith(t){return new qv({...this.toJSON(),...t})}clone(){return new qv(this.toJSON())}}function sLe(e){const t=globalThis,n=typeof t.Buffer<"u"&&typeof t.Buffer.isBuffer=="function"&&t.Buffer.isBuffer(e),r=typeof t.Blob<"u"&&e instanceof t.Blob;return e&&typeof e=="object"&&!Array.isArray(e)&&!n&&!(e instanceof ArrayBuffer)&&!r}function Ore({onChange:e,value:t,prefix:n}){var l,u;const{data:r,error:a}=oLe({}),i=((u=(l=r==null?void 0:r.data)==null?void 0:l.item)==null?void 0:u.nested)||[],o=(d,f)=>{let g=[...t||[]];f==="checked"&&g.push(d),f==="unchecked"&&(g=g.filter(y=>y!==d)),e&&e(g)};return w.jsxs("nav",{className:"tree-nav",children:[w.jsx(J0,{error:a}),w.jsx("ul",{className:"list",children:w.jsx(Rre,{items:i,onNodeChange:o,value:t,prefix:n})})]})}function Rre({items:e,onNodeChange:t,value:n,prefix:r,autoChecked:a}){const i=r?r+".":"";return w.jsx(w.Fragment,{children:e.map(o=>{var d;const l=`${i}${o.uniqueId}${(d=o.children)!=null&&d.length?".*":""}`,u=(n||[]).includes(l)?"checked":"unchecked";return w.jsxs("li",{children:[w.jsx("span",{children:w.jsxs("label",{className:a?"auto-checked":"",children:[w.jsx(nLe,{value:u,onChange:f=>{t(l,u==="checked"?"unchecked":"checked")}}),o.uniqueId]})}),o.children&&w.jsx("ul",{children:w.jsx(Rre,{autoChecked:a||u==="checked",onNodeChange:t,value:n,items:o.children,prefix:i+o.uniqueId})})]},o.uniqueId)})})}const lLe=(e,t)=>e!=null&&e.length&&!(t!=null&&t.length)?e.map(n=>n.uniqueId):t||[],uLe=({form:e,isEditing:t})=>{const{values:n,setFieldValue:r,errors:a}=e,i=At();return w.jsxs(w.Fragment,{children:[w.jsx(In,{value:n.name,onChange:o=>r(ai.Fields.name,o,!1),errorMessage:a.name,label:i.wokspaces.invite.role,autoFocus:!t,hint:i.wokspaces.invite.roleHint}),w.jsx(Ore,{onChange:o=>r(ai.Fields.capabilitiesListId,o,!1),value:lLe(n.capabilities,n.capabilitiesListId)})]})},Hz=({data:e})=>{const{router:t,uniqueId:n,queryClient:r,locale:a}=$r({data:e}),i=At(),o=_re({query:{uniqueId:n},queryOptions:{enabled:!!n}}),l=tLe({queryClient:r}),u=eLe({queryClient:r});return w.jsx(Yo,{postHook:l,getSingleHook:o,patchHook:u,beforeSubmit:d=>{var f;return((f=d.capabilities)==null?void 0:f.length)>0&&d.capabilitiesListId===null?{...d,capabilitiesListId:d.capabilities.map(g=>g.uniqueId)}:d},onCancel:()=>{t.goBackOrDefault(ai.Navigation.query(void 0,a))},onFinishUriResolver:(d,f)=>{var g;return ai.Navigation.single((g=d.data)==null?void 0:g.uniqueId,f)},Form:uLe,onEditTitle:i.fb.editRole,onCreateTitle:i.fb.newRole,data:e})},cLe=()=>{var l;const e=xr();Gs();const t=e.query.uniqueId,n=At();sr();const[r,a]=R.useState([]),i=_re({query:{uniqueId:t,deep:!0}});var o=(l=i.query.data)==null?void 0:l.data;return aO((o==null?void 0:o.name)||""),R.useEffect(()=>{var u;a((u=o==null?void 0:o.capabilities)==null?void 0:u.map(d=>d.uniqueId||""))},[o==null?void 0:o.capabilities]),w.jsx(w.Fragment,{children:w.jsxs(lo,{editEntityHandler:()=>{e.push(ai.Navigation.edit(t))},getSingleHook:i,children:[w.jsx(uo,{entity:o,fields:[{label:n.role.name,elem:o==null?void 0:o.name}]}),w.jsx(Fo,{title:n.role.permissions,className:"mt-3",children:w.jsx(Ore,{value:r})})]})})},dLe=e=>[{name:ai.Fields.uniqueId,title:e.table.uniqueId,width:200},{name:ai.Fields.name,title:e.role.name,width:200}];function fLe(e){const{execFnOverride:t,queryClient:n,query:r}=e||{},{options:a,execFn:i}=R.useContext(it),o=t?t(a):i?i(a):Tt(a);let u=`${"/role".substr(1)}?${new URLSearchParams(Gt(r)).toString()}`;const f=un(h=>o("DELETE",u,h)),g=(h,v)=>h;return{mutation:f,submit:(h,v)=>new Promise((E,T)=>{f.mutate(h,{onSuccess(C){n==null||n.setQueryData("*abac.RoleEntity",k=>g(k)),n==null||n.invalidateQueries("*abac.RoleEntity"),E(C)},onError(C){v==null||v.setErrors(Pn(C)),T(C)}})}),fnUpdater:g}}const pLe=()=>{const e=At();return w.jsx(w.Fragment,{children:w.jsx(Go,{columns:dLe(e),queryHook:ff,uniqueIdHrefHandler:t=>ai.Navigation.single(t),deleteHook:fLe})})},hLe=()=>{const e=At();return Zhe(),w.jsx(w.Fragment,{children:w.jsx(Vo,{newEntityHandler:({locale:t,router:n})=>n.push(ai.Navigation.create()),pageTitle:e.fbMenu.roles,children:w.jsx(pLe,{})})})};function mLe(){return w.jsxs(w.Fragment,{children:[w.jsx(mt,{element:w.jsx(Hz,{}),path:ai.Navigation.Rcreate}),w.jsx(mt,{element:w.jsx(cLe,{}),path:ai.Navigation.Rsingle}),w.jsx(mt,{element:w.jsx(Hz,{}),path:ai.Navigation.Redit}),w.jsx(mt,{element:w.jsx(hLe,{}),path:ai.Navigation.Rquery})]})}const gLe={confirmRejectTitle:"Reject invite",reject:"Reject",workspaceName:"Workspace Name",passport:"Passport",confirmAcceptDescription:"Are you sure that you are confirming to join?",confirmRejectDescription:"Are you sure to reject this invitation? You need to be reinvited by admins again.",acceptBtn:null,accept:"Accept",roleName:"Role name",method:"Method",actions:"Actions",confirmAcceptTitle:"Confirm invitation"},vLe={actions:"Akcje",confirmRejectTitle:"Odrzuć zaproszenie",method:"Metoda",roleName:"Nazwa roli",accept:"Akceptuj",confirmAcceptDescription:"Czy na pewno chcesz dołączyć?",confirmAcceptTitle:"Potwierdź zaproszenie",confirmRejectDescription:"Czy na pewno chcesz odrzucić to zaproszenie? Aby dołączyć ponownie, musisz zostać ponownie zaproszony przez administratorów.",passport:"Paszport",reject:"Odrzuć",workspaceName:"Nazwa przestrzeni roboczej",acceptBtn:"Tak"},yLe={...gLe,$pl:vLe};({...wn.Fields});const bLe=(e,t,n)=>[{name:"roleName",title:e.roleName,width:100},{name:"workspaceName",title:e.workspaceName,width:100},{name:"method",title:e.method,width:100,getCellValue:r=>r.type},{name:"value",title:e.passport,width:100,getCellValue:r=>r.value},{name:"actions",title:e.actions,width:100,getCellValue:r=>w.jsxs(w.Fragment,{children:[w.jsx("button",{className:"btn btn-sm btn-success",style:{marginRight:"2px"},onClick:a=>{t(r)},children:e.accept}),w.jsx("button",{onClick:a=>{n(r)},className:"btn btn-sm btn-danger",children:e.reject})]})}];var GE;function uh(e,t){if(!{}.hasOwnProperty.call(e,t))throw new TypeError("attempted to use private field on non-instance");return e}var wLe=0;function dO(e){return"__private_"+wLe+++"_"+e}const SLe=e=>{const n=Ho()??void 0,[r,a]=R.useState(!1),[i,o]=R.useState();return{...un({mutationFn:d=>(a(!1),jh.Fetch({body:d,headers:e==null?void 0:e.headers},{creatorFn:e==null?void 0:e.creatorFn,qs:e==null?void 0:e.qs,ctx:n,onMessage:e==null?void 0:e.onMessage,overrideUrl:e==null?void 0:e.overrideUrl}).then(f=>(f.done.then(()=>{a(!0)}),o(f.response),f.response.result)))}),isCompleted:r,response:i}};class jh{}GE=jh;jh.URL="/user/invitation/accept";jh.NewUrl=e=>Wo(GE.URL,void 0,e);jh.Method="post";jh.Fetch$=async(e,t,n,r)=>zo(r??GE.NewUrl(e),{method:GE.Method,...n||{}},t);jh.Fetch=async(e,{creatorFn:t,qs:n,ctx:r,onMessage:a,overrideUrl:i}={creatorFn:o=>new Hv(o)})=>{t=t||(l=>new Hv(l));const o=await GE.Fetch$(n,r,e,i);return qo(o,l=>{const u=new so;return t&&u.setCreator(t),u.inject(l),u},a,e==null?void 0:e.signal)};jh.Definition={name:"AcceptInvite",url:"/user/invitation/accept",method:"post",description:"Use it when user accepts an invitation, and it will complete the joining process",in:{fields:[{name:"invitationUniqueId",description:"The invitation id which will be used to process",type:"string",tags:{validate:"required"}}]},out:{envelope:"GResponse",fields:[{name:"accepted",type:"bool"}]}};var cv=dO("invitationUniqueId"),vN=dO("isJsonAppliable");class d0{get invitationUniqueId(){return uh(this,cv)[cv]}set invitationUniqueId(t){uh(this,cv)[cv]=String(t)}setInvitationUniqueId(t){return this.invitationUniqueId=t,this}constructor(t=void 0){if(Object.defineProperty(this,vN,{value:ELe}),Object.defineProperty(this,cv,{writable:!0,value:""}),t!=null)if(typeof t=="string")this.applyFromObject(JSON.parse(t));else if(uh(this,vN)[vN](t))this.applyFromObject(t);else throw new Error("Instance cannot be created on an unknown value, check the content being passed. got: "+typeof t)}applyFromObject(t={}){const n=t;n.invitationUniqueId!==void 0&&(this.invitationUniqueId=n.invitationUniqueId)}toJSON(){return{invitationUniqueId:uh(this,cv)[cv]}}toString(){return JSON.stringify(this)}static get Fields(){return{invitationUniqueId:"invitationUniqueId"}}static from(t){return new d0(t)}static with(t){return new d0(t)}copyWith(t){return new d0({...this.toJSON(),...t})}clone(){return new d0(this.toJSON())}}function ELe(e){const t=globalThis,n=typeof t.Buffer<"u"&&typeof t.Buffer.isBuffer=="function"&&t.Buffer.isBuffer(e),r=typeof t.Blob<"u"&&e instanceof t.Blob;return e&&typeof e=="object"&&!Array.isArray(e)&&!n&&!(e instanceof ArrayBuffer)&&!r}var dv=dO("accepted"),yN=dO("isJsonAppliable");class Hv{get accepted(){return uh(this,dv)[dv]}set accepted(t){uh(this,dv)[dv]=!!t}setAccepted(t){return this.accepted=t,this}constructor(t=void 0){if(Object.defineProperty(this,yN,{value:TLe}),Object.defineProperty(this,dv,{writable:!0,value:void 0}),t!=null)if(typeof t=="string")this.applyFromObject(JSON.parse(t));else if(uh(this,yN)[yN](t))this.applyFromObject(t);else throw new Error("Instance cannot be created on an unknown value, check the content being passed. got: "+typeof t)}applyFromObject(t={}){const n=t;n.accepted!==void 0&&(this.accepted=n.accepted)}toJSON(){return{accepted:uh(this,dv)[dv]}}toString(){return JSON.stringify(this)}static get Fields(){return{accepted:"accepted"}}static from(t){return new Hv(t)}static with(t){return new Hv(t)}copyWith(t){return new Hv({...this.toJSON(),...t})}clone(){return new Hv(this.toJSON())}}function TLe(e){const t=globalThis,n=typeof t.Buffer<"u"&&typeof t.Buffer.isBuffer=="function"&&t.Buffer.isBuffer(e),r=typeof t.Blob<"u"&&e instanceof t.Blob;return e&&typeof e=="object"&&!Array.isArray(e)&&!n&&!(e instanceof ArrayBuffer)&&!r}var YE;function Sa(e,t){if(!{}.hasOwnProperty.call(e,t))throw new TypeError("attempted to use private field on non-instance");return e}var CLe=0;function Uh(e){return"__private_"+CLe+++"_"+e}const kLe=e=>{const t=Ho(),n=(e==null?void 0:e.ctx)??t??void 0,[r,a]=R.useState(!1),[i,o]=R.useState(),l=()=>(a(!1),tf.Fetch({headers:e==null?void 0:e.headers},{creatorFn:e==null?void 0:e.creatorFn,qs:e==null?void 0:e.qs,ctx:n,onMessage:e==null?void 0:e.onMessage,overrideUrl:e==null?void 0:e.overrideUrl}).then(d=>(d.done.then(()=>{a(!0)}),o(d.response),d.response.result)));return{...jn({queryKey:[tf.NewUrl(e==null?void 0:e.qs)],queryFn:l,...e||{}}),isCompleted:r,response:i}};class tf{}YE=tf;tf.URL="/users/invitations";tf.NewUrl=e=>Wo(YE.URL,void 0,e);tf.Method="get";tf.Fetch$=async(e,t,n,r)=>zo(r??YE.NewUrl(e),{method:YE.Method,...n||{}},t);tf.Fetch=async(e,{creatorFn:t,qs:n,ctx:r,onMessage:a,overrideUrl:i}={creatorFn:o=>new Vv(o)})=>{t=t||(l=>new Vv(l));const o=await YE.Fetch$(n,r,e,i);return qo(o,l=>{const u=new so;return t&&u.setCreator(t),u.inject(l),u},a,e==null?void 0:e.signal)};tf.Definition={name:"UserInvitations",url:"/users/invitations",method:"get",description:"Shows the invitations for an specific user, if the invited member already has a account. It's based on the passports, so if the passport is authenticated we will show them.",out:{envelope:"GResponse",fields:[{name:"userId",description:"UserUniqueId",type:"string"},{name:"uniqueId",description:"Invitation unique id",type:"string"},{name:"value",description:"The value of the passport (email/phone)",type:"string"},{name:"roleName",description:"Name of the role that user will get",type:"string"},{name:"workspaceName",description:"Name of the workspace which user is invited to.",type:"string"},{name:"type",description:"The method of the invitation, such as email.",type:"string"},{name:"coverLetter",description:"The content that user will receive to understand the reason of the letter.",type:"string"}]}};var fv=Uh("userId"),pv=Uh("uniqueId"),hv=Uh("value"),mv=Uh("roleName"),gv=Uh("workspaceName"),vv=Uh("type"),yv=Uh("coverLetter"),bN=Uh("isJsonAppliable");class Vv{get userId(){return Sa(this,fv)[fv]}set userId(t){Sa(this,fv)[fv]=String(t)}setUserId(t){return this.userId=t,this}get uniqueId(){return Sa(this,pv)[pv]}set uniqueId(t){Sa(this,pv)[pv]=String(t)}setUniqueId(t){return this.uniqueId=t,this}get value(){return Sa(this,hv)[hv]}set value(t){Sa(this,hv)[hv]=String(t)}setValue(t){return this.value=t,this}get roleName(){return Sa(this,mv)[mv]}set roleName(t){Sa(this,mv)[mv]=String(t)}setRoleName(t){return this.roleName=t,this}get workspaceName(){return Sa(this,gv)[gv]}set workspaceName(t){Sa(this,gv)[gv]=String(t)}setWorkspaceName(t){return this.workspaceName=t,this}get type(){return Sa(this,vv)[vv]}set type(t){Sa(this,vv)[vv]=String(t)}setType(t){return this.type=t,this}get coverLetter(){return Sa(this,yv)[yv]}set coverLetter(t){Sa(this,yv)[yv]=String(t)}setCoverLetter(t){return this.coverLetter=t,this}constructor(t=void 0){if(Object.defineProperty(this,bN,{value:xLe}),Object.defineProperty(this,fv,{writable:!0,value:""}),Object.defineProperty(this,pv,{writable:!0,value:""}),Object.defineProperty(this,hv,{writable:!0,value:""}),Object.defineProperty(this,mv,{writable:!0,value:""}),Object.defineProperty(this,gv,{writable:!0,value:""}),Object.defineProperty(this,vv,{writable:!0,value:""}),Object.defineProperty(this,yv,{writable:!0,value:""}),t!=null)if(typeof t=="string")this.applyFromObject(JSON.parse(t));else if(Sa(this,bN)[bN](t))this.applyFromObject(t);else throw new Error("Instance cannot be created on an unknown value, check the content being passed. got: "+typeof t)}applyFromObject(t={}){const n=t;n.userId!==void 0&&(this.userId=n.userId),n.uniqueId!==void 0&&(this.uniqueId=n.uniqueId),n.value!==void 0&&(this.value=n.value),n.roleName!==void 0&&(this.roleName=n.roleName),n.workspaceName!==void 0&&(this.workspaceName=n.workspaceName),n.type!==void 0&&(this.type=n.type),n.coverLetter!==void 0&&(this.coverLetter=n.coverLetter)}toJSON(){return{userId:Sa(this,fv)[fv],uniqueId:Sa(this,pv)[pv],value:Sa(this,hv)[hv],roleName:Sa(this,mv)[mv],workspaceName:Sa(this,gv)[gv],type:Sa(this,vv)[vv],coverLetter:Sa(this,yv)[yv]}}toString(){return JSON.stringify(this)}static get Fields(){return{userId:"userId",uniqueId:"uniqueId",value:"value",roleName:"roleName",workspaceName:"workspaceName",type:"type",coverLetter:"coverLetter"}}static from(t){return new Vv(t)}static with(t){return new Vv(t)}copyWith(t){return new Vv({...this.toJSON(),...t})}clone(){return new Vv(this.toJSON())}}function xLe(e){const t=globalThis,n=typeof t.Buffer<"u"&&typeof t.Buffer.isBuffer=="function"&&t.Buffer.isBuffer(e),r=typeof t.Blob<"u"&&e instanceof t.Blob;return e&&typeof e=="object"&&!Array.isArray(e)&&!n&&!(e instanceof ArrayBuffer)&&!r}const _Le=()=>{const e=Kt(yLe),t=R.useContext(H_),n=SLe(),r=i=>{t.openModal({title:e.confirmAcceptTitle,confirmButtonLabel:e.acceptBtn,component:()=>w.jsx("div",{children:e.confirmAcceptDescription}),onSubmit:async()=>n.mutateAsync(new d0({invitationUniqueId:i.uniqueId})).then(o=>{alert("Successful.")})})},a=i=>{t.openModal({title:e.confirmRejectTitle,confirmButtonLabel:e.acceptBtn,component:()=>w.jsx("div",{children:e.confirmRejectDescription}),onSubmit:async()=>!0})};return w.jsx(w.Fragment,{children:w.jsx(Go,{selectable:!1,columns:bLe(e,r,a),queryHook:kLe})})},OLe=()=>{const e=At();return w.jsx(w.Fragment,{children:w.jsx(Vo,{pageTitle:e.fbMenu.myInvitations,children:w.jsx(_Le,{})})})};function RLe(){return w.jsx(w.Fragment,{children:w.jsx(mt,{element:w.jsx(OLe,{}),path:"user-invitations"})})}class Ka extends wn{constructor(...t){super(...t),this.children=void 0,this.publicKey=void 0,this.coverLetter=void 0,this.targetUserLocale=void 0,this.email=void 0,this.phonenumber=void 0,this.workspace=void 0,this.firstName=void 0,this.lastName=void 0,this.forceEmailAddress=void 0,this.forcePhoneNumber=void 0,this.role=void 0,this.roleId=void 0}}Ka.Navigation={edit(e,t){return`${t?"/"+t:".."}/workspace-invite/edit/${e}`},create(e){return`${e?"/"+e:".."}/workspace-invite/new`},single(e,t){return`${t?"/"+t:".."}/workspace-invite/${e}`},query(e={},t){return`${t?"/"+t:".."}/workspace-invites`},Redit:"workspace-invite/edit/:uniqueId",Rcreate:"workspace-invite/new",Rsingle:"workspace-invite/:uniqueId",Rquery:"workspace-invites"};Ka.definition={rpc:{query:{}},name:"workspaceInvite",features:{},gormMap:{},fields:[{name:"publicKey",description:"A long hash to get the user into the confirm or signup page without sending the email or phone number, for example if an administrator wants to copy the link.",type:"string",computedType:"string",gormMap:{}},{name:"coverLetter",description:"The content that user will receive to understand the reason of the letter.",type:"string",computedType:"string",gormMap:{}},{name:"targetUserLocale",description:"If the invited person has a different language, then you can define that so the interface for him will be automatically translated.",type:"string",computedType:"string",gormMap:{}},{name:"email",description:"The email address of the person which is invited.",type:"string",computedType:"string",gormMap:{}},{name:"phonenumber",description:"The phone number of the person which is invited.",type:"string",computedType:"string",gormMap:{}},{name:"workspace",description:"Workspace which user is being invite to.",type:"one",target:"WorkspaceEntity",computedType:"WorkspaceEntity",gormMap:{}},{name:"firstName",description:"First name of the person which is invited",type:"string",validate:"required",computedType:"string",gormMap:{}},{name:"lastName",description:"Last name of the person which is invited.",type:"string",validate:"required",computedType:"string",gormMap:{}},{name:"forceEmailAddress",description:"If forced, the email address cannot be changed by the user which has been invited.",type:"bool?",computedType:"boolean",gormMap:{}},{name:"forcePhoneNumber",description:"If forced, user cannot change the phone number and needs to complete signup.",type:"bool?",computedType:"boolean",gormMap:{}},{name:"role",description:"The role which invitee get if they accept the request.",type:"one",target:"RoleEntity",validate:"required",computedType:"RoleEntity",gormMap:{}}],cliShort:"invite",description:"Active invitations for non-users or already users to join an specific workspace, created by administration of the workspace"};Ka.Fields={...wn.Fields,publicKey:"publicKey",coverLetter:"coverLetter",targetUserLocale:"targetUserLocale",email:"email",phonenumber:"phonenumber",workspace$:"workspace",workspace:bi.Fields,firstName:"firstName",lastName:"lastName",forceEmailAddress:"forceEmailAddress",forcePhoneNumber:"forcePhoneNumber",roleId:"roleId",role$:"role",role:ai.Fields};function Pre({queryOptions:e,execFnOverride:t,query:n,queryClient:r,unauthorized:a}){var T;const{options:i,execFn:o}=R.useContext(it),l=t?t(i):o?o(i):Tt(i);let d=`${"/workspace-invite/:uniqueId".substr(1)}?${new URLSearchParams(Gt(n)).toString()}`,f=!0;d=d.replace(":uniqueId",n[":uniqueId".replace(":","")]),n[":uniqueId".replace(":","")]===void 0&&(f=!1);const g=()=>l("GET",d),y=(T=i==null?void 0:i.headers)==null?void 0:T.authorization,h=y!="undefined"&&y!=null&&y!=null&&y!="null"&&!!y;let v=!0;return f?!h&&!a&&(v=!1):v=!1,{query:jn([i,n,"*abac.WorkspaceInviteEntity"],g,{cacheTime:1001,retry:!1,keepPreviousData:!0,enabled:v,...e||{}})}}function PLe(e){let{queryClient:t,query:n,execFnOverride:r}=e||{};n=n||{};const{options:a,execFn:i}=R.useContext(it),o=r?r(a):i?i(a):Tt(a);let u=`${"/workspace-invite".substr(1)}?${new URLSearchParams(Gt(n)).toString()}`;const f=un(h=>o("PATCH",u,h)),g=(h,v)=>{var E;return h?(h.data&&(v!=null&&v.data)&&(h.data.items=[v.data,...((E=h==null?void 0:h.data)==null?void 0:E.items)||[]]),h):{data:{items:[]}}};return{mutation:f,submit:(h,v)=>new Promise((E,T)=>{f.mutate(h,{onSuccess(C){t==null||t.setQueriesData("*abac.WorkspaceInviteEntity",k=>g(k,C)),E(C)},onError(C){v==null||v.setErrors(Pn(C)),T(C)}})}),fnUpdater:g}}function ALe(e){let{queryClient:t,query:n,execFnOverride:r}=e||{};n=n||{};const{options:a,execFn:i}=R.useContext(it),o=r?r(a):i?i(a):Tt(a);let u=`${"/workspace-invite".substr(1)}?${new URLSearchParams(Gt(n)).toString()}`;const f=un(h=>o("POST",u,h)),g=(h,v)=>{var E;return h?(h.data&&(v!=null&&v.data)&&(h.data.items=[v.data,...((E=h==null?void 0:h.data)==null?void 0:E.items)||[]]),h):{data:{items:[]}}};return{mutation:f,submit:(h,v)=>new Promise((E,T)=>{f.mutate(h,{onSuccess(C){t==null||t.setQueryData("*abac.WorkspaceInviteEntity",k=>g(k,C)),E(C)},onError(C){v==null||v.setErrors(Pn(C)),T(C)}})}),fnUpdater:g}}const NLe={targetLocaleHint:"If the user has a different language available, the initial interface will be on th selected value.",forcedEmailAddress:"Force Email Address",forcedEmailAddressHint:"If checked, user can only make the invitation using this email address, and won't be able to change it. If account exists, they need to accept invitation there.",forcedPhone:"Force Phone Number",forcedPhoneHint:"If checked, user only can create or join using this phone number",coverLetter:"Cover letter",coverLetterHint:"The invitation text that user would get over sms or email, you can modify it here.",targetLocale:"Target Locale"},MLe={targetLocaleHint:"Jeśli użytkownik ma dostępny inny język, interfejs początkowy będzie ustawiony na wybraną wartość.",coverLetter:"List motywacyjny",coverLetterHint:"Treść zaproszenia, którą użytkownik otrzyma przez SMS lub e-mail – możesz ją tutaj edytować.",forcedEmailAddress:"Wymuszony adres e-mail",forcedEmailAddressHint:"Jeśli zaznaczone, użytkownik może wysłać zaproszenie tylko na ten adres e-mail i nie będzie mógł go zmienić. Jeśli konto już istnieje, użytkownik musi zaakceptować zaproszenie na tym koncie.",forcedPhone:"Wymuszony numer telefonu",forcedPhoneHint:"Jeśli zaznaczone, użytkownik może utworzyć konto lub dołączyć tylko przy użyciu tego numeru telefonu",targetLocale:"Docelowy język"},Are={...NLe,$pl:MLe},ILe=({form:e,isEditing:t})=>{const n=At(),{values:r,setValues:a,setFieldValue:i,errors:o}=e,l=Kt(Are),u=lre(n),d=Ks(u);return w.jsxs(w.Fragment,{children:[w.jsxs("div",{className:"row",children:[w.jsx("div",{className:"col-md-12",children:w.jsx(In,{value:r.firstName,onChange:f=>i(Ka.Fields.firstName,f,!1),errorMessage:o.firstName,label:n.wokspaces.invite.firstName,autoFocus:!t,hint:n.wokspaces.invite.firstNameHint})}),w.jsx("div",{className:"col-md-12",children:w.jsx(In,{value:r.lastName,onChange:f=>i(Ka.Fields.lastName,f,!1),errorMessage:o.lastName,label:n.wokspaces.invite.lastName,hint:n.wokspaces.invite.lastNameHint})}),w.jsx("div",{className:"col-md-12",children:w.jsx(da,{keyExtractor:f=>f.value,formEffect:{form:e,field:Ka.Fields.targetUserLocale,beforeSet(f){return f.value}},errorMessage:e.errors.targetUserLocale,querySource:d,label:l.targetLocale,hint:l.targetLocaleHint})}),w.jsx("div",{className:"col-md-12",children:w.jsx(Aj,{value:r.coverLetter,onChange:f=>i(Ka.Fields.coverLetter,f,!1),forceBasic:!0,errorMessage:o.coverLetter,label:l.coverLetter,placeholder:l.coverLetterHint,hint:l.coverLetterHint})}),w.jsx("div",{className:"col-md-12",children:w.jsx(da,{formEffect:{field:Ka.Fields.role$,form:e},querySource:ff,label:n.wokspaces.invite.role,errorMessage:o.roleId,fnLabelFormat:f=>f.name,hint:n.wokspaces.invite.roleHint})})]}),w.jsxs("div",{className:"row",children:[w.jsx("div",{className:"col-md-12",children:w.jsx(In,{value:r.email,onChange:f=>i(Ka.Fields.email,f,!1),errorMessage:o.email,label:n.wokspaces.invite.email,hint:n.wokspaces.invite.emailHint})}),w.jsx("div",{className:"col-md-12",children:w.jsx(Cl,{value:r.forceEmailAddress,onChange:f=>i(Ka.Fields.forceEmailAddress,f),errorMessage:o.forceEmailAddress,label:l.forcedEmailAddress,hint:l.forcedEmailAddressHint})}),w.jsx("div",{className:"col-md-12",children:w.jsx(In,{value:r.phonenumber,onChange:f=>i(Ka.Fields.phonenumber,f,!1),errorMessage:o.phonenumber,type:"phonenumber",label:n.wokspaces.invite.phoneNumber,hint:n.wokspaces.invite.phoneNumberHint})}),w.jsx("div",{className:"col-md-12",children:w.jsx(Cl,{value:r.forcePhoneNumber,onChange:f=>i(Ka.Fields.forcePhoneNumber,f),errorMessage:o.forcePhoneNumber,label:l.forcedPhone,hint:l.forcedPhoneHint})})]})]})},Vz=({data:e})=>{const t=At(),{router:n,uniqueId:r,queryClient:a,locale:i}=$r({data:e}),o=Pre({query:{uniqueId:r},queryClient:a}),l=ALe({queryClient:a}),u=PLe({queryClient:a});return w.jsx(Yo,{postHook:l,getSingleHook:o,patchHook:u,onCancel:()=>{n.goBackOrDefault(`/${i}/workspace-invites`)},onFinishUriResolver:(d,f)=>`/${f}/workspace-invites`,Form:ILe,onEditTitle:t.wokspaces.invite.editInvitation,onCreateTitle:t.wokspaces.invite.createInvitation,data:e})},DLe=()=>{var o;const e=xr(),t=At(),n=e.query.uniqueId;sr();const r=Kt(Are),a=Pre({query:{uniqueId:n}});var i=(o=a.query.data)==null?void 0:o.data;return aO((i==null?void 0:i.firstName)+" "+(i==null?void 0:i.lastName)||""),w.jsx(w.Fragment,{children:w.jsx(lo,{getSingleHook:a,editEntityHandler:()=>e.push(Ka.Navigation.edit(n)),children:w.jsx(uo,{entity:i,fields:[{label:t.wokspaces.invite.firstName,elem:i==null?void 0:i.firstName},{label:t.wokspaces.invite.lastName,elem:i==null?void 0:i.lastName},{label:t.wokspaces.invite.email,elem:i==null?void 0:i.email},{label:t.wokspaces.invite.phoneNumber,elem:i==null?void 0:i.phonenumber},{label:r.forcedEmailAddress,elem:i==null?void 0:i.forceEmailAddress},{label:r.forcedPhone,elem:i==null?void 0:i.forcePhoneNumber},{label:r.targetLocale,elem:i==null?void 0:i.targetUserLocale}]})})})},$Le=e=>[{name:Ka.Fields.uniqueId,title:e.table.uniqueId,width:100},{name:"firstName",title:e.wokspaces.invite.firstName,width:100},{name:"lastName",title:e.wokspaces.invite.lastName,width:100},{name:"phoneNumber",title:e.wokspaces.invite.phoneNumber,width:100},{name:"email",title:e.wokspaces.invite.email,width:100},{name:"role_id",title:e.wokspaces.invite.role,width:100,getCellValue:t=>{var n;return(n=t==null?void 0:t.role)==null?void 0:n.name}}];function Nre({queryOptions:e,query:t,queryClient:n,execFnOverride:r,unauthorized:a,optionFn:i}){var k,_,A;const{options:o,execFn:l}=R.useContext(it),u=i?i(o):o,d=r?r(u):l?l(u):Tt(u);let g=`${"/workspace-invites".substr(1)}?${oi.stringify(t)}`;const y=()=>d("GET",g),h=(k=u==null?void 0:u.headers)==null?void 0:k.authorization,v=h!="undefined"&&h!=null&&h!=null&&h!="null"&&!!h;let E=!0;!v&&!a&&(E=!1);const T=jn(["*abac.WorkspaceInviteEntity",u,t],y,{cacheTime:1e3,retry:!1,keepPreviousData:!0,enabled:E,...e||{}}),C=((A=(_=T.data)==null?void 0:_.data)==null?void 0:A.items)||[];return{query:T,items:C,keyExtractor:P=>P.uniqueId}}Nre.UKEY="*abac.WorkspaceInviteEntity";function LLe(e){const{execFnOverride:t,queryClient:n,query:r}=e||{},{options:a,execFn:i}=R.useContext(it),o=t?t(a):i?i(a):Tt(a);let u=`${"/workspace-invite".substr(1)}?${new URLSearchParams(Gt(r)).toString()}`;const f=un(h=>o("DELETE",u,h)),g=(h,v)=>h;return{mutation:f,submit:(h,v)=>new Promise((E,T)=>{f.mutate(h,{onSuccess(C){n==null||n.setQueryData("*abac.WorkspaceInviteEntity",k=>g(k)),n==null||n.invalidateQueries("*abac.WorkspaceInviteEntity"),E(C)},onError(C){v==null||v.setErrors(Pn(C)),T(C)}})}),fnUpdater:g}}const FLe=()=>{const e=At();return w.jsx(w.Fragment,{children:w.jsx(Go,{columns:$Le(e),queryHook:Nre,uniqueIdHrefHandler:t=>Ka.Navigation.single(t),deleteHook:LLe})})},jLe=()=>{const e=At();return w.jsx(w.Fragment,{children:w.jsx(Vo,{pageTitle:e.fbMenu.workspaceInvites,newEntityHandler:({locale:t,router:n})=>{n.push(Ka.Navigation.create())},children:w.jsx(FLe,{})})})};function ULe(){return w.jsxs(w.Fragment,{children:[w.jsx(mt,{element:w.jsx(Vz,{}),path:Ka.Navigation.Rcreate}),w.jsx(mt,{element:w.jsx(Vz,{}),path:Ka.Navigation.Redit}),w.jsx(mt,{element:w.jsx(DLe,{}),path:Ka.Navigation.Rsingle}),w.jsx(mt,{element:w.jsx(jLe,{}),path:Ka.Navigation.Rquery})]})}const BLe=()=>{const e=Kt(Oa);return w.jsxs(w.Fragment,{children:[w.jsx(Fo,{title:e.home.title,description:e.home.description}),w.jsx("h2",{children:w.jsx(xL,{to:"passports",children:e.home.passportsTitle})}),w.jsx("p",{children:e.home.passportsDescription}),w.jsx(xL,{to:"passports",className:"btn btn-success btn-sm",children:e.home.passportsTitle})]})},WLe=()=>{const e=Kt(Oa),{goBack:t,query:n}=xr();return{goBack:t,s:e}},zLe=()=>{var i,o;const{s:e}=WLe(),n=((o=(i=z_({cacheTime:50}).data)==null?void 0:i.data)==null?void 0:o.items)||[],{selectedUrw:r,selectUrw:a}=R.useContext(it);return w.jsxs("div",{className:"signin-form-container",children:[w.jsxs("div",{className:"mb-4",children:[w.jsx("h1",{className:"h3",children:e.selectWorkspaceTitle}),w.jsx("p",{className:"text-muted",children:e.selectWorkspace})]}),n.map(l=>w.jsxs("div",{className:"mb-4",children:[w.jsx("h2",{className:"h5",children:l.name}),w.jsx("div",{className:"d-flex flex-wrap gap-2 mt-2",children:l.roles.map(u=>w.jsxs("button",{className:"btn btn-outline-primary w-100",onClick:()=>a({workspaceId:l.uniqueId,roleId:u.uniqueId}),children:["Select (",u.name,")"]},u.uniqueId))})]},l.uniqueId))]})};function qLe(){return w.jsxs(w.Fragment,{children:[w.jsxs(mt,{path:"selfservice",children:[w.jsx(mt,{path:"welcome",element:w.jsx(kDe,{})}),w.jsx(mt,{path:"email",element:w.jsx(Wz,{method:Bs.Email})}),w.jsx(mt,{path:"phone",element:w.jsx(Wz,{method:Bs.Phone})}),w.jsx(mt,{path:"totp-setup",element:w.jsx(f$e,{})}),w.jsx(mt,{path:"totp-enter",element:w.jsx(m$e,{})}),w.jsx(mt,{path:"complete",element:w.jsx(x$e,{})}),w.jsx(mt,{path:"password",element:w.jsx(M$e,{})}),w.jsx(mt,{path:"otp",element:w.jsx(U$e,{})})]}),w.jsx(mt,{path:"*",element:w.jsx(OF,{to:"/en/selfservice/welcome",replace:!0})})]})}function HLe(){const e=Z$e(),t=mLe(),n=RLe(),r=ULe();return w.jsxs(mt,{path:"selfservice",children:[w.jsx(mt,{path:"passports",element:w.jsx(nDe,{})}),w.jsx(mt,{path:"change-password/:uniqueId",element:w.jsx(uDe,{})}),e,t,n,r,w.jsx(mt,{path:"",element:w.jsx(m4,{children:w.jsx(BLe,{})})})]})}function VLe({children:e,routerId:t}){const n=At();Xfe();const{locale:r}=sr(),{config:a}=R.useContext(Th),i=HJ(),o=HLe(),l=UPe(),u=_Ie();return w.jsx(mme,{affix:n.productName,children:w.jsxs(pQ,{children:[w.jsx(mt,{path:"/",element:w.jsx(OF,{to:kr.DEFAULT_ROUTE.replace("{locale}",a.interfaceLanguage||r||"en"),replace:!0})}),w.jsxs(mt,{path:":locale",element:w.jsx(eve,{routerId:t,sidebarMenu:i}),children:[w.jsx(mt,{path:"settings",element:w.jsx(m4,{children:w.jsx(KIe,{})})}),o,l,u,e,w.jsx(mt,{path:"*",element:w.jsx(P6,{})})]}),w.jsx(mt,{path:"*",element:w.jsx(P6,{})})]})})}const Mre=e=>{sr();const{placeholder:t,label:n,getInputRef:r,secureTextEntry:a,Icon:i,onChange:o,value:l,errorMessage:u,type:d,focused:f=!1,autoFocus:g,...y}=e,[h,v]=R.useState(!1),E=R.useRef(),T=R.useCallback(()=>{var C;(C=E.current)==null||C.focus()},[E.current]);return w.jsx(df,{focused:h,onClick:T,...e,children:w.jsx("input",{type:"date",className:"form-control",value:e.value,onChange:C=>e.onChange&&e.onChange(C.target.value),...e.inputProps})})};function y4(e,t){const[n,r]=R.useState(()=>{try{const a=localStorage.getItem(e);return a===null?t:JSON.parse(a)}catch(a){return console.error(`Error parsing localStorage key "${e}":`,a),t}});return R.useEffect(()=>{try{localStorage.setItem(e,JSON.stringify(n))}catch(a){console.error(`Error saving to localStorage key "${e}":`,a)}},[e,n]),[n,r]}function Gz(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function f0(e){for(var t=1;t=4)return[e[0],e[1],e[2],e[3],"".concat(e[0],".").concat(e[1]),"".concat(e[0],".").concat(e[2]),"".concat(e[0],".").concat(e[3]),"".concat(e[1],".").concat(e[0]),"".concat(e[1],".").concat(e[2]),"".concat(e[1],".").concat(e[3]),"".concat(e[2],".").concat(e[0]),"".concat(e[2],".").concat(e[1]),"".concat(e[2],".").concat(e[3]),"".concat(e[3],".").concat(e[0]),"".concat(e[3],".").concat(e[1]),"".concat(e[3],".").concat(e[2]),"".concat(e[0],".").concat(e[1],".").concat(e[2]),"".concat(e[0],".").concat(e[1],".").concat(e[3]),"".concat(e[0],".").concat(e[2],".").concat(e[1]),"".concat(e[0],".").concat(e[2],".").concat(e[3]),"".concat(e[0],".").concat(e[3],".").concat(e[1]),"".concat(e[0],".").concat(e[3],".").concat(e[2]),"".concat(e[1],".").concat(e[0],".").concat(e[2]),"".concat(e[1],".").concat(e[0],".").concat(e[3]),"".concat(e[1],".").concat(e[2],".").concat(e[0]),"".concat(e[1],".").concat(e[2],".").concat(e[3]),"".concat(e[1],".").concat(e[3],".").concat(e[0]),"".concat(e[1],".").concat(e[3],".").concat(e[2]),"".concat(e[2],".").concat(e[0],".").concat(e[1]),"".concat(e[2],".").concat(e[0],".").concat(e[3]),"".concat(e[2],".").concat(e[1],".").concat(e[0]),"".concat(e[2],".").concat(e[1],".").concat(e[3]),"".concat(e[2],".").concat(e[3],".").concat(e[0]),"".concat(e[2],".").concat(e[3],".").concat(e[1]),"".concat(e[3],".").concat(e[0],".").concat(e[1]),"".concat(e[3],".").concat(e[0],".").concat(e[2]),"".concat(e[3],".").concat(e[1],".").concat(e[0]),"".concat(e[3],".").concat(e[1],".").concat(e[2]),"".concat(e[3],".").concat(e[2],".").concat(e[0]),"".concat(e[3],".").concat(e[2],".").concat(e[1]),"".concat(e[0],".").concat(e[1],".").concat(e[2],".").concat(e[3]),"".concat(e[0],".").concat(e[1],".").concat(e[3],".").concat(e[2]),"".concat(e[0],".").concat(e[2],".").concat(e[1],".").concat(e[3]),"".concat(e[0],".").concat(e[2],".").concat(e[3],".").concat(e[1]),"".concat(e[0],".").concat(e[3],".").concat(e[1],".").concat(e[2]),"".concat(e[0],".").concat(e[3],".").concat(e[2],".").concat(e[1]),"".concat(e[1],".").concat(e[0],".").concat(e[2],".").concat(e[3]),"".concat(e[1],".").concat(e[0],".").concat(e[3],".").concat(e[2]),"".concat(e[1],".").concat(e[2],".").concat(e[0],".").concat(e[3]),"".concat(e[1],".").concat(e[2],".").concat(e[3],".").concat(e[0]),"".concat(e[1],".").concat(e[3],".").concat(e[0],".").concat(e[2]),"".concat(e[1],".").concat(e[3],".").concat(e[2],".").concat(e[0]),"".concat(e[2],".").concat(e[0],".").concat(e[1],".").concat(e[3]),"".concat(e[2],".").concat(e[0],".").concat(e[3],".").concat(e[1]),"".concat(e[2],".").concat(e[1],".").concat(e[0],".").concat(e[3]),"".concat(e[2],".").concat(e[1],".").concat(e[3],".").concat(e[0]),"".concat(e[2],".").concat(e[3],".").concat(e[0],".").concat(e[1]),"".concat(e[2],".").concat(e[3],".").concat(e[1],".").concat(e[0]),"".concat(e[3],".").concat(e[0],".").concat(e[1],".").concat(e[2]),"".concat(e[3],".").concat(e[0],".").concat(e[2],".").concat(e[1]),"".concat(e[3],".").concat(e[1],".").concat(e[0],".").concat(e[2]),"".concat(e[3],".").concat(e[1],".").concat(e[2],".").concat(e[0]),"".concat(e[3],".").concat(e[2],".").concat(e[0],".").concat(e[1]),"".concat(e[3],".").concat(e[2],".").concat(e[1],".").concat(e[0])]}var wN={};function YLe(e){if(e.length===0||e.length===1)return e;var t=e.join(".");return wN[t]||(wN[t]=GLe(e)),wN[t]}function KLe(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=arguments.length>2?arguments[2]:void 0,r=e.filter(function(i){return i!=="token"}),a=YLe(r);return a.reduce(function(i,o){return f0(f0({},i),n[o])},t)}function Yz(e){return e.join(" ")}function XLe(e,t){var n=0;return function(r){return n+=1,r.map(function(a,i){return Ire({node:a,stylesheet:e,useInlineStyles:t,key:"code-segment-".concat(n,"-").concat(i)})})}}function Ire(e){var t=e.node,n=e.stylesheet,r=e.style,a=r===void 0?{}:r,i=e.useInlineStyles,o=e.key,l=t.properties,u=t.type,d=t.tagName,f=t.value;if(u==="text")return f;if(d){var g=XLe(n,i),y;if(!i)y=f0(f0({},l),{},{className:Yz(l.className)});else{var h=Object.keys(n).reduce(function(C,k){return k.split(".").forEach(function(_){C.includes(_)||C.push(_)}),C},[]),v=l.className&&l.className.includes("token")?["token"]:[],E=l.className&&v.concat(l.className.filter(function(C){return!h.includes(C)}));y=f0(f0({},l),{},{className:Yz(E)||void 0,style:KLe(l.className,Object.assign({},l.style,a),n)})}var T=g(t.children);return ze.createElement(d,vt({key:o},y),T)}}const QLe=(function(e,t){var n=e.listLanguages();return n.indexOf(t)!==-1});var JLe=["language","children","style","customStyle","codeTagProps","useInlineStyles","showLineNumbers","showInlineLineNumbers","startingLineNumber","lineNumberContainerStyle","lineNumberStyle","wrapLines","wrapLongLines","lineProps","renderer","PreTag","CodeTag","code","astGenerator"];function Kz(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function ch(e){for(var t=1;t1&&arguments[1]!==void 0?arguments[1]:[],n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[],r=0;r2&&arguments[2]!==void 0?arguments[2]:[];return Sx({children:P,lineNumber:N,lineNumberStyle:l,largestLineNumber:o,showInlineLineNumbers:a,lineProps:n,className:I,showLineNumbers:r,wrapLongLines:u,wrapLines:t})}function E(P,N){if(r&&N&&a){var I=$re(l,N,o);P.unshift(Dre(N,I))}return P}function T(P,N){var I=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[];return t||I.length>0?v(P,N,I):E(P,N)}for(var C=function(){var N=f[h],I=N.children[0].value,L=e3e(I);if(L){var j=I.split(` +`);j.forEach(function(z,Q){var ue=r&&g.length+i,re={type:"text",value:"".concat(z,` +`)};if(Q===0){var me=f.slice(y+1,h).concat(Sx({children:[re],className:N.properties.className})),ge=T(me,ue);g.push(ge)}else if(Q===j.length-1){var W=f[h+1]&&f[h+1].children&&f[h+1].children[0],G={type:"text",value:"".concat(z)};if(W){var q=Sx({children:[G],className:N.properties.className});f.splice(h+1,0,q)}else{var ce=[G],H=T(ce,ue,N.properties.className);g.push(H)}}else{var K=[re],ae=T(K,ue,N.properties.className);g.push(ae)}}),y=h}h++};h4&&v.slice(0,4)===r&&a.test(h)&&(h.charAt(4)==="-"?E=u(h):h=d(h),T=t),new T(E,h))}function u(y){var h=y.slice(5).replace(i,g);return r+h.charAt(0).toUpperCase()+h.slice(1)}function d(y){var h=y.slice(4);return i.test(h)?y:(h=h.replace(o,f),h.charAt(0)!=="-"&&(h="-"+h),r+h)}function f(y){return"-"+y.toLowerCase()}function g(y){return y.charAt(1).toUpperCase()}return $N}var LN,pq;function b3e(){if(pq)return LN;pq=1,LN=t;var e=/[#.]/g;function t(n,r){for(var a=n||"",i=r||"div",o={},l=0,u,d,f;l=48&&n<=57}return BN}var WN,wq;function kje(){if(wq)return WN;wq=1,WN=e;function e(t){var n=typeof t=="string"?t.charCodeAt(0):t;return n>=97&&n<=102||n>=65&&n<=70||n>=48&&n<=57}return WN}var zN,Sq;function xje(){if(Sq)return zN;Sq=1,zN=e;function e(t){var n=typeof t=="string"?t.charCodeAt(0):t;return n>=97&&n<=122||n>=65&&n<=90}return zN}var qN,Eq;function _je(){if(Eq)return qN;Eq=1;var e=xje(),t=zre();qN=n;function n(r){return e(r)||t(r)}return qN}var HN,Tq;function Oje(){if(Tq)return HN;Tq=1;var e,t=59;HN=n;function n(r){var a="&"+r+";",i;return e=e||document.createElement("i"),e.innerHTML=a,i=e.textContent,i.charCodeAt(i.length-1)===t&&r!=="semi"||i===a?!1:i}return HN}var VN,Cq;function Rje(){if(Cq)return VN;Cq=1;var e=Tje,t=Cje,n=zre(),r=kje(),a=_je(),i=Oje();VN=ce;var o={}.hasOwnProperty,l=String.fromCharCode,u=Function.prototype,d={warning:null,reference:null,text:null,warningContext:null,referenceContext:null,textContext:null,position:{},additional:null,attribute:!1,nonTerminated:!0},f=9,g=10,y=12,h=32,v=38,E=59,T=60,C=61,k=35,_=88,A=120,P=65533,N="named",I="hexadecimal",L="decimal",j={};j[I]=16,j[L]=10;var z={};z[N]=a,z[L]=n,z[I]=r;var Q=1,ue=2,re=3,me=4,ge=5,W=6,G=7,q={};q[Q]="Named character references must be terminated by a semicolon",q[ue]="Numeric character references must be terminated by a semicolon",q[re]="Named character references cannot be empty",q[me]="Numeric character references cannot be empty",q[ge]="Named character references must be known",q[W]="Numeric character references cannot be disallowed",q[G]="Numeric character references cannot be outside the permissible Unicode range";function ce(J,ee){var Z={},le,ke;ee||(ee={});for(ke in d)le=ee[ke],Z[ke]=le??d[ke];return(Z.position.indent||Z.position.start)&&(Z.indent=Z.position.indent||[],Z.position=Z.position.start),H(J,Z)}function H(J,ee){var Z=ee.additional,le=ee.nonTerminated,ke=ee.text,fe=ee.reference,xe=ee.warning,Ie=ee.textContext,qe=ee.referenceContext,tt=ee.warningContext,Ge=ee.position,rt=ee.indent||[],St=J.length,kt=0,xt=-1,Rt=Ge.column||1,cn=Ge.line||1,qt="",Wt=[],Oe,dt,ft,ut,Nt,U,D,F,ie,Te,Fe,We,Et,Mt,be,Ee,gt,Lt,_t;for(typeof Z=="string"&&(Z=Z.charCodeAt(0)),Ee=Ut(),F=xe?_n:u,kt--,St++;++kt65535&&(U-=65536,Te+=l(U>>>10|55296),U=56320|U&1023),U=Te+l(U))):Mt!==N&&F(me,Lt)),U?(gn(),Ee=Ut(),kt=_t-1,Rt+=_t-Et+1,Wt.push(U),gt=Ut(),gt.offset++,fe&&fe.call(qe,U,{start:Ee,end:gt},J.slice(Et-1,_t)),Ee=gt):(ut=J.slice(Et-1,_t),qt+=ut,Rt+=ut.length,kt=_t-1)}else Nt===10&&(cn++,xt++,Rt=0),Nt===Nt?(qt+=l(Nt),Rt++):gn();return Wt.join("");function Ut(){return{line:cn,column:Rt,offset:kt+(Ge.offset||0)}}function _n(ln,Bn){var la=Ut();la.column+=Bn,la.offset+=Bn,xe.call(tt,q[ln],la,ln)}function gn(){qt&&(Wt.push(qt),ke&&ke.call(Ie,qt,{start:Ee,end:Ut()}),qt="")}}function K(J){return J>=55296&&J<=57343||J>1114111}function ae(J){return J>=1&&J<=8||J===11||J>=13&&J<=31||J>=127&&J<=159||J>=64976&&J<=65007||(J&65535)===65535||(J&65535)===65534}return VN}var GN={exports:{}},kq;function Pje(){return kq||(kq=1,(function(e){var t=typeof window<"u"?window:typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope?self:{};/** * Prism: Lightweight, robust, elegant syntax highlighting * * @license MIT * @author Lea Verou * @namespace * @public - */var n=(function(r){var a=/(?:^|\s)lang(?:uage)?-([\w-]+)(?=\s|$)/i,i=0,o={},l={manual:r.Prism&&r.Prism.manual,disableWorkerMessageHandler:r.Prism&&r.Prism.disableWorkerMessageHandler,util:{encode:function k(_){return _ instanceof u?new u(_.type,k(_.content),_.alias):Array.isArray(_)?_.map(k):_.replace(/&/g,"&").replace(/"u")return null;if("currentScript"in document)return document.currentScript;try{throw new Error}catch(P){var k=(/at [^(\r\n]*\((.*):[^:]+:[^:]+\)$/i.exec(P.stack)||[])[1];if(k){var _=document.getElementsByTagName("script");for(var A in _)if(_[A].src==k)return _[A]}return null}},isActive:function(k,_,A){for(var P="no-"+_;k;){var N=k.classList;if(N.contains(_))return!0;if(N.contains(P))return!1;k=k.parentElement}return!!A}},languages:{plain:o,plaintext:o,text:o,txt:o,extend:function(k,_){var A=l.util.clone(l.languages[k]);for(var P in _)A[P]=_[P];return A},insertBefore:function(k,_,A,P){P=P||l.languages;var N=P[k],I={};for(var L in N)if(N.hasOwnProperty(L)){if(L==_)for(var j in A)A.hasOwnProperty(j)&&(I[j]=A[j]);A.hasOwnProperty(L)||(I[L]=N[L])}var z=P[k];return P[k]=I,l.languages.DFS(l.languages,function(Q,le){le===z&&Q!=k&&(this[Q]=I)}),I},DFS:function k(_,A,P,N){N=N||{};var I=l.util.objId;for(var L in _)if(_.hasOwnProperty(L)){A.call(_,L,_[L],P||L);var j=_[L],z=l.util.type(j);z==="Object"&&!N[I(j)]?(N[I(j)]=!0,k(j,A,null,N)):z==="Array"&&!N[I(j)]&&(N[I(j)]=!0,k(j,A,L,N))}}},plugins:{},highlightAll:function(k,_){l.highlightAllUnder(document,k,_)},highlightAllUnder:function(k,_,A){var P={callback:A,container:k,selector:'code[class*="language-"], [class*="language-"] code, code[class*="lang-"], [class*="lang-"] code'};l.hooks.run("before-highlightall",P),P.elements=Array.prototype.slice.apply(P.container.querySelectorAll(P.selector)),l.hooks.run("before-all-elements-highlight",P);for(var N=0,I;I=P.elements[N++];)l.highlightElement(I,_===!0,P.callback)},highlightElement:function(k,_,A){var P=l.util.getLanguage(k),N=l.languages[P];l.util.setLanguage(k,P);var I=k.parentElement;I&&I.nodeName.toLowerCase()==="pre"&&l.util.setLanguage(I,P);var L=k.textContent,j={element:k,language:P,grammar:N,code:L};function z(le){j.highlightedCode=le,l.hooks.run("before-insert",j),j.element.innerHTML=j.highlightedCode,l.hooks.run("after-highlight",j),l.hooks.run("complete",j),A&&A.call(j.element)}if(l.hooks.run("before-sanity-check",j),I=j.element.parentElement,I&&I.nodeName.toLowerCase()==="pre"&&!I.hasAttribute("tabindex")&&I.setAttribute("tabindex","0"),!j.code){l.hooks.run("complete",j),A&&A.call(j.element);return}if(l.hooks.run("before-highlight",j),!j.grammar){z(l.util.encode(j.code));return}if(_&&r.Worker){var Q=new Worker(l.filename);Q.onmessage=function(le){z(le.data)},Q.postMessage(JSON.stringify({language:j.language,code:j.code,immediateClose:!0}))}else z(l.highlight(j.code,j.grammar,j.language))},highlight:function(k,_,A){var P={code:k,grammar:_,language:A};if(l.hooks.run("before-tokenize",P),!P.grammar)throw new Error('The language "'+P.language+'" has no grammar.');return P.tokens=l.tokenize(P.code,P.grammar),l.hooks.run("after-tokenize",P),u.stringify(l.util.encode(P.tokens),P.language)},tokenize:function(k,_){var A=_.rest;if(A){for(var P in A)_[P]=A[P];delete _.rest}var N=new g;return y(N,N.head,k),f(k,N,_,N.head,0),v(N)},hooks:{all:{},add:function(k,_){var A=l.hooks.all;A[k]=A[k]||[],A[k].push(_)},run:function(k,_){var A=l.hooks.all[k];if(!(!A||!A.length))for(var P=0,N;N=A[P++];)N(_)}},Token:u};r.Prism=l;function u(k,_,A,P){this.type=k,this.content=_,this.alias=A,this.length=(P||"").length|0}u.stringify=function k(_,A){if(typeof _=="string")return _;if(Array.isArray(_)){var P="";return _.forEach(function(z){P+=k(z,A)}),P}var N={type:_.type,content:k(_.content,A),tag:"span",classes:["token",_.type],attributes:{},language:A},I=_.alias;I&&(Array.isArray(I)?Array.prototype.push.apply(N.classes,I):N.classes.push(I)),l.hooks.run("wrap",N);var L="";for(var j in N.attributes)L+=" "+j+'="'+(N.attributes[j]||"").replace(/"/g,""")+'"';return"<"+N.tag+' class="'+N.classes.join(" ")+'"'+L+">"+N.content+""};function d(k,_,A,P){k.lastIndex=_;var N=k.exec(A);if(N&&P&&N[1]){var I=N[1].length;N.index+=I,N[0]=N[0].slice(I)}return N}function f(k,_,A,P,N,I){for(var L in A)if(!(!A.hasOwnProperty(L)||!A[L])){var j=A[L];j=Array.isArray(j)?j:[j];for(var z=0;z=I.reach);ce+=q.value.length,q=q.next){var H=q.value;if(_.length>k.length)return;if(!(H instanceof u)){var Y=1,ie;if(ge){if(ie=d(G,ce,k,re),!ie||ie.index>=k.length)break;var ue=ie.index,J=ie.index+ie[0].length,ee=ce;for(ee+=q.value.length;ue>=ee;)q=q.next,ee+=q.value.length;if(ee-=q.value.length,ce=ee,q.value instanceof u)continue;for(var Z=q;Z!==_.tail&&(eeI.reach&&(I.reach=Ie);var qe=q.prev;fe&&(qe=y(_,qe,fe),ce+=fe.length),h(_,qe,Y);var tt=new u(L,le?l.tokenize(ke,le):ke,me,ke);if(q=y(_,qe,tt),xe&&y(_,q,xe),Y>1){var Ge={cause:L+","+z,reach:Ie};f(k,_,A,q.prev,ce,Ge),I&&Ge.reach>I.reach&&(I.reach=Ge.reach)}}}}}}function g(){var k={value:null,prev:null,next:null},_={value:null,prev:k,next:null};k.next=_,this.head=k,this.tail=_,this.length=0}function y(k,_,A){var P=_.next,N={value:A,prev:_,next:P};return _.next=N,P.prev=N,k.length++,N}function h(k,_,A){for(var P=_.next,N=0;N/,greedy:!0},prolog:{pattern:/<\?[\s\S]+?\?>/,greedy:!0},doctype:{pattern:/"'[\]]|"[^"]*"|'[^']*')+(?:\[(?:[^<"'\]]|"[^"]*"|'[^']*'|<(?!!--)|)*\]\s*)?>/i,greedy:!0,inside:{"internal-subset":{pattern:/(^[^\[]*\[)[\s\S]+(?=\]>$)/,lookbehind:!0,greedy:!0,inside:null},string:{pattern:/"[^"]*"|'[^']*'/,greedy:!0},punctuation:/^$|[[\]]/,"doctype-tag":/^DOCTYPE/i,name:/[^\s<>'"]+/}},cdata:{pattern://i,greedy:!0},tag:{pattern:/<\/?(?!\d)[^\s>\/=$<%]+(?:\s(?:\s*[^\s>\/=]+(?:\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))|(?=[\s/>])))+)?\s*\/?>/,greedy:!0,inside:{tag:{pattern:/^<\/?[^\s>\/]+/,inside:{punctuation:/^<\/?/,namespace:/^[^\s>\/:]+:/}},"special-attr":[],"attr-value":{pattern:/=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+)/,inside:{punctuation:[{pattern:/^=/,alias:"attr-equals"},/"|'/]}},punctuation:/\/?>/,"attr-name":{pattern:/[^\s>\/]+/,inside:{namespace:/^[^\s>\/:]+:/}}}},entity:[{pattern:/&[\da-z]{1,8};/i,alias:"named-entity"},/&#x?[\da-f]{1,8};/i]},t.languages.markup.tag.inside["attr-value"].inside.entity=t.languages.markup.entity,t.languages.markup.doctype.inside["internal-subset"].inside=t.languages.markup,t.hooks.add("wrap",function(n){n.type==="entity"&&(n.attributes.title=n.content.value.replace(/&/,"&"))}),Object.defineProperty(t.languages.markup.tag,"addInlined",{value:function(r,a){var i={};i["language-"+a]={pattern:/(^$)/i,lookbehind:!0,inside:t.languages[a]},i.cdata=/^$/i;var o={"included-cdata":{pattern://i,inside:i}};o["language-"+a]={pattern:/[\s\S]+/,inside:t.languages[a]};var l={};l[r]={pattern:RegExp(/(<__[^>]*>)(?:))*\]\]>|(?!)/.source.replace(/__/g,function(){return r}),"i"),lookbehind:!0,greedy:!0,inside:o},t.languages.insertBefore("markup","cdata",l)}}),Object.defineProperty(t.languages.markup.tag,"addAttribute",{value:function(n,r){t.languages.markup.tag.inside["special-attr"].push({pattern:RegExp(/(^|["'\s])/.source+"(?:"+n+")"+/\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))/.source,"i"),lookbehind:!0,inside:{"attr-name":/^[^\s=]+/,"attr-value":{pattern:/=[\s\S]+/,inside:{value:{pattern:/(^=\s*(["']|(?!["'])))\S[\s\S]*(?=\2$)/,lookbehind:!0,alias:[r,"language-"+r],inside:t.languages[r]},punctuation:[{pattern:/^=/,alias:"attr-equals"},/"|'/]}}}})}}),t.languages.html=t.languages.markup,t.languages.mathml=t.languages.markup,t.languages.svg=t.languages.markup,t.languages.xml=t.languages.extend("markup",{}),t.languages.ssml=t.languages.xml,t.languages.atom=t.languages.xml,t.languages.rss=t.languages.xml}return wN}var SN,Zz;function ZFe(){if(Zz)return SN;Zz=1,SN=e,e.displayName="css",e.aliases=[];function e(t){(function(n){var r=/(?:"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n])*')/;n.languages.css={comment:/\/\*[\s\S]*?\*\//,atrule:{pattern:/@[\w-](?:[^;{\s]|\s+(?![\s{]))*(?:;|(?=\s*\{))/,inside:{rule:/^@[\w-]+/,"selector-function-argument":{pattern:/(\bselector\s*\(\s*(?![\s)]))(?:[^()\s]|\s+(?![\s)])|\((?:[^()]|\([^()]*\))*\))+(?=\s*\))/,lookbehind:!0,alias:"selector"},keyword:{pattern:/(^|[^\w-])(?:and|not|only|or)(?![\w-])/,lookbehind:!0}}},url:{pattern:RegExp("\\burl\\((?:"+r.source+"|"+/(?:[^\\\r\n()"']|\\[\s\S])*/.source+")\\)","i"),greedy:!0,inside:{function:/^url/i,punctuation:/^\(|\)$/,string:{pattern:RegExp("^"+r.source+"$"),alias:"url"}}},selector:{pattern:RegExp(`(^|[{}\\s])[^{}\\s](?:[^{};"'\\s]|\\s+(?![\\s{])|`+r.source+")*(?=\\s*\\{)"),lookbehind:!0},string:{pattern:r,greedy:!0},property:{pattern:/(^|[^-\w\xA0-\uFFFF])(?!\s)[-_a-z\xA0-\uFFFF](?:(?!\s)[-\w\xA0-\uFFFF])*(?=\s*:)/i,lookbehind:!0},important:/!important\b/i,function:{pattern:/(^|[^-a-z0-9])[-a-z0-9]+(?=\()/i,lookbehind:!0},punctuation:/[(){};:,]/},n.languages.css.atrule.inside.rest=n.languages.css;var a=n.languages.markup;a&&(a.tag.addInlined("style","css"),a.tag.addAttribute("style","css"))})(t)}return SN}var EN,eq;function eje(){if(eq)return EN;eq=1,EN=e,e.displayName="clike",e.aliases=[];function e(t){t.languages.clike={comment:[{pattern:/(^|[^\\])\/\*[\s\S]*?(?:\*\/|$)/,lookbehind:!0,greedy:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],string:{pattern:/(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,greedy:!0},"class-name":{pattern:/(\b(?:class|extends|implements|instanceof|interface|new|trait)\s+|\bcatch\s+\()[\w.\\]+/i,lookbehind:!0,inside:{punctuation:/[.\\]/}},keyword:/\b(?:break|catch|continue|do|else|finally|for|function|if|in|instanceof|new|null|return|throw|try|while)\b/,boolean:/\b(?:false|true)\b/,function:/\b\w+(?=\()/,number:/\b0x[\da-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?/i,operator:/[<>]=?|[!=]=?=?|--?|\+\+?|&&?|\|\|?|[?*/~^%]/,punctuation:/[{}[\];(),.:]/}}return EN}var TN,tq;function tje(){if(tq)return TN;tq=1,TN=e,e.displayName="javascript",e.aliases=["js"];function e(t){t.languages.javascript=t.languages.extend("clike",{"class-name":[t.languages.clike["class-name"],{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$A-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\.(?:constructor|prototype))/,lookbehind:!0}],keyword:[{pattern:/((?:^|\})\s*)catch\b/,lookbehind:!0},{pattern:/(^|[^.]|\.\.\.\s*)\b(?:as|assert(?=\s*\{)|async(?=\s*(?:function\b|\(|[$\w\xA0-\uFFFF]|$))|await|break|case|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally(?=\s*(?:\{|$))|for|from(?=\s*(?:['"]|$))|function|(?:get|set)(?=\s*(?:[#\[$\w\xA0-\uFFFF]|$))|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)\b/,lookbehind:!0}],function:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*(?:\.\s*(?:apply|bind|call)\s*)?\()/,number:{pattern:RegExp(/(^|[^\w$])/.source+"(?:"+(/NaN|Infinity/.source+"|"+/0[bB][01]+(?:_[01]+)*n?/.source+"|"+/0[oO][0-7]+(?:_[0-7]+)*n?/.source+"|"+/0[xX][\dA-Fa-f]+(?:_[\dA-Fa-f]+)*n?/.source+"|"+/\d+(?:_\d+)*n/.source+"|"+/(?:\d+(?:_\d+)*(?:\.(?:\d+(?:_\d+)*)?)?|\.\d+(?:_\d+)*)(?:[Ee][+-]?\d+(?:_\d+)*)?/.source)+")"+/(?![\w$])/.source),lookbehind:!0},operator:/--|\+\+|\*\*=?|=>|&&=?|\|\|=?|[!=]==|<<=?|>>>?=?|[-+*/%&|^!=<>]=?|\.{3}|\?\?=?|\?\.?|[~:]/}),t.languages.javascript["class-name"][0].pattern=/(\b(?:class|extends|implements|instanceof|interface|new)\s+)[\w.\\]+/,t.languages.insertBefore("javascript","keyword",{regex:{pattern:/((?:^|[^$\w\xA0-\uFFFF."'\])\s]|\b(?:return|yield))\s*)\/(?:\[(?:[^\]\\\r\n]|\\.)*\]|\\.|[^/\\\[\r\n])+\/[dgimyus]{0,7}(?=(?:\s|\/\*(?:[^*]|\*(?!\/))*\*\/)*(?:$|[\r\n,.;:})\]]|\/\/))/,lookbehind:!0,greedy:!0,inside:{"regex-source":{pattern:/^(\/)[\s\S]+(?=\/[a-z]*$)/,lookbehind:!0,alias:"language-regex",inside:t.languages.regex},"regex-delimiter":/^\/|\/$/,"regex-flags":/^[a-z]+$/}},"function-variable":{pattern:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*[=:]\s*(?:async\s*)?(?:\bfunction\b|(?:\((?:[^()]|\([^()]*\))*\)|(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)\s*=>))/,alias:"function"},parameter:[{pattern:/(function(?:\s+(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)?\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\))/,lookbehind:!0,inside:t.languages.javascript},{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$a-z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*=>)/i,lookbehind:!0,inside:t.languages.javascript},{pattern:/(\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*=>)/,lookbehind:!0,inside:t.languages.javascript},{pattern:/((?:\b|\s|^)(?!(?:as|async|await|break|case|catch|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally|for|from|function|get|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|set|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)(?![$\w\xA0-\uFFFF]))(?:(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*)\(\s*|\]\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*\{)/,lookbehind:!0,inside:t.languages.javascript}],constant:/\b[A-Z](?:[A-Z_]|\dx?)*\b/}),t.languages.insertBefore("javascript","string",{hashbang:{pattern:/^#!.*/,greedy:!0,alias:"comment"},"template-string":{pattern:/`(?:\\[\s\S]|\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}|(?!\$\{)[^\\`])*`/,greedy:!0,inside:{"template-punctuation":{pattern:/^`|`$/,alias:"string"},interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}/,lookbehind:!0,inside:{"interpolation-punctuation":{pattern:/^\$\{|\}$/,alias:"punctuation"},rest:t.languages.javascript}},string:/[\s\S]+/}},"string-property":{pattern:/((?:^|[,{])[ \t]*)(["'])(?:\\(?:\r\n|[\s\S])|(?!\2)[^\\\r\n])*\2(?=\s*:)/m,lookbehind:!0,greedy:!0,alias:"property"}}),t.languages.insertBefore("javascript","operator",{"literal-property":{pattern:/((?:^|[,{])[ \t]*)(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*:)/m,lookbehind:!0,alias:"property"}}),t.languages.markup&&(t.languages.markup.tag.addInlined("script","javascript"),t.languages.markup.tag.addAttribute(/on(?:abort|blur|change|click|composition(?:end|start|update)|dblclick|error|focus(?:in|out)?|key(?:down|up)|load|mouse(?:down|enter|leave|move|out|over|up)|reset|resize|scroll|select|slotchange|submit|unload|wheel)/.source,"javascript")),t.languages.js=t.languages.javascript}return TN}var CN,nq;function nje(){if(nq)return CN;nq=1;var e=typeof globalThis=="object"?globalThis:typeof self=="object"?self:typeof window=="object"?window:typeof _l=="object"?_l:{},t=P();e.Prism={manual:!0,disableWorkerMessageHandler:!0};var n=HLe(),r=XFe(),a=QFe(),i=JFe(),o=ZFe(),l=eje(),u=tje();t();var d={}.hasOwnProperty;function f(){}f.prototype=a;var g=new f;CN=g,g.highlight=v,g.register=y,g.alias=h,g.registered=E,g.listLanguages=T,y(i),y(o),y(l),y(u),g.util.encode=_,g.Token.stringify=C;function y(N){if(typeof N!="function"||!N.displayName)throw new Error("Expected `function` for `grammar`, got `"+N+"`");g.languages[N.displayName]===void 0&&N(g)}function h(N,I){var L=g.languages,j=N,z,Q,le,re;I&&(j={},j[N]=I);for(z in j)for(Q=j[z],Q=typeof Q=="string"?[Q]:Q,le=Q.length,re=-1;++re code[class*="language-"]':{background:"#f5f2f0",padding:".1em",borderRadius:".3em",whiteSpace:"normal"},comment:{color:"slategray"},prolog:{color:"slategray"},doctype:{color:"slategray"},cdata:{color:"slategray"},punctuation:{color:"#999"},namespace:{Opacity:".7"},property:{color:"#905"},tag:{color:"#905"},boolean:{color:"#905"},number:{color:"#905"},constant:{color:"#905"},symbol:{color:"#905"},deleted:{color:"#905"},selector:{color:"#690"},"attr-name":{color:"#690"},string:{color:"#690"},char:{color:"#690"},builtin:{color:"#690"},inserted:{color:"#690"},operator:{color:"#9a6e3a",background:"hsla(0, 0%, 100%, .5)"},entity:{color:"#9a6e3a",background:"hsla(0, 0%, 100%, .5)",cursor:"help"},url:{color:"#9a6e3a",background:"hsla(0, 0%, 100%, .5)"},".language-css .token.string":{color:"#9a6e3a",background:"hsla(0, 0%, 100%, .5)"},".style .token.string":{color:"#9a6e3a",background:"hsla(0, 0%, 100%, .5)"},atrule:{color:"#07a"},"attr-value":{color:"#07a"},keyword:{color:"#07a"},function:{color:"#DD4A68"},"class-name":{color:"#DD4A68"},regex:{color:"#e90"},important:{color:"#e90",fontWeight:"bold"},variable:{color:"#e90"},bold:{fontWeight:"bold"},italic:{fontStyle:"italic"}};var kN,rq;function aje(){if(rq)return kN;rq=1,kN=e,e.displayName="abap",e.aliases=[];function e(t){t.languages.abap={comment:/^\*.*/m,string:/(`|')(?:\\.|(?!\1)[^\\\r\n])*\1/,"string-template":{pattern:/([|}])(?:\\.|[^\\|{\r\n])*(?=[|{])/,lookbehind:!0,alias:"string"},"eol-comment":{pattern:/(^|\s)".*/m,lookbehind:!0,alias:"comment"},keyword:{pattern:/(\s|\.|^)(?:SCIENTIFIC_WITH_LEADING_ZERO|SCALE_PRESERVING_SCIENTIFIC|RMC_COMMUNICATION_FAILURE|END-ENHANCEMENT-SECTION|MULTIPLY-CORRESPONDING|SUBTRACT-CORRESPONDING|VERIFICATION-MESSAGE|DIVIDE-CORRESPONDING|ENHANCEMENT-SECTION|CURRENCY_CONVERSION|RMC_SYSTEM_FAILURE|START-OF-SELECTION|MOVE-CORRESPONDING|RMC_INVALID_STATUS|CUSTOMER-FUNCTION|END-OF-DEFINITION|ENHANCEMENT-POINT|SYSTEM-EXCEPTIONS|ADD-CORRESPONDING|SCALE_PRESERVING|SELECTION-SCREEN|CURSOR-SELECTION|END-OF-SELECTION|LOAD-OF-PROGRAM|SCROLL-BOUNDARY|SELECTION-TABLE|EXCEPTION-TABLE|IMPLEMENTATIONS|PARAMETER-TABLE|RIGHT-JUSTIFIED|UNIT_CONVERSION|AUTHORITY-CHECK|LIST-PROCESSING|SIGN_AS_POSTFIX|COL_BACKGROUND|IMPLEMENTATION|INTERFACE-POOL|TRANSFORMATION|IDENTIFICATION|ENDENHANCEMENT|LINE-SELECTION|INITIALIZATION|LEFT-JUSTIFIED|SELECT-OPTIONS|SELECTION-SETS|COMMUNICATION|CORRESPONDING|DECIMAL_SHIFT|PRINT-CONTROL|VALUE-REQUEST|CHAIN-REQUEST|FUNCTION-POOL|FIELD-SYMBOLS|FUNCTIONALITY|INVERTED-DATE|SELECTION-SET|CLASS-METHODS|OUTPUT-LENGTH|CLASS-CODING|COL_NEGATIVE|ERRORMESSAGE|FIELD-GROUPS|HELP-REQUEST|NO-EXTENSION|NO-TOPOFPAGE|REDEFINITION|DISPLAY-MODE|ENDINTERFACE|EXIT-COMMAND|FIELD-SYMBOL|NO-SCROLLING|SHORTDUMP-ID|ACCESSPOLICY|CLASS-EVENTS|COL_POSITIVE|DECLARATIONS|ENHANCEMENTS|FILTER-TABLE|SWITCHSTATES|SYNTAX-CHECK|TRANSPORTING|ASYNCHRONOUS|SYNTAX-TRACE|TOKENIZATION|USER-COMMAND|WITH-HEADING|ABAP-SOURCE|BREAK-POINT|CHAIN-INPUT|COMPRESSION|FIXED-POINT|NEW-SECTION|NON-UNICODE|OCCURRENCES|RESPONSIBLE|SYSTEM-CALL|TRACE-TABLE|ABBREVIATED|CHAR-TO-HEX|END-OF-FILE|ENDFUNCTION|ENVIRONMENT|ASSOCIATION|COL_HEADING|EDITOR-CALL|END-OF-PAGE|ENGINEERING|IMPLEMENTED|INTENSIFIED|RADIOBUTTON|SYSTEM-EXIT|TOP-OF-PAGE|TRANSACTION|APPLICATION|CONCATENATE|DESTINATION|ENHANCEMENT|IMMEDIATELY|NO-GROUPING|PRECOMPILED|REPLACEMENT|TITLE-LINES|ACTIVATION|BYTE-ORDER|CLASS-POOL|CONNECTION|CONVERSION|DEFINITION|DEPARTMENT|EXPIRATION|INHERITING|MESSAGE-ID|NO-HEADING|PERFORMING|QUEUE-ONLY|RIGHTSPACE|SCIENTIFIC|STATUSINFO|STRUCTURES|SYNCPOINTS|WITH-TITLE|ATTRIBUTES|BOUNDARIES|CLASS-DATA|COL_NORMAL|DD\/MM\/YYYY|DESCENDING|INTERFACES|LINE-COUNT|MM\/DD\/YYYY|NON-UNIQUE|PRESERVING|SELECTIONS|STATEMENTS|SUBROUTINE|TRUNCATION|TYPE-POOLS|ARITHMETIC|BACKGROUND|ENDPROVIDE|EXCEPTIONS|IDENTIFIER|INDEX-LINE|OBLIGATORY|PARAMETERS|PERCENTAGE|PUSHBUTTON|RESOLUTION|COMPONENTS|DEALLOCATE|DISCONNECT|DUPLICATES|FIRST-LINE|HEAD-LINES|NO-DISPLAY|OCCURRENCE|RESPECTING|RETURNCODE|SUBMATCHES|TRACE-FILE|ASCENDING|BYPASSING|ENDMODULE|EXCEPTION|EXCLUDING|EXPORTING|INCREMENT|MATCHCODE|PARAMETER|PARTIALLY|PREFERRED|REFERENCE|REPLACING|RETURNING|SELECTION|SEPARATED|SPECIFIED|STATEMENT|TIMESTAMP|TYPE-POOL|ACCEPTING|APPENDAGE|ASSIGNING|COL_GROUP|COMPARING|CONSTANTS|DANGEROUS|IMPORTING|INSTANCES|LEFTSPACE|LOG-POINT|QUICKINFO|READ-ONLY|SCROLLING|SQLSCRIPT|STEP-LOOP|TOP-LINES|TRANSLATE|APPENDING|AUTHORITY|CHARACTER|COMPONENT|CONDITION|DIRECTORY|DUPLICATE|MESSAGING|RECEIVING|SUBSCREEN|ACCORDING|COL_TOTAL|END-LINES|ENDMETHOD|ENDSELECT|EXPANDING|EXTENSION|INCLUDING|INFOTYPES|INTERFACE|INTERVALS|LINE-SIZE|PF-STATUS|PROCEDURE|PROTECTED|REQUESTED|RESUMABLE|RIGHTPLUS|SAP-SPOOL|SECONDARY|STRUCTURE|SUBSTRING|TABLEVIEW|NUMOFCHAR|ADJACENT|ANALYSIS|ASSIGNED|BACKWARD|CHANNELS|CHECKBOX|CONTINUE|CRITICAL|DATAINFO|DD\/MM\/YY|DURATION|ENCODING|ENDCLASS|FUNCTION|LEFTPLUS|LINEFEED|MM\/DD\/YY|OVERFLOW|RECEIVED|SKIPPING|SORTABLE|STANDARD|SUBTRACT|SUPPRESS|TABSTRIP|TITLEBAR|TRUNCATE|UNASSIGN|WHENEVER|ANALYZER|COALESCE|COMMENTS|CONDENSE|DECIMALS|DEFERRED|ENDWHILE|EXPLICIT|KEYWORDS|MESSAGES|POSITION|PRIORITY|RECEIVER|RENAMING|TIMEZONE|TRAILING|ALLOCATE|CENTERED|CIRCULAR|CONTROLS|CURRENCY|DELETING|DESCRIBE|DISTANCE|ENDCATCH|EXPONENT|EXTENDED|GENERATE|IGNORING|INCLUDES|INTERNAL|MAJOR-ID|MODIFIER|NEW-LINE|OPTIONAL|PROPERTY|ROLLBACK|STARTING|SUPPLIED|ABSTRACT|CHANGING|CONTEXTS|CREATING|CUSTOMER|DATABASE|DAYLIGHT|DEFINING|DISTINCT|DIVISION|ENABLING|ENDCHAIN|ESCAPING|HARMLESS|IMPLICIT|INACTIVE|LANGUAGE|MINOR-ID|MULTIPLY|NEW-PAGE|NO-TITLE|POS_HIGH|SEPARATE|TEXTPOOL|TRANSFER|SELECTOR|DBMAXLEN|ITERATOR|ARCHIVE|BIT-XOR|BYTE-CO|COLLECT|COMMENT|CURRENT|DEFAULT|DISPLAY|ENDFORM|EXTRACT|LEADING|LISTBOX|LOCATOR|MEMBERS|METHODS|NESTING|POS_LOW|PROCESS|PROVIDE|RAISING|RESERVE|SECONDS|SUMMARY|VISIBLE|BETWEEN|BIT-AND|BYTE-CS|CLEANUP|COMPUTE|CONTROL|CONVERT|DATASET|ENDCASE|FORWARD|HEADERS|HOTSPOT|INCLUDE|INVERSE|KEEPING|NO-ZERO|OBJECTS|OVERLAY|PADDING|PATTERN|PROGRAM|REFRESH|SECTION|SUMMING|TESTING|VERSION|WINDOWS|WITHOUT|BIT-NOT|BYTE-CA|BYTE-NA|CASTING|CONTEXT|COUNTRY|DYNAMIC|ENABLED|ENDLOOP|EXECUTE|FRIENDS|HANDLER|HEADING|INITIAL|\*-INPUT|LOGFILE|MAXIMUM|MINIMUM|NO-GAPS|NO-SIGN|PRAGMAS|PRIMARY|PRIVATE|REDUCED|REPLACE|REQUEST|RESULTS|UNICODE|WARNING|ALIASES|BYTE-CN|BYTE-NS|CALLING|COL_KEY|COLUMNS|CONNECT|ENDEXEC|ENTRIES|EXCLUDE|FILTERS|FURTHER|HELP-ID|LOGICAL|MAPPING|MESSAGE|NAMETAB|OPTIONS|PACKAGE|PERFORM|RECEIVE|STATICS|VARYING|BINDING|CHARLEN|GREATER|XSTRLEN|ACCEPT|APPEND|DETAIL|ELSEIF|ENDING|ENDTRY|FORMAT|FRAMES|GIVING|HASHED|HEADER|IMPORT|INSERT|MARGIN|MODULE|NATIVE|OBJECT|OFFSET|REMOTE|RESUME|SAVING|SIMPLE|SUBMIT|TABBED|TOKENS|UNIQUE|UNPACK|UPDATE|WINDOW|YELLOW|ACTUAL|ASPECT|CENTER|CURSOR|DELETE|DIALOG|DIVIDE|DURING|ERRORS|EVENTS|EXTEND|FILTER|HANDLE|HAVING|IGNORE|LITTLE|MEMORY|NO-GAP|OCCURS|OPTION|PERSON|PLACES|PUBLIC|REDUCE|REPORT|RESULT|SINGLE|SORTED|SWITCH|SYNTAX|TARGET|VALUES|WRITER|ASSERT|BLOCKS|BOUNDS|BUFFER|CHANGE|COLUMN|COMMIT|CONCAT|COPIES|CREATE|DDMMYY|DEFINE|ENDIAN|ESCAPE|EXPAND|KERNEL|LAYOUT|LEGACY|LEVELS|MMDDYY|NUMBER|OUTPUT|RANGES|READER|RETURN|SCREEN|SEARCH|SELECT|SHARED|SOURCE|STABLE|STATIC|SUBKEY|SUFFIX|TABLES|UNWIND|YYMMDD|ASSIGN|BACKUP|BEFORE|BINARY|BIT-OR|BLANKS|CLIENT|CODING|COMMON|DEMAND|DYNPRO|EXCEPT|EXISTS|EXPORT|FIELDS|GLOBAL|GROUPS|LENGTH|LOCALE|MEDIUM|METHOD|MODIFY|NESTED|OTHERS|REJECT|SCROLL|SUPPLY|SYMBOL|ENDFOR|STRLEN|ALIGN|BEGIN|BOUND|ENDAT|ENTRY|EVENT|FINAL|FLUSH|GRANT|INNER|SHORT|USING|WRITE|AFTER|BLACK|BLOCK|CLOCK|COLOR|COUNT|DUMMY|EMPTY|ENDDO|ENDON|GREEN|INDEX|INOUT|LEAVE|LEVEL|LINES|MODIF|ORDER|OUTER|RANGE|RESET|RETRY|RIGHT|SMART|SPLIT|STYLE|TABLE|THROW|UNDER|UNTIL|UPPER|UTF-8|WHERE|ALIAS|BLANK|CLEAR|CLOSE|EXACT|FETCH|FIRST|FOUND|GROUP|LLANG|LOCAL|OTHER|REGEX|SPOOL|TITLE|TYPES|VALID|WHILE|ALPHA|BOXED|CATCH|CHAIN|CHECK|CLASS|COVER|ENDIF|EQUIV|FIELD|FLOOR|FRAME|INPUT|LOWER|MATCH|NODES|PAGES|PRINT|RAISE|ROUND|SHIFT|SPACE|SPOTS|STAMP|STATE|TASKS|TIMES|TRMAC|ULINE|UNION|VALUE|WIDTH|EQUAL|LOG10|TRUNC|BLOB|CASE|CEIL|CLOB|COND|EXIT|FILE|GAPS|HOLD|INCL|INTO|KEEP|KEYS|LAST|LINE|LONG|LPAD|MAIL|MODE|OPEN|PINK|READ|ROWS|TEST|THEN|ZERO|AREA|BACK|BADI|BYTE|CAST|EDIT|EXEC|FAIL|FIND|FKEQ|FONT|FREE|GKEQ|HIDE|INIT|ITNO|LATE|LOOP|MAIN|MARK|MOVE|NEXT|NULL|RISK|ROLE|UNIT|WAIT|ZONE|BASE|CALL|CODE|DATA|DATE|FKGE|GKGE|HIGH|KIND|LEFT|LIST|MASK|MESH|NAME|NODE|PACK|PAGE|POOL|SEND|SIGN|SIZE|SOME|STOP|TASK|TEXT|TIME|USER|VARY|WITH|WORD|BLUE|CONV|COPY|DEEP|ELSE|FORM|FROM|HINT|ICON|JOIN|LIKE|LOAD|ONLY|PART|SCAN|SKIP|SORT|TYPE|UNIX|VIEW|WHEN|WORK|ACOS|ASIN|ATAN|COSH|EACH|FRAC|LESS|RTTI|SINH|SQRT|TANH|AVG|BIT|DIV|ISO|LET|OUT|PAD|SQL|ALL|CI_|CPI|END|LOB|LPI|MAX|MIN|NEW|OLE|RUN|SET|\?TO|YES|ABS|ADD|AND|BIG|FOR|HDB|JOB|LOW|NOT|SAP|TRY|VIA|XML|ANY|GET|IDS|KEY|MOD|OFF|PUT|RAW|RED|REF|SUM|TAB|XSD|CNT|COS|EXP|LOG|SIN|TAN|XOR|AT|CO|CP|DO|GT|ID|IF|NS|OR|BT|CA|CS|GE|NA|NB|EQ|IN|LT|NE|NO|OF|ON|PF|TO|AS|BY|CN|IS|LE|NP|UP|E|I|M|O|Z|C|X)\b/i,lookbehind:!0},number:/\b\d+\b/,operator:{pattern:/(\s)(?:\*\*?|<[=>]?|>=?|\?=|[-+\/=])(?=\s)/,lookbehind:!0},"string-operator":{pattern:/(\s)&&?(?=\s)/,lookbehind:!0,alias:"keyword"},"token-operator":[{pattern:/(\w)(?:->?|=>|[~|{}])(?=\w)/,lookbehind:!0,alias:"punctuation"},{pattern:/[|{}]/,alias:"punctuation"}],punctuation:/[,.:()]/}}return kN}var xN,aq;function ije(){if(aq)return xN;aq=1,xN=e,e.displayName="abnf",e.aliases=[];function e(t){(function(n){var r="(?:ALPHA|BIT|CHAR|CR|CRLF|CTL|DIGIT|DQUOTE|HEXDIG|HTAB|LF|LWSP|OCTET|SP|VCHAR|WSP)";n.languages.abnf={comment:/;.*/,string:{pattern:/(?:%[is])?"[^"\n\r]*"/,greedy:!0,inside:{punctuation:/^%[is]/}},range:{pattern:/%(?:b[01]+-[01]+|d\d+-\d+|x[A-F\d]+-[A-F\d]+)/i,alias:"number"},terminal:{pattern:/%(?:b[01]+(?:\.[01]+)*|d\d+(?:\.\d+)*|x[A-F\d]+(?:\.[A-F\d]+)*)/i,alias:"number"},repetition:{pattern:/(^|[^\w-])(?:\d*\*\d*|\d+)/,lookbehind:!0,alias:"operator"},definition:{pattern:/(^[ \t]*)(?:[a-z][\w-]*|<[^<>\r\n]*>)(?=\s*=)/m,lookbehind:!0,alias:"keyword",inside:{punctuation:/<|>/}},"core-rule":{pattern:RegExp("(?:(^|[^<\\w-])"+r+"|<"+r+">)(?![\\w-])","i"),lookbehind:!0,alias:["rule","constant"],inside:{punctuation:/<|>/}},rule:{pattern:/(^|[^<\w-])[a-z][\w-]*|<[^<>\r\n]*>/i,lookbehind:!0,inside:{punctuation:/<|>/}},operator:/=\/?|\//,punctuation:/[()\[\]]/}})(t)}return xN}var _N,iq;function oje(){if(iq)return _N;iq=1,_N=e,e.displayName="actionscript",e.aliases=[];function e(t){t.languages.actionscript=t.languages.extend("javascript",{keyword:/\b(?:as|break|case|catch|class|const|default|delete|do|dynamic|each|else|extends|final|finally|for|function|get|if|implements|import|in|include|instanceof|interface|internal|is|namespace|native|new|null|override|package|private|protected|public|return|set|static|super|switch|this|throw|try|typeof|use|var|void|while|with)\b/,operator:/\+\+|--|(?:[+\-*\/%^]|&&?|\|\|?|<>?>?|[!=]=?)=?|[~?@]/}),t.languages.actionscript["class-name"].alias="function",delete t.languages.actionscript.parameter,delete t.languages.actionscript["literal-property"],t.languages.markup&&t.languages.insertBefore("actionscript","string",{xml:{pattern:/(^|[^.])<\/?\w+(?:\s+[^\s>\/=]+=("|')(?:\\[\s\S]|(?!\2)[^\\])*\2)*\s*\/?>/,lookbehind:!0,inside:t.languages.markup}})}return _N}var ON,oq;function sje(){if(oq)return ON;oq=1,ON=e,e.displayName="ada",e.aliases=[];function e(t){t.languages.ada={comment:/--.*/,string:/"(?:""|[^"\r\f\n])*"/,number:[{pattern:/\b\d(?:_?\d)*#[\dA-F](?:_?[\dA-F])*(?:\.[\dA-F](?:_?[\dA-F])*)?#(?:E[+-]?\d(?:_?\d)*)?/i},{pattern:/\b\d(?:_?\d)*(?:\.\d(?:_?\d)*)?(?:E[+-]?\d(?:_?\d)*)?\b/i}],"attr-name":/\b'\w+/,keyword:/\b(?:abort|abs|abstract|accept|access|aliased|all|and|array|at|begin|body|case|constant|declare|delay|delta|digits|do|else|elsif|end|entry|exception|exit|for|function|generic|goto|if|in|interface|is|limited|loop|mod|new|not|null|of|others|out|overriding|package|pragma|private|procedure|protected|raise|range|record|rem|renames|requeue|return|reverse|select|separate|some|subtype|synchronized|tagged|task|terminate|then|type|until|use|when|while|with|xor)\b/i,boolean:/\b(?:false|true)\b/i,operator:/<[=>]?|>=?|=>?|:=|\/=?|\*\*?|[&+-]/,punctuation:/\.\.?|[,;():]/,char:/'.'/,variable:/\b[a-z](?:\w)*\b/i}}return ON}var RN,sq;function lje(){if(sq)return RN;sq=1,RN=e,e.displayName="agda",e.aliases=[];function e(t){(function(n){n.languages.agda={comment:/\{-[\s\S]*?(?:-\}|$)|--.*/,string:{pattern:/"(?:\\(?:\r\n|[\s\S])|[^\\\r\n"])*"/,greedy:!0},punctuation:/[(){}⦃⦄.;@]/,"class-name":{pattern:/((?:data|record) +)\S+/,lookbehind:!0},function:{pattern:/(^[ \t]*)(?!\s)[^:\r\n]+(?=:)/m,lookbehind:!0},operator:{pattern:/(^\s*|\s)(?:[=|:∀→λ\\?_]|->)(?=\s)/,lookbehind:!0},keyword:/\b(?:Set|abstract|constructor|data|eta-equality|field|forall|hiding|import|in|inductive|infix|infixl|infixr|instance|let|macro|module|mutual|no-eta-equality|open|overlap|pattern|postulate|primitive|private|public|quote|quoteContext|quoteGoal|quoteTerm|record|renaming|rewrite|syntax|tactic|unquote|unquoteDecl|unquoteDef|using|variable|where|with)\b/}})(t)}return RN}var PN,lq;function uje(){if(lq)return PN;lq=1,PN=e,e.displayName="al",e.aliases=[];function e(t){t.languages.al={comment:/\/\/.*|\/\*[\s\S]*?\*\//,string:{pattern:/'(?:''|[^'\r\n])*'(?!')|"(?:""|[^"\r\n])*"(?!")/,greedy:!0},function:{pattern:/(\b(?:event|procedure|trigger)\s+|(?:^|[^.])\.\s*)[a-z_]\w*(?=\s*\()/i,lookbehind:!0},keyword:[/\b(?:array|asserterror|begin|break|case|do|downto|else|end|event|exit|for|foreach|function|if|implements|in|indataset|interface|internal|local|of|procedure|program|protected|repeat|runonclient|securityfiltering|suppressdispose|temporary|then|to|trigger|until|var|while|with|withevents)\b/i,/\b(?:action|actions|addafter|addbefore|addfirst|addlast|area|assembly|chartpart|codeunit|column|controladdin|cuegroup|customizes|dataitem|dataset|dotnet|elements|enum|enumextension|extends|field|fieldattribute|fieldelement|fieldgroup|fieldgroups|fields|filter|fixed|grid|group|key|keys|label|labels|layout|modify|moveafter|movebefore|movefirst|movelast|page|pagecustomization|pageextension|part|profile|query|repeater|report|requestpage|schema|separator|systempart|table|tableelement|tableextension|textattribute|textelement|type|usercontrol|value|xmlport)\b/i],number:/\b(?:0x[\da-f]+|(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?)(?:F|LL?|U(?:LL?)?)?\b/i,boolean:/\b(?:false|true)\b/i,variable:/\b(?:Curr(?:FieldNo|Page|Report)|x?Rec|RequestOptionsPage)\b/,"class-name":/\b(?:automation|biginteger|bigtext|blob|boolean|byte|char|clienttype|code|completiontriggererrorlevel|connectiontype|database|dataclassification|datascope|date|dateformula|datetime|decimal|defaultlayout|dialog|dictionary|dotnetassembly|dotnettypedeclaration|duration|errorinfo|errortype|executioncontext|executionmode|fieldclass|fieldref|fieldtype|file|filterpagebuilder|guid|httpclient|httpcontent|httpheaders|httprequestmessage|httpresponsemessage|instream|integer|joker|jsonarray|jsonobject|jsontoken|jsonvalue|keyref|list|moduledependencyinfo|moduleinfo|none|notification|notificationscope|objecttype|option|outstream|pageresult|record|recordid|recordref|reportformat|securityfilter|sessionsettings|tableconnectiontype|tablefilter|testaction|testfield|testfilterfield|testpage|testpermissions|testrequestpage|text|textbuilder|textconst|textencoding|time|transactionmodel|transactiontype|variant|verbosity|version|view|views|webserviceactioncontext|webserviceactionresultcode|xmlattribute|xmlattributecollection|xmlcdata|xmlcomment|xmldeclaration|xmldocument|xmldocumenttype|xmlelement|xmlnamespacemanager|xmlnametable|xmlnode|xmlnodelist|xmlprocessinginstruction|xmlreadoptions|xmltext|xmlwriteoptions)\b/i,operator:/\.\.|:[=:]|[-+*/]=?|<>|[<>]=?|=|\b(?:and|div|mod|not|or|xor)\b/i,punctuation:/[()\[\]{}:.;,]/}}return PN}var AN,uq;function cje(){if(uq)return AN;uq=1,AN=e,e.displayName="antlr4",e.aliases=["g4"];function e(t){t.languages.antlr4={comment:/\/\/.*|\/\*[\s\S]*?(?:\*\/|$)/,string:{pattern:/'(?:\\.|[^\\'\r\n])*'/,greedy:!0},"character-class":{pattern:/\[(?:\\.|[^\\\]\r\n])*\]/,greedy:!0,alias:"regex",inside:{range:{pattern:/([^[]|(?:^|[^\\])(?:\\\\)*\\\[)-(?!\])/,lookbehind:!0,alias:"punctuation"},escape:/\\(?:u(?:[a-fA-F\d]{4}|\{[a-fA-F\d]+\})|[pP]\{[=\w-]+\}|[^\r\nupP])/,punctuation:/[\[\]]/}},action:{pattern:/\{(?:[^{}]|\{(?:[^{}]|\{(?:[^{}]|\{[^{}]*\})*\})*\})*\}/,greedy:!0,inside:{content:{pattern:/(\{)[\s\S]+(?=\})/,lookbehind:!0},punctuation:/[{}]/}},command:{pattern:/(->\s*(?!\s))(?:\s*(?:,\s*)?\b[a-z]\w*(?:\s*\([^()\r\n]*\))?)+(?=\s*;)/i,lookbehind:!0,inside:{function:/\b\w+(?=\s*(?:[,(]|$))/,punctuation:/[,()]/}},annotation:{pattern:/@\w+(?:::\w+)*/,alias:"keyword"},label:{pattern:/#[ \t]*\w+/,alias:"punctuation"},keyword:/\b(?:catch|channels|finally|fragment|grammar|import|lexer|locals|mode|options|parser|returns|throws|tokens)\b/,definition:[{pattern:/\b[a-z]\w*(?=\s*:)/,alias:["rule","class-name"]},{pattern:/\b[A-Z]\w*(?=\s*:)/,alias:["token","constant"]}],constant:/\b[A-Z][A-Z_]*\b/,operator:/\.\.|->|[|~]|[*+?]\??/,punctuation:/[;:()=]/},t.languages.g4=t.languages.antlr4}return AN}var NN,cq;function dje(){if(cq)return NN;cq=1,NN=e,e.displayName="apacheconf",e.aliases=[];function e(t){t.languages.apacheconf={comment:/#.*/,"directive-inline":{pattern:/(^[\t ]*)\b(?:AcceptFilter|AcceptPathInfo|AccessFileName|Action|Add(?:Alt|AltByEncoding|AltByType|Charset|DefaultCharset|Description|Encoding|Handler|Icon|IconByEncoding|IconByType|InputFilter|Language|ModuleInfo|OutputFilter|OutputFilterByType|Type)|Alias|AliasMatch|Allow(?:CONNECT|EncodedSlashes|Methods|Override|OverrideList)?|Anonymous(?:_LogEmail|_MustGiveEmail|_NoUserID|_VerifyEmail)?|AsyncRequestWorkerFactor|Auth(?:BasicAuthoritative|BasicFake|BasicProvider|BasicUseDigestAlgorithm|DBDUserPWQuery|DBDUserRealmQuery|DBMGroupFile|DBMType|DBMUserFile|Digest(?:Algorithm|Domain|NonceLifetime|Provider|Qop|ShmemSize)|Form(?:Authoritative|Body|DisableNoStore|FakeBasicAuth|Location|LoginRequiredLocation|LoginSuccessLocation|LogoutLocation|Method|Mimetype|Password|Provider|SitePassphrase|Size|Username)|GroupFile|LDAP(?:AuthorizePrefix|BindAuthoritative|BindDN|BindPassword|CharsetConfig|CompareAsUser|CompareDNOnServer|DereferenceAliases|GroupAttribute|GroupAttributeIsDN|InitialBindAsUser|InitialBindPattern|MaxSubGroupDepth|RemoteUserAttribute|RemoteUserIsDN|SearchAsUser|SubGroupAttribute|SubGroupClass|Url)|Merging|Name|nCache(?:Context|Enable|ProvideFor|SOCache|Timeout)|nzFcgiCheckAuthnProvider|nzFcgiDefineProvider|Type|UserFile|zDBDLoginToReferer|zDBDQuery|zDBDRedirectQuery|zDBMType|zSendForbiddenOnFailure)|BalancerGrowth|BalancerInherit|BalancerMember|BalancerPersist|BrowserMatch|BrowserMatchNoCase|BufferedLogs|BufferSize|Cache(?:DefaultExpire|DetailHeader|DirLength|DirLevels|Disable|Enable|File|Header|IgnoreCacheControl|IgnoreHeaders|IgnoreNoLastMod|IgnoreQueryString|IgnoreURLSessionIdentifiers|KeyBaseURL|LastModifiedFactor|Lock|LockMaxAge|LockPath|MaxExpire|MaxFileSize|MinExpire|MinFileSize|NegotiatedDocs|QuickHandler|ReadSize|ReadTime|Root|Socache(?:MaxSize|MaxTime|MinTime|ReadSize|ReadTime)?|StaleOnError|StoreExpired|StoreNoStore|StorePrivate)|CGIDScriptTimeout|CGIMapExtension|CharsetDefault|CharsetOptions|CharsetSourceEnc|CheckCaseOnly|CheckSpelling|ChrootDir|ContentDigest|CookieDomain|CookieExpires|CookieName|CookieStyle|CookieTracking|CoreDumpDirectory|CustomLog|Dav|DavDepthInfinity|DavGenericLockDB|DavLockDB|DavMinTimeout|DBDExptime|DBDInitSQL|DBDKeep|DBDMax|DBDMin|DBDParams|DBDPersist|DBDPrepareSQL|DBDriver|DefaultIcon|DefaultLanguage|DefaultRuntimeDir|DefaultType|Define|Deflate(?:BufferSize|CompressionLevel|FilterNote|InflateLimitRequestBody|InflateRatio(?:Burst|Limit)|MemLevel|WindowSize)|Deny|DirectoryCheckHandler|DirectoryIndex|DirectoryIndexRedirect|DirectorySlash|DocumentRoot|DTracePrivileges|DumpIOInput|DumpIOOutput|EnableExceptionHook|EnableMMAP|EnableSendfile|Error|ErrorDocument|ErrorLog|ErrorLogFormat|Example|ExpiresActive|ExpiresByType|ExpiresDefault|ExtendedStatus|ExtFilterDefine|ExtFilterOptions|FallbackResource|FileETag|FilterChain|FilterDeclare|FilterProtocol|FilterProvider|FilterTrace|ForceLanguagePriority|ForceType|ForensicLog|GprofDir|GracefulShutdownTimeout|Group|Header|HeaderName|Heartbeat(?:Address|Listen|MaxServers|Storage)|HostnameLookups|IdentityCheck|IdentityCheckTimeout|ImapBase|ImapDefault|ImapMenu|Include|IncludeOptional|Index(?:HeadInsert|Ignore|IgnoreReset|Options|OrderDefault|StyleSheet)|InputSed|ISAPI(?:AppendLogToErrors|AppendLogToQuery|CacheFile|FakeAsync|LogNotSupported|ReadAheadBuffer)|KeepAlive|KeepAliveTimeout|KeptBodySize|LanguagePriority|LDAP(?:CacheEntries|CacheTTL|ConnectionPoolTTL|ConnectionTimeout|LibraryDebug|OpCacheEntries|OpCacheTTL|ReferralHopLimit|Referrals|Retries|RetryDelay|SharedCacheFile|SharedCacheSize|Timeout|TrustedClientCert|TrustedGlobalCert|TrustedMode|VerifyServerCert)|Limit(?:InternalRecursion|Request(?:Body|Fields|FieldSize|Line)|XMLRequestBody)|Listen|ListenBackLog|LoadFile|LoadModule|LogFormat|LogLevel|LogMessage|LuaAuthzProvider|LuaCodeCache|Lua(?:Hook(?:AccessChecker|AuthChecker|CheckUserID|Fixups|InsertFilter|Log|MapToStorage|TranslateName|TypeChecker)|Inherit|InputFilter|MapHandler|OutputFilter|PackageCPath|PackagePath|QuickHandler|Root|Scope)|Max(?:ConnectionsPerChild|KeepAliveRequests|MemFree|RangeOverlaps|RangeReversals|Ranges|RequestWorkers|SpareServers|SpareThreads|Threads)|MergeTrailers|MetaDir|MetaFiles|MetaSuffix|MimeMagicFile|MinSpareServers|MinSpareThreads|MMapFile|ModemStandard|ModMimeUsePathInfo|MultiviewsMatch|Mutex|NameVirtualHost|NoProxy|NWSSLTrustedCerts|NWSSLUpgradeable|Options|Order|OutputSed|PassEnv|PidFile|PrivilegesMode|Protocol|ProtocolEcho|Proxy(?:AddHeaders|BadHeader|Block|Domain|ErrorOverride|ExpressDBMFile|ExpressDBMType|ExpressEnable|FtpDirCharset|FtpEscapeWildcards|FtpListOnWildcard|HTML(?:BufSize|CharsetOut|DocType|Enable|Events|Extended|Fixups|Interp|Links|Meta|StripComments|URLMap)|IOBufferSize|MaxForwards|Pass(?:Inherit|InterpolateEnv|Match|Reverse|ReverseCookieDomain|ReverseCookiePath)?|PreserveHost|ReceiveBufferSize|Remote|RemoteMatch|Requests|SCGIInternalRedirect|SCGISendfile|Set|SourceAddress|Status|Timeout|Via)|ReadmeName|ReceiveBufferSize|Redirect|RedirectMatch|RedirectPermanent|RedirectTemp|ReflectorHeader|RemoteIP(?:Header|InternalProxy|InternalProxyList|ProxiesHeader|TrustedProxy|TrustedProxyList)|RemoveCharset|RemoveEncoding|RemoveHandler|RemoveInputFilter|RemoveLanguage|RemoveOutputFilter|RemoveType|RequestHeader|RequestReadTimeout|Require|Rewrite(?:Base|Cond|Engine|Map|Options|Rule)|RLimitCPU|RLimitMEM|RLimitNPROC|Satisfy|ScoreBoardFile|Script(?:Alias|AliasMatch|InterpreterSource|Log|LogBuffer|LogLength|Sock)?|SecureListen|SeeRequestTail|SendBufferSize|Server(?:Admin|Alias|Limit|Name|Path|Root|Signature|Tokens)|Session(?:Cookie(?:Name|Name2|Remove)|Crypto(?:Cipher|Driver|Passphrase|PassphraseFile)|DBD(?:CookieName|CookieName2|CookieRemove|DeleteLabel|InsertLabel|PerUser|SelectLabel|UpdateLabel)|Env|Exclude|Header|Include|MaxAge)?|SetEnv|SetEnvIf|SetEnvIfExpr|SetEnvIfNoCase|SetHandler|SetInputFilter|SetOutputFilter|SSIEndTag|SSIErrorMsg|SSIETag|SSILastModified|SSILegacyExprParser|SSIStartTag|SSITimeFormat|SSIUndefinedEcho|SSL(?:CACertificateFile|CACertificatePath|CADNRequestFile|CADNRequestPath|CARevocationCheck|CARevocationFile|CARevocationPath|CertificateChainFile|CertificateFile|CertificateKeyFile|CipherSuite|Compression|CryptoDevice|Engine|FIPS|HonorCipherOrder|InsecureRenegotiation|OCSP(?:DefaultResponder|Enable|OverrideResponder|ResponderTimeout|ResponseMaxAge|ResponseTimeSkew|UseRequestNonce)|OpenSSLConfCmd|Options|PassPhraseDialog|Protocol|Proxy(?:CACertificateFile|CACertificatePath|CARevocation(?:Check|File|Path)|CheckPeer(?:CN|Expire|Name)|CipherSuite|Engine|MachineCertificate(?:ChainFile|File|Path)|Protocol|Verify|VerifyDepth)|RandomSeed|RenegBufferSize|Require|RequireSSL|Session(?:Cache|CacheTimeout|TicketKeyFile|Tickets)|SRPUnknownUserSeed|SRPVerifierFile|Stapling(?:Cache|ErrorCacheTimeout|FakeTryLater|ForceURL|ResponderTimeout|ResponseMaxAge|ResponseTimeSkew|ReturnResponderErrors|StandardCacheTimeout)|StrictSNIVHostCheck|UserName|UseStapling|VerifyClient|VerifyDepth)|StartServers|StartThreads|Substitute|Suexec|SuexecUserGroup|ThreadLimit|ThreadsPerChild|ThreadStackSize|TimeOut|TraceEnable|TransferLog|TypesConfig|UnDefine|UndefMacro|UnsetEnv|Use|UseCanonicalName|UseCanonicalPhysicalPort|User|UserDir|VHostCGIMode|VHostCGIPrivs|VHostGroup|VHostPrivs|VHostSecure|VHostUser|Virtual(?:DocumentRoot|ScriptAlias)(?:IP)?|WatchdogInterval|XBitHack|xml2EncAlias|xml2EncDefault|xml2StartParse)\b/im,lookbehind:!0,alias:"property"},"directive-block":{pattern:/<\/?\b(?:Auth[nz]ProviderAlias|Directory|DirectoryMatch|Else|ElseIf|Files|FilesMatch|If|IfDefine|IfModule|IfVersion|Limit|LimitExcept|Location|LocationMatch|Macro|Proxy|Require(?:All|Any|None)|VirtualHost)\b.*>/i,inside:{"directive-block":{pattern:/^<\/?\w+/,inside:{punctuation:/^<\/?/},alias:"tag"},"directive-block-parameter":{pattern:/.*[^>]/,inside:{punctuation:/:/,string:{pattern:/("|').*\1/,inside:{variable:/[$%]\{?(?:\w\.?[-+:]?)+\}?/}}},alias:"attr-value"},punctuation:/>/},alias:"tag"},"directive-flags":{pattern:/\[(?:[\w=],?)+\]/,alias:"keyword"},string:{pattern:/("|').*\1/,inside:{variable:/[$%]\{?(?:\w\.?[-+:]?)+\}?/}},variable:/[$%]\{?(?:\w\.?[-+:]?)+\}?/,regex:/\^?.*\$|\^.*\$?/}}return NN}var MN,dq;function Gj(){if(dq)return MN;dq=1,MN=e,e.displayName="sql",e.aliases=[];function e(t){t.languages.sql={comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?\*\/|(?:--|\/\/|#).*)/,lookbehind:!0},variable:[{pattern:/@(["'`])(?:\\[\s\S]|(?!\1)[^\\])+\1/,greedy:!0},/@[\w.$]+/],string:{pattern:/(^|[^@\\])("|')(?:\\[\s\S]|(?!\2)[^\\]|\2\2)*\2/,greedy:!0,lookbehind:!0},identifier:{pattern:/(^|[^@\\])`(?:\\[\s\S]|[^`\\]|``)*`/,greedy:!0,lookbehind:!0,inside:{punctuation:/^`|`$/}},function:/\b(?:AVG|COUNT|FIRST|FORMAT|LAST|LCASE|LEN|MAX|MID|MIN|MOD|NOW|ROUND|SUM|UCASE)(?=\s*\()/i,keyword:/\b(?:ACTION|ADD|AFTER|ALGORITHM|ALL|ALTER|ANALYZE|ANY|APPLY|AS|ASC|AUTHORIZATION|AUTO_INCREMENT|BACKUP|BDB|BEGIN|BERKELEYDB|BIGINT|BINARY|BIT|BLOB|BOOL|BOOLEAN|BREAK|BROWSE|BTREE|BULK|BY|CALL|CASCADED?|CASE|CHAIN|CHAR(?:ACTER|SET)?|CHECK(?:POINT)?|CLOSE|CLUSTERED|COALESCE|COLLATE|COLUMNS?|COMMENT|COMMIT(?:TED)?|COMPUTE|CONNECT|CONSISTENT|CONSTRAINT|CONTAINS(?:TABLE)?|CONTINUE|CONVERT|CREATE|CROSS|CURRENT(?:_DATE|_TIME|_TIMESTAMP|_USER)?|CURSOR|CYCLE|DATA(?:BASES?)?|DATE(?:TIME)?|DAY|DBCC|DEALLOCATE|DEC|DECIMAL|DECLARE|DEFAULT|DEFINER|DELAYED|DELETE|DELIMITERS?|DENY|DESC|DESCRIBE|DETERMINISTIC|DISABLE|DISCARD|DISK|DISTINCT|DISTINCTROW|DISTRIBUTED|DO|DOUBLE|DROP|DUMMY|DUMP(?:FILE)?|DUPLICATE|ELSE(?:IF)?|ENABLE|ENCLOSED|END|ENGINE|ENUM|ERRLVL|ERRORS|ESCAPED?|EXCEPT|EXEC(?:UTE)?|EXISTS|EXIT|EXPLAIN|EXTENDED|FETCH|FIELDS|FILE|FILLFACTOR|FIRST|FIXED|FLOAT|FOLLOWING|FOR(?: EACH ROW)?|FORCE|FOREIGN|FREETEXT(?:TABLE)?|FROM|FULL|FUNCTION|GEOMETRY(?:COLLECTION)?|GLOBAL|GOTO|GRANT|GROUP|HANDLER|HASH|HAVING|HOLDLOCK|HOUR|IDENTITY(?:COL|_INSERT)?|IF|IGNORE|IMPORT|INDEX|INFILE|INNER|INNODB|INOUT|INSERT|INT|INTEGER|INTERSECT|INTERVAL|INTO|INVOKER|ISOLATION|ITERATE|JOIN|KEYS?|KILL|LANGUAGE|LAST|LEAVE|LEFT|LEVEL|LIMIT|LINENO|LINES|LINESTRING|LOAD|LOCAL|LOCK|LONG(?:BLOB|TEXT)|LOOP|MATCH(?:ED)?|MEDIUM(?:BLOB|INT|TEXT)|MERGE|MIDDLEINT|MINUTE|MODE|MODIFIES|MODIFY|MONTH|MULTI(?:LINESTRING|POINT|POLYGON)|NATIONAL|NATURAL|NCHAR|NEXT|NO|NONCLUSTERED|NULLIF|NUMERIC|OFF?|OFFSETS?|ON|OPEN(?:DATASOURCE|QUERY|ROWSET)?|OPTIMIZE|OPTION(?:ALLY)?|ORDER|OUT(?:ER|FILE)?|OVER|PARTIAL|PARTITION|PERCENT|PIVOT|PLAN|POINT|POLYGON|PRECEDING|PRECISION|PREPARE|PREV|PRIMARY|PRINT|PRIVILEGES|PROC(?:EDURE)?|PUBLIC|PURGE|QUICK|RAISERROR|READS?|REAL|RECONFIGURE|REFERENCES|RELEASE|RENAME|REPEAT(?:ABLE)?|REPLACE|REPLICATION|REQUIRE|RESIGNAL|RESTORE|RESTRICT|RETURN(?:ING|S)?|REVOKE|RIGHT|ROLLBACK|ROUTINE|ROW(?:COUNT|GUIDCOL|S)?|RTREE|RULE|SAVE(?:POINT)?|SCHEMA|SECOND|SELECT|SERIAL(?:IZABLE)?|SESSION(?:_USER)?|SET(?:USER)?|SHARE|SHOW|SHUTDOWN|SIMPLE|SMALLINT|SNAPSHOT|SOME|SONAME|SQL|START(?:ING)?|STATISTICS|STATUS|STRIPED|SYSTEM_USER|TABLES?|TABLESPACE|TEMP(?:ORARY|TABLE)?|TERMINATED|TEXT(?:SIZE)?|THEN|TIME(?:STAMP)?|TINY(?:BLOB|INT|TEXT)|TOP?|TRAN(?:SACTIONS?)?|TRIGGER|TRUNCATE|TSEQUAL|TYPES?|UNBOUNDED|UNCOMMITTED|UNDEFINED|UNION|UNIQUE|UNLOCK|UNPIVOT|UNSIGNED|UPDATE(?:TEXT)?|USAGE|USE|USER|USING|VALUES?|VAR(?:BINARY|CHAR|CHARACTER|YING)|VIEW|WAITFOR|WARNINGS|WHEN|WHERE|WHILE|WITH(?: ROLLUP|IN)?|WORK|WRITE(?:TEXT)?|YEAR)\b/i,boolean:/\b(?:FALSE|NULL|TRUE)\b/i,number:/\b0x[\da-f]+\b|\b\d+(?:\.\d*)?|\B\.\d+\b/i,operator:/[-+*\/=%^~]|&&?|\|\|?|!=?|<(?:=>?|<|>)?|>[>=]?|\b(?:AND|BETWEEN|DIV|ILIKE|IN|IS|LIKE|NOT|OR|REGEXP|RLIKE|SOUNDS LIKE|XOR)\b/i,punctuation:/[;[\]()`,.]/}}return MN}var IN,fq;function fje(){if(fq)return IN;fq=1;var e=Gj();IN=t,t.displayName="apex",t.aliases=[];function t(n){n.register(e),(function(r){var a=/\b(?:(?:after|before)(?=\s+[a-z])|abstract|activate|and|any|array|as|asc|autonomous|begin|bigdecimal|blob|boolean|break|bulk|by|byte|case|cast|catch|char|class|collect|commit|const|continue|currency|date|datetime|decimal|default|delete|desc|do|double|else|end|enum|exception|exit|export|extends|final|finally|float|for|from|get(?=\s*[{};])|global|goto|group|having|hint|if|implements|import|in|inner|insert|instanceof|int|integer|interface|into|join|like|limit|list|long|loop|map|merge|new|not|null|nulls|number|object|of|on|or|outer|override|package|parallel|pragma|private|protected|public|retrieve|return|rollback|select|set|short|sObject|sort|static|string|super|switch|synchronized|system|testmethod|then|this|throw|time|transaction|transient|trigger|try|undelete|update|upsert|using|virtual|void|webservice|when|where|while|(?:inherited|with|without)\s+sharing)\b/i,i=/\b(?:(?=[a-z_]\w*\s*[<\[])|(?!))[A-Z_]\w*(?:\s*\.\s*[A-Z_]\w*)*\b(?:\s*(?:\[\s*\]|<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>))*/.source.replace(//g,function(){return a.source});function o(u){return RegExp(u.replace(//g,function(){return i}),"i")}var l={keyword:a,punctuation:/[()\[\]{};,:.<>]/};r.languages.apex={comment:r.languages.clike.comment,string:r.languages.clike.string,sql:{pattern:/((?:[=,({:]|\breturn)\s*)\[[^\[\]]*\]/i,lookbehind:!0,greedy:!0,alias:"language-sql",inside:r.languages.sql},annotation:{pattern:/@\w+\b/,alias:"punctuation"},"class-name":[{pattern:o(/(\b(?:class|enum|extends|implements|instanceof|interface|new|trigger\s+\w+\s+on)\s+)/.source),lookbehind:!0,inside:l},{pattern:o(/(\(\s*)(?=\s*\)\s*[\w(])/.source),lookbehind:!0,inside:l},{pattern:o(/(?=\s*\w+\s*[;=,(){:])/.source),inside:l}],trigger:{pattern:/(\btrigger\s+)\w+\b/i,lookbehind:!0,alias:"class-name"},keyword:a,function:/\b[a-z_]\w*(?=\s*\()/i,boolean:/\b(?:false|true)\b/i,number:/(?:\B\.\d+|\b\d+(?:\.\d+|L)?)\b/i,operator:/[!=](?:==?)?|\?\.?|&&|\|\||--|\+\+|[-+*/^&|]=?|:|<{1,3}=?/,punctuation:/[()\[\]{};,.]/}})(n)}return IN}var DN,pq;function pje(){if(pq)return DN;pq=1,DN=e,e.displayName="apl",e.aliases=[];function e(t){t.languages.apl={comment:/(?:⍝|#[! ]).*$/m,string:{pattern:/'(?:[^'\r\n]|'')*'/,greedy:!0},number:/¯?(?:\d*\.?\b\d+(?:e[+¯]?\d+)?|¯|∞)(?:j¯?(?:(?:\d+(?:\.\d+)?|\.\d+)(?:e[+¯]?\d+)?|¯|∞))?/i,statement:/:[A-Z][a-z][A-Za-z]*\b/,"system-function":{pattern:/⎕[A-Z]+/i,alias:"function"},constant:/[⍬⌾#⎕⍞]/,function:/[-+×÷⌈⌊∣|⍳⍸?*⍟○!⌹<≤=>≥≠≡≢∊⍷∪∩~∨∧⍱⍲⍴,⍪⌽⊖⍉↑↓⊂⊃⊆⊇⌷⍋⍒⊤⊥⍕⍎⊣⊢⍁⍂≈⍯↗¤→]/,"monadic-operator":{pattern:/[\\\/⌿⍀¨⍨⌶&∥]/,alias:"operator"},"dyadic-operator":{pattern:/[.⍣⍠⍤∘⌸@⌺⍥]/,alias:"operator"},assignment:{pattern:/←/,alias:"keyword"},punctuation:/[\[;\]()◇⋄]/,dfn:{pattern:/[{}⍺⍵⍶⍹∇⍫:]/,alias:"builtin"}}}return DN}var $N,hq;function hje(){if(hq)return $N;hq=1,$N=e,e.displayName="applescript",e.aliases=[];function e(t){t.languages.applescript={comment:[/\(\*(?:\(\*(?:[^*]|\*(?!\)))*\*\)|(?!\(\*)[\s\S])*?\*\)/,/--.+/,/#.+/],string:/"(?:\\.|[^"\\\r\n])*"/,number:/(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e-?\d+)?\b/i,operator:[/[&=≠≤≥*+\-\/÷^]|[<>]=?/,/\b(?:(?:begin|end|start)s? with|(?:contains?|(?:does not|doesn't) contain)|(?:is|isn't|is not) (?:contained by|in)|(?:(?:is|isn't|is not) )?(?:greater|less) than(?: or equal)?(?: to)?|(?:comes|(?:does not|doesn't) come) (?:after|before)|(?:is|isn't|is not) equal(?: to)?|(?:(?:does not|doesn't) equal|equal to|equals|is not|isn't)|(?:a )?(?:ref(?: to)?|reference to)|(?:and|as|div|mod|not|or))\b/],keyword:/\b(?:about|above|after|against|apart from|around|aside from|at|back|before|beginning|behind|below|beneath|beside|between|but|by|considering|continue|copy|does|eighth|else|end|equal|error|every|exit|false|fifth|first|for|fourth|from|front|get|given|global|if|ignoring|in|instead of|into|is|it|its|last|local|me|middle|my|ninth|of|on|onto|out of|over|prop|property|put|repeat|return|returning|second|set|seventh|since|sixth|some|tell|tenth|that|the|then|third|through|thru|timeout|times|to|transaction|true|try|until|where|while|whose|with|without)\b/,"class-name":/\b(?:POSIX file|RGB color|alias|application|boolean|centimeters|centimetres|class|constant|cubic centimeters|cubic centimetres|cubic feet|cubic inches|cubic meters|cubic metres|cubic yards|date|degrees Celsius|degrees Fahrenheit|degrees Kelvin|feet|file|gallons|grams|inches|integer|kilograms|kilometers|kilometres|list|liters|litres|meters|metres|miles|number|ounces|pounds|quarts|real|record|reference|script|square feet|square kilometers|square kilometres|square meters|square metres|square miles|square yards|text|yards)\b/,punctuation:/[{}():,¬«»《》]/}}return $N}var LN,mq;function mje(){if(mq)return LN;mq=1,LN=e,e.displayName="aql",e.aliases=[];function e(t){t.languages.aql={comment:/\/\/.*|\/\*[\s\S]*?\*\//,property:{pattern:/([{,]\s*)(?:(?!\d)\w+|(["'´`])(?:(?!\2)[^\\\r\n]|\\.)*\2)(?=\s*:)/,lookbehind:!0,greedy:!0},string:{pattern:/(["'])(?:(?!\1)[^\\\r\n]|\\.)*\1/,greedy:!0},identifier:{pattern:/([´`])(?:(?!\1)[^\\\r\n]|\\.)*\1/,greedy:!0},variable:/@@?\w+/,keyword:[{pattern:/(\bWITH\s+)COUNT(?=\s+INTO\b)/i,lookbehind:!0},/\b(?:AGGREGATE|ALL|AND|ANY|ASC|COLLECT|DESC|DISTINCT|FILTER|FOR|GRAPH|IN|INBOUND|INSERT|INTO|K_PATHS|K_SHORTEST_PATHS|LET|LIKE|LIMIT|NONE|NOT|NULL|OR|OUTBOUND|REMOVE|REPLACE|RETURN|SHORTEST_PATH|SORT|UPDATE|UPSERT|WINDOW|WITH)\b/i,{pattern:/(^|[^\w.[])(?:KEEP|PRUNE|SEARCH|TO)\b/i,lookbehind:!0},{pattern:/(^|[^\w.[])(?:CURRENT|NEW|OLD)\b/,lookbehind:!0},{pattern:/\bOPTIONS(?=\s*\{)/i}],function:/\b(?!\d)\w+(?=\s*\()/,boolean:/\b(?:false|true)\b/i,range:{pattern:/\.\./,alias:"operator"},number:[/\b0b[01]+/i,/\b0x[0-9a-f]+/i,/(?:\B\.\d+|\b(?:0|[1-9]\d*)(?:\.\d+)?)(?:e[+-]?\d+)?/i],operator:/\*{2,}|[=!]~|[!=<>]=?|&&|\|\||[-+*/%]/,punctuation:/::|[?.:,;()[\]{}]/}}return LN}var FN,gq;function Kv(){if(gq)return FN;gq=1,FN=e,e.displayName="c",e.aliases=[];function e(t){t.languages.c=t.languages.extend("clike",{comment:{pattern:/\/\/(?:[^\r\n\\]|\\(?:\r\n?|\n|(?![\r\n])))*|\/\*[\s\S]*?(?:\*\/|$)/,greedy:!0},string:{pattern:/"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"/,greedy:!0},"class-name":{pattern:/(\b(?:enum|struct)\s+(?:__attribute__\s*\(\([\s\S]*?\)\)\s*)?)\w+|\b[a-z]\w*_t\b/,lookbehind:!0},keyword:/\b(?:_Alignas|_Alignof|_Atomic|_Bool|_Complex|_Generic|_Imaginary|_Noreturn|_Static_assert|_Thread_local|__attribute__|asm|auto|break|case|char|const|continue|default|do|double|else|enum|extern|float|for|goto|if|inline|int|long|register|return|short|signed|sizeof|static|struct|switch|typedef|typeof|union|unsigned|void|volatile|while)\b/,function:/\b[a-z_]\w*(?=\s*\()/i,number:/(?:\b0x(?:[\da-f]+(?:\.[\da-f]*)?|\.[\da-f]+)(?:p[+-]?\d+)?|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?)[ful]{0,4}/i,operator:/>>=?|<<=?|->|([-+&|:])\1|[?:~]|[-+*/%&|^!=<>]=?/}),t.languages.insertBefore("c","string",{char:{pattern:/'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n]){0,32}'/,greedy:!0}}),t.languages.insertBefore("c","string",{macro:{pattern:/(^[\t ]*)#\s*[a-z](?:[^\r\n\\/]|\/(?!\*)|\/\*(?:[^*]|\*(?!\/))*\*\/|\\(?:\r\n|[\s\S]))*/im,lookbehind:!0,greedy:!0,alias:"property",inside:{string:[{pattern:/^(#\s*include\s*)<[^>]+>/,lookbehind:!0},t.languages.c.string],char:t.languages.c.char,comment:t.languages.c.comment,"macro-name":[{pattern:/(^#\s*define\s+)\w+\b(?!\()/i,lookbehind:!0},{pattern:/(^#\s*define\s+)\w+\b(?=\()/i,lookbehind:!0,alias:"function"}],directive:{pattern:/^(#\s*)[a-z]+/,lookbehind:!0,alias:"keyword"},"directive-hash":/^#/,punctuation:/##|\\(?=[\r\n])/,expression:{pattern:/\S[\s\S]*/,inside:t.languages.c}}}}),t.languages.insertBefore("c","function",{constant:/\b(?:EOF|NULL|SEEK_CUR|SEEK_END|SEEK_SET|__DATE__|__FILE__|__LINE__|__TIMESTAMP__|__TIME__|__func__|stderr|stdin|stdout)\b/}),delete t.languages.c.boolean}return FN}var jN,vq;function Yj(){if(vq)return jN;vq=1;var e=Kv();jN=t,t.displayName="cpp",t.aliases=[];function t(n){n.register(e),(function(r){var a=/\b(?:alignas|alignof|asm|auto|bool|break|case|catch|char|char16_t|char32_t|char8_t|class|co_await|co_return|co_yield|compl|concept|const|const_cast|consteval|constexpr|constinit|continue|decltype|default|delete|do|double|dynamic_cast|else|enum|explicit|export|extern|final|float|for|friend|goto|if|import|inline|int|int16_t|int32_t|int64_t|int8_t|long|module|mutable|namespace|new|noexcept|nullptr|operator|override|private|protected|public|register|reinterpret_cast|requires|return|short|signed|sizeof|static|static_assert|static_cast|struct|switch|template|this|thread_local|throw|try|typedef|typeid|typename|uint16_t|uint32_t|uint64_t|uint8_t|union|unsigned|using|virtual|void|volatile|wchar_t|while)\b/,i=/\b(?!)\w+(?:\s*\.\s*\w+)*\b/.source.replace(//g,function(){return a.source});r.languages.cpp=r.languages.extend("c",{"class-name":[{pattern:RegExp(/(\b(?:class|concept|enum|struct|typename)\s+)(?!)\w+/.source.replace(//g,function(){return a.source})),lookbehind:!0},/\b[A-Z]\w*(?=\s*::\s*\w+\s*\()/,/\b[A-Z_]\w*(?=\s*::\s*~\w+\s*\()/i,/\b\w+(?=\s*<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>\s*::\s*\w+\s*\()/],keyword:a,number:{pattern:/(?:\b0b[01']+|\b0x(?:[\da-f']+(?:\.[\da-f']*)?|\.[\da-f']+)(?:p[+-]?[\d']+)?|(?:\b[\d']+(?:\.[\d']*)?|\B\.[\d']+)(?:e[+-]?[\d']+)?)[ful]{0,4}/i,greedy:!0},operator:/>>=?|<<=?|->|--|\+\+|&&|\|\||[?:~]|<=>|[-+*/%&|^!=<>]=?|\b(?:and|and_eq|bitand|bitor|not|not_eq|or|or_eq|xor|xor_eq)\b/,boolean:/\b(?:false|true)\b/}),r.languages.insertBefore("cpp","string",{module:{pattern:RegExp(/(\b(?:import|module)\s+)/.source+"(?:"+/"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|<[^<>\r\n]*>/.source+"|"+/(?:\s*:\s*)?|:\s*/.source.replace(//g,function(){return i})+")"),lookbehind:!0,greedy:!0,inside:{string:/^[<"][\s\S]+/,operator:/:/,punctuation:/\./}},"raw-string":{pattern:/R"([^()\\ ]{0,16})\([\s\S]*?\)\1"/,alias:"string",greedy:!0}}),r.languages.insertBefore("cpp","keyword",{"generic-function":{pattern:/\b(?!operator\b)[a-z_]\w*\s*<(?:[^<>]|<[^<>]*>)*>(?=\s*\()/i,inside:{function:/^\w+/,generic:{pattern:/<[\s\S]+/,alias:"class-name",inside:r.languages.cpp}}}}),r.languages.insertBefore("cpp","operator",{"double-colon":{pattern:/::/,alias:"punctuation"}}),r.languages.insertBefore("cpp","class-name",{"base-clause":{pattern:/(\b(?:class|struct)\s+\w+\s*:\s*)[^;{}"'\s]+(?:\s+[^;{}"'\s]+)*(?=\s*[;{])/,lookbehind:!0,greedy:!0,inside:r.languages.extend("cpp",{})}}),r.languages.insertBefore("inside","double-colon",{"class-name":/\b[a-z_]\w*\b(?!\s*::)/i},r.languages.cpp["base-clause"])})(n)}return jN}var UN,yq;function gje(){if(yq)return UN;yq=1;var e=Yj();UN=t,t.displayName="arduino",t.aliases=["ino"];function t(n){n.register(e),n.languages.arduino=n.languages.extend("cpp",{keyword:/\b(?:String|array|bool|boolean|break|byte|case|catch|continue|default|do|double|else|finally|for|function|goto|if|in|instanceof|int|integer|long|loop|new|null|return|setup|string|switch|throw|try|void|while|word)\b/,constant:/\b(?:ANALOG_MESSAGE|DEFAULT|DIGITAL_MESSAGE|EXTERNAL|FIRMATA_STRING|HIGH|INPUT|INPUT_PULLUP|INTERNAL|INTERNAL1V1|INTERNAL2V56|LED_BUILTIN|LOW|OUTPUT|REPORT_ANALOG|REPORT_DIGITAL|SET_PIN_MODE|SYSEX_START|SYSTEM_RESET)\b/,builtin:/\b(?:Audio|BSSID|Bridge|Client|Console|EEPROM|Esplora|EsploraTFT|Ethernet|EthernetClient|EthernetServer|EthernetUDP|File|FileIO|FileSystem|Firmata|GPRS|GSM|GSMBand|GSMClient|GSMModem|GSMPIN|GSMScanner|GSMServer|GSMVoiceCall|GSM_SMS|HttpClient|IPAddress|IRread|Keyboard|KeyboardController|LiquidCrystal|LiquidCrystal_I2C|Mailbox|Mouse|MouseController|PImage|Process|RSSI|RobotControl|RobotMotor|SD|SPI|SSID|Scheduler|Serial|Server|Servo|SoftwareSerial|Stepper|Stream|TFT|Task|USBHost|WiFi|WiFiClient|WiFiServer|WiFiUDP|Wire|YunClient|YunServer|abs|addParameter|analogRead|analogReadResolution|analogReference|analogWrite|analogWriteResolution|answerCall|attach|attachGPRS|attachInterrupt|attached|autoscroll|available|background|beep|begin|beginPacket|beginSD|beginSMS|beginSpeaker|beginTFT|beginTransmission|beginWrite|bit|bitClear|bitRead|bitSet|bitWrite|blink|blinkVersion|buffer|changePIN|checkPIN|checkPUK|checkReg|circle|cityNameRead|cityNameWrite|clear|clearScreen|click|close|compassRead|config|connect|connected|constrain|cos|countryNameRead|countryNameWrite|createChar|cursor|debugPrint|delay|delayMicroseconds|detach|detachInterrupt|digitalRead|digitalWrite|disconnect|display|displayLogos|drawBMP|drawCompass|encryptionType|end|endPacket|endSMS|endTransmission|endWrite|exists|exitValue|fill|find|findUntil|flush|gatewayIP|get|getAsynchronously|getBand|getButton|getCurrentCarrier|getIMEI|getKey|getModifiers|getOemKey|getPINUsed|getResult|getSignalStrength|getSocket|getVoiceCallStatus|getXChange|getYChange|hangCall|height|highByte|home|image|interrupts|isActionDone|isDirectory|isListening|isPIN|isPressed|isValid|keyPressed|keyReleased|keyboardRead|knobRead|leftToRight|line|lineFollowConfig|listen|listenOnLocalhost|loadImage|localIP|lowByte|macAddress|maintain|map|max|messageAvailable|micros|millis|min|mkdir|motorsStop|motorsWrite|mouseDragged|mouseMoved|mousePressed|mouseReleased|move|noAutoscroll|noBlink|noBuffer|noCursor|noDisplay|noFill|noInterrupts|noListenOnLocalhost|noStroke|noTone|onReceive|onRequest|open|openNextFile|overflow|parseCommand|parseFloat|parseInt|parsePacket|pauseMode|peek|pinMode|playFile|playMelody|point|pointTo|position|pow|prepare|press|print|printFirmwareVersion|printVersion|println|process|processInput|pulseIn|put|random|randomSeed|read|readAccelerometer|readBlue|readButton|readBytes|readBytesUntil|readGreen|readJoystickButton|readJoystickSwitch|readJoystickX|readJoystickY|readLightSensor|readMessage|readMicrophone|readNetworks|readRed|readSlider|readString|readStringUntil|readTemperature|ready|rect|release|releaseAll|remoteIP|remoteNumber|remotePort|remove|requestFrom|retrieveCallingNumber|rewindDirectory|rightToLeft|rmdir|robotNameRead|robotNameWrite|run|runAsynchronously|runShellCommand|runShellCommandAsynchronously|running|scanNetworks|scrollDisplayLeft|scrollDisplayRight|seek|sendAnalog|sendDigitalPortPair|sendDigitalPorts|sendString|sendSysex|serialEvent|setBand|setBitOrder|setClockDivider|setCursor|setDNS|setDataMode|setFirmwareVersion|setMode|setPINUsed|setSpeed|setTextSize|setTimeout|shiftIn|shiftOut|shutdown|sin|size|sqrt|startLoop|step|stop|stroke|subnetMask|switchPIN|tan|tempoWrite|text|tone|transfer|tuneWrite|turn|updateIR|userNameRead|userNameWrite|voiceCall|waitContinue|width|write|writeBlue|writeGreen|writeJSON|writeMessage|writeMicroseconds|writeRGB|writeRed|yield)\b/}),n.languages.ino=n.languages.arduino}return UN}var BN,bq;function vje(){if(bq)return BN;bq=1,BN=e,e.displayName="arff",e.aliases=[];function e(t){t.languages.arff={comment:/%.*/,string:{pattern:/(["'])(?:\\.|(?!\1)[^\\\r\n])*\1/,greedy:!0},keyword:/@(?:attribute|data|end|relation)\b/i,number:/\b\d+(?:\.\d+)?\b/,punctuation:/[{},]/}}return BN}var WN,wq;function yje(){if(wq)return WN;wq=1,WN=e,e.displayName="asciidoc",e.aliases=["adoc"];function e(t){(function(n){var r={pattern:/(^[ \t]*)\[(?!\[)(?:(["'$`])(?:(?!\2)[^\\]|\\.)*\2|\[(?:[^\[\]\\]|\\.)*\]|[^\[\]\\"'$`]|\\.)*\]/m,lookbehind:!0,inside:{quoted:{pattern:/([$`])(?:(?!\1)[^\\]|\\.)*\1/,inside:{punctuation:/^[$`]|[$`]$/}},interpreted:{pattern:/'(?:[^'\\]|\\.)*'/,inside:{punctuation:/^'|'$/}},string:/"(?:[^"\\]|\\.)*"/,variable:/\w+(?==)/,punctuation:/^\[|\]$|,/,operator:/=/,"attr-value":/(?!^\s+$).+/}},a=n.languages.asciidoc={"comment-block":{pattern:/^(\/{4,})(?:\r?\n|\r)(?:[\s\S]*(?:\r?\n|\r))??\1/m,alias:"comment"},table:{pattern:/^\|={3,}(?:(?:\r?\n|\r(?!\n)).*)*?(?:\r?\n|\r)\|={3,}$/m,inside:{specifiers:{pattern:/(?:(?:(?:\d+(?:\.\d+)?|\.\d+)[+*](?:[<^>](?:\.[<^>])?|\.[<^>])?|[<^>](?:\.[<^>])?|\.[<^>])[a-z]*|[a-z]+)(?=\|)/,alias:"attr-value"},punctuation:{pattern:/(^|[^\\])[|!]=*/,lookbehind:!0}}},"passthrough-block":{pattern:/^(\+{4,})(?:\r?\n|\r)(?:[\s\S]*(?:\r?\n|\r))??\1$/m,inside:{punctuation:/^\++|\++$/}},"literal-block":{pattern:/^(-{4,}|\.{4,})(?:\r?\n|\r)(?:[\s\S]*(?:\r?\n|\r))??\1$/m,inside:{punctuation:/^(?:-+|\.+)|(?:-+|\.+)$/}},"other-block":{pattern:/^(--|\*{4,}|_{4,}|={4,})(?:\r?\n|\r)(?:[\s\S]*(?:\r?\n|\r))??\1$/m,inside:{punctuation:/^(?:-+|\*+|_+|=+)|(?:-+|\*+|_+|=+)$/}},"list-punctuation":{pattern:/(^[ \t]*)(?:-|\*{1,5}|\.{1,5}|(?:[a-z]|\d+)\.|[xvi]+\))(?= )/im,lookbehind:!0,alias:"punctuation"},"list-label":{pattern:/(^[ \t]*)[a-z\d].+(?::{2,4}|;;)(?=\s)/im,lookbehind:!0,alias:"symbol"},"indented-block":{pattern:/((\r?\n|\r)\2)([ \t]+)\S.*(?:(?:\r?\n|\r)\3.+)*(?=\2{2}|$)/,lookbehind:!0},comment:/^\/\/.*/m,title:{pattern:/^.+(?:\r?\n|\r)(?:={3,}|-{3,}|~{3,}|\^{3,}|\+{3,})$|^={1,5} .+|^\.(?![\s.]).*/m,alias:"important",inside:{punctuation:/^(?:\.|=+)|(?:=+|-+|~+|\^+|\++)$/}},"attribute-entry":{pattern:/^:[^:\r\n]+:(?: .*?(?: \+(?:\r?\n|\r).*?)*)?$/m,alias:"tag"},attributes:r,hr:{pattern:/^'{3,}$/m,alias:"punctuation"},"page-break":{pattern:/^<{3,}$/m,alias:"punctuation"},admonition:{pattern:/^(?:CAUTION|IMPORTANT|NOTE|TIP|WARNING):/m,alias:"keyword"},callout:[{pattern:/(^[ \t]*)/m,lookbehind:!0,alias:"symbol"},{pattern:/<\d+>/,alias:"symbol"}],macro:{pattern:/\b[a-z\d][a-z\d-]*::?(?:[^\s\[\]]*\[(?:[^\]\\"']|(["'])(?:(?!\1)[^\\]|\\.)*\1|\\.)*\])/,inside:{function:/^[a-z\d-]+(?=:)/,punctuation:/^::?/,attributes:{pattern:/(?:\[(?:[^\]\\"']|(["'])(?:(?!\1)[^\\]|\\.)*\1|\\.)*\])/,inside:r.inside}}},inline:{pattern:/(^|[^\\])(?:(?:\B\[(?:[^\]\\"']|(["'])(?:(?!\2)[^\\]|\\.)*\2|\\.)*\])?(?:\b_(?!\s)(?: _|[^_\\\r\n]|\\.)+(?:(?:\r?\n|\r)(?: _|[^_\\\r\n]|\\.)+)*_\b|\B``(?!\s).+?(?:(?:\r?\n|\r).+?)*''\B|\B`(?!\s)(?:[^`'\s]|\s+\S)+['`]\B|\B(['*+#])(?!\s)(?: \3|(?!\3)[^\\\r\n]|\\.)+(?:(?:\r?\n|\r)(?: \3|(?!\3)[^\\\r\n]|\\.)+)*\3\B)|(?:\[(?:[^\]\\"']|(["'])(?:(?!\4)[^\\]|\\.)*\4|\\.)*\])?(?:(__|\*\*|\+\+\+?|##|\$\$|[~^]).+?(?:(?:\r?\n|\r).+?)*\5|\{[^}\r\n]+\}|\[\[\[?.+?(?:(?:\r?\n|\r).+?)*\]?\]\]|<<.+?(?:(?:\r?\n|\r).+?)*>>|\(\(\(?.+?(?:(?:\r?\n|\r).+?)*\)?\)\)))/m,lookbehind:!0,inside:{attributes:r,url:{pattern:/^(?:\[\[\[?.+?\]?\]\]|<<.+?>>)$/,inside:{punctuation:/^(?:\[\[\[?|<<)|(?:\]\]\]?|>>)$/}},"attribute-ref":{pattern:/^\{.+\}$/,inside:{variable:{pattern:/(^\{)[a-z\d,+_-]+/,lookbehind:!0},operator:/^[=?!#%@$]|!(?=[:}])/,punctuation:/^\{|\}$|::?/}},italic:{pattern:/^(['_])[\s\S]+\1$/,inside:{punctuation:/^(?:''?|__?)|(?:''?|__?)$/}},bold:{pattern:/^\*[\s\S]+\*$/,inside:{punctuation:/^\*\*?|\*\*?$/}},punctuation:/^(?:``?|\+{1,3}|##?|\$\$|[~^]|\(\(\(?)|(?:''?|\+{1,3}|##?|\$\$|[~^`]|\)?\)\))$/}},replacement:{pattern:/\((?:C|R|TM)\)/,alias:"builtin"},entity:/&#?[\da-z]{1,8};/i,"line-continuation":{pattern:/(^| )\+$/m,lookbehind:!0,alias:"punctuation"}};function i(o){o=o.split(" ");for(var l={},u=0,d=o.length;u>=?|<<=?|&&?|\|\|?|[-+*/%&|^!=<>?]=?/,punctuation:/[(),:]/}}return qN}var HN,Tq;function U_(){if(Tq)return HN;Tq=1,HN=e,e.displayName="csharp",e.aliases=["dotnet","cs"];function e(t){(function(n){function r(Y,ie){return Y.replace(/<<(\d+)>>/g,function(J,ee){return"(?:"+ie[+ee]+")"})}function a(Y,ie,J){return RegExp(r(Y,ie),"")}function i(Y,ie){for(var J=0;J>/g,function(){return"(?:"+Y+")"});return Y.replace(/<>/g,"[^\\s\\S]")}var o={type:"bool byte char decimal double dynamic float int long object sbyte short string uint ulong ushort var void",typeDeclaration:"class enum interface record struct",contextual:"add alias and ascending async await by descending from(?=\\s*(?:\\w|$)) get global group into init(?=\\s*;) join let nameof not notnull on or orderby partial remove select set unmanaged value when where with(?=\\s*{)",other:"abstract as base break case catch checked const continue default delegate do else event explicit extern finally fixed for foreach goto if implicit in internal is lock namespace new null operator out override params private protected public readonly ref return sealed sizeof stackalloc static switch this throw try typeof unchecked unsafe using virtual volatile while yield"};function l(Y){return"\\b(?:"+Y.trim().replace(/ /g,"|")+")\\b"}var u=l(o.typeDeclaration),d=RegExp(l(o.type+" "+o.typeDeclaration+" "+o.contextual+" "+o.other)),f=l(o.typeDeclaration+" "+o.contextual+" "+o.other),g=l(o.type+" "+o.typeDeclaration+" "+o.other),y=i(/<(?:[^<>;=+\-*/%&|^]|<>)*>/.source,2),h=i(/\((?:[^()]|<>)*\)/.source,2),v=/@?\b[A-Za-z_]\w*\b/.source,E=r(/<<0>>(?:\s*<<1>>)?/.source,[v,y]),T=r(/(?!<<0>>)<<1>>(?:\s*\.\s*<<1>>)*/.source,[f,E]),C=/\[\s*(?:,\s*)*\]/.source,k=r(/<<0>>(?:\s*(?:\?\s*)?<<1>>)*(?:\s*\?)?/.source,[T,C]),_=r(/[^,()<>[\];=+\-*/%&|^]|<<0>>|<<1>>|<<2>>/.source,[y,h,C]),A=r(/\(<<0>>+(?:,<<0>>+)+\)/.source,[_]),P=r(/(?:<<0>>|<<1>>)(?:\s*(?:\?\s*)?<<2>>)*(?:\s*\?)?/.source,[A,T,C]),N={keyword:d,punctuation:/[<>()?,.:[\]]/},I=/'(?:[^\r\n'\\]|\\.|\\[Uux][\da-fA-F]{1,8})'/.source,L=/"(?:\\.|[^\\"\r\n])*"/.source,j=/@"(?:""|\\[\s\S]|[^\\"])*"(?!")/.source;n.languages.csharp=n.languages.extend("clike",{string:[{pattern:a(/(^|[^$\\])<<0>>/.source,[j]),lookbehind:!0,greedy:!0},{pattern:a(/(^|[^@$\\])<<0>>/.source,[L]),lookbehind:!0,greedy:!0}],"class-name":[{pattern:a(/(\busing\s+static\s+)<<0>>(?=\s*;)/.source,[T]),lookbehind:!0,inside:N},{pattern:a(/(\busing\s+<<0>>\s*=\s*)<<1>>(?=\s*;)/.source,[v,P]),lookbehind:!0,inside:N},{pattern:a(/(\busing\s+)<<0>>(?=\s*=)/.source,[v]),lookbehind:!0},{pattern:a(/(\b<<0>>\s+)<<1>>/.source,[u,E]),lookbehind:!0,inside:N},{pattern:a(/(\bcatch\s*\(\s*)<<0>>/.source,[T]),lookbehind:!0,inside:N},{pattern:a(/(\bwhere\s+)<<0>>/.source,[v]),lookbehind:!0},{pattern:a(/(\b(?:is(?:\s+not)?|as)\s+)<<0>>/.source,[k]),lookbehind:!0,inside:N},{pattern:a(/\b<<0>>(?=\s+(?!<<1>>|with\s*\{)<<2>>(?:\s*[=,;:{)\]]|\s+(?:in|when)\b))/.source,[P,g,v]),inside:N}],keyword:d,number:/(?:\b0(?:x[\da-f_]*[\da-f]|b[01_]*[01])|(?:\B\.\d+(?:_+\d+)*|\b\d+(?:_+\d+)*(?:\.\d+(?:_+\d+)*)?)(?:e[-+]?\d+(?:_+\d+)*)?)(?:[dflmu]|lu|ul)?\b/i,operator:/>>=?|<<=?|[-=]>|([-+&|])\1|~|\?\?=?|[-+*/%&|^!=<>]=?/,punctuation:/\?\.?|::|[{}[\];(),.:]/}),n.languages.insertBefore("csharp","number",{range:{pattern:/\.\./,alias:"operator"}}),n.languages.insertBefore("csharp","punctuation",{"named-parameter":{pattern:a(/([(,]\s*)<<0>>(?=\s*:)/.source,[v]),lookbehind:!0,alias:"punctuation"}}),n.languages.insertBefore("csharp","class-name",{namespace:{pattern:a(/(\b(?:namespace|using)\s+)<<0>>(?:\s*\.\s*<<0>>)*(?=\s*[;{])/.source,[v]),lookbehind:!0,inside:{punctuation:/\./}},"type-expression":{pattern:a(/(\b(?:default|sizeof|typeof)\s*\(\s*(?!\s))(?:[^()\s]|\s(?!\s)|<<0>>)*(?=\s*\))/.source,[h]),lookbehind:!0,alias:"class-name",inside:N},"return-type":{pattern:a(/<<0>>(?=\s+(?:<<1>>\s*(?:=>|[({]|\.\s*this\s*\[)|this\s*\[))/.source,[P,T]),inside:N,alias:"class-name"},"constructor-invocation":{pattern:a(/(\bnew\s+)<<0>>(?=\s*[[({])/.source,[P]),lookbehind:!0,inside:N,alias:"class-name"},"generic-method":{pattern:a(/<<0>>\s*<<1>>(?=\s*\()/.source,[v,y]),inside:{function:a(/^<<0>>/.source,[v]),generic:{pattern:RegExp(y),alias:"class-name",inside:N}}},"type-list":{pattern:a(/\b((?:<<0>>\s+<<1>>|record\s+<<1>>\s*<<5>>|where\s+<<2>>)\s*:\s*)(?:<<3>>|<<4>>|<<1>>\s*<<5>>|<<6>>)(?:\s*,\s*(?:<<3>>|<<4>>|<<6>>))*(?=\s*(?:where|[{;]|=>|$))/.source,[u,E,v,P,d.source,h,/\bnew\s*\(\s*\)/.source]),lookbehind:!0,inside:{"record-arguments":{pattern:a(/(^(?!new\s*\()<<0>>\s*)<<1>>/.source,[E,h]),lookbehind:!0,greedy:!0,inside:n.languages.csharp},keyword:d,"class-name":{pattern:RegExp(P),greedy:!0,inside:N},punctuation:/[,()]/}},preprocessor:{pattern:/(^[\t ]*)#.*/m,lookbehind:!0,alias:"property",inside:{directive:{pattern:/(#)\b(?:define|elif|else|endif|endregion|error|if|line|nullable|pragma|region|undef|warning)\b/,lookbehind:!0,alias:"keyword"}}}});var z=L+"|"+I,Q=r(/\/(?![*/])|\/\/[^\r\n]*[\r\n]|\/\*(?:[^*]|\*(?!\/))*\*\/|<<0>>/.source,[z]),le=i(r(/[^"'/()]|<<0>>|\(<>*\)/.source,[Q]),2),re=/\b(?:assembly|event|field|method|module|param|property|return|type)\b/.source,ge=r(/<<0>>(?:\s*\(<<1>>*\))?/.source,[T,le]);n.languages.insertBefore("csharp","class-name",{attribute:{pattern:a(/((?:^|[^\s\w>)?])\s*\[\s*)(?:<<0>>\s*:\s*)?<<1>>(?:\s*,\s*<<1>>)*(?=\s*\])/.source,[re,ge]),lookbehind:!0,greedy:!0,inside:{target:{pattern:a(/^<<0>>(?=\s*:)/.source,[re]),alias:"keyword"},"attribute-arguments":{pattern:a(/\(<<0>>*\)/.source,[le]),inside:n.languages.csharp},"class-name":{pattern:RegExp(T),inside:{punctuation:/\./}},punctuation:/[:,]/}}});var me=/:[^}\r\n]+/.source,W=i(r(/[^"'/()]|<<0>>|\(<>*\)/.source,[Q]),2),G=r(/\{(?!\{)(?:(?![}:])<<0>>)*<<1>>?\}/.source,[W,me]),q=i(r(/[^"'/()]|\/(?!\*)|\/\*(?:[^*]|\*(?!\/))*\*\/|<<0>>|\(<>*\)/.source,[z]),2),ce=r(/\{(?!\{)(?:(?![}:])<<0>>)*<<1>>?\}/.source,[q,me]);function H(Y,ie){return{interpolation:{pattern:a(/((?:^|[^{])(?:\{\{)*)<<0>>/.source,[Y]),lookbehind:!0,inside:{"format-string":{pattern:a(/(^\{(?:(?![}:])<<0>>)*)<<1>>(?=\}$)/.source,[ie,me]),lookbehind:!0,inside:{punctuation:/^:/}},punctuation:/^\{|\}$/,expression:{pattern:/[\s\S]+/,alias:"language-csharp",inside:n.languages.csharp}}},string:/[\s\S]+/}}n.languages.insertBefore("csharp","string",{"interpolation-string":[{pattern:a(/(^|[^\\])(?:\$@|@\$)"(?:""|\\[\s\S]|\{\{|<<0>>|[^\\{"])*"/.source,[G]),lookbehind:!0,greedy:!0,inside:H(G,W)},{pattern:a(/(^|[^@\\])\$"(?:\\.|\{\{|<<0>>|[^\\"{])*"/.source,[ce]),lookbehind:!0,greedy:!0,inside:H(ce,q)}],char:{pattern:RegExp(I),greedy:!0}}),n.languages.dotnet=n.languages.cs=n.languages.csharp})(t)}return HN}var VN,Cq;function Sje(){if(Cq)return VN;Cq=1;var e=U_();VN=t,t.displayName="aspnet",t.aliases=[];function t(n){n.register(e),n.languages.aspnet=n.languages.extend("markup",{"page-directive":{pattern:/<%\s*@.*%>/,alias:"tag",inside:{"page-directive":{pattern:/<%\s*@\s*(?:Assembly|Control|Implements|Import|Master(?:Type)?|OutputCache|Page|PreviousPageType|Reference|Register)?|%>/i,alias:"tag"},rest:n.languages.markup.tag.inside}},directive:{pattern:/<%.*%>/,alias:"tag",inside:{directive:{pattern:/<%\s*?[$=%#:]{0,2}|%>/,alias:"tag"},rest:n.languages.csharp}}}),n.languages.aspnet.tag.pattern=/<(?!%)\/?[^\s>\/]+(?:\s+[^\s>\/=]+(?:=(?:("|')(?:\\[\s\S]|(?!\1)[^\\])*\1|[^\s'">=]+))?)*\s*\/?>/,n.languages.insertBefore("inside","punctuation",{directive:n.languages.aspnet.directive},n.languages.aspnet.tag.inside["attr-value"]),n.languages.insertBefore("aspnet","comment",{"asp-comment":{pattern:/<%--[\s\S]*?--%>/,alias:["asp","comment"]}}),n.languages.insertBefore("aspnet",n.languages.javascript?"script":"tag",{"asp-script":{pattern:/(]*>)[\s\S]*?(?=<\/script>)/i,lookbehind:!0,alias:["asp","script"],inside:n.languages.csharp||{}}})}return VN}var GN,kq;function Eje(){if(kq)return GN;kq=1,GN=e,e.displayName="autohotkey",e.aliases=[];function e(t){t.languages.autohotkey={comment:[{pattern:/(^|\s);.*/,lookbehind:!0},{pattern:/(^[\t ]*)\/\*(?:[\r\n](?![ \t]*\*\/)|[^\r\n])*(?:[\r\n][ \t]*\*\/)?/m,lookbehind:!0,greedy:!0}],tag:{pattern:/^([ \t]*)[^\s,`":]+(?=:[ \t]*$)/m,lookbehind:!0},string:/"(?:[^"\n\r]|"")*"/,variable:/%\w+%/,number:/\b0x[\dA-Fa-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[Ee]-?\d+)?/,operator:/\?|\/\/?=?|:=|\|[=|]?|&[=&]?|\+[=+]?|-[=-]?|\*[=*]?|<(?:<=?|>|=)?|>>?=?|[.^!=~]=?|\b(?:AND|NOT|OR)\b/,boolean:/\b(?:false|true)\b/,selector:/\b(?:AutoTrim|BlockInput|Break|Click|ClipWait|Continue|Control|ControlClick|ControlFocus|ControlGet|ControlGetFocus|ControlGetPos|ControlGetText|ControlMove|ControlSend|ControlSendRaw|ControlSetText|CoordMode|Critical|DetectHiddenText|DetectHiddenWindows|Drive|DriveGet|DriveSpaceFree|EnvAdd|EnvDiv|EnvGet|EnvMult|EnvSet|EnvSub|EnvUpdate|Exit|ExitApp|FileAppend|FileCopy|FileCopyDir|FileCreateDir|FileCreateShortcut|FileDelete|FileEncoding|FileGetAttrib|FileGetShortcut|FileGetSize|FileGetTime|FileGetVersion|FileInstall|FileMove|FileMoveDir|FileRead|FileReadLine|FileRecycle|FileRecycleEmpty|FileRemoveDir|FileSelectFile|FileSelectFolder|FileSetAttrib|FileSetTime|FormatTime|GetKeyState|Gosub|Goto|GroupActivate|GroupAdd|GroupClose|GroupDeactivate|Gui|GuiControl|GuiControlGet|Hotkey|ImageSearch|IniDelete|IniRead|IniWrite|Input|InputBox|KeyWait|ListHotkeys|ListLines|ListVars|Loop|Menu|MouseClick|MouseClickDrag|MouseGetPos|MouseMove|MsgBox|OnExit|OutputDebug|Pause|PixelGetColor|PixelSearch|PostMessage|Process|Progress|Random|RegDelete|RegRead|RegWrite|Reload|Repeat|Return|Run|RunAs|RunWait|Send|SendEvent|SendInput|SendMessage|SendMode|SendPlay|SendRaw|SetBatchLines|SetCapslockState|SetControlDelay|SetDefaultMouseSpeed|SetEnv|SetFormat|SetKeyDelay|SetMouseDelay|SetNumlockState|SetRegView|SetScrollLockState|SetStoreCapslockMode|SetTimer|SetTitleMatchMode|SetWinDelay|SetWorkingDir|Shutdown|Sleep|Sort|SoundBeep|SoundGet|SoundGetWaveVolume|SoundPlay|SoundSet|SoundSetWaveVolume|SplashImage|SplashTextOff|SplashTextOn|SplitPath|StatusBarGetText|StatusBarWait|StringCaseSense|StringGetPos|StringLeft|StringLen|StringLower|StringMid|StringReplace|StringRight|StringSplit|StringTrimLeft|StringTrimRight|StringUpper|Suspend|SysGet|Thread|ToolTip|Transform|TrayTip|URLDownloadToFile|WinActivate|WinActivateBottom|WinClose|WinGet|WinGetActiveStats|WinGetActiveTitle|WinGetClass|WinGetPos|WinGetText|WinGetTitle|WinHide|WinKill|WinMaximize|WinMenuSelectItem|WinMinimize|WinMinimizeAll|WinMinimizeAllUndo|WinMove|WinRestore|WinSet|WinSetTitle|WinShow|WinWait|WinWaitActive|WinWaitClose|WinWaitNotActive)\b/i,constant:/\b(?:a_ahkpath|a_ahkversion|a_appdata|a_appdatacommon|a_autotrim|a_batchlines|a_caretx|a_carety|a_computername|a_controldelay|a_cursor|a_dd|a_ddd|a_dddd|a_defaultmousespeed|a_desktop|a_desktopcommon|a_detecthiddentext|a_detecthiddenwindows|a_endchar|a_eventinfo|a_exitreason|a_fileencoding|a_formatfloat|a_formatinteger|a_gui|a_guicontrol|a_guicontrolevent|a_guievent|a_guiheight|a_guiwidth|a_guix|a_guiy|a_hour|a_iconfile|a_iconhidden|a_iconnumber|a_icontip|a_index|a_ipaddress1|a_ipaddress2|a_ipaddress3|a_ipaddress4|a_is64bitos|a_isadmin|a_iscompiled|a_iscritical|a_ispaused|a_issuspended|a_isunicode|a_keydelay|a_language|a_lasterror|a_linefile|a_linenumber|a_loopfield|a_loopfileattrib|a_loopfiledir|a_loopfileext|a_loopfilefullpath|a_loopfilelongpath|a_loopfilename|a_loopfileshortname|a_loopfileshortpath|a_loopfilesize|a_loopfilesizekb|a_loopfilesizemb|a_loopfiletimeaccessed|a_loopfiletimecreated|a_loopfiletimemodified|a_loopreadline|a_loopregkey|a_loopregname|a_loopregsubkey|a_loopregtimemodified|a_loopregtype|a_mday|a_min|a_mm|a_mmm|a_mmmm|a_mon|a_mousedelay|a_msec|a_mydocuments|a_now|a_nowutc|a_numbatchlines|a_ostype|a_osversion|a_priorhotkey|a_priorkey|a_programfiles|a_programs|a_programscommon|a_ptrsize|a_regview|a_screendpi|a_screenheight|a_screenwidth|a_scriptdir|a_scriptfullpath|a_scripthwnd|a_scriptname|a_sec|a_space|a_startmenu|a_startmenucommon|a_startup|a_startupcommon|a_stringcasesense|a_tab|a_temp|a_thisfunc|a_thishotkey|a_thislabel|a_thismenu|a_thismenuitem|a_thismenuitempos|a_tickcount|a_timeidle|a_timeidlephysical|a_timesincepriorhotkey|a_timesincethishotkey|a_titlematchmode|a_titlematchmodespeed|a_username|a_wday|a_windelay|a_windir|a_workingdir|a_yday|a_year|a_yweek|a_yyyy|clipboard|clipboardall|comspec|errorlevel|programfiles)\b/i,builtin:/\b(?:abs|acos|asc|asin|atan|ceil|chr|class|comobjactive|comobjarray|comobjconnect|comobjcreate|comobjerror|comobjflags|comobjget|comobjquery|comobjtype|comobjvalue|cos|dllcall|exp|fileexist|Fileopen|floor|format|il_add|il_create|il_destroy|instr|isfunc|islabel|IsObject|ln|log|ltrim|lv_add|lv_delete|lv_deletecol|lv_getcount|lv_getnext|lv_gettext|lv_insert|lv_insertcol|lv_modify|lv_modifycol|lv_setimagelist|mod|numget|numput|onmessage|regexmatch|regexreplace|registercallback|round|rtrim|sb_seticon|sb_setparts|sb_settext|sin|sqrt|strlen|strreplace|strsplit|substr|tan|tv_add|tv_delete|tv_get|tv_getchild|tv_getcount|tv_getnext|tv_getparent|tv_getprev|tv_getselection|tv_gettext|tv_modify|varsetcapacity|winactive|winexist|__Call|__Get|__New|__Set)\b/i,symbol:/\b(?:alt|altdown|altup|appskey|backspace|browser_back|browser_favorites|browser_forward|browser_home|browser_refresh|browser_search|browser_stop|bs|capslock|ctrl|ctrlbreak|ctrldown|ctrlup|del|delete|down|end|enter|esc|escape|f1|f10|f11|f12|f13|f14|f15|f16|f17|f18|f19|f2|f20|f21|f22|f23|f24|f3|f4|f5|f6|f7|f8|f9|home|ins|insert|joy1|joy10|joy11|joy12|joy13|joy14|joy15|joy16|joy17|joy18|joy19|joy2|joy20|joy21|joy22|joy23|joy24|joy25|joy26|joy27|joy28|joy29|joy3|joy30|joy31|joy32|joy4|joy5|joy6|joy7|joy8|joy9|joyaxes|joybuttons|joyinfo|joyname|joypov|joyr|joyu|joyv|joyx|joyy|joyz|lalt|launch_app1|launch_app2|launch_mail|launch_media|lbutton|lcontrol|lctrl|left|lshift|lwin|lwindown|lwinup|mbutton|media_next|media_play_pause|media_prev|media_stop|numlock|numpad0|numpad1|numpad2|numpad3|numpad4|numpad5|numpad6|numpad7|numpad8|numpad9|numpadadd|numpadclear|numpaddel|numpaddiv|numpaddot|numpaddown|numpadend|numpadenter|numpadhome|numpadins|numpadleft|numpadmult|numpadpgdn|numpadpgup|numpadright|numpadsub|numpadup|pgdn|pgup|printscreen|ralt|rbutton|rcontrol|rctrl|right|rshift|rwin|rwindown|rwinup|scrolllock|shift|shiftdown|shiftup|space|tab|up|volume_down|volume_mute|volume_up|wheeldown|wheelleft|wheelright|wheelup|xbutton1|xbutton2)\b/i,important:/#\b(?:AllowSameLineComments|ClipboardTimeout|CommentFlag|DerefChar|ErrorStdOut|EscapeChar|HotkeyInterval|HotkeyModifierTimeout|Hotstring|If|IfTimeout|IfWinActive|IfWinExist|IfWinNotActive|IfWinNotExist|Include|IncludeAgain|InputLevel|InstallKeybdHook|InstallMouseHook|KeyHistory|MaxHotkeysPerInterval|MaxMem|MaxThreads|MaxThreadsBuffer|MaxThreadsPerHotkey|MenuMaskKey|NoEnv|NoTrayIcon|Persistent|SingleInstance|UseHook|Warn|WinActivateForce)\b/i,keyword:/\b(?:Abort|AboveNormal|Add|ahk_class|ahk_exe|ahk_group|ahk_id|ahk_pid|All|Alnum|Alpha|AltSubmit|AltTab|AltTabAndMenu|AltTabMenu|AltTabMenuDismiss|AlwaysOnTop|AutoSize|Background|BackgroundTrans|BelowNormal|between|BitAnd|BitNot|BitOr|BitShiftLeft|BitShiftRight|BitXOr|Bold|Border|Button|ByRef|Catch|Checkbox|Checked|CheckedGray|Choose|ChooseString|Close|Color|ComboBox|Contains|ControlList|Count|Date|DateTime|Days|DDL|Default|DeleteAll|Delimiter|Deref|Destroy|Digit|Disable|Disabled|DropDownList|Edit|Eject|Else|Enable|Enabled|Error|Exist|Expand|ExStyle|FileSystem|Finally|First|Flash|Float|FloatFast|Focus|Font|for|global|Grid|Group|GroupBox|GuiClose|GuiContextMenu|GuiDropFiles|GuiEscape|GuiSize|Hdr|Hidden|Hide|High|HKCC|HKCR|HKCU|HKEY_CLASSES_ROOT|HKEY_CURRENT_CONFIG|HKEY_CURRENT_USER|HKEY_LOCAL_MACHINE|HKEY_USERS|HKLM|HKU|Hours|HScroll|Icon|IconSmall|ID|IDLast|If|IfEqual|IfExist|IfGreater|IfGreaterOrEqual|IfInString|IfLess|IfLessOrEqual|IfMsgBox|IfNotEqual|IfNotExist|IfNotInString|IfWinActive|IfWinExist|IfWinNotActive|IfWinNotExist|Ignore|ImageList|in|Integer|IntegerFast|Interrupt|is|italic|Join|Label|LastFound|LastFoundExist|Limit|Lines|List|ListBox|ListView|local|Lock|Logoff|Low|Lower|Lowercase|MainWindow|Margin|Maximize|MaximizeBox|MaxSize|Minimize|MinimizeBox|MinMax|MinSize|Minutes|MonthCal|Mouse|Move|Multi|NA|No|NoActivate|NoDefault|NoHide|NoIcon|NoMainWindow|norm|Normal|NoSort|NoSortHdr|NoStandard|Not|NoTab|NoTimers|Number|Off|Ok|On|OwnDialogs|Owner|Parse|Password|Picture|Pixel|Pos|Pow|Priority|ProcessName|Radio|Range|Read|ReadOnly|Realtime|Redraw|Region|REG_BINARY|REG_DWORD|REG_EXPAND_SZ|REG_MULTI_SZ|REG_SZ|Relative|Rename|Report|Resize|Restore|Retry|RGB|Screen|Seconds|Section|Serial|SetLabel|ShiftAltTab|Show|Single|Slider|SortDesc|Standard|static|Status|StatusBar|StatusCD|strike|Style|Submit|SysMenu|Tab2|TabStop|Text|Theme|Throw|Tile|ToggleCheck|ToggleEnable|ToolWindow|Top|Topmost|TransColor|Transparent|Tray|TreeView|Try|TryAgain|Type|UnCheck|underline|Unicode|Unlock|Until|UpDown|Upper|Uppercase|UseErrorLevel|Vis|VisFirst|Visible|VScroll|Wait|WaitClose|WantCtrlA|WantF2|WantReturn|While|Wrap|Xdigit|xm|xp|xs|Yes|ym|yp|ys)\b/i,function:/[^(); \t,\n+*\-=?>:\\\/<&%\[\]]+(?=\()/,punctuation:/[{}[\]():,]/}}return GN}var YN,xq;function Tje(){if(xq)return YN;xq=1,YN=e,e.displayName="autoit",e.aliases=[];function e(t){t.languages.autoit={comment:[/;.*/,{pattern:/(^[\t ]*)#(?:comments-start|cs)[\s\S]*?^[ \t]*#(?:ce|comments-end)/m,lookbehind:!0}],url:{pattern:/(^[\t ]*#include\s+)(?:<[^\r\n>]+>|"[^\r\n"]+")/m,lookbehind:!0},string:{pattern:/(["'])(?:\1\1|(?!\1)[^\r\n])*\1/,greedy:!0,inside:{variable:/([%$@])\w+\1/}},directive:{pattern:/(^[\t ]*)#[\w-]+/m,lookbehind:!0,alias:"keyword"},function:/\b\w+(?=\()/,variable:/[$@]\w+/,keyword:/\b(?:Case|Const|Continue(?:Case|Loop)|Default|Dim|Do|Else(?:If)?|End(?:Func|If|Select|Switch|With)|Enum|Exit(?:Loop)?|For|Func|Global|If|In|Local|Next|Null|ReDim|Select|Static|Step|Switch|Then|To|Until|Volatile|WEnd|While|With)\b/i,number:/\b(?:0x[\da-f]+|\d+(?:\.\d+)?(?:e[+-]?\d+)?)\b/i,boolean:/\b(?:False|True)\b/i,operator:/<[=>]?|[-+*\/=&>]=?|[?^]|\b(?:And|Not|Or)\b/i,punctuation:/[\[\]().,:]/}}return YN}var KN,_q;function Cje(){if(_q)return KN;_q=1,KN=e,e.displayName="avisynth",e.aliases=["avs"];function e(t){(function(n){function r(f,g){return f.replace(/<<(\d+)>>/g,function(y,h){return g[+h]})}function a(f,g,y){return RegExp(r(f,g),y)}var i=/bool|clip|float|int|string|val/.source,o=[/is(?:bool|clip|float|int|string)|defined|(?:(?:internal)?function|var)?exists?/.source,/apply|assert|default|eval|import|nop|select|undefined/.source,/opt_(?:allowfloataudio|avipadscanlines|dwchannelmask|enable_(?:b64a|planartopackedrgb|v210|y3_10_10|y3_10_16)|usewaveextensible|vdubplanarhack)|set(?:cachemode|maxcpu|memorymax|planarlegacyalignment|workingdir)/.source,/hex(?:value)?|value/.source,/abs|ceil|continued(?:denominator|numerator)?|exp|floor|fmod|frac|log(?:10)?|max|min|muldiv|pi|pow|rand|round|sign|spline|sqrt/.source,/a?sinh?|a?cosh?|a?tan[2h]?/.source,/(?:bit(?:and|not|x?or|[lr]?shift[aslu]?|sh[lr]|sa[lr]|[lr]rotatel?|ro[rl]|te?st|set(?:count)?|cl(?:ea)?r|ch(?:an)?ge?))/.source,/average(?:[bgr]|chroma[uv]|luma)|(?:[rgb]|chroma[uv]|luma|rgb|[yuv](?=difference(?:fromprevious|tonext)))difference(?:fromprevious|tonext)?|[yuvrgb]plane(?:median|min|max|minmaxdifference)/.source,/getprocessinfo|logmsg|script(?:dir(?:utf8)?|file(?:utf8)?|name(?:utf8)?)|setlogparams/.source,/chr|(?:fill|find|left|mid|replace|rev|right)str|format|[lu]case|ord|str(?:cmpi?|fromutf8|len|toutf8)|time|trim(?:all|left|right)/.source,/isversionorgreater|version(?:number|string)/.source,/buildpixeltype|colorspacenametopixeltype/.source,/addautoloaddir|on(?:cpu|cuda)|prefetch|setfiltermtmode/.source].join("|"),l=[/has(?:audio|video)/.source,/height|width/.source,/frame(?:count|rate)|framerate(?:denominator|numerator)/.source,/getparity|is(?:field|frame)based/.source,/bitspercomponent|componentsize|hasalpha|is(?:planar(?:rgba?)?|interleaved|rgb(?:24|32|48|64)?|y(?:8|u(?:va?|y2))?|yv(?:12|16|24|411)|420|422|444|packedrgb)|numcomponents|pixeltype/.source,/audio(?:bits|channels|duration|length(?:[fs]|hi|lo)?|rate)|isaudio(?:float|int)/.source].join("|"),u=[/avi(?:file)?source|directshowsource|image(?:reader|source|sourceanim)|opendmlsource|segmented(?:avisource|directshowsource)|wavsource/.source,/coloryuv|convertbacktoyuy2|convertto(?:RGB(?:24|32|48|64)|(?:planar)?RGBA?|Y8?|YV(?:12|16|24|411)|YUVA?(?:411|420|422|444)|YUY2)|fixluminance|gr[ae]yscale|invert|levels|limiter|mergea?rgb|merge(?:chroma|luma)|rgbadjust|show(?:alpha|blue|green|red)|swapuv|tweak|[uv]toy8?|ytouv/.source,/(?:colorkey|reset)mask|layer|mask(?:hs)?|merge|overlay|subtract/.source,/addborders|(?:bicubic|bilinear|blackman|gauss|lanczos4|lanczos|point|sinc|spline(?:16|36|64))resize|crop(?:bottom)?|flip(?:horizontal|vertical)|(?:horizontal|vertical)?reduceby2|letterbox|skewrows|turn(?:180|left|right)/.source,/blur|fixbrokenchromaupsampling|generalconvolution|(?:spatial|temporal)soften|sharpen/.source,/trim|(?:un)?alignedsplice|(?:assume|assumescaled|change|convert)FPS|(?:delete|duplicate)frame|dissolve|fade(?:in|io|out)[02]?|freezeframe|interleave|loop|reverse|select(?:even|odd|(?:range)?every)/.source,/assume[bt]ff|assume(?:field|frame)based|bob|complementparity|doubleweave|peculiarblend|pulldown|separate(?:columns|fields|rows)|swapfields|weave(?:columns|rows)?/.source,/amplify(?:db)?|assumesamplerate|audiodub(?:ex)?|audiotrim|convertaudioto(?:(?:8|16|24|32)bit|float)|converttomono|delayaudio|ensurevbrmp3sync|get(?:left|right)?channel|kill(?:audio|video)|mergechannels|mixaudio|monotostereo|normalize|resampleaudio|ssrc|supereq|timestretch/.source,/animate|applyrange|conditional(?:filter|reader|select)|frameevaluate|scriptclip|tcp(?:server|source)|writefile(?:end|if|start)?/.source,/imagewriter/.source,/blackness|blankclip|colorbars(?:hd)?|compare|dumpfiltergraph|echo|histogram|info|messageclip|preroll|setgraphanalysis|show(?:framenumber|smpte|time)|showfiveversions|stack(?:horizontal|vertical)|subtitle|tone|version/.source].join("|"),d=[o,l,u].join("|");n.languages.avisynth={comment:[{pattern:/(^|[^\\])\[\*(?:[^\[*]|\[(?!\*)|\*(?!\])|\[\*(?:[^\[*]|\[(?!\*)|\*(?!\]))*\*\])*\*\]/,lookbehind:!0,greedy:!0},{pattern:/(^|[^\\])\/\*[\s\S]*?(?:\*\/|$)/,lookbehind:!0,greedy:!0},{pattern:/(^|[^\\$])#.*/,lookbehind:!0,greedy:!0}],argument:{pattern:a(/\b(?:<<0>>)\s+("?)\w+\1/.source,[i],"i"),inside:{keyword:/^\w+/}},"argument-label":{pattern:/([,(][\s\\]*)\w+\s*=(?!=)/,lookbehind:!0,inside:{"argument-name":{pattern:/^\w+/,alias:"punctuation"},punctuation:/=$/}},string:[{pattern:/"""[\s\S]*?"""/,greedy:!0},{pattern:/"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"/,greedy:!0,inside:{constant:{pattern:/\b(?:DEFAULT_MT_MODE|(?:MAINSCRIPT|PROGRAM|SCRIPT)DIR|(?:MACHINE|USER)_(?:CLASSIC|PLUS)_PLUGINS)\b/}}}],variable:/\b(?:last)\b/i,boolean:/\b(?:false|no|true|yes)\b/i,keyword:/\b(?:catch|else|for|function|global|if|return|try|while|__END__)\b/i,constant:/\bMT_(?:MULTI_INSTANCE|NICE_FILTER|SERIALIZED|SPECIAL_MT)\b/,"builtin-function":{pattern:a(/\b(?:<<0>>)\b/.source,[d],"i"),alias:"function"},"type-cast":{pattern:a(/\b(?:<<0>>)(?=\s*\()/.source,[i],"i"),alias:"keyword"},function:{pattern:/\b[a-z_]\w*(?=\s*\()|(\.)[a-z_]\w*\b/i,lookbehind:!0},"line-continuation":{pattern:/(^[ \t]*)\\|\\(?=[ \t]*$)/m,lookbehind:!0,alias:"punctuation"},number:/\B\$(?:[\da-f]{6}|[\da-f]{8})\b|(?:(?:\b|\B-)\d+(?:\.\d*)?\b|\B\.\d+\b)/i,operator:/\+\+?|[!=<>]=?|&&|\|\||[?:*/%-]/,punctuation:/[{}\[\]();,.]/},n.languages.avs=n.languages.avisynth})(t)}return KN}var XN,Oq;function kje(){if(Oq)return XN;Oq=1,XN=e,e.displayName="avroIdl",e.aliases=[];function e(t){t.languages["avro-idl"]={comment:{pattern:/\/\/.*|\/\*[\s\S]*?\*\//,greedy:!0},string:{pattern:/(^|[^\\])"(?:[^\r\n"\\]|\\.)*"/,lookbehind:!0,greedy:!0},annotation:{pattern:/@(?:[$\w.-]|`[^\r\n`]+`)+/,greedy:!0,alias:"function"},"function-identifier":{pattern:/`[^\r\n`]+`(?=\s*\()/,greedy:!0,alias:"function"},identifier:{pattern:/`[^\r\n`]+`/,greedy:!0},"class-name":{pattern:/(\b(?:enum|error|protocol|record|throws)\b\s+)[$\w]+/,lookbehind:!0,greedy:!0},keyword:/\b(?:array|boolean|bytes|date|decimal|double|enum|error|false|fixed|float|idl|import|int|local_timestamp_ms|long|map|null|oneway|protocol|record|schema|string|throws|time_ms|timestamp_ms|true|union|uuid|void)\b/,function:/\b[a-z_]\w*(?=\s*\()/i,number:[{pattern:/(^|[^\w.])-?(?:(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?|0x(?:[a-f0-9]+(?:\.[a-f0-9]*)?|\.[a-f0-9]+)(?:p[+-]?\d+)?)[dfl]?(?![\w.])/i,lookbehind:!0},/-?\b(?:Infinity|NaN)\b/],operator:/=/,punctuation:/[()\[\]{}<>.:,;-]/},t.languages.avdl=t.languages["avro-idl"]}return XN}var QN,Rq;function vre(){if(Rq)return QN;Rq=1,QN=e,e.displayName="bash",e.aliases=["shell"];function e(t){(function(n){var r="\\b(?:BASH|BASHOPTS|BASH_ALIASES|BASH_ARGC|BASH_ARGV|BASH_CMDS|BASH_COMPLETION_COMPAT_DIR|BASH_LINENO|BASH_REMATCH|BASH_SOURCE|BASH_VERSINFO|BASH_VERSION|COLORTERM|COLUMNS|COMP_WORDBREAKS|DBUS_SESSION_BUS_ADDRESS|DEFAULTS_PATH|DESKTOP_SESSION|DIRSTACK|DISPLAY|EUID|GDMSESSION|GDM_LANG|GNOME_KEYRING_CONTROL|GNOME_KEYRING_PID|GPG_AGENT_INFO|GROUPS|HISTCONTROL|HISTFILE|HISTFILESIZE|HISTSIZE|HOME|HOSTNAME|HOSTTYPE|IFS|INSTANCE|JOB|LANG|LANGUAGE|LC_ADDRESS|LC_ALL|LC_IDENTIFICATION|LC_MEASUREMENT|LC_MONETARY|LC_NAME|LC_NUMERIC|LC_PAPER|LC_TELEPHONE|LC_TIME|LESSCLOSE|LESSOPEN|LINES|LOGNAME|LS_COLORS|MACHTYPE|MAILCHECK|MANDATORY_PATH|NO_AT_BRIDGE|OLDPWD|OPTERR|OPTIND|ORBIT_SOCKETDIR|OSTYPE|PAPERSIZE|PATH|PIPESTATUS|PPID|PS1|PS2|PS3|PS4|PWD|RANDOM|REPLY|SECONDS|SELINUX_INIT|SESSION|SESSIONTYPE|SESSION_MANAGER|SHELL|SHELLOPTS|SHLVL|SSH_AUTH_SOCK|TERM|UID|UPSTART_EVENTS|UPSTART_INSTANCE|UPSTART_JOB|UPSTART_SESSION|USER|WINDOWID|XAUTHORITY|XDG_CONFIG_DIRS|XDG_CURRENT_DESKTOP|XDG_DATA_DIRS|XDG_GREETER_DATA_DIR|XDG_MENU_PREFIX|XDG_RUNTIME_DIR|XDG_SEAT|XDG_SEAT_PATH|XDG_SESSION_DESKTOP|XDG_SESSION_ID|XDG_SESSION_PATH|XDG_SESSION_TYPE|XDG_VTNR|XMODIFIERS)\\b",a={pattern:/(^(["']?)\w+\2)[ \t]+\S.*/,lookbehind:!0,alias:"punctuation",inside:null},i={bash:a,environment:{pattern:RegExp("\\$"+r),alias:"constant"},variable:[{pattern:/\$?\(\([\s\S]+?\)\)/,greedy:!0,inside:{variable:[{pattern:/(^\$\(\([\s\S]+)\)\)/,lookbehind:!0},/^\$\(\(/],number:/\b0x[\dA-Fa-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[Ee]-?\d+)?/,operator:/--|\+\+|\*\*=?|<<=?|>>=?|&&|\|\||[=!+\-*/%<>^&|]=?|[?~:]/,punctuation:/\(\(?|\)\)?|,|;/}},{pattern:/\$\((?:\([^)]+\)|[^()])+\)|`[^`]+`/,greedy:!0,inside:{variable:/^\$\(|^`|\)$|`$/}},{pattern:/\$\{[^}]+\}/,greedy:!0,inside:{operator:/:[-=?+]?|[!\/]|##?|%%?|\^\^?|,,?/,punctuation:/[\[\]]/,environment:{pattern:RegExp("(\\{)"+r),lookbehind:!0,alias:"constant"}}},/\$(?:\w+|[#?*!@$])/],entity:/\\(?:[abceEfnrtv\\"]|O?[0-7]{1,3}|U[0-9a-fA-F]{8}|u[0-9a-fA-F]{4}|x[0-9a-fA-F]{1,2})/};n.languages.bash={shebang:{pattern:/^#!\s*\/.*/,alias:"important"},comment:{pattern:/(^|[^"{\\$])#.*/,lookbehind:!0},"function-name":[{pattern:/(\bfunction\s+)[\w-]+(?=(?:\s*\(?:\s*\))?\s*\{)/,lookbehind:!0,alias:"function"},{pattern:/\b[\w-]+(?=\s*\(\s*\)\s*\{)/,alias:"function"}],"for-or-select":{pattern:/(\b(?:for|select)\s+)\w+(?=\s+in\s)/,alias:"variable",lookbehind:!0},"assign-left":{pattern:/(^|[\s;|&]|[<>]\()\w+(?=\+?=)/,inside:{environment:{pattern:RegExp("(^|[\\s;|&]|[<>]\\()"+r),lookbehind:!0,alias:"constant"}},alias:"variable",lookbehind:!0},string:[{pattern:/((?:^|[^<])<<-?\s*)(\w+)\s[\s\S]*?(?:\r?\n|\r)\2/,lookbehind:!0,greedy:!0,inside:i},{pattern:/((?:^|[^<])<<-?\s*)(["'])(\w+)\2\s[\s\S]*?(?:\r?\n|\r)\3/,lookbehind:!0,greedy:!0,inside:{bash:a}},{pattern:/(^|[^\\](?:\\\\)*)"(?:\\[\s\S]|\$\([^)]+\)|\$(?!\()|`[^`]+`|[^"\\`$])*"/,lookbehind:!0,greedy:!0,inside:i},{pattern:/(^|[^$\\])'[^']*'/,lookbehind:!0,greedy:!0},{pattern:/\$'(?:[^'\\]|\\[\s\S])*'/,greedy:!0,inside:{entity:i.entity}}],environment:{pattern:RegExp("\\$?"+r),alias:"constant"},variable:i.variable,function:{pattern:/(^|[\s;|&]|[<>]\()(?:add|apropos|apt|apt-cache|apt-get|aptitude|aspell|automysqlbackup|awk|basename|bash|bc|bconsole|bg|bzip2|cal|cat|cfdisk|chgrp|chkconfig|chmod|chown|chroot|cksum|clear|cmp|column|comm|composer|cp|cron|crontab|csplit|curl|cut|date|dc|dd|ddrescue|debootstrap|df|diff|diff3|dig|dir|dircolors|dirname|dirs|dmesg|docker|docker-compose|du|egrep|eject|env|ethtool|expand|expect|expr|fdformat|fdisk|fg|fgrep|file|find|fmt|fold|format|free|fsck|ftp|fuser|gawk|git|gparted|grep|groupadd|groupdel|groupmod|groups|grub-mkconfig|gzip|halt|head|hg|history|host|hostname|htop|iconv|id|ifconfig|ifdown|ifup|import|install|ip|jobs|join|kill|killall|less|link|ln|locate|logname|logrotate|look|lpc|lpr|lprint|lprintd|lprintq|lprm|ls|lsof|lynx|make|man|mc|mdadm|mkconfig|mkdir|mke2fs|mkfifo|mkfs|mkisofs|mknod|mkswap|mmv|more|most|mount|mtools|mtr|mutt|mv|nano|nc|netstat|nice|nl|node|nohup|notify-send|npm|nslookup|op|open|parted|passwd|paste|pathchk|ping|pkill|pnpm|podman|podman-compose|popd|pr|printcap|printenv|ps|pushd|pv|quota|quotacheck|quotactl|ram|rar|rcp|reboot|remsync|rename|renice|rev|rm|rmdir|rpm|rsync|scp|screen|sdiff|sed|sendmail|seq|service|sftp|sh|shellcheck|shuf|shutdown|sleep|slocate|sort|split|ssh|stat|strace|su|sudo|sum|suspend|swapon|sync|tac|tail|tar|tee|time|timeout|top|touch|tr|traceroute|tsort|tty|umount|uname|unexpand|uniq|units|unrar|unshar|unzip|update-grub|uptime|useradd|userdel|usermod|users|uudecode|uuencode|v|vcpkg|vdir|vi|vim|virsh|vmstat|wait|watch|wc|wget|whereis|which|who|whoami|write|xargs|xdg-open|yarn|yes|zenity|zip|zsh|zypper)(?=$|[)\s;|&])/,lookbehind:!0},keyword:{pattern:/(^|[\s;|&]|[<>]\()(?:case|do|done|elif|else|esac|fi|for|function|if|in|select|then|until|while)(?=$|[)\s;|&])/,lookbehind:!0},builtin:{pattern:/(^|[\s;|&]|[<>]\()(?:\.|:|alias|bind|break|builtin|caller|cd|command|continue|declare|echo|enable|eval|exec|exit|export|getopts|hash|help|let|local|logout|mapfile|printf|pwd|read|readarray|readonly|return|set|shift|shopt|source|test|times|trap|type|typeset|ulimit|umask|unalias|unset)(?=$|[)\s;|&])/,lookbehind:!0,alias:"class-name"},boolean:{pattern:/(^|[\s;|&]|[<>]\()(?:false|true)(?=$|[)\s;|&])/,lookbehind:!0},"file-descriptor":{pattern:/\B&\d\b/,alias:"important"},operator:{pattern:/\d?<>|>\||\+=|=[=~]?|!=?|<<[<-]?|[&\d]?>>|\d[<>]&?|[<>][&=]?|&[>&]?|\|[&|]?/,inside:{"file-descriptor":{pattern:/^\d/,alias:"important"}}},punctuation:/\$?\(\(?|\)\)?|\.\.|[{}[\];\\]/,number:{pattern:/(^|\s)(?:[1-9]\d*|0)(?:[.,]\d+)?\b/,lookbehind:!0}},a.inside=n.languages.bash;for(var o=["comment","function-name","for-or-select","assign-left","string","environment","function","keyword","builtin","boolean","file-descriptor","operator","punctuation","number"],l=i.variable[1].inside,u=0;u?^\w +\-.])*"/,greedy:!0},number:/(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:E[+-]?\d+)?/i,keyword:/\b(?:AS|BEEP|BLOAD|BSAVE|CALL(?: ABSOLUTE)?|CASE|CHAIN|CHDIR|CLEAR|CLOSE|CLS|COM|COMMON|CONST|DATA|DECLARE|DEF(?: FN| SEG|DBL|INT|LNG|SNG|STR)|DIM|DO|DOUBLE|ELSE|ELSEIF|END|ENVIRON|ERASE|ERROR|EXIT|FIELD|FILES|FOR|FUNCTION|GET|GOSUB|GOTO|IF|INPUT|INTEGER|IOCTL|KEY|KILL|LINE INPUT|LOCATE|LOCK|LONG|LOOP|LSET|MKDIR|NAME|NEXT|OFF|ON(?: COM| ERROR| KEY| TIMER)?|OPEN|OPTION BASE|OUT|POKE|PUT|READ|REDIM|REM|RESTORE|RESUME|RETURN|RMDIR|RSET|RUN|SELECT CASE|SHARED|SHELL|SINGLE|SLEEP|STATIC|STEP|STOP|STRING|SUB|SWAP|SYSTEM|THEN|TIMER|TO|TROFF|TRON|TYPE|UNLOCK|UNTIL|USING|VIEW PRINT|WAIT|WEND|WHILE|WRITE)(?:\$|\b)/i,function:/\b(?:ABS|ACCESS|ACOS|ANGLE|AREA|ARITHMETIC|ARRAY|ASIN|ASK|AT|ATN|BASE|BEGIN|BREAK|CAUSE|CEIL|CHR|CLIP|COLLATE|COLOR|CON|COS|COSH|COT|CSC|DATE|DATUM|DEBUG|DECIMAL|DEF|DEG|DEGREES|DELETE|DET|DEVICE|DISPLAY|DOT|ELAPSED|EPS|ERASABLE|EXLINE|EXP|EXTERNAL|EXTYPE|FILETYPE|FIXED|FP|GO|GRAPH|HANDLER|IDN|IMAGE|IN|INT|INTERNAL|IP|IS|KEYED|LBOUND|LCASE|LEFT|LEN|LENGTH|LET|LINE|LINES|LOG|LOG10|LOG2|LTRIM|MARGIN|MAT|MAX|MAXNUM|MID|MIN|MISSING|MOD|NATIVE|NUL|NUMERIC|OF|OPTION|ORD|ORGANIZATION|OUTIN|OUTPUT|PI|POINT|POINTER|POINTS|POS|PRINT|PROGRAM|PROMPT|RAD|RADIANS|RANDOMIZE|RECORD|RECSIZE|RECTYPE|RELATIVE|REMAINDER|REPEAT|REST|RETRY|REWRITE|RIGHT|RND|ROUND|RTRIM|SAME|SEC|SELECT|SEQUENTIAL|SET|SETTER|SGN|SIN|SINH|SIZE|SKIP|SQR|STANDARD|STATUS|STR|STREAM|STYLE|TAB|TAN|TANH|TEMPLATE|TEXT|THERE|TIME|TIMEOUT|TRACE|TRANSFORM|TRUNCATE|UBOUND|UCASE|USE|VAL|VARIABLE|VIEWPORT|WHEN|WINDOW|WITH|ZER|ZONEWIDTH)(?:\$|\b)/i,operator:/<[=>]?|>=?|[+\-*\/^=&]|\b(?:AND|EQV|IMP|NOT|OR|XOR)\b/i,punctuation:/[,;:()]/}}return JN}var ZN,Aq;function xje(){if(Aq)return ZN;Aq=1,ZN=e,e.displayName="batch",e.aliases=[];function e(t){(function(n){var r=/%%?[~:\w]+%?|!\S+!/,a={pattern:/\/[a-z?]+(?=[ :]|$):?|-[a-z]\b|--[a-z-]+\b/im,alias:"attr-name",inside:{punctuation:/:/}},i=/"(?:[\\"]"|[^"])*"(?!")/,o=/(?:\b|-)\d+\b/;n.languages.batch={comment:[/^::.*/m,{pattern:/((?:^|[&(])[ \t]*)rem\b(?:[^^&)\r\n]|\^(?:\r\n|[\s\S]))*/im,lookbehind:!0}],label:{pattern:/^:.*/m,alias:"property"},command:[{pattern:/((?:^|[&(])[ \t]*)for(?: \/[a-z?](?:[ :](?:"[^"]*"|[^\s"/]\S*))?)* \S+ in \([^)]+\) do/im,lookbehind:!0,inside:{keyword:/\b(?:do|in)\b|^for\b/i,string:i,parameter:a,variable:r,number:o,punctuation:/[()',]/}},{pattern:/((?:^|[&(])[ \t]*)if(?: \/[a-z?](?:[ :](?:"[^"]*"|[^\s"/]\S*))?)* (?:not )?(?:cmdextversion \d+|defined \w+|errorlevel \d+|exist \S+|(?:"[^"]*"|(?!")(?:(?!==)\S)+)?(?:==| (?:equ|geq|gtr|leq|lss|neq) )(?:"[^"]*"|[^\s"]\S*))/im,lookbehind:!0,inside:{keyword:/\b(?:cmdextversion|defined|errorlevel|exist|not)\b|^if\b/i,string:i,parameter:a,variable:r,number:o,operator:/\^|==|\b(?:equ|geq|gtr|leq|lss|neq)\b/i}},{pattern:/((?:^|[&()])[ \t]*)else\b/im,lookbehind:!0,inside:{keyword:/^else\b/i}},{pattern:/((?:^|[&(])[ \t]*)set(?: \/[a-z](?:[ :](?:"[^"]*"|[^\s"/]\S*))?)* (?:[^^&)\r\n]|\^(?:\r\n|[\s\S]))*/im,lookbehind:!0,inside:{keyword:/^set\b/i,string:i,parameter:a,variable:[r,/\w+(?=(?:[*\/%+\-&^|]|<<|>>)?=)/],number:o,operator:/[*\/%+\-&^|]=?|<<=?|>>=?|[!~_=]/,punctuation:/[()',]/}},{pattern:/((?:^|[&(])[ \t]*@?)\w+\b(?:"(?:[\\"]"|[^"])*"(?!")|[^"^&)\r\n]|\^(?:\r\n|[\s\S]))*/m,lookbehind:!0,inside:{keyword:/^\w+\b/,string:i,parameter:a,label:{pattern:/(^\s*):\S+/m,lookbehind:!0,alias:"property"},variable:r,number:o,operator:/\^/}}],operator:/[&@]/,punctuation:/[()']/}})(t)}return ZN}var e2,Nq;function _je(){if(Nq)return e2;Nq=1,e2=e,e.displayName="bbcode",e.aliases=["shortcode"];function e(t){t.languages.bbcode={tag:{pattern:/\[\/?[^\s=\]]+(?:\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'"\]=]+))?(?:\s+[^\s=\]]+\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'"\]=]+))*\s*\]/,inside:{tag:{pattern:/^\[\/?[^\s=\]]+/,inside:{punctuation:/^\[\/?/}},"attr-value":{pattern:/=\s*(?:"[^"]*"|'[^']*'|[^\s'"\]=]+)/,inside:{punctuation:[/^=/,{pattern:/^(\s*)["']|["']$/,lookbehind:!0}]}},punctuation:/\]/,"attr-name":/[^\s=\]]+/}}},t.languages.shortcode=t.languages.bbcode}return e2}var t2,Mq;function Oje(){if(Mq)return t2;Mq=1,t2=e,e.displayName="bicep",e.aliases=[];function e(t){t.languages.bicep={comment:[{pattern:/(^|[^\\])\/\*[\s\S]*?(?:\*\/|$)/,lookbehind:!0,greedy:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],property:[{pattern:/([\r\n][ \t]*)[a-z_]\w*(?=[ \t]*:)/i,lookbehind:!0},{pattern:/([\r\n][ \t]*)'(?:\\.|\$(?!\{)|[^'\\\r\n$])*'(?=[ \t]*:)/,lookbehind:!0,greedy:!0}],string:[{pattern:/'''[^'][\s\S]*?'''/,greedy:!0},{pattern:/(^|[^\\'])'(?:\\.|\$(?!\{)|[^'\\\r\n$])*'/,lookbehind:!0,greedy:!0}],"interpolated-string":{pattern:/(^|[^\\'])'(?:\\.|\$(?:(?!\{)|\{[^{}\r\n]*\})|[^'\\\r\n$])*'/,lookbehind:!0,greedy:!0,inside:{interpolation:{pattern:/\$\{[^{}\r\n]*\}/,inside:{expression:{pattern:/(^\$\{)[\s\S]+(?=\}$)/,lookbehind:!0},punctuation:/^\$\{|\}$/}},string:/[\s\S]+/}},datatype:{pattern:/(\b(?:output|param)\b[ \t]+\w+[ \t]+)\w+\b/,lookbehind:!0,alias:"class-name"},boolean:/\b(?:false|true)\b/,keyword:/\b(?:existing|for|if|in|module|null|output|param|resource|targetScope|var)\b/,decorator:/@\w+\b/,function:/\b[a-z_]\w*(?=[ \t]*\()/i,number:/(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:E[+-]?\d+)?/i,operator:/--|\+\+|\*\*=?|=>|&&=?|\|\|=?|[!=]==|<<=?|>>>?=?|[-+*/%&|^!=<>]=?|\.{3}|\?\?=?|\?\.?|[~:]/,punctuation:/[{}[\];(),.:]/},t.languages.bicep["interpolated-string"].inside.interpolation.inside.expression.inside=t.languages.bicep}return t2}var n2,Iq;function Rje(){if(Iq)return n2;Iq=1,n2=e,e.displayName="birb",e.aliases=[];function e(t){t.languages.birb=t.languages.extend("clike",{string:{pattern:/r?("|')(?:\\.|(?!\1)[^\\])*\1/,greedy:!0},"class-name":[/\b[A-Z](?:[\d_]*[a-zA-Z]\w*)?\b/,/\b(?:[A-Z]\w*|(?!(?:var|void)\b)[a-z]\w*)(?=\s+\w+\s*[;,=()])/],keyword:/\b(?:assert|break|case|class|const|default|else|enum|final|follows|for|grab|if|nest|new|next|noSeeb|return|static|switch|throw|var|void|while)\b/,operator:/\+\+|--|&&|\|\||<<=?|>>=?|~(?:\/=?)?|[+\-*\/%&^|=!<>]=?|\?|:/,variable:/\b[a-z_]\w*\b/}),t.languages.insertBefore("birb","function",{metadata:{pattern:/<\w+>/,greedy:!0,alias:"symbol"}})}return n2}var r2,Dq;function Pje(){if(Dq)return r2;Dq=1;var e=Kv();r2=t,t.displayName="bison",t.aliases=[];function t(n){n.register(e),n.languages.bison=n.languages.extend("c",{}),n.languages.insertBefore("bison","comment",{bison:{pattern:/^(?:[^%]|%(?!%))*%%[\s\S]*?%%/,inside:{c:{pattern:/%\{[\s\S]*?%\}|\{(?:\{[^}]*\}|[^{}])*\}/,inside:{delimiter:{pattern:/^%?\{|%?\}$/,alias:"punctuation"},"bison-variable":{pattern:/[$@](?:<[^\s>]+>)?[\w$]+/,alias:"variable",inside:{punctuation:/<|>/}},rest:n.languages.c}},comment:n.languages.c.comment,string:n.languages.c.string,property:/\S+(?=:)/,keyword:/%\w+/,number:{pattern:/(^|[^@])\b(?:0x[\da-f]+|\d+)/i,lookbehind:!0},punctuation:/%[%?]|[|:;\[\]<>]/}}})}return r2}var a2,$q;function Aje(){if($q)return a2;$q=1,a2=e,e.displayName="bnf",e.aliases=["rbnf"];function e(t){t.languages.bnf={string:{pattern:/"[^\r\n"]*"|'[^\r\n']*'/},definition:{pattern:/<[^<>\r\n\t]+>(?=\s*::=)/,alias:["rule","keyword"],inside:{punctuation:/^<|>$/}},rule:{pattern:/<[^<>\r\n\t]+>/,inside:{punctuation:/^<|>$/}},operator:/::=|[|()[\]{}*+?]|\.{3}/},t.languages.rbnf=t.languages.bnf}return a2}var i2,Lq;function Nje(){if(Lq)return i2;Lq=1,i2=e,e.displayName="brainfuck",e.aliases=[];function e(t){t.languages.brainfuck={pointer:{pattern:/<|>/,alias:"keyword"},increment:{pattern:/\+/,alias:"inserted"},decrement:{pattern:/-/,alias:"deleted"},branching:{pattern:/\[|\]/,alias:"important"},operator:/[.,]/,comment:/\S+/}}return i2}var o2,Fq;function Mje(){if(Fq)return o2;Fq=1,o2=e,e.displayName="brightscript",e.aliases=[];function e(t){t.languages.brightscript={comment:/(?:\brem|').*/i,"directive-statement":{pattern:/(^[\t ]*)#(?:const|else(?:[\t ]+if)?|end[\t ]+if|error|if).*/im,lookbehind:!0,alias:"property",inside:{"error-message":{pattern:/(^#error).+/,lookbehind:!0},directive:{pattern:/^#(?:const|else(?:[\t ]+if)?|end[\t ]+if|error|if)/,alias:"keyword"},expression:{pattern:/[\s\S]+/,inside:null}}},property:{pattern:/([\r\n{,][\t ]*)(?:(?!\d)\w+|"(?:[^"\r\n]|"")*"(?!"))(?=[ \t]*:)/,lookbehind:!0,greedy:!0},string:{pattern:/"(?:[^"\r\n]|"")*"(?!")/,greedy:!0},"class-name":{pattern:/(\bAs[\t ]+)\w+/i,lookbehind:!0},keyword:/\b(?:As|Dim|Each|Else|Elseif|End|Exit|For|Function|Goto|If|In|Print|Return|Step|Stop|Sub|Then|To|While)\b/i,boolean:/\b(?:false|true)\b/i,function:/\b(?!\d)\w+(?=[\t ]*\()/,number:/(?:\b\d+(?:\.\d+)?(?:[ed][+-]\d+)?|&h[a-f\d]+)\b[%&!#]?/i,operator:/--|\+\+|>>=?|<<=?|<>|[-+*/\\<>]=?|[:^=?]|\b(?:and|mod|not|or)\b/i,punctuation:/[.,;()[\]{}]/,constant:/\b(?:LINE_NUM)\b/i},t.languages.brightscript["directive-statement"].inside.expression.inside=t.languages.brightscript}return o2}var s2,jq;function Ije(){if(jq)return s2;jq=1,s2=e,e.displayName="bro",e.aliases=[];function e(t){t.languages.bro={comment:{pattern:/(^|[^\\$])#.*/,lookbehind:!0,inside:{italic:/\b(?:FIXME|TODO|XXX)\b/}},string:{pattern:/(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,greedy:!0},boolean:/\b[TF]\b/,function:{pattern:/(\b(?:event|function|hook)[ \t]+)\w+(?:::\w+)?/,lookbehind:!0},builtin:/(?:@(?:load(?:-(?:plugin|sigs))?|unload|prefixes|ifn?def|else|(?:end)?if|DIR|FILENAME))|(?:&?(?:add_func|create_expire|default|delete_func|encrypt|error_handler|expire_func|group|log|mergeable|optional|persistent|priority|raw_output|read_expire|redef|rotate_interval|rotate_size|synchronized|type_column|write_expire))/,constant:{pattern:/(\bconst[ \t]+)\w+/i,lookbehind:!0},keyword:/\b(?:add|addr|alarm|any|bool|break|const|continue|count|delete|double|else|enum|event|export|file|for|function|global|hook|if|in|int|interval|local|module|next|of|opaque|pattern|port|print|record|return|schedule|set|string|subnet|table|time|timeout|using|vector|when)\b/,operator:/--?|\+\+?|!=?=?|<=?|>=?|==?=?|&&|\|\|?|\?|\*|\/|~|\^|%/,number:/\b0x[\da-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?/i,punctuation:/[{}[\];(),.:]/}}return s2}var l2,Uq;function Dje(){if(Uq)return l2;Uq=1,l2=e,e.displayName="bsl",e.aliases=[];function e(t){t.languages.bsl={comment:/\/\/.*/,string:[{pattern:/"(?:[^"]|"")*"(?!")/,greedy:!0},{pattern:/'(?:[^'\r\n\\]|\\.)*'/}],keyword:[{pattern:/(^|[^\w\u0400-\u0484\u0487-\u052f\u1d2b\u1d78\u2de0-\u2dff\ua640-\ua69f\ufe2e\ufe2f])(?:пока|для|новый|прервать|попытка|исключение|вызватьисключение|иначе|конецпопытки|неопределено|функция|перем|возврат|конецфункции|если|иначеесли|процедура|конецпроцедуры|тогда|знач|экспорт|конецесли|из|каждого|истина|ложь|по|цикл|конеццикла|выполнить)(?![\w\u0400-\u0484\u0487-\u052f\u1d2b\u1d78\u2de0-\u2dff\ua640-\ua69f\ufe2e\ufe2f])/i,lookbehind:!0},{pattern:/\b(?:break|do|each|else|elseif|enddo|endfunction|endif|endprocedure|endtry|except|execute|export|false|for|function|if|in|new|null|procedure|raise|return|then|to|true|try|undefined|val|var|while)\b/i}],number:{pattern:/(^(?=\d)|[^\w\u0400-\u0484\u0487-\u052f\u1d2b\u1d78\u2de0-\u2dff\ua640-\ua69f\ufe2e\ufe2f])(?:\d+(?:\.\d*)?|\.\d+)(?:E[+-]?\d+)?/i,lookbehind:!0},operator:[/[<>+\-*/]=?|[%=]/,{pattern:/(^|[^\w\u0400-\u0484\u0487-\u052f\u1d2b\u1d78\u2de0-\u2dff\ua640-\ua69f\ufe2e\ufe2f])(?:и|или|не)(?![\w\u0400-\u0484\u0487-\u052f\u1d2b\u1d78\u2de0-\u2dff\ua640-\ua69f\ufe2e\ufe2f])/i,lookbehind:!0},{pattern:/\b(?:and|not|or)\b/i}],punctuation:/\(\.|\.\)|[()\[\]:;,.]/,directive:[{pattern:/^([ \t]*)&.*/m,lookbehind:!0,greedy:!0,alias:"important"},{pattern:/^([ \t]*)#.*/gm,lookbehind:!0,greedy:!0,alias:"important"}]},t.languages.oscript=t.languages.bsl}return l2}var u2,Bq;function $je(){if(Bq)return u2;Bq=1,u2=e,e.displayName="cfscript",e.aliases=[];function e(t){t.languages.cfscript=t.languages.extend("clike",{comment:[{pattern:/(^|[^\\])\/\*[\s\S]*?(?:\*\/|$)/,lookbehind:!0,inside:{annotation:{pattern:/(?:^|[^.])@[\w\.]+/,alias:"punctuation"}}},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],keyword:/\b(?:abstract|break|catch|component|continue|default|do|else|extends|final|finally|for|function|if|in|include|package|private|property|public|remote|required|rethrow|return|static|switch|throw|try|var|while|xml)\b(?!\s*=)/,operator:[/\+\+|--|&&|\|\||::|=>|[!=]==|<=?|>=?|[-+*/%&|^!=<>]=?|\?(?:\.|:)?|[?:]/,/\b(?:and|contains|eq|equal|eqv|gt|gte|imp|is|lt|lte|mod|not|or|xor)\b/],scope:{pattern:/\b(?:application|arguments|cgi|client|cookie|local|session|super|this|variables)\b/,alias:"global"},type:{pattern:/\b(?:any|array|binary|boolean|date|guid|numeric|query|string|struct|uuid|void|xml)\b/,alias:"builtin"}}),t.languages.insertBefore("cfscript","keyword",{"function-variable":{pattern:/[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*[=:]\s*(?:\bfunction\b|(?:\((?:[^()]|\([^()]*\))*\)|(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)\s*=>))/,alias:"function"}}),delete t.languages.cfscript["class-name"],t.languages.cfc=t.languages.cfscript}return u2}var c2,Wq;function Lje(){if(Wq)return c2;Wq=1;var e=Yj();c2=t,t.displayName="chaiscript",t.aliases=[];function t(n){n.register(e),n.languages.chaiscript=n.languages.extend("clike",{string:{pattern:/(^|[^\\])'(?:[^'\\]|\\[\s\S])*'/,lookbehind:!0,greedy:!0},"class-name":[{pattern:/(\bclass\s+)\w+/,lookbehind:!0},{pattern:/(\b(?:attr|def)\s+)\w+(?=\s*::)/,lookbehind:!0}],keyword:/\b(?:attr|auto|break|case|catch|class|continue|def|default|else|finally|for|fun|global|if|return|switch|this|try|var|while)\b/,number:[n.languages.cpp.number,/\b(?:Infinity|NaN)\b/],operator:/>>=?|<<=?|\|\||&&|:[:=]?|--|\+\+|[=!<>+\-*/%|&^]=?|[?~]|`[^`\r\n]{1,4}`/}),n.languages.insertBefore("chaiscript","operator",{"parameter-type":{pattern:/([,(]\s*)\w+(?=\s+\w)/,lookbehind:!0,alias:"class-name"}}),n.languages.insertBefore("chaiscript","string",{"string-interpolation":{pattern:/(^|[^\\])"(?:[^"$\\]|\\[\s\S]|\$(?!\{)|\$\{(?:[^{}]|\{(?:[^{}]|\{[^{}]*\})*\})*\})*"/,lookbehind:!0,greedy:!0,inside:{interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$\{(?:[^{}]|\{(?:[^{}]|\{[^{}]*\})*\})*\}/,lookbehind:!0,inside:{"interpolation-expression":{pattern:/(^\$\{)[\s\S]+(?=\}$)/,lookbehind:!0,inside:n.languages.chaiscript},"interpolation-punctuation":{pattern:/^\$\{|\}$/,alias:"punctuation"}}},string:/[\s\S]+/}}})}return c2}var d2,zq;function Fje(){if(zq)return d2;zq=1,d2=e,e.displayName="cil",e.aliases=[];function e(t){t.languages.cil={comment:/\/\/.*/,string:{pattern:/(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,greedy:!0},directive:{pattern:/(^|\W)\.[a-z]+(?=\s)/,lookbehind:!0,alias:"class-name"},variable:/\[[\w\.]+\]/,keyword:/\b(?:abstract|ansi|assembly|auto|autochar|beforefieldinit|bool|bstr|byvalstr|catch|char|cil|class|currency|date|decimal|default|enum|error|explicit|extends|extern|famandassem|family|famorassem|final(?:ly)?|float32|float64|hidebysig|u?int(?:8|16|32|64)?|iant|idispatch|implements|import|initonly|instance|interface|iunknown|literal|lpstr|lpstruct|lptstr|lpwstr|managed|method|native(?:Type)?|nested|newslot|object(?:ref)?|pinvokeimpl|private|privatescope|public|reqsecobj|rtspecialname|runtime|sealed|sequential|serializable|specialname|static|string|struct|syschar|tbstr|unicode|unmanagedexp|unsigned|value(?:type)?|variant|virtual|void)\b/,function:/\b(?:(?:constrained|no|readonly|tail|unaligned|volatile)\.)?(?:conv\.(?:[iu][1248]?|ovf\.[iu][1248]?(?:\.un)?|r\.un|r4|r8)|ldc\.(?:i4(?:\.\d+|\.[mM]1|\.s)?|i8|r4|r8)|ldelem(?:\.[iu][1248]?|\.r[48]|\.ref|a)?|ldind\.(?:[iu][1248]?|r[48]|ref)|stelem\.?(?:i[1248]?|r[48]|ref)?|stind\.(?:i[1248]?|r[48]|ref)?|end(?:fault|filter|finally)|ldarg(?:\.[0-3s]|a(?:\.s)?)?|ldloc(?:\.\d+|\.s)?|sub(?:\.ovf(?:\.un)?)?|mul(?:\.ovf(?:\.un)?)?|add(?:\.ovf(?:\.un)?)?|stloc(?:\.[0-3s])?|refany(?:type|val)|blt(?:\.un)?(?:\.s)?|ble(?:\.un)?(?:\.s)?|bgt(?:\.un)?(?:\.s)?|bge(?:\.un)?(?:\.s)?|unbox(?:\.any)?|init(?:blk|obj)|call(?:i|virt)?|brfalse(?:\.s)?|bne\.un(?:\.s)?|ldloca(?:\.s)?|brzero(?:\.s)?|brtrue(?:\.s)?|brnull(?:\.s)?|brinst(?:\.s)?|starg(?:\.s)?|leave(?:\.s)?|shr(?:\.un)?|rem(?:\.un)?|div(?:\.un)?|clt(?:\.un)?|alignment|castclass|ldvirtftn|beq(?:\.s)?|ckfinite|ldsflda|ldtoken|localloc|mkrefany|rethrow|cgt\.un|arglist|switch|stsfld|sizeof|newobj|newarr|ldsfld|ldnull|ldflda|isinst|throw|stobj|stfld|ldstr|ldobj|ldlen|ldftn|ldfld|cpobj|cpblk|break|br\.s|xor|shl|ret|pop|not|nop|neg|jmp|dup|cgt|ceq|box|and|or|br)\b/,boolean:/\b(?:false|true)\b/,number:/\b-?(?:0x[0-9a-f]+|\d+)(?:\.[0-9a-f]+)?\b/i,punctuation:/[{}[\];(),:=]|IL_[0-9A-Za-z]+/}}return d2}var f2,qq;function jje(){if(qq)return f2;qq=1,f2=e,e.displayName="clojure",e.aliases=[];function e(t){t.languages.clojure={comment:{pattern:/;.*/,greedy:!0},string:{pattern:/"(?:[^"\\]|\\.)*"/,greedy:!0},char:/\\\w+/,symbol:{pattern:/(^|[\s()\[\]{},])::?[\w*+!?'<>=/.-]+/,lookbehind:!0},keyword:{pattern:/(\()(?:-|->|->>|\.|\.\.|\*|\/|\+|<|<=|=|==|>|>=|accessor|agent|agent-errors|aget|alength|all-ns|alter|and|append-child|apply|array-map|aset|aset-boolean|aset-byte|aset-char|aset-double|aset-float|aset-int|aset-long|aset-short|assert|assoc|await|await-for|bean|binding|bit-and|bit-not|bit-or|bit-shift-left|bit-shift-right|bit-xor|boolean|branch\?|butlast|byte|cast|char|children|class|clear-agent-errors|comment|commute|comp|comparator|complement|concat|cond|conj|cons|constantly|construct-proxy|contains\?|count|create-ns|create-struct|cycle|dec|declare|def|def-|definline|definterface|defmacro|defmethod|defmulti|defn|defn-|defonce|defproject|defprotocol|defrecord|defstruct|deftype|deref|difference|disj|dissoc|distinct|do|doall|doc|dorun|doseq|dosync|dotimes|doto|double|down|drop|drop-while|edit|end\?|ensure|eval|every\?|false\?|ffirst|file-seq|filter|find|find-doc|find-ns|find-var|first|float|flush|fn|fnseq|for|frest|gensym|get|get-proxy-class|hash-map|hash-set|identical\?|identity|if|if-let|if-not|import|in-ns|inc|index|insert-child|insert-left|insert-right|inspect-table|inspect-tree|instance\?|int|interleave|intersection|into|into-array|iterate|join|key|keys|keyword|keyword\?|last|lazy-cat|lazy-cons|left|lefts|let|line-seq|list|list\*|load|load-file|locking|long|loop|macroexpand|macroexpand-1|make-array|make-node|map|map-invert|map\?|mapcat|max|max-key|memfn|merge|merge-with|meta|min|min-key|monitor-enter|name|namespace|neg\?|new|newline|next|nil\?|node|not|not-any\?|not-every\?|not=|ns|ns-imports|ns-interns|ns-map|ns-name|ns-publics|ns-refers|ns-resolve|ns-unmap|nth|nthrest|or|parse|partial|path|peek|pop|pos\?|pr|pr-str|print|print-str|println|println-str|prn|prn-str|project|proxy|proxy-mappings|quot|quote|rand|rand-int|range|re-find|re-groups|re-matcher|re-matches|re-pattern|re-seq|read|read-line|recur|reduce|ref|ref-set|refer|rem|remove|remove-method|remove-ns|rename|rename-keys|repeat|replace|replicate|resolve|rest|resultset-seq|reverse|rfirst|right|rights|root|rrest|rseq|second|select|select-keys|send|send-off|seq|seq-zip|seq\?|set|set!|short|slurp|some|sort|sort-by|sorted-map|sorted-map-by|sorted-set|special-symbol\?|split-at|split-with|str|string\?|struct|struct-map|subs|subvec|symbol|symbol\?|sync|take|take-nth|take-while|test|throw|time|to-array|to-array-2d|tree-seq|true\?|try|union|up|update-proxy|val|vals|var|var-get|var-set|var\?|vector|vector-zip|vector\?|when|when-first|when-let|when-not|with-local-vars|with-meta|with-open|with-out-str|xml-seq|xml-zip|zero\?|zipmap|zipper)(?=[\s)]|$)/,lookbehind:!0},boolean:/\b(?:false|nil|true)\b/,number:{pattern:/(^|[^\w$@])(?:\d+(?:[/.]\d+)?(?:e[+-]?\d+)?|0x[a-f0-9]+|[1-9]\d?r[a-z0-9]+)[lmn]?(?![\w$@])/i,lookbehind:!0},function:{pattern:/((?:^|[^'])\()[\w*+!?'<>=/.-]+(?=[\s)]|$)/,lookbehind:!0},operator:/[#@^`~]/,punctuation:/[{}\[\](),]/}}return f2}var p2,Hq;function Uje(){if(Hq)return p2;Hq=1,p2=e,e.displayName="cmake",e.aliases=[];function e(t){t.languages.cmake={comment:/#.*/,string:{pattern:/"(?:[^\\"]|\\.)*"/,greedy:!0,inside:{interpolation:{pattern:/\$\{(?:[^{}$]|\$\{[^{}$]*\})*\}/,inside:{punctuation:/\$\{|\}/,variable:/\w+/}}}},variable:/\b(?:CMAKE_\w+|\w+_(?:(?:BINARY|SOURCE)_DIR|DESCRIPTION|HOMEPAGE_URL|ROOT|VERSION(?:_MAJOR|_MINOR|_PATCH|_TWEAK)?)|(?:ANDROID|APPLE|BORLAND|BUILD_SHARED_LIBS|CACHE|CPACK_(?:ABSOLUTE_DESTINATION_FILES|COMPONENT_INCLUDE_TOPLEVEL_DIRECTORY|ERROR_ON_ABSOLUTE_INSTALL_DESTINATION|INCLUDE_TOPLEVEL_DIRECTORY|INSTALL_DEFAULT_DIRECTORY_PERMISSIONS|INSTALL_SCRIPT|PACKAGING_INSTALL_PREFIX|SET_DESTDIR|WARN_ON_ABSOLUTE_INSTALL_DESTINATION)|CTEST_(?:BINARY_DIRECTORY|BUILD_COMMAND|BUILD_NAME|BZR_COMMAND|BZR_UPDATE_OPTIONS|CHANGE_ID|CHECKOUT_COMMAND|CONFIGURATION_TYPE|CONFIGURE_COMMAND|COVERAGE_COMMAND|COVERAGE_EXTRA_FLAGS|CURL_OPTIONS|CUSTOM_(?:COVERAGE_EXCLUDE|ERROR_EXCEPTION|ERROR_MATCH|ERROR_POST_CONTEXT|ERROR_PRE_CONTEXT|MAXIMUM_FAILED_TEST_OUTPUT_SIZE|MAXIMUM_NUMBER_OF_(?:ERRORS|WARNINGS)|MAXIMUM_PASSED_TEST_OUTPUT_SIZE|MEMCHECK_IGNORE|POST_MEMCHECK|POST_TEST|PRE_MEMCHECK|PRE_TEST|TESTS_IGNORE|WARNING_EXCEPTION|WARNING_MATCH)|CVS_CHECKOUT|CVS_COMMAND|CVS_UPDATE_OPTIONS|DROP_LOCATION|DROP_METHOD|DROP_SITE|DROP_SITE_CDASH|DROP_SITE_PASSWORD|DROP_SITE_USER|EXTRA_COVERAGE_GLOB|GIT_COMMAND|GIT_INIT_SUBMODULES|GIT_UPDATE_CUSTOM|GIT_UPDATE_OPTIONS|HG_COMMAND|HG_UPDATE_OPTIONS|LABELS_FOR_SUBPROJECTS|MEMORYCHECK_(?:COMMAND|COMMAND_OPTIONS|SANITIZER_OPTIONS|SUPPRESSIONS_FILE|TYPE)|NIGHTLY_START_TIME|P4_CLIENT|P4_COMMAND|P4_OPTIONS|P4_UPDATE_OPTIONS|RUN_CURRENT_SCRIPT|SCP_COMMAND|SITE|SOURCE_DIRECTORY|SUBMIT_URL|SVN_COMMAND|SVN_OPTIONS|SVN_UPDATE_OPTIONS|TEST_LOAD|TEST_TIMEOUT|TRIGGER_SITE|UPDATE_COMMAND|UPDATE_OPTIONS|UPDATE_VERSION_ONLY|USE_LAUNCHERS)|CYGWIN|ENV|EXECUTABLE_OUTPUT_PATH|GHS-MULTI|IOS|LIBRARY_OUTPUT_PATH|MINGW|MSVC(?:10|11|12|14|60|70|71|80|90|_IDE|_TOOLSET_VERSION|_VERSION)?|MSYS|PROJECT_(?:BINARY_DIR|DESCRIPTION|HOMEPAGE_URL|NAME|SOURCE_DIR|VERSION|VERSION_(?:MAJOR|MINOR|PATCH|TWEAK))|UNIX|WIN32|WINCE|WINDOWS_PHONE|WINDOWS_STORE|XCODE|XCODE_VERSION))\b/,property:/\b(?:cxx_\w+|(?:ARCHIVE_OUTPUT_(?:DIRECTORY|NAME)|COMPILE_DEFINITIONS|COMPILE_PDB_NAME|COMPILE_PDB_OUTPUT_DIRECTORY|EXCLUDE_FROM_DEFAULT_BUILD|IMPORTED_(?:IMPLIB|LIBNAME|LINK_DEPENDENT_LIBRARIES|LINK_INTERFACE_LANGUAGES|LINK_INTERFACE_LIBRARIES|LINK_INTERFACE_MULTIPLICITY|LOCATION|NO_SONAME|OBJECTS|SONAME)|INTERPROCEDURAL_OPTIMIZATION|LIBRARY_OUTPUT_DIRECTORY|LIBRARY_OUTPUT_NAME|LINK_FLAGS|LINK_INTERFACE_LIBRARIES|LINK_INTERFACE_MULTIPLICITY|LOCATION|MAP_IMPORTED_CONFIG|OSX_ARCHITECTURES|OUTPUT_NAME|PDB_NAME|PDB_OUTPUT_DIRECTORY|RUNTIME_OUTPUT_DIRECTORY|RUNTIME_OUTPUT_NAME|STATIC_LIBRARY_FLAGS|VS_CSHARP|VS_DOTNET_REFERENCEPROP|VS_DOTNET_REFERENCE|VS_GLOBAL_SECTION_POST|VS_GLOBAL_SECTION_PRE|VS_GLOBAL|XCODE_ATTRIBUTE)_\w+|\w+_(?:CLANG_TIDY|COMPILER_LAUNCHER|CPPCHECK|CPPLINT|INCLUDE_WHAT_YOU_USE|OUTPUT_NAME|POSTFIX|VISIBILITY_PRESET)|ABSTRACT|ADDITIONAL_MAKE_CLEAN_FILES|ADVANCED|ALIASED_TARGET|ALLOW_DUPLICATE_CUSTOM_TARGETS|ANDROID_(?:ANT_ADDITIONAL_OPTIONS|API|API_MIN|ARCH|ASSETS_DIRECTORIES|GUI|JAR_DEPENDENCIES|NATIVE_LIB_DEPENDENCIES|NATIVE_LIB_DIRECTORIES|PROCESS_MAX|PROGUARD|PROGUARD_CONFIG_PATH|SECURE_PROPS_PATH|SKIP_ANT_STEP|STL_TYPE)|ARCHIVE_OUTPUT_DIRECTORY|ATTACHED_FILES|ATTACHED_FILES_ON_FAIL|AUTOGEN_(?:BUILD_DIR|ORIGIN_DEPENDS|PARALLEL|SOURCE_GROUP|TARGETS_FOLDER|TARGET_DEPENDS)|AUTOMOC|AUTOMOC_(?:COMPILER_PREDEFINES|DEPEND_FILTERS|EXECUTABLE|MACRO_NAMES|MOC_OPTIONS|SOURCE_GROUP|TARGETS_FOLDER)|AUTORCC|AUTORCC_EXECUTABLE|AUTORCC_OPTIONS|AUTORCC_SOURCE_GROUP|AUTOUIC|AUTOUIC_EXECUTABLE|AUTOUIC_OPTIONS|AUTOUIC_SEARCH_PATHS|BINARY_DIR|BUILDSYSTEM_TARGETS|BUILD_RPATH|BUILD_RPATH_USE_ORIGIN|BUILD_WITH_INSTALL_NAME_DIR|BUILD_WITH_INSTALL_RPATH|BUNDLE|BUNDLE_EXTENSION|CACHE_VARIABLES|CLEAN_NO_CUSTOM|COMMON_LANGUAGE_RUNTIME|COMPATIBLE_INTERFACE_(?:BOOL|NUMBER_MAX|NUMBER_MIN|STRING)|COMPILE_(?:DEFINITIONS|FEATURES|FLAGS|OPTIONS|PDB_NAME|PDB_OUTPUT_DIRECTORY)|COST|CPACK_DESKTOP_SHORTCUTS|CPACK_NEVER_OVERWRITE|CPACK_PERMANENT|CPACK_STARTUP_SHORTCUTS|CPACK_START_MENU_SHORTCUTS|CPACK_WIX_ACL|CROSSCOMPILING_EMULATOR|CUDA_EXTENSIONS|CUDA_PTX_COMPILATION|CUDA_RESOLVE_DEVICE_SYMBOLS|CUDA_SEPARABLE_COMPILATION|CUDA_STANDARD|CUDA_STANDARD_REQUIRED|CXX_EXTENSIONS|CXX_STANDARD|CXX_STANDARD_REQUIRED|C_EXTENSIONS|C_STANDARD|C_STANDARD_REQUIRED|DEBUG_CONFIGURATIONS|DEFINE_SYMBOL|DEFINITIONS|DEPENDS|DEPLOYMENT_ADDITIONAL_FILES|DEPLOYMENT_REMOTE_DIRECTORY|DISABLED|DISABLED_FEATURES|ECLIPSE_EXTRA_CPROJECT_CONTENTS|ECLIPSE_EXTRA_NATURES|ENABLED_FEATURES|ENABLED_LANGUAGES|ENABLE_EXPORTS|ENVIRONMENT|EXCLUDE_FROM_ALL|EXCLUDE_FROM_DEFAULT_BUILD|EXPORT_NAME|EXPORT_PROPERTIES|EXTERNAL_OBJECT|EchoString|FAIL_REGULAR_EXPRESSION|FIND_LIBRARY_USE_LIB32_PATHS|FIND_LIBRARY_USE_LIB64_PATHS|FIND_LIBRARY_USE_LIBX32_PATHS|FIND_LIBRARY_USE_OPENBSD_VERSIONING|FIXTURES_CLEANUP|FIXTURES_REQUIRED|FIXTURES_SETUP|FOLDER|FRAMEWORK|Fortran_FORMAT|Fortran_MODULE_DIRECTORY|GENERATED|GENERATOR_FILE_NAME|GENERATOR_IS_MULTI_CONFIG|GHS_INTEGRITY_APP|GHS_NO_SOURCE_GROUP_FILE|GLOBAL_DEPENDS_DEBUG_MODE|GLOBAL_DEPENDS_NO_CYCLES|GNUtoMS|HAS_CXX|HEADER_FILE_ONLY|HELPSTRING|IMPLICIT_DEPENDS_INCLUDE_TRANSFORM|IMPORTED|IMPORTED_(?:COMMON_LANGUAGE_RUNTIME|CONFIGURATIONS|GLOBAL|IMPLIB|LIBNAME|LINK_DEPENDENT_LIBRARIES|LINK_INTERFACE_(?:LANGUAGES|LIBRARIES|MULTIPLICITY)|LOCATION|NO_SONAME|OBJECTS|SONAME)|IMPORT_PREFIX|IMPORT_SUFFIX|INCLUDE_DIRECTORIES|INCLUDE_REGULAR_EXPRESSION|INSTALL_NAME_DIR|INSTALL_RPATH|INSTALL_RPATH_USE_LINK_PATH|INTERFACE_(?:AUTOUIC_OPTIONS|COMPILE_DEFINITIONS|COMPILE_FEATURES|COMPILE_OPTIONS|INCLUDE_DIRECTORIES|LINK_DEPENDS|LINK_DIRECTORIES|LINK_LIBRARIES|LINK_OPTIONS|POSITION_INDEPENDENT_CODE|SOURCES|SYSTEM_INCLUDE_DIRECTORIES)|INTERPROCEDURAL_OPTIMIZATION|IN_TRY_COMPILE|IOS_INSTALL_COMBINED|JOB_POOLS|JOB_POOL_COMPILE|JOB_POOL_LINK|KEEP_EXTENSION|LABELS|LANGUAGE|LIBRARY_OUTPUT_DIRECTORY|LINKER_LANGUAGE|LINK_(?:DEPENDS|DEPENDS_NO_SHARED|DIRECTORIES|FLAGS|INTERFACE_LIBRARIES|INTERFACE_MULTIPLICITY|LIBRARIES|OPTIONS|SEARCH_END_STATIC|SEARCH_START_STATIC|WHAT_YOU_USE)|LISTFILE_STACK|LOCATION|MACOSX_BUNDLE|MACOSX_BUNDLE_INFO_PLIST|MACOSX_FRAMEWORK_INFO_PLIST|MACOSX_PACKAGE_LOCATION|MACOSX_RPATH|MACROS|MANUALLY_ADDED_DEPENDENCIES|MEASUREMENT|MODIFIED|NAME|NO_SONAME|NO_SYSTEM_FROM_IMPORTED|OBJECT_DEPENDS|OBJECT_OUTPUTS|OSX_ARCHITECTURES|OUTPUT_NAME|PACKAGES_FOUND|PACKAGES_NOT_FOUND|PARENT_DIRECTORY|PASS_REGULAR_EXPRESSION|PDB_NAME|PDB_OUTPUT_DIRECTORY|POSITION_INDEPENDENT_CODE|POST_INSTALL_SCRIPT|PREDEFINED_TARGETS_FOLDER|PREFIX|PRE_INSTALL_SCRIPT|PRIVATE_HEADER|PROCESSORS|PROCESSOR_AFFINITY|PROJECT_LABEL|PUBLIC_HEADER|REPORT_UNDEFINED_PROPERTIES|REQUIRED_FILES|RESOURCE|RESOURCE_LOCK|RULE_LAUNCH_COMPILE|RULE_LAUNCH_CUSTOM|RULE_LAUNCH_LINK|RULE_MESSAGES|RUNTIME_OUTPUT_DIRECTORY|RUN_SERIAL|SKIP_AUTOGEN|SKIP_AUTOMOC|SKIP_AUTORCC|SKIP_AUTOUIC|SKIP_BUILD_RPATH|SKIP_RETURN_CODE|SOURCES|SOURCE_DIR|SOVERSION|STATIC_LIBRARY_FLAGS|STATIC_LIBRARY_OPTIONS|STRINGS|SUBDIRECTORIES|SUFFIX|SYMBOLIC|TARGET_ARCHIVES_MAY_BE_SHARED_LIBS|TARGET_MESSAGES|TARGET_SUPPORTS_SHARED_LIBS|TESTS|TEST_INCLUDE_FILE|TEST_INCLUDE_FILES|TIMEOUT|TIMEOUT_AFTER_MATCH|TYPE|USE_FOLDERS|VALUE|VARIABLES|VERSION|VISIBILITY_INLINES_HIDDEN|VS_(?:CONFIGURATION_TYPE|COPY_TO_OUT_DIR|DEBUGGER_(?:COMMAND|COMMAND_ARGUMENTS|ENVIRONMENT|WORKING_DIRECTORY)|DEPLOYMENT_CONTENT|DEPLOYMENT_LOCATION|DOTNET_REFERENCES|DOTNET_REFERENCES_COPY_LOCAL|GLOBAL_KEYWORD|GLOBAL_PROJECT_TYPES|GLOBAL_ROOTNAMESPACE|INCLUDE_IN_VSIX|IOT_STARTUP_TASK|KEYWORD|RESOURCE_GENERATOR|SCC_AUXPATH|SCC_LOCALPATH|SCC_PROJECTNAME|SCC_PROVIDER|SDK_REFERENCES|SHADER_(?:DISABLE_OPTIMIZATIONS|ENABLE_DEBUG|ENTRYPOINT|FLAGS|MODEL|OBJECT_FILE_NAME|OUTPUT_HEADER_FILE|TYPE|VARIABLE_NAME)|STARTUP_PROJECT|TOOL_OVERRIDE|USER_PROPS|WINRT_COMPONENT|WINRT_EXTENSIONS|WINRT_REFERENCES|XAML_TYPE)|WILL_FAIL|WIN32_EXECUTABLE|WINDOWS_EXPORT_ALL_SYMBOLS|WORKING_DIRECTORY|WRAP_EXCLUDE|XCODE_(?:EMIT_EFFECTIVE_PLATFORM_NAME|EXPLICIT_FILE_TYPE|FILE_ATTRIBUTES|LAST_KNOWN_FILE_TYPE|PRODUCT_TYPE|SCHEME_(?:ADDRESS_SANITIZER|ADDRESS_SANITIZER_USE_AFTER_RETURN|ARGUMENTS|DISABLE_MAIN_THREAD_CHECKER|DYNAMIC_LIBRARY_LOADS|DYNAMIC_LINKER_API_USAGE|ENVIRONMENT|EXECUTABLE|GUARD_MALLOC|MAIN_THREAD_CHECKER_STOP|MALLOC_GUARD_EDGES|MALLOC_SCRIBBLE|MALLOC_STACK|THREAD_SANITIZER(?:_STOP)?|UNDEFINED_BEHAVIOUR_SANITIZER(?:_STOP)?|ZOMBIE_OBJECTS))|XCTEST)\b/,keyword:/\b(?:add_compile_definitions|add_compile_options|add_custom_command|add_custom_target|add_definitions|add_dependencies|add_executable|add_library|add_link_options|add_subdirectory|add_test|aux_source_directory|break|build_command|build_name|cmake_host_system_information|cmake_minimum_required|cmake_parse_arguments|cmake_policy|configure_file|continue|create_test_sourcelist|ctest_build|ctest_configure|ctest_coverage|ctest_empty_binary_directory|ctest_memcheck|ctest_read_custom_files|ctest_run_script|ctest_sleep|ctest_start|ctest_submit|ctest_test|ctest_update|ctest_upload|define_property|else|elseif|enable_language|enable_testing|endforeach|endfunction|endif|endmacro|endwhile|exec_program|execute_process|export|export_library_dependencies|file|find_file|find_library|find_package|find_path|find_program|fltk_wrap_ui|foreach|function|get_cmake_property|get_directory_property|get_filename_component|get_property|get_source_file_property|get_target_property|get_test_property|if|include|include_directories|include_external_msproject|include_guard|include_regular_expression|install|install_files|install_programs|install_targets|link_directories|link_libraries|list|load_cache|load_command|macro|make_directory|mark_as_advanced|math|message|option|output_required_files|project|qt_wrap_cpp|qt_wrap_ui|remove|remove_definitions|return|separate_arguments|set|set_directory_properties|set_property|set_source_files_properties|set_target_properties|set_tests_properties|site_name|source_group|string|subdir_depends|subdirs|target_compile_definitions|target_compile_features|target_compile_options|target_include_directories|target_link_directories|target_link_libraries|target_link_options|target_sources|try_compile|try_run|unset|use_mangled_mesa|utility_source|variable_requires|variable_watch|while|write_file)(?=\s*\()\b/,boolean:/\b(?:FALSE|OFF|ON|TRUE)\b/,namespace:/\b(?:INTERFACE|PRIVATE|PROPERTIES|PUBLIC|SHARED|STATIC|TARGET_OBJECTS)\b/,operator:/\b(?:AND|DEFINED|EQUAL|GREATER|LESS|MATCHES|NOT|OR|STREQUAL|STRGREATER|STRLESS|VERSION_EQUAL|VERSION_GREATER|VERSION_LESS)\b/,inserted:{pattern:/\b\w+::\w+\b/,alias:"class-name"},number:/\b\d+(?:\.\d+)*\b/,function:/\b[a-z_]\w*(?=\s*\()\b/i,punctuation:/[()>}]|\$[<{]/}}return p2}var h2,Vq;function Bje(){if(Vq)return h2;Vq=1,h2=e,e.displayName="cobol",e.aliases=[];function e(t){t.languages.cobol={comment:{pattern:/\*>.*|(^[ \t]*)\*.*/m,lookbehind:!0,greedy:!0},string:{pattern:/[xzgn]?(?:"(?:[^\r\n"]|"")*"(?!")|'(?:[^\r\n']|'')*'(?!'))/i,greedy:!0},level:{pattern:/(^[ \t]*)\d+\b/m,lookbehind:!0,greedy:!0,alias:"number"},"class-name":{pattern:/(\bpic(?:ture)?\s+)(?:(?:[-\w$/,:*+<>]|\.(?!\s|$))(?:\(\d+\))?)+/i,lookbehind:!0,inside:{number:{pattern:/(\()\d+/,lookbehind:!0},punctuation:/[()]/}},keyword:{pattern:/(^|[^\w-])(?:ABORT|ACCEPT|ACCESS|ADD|ADDRESS|ADVANCING|AFTER|ALIGNED|ALL|ALPHABET|ALPHABETIC|ALPHABETIC-LOWER|ALPHABETIC-UPPER|ALPHANUMERIC|ALPHANUMERIC-EDITED|ALSO|ALTER|ALTERNATE|ANY|ARE|AREA|AREAS|AS|ASCENDING|ASCII|ASSIGN|ASSOCIATED-DATA|ASSOCIATED-DATA-LENGTH|AT|ATTRIBUTE|AUTHOR|AUTO|AUTO-SKIP|BACKGROUND-COLOR|BACKGROUND-COLOUR|BASIS|BEEP|BEFORE|BEGINNING|BELL|BINARY|BIT|BLANK|BLINK|BLOCK|BOTTOM|BOUNDS|BY|BYFUNCTION|BYTITLE|CALL|CANCEL|CAPABLE|CCSVERSION|CD|CF|CH|CHAINING|CHANGED|CHANNEL|CHARACTER|CHARACTERS|CLASS|CLASS-ID|CLOCK-UNITS|CLOSE|CLOSE-DISPOSITION|COBOL|CODE|CODE-SET|COL|COLLATING|COLUMN|COM-REG|COMMA|COMMITMENT|COMMON|COMMUNICATION|COMP|COMP-1|COMP-2|COMP-3|COMP-4|COMP-5|COMPUTATIONAL|COMPUTATIONAL-1|COMPUTATIONAL-2|COMPUTATIONAL-3|COMPUTATIONAL-4|COMPUTATIONAL-5|COMPUTE|CONFIGURATION|CONTAINS|CONTENT|CONTINUE|CONTROL|CONTROL-POINT|CONTROLS|CONVENTION|CONVERTING|COPY|CORR|CORRESPONDING|COUNT|CRUNCH|CURRENCY|CURSOR|DATA|DATA-BASE|DATE|DATE-COMPILED|DATE-WRITTEN|DAY|DAY-OF-WEEK|DBCS|DE|DEBUG-CONTENTS|DEBUG-ITEM|DEBUG-LINE|DEBUG-NAME|DEBUG-SUB-1|DEBUG-SUB-2|DEBUG-SUB-3|DEBUGGING|DECIMAL-POINT|DECLARATIVES|DEFAULT|DEFAULT-DISPLAY|DEFINITION|DELETE|DELIMITED|DELIMITER|DEPENDING|DESCENDING|DESTINATION|DETAIL|DFHRESP|DFHVALUE|DISABLE|DISK|DISPLAY|DISPLAY-1|DIVIDE|DIVISION|DONTCARE|DOUBLE|DOWN|DUPLICATES|DYNAMIC|EBCDIC|EGCS|EGI|ELSE|EMI|EMPTY-CHECK|ENABLE|END|END-ACCEPT|END-ADD|END-CALL|END-COMPUTE|END-DELETE|END-DIVIDE|END-EVALUATE|END-IF|END-MULTIPLY|END-OF-PAGE|END-PERFORM|END-READ|END-RECEIVE|END-RETURN|END-REWRITE|END-SEARCH|END-START|END-STRING|END-SUBTRACT|END-UNSTRING|END-WRITE|ENDING|ENTER|ENTRY|ENTRY-PROCEDURE|ENVIRONMENT|EOL|EOP|EOS|ERASE|ERROR|ESCAPE|ESI|EVALUATE|EVENT|EVERY|EXCEPTION|EXCLUSIVE|EXHIBIT|EXIT|EXPORT|EXTEND|EXTENDED|EXTERNAL|FD|FILE|FILE-CONTROL|FILLER|FINAL|FIRST|FOOTING|FOR|FOREGROUND-COLOR|FOREGROUND-COLOUR|FROM|FULL|FUNCTION|FUNCTION-POINTER|FUNCTIONNAME|GENERATE|GIVING|GLOBAL|GO|GOBACK|GRID|GROUP|HEADING|HIGH-VALUE|HIGH-VALUES|HIGHLIGHT|I-O|I-O-CONTROL|ID|IDENTIFICATION|IF|IMPLICIT|IMPORT|IN|INDEX|INDEXED|INDICATE|INITIAL|INITIALIZE|INITIATE|INPUT|INPUT-OUTPUT|INSPECT|INSTALLATION|INTEGER|INTO|INVALID|INVOKE|IS|JUST|JUSTIFIED|KANJI|KEPT|KEY|KEYBOARD|LABEL|LANGUAGE|LAST|LB|LD|LEADING|LEFT|LEFTLINE|LENGTH|LENGTH-CHECK|LIBACCESS|LIBPARAMETER|LIBRARY|LIMIT|LIMITS|LINAGE|LINAGE-COUNTER|LINE|LINE-COUNTER|LINES|LINKAGE|LIST|LOCAL|LOCAL-STORAGE|LOCK|LONG-DATE|LONG-TIME|LOW-VALUE|LOW-VALUES|LOWER|LOWLIGHT|MEMORY|MERGE|MESSAGE|MMDDYYYY|MODE|MODULES|MORE-LABELS|MOVE|MULTIPLE|MULTIPLY|NAMED|NATIONAL|NATIONAL-EDITED|NATIVE|NEGATIVE|NETWORK|NEXT|NO|NO-ECHO|NULL|NULLS|NUMBER|NUMERIC|NUMERIC-DATE|NUMERIC-EDITED|NUMERIC-TIME|OBJECT-COMPUTER|OCCURS|ODT|OF|OFF|OMITTED|ON|OPEN|OPTIONAL|ORDER|ORDERLY|ORGANIZATION|OTHER|OUTPUT|OVERFLOW|OVERLINE|OWN|PACKED-DECIMAL|PADDING|PAGE|PAGE-COUNTER|PASSWORD|PERFORM|PF|PH|PIC|PICTURE|PLUS|POINTER|PORT|POSITION|POSITIVE|PRINTER|PRINTING|PRIVATE|PROCEDURE|PROCEDURE-POINTER|PROCEDURES|PROCEED|PROCESS|PROGRAM|PROGRAM-ID|PROGRAM-LIBRARY|PROMPT|PURGE|QUEUE|QUOTE|QUOTES|RANDOM|RD|READ|READER|REAL|RECEIVE|RECEIVED|RECORD|RECORDING|RECORDS|RECURSIVE|REDEFINES|REEL|REF|REFERENCE|REFERENCES|RELATIVE|RELEASE|REMAINDER|REMARKS|REMOTE|REMOVAL|REMOVE|RENAMES|REPLACE|REPLACING|REPORT|REPORTING|REPORTS|REQUIRED|RERUN|RESERVE|RESET|RETURN|RETURN-CODE|RETURNING|REVERSE-VIDEO|REVERSED|REWIND|REWRITE|RF|RH|RIGHT|ROUNDED|RUN|SAME|SAVE|SCREEN|SD|SEARCH|SECTION|SECURE|SECURITY|SEGMENT|SEGMENT-LIMIT|SELECT|SEND|SENTENCE|SEPARATE|SEQUENCE|SEQUENTIAL|SET|SHARED|SHAREDBYALL|SHAREDBYRUNUNIT|SHARING|SHIFT-IN|SHIFT-OUT|SHORT-DATE|SIGN|SIZE|SORT|SORT-CONTROL|SORT-CORE-SIZE|SORT-FILE-SIZE|SORT-MERGE|SORT-MESSAGE|SORT-MODE-SIZE|SORT-RETURN|SOURCE|SOURCE-COMPUTER|SPACE|SPACES|SPECIAL-NAMES|STANDARD|STANDARD-1|STANDARD-2|START|STATUS|STOP|STRING|SUB-QUEUE-1|SUB-QUEUE-2|SUB-QUEUE-3|SUBTRACT|SUM|SUPPRESS|SYMBOL|SYMBOLIC|SYNC|SYNCHRONIZED|TABLE|TALLY|TALLYING|TAPE|TASK|TERMINAL|TERMINATE|TEST|TEXT|THEN|THREAD|THREAD-LOCAL|THROUGH|THRU|TIME|TIMER|TIMES|TITLE|TO|TODAYS-DATE|TODAYS-NAME|TOP|TRAILING|TRUNCATED|TYPE|TYPEDEF|UNDERLINE|UNIT|UNSTRING|UNTIL|UP|UPON|USAGE|USE|USING|VALUE|VALUES|VARYING|VIRTUAL|WAIT|WHEN|WHEN-COMPILED|WITH|WORDS|WORKING-STORAGE|WRITE|YEAR|YYYYDDD|YYYYMMDD|ZERO-FILL|ZEROES|ZEROS)(?![\w-])/i,lookbehind:!0},boolean:{pattern:/(^|[^\w-])(?:false|true)(?![\w-])/i,lookbehind:!0},number:{pattern:/(^|[^\w-])(?:[+-]?(?:(?:\d+(?:[.,]\d+)?|[.,]\d+)(?:e[+-]?\d+)?|zero))(?![\w-])/i,lookbehind:!0},operator:[/<>|[<>]=?|[=+*/&]/,{pattern:/(^|[^\w-])(?:-|and|equal|greater|less|not|or|than)(?![\w-])/i,lookbehind:!0}],punctuation:/[.:,()]/}}return h2}var m2,Gq;function Wje(){if(Gq)return m2;Gq=1,m2=e,e.displayName="coffeescript",e.aliases=["coffee"];function e(t){(function(n){var r=/#(?!\{).+/,a={pattern:/#\{[^}]+\}/,alias:"variable"};n.languages.coffeescript=n.languages.extend("javascript",{comment:r,string:[{pattern:/'(?:\\[\s\S]|[^\\'])*'/,greedy:!0},{pattern:/"(?:\\[\s\S]|[^\\"])*"/,greedy:!0,inside:{interpolation:a}}],keyword:/\b(?:and|break|by|catch|class|continue|debugger|delete|do|each|else|extend|extends|false|finally|for|if|in|instanceof|is|isnt|let|loop|namespace|new|no|not|null|of|off|on|or|own|return|super|switch|then|this|throw|true|try|typeof|undefined|unless|until|when|while|window|with|yes|yield)\b/,"class-member":{pattern:/@(?!\d)\w+/,alias:"variable"}}),n.languages.insertBefore("coffeescript","comment",{"multiline-comment":{pattern:/###[\s\S]+?###/,alias:"comment"},"block-regex":{pattern:/\/{3}[\s\S]*?\/{3}/,alias:"regex",inside:{comment:r,interpolation:a}}}),n.languages.insertBefore("coffeescript","string",{"inline-javascript":{pattern:/`(?:\\[\s\S]|[^\\`])*`/,inside:{delimiter:{pattern:/^`|`$/,alias:"punctuation"},script:{pattern:/[\s\S]+/,alias:"language-javascript",inside:n.languages.javascript}}},"multiline-string":[{pattern:/'''[\s\S]*?'''/,greedy:!0,alias:"string"},{pattern:/"""[\s\S]*?"""/,greedy:!0,alias:"string",inside:{interpolation:a}}]}),n.languages.insertBefore("coffeescript","keyword",{property:/(?!\d)\w+(?=\s*:(?!:))/}),delete n.languages.coffeescript["template-string"],n.languages.coffee=n.languages.coffeescript})(t)}return m2}var g2,Yq;function zje(){if(Yq)return g2;Yq=1,g2=e,e.displayName="concurnas",e.aliases=["conc"];function e(t){t.languages.concurnas={comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?(?:\*\/|$)|\/\/.*)/,lookbehind:!0,greedy:!0},langext:{pattern:/\b\w+\s*\|\|[\s\S]+?\|\|/,greedy:!0,inside:{"class-name":/^\w+/,string:{pattern:/(^\s*\|\|)[\s\S]+(?=\|\|$)/,lookbehind:!0},punctuation:/\|\|/}},function:{pattern:/((?:^|\s)def[ \t]+)[a-zA-Z_]\w*(?=\s*\()/,lookbehind:!0},keyword:/\b(?:abstract|actor|also|annotation|assert|async|await|bool|boolean|break|byte|case|catch|changed|char|class|closed|constant|continue|def|default|del|double|elif|else|enum|every|extends|false|finally|float|for|from|global|gpudef|gpukernel|if|import|in|init|inject|int|lambda|local|long|loop|match|new|nodefault|null|of|onchange|open|out|override|package|parfor|parforsync|post|pre|private|protected|provide|provider|public|return|shared|short|single|size_t|sizeof|super|sync|this|throw|trait|trans|transient|true|try|typedef|unchecked|using|val|var|void|while|with)\b/,boolean:/\b(?:false|true)\b/,number:/\b0b[01][01_]*L?\b|\b0x(?:[\da-f_]*\.)?[\da-f_p+-]+\b|(?:\b\d[\d_]*(?:\.[\d_]*)?|\B\.\d[\d_]*)(?:e[+-]?\d[\d_]*)?[dfls]?/i,punctuation:/[{}[\];(),.:]/,operator:/<==|>==|=>|->|<-|<>|&==|&<>|\?:?|\.\?|\+\+|--|[-+*/=<>]=?|[!^~]|\b(?:and|as|band|bor|bxor|comp|is|isnot|mod|or)\b=?/,annotation:{pattern:/@(?:\w+:)?(?:\w+|\[[^\]]+\])?/,alias:"builtin"}},t.languages.insertBefore("concurnas","langext",{"regex-literal":{pattern:/\br("|')(?:\\.|(?!\1)[^\\\r\n])*\1/,greedy:!0,inside:{interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}/,lookbehind:!0,inside:t.languages.concurnas},regex:/[\s\S]+/}},"string-literal":{pattern:/(?:\B|\bs)("|')(?:\\.|(?!\1)[^\\\r\n])*\1/,greedy:!0,inside:{interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}/,lookbehind:!0,inside:t.languages.concurnas},string:/[\s\S]+/}}}),t.languages.conc=t.languages.concurnas}return g2}var v2,Kq;function qje(){if(Kq)return v2;Kq=1,v2=e,e.displayName="coq",e.aliases=[];function e(t){(function(n){for(var r=/\(\*(?:[^(*]|\((?!\*)|\*(?!\))|)*\*\)/.source,a=0;a<2;a++)r=r.replace(//g,function(){return r});r=r.replace(//g,"[]"),n.languages.coq={comment:RegExp(r),string:{pattern:/"(?:[^"]|"")*"(?!")/,greedy:!0},attribute:[{pattern:RegExp(/#\[(?:[^\[\]("]|"(?:[^"]|"")*"(?!")|\((?!\*)|)*\]/.source.replace(//g,function(){return r})),greedy:!0,alias:"attr-name",inside:{comment:RegExp(r),string:{pattern:/"(?:[^"]|"")*"(?!")/,greedy:!0},operator:/=/,punctuation:/^#\[|\]$|[,()]/}},{pattern:/\b(?:Cumulative|Global|Local|Monomorphic|NonCumulative|Polymorphic|Private|Program)\b/,alias:"attr-name"}],keyword:/\b(?:Abort|About|Add|Admit|Admitted|All|Arguments|As|Assumptions|Axiom|Axioms|Back|BackTo|Backtrace|BinOp|BinOpSpec|BinRel|Bind|Blacklist|Canonical|Case|Cd|Check|Class|Classes|Close|CoFixpoint|CoInductive|Coercion|Coercions|Collection|Combined|Compute|Conjecture|Conjectures|Constant|Constants|Constraint|Constructors|Context|Corollary|Create|CstOp|Custom|Cut|Debug|Declare|Defined|Definition|Delimit|Dependencies|Dependent|Derive|Diffs|Drop|Elimination|End|Entry|Equality|Eval|Example|Existential|Existentials|Existing|Export|Extern|Extraction|Fact|Fail|Field|File|Firstorder|Fixpoint|Flags|Focus|From|Funclass|Function|Functional|GC|Generalizable|Goal|Grab|Grammar|Graph|Guarded|Haskell|Heap|Hide|Hint|HintDb|Hints|Hypotheses|Hypothesis|IF|Identity|Immediate|Implicit|Implicits|Import|Include|Induction|Inductive|Infix|Info|Initial|InjTyp|Inline|Inspect|Instance|Instances|Intro|Intros|Inversion|Inversion_clear|JSON|Language|Left|Lemma|Let|Lia|Libraries|Library|Load|LoadPath|Locate|Ltac|Ltac2|ML|Match|Method|Minimality|Module|Modules|Morphism|Next|NoInline|Notation|Number|OCaml|Obligation|Obligations|Opaque|Open|Optimize|Parameter|Parameters|Parametric|Path|Paths|Prenex|Preterm|Primitive|Print|Profile|Projections|Proof|Prop|PropBinOp|PropOp|PropUOp|Property|Proposition|Pwd|Qed|Quit|Rec|Record|Recursive|Redirect|Reduction|Register|Relation|Remark|Remove|Require|Reserved|Reset|Resolve|Restart|Rewrite|Right|Ring|Rings|SProp|Saturate|Save|Scheme|Scope|Scopes|Search|SearchHead|SearchPattern|SearchRewrite|Section|Separate|Set|Setoid|Show|Signatures|Solve|Solver|Sort|Sortclass|Sorted|Spec|Step|Strategies|Strategy|String|Structure|SubClass|Subgraph|SuchThat|Tactic|Term|TestCompile|Theorem|Time|Timeout|To|Transparent|Type|Typeclasses|Types|Typing|UnOp|UnOpSpec|Undelimit|Undo|Unfocus|Unfocused|Unfold|Universe|Universes|Unshelve|Variable|Variables|Variant|Verbose|View|Visibility|Zify|_|apply|as|at|by|cofix|else|end|exists|exists2|fix|for|forall|fun|if|in|let|match|measure|move|removed|return|struct|then|using|wf|where|with)\b/,number:/\b(?:0x[a-f0-9][a-f0-9_]*(?:\.[a-f0-9_]+)?(?:p[+-]?\d[\d_]*)?|\d[\d_]*(?:\.[\d_]+)?(?:e[+-]?\d[\d_]*)?)\b/i,punct:{pattern:/@\{|\{\||\[=|:>/,alias:"punctuation"},operator:/\/\\|\\\/|\.{2,3}|:{1,2}=|\*\*|[-=]>|<(?:->?|[+:=>]|<:)|>(?:=|->)|\|[-|]?|[-!%&*+/<=>?@^~']/,punctuation:/\.\(|`\(|@\{|`\{|\{\||\[=|:>|[:.,;(){}\[\]]/}})(t)}return v2}var y2,Xq;function B_(){if(Xq)return y2;Xq=1,y2=e,e.displayName="ruby",e.aliases=["rb"];function e(t){(function(n){n.languages.ruby=n.languages.extend("clike",{comment:{pattern:/#.*|^=begin\s[\s\S]*?^=end/m,greedy:!0},"class-name":{pattern:/(\b(?:class|module)\s+|\bcatch\s+\()[\w.\\]+|\b[A-Z_]\w*(?=\s*\.\s*new\b)/,lookbehind:!0,inside:{punctuation:/[.\\]/}},keyword:/\b(?:BEGIN|END|alias|and|begin|break|case|class|def|define_method|defined|do|each|else|elsif|end|ensure|extend|for|if|in|include|module|new|next|nil|not|or|prepend|private|protected|public|raise|redo|require|rescue|retry|return|self|super|then|throw|undef|unless|until|when|while|yield)\b/,operator:/\.{2,3}|&\.|===||[!=]?~|(?:&&|\|\||<<|>>|\*\*|[+\-*/%<>!^&|=])=?|[?:]/,punctuation:/[(){}[\].,;]/}),n.languages.insertBefore("ruby","operator",{"double-colon":{pattern:/::/,alias:"punctuation"}});var r={pattern:/((?:^|[^\\])(?:\\{2})*)#\{(?:[^{}]|\{[^{}]*\})*\}/,lookbehind:!0,inside:{content:{pattern:/^(#\{)[\s\S]+(?=\}$)/,lookbehind:!0,inside:n.languages.ruby},delimiter:{pattern:/^#\{|\}$/,alias:"punctuation"}}};delete n.languages.ruby.function;var a="(?:"+[/([^a-zA-Z0-9\s{(\[<=])(?:(?!\1)[^\\]|\\[\s\S])*\1/.source,/\((?:[^()\\]|\\[\s\S]|\((?:[^()\\]|\\[\s\S])*\))*\)/.source,/\{(?:[^{}\\]|\\[\s\S]|\{(?:[^{}\\]|\\[\s\S])*\})*\}/.source,/\[(?:[^\[\]\\]|\\[\s\S]|\[(?:[^\[\]\\]|\\[\s\S])*\])*\]/.source,/<(?:[^<>\\]|\\[\s\S]|<(?:[^<>\\]|\\[\s\S])*>)*>/.source].join("|")+")",i=/(?:"(?:\\.|[^"\\\r\n])*"|(?:\b[a-zA-Z_]\w*|[^\s\0-\x7F]+)[?!]?|\$.)/.source;n.languages.insertBefore("ruby","keyword",{"regex-literal":[{pattern:RegExp(/%r/.source+a+/[egimnosux]{0,6}/.source),greedy:!0,inside:{interpolation:r,regex:/[\s\S]+/}},{pattern:/(^|[^/])\/(?!\/)(?:\[[^\r\n\]]+\]|\\.|[^[/\\\r\n])+\/[egimnosux]{0,6}(?=\s*(?:$|[\r\n,.;})#]))/,lookbehind:!0,greedy:!0,inside:{interpolation:r,regex:/[\s\S]+/}}],variable:/[@$]+[a-zA-Z_]\w*(?:[?!]|\b)/,symbol:[{pattern:RegExp(/(^|[^:]):/.source+i),lookbehind:!0,greedy:!0},{pattern:RegExp(/([\r\n{(,][ \t]*)/.source+i+/(?=:(?!:))/.source),lookbehind:!0,greedy:!0}],"method-definition":{pattern:/(\bdef\s+)\w+(?:\s*\.\s*\w+)?/,lookbehind:!0,inside:{function:/\b\w+$/,keyword:/^self\b/,"class-name":/^\w+/,punctuation:/\./}}}),n.languages.insertBefore("ruby","string",{"string-literal":[{pattern:RegExp(/%[qQiIwWs]?/.source+a),greedy:!0,inside:{interpolation:r,string:/[\s\S]+/}},{pattern:/("|')(?:#\{[^}]+\}|#(?!\{)|\\(?:\r\n|[\s\S])|(?!\1)[^\\#\r\n])*\1/,greedy:!0,inside:{interpolation:r,string:/[\s\S]+/}},{pattern:/<<[-~]?([a-z_]\w*)[\r\n](?:.*[\r\n])*?[\t ]*\1/i,alias:"heredoc-string",greedy:!0,inside:{delimiter:{pattern:/^<<[-~]?[a-z_]\w*|\b[a-z_]\w*$/i,inside:{symbol:/\b\w+/,punctuation:/^<<[-~]?/}},interpolation:r,string:/[\s\S]+/}},{pattern:/<<[-~]?'([a-z_]\w*)'[\r\n](?:.*[\r\n])*?[\t ]*\1/i,alias:"heredoc-string",greedy:!0,inside:{delimiter:{pattern:/^<<[-~]?'[a-z_]\w*'|\b[a-z_]\w*$/i,inside:{symbol:/\b\w+/,punctuation:/^<<[-~]?'|'$/}},string:/[\s\S]+/}}],"command-literal":[{pattern:RegExp(/%x/.source+a),greedy:!0,inside:{interpolation:r,command:{pattern:/[\s\S]+/,alias:"string"}}},{pattern:/`(?:#\{[^}]+\}|#(?!\{)|\\(?:\r\n|[\s\S])|[^\\`#\r\n])*`/,greedy:!0,inside:{interpolation:r,command:{pattern:/[\s\S]+/,alias:"string"}}}]}),delete n.languages.ruby.string,n.languages.insertBefore("ruby","number",{builtin:/\b(?:Array|Bignum|Binding|Class|Continuation|Dir|Exception|FalseClass|File|Fixnum|Float|Hash|IO|Integer|MatchData|Method|Module|NilClass|Numeric|Object|Proc|Range|Regexp|Stat|String|Struct|Symbol|TMS|Thread|ThreadGroup|Time|TrueClass)\b/,constant:/\b[A-Z][A-Z0-9_]*(?:[?!]|\b)/}),n.languages.rb=n.languages.ruby})(t)}return y2}var b2,Qq;function Hje(){if(Qq)return b2;Qq=1;var e=B_();b2=t,t.displayName="crystal",t.aliases=[];function t(n){n.register(e),(function(r){r.languages.crystal=r.languages.extend("ruby",{keyword:[/\b(?:__DIR__|__END_LINE__|__FILE__|__LINE__|abstract|alias|annotation|as|asm|begin|break|case|class|def|do|else|elsif|end|ensure|enum|extend|for|fun|if|ifdef|include|instance_sizeof|lib|macro|module|next|of|out|pointerof|private|protected|ptr|require|rescue|return|select|self|sizeof|struct|super|then|type|typeof|undef|uninitialized|union|unless|until|when|while|with|yield)\b/,{pattern:/(\.\s*)(?:is_a|responds_to)\?/,lookbehind:!0}],number:/\b(?:0b[01_]*[01]|0o[0-7_]*[0-7]|0x[\da-fA-F_]*[\da-fA-F]|(?:\d(?:[\d_]*\d)?)(?:\.[\d_]*\d)?(?:[eE][+-]?[\d_]*\d)?)(?:_(?:[uif](?:8|16|32|64))?)?\b/,operator:[/->/,r.languages.ruby.operator],punctuation:/[(){}[\].,;\\]/}),r.languages.insertBefore("crystal","string-literal",{attribute:{pattern:/@\[.*?\]/,inside:{delimiter:{pattern:/^@\[|\]$/,alias:"punctuation"},attribute:{pattern:/^(\s*)\w+/,lookbehind:!0,alias:"class-name"},args:{pattern:/\S(?:[\s\S]*\S)?/,inside:r.languages.crystal}}},expansion:{pattern:/\{(?:\{.*?\}|%.*?%)\}/,inside:{content:{pattern:/^(\{.)[\s\S]+(?=.\}$)/,lookbehind:!0,inside:r.languages.crystal},delimiter:{pattern:/^\{[\{%]|[\}%]\}$/,alias:"operator"}}},char:{pattern:/'(?:[^\\\r\n]{1,2}|\\(?:.|u(?:[A-Fa-f0-9]{1,4}|\{[A-Fa-f0-9]{1,6}\})))'/,greedy:!0}})})(n)}return b2}var w2,Jq;function Vje(){if(Jq)return w2;Jq=1;var e=U_();w2=t,t.displayName="cshtml",t.aliases=["razor"];function t(n){n.register(e),(function(r){var a=/\/(?![/*])|\/\/.*[\r\n]|\/\*[^*]*(?:\*(?!\/)[^*]*)*\*\//.source,i=/@(?!")|"(?:[^\r\n\\"]|\\.)*"|@"(?:[^\\"]|""|\\[\s\S])*"(?!")/.source+"|"+/'(?:(?:[^\r\n'\\]|\\.|\\[Uux][\da-fA-F]{1,8})'|(?=[^\\](?!')))/.source;function o(T,C){for(var k=0;k/g,function(){return"(?:"+T+")"});return T.replace(//g,"[^\\s\\S]").replace(//g,"(?:"+i+")").replace(//g,"(?:"+a+")")}var l=o(/\((?:[^()'"@/]|||)*\)/.source,2),u=o(/\[(?:[^\[\]'"@/]|||)*\]/.source,2),d=o(/\{(?:[^{}'"@/]|||)*\}/.source,2),f=o(/<(?:[^<>'"@/]|||)*>/.source,2),g=/(?:\s(?:\s*[^\s>\/=]+(?:\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))|(?=[\s/>])))+)?/.source,y=/(?!\d)[^\s>\/=$<%]+/.source+g+/\s*\/?>/.source,h=/\B@?/.source+"(?:"+/<([a-zA-Z][\w:]*)/.source+g+/\s*>/.source+"(?:"+(/[^<]/.source+"|"+/<\/?(?!\1\b)/.source+y+"|"+o(/<\1/.source+g+/\s*>/.source+"(?:"+(/[^<]/.source+"|"+/<\/?(?!\1\b)/.source+y+"|")+")*"+/<\/\1\s*>/.source,2))+")*"+/<\/\1\s*>/.source+"|"+/|\+|~|\|\|/,punctuation:/[(),]/}},n.languages.css.atrule.inside["selector-function-argument"].inside=a,n.languages.insertBefore("css","property",{variable:{pattern:/(^|[^-\w\xA0-\uFFFF])--(?!\s)[-_a-z\xA0-\uFFFF](?:(?!\s)[-\w\xA0-\uFFFF])*/i,lookbehind:!0}});var i={pattern:/(\b\d+)(?:%|[a-z]+(?![\w-]))/,lookbehind:!0},o={pattern:/(^|[^\w.-])-?(?:\d+(?:\.\d+)?|\.\d+)/,lookbehind:!0};n.languages.insertBefore("css","function",{operator:{pattern:/(\s)[+\-*\/](?=\s)/,lookbehind:!0},hexcode:{pattern:/\B#[\da-f]{3,8}\b/i,alias:"color"},color:[{pattern:/(^|[^\w-])(?:AliceBlue|AntiqueWhite|Aqua|Aquamarine|Azure|Beige|Bisque|Black|BlanchedAlmond|Blue|BlueViolet|Brown|BurlyWood|CadetBlue|Chartreuse|Chocolate|Coral|CornflowerBlue|Cornsilk|Crimson|Cyan|DarkBlue|DarkCyan|DarkGoldenRod|DarkGr[ae]y|DarkGreen|DarkKhaki|DarkMagenta|DarkOliveGreen|DarkOrange|DarkOrchid|DarkRed|DarkSalmon|DarkSeaGreen|DarkSlateBlue|DarkSlateGr[ae]y|DarkTurquoise|DarkViolet|DeepPink|DeepSkyBlue|DimGr[ae]y|DodgerBlue|FireBrick|FloralWhite|ForestGreen|Fuchsia|Gainsboro|GhostWhite|Gold|GoldenRod|Gr[ae]y|Green|GreenYellow|HoneyDew|HotPink|IndianRed|Indigo|Ivory|Khaki|Lavender|LavenderBlush|LawnGreen|LemonChiffon|LightBlue|LightCoral|LightCyan|LightGoldenRodYellow|LightGr[ae]y|LightGreen|LightPink|LightSalmon|LightSeaGreen|LightSkyBlue|LightSlateGr[ae]y|LightSteelBlue|LightYellow|Lime|LimeGreen|Linen|Magenta|Maroon|MediumAquaMarine|MediumBlue|MediumOrchid|MediumPurple|MediumSeaGreen|MediumSlateBlue|MediumSpringGreen|MediumTurquoise|MediumVioletRed|MidnightBlue|MintCream|MistyRose|Moccasin|NavajoWhite|Navy|OldLace|Olive|OliveDrab|Orange|OrangeRed|Orchid|PaleGoldenRod|PaleGreen|PaleTurquoise|PaleVioletRed|PapayaWhip|PeachPuff|Peru|Pink|Plum|PowderBlue|Purple|Red|RosyBrown|RoyalBlue|SaddleBrown|Salmon|SandyBrown|SeaGreen|SeaShell|Sienna|Silver|SkyBlue|SlateBlue|SlateGr[ae]y|Snow|SpringGreen|SteelBlue|Tan|Teal|Thistle|Tomato|Transparent|Turquoise|Violet|Wheat|White|WhiteSmoke|Yellow|YellowGreen)(?![\w-])/i,lookbehind:!0},{pattern:/\b(?:hsl|rgb)\(\s*\d{1,3}\s*,\s*\d{1,3}%?\s*,\s*\d{1,3}%?\s*\)\B|\b(?:hsl|rgb)a\(\s*\d{1,3}\s*,\s*\d{1,3}%?\s*,\s*\d{1,3}%?\s*,\s*(?:0|0?\.\d+|1)\s*\)\B/i,inside:{unit:i,number:o,function:/[\w-]+(?=\()/,punctuation:/[(),]/}}],entity:/\\[\da-f]{1,8}/i,unit:i,number:o})})(t)}return E2}var T2,t9;function Kje(){if(t9)return T2;t9=1,T2=e,e.displayName="csv",e.aliases=[];function e(t){t.languages.csv={value:/[^\r\n,"]+|"(?:[^"]|"")*"(?!")/,punctuation:/,/}}return T2}var C2,n9;function Xje(){if(n9)return C2;n9=1,C2=e,e.displayName="cypher",e.aliases=[];function e(t){t.languages.cypher={comment:/\/\/.*/,string:{pattern:/"(?:[^"\\\r\n]|\\.)*"|'(?:[^'\\\r\n]|\\.)*'/,greedy:!0},"class-name":{pattern:/(:\s*)(?:\w+|`(?:[^`\\\r\n])*`)(?=\s*[{):])/,lookbehind:!0,greedy:!0},relationship:{pattern:/(-\[\s*(?:\w+\s*|`(?:[^`\\\r\n])*`\s*)?:\s*|\|\s*:\s*)(?:\w+|`(?:[^`\\\r\n])*`)/,lookbehind:!0,greedy:!0,alias:"property"},identifier:{pattern:/`(?:[^`\\\r\n])*`/,greedy:!0},variable:/\$\w+/,keyword:/\b(?:ADD|ALL|AND|AS|ASC|ASCENDING|ASSERT|BY|CALL|CASE|COMMIT|CONSTRAINT|CONTAINS|CREATE|CSV|DELETE|DESC|DESCENDING|DETACH|DISTINCT|DO|DROP|ELSE|END|ENDS|EXISTS|FOR|FOREACH|IN|INDEX|IS|JOIN|KEY|LIMIT|LOAD|MANDATORY|MATCH|MERGE|NODE|NOT|OF|ON|OPTIONAL|OR|ORDER(?=\s+BY)|PERIODIC|REMOVE|REQUIRE|RETURN|SCALAR|SCAN|SET|SKIP|START|STARTS|THEN|UNION|UNIQUE|UNWIND|USING|WHEN|WHERE|WITH|XOR|YIELD)\b/i,function:/\b\w+\b(?=\s*\()/,boolean:/\b(?:false|null|true)\b/i,number:/\b(?:0x[\da-fA-F]+|\d+(?:\.\d+)?(?:[eE][+-]?\d+)?)\b/,operator:/:|<--?|--?>?|<>|=~?|[<>]=?|[+*/%^|]|\.\.\.?/,punctuation:/[()[\]{},;.]/}}return C2}var k2,r9;function Qje(){if(r9)return k2;r9=1,k2=e,e.displayName="d",e.aliases=[];function e(t){t.languages.d=t.languages.extend("clike",{comment:[{pattern:/^\s*#!.+/,greedy:!0},{pattern:RegExp(/(^|[^\\])/.source+"(?:"+[/\/\+(?:\/\+(?:[^+]|\+(?!\/))*\+\/|(?!\/\+)[\s\S])*?\+\//.source,/\/\/.*/.source,/\/\*[\s\S]*?\*\//.source].join("|")+")"),lookbehind:!0,greedy:!0}],string:[{pattern:RegExp([/\b[rx]"(?:\\[\s\S]|[^\\"])*"[cwd]?/.source,/\bq"(?:\[[\s\S]*?\]|\([\s\S]*?\)|<[\s\S]*?>|\{[\s\S]*?\})"/.source,/\bq"((?!\d)\w+)$[\s\S]*?^\1"/.source,/\bq"(.)[\s\S]*?\2"/.source,/(["`])(?:\\[\s\S]|(?!\3)[^\\])*\3[cwd]?/.source].join("|"),"m"),greedy:!0},{pattern:/\bq\{(?:\{[^{}]*\}|[^{}])*\}/,greedy:!0,alias:"token-string"}],keyword:/\$|\b(?:__(?:(?:DATE|EOF|FILE|FUNCTION|LINE|MODULE|PRETTY_FUNCTION|TIMESTAMP|TIME|VENDOR|VERSION)__|gshared|parameters|traits|vector)|abstract|alias|align|asm|assert|auto|body|bool|break|byte|case|cast|catch|cdouble|cent|cfloat|char|class|const|continue|creal|dchar|debug|default|delegate|delete|deprecated|do|double|dstring|else|enum|export|extern|false|final|finally|float|for|foreach|foreach_reverse|function|goto|idouble|if|ifloat|immutable|import|inout|int|interface|invariant|ireal|lazy|long|macro|mixin|module|new|nothrow|null|out|override|package|pragma|private|protected|ptrdiff_t|public|pure|real|ref|return|scope|shared|short|size_t|static|string|struct|super|switch|synchronized|template|this|throw|true|try|typedef|typeid|typeof|ubyte|ucent|uint|ulong|union|unittest|ushort|version|void|volatile|wchar|while|with|wstring)\b/,number:[/\b0x\.?[a-f\d_]+(?:(?!\.\.)\.[a-f\d_]*)?(?:p[+-]?[a-f\d_]+)?[ulfi]{0,4}/i,{pattern:/((?:\.\.)?)(?:\b0b\.?|\b|\.)\d[\d_]*(?:(?!\.\.)\.[\d_]*)?(?:e[+-]?\d[\d_]*)?[ulfi]{0,4}/i,lookbehind:!0}],operator:/\|[|=]?|&[&=]?|\+[+=]?|-[-=]?|\.?\.\.|=[>=]?|!(?:i[ns]\b|<>?=?|>=?|=)?|\bi[ns]\b|(?:<[<>]?|>>?>?|\^\^|[*\/%^~])=?/}),t.languages.insertBefore("d","string",{char:/'(?:\\(?:\W|\w+)|[^\\])'/}),t.languages.insertBefore("d","keyword",{property:/\B@\w*/}),t.languages.insertBefore("d","function",{register:{pattern:/\b(?:[ABCD][LHX]|E?(?:BP|DI|SI|SP)|[BS]PL|[ECSDGF]S|CR[0234]|[DS]IL|DR[012367]|E[ABCD]X|X?MM[0-7]|R(?:1[0-5]|[89])[BWD]?|R[ABCD]X|R[BS]P|R[DS]I|TR[3-7]|XMM(?:1[0-5]|[89])|YMM(?:1[0-5]|\d))\b|\bST(?:\([0-7]\)|\b)/,alias:"variable"}})}return k2}var x2,a9;function Jje(){if(a9)return x2;a9=1,x2=e,e.displayName="dart",e.aliases=[];function e(t){(function(n){var r=[/\b(?:async|sync|yield)\*/,/\b(?:abstract|assert|async|await|break|case|catch|class|const|continue|covariant|default|deferred|do|dynamic|else|enum|export|extends|extension|external|factory|final|finally|for|get|hide|if|implements|import|in|interface|library|mixin|new|null|on|operator|part|rethrow|return|set|show|static|super|switch|sync|this|throw|try|typedef|var|void|while|with|yield)\b/],a=/(^|[^\w.])(?:[a-z]\w*\s*\.\s*)*(?:[A-Z]\w*\s*\.\s*)*/.source,i={pattern:RegExp(a+/[A-Z](?:[\d_A-Z]*[a-z]\w*)?\b/.source),lookbehind:!0,inside:{namespace:{pattern:/^[a-z]\w*(?:\s*\.\s*[a-z]\w*)*(?:\s*\.)?/,inside:{punctuation:/\./}}}};n.languages.dart=n.languages.extend("clike",{"class-name":[i,{pattern:RegExp(a+/[A-Z]\w*(?=\s+\w+\s*[;,=()])/.source),lookbehind:!0,inside:i.inside}],keyword:r,operator:/\bis!|\b(?:as|is)\b|\+\+|--|&&|\|\||<<=?|>>=?|~(?:\/=?)?|[+\-*\/%&^|=!<>]=?|\?/}),n.languages.insertBefore("dart","string",{"string-literal":{pattern:/r?(?:("""|''')[\s\S]*?\1|(["'])(?:\\.|(?!\2)[^\\\r\n])*\2(?!\2))/,greedy:!0,inside:{interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$(?:\w+|\{(?:[^{}]|\{[^{}]*\})*\})/,lookbehind:!0,inside:{punctuation:/^\$\{?|\}$/,expression:{pattern:/[\s\S]+/,inside:n.languages.dart}}},string:/[\s\S]+/}},string:void 0}),n.languages.insertBefore("dart","class-name",{metadata:{pattern:/@\w+/,alias:"function"}}),n.languages.insertBefore("dart","class-name",{generics:{pattern:/<(?:[\w\s,.&?]|<(?:[\w\s,.&?]|<(?:[\w\s,.&?]|<[\w\s,.&?]*>)*>)*>)*>/,inside:{"class-name":i,keyword:r,punctuation:/[<>(),.:]/,operator:/[?&|]/}}})})(t)}return x2}var _2,i9;function Zje(){if(i9)return _2;i9=1,_2=e,e.displayName="dataweave",e.aliases=[];function e(t){(function(n){n.languages.dataweave={url:/\b[A-Za-z]+:\/\/[\w/:.?=&-]+|\burn:[\w:.?=&-]+/,property:{pattern:/(?:\b\w+#)?(?:"(?:\\.|[^\\"\r\n])*"|\b\w+)(?=\s*[:@])/,greedy:!0},string:{pattern:/(["'`])(?:\\[\s\S]|(?!\1)[^\\])*\1/,greedy:!0},"mime-type":/\b(?:application|audio|image|multipart|text|video)\/[\w+-]+/,date:{pattern:/\|[\w:+-]+\|/,greedy:!0},comment:[{pattern:/(^|[^\\])\/\*[\s\S]*?(?:\*\/|$)/,lookbehind:!0,greedy:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],regex:{pattern:/\/(?:[^\\\/\r\n]|\\[^\r\n])+\//,greedy:!0},keyword:/\b(?:and|as|at|case|do|else|fun|if|input|is|match|not|ns|null|or|output|type|unless|update|using|var)\b/,function:/\b[A-Z_]\w*(?=\s*\()/i,number:/-?\b\d+(?:\.\d+)?(?:e[+-]?\d+)?\b/i,punctuation:/[{}[\];(),.:@]/,operator:/<<|>>|->|[<>~=]=?|!=|--?-?|\+\+?|!|\?/,boolean:/\b(?:false|true)\b/}})(t)}return _2}var O2,o9;function e4e(){if(o9)return O2;o9=1,O2=e,e.displayName="dax",e.aliases=[];function e(t){t.languages.dax={comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?\*\/|(?:--|\/\/).*)/,lookbehind:!0},"data-field":{pattern:/'(?:[^']|'')*'(?!')(?:\[[ \w\xA0-\uFFFF]+\])?|\w+\[[ \w\xA0-\uFFFF]+\]/,alias:"symbol"},measure:{pattern:/\[[ \w\xA0-\uFFFF]+\]/,alias:"constant"},string:{pattern:/"(?:[^"]|"")*"(?!")/,greedy:!0},function:/\b(?:ABS|ACOS|ACOSH|ACOT|ACOTH|ADDCOLUMNS|ADDMISSINGITEMS|ALL|ALLCROSSFILTERED|ALLEXCEPT|ALLNOBLANKROW|ALLSELECTED|AND|APPROXIMATEDISTINCTCOUNT|ASIN|ASINH|ATAN|ATANH|AVERAGE|AVERAGEA|AVERAGEX|BETA\.DIST|BETA\.INV|BLANK|CALCULATE|CALCULATETABLE|CALENDAR|CALENDARAUTO|CEILING|CHISQ\.DIST|CHISQ\.DIST\.RT|CHISQ\.INV|CHISQ\.INV\.RT|CLOSINGBALANCEMONTH|CLOSINGBALANCEQUARTER|CLOSINGBALANCEYEAR|COALESCE|COMBIN|COMBINA|COMBINEVALUES|CONCATENATE|CONCATENATEX|CONFIDENCE\.NORM|CONFIDENCE\.T|CONTAINS|CONTAINSROW|CONTAINSSTRING|CONTAINSSTRINGEXACT|CONVERT|COS|COSH|COT|COTH|COUNT|COUNTA|COUNTAX|COUNTBLANK|COUNTROWS|COUNTX|CROSSFILTER|CROSSJOIN|CURRENCY|CURRENTGROUP|CUSTOMDATA|DATATABLE|DATE|DATEADD|DATEDIFF|DATESBETWEEN|DATESINPERIOD|DATESMTD|DATESQTD|DATESYTD|DATEVALUE|DAY|DEGREES|DETAILROWS|DISTINCT|DISTINCTCOUNT|DISTINCTCOUNTNOBLANK|DIVIDE|EARLIER|EARLIEST|EDATE|ENDOFMONTH|ENDOFQUARTER|ENDOFYEAR|EOMONTH|ERROR|EVEN|EXACT|EXCEPT|EXP|EXPON\.DIST|FACT|FALSE|FILTER|FILTERS|FIND|FIRSTDATE|FIRSTNONBLANK|FIRSTNONBLANKVALUE|FIXED|FLOOR|FORMAT|GCD|GENERATE|GENERATEALL|GENERATESERIES|GEOMEAN|GEOMEANX|GROUPBY|HASONEFILTER|HASONEVALUE|HOUR|IF|IF\.EAGER|IFERROR|IGNORE|INT|INTERSECT|ISBLANK|ISCROSSFILTERED|ISEMPTY|ISERROR|ISEVEN|ISFILTERED|ISINSCOPE|ISLOGICAL|ISNONTEXT|ISNUMBER|ISO\.CEILING|ISODD|ISONORAFTER|ISSELECTEDMEASURE|ISSUBTOTAL|ISTEXT|KEEPFILTERS|KEYWORDMATCH|LASTDATE|LASTNONBLANK|LASTNONBLANKVALUE|LCM|LEFT|LEN|LN|LOG|LOG10|LOOKUPVALUE|LOWER|MAX|MAXA|MAXX|MEDIAN|MEDIANX|MID|MIN|MINA|MINUTE|MINX|MOD|MONTH|MROUND|NATURALINNERJOIN|NATURALLEFTOUTERJOIN|NEXTDAY|NEXTMONTH|NEXTQUARTER|NEXTYEAR|NONVISUAL|NORM\.DIST|NORM\.INV|NORM\.S\.DIST|NORM\.S\.INV|NOT|NOW|ODD|OPENINGBALANCEMONTH|OPENINGBALANCEQUARTER|OPENINGBALANCEYEAR|OR|PARALLELPERIOD|PATH|PATHCONTAINS|PATHITEM|PATHITEMREVERSE|PATHLENGTH|PERCENTILE\.EXC|PERCENTILE\.INC|PERCENTILEX\.EXC|PERCENTILEX\.INC|PERMUT|PI|POISSON\.DIST|POWER|PREVIOUSDAY|PREVIOUSMONTH|PREVIOUSQUARTER|PREVIOUSYEAR|PRODUCT|PRODUCTX|QUARTER|QUOTIENT|RADIANS|RAND|RANDBETWEEN|RANK\.EQ|RANKX|RELATED|RELATEDTABLE|REMOVEFILTERS|REPLACE|REPT|RIGHT|ROLLUP|ROLLUPADDISSUBTOTAL|ROLLUPGROUP|ROLLUPISSUBTOTAL|ROUND|ROUNDDOWN|ROUNDUP|ROW|SAMEPERIODLASTYEAR|SAMPLE|SEARCH|SECOND|SELECTCOLUMNS|SELECTEDMEASURE|SELECTEDMEASUREFORMATSTRING|SELECTEDMEASURENAME|SELECTEDVALUE|SIGN|SIN|SINH|SQRT|SQRTPI|STARTOFMONTH|STARTOFQUARTER|STARTOFYEAR|STDEV\.P|STDEV\.S|STDEVX\.P|STDEVX\.S|SUBSTITUTE|SUBSTITUTEWITHINDEX|SUM|SUMMARIZE|SUMMARIZECOLUMNS|SUMX|SWITCH|T\.DIST|T\.DIST\.2T|T\.DIST\.RT|T\.INV|T\.INV\.2T|TAN|TANH|TIME|TIMEVALUE|TODAY|TOPN|TOPNPERLEVEL|TOPNSKIP|TOTALMTD|TOTALQTD|TOTALYTD|TREATAS|TRIM|TRUE|TRUNC|UNICHAR|UNICODE|UNION|UPPER|USERELATIONSHIP|USERNAME|USEROBJECTID|USERPRINCIPALNAME|UTCNOW|UTCTODAY|VALUE|VALUES|VAR\.P|VAR\.S|VARX\.P|VARX\.S|WEEKDAY|WEEKNUM|XIRR|XNPV|YEAR|YEARFRAC)(?=\s*\()/i,keyword:/\b(?:DEFINE|EVALUATE|MEASURE|ORDER\s+BY|RETURN|VAR|START\s+AT|ASC|DESC)\b/i,boolean:{pattern:/\b(?:FALSE|NULL|TRUE)\b/i,alias:"constant"},number:/\b\d+(?:\.\d*)?|\B\.\d+\b/,operator:/:=|[-+*\/=^]|&&?|\|\||<(?:=>?|<|>)?|>[>=]?|\b(?:IN|NOT)\b/i,punctuation:/[;\[\](){}`,.]/}}return O2}var R2,s9;function t4e(){if(s9)return R2;s9=1,R2=e,e.displayName="dhall",e.aliases=[];function e(t){t.languages.dhall={comment:/--.*|\{-(?:[^-{]|-(?!\})|\{(?!-)|\{-(?:[^-{]|-(?!\})|\{(?!-))*-\})*-\}/,string:{pattern:/"(?:[^"\\]|\\.)*"|''(?:[^']|'(?!')|'''|''\$\{)*''(?!'|\$)/,greedy:!0,inside:{interpolation:{pattern:/\$\{[^{}]*\}/,inside:{expression:{pattern:/(^\$\{)[\s\S]+(?=\}$)/,lookbehind:!0,alias:"language-dhall",inside:null},punctuation:/\$\{|\}/}}}},label:{pattern:/`[^`]*`/,greedy:!0},url:{pattern:/\bhttps?:\/\/[\w.:%!$&'*+;=@~-]+(?:\/[\w.:%!$&'*+;=@~-]*)*(?:\?[/?\w.:%!$&'*+;=@~-]*)?/,greedy:!0},env:{pattern:/\benv:(?:(?!\d)\w+|"(?:[^"\\=]|\\.)*")/,greedy:!0,inside:{function:/^env/,operator:/^:/,variable:/[\s\S]+/}},hash:{pattern:/\bsha256:[\da-fA-F]{64}\b/,inside:{function:/sha256/,operator:/:/,number:/[\da-fA-F]{64}/}},keyword:/\b(?:as|assert|else|forall|if|in|let|merge|missing|then|toMap|using|with)\b|\u2200/,builtin:/\b(?:None|Some)\b/,boolean:/\b(?:False|True)\b/,number:/\bNaN\b|-?\bInfinity\b|[+-]?\b(?:0x[\da-fA-F]+|\d+(?:\.\d+)?(?:e[+-]?\d+)?)\b/,operator:/\/\\|\/\/\\\\|&&|\|\||===|[!=]=|\/\/|->|\+\+|::|[+*#@=:?<>|\\\u2227\u2a53\u2261\u2afd\u03bb\u2192]/,punctuation:/\.\.|[{}\[\](),./]/,"class-name":/\b[A-Z]\w*\b/},t.languages.dhall.string.inside.interpolation.inside.expression.inside=t.languages.dhall}return R2}var P2,l9;function n4e(){if(l9)return P2;l9=1,P2=e,e.displayName="diff",e.aliases=[];function e(t){(function(n){n.languages.diff={coord:[/^(?:\*{3}|-{3}|\+{3}).*$/m,/^@@.*@@$/m,/^\d.*$/m]};var r={"deleted-sign":"-","deleted-arrow":"<","inserted-sign":"+","inserted-arrow":">",unchanged:" ",diff:"!"};Object.keys(r).forEach(function(a){var i=r[a],o=[];/^\w+$/.test(a)||o.push(/\w+/.exec(a)[0]),a==="diff"&&o.push("bold"),n.languages.diff[a]={pattern:RegExp("^(?:["+i+`].*(?:\r + */var n=(function(r){var a=/(?:^|\s)lang(?:uage)?-([\w-]+)(?=\s|$)/i,i=0,o={},l={manual:r.Prism&&r.Prism.manual,disableWorkerMessageHandler:r.Prism&&r.Prism.disableWorkerMessageHandler,util:{encode:function k(_){return _ instanceof u?new u(_.type,k(_.content),_.alias):Array.isArray(_)?_.map(k):_.replace(/&/g,"&").replace(/"u")return null;if("currentScript"in document)return document.currentScript;try{throw new Error}catch(P){var k=(/at [^(\r\n]*\((.*):[^:]+:[^:]+\)$/i.exec(P.stack)||[])[1];if(k){var _=document.getElementsByTagName("script");for(var A in _)if(_[A].src==k)return _[A]}return null}},isActive:function(k,_,A){for(var P="no-"+_;k;){var N=k.classList;if(N.contains(_))return!0;if(N.contains(P))return!1;k=k.parentElement}return!!A}},languages:{plain:o,plaintext:o,text:o,txt:o,extend:function(k,_){var A=l.util.clone(l.languages[k]);for(var P in _)A[P]=_[P];return A},insertBefore:function(k,_,A,P){P=P||l.languages;var N=P[k],I={};for(var L in N)if(N.hasOwnProperty(L)){if(L==_)for(var j in A)A.hasOwnProperty(j)&&(I[j]=A[j]);A.hasOwnProperty(L)||(I[L]=N[L])}var z=P[k];return P[k]=I,l.languages.DFS(l.languages,function(Q,ue){ue===z&&Q!=k&&(this[Q]=I)}),I},DFS:function k(_,A,P,N){N=N||{};var I=l.util.objId;for(var L in _)if(_.hasOwnProperty(L)){A.call(_,L,_[L],P||L);var j=_[L],z=l.util.type(j);z==="Object"&&!N[I(j)]?(N[I(j)]=!0,k(j,A,null,N)):z==="Array"&&!N[I(j)]&&(N[I(j)]=!0,k(j,A,L,N))}}},plugins:{},highlightAll:function(k,_){l.highlightAllUnder(document,k,_)},highlightAllUnder:function(k,_,A){var P={callback:A,container:k,selector:'code[class*="language-"], [class*="language-"] code, code[class*="lang-"], [class*="lang-"] code'};l.hooks.run("before-highlightall",P),P.elements=Array.prototype.slice.apply(P.container.querySelectorAll(P.selector)),l.hooks.run("before-all-elements-highlight",P);for(var N=0,I;I=P.elements[N++];)l.highlightElement(I,_===!0,P.callback)},highlightElement:function(k,_,A){var P=l.util.getLanguage(k),N=l.languages[P];l.util.setLanguage(k,P);var I=k.parentElement;I&&I.nodeName.toLowerCase()==="pre"&&l.util.setLanguage(I,P);var L=k.textContent,j={element:k,language:P,grammar:N,code:L};function z(ue){j.highlightedCode=ue,l.hooks.run("before-insert",j),j.element.innerHTML=j.highlightedCode,l.hooks.run("after-highlight",j),l.hooks.run("complete",j),A&&A.call(j.element)}if(l.hooks.run("before-sanity-check",j),I=j.element.parentElement,I&&I.nodeName.toLowerCase()==="pre"&&!I.hasAttribute("tabindex")&&I.setAttribute("tabindex","0"),!j.code){l.hooks.run("complete",j),A&&A.call(j.element);return}if(l.hooks.run("before-highlight",j),!j.grammar){z(l.util.encode(j.code));return}if(_&&r.Worker){var Q=new Worker(l.filename);Q.onmessage=function(ue){z(ue.data)},Q.postMessage(JSON.stringify({language:j.language,code:j.code,immediateClose:!0}))}else z(l.highlight(j.code,j.grammar,j.language))},highlight:function(k,_,A){var P={code:k,grammar:_,language:A};if(l.hooks.run("before-tokenize",P),!P.grammar)throw new Error('The language "'+P.language+'" has no grammar.');return P.tokens=l.tokenize(P.code,P.grammar),l.hooks.run("after-tokenize",P),u.stringify(l.util.encode(P.tokens),P.language)},tokenize:function(k,_){var A=_.rest;if(A){for(var P in A)_[P]=A[P];delete _.rest}var N=new g;return y(N,N.head,k),f(k,N,_,N.head,0),v(N)},hooks:{all:{},add:function(k,_){var A=l.hooks.all;A[k]=A[k]||[],A[k].push(_)},run:function(k,_){var A=l.hooks.all[k];if(!(!A||!A.length))for(var P=0,N;N=A[P++];)N(_)}},Token:u};r.Prism=l;function u(k,_,A,P){this.type=k,this.content=_,this.alias=A,this.length=(P||"").length|0}u.stringify=function k(_,A){if(typeof _=="string")return _;if(Array.isArray(_)){var P="";return _.forEach(function(z){P+=k(z,A)}),P}var N={type:_.type,content:k(_.content,A),tag:"span",classes:["token",_.type],attributes:{},language:A},I=_.alias;I&&(Array.isArray(I)?Array.prototype.push.apply(N.classes,I):N.classes.push(I)),l.hooks.run("wrap",N);var L="";for(var j in N.attributes)L+=" "+j+'="'+(N.attributes[j]||"").replace(/"/g,""")+'"';return"<"+N.tag+' class="'+N.classes.join(" ")+'"'+L+">"+N.content+""};function d(k,_,A,P){k.lastIndex=_;var N=k.exec(A);if(N&&P&&N[1]){var I=N[1].length;N.index+=I,N[0]=N[0].slice(I)}return N}function f(k,_,A,P,N,I){for(var L in A)if(!(!A.hasOwnProperty(L)||!A[L])){var j=A[L];j=Array.isArray(j)?j:[j];for(var z=0;z=I.reach);ce+=q.value.length,q=q.next){var H=q.value;if(_.length>k.length)return;if(!(H instanceof u)){var K=1,ae;if(me){if(ae=d(G,ce,k,re),!ae||ae.index>=k.length)break;var le=ae.index,J=ae.index+ae[0].length,ee=ce;for(ee+=q.value.length;le>=ee;)q=q.next,ee+=q.value.length;if(ee-=q.value.length,ce=ee,q.value instanceof u)continue;for(var Z=q;Z!==_.tail&&(eeI.reach&&(I.reach=Ie);var qe=q.prev;fe&&(qe=y(_,qe,fe),ce+=fe.length),h(_,qe,K);var tt=new u(L,ue?l.tokenize(ke,ue):ke,ge,ke);if(q=y(_,qe,tt),xe&&y(_,q,xe),K>1){var Ge={cause:L+","+z,reach:Ie};f(k,_,A,q.prev,ce,Ge),I&&Ge.reach>I.reach&&(I.reach=Ge.reach)}}}}}}function g(){var k={value:null,prev:null,next:null},_={value:null,prev:k,next:null};k.next=_,this.head=k,this.tail=_,this.length=0}function y(k,_,A){var P=_.next,N={value:A,prev:_,next:P};return _.next=N,P.prev=N,k.length++,N}function h(k,_,A){for(var P=_.next,N=0;N/,greedy:!0},prolog:{pattern:/<\?[\s\S]+?\?>/,greedy:!0},doctype:{pattern:/"'[\]]|"[^"]*"|'[^']*')+(?:\[(?:[^<"'\]]|"[^"]*"|'[^']*'|<(?!!--)|)*\]\s*)?>/i,greedy:!0,inside:{"internal-subset":{pattern:/(^[^\[]*\[)[\s\S]+(?=\]>$)/,lookbehind:!0,greedy:!0,inside:null},string:{pattern:/"[^"]*"|'[^']*'/,greedy:!0},punctuation:/^$|[[\]]/,"doctype-tag":/^DOCTYPE/i,name:/[^\s<>'"]+/}},cdata:{pattern://i,greedy:!0},tag:{pattern:/<\/?(?!\d)[^\s>\/=$<%]+(?:\s(?:\s*[^\s>\/=]+(?:\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))|(?=[\s/>])))+)?\s*\/?>/,greedy:!0,inside:{tag:{pattern:/^<\/?[^\s>\/]+/,inside:{punctuation:/^<\/?/,namespace:/^[^\s>\/:]+:/}},"special-attr":[],"attr-value":{pattern:/=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+)/,inside:{punctuation:[{pattern:/^=/,alias:"attr-equals"},/"|'/]}},punctuation:/\/?>/,"attr-name":{pattern:/[^\s>\/]+/,inside:{namespace:/^[^\s>\/:]+:/}}}},entity:[{pattern:/&[\da-z]{1,8};/i,alias:"named-entity"},/&#x?[\da-f]{1,8};/i]},t.languages.markup.tag.inside["attr-value"].inside.entity=t.languages.markup.entity,t.languages.markup.doctype.inside["internal-subset"].inside=t.languages.markup,t.hooks.add("wrap",function(n){n.type==="entity"&&(n.attributes.title=n.content.value.replace(/&/,"&"))}),Object.defineProperty(t.languages.markup.tag,"addInlined",{value:function(r,a){var i={};i["language-"+a]={pattern:/(^$)/i,lookbehind:!0,inside:t.languages[a]},i.cdata=/^$/i;var o={"included-cdata":{pattern://i,inside:i}};o["language-"+a]={pattern:/[\s\S]+/,inside:t.languages[a]};var l={};l[r]={pattern:RegExp(/(<__[^>]*>)(?:))*\]\]>|(?!)/.source.replace(/__/g,function(){return r}),"i"),lookbehind:!0,greedy:!0,inside:o},t.languages.insertBefore("markup","cdata",l)}}),Object.defineProperty(t.languages.markup.tag,"addAttribute",{value:function(n,r){t.languages.markup.tag.inside["special-attr"].push({pattern:RegExp(/(^|["'\s])/.source+"(?:"+n+")"+/\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))/.source,"i"),lookbehind:!0,inside:{"attr-name":/^[^\s=]+/,"attr-value":{pattern:/=[\s\S]+/,inside:{value:{pattern:/(^=\s*(["']|(?!["'])))\S[\s\S]*(?=\2$)/,lookbehind:!0,alias:[r,"language-"+r],inside:t.languages[r]},punctuation:[{pattern:/^=/,alias:"attr-equals"},/"|'/]}}}})}}),t.languages.html=t.languages.markup,t.languages.mathml=t.languages.markup,t.languages.svg=t.languages.markup,t.languages.xml=t.languages.extend("markup",{}),t.languages.ssml=t.languages.xml,t.languages.atom=t.languages.xml,t.languages.rss=t.languages.xml}return YN}var KN,_q;function Nje(){if(_q)return KN;_q=1,KN=e,e.displayName="css",e.aliases=[];function e(t){(function(n){var r=/(?:"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n])*')/;n.languages.css={comment:/\/\*[\s\S]*?\*\//,atrule:{pattern:/@[\w-](?:[^;{\s]|\s+(?![\s{]))*(?:;|(?=\s*\{))/,inside:{rule:/^@[\w-]+/,"selector-function-argument":{pattern:/(\bselector\s*\(\s*(?![\s)]))(?:[^()\s]|\s+(?![\s)])|\((?:[^()]|\([^()]*\))*\))+(?=\s*\))/,lookbehind:!0,alias:"selector"},keyword:{pattern:/(^|[^\w-])(?:and|not|only|or)(?![\w-])/,lookbehind:!0}}},url:{pattern:RegExp("\\burl\\((?:"+r.source+"|"+/(?:[^\\\r\n()"']|\\[\s\S])*/.source+")\\)","i"),greedy:!0,inside:{function:/^url/i,punctuation:/^\(|\)$/,string:{pattern:RegExp("^"+r.source+"$"),alias:"url"}}},selector:{pattern:RegExp(`(^|[{}\\s])[^{}\\s](?:[^{};"'\\s]|\\s+(?![\\s{])|`+r.source+")*(?=\\s*\\{)"),lookbehind:!0},string:{pattern:r,greedy:!0},property:{pattern:/(^|[^-\w\xA0-\uFFFF])(?!\s)[-_a-z\xA0-\uFFFF](?:(?!\s)[-\w\xA0-\uFFFF])*(?=\s*:)/i,lookbehind:!0},important:/!important\b/i,function:{pattern:/(^|[^-a-z0-9])[-a-z0-9]+(?=\()/i,lookbehind:!0},punctuation:/[(){};:,]/},n.languages.css.atrule.inside.rest=n.languages.css;var a=n.languages.markup;a&&(a.tag.addInlined("style","css"),a.tag.addAttribute("style","css"))})(t)}return KN}var XN,Oq;function Mje(){if(Oq)return XN;Oq=1,XN=e,e.displayName="clike",e.aliases=[];function e(t){t.languages.clike={comment:[{pattern:/(^|[^\\])\/\*[\s\S]*?(?:\*\/|$)/,lookbehind:!0,greedy:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],string:{pattern:/(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,greedy:!0},"class-name":{pattern:/(\b(?:class|extends|implements|instanceof|interface|new|trait)\s+|\bcatch\s+\()[\w.\\]+/i,lookbehind:!0,inside:{punctuation:/[.\\]/}},keyword:/\b(?:break|catch|continue|do|else|finally|for|function|if|in|instanceof|new|null|return|throw|try|while)\b/,boolean:/\b(?:false|true)\b/,function:/\b\w+(?=\()/,number:/\b0x[\da-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?/i,operator:/[<>]=?|[!=]=?=?|--?|\+\+?|&&?|\|\|?|[?*/~^%]/,punctuation:/[{}[\];(),.:]/}}return XN}var QN,Rq;function Ije(){if(Rq)return QN;Rq=1,QN=e,e.displayName="javascript",e.aliases=["js"];function e(t){t.languages.javascript=t.languages.extend("clike",{"class-name":[t.languages.clike["class-name"],{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$A-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\.(?:constructor|prototype))/,lookbehind:!0}],keyword:[{pattern:/((?:^|\})\s*)catch\b/,lookbehind:!0},{pattern:/(^|[^.]|\.\.\.\s*)\b(?:as|assert(?=\s*\{)|async(?=\s*(?:function\b|\(|[$\w\xA0-\uFFFF]|$))|await|break|case|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally(?=\s*(?:\{|$))|for|from(?=\s*(?:['"]|$))|function|(?:get|set)(?=\s*(?:[#\[$\w\xA0-\uFFFF]|$))|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)\b/,lookbehind:!0}],function:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*(?:\.\s*(?:apply|bind|call)\s*)?\()/,number:{pattern:RegExp(/(^|[^\w$])/.source+"(?:"+(/NaN|Infinity/.source+"|"+/0[bB][01]+(?:_[01]+)*n?/.source+"|"+/0[oO][0-7]+(?:_[0-7]+)*n?/.source+"|"+/0[xX][\dA-Fa-f]+(?:_[\dA-Fa-f]+)*n?/.source+"|"+/\d+(?:_\d+)*n/.source+"|"+/(?:\d+(?:_\d+)*(?:\.(?:\d+(?:_\d+)*)?)?|\.\d+(?:_\d+)*)(?:[Ee][+-]?\d+(?:_\d+)*)?/.source)+")"+/(?![\w$])/.source),lookbehind:!0},operator:/--|\+\+|\*\*=?|=>|&&=?|\|\|=?|[!=]==|<<=?|>>>?=?|[-+*/%&|^!=<>]=?|\.{3}|\?\?=?|\?\.?|[~:]/}),t.languages.javascript["class-name"][0].pattern=/(\b(?:class|extends|implements|instanceof|interface|new)\s+)[\w.\\]+/,t.languages.insertBefore("javascript","keyword",{regex:{pattern:/((?:^|[^$\w\xA0-\uFFFF."'\])\s]|\b(?:return|yield))\s*)\/(?:\[(?:[^\]\\\r\n]|\\.)*\]|\\.|[^/\\\[\r\n])+\/[dgimyus]{0,7}(?=(?:\s|\/\*(?:[^*]|\*(?!\/))*\*\/)*(?:$|[\r\n,.;:})\]]|\/\/))/,lookbehind:!0,greedy:!0,inside:{"regex-source":{pattern:/^(\/)[\s\S]+(?=\/[a-z]*$)/,lookbehind:!0,alias:"language-regex",inside:t.languages.regex},"regex-delimiter":/^\/|\/$/,"regex-flags":/^[a-z]+$/}},"function-variable":{pattern:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*[=:]\s*(?:async\s*)?(?:\bfunction\b|(?:\((?:[^()]|\([^()]*\))*\)|(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)\s*=>))/,alias:"function"},parameter:[{pattern:/(function(?:\s+(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)?\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\))/,lookbehind:!0,inside:t.languages.javascript},{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$a-z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*=>)/i,lookbehind:!0,inside:t.languages.javascript},{pattern:/(\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*=>)/,lookbehind:!0,inside:t.languages.javascript},{pattern:/((?:\b|\s|^)(?!(?:as|async|await|break|case|catch|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally|for|from|function|get|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|set|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)(?![$\w\xA0-\uFFFF]))(?:(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*)\(\s*|\]\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*\{)/,lookbehind:!0,inside:t.languages.javascript}],constant:/\b[A-Z](?:[A-Z_]|\dx?)*\b/}),t.languages.insertBefore("javascript","string",{hashbang:{pattern:/^#!.*/,greedy:!0,alias:"comment"},"template-string":{pattern:/`(?:\\[\s\S]|\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}|(?!\$\{)[^\\`])*`/,greedy:!0,inside:{"template-punctuation":{pattern:/^`|`$/,alias:"string"},interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}/,lookbehind:!0,inside:{"interpolation-punctuation":{pattern:/^\$\{|\}$/,alias:"punctuation"},rest:t.languages.javascript}},string:/[\s\S]+/}},"string-property":{pattern:/((?:^|[,{])[ \t]*)(["'])(?:\\(?:\r\n|[\s\S])|(?!\2)[^\\\r\n])*\2(?=\s*:)/m,lookbehind:!0,greedy:!0,alias:"property"}}),t.languages.insertBefore("javascript","operator",{"literal-property":{pattern:/((?:^|[,{])[ \t]*)(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*:)/m,lookbehind:!0,alias:"property"}}),t.languages.markup&&(t.languages.markup.tag.addInlined("script","javascript"),t.languages.markup.tag.addAttribute(/on(?:abort|blur|change|click|composition(?:end|start|update)|dblclick|error|focus(?:in|out)?|key(?:down|up)|load|mouse(?:down|enter|leave|move|out|over|up)|reset|resize|scroll|select|slotchange|submit|unload|wheel)/.source,"javascript")),t.languages.js=t.languages.javascript}return QN}var JN,Pq;function Dje(){if(Pq)return JN;Pq=1;var e=typeof globalThis=="object"?globalThis:typeof self=="object"?self:typeof window=="object"?window:typeof Pl=="object"?Pl:{},t=P();e.Prism={manual:!0,disableWorkerMessageHandler:!0};var n=C3e(),r=Rje(),a=Pje(),i=Aje(),o=Nje(),l=Mje(),u=Ije();t();var d={}.hasOwnProperty;function f(){}f.prototype=a;var g=new f;JN=g,g.highlight=v,g.register=y,g.alias=h,g.registered=E,g.listLanguages=T,y(i),y(o),y(l),y(u),g.util.encode=_,g.Token.stringify=C;function y(N){if(typeof N!="function"||!N.displayName)throw new Error("Expected `function` for `grammar`, got `"+N+"`");g.languages[N.displayName]===void 0&&N(g)}function h(N,I){var L=g.languages,j=N,z,Q,ue,re;I&&(j={},j[N]=I);for(z in j)for(Q=j[z],Q=typeof Q=="string"?[Q]:Q,ue=Q.length,re=-1;++re code[class*="language-"]':{background:"#f5f2f0",padding:".1em",borderRadius:".3em",whiteSpace:"normal"},comment:{color:"slategray"},prolog:{color:"slategray"},doctype:{color:"slategray"},cdata:{color:"slategray"},punctuation:{color:"#999"},namespace:{Opacity:".7"},property:{color:"#905"},tag:{color:"#905"},boolean:{color:"#905"},number:{color:"#905"},constant:{color:"#905"},symbol:{color:"#905"},deleted:{color:"#905"},selector:{color:"#690"},"attr-name":{color:"#690"},string:{color:"#690"},char:{color:"#690"},builtin:{color:"#690"},inserted:{color:"#690"},operator:{color:"#9a6e3a",background:"hsla(0, 0%, 100%, .5)"},entity:{color:"#9a6e3a",background:"hsla(0, 0%, 100%, .5)",cursor:"help"},url:{color:"#9a6e3a",background:"hsla(0, 0%, 100%, .5)"},".language-css .token.string":{color:"#9a6e3a",background:"hsla(0, 0%, 100%, .5)"},".style .token.string":{color:"#9a6e3a",background:"hsla(0, 0%, 100%, .5)"},atrule:{color:"#07a"},"attr-value":{color:"#07a"},keyword:{color:"#07a"},function:{color:"#DD4A68"},"class-name":{color:"#DD4A68"},regex:{color:"#e90"},important:{color:"#e90",fontWeight:"bold"},variable:{color:"#e90"},bold:{fontWeight:"bold"},italic:{fontStyle:"italic"}};var ZN,Aq;function Lje(){if(Aq)return ZN;Aq=1,ZN=e,e.displayName="abap",e.aliases=[];function e(t){t.languages.abap={comment:/^\*.*/m,string:/(`|')(?:\\.|(?!\1)[^\\\r\n])*\1/,"string-template":{pattern:/([|}])(?:\\.|[^\\|{\r\n])*(?=[|{])/,lookbehind:!0,alias:"string"},"eol-comment":{pattern:/(^|\s)".*/m,lookbehind:!0,alias:"comment"},keyword:{pattern:/(\s|\.|^)(?:SCIENTIFIC_WITH_LEADING_ZERO|SCALE_PRESERVING_SCIENTIFIC|RMC_COMMUNICATION_FAILURE|END-ENHANCEMENT-SECTION|MULTIPLY-CORRESPONDING|SUBTRACT-CORRESPONDING|VERIFICATION-MESSAGE|DIVIDE-CORRESPONDING|ENHANCEMENT-SECTION|CURRENCY_CONVERSION|RMC_SYSTEM_FAILURE|START-OF-SELECTION|MOVE-CORRESPONDING|RMC_INVALID_STATUS|CUSTOMER-FUNCTION|END-OF-DEFINITION|ENHANCEMENT-POINT|SYSTEM-EXCEPTIONS|ADD-CORRESPONDING|SCALE_PRESERVING|SELECTION-SCREEN|CURSOR-SELECTION|END-OF-SELECTION|LOAD-OF-PROGRAM|SCROLL-BOUNDARY|SELECTION-TABLE|EXCEPTION-TABLE|IMPLEMENTATIONS|PARAMETER-TABLE|RIGHT-JUSTIFIED|UNIT_CONVERSION|AUTHORITY-CHECK|LIST-PROCESSING|SIGN_AS_POSTFIX|COL_BACKGROUND|IMPLEMENTATION|INTERFACE-POOL|TRANSFORMATION|IDENTIFICATION|ENDENHANCEMENT|LINE-SELECTION|INITIALIZATION|LEFT-JUSTIFIED|SELECT-OPTIONS|SELECTION-SETS|COMMUNICATION|CORRESPONDING|DECIMAL_SHIFT|PRINT-CONTROL|VALUE-REQUEST|CHAIN-REQUEST|FUNCTION-POOL|FIELD-SYMBOLS|FUNCTIONALITY|INVERTED-DATE|SELECTION-SET|CLASS-METHODS|OUTPUT-LENGTH|CLASS-CODING|COL_NEGATIVE|ERRORMESSAGE|FIELD-GROUPS|HELP-REQUEST|NO-EXTENSION|NO-TOPOFPAGE|REDEFINITION|DISPLAY-MODE|ENDINTERFACE|EXIT-COMMAND|FIELD-SYMBOL|NO-SCROLLING|SHORTDUMP-ID|ACCESSPOLICY|CLASS-EVENTS|COL_POSITIVE|DECLARATIONS|ENHANCEMENTS|FILTER-TABLE|SWITCHSTATES|SYNTAX-CHECK|TRANSPORTING|ASYNCHRONOUS|SYNTAX-TRACE|TOKENIZATION|USER-COMMAND|WITH-HEADING|ABAP-SOURCE|BREAK-POINT|CHAIN-INPUT|COMPRESSION|FIXED-POINT|NEW-SECTION|NON-UNICODE|OCCURRENCES|RESPONSIBLE|SYSTEM-CALL|TRACE-TABLE|ABBREVIATED|CHAR-TO-HEX|END-OF-FILE|ENDFUNCTION|ENVIRONMENT|ASSOCIATION|COL_HEADING|EDITOR-CALL|END-OF-PAGE|ENGINEERING|IMPLEMENTED|INTENSIFIED|RADIOBUTTON|SYSTEM-EXIT|TOP-OF-PAGE|TRANSACTION|APPLICATION|CONCATENATE|DESTINATION|ENHANCEMENT|IMMEDIATELY|NO-GROUPING|PRECOMPILED|REPLACEMENT|TITLE-LINES|ACTIVATION|BYTE-ORDER|CLASS-POOL|CONNECTION|CONVERSION|DEFINITION|DEPARTMENT|EXPIRATION|INHERITING|MESSAGE-ID|NO-HEADING|PERFORMING|QUEUE-ONLY|RIGHTSPACE|SCIENTIFIC|STATUSINFO|STRUCTURES|SYNCPOINTS|WITH-TITLE|ATTRIBUTES|BOUNDARIES|CLASS-DATA|COL_NORMAL|DD\/MM\/YYYY|DESCENDING|INTERFACES|LINE-COUNT|MM\/DD\/YYYY|NON-UNIQUE|PRESERVING|SELECTIONS|STATEMENTS|SUBROUTINE|TRUNCATION|TYPE-POOLS|ARITHMETIC|BACKGROUND|ENDPROVIDE|EXCEPTIONS|IDENTIFIER|INDEX-LINE|OBLIGATORY|PARAMETERS|PERCENTAGE|PUSHBUTTON|RESOLUTION|COMPONENTS|DEALLOCATE|DISCONNECT|DUPLICATES|FIRST-LINE|HEAD-LINES|NO-DISPLAY|OCCURRENCE|RESPECTING|RETURNCODE|SUBMATCHES|TRACE-FILE|ASCENDING|BYPASSING|ENDMODULE|EXCEPTION|EXCLUDING|EXPORTING|INCREMENT|MATCHCODE|PARAMETER|PARTIALLY|PREFERRED|REFERENCE|REPLACING|RETURNING|SELECTION|SEPARATED|SPECIFIED|STATEMENT|TIMESTAMP|TYPE-POOL|ACCEPTING|APPENDAGE|ASSIGNING|COL_GROUP|COMPARING|CONSTANTS|DANGEROUS|IMPORTING|INSTANCES|LEFTSPACE|LOG-POINT|QUICKINFO|READ-ONLY|SCROLLING|SQLSCRIPT|STEP-LOOP|TOP-LINES|TRANSLATE|APPENDING|AUTHORITY|CHARACTER|COMPONENT|CONDITION|DIRECTORY|DUPLICATE|MESSAGING|RECEIVING|SUBSCREEN|ACCORDING|COL_TOTAL|END-LINES|ENDMETHOD|ENDSELECT|EXPANDING|EXTENSION|INCLUDING|INFOTYPES|INTERFACE|INTERVALS|LINE-SIZE|PF-STATUS|PROCEDURE|PROTECTED|REQUESTED|RESUMABLE|RIGHTPLUS|SAP-SPOOL|SECONDARY|STRUCTURE|SUBSTRING|TABLEVIEW|NUMOFCHAR|ADJACENT|ANALYSIS|ASSIGNED|BACKWARD|CHANNELS|CHECKBOX|CONTINUE|CRITICAL|DATAINFO|DD\/MM\/YY|DURATION|ENCODING|ENDCLASS|FUNCTION|LEFTPLUS|LINEFEED|MM\/DD\/YY|OVERFLOW|RECEIVED|SKIPPING|SORTABLE|STANDARD|SUBTRACT|SUPPRESS|TABSTRIP|TITLEBAR|TRUNCATE|UNASSIGN|WHENEVER|ANALYZER|COALESCE|COMMENTS|CONDENSE|DECIMALS|DEFERRED|ENDWHILE|EXPLICIT|KEYWORDS|MESSAGES|POSITION|PRIORITY|RECEIVER|RENAMING|TIMEZONE|TRAILING|ALLOCATE|CENTERED|CIRCULAR|CONTROLS|CURRENCY|DELETING|DESCRIBE|DISTANCE|ENDCATCH|EXPONENT|EXTENDED|GENERATE|IGNORING|INCLUDES|INTERNAL|MAJOR-ID|MODIFIER|NEW-LINE|OPTIONAL|PROPERTY|ROLLBACK|STARTING|SUPPLIED|ABSTRACT|CHANGING|CONTEXTS|CREATING|CUSTOMER|DATABASE|DAYLIGHT|DEFINING|DISTINCT|DIVISION|ENABLING|ENDCHAIN|ESCAPING|HARMLESS|IMPLICIT|INACTIVE|LANGUAGE|MINOR-ID|MULTIPLY|NEW-PAGE|NO-TITLE|POS_HIGH|SEPARATE|TEXTPOOL|TRANSFER|SELECTOR|DBMAXLEN|ITERATOR|ARCHIVE|BIT-XOR|BYTE-CO|COLLECT|COMMENT|CURRENT|DEFAULT|DISPLAY|ENDFORM|EXTRACT|LEADING|LISTBOX|LOCATOR|MEMBERS|METHODS|NESTING|POS_LOW|PROCESS|PROVIDE|RAISING|RESERVE|SECONDS|SUMMARY|VISIBLE|BETWEEN|BIT-AND|BYTE-CS|CLEANUP|COMPUTE|CONTROL|CONVERT|DATASET|ENDCASE|FORWARD|HEADERS|HOTSPOT|INCLUDE|INVERSE|KEEPING|NO-ZERO|OBJECTS|OVERLAY|PADDING|PATTERN|PROGRAM|REFRESH|SECTION|SUMMING|TESTING|VERSION|WINDOWS|WITHOUT|BIT-NOT|BYTE-CA|BYTE-NA|CASTING|CONTEXT|COUNTRY|DYNAMIC|ENABLED|ENDLOOP|EXECUTE|FRIENDS|HANDLER|HEADING|INITIAL|\*-INPUT|LOGFILE|MAXIMUM|MINIMUM|NO-GAPS|NO-SIGN|PRAGMAS|PRIMARY|PRIVATE|REDUCED|REPLACE|REQUEST|RESULTS|UNICODE|WARNING|ALIASES|BYTE-CN|BYTE-NS|CALLING|COL_KEY|COLUMNS|CONNECT|ENDEXEC|ENTRIES|EXCLUDE|FILTERS|FURTHER|HELP-ID|LOGICAL|MAPPING|MESSAGE|NAMETAB|OPTIONS|PACKAGE|PERFORM|RECEIVE|STATICS|VARYING|BINDING|CHARLEN|GREATER|XSTRLEN|ACCEPT|APPEND|DETAIL|ELSEIF|ENDING|ENDTRY|FORMAT|FRAMES|GIVING|HASHED|HEADER|IMPORT|INSERT|MARGIN|MODULE|NATIVE|OBJECT|OFFSET|REMOTE|RESUME|SAVING|SIMPLE|SUBMIT|TABBED|TOKENS|UNIQUE|UNPACK|UPDATE|WINDOW|YELLOW|ACTUAL|ASPECT|CENTER|CURSOR|DELETE|DIALOG|DIVIDE|DURING|ERRORS|EVENTS|EXTEND|FILTER|HANDLE|HAVING|IGNORE|LITTLE|MEMORY|NO-GAP|OCCURS|OPTION|PERSON|PLACES|PUBLIC|REDUCE|REPORT|RESULT|SINGLE|SORTED|SWITCH|SYNTAX|TARGET|VALUES|WRITER|ASSERT|BLOCKS|BOUNDS|BUFFER|CHANGE|COLUMN|COMMIT|CONCAT|COPIES|CREATE|DDMMYY|DEFINE|ENDIAN|ESCAPE|EXPAND|KERNEL|LAYOUT|LEGACY|LEVELS|MMDDYY|NUMBER|OUTPUT|RANGES|READER|RETURN|SCREEN|SEARCH|SELECT|SHARED|SOURCE|STABLE|STATIC|SUBKEY|SUFFIX|TABLES|UNWIND|YYMMDD|ASSIGN|BACKUP|BEFORE|BINARY|BIT-OR|BLANKS|CLIENT|CODING|COMMON|DEMAND|DYNPRO|EXCEPT|EXISTS|EXPORT|FIELDS|GLOBAL|GROUPS|LENGTH|LOCALE|MEDIUM|METHOD|MODIFY|NESTED|OTHERS|REJECT|SCROLL|SUPPLY|SYMBOL|ENDFOR|STRLEN|ALIGN|BEGIN|BOUND|ENDAT|ENTRY|EVENT|FINAL|FLUSH|GRANT|INNER|SHORT|USING|WRITE|AFTER|BLACK|BLOCK|CLOCK|COLOR|COUNT|DUMMY|EMPTY|ENDDO|ENDON|GREEN|INDEX|INOUT|LEAVE|LEVEL|LINES|MODIF|ORDER|OUTER|RANGE|RESET|RETRY|RIGHT|SMART|SPLIT|STYLE|TABLE|THROW|UNDER|UNTIL|UPPER|UTF-8|WHERE|ALIAS|BLANK|CLEAR|CLOSE|EXACT|FETCH|FIRST|FOUND|GROUP|LLANG|LOCAL|OTHER|REGEX|SPOOL|TITLE|TYPES|VALID|WHILE|ALPHA|BOXED|CATCH|CHAIN|CHECK|CLASS|COVER|ENDIF|EQUIV|FIELD|FLOOR|FRAME|INPUT|LOWER|MATCH|NODES|PAGES|PRINT|RAISE|ROUND|SHIFT|SPACE|SPOTS|STAMP|STATE|TASKS|TIMES|TRMAC|ULINE|UNION|VALUE|WIDTH|EQUAL|LOG10|TRUNC|BLOB|CASE|CEIL|CLOB|COND|EXIT|FILE|GAPS|HOLD|INCL|INTO|KEEP|KEYS|LAST|LINE|LONG|LPAD|MAIL|MODE|OPEN|PINK|READ|ROWS|TEST|THEN|ZERO|AREA|BACK|BADI|BYTE|CAST|EDIT|EXEC|FAIL|FIND|FKEQ|FONT|FREE|GKEQ|HIDE|INIT|ITNO|LATE|LOOP|MAIN|MARK|MOVE|NEXT|NULL|RISK|ROLE|UNIT|WAIT|ZONE|BASE|CALL|CODE|DATA|DATE|FKGE|GKGE|HIGH|KIND|LEFT|LIST|MASK|MESH|NAME|NODE|PACK|PAGE|POOL|SEND|SIGN|SIZE|SOME|STOP|TASK|TEXT|TIME|USER|VARY|WITH|WORD|BLUE|CONV|COPY|DEEP|ELSE|FORM|FROM|HINT|ICON|JOIN|LIKE|LOAD|ONLY|PART|SCAN|SKIP|SORT|TYPE|UNIX|VIEW|WHEN|WORK|ACOS|ASIN|ATAN|COSH|EACH|FRAC|LESS|RTTI|SINH|SQRT|TANH|AVG|BIT|DIV|ISO|LET|OUT|PAD|SQL|ALL|CI_|CPI|END|LOB|LPI|MAX|MIN|NEW|OLE|RUN|SET|\?TO|YES|ABS|ADD|AND|BIG|FOR|HDB|JOB|LOW|NOT|SAP|TRY|VIA|XML|ANY|GET|IDS|KEY|MOD|OFF|PUT|RAW|RED|REF|SUM|TAB|XSD|CNT|COS|EXP|LOG|SIN|TAN|XOR|AT|CO|CP|DO|GT|ID|IF|NS|OR|BT|CA|CS|GE|NA|NB|EQ|IN|LT|NE|NO|OF|ON|PF|TO|AS|BY|CN|IS|LE|NP|UP|E|I|M|O|Z|C|X)\b/i,lookbehind:!0},number:/\b\d+\b/,operator:{pattern:/(\s)(?:\*\*?|<[=>]?|>=?|\?=|[-+\/=])(?=\s)/,lookbehind:!0},"string-operator":{pattern:/(\s)&&?(?=\s)/,lookbehind:!0,alias:"keyword"},"token-operator":[{pattern:/(\w)(?:->?|=>|[~|{}])(?=\w)/,lookbehind:!0,alias:"punctuation"},{pattern:/[|{}]/,alias:"punctuation"}],punctuation:/[,.:()]/}}return ZN}var e2,Nq;function Fje(){if(Nq)return e2;Nq=1,e2=e,e.displayName="abnf",e.aliases=[];function e(t){(function(n){var r="(?:ALPHA|BIT|CHAR|CR|CRLF|CTL|DIGIT|DQUOTE|HEXDIG|HTAB|LF|LWSP|OCTET|SP|VCHAR|WSP)";n.languages.abnf={comment:/;.*/,string:{pattern:/(?:%[is])?"[^"\n\r]*"/,greedy:!0,inside:{punctuation:/^%[is]/}},range:{pattern:/%(?:b[01]+-[01]+|d\d+-\d+|x[A-F\d]+-[A-F\d]+)/i,alias:"number"},terminal:{pattern:/%(?:b[01]+(?:\.[01]+)*|d\d+(?:\.\d+)*|x[A-F\d]+(?:\.[A-F\d]+)*)/i,alias:"number"},repetition:{pattern:/(^|[^\w-])(?:\d*\*\d*|\d+)/,lookbehind:!0,alias:"operator"},definition:{pattern:/(^[ \t]*)(?:[a-z][\w-]*|<[^<>\r\n]*>)(?=\s*=)/m,lookbehind:!0,alias:"keyword",inside:{punctuation:/<|>/}},"core-rule":{pattern:RegExp("(?:(^|[^<\\w-])"+r+"|<"+r+">)(?![\\w-])","i"),lookbehind:!0,alias:["rule","constant"],inside:{punctuation:/<|>/}},rule:{pattern:/(^|[^<\w-])[a-z][\w-]*|<[^<>\r\n]*>/i,lookbehind:!0,inside:{punctuation:/<|>/}},operator:/=\/?|\//,punctuation:/[()\[\]]/}})(t)}return e2}var t2,Mq;function jje(){if(Mq)return t2;Mq=1,t2=e,e.displayName="actionscript",e.aliases=[];function e(t){t.languages.actionscript=t.languages.extend("javascript",{keyword:/\b(?:as|break|case|catch|class|const|default|delete|do|dynamic|each|else|extends|final|finally|for|function|get|if|implements|import|in|include|instanceof|interface|internal|is|namespace|native|new|null|override|package|private|protected|public|return|set|static|super|switch|this|throw|try|typeof|use|var|void|while|with)\b/,operator:/\+\+|--|(?:[+\-*\/%^]|&&?|\|\|?|<>?>?|[!=]=?)=?|[~?@]/}),t.languages.actionscript["class-name"].alias="function",delete t.languages.actionscript.parameter,delete t.languages.actionscript["literal-property"],t.languages.markup&&t.languages.insertBefore("actionscript","string",{xml:{pattern:/(^|[^.])<\/?\w+(?:\s+[^\s>\/=]+=("|')(?:\\[\s\S]|(?!\2)[^\\])*\2)*\s*\/?>/,lookbehind:!0,inside:t.languages.markup}})}return t2}var n2,Iq;function Uje(){if(Iq)return n2;Iq=1,n2=e,e.displayName="ada",e.aliases=[];function e(t){t.languages.ada={comment:/--.*/,string:/"(?:""|[^"\r\f\n])*"/,number:[{pattern:/\b\d(?:_?\d)*#[\dA-F](?:_?[\dA-F])*(?:\.[\dA-F](?:_?[\dA-F])*)?#(?:E[+-]?\d(?:_?\d)*)?/i},{pattern:/\b\d(?:_?\d)*(?:\.\d(?:_?\d)*)?(?:E[+-]?\d(?:_?\d)*)?\b/i}],"attr-name":/\b'\w+/,keyword:/\b(?:abort|abs|abstract|accept|access|aliased|all|and|array|at|begin|body|case|constant|declare|delay|delta|digits|do|else|elsif|end|entry|exception|exit|for|function|generic|goto|if|in|interface|is|limited|loop|mod|new|not|null|of|others|out|overriding|package|pragma|private|procedure|protected|raise|range|record|rem|renames|requeue|return|reverse|select|separate|some|subtype|synchronized|tagged|task|terminate|then|type|until|use|when|while|with|xor)\b/i,boolean:/\b(?:false|true)\b/i,operator:/<[=>]?|>=?|=>?|:=|\/=?|\*\*?|[&+-]/,punctuation:/\.\.?|[,;():]/,char:/'.'/,variable:/\b[a-z](?:\w)*\b/i}}return n2}var r2,Dq;function Bje(){if(Dq)return r2;Dq=1,r2=e,e.displayName="agda",e.aliases=[];function e(t){(function(n){n.languages.agda={comment:/\{-[\s\S]*?(?:-\}|$)|--.*/,string:{pattern:/"(?:\\(?:\r\n|[\s\S])|[^\\\r\n"])*"/,greedy:!0},punctuation:/[(){}⦃⦄.;@]/,"class-name":{pattern:/((?:data|record) +)\S+/,lookbehind:!0},function:{pattern:/(^[ \t]*)(?!\s)[^:\r\n]+(?=:)/m,lookbehind:!0},operator:{pattern:/(^\s*|\s)(?:[=|:∀→λ\\?_]|->)(?=\s)/,lookbehind:!0},keyword:/\b(?:Set|abstract|constructor|data|eta-equality|field|forall|hiding|import|in|inductive|infix|infixl|infixr|instance|let|macro|module|mutual|no-eta-equality|open|overlap|pattern|postulate|primitive|private|public|quote|quoteContext|quoteGoal|quoteTerm|record|renaming|rewrite|syntax|tactic|unquote|unquoteDecl|unquoteDef|using|variable|where|with)\b/}})(t)}return r2}var a2,$q;function Wje(){if($q)return a2;$q=1,a2=e,e.displayName="al",e.aliases=[];function e(t){t.languages.al={comment:/\/\/.*|\/\*[\s\S]*?\*\//,string:{pattern:/'(?:''|[^'\r\n])*'(?!')|"(?:""|[^"\r\n])*"(?!")/,greedy:!0},function:{pattern:/(\b(?:event|procedure|trigger)\s+|(?:^|[^.])\.\s*)[a-z_]\w*(?=\s*\()/i,lookbehind:!0},keyword:[/\b(?:array|asserterror|begin|break|case|do|downto|else|end|event|exit|for|foreach|function|if|implements|in|indataset|interface|internal|local|of|procedure|program|protected|repeat|runonclient|securityfiltering|suppressdispose|temporary|then|to|trigger|until|var|while|with|withevents)\b/i,/\b(?:action|actions|addafter|addbefore|addfirst|addlast|area|assembly|chartpart|codeunit|column|controladdin|cuegroup|customizes|dataitem|dataset|dotnet|elements|enum|enumextension|extends|field|fieldattribute|fieldelement|fieldgroup|fieldgroups|fields|filter|fixed|grid|group|key|keys|label|labels|layout|modify|moveafter|movebefore|movefirst|movelast|page|pagecustomization|pageextension|part|profile|query|repeater|report|requestpage|schema|separator|systempart|table|tableelement|tableextension|textattribute|textelement|type|usercontrol|value|xmlport)\b/i],number:/\b(?:0x[\da-f]+|(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?)(?:F|LL?|U(?:LL?)?)?\b/i,boolean:/\b(?:false|true)\b/i,variable:/\b(?:Curr(?:FieldNo|Page|Report)|x?Rec|RequestOptionsPage)\b/,"class-name":/\b(?:automation|biginteger|bigtext|blob|boolean|byte|char|clienttype|code|completiontriggererrorlevel|connectiontype|database|dataclassification|datascope|date|dateformula|datetime|decimal|defaultlayout|dialog|dictionary|dotnetassembly|dotnettypedeclaration|duration|errorinfo|errortype|executioncontext|executionmode|fieldclass|fieldref|fieldtype|file|filterpagebuilder|guid|httpclient|httpcontent|httpheaders|httprequestmessage|httpresponsemessage|instream|integer|joker|jsonarray|jsonobject|jsontoken|jsonvalue|keyref|list|moduledependencyinfo|moduleinfo|none|notification|notificationscope|objecttype|option|outstream|pageresult|record|recordid|recordref|reportformat|securityfilter|sessionsettings|tableconnectiontype|tablefilter|testaction|testfield|testfilterfield|testpage|testpermissions|testrequestpage|text|textbuilder|textconst|textencoding|time|transactionmodel|transactiontype|variant|verbosity|version|view|views|webserviceactioncontext|webserviceactionresultcode|xmlattribute|xmlattributecollection|xmlcdata|xmlcomment|xmldeclaration|xmldocument|xmldocumenttype|xmlelement|xmlnamespacemanager|xmlnametable|xmlnode|xmlnodelist|xmlprocessinginstruction|xmlreadoptions|xmltext|xmlwriteoptions)\b/i,operator:/\.\.|:[=:]|[-+*/]=?|<>|[<>]=?|=|\b(?:and|div|mod|not|or|xor)\b/i,punctuation:/[()\[\]{}:.;,]/}}return a2}var i2,Lq;function zje(){if(Lq)return i2;Lq=1,i2=e,e.displayName="antlr4",e.aliases=["g4"];function e(t){t.languages.antlr4={comment:/\/\/.*|\/\*[\s\S]*?(?:\*\/|$)/,string:{pattern:/'(?:\\.|[^\\'\r\n])*'/,greedy:!0},"character-class":{pattern:/\[(?:\\.|[^\\\]\r\n])*\]/,greedy:!0,alias:"regex",inside:{range:{pattern:/([^[]|(?:^|[^\\])(?:\\\\)*\\\[)-(?!\])/,lookbehind:!0,alias:"punctuation"},escape:/\\(?:u(?:[a-fA-F\d]{4}|\{[a-fA-F\d]+\})|[pP]\{[=\w-]+\}|[^\r\nupP])/,punctuation:/[\[\]]/}},action:{pattern:/\{(?:[^{}]|\{(?:[^{}]|\{(?:[^{}]|\{[^{}]*\})*\})*\})*\}/,greedy:!0,inside:{content:{pattern:/(\{)[\s\S]+(?=\})/,lookbehind:!0},punctuation:/[{}]/}},command:{pattern:/(->\s*(?!\s))(?:\s*(?:,\s*)?\b[a-z]\w*(?:\s*\([^()\r\n]*\))?)+(?=\s*;)/i,lookbehind:!0,inside:{function:/\b\w+(?=\s*(?:[,(]|$))/,punctuation:/[,()]/}},annotation:{pattern:/@\w+(?:::\w+)*/,alias:"keyword"},label:{pattern:/#[ \t]*\w+/,alias:"punctuation"},keyword:/\b(?:catch|channels|finally|fragment|grammar|import|lexer|locals|mode|options|parser|returns|throws|tokens)\b/,definition:[{pattern:/\b[a-z]\w*(?=\s*:)/,alias:["rule","class-name"]},{pattern:/\b[A-Z]\w*(?=\s*:)/,alias:["token","constant"]}],constant:/\b[A-Z][A-Z_]*\b/,operator:/\.\.|->|[|~]|[*+?]\??/,punctuation:/[;:()=]/},t.languages.g4=t.languages.antlr4}return i2}var o2,Fq;function qje(){if(Fq)return o2;Fq=1,o2=e,e.displayName="apacheconf",e.aliases=[];function e(t){t.languages.apacheconf={comment:/#.*/,"directive-inline":{pattern:/(^[\t ]*)\b(?:AcceptFilter|AcceptPathInfo|AccessFileName|Action|Add(?:Alt|AltByEncoding|AltByType|Charset|DefaultCharset|Description|Encoding|Handler|Icon|IconByEncoding|IconByType|InputFilter|Language|ModuleInfo|OutputFilter|OutputFilterByType|Type)|Alias|AliasMatch|Allow(?:CONNECT|EncodedSlashes|Methods|Override|OverrideList)?|Anonymous(?:_LogEmail|_MustGiveEmail|_NoUserID|_VerifyEmail)?|AsyncRequestWorkerFactor|Auth(?:BasicAuthoritative|BasicFake|BasicProvider|BasicUseDigestAlgorithm|DBDUserPWQuery|DBDUserRealmQuery|DBMGroupFile|DBMType|DBMUserFile|Digest(?:Algorithm|Domain|NonceLifetime|Provider|Qop|ShmemSize)|Form(?:Authoritative|Body|DisableNoStore|FakeBasicAuth|Location|LoginRequiredLocation|LoginSuccessLocation|LogoutLocation|Method|Mimetype|Password|Provider|SitePassphrase|Size|Username)|GroupFile|LDAP(?:AuthorizePrefix|BindAuthoritative|BindDN|BindPassword|CharsetConfig|CompareAsUser|CompareDNOnServer|DereferenceAliases|GroupAttribute|GroupAttributeIsDN|InitialBindAsUser|InitialBindPattern|MaxSubGroupDepth|RemoteUserAttribute|RemoteUserIsDN|SearchAsUser|SubGroupAttribute|SubGroupClass|Url)|Merging|Name|nCache(?:Context|Enable|ProvideFor|SOCache|Timeout)|nzFcgiCheckAuthnProvider|nzFcgiDefineProvider|Type|UserFile|zDBDLoginToReferer|zDBDQuery|zDBDRedirectQuery|zDBMType|zSendForbiddenOnFailure)|BalancerGrowth|BalancerInherit|BalancerMember|BalancerPersist|BrowserMatch|BrowserMatchNoCase|BufferedLogs|BufferSize|Cache(?:DefaultExpire|DetailHeader|DirLength|DirLevels|Disable|Enable|File|Header|IgnoreCacheControl|IgnoreHeaders|IgnoreNoLastMod|IgnoreQueryString|IgnoreURLSessionIdentifiers|KeyBaseURL|LastModifiedFactor|Lock|LockMaxAge|LockPath|MaxExpire|MaxFileSize|MinExpire|MinFileSize|NegotiatedDocs|QuickHandler|ReadSize|ReadTime|Root|Socache(?:MaxSize|MaxTime|MinTime|ReadSize|ReadTime)?|StaleOnError|StoreExpired|StoreNoStore|StorePrivate)|CGIDScriptTimeout|CGIMapExtension|CharsetDefault|CharsetOptions|CharsetSourceEnc|CheckCaseOnly|CheckSpelling|ChrootDir|ContentDigest|CookieDomain|CookieExpires|CookieName|CookieStyle|CookieTracking|CoreDumpDirectory|CustomLog|Dav|DavDepthInfinity|DavGenericLockDB|DavLockDB|DavMinTimeout|DBDExptime|DBDInitSQL|DBDKeep|DBDMax|DBDMin|DBDParams|DBDPersist|DBDPrepareSQL|DBDriver|DefaultIcon|DefaultLanguage|DefaultRuntimeDir|DefaultType|Define|Deflate(?:BufferSize|CompressionLevel|FilterNote|InflateLimitRequestBody|InflateRatio(?:Burst|Limit)|MemLevel|WindowSize)|Deny|DirectoryCheckHandler|DirectoryIndex|DirectoryIndexRedirect|DirectorySlash|DocumentRoot|DTracePrivileges|DumpIOInput|DumpIOOutput|EnableExceptionHook|EnableMMAP|EnableSendfile|Error|ErrorDocument|ErrorLog|ErrorLogFormat|Example|ExpiresActive|ExpiresByType|ExpiresDefault|ExtendedStatus|ExtFilterDefine|ExtFilterOptions|FallbackResource|FileETag|FilterChain|FilterDeclare|FilterProtocol|FilterProvider|FilterTrace|ForceLanguagePriority|ForceType|ForensicLog|GprofDir|GracefulShutdownTimeout|Group|Header|HeaderName|Heartbeat(?:Address|Listen|MaxServers|Storage)|HostnameLookups|IdentityCheck|IdentityCheckTimeout|ImapBase|ImapDefault|ImapMenu|Include|IncludeOptional|Index(?:HeadInsert|Ignore|IgnoreReset|Options|OrderDefault|StyleSheet)|InputSed|ISAPI(?:AppendLogToErrors|AppendLogToQuery|CacheFile|FakeAsync|LogNotSupported|ReadAheadBuffer)|KeepAlive|KeepAliveTimeout|KeptBodySize|LanguagePriority|LDAP(?:CacheEntries|CacheTTL|ConnectionPoolTTL|ConnectionTimeout|LibraryDebug|OpCacheEntries|OpCacheTTL|ReferralHopLimit|Referrals|Retries|RetryDelay|SharedCacheFile|SharedCacheSize|Timeout|TrustedClientCert|TrustedGlobalCert|TrustedMode|VerifyServerCert)|Limit(?:InternalRecursion|Request(?:Body|Fields|FieldSize|Line)|XMLRequestBody)|Listen|ListenBackLog|LoadFile|LoadModule|LogFormat|LogLevel|LogMessage|LuaAuthzProvider|LuaCodeCache|Lua(?:Hook(?:AccessChecker|AuthChecker|CheckUserID|Fixups|InsertFilter|Log|MapToStorage|TranslateName|TypeChecker)|Inherit|InputFilter|MapHandler|OutputFilter|PackageCPath|PackagePath|QuickHandler|Root|Scope)|Max(?:ConnectionsPerChild|KeepAliveRequests|MemFree|RangeOverlaps|RangeReversals|Ranges|RequestWorkers|SpareServers|SpareThreads|Threads)|MergeTrailers|MetaDir|MetaFiles|MetaSuffix|MimeMagicFile|MinSpareServers|MinSpareThreads|MMapFile|ModemStandard|ModMimeUsePathInfo|MultiviewsMatch|Mutex|NameVirtualHost|NoProxy|NWSSLTrustedCerts|NWSSLUpgradeable|Options|Order|OutputSed|PassEnv|PidFile|PrivilegesMode|Protocol|ProtocolEcho|Proxy(?:AddHeaders|BadHeader|Block|Domain|ErrorOverride|ExpressDBMFile|ExpressDBMType|ExpressEnable|FtpDirCharset|FtpEscapeWildcards|FtpListOnWildcard|HTML(?:BufSize|CharsetOut|DocType|Enable|Events|Extended|Fixups|Interp|Links|Meta|StripComments|URLMap)|IOBufferSize|MaxForwards|Pass(?:Inherit|InterpolateEnv|Match|Reverse|ReverseCookieDomain|ReverseCookiePath)?|PreserveHost|ReceiveBufferSize|Remote|RemoteMatch|Requests|SCGIInternalRedirect|SCGISendfile|Set|SourceAddress|Status|Timeout|Via)|ReadmeName|ReceiveBufferSize|Redirect|RedirectMatch|RedirectPermanent|RedirectTemp|ReflectorHeader|RemoteIP(?:Header|InternalProxy|InternalProxyList|ProxiesHeader|TrustedProxy|TrustedProxyList)|RemoveCharset|RemoveEncoding|RemoveHandler|RemoveInputFilter|RemoveLanguage|RemoveOutputFilter|RemoveType|RequestHeader|RequestReadTimeout|Require|Rewrite(?:Base|Cond|Engine|Map|Options|Rule)|RLimitCPU|RLimitMEM|RLimitNPROC|Satisfy|ScoreBoardFile|Script(?:Alias|AliasMatch|InterpreterSource|Log|LogBuffer|LogLength|Sock)?|SecureListen|SeeRequestTail|SendBufferSize|Server(?:Admin|Alias|Limit|Name|Path|Root|Signature|Tokens)|Session(?:Cookie(?:Name|Name2|Remove)|Crypto(?:Cipher|Driver|Passphrase|PassphraseFile)|DBD(?:CookieName|CookieName2|CookieRemove|DeleteLabel|InsertLabel|PerUser|SelectLabel|UpdateLabel)|Env|Exclude|Header|Include|MaxAge)?|SetEnv|SetEnvIf|SetEnvIfExpr|SetEnvIfNoCase|SetHandler|SetInputFilter|SetOutputFilter|SSIEndTag|SSIErrorMsg|SSIETag|SSILastModified|SSILegacyExprParser|SSIStartTag|SSITimeFormat|SSIUndefinedEcho|SSL(?:CACertificateFile|CACertificatePath|CADNRequestFile|CADNRequestPath|CARevocationCheck|CARevocationFile|CARevocationPath|CertificateChainFile|CertificateFile|CertificateKeyFile|CipherSuite|Compression|CryptoDevice|Engine|FIPS|HonorCipherOrder|InsecureRenegotiation|OCSP(?:DefaultResponder|Enable|OverrideResponder|ResponderTimeout|ResponseMaxAge|ResponseTimeSkew|UseRequestNonce)|OpenSSLConfCmd|Options|PassPhraseDialog|Protocol|Proxy(?:CACertificateFile|CACertificatePath|CARevocation(?:Check|File|Path)|CheckPeer(?:CN|Expire|Name)|CipherSuite|Engine|MachineCertificate(?:ChainFile|File|Path)|Protocol|Verify|VerifyDepth)|RandomSeed|RenegBufferSize|Require|RequireSSL|Session(?:Cache|CacheTimeout|TicketKeyFile|Tickets)|SRPUnknownUserSeed|SRPVerifierFile|Stapling(?:Cache|ErrorCacheTimeout|FakeTryLater|ForceURL|ResponderTimeout|ResponseMaxAge|ResponseTimeSkew|ReturnResponderErrors|StandardCacheTimeout)|StrictSNIVHostCheck|UserName|UseStapling|VerifyClient|VerifyDepth)|StartServers|StartThreads|Substitute|Suexec|SuexecUserGroup|ThreadLimit|ThreadsPerChild|ThreadStackSize|TimeOut|TraceEnable|TransferLog|TypesConfig|UnDefine|UndefMacro|UnsetEnv|Use|UseCanonicalName|UseCanonicalPhysicalPort|User|UserDir|VHostCGIMode|VHostCGIPrivs|VHostGroup|VHostPrivs|VHostSecure|VHostUser|Virtual(?:DocumentRoot|ScriptAlias)(?:IP)?|WatchdogInterval|XBitHack|xml2EncAlias|xml2EncDefault|xml2StartParse)\b/im,lookbehind:!0,alias:"property"},"directive-block":{pattern:/<\/?\b(?:Auth[nz]ProviderAlias|Directory|DirectoryMatch|Else|ElseIf|Files|FilesMatch|If|IfDefine|IfModule|IfVersion|Limit|LimitExcept|Location|LocationMatch|Macro|Proxy|Require(?:All|Any|None)|VirtualHost)\b.*>/i,inside:{"directive-block":{pattern:/^<\/?\w+/,inside:{punctuation:/^<\/?/},alias:"tag"},"directive-block-parameter":{pattern:/.*[^>]/,inside:{punctuation:/:/,string:{pattern:/("|').*\1/,inside:{variable:/[$%]\{?(?:\w\.?[-+:]?)+\}?/}}},alias:"attr-value"},punctuation:/>/},alias:"tag"},"directive-flags":{pattern:/\[(?:[\w=],?)+\]/,alias:"keyword"},string:{pattern:/("|').*\1/,inside:{variable:/[$%]\{?(?:\w\.?[-+:]?)+\}?/}},variable:/[$%]\{?(?:\w\.?[-+:]?)+\}?/,regex:/\^?.*\$|\^.*\$?/}}return o2}var s2,jq;function S4(){if(jq)return s2;jq=1,s2=e,e.displayName="sql",e.aliases=[];function e(t){t.languages.sql={comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?\*\/|(?:--|\/\/|#).*)/,lookbehind:!0},variable:[{pattern:/@(["'`])(?:\\[\s\S]|(?!\1)[^\\])+\1/,greedy:!0},/@[\w.$]+/],string:{pattern:/(^|[^@\\])("|')(?:\\[\s\S]|(?!\2)[^\\]|\2\2)*\2/,greedy:!0,lookbehind:!0},identifier:{pattern:/(^|[^@\\])`(?:\\[\s\S]|[^`\\]|``)*`/,greedy:!0,lookbehind:!0,inside:{punctuation:/^`|`$/}},function:/\b(?:AVG|COUNT|FIRST|FORMAT|LAST|LCASE|LEN|MAX|MID|MIN|MOD|NOW|ROUND|SUM|UCASE)(?=\s*\()/i,keyword:/\b(?:ACTION|ADD|AFTER|ALGORITHM|ALL|ALTER|ANALYZE|ANY|APPLY|AS|ASC|AUTHORIZATION|AUTO_INCREMENT|BACKUP|BDB|BEGIN|BERKELEYDB|BIGINT|BINARY|BIT|BLOB|BOOL|BOOLEAN|BREAK|BROWSE|BTREE|BULK|BY|CALL|CASCADED?|CASE|CHAIN|CHAR(?:ACTER|SET)?|CHECK(?:POINT)?|CLOSE|CLUSTERED|COALESCE|COLLATE|COLUMNS?|COMMENT|COMMIT(?:TED)?|COMPUTE|CONNECT|CONSISTENT|CONSTRAINT|CONTAINS(?:TABLE)?|CONTINUE|CONVERT|CREATE|CROSS|CURRENT(?:_DATE|_TIME|_TIMESTAMP|_USER)?|CURSOR|CYCLE|DATA(?:BASES?)?|DATE(?:TIME)?|DAY|DBCC|DEALLOCATE|DEC|DECIMAL|DECLARE|DEFAULT|DEFINER|DELAYED|DELETE|DELIMITERS?|DENY|DESC|DESCRIBE|DETERMINISTIC|DISABLE|DISCARD|DISK|DISTINCT|DISTINCTROW|DISTRIBUTED|DO|DOUBLE|DROP|DUMMY|DUMP(?:FILE)?|DUPLICATE|ELSE(?:IF)?|ENABLE|ENCLOSED|END|ENGINE|ENUM|ERRLVL|ERRORS|ESCAPED?|EXCEPT|EXEC(?:UTE)?|EXISTS|EXIT|EXPLAIN|EXTENDED|FETCH|FIELDS|FILE|FILLFACTOR|FIRST|FIXED|FLOAT|FOLLOWING|FOR(?: EACH ROW)?|FORCE|FOREIGN|FREETEXT(?:TABLE)?|FROM|FULL|FUNCTION|GEOMETRY(?:COLLECTION)?|GLOBAL|GOTO|GRANT|GROUP|HANDLER|HASH|HAVING|HOLDLOCK|HOUR|IDENTITY(?:COL|_INSERT)?|IF|IGNORE|IMPORT|INDEX|INFILE|INNER|INNODB|INOUT|INSERT|INT|INTEGER|INTERSECT|INTERVAL|INTO|INVOKER|ISOLATION|ITERATE|JOIN|KEYS?|KILL|LANGUAGE|LAST|LEAVE|LEFT|LEVEL|LIMIT|LINENO|LINES|LINESTRING|LOAD|LOCAL|LOCK|LONG(?:BLOB|TEXT)|LOOP|MATCH(?:ED)?|MEDIUM(?:BLOB|INT|TEXT)|MERGE|MIDDLEINT|MINUTE|MODE|MODIFIES|MODIFY|MONTH|MULTI(?:LINESTRING|POINT|POLYGON)|NATIONAL|NATURAL|NCHAR|NEXT|NO|NONCLUSTERED|NULLIF|NUMERIC|OFF?|OFFSETS?|ON|OPEN(?:DATASOURCE|QUERY|ROWSET)?|OPTIMIZE|OPTION(?:ALLY)?|ORDER|OUT(?:ER|FILE)?|OVER|PARTIAL|PARTITION|PERCENT|PIVOT|PLAN|POINT|POLYGON|PRECEDING|PRECISION|PREPARE|PREV|PRIMARY|PRINT|PRIVILEGES|PROC(?:EDURE)?|PUBLIC|PURGE|QUICK|RAISERROR|READS?|REAL|RECONFIGURE|REFERENCES|RELEASE|RENAME|REPEAT(?:ABLE)?|REPLACE|REPLICATION|REQUIRE|RESIGNAL|RESTORE|RESTRICT|RETURN(?:ING|S)?|REVOKE|RIGHT|ROLLBACK|ROUTINE|ROW(?:COUNT|GUIDCOL|S)?|RTREE|RULE|SAVE(?:POINT)?|SCHEMA|SECOND|SELECT|SERIAL(?:IZABLE)?|SESSION(?:_USER)?|SET(?:USER)?|SHARE|SHOW|SHUTDOWN|SIMPLE|SMALLINT|SNAPSHOT|SOME|SONAME|SQL|START(?:ING)?|STATISTICS|STATUS|STRIPED|SYSTEM_USER|TABLES?|TABLESPACE|TEMP(?:ORARY|TABLE)?|TERMINATED|TEXT(?:SIZE)?|THEN|TIME(?:STAMP)?|TINY(?:BLOB|INT|TEXT)|TOP?|TRAN(?:SACTIONS?)?|TRIGGER|TRUNCATE|TSEQUAL|TYPES?|UNBOUNDED|UNCOMMITTED|UNDEFINED|UNION|UNIQUE|UNLOCK|UNPIVOT|UNSIGNED|UPDATE(?:TEXT)?|USAGE|USE|USER|USING|VALUES?|VAR(?:BINARY|CHAR|CHARACTER|YING)|VIEW|WAITFOR|WARNINGS|WHEN|WHERE|WHILE|WITH(?: ROLLUP|IN)?|WORK|WRITE(?:TEXT)?|YEAR)\b/i,boolean:/\b(?:FALSE|NULL|TRUE)\b/i,number:/\b0x[\da-f]+\b|\b\d+(?:\.\d*)?|\B\.\d+\b/i,operator:/[-+*\/=%^~]|&&?|\|\|?|!=?|<(?:=>?|<|>)?|>[>=]?|\b(?:AND|BETWEEN|DIV|ILIKE|IN|IS|LIKE|NOT|OR|REGEXP|RLIKE|SOUNDS LIKE|XOR)\b/i,punctuation:/[;[\]()`,.]/}}return s2}var l2,Uq;function Hje(){if(Uq)return l2;Uq=1;var e=S4();l2=t,t.displayName="apex",t.aliases=[];function t(n){n.register(e),(function(r){var a=/\b(?:(?:after|before)(?=\s+[a-z])|abstract|activate|and|any|array|as|asc|autonomous|begin|bigdecimal|blob|boolean|break|bulk|by|byte|case|cast|catch|char|class|collect|commit|const|continue|currency|date|datetime|decimal|default|delete|desc|do|double|else|end|enum|exception|exit|export|extends|final|finally|float|for|from|get(?=\s*[{};])|global|goto|group|having|hint|if|implements|import|in|inner|insert|instanceof|int|integer|interface|into|join|like|limit|list|long|loop|map|merge|new|not|null|nulls|number|object|of|on|or|outer|override|package|parallel|pragma|private|protected|public|retrieve|return|rollback|select|set|short|sObject|sort|static|string|super|switch|synchronized|system|testmethod|then|this|throw|time|transaction|transient|trigger|try|undelete|update|upsert|using|virtual|void|webservice|when|where|while|(?:inherited|with|without)\s+sharing)\b/i,i=/\b(?:(?=[a-z_]\w*\s*[<\[])|(?!))[A-Z_]\w*(?:\s*\.\s*[A-Z_]\w*)*\b(?:\s*(?:\[\s*\]|<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>))*/.source.replace(//g,function(){return a.source});function o(u){return RegExp(u.replace(//g,function(){return i}),"i")}var l={keyword:a,punctuation:/[()\[\]{};,:.<>]/};r.languages.apex={comment:r.languages.clike.comment,string:r.languages.clike.string,sql:{pattern:/((?:[=,({:]|\breturn)\s*)\[[^\[\]]*\]/i,lookbehind:!0,greedy:!0,alias:"language-sql",inside:r.languages.sql},annotation:{pattern:/@\w+\b/,alias:"punctuation"},"class-name":[{pattern:o(/(\b(?:class|enum|extends|implements|instanceof|interface|new|trigger\s+\w+\s+on)\s+)/.source),lookbehind:!0,inside:l},{pattern:o(/(\(\s*)(?=\s*\)\s*[\w(])/.source),lookbehind:!0,inside:l},{pattern:o(/(?=\s*\w+\s*[;=,(){:])/.source),inside:l}],trigger:{pattern:/(\btrigger\s+)\w+\b/i,lookbehind:!0,alias:"class-name"},keyword:a,function:/\b[a-z_]\w*(?=\s*\()/i,boolean:/\b(?:false|true)\b/i,number:/(?:\B\.\d+|\b\d+(?:\.\d+|L)?)\b/i,operator:/[!=](?:==?)?|\?\.?|&&|\|\||--|\+\+|[-+*/^&|]=?|:|<{1,3}=?/,punctuation:/[()\[\]{};,.]/}})(n)}return l2}var u2,Bq;function Vje(){if(Bq)return u2;Bq=1,u2=e,e.displayName="apl",e.aliases=[];function e(t){t.languages.apl={comment:/(?:⍝|#[! ]).*$/m,string:{pattern:/'(?:[^'\r\n]|'')*'/,greedy:!0},number:/¯?(?:\d*\.?\b\d+(?:e[+¯]?\d+)?|¯|∞)(?:j¯?(?:(?:\d+(?:\.\d+)?|\.\d+)(?:e[+¯]?\d+)?|¯|∞))?/i,statement:/:[A-Z][a-z][A-Za-z]*\b/,"system-function":{pattern:/⎕[A-Z]+/i,alias:"function"},constant:/[⍬⌾#⎕⍞]/,function:/[-+×÷⌈⌊∣|⍳⍸?*⍟○!⌹<≤=>≥≠≡≢∊⍷∪∩~∨∧⍱⍲⍴,⍪⌽⊖⍉↑↓⊂⊃⊆⊇⌷⍋⍒⊤⊥⍕⍎⊣⊢⍁⍂≈⍯↗¤→]/,"monadic-operator":{pattern:/[\\\/⌿⍀¨⍨⌶&∥]/,alias:"operator"},"dyadic-operator":{pattern:/[.⍣⍠⍤∘⌸@⌺⍥]/,alias:"operator"},assignment:{pattern:/←/,alias:"keyword"},punctuation:/[\[;\]()◇⋄]/,dfn:{pattern:/[{}⍺⍵⍶⍹∇⍫:]/,alias:"builtin"}}}return u2}var c2,Wq;function Gje(){if(Wq)return c2;Wq=1,c2=e,e.displayName="applescript",e.aliases=[];function e(t){t.languages.applescript={comment:[/\(\*(?:\(\*(?:[^*]|\*(?!\)))*\*\)|(?!\(\*)[\s\S])*?\*\)/,/--.+/,/#.+/],string:/"(?:\\.|[^"\\\r\n])*"/,number:/(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e-?\d+)?\b/i,operator:[/[&=≠≤≥*+\-\/÷^]|[<>]=?/,/\b(?:(?:begin|end|start)s? with|(?:contains?|(?:does not|doesn't) contain)|(?:is|isn't|is not) (?:contained by|in)|(?:(?:is|isn't|is not) )?(?:greater|less) than(?: or equal)?(?: to)?|(?:comes|(?:does not|doesn't) come) (?:after|before)|(?:is|isn't|is not) equal(?: to)?|(?:(?:does not|doesn't) equal|equal to|equals|is not|isn't)|(?:a )?(?:ref(?: to)?|reference to)|(?:and|as|div|mod|not|or))\b/],keyword:/\b(?:about|above|after|against|apart from|around|aside from|at|back|before|beginning|behind|below|beneath|beside|between|but|by|considering|continue|copy|does|eighth|else|end|equal|error|every|exit|false|fifth|first|for|fourth|from|front|get|given|global|if|ignoring|in|instead of|into|is|it|its|last|local|me|middle|my|ninth|of|on|onto|out of|over|prop|property|put|repeat|return|returning|second|set|seventh|since|sixth|some|tell|tenth|that|the|then|third|through|thru|timeout|times|to|transaction|true|try|until|where|while|whose|with|without)\b/,"class-name":/\b(?:POSIX file|RGB color|alias|application|boolean|centimeters|centimetres|class|constant|cubic centimeters|cubic centimetres|cubic feet|cubic inches|cubic meters|cubic metres|cubic yards|date|degrees Celsius|degrees Fahrenheit|degrees Kelvin|feet|file|gallons|grams|inches|integer|kilograms|kilometers|kilometres|list|liters|litres|meters|metres|miles|number|ounces|pounds|quarts|real|record|reference|script|square feet|square kilometers|square kilometres|square meters|square metres|square miles|square yards|text|yards)\b/,punctuation:/[{}():,¬«»《》]/}}return c2}var d2,zq;function Yje(){if(zq)return d2;zq=1,d2=e,e.displayName="aql",e.aliases=[];function e(t){t.languages.aql={comment:/\/\/.*|\/\*[\s\S]*?\*\//,property:{pattern:/([{,]\s*)(?:(?!\d)\w+|(["'´`])(?:(?!\2)[^\\\r\n]|\\.)*\2)(?=\s*:)/,lookbehind:!0,greedy:!0},string:{pattern:/(["'])(?:(?!\1)[^\\\r\n]|\\.)*\1/,greedy:!0},identifier:{pattern:/([´`])(?:(?!\1)[^\\\r\n]|\\.)*\1/,greedy:!0},variable:/@@?\w+/,keyword:[{pattern:/(\bWITH\s+)COUNT(?=\s+INTO\b)/i,lookbehind:!0},/\b(?:AGGREGATE|ALL|AND|ANY|ASC|COLLECT|DESC|DISTINCT|FILTER|FOR|GRAPH|IN|INBOUND|INSERT|INTO|K_PATHS|K_SHORTEST_PATHS|LET|LIKE|LIMIT|NONE|NOT|NULL|OR|OUTBOUND|REMOVE|REPLACE|RETURN|SHORTEST_PATH|SORT|UPDATE|UPSERT|WINDOW|WITH)\b/i,{pattern:/(^|[^\w.[])(?:KEEP|PRUNE|SEARCH|TO)\b/i,lookbehind:!0},{pattern:/(^|[^\w.[])(?:CURRENT|NEW|OLD)\b/,lookbehind:!0},{pattern:/\bOPTIONS(?=\s*\{)/i}],function:/\b(?!\d)\w+(?=\s*\()/,boolean:/\b(?:false|true)\b/i,range:{pattern:/\.\./,alias:"operator"},number:[/\b0b[01]+/i,/\b0x[0-9a-f]+/i,/(?:\B\.\d+|\b(?:0|[1-9]\d*)(?:\.\d+)?)(?:e[+-]?\d+)?/i],operator:/\*{2,}|[=!]~|[!=<>]=?|&&|\|\||[-+*/%]/,punctuation:/::|[?.:,;()[\]{}]/}}return d2}var f2,qq;function vy(){if(qq)return f2;qq=1,f2=e,e.displayName="c",e.aliases=[];function e(t){t.languages.c=t.languages.extend("clike",{comment:{pattern:/\/\/(?:[^\r\n\\]|\\(?:\r\n?|\n|(?![\r\n])))*|\/\*[\s\S]*?(?:\*\/|$)/,greedy:!0},string:{pattern:/"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"/,greedy:!0},"class-name":{pattern:/(\b(?:enum|struct)\s+(?:__attribute__\s*\(\([\s\S]*?\)\)\s*)?)\w+|\b[a-z]\w*_t\b/,lookbehind:!0},keyword:/\b(?:_Alignas|_Alignof|_Atomic|_Bool|_Complex|_Generic|_Imaginary|_Noreturn|_Static_assert|_Thread_local|__attribute__|asm|auto|break|case|char|const|continue|default|do|double|else|enum|extern|float|for|goto|if|inline|int|long|register|return|short|signed|sizeof|static|struct|switch|typedef|typeof|union|unsigned|void|volatile|while)\b/,function:/\b[a-z_]\w*(?=\s*\()/i,number:/(?:\b0x(?:[\da-f]+(?:\.[\da-f]*)?|\.[\da-f]+)(?:p[+-]?\d+)?|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?)[ful]{0,4}/i,operator:/>>=?|<<=?|->|([-+&|:])\1|[?:~]|[-+*/%&|^!=<>]=?/}),t.languages.insertBefore("c","string",{char:{pattern:/'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n]){0,32}'/,greedy:!0}}),t.languages.insertBefore("c","string",{macro:{pattern:/(^[\t ]*)#\s*[a-z](?:[^\r\n\\/]|\/(?!\*)|\/\*(?:[^*]|\*(?!\/))*\*\/|\\(?:\r\n|[\s\S]))*/im,lookbehind:!0,greedy:!0,alias:"property",inside:{string:[{pattern:/^(#\s*include\s*)<[^>]+>/,lookbehind:!0},t.languages.c.string],char:t.languages.c.char,comment:t.languages.c.comment,"macro-name":[{pattern:/(^#\s*define\s+)\w+\b(?!\()/i,lookbehind:!0},{pattern:/(^#\s*define\s+)\w+\b(?=\()/i,lookbehind:!0,alias:"function"}],directive:{pattern:/^(#\s*)[a-z]+/,lookbehind:!0,alias:"keyword"},"directive-hash":/^#/,punctuation:/##|\\(?=[\r\n])/,expression:{pattern:/\S[\s\S]*/,inside:t.languages.c}}}}),t.languages.insertBefore("c","function",{constant:/\b(?:EOF|NULL|SEEK_CUR|SEEK_END|SEEK_SET|__DATE__|__FILE__|__LINE__|__TIMESTAMP__|__TIME__|__func__|stderr|stdin|stdout)\b/}),delete t.languages.c.boolean}return f2}var p2,Hq;function E4(){if(Hq)return p2;Hq=1;var e=vy();p2=t,t.displayName="cpp",t.aliases=[];function t(n){n.register(e),(function(r){var a=/\b(?:alignas|alignof|asm|auto|bool|break|case|catch|char|char16_t|char32_t|char8_t|class|co_await|co_return|co_yield|compl|concept|const|const_cast|consteval|constexpr|constinit|continue|decltype|default|delete|do|double|dynamic_cast|else|enum|explicit|export|extern|final|float|for|friend|goto|if|import|inline|int|int16_t|int32_t|int64_t|int8_t|long|module|mutable|namespace|new|noexcept|nullptr|operator|override|private|protected|public|register|reinterpret_cast|requires|return|short|signed|sizeof|static|static_assert|static_cast|struct|switch|template|this|thread_local|throw|try|typedef|typeid|typename|uint16_t|uint32_t|uint64_t|uint8_t|union|unsigned|using|virtual|void|volatile|wchar_t|while)\b/,i=/\b(?!)\w+(?:\s*\.\s*\w+)*\b/.source.replace(//g,function(){return a.source});r.languages.cpp=r.languages.extend("c",{"class-name":[{pattern:RegExp(/(\b(?:class|concept|enum|struct|typename)\s+)(?!)\w+/.source.replace(//g,function(){return a.source})),lookbehind:!0},/\b[A-Z]\w*(?=\s*::\s*\w+\s*\()/,/\b[A-Z_]\w*(?=\s*::\s*~\w+\s*\()/i,/\b\w+(?=\s*<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>\s*::\s*\w+\s*\()/],keyword:a,number:{pattern:/(?:\b0b[01']+|\b0x(?:[\da-f']+(?:\.[\da-f']*)?|\.[\da-f']+)(?:p[+-]?[\d']+)?|(?:\b[\d']+(?:\.[\d']*)?|\B\.[\d']+)(?:e[+-]?[\d']+)?)[ful]{0,4}/i,greedy:!0},operator:/>>=?|<<=?|->|--|\+\+|&&|\|\||[?:~]|<=>|[-+*/%&|^!=<>]=?|\b(?:and|and_eq|bitand|bitor|not|not_eq|or|or_eq|xor|xor_eq)\b/,boolean:/\b(?:false|true)\b/}),r.languages.insertBefore("cpp","string",{module:{pattern:RegExp(/(\b(?:import|module)\s+)/.source+"(?:"+/"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|<[^<>\r\n]*>/.source+"|"+/(?:\s*:\s*)?|:\s*/.source.replace(//g,function(){return i})+")"),lookbehind:!0,greedy:!0,inside:{string:/^[<"][\s\S]+/,operator:/:/,punctuation:/\./}},"raw-string":{pattern:/R"([^()\\ ]{0,16})\([\s\S]*?\)\1"/,alias:"string",greedy:!0}}),r.languages.insertBefore("cpp","keyword",{"generic-function":{pattern:/\b(?!operator\b)[a-z_]\w*\s*<(?:[^<>]|<[^<>]*>)*>(?=\s*\()/i,inside:{function:/^\w+/,generic:{pattern:/<[\s\S]+/,alias:"class-name",inside:r.languages.cpp}}}}),r.languages.insertBefore("cpp","operator",{"double-colon":{pattern:/::/,alias:"punctuation"}}),r.languages.insertBefore("cpp","class-name",{"base-clause":{pattern:/(\b(?:class|struct)\s+\w+\s*:\s*)[^;{}"'\s]+(?:\s+[^;{}"'\s]+)*(?=\s*[;{])/,lookbehind:!0,greedy:!0,inside:r.languages.extend("cpp",{})}}),r.languages.insertBefore("inside","double-colon",{"class-name":/\b[a-z_]\w*\b(?!\s*::)/i},r.languages.cpp["base-clause"])})(n)}return p2}var h2,Vq;function Kje(){if(Vq)return h2;Vq=1;var e=E4();h2=t,t.displayName="arduino",t.aliases=["ino"];function t(n){n.register(e),n.languages.arduino=n.languages.extend("cpp",{keyword:/\b(?:String|array|bool|boolean|break|byte|case|catch|continue|default|do|double|else|finally|for|function|goto|if|in|instanceof|int|integer|long|loop|new|null|return|setup|string|switch|throw|try|void|while|word)\b/,constant:/\b(?:ANALOG_MESSAGE|DEFAULT|DIGITAL_MESSAGE|EXTERNAL|FIRMATA_STRING|HIGH|INPUT|INPUT_PULLUP|INTERNAL|INTERNAL1V1|INTERNAL2V56|LED_BUILTIN|LOW|OUTPUT|REPORT_ANALOG|REPORT_DIGITAL|SET_PIN_MODE|SYSEX_START|SYSTEM_RESET)\b/,builtin:/\b(?:Audio|BSSID|Bridge|Client|Console|EEPROM|Esplora|EsploraTFT|Ethernet|EthernetClient|EthernetServer|EthernetUDP|File|FileIO|FileSystem|Firmata|GPRS|GSM|GSMBand|GSMClient|GSMModem|GSMPIN|GSMScanner|GSMServer|GSMVoiceCall|GSM_SMS|HttpClient|IPAddress|IRread|Keyboard|KeyboardController|LiquidCrystal|LiquidCrystal_I2C|Mailbox|Mouse|MouseController|PImage|Process|RSSI|RobotControl|RobotMotor|SD|SPI|SSID|Scheduler|Serial|Server|Servo|SoftwareSerial|Stepper|Stream|TFT|Task|USBHost|WiFi|WiFiClient|WiFiServer|WiFiUDP|Wire|YunClient|YunServer|abs|addParameter|analogRead|analogReadResolution|analogReference|analogWrite|analogWriteResolution|answerCall|attach|attachGPRS|attachInterrupt|attached|autoscroll|available|background|beep|begin|beginPacket|beginSD|beginSMS|beginSpeaker|beginTFT|beginTransmission|beginWrite|bit|bitClear|bitRead|bitSet|bitWrite|blink|blinkVersion|buffer|changePIN|checkPIN|checkPUK|checkReg|circle|cityNameRead|cityNameWrite|clear|clearScreen|click|close|compassRead|config|connect|connected|constrain|cos|countryNameRead|countryNameWrite|createChar|cursor|debugPrint|delay|delayMicroseconds|detach|detachInterrupt|digitalRead|digitalWrite|disconnect|display|displayLogos|drawBMP|drawCompass|encryptionType|end|endPacket|endSMS|endTransmission|endWrite|exists|exitValue|fill|find|findUntil|flush|gatewayIP|get|getAsynchronously|getBand|getButton|getCurrentCarrier|getIMEI|getKey|getModifiers|getOemKey|getPINUsed|getResult|getSignalStrength|getSocket|getVoiceCallStatus|getXChange|getYChange|hangCall|height|highByte|home|image|interrupts|isActionDone|isDirectory|isListening|isPIN|isPressed|isValid|keyPressed|keyReleased|keyboardRead|knobRead|leftToRight|line|lineFollowConfig|listen|listenOnLocalhost|loadImage|localIP|lowByte|macAddress|maintain|map|max|messageAvailable|micros|millis|min|mkdir|motorsStop|motorsWrite|mouseDragged|mouseMoved|mousePressed|mouseReleased|move|noAutoscroll|noBlink|noBuffer|noCursor|noDisplay|noFill|noInterrupts|noListenOnLocalhost|noStroke|noTone|onReceive|onRequest|open|openNextFile|overflow|parseCommand|parseFloat|parseInt|parsePacket|pauseMode|peek|pinMode|playFile|playMelody|point|pointTo|position|pow|prepare|press|print|printFirmwareVersion|printVersion|println|process|processInput|pulseIn|put|random|randomSeed|read|readAccelerometer|readBlue|readButton|readBytes|readBytesUntil|readGreen|readJoystickButton|readJoystickSwitch|readJoystickX|readJoystickY|readLightSensor|readMessage|readMicrophone|readNetworks|readRed|readSlider|readString|readStringUntil|readTemperature|ready|rect|release|releaseAll|remoteIP|remoteNumber|remotePort|remove|requestFrom|retrieveCallingNumber|rewindDirectory|rightToLeft|rmdir|robotNameRead|robotNameWrite|run|runAsynchronously|runShellCommand|runShellCommandAsynchronously|running|scanNetworks|scrollDisplayLeft|scrollDisplayRight|seek|sendAnalog|sendDigitalPortPair|sendDigitalPorts|sendString|sendSysex|serialEvent|setBand|setBitOrder|setClockDivider|setCursor|setDNS|setDataMode|setFirmwareVersion|setMode|setPINUsed|setSpeed|setTextSize|setTimeout|shiftIn|shiftOut|shutdown|sin|size|sqrt|startLoop|step|stop|stroke|subnetMask|switchPIN|tan|tempoWrite|text|tone|transfer|tuneWrite|turn|updateIR|userNameRead|userNameWrite|voiceCall|waitContinue|width|write|writeBlue|writeGreen|writeJSON|writeMessage|writeMicroseconds|writeRGB|writeRed|yield)\b/}),n.languages.ino=n.languages.arduino}return h2}var m2,Gq;function Xje(){if(Gq)return m2;Gq=1,m2=e,e.displayName="arff",e.aliases=[];function e(t){t.languages.arff={comment:/%.*/,string:{pattern:/(["'])(?:\\.|(?!\1)[^\\\r\n])*\1/,greedy:!0},keyword:/@(?:attribute|data|end|relation)\b/i,number:/\b\d+(?:\.\d+)?\b/,punctuation:/[{},]/}}return m2}var g2,Yq;function Qje(){if(Yq)return g2;Yq=1,g2=e,e.displayName="asciidoc",e.aliases=["adoc"];function e(t){(function(n){var r={pattern:/(^[ \t]*)\[(?!\[)(?:(["'$`])(?:(?!\2)[^\\]|\\.)*\2|\[(?:[^\[\]\\]|\\.)*\]|[^\[\]\\"'$`]|\\.)*\]/m,lookbehind:!0,inside:{quoted:{pattern:/([$`])(?:(?!\1)[^\\]|\\.)*\1/,inside:{punctuation:/^[$`]|[$`]$/}},interpreted:{pattern:/'(?:[^'\\]|\\.)*'/,inside:{punctuation:/^'|'$/}},string:/"(?:[^"\\]|\\.)*"/,variable:/\w+(?==)/,punctuation:/^\[|\]$|,/,operator:/=/,"attr-value":/(?!^\s+$).+/}},a=n.languages.asciidoc={"comment-block":{pattern:/^(\/{4,})(?:\r?\n|\r)(?:[\s\S]*(?:\r?\n|\r))??\1/m,alias:"comment"},table:{pattern:/^\|={3,}(?:(?:\r?\n|\r(?!\n)).*)*?(?:\r?\n|\r)\|={3,}$/m,inside:{specifiers:{pattern:/(?:(?:(?:\d+(?:\.\d+)?|\.\d+)[+*](?:[<^>](?:\.[<^>])?|\.[<^>])?|[<^>](?:\.[<^>])?|\.[<^>])[a-z]*|[a-z]+)(?=\|)/,alias:"attr-value"},punctuation:{pattern:/(^|[^\\])[|!]=*/,lookbehind:!0}}},"passthrough-block":{pattern:/^(\+{4,})(?:\r?\n|\r)(?:[\s\S]*(?:\r?\n|\r))??\1$/m,inside:{punctuation:/^\++|\++$/}},"literal-block":{pattern:/^(-{4,}|\.{4,})(?:\r?\n|\r)(?:[\s\S]*(?:\r?\n|\r))??\1$/m,inside:{punctuation:/^(?:-+|\.+)|(?:-+|\.+)$/}},"other-block":{pattern:/^(--|\*{4,}|_{4,}|={4,})(?:\r?\n|\r)(?:[\s\S]*(?:\r?\n|\r))??\1$/m,inside:{punctuation:/^(?:-+|\*+|_+|=+)|(?:-+|\*+|_+|=+)$/}},"list-punctuation":{pattern:/(^[ \t]*)(?:-|\*{1,5}|\.{1,5}|(?:[a-z]|\d+)\.|[xvi]+\))(?= )/im,lookbehind:!0,alias:"punctuation"},"list-label":{pattern:/(^[ \t]*)[a-z\d].+(?::{2,4}|;;)(?=\s)/im,lookbehind:!0,alias:"symbol"},"indented-block":{pattern:/((\r?\n|\r)\2)([ \t]+)\S.*(?:(?:\r?\n|\r)\3.+)*(?=\2{2}|$)/,lookbehind:!0},comment:/^\/\/.*/m,title:{pattern:/^.+(?:\r?\n|\r)(?:={3,}|-{3,}|~{3,}|\^{3,}|\+{3,})$|^={1,5} .+|^\.(?![\s.]).*/m,alias:"important",inside:{punctuation:/^(?:\.|=+)|(?:=+|-+|~+|\^+|\++)$/}},"attribute-entry":{pattern:/^:[^:\r\n]+:(?: .*?(?: \+(?:\r?\n|\r).*?)*)?$/m,alias:"tag"},attributes:r,hr:{pattern:/^'{3,}$/m,alias:"punctuation"},"page-break":{pattern:/^<{3,}$/m,alias:"punctuation"},admonition:{pattern:/^(?:CAUTION|IMPORTANT|NOTE|TIP|WARNING):/m,alias:"keyword"},callout:[{pattern:/(^[ \t]*)/m,lookbehind:!0,alias:"symbol"},{pattern:/<\d+>/,alias:"symbol"}],macro:{pattern:/\b[a-z\d][a-z\d-]*::?(?:[^\s\[\]]*\[(?:[^\]\\"']|(["'])(?:(?!\1)[^\\]|\\.)*\1|\\.)*\])/,inside:{function:/^[a-z\d-]+(?=:)/,punctuation:/^::?/,attributes:{pattern:/(?:\[(?:[^\]\\"']|(["'])(?:(?!\1)[^\\]|\\.)*\1|\\.)*\])/,inside:r.inside}}},inline:{pattern:/(^|[^\\])(?:(?:\B\[(?:[^\]\\"']|(["'])(?:(?!\2)[^\\]|\\.)*\2|\\.)*\])?(?:\b_(?!\s)(?: _|[^_\\\r\n]|\\.)+(?:(?:\r?\n|\r)(?: _|[^_\\\r\n]|\\.)+)*_\b|\B``(?!\s).+?(?:(?:\r?\n|\r).+?)*''\B|\B`(?!\s)(?:[^`'\s]|\s+\S)+['`]\B|\B(['*+#])(?!\s)(?: \3|(?!\3)[^\\\r\n]|\\.)+(?:(?:\r?\n|\r)(?: \3|(?!\3)[^\\\r\n]|\\.)+)*\3\B)|(?:\[(?:[^\]\\"']|(["'])(?:(?!\4)[^\\]|\\.)*\4|\\.)*\])?(?:(__|\*\*|\+\+\+?|##|\$\$|[~^]).+?(?:(?:\r?\n|\r).+?)*\5|\{[^}\r\n]+\}|\[\[\[?.+?(?:(?:\r?\n|\r).+?)*\]?\]\]|<<.+?(?:(?:\r?\n|\r).+?)*>>|\(\(\(?.+?(?:(?:\r?\n|\r).+?)*\)?\)\)))/m,lookbehind:!0,inside:{attributes:r,url:{pattern:/^(?:\[\[\[?.+?\]?\]\]|<<.+?>>)$/,inside:{punctuation:/^(?:\[\[\[?|<<)|(?:\]\]\]?|>>)$/}},"attribute-ref":{pattern:/^\{.+\}$/,inside:{variable:{pattern:/(^\{)[a-z\d,+_-]+/,lookbehind:!0},operator:/^[=?!#%@$]|!(?=[:}])/,punctuation:/^\{|\}$|::?/}},italic:{pattern:/^(['_])[\s\S]+\1$/,inside:{punctuation:/^(?:''?|__?)|(?:''?|__?)$/}},bold:{pattern:/^\*[\s\S]+\*$/,inside:{punctuation:/^\*\*?|\*\*?$/}},punctuation:/^(?:``?|\+{1,3}|##?|\$\$|[~^]|\(\(\(?)|(?:''?|\+{1,3}|##?|\$\$|[~^`]|\)?\)\))$/}},replacement:{pattern:/\((?:C|R|TM)\)/,alias:"builtin"},entity:/&#?[\da-z]{1,8};/i,"line-continuation":{pattern:/(^| )\+$/m,lookbehind:!0,alias:"punctuation"}};function i(o){o=o.split(" ");for(var l={},u=0,d=o.length;u>=?|<<=?|&&?|\|\|?|[-+*/%&|^!=<>?]=?/,punctuation:/[(),:]/}}return y2}var b2,Qq;function fO(){if(Qq)return b2;Qq=1,b2=e,e.displayName="csharp",e.aliases=["dotnet","cs"];function e(t){(function(n){function r(K,ae){return K.replace(/<<(\d+)>>/g,function(J,ee){return"(?:"+ae[+ee]+")"})}function a(K,ae,J){return RegExp(r(K,ae),"")}function i(K,ae){for(var J=0;J>/g,function(){return"(?:"+K+")"});return K.replace(/<>/g,"[^\\s\\S]")}var o={type:"bool byte char decimal double dynamic float int long object sbyte short string uint ulong ushort var void",typeDeclaration:"class enum interface record struct",contextual:"add alias and ascending async await by descending from(?=\\s*(?:\\w|$)) get global group into init(?=\\s*;) join let nameof not notnull on or orderby partial remove select set unmanaged value when where with(?=\\s*{)",other:"abstract as base break case catch checked const continue default delegate do else event explicit extern finally fixed for foreach goto if implicit in internal is lock namespace new null operator out override params private protected public readonly ref return sealed sizeof stackalloc static switch this throw try typeof unchecked unsafe using virtual volatile while yield"};function l(K){return"\\b(?:"+K.trim().replace(/ /g,"|")+")\\b"}var u=l(o.typeDeclaration),d=RegExp(l(o.type+" "+o.typeDeclaration+" "+o.contextual+" "+o.other)),f=l(o.typeDeclaration+" "+o.contextual+" "+o.other),g=l(o.type+" "+o.typeDeclaration+" "+o.other),y=i(/<(?:[^<>;=+\-*/%&|^]|<>)*>/.source,2),h=i(/\((?:[^()]|<>)*\)/.source,2),v=/@?\b[A-Za-z_]\w*\b/.source,E=r(/<<0>>(?:\s*<<1>>)?/.source,[v,y]),T=r(/(?!<<0>>)<<1>>(?:\s*\.\s*<<1>>)*/.source,[f,E]),C=/\[\s*(?:,\s*)*\]/.source,k=r(/<<0>>(?:\s*(?:\?\s*)?<<1>>)*(?:\s*\?)?/.source,[T,C]),_=r(/[^,()<>[\];=+\-*/%&|^]|<<0>>|<<1>>|<<2>>/.source,[y,h,C]),A=r(/\(<<0>>+(?:,<<0>>+)+\)/.source,[_]),P=r(/(?:<<0>>|<<1>>)(?:\s*(?:\?\s*)?<<2>>)*(?:\s*\?)?/.source,[A,T,C]),N={keyword:d,punctuation:/[<>()?,.:[\]]/},I=/'(?:[^\r\n'\\]|\\.|\\[Uux][\da-fA-F]{1,8})'/.source,L=/"(?:\\.|[^\\"\r\n])*"/.source,j=/@"(?:""|\\[\s\S]|[^\\"])*"(?!")/.source;n.languages.csharp=n.languages.extend("clike",{string:[{pattern:a(/(^|[^$\\])<<0>>/.source,[j]),lookbehind:!0,greedy:!0},{pattern:a(/(^|[^@$\\])<<0>>/.source,[L]),lookbehind:!0,greedy:!0}],"class-name":[{pattern:a(/(\busing\s+static\s+)<<0>>(?=\s*;)/.source,[T]),lookbehind:!0,inside:N},{pattern:a(/(\busing\s+<<0>>\s*=\s*)<<1>>(?=\s*;)/.source,[v,P]),lookbehind:!0,inside:N},{pattern:a(/(\busing\s+)<<0>>(?=\s*=)/.source,[v]),lookbehind:!0},{pattern:a(/(\b<<0>>\s+)<<1>>/.source,[u,E]),lookbehind:!0,inside:N},{pattern:a(/(\bcatch\s*\(\s*)<<0>>/.source,[T]),lookbehind:!0,inside:N},{pattern:a(/(\bwhere\s+)<<0>>/.source,[v]),lookbehind:!0},{pattern:a(/(\b(?:is(?:\s+not)?|as)\s+)<<0>>/.source,[k]),lookbehind:!0,inside:N},{pattern:a(/\b<<0>>(?=\s+(?!<<1>>|with\s*\{)<<2>>(?:\s*[=,;:{)\]]|\s+(?:in|when)\b))/.source,[P,g,v]),inside:N}],keyword:d,number:/(?:\b0(?:x[\da-f_]*[\da-f]|b[01_]*[01])|(?:\B\.\d+(?:_+\d+)*|\b\d+(?:_+\d+)*(?:\.\d+(?:_+\d+)*)?)(?:e[-+]?\d+(?:_+\d+)*)?)(?:[dflmu]|lu|ul)?\b/i,operator:/>>=?|<<=?|[-=]>|([-+&|])\1|~|\?\?=?|[-+*/%&|^!=<>]=?/,punctuation:/\?\.?|::|[{}[\];(),.:]/}),n.languages.insertBefore("csharp","number",{range:{pattern:/\.\./,alias:"operator"}}),n.languages.insertBefore("csharp","punctuation",{"named-parameter":{pattern:a(/([(,]\s*)<<0>>(?=\s*:)/.source,[v]),lookbehind:!0,alias:"punctuation"}}),n.languages.insertBefore("csharp","class-name",{namespace:{pattern:a(/(\b(?:namespace|using)\s+)<<0>>(?:\s*\.\s*<<0>>)*(?=\s*[;{])/.source,[v]),lookbehind:!0,inside:{punctuation:/\./}},"type-expression":{pattern:a(/(\b(?:default|sizeof|typeof)\s*\(\s*(?!\s))(?:[^()\s]|\s(?!\s)|<<0>>)*(?=\s*\))/.source,[h]),lookbehind:!0,alias:"class-name",inside:N},"return-type":{pattern:a(/<<0>>(?=\s+(?:<<1>>\s*(?:=>|[({]|\.\s*this\s*\[)|this\s*\[))/.source,[P,T]),inside:N,alias:"class-name"},"constructor-invocation":{pattern:a(/(\bnew\s+)<<0>>(?=\s*[[({])/.source,[P]),lookbehind:!0,inside:N,alias:"class-name"},"generic-method":{pattern:a(/<<0>>\s*<<1>>(?=\s*\()/.source,[v,y]),inside:{function:a(/^<<0>>/.source,[v]),generic:{pattern:RegExp(y),alias:"class-name",inside:N}}},"type-list":{pattern:a(/\b((?:<<0>>\s+<<1>>|record\s+<<1>>\s*<<5>>|where\s+<<2>>)\s*:\s*)(?:<<3>>|<<4>>|<<1>>\s*<<5>>|<<6>>)(?:\s*,\s*(?:<<3>>|<<4>>|<<6>>))*(?=\s*(?:where|[{;]|=>|$))/.source,[u,E,v,P,d.source,h,/\bnew\s*\(\s*\)/.source]),lookbehind:!0,inside:{"record-arguments":{pattern:a(/(^(?!new\s*\()<<0>>\s*)<<1>>/.source,[E,h]),lookbehind:!0,greedy:!0,inside:n.languages.csharp},keyword:d,"class-name":{pattern:RegExp(P),greedy:!0,inside:N},punctuation:/[,()]/}},preprocessor:{pattern:/(^[\t ]*)#.*/m,lookbehind:!0,alias:"property",inside:{directive:{pattern:/(#)\b(?:define|elif|else|endif|endregion|error|if|line|nullable|pragma|region|undef|warning)\b/,lookbehind:!0,alias:"keyword"}}}});var z=L+"|"+I,Q=r(/\/(?![*/])|\/\/[^\r\n]*[\r\n]|\/\*(?:[^*]|\*(?!\/))*\*\/|<<0>>/.source,[z]),ue=i(r(/[^"'/()]|<<0>>|\(<>*\)/.source,[Q]),2),re=/\b(?:assembly|event|field|method|module|param|property|return|type)\b/.source,me=r(/<<0>>(?:\s*\(<<1>>*\))?/.source,[T,ue]);n.languages.insertBefore("csharp","class-name",{attribute:{pattern:a(/((?:^|[^\s\w>)?])\s*\[\s*)(?:<<0>>\s*:\s*)?<<1>>(?:\s*,\s*<<1>>)*(?=\s*\])/.source,[re,me]),lookbehind:!0,greedy:!0,inside:{target:{pattern:a(/^<<0>>(?=\s*:)/.source,[re]),alias:"keyword"},"attribute-arguments":{pattern:a(/\(<<0>>*\)/.source,[ue]),inside:n.languages.csharp},"class-name":{pattern:RegExp(T),inside:{punctuation:/\./}},punctuation:/[:,]/}}});var ge=/:[^}\r\n]+/.source,W=i(r(/[^"'/()]|<<0>>|\(<>*\)/.source,[Q]),2),G=r(/\{(?!\{)(?:(?![}:])<<0>>)*<<1>>?\}/.source,[W,ge]),q=i(r(/[^"'/()]|\/(?!\*)|\/\*(?:[^*]|\*(?!\/))*\*\/|<<0>>|\(<>*\)/.source,[z]),2),ce=r(/\{(?!\{)(?:(?![}:])<<0>>)*<<1>>?\}/.source,[q,ge]);function H(K,ae){return{interpolation:{pattern:a(/((?:^|[^{])(?:\{\{)*)<<0>>/.source,[K]),lookbehind:!0,inside:{"format-string":{pattern:a(/(^\{(?:(?![}:])<<0>>)*)<<1>>(?=\}$)/.source,[ae,ge]),lookbehind:!0,inside:{punctuation:/^:/}},punctuation:/^\{|\}$/,expression:{pattern:/[\s\S]+/,alias:"language-csharp",inside:n.languages.csharp}}},string:/[\s\S]+/}}n.languages.insertBefore("csharp","string",{"interpolation-string":[{pattern:a(/(^|[^\\])(?:\$@|@\$)"(?:""|\\[\s\S]|\{\{|<<0>>|[^\\{"])*"/.source,[G]),lookbehind:!0,greedy:!0,inside:H(G,W)},{pattern:a(/(^|[^@\\])\$"(?:\\.|\{\{|<<0>>|[^\\"{])*"/.source,[ce]),lookbehind:!0,greedy:!0,inside:H(ce,q)}],char:{pattern:RegExp(I),greedy:!0}}),n.languages.dotnet=n.languages.cs=n.languages.csharp})(t)}return b2}var w2,Jq;function e4e(){if(Jq)return w2;Jq=1;var e=fO();w2=t,t.displayName="aspnet",t.aliases=[];function t(n){n.register(e),n.languages.aspnet=n.languages.extend("markup",{"page-directive":{pattern:/<%\s*@.*%>/,alias:"tag",inside:{"page-directive":{pattern:/<%\s*@\s*(?:Assembly|Control|Implements|Import|Master(?:Type)?|OutputCache|Page|PreviousPageType|Reference|Register)?|%>/i,alias:"tag"},rest:n.languages.markup.tag.inside}},directive:{pattern:/<%.*%>/,alias:"tag",inside:{directive:{pattern:/<%\s*?[$=%#:]{0,2}|%>/,alias:"tag"},rest:n.languages.csharp}}}),n.languages.aspnet.tag.pattern=/<(?!%)\/?[^\s>\/]+(?:\s+[^\s>\/=]+(?:=(?:("|')(?:\\[\s\S]|(?!\1)[^\\])*\1|[^\s'">=]+))?)*\s*\/?>/,n.languages.insertBefore("inside","punctuation",{directive:n.languages.aspnet.directive},n.languages.aspnet.tag.inside["attr-value"]),n.languages.insertBefore("aspnet","comment",{"asp-comment":{pattern:/<%--[\s\S]*?--%>/,alias:["asp","comment"]}}),n.languages.insertBefore("aspnet",n.languages.javascript?"script":"tag",{"asp-script":{pattern:/(]*>)[\s\S]*?(?=<\/script>)/i,lookbehind:!0,alias:["asp","script"],inside:n.languages.csharp||{}}})}return w2}var S2,Zq;function t4e(){if(Zq)return S2;Zq=1,S2=e,e.displayName="autohotkey",e.aliases=[];function e(t){t.languages.autohotkey={comment:[{pattern:/(^|\s);.*/,lookbehind:!0},{pattern:/(^[\t ]*)\/\*(?:[\r\n](?![ \t]*\*\/)|[^\r\n])*(?:[\r\n][ \t]*\*\/)?/m,lookbehind:!0,greedy:!0}],tag:{pattern:/^([ \t]*)[^\s,`":]+(?=:[ \t]*$)/m,lookbehind:!0},string:/"(?:[^"\n\r]|"")*"/,variable:/%\w+%/,number:/\b0x[\dA-Fa-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[Ee]-?\d+)?/,operator:/\?|\/\/?=?|:=|\|[=|]?|&[=&]?|\+[=+]?|-[=-]?|\*[=*]?|<(?:<=?|>|=)?|>>?=?|[.^!=~]=?|\b(?:AND|NOT|OR)\b/,boolean:/\b(?:false|true)\b/,selector:/\b(?:AutoTrim|BlockInput|Break|Click|ClipWait|Continue|Control|ControlClick|ControlFocus|ControlGet|ControlGetFocus|ControlGetPos|ControlGetText|ControlMove|ControlSend|ControlSendRaw|ControlSetText|CoordMode|Critical|DetectHiddenText|DetectHiddenWindows|Drive|DriveGet|DriveSpaceFree|EnvAdd|EnvDiv|EnvGet|EnvMult|EnvSet|EnvSub|EnvUpdate|Exit|ExitApp|FileAppend|FileCopy|FileCopyDir|FileCreateDir|FileCreateShortcut|FileDelete|FileEncoding|FileGetAttrib|FileGetShortcut|FileGetSize|FileGetTime|FileGetVersion|FileInstall|FileMove|FileMoveDir|FileRead|FileReadLine|FileRecycle|FileRecycleEmpty|FileRemoveDir|FileSelectFile|FileSelectFolder|FileSetAttrib|FileSetTime|FormatTime|GetKeyState|Gosub|Goto|GroupActivate|GroupAdd|GroupClose|GroupDeactivate|Gui|GuiControl|GuiControlGet|Hotkey|ImageSearch|IniDelete|IniRead|IniWrite|Input|InputBox|KeyWait|ListHotkeys|ListLines|ListVars|Loop|Menu|MouseClick|MouseClickDrag|MouseGetPos|MouseMove|MsgBox|OnExit|OutputDebug|Pause|PixelGetColor|PixelSearch|PostMessage|Process|Progress|Random|RegDelete|RegRead|RegWrite|Reload|Repeat|Return|Run|RunAs|RunWait|Send|SendEvent|SendInput|SendMessage|SendMode|SendPlay|SendRaw|SetBatchLines|SetCapslockState|SetControlDelay|SetDefaultMouseSpeed|SetEnv|SetFormat|SetKeyDelay|SetMouseDelay|SetNumlockState|SetRegView|SetScrollLockState|SetStoreCapslockMode|SetTimer|SetTitleMatchMode|SetWinDelay|SetWorkingDir|Shutdown|Sleep|Sort|SoundBeep|SoundGet|SoundGetWaveVolume|SoundPlay|SoundSet|SoundSetWaveVolume|SplashImage|SplashTextOff|SplashTextOn|SplitPath|StatusBarGetText|StatusBarWait|StringCaseSense|StringGetPos|StringLeft|StringLen|StringLower|StringMid|StringReplace|StringRight|StringSplit|StringTrimLeft|StringTrimRight|StringUpper|Suspend|SysGet|Thread|ToolTip|Transform|TrayTip|URLDownloadToFile|WinActivate|WinActivateBottom|WinClose|WinGet|WinGetActiveStats|WinGetActiveTitle|WinGetClass|WinGetPos|WinGetText|WinGetTitle|WinHide|WinKill|WinMaximize|WinMenuSelectItem|WinMinimize|WinMinimizeAll|WinMinimizeAllUndo|WinMove|WinRestore|WinSet|WinSetTitle|WinShow|WinWait|WinWaitActive|WinWaitClose|WinWaitNotActive)\b/i,constant:/\b(?:a_ahkpath|a_ahkversion|a_appdata|a_appdatacommon|a_autotrim|a_batchlines|a_caretx|a_carety|a_computername|a_controldelay|a_cursor|a_dd|a_ddd|a_dddd|a_defaultmousespeed|a_desktop|a_desktopcommon|a_detecthiddentext|a_detecthiddenwindows|a_endchar|a_eventinfo|a_exitreason|a_fileencoding|a_formatfloat|a_formatinteger|a_gui|a_guicontrol|a_guicontrolevent|a_guievent|a_guiheight|a_guiwidth|a_guix|a_guiy|a_hour|a_iconfile|a_iconhidden|a_iconnumber|a_icontip|a_index|a_ipaddress1|a_ipaddress2|a_ipaddress3|a_ipaddress4|a_is64bitos|a_isadmin|a_iscompiled|a_iscritical|a_ispaused|a_issuspended|a_isunicode|a_keydelay|a_language|a_lasterror|a_linefile|a_linenumber|a_loopfield|a_loopfileattrib|a_loopfiledir|a_loopfileext|a_loopfilefullpath|a_loopfilelongpath|a_loopfilename|a_loopfileshortname|a_loopfileshortpath|a_loopfilesize|a_loopfilesizekb|a_loopfilesizemb|a_loopfiletimeaccessed|a_loopfiletimecreated|a_loopfiletimemodified|a_loopreadline|a_loopregkey|a_loopregname|a_loopregsubkey|a_loopregtimemodified|a_loopregtype|a_mday|a_min|a_mm|a_mmm|a_mmmm|a_mon|a_mousedelay|a_msec|a_mydocuments|a_now|a_nowutc|a_numbatchlines|a_ostype|a_osversion|a_priorhotkey|a_priorkey|a_programfiles|a_programs|a_programscommon|a_ptrsize|a_regview|a_screendpi|a_screenheight|a_screenwidth|a_scriptdir|a_scriptfullpath|a_scripthwnd|a_scriptname|a_sec|a_space|a_startmenu|a_startmenucommon|a_startup|a_startupcommon|a_stringcasesense|a_tab|a_temp|a_thisfunc|a_thishotkey|a_thislabel|a_thismenu|a_thismenuitem|a_thismenuitempos|a_tickcount|a_timeidle|a_timeidlephysical|a_timesincepriorhotkey|a_timesincethishotkey|a_titlematchmode|a_titlematchmodespeed|a_username|a_wday|a_windelay|a_windir|a_workingdir|a_yday|a_year|a_yweek|a_yyyy|clipboard|clipboardall|comspec|errorlevel|programfiles)\b/i,builtin:/\b(?:abs|acos|asc|asin|atan|ceil|chr|class|comobjactive|comobjarray|comobjconnect|comobjcreate|comobjerror|comobjflags|comobjget|comobjquery|comobjtype|comobjvalue|cos|dllcall|exp|fileexist|Fileopen|floor|format|il_add|il_create|il_destroy|instr|isfunc|islabel|IsObject|ln|log|ltrim|lv_add|lv_delete|lv_deletecol|lv_getcount|lv_getnext|lv_gettext|lv_insert|lv_insertcol|lv_modify|lv_modifycol|lv_setimagelist|mod|numget|numput|onmessage|regexmatch|regexreplace|registercallback|round|rtrim|sb_seticon|sb_setparts|sb_settext|sin|sqrt|strlen|strreplace|strsplit|substr|tan|tv_add|tv_delete|tv_get|tv_getchild|tv_getcount|tv_getnext|tv_getparent|tv_getprev|tv_getselection|tv_gettext|tv_modify|varsetcapacity|winactive|winexist|__Call|__Get|__New|__Set)\b/i,symbol:/\b(?:alt|altdown|altup|appskey|backspace|browser_back|browser_favorites|browser_forward|browser_home|browser_refresh|browser_search|browser_stop|bs|capslock|ctrl|ctrlbreak|ctrldown|ctrlup|del|delete|down|end|enter|esc|escape|f1|f10|f11|f12|f13|f14|f15|f16|f17|f18|f19|f2|f20|f21|f22|f23|f24|f3|f4|f5|f6|f7|f8|f9|home|ins|insert|joy1|joy10|joy11|joy12|joy13|joy14|joy15|joy16|joy17|joy18|joy19|joy2|joy20|joy21|joy22|joy23|joy24|joy25|joy26|joy27|joy28|joy29|joy3|joy30|joy31|joy32|joy4|joy5|joy6|joy7|joy8|joy9|joyaxes|joybuttons|joyinfo|joyname|joypov|joyr|joyu|joyv|joyx|joyy|joyz|lalt|launch_app1|launch_app2|launch_mail|launch_media|lbutton|lcontrol|lctrl|left|lshift|lwin|lwindown|lwinup|mbutton|media_next|media_play_pause|media_prev|media_stop|numlock|numpad0|numpad1|numpad2|numpad3|numpad4|numpad5|numpad6|numpad7|numpad8|numpad9|numpadadd|numpadclear|numpaddel|numpaddiv|numpaddot|numpaddown|numpadend|numpadenter|numpadhome|numpadins|numpadleft|numpadmult|numpadpgdn|numpadpgup|numpadright|numpadsub|numpadup|pgdn|pgup|printscreen|ralt|rbutton|rcontrol|rctrl|right|rshift|rwin|rwindown|rwinup|scrolllock|shift|shiftdown|shiftup|space|tab|up|volume_down|volume_mute|volume_up|wheeldown|wheelleft|wheelright|wheelup|xbutton1|xbutton2)\b/i,important:/#\b(?:AllowSameLineComments|ClipboardTimeout|CommentFlag|DerefChar|ErrorStdOut|EscapeChar|HotkeyInterval|HotkeyModifierTimeout|Hotstring|If|IfTimeout|IfWinActive|IfWinExist|IfWinNotActive|IfWinNotExist|Include|IncludeAgain|InputLevel|InstallKeybdHook|InstallMouseHook|KeyHistory|MaxHotkeysPerInterval|MaxMem|MaxThreads|MaxThreadsBuffer|MaxThreadsPerHotkey|MenuMaskKey|NoEnv|NoTrayIcon|Persistent|SingleInstance|UseHook|Warn|WinActivateForce)\b/i,keyword:/\b(?:Abort|AboveNormal|Add|ahk_class|ahk_exe|ahk_group|ahk_id|ahk_pid|All|Alnum|Alpha|AltSubmit|AltTab|AltTabAndMenu|AltTabMenu|AltTabMenuDismiss|AlwaysOnTop|AutoSize|Background|BackgroundTrans|BelowNormal|between|BitAnd|BitNot|BitOr|BitShiftLeft|BitShiftRight|BitXOr|Bold|Border|Button|ByRef|Catch|Checkbox|Checked|CheckedGray|Choose|ChooseString|Close|Color|ComboBox|Contains|ControlList|Count|Date|DateTime|Days|DDL|Default|DeleteAll|Delimiter|Deref|Destroy|Digit|Disable|Disabled|DropDownList|Edit|Eject|Else|Enable|Enabled|Error|Exist|Expand|ExStyle|FileSystem|Finally|First|Flash|Float|FloatFast|Focus|Font|for|global|Grid|Group|GroupBox|GuiClose|GuiContextMenu|GuiDropFiles|GuiEscape|GuiSize|Hdr|Hidden|Hide|High|HKCC|HKCR|HKCU|HKEY_CLASSES_ROOT|HKEY_CURRENT_CONFIG|HKEY_CURRENT_USER|HKEY_LOCAL_MACHINE|HKEY_USERS|HKLM|HKU|Hours|HScroll|Icon|IconSmall|ID|IDLast|If|IfEqual|IfExist|IfGreater|IfGreaterOrEqual|IfInString|IfLess|IfLessOrEqual|IfMsgBox|IfNotEqual|IfNotExist|IfNotInString|IfWinActive|IfWinExist|IfWinNotActive|IfWinNotExist|Ignore|ImageList|in|Integer|IntegerFast|Interrupt|is|italic|Join|Label|LastFound|LastFoundExist|Limit|Lines|List|ListBox|ListView|local|Lock|Logoff|Low|Lower|Lowercase|MainWindow|Margin|Maximize|MaximizeBox|MaxSize|Minimize|MinimizeBox|MinMax|MinSize|Minutes|MonthCal|Mouse|Move|Multi|NA|No|NoActivate|NoDefault|NoHide|NoIcon|NoMainWindow|norm|Normal|NoSort|NoSortHdr|NoStandard|Not|NoTab|NoTimers|Number|Off|Ok|On|OwnDialogs|Owner|Parse|Password|Picture|Pixel|Pos|Pow|Priority|ProcessName|Radio|Range|Read|ReadOnly|Realtime|Redraw|Region|REG_BINARY|REG_DWORD|REG_EXPAND_SZ|REG_MULTI_SZ|REG_SZ|Relative|Rename|Report|Resize|Restore|Retry|RGB|Screen|Seconds|Section|Serial|SetLabel|ShiftAltTab|Show|Single|Slider|SortDesc|Standard|static|Status|StatusBar|StatusCD|strike|Style|Submit|SysMenu|Tab2|TabStop|Text|Theme|Throw|Tile|ToggleCheck|ToggleEnable|ToolWindow|Top|Topmost|TransColor|Transparent|Tray|TreeView|Try|TryAgain|Type|UnCheck|underline|Unicode|Unlock|Until|UpDown|Upper|Uppercase|UseErrorLevel|Vis|VisFirst|Visible|VScroll|Wait|WaitClose|WantCtrlA|WantF2|WantReturn|While|Wrap|Xdigit|xm|xp|xs|Yes|ym|yp|ys)\b/i,function:/[^(); \t,\n+*\-=?>:\\\/<&%\[\]]+(?=\()/,punctuation:/[{}[\]():,]/}}return S2}var E2,e9;function n4e(){if(e9)return E2;e9=1,E2=e,e.displayName="autoit",e.aliases=[];function e(t){t.languages.autoit={comment:[/;.*/,{pattern:/(^[\t ]*)#(?:comments-start|cs)[\s\S]*?^[ \t]*#(?:ce|comments-end)/m,lookbehind:!0}],url:{pattern:/(^[\t ]*#include\s+)(?:<[^\r\n>]+>|"[^\r\n"]+")/m,lookbehind:!0},string:{pattern:/(["'])(?:\1\1|(?!\1)[^\r\n])*\1/,greedy:!0,inside:{variable:/([%$@])\w+\1/}},directive:{pattern:/(^[\t ]*)#[\w-]+/m,lookbehind:!0,alias:"keyword"},function:/\b\w+(?=\()/,variable:/[$@]\w+/,keyword:/\b(?:Case|Const|Continue(?:Case|Loop)|Default|Dim|Do|Else(?:If)?|End(?:Func|If|Select|Switch|With)|Enum|Exit(?:Loop)?|For|Func|Global|If|In|Local|Next|Null|ReDim|Select|Static|Step|Switch|Then|To|Until|Volatile|WEnd|While|With)\b/i,number:/\b(?:0x[\da-f]+|\d+(?:\.\d+)?(?:e[+-]?\d+)?)\b/i,boolean:/\b(?:False|True)\b/i,operator:/<[=>]?|[-+*\/=&>]=?|[?^]|\b(?:And|Not|Or)\b/i,punctuation:/[\[\]().,:]/}}return E2}var T2,t9;function r4e(){if(t9)return T2;t9=1,T2=e,e.displayName="avisynth",e.aliases=["avs"];function e(t){(function(n){function r(f,g){return f.replace(/<<(\d+)>>/g,function(y,h){return g[+h]})}function a(f,g,y){return RegExp(r(f,g),y)}var i=/bool|clip|float|int|string|val/.source,o=[/is(?:bool|clip|float|int|string)|defined|(?:(?:internal)?function|var)?exists?/.source,/apply|assert|default|eval|import|nop|select|undefined/.source,/opt_(?:allowfloataudio|avipadscanlines|dwchannelmask|enable_(?:b64a|planartopackedrgb|v210|y3_10_10|y3_10_16)|usewaveextensible|vdubplanarhack)|set(?:cachemode|maxcpu|memorymax|planarlegacyalignment|workingdir)/.source,/hex(?:value)?|value/.source,/abs|ceil|continued(?:denominator|numerator)?|exp|floor|fmod|frac|log(?:10)?|max|min|muldiv|pi|pow|rand|round|sign|spline|sqrt/.source,/a?sinh?|a?cosh?|a?tan[2h]?/.source,/(?:bit(?:and|not|x?or|[lr]?shift[aslu]?|sh[lr]|sa[lr]|[lr]rotatel?|ro[rl]|te?st|set(?:count)?|cl(?:ea)?r|ch(?:an)?ge?))/.source,/average(?:[bgr]|chroma[uv]|luma)|(?:[rgb]|chroma[uv]|luma|rgb|[yuv](?=difference(?:fromprevious|tonext)))difference(?:fromprevious|tonext)?|[yuvrgb]plane(?:median|min|max|minmaxdifference)/.source,/getprocessinfo|logmsg|script(?:dir(?:utf8)?|file(?:utf8)?|name(?:utf8)?)|setlogparams/.source,/chr|(?:fill|find|left|mid|replace|rev|right)str|format|[lu]case|ord|str(?:cmpi?|fromutf8|len|toutf8)|time|trim(?:all|left|right)/.source,/isversionorgreater|version(?:number|string)/.source,/buildpixeltype|colorspacenametopixeltype/.source,/addautoloaddir|on(?:cpu|cuda)|prefetch|setfiltermtmode/.source].join("|"),l=[/has(?:audio|video)/.source,/height|width/.source,/frame(?:count|rate)|framerate(?:denominator|numerator)/.source,/getparity|is(?:field|frame)based/.source,/bitspercomponent|componentsize|hasalpha|is(?:planar(?:rgba?)?|interleaved|rgb(?:24|32|48|64)?|y(?:8|u(?:va?|y2))?|yv(?:12|16|24|411)|420|422|444|packedrgb)|numcomponents|pixeltype/.source,/audio(?:bits|channels|duration|length(?:[fs]|hi|lo)?|rate)|isaudio(?:float|int)/.source].join("|"),u=[/avi(?:file)?source|directshowsource|image(?:reader|source|sourceanim)|opendmlsource|segmented(?:avisource|directshowsource)|wavsource/.source,/coloryuv|convertbacktoyuy2|convertto(?:RGB(?:24|32|48|64)|(?:planar)?RGBA?|Y8?|YV(?:12|16|24|411)|YUVA?(?:411|420|422|444)|YUY2)|fixluminance|gr[ae]yscale|invert|levels|limiter|mergea?rgb|merge(?:chroma|luma)|rgbadjust|show(?:alpha|blue|green|red)|swapuv|tweak|[uv]toy8?|ytouv/.source,/(?:colorkey|reset)mask|layer|mask(?:hs)?|merge|overlay|subtract/.source,/addborders|(?:bicubic|bilinear|blackman|gauss|lanczos4|lanczos|point|sinc|spline(?:16|36|64))resize|crop(?:bottom)?|flip(?:horizontal|vertical)|(?:horizontal|vertical)?reduceby2|letterbox|skewrows|turn(?:180|left|right)/.source,/blur|fixbrokenchromaupsampling|generalconvolution|(?:spatial|temporal)soften|sharpen/.source,/trim|(?:un)?alignedsplice|(?:assume|assumescaled|change|convert)FPS|(?:delete|duplicate)frame|dissolve|fade(?:in|io|out)[02]?|freezeframe|interleave|loop|reverse|select(?:even|odd|(?:range)?every)/.source,/assume[bt]ff|assume(?:field|frame)based|bob|complementparity|doubleweave|peculiarblend|pulldown|separate(?:columns|fields|rows)|swapfields|weave(?:columns|rows)?/.source,/amplify(?:db)?|assumesamplerate|audiodub(?:ex)?|audiotrim|convertaudioto(?:(?:8|16|24|32)bit|float)|converttomono|delayaudio|ensurevbrmp3sync|get(?:left|right)?channel|kill(?:audio|video)|mergechannels|mixaudio|monotostereo|normalize|resampleaudio|ssrc|supereq|timestretch/.source,/animate|applyrange|conditional(?:filter|reader|select)|frameevaluate|scriptclip|tcp(?:server|source)|writefile(?:end|if|start)?/.source,/imagewriter/.source,/blackness|blankclip|colorbars(?:hd)?|compare|dumpfiltergraph|echo|histogram|info|messageclip|preroll|setgraphanalysis|show(?:framenumber|smpte|time)|showfiveversions|stack(?:horizontal|vertical)|subtitle|tone|version/.source].join("|"),d=[o,l,u].join("|");n.languages.avisynth={comment:[{pattern:/(^|[^\\])\[\*(?:[^\[*]|\[(?!\*)|\*(?!\])|\[\*(?:[^\[*]|\[(?!\*)|\*(?!\]))*\*\])*\*\]/,lookbehind:!0,greedy:!0},{pattern:/(^|[^\\])\/\*[\s\S]*?(?:\*\/|$)/,lookbehind:!0,greedy:!0},{pattern:/(^|[^\\$])#.*/,lookbehind:!0,greedy:!0}],argument:{pattern:a(/\b(?:<<0>>)\s+("?)\w+\1/.source,[i],"i"),inside:{keyword:/^\w+/}},"argument-label":{pattern:/([,(][\s\\]*)\w+\s*=(?!=)/,lookbehind:!0,inside:{"argument-name":{pattern:/^\w+/,alias:"punctuation"},punctuation:/=$/}},string:[{pattern:/"""[\s\S]*?"""/,greedy:!0},{pattern:/"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"/,greedy:!0,inside:{constant:{pattern:/\b(?:DEFAULT_MT_MODE|(?:MAINSCRIPT|PROGRAM|SCRIPT)DIR|(?:MACHINE|USER)_(?:CLASSIC|PLUS)_PLUGINS)\b/}}}],variable:/\b(?:last)\b/i,boolean:/\b(?:false|no|true|yes)\b/i,keyword:/\b(?:catch|else|for|function|global|if|return|try|while|__END__)\b/i,constant:/\bMT_(?:MULTI_INSTANCE|NICE_FILTER|SERIALIZED|SPECIAL_MT)\b/,"builtin-function":{pattern:a(/\b(?:<<0>>)\b/.source,[d],"i"),alias:"function"},"type-cast":{pattern:a(/\b(?:<<0>>)(?=\s*\()/.source,[i],"i"),alias:"keyword"},function:{pattern:/\b[a-z_]\w*(?=\s*\()|(\.)[a-z_]\w*\b/i,lookbehind:!0},"line-continuation":{pattern:/(^[ \t]*)\\|\\(?=[ \t]*$)/m,lookbehind:!0,alias:"punctuation"},number:/\B\$(?:[\da-f]{6}|[\da-f]{8})\b|(?:(?:\b|\B-)\d+(?:\.\d*)?\b|\B\.\d+\b)/i,operator:/\+\+?|[!=<>]=?|&&|\|\||[?:*/%-]/,punctuation:/[{}\[\]();,.]/},n.languages.avs=n.languages.avisynth})(t)}return T2}var C2,n9;function a4e(){if(n9)return C2;n9=1,C2=e,e.displayName="avroIdl",e.aliases=[];function e(t){t.languages["avro-idl"]={comment:{pattern:/\/\/.*|\/\*[\s\S]*?\*\//,greedy:!0},string:{pattern:/(^|[^\\])"(?:[^\r\n"\\]|\\.)*"/,lookbehind:!0,greedy:!0},annotation:{pattern:/@(?:[$\w.-]|`[^\r\n`]+`)+/,greedy:!0,alias:"function"},"function-identifier":{pattern:/`[^\r\n`]+`(?=\s*\()/,greedy:!0,alias:"function"},identifier:{pattern:/`[^\r\n`]+`/,greedy:!0},"class-name":{pattern:/(\b(?:enum|error|protocol|record|throws)\b\s+)[$\w]+/,lookbehind:!0,greedy:!0},keyword:/\b(?:array|boolean|bytes|date|decimal|double|enum|error|false|fixed|float|idl|import|int|local_timestamp_ms|long|map|null|oneway|protocol|record|schema|string|throws|time_ms|timestamp_ms|true|union|uuid|void)\b/,function:/\b[a-z_]\w*(?=\s*\()/i,number:[{pattern:/(^|[^\w.])-?(?:(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?|0x(?:[a-f0-9]+(?:\.[a-f0-9]*)?|\.[a-f0-9]+)(?:p[+-]?\d+)?)[dfl]?(?![\w.])/i,lookbehind:!0},/-?\b(?:Infinity|NaN)\b/],operator:/=/,punctuation:/[()\[\]{}<>.:,;-]/},t.languages.avdl=t.languages["avro-idl"]}return C2}var k2,r9;function qre(){if(r9)return k2;r9=1,k2=e,e.displayName="bash",e.aliases=["shell"];function e(t){(function(n){var r="\\b(?:BASH|BASHOPTS|BASH_ALIASES|BASH_ARGC|BASH_ARGV|BASH_CMDS|BASH_COMPLETION_COMPAT_DIR|BASH_LINENO|BASH_REMATCH|BASH_SOURCE|BASH_VERSINFO|BASH_VERSION|COLORTERM|COLUMNS|COMP_WORDBREAKS|DBUS_SESSION_BUS_ADDRESS|DEFAULTS_PATH|DESKTOP_SESSION|DIRSTACK|DISPLAY|EUID|GDMSESSION|GDM_LANG|GNOME_KEYRING_CONTROL|GNOME_KEYRING_PID|GPG_AGENT_INFO|GROUPS|HISTCONTROL|HISTFILE|HISTFILESIZE|HISTSIZE|HOME|HOSTNAME|HOSTTYPE|IFS|INSTANCE|JOB|LANG|LANGUAGE|LC_ADDRESS|LC_ALL|LC_IDENTIFICATION|LC_MEASUREMENT|LC_MONETARY|LC_NAME|LC_NUMERIC|LC_PAPER|LC_TELEPHONE|LC_TIME|LESSCLOSE|LESSOPEN|LINES|LOGNAME|LS_COLORS|MACHTYPE|MAILCHECK|MANDATORY_PATH|NO_AT_BRIDGE|OLDPWD|OPTERR|OPTIND|ORBIT_SOCKETDIR|OSTYPE|PAPERSIZE|PATH|PIPESTATUS|PPID|PS1|PS2|PS3|PS4|PWD|RANDOM|REPLY|SECONDS|SELINUX_INIT|SESSION|SESSIONTYPE|SESSION_MANAGER|SHELL|SHELLOPTS|SHLVL|SSH_AUTH_SOCK|TERM|UID|UPSTART_EVENTS|UPSTART_INSTANCE|UPSTART_JOB|UPSTART_SESSION|USER|WINDOWID|XAUTHORITY|XDG_CONFIG_DIRS|XDG_CURRENT_DESKTOP|XDG_DATA_DIRS|XDG_GREETER_DATA_DIR|XDG_MENU_PREFIX|XDG_RUNTIME_DIR|XDG_SEAT|XDG_SEAT_PATH|XDG_SESSION_DESKTOP|XDG_SESSION_ID|XDG_SESSION_PATH|XDG_SESSION_TYPE|XDG_VTNR|XMODIFIERS)\\b",a={pattern:/(^(["']?)\w+\2)[ \t]+\S.*/,lookbehind:!0,alias:"punctuation",inside:null},i={bash:a,environment:{pattern:RegExp("\\$"+r),alias:"constant"},variable:[{pattern:/\$?\(\([\s\S]+?\)\)/,greedy:!0,inside:{variable:[{pattern:/(^\$\(\([\s\S]+)\)\)/,lookbehind:!0},/^\$\(\(/],number:/\b0x[\dA-Fa-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[Ee]-?\d+)?/,operator:/--|\+\+|\*\*=?|<<=?|>>=?|&&|\|\||[=!+\-*/%<>^&|]=?|[?~:]/,punctuation:/\(\(?|\)\)?|,|;/}},{pattern:/\$\((?:\([^)]+\)|[^()])+\)|`[^`]+`/,greedy:!0,inside:{variable:/^\$\(|^`|\)$|`$/}},{pattern:/\$\{[^}]+\}/,greedy:!0,inside:{operator:/:[-=?+]?|[!\/]|##?|%%?|\^\^?|,,?/,punctuation:/[\[\]]/,environment:{pattern:RegExp("(\\{)"+r),lookbehind:!0,alias:"constant"}}},/\$(?:\w+|[#?*!@$])/],entity:/\\(?:[abceEfnrtv\\"]|O?[0-7]{1,3}|U[0-9a-fA-F]{8}|u[0-9a-fA-F]{4}|x[0-9a-fA-F]{1,2})/};n.languages.bash={shebang:{pattern:/^#!\s*\/.*/,alias:"important"},comment:{pattern:/(^|[^"{\\$])#.*/,lookbehind:!0},"function-name":[{pattern:/(\bfunction\s+)[\w-]+(?=(?:\s*\(?:\s*\))?\s*\{)/,lookbehind:!0,alias:"function"},{pattern:/\b[\w-]+(?=\s*\(\s*\)\s*\{)/,alias:"function"}],"for-or-select":{pattern:/(\b(?:for|select)\s+)\w+(?=\s+in\s)/,alias:"variable",lookbehind:!0},"assign-left":{pattern:/(^|[\s;|&]|[<>]\()\w+(?=\+?=)/,inside:{environment:{pattern:RegExp("(^|[\\s;|&]|[<>]\\()"+r),lookbehind:!0,alias:"constant"}},alias:"variable",lookbehind:!0},string:[{pattern:/((?:^|[^<])<<-?\s*)(\w+)\s[\s\S]*?(?:\r?\n|\r)\2/,lookbehind:!0,greedy:!0,inside:i},{pattern:/((?:^|[^<])<<-?\s*)(["'])(\w+)\2\s[\s\S]*?(?:\r?\n|\r)\3/,lookbehind:!0,greedy:!0,inside:{bash:a}},{pattern:/(^|[^\\](?:\\\\)*)"(?:\\[\s\S]|\$\([^)]+\)|\$(?!\()|`[^`]+`|[^"\\`$])*"/,lookbehind:!0,greedy:!0,inside:i},{pattern:/(^|[^$\\])'[^']*'/,lookbehind:!0,greedy:!0},{pattern:/\$'(?:[^'\\]|\\[\s\S])*'/,greedy:!0,inside:{entity:i.entity}}],environment:{pattern:RegExp("\\$?"+r),alias:"constant"},variable:i.variable,function:{pattern:/(^|[\s;|&]|[<>]\()(?:add|apropos|apt|apt-cache|apt-get|aptitude|aspell|automysqlbackup|awk|basename|bash|bc|bconsole|bg|bzip2|cal|cat|cfdisk|chgrp|chkconfig|chmod|chown|chroot|cksum|clear|cmp|column|comm|composer|cp|cron|crontab|csplit|curl|cut|date|dc|dd|ddrescue|debootstrap|df|diff|diff3|dig|dir|dircolors|dirname|dirs|dmesg|docker|docker-compose|du|egrep|eject|env|ethtool|expand|expect|expr|fdformat|fdisk|fg|fgrep|file|find|fmt|fold|format|free|fsck|ftp|fuser|gawk|git|gparted|grep|groupadd|groupdel|groupmod|groups|grub-mkconfig|gzip|halt|head|hg|history|host|hostname|htop|iconv|id|ifconfig|ifdown|ifup|import|install|ip|jobs|join|kill|killall|less|link|ln|locate|logname|logrotate|look|lpc|lpr|lprint|lprintd|lprintq|lprm|ls|lsof|lynx|make|man|mc|mdadm|mkconfig|mkdir|mke2fs|mkfifo|mkfs|mkisofs|mknod|mkswap|mmv|more|most|mount|mtools|mtr|mutt|mv|nano|nc|netstat|nice|nl|node|nohup|notify-send|npm|nslookup|op|open|parted|passwd|paste|pathchk|ping|pkill|pnpm|podman|podman-compose|popd|pr|printcap|printenv|ps|pushd|pv|quota|quotacheck|quotactl|ram|rar|rcp|reboot|remsync|rename|renice|rev|rm|rmdir|rpm|rsync|scp|screen|sdiff|sed|sendmail|seq|service|sftp|sh|shellcheck|shuf|shutdown|sleep|slocate|sort|split|ssh|stat|strace|su|sudo|sum|suspend|swapon|sync|tac|tail|tar|tee|time|timeout|top|touch|tr|traceroute|tsort|tty|umount|uname|unexpand|uniq|units|unrar|unshar|unzip|update-grub|uptime|useradd|userdel|usermod|users|uudecode|uuencode|v|vcpkg|vdir|vi|vim|virsh|vmstat|wait|watch|wc|wget|whereis|which|who|whoami|write|xargs|xdg-open|yarn|yes|zenity|zip|zsh|zypper)(?=$|[)\s;|&])/,lookbehind:!0},keyword:{pattern:/(^|[\s;|&]|[<>]\()(?:case|do|done|elif|else|esac|fi|for|function|if|in|select|then|until|while)(?=$|[)\s;|&])/,lookbehind:!0},builtin:{pattern:/(^|[\s;|&]|[<>]\()(?:\.|:|alias|bind|break|builtin|caller|cd|command|continue|declare|echo|enable|eval|exec|exit|export|getopts|hash|help|let|local|logout|mapfile|printf|pwd|read|readarray|readonly|return|set|shift|shopt|source|test|times|trap|type|typeset|ulimit|umask|unalias|unset)(?=$|[)\s;|&])/,lookbehind:!0,alias:"class-name"},boolean:{pattern:/(^|[\s;|&]|[<>]\()(?:false|true)(?=$|[)\s;|&])/,lookbehind:!0},"file-descriptor":{pattern:/\B&\d\b/,alias:"important"},operator:{pattern:/\d?<>|>\||\+=|=[=~]?|!=?|<<[<-]?|[&\d]?>>|\d[<>]&?|[<>][&=]?|&[>&]?|\|[&|]?/,inside:{"file-descriptor":{pattern:/^\d/,alias:"important"}}},punctuation:/\$?\(\(?|\)\)?|\.\.|[{}[\];\\]/,number:{pattern:/(^|\s)(?:[1-9]\d*|0)(?:[.,]\d+)?\b/,lookbehind:!0}},a.inside=n.languages.bash;for(var o=["comment","function-name","for-or-select","assign-left","string","environment","function","keyword","builtin","boolean","file-descriptor","operator","punctuation","number"],l=i.variable[1].inside,u=0;u?^\w +\-.])*"/,greedy:!0},number:/(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:E[+-]?\d+)?/i,keyword:/\b(?:AS|BEEP|BLOAD|BSAVE|CALL(?: ABSOLUTE)?|CASE|CHAIN|CHDIR|CLEAR|CLOSE|CLS|COM|COMMON|CONST|DATA|DECLARE|DEF(?: FN| SEG|DBL|INT|LNG|SNG|STR)|DIM|DO|DOUBLE|ELSE|ELSEIF|END|ENVIRON|ERASE|ERROR|EXIT|FIELD|FILES|FOR|FUNCTION|GET|GOSUB|GOTO|IF|INPUT|INTEGER|IOCTL|KEY|KILL|LINE INPUT|LOCATE|LOCK|LONG|LOOP|LSET|MKDIR|NAME|NEXT|OFF|ON(?: COM| ERROR| KEY| TIMER)?|OPEN|OPTION BASE|OUT|POKE|PUT|READ|REDIM|REM|RESTORE|RESUME|RETURN|RMDIR|RSET|RUN|SELECT CASE|SHARED|SHELL|SINGLE|SLEEP|STATIC|STEP|STOP|STRING|SUB|SWAP|SYSTEM|THEN|TIMER|TO|TROFF|TRON|TYPE|UNLOCK|UNTIL|USING|VIEW PRINT|WAIT|WEND|WHILE|WRITE)(?:\$|\b)/i,function:/\b(?:ABS|ACCESS|ACOS|ANGLE|AREA|ARITHMETIC|ARRAY|ASIN|ASK|AT|ATN|BASE|BEGIN|BREAK|CAUSE|CEIL|CHR|CLIP|COLLATE|COLOR|CON|COS|COSH|COT|CSC|DATE|DATUM|DEBUG|DECIMAL|DEF|DEG|DEGREES|DELETE|DET|DEVICE|DISPLAY|DOT|ELAPSED|EPS|ERASABLE|EXLINE|EXP|EXTERNAL|EXTYPE|FILETYPE|FIXED|FP|GO|GRAPH|HANDLER|IDN|IMAGE|IN|INT|INTERNAL|IP|IS|KEYED|LBOUND|LCASE|LEFT|LEN|LENGTH|LET|LINE|LINES|LOG|LOG10|LOG2|LTRIM|MARGIN|MAT|MAX|MAXNUM|MID|MIN|MISSING|MOD|NATIVE|NUL|NUMERIC|OF|OPTION|ORD|ORGANIZATION|OUTIN|OUTPUT|PI|POINT|POINTER|POINTS|POS|PRINT|PROGRAM|PROMPT|RAD|RADIANS|RANDOMIZE|RECORD|RECSIZE|RECTYPE|RELATIVE|REMAINDER|REPEAT|REST|RETRY|REWRITE|RIGHT|RND|ROUND|RTRIM|SAME|SEC|SELECT|SEQUENTIAL|SET|SETTER|SGN|SIN|SINH|SIZE|SKIP|SQR|STANDARD|STATUS|STR|STREAM|STYLE|TAB|TAN|TANH|TEMPLATE|TEXT|THERE|TIME|TIMEOUT|TRACE|TRANSFORM|TRUNCATE|UBOUND|UCASE|USE|VAL|VARIABLE|VIEWPORT|WHEN|WINDOW|WITH|ZER|ZONEWIDTH)(?:\$|\b)/i,operator:/<[=>]?|>=?|[+\-*\/^=&]|\b(?:AND|EQV|IMP|NOT|OR|XOR)\b/i,punctuation:/[,;:()]/}}return x2}var _2,i9;function i4e(){if(i9)return _2;i9=1,_2=e,e.displayName="batch",e.aliases=[];function e(t){(function(n){var r=/%%?[~:\w]+%?|!\S+!/,a={pattern:/\/[a-z?]+(?=[ :]|$):?|-[a-z]\b|--[a-z-]+\b/im,alias:"attr-name",inside:{punctuation:/:/}},i=/"(?:[\\"]"|[^"])*"(?!")/,o=/(?:\b|-)\d+\b/;n.languages.batch={comment:[/^::.*/m,{pattern:/((?:^|[&(])[ \t]*)rem\b(?:[^^&)\r\n]|\^(?:\r\n|[\s\S]))*/im,lookbehind:!0}],label:{pattern:/^:.*/m,alias:"property"},command:[{pattern:/((?:^|[&(])[ \t]*)for(?: \/[a-z?](?:[ :](?:"[^"]*"|[^\s"/]\S*))?)* \S+ in \([^)]+\) do/im,lookbehind:!0,inside:{keyword:/\b(?:do|in)\b|^for\b/i,string:i,parameter:a,variable:r,number:o,punctuation:/[()',]/}},{pattern:/((?:^|[&(])[ \t]*)if(?: \/[a-z?](?:[ :](?:"[^"]*"|[^\s"/]\S*))?)* (?:not )?(?:cmdextversion \d+|defined \w+|errorlevel \d+|exist \S+|(?:"[^"]*"|(?!")(?:(?!==)\S)+)?(?:==| (?:equ|geq|gtr|leq|lss|neq) )(?:"[^"]*"|[^\s"]\S*))/im,lookbehind:!0,inside:{keyword:/\b(?:cmdextversion|defined|errorlevel|exist|not)\b|^if\b/i,string:i,parameter:a,variable:r,number:o,operator:/\^|==|\b(?:equ|geq|gtr|leq|lss|neq)\b/i}},{pattern:/((?:^|[&()])[ \t]*)else\b/im,lookbehind:!0,inside:{keyword:/^else\b/i}},{pattern:/((?:^|[&(])[ \t]*)set(?: \/[a-z](?:[ :](?:"[^"]*"|[^\s"/]\S*))?)* (?:[^^&)\r\n]|\^(?:\r\n|[\s\S]))*/im,lookbehind:!0,inside:{keyword:/^set\b/i,string:i,parameter:a,variable:[r,/\w+(?=(?:[*\/%+\-&^|]|<<|>>)?=)/],number:o,operator:/[*\/%+\-&^|]=?|<<=?|>>=?|[!~_=]/,punctuation:/[()',]/}},{pattern:/((?:^|[&(])[ \t]*@?)\w+\b(?:"(?:[\\"]"|[^"])*"(?!")|[^"^&)\r\n]|\^(?:\r\n|[\s\S]))*/m,lookbehind:!0,inside:{keyword:/^\w+\b/,string:i,parameter:a,label:{pattern:/(^\s*):\S+/m,lookbehind:!0,alias:"property"},variable:r,number:o,operator:/\^/}}],operator:/[&@]/,punctuation:/[()']/}})(t)}return _2}var O2,o9;function o4e(){if(o9)return O2;o9=1,O2=e,e.displayName="bbcode",e.aliases=["shortcode"];function e(t){t.languages.bbcode={tag:{pattern:/\[\/?[^\s=\]]+(?:\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'"\]=]+))?(?:\s+[^\s=\]]+\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'"\]=]+))*\s*\]/,inside:{tag:{pattern:/^\[\/?[^\s=\]]+/,inside:{punctuation:/^\[\/?/}},"attr-value":{pattern:/=\s*(?:"[^"]*"|'[^']*'|[^\s'"\]=]+)/,inside:{punctuation:[/^=/,{pattern:/^(\s*)["']|["']$/,lookbehind:!0}]}},punctuation:/\]/,"attr-name":/[^\s=\]]+/}}},t.languages.shortcode=t.languages.bbcode}return O2}var R2,s9;function s4e(){if(s9)return R2;s9=1,R2=e,e.displayName="bicep",e.aliases=[];function e(t){t.languages.bicep={comment:[{pattern:/(^|[^\\])\/\*[\s\S]*?(?:\*\/|$)/,lookbehind:!0,greedy:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],property:[{pattern:/([\r\n][ \t]*)[a-z_]\w*(?=[ \t]*:)/i,lookbehind:!0},{pattern:/([\r\n][ \t]*)'(?:\\.|\$(?!\{)|[^'\\\r\n$])*'(?=[ \t]*:)/,lookbehind:!0,greedy:!0}],string:[{pattern:/'''[^'][\s\S]*?'''/,greedy:!0},{pattern:/(^|[^\\'])'(?:\\.|\$(?!\{)|[^'\\\r\n$])*'/,lookbehind:!0,greedy:!0}],"interpolated-string":{pattern:/(^|[^\\'])'(?:\\.|\$(?:(?!\{)|\{[^{}\r\n]*\})|[^'\\\r\n$])*'/,lookbehind:!0,greedy:!0,inside:{interpolation:{pattern:/\$\{[^{}\r\n]*\}/,inside:{expression:{pattern:/(^\$\{)[\s\S]+(?=\}$)/,lookbehind:!0},punctuation:/^\$\{|\}$/}},string:/[\s\S]+/}},datatype:{pattern:/(\b(?:output|param)\b[ \t]+\w+[ \t]+)\w+\b/,lookbehind:!0,alias:"class-name"},boolean:/\b(?:false|true)\b/,keyword:/\b(?:existing|for|if|in|module|null|output|param|resource|targetScope|var)\b/,decorator:/@\w+\b/,function:/\b[a-z_]\w*(?=[ \t]*\()/i,number:/(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:E[+-]?\d+)?/i,operator:/--|\+\+|\*\*=?|=>|&&=?|\|\|=?|[!=]==|<<=?|>>>?=?|[-+*/%&|^!=<>]=?|\.{3}|\?\?=?|\?\.?|[~:]/,punctuation:/[{}[\];(),.:]/},t.languages.bicep["interpolated-string"].inside.interpolation.inside.expression.inside=t.languages.bicep}return R2}var P2,l9;function l4e(){if(l9)return P2;l9=1,P2=e,e.displayName="birb",e.aliases=[];function e(t){t.languages.birb=t.languages.extend("clike",{string:{pattern:/r?("|')(?:\\.|(?!\1)[^\\])*\1/,greedy:!0},"class-name":[/\b[A-Z](?:[\d_]*[a-zA-Z]\w*)?\b/,/\b(?:[A-Z]\w*|(?!(?:var|void)\b)[a-z]\w*)(?=\s+\w+\s*[;,=()])/],keyword:/\b(?:assert|break|case|class|const|default|else|enum|final|follows|for|grab|if|nest|new|next|noSeeb|return|static|switch|throw|var|void|while)\b/,operator:/\+\+|--|&&|\|\||<<=?|>>=?|~(?:\/=?)?|[+\-*\/%&^|=!<>]=?|\?|:/,variable:/\b[a-z_]\w*\b/}),t.languages.insertBefore("birb","function",{metadata:{pattern:/<\w+>/,greedy:!0,alias:"symbol"}})}return P2}var A2,u9;function u4e(){if(u9)return A2;u9=1;var e=vy();A2=t,t.displayName="bison",t.aliases=[];function t(n){n.register(e),n.languages.bison=n.languages.extend("c",{}),n.languages.insertBefore("bison","comment",{bison:{pattern:/^(?:[^%]|%(?!%))*%%[\s\S]*?%%/,inside:{c:{pattern:/%\{[\s\S]*?%\}|\{(?:\{[^}]*\}|[^{}])*\}/,inside:{delimiter:{pattern:/^%?\{|%?\}$/,alias:"punctuation"},"bison-variable":{pattern:/[$@](?:<[^\s>]+>)?[\w$]+/,alias:"variable",inside:{punctuation:/<|>/}},rest:n.languages.c}},comment:n.languages.c.comment,string:n.languages.c.string,property:/\S+(?=:)/,keyword:/%\w+/,number:{pattern:/(^|[^@])\b(?:0x[\da-f]+|\d+)/i,lookbehind:!0},punctuation:/%[%?]|[|:;\[\]<>]/}}})}return A2}var N2,c9;function c4e(){if(c9)return N2;c9=1,N2=e,e.displayName="bnf",e.aliases=["rbnf"];function e(t){t.languages.bnf={string:{pattern:/"[^\r\n"]*"|'[^\r\n']*'/},definition:{pattern:/<[^<>\r\n\t]+>(?=\s*::=)/,alias:["rule","keyword"],inside:{punctuation:/^<|>$/}},rule:{pattern:/<[^<>\r\n\t]+>/,inside:{punctuation:/^<|>$/}},operator:/::=|[|()[\]{}*+?]|\.{3}/},t.languages.rbnf=t.languages.bnf}return N2}var M2,d9;function d4e(){if(d9)return M2;d9=1,M2=e,e.displayName="brainfuck",e.aliases=[];function e(t){t.languages.brainfuck={pointer:{pattern:/<|>/,alias:"keyword"},increment:{pattern:/\+/,alias:"inserted"},decrement:{pattern:/-/,alias:"deleted"},branching:{pattern:/\[|\]/,alias:"important"},operator:/[.,]/,comment:/\S+/}}return M2}var I2,f9;function f4e(){if(f9)return I2;f9=1,I2=e,e.displayName="brightscript",e.aliases=[];function e(t){t.languages.brightscript={comment:/(?:\brem|').*/i,"directive-statement":{pattern:/(^[\t ]*)#(?:const|else(?:[\t ]+if)?|end[\t ]+if|error|if).*/im,lookbehind:!0,alias:"property",inside:{"error-message":{pattern:/(^#error).+/,lookbehind:!0},directive:{pattern:/^#(?:const|else(?:[\t ]+if)?|end[\t ]+if|error|if)/,alias:"keyword"},expression:{pattern:/[\s\S]+/,inside:null}}},property:{pattern:/([\r\n{,][\t ]*)(?:(?!\d)\w+|"(?:[^"\r\n]|"")*"(?!"))(?=[ \t]*:)/,lookbehind:!0,greedy:!0},string:{pattern:/"(?:[^"\r\n]|"")*"(?!")/,greedy:!0},"class-name":{pattern:/(\bAs[\t ]+)\w+/i,lookbehind:!0},keyword:/\b(?:As|Dim|Each|Else|Elseif|End|Exit|For|Function|Goto|If|In|Print|Return|Step|Stop|Sub|Then|To|While)\b/i,boolean:/\b(?:false|true)\b/i,function:/\b(?!\d)\w+(?=[\t ]*\()/,number:/(?:\b\d+(?:\.\d+)?(?:[ed][+-]\d+)?|&h[a-f\d]+)\b[%&!#]?/i,operator:/--|\+\+|>>=?|<<=?|<>|[-+*/\\<>]=?|[:^=?]|\b(?:and|mod|not|or)\b/i,punctuation:/[.,;()[\]{}]/,constant:/\b(?:LINE_NUM)\b/i},t.languages.brightscript["directive-statement"].inside.expression.inside=t.languages.brightscript}return I2}var D2,p9;function p4e(){if(p9)return D2;p9=1,D2=e,e.displayName="bro",e.aliases=[];function e(t){t.languages.bro={comment:{pattern:/(^|[^\\$])#.*/,lookbehind:!0,inside:{italic:/\b(?:FIXME|TODO|XXX)\b/}},string:{pattern:/(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,greedy:!0},boolean:/\b[TF]\b/,function:{pattern:/(\b(?:event|function|hook)[ \t]+)\w+(?:::\w+)?/,lookbehind:!0},builtin:/(?:@(?:load(?:-(?:plugin|sigs))?|unload|prefixes|ifn?def|else|(?:end)?if|DIR|FILENAME))|(?:&?(?:add_func|create_expire|default|delete_func|encrypt|error_handler|expire_func|group|log|mergeable|optional|persistent|priority|raw_output|read_expire|redef|rotate_interval|rotate_size|synchronized|type_column|write_expire))/,constant:{pattern:/(\bconst[ \t]+)\w+/i,lookbehind:!0},keyword:/\b(?:add|addr|alarm|any|bool|break|const|continue|count|delete|double|else|enum|event|export|file|for|function|global|hook|if|in|int|interval|local|module|next|of|opaque|pattern|port|print|record|return|schedule|set|string|subnet|table|time|timeout|using|vector|when)\b/,operator:/--?|\+\+?|!=?=?|<=?|>=?|==?=?|&&|\|\|?|\?|\*|\/|~|\^|%/,number:/\b0x[\da-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?/i,punctuation:/[{}[\];(),.:]/}}return D2}var $2,h9;function h4e(){if(h9)return $2;h9=1,$2=e,e.displayName="bsl",e.aliases=[];function e(t){t.languages.bsl={comment:/\/\/.*/,string:[{pattern:/"(?:[^"]|"")*"(?!")/,greedy:!0},{pattern:/'(?:[^'\r\n\\]|\\.)*'/}],keyword:[{pattern:/(^|[^\w\u0400-\u0484\u0487-\u052f\u1d2b\u1d78\u2de0-\u2dff\ua640-\ua69f\ufe2e\ufe2f])(?:пока|для|новый|прервать|попытка|исключение|вызватьисключение|иначе|конецпопытки|неопределено|функция|перем|возврат|конецфункции|если|иначеесли|процедура|конецпроцедуры|тогда|знач|экспорт|конецесли|из|каждого|истина|ложь|по|цикл|конеццикла|выполнить)(?![\w\u0400-\u0484\u0487-\u052f\u1d2b\u1d78\u2de0-\u2dff\ua640-\ua69f\ufe2e\ufe2f])/i,lookbehind:!0},{pattern:/\b(?:break|do|each|else|elseif|enddo|endfunction|endif|endprocedure|endtry|except|execute|export|false|for|function|if|in|new|null|procedure|raise|return|then|to|true|try|undefined|val|var|while)\b/i}],number:{pattern:/(^(?=\d)|[^\w\u0400-\u0484\u0487-\u052f\u1d2b\u1d78\u2de0-\u2dff\ua640-\ua69f\ufe2e\ufe2f])(?:\d+(?:\.\d*)?|\.\d+)(?:E[+-]?\d+)?/i,lookbehind:!0},operator:[/[<>+\-*/]=?|[%=]/,{pattern:/(^|[^\w\u0400-\u0484\u0487-\u052f\u1d2b\u1d78\u2de0-\u2dff\ua640-\ua69f\ufe2e\ufe2f])(?:и|или|не)(?![\w\u0400-\u0484\u0487-\u052f\u1d2b\u1d78\u2de0-\u2dff\ua640-\ua69f\ufe2e\ufe2f])/i,lookbehind:!0},{pattern:/\b(?:and|not|or)\b/i}],punctuation:/\(\.|\.\)|[()\[\]:;,.]/,directive:[{pattern:/^([ \t]*)&.*/m,lookbehind:!0,greedy:!0,alias:"important"},{pattern:/^([ \t]*)#.*/gm,lookbehind:!0,greedy:!0,alias:"important"}]},t.languages.oscript=t.languages.bsl}return $2}var L2,m9;function m4e(){if(m9)return L2;m9=1,L2=e,e.displayName="cfscript",e.aliases=[];function e(t){t.languages.cfscript=t.languages.extend("clike",{comment:[{pattern:/(^|[^\\])\/\*[\s\S]*?(?:\*\/|$)/,lookbehind:!0,inside:{annotation:{pattern:/(?:^|[^.])@[\w\.]+/,alias:"punctuation"}}},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],keyword:/\b(?:abstract|break|catch|component|continue|default|do|else|extends|final|finally|for|function|if|in|include|package|private|property|public|remote|required|rethrow|return|static|switch|throw|try|var|while|xml)\b(?!\s*=)/,operator:[/\+\+|--|&&|\|\||::|=>|[!=]==|<=?|>=?|[-+*/%&|^!=<>]=?|\?(?:\.|:)?|[?:]/,/\b(?:and|contains|eq|equal|eqv|gt|gte|imp|is|lt|lte|mod|not|or|xor)\b/],scope:{pattern:/\b(?:application|arguments|cgi|client|cookie|local|session|super|this|variables)\b/,alias:"global"},type:{pattern:/\b(?:any|array|binary|boolean|date|guid|numeric|query|string|struct|uuid|void|xml)\b/,alias:"builtin"}}),t.languages.insertBefore("cfscript","keyword",{"function-variable":{pattern:/[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*[=:]\s*(?:\bfunction\b|(?:\((?:[^()]|\([^()]*\))*\)|(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)\s*=>))/,alias:"function"}}),delete t.languages.cfscript["class-name"],t.languages.cfc=t.languages.cfscript}return L2}var F2,g9;function g4e(){if(g9)return F2;g9=1;var e=E4();F2=t,t.displayName="chaiscript",t.aliases=[];function t(n){n.register(e),n.languages.chaiscript=n.languages.extend("clike",{string:{pattern:/(^|[^\\])'(?:[^'\\]|\\[\s\S])*'/,lookbehind:!0,greedy:!0},"class-name":[{pattern:/(\bclass\s+)\w+/,lookbehind:!0},{pattern:/(\b(?:attr|def)\s+)\w+(?=\s*::)/,lookbehind:!0}],keyword:/\b(?:attr|auto|break|case|catch|class|continue|def|default|else|finally|for|fun|global|if|return|switch|this|try|var|while)\b/,number:[n.languages.cpp.number,/\b(?:Infinity|NaN)\b/],operator:/>>=?|<<=?|\|\||&&|:[:=]?|--|\+\+|[=!<>+\-*/%|&^]=?|[?~]|`[^`\r\n]{1,4}`/}),n.languages.insertBefore("chaiscript","operator",{"parameter-type":{pattern:/([,(]\s*)\w+(?=\s+\w)/,lookbehind:!0,alias:"class-name"}}),n.languages.insertBefore("chaiscript","string",{"string-interpolation":{pattern:/(^|[^\\])"(?:[^"$\\]|\\[\s\S]|\$(?!\{)|\$\{(?:[^{}]|\{(?:[^{}]|\{[^{}]*\})*\})*\})*"/,lookbehind:!0,greedy:!0,inside:{interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$\{(?:[^{}]|\{(?:[^{}]|\{[^{}]*\})*\})*\}/,lookbehind:!0,inside:{"interpolation-expression":{pattern:/(^\$\{)[\s\S]+(?=\}$)/,lookbehind:!0,inside:n.languages.chaiscript},"interpolation-punctuation":{pattern:/^\$\{|\}$/,alias:"punctuation"}}},string:/[\s\S]+/}}})}return F2}var j2,v9;function v4e(){if(v9)return j2;v9=1,j2=e,e.displayName="cil",e.aliases=[];function e(t){t.languages.cil={comment:/\/\/.*/,string:{pattern:/(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,greedy:!0},directive:{pattern:/(^|\W)\.[a-z]+(?=\s)/,lookbehind:!0,alias:"class-name"},variable:/\[[\w\.]+\]/,keyword:/\b(?:abstract|ansi|assembly|auto|autochar|beforefieldinit|bool|bstr|byvalstr|catch|char|cil|class|currency|date|decimal|default|enum|error|explicit|extends|extern|famandassem|family|famorassem|final(?:ly)?|float32|float64|hidebysig|u?int(?:8|16|32|64)?|iant|idispatch|implements|import|initonly|instance|interface|iunknown|literal|lpstr|lpstruct|lptstr|lpwstr|managed|method|native(?:Type)?|nested|newslot|object(?:ref)?|pinvokeimpl|private|privatescope|public|reqsecobj|rtspecialname|runtime|sealed|sequential|serializable|specialname|static|string|struct|syschar|tbstr|unicode|unmanagedexp|unsigned|value(?:type)?|variant|virtual|void)\b/,function:/\b(?:(?:constrained|no|readonly|tail|unaligned|volatile)\.)?(?:conv\.(?:[iu][1248]?|ovf\.[iu][1248]?(?:\.un)?|r\.un|r4|r8)|ldc\.(?:i4(?:\.\d+|\.[mM]1|\.s)?|i8|r4|r8)|ldelem(?:\.[iu][1248]?|\.r[48]|\.ref|a)?|ldind\.(?:[iu][1248]?|r[48]|ref)|stelem\.?(?:i[1248]?|r[48]|ref)?|stind\.(?:i[1248]?|r[48]|ref)?|end(?:fault|filter|finally)|ldarg(?:\.[0-3s]|a(?:\.s)?)?|ldloc(?:\.\d+|\.s)?|sub(?:\.ovf(?:\.un)?)?|mul(?:\.ovf(?:\.un)?)?|add(?:\.ovf(?:\.un)?)?|stloc(?:\.[0-3s])?|refany(?:type|val)|blt(?:\.un)?(?:\.s)?|ble(?:\.un)?(?:\.s)?|bgt(?:\.un)?(?:\.s)?|bge(?:\.un)?(?:\.s)?|unbox(?:\.any)?|init(?:blk|obj)|call(?:i|virt)?|brfalse(?:\.s)?|bne\.un(?:\.s)?|ldloca(?:\.s)?|brzero(?:\.s)?|brtrue(?:\.s)?|brnull(?:\.s)?|brinst(?:\.s)?|starg(?:\.s)?|leave(?:\.s)?|shr(?:\.un)?|rem(?:\.un)?|div(?:\.un)?|clt(?:\.un)?|alignment|castclass|ldvirtftn|beq(?:\.s)?|ckfinite|ldsflda|ldtoken|localloc|mkrefany|rethrow|cgt\.un|arglist|switch|stsfld|sizeof|newobj|newarr|ldsfld|ldnull|ldflda|isinst|throw|stobj|stfld|ldstr|ldobj|ldlen|ldftn|ldfld|cpobj|cpblk|break|br\.s|xor|shl|ret|pop|not|nop|neg|jmp|dup|cgt|ceq|box|and|or|br)\b/,boolean:/\b(?:false|true)\b/,number:/\b-?(?:0x[0-9a-f]+|\d+)(?:\.[0-9a-f]+)?\b/i,punctuation:/[{}[\];(),:=]|IL_[0-9A-Za-z]+/}}return j2}var U2,y9;function y4e(){if(y9)return U2;y9=1,U2=e,e.displayName="clojure",e.aliases=[];function e(t){t.languages.clojure={comment:{pattern:/;.*/,greedy:!0},string:{pattern:/"(?:[^"\\]|\\.)*"/,greedy:!0},char:/\\\w+/,symbol:{pattern:/(^|[\s()\[\]{},])::?[\w*+!?'<>=/.-]+/,lookbehind:!0},keyword:{pattern:/(\()(?:-|->|->>|\.|\.\.|\*|\/|\+|<|<=|=|==|>|>=|accessor|agent|agent-errors|aget|alength|all-ns|alter|and|append-child|apply|array-map|aset|aset-boolean|aset-byte|aset-char|aset-double|aset-float|aset-int|aset-long|aset-short|assert|assoc|await|await-for|bean|binding|bit-and|bit-not|bit-or|bit-shift-left|bit-shift-right|bit-xor|boolean|branch\?|butlast|byte|cast|char|children|class|clear-agent-errors|comment|commute|comp|comparator|complement|concat|cond|conj|cons|constantly|construct-proxy|contains\?|count|create-ns|create-struct|cycle|dec|declare|def|def-|definline|definterface|defmacro|defmethod|defmulti|defn|defn-|defonce|defproject|defprotocol|defrecord|defstruct|deftype|deref|difference|disj|dissoc|distinct|do|doall|doc|dorun|doseq|dosync|dotimes|doto|double|down|drop|drop-while|edit|end\?|ensure|eval|every\?|false\?|ffirst|file-seq|filter|find|find-doc|find-ns|find-var|first|float|flush|fn|fnseq|for|frest|gensym|get|get-proxy-class|hash-map|hash-set|identical\?|identity|if|if-let|if-not|import|in-ns|inc|index|insert-child|insert-left|insert-right|inspect-table|inspect-tree|instance\?|int|interleave|intersection|into|into-array|iterate|join|key|keys|keyword|keyword\?|last|lazy-cat|lazy-cons|left|lefts|let|line-seq|list|list\*|load|load-file|locking|long|loop|macroexpand|macroexpand-1|make-array|make-node|map|map-invert|map\?|mapcat|max|max-key|memfn|merge|merge-with|meta|min|min-key|monitor-enter|name|namespace|neg\?|new|newline|next|nil\?|node|not|not-any\?|not-every\?|not=|ns|ns-imports|ns-interns|ns-map|ns-name|ns-publics|ns-refers|ns-resolve|ns-unmap|nth|nthrest|or|parse|partial|path|peek|pop|pos\?|pr|pr-str|print|print-str|println|println-str|prn|prn-str|project|proxy|proxy-mappings|quot|quote|rand|rand-int|range|re-find|re-groups|re-matcher|re-matches|re-pattern|re-seq|read|read-line|recur|reduce|ref|ref-set|refer|rem|remove|remove-method|remove-ns|rename|rename-keys|repeat|replace|replicate|resolve|rest|resultset-seq|reverse|rfirst|right|rights|root|rrest|rseq|second|select|select-keys|send|send-off|seq|seq-zip|seq\?|set|set!|short|slurp|some|sort|sort-by|sorted-map|sorted-map-by|sorted-set|special-symbol\?|split-at|split-with|str|string\?|struct|struct-map|subs|subvec|symbol|symbol\?|sync|take|take-nth|take-while|test|throw|time|to-array|to-array-2d|tree-seq|true\?|try|union|up|update-proxy|val|vals|var|var-get|var-set|var\?|vector|vector-zip|vector\?|when|when-first|when-let|when-not|with-local-vars|with-meta|with-open|with-out-str|xml-seq|xml-zip|zero\?|zipmap|zipper)(?=[\s)]|$)/,lookbehind:!0},boolean:/\b(?:false|nil|true)\b/,number:{pattern:/(^|[^\w$@])(?:\d+(?:[/.]\d+)?(?:e[+-]?\d+)?|0x[a-f0-9]+|[1-9]\d?r[a-z0-9]+)[lmn]?(?![\w$@])/i,lookbehind:!0},function:{pattern:/((?:^|[^'])\()[\w*+!?'<>=/.-]+(?=[\s)]|$)/,lookbehind:!0},operator:/[#@^`~]/,punctuation:/[{}\[\](),]/}}return U2}var B2,b9;function b4e(){if(b9)return B2;b9=1,B2=e,e.displayName="cmake",e.aliases=[];function e(t){t.languages.cmake={comment:/#.*/,string:{pattern:/"(?:[^\\"]|\\.)*"/,greedy:!0,inside:{interpolation:{pattern:/\$\{(?:[^{}$]|\$\{[^{}$]*\})*\}/,inside:{punctuation:/\$\{|\}/,variable:/\w+/}}}},variable:/\b(?:CMAKE_\w+|\w+_(?:(?:BINARY|SOURCE)_DIR|DESCRIPTION|HOMEPAGE_URL|ROOT|VERSION(?:_MAJOR|_MINOR|_PATCH|_TWEAK)?)|(?:ANDROID|APPLE|BORLAND|BUILD_SHARED_LIBS|CACHE|CPACK_(?:ABSOLUTE_DESTINATION_FILES|COMPONENT_INCLUDE_TOPLEVEL_DIRECTORY|ERROR_ON_ABSOLUTE_INSTALL_DESTINATION|INCLUDE_TOPLEVEL_DIRECTORY|INSTALL_DEFAULT_DIRECTORY_PERMISSIONS|INSTALL_SCRIPT|PACKAGING_INSTALL_PREFIX|SET_DESTDIR|WARN_ON_ABSOLUTE_INSTALL_DESTINATION)|CTEST_(?:BINARY_DIRECTORY|BUILD_COMMAND|BUILD_NAME|BZR_COMMAND|BZR_UPDATE_OPTIONS|CHANGE_ID|CHECKOUT_COMMAND|CONFIGURATION_TYPE|CONFIGURE_COMMAND|COVERAGE_COMMAND|COVERAGE_EXTRA_FLAGS|CURL_OPTIONS|CUSTOM_(?:COVERAGE_EXCLUDE|ERROR_EXCEPTION|ERROR_MATCH|ERROR_POST_CONTEXT|ERROR_PRE_CONTEXT|MAXIMUM_FAILED_TEST_OUTPUT_SIZE|MAXIMUM_NUMBER_OF_(?:ERRORS|WARNINGS)|MAXIMUM_PASSED_TEST_OUTPUT_SIZE|MEMCHECK_IGNORE|POST_MEMCHECK|POST_TEST|PRE_MEMCHECK|PRE_TEST|TESTS_IGNORE|WARNING_EXCEPTION|WARNING_MATCH)|CVS_CHECKOUT|CVS_COMMAND|CVS_UPDATE_OPTIONS|DROP_LOCATION|DROP_METHOD|DROP_SITE|DROP_SITE_CDASH|DROP_SITE_PASSWORD|DROP_SITE_USER|EXTRA_COVERAGE_GLOB|GIT_COMMAND|GIT_INIT_SUBMODULES|GIT_UPDATE_CUSTOM|GIT_UPDATE_OPTIONS|HG_COMMAND|HG_UPDATE_OPTIONS|LABELS_FOR_SUBPROJECTS|MEMORYCHECK_(?:COMMAND|COMMAND_OPTIONS|SANITIZER_OPTIONS|SUPPRESSIONS_FILE|TYPE)|NIGHTLY_START_TIME|P4_CLIENT|P4_COMMAND|P4_OPTIONS|P4_UPDATE_OPTIONS|RUN_CURRENT_SCRIPT|SCP_COMMAND|SITE|SOURCE_DIRECTORY|SUBMIT_URL|SVN_COMMAND|SVN_OPTIONS|SVN_UPDATE_OPTIONS|TEST_LOAD|TEST_TIMEOUT|TRIGGER_SITE|UPDATE_COMMAND|UPDATE_OPTIONS|UPDATE_VERSION_ONLY|USE_LAUNCHERS)|CYGWIN|ENV|EXECUTABLE_OUTPUT_PATH|GHS-MULTI|IOS|LIBRARY_OUTPUT_PATH|MINGW|MSVC(?:10|11|12|14|60|70|71|80|90|_IDE|_TOOLSET_VERSION|_VERSION)?|MSYS|PROJECT_(?:BINARY_DIR|DESCRIPTION|HOMEPAGE_URL|NAME|SOURCE_DIR|VERSION|VERSION_(?:MAJOR|MINOR|PATCH|TWEAK))|UNIX|WIN32|WINCE|WINDOWS_PHONE|WINDOWS_STORE|XCODE|XCODE_VERSION))\b/,property:/\b(?:cxx_\w+|(?:ARCHIVE_OUTPUT_(?:DIRECTORY|NAME)|COMPILE_DEFINITIONS|COMPILE_PDB_NAME|COMPILE_PDB_OUTPUT_DIRECTORY|EXCLUDE_FROM_DEFAULT_BUILD|IMPORTED_(?:IMPLIB|LIBNAME|LINK_DEPENDENT_LIBRARIES|LINK_INTERFACE_LANGUAGES|LINK_INTERFACE_LIBRARIES|LINK_INTERFACE_MULTIPLICITY|LOCATION|NO_SONAME|OBJECTS|SONAME)|INTERPROCEDURAL_OPTIMIZATION|LIBRARY_OUTPUT_DIRECTORY|LIBRARY_OUTPUT_NAME|LINK_FLAGS|LINK_INTERFACE_LIBRARIES|LINK_INTERFACE_MULTIPLICITY|LOCATION|MAP_IMPORTED_CONFIG|OSX_ARCHITECTURES|OUTPUT_NAME|PDB_NAME|PDB_OUTPUT_DIRECTORY|RUNTIME_OUTPUT_DIRECTORY|RUNTIME_OUTPUT_NAME|STATIC_LIBRARY_FLAGS|VS_CSHARP|VS_DOTNET_REFERENCEPROP|VS_DOTNET_REFERENCE|VS_GLOBAL_SECTION_POST|VS_GLOBAL_SECTION_PRE|VS_GLOBAL|XCODE_ATTRIBUTE)_\w+|\w+_(?:CLANG_TIDY|COMPILER_LAUNCHER|CPPCHECK|CPPLINT|INCLUDE_WHAT_YOU_USE|OUTPUT_NAME|POSTFIX|VISIBILITY_PRESET)|ABSTRACT|ADDITIONAL_MAKE_CLEAN_FILES|ADVANCED|ALIASED_TARGET|ALLOW_DUPLICATE_CUSTOM_TARGETS|ANDROID_(?:ANT_ADDITIONAL_OPTIONS|API|API_MIN|ARCH|ASSETS_DIRECTORIES|GUI|JAR_DEPENDENCIES|NATIVE_LIB_DEPENDENCIES|NATIVE_LIB_DIRECTORIES|PROCESS_MAX|PROGUARD|PROGUARD_CONFIG_PATH|SECURE_PROPS_PATH|SKIP_ANT_STEP|STL_TYPE)|ARCHIVE_OUTPUT_DIRECTORY|ATTACHED_FILES|ATTACHED_FILES_ON_FAIL|AUTOGEN_(?:BUILD_DIR|ORIGIN_DEPENDS|PARALLEL|SOURCE_GROUP|TARGETS_FOLDER|TARGET_DEPENDS)|AUTOMOC|AUTOMOC_(?:COMPILER_PREDEFINES|DEPEND_FILTERS|EXECUTABLE|MACRO_NAMES|MOC_OPTIONS|SOURCE_GROUP|TARGETS_FOLDER)|AUTORCC|AUTORCC_EXECUTABLE|AUTORCC_OPTIONS|AUTORCC_SOURCE_GROUP|AUTOUIC|AUTOUIC_EXECUTABLE|AUTOUIC_OPTIONS|AUTOUIC_SEARCH_PATHS|BINARY_DIR|BUILDSYSTEM_TARGETS|BUILD_RPATH|BUILD_RPATH_USE_ORIGIN|BUILD_WITH_INSTALL_NAME_DIR|BUILD_WITH_INSTALL_RPATH|BUNDLE|BUNDLE_EXTENSION|CACHE_VARIABLES|CLEAN_NO_CUSTOM|COMMON_LANGUAGE_RUNTIME|COMPATIBLE_INTERFACE_(?:BOOL|NUMBER_MAX|NUMBER_MIN|STRING)|COMPILE_(?:DEFINITIONS|FEATURES|FLAGS|OPTIONS|PDB_NAME|PDB_OUTPUT_DIRECTORY)|COST|CPACK_DESKTOP_SHORTCUTS|CPACK_NEVER_OVERWRITE|CPACK_PERMANENT|CPACK_STARTUP_SHORTCUTS|CPACK_START_MENU_SHORTCUTS|CPACK_WIX_ACL|CROSSCOMPILING_EMULATOR|CUDA_EXTENSIONS|CUDA_PTX_COMPILATION|CUDA_RESOLVE_DEVICE_SYMBOLS|CUDA_SEPARABLE_COMPILATION|CUDA_STANDARD|CUDA_STANDARD_REQUIRED|CXX_EXTENSIONS|CXX_STANDARD|CXX_STANDARD_REQUIRED|C_EXTENSIONS|C_STANDARD|C_STANDARD_REQUIRED|DEBUG_CONFIGURATIONS|DEFINE_SYMBOL|DEFINITIONS|DEPENDS|DEPLOYMENT_ADDITIONAL_FILES|DEPLOYMENT_REMOTE_DIRECTORY|DISABLED|DISABLED_FEATURES|ECLIPSE_EXTRA_CPROJECT_CONTENTS|ECLIPSE_EXTRA_NATURES|ENABLED_FEATURES|ENABLED_LANGUAGES|ENABLE_EXPORTS|ENVIRONMENT|EXCLUDE_FROM_ALL|EXCLUDE_FROM_DEFAULT_BUILD|EXPORT_NAME|EXPORT_PROPERTIES|EXTERNAL_OBJECT|EchoString|FAIL_REGULAR_EXPRESSION|FIND_LIBRARY_USE_LIB32_PATHS|FIND_LIBRARY_USE_LIB64_PATHS|FIND_LIBRARY_USE_LIBX32_PATHS|FIND_LIBRARY_USE_OPENBSD_VERSIONING|FIXTURES_CLEANUP|FIXTURES_REQUIRED|FIXTURES_SETUP|FOLDER|FRAMEWORK|Fortran_FORMAT|Fortran_MODULE_DIRECTORY|GENERATED|GENERATOR_FILE_NAME|GENERATOR_IS_MULTI_CONFIG|GHS_INTEGRITY_APP|GHS_NO_SOURCE_GROUP_FILE|GLOBAL_DEPENDS_DEBUG_MODE|GLOBAL_DEPENDS_NO_CYCLES|GNUtoMS|HAS_CXX|HEADER_FILE_ONLY|HELPSTRING|IMPLICIT_DEPENDS_INCLUDE_TRANSFORM|IMPORTED|IMPORTED_(?:COMMON_LANGUAGE_RUNTIME|CONFIGURATIONS|GLOBAL|IMPLIB|LIBNAME|LINK_DEPENDENT_LIBRARIES|LINK_INTERFACE_(?:LANGUAGES|LIBRARIES|MULTIPLICITY)|LOCATION|NO_SONAME|OBJECTS|SONAME)|IMPORT_PREFIX|IMPORT_SUFFIX|INCLUDE_DIRECTORIES|INCLUDE_REGULAR_EXPRESSION|INSTALL_NAME_DIR|INSTALL_RPATH|INSTALL_RPATH_USE_LINK_PATH|INTERFACE_(?:AUTOUIC_OPTIONS|COMPILE_DEFINITIONS|COMPILE_FEATURES|COMPILE_OPTIONS|INCLUDE_DIRECTORIES|LINK_DEPENDS|LINK_DIRECTORIES|LINK_LIBRARIES|LINK_OPTIONS|POSITION_INDEPENDENT_CODE|SOURCES|SYSTEM_INCLUDE_DIRECTORIES)|INTERPROCEDURAL_OPTIMIZATION|IN_TRY_COMPILE|IOS_INSTALL_COMBINED|JOB_POOLS|JOB_POOL_COMPILE|JOB_POOL_LINK|KEEP_EXTENSION|LABELS|LANGUAGE|LIBRARY_OUTPUT_DIRECTORY|LINKER_LANGUAGE|LINK_(?:DEPENDS|DEPENDS_NO_SHARED|DIRECTORIES|FLAGS|INTERFACE_LIBRARIES|INTERFACE_MULTIPLICITY|LIBRARIES|OPTIONS|SEARCH_END_STATIC|SEARCH_START_STATIC|WHAT_YOU_USE)|LISTFILE_STACK|LOCATION|MACOSX_BUNDLE|MACOSX_BUNDLE_INFO_PLIST|MACOSX_FRAMEWORK_INFO_PLIST|MACOSX_PACKAGE_LOCATION|MACOSX_RPATH|MACROS|MANUALLY_ADDED_DEPENDENCIES|MEASUREMENT|MODIFIED|NAME|NO_SONAME|NO_SYSTEM_FROM_IMPORTED|OBJECT_DEPENDS|OBJECT_OUTPUTS|OSX_ARCHITECTURES|OUTPUT_NAME|PACKAGES_FOUND|PACKAGES_NOT_FOUND|PARENT_DIRECTORY|PASS_REGULAR_EXPRESSION|PDB_NAME|PDB_OUTPUT_DIRECTORY|POSITION_INDEPENDENT_CODE|POST_INSTALL_SCRIPT|PREDEFINED_TARGETS_FOLDER|PREFIX|PRE_INSTALL_SCRIPT|PRIVATE_HEADER|PROCESSORS|PROCESSOR_AFFINITY|PROJECT_LABEL|PUBLIC_HEADER|REPORT_UNDEFINED_PROPERTIES|REQUIRED_FILES|RESOURCE|RESOURCE_LOCK|RULE_LAUNCH_COMPILE|RULE_LAUNCH_CUSTOM|RULE_LAUNCH_LINK|RULE_MESSAGES|RUNTIME_OUTPUT_DIRECTORY|RUN_SERIAL|SKIP_AUTOGEN|SKIP_AUTOMOC|SKIP_AUTORCC|SKIP_AUTOUIC|SKIP_BUILD_RPATH|SKIP_RETURN_CODE|SOURCES|SOURCE_DIR|SOVERSION|STATIC_LIBRARY_FLAGS|STATIC_LIBRARY_OPTIONS|STRINGS|SUBDIRECTORIES|SUFFIX|SYMBOLIC|TARGET_ARCHIVES_MAY_BE_SHARED_LIBS|TARGET_MESSAGES|TARGET_SUPPORTS_SHARED_LIBS|TESTS|TEST_INCLUDE_FILE|TEST_INCLUDE_FILES|TIMEOUT|TIMEOUT_AFTER_MATCH|TYPE|USE_FOLDERS|VALUE|VARIABLES|VERSION|VISIBILITY_INLINES_HIDDEN|VS_(?:CONFIGURATION_TYPE|COPY_TO_OUT_DIR|DEBUGGER_(?:COMMAND|COMMAND_ARGUMENTS|ENVIRONMENT|WORKING_DIRECTORY)|DEPLOYMENT_CONTENT|DEPLOYMENT_LOCATION|DOTNET_REFERENCES|DOTNET_REFERENCES_COPY_LOCAL|GLOBAL_KEYWORD|GLOBAL_PROJECT_TYPES|GLOBAL_ROOTNAMESPACE|INCLUDE_IN_VSIX|IOT_STARTUP_TASK|KEYWORD|RESOURCE_GENERATOR|SCC_AUXPATH|SCC_LOCALPATH|SCC_PROJECTNAME|SCC_PROVIDER|SDK_REFERENCES|SHADER_(?:DISABLE_OPTIMIZATIONS|ENABLE_DEBUG|ENTRYPOINT|FLAGS|MODEL|OBJECT_FILE_NAME|OUTPUT_HEADER_FILE|TYPE|VARIABLE_NAME)|STARTUP_PROJECT|TOOL_OVERRIDE|USER_PROPS|WINRT_COMPONENT|WINRT_EXTENSIONS|WINRT_REFERENCES|XAML_TYPE)|WILL_FAIL|WIN32_EXECUTABLE|WINDOWS_EXPORT_ALL_SYMBOLS|WORKING_DIRECTORY|WRAP_EXCLUDE|XCODE_(?:EMIT_EFFECTIVE_PLATFORM_NAME|EXPLICIT_FILE_TYPE|FILE_ATTRIBUTES|LAST_KNOWN_FILE_TYPE|PRODUCT_TYPE|SCHEME_(?:ADDRESS_SANITIZER|ADDRESS_SANITIZER_USE_AFTER_RETURN|ARGUMENTS|DISABLE_MAIN_THREAD_CHECKER|DYNAMIC_LIBRARY_LOADS|DYNAMIC_LINKER_API_USAGE|ENVIRONMENT|EXECUTABLE|GUARD_MALLOC|MAIN_THREAD_CHECKER_STOP|MALLOC_GUARD_EDGES|MALLOC_SCRIBBLE|MALLOC_STACK|THREAD_SANITIZER(?:_STOP)?|UNDEFINED_BEHAVIOUR_SANITIZER(?:_STOP)?|ZOMBIE_OBJECTS))|XCTEST)\b/,keyword:/\b(?:add_compile_definitions|add_compile_options|add_custom_command|add_custom_target|add_definitions|add_dependencies|add_executable|add_library|add_link_options|add_subdirectory|add_test|aux_source_directory|break|build_command|build_name|cmake_host_system_information|cmake_minimum_required|cmake_parse_arguments|cmake_policy|configure_file|continue|create_test_sourcelist|ctest_build|ctest_configure|ctest_coverage|ctest_empty_binary_directory|ctest_memcheck|ctest_read_custom_files|ctest_run_script|ctest_sleep|ctest_start|ctest_submit|ctest_test|ctest_update|ctest_upload|define_property|else|elseif|enable_language|enable_testing|endforeach|endfunction|endif|endmacro|endwhile|exec_program|execute_process|export|export_library_dependencies|file|find_file|find_library|find_package|find_path|find_program|fltk_wrap_ui|foreach|function|get_cmake_property|get_directory_property|get_filename_component|get_property|get_source_file_property|get_target_property|get_test_property|if|include|include_directories|include_external_msproject|include_guard|include_regular_expression|install|install_files|install_programs|install_targets|link_directories|link_libraries|list|load_cache|load_command|macro|make_directory|mark_as_advanced|math|message|option|output_required_files|project|qt_wrap_cpp|qt_wrap_ui|remove|remove_definitions|return|separate_arguments|set|set_directory_properties|set_property|set_source_files_properties|set_target_properties|set_tests_properties|site_name|source_group|string|subdir_depends|subdirs|target_compile_definitions|target_compile_features|target_compile_options|target_include_directories|target_link_directories|target_link_libraries|target_link_options|target_sources|try_compile|try_run|unset|use_mangled_mesa|utility_source|variable_requires|variable_watch|while|write_file)(?=\s*\()\b/,boolean:/\b(?:FALSE|OFF|ON|TRUE)\b/,namespace:/\b(?:INTERFACE|PRIVATE|PROPERTIES|PUBLIC|SHARED|STATIC|TARGET_OBJECTS)\b/,operator:/\b(?:AND|DEFINED|EQUAL|GREATER|LESS|MATCHES|NOT|OR|STREQUAL|STRGREATER|STRLESS|VERSION_EQUAL|VERSION_GREATER|VERSION_LESS)\b/,inserted:{pattern:/\b\w+::\w+\b/,alias:"class-name"},number:/\b\d+(?:\.\d+)*\b/,function:/\b[a-z_]\w*(?=\s*\()\b/i,punctuation:/[()>}]|\$[<{]/}}return B2}var W2,w9;function w4e(){if(w9)return W2;w9=1,W2=e,e.displayName="cobol",e.aliases=[];function e(t){t.languages.cobol={comment:{pattern:/\*>.*|(^[ \t]*)\*.*/m,lookbehind:!0,greedy:!0},string:{pattern:/[xzgn]?(?:"(?:[^\r\n"]|"")*"(?!")|'(?:[^\r\n']|'')*'(?!'))/i,greedy:!0},level:{pattern:/(^[ \t]*)\d+\b/m,lookbehind:!0,greedy:!0,alias:"number"},"class-name":{pattern:/(\bpic(?:ture)?\s+)(?:(?:[-\w$/,:*+<>]|\.(?!\s|$))(?:\(\d+\))?)+/i,lookbehind:!0,inside:{number:{pattern:/(\()\d+/,lookbehind:!0},punctuation:/[()]/}},keyword:{pattern:/(^|[^\w-])(?:ABORT|ACCEPT|ACCESS|ADD|ADDRESS|ADVANCING|AFTER|ALIGNED|ALL|ALPHABET|ALPHABETIC|ALPHABETIC-LOWER|ALPHABETIC-UPPER|ALPHANUMERIC|ALPHANUMERIC-EDITED|ALSO|ALTER|ALTERNATE|ANY|ARE|AREA|AREAS|AS|ASCENDING|ASCII|ASSIGN|ASSOCIATED-DATA|ASSOCIATED-DATA-LENGTH|AT|ATTRIBUTE|AUTHOR|AUTO|AUTO-SKIP|BACKGROUND-COLOR|BACKGROUND-COLOUR|BASIS|BEEP|BEFORE|BEGINNING|BELL|BINARY|BIT|BLANK|BLINK|BLOCK|BOTTOM|BOUNDS|BY|BYFUNCTION|BYTITLE|CALL|CANCEL|CAPABLE|CCSVERSION|CD|CF|CH|CHAINING|CHANGED|CHANNEL|CHARACTER|CHARACTERS|CLASS|CLASS-ID|CLOCK-UNITS|CLOSE|CLOSE-DISPOSITION|COBOL|CODE|CODE-SET|COL|COLLATING|COLUMN|COM-REG|COMMA|COMMITMENT|COMMON|COMMUNICATION|COMP|COMP-1|COMP-2|COMP-3|COMP-4|COMP-5|COMPUTATIONAL|COMPUTATIONAL-1|COMPUTATIONAL-2|COMPUTATIONAL-3|COMPUTATIONAL-4|COMPUTATIONAL-5|COMPUTE|CONFIGURATION|CONTAINS|CONTENT|CONTINUE|CONTROL|CONTROL-POINT|CONTROLS|CONVENTION|CONVERTING|COPY|CORR|CORRESPONDING|COUNT|CRUNCH|CURRENCY|CURSOR|DATA|DATA-BASE|DATE|DATE-COMPILED|DATE-WRITTEN|DAY|DAY-OF-WEEK|DBCS|DE|DEBUG-CONTENTS|DEBUG-ITEM|DEBUG-LINE|DEBUG-NAME|DEBUG-SUB-1|DEBUG-SUB-2|DEBUG-SUB-3|DEBUGGING|DECIMAL-POINT|DECLARATIVES|DEFAULT|DEFAULT-DISPLAY|DEFINITION|DELETE|DELIMITED|DELIMITER|DEPENDING|DESCENDING|DESTINATION|DETAIL|DFHRESP|DFHVALUE|DISABLE|DISK|DISPLAY|DISPLAY-1|DIVIDE|DIVISION|DONTCARE|DOUBLE|DOWN|DUPLICATES|DYNAMIC|EBCDIC|EGCS|EGI|ELSE|EMI|EMPTY-CHECK|ENABLE|END|END-ACCEPT|END-ADD|END-CALL|END-COMPUTE|END-DELETE|END-DIVIDE|END-EVALUATE|END-IF|END-MULTIPLY|END-OF-PAGE|END-PERFORM|END-READ|END-RECEIVE|END-RETURN|END-REWRITE|END-SEARCH|END-START|END-STRING|END-SUBTRACT|END-UNSTRING|END-WRITE|ENDING|ENTER|ENTRY|ENTRY-PROCEDURE|ENVIRONMENT|EOL|EOP|EOS|ERASE|ERROR|ESCAPE|ESI|EVALUATE|EVENT|EVERY|EXCEPTION|EXCLUSIVE|EXHIBIT|EXIT|EXPORT|EXTEND|EXTENDED|EXTERNAL|FD|FILE|FILE-CONTROL|FILLER|FINAL|FIRST|FOOTING|FOR|FOREGROUND-COLOR|FOREGROUND-COLOUR|FROM|FULL|FUNCTION|FUNCTION-POINTER|FUNCTIONNAME|GENERATE|GIVING|GLOBAL|GO|GOBACK|GRID|GROUP|HEADING|HIGH-VALUE|HIGH-VALUES|HIGHLIGHT|I-O|I-O-CONTROL|ID|IDENTIFICATION|IF|IMPLICIT|IMPORT|IN|INDEX|INDEXED|INDICATE|INITIAL|INITIALIZE|INITIATE|INPUT|INPUT-OUTPUT|INSPECT|INSTALLATION|INTEGER|INTO|INVALID|INVOKE|IS|JUST|JUSTIFIED|KANJI|KEPT|KEY|KEYBOARD|LABEL|LANGUAGE|LAST|LB|LD|LEADING|LEFT|LEFTLINE|LENGTH|LENGTH-CHECK|LIBACCESS|LIBPARAMETER|LIBRARY|LIMIT|LIMITS|LINAGE|LINAGE-COUNTER|LINE|LINE-COUNTER|LINES|LINKAGE|LIST|LOCAL|LOCAL-STORAGE|LOCK|LONG-DATE|LONG-TIME|LOW-VALUE|LOW-VALUES|LOWER|LOWLIGHT|MEMORY|MERGE|MESSAGE|MMDDYYYY|MODE|MODULES|MORE-LABELS|MOVE|MULTIPLE|MULTIPLY|NAMED|NATIONAL|NATIONAL-EDITED|NATIVE|NEGATIVE|NETWORK|NEXT|NO|NO-ECHO|NULL|NULLS|NUMBER|NUMERIC|NUMERIC-DATE|NUMERIC-EDITED|NUMERIC-TIME|OBJECT-COMPUTER|OCCURS|ODT|OF|OFF|OMITTED|ON|OPEN|OPTIONAL|ORDER|ORDERLY|ORGANIZATION|OTHER|OUTPUT|OVERFLOW|OVERLINE|OWN|PACKED-DECIMAL|PADDING|PAGE|PAGE-COUNTER|PASSWORD|PERFORM|PF|PH|PIC|PICTURE|PLUS|POINTER|PORT|POSITION|POSITIVE|PRINTER|PRINTING|PRIVATE|PROCEDURE|PROCEDURE-POINTER|PROCEDURES|PROCEED|PROCESS|PROGRAM|PROGRAM-ID|PROGRAM-LIBRARY|PROMPT|PURGE|QUEUE|QUOTE|QUOTES|RANDOM|RD|READ|READER|REAL|RECEIVE|RECEIVED|RECORD|RECORDING|RECORDS|RECURSIVE|REDEFINES|REEL|REF|REFERENCE|REFERENCES|RELATIVE|RELEASE|REMAINDER|REMARKS|REMOTE|REMOVAL|REMOVE|RENAMES|REPLACE|REPLACING|REPORT|REPORTING|REPORTS|REQUIRED|RERUN|RESERVE|RESET|RETURN|RETURN-CODE|RETURNING|REVERSE-VIDEO|REVERSED|REWIND|REWRITE|RF|RH|RIGHT|ROUNDED|RUN|SAME|SAVE|SCREEN|SD|SEARCH|SECTION|SECURE|SECURITY|SEGMENT|SEGMENT-LIMIT|SELECT|SEND|SENTENCE|SEPARATE|SEQUENCE|SEQUENTIAL|SET|SHARED|SHAREDBYALL|SHAREDBYRUNUNIT|SHARING|SHIFT-IN|SHIFT-OUT|SHORT-DATE|SIGN|SIZE|SORT|SORT-CONTROL|SORT-CORE-SIZE|SORT-FILE-SIZE|SORT-MERGE|SORT-MESSAGE|SORT-MODE-SIZE|SORT-RETURN|SOURCE|SOURCE-COMPUTER|SPACE|SPACES|SPECIAL-NAMES|STANDARD|STANDARD-1|STANDARD-2|START|STATUS|STOP|STRING|SUB-QUEUE-1|SUB-QUEUE-2|SUB-QUEUE-3|SUBTRACT|SUM|SUPPRESS|SYMBOL|SYMBOLIC|SYNC|SYNCHRONIZED|TABLE|TALLY|TALLYING|TAPE|TASK|TERMINAL|TERMINATE|TEST|TEXT|THEN|THREAD|THREAD-LOCAL|THROUGH|THRU|TIME|TIMER|TIMES|TITLE|TO|TODAYS-DATE|TODAYS-NAME|TOP|TRAILING|TRUNCATED|TYPE|TYPEDEF|UNDERLINE|UNIT|UNSTRING|UNTIL|UP|UPON|USAGE|USE|USING|VALUE|VALUES|VARYING|VIRTUAL|WAIT|WHEN|WHEN-COMPILED|WITH|WORDS|WORKING-STORAGE|WRITE|YEAR|YYYYDDD|YYYYMMDD|ZERO-FILL|ZEROES|ZEROS)(?![\w-])/i,lookbehind:!0},boolean:{pattern:/(^|[^\w-])(?:false|true)(?![\w-])/i,lookbehind:!0},number:{pattern:/(^|[^\w-])(?:[+-]?(?:(?:\d+(?:[.,]\d+)?|[.,]\d+)(?:e[+-]?\d+)?|zero))(?![\w-])/i,lookbehind:!0},operator:[/<>|[<>]=?|[=+*/&]/,{pattern:/(^|[^\w-])(?:-|and|equal|greater|less|not|or|than)(?![\w-])/i,lookbehind:!0}],punctuation:/[.:,()]/}}return W2}var z2,S9;function S4e(){if(S9)return z2;S9=1,z2=e,e.displayName="coffeescript",e.aliases=["coffee"];function e(t){(function(n){var r=/#(?!\{).+/,a={pattern:/#\{[^}]+\}/,alias:"variable"};n.languages.coffeescript=n.languages.extend("javascript",{comment:r,string:[{pattern:/'(?:\\[\s\S]|[^\\'])*'/,greedy:!0},{pattern:/"(?:\\[\s\S]|[^\\"])*"/,greedy:!0,inside:{interpolation:a}}],keyword:/\b(?:and|break|by|catch|class|continue|debugger|delete|do|each|else|extend|extends|false|finally|for|if|in|instanceof|is|isnt|let|loop|namespace|new|no|not|null|of|off|on|or|own|return|super|switch|then|this|throw|true|try|typeof|undefined|unless|until|when|while|window|with|yes|yield)\b/,"class-member":{pattern:/@(?!\d)\w+/,alias:"variable"}}),n.languages.insertBefore("coffeescript","comment",{"multiline-comment":{pattern:/###[\s\S]+?###/,alias:"comment"},"block-regex":{pattern:/\/{3}[\s\S]*?\/{3}/,alias:"regex",inside:{comment:r,interpolation:a}}}),n.languages.insertBefore("coffeescript","string",{"inline-javascript":{pattern:/`(?:\\[\s\S]|[^\\`])*`/,inside:{delimiter:{pattern:/^`|`$/,alias:"punctuation"},script:{pattern:/[\s\S]+/,alias:"language-javascript",inside:n.languages.javascript}}},"multiline-string":[{pattern:/'''[\s\S]*?'''/,greedy:!0,alias:"string"},{pattern:/"""[\s\S]*?"""/,greedy:!0,alias:"string",inside:{interpolation:a}}]}),n.languages.insertBefore("coffeescript","keyword",{property:/(?!\d)\w+(?=\s*:(?!:))/}),delete n.languages.coffeescript["template-string"],n.languages.coffee=n.languages.coffeescript})(t)}return z2}var q2,E9;function E4e(){if(E9)return q2;E9=1,q2=e,e.displayName="concurnas",e.aliases=["conc"];function e(t){t.languages.concurnas={comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?(?:\*\/|$)|\/\/.*)/,lookbehind:!0,greedy:!0},langext:{pattern:/\b\w+\s*\|\|[\s\S]+?\|\|/,greedy:!0,inside:{"class-name":/^\w+/,string:{pattern:/(^\s*\|\|)[\s\S]+(?=\|\|$)/,lookbehind:!0},punctuation:/\|\|/}},function:{pattern:/((?:^|\s)def[ \t]+)[a-zA-Z_]\w*(?=\s*\()/,lookbehind:!0},keyword:/\b(?:abstract|actor|also|annotation|assert|async|await|bool|boolean|break|byte|case|catch|changed|char|class|closed|constant|continue|def|default|del|double|elif|else|enum|every|extends|false|finally|float|for|from|global|gpudef|gpukernel|if|import|in|init|inject|int|lambda|local|long|loop|match|new|nodefault|null|of|onchange|open|out|override|package|parfor|parforsync|post|pre|private|protected|provide|provider|public|return|shared|short|single|size_t|sizeof|super|sync|this|throw|trait|trans|transient|true|try|typedef|unchecked|using|val|var|void|while|with)\b/,boolean:/\b(?:false|true)\b/,number:/\b0b[01][01_]*L?\b|\b0x(?:[\da-f_]*\.)?[\da-f_p+-]+\b|(?:\b\d[\d_]*(?:\.[\d_]*)?|\B\.\d[\d_]*)(?:e[+-]?\d[\d_]*)?[dfls]?/i,punctuation:/[{}[\];(),.:]/,operator:/<==|>==|=>|->|<-|<>|&==|&<>|\?:?|\.\?|\+\+|--|[-+*/=<>]=?|[!^~]|\b(?:and|as|band|bor|bxor|comp|is|isnot|mod|or)\b=?/,annotation:{pattern:/@(?:\w+:)?(?:\w+|\[[^\]]+\])?/,alias:"builtin"}},t.languages.insertBefore("concurnas","langext",{"regex-literal":{pattern:/\br("|')(?:\\.|(?!\1)[^\\\r\n])*\1/,greedy:!0,inside:{interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}/,lookbehind:!0,inside:t.languages.concurnas},regex:/[\s\S]+/}},"string-literal":{pattern:/(?:\B|\bs)("|')(?:\\.|(?!\1)[^\\\r\n])*\1/,greedy:!0,inside:{interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}/,lookbehind:!0,inside:t.languages.concurnas},string:/[\s\S]+/}}}),t.languages.conc=t.languages.concurnas}return q2}var H2,T9;function T4e(){if(T9)return H2;T9=1,H2=e,e.displayName="coq",e.aliases=[];function e(t){(function(n){for(var r=/\(\*(?:[^(*]|\((?!\*)|\*(?!\))|)*\*\)/.source,a=0;a<2;a++)r=r.replace(//g,function(){return r});r=r.replace(//g,"[]"),n.languages.coq={comment:RegExp(r),string:{pattern:/"(?:[^"]|"")*"(?!")/,greedy:!0},attribute:[{pattern:RegExp(/#\[(?:[^\[\]("]|"(?:[^"]|"")*"(?!")|\((?!\*)|)*\]/.source.replace(//g,function(){return r})),greedy:!0,alias:"attr-name",inside:{comment:RegExp(r),string:{pattern:/"(?:[^"]|"")*"(?!")/,greedy:!0},operator:/=/,punctuation:/^#\[|\]$|[,()]/}},{pattern:/\b(?:Cumulative|Global|Local|Monomorphic|NonCumulative|Polymorphic|Private|Program)\b/,alias:"attr-name"}],keyword:/\b(?:Abort|About|Add|Admit|Admitted|All|Arguments|As|Assumptions|Axiom|Axioms|Back|BackTo|Backtrace|BinOp|BinOpSpec|BinRel|Bind|Blacklist|Canonical|Case|Cd|Check|Class|Classes|Close|CoFixpoint|CoInductive|Coercion|Coercions|Collection|Combined|Compute|Conjecture|Conjectures|Constant|Constants|Constraint|Constructors|Context|Corollary|Create|CstOp|Custom|Cut|Debug|Declare|Defined|Definition|Delimit|Dependencies|Dependent|Derive|Diffs|Drop|Elimination|End|Entry|Equality|Eval|Example|Existential|Existentials|Existing|Export|Extern|Extraction|Fact|Fail|Field|File|Firstorder|Fixpoint|Flags|Focus|From|Funclass|Function|Functional|GC|Generalizable|Goal|Grab|Grammar|Graph|Guarded|Haskell|Heap|Hide|Hint|HintDb|Hints|Hypotheses|Hypothesis|IF|Identity|Immediate|Implicit|Implicits|Import|Include|Induction|Inductive|Infix|Info|Initial|InjTyp|Inline|Inspect|Instance|Instances|Intro|Intros|Inversion|Inversion_clear|JSON|Language|Left|Lemma|Let|Lia|Libraries|Library|Load|LoadPath|Locate|Ltac|Ltac2|ML|Match|Method|Minimality|Module|Modules|Morphism|Next|NoInline|Notation|Number|OCaml|Obligation|Obligations|Opaque|Open|Optimize|Parameter|Parameters|Parametric|Path|Paths|Prenex|Preterm|Primitive|Print|Profile|Projections|Proof|Prop|PropBinOp|PropOp|PropUOp|Property|Proposition|Pwd|Qed|Quit|Rec|Record|Recursive|Redirect|Reduction|Register|Relation|Remark|Remove|Require|Reserved|Reset|Resolve|Restart|Rewrite|Right|Ring|Rings|SProp|Saturate|Save|Scheme|Scope|Scopes|Search|SearchHead|SearchPattern|SearchRewrite|Section|Separate|Set|Setoid|Show|Signatures|Solve|Solver|Sort|Sortclass|Sorted|Spec|Step|Strategies|Strategy|String|Structure|SubClass|Subgraph|SuchThat|Tactic|Term|TestCompile|Theorem|Time|Timeout|To|Transparent|Type|Typeclasses|Types|Typing|UnOp|UnOpSpec|Undelimit|Undo|Unfocus|Unfocused|Unfold|Universe|Universes|Unshelve|Variable|Variables|Variant|Verbose|View|Visibility|Zify|_|apply|as|at|by|cofix|else|end|exists|exists2|fix|for|forall|fun|if|in|let|match|measure|move|removed|return|struct|then|using|wf|where|with)\b/,number:/\b(?:0x[a-f0-9][a-f0-9_]*(?:\.[a-f0-9_]+)?(?:p[+-]?\d[\d_]*)?|\d[\d_]*(?:\.[\d_]+)?(?:e[+-]?\d[\d_]*)?)\b/i,punct:{pattern:/@\{|\{\||\[=|:>/,alias:"punctuation"},operator:/\/\\|\\\/|\.{2,3}|:{1,2}=|\*\*|[-=]>|<(?:->?|[+:=>]|<:)|>(?:=|->)|\|[-|]?|[-!%&*+/<=>?@^~']/,punctuation:/\.\(|`\(|@\{|`\{|\{\||\[=|:>|[:.,;(){}\[\]]/}})(t)}return H2}var V2,C9;function pO(){if(C9)return V2;C9=1,V2=e,e.displayName="ruby",e.aliases=["rb"];function e(t){(function(n){n.languages.ruby=n.languages.extend("clike",{comment:{pattern:/#.*|^=begin\s[\s\S]*?^=end/m,greedy:!0},"class-name":{pattern:/(\b(?:class|module)\s+|\bcatch\s+\()[\w.\\]+|\b[A-Z_]\w*(?=\s*\.\s*new\b)/,lookbehind:!0,inside:{punctuation:/[.\\]/}},keyword:/\b(?:BEGIN|END|alias|and|begin|break|case|class|def|define_method|defined|do|each|else|elsif|end|ensure|extend|for|if|in|include|module|new|next|nil|not|or|prepend|private|protected|public|raise|redo|require|rescue|retry|return|self|super|then|throw|undef|unless|until|when|while|yield)\b/,operator:/\.{2,3}|&\.|===||[!=]?~|(?:&&|\|\||<<|>>|\*\*|[+\-*/%<>!^&|=])=?|[?:]/,punctuation:/[(){}[\].,;]/}),n.languages.insertBefore("ruby","operator",{"double-colon":{pattern:/::/,alias:"punctuation"}});var r={pattern:/((?:^|[^\\])(?:\\{2})*)#\{(?:[^{}]|\{[^{}]*\})*\}/,lookbehind:!0,inside:{content:{pattern:/^(#\{)[\s\S]+(?=\}$)/,lookbehind:!0,inside:n.languages.ruby},delimiter:{pattern:/^#\{|\}$/,alias:"punctuation"}}};delete n.languages.ruby.function;var a="(?:"+[/([^a-zA-Z0-9\s{(\[<=])(?:(?!\1)[^\\]|\\[\s\S])*\1/.source,/\((?:[^()\\]|\\[\s\S]|\((?:[^()\\]|\\[\s\S])*\))*\)/.source,/\{(?:[^{}\\]|\\[\s\S]|\{(?:[^{}\\]|\\[\s\S])*\})*\}/.source,/\[(?:[^\[\]\\]|\\[\s\S]|\[(?:[^\[\]\\]|\\[\s\S])*\])*\]/.source,/<(?:[^<>\\]|\\[\s\S]|<(?:[^<>\\]|\\[\s\S])*>)*>/.source].join("|")+")",i=/(?:"(?:\\.|[^"\\\r\n])*"|(?:\b[a-zA-Z_]\w*|[^\s\0-\x7F]+)[?!]?|\$.)/.source;n.languages.insertBefore("ruby","keyword",{"regex-literal":[{pattern:RegExp(/%r/.source+a+/[egimnosux]{0,6}/.source),greedy:!0,inside:{interpolation:r,regex:/[\s\S]+/}},{pattern:/(^|[^/])\/(?!\/)(?:\[[^\r\n\]]+\]|\\.|[^[/\\\r\n])+\/[egimnosux]{0,6}(?=\s*(?:$|[\r\n,.;})#]))/,lookbehind:!0,greedy:!0,inside:{interpolation:r,regex:/[\s\S]+/}}],variable:/[@$]+[a-zA-Z_]\w*(?:[?!]|\b)/,symbol:[{pattern:RegExp(/(^|[^:]):/.source+i),lookbehind:!0,greedy:!0},{pattern:RegExp(/([\r\n{(,][ \t]*)/.source+i+/(?=:(?!:))/.source),lookbehind:!0,greedy:!0}],"method-definition":{pattern:/(\bdef\s+)\w+(?:\s*\.\s*\w+)?/,lookbehind:!0,inside:{function:/\b\w+$/,keyword:/^self\b/,"class-name":/^\w+/,punctuation:/\./}}}),n.languages.insertBefore("ruby","string",{"string-literal":[{pattern:RegExp(/%[qQiIwWs]?/.source+a),greedy:!0,inside:{interpolation:r,string:/[\s\S]+/}},{pattern:/("|')(?:#\{[^}]+\}|#(?!\{)|\\(?:\r\n|[\s\S])|(?!\1)[^\\#\r\n])*\1/,greedy:!0,inside:{interpolation:r,string:/[\s\S]+/}},{pattern:/<<[-~]?([a-z_]\w*)[\r\n](?:.*[\r\n])*?[\t ]*\1/i,alias:"heredoc-string",greedy:!0,inside:{delimiter:{pattern:/^<<[-~]?[a-z_]\w*|\b[a-z_]\w*$/i,inside:{symbol:/\b\w+/,punctuation:/^<<[-~]?/}},interpolation:r,string:/[\s\S]+/}},{pattern:/<<[-~]?'([a-z_]\w*)'[\r\n](?:.*[\r\n])*?[\t ]*\1/i,alias:"heredoc-string",greedy:!0,inside:{delimiter:{pattern:/^<<[-~]?'[a-z_]\w*'|\b[a-z_]\w*$/i,inside:{symbol:/\b\w+/,punctuation:/^<<[-~]?'|'$/}},string:/[\s\S]+/}}],"command-literal":[{pattern:RegExp(/%x/.source+a),greedy:!0,inside:{interpolation:r,command:{pattern:/[\s\S]+/,alias:"string"}}},{pattern:/`(?:#\{[^}]+\}|#(?!\{)|\\(?:\r\n|[\s\S])|[^\\`#\r\n])*`/,greedy:!0,inside:{interpolation:r,command:{pattern:/[\s\S]+/,alias:"string"}}}]}),delete n.languages.ruby.string,n.languages.insertBefore("ruby","number",{builtin:/\b(?:Array|Bignum|Binding|Class|Continuation|Dir|Exception|FalseClass|File|Fixnum|Float|Hash|IO|Integer|MatchData|Method|Module|NilClass|Numeric|Object|Proc|Range|Regexp|Stat|String|Struct|Symbol|TMS|Thread|ThreadGroup|Time|TrueClass)\b/,constant:/\b[A-Z][A-Z0-9_]*(?:[?!]|\b)/}),n.languages.rb=n.languages.ruby})(t)}return V2}var G2,k9;function C4e(){if(k9)return G2;k9=1;var e=pO();G2=t,t.displayName="crystal",t.aliases=[];function t(n){n.register(e),(function(r){r.languages.crystal=r.languages.extend("ruby",{keyword:[/\b(?:__DIR__|__END_LINE__|__FILE__|__LINE__|abstract|alias|annotation|as|asm|begin|break|case|class|def|do|else|elsif|end|ensure|enum|extend|for|fun|if|ifdef|include|instance_sizeof|lib|macro|module|next|of|out|pointerof|private|protected|ptr|require|rescue|return|select|self|sizeof|struct|super|then|type|typeof|undef|uninitialized|union|unless|until|when|while|with|yield)\b/,{pattern:/(\.\s*)(?:is_a|responds_to)\?/,lookbehind:!0}],number:/\b(?:0b[01_]*[01]|0o[0-7_]*[0-7]|0x[\da-fA-F_]*[\da-fA-F]|(?:\d(?:[\d_]*\d)?)(?:\.[\d_]*\d)?(?:[eE][+-]?[\d_]*\d)?)(?:_(?:[uif](?:8|16|32|64))?)?\b/,operator:[/->/,r.languages.ruby.operator],punctuation:/[(){}[\].,;\\]/}),r.languages.insertBefore("crystal","string-literal",{attribute:{pattern:/@\[.*?\]/,inside:{delimiter:{pattern:/^@\[|\]$/,alias:"punctuation"},attribute:{pattern:/^(\s*)\w+/,lookbehind:!0,alias:"class-name"},args:{pattern:/\S(?:[\s\S]*\S)?/,inside:r.languages.crystal}}},expansion:{pattern:/\{(?:\{.*?\}|%.*?%)\}/,inside:{content:{pattern:/^(\{.)[\s\S]+(?=.\}$)/,lookbehind:!0,inside:r.languages.crystal},delimiter:{pattern:/^\{[\{%]|[\}%]\}$/,alias:"operator"}}},char:{pattern:/'(?:[^\\\r\n]{1,2}|\\(?:.|u(?:[A-Fa-f0-9]{1,4}|\{[A-Fa-f0-9]{1,6}\})))'/,greedy:!0}})})(n)}return G2}var Y2,x9;function k4e(){if(x9)return Y2;x9=1;var e=fO();Y2=t,t.displayName="cshtml",t.aliases=["razor"];function t(n){n.register(e),(function(r){var a=/\/(?![/*])|\/\/.*[\r\n]|\/\*[^*]*(?:\*(?!\/)[^*]*)*\*\//.source,i=/@(?!")|"(?:[^\r\n\\"]|\\.)*"|@"(?:[^\\"]|""|\\[\s\S])*"(?!")/.source+"|"+/'(?:(?:[^\r\n'\\]|\\.|\\[Uux][\da-fA-F]{1,8})'|(?=[^\\](?!')))/.source;function o(T,C){for(var k=0;k/g,function(){return"(?:"+T+")"});return T.replace(//g,"[^\\s\\S]").replace(//g,"(?:"+i+")").replace(//g,"(?:"+a+")")}var l=o(/\((?:[^()'"@/]|||)*\)/.source,2),u=o(/\[(?:[^\[\]'"@/]|||)*\]/.source,2),d=o(/\{(?:[^{}'"@/]|||)*\}/.source,2),f=o(/<(?:[^<>'"@/]|||)*>/.source,2),g=/(?:\s(?:\s*[^\s>\/=]+(?:\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))|(?=[\s/>])))+)?/.source,y=/(?!\d)[^\s>\/=$<%]+/.source+g+/\s*\/?>/.source,h=/\B@?/.source+"(?:"+/<([a-zA-Z][\w:]*)/.source+g+/\s*>/.source+"(?:"+(/[^<]/.source+"|"+/<\/?(?!\1\b)/.source+y+"|"+o(/<\1/.source+g+/\s*>/.source+"(?:"+(/[^<]/.source+"|"+/<\/?(?!\1\b)/.source+y+"|")+")*"+/<\/\1\s*>/.source,2))+")*"+/<\/\1\s*>/.source+"|"+/|\+|~|\|\|/,punctuation:/[(),]/}},n.languages.css.atrule.inside["selector-function-argument"].inside=a,n.languages.insertBefore("css","property",{variable:{pattern:/(^|[^-\w\xA0-\uFFFF])--(?!\s)[-_a-z\xA0-\uFFFF](?:(?!\s)[-\w\xA0-\uFFFF])*/i,lookbehind:!0}});var i={pattern:/(\b\d+)(?:%|[a-z]+(?![\w-]))/,lookbehind:!0},o={pattern:/(^|[^\w.-])-?(?:\d+(?:\.\d+)?|\.\d+)/,lookbehind:!0};n.languages.insertBefore("css","function",{operator:{pattern:/(\s)[+\-*\/](?=\s)/,lookbehind:!0},hexcode:{pattern:/\B#[\da-f]{3,8}\b/i,alias:"color"},color:[{pattern:/(^|[^\w-])(?:AliceBlue|AntiqueWhite|Aqua|Aquamarine|Azure|Beige|Bisque|Black|BlanchedAlmond|Blue|BlueViolet|Brown|BurlyWood|CadetBlue|Chartreuse|Chocolate|Coral|CornflowerBlue|Cornsilk|Crimson|Cyan|DarkBlue|DarkCyan|DarkGoldenRod|DarkGr[ae]y|DarkGreen|DarkKhaki|DarkMagenta|DarkOliveGreen|DarkOrange|DarkOrchid|DarkRed|DarkSalmon|DarkSeaGreen|DarkSlateBlue|DarkSlateGr[ae]y|DarkTurquoise|DarkViolet|DeepPink|DeepSkyBlue|DimGr[ae]y|DodgerBlue|FireBrick|FloralWhite|ForestGreen|Fuchsia|Gainsboro|GhostWhite|Gold|GoldenRod|Gr[ae]y|Green|GreenYellow|HoneyDew|HotPink|IndianRed|Indigo|Ivory|Khaki|Lavender|LavenderBlush|LawnGreen|LemonChiffon|LightBlue|LightCoral|LightCyan|LightGoldenRodYellow|LightGr[ae]y|LightGreen|LightPink|LightSalmon|LightSeaGreen|LightSkyBlue|LightSlateGr[ae]y|LightSteelBlue|LightYellow|Lime|LimeGreen|Linen|Magenta|Maroon|MediumAquaMarine|MediumBlue|MediumOrchid|MediumPurple|MediumSeaGreen|MediumSlateBlue|MediumSpringGreen|MediumTurquoise|MediumVioletRed|MidnightBlue|MintCream|MistyRose|Moccasin|NavajoWhite|Navy|OldLace|Olive|OliveDrab|Orange|OrangeRed|Orchid|PaleGoldenRod|PaleGreen|PaleTurquoise|PaleVioletRed|PapayaWhip|PeachPuff|Peru|Pink|Plum|PowderBlue|Purple|Red|RosyBrown|RoyalBlue|SaddleBrown|Salmon|SandyBrown|SeaGreen|SeaShell|Sienna|Silver|SkyBlue|SlateBlue|SlateGr[ae]y|Snow|SpringGreen|SteelBlue|Tan|Teal|Thistle|Tomato|Transparent|Turquoise|Violet|Wheat|White|WhiteSmoke|Yellow|YellowGreen)(?![\w-])/i,lookbehind:!0},{pattern:/\b(?:hsl|rgb)\(\s*\d{1,3}\s*,\s*\d{1,3}%?\s*,\s*\d{1,3}%?\s*\)\B|\b(?:hsl|rgb)a\(\s*\d{1,3}\s*,\s*\d{1,3}%?\s*,\s*\d{1,3}%?\s*,\s*(?:0|0?\.\d+|1)\s*\)\B/i,inside:{unit:i,number:o,function:/[\w-]+(?=\()/,punctuation:/[(),]/}}],entity:/\\[\da-f]{1,8}/i,unit:i,number:o})})(t)}return X2}var Q2,R9;function O4e(){if(R9)return Q2;R9=1,Q2=e,e.displayName="csv",e.aliases=[];function e(t){t.languages.csv={value:/[^\r\n,"]+|"(?:[^"]|"")*"(?!")/,punctuation:/,/}}return Q2}var J2,P9;function R4e(){if(P9)return J2;P9=1,J2=e,e.displayName="cypher",e.aliases=[];function e(t){t.languages.cypher={comment:/\/\/.*/,string:{pattern:/"(?:[^"\\\r\n]|\\.)*"|'(?:[^'\\\r\n]|\\.)*'/,greedy:!0},"class-name":{pattern:/(:\s*)(?:\w+|`(?:[^`\\\r\n])*`)(?=\s*[{):])/,lookbehind:!0,greedy:!0},relationship:{pattern:/(-\[\s*(?:\w+\s*|`(?:[^`\\\r\n])*`\s*)?:\s*|\|\s*:\s*)(?:\w+|`(?:[^`\\\r\n])*`)/,lookbehind:!0,greedy:!0,alias:"property"},identifier:{pattern:/`(?:[^`\\\r\n])*`/,greedy:!0},variable:/\$\w+/,keyword:/\b(?:ADD|ALL|AND|AS|ASC|ASCENDING|ASSERT|BY|CALL|CASE|COMMIT|CONSTRAINT|CONTAINS|CREATE|CSV|DELETE|DESC|DESCENDING|DETACH|DISTINCT|DO|DROP|ELSE|END|ENDS|EXISTS|FOR|FOREACH|IN|INDEX|IS|JOIN|KEY|LIMIT|LOAD|MANDATORY|MATCH|MERGE|NODE|NOT|OF|ON|OPTIONAL|OR|ORDER(?=\s+BY)|PERIODIC|REMOVE|REQUIRE|RETURN|SCALAR|SCAN|SET|SKIP|START|STARTS|THEN|UNION|UNIQUE|UNWIND|USING|WHEN|WHERE|WITH|XOR|YIELD)\b/i,function:/\b\w+\b(?=\s*\()/,boolean:/\b(?:false|null|true)\b/i,number:/\b(?:0x[\da-fA-F]+|\d+(?:\.\d+)?(?:[eE][+-]?\d+)?)\b/,operator:/:|<--?|--?>?|<>|=~?|[<>]=?|[+*/%^|]|\.\.\.?/,punctuation:/[()[\]{},;.]/}}return J2}var Z2,A9;function P4e(){if(A9)return Z2;A9=1,Z2=e,e.displayName="d",e.aliases=[];function e(t){t.languages.d=t.languages.extend("clike",{comment:[{pattern:/^\s*#!.+/,greedy:!0},{pattern:RegExp(/(^|[^\\])/.source+"(?:"+[/\/\+(?:\/\+(?:[^+]|\+(?!\/))*\+\/|(?!\/\+)[\s\S])*?\+\//.source,/\/\/.*/.source,/\/\*[\s\S]*?\*\//.source].join("|")+")"),lookbehind:!0,greedy:!0}],string:[{pattern:RegExp([/\b[rx]"(?:\\[\s\S]|[^\\"])*"[cwd]?/.source,/\bq"(?:\[[\s\S]*?\]|\([\s\S]*?\)|<[\s\S]*?>|\{[\s\S]*?\})"/.source,/\bq"((?!\d)\w+)$[\s\S]*?^\1"/.source,/\bq"(.)[\s\S]*?\2"/.source,/(["`])(?:\\[\s\S]|(?!\3)[^\\])*\3[cwd]?/.source].join("|"),"m"),greedy:!0},{pattern:/\bq\{(?:\{[^{}]*\}|[^{}])*\}/,greedy:!0,alias:"token-string"}],keyword:/\$|\b(?:__(?:(?:DATE|EOF|FILE|FUNCTION|LINE|MODULE|PRETTY_FUNCTION|TIMESTAMP|TIME|VENDOR|VERSION)__|gshared|parameters|traits|vector)|abstract|alias|align|asm|assert|auto|body|bool|break|byte|case|cast|catch|cdouble|cent|cfloat|char|class|const|continue|creal|dchar|debug|default|delegate|delete|deprecated|do|double|dstring|else|enum|export|extern|false|final|finally|float|for|foreach|foreach_reverse|function|goto|idouble|if|ifloat|immutable|import|inout|int|interface|invariant|ireal|lazy|long|macro|mixin|module|new|nothrow|null|out|override|package|pragma|private|protected|ptrdiff_t|public|pure|real|ref|return|scope|shared|short|size_t|static|string|struct|super|switch|synchronized|template|this|throw|true|try|typedef|typeid|typeof|ubyte|ucent|uint|ulong|union|unittest|ushort|version|void|volatile|wchar|while|with|wstring)\b/,number:[/\b0x\.?[a-f\d_]+(?:(?!\.\.)\.[a-f\d_]*)?(?:p[+-]?[a-f\d_]+)?[ulfi]{0,4}/i,{pattern:/((?:\.\.)?)(?:\b0b\.?|\b|\.)\d[\d_]*(?:(?!\.\.)\.[\d_]*)?(?:e[+-]?\d[\d_]*)?[ulfi]{0,4}/i,lookbehind:!0}],operator:/\|[|=]?|&[&=]?|\+[+=]?|-[-=]?|\.?\.\.|=[>=]?|!(?:i[ns]\b|<>?=?|>=?|=)?|\bi[ns]\b|(?:<[<>]?|>>?>?|\^\^|[*\/%^~])=?/}),t.languages.insertBefore("d","string",{char:/'(?:\\(?:\W|\w+)|[^\\])'/}),t.languages.insertBefore("d","keyword",{property:/\B@\w*/}),t.languages.insertBefore("d","function",{register:{pattern:/\b(?:[ABCD][LHX]|E?(?:BP|DI|SI|SP)|[BS]PL|[ECSDGF]S|CR[0234]|[DS]IL|DR[012367]|E[ABCD]X|X?MM[0-7]|R(?:1[0-5]|[89])[BWD]?|R[ABCD]X|R[BS]P|R[DS]I|TR[3-7]|XMM(?:1[0-5]|[89])|YMM(?:1[0-5]|\d))\b|\bST(?:\([0-7]\)|\b)/,alias:"variable"}})}return Z2}var eM,N9;function A4e(){if(N9)return eM;N9=1,eM=e,e.displayName="dart",e.aliases=[];function e(t){(function(n){var r=[/\b(?:async|sync|yield)\*/,/\b(?:abstract|assert|async|await|break|case|catch|class|const|continue|covariant|default|deferred|do|dynamic|else|enum|export|extends|extension|external|factory|final|finally|for|get|hide|if|implements|import|in|interface|library|mixin|new|null|on|operator|part|rethrow|return|set|show|static|super|switch|sync|this|throw|try|typedef|var|void|while|with|yield)\b/],a=/(^|[^\w.])(?:[a-z]\w*\s*\.\s*)*(?:[A-Z]\w*\s*\.\s*)*/.source,i={pattern:RegExp(a+/[A-Z](?:[\d_A-Z]*[a-z]\w*)?\b/.source),lookbehind:!0,inside:{namespace:{pattern:/^[a-z]\w*(?:\s*\.\s*[a-z]\w*)*(?:\s*\.)?/,inside:{punctuation:/\./}}}};n.languages.dart=n.languages.extend("clike",{"class-name":[i,{pattern:RegExp(a+/[A-Z]\w*(?=\s+\w+\s*[;,=()])/.source),lookbehind:!0,inside:i.inside}],keyword:r,operator:/\bis!|\b(?:as|is)\b|\+\+|--|&&|\|\||<<=?|>>=?|~(?:\/=?)?|[+\-*\/%&^|=!<>]=?|\?/}),n.languages.insertBefore("dart","string",{"string-literal":{pattern:/r?(?:("""|''')[\s\S]*?\1|(["'])(?:\\.|(?!\2)[^\\\r\n])*\2(?!\2))/,greedy:!0,inside:{interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$(?:\w+|\{(?:[^{}]|\{[^{}]*\})*\})/,lookbehind:!0,inside:{punctuation:/^\$\{?|\}$/,expression:{pattern:/[\s\S]+/,inside:n.languages.dart}}},string:/[\s\S]+/}},string:void 0}),n.languages.insertBefore("dart","class-name",{metadata:{pattern:/@\w+/,alias:"function"}}),n.languages.insertBefore("dart","class-name",{generics:{pattern:/<(?:[\w\s,.&?]|<(?:[\w\s,.&?]|<(?:[\w\s,.&?]|<[\w\s,.&?]*>)*>)*>)*>/,inside:{"class-name":i,keyword:r,punctuation:/[<>(),.:]/,operator:/[?&|]/}}})})(t)}return eM}var tM,M9;function N4e(){if(M9)return tM;M9=1,tM=e,e.displayName="dataweave",e.aliases=[];function e(t){(function(n){n.languages.dataweave={url:/\b[A-Za-z]+:\/\/[\w/:.?=&-]+|\burn:[\w:.?=&-]+/,property:{pattern:/(?:\b\w+#)?(?:"(?:\\.|[^\\"\r\n])*"|\b\w+)(?=\s*[:@])/,greedy:!0},string:{pattern:/(["'`])(?:\\[\s\S]|(?!\1)[^\\])*\1/,greedy:!0},"mime-type":/\b(?:application|audio|image|multipart|text|video)\/[\w+-]+/,date:{pattern:/\|[\w:+-]+\|/,greedy:!0},comment:[{pattern:/(^|[^\\])\/\*[\s\S]*?(?:\*\/|$)/,lookbehind:!0,greedy:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],regex:{pattern:/\/(?:[^\\\/\r\n]|\\[^\r\n])+\//,greedy:!0},keyword:/\b(?:and|as|at|case|do|else|fun|if|input|is|match|not|ns|null|or|output|type|unless|update|using|var)\b/,function:/\b[A-Z_]\w*(?=\s*\()/i,number:/-?\b\d+(?:\.\d+)?(?:e[+-]?\d+)?\b/i,punctuation:/[{}[\];(),.:@]/,operator:/<<|>>|->|[<>~=]=?|!=|--?-?|\+\+?|!|\?/,boolean:/\b(?:false|true)\b/}})(t)}return tM}var nM,I9;function M4e(){if(I9)return nM;I9=1,nM=e,e.displayName="dax",e.aliases=[];function e(t){t.languages.dax={comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?\*\/|(?:--|\/\/).*)/,lookbehind:!0},"data-field":{pattern:/'(?:[^']|'')*'(?!')(?:\[[ \w\xA0-\uFFFF]+\])?|\w+\[[ \w\xA0-\uFFFF]+\]/,alias:"symbol"},measure:{pattern:/\[[ \w\xA0-\uFFFF]+\]/,alias:"constant"},string:{pattern:/"(?:[^"]|"")*"(?!")/,greedy:!0},function:/\b(?:ABS|ACOS|ACOSH|ACOT|ACOTH|ADDCOLUMNS|ADDMISSINGITEMS|ALL|ALLCROSSFILTERED|ALLEXCEPT|ALLNOBLANKROW|ALLSELECTED|AND|APPROXIMATEDISTINCTCOUNT|ASIN|ASINH|ATAN|ATANH|AVERAGE|AVERAGEA|AVERAGEX|BETA\.DIST|BETA\.INV|BLANK|CALCULATE|CALCULATETABLE|CALENDAR|CALENDARAUTO|CEILING|CHISQ\.DIST|CHISQ\.DIST\.RT|CHISQ\.INV|CHISQ\.INV\.RT|CLOSINGBALANCEMONTH|CLOSINGBALANCEQUARTER|CLOSINGBALANCEYEAR|COALESCE|COMBIN|COMBINA|COMBINEVALUES|CONCATENATE|CONCATENATEX|CONFIDENCE\.NORM|CONFIDENCE\.T|CONTAINS|CONTAINSROW|CONTAINSSTRING|CONTAINSSTRINGEXACT|CONVERT|COS|COSH|COT|COTH|COUNT|COUNTA|COUNTAX|COUNTBLANK|COUNTROWS|COUNTX|CROSSFILTER|CROSSJOIN|CURRENCY|CURRENTGROUP|CUSTOMDATA|DATATABLE|DATE|DATEADD|DATEDIFF|DATESBETWEEN|DATESINPERIOD|DATESMTD|DATESQTD|DATESYTD|DATEVALUE|DAY|DEGREES|DETAILROWS|DISTINCT|DISTINCTCOUNT|DISTINCTCOUNTNOBLANK|DIVIDE|EARLIER|EARLIEST|EDATE|ENDOFMONTH|ENDOFQUARTER|ENDOFYEAR|EOMONTH|ERROR|EVEN|EXACT|EXCEPT|EXP|EXPON\.DIST|FACT|FALSE|FILTER|FILTERS|FIND|FIRSTDATE|FIRSTNONBLANK|FIRSTNONBLANKVALUE|FIXED|FLOOR|FORMAT|GCD|GENERATE|GENERATEALL|GENERATESERIES|GEOMEAN|GEOMEANX|GROUPBY|HASONEFILTER|HASONEVALUE|HOUR|IF|IF\.EAGER|IFERROR|IGNORE|INT|INTERSECT|ISBLANK|ISCROSSFILTERED|ISEMPTY|ISERROR|ISEVEN|ISFILTERED|ISINSCOPE|ISLOGICAL|ISNONTEXT|ISNUMBER|ISO\.CEILING|ISODD|ISONORAFTER|ISSELECTEDMEASURE|ISSUBTOTAL|ISTEXT|KEEPFILTERS|KEYWORDMATCH|LASTDATE|LASTNONBLANK|LASTNONBLANKVALUE|LCM|LEFT|LEN|LN|LOG|LOG10|LOOKUPVALUE|LOWER|MAX|MAXA|MAXX|MEDIAN|MEDIANX|MID|MIN|MINA|MINUTE|MINX|MOD|MONTH|MROUND|NATURALINNERJOIN|NATURALLEFTOUTERJOIN|NEXTDAY|NEXTMONTH|NEXTQUARTER|NEXTYEAR|NONVISUAL|NORM\.DIST|NORM\.INV|NORM\.S\.DIST|NORM\.S\.INV|NOT|NOW|ODD|OPENINGBALANCEMONTH|OPENINGBALANCEQUARTER|OPENINGBALANCEYEAR|OR|PARALLELPERIOD|PATH|PATHCONTAINS|PATHITEM|PATHITEMREVERSE|PATHLENGTH|PERCENTILE\.EXC|PERCENTILE\.INC|PERCENTILEX\.EXC|PERCENTILEX\.INC|PERMUT|PI|POISSON\.DIST|POWER|PREVIOUSDAY|PREVIOUSMONTH|PREVIOUSQUARTER|PREVIOUSYEAR|PRODUCT|PRODUCTX|QUARTER|QUOTIENT|RADIANS|RAND|RANDBETWEEN|RANK\.EQ|RANKX|RELATED|RELATEDTABLE|REMOVEFILTERS|REPLACE|REPT|RIGHT|ROLLUP|ROLLUPADDISSUBTOTAL|ROLLUPGROUP|ROLLUPISSUBTOTAL|ROUND|ROUNDDOWN|ROUNDUP|ROW|SAMEPERIODLASTYEAR|SAMPLE|SEARCH|SECOND|SELECTCOLUMNS|SELECTEDMEASURE|SELECTEDMEASUREFORMATSTRING|SELECTEDMEASURENAME|SELECTEDVALUE|SIGN|SIN|SINH|SQRT|SQRTPI|STARTOFMONTH|STARTOFQUARTER|STARTOFYEAR|STDEV\.P|STDEV\.S|STDEVX\.P|STDEVX\.S|SUBSTITUTE|SUBSTITUTEWITHINDEX|SUM|SUMMARIZE|SUMMARIZECOLUMNS|SUMX|SWITCH|T\.DIST|T\.DIST\.2T|T\.DIST\.RT|T\.INV|T\.INV\.2T|TAN|TANH|TIME|TIMEVALUE|TODAY|TOPN|TOPNPERLEVEL|TOPNSKIP|TOTALMTD|TOTALQTD|TOTALYTD|TREATAS|TRIM|TRUE|TRUNC|UNICHAR|UNICODE|UNION|UPPER|USERELATIONSHIP|USERNAME|USEROBJECTID|USERPRINCIPALNAME|UTCNOW|UTCTODAY|VALUE|VALUES|VAR\.P|VAR\.S|VARX\.P|VARX\.S|WEEKDAY|WEEKNUM|XIRR|XNPV|YEAR|YEARFRAC)(?=\s*\()/i,keyword:/\b(?:DEFINE|EVALUATE|MEASURE|ORDER\s+BY|RETURN|VAR|START\s+AT|ASC|DESC)\b/i,boolean:{pattern:/\b(?:FALSE|NULL|TRUE)\b/i,alias:"constant"},number:/\b\d+(?:\.\d*)?|\B\.\d+\b/,operator:/:=|[-+*\/=^]|&&?|\|\||<(?:=>?|<|>)?|>[>=]?|\b(?:IN|NOT)\b/i,punctuation:/[;\[\](){}`,.]/}}return nM}var rM,D9;function I4e(){if(D9)return rM;D9=1,rM=e,e.displayName="dhall",e.aliases=[];function e(t){t.languages.dhall={comment:/--.*|\{-(?:[^-{]|-(?!\})|\{(?!-)|\{-(?:[^-{]|-(?!\})|\{(?!-))*-\})*-\}/,string:{pattern:/"(?:[^"\\]|\\.)*"|''(?:[^']|'(?!')|'''|''\$\{)*''(?!'|\$)/,greedy:!0,inside:{interpolation:{pattern:/\$\{[^{}]*\}/,inside:{expression:{pattern:/(^\$\{)[\s\S]+(?=\}$)/,lookbehind:!0,alias:"language-dhall",inside:null},punctuation:/\$\{|\}/}}}},label:{pattern:/`[^`]*`/,greedy:!0},url:{pattern:/\bhttps?:\/\/[\w.:%!$&'*+;=@~-]+(?:\/[\w.:%!$&'*+;=@~-]*)*(?:\?[/?\w.:%!$&'*+;=@~-]*)?/,greedy:!0},env:{pattern:/\benv:(?:(?!\d)\w+|"(?:[^"\\=]|\\.)*")/,greedy:!0,inside:{function:/^env/,operator:/^:/,variable:/[\s\S]+/}},hash:{pattern:/\bsha256:[\da-fA-F]{64}\b/,inside:{function:/sha256/,operator:/:/,number:/[\da-fA-F]{64}/}},keyword:/\b(?:as|assert|else|forall|if|in|let|merge|missing|then|toMap|using|with)\b|\u2200/,builtin:/\b(?:None|Some)\b/,boolean:/\b(?:False|True)\b/,number:/\bNaN\b|-?\bInfinity\b|[+-]?\b(?:0x[\da-fA-F]+|\d+(?:\.\d+)?(?:e[+-]?\d+)?)\b/,operator:/\/\\|\/\/\\\\|&&|\|\||===|[!=]=|\/\/|->|\+\+|::|[+*#@=:?<>|\\\u2227\u2a53\u2261\u2afd\u03bb\u2192]/,punctuation:/\.\.|[{}\[\](),./]/,"class-name":/\b[A-Z]\w*\b/},t.languages.dhall.string.inside.interpolation.inside.expression.inside=t.languages.dhall}return rM}var aM,$9;function D4e(){if($9)return aM;$9=1,aM=e,e.displayName="diff",e.aliases=[];function e(t){(function(n){n.languages.diff={coord:[/^(?:\*{3}|-{3}|\+{3}).*$/m,/^@@.*@@$/m,/^\d.*$/m]};var r={"deleted-sign":"-","deleted-arrow":"<","inserted-sign":"+","inserted-arrow":">",unchanged:" ",diff:"!"};Object.keys(r).forEach(function(a){var i=r[a],o=[];/^\w+$/.test(a)||o.push(/\w+/.exec(a)[0]),a==="diff"&&o.push("bold"),n.languages.diff[a]={pattern:RegExp("^(?:["+i+`].*(?:\r ?| -|(?![\\s\\S])))+`,"m"),alias:o,inside:{line:{pattern:/(.)(?=[\s\S]).*(?:\r\n?|\n)?/,lookbehind:!0},prefix:{pattern:/[\s\S]/,alias:/\w+/.exec(a)[0]}}}}),Object.defineProperty(n.languages.diff,"PREFIXES",{value:r})})(t)}return P2}var A2,u9;function cs(){if(u9)return A2;u9=1,A2=e,e.displayName="markupTemplating",e.aliases=[];function e(t){(function(n){function r(a,i){return"___"+a.toUpperCase()+i+"___"}Object.defineProperties(n.languages["markup-templating"]={},{buildPlaceholders:{value:function(a,i,o,l){if(a.language===i){var u=a.tokenStack=[];a.code=a.code.replace(o,function(d){if(typeof l=="function"&&!l(d))return d;for(var f=u.length,g;a.code.indexOf(g=r(i,f))!==-1;)++f;return u[f]=d,g}),a.grammar=n.languages.markup}}},tokenizePlaceholders:{value:function(a,i){if(a.language!==i||!a.tokenStack)return;a.grammar=n.languages[i];var o=0,l=Object.keys(a.tokenStack);function u(d){for(var f=0;f=l.length);f++){var g=d[f];if(typeof g=="string"||g.content&&typeof g.content=="string"){var y=l[o],h=a.tokenStack[y],v=typeof g=="string"?g:g.content,E=r(i,y),T=v.indexOf(E);if(T>-1){++o;var C=v.substring(0,T),k=new n.Token(i,n.tokenize(h,a.grammar),"language-"+i,h),_=v.substring(T+E.length),A=[];C&&A.push.apply(A,u([C])),A.push(k),_&&A.push.apply(A,u([_])),typeof g=="string"?d.splice.apply(d,[f,1].concat(A)):g.content=A}}else g.content&&u(g.content)}return d}u(a.tokens)}}})})(t)}return A2}var N2,c9;function r4e(){if(c9)return N2;c9=1;var e=cs();N2=t,t.displayName="django",t.aliases=["jinja2"];function t(n){n.register(e),(function(r){r.languages.django={comment:/^\{#[\s\S]*?#\}$/,tag:{pattern:/(^\{%[+-]?\s*)\w+/,lookbehind:!0,alias:"keyword"},delimiter:{pattern:/^\{[{%][+-]?|[+-]?[}%]\}$/,alias:"punctuation"},string:{pattern:/("|')(?:\\.|(?!\1)[^\\\r\n])*\1/,greedy:!0},filter:{pattern:/(\|)\w+/,lookbehind:!0,alias:"function"},test:{pattern:/(\bis\s+(?:not\s+)?)(?!not\b)\w+/,lookbehind:!0,alias:"function"},function:/\b[a-z_]\w+(?=\s*\()/i,keyword:/\b(?:and|as|by|else|for|if|import|in|is|loop|not|or|recursive|with|without)\b/,operator:/[-+%=]=?|!=|\*\*?=?|\/\/?=?|<[<=>]?|>[=>]?|[&|^~]/,number:/\b\d+(?:\.\d+)?\b/,boolean:/[Ff]alse|[Nn]one|[Tt]rue/,variable:/\b\w+\b/,punctuation:/[{}[\](),.:;]/};var a=/\{\{[\s\S]*?\}\}|\{%[\s\S]*?%\}|\{#[\s\S]*?#\}/g,i=r.languages["markup-templating"];r.hooks.add("before-tokenize",function(o){i.buildPlaceholders(o,"django",a)}),r.hooks.add("after-tokenize",function(o){i.tokenizePlaceholders(o,"django")}),r.languages.jinja2=r.languages.django,r.hooks.add("before-tokenize",function(o){i.buildPlaceholders(o,"jinja2",a)}),r.hooks.add("after-tokenize",function(o){i.tokenizePlaceholders(o,"jinja2")})})(n)}return N2}var M2,d9;function a4e(){if(d9)return M2;d9=1,M2=e,e.displayName="dnsZoneFile",e.aliases=[];function e(t){t.languages["dns-zone-file"]={comment:/;.*/,string:{pattern:/"(?:\\.|[^"\\\r\n])*"/,greedy:!0},variable:[{pattern:/(^\$ORIGIN[ \t]+)\S+/m,lookbehind:!0},{pattern:/(^|\s)@(?=\s|$)/,lookbehind:!0}],keyword:/^\$(?:INCLUDE|ORIGIN|TTL)(?=\s|$)/m,class:{pattern:/(^|\s)(?:CH|CS|HS|IN)(?=\s|$)/,lookbehind:!0,alias:"keyword"},type:{pattern:/(^|\s)(?:A|A6|AAAA|AFSDB|APL|ATMA|CAA|CDNSKEY|CDS|CERT|CNAME|DHCID|DLV|DNAME|DNSKEY|DS|EID|GID|GPOS|HINFO|HIP|IPSECKEY|ISDN|KEY|KX|LOC|MAILA|MAILB|MB|MD|MF|MG|MINFO|MR|MX|NAPTR|NB|NBSTAT|NIMLOC|NINFO|NS|NSAP|NSAP-PTR|NSEC|NSEC3|NSEC3PARAM|NULL|NXT|OPENPGPKEY|PTR|PX|RKEY|RP|RRSIG|RT|SIG|SINK|SMIMEA|SOA|SPF|SRV|SSHFP|TA|TKEY|TLSA|TSIG|TXT|UID|UINFO|UNSPEC|URI|WKS|X25)(?=\s|$)/,lookbehind:!0,alias:"keyword"},punctuation:/[()]/},t.languages["dns-zone"]=t.languages["dns-zone-file"]}return M2}var I2,f9;function i4e(){if(f9)return I2;f9=1,I2=e,e.displayName="docker",e.aliases=["dockerfile"];function e(t){(function(n){var r=/\\[\r\n](?:\s|\\[\r\n]|#.*(?!.))*(?![\s#]|\\[\r\n])/.source,a=/(?:[ \t]+(?![ \t])(?:)?|)/.source.replace(//g,function(){return r}),i=/"(?:[^"\\\r\n]|\\(?:\r\n|[\s\S]))*"|'(?:[^'\\\r\n]|\\(?:\r\n|[\s\S]))*'/.source,o=/--[\w-]+=(?:|(?!["'])(?:[^\s\\]|\\.)+)/.source.replace(//g,function(){return i}),l={pattern:RegExp(i),greedy:!0},u={pattern:/(^[ \t]*)#.*/m,lookbehind:!0,greedy:!0};function d(f,g){return f=f.replace(//g,function(){return o}).replace(//g,function(){return a}),RegExp(f,g)}n.languages.docker={instruction:{pattern:/(^[ \t]*)(?:ADD|ARG|CMD|COPY|ENTRYPOINT|ENV|EXPOSE|FROM|HEALTHCHECK|LABEL|MAINTAINER|ONBUILD|RUN|SHELL|STOPSIGNAL|USER|VOLUME|WORKDIR)(?=\s)(?:\\.|[^\r\n\\])*(?:\\$(?:\s|#.*$)*(?![\s#])(?:\\.|[^\r\n\\])*)*/im,lookbehind:!0,greedy:!0,inside:{options:{pattern:d(/(^(?:ONBUILD)?\w+)(?:)*/.source,"i"),lookbehind:!0,greedy:!0,inside:{property:{pattern:/(^|\s)--[\w-]+/,lookbehind:!0},string:[l,{pattern:/(=)(?!["'])(?:[^\s\\]|\\.)+/,lookbehind:!0}],operator:/\\$/m,punctuation:/=/}},keyword:[{pattern:d(/(^(?:ONBUILD)?HEALTHCHECK(?:)*)(?:CMD|NONE)\b/.source,"i"),lookbehind:!0,greedy:!0},{pattern:d(/(^(?:ONBUILD)?FROM(?:)*(?!--)[^ \t\\]+)AS/.source,"i"),lookbehind:!0,greedy:!0},{pattern:d(/(^ONBUILD)\w+/.source,"i"),lookbehind:!0,greedy:!0},{pattern:/^\w+/,greedy:!0}],comment:u,string:l,variable:/\$(?:\w+|\{[^{}"'\\]*\})/,operator:/\\$/m}},comment:u},n.languages.dockerfile=n.languages.docker})(t)}return I2}var D2,p9;function o4e(){if(p9)return D2;p9=1,D2=e,e.displayName="dot",e.aliases=["gv"];function e(t){(function(n){var r="(?:"+[/[a-zA-Z_\x80-\uFFFF][\w\x80-\uFFFF]*/.source,/-?(?:\.\d+|\d+(?:\.\d*)?)/.source,/"[^"\\]*(?:\\[\s\S][^"\\]*)*"/.source,/<(?:[^<>]|(?!)*>/.source].join("|")+")",a={markup:{pattern:/(^<)[\s\S]+(?=>$)/,lookbehind:!0,alias:["language-markup","language-html","language-xml"],inside:n.languages.markup}};function i(o,l){return RegExp(o.replace(//g,function(){return r}),l)}n.languages.dot={comment:{pattern:/\/\/.*|\/\*[\s\S]*?\*\/|^#.*/m,greedy:!0},"graph-name":{pattern:i(/(\b(?:digraph|graph|subgraph)[ \t\r\n]+)/.source,"i"),lookbehind:!0,greedy:!0,alias:"class-name",inside:a},"attr-value":{pattern:i(/(=[ \t\r\n]*)/.source),lookbehind:!0,greedy:!0,inside:a},"attr-name":{pattern:i(/([\[;, \t\r\n])(?=[ \t\r\n]*=)/.source),lookbehind:!0,greedy:!0,inside:a},keyword:/\b(?:digraph|edge|graph|node|strict|subgraph)\b/i,"compass-point":{pattern:/(:[ \t\r\n]*)(?:[ewc_]|[ns][ew]?)(?![\w\x80-\uFFFF])/,lookbehind:!0,alias:"builtin"},node:{pattern:i(/(^|[^-.\w\x80-\uFFFF\\])/.source),lookbehind:!0,greedy:!0,inside:a},operator:/[=:]|-[->]/,punctuation:/[\[\]{};,]/},n.languages.gv=n.languages.dot})(t)}return D2}var $2,h9;function s4e(){if(h9)return $2;h9=1,$2=e,e.displayName="ebnf",e.aliases=[];function e(t){t.languages.ebnf={comment:/\(\*[\s\S]*?\*\)/,string:{pattern:/"[^"\r\n]*"|'[^'\r\n]*'/,greedy:!0},special:{pattern:/\?[^?\r\n]*\?/,greedy:!0,alias:"class-name"},definition:{pattern:/^([\t ]*)[a-z]\w*(?:[ \t]+[a-z]\w*)*(?=\s*=)/im,lookbehind:!0,alias:["rule","keyword"]},rule:/\b[a-z]\w*(?:[ \t]+[a-z]\w*)*\b/i,punctuation:/\([:/]|[:/]\)|[.,;()[\]{}]/,operator:/[-=|*/!]/}}return $2}var L2,m9;function l4e(){if(m9)return L2;m9=1,L2=e,e.displayName="editorconfig",e.aliases=[];function e(t){t.languages.editorconfig={comment:/[;#].*/,section:{pattern:/(^[ \t]*)\[.+\]/m,lookbehind:!0,alias:"selector",inside:{regex:/\\\\[\[\]{},!?.*]/,operator:/[!?]|\.\.|\*{1,2}/,punctuation:/[\[\]{},]/}},key:{pattern:/(^[ \t]*)[^\s=]+(?=[ \t]*=)/m,lookbehind:!0,alias:"attr-name"},value:{pattern:/=.*/,alias:"attr-value",inside:{punctuation:/^=/}}}}return L2}var F2,g9;function u4e(){if(g9)return F2;g9=1,F2=e,e.displayName="eiffel",e.aliases=[];function e(t){t.languages.eiffel={comment:/--.*/,string:[{pattern:/"([^[]*)\[[\s\S]*?\]\1"/,greedy:!0},{pattern:/"([^{]*)\{[\s\S]*?\}\1"/,greedy:!0},{pattern:/"(?:%(?:(?!\n)\s)*\n\s*%|%\S|[^%"\r\n])*"/,greedy:!0}],char:/'(?:%.|[^%'\r\n])+'/,keyword:/\b(?:across|agent|alias|all|and|as|assign|attached|attribute|check|class|convert|create|Current|debug|deferred|detachable|do|else|elseif|end|ensure|expanded|export|external|feature|from|frozen|if|implies|inherit|inspect|invariant|like|local|loop|not|note|obsolete|old|once|or|Precursor|redefine|rename|require|rescue|Result|retry|select|separate|some|then|undefine|until|variant|Void|when|xor)\b/i,boolean:/\b(?:False|True)\b/i,"class-name":/\b[A-Z][\dA-Z_]*\b/,number:[/\b0[xcb][\da-f](?:_*[\da-f])*\b/i,/(?:\b\d(?:_*\d)*)?\.(?:(?:\d(?:_*\d)*)?e[+-]?)?\d(?:_*\d)*\b|\b\d(?:_*\d)*\b\.?/i],punctuation:/:=|<<|>>|\(\||\|\)|->|\.(?=\w)|[{}[\];(),:?]/,operator:/\\\\|\|\.\.\||\.\.|\/[~\/=]?|[><]=?|[-+*^=~]/}}return F2}var j2,v9;function c4e(){if(v9)return j2;v9=1;var e=cs();j2=t,t.displayName="ejs",t.aliases=["eta"];function t(n){n.register(e),(function(r){r.languages.ejs={delimiter:{pattern:/^<%[-_=]?|[-_]?%>$/,alias:"punctuation"},comment:/^#[\s\S]*/,"language-javascript":{pattern:/[\s\S]+/,inside:r.languages.javascript}},r.hooks.add("before-tokenize",function(a){var i=/<%(?!%)[\s\S]+?%>/g;r.languages["markup-templating"].buildPlaceholders(a,"ejs",i)}),r.hooks.add("after-tokenize",function(a){r.languages["markup-templating"].tokenizePlaceholders(a,"ejs")}),r.languages.eta=r.languages.ejs})(n)}return j2}var U2,y9;function d4e(){if(y9)return U2;y9=1,U2=e,e.displayName="elixir",e.aliases=[];function e(t){t.languages.elixir={doc:{pattern:/@(?:doc|moduledoc)\s+(?:("""|''')[\s\S]*?\1|("|')(?:\\(?:\r\n|[\s\S])|(?!\2)[^\\\r\n])*\2)/,inside:{attribute:/^@\w+/,string:/['"][\s\S]+/}},comment:{pattern:/#.*/,greedy:!0},regex:{pattern:/~[rR](?:("""|''')(?:\\[\s\S]|(?!\1)[^\\])+\1|([\/|"'])(?:\\.|(?!\2)[^\\\r\n])+\2|\((?:\\.|[^\\)\r\n])+\)|\[(?:\\.|[^\\\]\r\n])+\]|\{(?:\\.|[^\\}\r\n])+\}|<(?:\\.|[^\\>\r\n])+>)[uismxfr]*/,greedy:!0},string:[{pattern:/~[cCsSwW](?:("""|''')(?:\\[\s\S]|(?!\1)[^\\])+\1|([\/|"'])(?:\\.|(?!\2)[^\\\r\n])+\2|\((?:\\.|[^\\)\r\n])+\)|\[(?:\\.|[^\\\]\r\n])+\]|\{(?:\\.|#\{[^}]+\}|#(?!\{)|[^#\\}\r\n])+\}|<(?:\\.|[^\\>\r\n])+>)[csa]?/,greedy:!0,inside:{}},{pattern:/("""|''')[\s\S]*?\1/,greedy:!0,inside:{}},{pattern:/("|')(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,greedy:!0,inside:{}}],atom:{pattern:/(^|[^:]):\w+/,lookbehind:!0,alias:"symbol"},module:{pattern:/\b[A-Z]\w*\b/,alias:"class-name"},"attr-name":/\b\w+\??:(?!:)/,argument:{pattern:/(^|[^&])&\d+/,lookbehind:!0,alias:"variable"},attribute:{pattern:/@\w+/,alias:"variable"},function:/\b[_a-zA-Z]\w*[?!]?(?:(?=\s*(?:\.\s*)?\()|(?=\/\d))/,number:/\b(?:0[box][a-f\d_]+|\d[\d_]*)(?:\.[\d_]+)?(?:e[+-]?[\d_]+)?\b/i,keyword:/\b(?:after|alias|and|case|catch|cond|def(?:callback|delegate|exception|impl|macro|module|n|np|p|protocol|struct)?|do|else|end|fn|for|if|import|not|or|quote|raise|require|rescue|try|unless|unquote|use|when)\b/,boolean:/\b(?:false|nil|true)\b/,operator:[/\bin\b|&&?|\|[|>]?|\\\\|::|\.\.\.?|\+\+?|-[->]?|<[-=>]|>=|!==?|\B!|=(?:==?|[>~])?|[*\/^]/,{pattern:/([^<])<(?!<)/,lookbehind:!0},{pattern:/([^>])>(?!>)/,lookbehind:!0}],punctuation:/<<|>>|[.,%\[\]{}()]/},t.languages.elixir.string.forEach(function(n){n.inside={interpolation:{pattern:/#\{[^}]+\}/,inside:{delimiter:{pattern:/^#\{|\}$/,alias:"punctuation"},rest:t.languages.elixir}}}})}return U2}var B2,b9;function f4e(){if(b9)return B2;b9=1,B2=e,e.displayName="elm",e.aliases=[];function e(t){t.languages.elm={comment:/--.*|\{-[\s\S]*?-\}/,char:{pattern:/'(?:[^\\'\r\n]|\\(?:[abfnrtv\\']|\d+|x[0-9a-fA-F]+|u\{[0-9a-fA-F]+\}))'/,greedy:!0},string:[{pattern:/"""[\s\S]*?"""/,greedy:!0},{pattern:/"(?:[^\\"\r\n]|\\.)*"/,greedy:!0}],"import-statement":{pattern:/(^[\t ]*)import\s+[A-Z]\w*(?:\.[A-Z]\w*)*(?:\s+as\s+(?:[A-Z]\w*)(?:\.[A-Z]\w*)*)?(?:\s+exposing\s+)?/m,lookbehind:!0,inside:{keyword:/\b(?:as|exposing|import)\b/}},keyword:/\b(?:alias|as|case|else|exposing|if|in|infixl|infixr|let|module|of|then|type)\b/,builtin:/\b(?:abs|acos|always|asin|atan|atan2|ceiling|clamp|compare|cos|curry|degrees|e|flip|floor|fromPolar|identity|isInfinite|isNaN|logBase|max|min|negate|never|not|pi|radians|rem|round|sin|sqrt|tan|toFloat|toPolar|toString|truncate|turns|uncurry|xor)\b/,number:/\b(?:\d+(?:\.\d+)?(?:e[+-]?\d+)?|0x[0-9a-f]+)\b/i,operator:/\s\.\s|[+\-/*=.$<>:&|^?%#@~!]{2,}|[+\-/*=$<>:&|^?%#@~!]/,hvariable:/\b(?:[A-Z]\w*\.)*[a-z]\w*\b/,constant:/\b(?:[A-Z]\w*\.)*[A-Z]\w*\b/,punctuation:/[{}[\]|(),.:]/}}return B2}var W2,w9;function p4e(){if(w9)return W2;w9=1;var e=B_(),t=cs();W2=n,n.displayName="erb",n.aliases=[];function n(r){r.register(e),r.register(t),(function(a){a.languages.erb={delimiter:{pattern:/^(\s*)<%=?|%>(?=\s*$)/,lookbehind:!0,alias:"punctuation"},ruby:{pattern:/\s*\S[\s\S]*/,alias:"language-ruby",inside:a.languages.ruby}},a.hooks.add("before-tokenize",function(i){var o=/<%=?(?:[^\r\n]|[\r\n](?!=begin)|[\r\n]=begin\s(?:[^\r\n]|[\r\n](?!=end))*[\r\n]=end)+?%>/g;a.languages["markup-templating"].buildPlaceholders(i,"erb",o)}),a.hooks.add("after-tokenize",function(i){a.languages["markup-templating"].tokenizePlaceholders(i,"erb")})})(r)}return W2}var z2,S9;function h4e(){if(S9)return z2;S9=1,z2=e,e.displayName="erlang",e.aliases=[];function e(t){t.languages.erlang={comment:/%.+/,string:{pattern:/"(?:\\.|[^\\"\r\n])*"/,greedy:!0},"quoted-function":{pattern:/'(?:\\.|[^\\'\r\n])+'(?=\()/,alias:"function"},"quoted-atom":{pattern:/'(?:\\.|[^\\'\r\n])+'/,alias:"atom"},boolean:/\b(?:false|true)\b/,keyword:/\b(?:after|case|catch|end|fun|if|of|receive|try|when)\b/,number:[/\$\\?./,/\b\d+#[a-z0-9]+/i,/(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?/i],function:/\b[a-z][\w@]*(?=\()/,variable:{pattern:/(^|[^@])(?:\b|\?)[A-Z_][\w@]*/,lookbehind:!0},operator:[/[=\/<>:]=|=[:\/]=|\+\+?|--?|[=*\/!]|\b(?:and|andalso|band|bnot|bor|bsl|bsr|bxor|div|not|or|orelse|rem|xor)\b/,{pattern:/(^|[^<])<(?!<)/,lookbehind:!0},{pattern:/(^|[^>])>(?!>)/,lookbehind:!0}],atom:/\b[a-z][\w@]*/,punctuation:/[()[\]{}:;,.#|]|<<|>>/}}return z2}var q2,E9;function bre(){if(E9)return q2;E9=1,q2=e,e.displayName="lua",e.aliases=[];function e(t){t.languages.lua={comment:/^#!.+|--(?:\[(=*)\[[\s\S]*?\]\1\]|.*)/m,string:{pattern:/(["'])(?:(?!\1)[^\\\r\n]|\\z(?:\r\n|\s)|\\(?:\r\n|[^z]))*\1|\[(=*)\[[\s\S]*?\]\2\]/,greedy:!0},number:/\b0x[a-f\d]+(?:\.[a-f\d]*)?(?:p[+-]?\d+)?\b|\b\d+(?:\.\B|(?:\.\d*)?(?:e[+-]?\d+)?\b)|\B\.\d+(?:e[+-]?\d+)?\b/i,keyword:/\b(?:and|break|do|else|elseif|end|false|for|function|goto|if|in|local|nil|not|or|repeat|return|then|true|until|while)\b/,function:/(?!\d)\w+(?=\s*(?:[({]))/,operator:[/[-+*%^&|#]|\/\/?|<[<=]?|>[>=]?|[=~]=?/,{pattern:/(^|[^.])\.\.(?!\.)/,lookbehind:!0}],punctuation:/[\[\](){},;]|\.+|:+/}}return q2}var H2,T9;function m4e(){if(T9)return H2;T9=1;var e=bre(),t=cs();H2=n,n.displayName="etlua",n.aliases=[];function n(r){r.register(e),r.register(t),(function(a){a.languages.etlua={delimiter:{pattern:/^<%[-=]?|-?%>$/,alias:"punctuation"},"language-lua":{pattern:/[\s\S]+/,inside:a.languages.lua}},a.hooks.add("before-tokenize",function(i){var o=/<%[\s\S]+?%>/g;a.languages["markup-templating"].buildPlaceholders(i,"etlua",o)}),a.hooks.add("after-tokenize",function(i){a.languages["markup-templating"].tokenizePlaceholders(i,"etlua")})})(r)}return H2}var V2,C9;function g4e(){if(C9)return V2;C9=1,V2=e,e.displayName="excelFormula",e.aliases=[];function e(t){t.languages["excel-formula"]={comment:{pattern:/(\bN\(\s*)"(?:[^"]|"")*"(?=\s*\))/i,lookbehind:!0,greedy:!0},string:{pattern:/"(?:[^"]|"")*"(?!")/,greedy:!0},reference:{pattern:/(?:'[^']*'|(?:[^\s()[\]{}<>*?"';,$&]*\[[^^\s()[\]{}<>*?"']+\])?\w+)!/,greedy:!0,alias:"string",inside:{operator:/!$/,punctuation:/'/,sheet:{pattern:/[^[\]]+$/,alias:"function"},file:{pattern:/\[[^[\]]+\]$/,inside:{punctuation:/[[\]]/}},path:/[\s\S]+/}},"function-name":{pattern:/\b[A-Z]\w*(?=\()/i,alias:"keyword"},range:{pattern:/\$?\b(?:[A-Z]+\$?\d+:\$?[A-Z]+\$?\d+|[A-Z]+:\$?[A-Z]+|\d+:\$?\d+)\b/i,alias:"property",inside:{operator:/:/,cell:/\$?[A-Z]+\$?\d+/i,column:/\$?[A-Z]+/i,row:/\$?\d+/}},cell:{pattern:/\b[A-Z]+\d+\b|\$[A-Za-z]+\$?\d+\b|\b[A-Za-z]+\$\d+\b/,alias:"property"},number:/(?:\b\d+(?:\.\d+)?|\B\.\d+)(?:e[+-]?\d+)?\b/i,boolean:/\b(?:FALSE|TRUE)\b/i,operator:/[-+*/^%=&,]|<[=>]?|>=?/,punctuation:/[[\]();{}|]/},t.languages.xlsx=t.languages.xls=t.languages["excel-formula"]}return V2}var G2,k9;function v4e(){if(k9)return G2;k9=1,G2=e,e.displayName="factor",e.aliases=[];function e(t){(function(n){var r={function:/\b(?:BUGS?|FIX(?:MES?)?|NOTES?|TODOS?|XX+|HACKS?|WARN(?:ING)?|\?{2,}|!{2,})\b/},a={number:/\\[^\s']|%\w/},i={comment:[{pattern:/(^|\s)(?:! .*|!$)/,lookbehind:!0,inside:r},{pattern:/(^|\s)\/\*\s[\s\S]*?\*\/(?=\s|$)/,lookbehind:!0,greedy:!0,inside:r},{pattern:/(^|\s)!\[(={0,6})\[\s[\s\S]*?\]\2\](?=\s|$)/,lookbehind:!0,greedy:!0,inside:r}],number:[{pattern:/(^|\s)[+-]?\d+(?=\s|$)/,lookbehind:!0},{pattern:/(^|\s)[+-]?0(?:b[01]+|o[0-7]+|d\d+|x[\dA-F]+)(?=\s|$)/i,lookbehind:!0},{pattern:/(^|\s)[+-]?\d+\/\d+\.?(?=\s|$)/,lookbehind:!0},{pattern:/(^|\s)\+?\d+\+\d+\/\d+(?=\s|$)/,lookbehind:!0},{pattern:/(^|\s)-\d+-\d+\/\d+(?=\s|$)/,lookbehind:!0},{pattern:/(^|\s)[+-]?(?:\d*\.\d+|\d+\.\d*|\d+)(?:e[+-]?\d+)?(?=\s|$)/i,lookbehind:!0},{pattern:/(^|\s)NAN:\s+[\da-fA-F]+(?=\s|$)/,lookbehind:!0},{pattern:/(^|\s)[+-]?0(?:b1\.[01]*|o1\.[0-7]*|d1\.\d*|x1\.[\dA-F]*)p\d+(?=\s|$)/i,lookbehind:!0}],regexp:{pattern:/(^|\s)R\/\s(?:\\\S|[^\\/])*\/(?:[idmsr]*|[idmsr]+-[idmsr]+)(?=\s|$)/,lookbehind:!0,alias:"number",inside:{variable:/\\\S/,keyword:/[+?*\[\]^$(){}.|]/,operator:{pattern:/(\/)[idmsr]+(?:-[idmsr]+)?/,lookbehind:!0}}},boolean:{pattern:/(^|\s)[tf](?=\s|$)/,lookbehind:!0},"custom-string":{pattern:/(^|\s)[A-Z0-9\-]+"\s(?:\\\S|[^"\\])*"/,lookbehind:!0,greedy:!0,alias:"string",inside:{number:/\\\S|%\w|\//}},"multiline-string":[{pattern:/(^|\s)STRING:\s+\S+(?:\n|\r\n).*(?:\n|\r\n)\s*;(?=\s|$)/,lookbehind:!0,greedy:!0,alias:"string",inside:{number:a.number,"semicolon-or-setlocal":{pattern:/([\r\n][ \t]*);(?=\s|$)/,lookbehind:!0,alias:"function"}}},{pattern:/(^|\s)HEREDOC:\s+\S+(?:\n|\r\n).*(?:\n|\r\n)\s*\S+(?=\s|$)/,lookbehind:!0,greedy:!0,alias:"string",inside:a},{pattern:/(^|\s)\[(={0,6})\[\s[\s\S]*?\]\2\](?=\s|$)/,lookbehind:!0,greedy:!0,alias:"string",inside:a}],"special-using":{pattern:/(^|\s)USING:(?:\s\S+)*(?=\s+;(?:\s|$))/,lookbehind:!0,alias:"function",inside:{string:{pattern:/(\s)[^:\s]+/,lookbehind:!0}}},"stack-effect-delimiter":[{pattern:/(^|\s)(?:call|eval|execute)?\((?=\s)/,lookbehind:!0,alias:"operator"},{pattern:/(\s)--(?=\s)/,lookbehind:!0,alias:"operator"},{pattern:/(\s)\)(?=\s|$)/,lookbehind:!0,alias:"operator"}],combinators:{pattern:null,lookbehind:!0,alias:"keyword"},"kernel-builtin":{pattern:null,lookbehind:!0,alias:"variable"},"sequences-builtin":{pattern:null,lookbehind:!0,alias:"variable"},"math-builtin":{pattern:null,lookbehind:!0,alias:"variable"},"constructor-word":{pattern:/(^|\s)<(?!=+>|-+>)\S+>(?=\s|$)/,lookbehind:!0,alias:"keyword"},"other-builtin-syntax":{pattern:null,lookbehind:!0,alias:"operator"},"conventionally-named-word":{pattern:/(^|\s)(?!")(?:(?:change|new|set|with)-\S+|\$\S+|>[^>\s]+|[^:>\s]+>|[^>\s]+>[^>\s]+|\+[^+\s]+\+|[^?\s]+\?|\?[^?\s]+|[^>\s]+>>|>>[^>\s]+|[^<\s]+<<|\([^()\s]+\)|[^!\s]+!|[^*\s]\S*\*|[^.\s]\S*\.)(?=\s|$)/,lookbehind:!0,alias:"keyword"},"colon-syntax":{pattern:/(^|\s)(?:[A-Z0-9\-]+#?)?:{1,2}\s+(?:;\S+|(?!;)\S+)(?=\s|$)/,lookbehind:!0,greedy:!0,alias:"function"},"semicolon-or-setlocal":{pattern:/(\s)(?:;|:>)(?=\s|$)/,lookbehind:!0,alias:"function"},"curly-brace-literal-delimiter":[{pattern:/(^|\s)[a-z]*\{(?=\s)/i,lookbehind:!0,alias:"operator"},{pattern:/(\s)\}(?=\s|$)/,lookbehind:!0,alias:"operator"}],"quotation-delimiter":[{pattern:/(^|\s)\[(?=\s)/,lookbehind:!0,alias:"operator"},{pattern:/(\s)\](?=\s|$)/,lookbehind:!0,alias:"operator"}],"normal-word":{pattern:/(^|\s)[^"\s]\S*(?=\s|$)/,lookbehind:!0},string:{pattern:/"(?:\\\S|[^"\\])*"/,greedy:!0,inside:a}},o=function(f){return(f+"").replace(/([.?*+\^$\[\]\\(){}|\-])/g,"\\$1")},l=function(f){return new RegExp("(^|\\s)(?:"+f.map(o).join("|")+")(?=\\s|$)")},u={"kernel-builtin":["or","2nipd","4drop","tuck","wrapper","nip","wrapper?","callstack>array","die","dupd","callstack","callstack?","3dup","hashcode","pick","4nip","build",">boolean","nipd","clone","5nip","eq?","?","=","swapd","2over","clear","2dup","get-retainstack","not","tuple?","dup","3nipd","call","-rotd","object","drop","assert=","assert?","-rot","execute","boa","get-callstack","curried?","3drop","pickd","overd","over","roll","3nip","swap","and","2nip","rotd","throw","(clone)","hashcode*","spin","reach","4dup","equal?","get-datastack","assert","2drop","","boolean?","identity-hashcode","identity-tuple?","null","composed?","new","5drop","rot","-roll","xor","identity-tuple","boolean"],"other-builtin-syntax":["=======","recursive","flushable",">>","<<<<<<","M\\","B","PRIVATE>","\\","======","final","inline","delimiter","deprecated",">>>>>","<<<<<<<","parse-complex","malformed-complex","read-only",">>>>>>>","call-next-method","<<","foldable","$","$[","${"],"sequences-builtin":["member-eq?","mismatch","append","assert-sequence=","longer","repetition","clone-like","3sequence","assert-sequence?","last-index-from","reversed","index-from","cut*","pad-tail","join-as","remove-eq!","concat-as","but-last","snip","nths","nth","sequence","longest","slice?","","remove-nth","tail-slice","empty?","tail*","member?","virtual-sequence?","set-length","drop-prefix","iota","unclip","bounds-error?","unclip-last-slice","non-negative-integer-expected","non-negative-integer-expected?","midpoint@","longer?","?set-nth","?first","rest-slice","prepend-as","prepend","fourth","sift","subseq-start","new-sequence","?last","like","first4","1sequence","reverse","slice","virtual@","repetition?","set-last","index","4sequence","max-length","set-second","immutable-sequence","first2","first3","supremum","unclip-slice","suffix!","insert-nth","tail","3append","short","suffix","concat","flip","immutable?","reverse!","2sequence","sum","delete-all","indices","snip-slice","","check-slice","sequence?","head","append-as","halves","sequence=","collapse-slice","?second","slice-error?","product","bounds-check?","bounds-check","immutable","virtual-exemplar","harvest","remove","pad-head","last","set-fourth","cartesian-product","remove-eq","shorten","shorter","reversed?","shorter?","shortest","head-slice","pop*","tail-slice*","but-last-slice","iota?","append!","cut-slice","new-resizable","head-slice*","sequence-hashcode","pop","set-nth","?nth","second","join","immutable-sequence?","","3append-as","virtual-sequence","subseq?","remove-nth!","length","last-index","lengthen","assert-sequence","copy","move","third","first","tail?","set-first","prefix","bounds-error","","exchange","surround","cut","min-length","set-third","push-all","head?","subseq-start-from","delete-slice","rest","sum-lengths","head*","infimum","remove!","glue","slice-error","subseq","push","replace-slice","subseq-as","unclip-last"],"math-builtin":["number=","next-power-of-2","?1+","fp-special?","imaginary-part","float>bits","number?","fp-infinity?","bignum?","fp-snan?","denominator","gcd","*","+","fp-bitwise=","-","u>=","/",">=","bitand","power-of-2?","log2-expects-positive","neg?","<","log2",">","integer?","number","bits>double","2/","zero?","bits>float","float?","shift","ratio?","rect>","even?","ratio","fp-sign","bitnot",">fixnum","complex?","/i","integer>fixnum","/f","sgn",">bignum","next-float","u<","u>","mod","recip","rational",">float","2^","integer","fixnum?","neg","fixnum","sq","bignum",">rect","bit?","fp-qnan?","simple-gcd","complex","","real",">fraction","double>bits","bitor","rem","fp-nan-payload","real-part","log2-expects-positive?","prev-float","align","unordered?","float","fp-nan?","abs","bitxor","integer>fixnum-strict","u<=","odd?","<=","/mod",">integer","real?","rational?","numerator"]};Object.keys(u).forEach(function(f){i[f].pattern=l(u[f])});var d=["2bi","while","2tri","bi*","4dip","both?","same?","tri@","curry","prepose","3bi","?if","tri*","2keep","3keep","curried","2keepd","when","2bi*","2tri*","4keep","bi@","keepdd","do","unless*","tri-curry","if*","loop","bi-curry*","when*","2bi@","2tri@","with","2with","either?","bi","until","3dip","3curry","tri-curry*","tri-curry@","bi-curry","keepd","compose","2dip","if","3tri","unless","tuple","keep","2curry","tri","most","while*","dip","composed","bi-curry@","find-last-from","trim-head-slice","map-as","each-from","none?","trim-tail","partition","if-empty","accumulate*","reject!","find-from","accumulate-as","collector-for-as","reject","map","map-sum","accumulate!","2each-from","follow","supremum-by","map!","unless-empty","collector","padding","reduce-index","replicate-as","infimum-by","trim-tail-slice","count","find-index","filter","accumulate*!","reject-as","map-integers","map-find","reduce","selector","interleave","2map","filter-as","binary-reduce","map-index-as","find","produce","filter!","replicate","cartesian-map","cartesian-each","find-index-from","map-find-last","3map-as","3map","find-last","selector-as","2map-as","2map-reduce","accumulate","each","each-index","accumulate*-as","when-empty","all?","collector-as","push-either","new-like","collector-for","2selector","push-if","2all?","map-reduce","3each","any?","trim-slice","2reduce","change-nth","produce-as","2each","trim","trim-head","cartesian-find","map-index","if-zero","each-integer","unless-zero","(find-integer)","when-zero","find-last-integer","(all-integers?)","times","(each-integer)","find-integer","all-integers?","unless-negative","if-positive","when-positive","when-negative","unless-positive","if-negative","case","2cleave","cond>quot","case>quot","3cleave","wrong-values","to-fixed-point","alist>quot","cond","cleave","call-effect","recursive-hashcode","spread","deep-spread>quot","2||","0||","n||","0&&","2&&","3||","1||","1&&","n&&","3&&","smart-unless*","keep-inputs","reduce-outputs","smart-when*","cleave>array","smart-with","smart-apply","smart-if","inputs/outputs","output>sequence-n","map-outputs","map-reduce-outputs","dropping","output>array","smart-map-reduce","smart-2map-reduce","output>array-n","nullary","inputsequence"];i.combinators.pattern=l(d),n.languages.factor=i})(t)}return G2}var Y2,x9;function y4e(){if(x9)return Y2;x9=1,Y2=e,e.displayName="$false",e.aliases=[];function e(t){(function(n){n.languages.false={comment:{pattern:/\{[^}]*\}/},string:{pattern:/"[^"]*"/,greedy:!0},"character-code":{pattern:/'(?:[^\r]|\r\n?)/,alias:"number"},"assembler-code":{pattern:/\d+`/,alias:"important"},number:/\d+/,operator:/[-!#$%&'*+,./:;=>?@\\^_`|~ßø]/,punctuation:/\[|\]/,variable:/[a-z]/,"non-standard":{pattern:/[()!=]=?|[-+*/%]|\b(?:in|is)\b/}),delete t.languages["firestore-security-rules"]["class-name"],t.languages.insertBefore("firestore-security-rules","keyword",{path:{pattern:/(^|[\s(),])(?:\/(?:[\w\xA0-\uFFFF]+|\{[\w\xA0-\uFFFF]+(?:=\*\*)?\}|\$\([\w\xA0-\uFFFF.]+\)))+/,lookbehind:!0,greedy:!0,inside:{variable:{pattern:/\{[\w\xA0-\uFFFF]+(?:=\*\*)?\}|\$\([\w\xA0-\uFFFF.]+\)/,inside:{operator:/=/,keyword:/\*\*/,punctuation:/[.$(){}]/}},punctuation:/\//}},method:{pattern:/(\ballow\s+)[a-z]+(?:\s*,\s*[a-z]+)*(?=\s*[:;])/,lookbehind:!0,alias:"builtin",inside:{punctuation:/,/}}})}return K2}var X2,O9;function w4e(){if(O9)return X2;O9=1,X2=e,e.displayName="flow",e.aliases=[];function e(t){(function(n){n.languages.flow=n.languages.extend("javascript",{}),n.languages.insertBefore("flow","keyword",{type:[{pattern:/\b(?:[Bb]oolean|Function|[Nn]umber|[Ss]tring|any|mixed|null|void)\b/,alias:"tag"}]}),n.languages.flow["function-variable"].pattern=/(?!\s)[_$a-z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*=\s*(?:function\b|(?:\([^()]*\)(?:\s*:\s*\w+)?|(?!\s)[_$a-z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)\s*=>))/i,delete n.languages.flow.parameter,n.languages.insertBefore("flow","operator",{"flow-punctuation":{pattern:/\{\||\|\}/,alias:"punctuation"}}),Array.isArray(n.languages.flow.keyword)||(n.languages.flow.keyword=[n.languages.flow.keyword]),n.languages.flow.keyword.unshift({pattern:/(^|[^$]\b)(?:Class|declare|opaque|type)\b(?!\$)/,lookbehind:!0},{pattern:/(^|[^$]\B)\$(?:Diff|Enum|Exact|Keys|ObjMap|PropertyType|Record|Shape|Subtype|Supertype|await)\b(?!\$)/,lookbehind:!0})})(t)}return X2}var Q2,R9;function S4e(){if(R9)return Q2;R9=1,Q2=e,e.displayName="fortran",e.aliases=[];function e(t){t.languages.fortran={"quoted-number":{pattern:/[BOZ](['"])[A-F0-9]+\1/i,alias:"number"},string:{pattern:/(?:\b\w+_)?(['"])(?:\1\1|&(?:\r\n?|\n)(?:[ \t]*!.*(?:\r\n?|\n)|(?![ \t]*!))|(?!\1).)*(?:\1|&)/,inside:{comment:{pattern:/(&(?:\r\n?|\n)\s*)!.*/,lookbehind:!0}}},comment:{pattern:/!.*/,greedy:!0},boolean:/\.(?:FALSE|TRUE)\.(?:_\w+)?/i,number:/(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[ED][+-]?\d+)?(?:_\w+)?/i,keyword:[/\b(?:CHARACTER|COMPLEX|DOUBLE ?PRECISION|INTEGER|LOGICAL|REAL)\b/i,/\b(?:END ?)?(?:BLOCK ?DATA|DO|FILE|FORALL|FUNCTION|IF|INTERFACE|MODULE(?! PROCEDURE)|PROGRAM|SELECT|SUBROUTINE|TYPE|WHERE)\b/i,/\b(?:ALLOCATABLE|ALLOCATE|BACKSPACE|CALL|CASE|CLOSE|COMMON|CONTAINS|CONTINUE|CYCLE|DATA|DEALLOCATE|DIMENSION|DO|END|EQUIVALENCE|EXIT|EXTERNAL|FORMAT|GO ?TO|IMPLICIT(?: NONE)?|INQUIRE|INTENT|INTRINSIC|MODULE PROCEDURE|NAMELIST|NULLIFY|OPEN|OPTIONAL|PARAMETER|POINTER|PRINT|PRIVATE|PUBLIC|READ|RETURN|REWIND|SAVE|SELECT|STOP|TARGET|WHILE|WRITE)\b/i,/\b(?:ASSIGNMENT|DEFAULT|ELEMENTAL|ELSE|ELSEIF|ELSEWHERE|ENTRY|IN|INCLUDE|INOUT|KIND|NULL|ONLY|OPERATOR|OUT|PURE|RECURSIVE|RESULT|SEQUENCE|STAT|THEN|USE)\b/i],operator:[/\*\*|\/\/|=>|[=\/]=|[<>]=?|::|[+\-*=%]|\.[A-Z]+\./i,{pattern:/(^|(?!\().)\/(?!\))/,lookbehind:!0}],punctuation:/\(\/|\/\)|[(),;:&]/}}return Q2}var J2,P9;function E4e(){if(P9)return J2;P9=1,J2=e,e.displayName="fsharp",e.aliases=[];function e(t){t.languages.fsharp=t.languages.extend("clike",{comment:[{pattern:/(^|[^\\])\(\*(?!\))[\s\S]*?\*\)/,lookbehind:!0,greedy:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],string:{pattern:/(?:"""[\s\S]*?"""|@"(?:""|[^"])*"|"(?:\\[\s\S]|[^\\"])*")B?/,greedy:!0},"class-name":{pattern:/(\b(?:exception|inherit|interface|new|of|type)\s+|\w\s*:\s*|\s:\??>\s*)[.\w]+\b(?:\s*(?:->|\*)\s*[.\w]+\b)*(?!\s*[:.])/,lookbehind:!0,inside:{operator:/->|\*/,punctuation:/\./}},keyword:/\b(?:let|return|use|yield)(?:!\B|\b)|\b(?:abstract|and|as|asr|assert|atomic|base|begin|break|checked|class|component|const|constraint|constructor|continue|default|delegate|do|done|downcast|downto|eager|elif|else|end|event|exception|extern|external|false|finally|fixed|for|fun|function|functor|global|if|in|include|inherit|inline|interface|internal|land|lazy|lor|lsl|lsr|lxor|match|member|method|mixin|mod|module|mutable|namespace|new|not|null|object|of|open|or|override|parallel|private|process|protected|public|pure|rec|sealed|select|sig|static|struct|tailcall|then|to|trait|true|try|type|upcast|val|virtual|void|volatile|when|while|with)\b/,number:[/\b0x[\da-fA-F]+(?:LF|lf|un)?\b/,/\b0b[01]+(?:uy|y)?\b/,/(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[fm]|e[+-]?\d+)?\b/i,/\b\d+(?:[IlLsy]|UL|u[lsy]?)?\b/],operator:/([<>~&^])\1\1|([*.:<>&])\2|<-|->|[!=:]=|?|\??(?:<=|>=|<>|[-+*/%=<>])\??|[!?^&]|~[+~-]|:>|:\?>?/}),t.languages.insertBefore("fsharp","keyword",{preprocessor:{pattern:/(^[\t ]*)#.*/m,lookbehind:!0,alias:"property",inside:{directive:{pattern:/(^#)\b(?:else|endif|if|light|line|nowarn)\b/,lookbehind:!0,alias:"keyword"}}}}),t.languages.insertBefore("fsharp","punctuation",{"computation-expression":{pattern:/\b[_a-z]\w*(?=\s*\{)/i,alias:"keyword"}}),t.languages.insertBefore("fsharp","string",{annotation:{pattern:/\[<.+?>\]/,greedy:!0,inside:{punctuation:/^\[<|>\]$/,"class-name":{pattern:/^\w+$|(^|;\s*)[A-Z]\w*(?=\()/,lookbehind:!0},"annotation-content":{pattern:/[\s\S]+/,inside:t.languages.fsharp}}},char:{pattern:/'(?:[^\\']|\\(?:.|\d{3}|x[a-fA-F\d]{2}|u[a-fA-F\d]{4}|U[a-fA-F\d]{8}))'B?/,greedy:!0}})}return J2}var Z2,A9;function T4e(){if(A9)return Z2;A9=1;var e=cs();Z2=t,t.displayName="ftl",t.aliases=[];function t(n){n.register(e),(function(r){for(var a=/[^<()"']|\((?:)*\)|<(?!#--)|<#--(?:[^-]|-(?!->))*-->|"(?:[^\\"]|\\.)*"|'(?:[^\\']|\\.)*'/.source,i=0;i<2;i++)a=a.replace(//g,function(){return a});a=a.replace(//g,/[^\s\S]/.source);var o={comment:/<#--[\s\S]*?-->/,string:[{pattern:/\br("|')(?:(?!\1)[^\\]|\\.)*\1/,greedy:!0},{pattern:RegExp(/("|')(?:(?!\1|\$\{)[^\\]|\\.|\$\{(?:(?!\})(?:))*\})*\1/.source.replace(//g,function(){return a})),greedy:!0,inside:{interpolation:{pattern:RegExp(/((?:^|[^\\])(?:\\\\)*)\$\{(?:(?!\})(?:))*\}/.source.replace(//g,function(){return a})),lookbehind:!0,inside:{"interpolation-punctuation":{pattern:/^\$\{|\}$/,alias:"punctuation"},rest:null}}}}],keyword:/\b(?:as)\b/,boolean:/\b(?:false|true)\b/,"builtin-function":{pattern:/((?:^|[^?])\?\s*)\w+/,lookbehind:!0,alias:"function"},function:/\b\w+(?=\s*\()/,number:/\b\d+(?:\.\d+)?\b/,operator:/\.\.[<*!]?|->|--|\+\+|&&|\|\||\?{1,2}|[-+*/%!=<>]=?|\b(?:gt|gte|lt|lte)\b/,punctuation:/[,;.:()[\]{}]/};o.string[1].inside.interpolation.inside.rest=o,r.languages.ftl={"ftl-comment":{pattern:/^<#--[\s\S]*/,alias:"comment"},"ftl-directive":{pattern:/^<[\s\S]+>$/,inside:{directive:{pattern:/(^<\/?)[#@][a-z]\w*/i,lookbehind:!0,alias:"keyword"},punctuation:/^<\/?|\/?>$/,content:{pattern:/\s*\S[\s\S]*/,alias:"ftl",inside:o}}},"ftl-interpolation":{pattern:/^\$\{[\s\S]*\}$/,inside:{punctuation:/^\$\{|\}$/,content:{pattern:/\s*\S[\s\S]*/,alias:"ftl",inside:o}}}},r.hooks.add("before-tokenize",function(l){var u=RegExp(/<#--[\s\S]*?-->|<\/?[#@][a-zA-Z](?:)*?>|\$\{(?:)*?\}/.source.replace(//g,function(){return a}),"gi");r.languages["markup-templating"].buildPlaceholders(l,"ftl",u)}),r.hooks.add("after-tokenize",function(l){r.languages["markup-templating"].tokenizePlaceholders(l,"ftl")})})(n)}return Z2}var eM,N9;function C4e(){if(N9)return eM;N9=1,eM=e,e.displayName="gap",e.aliases=[];function e(t){t.languages.gap={shell:{pattern:/^gap>[\s\S]*?(?=^gap>|$(?![\s\S]))/m,greedy:!0,inside:{gap:{pattern:/^(gap>).+(?:(?:\r(?:\n|(?!\n))|\n)>.*)*/,lookbehind:!0,inside:null},punctuation:/^gap>/}},comment:{pattern:/#.*/,greedy:!0},string:{pattern:/(^|[^\\'"])(?:'(?:[^\r\n\\']|\\.){1,10}'|"(?:[^\r\n\\"]|\\.)*"(?!")|"""[\s\S]*?""")/,lookbehind:!0,greedy:!0,inside:{continuation:{pattern:/([\r\n])>/,lookbehind:!0,alias:"punctuation"}}},keyword:/\b(?:Assert|Info|IsBound|QUIT|TryNextMethod|Unbind|and|atomic|break|continue|do|elif|else|end|fi|for|function|if|in|local|mod|not|od|or|quit|readonly|readwrite|rec|repeat|return|then|until|while)\b/,boolean:/\b(?:false|true)\b/,function:/\b[a-z_]\w*(?=\s*\()/i,number:{pattern:/(^|[^\w.]|\.\.)(?:\d+(?:\.\d*)?|\.\d+)(?:[eE][+-]?\d+)?(?:_[a-z]?)?(?=$|[^\w.]|\.\.)/,lookbehind:!0},continuation:{pattern:/([\r\n])>/,lookbehind:!0,alias:"punctuation"},operator:/->|[-+*/^~=!]|<>|[<>]=?|:=|\.\./,punctuation:/[()[\]{},;.:]/},t.languages.gap.shell.inside.gap.inside=t.languages.gap}return eM}var tM,M9;function k4e(){if(M9)return tM;M9=1,tM=e,e.displayName="gcode",e.aliases=[];function e(t){t.languages.gcode={comment:/;.*|\B\(.*?\)\B/,string:{pattern:/"(?:""|[^"])*"/,greedy:!0},keyword:/\b[GM]\d+(?:\.\d+)?\b/,property:/\b[A-Z]/,checksum:{pattern:/(\*)\d+/,lookbehind:!0,alias:"number"},punctuation:/[:*]/}}return tM}var nM,I9;function x4e(){if(I9)return nM;I9=1,nM=e,e.displayName="gdscript",e.aliases=[];function e(t){t.languages.gdscript={comment:/#.*/,string:{pattern:/@?(?:("|')(?:(?!\1)[^\n\\]|\\[\s\S])*\1(?!"|')|"""(?:[^\\]|\\[\s\S])*?""")/,greedy:!0},"class-name":{pattern:/(^(?:class|class_name|extends)[ \t]+|^export\([ \t]*|\bas[ \t]+|(?:\b(?:const|var)[ \t]|[,(])[ \t]*\w+[ \t]*:[ \t]*|->[ \t]*)[a-zA-Z_]\w*/m,lookbehind:!0},keyword:/\b(?:and|as|assert|break|breakpoint|class|class_name|const|continue|elif|else|enum|export|extends|for|func|if|in|is|master|mastersync|match|not|null|onready|or|pass|preload|puppet|puppetsync|remote|remotesync|return|self|setget|signal|static|tool|var|while|yield)\b/,function:/\b[a-z_]\w*(?=[ \t]*\()/i,variable:/\$\w+/,number:[/\b0b[01_]+\b|\b0x[\da-fA-F_]+\b|(?:\b\d[\d_]*(?:\.[\d_]*)?|\B\.[\d_]+)(?:e[+-]?[\d_]+)?\b/,/\b(?:INF|NAN|PI|TAU)\b/],constant:/\b[A-Z][A-Z_\d]*\b/,boolean:/\b(?:false|true)\b/,operator:/->|:=|&&|\|\||<<|>>|[-+*/%&|!<>=]=?|[~^]/,punctuation:/[.:,;()[\]{}]/}}return nM}var rM,D9;function _4e(){if(D9)return rM;D9=1,rM=e,e.displayName="gedcom",e.aliases=[];function e(t){t.languages.gedcom={"line-value":{pattern:/(^[\t ]*\d+ +(?:@\w[\w!"$%&'()*+,\-./:;<=>?[\\\]^`{|}~\x80-\xfe #]*@ +)?\w+ ).+/m,lookbehind:!0,inside:{pointer:{pattern:/^@\w[\w!"$%&'()*+,\-./:;<=>?[\\\]^`{|}~\x80-\xfe #]*@$/,alias:"variable"}}},tag:{pattern:/(^[\t ]*\d+ +(?:@\w[\w!"$%&'()*+,\-./:;<=>?[\\\]^`{|}~\x80-\xfe #]*@ +)?)\w+/m,lookbehind:!0,alias:"string"},level:{pattern:/(^[\t ]*)\d+/m,lookbehind:!0,alias:"number"},pointer:{pattern:/@\w[\w!"$%&'()*+,\-./:;<=>?[\\\]^`{|}~\x80-\xfe #]*@/,alias:"variable"}}}return rM}var aM,$9;function O4e(){if($9)return aM;$9=1,aM=e,e.displayName="gherkin",e.aliases=[];function e(t){(function(n){var r=/(?:\r?\n|\r)[ \t]*\|.+\|(?:(?!\|).)*/.source;n.languages.gherkin={pystring:{pattern:/("""|''')[\s\S]+?\1/,alias:"string"},comment:{pattern:/(^[ \t]*)#.*/m,lookbehind:!0},tag:{pattern:/(^[ \t]*)@\S*/m,lookbehind:!0},feature:{pattern:/((?:^|\r?\n|\r)[ \t]*)(?:Ability|Ahoy matey!|Arwedd|Aspekt|Besigheid Behoefte|Business Need|Caracteristica|Característica|Egenskab|Egenskap|Eiginleiki|Feature|Fīča|Fitur|Fonctionnalité|Fonksyonalite|Funcionalidade|Funcionalitat|Functionalitate|Funcţionalitate|Funcționalitate|Functionaliteit|Fungsi|Funkcia|Funkcija|Funkcionalitāte|Funkcionalnost|Funkcja|Funksie|Funktionalität|Funktionalitéit|Funzionalità|Hwaet|Hwæt|Jellemző|Karakteristik|Lastnost|Mak|Mogucnost|laH|Mogućnost|Moznosti|Možnosti|OH HAI|Omadus|Ominaisuus|Osobina|Özellik|Potrzeba biznesowa|perbogh|poQbogh malja'|Požadavek|Požiadavka|Pretty much|Qap|Qu'meH 'ut|Savybė|Tính năng|Trajto|Vermoë|Vlastnosť|Właściwość|Značilnost|Δυνατότητα|Λειτουργία|Могућност|Мөмкинлек|Особина|Свойство|Үзенчәлеклелек|Функционал|Функционалност|Функция|Функціонал|תכונה|خاصية|خصوصیت|صلاحیت|کاروبار کی ضرورت|وِیژگی|रूप लेख|ਖਾਸੀਅਤ|ਨਕਸ਼ ਨੁਹਾਰ|ਮੁਹਾਂਦਰਾ|గుణము|ಹೆಚ್ಚಳ|ความต้องการทางธุรกิจ|ความสามารถ|โครงหลัก|기능|フィーチャ|功能|機能):(?:[^:\r\n]+(?:\r?\n|\r|$))*/,lookbehind:!0,inside:{important:{pattern:/(:)[^\r\n]+/,lookbehind:!0},keyword:/[^:\r\n]+:/}},scenario:{pattern:/(^[ \t]*)(?:Abstract Scenario|Abstrakt Scenario|Achtergrond|Aer|Ær|Agtergrond|All y'all|Antecedentes|Antecedents|Atburðarás|Atburðarásir|Awww, look mate|B4|Background|Baggrund|Bakgrund|Bakgrunn|Bakgrunnur|Beispiele|Beispiller|Bối cảnh|Cefndir|Cenario|Cenário|Cenario de Fundo|Cenário de Fundo|Cenarios|Cenários|Contesto|Context|Contexte|Contexto|Conto|Contoh|Contone|Dæmi|Dasar|Dead men tell no tales|Delineacao do Cenario|Delineação do Cenário|Dis is what went down|Dữ liệu|Dyagram Senaryo|Dyagram senaryo|Egzanp|Ejemplos|Eksempler|Ekzemploj|Enghreifftiau|Esbozo do escenario|Escenari|Escenario|Esempi|Esquema de l'escenari|Esquema del escenario|Esquema do Cenario|Esquema do Cenário|EXAMPLZ|Examples|Exempel|Exemple|Exemples|Exemplos|First off|Fono|Forgatókönyv|Forgatókönyv vázlat|Fundo|Geçmiş|Grundlage|Hannergrond|ghantoH|Háttér|Heave to|Istorik|Juhtumid|Keadaan|Khung kịch bản|Khung tình huống|Kịch bản|Koncept|Konsep skenario|Kontèks|Kontekst|Kontekstas|Konteksts|Kontext|Konturo de la scenaro|Latar Belakang|lut chovnatlh|lut|lutmey|Lýsing Atburðarásar|Lýsing Dæma|MISHUN SRSLY|MISHUN|Menggariskan Senario|mo'|Náčrt Scenára|Náčrt Scénáře|Náčrt Scenáru|Oris scenarija|Örnekler|Osnova|Osnova Scenára|Osnova scénáře|Osnutek|Ozadje|Paraugs|Pavyzdžiai|Példák|Piemēri|Plan du scénario|Plan du Scénario|Plan Senaryo|Plan senaryo|Plang vum Szenario|Pozadí|Pozadie|Pozadina|Príklady|Příklady|Primer|Primeri|Primjeri|Przykłady|Raamstsenaarium|Reckon it's like|Rerefons|Scenár|Scénář|Scenarie|Scenarij|Scenarijai|Scenarijaus šablonas|Scenariji|Scenārijs|Scenārijs pēc parauga|Scenarijus|Scenario|Scénario|Scenario Amlinellol|Scenario Outline|Scenario Template|Scenariomal|Scenariomall|Scenarios|Scenariu|Scenariusz|Scenaro|Schema dello scenario|Se ðe|Se the|Se þe|Senario|Senaryo Deskripsyon|Senaryo deskripsyon|Senaryo|Senaryo taslağı|Shiver me timbers|Situācija|Situai|Situasie Uiteensetting|Situasie|Skenario konsep|Skenario|Skica|Structura scenariu|Structură scenariu|Struktura scenarija|Stsenaarium|Swa hwaer swa|Swa|Swa hwær swa|Szablon scenariusza|Szenario|Szenariogrundriss|Tapaukset|Tapaus|Tapausaihio|Taust|Tausta|Template Keadaan|Template Senario|Template Situai|The thing of it is|Tình huống|Variantai|Voorbeelde|Voorbeelden|Wharrimean is|Yo-ho-ho|You'll wanna|Założenia|Παραδείγματα|Περιγραφή Σεναρίου|Σενάρια|Σενάριο|Υπόβαθρο|Кереш|Контекст|Концепт|Мисаллар|Мисоллар|Основа|Передумова|Позадина|Предистория|Предыстория|Приклади|Пример|Примери|Примеры|Рамка на сценарий|Скица|Структура сценарија|Структура сценария|Структура сценарію|Сценарий|Сценарий структураси|Сценарийның төзелеше|Сценарији|Сценарио|Сценарій|Тарих|Үрнәкләр|דוגמאות|רקע|תבנית תרחיש|תרחיש|الخلفية|الگوی سناریو|امثلة|پس منظر|زمینه|سناریو|سيناريو|سيناريو مخطط|مثالیں|منظر نامے کا خاکہ|منظرنامہ|نمونه ها|उदाहरण|परिदृश्य|परिदृश्य रूपरेखा|पृष्ठभूमि|ਉਦਾਹਰਨਾਂ|ਪਟਕਥਾ|ਪਟਕਥਾ ਢਾਂਚਾ|ਪਟਕਥਾ ਰੂਪ ਰੇਖਾ|ਪਿਛੋਕੜ|ఉదాహరణలు|కథనం|నేపథ్యం|సన్నివేశం|ಉದಾಹರಣೆಗಳು|ಕಥಾಸಾರಾಂಶ|ವಿವರಣೆ|ಹಿನ್ನೆಲೆ|โครงสร้างของเหตุการณ์|ชุดของตัวอย่าง|ชุดของเหตุการณ์|แนวคิด|สรุปเหตุการณ์|เหตุการณ์|배경|시나리오|시나리오 개요|예|サンプル|シナリオ|シナリオアウトライン|シナリオテンプレ|シナリオテンプレート|テンプレ|例|例子|剧本|剧本大纲|劇本|劇本大綱|场景|场景大纲|場景|場景大綱|背景):[^:\r\n]*/m,lookbehind:!0,inside:{important:{pattern:/(:)[^\r\n]*/,lookbehind:!0},keyword:/[^:\r\n]+:/}},"table-body":{pattern:RegExp("("+r+")(?:"+r+")+"),lookbehind:!0,inside:{outline:{pattern:/<[^>]+>/,alias:"variable"},td:{pattern:/\s*[^\s|][^|]*/,alias:"string"},punctuation:/\|/}},"table-head":{pattern:RegExp(r),inside:{th:{pattern:/\s*[^\s|][^|]*/,alias:"variable"},punctuation:/\|/}},atrule:{pattern:/(^[ \t]+)(?:'a|'ach|'ej|7|a|A také|A taktiež|A tiež|A zároveň|Aber|Ac|Adott|Akkor|Ak|Aleshores|Ale|Ali|Allora|Alors|Als|Ama|Amennyiben|Amikor|Ampak|an|AN|Ananging|And y'all|And|Angenommen|Anrhegedig a|An|Apabila|Atès|Atesa|Atunci|Avast!|Aye|A|awer|Bagi|Banjur|Bet|Biết|Blimey!|Buh|But at the end of the day I reckon|But y'all|But|BUT|Cal|Când|Cand|Cando|Ce|Cuando|Če|Ða ðe|Ða|Dadas|Dada|Dados|Dado|DaH ghu' bejlu'|dann|Dann|Dano|Dan|Dar|Dat fiind|Data|Date fiind|Date|Dati fiind|Dati|Daţi fiind|Dați fiind|DEN|Dato|De|Den youse gotta|Dengan|Diberi|Diyelim ki|Donada|Donat|Donitaĵo|Do|Dun|Duota|Ðurh|Eeldades|Ef|Eğer ki|Entao|Então|Entón|E|En|Entonces|Epi|És|Etant donnée|Etant donné|Et|Étant données|Étant donnée|Étant donné|Etant données|Etant donnés|Étant donnés|Fakat|Gangway!|Gdy|Gegeben seien|Gegeben sei|Gegeven|Gegewe|ghu' noblu'|Gitt|Given y'all|Given|Givet|Givun|Ha|Cho|I CAN HAZ|In|Ir|It's just unbelievable|I|Ja|Jeśli|Jeżeli|Kad|Kada|Kadar|Kai|Kaj|Když|Keď|Kemudian|Ketika|Khi|Kiedy|Ko|Kuid|Kui|Kun|Lan|latlh|Le sa a|Let go and haul|Le|Lè sa a|Lè|Logo|Lorsqu'<|Lorsque|mä|Maar|Mais|Mając|Ma|Majd|Maka|Manawa|Mas|Men|Menawa|Mutta|Nalika|Nalikaning|Nanging|Når|När|Nato|Nhưng|Niin|Njuk|O zaman|Och|Og|Oletetaan|Ond|Onda|Oraz|Pak|Pero|Però|Podano|Pokiaľ|Pokud|Potem|Potom|Privzeto|Pryd|Quan|Quand|Quando|qaSDI'|Så|Sed|Se|Siis|Sipoze ke|Sipoze Ke|Sipoze|Si|Şi|Și|Soit|Stel|Tada|Tad|Takrat|Tak|Tapi|Ter|Tetapi|Tha the|Tha|Then y'all|Then|Thì|Thurh|Toda|Too right|Un|Und|ugeholl|Và|vaj|Vendar|Ve|wann|Wanneer|WEN|Wenn|When y'all|When|Wtedy|Wun|Y'know|Yeah nah|Yna|Youse know like when|Youse know when youse got|Y|Za predpokladu|Za předpokladu|Zadan|Zadani|Zadano|Zadate|Zadato|Zakładając|Zaradi|Zatati|Þa þe|Þa|Þá|Þegar|Þurh|Αλλά|Δεδομένου|Και|Όταν|Τότε|А також|Агар|Але|Али|Аммо|А|Әгәр|Әйтик|Әмма|Бирок|Ва|Вә|Дадено|Дано|Допустим|Если|Задате|Задати|Задато|И|І|К тому же|Када|Кад|Когато|Когда|Коли|Ләкин|Лекин|Нәтиҗәдә|Нехай|Но|Онда|Припустимо, що|Припустимо|Пусть|Также|Та|Тогда|Тоді|То|Унда|Һәм|Якщо|אבל|אזי|אז|בהינתן|וגם|כאשר|آنگاه|اذاً|اگر|اما|اور|با فرض|بالفرض|بفرض|پھر|تب|ثم|جب|عندما|فرض کیا|لكن|لیکن|متى|هنگامی|و|अगर|और|कदा|किन्तु|चूंकि|जब|तथा|तदा|तब|परन्तु|पर|यदि|ਅਤੇ|ਜਦੋਂ|ਜਿਵੇਂ ਕਿ|ਜੇਕਰ|ਤਦ|ਪਰ|అప్పుడు|ఈ పరిస్థితిలో|కాని|చెప్పబడినది|మరియు|ಆದರೆ|ನಂತರ|ನೀಡಿದ|ಮತ್ತು|ಸ್ಥಿತಿಯನ್ನು|กำหนดให้|ดังนั้น|แต่|เมื่อ|และ|그러면<|그리고<|단<|만약<|만일<|먼저<|조건<|하지만<|かつ<|しかし<|ただし<|ならば<|もし<|並且<|但し<|但是<|假如<|假定<|假設<|假设<|前提<|同时<|同時<|并且<|当<|當<|而且<|那么<|那麼<)(?=[ \t])/m,lookbehind:!0},string:{pattern:/"(?:\\.|[^"\\\r\n])*"|'(?:\\.|[^'\\\r\n])*'/,inside:{outline:{pattern:/<[^>]+>/,alias:"variable"}}},outline:{pattern:/<[^>]+>/,alias:"variable"}}})(t)}return aM}var iM,L9;function R4e(){if(L9)return iM;L9=1,iM=e,e.displayName="git",e.aliases=[];function e(t){t.languages.git={comment:/^#.*/m,deleted:/^[-–].*/m,inserted:/^\+.*/m,string:/("|')(?:\\.|(?!\1)[^\\\r\n])*\1/,command:{pattern:/^.*\$ git .*$/m,inside:{parameter:/\s--?\w+/}},coord:/^@@.*@@$/m,"commit-sha1":/^commit \w{40}$/m}}return iM}var oM,F9;function P4e(){if(F9)return oM;F9=1;var e=Kv();oM=t,t.displayName="glsl",t.aliases=[];function t(n){n.register(e),n.languages.glsl=n.languages.extend("c",{keyword:/\b(?:active|asm|atomic_uint|attribute|[ibdu]?vec[234]|bool|break|buffer|case|cast|centroid|class|coherent|common|const|continue|d?mat[234](?:x[234])?|default|discard|do|double|else|enum|extern|external|false|filter|fixed|flat|float|for|fvec[234]|goto|half|highp|hvec[234]|[iu]?sampler2DMS(?:Array)?|[iu]?sampler2DRect|[iu]?samplerBuffer|[iu]?samplerCube|[iu]?samplerCubeArray|[iu]?sampler[123]D|[iu]?sampler[12]DArray|[iu]?image2DMS(?:Array)?|[iu]?image2DRect|[iu]?imageBuffer|[iu]?imageCube|[iu]?imageCubeArray|[iu]?image[123]D|[iu]?image[12]DArray|if|in|inline|inout|input|int|interface|invariant|layout|long|lowp|mediump|namespace|noinline|noperspective|out|output|partition|patch|precise|precision|public|readonly|resource|restrict|return|sample|sampler[12]DArrayShadow|sampler[12]DShadow|sampler2DRectShadow|sampler3DRect|samplerCubeArrayShadow|samplerCubeShadow|shared|short|sizeof|smooth|static|struct|subroutine|superp|switch|template|this|true|typedef|uint|uniform|union|unsigned|using|varying|void|volatile|while|writeonly)\b/})}return oM}var sM,j9;function A4e(){if(j9)return sM;j9=1,sM=e,e.displayName="gml",e.aliases=[];function e(t){t.languages.gamemakerlanguage=t.languages.gml=t.languages.extend("clike",{keyword:/\b(?:break|case|continue|default|do|else|enum|exit|for|globalvar|if|repeat|return|switch|until|var|while)\b/,number:/(?:\b0x[\da-f]+|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?)[ulf]{0,4}/i,operator:/--|\+\+|[-+%/=]=?|!=|\*\*?=?|<[<=>]?|>[=>]?|&&?|\^\^?|\|\|?|~|\b(?:and|at|not|or|with|xor)\b/,constant:/\b(?:GM_build_date|GM_version|action_(?:continue|restart|reverse|stop)|all|gamespeed_(?:fps|microseconds)|global|local|noone|other|pi|pointer_(?:invalid|null)|self|timezone_(?:local|utc)|undefined|ev_(?:create|destroy|step|alarm|keyboard|mouse|collision|other|draw|draw_(?:begin|end|post|pre)|keypress|keyrelease|trigger|(?:left|middle|no|right)_button|(?:left|middle|right)_press|(?:left|middle|right)_release|mouse_(?:enter|leave|wheel_down|wheel_up)|global_(?:left|middle|right)_button|global_(?:left|middle|right)_press|global_(?:left|middle|right)_release|joystick(?:1|2)_(?:button1|button2|button3|button4|button5|button6|button7|button8|down|left|right|up)|outside|boundary|game_start|game_end|room_start|room_end|no_more_lives|animation_end|end_of_path|no_more_health|user\d|gui|gui_begin|gui_end|step_(?:begin|end|normal))|vk_(?:alt|anykey|backspace|control|delete|down|end|enter|escape|home|insert|left|nokey|pagedown|pageup|pause|printscreen|return|right|shift|space|tab|up|f\d|numpad\d|add|decimal|divide|lalt|lcontrol|lshift|multiply|ralt|rcontrol|rshift|subtract)|achievement_(?:filter_(?:all_players|favorites_only|friends_only)|friends_info|info|leaderboard_info|our_info|pic_loaded|show_(?:achievement|bank|friend_picker|leaderboard|profile|purchase_prompt|ui)|type_challenge|type_score_challenge)|asset_(?:font|object|path|room|script|shader|sound|sprite|tiles|timeline|unknown)|audio_(?:3d|falloff_(?:exponent_distance|exponent_distance_clamped|inverse_distance|inverse_distance_clamped|linear_distance|linear_distance_clamped|none)|mono|new_system|old_system|stereo)|bm_(?:add|complex|dest_alpha|dest_color|dest_colour|inv_dest_alpha|inv_dest_color|inv_dest_colour|inv_src_alpha|inv_src_color|inv_src_colour|max|normal|one|src_alpha|src_alpha_sat|src_color|src_colour|subtract|zero)|browser_(?:chrome|firefox|ie|ie_mobile|not_a_browser|opera|safari|safari_mobile|tizen|unknown|windows_store)|buffer_(?:bool|f16|f32|f64|fast|fixed|generalerror|grow|invalidtype|network|outofbounds|outofspace|s16|s32|s8|seek_end|seek_relative|seek_start|string|text|u16|u32|u64|u8|vbuffer|wrap)|c_(?:aqua|black|blue|dkgray|fuchsia|gray|green|lime|ltgray|maroon|navy|olive|orange|purple|red|silver|teal|white|yellow)|cmpfunc_(?:always|equal|greater|greaterequal|less|lessequal|never|notequal)|cr_(?:appstart|arrow|beam|cross|default|drag|handpoint|hourglass|none|size_all|size_nesw|size_ns|size_nwse|size_we|uparrow)|cull_(?:clockwise|counterclockwise|noculling)|device_(?:emulator|tablet)|device_ios_(?:ipad|ipad_retina|iphone|iphone5|iphone6|iphone6plus|iphone_retina|unknown)|display_(?:landscape|landscape_flipped|portrait|portrait_flipped)|dll_(?:cdecl|cdel|stdcall)|ds_type_(?:grid|list|map|priority|queue|stack)|ef_(?:cloud|ellipse|explosion|firework|flare|rain|ring|smoke|smokeup|snow|spark|star)|fa_(?:archive|bottom|center|directory|hidden|left|middle|readonly|right|sysfile|top|volumeid)|fb_login_(?:default|fallback_to_webview|forcing_safari|forcing_webview|no_fallback_to_webview|use_system_account)|iap_(?:available|canceled|ev_consume|ev_product|ev_purchase|ev_restore|ev_storeload|failed|purchased|refunded|status_available|status_loading|status_processing|status_restoring|status_unavailable|status_uninitialised|storeload_failed|storeload_ok|unavailable)|leaderboard_type_(?:number|time_mins_secs)|lighttype_(?:dir|point)|matrix_(?:projection|view|world)|mb_(?:any|left|middle|none|right)|network_(?:config_(?:connect_timeout|disable_reliable_udp|enable_reliable_udp|use_non_blocking_socket)|socket_(?:bluetooth|tcp|udp)|type_(?:connect|data|disconnect|non_blocking_connect))|of_challenge_(?:lose|tie|win)|os_(?:android|ios|linux|macosx|ps3|ps4|psvita|unknown|uwp|win32|win8native|windows|winphone|xboxone)|phy_debug_render_(?:aabb|collision_pairs|coms|core_shapes|joints|obb|shapes)|phy_joint_(?:anchor_1_x|anchor_1_y|anchor_2_x|anchor_2_y|angle|angle_limits|damping_ratio|frequency|length_1|length_2|lower_angle_limit|max_force|max_length|max_motor_force|max_motor_torque|max_torque|motor_force|motor_speed|motor_torque|reaction_force_x|reaction_force_y|reaction_torque|speed|translation|upper_angle_limit)|phy_particle_data_flag_(?:category|color|colour|position|typeflags|velocity)|phy_particle_flag_(?:colormixing|colourmixing|elastic|powder|spring|tensile|viscous|wall|water|zombie)|phy_particle_group_flag_(?:rigid|solid)|pr_(?:linelist|linestrip|pointlist|trianglefan|trianglelist|trianglestrip)|ps_(?:distr|shape)_(?:diamond|ellipse|gaussian|invgaussian|line|linear|rectangle)|pt_shape_(?:circle|cloud|disk|explosion|flare|line|pixel|ring|smoke|snow|spark|sphere|square|star)|ty_(?:real|string)|gp_(?:face\d|axislh|axislv|axisrh|axisrv|padd|padl|padr|padu|select|shoulderl|shoulderlb|shoulderr|shoulderrb|start|stickl|stickr)|lb_disp_(?:none|numeric|time_ms|time_sec)|lb_sort_(?:ascending|descending|none)|ov_(?:achievements|community|friends|gamegroup|players|settings)|ugc_(?:filetype_(?:community|microtrans)|list_(?:Favorited|Followed|Published|Subscribed|UsedOrPlayed|VotedDown|VotedOn|VotedUp|WillVoteLater)|match_(?:AllGuides|Artwork|Collections|ControllerBindings|IntegratedGuides|Items|Items_Mtx|Items_ReadyToUse|Screenshots|UsableInGame|Videos|WebGuides)|query_(?:AcceptedForGameRankedByAcceptanceDate|CreatedByFriendsRankedByPublicationDate|FavoritedByFriendsRankedByPublicationDate|NotYetRated)|query_RankedBy(?:NumTimesReported|PublicationDate|TextSearch|TotalVotesAsc|Trend|Vote|VotesUp)|result_success|sortorder_CreationOrder(?:Asc|Desc)|sortorder_(?:ForModeration|LastUpdatedDesc|SubscriptionDateDesc|TitleAsc|VoteScoreDesc)|visibility_(?:friends_only|private|public))|vertex_usage_(?:binormal|blendindices|blendweight|color|colour|depth|fog|normal|position|psize|sample|tangent|texcoord|textcoord)|vertex_type_(?:float\d|color|colour|ubyte4)|input_type|layerelementtype_(?:background|instance|oldtilemap|particlesystem|sprite|tile|tilemap|undefined)|se_(?:chorus|compressor|echo|equalizer|flanger|gargle|none|reverb)|text_type|tile_(?:flip|index_mask|mirror|rotate)|(?:obj|rm|scr|spr)\w+)\b/,variable:/\b(?:alarm|application_surface|async_load|background_(?:alpha|blend|color|colour|foreground|height|hspeed|htiled|index|showcolor|showcolour|visible|vspeed|vtiled|width|x|xscale|y|yscale)|bbox_(?:bottom|left|right|top)|browser_(?:height|width)|caption_(?:health|lives|score)|current_(?:day|hour|minute|month|second|time|weekday|year)|cursor_sprite|debug_mode|delta_time|direction|display_aa|error_(?:last|occurred)|event_(?:action|number|object|type)|fps|fps_real|friction|game_(?:display|project|save)_(?:id|name)|gamemaker_(?:pro|registered|version)|gravity|gravity_direction|(?:h|v)speed|health|iap_data|id|image_(?:alpha|angle|blend|depth|index|number|speed|xscale|yscale)|instance_(?:count|id)|keyboard_(?:key|lastchar|lastkey|string)|layer|lives|mask_index|mouse_(?:button|lastbutton|x|y)|object_index|os_(?:browser|device|type|version)|path_(?:endaction|index|orientation|position|positionprevious|scale|speed)|persistent|phy_(?:rotation|(?:col_normal|collision|com|linear_velocity|position|speed)_(?:x|y)|angular_(?:damping|velocity)|position_(?:x|y)previous|speed|linear_damping|bullet|fixed_rotation|active|mass|inertia|dynamic|kinematic|sleeping|collision_points)|pointer_(?:invalid|null)|room|room_(?:caption|first|height|last|persistent|speed|width)|score|secure_mode|show_(?:health|lives|score)|solid|speed|sprite_(?:height|index|width|xoffset|yoffset)|temp_directory|timeline_(?:index|loop|position|running|speed)|transition_(?:color|kind|steps)|undefined|view_(?:angle|current|enabled|(?:h|v)(?:border|speed)|(?:h|w|x|y)port|(?:h|w|x|y)view|object|surface_id|visible)|visible|webgl_enabled|working_directory|(?:x|y)(?:previous|start)|x|y|argument(?:_relitive|_count|\d)|argument|global|local|other|self)\b/})}return sM}var lM,U9;function N4e(){if(U9)return lM;U9=1,lM=e,e.displayName="gn",e.aliases=["gni"];function e(t){t.languages.gn={comment:{pattern:/#.*/,greedy:!0},"string-literal":{pattern:/(^|[^\\"])"(?:[^\r\n"\\]|\\.)*"/,lookbehind:!0,greedy:!0,inside:{interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$(?:\{[\s\S]*?\}|[a-zA-Z_]\w*|0x[a-fA-F0-9]{2})/,lookbehind:!0,inside:{number:/^\$0x[\s\S]{2}$/,variable:/^\$\w+$/,"interpolation-punctuation":{pattern:/^\$\{|\}$/,alias:"punctuation"},expression:{pattern:/[\s\S]+/,inside:null}}},string:/[\s\S]+/}},keyword:/\b(?:else|if)\b/,boolean:/\b(?:false|true)\b/,"builtin-function":{pattern:/\b(?:assert|defined|foreach|import|pool|print|template|tool|toolchain)(?=\s*\()/i,alias:"keyword"},function:/\b[a-z_]\w*(?=\s*\()/i,constant:/\b(?:current_cpu|current_os|current_toolchain|default_toolchain|host_cpu|host_os|root_build_dir|root_gen_dir|root_out_dir|target_cpu|target_gen_dir|target_os|target_out_dir)\b/,number:/-?\b\d+\b/,operator:/[-+!=<>]=?|&&|\|\|/,punctuation:/[(){}[\],.]/},t.languages.gn["string-literal"].inside.interpolation.inside.expression.inside=t.languages.gn,t.languages.gni=t.languages.gn}return lM}var uM,B9;function M4e(){if(B9)return uM;B9=1,uM=e,e.displayName="goModule",e.aliases=[];function e(t){t.languages["go-mod"]=t.languages["go-module"]={comment:{pattern:/\/\/.*/,greedy:!0},version:{pattern:/(^|[\s()[\],])v\d+\.\d+\.\d+(?:[+-][-+.\w]*)?(?![^\s()[\],])/,lookbehind:!0,alias:"number"},"go-version":{pattern:/((?:^|\s)go\s+)\d+(?:\.\d+){1,2}/,lookbehind:!0,alias:"number"},keyword:{pattern:/^([ \t]*)(?:exclude|go|module|replace|require|retract)\b/m,lookbehind:!0},operator:/=>/,punctuation:/[()[\],]/}}return uM}var cM,W9;function I4e(){if(W9)return cM;W9=1,cM=e,e.displayName="go",e.aliases=[];function e(t){t.languages.go=t.languages.extend("clike",{string:{pattern:/(^|[^\\])"(?:\\.|[^"\\\r\n])*"|`[^`]*`/,lookbehind:!0,greedy:!0},keyword:/\b(?:break|case|chan|const|continue|default|defer|else|fallthrough|for|func|go(?:to)?|if|import|interface|map|package|range|return|select|struct|switch|type|var)\b/,boolean:/\b(?:_|false|iota|nil|true)\b/,number:[/\b0(?:b[01_]+|o[0-7_]+)i?\b/i,/\b0x(?:[a-f\d_]+(?:\.[a-f\d_]*)?|\.[a-f\d_]+)(?:p[+-]?\d+(?:_\d+)*)?i?(?!\w)/i,/(?:\b\d[\d_]*(?:\.[\d_]*)?|\B\.\d[\d_]*)(?:e[+-]?[\d_]+)?i?(?!\w)/i],operator:/[*\/%^!=]=?|\+[=+]?|-[=-]?|\|[=|]?|&(?:=|&|\^=?)?|>(?:>=?|=)?|<(?:<=?|=|-)?|:=|\.\.\./,builtin:/\b(?:append|bool|byte|cap|close|complex|complex(?:64|128)|copy|delete|error|float(?:32|64)|u?int(?:8|16|32|64)?|imag|len|make|new|panic|print(?:ln)?|real|recover|rune|string|uintptr)\b/}),t.languages.insertBefore("go","string",{char:{pattern:/'(?:\\.|[^'\\\r\n]){0,10}'/,greedy:!0}}),delete t.languages.go["class-name"]}return cM}var dM,z9;function D4e(){if(z9)return dM;z9=1,dM=e,e.displayName="graphql",e.aliases=[];function e(t){t.languages.graphql={comment:/#.*/,description:{pattern:/(?:"""(?:[^"]|(?!""")")*"""|"(?:\\.|[^\\"\r\n])*")(?=\s*[a-z_])/i,greedy:!0,alias:"string",inside:{"language-markdown":{pattern:/(^"(?:"")?)(?!\1)[\s\S]+(?=\1$)/,lookbehind:!0,inside:t.languages.markdown}}},string:{pattern:/"""(?:[^"]|(?!""")")*"""|"(?:\\.|[^\\"\r\n])*"/,greedy:!0},number:/(?:\B-|\b)\d+(?:\.\d+)?(?:e[+-]?\d+)?\b/i,boolean:/\b(?:false|true)\b/,variable:/\$[a-z_]\w*/i,directive:{pattern:/@[a-z_]\w*/i,alias:"function"},"attr-name":{pattern:/\b[a-z_]\w*(?=\s*(?:\((?:[^()"]|"(?:\\.|[^\\"\r\n])*")*\))?:)/i,greedy:!0},"atom-input":{pattern:/\b[A-Z]\w*Input\b/,alias:"class-name"},scalar:/\b(?:Boolean|Float|ID|Int|String)\b/,constant:/\b[A-Z][A-Z_\d]*\b/,"class-name":{pattern:/(\b(?:enum|implements|interface|on|scalar|type|union)\s+|&\s*|:\s*|\[)[A-Z_]\w*/,lookbehind:!0},fragment:{pattern:/(\bfragment\s+|\.{3}\s*(?!on\b))[a-zA-Z_]\w*/,lookbehind:!0,alias:"function"},"definition-mutation":{pattern:/(\bmutation\s+)[a-zA-Z_]\w*/,lookbehind:!0,alias:"function"},"definition-query":{pattern:/(\bquery\s+)[a-zA-Z_]\w*/,lookbehind:!0,alias:"function"},keyword:/\b(?:directive|enum|extend|fragment|implements|input|interface|mutation|on|query|repeatable|scalar|schema|subscription|type|union)\b/,operator:/[!=|&]|\.{3}/,"property-query":/\w+(?=\s*\()/,object:/\w+(?=\s*\{)/,punctuation:/[!(){}\[\]:=,]/,property:/\w+/},t.hooks.add("after-tokenize",function(r){if(r.language!=="graphql")return;var a=r.tokens.filter(function(C){return typeof C!="string"&&C.type!=="comment"&&C.type!=="scalar"}),i=0;function o(C){return a[i+C]}function l(C,k){k=k||0;for(var _=0;_0)){var v=u(/^\{$/,/^\}$/);if(v===-1)continue;for(var E=i;E=0&&d(T,"variable-input")}}}}})}return dM}var fM,q9;function $4e(){if(q9)return fM;q9=1,fM=e,e.displayName="groovy",e.aliases=[];function e(t){t.languages.groovy=t.languages.extend("clike",{string:[{pattern:/("""|''')(?:[^\\]|\\[\s\S])*?\1|\$\/(?:[^/$]|\$(?:[/$]|(?![/$]))|\/(?!\$))*\/\$/,greedy:!0},{pattern:/(["'/])(?:\\.|(?!\1)[^\\\r\n])*\1/,greedy:!0}],keyword:/\b(?:abstract|as|assert|boolean|break|byte|case|catch|char|class|const|continue|def|default|do|double|else|enum|extends|final|finally|float|for|goto|if|implements|import|in|instanceof|int|interface|long|native|new|package|private|protected|public|return|short|static|strictfp|super|switch|synchronized|this|throw|throws|trait|transient|try|void|volatile|while)\b/,number:/\b(?:0b[01_]+|0x[\da-f_]+(?:\.[\da-f_p\-]+)?|[\d_]+(?:\.[\d_]+)?(?:e[+-]?\d+)?)[glidf]?\b/i,operator:{pattern:/(^|[^.])(?:~|==?~?|\?[.:]?|\*(?:[.=]|\*=?)?|\.[@&]|\.\.<|\.\.(?!\.)|-[-=>]?|\+[+=]?|!=?|<(?:<=?|=>?)?|>(?:>>?=?|=)?|&[&=]?|\|[|=]?|\/=?|\^=?|%=?)/,lookbehind:!0},punctuation:/\.+|[{}[\];(),:$]/}),t.languages.insertBefore("groovy","string",{shebang:{pattern:/#!.+/,alias:"comment"}}),t.languages.insertBefore("groovy","punctuation",{"spock-block":/\b(?:and|cleanup|expect|given|setup|then|when|where):/}),t.languages.insertBefore("groovy","function",{annotation:{pattern:/(^|[^.])@\w+/,lookbehind:!0,alias:"punctuation"}}),t.hooks.add("wrap",function(n){if(n.language==="groovy"&&n.type==="string"){var r=n.content.value[0];if(r!="'"){var a=/([^\\])(?:\$(?:\{.*?\}|[\w.]+))/;r==="$"&&(a=/([^\$])(?:\$(?:\{.*?\}|[\w.]+))/),n.content.value=n.content.value.replace(/</g,"<").replace(/&/g,"&"),n.content=t.highlight(n.content.value,{expression:{pattern:a,lookbehind:!0,inside:t.languages.groovy}}),n.classes.push(r==="/"?"regex":"gstring")}}})}return fM}var pM,H9;function L4e(){if(H9)return pM;H9=1;var e=B_();pM=t,t.displayName="haml",t.aliases=[];function t(n){n.register(e),(function(r){r.languages.haml={"multiline-comment":{pattern:/((?:^|\r?\n|\r)([\t ]*))(?:\/|-#).*(?:(?:\r?\n|\r)\2[\t ].+)*/,lookbehind:!0,alias:"comment"},"multiline-code":[{pattern:/((?:^|\r?\n|\r)([\t ]*)(?:[~-]|[&!]?=)).*,[\t ]*(?:(?:\r?\n|\r)\2[\t ].*,[\t ]*)*(?:(?:\r?\n|\r)\2[\t ].+)/,lookbehind:!0,inside:r.languages.ruby},{pattern:/((?:^|\r?\n|\r)([\t ]*)(?:[~-]|[&!]?=)).*\|[\t ]*(?:(?:\r?\n|\r)\2[\t ].*\|[\t ]*)*/,lookbehind:!0,inside:r.languages.ruby}],filter:{pattern:/((?:^|\r?\n|\r)([\t ]*)):[\w-]+(?:(?:\r?\n|\r)(?:\2[\t ].+|\s*?(?=\r?\n|\r)))+/,lookbehind:!0,inside:{"filter-name":{pattern:/^:[\w-]+/,alias:"symbol"}}},markup:{pattern:/((?:^|\r?\n|\r)[\t ]*)<.+/,lookbehind:!0,inside:r.languages.markup},doctype:{pattern:/((?:^|\r?\n|\r)[\t ]*)!!!(?: .+)?/,lookbehind:!0},tag:{pattern:/((?:^|\r?\n|\r)[\t ]*)[%.#][\w\-#.]*[\w\-](?:\([^)]+\)|\{(?:\{[^}]+\}|[^{}])+\}|\[[^\]]+\])*[\/<>]*/,lookbehind:!0,inside:{attributes:[{pattern:/(^|[^#])\{(?:\{[^}]+\}|[^{}])+\}/,lookbehind:!0,inside:r.languages.ruby},{pattern:/\([^)]+\)/,inside:{"attr-value":{pattern:/(=\s*)(?:"(?:\\.|[^\\"\r\n])*"|[^)\s]+)/,lookbehind:!0},"attr-name":/[\w:-]+(?=\s*!?=|\s*[,)])/,punctuation:/[=(),]/}},{pattern:/\[[^\]]+\]/,inside:r.languages.ruby}],punctuation:/[<>]/}},code:{pattern:/((?:^|\r?\n|\r)[\t ]*(?:[~-]|[&!]?=)).+/,lookbehind:!0,inside:r.languages.ruby},interpolation:{pattern:/#\{[^}]+\}/,inside:{delimiter:{pattern:/^#\{|\}$/,alias:"punctuation"},ruby:{pattern:/[\s\S]+/,inside:r.languages.ruby}}},punctuation:{pattern:/((?:^|\r?\n|\r)[\t ]*)[~=\-&!]+/,lookbehind:!0}};for(var a="((?:^|\\r?\\n|\\r)([\\t ]*)):{{filter_name}}(?:(?:\\r?\\n|\\r)(?:\\2[\\t ].+|\\s*?(?=\\r?\\n|\\r)))+",i=["css",{filter:"coffee",language:"coffeescript"},"erb","javascript","less","markdown","ruby","scss","textile"],o={},l=0,u=i.length;l@\[\\\]^`{|}~]/,variable:/[^!"#%&'()*+,\/;<=>@\[\\\]^`{|}~\s]+/},r.hooks.add("before-tokenize",function(a){var i=/\{\{\{[\s\S]+?\}\}\}|\{\{[\s\S]+?\}\}/g;r.languages["markup-templating"].buildPlaceholders(a,"handlebars",i)}),r.hooks.add("after-tokenize",function(a){r.languages["markup-templating"].tokenizePlaceholders(a,"handlebars")}),r.languages.hbs=r.languages.handlebars})(n)}return hM}var mM,G9;function Kj(){if(G9)return mM;G9=1,mM=e,e.displayName="haskell",e.aliases=["hs"];function e(t){t.languages.haskell={comment:{pattern:/(^|[^-!#$%*+=?&@|~.:<>^\\\/])(?:--(?:(?=.)[^-!#$%*+=?&@|~.:<>^\\\/].*|$)|\{-[\s\S]*?-\})/m,lookbehind:!0},char:{pattern:/'(?:[^\\']|\\(?:[abfnrtv\\"'&]|\^[A-Z@[\]^_]|ACK|BEL|BS|CAN|CR|DC1|DC2|DC3|DC4|DEL|DLE|EM|ENQ|EOT|ESC|ETB|ETX|FF|FS|GS|HT|LF|NAK|NUL|RS|SI|SO|SOH|SP|STX|SUB|SYN|US|VT|\d+|o[0-7]+|x[0-9a-fA-F]+))'/,alias:"string"},string:{pattern:/"(?:[^\\"]|\\(?:\S|\s+\\))*"/,greedy:!0},keyword:/\b(?:case|class|data|deriving|do|else|if|in|infixl|infixr|instance|let|module|newtype|of|primitive|then|type|where)\b/,"import-statement":{pattern:/(^[\t ]*)import\s+(?:qualified\s+)?(?:[A-Z][\w']*)(?:\.[A-Z][\w']*)*(?:\s+as\s+(?:[A-Z][\w']*)(?:\.[A-Z][\w']*)*)?(?:\s+hiding\b)?/m,lookbehind:!0,inside:{keyword:/\b(?:as|hiding|import|qualified)\b/,punctuation:/\./}},builtin:/\b(?:abs|acos|acosh|all|and|any|appendFile|approxRational|asTypeOf|asin|asinh|atan|atan2|atanh|basicIORun|break|catch|ceiling|chr|compare|concat|concatMap|const|cos|cosh|curry|cycle|decodeFloat|denominator|digitToInt|div|divMod|drop|dropWhile|either|elem|encodeFloat|enumFrom|enumFromThen|enumFromThenTo|enumFromTo|error|even|exp|exponent|fail|filter|flip|floatDigits|floatRadix|floatRange|floor|fmap|foldl|foldl1|foldr|foldr1|fromDouble|fromEnum|fromInt|fromInteger|fromIntegral|fromRational|fst|gcd|getChar|getContents|getLine|group|head|id|inRange|index|init|intToDigit|interact|ioError|isAlpha|isAlphaNum|isAscii|isControl|isDenormalized|isDigit|isHexDigit|isIEEE|isInfinite|isLower|isNaN|isNegativeZero|isOctDigit|isPrint|isSpace|isUpper|iterate|last|lcm|length|lex|lexDigits|lexLitChar|lines|log|logBase|lookup|map|mapM|mapM_|max|maxBound|maximum|maybe|min|minBound|minimum|mod|negate|not|notElem|null|numerator|odd|or|ord|otherwise|pack|pi|pred|primExitWith|print|product|properFraction|putChar|putStr|putStrLn|quot|quotRem|range|rangeSize|read|readDec|readFile|readFloat|readHex|readIO|readInt|readList|readLitChar|readLn|readOct|readParen|readSigned|reads|readsPrec|realToFrac|recip|rem|repeat|replicate|return|reverse|round|scaleFloat|scanl|scanl1|scanr|scanr1|seq|sequence|sequence_|show|showChar|showInt|showList|showLitChar|showParen|showSigned|showString|shows|showsPrec|significand|signum|sin|sinh|snd|sort|span|splitAt|sqrt|subtract|succ|sum|tail|take|takeWhile|tan|tanh|threadToIOResult|toEnum|toInt|toInteger|toLower|toRational|toUpper|truncate|uncurry|undefined|unlines|until|unwords|unzip|unzip3|userError|words|writeFile|zip|zip3|zipWith|zipWith3)\b/,number:/\b(?:\d+(?:\.\d+)?(?:e[+-]?\d+)?|0o[0-7]+|0x[0-9a-f]+)\b/i,operator:[{pattern:/`(?:[A-Z][\w']*\.)*[_a-z][\w']*`/,greedy:!0},{pattern:/(\s)\.(?=\s)/,lookbehind:!0},/[-!#$%*+=?&@|~:<>^\\\/][-!#$%*+=?&@|~.:<>^\\\/]*|\.[-!#$%*+=?&@|~.:<>^\\\/]+/],hvariable:{pattern:/\b(?:[A-Z][\w']*\.)*[_a-z][\w']*/,inside:{punctuation:/\./}},constant:{pattern:/\b(?:[A-Z][\w']*\.)*[A-Z][\w']*/,inside:{punctuation:/\./}},punctuation:/[{}[\];(),.:]/},t.languages.hs=t.languages.haskell}return mM}var gM,Y9;function j4e(){if(Y9)return gM;Y9=1,gM=e,e.displayName="haxe",e.aliases=[];function e(t){t.languages.haxe=t.languages.extend("clike",{string:{pattern:/"(?:[^"\\]|\\[\s\S])*"/,greedy:!0},"class-name":[{pattern:/(\b(?:abstract|class|enum|extends|implements|interface|new|typedef)\s+)[A-Z_]\w*/,lookbehind:!0},/\b[A-Z]\w*/],keyword:/\bthis\b|\b(?:abstract|as|break|case|cast|catch|class|continue|default|do|dynamic|else|enum|extends|extern|final|for|from|function|if|implements|import|in|inline|interface|macro|new|null|operator|overload|override|package|private|public|return|static|super|switch|throw|to|try|typedef|untyped|using|var|while)(?!\.)\b/,function:{pattern:/\b[a-z_]\w*(?=\s*(?:<[^<>]*>\s*)?\()/i,greedy:!0},operator:/\.{3}|\+\+|--|&&|\|\||->|=>|(?:<{1,3}|[-+*/%!=&|^])=?|[?:~]/}),t.languages.insertBefore("haxe","string",{"string-interpolation":{pattern:/'(?:[^'\\]|\\[\s\S])*'/,greedy:!0,inside:{interpolation:{pattern:/(^|[^\\])\$(?:\w+|\{[^{}]+\})/,lookbehind:!0,inside:{"interpolation-punctuation":{pattern:/^\$\{?|\}$/,alias:"punctuation"},expression:{pattern:/[\s\S]+/,inside:t.languages.haxe}}},string:/[\s\S]+/}}}),t.languages.insertBefore("haxe","class-name",{regex:{pattern:/~\/(?:[^\/\\\r\n]|\\.)+\/[a-z]*/,greedy:!0,inside:{"regex-flags":/\b[a-z]+$/,"regex-source":{pattern:/^(~\/)[\s\S]+(?=\/$)/,lookbehind:!0,alias:"language-regex",inside:t.languages.regex},"regex-delimiter":/^~\/|\/$/}}}),t.languages.insertBefore("haxe","keyword",{preprocessor:{pattern:/#(?:else|elseif|end|if)\b.*/,alias:"property"},metadata:{pattern:/@:?[\w.]+/,alias:"symbol"},reification:{pattern:/\$(?:\w+|(?=\{))/,alias:"important"}})}return gM}var vM,K9;function U4e(){if(K9)return vM;K9=1,vM=e,e.displayName="hcl",e.aliases=[];function e(t){t.languages.hcl={comment:/(?:\/\/|#).*|\/\*[\s\S]*?(?:\*\/|$)/,heredoc:{pattern:/<<-?(\w+\b)[\s\S]*?^[ \t]*\1/m,greedy:!0,alias:"string"},keyword:[{pattern:/(?:data|resource)\s+(?:"(?:\\[\s\S]|[^\\"])*")(?=\s+"[\w-]+"\s+\{)/i,inside:{type:{pattern:/(resource|data|\s+)(?:"(?:\\[\s\S]|[^\\"])*")/i,lookbehind:!0,alias:"variable"}}},{pattern:/(?:backend|module|output|provider|provisioner|variable)\s+(?:[\w-]+|"(?:\\[\s\S]|[^\\"])*")\s+(?=\{)/i,inside:{type:{pattern:/(backend|module|output|provider|provisioner|variable)\s+(?:[\w-]+|"(?:\\[\s\S]|[^\\"])*")\s+/i,lookbehind:!0,alias:"variable"}}},/[\w-]+(?=\s+\{)/],property:[/[-\w\.]+(?=\s*=(?!=))/,/"(?:\\[\s\S]|[^\\"])+"(?=\s*[:=])/],string:{pattern:/"(?:[^\\$"]|\\[\s\S]|\$(?:(?=")|\$+(?!\$)|[^"${])|\$\{(?:[^{}"]|"(?:[^\\"]|\\[\s\S])*")*\})*"/,greedy:!0,inside:{interpolation:{pattern:/(^|[^$])\$\{(?:[^{}"]|"(?:[^\\"]|\\[\s\S])*")*\}/,lookbehind:!0,inside:{type:{pattern:/(\b(?:count|data|local|module|path|self|terraform|var)\b\.)[\w\*]+/i,lookbehind:!0,alias:"variable"},keyword:/\b(?:count|data|local|module|path|self|terraform|var)\b/i,function:/\w+(?=\()/,string:{pattern:/"(?:\\[\s\S]|[^\\"])*"/,greedy:!0},number:/\b0x[\da-f]+\b|\b\d+(?:\.\d*)?(?:e[+-]?\d+)?/i,punctuation:/[!\$#%&'()*+,.\/;<=>@\[\\\]^`{|}~?:]/}}}},number:/\b0x[\da-f]+\b|\b\d+(?:\.\d*)?(?:e[+-]?\d+)?/i,boolean:/\b(?:false|true)\b/i,punctuation:/[=\[\]{}]/}}return vM}var yM,X9;function B4e(){if(X9)return yM;X9=1;var e=Kv();yM=t,t.displayName="hlsl",t.aliases=[];function t(n){n.register(e),n.languages.hlsl=n.languages.extend("c",{"class-name":[n.languages.c["class-name"],/\b(?:AppendStructuredBuffer|BlendState|Buffer|ByteAddressBuffer|CompileShader|ComputeShader|ConsumeStructuredBuffer|DepthStencilState|DepthStencilView|DomainShader|GeometryShader|Hullshader|InputPatch|LineStream|OutputPatch|PixelShader|PointStream|RWBuffer|RWByteAddressBuffer|RWStructuredBuffer|RWTexture(?:1D|1DArray|2D|2DArray|3D)|RasterizerState|RenderTargetView|SamplerComparisonState|SamplerState|StructuredBuffer|Texture(?:1D|1DArray|2D|2DArray|2DMS|2DMSArray|3D|Cube|CubeArray)|TriangleStream|VertexShader)\b/],keyword:[/\b(?:asm|asm_fragment|auto|break|case|catch|cbuffer|centroid|char|class|column_major|compile|compile_fragment|const|const_cast|continue|default|delete|discard|do|dynamic_cast|else|enum|explicit|export|extern|for|friend|fxgroup|goto|groupshared|if|in|inline|inout|interface|line|lineadj|linear|long|matrix|mutable|namespace|new|nointerpolation|noperspective|operator|out|packoffset|pass|pixelfragment|point|precise|private|protected|public|register|reinterpret_cast|return|row_major|sample|sampler|shared|short|signed|sizeof|snorm|stateblock|stateblock_state|static|static_cast|string|struct|switch|tbuffer|technique|technique10|technique11|template|texture|this|throw|triangle|triangleadj|try|typedef|typename|uniform|union|unorm|unsigned|using|vector|vertexfragment|virtual|void|volatile|while)\b/,/\b(?:bool|double|dword|float|half|int|min(?:10float|12int|16(?:float|int|uint))|uint)(?:[1-4](?:x[1-4])?)?\b/],number:/(?:(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[eE][+-]?\d+)?|\b0x[\da-fA-F]+)[fFhHlLuU]?\b/,boolean:/\b(?:false|true)\b/})}return yM}var bM,Q9;function W4e(){if(Q9)return bM;Q9=1,bM=e,e.displayName="hoon",e.aliases=[];function e(t){t.languages.hoon={comment:{pattern:/::.*/,greedy:!0},string:{pattern:/"[^"]*"|'[^']*'/,greedy:!0},constant:/%(?:\.[ny]|[\w-]+)/,"class-name":/@(?:[a-z0-9-]*[a-z0-9])?|\*/i,function:/(?:\+[-+] {2})?(?:[a-z](?:[a-z0-9-]*[a-z0-9])?)/,keyword:/\.[\^\+\*=\?]|![><:\.=\?!]|=[>|:,\.\-\^<+;/~\*\?]|\?[>|:\.\-\^<\+&~=@!]|\|[\$_%:\.\-\^~\*=@\?]|\+[|\$\+\*]|:[_\-\^\+~\*]|%[_:\.\-\^\+~\*=]|\^[|:\.\-\+&~\*=\?]|\$[|_%:<>\-\^&~@=\?]|;[:<\+;\/~\*=]|~[>|\$_%<\+\/&=\?!]|--|==/}}return bM}var wM,J9;function z4e(){if(J9)return wM;J9=1,wM=e,e.displayName="hpkp",e.aliases=[];function e(t){t.languages.hpkp={directive:{pattern:/\b(?:includeSubDomains|max-age|pin-sha256|preload|report-to|report-uri|strict)(?=[\s;=]|$)/i,alias:"property"},operator:/=/,punctuation:/;/}}return wM}var SM,Z9;function q4e(){if(Z9)return SM;Z9=1,SM=e,e.displayName="hsts",e.aliases=[];function e(t){t.languages.hsts={directive:{pattern:/\b(?:includeSubDomains|max-age|preload)(?=[\s;=]|$)/i,alias:"property"},operator:/=/,punctuation:/;/}}return SM}var EM,eH;function H4e(){if(eH)return EM;eH=1,EM=e,e.displayName="http",e.aliases=[];function e(t){(function(n){function r(g){return RegExp("(^(?:"+g+"):[ ]*(?![ ]))[^]+","i")}n.languages.http={"request-line":{pattern:/^(?:CONNECT|DELETE|GET|HEAD|OPTIONS|PATCH|POST|PRI|PUT|SEARCH|TRACE)\s(?:https?:\/\/|\/)\S*\sHTTP\/[\d.]+/m,inside:{method:{pattern:/^[A-Z]+\b/,alias:"property"},"request-target":{pattern:/^(\s)(?:https?:\/\/|\/)\S*(?=\s)/,lookbehind:!0,alias:"url",inside:n.languages.uri},"http-version":{pattern:/^(\s)HTTP\/[\d.]+/,lookbehind:!0,alias:"property"}}},"response-status":{pattern:/^HTTP\/[\d.]+ \d+ .+/m,inside:{"http-version":{pattern:/^HTTP\/[\d.]+/,alias:"property"},"status-code":{pattern:/^(\s)\d+(?=\s)/,lookbehind:!0,alias:"number"},"reason-phrase":{pattern:/^(\s).+/,lookbehind:!0,alias:"string"}}},header:{pattern:/^[\w-]+:.+(?:(?:\r\n?|\n)[ \t].+)*/m,inside:{"header-value":[{pattern:r(/Content-Security-Policy/.source),lookbehind:!0,alias:["csp","languages-csp"],inside:n.languages.csp},{pattern:r(/Public-Key-Pins(?:-Report-Only)?/.source),lookbehind:!0,alias:["hpkp","languages-hpkp"],inside:n.languages.hpkp},{pattern:r(/Strict-Transport-Security/.source),lookbehind:!0,alias:["hsts","languages-hsts"],inside:n.languages.hsts},{pattern:r(/[^:]+/.source),lookbehind:!0}],"header-name":{pattern:/^[^:]+/,alias:"keyword"},punctuation:/^:/}}};var a=n.languages,i={"application/javascript":a.javascript,"application/json":a.json||a.javascript,"application/xml":a.xml,"text/xml":a.xml,"text/html":a.html,"text/css":a.css,"text/plain":a.plain},o={"application/json":!0,"application/xml":!0};function l(g){var y=g.replace(/^[a-z]+\//,""),h="\\w+/(?:[\\w.-]+\\+)+"+y+"(?![+\\w.-])";return"(?:"+g+"|"+h+")"}var u;for(var d in i)if(i[d]){u=u||{};var f=o[d]?l(d):d;u[d.replace(/\//g,"-")]={pattern:RegExp("("+/content-type:\s*/.source+f+/(?:(?:\r\n?|\n)[\w-].*)*(?:\r(?:\n|(?!\n))|\n)/.source+")"+/[^ \t\w-][\s\S]*/.source,"i"),lookbehind:!0,inside:i[d]}}u&&n.languages.insertBefore("http","header",u)})(t)}return EM}var TM,tH;function V4e(){if(tH)return TM;tH=1,TM=e,e.displayName="ichigojam",e.aliases=[];function e(t){t.languages.ichigojam={comment:/(?:\B'|REM)(?:[^\n\r]*)/i,string:{pattern:/"(?:""|[!#$%&'()*,\/:;<=>?^\w +\-.])*"/,greedy:!0},number:/\B#[0-9A-F]+|\B`[01]+|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:E[+-]?\d+)?/i,keyword:/\b(?:BEEP|BPS|CASE|CLEAR|CLK|CLO|CLP|CLS|CLT|CLV|CONT|COPY|ELSE|END|FILE|FILES|FOR|GOSUB|GOTO|GSB|IF|INPUT|KBD|LED|LET|LIST|LOAD|LOCATE|LRUN|NEW|NEXT|OUT|PLAY|POKE|PRINT|PWM|REM|RENUM|RESET|RETURN|RIGHT|RTN|RUN|SAVE|SCROLL|SLEEP|SRND|STEP|STOP|SUB|TEMPO|THEN|TO|UART|VIDEO|WAIT)(?:\$|\b)/i,function:/\b(?:ABS|ANA|ASC|BIN|BTN|DEC|END|FREE|HELP|HEX|I2CR|I2CW|IN|INKEY|LEN|LINE|PEEK|RND|SCR|SOUND|STR|TICK|USR|VER|VPEEK|ZER)(?:\$|\b)/i,label:/(?:\B@\S+)/,operator:/<[=>]?|>=?|\|\||&&|[+\-*\/=|&^~!]|\b(?:AND|NOT|OR)\b/i,punctuation:/[\[,;:()\]]/}}return TM}var CM,nH;function G4e(){if(nH)return CM;nH=1,CM=e,e.displayName="icon",e.aliases=[];function e(t){t.languages.icon={comment:/#.*/,string:{pattern:/(["'])(?:(?!\1)[^\\\r\n_]|\\.|_(?!\1)(?:\r\n|[\s\S]))*\1/,greedy:!0},number:/\b(?:\d+r[a-z\d]+|\d+(?:\.\d+)?(?:e[+-]?\d+)?)\b|\.\d+\b/i,"builtin-keyword":{pattern:/&(?:allocated|ascii|clock|collections|cset|current|date|dateline|digits|dump|e|error(?:number|text|value)?|errout|fail|features|file|host|input|lcase|letters|level|line|main|null|output|phi|pi|pos|progname|random|regions|source|storage|subject|time|trace|ucase|version)\b/,alias:"variable"},directive:{pattern:/\$\w+/,alias:"builtin"},keyword:/\b(?:break|by|case|create|default|do|else|end|every|fail|global|if|initial|invocable|link|local|next|not|of|procedure|record|repeat|return|static|suspend|then|to|until|while)\b/,function:/\b(?!\d)\w+(?=\s*[({]|\s*!\s*\[)/,operator:/[+-]:(?!=)|(?:[\/?@^%&]|\+\+?|--?|==?=?|~==?=?|\*\*?|\|\|\|?|<(?:->?|>?=?)(?::=)?|:(?:=:?)?|[!.\\|~]/,punctuation:/[\[\](){},;]/}}return CM}var kM,rH;function Y4e(){if(rH)return kM;rH=1,kM=e,e.displayName="icuMessageFormat",e.aliases=[];function e(t){(function(n){function r(d,f){return f<=0?/[]/.source:d.replace(//g,function(){return r(d,f-1)})}var a=/'[{}:=,](?:[^']|'')*'(?!')/,i={pattern:/''/,greedy:!0,alias:"operator"},o={pattern:a,greedy:!0,inside:{escape:i}},l=r(/\{(?:[^{}']|'(?![{},'])|''||)*\}/.source.replace(//g,function(){return a.source}),8),u={pattern:RegExp(l),inside:{message:{pattern:/^(\{)[\s\S]+(?=\}$)/,lookbehind:!0,inside:null},"message-delimiter":{pattern:/./,alias:"punctuation"}}};n.languages["icu-message-format"]={argument:{pattern:RegExp(l),greedy:!0,inside:{content:{pattern:/^(\{)[\s\S]+(?=\}$)/,lookbehind:!0,inside:{"argument-name":{pattern:/^(\s*)[^{}:=,\s]+/,lookbehind:!0},"choice-style":{pattern:/^(\s*,\s*choice\s*,\s*)\S(?:[\s\S]*\S)?/,lookbehind:!0,inside:{punctuation:/\|/,range:{pattern:/^(\s*)[+-]?(?:\d+(?:\.\d*)?|\u221e)\s*[<#\u2264]/,lookbehind:!0,inside:{operator:/[<#\u2264]/,number:/\S+/}},rest:null}},"plural-style":{pattern:/^(\s*,\s*(?:plural|selectordinal)\s*,\s*)\S(?:[\s\S]*\S)?/,lookbehind:!0,inside:{offset:/^offset:\s*\d+/,"nested-message":u,selector:{pattern:/=\d+|[^{}:=,\s]+/,inside:{keyword:/^(?:few|many|one|other|two|zero)$/}}}},"select-style":{pattern:/^(\s*,\s*select\s*,\s*)\S(?:[\s\S]*\S)?/,lookbehind:!0,inside:{"nested-message":u,selector:{pattern:/[^{}:=,\s]+/,inside:{keyword:/^other$/}}}},keyword:/\b(?:choice|plural|select|selectordinal)\b/,"arg-type":{pattern:/\b(?:date|duration|number|ordinal|spellout|time)\b/,alias:"keyword"},"arg-skeleton":{pattern:/(,\s*)::[^{}:=,\s]+/,lookbehind:!0},"arg-style":{pattern:/(,\s*)(?:currency|full|integer|long|medium|percent|short)(?=\s*$)/,lookbehind:!0},"arg-style-text":{pattern:RegExp(/(^\s*,\s*(?=\S))/.source+r(/(?:[^{}']|'[^']*'|\{(?:)?\})+/.source,8)+"$"),lookbehind:!0,alias:"string"},punctuation:/,/}},"argument-delimiter":{pattern:/./,alias:"operator"}}},escape:i,string:o},u.inside.message.inside=n.languages["icu-message-format"],n.languages["icu-message-format"].argument.inside.content.inside["choice-style"].inside.rest=n.languages["icu-message-format"]})(t)}return kM}var xM,aH;function K4e(){if(aH)return xM;aH=1;var e=Kj();xM=t,t.displayName="idris",t.aliases=["idr"];function t(n){n.register(e),n.languages.idris=n.languages.extend("haskell",{comment:{pattern:/(?:(?:--|\|\|\|).*$|\{-[\s\S]*?-\})/m},keyword:/\b(?:Type|case|class|codata|constructor|corecord|data|do|dsl|else|export|if|implementation|implicit|import|impossible|in|infix|infixl|infixr|instance|interface|let|module|mutual|namespace|of|parameters|partial|postulate|private|proof|public|quoteGoal|record|rewrite|syntax|then|total|using|where|with)\b/,builtin:void 0}),n.languages.insertBefore("idris","keyword",{"import-statement":{pattern:/(^\s*import\s+)(?:[A-Z][\w']*)(?:\.[A-Z][\w']*)*/m,lookbehind:!0,inside:{punctuation:/\./}}}),n.languages.idr=n.languages.idris}return xM}var _M,iH;function X4e(){if(iH)return _M;iH=1,_M=e,e.displayName="iecst",e.aliases=[];function e(t){t.languages.iecst={comment:[{pattern:/(^|[^\\])(?:\/\*[\s\S]*?(?:\*\/|$)|\(\*[\s\S]*?(?:\*\)|$)|\{[\s\S]*?(?:\}|$))/,lookbehind:!0,greedy:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],string:{pattern:/(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,greedy:!0},keyword:[/\b(?:END_)?(?:PROGRAM|CONFIGURATION|INTERFACE|FUNCTION_BLOCK|FUNCTION|ACTION|TRANSITION|TYPE|STRUCT|(?:INITIAL_)?STEP|NAMESPACE|LIBRARY|CHANNEL|FOLDER|RESOURCE|VAR_(?:ACCESS|CONFIG|EXTERNAL|GLOBAL|INPUT|IN_OUT|OUTPUT|TEMP)|VAR|METHOD|PROPERTY)\b/i,/\b(?:AT|BY|(?:END_)?(?:CASE|FOR|IF|REPEAT|WHILE)|CONSTANT|CONTINUE|DO|ELSE|ELSIF|EXIT|EXTENDS|FROM|GET|GOTO|IMPLEMENTS|JMP|NON_RETAIN|OF|PRIVATE|PROTECTED|PUBLIC|RETAIN|RETURN|SET|TASK|THEN|TO|UNTIL|USING|WITH|__CATCH|__ENDTRY|__FINALLY|__TRY)\b/],"class-name":/\b(?:ANY|ARRAY|BOOL|BYTE|U?(?:D|L|S)?INT|(?:D|L)?WORD|DATE(?:_AND_TIME)?|DT|L?REAL|POINTER|STRING|TIME(?:_OF_DAY)?|TOD)\b/,address:{pattern:/%[IQM][XBWDL][\d.]*|%[IQ][\d.]*/,alias:"symbol"},number:/\b(?:16#[\da-f]+|2#[01_]+|0x[\da-f]+)\b|\b(?:D|DT|T|TOD)#[\d_shmd:]*|\b[A-Z]*#[\d.,_]*|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?/i,boolean:/\b(?:FALSE|NULL|TRUE)\b/,operator:/S?R?:?=>?|&&?|\*\*?|<[=>]?|>=?|[-:^/+#]|\b(?:AND|EQ|EXPT|GE|GT|LE|LT|MOD|NE|NOT|OR|XOR)\b/,function:/\b[a-z_]\w*(?=\s*\()/i,punctuation:/[()[\].,;]/}}return _M}var OM,oH;function Q4e(){if(oH)return OM;oH=1,OM=e,e.displayName="ignore",e.aliases=["gitignore","hgignore","npmignore"];function e(t){(function(n){n.languages.ignore={comment:/^#.*/m,entry:{pattern:/\S(?:.*(?:(?:\\ )|\S))?/,alias:"string",inside:{operator:/^!|\*\*?|\?/,regex:{pattern:/(^|[^\\])\[[^\[\]]*\]/,lookbehind:!0},punctuation:/\//}}},n.languages.gitignore=n.languages.ignore,n.languages.hgignore=n.languages.ignore,n.languages.npmignore=n.languages.ignore})(t)}return OM}var RM,sH;function J4e(){if(sH)return RM;sH=1,RM=e,e.displayName="inform7",e.aliases=[];function e(t){t.languages.inform7={string:{pattern:/"[^"]*"/,inside:{substitution:{pattern:/\[[^\[\]]+\]/,inside:{delimiter:{pattern:/\[|\]/,alias:"punctuation"}}}}},comment:{pattern:/\[[^\[\]]+\]/,greedy:!0},title:{pattern:/^[ \t]*(?:book|chapter|part(?! of)|section|table|volume)\b.+/im,alias:"important"},number:{pattern:/(^|[^-])(?:\b\d+(?:\.\d+)?(?:\^\d+)?(?:(?!\d)\w+)?|\b(?:eight|eleven|five|four|nine|one|seven|six|ten|three|twelve|two))\b(?!-)/i,lookbehind:!0},verb:{pattern:/(^|[^-])\b(?:answering|applying to|are|asking|attacking|be(?:ing)?|burning|buying|called|carries|carry(?! out)|carrying|climbing|closing|conceal(?:ing|s)?|consulting|contain(?:ing|s)?|cutting|drinking|dropping|eating|enclos(?:es?|ing)|entering|examining|exiting|getting|giving|going|ha(?:s|ve|ving)|hold(?:ing|s)?|impl(?:ies|y)|incorporat(?:es?|ing)|inserting|is|jumping|kissing|listening|locking|looking|mean(?:ing|s)?|opening|provid(?:es?|ing)|pulling|pushing|putting|relat(?:es?|ing)|removing|searching|see(?:ing|s)?|setting|showing|singing|sleeping|smelling|squeezing|support(?:ing|s)?|swearing|switching|taking|tasting|telling|thinking|throwing|touching|turning|tying|unlock(?:ing|s)?|var(?:ies|y|ying)|waiting|waking|waving|wear(?:ing|s)?)\b(?!-)/i,lookbehind:!0,alias:"operator"},keyword:{pattern:/(^|[^-])\b(?:after|before|carry out|check|continue the action|definition(?= *:)|do nothing|else|end (?:if|the story|unless)|every turn|if|include|instead(?: of)?|let|move|no|now|otherwise|repeat|report|resume the story|rule for|running through|say(?:ing)?|stop the action|test|try(?:ing)?|understand|unless|use|when|while|yes)\b(?!-)/i,lookbehind:!0},property:{pattern:/(^|[^-])\b(?:adjacent(?! to)|carried|closed|concealed|contained|dark|described|edible|empty|enclosed|enterable|even|female|fixed in place|full|handled|held|improper-named|incorporated|inedible|invisible|lighted|lit|lock(?:able|ed)|male|marked for listing|mentioned|negative|neuter|non-(?:empty|full|recurring)|odd|opaque|open(?:able)?|plural-named|portable|positive|privately-named|proper-named|provided|publically-named|pushable between rooms|recurring|related|rubbing|scenery|seen|singular-named|supported|swinging|switch(?:able|ed(?: off| on)?)|touch(?:able|ed)|transparent|unconcealed|undescribed|unlit|unlocked|unmarked for listing|unmentioned|unopenable|untouchable|unvisited|variable|visible|visited|wearable|worn)\b(?!-)/i,lookbehind:!0,alias:"symbol"},position:{pattern:/(^|[^-])\b(?:above|adjacent to|back side of|below|between|down|east|everywhere|front side|here|in|inside(?: from)?|north(?:east|west)?|nowhere|on(?: top of)?|other side|outside(?: from)?|parts? of|regionally in|south(?:east|west)?|through|up|west|within)\b(?!-)/i,lookbehind:!0,alias:"keyword"},type:{pattern:/(^|[^-])\b(?:actions?|activit(?:ies|y)|actors?|animals?|backdrops?|containers?|devices?|directions?|doors?|holders?|kinds?|lists?|m[ae]n|nobody|nothing|nouns?|numbers?|objects?|people|persons?|player(?:'s holdall)?|regions?|relations?|rooms?|rule(?:book)?s?|scenes?|someone|something|supporters?|tables?|texts?|things?|time|vehicles?|wom[ae]n)\b(?!-)/i,lookbehind:!0,alias:"variable"},punctuation:/[.,:;(){}]/},t.languages.inform7.string.inside.substitution.inside.rest=t.languages.inform7,t.languages.inform7.string.inside.substitution.inside.rest.text={pattern:/\S(?:\s*\S)*/,alias:"comment"}}return RM}var PM,lH;function Z4e(){if(lH)return PM;lH=1,PM=e,e.displayName="ini",e.aliases=[];function e(t){t.languages.ini={comment:{pattern:/(^[ \f\t\v]*)[#;][^\n\r]*/m,lookbehind:!0},section:{pattern:/(^[ \f\t\v]*)\[[^\n\r\]]*\]?/m,lookbehind:!0,inside:{"section-name":{pattern:/(^\[[ \f\t\v]*)[^ \f\t\v\]]+(?:[ \f\t\v]+[^ \f\t\v\]]+)*/,lookbehind:!0,alias:"selector"},punctuation:/\[|\]/}},key:{pattern:/(^[ \f\t\v]*)[^ \f\n\r\t\v=]+(?:[ \f\t\v]+[^ \f\n\r\t\v=]+)*(?=[ \f\t\v]*=)/m,lookbehind:!0,alias:"attr-name"},value:{pattern:/(=[ \f\t\v]*)[^ \f\n\r\t\v]+(?:[ \f\t\v]+[^ \f\n\r\t\v]+)*/,lookbehind:!0,alias:"attr-value",inside:{"inner-value":{pattern:/^("|').+(?=\1$)/,lookbehind:!0}}},punctuation:/=/}}return PM}var AM,uH;function eUe(){if(uH)return AM;uH=1,AM=e,e.displayName="io",e.aliases=[];function e(t){t.languages.io={comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?(?:\*\/|$)|\/\/.*|#.*)/,lookbehind:!0,greedy:!0},"triple-quoted-string":{pattern:/"""(?:\\[\s\S]|(?!""")[^\\])*"""/,greedy:!0,alias:"string"},string:{pattern:/"(?:\\.|[^\\\r\n"])*"/,greedy:!0},keyword:/\b(?:activate|activeCoroCount|asString|block|break|call|catch|clone|collectGarbage|compileString|continue|do|doFile|doMessage|doString|else|elseif|exit|for|foreach|forward|getEnvironmentVariable|getSlot|hasSlot|if|ifFalse|ifNil|ifNilEval|ifTrue|isActive|isNil|isResumable|list|message|method|parent|pass|pause|perform|performWithArgList|print|println|proto|raise|raiseResumable|removeSlot|resend|resume|schedulerSleepSeconds|self|sender|setSchedulerSleepSeconds|setSlot|shallowCopy|slotNames|super|system|then|thisBlock|thisContext|try|type|uniqueId|updateSlot|wait|while|write|yield)\b/,builtin:/\b(?:Array|AudioDevice|AudioMixer|BigNum|Block|Box|Buffer|CFunction|CGI|Color|Curses|DBM|DNSResolver|DOConnection|DOProxy|DOServer|Date|Directory|Duration|DynLib|Error|Exception|FFT|File|Fnmatch|Font|Future|GL|GLE|GLScissor|GLU|GLUCylinder|GLUQuadric|GLUSphere|GLUT|Host|Image|Importer|LinkList|List|Lobby|Locals|MD5|MP3Decoder|MP3Encoder|Map|Message|Movie|Notification|Number|Object|OpenGL|Point|Protos|Random|Regex|SGML|SGMLElement|SGMLParser|SQLite|Sequence|Server|ShowMessage|SleepyCat|SleepyCatCursor|Socket|SocketManager|Sound|Soup|Store|String|Tree|UDPSender|UPDReceiver|URL|User|Warning|WeakLink)\b/,boolean:/\b(?:false|nil|true)\b/,number:/\b0x[\da-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e-?\d+)?/i,operator:/[=!*/%+\-^&|]=|>>?=?|<+*\-%$|,#][.:]?|[?^]\.?|[;\[]:?|[~}"i][.:]|[ACeEIjLor]\.|(?:[_\/\\qsux]|_?\d):)/,alias:"keyword"},number:/\b_?(?:(?!\d:)\d+(?:\.\d+)?(?:(?:ad|ar|[ejpx])_?\d+(?:\.\d+)?)*(?:b_?[\da-z]+(?:\.[\da-z]+)?)?|_\b(?!\.))/,adverb:{pattern:/[~}]|[\/\\]\.?|[bfM]\.|t[.:]/,alias:"builtin"},operator:/[=a][.:]|_\./,conjunction:{pattern:/&(?:\.:?|:)?|[.:@][.:]?|[!D][.:]|[;dHT]\.|`:?|[\^LS]:|"/,alias:"variable"},punctuation:/[()]/}}return NM}var MM,dH;function Xj(){if(dH)return MM;dH=1,MM=e,e.displayName="java",e.aliases=[];function e(t){(function(n){var r=/\b(?:abstract|assert|boolean|break|byte|case|catch|char|class|const|continue|default|do|double|else|enum|exports|extends|final|finally|float|for|goto|if|implements|import|instanceof|int|interface|long|module|native|new|non-sealed|null|open|opens|package|permits|private|protected|provides|public|record|requires|return|sealed|short|static|strictfp|super|switch|synchronized|this|throw|throws|to|transient|transitive|try|uses|var|void|volatile|while|with|yield)\b/,a=/(^|[^\w.])(?:[a-z]\w*\s*\.\s*)*(?:[A-Z]\w*\s*\.\s*)*/.source,i={pattern:RegExp(a+/[A-Z](?:[\d_A-Z]*[a-z]\w*)?\b/.source),lookbehind:!0,inside:{namespace:{pattern:/^[a-z]\w*(?:\s*\.\s*[a-z]\w*)*(?:\s*\.)?/,inside:{punctuation:/\./}},punctuation:/\./}};n.languages.java=n.languages.extend("clike",{string:{pattern:/(^|[^\\])"(?:\\.|[^"\\\r\n])*"/,lookbehind:!0,greedy:!0},"class-name":[i,{pattern:RegExp(a+/[A-Z]\w*(?=\s+\w+\s*[;,=()])/.source),lookbehind:!0,inside:i.inside}],keyword:r,function:[n.languages.clike.function,{pattern:/(::\s*)[a-z_]\w*/,lookbehind:!0}],number:/\b0b[01][01_]*L?\b|\b0x(?:\.[\da-f_p+-]+|[\da-f_]+(?:\.[\da-f_p+-]+)?)\b|(?:\b\d[\d_]*(?:\.[\d_]*)?|\B\.\d[\d_]*)(?:e[+-]?\d[\d_]*)?[dfl]?/i,operator:{pattern:/(^|[^.])(?:<<=?|>>>?=?|->|--|\+\+|&&|\|\||::|[?:~]|[-+*/%&|^!=<>]=?)/m,lookbehind:!0}}),n.languages.insertBefore("java","string",{"triple-quoted-string":{pattern:/"""[ \t]*[\r\n](?:(?:"|"")?(?:\\.|[^"\\]))*"""/,greedy:!0,alias:"string"},char:{pattern:/'(?:\\.|[^'\\\r\n]){1,6}'/,greedy:!0}}),n.languages.insertBefore("java","class-name",{annotation:{pattern:/(^|[^.])@\w+(?:\s*\.\s*\w+)*/,lookbehind:!0,alias:"punctuation"},generics:{pattern:/<(?:[\w\s,.?]|&(?!&)|<(?:[\w\s,.?]|&(?!&)|<(?:[\w\s,.?]|&(?!&)|<(?:[\w\s,.?]|&(?!&))*>)*>)*>)*>/,inside:{"class-name":i,keyword:r,punctuation:/[<>(),.:]/,operator:/[?&|]/}},namespace:{pattern:RegExp(/(\b(?:exports|import(?:\s+static)?|module|open|opens|package|provides|requires|to|transitive|uses|with)\s+)(?!)[a-z]\w*(?:\.[a-z]\w*)*\.?/.source.replace(//g,function(){return r.source})),lookbehind:!0,inside:{punctuation:/\./}}})})(t)}return MM}var IM,fH;function W_(){if(fH)return IM;fH=1,IM=e,e.displayName="javadoclike",e.aliases=[];function e(t){(function(n){var r=n.languages.javadoclike={parameter:{pattern:/(^[\t ]*(?:\/{3}|\*|\/\*\*)\s*@(?:arg|arguments|param)\s+)\w+/m,lookbehind:!0},keyword:{pattern:/(^[\t ]*(?:\/{3}|\*|\/\*\*)\s*|\{)@[a-z][a-zA-Z-]+\b/m,lookbehind:!0},punctuation:/[{}]/};function a(o,l){var u="doc-comment",d=n.languages[o];if(d){var f=d[u];if(!f){var g={};g[u]={pattern:/(^|[^\\])\/\*\*[^/][\s\S]*?(?:\*\/|$)/,lookbehind:!0,alias:"comment"},d=n.languages.insertBefore(o,"comment",g),f=d[u]}if(f instanceof RegExp&&(f=d[u]={pattern:f}),Array.isArray(f))for(var y=0,h=f.length;y)?|/.source.replace(//g,function(){return o});a.languages.javadoc=a.languages.extend("javadoclike",{}),a.languages.insertBefore("javadoc","keyword",{reference:{pattern:RegExp(/(@(?:exception|link|linkplain|see|throws|value)\s+(?:\*\s*)?)/.source+"(?:"+l+")"),lookbehind:!0,inside:{function:{pattern:/(#\s*)\w+(?=\s*\()/,lookbehind:!0},field:{pattern:/(#\s*)\w+/,lookbehind:!0},namespace:{pattern:/\b(?:[a-z]\w*\s*\.\s*)+/,inside:{punctuation:/\./}},"class-name":/\b[A-Z]\w*/,keyword:a.languages.java.keyword,punctuation:/[#()[\],.]/}},"class-name":{pattern:/(@param\s+)<[A-Z]\w*>/,lookbehind:!0,inside:{punctuation:/[.<>]/}},"code-section":[{pattern:/(\{@code\s+(?!\s))(?:[^\s{}]|\s+(?![\s}])|\{(?:[^{}]|\{(?:[^{}]|\{(?:[^{}]|\{[^{}]*\})*\})*\})*\})+(?=\s*\})/,lookbehind:!0,inside:{code:{pattern:i,lookbehind:!0,inside:a.languages.java,alias:"language-java"}}},{pattern:/(<(code|pre|tt)>(?!)\s*)\S(?:\S|\s+\S)*?(?=\s*<\/\2>)/,lookbehind:!0,inside:{line:{pattern:i,lookbehind:!0,inside:{tag:a.languages.markup.tag,entity:a.languages.markup.entity,code:{pattern:/.+/,inside:a.languages.java,alias:"language-java"}}}}}],tag:a.languages.markup.tag,entity:a.languages.markup.entity}),a.languages.javadoclike.addSupport("java",a.languages.javadoc)})(r)}return DM}var $M,hH;function rUe(){if(hH)return $M;hH=1,$M=e,e.displayName="javastacktrace",e.aliases=[];function e(t){t.languages.javastacktrace={summary:{pattern:/^([\t ]*)(?:(?:Caused by:|Suppressed:|Exception in thread "[^"]*")[\t ]+)?[\w$.]+(?::.*)?$/m,lookbehind:!0,inside:{keyword:{pattern:/^([\t ]*)(?:(?:Caused by|Suppressed)(?=:)|Exception in thread)/m,lookbehind:!0},string:{pattern:/^(\s*)"[^"]*"/,lookbehind:!0},exceptions:{pattern:/^(:?\s*)[\w$.]+(?=:|$)/,lookbehind:!0,inside:{"class-name":/[\w$]+$/,namespace:/\b[a-z]\w*\b/,punctuation:/\./}},message:{pattern:/(:\s*)\S.*/,lookbehind:!0,alias:"string"},punctuation:/:/}},"stack-frame":{pattern:/^([\t ]*)at (?:[\w$./]|@[\w$.+-]*\/)+(?:)?\([^()]*\)/m,lookbehind:!0,inside:{keyword:{pattern:/^(\s*)at(?= )/,lookbehind:!0},source:[{pattern:/(\()\w+\.\w+:\d+(?=\))/,lookbehind:!0,inside:{file:/^\w+\.\w+/,punctuation:/:/,"line-number":{pattern:/\b\d+\b/,alias:"number"}}},{pattern:/(\()[^()]*(?=\))/,lookbehind:!0,inside:{keyword:/^(?:Native Method|Unknown Source)$/}}],"class-name":/[\w$]+(?=\.(?:|[\w$]+)\()/,function:/(?:|[\w$]+)(?=\()/,"class-loader":{pattern:/(\s)[a-z]\w*(?:\.[a-z]\w*)*(?=\/[\w@$.]*\/)/,lookbehind:!0,alias:"namespace",inside:{punctuation:/\./}},module:{pattern:/([\s/])[a-z]\w*(?:\.[a-z]\w*)*(?:@[\w$.+-]*)?(?=\/)/,lookbehind:!0,inside:{version:{pattern:/(@)[\s\S]+/,lookbehind:!0,alias:"number"},punctuation:/[@.]/}},namespace:{pattern:/(?:\b[a-z]\w*\.)+/,inside:{punctuation:/\./}},punctuation:/[()/.]/}},more:{pattern:/^([\t ]*)\.{3} \d+ [a-z]+(?: [a-z]+)*/m,lookbehind:!0,inside:{punctuation:/\.{3}/,number:/\d+/,keyword:/\b[a-z]+(?: [a-z]+)*\b/}}}}return $M}var LM,mH;function aUe(){if(mH)return LM;mH=1,LM=e,e.displayName="jexl",e.aliases=[];function e(t){t.languages.jexl={string:/(["'])(?:\\[\s\S]|(?!\1)[^\\])*\1/,transform:{pattern:/(\|\s*)[a-zA-Zа-яА-Я_\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u00FF$][\wа-яА-Я\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u00FF$]*/,alias:"function",lookbehind:!0},function:/[a-zA-Zа-яА-Я_\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u00FF$][\wа-яА-Я\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u00FF$]*\s*(?=\()/,number:/\b\d+(?:\.\d+)?\b|\B\.\d+\b/,operator:/[<>!]=?|-|\+|&&|==|\|\|?|\/\/?|[?:*^%]/,boolean:/\b(?:false|true)\b/,keyword:/\bin\b/,punctuation:/[{}[\](),.]/}}return LM}var FM,gH;function iUe(){if(gH)return FM;gH=1,FM=e,e.displayName="jolie",e.aliases=[];function e(t){t.languages.jolie=t.languages.extend("clike",{string:{pattern:/(^|[^\\])"(?:\\[\s\S]|[^"\\])*"/,lookbehind:!0,greedy:!0},"class-name":{pattern:/((?:\b(?:as|courier|embed|in|inputPort|outputPort|service)\b|@)[ \t]*)\w+/,lookbehind:!0},keyword:/\b(?:as|cH|comp|concurrent|constants|courier|cset|csets|default|define|else|embed|embedded|execution|exit|extender|for|foreach|forward|from|global|if|import|in|include|init|inputPort|install|instanceof|interface|is_defined|linkIn|linkOut|main|new|nullProcess|outputPort|over|private|provide|public|scope|sequential|service|single|spawn|synchronized|this|throw|throws|type|undef|until|while|with)\b/,function:/\b[a-z_]\w*(?=[ \t]*[@(])/i,number:/(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?l?/i,operator:/-[-=>]?|\+[+=]?|<[<=]?|[>=*!]=?|&&|\|\||[?\/%^@|]/,punctuation:/[()[\]{},;.:]/,builtin:/\b(?:Byte|any|bool|char|double|enum|float|int|length|long|ranges|regex|string|undefined|void)\b/}),t.languages.insertBefore("jolie","keyword",{aggregates:{pattern:/(\bAggregates\s*:\s*)(?:\w+(?:\s+with\s+\w+)?\s*,\s*)*\w+(?:\s+with\s+\w+)?/,lookbehind:!0,inside:{keyword:/\bwith\b/,"class-name":/\w+/,punctuation:/,/}},redirects:{pattern:/(\bRedirects\s*:\s*)(?:\w+\s*=>\s*\w+\s*,\s*)*(?:\w+\s*=>\s*\w+)/,lookbehind:!0,inside:{punctuation:/,/,"class-name":/\w+/,operator:/=>/}},property:{pattern:/\b(?:Aggregates|[Ii]nterfaces|Java|Javascript|Jolie|[Ll]ocation|OneWay|[Pp]rotocol|Redirects|RequestResponse)\b(?=[ \t]*:)/}})}return FM}var jM,vH;function oUe(){if(vH)return jM;vH=1,jM=e,e.displayName="jq",e.aliases=[];function e(t){(function(n){var r=/\\\((?:[^()]|\([^()]*\))*\)/.source,a=RegExp(/(^|[^\\])"(?:[^"\r\n\\]|\\[^\r\n(]|__)*"/.source.replace(/__/g,function(){return r})),i={interpolation:{pattern:RegExp(/((?:^|[^\\])(?:\\{2})*)/.source+r),lookbehind:!0,inside:{content:{pattern:/^(\\\()[\s\S]+(?=\)$)/,lookbehind:!0,inside:null},punctuation:/^\\\(|\)$/}}},o=n.languages.jq={comment:/#.*/,property:{pattern:RegExp(a.source+/(?=\s*:(?!:))/.source),lookbehind:!0,greedy:!0,inside:i},string:{pattern:a,lookbehind:!0,greedy:!0,inside:i},function:{pattern:/(\bdef\s+)[a-z_]\w+/i,lookbehind:!0},variable:/\B\$\w+/,"property-literal":{pattern:/\b[a-z_]\w*(?=\s*:(?!:))/i,alias:"property"},keyword:/\b(?:as|break|catch|def|elif|else|end|foreach|if|import|include|label|module|modulemeta|null|reduce|then|try|while)\b/,boolean:/\b(?:false|true)\b/,number:/(?:\b\d+\.|\B\.)?\b\d+(?:[eE][+-]?\d+)?\b/,operator:[{pattern:/\|=?/,alias:"pipe"},/\.\.|[!=<>]?=|\?\/\/|\/\/=?|[-+*/%]=?|[<>?]|\b(?:and|not|or)\b/],"c-style-function":{pattern:/\b[a-z_]\w*(?=\s*\()/i,alias:"function"},punctuation:/::|[()\[\]{},:;]|\.(?=\s*[\[\w$])/,dot:{pattern:/\./,alias:"important"}};i.interpolation.inside.content.inside=o})(t)}return jM}var UM,yH;function sUe(){if(yH)return UM;yH=1,UM=e,e.displayName="jsExtras",e.aliases=[];function e(t){(function(n){n.languages.insertBefore("javascript","function-variable",{"method-variable":{pattern:RegExp("(\\.\\s*)"+n.languages.javascript["function-variable"].pattern.source),lookbehind:!0,alias:["function-variable","method","function","property-access"]}}),n.languages.insertBefore("javascript","function",{method:{pattern:RegExp("(\\.\\s*)"+n.languages.javascript.function.source),lookbehind:!0,alias:["function","property-access"]}}),n.languages.insertBefore("javascript","constant",{"known-class-name":[{pattern:/\b(?:(?:Float(?:32|64)|(?:Int|Uint)(?:8|16|32)|Uint8Clamped)?Array|ArrayBuffer|BigInt|Boolean|DataView|Date|Error|Function|Intl|JSON|(?:Weak)?(?:Map|Set)|Math|Number|Object|Promise|Proxy|Reflect|RegExp|String|Symbol|WebAssembly)\b/,alias:"class-name"},{pattern:/\b(?:[A-Z]\w*)Error\b/,alias:"class-name"}]});function r(d,f){return RegExp(d.replace(//g,function(){return/(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*/.source}),f)}n.languages.insertBefore("javascript","keyword",{imports:{pattern:r(/(\bimport\b\s*)(?:(?:\s*,\s*(?:\*\s*as\s+|\{[^{}]*\}))?|\*\s*as\s+|\{[^{}]*\})(?=\s*\bfrom\b)/.source),lookbehind:!0,inside:n.languages.javascript},exports:{pattern:r(/(\bexport\b\s*)(?:\*(?:\s*as\s+)?(?=\s*\bfrom\b)|\{[^{}]*\})/.source),lookbehind:!0,inside:n.languages.javascript}}),n.languages.javascript.keyword.unshift({pattern:/\b(?:as|default|export|from|import)\b/,alias:"module"},{pattern:/\b(?:await|break|catch|continue|do|else|finally|for|if|return|switch|throw|try|while|yield)\b/,alias:"control-flow"},{pattern:/\bnull\b/,alias:["null","nil"]},{pattern:/\bundefined\b/,alias:"nil"}),n.languages.insertBefore("javascript","operator",{spread:{pattern:/\.{3}/,alias:"operator"},arrow:{pattern:/=>/,alias:"operator"}}),n.languages.insertBefore("javascript","punctuation",{"property-access":{pattern:r(/(\.\s*)#?/.source),lookbehind:!0},"maybe-class-name":{pattern:/(^|[^$\w\xA0-\uFFFF])[A-Z][$\w\xA0-\uFFFF]+/,lookbehind:!0},dom:{pattern:/\b(?:document|(?:local|session)Storage|location|navigator|performance|window)\b/,alias:"variable"},console:{pattern:/\bconsole(?=\s*\.)/,alias:"class-name"}});for(var a=["function","function-variable","method","method-variable","property-access"],i=0;i=I.length)return;var Q=j[z];if(typeof Q=="string"||typeof Q.content=="string"){var le=I[_],re=typeof Q=="string"?Q:Q.content,ge=re.indexOf(le);if(ge!==-1){++_;var me=re.substring(0,ge),W=g(A[le]),G=re.substring(ge+le.length),q=[];if(me&&q.push(me),q.push(W),G){var ce=[G];L(ce),q.push.apply(q,ce)}typeof Q=="string"?(j.splice.apply(j,[z,1].concat(q)),z+=q.length-1):Q.content=q}}else{var H=Q.content;Array.isArray(H)?L(H):L([H])}}}return L(N),new n.Token(C,N,"language-"+C,E)}var h={javascript:!0,js:!0,typescript:!0,ts:!0,jsx:!0,tsx:!0};n.hooks.add("after-tokenize",function(E){if(!(E.language in h))return;function T(C){for(var k=0,_=C.length;k<_;k++){var A=C[k];if(typeof A!="string"){var P=A.content;if(!Array.isArray(P)){typeof P!="string"&&T([P]);continue}if(A.type==="template-string"){var N=P[1];if(P.length===3&&typeof N!="string"&&N.type==="embedded-code"){var I=v(N),L=N.alias,j=Array.isArray(L)?L[0]:L,z=n.languages[j];if(!z)continue;P[1]=y(I,z,j)}}else T(P)}}}T(E.tokens)});function v(E){return typeof E=="string"?E:Array.isArray(E)?E.map(v).join(""):v(E.content)}})(t)}return BM}var WM,wH;function Qj(){if(wH)return WM;wH=1,WM=e,e.displayName="typescript",e.aliases=["ts"];function e(t){(function(n){n.languages.typescript=n.languages.extend("javascript",{"class-name":{pattern:/(\b(?:class|extends|implements|instanceof|interface|new|type)\s+)(?!keyof\b)(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?:\s*<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>)?/,lookbehind:!0,greedy:!0,inside:null},builtin:/\b(?:Array|Function|Promise|any|boolean|console|never|number|string|symbol|unknown)\b/}),n.languages.typescript.keyword.push(/\b(?:abstract|declare|is|keyof|readonly|require)\b/,/\b(?:asserts|infer|interface|module|namespace|type)\b(?=\s*(?:[{_$a-zA-Z\xA0-\uFFFF]|$))/,/\btype\b(?=\s*(?:[\{*]|$))/),delete n.languages.typescript.parameter,delete n.languages.typescript["literal-property"];var r=n.languages.extend("typescript",{});delete r["class-name"],n.languages.typescript["class-name"].inside=r,n.languages.insertBefore("typescript","function",{decorator:{pattern:/@[$\w\xA0-\uFFFF]+/,inside:{at:{pattern:/^@/,alias:"operator"},function:/^[\s\S]+/}},"generic-function":{pattern:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>(?=\s*\()/,greedy:!0,inside:{function:/^#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*/,generic:{pattern:/<[\s\S]+/,alias:"class-name",inside:r}}}}),n.languages.ts=n.languages.typescript})(t)}return WM}var zM,SH;function uUe(){if(SH)return zM;SH=1;var e=W_(),t=Qj();zM=n,n.displayName="jsdoc",n.aliases=[];function n(r){r.register(e),r.register(t),(function(a){var i=a.languages.javascript,o=/\{(?:[^{}]|\{(?:[^{}]|\{[^{}]*\})*\})+\}/.source,l="(@(?:arg|argument|param|property)\\s+(?:"+o+"\\s+)?)";a.languages.jsdoc=a.languages.extend("javadoclike",{parameter:{pattern:RegExp(l+/(?:(?!\s)[$\w\xA0-\uFFFF.])+(?=\s|$)/.source),lookbehind:!0,inside:{punctuation:/\./}}}),a.languages.insertBefore("jsdoc","keyword",{"optional-parameter":{pattern:RegExp(l+/\[(?:(?!\s)[$\w\xA0-\uFFFF.])+(?:=[^[\]]+)?\](?=\s|$)/.source),lookbehind:!0,inside:{parameter:{pattern:/(^\[)[$\w\xA0-\uFFFF\.]+/,lookbehind:!0,inside:{punctuation:/\./}},code:{pattern:/(=)[\s\S]*(?=\]$)/,lookbehind:!0,inside:i,alias:"language-javascript"},punctuation:/[=[\]]/}},"class-name":[{pattern:RegExp(/(@(?:augments|class|extends|interface|memberof!?|template|this|typedef)\s+(?:\s+)?)[A-Z]\w*(?:\.[A-Z]\w*)*/.source.replace(//g,function(){return o})),lookbehind:!0,inside:{punctuation:/\./}},{pattern:RegExp("(@[a-z]+\\s+)"+o),lookbehind:!0,inside:{string:i.string,number:i.number,boolean:i.boolean,keyword:a.languages.typescript.keyword,operator:/=>|\.\.\.|[&|?:*]/,punctuation:/[.,;=<>{}()[\]]/}}],example:{pattern:/(@example\s+(?!\s))(?:[^@\s]|\s+(?!\s))+?(?=\s*(?:\*\s*)?(?:@\w|\*\/))/,lookbehind:!0,inside:{code:{pattern:/^([\t ]*(?:\*\s*)?)\S.*$/m,lookbehind:!0,inside:i,alias:"language-javascript"}}}}),a.languages.javadoclike.addSupport("javascript",a.languages.jsdoc)})(r)}return zM}var qM,EH;function Jj(){if(EH)return qM;EH=1,qM=e,e.displayName="json",e.aliases=["webmanifest"];function e(t){t.languages.json={property:{pattern:/(^|[^\\])"(?:\\.|[^\\"\r\n])*"(?=\s*:)/,lookbehind:!0,greedy:!0},string:{pattern:/(^|[^\\])"(?:\\.|[^\\"\r\n])*"(?!\s*:)/,lookbehind:!0,greedy:!0},comment:{pattern:/\/\/.*|\/\*[\s\S]*?(?:\*\/|$)/,greedy:!0},number:/-?\b\d+(?:\.\d+)?(?:e[+-]?\d+)?\b/i,punctuation:/[{}[\],]/,operator:/:/,boolean:/\b(?:false|true)\b/,null:{pattern:/\bnull\b/,alias:"keyword"}},t.languages.webmanifest=t.languages.json}return qM}var HM,TH;function cUe(){if(TH)return HM;TH=1;var e=Jj();HM=t,t.displayName="json5",t.aliases=[];function t(n){n.register(e),(function(r){var a=/("|')(?:\\(?:\r\n?|\n|.)|(?!\1)[^\\\r\n])*\1/;r.languages.json5=r.languages.extend("json",{property:[{pattern:RegExp(a.source+"(?=\\s*:)"),greedy:!0},{pattern:/(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*:)/,alias:"unquoted"}],string:{pattern:a,greedy:!0},number:/[+-]?\b(?:NaN|Infinity|0x[a-fA-F\d]+)\b|[+-]?(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[eE][+-]?\d+\b)?/})})(n)}return HM}var VM,CH;function dUe(){if(CH)return VM;CH=1;var e=Jj();VM=t,t.displayName="jsonp",t.aliases=[];function t(n){n.register(e),n.languages.jsonp=n.languages.extend("json",{punctuation:/[{}[\]();,.]/}),n.languages.insertBefore("jsonp","punctuation",{function:/(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*\()/})}return VM}var GM,kH;function fUe(){if(kH)return GM;kH=1,GM=e,e.displayName="jsstacktrace",e.aliases=[];function e(t){t.languages.jsstacktrace={"error-message":{pattern:/^\S.*/m,alias:"string"},"stack-frame":{pattern:/(^[ \t]+)at[ \t].*/m,lookbehind:!0,inside:{"not-my-code":{pattern:/^at[ \t]+(?!\s)(?:node\.js||.*(?:node_modules|\(\)|\(|$|\(internal\/|\(node\.js)).*/m,alias:"comment"},filename:{pattern:/(\bat\s+(?!\s)|\()(?:[a-zA-Z]:)?[^():]+(?=:)/,lookbehind:!0,alias:"url"},function:{pattern:/(\bat\s+(?:new\s+)?)(?!\s)[_$a-zA-Z\xA0-\uFFFF<][.$\w\xA0-\uFFFF<>]*/,lookbehind:!0,inside:{punctuation:/\./}},punctuation:/[()]/,keyword:/\b(?:at|new)\b/,alias:{pattern:/\[(?:as\s+)?(?!\s)[_$a-zA-Z\xA0-\uFFFF][$\w\xA0-\uFFFF]*\]/,alias:"variable"},"line-number":{pattern:/:\d+(?::\d+)?\b/,alias:"number",inside:{punctuation:/:/}}}}}}return GM}var YM,xH;function wre(){if(xH)return YM;xH=1,YM=e,e.displayName="jsx",e.aliases=[];function e(t){(function(n){var r=n.util.clone(n.languages.javascript),a=/(?:\s|\/\/.*(?!.)|\/\*(?:[^*]|\*(?!\/))\*\/)/.source,i=/(?:\{(?:\{(?:\{[^{}]*\}|[^{}])*\}|[^{}])*\})/.source,o=/(?:\{*\.{3}(?:[^{}]|)*\})/.source;function l(f,g){return f=f.replace(//g,function(){return a}).replace(//g,function(){return i}).replace(//g,function(){return o}),RegExp(f,g)}o=l(o).source,n.languages.jsx=n.languages.extend("markup",r),n.languages.jsx.tag.pattern=l(/<\/?(?:[\w.:-]+(?:+(?:[\w.:$-]+(?:=(?:"(?:\\[\s\S]|[^\\"])*"|'(?:\\[\s\S]|[^\\'])*'|[^\s{'"/>=]+|))?|))**\/?)?>/.source),n.languages.jsx.tag.inside.tag.pattern=/^<\/?[^\s>\/]*/,n.languages.jsx.tag.inside["attr-value"].pattern=/=(?!\{)(?:"(?:\\[\s\S]|[^\\"])*"|'(?:\\[\s\S]|[^\\'])*'|[^\s'">]+)/,n.languages.jsx.tag.inside.tag.inside["class-name"]=/^[A-Z]\w*(?:\.[A-Z]\w*)*$/,n.languages.jsx.tag.inside.comment=r.comment,n.languages.insertBefore("inside","attr-name",{spread:{pattern:l(//.source),inside:n.languages.jsx}},n.languages.jsx.tag),n.languages.insertBefore("inside","special-attr",{script:{pattern:l(/=/.source),alias:"language-javascript",inside:{"script-punctuation":{pattern:/^=(?=\{)/,alias:"punctuation"},rest:n.languages.jsx}}},n.languages.jsx.tag);var u=function(f){return f?typeof f=="string"?f:typeof f.content=="string"?f.content:f.content.map(u).join(""):""},d=function(f){for(var g=[],y=0;y0&&g[g.length-1].tagName===u(h.content[0].content[1])&&g.pop():h.content[h.content.length-1].content==="/>"||g.push({tagName:u(h.content[0].content[1]),openedBraces:0}):g.length>0&&h.type==="punctuation"&&h.content==="{"?g[g.length-1].openedBraces++:g.length>0&&g[g.length-1].openedBraces>0&&h.type==="punctuation"&&h.content==="}"?g[g.length-1].openedBraces--:v=!0),(v||typeof h=="string")&&g.length>0&&g[g.length-1].openedBraces===0){var E=u(h);y0&&(typeof f[y-1]=="string"||f[y-1].type==="plain-text")&&(E=u(f[y-1])+E,f.splice(y-1,1),y--),f[y]=new n.Token("plain-text",E,null,E)}h.content&&typeof h.content!="string"&&d(h.content)}};n.hooks.add("after-tokenize",function(f){f.language!=="jsx"&&f.language!=="tsx"||d(f.tokens)})})(t)}return YM}var KM,_H;function pUe(){if(_H)return KM;_H=1,KM=e,e.displayName="julia",e.aliases=[];function e(t){t.languages.julia={comment:{pattern:/(^|[^\\])(?:#=(?:[^#=]|=(?!#)|#(?!=)|#=(?:[^#=]|=(?!#)|#(?!=))*=#)*=#|#.*)/,lookbehind:!0},regex:{pattern:/r"(?:\\.|[^"\\\r\n])*"[imsx]{0,4}/,greedy:!0},string:{pattern:/"""[\s\S]+?"""|(?:\b\w+)?"(?:\\.|[^"\\\r\n])*"|`(?:[^\\`\r\n]|\\.)*`/,greedy:!0},char:{pattern:/(^|[^\w'])'(?:\\[^\r\n][^'\r\n]*|[^\\\r\n])'/,lookbehind:!0,greedy:!0},keyword:/\b(?:abstract|baremodule|begin|bitstype|break|catch|ccall|const|continue|do|else|elseif|end|export|finally|for|function|global|if|immutable|import|importall|in|let|local|macro|module|print|println|quote|return|struct|try|type|typealias|using|while)\b/,boolean:/\b(?:false|true)\b/,number:/(?:\b(?=\d)|\B(?=\.))(?:0[box])?(?:[\da-f]+(?:_[\da-f]+)*(?:\.(?:\d+(?:_\d+)*)?)?|\.\d+(?:_\d+)*)(?:[efp][+-]?\d+(?:_\d+)*)?j?/i,operator:/&&|\|\||[-+*^%÷⊻&$\\]=?|\/[\/=]?|!=?=?|\|[=>]?|<(?:<=?|[=:|])?|>(?:=|>>?=?)?|==?=?|[~≠≤≥'√∛]/,punctuation:/::?|[{}[\]();,.?]/,constant:/\b(?:(?:Inf|NaN)(?:16|32|64)?|im|pi)\b|[πℯ]/}}return KM}var XM,OH;function hUe(){if(OH)return XM;OH=1,XM=e,e.displayName="keepalived",e.aliases=[];function e(t){t.languages.keepalived={comment:{pattern:/[#!].*/,greedy:!0},string:{pattern:/(^|[^\\])(?:"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n])*')/,lookbehind:!0,greedy:!0},ip:{pattern:RegExp(/\b(?:(?:(?:[\da-f]{1,4}:){7}[\da-f]{1,4}|(?:[\da-f]{1,4}:){6}:[\da-f]{1,4}|(?:[\da-f]{1,4}:){5}:(?:[\da-f]{1,4}:)?[\da-f]{1,4}|(?:[\da-f]{1,4}:){4}:(?:[\da-f]{1,4}:){0,2}[\da-f]{1,4}|(?:[\da-f]{1,4}:){3}:(?:[\da-f]{1,4}:){0,3}[\da-f]{1,4}|(?:[\da-f]{1,4}:){2}:(?:[\da-f]{1,4}:){0,4}[\da-f]{1,4}|(?:[\da-f]{1,4}:){6}|(?:[\da-f]{1,4}:){0,5}:|::(?:[\da-f]{1,4}:){0,5}|[\da-f]{1,4}::(?:[\da-f]{1,4}:){0,5}[\da-f]{1,4}|::(?:[\da-f]{1,4}:){0,6}[\da-f]{1,4}|(?:[\da-f]{1,4}:){1,7}:)(?:\/\d{1,3})?|(?:\/\d{1,2})?)\b/.source.replace(//g,function(){return/(?:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]\d|\d)\.){3}(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]\d|\d))/.source}),"i"),alias:"number"},path:{pattern:/(\s)\/(?:[^\/\s]+\/)*[^\/\s]*|\b[a-zA-Z]:\\(?:[^\\\s]+\\)*[^\\\s]*/,lookbehind:!0,alias:"string"},variable:/\$\{?\w+\}?/,email:{pattern:/[\w-]+@[\w-]+(?:\.[\w-]{2,3}){1,2}/,alias:"string"},"conditional-configuration":{pattern:/@\^?[\w-]+/,alias:"variable"},operator:/=/,property:/\b(?:BFD_CHECK|DNS_CHECK|FILE_CHECK|HTTP_GET|MISC_CHECK|NAME|PING_CHECK|SCRIPTS|SMTP_CHECK|SSL|SSL_GET|TCP_CHECK|UDP_CHECK|accept|advert_int|alpha|auth_pass|auth_type|authentication|bfd_cpu_affinity|bfd_instance|bfd_no_swap|bfd_priority|bfd_process_name|bfd_rlimit_rttime|bfd_rt_priority|bind_if|bind_port|bindto|ca|certificate|check_unicast_src|checker|checker_cpu_affinity|checker_log_all_failures|checker_no_swap|checker_priority|checker_rlimit_rttime|checker_rt_priority|child_wait_time|connect_ip|connect_port|connect_timeout|dbus_service_name|debug|default_interface|delay|delay_before_retry|delay_loop|digest|dont_track_primary|dynamic|dynamic_interfaces|enable_(?:dbus|script_security|sni|snmp_checker|snmp_rfc|snmp_rfcv2|snmp_rfcv3|snmp_vrrp|traps)|end|fall|fast_recovery|file|flag-[123]|fork_delay|full_command|fwmark|garp_group|garp_interval|garp_lower_prio_delay|garp_lower_prio_repeat|garp_master_delay|garp_master_refresh|garp_master_refresh_repeat|garp_master_repeat|global_defs|global_tracking|gna_interval|group|ha_suspend|hashed|helo_name|higher_prio_send_advert|hoplimit|http_protocol|hysteresis|idle_tx|include|inhibit_on_failure|init_fail|init_file|instance|interface|interfaces|interval|ip_family|ipvs_process_name|keepalived.conf|kernel_rx_buf_size|key|linkbeat_interfaces|linkbeat_use_polling|log_all_failures|log_unknown_vrids|lower_prio_no_advert|lthreshold|lvs_flush|lvs_flush_onstop|lvs_method|lvs_netlink_cmd_rcv_bufs|lvs_netlink_cmd_rcv_bufs_force|lvs_netlink_monitor_rcv_bufs|lvs_netlink_monitor_rcv_bufs_force|lvs_notify_fifo|lvs_notify_fifo_script|lvs_sched|lvs_sync_daemon|max_auto_priority|max_hops|mcast_src_ip|mh-fallback|mh-port|min_auto_priority_delay|min_rx|min_tx|misc_dynamic|misc_path|misc_timeout|multiplier|name|namespace_with_ipsets|native_ipv6|neighbor_ip|net_namespace|net_namespace_ipvs|nftables|nftables_counters|nftables_ifindex|nftables_priority|no_accept|no_checker_emails|no_email_faults|nopreempt|notification_email|notification_email_from|notify|notify_backup|notify_deleted|notify_down|notify_fault|notify_fifo|notify_fifo_script|notify_master|notify_master_rx_lower_pri|notify_priority_changes|notify_stop|notify_up|old_unicast_checksum|omega|ops|param_match|passive|password|path|persistence_engine|persistence_granularity|persistence_timeout|preempt|preempt_delay|priority|process|process_monitor_rcv_bufs|process_monitor_rcv_bufs_force|process_name|process_names|promote_secondaries|protocol|proxy_arp|proxy_arp_pvlan|quorum|quorum_down|quorum_max|quorum_up|random_seed|real_server|regex|regex_max_offset|regex_min_offset|regex_no_match|regex_options|regex_stack|reload_repeat|reload_time_file|require_reply|retry|rise|router_id|rs_init_notifies|script|script_user|sh-fallback|sh-port|shutdown_script|shutdown_script_timeout|skip_check_adv_addr|smtp_alert|smtp_alert_checker|smtp_alert_vrrp|smtp_connect_timeout|smtp_helo_name|smtp_server|snmp_socket|sorry_server|sorry_server_inhibit|sorry_server_lvs_method|source_ip|start|startup_script|startup_script_timeout|state|static_ipaddress|static_routes|static_rules|status_code|step|strict_mode|sync_group_tracking_weight|terminate_delay|timeout|track_bfd|track_file|track_group|track_interface|track_process|track_script|track_src_ip|ttl|type|umask|unicast_peer|unicast_src_ip|unicast_ttl|url|use_ipvlan|use_pid_dir|use_vmac|user|uthreshold|val[123]|version|virtual_ipaddress|virtual_ipaddress_excluded|virtual_router_id|virtual_routes|virtual_rules|virtual_server|virtual_server_group|virtualhost|vmac_xmit_base|vrrp|vrrp_(?:check_unicast_src|cpu_affinity|garp_interval|garp_lower_prio_delay|garp_lower_prio_repeat|garp_master_delay|garp_master_refresh|garp_master_refresh_repeat|garp_master_repeat|gna_interval|higher_prio_send_advert|instance|ipsets|iptables|lower_prio_no_advert|mcast_group4|mcast_group6|min_garp|netlink_cmd_rcv_bufs|netlink_cmd_rcv_bufs_force|netlink_monitor_rcv_bufs|netlink_monitor_rcv_bufs_force|no_swap|notify_fifo|notify_fifo_script|notify_priority_changes|priority|process_name|rlimit_rttime|rt_priority|rx_bufs_multiplier|rx_bufs_policy|script|skip_check_adv_addr|startup_delay|strict|sync_group|track_process|version)|warmup|weight)\b/,constant:/\b(?:A|AAAA|AH|BACKUP|CNAME|DR|MASTER|MX|NAT|NS|PASS|SCTP|SOA|TCP|TUN|TXT|UDP|dh|fo|lblc|lblcr|lc|mh|nq|ovf|rr|sed|sh|wlc|wrr)\b/,number:{pattern:/(^|[^\w.-])-?\d+(?:\.\d+)?/,lookbehind:!0},boolean:/\b(?:false|no|off|on|true|yes)\b/,punctuation:/[\{\}]/}}return XM}var QM,RH;function mUe(){if(RH)return QM;RH=1,QM=e,e.displayName="keyman",e.aliases=[];function e(t){t.languages.keyman={comment:{pattern:/\bc .*/i,greedy:!0},string:{pattern:/"[^"\r\n]*"|'[^'\r\n]*'/,greedy:!0},"virtual-key":{pattern:/\[\s*(?:(?:ALT|CAPS|CTRL|LALT|LCTRL|NCAPS|RALT|RCTRL|SHIFT)\s+)*(?:[TKU]_[\w?]+|[A-E]\d\d?|"[^"\r\n]*"|'[^'\r\n]*')\s*\]/i,greedy:!0,alias:"function"},"header-keyword":{pattern:/&\w+/,alias:"bold"},"header-statement":{pattern:/\b(?:bitmap|bitmaps|caps always off|caps on only|copyright|hotkey|language|layout|message|name|shift frees caps|version)\b/i,alias:"bold"},"rule-keyword":{pattern:/\b(?:any|baselayout|beep|call|context|deadkey|dk|if|index|layer|notany|nul|outs|platform|reset|return|save|set|store|use)\b/i,alias:"keyword"},"structural-keyword":{pattern:/\b(?:ansi|begin|group|match|nomatch|unicode|using keys)\b/i,alias:"keyword"},"compile-target":{pattern:/\$(?:keyman|keymanonly|keymanweb|kmfl|weaver):/i,alias:"property"},number:/\b(?:U\+[\dA-F]+|d\d+|x[\da-f]+|\d+)\b/i,operator:/[+>\\$]|\.\./,punctuation:/[()=,]/}}return QM}var JM,PH;function gUe(){if(PH)return JM;PH=1,JM=e,e.displayName="kotlin",e.aliases=["kt","kts"];function e(t){(function(n){n.languages.kotlin=n.languages.extend("clike",{keyword:{pattern:/(^|[^.])\b(?:abstract|actual|annotation|as|break|by|catch|class|companion|const|constructor|continue|crossinline|data|do|dynamic|else|enum|expect|external|final|finally|for|fun|get|if|import|in|infix|init|inline|inner|interface|internal|is|lateinit|noinline|null|object|open|operator|out|override|package|private|protected|public|reified|return|sealed|set|super|suspend|tailrec|this|throw|to|try|typealias|val|var|vararg|when|where|while)\b/,lookbehind:!0},function:[{pattern:/(?:`[^\r\n`]+`|\b\w+)(?=\s*\()/,greedy:!0},{pattern:/(\.)(?:`[^\r\n`]+`|\w+)(?=\s*\{)/,lookbehind:!0,greedy:!0}],number:/\b(?:0[xX][\da-fA-F]+(?:_[\da-fA-F]+)*|0[bB][01]+(?:_[01]+)*|\d+(?:_\d+)*(?:\.\d+(?:_\d+)*)?(?:[eE][+-]?\d+(?:_\d+)*)?[fFL]?)\b/,operator:/\+[+=]?|-[-=>]?|==?=?|!(?:!|==?)?|[\/*%<>]=?|[?:]:?|\.\.|&&|\|\||\b(?:and|inv|or|shl|shr|ushr|xor)\b/}),delete n.languages.kotlin["class-name"];var r={"interpolation-punctuation":{pattern:/^\$\{?|\}$/,alias:"punctuation"},expression:{pattern:/[\s\S]+/,inside:n.languages.kotlin}};n.languages.insertBefore("kotlin","string",{"string-literal":[{pattern:/"""(?:[^$]|\$(?:(?!\{)|\{[^{}]*\}))*?"""/,alias:"multiline",inside:{interpolation:{pattern:/\$(?:[a-z_]\w*|\{[^{}]*\})/i,inside:r},string:/[\s\S]+/}},{pattern:/"(?:[^"\\\r\n$]|\\.|\$(?:(?!\{)|\{[^{}]*\}))*"/,alias:"singleline",inside:{interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$(?:[a-z_]\w*|\{[^{}]*\})/i,lookbehind:!0,inside:r},string:/[\s\S]+/}}],char:{pattern:/'(?:[^'\\\r\n]|\\(?:.|u[a-fA-F0-9]{0,4}))'/,greedy:!0}}),delete n.languages.kotlin.string,n.languages.insertBefore("kotlin","keyword",{annotation:{pattern:/\B@(?:\w+:)?(?:[A-Z]\w*|\[[^\]]+\])/,alias:"builtin"}}),n.languages.insertBefore("kotlin","function",{label:{pattern:/\b\w+@|@\w+\b/,alias:"symbol"}}),n.languages.kt=n.languages.kotlin,n.languages.kts=n.languages.kotlin})(t)}return JM}var ZM,AH;function vUe(){if(AH)return ZM;AH=1,ZM=e,e.displayName="kumir",e.aliases=["kum"];function e(t){(function(n){var r=/\s\x00-\x1f\x22-\x2f\x3a-\x3f\x5b-\x5e\x60\x7b-\x7e/.source;function a(i,o){return RegExp(i.replace(//g,r),o)}n.languages.kumir={comment:{pattern:/\|.*/},prolog:{pattern:/#.*/,greedy:!0},string:{pattern:/"[^\n\r"]*"|'[^\n\r']*'/,greedy:!0},boolean:{pattern:a(/(^|[])(?:да|нет)(?=[]|$)/.source),lookbehind:!0},"operator-word":{pattern:a(/(^|[])(?:и|или|не)(?=[]|$)/.source),lookbehind:!0,alias:"keyword"},"system-variable":{pattern:a(/(^|[])знач(?=[]|$)/.source),lookbehind:!0,alias:"keyword"},type:[{pattern:a(/(^|[])(?:вещ|лит|лог|сим|цел)(?:\x20*таб)?(?=[]|$)/.source),lookbehind:!0,alias:"builtin"},{pattern:a(/(^|[])(?:компл|сканкод|файл|цвет)(?=[]|$)/.source),lookbehind:!0,alias:"important"}],keyword:{pattern:a(/(^|[])(?:алг|арг(?:\x20*рез)?|ввод|ВКЛЮЧИТЬ|вс[её]|выбор|вывод|выход|дано|для|до|дс|если|иначе|исп|использовать|кон(?:(?:\x20+|_)исп)?|кц(?:(?:\x20+|_)при)?|надо|нач|нс|нц|от|пауза|пока|при|раза?|рез|стоп|таб|то|утв|шаг)(?=[]|$)/.source),lookbehind:!0},name:{pattern:a(/(^|[])[^\d][^]*(?:\x20+[^]+)*(?=[]|$)/.source),lookbehind:!0},number:{pattern:a(/(^|[])(?:\B\$[\da-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?)(?=[]|$)/.source,"i"),lookbehind:!0},punctuation:/:=|[(),:;\[\]]/,"operator-char":{pattern:/\*\*?|<[=>]?|>=?|[-+/=]/,alias:"operator"}},n.languages.kum=n.languages.kumir})(t)}return ZM}var eI,NH;function yUe(){if(NH)return eI;NH=1,eI=e,e.displayName="kusto",e.aliases=[];function e(t){t.languages.kusto={comment:{pattern:/\/\/.*/,greedy:!0},string:{pattern:/```[\s\S]*?```|[hH]?(?:"(?:[^\r\n\\"]|\\.)*"|'(?:[^\r\n\\']|\\.)*'|@(?:"[^\r\n"]*"|'[^\r\n']*'))/,greedy:!0},verb:{pattern:/(\|\s*)[a-z][\w-]*/i,lookbehind:!0,alias:"keyword"},command:{pattern:/\.[a-z][a-z\d-]*\b/,alias:"keyword"},"class-name":/\b(?:bool|datetime|decimal|dynamic|guid|int|long|real|string|timespan)\b/,keyword:/\b(?:access|alias|and|anti|as|asc|auto|between|by|(?:contains|(?:ends|starts)with|has(?:perfix|suffix)?)(?:_cs)?|database|declare|desc|external|from|fullouter|has_all|in|ingestion|inline|inner|innerunique|into|(?:left|right)(?:anti(?:semi)?|inner|outer|semi)?|let|like|local|not|of|on|or|pattern|print|query_parameters|range|restrict|schema|set|step|table|tables|to|view|where|with|matches\s+regex|nulls\s+(?:first|last))(?![\w-])/,boolean:/\b(?:false|null|true)\b/,function:/\b[a-z_]\w*(?=\s*\()/,datetime:[{pattern:/\b(?:(?:Fri|Friday|Mon|Monday|Sat|Saturday|Sun|Sunday|Thu|Thursday|Tue|Tuesday|Wed|Wednesday)\s*,\s*)?\d{1,2}(?:\s+|-)(?:Apr|Aug|Dec|Feb|Jan|Jul|Jun|Mar|May|Nov|Oct|Sep)(?:\s+|-)\d{2}\s+\d{2}:\d{2}(?::\d{2})?(?:\s*(?:\b(?:[A-Z]|(?:[ECMT][DS]|GM|U)T)|[+-]\d{4}))?\b/,alias:"number"},{pattern:/[+-]?\b(?:\d{4}-\d{2}-\d{2}(?:[ T]\d{2}:\d{2}(?::\d{2}(?:\.\d+)?)?)?|\d{2}:\d{2}(?::\d{2}(?:\.\d+)?)?)Z?/,alias:"number"}],number:/\b(?:0x[0-9A-Fa-f]+|\d+(?:\.\d+)?(?:[Ee][+-]?\d+)?)(?:(?:min|sec|[mnµ]s|[dhms]|microsecond|tick)\b)?|[+-]?\binf\b/,operator:/=>|[!=]~|[!=<>]=?|[-+*/%|]|\.\./,punctuation:/[()\[\]{},;.:]/}}return eI}var tI,MH;function bUe(){if(MH)return tI;MH=1,tI=e,e.displayName="latex",e.aliases=["tex","context"];function e(t){(function(n){var r=/\\(?:[^a-z()[\]]|[a-z*]+)/i,a={"equation-command":{pattern:r,alias:"regex"}};n.languages.latex={comment:/%.*/,cdata:{pattern:/(\\begin\{((?:lstlisting|verbatim)\*?)\})[\s\S]*?(?=\\end\{\2\})/,lookbehind:!0},equation:[{pattern:/\$\$(?:\\[\s\S]|[^\\$])+\$\$|\$(?:\\[\s\S]|[^\\$])+\$|\\\([\s\S]*?\\\)|\\\[[\s\S]*?\\\]/,inside:a,alias:"string"},{pattern:/(\\begin\{((?:align|eqnarray|equation|gather|math|multline)\*?)\})[\s\S]*?(?=\\end\{\2\})/,lookbehind:!0,inside:a,alias:"string"}],keyword:{pattern:/(\\(?:begin|cite|documentclass|end|label|ref|usepackage)(?:\[[^\]]+\])?\{)[^}]+(?=\})/,lookbehind:!0},url:{pattern:/(\\url\{)[^}]+(?=\})/,lookbehind:!0},headline:{pattern:/(\\(?:chapter|frametitle|paragraph|part|section|subparagraph|subsection|subsubparagraph|subsubsection|subsubsubparagraph)\*?(?:\[[^\]]+\])?\{)[^}]+(?=\})/,lookbehind:!0,alias:"class-name"},function:{pattern:r,alias:"selector"},punctuation:/[[\]{}&]/},n.languages.tex=n.languages.latex,n.languages.context=n.languages.latex})(t)}return tI}var nI,IH;function z_(){if(IH)return nI;IH=1;var e=cs();nI=t,t.displayName="php",t.aliases=[];function t(n){n.register(e),(function(r){var a=/\/\*[\s\S]*?\*\/|\/\/.*|#(?!\[).*/,i=[{pattern:/\b(?:false|true)\b/i,alias:"boolean"},{pattern:/(::\s*)\b[a-z_]\w*\b(?!\s*\()/i,greedy:!0,lookbehind:!0},{pattern:/(\b(?:case|const)\s+)\b[a-z_]\w*(?=\s*[;=])/i,greedy:!0,lookbehind:!0},/\b(?:null)\b/i,/\b[A-Z_][A-Z0-9_]*\b(?!\s*\()/],o=/\b0b[01]+(?:_[01]+)*\b|\b0o[0-7]+(?:_[0-7]+)*\b|\b0x[\da-f]+(?:_[\da-f]+)*\b|(?:\b\d+(?:_\d+)*\.?(?:\d+(?:_\d+)*)?|\B\.\d+)(?:e[+-]?\d+)?/i,l=/|\?\?=?|\.{3}|\??->|[!=]=?=?|::|\*\*=?|--|\+\+|&&|\|\||<<|>>|[?~]|[/^|%*&<>.+-]=?/,u=/[{}\[\](),:;]/;r.languages.php={delimiter:{pattern:/\?>$|^<\?(?:php(?=\s)|=)?/i,alias:"important"},comment:a,variable:/\$+(?:\w+\b|(?=\{))/,package:{pattern:/(namespace\s+|use\s+(?:function\s+)?)(?:\\?\b[a-z_]\w*)+\b(?!\\)/i,lookbehind:!0,inside:{punctuation:/\\/}},"class-name-definition":{pattern:/(\b(?:class|enum|interface|trait)\s+)\b[a-z_]\w*(?!\\)\b/i,lookbehind:!0,alias:"class-name"},"function-definition":{pattern:/(\bfunction\s+)[a-z_]\w*(?=\s*\()/i,lookbehind:!0,alias:"function"},keyword:[{pattern:/(\(\s*)\b(?:array|bool|boolean|float|int|integer|object|string)\b(?=\s*\))/i,alias:"type-casting",greedy:!0,lookbehind:!0},{pattern:/([(,?]\s*)\b(?:array(?!\s*\()|bool|callable|(?:false|null)(?=\s*\|)|float|int|iterable|mixed|object|self|static|string)\b(?=\s*\$)/i,alias:"type-hint",greedy:!0,lookbehind:!0},{pattern:/(\)\s*:\s*(?:\?\s*)?)\b(?:array(?!\s*\()|bool|callable|(?:false|null)(?=\s*\|)|float|int|iterable|mixed|object|self|static|string|void)\b/i,alias:"return-type",greedy:!0,lookbehind:!0},{pattern:/\b(?:array(?!\s*\()|bool|float|int|iterable|mixed|object|string|void)\b/i,alias:"type-declaration",greedy:!0},{pattern:/(\|\s*)(?:false|null)\b|\b(?:false|null)(?=\s*\|)/i,alias:"type-declaration",greedy:!0,lookbehind:!0},{pattern:/\b(?:parent|self|static)(?=\s*::)/i,alias:"static-context",greedy:!0},{pattern:/(\byield\s+)from\b/i,lookbehind:!0},/\bclass\b/i,{pattern:/((?:^|[^\s>:]|(?:^|[^-])>|(?:^|[^:]):)\s*)\b(?:abstract|and|array|as|break|callable|case|catch|clone|const|continue|declare|default|die|do|echo|else|elseif|empty|enddeclare|endfor|endforeach|endif|endswitch|endwhile|enum|eval|exit|extends|final|finally|fn|for|foreach|function|global|goto|if|implements|include|include_once|instanceof|insteadof|interface|isset|list|match|namespace|new|or|parent|print|private|protected|public|require|require_once|return|self|static|switch|throw|trait|try|unset|use|var|while|xor|yield|__halt_compiler)\b/i,lookbehind:!0}],"argument-name":{pattern:/([(,]\s+)\b[a-z_]\w*(?=\s*:(?!:))/i,lookbehind:!0},"class-name":[{pattern:/(\b(?:extends|implements|instanceof|new(?!\s+self|\s+static))\s+|\bcatch\s*\()\b[a-z_]\w*(?!\\)\b/i,greedy:!0,lookbehind:!0},{pattern:/(\|\s*)\b[a-z_]\w*(?!\\)\b/i,greedy:!0,lookbehind:!0},{pattern:/\b[a-z_]\w*(?!\\)\b(?=\s*\|)/i,greedy:!0},{pattern:/(\|\s*)(?:\\?\b[a-z_]\w*)+\b/i,alias:"class-name-fully-qualified",greedy:!0,lookbehind:!0,inside:{punctuation:/\\/}},{pattern:/(?:\\?\b[a-z_]\w*)+\b(?=\s*\|)/i,alias:"class-name-fully-qualified",greedy:!0,inside:{punctuation:/\\/}},{pattern:/(\b(?:extends|implements|instanceof|new(?!\s+self\b|\s+static\b))\s+|\bcatch\s*\()(?:\\?\b[a-z_]\w*)+\b(?!\\)/i,alias:"class-name-fully-qualified",greedy:!0,lookbehind:!0,inside:{punctuation:/\\/}},{pattern:/\b[a-z_]\w*(?=\s*\$)/i,alias:"type-declaration",greedy:!0},{pattern:/(?:\\?\b[a-z_]\w*)+(?=\s*\$)/i,alias:["class-name-fully-qualified","type-declaration"],greedy:!0,inside:{punctuation:/\\/}},{pattern:/\b[a-z_]\w*(?=\s*::)/i,alias:"static-context",greedy:!0},{pattern:/(?:\\?\b[a-z_]\w*)+(?=\s*::)/i,alias:["class-name-fully-qualified","static-context"],greedy:!0,inside:{punctuation:/\\/}},{pattern:/([(,?]\s*)[a-z_]\w*(?=\s*\$)/i,alias:"type-hint",greedy:!0,lookbehind:!0},{pattern:/([(,?]\s*)(?:\\?\b[a-z_]\w*)+(?=\s*\$)/i,alias:["class-name-fully-qualified","type-hint"],greedy:!0,lookbehind:!0,inside:{punctuation:/\\/}},{pattern:/(\)\s*:\s*(?:\?\s*)?)\b[a-z_]\w*(?!\\)\b/i,alias:"return-type",greedy:!0,lookbehind:!0},{pattern:/(\)\s*:\s*(?:\?\s*)?)(?:\\?\b[a-z_]\w*)+\b(?!\\)/i,alias:["class-name-fully-qualified","return-type"],greedy:!0,lookbehind:!0,inside:{punctuation:/\\/}}],constant:i,function:{pattern:/(^|[^\\\w])\\?[a-z_](?:[\w\\]*\w)?(?=\s*\()/i,lookbehind:!0,inside:{punctuation:/\\/}},property:{pattern:/(->\s*)\w+/,lookbehind:!0},number:o,operator:l,punctuation:u};var d={pattern:/\{\$(?:\{(?:\{[^{}]+\}|[^{}]+)\}|[^{}])+\}|(^|[^\\{])\$+(?:\w+(?:\[[^\r\n\[\]]+\]|->\w+)?)/,lookbehind:!0,inside:r.languages.php},f=[{pattern:/<<<'([^']+)'[\r\n](?:.*[\r\n])*?\1;/,alias:"nowdoc-string",greedy:!0,inside:{delimiter:{pattern:/^<<<'[^']+'|[a-z_]\w*;$/i,alias:"symbol",inside:{punctuation:/^<<<'?|[';]$/}}}},{pattern:/<<<(?:"([^"]+)"[\r\n](?:.*[\r\n])*?\1;|([a-z_]\w*)[\r\n](?:.*[\r\n])*?\2;)/i,alias:"heredoc-string",greedy:!0,inside:{delimiter:{pattern:/^<<<(?:"[^"]+"|[a-z_]\w*)|[a-z_]\w*;$/i,alias:"symbol",inside:{punctuation:/^<<<"?|[";]$/}},interpolation:d}},{pattern:/`(?:\\[\s\S]|[^\\`])*`/,alias:"backtick-quoted-string",greedy:!0},{pattern:/'(?:\\[\s\S]|[^\\'])*'/,alias:"single-quoted-string",greedy:!0},{pattern:/"(?:\\[\s\S]|[^\\"])*"/,alias:"double-quoted-string",greedy:!0,inside:{interpolation:d}}];r.languages.insertBefore("php","variable",{string:f,attribute:{pattern:/#\[(?:[^"'\/#]|\/(?![*/])|\/\/.*$|#(?!\[).*$|\/\*(?:[^*]|\*(?!\/))*\*\/|"(?:\\[\s\S]|[^\\"])*"|'(?:\\[\s\S]|[^\\'])*')+\](?=\s*[a-z$#])/im,greedy:!0,inside:{"attribute-content":{pattern:/^(#\[)[\s\S]+(?=\]$)/,lookbehind:!0,inside:{comment:a,string:f,"attribute-class-name":[{pattern:/([^:]|^)\b[a-z_]\w*(?!\\)\b/i,alias:"class-name",greedy:!0,lookbehind:!0},{pattern:/([^:]|^)(?:\\?\b[a-z_]\w*)+/i,alias:["class-name","class-name-fully-qualified"],greedy:!0,lookbehind:!0,inside:{punctuation:/\\/}}],constant:i,number:o,operator:l,punctuation:u}},delimiter:{pattern:/^#\[|\]$/,alias:"punctuation"}}}}),r.hooks.add("before-tokenize",function(g){if(/<\?/.test(g.code)){var y=/<\?(?:[^"'/#]|\/(?![*/])|("|')(?:\\[\s\S]|(?!\1)[^\\])*\1|(?:\/\/|#(?!\[))(?:[^?\n\r]|\?(?!>))*(?=$|\?>|[\r\n])|#\[|\/\*(?:[^*]|\*(?!\/))*(?:\*\/|$))*?(?:\?>|$)/g;r.languages["markup-templating"].buildPlaceholders(g,"php",y)}}),r.hooks.add("after-tokenize",function(g){r.languages["markup-templating"].tokenizePlaceholders(g,"php")})})(n)}return nI}var rI,DH;function wUe(){if(DH)return rI;DH=1;var e=cs(),t=z_();rI=n,n.displayName="latte",n.aliases=[];function n(r){r.register(e),r.register(t),(function(a){a.languages.latte={comment:/^\{\*[\s\S]*/,"latte-tag":{pattern:/(^\{(?:\/(?=[a-z]))?)(?:[=_]|[a-z]\w*\b(?!\())/i,lookbehind:!0,alias:"important"},delimiter:{pattern:/^\{\/?|\}$/,alias:"punctuation"},php:{pattern:/\S(?:[\s\S]*\S)?/,alias:"language-php",inside:a.languages.php}};var i=a.languages.extend("markup",{});a.languages.insertBefore("inside","attr-value",{"n-attr":{pattern:/n:[\w-]+(?:\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+))?/,inside:{"attr-name":{pattern:/^[^\s=]+/,alias:"important"},"attr-value":{pattern:/=[\s\S]+/,inside:{punctuation:[/^=/,{pattern:/^(\s*)["']|["']$/,lookbehind:!0}],php:{pattern:/\S(?:[\s\S]*\S)?/,inside:a.languages.php}}}}}},i.tag),a.hooks.add("before-tokenize",function(o){if(o.language==="latte"){var l=/\{\*[\s\S]*?\*\}|\{[^'"\s{}*](?:[^"'/{}]|\/(?![*/])|("|')(?:\\[\s\S]|(?!\1)[^\\])*\1|\/\*(?:[^*]|\*(?!\/))*\*\/)*\}/g;a.languages["markup-templating"].buildPlaceholders(o,"latte",l),o.grammar=i}}),a.hooks.add("after-tokenize",function(o){a.languages["markup-templating"].tokenizePlaceholders(o,"latte")})})(r)}return rI}var aI,$H;function SUe(){if($H)return aI;$H=1,aI=e,e.displayName="less",e.aliases=[];function e(t){t.languages.less=t.languages.extend("css",{comment:[/\/\*[\s\S]*?\*\//,{pattern:/(^|[^\\])\/\/.*/,lookbehind:!0}],atrule:{pattern:/@[\w-](?:\((?:[^(){}]|\([^(){}]*\))*\)|[^(){};\s]|\s+(?!\s))*?(?=\s*\{)/,inside:{punctuation:/[:()]/}},selector:{pattern:/(?:@\{[\w-]+\}|[^{};\s@])(?:@\{[\w-]+\}|\((?:[^(){}]|\([^(){}]*\))*\)|[^(){};@\s]|\s+(?!\s))*?(?=\s*\{)/,inside:{variable:/@+[\w-]+/}},property:/(?:@\{[\w-]+\}|[\w-])+(?:\+_?)?(?=\s*:)/,operator:/[+\-*\/]/}),t.languages.insertBefore("less","property",{variable:[{pattern:/@[\w-]+\s*:/,inside:{punctuation:/:/}},/@@?[\w-]+/],"mixin-usage":{pattern:/([{;]\s*)[.#](?!\d)[\w-].*?(?=[(;])/,lookbehind:!0,alias:"function"}})}return aI}var iI,LH;function Zj(){if(LH)return iI;LH=1,iI=e,e.displayName="scheme",e.aliases=[];function e(t){(function(n){n.languages.scheme={comment:/;.*|#;\s*(?:\((?:[^()]|\([^()]*\))*\)|\[(?:[^\[\]]|\[[^\[\]]*\])*\])|#\|(?:[^#|]|#(?!\|)|\|(?!#)|#\|(?:[^#|]|#(?!\|)|\|(?!#))*\|#)*\|#/,string:{pattern:/"(?:[^"\\]|\\.)*"/,greedy:!0},symbol:{pattern:/'[^()\[\]#'\s]+/,greedy:!0},char:{pattern:/#\\(?:[ux][a-fA-F\d]+\b|[-a-zA-Z]+\b|[\uD800-\uDBFF][\uDC00-\uDFFF]|\S)/,greedy:!0},"lambda-parameter":[{pattern:/((?:^|[^'`#])[(\[]lambda\s+)(?:[^|()\[\]'\s]+|\|(?:[^\\|]|\\.)*\|)/,lookbehind:!0},{pattern:/((?:^|[^'`#])[(\[]lambda\s+[(\[])[^()\[\]']+/,lookbehind:!0}],keyword:{pattern:/((?:^|[^'`#])[(\[])(?:begin|case(?:-lambda)?|cond(?:-expand)?|define(?:-library|-macro|-record-type|-syntax|-values)?|defmacro|delay(?:-force)?|do|else|except|export|guard|if|import|include(?:-ci|-library-declarations)?|lambda|let(?:rec)?(?:-syntax|-values|\*)?|let\*-values|only|parameterize|prefix|(?:quasi-?)?quote|rename|set!|syntax-(?:case|rules)|unless|unquote(?:-splicing)?|when)(?=[()\[\]\s]|$)/,lookbehind:!0},builtin:{pattern:/((?:^|[^'`#])[(\[])(?:abs|and|append|apply|assoc|ass[qv]|binary-port\?|boolean=?\?|bytevector(?:-append|-copy|-copy!|-length|-u8-ref|-u8-set!|\?)?|caar|cadr|call-with-(?:current-continuation|port|values)|call\/cc|car|cdar|cddr|cdr|ceiling|char(?:->integer|-ready\?|\?|<\?|<=\?|=\?|>\?|>=\?)|close-(?:input-port|output-port|port)|complex\?|cons|current-(?:error|input|output)-port|denominator|dynamic-wind|eof-object\??|eq\?|equal\?|eqv\?|error|error-object(?:-irritants|-message|\?)|eval|even\?|exact(?:-integer-sqrt|-integer\?|\?)?|expt|features|file-error\?|floor(?:-quotient|-remainder|\/)?|flush-output-port|for-each|gcd|get-output-(?:bytevector|string)|inexact\??|input-port(?:-open\?|\?)|integer(?:->char|\?)|lcm|length|list(?:->string|->vector|-copy|-ref|-set!|-tail|\?)?|make-(?:bytevector|list|parameter|string|vector)|map|max|member|memq|memv|min|modulo|negative\?|newline|not|null\?|number(?:->string|\?)|numerator|odd\?|open-(?:input|output)-(?:bytevector|string)|or|output-port(?:-open\?|\?)|pair\?|peek-char|peek-u8|port\?|positive\?|procedure\?|quotient|raise|raise-continuable|rational\?|rationalize|read-(?:bytevector|bytevector!|char|error\?|line|string|u8)|real\?|remainder|reverse|round|set-c[ad]r!|square|string(?:->list|->number|->symbol|->utf8|->vector|-append|-copy|-copy!|-fill!|-for-each|-length|-map|-ref|-set!|\?|<\?|<=\?|=\?|>\?|>=\?)?|substring|symbol(?:->string|\?|=\?)|syntax-error|textual-port\?|truncate(?:-quotient|-remainder|\/)?|u8-ready\?|utf8->string|values|vector(?:->list|->string|-append|-copy|-copy!|-fill!|-for-each|-length|-map|-ref|-set!|\?)?|with-exception-handler|write-(?:bytevector|char|string|u8)|zero\?)(?=[()\[\]\s]|$)/,lookbehind:!0},operator:{pattern:/((?:^|[^'`#])[(\[])(?:[-+*%/]|[<>]=?|=>?)(?=[()\[\]\s]|$)/,lookbehind:!0},number:{pattern:RegExp(r({"":/\d+(?:\/\d+)|(?:\d+(?:\.\d*)?|\.\d+)(?:[esfdl][+-]?\d+)?/.source,"":/[+-]?|[+-](?:inf|nan)\.0/.source,"":/[+-](?:|(?:inf|nan)\.0)?i/.source,"":/(?:@|)?|/.source,"":/(?:#d(?:#[ei])?|#[ei](?:#d)?)?/.source,"":/[0-9a-f]+(?:\/[0-9a-f]+)?/.source,"":/[+-]?|[+-](?:inf|nan)\.0/.source,"":/[+-](?:|(?:inf|nan)\.0)?i/.source,"":/(?:@|)?|/.source,"":/#[box](?:#[ei])?|(?:#[ei])?#[box]/.source,"":/(^|[()\[\]\s])(?:|)(?=[()\[\]\s]|$)/.source}),"i"),lookbehind:!0},boolean:{pattern:/(^|[()\[\]\s])#(?:[ft]|false|true)(?=[()\[\]\s]|$)/,lookbehind:!0},function:{pattern:/((?:^|[^'`#])[(\[])(?:[^|()\[\]'\s]+|\|(?:[^\\|]|\\.)*\|)(?=[()\[\]\s]|$)/,lookbehind:!0},identifier:{pattern:/(^|[()\[\]\s])\|(?:[^\\|]|\\.)*\|(?=[()\[\]\s]|$)/,lookbehind:!0,greedy:!0},punctuation:/[()\[\]']/};function r(a){for(var i in a)a[i]=a[i].replace(/<[\w\s]+>/g,function(o){return"(?:"+a[o].trim()+")"});return a[i]}})(t)}return iI}var oI,FH;function EUe(){if(FH)return oI;FH=1;var e=Zj();oI=t,t.displayName="lilypond",t.aliases=[];function t(n){n.register(e),(function(r){for(var a=/\((?:[^();"#\\]|\\[\s\S]|;.*(?!.)|"(?:[^"\\]|\\.)*"|#(?:\{(?:(?!#\})[\s\S])*#\}|[^{])|)*\)/.source,i=5,o=0;o/g,function(){return a});a=a.replace(//g,/[^\s\S]/.source);var l=r.languages.lilypond={comment:/%(?:(?!\{).*|\{[\s\S]*?%\})/,"embedded-scheme":{pattern:RegExp(/(^|[=\s])#(?:"(?:[^"\\]|\\.)*"|[^\s()"]*(?:[^\s()]|))/.source.replace(//g,function(){return a}),"m"),lookbehind:!0,greedy:!0,inside:{scheme:{pattern:/^(#)[\s\S]+$/,lookbehind:!0,alias:"language-scheme",inside:{"embedded-lilypond":{pattern:/#\{[\s\S]*?#\}/,greedy:!0,inside:{punctuation:/^#\{|#\}$/,lilypond:{pattern:/[\s\S]+/,alias:"language-lilypond",inside:null}}},rest:r.languages.scheme}},punctuation:/#/}},string:{pattern:/"(?:[^"\\]|\\.)*"/,greedy:!0},"class-name":{pattern:/(\\new\s+)[\w-]+/,lookbehind:!0},keyword:{pattern:/\\[a-z][-\w]*/i,inside:{punctuation:/^\\/}},operator:/[=|]|<<|>>/,punctuation:{pattern:/(^|[a-z\d])(?:'+|,+|[_^]?-[_^]?(?:[-+^!>._]|(?=\d))|[_^]\.?|[.!])|[{}()[\]<>^~]|\\[()[\]<>\\!]|--|__/,lookbehind:!0},number:/\b\d+(?:\/\d+)?\b/};l["embedded-scheme"].inside.scheme.inside["embedded-lilypond"].inside.lilypond.inside=l,r.languages.ly=l})(n)}return oI}var sI,jH;function TUe(){if(jH)return sI;jH=1;var e=cs();sI=t,t.displayName="liquid",t.aliases=[];function t(n){n.register(e),n.languages.liquid={comment:{pattern:/(^\{%\s*comment\s*%\})[\s\S]+(?=\{%\s*endcomment\s*%\}$)/,lookbehind:!0},delimiter:{pattern:/^\{(?:\{\{|[%\{])-?|-?(?:\}\}|[%\}])\}$/,alias:"punctuation"},string:{pattern:/"[^"]*"|'[^']*'/,greedy:!0},keyword:/\b(?:as|assign|break|(?:end)?(?:capture|case|comment|for|form|if|paginate|raw|style|tablerow|unless)|continue|cycle|decrement|echo|else|elsif|in|include|increment|limit|liquid|offset|range|render|reversed|section|when|with)\b/,object:/\b(?:address|all_country_option_tags|article|block|blog|cart|checkout|collection|color|country|country_option_tags|currency|current_page|current_tags|customer|customer_address|date|discount_allocation|discount_application|external_video|filter|filter_value|font|forloop|fulfillment|generic_file|gift_card|group|handle|image|line_item|link|linklist|localization|location|measurement|media|metafield|model|model_source|order|page|page_description|page_image|page_title|part|policy|product|product_option|recommendations|request|robots|routes|rule|script|search|selling_plan|selling_plan_allocation|selling_plan_group|shipping_method|shop|shop_locale|sitemap|store_availability|tax_line|template|theme|transaction|unit_price_measurement|user_agent|variant|video|video_source)\b/,function:[{pattern:/(\|\s*)\w+/,lookbehind:!0,alias:"filter"},{pattern:/(\.\s*)(?:first|last|size)/,lookbehind:!0}],boolean:/\b(?:false|nil|true)\b/,range:{pattern:/\.\./,alias:"operator"},number:/\b\d+(?:\.\d+)?\b/,operator:/[!=]=|<>|[<>]=?|[|?:=-]|\b(?:and|contains(?=\s)|or)\b/,punctuation:/[.,\[\]()]/,empty:{pattern:/\bempty\b/,alias:"keyword"}},n.hooks.add("before-tokenize",function(r){var a=/\{%\s*comment\s*%\}[\s\S]*?\{%\s*endcomment\s*%\}|\{(?:%[\s\S]*?%|\{\{[\s\S]*?\}\}|\{[\s\S]*?\})\}/g,i=!1;n.languages["markup-templating"].buildPlaceholders(r,"liquid",a,function(o){var l=/^\{%-?\s*(\w+)/.exec(o);if(l){var u=l[1];if(u==="raw"&&!i)return i=!0,!0;if(u==="endraw")return i=!1,!0}return!i})}),n.hooks.add("after-tokenize",function(r){n.languages["markup-templating"].tokenizePlaceholders(r,"liquid")})}return sI}var lI,UH;function CUe(){if(UH)return lI;UH=1,lI=e,e.displayName="lisp",e.aliases=[];function e(t){(function(n){function r(E){return RegExp(/(\()/.source+"(?:"+E+")"+/(?=[\s\)])/.source)}function a(E){return RegExp(/([\s([])/.source+"(?:"+E+")"+/(?=[\s)])/.source)}var i=/(?!\d)[-+*/~!@$%^=<>{}\w]+/.source,o="&"+i,l="(\\()",u="(?=\\))",d="(?=\\s)",f=/(?:[^()]|\((?:[^()]|\((?:[^()]|\((?:[^()]|\((?:[^()]|\([^()]*\))*\))*\))*\))*\))*/.source,g={heading:{pattern:/;;;.*/,alias:["comment","title"]},comment:/;.*/,string:{pattern:/"(?:[^"\\]|\\.)*"/,greedy:!0,inside:{argument:/[-A-Z]+(?=[.,\s])/,symbol:RegExp("`"+i+"'")}},"quoted-symbol":{pattern:RegExp("#?'"+i),alias:["variable","symbol"]},"lisp-property":{pattern:RegExp(":"+i),alias:"property"},splice:{pattern:RegExp(",@?"+i),alias:["symbol","variable"]},keyword:[{pattern:RegExp(l+"(?:and|(?:cl-)?letf|cl-loop|cond|cons|error|if|(?:lexical-)?let\\*?|message|not|null|or|provide|require|setq|unless|use-package|when|while)"+d),lookbehind:!0},{pattern:RegExp(l+"(?:append|by|collect|concat|do|finally|for|in|return)"+d),lookbehind:!0}],declare:{pattern:r(/declare/.source),lookbehind:!0,alias:"keyword"},interactive:{pattern:r(/interactive/.source),lookbehind:!0,alias:"keyword"},boolean:{pattern:a(/nil|t/.source),lookbehind:!0},number:{pattern:a(/[-+]?\d+(?:\.\d*)?/.source),lookbehind:!0},defvar:{pattern:RegExp(l+"def(?:const|custom|group|var)\\s+"+i),lookbehind:!0,inside:{keyword:/^def[a-z]+/,variable:RegExp(i)}},defun:{pattern:RegExp(l+/(?:cl-)?(?:defmacro|defun\*?)\s+/.source+i+/\s+\(/.source+f+/\)/.source),lookbehind:!0,greedy:!0,inside:{keyword:/^(?:cl-)?def\S+/,arguments:null,function:{pattern:RegExp("(^\\s)"+i),lookbehind:!0},punctuation:/[()]/}},lambda:{pattern:RegExp(l+"lambda\\s+\\(\\s*(?:&?"+i+"(?:\\s+&?"+i+")*\\s*)?\\)"),lookbehind:!0,greedy:!0,inside:{keyword:/^lambda/,arguments:null,punctuation:/[()]/}},car:{pattern:RegExp(l+i),lookbehind:!0},punctuation:[/(?:['`,]?\(|[)\[\]])/,{pattern:/(\s)\.(?=\s)/,lookbehind:!0}]},y={"lisp-marker":RegExp(o),varform:{pattern:RegExp(/\(/.source+i+/\s+(?=\S)/.source+f+/\)/.source),inside:g},argument:{pattern:RegExp(/(^|[\s(])/.source+i),lookbehind:!0,alias:"variable"},rest:g},h="\\S+(?:\\s+\\S+)*",v={pattern:RegExp(l+f+u),lookbehind:!0,inside:{"rest-vars":{pattern:RegExp("&(?:body|rest)\\s+"+h),inside:y},"other-marker-vars":{pattern:RegExp("&(?:aux|optional)\\s+"+h),inside:y},keys:{pattern:RegExp("&key\\s+"+h+"(?:\\s+&allow-other-keys)?"),inside:y},argument:{pattern:RegExp(i),alias:"variable"},punctuation:/[()]/}};g.lambda.inside.arguments=v,g.defun.inside.arguments=n.util.clone(v),g.defun.inside.arguments.inside.sublist=v,n.languages.lisp=g,n.languages.elisp=g,n.languages.emacs=g,n.languages["emacs-lisp"]=g})(t)}return lI}var uI,BH;function kUe(){if(BH)return uI;BH=1,uI=e,e.displayName="livescript",e.aliases=[];function e(t){t.languages.livescript={comment:[{pattern:/(^|[^\\])\/\*[\s\S]*?\*\//,lookbehind:!0},{pattern:/(^|[^\\])#.*/,lookbehind:!0}],"interpolated-string":{pattern:/(^|[^"])("""|")(?:\\[\s\S]|(?!\2)[^\\])*\2(?!")/,lookbehind:!0,greedy:!0,inside:{variable:{pattern:/(^|[^\\])#[a-z_](?:-?[a-z]|[\d_])*/m,lookbehind:!0},interpolation:{pattern:/(^|[^\\])#\{[^}]+\}/m,lookbehind:!0,inside:{"interpolation-punctuation":{pattern:/^#\{|\}$/,alias:"variable"}}},string:/[\s\S]+/}},string:[{pattern:/('''|')(?:\\[\s\S]|(?!\1)[^\\])*\1/,greedy:!0},{pattern:/<\[[\s\S]*?\]>/,greedy:!0},/\\[^\s,;\])}]+/],regex:[{pattern:/\/\/(?:\[[^\r\n\]]*\]|\\.|(?!\/\/)[^\\\[])+\/\/[gimyu]{0,5}/,greedy:!0,inside:{comment:{pattern:/(^|[^\\])#.*/,lookbehind:!0}}},{pattern:/\/(?:\[[^\r\n\]]*\]|\\.|[^/\\\r\n\[])+\/[gimyu]{0,5}/,greedy:!0}],keyword:{pattern:/(^|(?!-).)\b(?:break|case|catch|class|const|continue|default|do|else|extends|fallthrough|finally|for(?: ever)?|function|if|implements|it|let|loop|new|null|otherwise|own|return|super|switch|that|then|this|throw|try|unless|until|var|void|when|while|yield)(?!-)\b/m,lookbehind:!0},"keyword-operator":{pattern:/(^|[^-])\b(?:(?:delete|require|typeof)!|(?:and|by|delete|export|from|import(?: all)?|in|instanceof|is(?: not|nt)?|not|of|or|til|to|typeof|with|xor)(?!-)\b)/m,lookbehind:!0,alias:"operator"},boolean:{pattern:/(^|[^-])\b(?:false|no|off|on|true|yes)(?!-)\b/m,lookbehind:!0},argument:{pattern:/(^|(?!\.&\.)[^&])&(?!&)\d*/m,lookbehind:!0,alias:"variable"},number:/\b(?:\d+~[\da-z]+|\d[\d_]*(?:\.\d[\d_]*)?(?:[a-z]\w*)?)/i,identifier:/[a-z_](?:-?[a-z]|[\d_])*/i,operator:[{pattern:/( )\.(?= )/,lookbehind:!0},/\.(?:[=~]|\.\.?)|\.(?:[&|^]|<<|>>>?)\.|:(?:=|:=?)|&&|\|[|>]|<(?:<[>=?]?|-(?:->?|>)?|\+\+?|@@?|%%?|\*\*?|!(?:~?=|--?>|~?~>)?|~(?:~?>|=)?|==?|\^\^?|[\/?]/],punctuation:/[(){}\[\]|.,:;`]/},t.languages.livescript["interpolated-string"].inside.interpolation.inside.rest=t.languages.livescript}return uI}var cI,WH;function xUe(){if(WH)return cI;WH=1,cI=e,e.displayName="llvm",e.aliases=[];function e(t){(function(n){n.languages.llvm={comment:/;.*/,string:{pattern:/"[^"]*"/,greedy:!0},boolean:/\b(?:false|true)\b/,variable:/[%@!#](?:(?!\d)(?:[-$.\w]|\\[a-f\d]{2})+|\d+)/i,label:/(?!\d)(?:[-$.\w]|\\[a-f\d]{2})+:/i,type:{pattern:/\b(?:double|float|fp128|half|i[1-9]\d*|label|metadata|ppc_fp128|token|void|x86_fp80|x86_mmx)\b/,alias:"class-name"},keyword:/\b[a-z_][a-z_0-9]*\b/,number:/[+-]?\b\d+(?:\.\d+)?(?:[eE][+-]?\d+)?\b|\b0x[\dA-Fa-f]+\b|\b0xK[\dA-Fa-f]{20}\b|\b0x[ML][\dA-Fa-f]{32}\b|\b0xH[\dA-Fa-f]{4}\b/,punctuation:/[{}[\];(),.!*=<>]/}})(t)}return cI}var dI,zH;function _Ue(){if(zH)return dI;zH=1,dI=e,e.displayName="log",e.aliases=[];function e(t){t.languages.log={string:{pattern:/"(?:[^"\\\r\n]|\\.)*"|'(?![st] | \w)(?:[^'\\\r\n]|\\.)*'/,greedy:!0},exception:{pattern:/(^|[^\w.])[a-z][\w.]*(?:Error|Exception):.*(?:(?:\r\n?|\n)[ \t]*(?:at[ \t].+|\.{3}.*|Caused by:.*))+(?:(?:\r\n?|\n)[ \t]*\.\.\. .*)?/,lookbehind:!0,greedy:!0,alias:["javastacktrace","language-javastacktrace"],inside:t.languages.javastacktrace||{keyword:/\bat\b/,function:/[a-z_][\w$]*(?=\()/,punctuation:/[.:()]/}},level:[{pattern:/\b(?:ALERT|CRIT|CRITICAL|EMERG|EMERGENCY|ERR|ERROR|FAILURE|FATAL|SEVERE)\b/,alias:["error","important"]},{pattern:/\b(?:WARN|WARNING|WRN)\b/,alias:["warning","important"]},{pattern:/\b(?:DISPLAY|INF|INFO|NOTICE|STATUS)\b/,alias:["info","keyword"]},{pattern:/\b(?:DBG|DEBUG|FINE)\b/,alias:["debug","keyword"]},{pattern:/\b(?:FINER|FINEST|TRACE|TRC|VERBOSE|VRB)\b/,alias:["trace","comment"]}],property:{pattern:/((?:^|[\]|])[ \t]*)[a-z_](?:[\w-]|\b\/\b)*(?:[. ]\(?\w(?:[\w-]|\b\/\b)*\)?)*:(?=\s)/im,lookbehind:!0},separator:{pattern:/(^|[^-+])-{3,}|={3,}|\*{3,}|- - /m,lookbehind:!0,alias:"comment"},url:/\b(?:file|ftp|https?):\/\/[^\s|,;'"]*[^\s|,;'">.]/,email:{pattern:/(^|\s)[-\w+.]+@[a-z][a-z0-9-]*(?:\.[a-z][a-z0-9-]*)+(?=\s)/,lookbehind:!0,alias:"url"},"ip-address":{pattern:/\b(?:\d{1,3}(?:\.\d{1,3}){3})\b/,alias:"constant"},"mac-address":{pattern:/\b[a-f0-9]{2}(?::[a-f0-9]{2}){5}\b/i,alias:"constant"},domain:{pattern:/(^|\s)[a-z][a-z0-9-]*(?:\.[a-z][a-z0-9-]*)*\.[a-z][a-z0-9-]+(?=\s)/,lookbehind:!0,alias:"constant"},uuid:{pattern:/\b[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}\b/i,alias:"constant"},hash:{pattern:/\b(?:[a-f0-9]{32}){1,2}\b/i,alias:"constant"},"file-path":{pattern:/\b[a-z]:[\\/][^\s|,;:(){}\[\]"']+|(^|[\s:\[\](>|])\.{0,2}\/\w[^\s|,;:(){}\[\]"']*/i,lookbehind:!0,greedy:!0,alias:"string"},date:{pattern:RegExp(/\b\d{4}[-/]\d{2}[-/]\d{2}(?:T(?=\d{1,2}:)|(?=\s\d{1,2}:))/.source+"|"+/\b\d{1,4}[-/ ](?:\d{1,2}|Apr|Aug|Dec|Feb|Jan|Jul|Jun|Mar|May|Nov|Oct|Sep)[-/ ]\d{2,4}T?\b/.source+"|"+/\b(?:(?:Fri|Mon|Sat|Sun|Thu|Tue|Wed)(?:\s{1,2}(?:Apr|Aug|Dec|Feb|Jan|Jul|Jun|Mar|May|Nov|Oct|Sep))?|Apr|Aug|Dec|Feb|Jan|Jul|Jun|Mar|May|Nov|Oct|Sep)\s{1,2}\d{1,2}\b/.source,"i"),alias:"number"},time:{pattern:/\b\d{1,2}:\d{1,2}:\d{1,2}(?:[.,:]\d+)?(?:\s?[+-]\d{2}:?\d{2}|Z)?\b/,alias:"number"},boolean:/\b(?:false|null|true)\b/i,number:{pattern:/(^|[^.\w])(?:0x[a-f0-9]+|0o[0-7]+|0b[01]+|v?\d[\da-f]*(?:\.\d+)*(?:e[+-]?\d+)?[a-z]{0,3}\b)\b(?!\.\w)/i,lookbehind:!0},operator:/[;:?<=>~/@!$%&+\-|^(){}*#]/,punctuation:/[\[\].,]/}}return dI}var fI,qH;function OUe(){if(qH)return fI;qH=1,fI=e,e.displayName="lolcode",e.aliases=[];function e(t){t.languages.lolcode={comment:[/\bOBTW\s[\s\S]*?\sTLDR\b/,/\bBTW.+/],string:{pattern:/"(?::.|[^":])*"/,inside:{variable:/:\{[^}]+\}/,symbol:[/:\([a-f\d]+\)/i,/:\[[^\]]+\]/,/:[)>o":]/]},greedy:!0},number:/(?:\B-)?(?:\b\d+(?:\.\d*)?|\B\.\d+)/,symbol:{pattern:/(^|\s)(?:A )?(?:BUKKIT|NOOB|NUMBAR|NUMBR|TROOF|YARN)(?=\s|,|$)/,lookbehind:!0,inside:{keyword:/A(?=\s)/}},label:{pattern:/((?:^|\s)(?:IM IN YR|IM OUTTA YR) )[a-zA-Z]\w*/,lookbehind:!0,alias:"string"},function:{pattern:/((?:^|\s)(?:HOW IZ I|I IZ|IZ) )[a-zA-Z]\w*/,lookbehind:!0},keyword:[{pattern:/(^|\s)(?:AN|FOUND YR|GIMMEH|GTFO|HAI|HAS A|HOW IZ I|I HAS A|I IZ|IF U SAY SO|IM IN YR|IM OUTTA YR|IS NOW(?: A)?|ITZ(?: A)?|IZ|KTHX|KTHXBYE|LIEK(?: A)?|MAEK|MEBBE|MKAY|NERFIN|NO WAI|O HAI IM|O RLY\?|OIC|OMG|OMGWTF|R|SMOOSH|SRS|TIL|UPPIN|VISIBLE|WILE|WTF\?|YA RLY|YR)(?=\s|,|$)/,lookbehind:!0},/'Z(?=\s|,|$)/],boolean:{pattern:/(^|\s)(?:FAIL|WIN)(?=\s|,|$)/,lookbehind:!0},variable:{pattern:/(^|\s)IT(?=\s|,|$)/,lookbehind:!0},operator:{pattern:/(^|\s)(?:NOT|BOTH SAEM|DIFFRINT|(?:ALL|ANY|BIGGR|BOTH|DIFF|EITHER|MOD|PRODUKT|QUOSHUNT|SMALLR|SUM|WON) OF)(?=\s|,|$)/,lookbehind:!0},punctuation:/\.{3}|…|,|!/}}return fI}var pI,HH;function RUe(){if(HH)return pI;HH=1,pI=e,e.displayName="magma",e.aliases=[];function e(t){t.languages.magma={output:{pattern:/^(>.*(?:\r(?:\n|(?!\n))|\n))(?!>)(?:.+|(?:\r(?:\n|(?!\n))|\n)(?!>).*)(?:(?:\r(?:\n|(?!\n))|\n)(?!>).*)*/m,lookbehind:!0,greedy:!0},comment:{pattern:/\/\/.*|\/\*[\s\S]*?\*\//,greedy:!0},string:{pattern:/(^|[^\\"])"(?:[^\r\n\\"]|\\.)*"/,lookbehind:!0,greedy:!0},keyword:/\b(?:_|adj|and|assert|assert2|assert3|assigned|break|by|case|cat|catch|clear|cmpeq|cmpne|continue|declare|default|delete|diff|div|do|elif|else|end|eq|error|eval|exists|exit|for|forall|forward|fprintf|freeze|function|ge|gt|if|iload|import|in|intrinsic|is|join|le|load|local|lt|meet|mod|ne|not|notadj|notin|notsubset|or|print|printf|procedure|quit|random|read|readi|repeat|require|requirege|requirerange|restore|return|save|sdiff|select|subset|then|time|to|try|until|vprint|vprintf|vtime|when|where|while|xor)\b/,boolean:/\b(?:false|true)\b/,generator:{pattern:/\b[a-z_]\w*(?=\s*<)/i,alias:"class-name"},function:/\b[a-z_]\w*(?=\s*\()/i,number:{pattern:/(^|[^\w.]|\.\.)(?:\d+(?:\.\d*)?|\.\d+)(?:[eE][+-]?\d+)?(?:_[a-z]?)?(?=$|[^\w.]|\.\.)/,lookbehind:!0},operator:/->|[-+*/^~!|#=]|:=|\.\./,punctuation:/[()[\]{}<>,;.:]/}}return pI}var hI,VH;function PUe(){if(VH)return hI;VH=1,hI=e,e.displayName="makefile",e.aliases=[];function e(t){t.languages.makefile={comment:{pattern:/(^|[^\\])#(?:\\(?:\r\n|[\s\S])|[^\\\r\n])*/,lookbehind:!0},string:{pattern:/(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,greedy:!0},"builtin-target":{pattern:/\.[A-Z][^:#=\s]+(?=\s*:(?!=))/,alias:"builtin"},target:{pattern:/^(?:[^:=\s]|[ \t]+(?![\s:]))+(?=\s*:(?!=))/m,alias:"symbol",inside:{variable:/\$+(?:(?!\$)[^(){}:#=\s]+|(?=[({]))/}},variable:/\$+(?:(?!\$)[^(){}:#=\s]+|\([@*%<^+?][DF]\)|(?=[({]))/,keyword:/-include\b|\b(?:define|else|endef|endif|export|ifn?def|ifn?eq|include|override|private|sinclude|undefine|unexport|vpath)\b/,function:{pattern:/(\()(?:abspath|addsuffix|and|basename|call|dir|error|eval|file|filter(?:-out)?|findstring|firstword|flavor|foreach|guile|if|info|join|lastword|load|notdir|or|origin|patsubst|realpath|shell|sort|strip|subst|suffix|value|warning|wildcard|word(?:list|s)?)(?=[ \t])/,lookbehind:!0},operator:/(?:::|[?:+!])?=|[|@]/,punctuation:/[:;(){}]/}}return hI}var mI,GH;function AUe(){if(GH)return mI;GH=1,mI=e,e.displayName="markdown",e.aliases=["md"];function e(t){(function(n){var r=/(?:\\.|[^\\\n\r]|(?:\n|\r\n?)(?![\r\n]))/.source;function a(y){return y=y.replace(//g,function(){return r}),RegExp(/((?:^|[^\\])(?:\\{2})*)/.source+"(?:"+y+")")}var i=/(?:\\.|``(?:[^`\r\n]|`(?!`))+``|`[^`\r\n]+`|[^\\|\r\n`])+/.source,o=/\|?__(?:\|__)+\|?(?:(?:\n|\r\n?)|(?![\s\S]))/.source.replace(/__/g,function(){return i}),l=/\|?[ \t]*:?-{3,}:?[ \t]*(?:\|[ \t]*:?-{3,}:?[ \t]*)+\|?(?:\n|\r\n?)/.source;n.languages.markdown=n.languages.extend("markup",{}),n.languages.insertBefore("markdown","prolog",{"front-matter-block":{pattern:/(^(?:\s*[\r\n])?)---(?!.)[\s\S]*?[\r\n]---(?!.)/,lookbehind:!0,greedy:!0,inside:{punctuation:/^---|---$/,"front-matter":{pattern:/\S+(?:\s+\S+)*/,alias:["yaml","language-yaml"],inside:n.languages.yaml}}},blockquote:{pattern:/^>(?:[\t ]*>)*/m,alias:"punctuation"},table:{pattern:RegExp("^"+o+l+"(?:"+o+")*","m"),inside:{"table-data-rows":{pattern:RegExp("^("+o+l+")(?:"+o+")*$"),lookbehind:!0,inside:{"table-data":{pattern:RegExp(i),inside:n.languages.markdown},punctuation:/\|/}},"table-line":{pattern:RegExp("^("+o+")"+l+"$"),lookbehind:!0,inside:{punctuation:/\||:?-{3,}:?/}},"table-header-row":{pattern:RegExp("^"+o+"$"),inside:{"table-header":{pattern:RegExp(i),alias:"important",inside:n.languages.markdown},punctuation:/\|/}}}},code:[{pattern:/((?:^|\n)[ \t]*\n|(?:^|\r\n?)[ \t]*\r\n?)(?: {4}|\t).+(?:(?:\n|\r\n?)(?: {4}|\t).+)*/,lookbehind:!0,alias:"keyword"},{pattern:/^```[\s\S]*?^```$/m,greedy:!0,inside:{"code-block":{pattern:/^(```.*(?:\n|\r\n?))[\s\S]+?(?=(?:\n|\r\n?)^```$)/m,lookbehind:!0},"code-language":{pattern:/^(```).+/,lookbehind:!0},punctuation:/```/}}],title:[{pattern:/\S.*(?:\n|\r\n?)(?:==+|--+)(?=[ \t]*$)/m,alias:"important",inside:{punctuation:/==+$|--+$/}},{pattern:/(^\s*)#.+/m,lookbehind:!0,alias:"important",inside:{punctuation:/^#+|#+$/}}],hr:{pattern:/(^\s*)([*-])(?:[\t ]*\2){2,}(?=\s*$)/m,lookbehind:!0,alias:"punctuation"},list:{pattern:/(^\s*)(?:[*+-]|\d+\.)(?=[\t ].)/m,lookbehind:!0,alias:"punctuation"},"url-reference":{pattern:/!?\[[^\]]+\]:[\t ]+(?:\S+|<(?:\\.|[^>\\])+>)(?:[\t ]+(?:"(?:\\.|[^"\\])*"|'(?:\\.|[^'\\])*'|\((?:\\.|[^)\\])*\)))?/,inside:{variable:{pattern:/^(!?\[)[^\]]+/,lookbehind:!0},string:/(?:"(?:\\.|[^"\\])*"|'(?:\\.|[^'\\])*'|\((?:\\.|[^)\\])*\))$/,punctuation:/^[\[\]!:]|[<>]/},alias:"url"},bold:{pattern:a(/\b__(?:(?!_)|_(?:(?!_))+_)+__\b|\*\*(?:(?!\*)|\*(?:(?!\*))+\*)+\*\*/.source),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^..)[\s\S]+(?=..$)/,lookbehind:!0,inside:{}},punctuation:/\*\*|__/}},italic:{pattern:a(/\b_(?:(?!_)|__(?:(?!_))+__)+_\b|\*(?:(?!\*)|\*\*(?:(?!\*))+\*\*)+\*/.source),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^.)[\s\S]+(?=.$)/,lookbehind:!0,inside:{}},punctuation:/[*_]/}},strike:{pattern:a(/(~~?)(?:(?!~))+\2/.source),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^~~?)[\s\S]+(?=\1$)/,lookbehind:!0,inside:{}},punctuation:/~~?/}},"code-snippet":{pattern:/(^|[^\\`])(?:``[^`\r\n]+(?:`[^`\r\n]+)*``(?!`)|`[^`\r\n]+`(?!`))/,lookbehind:!0,greedy:!0,alias:["code","keyword"]},url:{pattern:a(/!?\[(?:(?!\]))+\](?:\([^\s)]+(?:[\t ]+"(?:\\.|[^"\\])*")?\)|[ \t]?\[(?:(?!\]))+\])/.source),lookbehind:!0,greedy:!0,inside:{operator:/^!/,content:{pattern:/(^\[)[^\]]+(?=\])/,lookbehind:!0,inside:{}},variable:{pattern:/(^\][ \t]?\[)[^\]]+(?=\]$)/,lookbehind:!0},url:{pattern:/(^\]\()[^\s)]+/,lookbehind:!0},string:{pattern:/(^[ \t]+)"(?:\\.|[^"\\])*"(?=\)$)/,lookbehind:!0}}}}),["url","bold","italic","strike"].forEach(function(y){["url","bold","italic","strike","code-snippet"].forEach(function(h){y!==h&&(n.languages.markdown[y].inside.content.inside[h]=n.languages.markdown[h])})}),n.hooks.add("after-tokenize",function(y){if(y.language!=="markdown"&&y.language!=="md")return;function h(v){if(!(!v||typeof v=="string"))for(var E=0,T=v.length;E",quot:'"'},f=String.fromCodePoint||String.fromCharCode;function g(y){var h=y.replace(u,"");return h=h.replace(/&(\w{1,8}|#x?[\da-f]{1,8});/gi,function(v,E){if(E=E.toLowerCase(),E[0]==="#"){var T;return E[1]==="x"?T=parseInt(E.slice(2),16):T=Number(E.slice(1)),f(T)}else{var C=d[E];return C||v}}),h}n.languages.md=n.languages.markdown})(t)}return mI}var gI,YH;function NUe(){if(YH)return gI;YH=1,gI=e,e.displayName="matlab",e.aliases=[];function e(t){t.languages.matlab={comment:[/%\{[\s\S]*?\}%/,/%.+/],string:{pattern:/\B'(?:''|[^'\r\n])*'/,greedy:!0},number:/(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[eE][+-]?\d+)?(?:[ij])?|\b[ij]\b/,keyword:/\b(?:NaN|break|case|catch|continue|else|elseif|end|for|function|if|inf|otherwise|parfor|pause|pi|return|switch|try|while)\b/,function:/\b(?!\d)\w+(?=\s*\()/,operator:/\.?[*^\/\\']|[+\-:@]|[<>=~]=?|&&?|\|\|?/,punctuation:/\.{3}|[.,;\[\](){}!]/}}return gI}var vI,KH;function MUe(){if(KH)return vI;KH=1,vI=e,e.displayName="maxscript",e.aliases=[];function e(t){(function(n){var r=/\b(?:about|and|animate|as|at|attributes|by|case|catch|collect|continue|coordsys|do|else|exit|fn|for|from|function|global|if|in|local|macroscript|mapped|max|not|of|off|on|or|parameters|persistent|plugin|rcmenu|return|rollout|set|struct|then|throw|to|tool|try|undo|utility|when|where|while|with)\b/i;n.languages.maxscript={comment:{pattern:/\/\*[\s\S]*?(?:\*\/|$)|--.*/,greedy:!0},string:{pattern:/(^|[^"\\@])(?:"(?:[^"\\]|\\[\s\S])*"|@"[^"]*")/,lookbehind:!0,greedy:!0},path:{pattern:/\$(?:[\w/\\.*?]|'[^']*')*/,greedy:!0,alias:"string"},"function-call":{pattern:RegExp("((?:"+(/^/.source+"|"+/[;=<>+\-*/^({\[]/.source+"|"+/\b(?:and|by|case|catch|collect|do|else|if|in|not|or|return|then|to|try|where|while|with)\b/.source)+")[ ]*)(?!"+r.source+")"+/[a-z_]\w*\b/.source+"(?=[ ]*(?:"+("(?!"+r.source+")"+/[a-z_]/.source+"|"+/\d|-\.?\d/.source+"|"+/[({'"$@#?]/.source)+"))","im"),lookbehind:!0,greedy:!0,alias:"function"},"function-definition":{pattern:/(\b(?:fn|function)\s+)\w+\b/i,lookbehind:!0,alias:"function"},argument:{pattern:/\b[a-z_]\w*(?=:)/i,alias:"attr-name"},keyword:r,boolean:/\b(?:false|true)\b/,time:{pattern:/(^|[^\w.])(?:(?:(?:\d+(?:\.\d*)?|\.\d+)(?:[eEdD][+-]\d+|[LP])?[msft])+|\d+:\d+(?:\.\d*)?)(?![\w.:])/,lookbehind:!0,alias:"number"},number:[{pattern:/(^|[^\w.])(?:(?:\d+(?:\.\d*)?|\.\d+)(?:[eEdD][+-]\d+|[LP])?|0x[a-fA-F0-9]+)(?![\w.:])/,lookbehind:!0},/\b(?:e|pi)\b/],constant:/\b(?:dontcollect|ok|silentValue|undefined|unsupplied)\b/,color:{pattern:/\b(?:black|blue|brown|gray|green|orange|red|white|yellow)\b/i,alias:"constant"},operator:/[-+*/<>=!]=?|[&^?]|#(?!\()/,punctuation:/[()\[\]{}.:,;]|#(?=\()|\\$/m}})(t)}return vI}var yI,XH;function IUe(){if(XH)return yI;XH=1,yI=e,e.displayName="mel",e.aliases=[];function e(t){t.languages.mel={comment:/\/\/.*/,code:{pattern:/`(?:\\.|[^\\`\r\n])*`/,greedy:!0,alias:"italic",inside:{delimiter:{pattern:/^`|`$/,alias:"punctuation"}}},string:{pattern:/"(?:\\.|[^\\"\r\n])*"/,greedy:!0},variable:/\$\w+/,number:/\b0x[\da-fA-F]+\b|\b\d+(?:\.\d*)?|\B\.\d+/,flag:{pattern:/-[^\d\W]\w*/,alias:"operator"},keyword:/\b(?:break|case|continue|default|do|else|float|for|global|if|in|int|matrix|proc|return|string|switch|vector|while)\b/,function:/\b\w+(?=\()|\b(?:CBG|HfAddAttractorToAS|HfAssignAS|HfBuildEqualMap|HfBuildFurFiles|HfBuildFurImages|HfCancelAFR|HfConnectASToHF|HfCreateAttractor|HfDeleteAS|HfEditAS|HfPerformCreateAS|HfRemoveAttractorFromAS|HfSelectAttached|HfSelectAttractors|HfUnAssignAS|Mayatomr|about|abs|addAttr|addAttributeEditorNodeHelp|addDynamic|addNewShelfTab|addPP|addPanelCategory|addPrefixToName|advanceToNextDrivenKey|affectedNet|affects|aimConstraint|air|alias|aliasAttr|align|alignCtx|alignCurve|alignSurface|allViewFit|ambientLight|angle|angleBetween|animCone|animCurveEditor|animDisplay|animView|annotate|appendStringArray|applicationName|applyAttrPreset|applyTake|arcLenDimContext|arcLengthDimension|arclen|arrayMapper|art3dPaintCtx|artAttrCtx|artAttrPaintVertexCtx|artAttrSkinPaintCtx|artAttrTool|artBuildPaintMenu|artFluidAttrCtx|artPuttyCtx|artSelectCtx|artSetPaintCtx|artUserPaintCtx|assignCommand|assignInputDevice|assignViewportFactories|attachCurve|attachDeviceAttr|attachSurface|attrColorSliderGrp|attrCompatibility|attrControlGrp|attrEnumOptionMenu|attrEnumOptionMenuGrp|attrFieldGrp|attrFieldSliderGrp|attrNavigationControlGrp|attrPresetEditWin|attributeExists|attributeInfo|attributeMenu|attributeQuery|autoKeyframe|autoPlace|bakeClip|bakeFluidShading|bakePartialHistory|bakeResults|bakeSimulation|basename|basenameEx|batchRender|bessel|bevel|bevelPlus|binMembership|bindSkin|blend2|blendShape|blendShapeEditor|blendShapePanel|blendTwoAttr|blindDataType|boneLattice|boundary|boxDollyCtx|boxZoomCtx|bufferCurve|buildBookmarkMenu|buildKeyframeMenu|button|buttonManip|cacheFile|cacheFileCombine|cacheFileMerge|cacheFileTrack|camera|cameraView|canCreateManip|canvas|capitalizeString|catch|catchQuiet|ceil|changeSubdivComponentDisplayLevel|changeSubdivRegion|channelBox|character|characterMap|characterOutlineEditor|characterize|chdir|checkBox|checkBoxGrp|checkDefaultRenderGlobals|choice|circle|circularFillet|clamp|clear|clearCache|clip|clipEditor|clipEditorCurrentTimeCtx|clipSchedule|clipSchedulerOutliner|clipTrimBefore|closeCurve|closeSurface|cluster|cmdFileOutput|cmdScrollFieldExecuter|cmdScrollFieldReporter|cmdShell|coarsenSubdivSelectionList|collision|color|colorAtPoint|colorEditor|colorIndex|colorIndexSliderGrp|colorSliderButtonGrp|colorSliderGrp|columnLayout|commandEcho|commandLine|commandPort|compactHairSystem|componentEditor|compositingInterop|computePolysetVolume|condition|cone|confirmDialog|connectAttr|connectControl|connectDynamic|connectJoint|connectionInfo|constrain|constrainValue|constructionHistory|container|containsMultibyte|contextInfo|control|convertFromOldLayers|convertIffToPsd|convertLightmap|convertSolidTx|convertTessellation|convertUnit|copyArray|copyFlexor|copyKey|copySkinWeights|cos|cpButton|cpCache|cpClothSet|cpCollision|cpConstraint|cpConvClothToMesh|cpForces|cpGetSolverAttr|cpPanel|cpProperty|cpRigidCollisionFilter|cpSeam|cpSetEdit|cpSetSolverAttr|cpSolver|cpSolverTypes|cpTool|cpUpdateClothUVs|createDisplayLayer|createDrawCtx|createEditor|createLayeredPsdFile|createMotionField|createNewShelf|createNode|createRenderLayer|createSubdivRegion|cross|crossProduct|ctxAbort|ctxCompletion|ctxEditMode|ctxTraverse|currentCtx|currentTime|currentTimeCtx|currentUnit|curve|curveAddPtCtx|curveCVCtx|curveEPCtx|curveEditorCtx|curveIntersect|curveMoveEPCtx|curveOnSurface|curveSketchCtx|cutKey|cycleCheck|cylinder|dagPose|date|defaultLightListCheckBox|defaultNavigation|defineDataServer|defineVirtualDevice|deformer|deg_to_rad|delete|deleteAttr|deleteShadingGroupsAndMaterials|deleteShelfTab|deleteUI|deleteUnusedBrushes|delrandstr|detachCurve|detachDeviceAttr|detachSurface|deviceEditor|devicePanel|dgInfo|dgdirty|dgeval|dgtimer|dimWhen|directKeyCtx|directionalLight|dirmap|dirname|disable|disconnectAttr|disconnectJoint|diskCache|displacementToPoly|displayAffected|displayColor|displayCull|displayLevelOfDetail|displayPref|displayRGBColor|displaySmoothness|displayStats|displayString|displaySurface|distanceDimContext|distanceDimension|doBlur|dolly|dollyCtx|dopeSheetEditor|dot|dotProduct|doubleProfileBirailSurface|drag|dragAttrContext|draggerContext|dropoffLocator|duplicate|duplicateCurve|duplicateSurface|dynCache|dynControl|dynExport|dynExpression|dynGlobals|dynPaintEditor|dynParticleCtx|dynPref|dynRelEdPanel|dynRelEditor|dynamicLoad|editAttrLimits|editDisplayLayerGlobals|editDisplayLayerMembers|editRenderLayerAdjustment|editRenderLayerGlobals|editRenderLayerMembers|editor|editorTemplate|effector|emit|emitter|enableDevice|encodeString|endString|endsWith|env|equivalent|equivalentTol|erf|error|eval|evalDeferred|evalEcho|event|exactWorldBoundingBox|exclusiveLightCheckBox|exec|executeForEachObject|exists|exp|expression|expressionEditorListen|extendCurve|extendSurface|extrude|fcheck|fclose|feof|fflush|fgetline|fgetword|file|fileBrowserDialog|fileDialog|fileExtension|fileInfo|filetest|filletCurve|filter|filterCurve|filterExpand|filterStudioImport|findAllIntersections|findAnimCurves|findKeyframe|findMenuItem|findRelatedSkinCluster|finder|firstParentOf|fitBspline|flexor|floatEq|floatField|floatFieldGrp|floatScrollBar|floatSlider|floatSlider2|floatSliderButtonGrp|floatSliderGrp|floor|flow|fluidCacheInfo|fluidEmitter|fluidVoxelInfo|flushUndo|fmod|fontDialog|fopen|formLayout|format|fprint|frameLayout|fread|freeFormFillet|frewind|fromNativePath|fwrite|gamma|gauss|geometryConstraint|getApplicationVersionAsFloat|getAttr|getClassification|getDefaultBrush|getFileList|getFluidAttr|getInputDeviceRange|getMayaPanelTypes|getModifiers|getPanel|getParticleAttr|getPluginResource|getenv|getpid|glRender|glRenderEditor|globalStitch|gmatch|goal|gotoBindPose|grabColor|gradientControl|gradientControlNoAttr|graphDollyCtx|graphSelectContext|graphTrackCtx|gravity|grid|gridLayout|group|groupObjectsByName|hardenPointCurve|hardware|hardwareRenderPanel|headsUpDisplay|headsUpMessage|help|helpLine|hermite|hide|hilite|hitTest|hotBox|hotkey|hotkeyCheck|hsv_to_rgb|hudButton|hudSlider|hudSliderButton|hwReflectionMap|hwRender|hwRenderLoad|hyperGraph|hyperPanel|hyperShade|hypot|iconTextButton|iconTextCheckBox|iconTextRadioButton|iconTextRadioCollection|iconTextScrollList|iconTextStaticLabel|ikHandle|ikHandleCtx|ikHandleDisplayScale|ikSolver|ikSplineHandleCtx|ikSystem|ikSystemInfo|ikfkDisplayMethod|illustratorCurves|image|imfPlugins|inheritTransform|insertJoint|insertJointCtx|insertKeyCtx|insertKnotCurve|insertKnotSurface|instance|instanceable|instancer|intField|intFieldGrp|intScrollBar|intSlider|intSliderGrp|interToUI|internalVar|intersect|iprEngine|isAnimCurve|isConnected|isDirty|isParentOf|isSameObject|isTrue|isValidObjectName|isValidString|isValidUiName|isolateSelect|itemFilter|itemFilterAttr|itemFilterRender|itemFilterType|joint|jointCluster|jointCtx|jointDisplayScale|jointLattice|keyTangent|keyframe|keyframeOutliner|keyframeRegionCurrentTimeCtx|keyframeRegionDirectKeyCtx|keyframeRegionDollyCtx|keyframeRegionInsertKeyCtx|keyframeRegionMoveKeyCtx|keyframeRegionScaleKeyCtx|keyframeRegionSelectKeyCtx|keyframeRegionSetKeyCtx|keyframeRegionTrackCtx|keyframeStats|lassoContext|lattice|latticeDeformKeyCtx|launch|launchImageEditor|layerButton|layeredShaderPort|layeredTexturePort|layout|layoutDialog|lightList|lightListEditor|lightListPanel|lightlink|lineIntersection|linearPrecision|linstep|listAnimatable|listAttr|listCameras|listConnections|listDeviceAttachments|listHistory|listInputDeviceAxes|listInputDeviceButtons|listInputDevices|listMenuAnnotation|listNodeTypes|listPanelCategories|listRelatives|listSets|listTransforms|listUnselected|listerEditor|loadFluid|loadNewShelf|loadPlugin|loadPluginLanguageResources|loadPrefObjects|localizedPanelLabel|lockNode|loft|log|longNameOf|lookThru|ls|lsThroughFilter|lsType|lsUI|mag|makeIdentity|makeLive|makePaintable|makeRoll|makeSingleSurface|makeTubeOn|makebot|manipMoveContext|manipMoveLimitsCtx|manipOptions|manipRotateContext|manipRotateLimitsCtx|manipScaleContext|manipScaleLimitsCtx|marker|match|max|memory|menu|menuBarLayout|menuEditor|menuItem|menuItemToShelf|menuSet|menuSetPref|messageLine|min|minimizeApp|mirrorJoint|modelCurrentTimeCtx|modelEditor|modelPanel|mouse|movIn|movOut|move|moveIKtoFK|moveKeyCtx|moveVertexAlongDirection|multiProfileBirailSurface|mute|nParticle|nameCommand|nameField|namespace|namespaceInfo|newPanelItems|newton|nodeCast|nodeIconButton|nodeOutliner|nodePreset|nodeType|noise|nonLinear|normalConstraint|normalize|nurbsBoolean|nurbsCopyUVSet|nurbsCube|nurbsEditUV|nurbsPlane|nurbsSelect|nurbsSquare|nurbsToPoly|nurbsToPolygonsPref|nurbsToSubdiv|nurbsToSubdivPref|nurbsUVSet|nurbsViewDirectionVector|objExists|objectCenter|objectLayer|objectType|objectTypeUI|obsoleteProc|oceanNurbsPreviewPlane|offsetCurve|offsetCurveOnSurface|offsetSurface|openGLExtension|openMayaPref|optionMenu|optionMenuGrp|optionVar|orbit|orbitCtx|orientConstraint|outlinerEditor|outlinerPanel|overrideModifier|paintEffectsDisplay|pairBlend|palettePort|paneLayout|panel|panelConfiguration|panelHistory|paramDimContext|paramDimension|paramLocator|parent|parentConstraint|particle|particleExists|particleInstancer|particleRenderInfo|partition|pasteKey|pathAnimation|pause|pclose|percent|performanceOptions|pfxstrokes|pickWalk|picture|pixelMove|planarSrf|plane|play|playbackOptions|playblast|plugAttr|plugNode|pluginInfo|pluginResourceUtil|pointConstraint|pointCurveConstraint|pointLight|pointMatrixMult|pointOnCurve|pointOnSurface|pointPosition|poleVectorConstraint|polyAppend|polyAppendFacetCtx|polyAppendVertex|polyAutoProjection|polyAverageNormal|polyAverageVertex|polyBevel|polyBlendColor|polyBlindData|polyBoolOp|polyBridgeEdge|polyCacheMonitor|polyCheck|polyChipOff|polyClipboard|polyCloseBorder|polyCollapseEdge|polyCollapseFacet|polyColorBlindData|polyColorDel|polyColorPerVertex|polyColorSet|polyCompare|polyCone|polyCopyUV|polyCrease|polyCreaseCtx|polyCreateFacet|polyCreateFacetCtx|polyCube|polyCut|polyCutCtx|polyCylinder|polyCylindricalProjection|polyDelEdge|polyDelFacet|polyDelVertex|polyDuplicateAndConnect|polyDuplicateEdge|polyEditUV|polyEditUVShell|polyEvaluate|polyExtrudeEdge|polyExtrudeFacet|polyExtrudeVertex|polyFlipEdge|polyFlipUV|polyForceUV|polyGeoSampler|polyHelix|polyInfo|polyInstallAction|polyLayoutUV|polyListComponentConversion|polyMapCut|polyMapDel|polyMapSew|polyMapSewMove|polyMergeEdge|polyMergeEdgeCtx|polyMergeFacet|polyMergeFacetCtx|polyMergeUV|polyMergeVertex|polyMirrorFace|polyMoveEdge|polyMoveFacet|polyMoveFacetUV|polyMoveUV|polyMoveVertex|polyNormal|polyNormalPerVertex|polyNormalizeUV|polyOptUvs|polyOptions|polyOutput|polyPipe|polyPlanarProjection|polyPlane|polyPlatonicSolid|polyPoke|polyPrimitive|polyPrism|polyProjection|polyPyramid|polyQuad|polyQueryBlindData|polyReduce|polySelect|polySelectConstraint|polySelectConstraintMonitor|polySelectCtx|polySelectEditCtx|polySeparate|polySetToFaceNormal|polySewEdge|polyShortestPathCtx|polySmooth|polySoftEdge|polySphere|polySphericalProjection|polySplit|polySplitCtx|polySplitEdge|polySplitRing|polySplitVertex|polyStraightenUVBorder|polySubdivideEdge|polySubdivideFacet|polyToSubdiv|polyTorus|polyTransfer|polyTriangulate|polyUVSet|polyUnite|polyWedgeFace|popen|popupMenu|pose|pow|preloadRefEd|print|progressBar|progressWindow|projFileViewer|projectCurve|projectTangent|projectionContext|projectionManip|promptDialog|propModCtx|propMove|psdChannelOutliner|psdEditTextureFile|psdExport|psdTextureFile|putenv|pwd|python|querySubdiv|quit|rad_to_deg|radial|radioButton|radioButtonGrp|radioCollection|radioMenuItemCollection|rampColorPort|rand|randomizeFollicles|randstate|rangeControl|readTake|rebuildCurve|rebuildSurface|recordAttr|recordDevice|redo|reference|referenceEdit|referenceQuery|refineSubdivSelectionList|refresh|refreshAE|registerPluginResource|rehash|reloadImage|removeJoint|removeMultiInstance|removePanelCategory|rename|renameAttr|renameSelectionList|renameUI|render|renderGlobalsNode|renderInfo|renderLayerButton|renderLayerParent|renderLayerPostProcess|renderLayerUnparent|renderManip|renderPartition|renderQualityNode|renderSettings|renderThumbnailUpdate|renderWindowEditor|renderWindowSelectContext|renderer|reorder|reorderDeformers|requires|reroot|resampleFluid|resetAE|resetPfxToPolyCamera|resetTool|resolutionNode|retarget|reverseCurve|reverseSurface|revolve|rgb_to_hsv|rigidBody|rigidSolver|roll|rollCtx|rootOf|rot|rotate|rotationInterpolation|roundConstantRadius|rowColumnLayout|rowLayout|runTimeCommand|runup|sampleImage|saveAllShelves|saveAttrPreset|saveFluid|saveImage|saveInitialState|saveMenu|savePrefObjects|savePrefs|saveShelf|saveToolSettings|scale|scaleBrushBrightness|scaleComponents|scaleConstraint|scaleKey|scaleKeyCtx|sceneEditor|sceneUIReplacement|scmh|scriptCtx|scriptEditorInfo|scriptJob|scriptNode|scriptTable|scriptToShelf|scriptedPanel|scriptedPanelType|scrollField|scrollLayout|sculpt|searchPathArray|seed|selLoadSettings|select|selectContext|selectCurveCV|selectKey|selectKeyCtx|selectKeyframeRegionCtx|selectMode|selectPref|selectPriority|selectType|selectedNodes|selectionConnection|separator|setAttr|setAttrEnumResource|setAttrMapping|setAttrNiceNameResource|setConstraintRestPosition|setDefaultShadingGroup|setDrivenKeyframe|setDynamic|setEditCtx|setEditor|setFluidAttr|setFocus|setInfinity|setInputDeviceMapping|setKeyCtx|setKeyPath|setKeyframe|setKeyframeBlendshapeTargetWts|setMenuMode|setNodeNiceNameResource|setNodeTypeFlag|setParent|setParticleAttr|setPfxToPolyCamera|setPluginResource|setProject|setStampDensity|setStartupMessage|setState|setToolTo|setUITemplate|setXformManip|sets|shadingConnection|shadingGeometryRelCtx|shadingLightRelCtx|shadingNetworkCompare|shadingNode|shapeCompare|shelfButton|shelfLayout|shelfTabLayout|shellField|shortNameOf|showHelp|showHidden|showManipCtx|showSelectionInTitle|showShadingGroupAttrEditor|showWindow|sign|simplify|sin|singleProfileBirailSurface|size|sizeBytes|skinCluster|skinPercent|smoothCurve|smoothTangentSurface|smoothstep|snap2to2|snapKey|snapMode|snapTogetherCtx|snapshot|soft|softMod|softModCtx|sort|sound|soundControl|source|spaceLocator|sphere|sphrand|spotLight|spotLightPreviewPort|spreadSheetEditor|spring|sqrt|squareSurface|srtContext|stackTrace|startString|startsWith|stitchAndExplodeShell|stitchSurface|stitchSurfacePoints|strcmp|stringArrayCatenate|stringArrayContains|stringArrayCount|stringArrayInsertAtIndex|stringArrayIntersector|stringArrayRemove|stringArrayRemoveAtIndex|stringArrayRemoveDuplicates|stringArrayRemoveExact|stringArrayToString|stringToStringArray|strip|stripPrefixFromName|stroke|subdAutoProjection|subdCleanTopology|subdCollapse|subdDuplicateAndConnect|subdEditUV|subdListComponentConversion|subdMapCut|subdMapSewMove|subdMatchTopology|subdMirror|subdToBlind|subdToPoly|subdTransferUVsToCache|subdiv|subdivCrease|subdivDisplaySmoothness|substitute|substituteAllString|substituteGeometry|substring|surface|surfaceSampler|surfaceShaderList|swatchDisplayPort|switchTable|symbolButton|symbolCheckBox|sysFile|system|tabLayout|tan|tangentConstraint|texLatticeDeformContext|texManipContext|texMoveContext|texMoveUVShellContext|texRotateContext|texScaleContext|texSelectContext|texSelectShortestPathCtx|texSmudgeUVContext|texWinToolCtx|text|textCurves|textField|textFieldButtonGrp|textFieldGrp|textManip|textScrollList|textToShelf|textureDisplacePlane|textureHairColor|texturePlacementContext|textureWindow|threadCount|threePointArcCtx|timeControl|timePort|timerX|toNativePath|toggle|toggleAxis|toggleWindowVisibility|tokenize|tokenizeList|tolerance|tolower|toolButton|toolCollection|toolDropped|toolHasOptions|toolPropertyWindow|torus|toupper|trace|track|trackCtx|transferAttributes|transformCompare|transformLimits|translator|trim|trunc|truncateFluidCache|truncateHairCache|tumble|tumbleCtx|turbulence|twoPointArcCtx|uiRes|uiTemplate|unassignInputDevice|undo|undoInfo|ungroup|uniform|unit|unloadPlugin|untangleUV|untitledFileName|untrim|upAxis|updateAE|userCtx|uvLink|uvSnapshot|validateShelfName|vectorize|view2dToolCtx|viewCamera|viewClipPlane|viewFit|viewHeadOn|viewLookAt|viewManip|viewPlace|viewSet|visor|volumeAxis|vortex|waitCursor|warning|webBrowser|webBrowserPrefs|whatIs|window|windowPref|wire|wireContext|workspace|wrinkle|wrinkleContext|writeTake|xbmLangPathList|xform)\b/,operator:[/\+[+=]?|-[-=]?|&&|\|\||[<>]=|[*\/!=]=?|[%^]/,{pattern:/(^|[^<])<(?!<)/,lookbehind:!0},{pattern:/(^|[^>])>(?!>)/,lookbehind:!0}],punctuation:/<<|>>|[.,:;?\[\](){}]/},t.languages.mel.code.inside.rest=t.languages.mel}return yI}var bI,QH;function DUe(){if(QH)return bI;QH=1,bI=e,e.displayName="mermaid",e.aliases=[];function e(t){t.languages.mermaid={comment:{pattern:/%%.*/,greedy:!0},style:{pattern:/^([ \t]*(?:classDef|linkStyle|style)[ \t]+[\w$-]+[ \t]+)\w.*[^\s;]/m,lookbehind:!0,inside:{property:/\b\w[\w-]*(?=[ \t]*:)/,operator:/:/,punctuation:/,/}},"inter-arrow-label":{pattern:/([^<>ox.=-])(?:-[-.]|==)(?![<>ox.=-])[ \t]*(?:"[^"\r\n]*"|[^\s".=-](?:[^\r\n.=-]*[^\s.=-])?)[ \t]*(?:\.+->?|--+[->]|==+[=>])(?![<>ox.=-])/,lookbehind:!0,greedy:!0,inside:{arrow:{pattern:/(?:\.+->?|--+[->]|==+[=>])$/,alias:"operator"},label:{pattern:/^([\s\S]{2}[ \t]*)\S(?:[\s\S]*\S)?/,lookbehind:!0,alias:"property"},"arrow-head":{pattern:/^\S+/,alias:["arrow","operator"]}}},arrow:[{pattern:/(^|[^{}|o.-])[|}][|o](?:--|\.\.)[|o][|{](?![{}|o.-])/,lookbehind:!0,alias:"operator"},{pattern:/(^|[^<>ox.=-])(?:[ox]?|(?:==+|--+|-\.*-)[>ox]|===+|---+|-\.+-)(?![<>ox.=-])/,lookbehind:!0,alias:"operator"},{pattern:/(^|[^<>()x-])(?:--?(?:>>|[x>)])(?![<>()x])|(?:<<|[x<(])--?(?!-))/,lookbehind:!0,alias:"operator"},{pattern:/(^|[^<>|*o.-])(?:[*o]--|--[*o]|<\|?(?:--|\.\.)|(?:--|\.\.)\|?>|--|\.\.)(?![<>|*o.-])/,lookbehind:!0,alias:"operator"}],label:{pattern:/(^|[^|<])\|(?:[^\r\n"|]|"[^"\r\n]*")+\|/,lookbehind:!0,greedy:!0,alias:"property"},text:{pattern:/(?:[(\[{]+|\b>)(?:[^\r\n"()\[\]{}]|"[^"\r\n]*")+(?:[)\]}]+|>)/,alias:"string"},string:{pattern:/"[^"\r\n]*"/,greedy:!0},annotation:{pattern:/<<(?:abstract|choice|enumeration|fork|interface|join|service)>>|\[\[(?:choice|fork|join)\]\]/i,alias:"important"},keyword:[{pattern:/(^[ \t]*)(?:action|callback|class|classDef|classDiagram|click|direction|erDiagram|flowchart|gantt|gitGraph|graph|journey|link|linkStyle|pie|requirementDiagram|sequenceDiagram|stateDiagram|stateDiagram-v2|style|subgraph)(?![\w$-])/m,lookbehind:!0,greedy:!0},{pattern:/(^[ \t]*)(?:activate|alt|and|as|autonumber|deactivate|else|end(?:[ \t]+note)?|loop|opt|par|participant|rect|state|note[ \t]+(?:over|(?:left|right)[ \t]+of))(?![\w$-])/im,lookbehind:!0,greedy:!0}],entity:/#[a-z0-9]+;/,operator:{pattern:/(\w[ \t]*)&(?=[ \t]*\w)|:::|:/,lookbehind:!0},punctuation:/[(){};]/}}return bI}var wI,JH;function $Ue(){if(JH)return wI;JH=1,wI=e,e.displayName="mizar",e.aliases=[];function e(t){t.languages.mizar={comment:/::.+/,keyword:/@proof\b|\b(?:according|aggregate|all|and|antonym|are|as|associativity|assume|asymmetry|attr|be|begin|being|by|canceled|case|cases|clusters?|coherence|commutativity|compatibility|connectedness|consider|consistency|constructors|contradiction|correctness|def|deffunc|define|definitions?|defpred|do|does|end|environ|equals|ex|exactly|existence|for|from|func|given|hence|hereby|holds|idempotence|identity|iff?|implies|involutiveness|irreflexivity|is|it|let|means|mode|non|not|notations?|now|of|or|otherwise|over|per|pred|prefix|projectivity|proof|provided|qua|reconsider|redefine|reduce|reducibility|reflexivity|registrations?|requirements|reserve|sch|schemes?|section|selector|set|sethood|st|struct|such|suppose|symmetry|synonym|take|that|the|then|theorems?|thesis|thus|to|transitivity|uniqueness|vocabular(?:ies|y)|when|where|with|wrt)\b/,parameter:{pattern:/\$(?:10|\d)/,alias:"variable"},variable:/\b\w+(?=:)/,number:/(?:\b|-)\d+\b/,operator:/\.\.\.|->|&|\.?=/,punctuation:/\(#|#\)|[,:;\[\](){}]/}}return wI}var SI,ZH;function LUe(){if(ZH)return SI;ZH=1,SI=e,e.displayName="mongodb",e.aliases=[];function e(t){(function(n){var r=["$eq","$gt","$gte","$in","$lt","$lte","$ne","$nin","$and","$not","$nor","$or","$exists","$type","$expr","$jsonSchema","$mod","$regex","$text","$where","$geoIntersects","$geoWithin","$near","$nearSphere","$all","$elemMatch","$size","$bitsAllClear","$bitsAllSet","$bitsAnyClear","$bitsAnySet","$comment","$elemMatch","$meta","$slice","$currentDate","$inc","$min","$max","$mul","$rename","$set","$setOnInsert","$unset","$addToSet","$pop","$pull","$push","$pullAll","$each","$position","$slice","$sort","$bit","$addFields","$bucket","$bucketAuto","$collStats","$count","$currentOp","$facet","$geoNear","$graphLookup","$group","$indexStats","$limit","$listLocalSessions","$listSessions","$lookup","$match","$merge","$out","$planCacheStats","$project","$redact","$replaceRoot","$replaceWith","$sample","$set","$skip","$sort","$sortByCount","$unionWith","$unset","$unwind","$setWindowFields","$abs","$accumulator","$acos","$acosh","$add","$addToSet","$allElementsTrue","$and","$anyElementTrue","$arrayElemAt","$arrayToObject","$asin","$asinh","$atan","$atan2","$atanh","$avg","$binarySize","$bsonSize","$ceil","$cmp","$concat","$concatArrays","$cond","$convert","$cos","$dateFromParts","$dateToParts","$dateFromString","$dateToString","$dayOfMonth","$dayOfWeek","$dayOfYear","$degreesToRadians","$divide","$eq","$exp","$filter","$first","$floor","$function","$gt","$gte","$hour","$ifNull","$in","$indexOfArray","$indexOfBytes","$indexOfCP","$isArray","$isNumber","$isoDayOfWeek","$isoWeek","$isoWeekYear","$last","$last","$let","$literal","$ln","$log","$log10","$lt","$lte","$ltrim","$map","$max","$mergeObjects","$meta","$min","$millisecond","$minute","$mod","$month","$multiply","$ne","$not","$objectToArray","$or","$pow","$push","$radiansToDegrees","$range","$reduce","$regexFind","$regexFindAll","$regexMatch","$replaceOne","$replaceAll","$reverseArray","$round","$rtrim","$second","$setDifference","$setEquals","$setIntersection","$setIsSubset","$setUnion","$size","$sin","$slice","$split","$sqrt","$stdDevPop","$stdDevSamp","$strcasecmp","$strLenBytes","$strLenCP","$substr","$substrBytes","$substrCP","$subtract","$sum","$switch","$tan","$toBool","$toDate","$toDecimal","$toDouble","$toInt","$toLong","$toObjectId","$toString","$toLower","$toUpper","$trim","$trunc","$type","$week","$year","$zip","$count","$dateAdd","$dateDiff","$dateSubtract","$dateTrunc","$getField","$rand","$sampleRate","$setField","$unsetField","$comment","$explain","$hint","$max","$maxTimeMS","$min","$orderby","$query","$returnKey","$showDiskLoc","$natural"],a=["ObjectId","Code","BinData","DBRef","Timestamp","NumberLong","NumberDecimal","MaxKey","MinKey","RegExp","ISODate","UUID"];r=r.map(function(o){return o.replace("$","\\$")});var i="(?:"+r.join("|")+")\\b";n.languages.mongodb=n.languages.extend("javascript",{}),n.languages.insertBefore("mongodb","string",{property:{pattern:/(?:(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1|(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)(?=\s*:)/,greedy:!0,inside:{keyword:RegExp(`^(['"])?`+i+"(?:\\1)?$")}}}),n.languages.mongodb.string.inside={url:{pattern:/https?:\/\/[-\w@:%.+~#=]{1,256}\.[a-z0-9()]{1,6}\b[-\w()@:%+.~#?&/=]*/i,greedy:!0},entity:{pattern:/\b(?:(?:[01]?\d\d?|2[0-4]\d|25[0-5])\.){3}(?:[01]?\d\d?|2[0-4]\d|25[0-5])\b/,greedy:!0}},n.languages.insertBefore("mongodb","constant",{builtin:{pattern:RegExp("\\b(?:"+a.join("|")+")\\b"),alias:"keyword"}})})(t)}return SI}var EI,e7;function FUe(){if(e7)return EI;e7=1,EI=e,e.displayName="monkey",e.aliases=[];function e(t){t.languages.monkey={comment:{pattern:/^#Rem\s[\s\S]*?^#End|'.+/im,greedy:!0},string:{pattern:/"[^"\r\n]*"/,greedy:!0},preprocessor:{pattern:/(^[ \t]*)#.+/m,lookbehind:!0,greedy:!0,alias:"property"},function:/\b\w+(?=\()/,"type-char":{pattern:/\b[?%#$]/,alias:"class-name"},number:{pattern:/((?:\.\.)?)(?:(?:\b|\B-\.?|\B\.)\d+(?:(?!\.\.)\.\d*)?|\$[\da-f]+)/i,lookbehind:!0},keyword:/\b(?:Abstract|Array|Bool|Case|Catch|Class|Const|Continue|Default|Eachin|Else|ElseIf|End|EndIf|Exit|Extends|Extern|False|Field|Final|Float|For|Forever|Function|Global|If|Implements|Import|Inline|Int|Interface|Local|Method|Module|New|Next|Null|Object|Private|Property|Public|Repeat|Return|Select|Self|Step|Strict|String|Super|Then|Throw|To|True|Try|Until|Void|Wend|While)\b/i,operator:/\.\.|<[=>]?|>=?|:?=|(?:[+\-*\/&~|]|\b(?:Mod|Shl|Shr)\b)=?|\b(?:And|Not|Or)\b/i,punctuation:/[.,:;()\[\]]/}}return EI}var TI,t7;function jUe(){if(t7)return TI;t7=1,TI=e,e.displayName="moonscript",e.aliases=["moon"];function e(t){t.languages.moonscript={comment:/--.*/,string:[{pattern:/'[^']*'|\[(=*)\[[\s\S]*?\]\1\]/,greedy:!0},{pattern:/"[^"]*"/,greedy:!0,inside:{interpolation:{pattern:/#\{[^{}]*\}/,inside:{moonscript:{pattern:/(^#\{)[\s\S]+(?=\})/,lookbehind:!0,inside:null},"interpolation-punctuation":{pattern:/#\{|\}/,alias:"punctuation"}}}}}],"class-name":[{pattern:/(\b(?:class|extends)[ \t]+)\w+/,lookbehind:!0},/\b[A-Z]\w*/],keyword:/\b(?:class|continue|do|else|elseif|export|extends|for|from|if|import|in|local|nil|return|self|super|switch|then|unless|using|when|while|with)\b/,variable:/@@?\w*/,property:{pattern:/\b(?!\d)\w+(?=:)|(:)(?!\d)\w+/,lookbehind:!0},function:{pattern:/\b(?:_G|_VERSION|assert|collectgarbage|coroutine\.(?:create|resume|running|status|wrap|yield)|debug\.(?:debug|getfenv|gethook|getinfo|getlocal|getmetatable|getregistry|getupvalue|setfenv|sethook|setlocal|setmetatable|setupvalue|traceback)|dofile|error|getfenv|getmetatable|io\.(?:close|flush|input|lines|open|output|popen|read|stderr|stdin|stdout|tmpfile|type|write)|ipairs|load|loadfile|loadstring|math\.(?:abs|acos|asin|atan|atan2|ceil|cos|cosh|deg|exp|floor|fmod|frexp|ldexp|log|log10|max|min|modf|pi|pow|rad|random|randomseed|sin|sinh|sqrt|tan|tanh)|module|next|os\.(?:clock|date|difftime|execute|exit|getenv|remove|rename|setlocale|time|tmpname)|package\.(?:cpath|loaded|loadlib|path|preload|seeall)|pairs|pcall|print|rawequal|rawget|rawset|require|select|setfenv|setmetatable|string\.(?:byte|char|dump|find|format|gmatch|gsub|len|lower|match|rep|reverse|sub|upper)|table\.(?:concat|insert|maxn|remove|sort)|tonumber|tostring|type|unpack|xpcall)\b/,inside:{punctuation:/\./}},boolean:/\b(?:false|true)\b/,number:/(?:\B\.\d+|\b\d+\.\d+|\b\d+(?=[eE]))(?:[eE][-+]?\d+)?\b|\b(?:0x[a-fA-F\d]+|\d+)(?:U?LL)?\b/,operator:/\.{3}|[-=]>|~=|(?:[-+*/%<>!=]|\.\.)=?|[:#^]|\b(?:and|or)\b=?|\b(?:not)\b/,punctuation:/[.,()[\]{}\\]/},t.languages.moonscript.string[1].inside.interpolation.inside.moonscript.inside=t.languages.moonscript,t.languages.moon=t.languages.moonscript}return TI}var CI,n7;function UUe(){if(n7)return CI;n7=1,CI=e,e.displayName="n1ql",e.aliases=[];function e(t){t.languages.n1ql={comment:{pattern:/\/\*[\s\S]*?(?:$|\*\/)|--.*/,greedy:!0},string:{pattern:/(["'])(?:\\[\s\S]|(?!\1)[^\\]|\1\1)*\1/,greedy:!0},identifier:{pattern:/`(?:\\[\s\S]|[^\\`]|``)*`/,greedy:!0},parameter:/\$[\w.]+/,keyword:/\b(?:ADVISE|ALL|ALTER|ANALYZE|AS|ASC|AT|BEGIN|BINARY|BOOLEAN|BREAK|BUCKET|BUILD|BY|CALL|CAST|CLUSTER|COLLATE|COLLECTION|COMMIT|COMMITTED|CONNECT|CONTINUE|CORRELATE|CORRELATED|COVER|CREATE|CURRENT|DATABASE|DATASET|DATASTORE|DECLARE|DECREMENT|DELETE|DERIVED|DESC|DESCRIBE|DISTINCT|DO|DROP|EACH|ELEMENT|EXCEPT|EXCLUDE|EXECUTE|EXPLAIN|FETCH|FILTER|FLATTEN|FLUSH|FOLLOWING|FOR|FORCE|FROM|FTS|FUNCTION|GOLANG|GRANT|GROUP|GROUPS|GSI|HASH|HAVING|IF|IGNORE|ILIKE|INCLUDE|INCREMENT|INDEX|INFER|INLINE|INNER|INSERT|INTERSECT|INTO|IS|ISOLATION|JAVASCRIPT|JOIN|KEY|KEYS|KEYSPACE|KNOWN|LANGUAGE|LAST|LEFT|LET|LETTING|LEVEL|LIMIT|LSM|MAP|MAPPING|MATCHED|MATERIALIZED|MERGE|MINUS|MISSING|NAMESPACE|NEST|NL|NO|NTH_VALUE|NULL|NULLS|NUMBER|OBJECT|OFFSET|ON|OPTION|OPTIONS|ORDER|OTHERS|OUTER|OVER|PARSE|PARTITION|PASSWORD|PATH|POOL|PRECEDING|PREPARE|PRIMARY|PRIVATE|PRIVILEGE|PROBE|PROCEDURE|PUBLIC|RANGE|RAW|REALM|REDUCE|RENAME|RESPECT|RETURN|RETURNING|REVOKE|RIGHT|ROLE|ROLLBACK|ROW|ROWS|SATISFIES|SAVEPOINT|SCHEMA|SCOPE|SELECT|SELF|SEMI|SET|SHOW|SOME|START|STATISTICS|STRING|SYSTEM|TIES|TO|TRAN|TRANSACTION|TRIGGER|TRUNCATE|UNBOUNDED|UNDER|UNION|UNIQUE|UNKNOWN|UNNEST|UNSET|UPDATE|UPSERT|USE|USER|USING|VALIDATE|VALUE|VALUES|VIA|VIEW|WHERE|WHILE|WINDOW|WITH|WORK|XOR)\b/i,function:/\b[a-z_]\w*(?=\s*\()/i,boolean:/\b(?:FALSE|TRUE)\b/i,number:/(?:\b\d+\.|\B\.)\d+e[+\-]?\d+\b|\b\d+(?:\.\d*)?|\B\.\d+\b/i,operator:/[-+*\/%]|!=|==?|\|\||<[>=]?|>=?|\b(?:AND|ANY|ARRAY|BETWEEN|CASE|ELSE|END|EVERY|EXISTS|FIRST|IN|LIKE|NOT|OR|THEN|VALUED|WHEN|WITHIN)\b/i,punctuation:/[;[\](),.{}:]/}}return CI}var kI,r7;function BUe(){if(r7)return kI;r7=1,kI=e,e.displayName="n4js",e.aliases=["n4jsd"];function e(t){t.languages.n4js=t.languages.extend("javascript",{keyword:/\b(?:Array|any|boolean|break|case|catch|class|const|constructor|continue|debugger|declare|default|delete|do|else|enum|export|extends|false|finally|for|from|function|get|if|implements|import|in|instanceof|interface|let|module|new|null|number|package|private|protected|public|return|set|static|string|super|switch|this|throw|true|try|typeof|var|void|while|with|yield)\b/}),t.languages.insertBefore("n4js","constant",{annotation:{pattern:/@+\w+/,alias:"operator"}}),t.languages.n4jsd=t.languages.n4js}return kI}var xI,a7;function WUe(){if(a7)return xI;a7=1,xI=e,e.displayName="nand2tetrisHdl",e.aliases=[];function e(t){t.languages["nand2tetris-hdl"]={comment:/\/\/.*|\/\*[\s\S]*?(?:\*\/|$)/,keyword:/\b(?:BUILTIN|CHIP|CLOCKED|IN|OUT|PARTS)\b/,boolean:/\b(?:false|true)\b/,function:/\b[A-Za-z][A-Za-z0-9]*(?=\()/,number:/\b\d+\b/,operator:/=|\.\./,punctuation:/[{}[\];(),:]/}}return xI}var _I,i7;function zUe(){if(i7)return _I;i7=1,_I=e,e.displayName="naniscript",e.aliases=[];function e(t){(function(n){var r=/\{[^\r\n\[\]{}]*\}/,a={"quoted-string":{pattern:/"(?:[^"\\]|\\.)*"/,alias:"operator"},"command-param-id":{pattern:/(\s)\w+:/,lookbehind:!0,alias:"property"},"command-param-value":[{pattern:r,alias:"selector"},{pattern:/([\t ])\S+/,lookbehind:!0,greedy:!0,alias:"operator"},{pattern:/\S(?:.*\S)?/,alias:"operator"}]};n.languages.naniscript={comment:{pattern:/^([\t ]*);.*/m,lookbehind:!0},define:{pattern:/^>.+/m,alias:"tag",inside:{value:{pattern:/(^>\w+[\t ]+)(?!\s)[^{}\r\n]+/,lookbehind:!0,alias:"operator"},key:{pattern:/(^>)\w+/,lookbehind:!0}}},label:{pattern:/^([\t ]*)#[\t ]*\w+[\t ]*$/m,lookbehind:!0,alias:"regex"},command:{pattern:/^([\t ]*)@\w+(?=[\t ]|$).*/m,lookbehind:!0,alias:"function",inside:{"command-name":/^@\w+/,expression:{pattern:r,greedy:!0,alias:"selector"},"command-params":{pattern:/\s*\S[\s\S]*/,inside:a}}},"generic-text":{pattern:/(^[ \t]*)[^#@>;\s].*/m,lookbehind:!0,alias:"punctuation",inside:{"escaped-char":/\\[{}\[\]"]/,expression:{pattern:r,greedy:!0,alias:"selector"},"inline-command":{pattern:/\[[\t ]*\w[^\r\n\[\]]*\]/,greedy:!0,alias:"function",inside:{"command-params":{pattern:/(^\[[\t ]*\w+\b)[\s\S]+(?=\]$)/,lookbehind:!0,inside:a},"command-param-name":{pattern:/^(\[[\t ]*)\w+/,lookbehind:!0,alias:"name"},"start-stop-char":/[\[\]]/}}}}},n.languages.nani=n.languages.naniscript,n.hooks.add("after-tokenize",function(l){var u=l.tokens;u.forEach(function(d){if(typeof d!="string"&&d.type==="generic-text"){var f=o(d);i(f)||(d.type="bad-line",d.content=f)}})});function i(l){for(var u="[]{}",d=[],f=0;f=&|$!]/}}return OI}var RI,s7;function HUe(){if(s7)return RI;s7=1,RI=e,e.displayName="neon",e.aliases=[];function e(t){t.languages.neon={comment:{pattern:/#.*/,greedy:!0},datetime:{pattern:/(^|[[{(=:,\s])\d\d\d\d-\d\d?-\d\d?(?:(?:[Tt]| +)\d\d?:\d\d:\d\d(?:\.\d*)? *(?:Z|[-+]\d\d?(?::?\d\d)?)?)?(?=$|[\]}),\s])/,lookbehind:!0,alias:"number"},key:{pattern:/(^|[[{(,\s])[^,:=[\]{}()'"\s]+(?=\s*:(?:$|[\]}),\s])|\s*=)/,lookbehind:!0,alias:"atrule"},number:{pattern:/(^|[[{(=:,\s])[+-]?(?:0x[\da-fA-F]+|0o[0-7]+|0b[01]+|(?:\d+(?:\.\d*)?|\.?\d+)(?:[eE][+-]?\d+)?)(?=$|[\]}),:=\s])/,lookbehind:!0},boolean:{pattern:/(^|[[{(=:,\s])(?:false|no|true|yes)(?=$|[\]}),:=\s])/i,lookbehind:!0},null:{pattern:/(^|[[{(=:,\s])(?:null)(?=$|[\]}),:=\s])/i,lookbehind:!0,alias:"keyword"},string:{pattern:/(^|[[{(=:,\s])(?:('''|""")\r?\n(?:(?:[^\r\n]|\r?\n(?![\t ]*\2))*\r?\n)?[\t ]*\2|'[^'\r\n]*'|"(?:\\.|[^\\"\r\n])*")/,lookbehind:!0,greedy:!0},literal:{pattern:/(^|[[{(=:,\s])(?:[^#"',:=[\]{}()\s`-]|[:-][^"',=[\]{}()\s])(?:[^,:=\]})(\s]|:(?![\s,\]})]|$)|[ \t]+[^#,:=\]})(\s])*/,lookbehind:!0,alias:"string"},punctuation:/[,:=[\]{}()-]/}}return RI}var PI,l7;function VUe(){if(l7)return PI;l7=1,PI=e,e.displayName="nevod",e.aliases=[];function e(t){t.languages.nevod={comment:/\/\/.*|(?:\/\*[\s\S]*?(?:\*\/|$))/,string:{pattern:/(?:"(?:""|[^"])*"(?!")|'(?:''|[^'])*'(?!'))!?\*?/,greedy:!0,inside:{"string-attrs":/!$|!\*$|\*$/}},namespace:{pattern:/(@namespace\s+)[a-zA-Z0-9\-.]+(?=\s*\{)/,lookbehind:!0},pattern:{pattern:/(@pattern\s+)?#?[a-zA-Z0-9\-.]+(?:\s*\(\s*(?:~\s*)?[a-zA-Z0-9\-.]+\s*(?:,\s*(?:~\s*)?[a-zA-Z0-9\-.]*)*\))?(?=\s*=)/,lookbehind:!0,inside:{"pattern-name":{pattern:/^#?[a-zA-Z0-9\-.]+/,alias:"class-name"},fields:{pattern:/\(.*\)/,inside:{"field-name":{pattern:/[a-zA-Z0-9\-.]+/,alias:"variable"},punctuation:/[,()]/,operator:{pattern:/~/,alias:"field-hidden-mark"}}}}},search:{pattern:/(@search\s+|#)[a-zA-Z0-9\-.]+(?:\.\*)?(?=\s*;)/,alias:"function",lookbehind:!0},keyword:/@(?:having|inside|namespace|outside|pattern|require|search|where)\b/,"standard-pattern":{pattern:/\b(?:Alpha|AlphaNum|Any|Blank|End|LineBreak|Num|NumAlpha|Punct|Space|Start|Symbol|Word|WordBreak)\b(?:\([a-zA-Z0-9\-.,\s+]*\))?/,inside:{"standard-pattern-name":{pattern:/^[a-zA-Z0-9\-.]+/,alias:"builtin"},quantifier:{pattern:/\b\d+(?:\s*\+|\s*-\s*\d+)?(?!\w)/,alias:"number"},"standard-pattern-attr":{pattern:/[a-zA-Z0-9\-.]+/,alias:"builtin"},punctuation:/[,()]/}},quantifier:{pattern:/\b\d+(?:\s*\+|\s*-\s*\d+)?(?!\w)/,alias:"number"},operator:[{pattern:/=/,alias:"pattern-def"},{pattern:/&/,alias:"conjunction"},{pattern:/~/,alias:"exception"},{pattern:/\?/,alias:"optionality"},{pattern:/[[\]]/,alias:"repetition"},{pattern:/[{}]/,alias:"variation"},{pattern:/[+_]/,alias:"sequence"},{pattern:/\.{2,3}/,alias:"span"}],"field-capture":[{pattern:/([a-zA-Z0-9\-.]+\s*\()\s*[a-zA-Z0-9\-.]+\s*:\s*[a-zA-Z0-9\-.]+(?:\s*,\s*[a-zA-Z0-9\-.]+\s*:\s*[a-zA-Z0-9\-.]+)*(?=\s*\))/,lookbehind:!0,inside:{"field-name":{pattern:/[a-zA-Z0-9\-.]+/,alias:"variable"},colon:/:/}},{pattern:/[a-zA-Z0-9\-.]+\s*:/,inside:{"field-name":{pattern:/[a-zA-Z0-9\-.]+/,alias:"variable"},colon:/:/}}],punctuation:/[:;,()]/,name:/[a-zA-Z0-9\-.]+/}}return PI}var AI,u7;function GUe(){if(u7)return AI;u7=1,AI=e,e.displayName="nginx",e.aliases=[];function e(t){(function(n){var r=/\$(?:\w[a-z\d]*(?:_[^\x00-\x1F\s"'\\()$]*)?|\{[^}\s"'\\]+\})/i;n.languages.nginx={comment:{pattern:/(^|[\s{};])#.*/,lookbehind:!0,greedy:!0},directive:{pattern:/(^|\s)\w(?:[^;{}"'\\\s]|\\.|"(?:[^"\\]|\\.)*"|'(?:[^'\\]|\\.)*'|\s+(?:#.*(?!.)|(?![#\s])))*?(?=\s*[;{])/,lookbehind:!0,greedy:!0,inside:{string:{pattern:/((?:^|[^\\])(?:\\\\)*)(?:"(?:[^"\\]|\\.)*"|'(?:[^'\\]|\\.)*')/,lookbehind:!0,greedy:!0,inside:{escape:{pattern:/\\["'\\nrt]/,alias:"entity"},variable:r}},comment:{pattern:/(\s)#.*/,lookbehind:!0,greedy:!0},keyword:{pattern:/^\S+/,greedy:!0},boolean:{pattern:/(\s)(?:off|on)(?!\S)/,lookbehind:!0},number:{pattern:/(\s)\d+[a-z]*(?!\S)/i,lookbehind:!0},variable:r}},punctuation:/[{};]/}})(t)}return AI}var NI,c7;function YUe(){if(c7)return NI;c7=1,NI=e,e.displayName="nim",e.aliases=[];function e(t){t.languages.nim={comment:{pattern:/#.*/,greedy:!0},string:{pattern:/(?:\b(?!\d)(?:\w|\\x[89a-fA-F][0-9a-fA-F])+)?(?:"""[\s\S]*?"""(?!")|"(?:\\[\s\S]|""|[^"\\])*")/,greedy:!0},char:{pattern:/'(?:\\(?:\d+|x[\da-fA-F]{0,2}|.)|[^'])'/,greedy:!0},function:{pattern:/(?:(?!\d)(?:\w|\\x[89a-fA-F][0-9a-fA-F])+|`[^`\r\n]+`)\*?(?:\[[^\]]+\])?(?=\s*\()/,greedy:!0,inside:{operator:/\*$/}},identifier:{pattern:/`[^`\r\n]+`/,greedy:!0,inside:{punctuation:/`/}},number:/\b(?:0[xXoObB][\da-fA-F_]+|\d[\d_]*(?:(?!\.\.)\.[\d_]*)?(?:[eE][+-]?\d[\d_]*)?)(?:'?[iuf]\d*)?/,keyword:/\b(?:addr|as|asm|atomic|bind|block|break|case|cast|concept|const|continue|converter|defer|discard|distinct|do|elif|else|end|enum|except|export|finally|for|from|func|generic|if|import|include|interface|iterator|let|macro|method|mixin|nil|object|out|proc|ptr|raise|ref|return|static|template|try|tuple|type|using|var|when|while|with|without|yield)\b/,operator:{pattern:/(^|[({\[](?=\.\.)|(?![({\[]\.).)(?:(?:[=+\-*\/<>@$~&%|!?^:\\]|\.\.|\.(?![)}\]]))+|\b(?:and|div|in|is|isnot|mod|not|notin|of|or|shl|shr|xor)\b)/m,lookbehind:!0},punctuation:/[({\[]\.|\.[)}\]]|[`(){}\[\],:]/}}return NI}var MI,d7;function KUe(){if(d7)return MI;d7=1,MI=e,e.displayName="nix",e.aliases=[];function e(t){t.languages.nix={comment:{pattern:/\/\*[\s\S]*?\*\/|#.*/,greedy:!0},string:{pattern:/"(?:[^"\\]|\\[\s\S])*"|''(?:(?!'')[\s\S]|''(?:'|\\|\$\{))*''/,greedy:!0,inside:{interpolation:{pattern:/(^|(?:^|(?!'').)[^\\])\$\{(?:[^{}]|\{[^}]*\})*\}/,lookbehind:!0,inside:null}}},url:[/\b(?:[a-z]{3,7}:\/\/)[\w\-+%~\/.:#=?&]+/,{pattern:/([^\/])(?:[\w\-+%~.:#=?&]*(?!\/\/)[\w\-+%~\/.:#=?&])?(?!\/\/)\/[\w\-+%~\/.:#=?&]*/,lookbehind:!0}],antiquotation:{pattern:/\$(?=\{)/,alias:"important"},number:/\b\d+\b/,keyword:/\b(?:assert|builtins|else|if|in|inherit|let|null|or|then|with)\b/,function:/\b(?:abort|add|all|any|attrNames|attrValues|baseNameOf|compareVersions|concatLists|currentSystem|deepSeq|derivation|dirOf|div|elem(?:At)?|fetch(?:Tarball|url)|filter(?:Source)?|fromJSON|genList|getAttr|getEnv|hasAttr|hashString|head|import|intersectAttrs|is(?:Attrs|Bool|Function|Int|List|Null|String)|length|lessThan|listToAttrs|map|mul|parseDrvName|pathExists|read(?:Dir|File)|removeAttrs|replaceStrings|seq|sort|stringLength|sub(?:string)?|tail|throw|to(?:File|JSON|Path|String|XML)|trace|typeOf)\b|\bfoldl'\B/,boolean:/\b(?:false|true)\b/,operator:/[=!<>]=?|\+\+?|\|\||&&|\/\/|->?|[?@]/,punctuation:/[{}()[\].,:;]/},t.languages.nix.string.inside.interpolation.inside=t.languages.nix}return MI}var II,f7;function XUe(){if(f7)return II;f7=1,II=e,e.displayName="nsis",e.aliases=[];function e(t){t.languages.nsis={comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?\*\/|[#;].*)/,lookbehind:!0,greedy:!0},string:{pattern:/("|')(?:\\.|(?!\1)[^\\\r\n])*\1/,greedy:!0},keyword:{pattern:/(^[\t ]*)(?:Abort|Add(?:BrandingImage|Size)|AdvSplash|Allow(?:RootDirInstall|SkipFiles)|AutoCloseWindow|BG(?:Font|Gradient|Image)|Banner|BrandingText|BringToFront|CRCCheck|Call(?:InstDLL)?|Caption|ChangeUI|CheckBitmap|ClearErrors|CompletedText|ComponentText|CopyFiles|Create(?:Directory|Font|ShortCut)|Delete(?:INISec|INIStr|RegKey|RegValue)?|Detail(?:Print|sButtonText)|Dialer|Dir(?:Text|Var|Verify)|EnableWindow|Enum(?:RegKey|RegValue)|Exch|Exec(?:Shell(?:Wait)?|Wait)?|ExpandEnvStrings|File(?:BufSize|Close|ErrorText|Open|Read|ReadByte|ReadUTF16LE|ReadWord|Seek|Write|WriteByte|WriteUTF16LE|WriteWord)?|Find(?:Close|First|Next|Window)|FlushINI|Get(?:CurInstType|CurrentAddress|DLLVersion(?:Local)?|DlgItem|ErrorLevel|FileTime(?:Local)?|FullPathName|Function(?:Address|End)?|InstDirError|LabelAddress|TempFileName)|Goto|HideWindow|Icon|If(?:Abort|Errors|FileExists|RebootFlag|Silent)|InitPluginsDir|InstProgressFlags|Inst(?:Type(?:GetText|SetText)?)|Install(?:ButtonText|Colors|Dir(?:RegKey)?)|Int(?:64|Ptr)?CmpU?|Int(?:64)?Fmt|Int(?:Ptr)?Op|IsWindow|Lang(?:DLL|String)|License(?:BkColor|Data|ForceSelection|LangString|Text)|LoadLanguageFile|LockWindow|Log(?:Set|Text)|Manifest(?:DPIAware|SupportedOS)|Math|MessageBox|MiscButtonText|NSISdl|Name|Nop|OutFile|PE(?:DllCharacteristics|SubsysVer)|Page(?:Callbacks)?|Pop|Push|Quit|RMDir|Read(?:EnvStr|INIStr|RegDWORD|RegStr)|Reboot|RegDLL|Rename|RequestExecutionLevel|ReserveFile|Return|SearchPath|Section(?:End|GetFlags|GetInstTypes|GetSize|GetText|Group|In|SetFlags|SetInstTypes|SetSize|SetText)?|SendMessage|Set(?:AutoClose|BrandingImage|Compress|Compressor(?:DictSize)?|CtlColors|CurInstType|DatablockOptimize|DateSave|Details(?:Print|View)|ErrorLevel|Errors|FileAttributes|Font|OutPath|Overwrite|PluginUnload|RebootFlag|RegView|ShellVarContext|Silent)|Show(?:InstDetails|UninstDetails|Window)|Silent(?:Install|UnInstall)|Sleep|SpaceTexts|Splash|StartMenu|Str(?:CmpS?|Cpy|Len)|SubCaption|System|UnRegDLL|Unicode|UninstPage|Uninstall(?:ButtonText|Caption|Icon|SubCaption|Text)|UserInfo|VI(?:AddVersionKey|FileVersion|ProductVersion)|VPatch|Var|WindowIcon|Write(?:INIStr|Reg(?:Bin|DWORD|ExpandStr|MultiStr|None|Str)|Uninstaller)|XPStyle|ns(?:Dialogs|Exec))\b/m,lookbehind:!0},property:/\b(?:ARCHIVE|FILE_(?:ATTRIBUTE_ARCHIVE|ATTRIBUTE_NORMAL|ATTRIBUTE_OFFLINE|ATTRIBUTE_READONLY|ATTRIBUTE_SYSTEM|ATTRIBUTE_TEMPORARY)|HK(?:(?:CR|CU|LM)(?:32|64)?|DD|PD|U)|HKEY_(?:CLASSES_ROOT|CURRENT_CONFIG|CURRENT_USER|DYN_DATA|LOCAL_MACHINE|PERFORMANCE_DATA|USERS)|ID(?:ABORT|CANCEL|IGNORE|NO|OK|RETRY|YES)|MB_(?:ABORTRETRYIGNORE|DEFBUTTON1|DEFBUTTON2|DEFBUTTON3|DEFBUTTON4|ICONEXCLAMATION|ICONINFORMATION|ICONQUESTION|ICONSTOP|OK|OKCANCEL|RETRYCANCEL|RIGHT|RTLREADING|SETFOREGROUND|TOPMOST|USERICON|YESNO)|NORMAL|OFFLINE|READONLY|SHCTX|SHELL_CONTEXT|SYSTEM|TEMPORARY|admin|all|auto|both|colored|false|force|hide|highest|lastused|leave|listonly|none|normal|notset|off|on|open|print|show|silent|silentlog|smooth|textonly|true|user)\b/,constant:/\$\{[!\w\.:\^-]+\}|\$\([!\w\.:\^-]+\)/,variable:/\$\w[\w\.]*/,number:/\b0x[\dA-Fa-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[Ee]-?\d+)?/,operator:/--?|\+\+?|<=?|>=?|==?=?|&&?|\|\|?|[?*\/~^%]/,punctuation:/[{}[\];(),.:]/,important:{pattern:/(^[\t ]*)!(?:addincludedir|addplugindir|appendfile|cd|define|delfile|echo|else|endif|error|execute|finalize|getdllversion|gettlbversion|if|ifdef|ifmacrodef|ifmacrondef|ifndef|include|insertmacro|macro|macroend|makensis|packhdr|pragma|searchparse|searchreplace|system|tempfile|undef|verbose|warning)\b/im,lookbehind:!0}}}return II}var DI,p7;function QUe(){if(p7)return DI;p7=1;var e=Kv();DI=t,t.displayName="objectivec",t.aliases=["objc"];function t(n){n.register(e),n.languages.objectivec=n.languages.extend("c",{string:{pattern:/@?"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"/,greedy:!0},keyword:/\b(?:asm|auto|break|case|char|const|continue|default|do|double|else|enum|extern|float|for|goto|if|in|inline|int|long|register|return|self|short|signed|sizeof|static|struct|super|switch|typedef|typeof|union|unsigned|void|volatile|while)\b|(?:@interface|@end|@implementation|@protocol|@class|@public|@protected|@private|@property|@try|@catch|@finally|@throw|@synthesize|@dynamic|@selector)\b/,operator:/-[->]?|\+\+?|!=?|<>?=?|==?|&&?|\|\|?|[~^%?*\/@]/}),delete n.languages.objectivec["class-name"],n.languages.objc=n.languages.objectivec}return DI}var $I,h7;function JUe(){if(h7)return $I;h7=1,$I=e,e.displayName="ocaml",e.aliases=[];function e(t){t.languages.ocaml={comment:{pattern:/\(\*[\s\S]*?\*\)/,greedy:!0},char:{pattern:/'(?:[^\\\r\n']|\\(?:.|[ox]?[0-9a-f]{1,3}))'/i,greedy:!0},string:[{pattern:/"(?:\\(?:[\s\S]|\r\n)|[^\\\r\n"])*"/,greedy:!0},{pattern:/\{([a-z_]*)\|[\s\S]*?\|\1\}/,greedy:!0}],number:[/\b(?:0b[01][01_]*|0o[0-7][0-7_]*)\b/i,/\b0x[a-f0-9][a-f0-9_]*(?:\.[a-f0-9_]*)?(?:p[+-]?\d[\d_]*)?(?!\w)/i,/\b\d[\d_]*(?:\.[\d_]*)?(?:e[+-]?\d[\d_]*)?(?!\w)/i],directive:{pattern:/\B#\w+/,alias:"property"},label:{pattern:/\B~\w+/,alias:"property"},"type-variable":{pattern:/\B'\w+/,alias:"function"},variant:{pattern:/`\w+/,alias:"symbol"},keyword:/\b(?:as|assert|begin|class|constraint|do|done|downto|else|end|exception|external|for|fun|function|functor|if|in|include|inherit|initializer|lazy|let|match|method|module|mutable|new|nonrec|object|of|open|private|rec|sig|struct|then|to|try|type|val|value|virtual|when|where|while|with)\b/,boolean:/\b(?:false|true)\b/,"operator-like-punctuation":{pattern:/\[[<>|]|[>|]\]|\{<|>\}/,alias:"punctuation"},operator:/\.[.~]|:[=>]|[=<>@^|&+\-*\/$%!?~][!$%&*+\-.\/:<=>?@^|~]*|\b(?:and|asr|land|lor|lsl|lsr|lxor|mod|or)\b/,punctuation:/;;|::|[(){}\[\].,:;#]|\b_\b/}}return $I}var LI,m7;function ZUe(){if(m7)return LI;m7=1;var e=Kv();LI=t,t.displayName="opencl",t.aliases=[];function t(n){n.register(e),(function(r){r.languages.opencl=r.languages.extend("c",{keyword:/\b(?:(?:__)?(?:constant|global|kernel|local|private|read_only|read_write|write_only)|__attribute__|auto|(?:bool|u?(?:char|int|long|short)|half|quad)(?:2|3|4|8|16)?|break|case|complex|const|continue|(?:double|float)(?:16(?:x(?:1|2|4|8|16))?|1x(?:1|2|4|8|16)|2(?:x(?:1|2|4|8|16))?|3|4(?:x(?:1|2|4|8|16))?|8(?:x(?:1|2|4|8|16))?)?|default|do|else|enum|extern|for|goto|if|imaginary|inline|packed|pipe|register|restrict|return|signed|sizeof|static|struct|switch|typedef|uniform|union|unsigned|void|volatile|while)\b/,number:/(?:\b0x(?:[\da-f]+(?:\.[\da-f]*)?|\.[\da-f]+)(?:p[+-]?\d+)?|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?)[fuhl]{0,4}/i,boolean:/\b(?:false|true)\b/,"constant-opencl-kernel":{pattern:/\b(?:CHAR_(?:BIT|MAX|MIN)|CLK_(?:ADDRESS_(?:CLAMP(?:_TO_EDGE)?|NONE|REPEAT)|FILTER_(?:LINEAR|NEAREST)|(?:GLOBAL|LOCAL)_MEM_FENCE|NORMALIZED_COORDS_(?:FALSE|TRUE))|CL_(?:BGRA|(?:HALF_)?FLOAT|INTENSITY|LUMINANCE|A?R?G?B?[Ax]?|(?:(?:UN)?SIGNED|[US]NORM)_(?:INT(?:8|16|32))|UNORM_(?:INT_101010|SHORT_(?:555|565)))|(?:DBL|FLT|HALF)_(?:DIG|EPSILON|(?:MAX|MIN)(?:(?:_10)?_EXP)?|MANT_DIG)|FLT_RADIX|HUGE_VALF?|(?:INT|LONG|SCHAR|SHRT)_(?:MAX|MIN)|INFINITY|MAXFLOAT|M_(?:[12]_PI|2_SQRTPI|E|LN(?:2|10)|LOG(?:2|10)E?|PI(?:_[24])?|SQRT(?:1_2|2))(?:_F|_H)?|NAN|(?:UCHAR|UINT|ULONG|USHRT)_MAX)\b/,alias:"constant"}}),r.languages.insertBefore("opencl","class-name",{"builtin-type":{pattern:/\b(?:_cl_(?:command_queue|context|device_id|event|kernel|mem|platform_id|program|sampler)|cl_(?:image_format|mem_fence_flags)|clk_event_t|event_t|image(?:1d_(?:array_|buffer_)?t|2d_(?:array_(?:depth_|msaa_depth_|msaa_)?|depth_|msaa_depth_|msaa_)?t|3d_t)|intptr_t|ndrange_t|ptrdiff_t|queue_t|reserve_id_t|sampler_t|size_t|uintptr_t)\b/,alias:"keyword"}});var a={"type-opencl-host":{pattern:/\b(?:cl_(?:GLenum|GLint|GLuin|addressing_mode|bitfield|bool|buffer_create_type|build_status|channel_(?:order|type)|(?:u?(?:char|int|long|short)|double|float)(?:2|3|4|8|16)?|command_(?:queue(?:_info|_properties)?|type)|context(?:_info|_properties)?|device_(?:exec_capabilities|fp_config|id|info|local_mem_type|mem_cache_type|type)|(?:event|sampler)(?:_info)?|filter_mode|half|image_info|kernel(?:_info|_work_group_info)?|map_flags|mem(?:_flags|_info|_object_type)?|platform_(?:id|info)|profiling_info|program(?:_build_info|_info)?))\b/,alias:"keyword"},"boolean-opencl-host":{pattern:/\bCL_(?:FALSE|TRUE)\b/,alias:"boolean"},"constant-opencl-host":{pattern:/\bCL_(?:A|ABGR|ADDRESS_(?:CLAMP(?:_TO_EDGE)?|MIRRORED_REPEAT|NONE|REPEAT)|ARGB|BGRA|BLOCKING|BUFFER_CREATE_TYPE_REGION|BUILD_(?:ERROR|IN_PROGRESS|NONE|PROGRAM_FAILURE|SUCCESS)|COMMAND_(?:ACQUIRE_GL_OBJECTS|BARRIER|COPY_(?:BUFFER(?:_RECT|_TO_IMAGE)?|IMAGE(?:_TO_BUFFER)?)|FILL_(?:BUFFER|IMAGE)|MAP(?:_BUFFER|_IMAGE)|MARKER|MIGRATE(?:_SVM)?_MEM_OBJECTS|NATIVE_KERNEL|NDRANGE_KERNEL|READ_(?:BUFFER(?:_RECT)?|IMAGE)|RELEASE_GL_OBJECTS|SVM_(?:FREE|MAP|MEMCPY|MEMFILL|UNMAP)|TASK|UNMAP_MEM_OBJECT|USER|WRITE_(?:BUFFER(?:_RECT)?|IMAGE))|COMPILER_NOT_AVAILABLE|COMPILE_PROGRAM_FAILURE|COMPLETE|CONTEXT_(?:DEVICES|INTEROP_USER_SYNC|NUM_DEVICES|PLATFORM|PROPERTIES|REFERENCE_COUNT)|DEPTH(?:_STENCIL)?|DEVICE_(?:ADDRESS_BITS|AFFINITY_DOMAIN_(?:L[1-4]_CACHE|NEXT_PARTITIONABLE|NUMA)|AVAILABLE|BUILT_IN_KERNELS|COMPILER_AVAILABLE|DOUBLE_FP_CONFIG|ENDIAN_LITTLE|ERROR_CORRECTION_SUPPORT|EXECUTION_CAPABILITIES|EXTENSIONS|GLOBAL_(?:MEM_(?:CACHELINE_SIZE|CACHE_SIZE|CACHE_TYPE|SIZE)|VARIABLE_PREFERRED_TOTAL_SIZE)|HOST_UNIFIED_MEMORY|IL_VERSION|IMAGE(?:2D_MAX_(?:HEIGHT|WIDTH)|3D_MAX_(?:DEPTH|HEIGHT|WIDTH)|_BASE_ADDRESS_ALIGNMENT|_MAX_ARRAY_SIZE|_MAX_BUFFER_SIZE|_PITCH_ALIGNMENT|_SUPPORT)|LINKER_AVAILABLE|LOCAL_MEM_SIZE|LOCAL_MEM_TYPE|MAX_(?:CLOCK_FREQUENCY|COMPUTE_UNITS|CONSTANT_ARGS|CONSTANT_BUFFER_SIZE|GLOBAL_VARIABLE_SIZE|MEM_ALLOC_SIZE|NUM_SUB_GROUPS|ON_DEVICE_(?:EVENTS|QUEUES)|PARAMETER_SIZE|PIPE_ARGS|READ_IMAGE_ARGS|READ_WRITE_IMAGE_ARGS|SAMPLERS|WORK_GROUP_SIZE|WORK_ITEM_DIMENSIONS|WORK_ITEM_SIZES|WRITE_IMAGE_ARGS)|MEM_BASE_ADDR_ALIGN|MIN_DATA_TYPE_ALIGN_SIZE|NAME|NATIVE_VECTOR_WIDTH_(?:CHAR|DOUBLE|FLOAT|HALF|INT|LONG|SHORT)|NOT_(?:AVAILABLE|FOUND)|OPENCL_C_VERSION|PARENT_DEVICE|PARTITION_(?:AFFINITY_DOMAIN|BY_AFFINITY_DOMAIN|BY_COUNTS|BY_COUNTS_LIST_END|EQUALLY|FAILED|MAX_SUB_DEVICES|PROPERTIES|TYPE)|PIPE_MAX_(?:ACTIVE_RESERVATIONS|PACKET_SIZE)|PLATFORM|PREFERRED_(?:GLOBAL_ATOMIC_ALIGNMENT|INTEROP_USER_SYNC|LOCAL_ATOMIC_ALIGNMENT|PLATFORM_ATOMIC_ALIGNMENT|VECTOR_WIDTH_(?:CHAR|DOUBLE|FLOAT|HALF|INT|LONG|SHORT))|PRINTF_BUFFER_SIZE|PROFILE|PROFILING_TIMER_RESOLUTION|QUEUE_(?:ON_(?:DEVICE_(?:MAX_SIZE|PREFERRED_SIZE|PROPERTIES)|HOST_PROPERTIES)|PROPERTIES)|REFERENCE_COUNT|SINGLE_FP_CONFIG|SUB_GROUP_INDEPENDENT_FORWARD_PROGRESS|SVM_(?:ATOMICS|CAPABILITIES|COARSE_GRAIN_BUFFER|FINE_GRAIN_BUFFER|FINE_GRAIN_SYSTEM)|TYPE(?:_ACCELERATOR|_ALL|_CPU|_CUSTOM|_DEFAULT|_GPU)?|VENDOR(?:_ID)?|VERSION)|DRIVER_VERSION|EVENT_(?:COMMAND_(?:EXECUTION_STATUS|QUEUE|TYPE)|CONTEXT|REFERENCE_COUNT)|EXEC_(?:KERNEL|NATIVE_KERNEL|STATUS_ERROR_FOR_EVENTS_IN_WAIT_LIST)|FILTER_(?:LINEAR|NEAREST)|FLOAT|FP_(?:CORRECTLY_ROUNDED_DIVIDE_SQRT|DENORM|FMA|INF_NAN|ROUND_TO_INF|ROUND_TO_NEAREST|ROUND_TO_ZERO|SOFT_FLOAT)|GLOBAL|HALF_FLOAT|IMAGE_(?:ARRAY_SIZE|BUFFER|DEPTH|ELEMENT_SIZE|FORMAT|FORMAT_MISMATCH|FORMAT_NOT_SUPPORTED|HEIGHT|NUM_MIP_LEVELS|NUM_SAMPLES|ROW_PITCH|SLICE_PITCH|WIDTH)|INTENSITY|INVALID_(?:ARG_INDEX|ARG_SIZE|ARG_VALUE|BINARY|BUFFER_SIZE|BUILD_OPTIONS|COMMAND_QUEUE|COMPILER_OPTIONS|CONTEXT|DEVICE|DEVICE_PARTITION_COUNT|DEVICE_QUEUE|DEVICE_TYPE|EVENT|EVENT_WAIT_LIST|GLOBAL_OFFSET|GLOBAL_WORK_SIZE|GL_OBJECT|HOST_PTR|IMAGE_DESCRIPTOR|IMAGE_FORMAT_DESCRIPTOR|IMAGE_SIZE|KERNEL|KERNEL_ARGS|KERNEL_DEFINITION|KERNEL_NAME|LINKER_OPTIONS|MEM_OBJECT|MIP_LEVEL|OPERATION|PIPE_SIZE|PLATFORM|PROGRAM|PROGRAM_EXECUTABLE|PROPERTY|QUEUE_PROPERTIES|SAMPLER|VALUE|WORK_DIMENSION|WORK_GROUP_SIZE|WORK_ITEM_SIZE)|KERNEL_(?:ARG_(?:ACCESS_(?:NONE|QUALIFIER|READ_ONLY|READ_WRITE|WRITE_ONLY)|ADDRESS_(?:CONSTANT|GLOBAL|LOCAL|PRIVATE|QUALIFIER)|INFO_NOT_AVAILABLE|NAME|TYPE_(?:CONST|NAME|NONE|PIPE|QUALIFIER|RESTRICT|VOLATILE))|ATTRIBUTES|COMPILE_NUM_SUB_GROUPS|COMPILE_WORK_GROUP_SIZE|CONTEXT|EXEC_INFO_SVM_FINE_GRAIN_SYSTEM|EXEC_INFO_SVM_PTRS|FUNCTION_NAME|GLOBAL_WORK_SIZE|LOCAL_MEM_SIZE|LOCAL_SIZE_FOR_SUB_GROUP_COUNT|MAX_NUM_SUB_GROUPS|MAX_SUB_GROUP_SIZE_FOR_NDRANGE|NUM_ARGS|PREFERRED_WORK_GROUP_SIZE_MULTIPLE|PRIVATE_MEM_SIZE|PROGRAM|REFERENCE_COUNT|SUB_GROUP_COUNT_FOR_NDRANGE|WORK_GROUP_SIZE)|LINKER_NOT_AVAILABLE|LINK_PROGRAM_FAILURE|LOCAL|LUMINANCE|MAP_(?:FAILURE|READ|WRITE|WRITE_INVALIDATE_REGION)|MEM_(?:ALLOC_HOST_PTR|ASSOCIATED_MEMOBJECT|CONTEXT|COPY_HOST_PTR|COPY_OVERLAP|FLAGS|HOST_NO_ACCESS|HOST_PTR|HOST_READ_ONLY|HOST_WRITE_ONLY|KERNEL_READ_AND_WRITE|MAP_COUNT|OBJECT_(?:ALLOCATION_FAILURE|BUFFER|IMAGE1D|IMAGE1D_ARRAY|IMAGE1D_BUFFER|IMAGE2D|IMAGE2D_ARRAY|IMAGE3D|PIPE)|OFFSET|READ_ONLY|READ_WRITE|REFERENCE_COUNT|SIZE|SVM_ATOMICS|SVM_FINE_GRAIN_BUFFER|TYPE|USES_SVM_POINTER|USE_HOST_PTR|WRITE_ONLY)|MIGRATE_MEM_OBJECT_(?:CONTENT_UNDEFINED|HOST)|MISALIGNED_SUB_BUFFER_OFFSET|NONE|NON_BLOCKING|OUT_OF_(?:HOST_MEMORY|RESOURCES)|PIPE_(?:MAX_PACKETS|PACKET_SIZE)|PLATFORM_(?:EXTENSIONS|HOST_TIMER_RESOLUTION|NAME|PROFILE|VENDOR|VERSION)|PROFILING_(?:COMMAND_(?:COMPLETE|END|QUEUED|START|SUBMIT)|INFO_NOT_AVAILABLE)|PROGRAM_(?:BINARIES|BINARY_SIZES|BINARY_TYPE(?:_COMPILED_OBJECT|_EXECUTABLE|_LIBRARY|_NONE)?|BUILD_(?:GLOBAL_VARIABLE_TOTAL_SIZE|LOG|OPTIONS|STATUS)|CONTEXT|DEVICES|IL|KERNEL_NAMES|NUM_DEVICES|NUM_KERNELS|REFERENCE_COUNT|SOURCE)|QUEUED|QUEUE_(?:CONTEXT|DEVICE|DEVICE_DEFAULT|ON_DEVICE|ON_DEVICE_DEFAULT|OUT_OF_ORDER_EXEC_MODE_ENABLE|PROFILING_ENABLE|PROPERTIES|REFERENCE_COUNT|SIZE)|R|RA|READ_(?:ONLY|WRITE)_CACHE|RG|RGB|RGBA|RGBx|RGx|RUNNING|Rx|SAMPLER_(?:ADDRESSING_MODE|CONTEXT|FILTER_MODE|LOD_MAX|LOD_MIN|MIP_FILTER_MODE|NORMALIZED_COORDS|REFERENCE_COUNT)|(?:UN)?SIGNED_INT(?:8|16|32)|SNORM_INT(?:8|16)|SUBMITTED|SUCCESS|UNORM_INT(?:8|16|24|_101010|_101010_2)|UNORM_SHORT_(?:555|565)|VERSION_(?:1_0|1_1|1_2|2_0|2_1)|sBGRA|sRGB|sRGBA|sRGBx)\b/,alias:"constant"},"function-opencl-host":{pattern:/\bcl(?:BuildProgram|CloneKernel|CompileProgram|Create(?:Buffer|CommandQueue(?:WithProperties)?|Context|ContextFromType|Image|Image2D|Image3D|Kernel|KernelsInProgram|Pipe|ProgramWith(?:Binary|BuiltInKernels|IL|Source)|Sampler|SamplerWithProperties|SubBuffer|SubDevices|UserEvent)|Enqueue(?:(?:Barrier|Marker)(?:WithWaitList)?|Copy(?:Buffer(?:Rect|ToImage)?|Image(?:ToBuffer)?)|(?:Fill|Map)(?:Buffer|Image)|MigrateMemObjects|NDRangeKernel|NativeKernel|(?:Read|Write)(?:Buffer(?:Rect)?|Image)|SVM(?:Free|Map|MemFill|Memcpy|MigrateMem|Unmap)|Task|UnmapMemObject|WaitForEvents)|Finish|Flush|Get(?:CommandQueueInfo|ContextInfo|Device(?:AndHostTimer|IDs|Info)|Event(?:Profiling)?Info|ExtensionFunctionAddress(?:ForPlatform)?|HostTimer|ImageInfo|Kernel(?:ArgInfo|Info|SubGroupInfo|WorkGroupInfo)|MemObjectInfo|PipeInfo|Platform(?:IDs|Info)|Program(?:Build)?Info|SamplerInfo|SupportedImageFormats)|LinkProgram|(?:Release|Retain)(?:CommandQueue|Context|Device|Event|Kernel|MemObject|Program|Sampler)|SVM(?:Alloc|Free)|Set(?:CommandQueueProperty|DefaultDeviceCommandQueue|EventCallback|Kernel|Kernel(?:Arg(?:SVMPointer)?|ExecInfo)|MemObjectDestructorCallback|UserEventStatus)|Unload(?:Platform)?Compiler|WaitForEvents)\b/,alias:"function"}};r.languages.insertBefore("c","keyword",a),r.languages.cpp&&(a["type-opencl-host-cpp"]={pattern:/\b(?:Buffer|BufferGL|BufferRenderGL|CommandQueue|Context|Device|DeviceCommandQueue|EnqueueArgs|Event|Image|Image1D|Image1DArray|Image1DBuffer|Image2D|Image2DArray|Image2DGL|Image3D|Image3DGL|ImageFormat|ImageGL|Kernel|KernelFunctor|LocalSpaceArg|Memory|NDRange|Pipe|Platform|Program|SVMAllocator|SVMTraitAtomic|SVMTraitCoarse|SVMTraitFine|SVMTraitReadOnly|SVMTraitReadWrite|SVMTraitWriteOnly|Sampler|UserEvent)\b/,alias:"keyword"},r.languages.insertBefore("cpp","keyword",a))})(n)}return LI}var FI,g7;function e6e(){if(g7)return FI;g7=1,FI=e,e.displayName="openqasm",e.aliases=["qasm"];function e(t){t.languages.openqasm={comment:/\/\*[\s\S]*?\*\/|\/\/.*/,string:{pattern:/"[^"\r\n\t]*"|'[^'\r\n\t]*'/,greedy:!0},keyword:/\b(?:CX|OPENQASM|U|barrier|boxas|boxto|break|const|continue|ctrl|def|defcal|defcalgrammar|delay|else|end|for|gate|gphase|if|in|include|inv|kernel|lengthof|let|measure|pow|reset|return|rotary|stretchinf|while)\b|#pragma\b/,"class-name":/\b(?:angle|bit|bool|creg|fixed|float|int|length|qreg|qubit|stretch|uint)\b/,function:/\b(?:cos|exp|ln|popcount|rotl|rotr|sin|sqrt|tan)\b(?=\s*\()/,constant:/\b(?:euler|pi|tau)\b|π|𝜏|ℇ/,number:{pattern:/(^|[^.\w$])(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?(?:dt|ns|us|µs|ms|s)?/i,lookbehind:!0},operator:/->|>>=?|<<=?|&&|\|\||\+\+|--|[!=<>&|~^+\-*/%]=?|@/,punctuation:/[(){}\[\];,:.]/},t.languages.qasm=t.languages.openqasm}return FI}var jI,v7;function t6e(){if(v7)return jI;v7=1,jI=e,e.displayName="oz",e.aliases=[];function e(t){t.languages.oz={comment:{pattern:/\/\*[\s\S]*?\*\/|%.*/,greedy:!0},string:{pattern:/"(?:[^"\\]|\\[\s\S])*"/,greedy:!0},atom:{pattern:/'(?:[^'\\]|\\[\s\S])*'/,greedy:!0,alias:"builtin"},keyword:/\$|\[\]|\b(?:_|at|attr|case|catch|choice|class|cond|declare|define|dis|else(?:case|if)?|end|export|fail|false|feat|finally|from|fun|functor|if|import|in|local|lock|meth|nil|not|of|or|prepare|proc|prop|raise|require|self|skip|then|thread|true|try|unit)\b/,function:[/\b[a-z][A-Za-z\d]*(?=\()/,{pattern:/(\{)[A-Z][A-Za-z\d]*\b/,lookbehind:!0}],number:/\b(?:0[bx][\da-f]+|\d+(?:\.\d*)?(?:e~?\d+)?)\b|&(?:[^\\]|\\(?:\d{3}|.))/i,variable:/`(?:[^`\\]|\\.)+`/,"attr-name":/\b\w+(?=[ \t]*:(?![:=]))/,operator:/:(?:=|::?)|<[-:=]?|=(?:=|=?:?|\\=:?|!!?|[|#+\-*\/,~^@]|\b(?:andthen|div|mod|orelse)\b/,punctuation:/[\[\](){}.:;?]/}}return jI}var UI,y7;function n6e(){if(y7)return UI;y7=1,UI=e,e.displayName="parigp",e.aliases=[];function e(t){t.languages.parigp={comment:/\/\*[\s\S]*?\*\/|\\\\.*/,string:{pattern:/"(?:[^"\\\r\n]|\\.)*"/,greedy:!0},keyword:(function(){var n=["breakpoint","break","dbg_down","dbg_err","dbg_up","dbg_x","forcomposite","fordiv","forell","forpart","forprime","forstep","forsubgroup","forvec","for","iferr","if","local","my","next","return","until","while"];return n=n.map(function(r){return r.split("").join(" *")}).join("|"),RegExp("\\b(?:"+n+")\\b")})(),function:/\b\w(?:[\w ]*\w)?(?= *\()/,number:{pattern:/((?:\. *\. *)?)(?:\b\d(?: *\d)*(?: *(?!\. *\.)\.(?: *\d)*)?|\. *\d(?: *\d)*)(?: *e *(?:[+-] *)?\d(?: *\d)*)?/i,lookbehind:!0},operator:/\. *\.|[*\/!](?: *=)?|%(?: *=|(?: *#)?(?: *')*)?|\+(?: *[+=])?|-(?: *[-=>])?|<(?: *>|(?: *<)?(?: *=)?)?|>(?: *>)?(?: *=)?|=(?: *=){0,2}|\\(?: *\/)?(?: *=)?|&(?: *&)?|\| *\||['#~^]/,punctuation:/[\[\]{}().,:;|]/}}return UI}var BI,b7;function r6e(){if(b7)return BI;b7=1,BI=e,e.displayName="parser",e.aliases=[];function e(t){(function(n){var r=n.languages.parser=n.languages.extend("markup",{keyword:{pattern:/(^|[^^])(?:\^(?:case|eval|for|if|switch|throw)\b|@(?:BASE|CLASS|GET(?:_DEFAULT)?|OPTIONS|SET_DEFAULT|USE)\b)/,lookbehind:!0},variable:{pattern:/(^|[^^])\B\$(?:\w+|(?=[.{]))(?:(?:\.|::?)\w+)*(?:\.|::?)?/,lookbehind:!0,inside:{punctuation:/\.|:+/}},function:{pattern:/(^|[^^])\B[@^]\w+(?:(?:\.|::?)\w+)*(?:\.|::?)?/,lookbehind:!0,inside:{keyword:{pattern:/(^@)(?:GET_|SET_)/,lookbehind:!0},punctuation:/\.|:+/}},escape:{pattern:/\^(?:[$^;@()\[\]{}"':]|#[a-f\d]*)/i,alias:"builtin"},punctuation:/[\[\](){};]/});r=n.languages.insertBefore("parser","keyword",{"parser-comment":{pattern:/(\s)#.*/,lookbehind:!0,alias:"comment"},expression:{pattern:/(^|[^^])\((?:[^()]|\((?:[^()]|\((?:[^()])*\))*\))*\)/,greedy:!0,lookbehind:!0,inside:{string:{pattern:/(^|[^^])(["'])(?:(?!\2)[^^]|\^[\s\S])*\2/,lookbehind:!0},keyword:r.keyword,variable:r.variable,function:r.function,boolean:/\b(?:false|true)\b/,number:/\b(?:0x[a-f\d]+|\d+(?:\.\d*)?(?:e[+-]?\d+)?)\b/i,escape:r.escape,operator:/[~+*\/\\%]|!(?:\|\|?|=)?|&&?|\|\|?|==|<[<=]?|>[>=]?|-[fd]?|\b(?:def|eq|ge|gt|in|is|le|lt|ne)\b/,punctuation:r.punctuation}}}),n.languages.insertBefore("inside","punctuation",{expression:r.expression,keyword:r.keyword,variable:r.variable,function:r.function,escape:r.escape,"parser-punctuation":{pattern:r.punctuation,alias:"punctuation"}},r.tag.inside["attr-value"])})(t)}return BI}var WI,w7;function a6e(){if(w7)return WI;w7=1,WI=e,e.displayName="pascal",e.aliases=["objectpascal"];function e(t){t.languages.pascal={directive:{pattern:/\{\$[\s\S]*?\}/,greedy:!0,alias:["marco","property"]},comment:{pattern:/\(\*[\s\S]*?\*\)|\{[\s\S]*?\}|\/\/.*/,greedy:!0},string:{pattern:/(?:'(?:''|[^'\r\n])*'(?!')|#[&$%]?[a-f\d]+)+|\^[a-z]/i,greedy:!0},asm:{pattern:/(\basm\b)[\s\S]+?(?=\bend\s*[;[])/i,lookbehind:!0,greedy:!0,inside:null},keyword:[{pattern:/(^|[^&])\b(?:absolute|array|asm|begin|case|const|constructor|destructor|do|downto|else|end|file|for|function|goto|if|implementation|inherited|inline|interface|label|nil|object|of|operator|packed|procedure|program|record|reintroduce|repeat|self|set|string|then|to|type|unit|until|uses|var|while|with)\b/i,lookbehind:!0},{pattern:/(^|[^&])\b(?:dispose|exit|false|new|true)\b/i,lookbehind:!0},{pattern:/(^|[^&])\b(?:class|dispinterface|except|exports|finalization|finally|initialization|inline|library|on|out|packed|property|raise|resourcestring|threadvar|try)\b/i,lookbehind:!0},{pattern:/(^|[^&])\b(?:absolute|abstract|alias|assembler|bitpacked|break|cdecl|continue|cppdecl|cvar|default|deprecated|dynamic|enumerator|experimental|export|external|far|far16|forward|generic|helper|implements|index|interrupt|iochecks|local|message|name|near|nodefault|noreturn|nostackframe|oldfpccall|otherwise|overload|override|pascal|platform|private|protected|public|published|read|register|reintroduce|result|safecall|saveregisters|softfloat|specialize|static|stdcall|stored|strict|unaligned|unimplemented|varargs|virtual|write)\b/i,lookbehind:!0}],number:[/(?:[&%]\d+|\$[a-f\d]+)/i,/\b\d+(?:\.\d+)?(?:e[+-]?\d+)?/i],operator:[/\.\.|\*\*|:=|<[<=>]?|>[>=]?|[+\-*\/]=?|[@^=]/,{pattern:/(^|[^&])\b(?:and|as|div|exclude|in|include|is|mod|not|or|shl|shr|xor)\b/,lookbehind:!0}],punctuation:/\(\.|\.\)|[()\[\]:;,.]/},t.languages.pascal.asm.inside=t.languages.extend("pascal",{asm:void 0,keyword:void 0,operator:void 0}),t.languages.objectpascal=t.languages.pascal}return WI}var zI,S7;function i6e(){if(S7)return zI;S7=1,zI=e,e.displayName="pascaligo",e.aliases=[];function e(t){(function(n){var r=/\((?:[^()]|\((?:[^()]|\([^()]*\))*\))*\)/.source,a=/(?:\b\w+(?:)?|)/.source.replace(//g,function(){return r}),i=n.languages.pascaligo={comment:/\(\*[\s\S]+?\*\)|\/\/.*/,string:{pattern:/(["'`])(?:\\[\s\S]|(?!\1)[^\\])*\1|\^[a-z]/i,greedy:!0},"class-name":[{pattern:RegExp(/(\btype\s+\w+\s+is\s+)/.source.replace(//g,function(){return a}),"i"),lookbehind:!0,inside:null},{pattern:RegExp(/(?=\s+is\b)/.source.replace(//g,function(){return a}),"i"),inside:null},{pattern:RegExp(/(:\s*)/.source.replace(//g,function(){return a})),lookbehind:!0,inside:null}],keyword:{pattern:/(^|[^&])\b(?:begin|block|case|const|else|end|fail|for|from|function|if|is|nil|of|remove|return|skip|then|type|var|while|with)\b/i,lookbehind:!0},boolean:{pattern:/(^|[^&])\b(?:False|True)\b/i,lookbehind:!0},builtin:{pattern:/(^|[^&])\b(?:bool|int|list|map|nat|record|string|unit)\b/i,lookbehind:!0},function:/\b\w+(?=\s*\()/,number:[/%[01]+|&[0-7]+|\$[a-f\d]+/i,/\b\d+(?:\.\d+)?(?:e[+-]?\d+)?(?:mtz|n)?/i],operator:/->|=\/=|\.\.|\*\*|:=|<[<=>]?|>[>=]?|[+\-*\/]=?|[@^=|]|\b(?:and|mod|or)\b/,punctuation:/\(\.|\.\)|[()\[\]:;,.{}]/},o=["comment","keyword","builtin","operator","punctuation"].reduce(function(l,u){return l[u]=i[u],l},{});i["class-name"].forEach(function(l){l.inside=o})})(t)}return zI}var qI,E7;function o6e(){if(E7)return qI;E7=1,qI=e,e.displayName="pcaxis",e.aliases=["px"];function e(t){t.languages.pcaxis={string:/"[^"]*"/,keyword:{pattern:/((?:^|;)\s*)[-A-Z\d]+(?:\s*\[[-\w]+\])?(?:\s*\("[^"]*"(?:,\s*"[^"]*")*\))?(?=\s*=)/,lookbehind:!0,greedy:!0,inside:{keyword:/^[-A-Z\d]+/,language:{pattern:/^(\s*)\[[-\w]+\]/,lookbehind:!0,inside:{punctuation:/^\[|\]$/,property:/[-\w]+/}},"sub-key":{pattern:/^(\s*)\S[\s\S]*/,lookbehind:!0,inside:{parameter:{pattern:/"[^"]*"/,alias:"property"},punctuation:/^\(|\)$|,/}}}},operator:/=/,tlist:{pattern:/TLIST\s*\(\s*\w+(?:(?:\s*,\s*"[^"]*")+|\s*,\s*"[^"]*"-"[^"]*")?\s*\)/,greedy:!0,inside:{function:/^TLIST/,property:{pattern:/^(\s*\(\s*)\w+/,lookbehind:!0},string:/"[^"]*"/,punctuation:/[(),]/,operator:/-/}},punctuation:/[;,]/,number:{pattern:/(^|\s)\d+(?:\.\d+)?(?!\S)/,lookbehind:!0},boolean:/NO|YES/},t.languages.px=t.languages.pcaxis}return qI}var HI,T7;function s6e(){if(T7)return HI;T7=1,HI=e,e.displayName="peoplecode",e.aliases=["pcode"];function e(t){t.languages.peoplecode={comment:RegExp([/\/\*[\s\S]*?\*\//.source,/\bREM[^;]*;/.source,/<\*(?:[^<*]|\*(?!>)|<(?!\*)|<\*(?:(?!\*>)[\s\S])*\*>)*\*>/.source,/\/\+[\s\S]*?\+\//.source].join("|")),string:{pattern:/'(?:''|[^'\r\n])*'(?!')|"(?:""|[^"\r\n])*"(?!")/,greedy:!0},variable:/%\w+/,"function-definition":{pattern:/((?:^|[^\w-])(?:function|method)\s+)\w+/i,lookbehind:!0,alias:"function"},"class-name":{pattern:/((?:^|[^-\w])(?:as|catch|class|component|create|extends|global|implements|instance|local|of|property|returns)\s+)\w+(?::\w+)*/i,lookbehind:!0,inside:{punctuation:/:/}},keyword:/\b(?:abstract|alias|as|catch|class|component|constant|create|declare|else|end-(?:class|evaluate|for|function|get|if|method|set|try|while)|evaluate|extends|for|function|get|global|if|implements|import|instance|library|local|method|null|of|out|peopleCode|private|program|property|protected|readonly|ref|repeat|returns?|set|step|then|throw|to|try|until|value|when(?:-other)?|while)\b/i,"operator-keyword":{pattern:/\b(?:and|not|or)\b/i,alias:"operator"},function:/[_a-z]\w*(?=\s*\()/i,boolean:/\b(?:false|true)\b/i,number:/\b\d+(?:\.\d+)?\b/,operator:/<>|[<>]=?|!=|\*\*|[-+*/|=@]/,punctuation:/[:.;,()[\]]/},t.languages.pcode=t.languages.peoplecode}return HI}var VI,C7;function l6e(){if(C7)return VI;C7=1,VI=e,e.displayName="perl",e.aliases=[];function e(t){(function(n){var r=/(?:\((?:[^()\\]|\\[\s\S])*\)|\{(?:[^{}\\]|\\[\s\S])*\}|\[(?:[^[\]\\]|\\[\s\S])*\]|<(?:[^<>\\]|\\[\s\S])*>)/.source;n.languages.perl={comment:[{pattern:/(^\s*)=\w[\s\S]*?=cut.*/m,lookbehind:!0,greedy:!0},{pattern:/(^|[^\\$])#.*/,lookbehind:!0,greedy:!0}],string:[{pattern:RegExp(/\b(?:q|qq|qw|qx)(?![a-zA-Z0-9])\s*/.source+"(?:"+[/([^a-zA-Z0-9\s{(\[<])(?:(?!\1)[^\\]|\\[\s\S])*\1/.source,/([a-zA-Z0-9])(?:(?!\2)[^\\]|\\[\s\S])*\2/.source,r].join("|")+")"),greedy:!0},{pattern:/("|`)(?:(?!\1)[^\\]|\\[\s\S])*\1/,greedy:!0},{pattern:/'(?:[^'\\\r\n]|\\.)*'/,greedy:!0}],regex:[{pattern:RegExp(/\b(?:m|qr)(?![a-zA-Z0-9])\s*/.source+"(?:"+[/([^a-zA-Z0-9\s{(\[<])(?:(?!\1)[^\\]|\\[\s\S])*\1/.source,/([a-zA-Z0-9])(?:(?!\2)[^\\]|\\[\s\S])*\2/.source,r].join("|")+")"+/[msixpodualngc]*/.source),greedy:!0},{pattern:RegExp(/(^|[^-])\b(?:s|tr|y)(?![a-zA-Z0-9])\s*/.source+"(?:"+[/([^a-zA-Z0-9\s{(\[<])(?:(?!\2)[^\\]|\\[\s\S])*\2(?:(?!\2)[^\\]|\\[\s\S])*\2/.source,/([a-zA-Z0-9])(?:(?!\3)[^\\]|\\[\s\S])*\3(?:(?!\3)[^\\]|\\[\s\S])*\3/.source,r+/\s*/.source+r].join("|")+")"+/[msixpodualngcer]*/.source),lookbehind:!0,greedy:!0},{pattern:/\/(?:[^\/\\\r\n]|\\.)*\/[msixpodualngc]*(?=\s*(?:$|[\r\n,.;})&|\-+*~<>!?^]|(?:and|cmp|eq|ge|gt|le|lt|ne|not|or|x|xor)\b))/,greedy:!0}],variable:[/[&*$@%]\{\^[A-Z]+\}/,/[&*$@%]\^[A-Z_]/,/[&*$@%]#?(?=\{)/,/[&*$@%]#?(?:(?:::)*'?(?!\d)[\w$]+(?![\w$]))+(?:::)*/,/[&*$@%]\d+/,/(?!%=)[$@%][!"#$%&'()*+,\-.\/:;<=>?@[\\\]^_`{|}~]/],filehandle:{pattern:/<(?![<=])\S*?>|\b_\b/,alias:"symbol"},"v-string":{pattern:/v\d+(?:\.\d+)*|\d+(?:\.\d+){2,}/,alias:"string"},function:{pattern:/(\bsub[ \t]+)\w+/,lookbehind:!0},keyword:/\b(?:any|break|continue|default|delete|die|do|else|elsif|eval|for|foreach|given|goto|if|last|local|my|next|our|package|print|redo|require|return|say|state|sub|switch|undef|unless|until|use|when|while)\b/,number:/\b(?:0x[\dA-Fa-f](?:_?[\dA-Fa-f])*|0b[01](?:_?[01])*|(?:(?:\d(?:_?\d)*)?\.)?\d(?:_?\d)*(?:[Ee][+-]?\d+)?)\b/,operator:/-[rwxoRWXOezsfdlpSbctugkTBMAC]\b|\+[+=]?|-[-=>]?|\*\*?=?|\/\/?=?|=[=~>]?|~[~=]?|\|\|?=?|&&?=?|<(?:=>?|<=?)?|>>?=?|![~=]?|[%^]=?|\.(?:=|\.\.?)?|[\\?]|\bx(?:=|\b)|\b(?:and|cmp|eq|ge|gt|le|lt|ne|not|or|xor)\b/,punctuation:/[{}[\];(),:]/}})(t)}return VI}var GI,k7;function u6e(){if(k7)return GI;k7=1;var e=z_();GI=t,t.displayName="phpExtras",t.aliases=[];function t(n){n.register(e),n.languages.insertBefore("php","variable",{this:{pattern:/\$this\b/,alias:"keyword"},global:/\$(?:GLOBALS|HTTP_RAW_POST_DATA|_(?:COOKIE|ENV|FILES|GET|POST|REQUEST|SERVER|SESSION)|argc|argv|http_response_header|php_errormsg)\b/,scope:{pattern:/\b[\w\\]+::/,inside:{keyword:/\b(?:parent|self|static)\b/,punctuation:/::|\\/}}})}return GI}var YI,x7;function c6e(){if(x7)return YI;x7=1;var e=z_(),t=W_();YI=n,n.displayName="phpdoc",n.aliases=[];function n(r){r.register(e),r.register(t),(function(a){var i=/(?:\b[a-zA-Z]\w*|[|\\[\]])+/.source;a.languages.phpdoc=a.languages.extend("javadoclike",{parameter:{pattern:RegExp("(@(?:global|param|property(?:-read|-write)?|var)\\s+(?:"+i+"\\s+)?)\\$\\w+"),lookbehind:!0}}),a.languages.insertBefore("phpdoc","keyword",{"class-name":[{pattern:RegExp("(@(?:global|package|param|property(?:-read|-write)?|return|subpackage|throws|var)\\s+)"+i),lookbehind:!0,inside:{keyword:/\b(?:array|bool|boolean|callback|double|false|float|int|integer|mixed|null|object|resource|self|string|true|void)\b/,punctuation:/[|\\[\]()]/}}]}),a.languages.javadoclike.addSupport("php",a.languages.phpdoc)})(r)}return YI}var KI,_7;function d6e(){if(_7)return KI;_7=1;var e=Gj();KI=t,t.displayName="plsql",t.aliases=[];function t(n){n.register(e),n.languages.plsql=n.languages.extend("sql",{comment:{pattern:/\/\*[\s\S]*?\*\/|--.*/,greedy:!0},keyword:/\b(?:A|ACCESSIBLE|ADD|AGENT|AGGREGATE|ALL|ALTER|AND|ANY|ARRAY|AS|ASC|AT|ATTRIBUTE|AUTHID|AVG|BEGIN|BETWEEN|BFILE_BASE|BINARY|BLOB_BASE|BLOCK|BODY|BOTH|BOUND|BULK|BY|BYTE|C|CALL|CALLING|CASCADE|CASE|CHAR|CHARACTER|CHARSET|CHARSETFORM|CHARSETID|CHAR_BASE|CHECK|CLOB_BASE|CLONE|CLOSE|CLUSTER|CLUSTERS|COLAUTH|COLLECT|COLUMNS|COMMENT|COMMIT|COMMITTED|COMPILED|COMPRESS|CONNECT|CONSTANT|CONSTRUCTOR|CONTEXT|CONTINUE|CONVERT|COUNT|CRASH|CREATE|CREDENTIAL|CURRENT|CURSOR|CUSTOMDATUM|DANGLING|DATA|DATE|DATE_BASE|DAY|DECLARE|DEFAULT|DEFINE|DELETE|DESC|DETERMINISTIC|DIRECTORY|DISTINCT|DOUBLE|DROP|DURATION|ELEMENT|ELSE|ELSIF|EMPTY|END|ESCAPE|EXCEPT|EXCEPTION|EXCEPTIONS|EXCLUSIVE|EXECUTE|EXISTS|EXIT|EXTERNAL|FETCH|FINAL|FIRST|FIXED|FLOAT|FOR|FORALL|FORCE|FROM|FUNCTION|GENERAL|GOTO|GRANT|GROUP|HASH|HAVING|HEAP|HIDDEN|HOUR|IDENTIFIED|IF|IMMEDIATE|IMMUTABLE|IN|INCLUDING|INDEX|INDEXES|INDICATOR|INDICES|INFINITE|INSERT|INSTANTIABLE|INT|INTERFACE|INTERSECT|INTERVAL|INTO|INVALIDATE|IS|ISOLATION|JAVA|LANGUAGE|LARGE|LEADING|LENGTH|LEVEL|LIBRARY|LIKE|LIKE2|LIKE4|LIKEC|LIMIT|LIMITED|LOCAL|LOCK|LONG|LOOP|MAP|MAX|MAXLEN|MEMBER|MERGE|MIN|MINUS|MINUTE|MOD|MODE|MODIFY|MONTH|MULTISET|MUTABLE|NAME|NAN|NATIONAL|NATIVE|NCHAR|NEW|NOCOMPRESS|NOCOPY|NOT|NOWAIT|NULL|NUMBER_BASE|OBJECT|OCICOLL|OCIDATE|OCIDATETIME|OCIDURATION|OCIINTERVAL|OCILOBLOCATOR|OCINUMBER|OCIRAW|OCIREF|OCIREFCURSOR|OCIROWID|OCISTRING|OCITYPE|OF|OLD|ON|ONLY|OPAQUE|OPEN|OPERATOR|OPTION|OR|ORACLE|ORADATA|ORDER|ORGANIZATION|ORLANY|ORLVARY|OTHERS|OUT|OVERLAPS|OVERRIDING|PACKAGE|PARALLEL_ENABLE|PARAMETER|PARAMETERS|PARENT|PARTITION|PASCAL|PERSISTABLE|PIPE|PIPELINED|PLUGGABLE|POLYMORPHIC|PRAGMA|PRECISION|PRIOR|PRIVATE|PROCEDURE|PUBLIC|RAISE|RANGE|RAW|READ|RECORD|REF|REFERENCE|RELIES_ON|REM|REMAINDER|RENAME|RESOURCE|RESULT|RESULT_CACHE|RETURN|RETURNING|REVERSE|REVOKE|ROLLBACK|ROW|SAMPLE|SAVE|SAVEPOINT|SB1|SB2|SB4|SECOND|SEGMENT|SELECT|SELF|SEPARATE|SEQUENCE|SERIALIZABLE|SET|SHARE|SHORT|SIZE|SIZE_T|SOME|SPARSE|SQL|SQLCODE|SQLDATA|SQLNAME|SQLSTATE|STANDARD|START|STATIC|STDDEV|STORED|STRING|STRUCT|STYLE|SUBMULTISET|SUBPARTITION|SUBSTITUTABLE|SUBTYPE|SUM|SYNONYM|TABAUTH|TABLE|TDO|THE|THEN|TIME|TIMESTAMP|TIMEZONE_ABBR|TIMEZONE_HOUR|TIMEZONE_MINUTE|TIMEZONE_REGION|TO|TRAILING|TRANSACTION|TRANSACTIONAL|TRUSTED|TYPE|UB1|UB2|UB4|UNDER|UNION|UNIQUE|UNPLUG|UNSIGNED|UNTRUSTED|UPDATE|USE|USING|VALIST|VALUE|VALUES|VARIABLE|VARIANCE|VARRAY|VARYING|VIEW|VIEWS|VOID|WHEN|WHERE|WHILE|WITH|WORK|WRAPPED|WRITE|YEAR|ZONE)\b/i,operator:/:=?|=>|[<>^~!]=|\.\.|\|\||\*\*|[-+*/%<>=@]/}),n.languages.insertBefore("plsql","operator",{label:{pattern:/<<\s*\w+\s*>>/,alias:"symbol"}})}return KI}var XI,O7;function f6e(){if(O7)return XI;O7=1,XI=e,e.displayName="powerquery",e.aliases=[];function e(t){t.languages.powerquery={comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?\*\/|\/\/.*)/,lookbehind:!0,greedy:!0},"quoted-identifier":{pattern:/#"(?:[^"\r\n]|"")*"(?!")/,greedy:!0},string:{pattern:/(?:#!)?"(?:[^"\r\n]|"")*"(?!")/,greedy:!0},constant:[/\bDay\.(?:Friday|Monday|Saturday|Sunday|Thursday|Tuesday|Wednesday)\b/,/\bTraceLevel\.(?:Critical|Error|Information|Verbose|Warning)\b/,/\bOccurrence\.(?:All|First|Last)\b/,/\bOrder\.(?:Ascending|Descending)\b/,/\bRoundingMode\.(?:AwayFromZero|Down|ToEven|TowardZero|Up)\b/,/\bMissingField\.(?:Error|Ignore|UseNull)\b/,/\bQuoteStyle\.(?:Csv|None)\b/,/\bJoinKind\.(?:FullOuter|Inner|LeftAnti|LeftOuter|RightAnti|RightOuter)\b/,/\bGroupKind\.(?:Global|Local)\b/,/\bExtraValues\.(?:Error|Ignore|List)\b/,/\bJoinAlgorithm\.(?:Dynamic|LeftHash|LeftIndex|PairwiseHash|RightHash|RightIndex|SortMerge)\b/,/\bJoinSide\.(?:Left|Right)\b/,/\bPrecision\.(?:Decimal|Double)\b/,/\bRelativePosition\.From(?:End|Start)\b/,/\bTextEncoding\.(?:Ascii|BigEndianUnicode|Unicode|Utf16|Utf8|Windows)\b/,/\b(?:Any|Binary|Date|DateTime|DateTimeZone|Duration|Function|Int16|Int32|Int64|Int8|List|Logical|None|Number|Record|Table|Text|Time)\.Type\b/,/\bnull\b/],boolean:/\b(?:false|true)\b/,keyword:/\b(?:and|as|each|else|error|if|in|is|let|meta|not|nullable|optional|or|otherwise|section|shared|then|try|type)\b|#(?:binary|date|datetime|datetimezone|duration|infinity|nan|sections|shared|table|time)\b/,function:{pattern:/(^|[^#\w.])[a-z_][\w.]*(?=\s*\()/i,lookbehind:!0},"data-type":{pattern:/\b(?:any|anynonnull|binary|date|datetime|datetimezone|duration|function|list|logical|none|number|record|table|text|time)\b/,alias:"class-name"},number:{pattern:/\b0x[\da-f]+\b|(?:[+-]?(?:\b\d+\.)?\b\d+|[+-]\.\d+|(^|[^.])\B\.\d+)(?:e[+-]?\d+)?\b/i,lookbehind:!0},operator:/[-+*\/&?@^]|<(?:=>?|>)?|>=?|=>?|\.\.\.?/,punctuation:/[,;\[\](){}]/},t.languages.pq=t.languages.powerquery,t.languages.mscript=t.languages.powerquery}return XI}var QI,R7;function p6e(){if(R7)return QI;R7=1,QI=e,e.displayName="powershell",e.aliases=[];function e(t){(function(n){var r=n.languages.powershell={comment:[{pattern:/(^|[^`])<#[\s\S]*?#>/,lookbehind:!0},{pattern:/(^|[^`])#.*/,lookbehind:!0}],string:[{pattern:/"(?:`[\s\S]|[^`"])*"/,greedy:!0,inside:null},{pattern:/'(?:[^']|'')*'/,greedy:!0}],namespace:/\[[a-z](?:\[(?:\[[^\]]*\]|[^\[\]])*\]|[^\[\]])*\]/i,boolean:/\$(?:false|true)\b/i,variable:/\$\w+\b/,function:[/\b(?:Add|Approve|Assert|Backup|Block|Checkpoint|Clear|Close|Compare|Complete|Compress|Confirm|Connect|Convert|ConvertFrom|ConvertTo|Copy|Debug|Deny|Disable|Disconnect|Dismount|Edit|Enable|Enter|Exit|Expand|Export|Find|ForEach|Format|Get|Grant|Group|Hide|Import|Initialize|Install|Invoke|Join|Limit|Lock|Measure|Merge|Move|New|Open|Optimize|Out|Ping|Pop|Protect|Publish|Push|Read|Receive|Redo|Register|Remove|Rename|Repair|Request|Reset|Resize|Resolve|Restart|Restore|Resume|Revoke|Save|Search|Select|Send|Set|Show|Skip|Sort|Split|Start|Step|Stop|Submit|Suspend|Switch|Sync|Tee|Test|Trace|Unblock|Undo|Uninstall|Unlock|Unprotect|Unpublish|Unregister|Update|Use|Wait|Watch|Where|Write)-[a-z]+\b/i,/\b(?:ac|cat|chdir|clc|cli|clp|clv|compare|copy|cp|cpi|cpp|cvpa|dbp|del|diff|dir|ebp|echo|epal|epcsv|epsn|erase|fc|fl|ft|fw|gal|gbp|gc|gci|gcs|gdr|gi|gl|gm|gp|gps|group|gsv|gu|gv|gwmi|iex|ii|ipal|ipcsv|ipsn|irm|iwmi|iwr|kill|lp|ls|measure|mi|mount|move|mp|mv|nal|ndr|ni|nv|ogv|popd|ps|pushd|pwd|rbp|rd|rdr|ren|ri|rm|rmdir|rni|rnp|rp|rv|rvpa|rwmi|sal|saps|sasv|sbp|sc|select|set|shcm|si|sl|sleep|sls|sort|sp|spps|spsv|start|sv|swmi|tee|trcm|type|write)\b/i],keyword:/\b(?:Begin|Break|Catch|Class|Continue|Data|Define|Do|DynamicParam|Else|ElseIf|End|Exit|Filter|Finally|For|ForEach|From|Function|If|InlineScript|Parallel|Param|Process|Return|Sequence|Switch|Throw|Trap|Try|Until|Using|Var|While|Workflow)\b/i,operator:{pattern:/(^|\W)(?:!|-(?:b?(?:and|x?or)|as|(?:Not)?(?:Contains|In|Like|Match)|eq|ge|gt|is(?:Not)?|Join|le|lt|ne|not|Replace|sh[lr])\b|-[-=]?|\+[+=]?|[*\/%]=?)/i,lookbehind:!0},punctuation:/[|{}[\];(),.]/};r.string[0].inside={function:{pattern:/(^|[^`])\$\((?:\$\([^\r\n()]*\)|(?!\$\()[^\r\n)])*\)/,lookbehind:!0,inside:r},boolean:r.boolean,variable:r.variable}})(t)}return QI}var JI,P7;function h6e(){if(P7)return JI;P7=1,JI=e,e.displayName="processing",e.aliases=[];function e(t){t.languages.processing=t.languages.extend("clike",{keyword:/\b(?:break|case|catch|class|continue|default|else|extends|final|for|if|implements|import|new|null|private|public|return|static|super|switch|this|try|void|while)\b/,function:/\b\w+(?=\s*\()/,operator:/<[<=]?|>[>=]?|&&?|\|\|?|[%?]|[!=+\-*\/]=?/}),t.languages.insertBefore("processing","number",{constant:/\b(?!XML\b)[A-Z][A-Z\d_]+\b/,type:{pattern:/\b(?:boolean|byte|char|color|double|float|int|[A-Z]\w*)\b/,alias:"class-name"}})}return JI}var ZI,A7;function m6e(){if(A7)return ZI;A7=1,ZI=e,e.displayName="prolog",e.aliases=[];function e(t){t.languages.prolog={comment:{pattern:/\/\*[\s\S]*?\*\/|%.*/,greedy:!0},string:{pattern:/(["'])(?:\1\1|\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1(?!\1)/,greedy:!0},builtin:/\b(?:fx|fy|xf[xy]?|yfx?)\b/,function:/\b[a-z]\w*(?:(?=\()|\/\d+)/,number:/\b\d+(?:\.\d*)?/,operator:/[:\\=><\-?*@\/;+^|!$.]+|\b(?:is|mod|not|xor)\b/,punctuation:/[(){}\[\],]/}}return ZI}var eD,N7;function g6e(){if(N7)return eD;N7=1,eD=e,e.displayName="promql",e.aliases=[];function e(t){(function(n){var r=["sum","min","max","avg","group","stddev","stdvar","count","count_values","bottomk","topk","quantile"],a=["on","ignoring","group_right","group_left","by","without"],i=["offset"],o=r.concat(a,i);n.languages.promql={comment:{pattern:/(^[ \t]*)#.*/m,lookbehind:!0},"vector-match":{pattern:new RegExp("((?:"+a.join("|")+")\\s*)\\([^)]*\\)"),lookbehind:!0,inside:{"label-key":{pattern:/\b[^,]+\b/,alias:"attr-name"},punctuation:/[(),]/}},"context-labels":{pattern:/\{[^{}]*\}/,inside:{"label-key":{pattern:/\b[a-z_]\w*(?=\s*(?:=|![=~]))/,alias:"attr-name"},"label-value":{pattern:/(["'`])(?:\\[\s\S]|(?!\1)[^\\])*\1/,greedy:!0,alias:"attr-value"},punctuation:/\{|\}|=~?|![=~]|,/}},"context-range":[{pattern:/\[[\w\s:]+\]/,inside:{punctuation:/\[|\]|:/,"range-duration":{pattern:/\b(?:\d+(?:[smhdwy]|ms))+\b/i,alias:"number"}}},{pattern:/(\boffset\s+)\w+/,lookbehind:!0,inside:{"range-duration":{pattern:/\b(?:\d+(?:[smhdwy]|ms))+\b/i,alias:"number"}}}],keyword:new RegExp("\\b(?:"+o.join("|")+")\\b","i"),function:/\b[a-z_]\w*(?=\s*\()/i,number:/[-+]?(?:(?:\b\d+(?:\.\d+)?|\B\.\d+)(?:e[-+]?\d+)?\b|\b(?:0x[0-9a-f]+|nan|inf)\b)/i,operator:/[\^*/%+-]|==|!=|<=|<|>=|>|\b(?:and|or|unless)\b/i,punctuation:/[{};()`,.[\]]/}})(t)}return eD}var tD,M7;function v6e(){if(M7)return tD;M7=1,tD=e,e.displayName="properties",e.aliases=[];function e(t){t.languages.properties={comment:/^[ \t]*[#!].*$/m,"attr-value":{pattern:/(^[ \t]*(?:\\(?:\r\n|[\s\S])|[^\\\s:=])+(?: *[=:] *(?! )| ))(?:\\(?:\r\n|[\s\S])|[^\\\r\n])+/m,lookbehind:!0},"attr-name":/^[ \t]*(?:\\(?:\r\n|[\s\S])|[^\\\s:=])+(?= *[=:]| )/m,punctuation:/[=:]/}}return tD}var nD,I7;function y6e(){if(I7)return nD;I7=1,nD=e,e.displayName="protobuf",e.aliases=[];function e(t){(function(n){var r=/\b(?:bool|bytes|double|s?fixed(?:32|64)|float|[su]?int(?:32|64)|string)\b/;n.languages.protobuf=n.languages.extend("clike",{"class-name":[{pattern:/(\b(?:enum|extend|message|service)\s+)[A-Za-z_]\w*(?=\s*\{)/,lookbehind:!0},{pattern:/(\b(?:rpc\s+\w+|returns)\s*\(\s*(?:stream\s+)?)\.?[A-Za-z_]\w*(?:\.[A-Za-z_]\w*)*(?=\s*\))/,lookbehind:!0}],keyword:/\b(?:enum|extend|extensions|import|message|oneof|option|optional|package|public|repeated|required|reserved|returns|rpc(?=\s+\w)|service|stream|syntax|to)\b(?!\s*=\s*\d)/,function:/\b[a-z_]\w*(?=\s*\()/i}),n.languages.insertBefore("protobuf","operator",{map:{pattern:/\bmap<\s*[\w.]+\s*,\s*[\w.]+\s*>(?=\s+[a-z_]\w*\s*[=;])/i,alias:"class-name",inside:{punctuation:/[<>.,]/,builtin:r}},builtin:r,"positional-class-name":{pattern:/(?:\b|\B\.)[a-z_]\w*(?:\.[a-z_]\w*)*(?=\s+[a-z_]\w*\s*[=;])/i,alias:"class-name",inside:{punctuation:/\./}},annotation:{pattern:/(\[\s*)[a-z_]\w*(?=\s*=)/i,lookbehind:!0}})})(t)}return nD}var rD,D7;function b6e(){if(D7)return rD;D7=1,rD=e,e.displayName="psl",e.aliases=[];function e(t){t.languages.psl={comment:{pattern:/#.*/,greedy:!0},string:{pattern:/"(?:\\.|[^\\"])*"/,greedy:!0,inside:{symbol:/\\[ntrbA-Z"\\]/}},"heredoc-string":{pattern:/<<<([a-zA-Z_]\w*)[\r\n](?:.*[\r\n])*?\1\b/,alias:"string",greedy:!0},keyword:/\b(?:__multi|__single|case|default|do|else|elsif|exit|export|for|foreach|function|if|last|line|local|next|requires|return|switch|until|while|word)\b/,constant:/\b(?:ALARM|CHART_ADD_GRAPH|CHART_DELETE_GRAPH|CHART_DESTROY|CHART_LOAD|CHART_PRINT|EOF|OFFLINE|OK|PSL_PROF_LOG|R_CHECK_HORIZ|R_CHECK_VERT|R_CLICKER|R_COLUMN|R_FRAME|R_ICON|R_LABEL|R_LABEL_CENTER|R_LIST_MULTIPLE|R_LIST_MULTIPLE_ND|R_LIST_SINGLE|R_LIST_SINGLE_ND|R_MENU|R_POPUP|R_POPUP_SCROLLED|R_RADIO_HORIZ|R_RADIO_VERT|R_ROW|R_SCALE_HORIZ|R_SCALE_VERT|R_SEP_HORIZ|R_SEP_VERT|R_SPINNER|R_TEXT_FIELD|R_TEXT_FIELD_LABEL|R_TOGGLE|TRIM_LEADING|TRIM_LEADING_AND_TRAILING|TRIM_REDUNDANT|TRIM_TRAILING|VOID|WARN)\b/,boolean:/\b(?:FALSE|False|NO|No|TRUE|True|YES|Yes|false|no|true|yes)\b/,variable:/\b(?:PslDebug|errno|exit_status)\b/,builtin:{pattern:/\b(?:PslExecute|PslFunctionCall|PslFunctionExists|PslSetOptions|_snmp_debug|acos|add_diary|annotate|annotate_get|ascii_to_ebcdic|asctime|asin|atan|atexit|batch_set|blackout|cat|ceil|chan_exists|change_state|close|code_cvt|cond_signal|cond_wait|console_type|convert_base|convert_date|convert_locale_date|cos|cosh|create|date|dcget_text|destroy|destroy_lock|dget_text|difference|dump_hist|ebcdic_to_ascii|encrypt|event_archive|event_catalog_get|event_check|event_query|event_range_manage|event_range_query|event_report|event_schedule|event_trigger|event_trigger2|execute|exists|exp|fabs|file|floor|fmod|fopen|fseek|ftell|full_discovery|get|get_chan_info|get_ranges|get_text|get_vars|getenv|gethostinfo|getpid|getpname|grep|history|history_get_retention|in_transition|index|int|internal|intersection|is_var|isnumber|join|kill|length|lines|lock|lock_info|log|log10|loge|matchline|msg_check|msg_get_format|msg_get_severity|msg_printf|msg_sprintf|ntharg|nthargf|nthline|nthlinef|num_bytes|num_consoles|pconfig|popen|poplines|pow|print|printf|proc_exists|process|random|read|readln|refresh_parameters|remote_check|remote_close|remote_event_query|remote_event_trigger|remote_file_send|remote_open|remove|replace|rindex|sec_check_priv|sec_store_get|sec_store_set|set|set_alarm_ranges|set_locale|share|sin|sinh|sleep|snmp_agent_config|snmp_agent_start|snmp_agent_stop|snmp_close|snmp_config|snmp_get|snmp_get_next|snmp_h_get|snmp_h_get_next|snmp_h_set|snmp_open|snmp_set|snmp_trap_ignore|snmp_trap_listen|snmp_trap_raise_std_trap|snmp_trap_receive|snmp_trap_register_im|snmp_trap_send|snmp_walk|sopen|sort|splitline|sprintf|sqrt|srandom|str_repeat|strcasecmp|subset|substr|system|tail|tan|tanh|text_domain|time|tmpnam|tolower|toupper|trace_psl_process|trim|union|unique|unlock|unset|va_arg|va_start|write)\b/,alias:"builtin-function"},"foreach-variable":{pattern:/(\bforeach\s+(?:(?:\w+\b|"(?:\\.|[^\\"])*")\s+){0,2})[_a-zA-Z]\w*(?=\s*\()/,lookbehind:!0,greedy:!0},function:/\b[_a-z]\w*\b(?=\s*\()/i,number:/\b(?:0x[0-9a-f]+|\d+(?:\.\d+)?)\b/i,operator:/--|\+\+|&&=?|\|\|=?|<<=?|>>=?|[=!]~|[-+*/%&|^!=<>]=?|\.|[:?]/,punctuation:/[(){}\[\];,]/}}return rD}var aD,$7;function w6e(){if($7)return aD;$7=1,aD=e,e.displayName="pug",e.aliases=[];function e(t){(function(n){n.languages.pug={comment:{pattern:/(^([\t ]*))\/\/.*(?:(?:\r?\n|\r)\2[\t ].+)*/m,lookbehind:!0},"multiline-script":{pattern:/(^([\t ]*)script\b.*\.[\t ]*)(?:(?:\r?\n|\r(?!\n))(?:\2[\t ].+|\s*?(?=\r?\n|\r)))+/m,lookbehind:!0,inside:n.languages.javascript},filter:{pattern:/(^([\t ]*)):.+(?:(?:\r?\n|\r(?!\n))(?:\2[\t ].+|\s*?(?=\r?\n|\r)))+/m,lookbehind:!0,inside:{"filter-name":{pattern:/^:[\w-]+/,alias:"variable"},text:/\S[\s\S]*/}},"multiline-plain-text":{pattern:/(^([\t ]*)[\w\-#.]+\.[\t ]*)(?:(?:\r?\n|\r(?!\n))(?:\2[\t ].+|\s*?(?=\r?\n|\r)))+/m,lookbehind:!0},markup:{pattern:/(^[\t ]*)<.+/m,lookbehind:!0,inside:n.languages.markup},doctype:{pattern:/((?:^|\n)[\t ]*)doctype(?: .+)?/,lookbehind:!0},"flow-control":{pattern:/(^[\t ]*)(?:case|default|each|else|if|unless|when|while)\b(?: .+)?/m,lookbehind:!0,inside:{each:{pattern:/^each .+? in\b/,inside:{keyword:/\b(?:each|in)\b/,punctuation:/,/}},branch:{pattern:/^(?:case|default|else|if|unless|when|while)\b/,alias:"keyword"},rest:n.languages.javascript}},keyword:{pattern:/(^[\t ]*)(?:append|block|extends|include|prepend)\b.+/m,lookbehind:!0},mixin:[{pattern:/(^[\t ]*)mixin .+/m,lookbehind:!0,inside:{keyword:/^mixin/,function:/\w+(?=\s*\(|\s*$)/,punctuation:/[(),.]/}},{pattern:/(^[\t ]*)\+.+/m,lookbehind:!0,inside:{name:{pattern:/^\+\w+/,alias:"function"},rest:n.languages.javascript}}],script:{pattern:/(^[\t ]*script(?:(?:&[^(]+)?\([^)]+\))*[\t ]).+/m,lookbehind:!0,inside:n.languages.javascript},"plain-text":{pattern:/(^[\t ]*(?!-)[\w\-#.]*[\w\-](?:(?:&[^(]+)?\([^)]+\))*\/?[\t ]).+/m,lookbehind:!0},tag:{pattern:/(^[\t ]*)(?!-)[\w\-#.]*[\w\-](?:(?:&[^(]+)?\([^)]+\))*\/?:?/m,lookbehind:!0,inside:{attributes:[{pattern:/&[^(]+\([^)]+\)/,inside:n.languages.javascript},{pattern:/\([^)]+\)/,inside:{"attr-value":{pattern:/(=\s*(?!\s))(?:\{[^}]*\}|[^,)\r\n]+)/,lookbehind:!0,inside:n.languages.javascript},"attr-name":/[\w-]+(?=\s*!?=|\s*[,)])/,punctuation:/[!=(),]+/}}],punctuation:/:/,"attr-id":/#[\w\-]+/,"attr-class":/\.[\w\-]+/}},code:[{pattern:/(^[\t ]*(?:-|!?=)).+/m,lookbehind:!0,inside:n.languages.javascript}],punctuation:/[.\-!=|]+/};for(var r=/(^([\t ]*)):(?:(?:\r?\n|\r(?!\n))(?:\2[\t ].+|\s*?(?=\r?\n|\r)))+/.source,a=[{filter:"atpl",language:"twig"},{filter:"coffee",language:"coffeescript"},"ejs","handlebars","less","livescript","markdown",{filter:"sass",language:"scss"},"stylus"],i={},o=0,l=a.length;o",function(){return u.filter}),"m"),lookbehind:!0,inside:{"filter-name":{pattern:/^:[\w-]+/,alias:"variable"},text:{pattern:/\S[\s\S]*/,alias:[u.language,"language-"+u.language],inside:n.languages[u.language]}}})}n.languages.insertBefore("pug","filter",i)})(t)}return aD}var iD,L7;function S6e(){if(L7)return iD;L7=1,iD=e,e.displayName="puppet",e.aliases=[];function e(t){(function(n){n.languages.puppet={heredoc:[{pattern:/(@\("([^"\r\n\/):]+)"(?:\/[nrts$uL]*)?\).*(?:\r?\n|\r))(?:.*(?:\r?\n|\r(?!\n)))*?[ \t]*(?:\|[ \t]*)?(?:-[ \t]*)?\2/,lookbehind:!0,alias:"string",inside:{punctuation:/(?=\S).*\S(?= *$)/}},{pattern:/(@\(([^"\r\n\/):]+)(?:\/[nrts$uL]*)?\).*(?:\r?\n|\r))(?:.*(?:\r?\n|\r(?!\n)))*?[ \t]*(?:\|[ \t]*)?(?:-[ \t]*)?\2/,lookbehind:!0,greedy:!0,alias:"string",inside:{punctuation:/(?=\S).*\S(?= *$)/}},{pattern:/@\("?(?:[^"\r\n\/):]+)"?(?:\/[nrts$uL]*)?\)/,alias:"string",inside:{punctuation:{pattern:/(\().+?(?=\))/,lookbehind:!0}}}],"multiline-comment":{pattern:/(^|[^\\])\/\*[\s\S]*?\*\//,lookbehind:!0,greedy:!0,alias:"comment"},regex:{pattern:/((?:\bnode\s+|[~=\(\[\{,]\s*|[=+]>\s*|^\s*))\/(?:[^\/\\]|\\[\s\S])+\/(?:[imx]+\b|\B)/,lookbehind:!0,greedy:!0,inside:{"extended-regex":{pattern:/^\/(?:[^\/\\]|\\[\s\S])+\/[im]*x[im]*$/,inside:{comment:/#.*/}}}},comment:{pattern:/(^|[^\\])#.*/,lookbehind:!0,greedy:!0},string:{pattern:/(["'])(?:\$\{(?:[^'"}]|(["'])(?:(?!\2)[^\\]|\\[\s\S])*\2)+\}|\$(?!\{)|(?!\1)[^\\$]|\\[\s\S])*\1/,greedy:!0,inside:{"double-quoted":{pattern:/^"[\s\S]*"$/,inside:{}}}},variable:{pattern:/\$(?:::)?\w+(?:::\w+)*/,inside:{punctuation:/::/}},"attr-name":/(?:\b\w+|\*)(?=\s*=>)/,function:[{pattern:/(\.)(?!\d)\w+/,lookbehind:!0},/\b(?:contain|debug|err|fail|include|info|notice|realize|require|tag|warning)\b|\b(?!\d)\w+(?=\()/],number:/\b(?:0x[a-f\d]+|\d+(?:\.\d+)?(?:e-?\d+)?)\b/i,boolean:/\b(?:false|true)\b/,keyword:/\b(?:application|attr|case|class|consumes|default|define|else|elsif|function|if|import|inherits|node|private|produces|type|undef|unless)\b/,datatype:{pattern:/\b(?:Any|Array|Boolean|Callable|Catalogentry|Class|Collection|Data|Default|Enum|Float|Hash|Integer|NotUndef|Numeric|Optional|Pattern|Regexp|Resource|Runtime|Scalar|String|Struct|Tuple|Type|Undef|Variant)\b/,alias:"symbol"},operator:/=[=~>]?|![=~]?|<(?:<\|?|[=~|-])?|>[>=]?|->?|~>|\|>?>?|[*\/%+?]|\b(?:and|in|or)\b/,punctuation:/[\[\]{}().,;]|:+/};var r=[{pattern:/(^|[^\\])\$\{(?:[^'"{}]|\{[^}]*\}|(["'])(?:(?!\2)[^\\]|\\[\s\S])*\2)+\}/,lookbehind:!0,inside:{"short-variable":{pattern:/(^\$\{)(?!\w+\()(?:::)?\w+(?:::\w+)*/,lookbehind:!0,alias:"variable",inside:{punctuation:/::/}},delimiter:{pattern:/^\$/,alias:"variable"},rest:n.languages.puppet}},{pattern:/(^|[^\\])\$(?:::)?\w+(?:::\w+)*/,lookbehind:!0,alias:"variable",inside:{punctuation:/::/}}];n.languages.puppet.heredoc[0].inside.interpolation=r,n.languages.puppet.string.inside["double-quoted"].inside.interpolation=r})(t)}return iD}var oD,F7;function E6e(){if(F7)return oD;F7=1,oD=e,e.displayName="pure",e.aliases=[];function e(t){(function(n){n.languages.pure={comment:[{pattern:/(^|[^\\])\/\*[\s\S]*?\*\//,lookbehind:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0},/#!.+/],"inline-lang":{pattern:/%<[\s\S]+?%>/,greedy:!0,inside:{lang:{pattern:/(^%< *)-\*-.+?-\*-/,lookbehind:!0,alias:"comment"},delimiter:{pattern:/^%<.*|%>$/,alias:"punctuation"}}},string:{pattern:/"(?:\\.|[^"\\\r\n])*"/,greedy:!0},number:{pattern:/((?:\.\.)?)(?:\b(?:inf|nan)\b|\b0x[\da-f]+|(?:\b(?:0b)?\d+(?:\.\d+)?|\B\.\d+)(?:e[+-]?\d+)?L?)/i,lookbehind:!0},keyword:/\b(?:NULL|ans|break|bt|case|catch|cd|clear|const|def|del|dump|else|end|exit|extern|false|force|help|if|infix[lr]?|interface|let|ls|mem|namespace|nonfix|of|otherwise|outfix|override|postfix|prefix|private|public|pwd|quit|run|save|show|stats|then|throw|trace|true|type|underride|using|when|with)\b/,function:/\b(?:abs|add_(?:addr|constdef|(?:fundef|interface|macdef|typedef)(?:_at)?|vardef)|all|any|applp?|arity|bigintp?|blob(?:_crc|_size|p)?|boolp?|byte_c?string(?:_pointer)?|byte_(?:matrix|pointer)|calloc|cat|catmap|ceil|char[ps]?|check_ptrtag|chr|clear_sentry|clearsym|closurep?|cmatrixp?|cols?|colcat(?:map)?|colmap|colrev|colvector(?:p|seq)?|complex(?:_float_(?:matrix|pointer)|_matrix(?:_view)?|_pointer|p)?|conj|cookedp?|cst|cstring(?:_(?:dup|list|vector))?|curry3?|cyclen?|del_(?:constdef|fundef|interface|macdef|typedef|vardef)|delete|diag(?:mat)?|dim|dmatrixp?|do|double(?:_matrix(?:_view)?|_pointer|p)?|dowith3?|drop|dropwhile|eval(?:cmd)?|exactp|filter|fix|fixity|flip|float(?:_matrix|_pointer)|floor|fold[lr]1?|frac|free|funp?|functionp?|gcd|get(?:_(?:byte|constdef|double|float|fundef|int(?:64)?|interface(?:_typedef)?|long|macdef|pointer|ptrtag|sentry|short|string|typedef|vardef))?|globsym|hash|head|id|im|imatrixp?|index|inexactp|infp|init|insert|int(?:_matrix(?:_view)?|_pointer|p)?|int64_(?:matrix|pointer)|integerp?|iteraten?|iterwhile|join|keys?|lambdap?|last(?:err(?:pos)?)?|lcd|list[2p]?|listmap|make_ptrtag|malloc|map|matcat|matrixp?|max|member|min|nanp|nargs|nmatrixp?|null|numberp?|ord|pack(?:ed)?|pointer(?:_cast|_tag|_type|p)?|pow|pred|ptrtag|put(?:_(?:byte|double|float|int(?:64)?|long|pointer|short|string))?|rationalp?|re|realp?|realloc|recordp?|redim|reduce(?:_with)?|refp?|repeatn?|reverse|rlistp?|round|rows?|rowcat(?:map)?|rowmap|rowrev|rowvector(?:p|seq)?|same|scan[lr]1?|sentry|sgn|short_(?:matrix|pointer)|slice|smatrixp?|sort|split|str|strcat|stream|stride|string(?:_(?:dup|list|vector)|p)?|subdiag(?:mat)?|submat|subseq2?|substr|succ|supdiag(?:mat)?|symbolp?|tail|take|takewhile|thunkp?|transpose|trunc|tuplep?|typep|ubyte|uint(?:64)?|ulong|uncurry3?|unref|unzip3?|update|ushort|vals?|varp?|vector(?:p|seq)?|void|zip3?|zipwith3?)\b/,special:{pattern:/\b__[a-z]+__\b/i,alias:"builtin"},operator:/(?:[!"#$%&'*+,\-.\/:<=>?@\\^`|~\u00a1-\u00bf\u00d7-\u00f7\u20d0-\u2bff]|\b_+\b)+|\b(?:and|div|mod|not|or)\b/,punctuation:/[(){}\[\];,|]/};var r=["c",{lang:"c++",alias:"cpp"},"fortran"],a=/%< *-\*- *\d* *-\*-[\s\S]+?%>/.source;r.forEach(function(i){var o=i;if(typeof i!="string"&&(o=i.alias,i=i.lang),n.languages[o]){var l={};l["inline-lang-"+o]={pattern:RegExp(a.replace("",i.replace(/([.+*?\/\\(){}\[\]])/g,"\\$1")),"i"),inside:n.util.clone(n.languages.pure["inline-lang"].inside)},l["inline-lang-"+o].inside.rest=n.util.clone(n.languages[o]),n.languages.insertBefore("pure","inline-lang",l)}}),n.languages.c&&(n.languages.pure["inline-lang"].inside.rest=n.util.clone(n.languages.c))})(t)}return oD}var sD,j7;function T6e(){if(j7)return sD;j7=1,sD=e,e.displayName="purebasic",e.aliases=[];function e(t){t.languages.purebasic=t.languages.extend("clike",{comment:/;.*/,keyword:/\b(?:align|and|as|break|calldebugger|case|compilercase|compilerdefault|compilerelse|compilerelseif|compilerendif|compilerendselect|compilererror|compilerif|compilerselect|continue|data|datasection|debug|debuglevel|declare|declarec|declarecdll|declaredll|declaremodule|default|define|dim|disableasm|disabledebugger|disableexplicit|else|elseif|enableasm|enabledebugger|enableexplicit|end|enddatasection|enddeclaremodule|endenumeration|endif|endimport|endinterface|endmacro|endmodule|endprocedure|endselect|endstructure|endstructureunion|endwith|enumeration|extends|fakereturn|for|foreach|forever|global|gosub|goto|if|import|importc|includebinary|includefile|includepath|interface|macro|module|newlist|newmap|next|not|or|procedure|procedurec|procedurecdll|proceduredll|procedurereturn|protected|prototype|prototypec|read|redim|repeat|restore|return|runtime|select|shared|static|step|structure|structureunion|swap|threaded|to|until|wend|while|with|xincludefile|xor)\b/i,function:/\b\w+(?:\.\w+)?\s*(?=\()/,number:/(?:\$[\da-f]+|\b-?(?:\d+(?:\.\d+)?|\.\d+)(?:e[+-]?\d+)?)\b/i,operator:/(?:@\*?|\?|\*)\w+|-[>-]?|\+\+?|!=?|<>?=?|==?|&&?|\|?\||[~^%?*/@]/}),t.languages.insertBefore("purebasic","keyword",{tag:/#\w+\$?/,asm:{pattern:/(^[\t ]*)!.*/m,lookbehind:!0,alias:"tag",inside:{comment:/;.*/,string:{pattern:/(["'`])(?:\\.|(?!\1)[^\\\r\n])*\1/,greedy:!0},"label-reference-anonymous":{pattern:/(!\s*j[a-z]+\s+)@[fb]/i,lookbehind:!0,alias:"fasm-label"},"label-reference-addressed":{pattern:/(!\s*j[a-z]+\s+)[A-Z._?$@][\w.?$@~#]*/i,lookbehind:!0,alias:"fasm-label"},keyword:[/\b(?:extern|global)\b[^;\r\n]*/i,/\b(?:CPU|DEFAULT|FLOAT)\b.*/],function:{pattern:/^([\t ]*!\s*)[\da-z]+(?=\s|$)/im,lookbehind:!0},"function-inline":{pattern:/(:\s*)[\da-z]+(?=\s)/i,lookbehind:!0,alias:"function"},label:{pattern:/^([\t ]*!\s*)[A-Za-z._?$@][\w.?$@~#]*(?=:)/m,lookbehind:!0,alias:"fasm-label"},register:/\b(?:st\d|[xyz]mm\d\d?|[cdt]r\d|r\d\d?[bwd]?|[er]?[abcd]x|[abcd][hl]|[er]?(?:bp|di|si|sp)|[cdefgs]s|mm\d+)\b/i,number:/(?:\b|-|(?=\$))(?:0[hx](?:[\da-f]*\.)?[\da-f]+(?:p[+-]?\d+)?|\d[\da-f]+[hx]|\$\d[\da-f]*|0[oq][0-7]+|[0-7]+[oq]|0[by][01]+|[01]+[by]|0[dt]\d+|(?:\d+(?:\.\d+)?|\.\d+)(?:\.?e[+-]?\d+)?[dt]?)\b/i,operator:/[\[\]*+\-/%<>=&|$!,.:]/}}}),delete t.languages.purebasic["class-name"],delete t.languages.purebasic.boolean,t.languages.pbfasm=t.languages.purebasic}return sD}var lD,U7;function C6e(){if(U7)return lD;U7=1;var e=Kj();lD=t,t.displayName="purescript",t.aliases=["purs"];function t(n){n.register(e),n.languages.purescript=n.languages.extend("haskell",{keyword:/\b(?:ado|case|class|data|derive|do|else|forall|if|in|infixl|infixr|instance|let|module|newtype|of|primitive|then|type|where)\b|∀/,"import-statement":{pattern:/(^[\t ]*)import\s+[A-Z][\w']*(?:\.[A-Z][\w']*)*(?:\s+as\s+[A-Z][\w']*(?:\.[A-Z][\w']*)*)?(?:\s+hiding\b)?/m,lookbehind:!0,inside:{keyword:/\b(?:as|hiding|import)\b/,punctuation:/\./}},builtin:/\b(?:absurd|add|ap|append|apply|between|bind|bottom|clamp|compare|comparing|compose|conj|const|degree|discard|disj|div|eq|flap|flip|gcd|identity|ifM|join|lcm|liftA1|liftM1|map|max|mempty|min|mod|mul|negate|not|notEq|one|otherwise|recip|show|sub|top|unit|unless|unlessM|void|when|whenM|zero)\b/,operator:[n.languages.haskell.operator[0],n.languages.haskell.operator[2],/[\xa2-\xa6\xa8\xa9\xac\xae-\xb1\xb4\xb8\xd7\xf7\u02c2-\u02c5\u02d2-\u02df\u02e5-\u02eb\u02ed\u02ef-\u02ff\u0375\u0384\u0385\u03f6\u0482\u058d-\u058f\u0606-\u0608\u060b\u060e\u060f\u06de\u06e9\u06fd\u06fe\u07f6\u07fe\u07ff\u09f2\u09f3\u09fa\u09fb\u0af1\u0b70\u0bf3-\u0bfa\u0c7f\u0d4f\u0d79\u0e3f\u0f01-\u0f03\u0f13\u0f15-\u0f17\u0f1a-\u0f1f\u0f34\u0f36\u0f38\u0fbe-\u0fc5\u0fc7-\u0fcc\u0fce\u0fcf\u0fd5-\u0fd8\u109e\u109f\u1390-\u1399\u166d\u17db\u1940\u19de-\u19ff\u1b61-\u1b6a\u1b74-\u1b7c\u1fbd\u1fbf-\u1fc1\u1fcd-\u1fcf\u1fdd-\u1fdf\u1fed-\u1fef\u1ffd\u1ffe\u2044\u2052\u207a-\u207c\u208a-\u208c\u20a0-\u20bf\u2100\u2101\u2103-\u2106\u2108\u2109\u2114\u2116-\u2118\u211e-\u2123\u2125\u2127\u2129\u212e\u213a\u213b\u2140-\u2144\u214a-\u214d\u214f\u218a\u218b\u2190-\u2307\u230c-\u2328\u232b-\u2426\u2440-\u244a\u249c-\u24e9\u2500-\u2767\u2794-\u27c4\u27c7-\u27e5\u27f0-\u2982\u2999-\u29d7\u29dc-\u29fb\u29fe-\u2b73\u2b76-\u2b95\u2b97-\u2bff\u2ce5-\u2cea\u2e50\u2e51\u2e80-\u2e99\u2e9b-\u2ef3\u2f00-\u2fd5\u2ff0-\u2ffb\u3004\u3012\u3013\u3020\u3036\u3037\u303e\u303f\u309b\u309c\u3190\u3191\u3196-\u319f\u31c0-\u31e3\u3200-\u321e\u322a-\u3247\u3250\u3260-\u327f\u328a-\u32b0\u32c0-\u33ff\u4dc0-\u4dff\ua490-\ua4c6\ua700-\ua716\ua720\ua721\ua789\ua78a\ua828-\ua82b\ua836-\ua839\uaa77-\uaa79\uab5b\uab6a\uab6b\ufb29\ufbb2-\ufbc1\ufdfc\ufdfd\ufe62\ufe64-\ufe66\ufe69\uff04\uff0b\uff1c-\uff1e\uff3e\uff40\uff5c\uff5e\uffe0-\uffe6\uffe8-\uffee\ufffc\ufffd]/]}),n.languages.purs=n.languages.purescript}return lD}var uD,B7;function k6e(){if(B7)return uD;B7=1,uD=e,e.displayName="python",e.aliases=["py"];function e(t){t.languages.python={comment:{pattern:/(^|[^\\])#.*/,lookbehind:!0,greedy:!0},"string-interpolation":{pattern:/(?:f|fr|rf)(?:("""|''')[\s\S]*?\1|("|')(?:\\.|(?!\2)[^\\\r\n])*\2)/i,greedy:!0,inside:{interpolation:{pattern:/((?:^|[^{])(?:\{\{)*)\{(?!\{)(?:[^{}]|\{(?!\{)(?:[^{}]|\{(?!\{)(?:[^{}])+\})+\})+\}/,lookbehind:!0,inside:{"format-spec":{pattern:/(:)[^:(){}]+(?=\}$)/,lookbehind:!0},"conversion-option":{pattern:/![sra](?=[:}]$)/,alias:"punctuation"},rest:null}},string:/[\s\S]+/}},"triple-quoted-string":{pattern:/(?:[rub]|br|rb)?("""|''')[\s\S]*?\1/i,greedy:!0,alias:"string"},string:{pattern:/(?:[rub]|br|rb)?("|')(?:\\.|(?!\1)[^\\\r\n])*\1/i,greedy:!0},function:{pattern:/((?:^|\s)def[ \t]+)[a-zA-Z_]\w*(?=\s*\()/g,lookbehind:!0},"class-name":{pattern:/(\bclass\s+)\w+/i,lookbehind:!0},decorator:{pattern:/(^[\t ]*)@\w+(?:\.\w+)*/m,lookbehind:!0,alias:["annotation","punctuation"],inside:{punctuation:/\./}},keyword:/\b(?:_(?=\s*:)|and|as|assert|async|await|break|case|class|continue|def|del|elif|else|except|exec|finally|for|from|global|if|import|in|is|lambda|match|nonlocal|not|or|pass|print|raise|return|try|while|with|yield)\b/,builtin:/\b(?:__import__|abs|all|any|apply|ascii|basestring|bin|bool|buffer|bytearray|bytes|callable|chr|classmethod|cmp|coerce|compile|complex|delattr|dict|dir|divmod|enumerate|eval|execfile|file|filter|float|format|frozenset|getattr|globals|hasattr|hash|help|hex|id|input|int|intern|isinstance|issubclass|iter|len|list|locals|long|map|max|memoryview|min|next|object|oct|open|ord|pow|property|range|raw_input|reduce|reload|repr|reversed|round|set|setattr|slice|sorted|staticmethod|str|sum|super|tuple|type|unichr|unicode|vars|xrange|zip)\b/,boolean:/\b(?:False|None|True)\b/,number:/\b0(?:b(?:_?[01])+|o(?:_?[0-7])+|x(?:_?[a-f0-9])+)\b|(?:\b\d+(?:_\d+)*(?:\.(?:\d+(?:_\d+)*)?)?|\B\.\d+(?:_\d+)*)(?:e[+-]?\d+(?:_\d+)*)?j?(?!\w)/i,operator:/[-+%=]=?|!=|:=|\*\*?=?|\/\/?=?|<[<=>]?|>[=>]?|[&|^~]/,punctuation:/[{}[\];(),.:]/},t.languages.python["string-interpolation"].inside.interpolation.inside.rest=t.languages.python,t.languages.py=t.languages.python}return uD}var cD,W7;function x6e(){if(W7)return cD;W7=1,cD=e,e.displayName="q",e.aliases=[];function e(t){t.languages.q={string:/"(?:\\.|[^"\\\r\n])*"/,comment:[{pattern:/([\t )\]}])\/.*/,lookbehind:!0,greedy:!0},{pattern:/(^|\r?\n|\r)\/[\t ]*(?:(?:\r?\n|\r)(?:.*(?:\r?\n|\r(?!\n)))*?(?:\\(?=[\t ]*(?:\r?\n|\r))|$)|\S.*)/,lookbehind:!0,greedy:!0},{pattern:/^\\[\t ]*(?:\r?\n|\r)[\s\S]+/m,greedy:!0},{pattern:/^#!.+/m,greedy:!0}],symbol:/`(?::\S+|[\w.]*)/,datetime:{pattern:/0N[mdzuvt]|0W[dtz]|\d{4}\.\d\d(?:m|\.\d\d(?:T(?:\d\d(?::\d\d(?::\d\d(?:[.:]\d\d\d)?)?)?)?)?[dz]?)|\d\d:\d\d(?::\d\d(?:[.:]\d\d\d)?)?[uvt]?/,alias:"number"},number:/\b(?![01]:)(?:0N[hje]?|0W[hj]?|0[wn]|0x[\da-fA-F]+|\d+(?:\.\d*)?(?:e[+-]?\d+)?[hjfeb]?)/,keyword:/\\\w+\b|\b(?:abs|acos|aj0?|all|and|any|asc|asin|asof|atan|attr|avgs?|binr?|by|ceiling|cols|cor|cos|count|cov|cross|csv|cut|delete|deltas|desc|dev|differ|distinct|div|do|dsave|ej|enlist|eval|except|exec|exit|exp|fby|fills|first|fkeys|flip|floor|from|get|getenv|group|gtime|hclose|hcount|hdel|hopen|hsym|iasc|identity|idesc|if|ij|in|insert|inter|inv|keys?|last|like|list|ljf?|load|log|lower|lsq|ltime|ltrim|mavg|maxs?|mcount|md5|mdev|med|meta|mins?|mmax|mmin|mmu|mod|msum|neg|next|not|null|or|over|parse|peach|pj|plist|prds?|prev|prior|rand|rank|ratios|raze|read0|read1|reciprocal|reval|reverse|rload|rotate|rsave|rtrim|save|scan|scov|sdev|select|set|setenv|show|signum|sin|sqrt|ssr?|string|sublist|sums?|sv|svar|system|tables|tan|til|trim|txf|type|uj|ungroup|union|update|upper|upsert|value|var|views?|vs|wavg|where|while|within|wj1?|wsum|ww|xasc|xbar|xcols?|xdesc|xexp|xgroup|xkey|xlog|xprev|xrank)\b/,adverb:{pattern:/['\/\\]:?|\beach\b/,alias:"function"},verb:{pattern:/(?:\B\.\B|\b[01]:|<[=>]?|>=?|[:+\-*%,!?~=|$&#@^]):?|\b_\b:?/,alias:"operator"},punctuation:/[(){}\[\];.]/}}return cD}var dD,z7;function _6e(){if(z7)return dD;z7=1,dD=e,e.displayName="qml",e.aliases=[];function e(t){(function(n){for(var r=/"(?:\\.|[^\\"\r\n])*"|'(?:\\.|[^\\'\r\n])*'/.source,a=/\/\/.*(?!.)|\/\*(?:[^*]|\*(?!\/))*\*\//.source,i=/(?:[^\\()[\]{}"'/]||\/(?![*/])||\(*\)|\[*\]|\{*\}|\\[\s\S])/.source.replace(//g,function(){return r}).replace(//g,function(){return a}),o=0;o<2;o++)i=i.replace(//g,function(){return i});i=i.replace(//g,"[^\\s\\S]"),n.languages.qml={comment:{pattern:/\/\/.*|\/\*[\s\S]*?\*\//,greedy:!0},"javascript-function":{pattern:RegExp(/((?:^|;)[ \t]*)function\s+(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*\(*\)\s*\{*\}/.source.replace(//g,function(){return i}),"m"),lookbehind:!0,greedy:!0,alias:"language-javascript",inside:n.languages.javascript},"class-name":{pattern:/((?:^|[:;])[ \t]*)(?!\d)\w+(?=[ \t]*\{|[ \t]+on\b)/m,lookbehind:!0},property:[{pattern:/((?:^|[;{])[ \t]*)(?!\d)\w+(?:\.\w+)*(?=[ \t]*:)/m,lookbehind:!0},{pattern:/((?:^|[;{])[ \t]*)property[ \t]+(?!\d)\w+(?:\.\w+)*[ \t]+(?!\d)\w+(?:\.\w+)*(?=[ \t]*:)/m,lookbehind:!0,inside:{keyword:/^property/,property:/\w+(?:\.\w+)*/}}],"javascript-expression":{pattern:RegExp(/(:[ \t]*)(?![\s;}[])(?:(?!$|[;}]))+/.source.replace(//g,function(){return i}),"m"),lookbehind:!0,greedy:!0,alias:"language-javascript",inside:n.languages.javascript},string:{pattern:/"(?:\\.|[^\\"\r\n])*"/,greedy:!0},keyword:/\b(?:as|import|on)\b/,punctuation:/[{}[\]:;,]/}})(t)}return dD}var fD,q7;function O6e(){if(q7)return fD;q7=1,fD=e,e.displayName="qore",e.aliases=[];function e(t){t.languages.qore=t.languages.extend("clike",{comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?\*\/|(?:\/\/|#).*)/,lookbehind:!0},string:{pattern:/("|')(?:\\[\s\S]|(?!\1)[^\\])*\1/,greedy:!0},keyword:/\b(?:abstract|any|assert|binary|bool|boolean|break|byte|case|catch|char|class|code|const|continue|data|default|do|double|else|enum|extends|final|finally|float|for|goto|hash|if|implements|import|inherits|instanceof|int|interface|long|my|native|new|nothing|null|object|our|own|private|reference|rethrow|return|short|soft(?:bool|date|float|int|list|number|string)|static|strictfp|string|sub|super|switch|synchronized|this|throw|throws|transient|try|void|volatile|while)\b/,boolean:/\b(?:false|true)\b/i,function:/\$?\b(?!\d)\w+(?=\()/,number:/\b(?:0b[01]+|0x(?:[\da-f]*\.)?[\da-fp\-]+|(?:\d+(?:\.\d+)?|\.\d+)(?:e\d+)?[df]|(?:\d+(?:\.\d+)?|\.\d+))\b/i,operator:{pattern:/(^|[^.])(?:\+[+=]?|-[-=]?|[!=](?:==?|~)?|>>?=?|<(?:=>?|<=?)?|&[&=]?|\|[|=]?|[*\/%^]=?|[~?])/,lookbehind:!0},variable:/\$(?!\d)\w+\b/})}return fD}var pD,H7;function R6e(){if(H7)return pD;H7=1,pD=e,e.displayName="qsharp",e.aliases=["qs"];function e(t){(function(n){function r(v,E){return v.replace(/<<(\d+)>>/g,function(T,C){return"(?:"+E[+C]+")"})}function a(v,E,T){return RegExp(r(v,E),"")}function i(v,E){for(var T=0;T>/g,function(){return"(?:"+v+")"});return v.replace(/<>/g,"[^\\s\\S]")}var o={type:"Adj BigInt Bool Ctl Double false Int One Pauli PauliI PauliX PauliY PauliZ Qubit Range Result String true Unit Zero",other:"Adjoint adjoint apply as auto body borrow borrowing Controlled controlled distribute elif else fail fixup for function if in internal intrinsic invert is let mutable namespace new newtype open operation repeat return self set until use using while within"};function l(v){return"\\b(?:"+v.trim().replace(/ /g,"|")+")\\b"}var u=RegExp(l(o.type+" "+o.other)),d=/\b[A-Za-z_]\w*\b/.source,f=r(/<<0>>(?:\s*\.\s*<<0>>)*/.source,[d]),g={keyword:u,punctuation:/[<>()?,.:[\]]/},y=/"(?:\\.|[^\\"])*"/.source;n.languages.qsharp=n.languages.extend("clike",{comment:/\/\/.*/,string:[{pattern:a(/(^|[^$\\])<<0>>/.source,[y]),lookbehind:!0,greedy:!0}],"class-name":[{pattern:a(/(\b(?:as|open)\s+)<<0>>(?=\s*(?:;|as\b))/.source,[f]),lookbehind:!0,inside:g},{pattern:a(/(\bnamespace\s+)<<0>>(?=\s*\{)/.source,[f]),lookbehind:!0,inside:g}],keyword:u,number:/(?:\b0(?:x[\da-f]+|b[01]+|o[0-7]+)|(?:\B\.\d+|\b\d+(?:\.\d*)?)(?:e[-+]?\d+)?)l?\b/i,operator:/\band=|\bor=|\band\b|\bnot\b|\bor\b|<[-=]|[-=]>|>>>=?|<<<=?|\^\^\^=?|\|\|\|=?|&&&=?|w\/=?|~~~|[*\/+\-^=!%]=?/,punctuation:/::|[{}[\];(),.:]/}),n.languages.insertBefore("qsharp","number",{range:{pattern:/\.\./,alias:"operator"}});var h=i(r(/\{(?:[^"{}]|<<0>>|<>)*\}/.source,[y]),2);n.languages.insertBefore("qsharp","string",{"interpolation-string":{pattern:a(/\$"(?:\\.|<<0>>|[^\\"{])*"/.source,[h]),greedy:!0,inside:{interpolation:{pattern:a(/((?:^|[^\\])(?:\\\\)*)<<0>>/.source,[h]),lookbehind:!0,inside:{punctuation:/^\{|\}$/,expression:{pattern:/[\s\S]+/,alias:"language-qsharp",inside:n.languages.qsharp}}},string:/[\s\S]+/}}})})(t),t.languages.qs=t.languages.qsharp}return pD}var hD,V7;function P6e(){if(V7)return hD;V7=1,hD=e,e.displayName="r",e.aliases=[];function e(t){t.languages.r={comment:/#.*/,string:{pattern:/(['"])(?:\\.|(?!\1)[^\\\r\n])*\1/,greedy:!0},"percent-operator":{pattern:/%[^%\s]*%/,alias:"operator"},boolean:/\b(?:FALSE|TRUE)\b/,ellipsis:/\.\.(?:\.|\d+)/,number:[/\b(?:Inf|NaN)\b/,/(?:\b0x[\dA-Fa-f]+(?:\.\d*)?|\b\d+(?:\.\d*)?|\B\.\d+)(?:[EePp][+-]?\d+)?[iL]?/],keyword:/\b(?:NA|NA_character_|NA_complex_|NA_integer_|NA_real_|NULL|break|else|for|function|if|in|next|repeat|while)\b/,operator:/->?>?|<(?:=|=!]=?|::?|&&?|\|\|?|[+*\/^$@~]/,punctuation:/[(){}\[\],;]/}}return hD}var mD,G7;function A6e(){if(G7)return mD;G7=1;var e=Zj();mD=t,t.displayName="racket",t.aliases=["rkt"];function t(n){n.register(e),n.languages.racket=n.languages.extend("scheme",{"lambda-parameter":{pattern:/([(\[]lambda\s+[(\[])[^()\[\]'\s]+/,lookbehind:!0}}),n.languages.insertBefore("racket","string",{lang:{pattern:/^#lang.+/m,greedy:!0,alias:"keyword"}}),n.languages.rkt=n.languages.racket}return mD}var gD,Y7;function N6e(){if(Y7)return gD;Y7=1,gD=e,e.displayName="reason",e.aliases=[];function e(t){t.languages.reason=t.languages.extend("clike",{string:{pattern:/"(?:\\(?:\r\n|[\s\S])|[^\\\r\n"])*"/,greedy:!0},"class-name":/\b[A-Z]\w*/,keyword:/\b(?:and|as|assert|begin|class|constraint|do|done|downto|else|end|exception|external|for|fun|function|functor|if|in|include|inherit|initializer|lazy|let|method|module|mutable|new|nonrec|object|of|open|or|private|rec|sig|struct|switch|then|to|try|type|val|virtual|when|while|with)\b/,operator:/\.{3}|:[:=]|\|>|->|=(?:==?|>)?|<=?|>=?|[|^?'#!~`]|[+\-*\/]\.?|\b(?:asr|land|lor|lsl|lsr|lxor|mod)\b/}),t.languages.insertBefore("reason","class-name",{char:{pattern:/'(?:\\x[\da-f]{2}|\\o[0-3][0-7][0-7]|\\\d{3}|\\.|[^'\\\r\n])'/,greedy:!0},constructor:/\b[A-Z]\w*\b(?!\s*\.)/,label:{pattern:/\b[a-z]\w*(?=::)/,alias:"symbol"}}),delete t.languages.reason.function}return gD}var vD,K7;function M6e(){if(K7)return vD;K7=1,vD=e,e.displayName="regex",e.aliases=[];function e(t){(function(n){var r={pattern:/\\[\\(){}[\]^$+*?|.]/,alias:"escape"},a=/\\(?:x[\da-fA-F]{2}|u[\da-fA-F]{4}|u\{[\da-fA-F]+\}|0[0-7]{0,2}|[123][0-7]{2}|c[a-zA-Z]|.)/,i={pattern:/\.|\\[wsd]|\\p\{[^{}]+\}/i,alias:"class-name"},o={pattern:/\\[wsd]|\\p\{[^{}]+\}/i,alias:"class-name"},l="(?:[^\\\\-]|"+a.source+")",u=RegExp(l+"-"+l),d={pattern:/(<|')[^<>']+(?=[>']$)/,lookbehind:!0,alias:"variable"};n.languages.regex={"char-class":{pattern:/((?:^|[^\\])(?:\\\\)*)\[(?:[^\\\]]|\\[\s\S])*\]/,lookbehind:!0,inside:{"char-class-negation":{pattern:/(^\[)\^/,lookbehind:!0,alias:"operator"},"char-class-punctuation":{pattern:/^\[|\]$/,alias:"punctuation"},range:{pattern:u,inside:{escape:a,"range-punctuation":{pattern:/-/,alias:"operator"}}},"special-escape":r,"char-set":o,escape:a}},"special-escape":r,"char-set":i,backreference:[{pattern:/\\(?![123][0-7]{2})[1-9]/,alias:"keyword"},{pattern:/\\k<[^<>']+>/,alias:"keyword",inside:{"group-name":d}}],anchor:{pattern:/[$^]|\\[ABbGZz]/,alias:"function"},escape:a,group:[{pattern:/\((?:\?(?:<[^<>']+>|'[^<>']+'|[>:]|:=]=?|!=|\b_\b/,punctuation:/[,;.\[\]{}()]/}}return yD}var bD,Q7;function D6e(){if(Q7)return bD;Q7=1,bD=e,e.displayName="renpy",e.aliases=["rpy"];function e(t){t.languages.renpy={comment:{pattern:/(^|[^\\])#.+/,lookbehind:!0},string:{pattern:/("""|''')[\s\S]+?\1|("|')(?:\\.|(?!\2)[^\\])*\2|(?:^#?(?:(?:[0-9a-fA-F]){3}|[0-9a-fA-F]{6})$)/m,greedy:!0},function:/\b[a-z_]\w*(?=\()/i,property:/\b(?:Update|UpdateVersion|action|activate_sound|adv_nvl_transition|after_load_transition|align|alpha|alt|anchor|antialias|area|auto|background|bar_invert|bar_resizing|bar_vertical|black_color|bold|bottom_bar|bottom_gutter|bottom_margin|bottom_padding|box_reverse|box_wrap|can_update|caret|child|color|crop|default_afm_enable|default_afm_time|default_fullscreen|default_text_cps|developer|directory_name|drag_handle|drag_joined|drag_name|drag_raise|draggable|dragged|drop_shadow|drop_shadow_color|droppable|dropped|easein|easeout|edgescroll|end_game_transition|end_splash_transition|enter_replay_transition|enter_sound|enter_transition|enter_yesno_transition|executable_name|exit_replay_transition|exit_sound|exit_transition|exit_yesno_transition|fadein|fadeout|first_indent|first_spacing|fit_first|focus|focus_mask|font|foreground|game_main_transition|get_installed_packages|google_play_key|google_play_salt|ground|has_music|has_sound|has_voice|height|help|hinting|hover|hover_background|hover_color|hover_sound|hovered|hyperlink_functions|idle|idle_color|image_style|include_update|insensitive|insensitive_background|insensitive_color|inside|intra_transition|italic|justify|kerning|keyboard_focus|language|layer_clipping|layers|layout|left_bar|left_gutter|left_margin|left_padding|length|line_leading|line_overlap_split|line_spacing|linear|main_game_transition|main_menu_music|maximum|min_width|minimum|minwidth|modal|mouse|mousewheel|name|narrator_menu|newline_indent|nvl_adv_transition|offset|order_reverse|outlines|overlay_functions|pos|position|prefix|radius|range|rest_indent|right_bar|right_gutter|right_margin|right_padding|rotate|rotate_pad|ruby_style|sample_sound|save_directory|say_attribute_transition|screen_height|screen_width|scrollbars|selected_hover|selected_hover_color|selected_idle|selected_idle_color|selected_insensitive|show_side_image|show_two_window|side_spacing|side_xpos|side_ypos|size|size_group|slow_cps|slow_cps_multiplier|spacing|strikethrough|subpixel|text_align|text_style|text_xpos|text_y_fudge|text_ypos|thumb|thumb_offset|thumb_shadow|thumbnail_height|thumbnail_width|time|top_bar|top_gutter|top_margin|top_padding|translations|underline|unscrollable|update|value|version|version_name|version_tuple|vertical|width|window_hide_transition|window_icon|window_left_padding|window_show_transition|window_title|windows_icon|xadjustment|xalign|xanchor|xanchoraround|xaround|xcenter|xfill|xinitial|xmargin|xmaximum|xminimum|xoffset|xofsset|xpadding|xpos|xsize|xzoom|yadjustment|yalign|yanchor|yanchoraround|yaround|ycenter|yfill|yinitial|ymargin|ymaximum|yminimum|yoffset|ypadding|ypos|ysize|ysizexysize|yzoom|zoom|zorder)\b/,tag:/\b(?:bar|block|button|buttoscreenn|drag|draggroup|fixed|frame|grid|[hv]box|hotbar|hotspot|image|imagebutton|imagemap|input|key|label|menu|mm_menu_frame|mousearea|nvl|parallel|screen|self|side|tag|text|textbutton|timer|vbar|viewport|window)\b|\$/,keyword:/\b(?:None|add|adjustment|alignaround|allow|angle|animation|around|as|assert|behind|box_layout|break|build|cache|call|center|changed|child_size|choice|circles|class|clear|clicked|clipping|clockwise|config|contains|continue|corner1|corner2|counterclockwise|def|default|define|del|delay|disabled|disabled_text|dissolve|elif|else|event|except|exclude|exec|expression|fade|finally|for|from|function|global|gm_root|has|hide|id|if|import|in|init|is|jump|knot|lambda|left|less_rounded|mm_root|movie|music|null|on|onlayer|pass|pause|persistent|play|print|python|queue|raise|random|renpy|repeat|return|right|rounded_window|scene|scope|set|show|slow|slow_abortable|slow_done|sound|stop|store|style|style_group|substitute|suffix|theme|transform|transform_anchor|transpose|try|ui|unhovered|updater|use|voice|while|widget|widget_hover|widget_selected|widget_text|yield)\b/,boolean:/\b(?:[Ff]alse|[Tt]rue)\b/,number:/(?:\b(?:0[bo])?(?:(?:\d|0x[\da-f])[\da-f]*(?:\.\d*)?)|\B\.\d+)(?:e[+-]?\d+)?j?/i,operator:/[-+%=]=?|!=|\*\*?=?|\/\/?=?|<[<=>]?|>[=>]?|[&|^~]|\b(?:and|at|not|or|with)\b/,punctuation:/[{}[\];(),.:]/},t.languages.rpy=t.languages.renpy}return bD}var wD,J7;function $6e(){if(J7)return wD;J7=1,wD=e,e.displayName="rest",e.aliases=[];function e(t){t.languages.rest={table:[{pattern:/(^[\t ]*)(?:\+[=-]+)+\+(?:\r?\n|\r)(?:\1[+|].+[+|](?:\r?\n|\r))+\1(?:\+[=-]+)+\+/m,lookbehind:!0,inside:{punctuation:/\||(?:\+[=-]+)+\+/}},{pattern:/(^[\t ]*)=+ [ =]*=(?:(?:\r?\n|\r)\1.+)+(?:\r?\n|\r)\1=+ [ =]*=(?=(?:\r?\n|\r){2}|\s*$)/m,lookbehind:!0,inside:{punctuation:/[=-]+/}}],"substitution-def":{pattern:/(^[\t ]*\.\. )\|(?:[^|\s](?:[^|]*[^|\s])?)\| [^:]+::/m,lookbehind:!0,inside:{substitution:{pattern:/^\|(?:[^|\s]|[^|\s][^|]*[^|\s])\|/,alias:"attr-value",inside:{punctuation:/^\||\|$/}},directive:{pattern:/( )(?! )[^:]+::/,lookbehind:!0,alias:"function",inside:{punctuation:/::$/}}}},"link-target":[{pattern:/(^[\t ]*\.\. )\[[^\]]+\]/m,lookbehind:!0,alias:"string",inside:{punctuation:/^\[|\]$/}},{pattern:/(^[\t ]*\.\. )_(?:`[^`]+`|(?:[^:\\]|\\.)+):/m,lookbehind:!0,alias:"string",inside:{punctuation:/^_|:$/}}],directive:{pattern:/(^[\t ]*\.\. )[^:]+::/m,lookbehind:!0,alias:"function",inside:{punctuation:/::$/}},comment:{pattern:/(^[\t ]*\.\.)(?:(?: .+)?(?:(?:\r?\n|\r).+)+| .+)(?=(?:\r?\n|\r){2}|$)/m,lookbehind:!0},title:[{pattern:/^(([!"#$%&'()*+,\-.\/:;<=>?@\[\\\]^_`{|}~])\2+)(?:\r?\n|\r).+(?:\r?\n|\r)\1$/m,inside:{punctuation:/^[!"#$%&'()*+,\-.\/:;<=>?@\[\\\]^_`{|}~]+|[!"#$%&'()*+,\-.\/:;<=>?@\[\\\]^_`{|}~]+$/,important:/.+/}},{pattern:/(^|(?:\r?\n|\r){2}).+(?:\r?\n|\r)([!"#$%&'()*+,\-.\/:;<=>?@\[\\\]^_`{|}~])\2+(?=\r?\n|\r|$)/,lookbehind:!0,inside:{punctuation:/[!"#$%&'()*+,\-.\/:;<=>?@\[\\\]^_`{|}~]+$/,important:/.+/}}],hr:{pattern:/((?:\r?\n|\r){2})([!"#$%&'()*+,\-.\/:;<=>?@\[\\\]^_`{|}~])\2{3,}(?=(?:\r?\n|\r){2})/,lookbehind:!0,alias:"punctuation"},field:{pattern:/(^[\t ]*):[^:\r\n]+:(?= )/m,lookbehind:!0,alias:"attr-name"},"command-line-option":{pattern:/(^[\t ]*)(?:[+-][a-z\d]|(?:--|\/)[a-z\d-]+)(?:[ =](?:[a-z][\w-]*|<[^<>]+>))?(?:, (?:[+-][a-z\d]|(?:--|\/)[a-z\d-]+)(?:[ =](?:[a-z][\w-]*|<[^<>]+>))?)*(?=(?:\r?\n|\r)? {2,}\S)/im,lookbehind:!0,alias:"symbol"},"literal-block":{pattern:/::(?:\r?\n|\r){2}([ \t]+)(?![ \t]).+(?:(?:\r?\n|\r)\1.+)*/,inside:{"literal-block-punctuation":{pattern:/^::/,alias:"punctuation"}}},"quoted-literal-block":{pattern:/::(?:\r?\n|\r){2}([!"#$%&'()*+,\-.\/:;<=>?@\[\\\]^_`{|}~]).*(?:(?:\r?\n|\r)\1.*)*/,inside:{"literal-block-punctuation":{pattern:/^(?:::|([!"#$%&'()*+,\-.\/:;<=>?@\[\\\]^_`{|}~])\1*)/m,alias:"punctuation"}}},"list-bullet":{pattern:/(^[\t ]*)(?:[*+\-•‣⁃]|\(?(?:\d+|[a-z]|[ivxdclm]+)\)|(?:\d+|[a-z]|[ivxdclm]+)\.)(?= )/im,lookbehind:!0,alias:"punctuation"},"doctest-block":{pattern:/(^[\t ]*)>>> .+(?:(?:\r?\n|\r).+)*/m,lookbehind:!0,inside:{punctuation:/^>>>/}},inline:[{pattern:/(^|[\s\-:\/'"<(\[{])(?::[^:]+:`.*?`|`.*?`:[^:]+:|(\*\*?|``?|\|)(?!\s)(?:(?!\2).)*\S\2(?=[\s\-.,:;!?\\\/'")\]}]|$))/m,lookbehind:!0,inside:{bold:{pattern:/(^\*\*).+(?=\*\*$)/,lookbehind:!0},italic:{pattern:/(^\*).+(?=\*$)/,lookbehind:!0},"inline-literal":{pattern:/(^``).+(?=``$)/,lookbehind:!0,alias:"symbol"},role:{pattern:/^:[^:]+:|:[^:]+:$/,alias:"function",inside:{punctuation:/^:|:$/}},"interpreted-text":{pattern:/(^`).+(?=`$)/,lookbehind:!0,alias:"attr-value"},substitution:{pattern:/(^\|).+(?=\|$)/,lookbehind:!0,alias:"attr-value"},punctuation:/\*\*?|``?|\|/}}],link:[{pattern:/\[[^\[\]]+\]_(?=[\s\-.,:;!?\\\/'")\]}]|$)/,alias:"string",inside:{punctuation:/^\[|\]_$/}},{pattern:/(?:\b[a-z\d]+(?:[_.:+][a-z\d]+)*_?_|`[^`]+`_?_|_`[^`]+`)(?=[\s\-.,:;!?\\\/'")\]}]|$)/i,alias:"string",inside:{punctuation:/^_?`|`$|`?_?_$/}}],punctuation:{pattern:/(^[\t ]*)(?:\|(?= |$)|(?:---?|—|\.\.|__)(?= )|\.\.$)/m,lookbehind:!0}}}return wD}var SD,Z7;function L6e(){if(Z7)return SD;Z7=1,SD=e,e.displayName="rip",e.aliases=[];function e(t){t.languages.rip={comment:{pattern:/#.*/,greedy:!0},char:{pattern:/\B`[^\s`'",.:;#\/\\()<>\[\]{}]\b/,greedy:!0},string:{pattern:/("|')(?:\\.|(?!\1)[^\\\r\n])*\1/,greedy:!0},regex:{pattern:/(^|[^/])\/(?!\/)(?:\[[^\n\r\]]*\]|\\.|[^/\\\r\n\[])+\/(?=\s*(?:$|[\r\n,.;})]))/,lookbehind:!0,greedy:!0},keyword:/(?:=>|->)|\b(?:case|catch|class|else|exit|finally|if|raise|return|switch|try)\b/,builtin:/@|\bSystem\b/,boolean:/\b(?:false|true)\b/,date:/\b\d{4}-\d{2}-\d{2}\b/,time:/\b\d{2}:\d{2}:\d{2}\b/,datetime:/\b\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}\b/,symbol:/:[^\d\s`'",.:;#\/\\()<>\[\]{}][^\s`'",.:;#\/\\()<>\[\]{}]*/,number:/[+-]?\b(?:\d+\.\d+|\d+)\b/,punctuation:/(?:\.{2,3})|[`,.:;=\/\\()<>\[\]{}]/,reference:/[^\d\s`'",.:;#\/\\()<>\[\]{}][^\s`'",.:;#\/\\()<>\[\]{}]*/}}return SD}var ED,eV;function F6e(){if(eV)return ED;eV=1,ED=e,e.displayName="roboconf",e.aliases=[];function e(t){t.languages.roboconf={comment:/#.*/,keyword:{pattern:/(^|\s)(?:(?:external|import)\b|(?:facet|instance of)(?=[ \t]+[\w-]+[ \t]*\{))/,lookbehind:!0},component:{pattern:/[\w-]+(?=[ \t]*\{)/,alias:"variable"},property:/[\w.-]+(?=[ \t]*:)/,value:{pattern:/(=[ \t]*(?![ \t]))[^,;]+/,lookbehind:!0,alias:"attr-value"},optional:{pattern:/\(optional\)/,alias:"builtin"},wildcard:{pattern:/(\.)\*/,lookbehind:!0,alias:"operator"},punctuation:/[{},.;:=]/}}return ED}var TD,tV;function j6e(){if(tV)return TD;tV=1,TD=e,e.displayName="robotframework",e.aliases=[];function e(t){(function(n){var r={pattern:/(^[ \t]*| {2}|\t)#.*/m,lookbehind:!0,greedy:!0},a={pattern:/((?:^|[^\\])(?:\\{2})*)[$@&%]\{(?:[^{}\r\n]|\{[^{}\r\n]*\})*\}/,lookbehind:!0,inside:{punctuation:/^[$@&%]\{|\}$/}};function i(d,f){var g={};g["section-header"]={pattern:/^ ?\*{3}.+?\*{3}/,alias:"keyword"};for(var y in f)g[y]=f[y];return g.tag={pattern:/([\r\n](?: {2}|\t)[ \t]*)\[[-\w]+\]/,lookbehind:!0,inside:{punctuation:/\[|\]/}},g.variable=a,g.comment=r,{pattern:RegExp(/^ ?\*{3}[ \t]*[ \t]*\*{3}(?:.|[\r\n](?!\*{3}))*/.source.replace(//g,function(){return d}),"im"),alias:"section",inside:g}}var o={pattern:/(\[Documentation\](?: {2}|\t)[ \t]*)(?![ \t]|#)(?:.|(?:\r\n?|\n)[ \t]*\.{3})+/,lookbehind:!0,alias:"string"},l={pattern:/([\r\n] ?)(?!#)(?:\S(?:[ \t]\S)*)+/,lookbehind:!0,alias:"function",inside:{variable:a}},u={pattern:/([\r\n](?: {2}|\t)[ \t]*)(?!\[|\.{3}|#)(?:\S(?:[ \t]\S)*)+/,lookbehind:!0,inside:{variable:a}};n.languages.robotframework={settings:i("Settings",{documentation:{pattern:/([\r\n] ?Documentation(?: {2}|\t)[ \t]*)(?![ \t]|#)(?:.|(?:\r\n?|\n)[ \t]*\.{3})+/,lookbehind:!0,alias:"string"},property:{pattern:/([\r\n] ?)(?!\.{3}|#)(?:\S(?:[ \t]\S)*)+/,lookbehind:!0}}),variables:i("Variables"),"test-cases":i("Test Cases",{"test-name":l,documentation:o,property:u}),keywords:i("Keywords",{"keyword-name":l,documentation:o,property:u}),tasks:i("Tasks",{"task-name":l,documentation:o,property:u}),comment:r},n.languages.robot=n.languages.robotframework})(t)}return TD}var CD,nV;function U6e(){if(nV)return CD;nV=1,CD=e,e.displayName="rust",e.aliases=[];function e(t){(function(n){for(var r=/\/\*(?:[^*/]|\*(?!\/)|\/(?!\*)|)*\*\//.source,a=0;a<2;a++)r=r.replace(//g,function(){return r});r=r.replace(//g,function(){return/[^\s\S]/.source}),n.languages.rust={comment:[{pattern:RegExp(/(^|[^\\])/.source+r),lookbehind:!0,greedy:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],string:{pattern:/b?"(?:\\[\s\S]|[^\\"])*"|b?r(#*)"(?:[^"]|"(?!\1))*"\1/,greedy:!0},char:{pattern:/b?'(?:\\(?:x[0-7][\da-fA-F]|u\{(?:[\da-fA-F]_*){1,6}\}|.)|[^\\\r\n\t'])'/,greedy:!0},attribute:{pattern:/#!?\[(?:[^\[\]"]|"(?:\\[\s\S]|[^\\"])*")*\]/,greedy:!0,alias:"attr-name",inside:{string:null}},"closure-params":{pattern:/([=(,:]\s*|\bmove\s*)\|[^|]*\||\|[^|]*\|(?=\s*(?:\{|->))/,lookbehind:!0,greedy:!0,inside:{"closure-punctuation":{pattern:/^\||\|$/,alias:"punctuation"},rest:null}},"lifetime-annotation":{pattern:/'\w+/,alias:"symbol"},"fragment-specifier":{pattern:/(\$\w+:)[a-z]+/,lookbehind:!0,alias:"punctuation"},variable:/\$\w+/,"function-definition":{pattern:/(\bfn\s+)\w+/,lookbehind:!0,alias:"function"},"type-definition":{pattern:/(\b(?:enum|struct|trait|type|union)\s+)\w+/,lookbehind:!0,alias:"class-name"},"module-declaration":[{pattern:/(\b(?:crate|mod)\s+)[a-z][a-z_\d]*/,lookbehind:!0,alias:"namespace"},{pattern:/(\b(?:crate|self|super)\s*)::\s*[a-z][a-z_\d]*\b(?:\s*::(?:\s*[a-z][a-z_\d]*\s*::)*)?/,lookbehind:!0,alias:"namespace",inside:{punctuation:/::/}}],keyword:[/\b(?:Self|abstract|as|async|await|become|box|break|const|continue|crate|do|dyn|else|enum|extern|final|fn|for|if|impl|in|let|loop|macro|match|mod|move|mut|override|priv|pub|ref|return|self|static|struct|super|trait|try|type|typeof|union|unsafe|unsized|use|virtual|where|while|yield)\b/,/\b(?:bool|char|f(?:32|64)|[ui](?:8|16|32|64|128|size)|str)\b/],function:/\b[a-z_]\w*(?=\s*(?:::\s*<|\())/,macro:{pattern:/\b\w+!/,alias:"property"},constant:/\b[A-Z_][A-Z_\d]+\b/,"class-name":/\b[A-Z]\w*\b/,namespace:{pattern:/(?:\b[a-z][a-z_\d]*\s*::\s*)*\b[a-z][a-z_\d]*\s*::(?!\s*<)/,inside:{punctuation:/::/}},number:/\b(?:0x[\dA-Fa-f](?:_?[\dA-Fa-f])*|0o[0-7](?:_?[0-7])*|0b[01](?:_?[01])*|(?:(?:\d(?:_?\d)*)?\.)?\d(?:_?\d)*(?:[Ee][+-]?\d+)?)(?:_?(?:f32|f64|[iu](?:8|16|32|64|size)?))?\b/,boolean:/\b(?:false|true)\b/,punctuation:/->|\.\.=|\.{1,3}|::|[{}[\];(),:]/,operator:/[-+*\/%!^]=?|=[=>]?|&[&=]?|\|[|=]?|<>?=?|[@?]/},n.languages.rust["closure-params"].inside.rest=n.languages.rust,n.languages.rust.attribute.inside.string=n.languages.rust.string})(t)}return CD}var kD,rV;function B6e(){if(rV)return kD;rV=1,kD=e,e.displayName="sas",e.aliases=[];function e(t){(function(n){var r=/(?:"(?:""|[^"])*"(?!")|'(?:''|[^'])*'(?!'))/.source,a=/\b(?:\d[\da-f]*x|\d+(?:\.\d+)?(?:e[+-]?\d+)?)\b/i,i={pattern:RegExp(r+"[bx]"),alias:"number"},o={pattern:/&[a-z_]\w*/i},l={pattern:/((?:^|\s|=|\())%(?:ABORT|BY|CMS|COPY|DISPLAY|DO|ELSE|END|EVAL|GLOBAL|GO|GOTO|IF|INC|INCLUDE|INDEX|INPUT|KTRIM|LENGTH|LET|LIST|LOCAL|PUT|QKTRIM|QSCAN|QSUBSTR|QSYSFUNC|QUPCASE|RETURN|RUN|SCAN|SUBSTR|SUPERQ|SYMDEL|SYMEXIST|SYMGLOBL|SYMLOCAL|SYSCALL|SYSEVALF|SYSEXEC|SYSFUNC|SYSGET|SYSRPUT|THEN|TO|TSO|UNQUOTE|UNTIL|UPCASE|WHILE|WINDOW)\b/i,lookbehind:!0,alias:"keyword"},u={pattern:/(^|\s)(?:proc\s+\w+|data(?!=)|quit|run)\b/i,alias:"keyword",lookbehind:!0},d=[/\/\*[\s\S]*?\*\//,{pattern:/(^[ \t]*|;\s*)\*[^;]*;/m,lookbehind:!0}],f={pattern:RegExp(r),greedy:!0},g=/[$%@.(){}\[\];,\\]/,y={pattern:/%?\b\w+(?=\()/,alias:"keyword"},h={function:y,"arg-value":{pattern:/(=\s*)[A-Z\.]+/i,lookbehind:!0},operator:/=/,"macro-variable":o,arg:{pattern:/[A-Z]+/i,alias:"keyword"},number:a,"numeric-constant":i,punctuation:g,string:f},v={pattern:/\b(?:format|put)\b=?[\w'$.]+/i,inside:{keyword:/^(?:format|put)(?==)/i,equals:/=/,format:{pattern:/(?:\w|\$\d)+\.\d?/,alias:"number"}}},E={pattern:/\b(?:format|put)\s+[\w']+(?:\s+[$.\w]+)+(?=;)/i,inside:{keyword:/^(?:format|put)/i,format:{pattern:/[\w$]+\.\d?/,alias:"number"}}},T={pattern:/((?:^|\s)=?)(?:catname|checkpoint execute_always|dm|endsas|filename|footnote|%include|libname|%list|lock|missing|options|page|resetline|%run|sasfile|skip|sysecho|title\d?)\b/i,lookbehind:!0,alias:"keyword"},C={pattern:/(^|\s)(?:submit(?:\s+(?:load|norun|parseonly))?|endsubmit)\b/i,lookbehind:!0,alias:"keyword"},k=/aStore|accessControl|aggregation|audio|autotune|bayesianNetClassifier|bioMedImage|boolRule|builtins|cardinality|cdm|clustering|conditionalRandomFields|configuration|copula|countreg|dataDiscovery|dataPreprocess|dataSciencePilot|dataStep|decisionTree|deduplication|deepLearn|deepNeural|deepRnn|ds2|ecm|entityRes|espCluster|explainModel|factmac|fastKnn|fcmpact|fedSql|freqTab|gVarCluster|gam|gleam|graphSemiSupLearn|hiddenMarkovModel|hyperGroup|ica|image|iml|kernalPca|langModel|ldaTopic|loadStreams|mbc|mixed|mlTools|modelPublishing|network|neuralNet|nmf|nonParametricBayes|nonlinear|optNetwork|optimization|panel|pca|percentile|phreg|pls|qkb|qlim|quantreg|recommend|regression|reinforcementLearn|robustPca|ruleMining|sampling|sandwich|sccasl|search(?:Analytics)?|sentimentAnalysis|sequence|session(?:Prop)?|severity|simSystem|simple|smartData|sparkEmbeddedProcess|sparseML|spatialreg|spc|stabilityMonitoring|svDataDescription|svm|table|text(?:Filters|Frequency|Mining|Parse|Rule(?:Develop|Score)|Topic|Util)|timeData|transpose|tsInfo|tsReconcile|uniTimeSeries|varReduce/.source,_={pattern:RegExp(/(^|\s)(?:action\s+)?(?:)\.[a-z]+\b[^;]+/.source.replace(//g,function(){return k}),"i"),lookbehind:!0,inside:{keyword:RegExp(/(?:)\.[a-z]+\b/.source.replace(//g,function(){return k}),"i"),action:{pattern:/(?:action)/i,alias:"keyword"},comment:d,function:y,"arg-value":h["arg-value"],operator:h.operator,argument:h.arg,number:a,"numeric-constant":i,punctuation:g,string:f}},A={pattern:/((?:^|\s)=?)(?:after|analysis|and|array|barchart|barwidth|begingraph|by|call|cas|cbarline|cfill|class(?:lev)?|close|column|computed?|contains|continue|data(?==)|define|delete|describe|document|do\s+over|do|dol|drop|dul|else|end(?:comp|source)?|entryTitle|eval(?:uate)?|exec(?:ute)?|exit|file(?:name)?|fill(?:attrs)?|flist|fnc|function(?:list)?|global|goto|group(?:by)?|headline|headskip|histogram|if|infile|keep|keylabel|keyword|label|layout|leave|legendlabel|length|libname|loadactionset|merge|midpoints|_?null_|name|noobs|nowd|ods|options|or|otherwise|out(?:put)?|over(?:lay)?|plot|print|put|raise|ranexp|rannor|rbreak|retain|return|select|session|sessref|set|source|statgraph|sum|summarize|table|temp|terminate|then\s+do|then|title\d?|to|var|when|where|xaxisopts|y2axisopts|yaxisopts)\b/i,lookbehind:!0};n.languages.sas={datalines:{pattern:/^([ \t]*)(?:cards|(?:data)?lines);[\s\S]+?^[ \t]*;/im,lookbehind:!0,alias:"string",inside:{keyword:{pattern:/^(?:cards|(?:data)?lines)/i},punctuation:/;/}},"proc-sql":{pattern:/(^proc\s+(?:fed)?sql(?:\s+[\w|=]+)?;)[\s\S]+?(?=^(?:proc\s+\w+|data|quit|run);|(?![\s\S]))/im,lookbehind:!0,inside:{sql:{pattern:RegExp(/^[ \t]*(?:select|alter\s+table|(?:create|describe|drop)\s+(?:index|table(?:\s+constraints)?|view)|create\s+unique\s+index|insert\s+into|update)(?:|[^;"'])+;/.source.replace(//g,function(){return r}),"im"),alias:"language-sql",inside:n.languages.sql},"global-statements":T,"sql-statements":{pattern:/(^|\s)(?:disconnect\s+from|begin|commit|exec(?:ute)?|reset|rollback|validate)\b/i,lookbehind:!0,alias:"keyword"},number:a,"numeric-constant":i,punctuation:g,string:f}},"proc-groovy":{pattern:/(^proc\s+groovy(?:\s+[\w|=]+)?;)[\s\S]+?(?=^(?:proc\s+\w+|data|quit|run);|(?![\s\S]))/im,lookbehind:!0,inside:{comment:d,groovy:{pattern:RegExp(/(^[ \t]*submit(?:\s+(?:load|norun|parseonly))?)(?:|[^"'])+?(?=endsubmit;)/.source.replace(//g,function(){return r}),"im"),lookbehind:!0,alias:"language-groovy",inside:n.languages.groovy},keyword:A,"submit-statement":C,"global-statements":T,number:a,"numeric-constant":i,punctuation:g,string:f}},"proc-lua":{pattern:/(^proc\s+lua(?:\s+[\w|=]+)?;)[\s\S]+?(?=^(?:proc\s+\w+|data|quit|run);|(?![\s\S]))/im,lookbehind:!0,inside:{comment:d,lua:{pattern:RegExp(/(^[ \t]*submit(?:\s+(?:load|norun|parseonly))?)(?:|[^"'])+?(?=endsubmit;)/.source.replace(//g,function(){return r}),"im"),lookbehind:!0,alias:"language-lua",inside:n.languages.lua},keyword:A,"submit-statement":C,"global-statements":T,number:a,"numeric-constant":i,punctuation:g,string:f}},"proc-cas":{pattern:/(^proc\s+cas(?:\s+[\w|=]+)?;)[\s\S]+?(?=^(?:proc\s+\w+|quit|data);|(?![\s\S]))/im,lookbehind:!0,inside:{comment:d,"statement-var":{pattern:/((?:^|\s)=?)saveresult\s[^;]+/im,lookbehind:!0,inside:{statement:{pattern:/^saveresult\s+\S+/i,inside:{keyword:/^(?:saveresult)/i}},rest:h}},"cas-actions":_,statement:{pattern:/((?:^|\s)=?)(?:default|(?:un)?set|on|output|upload)[^;]+/im,lookbehind:!0,inside:h},step:u,keyword:A,function:y,format:v,altformat:E,"global-statements":T,number:a,"numeric-constant":i,punctuation:g,string:f}},"proc-args":{pattern:RegExp(/(^proc\s+\w+\s+)(?!\s)(?:[^;"']|)+;/.source.replace(//g,function(){return r}),"im"),lookbehind:!0,inside:h},"macro-keyword":l,"macro-variable":o,"macro-string-functions":{pattern:/((?:^|\s|=))%(?:BQUOTE|NRBQUOTE|NRQUOTE|NRSTR|QUOTE|STR)\(.*?(?:[^%]\))/i,lookbehind:!0,inside:{function:{pattern:/%(?:BQUOTE|NRBQUOTE|NRQUOTE|NRSTR|QUOTE|STR)/i,alias:"keyword"},"macro-keyword":l,"macro-variable":o,"escaped-char":{pattern:/%['"()<>=¬^~;,#]/},punctuation:g}},"macro-declaration":{pattern:/^%macro[^;]+(?=;)/im,inside:{keyword:/%macro/i}},"macro-end":{pattern:/^%mend[^;]+(?=;)/im,inside:{keyword:/%mend/i}},macro:{pattern:/%_\w+(?=\()/,alias:"keyword"},input:{pattern:/\binput\s[-\w\s/*.$&]+;/i,inside:{input:{alias:"keyword",pattern:/^input/i},comment:d,number:a,"numeric-constant":i}},"options-args":{pattern:/(^options)[-'"|/\\<>*+=:()\w\s]*(?=;)/im,lookbehind:!0,inside:h},"cas-actions":_,comment:d,function:y,format:v,altformat:E,"numeric-constant":i,datetime:{pattern:RegExp(r+"(?:dt?|t)"),alias:"number"},string:f,step:u,keyword:A,"operator-keyword":{pattern:/\b(?:eq|ge|gt|in|le|lt|ne|not)\b/i,alias:"operator"},number:a,operator:/\*\*?|\|\|?|!!?|¦¦?|<[>=]?|>[<=]?|[-+\/=&]|[~¬^]=?/,punctuation:g}})(t)}return kD}var xD,aV;function W6e(){if(aV)return xD;aV=1,xD=e,e.displayName="sass",e.aliases=[];function e(t){(function(n){n.languages.sass=n.languages.extend("css",{comment:{pattern:/^([ \t]*)\/[\/*].*(?:(?:\r?\n|\r)\1[ \t].+)*/m,lookbehind:!0,greedy:!0}}),n.languages.insertBefore("sass","atrule",{"atrule-line":{pattern:/^(?:[ \t]*)[@+=].+/m,greedy:!0,inside:{atrule:/(?:@[\w-]+|[+=])/}}}),delete n.languages.sass.atrule;var r=/\$[-\w]+|#\{\$[-\w]+\}/,a=[/[+*\/%]|[=!]=|<=?|>=?|\b(?:and|not|or)\b/,{pattern:/(\s)-(?=\s)/,lookbehind:!0}];n.languages.insertBefore("sass","property",{"variable-line":{pattern:/^[ \t]*\$.+/m,greedy:!0,inside:{punctuation:/:/,variable:r,operator:a}},"property-line":{pattern:/^[ \t]*(?:[^:\s]+ *:.*|:[^:\s].*)/m,greedy:!0,inside:{property:[/[^:\s]+(?=\s*:)/,{pattern:/(:)[^:\s]+/,lookbehind:!0}],punctuation:/:/,variable:r,operator:a,important:n.languages.sass.important}}}),delete n.languages.sass.property,delete n.languages.sass.important,n.languages.insertBefore("sass","punctuation",{selector:{pattern:/^([ \t]*)\S(?:,[^,\r\n]+|[^,\r\n]*)(?:,[^,\r\n]+)*(?:,(?:\r?\n|\r)\1[ \t]+\S(?:,[^,\r\n]+|[^,\r\n]*)(?:,[^,\r\n]+)*)*/m,lookbehind:!0,greedy:!0}})})(t)}return xD}var _D,iV;function z6e(){if(iV)return _D;iV=1;var e=Xj();_D=t,t.displayName="scala",t.aliases=[];function t(n){n.register(e),n.languages.scala=n.languages.extend("java",{"triple-quoted-string":{pattern:/"""[\s\S]*?"""/,greedy:!0,alias:"string"},string:{pattern:/("|')(?:\\.|(?!\1)[^\\\r\n])*\1/,greedy:!0},keyword:/<-|=>|\b(?:abstract|case|catch|class|def|do|else|extends|final|finally|for|forSome|if|implicit|import|lazy|match|new|null|object|override|package|private|protected|return|sealed|self|super|this|throw|trait|try|type|val|var|while|with|yield)\b/,number:/\b0x(?:[\da-f]*\.)?[\da-f]+|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e\d+)?[dfl]?/i,builtin:/\b(?:Any|AnyRef|AnyVal|Boolean|Byte|Char|Double|Float|Int|Long|Nothing|Short|String|Unit)\b/,symbol:/'[^\d\s\\]\w*/}),n.languages.insertBefore("scala","triple-quoted-string",{"string-interpolation":{pattern:/\b[a-z]\w*(?:"""(?:[^$]|\$(?:[^{]|\{(?:[^{}]|\{[^{}]*\})*\}))*?"""|"(?:[^$"\r\n]|\$(?:[^{]|\{(?:[^{}]|\{[^{}]*\})*\}))*")/i,greedy:!0,inside:{id:{pattern:/^\w+/,greedy:!0,alias:"function"},escape:{pattern:/\\\$"|\$[$"]/,greedy:!0,alias:"symbol"},interpolation:{pattern:/\$(?:\w+|\{(?:[^{}]|\{[^{}]*\})*\})/,greedy:!0,inside:{punctuation:/^\$\{?|\}$/,expression:{pattern:/[\s\S]+/,inside:n.languages.scala}}},string:/[\s\S]+/}}}),delete n.languages.scala["class-name"],delete n.languages.scala.function}return _D}var OD,oV;function q6e(){if(oV)return OD;oV=1,OD=e,e.displayName="scss",e.aliases=[];function e(t){t.languages.scss=t.languages.extend("css",{comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?\*\/|\/\/.*)/,lookbehind:!0},atrule:{pattern:/@[\w-](?:\([^()]+\)|[^()\s]|\s+(?!\s))*?(?=\s+[{;])/,inside:{rule:/@[\w-]+/}},url:/(?:[-a-z]+-)?url(?=\()/i,selector:{pattern:/(?=\S)[^@;{}()]?(?:[^@;{}()\s]|\s+(?!\s)|#\{\$[-\w]+\})+(?=\s*\{(?:\}|\s|[^}][^:{}]*[:{][^}]))/,inside:{parent:{pattern:/&/,alias:"important"},placeholder:/%[-\w]+/,variable:/\$[-\w]+|#\{\$[-\w]+\}/}},property:{pattern:/(?:[-\w]|\$[-\w]|#\{\$[-\w]+\})+(?=\s*:)/,inside:{variable:/\$[-\w]+|#\{\$[-\w]+\}/}}}),t.languages.insertBefore("scss","atrule",{keyword:[/@(?:content|debug|each|else(?: if)?|extend|for|forward|function|if|import|include|mixin|return|use|warn|while)\b/i,{pattern:/( )(?:from|through)(?= )/,lookbehind:!0}]}),t.languages.insertBefore("scss","important",{variable:/\$[-\w]+|#\{\$[-\w]+\}/}),t.languages.insertBefore("scss","function",{"module-modifier":{pattern:/\b(?:as|hide|show|with)\b/i,alias:"keyword"},placeholder:{pattern:/%[-\w]+/,alias:"selector"},statement:{pattern:/\B!(?:default|optional)\b/i,alias:"keyword"},boolean:/\b(?:false|true)\b/,null:{pattern:/\bnull\b/,alias:"keyword"},operator:{pattern:/(\s)(?:[-+*\/%]|[=!]=|<=?|>=?|and|not|or)(?=\s)/,lookbehind:!0}}),t.languages.scss.atrule.inside.rest=t.languages.scss}return OD}var RD,sV;function H6e(){if(sV)return RD;sV=1;var e=vre();RD=t,t.displayName="shellSession",t.aliases=[];function t(n){n.register(e),(function(r){var a=[/"(?:\\[\s\S]|\$\([^)]+\)|\$(?!\()|`[^`]+`|[^"\\`$])*"/.source,/'[^']*'/.source,/\$'(?:[^'\\]|\\[\s\S])*'/.source,/<<-?\s*(["']?)(\w+)\1\s[\s\S]*?[\r\n]\2/.source].join("|");r.languages["shell-session"]={command:{pattern:RegExp(/^/.source+"(?:"+(/[^\s@:$#%*!/\\]+@[^\r\n@:$#%*!/\\]+(?::[^\0-\x1F$#%*?"<>:;|]+)?/.source+"|"+/[/~.][^\0-\x1F$#%*?"<>@:;|]*/.source)+")?"+/[$#%](?=\s)/.source+/(?:[^\\\r\n \t'"<$]|[ \t](?:(?!#)|#.*$)|\\(?:[^\r]|\r\n?)|\$(?!')|<(?!<)|<>)+/.source.replace(/<>/g,function(){return a}),"m"),greedy:!0,inside:{info:{pattern:/^[^#$%]+/,alias:"punctuation",inside:{user:/^[^\s@:$#%*!/\\]+@[^\r\n@:$#%*!/\\]+/,punctuation:/:/,path:/[\s\S]+/}},bash:{pattern:/(^[$#%]\s*)\S[\s\S]*/,lookbehind:!0,alias:"language-bash",inside:r.languages.bash},"shell-symbol":{pattern:/^[$#%]/,alias:"important"}}},output:/.(?:.*(?:[\r\n]|.$))*/},r.languages["sh-session"]=r.languages.shellsession=r.languages["shell-session"]})(n)}return RD}var PD,lV;function V6e(){if(lV)return PD;lV=1,PD=e,e.displayName="smali",e.aliases=[];function e(t){t.languages.smali={comment:/#.*/,string:{pattern:/"(?:[^\r\n\\"]|\\.)*"|'(?:[^\r\n\\']|\\(?:.|u[\da-fA-F]{4}))'/,greedy:!0},"class-name":{pattern:/(^|[^L])L(?:(?:\w+|`[^`\r\n]*`)\/)*(?:[\w$]+|`[^`\r\n]*`)(?=\s*;)/,lookbehind:!0,inside:{"class-name":{pattern:/(^L|\/)(?:[\w$]+|`[^`\r\n]*`)$/,lookbehind:!0},namespace:{pattern:/^(L)(?:(?:\w+|`[^`\r\n]*`)\/)+/,lookbehind:!0,inside:{punctuation:/\//}},builtin:/^L/}},builtin:[{pattern:/([();\[])[BCDFIJSVZ]+/,lookbehind:!0},{pattern:/([\w$>]:)[BCDFIJSVZ]/,lookbehind:!0}],keyword:[{pattern:/(\.end\s+)[\w-]+/,lookbehind:!0},{pattern:/(^|[^\w.-])\.(?!\d)[\w-]+/,lookbehind:!0},{pattern:/(^|[^\w.-])(?:abstract|annotation|bridge|constructor|enum|final|interface|private|protected|public|runtime|static|synthetic|system|transient)(?![\w.-])/,lookbehind:!0}],function:{pattern:/(^|[^\w.-])(?:\w+|<[\w$-]+>)(?=\()/,lookbehind:!0},field:{pattern:/[\w$]+(?=:)/,alias:"variable"},register:{pattern:/(^|[^\w.-])[vp]\d(?![\w.-])/,lookbehind:!0,alias:"variable"},boolean:{pattern:/(^|[^\w.-])(?:false|true)(?![\w.-])/,lookbehind:!0},number:{pattern:/(^|[^/\w.-])-?(?:NAN|INFINITY|0x(?:[\dA-F]+(?:\.[\dA-F]*)?|\.[\dA-F]+)(?:p[+-]?[\dA-F]+)?|(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?)[dflst]?(?![\w.-])/i,lookbehind:!0},label:{pattern:/(:)\w+/,lookbehind:!0,alias:"property"},operator:/->|\.\.|[\[=]/,punctuation:/[{}(),;:]/}}return PD}var AD,uV;function G6e(){if(uV)return AD;uV=1,AD=e,e.displayName="smalltalk",e.aliases=[];function e(t){t.languages.smalltalk={comment:{pattern:/"(?:""|[^"])*"/,greedy:!0},char:{pattern:/\$./,greedy:!0},string:{pattern:/'(?:''|[^'])*'/,greedy:!0},symbol:/#[\da-z]+|#(?:-|([+\/\\*~<>=@%|&?!])\1?)|#(?=\()/i,"block-arguments":{pattern:/(\[\s*):[^\[|]*\|/,lookbehind:!0,inside:{variable:/:[\da-z]+/i,punctuation:/\|/}},"temporary-variables":{pattern:/\|[^|]+\|/,inside:{variable:/[\da-z]+/i,punctuation:/\|/}},keyword:/\b(?:new|nil|self|super)\b/,boolean:/\b(?:false|true)\b/,number:[/\d+r-?[\dA-Z]+(?:\.[\dA-Z]+)?(?:e-?\d+)?/,/\b\d+(?:\.\d+)?(?:e-?\d+)?/],operator:/[<=]=?|:=|~[~=]|\/\/?|\\\\|>[>=]?|[!^+\-*&|,@]/,punctuation:/[.;:?\[\](){}]/}}return AD}var ND,cV;function Y6e(){if(cV)return ND;cV=1;var e=cs();ND=t,t.displayName="smarty",t.aliases=[];function t(n){n.register(e),(function(r){r.languages.smarty={comment:{pattern:/^\{\*[\s\S]*?\*\}/,greedy:!0},"embedded-php":{pattern:/^\{php\}[\s\S]*?\{\/php\}/,greedy:!0,inside:{smarty:{pattern:/^\{php\}|\{\/php\}$/,inside:null},php:{pattern:/[\s\S]+/,alias:"language-php",inside:r.languages.php}}},string:[{pattern:/"(?:\\.|[^"\\\r\n])*"/,greedy:!0,inside:{interpolation:{pattern:/\{[^{}]*\}|`[^`]*`/,inside:{"interpolation-punctuation":{pattern:/^[{`]|[`}]$/,alias:"punctuation"},expression:{pattern:/[\s\S]+/,inside:null}}},variable:/\$\w+/}},{pattern:/'(?:\\.|[^'\\\r\n])*'/,greedy:!0}],keyword:{pattern:/(^\{\/?)[a-z_]\w*\b(?!\()/i,lookbehind:!0,greedy:!0},delimiter:{pattern:/^\{\/?|\}$/,greedy:!0,alias:"punctuation"},number:/\b0x[\dA-Fa-f]+|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[Ee][-+]?\d+)?/,variable:[/\$(?!\d)\w+/,/#(?!\d)\w+#/,{pattern:/(\.|->|\w\s*=)(?!\d)\w+\b(?!\()/,lookbehind:!0},{pattern:/(\[)(?!\d)\w+(?=\])/,lookbehind:!0}],function:{pattern:/(\|\s*)@?[a-z_]\w*|\b[a-z_]\w*(?=\()/i,lookbehind:!0},"attr-name":/\b[a-z_]\w*(?=\s*=)/i,boolean:/\b(?:false|no|off|on|true|yes)\b/,punctuation:/[\[\](){}.,:`]|->/,operator:[/[+\-*\/%]|==?=?|[!<>]=?|&&|\|\|?/,/\bis\s+(?:not\s+)?(?:div|even|odd)(?:\s+by)?\b/,/\b(?:and|eq|gt?e|gt|lt?e|lt|mod|neq?|not|or)\b/]},r.languages.smarty["embedded-php"].inside.smarty.inside=r.languages.smarty,r.languages.smarty.string[0].inside.interpolation.inside.expression.inside=r.languages.smarty;var a=/"(?:\\.|[^"\\\r\n])*"|'(?:\\.|[^'\\\r\n])*'/,i=RegExp(/\{\*[\s\S]*?\*\}/.source+"|"+/\{php\}[\s\S]*?\{\/php\}/.source+"|"+/\{(?:[^{}"']||\{(?:[^{}"']||\{(?:[^{}"']|)*\})*\})*\}/.source.replace(//g,function(){return a.source}),"g");r.hooks.add("before-tokenize",function(o){var l="{literal}",u="{/literal}",d=!1;r.languages["markup-templating"].buildPlaceholders(o,"smarty",i,function(f){return f===u&&(d=!1),d?!1:(f===l&&(d=!0),!0)})}),r.hooks.add("after-tokenize",function(o){r.languages["markup-templating"].tokenizePlaceholders(o,"smarty")})})(n)}return ND}var MD,dV;function K6e(){if(dV)return MD;dV=1,MD=e,e.displayName="sml",e.aliases=["smlnj"];function e(t){(function(n){var r=/\b(?:abstype|and|andalso|as|case|datatype|do|else|end|eqtype|exception|fn|fun|functor|handle|if|in|include|infix|infixr|let|local|nonfix|of|op|open|orelse|raise|rec|sharing|sig|signature|struct|structure|then|type|val|where|while|with|withtype)\b/i;n.languages.sml={comment:/\(\*(?:[^*(]|\*(?!\))|\((?!\*)|\(\*(?:[^*(]|\*(?!\))|\((?!\*))*\*\))*\*\)/,string:{pattern:/#?"(?:[^"\\]|\\.)*"/,greedy:!0},"class-name":[{pattern:RegExp(/((?:^|[^:]):\s*)(?:\s*(?:(?:\*|->)\s*|,\s*(?:(?=)|(?!)\s+)))*/.source.replace(//g,function(){return/\s*(?:[*,]|->)/.source}).replace(//g,function(){return/(?:'[\w']*||\((?:[^()]|\([^()]*\))*\)|\{(?:[^{}]|\{[^{}]*\})*\})(?:\s+)*/.source}).replace(//g,function(){return/(?!)[a-z\d_][\w'.]*/.source}).replace(//g,function(){return r.source}),"i"),lookbehind:!0,greedy:!0,inside:null},{pattern:/((?:^|[^\w'])(?:datatype|exception|functor|signature|structure|type)\s+)[a-z_][\w'.]*/i,lookbehind:!0}],function:{pattern:/((?:^|[^\w'])fun\s+)[a-z_][\w'.]*/i,lookbehind:!0},keyword:r,variable:{pattern:/(^|[^\w'])'[\w']*/,lookbehind:!0},number:/~?\b(?:\d+(?:\.\d+)?(?:e~?\d+)?|0x[\da-f]+)\b/i,word:{pattern:/\b0w(?:\d+|x[\da-f]+)\b/i,alias:"constant"},boolean:/\b(?:false|true)\b/i,operator:/\.\.\.|:[>=:]|=>?|->|[<>]=?|[!+\-*/^#|@~]/,punctuation:/[(){}\[\].:,;]/},n.languages.sml["class-name"][0].inside=n.languages.sml,n.languages.smlnj=n.languages.sml})(t)}return MD}var ID,fV;function X6e(){if(fV)return ID;fV=1,ID=e,e.displayName="solidity",e.aliases=["sol"];function e(t){t.languages.solidity=t.languages.extend("clike",{"class-name":{pattern:/(\b(?:contract|enum|interface|library|new|struct|using)\s+)(?!\d)[\w$]+/,lookbehind:!0},keyword:/\b(?:_|anonymous|as|assembly|assert|break|calldata|case|constant|constructor|continue|contract|default|delete|do|else|emit|enum|event|external|for|from|function|if|import|indexed|inherited|interface|internal|is|let|library|mapping|memory|modifier|new|payable|pragma|private|public|pure|require|returns?|revert|selfdestruct|solidity|storage|struct|suicide|switch|this|throw|using|var|view|while)\b/,operator:/=>|->|:=|=:|\*\*|\+\+|--|\|\||&&|<<=?|>>=?|[-+*/%^&|<>!=]=?|[~?]/}),t.languages.insertBefore("solidity","keyword",{builtin:/\b(?:address|bool|byte|u?int(?:8|16|24|32|40|48|56|64|72|80|88|96|104|112|120|128|136|144|152|160|168|176|184|192|200|208|216|224|232|240|248|256)?|string|bytes(?:[1-9]|[12]\d|3[0-2])?)\b/}),t.languages.insertBefore("solidity","number",{version:{pattern:/([<>]=?|\^)\d+\.\d+\.\d+\b/,lookbehind:!0,alias:"number"}}),t.languages.sol=t.languages.solidity}return ID}var DD,pV;function Q6e(){if(pV)return DD;pV=1,DD=e,e.displayName="solutionFile",e.aliases=[];function e(t){(function(n){var r={pattern:/\{[\da-f]{8}-[\da-f]{4}-[\da-f]{4}-[\da-f]{4}-[\da-f]{12}\}/i,alias:"constant",inside:{punctuation:/[{}]/}};n.languages["solution-file"]={comment:{pattern:/#.*/,greedy:!0},string:{pattern:/"[^"\r\n]*"|'[^'\r\n]*'/,greedy:!0,inside:{guid:r}},object:{pattern:/^([ \t]*)(?:([A-Z]\w*)\b(?=.*(?:\r\n?|\n)(?:\1[ \t].*(?:\r\n?|\n))*\1End\2(?=[ \t]*$))|End[A-Z]\w*(?=[ \t]*$))/m,lookbehind:!0,greedy:!0,alias:"keyword"},property:{pattern:/^([ \t]*)(?!\s)[^\r\n"#=()]*[^\s"#=()](?=\s*=)/m,lookbehind:!0,inside:{guid:r}},guid:r,number:/\b\d+(?:\.\d+)*\b/,boolean:/\b(?:FALSE|TRUE)\b/,operator:/=/,punctuation:/[(),]/},n.languages.sln=n.languages["solution-file"]})(t)}return DD}var $D,hV;function J6e(){if(hV)return $D;hV=1;var e=cs();$D=t,t.displayName="soy",t.aliases=[];function t(n){n.register(e),(function(r){var a=/(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,i=/\b\d+(?:\.\d+)?(?:[eE][+-]?\d+)?\b|\b0x[\dA-F]+\b/;r.languages.soy={comment:[/\/\*[\s\S]*?\*\//,{pattern:/(\s)\/\/.*/,lookbehind:!0,greedy:!0}],"command-arg":{pattern:/(\{+\/?\s*(?:alias|call|delcall|delpackage|deltemplate|namespace|template)\s+)\.?[\w.]+/,lookbehind:!0,alias:"string",inside:{punctuation:/\./}},parameter:{pattern:/(\{+\/?\s*@?param\??\s+)\.?[\w.]+/,lookbehind:!0,alias:"variable"},keyword:[{pattern:/(\{+\/?[^\S\r\n]*)(?:\\[nrt]|alias|call|case|css|default|delcall|delpackage|deltemplate|else(?:if)?|fallbackmsg|for(?:each)?|if(?:empty)?|lb|let|literal|msg|namespace|nil|@?param\??|rb|sp|switch|template|xid)/,lookbehind:!0},/\b(?:any|as|attributes|bool|css|float|html|in|int|js|list|map|null|number|string|uri)\b/],delimiter:{pattern:/^\{+\/?|\/?\}+$/,alias:"punctuation"},property:/\w+(?==)/,variable:{pattern:/\$[^\W\d]\w*(?:\??(?:\.\w+|\[[^\]]+\]))*/,inside:{string:{pattern:a,greedy:!0},number:i,punctuation:/[\[\].?]/}},string:{pattern:a,greedy:!0},function:[/\w+(?=\()/,{pattern:/(\|[^\S\r\n]*)\w+/,lookbehind:!0}],boolean:/\b(?:false|true)\b/,number:i,operator:/\?:?|<=?|>=?|==?|!=|[+*/%-]|\b(?:and|not|or)\b/,punctuation:/[{}()\[\]|.,:]/},r.hooks.add("before-tokenize",function(o){var l=/\{\{.+?\}\}|\{.+?\}|\s\/\/.*|\/\*[\s\S]*?\*\//g,u="{literal}",d="{/literal}",f=!1;r.languages["markup-templating"].buildPlaceholders(o,"soy",l,function(g){return g===d&&(f=!1),f?!1:(g===u&&(f=!0),!0)})}),r.hooks.add("after-tokenize",function(o){r.languages["markup-templating"].tokenizePlaceholders(o,"soy")})})(n)}return $D}var LD,mV;function Sre(){if(mV)return LD;mV=1,LD=e,e.displayName="turtle",e.aliases=[];function e(t){t.languages.turtle={comment:{pattern:/#.*/,greedy:!0},"multiline-string":{pattern:/"""(?:(?:""?)?(?:[^"\\]|\\.))*"""|'''(?:(?:''?)?(?:[^'\\]|\\.))*'''/,greedy:!0,alias:"string",inside:{comment:/#.*/}},string:{pattern:/"(?:[^\\"\r\n]|\\.)*"|'(?:[^\\'\r\n]|\\.)*'/,greedy:!0},url:{pattern:/<(?:[^\x00-\x20<>"{}|^`\\]|\\(?:u[\da-fA-F]{4}|U[\da-fA-F]{8}))*>/,greedy:!0,inside:{punctuation:/[<>]/}},function:{pattern:/(?:(?![-.\d\xB7])[-.\w\xB7\xC0-\uFFFD]+)?:(?:(?![-.])(?:[-.:\w\xC0-\uFFFD]|%[\da-f]{2}|\\.)+)?/i,inside:{"local-name":{pattern:/([^:]*:)[\s\S]+/,lookbehind:!0},prefix:{pattern:/[\s\S]+/,inside:{punctuation:/:/}}}},number:/[+-]?\b\d+(?:\.\d*)?(?:e[+-]?\d+)?/i,punctuation:/[{}.,;()[\]]|\^\^/,boolean:/\b(?:false|true)\b/,keyword:[/(?:\ba|@prefix|@base)\b|=/,/\b(?:base|graph|prefix)\b/i],tag:{pattern:/@[a-z]+(?:-[a-z\d]+)*/i,inside:{punctuation:/@/}}},t.languages.trig=t.languages.turtle}return LD}var FD,gV;function Z6e(){if(gV)return FD;gV=1;var e=Sre();FD=t,t.displayName="sparql",t.aliases=["rq"];function t(n){n.register(e),n.languages.sparql=n.languages.extend("turtle",{boolean:/\b(?:false|true)\b/i,variable:{pattern:/[?$]\w+/,greedy:!0}}),n.languages.insertBefore("sparql","punctuation",{keyword:[/\b(?:A|ADD|ALL|AS|ASC|ASK|BNODE|BY|CLEAR|CONSTRUCT|COPY|CREATE|DATA|DEFAULT|DELETE|DESC|DESCRIBE|DISTINCT|DROP|EXISTS|FILTER|FROM|GROUP|HAVING|INSERT|INTO|LIMIT|LOAD|MINUS|MOVE|NAMED|NOT|NOW|OFFSET|OPTIONAL|ORDER|RAND|REDUCED|SELECT|SEPARATOR|SERVICE|SILENT|STRUUID|UNION|USING|UUID|VALUES|WHERE)\b/i,/\b(?:ABS|AVG|BIND|BOUND|CEIL|COALESCE|CONCAT|CONTAINS|COUNT|DATATYPE|DAY|ENCODE_FOR_URI|FLOOR|GROUP_CONCAT|HOURS|IF|IRI|isBLANK|isIRI|isLITERAL|isNUMERIC|isURI|LANG|LANGMATCHES|LCASE|MAX|MD5|MIN|MINUTES|MONTH|REGEX|REPLACE|ROUND|sameTerm|SAMPLE|SECONDS|SHA1|SHA256|SHA384|SHA512|STR|STRAFTER|STRBEFORE|STRDT|STRENDS|STRLANG|STRLEN|STRSTARTS|SUBSTR|SUM|TIMEZONE|TZ|UCASE|URI|YEAR)\b(?=\s*\()/i,/\b(?:BASE|GRAPH|PREFIX)\b/i]}),n.languages.rq=n.languages.sparql}return FD}var jD,vV;function eBe(){if(vV)return jD;vV=1,jD=e,e.displayName="splunkSpl",e.aliases=[];function e(t){t.languages["splunk-spl"]={comment:/`comment\("(?:\\.|[^\\"])*"\)`/,string:{pattern:/"(?:\\.|[^\\"])*"/,greedy:!0},keyword:/\b(?:abstract|accum|addcoltotals|addinfo|addtotals|analyzefields|anomalies|anomalousvalue|anomalydetection|append|appendcols|appendcsv|appendlookup|appendpipe|arules|associate|audit|autoregress|bin|bucket|bucketdir|chart|cluster|cofilter|collect|concurrency|contingency|convert|correlate|datamodel|dbinspect|dedup|delete|delta|diff|erex|eval|eventcount|eventstats|extract|fieldformat|fields|fieldsummary|filldown|fillnull|findtypes|folderize|foreach|format|from|gauge|gentimes|geom|geomfilter|geostats|head|highlight|history|iconify|input|inputcsv|inputlookup|iplocation|join|kmeans|kv|kvform|loadjob|localize|localop|lookup|makecontinuous|makemv|makeresults|map|mcollect|metadata|metasearch|meventcollect|mstats|multikv|multisearch|mvcombine|mvexpand|nomv|outlier|outputcsv|outputlookup|outputtext|overlap|pivot|predict|rangemap|rare|regex|relevancy|reltime|rename|replace|rest|return|reverse|rex|rtorder|run|savedsearch|script|scrub|search|searchtxn|selfjoin|sendemail|set|setfields|sichart|sirare|sistats|sitimechart|sitop|sort|spath|stats|strcat|streamstats|table|tags|tail|timechart|timewrap|top|transaction|transpose|trendline|tscollect|tstats|typeahead|typelearner|typer|union|uniq|untable|where|x11|xmlkv|xmlunescape|xpath|xyseries)\b/i,"operator-word":{pattern:/\b(?:and|as|by|not|or|xor)\b/i,alias:"operator"},function:/\b\w+(?=\s*\()/,property:/\b\w+(?=\s*=(?!=))/,date:{pattern:/\b\d{1,2}\/\d{1,2}\/\d{1,4}(?:(?::\d{1,2}){3})?\b/,alias:"number"},number:/\b\d+(?:\.\d+)?\b/,boolean:/\b(?:f|false|t|true)\b/i,operator:/[<>=]=?|[-+*/%|]/,punctuation:/[()[\],]/}}return jD}var UD,yV;function tBe(){if(yV)return UD;yV=1,UD=e,e.displayName="sqf",e.aliases=[];function e(t){t.languages.sqf=t.languages.extend("clike",{string:{pattern:/"(?:(?:"")?[^"])*"(?!")|'(?:[^'])*'/,greedy:!0},keyword:/\b(?:breakOut|breakTo|call|case|catch|default|do|echo|else|execFSM|execVM|exitWith|for|forEach|forEachMember|forEachMemberAgent|forEachMemberTeam|from|goto|if|nil|preprocessFile|preprocessFileLineNumbers|private|scopeName|spawn|step|switch|then|throw|to|try|while|with)\b/i,boolean:/\b(?:false|true)\b/i,function:/\b(?:abs|accTime|acos|action|actionIDs|actionKeys|actionKeysImages|actionKeysNames|actionKeysNamesArray|actionName|actionParams|activateAddons|activatedAddons|activateKey|add3DENConnection|add3DENEventHandler|add3DENLayer|addAction|addBackpack|addBackpackCargo|addBackpackCargoGlobal|addBackpackGlobal|addCamShake|addCuratorAddons|addCuratorCameraArea|addCuratorEditableObjects|addCuratorEditingArea|addCuratorPoints|addEditorObject|addEventHandler|addForce|addForceGeneratorRTD|addGoggles|addGroupIcon|addHandgunItem|addHeadgear|addItem|addItemCargo|addItemCargoGlobal|addItemPool|addItemToBackpack|addItemToUniform|addItemToVest|addLiveStats|addMagazine|addMagazineAmmoCargo|addMagazineCargo|addMagazineCargoGlobal|addMagazineGlobal|addMagazinePool|addMagazines|addMagazineTurret|addMenu|addMenuItem|addMissionEventHandler|addMPEventHandler|addMusicEventHandler|addOwnedMine|addPlayerScores|addPrimaryWeaponItem|addPublicVariableEventHandler|addRating|addResources|addScore|addScoreSide|addSecondaryWeaponItem|addSwitchableUnit|addTeamMember|addToRemainsCollector|addTorque|addUniform|addVehicle|addVest|addWaypoint|addWeapon|addWeaponCargo|addWeaponCargoGlobal|addWeaponGlobal|addWeaponItem|addWeaponPool|addWeaponTurret|admin|agent|agents|AGLToASL|aimedAtTarget|aimPos|airDensityCurveRTD|airDensityRTD|airplaneThrottle|airportSide|AISFinishHeal|alive|all3DENEntities|allAirports|allControls|allCurators|allCutLayers|allDead|allDeadMen|allDisplays|allGroups|allMapMarkers|allMines|allMissionObjects|allow3DMode|allowCrewInImmobile|allowCuratorLogicIgnoreAreas|allowDamage|allowDammage|allowFileOperations|allowFleeing|allowGetIn|allowSprint|allPlayers|allSimpleObjects|allSites|allTurrets|allUnits|allUnitsUAV|allVariables|ammo|ammoOnPylon|animate|animateBay|animateDoor|animatePylon|animateSource|animationNames|animationPhase|animationSourcePhase|animationState|append|apply|armoryPoints|arrayIntersect|asin|ASLToAGL|ASLToATL|assert|assignAsCargo|assignAsCargoIndex|assignAsCommander|assignAsDriver|assignAsGunner|assignAsTurret|assignCurator|assignedCargo|assignedCommander|assignedDriver|assignedGunner|assignedItems|assignedTarget|assignedTeam|assignedVehicle|assignedVehicleRole|assignItem|assignTeam|assignToAirport|atan|atan2|atg|ATLToASL|attachedObject|attachedObjects|attachedTo|attachObject|attachTo|attackEnabled|backpack|backpackCargo|backpackContainer|backpackItems|backpackMagazines|backpackSpaceFor|behaviour|benchmark|binocular|blufor|boundingBox|boundingBoxReal|boundingCenter|briefingName|buildingExit|buildingPos|buldozer_EnableRoadDiag|buldozer_IsEnabledRoadDiag|buldozer_LoadNewRoads|buldozer_reloadOperMap|buttonAction|buttonSetAction|cadetMode|callExtension|camCommand|camCommit|camCommitPrepared|camCommitted|camConstuctionSetParams|camCreate|camDestroy|cameraEffect|cameraEffectEnableHUD|cameraInterest|cameraOn|cameraView|campaignConfigFile|camPreload|camPreloaded|camPrepareBank|camPrepareDir|camPrepareDive|camPrepareFocus|camPrepareFov|camPrepareFovRange|camPreparePos|camPrepareRelPos|camPrepareTarget|camSetBank|camSetDir|camSetDive|camSetFocus|camSetFov|camSetFovRange|camSetPos|camSetRelPos|camSetTarget|camTarget|camUseNVG|canAdd|canAddItemToBackpack|canAddItemToUniform|canAddItemToVest|cancelSimpleTaskDestination|canFire|canMove|canSlingLoad|canStand|canSuspend|canTriggerDynamicSimulation|canUnloadInCombat|canVehicleCargo|captive|captiveNum|cbChecked|cbSetChecked|ceil|channelEnabled|cheatsEnabled|checkAIFeature|checkVisibility|civilian|className|clear3DENAttribute|clear3DENInventory|clearAllItemsFromBackpack|clearBackpackCargo|clearBackpackCargoGlobal|clearForcesRTD|clearGroupIcons|clearItemCargo|clearItemCargoGlobal|clearItemPool|clearMagazineCargo|clearMagazineCargoGlobal|clearMagazinePool|clearOverlay|clearRadio|clearVehicleInit|clearWeaponCargo|clearWeaponCargoGlobal|clearWeaponPool|clientOwner|closeDialog|closeDisplay|closeOverlay|collapseObjectTree|collect3DENHistory|collectiveRTD|combatMode|commandArtilleryFire|commandChat|commander|commandFire|commandFollow|commandFSM|commandGetOut|commandingMenu|commandMove|commandRadio|commandStop|commandSuppressiveFire|commandTarget|commandWatch|comment|commitOverlay|compile|compileFinal|completedFSM|composeText|configClasses|configFile|configHierarchy|configName|configNull|configProperties|configSourceAddonList|configSourceMod|configSourceModList|confirmSensorTarget|connectTerminalToUAV|controlNull|controlsGroupCtrl|copyFromClipboard|copyToClipboard|copyWaypoints|cos|count|countEnemy|countFriendly|countSide|countType|countUnknown|create3DENComposition|create3DENEntity|createAgent|createCenter|createDialog|createDiaryLink|createDiaryRecord|createDiarySubject|createDisplay|createGearDialog|createGroup|createGuardedPoint|createLocation|createMarker|createMarkerLocal|createMenu|createMine|createMissionDisplay|createMPCampaignDisplay|createSimpleObject|createSimpleTask|createSite|createSoundSource|createTask|createTeam|createTrigger|createUnit|createVehicle|createVehicleCrew|createVehicleLocal|crew|ctAddHeader|ctAddRow|ctClear|ctCurSel|ctData|ctFindHeaderRows|ctFindRowHeader|ctHeaderControls|ctHeaderCount|ctRemoveHeaders|ctRemoveRows|ctrlActivate|ctrlAddEventHandler|ctrlAngle|ctrlAutoScrollDelay|ctrlAutoScrollRewind|ctrlAutoScrollSpeed|ctrlChecked|ctrlClassName|ctrlCommit|ctrlCommitted|ctrlCreate|ctrlDelete|ctrlEnable|ctrlEnabled|ctrlFade|ctrlHTMLLoaded|ctrlIDC|ctrlIDD|ctrlMapAnimAdd|ctrlMapAnimClear|ctrlMapAnimCommit|ctrlMapAnimDone|ctrlMapCursor|ctrlMapMouseOver|ctrlMapScale|ctrlMapScreenToWorld|ctrlMapWorldToScreen|ctrlModel|ctrlModelDirAndUp|ctrlModelScale|ctrlParent|ctrlParentControlsGroup|ctrlPosition|ctrlRemoveAllEventHandlers|ctrlRemoveEventHandler|ctrlScale|ctrlSetActiveColor|ctrlSetAngle|ctrlSetAutoScrollDelay|ctrlSetAutoScrollRewind|ctrlSetAutoScrollSpeed|ctrlSetBackgroundColor|ctrlSetChecked|ctrlSetDisabledColor|ctrlSetEventHandler|ctrlSetFade|ctrlSetFocus|ctrlSetFont|ctrlSetFontH1|ctrlSetFontH1B|ctrlSetFontH2|ctrlSetFontH2B|ctrlSetFontH3|ctrlSetFontH3B|ctrlSetFontH4|ctrlSetFontH4B|ctrlSetFontH5|ctrlSetFontH5B|ctrlSetFontH6|ctrlSetFontH6B|ctrlSetFontHeight|ctrlSetFontHeightH1|ctrlSetFontHeightH2|ctrlSetFontHeightH3|ctrlSetFontHeightH4|ctrlSetFontHeightH5|ctrlSetFontHeightH6|ctrlSetFontHeightSecondary|ctrlSetFontP|ctrlSetFontPB|ctrlSetFontSecondary|ctrlSetForegroundColor|ctrlSetModel|ctrlSetModelDirAndUp|ctrlSetModelScale|ctrlSetPixelPrecision|ctrlSetPosition|ctrlSetScale|ctrlSetStructuredText|ctrlSetText|ctrlSetTextColor|ctrlSetTextColorSecondary|ctrlSetTextSecondary|ctrlSetTooltip|ctrlSetTooltipColorBox|ctrlSetTooltipColorShade|ctrlSetTooltipColorText|ctrlShow|ctrlShown|ctrlText|ctrlTextHeight|ctrlTextSecondary|ctrlTextWidth|ctrlType|ctrlVisible|ctRowControls|ctRowCount|ctSetCurSel|ctSetData|ctSetHeaderTemplate|ctSetRowTemplate|ctSetValue|ctValue|curatorAddons|curatorCamera|curatorCameraArea|curatorCameraAreaCeiling|curatorCoef|curatorEditableObjects|curatorEditingArea|curatorEditingAreaType|curatorMouseOver|curatorPoints|curatorRegisteredObjects|curatorSelected|curatorWaypointCost|current3DENOperation|currentChannel|currentCommand|currentMagazine|currentMagazineDetail|currentMagazineDetailTurret|currentMagazineTurret|currentMuzzle|currentNamespace|currentTask|currentTasks|currentThrowable|currentVisionMode|currentWaypoint|currentWeapon|currentWeaponMode|currentWeaponTurret|currentZeroing|cursorObject|cursorTarget|customChat|customRadio|cutFadeOut|cutObj|cutRsc|cutText|damage|date|dateToNumber|daytime|deActivateKey|debriefingText|debugFSM|debugLog|deg|delete3DENEntities|deleteAt|deleteCenter|deleteCollection|deleteEditorObject|deleteGroup|deleteGroupWhenEmpty|deleteIdentity|deleteLocation|deleteMarker|deleteMarkerLocal|deleteRange|deleteResources|deleteSite|deleteStatus|deleteTeam|deleteVehicle|deleteVehicleCrew|deleteWaypoint|detach|detectedMines|diag_activeMissionFSMs|diag_activeScripts|diag_activeSQFScripts|diag_activeSQSScripts|diag_captureFrame|diag_captureFrameToFile|diag_captureSlowFrame|diag_codePerformance|diag_drawMode|diag_dynamicSimulationEnd|diag_enable|diag_enabled|diag_fps|diag_fpsMin|diag_frameNo|diag_lightNewLoad|diag_list|diag_log|diag_logSlowFrame|diag_mergeConfigFile|diag_recordTurretLimits|diag_setLightNew|diag_tickTime|diag_toggle|dialog|diarySubjectExists|didJIP|didJIPOwner|difficulty|difficultyEnabled|difficultyEnabledRTD|difficultyOption|direction|directSay|disableAI|disableCollisionWith|disableConversation|disableDebriefingStats|disableMapIndicators|disableNVGEquipment|disableRemoteSensors|disableSerialization|disableTIEquipment|disableUAVConnectability|disableUserInput|displayAddEventHandler|displayCtrl|displayNull|displayParent|displayRemoveAllEventHandlers|displayRemoveEventHandler|displaySetEventHandler|dissolveTeam|distance|distance2D|distanceSqr|distributionRegion|do3DENAction|doArtilleryFire|doFire|doFollow|doFSM|doGetOut|doMove|doorPhase|doStop|doSuppressiveFire|doTarget|doWatch|drawArrow|drawEllipse|drawIcon|drawIcon3D|drawLine|drawLine3D|drawLink|drawLocation|drawPolygon|drawRectangle|drawTriangle|driver|drop|dynamicSimulationDistance|dynamicSimulationDistanceCoef|dynamicSimulationEnabled|dynamicSimulationSystemEnabled|east|edit3DENMissionAttributes|editObject|editorSetEventHandler|effectiveCommander|emptyPositions|enableAI|enableAIFeature|enableAimPrecision|enableAttack|enableAudioFeature|enableAutoStartUpRTD|enableAutoTrimRTD|enableCamShake|enableCaustics|enableChannel|enableCollisionWith|enableCopilot|enableDebriefingStats|enableDiagLegend|enableDynamicSimulation|enableDynamicSimulationSystem|enableEndDialog|enableEngineArtillery|enableEnvironment|enableFatigue|enableGunLights|enableInfoPanelComponent|enableIRLasers|enableMimics|enablePersonTurret|enableRadio|enableReload|enableRopeAttach|enableSatNormalOnDetail|enableSaving|enableSentences|enableSimulation|enableSimulationGlobal|enableStamina|enableStressDamage|enableTeamSwitch|enableTraffic|enableUAVConnectability|enableUAVWaypoints|enableVehicleCargo|enableVehicleSensor|enableWeaponDisassembly|endl|endLoadingScreen|endMission|engineOn|enginesIsOnRTD|enginesPowerRTD|enginesRpmRTD|enginesTorqueRTD|entities|environmentEnabled|estimatedEndServerTime|estimatedTimeLeft|evalObjectArgument|everyBackpack|everyContainer|exec|execEditorScript|exp|expectedDestination|exportJIPMessages|eyeDirection|eyePos|face|faction|fadeMusic|fadeRadio|fadeSound|fadeSpeech|failMission|fillWeaponsFromPool|find|findCover|findDisplay|findEditorObject|findEmptyPosition|findEmptyPositionReady|findIf|findNearestEnemy|finishMissionInit|finite|fire|fireAtTarget|firstBackpack|flag|flagAnimationPhase|flagOwner|flagSide|flagTexture|fleeing|floor|flyInHeight|flyInHeightASL|fog|fogForecast|fogParams|forceAddUniform|forceAtPositionRTD|forcedMap|forceEnd|forceFlagTexture|forceFollowRoad|forceGeneratorRTD|forceMap|forceRespawn|forceSpeed|forceWalk|forceWeaponFire|forceWeatherChange|forgetTarget|format|formation|formationDirection|formationLeader|formationMembers|formationPosition|formationTask|formatText|formLeader|freeLook|fromEditor|fuel|fullCrew|gearIDCAmmoCount|gearSlotAmmoCount|gearSlotData|get3DENActionState|get3DENAttribute|get3DENCamera|get3DENConnections|get3DENEntity|get3DENEntityID|get3DENGrid|get3DENIconsVisible|get3DENLayerEntities|get3DENLinesVisible|get3DENMissionAttribute|get3DENMouseOver|get3DENSelected|getAimingCoef|getAllEnvSoundControllers|getAllHitPointsDamage|getAllOwnedMines|getAllSoundControllers|getAmmoCargo|getAnimAimPrecision|getAnimSpeedCoef|getArray|getArtilleryAmmo|getArtilleryComputerSettings|getArtilleryETA|getAssignedCuratorLogic|getAssignedCuratorUnit|getBackpackCargo|getBleedingRemaining|getBurningValue|getCameraViewDirection|getCargoIndex|getCenterOfMass|getClientState|getClientStateNumber|getCompatiblePylonMagazines|getConnectedUAV|getContainerMaxLoad|getCursorObjectParams|getCustomAimCoef|getDammage|getDescription|getDir|getDirVisual|getDLCAssetsUsage|getDLCAssetsUsageByName|getDLCs|getDLCUsageTime|getEditorCamera|getEditorMode|getEditorObjectScope|getElevationOffset|getEngineTargetRpmRTD|getEnvSoundController|getFatigue|getFieldManualStartPage|getForcedFlagTexture|getFriend|getFSMVariable|getFuelCargo|getGroupIcon|getGroupIconParams|getGroupIcons|getHideFrom|getHit|getHitIndex|getHitPointDamage|getItemCargo|getMagazineCargo|getMarkerColor|getMarkerPos|getMarkerSize|getMarkerType|getMass|getMissionConfig|getMissionConfigValue|getMissionDLCs|getMissionLayerEntities|getMissionLayers|getModelInfo|getMousePosition|getMusicPlayedTime|getNumber|getObjectArgument|getObjectChildren|getObjectDLC|getObjectMaterials|getObjectProxy|getObjectTextures|getObjectType|getObjectViewDistance|getOxygenRemaining|getPersonUsedDLCs|getPilotCameraDirection|getPilotCameraPosition|getPilotCameraRotation|getPilotCameraTarget|getPlateNumber|getPlayerChannel|getPlayerScores|getPlayerUID|getPlayerUIDOld|getPos|getPosASL|getPosASLVisual|getPosASLW|getPosATL|getPosATLVisual|getPosVisual|getPosWorld|getPylonMagazines|getRelDir|getRelPos|getRemoteSensorsDisabled|getRepairCargo|getResolution|getRotorBrakeRTD|getShadowDistance|getShotParents|getSlingLoad|getSoundController|getSoundControllerResult|getSpeed|getStamina|getStatValue|getSuppression|getTerrainGrid|getTerrainHeightASL|getText|getTotalDLCUsageTime|getTrimOffsetRTD|getUnitLoadout|getUnitTrait|getUserMFDText|getUserMFDValue|getVariable|getVehicleCargo|getWeaponCargo|getWeaponSway|getWingsOrientationRTD|getWingsPositionRTD|getWPPos|glanceAt|globalChat|globalRadio|goggles|group|groupChat|groupFromNetId|groupIconSelectable|groupIconsVisible|groupId|groupOwner|groupRadio|groupSelectedUnits|groupSelectUnit|grpNull|gunner|gusts|halt|handgunItems|handgunMagazine|handgunWeapon|handsHit|hasInterface|hasPilotCamera|hasWeapon|hcAllGroups|hcGroupParams|hcLeader|hcRemoveAllGroups|hcRemoveGroup|hcSelected|hcSelectGroup|hcSetGroup|hcShowBar|hcShownBar|headgear|hideBody|hideObject|hideObjectGlobal|hideSelection|hint|hintC|hintCadet|hintSilent|hmd|hostMission|htmlLoad|HUDMovementLevels|humidity|image|importAllGroups|importance|in|inArea|inAreaArray|incapacitatedState|independent|inflame|inflamed|infoPanel|infoPanelComponentEnabled|infoPanelComponents|infoPanels|inGameUISetEventHandler|inheritsFrom|initAmbientLife|inPolygon|inputAction|inRangeOfArtillery|insertEditorObject|intersect|is3DEN|is3DENMultiplayer|isAbleToBreathe|isAgent|isAimPrecisionEnabled|isArray|isAutoHoverOn|isAutonomous|isAutoStartUpEnabledRTD|isAutotest|isAutoTrimOnRTD|isBleeding|isBurning|isClass|isCollisionLightOn|isCopilotEnabled|isDamageAllowed|isDedicated|isDLCAvailable|isEngineOn|isEqualTo|isEqualType|isEqualTypeAll|isEqualTypeAny|isEqualTypeArray|isEqualTypeParams|isFilePatchingEnabled|isFlashlightOn|isFlatEmpty|isForcedWalk|isFormationLeader|isGroupDeletedWhenEmpty|isHidden|isInRemainsCollector|isInstructorFigureEnabled|isIRLaserOn|isKeyActive|isKindOf|isLaserOn|isLightOn|isLocalized|isManualFire|isMarkedForCollection|isMultiplayer|isMultiplayerSolo|isNil|isNull|isNumber|isObjectHidden|isObjectRTD|isOnRoad|isPipEnabled|isPlayer|isRealTime|isRemoteExecuted|isRemoteExecutedJIP|isServer|isShowing3DIcons|isSimpleObject|isSprintAllowed|isStaminaEnabled|isSteamMission|isStreamFriendlyUIEnabled|isStressDamageEnabled|isText|isTouchingGround|isTurnedOut|isTutHintsEnabled|isUAVConnectable|isUAVConnected|isUIContext|isUniformAllowed|isVehicleCargo|isVehicleRadarOn|isVehicleSensorEnabled|isWalking|isWeaponDeployed|isWeaponRested|itemCargo|items|itemsWithMagazines|join|joinAs|joinAsSilent|joinSilent|joinString|kbAddDatabase|kbAddDatabaseTargets|kbAddTopic|kbHasTopic|kbReact|kbRemoveTopic|kbTell|kbWasSaid|keyImage|keyName|knowsAbout|land|landAt|landResult|language|laserTarget|lbAdd|lbClear|lbColor|lbColorRight|lbCurSel|lbData|lbDelete|lbIsSelected|lbPicture|lbPictureRight|lbSelection|lbSetColor|lbSetColorRight|lbSetCurSel|lbSetData|lbSetPicture|lbSetPictureColor|lbSetPictureColorDisabled|lbSetPictureColorSelected|lbSetPictureRight|lbSetPictureRightColor|lbSetPictureRightColorDisabled|lbSetPictureRightColorSelected|lbSetSelectColor|lbSetSelectColorRight|lbSetSelected|lbSetText|lbSetTextRight|lbSetTooltip|lbSetValue|lbSize|lbSort|lbSortByValue|lbText|lbTextRight|lbValue|leader|leaderboardDeInit|leaderboardGetRows|leaderboardInit|leaderboardRequestRowsFriends|leaderboardRequestRowsGlobal|leaderboardRequestRowsGlobalAroundUser|leaderboardsRequestUploadScore|leaderboardsRequestUploadScoreKeepBest|leaderboardState|leaveVehicle|libraryCredits|libraryDisclaimers|lifeState|lightAttachObject|lightDetachObject|lightIsOn|lightnings|limitSpeed|linearConversion|lineBreak|lineIntersects|lineIntersectsObjs|lineIntersectsSurfaces|lineIntersectsWith|linkItem|list|listObjects|listRemoteTargets|listVehicleSensors|ln|lnbAddArray|lnbAddColumn|lnbAddRow|lnbClear|lnbColor|lnbColorRight|lnbCurSelRow|lnbData|lnbDeleteColumn|lnbDeleteRow|lnbGetColumnsPosition|lnbPicture|lnbPictureRight|lnbSetColor|lnbSetColorRight|lnbSetColumnsPos|lnbSetCurSelRow|lnbSetData|lnbSetPicture|lnbSetPictureColor|lnbSetPictureColorRight|lnbSetPictureColorSelected|lnbSetPictureColorSelectedRight|lnbSetPictureRight|lnbSetText|lnbSetTextRight|lnbSetValue|lnbSize|lnbSort|lnbSortByValue|lnbText|lnbTextRight|lnbValue|load|loadAbs|loadBackpack|loadFile|loadGame|loadIdentity|loadMagazine|loadOverlay|loadStatus|loadUniform|loadVest|local|localize|locationNull|locationPosition|lock|lockCameraTo|lockCargo|lockDriver|locked|lockedCargo|lockedDriver|lockedTurret|lockIdentity|lockTurret|lockWP|log|logEntities|logNetwork|logNetworkTerminate|lookAt|lookAtPos|magazineCargo|magazines|magazinesAllTurrets|magazinesAmmo|magazinesAmmoCargo|magazinesAmmoFull|magazinesDetail|magazinesDetailBackpack|magazinesDetailUniform|magazinesDetailVest|magazinesTurret|magazineTurretAmmo|mapAnimAdd|mapAnimClear|mapAnimCommit|mapAnimDone|mapCenterOnCamera|mapGridPosition|markAsFinishedOnSteam|markerAlpha|markerBrush|markerColor|markerDir|markerPos|markerShape|markerSize|markerText|markerType|max|members|menuAction|menuAdd|menuChecked|menuClear|menuCollapse|menuData|menuDelete|menuEnable|menuEnabled|menuExpand|menuHover|menuPicture|menuSetAction|menuSetCheck|menuSetData|menuSetPicture|menuSetValue|menuShortcut|menuShortcutText|menuSize|menuSort|menuText|menuURL|menuValue|min|mineActive|mineDetectedBy|missionConfigFile|missionDifficulty|missionName|missionNamespace|missionStart|missionVersion|modelToWorld|modelToWorldVisual|modelToWorldVisualWorld|modelToWorldWorld|modParams|moonIntensity|moonPhase|morale|move|move3DENCamera|moveInAny|moveInCargo|moveInCommander|moveInDriver|moveInGunner|moveInTurret|moveObjectToEnd|moveOut|moveTime|moveTo|moveToCompleted|moveToFailed|musicVolume|name|nameSound|nearEntities|nearestBuilding|nearestLocation|nearestLocations|nearestLocationWithDubbing|nearestObject|nearestObjects|nearestTerrainObjects|nearObjects|nearObjectsReady|nearRoads|nearSupplies|nearTargets|needReload|netId|netObjNull|newOverlay|nextMenuItemIndex|nextWeatherChange|nMenuItems|numberOfEnginesRTD|numberToDate|objectCurators|objectFromNetId|objectParent|objNull|objStatus|onBriefingGear|onBriefingGroup|onBriefingNotes|onBriefingPlan|onBriefingTeamSwitch|onCommandModeChanged|onDoubleClick|onEachFrame|onGroupIconClick|onGroupIconOverEnter|onGroupIconOverLeave|onHCGroupSelectionChanged|onMapSingleClick|onPlayerConnected|onPlayerDisconnected|onPreloadFinished|onPreloadStarted|onShowNewObject|onTeamSwitch|openCuratorInterface|openDLCPage|openDSInterface|openMap|openSteamApp|openYoutubeVideo|opfor|orderGetIn|overcast|overcastForecast|owner|param|params|parseNumber|parseSimpleArray|parseText|parsingNamespace|particlesQuality|pi|pickWeaponPool|pitch|pixelGrid|pixelGridBase|pixelGridNoUIScale|pixelH|pixelW|playableSlotsNumber|playableUnits|playAction|playActionNow|player|playerRespawnTime|playerSide|playersNumber|playGesture|playMission|playMove|playMoveNow|playMusic|playScriptedMission|playSound|playSound3D|position|positionCameraToWorld|posScreenToWorld|posWorldToScreen|ppEffectAdjust|ppEffectCommit|ppEffectCommitted|ppEffectCreate|ppEffectDestroy|ppEffectEnable|ppEffectEnabled|ppEffectForceInNVG|precision|preloadCamera|preloadObject|preloadSound|preloadTitleObj|preloadTitleRsc|primaryWeapon|primaryWeaponItems|primaryWeaponMagazine|priority|processDiaryLink|processInitCommands|productVersion|profileName|profileNamespace|profileNameSteam|progressLoadingScreen|progressPosition|progressSetPosition|publicVariable|publicVariableClient|publicVariableServer|pushBack|pushBackUnique|putWeaponPool|queryItemsPool|queryMagazinePool|queryWeaponPool|rad|radioChannelAdd|radioChannelCreate|radioChannelRemove|radioChannelSetCallSign|radioChannelSetLabel|radioVolume|rain|rainbow|random|rank|rankId|rating|rectangular|registeredTasks|registerTask|reload|reloadEnabled|remoteControl|remoteExec|remoteExecCall|remoteExecutedOwner|remove3DENConnection|remove3DENEventHandler|remove3DENLayer|removeAction|removeAll3DENEventHandlers|removeAllActions|removeAllAssignedItems|removeAllContainers|removeAllCuratorAddons|removeAllCuratorCameraAreas|removeAllCuratorEditingAreas|removeAllEventHandlers|removeAllHandgunItems|removeAllItems|removeAllItemsWithMagazines|removeAllMissionEventHandlers|removeAllMPEventHandlers|removeAllMusicEventHandlers|removeAllOwnedMines|removeAllPrimaryWeaponItems|removeAllWeapons|removeBackpack|removeBackpackGlobal|removeCuratorAddons|removeCuratorCameraArea|removeCuratorEditableObjects|removeCuratorEditingArea|removeDrawIcon|removeDrawLinks|removeEventHandler|removeFromRemainsCollector|removeGoggles|removeGroupIcon|removeHandgunItem|removeHeadgear|removeItem|removeItemFromBackpack|removeItemFromUniform|removeItemFromVest|removeItems|removeMagazine|removeMagazineGlobal|removeMagazines|removeMagazinesTurret|removeMagazineTurret|removeMenuItem|removeMissionEventHandler|removeMPEventHandler|removeMusicEventHandler|removeOwnedMine|removePrimaryWeaponItem|removeSecondaryWeaponItem|removeSimpleTask|removeSwitchableUnit|removeTeamMember|removeUniform|removeVest|removeWeapon|removeWeaponAttachmentCargo|removeWeaponCargo|removeWeaponGlobal|removeWeaponTurret|reportRemoteTarget|requiredVersion|resetCamShake|resetSubgroupDirection|resistance|resize|resources|respawnVehicle|restartEditorCamera|reveal|revealMine|reverse|reversedMouseY|roadAt|roadsConnectedTo|roleDescription|ropeAttachedObjects|ropeAttachedTo|ropeAttachEnabled|ropeAttachTo|ropeCreate|ropeCut|ropeDestroy|ropeDetach|ropeEndPosition|ropeLength|ropes|ropeUnwind|ropeUnwound|rotorsForcesRTD|rotorsRpmRTD|round|runInitScript|safeZoneH|safeZoneW|safeZoneWAbs|safeZoneX|safeZoneXAbs|safeZoneY|save3DENInventory|saveGame|saveIdentity|saveJoysticks|saveOverlay|saveProfileNamespace|saveStatus|saveVar|savingEnabled|say|say2D|say3D|score|scoreSide|screenshot|screenToWorld|scriptDone|scriptName|scriptNull|scudState|secondaryWeapon|secondaryWeaponItems|secondaryWeaponMagazine|select|selectBestPlaces|selectDiarySubject|selectedEditorObjects|selectEditorObject|selectionNames|selectionPosition|selectLeader|selectMax|selectMin|selectNoPlayer|selectPlayer|selectRandom|selectRandomWeighted|selectWeapon|selectWeaponTurret|sendAUMessage|sendSimpleCommand|sendTask|sendTaskResult|sendUDPMessage|serverCommand|serverCommandAvailable|serverCommandExecutable|serverName|serverTime|set|set3DENAttribute|set3DENAttributes|set3DENGrid|set3DENIconsVisible|set3DENLayer|set3DENLinesVisible|set3DENLogicType|set3DENMissionAttribute|set3DENMissionAttributes|set3DENModelsVisible|set3DENObjectType|set3DENSelected|setAccTime|setActualCollectiveRTD|setAirplaneThrottle|setAirportSide|setAmmo|setAmmoCargo|setAmmoOnPylon|setAnimSpeedCoef|setAperture|setApertureNew|setArmoryPoints|setAttributes|setAutonomous|setBehaviour|setBleedingRemaining|setBrakesRTD|setCameraInterest|setCamShakeDefParams|setCamShakeParams|setCamUseTI|setCaptive|setCenterOfMass|setCollisionLight|setCombatMode|setCompassOscillation|setConvoySeparation|setCuratorCameraAreaCeiling|setCuratorCoef|setCuratorEditingAreaType|setCuratorWaypointCost|setCurrentChannel|setCurrentTask|setCurrentWaypoint|setCustomAimCoef|setCustomWeightRTD|setDamage|setDammage|setDate|setDebriefingText|setDefaultCamera|setDestination|setDetailMapBlendPars|setDir|setDirection|setDrawIcon|setDriveOnPath|setDropInterval|setDynamicSimulationDistance|setDynamicSimulationDistanceCoef|setEditorMode|setEditorObjectScope|setEffectCondition|setEngineRpmRTD|setFace|setFaceAnimation|setFatigue|setFeatureType|setFlagAnimationPhase|setFlagOwner|setFlagSide|setFlagTexture|setFog|setForceGeneratorRTD|setFormation|setFormationTask|setFormDir|setFriend|setFromEditor|setFSMVariable|setFuel|setFuelCargo|setGroupIcon|setGroupIconParams|setGroupIconsSelectable|setGroupIconsVisible|setGroupId|setGroupIdGlobal|setGroupOwner|setGusts|setHideBehind|setHit|setHitIndex|setHitPointDamage|setHorizonParallaxCoef|setHUDMovementLevels|setIdentity|setImportance|setInfoPanel|setLeader|setLightAmbient|setLightAttenuation|setLightBrightness|setLightColor|setLightDayLight|setLightFlareMaxDistance|setLightFlareSize|setLightIntensity|setLightnings|setLightUseFlare|setLocalWindParams|setMagazineTurretAmmo|setMarkerAlpha|setMarkerAlphaLocal|setMarkerBrush|setMarkerBrushLocal|setMarkerColor|setMarkerColorLocal|setMarkerDir|setMarkerDirLocal|setMarkerPos|setMarkerPosLocal|setMarkerShape|setMarkerShapeLocal|setMarkerSize|setMarkerSizeLocal|setMarkerText|setMarkerTextLocal|setMarkerType|setMarkerTypeLocal|setMass|setMimic|setMousePosition|setMusicEffect|setMusicEventHandler|setName|setNameSound|setObjectArguments|setObjectMaterial|setObjectMaterialGlobal|setObjectProxy|setObjectTexture|setObjectTextureGlobal|setObjectViewDistance|setOvercast|setOwner|setOxygenRemaining|setParticleCircle|setParticleClass|setParticleFire|setParticleParams|setParticleRandom|setPilotCameraDirection|setPilotCameraRotation|setPilotCameraTarget|setPilotLight|setPiPEffect|setPitch|setPlateNumber|setPlayable|setPlayerRespawnTime|setPos|setPosASL|setPosASL2|setPosASLW|setPosATL|setPosition|setPosWorld|setPylonLoadOut|setPylonsPriority|setRadioMsg|setRain|setRainbow|setRandomLip|setRank|setRectangular|setRepairCargo|setRotorBrakeRTD|setShadowDistance|setShotParents|setSide|setSimpleTaskAlwaysVisible|setSimpleTaskCustomData|setSimpleTaskDescription|setSimpleTaskDestination|setSimpleTaskTarget|setSimpleTaskType|setSimulWeatherLayers|setSize|setSkill|setSlingLoad|setSoundEffect|setSpeaker|setSpeech|setSpeedMode|setStamina|setStaminaScheme|setStatValue|setSuppression|setSystemOfUnits|setTargetAge|setTaskMarkerOffset|setTaskResult|setTaskState|setTerrainGrid|setText|setTimeMultiplier|setTitleEffect|setToneMapping|setToneMappingParams|setTrafficDensity|setTrafficDistance|setTrafficGap|setTrafficSpeed|setTriggerActivation|setTriggerArea|setTriggerStatements|setTriggerText|setTriggerTimeout|setTriggerType|setType|setUnconscious|setUnitAbility|setUnitLoadout|setUnitPos|setUnitPosWeak|setUnitRank|setUnitRecoilCoefficient|setUnitTrait|setUnloadInCombat|setUserActionText|setUserMFDText|setUserMFDValue|setVariable|setVectorDir|setVectorDirAndUp|setVectorUp|setVehicleAmmo|setVehicleAmmoDef|setVehicleArmor|setVehicleCargo|setVehicleId|setVehicleInit|setVehicleLock|setVehiclePosition|setVehicleRadar|setVehicleReceiveRemoteTargets|setVehicleReportOwnPosition|setVehicleReportRemoteTargets|setVehicleTIPars|setVehicleVarName|setVelocity|setVelocityModelSpace|setVelocityTransformation|setViewDistance|setVisibleIfTreeCollapsed|setWantedRpmRTD|setWaves|setWaypointBehaviour|setWaypointCombatMode|setWaypointCompletionRadius|setWaypointDescription|setWaypointForceBehaviour|setWaypointFormation|setWaypointHousePosition|setWaypointLoiterRadius|setWaypointLoiterType|setWaypointName|setWaypointPosition|setWaypointScript|setWaypointSpeed|setWaypointStatements|setWaypointTimeout|setWaypointType|setWaypointVisible|setWeaponReloadingTime|setWind|setWindDir|setWindForce|setWindStr|setWingForceScaleRTD|setWPPos|show3DIcons|showChat|showCinemaBorder|showCommandingMenu|showCompass|showCuratorCompass|showGPS|showHUD|showLegend|showMap|shownArtilleryComputer|shownChat|shownCompass|shownCuratorCompass|showNewEditorObject|shownGPS|shownHUD|shownMap|shownPad|shownRadio|shownScoretable|shownUAVFeed|shownWarrant|shownWatch|showPad|showRadio|showScoretable|showSubtitles|showUAVFeed|showWarrant|showWatch|showWaypoint|showWaypoints|side|sideAmbientLife|sideChat|sideEmpty|sideEnemy|sideFriendly|sideLogic|sideRadio|sideUnknown|simpleTasks|simulationEnabled|simulCloudDensity|simulCloudOcclusion|simulInClouds|simulWeatherSync|sin|size|sizeOf|skill|skillFinal|skipTime|sleep|sliderPosition|sliderRange|sliderSetPosition|sliderSetRange|sliderSetSpeed|sliderSpeed|slingLoadAssistantShown|soldierMagazines|someAmmo|sort|soundVolume|speaker|speed|speedMode|splitString|sqrt|squadParams|stance|startLoadingScreen|stop|stopEngineRTD|stopped|str|sunOrMoon|supportInfo|suppressFor|surfaceIsWater|surfaceNormal|surfaceType|swimInDepth|switchableUnits|switchAction|switchCamera|switchGesture|switchLight|switchMove|synchronizedObjects|synchronizedTriggers|synchronizedWaypoints|synchronizeObjectsAdd|synchronizeObjectsRemove|synchronizeTrigger|synchronizeWaypoint|systemChat|systemOfUnits|tan|targetKnowledge|targets|targetsAggregate|targetsQuery|taskAlwaysVisible|taskChildren|taskCompleted|taskCustomData|taskDescription|taskDestination|taskHint|taskMarkerOffset|taskNull|taskParent|taskResult|taskState|taskType|teamMember|teamMemberNull|teamName|teams|teamSwitch|teamSwitchEnabled|teamType|terminate|terrainIntersect|terrainIntersectASL|terrainIntersectAtASL|text|textLog|textLogFormat|tg|time|timeMultiplier|titleCut|titleFadeOut|titleObj|titleRsc|titleText|toArray|toFixed|toLower|toString|toUpper|triggerActivated|triggerActivation|triggerArea|triggerAttachedVehicle|triggerAttachObject|triggerAttachVehicle|triggerDynamicSimulation|triggerStatements|triggerText|triggerTimeout|triggerTimeoutCurrent|triggerType|turretLocal|turretOwner|turretUnit|tvAdd|tvClear|tvCollapse|tvCollapseAll|tvCount|tvCurSel|tvData|tvDelete|tvExpand|tvExpandAll|tvPicture|tvPictureRight|tvSetColor|tvSetCurSel|tvSetData|tvSetPicture|tvSetPictureColor|tvSetPictureColorDisabled|tvSetPictureColorSelected|tvSetPictureRight|tvSetPictureRightColor|tvSetPictureRightColorDisabled|tvSetPictureRightColorSelected|tvSetSelectColor|tvSetText|tvSetTooltip|tvSetValue|tvSort|tvSortByValue|tvText|tvTooltip|tvValue|type|typeName|typeOf|UAVControl|uiNamespace|uiSleep|unassignCurator|unassignItem|unassignTeam|unassignVehicle|underwater|uniform|uniformContainer|uniformItems|uniformMagazines|unitAddons|unitAimPosition|unitAimPositionVisual|unitBackpack|unitIsUAV|unitPos|unitReady|unitRecoilCoefficient|units|unitsBelowHeight|unlinkItem|unlockAchievement|unregisterTask|updateDrawIcon|updateMenuItem|updateObjectTree|useAIOperMapObstructionTest|useAISteeringComponent|useAudioTimeForMoves|userInputDisabled|vectorAdd|vectorCos|vectorCrossProduct|vectorDiff|vectorDir|vectorDirVisual|vectorDistance|vectorDistanceSqr|vectorDotProduct|vectorFromTo|vectorMagnitude|vectorMagnitudeSqr|vectorModelToWorld|vectorModelToWorldVisual|vectorMultiply|vectorNormalized|vectorUp|vectorUpVisual|vectorWorldToModel|vectorWorldToModelVisual|vehicle|vehicleCargoEnabled|vehicleChat|vehicleRadio|vehicleReceiveRemoteTargets|vehicleReportOwnPosition|vehicleReportRemoteTargets|vehicles|vehicleVarName|velocity|velocityModelSpace|verifySignature|vest|vestContainer|vestItems|vestMagazines|viewDistance|visibleCompass|visibleGPS|visibleMap|visiblePosition|visiblePositionASL|visibleScoretable|visibleWatch|waitUntil|waves|waypointAttachedObject|waypointAttachedVehicle|waypointAttachObject|waypointAttachVehicle|waypointBehaviour|waypointCombatMode|waypointCompletionRadius|waypointDescription|waypointForceBehaviour|waypointFormation|waypointHousePosition|waypointLoiterRadius|waypointLoiterType|waypointName|waypointPosition|waypoints|waypointScript|waypointsEnabledUAV|waypointShow|waypointSpeed|waypointStatements|waypointTimeout|waypointTimeoutCurrent|waypointType|waypointVisible|weaponAccessories|weaponAccessoriesCargo|weaponCargo|weaponDirection|weaponInertia|weaponLowered|weapons|weaponsItems|weaponsItemsCargo|weaponState|weaponsTurret|weightRTD|west|WFSideText|wind|windDir|windRTD|windStr|wingsForcesRTD|worldName|worldSize|worldToModel|worldToModelVisual|worldToScreen)\b/i,number:/(?:\$|\b0x)[\da-f]+\b|(?:\B\.\d+|\b\d+(?:\.\d+)?)(?:e[+-]?\d+)?\b/i,operator:/##|>>|&&|\|\||[!=<>]=?|[-+*/%#^]|\b(?:and|mod|not|or)\b/i,"magic-variable":{pattern:/\b(?:this|thisList|thisTrigger|_exception|_fnc_scriptName|_fnc_scriptNameParent|_forEachIndex|_this|_thisEventHandler|_thisFSM|_thisScript|_x)\b/i,alias:"keyword"},constant:/\bDIK(?:_[a-z\d]+)+\b/i}),t.languages.insertBefore("sqf","string",{macro:{pattern:/(^[ \t]*)#[a-z](?:[^\r\n\\]|\\(?:\r\n|[\s\S]))*/im,lookbehind:!0,greedy:!0,alias:"property",inside:{directive:{pattern:/#[a-z]+\b/i,alias:"keyword"},comment:t.languages.sqf.comment}}}),delete t.languages.sqf["class-name"]}return UD}var BD,bV;function nBe(){if(bV)return BD;bV=1,BD=e,e.displayName="squirrel",e.aliases=[];function e(t){t.languages.squirrel=t.languages.extend("clike",{comment:[t.languages.clike.comment[0],{pattern:/(^|[^\\:])(?:\/\/|#).*/,lookbehind:!0,greedy:!0}],string:{pattern:/(^|[^\\"'@])(?:@"(?:[^"]|"")*"(?!")|"(?:[^\\\r\n"]|\\.)*")/,lookbehind:!0,greedy:!0},"class-name":{pattern:/(\b(?:class|enum|extends|instanceof)\s+)\w+(?:\.\w+)*/,lookbehind:!0,inside:{punctuation:/\./}},keyword:/\b(?:__FILE__|__LINE__|base|break|case|catch|class|clone|const|constructor|continue|default|delete|else|enum|extends|for|foreach|function|if|in|instanceof|local|null|resume|return|static|switch|this|throw|try|typeof|while|yield)\b/,number:/\b(?:0x[0-9a-fA-F]+|\d+(?:\.(?:\d+|[eE][+-]?\d+))?)\b/,operator:/\+\+|--|<=>|<[-<]|>>>?|&&?|\|\|?|[-+*/%!=<>]=?|[~^]|::?/,punctuation:/[(){}\[\],;.]/}),t.languages.insertBefore("squirrel","string",{char:{pattern:/(^|[^\\"'])'(?:[^\\']|\\(?:[xuU][0-9a-fA-F]{0,8}|[\s\S]))'/,lookbehind:!0,greedy:!0}}),t.languages.insertBefore("squirrel","operator",{"attribute-punctuation":{pattern:/<\/|\/>/,alias:"important"},lambda:{pattern:/@(?=\()/,alias:"operator"}})}return BD}var WD,wV;function rBe(){if(wV)return WD;wV=1,WD=e,e.displayName="stan",e.aliases=[];function e(t){(function(n){var r=/\b(?:algebra_solver|algebra_solver_newton|integrate_1d|integrate_ode|integrate_ode_bdf|integrate_ode_rk45|map_rect|ode_(?:adams|bdf|ckrk|rk45)(?:_tol)?|ode_adjoint_tol_ctl|reduce_sum|reduce_sum_static)\b/;n.languages.stan={comment:/\/\/.*|\/\*[\s\S]*?\*\/|#(?!include).*/,string:{pattern:/"[\x20\x21\x23-\x5B\x5D-\x7E]*"/,greedy:!0},directive:{pattern:/^([ \t]*)#include\b.*/m,lookbehind:!0,alias:"property"},"function-arg":{pattern:RegExp("("+r.source+/\s*\(\s*/.source+")"+/[a-zA-Z]\w*/.source),lookbehind:!0,alias:"function"},constraint:{pattern:/(\b(?:int|matrix|real|row_vector|vector)\s*)<[^<>]*>/,lookbehind:!0,inside:{expression:{pattern:/(=\s*)\S(?:\S|\s+(?!\s))*?(?=\s*(?:>$|,\s*\w+\s*=))/,lookbehind:!0,inside:null},property:/\b[a-z]\w*(?=\s*=)/i,operator:/=/,punctuation:/^<|>$|,/}},keyword:[{pattern:/\bdata(?=\s*\{)|\b(?:functions|generated|model|parameters|quantities|transformed)\b/,alias:"program-block"},/\b(?:array|break|cholesky_factor_corr|cholesky_factor_cov|complex|continue|corr_matrix|cov_matrix|data|else|for|if|in|increment_log_prob|int|matrix|ordered|positive_ordered|print|real|reject|return|row_vector|simplex|target|unit_vector|vector|void|while)\b/,r],function:/\b[a-z]\w*(?=\s*\()/i,number:/(?:\b\d+(?:_\d+)*(?:\.(?:\d+(?:_\d+)*)?)?|\B\.\d+(?:_\d+)*)(?:E[+-]?\d+(?:_\d+)*)?i?(?!\w)/i,boolean:/\b(?:false|true)\b/,operator:/<-|\.[*/]=?|\|\|?|&&|[!=<>+\-*/]=?|['^%~?:]/,punctuation:/[()\[\]{},;]/},n.languages.stan.constraint.inside.expression.inside=n.languages.stan})(t)}return WD}var zD,SV;function aBe(){if(SV)return zD;SV=1,zD=e,e.displayName="stylus",e.aliases=[];function e(t){(function(n){var r={pattern:/(\b\d+)(?:%|[a-z]+)/,lookbehind:!0},a={pattern:/(^|[^\w.-])-?(?:\d+(?:\.\d+)?|\.\d+)/,lookbehind:!0},i={comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?\*\/|\/\/.*)/,lookbehind:!0},url:{pattern:/\burl\((["']?).*?\1\)/i,greedy:!0},string:{pattern:/("|')(?:(?!\1)[^\\\r\n]|\\(?:\r\n|[\s\S]))*\1/,greedy:!0},interpolation:null,func:null,important:/\B!(?:important|optional)\b/i,keyword:{pattern:/(^|\s+)(?:(?:else|for|if|return|unless)(?=\s|$)|@[\w-]+)/,lookbehind:!0},hexcode:/#[\da-f]{3,6}/i,color:[/\b(?:AliceBlue|AntiqueWhite|Aqua|Aquamarine|Azure|Beige|Bisque|Black|BlanchedAlmond|Blue|BlueViolet|Brown|BurlyWood|CadetBlue|Chartreuse|Chocolate|Coral|CornflowerBlue|Cornsilk|Crimson|Cyan|DarkBlue|DarkCyan|DarkGoldenRod|DarkGr[ae]y|DarkGreen|DarkKhaki|DarkMagenta|DarkOliveGreen|DarkOrange|DarkOrchid|DarkRed|DarkSalmon|DarkSeaGreen|DarkSlateBlue|DarkSlateGr[ae]y|DarkTurquoise|DarkViolet|DeepPink|DeepSkyBlue|DimGr[ae]y|DodgerBlue|FireBrick|FloralWhite|ForestGreen|Fuchsia|Gainsboro|GhostWhite|Gold|GoldenRod|Gr[ae]y|Green|GreenYellow|HoneyDew|HotPink|IndianRed|Indigo|Ivory|Khaki|Lavender|LavenderBlush|LawnGreen|LemonChiffon|LightBlue|LightCoral|LightCyan|LightGoldenRodYellow|LightGr[ae]y|LightGreen|LightPink|LightSalmon|LightSeaGreen|LightSkyBlue|LightSlateGr[ae]y|LightSteelBlue|LightYellow|Lime|LimeGreen|Linen|Magenta|Maroon|MediumAquaMarine|MediumBlue|MediumOrchid|MediumPurple|MediumSeaGreen|MediumSlateBlue|MediumSpringGreen|MediumTurquoise|MediumVioletRed|MidnightBlue|MintCream|MistyRose|Moccasin|NavajoWhite|Navy|OldLace|Olive|OliveDrab|Orange|OrangeRed|Orchid|PaleGoldenRod|PaleGreen|PaleTurquoise|PaleVioletRed|PapayaWhip|PeachPuff|Peru|Pink|Plum|PowderBlue|Purple|Red|RosyBrown|RoyalBlue|SaddleBrown|Salmon|SandyBrown|SeaGreen|SeaShell|Sienna|Silver|SkyBlue|SlateBlue|SlateGr[ae]y|Snow|SpringGreen|SteelBlue|Tan|Teal|Thistle|Tomato|Transparent|Turquoise|Violet|Wheat|White|WhiteSmoke|Yellow|YellowGreen)\b/i,{pattern:/\b(?:hsl|rgb)\(\s*\d{1,3}\s*,\s*\d{1,3}%?\s*,\s*\d{1,3}%?\s*\)\B|\b(?:hsl|rgb)a\(\s*\d{1,3}\s*,\s*\d{1,3}%?\s*,\s*\d{1,3}%?\s*,\s*(?:0|0?\.\d+|1)\s*\)\B/i,inside:{unit:r,number:a,function:/[\w-]+(?=\()/,punctuation:/[(),]/}}],entity:/\\[\da-f]{1,8}/i,unit:r,boolean:/\b(?:false|true)\b/,operator:[/~|[+!\/%<>?=]=?|[-:]=|\*[*=]?|\.{2,3}|&&|\|\||\B-\B|\b(?:and|in|is(?: a| defined| not|nt)?|not|or)\b/],number:a,punctuation:/[{}()\[\];:,]/};i.interpolation={pattern:/\{[^\r\n}:]+\}/,alias:"variable",inside:{delimiter:{pattern:/^\{|\}$/,alias:"punctuation"},rest:i}},i.func={pattern:/[\w-]+\([^)]*\).*/,inside:{function:/^[^(]+/,rest:i}},n.languages.stylus={"atrule-declaration":{pattern:/(^[ \t]*)@.+/m,lookbehind:!0,inside:{atrule:/^@[\w-]+/,rest:i}},"variable-declaration":{pattern:/(^[ \t]*)[\w$-]+\s*.?=[ \t]*(?:\{[^{}]*\}|\S.*|$)/m,lookbehind:!0,inside:{variable:/^\S+/,rest:i}},statement:{pattern:/(^[ \t]*)(?:else|for|if|return|unless)[ \t].+/m,lookbehind:!0,inside:{keyword:/^\S+/,rest:i}},"property-declaration":{pattern:/((?:^|\{)([ \t]*))(?:[\w-]|\{[^}\r\n]+\})+(?:\s*:\s*|[ \t]+)(?!\s)[^{\r\n]*(?:;|[^{\r\n,]$(?!(?:\r?\n|\r)(?:\{|\2[ \t])))/m,lookbehind:!0,inside:{property:{pattern:/^[^\s:]+/,inside:{interpolation:i.interpolation}},rest:i}},selector:{pattern:/(^[ \t]*)(?:(?=\S)(?:[^{}\r\n:()]|::?[\w-]+(?:\([^)\r\n]*\)|(?![\w-]))|\{[^}\r\n]+\})+)(?:(?:\r?\n|\r)(?:\1(?:(?=\S)(?:[^{}\r\n:()]|::?[\w-]+(?:\([^)\r\n]*\)|(?![\w-]))|\{[^}\r\n]+\})+)))*(?:,$|\{|(?=(?:\r?\n|\r)(?:\{|\1[ \t])))/m,lookbehind:!0,inside:{interpolation:i.interpolation,comment:i.comment,punctuation:/[{},]/}},func:i.func,string:i.string,comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?\*\/|\/\/.*)/,lookbehind:!0,greedy:!0},interpolation:i.interpolation,punctuation:/[{}()\[\];:.]/}})(t)}return zD}var qD,EV;function iBe(){if(EV)return qD;EV=1,qD=e,e.displayName="swift",e.aliases=[];function e(t){t.languages.swift={comment:{pattern:/(^|[^\\:])(?:\/\/.*|\/\*(?:[^/*]|\/(?!\*)|\*(?!\/)|\/\*(?:[^*]|\*(?!\/))*\*\/)*\*\/)/,lookbehind:!0,greedy:!0},"string-literal":[{pattern:RegExp(/(^|[^"#])/.source+"(?:"+/"(?:\\(?:\((?:[^()]|\([^()]*\))*\)|\r\n|[^(])|[^\\\r\n"])*"/.source+"|"+/"""(?:\\(?:\((?:[^()]|\([^()]*\))*\)|[^(])|[^\\"]|"(?!""))*"""/.source+")"+/(?!["#])/.source),lookbehind:!0,greedy:!0,inside:{interpolation:{pattern:/(\\\()(?:[^()]|\([^()]*\))*(?=\))/,lookbehind:!0,inside:null},"interpolation-punctuation":{pattern:/^\)|\\\($/,alias:"punctuation"},punctuation:/\\(?=[\r\n])/,string:/[\s\S]+/}},{pattern:RegExp(/(^|[^"#])(#+)/.source+"(?:"+/"(?:\\(?:#+\((?:[^()]|\([^()]*\))*\)|\r\n|[^#])|[^\\\r\n])*?"/.source+"|"+/"""(?:\\(?:#+\((?:[^()]|\([^()]*\))*\)|[^#])|[^\\])*?"""/.source+")\\2"),lookbehind:!0,greedy:!0,inside:{interpolation:{pattern:/(\\#+\()(?:[^()]|\([^()]*\))*(?=\))/,lookbehind:!0,inside:null},"interpolation-punctuation":{pattern:/^\)|\\#+\($/,alias:"punctuation"},string:/[\s\S]+/}}],directive:{pattern:RegExp(/#/.source+"(?:"+(/(?:elseif|if)\b/.source+"(?:[ ]*"+/(?:![ \t]*)?(?:\b\w+\b(?:[ \t]*\((?:[^()]|\([^()]*\))*\))?|\((?:[^()]|\([^()]*\))*\))(?:[ \t]*(?:&&|\|\|))?/.source+")+")+"|"+/(?:else|endif)\b/.source+")"),alias:"property",inside:{"directive-name":/^#\w+/,boolean:/\b(?:false|true)\b/,number:/\b\d+(?:\.\d+)*\b/,operator:/!|&&|\|\||[<>]=?/,punctuation:/[(),]/}},literal:{pattern:/#(?:colorLiteral|column|dsohandle|file(?:ID|Literal|Path)?|function|imageLiteral|line)\b/,alias:"constant"},"other-directive":{pattern:/#\w+\b/,alias:"property"},attribute:{pattern:/@\w+/,alias:"atrule"},"function-definition":{pattern:/(\bfunc\s+)\w+/,lookbehind:!0,alias:"function"},label:{pattern:/\b(break|continue)\s+\w+|\b[a-zA-Z_]\w*(?=\s*:\s*(?:for|repeat|while)\b)/,lookbehind:!0,alias:"important"},keyword:/\b(?:Any|Protocol|Self|Type|actor|as|assignment|associatedtype|associativity|async|await|break|case|catch|class|continue|convenience|default|defer|deinit|didSet|do|dynamic|else|enum|extension|fallthrough|fileprivate|final|for|func|get|guard|higherThan|if|import|in|indirect|infix|init|inout|internal|is|isolated|lazy|left|let|lowerThan|mutating|none|nonisolated|nonmutating|open|operator|optional|override|postfix|precedencegroup|prefix|private|protocol|public|repeat|required|rethrows|return|right|safe|self|set|some|static|struct|subscript|super|switch|throw|throws|try|typealias|unowned|unsafe|var|weak|where|while|willSet)\b/,boolean:/\b(?:false|true)\b/,nil:{pattern:/\bnil\b/,alias:"constant"},"short-argument":/\$\d+\b/,omit:{pattern:/\b_\b/,alias:"keyword"},number:/\b(?:[\d_]+(?:\.[\de_]+)?|0x[a-f0-9_]+(?:\.[a-f0-9p_]+)?|0b[01_]+|0o[0-7_]+)\b/i,"class-name":/\b[A-Z](?:[A-Z_\d]*[a-z]\w*)?\b/,function:/\b[a-z_]\w*(?=\s*\()/i,constant:/\b(?:[A-Z_]{2,}|k[A-Z][A-Za-z_]+)\b/,operator:/[-+*/%=!<>&|^~?]+|\.[.\-+*/%=!<>&|^~?]+/,punctuation:/[{}[\]();,.:\\]/},t.languages.swift["string-literal"].forEach(function(n){n.inside.interpolation.inside=t.languages.swift})}return qD}var HD,TV;function oBe(){if(TV)return HD;TV=1,HD=e,e.displayName="systemd",e.aliases=[];function e(t){(function(n){var r={pattern:/^[;#].*/m,greedy:!0},a=/"(?:[^\r\n"\\]|\\(?:[^\r]|\r\n?))*"(?!\S)/.source;n.languages.systemd={comment:r,section:{pattern:/^\[[^\n\r\[\]]*\](?=[ \t]*$)/m,greedy:!0,inside:{punctuation:/^\[|\]$/,"section-name":{pattern:/[\s\S]+/,alias:"selector"}}},key:{pattern:/^[^\s=]+(?=[ \t]*=)/m,greedy:!0,alias:"attr-name"},value:{pattern:RegExp(/(=[ \t]*(?!\s))/.source+"(?:"+a+`|(?=[^"\r -]))(?:`+(/[^\s\\]/.source+'|[ ]+(?:(?![ "])|'+a+")|"+/\\[\r\n]+(?:[#;].*[\r\n]+)*(?![#;])/.source)+")*"),lookbehind:!0,greedy:!0,alias:"attr-value",inside:{comment:r,quoted:{pattern:RegExp(/(^|\s)/.source+a),lookbehind:!0,greedy:!0},punctuation:/\\$/m,boolean:{pattern:/^(?:false|no|off|on|true|yes)$/,greedy:!0}}},punctuation:/=/}})(t)}return HD}var VD,CV;function e4(){if(CV)return VD;CV=1,VD=e,e.displayName="t4Templating",e.aliases=[];function e(t){(function(n){function r(i,o,l){return{pattern:RegExp("<#"+i+"[\\s\\S]*?#>"),alias:"block",inside:{delimiter:{pattern:RegExp("^<#"+i+"|#>$"),alias:"important"},content:{pattern:/[\s\S]+/,inside:o,alias:l}}}}function a(i){var o=n.languages[i],l="language-"+i;return{block:{pattern:/<#[\s\S]+?#>/,inside:{directive:r("@",{"attr-value":{pattern:/=(?:("|')(?:\\[\s\S]|(?!\1)[^\\])*\1|[^\s'">=]+)/,inside:{punctuation:/^=|^["']|["']$/}},keyword:/\b\w+(?=\s)/,"attr-name":/\b\w+/}),expression:r("=",o,l),"class-feature":r("\\+",o,l),standard:r("",o,l)}}}}n.languages["t4-templating"]=Object.defineProperty({},"createT4",{value:a})})(t)}return VD}var GD,kV;function sBe(){if(kV)return GD;kV=1;var e=e4(),t=U_();GD=n,n.displayName="t4Cs",n.aliases=[];function n(r){r.register(e),r.register(t),r.languages.t4=r.languages["t4-cs"]=r.languages["t4-templating"].createT4("csharp")}return GD}var YD,xV;function Ere(){if(xV)return YD;xV=1;var e=yre();YD=t,t.displayName="vbnet",t.aliases=[];function t(n){n.register(e),n.languages.vbnet=n.languages.extend("basic",{comment:[{pattern:/(?:!|REM\b).+/i,inside:{keyword:/^REM/i}},{pattern:/(^|[^\\:])'.*/,lookbehind:!0,greedy:!0}],string:{pattern:/(^|[^"])"(?:""|[^"])*"(?!")/,lookbehind:!0,greedy:!0},keyword:/(?:\b(?:ADDHANDLER|ADDRESSOF|ALIAS|AND|ANDALSO|AS|BEEP|BLOAD|BOOLEAN|BSAVE|BYREF|BYTE|BYVAL|CALL(?: ABSOLUTE)?|CASE|CATCH|CBOOL|CBYTE|CCHAR|CDATE|CDBL|CDEC|CHAIN|CHAR|CHDIR|CINT|CLASS|CLEAR|CLNG|CLOSE|CLS|COBJ|COM|COMMON|CONST|CONTINUE|CSBYTE|CSHORT|CSNG|CSTR|CTYPE|CUINT|CULNG|CUSHORT|DATA|DATE|DECIMAL|DECLARE|DEF(?: FN| SEG|DBL|INT|LNG|SNG|STR)|DEFAULT|DELEGATE|DIM|DIRECTCAST|DO|DOUBLE|ELSE|ELSEIF|END|ENUM|ENVIRON|ERASE|ERROR|EVENT|EXIT|FALSE|FIELD|FILES|FINALLY|FOR(?: EACH)?|FRIEND|FUNCTION|GET|GETTYPE|GETXMLNAMESPACE|GLOBAL|GOSUB|GOTO|HANDLES|IF|IMPLEMENTS|IMPORTS|IN|INHERITS|INPUT|INTEGER|INTERFACE|IOCTL|IS|ISNOT|KEY|KILL|LET|LIB|LIKE|LINE INPUT|LOCATE|LOCK|LONG|LOOP|LSET|ME|MKDIR|MOD|MODULE|MUSTINHERIT|MUSTOVERRIDE|MYBASE|MYCLASS|NAME|NAMESPACE|NARROWING|NEW|NEXT|NOT|NOTHING|NOTINHERITABLE|NOTOVERRIDABLE|OBJECT|OF|OFF|ON(?: COM| ERROR| KEY| TIMER)?|OPEN|OPERATOR|OPTION(?: BASE)?|OPTIONAL|OR|ORELSE|OUT|OVERLOADS|OVERRIDABLE|OVERRIDES|PARAMARRAY|PARTIAL|POKE|PRIVATE|PROPERTY|PROTECTED|PUBLIC|PUT|RAISEEVENT|READ|READONLY|REDIM|REM|REMOVEHANDLER|RESTORE|RESUME|RETURN|RMDIR|RSET|RUN|SBYTE|SELECT(?: CASE)?|SET|SHADOWS|SHARED|SHELL|SHORT|SINGLE|SLEEP|STATIC|STEP|STOP|STRING|STRUCTURE|SUB|SWAP|SYNCLOCK|SYSTEM|THEN|THROW|TIMER|TO|TROFF|TRON|TRUE|TRY|TRYCAST|TYPE|TYPEOF|UINTEGER|ULONG|UNLOCK|UNTIL|USHORT|USING|VIEW PRINT|WAIT|WEND|WHEN|WHILE|WIDENING|WITH|WITHEVENTS|WRITE|WRITEONLY|XOR)|\B(?:#CONST|#ELSE|#ELSEIF|#END|#IF))(?:\$|\b)/i,punctuation:/[,;:(){}]/})}return YD}var KD,_V;function lBe(){if(_V)return KD;_V=1;var e=e4(),t=Ere();KD=n,n.displayName="t4Vb",n.aliases=[];function n(r){r.register(e),r.register(t),r.languages["t4-vb"]=r.languages["t4-templating"].createT4("vbnet")}return KD}var XD,OV;function Tre(){if(OV)return XD;OV=1,XD=e,e.displayName="yaml",e.aliases=["yml"];function e(t){(function(n){var r=/[*&][^\s[\]{},]+/,a=/!(?:<[\w\-%#;/?:@&=+$,.!~*'()[\]]+>|(?:[a-zA-Z\d-]*!)?[\w\-%#;/?:@&=+$.~*'()]+)?/,i="(?:"+a.source+"(?:[ ]+"+r.source+")?|"+r.source+"(?:[ ]+"+a.source+")?)",o=/(?:[^\s\x00-\x08\x0e-\x1f!"#%&'*,\-:>?@[\]`{|}\x7f-\x84\x86-\x9f\ud800-\udfff\ufffe\uffff]|[?:-])(?:[ \t]*(?:(?![#:])|:))*/.source.replace(//g,function(){return/[^\s\x00-\x08\x0e-\x1f,[\]{}\x7f-\x84\x86-\x9f\ud800-\udfff\ufffe\uffff]/.source}),l=/"(?:[^"\\\r\n]|\\.)*"|'(?:[^'\\\r\n]|\\.)*'/.source;function u(d,f){f=(f||"").replace(/m/g,"")+"m";var g=/([:\-,[{]\s*(?:\s<>[ \t]+)?)(?:<>)(?=[ \t]*(?:$|,|\]|\}|(?:[\r\n]\s*)?#))/.source.replace(/<>/g,function(){return i}).replace(/<>/g,function(){return d});return RegExp(g,f)}n.languages.yaml={scalar:{pattern:RegExp(/([\-:]\s*(?:\s<>[ \t]+)?[|>])[ \t]*(?:((?:\r?\n|\r)[ \t]+)\S[^\r\n]*(?:\2[^\r\n]+)*)/.source.replace(/<>/g,function(){return i})),lookbehind:!0,alias:"string"},comment:/#.*/,key:{pattern:RegExp(/((?:^|[:\-,[{\r\n?])[ \t]*(?:<>[ \t]+)?)<>(?=\s*:\s)/.source.replace(/<>/g,function(){return i}).replace(/<>/g,function(){return"(?:"+o+"|"+l+")"})),lookbehind:!0,greedy:!0,alias:"atrule"},directive:{pattern:/(^[ \t]*)%.+/m,lookbehind:!0,alias:"important"},datetime:{pattern:u(/\d{4}-\d\d?-\d\d?(?:[tT]|[ \t]+)\d\d?:\d{2}:\d{2}(?:\.\d*)?(?:[ \t]*(?:Z|[-+]\d\d?(?::\d{2})?))?|\d{4}-\d{2}-\d{2}|\d\d?:\d{2}(?::\d{2}(?:\.\d*)?)?/.source),lookbehind:!0,alias:"number"},boolean:{pattern:u(/false|true/.source,"i"),lookbehind:!0,alias:"important"},null:{pattern:u(/null|~/.source,"i"),lookbehind:!0,alias:"important"},string:{pattern:u(l),lookbehind:!0,greedy:!0},number:{pattern:u(/[+-]?(?:0x[\da-f]+|0o[0-7]+|(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?|\.inf|\.nan)/.source,"i"),lookbehind:!0},tag:a,important:r,punctuation:/---|[:[\]{}\-,|>?]|\.\.\./},n.languages.yml=n.languages.yaml})(t)}return XD}var QD,RV;function uBe(){if(RV)return QD;RV=1;var e=Tre();QD=t,t.displayName="tap",t.aliases=[];function t(n){n.register(e),n.languages.tap={fail:/not ok[^#{\n\r]*/,pass:/ok[^#{\n\r]*/,pragma:/pragma [+-][a-z]+/,bailout:/bail out!.*/i,version:/TAP version \d+/i,plan:/\b\d+\.\.\d+(?: +#.*)?/,subtest:{pattern:/# Subtest(?:: .*)?/,greedy:!0},punctuation:/[{}]/,directive:/#.*/,yamlish:{pattern:/(^[ \t]*)---[\s\S]*?[\r\n][ \t]*\.\.\.$/m,lookbehind:!0,inside:n.languages.yaml,alias:"language-yaml"}}}return QD}var JD,PV;function cBe(){if(PV)return JD;PV=1,JD=e,e.displayName="tcl",e.aliases=[];function e(t){t.languages.tcl={comment:{pattern:/(^|[^\\])#.*/,lookbehind:!0},string:{pattern:/"(?:[^"\\\r\n]|\\(?:\r\n|[\s\S]))*"/,greedy:!0},variable:[{pattern:/(\$)(?:::)?(?:[a-zA-Z0-9]+::)*\w+/,lookbehind:!0},{pattern:/(\$)\{[^}]+\}/,lookbehind:!0},{pattern:/(^[\t ]*set[ \t]+)(?:::)?(?:[a-zA-Z0-9]+::)*\w+/m,lookbehind:!0}],function:{pattern:/(^[\t ]*proc[ \t]+)\S+/m,lookbehind:!0},builtin:[{pattern:/(^[\t ]*)(?:break|class|continue|error|eval|exit|for|foreach|if|proc|return|switch|while)\b/m,lookbehind:!0},/\b(?:else|elseif)\b/],scope:{pattern:/(^[\t ]*)(?:global|upvar|variable)\b/m,lookbehind:!0,alias:"constant"},keyword:{pattern:/(^[\t ]*|\[)(?:Safe_Base|Tcl|after|append|apply|array|auto_(?:execok|import|load|mkindex|qualify|reset)|automkindex_old|bgerror|binary|catch|cd|chan|clock|close|concat|dde|dict|encoding|eof|exec|expr|fblocked|fconfigure|fcopy|file(?:event|name)?|flush|gets|glob|history|http|incr|info|interp|join|lappend|lassign|lindex|linsert|list|llength|load|lrange|lrepeat|lreplace|lreverse|lsearch|lset|lsort|math(?:func|op)|memory|msgcat|namespace|open|package|parray|pid|pkg_mkIndex|platform|puts|pwd|re_syntax|read|refchan|regexp|registry|regsub|rename|scan|seek|set|socket|source|split|string|subst|tcl(?:_endOfWord|_findLibrary|startOf(?:Next|Previous)Word|test|vars|wordBreak(?:After|Before))|tell|time|tm|trace|unknown|unload|unset|update|uplevel|vwait)\b/m,lookbehind:!0},operator:/!=?|\*\*?|==|&&?|\|\|?|<[=<]?|>[=>]?|[-+~\/%?^]|\b(?:eq|in|ne|ni)\b/,punctuation:/[{}()\[\]]/}}return JD}var ZD,AV;function dBe(){if(AV)return ZD;AV=1,ZD=e,e.displayName="textile",e.aliases=[];function e(t){(function(n){var r=/\([^|()\n]+\)|\[[^\]\n]+\]|\{[^}\n]+\}/.source,a=/\)|\((?![^|()\n]+\))/.source;function i(y,h){return RegExp(y.replace(//g,function(){return"(?:"+r+")"}).replace(//g,function(){return"(?:"+a+")"}),h||"")}var o={css:{pattern:/\{[^{}]+\}/,inside:{rest:n.languages.css}},"class-id":{pattern:/(\()[^()]+(?=\))/,lookbehind:!0,alias:"attr-value"},lang:{pattern:/(\[)[^\[\]]+(?=\])/,lookbehind:!0,alias:"attr-value"},punctuation:/[\\\/]\d+|\S/},l=n.languages.textile=n.languages.extend("markup",{phrase:{pattern:/(^|\r|\n)\S[\s\S]*?(?=$|\r?\n\r?\n|\r\r)/,lookbehind:!0,inside:{"block-tag":{pattern:i(/^[a-z]\w*(?:||[<>=])*\./.source),inside:{modifier:{pattern:i(/(^[a-z]\w*)(?:||[<>=])+(?=\.)/.source),lookbehind:!0,inside:o},tag:/^[a-z]\w*/,punctuation:/\.$/}},list:{pattern:i(/^[*#]+*\s+\S.*/.source,"m"),inside:{modifier:{pattern:i(/(^[*#]+)+/.source),lookbehind:!0,inside:o},punctuation:/^[*#]+/}},table:{pattern:i(/^(?:(?:||[<>=^~])+\.\s*)?(?:\|(?:(?:||[<>=^~_]|[\\/]\d+)+\.|(?!(?:||[<>=^~_]|[\\/]\d+)+\.))[^|]*)+\|/.source,"m"),inside:{modifier:{pattern:i(/(^|\|(?:\r?\n|\r)?)(?:||[<>=^~_]|[\\/]\d+)+(?=\.)/.source),lookbehind:!0,inside:o},punctuation:/\||^\./}},inline:{pattern:i(/(^|[^a-zA-Z\d])(\*\*|__|\?\?|[*_%@+\-^~])*.+?\2(?![a-zA-Z\d])/.source),lookbehind:!0,inside:{bold:{pattern:i(/(^(\*\*?)*).+?(?=\2)/.source),lookbehind:!0},italic:{pattern:i(/(^(__?)*).+?(?=\2)/.source),lookbehind:!0},cite:{pattern:i(/(^\?\?*).+?(?=\?\?)/.source),lookbehind:!0,alias:"string"},code:{pattern:i(/(^@*).+?(?=@)/.source),lookbehind:!0,alias:"keyword"},inserted:{pattern:i(/(^\+*).+?(?=\+)/.source),lookbehind:!0},deleted:{pattern:i(/(^-*).+?(?=-)/.source),lookbehind:!0},span:{pattern:i(/(^%*).+?(?=%)/.source),lookbehind:!0},modifier:{pattern:i(/(^\*\*|__|\?\?|[*_%@+\-^~])+/.source),lookbehind:!0,inside:o},punctuation:/[*_%?@+\-^~]+/}},"link-ref":{pattern:/^\[[^\]]+\]\S+$/m,inside:{string:{pattern:/(^\[)[^\]]+(?=\])/,lookbehind:!0},url:{pattern:/(^\])\S+$/,lookbehind:!0},punctuation:/[\[\]]/}},link:{pattern:i(/"*[^"]+":.+?(?=[^\w/]?(?:\s|$))/.source),inside:{text:{pattern:i(/(^"*)[^"]+(?=")/.source),lookbehind:!0},modifier:{pattern:i(/(^")+/.source),lookbehind:!0,inside:o},url:{pattern:/(:).+/,lookbehind:!0},punctuation:/[":]/}},image:{pattern:i(/!(?:||[<>=])*(?![<>=])[^!\s()]+(?:\([^)]+\))?!(?::.+?(?=[^\w/]?(?:\s|$)))?/.source),inside:{source:{pattern:i(/(^!(?:||[<>=])*)(?![<>=])[^!\s()]+(?:\([^)]+\))?(?=!)/.source),lookbehind:!0,alias:"url"},modifier:{pattern:i(/(^!)(?:||[<>=])+/.source),lookbehind:!0,inside:o},url:{pattern:/(:).+/,lookbehind:!0},punctuation:/[!:]/}},footnote:{pattern:/\b\[\d+\]/,alias:"comment",inside:{punctuation:/\[|\]/}},acronym:{pattern:/\b[A-Z\d]+\([^)]+\)/,inside:{comment:{pattern:/(\()[^()]+(?=\))/,lookbehind:!0},punctuation:/[()]/}},mark:{pattern:/\b\((?:C|R|TM)\)/,alias:"comment",inside:{punctuation:/[()]/}}}}}),u=l.phrase.inside,d={inline:u.inline,link:u.link,image:u.image,footnote:u.footnote,acronym:u.acronym,mark:u.mark};l.tag.pattern=/<\/?(?!\d)[a-z0-9]+(?:\s+[^\s>\/=]+(?:=(?:("|')(?:\\[\s\S]|(?!\1)[^\\])*\1|[^\s'">=]+))?)*\s*\/?>/i;var f=u.inline.inside;f.bold.inside=d,f.italic.inside=d,f.inserted.inside=d,f.deleted.inside=d,f.span.inside=d;var g=u.table.inside;g.inline=d.inline,g.link=d.link,g.image=d.image,g.footnote=d.footnote,g.acronym=d.acronym,g.mark=d.mark})(t)}return ZD}var e$,NV;function fBe(){if(NV)return e$;NV=1,e$=e,e.displayName="toml",e.aliases=[];function e(t){(function(n){var r=/(?:[\w-]+|'[^'\n\r]*'|"(?:\\.|[^\\"\r\n])*")/.source;function a(i){return i.replace(/__/g,function(){return r})}n.languages.toml={comment:{pattern:/#.*/,greedy:!0},table:{pattern:RegExp(a(/(^[\t ]*\[\s*(?:\[\s*)?)__(?:\s*\.\s*__)*(?=\s*\])/.source),"m"),lookbehind:!0,greedy:!0,alias:"class-name"},key:{pattern:RegExp(a(/(^[\t ]*|[{,]\s*)__(?:\s*\.\s*__)*(?=\s*=)/.source),"m"),lookbehind:!0,greedy:!0,alias:"property"},string:{pattern:/"""(?:\\[\s\S]|[^\\])*?"""|'''[\s\S]*?'''|'[^'\n\r]*'|"(?:\\.|[^\\"\r\n])*"/,greedy:!0},date:[{pattern:/\b\d{4}-\d{2}-\d{2}(?:[T\s]\d{2}:\d{2}:\d{2}(?:\.\d+)?(?:Z|[+-]\d{2}:\d{2})?)?\b/i,alias:"number"},{pattern:/\b\d{2}:\d{2}:\d{2}(?:\.\d+)?\b/,alias:"number"}],number:/(?:\b0(?:x[\da-zA-Z]+(?:_[\da-zA-Z]+)*|o[0-7]+(?:_[0-7]+)*|b[10]+(?:_[10]+)*))\b|[-+]?\b\d+(?:_\d+)*(?:\.\d+(?:_\d+)*)?(?:[eE][+-]?\d+(?:_\d+)*)?\b|[-+]?\b(?:inf|nan)\b/,boolean:/\b(?:false|true)\b/,punctuation:/[.,=[\]{}]/}})(t)}return e$}var t$,MV;function pBe(){if(MV)return t$;MV=1,t$=e,e.displayName="tremor",e.aliases=[];function e(t){(function(n){n.languages.tremor={comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?\*\/|(?:--|\/\/|#).*)/,lookbehind:!0},"interpolated-string":null,extractor:{pattern:/\b[a-z_]\w*\|(?:[^\r\n\\|]|\\(?:\r\n|[\s\S]))*\|/i,greedy:!0,inside:{regex:{pattern:/(^re)\|[\s\S]+/,lookbehind:!0},function:/^\w+/,value:/\|[\s\S]+/}},identifier:{pattern:/`[^`]*`/,greedy:!0},function:/\b[a-z_]\w*(?=\s*(?:::\s*<|\())\b/,keyword:/\b(?:args|as|by|case|config|connect|connector|const|copy|create|default|define|deploy|drop|each|emit|end|erase|event|flow|fn|for|from|group|having|insert|into|intrinsic|let|links|match|merge|mod|move|of|operator|patch|pipeline|recur|script|select|set|sliding|state|stream|to|tumbling|update|use|when|where|window|with)\b/,boolean:/\b(?:false|null|true)\b/i,number:/\b(?:0b[01_]*|0x[0-9a-fA-F_]*|\d[\d_]*(?:\.\d[\d_]*)?(?:[Ee][+-]?[\d_]+)?)\b/,"pattern-punctuation":{pattern:/%(?=[({[])/,alias:"punctuation"},operator:/[-+*\/%~!^]=?|=[=>]?|&[&=]?|\|[|=]?|<>?>?=?|(?:absent|and|not|or|present|xor)\b/,punctuation:/::|[;\[\]()\{\},.:]/};var r=/#\{(?:[^"{}]|\{[^{}]*\}|"(?:[^"\\\r\n]|\\(?:\r\n|[\s\S]))*")*\}/.source;n.languages.tremor["interpolated-string"]={pattern:RegExp(/(^|[^\\])/.source+'(?:"""(?:'+/[^"\\#]|\\[\s\S]|"(?!"")|#(?!\{)/.source+"|"+r+')*"""|"(?:'+/[^"\\\r\n#]|\\(?:\r\n|[\s\S])|#(?!\{)/.source+"|"+r+')*")'),lookbehind:!0,greedy:!0,inside:{interpolation:{pattern:RegExp(r),inside:{punctuation:/^#\{|\}$/,expression:{pattern:/[\s\S]+/,inside:n.languages.tremor}}},string:/[\s\S]+/}},n.languages.troy=n.languages.tremor,n.languages.trickle=n.languages.tremor})(t)}return t$}var n$,IV;function hBe(){if(IV)return n$;IV=1;var e=wre(),t=Qj();n$=n,n.displayName="tsx",n.aliases=[];function n(r){r.register(e),r.register(t),(function(a){var i=a.util.clone(a.languages.typescript);a.languages.tsx=a.languages.extend("jsx",i),delete a.languages.tsx.parameter,delete a.languages.tsx["literal-property"];var o=a.languages.tsx.tag;o.pattern=RegExp(/(^|[^\w$]|(?=<\/))/.source+"(?:"+o.pattern.source+")",o.pattern.flags),o.lookbehind=!0})(r)}return n$}var r$,DV;function mBe(){if(DV)return r$;DV=1;var e=cs();r$=t,t.displayName="tt2",t.aliases=[];function t(n){n.register(e),(function(r){r.languages.tt2=r.languages.extend("clike",{comment:/#.*|\[%#[\s\S]*?%\]/,keyword:/\b(?:BLOCK|CALL|CASE|CATCH|CLEAR|DEBUG|DEFAULT|ELSE|ELSIF|END|FILTER|FINAL|FOREACH|GET|IF|IN|INCLUDE|INSERT|LAST|MACRO|META|NEXT|PERL|PROCESS|RAWPERL|RETURN|SET|STOP|SWITCH|TAGS|THROW|TRY|UNLESS|USE|WHILE|WRAPPER)\b/,punctuation:/[[\]{},()]/}),r.languages.insertBefore("tt2","number",{operator:/=[>=]?|!=?|<=?|>=?|&&|\|\|?|\b(?:and|not|or)\b/,variable:{pattern:/\b[a-z]\w*(?:\s*\.\s*(?:\d+|\$?[a-z]\w*))*\b/i}}),r.languages.insertBefore("tt2","keyword",{delimiter:{pattern:/^(?:\[%|%%)-?|-?%\]$/,alias:"punctuation"}}),r.languages.insertBefore("tt2","string",{"single-quoted-string":{pattern:/'[^\\']*(?:\\[\s\S][^\\']*)*'/,greedy:!0,alias:"string"},"double-quoted-string":{pattern:/"[^\\"]*(?:\\[\s\S][^\\"]*)*"/,greedy:!0,alias:"string",inside:{variable:{pattern:/\$(?:[a-z]\w*(?:\.(?:\d+|\$?[a-z]\w*))*)/i}}}}),delete r.languages.tt2.string,r.hooks.add("before-tokenize",function(a){var i=/\[%[\s\S]+?%\]/g;r.languages["markup-templating"].buildPlaceholders(a,"tt2",i)}),r.hooks.add("after-tokenize",function(a){r.languages["markup-templating"].tokenizePlaceholders(a,"tt2")})})(n)}return r$}var a$,$V;function gBe(){if($V)return a$;$V=1;var e=cs();a$=t,t.displayName="twig",t.aliases=[];function t(n){n.register(e),n.languages.twig={comment:/^\{#[\s\S]*?#\}$/,"tag-name":{pattern:/(^\{%-?\s*)\w+/,lookbehind:!0,alias:"keyword"},delimiter:{pattern:/^\{[{%]-?|-?[%}]\}$/,alias:"punctuation"},string:{pattern:/("|')(?:\\.|(?!\1)[^\\\r\n])*\1/,inside:{punctuation:/^['"]|['"]$/}},keyword:/\b(?:even|if|odd)\b/,boolean:/\b(?:false|null|true)\b/,number:/\b0x[\dA-Fa-f]+|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[Ee][-+]?\d+)?/,operator:[{pattern:/(\s)(?:and|b-and|b-or|b-xor|ends with|in|is|matches|not|or|same as|starts with)(?=\s)/,lookbehind:!0},/[=<>]=?|!=|\*\*?|\/\/?|\?:?|[-+~%|]/],punctuation:/[()\[\]{}:.,]/},n.hooks.add("before-tokenize",function(r){if(r.language==="twig"){var a=/\{(?:#[\s\S]*?#|%[\s\S]*?%|\{[\s\S]*?\})\}/g;n.languages["markup-templating"].buildPlaceholders(r,"twig",a)}}),n.hooks.add("after-tokenize",function(r){n.languages["markup-templating"].tokenizePlaceholders(r,"twig")})}return a$}var i$,LV;function vBe(){if(LV)return i$;LV=1,i$=e,e.displayName="typoscript",e.aliases=["tsconfig"];function e(t){(function(n){var r=/\b(?:ACT|ACTIFSUB|CARRAY|CASE|CLEARGIF|COA|COA_INT|CONSTANTS|CONTENT|CUR|EDITPANEL|EFFECT|EXT|FILE|FLUIDTEMPLATE|FORM|FRAME|FRAMESET|GIFBUILDER|GMENU|GMENU_FOLDOUT|GMENU_LAYERS|GP|HMENU|HRULER|HTML|IENV|IFSUB|IMAGE|IMGMENU|IMGMENUITEM|IMGTEXT|IMG_RESOURCE|INCLUDE_TYPOSCRIPT|JSMENU|JSMENUITEM|LLL|LOAD_REGISTER|NO|PAGE|RECORDS|RESTORE_REGISTER|TEMPLATE|TEXT|TMENU|TMENUITEM|TMENU_LAYERS|USER|USER_INT|_GIFBUILDER|global|globalString|globalVar)\b/;n.languages.typoscript={comment:[{pattern:/(^|[^\\])\/\*[\s\S]*?(?:\*\/|$)/,lookbehind:!0},{pattern:/(^|[^\\:= \t]|(?:^|[^= \t])[ \t]+)\/\/.*/,lookbehind:!0,greedy:!0},{pattern:/(^|[^"'])#.*/,lookbehind:!0,greedy:!0}],function:[{pattern://,inside:{string:{pattern:/"[^"\r\n]*"|'[^'\r\n]*'/,inside:{keyword:r}},keyword:{pattern:/INCLUDE_TYPOSCRIPT/}}},{pattern:/@import\s*(?:"[^"\r\n]*"|'[^'\r\n]*')/,inside:{string:/"[^"\r\n]*"|'[^'\r\n]*'/}}],string:{pattern:/^([^=]*=[< ]?)(?:(?!\]\n).)*/,lookbehind:!0,inside:{function:/\{\$.*\}/,keyword:r,number:/^\d+$/,punctuation:/[,|:]/}},keyword:r,number:{pattern:/\b\d+\s*[.{=]/,inside:{operator:/[.{=]/}},tag:{pattern:/\.?[-\w\\]+\.?/,inside:{punctuation:/\./}},punctuation:/[{}[\];(),.:|]/,operator:/[<>]=?|[!=]=?=?|--?|\+\+?|&&?|\|\|?|[?*/~^%]/},n.languages.tsconfig=n.languages.typoscript})(t)}return i$}var o$,FV;function yBe(){if(FV)return o$;FV=1,o$=e,e.displayName="unrealscript",e.aliases=["uc","uscript"];function e(t){t.languages.unrealscript={comment:/\/\/.*|\/\*[\s\S]*?\*\//,string:{pattern:/(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,greedy:!0},category:{pattern:/(\b(?:(?:autoexpand|hide|show)categories|var)\s*\()[^()]+(?=\))/,lookbehind:!0,greedy:!0,alias:"property"},metadata:{pattern:/(\w\s*)<\s*\w+\s*=[^<>|=\r\n]+(?:\|\s*\w+\s*=[^<>|=\r\n]+)*>/,lookbehind:!0,greedy:!0,inside:{property:/\b\w+(?=\s*=)/,operator:/=/,punctuation:/[<>|]/}},macro:{pattern:/`\w+/,alias:"property"},"class-name":{pattern:/(\b(?:class|enum|extends|interface|state(?:\(\))?|struct|within)\s+)\w+/,lookbehind:!0},keyword:/\b(?:abstract|actor|array|auto|autoexpandcategories|bool|break|byte|case|class|classgroup|client|coerce|collapsecategories|config|const|continue|default|defaultproperties|delegate|dependson|deprecated|do|dontcollapsecategories|editconst|editinlinenew|else|enum|event|exec|export|extends|final|float|for|forcescriptorder|foreach|function|goto|guid|hidecategories|hidedropdown|if|ignores|implements|inherits|input|int|interface|iterator|latent|local|material|name|native|nativereplication|noexport|nontransient|noteditinlinenew|notplaceable|operator|optional|out|pawn|perobjectconfig|perobjectlocalized|placeable|postoperator|preoperator|private|protected|reliable|replication|return|server|showcategories|simulated|singular|state|static|string|struct|structdefault|structdefaultproperties|switch|texture|transient|travel|unreliable|until|var|vector|while|within)\b/,function:/\b[a-z_]\w*(?=\s*\()/i,boolean:/\b(?:false|true)\b/,number:/\b0x[\da-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?/i,operator:/>>|<<|--|\+\+|\*\*|[-+*/~!=<>$@]=?|&&?|\|\|?|\^\^?|[?:%]|\b(?:ClockwiseFrom|Cross|Dot)\b/,punctuation:/[()[\]{};,.]/},t.languages.uc=t.languages.uscript=t.languages.unrealscript}return o$}var s$,jV;function bBe(){if(jV)return s$;jV=1,s$=e,e.displayName="uorazor",e.aliases=[];function e(t){t.languages.uorazor={"comment-hash":{pattern:/#.*/,alias:"comment",greedy:!0},"comment-slash":{pattern:/\/\/.*/,alias:"comment",greedy:!0},string:{pattern:/("|')(?:\\.|(?!\1)[^\\\r\n])*\1/,inside:{punctuation:/^['"]|['"]$/},greedy:!0},"source-layers":{pattern:/\b(?:arms|backpack|blue|bracelet|cancel|clear|cloak|criminal|earrings|enemy|facialhair|friend|friendly|gloves|gray|grey|ground|hair|head|innerlegs|innertorso|innocent|lefthand|middletorso|murderer|neck|nonfriendly|onehandedsecondary|outerlegs|outertorso|pants|red|righthand|ring|self|shirt|shoes|talisman|waist)\b/i,alias:"function"},"source-commands":{pattern:/\b(?:alliance|attack|cast|clearall|clearignore|clearjournal|clearlist|clearsysmsg|createlist|createtimer|dclick|dclicktype|dclickvar|dress|dressconfig|drop|droprelloc|emote|getlabel|guild|gumpclose|gumpresponse|hotkey|ignore|lasttarget|lift|lifttype|menu|menuresponse|msg|org|organize|organizer|overhead|pause|poplist|potion|promptresponse|pushlist|removelist|removetimer|rename|restock|say|scav|scavenger|script|setability|setlasttarget|setskill|settimer|setvar|sysmsg|target|targetloc|targetrelloc|targettype|undress|unignore|unsetvar|useobject|useonce|useskill|usetype|virtue|wait|waitforgump|waitformenu|waitforprompt|waitforstat|waitforsysmsg|waitfortarget|walk|wfsysmsg|wft|whisper|yell)\b/,alias:"function"},"tag-name":{pattern:/(^\{%-?\s*)\w+/,lookbehind:!0,alias:"keyword"},delimiter:{pattern:/^\{[{%]-?|-?[%}]\}$/,alias:"punctuation"},function:/\b(?:atlist|close|closest|count|counter|counttype|dead|dex|diffhits|diffmana|diffstam|diffweight|find|findbuff|finddebuff|findlayer|findtype|findtypelist|followers|gumpexists|hidden|hits|hp|hue|human|humanoid|ingump|inlist|insysmessage|insysmsg|int|invul|lhandempty|list|listexists|mana|maxhits|maxhp|maxmana|maxstam|maxweight|monster|mounted|name|next|noto|paralyzed|poisoned|position|prev|previous|queued|rand|random|rhandempty|skill|stam|str|targetexists|timer|timerexists|varexist|warmode|weight)\b/,keyword:/\b(?:and|as|break|continue|else|elseif|endfor|endif|endwhile|for|if|loop|not|or|replay|stop|while)\b/,boolean:/\b(?:false|null|true)\b/,number:/\b0x[\dA-Fa-f]+|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[Ee][-+]?\d+)?/,operator:[{pattern:/(\s)(?:and|b-and|b-or|b-xor|ends with|in|is|matches|not|or|same as|starts with)(?=\s)/,lookbehind:!0},/[=<>]=?|!=|\*\*?|\/\/?|\?:?|[-+~%|]/],punctuation:/[()\[\]{}:.,]/}}return s$}var l$,UV;function wBe(){if(UV)return l$;UV=1,l$=e,e.displayName="uri",e.aliases=["url"];function e(t){t.languages.uri={scheme:{pattern:/^[a-z][a-z0-9+.-]*:/im,greedy:!0,inside:{"scheme-delimiter":/:$/}},fragment:{pattern:/#[\w\-.~!$&'()*+,;=%:@/?]*/,inside:{"fragment-delimiter":/^#/}},query:{pattern:/\?[\w\-.~!$&'()*+,;=%:@/?]*/,inside:{"query-delimiter":{pattern:/^\?/,greedy:!0},"pair-delimiter":/[&;]/,pair:{pattern:/^[^=][\s\S]*/,inside:{key:/^[^=]+/,value:{pattern:/(^=)[\s\S]+/,lookbehind:!0}}}}},authority:{pattern:RegExp(/^\/\//.source+/(?:[\w\-.~!$&'()*+,;=%:]*@)?/.source+("(?:"+/\[(?:[0-9a-fA-F:.]{2,48}|v[0-9a-fA-F]+\.[\w\-.~!$&'()*+,;=]+)\]/.source+"|"+/[\w\-.~!$&'()*+,;=%]*/.source+")")+/(?::\d*)?/.source,"m"),inside:{"authority-delimiter":/^\/\//,"user-info-segment":{pattern:/^[\w\-.~!$&'()*+,;=%:]*@/,inside:{"user-info-delimiter":/@$/,"user-info":/^[\w\-.~!$&'()*+,;=%:]+/}},"port-segment":{pattern:/:\d*$/,inside:{"port-delimiter":/^:/,port:/^\d+/}},host:{pattern:/[\s\S]+/,inside:{"ip-literal":{pattern:/^\[[\s\S]+\]$/,inside:{"ip-literal-delimiter":/^\[|\]$/,"ipv-future":/^v[\s\S]+/,"ipv6-address":/^[\s\S]+/}},"ipv4-address":/^(?:(?:[03-9]\d?|[12]\d{0,2})\.){3}(?:[03-9]\d?|[12]\d{0,2})$/}}}},path:{pattern:/^[\w\-.~!$&'()*+,;=%:@/]+/m,inside:{"path-separator":/\//}}},t.languages.url=t.languages.uri}return l$}var u$,BV;function SBe(){if(BV)return u$;BV=1,u$=e,e.displayName="v",e.aliases=[];function e(t){(function(n){var r={pattern:/[\s\S]+/,inside:null};n.languages.v=n.languages.extend("clike",{string:{pattern:/r?(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,alias:"quoted-string",greedy:!0,inside:{interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$(?:\{[^{}]*\}|\w+(?:\.\w+(?:\([^\(\)]*\))?|\[[^\[\]]+\])*)/,lookbehind:!0,inside:{"interpolation-variable":{pattern:/^\$\w[\s\S]*$/,alias:"variable"},"interpolation-punctuation":{pattern:/^\$\{|\}$/,alias:"punctuation"},"interpolation-expression":r}}}},"class-name":{pattern:/(\b(?:enum|interface|struct|type)\s+)(?:C\.)?\w+/,lookbehind:!0},keyword:/(?:\b(?:__global|as|asm|assert|atomic|break|chan|const|continue|defer|else|embed|enum|fn|for|go(?:to)?|if|import|in|interface|is|lock|match|module|mut|none|or|pub|return|rlock|select|shared|sizeof|static|struct|type(?:of)?|union|unsafe)|\$(?:else|for|if)|#(?:flag|include))\b/,number:/\b(?:0x[a-f\d]+(?:_[a-f\d]+)*|0b[01]+(?:_[01]+)*|0o[0-7]+(?:_[0-7]+)*|\d+(?:_\d+)*(?:\.\d+(?:_\d+)*)?)\b/i,operator:/~|\?|[*\/%^!=]=?|\+[=+]?|-[=-]?|\|[=|]?|&(?:=|&|\^=?)?|>(?:>=?|=)?|<(?:<=?|=|-)?|:=|\.\.\.?/,builtin:/\b(?:any(?:_float|_int)?|bool|byte(?:ptr)?|charptr|f(?:32|64)|i(?:8|16|64|128|nt)|rune|size_t|string|u(?:16|32|64|128)|voidptr)\b/}),r.inside=n.languages.v,n.languages.insertBefore("v","string",{char:{pattern:/`(?:\\`|\\?[^`]{1,2})`/,alias:"rune"}}),n.languages.insertBefore("v","operator",{attribute:{pattern:/(^[\t ]*)\[(?:deprecated|direct_array_access|flag|inline|live|ref_only|typedef|unsafe_fn|windows_stdcall)\]/m,lookbehind:!0,alias:"annotation",inside:{punctuation:/[\[\]]/,keyword:/\w+/}},generic:{pattern:/<\w+>(?=\s*[\)\{])/,inside:{punctuation:/[<>]/,"class-name":/\w+/}}}),n.languages.insertBefore("v","function",{"generic-function":{pattern:/\b\w+\s*<\w+>(?=\()/,inside:{function:/^\w+/,generic:{pattern:/<\w+>/,inside:n.languages.v.generic.inside}}}})})(t)}return u$}var c$,WV;function EBe(){if(WV)return c$;WV=1,c$=e,e.displayName="vala",e.aliases=[];function e(t){t.languages.vala=t.languages.extend("clike",{"class-name":[{pattern:/\b[A-Z]\w*(?:\.\w+)*\b(?=(?:\?\s+|\*?\s+\*?)\w)/,inside:{punctuation:/\./}},{pattern:/(\[)[A-Z]\w*(?:\.\w+)*\b/,lookbehind:!0,inside:{punctuation:/\./}},{pattern:/(\b(?:class|interface)\s+[A-Z]\w*(?:\.\w+)*\s*:\s*)[A-Z]\w*(?:\.\w+)*\b/,lookbehind:!0,inside:{punctuation:/\./}},{pattern:/((?:\b(?:class|enum|interface|new|struct)\s+)|(?:catch\s+\())[A-Z]\w*(?:\.\w+)*\b/,lookbehind:!0,inside:{punctuation:/\./}}],keyword:/\b(?:abstract|as|assert|async|base|bool|break|case|catch|char|class|const|construct|continue|default|delegate|delete|do|double|dynamic|else|ensures|enum|errordomain|extern|finally|float|for|foreach|get|if|in|inline|int|int16|int32|int64|int8|interface|internal|is|lock|long|namespace|new|null|out|override|owned|params|private|protected|public|ref|requires|return|set|short|signal|sizeof|size_t|ssize_t|static|string|struct|switch|this|throw|throws|try|typeof|uchar|uint|uint16|uint32|uint64|uint8|ulong|unichar|unowned|ushort|using|value|var|virtual|void|volatile|weak|while|yield)\b/i,function:/\b\w+(?=\s*\()/,number:/(?:\b0x[\da-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?)(?:f|u?l?)?/i,operator:/\+\+|--|&&|\|\||<<=?|>>=?|=>|->|~|[+\-*\/%&^|=!<>]=?|\?\??|\.\.\./,punctuation:/[{}[\];(),.:]/,constant:/\b[A-Z0-9_]+\b/}),t.languages.insertBefore("vala","string",{"raw-string":{pattern:/"""[\s\S]*?"""/,greedy:!0,alias:"string"},"template-string":{pattern:/@"[\s\S]*?"/,greedy:!0,inside:{interpolation:{pattern:/\$(?:\([^)]*\)|[a-zA-Z]\w*)/,inside:{delimiter:{pattern:/^\$\(?|\)$/,alias:"punctuation"},rest:t.languages.vala}},string:/[\s\S]+/}}}),t.languages.insertBefore("vala","keyword",{regex:{pattern:/\/(?:\[(?:[^\]\\\r\n]|\\.)*\]|\\.|[^/\\\[\r\n])+\/[imsx]{0,4}(?=\s*(?:$|[\r\n,.;})\]]))/,greedy:!0,inside:{"regex-source":{pattern:/^(\/)[\s\S]+(?=\/[a-z]*$)/,lookbehind:!0,alias:"language-regex",inside:t.languages.regex},"regex-delimiter":/^\//,"regex-flags":/^[a-z]+$/}}})}return c$}var d$,zV;function TBe(){if(zV)return d$;zV=1,d$=e,e.displayName="velocity",e.aliases=[];function e(t){(function(n){n.languages.velocity=n.languages.extend("markup",{});var r={variable:{pattern:/(^|[^\\](?:\\\\)*)\$!?(?:[a-z][\w-]*(?:\([^)]*\))?(?:\.[a-z][\w-]*(?:\([^)]*\))?|\[[^\]]+\])*|\{[^}]+\})/i,lookbehind:!0,inside:{}},string:{pattern:/"[^"]*"|'[^']*'/,greedy:!0},number:/\b\d+\b/,boolean:/\b(?:false|true)\b/,operator:/[=!<>]=?|[+*/%-]|&&|\|\||\.\.|\b(?:eq|g[et]|l[et]|n(?:e|ot))\b/,punctuation:/[(){}[\]:,.]/};r.variable.inside={string:r.string,function:{pattern:/([^\w-])[a-z][\w-]*(?=\()/,lookbehind:!0},number:r.number,boolean:r.boolean,punctuation:r.punctuation},n.languages.insertBefore("velocity","comment",{unparsed:{pattern:/(^|[^\\])#\[\[[\s\S]*?\]\]#/,lookbehind:!0,greedy:!0,inside:{punctuation:/^#\[\[|\]\]#$/}},"velocity-comment":[{pattern:/(^|[^\\])#\*[\s\S]*?\*#/,lookbehind:!0,greedy:!0,alias:"comment"},{pattern:/(^|[^\\])##.*/,lookbehind:!0,greedy:!0,alias:"comment"}],directive:{pattern:/(^|[^\\](?:\\\\)*)#@?(?:[a-z][\w-]*|\{[a-z][\w-]*\})(?:\s*\((?:[^()]|\([^()]*\))*\))?/i,lookbehind:!0,inside:{keyword:{pattern:/^#@?(?:[a-z][\w-]*|\{[a-z][\w-]*\})|\bin\b/,inside:{punctuation:/[{}]/}},rest:r}},variable:r.variable}),n.languages.velocity.tag.inside["attr-value"].inside.rest=n.languages.velocity})(t)}return d$}var f$,qV;function CBe(){if(qV)return f$;qV=1,f$=e,e.displayName="verilog",e.aliases=[];function e(t){t.languages.verilog={comment:{pattern:/\/\/.*|\/\*[\s\S]*?\*\//,greedy:!0},string:{pattern:/"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"/,greedy:!0},"kernel-function":{pattern:/\B\$\w+\b/,alias:"property"},constant:/\B`\w+\b/,function:/\b\w+(?=\()/,keyword:/\b(?:alias|and|assert|assign|assume|automatic|before|begin|bind|bins|binsof|bit|break|buf|bufif0|bufif1|byte|case|casex|casez|cell|chandle|class|clocking|cmos|config|const|constraint|context|continue|cover|covergroup|coverpoint|cross|deassign|default|defparam|design|disable|dist|do|edge|else|end|endcase|endclass|endclocking|endconfig|endfunction|endgenerate|endgroup|endinterface|endmodule|endpackage|endprimitive|endprogram|endproperty|endsequence|endspecify|endtable|endtask|enum|event|expect|export|extends|extern|final|first_match|for|force|foreach|forever|fork|forkjoin|function|generate|genvar|highz0|highz1|if|iff|ifnone|ignore_bins|illegal_bins|import|incdir|include|initial|inout|input|inside|instance|int|integer|interface|intersect|join|join_any|join_none|large|liblist|library|local|localparam|logic|longint|macromodule|matches|medium|modport|module|nand|negedge|new|nmos|nor|noshowcancelled|not|notif0|notif1|null|or|output|package|packed|parameter|pmos|posedge|primitive|priority|program|property|protected|pull0|pull1|pulldown|pullup|pulsestyle_ondetect|pulsestyle_onevent|pure|rand|randc|randcase|randsequence|rcmos|real|realtime|ref|reg|release|repeat|return|rnmos|rpmos|rtran|rtranif0|rtranif1|scalared|sequence|shortint|shortreal|showcancelled|signed|small|solve|specify|specparam|static|string|strong0|strong1|struct|super|supply0|supply1|table|tagged|task|this|throughout|time|timeprecision|timeunit|tran|tranif0|tranif1|tri|tri0|tri1|triand|trior|trireg|type|typedef|union|unique|unsigned|use|uwire|var|vectored|virtual|void|wait|wait_order|wand|weak0|weak1|while|wildcard|wire|with|within|wor|xnor|xor)\b/,important:/\b(?:always|always_comb|always_ff|always_latch)\b(?: *@)?/,number:/\B##?\d+|(?:\b\d+)?'[odbh] ?[\da-fzx_?]+|\b(?:\d*[._])?\d+(?:e[-+]?\d+)?/i,operator:/[-+{}^~%*\/?=!<>&|]+/,punctuation:/[[\];(),.:]/}}return f$}var p$,HV;function kBe(){if(HV)return p$;HV=1,p$=e,e.displayName="vhdl",e.aliases=[];function e(t){t.languages.vhdl={comment:/--.+/,"vhdl-vectors":{pattern:/\b[oxb]"[\da-f_]+"|"[01uxzwlh-]+"/i,alias:"number"},"quoted-function":{pattern:/"\S+?"(?=\()/,alias:"function"},string:/"(?:[^\\"\r\n]|\\(?:\r\n|[\s\S]))*"/,constant:/\b(?:library|use)\b/i,keyword:/\b(?:'active|'ascending|'base|'delayed|'driving|'driving_value|'event|'high|'image|'instance_name|'last_active|'last_event|'last_value|'left|'leftof|'length|'low|'path_name|'pos|'pred|'quiet|'range|'reverse_range|'right|'rightof|'simple_name|'stable|'succ|'transaction|'val|'value|access|after|alias|all|architecture|array|assert|attribute|begin|block|body|buffer|bus|case|component|configuration|constant|disconnect|downto|else|elsif|end|entity|exit|file|for|function|generate|generic|group|guarded|if|impure|in|inertial|inout|is|label|library|linkage|literal|loop|map|new|next|null|of|on|open|others|out|package|port|postponed|procedure|process|pure|range|record|register|reject|report|return|select|severity|shared|signal|subtype|then|to|transport|type|unaffected|units|until|use|variable|wait|when|while|with)\b/i,boolean:/\b(?:false|true)\b/i,function:/\w+(?=\()/,number:/'[01uxzwlh-]'|\b(?:\d+#[\da-f_.]+#|\d[\d_.]*)(?:e[-+]?\d+)?/i,operator:/[<>]=?|:=|[-+*/&=]|\b(?:abs|and|mod|nand|nor|not|or|rem|rol|ror|sla|sll|sra|srl|xnor|xor)\b/i,punctuation:/[{}[\];(),.:]/}}return p$}var h$,VV;function xBe(){if(VV)return h$;VV=1,h$=e,e.displayName="vim",e.aliases=[];function e(t){t.languages.vim={string:/"(?:[^"\\\r\n]|\\.)*"|'(?:[^'\r\n]|'')*'/,comment:/".*/,function:/\b\w+(?=\()/,keyword:/\b(?:N|Next|P|Print|X|XMLent|XMLns|ab|abbreviate|abc|abclear|abo|aboveleft|al|all|ar|arga|argadd|argd|argdelete|argdo|arge|argedit|argg|argglobal|argl|arglocal|args|argu|argument|as|ascii|b|bN|bNext|ba|bad|badd|ball|bd|bdelete|be|bel|belowright|bf|bfirst|bl|blast|bm|bmodified|bn|bnext|bo|botright|bp|bprevious|br|brea|break|breaka|breakadd|breakd|breakdel|breakl|breaklist|brewind|bro|browse|bufdo|buffer|buffers|bun|bunload|bw|bwipeout|c|cN|cNext|cNfcNfile|ca|cabbrev|cabc|cabclear|cad|caddb|caddbuffer|caddexpr|caddf|caddfile|cal|call|cat|catch|cb|cbuffer|cc|ccl|cclose|cd|ce|center|cex|cexpr|cf|cfile|cfir|cfirst|cg|cgetb|cgetbuffer|cgete|cgetexpr|cgetfile|change|changes|chd|chdir|che|checkpath|checkt|checktime|cl|cla|clast|clist|clo|close|cmapc|cmapclear|cn|cnew|cnewer|cnext|cnf|cnfile|cnorea|cnoreabbrev|co|col|colder|colo|colorscheme|comc|comclear|comp|compiler|con|conf|confirm|continue|cope|copen|copy|cp|cpf|cpfile|cprevious|cq|cquit|cr|crewind|cu|cuna|cunabbrev|cunmap|cw|cwindow|d|debugg|debuggreedy|delc|delcommand|delete|delf|delfunction|delm|delmarks|di|diffg|diffget|diffoff|diffpatch|diffpu|diffput|diffsplit|diffthis|diffu|diffupdate|dig|digraphs|display|dj|djump|dl|dlist|dr|drop|ds|dsearch|dsp|dsplit|e|earlier|echoe|echoerr|echom|echomsg|echon|edit|el|else|elsei|elseif|em|emenu|en|endf|endfo|endfor|endfun|endfunction|endif|endt|endtry|endw|endwhile|ene|enew|ex|exi|exit|exu|exusage|f|file|files|filetype|fin|fina|finally|find|fini|finish|fir|first|fix|fixdel|fo|fold|foldc|foldclose|foldd|folddoc|folddoclosed|folddoopen|foldo|foldopen|for|fu|fun|function|go|goto|gr|grep|grepa|grepadd|h|ha|hardcopy|help|helpf|helpfind|helpg|helpgrep|helpt|helptags|hid|hide|his|history|ia|iabbrev|iabc|iabclear|if|ij|ijump|il|ilist|imapc|imapclear|in|inorea|inoreabbrev|isearch|isp|isplit|iu|iuna|iunabbrev|iunmap|j|join|ju|jumps|k|kee|keepalt|keepj|keepjumps|keepmarks|l|lN|lNext|lNf|lNfile|la|lad|laddb|laddbuffer|laddexpr|laddf|laddfile|lan|language|last|later|lb|lbuffer|lc|lcd|lch|lchdir|lcl|lclose|left|lefta|leftabove|let|lex|lexpr|lf|lfile|lfir|lfirst|lg|lgetb|lgetbuffer|lgete|lgetexpr|lgetfile|lgr|lgrep|lgrepa|lgrepadd|lh|lhelpgrep|list|ll|lla|llast|lli|llist|lm|lmak|lmake|lmap|lmapc|lmapclear|ln|lne|lnew|lnewer|lnext|lnf|lnfile|lnoremap|lo|loadview|loc|lockmarks|lockv|lockvar|lol|lolder|lop|lopen|lp|lpf|lpfile|lprevious|lr|lrewind|ls|lt|ltag|lu|lunmap|lv|lvimgrep|lvimgrepa|lvimgrepadd|lw|lwindow|m|ma|mak|make|mark|marks|mat|match|menut|menutranslate|mk|mkexrc|mks|mksession|mksp|mkspell|mkv|mkvie|mkview|mkvimrc|mod|mode|move|mz|mzf|mzfile|mzscheme|n|nbkey|new|next|nmapc|nmapclear|noh|nohlsearch|norea|noreabbrev|nu|number|nun|nunmap|o|omapc|omapclear|on|only|open|opt|options|ou|ounmap|p|pc|pclose|pe|ped|pedit|perl|perld|perldo|po|pop|popu|popup|pp|ppop|pre|preserve|prev|previous|print|prof|profd|profdel|profile|promptf|promptfind|promptr|promptrepl|ps|psearch|ptN|ptNext|pta|ptag|ptf|ptfirst|ptj|ptjump|ptl|ptlast|ptn|ptnext|ptp|ptprevious|ptr|ptrewind|pts|ptselect|pu|put|pw|pwd|py|pyf|pyfile|python|q|qa|qall|quit|quita|quitall|r|read|rec|recover|red|redi|redir|redo|redr|redraw|redraws|redrawstatus|reg|registers|res|resize|ret|retab|retu|return|rew|rewind|ri|right|rightb|rightbelow|ru|rub|ruby|rubyd|rubydo|rubyf|rubyfile|runtime|rv|rviminfo|sN|sNext|sa|sal|sall|san|sandbox|sargument|sav|saveas|sb|sbN|sbNext|sba|sball|sbf|sbfirst|sbl|sblast|sbm|sbmodified|sbn|sbnext|sbp|sbprevious|sbr|sbrewind|sbuffer|scrip|scripte|scriptencoding|scriptnames|se|set|setf|setfiletype|setg|setglobal|setl|setlocal|sf|sfind|sfir|sfirst|sh|shell|sign|sil|silent|sim|simalt|sl|sla|slast|sleep|sm|smagic|smap|smapc|smapclear|sme|smenu|sn|snext|sni|sniff|sno|snomagic|snor|snoremap|snoreme|snoremenu|so|sor|sort|source|sp|spe|spelld|spelldump|spellgood|spelli|spellinfo|spellr|spellrepall|spellu|spellundo|spellw|spellwrong|split|spr|sprevious|sre|srewind|st|sta|stag|star|startg|startgreplace|startinsert|startr|startreplace|stj|stjump|stop|stopi|stopinsert|sts|stselect|sun|sunhide|sunm|sunmap|sus|suspend|sv|sview|syncbind|t|tN|tNext|ta|tab|tabN|tabNext|tabc|tabclose|tabd|tabdo|tabe|tabedit|tabf|tabfind|tabfir|tabfirst|tabl|tablast|tabm|tabmove|tabn|tabnew|tabnext|tabo|tabonly|tabp|tabprevious|tabr|tabrewind|tabs|tag|tags|tc|tcl|tcld|tcldo|tclf|tclfile|te|tearoff|tf|tfirst|th|throw|tj|tjump|tl|tlast|tm|tmenu|tn|tnext|to|topleft|tp|tprevious|tr|trewind|try|ts|tselect|tu|tunmenu|u|una|unabbreviate|undo|undoj|undojoin|undol|undolist|unh|unhide|unlet|unlo|unlockvar|unm|unmap|up|update|ve|verb|verbose|version|vert|vertical|vi|vie|view|vim|vimgrep|vimgrepa|vimgrepadd|visual|viu|viusage|vmapc|vmapclear|vne|vnew|vs|vsplit|vu|vunmap|w|wN|wNext|wa|wall|wh|while|win|winc|wincmd|windo|winp|winpos|winsize|wn|wnext|wp|wprevious|wq|wqa|wqall|write|ws|wsverb|wv|wviminfo|x|xa|xall|xit|xm|xmap|xmapc|xmapclear|xme|xmenu|xn|xnoremap|xnoreme|xnoremenu|xu|xunmap|y|yank)\b/,builtin:/\b(?:acd|ai|akm|aleph|allowrevins|altkeymap|ambiwidth|ambw|anti|antialias|arab|arabic|arabicshape|ari|arshape|autochdir|autocmd|autoindent|autoread|autowrite|autowriteall|aw|awa|background|backspace|backup|backupcopy|backupdir|backupext|backupskip|balloondelay|ballooneval|balloonexpr|bdir|bdlay|beval|bex|bexpr|bg|bh|bin|binary|biosk|bioskey|bk|bkc|bomb|breakat|brk|browsedir|bs|bsdir|bsk|bt|bufhidden|buflisted|buftype|casemap|ccv|cdpath|cedit|cfu|ch|charconvert|ci|cin|cindent|cink|cinkeys|cino|cinoptions|cinw|cinwords|clipboard|cmdheight|cmdwinheight|cmp|cms|columns|com|comments|commentstring|compatible|complete|completefunc|completeopt|consk|conskey|copyindent|cot|cpo|cpoptions|cpt|cscopepathcomp|cscopeprg|cscopequickfix|cscopetag|cscopetagorder|cscopeverbose|cspc|csprg|csqf|cst|csto|csverb|cuc|cul|cursorcolumn|cursorline|cwh|debug|deco|def|define|delcombine|dex|dg|dict|dictionary|diff|diffexpr|diffopt|digraph|dip|dir|directory|dy|ea|ead|eadirection|eb|ed|edcompatible|ef|efm|ei|ek|enc|encoding|endofline|eol|ep|equalalways|equalprg|errorbells|errorfile|errorformat|esckeys|et|eventignore|expandtab|exrc|fcl|fcs|fdc|fde|fdi|fdl|fdls|fdm|fdn|fdo|fdt|fen|fenc|fencs|fex|ff|ffs|fileencoding|fileencodings|fileformat|fileformats|fillchars|fk|fkmap|flp|fml|fmr|foldcolumn|foldenable|foldexpr|foldignore|foldlevel|foldlevelstart|foldmarker|foldmethod|foldminlines|foldnestmax|foldtext|formatexpr|formatlistpat|formatoptions|formatprg|fp|fs|fsync|ft|gcr|gd|gdefault|gfm|gfn|gfs|gfw|ghr|gp|grepformat|grepprg|gtl|gtt|guicursor|guifont|guifontset|guifontwide|guiheadroom|guioptions|guipty|guitablabel|guitabtooltip|helpfile|helpheight|helplang|hf|hh|hi|hidden|highlight|hk|hkmap|hkmapp|hkp|hl|hlg|hls|hlsearch|ic|icon|iconstring|ignorecase|im|imactivatekey|imak|imc|imcmdline|imd|imdisable|imi|iminsert|ims|imsearch|inc|include|includeexpr|incsearch|inde|indentexpr|indentkeys|indk|inex|inf|infercase|insertmode|invacd|invai|invakm|invallowrevins|invaltkeymap|invanti|invantialias|invar|invarab|invarabic|invarabicshape|invari|invarshape|invautochdir|invautoindent|invautoread|invautowrite|invautowriteall|invaw|invawa|invbackup|invballooneval|invbeval|invbin|invbinary|invbiosk|invbioskey|invbk|invbl|invbomb|invbuflisted|invcf|invci|invcin|invcindent|invcompatible|invconfirm|invconsk|invconskey|invcopyindent|invcp|invcscopetag|invcscopeverbose|invcst|invcsverb|invcuc|invcul|invcursorcolumn|invcursorline|invdeco|invdelcombine|invdg|invdiff|invdigraph|invdisable|invea|inveb|inved|invedcompatible|invek|invendofline|inveol|invequalalways|inverrorbells|invesckeys|invet|invex|invexpandtab|invexrc|invfen|invfk|invfkmap|invfoldenable|invgd|invgdefault|invguipty|invhid|invhidden|invhk|invhkmap|invhkmapp|invhkp|invhls|invhlsearch|invic|invicon|invignorecase|invim|invimc|invimcmdline|invimd|invincsearch|invinf|invinfercase|invinsertmode|invis|invjoinspaces|invjs|invlazyredraw|invlbr|invlinebreak|invlisp|invlist|invloadplugins|invlpl|invlz|invma|invmacatsui|invmagic|invmh|invml|invmod|invmodeline|invmodifiable|invmodified|invmore|invmousef|invmousefocus|invmousehide|invnu|invnumber|invodev|invopendevice|invpaste|invpi|invpreserveindent|invpreviewwindow|invprompt|invpvw|invreadonly|invremap|invrestorescreen|invrevins|invri|invrightleft|invrightleftcmd|invrl|invrlc|invro|invrs|invru|invruler|invsb|invsc|invscb|invscrollbind|invscs|invsecure|invsft|invshellslash|invshelltemp|invshiftround|invshortname|invshowcmd|invshowfulltag|invshowmatch|invshowmode|invsi|invsm|invsmartcase|invsmartindent|invsmarttab|invsmd|invsn|invsol|invspell|invsplitbelow|invsplitright|invspr|invsr|invssl|invsta|invstartofline|invstmp|invswapfile|invswf|invta|invtagbsearch|invtagrelative|invtagstack|invtbi|invtbidi|invtbs|invtermbidi|invterse|invtextauto|invtextmode|invtf|invtgst|invtildeop|invtimeout|invtitle|invto|invtop|invtr|invttimeout|invttybuiltin|invttyfast|invtx|invvb|invvisualbell|invwa|invwarn|invwb|invweirdinvert|invwfh|invwfw|invwildmenu|invwinfixheight|invwinfixwidth|invwiv|invwmnu|invwrap|invwrapscan|invwrite|invwriteany|invwritebackup|invws|isf|isfname|isi|isident|isk|iskeyword|isprint|joinspaces|js|key|keymap|keymodel|keywordprg|km|kmp|kp|langmap|langmenu|laststatus|lazyredraw|lbr|lcs|linebreak|lines|linespace|lisp|lispwords|listchars|loadplugins|lpl|lsp|lz|macatsui|magic|makeef|makeprg|matchpairs|matchtime|maxcombine|maxfuncdepth|maxmapdepth|maxmem|maxmempattern|maxmemtot|mco|mef|menuitems|mfd|mh|mis|mkspellmem|ml|mls|mm|mmd|mmp|mmt|modeline|modelines|modifiable|modified|more|mouse|mousef|mousefocus|mousehide|mousem|mousemodel|mouses|mouseshape|mouset|mousetime|mp|mps|msm|mzq|mzquantum|nf|noacd|noai|noakm|noallowrevins|noaltkeymap|noanti|noantialias|noar|noarab|noarabic|noarabicshape|noari|noarshape|noautochdir|noautoindent|noautoread|noautowrite|noautowriteall|noaw|noawa|nobackup|noballooneval|nobeval|nobin|nobinary|nobiosk|nobioskey|nobk|nobl|nobomb|nobuflisted|nocf|noci|nocin|nocindent|nocompatible|noconfirm|noconsk|noconskey|nocopyindent|nocp|nocscopetag|nocscopeverbose|nocst|nocsverb|nocuc|nocul|nocursorcolumn|nocursorline|nodeco|nodelcombine|nodg|nodiff|nodigraph|nodisable|noea|noeb|noed|noedcompatible|noek|noendofline|noeol|noequalalways|noerrorbells|noesckeys|noet|noex|noexpandtab|noexrc|nofen|nofk|nofkmap|nofoldenable|nogd|nogdefault|noguipty|nohid|nohidden|nohk|nohkmap|nohkmapp|nohkp|nohls|noic|noicon|noignorecase|noim|noimc|noimcmdline|noimd|noincsearch|noinf|noinfercase|noinsertmode|nois|nojoinspaces|nojs|nolazyredraw|nolbr|nolinebreak|nolisp|nolist|noloadplugins|nolpl|nolz|noma|nomacatsui|nomagic|nomh|noml|nomod|nomodeline|nomodifiable|nomodified|nomore|nomousef|nomousefocus|nomousehide|nonu|nonumber|noodev|noopendevice|nopaste|nopi|nopreserveindent|nopreviewwindow|noprompt|nopvw|noreadonly|noremap|norestorescreen|norevins|nori|norightleft|norightleftcmd|norl|norlc|noro|nors|noru|noruler|nosb|nosc|noscb|noscrollbind|noscs|nosecure|nosft|noshellslash|noshelltemp|noshiftround|noshortname|noshowcmd|noshowfulltag|noshowmatch|noshowmode|nosi|nosm|nosmartcase|nosmartindent|nosmarttab|nosmd|nosn|nosol|nospell|nosplitbelow|nosplitright|nospr|nosr|nossl|nosta|nostartofline|nostmp|noswapfile|noswf|nota|notagbsearch|notagrelative|notagstack|notbi|notbidi|notbs|notermbidi|noterse|notextauto|notextmode|notf|notgst|notildeop|notimeout|notitle|noto|notop|notr|nottimeout|nottybuiltin|nottyfast|notx|novb|novisualbell|nowa|nowarn|nowb|noweirdinvert|nowfh|nowfw|nowildmenu|nowinfixheight|nowinfixwidth|nowiv|nowmnu|nowrap|nowrapscan|nowrite|nowriteany|nowritebackup|nows|nrformats|numberwidth|nuw|odev|oft|ofu|omnifunc|opendevice|operatorfunc|opfunc|osfiletype|pa|para|paragraphs|paste|pastetoggle|patchexpr|patchmode|path|pdev|penc|pex|pexpr|pfn|ph|pheader|pi|pm|pmbcs|pmbfn|popt|preserveindent|previewheight|previewwindow|printdevice|printencoding|printexpr|printfont|printheader|printmbcharset|printmbfont|printoptions|prompt|pt|pumheight|pvh|pvw|qe|quoteescape|readonly|remap|report|restorescreen|revins|rightleft|rightleftcmd|rl|rlc|ro|rs|rtp|ruf|ruler|rulerformat|runtimepath|sbo|sc|scb|scr|scroll|scrollbind|scrolljump|scrolloff|scrollopt|scs|sect|sections|secure|sel|selection|selectmode|sessionoptions|sft|shcf|shellcmdflag|shellpipe|shellquote|shellredir|shellslash|shelltemp|shelltype|shellxquote|shiftround|shiftwidth|shm|shortmess|shortname|showbreak|showcmd|showfulltag|showmatch|showmode|showtabline|shq|si|sidescroll|sidescrolloff|siso|sj|slm|smartcase|smartindent|smarttab|smc|smd|softtabstop|sol|spc|spell|spellcapcheck|spellfile|spelllang|spellsuggest|spf|spl|splitbelow|splitright|sps|sr|srr|ss|ssl|ssop|stal|startofline|statusline|stl|stmp|su|sua|suffixes|suffixesadd|sw|swapfile|swapsync|swb|swf|switchbuf|sws|sxq|syn|synmaxcol|syntax|t_AB|t_AF|t_AL|t_CS|t_CV|t_Ce|t_Co|t_Cs|t_DL|t_EI|t_F1|t_F2|t_F3|t_F4|t_F5|t_F6|t_F7|t_F8|t_F9|t_IE|t_IS|t_K1|t_K3|t_K4|t_K5|t_K6|t_K7|t_K8|t_K9|t_KA|t_KB|t_KC|t_KD|t_KE|t_KF|t_KG|t_KH|t_KI|t_KJ|t_KK|t_KL|t_RI|t_RV|t_SI|t_Sb|t_Sf|t_WP|t_WS|t_ZH|t_ZR|t_al|t_bc|t_cd|t_ce|t_cl|t_cm|t_cs|t_da|t_db|t_dl|t_fs|t_k1|t_k2|t_k3|t_k4|t_k5|t_k6|t_k7|t_k8|t_k9|t_kB|t_kD|t_kI|t_kN|t_kP|t_kb|t_kd|t_ke|t_kh|t_kl|t_kr|t_ks|t_ku|t_le|t_mb|t_md|t_me|t_mr|t_ms|t_nd|t_op|t_se|t_so|t_sr|t_te|t_ti|t_ts|t_ue|t_us|t_ut|t_vb|t_ve|t_vi|t_vs|t_xs|tabline|tabpagemax|tabstop|tagbsearch|taglength|tagrelative|tagstack|tal|tb|tbi|tbidi|tbis|tbs|tenc|term|termbidi|termencoding|terse|textauto|textmode|textwidth|tgst|thesaurus|tildeop|timeout|timeoutlen|title|titlelen|titleold|titlestring|toolbar|toolbariconsize|top|tpm|tsl|tsr|ttimeout|ttimeoutlen|ttm|tty|ttybuiltin|ttyfast|ttym|ttymouse|ttyscroll|ttytype|tw|tx|uc|ul|undolevels|updatecount|updatetime|ut|vb|vbs|vdir|verbosefile|vfile|viewdir|viewoptions|viminfo|virtualedit|visualbell|vop|wak|warn|wb|wc|wcm|wd|weirdinvert|wfh|wfw|whichwrap|wi|wig|wildchar|wildcharm|wildignore|wildmenu|wildmode|wildoptions|wim|winaltkeys|window|winfixheight|winfixwidth|winheight|winminheight|winminwidth|winwidth|wiv|wiw|wm|wmh|wmnu|wmw|wop|wrap|wrapmargin|wrapscan|writeany|writebackup|writedelay|ww)\b/,number:/\b(?:0x[\da-f]+|\d+(?:\.\d+)?)\b/i,operator:/\|\||&&|[-+.]=?|[=!](?:[=~][#?]?)?|[<>]=?[#?]?|[*\/%?]|\b(?:is(?:not)?)\b/,punctuation:/[{}[\](),;:]/}}return h$}var m$,GV;function _Be(){if(GV)return m$;GV=1,m$=e,e.displayName="visualBasic",e.aliases=[];function e(t){t.languages["visual-basic"]={comment:{pattern:/(?:['‘’]|REM\b)(?:[^\r\n_]|_(?:\r\n?|\n)?)*/i,inside:{keyword:/^REM/i}},directive:{pattern:/#(?:Const|Else|ElseIf|End|ExternalChecksum|ExternalSource|If|Region)(?:\b_[ \t]*(?:\r\n?|\n)|.)+/i,alias:"property",greedy:!0},string:{pattern:/\$?["“”](?:["“”]{2}|[^"“”])*["“”]C?/i,greedy:!0},date:{pattern:/#[ \t]*(?:\d+([/-])\d+\1\d+(?:[ \t]+(?:\d+[ \t]*(?:AM|PM)|\d+:\d+(?::\d+)?(?:[ \t]*(?:AM|PM))?))?|\d+[ \t]*(?:AM|PM)|\d+:\d+(?::\d+)?(?:[ \t]*(?:AM|PM))?)[ \t]*#/i,alias:"number"},number:/(?:(?:\b\d+(?:\.\d+)?|\.\d+)(?:E[+-]?\d+)?|&[HO][\dA-F]+)(?:[FRD]|U?[ILS])?/i,boolean:/\b(?:False|Nothing|True)\b/i,keyword:/\b(?:AddHandler|AddressOf|Alias|And(?:Also)?|As|Boolean|ByRef|Byte|ByVal|Call|Case|Catch|C(?:Bool|Byte|Char|Date|Dbl|Dec|Int|Lng|Obj|SByte|Short|Sng|Str|Type|UInt|ULng|UShort)|Char|Class|Const|Continue|Currency|Date|Decimal|Declare|Default|Delegate|Dim|DirectCast|Do|Double|Each|Else(?:If)?|End(?:If)?|Enum|Erase|Error|Event|Exit|Finally|For|Friend|Function|Get(?:Type|XMLNamespace)?|Global|GoSub|GoTo|Handles|If|Implements|Imports|In|Inherits|Integer|Interface|Is|IsNot|Let|Lib|Like|Long|Loop|Me|Mod|Module|Must(?:Inherit|Override)|My(?:Base|Class)|Namespace|Narrowing|New|Next|Not(?:Inheritable|Overridable)?|Object|Of|On|Operator|Option(?:al)?|Or(?:Else)?|Out|Overloads|Overridable|Overrides|ParamArray|Partial|Private|Property|Protected|Public|RaiseEvent|ReadOnly|ReDim|RemoveHandler|Resume|Return|SByte|Select|Set|Shadows|Shared|short|Single|Static|Step|Stop|String|Structure|Sub|SyncLock|Then|Throw|To|Try|TryCast|Type|TypeOf|U(?:Integer|Long|Short)|Until|Using|Variant|Wend|When|While|Widening|With(?:Events)?|WriteOnly|Xor)\b/i,operator:/[+\-*/\\^<=>&#@$%!]|\b_(?=[ \t]*[\r\n])/,punctuation:/[{}().,:?]/},t.languages.vb=t.languages["visual-basic"],t.languages.vba=t.languages["visual-basic"]}return m$}var g$,YV;function OBe(){if(YV)return g$;YV=1,g$=e,e.displayName="warpscript",e.aliases=[];function e(t){t.languages.warpscript={comment:/#.*|\/\/.*|\/\*[\s\S]*?\*\//,string:{pattern:/"(?:[^"\\\r\n]|\\.)*"|'(?:[^'\\\r\n]|\\.)*'|<'(?:[^\\']|'(?!>)|\\.)*'>/,greedy:!0},variable:/\$\S+/,macro:{pattern:/@\S+/,alias:"property"},keyword:/\b(?:BREAK|CHECKMACRO|CONTINUE|CUDF|DEFINED|DEFINEDMACRO|EVAL|FAIL|FOR|FOREACH|FORSTEP|IFT|IFTE|MSGFAIL|NRETURN|RETHROW|RETURN|SWITCH|TRY|UDF|UNTIL|WHILE)\b/,number:/[+-]?\b(?:NaN|Infinity|\d+(?:\.\d*)?(?:[Ee][+-]?\d+)?|0x[\da-fA-F]+|0b[01]+)\b/,boolean:/\b(?:F|T|false|true)\b/,punctuation:/<%|%>|[{}[\]()]/,operator:/==|&&?|\|\|?|\*\*?|>>>?|<<|[<>!~]=?|[-/%^]|\+!?|\b(?:AND|NOT|OR)\b/}}return g$}var v$,KV;function RBe(){if(KV)return v$;KV=1,v$=e,e.displayName="wasm",e.aliases=[];function e(t){t.languages.wasm={comment:[/\(;[\s\S]*?;\)/,{pattern:/;;.*/,greedy:!0}],string:{pattern:/"(?:\\[\s\S]|[^"\\])*"/,greedy:!0},keyword:[{pattern:/\b(?:align|offset)=/,inside:{operator:/=/}},{pattern:/\b(?:(?:f32|f64|i32|i64)(?:\.(?:abs|add|and|ceil|clz|const|convert_[su]\/i(?:32|64)|copysign|ctz|demote\/f64|div(?:_[su])?|eqz?|extend_[su]\/i32|floor|ge(?:_[su])?|gt(?:_[su])?|le(?:_[su])?|load(?:(?:8|16|32)_[su])?|lt(?:_[su])?|max|min|mul|neg?|nearest|or|popcnt|promote\/f32|reinterpret\/[fi](?:32|64)|rem_[su]|rot[lr]|shl|shr_[su]|sqrt|store(?:8|16|32)?|sub|trunc(?:_[su]\/f(?:32|64))?|wrap\/i64|xor))?|memory\.(?:grow|size))\b/,inside:{punctuation:/\./}},/\b(?:anyfunc|block|br(?:_if|_table)?|call(?:_indirect)?|data|drop|elem|else|end|export|func|get_(?:global|local)|global|if|import|local|loop|memory|module|mut|nop|offset|param|result|return|select|set_(?:global|local)|start|table|tee_local|then|type|unreachable)\b/],variable:/\$[\w!#$%&'*+\-./:<=>?@\\^`|~]+/,number:/[+-]?\b(?:\d(?:_?\d)*(?:\.\d(?:_?\d)*)?(?:[eE][+-]?\d(?:_?\d)*)?|0x[\da-fA-F](?:_?[\da-fA-F])*(?:\.[\da-fA-F](?:_?[\da-fA-D])*)?(?:[pP][+-]?\d(?:_?\d)*)?)\b|\binf\b|\bnan(?::0x[\da-fA-F](?:_?[\da-fA-D])*)?\b/,punctuation:/[()]/}}return v$}var y$,XV;function PBe(){if(XV)return y$;XV=1,y$=e,e.displayName="webIdl",e.aliases=[];function e(t){(function(n){var r=/(?:\B-|\b_|\b)[A-Za-z][\w-]*(?![\w-])/.source,a="(?:"+/\b(?:unsigned\s+)?long\s+long(?![\w-])/.source+"|"+/\b(?:unrestricted|unsigned)\s+[a-z]+(?![\w-])/.source+"|"+/(?!(?:unrestricted|unsigned)\b)/.source+r+/(?:\s*<(?:[^<>]|<[^<>]*>)*>)?/.source+")"+/(?:\s*\?)?/.source,i={};n.languages["web-idl"]={comment:{pattern:/\/\/.*|\/\*[\s\S]*?\*\//,greedy:!0},string:{pattern:/"[^"]*"/,greedy:!0},namespace:{pattern:RegExp(/(\bnamespace\s+)/.source+r),lookbehind:!0},"class-name":[{pattern:/(^|[^\w-])(?:iterable|maplike|setlike)\s*<(?:[^<>]|<[^<>]*>)*>/,lookbehind:!0,inside:i},{pattern:RegExp(/(\b(?:attribute|const|deleter|getter|optional|setter)\s+)/.source+a),lookbehind:!0,inside:i},{pattern:RegExp("("+/\bcallback\s+/.source+r+/\s*=\s*/.source+")"+a),lookbehind:!0,inside:i},{pattern:RegExp(/(\btypedef\b\s*)/.source+a),lookbehind:!0,inside:i},{pattern:RegExp(/(\b(?:callback|dictionary|enum|interface(?:\s+mixin)?)\s+)(?!(?:interface|mixin)\b)/.source+r),lookbehind:!0},{pattern:RegExp(/(:\s*)/.source+r),lookbehind:!0},RegExp(r+/(?=\s+(?:implements|includes)\b)/.source),{pattern:RegExp(/(\b(?:implements|includes)\s+)/.source+r),lookbehind:!0},{pattern:RegExp(a+"(?="+/\s*(?:\.{3}\s*)?/.source+r+/\s*[(),;=]/.source+")"),inside:i}],builtin:/\b(?:ArrayBuffer|BigInt64Array|BigUint64Array|ByteString|DOMString|DataView|Float32Array|Float64Array|FrozenArray|Int16Array|Int32Array|Int8Array|ObservableArray|Promise|USVString|Uint16Array|Uint32Array|Uint8Array|Uint8ClampedArray)\b/,keyword:[/\b(?:async|attribute|callback|const|constructor|deleter|dictionary|enum|getter|implements|includes|inherit|interface|mixin|namespace|null|optional|or|partial|readonly|required|setter|static|stringifier|typedef|unrestricted)\b/,/\b(?:any|bigint|boolean|byte|double|float|iterable|long|maplike|object|octet|record|sequence|setlike|short|symbol|undefined|unsigned|void)\b/],boolean:/\b(?:false|true)\b/,number:{pattern:/(^|[^\w-])-?(?:0x[0-9a-f]+|(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?|NaN|Infinity)(?![\w-])/i,lookbehind:!0},operator:/\.{3}|[=:?<>-]/,punctuation:/[(){}[\].,;]/};for(var o in n.languages["web-idl"])o!=="class-name"&&(i[o]=n.languages["web-idl"][o]);n.languages.webidl=n.languages["web-idl"]})(t)}return y$}var b$,QV;function ABe(){if(QV)return b$;QV=1,b$=e,e.displayName="wiki",e.aliases=[];function e(t){t.languages.wiki=t.languages.extend("markup",{"block-comment":{pattern:/(^|[^\\])\/\*[\s\S]*?\*\//,lookbehind:!0,alias:"comment"},heading:{pattern:/^(=+)[^=\r\n].*?\1/m,inside:{punctuation:/^=+|=+$/,important:/.+/}},emphasis:{pattern:/('{2,5}).+?\1/,inside:{"bold-italic":{pattern:/(''''').+?(?=\1)/,lookbehind:!0,alias:["bold","italic"]},bold:{pattern:/(''')[^'](?:.*?[^'])?(?=\1)/,lookbehind:!0},italic:{pattern:/('')[^'](?:.*?[^'])?(?=\1)/,lookbehind:!0},punctuation:/^''+|''+$/}},hr:{pattern:/^-{4,}/m,alias:"punctuation"},url:[/ISBN +(?:97[89][ -]?)?(?:\d[ -]?){9}[\dx]\b|(?:PMID|RFC) +\d+/i,/\[\[.+?\]\]|\[.+?\]/],variable:[/__[A-Z]+__/,/\{{3}.+?\}{3}/,/\{\{.+?\}\}/],symbol:[/^#redirect/im,/~{3,5}/],"table-tag":{pattern:/((?:^|[|!])[|!])[^|\r\n]+\|(?!\|)/m,lookbehind:!0,inside:{"table-bar":{pattern:/\|$/,alias:"punctuation"},rest:t.languages.markup.tag.inside}},punctuation:/^(?:\{\||\|\}|\|-|[*#:;!|])|\|\||!!/m}),t.languages.insertBefore("wiki","tag",{nowiki:{pattern:/<(nowiki|pre|source)\b[^>]*>[\s\S]*?<\/\1>/i,inside:{tag:{pattern:/<(?:nowiki|pre|source)\b[^>]*>|<\/(?:nowiki|pre|source)>/i,inside:t.languages.markup.tag.inside}}}})}return b$}var w$,JV;function NBe(){if(JV)return w$;JV=1,w$=e,e.displayName="wolfram",e.aliases=["mathematica","wl","nb"];function e(t){t.languages.wolfram={comment:/\(\*(?:\(\*(?:[^*]|\*(?!\)))*\*\)|(?!\(\*)[\s\S])*?\*\)/,string:{pattern:/"(?:\\.|[^"\\\r\n])*"/,greedy:!0},keyword:/\b(?:Abs|AbsArg|Accuracy|Block|Do|For|Function|If|Manipulate|Module|Nest|NestList|None|Return|Switch|Table|Which|While)\b/,context:{pattern:/\b\w+`+\w*/,alias:"class-name"},blank:{pattern:/\b\w+_\b/,alias:"regex"},"global-variable":{pattern:/\$\w+/,alias:"variable"},boolean:/\b(?:False|True)\b/,number:/(?:\b(?=\d)|\B(?=\.))(?:0[bo])?(?:(?:\d|0x[\da-f])[\da-f]*(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?j?\b/i,operator:/\/\.|;|=\.|\^=|\^:=|:=|<<|>>|<\||\|>|:>|\|->|->|<-|@@@|@@|@|\/@|=!=|===|==|=|\+|-|\^|\[\/-+%=\]=?|!=|\*\*?=?|\/\/?=?|<[<=>]?|>[=>]?|[&|^~]/,punctuation:/[{}[\];(),.:]/},t.languages.mathematica=t.languages.wolfram,t.languages.wl=t.languages.wolfram,t.languages.nb=t.languages.wolfram}return w$}var S$,ZV;function MBe(){if(ZV)return S$;ZV=1,S$=e,e.displayName="wren",e.aliases=[];function e(t){t.languages.wren={comment:[{pattern:/\/\*(?:[^*/]|\*(?!\/)|\/(?!\*)|\/\*(?:[^*/]|\*(?!\/)|\/(?!\*)|\/\*(?:[^*/]|\*(?!\/)|\/(?!\*))*\*\/)*\*\/)*\*\//,greedy:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],"triple-quoted-string":{pattern:/"""[\s\S]*?"""/,greedy:!0,alias:"string"},"string-literal":null,hashbang:{pattern:/^#!\/.+/,greedy:!0,alias:"comment"},attribute:{pattern:/#!?[ \t\u3000]*\w+/,alias:"keyword"},"class-name":[{pattern:/(\bclass\s+)\w+/,lookbehind:!0},/\b[A-Z][a-z\d_]*\b/],constant:/\b[A-Z][A-Z\d_]*\b/,null:{pattern:/\bnull\b/,alias:"keyword"},keyword:/\b(?:as|break|class|construct|continue|else|for|foreign|if|import|in|is|return|static|super|this|var|while)\b/,boolean:/\b(?:false|true)\b/,number:/\b(?:0x[\da-f]+|\d+(?:\.\d+)?(?:e[+-]?\d+)?)\b/i,function:/\b[a-z_]\w*(?=\s*[({])/i,operator:/<<|>>|[=!<>]=?|&&|\|\||[-+*/%~^&|?:]|\.{2,3}/,punctuation:/[\[\](){}.,;]/},t.languages.wren["string-literal"]={pattern:/(^|[^\\"])"(?:[^\\"%]|\\[\s\S]|%(?!\()|%\((?:[^()]|\((?:[^()]|\([^)]*\))*\))*\))*"/,lookbehind:!0,greedy:!0,inside:{interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)%\((?:[^()]|\((?:[^()]|\([^)]*\))*\))*\)/,lookbehind:!0,inside:{expression:{pattern:/^(%\()[\s\S]+(?=\)$)/,lookbehind:!0,inside:t.languages.wren},"interpolation-punctuation":{pattern:/^%\(|\)$/,alias:"punctuation"}}},string:/[\s\S]+/}}}return S$}var E$,eG;function IBe(){if(eG)return E$;eG=1,E$=e,e.displayName="xeora",e.aliases=["xeoracube"];function e(t){(function(n){n.languages.xeora=n.languages.extend("markup",{constant:{pattern:/\$(?:DomainContents|PageRenderDuration)\$/,inside:{punctuation:{pattern:/\$/}}},variable:{pattern:/\$@?(?:#+|[-+*~=^])?[\w.]+\$/,inside:{punctuation:{pattern:/[$.]/},operator:{pattern:/#+|[-+*~=^@]/}}},"function-inline":{pattern:/\$F:[-\w.]+\?[-\w.]+(?:,(?:(?:@[-#]*\w+\.[\w+.]\.*)*\|)*(?:(?:[\w+]|[-#*.~^]+[\w+]|=\S)(?:[^$=]|=+[^=])*=*|(?:@[-#]*\w+\.[\w+.]\.*)+(?:(?:[\w+]|[-#*~^][-#*.~^]*[\w+]|=\S)(?:[^$=]|=+[^=])*=*)?)?)?\$/,inside:{variable:{pattern:/(?:[,|])@?(?:#+|[-+*~=^])?[\w.]+/,inside:{punctuation:{pattern:/[,.|]/},operator:{pattern:/#+|[-+*~=^@]/}}},punctuation:{pattern:/\$\w:|[$:?.,|]/}},alias:"function"},"function-block":{pattern:/\$XF:\{[-\w.]+\?[-\w.]+(?:,(?:(?:@[-#]*\w+\.[\w+.]\.*)*\|)*(?:(?:[\w+]|[-#*.~^]+[\w+]|=\S)(?:[^$=]|=+[^=])*=*|(?:@[-#]*\w+\.[\w+.]\.*)+(?:(?:[\w+]|[-#*~^][-#*.~^]*[\w+]|=\S)(?:[^$=]|=+[^=])*=*)?)?)?\}:XF\$/,inside:{punctuation:{pattern:/[$:{}?.,|]/}},alias:"function"},"directive-inline":{pattern:/\$\w(?:#\d+\+?)?(?:\[[-\w.]+\])?:[-\/\w.]+\$/,inside:{punctuation:{pattern:/\$(?:\w:|C(?:\[|#\d))?|[:{[\]]/,inside:{tag:{pattern:/#\d/}}}},alias:"function"},"directive-block-open":{pattern:/\$\w+:\{|\$\w(?:#\d+\+?)?(?:\[[-\w.]+\])?:[-\w.]+:\{(?:![A-Z]+)?/,inside:{punctuation:{pattern:/\$(?:\w:|C(?:\[|#\d))?|[:{[\]]/,inside:{tag:{pattern:/#\d/}}},attribute:{pattern:/![A-Z]+$/,inside:{punctuation:{pattern:/!/}},alias:"keyword"}},alias:"function"},"directive-block-separator":{pattern:/\}:[-\w.]+:\{/,inside:{punctuation:{pattern:/[:{}]/}},alias:"function"},"directive-block-close":{pattern:/\}:[-\w.]+\$/,inside:{punctuation:{pattern:/[:{}$]/}},alias:"function"}}),n.languages.insertBefore("inside","punctuation",{variable:n.languages.xeora["function-inline"].inside.variable},n.languages.xeora["function-block"]),n.languages.xeoracube=n.languages.xeora})(t)}return E$}var T$,tG;function DBe(){if(tG)return T$;tG=1,T$=e,e.displayName="xmlDoc",e.aliases=[];function e(t){(function(n){function r(l,u){n.languages[l]&&n.languages.insertBefore(l,"comment",{"doc-comment":u})}var a=n.languages.markup.tag,i={pattern:/\/\/\/.*/,greedy:!0,alias:"comment",inside:{tag:a}},o={pattern:/'''.*/,greedy:!0,alias:"comment",inside:{tag:a}};r("csharp",i),r("fsharp",i),r("vbnet",o)})(t)}return T$}var C$,nG;function $Be(){if(nG)return C$;nG=1,C$=e,e.displayName="xojo",e.aliases=[];function e(t){t.languages.xojo={comment:{pattern:/(?:'|\/\/|Rem\b).+/i,greedy:!0},string:{pattern:/"(?:""|[^"])*"/,greedy:!0},number:[/(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:E[+-]?\d+)?/i,/&[bchou][a-z\d]+/i],directive:{pattern:/#(?:Else|ElseIf|Endif|If|Pragma)\b/i,alias:"property"},keyword:/\b(?:AddHandler|App|Array|As(?:signs)?|Auto|Boolean|Break|By(?:Ref|Val)|Byte|Call|Case|Catch|CFStringRef|CGFloat|Class|Color|Const|Continue|CString|Currency|CurrentMethodName|Declare|Delegate|Dim|Do(?:uble|wnTo)?|Each|Else(?:If)?|End|Enumeration|Event|Exception|Exit|Extends|False|Finally|For|Function|Get|GetTypeInfo|Global|GOTO|If|Implements|In|Inherits|Int(?:8|16|32|64|eger|erface)?|Lib|Loop|Me|Module|Next|Nil|Object|Optional|OSType|ParamArray|Private|Property|Protected|PString|Ptr|Raise(?:Event)?|ReDim|RemoveHandler|Return|Select(?:or)?|Self|Set|Shared|Short|Single|Soft|Static|Step|String|Sub|Super|Text|Then|To|True|Try|Ubound|UInt(?:8|16|32|64|eger)?|Until|Using|Var(?:iant)?|Wend|While|WindowPtr|WString)\b/i,operator:/<[=>]?|>=?|[+\-*\/\\^=]|\b(?:AddressOf|And|Ctype|IsA?|Mod|New|Not|Or|WeakAddressOf|Xor)\b/i,punctuation:/[.,;:()]/}}return C$}var k$,rG;function LBe(){if(rG)return k$;rG=1,k$=e,e.displayName="xquery",e.aliases=[];function e(t){(function(n){n.languages.xquery=n.languages.extend("markup",{"xquery-comment":{pattern:/\(:[\s\S]*?:\)/,greedy:!0,alias:"comment"},string:{pattern:/(["'])(?:\1\1|(?!\1)[\s\S])*\1/,greedy:!0},extension:{pattern:/\(#.+?#\)/,alias:"symbol"},variable:/\$[-\w:]+/,axis:{pattern:/(^|[^-])(?:ancestor(?:-or-self)?|attribute|child|descendant(?:-or-self)?|following(?:-sibling)?|parent|preceding(?:-sibling)?|self)(?=::)/,lookbehind:!0,alias:"operator"},"keyword-operator":{pattern:/(^|[^:-])\b(?:and|castable as|div|eq|except|ge|gt|idiv|instance of|intersect|is|le|lt|mod|ne|or|union)\b(?=$|[^:-])/,lookbehind:!0,alias:"operator"},keyword:{pattern:/(^|[^:-])\b(?:as|ascending|at|base-uri|boundary-space|case|cast as|collation|construction|copy-namespaces|declare|default|descending|else|empty (?:greatest|least)|encoding|every|external|for|function|if|import|in|inherit|lax|let|map|module|namespace|no-inherit|no-preserve|option|order(?: by|ed|ing)?|preserve|return|satisfies|schema|some|stable|strict|strip|then|to|treat as|typeswitch|unordered|validate|variable|version|where|xquery)\b(?=$|[^:-])/,lookbehind:!0},function:/[\w-]+(?::[\w-]+)*(?=\s*\()/,"xquery-element":{pattern:/(element\s+)[\w-]+(?::[\w-]+)*/,lookbehind:!0,alias:"tag"},"xquery-attribute":{pattern:/(attribute\s+)[\w-]+(?::[\w-]+)*/,lookbehind:!0,alias:"attr-name"},builtin:{pattern:/(^|[^:-])\b(?:attribute|comment|document|element|processing-instruction|text|xs:(?:ENTITIES|ENTITY|ID|IDREFS?|NCName|NMTOKENS?|NOTATION|Name|QName|anyAtomicType|anyType|anyURI|base64Binary|boolean|byte|date|dateTime|dayTimeDuration|decimal|double|duration|float|gDay|gMonth|gMonthDay|gYear|gYearMonth|hexBinary|int|integer|language|long|negativeInteger|nonNegativeInteger|nonPositiveInteger|normalizedString|positiveInteger|short|string|time|token|unsigned(?:Byte|Int|Long|Short)|untyped(?:Atomic)?|yearMonthDuration))\b(?=$|[^:-])/,lookbehind:!0},number:/\b\d+(?:\.\d+)?(?:E[+-]?\d+)?/,operator:[/[+*=?|@]|\.\.?|:=|!=|<[=<]?|>[=>]?/,{pattern:/(\s)-(?=\s)/,lookbehind:!0}],punctuation:/[[\](){},;:/]/}),n.languages.xquery.tag.pattern=/<\/?(?!\d)[^\s>\/=$<%]+(?:\s+[^\s>\/=]+(?:=(?:("|')(?:\\[\s\S]|\{(?!\{)(?:\{(?:\{[^{}]*\}|[^{}])*\}|[^{}])+\}|(?!\1)[^\\])*\1|[^\s'">=]+))?)*\s*\/?>/,n.languages.xquery.tag.inside["attr-value"].pattern=/=(?:("|')(?:\\[\s\S]|\{(?!\{)(?:\{(?:\{[^{}]*\}|[^{}])*\}|[^{}])+\}|(?!\1)[^\\])*\1|[^\s'">=]+)/,n.languages.xquery.tag.inside["attr-value"].inside.punctuation=/^="|"$/,n.languages.xquery.tag.inside["attr-value"].inside.expression={pattern:/\{(?!\{)(?:\{(?:\{[^{}]*\}|[^{}])*\}|[^{}])+\}/,inside:n.languages.xquery,alias:"language-xquery"};var r=function(i){return typeof i=="string"?i:typeof i.content=="string"?i.content:i.content.map(r).join("")},a=function(i){for(var o=[],l=0;l0&&o[o.length-1].tagName===r(u.content[0].content[1])&&o.pop():u.content[u.content.length-1].content==="/>"||o.push({tagName:r(u.content[0].content[1]),openedBraces:0}):o.length>0&&u.type==="punctuation"&&u.content==="{"&&(!i[l+1]||i[l+1].type!=="punctuation"||i[l+1].content!=="{")&&(!i[l-1]||i[l-1].type!=="plain-text"||i[l-1].content!=="{")?o[o.length-1].openedBraces++:o.length>0&&o[o.length-1].openedBraces>0&&u.type==="punctuation"&&u.content==="}"?o[o.length-1].openedBraces--:u.type!=="comment"&&(d=!0)),(d||typeof u=="string")&&o.length>0&&o[o.length-1].openedBraces===0){var f=r(u);l0&&(typeof i[l-1]=="string"||i[l-1].type==="plain-text")&&(f=r(i[l-1])+f,i.splice(l-1,1),l--),/^\s+$/.test(f)?i[l]=f:i[l]=new n.Token("plain-text",f,null,f)}u.content&&typeof u.content!="string"&&a(u.content)}};n.hooks.add("after-tokenize",function(i){i.language==="xquery"&&a(i.tokens)})})(t)}return k$}var x$,aG;function FBe(){if(aG)return x$;aG=1,x$=e,e.displayName="yang",e.aliases=[];function e(t){t.languages.yang={comment:/\/\*[\s\S]*?\*\/|\/\/.*/,string:{pattern:/"(?:[^\\"]|\\.)*"|'[^']*'/,greedy:!0},keyword:{pattern:/(^|[{};\r\n][ \t]*)[a-z_][\w.-]*/i,lookbehind:!0},namespace:{pattern:/(\s)[a-z_][\w.-]*(?=:)/i,lookbehind:!0},boolean:/\b(?:false|true)\b/,operator:/\+/,punctuation:/[{};:]/}}return x$}var _$,iG;function jBe(){if(iG)return _$;iG=1,_$=e,e.displayName="zig",e.aliases=[];function e(t){(function(n){function r(f){return function(){return f}}var a=/\b(?:align|allowzero|and|anyframe|anytype|asm|async|await|break|cancel|catch|comptime|const|continue|defer|else|enum|errdefer|error|export|extern|fn|for|if|inline|linksection|nakedcc|noalias|nosuspend|null|or|orelse|packed|promise|pub|resume|return|stdcallcc|struct|suspend|switch|test|threadlocal|try|undefined|union|unreachable|usingnamespace|var|volatile|while)\b/,i="\\b(?!"+a.source+")(?!\\d)\\w+\\b",o=/align\s*\((?:[^()]|\([^()]*\))*\)/.source,l=/(?:\?|\bpromise->|(?:\[[^[\]]*\]|\*(?!\*)|\*\*)(?:\s*|\s*const\b|\s*volatile\b|\s*allowzero\b)*)/.source.replace(//g,r(o)),u=/(?:\bpromise\b|(?:\berror\.)?(?:\.)*(?!\s+))/.source.replace(//g,r(i)),d="(?!\\s)(?:!?\\s*(?:"+l+"\\s*)*"+u+")+";n.languages.zig={comment:[{pattern:/\/\/[/!].*/,alias:"doc-comment"},/\/{2}.*/],string:[{pattern:/(^|[^\\@])c?"(?:[^"\\\r\n]|\\.)*"/,lookbehind:!0,greedy:!0},{pattern:/([\r\n])([ \t]+c?\\{2}).*(?:(?:\r\n?|\n)\2.*)*/,lookbehind:!0,greedy:!0}],char:{pattern:/(^|[^\\])'(?:[^'\\\r\n]|[\uD800-\uDFFF]{2}|\\(?:.|x[a-fA-F\d]{2}|u\{[a-fA-F\d]{1,6}\}))'/,lookbehind:!0,greedy:!0},builtin:/\B@(?!\d)\w+(?=\s*\()/,label:{pattern:/(\b(?:break|continue)\s*:\s*)\w+\b|\b(?!\d)\w+\b(?=\s*:\s*(?:\{|while\b))/,lookbehind:!0},"class-name":[/\b(?!\d)\w+(?=\s*=\s*(?:(?:extern|packed)\s+)?(?:enum|struct|union)\s*[({])/,{pattern:RegExp(/(:\s*)(?=\s*(?:\s*)?[=;,)])|(?=\s*(?:\s*)?\{)/.source.replace(//g,r(d)).replace(//g,r(o))),lookbehind:!0,inside:null},{pattern:RegExp(/(\)\s*)(?=\s*(?:\s*)?;)/.source.replace(//g,r(d)).replace(//g,r(o))),lookbehind:!0,inside:null}],"builtin-type":{pattern:/\b(?:anyerror|bool|c_u?(?:int|long|longlong|short)|c_longdouble|c_void|comptime_(?:float|int)|f(?:16|32|64|128)|[iu](?:8|16|32|64|128|size)|noreturn|type|void)\b/,alias:"keyword"},keyword:a,function:/\b(?!\d)\w+(?=\s*\()/,number:/\b(?:0b[01]+|0o[0-7]+|0x[a-fA-F\d]+(?:\.[a-fA-F\d]*)?(?:[pP][+-]?[a-fA-F\d]+)?|\d+(?:\.\d*)?(?:[eE][+-]?\d+)?)\b/,boolean:/\b(?:false|true)\b/,operator:/\.[*?]|\.{2,3}|[-=]>|\*\*|\+\+|\|\||(?:<<|>>|[-+*]%|[-+*/%^&|<>!=])=?|[?~]/,punctuation:/[.:,;(){}[\]]/},n.languages.zig["class-name"].forEach(function(f){f.inside===null&&(f.inside=n.languages.zig)})})(t)}return _$}var O$,oG;function UBe(){if(oG)return O$;oG=1;var e=nje();return O$=e,e.register(aje()),e.register(ije()),e.register(oje()),e.register(sje()),e.register(lje()),e.register(uje()),e.register(cje()),e.register(dje()),e.register(fje()),e.register(pje()),e.register(hje()),e.register(mje()),e.register(gje()),e.register(vje()),e.register(yje()),e.register(bje()),e.register(wje()),e.register(Sje()),e.register(Eje()),e.register(Tje()),e.register(Cje()),e.register(kje()),e.register(vre()),e.register(yre()),e.register(xje()),e.register(_je()),e.register(Oje()),e.register(Rje()),e.register(Pje()),e.register(Aje()),e.register(Nje()),e.register(Mje()),e.register(Ije()),e.register(Dje()),e.register(Kv()),e.register($je()),e.register(Lje()),e.register(Fje()),e.register(jje()),e.register(Uje()),e.register(Bje()),e.register(Wje()),e.register(zje()),e.register(qje()),e.register(Yj()),e.register(Hje()),e.register(U_()),e.register(Vje()),e.register(Gje()),e.register(Yje()),e.register(Kje()),e.register(Xje()),e.register(Qje()),e.register(Jje()),e.register(Zje()),e.register(e4e()),e.register(t4e()),e.register(n4e()),e.register(r4e()),e.register(a4e()),e.register(i4e()),e.register(o4e()),e.register(s4e()),e.register(l4e()),e.register(u4e()),e.register(c4e()),e.register(d4e()),e.register(f4e()),e.register(p4e()),e.register(h4e()),e.register(m4e()),e.register(g4e()),e.register(v4e()),e.register(y4e()),e.register(b4e()),e.register(w4e()),e.register(S4e()),e.register(E4e()),e.register(T4e()),e.register(C4e()),e.register(k4e()),e.register(x4e()),e.register(_4e()),e.register(O4e()),e.register(R4e()),e.register(P4e()),e.register(A4e()),e.register(N4e()),e.register(M4e()),e.register(I4e()),e.register(D4e()),e.register($4e()),e.register(L4e()),e.register(F4e()),e.register(Kj()),e.register(j4e()),e.register(U4e()),e.register(B4e()),e.register(W4e()),e.register(z4e()),e.register(q4e()),e.register(H4e()),e.register(V4e()),e.register(G4e()),e.register(Y4e()),e.register(K4e()),e.register(X4e()),e.register(Q4e()),e.register(J4e()),e.register(Z4e()),e.register(eUe()),e.register(tUe()),e.register(Xj()),e.register(nUe()),e.register(W_()),e.register(rUe()),e.register(aUe()),e.register(iUe()),e.register(oUe()),e.register(sUe()),e.register(lUe()),e.register(uUe()),e.register(Jj()),e.register(cUe()),e.register(dUe()),e.register(fUe()),e.register(wre()),e.register(pUe()),e.register(hUe()),e.register(mUe()),e.register(gUe()),e.register(vUe()),e.register(yUe()),e.register(bUe()),e.register(wUe()),e.register(SUe()),e.register(EUe()),e.register(TUe()),e.register(CUe()),e.register(kUe()),e.register(xUe()),e.register(_Ue()),e.register(OUe()),e.register(bre()),e.register(RUe()),e.register(PUe()),e.register(AUe()),e.register(cs()),e.register(NUe()),e.register(MUe()),e.register(IUe()),e.register(DUe()),e.register($Ue()),e.register(LUe()),e.register(FUe()),e.register(jUe()),e.register(UUe()),e.register(BUe()),e.register(WUe()),e.register(zUe()),e.register(qUe()),e.register(HUe()),e.register(VUe()),e.register(GUe()),e.register(YUe()),e.register(KUe()),e.register(XUe()),e.register(QUe()),e.register(JUe()),e.register(ZUe()),e.register(e6e()),e.register(t6e()),e.register(n6e()),e.register(r6e()),e.register(a6e()),e.register(i6e()),e.register(o6e()),e.register(s6e()),e.register(l6e()),e.register(u6e()),e.register(z_()),e.register(c6e()),e.register(d6e()),e.register(f6e()),e.register(p6e()),e.register(h6e()),e.register(m6e()),e.register(g6e()),e.register(v6e()),e.register(y6e()),e.register(b6e()),e.register(w6e()),e.register(S6e()),e.register(E6e()),e.register(T6e()),e.register(C6e()),e.register(k6e()),e.register(x6e()),e.register(_6e()),e.register(O6e()),e.register(R6e()),e.register(P6e()),e.register(A6e()),e.register(N6e()),e.register(M6e()),e.register(I6e()),e.register(D6e()),e.register($6e()),e.register(L6e()),e.register(F6e()),e.register(j6e()),e.register(B_()),e.register(U6e()),e.register(B6e()),e.register(W6e()),e.register(z6e()),e.register(Zj()),e.register(q6e()),e.register(H6e()),e.register(V6e()),e.register(G6e()),e.register(Y6e()),e.register(K6e()),e.register(X6e()),e.register(Q6e()),e.register(J6e()),e.register(Z6e()),e.register(eBe()),e.register(tBe()),e.register(Gj()),e.register(nBe()),e.register(rBe()),e.register(aBe()),e.register(iBe()),e.register(oBe()),e.register(sBe()),e.register(e4()),e.register(lBe()),e.register(uBe()),e.register(cBe()),e.register(dBe()),e.register(fBe()),e.register(pBe()),e.register(hBe()),e.register(mBe()),e.register(Sre()),e.register(gBe()),e.register(Qj()),e.register(vBe()),e.register(yBe()),e.register(bBe()),e.register(wBe()),e.register(SBe()),e.register(EBe()),e.register(Ere()),e.register(TBe()),e.register(CBe()),e.register(kBe()),e.register(xBe()),e.register(_Be()),e.register(OBe()),e.register(RBe()),e.register(PBe()),e.register(ABe()),e.register(NBe()),e.register(MBe()),e.register(IBe()),e.register(DBe()),e.register($Be()),e.register(LBe()),e.register(Tre()),e.register(FBe()),e.register(jBe()),O$}var BBe=UBe();const WBe=Pc(BBe);var Cre=OLe(WBe,rje);Cre.supportedLanguages=RLe;const zBe={'code[class*="language-"]':{fontFamily:'Consolas, Menlo, Monaco, "Andale Mono WT", "Andale Mono", "Lucida Console", "Lucida Sans Typewriter", "DejaVu Sans Mono", "Bitstream Vera Sans Mono", "Liberation Mono", "Nimbus Mono L", "Courier New", Courier, monospace',fontSize:"14px",lineHeight:"1.375",direction:"ltr",textAlign:"left",whiteSpace:"pre",wordSpacing:"normal",wordBreak:"normal",MozTabSize:"4",OTabSize:"4",tabSize:"4",WebkitHyphens:"none",MozHyphens:"none",msHyphens:"none",hyphens:"none",background:"#faf8f5",color:"#728fcb"},'pre[class*="language-"]':{fontFamily:'Consolas, Menlo, Monaco, "Andale Mono WT", "Andale Mono", "Lucida Console", "Lucida Sans Typewriter", "DejaVu Sans Mono", "Bitstream Vera Sans Mono", "Liberation Mono", "Nimbus Mono L", "Courier New", Courier, monospace',fontSize:"14px",lineHeight:"1.375",direction:"ltr",textAlign:"left",whiteSpace:"pre",wordSpacing:"normal",wordBreak:"normal",MozTabSize:"4",OTabSize:"4",tabSize:"4",WebkitHyphens:"none",MozHyphens:"none",msHyphens:"none",hyphens:"none",background:"#faf8f5",color:"#728fcb",padding:"1em",margin:".5em 0",overflow:"auto"},'pre > code[class*="language-"]':{fontSize:"1em"},'pre[class*="language-"]::-moz-selection':{textShadow:"none",background:"#faf8f5"},'pre[class*="language-"] ::-moz-selection':{textShadow:"none",background:"#faf8f5"},'code[class*="language-"]::-moz-selection':{textShadow:"none",background:"#faf8f5"},'code[class*="language-"] ::-moz-selection':{textShadow:"none",background:"#faf8f5"},'pre[class*="language-"]::selection':{textShadow:"none",background:"#faf8f5"},'pre[class*="language-"] ::selection':{textShadow:"none",background:"#faf8f5"},'code[class*="language-"]::selection':{textShadow:"none",background:"#faf8f5"},'code[class*="language-"] ::selection':{textShadow:"none",background:"#faf8f5"},':not(pre) > code[class*="language-"]':{padding:".1em",borderRadius:".3em"},comment:{color:"#b6ad9a"},prolog:{color:"#b6ad9a"},doctype:{color:"#b6ad9a"},cdata:{color:"#b6ad9a"},punctuation:{color:"#b6ad9a"},namespace:{Opacity:".7"},tag:{color:"#063289"},operator:{color:"#063289"},number:{color:"#063289"},property:{color:"#b29762"},function:{color:"#b29762"},"tag-id":{color:"#2d2006"},selector:{color:"#2d2006"},"atrule-id":{color:"#2d2006"},"code.language-javascript":{color:"#896724"},"attr-name":{color:"#896724"},"code.language-css":{color:"#728fcb"},"code.language-scss":{color:"#728fcb"},boolean:{color:"#728fcb"},string:{color:"#728fcb"},entity:{color:"#728fcb",cursor:"help"},url:{color:"#728fcb"},".language-css .token.string":{color:"#728fcb"},".language-scss .token.string":{color:"#728fcb"},".style .token.string":{color:"#728fcb"},"attr-value":{color:"#728fcb"},keyword:{color:"#728fcb"},control:{color:"#728fcb"},directive:{color:"#728fcb"},unit:{color:"#728fcb"},statement:{color:"#728fcb"},regex:{color:"#728fcb"},atrule:{color:"#728fcb"},placeholder:{color:"#93abdc"},variable:{color:"#93abdc"},deleted:{textDecoration:"line-through"},inserted:{borderBottom:"1px dotted #2d2006",textDecoration:"none"},italic:{fontStyle:"italic"},important:{fontWeight:"bold",color:"#896724"},bold:{fontWeight:"bold"},"pre > code.highlight":{Outline:".4em solid #896724",OutlineOffset:".4em"},".line-numbers.line-numbers .line-numbers-rows":{borderRightColor:"#ece8de"},".line-numbers .line-numbers-rows > span:before":{color:"#cdc4b1"},".line-highlight.line-highlight":{background:"linear-gradient(to right, rgba(45, 32, 6, 0.2) 70%, rgba(45, 32, 6, 0))"}},qBe={'code[class*="language-"]':{background:"hsl(220, 13%, 18%)",color:"hsl(220, 14%, 71%)",textShadow:"0 1px rgba(0, 0, 0, 0.3)",fontFamily:'"Fira Code", "Fira Mono", Menlo, Consolas, "DejaVu Sans Mono", monospace',direction:"ltr",textAlign:"left",whiteSpace:"pre",wordSpacing:"normal",wordBreak:"normal",lineHeight:"1.5",MozTabSize:"2",OTabSize:"2",tabSize:"2",WebkitHyphens:"none",MozHyphens:"none",msHyphens:"none",hyphens:"none"},'pre[class*="language-"]':{background:"hsl(220, 13%, 18%)",color:"hsl(220, 14%, 71%)",textShadow:"0 1px rgba(0, 0, 0, 0.3)",fontFamily:'"Fira Code", "Fira Mono", Menlo, Consolas, "DejaVu Sans Mono", monospace',direction:"ltr",textAlign:"left",whiteSpace:"pre",wordSpacing:"normal",wordBreak:"normal",lineHeight:"1.5",MozTabSize:"2",OTabSize:"2",tabSize:"2",WebkitHyphens:"none",MozHyphens:"none",msHyphens:"none",hyphens:"none",padding:"1em",margin:"0.5em 0",overflow:"auto",borderRadius:"0.3em"},'code[class*="language-"]::-moz-selection':{background:"hsl(220, 13%, 28%)",color:"inherit",textShadow:"none"},'code[class*="language-"] *::-moz-selection':{background:"hsl(220, 13%, 28%)",color:"inherit",textShadow:"none"},'pre[class*="language-"] *::-moz-selection':{background:"hsl(220, 13%, 28%)",color:"inherit",textShadow:"none"},'code[class*="language-"]::selection':{background:"hsl(220, 13%, 28%)",color:"inherit",textShadow:"none"},'code[class*="language-"] *::selection':{background:"hsl(220, 13%, 28%)",color:"inherit",textShadow:"none"},'pre[class*="language-"] *::selection':{background:"hsl(220, 13%, 28%)",color:"inherit",textShadow:"none"},':not(pre) > code[class*="language-"]':{padding:"0.2em 0.3em",borderRadius:"0.3em",whiteSpace:"normal"},comment:{color:"hsl(220, 10%, 40%)",fontStyle:"italic"},prolog:{color:"hsl(220, 10%, 40%)"},cdata:{color:"hsl(220, 10%, 40%)"},doctype:{color:"hsl(220, 14%, 71%)"},punctuation:{color:"hsl(220, 14%, 71%)"},entity:{color:"hsl(220, 14%, 71%)",cursor:"help"},"attr-name":{color:"hsl(29, 54%, 61%)"},"class-name":{color:"hsl(29, 54%, 61%)"},boolean:{color:"hsl(29, 54%, 61%)"},constant:{color:"hsl(29, 54%, 61%)"},number:{color:"hsl(29, 54%, 61%)"},atrule:{color:"hsl(29, 54%, 61%)"},keyword:{color:"hsl(286, 60%, 67%)"},property:{color:"hsl(355, 65%, 65%)"},tag:{color:"hsl(355, 65%, 65%)"},symbol:{color:"hsl(355, 65%, 65%)"},deleted:{color:"hsl(355, 65%, 65%)"},important:{color:"hsl(355, 65%, 65%)"},selector:{color:"hsl(95, 38%, 62%)"},string:{color:"hsl(95, 38%, 62%)"},char:{color:"hsl(95, 38%, 62%)"},builtin:{color:"hsl(95, 38%, 62%)"},inserted:{color:"hsl(95, 38%, 62%)"},regex:{color:"hsl(95, 38%, 62%)"},"attr-value":{color:"hsl(95, 38%, 62%)"},"attr-value > .token.punctuation":{color:"hsl(95, 38%, 62%)"},variable:{color:"hsl(207, 82%, 66%)"},operator:{color:"hsl(207, 82%, 66%)"},function:{color:"hsl(207, 82%, 66%)"},url:{color:"hsl(187, 47%, 55%)"},"attr-value > .token.punctuation.attr-equals":{color:"hsl(220, 14%, 71%)"},"special-attr > .token.attr-value > .token.value.css":{color:"hsl(220, 14%, 71%)"},".language-css .token.selector":{color:"hsl(355, 65%, 65%)"},".language-css .token.property":{color:"hsl(220, 14%, 71%)"},".language-css .token.function":{color:"hsl(187, 47%, 55%)"},".language-css .token.url > .token.function":{color:"hsl(187, 47%, 55%)"},".language-css .token.url > .token.string.url":{color:"hsl(95, 38%, 62%)"},".language-css .token.important":{color:"hsl(286, 60%, 67%)"},".language-css .token.atrule .token.rule":{color:"hsl(286, 60%, 67%)"},".language-javascript .token.operator":{color:"hsl(286, 60%, 67%)"},".language-javascript .token.template-string > .token.interpolation > .token.interpolation-punctuation.punctuation":{color:"hsl(5, 48%, 51%)"},".language-json .token.operator":{color:"hsl(220, 14%, 71%)"},".language-json .token.null.keyword":{color:"hsl(29, 54%, 61%)"},".language-markdown .token.url":{color:"hsl(220, 14%, 71%)"},".language-markdown .token.url > .token.operator":{color:"hsl(220, 14%, 71%)"},".language-markdown .token.url-reference.url > .token.string":{color:"hsl(220, 14%, 71%)"},".language-markdown .token.url > .token.content":{color:"hsl(207, 82%, 66%)"},".language-markdown .token.url > .token.url":{color:"hsl(187, 47%, 55%)"},".language-markdown .token.url-reference.url":{color:"hsl(187, 47%, 55%)"},".language-markdown .token.blockquote.punctuation":{color:"hsl(220, 10%, 40%)",fontStyle:"italic"},".language-markdown .token.hr.punctuation":{color:"hsl(220, 10%, 40%)",fontStyle:"italic"},".language-markdown .token.code-snippet":{color:"hsl(95, 38%, 62%)"},".language-markdown .token.bold .token.content":{color:"hsl(29, 54%, 61%)"},".language-markdown .token.italic .token.content":{color:"hsl(286, 60%, 67%)"},".language-markdown .token.strike .token.content":{color:"hsl(355, 65%, 65%)"},".language-markdown .token.strike .token.punctuation":{color:"hsl(355, 65%, 65%)"},".language-markdown .token.list.punctuation":{color:"hsl(355, 65%, 65%)"},".language-markdown .token.title.important > .token.punctuation":{color:"hsl(355, 65%, 65%)"},bold:{fontWeight:"bold"},italic:{fontStyle:"italic"},namespace:{Opacity:"0.8"},"token.tab:not(:empty):before":{color:"hsla(220, 14%, 71%, 0.15)",textShadow:"none"},"token.cr:before":{color:"hsla(220, 14%, 71%, 0.15)",textShadow:"none"},"token.lf:before":{color:"hsla(220, 14%, 71%, 0.15)",textShadow:"none"},"token.space:before":{color:"hsla(220, 14%, 71%, 0.15)",textShadow:"none"},"div.code-toolbar > .toolbar.toolbar > .toolbar-item":{marginRight:"0.4em"},"div.code-toolbar > .toolbar.toolbar > .toolbar-item > button":{background:"hsl(220, 13%, 26%)",color:"hsl(220, 9%, 55%)",padding:"0.1em 0.4em",borderRadius:"0.3em"},"div.code-toolbar > .toolbar.toolbar > .toolbar-item > a":{background:"hsl(220, 13%, 26%)",color:"hsl(220, 9%, 55%)",padding:"0.1em 0.4em",borderRadius:"0.3em"},"div.code-toolbar > .toolbar.toolbar > .toolbar-item > span":{background:"hsl(220, 13%, 26%)",color:"hsl(220, 9%, 55%)",padding:"0.1em 0.4em",borderRadius:"0.3em"},"div.code-toolbar > .toolbar.toolbar > .toolbar-item > button:hover":{background:"hsl(220, 13%, 28%)",color:"hsl(220, 14%, 71%)"},"div.code-toolbar > .toolbar.toolbar > .toolbar-item > button:focus":{background:"hsl(220, 13%, 28%)",color:"hsl(220, 14%, 71%)"},"div.code-toolbar > .toolbar.toolbar > .toolbar-item > a:hover":{background:"hsl(220, 13%, 28%)",color:"hsl(220, 14%, 71%)"},"div.code-toolbar > .toolbar.toolbar > .toolbar-item > a:focus":{background:"hsl(220, 13%, 28%)",color:"hsl(220, 14%, 71%)"},"div.code-toolbar > .toolbar.toolbar > .toolbar-item > span:hover":{background:"hsl(220, 13%, 28%)",color:"hsl(220, 14%, 71%)"},"div.code-toolbar > .toolbar.toolbar > .toolbar-item > span:focus":{background:"hsl(220, 13%, 28%)",color:"hsl(220, 14%, 71%)"},".line-highlight.line-highlight":{background:"hsla(220, 100%, 80%, 0.04)"},".line-highlight.line-highlight:before":{background:"hsl(220, 13%, 26%)",color:"hsl(220, 14%, 71%)",padding:"0.1em 0.6em",borderRadius:"0.3em",boxShadow:"0 2px 0 0 rgba(0, 0, 0, 0.2)"},".line-highlight.line-highlight[data-end]:after":{background:"hsl(220, 13%, 26%)",color:"hsl(220, 14%, 71%)",padding:"0.1em 0.6em",borderRadius:"0.3em",boxShadow:"0 2px 0 0 rgba(0, 0, 0, 0.2)"},"pre[id].linkable-line-numbers.linkable-line-numbers span.line-numbers-rows > span:hover:before":{backgroundColor:"hsla(220, 100%, 80%, 0.04)"},".line-numbers.line-numbers .line-numbers-rows":{borderRightColor:"hsla(220, 14%, 71%, 0.15)"},".command-line .command-line-prompt":{borderRightColor:"hsla(220, 14%, 71%, 0.15)"},".line-numbers .line-numbers-rows > span:before":{color:"hsl(220, 14%, 45%)"},".command-line .command-line-prompt > span:before":{color:"hsl(220, 14%, 45%)"},".rainbow-braces .token.token.punctuation.brace-level-1":{color:"hsl(355, 65%, 65%)"},".rainbow-braces .token.token.punctuation.brace-level-5":{color:"hsl(355, 65%, 65%)"},".rainbow-braces .token.token.punctuation.brace-level-9":{color:"hsl(355, 65%, 65%)"},".rainbow-braces .token.token.punctuation.brace-level-2":{color:"hsl(95, 38%, 62%)"},".rainbow-braces .token.token.punctuation.brace-level-6":{color:"hsl(95, 38%, 62%)"},".rainbow-braces .token.token.punctuation.brace-level-10":{color:"hsl(95, 38%, 62%)"},".rainbow-braces .token.token.punctuation.brace-level-3":{color:"hsl(207, 82%, 66%)"},".rainbow-braces .token.token.punctuation.brace-level-7":{color:"hsl(207, 82%, 66%)"},".rainbow-braces .token.token.punctuation.brace-level-11":{color:"hsl(207, 82%, 66%)"},".rainbow-braces .token.token.punctuation.brace-level-4":{color:"hsl(286, 60%, 67%)"},".rainbow-braces .token.token.punctuation.brace-level-8":{color:"hsl(286, 60%, 67%)"},".rainbow-braces .token.token.punctuation.brace-level-12":{color:"hsl(286, 60%, 67%)"},"pre.diff-highlight > code .token.token.deleted:not(.prefix)":{backgroundColor:"hsla(353, 100%, 66%, 0.15)"},"pre > code.diff-highlight .token.token.deleted:not(.prefix)":{backgroundColor:"hsla(353, 100%, 66%, 0.15)"},"pre.diff-highlight > code .token.token.deleted:not(.prefix)::-moz-selection":{backgroundColor:"hsla(353, 95%, 66%, 0.25)"},"pre.diff-highlight > code .token.token.deleted:not(.prefix) *::-moz-selection":{backgroundColor:"hsla(353, 95%, 66%, 0.25)"},"pre > code.diff-highlight .token.token.deleted:not(.prefix)::-moz-selection":{backgroundColor:"hsla(353, 95%, 66%, 0.25)"},"pre > code.diff-highlight .token.token.deleted:not(.prefix) *::-moz-selection":{backgroundColor:"hsla(353, 95%, 66%, 0.25)"},"pre.diff-highlight > code .token.token.deleted:not(.prefix)::selection":{backgroundColor:"hsla(353, 95%, 66%, 0.25)"},"pre.diff-highlight > code .token.token.deleted:not(.prefix) *::selection":{backgroundColor:"hsla(353, 95%, 66%, 0.25)"},"pre > code.diff-highlight .token.token.deleted:not(.prefix)::selection":{backgroundColor:"hsla(353, 95%, 66%, 0.25)"},"pre > code.diff-highlight .token.token.deleted:not(.prefix) *::selection":{backgroundColor:"hsla(353, 95%, 66%, 0.25)"},"pre.diff-highlight > code .token.token.inserted:not(.prefix)":{backgroundColor:"hsla(137, 100%, 55%, 0.15)"},"pre > code.diff-highlight .token.token.inserted:not(.prefix)":{backgroundColor:"hsla(137, 100%, 55%, 0.15)"},"pre.diff-highlight > code .token.token.inserted:not(.prefix)::-moz-selection":{backgroundColor:"hsla(135, 73%, 55%, 0.25)"},"pre.diff-highlight > code .token.token.inserted:not(.prefix) *::-moz-selection":{backgroundColor:"hsla(135, 73%, 55%, 0.25)"},"pre > code.diff-highlight .token.token.inserted:not(.prefix)::-moz-selection":{backgroundColor:"hsla(135, 73%, 55%, 0.25)"},"pre > code.diff-highlight .token.token.inserted:not(.prefix) *::-moz-selection":{backgroundColor:"hsla(135, 73%, 55%, 0.25)"},"pre.diff-highlight > code .token.token.inserted:not(.prefix)::selection":{backgroundColor:"hsla(135, 73%, 55%, 0.25)"},"pre.diff-highlight > code .token.token.inserted:not(.prefix) *::selection":{backgroundColor:"hsla(135, 73%, 55%, 0.25)"},"pre > code.diff-highlight .token.token.inserted:not(.prefix)::selection":{backgroundColor:"hsla(135, 73%, 55%, 0.25)"},"pre > code.diff-highlight .token.token.inserted:not(.prefix) *::selection":{backgroundColor:"hsla(135, 73%, 55%, 0.25)"},".prism-previewer.prism-previewer:before":{borderColor:"hsl(224, 13%, 17%)"},".prism-previewer-gradient.prism-previewer-gradient div":{borderColor:"hsl(224, 13%, 17%)",borderRadius:"0.3em"},".prism-previewer-color.prism-previewer-color:before":{borderRadius:"0.3em"},".prism-previewer-easing.prism-previewer-easing:before":{borderRadius:"0.3em"},".prism-previewer.prism-previewer:after":{borderTopColor:"hsl(224, 13%, 17%)"},".prism-previewer-flipped.prism-previewer-flipped.after":{borderBottomColor:"hsl(224, 13%, 17%)"},".prism-previewer-angle.prism-previewer-angle:before":{background:"hsl(219, 13%, 22%)"},".prism-previewer-time.prism-previewer-time:before":{background:"hsl(219, 13%, 22%)"},".prism-previewer-easing.prism-previewer-easing":{background:"hsl(219, 13%, 22%)"},".prism-previewer-angle.prism-previewer-angle circle":{stroke:"hsl(220, 14%, 71%)",strokeOpacity:"1"},".prism-previewer-time.prism-previewer-time circle":{stroke:"hsl(220, 14%, 71%)",strokeOpacity:"1"},".prism-previewer-easing.prism-previewer-easing circle":{stroke:"hsl(220, 14%, 71%)",fill:"transparent"},".prism-previewer-easing.prism-previewer-easing path":{stroke:"hsl(220, 14%, 71%)"},".prism-previewer-easing.prism-previewer-easing line":{stroke:"hsl(220, 14%, 71%)"}},ra=({codeString:e})=>{var i;const t=(i=document==null?void 0:document.body)==null?void 0:i.classList.contains("dark-theme"),[n,r]=R.useState(!1),a=()=>{navigator.clipboard.writeText(e).then(()=>{r(!0),setTimeout(()=>r(!1),1500)})};return w.jsxs("div",{className:"code-viewer-container",children:[w.jsx("button",{className:"copy-button",onClick:a,children:n?"Copied!":"Copy"}),w.jsx(Cre,{language:"tsx",style:t?qBe:zBe,children:e})]})},Cd={Example1:`const Example1 = () => { +|(?![\\s\\S])))+`,"m"),alias:o,inside:{line:{pattern:/(.)(?=[\s\S]).*(?:\r\n?|\n)?/,lookbehind:!0},prefix:{pattern:/[\s\S]/,alias:/\w+/.exec(a)[0]}}}}),Object.defineProperty(n.languages.diff,"PREFIXES",{value:r})})(t)}return aM}var iM,L9;function gs(){if(L9)return iM;L9=1,iM=e,e.displayName="markupTemplating",e.aliases=[];function e(t){(function(n){function r(a,i){return"___"+a.toUpperCase()+i+"___"}Object.defineProperties(n.languages["markup-templating"]={},{buildPlaceholders:{value:function(a,i,o,l){if(a.language===i){var u=a.tokenStack=[];a.code=a.code.replace(o,function(d){if(typeof l=="function"&&!l(d))return d;for(var f=u.length,g;a.code.indexOf(g=r(i,f))!==-1;)++f;return u[f]=d,g}),a.grammar=n.languages.markup}}},tokenizePlaceholders:{value:function(a,i){if(a.language!==i||!a.tokenStack)return;a.grammar=n.languages[i];var o=0,l=Object.keys(a.tokenStack);function u(d){for(var f=0;f=l.length);f++){var g=d[f];if(typeof g=="string"||g.content&&typeof g.content=="string"){var y=l[o],h=a.tokenStack[y],v=typeof g=="string"?g:g.content,E=r(i,y),T=v.indexOf(E);if(T>-1){++o;var C=v.substring(0,T),k=new n.Token(i,n.tokenize(h,a.grammar),"language-"+i,h),_=v.substring(T+E.length),A=[];C&&A.push.apply(A,u([C])),A.push(k),_&&A.push.apply(A,u([_])),typeof g=="string"?d.splice.apply(d,[f,1].concat(A)):g.content=A}}else g.content&&u(g.content)}return d}u(a.tokens)}}})})(t)}return iM}var oM,F9;function $4e(){if(F9)return oM;F9=1;var e=gs();oM=t,t.displayName="django",t.aliases=["jinja2"];function t(n){n.register(e),(function(r){r.languages.django={comment:/^\{#[\s\S]*?#\}$/,tag:{pattern:/(^\{%[+-]?\s*)\w+/,lookbehind:!0,alias:"keyword"},delimiter:{pattern:/^\{[{%][+-]?|[+-]?[}%]\}$/,alias:"punctuation"},string:{pattern:/("|')(?:\\.|(?!\1)[^\\\r\n])*\1/,greedy:!0},filter:{pattern:/(\|)\w+/,lookbehind:!0,alias:"function"},test:{pattern:/(\bis\s+(?:not\s+)?)(?!not\b)\w+/,lookbehind:!0,alias:"function"},function:/\b[a-z_]\w+(?=\s*\()/i,keyword:/\b(?:and|as|by|else|for|if|import|in|is|loop|not|or|recursive|with|without)\b/,operator:/[-+%=]=?|!=|\*\*?=?|\/\/?=?|<[<=>]?|>[=>]?|[&|^~]/,number:/\b\d+(?:\.\d+)?\b/,boolean:/[Ff]alse|[Nn]one|[Tt]rue/,variable:/\b\w+\b/,punctuation:/[{}[\](),.:;]/};var a=/\{\{[\s\S]*?\}\}|\{%[\s\S]*?%\}|\{#[\s\S]*?#\}/g,i=r.languages["markup-templating"];r.hooks.add("before-tokenize",function(o){i.buildPlaceholders(o,"django",a)}),r.hooks.add("after-tokenize",function(o){i.tokenizePlaceholders(o,"django")}),r.languages.jinja2=r.languages.django,r.hooks.add("before-tokenize",function(o){i.buildPlaceholders(o,"jinja2",a)}),r.hooks.add("after-tokenize",function(o){i.tokenizePlaceholders(o,"jinja2")})})(n)}return oM}var sM,j9;function L4e(){if(j9)return sM;j9=1,sM=e,e.displayName="dnsZoneFile",e.aliases=[];function e(t){t.languages["dns-zone-file"]={comment:/;.*/,string:{pattern:/"(?:\\.|[^"\\\r\n])*"/,greedy:!0},variable:[{pattern:/(^\$ORIGIN[ \t]+)\S+/m,lookbehind:!0},{pattern:/(^|\s)@(?=\s|$)/,lookbehind:!0}],keyword:/^\$(?:INCLUDE|ORIGIN|TTL)(?=\s|$)/m,class:{pattern:/(^|\s)(?:CH|CS|HS|IN)(?=\s|$)/,lookbehind:!0,alias:"keyword"},type:{pattern:/(^|\s)(?:A|A6|AAAA|AFSDB|APL|ATMA|CAA|CDNSKEY|CDS|CERT|CNAME|DHCID|DLV|DNAME|DNSKEY|DS|EID|GID|GPOS|HINFO|HIP|IPSECKEY|ISDN|KEY|KX|LOC|MAILA|MAILB|MB|MD|MF|MG|MINFO|MR|MX|NAPTR|NB|NBSTAT|NIMLOC|NINFO|NS|NSAP|NSAP-PTR|NSEC|NSEC3|NSEC3PARAM|NULL|NXT|OPENPGPKEY|PTR|PX|RKEY|RP|RRSIG|RT|SIG|SINK|SMIMEA|SOA|SPF|SRV|SSHFP|TA|TKEY|TLSA|TSIG|TXT|UID|UINFO|UNSPEC|URI|WKS|X25)(?=\s|$)/,lookbehind:!0,alias:"keyword"},punctuation:/[()]/},t.languages["dns-zone"]=t.languages["dns-zone-file"]}return sM}var lM,U9;function F4e(){if(U9)return lM;U9=1,lM=e,e.displayName="docker",e.aliases=["dockerfile"];function e(t){(function(n){var r=/\\[\r\n](?:\s|\\[\r\n]|#.*(?!.))*(?![\s#]|\\[\r\n])/.source,a=/(?:[ \t]+(?![ \t])(?:)?|)/.source.replace(//g,function(){return r}),i=/"(?:[^"\\\r\n]|\\(?:\r\n|[\s\S]))*"|'(?:[^'\\\r\n]|\\(?:\r\n|[\s\S]))*'/.source,o=/--[\w-]+=(?:|(?!["'])(?:[^\s\\]|\\.)+)/.source.replace(//g,function(){return i}),l={pattern:RegExp(i),greedy:!0},u={pattern:/(^[ \t]*)#.*/m,lookbehind:!0,greedy:!0};function d(f,g){return f=f.replace(//g,function(){return o}).replace(//g,function(){return a}),RegExp(f,g)}n.languages.docker={instruction:{pattern:/(^[ \t]*)(?:ADD|ARG|CMD|COPY|ENTRYPOINT|ENV|EXPOSE|FROM|HEALTHCHECK|LABEL|MAINTAINER|ONBUILD|RUN|SHELL|STOPSIGNAL|USER|VOLUME|WORKDIR)(?=\s)(?:\\.|[^\r\n\\])*(?:\\$(?:\s|#.*$)*(?![\s#])(?:\\.|[^\r\n\\])*)*/im,lookbehind:!0,greedy:!0,inside:{options:{pattern:d(/(^(?:ONBUILD)?\w+)(?:)*/.source,"i"),lookbehind:!0,greedy:!0,inside:{property:{pattern:/(^|\s)--[\w-]+/,lookbehind:!0},string:[l,{pattern:/(=)(?!["'])(?:[^\s\\]|\\.)+/,lookbehind:!0}],operator:/\\$/m,punctuation:/=/}},keyword:[{pattern:d(/(^(?:ONBUILD)?HEALTHCHECK(?:)*)(?:CMD|NONE)\b/.source,"i"),lookbehind:!0,greedy:!0},{pattern:d(/(^(?:ONBUILD)?FROM(?:)*(?!--)[^ \t\\]+)AS/.source,"i"),lookbehind:!0,greedy:!0},{pattern:d(/(^ONBUILD)\w+/.source,"i"),lookbehind:!0,greedy:!0},{pattern:/^\w+/,greedy:!0}],comment:u,string:l,variable:/\$(?:\w+|\{[^{}"'\\]*\})/,operator:/\\$/m}},comment:u},n.languages.dockerfile=n.languages.docker})(t)}return lM}var uM,B9;function j4e(){if(B9)return uM;B9=1,uM=e,e.displayName="dot",e.aliases=["gv"];function e(t){(function(n){var r="(?:"+[/[a-zA-Z_\x80-\uFFFF][\w\x80-\uFFFF]*/.source,/-?(?:\.\d+|\d+(?:\.\d*)?)/.source,/"[^"\\]*(?:\\[\s\S][^"\\]*)*"/.source,/<(?:[^<>]|(?!)*>/.source].join("|")+")",a={markup:{pattern:/(^<)[\s\S]+(?=>$)/,lookbehind:!0,alias:["language-markup","language-html","language-xml"],inside:n.languages.markup}};function i(o,l){return RegExp(o.replace(//g,function(){return r}),l)}n.languages.dot={comment:{pattern:/\/\/.*|\/\*[\s\S]*?\*\/|^#.*/m,greedy:!0},"graph-name":{pattern:i(/(\b(?:digraph|graph|subgraph)[ \t\r\n]+)/.source,"i"),lookbehind:!0,greedy:!0,alias:"class-name",inside:a},"attr-value":{pattern:i(/(=[ \t\r\n]*)/.source),lookbehind:!0,greedy:!0,inside:a},"attr-name":{pattern:i(/([\[;, \t\r\n])(?=[ \t\r\n]*=)/.source),lookbehind:!0,greedy:!0,inside:a},keyword:/\b(?:digraph|edge|graph|node|strict|subgraph)\b/i,"compass-point":{pattern:/(:[ \t\r\n]*)(?:[ewc_]|[ns][ew]?)(?![\w\x80-\uFFFF])/,lookbehind:!0,alias:"builtin"},node:{pattern:i(/(^|[^-.\w\x80-\uFFFF\\])/.source),lookbehind:!0,greedy:!0,inside:a},operator:/[=:]|-[->]/,punctuation:/[\[\]{};,]/},n.languages.gv=n.languages.dot})(t)}return uM}var cM,W9;function U4e(){if(W9)return cM;W9=1,cM=e,e.displayName="ebnf",e.aliases=[];function e(t){t.languages.ebnf={comment:/\(\*[\s\S]*?\*\)/,string:{pattern:/"[^"\r\n]*"|'[^'\r\n]*'/,greedy:!0},special:{pattern:/\?[^?\r\n]*\?/,greedy:!0,alias:"class-name"},definition:{pattern:/^([\t ]*)[a-z]\w*(?:[ \t]+[a-z]\w*)*(?=\s*=)/im,lookbehind:!0,alias:["rule","keyword"]},rule:/\b[a-z]\w*(?:[ \t]+[a-z]\w*)*\b/i,punctuation:/\([:/]|[:/]\)|[.,;()[\]{}]/,operator:/[-=|*/!]/}}return cM}var dM,z9;function B4e(){if(z9)return dM;z9=1,dM=e,e.displayName="editorconfig",e.aliases=[];function e(t){t.languages.editorconfig={comment:/[;#].*/,section:{pattern:/(^[ \t]*)\[.+\]/m,lookbehind:!0,alias:"selector",inside:{regex:/\\\\[\[\]{},!?.*]/,operator:/[!?]|\.\.|\*{1,2}/,punctuation:/[\[\]{},]/}},key:{pattern:/(^[ \t]*)[^\s=]+(?=[ \t]*=)/m,lookbehind:!0,alias:"attr-name"},value:{pattern:/=.*/,alias:"attr-value",inside:{punctuation:/^=/}}}}return dM}var fM,q9;function W4e(){if(q9)return fM;q9=1,fM=e,e.displayName="eiffel",e.aliases=[];function e(t){t.languages.eiffel={comment:/--.*/,string:[{pattern:/"([^[]*)\[[\s\S]*?\]\1"/,greedy:!0},{pattern:/"([^{]*)\{[\s\S]*?\}\1"/,greedy:!0},{pattern:/"(?:%(?:(?!\n)\s)*\n\s*%|%\S|[^%"\r\n])*"/,greedy:!0}],char:/'(?:%.|[^%'\r\n])+'/,keyword:/\b(?:across|agent|alias|all|and|as|assign|attached|attribute|check|class|convert|create|Current|debug|deferred|detachable|do|else|elseif|end|ensure|expanded|export|external|feature|from|frozen|if|implies|inherit|inspect|invariant|like|local|loop|not|note|obsolete|old|once|or|Precursor|redefine|rename|require|rescue|Result|retry|select|separate|some|then|undefine|until|variant|Void|when|xor)\b/i,boolean:/\b(?:False|True)\b/i,"class-name":/\b[A-Z][\dA-Z_]*\b/,number:[/\b0[xcb][\da-f](?:_*[\da-f])*\b/i,/(?:\b\d(?:_*\d)*)?\.(?:(?:\d(?:_*\d)*)?e[+-]?)?\d(?:_*\d)*\b|\b\d(?:_*\d)*\b\.?/i],punctuation:/:=|<<|>>|\(\||\|\)|->|\.(?=\w)|[{}[\];(),:?]/,operator:/\\\\|\|\.\.\||\.\.|\/[~\/=]?|[><]=?|[-+*^=~]/}}return fM}var pM,H9;function z4e(){if(H9)return pM;H9=1;var e=gs();pM=t,t.displayName="ejs",t.aliases=["eta"];function t(n){n.register(e),(function(r){r.languages.ejs={delimiter:{pattern:/^<%[-_=]?|[-_]?%>$/,alias:"punctuation"},comment:/^#[\s\S]*/,"language-javascript":{pattern:/[\s\S]+/,inside:r.languages.javascript}},r.hooks.add("before-tokenize",function(a){var i=/<%(?!%)[\s\S]+?%>/g;r.languages["markup-templating"].buildPlaceholders(a,"ejs",i)}),r.hooks.add("after-tokenize",function(a){r.languages["markup-templating"].tokenizePlaceholders(a,"ejs")}),r.languages.eta=r.languages.ejs})(n)}return pM}var hM,V9;function q4e(){if(V9)return hM;V9=1,hM=e,e.displayName="elixir",e.aliases=[];function e(t){t.languages.elixir={doc:{pattern:/@(?:doc|moduledoc)\s+(?:("""|''')[\s\S]*?\1|("|')(?:\\(?:\r\n|[\s\S])|(?!\2)[^\\\r\n])*\2)/,inside:{attribute:/^@\w+/,string:/['"][\s\S]+/}},comment:{pattern:/#.*/,greedy:!0},regex:{pattern:/~[rR](?:("""|''')(?:\\[\s\S]|(?!\1)[^\\])+\1|([\/|"'])(?:\\.|(?!\2)[^\\\r\n])+\2|\((?:\\.|[^\\)\r\n])+\)|\[(?:\\.|[^\\\]\r\n])+\]|\{(?:\\.|[^\\}\r\n])+\}|<(?:\\.|[^\\>\r\n])+>)[uismxfr]*/,greedy:!0},string:[{pattern:/~[cCsSwW](?:("""|''')(?:\\[\s\S]|(?!\1)[^\\])+\1|([\/|"'])(?:\\.|(?!\2)[^\\\r\n])+\2|\((?:\\.|[^\\)\r\n])+\)|\[(?:\\.|[^\\\]\r\n])+\]|\{(?:\\.|#\{[^}]+\}|#(?!\{)|[^#\\}\r\n])+\}|<(?:\\.|[^\\>\r\n])+>)[csa]?/,greedy:!0,inside:{}},{pattern:/("""|''')[\s\S]*?\1/,greedy:!0,inside:{}},{pattern:/("|')(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,greedy:!0,inside:{}}],atom:{pattern:/(^|[^:]):\w+/,lookbehind:!0,alias:"symbol"},module:{pattern:/\b[A-Z]\w*\b/,alias:"class-name"},"attr-name":/\b\w+\??:(?!:)/,argument:{pattern:/(^|[^&])&\d+/,lookbehind:!0,alias:"variable"},attribute:{pattern:/@\w+/,alias:"variable"},function:/\b[_a-zA-Z]\w*[?!]?(?:(?=\s*(?:\.\s*)?\()|(?=\/\d))/,number:/\b(?:0[box][a-f\d_]+|\d[\d_]*)(?:\.[\d_]+)?(?:e[+-]?[\d_]+)?\b/i,keyword:/\b(?:after|alias|and|case|catch|cond|def(?:callback|delegate|exception|impl|macro|module|n|np|p|protocol|struct)?|do|else|end|fn|for|if|import|not|or|quote|raise|require|rescue|try|unless|unquote|use|when)\b/,boolean:/\b(?:false|nil|true)\b/,operator:[/\bin\b|&&?|\|[|>]?|\\\\|::|\.\.\.?|\+\+?|-[->]?|<[-=>]|>=|!==?|\B!|=(?:==?|[>~])?|[*\/^]/,{pattern:/([^<])<(?!<)/,lookbehind:!0},{pattern:/([^>])>(?!>)/,lookbehind:!0}],punctuation:/<<|>>|[.,%\[\]{}()]/},t.languages.elixir.string.forEach(function(n){n.inside={interpolation:{pattern:/#\{[^}]+\}/,inside:{delimiter:{pattern:/^#\{|\}$/,alias:"punctuation"},rest:t.languages.elixir}}}})}return hM}var mM,G9;function H4e(){if(G9)return mM;G9=1,mM=e,e.displayName="elm",e.aliases=[];function e(t){t.languages.elm={comment:/--.*|\{-[\s\S]*?-\}/,char:{pattern:/'(?:[^\\'\r\n]|\\(?:[abfnrtv\\']|\d+|x[0-9a-fA-F]+|u\{[0-9a-fA-F]+\}))'/,greedy:!0},string:[{pattern:/"""[\s\S]*?"""/,greedy:!0},{pattern:/"(?:[^\\"\r\n]|\\.)*"/,greedy:!0}],"import-statement":{pattern:/(^[\t ]*)import\s+[A-Z]\w*(?:\.[A-Z]\w*)*(?:\s+as\s+(?:[A-Z]\w*)(?:\.[A-Z]\w*)*)?(?:\s+exposing\s+)?/m,lookbehind:!0,inside:{keyword:/\b(?:as|exposing|import)\b/}},keyword:/\b(?:alias|as|case|else|exposing|if|in|infixl|infixr|let|module|of|then|type)\b/,builtin:/\b(?:abs|acos|always|asin|atan|atan2|ceiling|clamp|compare|cos|curry|degrees|e|flip|floor|fromPolar|identity|isInfinite|isNaN|logBase|max|min|negate|never|not|pi|radians|rem|round|sin|sqrt|tan|toFloat|toPolar|toString|truncate|turns|uncurry|xor)\b/,number:/\b(?:\d+(?:\.\d+)?(?:e[+-]?\d+)?|0x[0-9a-f]+)\b/i,operator:/\s\.\s|[+\-/*=.$<>:&|^?%#@~!]{2,}|[+\-/*=$<>:&|^?%#@~!]/,hvariable:/\b(?:[A-Z]\w*\.)*[a-z]\w*\b/,constant:/\b(?:[A-Z]\w*\.)*[A-Z]\w*\b/,punctuation:/[{}[\]|(),.:]/}}return mM}var gM,Y9;function V4e(){if(Y9)return gM;Y9=1;var e=pO(),t=gs();gM=n,n.displayName="erb",n.aliases=[];function n(r){r.register(e),r.register(t),(function(a){a.languages.erb={delimiter:{pattern:/^(\s*)<%=?|%>(?=\s*$)/,lookbehind:!0,alias:"punctuation"},ruby:{pattern:/\s*\S[\s\S]*/,alias:"language-ruby",inside:a.languages.ruby}},a.hooks.add("before-tokenize",function(i){var o=/<%=?(?:[^\r\n]|[\r\n](?!=begin)|[\r\n]=begin\s(?:[^\r\n]|[\r\n](?!=end))*[\r\n]=end)+?%>/g;a.languages["markup-templating"].buildPlaceholders(i,"erb",o)}),a.hooks.add("after-tokenize",function(i){a.languages["markup-templating"].tokenizePlaceholders(i,"erb")})})(r)}return gM}var vM,K9;function G4e(){if(K9)return vM;K9=1,vM=e,e.displayName="erlang",e.aliases=[];function e(t){t.languages.erlang={comment:/%.+/,string:{pattern:/"(?:\\.|[^\\"\r\n])*"/,greedy:!0},"quoted-function":{pattern:/'(?:\\.|[^\\'\r\n])+'(?=\()/,alias:"function"},"quoted-atom":{pattern:/'(?:\\.|[^\\'\r\n])+'/,alias:"atom"},boolean:/\b(?:false|true)\b/,keyword:/\b(?:after|case|catch|end|fun|if|of|receive|try|when)\b/,number:[/\$\\?./,/\b\d+#[a-z0-9]+/i,/(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?/i],function:/\b[a-z][\w@]*(?=\()/,variable:{pattern:/(^|[^@])(?:\b|\?)[A-Z_][\w@]*/,lookbehind:!0},operator:[/[=\/<>:]=|=[:\/]=|\+\+?|--?|[=*\/!]|\b(?:and|andalso|band|bnot|bor|bsl|bsr|bxor|div|not|or|orelse|rem|xor)\b/,{pattern:/(^|[^<])<(?!<)/,lookbehind:!0},{pattern:/(^|[^>])>(?!>)/,lookbehind:!0}],atom:/\b[a-z][\w@]*/,punctuation:/[()[\]{}:;,.#|]|<<|>>/}}return vM}var yM,X9;function Vre(){if(X9)return yM;X9=1,yM=e,e.displayName="lua",e.aliases=[];function e(t){t.languages.lua={comment:/^#!.+|--(?:\[(=*)\[[\s\S]*?\]\1\]|.*)/m,string:{pattern:/(["'])(?:(?!\1)[^\\\r\n]|\\z(?:\r\n|\s)|\\(?:\r\n|[^z]))*\1|\[(=*)\[[\s\S]*?\]\2\]/,greedy:!0},number:/\b0x[a-f\d]+(?:\.[a-f\d]*)?(?:p[+-]?\d+)?\b|\b\d+(?:\.\B|(?:\.\d*)?(?:e[+-]?\d+)?\b)|\B\.\d+(?:e[+-]?\d+)?\b/i,keyword:/\b(?:and|break|do|else|elseif|end|false|for|function|goto|if|in|local|nil|not|or|repeat|return|then|true|until|while)\b/,function:/(?!\d)\w+(?=\s*(?:[({]))/,operator:[/[-+*%^&|#]|\/\/?|<[<=]?|>[>=]?|[=~]=?/,{pattern:/(^|[^.])\.\.(?!\.)/,lookbehind:!0}],punctuation:/[\[\](){},;]|\.+|:+/}}return yM}var bM,Q9;function Y4e(){if(Q9)return bM;Q9=1;var e=Vre(),t=gs();bM=n,n.displayName="etlua",n.aliases=[];function n(r){r.register(e),r.register(t),(function(a){a.languages.etlua={delimiter:{pattern:/^<%[-=]?|-?%>$/,alias:"punctuation"},"language-lua":{pattern:/[\s\S]+/,inside:a.languages.lua}},a.hooks.add("before-tokenize",function(i){var o=/<%[\s\S]+?%>/g;a.languages["markup-templating"].buildPlaceholders(i,"etlua",o)}),a.hooks.add("after-tokenize",function(i){a.languages["markup-templating"].tokenizePlaceholders(i,"etlua")})})(r)}return bM}var wM,J9;function K4e(){if(J9)return wM;J9=1,wM=e,e.displayName="excelFormula",e.aliases=[];function e(t){t.languages["excel-formula"]={comment:{pattern:/(\bN\(\s*)"(?:[^"]|"")*"(?=\s*\))/i,lookbehind:!0,greedy:!0},string:{pattern:/"(?:[^"]|"")*"(?!")/,greedy:!0},reference:{pattern:/(?:'[^']*'|(?:[^\s()[\]{}<>*?"';,$&]*\[[^^\s()[\]{}<>*?"']+\])?\w+)!/,greedy:!0,alias:"string",inside:{operator:/!$/,punctuation:/'/,sheet:{pattern:/[^[\]]+$/,alias:"function"},file:{pattern:/\[[^[\]]+\]$/,inside:{punctuation:/[[\]]/}},path:/[\s\S]+/}},"function-name":{pattern:/\b[A-Z]\w*(?=\()/i,alias:"keyword"},range:{pattern:/\$?\b(?:[A-Z]+\$?\d+:\$?[A-Z]+\$?\d+|[A-Z]+:\$?[A-Z]+|\d+:\$?\d+)\b/i,alias:"property",inside:{operator:/:/,cell:/\$?[A-Z]+\$?\d+/i,column:/\$?[A-Z]+/i,row:/\$?\d+/}},cell:{pattern:/\b[A-Z]+\d+\b|\$[A-Za-z]+\$?\d+\b|\b[A-Za-z]+\$\d+\b/,alias:"property"},number:/(?:\b\d+(?:\.\d+)?|\B\.\d+)(?:e[+-]?\d+)?\b/i,boolean:/\b(?:FALSE|TRUE)\b/i,operator:/[-+*/^%=&,]|<[=>]?|>=?/,punctuation:/[[\]();{}|]/},t.languages.xlsx=t.languages.xls=t.languages["excel-formula"]}return wM}var SM,Z9;function X4e(){if(Z9)return SM;Z9=1,SM=e,e.displayName="factor",e.aliases=[];function e(t){(function(n){var r={function:/\b(?:BUGS?|FIX(?:MES?)?|NOTES?|TODOS?|XX+|HACKS?|WARN(?:ING)?|\?{2,}|!{2,})\b/},a={number:/\\[^\s']|%\w/},i={comment:[{pattern:/(^|\s)(?:! .*|!$)/,lookbehind:!0,inside:r},{pattern:/(^|\s)\/\*\s[\s\S]*?\*\/(?=\s|$)/,lookbehind:!0,greedy:!0,inside:r},{pattern:/(^|\s)!\[(={0,6})\[\s[\s\S]*?\]\2\](?=\s|$)/,lookbehind:!0,greedy:!0,inside:r}],number:[{pattern:/(^|\s)[+-]?\d+(?=\s|$)/,lookbehind:!0},{pattern:/(^|\s)[+-]?0(?:b[01]+|o[0-7]+|d\d+|x[\dA-F]+)(?=\s|$)/i,lookbehind:!0},{pattern:/(^|\s)[+-]?\d+\/\d+\.?(?=\s|$)/,lookbehind:!0},{pattern:/(^|\s)\+?\d+\+\d+\/\d+(?=\s|$)/,lookbehind:!0},{pattern:/(^|\s)-\d+-\d+\/\d+(?=\s|$)/,lookbehind:!0},{pattern:/(^|\s)[+-]?(?:\d*\.\d+|\d+\.\d*|\d+)(?:e[+-]?\d+)?(?=\s|$)/i,lookbehind:!0},{pattern:/(^|\s)NAN:\s+[\da-fA-F]+(?=\s|$)/,lookbehind:!0},{pattern:/(^|\s)[+-]?0(?:b1\.[01]*|o1\.[0-7]*|d1\.\d*|x1\.[\dA-F]*)p\d+(?=\s|$)/i,lookbehind:!0}],regexp:{pattern:/(^|\s)R\/\s(?:\\\S|[^\\/])*\/(?:[idmsr]*|[idmsr]+-[idmsr]+)(?=\s|$)/,lookbehind:!0,alias:"number",inside:{variable:/\\\S/,keyword:/[+?*\[\]^$(){}.|]/,operator:{pattern:/(\/)[idmsr]+(?:-[idmsr]+)?/,lookbehind:!0}}},boolean:{pattern:/(^|\s)[tf](?=\s|$)/,lookbehind:!0},"custom-string":{pattern:/(^|\s)[A-Z0-9\-]+"\s(?:\\\S|[^"\\])*"/,lookbehind:!0,greedy:!0,alias:"string",inside:{number:/\\\S|%\w|\//}},"multiline-string":[{pattern:/(^|\s)STRING:\s+\S+(?:\n|\r\n).*(?:\n|\r\n)\s*;(?=\s|$)/,lookbehind:!0,greedy:!0,alias:"string",inside:{number:a.number,"semicolon-or-setlocal":{pattern:/([\r\n][ \t]*);(?=\s|$)/,lookbehind:!0,alias:"function"}}},{pattern:/(^|\s)HEREDOC:\s+\S+(?:\n|\r\n).*(?:\n|\r\n)\s*\S+(?=\s|$)/,lookbehind:!0,greedy:!0,alias:"string",inside:a},{pattern:/(^|\s)\[(={0,6})\[\s[\s\S]*?\]\2\](?=\s|$)/,lookbehind:!0,greedy:!0,alias:"string",inside:a}],"special-using":{pattern:/(^|\s)USING:(?:\s\S+)*(?=\s+;(?:\s|$))/,lookbehind:!0,alias:"function",inside:{string:{pattern:/(\s)[^:\s]+/,lookbehind:!0}}},"stack-effect-delimiter":[{pattern:/(^|\s)(?:call|eval|execute)?\((?=\s)/,lookbehind:!0,alias:"operator"},{pattern:/(\s)--(?=\s)/,lookbehind:!0,alias:"operator"},{pattern:/(\s)\)(?=\s|$)/,lookbehind:!0,alias:"operator"}],combinators:{pattern:null,lookbehind:!0,alias:"keyword"},"kernel-builtin":{pattern:null,lookbehind:!0,alias:"variable"},"sequences-builtin":{pattern:null,lookbehind:!0,alias:"variable"},"math-builtin":{pattern:null,lookbehind:!0,alias:"variable"},"constructor-word":{pattern:/(^|\s)<(?!=+>|-+>)\S+>(?=\s|$)/,lookbehind:!0,alias:"keyword"},"other-builtin-syntax":{pattern:null,lookbehind:!0,alias:"operator"},"conventionally-named-word":{pattern:/(^|\s)(?!")(?:(?:change|new|set|with)-\S+|\$\S+|>[^>\s]+|[^:>\s]+>|[^>\s]+>[^>\s]+|\+[^+\s]+\+|[^?\s]+\?|\?[^?\s]+|[^>\s]+>>|>>[^>\s]+|[^<\s]+<<|\([^()\s]+\)|[^!\s]+!|[^*\s]\S*\*|[^.\s]\S*\.)(?=\s|$)/,lookbehind:!0,alias:"keyword"},"colon-syntax":{pattern:/(^|\s)(?:[A-Z0-9\-]+#?)?:{1,2}\s+(?:;\S+|(?!;)\S+)(?=\s|$)/,lookbehind:!0,greedy:!0,alias:"function"},"semicolon-or-setlocal":{pattern:/(\s)(?:;|:>)(?=\s|$)/,lookbehind:!0,alias:"function"},"curly-brace-literal-delimiter":[{pattern:/(^|\s)[a-z]*\{(?=\s)/i,lookbehind:!0,alias:"operator"},{pattern:/(\s)\}(?=\s|$)/,lookbehind:!0,alias:"operator"}],"quotation-delimiter":[{pattern:/(^|\s)\[(?=\s)/,lookbehind:!0,alias:"operator"},{pattern:/(\s)\](?=\s|$)/,lookbehind:!0,alias:"operator"}],"normal-word":{pattern:/(^|\s)[^"\s]\S*(?=\s|$)/,lookbehind:!0},string:{pattern:/"(?:\\\S|[^"\\])*"/,greedy:!0,inside:a}},o=function(f){return(f+"").replace(/([.?*+\^$\[\]\\(){}|\-])/g,"\\$1")},l=function(f){return new RegExp("(^|\\s)(?:"+f.map(o).join("|")+")(?=\\s|$)")},u={"kernel-builtin":["or","2nipd","4drop","tuck","wrapper","nip","wrapper?","callstack>array","die","dupd","callstack","callstack?","3dup","hashcode","pick","4nip","build",">boolean","nipd","clone","5nip","eq?","?","=","swapd","2over","clear","2dup","get-retainstack","not","tuple?","dup","3nipd","call","-rotd","object","drop","assert=","assert?","-rot","execute","boa","get-callstack","curried?","3drop","pickd","overd","over","roll","3nip","swap","and","2nip","rotd","throw","(clone)","hashcode*","spin","reach","4dup","equal?","get-datastack","assert","2drop","","boolean?","identity-hashcode","identity-tuple?","null","composed?","new","5drop","rot","-roll","xor","identity-tuple","boolean"],"other-builtin-syntax":["=======","recursive","flushable",">>","<<<<<<","M\\","B","PRIVATE>","\\","======","final","inline","delimiter","deprecated",">>>>>","<<<<<<<","parse-complex","malformed-complex","read-only",">>>>>>>","call-next-method","<<","foldable","$","$[","${"],"sequences-builtin":["member-eq?","mismatch","append","assert-sequence=","longer","repetition","clone-like","3sequence","assert-sequence?","last-index-from","reversed","index-from","cut*","pad-tail","join-as","remove-eq!","concat-as","but-last","snip","nths","nth","sequence","longest","slice?","","remove-nth","tail-slice","empty?","tail*","member?","virtual-sequence?","set-length","drop-prefix","iota","unclip","bounds-error?","unclip-last-slice","non-negative-integer-expected","non-negative-integer-expected?","midpoint@","longer?","?set-nth","?first","rest-slice","prepend-as","prepend","fourth","sift","subseq-start","new-sequence","?last","like","first4","1sequence","reverse","slice","virtual@","repetition?","set-last","index","4sequence","max-length","set-second","immutable-sequence","first2","first3","supremum","unclip-slice","suffix!","insert-nth","tail","3append","short","suffix","concat","flip","immutable?","reverse!","2sequence","sum","delete-all","indices","snip-slice","","check-slice","sequence?","head","append-as","halves","sequence=","collapse-slice","?second","slice-error?","product","bounds-check?","bounds-check","immutable","virtual-exemplar","harvest","remove","pad-head","last","set-fourth","cartesian-product","remove-eq","shorten","shorter","reversed?","shorter?","shortest","head-slice","pop*","tail-slice*","but-last-slice","iota?","append!","cut-slice","new-resizable","head-slice*","sequence-hashcode","pop","set-nth","?nth","second","join","immutable-sequence?","","3append-as","virtual-sequence","subseq?","remove-nth!","length","last-index","lengthen","assert-sequence","copy","move","third","first","tail?","set-first","prefix","bounds-error","","exchange","surround","cut","min-length","set-third","push-all","head?","subseq-start-from","delete-slice","rest","sum-lengths","head*","infimum","remove!","glue","slice-error","subseq","push","replace-slice","subseq-as","unclip-last"],"math-builtin":["number=","next-power-of-2","?1+","fp-special?","imaginary-part","float>bits","number?","fp-infinity?","bignum?","fp-snan?","denominator","gcd","*","+","fp-bitwise=","-","u>=","/",">=","bitand","power-of-2?","log2-expects-positive","neg?","<","log2",">","integer?","number","bits>double","2/","zero?","bits>float","float?","shift","ratio?","rect>","even?","ratio","fp-sign","bitnot",">fixnum","complex?","/i","integer>fixnum","/f","sgn",">bignum","next-float","u<","u>","mod","recip","rational",">float","2^","integer","fixnum?","neg","fixnum","sq","bignum",">rect","bit?","fp-qnan?","simple-gcd","complex","","real",">fraction","double>bits","bitor","rem","fp-nan-payload","real-part","log2-expects-positive?","prev-float","align","unordered?","float","fp-nan?","abs","bitxor","integer>fixnum-strict","u<=","odd?","<=","/mod",">integer","real?","rational?","numerator"]};Object.keys(u).forEach(function(f){i[f].pattern=l(u[f])});var d=["2bi","while","2tri","bi*","4dip","both?","same?","tri@","curry","prepose","3bi","?if","tri*","2keep","3keep","curried","2keepd","when","2bi*","2tri*","4keep","bi@","keepdd","do","unless*","tri-curry","if*","loop","bi-curry*","when*","2bi@","2tri@","with","2with","either?","bi","until","3dip","3curry","tri-curry*","tri-curry@","bi-curry","keepd","compose","2dip","if","3tri","unless","tuple","keep","2curry","tri","most","while*","dip","composed","bi-curry@","find-last-from","trim-head-slice","map-as","each-from","none?","trim-tail","partition","if-empty","accumulate*","reject!","find-from","accumulate-as","collector-for-as","reject","map","map-sum","accumulate!","2each-from","follow","supremum-by","map!","unless-empty","collector","padding","reduce-index","replicate-as","infimum-by","trim-tail-slice","count","find-index","filter","accumulate*!","reject-as","map-integers","map-find","reduce","selector","interleave","2map","filter-as","binary-reduce","map-index-as","find","produce","filter!","replicate","cartesian-map","cartesian-each","find-index-from","map-find-last","3map-as","3map","find-last","selector-as","2map-as","2map-reduce","accumulate","each","each-index","accumulate*-as","when-empty","all?","collector-as","push-either","new-like","collector-for","2selector","push-if","2all?","map-reduce","3each","any?","trim-slice","2reduce","change-nth","produce-as","2each","trim","trim-head","cartesian-find","map-index","if-zero","each-integer","unless-zero","(find-integer)","when-zero","find-last-integer","(all-integers?)","times","(each-integer)","find-integer","all-integers?","unless-negative","if-positive","when-positive","when-negative","unless-positive","if-negative","case","2cleave","cond>quot","case>quot","3cleave","wrong-values","to-fixed-point","alist>quot","cond","cleave","call-effect","recursive-hashcode","spread","deep-spread>quot","2||","0||","n||","0&&","2&&","3||","1||","1&&","n&&","3&&","smart-unless*","keep-inputs","reduce-outputs","smart-when*","cleave>array","smart-with","smart-apply","smart-if","inputs/outputs","output>sequence-n","map-outputs","map-reduce-outputs","dropping","output>array","smart-map-reduce","smart-2map-reduce","output>array-n","nullary","inputsequence"];i.combinators.pattern=l(d),n.languages.factor=i})(t)}return SM}var EM,eH;function Q4e(){if(eH)return EM;eH=1,EM=e,e.displayName="$false",e.aliases=[];function e(t){(function(n){n.languages.false={comment:{pattern:/\{[^}]*\}/},string:{pattern:/"[^"]*"/,greedy:!0},"character-code":{pattern:/'(?:[^\r]|\r\n?)/,alias:"number"},"assembler-code":{pattern:/\d+`/,alias:"important"},number:/\d+/,operator:/[-!#$%&'*+,./:;=>?@\\^_`|~ßø]/,punctuation:/\[|\]/,variable:/[a-z]/,"non-standard":{pattern:/[()!=]=?|[-+*/%]|\b(?:in|is)\b/}),delete t.languages["firestore-security-rules"]["class-name"],t.languages.insertBefore("firestore-security-rules","keyword",{path:{pattern:/(^|[\s(),])(?:\/(?:[\w\xA0-\uFFFF]+|\{[\w\xA0-\uFFFF]+(?:=\*\*)?\}|\$\([\w\xA0-\uFFFF.]+\)))+/,lookbehind:!0,greedy:!0,inside:{variable:{pattern:/\{[\w\xA0-\uFFFF]+(?:=\*\*)?\}|\$\([\w\xA0-\uFFFF.]+\)/,inside:{operator:/=/,keyword:/\*\*/,punctuation:/[.$(){}]/}},punctuation:/\//}},method:{pattern:/(\ballow\s+)[a-z]+(?:\s*,\s*[a-z]+)*(?=\s*[:;])/,lookbehind:!0,alias:"builtin",inside:{punctuation:/,/}}})}return TM}var CM,nH;function Z4e(){if(nH)return CM;nH=1,CM=e,e.displayName="flow",e.aliases=[];function e(t){(function(n){n.languages.flow=n.languages.extend("javascript",{}),n.languages.insertBefore("flow","keyword",{type:[{pattern:/\b(?:[Bb]oolean|Function|[Nn]umber|[Ss]tring|any|mixed|null|void)\b/,alias:"tag"}]}),n.languages.flow["function-variable"].pattern=/(?!\s)[_$a-z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*=\s*(?:function\b|(?:\([^()]*\)(?:\s*:\s*\w+)?|(?!\s)[_$a-z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)\s*=>))/i,delete n.languages.flow.parameter,n.languages.insertBefore("flow","operator",{"flow-punctuation":{pattern:/\{\||\|\}/,alias:"punctuation"}}),Array.isArray(n.languages.flow.keyword)||(n.languages.flow.keyword=[n.languages.flow.keyword]),n.languages.flow.keyword.unshift({pattern:/(^|[^$]\b)(?:Class|declare|opaque|type)\b(?!\$)/,lookbehind:!0},{pattern:/(^|[^$]\B)\$(?:Diff|Enum|Exact|Keys|ObjMap|PropertyType|Record|Shape|Subtype|Supertype|await)\b(?!\$)/,lookbehind:!0})})(t)}return CM}var kM,rH;function eUe(){if(rH)return kM;rH=1,kM=e,e.displayName="fortran",e.aliases=[];function e(t){t.languages.fortran={"quoted-number":{pattern:/[BOZ](['"])[A-F0-9]+\1/i,alias:"number"},string:{pattern:/(?:\b\w+_)?(['"])(?:\1\1|&(?:\r\n?|\n)(?:[ \t]*!.*(?:\r\n?|\n)|(?![ \t]*!))|(?!\1).)*(?:\1|&)/,inside:{comment:{pattern:/(&(?:\r\n?|\n)\s*)!.*/,lookbehind:!0}}},comment:{pattern:/!.*/,greedy:!0},boolean:/\.(?:FALSE|TRUE)\.(?:_\w+)?/i,number:/(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[ED][+-]?\d+)?(?:_\w+)?/i,keyword:[/\b(?:CHARACTER|COMPLEX|DOUBLE ?PRECISION|INTEGER|LOGICAL|REAL)\b/i,/\b(?:END ?)?(?:BLOCK ?DATA|DO|FILE|FORALL|FUNCTION|IF|INTERFACE|MODULE(?! PROCEDURE)|PROGRAM|SELECT|SUBROUTINE|TYPE|WHERE)\b/i,/\b(?:ALLOCATABLE|ALLOCATE|BACKSPACE|CALL|CASE|CLOSE|COMMON|CONTAINS|CONTINUE|CYCLE|DATA|DEALLOCATE|DIMENSION|DO|END|EQUIVALENCE|EXIT|EXTERNAL|FORMAT|GO ?TO|IMPLICIT(?: NONE)?|INQUIRE|INTENT|INTRINSIC|MODULE PROCEDURE|NAMELIST|NULLIFY|OPEN|OPTIONAL|PARAMETER|POINTER|PRINT|PRIVATE|PUBLIC|READ|RETURN|REWIND|SAVE|SELECT|STOP|TARGET|WHILE|WRITE)\b/i,/\b(?:ASSIGNMENT|DEFAULT|ELEMENTAL|ELSE|ELSEIF|ELSEWHERE|ENTRY|IN|INCLUDE|INOUT|KIND|NULL|ONLY|OPERATOR|OUT|PURE|RECURSIVE|RESULT|SEQUENCE|STAT|THEN|USE)\b/i],operator:[/\*\*|\/\/|=>|[=\/]=|[<>]=?|::|[+\-*=%]|\.[A-Z]+\./i,{pattern:/(^|(?!\().)\/(?!\))/,lookbehind:!0}],punctuation:/\(\/|\/\)|[(),;:&]/}}return kM}var xM,aH;function tUe(){if(aH)return xM;aH=1,xM=e,e.displayName="fsharp",e.aliases=[];function e(t){t.languages.fsharp=t.languages.extend("clike",{comment:[{pattern:/(^|[^\\])\(\*(?!\))[\s\S]*?\*\)/,lookbehind:!0,greedy:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],string:{pattern:/(?:"""[\s\S]*?"""|@"(?:""|[^"])*"|"(?:\\[\s\S]|[^\\"])*")B?/,greedy:!0},"class-name":{pattern:/(\b(?:exception|inherit|interface|new|of|type)\s+|\w\s*:\s*|\s:\??>\s*)[.\w]+\b(?:\s*(?:->|\*)\s*[.\w]+\b)*(?!\s*[:.])/,lookbehind:!0,inside:{operator:/->|\*/,punctuation:/\./}},keyword:/\b(?:let|return|use|yield)(?:!\B|\b)|\b(?:abstract|and|as|asr|assert|atomic|base|begin|break|checked|class|component|const|constraint|constructor|continue|default|delegate|do|done|downcast|downto|eager|elif|else|end|event|exception|extern|external|false|finally|fixed|for|fun|function|functor|global|if|in|include|inherit|inline|interface|internal|land|lazy|lor|lsl|lsr|lxor|match|member|method|mixin|mod|module|mutable|namespace|new|not|null|object|of|open|or|override|parallel|private|process|protected|public|pure|rec|sealed|select|sig|static|struct|tailcall|then|to|trait|true|try|type|upcast|val|virtual|void|volatile|when|while|with)\b/,number:[/\b0x[\da-fA-F]+(?:LF|lf|un)?\b/,/\b0b[01]+(?:uy|y)?\b/,/(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[fm]|e[+-]?\d+)?\b/i,/\b\d+(?:[IlLsy]|UL|u[lsy]?)?\b/],operator:/([<>~&^])\1\1|([*.:<>&])\2|<-|->|[!=:]=|?|\??(?:<=|>=|<>|[-+*/%=<>])\??|[!?^&]|~[+~-]|:>|:\?>?/}),t.languages.insertBefore("fsharp","keyword",{preprocessor:{pattern:/(^[\t ]*)#.*/m,lookbehind:!0,alias:"property",inside:{directive:{pattern:/(^#)\b(?:else|endif|if|light|line|nowarn)\b/,lookbehind:!0,alias:"keyword"}}}}),t.languages.insertBefore("fsharp","punctuation",{"computation-expression":{pattern:/\b[_a-z]\w*(?=\s*\{)/i,alias:"keyword"}}),t.languages.insertBefore("fsharp","string",{annotation:{pattern:/\[<.+?>\]/,greedy:!0,inside:{punctuation:/^\[<|>\]$/,"class-name":{pattern:/^\w+$|(^|;\s*)[A-Z]\w*(?=\()/,lookbehind:!0},"annotation-content":{pattern:/[\s\S]+/,inside:t.languages.fsharp}}},char:{pattern:/'(?:[^\\']|\\(?:.|\d{3}|x[a-fA-F\d]{2}|u[a-fA-F\d]{4}|U[a-fA-F\d]{8}))'B?/,greedy:!0}})}return xM}var _M,iH;function nUe(){if(iH)return _M;iH=1;var e=gs();_M=t,t.displayName="ftl",t.aliases=[];function t(n){n.register(e),(function(r){for(var a=/[^<()"']|\((?:)*\)|<(?!#--)|<#--(?:[^-]|-(?!->))*-->|"(?:[^\\"]|\\.)*"|'(?:[^\\']|\\.)*'/.source,i=0;i<2;i++)a=a.replace(//g,function(){return a});a=a.replace(//g,/[^\s\S]/.source);var o={comment:/<#--[\s\S]*?-->/,string:[{pattern:/\br("|')(?:(?!\1)[^\\]|\\.)*\1/,greedy:!0},{pattern:RegExp(/("|')(?:(?!\1|\$\{)[^\\]|\\.|\$\{(?:(?!\})(?:))*\})*\1/.source.replace(//g,function(){return a})),greedy:!0,inside:{interpolation:{pattern:RegExp(/((?:^|[^\\])(?:\\\\)*)\$\{(?:(?!\})(?:))*\}/.source.replace(//g,function(){return a})),lookbehind:!0,inside:{"interpolation-punctuation":{pattern:/^\$\{|\}$/,alias:"punctuation"},rest:null}}}}],keyword:/\b(?:as)\b/,boolean:/\b(?:false|true)\b/,"builtin-function":{pattern:/((?:^|[^?])\?\s*)\w+/,lookbehind:!0,alias:"function"},function:/\b\w+(?=\s*\()/,number:/\b\d+(?:\.\d+)?\b/,operator:/\.\.[<*!]?|->|--|\+\+|&&|\|\||\?{1,2}|[-+*/%!=<>]=?|\b(?:gt|gte|lt|lte)\b/,punctuation:/[,;.:()[\]{}]/};o.string[1].inside.interpolation.inside.rest=o,r.languages.ftl={"ftl-comment":{pattern:/^<#--[\s\S]*/,alias:"comment"},"ftl-directive":{pattern:/^<[\s\S]+>$/,inside:{directive:{pattern:/(^<\/?)[#@][a-z]\w*/i,lookbehind:!0,alias:"keyword"},punctuation:/^<\/?|\/?>$/,content:{pattern:/\s*\S[\s\S]*/,alias:"ftl",inside:o}}},"ftl-interpolation":{pattern:/^\$\{[\s\S]*\}$/,inside:{punctuation:/^\$\{|\}$/,content:{pattern:/\s*\S[\s\S]*/,alias:"ftl",inside:o}}}},r.hooks.add("before-tokenize",function(l){var u=RegExp(/<#--[\s\S]*?-->|<\/?[#@][a-zA-Z](?:)*?>|\$\{(?:)*?\}/.source.replace(//g,function(){return a}),"gi");r.languages["markup-templating"].buildPlaceholders(l,"ftl",u)}),r.hooks.add("after-tokenize",function(l){r.languages["markup-templating"].tokenizePlaceholders(l,"ftl")})})(n)}return _M}var OM,oH;function rUe(){if(oH)return OM;oH=1,OM=e,e.displayName="gap",e.aliases=[];function e(t){t.languages.gap={shell:{pattern:/^gap>[\s\S]*?(?=^gap>|$(?![\s\S]))/m,greedy:!0,inside:{gap:{pattern:/^(gap>).+(?:(?:\r(?:\n|(?!\n))|\n)>.*)*/,lookbehind:!0,inside:null},punctuation:/^gap>/}},comment:{pattern:/#.*/,greedy:!0},string:{pattern:/(^|[^\\'"])(?:'(?:[^\r\n\\']|\\.){1,10}'|"(?:[^\r\n\\"]|\\.)*"(?!")|"""[\s\S]*?""")/,lookbehind:!0,greedy:!0,inside:{continuation:{pattern:/([\r\n])>/,lookbehind:!0,alias:"punctuation"}}},keyword:/\b(?:Assert|Info|IsBound|QUIT|TryNextMethod|Unbind|and|atomic|break|continue|do|elif|else|end|fi|for|function|if|in|local|mod|not|od|or|quit|readonly|readwrite|rec|repeat|return|then|until|while)\b/,boolean:/\b(?:false|true)\b/,function:/\b[a-z_]\w*(?=\s*\()/i,number:{pattern:/(^|[^\w.]|\.\.)(?:\d+(?:\.\d*)?|\.\d+)(?:[eE][+-]?\d+)?(?:_[a-z]?)?(?=$|[^\w.]|\.\.)/,lookbehind:!0},continuation:{pattern:/([\r\n])>/,lookbehind:!0,alias:"punctuation"},operator:/->|[-+*/^~=!]|<>|[<>]=?|:=|\.\./,punctuation:/[()[\]{},;.:]/},t.languages.gap.shell.inside.gap.inside=t.languages.gap}return OM}var RM,sH;function aUe(){if(sH)return RM;sH=1,RM=e,e.displayName="gcode",e.aliases=[];function e(t){t.languages.gcode={comment:/;.*|\B\(.*?\)\B/,string:{pattern:/"(?:""|[^"])*"/,greedy:!0},keyword:/\b[GM]\d+(?:\.\d+)?\b/,property:/\b[A-Z]/,checksum:{pattern:/(\*)\d+/,lookbehind:!0,alias:"number"},punctuation:/[:*]/}}return RM}var PM,lH;function iUe(){if(lH)return PM;lH=1,PM=e,e.displayName="gdscript",e.aliases=[];function e(t){t.languages.gdscript={comment:/#.*/,string:{pattern:/@?(?:("|')(?:(?!\1)[^\n\\]|\\[\s\S])*\1(?!"|')|"""(?:[^\\]|\\[\s\S])*?""")/,greedy:!0},"class-name":{pattern:/(^(?:class|class_name|extends)[ \t]+|^export\([ \t]*|\bas[ \t]+|(?:\b(?:const|var)[ \t]|[,(])[ \t]*\w+[ \t]*:[ \t]*|->[ \t]*)[a-zA-Z_]\w*/m,lookbehind:!0},keyword:/\b(?:and|as|assert|break|breakpoint|class|class_name|const|continue|elif|else|enum|export|extends|for|func|if|in|is|master|mastersync|match|not|null|onready|or|pass|preload|puppet|puppetsync|remote|remotesync|return|self|setget|signal|static|tool|var|while|yield)\b/,function:/\b[a-z_]\w*(?=[ \t]*\()/i,variable:/\$\w+/,number:[/\b0b[01_]+\b|\b0x[\da-fA-F_]+\b|(?:\b\d[\d_]*(?:\.[\d_]*)?|\B\.[\d_]+)(?:e[+-]?[\d_]+)?\b/,/\b(?:INF|NAN|PI|TAU)\b/],constant:/\b[A-Z][A-Z_\d]*\b/,boolean:/\b(?:false|true)\b/,operator:/->|:=|&&|\|\||<<|>>|[-+*/%&|!<>=]=?|[~^]/,punctuation:/[.:,;()[\]{}]/}}return PM}var AM,uH;function oUe(){if(uH)return AM;uH=1,AM=e,e.displayName="gedcom",e.aliases=[];function e(t){t.languages.gedcom={"line-value":{pattern:/(^[\t ]*\d+ +(?:@\w[\w!"$%&'()*+,\-./:;<=>?[\\\]^`{|}~\x80-\xfe #]*@ +)?\w+ ).+/m,lookbehind:!0,inside:{pointer:{pattern:/^@\w[\w!"$%&'()*+,\-./:;<=>?[\\\]^`{|}~\x80-\xfe #]*@$/,alias:"variable"}}},tag:{pattern:/(^[\t ]*\d+ +(?:@\w[\w!"$%&'()*+,\-./:;<=>?[\\\]^`{|}~\x80-\xfe #]*@ +)?)\w+/m,lookbehind:!0,alias:"string"},level:{pattern:/(^[\t ]*)\d+/m,lookbehind:!0,alias:"number"},pointer:{pattern:/@\w[\w!"$%&'()*+,\-./:;<=>?[\\\]^`{|}~\x80-\xfe #]*@/,alias:"variable"}}}return AM}var NM,cH;function sUe(){if(cH)return NM;cH=1,NM=e,e.displayName="gherkin",e.aliases=[];function e(t){(function(n){var r=/(?:\r?\n|\r)[ \t]*\|.+\|(?:(?!\|).)*/.source;n.languages.gherkin={pystring:{pattern:/("""|''')[\s\S]+?\1/,alias:"string"},comment:{pattern:/(^[ \t]*)#.*/m,lookbehind:!0},tag:{pattern:/(^[ \t]*)@\S*/m,lookbehind:!0},feature:{pattern:/((?:^|\r?\n|\r)[ \t]*)(?:Ability|Ahoy matey!|Arwedd|Aspekt|Besigheid Behoefte|Business Need|Caracteristica|Característica|Egenskab|Egenskap|Eiginleiki|Feature|Fīča|Fitur|Fonctionnalité|Fonksyonalite|Funcionalidade|Funcionalitat|Functionalitate|Funcţionalitate|Funcționalitate|Functionaliteit|Fungsi|Funkcia|Funkcija|Funkcionalitāte|Funkcionalnost|Funkcja|Funksie|Funktionalität|Funktionalitéit|Funzionalità|Hwaet|Hwæt|Jellemző|Karakteristik|Lastnost|Mak|Mogucnost|laH|Mogućnost|Moznosti|Možnosti|OH HAI|Omadus|Ominaisuus|Osobina|Özellik|Potrzeba biznesowa|perbogh|poQbogh malja'|Požadavek|Požiadavka|Pretty much|Qap|Qu'meH 'ut|Savybė|Tính năng|Trajto|Vermoë|Vlastnosť|Właściwość|Značilnost|Δυνατότητα|Λειτουργία|Могућност|Мөмкинлек|Особина|Свойство|Үзенчәлеклелек|Функционал|Функционалност|Функция|Функціонал|תכונה|خاصية|خصوصیت|صلاحیت|کاروبار کی ضرورت|وِیژگی|रूप लेख|ਖਾਸੀਅਤ|ਨਕਸ਼ ਨੁਹਾਰ|ਮੁਹਾਂਦਰਾ|గుణము|ಹೆಚ್ಚಳ|ความต้องการทางธุรกิจ|ความสามารถ|โครงหลัก|기능|フィーチャ|功能|機能):(?:[^:\r\n]+(?:\r?\n|\r|$))*/,lookbehind:!0,inside:{important:{pattern:/(:)[^\r\n]+/,lookbehind:!0},keyword:/[^:\r\n]+:/}},scenario:{pattern:/(^[ \t]*)(?:Abstract Scenario|Abstrakt Scenario|Achtergrond|Aer|Ær|Agtergrond|All y'all|Antecedentes|Antecedents|Atburðarás|Atburðarásir|Awww, look mate|B4|Background|Baggrund|Bakgrund|Bakgrunn|Bakgrunnur|Beispiele|Beispiller|Bối cảnh|Cefndir|Cenario|Cenário|Cenario de Fundo|Cenário de Fundo|Cenarios|Cenários|Contesto|Context|Contexte|Contexto|Conto|Contoh|Contone|Dæmi|Dasar|Dead men tell no tales|Delineacao do Cenario|Delineação do Cenário|Dis is what went down|Dữ liệu|Dyagram Senaryo|Dyagram senaryo|Egzanp|Ejemplos|Eksempler|Ekzemploj|Enghreifftiau|Esbozo do escenario|Escenari|Escenario|Esempi|Esquema de l'escenari|Esquema del escenario|Esquema do Cenario|Esquema do Cenário|EXAMPLZ|Examples|Exempel|Exemple|Exemples|Exemplos|First off|Fono|Forgatókönyv|Forgatókönyv vázlat|Fundo|Geçmiş|Grundlage|Hannergrond|ghantoH|Háttér|Heave to|Istorik|Juhtumid|Keadaan|Khung kịch bản|Khung tình huống|Kịch bản|Koncept|Konsep skenario|Kontèks|Kontekst|Kontekstas|Konteksts|Kontext|Konturo de la scenaro|Latar Belakang|lut chovnatlh|lut|lutmey|Lýsing Atburðarásar|Lýsing Dæma|MISHUN SRSLY|MISHUN|Menggariskan Senario|mo'|Náčrt Scenára|Náčrt Scénáře|Náčrt Scenáru|Oris scenarija|Örnekler|Osnova|Osnova Scenára|Osnova scénáře|Osnutek|Ozadje|Paraugs|Pavyzdžiai|Példák|Piemēri|Plan du scénario|Plan du Scénario|Plan Senaryo|Plan senaryo|Plang vum Szenario|Pozadí|Pozadie|Pozadina|Príklady|Příklady|Primer|Primeri|Primjeri|Przykłady|Raamstsenaarium|Reckon it's like|Rerefons|Scenár|Scénář|Scenarie|Scenarij|Scenarijai|Scenarijaus šablonas|Scenariji|Scenārijs|Scenārijs pēc parauga|Scenarijus|Scenario|Scénario|Scenario Amlinellol|Scenario Outline|Scenario Template|Scenariomal|Scenariomall|Scenarios|Scenariu|Scenariusz|Scenaro|Schema dello scenario|Se ðe|Se the|Se þe|Senario|Senaryo Deskripsyon|Senaryo deskripsyon|Senaryo|Senaryo taslağı|Shiver me timbers|Situācija|Situai|Situasie Uiteensetting|Situasie|Skenario konsep|Skenario|Skica|Structura scenariu|Structură scenariu|Struktura scenarija|Stsenaarium|Swa hwaer swa|Swa|Swa hwær swa|Szablon scenariusza|Szenario|Szenariogrundriss|Tapaukset|Tapaus|Tapausaihio|Taust|Tausta|Template Keadaan|Template Senario|Template Situai|The thing of it is|Tình huống|Variantai|Voorbeelde|Voorbeelden|Wharrimean is|Yo-ho-ho|You'll wanna|Założenia|Παραδείγματα|Περιγραφή Σεναρίου|Σενάρια|Σενάριο|Υπόβαθρο|Кереш|Контекст|Концепт|Мисаллар|Мисоллар|Основа|Передумова|Позадина|Предистория|Предыстория|Приклади|Пример|Примери|Примеры|Рамка на сценарий|Скица|Структура сценарија|Структура сценария|Структура сценарію|Сценарий|Сценарий структураси|Сценарийның төзелеше|Сценарији|Сценарио|Сценарій|Тарих|Үрнәкләр|דוגמאות|רקע|תבנית תרחיש|תרחיש|الخلفية|الگوی سناریو|امثلة|پس منظر|زمینه|سناریو|سيناريو|سيناريو مخطط|مثالیں|منظر نامے کا خاکہ|منظرنامہ|نمونه ها|उदाहरण|परिदृश्य|परिदृश्य रूपरेखा|पृष्ठभूमि|ਉਦਾਹਰਨਾਂ|ਪਟਕਥਾ|ਪਟਕਥਾ ਢਾਂਚਾ|ਪਟਕਥਾ ਰੂਪ ਰੇਖਾ|ਪਿਛੋਕੜ|ఉదాహరణలు|కథనం|నేపథ్యం|సన్నివేశం|ಉದಾಹರಣೆಗಳು|ಕಥಾಸಾರಾಂಶ|ವಿವರಣೆ|ಹಿನ್ನೆಲೆ|โครงสร้างของเหตุการณ์|ชุดของตัวอย่าง|ชุดของเหตุการณ์|แนวคิด|สรุปเหตุการณ์|เหตุการณ์|배경|시나리오|시나리오 개요|예|サンプル|シナリオ|シナリオアウトライン|シナリオテンプレ|シナリオテンプレート|テンプレ|例|例子|剧本|剧本大纲|劇本|劇本大綱|场景|场景大纲|場景|場景大綱|背景):[^:\r\n]*/m,lookbehind:!0,inside:{important:{pattern:/(:)[^\r\n]*/,lookbehind:!0},keyword:/[^:\r\n]+:/}},"table-body":{pattern:RegExp("("+r+")(?:"+r+")+"),lookbehind:!0,inside:{outline:{pattern:/<[^>]+>/,alias:"variable"},td:{pattern:/\s*[^\s|][^|]*/,alias:"string"},punctuation:/\|/}},"table-head":{pattern:RegExp(r),inside:{th:{pattern:/\s*[^\s|][^|]*/,alias:"variable"},punctuation:/\|/}},atrule:{pattern:/(^[ \t]+)(?:'a|'ach|'ej|7|a|A také|A taktiež|A tiež|A zároveň|Aber|Ac|Adott|Akkor|Ak|Aleshores|Ale|Ali|Allora|Alors|Als|Ama|Amennyiben|Amikor|Ampak|an|AN|Ananging|And y'all|And|Angenommen|Anrhegedig a|An|Apabila|Atès|Atesa|Atunci|Avast!|Aye|A|awer|Bagi|Banjur|Bet|Biết|Blimey!|Buh|But at the end of the day I reckon|But y'all|But|BUT|Cal|Când|Cand|Cando|Ce|Cuando|Če|Ða ðe|Ða|Dadas|Dada|Dados|Dado|DaH ghu' bejlu'|dann|Dann|Dano|Dan|Dar|Dat fiind|Data|Date fiind|Date|Dati fiind|Dati|Daţi fiind|Dați fiind|DEN|Dato|De|Den youse gotta|Dengan|Diberi|Diyelim ki|Donada|Donat|Donitaĵo|Do|Dun|Duota|Ðurh|Eeldades|Ef|Eğer ki|Entao|Então|Entón|E|En|Entonces|Epi|És|Etant donnée|Etant donné|Et|Étant données|Étant donnée|Étant donné|Etant données|Etant donnés|Étant donnés|Fakat|Gangway!|Gdy|Gegeben seien|Gegeben sei|Gegeven|Gegewe|ghu' noblu'|Gitt|Given y'all|Given|Givet|Givun|Ha|Cho|I CAN HAZ|In|Ir|It's just unbelievable|I|Ja|Jeśli|Jeżeli|Kad|Kada|Kadar|Kai|Kaj|Když|Keď|Kemudian|Ketika|Khi|Kiedy|Ko|Kuid|Kui|Kun|Lan|latlh|Le sa a|Let go and haul|Le|Lè sa a|Lè|Logo|Lorsqu'<|Lorsque|mä|Maar|Mais|Mając|Ma|Majd|Maka|Manawa|Mas|Men|Menawa|Mutta|Nalika|Nalikaning|Nanging|Når|När|Nato|Nhưng|Niin|Njuk|O zaman|Och|Og|Oletetaan|Ond|Onda|Oraz|Pak|Pero|Però|Podano|Pokiaľ|Pokud|Potem|Potom|Privzeto|Pryd|Quan|Quand|Quando|qaSDI'|Så|Sed|Se|Siis|Sipoze ke|Sipoze Ke|Sipoze|Si|Şi|Și|Soit|Stel|Tada|Tad|Takrat|Tak|Tapi|Ter|Tetapi|Tha the|Tha|Then y'all|Then|Thì|Thurh|Toda|Too right|Un|Und|ugeholl|Và|vaj|Vendar|Ve|wann|Wanneer|WEN|Wenn|When y'all|When|Wtedy|Wun|Y'know|Yeah nah|Yna|Youse know like when|Youse know when youse got|Y|Za predpokladu|Za předpokladu|Zadan|Zadani|Zadano|Zadate|Zadato|Zakładając|Zaradi|Zatati|Þa þe|Þa|Þá|Þegar|Þurh|Αλλά|Δεδομένου|Και|Όταν|Τότε|А також|Агар|Але|Али|Аммо|А|Әгәр|Әйтик|Әмма|Бирок|Ва|Вә|Дадено|Дано|Допустим|Если|Задате|Задати|Задато|И|І|К тому же|Када|Кад|Когато|Когда|Коли|Ләкин|Лекин|Нәтиҗәдә|Нехай|Но|Онда|Припустимо, що|Припустимо|Пусть|Также|Та|Тогда|Тоді|То|Унда|Һәм|Якщо|אבל|אזי|אז|בהינתן|וגם|כאשר|آنگاه|اذاً|اگر|اما|اور|با فرض|بالفرض|بفرض|پھر|تب|ثم|جب|عندما|فرض کیا|لكن|لیکن|متى|هنگامی|و|अगर|और|कदा|किन्तु|चूंकि|जब|तथा|तदा|तब|परन्तु|पर|यदि|ਅਤੇ|ਜਦੋਂ|ਜਿਵੇਂ ਕਿ|ਜੇਕਰ|ਤਦ|ਪਰ|అప్పుడు|ఈ పరిస్థితిలో|కాని|చెప్పబడినది|మరియు|ಆದರೆ|ನಂತರ|ನೀಡಿದ|ಮತ್ತು|ಸ್ಥಿತಿಯನ್ನು|กำหนดให้|ดังนั้น|แต่|เมื่อ|และ|그러면<|그리고<|단<|만약<|만일<|먼저<|조건<|하지만<|かつ<|しかし<|ただし<|ならば<|もし<|並且<|但し<|但是<|假如<|假定<|假設<|假设<|前提<|同时<|同時<|并且<|当<|當<|而且<|那么<|那麼<)(?=[ \t])/m,lookbehind:!0},string:{pattern:/"(?:\\.|[^"\\\r\n])*"|'(?:\\.|[^'\\\r\n])*'/,inside:{outline:{pattern:/<[^>]+>/,alias:"variable"}}},outline:{pattern:/<[^>]+>/,alias:"variable"}}})(t)}return NM}var MM,dH;function lUe(){if(dH)return MM;dH=1,MM=e,e.displayName="git",e.aliases=[];function e(t){t.languages.git={comment:/^#.*/m,deleted:/^[-–].*/m,inserted:/^\+.*/m,string:/("|')(?:\\.|(?!\1)[^\\\r\n])*\1/,command:{pattern:/^.*\$ git .*$/m,inside:{parameter:/\s--?\w+/}},coord:/^@@.*@@$/m,"commit-sha1":/^commit \w{40}$/m}}return MM}var IM,fH;function uUe(){if(fH)return IM;fH=1;var e=vy();IM=t,t.displayName="glsl",t.aliases=[];function t(n){n.register(e),n.languages.glsl=n.languages.extend("c",{keyword:/\b(?:active|asm|atomic_uint|attribute|[ibdu]?vec[234]|bool|break|buffer|case|cast|centroid|class|coherent|common|const|continue|d?mat[234](?:x[234])?|default|discard|do|double|else|enum|extern|external|false|filter|fixed|flat|float|for|fvec[234]|goto|half|highp|hvec[234]|[iu]?sampler2DMS(?:Array)?|[iu]?sampler2DRect|[iu]?samplerBuffer|[iu]?samplerCube|[iu]?samplerCubeArray|[iu]?sampler[123]D|[iu]?sampler[12]DArray|[iu]?image2DMS(?:Array)?|[iu]?image2DRect|[iu]?imageBuffer|[iu]?imageCube|[iu]?imageCubeArray|[iu]?image[123]D|[iu]?image[12]DArray|if|in|inline|inout|input|int|interface|invariant|layout|long|lowp|mediump|namespace|noinline|noperspective|out|output|partition|patch|precise|precision|public|readonly|resource|restrict|return|sample|sampler[12]DArrayShadow|sampler[12]DShadow|sampler2DRectShadow|sampler3DRect|samplerCubeArrayShadow|samplerCubeShadow|shared|short|sizeof|smooth|static|struct|subroutine|superp|switch|template|this|true|typedef|uint|uniform|union|unsigned|using|varying|void|volatile|while|writeonly)\b/})}return IM}var DM,pH;function cUe(){if(pH)return DM;pH=1,DM=e,e.displayName="gml",e.aliases=[];function e(t){t.languages.gamemakerlanguage=t.languages.gml=t.languages.extend("clike",{keyword:/\b(?:break|case|continue|default|do|else|enum|exit|for|globalvar|if|repeat|return|switch|until|var|while)\b/,number:/(?:\b0x[\da-f]+|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?)[ulf]{0,4}/i,operator:/--|\+\+|[-+%/=]=?|!=|\*\*?=?|<[<=>]?|>[=>]?|&&?|\^\^?|\|\|?|~|\b(?:and|at|not|or|with|xor)\b/,constant:/\b(?:GM_build_date|GM_version|action_(?:continue|restart|reverse|stop)|all|gamespeed_(?:fps|microseconds)|global|local|noone|other|pi|pointer_(?:invalid|null)|self|timezone_(?:local|utc)|undefined|ev_(?:create|destroy|step|alarm|keyboard|mouse|collision|other|draw|draw_(?:begin|end|post|pre)|keypress|keyrelease|trigger|(?:left|middle|no|right)_button|(?:left|middle|right)_press|(?:left|middle|right)_release|mouse_(?:enter|leave|wheel_down|wheel_up)|global_(?:left|middle|right)_button|global_(?:left|middle|right)_press|global_(?:left|middle|right)_release|joystick(?:1|2)_(?:button1|button2|button3|button4|button5|button6|button7|button8|down|left|right|up)|outside|boundary|game_start|game_end|room_start|room_end|no_more_lives|animation_end|end_of_path|no_more_health|user\d|gui|gui_begin|gui_end|step_(?:begin|end|normal))|vk_(?:alt|anykey|backspace|control|delete|down|end|enter|escape|home|insert|left|nokey|pagedown|pageup|pause|printscreen|return|right|shift|space|tab|up|f\d|numpad\d|add|decimal|divide|lalt|lcontrol|lshift|multiply|ralt|rcontrol|rshift|subtract)|achievement_(?:filter_(?:all_players|favorites_only|friends_only)|friends_info|info|leaderboard_info|our_info|pic_loaded|show_(?:achievement|bank|friend_picker|leaderboard|profile|purchase_prompt|ui)|type_challenge|type_score_challenge)|asset_(?:font|object|path|room|script|shader|sound|sprite|tiles|timeline|unknown)|audio_(?:3d|falloff_(?:exponent_distance|exponent_distance_clamped|inverse_distance|inverse_distance_clamped|linear_distance|linear_distance_clamped|none)|mono|new_system|old_system|stereo)|bm_(?:add|complex|dest_alpha|dest_color|dest_colour|inv_dest_alpha|inv_dest_color|inv_dest_colour|inv_src_alpha|inv_src_color|inv_src_colour|max|normal|one|src_alpha|src_alpha_sat|src_color|src_colour|subtract|zero)|browser_(?:chrome|firefox|ie|ie_mobile|not_a_browser|opera|safari|safari_mobile|tizen|unknown|windows_store)|buffer_(?:bool|f16|f32|f64|fast|fixed|generalerror|grow|invalidtype|network|outofbounds|outofspace|s16|s32|s8|seek_end|seek_relative|seek_start|string|text|u16|u32|u64|u8|vbuffer|wrap)|c_(?:aqua|black|blue|dkgray|fuchsia|gray|green|lime|ltgray|maroon|navy|olive|orange|purple|red|silver|teal|white|yellow)|cmpfunc_(?:always|equal|greater|greaterequal|less|lessequal|never|notequal)|cr_(?:appstart|arrow|beam|cross|default|drag|handpoint|hourglass|none|size_all|size_nesw|size_ns|size_nwse|size_we|uparrow)|cull_(?:clockwise|counterclockwise|noculling)|device_(?:emulator|tablet)|device_ios_(?:ipad|ipad_retina|iphone|iphone5|iphone6|iphone6plus|iphone_retina|unknown)|display_(?:landscape|landscape_flipped|portrait|portrait_flipped)|dll_(?:cdecl|cdel|stdcall)|ds_type_(?:grid|list|map|priority|queue|stack)|ef_(?:cloud|ellipse|explosion|firework|flare|rain|ring|smoke|smokeup|snow|spark|star)|fa_(?:archive|bottom|center|directory|hidden|left|middle|readonly|right|sysfile|top|volumeid)|fb_login_(?:default|fallback_to_webview|forcing_safari|forcing_webview|no_fallback_to_webview|use_system_account)|iap_(?:available|canceled|ev_consume|ev_product|ev_purchase|ev_restore|ev_storeload|failed|purchased|refunded|status_available|status_loading|status_processing|status_restoring|status_unavailable|status_uninitialised|storeload_failed|storeload_ok|unavailable)|leaderboard_type_(?:number|time_mins_secs)|lighttype_(?:dir|point)|matrix_(?:projection|view|world)|mb_(?:any|left|middle|none|right)|network_(?:config_(?:connect_timeout|disable_reliable_udp|enable_reliable_udp|use_non_blocking_socket)|socket_(?:bluetooth|tcp|udp)|type_(?:connect|data|disconnect|non_blocking_connect))|of_challenge_(?:lose|tie|win)|os_(?:android|ios|linux|macosx|ps3|ps4|psvita|unknown|uwp|win32|win8native|windows|winphone|xboxone)|phy_debug_render_(?:aabb|collision_pairs|coms|core_shapes|joints|obb|shapes)|phy_joint_(?:anchor_1_x|anchor_1_y|anchor_2_x|anchor_2_y|angle|angle_limits|damping_ratio|frequency|length_1|length_2|lower_angle_limit|max_force|max_length|max_motor_force|max_motor_torque|max_torque|motor_force|motor_speed|motor_torque|reaction_force_x|reaction_force_y|reaction_torque|speed|translation|upper_angle_limit)|phy_particle_data_flag_(?:category|color|colour|position|typeflags|velocity)|phy_particle_flag_(?:colormixing|colourmixing|elastic|powder|spring|tensile|viscous|wall|water|zombie)|phy_particle_group_flag_(?:rigid|solid)|pr_(?:linelist|linestrip|pointlist|trianglefan|trianglelist|trianglestrip)|ps_(?:distr|shape)_(?:diamond|ellipse|gaussian|invgaussian|line|linear|rectangle)|pt_shape_(?:circle|cloud|disk|explosion|flare|line|pixel|ring|smoke|snow|spark|sphere|square|star)|ty_(?:real|string)|gp_(?:face\d|axislh|axislv|axisrh|axisrv|padd|padl|padr|padu|select|shoulderl|shoulderlb|shoulderr|shoulderrb|start|stickl|stickr)|lb_disp_(?:none|numeric|time_ms|time_sec)|lb_sort_(?:ascending|descending|none)|ov_(?:achievements|community|friends|gamegroup|players|settings)|ugc_(?:filetype_(?:community|microtrans)|list_(?:Favorited|Followed|Published|Subscribed|UsedOrPlayed|VotedDown|VotedOn|VotedUp|WillVoteLater)|match_(?:AllGuides|Artwork|Collections|ControllerBindings|IntegratedGuides|Items|Items_Mtx|Items_ReadyToUse|Screenshots|UsableInGame|Videos|WebGuides)|query_(?:AcceptedForGameRankedByAcceptanceDate|CreatedByFriendsRankedByPublicationDate|FavoritedByFriendsRankedByPublicationDate|NotYetRated)|query_RankedBy(?:NumTimesReported|PublicationDate|TextSearch|TotalVotesAsc|Trend|Vote|VotesUp)|result_success|sortorder_CreationOrder(?:Asc|Desc)|sortorder_(?:ForModeration|LastUpdatedDesc|SubscriptionDateDesc|TitleAsc|VoteScoreDesc)|visibility_(?:friends_only|private|public))|vertex_usage_(?:binormal|blendindices|blendweight|color|colour|depth|fog|normal|position|psize|sample|tangent|texcoord|textcoord)|vertex_type_(?:float\d|color|colour|ubyte4)|input_type|layerelementtype_(?:background|instance|oldtilemap|particlesystem|sprite|tile|tilemap|undefined)|se_(?:chorus|compressor|echo|equalizer|flanger|gargle|none|reverb)|text_type|tile_(?:flip|index_mask|mirror|rotate)|(?:obj|rm|scr|spr)\w+)\b/,variable:/\b(?:alarm|application_surface|async_load|background_(?:alpha|blend|color|colour|foreground|height|hspeed|htiled|index|showcolor|showcolour|visible|vspeed|vtiled|width|x|xscale|y|yscale)|bbox_(?:bottom|left|right|top)|browser_(?:height|width)|caption_(?:health|lives|score)|current_(?:day|hour|minute|month|second|time|weekday|year)|cursor_sprite|debug_mode|delta_time|direction|display_aa|error_(?:last|occurred)|event_(?:action|number|object|type)|fps|fps_real|friction|game_(?:display|project|save)_(?:id|name)|gamemaker_(?:pro|registered|version)|gravity|gravity_direction|(?:h|v)speed|health|iap_data|id|image_(?:alpha|angle|blend|depth|index|number|speed|xscale|yscale)|instance_(?:count|id)|keyboard_(?:key|lastchar|lastkey|string)|layer|lives|mask_index|mouse_(?:button|lastbutton|x|y)|object_index|os_(?:browser|device|type|version)|path_(?:endaction|index|orientation|position|positionprevious|scale|speed)|persistent|phy_(?:rotation|(?:col_normal|collision|com|linear_velocity|position|speed)_(?:x|y)|angular_(?:damping|velocity)|position_(?:x|y)previous|speed|linear_damping|bullet|fixed_rotation|active|mass|inertia|dynamic|kinematic|sleeping|collision_points)|pointer_(?:invalid|null)|room|room_(?:caption|first|height|last|persistent|speed|width)|score|secure_mode|show_(?:health|lives|score)|solid|speed|sprite_(?:height|index|width|xoffset|yoffset)|temp_directory|timeline_(?:index|loop|position|running|speed)|transition_(?:color|kind|steps)|undefined|view_(?:angle|current|enabled|(?:h|v)(?:border|speed)|(?:h|w|x|y)port|(?:h|w|x|y)view|object|surface_id|visible)|visible|webgl_enabled|working_directory|(?:x|y)(?:previous|start)|x|y|argument(?:_relitive|_count|\d)|argument|global|local|other|self)\b/})}return DM}var $M,hH;function dUe(){if(hH)return $M;hH=1,$M=e,e.displayName="gn",e.aliases=["gni"];function e(t){t.languages.gn={comment:{pattern:/#.*/,greedy:!0},"string-literal":{pattern:/(^|[^\\"])"(?:[^\r\n"\\]|\\.)*"/,lookbehind:!0,greedy:!0,inside:{interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$(?:\{[\s\S]*?\}|[a-zA-Z_]\w*|0x[a-fA-F0-9]{2})/,lookbehind:!0,inside:{number:/^\$0x[\s\S]{2}$/,variable:/^\$\w+$/,"interpolation-punctuation":{pattern:/^\$\{|\}$/,alias:"punctuation"},expression:{pattern:/[\s\S]+/,inside:null}}},string:/[\s\S]+/}},keyword:/\b(?:else|if)\b/,boolean:/\b(?:false|true)\b/,"builtin-function":{pattern:/\b(?:assert|defined|foreach|import|pool|print|template|tool|toolchain)(?=\s*\()/i,alias:"keyword"},function:/\b[a-z_]\w*(?=\s*\()/i,constant:/\b(?:current_cpu|current_os|current_toolchain|default_toolchain|host_cpu|host_os|root_build_dir|root_gen_dir|root_out_dir|target_cpu|target_gen_dir|target_os|target_out_dir)\b/,number:/-?\b\d+\b/,operator:/[-+!=<>]=?|&&|\|\|/,punctuation:/[(){}[\],.]/},t.languages.gn["string-literal"].inside.interpolation.inside.expression.inside=t.languages.gn,t.languages.gni=t.languages.gn}return $M}var LM,mH;function fUe(){if(mH)return LM;mH=1,LM=e,e.displayName="goModule",e.aliases=[];function e(t){t.languages["go-mod"]=t.languages["go-module"]={comment:{pattern:/\/\/.*/,greedy:!0},version:{pattern:/(^|[\s()[\],])v\d+\.\d+\.\d+(?:[+-][-+.\w]*)?(?![^\s()[\],])/,lookbehind:!0,alias:"number"},"go-version":{pattern:/((?:^|\s)go\s+)\d+(?:\.\d+){1,2}/,lookbehind:!0,alias:"number"},keyword:{pattern:/^([ \t]*)(?:exclude|go|module|replace|require|retract)\b/m,lookbehind:!0},operator:/=>/,punctuation:/[()[\],]/}}return LM}var FM,gH;function pUe(){if(gH)return FM;gH=1,FM=e,e.displayName="go",e.aliases=[];function e(t){t.languages.go=t.languages.extend("clike",{string:{pattern:/(^|[^\\])"(?:\\.|[^"\\\r\n])*"|`[^`]*`/,lookbehind:!0,greedy:!0},keyword:/\b(?:break|case|chan|const|continue|default|defer|else|fallthrough|for|func|go(?:to)?|if|import|interface|map|package|range|return|select|struct|switch|type|var)\b/,boolean:/\b(?:_|false|iota|nil|true)\b/,number:[/\b0(?:b[01_]+|o[0-7_]+)i?\b/i,/\b0x(?:[a-f\d_]+(?:\.[a-f\d_]*)?|\.[a-f\d_]+)(?:p[+-]?\d+(?:_\d+)*)?i?(?!\w)/i,/(?:\b\d[\d_]*(?:\.[\d_]*)?|\B\.\d[\d_]*)(?:e[+-]?[\d_]+)?i?(?!\w)/i],operator:/[*\/%^!=]=?|\+[=+]?|-[=-]?|\|[=|]?|&(?:=|&|\^=?)?|>(?:>=?|=)?|<(?:<=?|=|-)?|:=|\.\.\./,builtin:/\b(?:append|bool|byte|cap|close|complex|complex(?:64|128)|copy|delete|error|float(?:32|64)|u?int(?:8|16|32|64)?|imag|len|make|new|panic|print(?:ln)?|real|recover|rune|string|uintptr)\b/}),t.languages.insertBefore("go","string",{char:{pattern:/'(?:\\.|[^'\\\r\n]){0,10}'/,greedy:!0}}),delete t.languages.go["class-name"]}return FM}var jM,vH;function hUe(){if(vH)return jM;vH=1,jM=e,e.displayName="graphql",e.aliases=[];function e(t){t.languages.graphql={comment:/#.*/,description:{pattern:/(?:"""(?:[^"]|(?!""")")*"""|"(?:\\.|[^\\"\r\n])*")(?=\s*[a-z_])/i,greedy:!0,alias:"string",inside:{"language-markdown":{pattern:/(^"(?:"")?)(?!\1)[\s\S]+(?=\1$)/,lookbehind:!0,inside:t.languages.markdown}}},string:{pattern:/"""(?:[^"]|(?!""")")*"""|"(?:\\.|[^\\"\r\n])*"/,greedy:!0},number:/(?:\B-|\b)\d+(?:\.\d+)?(?:e[+-]?\d+)?\b/i,boolean:/\b(?:false|true)\b/,variable:/\$[a-z_]\w*/i,directive:{pattern:/@[a-z_]\w*/i,alias:"function"},"attr-name":{pattern:/\b[a-z_]\w*(?=\s*(?:\((?:[^()"]|"(?:\\.|[^\\"\r\n])*")*\))?:)/i,greedy:!0},"atom-input":{pattern:/\b[A-Z]\w*Input\b/,alias:"class-name"},scalar:/\b(?:Boolean|Float|ID|Int|String)\b/,constant:/\b[A-Z][A-Z_\d]*\b/,"class-name":{pattern:/(\b(?:enum|implements|interface|on|scalar|type|union)\s+|&\s*|:\s*|\[)[A-Z_]\w*/,lookbehind:!0},fragment:{pattern:/(\bfragment\s+|\.{3}\s*(?!on\b))[a-zA-Z_]\w*/,lookbehind:!0,alias:"function"},"definition-mutation":{pattern:/(\bmutation\s+)[a-zA-Z_]\w*/,lookbehind:!0,alias:"function"},"definition-query":{pattern:/(\bquery\s+)[a-zA-Z_]\w*/,lookbehind:!0,alias:"function"},keyword:/\b(?:directive|enum|extend|fragment|implements|input|interface|mutation|on|query|repeatable|scalar|schema|subscription|type|union)\b/,operator:/[!=|&]|\.{3}/,"property-query":/\w+(?=\s*\()/,object:/\w+(?=\s*\{)/,punctuation:/[!(){}\[\]:=,]/,property:/\w+/},t.hooks.add("after-tokenize",function(r){if(r.language!=="graphql")return;var a=r.tokens.filter(function(C){return typeof C!="string"&&C.type!=="comment"&&C.type!=="scalar"}),i=0;function o(C){return a[i+C]}function l(C,k){k=k||0;for(var _=0;_0)){var v=u(/^\{$/,/^\}$/);if(v===-1)continue;for(var E=i;E=0&&d(T,"variable-input")}}}}})}return jM}var UM,yH;function mUe(){if(yH)return UM;yH=1,UM=e,e.displayName="groovy",e.aliases=[];function e(t){t.languages.groovy=t.languages.extend("clike",{string:[{pattern:/("""|''')(?:[^\\]|\\[\s\S])*?\1|\$\/(?:[^/$]|\$(?:[/$]|(?![/$]))|\/(?!\$))*\/\$/,greedy:!0},{pattern:/(["'/])(?:\\.|(?!\1)[^\\\r\n])*\1/,greedy:!0}],keyword:/\b(?:abstract|as|assert|boolean|break|byte|case|catch|char|class|const|continue|def|default|do|double|else|enum|extends|final|finally|float|for|goto|if|implements|import|in|instanceof|int|interface|long|native|new|package|private|protected|public|return|short|static|strictfp|super|switch|synchronized|this|throw|throws|trait|transient|try|void|volatile|while)\b/,number:/\b(?:0b[01_]+|0x[\da-f_]+(?:\.[\da-f_p\-]+)?|[\d_]+(?:\.[\d_]+)?(?:e[+-]?\d+)?)[glidf]?\b/i,operator:{pattern:/(^|[^.])(?:~|==?~?|\?[.:]?|\*(?:[.=]|\*=?)?|\.[@&]|\.\.<|\.\.(?!\.)|-[-=>]?|\+[+=]?|!=?|<(?:<=?|=>?)?|>(?:>>?=?|=)?|&[&=]?|\|[|=]?|\/=?|\^=?|%=?)/,lookbehind:!0},punctuation:/\.+|[{}[\];(),:$]/}),t.languages.insertBefore("groovy","string",{shebang:{pattern:/#!.+/,alias:"comment"}}),t.languages.insertBefore("groovy","punctuation",{"spock-block":/\b(?:and|cleanup|expect|given|setup|then|when|where):/}),t.languages.insertBefore("groovy","function",{annotation:{pattern:/(^|[^.])@\w+/,lookbehind:!0,alias:"punctuation"}}),t.hooks.add("wrap",function(n){if(n.language==="groovy"&&n.type==="string"){var r=n.content.value[0];if(r!="'"){var a=/([^\\])(?:\$(?:\{.*?\}|[\w.]+))/;r==="$"&&(a=/([^\$])(?:\$(?:\{.*?\}|[\w.]+))/),n.content.value=n.content.value.replace(/</g,"<").replace(/&/g,"&"),n.content=t.highlight(n.content.value,{expression:{pattern:a,lookbehind:!0,inside:t.languages.groovy}}),n.classes.push(r==="/"?"regex":"gstring")}}})}return UM}var BM,bH;function gUe(){if(bH)return BM;bH=1;var e=pO();BM=t,t.displayName="haml",t.aliases=[];function t(n){n.register(e),(function(r){r.languages.haml={"multiline-comment":{pattern:/((?:^|\r?\n|\r)([\t ]*))(?:\/|-#).*(?:(?:\r?\n|\r)\2[\t ].+)*/,lookbehind:!0,alias:"comment"},"multiline-code":[{pattern:/((?:^|\r?\n|\r)([\t ]*)(?:[~-]|[&!]?=)).*,[\t ]*(?:(?:\r?\n|\r)\2[\t ].*,[\t ]*)*(?:(?:\r?\n|\r)\2[\t ].+)/,lookbehind:!0,inside:r.languages.ruby},{pattern:/((?:^|\r?\n|\r)([\t ]*)(?:[~-]|[&!]?=)).*\|[\t ]*(?:(?:\r?\n|\r)\2[\t ].*\|[\t ]*)*/,lookbehind:!0,inside:r.languages.ruby}],filter:{pattern:/((?:^|\r?\n|\r)([\t ]*)):[\w-]+(?:(?:\r?\n|\r)(?:\2[\t ].+|\s*?(?=\r?\n|\r)))+/,lookbehind:!0,inside:{"filter-name":{pattern:/^:[\w-]+/,alias:"symbol"}}},markup:{pattern:/((?:^|\r?\n|\r)[\t ]*)<.+/,lookbehind:!0,inside:r.languages.markup},doctype:{pattern:/((?:^|\r?\n|\r)[\t ]*)!!!(?: .+)?/,lookbehind:!0},tag:{pattern:/((?:^|\r?\n|\r)[\t ]*)[%.#][\w\-#.]*[\w\-](?:\([^)]+\)|\{(?:\{[^}]+\}|[^{}])+\}|\[[^\]]+\])*[\/<>]*/,lookbehind:!0,inside:{attributes:[{pattern:/(^|[^#])\{(?:\{[^}]+\}|[^{}])+\}/,lookbehind:!0,inside:r.languages.ruby},{pattern:/\([^)]+\)/,inside:{"attr-value":{pattern:/(=\s*)(?:"(?:\\.|[^\\"\r\n])*"|[^)\s]+)/,lookbehind:!0},"attr-name":/[\w:-]+(?=\s*!?=|\s*[,)])/,punctuation:/[=(),]/}},{pattern:/\[[^\]]+\]/,inside:r.languages.ruby}],punctuation:/[<>]/}},code:{pattern:/((?:^|\r?\n|\r)[\t ]*(?:[~-]|[&!]?=)).+/,lookbehind:!0,inside:r.languages.ruby},interpolation:{pattern:/#\{[^}]+\}/,inside:{delimiter:{pattern:/^#\{|\}$/,alias:"punctuation"},ruby:{pattern:/[\s\S]+/,inside:r.languages.ruby}}},punctuation:{pattern:/((?:^|\r?\n|\r)[\t ]*)[~=\-&!]+/,lookbehind:!0}};for(var a="((?:^|\\r?\\n|\\r)([\\t ]*)):{{filter_name}}(?:(?:\\r?\\n|\\r)(?:\\2[\\t ].+|\\s*?(?=\\r?\\n|\\r)))+",i=["css",{filter:"coffee",language:"coffeescript"},"erb","javascript","less","markdown","ruby","scss","textile"],o={},l=0,u=i.length;l@\[\\\]^`{|}~]/,variable:/[^!"#%&'()*+,\/;<=>@\[\\\]^`{|}~\s]+/},r.hooks.add("before-tokenize",function(a){var i=/\{\{\{[\s\S]+?\}\}\}|\{\{[\s\S]+?\}\}/g;r.languages["markup-templating"].buildPlaceholders(a,"handlebars",i)}),r.hooks.add("after-tokenize",function(a){r.languages["markup-templating"].tokenizePlaceholders(a,"handlebars")}),r.languages.hbs=r.languages.handlebars})(n)}return WM}var zM,SH;function T4(){if(SH)return zM;SH=1,zM=e,e.displayName="haskell",e.aliases=["hs"];function e(t){t.languages.haskell={comment:{pattern:/(^|[^-!#$%*+=?&@|~.:<>^\\\/])(?:--(?:(?=.)[^-!#$%*+=?&@|~.:<>^\\\/].*|$)|\{-[\s\S]*?-\})/m,lookbehind:!0},char:{pattern:/'(?:[^\\']|\\(?:[abfnrtv\\"'&]|\^[A-Z@[\]^_]|ACK|BEL|BS|CAN|CR|DC1|DC2|DC3|DC4|DEL|DLE|EM|ENQ|EOT|ESC|ETB|ETX|FF|FS|GS|HT|LF|NAK|NUL|RS|SI|SO|SOH|SP|STX|SUB|SYN|US|VT|\d+|o[0-7]+|x[0-9a-fA-F]+))'/,alias:"string"},string:{pattern:/"(?:[^\\"]|\\(?:\S|\s+\\))*"/,greedy:!0},keyword:/\b(?:case|class|data|deriving|do|else|if|in|infixl|infixr|instance|let|module|newtype|of|primitive|then|type|where)\b/,"import-statement":{pattern:/(^[\t ]*)import\s+(?:qualified\s+)?(?:[A-Z][\w']*)(?:\.[A-Z][\w']*)*(?:\s+as\s+(?:[A-Z][\w']*)(?:\.[A-Z][\w']*)*)?(?:\s+hiding\b)?/m,lookbehind:!0,inside:{keyword:/\b(?:as|hiding|import|qualified)\b/,punctuation:/\./}},builtin:/\b(?:abs|acos|acosh|all|and|any|appendFile|approxRational|asTypeOf|asin|asinh|atan|atan2|atanh|basicIORun|break|catch|ceiling|chr|compare|concat|concatMap|const|cos|cosh|curry|cycle|decodeFloat|denominator|digitToInt|div|divMod|drop|dropWhile|either|elem|encodeFloat|enumFrom|enumFromThen|enumFromThenTo|enumFromTo|error|even|exp|exponent|fail|filter|flip|floatDigits|floatRadix|floatRange|floor|fmap|foldl|foldl1|foldr|foldr1|fromDouble|fromEnum|fromInt|fromInteger|fromIntegral|fromRational|fst|gcd|getChar|getContents|getLine|group|head|id|inRange|index|init|intToDigit|interact|ioError|isAlpha|isAlphaNum|isAscii|isControl|isDenormalized|isDigit|isHexDigit|isIEEE|isInfinite|isLower|isNaN|isNegativeZero|isOctDigit|isPrint|isSpace|isUpper|iterate|last|lcm|length|lex|lexDigits|lexLitChar|lines|log|logBase|lookup|map|mapM|mapM_|max|maxBound|maximum|maybe|min|minBound|minimum|mod|negate|not|notElem|null|numerator|odd|or|ord|otherwise|pack|pi|pred|primExitWith|print|product|properFraction|putChar|putStr|putStrLn|quot|quotRem|range|rangeSize|read|readDec|readFile|readFloat|readHex|readIO|readInt|readList|readLitChar|readLn|readOct|readParen|readSigned|reads|readsPrec|realToFrac|recip|rem|repeat|replicate|return|reverse|round|scaleFloat|scanl|scanl1|scanr|scanr1|seq|sequence|sequence_|show|showChar|showInt|showList|showLitChar|showParen|showSigned|showString|shows|showsPrec|significand|signum|sin|sinh|snd|sort|span|splitAt|sqrt|subtract|succ|sum|tail|take|takeWhile|tan|tanh|threadToIOResult|toEnum|toInt|toInteger|toLower|toRational|toUpper|truncate|uncurry|undefined|unlines|until|unwords|unzip|unzip3|userError|words|writeFile|zip|zip3|zipWith|zipWith3)\b/,number:/\b(?:\d+(?:\.\d+)?(?:e[+-]?\d+)?|0o[0-7]+|0x[0-9a-f]+)\b/i,operator:[{pattern:/`(?:[A-Z][\w']*\.)*[_a-z][\w']*`/,greedy:!0},{pattern:/(\s)\.(?=\s)/,lookbehind:!0},/[-!#$%*+=?&@|~:<>^\\\/][-!#$%*+=?&@|~.:<>^\\\/]*|\.[-!#$%*+=?&@|~.:<>^\\\/]+/],hvariable:{pattern:/\b(?:[A-Z][\w']*\.)*[_a-z][\w']*/,inside:{punctuation:/\./}},constant:{pattern:/\b(?:[A-Z][\w']*\.)*[A-Z][\w']*/,inside:{punctuation:/\./}},punctuation:/[{}[\];(),.:]/},t.languages.hs=t.languages.haskell}return zM}var qM,EH;function yUe(){if(EH)return qM;EH=1,qM=e,e.displayName="haxe",e.aliases=[];function e(t){t.languages.haxe=t.languages.extend("clike",{string:{pattern:/"(?:[^"\\]|\\[\s\S])*"/,greedy:!0},"class-name":[{pattern:/(\b(?:abstract|class|enum|extends|implements|interface|new|typedef)\s+)[A-Z_]\w*/,lookbehind:!0},/\b[A-Z]\w*/],keyword:/\bthis\b|\b(?:abstract|as|break|case|cast|catch|class|continue|default|do|dynamic|else|enum|extends|extern|final|for|from|function|if|implements|import|in|inline|interface|macro|new|null|operator|overload|override|package|private|public|return|static|super|switch|throw|to|try|typedef|untyped|using|var|while)(?!\.)\b/,function:{pattern:/\b[a-z_]\w*(?=\s*(?:<[^<>]*>\s*)?\()/i,greedy:!0},operator:/\.{3}|\+\+|--|&&|\|\||->|=>|(?:<{1,3}|[-+*/%!=&|^])=?|[?:~]/}),t.languages.insertBefore("haxe","string",{"string-interpolation":{pattern:/'(?:[^'\\]|\\[\s\S])*'/,greedy:!0,inside:{interpolation:{pattern:/(^|[^\\])\$(?:\w+|\{[^{}]+\})/,lookbehind:!0,inside:{"interpolation-punctuation":{pattern:/^\$\{?|\}$/,alias:"punctuation"},expression:{pattern:/[\s\S]+/,inside:t.languages.haxe}}},string:/[\s\S]+/}}}),t.languages.insertBefore("haxe","class-name",{regex:{pattern:/~\/(?:[^\/\\\r\n]|\\.)+\/[a-z]*/,greedy:!0,inside:{"regex-flags":/\b[a-z]+$/,"regex-source":{pattern:/^(~\/)[\s\S]+(?=\/$)/,lookbehind:!0,alias:"language-regex",inside:t.languages.regex},"regex-delimiter":/^~\/|\/$/}}}),t.languages.insertBefore("haxe","keyword",{preprocessor:{pattern:/#(?:else|elseif|end|if)\b.*/,alias:"property"},metadata:{pattern:/@:?[\w.]+/,alias:"symbol"},reification:{pattern:/\$(?:\w+|(?=\{))/,alias:"important"}})}return qM}var HM,TH;function bUe(){if(TH)return HM;TH=1,HM=e,e.displayName="hcl",e.aliases=[];function e(t){t.languages.hcl={comment:/(?:\/\/|#).*|\/\*[\s\S]*?(?:\*\/|$)/,heredoc:{pattern:/<<-?(\w+\b)[\s\S]*?^[ \t]*\1/m,greedy:!0,alias:"string"},keyword:[{pattern:/(?:data|resource)\s+(?:"(?:\\[\s\S]|[^\\"])*")(?=\s+"[\w-]+"\s+\{)/i,inside:{type:{pattern:/(resource|data|\s+)(?:"(?:\\[\s\S]|[^\\"])*")/i,lookbehind:!0,alias:"variable"}}},{pattern:/(?:backend|module|output|provider|provisioner|variable)\s+(?:[\w-]+|"(?:\\[\s\S]|[^\\"])*")\s+(?=\{)/i,inside:{type:{pattern:/(backend|module|output|provider|provisioner|variable)\s+(?:[\w-]+|"(?:\\[\s\S]|[^\\"])*")\s+/i,lookbehind:!0,alias:"variable"}}},/[\w-]+(?=\s+\{)/],property:[/[-\w\.]+(?=\s*=(?!=))/,/"(?:\\[\s\S]|[^\\"])+"(?=\s*[:=])/],string:{pattern:/"(?:[^\\$"]|\\[\s\S]|\$(?:(?=")|\$+(?!\$)|[^"${])|\$\{(?:[^{}"]|"(?:[^\\"]|\\[\s\S])*")*\})*"/,greedy:!0,inside:{interpolation:{pattern:/(^|[^$])\$\{(?:[^{}"]|"(?:[^\\"]|\\[\s\S])*")*\}/,lookbehind:!0,inside:{type:{pattern:/(\b(?:count|data|local|module|path|self|terraform|var)\b\.)[\w\*]+/i,lookbehind:!0,alias:"variable"},keyword:/\b(?:count|data|local|module|path|self|terraform|var)\b/i,function:/\w+(?=\()/,string:{pattern:/"(?:\\[\s\S]|[^\\"])*"/,greedy:!0},number:/\b0x[\da-f]+\b|\b\d+(?:\.\d*)?(?:e[+-]?\d+)?/i,punctuation:/[!\$#%&'()*+,.\/;<=>@\[\\\]^`{|}~?:]/}}}},number:/\b0x[\da-f]+\b|\b\d+(?:\.\d*)?(?:e[+-]?\d+)?/i,boolean:/\b(?:false|true)\b/i,punctuation:/[=\[\]{}]/}}return HM}var VM,CH;function wUe(){if(CH)return VM;CH=1;var e=vy();VM=t,t.displayName="hlsl",t.aliases=[];function t(n){n.register(e),n.languages.hlsl=n.languages.extend("c",{"class-name":[n.languages.c["class-name"],/\b(?:AppendStructuredBuffer|BlendState|Buffer|ByteAddressBuffer|CompileShader|ComputeShader|ConsumeStructuredBuffer|DepthStencilState|DepthStencilView|DomainShader|GeometryShader|Hullshader|InputPatch|LineStream|OutputPatch|PixelShader|PointStream|RWBuffer|RWByteAddressBuffer|RWStructuredBuffer|RWTexture(?:1D|1DArray|2D|2DArray|3D)|RasterizerState|RenderTargetView|SamplerComparisonState|SamplerState|StructuredBuffer|Texture(?:1D|1DArray|2D|2DArray|2DMS|2DMSArray|3D|Cube|CubeArray)|TriangleStream|VertexShader)\b/],keyword:[/\b(?:asm|asm_fragment|auto|break|case|catch|cbuffer|centroid|char|class|column_major|compile|compile_fragment|const|const_cast|continue|default|delete|discard|do|dynamic_cast|else|enum|explicit|export|extern|for|friend|fxgroup|goto|groupshared|if|in|inline|inout|interface|line|lineadj|linear|long|matrix|mutable|namespace|new|nointerpolation|noperspective|operator|out|packoffset|pass|pixelfragment|point|precise|private|protected|public|register|reinterpret_cast|return|row_major|sample|sampler|shared|short|signed|sizeof|snorm|stateblock|stateblock_state|static|static_cast|string|struct|switch|tbuffer|technique|technique10|technique11|template|texture|this|throw|triangle|triangleadj|try|typedef|typename|uniform|union|unorm|unsigned|using|vector|vertexfragment|virtual|void|volatile|while)\b/,/\b(?:bool|double|dword|float|half|int|min(?:10float|12int|16(?:float|int|uint))|uint)(?:[1-4](?:x[1-4])?)?\b/],number:/(?:(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[eE][+-]?\d+)?|\b0x[\da-fA-F]+)[fFhHlLuU]?\b/,boolean:/\b(?:false|true)\b/})}return VM}var GM,kH;function SUe(){if(kH)return GM;kH=1,GM=e,e.displayName="hoon",e.aliases=[];function e(t){t.languages.hoon={comment:{pattern:/::.*/,greedy:!0},string:{pattern:/"[^"]*"|'[^']*'/,greedy:!0},constant:/%(?:\.[ny]|[\w-]+)/,"class-name":/@(?:[a-z0-9-]*[a-z0-9])?|\*/i,function:/(?:\+[-+] {2})?(?:[a-z](?:[a-z0-9-]*[a-z0-9])?)/,keyword:/\.[\^\+\*=\?]|![><:\.=\?!]|=[>|:,\.\-\^<+;/~\*\?]|\?[>|:\.\-\^<\+&~=@!]|\|[\$_%:\.\-\^~\*=@\?]|\+[|\$\+\*]|:[_\-\^\+~\*]|%[_:\.\-\^\+~\*=]|\^[|:\.\-\+&~\*=\?]|\$[|_%:<>\-\^&~@=\?]|;[:<\+;\/~\*=]|~[>|\$_%<\+\/&=\?!]|--|==/}}return GM}var YM,xH;function EUe(){if(xH)return YM;xH=1,YM=e,e.displayName="hpkp",e.aliases=[];function e(t){t.languages.hpkp={directive:{pattern:/\b(?:includeSubDomains|max-age|pin-sha256|preload|report-to|report-uri|strict)(?=[\s;=]|$)/i,alias:"property"},operator:/=/,punctuation:/;/}}return YM}var KM,_H;function TUe(){if(_H)return KM;_H=1,KM=e,e.displayName="hsts",e.aliases=[];function e(t){t.languages.hsts={directive:{pattern:/\b(?:includeSubDomains|max-age|preload)(?=[\s;=]|$)/i,alias:"property"},operator:/=/,punctuation:/;/}}return KM}var XM,OH;function CUe(){if(OH)return XM;OH=1,XM=e,e.displayName="http",e.aliases=[];function e(t){(function(n){function r(g){return RegExp("(^(?:"+g+"):[ ]*(?![ ]))[^]+","i")}n.languages.http={"request-line":{pattern:/^(?:CONNECT|DELETE|GET|HEAD|OPTIONS|PATCH|POST|PRI|PUT|SEARCH|TRACE)\s(?:https?:\/\/|\/)\S*\sHTTP\/[\d.]+/m,inside:{method:{pattern:/^[A-Z]+\b/,alias:"property"},"request-target":{pattern:/^(\s)(?:https?:\/\/|\/)\S*(?=\s)/,lookbehind:!0,alias:"url",inside:n.languages.uri},"http-version":{pattern:/^(\s)HTTP\/[\d.]+/,lookbehind:!0,alias:"property"}}},"response-status":{pattern:/^HTTP\/[\d.]+ \d+ .+/m,inside:{"http-version":{pattern:/^HTTP\/[\d.]+/,alias:"property"},"status-code":{pattern:/^(\s)\d+(?=\s)/,lookbehind:!0,alias:"number"},"reason-phrase":{pattern:/^(\s).+/,lookbehind:!0,alias:"string"}}},header:{pattern:/^[\w-]+:.+(?:(?:\r\n?|\n)[ \t].+)*/m,inside:{"header-value":[{pattern:r(/Content-Security-Policy/.source),lookbehind:!0,alias:["csp","languages-csp"],inside:n.languages.csp},{pattern:r(/Public-Key-Pins(?:-Report-Only)?/.source),lookbehind:!0,alias:["hpkp","languages-hpkp"],inside:n.languages.hpkp},{pattern:r(/Strict-Transport-Security/.source),lookbehind:!0,alias:["hsts","languages-hsts"],inside:n.languages.hsts},{pattern:r(/[^:]+/.source),lookbehind:!0}],"header-name":{pattern:/^[^:]+/,alias:"keyword"},punctuation:/^:/}}};var a=n.languages,i={"application/javascript":a.javascript,"application/json":a.json||a.javascript,"application/xml":a.xml,"text/xml":a.xml,"text/html":a.html,"text/css":a.css,"text/plain":a.plain},o={"application/json":!0,"application/xml":!0};function l(g){var y=g.replace(/^[a-z]+\//,""),h="\\w+/(?:[\\w.-]+\\+)+"+y+"(?![+\\w.-])";return"(?:"+g+"|"+h+")"}var u;for(var d in i)if(i[d]){u=u||{};var f=o[d]?l(d):d;u[d.replace(/\//g,"-")]={pattern:RegExp("("+/content-type:\s*/.source+f+/(?:(?:\r\n?|\n)[\w-].*)*(?:\r(?:\n|(?!\n))|\n)/.source+")"+/[^ \t\w-][\s\S]*/.source,"i"),lookbehind:!0,inside:i[d]}}u&&n.languages.insertBefore("http","header",u)})(t)}return XM}var QM,RH;function kUe(){if(RH)return QM;RH=1,QM=e,e.displayName="ichigojam",e.aliases=[];function e(t){t.languages.ichigojam={comment:/(?:\B'|REM)(?:[^\n\r]*)/i,string:{pattern:/"(?:""|[!#$%&'()*,\/:;<=>?^\w +\-.])*"/,greedy:!0},number:/\B#[0-9A-F]+|\B`[01]+|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:E[+-]?\d+)?/i,keyword:/\b(?:BEEP|BPS|CASE|CLEAR|CLK|CLO|CLP|CLS|CLT|CLV|CONT|COPY|ELSE|END|FILE|FILES|FOR|GOSUB|GOTO|GSB|IF|INPUT|KBD|LED|LET|LIST|LOAD|LOCATE|LRUN|NEW|NEXT|OUT|PLAY|POKE|PRINT|PWM|REM|RENUM|RESET|RETURN|RIGHT|RTN|RUN|SAVE|SCROLL|SLEEP|SRND|STEP|STOP|SUB|TEMPO|THEN|TO|UART|VIDEO|WAIT)(?:\$|\b)/i,function:/\b(?:ABS|ANA|ASC|BIN|BTN|DEC|END|FREE|HELP|HEX|I2CR|I2CW|IN|INKEY|LEN|LINE|PEEK|RND|SCR|SOUND|STR|TICK|USR|VER|VPEEK|ZER)(?:\$|\b)/i,label:/(?:\B@\S+)/,operator:/<[=>]?|>=?|\|\||&&|[+\-*\/=|&^~!]|\b(?:AND|NOT|OR)\b/i,punctuation:/[\[,;:()\]]/}}return QM}var JM,PH;function xUe(){if(PH)return JM;PH=1,JM=e,e.displayName="icon",e.aliases=[];function e(t){t.languages.icon={comment:/#.*/,string:{pattern:/(["'])(?:(?!\1)[^\\\r\n_]|\\.|_(?!\1)(?:\r\n|[\s\S]))*\1/,greedy:!0},number:/\b(?:\d+r[a-z\d]+|\d+(?:\.\d+)?(?:e[+-]?\d+)?)\b|\.\d+\b/i,"builtin-keyword":{pattern:/&(?:allocated|ascii|clock|collections|cset|current|date|dateline|digits|dump|e|error(?:number|text|value)?|errout|fail|features|file|host|input|lcase|letters|level|line|main|null|output|phi|pi|pos|progname|random|regions|source|storage|subject|time|trace|ucase|version)\b/,alias:"variable"},directive:{pattern:/\$\w+/,alias:"builtin"},keyword:/\b(?:break|by|case|create|default|do|else|end|every|fail|global|if|initial|invocable|link|local|next|not|of|procedure|record|repeat|return|static|suspend|then|to|until|while)\b/,function:/\b(?!\d)\w+(?=\s*[({]|\s*!\s*\[)/,operator:/[+-]:(?!=)|(?:[\/?@^%&]|\+\+?|--?|==?=?|~==?=?|\*\*?|\|\|\|?|<(?:->?|>?=?)(?::=)?|:(?:=:?)?|[!.\\|~]/,punctuation:/[\[\](){},;]/}}return JM}var ZM,AH;function _Ue(){if(AH)return ZM;AH=1,ZM=e,e.displayName="icuMessageFormat",e.aliases=[];function e(t){(function(n){function r(d,f){return f<=0?/[]/.source:d.replace(//g,function(){return r(d,f-1)})}var a=/'[{}:=,](?:[^']|'')*'(?!')/,i={pattern:/''/,greedy:!0,alias:"operator"},o={pattern:a,greedy:!0,inside:{escape:i}},l=r(/\{(?:[^{}']|'(?![{},'])|''||)*\}/.source.replace(//g,function(){return a.source}),8),u={pattern:RegExp(l),inside:{message:{pattern:/^(\{)[\s\S]+(?=\}$)/,lookbehind:!0,inside:null},"message-delimiter":{pattern:/./,alias:"punctuation"}}};n.languages["icu-message-format"]={argument:{pattern:RegExp(l),greedy:!0,inside:{content:{pattern:/^(\{)[\s\S]+(?=\}$)/,lookbehind:!0,inside:{"argument-name":{pattern:/^(\s*)[^{}:=,\s]+/,lookbehind:!0},"choice-style":{pattern:/^(\s*,\s*choice\s*,\s*)\S(?:[\s\S]*\S)?/,lookbehind:!0,inside:{punctuation:/\|/,range:{pattern:/^(\s*)[+-]?(?:\d+(?:\.\d*)?|\u221e)\s*[<#\u2264]/,lookbehind:!0,inside:{operator:/[<#\u2264]/,number:/\S+/}},rest:null}},"plural-style":{pattern:/^(\s*,\s*(?:plural|selectordinal)\s*,\s*)\S(?:[\s\S]*\S)?/,lookbehind:!0,inside:{offset:/^offset:\s*\d+/,"nested-message":u,selector:{pattern:/=\d+|[^{}:=,\s]+/,inside:{keyword:/^(?:few|many|one|other|two|zero)$/}}}},"select-style":{pattern:/^(\s*,\s*select\s*,\s*)\S(?:[\s\S]*\S)?/,lookbehind:!0,inside:{"nested-message":u,selector:{pattern:/[^{}:=,\s]+/,inside:{keyword:/^other$/}}}},keyword:/\b(?:choice|plural|select|selectordinal)\b/,"arg-type":{pattern:/\b(?:date|duration|number|ordinal|spellout|time)\b/,alias:"keyword"},"arg-skeleton":{pattern:/(,\s*)::[^{}:=,\s]+/,lookbehind:!0},"arg-style":{pattern:/(,\s*)(?:currency|full|integer|long|medium|percent|short)(?=\s*$)/,lookbehind:!0},"arg-style-text":{pattern:RegExp(/(^\s*,\s*(?=\S))/.source+r(/(?:[^{}']|'[^']*'|\{(?:)?\})+/.source,8)+"$"),lookbehind:!0,alias:"string"},punctuation:/,/}},"argument-delimiter":{pattern:/./,alias:"operator"}}},escape:i,string:o},u.inside.message.inside=n.languages["icu-message-format"],n.languages["icu-message-format"].argument.inside.content.inside["choice-style"].inside.rest=n.languages["icu-message-format"]})(t)}return ZM}var eI,NH;function OUe(){if(NH)return eI;NH=1;var e=T4();eI=t,t.displayName="idris",t.aliases=["idr"];function t(n){n.register(e),n.languages.idris=n.languages.extend("haskell",{comment:{pattern:/(?:(?:--|\|\|\|).*$|\{-[\s\S]*?-\})/m},keyword:/\b(?:Type|case|class|codata|constructor|corecord|data|do|dsl|else|export|if|implementation|implicit|import|impossible|in|infix|infixl|infixr|instance|interface|let|module|mutual|namespace|of|parameters|partial|postulate|private|proof|public|quoteGoal|record|rewrite|syntax|then|total|using|where|with)\b/,builtin:void 0}),n.languages.insertBefore("idris","keyword",{"import-statement":{pattern:/(^\s*import\s+)(?:[A-Z][\w']*)(?:\.[A-Z][\w']*)*/m,lookbehind:!0,inside:{punctuation:/\./}}}),n.languages.idr=n.languages.idris}return eI}var tI,MH;function RUe(){if(MH)return tI;MH=1,tI=e,e.displayName="iecst",e.aliases=[];function e(t){t.languages.iecst={comment:[{pattern:/(^|[^\\])(?:\/\*[\s\S]*?(?:\*\/|$)|\(\*[\s\S]*?(?:\*\)|$)|\{[\s\S]*?(?:\}|$))/,lookbehind:!0,greedy:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],string:{pattern:/(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,greedy:!0},keyword:[/\b(?:END_)?(?:PROGRAM|CONFIGURATION|INTERFACE|FUNCTION_BLOCK|FUNCTION|ACTION|TRANSITION|TYPE|STRUCT|(?:INITIAL_)?STEP|NAMESPACE|LIBRARY|CHANNEL|FOLDER|RESOURCE|VAR_(?:ACCESS|CONFIG|EXTERNAL|GLOBAL|INPUT|IN_OUT|OUTPUT|TEMP)|VAR|METHOD|PROPERTY)\b/i,/\b(?:AT|BY|(?:END_)?(?:CASE|FOR|IF|REPEAT|WHILE)|CONSTANT|CONTINUE|DO|ELSE|ELSIF|EXIT|EXTENDS|FROM|GET|GOTO|IMPLEMENTS|JMP|NON_RETAIN|OF|PRIVATE|PROTECTED|PUBLIC|RETAIN|RETURN|SET|TASK|THEN|TO|UNTIL|USING|WITH|__CATCH|__ENDTRY|__FINALLY|__TRY)\b/],"class-name":/\b(?:ANY|ARRAY|BOOL|BYTE|U?(?:D|L|S)?INT|(?:D|L)?WORD|DATE(?:_AND_TIME)?|DT|L?REAL|POINTER|STRING|TIME(?:_OF_DAY)?|TOD)\b/,address:{pattern:/%[IQM][XBWDL][\d.]*|%[IQ][\d.]*/,alias:"symbol"},number:/\b(?:16#[\da-f]+|2#[01_]+|0x[\da-f]+)\b|\b(?:D|DT|T|TOD)#[\d_shmd:]*|\b[A-Z]*#[\d.,_]*|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?/i,boolean:/\b(?:FALSE|NULL|TRUE)\b/,operator:/S?R?:?=>?|&&?|\*\*?|<[=>]?|>=?|[-:^/+#]|\b(?:AND|EQ|EXPT|GE|GT|LE|LT|MOD|NE|NOT|OR|XOR)\b/,function:/\b[a-z_]\w*(?=\s*\()/i,punctuation:/[()[\].,;]/}}return tI}var nI,IH;function PUe(){if(IH)return nI;IH=1,nI=e,e.displayName="ignore",e.aliases=["gitignore","hgignore","npmignore"];function e(t){(function(n){n.languages.ignore={comment:/^#.*/m,entry:{pattern:/\S(?:.*(?:(?:\\ )|\S))?/,alias:"string",inside:{operator:/^!|\*\*?|\?/,regex:{pattern:/(^|[^\\])\[[^\[\]]*\]/,lookbehind:!0},punctuation:/\//}}},n.languages.gitignore=n.languages.ignore,n.languages.hgignore=n.languages.ignore,n.languages.npmignore=n.languages.ignore})(t)}return nI}var rI,DH;function AUe(){if(DH)return rI;DH=1,rI=e,e.displayName="inform7",e.aliases=[];function e(t){t.languages.inform7={string:{pattern:/"[^"]*"/,inside:{substitution:{pattern:/\[[^\[\]]+\]/,inside:{delimiter:{pattern:/\[|\]/,alias:"punctuation"}}}}},comment:{pattern:/\[[^\[\]]+\]/,greedy:!0},title:{pattern:/^[ \t]*(?:book|chapter|part(?! of)|section|table|volume)\b.+/im,alias:"important"},number:{pattern:/(^|[^-])(?:\b\d+(?:\.\d+)?(?:\^\d+)?(?:(?!\d)\w+)?|\b(?:eight|eleven|five|four|nine|one|seven|six|ten|three|twelve|two))\b(?!-)/i,lookbehind:!0},verb:{pattern:/(^|[^-])\b(?:answering|applying to|are|asking|attacking|be(?:ing)?|burning|buying|called|carries|carry(?! out)|carrying|climbing|closing|conceal(?:ing|s)?|consulting|contain(?:ing|s)?|cutting|drinking|dropping|eating|enclos(?:es?|ing)|entering|examining|exiting|getting|giving|going|ha(?:s|ve|ving)|hold(?:ing|s)?|impl(?:ies|y)|incorporat(?:es?|ing)|inserting|is|jumping|kissing|listening|locking|looking|mean(?:ing|s)?|opening|provid(?:es?|ing)|pulling|pushing|putting|relat(?:es?|ing)|removing|searching|see(?:ing|s)?|setting|showing|singing|sleeping|smelling|squeezing|support(?:ing|s)?|swearing|switching|taking|tasting|telling|thinking|throwing|touching|turning|tying|unlock(?:ing|s)?|var(?:ies|y|ying)|waiting|waking|waving|wear(?:ing|s)?)\b(?!-)/i,lookbehind:!0,alias:"operator"},keyword:{pattern:/(^|[^-])\b(?:after|before|carry out|check|continue the action|definition(?= *:)|do nothing|else|end (?:if|the story|unless)|every turn|if|include|instead(?: of)?|let|move|no|now|otherwise|repeat|report|resume the story|rule for|running through|say(?:ing)?|stop the action|test|try(?:ing)?|understand|unless|use|when|while|yes)\b(?!-)/i,lookbehind:!0},property:{pattern:/(^|[^-])\b(?:adjacent(?! to)|carried|closed|concealed|contained|dark|described|edible|empty|enclosed|enterable|even|female|fixed in place|full|handled|held|improper-named|incorporated|inedible|invisible|lighted|lit|lock(?:able|ed)|male|marked for listing|mentioned|negative|neuter|non-(?:empty|full|recurring)|odd|opaque|open(?:able)?|plural-named|portable|positive|privately-named|proper-named|provided|publically-named|pushable between rooms|recurring|related|rubbing|scenery|seen|singular-named|supported|swinging|switch(?:able|ed(?: off| on)?)|touch(?:able|ed)|transparent|unconcealed|undescribed|unlit|unlocked|unmarked for listing|unmentioned|unopenable|untouchable|unvisited|variable|visible|visited|wearable|worn)\b(?!-)/i,lookbehind:!0,alias:"symbol"},position:{pattern:/(^|[^-])\b(?:above|adjacent to|back side of|below|between|down|east|everywhere|front side|here|in|inside(?: from)?|north(?:east|west)?|nowhere|on(?: top of)?|other side|outside(?: from)?|parts? of|regionally in|south(?:east|west)?|through|up|west|within)\b(?!-)/i,lookbehind:!0,alias:"keyword"},type:{pattern:/(^|[^-])\b(?:actions?|activit(?:ies|y)|actors?|animals?|backdrops?|containers?|devices?|directions?|doors?|holders?|kinds?|lists?|m[ae]n|nobody|nothing|nouns?|numbers?|objects?|people|persons?|player(?:'s holdall)?|regions?|relations?|rooms?|rule(?:book)?s?|scenes?|someone|something|supporters?|tables?|texts?|things?|time|vehicles?|wom[ae]n)\b(?!-)/i,lookbehind:!0,alias:"variable"},punctuation:/[.,:;(){}]/},t.languages.inform7.string.inside.substitution.inside.rest=t.languages.inform7,t.languages.inform7.string.inside.substitution.inside.rest.text={pattern:/\S(?:\s*\S)*/,alias:"comment"}}return rI}var aI,$H;function NUe(){if($H)return aI;$H=1,aI=e,e.displayName="ini",e.aliases=[];function e(t){t.languages.ini={comment:{pattern:/(^[ \f\t\v]*)[#;][^\n\r]*/m,lookbehind:!0},section:{pattern:/(^[ \f\t\v]*)\[[^\n\r\]]*\]?/m,lookbehind:!0,inside:{"section-name":{pattern:/(^\[[ \f\t\v]*)[^ \f\t\v\]]+(?:[ \f\t\v]+[^ \f\t\v\]]+)*/,lookbehind:!0,alias:"selector"},punctuation:/\[|\]/}},key:{pattern:/(^[ \f\t\v]*)[^ \f\n\r\t\v=]+(?:[ \f\t\v]+[^ \f\n\r\t\v=]+)*(?=[ \f\t\v]*=)/m,lookbehind:!0,alias:"attr-name"},value:{pattern:/(=[ \f\t\v]*)[^ \f\n\r\t\v]+(?:[ \f\t\v]+[^ \f\n\r\t\v]+)*/,lookbehind:!0,alias:"attr-value",inside:{"inner-value":{pattern:/^("|').+(?=\1$)/,lookbehind:!0}}},punctuation:/=/}}return aI}var iI,LH;function MUe(){if(LH)return iI;LH=1,iI=e,e.displayName="io",e.aliases=[];function e(t){t.languages.io={comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?(?:\*\/|$)|\/\/.*|#.*)/,lookbehind:!0,greedy:!0},"triple-quoted-string":{pattern:/"""(?:\\[\s\S]|(?!""")[^\\])*"""/,greedy:!0,alias:"string"},string:{pattern:/"(?:\\.|[^\\\r\n"])*"/,greedy:!0},keyword:/\b(?:activate|activeCoroCount|asString|block|break|call|catch|clone|collectGarbage|compileString|continue|do|doFile|doMessage|doString|else|elseif|exit|for|foreach|forward|getEnvironmentVariable|getSlot|hasSlot|if|ifFalse|ifNil|ifNilEval|ifTrue|isActive|isNil|isResumable|list|message|method|parent|pass|pause|perform|performWithArgList|print|println|proto|raise|raiseResumable|removeSlot|resend|resume|schedulerSleepSeconds|self|sender|setSchedulerSleepSeconds|setSlot|shallowCopy|slotNames|super|system|then|thisBlock|thisContext|try|type|uniqueId|updateSlot|wait|while|write|yield)\b/,builtin:/\b(?:Array|AudioDevice|AudioMixer|BigNum|Block|Box|Buffer|CFunction|CGI|Color|Curses|DBM|DNSResolver|DOConnection|DOProxy|DOServer|Date|Directory|Duration|DynLib|Error|Exception|FFT|File|Fnmatch|Font|Future|GL|GLE|GLScissor|GLU|GLUCylinder|GLUQuadric|GLUSphere|GLUT|Host|Image|Importer|LinkList|List|Lobby|Locals|MD5|MP3Decoder|MP3Encoder|Map|Message|Movie|Notification|Number|Object|OpenGL|Point|Protos|Random|Regex|SGML|SGMLElement|SGMLParser|SQLite|Sequence|Server|ShowMessage|SleepyCat|SleepyCatCursor|Socket|SocketManager|Sound|Soup|Store|String|Tree|UDPSender|UPDReceiver|URL|User|Warning|WeakLink)\b/,boolean:/\b(?:false|nil|true)\b/,number:/\b0x[\da-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e-?\d+)?/i,operator:/[=!*/%+\-^&|]=|>>?=?|<+*\-%$|,#][.:]?|[?^]\.?|[;\[]:?|[~}"i][.:]|[ACeEIjLor]\.|(?:[_\/\\qsux]|_?\d):)/,alias:"keyword"},number:/\b_?(?:(?!\d:)\d+(?:\.\d+)?(?:(?:ad|ar|[ejpx])_?\d+(?:\.\d+)?)*(?:b_?[\da-z]+(?:\.[\da-z]+)?)?|_\b(?!\.))/,adverb:{pattern:/[~}]|[\/\\]\.?|[bfM]\.|t[.:]/,alias:"builtin"},operator:/[=a][.:]|_\./,conjunction:{pattern:/&(?:\.:?|:)?|[.:@][.:]?|[!D][.:]|[;dHT]\.|`:?|[\^LS]:|"/,alias:"variable"},punctuation:/[()]/}}return oI}var sI,jH;function C4(){if(jH)return sI;jH=1,sI=e,e.displayName="java",e.aliases=[];function e(t){(function(n){var r=/\b(?:abstract|assert|boolean|break|byte|case|catch|char|class|const|continue|default|do|double|else|enum|exports|extends|final|finally|float|for|goto|if|implements|import|instanceof|int|interface|long|module|native|new|non-sealed|null|open|opens|package|permits|private|protected|provides|public|record|requires|return|sealed|short|static|strictfp|super|switch|synchronized|this|throw|throws|to|transient|transitive|try|uses|var|void|volatile|while|with|yield)\b/,a=/(^|[^\w.])(?:[a-z]\w*\s*\.\s*)*(?:[A-Z]\w*\s*\.\s*)*/.source,i={pattern:RegExp(a+/[A-Z](?:[\d_A-Z]*[a-z]\w*)?\b/.source),lookbehind:!0,inside:{namespace:{pattern:/^[a-z]\w*(?:\s*\.\s*[a-z]\w*)*(?:\s*\.)?/,inside:{punctuation:/\./}},punctuation:/\./}};n.languages.java=n.languages.extend("clike",{string:{pattern:/(^|[^\\])"(?:\\.|[^"\\\r\n])*"/,lookbehind:!0,greedy:!0},"class-name":[i,{pattern:RegExp(a+/[A-Z]\w*(?=\s+\w+\s*[;,=()])/.source),lookbehind:!0,inside:i.inside}],keyword:r,function:[n.languages.clike.function,{pattern:/(::\s*)[a-z_]\w*/,lookbehind:!0}],number:/\b0b[01][01_]*L?\b|\b0x(?:\.[\da-f_p+-]+|[\da-f_]+(?:\.[\da-f_p+-]+)?)\b|(?:\b\d[\d_]*(?:\.[\d_]*)?|\B\.\d[\d_]*)(?:e[+-]?\d[\d_]*)?[dfl]?/i,operator:{pattern:/(^|[^.])(?:<<=?|>>>?=?|->|--|\+\+|&&|\|\||::|[?:~]|[-+*/%&|^!=<>]=?)/m,lookbehind:!0}}),n.languages.insertBefore("java","string",{"triple-quoted-string":{pattern:/"""[ \t]*[\r\n](?:(?:"|"")?(?:\\.|[^"\\]))*"""/,greedy:!0,alias:"string"},char:{pattern:/'(?:\\.|[^'\\\r\n]){1,6}'/,greedy:!0}}),n.languages.insertBefore("java","class-name",{annotation:{pattern:/(^|[^.])@\w+(?:\s*\.\s*\w+)*/,lookbehind:!0,alias:"punctuation"},generics:{pattern:/<(?:[\w\s,.?]|&(?!&)|<(?:[\w\s,.?]|&(?!&)|<(?:[\w\s,.?]|&(?!&)|<(?:[\w\s,.?]|&(?!&))*>)*>)*>)*>/,inside:{"class-name":i,keyword:r,punctuation:/[<>(),.:]/,operator:/[?&|]/}},namespace:{pattern:RegExp(/(\b(?:exports|import(?:\s+static)?|module|open|opens|package|provides|requires|to|transitive|uses|with)\s+)(?!)[a-z]\w*(?:\.[a-z]\w*)*\.?/.source.replace(//g,function(){return r.source})),lookbehind:!0,inside:{punctuation:/\./}}})})(t)}return sI}var lI,UH;function hO(){if(UH)return lI;UH=1,lI=e,e.displayName="javadoclike",e.aliases=[];function e(t){(function(n){var r=n.languages.javadoclike={parameter:{pattern:/(^[\t ]*(?:\/{3}|\*|\/\*\*)\s*@(?:arg|arguments|param)\s+)\w+/m,lookbehind:!0},keyword:{pattern:/(^[\t ]*(?:\/{3}|\*|\/\*\*)\s*|\{)@[a-z][a-zA-Z-]+\b/m,lookbehind:!0},punctuation:/[{}]/};function a(o,l){var u="doc-comment",d=n.languages[o];if(d){var f=d[u];if(!f){var g={};g[u]={pattern:/(^|[^\\])\/\*\*[^/][\s\S]*?(?:\*\/|$)/,lookbehind:!0,alias:"comment"},d=n.languages.insertBefore(o,"comment",g),f=d[u]}if(f instanceof RegExp&&(f=d[u]={pattern:f}),Array.isArray(f))for(var y=0,h=f.length;y)?|/.source.replace(//g,function(){return o});a.languages.javadoc=a.languages.extend("javadoclike",{}),a.languages.insertBefore("javadoc","keyword",{reference:{pattern:RegExp(/(@(?:exception|link|linkplain|see|throws|value)\s+(?:\*\s*)?)/.source+"(?:"+l+")"),lookbehind:!0,inside:{function:{pattern:/(#\s*)\w+(?=\s*\()/,lookbehind:!0},field:{pattern:/(#\s*)\w+/,lookbehind:!0},namespace:{pattern:/\b(?:[a-z]\w*\s*\.\s*)+/,inside:{punctuation:/\./}},"class-name":/\b[A-Z]\w*/,keyword:a.languages.java.keyword,punctuation:/[#()[\],.]/}},"class-name":{pattern:/(@param\s+)<[A-Z]\w*>/,lookbehind:!0,inside:{punctuation:/[.<>]/}},"code-section":[{pattern:/(\{@code\s+(?!\s))(?:[^\s{}]|\s+(?![\s}])|\{(?:[^{}]|\{(?:[^{}]|\{(?:[^{}]|\{[^{}]*\})*\})*\})*\})+(?=\s*\})/,lookbehind:!0,inside:{code:{pattern:i,lookbehind:!0,inside:a.languages.java,alias:"language-java"}}},{pattern:/(<(code|pre|tt)>(?!)\s*)\S(?:\S|\s+\S)*?(?=\s*<\/\2>)/,lookbehind:!0,inside:{line:{pattern:i,lookbehind:!0,inside:{tag:a.languages.markup.tag,entity:a.languages.markup.entity,code:{pattern:/.+/,inside:a.languages.java,alias:"language-java"}}}}}],tag:a.languages.markup.tag,entity:a.languages.markup.entity}),a.languages.javadoclike.addSupport("java",a.languages.javadoc)})(r)}return uI}var cI,WH;function $Ue(){if(WH)return cI;WH=1,cI=e,e.displayName="javastacktrace",e.aliases=[];function e(t){t.languages.javastacktrace={summary:{pattern:/^([\t ]*)(?:(?:Caused by:|Suppressed:|Exception in thread "[^"]*")[\t ]+)?[\w$.]+(?::.*)?$/m,lookbehind:!0,inside:{keyword:{pattern:/^([\t ]*)(?:(?:Caused by|Suppressed)(?=:)|Exception in thread)/m,lookbehind:!0},string:{pattern:/^(\s*)"[^"]*"/,lookbehind:!0},exceptions:{pattern:/^(:?\s*)[\w$.]+(?=:|$)/,lookbehind:!0,inside:{"class-name":/[\w$]+$/,namespace:/\b[a-z]\w*\b/,punctuation:/\./}},message:{pattern:/(:\s*)\S.*/,lookbehind:!0,alias:"string"},punctuation:/:/}},"stack-frame":{pattern:/^([\t ]*)at (?:[\w$./]|@[\w$.+-]*\/)+(?:)?\([^()]*\)/m,lookbehind:!0,inside:{keyword:{pattern:/^(\s*)at(?= )/,lookbehind:!0},source:[{pattern:/(\()\w+\.\w+:\d+(?=\))/,lookbehind:!0,inside:{file:/^\w+\.\w+/,punctuation:/:/,"line-number":{pattern:/\b\d+\b/,alias:"number"}}},{pattern:/(\()[^()]*(?=\))/,lookbehind:!0,inside:{keyword:/^(?:Native Method|Unknown Source)$/}}],"class-name":/[\w$]+(?=\.(?:|[\w$]+)\()/,function:/(?:|[\w$]+)(?=\()/,"class-loader":{pattern:/(\s)[a-z]\w*(?:\.[a-z]\w*)*(?=\/[\w@$.]*\/)/,lookbehind:!0,alias:"namespace",inside:{punctuation:/\./}},module:{pattern:/([\s/])[a-z]\w*(?:\.[a-z]\w*)*(?:@[\w$.+-]*)?(?=\/)/,lookbehind:!0,inside:{version:{pattern:/(@)[\s\S]+/,lookbehind:!0,alias:"number"},punctuation:/[@.]/}},namespace:{pattern:/(?:\b[a-z]\w*\.)+/,inside:{punctuation:/\./}},punctuation:/[()/.]/}},more:{pattern:/^([\t ]*)\.{3} \d+ [a-z]+(?: [a-z]+)*/m,lookbehind:!0,inside:{punctuation:/\.{3}/,number:/\d+/,keyword:/\b[a-z]+(?: [a-z]+)*\b/}}}}return cI}var dI,zH;function LUe(){if(zH)return dI;zH=1,dI=e,e.displayName="jexl",e.aliases=[];function e(t){t.languages.jexl={string:/(["'])(?:\\[\s\S]|(?!\1)[^\\])*\1/,transform:{pattern:/(\|\s*)[a-zA-Zа-яА-Я_\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u00FF$][\wа-яА-Я\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u00FF$]*/,alias:"function",lookbehind:!0},function:/[a-zA-Zа-яА-Я_\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u00FF$][\wа-яА-Я\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u00FF$]*\s*(?=\()/,number:/\b\d+(?:\.\d+)?\b|\B\.\d+\b/,operator:/[<>!]=?|-|\+|&&|==|\|\|?|\/\/?|[?:*^%]/,boolean:/\b(?:false|true)\b/,keyword:/\bin\b/,punctuation:/[{}[\](),.]/}}return dI}var fI,qH;function FUe(){if(qH)return fI;qH=1,fI=e,e.displayName="jolie",e.aliases=[];function e(t){t.languages.jolie=t.languages.extend("clike",{string:{pattern:/(^|[^\\])"(?:\\[\s\S]|[^"\\])*"/,lookbehind:!0,greedy:!0},"class-name":{pattern:/((?:\b(?:as|courier|embed|in|inputPort|outputPort|service)\b|@)[ \t]*)\w+/,lookbehind:!0},keyword:/\b(?:as|cH|comp|concurrent|constants|courier|cset|csets|default|define|else|embed|embedded|execution|exit|extender|for|foreach|forward|from|global|if|import|in|include|init|inputPort|install|instanceof|interface|is_defined|linkIn|linkOut|main|new|nullProcess|outputPort|over|private|provide|public|scope|sequential|service|single|spawn|synchronized|this|throw|throws|type|undef|until|while|with)\b/,function:/\b[a-z_]\w*(?=[ \t]*[@(])/i,number:/(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?l?/i,operator:/-[-=>]?|\+[+=]?|<[<=]?|[>=*!]=?|&&|\|\||[?\/%^@|]/,punctuation:/[()[\]{},;.:]/,builtin:/\b(?:Byte|any|bool|char|double|enum|float|int|length|long|ranges|regex|string|undefined|void)\b/}),t.languages.insertBefore("jolie","keyword",{aggregates:{pattern:/(\bAggregates\s*:\s*)(?:\w+(?:\s+with\s+\w+)?\s*,\s*)*\w+(?:\s+with\s+\w+)?/,lookbehind:!0,inside:{keyword:/\bwith\b/,"class-name":/\w+/,punctuation:/,/}},redirects:{pattern:/(\bRedirects\s*:\s*)(?:\w+\s*=>\s*\w+\s*,\s*)*(?:\w+\s*=>\s*\w+)/,lookbehind:!0,inside:{punctuation:/,/,"class-name":/\w+/,operator:/=>/}},property:{pattern:/\b(?:Aggregates|[Ii]nterfaces|Java|Javascript|Jolie|[Ll]ocation|OneWay|[Pp]rotocol|Redirects|RequestResponse)\b(?=[ \t]*:)/}})}return fI}var pI,HH;function jUe(){if(HH)return pI;HH=1,pI=e,e.displayName="jq",e.aliases=[];function e(t){(function(n){var r=/\\\((?:[^()]|\([^()]*\))*\)/.source,a=RegExp(/(^|[^\\])"(?:[^"\r\n\\]|\\[^\r\n(]|__)*"/.source.replace(/__/g,function(){return r})),i={interpolation:{pattern:RegExp(/((?:^|[^\\])(?:\\{2})*)/.source+r),lookbehind:!0,inside:{content:{pattern:/^(\\\()[\s\S]+(?=\)$)/,lookbehind:!0,inside:null},punctuation:/^\\\(|\)$/}}},o=n.languages.jq={comment:/#.*/,property:{pattern:RegExp(a.source+/(?=\s*:(?!:))/.source),lookbehind:!0,greedy:!0,inside:i},string:{pattern:a,lookbehind:!0,greedy:!0,inside:i},function:{pattern:/(\bdef\s+)[a-z_]\w+/i,lookbehind:!0},variable:/\B\$\w+/,"property-literal":{pattern:/\b[a-z_]\w*(?=\s*:(?!:))/i,alias:"property"},keyword:/\b(?:as|break|catch|def|elif|else|end|foreach|if|import|include|label|module|modulemeta|null|reduce|then|try|while)\b/,boolean:/\b(?:false|true)\b/,number:/(?:\b\d+\.|\B\.)?\b\d+(?:[eE][+-]?\d+)?\b/,operator:[{pattern:/\|=?/,alias:"pipe"},/\.\.|[!=<>]?=|\?\/\/|\/\/=?|[-+*/%]=?|[<>?]|\b(?:and|not|or)\b/],"c-style-function":{pattern:/\b[a-z_]\w*(?=\s*\()/i,alias:"function"},punctuation:/::|[()\[\]{},:;]|\.(?=\s*[\[\w$])/,dot:{pattern:/\./,alias:"important"}};i.interpolation.inside.content.inside=o})(t)}return pI}var hI,VH;function UUe(){if(VH)return hI;VH=1,hI=e,e.displayName="jsExtras",e.aliases=[];function e(t){(function(n){n.languages.insertBefore("javascript","function-variable",{"method-variable":{pattern:RegExp("(\\.\\s*)"+n.languages.javascript["function-variable"].pattern.source),lookbehind:!0,alias:["function-variable","method","function","property-access"]}}),n.languages.insertBefore("javascript","function",{method:{pattern:RegExp("(\\.\\s*)"+n.languages.javascript.function.source),lookbehind:!0,alias:["function","property-access"]}}),n.languages.insertBefore("javascript","constant",{"known-class-name":[{pattern:/\b(?:(?:Float(?:32|64)|(?:Int|Uint)(?:8|16|32)|Uint8Clamped)?Array|ArrayBuffer|BigInt|Boolean|DataView|Date|Error|Function|Intl|JSON|(?:Weak)?(?:Map|Set)|Math|Number|Object|Promise|Proxy|Reflect|RegExp|String|Symbol|WebAssembly)\b/,alias:"class-name"},{pattern:/\b(?:[A-Z]\w*)Error\b/,alias:"class-name"}]});function r(d,f){return RegExp(d.replace(//g,function(){return/(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*/.source}),f)}n.languages.insertBefore("javascript","keyword",{imports:{pattern:r(/(\bimport\b\s*)(?:(?:\s*,\s*(?:\*\s*as\s+|\{[^{}]*\}))?|\*\s*as\s+|\{[^{}]*\})(?=\s*\bfrom\b)/.source),lookbehind:!0,inside:n.languages.javascript},exports:{pattern:r(/(\bexport\b\s*)(?:\*(?:\s*as\s+)?(?=\s*\bfrom\b)|\{[^{}]*\})/.source),lookbehind:!0,inside:n.languages.javascript}}),n.languages.javascript.keyword.unshift({pattern:/\b(?:as|default|export|from|import)\b/,alias:"module"},{pattern:/\b(?:await|break|catch|continue|do|else|finally|for|if|return|switch|throw|try|while|yield)\b/,alias:"control-flow"},{pattern:/\bnull\b/,alias:["null","nil"]},{pattern:/\bundefined\b/,alias:"nil"}),n.languages.insertBefore("javascript","operator",{spread:{pattern:/\.{3}/,alias:"operator"},arrow:{pattern:/=>/,alias:"operator"}}),n.languages.insertBefore("javascript","punctuation",{"property-access":{pattern:r(/(\.\s*)#?/.source),lookbehind:!0},"maybe-class-name":{pattern:/(^|[^$\w\xA0-\uFFFF])[A-Z][$\w\xA0-\uFFFF]+/,lookbehind:!0},dom:{pattern:/\b(?:document|(?:local|session)Storage|location|navigator|performance|window)\b/,alias:"variable"},console:{pattern:/\bconsole(?=\s*\.)/,alias:"class-name"}});for(var a=["function","function-variable","method","method-variable","property-access"],i=0;i=I.length)return;var Q=j[z];if(typeof Q=="string"||typeof Q.content=="string"){var ue=I[_],re=typeof Q=="string"?Q:Q.content,me=re.indexOf(ue);if(me!==-1){++_;var ge=re.substring(0,me),W=g(A[ue]),G=re.substring(me+ue.length),q=[];if(ge&&q.push(ge),q.push(W),G){var ce=[G];L(ce),q.push.apply(q,ce)}typeof Q=="string"?(j.splice.apply(j,[z,1].concat(q)),z+=q.length-1):Q.content=q}}else{var H=Q.content;Array.isArray(H)?L(H):L([H])}}}return L(N),new n.Token(C,N,"language-"+C,E)}var h={javascript:!0,js:!0,typescript:!0,ts:!0,jsx:!0,tsx:!0};n.hooks.add("after-tokenize",function(E){if(!(E.language in h))return;function T(C){for(var k=0,_=C.length;k<_;k++){var A=C[k];if(typeof A!="string"){var P=A.content;if(!Array.isArray(P)){typeof P!="string"&&T([P]);continue}if(A.type==="template-string"){var N=P[1];if(P.length===3&&typeof N!="string"&&N.type==="embedded-code"){var I=v(N),L=N.alias,j=Array.isArray(L)?L[0]:L,z=n.languages[j];if(!z)continue;P[1]=y(I,z,j)}}else T(P)}}}T(E.tokens)});function v(E){return typeof E=="string"?E:Array.isArray(E)?E.map(v).join(""):v(E.content)}})(t)}return mI}var gI,YH;function k4(){if(YH)return gI;YH=1,gI=e,e.displayName="typescript",e.aliases=["ts"];function e(t){(function(n){n.languages.typescript=n.languages.extend("javascript",{"class-name":{pattern:/(\b(?:class|extends|implements|instanceof|interface|new|type)\s+)(?!keyof\b)(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?:\s*<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>)?/,lookbehind:!0,greedy:!0,inside:null},builtin:/\b(?:Array|Function|Promise|any|boolean|console|never|number|string|symbol|unknown)\b/}),n.languages.typescript.keyword.push(/\b(?:abstract|declare|is|keyof|readonly|require)\b/,/\b(?:asserts|infer|interface|module|namespace|type)\b(?=\s*(?:[{_$a-zA-Z\xA0-\uFFFF]|$))/,/\btype\b(?=\s*(?:[\{*]|$))/),delete n.languages.typescript.parameter,delete n.languages.typescript["literal-property"];var r=n.languages.extend("typescript",{});delete r["class-name"],n.languages.typescript["class-name"].inside=r,n.languages.insertBefore("typescript","function",{decorator:{pattern:/@[$\w\xA0-\uFFFF]+/,inside:{at:{pattern:/^@/,alias:"operator"},function:/^[\s\S]+/}},"generic-function":{pattern:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>(?=\s*\()/,greedy:!0,inside:{function:/^#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*/,generic:{pattern:/<[\s\S]+/,alias:"class-name",inside:r}}}}),n.languages.ts=n.languages.typescript})(t)}return gI}var vI,KH;function WUe(){if(KH)return vI;KH=1;var e=hO(),t=k4();vI=n,n.displayName="jsdoc",n.aliases=[];function n(r){r.register(e),r.register(t),(function(a){var i=a.languages.javascript,o=/\{(?:[^{}]|\{(?:[^{}]|\{[^{}]*\})*\})+\}/.source,l="(@(?:arg|argument|param|property)\\s+(?:"+o+"\\s+)?)";a.languages.jsdoc=a.languages.extend("javadoclike",{parameter:{pattern:RegExp(l+/(?:(?!\s)[$\w\xA0-\uFFFF.])+(?=\s|$)/.source),lookbehind:!0,inside:{punctuation:/\./}}}),a.languages.insertBefore("jsdoc","keyword",{"optional-parameter":{pattern:RegExp(l+/\[(?:(?!\s)[$\w\xA0-\uFFFF.])+(?:=[^[\]]+)?\](?=\s|$)/.source),lookbehind:!0,inside:{parameter:{pattern:/(^\[)[$\w\xA0-\uFFFF\.]+/,lookbehind:!0,inside:{punctuation:/\./}},code:{pattern:/(=)[\s\S]*(?=\]$)/,lookbehind:!0,inside:i,alias:"language-javascript"},punctuation:/[=[\]]/}},"class-name":[{pattern:RegExp(/(@(?:augments|class|extends|interface|memberof!?|template|this|typedef)\s+(?:\s+)?)[A-Z]\w*(?:\.[A-Z]\w*)*/.source.replace(//g,function(){return o})),lookbehind:!0,inside:{punctuation:/\./}},{pattern:RegExp("(@[a-z]+\\s+)"+o),lookbehind:!0,inside:{string:i.string,number:i.number,boolean:i.boolean,keyword:a.languages.typescript.keyword,operator:/=>|\.\.\.|[&|?:*]/,punctuation:/[.,;=<>{}()[\]]/}}],example:{pattern:/(@example\s+(?!\s))(?:[^@\s]|\s+(?!\s))+?(?=\s*(?:\*\s*)?(?:@\w|\*\/))/,lookbehind:!0,inside:{code:{pattern:/^([\t ]*(?:\*\s*)?)\S.*$/m,lookbehind:!0,inside:i,alias:"language-javascript"}}}}),a.languages.javadoclike.addSupport("javascript",a.languages.jsdoc)})(r)}return vI}var yI,XH;function x4(){if(XH)return yI;XH=1,yI=e,e.displayName="json",e.aliases=["webmanifest"];function e(t){t.languages.json={property:{pattern:/(^|[^\\])"(?:\\.|[^\\"\r\n])*"(?=\s*:)/,lookbehind:!0,greedy:!0},string:{pattern:/(^|[^\\])"(?:\\.|[^\\"\r\n])*"(?!\s*:)/,lookbehind:!0,greedy:!0},comment:{pattern:/\/\/.*|\/\*[\s\S]*?(?:\*\/|$)/,greedy:!0},number:/-?\b\d+(?:\.\d+)?(?:e[+-]?\d+)?\b/i,punctuation:/[{}[\],]/,operator:/:/,boolean:/\b(?:false|true)\b/,null:{pattern:/\bnull\b/,alias:"keyword"}},t.languages.webmanifest=t.languages.json}return yI}var bI,QH;function zUe(){if(QH)return bI;QH=1;var e=x4();bI=t,t.displayName="json5",t.aliases=[];function t(n){n.register(e),(function(r){var a=/("|')(?:\\(?:\r\n?|\n|.)|(?!\1)[^\\\r\n])*\1/;r.languages.json5=r.languages.extend("json",{property:[{pattern:RegExp(a.source+"(?=\\s*:)"),greedy:!0},{pattern:/(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*:)/,alias:"unquoted"}],string:{pattern:a,greedy:!0},number:/[+-]?\b(?:NaN|Infinity|0x[a-fA-F\d]+)\b|[+-]?(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[eE][+-]?\d+\b)?/})})(n)}return bI}var wI,JH;function qUe(){if(JH)return wI;JH=1;var e=x4();wI=t,t.displayName="jsonp",t.aliases=[];function t(n){n.register(e),n.languages.jsonp=n.languages.extend("json",{punctuation:/[{}[\]();,.]/}),n.languages.insertBefore("jsonp","punctuation",{function:/(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*\()/})}return wI}var SI,ZH;function HUe(){if(ZH)return SI;ZH=1,SI=e,e.displayName="jsstacktrace",e.aliases=[];function e(t){t.languages.jsstacktrace={"error-message":{pattern:/^\S.*/m,alias:"string"},"stack-frame":{pattern:/(^[ \t]+)at[ \t].*/m,lookbehind:!0,inside:{"not-my-code":{pattern:/^at[ \t]+(?!\s)(?:node\.js||.*(?:node_modules|\(\)|\(|$|\(internal\/|\(node\.js)).*/m,alias:"comment"},filename:{pattern:/(\bat\s+(?!\s)|\()(?:[a-zA-Z]:)?[^():]+(?=:)/,lookbehind:!0,alias:"url"},function:{pattern:/(\bat\s+(?:new\s+)?)(?!\s)[_$a-zA-Z\xA0-\uFFFF<][.$\w\xA0-\uFFFF<>]*/,lookbehind:!0,inside:{punctuation:/\./}},punctuation:/[()]/,keyword:/\b(?:at|new)\b/,alias:{pattern:/\[(?:as\s+)?(?!\s)[_$a-zA-Z\xA0-\uFFFF][$\w\xA0-\uFFFF]*\]/,alias:"variable"},"line-number":{pattern:/:\d+(?::\d+)?\b/,alias:"number",inside:{punctuation:/:/}}}}}}return SI}var EI,e7;function Gre(){if(e7)return EI;e7=1,EI=e,e.displayName="jsx",e.aliases=[];function e(t){(function(n){var r=n.util.clone(n.languages.javascript),a=/(?:\s|\/\/.*(?!.)|\/\*(?:[^*]|\*(?!\/))\*\/)/.source,i=/(?:\{(?:\{(?:\{[^{}]*\}|[^{}])*\}|[^{}])*\})/.source,o=/(?:\{*\.{3}(?:[^{}]|)*\})/.source;function l(f,g){return f=f.replace(//g,function(){return a}).replace(//g,function(){return i}).replace(//g,function(){return o}),RegExp(f,g)}o=l(o).source,n.languages.jsx=n.languages.extend("markup",r),n.languages.jsx.tag.pattern=l(/<\/?(?:[\w.:-]+(?:+(?:[\w.:$-]+(?:=(?:"(?:\\[\s\S]|[^\\"])*"|'(?:\\[\s\S]|[^\\'])*'|[^\s{'"/>=]+|))?|))**\/?)?>/.source),n.languages.jsx.tag.inside.tag.pattern=/^<\/?[^\s>\/]*/,n.languages.jsx.tag.inside["attr-value"].pattern=/=(?!\{)(?:"(?:\\[\s\S]|[^\\"])*"|'(?:\\[\s\S]|[^\\'])*'|[^\s'">]+)/,n.languages.jsx.tag.inside.tag.inside["class-name"]=/^[A-Z]\w*(?:\.[A-Z]\w*)*$/,n.languages.jsx.tag.inside.comment=r.comment,n.languages.insertBefore("inside","attr-name",{spread:{pattern:l(//.source),inside:n.languages.jsx}},n.languages.jsx.tag),n.languages.insertBefore("inside","special-attr",{script:{pattern:l(/=/.source),alias:"language-javascript",inside:{"script-punctuation":{pattern:/^=(?=\{)/,alias:"punctuation"},rest:n.languages.jsx}}},n.languages.jsx.tag);var u=function(f){return f?typeof f=="string"?f:typeof f.content=="string"?f.content:f.content.map(u).join(""):""},d=function(f){for(var g=[],y=0;y0&&g[g.length-1].tagName===u(h.content[0].content[1])&&g.pop():h.content[h.content.length-1].content==="/>"||g.push({tagName:u(h.content[0].content[1]),openedBraces:0}):g.length>0&&h.type==="punctuation"&&h.content==="{"?g[g.length-1].openedBraces++:g.length>0&&g[g.length-1].openedBraces>0&&h.type==="punctuation"&&h.content==="}"?g[g.length-1].openedBraces--:v=!0),(v||typeof h=="string")&&g.length>0&&g[g.length-1].openedBraces===0){var E=u(h);y0&&(typeof f[y-1]=="string"||f[y-1].type==="plain-text")&&(E=u(f[y-1])+E,f.splice(y-1,1),y--),f[y]=new n.Token("plain-text",E,null,E)}h.content&&typeof h.content!="string"&&d(h.content)}};n.hooks.add("after-tokenize",function(f){f.language!=="jsx"&&f.language!=="tsx"||d(f.tokens)})})(t)}return EI}var TI,t7;function VUe(){if(t7)return TI;t7=1,TI=e,e.displayName="julia",e.aliases=[];function e(t){t.languages.julia={comment:{pattern:/(^|[^\\])(?:#=(?:[^#=]|=(?!#)|#(?!=)|#=(?:[^#=]|=(?!#)|#(?!=))*=#)*=#|#.*)/,lookbehind:!0},regex:{pattern:/r"(?:\\.|[^"\\\r\n])*"[imsx]{0,4}/,greedy:!0},string:{pattern:/"""[\s\S]+?"""|(?:\b\w+)?"(?:\\.|[^"\\\r\n])*"|`(?:[^\\`\r\n]|\\.)*`/,greedy:!0},char:{pattern:/(^|[^\w'])'(?:\\[^\r\n][^'\r\n]*|[^\\\r\n])'/,lookbehind:!0,greedy:!0},keyword:/\b(?:abstract|baremodule|begin|bitstype|break|catch|ccall|const|continue|do|else|elseif|end|export|finally|for|function|global|if|immutable|import|importall|in|let|local|macro|module|print|println|quote|return|struct|try|type|typealias|using|while)\b/,boolean:/\b(?:false|true)\b/,number:/(?:\b(?=\d)|\B(?=\.))(?:0[box])?(?:[\da-f]+(?:_[\da-f]+)*(?:\.(?:\d+(?:_\d+)*)?)?|\.\d+(?:_\d+)*)(?:[efp][+-]?\d+(?:_\d+)*)?j?/i,operator:/&&|\|\||[-+*^%÷⊻&$\\]=?|\/[\/=]?|!=?=?|\|[=>]?|<(?:<=?|[=:|])?|>(?:=|>>?=?)?|==?=?|[~≠≤≥'√∛]/,punctuation:/::?|[{}[\]();,.?]/,constant:/\b(?:(?:Inf|NaN)(?:16|32|64)?|im|pi)\b|[πℯ]/}}return TI}var CI,n7;function GUe(){if(n7)return CI;n7=1,CI=e,e.displayName="keepalived",e.aliases=[];function e(t){t.languages.keepalived={comment:{pattern:/[#!].*/,greedy:!0},string:{pattern:/(^|[^\\])(?:"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n])*')/,lookbehind:!0,greedy:!0},ip:{pattern:RegExp(/\b(?:(?:(?:[\da-f]{1,4}:){7}[\da-f]{1,4}|(?:[\da-f]{1,4}:){6}:[\da-f]{1,4}|(?:[\da-f]{1,4}:){5}:(?:[\da-f]{1,4}:)?[\da-f]{1,4}|(?:[\da-f]{1,4}:){4}:(?:[\da-f]{1,4}:){0,2}[\da-f]{1,4}|(?:[\da-f]{1,4}:){3}:(?:[\da-f]{1,4}:){0,3}[\da-f]{1,4}|(?:[\da-f]{1,4}:){2}:(?:[\da-f]{1,4}:){0,4}[\da-f]{1,4}|(?:[\da-f]{1,4}:){6}|(?:[\da-f]{1,4}:){0,5}:|::(?:[\da-f]{1,4}:){0,5}|[\da-f]{1,4}::(?:[\da-f]{1,4}:){0,5}[\da-f]{1,4}|::(?:[\da-f]{1,4}:){0,6}[\da-f]{1,4}|(?:[\da-f]{1,4}:){1,7}:)(?:\/\d{1,3})?|(?:\/\d{1,2})?)\b/.source.replace(//g,function(){return/(?:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]\d|\d)\.){3}(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]\d|\d))/.source}),"i"),alias:"number"},path:{pattern:/(\s)\/(?:[^\/\s]+\/)*[^\/\s]*|\b[a-zA-Z]:\\(?:[^\\\s]+\\)*[^\\\s]*/,lookbehind:!0,alias:"string"},variable:/\$\{?\w+\}?/,email:{pattern:/[\w-]+@[\w-]+(?:\.[\w-]{2,3}){1,2}/,alias:"string"},"conditional-configuration":{pattern:/@\^?[\w-]+/,alias:"variable"},operator:/=/,property:/\b(?:BFD_CHECK|DNS_CHECK|FILE_CHECK|HTTP_GET|MISC_CHECK|NAME|PING_CHECK|SCRIPTS|SMTP_CHECK|SSL|SSL_GET|TCP_CHECK|UDP_CHECK|accept|advert_int|alpha|auth_pass|auth_type|authentication|bfd_cpu_affinity|bfd_instance|bfd_no_swap|bfd_priority|bfd_process_name|bfd_rlimit_rttime|bfd_rt_priority|bind_if|bind_port|bindto|ca|certificate|check_unicast_src|checker|checker_cpu_affinity|checker_log_all_failures|checker_no_swap|checker_priority|checker_rlimit_rttime|checker_rt_priority|child_wait_time|connect_ip|connect_port|connect_timeout|dbus_service_name|debug|default_interface|delay|delay_before_retry|delay_loop|digest|dont_track_primary|dynamic|dynamic_interfaces|enable_(?:dbus|script_security|sni|snmp_checker|snmp_rfc|snmp_rfcv2|snmp_rfcv3|snmp_vrrp|traps)|end|fall|fast_recovery|file|flag-[123]|fork_delay|full_command|fwmark|garp_group|garp_interval|garp_lower_prio_delay|garp_lower_prio_repeat|garp_master_delay|garp_master_refresh|garp_master_refresh_repeat|garp_master_repeat|global_defs|global_tracking|gna_interval|group|ha_suspend|hashed|helo_name|higher_prio_send_advert|hoplimit|http_protocol|hysteresis|idle_tx|include|inhibit_on_failure|init_fail|init_file|instance|interface|interfaces|interval|ip_family|ipvs_process_name|keepalived.conf|kernel_rx_buf_size|key|linkbeat_interfaces|linkbeat_use_polling|log_all_failures|log_unknown_vrids|lower_prio_no_advert|lthreshold|lvs_flush|lvs_flush_onstop|lvs_method|lvs_netlink_cmd_rcv_bufs|lvs_netlink_cmd_rcv_bufs_force|lvs_netlink_monitor_rcv_bufs|lvs_netlink_monitor_rcv_bufs_force|lvs_notify_fifo|lvs_notify_fifo_script|lvs_sched|lvs_sync_daemon|max_auto_priority|max_hops|mcast_src_ip|mh-fallback|mh-port|min_auto_priority_delay|min_rx|min_tx|misc_dynamic|misc_path|misc_timeout|multiplier|name|namespace_with_ipsets|native_ipv6|neighbor_ip|net_namespace|net_namespace_ipvs|nftables|nftables_counters|nftables_ifindex|nftables_priority|no_accept|no_checker_emails|no_email_faults|nopreempt|notification_email|notification_email_from|notify|notify_backup|notify_deleted|notify_down|notify_fault|notify_fifo|notify_fifo_script|notify_master|notify_master_rx_lower_pri|notify_priority_changes|notify_stop|notify_up|old_unicast_checksum|omega|ops|param_match|passive|password|path|persistence_engine|persistence_granularity|persistence_timeout|preempt|preempt_delay|priority|process|process_monitor_rcv_bufs|process_monitor_rcv_bufs_force|process_name|process_names|promote_secondaries|protocol|proxy_arp|proxy_arp_pvlan|quorum|quorum_down|quorum_max|quorum_up|random_seed|real_server|regex|regex_max_offset|regex_min_offset|regex_no_match|regex_options|regex_stack|reload_repeat|reload_time_file|require_reply|retry|rise|router_id|rs_init_notifies|script|script_user|sh-fallback|sh-port|shutdown_script|shutdown_script_timeout|skip_check_adv_addr|smtp_alert|smtp_alert_checker|smtp_alert_vrrp|smtp_connect_timeout|smtp_helo_name|smtp_server|snmp_socket|sorry_server|sorry_server_inhibit|sorry_server_lvs_method|source_ip|start|startup_script|startup_script_timeout|state|static_ipaddress|static_routes|static_rules|status_code|step|strict_mode|sync_group_tracking_weight|terminate_delay|timeout|track_bfd|track_file|track_group|track_interface|track_process|track_script|track_src_ip|ttl|type|umask|unicast_peer|unicast_src_ip|unicast_ttl|url|use_ipvlan|use_pid_dir|use_vmac|user|uthreshold|val[123]|version|virtual_ipaddress|virtual_ipaddress_excluded|virtual_router_id|virtual_routes|virtual_rules|virtual_server|virtual_server_group|virtualhost|vmac_xmit_base|vrrp|vrrp_(?:check_unicast_src|cpu_affinity|garp_interval|garp_lower_prio_delay|garp_lower_prio_repeat|garp_master_delay|garp_master_refresh|garp_master_refresh_repeat|garp_master_repeat|gna_interval|higher_prio_send_advert|instance|ipsets|iptables|lower_prio_no_advert|mcast_group4|mcast_group6|min_garp|netlink_cmd_rcv_bufs|netlink_cmd_rcv_bufs_force|netlink_monitor_rcv_bufs|netlink_monitor_rcv_bufs_force|no_swap|notify_fifo|notify_fifo_script|notify_priority_changes|priority|process_name|rlimit_rttime|rt_priority|rx_bufs_multiplier|rx_bufs_policy|script|skip_check_adv_addr|startup_delay|strict|sync_group|track_process|version)|warmup|weight)\b/,constant:/\b(?:A|AAAA|AH|BACKUP|CNAME|DR|MASTER|MX|NAT|NS|PASS|SCTP|SOA|TCP|TUN|TXT|UDP|dh|fo|lblc|lblcr|lc|mh|nq|ovf|rr|sed|sh|wlc|wrr)\b/,number:{pattern:/(^|[^\w.-])-?\d+(?:\.\d+)?/,lookbehind:!0},boolean:/\b(?:false|no|off|on|true|yes)\b/,punctuation:/[\{\}]/}}return CI}var kI,r7;function YUe(){if(r7)return kI;r7=1,kI=e,e.displayName="keyman",e.aliases=[];function e(t){t.languages.keyman={comment:{pattern:/\bc .*/i,greedy:!0},string:{pattern:/"[^"\r\n]*"|'[^'\r\n]*'/,greedy:!0},"virtual-key":{pattern:/\[\s*(?:(?:ALT|CAPS|CTRL|LALT|LCTRL|NCAPS|RALT|RCTRL|SHIFT)\s+)*(?:[TKU]_[\w?]+|[A-E]\d\d?|"[^"\r\n]*"|'[^'\r\n]*')\s*\]/i,greedy:!0,alias:"function"},"header-keyword":{pattern:/&\w+/,alias:"bold"},"header-statement":{pattern:/\b(?:bitmap|bitmaps|caps always off|caps on only|copyright|hotkey|language|layout|message|name|shift frees caps|version)\b/i,alias:"bold"},"rule-keyword":{pattern:/\b(?:any|baselayout|beep|call|context|deadkey|dk|if|index|layer|notany|nul|outs|platform|reset|return|save|set|store|use)\b/i,alias:"keyword"},"structural-keyword":{pattern:/\b(?:ansi|begin|group|match|nomatch|unicode|using keys)\b/i,alias:"keyword"},"compile-target":{pattern:/\$(?:keyman|keymanonly|keymanweb|kmfl|weaver):/i,alias:"property"},number:/\b(?:U\+[\dA-F]+|d\d+|x[\da-f]+|\d+)\b/i,operator:/[+>\\$]|\.\./,punctuation:/[()=,]/}}return kI}var xI,a7;function KUe(){if(a7)return xI;a7=1,xI=e,e.displayName="kotlin",e.aliases=["kt","kts"];function e(t){(function(n){n.languages.kotlin=n.languages.extend("clike",{keyword:{pattern:/(^|[^.])\b(?:abstract|actual|annotation|as|break|by|catch|class|companion|const|constructor|continue|crossinline|data|do|dynamic|else|enum|expect|external|final|finally|for|fun|get|if|import|in|infix|init|inline|inner|interface|internal|is|lateinit|noinline|null|object|open|operator|out|override|package|private|protected|public|reified|return|sealed|set|super|suspend|tailrec|this|throw|to|try|typealias|val|var|vararg|when|where|while)\b/,lookbehind:!0},function:[{pattern:/(?:`[^\r\n`]+`|\b\w+)(?=\s*\()/,greedy:!0},{pattern:/(\.)(?:`[^\r\n`]+`|\w+)(?=\s*\{)/,lookbehind:!0,greedy:!0}],number:/\b(?:0[xX][\da-fA-F]+(?:_[\da-fA-F]+)*|0[bB][01]+(?:_[01]+)*|\d+(?:_\d+)*(?:\.\d+(?:_\d+)*)?(?:[eE][+-]?\d+(?:_\d+)*)?[fFL]?)\b/,operator:/\+[+=]?|-[-=>]?|==?=?|!(?:!|==?)?|[\/*%<>]=?|[?:]:?|\.\.|&&|\|\||\b(?:and|inv|or|shl|shr|ushr|xor)\b/}),delete n.languages.kotlin["class-name"];var r={"interpolation-punctuation":{pattern:/^\$\{?|\}$/,alias:"punctuation"},expression:{pattern:/[\s\S]+/,inside:n.languages.kotlin}};n.languages.insertBefore("kotlin","string",{"string-literal":[{pattern:/"""(?:[^$]|\$(?:(?!\{)|\{[^{}]*\}))*?"""/,alias:"multiline",inside:{interpolation:{pattern:/\$(?:[a-z_]\w*|\{[^{}]*\})/i,inside:r},string:/[\s\S]+/}},{pattern:/"(?:[^"\\\r\n$]|\\.|\$(?:(?!\{)|\{[^{}]*\}))*"/,alias:"singleline",inside:{interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$(?:[a-z_]\w*|\{[^{}]*\})/i,lookbehind:!0,inside:r},string:/[\s\S]+/}}],char:{pattern:/'(?:[^'\\\r\n]|\\(?:.|u[a-fA-F0-9]{0,4}))'/,greedy:!0}}),delete n.languages.kotlin.string,n.languages.insertBefore("kotlin","keyword",{annotation:{pattern:/\B@(?:\w+:)?(?:[A-Z]\w*|\[[^\]]+\])/,alias:"builtin"}}),n.languages.insertBefore("kotlin","function",{label:{pattern:/\b\w+@|@\w+\b/,alias:"symbol"}}),n.languages.kt=n.languages.kotlin,n.languages.kts=n.languages.kotlin})(t)}return xI}var _I,i7;function XUe(){if(i7)return _I;i7=1,_I=e,e.displayName="kumir",e.aliases=["kum"];function e(t){(function(n){var r=/\s\x00-\x1f\x22-\x2f\x3a-\x3f\x5b-\x5e\x60\x7b-\x7e/.source;function a(i,o){return RegExp(i.replace(//g,r),o)}n.languages.kumir={comment:{pattern:/\|.*/},prolog:{pattern:/#.*/,greedy:!0},string:{pattern:/"[^\n\r"]*"|'[^\n\r']*'/,greedy:!0},boolean:{pattern:a(/(^|[])(?:да|нет)(?=[]|$)/.source),lookbehind:!0},"operator-word":{pattern:a(/(^|[])(?:и|или|не)(?=[]|$)/.source),lookbehind:!0,alias:"keyword"},"system-variable":{pattern:a(/(^|[])знач(?=[]|$)/.source),lookbehind:!0,alias:"keyword"},type:[{pattern:a(/(^|[])(?:вещ|лит|лог|сим|цел)(?:\x20*таб)?(?=[]|$)/.source),lookbehind:!0,alias:"builtin"},{pattern:a(/(^|[])(?:компл|сканкод|файл|цвет)(?=[]|$)/.source),lookbehind:!0,alias:"important"}],keyword:{pattern:a(/(^|[])(?:алг|арг(?:\x20*рез)?|ввод|ВКЛЮЧИТЬ|вс[её]|выбор|вывод|выход|дано|для|до|дс|если|иначе|исп|использовать|кон(?:(?:\x20+|_)исп)?|кц(?:(?:\x20+|_)при)?|надо|нач|нс|нц|от|пауза|пока|при|раза?|рез|стоп|таб|то|утв|шаг)(?=[]|$)/.source),lookbehind:!0},name:{pattern:a(/(^|[])[^\d][^]*(?:\x20+[^]+)*(?=[]|$)/.source),lookbehind:!0},number:{pattern:a(/(^|[])(?:\B\$[\da-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?)(?=[]|$)/.source,"i"),lookbehind:!0},punctuation:/:=|[(),:;\[\]]/,"operator-char":{pattern:/\*\*?|<[=>]?|>=?|[-+/=]/,alias:"operator"}},n.languages.kum=n.languages.kumir})(t)}return _I}var OI,o7;function QUe(){if(o7)return OI;o7=1,OI=e,e.displayName="kusto",e.aliases=[];function e(t){t.languages.kusto={comment:{pattern:/\/\/.*/,greedy:!0},string:{pattern:/```[\s\S]*?```|[hH]?(?:"(?:[^\r\n\\"]|\\.)*"|'(?:[^\r\n\\']|\\.)*'|@(?:"[^\r\n"]*"|'[^\r\n']*'))/,greedy:!0},verb:{pattern:/(\|\s*)[a-z][\w-]*/i,lookbehind:!0,alias:"keyword"},command:{pattern:/\.[a-z][a-z\d-]*\b/,alias:"keyword"},"class-name":/\b(?:bool|datetime|decimal|dynamic|guid|int|long|real|string|timespan)\b/,keyword:/\b(?:access|alias|and|anti|as|asc|auto|between|by|(?:contains|(?:ends|starts)with|has(?:perfix|suffix)?)(?:_cs)?|database|declare|desc|external|from|fullouter|has_all|in|ingestion|inline|inner|innerunique|into|(?:left|right)(?:anti(?:semi)?|inner|outer|semi)?|let|like|local|not|of|on|or|pattern|print|query_parameters|range|restrict|schema|set|step|table|tables|to|view|where|with|matches\s+regex|nulls\s+(?:first|last))(?![\w-])/,boolean:/\b(?:false|null|true)\b/,function:/\b[a-z_]\w*(?=\s*\()/,datetime:[{pattern:/\b(?:(?:Fri|Friday|Mon|Monday|Sat|Saturday|Sun|Sunday|Thu|Thursday|Tue|Tuesday|Wed|Wednesday)\s*,\s*)?\d{1,2}(?:\s+|-)(?:Apr|Aug|Dec|Feb|Jan|Jul|Jun|Mar|May|Nov|Oct|Sep)(?:\s+|-)\d{2}\s+\d{2}:\d{2}(?::\d{2})?(?:\s*(?:\b(?:[A-Z]|(?:[ECMT][DS]|GM|U)T)|[+-]\d{4}))?\b/,alias:"number"},{pattern:/[+-]?\b(?:\d{4}-\d{2}-\d{2}(?:[ T]\d{2}:\d{2}(?::\d{2}(?:\.\d+)?)?)?|\d{2}:\d{2}(?::\d{2}(?:\.\d+)?)?)Z?/,alias:"number"}],number:/\b(?:0x[0-9A-Fa-f]+|\d+(?:\.\d+)?(?:[Ee][+-]?\d+)?)(?:(?:min|sec|[mnµ]s|[dhms]|microsecond|tick)\b)?|[+-]?\binf\b/,operator:/=>|[!=]~|[!=<>]=?|[-+*/%|]|\.\./,punctuation:/[()\[\]{},;.:]/}}return OI}var RI,s7;function JUe(){if(s7)return RI;s7=1,RI=e,e.displayName="latex",e.aliases=["tex","context"];function e(t){(function(n){var r=/\\(?:[^a-z()[\]]|[a-z*]+)/i,a={"equation-command":{pattern:r,alias:"regex"}};n.languages.latex={comment:/%.*/,cdata:{pattern:/(\\begin\{((?:lstlisting|verbatim)\*?)\})[\s\S]*?(?=\\end\{\2\})/,lookbehind:!0},equation:[{pattern:/\$\$(?:\\[\s\S]|[^\\$])+\$\$|\$(?:\\[\s\S]|[^\\$])+\$|\\\([\s\S]*?\\\)|\\\[[\s\S]*?\\\]/,inside:a,alias:"string"},{pattern:/(\\begin\{((?:align|eqnarray|equation|gather|math|multline)\*?)\})[\s\S]*?(?=\\end\{\2\})/,lookbehind:!0,inside:a,alias:"string"}],keyword:{pattern:/(\\(?:begin|cite|documentclass|end|label|ref|usepackage)(?:\[[^\]]+\])?\{)[^}]+(?=\})/,lookbehind:!0},url:{pattern:/(\\url\{)[^}]+(?=\})/,lookbehind:!0},headline:{pattern:/(\\(?:chapter|frametitle|paragraph|part|section|subparagraph|subsection|subsubparagraph|subsubsection|subsubsubparagraph)\*?(?:\[[^\]]+\])?\{)[^}]+(?=\})/,lookbehind:!0,alias:"class-name"},function:{pattern:r,alias:"selector"},punctuation:/[[\]{}&]/},n.languages.tex=n.languages.latex,n.languages.context=n.languages.latex})(t)}return RI}var PI,l7;function mO(){if(l7)return PI;l7=1;var e=gs();PI=t,t.displayName="php",t.aliases=[];function t(n){n.register(e),(function(r){var a=/\/\*[\s\S]*?\*\/|\/\/.*|#(?!\[).*/,i=[{pattern:/\b(?:false|true)\b/i,alias:"boolean"},{pattern:/(::\s*)\b[a-z_]\w*\b(?!\s*\()/i,greedy:!0,lookbehind:!0},{pattern:/(\b(?:case|const)\s+)\b[a-z_]\w*(?=\s*[;=])/i,greedy:!0,lookbehind:!0},/\b(?:null)\b/i,/\b[A-Z_][A-Z0-9_]*\b(?!\s*\()/],o=/\b0b[01]+(?:_[01]+)*\b|\b0o[0-7]+(?:_[0-7]+)*\b|\b0x[\da-f]+(?:_[\da-f]+)*\b|(?:\b\d+(?:_\d+)*\.?(?:\d+(?:_\d+)*)?|\B\.\d+)(?:e[+-]?\d+)?/i,l=/|\?\?=?|\.{3}|\??->|[!=]=?=?|::|\*\*=?|--|\+\+|&&|\|\||<<|>>|[?~]|[/^|%*&<>.+-]=?/,u=/[{}\[\](),:;]/;r.languages.php={delimiter:{pattern:/\?>$|^<\?(?:php(?=\s)|=)?/i,alias:"important"},comment:a,variable:/\$+(?:\w+\b|(?=\{))/,package:{pattern:/(namespace\s+|use\s+(?:function\s+)?)(?:\\?\b[a-z_]\w*)+\b(?!\\)/i,lookbehind:!0,inside:{punctuation:/\\/}},"class-name-definition":{pattern:/(\b(?:class|enum|interface|trait)\s+)\b[a-z_]\w*(?!\\)\b/i,lookbehind:!0,alias:"class-name"},"function-definition":{pattern:/(\bfunction\s+)[a-z_]\w*(?=\s*\()/i,lookbehind:!0,alias:"function"},keyword:[{pattern:/(\(\s*)\b(?:array|bool|boolean|float|int|integer|object|string)\b(?=\s*\))/i,alias:"type-casting",greedy:!0,lookbehind:!0},{pattern:/([(,?]\s*)\b(?:array(?!\s*\()|bool|callable|(?:false|null)(?=\s*\|)|float|int|iterable|mixed|object|self|static|string)\b(?=\s*\$)/i,alias:"type-hint",greedy:!0,lookbehind:!0},{pattern:/(\)\s*:\s*(?:\?\s*)?)\b(?:array(?!\s*\()|bool|callable|(?:false|null)(?=\s*\|)|float|int|iterable|mixed|object|self|static|string|void)\b/i,alias:"return-type",greedy:!0,lookbehind:!0},{pattern:/\b(?:array(?!\s*\()|bool|float|int|iterable|mixed|object|string|void)\b/i,alias:"type-declaration",greedy:!0},{pattern:/(\|\s*)(?:false|null)\b|\b(?:false|null)(?=\s*\|)/i,alias:"type-declaration",greedy:!0,lookbehind:!0},{pattern:/\b(?:parent|self|static)(?=\s*::)/i,alias:"static-context",greedy:!0},{pattern:/(\byield\s+)from\b/i,lookbehind:!0},/\bclass\b/i,{pattern:/((?:^|[^\s>:]|(?:^|[^-])>|(?:^|[^:]):)\s*)\b(?:abstract|and|array|as|break|callable|case|catch|clone|const|continue|declare|default|die|do|echo|else|elseif|empty|enddeclare|endfor|endforeach|endif|endswitch|endwhile|enum|eval|exit|extends|final|finally|fn|for|foreach|function|global|goto|if|implements|include|include_once|instanceof|insteadof|interface|isset|list|match|namespace|new|or|parent|print|private|protected|public|require|require_once|return|self|static|switch|throw|trait|try|unset|use|var|while|xor|yield|__halt_compiler)\b/i,lookbehind:!0}],"argument-name":{pattern:/([(,]\s+)\b[a-z_]\w*(?=\s*:(?!:))/i,lookbehind:!0},"class-name":[{pattern:/(\b(?:extends|implements|instanceof|new(?!\s+self|\s+static))\s+|\bcatch\s*\()\b[a-z_]\w*(?!\\)\b/i,greedy:!0,lookbehind:!0},{pattern:/(\|\s*)\b[a-z_]\w*(?!\\)\b/i,greedy:!0,lookbehind:!0},{pattern:/\b[a-z_]\w*(?!\\)\b(?=\s*\|)/i,greedy:!0},{pattern:/(\|\s*)(?:\\?\b[a-z_]\w*)+\b/i,alias:"class-name-fully-qualified",greedy:!0,lookbehind:!0,inside:{punctuation:/\\/}},{pattern:/(?:\\?\b[a-z_]\w*)+\b(?=\s*\|)/i,alias:"class-name-fully-qualified",greedy:!0,inside:{punctuation:/\\/}},{pattern:/(\b(?:extends|implements|instanceof|new(?!\s+self\b|\s+static\b))\s+|\bcatch\s*\()(?:\\?\b[a-z_]\w*)+\b(?!\\)/i,alias:"class-name-fully-qualified",greedy:!0,lookbehind:!0,inside:{punctuation:/\\/}},{pattern:/\b[a-z_]\w*(?=\s*\$)/i,alias:"type-declaration",greedy:!0},{pattern:/(?:\\?\b[a-z_]\w*)+(?=\s*\$)/i,alias:["class-name-fully-qualified","type-declaration"],greedy:!0,inside:{punctuation:/\\/}},{pattern:/\b[a-z_]\w*(?=\s*::)/i,alias:"static-context",greedy:!0},{pattern:/(?:\\?\b[a-z_]\w*)+(?=\s*::)/i,alias:["class-name-fully-qualified","static-context"],greedy:!0,inside:{punctuation:/\\/}},{pattern:/([(,?]\s*)[a-z_]\w*(?=\s*\$)/i,alias:"type-hint",greedy:!0,lookbehind:!0},{pattern:/([(,?]\s*)(?:\\?\b[a-z_]\w*)+(?=\s*\$)/i,alias:["class-name-fully-qualified","type-hint"],greedy:!0,lookbehind:!0,inside:{punctuation:/\\/}},{pattern:/(\)\s*:\s*(?:\?\s*)?)\b[a-z_]\w*(?!\\)\b/i,alias:"return-type",greedy:!0,lookbehind:!0},{pattern:/(\)\s*:\s*(?:\?\s*)?)(?:\\?\b[a-z_]\w*)+\b(?!\\)/i,alias:["class-name-fully-qualified","return-type"],greedy:!0,lookbehind:!0,inside:{punctuation:/\\/}}],constant:i,function:{pattern:/(^|[^\\\w])\\?[a-z_](?:[\w\\]*\w)?(?=\s*\()/i,lookbehind:!0,inside:{punctuation:/\\/}},property:{pattern:/(->\s*)\w+/,lookbehind:!0},number:o,operator:l,punctuation:u};var d={pattern:/\{\$(?:\{(?:\{[^{}]+\}|[^{}]+)\}|[^{}])+\}|(^|[^\\{])\$+(?:\w+(?:\[[^\r\n\[\]]+\]|->\w+)?)/,lookbehind:!0,inside:r.languages.php},f=[{pattern:/<<<'([^']+)'[\r\n](?:.*[\r\n])*?\1;/,alias:"nowdoc-string",greedy:!0,inside:{delimiter:{pattern:/^<<<'[^']+'|[a-z_]\w*;$/i,alias:"symbol",inside:{punctuation:/^<<<'?|[';]$/}}}},{pattern:/<<<(?:"([^"]+)"[\r\n](?:.*[\r\n])*?\1;|([a-z_]\w*)[\r\n](?:.*[\r\n])*?\2;)/i,alias:"heredoc-string",greedy:!0,inside:{delimiter:{pattern:/^<<<(?:"[^"]+"|[a-z_]\w*)|[a-z_]\w*;$/i,alias:"symbol",inside:{punctuation:/^<<<"?|[";]$/}},interpolation:d}},{pattern:/`(?:\\[\s\S]|[^\\`])*`/,alias:"backtick-quoted-string",greedy:!0},{pattern:/'(?:\\[\s\S]|[^\\'])*'/,alias:"single-quoted-string",greedy:!0},{pattern:/"(?:\\[\s\S]|[^\\"])*"/,alias:"double-quoted-string",greedy:!0,inside:{interpolation:d}}];r.languages.insertBefore("php","variable",{string:f,attribute:{pattern:/#\[(?:[^"'\/#]|\/(?![*/])|\/\/.*$|#(?!\[).*$|\/\*(?:[^*]|\*(?!\/))*\*\/|"(?:\\[\s\S]|[^\\"])*"|'(?:\\[\s\S]|[^\\'])*')+\](?=\s*[a-z$#])/im,greedy:!0,inside:{"attribute-content":{pattern:/^(#\[)[\s\S]+(?=\]$)/,lookbehind:!0,inside:{comment:a,string:f,"attribute-class-name":[{pattern:/([^:]|^)\b[a-z_]\w*(?!\\)\b/i,alias:"class-name",greedy:!0,lookbehind:!0},{pattern:/([^:]|^)(?:\\?\b[a-z_]\w*)+/i,alias:["class-name","class-name-fully-qualified"],greedy:!0,lookbehind:!0,inside:{punctuation:/\\/}}],constant:i,number:o,operator:l,punctuation:u}},delimiter:{pattern:/^#\[|\]$/,alias:"punctuation"}}}}),r.hooks.add("before-tokenize",function(g){if(/<\?/.test(g.code)){var y=/<\?(?:[^"'/#]|\/(?![*/])|("|')(?:\\[\s\S]|(?!\1)[^\\])*\1|(?:\/\/|#(?!\[))(?:[^?\n\r]|\?(?!>))*(?=$|\?>|[\r\n])|#\[|\/\*(?:[^*]|\*(?!\/))*(?:\*\/|$))*?(?:\?>|$)/g;r.languages["markup-templating"].buildPlaceholders(g,"php",y)}}),r.hooks.add("after-tokenize",function(g){r.languages["markup-templating"].tokenizePlaceholders(g,"php")})})(n)}return PI}var AI,u7;function ZUe(){if(u7)return AI;u7=1;var e=gs(),t=mO();AI=n,n.displayName="latte",n.aliases=[];function n(r){r.register(e),r.register(t),(function(a){a.languages.latte={comment:/^\{\*[\s\S]*/,"latte-tag":{pattern:/(^\{(?:\/(?=[a-z]))?)(?:[=_]|[a-z]\w*\b(?!\())/i,lookbehind:!0,alias:"important"},delimiter:{pattern:/^\{\/?|\}$/,alias:"punctuation"},php:{pattern:/\S(?:[\s\S]*\S)?/,alias:"language-php",inside:a.languages.php}};var i=a.languages.extend("markup",{});a.languages.insertBefore("inside","attr-value",{"n-attr":{pattern:/n:[\w-]+(?:\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+))?/,inside:{"attr-name":{pattern:/^[^\s=]+/,alias:"important"},"attr-value":{pattern:/=[\s\S]+/,inside:{punctuation:[/^=/,{pattern:/^(\s*)["']|["']$/,lookbehind:!0}],php:{pattern:/\S(?:[\s\S]*\S)?/,inside:a.languages.php}}}}}},i.tag),a.hooks.add("before-tokenize",function(o){if(o.language==="latte"){var l=/\{\*[\s\S]*?\*\}|\{[^'"\s{}*](?:[^"'/{}]|\/(?![*/])|("|')(?:\\[\s\S]|(?!\1)[^\\])*\1|\/\*(?:[^*]|\*(?!\/))*\*\/)*\}/g;a.languages["markup-templating"].buildPlaceholders(o,"latte",l),o.grammar=i}}),a.hooks.add("after-tokenize",function(o){a.languages["markup-templating"].tokenizePlaceholders(o,"latte")})})(r)}return AI}var NI,c7;function e6e(){if(c7)return NI;c7=1,NI=e,e.displayName="less",e.aliases=[];function e(t){t.languages.less=t.languages.extend("css",{comment:[/\/\*[\s\S]*?\*\//,{pattern:/(^|[^\\])\/\/.*/,lookbehind:!0}],atrule:{pattern:/@[\w-](?:\((?:[^(){}]|\([^(){}]*\))*\)|[^(){};\s]|\s+(?!\s))*?(?=\s*\{)/,inside:{punctuation:/[:()]/}},selector:{pattern:/(?:@\{[\w-]+\}|[^{};\s@])(?:@\{[\w-]+\}|\((?:[^(){}]|\([^(){}]*\))*\)|[^(){};@\s]|\s+(?!\s))*?(?=\s*\{)/,inside:{variable:/@+[\w-]+/}},property:/(?:@\{[\w-]+\}|[\w-])+(?:\+_?)?(?=\s*:)/,operator:/[+\-*\/]/}),t.languages.insertBefore("less","property",{variable:[{pattern:/@[\w-]+\s*:/,inside:{punctuation:/:/}},/@@?[\w-]+/],"mixin-usage":{pattern:/([{;]\s*)[.#](?!\d)[\w-].*?(?=[(;])/,lookbehind:!0,alias:"function"}})}return NI}var MI,d7;function _4(){if(d7)return MI;d7=1,MI=e,e.displayName="scheme",e.aliases=[];function e(t){(function(n){n.languages.scheme={comment:/;.*|#;\s*(?:\((?:[^()]|\([^()]*\))*\)|\[(?:[^\[\]]|\[[^\[\]]*\])*\])|#\|(?:[^#|]|#(?!\|)|\|(?!#)|#\|(?:[^#|]|#(?!\|)|\|(?!#))*\|#)*\|#/,string:{pattern:/"(?:[^"\\]|\\.)*"/,greedy:!0},symbol:{pattern:/'[^()\[\]#'\s]+/,greedy:!0},char:{pattern:/#\\(?:[ux][a-fA-F\d]+\b|[-a-zA-Z]+\b|[\uD800-\uDBFF][\uDC00-\uDFFF]|\S)/,greedy:!0},"lambda-parameter":[{pattern:/((?:^|[^'`#])[(\[]lambda\s+)(?:[^|()\[\]'\s]+|\|(?:[^\\|]|\\.)*\|)/,lookbehind:!0},{pattern:/((?:^|[^'`#])[(\[]lambda\s+[(\[])[^()\[\]']+/,lookbehind:!0}],keyword:{pattern:/((?:^|[^'`#])[(\[])(?:begin|case(?:-lambda)?|cond(?:-expand)?|define(?:-library|-macro|-record-type|-syntax|-values)?|defmacro|delay(?:-force)?|do|else|except|export|guard|if|import|include(?:-ci|-library-declarations)?|lambda|let(?:rec)?(?:-syntax|-values|\*)?|let\*-values|only|parameterize|prefix|(?:quasi-?)?quote|rename|set!|syntax-(?:case|rules)|unless|unquote(?:-splicing)?|when)(?=[()\[\]\s]|$)/,lookbehind:!0},builtin:{pattern:/((?:^|[^'`#])[(\[])(?:abs|and|append|apply|assoc|ass[qv]|binary-port\?|boolean=?\?|bytevector(?:-append|-copy|-copy!|-length|-u8-ref|-u8-set!|\?)?|caar|cadr|call-with-(?:current-continuation|port|values)|call\/cc|car|cdar|cddr|cdr|ceiling|char(?:->integer|-ready\?|\?|<\?|<=\?|=\?|>\?|>=\?)|close-(?:input-port|output-port|port)|complex\?|cons|current-(?:error|input|output)-port|denominator|dynamic-wind|eof-object\??|eq\?|equal\?|eqv\?|error|error-object(?:-irritants|-message|\?)|eval|even\?|exact(?:-integer-sqrt|-integer\?|\?)?|expt|features|file-error\?|floor(?:-quotient|-remainder|\/)?|flush-output-port|for-each|gcd|get-output-(?:bytevector|string)|inexact\??|input-port(?:-open\?|\?)|integer(?:->char|\?)|lcm|length|list(?:->string|->vector|-copy|-ref|-set!|-tail|\?)?|make-(?:bytevector|list|parameter|string|vector)|map|max|member|memq|memv|min|modulo|negative\?|newline|not|null\?|number(?:->string|\?)|numerator|odd\?|open-(?:input|output)-(?:bytevector|string)|or|output-port(?:-open\?|\?)|pair\?|peek-char|peek-u8|port\?|positive\?|procedure\?|quotient|raise|raise-continuable|rational\?|rationalize|read-(?:bytevector|bytevector!|char|error\?|line|string|u8)|real\?|remainder|reverse|round|set-c[ad]r!|square|string(?:->list|->number|->symbol|->utf8|->vector|-append|-copy|-copy!|-fill!|-for-each|-length|-map|-ref|-set!|\?|<\?|<=\?|=\?|>\?|>=\?)?|substring|symbol(?:->string|\?|=\?)|syntax-error|textual-port\?|truncate(?:-quotient|-remainder|\/)?|u8-ready\?|utf8->string|values|vector(?:->list|->string|-append|-copy|-copy!|-fill!|-for-each|-length|-map|-ref|-set!|\?)?|with-exception-handler|write-(?:bytevector|char|string|u8)|zero\?)(?=[()\[\]\s]|$)/,lookbehind:!0},operator:{pattern:/((?:^|[^'`#])[(\[])(?:[-+*%/]|[<>]=?|=>?)(?=[()\[\]\s]|$)/,lookbehind:!0},number:{pattern:RegExp(r({"":/\d+(?:\/\d+)|(?:\d+(?:\.\d*)?|\.\d+)(?:[esfdl][+-]?\d+)?/.source,"":/[+-]?|[+-](?:inf|nan)\.0/.source,"":/[+-](?:|(?:inf|nan)\.0)?i/.source,"":/(?:@|)?|/.source,"":/(?:#d(?:#[ei])?|#[ei](?:#d)?)?/.source,"":/[0-9a-f]+(?:\/[0-9a-f]+)?/.source,"":/[+-]?|[+-](?:inf|nan)\.0/.source,"":/[+-](?:|(?:inf|nan)\.0)?i/.source,"":/(?:@|)?|/.source,"":/#[box](?:#[ei])?|(?:#[ei])?#[box]/.source,"":/(^|[()\[\]\s])(?:|)(?=[()\[\]\s]|$)/.source}),"i"),lookbehind:!0},boolean:{pattern:/(^|[()\[\]\s])#(?:[ft]|false|true)(?=[()\[\]\s]|$)/,lookbehind:!0},function:{pattern:/((?:^|[^'`#])[(\[])(?:[^|()\[\]'\s]+|\|(?:[^\\|]|\\.)*\|)(?=[()\[\]\s]|$)/,lookbehind:!0},identifier:{pattern:/(^|[()\[\]\s])\|(?:[^\\|]|\\.)*\|(?=[()\[\]\s]|$)/,lookbehind:!0,greedy:!0},punctuation:/[()\[\]']/};function r(a){for(var i in a)a[i]=a[i].replace(/<[\w\s]+>/g,function(o){return"(?:"+a[o].trim()+")"});return a[i]}})(t)}return MI}var II,f7;function t6e(){if(f7)return II;f7=1;var e=_4();II=t,t.displayName="lilypond",t.aliases=[];function t(n){n.register(e),(function(r){for(var a=/\((?:[^();"#\\]|\\[\s\S]|;.*(?!.)|"(?:[^"\\]|\\.)*"|#(?:\{(?:(?!#\})[\s\S])*#\}|[^{])|)*\)/.source,i=5,o=0;o/g,function(){return a});a=a.replace(//g,/[^\s\S]/.source);var l=r.languages.lilypond={comment:/%(?:(?!\{).*|\{[\s\S]*?%\})/,"embedded-scheme":{pattern:RegExp(/(^|[=\s])#(?:"(?:[^"\\]|\\.)*"|[^\s()"]*(?:[^\s()]|))/.source.replace(//g,function(){return a}),"m"),lookbehind:!0,greedy:!0,inside:{scheme:{pattern:/^(#)[\s\S]+$/,lookbehind:!0,alias:"language-scheme",inside:{"embedded-lilypond":{pattern:/#\{[\s\S]*?#\}/,greedy:!0,inside:{punctuation:/^#\{|#\}$/,lilypond:{pattern:/[\s\S]+/,alias:"language-lilypond",inside:null}}},rest:r.languages.scheme}},punctuation:/#/}},string:{pattern:/"(?:[^"\\]|\\.)*"/,greedy:!0},"class-name":{pattern:/(\\new\s+)[\w-]+/,lookbehind:!0},keyword:{pattern:/\\[a-z][-\w]*/i,inside:{punctuation:/^\\/}},operator:/[=|]|<<|>>/,punctuation:{pattern:/(^|[a-z\d])(?:'+|,+|[_^]?-[_^]?(?:[-+^!>._]|(?=\d))|[_^]\.?|[.!])|[{}()[\]<>^~]|\\[()[\]<>\\!]|--|__/,lookbehind:!0},number:/\b\d+(?:\/\d+)?\b/};l["embedded-scheme"].inside.scheme.inside["embedded-lilypond"].inside.lilypond.inside=l,r.languages.ly=l})(n)}return II}var DI,p7;function n6e(){if(p7)return DI;p7=1;var e=gs();DI=t,t.displayName="liquid",t.aliases=[];function t(n){n.register(e),n.languages.liquid={comment:{pattern:/(^\{%\s*comment\s*%\})[\s\S]+(?=\{%\s*endcomment\s*%\}$)/,lookbehind:!0},delimiter:{pattern:/^\{(?:\{\{|[%\{])-?|-?(?:\}\}|[%\}])\}$/,alias:"punctuation"},string:{pattern:/"[^"]*"|'[^']*'/,greedy:!0},keyword:/\b(?:as|assign|break|(?:end)?(?:capture|case|comment|for|form|if|paginate|raw|style|tablerow|unless)|continue|cycle|decrement|echo|else|elsif|in|include|increment|limit|liquid|offset|range|render|reversed|section|when|with)\b/,object:/\b(?:address|all_country_option_tags|article|block|blog|cart|checkout|collection|color|country|country_option_tags|currency|current_page|current_tags|customer|customer_address|date|discount_allocation|discount_application|external_video|filter|filter_value|font|forloop|fulfillment|generic_file|gift_card|group|handle|image|line_item|link|linklist|localization|location|measurement|media|metafield|model|model_source|order|page|page_description|page_image|page_title|part|policy|product|product_option|recommendations|request|robots|routes|rule|script|search|selling_plan|selling_plan_allocation|selling_plan_group|shipping_method|shop|shop_locale|sitemap|store_availability|tax_line|template|theme|transaction|unit_price_measurement|user_agent|variant|video|video_source)\b/,function:[{pattern:/(\|\s*)\w+/,lookbehind:!0,alias:"filter"},{pattern:/(\.\s*)(?:first|last|size)/,lookbehind:!0}],boolean:/\b(?:false|nil|true)\b/,range:{pattern:/\.\./,alias:"operator"},number:/\b\d+(?:\.\d+)?\b/,operator:/[!=]=|<>|[<>]=?|[|?:=-]|\b(?:and|contains(?=\s)|or)\b/,punctuation:/[.,\[\]()]/,empty:{pattern:/\bempty\b/,alias:"keyword"}},n.hooks.add("before-tokenize",function(r){var a=/\{%\s*comment\s*%\}[\s\S]*?\{%\s*endcomment\s*%\}|\{(?:%[\s\S]*?%|\{\{[\s\S]*?\}\}|\{[\s\S]*?\})\}/g,i=!1;n.languages["markup-templating"].buildPlaceholders(r,"liquid",a,function(o){var l=/^\{%-?\s*(\w+)/.exec(o);if(l){var u=l[1];if(u==="raw"&&!i)return i=!0,!0;if(u==="endraw")return i=!1,!0}return!i})}),n.hooks.add("after-tokenize",function(r){n.languages["markup-templating"].tokenizePlaceholders(r,"liquid")})}return DI}var $I,h7;function r6e(){if(h7)return $I;h7=1,$I=e,e.displayName="lisp",e.aliases=[];function e(t){(function(n){function r(E){return RegExp(/(\()/.source+"(?:"+E+")"+/(?=[\s\)])/.source)}function a(E){return RegExp(/([\s([])/.source+"(?:"+E+")"+/(?=[\s)])/.source)}var i=/(?!\d)[-+*/~!@$%^=<>{}\w]+/.source,o="&"+i,l="(\\()",u="(?=\\))",d="(?=\\s)",f=/(?:[^()]|\((?:[^()]|\((?:[^()]|\((?:[^()]|\((?:[^()]|\([^()]*\))*\))*\))*\))*\))*/.source,g={heading:{pattern:/;;;.*/,alias:["comment","title"]},comment:/;.*/,string:{pattern:/"(?:[^"\\]|\\.)*"/,greedy:!0,inside:{argument:/[-A-Z]+(?=[.,\s])/,symbol:RegExp("`"+i+"'")}},"quoted-symbol":{pattern:RegExp("#?'"+i),alias:["variable","symbol"]},"lisp-property":{pattern:RegExp(":"+i),alias:"property"},splice:{pattern:RegExp(",@?"+i),alias:["symbol","variable"]},keyword:[{pattern:RegExp(l+"(?:and|(?:cl-)?letf|cl-loop|cond|cons|error|if|(?:lexical-)?let\\*?|message|not|null|or|provide|require|setq|unless|use-package|when|while)"+d),lookbehind:!0},{pattern:RegExp(l+"(?:append|by|collect|concat|do|finally|for|in|return)"+d),lookbehind:!0}],declare:{pattern:r(/declare/.source),lookbehind:!0,alias:"keyword"},interactive:{pattern:r(/interactive/.source),lookbehind:!0,alias:"keyword"},boolean:{pattern:a(/nil|t/.source),lookbehind:!0},number:{pattern:a(/[-+]?\d+(?:\.\d*)?/.source),lookbehind:!0},defvar:{pattern:RegExp(l+"def(?:const|custom|group|var)\\s+"+i),lookbehind:!0,inside:{keyword:/^def[a-z]+/,variable:RegExp(i)}},defun:{pattern:RegExp(l+/(?:cl-)?(?:defmacro|defun\*?)\s+/.source+i+/\s+\(/.source+f+/\)/.source),lookbehind:!0,greedy:!0,inside:{keyword:/^(?:cl-)?def\S+/,arguments:null,function:{pattern:RegExp("(^\\s)"+i),lookbehind:!0},punctuation:/[()]/}},lambda:{pattern:RegExp(l+"lambda\\s+\\(\\s*(?:&?"+i+"(?:\\s+&?"+i+")*\\s*)?\\)"),lookbehind:!0,greedy:!0,inside:{keyword:/^lambda/,arguments:null,punctuation:/[()]/}},car:{pattern:RegExp(l+i),lookbehind:!0},punctuation:[/(?:['`,]?\(|[)\[\]])/,{pattern:/(\s)\.(?=\s)/,lookbehind:!0}]},y={"lisp-marker":RegExp(o),varform:{pattern:RegExp(/\(/.source+i+/\s+(?=\S)/.source+f+/\)/.source),inside:g},argument:{pattern:RegExp(/(^|[\s(])/.source+i),lookbehind:!0,alias:"variable"},rest:g},h="\\S+(?:\\s+\\S+)*",v={pattern:RegExp(l+f+u),lookbehind:!0,inside:{"rest-vars":{pattern:RegExp("&(?:body|rest)\\s+"+h),inside:y},"other-marker-vars":{pattern:RegExp("&(?:aux|optional)\\s+"+h),inside:y},keys:{pattern:RegExp("&key\\s+"+h+"(?:\\s+&allow-other-keys)?"),inside:y},argument:{pattern:RegExp(i),alias:"variable"},punctuation:/[()]/}};g.lambda.inside.arguments=v,g.defun.inside.arguments=n.util.clone(v),g.defun.inside.arguments.inside.sublist=v,n.languages.lisp=g,n.languages.elisp=g,n.languages.emacs=g,n.languages["emacs-lisp"]=g})(t)}return $I}var LI,m7;function a6e(){if(m7)return LI;m7=1,LI=e,e.displayName="livescript",e.aliases=[];function e(t){t.languages.livescript={comment:[{pattern:/(^|[^\\])\/\*[\s\S]*?\*\//,lookbehind:!0},{pattern:/(^|[^\\])#.*/,lookbehind:!0}],"interpolated-string":{pattern:/(^|[^"])("""|")(?:\\[\s\S]|(?!\2)[^\\])*\2(?!")/,lookbehind:!0,greedy:!0,inside:{variable:{pattern:/(^|[^\\])#[a-z_](?:-?[a-z]|[\d_])*/m,lookbehind:!0},interpolation:{pattern:/(^|[^\\])#\{[^}]+\}/m,lookbehind:!0,inside:{"interpolation-punctuation":{pattern:/^#\{|\}$/,alias:"variable"}}},string:/[\s\S]+/}},string:[{pattern:/('''|')(?:\\[\s\S]|(?!\1)[^\\])*\1/,greedy:!0},{pattern:/<\[[\s\S]*?\]>/,greedy:!0},/\\[^\s,;\])}]+/],regex:[{pattern:/\/\/(?:\[[^\r\n\]]*\]|\\.|(?!\/\/)[^\\\[])+\/\/[gimyu]{0,5}/,greedy:!0,inside:{comment:{pattern:/(^|[^\\])#.*/,lookbehind:!0}}},{pattern:/\/(?:\[[^\r\n\]]*\]|\\.|[^/\\\r\n\[])+\/[gimyu]{0,5}/,greedy:!0}],keyword:{pattern:/(^|(?!-).)\b(?:break|case|catch|class|const|continue|default|do|else|extends|fallthrough|finally|for(?: ever)?|function|if|implements|it|let|loop|new|null|otherwise|own|return|super|switch|that|then|this|throw|try|unless|until|var|void|when|while|yield)(?!-)\b/m,lookbehind:!0},"keyword-operator":{pattern:/(^|[^-])\b(?:(?:delete|require|typeof)!|(?:and|by|delete|export|from|import(?: all)?|in|instanceof|is(?: not|nt)?|not|of|or|til|to|typeof|with|xor)(?!-)\b)/m,lookbehind:!0,alias:"operator"},boolean:{pattern:/(^|[^-])\b(?:false|no|off|on|true|yes)(?!-)\b/m,lookbehind:!0},argument:{pattern:/(^|(?!\.&\.)[^&])&(?!&)\d*/m,lookbehind:!0,alias:"variable"},number:/\b(?:\d+~[\da-z]+|\d[\d_]*(?:\.\d[\d_]*)?(?:[a-z]\w*)?)/i,identifier:/[a-z_](?:-?[a-z]|[\d_])*/i,operator:[{pattern:/( )\.(?= )/,lookbehind:!0},/\.(?:[=~]|\.\.?)|\.(?:[&|^]|<<|>>>?)\.|:(?:=|:=?)|&&|\|[|>]|<(?:<[>=?]?|-(?:->?|>)?|\+\+?|@@?|%%?|\*\*?|!(?:~?=|--?>|~?~>)?|~(?:~?>|=)?|==?|\^\^?|[\/?]/],punctuation:/[(){}\[\]|.,:;`]/},t.languages.livescript["interpolated-string"].inside.interpolation.inside.rest=t.languages.livescript}return LI}var FI,g7;function i6e(){if(g7)return FI;g7=1,FI=e,e.displayName="llvm",e.aliases=[];function e(t){(function(n){n.languages.llvm={comment:/;.*/,string:{pattern:/"[^"]*"/,greedy:!0},boolean:/\b(?:false|true)\b/,variable:/[%@!#](?:(?!\d)(?:[-$.\w]|\\[a-f\d]{2})+|\d+)/i,label:/(?!\d)(?:[-$.\w]|\\[a-f\d]{2})+:/i,type:{pattern:/\b(?:double|float|fp128|half|i[1-9]\d*|label|metadata|ppc_fp128|token|void|x86_fp80|x86_mmx)\b/,alias:"class-name"},keyword:/\b[a-z_][a-z_0-9]*\b/,number:/[+-]?\b\d+(?:\.\d+)?(?:[eE][+-]?\d+)?\b|\b0x[\dA-Fa-f]+\b|\b0xK[\dA-Fa-f]{20}\b|\b0x[ML][\dA-Fa-f]{32}\b|\b0xH[\dA-Fa-f]{4}\b/,punctuation:/[{}[\];(),.!*=<>]/}})(t)}return FI}var jI,v7;function o6e(){if(v7)return jI;v7=1,jI=e,e.displayName="log",e.aliases=[];function e(t){t.languages.log={string:{pattern:/"(?:[^"\\\r\n]|\\.)*"|'(?![st] | \w)(?:[^'\\\r\n]|\\.)*'/,greedy:!0},exception:{pattern:/(^|[^\w.])[a-z][\w.]*(?:Error|Exception):.*(?:(?:\r\n?|\n)[ \t]*(?:at[ \t].+|\.{3}.*|Caused by:.*))+(?:(?:\r\n?|\n)[ \t]*\.\.\. .*)?/,lookbehind:!0,greedy:!0,alias:["javastacktrace","language-javastacktrace"],inside:t.languages.javastacktrace||{keyword:/\bat\b/,function:/[a-z_][\w$]*(?=\()/,punctuation:/[.:()]/}},level:[{pattern:/\b(?:ALERT|CRIT|CRITICAL|EMERG|EMERGENCY|ERR|ERROR|FAILURE|FATAL|SEVERE)\b/,alias:["error","important"]},{pattern:/\b(?:WARN|WARNING|WRN)\b/,alias:["warning","important"]},{pattern:/\b(?:DISPLAY|INF|INFO|NOTICE|STATUS)\b/,alias:["info","keyword"]},{pattern:/\b(?:DBG|DEBUG|FINE)\b/,alias:["debug","keyword"]},{pattern:/\b(?:FINER|FINEST|TRACE|TRC|VERBOSE|VRB)\b/,alias:["trace","comment"]}],property:{pattern:/((?:^|[\]|])[ \t]*)[a-z_](?:[\w-]|\b\/\b)*(?:[. ]\(?\w(?:[\w-]|\b\/\b)*\)?)*:(?=\s)/im,lookbehind:!0},separator:{pattern:/(^|[^-+])-{3,}|={3,}|\*{3,}|- - /m,lookbehind:!0,alias:"comment"},url:/\b(?:file|ftp|https?):\/\/[^\s|,;'"]*[^\s|,;'">.]/,email:{pattern:/(^|\s)[-\w+.]+@[a-z][a-z0-9-]*(?:\.[a-z][a-z0-9-]*)+(?=\s)/,lookbehind:!0,alias:"url"},"ip-address":{pattern:/\b(?:\d{1,3}(?:\.\d{1,3}){3})\b/,alias:"constant"},"mac-address":{pattern:/\b[a-f0-9]{2}(?::[a-f0-9]{2}){5}\b/i,alias:"constant"},domain:{pattern:/(^|\s)[a-z][a-z0-9-]*(?:\.[a-z][a-z0-9-]*)*\.[a-z][a-z0-9-]+(?=\s)/,lookbehind:!0,alias:"constant"},uuid:{pattern:/\b[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}\b/i,alias:"constant"},hash:{pattern:/\b(?:[a-f0-9]{32}){1,2}\b/i,alias:"constant"},"file-path":{pattern:/\b[a-z]:[\\/][^\s|,;:(){}\[\]"']+|(^|[\s:\[\](>|])\.{0,2}\/\w[^\s|,;:(){}\[\]"']*/i,lookbehind:!0,greedy:!0,alias:"string"},date:{pattern:RegExp(/\b\d{4}[-/]\d{2}[-/]\d{2}(?:T(?=\d{1,2}:)|(?=\s\d{1,2}:))/.source+"|"+/\b\d{1,4}[-/ ](?:\d{1,2}|Apr|Aug|Dec|Feb|Jan|Jul|Jun|Mar|May|Nov|Oct|Sep)[-/ ]\d{2,4}T?\b/.source+"|"+/\b(?:(?:Fri|Mon|Sat|Sun|Thu|Tue|Wed)(?:\s{1,2}(?:Apr|Aug|Dec|Feb|Jan|Jul|Jun|Mar|May|Nov|Oct|Sep))?|Apr|Aug|Dec|Feb|Jan|Jul|Jun|Mar|May|Nov|Oct|Sep)\s{1,2}\d{1,2}\b/.source,"i"),alias:"number"},time:{pattern:/\b\d{1,2}:\d{1,2}:\d{1,2}(?:[.,:]\d+)?(?:\s?[+-]\d{2}:?\d{2}|Z)?\b/,alias:"number"},boolean:/\b(?:false|null|true)\b/i,number:{pattern:/(^|[^.\w])(?:0x[a-f0-9]+|0o[0-7]+|0b[01]+|v?\d[\da-f]*(?:\.\d+)*(?:e[+-]?\d+)?[a-z]{0,3}\b)\b(?!\.\w)/i,lookbehind:!0},operator:/[;:?<=>~/@!$%&+\-|^(){}*#]/,punctuation:/[\[\].,]/}}return jI}var UI,y7;function s6e(){if(y7)return UI;y7=1,UI=e,e.displayName="lolcode",e.aliases=[];function e(t){t.languages.lolcode={comment:[/\bOBTW\s[\s\S]*?\sTLDR\b/,/\bBTW.+/],string:{pattern:/"(?::.|[^":])*"/,inside:{variable:/:\{[^}]+\}/,symbol:[/:\([a-f\d]+\)/i,/:\[[^\]]+\]/,/:[)>o":]/]},greedy:!0},number:/(?:\B-)?(?:\b\d+(?:\.\d*)?|\B\.\d+)/,symbol:{pattern:/(^|\s)(?:A )?(?:BUKKIT|NOOB|NUMBAR|NUMBR|TROOF|YARN)(?=\s|,|$)/,lookbehind:!0,inside:{keyword:/A(?=\s)/}},label:{pattern:/((?:^|\s)(?:IM IN YR|IM OUTTA YR) )[a-zA-Z]\w*/,lookbehind:!0,alias:"string"},function:{pattern:/((?:^|\s)(?:HOW IZ I|I IZ|IZ) )[a-zA-Z]\w*/,lookbehind:!0},keyword:[{pattern:/(^|\s)(?:AN|FOUND YR|GIMMEH|GTFO|HAI|HAS A|HOW IZ I|I HAS A|I IZ|IF U SAY SO|IM IN YR|IM OUTTA YR|IS NOW(?: A)?|ITZ(?: A)?|IZ|KTHX|KTHXBYE|LIEK(?: A)?|MAEK|MEBBE|MKAY|NERFIN|NO WAI|O HAI IM|O RLY\?|OIC|OMG|OMGWTF|R|SMOOSH|SRS|TIL|UPPIN|VISIBLE|WILE|WTF\?|YA RLY|YR)(?=\s|,|$)/,lookbehind:!0},/'Z(?=\s|,|$)/],boolean:{pattern:/(^|\s)(?:FAIL|WIN)(?=\s|,|$)/,lookbehind:!0},variable:{pattern:/(^|\s)IT(?=\s|,|$)/,lookbehind:!0},operator:{pattern:/(^|\s)(?:NOT|BOTH SAEM|DIFFRINT|(?:ALL|ANY|BIGGR|BOTH|DIFF|EITHER|MOD|PRODUKT|QUOSHUNT|SMALLR|SUM|WON) OF)(?=\s|,|$)/,lookbehind:!0},punctuation:/\.{3}|…|,|!/}}return UI}var BI,b7;function l6e(){if(b7)return BI;b7=1,BI=e,e.displayName="magma",e.aliases=[];function e(t){t.languages.magma={output:{pattern:/^(>.*(?:\r(?:\n|(?!\n))|\n))(?!>)(?:.+|(?:\r(?:\n|(?!\n))|\n)(?!>).*)(?:(?:\r(?:\n|(?!\n))|\n)(?!>).*)*/m,lookbehind:!0,greedy:!0},comment:{pattern:/\/\/.*|\/\*[\s\S]*?\*\//,greedy:!0},string:{pattern:/(^|[^\\"])"(?:[^\r\n\\"]|\\.)*"/,lookbehind:!0,greedy:!0},keyword:/\b(?:_|adj|and|assert|assert2|assert3|assigned|break|by|case|cat|catch|clear|cmpeq|cmpne|continue|declare|default|delete|diff|div|do|elif|else|end|eq|error|eval|exists|exit|for|forall|forward|fprintf|freeze|function|ge|gt|if|iload|import|in|intrinsic|is|join|le|load|local|lt|meet|mod|ne|not|notadj|notin|notsubset|or|print|printf|procedure|quit|random|read|readi|repeat|require|requirege|requirerange|restore|return|save|sdiff|select|subset|then|time|to|try|until|vprint|vprintf|vtime|when|where|while|xor)\b/,boolean:/\b(?:false|true)\b/,generator:{pattern:/\b[a-z_]\w*(?=\s*<)/i,alias:"class-name"},function:/\b[a-z_]\w*(?=\s*\()/i,number:{pattern:/(^|[^\w.]|\.\.)(?:\d+(?:\.\d*)?|\.\d+)(?:[eE][+-]?\d+)?(?:_[a-z]?)?(?=$|[^\w.]|\.\.)/,lookbehind:!0},operator:/->|[-+*/^~!|#=]|:=|\.\./,punctuation:/[()[\]{}<>,;.:]/}}return BI}var WI,w7;function u6e(){if(w7)return WI;w7=1,WI=e,e.displayName="makefile",e.aliases=[];function e(t){t.languages.makefile={comment:{pattern:/(^|[^\\])#(?:\\(?:\r\n|[\s\S])|[^\\\r\n])*/,lookbehind:!0},string:{pattern:/(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,greedy:!0},"builtin-target":{pattern:/\.[A-Z][^:#=\s]+(?=\s*:(?!=))/,alias:"builtin"},target:{pattern:/^(?:[^:=\s]|[ \t]+(?![\s:]))+(?=\s*:(?!=))/m,alias:"symbol",inside:{variable:/\$+(?:(?!\$)[^(){}:#=\s]+|(?=[({]))/}},variable:/\$+(?:(?!\$)[^(){}:#=\s]+|\([@*%<^+?][DF]\)|(?=[({]))/,keyword:/-include\b|\b(?:define|else|endef|endif|export|ifn?def|ifn?eq|include|override|private|sinclude|undefine|unexport|vpath)\b/,function:{pattern:/(\()(?:abspath|addsuffix|and|basename|call|dir|error|eval|file|filter(?:-out)?|findstring|firstword|flavor|foreach|guile|if|info|join|lastword|load|notdir|or|origin|patsubst|realpath|shell|sort|strip|subst|suffix|value|warning|wildcard|word(?:list|s)?)(?=[ \t])/,lookbehind:!0},operator:/(?:::|[?:+!])?=|[|@]/,punctuation:/[:;(){}]/}}return WI}var zI,S7;function c6e(){if(S7)return zI;S7=1,zI=e,e.displayName="markdown",e.aliases=["md"];function e(t){(function(n){var r=/(?:\\.|[^\\\n\r]|(?:\n|\r\n?)(?![\r\n]))/.source;function a(y){return y=y.replace(//g,function(){return r}),RegExp(/((?:^|[^\\])(?:\\{2})*)/.source+"(?:"+y+")")}var i=/(?:\\.|``(?:[^`\r\n]|`(?!`))+``|`[^`\r\n]+`|[^\\|\r\n`])+/.source,o=/\|?__(?:\|__)+\|?(?:(?:\n|\r\n?)|(?![\s\S]))/.source.replace(/__/g,function(){return i}),l=/\|?[ \t]*:?-{3,}:?[ \t]*(?:\|[ \t]*:?-{3,}:?[ \t]*)+\|?(?:\n|\r\n?)/.source;n.languages.markdown=n.languages.extend("markup",{}),n.languages.insertBefore("markdown","prolog",{"front-matter-block":{pattern:/(^(?:\s*[\r\n])?)---(?!.)[\s\S]*?[\r\n]---(?!.)/,lookbehind:!0,greedy:!0,inside:{punctuation:/^---|---$/,"front-matter":{pattern:/\S+(?:\s+\S+)*/,alias:["yaml","language-yaml"],inside:n.languages.yaml}}},blockquote:{pattern:/^>(?:[\t ]*>)*/m,alias:"punctuation"},table:{pattern:RegExp("^"+o+l+"(?:"+o+")*","m"),inside:{"table-data-rows":{pattern:RegExp("^("+o+l+")(?:"+o+")*$"),lookbehind:!0,inside:{"table-data":{pattern:RegExp(i),inside:n.languages.markdown},punctuation:/\|/}},"table-line":{pattern:RegExp("^("+o+")"+l+"$"),lookbehind:!0,inside:{punctuation:/\||:?-{3,}:?/}},"table-header-row":{pattern:RegExp("^"+o+"$"),inside:{"table-header":{pattern:RegExp(i),alias:"important",inside:n.languages.markdown},punctuation:/\|/}}}},code:[{pattern:/((?:^|\n)[ \t]*\n|(?:^|\r\n?)[ \t]*\r\n?)(?: {4}|\t).+(?:(?:\n|\r\n?)(?: {4}|\t).+)*/,lookbehind:!0,alias:"keyword"},{pattern:/^```[\s\S]*?^```$/m,greedy:!0,inside:{"code-block":{pattern:/^(```.*(?:\n|\r\n?))[\s\S]+?(?=(?:\n|\r\n?)^```$)/m,lookbehind:!0},"code-language":{pattern:/^(```).+/,lookbehind:!0},punctuation:/```/}}],title:[{pattern:/\S.*(?:\n|\r\n?)(?:==+|--+)(?=[ \t]*$)/m,alias:"important",inside:{punctuation:/==+$|--+$/}},{pattern:/(^\s*)#.+/m,lookbehind:!0,alias:"important",inside:{punctuation:/^#+|#+$/}}],hr:{pattern:/(^\s*)([*-])(?:[\t ]*\2){2,}(?=\s*$)/m,lookbehind:!0,alias:"punctuation"},list:{pattern:/(^\s*)(?:[*+-]|\d+\.)(?=[\t ].)/m,lookbehind:!0,alias:"punctuation"},"url-reference":{pattern:/!?\[[^\]]+\]:[\t ]+(?:\S+|<(?:\\.|[^>\\])+>)(?:[\t ]+(?:"(?:\\.|[^"\\])*"|'(?:\\.|[^'\\])*'|\((?:\\.|[^)\\])*\)))?/,inside:{variable:{pattern:/^(!?\[)[^\]]+/,lookbehind:!0},string:/(?:"(?:\\.|[^"\\])*"|'(?:\\.|[^'\\])*'|\((?:\\.|[^)\\])*\))$/,punctuation:/^[\[\]!:]|[<>]/},alias:"url"},bold:{pattern:a(/\b__(?:(?!_)|_(?:(?!_))+_)+__\b|\*\*(?:(?!\*)|\*(?:(?!\*))+\*)+\*\*/.source),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^..)[\s\S]+(?=..$)/,lookbehind:!0,inside:{}},punctuation:/\*\*|__/}},italic:{pattern:a(/\b_(?:(?!_)|__(?:(?!_))+__)+_\b|\*(?:(?!\*)|\*\*(?:(?!\*))+\*\*)+\*/.source),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^.)[\s\S]+(?=.$)/,lookbehind:!0,inside:{}},punctuation:/[*_]/}},strike:{pattern:a(/(~~?)(?:(?!~))+\2/.source),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^~~?)[\s\S]+(?=\1$)/,lookbehind:!0,inside:{}},punctuation:/~~?/}},"code-snippet":{pattern:/(^|[^\\`])(?:``[^`\r\n]+(?:`[^`\r\n]+)*``(?!`)|`[^`\r\n]+`(?!`))/,lookbehind:!0,greedy:!0,alias:["code","keyword"]},url:{pattern:a(/!?\[(?:(?!\]))+\](?:\([^\s)]+(?:[\t ]+"(?:\\.|[^"\\])*")?\)|[ \t]?\[(?:(?!\]))+\])/.source),lookbehind:!0,greedy:!0,inside:{operator:/^!/,content:{pattern:/(^\[)[^\]]+(?=\])/,lookbehind:!0,inside:{}},variable:{pattern:/(^\][ \t]?\[)[^\]]+(?=\]$)/,lookbehind:!0},url:{pattern:/(^\]\()[^\s)]+/,lookbehind:!0},string:{pattern:/(^[ \t]+)"(?:\\.|[^"\\])*"(?=\)$)/,lookbehind:!0}}}}),["url","bold","italic","strike"].forEach(function(y){["url","bold","italic","strike","code-snippet"].forEach(function(h){y!==h&&(n.languages.markdown[y].inside.content.inside[h]=n.languages.markdown[h])})}),n.hooks.add("after-tokenize",function(y){if(y.language!=="markdown"&&y.language!=="md")return;function h(v){if(!(!v||typeof v=="string"))for(var E=0,T=v.length;E",quot:'"'},f=String.fromCodePoint||String.fromCharCode;function g(y){var h=y.replace(u,"");return h=h.replace(/&(\w{1,8}|#x?[\da-f]{1,8});/gi,function(v,E){if(E=E.toLowerCase(),E[0]==="#"){var T;return E[1]==="x"?T=parseInt(E.slice(2),16):T=Number(E.slice(1)),f(T)}else{var C=d[E];return C||v}}),h}n.languages.md=n.languages.markdown})(t)}return zI}var qI,E7;function d6e(){if(E7)return qI;E7=1,qI=e,e.displayName="matlab",e.aliases=[];function e(t){t.languages.matlab={comment:[/%\{[\s\S]*?\}%/,/%.+/],string:{pattern:/\B'(?:''|[^'\r\n])*'/,greedy:!0},number:/(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[eE][+-]?\d+)?(?:[ij])?|\b[ij]\b/,keyword:/\b(?:NaN|break|case|catch|continue|else|elseif|end|for|function|if|inf|otherwise|parfor|pause|pi|return|switch|try|while)\b/,function:/\b(?!\d)\w+(?=\s*\()/,operator:/\.?[*^\/\\']|[+\-:@]|[<>=~]=?|&&?|\|\|?/,punctuation:/\.{3}|[.,;\[\](){}!]/}}return qI}var HI,T7;function f6e(){if(T7)return HI;T7=1,HI=e,e.displayName="maxscript",e.aliases=[];function e(t){(function(n){var r=/\b(?:about|and|animate|as|at|attributes|by|case|catch|collect|continue|coordsys|do|else|exit|fn|for|from|function|global|if|in|local|macroscript|mapped|max|not|of|off|on|or|parameters|persistent|plugin|rcmenu|return|rollout|set|struct|then|throw|to|tool|try|undo|utility|when|where|while|with)\b/i;n.languages.maxscript={comment:{pattern:/\/\*[\s\S]*?(?:\*\/|$)|--.*/,greedy:!0},string:{pattern:/(^|[^"\\@])(?:"(?:[^"\\]|\\[\s\S])*"|@"[^"]*")/,lookbehind:!0,greedy:!0},path:{pattern:/\$(?:[\w/\\.*?]|'[^']*')*/,greedy:!0,alias:"string"},"function-call":{pattern:RegExp("((?:"+(/^/.source+"|"+/[;=<>+\-*/^({\[]/.source+"|"+/\b(?:and|by|case|catch|collect|do|else|if|in|not|or|return|then|to|try|where|while|with)\b/.source)+")[ ]*)(?!"+r.source+")"+/[a-z_]\w*\b/.source+"(?=[ ]*(?:"+("(?!"+r.source+")"+/[a-z_]/.source+"|"+/\d|-\.?\d/.source+"|"+/[({'"$@#?]/.source)+"))","im"),lookbehind:!0,greedy:!0,alias:"function"},"function-definition":{pattern:/(\b(?:fn|function)\s+)\w+\b/i,lookbehind:!0,alias:"function"},argument:{pattern:/\b[a-z_]\w*(?=:)/i,alias:"attr-name"},keyword:r,boolean:/\b(?:false|true)\b/,time:{pattern:/(^|[^\w.])(?:(?:(?:\d+(?:\.\d*)?|\.\d+)(?:[eEdD][+-]\d+|[LP])?[msft])+|\d+:\d+(?:\.\d*)?)(?![\w.:])/,lookbehind:!0,alias:"number"},number:[{pattern:/(^|[^\w.])(?:(?:\d+(?:\.\d*)?|\.\d+)(?:[eEdD][+-]\d+|[LP])?|0x[a-fA-F0-9]+)(?![\w.:])/,lookbehind:!0},/\b(?:e|pi)\b/],constant:/\b(?:dontcollect|ok|silentValue|undefined|unsupplied)\b/,color:{pattern:/\b(?:black|blue|brown|gray|green|orange|red|white|yellow)\b/i,alias:"constant"},operator:/[-+*/<>=!]=?|[&^?]|#(?!\()/,punctuation:/[()\[\]{}.:,;]|#(?=\()|\\$/m}})(t)}return HI}var VI,C7;function p6e(){if(C7)return VI;C7=1,VI=e,e.displayName="mel",e.aliases=[];function e(t){t.languages.mel={comment:/\/\/.*/,code:{pattern:/`(?:\\.|[^\\`\r\n])*`/,greedy:!0,alias:"italic",inside:{delimiter:{pattern:/^`|`$/,alias:"punctuation"}}},string:{pattern:/"(?:\\.|[^\\"\r\n])*"/,greedy:!0},variable:/\$\w+/,number:/\b0x[\da-fA-F]+\b|\b\d+(?:\.\d*)?|\B\.\d+/,flag:{pattern:/-[^\d\W]\w*/,alias:"operator"},keyword:/\b(?:break|case|continue|default|do|else|float|for|global|if|in|int|matrix|proc|return|string|switch|vector|while)\b/,function:/\b\w+(?=\()|\b(?:CBG|HfAddAttractorToAS|HfAssignAS|HfBuildEqualMap|HfBuildFurFiles|HfBuildFurImages|HfCancelAFR|HfConnectASToHF|HfCreateAttractor|HfDeleteAS|HfEditAS|HfPerformCreateAS|HfRemoveAttractorFromAS|HfSelectAttached|HfSelectAttractors|HfUnAssignAS|Mayatomr|about|abs|addAttr|addAttributeEditorNodeHelp|addDynamic|addNewShelfTab|addPP|addPanelCategory|addPrefixToName|advanceToNextDrivenKey|affectedNet|affects|aimConstraint|air|alias|aliasAttr|align|alignCtx|alignCurve|alignSurface|allViewFit|ambientLight|angle|angleBetween|animCone|animCurveEditor|animDisplay|animView|annotate|appendStringArray|applicationName|applyAttrPreset|applyTake|arcLenDimContext|arcLengthDimension|arclen|arrayMapper|art3dPaintCtx|artAttrCtx|artAttrPaintVertexCtx|artAttrSkinPaintCtx|artAttrTool|artBuildPaintMenu|artFluidAttrCtx|artPuttyCtx|artSelectCtx|artSetPaintCtx|artUserPaintCtx|assignCommand|assignInputDevice|assignViewportFactories|attachCurve|attachDeviceAttr|attachSurface|attrColorSliderGrp|attrCompatibility|attrControlGrp|attrEnumOptionMenu|attrEnumOptionMenuGrp|attrFieldGrp|attrFieldSliderGrp|attrNavigationControlGrp|attrPresetEditWin|attributeExists|attributeInfo|attributeMenu|attributeQuery|autoKeyframe|autoPlace|bakeClip|bakeFluidShading|bakePartialHistory|bakeResults|bakeSimulation|basename|basenameEx|batchRender|bessel|bevel|bevelPlus|binMembership|bindSkin|blend2|blendShape|blendShapeEditor|blendShapePanel|blendTwoAttr|blindDataType|boneLattice|boundary|boxDollyCtx|boxZoomCtx|bufferCurve|buildBookmarkMenu|buildKeyframeMenu|button|buttonManip|cacheFile|cacheFileCombine|cacheFileMerge|cacheFileTrack|camera|cameraView|canCreateManip|canvas|capitalizeString|catch|catchQuiet|ceil|changeSubdivComponentDisplayLevel|changeSubdivRegion|channelBox|character|characterMap|characterOutlineEditor|characterize|chdir|checkBox|checkBoxGrp|checkDefaultRenderGlobals|choice|circle|circularFillet|clamp|clear|clearCache|clip|clipEditor|clipEditorCurrentTimeCtx|clipSchedule|clipSchedulerOutliner|clipTrimBefore|closeCurve|closeSurface|cluster|cmdFileOutput|cmdScrollFieldExecuter|cmdScrollFieldReporter|cmdShell|coarsenSubdivSelectionList|collision|color|colorAtPoint|colorEditor|colorIndex|colorIndexSliderGrp|colorSliderButtonGrp|colorSliderGrp|columnLayout|commandEcho|commandLine|commandPort|compactHairSystem|componentEditor|compositingInterop|computePolysetVolume|condition|cone|confirmDialog|connectAttr|connectControl|connectDynamic|connectJoint|connectionInfo|constrain|constrainValue|constructionHistory|container|containsMultibyte|contextInfo|control|convertFromOldLayers|convertIffToPsd|convertLightmap|convertSolidTx|convertTessellation|convertUnit|copyArray|copyFlexor|copyKey|copySkinWeights|cos|cpButton|cpCache|cpClothSet|cpCollision|cpConstraint|cpConvClothToMesh|cpForces|cpGetSolverAttr|cpPanel|cpProperty|cpRigidCollisionFilter|cpSeam|cpSetEdit|cpSetSolverAttr|cpSolver|cpSolverTypes|cpTool|cpUpdateClothUVs|createDisplayLayer|createDrawCtx|createEditor|createLayeredPsdFile|createMotionField|createNewShelf|createNode|createRenderLayer|createSubdivRegion|cross|crossProduct|ctxAbort|ctxCompletion|ctxEditMode|ctxTraverse|currentCtx|currentTime|currentTimeCtx|currentUnit|curve|curveAddPtCtx|curveCVCtx|curveEPCtx|curveEditorCtx|curveIntersect|curveMoveEPCtx|curveOnSurface|curveSketchCtx|cutKey|cycleCheck|cylinder|dagPose|date|defaultLightListCheckBox|defaultNavigation|defineDataServer|defineVirtualDevice|deformer|deg_to_rad|delete|deleteAttr|deleteShadingGroupsAndMaterials|deleteShelfTab|deleteUI|deleteUnusedBrushes|delrandstr|detachCurve|detachDeviceAttr|detachSurface|deviceEditor|devicePanel|dgInfo|dgdirty|dgeval|dgtimer|dimWhen|directKeyCtx|directionalLight|dirmap|dirname|disable|disconnectAttr|disconnectJoint|diskCache|displacementToPoly|displayAffected|displayColor|displayCull|displayLevelOfDetail|displayPref|displayRGBColor|displaySmoothness|displayStats|displayString|displaySurface|distanceDimContext|distanceDimension|doBlur|dolly|dollyCtx|dopeSheetEditor|dot|dotProduct|doubleProfileBirailSurface|drag|dragAttrContext|draggerContext|dropoffLocator|duplicate|duplicateCurve|duplicateSurface|dynCache|dynControl|dynExport|dynExpression|dynGlobals|dynPaintEditor|dynParticleCtx|dynPref|dynRelEdPanel|dynRelEditor|dynamicLoad|editAttrLimits|editDisplayLayerGlobals|editDisplayLayerMembers|editRenderLayerAdjustment|editRenderLayerGlobals|editRenderLayerMembers|editor|editorTemplate|effector|emit|emitter|enableDevice|encodeString|endString|endsWith|env|equivalent|equivalentTol|erf|error|eval|evalDeferred|evalEcho|event|exactWorldBoundingBox|exclusiveLightCheckBox|exec|executeForEachObject|exists|exp|expression|expressionEditorListen|extendCurve|extendSurface|extrude|fcheck|fclose|feof|fflush|fgetline|fgetword|file|fileBrowserDialog|fileDialog|fileExtension|fileInfo|filetest|filletCurve|filter|filterCurve|filterExpand|filterStudioImport|findAllIntersections|findAnimCurves|findKeyframe|findMenuItem|findRelatedSkinCluster|finder|firstParentOf|fitBspline|flexor|floatEq|floatField|floatFieldGrp|floatScrollBar|floatSlider|floatSlider2|floatSliderButtonGrp|floatSliderGrp|floor|flow|fluidCacheInfo|fluidEmitter|fluidVoxelInfo|flushUndo|fmod|fontDialog|fopen|formLayout|format|fprint|frameLayout|fread|freeFormFillet|frewind|fromNativePath|fwrite|gamma|gauss|geometryConstraint|getApplicationVersionAsFloat|getAttr|getClassification|getDefaultBrush|getFileList|getFluidAttr|getInputDeviceRange|getMayaPanelTypes|getModifiers|getPanel|getParticleAttr|getPluginResource|getenv|getpid|glRender|glRenderEditor|globalStitch|gmatch|goal|gotoBindPose|grabColor|gradientControl|gradientControlNoAttr|graphDollyCtx|graphSelectContext|graphTrackCtx|gravity|grid|gridLayout|group|groupObjectsByName|hardenPointCurve|hardware|hardwareRenderPanel|headsUpDisplay|headsUpMessage|help|helpLine|hermite|hide|hilite|hitTest|hotBox|hotkey|hotkeyCheck|hsv_to_rgb|hudButton|hudSlider|hudSliderButton|hwReflectionMap|hwRender|hwRenderLoad|hyperGraph|hyperPanel|hyperShade|hypot|iconTextButton|iconTextCheckBox|iconTextRadioButton|iconTextRadioCollection|iconTextScrollList|iconTextStaticLabel|ikHandle|ikHandleCtx|ikHandleDisplayScale|ikSolver|ikSplineHandleCtx|ikSystem|ikSystemInfo|ikfkDisplayMethod|illustratorCurves|image|imfPlugins|inheritTransform|insertJoint|insertJointCtx|insertKeyCtx|insertKnotCurve|insertKnotSurface|instance|instanceable|instancer|intField|intFieldGrp|intScrollBar|intSlider|intSliderGrp|interToUI|internalVar|intersect|iprEngine|isAnimCurve|isConnected|isDirty|isParentOf|isSameObject|isTrue|isValidObjectName|isValidString|isValidUiName|isolateSelect|itemFilter|itemFilterAttr|itemFilterRender|itemFilterType|joint|jointCluster|jointCtx|jointDisplayScale|jointLattice|keyTangent|keyframe|keyframeOutliner|keyframeRegionCurrentTimeCtx|keyframeRegionDirectKeyCtx|keyframeRegionDollyCtx|keyframeRegionInsertKeyCtx|keyframeRegionMoveKeyCtx|keyframeRegionScaleKeyCtx|keyframeRegionSelectKeyCtx|keyframeRegionSetKeyCtx|keyframeRegionTrackCtx|keyframeStats|lassoContext|lattice|latticeDeformKeyCtx|launch|launchImageEditor|layerButton|layeredShaderPort|layeredTexturePort|layout|layoutDialog|lightList|lightListEditor|lightListPanel|lightlink|lineIntersection|linearPrecision|linstep|listAnimatable|listAttr|listCameras|listConnections|listDeviceAttachments|listHistory|listInputDeviceAxes|listInputDeviceButtons|listInputDevices|listMenuAnnotation|listNodeTypes|listPanelCategories|listRelatives|listSets|listTransforms|listUnselected|listerEditor|loadFluid|loadNewShelf|loadPlugin|loadPluginLanguageResources|loadPrefObjects|localizedPanelLabel|lockNode|loft|log|longNameOf|lookThru|ls|lsThroughFilter|lsType|lsUI|mag|makeIdentity|makeLive|makePaintable|makeRoll|makeSingleSurface|makeTubeOn|makebot|manipMoveContext|manipMoveLimitsCtx|manipOptions|manipRotateContext|manipRotateLimitsCtx|manipScaleContext|manipScaleLimitsCtx|marker|match|max|memory|menu|menuBarLayout|menuEditor|menuItem|menuItemToShelf|menuSet|menuSetPref|messageLine|min|minimizeApp|mirrorJoint|modelCurrentTimeCtx|modelEditor|modelPanel|mouse|movIn|movOut|move|moveIKtoFK|moveKeyCtx|moveVertexAlongDirection|multiProfileBirailSurface|mute|nParticle|nameCommand|nameField|namespace|namespaceInfo|newPanelItems|newton|nodeCast|nodeIconButton|nodeOutliner|nodePreset|nodeType|noise|nonLinear|normalConstraint|normalize|nurbsBoolean|nurbsCopyUVSet|nurbsCube|nurbsEditUV|nurbsPlane|nurbsSelect|nurbsSquare|nurbsToPoly|nurbsToPolygonsPref|nurbsToSubdiv|nurbsToSubdivPref|nurbsUVSet|nurbsViewDirectionVector|objExists|objectCenter|objectLayer|objectType|objectTypeUI|obsoleteProc|oceanNurbsPreviewPlane|offsetCurve|offsetCurveOnSurface|offsetSurface|openGLExtension|openMayaPref|optionMenu|optionMenuGrp|optionVar|orbit|orbitCtx|orientConstraint|outlinerEditor|outlinerPanel|overrideModifier|paintEffectsDisplay|pairBlend|palettePort|paneLayout|panel|panelConfiguration|panelHistory|paramDimContext|paramDimension|paramLocator|parent|parentConstraint|particle|particleExists|particleInstancer|particleRenderInfo|partition|pasteKey|pathAnimation|pause|pclose|percent|performanceOptions|pfxstrokes|pickWalk|picture|pixelMove|planarSrf|plane|play|playbackOptions|playblast|plugAttr|plugNode|pluginInfo|pluginResourceUtil|pointConstraint|pointCurveConstraint|pointLight|pointMatrixMult|pointOnCurve|pointOnSurface|pointPosition|poleVectorConstraint|polyAppend|polyAppendFacetCtx|polyAppendVertex|polyAutoProjection|polyAverageNormal|polyAverageVertex|polyBevel|polyBlendColor|polyBlindData|polyBoolOp|polyBridgeEdge|polyCacheMonitor|polyCheck|polyChipOff|polyClipboard|polyCloseBorder|polyCollapseEdge|polyCollapseFacet|polyColorBlindData|polyColorDel|polyColorPerVertex|polyColorSet|polyCompare|polyCone|polyCopyUV|polyCrease|polyCreaseCtx|polyCreateFacet|polyCreateFacetCtx|polyCube|polyCut|polyCutCtx|polyCylinder|polyCylindricalProjection|polyDelEdge|polyDelFacet|polyDelVertex|polyDuplicateAndConnect|polyDuplicateEdge|polyEditUV|polyEditUVShell|polyEvaluate|polyExtrudeEdge|polyExtrudeFacet|polyExtrudeVertex|polyFlipEdge|polyFlipUV|polyForceUV|polyGeoSampler|polyHelix|polyInfo|polyInstallAction|polyLayoutUV|polyListComponentConversion|polyMapCut|polyMapDel|polyMapSew|polyMapSewMove|polyMergeEdge|polyMergeEdgeCtx|polyMergeFacet|polyMergeFacetCtx|polyMergeUV|polyMergeVertex|polyMirrorFace|polyMoveEdge|polyMoveFacet|polyMoveFacetUV|polyMoveUV|polyMoveVertex|polyNormal|polyNormalPerVertex|polyNormalizeUV|polyOptUvs|polyOptions|polyOutput|polyPipe|polyPlanarProjection|polyPlane|polyPlatonicSolid|polyPoke|polyPrimitive|polyPrism|polyProjection|polyPyramid|polyQuad|polyQueryBlindData|polyReduce|polySelect|polySelectConstraint|polySelectConstraintMonitor|polySelectCtx|polySelectEditCtx|polySeparate|polySetToFaceNormal|polySewEdge|polyShortestPathCtx|polySmooth|polySoftEdge|polySphere|polySphericalProjection|polySplit|polySplitCtx|polySplitEdge|polySplitRing|polySplitVertex|polyStraightenUVBorder|polySubdivideEdge|polySubdivideFacet|polyToSubdiv|polyTorus|polyTransfer|polyTriangulate|polyUVSet|polyUnite|polyWedgeFace|popen|popupMenu|pose|pow|preloadRefEd|print|progressBar|progressWindow|projFileViewer|projectCurve|projectTangent|projectionContext|projectionManip|promptDialog|propModCtx|propMove|psdChannelOutliner|psdEditTextureFile|psdExport|psdTextureFile|putenv|pwd|python|querySubdiv|quit|rad_to_deg|radial|radioButton|radioButtonGrp|radioCollection|radioMenuItemCollection|rampColorPort|rand|randomizeFollicles|randstate|rangeControl|readTake|rebuildCurve|rebuildSurface|recordAttr|recordDevice|redo|reference|referenceEdit|referenceQuery|refineSubdivSelectionList|refresh|refreshAE|registerPluginResource|rehash|reloadImage|removeJoint|removeMultiInstance|removePanelCategory|rename|renameAttr|renameSelectionList|renameUI|render|renderGlobalsNode|renderInfo|renderLayerButton|renderLayerParent|renderLayerPostProcess|renderLayerUnparent|renderManip|renderPartition|renderQualityNode|renderSettings|renderThumbnailUpdate|renderWindowEditor|renderWindowSelectContext|renderer|reorder|reorderDeformers|requires|reroot|resampleFluid|resetAE|resetPfxToPolyCamera|resetTool|resolutionNode|retarget|reverseCurve|reverseSurface|revolve|rgb_to_hsv|rigidBody|rigidSolver|roll|rollCtx|rootOf|rot|rotate|rotationInterpolation|roundConstantRadius|rowColumnLayout|rowLayout|runTimeCommand|runup|sampleImage|saveAllShelves|saveAttrPreset|saveFluid|saveImage|saveInitialState|saveMenu|savePrefObjects|savePrefs|saveShelf|saveToolSettings|scale|scaleBrushBrightness|scaleComponents|scaleConstraint|scaleKey|scaleKeyCtx|sceneEditor|sceneUIReplacement|scmh|scriptCtx|scriptEditorInfo|scriptJob|scriptNode|scriptTable|scriptToShelf|scriptedPanel|scriptedPanelType|scrollField|scrollLayout|sculpt|searchPathArray|seed|selLoadSettings|select|selectContext|selectCurveCV|selectKey|selectKeyCtx|selectKeyframeRegionCtx|selectMode|selectPref|selectPriority|selectType|selectedNodes|selectionConnection|separator|setAttr|setAttrEnumResource|setAttrMapping|setAttrNiceNameResource|setConstraintRestPosition|setDefaultShadingGroup|setDrivenKeyframe|setDynamic|setEditCtx|setEditor|setFluidAttr|setFocus|setInfinity|setInputDeviceMapping|setKeyCtx|setKeyPath|setKeyframe|setKeyframeBlendshapeTargetWts|setMenuMode|setNodeNiceNameResource|setNodeTypeFlag|setParent|setParticleAttr|setPfxToPolyCamera|setPluginResource|setProject|setStampDensity|setStartupMessage|setState|setToolTo|setUITemplate|setXformManip|sets|shadingConnection|shadingGeometryRelCtx|shadingLightRelCtx|shadingNetworkCompare|shadingNode|shapeCompare|shelfButton|shelfLayout|shelfTabLayout|shellField|shortNameOf|showHelp|showHidden|showManipCtx|showSelectionInTitle|showShadingGroupAttrEditor|showWindow|sign|simplify|sin|singleProfileBirailSurface|size|sizeBytes|skinCluster|skinPercent|smoothCurve|smoothTangentSurface|smoothstep|snap2to2|snapKey|snapMode|snapTogetherCtx|snapshot|soft|softMod|softModCtx|sort|sound|soundControl|source|spaceLocator|sphere|sphrand|spotLight|spotLightPreviewPort|spreadSheetEditor|spring|sqrt|squareSurface|srtContext|stackTrace|startString|startsWith|stitchAndExplodeShell|stitchSurface|stitchSurfacePoints|strcmp|stringArrayCatenate|stringArrayContains|stringArrayCount|stringArrayInsertAtIndex|stringArrayIntersector|stringArrayRemove|stringArrayRemoveAtIndex|stringArrayRemoveDuplicates|stringArrayRemoveExact|stringArrayToString|stringToStringArray|strip|stripPrefixFromName|stroke|subdAutoProjection|subdCleanTopology|subdCollapse|subdDuplicateAndConnect|subdEditUV|subdListComponentConversion|subdMapCut|subdMapSewMove|subdMatchTopology|subdMirror|subdToBlind|subdToPoly|subdTransferUVsToCache|subdiv|subdivCrease|subdivDisplaySmoothness|substitute|substituteAllString|substituteGeometry|substring|surface|surfaceSampler|surfaceShaderList|swatchDisplayPort|switchTable|symbolButton|symbolCheckBox|sysFile|system|tabLayout|tan|tangentConstraint|texLatticeDeformContext|texManipContext|texMoveContext|texMoveUVShellContext|texRotateContext|texScaleContext|texSelectContext|texSelectShortestPathCtx|texSmudgeUVContext|texWinToolCtx|text|textCurves|textField|textFieldButtonGrp|textFieldGrp|textManip|textScrollList|textToShelf|textureDisplacePlane|textureHairColor|texturePlacementContext|textureWindow|threadCount|threePointArcCtx|timeControl|timePort|timerX|toNativePath|toggle|toggleAxis|toggleWindowVisibility|tokenize|tokenizeList|tolerance|tolower|toolButton|toolCollection|toolDropped|toolHasOptions|toolPropertyWindow|torus|toupper|trace|track|trackCtx|transferAttributes|transformCompare|transformLimits|translator|trim|trunc|truncateFluidCache|truncateHairCache|tumble|tumbleCtx|turbulence|twoPointArcCtx|uiRes|uiTemplate|unassignInputDevice|undo|undoInfo|ungroup|uniform|unit|unloadPlugin|untangleUV|untitledFileName|untrim|upAxis|updateAE|userCtx|uvLink|uvSnapshot|validateShelfName|vectorize|view2dToolCtx|viewCamera|viewClipPlane|viewFit|viewHeadOn|viewLookAt|viewManip|viewPlace|viewSet|visor|volumeAxis|vortex|waitCursor|warning|webBrowser|webBrowserPrefs|whatIs|window|windowPref|wire|wireContext|workspace|wrinkle|wrinkleContext|writeTake|xbmLangPathList|xform)\b/,operator:[/\+[+=]?|-[-=]?|&&|\|\||[<>]=|[*\/!=]=?|[%^]/,{pattern:/(^|[^<])<(?!<)/,lookbehind:!0},{pattern:/(^|[^>])>(?!>)/,lookbehind:!0}],punctuation:/<<|>>|[.,:;?\[\](){}]/},t.languages.mel.code.inside.rest=t.languages.mel}return VI}var GI,k7;function h6e(){if(k7)return GI;k7=1,GI=e,e.displayName="mermaid",e.aliases=[];function e(t){t.languages.mermaid={comment:{pattern:/%%.*/,greedy:!0},style:{pattern:/^([ \t]*(?:classDef|linkStyle|style)[ \t]+[\w$-]+[ \t]+)\w.*[^\s;]/m,lookbehind:!0,inside:{property:/\b\w[\w-]*(?=[ \t]*:)/,operator:/:/,punctuation:/,/}},"inter-arrow-label":{pattern:/([^<>ox.=-])(?:-[-.]|==)(?![<>ox.=-])[ \t]*(?:"[^"\r\n]*"|[^\s".=-](?:[^\r\n.=-]*[^\s.=-])?)[ \t]*(?:\.+->?|--+[->]|==+[=>])(?![<>ox.=-])/,lookbehind:!0,greedy:!0,inside:{arrow:{pattern:/(?:\.+->?|--+[->]|==+[=>])$/,alias:"operator"},label:{pattern:/^([\s\S]{2}[ \t]*)\S(?:[\s\S]*\S)?/,lookbehind:!0,alias:"property"},"arrow-head":{pattern:/^\S+/,alias:["arrow","operator"]}}},arrow:[{pattern:/(^|[^{}|o.-])[|}][|o](?:--|\.\.)[|o][|{](?![{}|o.-])/,lookbehind:!0,alias:"operator"},{pattern:/(^|[^<>ox.=-])(?:[ox]?|(?:==+|--+|-\.*-)[>ox]|===+|---+|-\.+-)(?![<>ox.=-])/,lookbehind:!0,alias:"operator"},{pattern:/(^|[^<>()x-])(?:--?(?:>>|[x>)])(?![<>()x])|(?:<<|[x<(])--?(?!-))/,lookbehind:!0,alias:"operator"},{pattern:/(^|[^<>|*o.-])(?:[*o]--|--[*o]|<\|?(?:--|\.\.)|(?:--|\.\.)\|?>|--|\.\.)(?![<>|*o.-])/,lookbehind:!0,alias:"operator"}],label:{pattern:/(^|[^|<])\|(?:[^\r\n"|]|"[^"\r\n]*")+\|/,lookbehind:!0,greedy:!0,alias:"property"},text:{pattern:/(?:[(\[{]+|\b>)(?:[^\r\n"()\[\]{}]|"[^"\r\n]*")+(?:[)\]}]+|>)/,alias:"string"},string:{pattern:/"[^"\r\n]*"/,greedy:!0},annotation:{pattern:/<<(?:abstract|choice|enumeration|fork|interface|join|service)>>|\[\[(?:choice|fork|join)\]\]/i,alias:"important"},keyword:[{pattern:/(^[ \t]*)(?:action|callback|class|classDef|classDiagram|click|direction|erDiagram|flowchart|gantt|gitGraph|graph|journey|link|linkStyle|pie|requirementDiagram|sequenceDiagram|stateDiagram|stateDiagram-v2|style|subgraph)(?![\w$-])/m,lookbehind:!0,greedy:!0},{pattern:/(^[ \t]*)(?:activate|alt|and|as|autonumber|deactivate|else|end(?:[ \t]+note)?|loop|opt|par|participant|rect|state|note[ \t]+(?:over|(?:left|right)[ \t]+of))(?![\w$-])/im,lookbehind:!0,greedy:!0}],entity:/#[a-z0-9]+;/,operator:{pattern:/(\w[ \t]*)&(?=[ \t]*\w)|:::|:/,lookbehind:!0},punctuation:/[(){};]/}}return GI}var YI,x7;function m6e(){if(x7)return YI;x7=1,YI=e,e.displayName="mizar",e.aliases=[];function e(t){t.languages.mizar={comment:/::.+/,keyword:/@proof\b|\b(?:according|aggregate|all|and|antonym|are|as|associativity|assume|asymmetry|attr|be|begin|being|by|canceled|case|cases|clusters?|coherence|commutativity|compatibility|connectedness|consider|consistency|constructors|contradiction|correctness|def|deffunc|define|definitions?|defpred|do|does|end|environ|equals|ex|exactly|existence|for|from|func|given|hence|hereby|holds|idempotence|identity|iff?|implies|involutiveness|irreflexivity|is|it|let|means|mode|non|not|notations?|now|of|or|otherwise|over|per|pred|prefix|projectivity|proof|provided|qua|reconsider|redefine|reduce|reducibility|reflexivity|registrations?|requirements|reserve|sch|schemes?|section|selector|set|sethood|st|struct|such|suppose|symmetry|synonym|take|that|the|then|theorems?|thesis|thus|to|transitivity|uniqueness|vocabular(?:ies|y)|when|where|with|wrt)\b/,parameter:{pattern:/\$(?:10|\d)/,alias:"variable"},variable:/\b\w+(?=:)/,number:/(?:\b|-)\d+\b/,operator:/\.\.\.|->|&|\.?=/,punctuation:/\(#|#\)|[,:;\[\](){}]/}}return YI}var KI,_7;function g6e(){if(_7)return KI;_7=1,KI=e,e.displayName="mongodb",e.aliases=[];function e(t){(function(n){var r=["$eq","$gt","$gte","$in","$lt","$lte","$ne","$nin","$and","$not","$nor","$or","$exists","$type","$expr","$jsonSchema","$mod","$regex","$text","$where","$geoIntersects","$geoWithin","$near","$nearSphere","$all","$elemMatch","$size","$bitsAllClear","$bitsAllSet","$bitsAnyClear","$bitsAnySet","$comment","$elemMatch","$meta","$slice","$currentDate","$inc","$min","$max","$mul","$rename","$set","$setOnInsert","$unset","$addToSet","$pop","$pull","$push","$pullAll","$each","$position","$slice","$sort","$bit","$addFields","$bucket","$bucketAuto","$collStats","$count","$currentOp","$facet","$geoNear","$graphLookup","$group","$indexStats","$limit","$listLocalSessions","$listSessions","$lookup","$match","$merge","$out","$planCacheStats","$project","$redact","$replaceRoot","$replaceWith","$sample","$set","$skip","$sort","$sortByCount","$unionWith","$unset","$unwind","$setWindowFields","$abs","$accumulator","$acos","$acosh","$add","$addToSet","$allElementsTrue","$and","$anyElementTrue","$arrayElemAt","$arrayToObject","$asin","$asinh","$atan","$atan2","$atanh","$avg","$binarySize","$bsonSize","$ceil","$cmp","$concat","$concatArrays","$cond","$convert","$cos","$dateFromParts","$dateToParts","$dateFromString","$dateToString","$dayOfMonth","$dayOfWeek","$dayOfYear","$degreesToRadians","$divide","$eq","$exp","$filter","$first","$floor","$function","$gt","$gte","$hour","$ifNull","$in","$indexOfArray","$indexOfBytes","$indexOfCP","$isArray","$isNumber","$isoDayOfWeek","$isoWeek","$isoWeekYear","$last","$last","$let","$literal","$ln","$log","$log10","$lt","$lte","$ltrim","$map","$max","$mergeObjects","$meta","$min","$millisecond","$minute","$mod","$month","$multiply","$ne","$not","$objectToArray","$or","$pow","$push","$radiansToDegrees","$range","$reduce","$regexFind","$regexFindAll","$regexMatch","$replaceOne","$replaceAll","$reverseArray","$round","$rtrim","$second","$setDifference","$setEquals","$setIntersection","$setIsSubset","$setUnion","$size","$sin","$slice","$split","$sqrt","$stdDevPop","$stdDevSamp","$strcasecmp","$strLenBytes","$strLenCP","$substr","$substrBytes","$substrCP","$subtract","$sum","$switch","$tan","$toBool","$toDate","$toDecimal","$toDouble","$toInt","$toLong","$toObjectId","$toString","$toLower","$toUpper","$trim","$trunc","$type","$week","$year","$zip","$count","$dateAdd","$dateDiff","$dateSubtract","$dateTrunc","$getField","$rand","$sampleRate","$setField","$unsetField","$comment","$explain","$hint","$max","$maxTimeMS","$min","$orderby","$query","$returnKey","$showDiskLoc","$natural"],a=["ObjectId","Code","BinData","DBRef","Timestamp","NumberLong","NumberDecimal","MaxKey","MinKey","RegExp","ISODate","UUID"];r=r.map(function(o){return o.replace("$","\\$")});var i="(?:"+r.join("|")+")\\b";n.languages.mongodb=n.languages.extend("javascript",{}),n.languages.insertBefore("mongodb","string",{property:{pattern:/(?:(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1|(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)(?=\s*:)/,greedy:!0,inside:{keyword:RegExp(`^(['"])?`+i+"(?:\\1)?$")}}}),n.languages.mongodb.string.inside={url:{pattern:/https?:\/\/[-\w@:%.+~#=]{1,256}\.[a-z0-9()]{1,6}\b[-\w()@:%+.~#?&/=]*/i,greedy:!0},entity:{pattern:/\b(?:(?:[01]?\d\d?|2[0-4]\d|25[0-5])\.){3}(?:[01]?\d\d?|2[0-4]\d|25[0-5])\b/,greedy:!0}},n.languages.insertBefore("mongodb","constant",{builtin:{pattern:RegExp("\\b(?:"+a.join("|")+")\\b"),alias:"keyword"}})})(t)}return KI}var XI,O7;function v6e(){if(O7)return XI;O7=1,XI=e,e.displayName="monkey",e.aliases=[];function e(t){t.languages.monkey={comment:{pattern:/^#Rem\s[\s\S]*?^#End|'.+/im,greedy:!0},string:{pattern:/"[^"\r\n]*"/,greedy:!0},preprocessor:{pattern:/(^[ \t]*)#.+/m,lookbehind:!0,greedy:!0,alias:"property"},function:/\b\w+(?=\()/,"type-char":{pattern:/\b[?%#$]/,alias:"class-name"},number:{pattern:/((?:\.\.)?)(?:(?:\b|\B-\.?|\B\.)\d+(?:(?!\.\.)\.\d*)?|\$[\da-f]+)/i,lookbehind:!0},keyword:/\b(?:Abstract|Array|Bool|Case|Catch|Class|Const|Continue|Default|Eachin|Else|ElseIf|End|EndIf|Exit|Extends|Extern|False|Field|Final|Float|For|Forever|Function|Global|If|Implements|Import|Inline|Int|Interface|Local|Method|Module|New|Next|Null|Object|Private|Property|Public|Repeat|Return|Select|Self|Step|Strict|String|Super|Then|Throw|To|True|Try|Until|Void|Wend|While)\b/i,operator:/\.\.|<[=>]?|>=?|:?=|(?:[+\-*\/&~|]|\b(?:Mod|Shl|Shr)\b)=?|\b(?:And|Not|Or)\b/i,punctuation:/[.,:;()\[\]]/}}return XI}var QI,R7;function y6e(){if(R7)return QI;R7=1,QI=e,e.displayName="moonscript",e.aliases=["moon"];function e(t){t.languages.moonscript={comment:/--.*/,string:[{pattern:/'[^']*'|\[(=*)\[[\s\S]*?\]\1\]/,greedy:!0},{pattern:/"[^"]*"/,greedy:!0,inside:{interpolation:{pattern:/#\{[^{}]*\}/,inside:{moonscript:{pattern:/(^#\{)[\s\S]+(?=\})/,lookbehind:!0,inside:null},"interpolation-punctuation":{pattern:/#\{|\}/,alias:"punctuation"}}}}}],"class-name":[{pattern:/(\b(?:class|extends)[ \t]+)\w+/,lookbehind:!0},/\b[A-Z]\w*/],keyword:/\b(?:class|continue|do|else|elseif|export|extends|for|from|if|import|in|local|nil|return|self|super|switch|then|unless|using|when|while|with)\b/,variable:/@@?\w*/,property:{pattern:/\b(?!\d)\w+(?=:)|(:)(?!\d)\w+/,lookbehind:!0},function:{pattern:/\b(?:_G|_VERSION|assert|collectgarbage|coroutine\.(?:create|resume|running|status|wrap|yield)|debug\.(?:debug|getfenv|gethook|getinfo|getlocal|getmetatable|getregistry|getupvalue|setfenv|sethook|setlocal|setmetatable|setupvalue|traceback)|dofile|error|getfenv|getmetatable|io\.(?:close|flush|input|lines|open|output|popen|read|stderr|stdin|stdout|tmpfile|type|write)|ipairs|load|loadfile|loadstring|math\.(?:abs|acos|asin|atan|atan2|ceil|cos|cosh|deg|exp|floor|fmod|frexp|ldexp|log|log10|max|min|modf|pi|pow|rad|random|randomseed|sin|sinh|sqrt|tan|tanh)|module|next|os\.(?:clock|date|difftime|execute|exit|getenv|remove|rename|setlocale|time|tmpname)|package\.(?:cpath|loaded|loadlib|path|preload|seeall)|pairs|pcall|print|rawequal|rawget|rawset|require|select|setfenv|setmetatable|string\.(?:byte|char|dump|find|format|gmatch|gsub|len|lower|match|rep|reverse|sub|upper)|table\.(?:concat|insert|maxn|remove|sort)|tonumber|tostring|type|unpack|xpcall)\b/,inside:{punctuation:/\./}},boolean:/\b(?:false|true)\b/,number:/(?:\B\.\d+|\b\d+\.\d+|\b\d+(?=[eE]))(?:[eE][-+]?\d+)?\b|\b(?:0x[a-fA-F\d]+|\d+)(?:U?LL)?\b/,operator:/\.{3}|[-=]>|~=|(?:[-+*/%<>!=]|\.\.)=?|[:#^]|\b(?:and|or)\b=?|\b(?:not)\b/,punctuation:/[.,()[\]{}\\]/},t.languages.moonscript.string[1].inside.interpolation.inside.moonscript.inside=t.languages.moonscript,t.languages.moon=t.languages.moonscript}return QI}var JI,P7;function b6e(){if(P7)return JI;P7=1,JI=e,e.displayName="n1ql",e.aliases=[];function e(t){t.languages.n1ql={comment:{pattern:/\/\*[\s\S]*?(?:$|\*\/)|--.*/,greedy:!0},string:{pattern:/(["'])(?:\\[\s\S]|(?!\1)[^\\]|\1\1)*\1/,greedy:!0},identifier:{pattern:/`(?:\\[\s\S]|[^\\`]|``)*`/,greedy:!0},parameter:/\$[\w.]+/,keyword:/\b(?:ADVISE|ALL|ALTER|ANALYZE|AS|ASC|AT|BEGIN|BINARY|BOOLEAN|BREAK|BUCKET|BUILD|BY|CALL|CAST|CLUSTER|COLLATE|COLLECTION|COMMIT|COMMITTED|CONNECT|CONTINUE|CORRELATE|CORRELATED|COVER|CREATE|CURRENT|DATABASE|DATASET|DATASTORE|DECLARE|DECREMENT|DELETE|DERIVED|DESC|DESCRIBE|DISTINCT|DO|DROP|EACH|ELEMENT|EXCEPT|EXCLUDE|EXECUTE|EXPLAIN|FETCH|FILTER|FLATTEN|FLUSH|FOLLOWING|FOR|FORCE|FROM|FTS|FUNCTION|GOLANG|GRANT|GROUP|GROUPS|GSI|HASH|HAVING|IF|IGNORE|ILIKE|INCLUDE|INCREMENT|INDEX|INFER|INLINE|INNER|INSERT|INTERSECT|INTO|IS|ISOLATION|JAVASCRIPT|JOIN|KEY|KEYS|KEYSPACE|KNOWN|LANGUAGE|LAST|LEFT|LET|LETTING|LEVEL|LIMIT|LSM|MAP|MAPPING|MATCHED|MATERIALIZED|MERGE|MINUS|MISSING|NAMESPACE|NEST|NL|NO|NTH_VALUE|NULL|NULLS|NUMBER|OBJECT|OFFSET|ON|OPTION|OPTIONS|ORDER|OTHERS|OUTER|OVER|PARSE|PARTITION|PASSWORD|PATH|POOL|PRECEDING|PREPARE|PRIMARY|PRIVATE|PRIVILEGE|PROBE|PROCEDURE|PUBLIC|RANGE|RAW|REALM|REDUCE|RENAME|RESPECT|RETURN|RETURNING|REVOKE|RIGHT|ROLE|ROLLBACK|ROW|ROWS|SATISFIES|SAVEPOINT|SCHEMA|SCOPE|SELECT|SELF|SEMI|SET|SHOW|SOME|START|STATISTICS|STRING|SYSTEM|TIES|TO|TRAN|TRANSACTION|TRIGGER|TRUNCATE|UNBOUNDED|UNDER|UNION|UNIQUE|UNKNOWN|UNNEST|UNSET|UPDATE|UPSERT|USE|USER|USING|VALIDATE|VALUE|VALUES|VIA|VIEW|WHERE|WHILE|WINDOW|WITH|WORK|XOR)\b/i,function:/\b[a-z_]\w*(?=\s*\()/i,boolean:/\b(?:FALSE|TRUE)\b/i,number:/(?:\b\d+\.|\B\.)\d+e[+\-]?\d+\b|\b\d+(?:\.\d*)?|\B\.\d+\b/i,operator:/[-+*\/%]|!=|==?|\|\||<[>=]?|>=?|\b(?:AND|ANY|ARRAY|BETWEEN|CASE|ELSE|END|EVERY|EXISTS|FIRST|IN|LIKE|NOT|OR|THEN|VALUED|WHEN|WITHIN)\b/i,punctuation:/[;[\](),.{}:]/}}return JI}var ZI,A7;function w6e(){if(A7)return ZI;A7=1,ZI=e,e.displayName="n4js",e.aliases=["n4jsd"];function e(t){t.languages.n4js=t.languages.extend("javascript",{keyword:/\b(?:Array|any|boolean|break|case|catch|class|const|constructor|continue|debugger|declare|default|delete|do|else|enum|export|extends|false|finally|for|from|function|get|if|implements|import|in|instanceof|interface|let|module|new|null|number|package|private|protected|public|return|set|static|string|super|switch|this|throw|true|try|typeof|var|void|while|with|yield)\b/}),t.languages.insertBefore("n4js","constant",{annotation:{pattern:/@+\w+/,alias:"operator"}}),t.languages.n4jsd=t.languages.n4js}return ZI}var eD,N7;function S6e(){if(N7)return eD;N7=1,eD=e,e.displayName="nand2tetrisHdl",e.aliases=[];function e(t){t.languages["nand2tetris-hdl"]={comment:/\/\/.*|\/\*[\s\S]*?(?:\*\/|$)/,keyword:/\b(?:BUILTIN|CHIP|CLOCKED|IN|OUT|PARTS)\b/,boolean:/\b(?:false|true)\b/,function:/\b[A-Za-z][A-Za-z0-9]*(?=\()/,number:/\b\d+\b/,operator:/=|\.\./,punctuation:/[{}[\];(),:]/}}return eD}var tD,M7;function E6e(){if(M7)return tD;M7=1,tD=e,e.displayName="naniscript",e.aliases=[];function e(t){(function(n){var r=/\{[^\r\n\[\]{}]*\}/,a={"quoted-string":{pattern:/"(?:[^"\\]|\\.)*"/,alias:"operator"},"command-param-id":{pattern:/(\s)\w+:/,lookbehind:!0,alias:"property"},"command-param-value":[{pattern:r,alias:"selector"},{pattern:/([\t ])\S+/,lookbehind:!0,greedy:!0,alias:"operator"},{pattern:/\S(?:.*\S)?/,alias:"operator"}]};n.languages.naniscript={comment:{pattern:/^([\t ]*);.*/m,lookbehind:!0},define:{pattern:/^>.+/m,alias:"tag",inside:{value:{pattern:/(^>\w+[\t ]+)(?!\s)[^{}\r\n]+/,lookbehind:!0,alias:"operator"},key:{pattern:/(^>)\w+/,lookbehind:!0}}},label:{pattern:/^([\t ]*)#[\t ]*\w+[\t ]*$/m,lookbehind:!0,alias:"regex"},command:{pattern:/^([\t ]*)@\w+(?=[\t ]|$).*/m,lookbehind:!0,alias:"function",inside:{"command-name":/^@\w+/,expression:{pattern:r,greedy:!0,alias:"selector"},"command-params":{pattern:/\s*\S[\s\S]*/,inside:a}}},"generic-text":{pattern:/(^[ \t]*)[^#@>;\s].*/m,lookbehind:!0,alias:"punctuation",inside:{"escaped-char":/\\[{}\[\]"]/,expression:{pattern:r,greedy:!0,alias:"selector"},"inline-command":{pattern:/\[[\t ]*\w[^\r\n\[\]]*\]/,greedy:!0,alias:"function",inside:{"command-params":{pattern:/(^\[[\t ]*\w+\b)[\s\S]+(?=\]$)/,lookbehind:!0,inside:a},"command-param-name":{pattern:/^(\[[\t ]*)\w+/,lookbehind:!0,alias:"name"},"start-stop-char":/[\[\]]/}}}}},n.languages.nani=n.languages.naniscript,n.hooks.add("after-tokenize",function(l){var u=l.tokens;u.forEach(function(d){if(typeof d!="string"&&d.type==="generic-text"){var f=o(d);i(f)||(d.type="bad-line",d.content=f)}})});function i(l){for(var u="[]{}",d=[],f=0;f=&|$!]/}}return nD}var rD,D7;function C6e(){if(D7)return rD;D7=1,rD=e,e.displayName="neon",e.aliases=[];function e(t){t.languages.neon={comment:{pattern:/#.*/,greedy:!0},datetime:{pattern:/(^|[[{(=:,\s])\d\d\d\d-\d\d?-\d\d?(?:(?:[Tt]| +)\d\d?:\d\d:\d\d(?:\.\d*)? *(?:Z|[-+]\d\d?(?::?\d\d)?)?)?(?=$|[\]}),\s])/,lookbehind:!0,alias:"number"},key:{pattern:/(^|[[{(,\s])[^,:=[\]{}()'"\s]+(?=\s*:(?:$|[\]}),\s])|\s*=)/,lookbehind:!0,alias:"atrule"},number:{pattern:/(^|[[{(=:,\s])[+-]?(?:0x[\da-fA-F]+|0o[0-7]+|0b[01]+|(?:\d+(?:\.\d*)?|\.?\d+)(?:[eE][+-]?\d+)?)(?=$|[\]}),:=\s])/,lookbehind:!0},boolean:{pattern:/(^|[[{(=:,\s])(?:false|no|true|yes)(?=$|[\]}),:=\s])/i,lookbehind:!0},null:{pattern:/(^|[[{(=:,\s])(?:null)(?=$|[\]}),:=\s])/i,lookbehind:!0,alias:"keyword"},string:{pattern:/(^|[[{(=:,\s])(?:('''|""")\r?\n(?:(?:[^\r\n]|\r?\n(?![\t ]*\2))*\r?\n)?[\t ]*\2|'[^'\r\n]*'|"(?:\\.|[^\\"\r\n])*")/,lookbehind:!0,greedy:!0},literal:{pattern:/(^|[[{(=:,\s])(?:[^#"',:=[\]{}()\s`-]|[:-][^"',=[\]{}()\s])(?:[^,:=\]})(\s]|:(?![\s,\]})]|$)|[ \t]+[^#,:=\]})(\s])*/,lookbehind:!0,alias:"string"},punctuation:/[,:=[\]{}()-]/}}return rD}var aD,$7;function k6e(){if($7)return aD;$7=1,aD=e,e.displayName="nevod",e.aliases=[];function e(t){t.languages.nevod={comment:/\/\/.*|(?:\/\*[\s\S]*?(?:\*\/|$))/,string:{pattern:/(?:"(?:""|[^"])*"(?!")|'(?:''|[^'])*'(?!'))!?\*?/,greedy:!0,inside:{"string-attrs":/!$|!\*$|\*$/}},namespace:{pattern:/(@namespace\s+)[a-zA-Z0-9\-.]+(?=\s*\{)/,lookbehind:!0},pattern:{pattern:/(@pattern\s+)?#?[a-zA-Z0-9\-.]+(?:\s*\(\s*(?:~\s*)?[a-zA-Z0-9\-.]+\s*(?:,\s*(?:~\s*)?[a-zA-Z0-9\-.]*)*\))?(?=\s*=)/,lookbehind:!0,inside:{"pattern-name":{pattern:/^#?[a-zA-Z0-9\-.]+/,alias:"class-name"},fields:{pattern:/\(.*\)/,inside:{"field-name":{pattern:/[a-zA-Z0-9\-.]+/,alias:"variable"},punctuation:/[,()]/,operator:{pattern:/~/,alias:"field-hidden-mark"}}}}},search:{pattern:/(@search\s+|#)[a-zA-Z0-9\-.]+(?:\.\*)?(?=\s*;)/,alias:"function",lookbehind:!0},keyword:/@(?:having|inside|namespace|outside|pattern|require|search|where)\b/,"standard-pattern":{pattern:/\b(?:Alpha|AlphaNum|Any|Blank|End|LineBreak|Num|NumAlpha|Punct|Space|Start|Symbol|Word|WordBreak)\b(?:\([a-zA-Z0-9\-.,\s+]*\))?/,inside:{"standard-pattern-name":{pattern:/^[a-zA-Z0-9\-.]+/,alias:"builtin"},quantifier:{pattern:/\b\d+(?:\s*\+|\s*-\s*\d+)?(?!\w)/,alias:"number"},"standard-pattern-attr":{pattern:/[a-zA-Z0-9\-.]+/,alias:"builtin"},punctuation:/[,()]/}},quantifier:{pattern:/\b\d+(?:\s*\+|\s*-\s*\d+)?(?!\w)/,alias:"number"},operator:[{pattern:/=/,alias:"pattern-def"},{pattern:/&/,alias:"conjunction"},{pattern:/~/,alias:"exception"},{pattern:/\?/,alias:"optionality"},{pattern:/[[\]]/,alias:"repetition"},{pattern:/[{}]/,alias:"variation"},{pattern:/[+_]/,alias:"sequence"},{pattern:/\.{2,3}/,alias:"span"}],"field-capture":[{pattern:/([a-zA-Z0-9\-.]+\s*\()\s*[a-zA-Z0-9\-.]+\s*:\s*[a-zA-Z0-9\-.]+(?:\s*,\s*[a-zA-Z0-9\-.]+\s*:\s*[a-zA-Z0-9\-.]+)*(?=\s*\))/,lookbehind:!0,inside:{"field-name":{pattern:/[a-zA-Z0-9\-.]+/,alias:"variable"},colon:/:/}},{pattern:/[a-zA-Z0-9\-.]+\s*:/,inside:{"field-name":{pattern:/[a-zA-Z0-9\-.]+/,alias:"variable"},colon:/:/}}],punctuation:/[:;,()]/,name:/[a-zA-Z0-9\-.]+/}}return aD}var iD,L7;function x6e(){if(L7)return iD;L7=1,iD=e,e.displayName="nginx",e.aliases=[];function e(t){(function(n){var r=/\$(?:\w[a-z\d]*(?:_[^\x00-\x1F\s"'\\()$]*)?|\{[^}\s"'\\]+\})/i;n.languages.nginx={comment:{pattern:/(^|[\s{};])#.*/,lookbehind:!0,greedy:!0},directive:{pattern:/(^|\s)\w(?:[^;{}"'\\\s]|\\.|"(?:[^"\\]|\\.)*"|'(?:[^'\\]|\\.)*'|\s+(?:#.*(?!.)|(?![#\s])))*?(?=\s*[;{])/,lookbehind:!0,greedy:!0,inside:{string:{pattern:/((?:^|[^\\])(?:\\\\)*)(?:"(?:[^"\\]|\\.)*"|'(?:[^'\\]|\\.)*')/,lookbehind:!0,greedy:!0,inside:{escape:{pattern:/\\["'\\nrt]/,alias:"entity"},variable:r}},comment:{pattern:/(\s)#.*/,lookbehind:!0,greedy:!0},keyword:{pattern:/^\S+/,greedy:!0},boolean:{pattern:/(\s)(?:off|on)(?!\S)/,lookbehind:!0},number:{pattern:/(\s)\d+[a-z]*(?!\S)/i,lookbehind:!0},variable:r}},punctuation:/[{};]/}})(t)}return iD}var oD,F7;function _6e(){if(F7)return oD;F7=1,oD=e,e.displayName="nim",e.aliases=[];function e(t){t.languages.nim={comment:{pattern:/#.*/,greedy:!0},string:{pattern:/(?:\b(?!\d)(?:\w|\\x[89a-fA-F][0-9a-fA-F])+)?(?:"""[\s\S]*?"""(?!")|"(?:\\[\s\S]|""|[^"\\])*")/,greedy:!0},char:{pattern:/'(?:\\(?:\d+|x[\da-fA-F]{0,2}|.)|[^'])'/,greedy:!0},function:{pattern:/(?:(?!\d)(?:\w|\\x[89a-fA-F][0-9a-fA-F])+|`[^`\r\n]+`)\*?(?:\[[^\]]+\])?(?=\s*\()/,greedy:!0,inside:{operator:/\*$/}},identifier:{pattern:/`[^`\r\n]+`/,greedy:!0,inside:{punctuation:/`/}},number:/\b(?:0[xXoObB][\da-fA-F_]+|\d[\d_]*(?:(?!\.\.)\.[\d_]*)?(?:[eE][+-]?\d[\d_]*)?)(?:'?[iuf]\d*)?/,keyword:/\b(?:addr|as|asm|atomic|bind|block|break|case|cast|concept|const|continue|converter|defer|discard|distinct|do|elif|else|end|enum|except|export|finally|for|from|func|generic|if|import|include|interface|iterator|let|macro|method|mixin|nil|object|out|proc|ptr|raise|ref|return|static|template|try|tuple|type|using|var|when|while|with|without|yield)\b/,operator:{pattern:/(^|[({\[](?=\.\.)|(?![({\[]\.).)(?:(?:[=+\-*\/<>@$~&%|!?^:\\]|\.\.|\.(?![)}\]]))+|\b(?:and|div|in|is|isnot|mod|not|notin|of|or|shl|shr|xor)\b)/m,lookbehind:!0},punctuation:/[({\[]\.|\.[)}\]]|[`(){}\[\],:]/}}return oD}var sD,j7;function O6e(){if(j7)return sD;j7=1,sD=e,e.displayName="nix",e.aliases=[];function e(t){t.languages.nix={comment:{pattern:/\/\*[\s\S]*?\*\/|#.*/,greedy:!0},string:{pattern:/"(?:[^"\\]|\\[\s\S])*"|''(?:(?!'')[\s\S]|''(?:'|\\|\$\{))*''/,greedy:!0,inside:{interpolation:{pattern:/(^|(?:^|(?!'').)[^\\])\$\{(?:[^{}]|\{[^}]*\})*\}/,lookbehind:!0,inside:null}}},url:[/\b(?:[a-z]{3,7}:\/\/)[\w\-+%~\/.:#=?&]+/,{pattern:/([^\/])(?:[\w\-+%~.:#=?&]*(?!\/\/)[\w\-+%~\/.:#=?&])?(?!\/\/)\/[\w\-+%~\/.:#=?&]*/,lookbehind:!0}],antiquotation:{pattern:/\$(?=\{)/,alias:"important"},number:/\b\d+\b/,keyword:/\b(?:assert|builtins|else|if|in|inherit|let|null|or|then|with)\b/,function:/\b(?:abort|add|all|any|attrNames|attrValues|baseNameOf|compareVersions|concatLists|currentSystem|deepSeq|derivation|dirOf|div|elem(?:At)?|fetch(?:Tarball|url)|filter(?:Source)?|fromJSON|genList|getAttr|getEnv|hasAttr|hashString|head|import|intersectAttrs|is(?:Attrs|Bool|Function|Int|List|Null|String)|length|lessThan|listToAttrs|map|mul|parseDrvName|pathExists|read(?:Dir|File)|removeAttrs|replaceStrings|seq|sort|stringLength|sub(?:string)?|tail|throw|to(?:File|JSON|Path|String|XML)|trace|typeOf)\b|\bfoldl'\B/,boolean:/\b(?:false|true)\b/,operator:/[=!<>]=?|\+\+?|\|\||&&|\/\/|->?|[?@]/,punctuation:/[{}()[\].,:;]/},t.languages.nix.string.inside.interpolation.inside=t.languages.nix}return sD}var lD,U7;function R6e(){if(U7)return lD;U7=1,lD=e,e.displayName="nsis",e.aliases=[];function e(t){t.languages.nsis={comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?\*\/|[#;].*)/,lookbehind:!0,greedy:!0},string:{pattern:/("|')(?:\\.|(?!\1)[^\\\r\n])*\1/,greedy:!0},keyword:{pattern:/(^[\t ]*)(?:Abort|Add(?:BrandingImage|Size)|AdvSplash|Allow(?:RootDirInstall|SkipFiles)|AutoCloseWindow|BG(?:Font|Gradient|Image)|Banner|BrandingText|BringToFront|CRCCheck|Call(?:InstDLL)?|Caption|ChangeUI|CheckBitmap|ClearErrors|CompletedText|ComponentText|CopyFiles|Create(?:Directory|Font|ShortCut)|Delete(?:INISec|INIStr|RegKey|RegValue)?|Detail(?:Print|sButtonText)|Dialer|Dir(?:Text|Var|Verify)|EnableWindow|Enum(?:RegKey|RegValue)|Exch|Exec(?:Shell(?:Wait)?|Wait)?|ExpandEnvStrings|File(?:BufSize|Close|ErrorText|Open|Read|ReadByte|ReadUTF16LE|ReadWord|Seek|Write|WriteByte|WriteUTF16LE|WriteWord)?|Find(?:Close|First|Next|Window)|FlushINI|Get(?:CurInstType|CurrentAddress|DLLVersion(?:Local)?|DlgItem|ErrorLevel|FileTime(?:Local)?|FullPathName|Function(?:Address|End)?|InstDirError|LabelAddress|TempFileName)|Goto|HideWindow|Icon|If(?:Abort|Errors|FileExists|RebootFlag|Silent)|InitPluginsDir|InstProgressFlags|Inst(?:Type(?:GetText|SetText)?)|Install(?:ButtonText|Colors|Dir(?:RegKey)?)|Int(?:64|Ptr)?CmpU?|Int(?:64)?Fmt|Int(?:Ptr)?Op|IsWindow|Lang(?:DLL|String)|License(?:BkColor|Data|ForceSelection|LangString|Text)|LoadLanguageFile|LockWindow|Log(?:Set|Text)|Manifest(?:DPIAware|SupportedOS)|Math|MessageBox|MiscButtonText|NSISdl|Name|Nop|OutFile|PE(?:DllCharacteristics|SubsysVer)|Page(?:Callbacks)?|Pop|Push|Quit|RMDir|Read(?:EnvStr|INIStr|RegDWORD|RegStr)|Reboot|RegDLL|Rename|RequestExecutionLevel|ReserveFile|Return|SearchPath|Section(?:End|GetFlags|GetInstTypes|GetSize|GetText|Group|In|SetFlags|SetInstTypes|SetSize|SetText)?|SendMessage|Set(?:AutoClose|BrandingImage|Compress|Compressor(?:DictSize)?|CtlColors|CurInstType|DatablockOptimize|DateSave|Details(?:Print|View)|ErrorLevel|Errors|FileAttributes|Font|OutPath|Overwrite|PluginUnload|RebootFlag|RegView|ShellVarContext|Silent)|Show(?:InstDetails|UninstDetails|Window)|Silent(?:Install|UnInstall)|Sleep|SpaceTexts|Splash|StartMenu|Str(?:CmpS?|Cpy|Len)|SubCaption|System|UnRegDLL|Unicode|UninstPage|Uninstall(?:ButtonText|Caption|Icon|SubCaption|Text)|UserInfo|VI(?:AddVersionKey|FileVersion|ProductVersion)|VPatch|Var|WindowIcon|Write(?:INIStr|Reg(?:Bin|DWORD|ExpandStr|MultiStr|None|Str)|Uninstaller)|XPStyle|ns(?:Dialogs|Exec))\b/m,lookbehind:!0},property:/\b(?:ARCHIVE|FILE_(?:ATTRIBUTE_ARCHIVE|ATTRIBUTE_NORMAL|ATTRIBUTE_OFFLINE|ATTRIBUTE_READONLY|ATTRIBUTE_SYSTEM|ATTRIBUTE_TEMPORARY)|HK(?:(?:CR|CU|LM)(?:32|64)?|DD|PD|U)|HKEY_(?:CLASSES_ROOT|CURRENT_CONFIG|CURRENT_USER|DYN_DATA|LOCAL_MACHINE|PERFORMANCE_DATA|USERS)|ID(?:ABORT|CANCEL|IGNORE|NO|OK|RETRY|YES)|MB_(?:ABORTRETRYIGNORE|DEFBUTTON1|DEFBUTTON2|DEFBUTTON3|DEFBUTTON4|ICONEXCLAMATION|ICONINFORMATION|ICONQUESTION|ICONSTOP|OK|OKCANCEL|RETRYCANCEL|RIGHT|RTLREADING|SETFOREGROUND|TOPMOST|USERICON|YESNO)|NORMAL|OFFLINE|READONLY|SHCTX|SHELL_CONTEXT|SYSTEM|TEMPORARY|admin|all|auto|both|colored|false|force|hide|highest|lastused|leave|listonly|none|normal|notset|off|on|open|print|show|silent|silentlog|smooth|textonly|true|user)\b/,constant:/\$\{[!\w\.:\^-]+\}|\$\([!\w\.:\^-]+\)/,variable:/\$\w[\w\.]*/,number:/\b0x[\dA-Fa-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[Ee]-?\d+)?/,operator:/--?|\+\+?|<=?|>=?|==?=?|&&?|\|\|?|[?*\/~^%]/,punctuation:/[{}[\];(),.:]/,important:{pattern:/(^[\t ]*)!(?:addincludedir|addplugindir|appendfile|cd|define|delfile|echo|else|endif|error|execute|finalize|getdllversion|gettlbversion|if|ifdef|ifmacrodef|ifmacrondef|ifndef|include|insertmacro|macro|macroend|makensis|packhdr|pragma|searchparse|searchreplace|system|tempfile|undef|verbose|warning)\b/im,lookbehind:!0}}}return lD}var uD,B7;function P6e(){if(B7)return uD;B7=1;var e=vy();uD=t,t.displayName="objectivec",t.aliases=["objc"];function t(n){n.register(e),n.languages.objectivec=n.languages.extend("c",{string:{pattern:/@?"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"/,greedy:!0},keyword:/\b(?:asm|auto|break|case|char|const|continue|default|do|double|else|enum|extern|float|for|goto|if|in|inline|int|long|register|return|self|short|signed|sizeof|static|struct|super|switch|typedef|typeof|union|unsigned|void|volatile|while)\b|(?:@interface|@end|@implementation|@protocol|@class|@public|@protected|@private|@property|@try|@catch|@finally|@throw|@synthesize|@dynamic|@selector)\b/,operator:/-[->]?|\+\+?|!=?|<>?=?|==?|&&?|\|\|?|[~^%?*\/@]/}),delete n.languages.objectivec["class-name"],n.languages.objc=n.languages.objectivec}return uD}var cD,W7;function A6e(){if(W7)return cD;W7=1,cD=e,e.displayName="ocaml",e.aliases=[];function e(t){t.languages.ocaml={comment:{pattern:/\(\*[\s\S]*?\*\)/,greedy:!0},char:{pattern:/'(?:[^\\\r\n']|\\(?:.|[ox]?[0-9a-f]{1,3}))'/i,greedy:!0},string:[{pattern:/"(?:\\(?:[\s\S]|\r\n)|[^\\\r\n"])*"/,greedy:!0},{pattern:/\{([a-z_]*)\|[\s\S]*?\|\1\}/,greedy:!0}],number:[/\b(?:0b[01][01_]*|0o[0-7][0-7_]*)\b/i,/\b0x[a-f0-9][a-f0-9_]*(?:\.[a-f0-9_]*)?(?:p[+-]?\d[\d_]*)?(?!\w)/i,/\b\d[\d_]*(?:\.[\d_]*)?(?:e[+-]?\d[\d_]*)?(?!\w)/i],directive:{pattern:/\B#\w+/,alias:"property"},label:{pattern:/\B~\w+/,alias:"property"},"type-variable":{pattern:/\B'\w+/,alias:"function"},variant:{pattern:/`\w+/,alias:"symbol"},keyword:/\b(?:as|assert|begin|class|constraint|do|done|downto|else|end|exception|external|for|fun|function|functor|if|in|include|inherit|initializer|lazy|let|match|method|module|mutable|new|nonrec|object|of|open|private|rec|sig|struct|then|to|try|type|val|value|virtual|when|where|while|with)\b/,boolean:/\b(?:false|true)\b/,"operator-like-punctuation":{pattern:/\[[<>|]|[>|]\]|\{<|>\}/,alias:"punctuation"},operator:/\.[.~]|:[=>]|[=<>@^|&+\-*\/$%!?~][!$%&*+\-.\/:<=>?@^|~]*|\b(?:and|asr|land|lor|lsl|lsr|lxor|mod|or)\b/,punctuation:/;;|::|[(){}\[\].,:;#]|\b_\b/}}return cD}var dD,z7;function N6e(){if(z7)return dD;z7=1;var e=vy();dD=t,t.displayName="opencl",t.aliases=[];function t(n){n.register(e),(function(r){r.languages.opencl=r.languages.extend("c",{keyword:/\b(?:(?:__)?(?:constant|global|kernel|local|private|read_only|read_write|write_only)|__attribute__|auto|(?:bool|u?(?:char|int|long|short)|half|quad)(?:2|3|4|8|16)?|break|case|complex|const|continue|(?:double|float)(?:16(?:x(?:1|2|4|8|16))?|1x(?:1|2|4|8|16)|2(?:x(?:1|2|4|8|16))?|3|4(?:x(?:1|2|4|8|16))?|8(?:x(?:1|2|4|8|16))?)?|default|do|else|enum|extern|for|goto|if|imaginary|inline|packed|pipe|register|restrict|return|signed|sizeof|static|struct|switch|typedef|uniform|union|unsigned|void|volatile|while)\b/,number:/(?:\b0x(?:[\da-f]+(?:\.[\da-f]*)?|\.[\da-f]+)(?:p[+-]?\d+)?|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?)[fuhl]{0,4}/i,boolean:/\b(?:false|true)\b/,"constant-opencl-kernel":{pattern:/\b(?:CHAR_(?:BIT|MAX|MIN)|CLK_(?:ADDRESS_(?:CLAMP(?:_TO_EDGE)?|NONE|REPEAT)|FILTER_(?:LINEAR|NEAREST)|(?:GLOBAL|LOCAL)_MEM_FENCE|NORMALIZED_COORDS_(?:FALSE|TRUE))|CL_(?:BGRA|(?:HALF_)?FLOAT|INTENSITY|LUMINANCE|A?R?G?B?[Ax]?|(?:(?:UN)?SIGNED|[US]NORM)_(?:INT(?:8|16|32))|UNORM_(?:INT_101010|SHORT_(?:555|565)))|(?:DBL|FLT|HALF)_(?:DIG|EPSILON|(?:MAX|MIN)(?:(?:_10)?_EXP)?|MANT_DIG)|FLT_RADIX|HUGE_VALF?|(?:INT|LONG|SCHAR|SHRT)_(?:MAX|MIN)|INFINITY|MAXFLOAT|M_(?:[12]_PI|2_SQRTPI|E|LN(?:2|10)|LOG(?:2|10)E?|PI(?:_[24])?|SQRT(?:1_2|2))(?:_F|_H)?|NAN|(?:UCHAR|UINT|ULONG|USHRT)_MAX)\b/,alias:"constant"}}),r.languages.insertBefore("opencl","class-name",{"builtin-type":{pattern:/\b(?:_cl_(?:command_queue|context|device_id|event|kernel|mem|platform_id|program|sampler)|cl_(?:image_format|mem_fence_flags)|clk_event_t|event_t|image(?:1d_(?:array_|buffer_)?t|2d_(?:array_(?:depth_|msaa_depth_|msaa_)?|depth_|msaa_depth_|msaa_)?t|3d_t)|intptr_t|ndrange_t|ptrdiff_t|queue_t|reserve_id_t|sampler_t|size_t|uintptr_t)\b/,alias:"keyword"}});var a={"type-opencl-host":{pattern:/\b(?:cl_(?:GLenum|GLint|GLuin|addressing_mode|bitfield|bool|buffer_create_type|build_status|channel_(?:order|type)|(?:u?(?:char|int|long|short)|double|float)(?:2|3|4|8|16)?|command_(?:queue(?:_info|_properties)?|type)|context(?:_info|_properties)?|device_(?:exec_capabilities|fp_config|id|info|local_mem_type|mem_cache_type|type)|(?:event|sampler)(?:_info)?|filter_mode|half|image_info|kernel(?:_info|_work_group_info)?|map_flags|mem(?:_flags|_info|_object_type)?|platform_(?:id|info)|profiling_info|program(?:_build_info|_info)?))\b/,alias:"keyword"},"boolean-opencl-host":{pattern:/\bCL_(?:FALSE|TRUE)\b/,alias:"boolean"},"constant-opencl-host":{pattern:/\bCL_(?:A|ABGR|ADDRESS_(?:CLAMP(?:_TO_EDGE)?|MIRRORED_REPEAT|NONE|REPEAT)|ARGB|BGRA|BLOCKING|BUFFER_CREATE_TYPE_REGION|BUILD_(?:ERROR|IN_PROGRESS|NONE|PROGRAM_FAILURE|SUCCESS)|COMMAND_(?:ACQUIRE_GL_OBJECTS|BARRIER|COPY_(?:BUFFER(?:_RECT|_TO_IMAGE)?|IMAGE(?:_TO_BUFFER)?)|FILL_(?:BUFFER|IMAGE)|MAP(?:_BUFFER|_IMAGE)|MARKER|MIGRATE(?:_SVM)?_MEM_OBJECTS|NATIVE_KERNEL|NDRANGE_KERNEL|READ_(?:BUFFER(?:_RECT)?|IMAGE)|RELEASE_GL_OBJECTS|SVM_(?:FREE|MAP|MEMCPY|MEMFILL|UNMAP)|TASK|UNMAP_MEM_OBJECT|USER|WRITE_(?:BUFFER(?:_RECT)?|IMAGE))|COMPILER_NOT_AVAILABLE|COMPILE_PROGRAM_FAILURE|COMPLETE|CONTEXT_(?:DEVICES|INTEROP_USER_SYNC|NUM_DEVICES|PLATFORM|PROPERTIES|REFERENCE_COUNT)|DEPTH(?:_STENCIL)?|DEVICE_(?:ADDRESS_BITS|AFFINITY_DOMAIN_(?:L[1-4]_CACHE|NEXT_PARTITIONABLE|NUMA)|AVAILABLE|BUILT_IN_KERNELS|COMPILER_AVAILABLE|DOUBLE_FP_CONFIG|ENDIAN_LITTLE|ERROR_CORRECTION_SUPPORT|EXECUTION_CAPABILITIES|EXTENSIONS|GLOBAL_(?:MEM_(?:CACHELINE_SIZE|CACHE_SIZE|CACHE_TYPE|SIZE)|VARIABLE_PREFERRED_TOTAL_SIZE)|HOST_UNIFIED_MEMORY|IL_VERSION|IMAGE(?:2D_MAX_(?:HEIGHT|WIDTH)|3D_MAX_(?:DEPTH|HEIGHT|WIDTH)|_BASE_ADDRESS_ALIGNMENT|_MAX_ARRAY_SIZE|_MAX_BUFFER_SIZE|_PITCH_ALIGNMENT|_SUPPORT)|LINKER_AVAILABLE|LOCAL_MEM_SIZE|LOCAL_MEM_TYPE|MAX_(?:CLOCK_FREQUENCY|COMPUTE_UNITS|CONSTANT_ARGS|CONSTANT_BUFFER_SIZE|GLOBAL_VARIABLE_SIZE|MEM_ALLOC_SIZE|NUM_SUB_GROUPS|ON_DEVICE_(?:EVENTS|QUEUES)|PARAMETER_SIZE|PIPE_ARGS|READ_IMAGE_ARGS|READ_WRITE_IMAGE_ARGS|SAMPLERS|WORK_GROUP_SIZE|WORK_ITEM_DIMENSIONS|WORK_ITEM_SIZES|WRITE_IMAGE_ARGS)|MEM_BASE_ADDR_ALIGN|MIN_DATA_TYPE_ALIGN_SIZE|NAME|NATIVE_VECTOR_WIDTH_(?:CHAR|DOUBLE|FLOAT|HALF|INT|LONG|SHORT)|NOT_(?:AVAILABLE|FOUND)|OPENCL_C_VERSION|PARENT_DEVICE|PARTITION_(?:AFFINITY_DOMAIN|BY_AFFINITY_DOMAIN|BY_COUNTS|BY_COUNTS_LIST_END|EQUALLY|FAILED|MAX_SUB_DEVICES|PROPERTIES|TYPE)|PIPE_MAX_(?:ACTIVE_RESERVATIONS|PACKET_SIZE)|PLATFORM|PREFERRED_(?:GLOBAL_ATOMIC_ALIGNMENT|INTEROP_USER_SYNC|LOCAL_ATOMIC_ALIGNMENT|PLATFORM_ATOMIC_ALIGNMENT|VECTOR_WIDTH_(?:CHAR|DOUBLE|FLOAT|HALF|INT|LONG|SHORT))|PRINTF_BUFFER_SIZE|PROFILE|PROFILING_TIMER_RESOLUTION|QUEUE_(?:ON_(?:DEVICE_(?:MAX_SIZE|PREFERRED_SIZE|PROPERTIES)|HOST_PROPERTIES)|PROPERTIES)|REFERENCE_COUNT|SINGLE_FP_CONFIG|SUB_GROUP_INDEPENDENT_FORWARD_PROGRESS|SVM_(?:ATOMICS|CAPABILITIES|COARSE_GRAIN_BUFFER|FINE_GRAIN_BUFFER|FINE_GRAIN_SYSTEM)|TYPE(?:_ACCELERATOR|_ALL|_CPU|_CUSTOM|_DEFAULT|_GPU)?|VENDOR(?:_ID)?|VERSION)|DRIVER_VERSION|EVENT_(?:COMMAND_(?:EXECUTION_STATUS|QUEUE|TYPE)|CONTEXT|REFERENCE_COUNT)|EXEC_(?:KERNEL|NATIVE_KERNEL|STATUS_ERROR_FOR_EVENTS_IN_WAIT_LIST)|FILTER_(?:LINEAR|NEAREST)|FLOAT|FP_(?:CORRECTLY_ROUNDED_DIVIDE_SQRT|DENORM|FMA|INF_NAN|ROUND_TO_INF|ROUND_TO_NEAREST|ROUND_TO_ZERO|SOFT_FLOAT)|GLOBAL|HALF_FLOAT|IMAGE_(?:ARRAY_SIZE|BUFFER|DEPTH|ELEMENT_SIZE|FORMAT|FORMAT_MISMATCH|FORMAT_NOT_SUPPORTED|HEIGHT|NUM_MIP_LEVELS|NUM_SAMPLES|ROW_PITCH|SLICE_PITCH|WIDTH)|INTENSITY|INVALID_(?:ARG_INDEX|ARG_SIZE|ARG_VALUE|BINARY|BUFFER_SIZE|BUILD_OPTIONS|COMMAND_QUEUE|COMPILER_OPTIONS|CONTEXT|DEVICE|DEVICE_PARTITION_COUNT|DEVICE_QUEUE|DEVICE_TYPE|EVENT|EVENT_WAIT_LIST|GLOBAL_OFFSET|GLOBAL_WORK_SIZE|GL_OBJECT|HOST_PTR|IMAGE_DESCRIPTOR|IMAGE_FORMAT_DESCRIPTOR|IMAGE_SIZE|KERNEL|KERNEL_ARGS|KERNEL_DEFINITION|KERNEL_NAME|LINKER_OPTIONS|MEM_OBJECT|MIP_LEVEL|OPERATION|PIPE_SIZE|PLATFORM|PROGRAM|PROGRAM_EXECUTABLE|PROPERTY|QUEUE_PROPERTIES|SAMPLER|VALUE|WORK_DIMENSION|WORK_GROUP_SIZE|WORK_ITEM_SIZE)|KERNEL_(?:ARG_(?:ACCESS_(?:NONE|QUALIFIER|READ_ONLY|READ_WRITE|WRITE_ONLY)|ADDRESS_(?:CONSTANT|GLOBAL|LOCAL|PRIVATE|QUALIFIER)|INFO_NOT_AVAILABLE|NAME|TYPE_(?:CONST|NAME|NONE|PIPE|QUALIFIER|RESTRICT|VOLATILE))|ATTRIBUTES|COMPILE_NUM_SUB_GROUPS|COMPILE_WORK_GROUP_SIZE|CONTEXT|EXEC_INFO_SVM_FINE_GRAIN_SYSTEM|EXEC_INFO_SVM_PTRS|FUNCTION_NAME|GLOBAL_WORK_SIZE|LOCAL_MEM_SIZE|LOCAL_SIZE_FOR_SUB_GROUP_COUNT|MAX_NUM_SUB_GROUPS|MAX_SUB_GROUP_SIZE_FOR_NDRANGE|NUM_ARGS|PREFERRED_WORK_GROUP_SIZE_MULTIPLE|PRIVATE_MEM_SIZE|PROGRAM|REFERENCE_COUNT|SUB_GROUP_COUNT_FOR_NDRANGE|WORK_GROUP_SIZE)|LINKER_NOT_AVAILABLE|LINK_PROGRAM_FAILURE|LOCAL|LUMINANCE|MAP_(?:FAILURE|READ|WRITE|WRITE_INVALIDATE_REGION)|MEM_(?:ALLOC_HOST_PTR|ASSOCIATED_MEMOBJECT|CONTEXT|COPY_HOST_PTR|COPY_OVERLAP|FLAGS|HOST_NO_ACCESS|HOST_PTR|HOST_READ_ONLY|HOST_WRITE_ONLY|KERNEL_READ_AND_WRITE|MAP_COUNT|OBJECT_(?:ALLOCATION_FAILURE|BUFFER|IMAGE1D|IMAGE1D_ARRAY|IMAGE1D_BUFFER|IMAGE2D|IMAGE2D_ARRAY|IMAGE3D|PIPE)|OFFSET|READ_ONLY|READ_WRITE|REFERENCE_COUNT|SIZE|SVM_ATOMICS|SVM_FINE_GRAIN_BUFFER|TYPE|USES_SVM_POINTER|USE_HOST_PTR|WRITE_ONLY)|MIGRATE_MEM_OBJECT_(?:CONTENT_UNDEFINED|HOST)|MISALIGNED_SUB_BUFFER_OFFSET|NONE|NON_BLOCKING|OUT_OF_(?:HOST_MEMORY|RESOURCES)|PIPE_(?:MAX_PACKETS|PACKET_SIZE)|PLATFORM_(?:EXTENSIONS|HOST_TIMER_RESOLUTION|NAME|PROFILE|VENDOR|VERSION)|PROFILING_(?:COMMAND_(?:COMPLETE|END|QUEUED|START|SUBMIT)|INFO_NOT_AVAILABLE)|PROGRAM_(?:BINARIES|BINARY_SIZES|BINARY_TYPE(?:_COMPILED_OBJECT|_EXECUTABLE|_LIBRARY|_NONE)?|BUILD_(?:GLOBAL_VARIABLE_TOTAL_SIZE|LOG|OPTIONS|STATUS)|CONTEXT|DEVICES|IL|KERNEL_NAMES|NUM_DEVICES|NUM_KERNELS|REFERENCE_COUNT|SOURCE)|QUEUED|QUEUE_(?:CONTEXT|DEVICE|DEVICE_DEFAULT|ON_DEVICE|ON_DEVICE_DEFAULT|OUT_OF_ORDER_EXEC_MODE_ENABLE|PROFILING_ENABLE|PROPERTIES|REFERENCE_COUNT|SIZE)|R|RA|READ_(?:ONLY|WRITE)_CACHE|RG|RGB|RGBA|RGBx|RGx|RUNNING|Rx|SAMPLER_(?:ADDRESSING_MODE|CONTEXT|FILTER_MODE|LOD_MAX|LOD_MIN|MIP_FILTER_MODE|NORMALIZED_COORDS|REFERENCE_COUNT)|(?:UN)?SIGNED_INT(?:8|16|32)|SNORM_INT(?:8|16)|SUBMITTED|SUCCESS|UNORM_INT(?:8|16|24|_101010|_101010_2)|UNORM_SHORT_(?:555|565)|VERSION_(?:1_0|1_1|1_2|2_0|2_1)|sBGRA|sRGB|sRGBA|sRGBx)\b/,alias:"constant"},"function-opencl-host":{pattern:/\bcl(?:BuildProgram|CloneKernel|CompileProgram|Create(?:Buffer|CommandQueue(?:WithProperties)?|Context|ContextFromType|Image|Image2D|Image3D|Kernel|KernelsInProgram|Pipe|ProgramWith(?:Binary|BuiltInKernels|IL|Source)|Sampler|SamplerWithProperties|SubBuffer|SubDevices|UserEvent)|Enqueue(?:(?:Barrier|Marker)(?:WithWaitList)?|Copy(?:Buffer(?:Rect|ToImage)?|Image(?:ToBuffer)?)|(?:Fill|Map)(?:Buffer|Image)|MigrateMemObjects|NDRangeKernel|NativeKernel|(?:Read|Write)(?:Buffer(?:Rect)?|Image)|SVM(?:Free|Map|MemFill|Memcpy|MigrateMem|Unmap)|Task|UnmapMemObject|WaitForEvents)|Finish|Flush|Get(?:CommandQueueInfo|ContextInfo|Device(?:AndHostTimer|IDs|Info)|Event(?:Profiling)?Info|ExtensionFunctionAddress(?:ForPlatform)?|HostTimer|ImageInfo|Kernel(?:ArgInfo|Info|SubGroupInfo|WorkGroupInfo)|MemObjectInfo|PipeInfo|Platform(?:IDs|Info)|Program(?:Build)?Info|SamplerInfo|SupportedImageFormats)|LinkProgram|(?:Release|Retain)(?:CommandQueue|Context|Device|Event|Kernel|MemObject|Program|Sampler)|SVM(?:Alloc|Free)|Set(?:CommandQueueProperty|DefaultDeviceCommandQueue|EventCallback|Kernel|Kernel(?:Arg(?:SVMPointer)?|ExecInfo)|MemObjectDestructorCallback|UserEventStatus)|Unload(?:Platform)?Compiler|WaitForEvents)\b/,alias:"function"}};r.languages.insertBefore("c","keyword",a),r.languages.cpp&&(a["type-opencl-host-cpp"]={pattern:/\b(?:Buffer|BufferGL|BufferRenderGL|CommandQueue|Context|Device|DeviceCommandQueue|EnqueueArgs|Event|Image|Image1D|Image1DArray|Image1DBuffer|Image2D|Image2DArray|Image2DGL|Image3D|Image3DGL|ImageFormat|ImageGL|Kernel|KernelFunctor|LocalSpaceArg|Memory|NDRange|Pipe|Platform|Program|SVMAllocator|SVMTraitAtomic|SVMTraitCoarse|SVMTraitFine|SVMTraitReadOnly|SVMTraitReadWrite|SVMTraitWriteOnly|Sampler|UserEvent)\b/,alias:"keyword"},r.languages.insertBefore("cpp","keyword",a))})(n)}return dD}var fD,q7;function M6e(){if(q7)return fD;q7=1,fD=e,e.displayName="openqasm",e.aliases=["qasm"];function e(t){t.languages.openqasm={comment:/\/\*[\s\S]*?\*\/|\/\/.*/,string:{pattern:/"[^"\r\n\t]*"|'[^'\r\n\t]*'/,greedy:!0},keyword:/\b(?:CX|OPENQASM|U|barrier|boxas|boxto|break|const|continue|ctrl|def|defcal|defcalgrammar|delay|else|end|for|gate|gphase|if|in|include|inv|kernel|lengthof|let|measure|pow|reset|return|rotary|stretchinf|while)\b|#pragma\b/,"class-name":/\b(?:angle|bit|bool|creg|fixed|float|int|length|qreg|qubit|stretch|uint)\b/,function:/\b(?:cos|exp|ln|popcount|rotl|rotr|sin|sqrt|tan)\b(?=\s*\()/,constant:/\b(?:euler|pi|tau)\b|π|𝜏|ℇ/,number:{pattern:/(^|[^.\w$])(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?(?:dt|ns|us|µs|ms|s)?/i,lookbehind:!0},operator:/->|>>=?|<<=?|&&|\|\||\+\+|--|[!=<>&|~^+\-*/%]=?|@/,punctuation:/[(){}\[\];,:.]/},t.languages.qasm=t.languages.openqasm}return fD}var pD,H7;function I6e(){if(H7)return pD;H7=1,pD=e,e.displayName="oz",e.aliases=[];function e(t){t.languages.oz={comment:{pattern:/\/\*[\s\S]*?\*\/|%.*/,greedy:!0},string:{pattern:/"(?:[^"\\]|\\[\s\S])*"/,greedy:!0},atom:{pattern:/'(?:[^'\\]|\\[\s\S])*'/,greedy:!0,alias:"builtin"},keyword:/\$|\[\]|\b(?:_|at|attr|case|catch|choice|class|cond|declare|define|dis|else(?:case|if)?|end|export|fail|false|feat|finally|from|fun|functor|if|import|in|local|lock|meth|nil|not|of|or|prepare|proc|prop|raise|require|self|skip|then|thread|true|try|unit)\b/,function:[/\b[a-z][A-Za-z\d]*(?=\()/,{pattern:/(\{)[A-Z][A-Za-z\d]*\b/,lookbehind:!0}],number:/\b(?:0[bx][\da-f]+|\d+(?:\.\d*)?(?:e~?\d+)?)\b|&(?:[^\\]|\\(?:\d{3}|.))/i,variable:/`(?:[^`\\]|\\.)+`/,"attr-name":/\b\w+(?=[ \t]*:(?![:=]))/,operator:/:(?:=|::?)|<[-:=]?|=(?:=|=?:?|\\=:?|!!?|[|#+\-*\/,~^@]|\b(?:andthen|div|mod|orelse)\b/,punctuation:/[\[\](){}.:;?]/}}return pD}var hD,V7;function D6e(){if(V7)return hD;V7=1,hD=e,e.displayName="parigp",e.aliases=[];function e(t){t.languages.parigp={comment:/\/\*[\s\S]*?\*\/|\\\\.*/,string:{pattern:/"(?:[^"\\\r\n]|\\.)*"/,greedy:!0},keyword:(function(){var n=["breakpoint","break","dbg_down","dbg_err","dbg_up","dbg_x","forcomposite","fordiv","forell","forpart","forprime","forstep","forsubgroup","forvec","for","iferr","if","local","my","next","return","until","while"];return n=n.map(function(r){return r.split("").join(" *")}).join("|"),RegExp("\\b(?:"+n+")\\b")})(),function:/\b\w(?:[\w ]*\w)?(?= *\()/,number:{pattern:/((?:\. *\. *)?)(?:\b\d(?: *\d)*(?: *(?!\. *\.)\.(?: *\d)*)?|\. *\d(?: *\d)*)(?: *e *(?:[+-] *)?\d(?: *\d)*)?/i,lookbehind:!0},operator:/\. *\.|[*\/!](?: *=)?|%(?: *=|(?: *#)?(?: *')*)?|\+(?: *[+=])?|-(?: *[-=>])?|<(?: *>|(?: *<)?(?: *=)?)?|>(?: *>)?(?: *=)?|=(?: *=){0,2}|\\(?: *\/)?(?: *=)?|&(?: *&)?|\| *\||['#~^]/,punctuation:/[\[\]{}().,:;|]/}}return hD}var mD,G7;function $6e(){if(G7)return mD;G7=1,mD=e,e.displayName="parser",e.aliases=[];function e(t){(function(n){var r=n.languages.parser=n.languages.extend("markup",{keyword:{pattern:/(^|[^^])(?:\^(?:case|eval|for|if|switch|throw)\b|@(?:BASE|CLASS|GET(?:_DEFAULT)?|OPTIONS|SET_DEFAULT|USE)\b)/,lookbehind:!0},variable:{pattern:/(^|[^^])\B\$(?:\w+|(?=[.{]))(?:(?:\.|::?)\w+)*(?:\.|::?)?/,lookbehind:!0,inside:{punctuation:/\.|:+/}},function:{pattern:/(^|[^^])\B[@^]\w+(?:(?:\.|::?)\w+)*(?:\.|::?)?/,lookbehind:!0,inside:{keyword:{pattern:/(^@)(?:GET_|SET_)/,lookbehind:!0},punctuation:/\.|:+/}},escape:{pattern:/\^(?:[$^;@()\[\]{}"':]|#[a-f\d]*)/i,alias:"builtin"},punctuation:/[\[\](){};]/});r=n.languages.insertBefore("parser","keyword",{"parser-comment":{pattern:/(\s)#.*/,lookbehind:!0,alias:"comment"},expression:{pattern:/(^|[^^])\((?:[^()]|\((?:[^()]|\((?:[^()])*\))*\))*\)/,greedy:!0,lookbehind:!0,inside:{string:{pattern:/(^|[^^])(["'])(?:(?!\2)[^^]|\^[\s\S])*\2/,lookbehind:!0},keyword:r.keyword,variable:r.variable,function:r.function,boolean:/\b(?:false|true)\b/,number:/\b(?:0x[a-f\d]+|\d+(?:\.\d*)?(?:e[+-]?\d+)?)\b/i,escape:r.escape,operator:/[~+*\/\\%]|!(?:\|\|?|=)?|&&?|\|\|?|==|<[<=]?|>[>=]?|-[fd]?|\b(?:def|eq|ge|gt|in|is|le|lt|ne)\b/,punctuation:r.punctuation}}}),n.languages.insertBefore("inside","punctuation",{expression:r.expression,keyword:r.keyword,variable:r.variable,function:r.function,escape:r.escape,"parser-punctuation":{pattern:r.punctuation,alias:"punctuation"}},r.tag.inside["attr-value"])})(t)}return mD}var gD,Y7;function L6e(){if(Y7)return gD;Y7=1,gD=e,e.displayName="pascal",e.aliases=["objectpascal"];function e(t){t.languages.pascal={directive:{pattern:/\{\$[\s\S]*?\}/,greedy:!0,alias:["marco","property"]},comment:{pattern:/\(\*[\s\S]*?\*\)|\{[\s\S]*?\}|\/\/.*/,greedy:!0},string:{pattern:/(?:'(?:''|[^'\r\n])*'(?!')|#[&$%]?[a-f\d]+)+|\^[a-z]/i,greedy:!0},asm:{pattern:/(\basm\b)[\s\S]+?(?=\bend\s*[;[])/i,lookbehind:!0,greedy:!0,inside:null},keyword:[{pattern:/(^|[^&])\b(?:absolute|array|asm|begin|case|const|constructor|destructor|do|downto|else|end|file|for|function|goto|if|implementation|inherited|inline|interface|label|nil|object|of|operator|packed|procedure|program|record|reintroduce|repeat|self|set|string|then|to|type|unit|until|uses|var|while|with)\b/i,lookbehind:!0},{pattern:/(^|[^&])\b(?:dispose|exit|false|new|true)\b/i,lookbehind:!0},{pattern:/(^|[^&])\b(?:class|dispinterface|except|exports|finalization|finally|initialization|inline|library|on|out|packed|property|raise|resourcestring|threadvar|try)\b/i,lookbehind:!0},{pattern:/(^|[^&])\b(?:absolute|abstract|alias|assembler|bitpacked|break|cdecl|continue|cppdecl|cvar|default|deprecated|dynamic|enumerator|experimental|export|external|far|far16|forward|generic|helper|implements|index|interrupt|iochecks|local|message|name|near|nodefault|noreturn|nostackframe|oldfpccall|otherwise|overload|override|pascal|platform|private|protected|public|published|read|register|reintroduce|result|safecall|saveregisters|softfloat|specialize|static|stdcall|stored|strict|unaligned|unimplemented|varargs|virtual|write)\b/i,lookbehind:!0}],number:[/(?:[&%]\d+|\$[a-f\d]+)/i,/\b\d+(?:\.\d+)?(?:e[+-]?\d+)?/i],operator:[/\.\.|\*\*|:=|<[<=>]?|>[>=]?|[+\-*\/]=?|[@^=]/,{pattern:/(^|[^&])\b(?:and|as|div|exclude|in|include|is|mod|not|or|shl|shr|xor)\b/,lookbehind:!0}],punctuation:/\(\.|\.\)|[()\[\]:;,.]/},t.languages.pascal.asm.inside=t.languages.extend("pascal",{asm:void 0,keyword:void 0,operator:void 0}),t.languages.objectpascal=t.languages.pascal}return gD}var vD,K7;function F6e(){if(K7)return vD;K7=1,vD=e,e.displayName="pascaligo",e.aliases=[];function e(t){(function(n){var r=/\((?:[^()]|\((?:[^()]|\([^()]*\))*\))*\)/.source,a=/(?:\b\w+(?:)?|)/.source.replace(//g,function(){return r}),i=n.languages.pascaligo={comment:/\(\*[\s\S]+?\*\)|\/\/.*/,string:{pattern:/(["'`])(?:\\[\s\S]|(?!\1)[^\\])*\1|\^[a-z]/i,greedy:!0},"class-name":[{pattern:RegExp(/(\btype\s+\w+\s+is\s+)/.source.replace(//g,function(){return a}),"i"),lookbehind:!0,inside:null},{pattern:RegExp(/(?=\s+is\b)/.source.replace(//g,function(){return a}),"i"),inside:null},{pattern:RegExp(/(:\s*)/.source.replace(//g,function(){return a})),lookbehind:!0,inside:null}],keyword:{pattern:/(^|[^&])\b(?:begin|block|case|const|else|end|fail|for|from|function|if|is|nil|of|remove|return|skip|then|type|var|while|with)\b/i,lookbehind:!0},boolean:{pattern:/(^|[^&])\b(?:False|True)\b/i,lookbehind:!0},builtin:{pattern:/(^|[^&])\b(?:bool|int|list|map|nat|record|string|unit)\b/i,lookbehind:!0},function:/\b\w+(?=\s*\()/,number:[/%[01]+|&[0-7]+|\$[a-f\d]+/i,/\b\d+(?:\.\d+)?(?:e[+-]?\d+)?(?:mtz|n)?/i],operator:/->|=\/=|\.\.|\*\*|:=|<[<=>]?|>[>=]?|[+\-*\/]=?|[@^=|]|\b(?:and|mod|or)\b/,punctuation:/\(\.|\.\)|[()\[\]:;,.{}]/},o=["comment","keyword","builtin","operator","punctuation"].reduce(function(l,u){return l[u]=i[u],l},{});i["class-name"].forEach(function(l){l.inside=o})})(t)}return vD}var yD,X7;function j6e(){if(X7)return yD;X7=1,yD=e,e.displayName="pcaxis",e.aliases=["px"];function e(t){t.languages.pcaxis={string:/"[^"]*"/,keyword:{pattern:/((?:^|;)\s*)[-A-Z\d]+(?:\s*\[[-\w]+\])?(?:\s*\("[^"]*"(?:,\s*"[^"]*")*\))?(?=\s*=)/,lookbehind:!0,greedy:!0,inside:{keyword:/^[-A-Z\d]+/,language:{pattern:/^(\s*)\[[-\w]+\]/,lookbehind:!0,inside:{punctuation:/^\[|\]$/,property:/[-\w]+/}},"sub-key":{pattern:/^(\s*)\S[\s\S]*/,lookbehind:!0,inside:{parameter:{pattern:/"[^"]*"/,alias:"property"},punctuation:/^\(|\)$|,/}}}},operator:/=/,tlist:{pattern:/TLIST\s*\(\s*\w+(?:(?:\s*,\s*"[^"]*")+|\s*,\s*"[^"]*"-"[^"]*")?\s*\)/,greedy:!0,inside:{function:/^TLIST/,property:{pattern:/^(\s*\(\s*)\w+/,lookbehind:!0},string:/"[^"]*"/,punctuation:/[(),]/,operator:/-/}},punctuation:/[;,]/,number:{pattern:/(^|\s)\d+(?:\.\d+)?(?!\S)/,lookbehind:!0},boolean:/NO|YES/},t.languages.px=t.languages.pcaxis}return yD}var bD,Q7;function U6e(){if(Q7)return bD;Q7=1,bD=e,e.displayName="peoplecode",e.aliases=["pcode"];function e(t){t.languages.peoplecode={comment:RegExp([/\/\*[\s\S]*?\*\//.source,/\bREM[^;]*;/.source,/<\*(?:[^<*]|\*(?!>)|<(?!\*)|<\*(?:(?!\*>)[\s\S])*\*>)*\*>/.source,/\/\+[\s\S]*?\+\//.source].join("|")),string:{pattern:/'(?:''|[^'\r\n])*'(?!')|"(?:""|[^"\r\n])*"(?!")/,greedy:!0},variable:/%\w+/,"function-definition":{pattern:/((?:^|[^\w-])(?:function|method)\s+)\w+/i,lookbehind:!0,alias:"function"},"class-name":{pattern:/((?:^|[^-\w])(?:as|catch|class|component|create|extends|global|implements|instance|local|of|property|returns)\s+)\w+(?::\w+)*/i,lookbehind:!0,inside:{punctuation:/:/}},keyword:/\b(?:abstract|alias|as|catch|class|component|constant|create|declare|else|end-(?:class|evaluate|for|function|get|if|method|set|try|while)|evaluate|extends|for|function|get|global|if|implements|import|instance|library|local|method|null|of|out|peopleCode|private|program|property|protected|readonly|ref|repeat|returns?|set|step|then|throw|to|try|until|value|when(?:-other)?|while)\b/i,"operator-keyword":{pattern:/\b(?:and|not|or)\b/i,alias:"operator"},function:/[_a-z]\w*(?=\s*\()/i,boolean:/\b(?:false|true)\b/i,number:/\b\d+(?:\.\d+)?\b/,operator:/<>|[<>]=?|!=|\*\*|[-+*/|=@]/,punctuation:/[:.;,()[\]]/},t.languages.pcode=t.languages.peoplecode}return bD}var wD,J7;function B6e(){if(J7)return wD;J7=1,wD=e,e.displayName="perl",e.aliases=[];function e(t){(function(n){var r=/(?:\((?:[^()\\]|\\[\s\S])*\)|\{(?:[^{}\\]|\\[\s\S])*\}|\[(?:[^[\]\\]|\\[\s\S])*\]|<(?:[^<>\\]|\\[\s\S])*>)/.source;n.languages.perl={comment:[{pattern:/(^\s*)=\w[\s\S]*?=cut.*/m,lookbehind:!0,greedy:!0},{pattern:/(^|[^\\$])#.*/,lookbehind:!0,greedy:!0}],string:[{pattern:RegExp(/\b(?:q|qq|qw|qx)(?![a-zA-Z0-9])\s*/.source+"(?:"+[/([^a-zA-Z0-9\s{(\[<])(?:(?!\1)[^\\]|\\[\s\S])*\1/.source,/([a-zA-Z0-9])(?:(?!\2)[^\\]|\\[\s\S])*\2/.source,r].join("|")+")"),greedy:!0},{pattern:/("|`)(?:(?!\1)[^\\]|\\[\s\S])*\1/,greedy:!0},{pattern:/'(?:[^'\\\r\n]|\\.)*'/,greedy:!0}],regex:[{pattern:RegExp(/\b(?:m|qr)(?![a-zA-Z0-9])\s*/.source+"(?:"+[/([^a-zA-Z0-9\s{(\[<])(?:(?!\1)[^\\]|\\[\s\S])*\1/.source,/([a-zA-Z0-9])(?:(?!\2)[^\\]|\\[\s\S])*\2/.source,r].join("|")+")"+/[msixpodualngc]*/.source),greedy:!0},{pattern:RegExp(/(^|[^-])\b(?:s|tr|y)(?![a-zA-Z0-9])\s*/.source+"(?:"+[/([^a-zA-Z0-9\s{(\[<])(?:(?!\2)[^\\]|\\[\s\S])*\2(?:(?!\2)[^\\]|\\[\s\S])*\2/.source,/([a-zA-Z0-9])(?:(?!\3)[^\\]|\\[\s\S])*\3(?:(?!\3)[^\\]|\\[\s\S])*\3/.source,r+/\s*/.source+r].join("|")+")"+/[msixpodualngcer]*/.source),lookbehind:!0,greedy:!0},{pattern:/\/(?:[^\/\\\r\n]|\\.)*\/[msixpodualngc]*(?=\s*(?:$|[\r\n,.;})&|\-+*~<>!?^]|(?:and|cmp|eq|ge|gt|le|lt|ne|not|or|x|xor)\b))/,greedy:!0}],variable:[/[&*$@%]\{\^[A-Z]+\}/,/[&*$@%]\^[A-Z_]/,/[&*$@%]#?(?=\{)/,/[&*$@%]#?(?:(?:::)*'?(?!\d)[\w$]+(?![\w$]))+(?:::)*/,/[&*$@%]\d+/,/(?!%=)[$@%][!"#$%&'()*+,\-.\/:;<=>?@[\\\]^_`{|}~]/],filehandle:{pattern:/<(?![<=])\S*?>|\b_\b/,alias:"symbol"},"v-string":{pattern:/v\d+(?:\.\d+)*|\d+(?:\.\d+){2,}/,alias:"string"},function:{pattern:/(\bsub[ \t]+)\w+/,lookbehind:!0},keyword:/\b(?:any|break|continue|default|delete|die|do|else|elsif|eval|for|foreach|given|goto|if|last|local|my|next|our|package|print|redo|require|return|say|state|sub|switch|undef|unless|until|use|when|while)\b/,number:/\b(?:0x[\dA-Fa-f](?:_?[\dA-Fa-f])*|0b[01](?:_?[01])*|(?:(?:\d(?:_?\d)*)?\.)?\d(?:_?\d)*(?:[Ee][+-]?\d+)?)\b/,operator:/-[rwxoRWXOezsfdlpSbctugkTBMAC]\b|\+[+=]?|-[-=>]?|\*\*?=?|\/\/?=?|=[=~>]?|~[~=]?|\|\|?=?|&&?=?|<(?:=>?|<=?)?|>>?=?|![~=]?|[%^]=?|\.(?:=|\.\.?)?|[\\?]|\bx(?:=|\b)|\b(?:and|cmp|eq|ge|gt|le|lt|ne|not|or|xor)\b/,punctuation:/[{}[\];(),:]/}})(t)}return wD}var SD,Z7;function W6e(){if(Z7)return SD;Z7=1;var e=mO();SD=t,t.displayName="phpExtras",t.aliases=[];function t(n){n.register(e),n.languages.insertBefore("php","variable",{this:{pattern:/\$this\b/,alias:"keyword"},global:/\$(?:GLOBALS|HTTP_RAW_POST_DATA|_(?:COOKIE|ENV|FILES|GET|POST|REQUEST|SERVER|SESSION)|argc|argv|http_response_header|php_errormsg)\b/,scope:{pattern:/\b[\w\\]+::/,inside:{keyword:/\b(?:parent|self|static)\b/,punctuation:/::|\\/}}})}return SD}var ED,eV;function z6e(){if(eV)return ED;eV=1;var e=mO(),t=hO();ED=n,n.displayName="phpdoc",n.aliases=[];function n(r){r.register(e),r.register(t),(function(a){var i=/(?:\b[a-zA-Z]\w*|[|\\[\]])+/.source;a.languages.phpdoc=a.languages.extend("javadoclike",{parameter:{pattern:RegExp("(@(?:global|param|property(?:-read|-write)?|var)\\s+(?:"+i+"\\s+)?)\\$\\w+"),lookbehind:!0}}),a.languages.insertBefore("phpdoc","keyword",{"class-name":[{pattern:RegExp("(@(?:global|package|param|property(?:-read|-write)?|return|subpackage|throws|var)\\s+)"+i),lookbehind:!0,inside:{keyword:/\b(?:array|bool|boolean|callback|double|false|float|int|integer|mixed|null|object|resource|self|string|true|void)\b/,punctuation:/[|\\[\]()]/}}]}),a.languages.javadoclike.addSupport("php",a.languages.phpdoc)})(r)}return ED}var TD,tV;function q6e(){if(tV)return TD;tV=1;var e=S4();TD=t,t.displayName="plsql",t.aliases=[];function t(n){n.register(e),n.languages.plsql=n.languages.extend("sql",{comment:{pattern:/\/\*[\s\S]*?\*\/|--.*/,greedy:!0},keyword:/\b(?:A|ACCESSIBLE|ADD|AGENT|AGGREGATE|ALL|ALTER|AND|ANY|ARRAY|AS|ASC|AT|ATTRIBUTE|AUTHID|AVG|BEGIN|BETWEEN|BFILE_BASE|BINARY|BLOB_BASE|BLOCK|BODY|BOTH|BOUND|BULK|BY|BYTE|C|CALL|CALLING|CASCADE|CASE|CHAR|CHARACTER|CHARSET|CHARSETFORM|CHARSETID|CHAR_BASE|CHECK|CLOB_BASE|CLONE|CLOSE|CLUSTER|CLUSTERS|COLAUTH|COLLECT|COLUMNS|COMMENT|COMMIT|COMMITTED|COMPILED|COMPRESS|CONNECT|CONSTANT|CONSTRUCTOR|CONTEXT|CONTINUE|CONVERT|COUNT|CRASH|CREATE|CREDENTIAL|CURRENT|CURSOR|CUSTOMDATUM|DANGLING|DATA|DATE|DATE_BASE|DAY|DECLARE|DEFAULT|DEFINE|DELETE|DESC|DETERMINISTIC|DIRECTORY|DISTINCT|DOUBLE|DROP|DURATION|ELEMENT|ELSE|ELSIF|EMPTY|END|ESCAPE|EXCEPT|EXCEPTION|EXCEPTIONS|EXCLUSIVE|EXECUTE|EXISTS|EXIT|EXTERNAL|FETCH|FINAL|FIRST|FIXED|FLOAT|FOR|FORALL|FORCE|FROM|FUNCTION|GENERAL|GOTO|GRANT|GROUP|HASH|HAVING|HEAP|HIDDEN|HOUR|IDENTIFIED|IF|IMMEDIATE|IMMUTABLE|IN|INCLUDING|INDEX|INDEXES|INDICATOR|INDICES|INFINITE|INSERT|INSTANTIABLE|INT|INTERFACE|INTERSECT|INTERVAL|INTO|INVALIDATE|IS|ISOLATION|JAVA|LANGUAGE|LARGE|LEADING|LENGTH|LEVEL|LIBRARY|LIKE|LIKE2|LIKE4|LIKEC|LIMIT|LIMITED|LOCAL|LOCK|LONG|LOOP|MAP|MAX|MAXLEN|MEMBER|MERGE|MIN|MINUS|MINUTE|MOD|MODE|MODIFY|MONTH|MULTISET|MUTABLE|NAME|NAN|NATIONAL|NATIVE|NCHAR|NEW|NOCOMPRESS|NOCOPY|NOT|NOWAIT|NULL|NUMBER_BASE|OBJECT|OCICOLL|OCIDATE|OCIDATETIME|OCIDURATION|OCIINTERVAL|OCILOBLOCATOR|OCINUMBER|OCIRAW|OCIREF|OCIREFCURSOR|OCIROWID|OCISTRING|OCITYPE|OF|OLD|ON|ONLY|OPAQUE|OPEN|OPERATOR|OPTION|OR|ORACLE|ORADATA|ORDER|ORGANIZATION|ORLANY|ORLVARY|OTHERS|OUT|OVERLAPS|OVERRIDING|PACKAGE|PARALLEL_ENABLE|PARAMETER|PARAMETERS|PARENT|PARTITION|PASCAL|PERSISTABLE|PIPE|PIPELINED|PLUGGABLE|POLYMORPHIC|PRAGMA|PRECISION|PRIOR|PRIVATE|PROCEDURE|PUBLIC|RAISE|RANGE|RAW|READ|RECORD|REF|REFERENCE|RELIES_ON|REM|REMAINDER|RENAME|RESOURCE|RESULT|RESULT_CACHE|RETURN|RETURNING|REVERSE|REVOKE|ROLLBACK|ROW|SAMPLE|SAVE|SAVEPOINT|SB1|SB2|SB4|SECOND|SEGMENT|SELECT|SELF|SEPARATE|SEQUENCE|SERIALIZABLE|SET|SHARE|SHORT|SIZE|SIZE_T|SOME|SPARSE|SQL|SQLCODE|SQLDATA|SQLNAME|SQLSTATE|STANDARD|START|STATIC|STDDEV|STORED|STRING|STRUCT|STYLE|SUBMULTISET|SUBPARTITION|SUBSTITUTABLE|SUBTYPE|SUM|SYNONYM|TABAUTH|TABLE|TDO|THE|THEN|TIME|TIMESTAMP|TIMEZONE_ABBR|TIMEZONE_HOUR|TIMEZONE_MINUTE|TIMEZONE_REGION|TO|TRAILING|TRANSACTION|TRANSACTIONAL|TRUSTED|TYPE|UB1|UB2|UB4|UNDER|UNION|UNIQUE|UNPLUG|UNSIGNED|UNTRUSTED|UPDATE|USE|USING|VALIST|VALUE|VALUES|VARIABLE|VARIANCE|VARRAY|VARYING|VIEW|VIEWS|VOID|WHEN|WHERE|WHILE|WITH|WORK|WRAPPED|WRITE|YEAR|ZONE)\b/i,operator:/:=?|=>|[<>^~!]=|\.\.|\|\||\*\*|[-+*/%<>=@]/}),n.languages.insertBefore("plsql","operator",{label:{pattern:/<<\s*\w+\s*>>/,alias:"symbol"}})}return TD}var CD,nV;function H6e(){if(nV)return CD;nV=1,CD=e,e.displayName="powerquery",e.aliases=[];function e(t){t.languages.powerquery={comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?\*\/|\/\/.*)/,lookbehind:!0,greedy:!0},"quoted-identifier":{pattern:/#"(?:[^"\r\n]|"")*"(?!")/,greedy:!0},string:{pattern:/(?:#!)?"(?:[^"\r\n]|"")*"(?!")/,greedy:!0},constant:[/\bDay\.(?:Friday|Monday|Saturday|Sunday|Thursday|Tuesday|Wednesday)\b/,/\bTraceLevel\.(?:Critical|Error|Information|Verbose|Warning)\b/,/\bOccurrence\.(?:All|First|Last)\b/,/\bOrder\.(?:Ascending|Descending)\b/,/\bRoundingMode\.(?:AwayFromZero|Down|ToEven|TowardZero|Up)\b/,/\bMissingField\.(?:Error|Ignore|UseNull)\b/,/\bQuoteStyle\.(?:Csv|None)\b/,/\bJoinKind\.(?:FullOuter|Inner|LeftAnti|LeftOuter|RightAnti|RightOuter)\b/,/\bGroupKind\.(?:Global|Local)\b/,/\bExtraValues\.(?:Error|Ignore|List)\b/,/\bJoinAlgorithm\.(?:Dynamic|LeftHash|LeftIndex|PairwiseHash|RightHash|RightIndex|SortMerge)\b/,/\bJoinSide\.(?:Left|Right)\b/,/\bPrecision\.(?:Decimal|Double)\b/,/\bRelativePosition\.From(?:End|Start)\b/,/\bTextEncoding\.(?:Ascii|BigEndianUnicode|Unicode|Utf16|Utf8|Windows)\b/,/\b(?:Any|Binary|Date|DateTime|DateTimeZone|Duration|Function|Int16|Int32|Int64|Int8|List|Logical|None|Number|Record|Table|Text|Time)\.Type\b/,/\bnull\b/],boolean:/\b(?:false|true)\b/,keyword:/\b(?:and|as|each|else|error|if|in|is|let|meta|not|nullable|optional|or|otherwise|section|shared|then|try|type)\b|#(?:binary|date|datetime|datetimezone|duration|infinity|nan|sections|shared|table|time)\b/,function:{pattern:/(^|[^#\w.])[a-z_][\w.]*(?=\s*\()/i,lookbehind:!0},"data-type":{pattern:/\b(?:any|anynonnull|binary|date|datetime|datetimezone|duration|function|list|logical|none|number|record|table|text|time)\b/,alias:"class-name"},number:{pattern:/\b0x[\da-f]+\b|(?:[+-]?(?:\b\d+\.)?\b\d+|[+-]\.\d+|(^|[^.])\B\.\d+)(?:e[+-]?\d+)?\b/i,lookbehind:!0},operator:/[-+*\/&?@^]|<(?:=>?|>)?|>=?|=>?|\.\.\.?/,punctuation:/[,;\[\](){}]/},t.languages.pq=t.languages.powerquery,t.languages.mscript=t.languages.powerquery}return CD}var kD,rV;function V6e(){if(rV)return kD;rV=1,kD=e,e.displayName="powershell",e.aliases=[];function e(t){(function(n){var r=n.languages.powershell={comment:[{pattern:/(^|[^`])<#[\s\S]*?#>/,lookbehind:!0},{pattern:/(^|[^`])#.*/,lookbehind:!0}],string:[{pattern:/"(?:`[\s\S]|[^`"])*"/,greedy:!0,inside:null},{pattern:/'(?:[^']|'')*'/,greedy:!0}],namespace:/\[[a-z](?:\[(?:\[[^\]]*\]|[^\[\]])*\]|[^\[\]])*\]/i,boolean:/\$(?:false|true)\b/i,variable:/\$\w+\b/,function:[/\b(?:Add|Approve|Assert|Backup|Block|Checkpoint|Clear|Close|Compare|Complete|Compress|Confirm|Connect|Convert|ConvertFrom|ConvertTo|Copy|Debug|Deny|Disable|Disconnect|Dismount|Edit|Enable|Enter|Exit|Expand|Export|Find|ForEach|Format|Get|Grant|Group|Hide|Import|Initialize|Install|Invoke|Join|Limit|Lock|Measure|Merge|Move|New|Open|Optimize|Out|Ping|Pop|Protect|Publish|Push|Read|Receive|Redo|Register|Remove|Rename|Repair|Request|Reset|Resize|Resolve|Restart|Restore|Resume|Revoke|Save|Search|Select|Send|Set|Show|Skip|Sort|Split|Start|Step|Stop|Submit|Suspend|Switch|Sync|Tee|Test|Trace|Unblock|Undo|Uninstall|Unlock|Unprotect|Unpublish|Unregister|Update|Use|Wait|Watch|Where|Write)-[a-z]+\b/i,/\b(?:ac|cat|chdir|clc|cli|clp|clv|compare|copy|cp|cpi|cpp|cvpa|dbp|del|diff|dir|ebp|echo|epal|epcsv|epsn|erase|fc|fl|ft|fw|gal|gbp|gc|gci|gcs|gdr|gi|gl|gm|gp|gps|group|gsv|gu|gv|gwmi|iex|ii|ipal|ipcsv|ipsn|irm|iwmi|iwr|kill|lp|ls|measure|mi|mount|move|mp|mv|nal|ndr|ni|nv|ogv|popd|ps|pushd|pwd|rbp|rd|rdr|ren|ri|rm|rmdir|rni|rnp|rp|rv|rvpa|rwmi|sal|saps|sasv|sbp|sc|select|set|shcm|si|sl|sleep|sls|sort|sp|spps|spsv|start|sv|swmi|tee|trcm|type|write)\b/i],keyword:/\b(?:Begin|Break|Catch|Class|Continue|Data|Define|Do|DynamicParam|Else|ElseIf|End|Exit|Filter|Finally|For|ForEach|From|Function|If|InlineScript|Parallel|Param|Process|Return|Sequence|Switch|Throw|Trap|Try|Until|Using|Var|While|Workflow)\b/i,operator:{pattern:/(^|\W)(?:!|-(?:b?(?:and|x?or)|as|(?:Not)?(?:Contains|In|Like|Match)|eq|ge|gt|is(?:Not)?|Join|le|lt|ne|not|Replace|sh[lr])\b|-[-=]?|\+[+=]?|[*\/%]=?)/i,lookbehind:!0},punctuation:/[|{}[\];(),.]/};r.string[0].inside={function:{pattern:/(^|[^`])\$\((?:\$\([^\r\n()]*\)|(?!\$\()[^\r\n)])*\)/,lookbehind:!0,inside:r},boolean:r.boolean,variable:r.variable}})(t)}return kD}var xD,aV;function G6e(){if(aV)return xD;aV=1,xD=e,e.displayName="processing",e.aliases=[];function e(t){t.languages.processing=t.languages.extend("clike",{keyword:/\b(?:break|case|catch|class|continue|default|else|extends|final|for|if|implements|import|new|null|private|public|return|static|super|switch|this|try|void|while)\b/,function:/\b\w+(?=\s*\()/,operator:/<[<=]?|>[>=]?|&&?|\|\|?|[%?]|[!=+\-*\/]=?/}),t.languages.insertBefore("processing","number",{constant:/\b(?!XML\b)[A-Z][A-Z\d_]+\b/,type:{pattern:/\b(?:boolean|byte|char|color|double|float|int|[A-Z]\w*)\b/,alias:"class-name"}})}return xD}var _D,iV;function Y6e(){if(iV)return _D;iV=1,_D=e,e.displayName="prolog",e.aliases=[];function e(t){t.languages.prolog={comment:{pattern:/\/\*[\s\S]*?\*\/|%.*/,greedy:!0},string:{pattern:/(["'])(?:\1\1|\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1(?!\1)/,greedy:!0},builtin:/\b(?:fx|fy|xf[xy]?|yfx?)\b/,function:/\b[a-z]\w*(?:(?=\()|\/\d+)/,number:/\b\d+(?:\.\d*)?/,operator:/[:\\=><\-?*@\/;+^|!$.]+|\b(?:is|mod|not|xor)\b/,punctuation:/[(){}\[\],]/}}return _D}var OD,oV;function K6e(){if(oV)return OD;oV=1,OD=e,e.displayName="promql",e.aliases=[];function e(t){(function(n){var r=["sum","min","max","avg","group","stddev","stdvar","count","count_values","bottomk","topk","quantile"],a=["on","ignoring","group_right","group_left","by","without"],i=["offset"],o=r.concat(a,i);n.languages.promql={comment:{pattern:/(^[ \t]*)#.*/m,lookbehind:!0},"vector-match":{pattern:new RegExp("((?:"+a.join("|")+")\\s*)\\([^)]*\\)"),lookbehind:!0,inside:{"label-key":{pattern:/\b[^,]+\b/,alias:"attr-name"},punctuation:/[(),]/}},"context-labels":{pattern:/\{[^{}]*\}/,inside:{"label-key":{pattern:/\b[a-z_]\w*(?=\s*(?:=|![=~]))/,alias:"attr-name"},"label-value":{pattern:/(["'`])(?:\\[\s\S]|(?!\1)[^\\])*\1/,greedy:!0,alias:"attr-value"},punctuation:/\{|\}|=~?|![=~]|,/}},"context-range":[{pattern:/\[[\w\s:]+\]/,inside:{punctuation:/\[|\]|:/,"range-duration":{pattern:/\b(?:\d+(?:[smhdwy]|ms))+\b/i,alias:"number"}}},{pattern:/(\boffset\s+)\w+/,lookbehind:!0,inside:{"range-duration":{pattern:/\b(?:\d+(?:[smhdwy]|ms))+\b/i,alias:"number"}}}],keyword:new RegExp("\\b(?:"+o.join("|")+")\\b","i"),function:/\b[a-z_]\w*(?=\s*\()/i,number:/[-+]?(?:(?:\b\d+(?:\.\d+)?|\B\.\d+)(?:e[-+]?\d+)?\b|\b(?:0x[0-9a-f]+|nan|inf)\b)/i,operator:/[\^*/%+-]|==|!=|<=|<|>=|>|\b(?:and|or|unless)\b/i,punctuation:/[{};()`,.[\]]/}})(t)}return OD}var RD,sV;function X6e(){if(sV)return RD;sV=1,RD=e,e.displayName="properties",e.aliases=[];function e(t){t.languages.properties={comment:/^[ \t]*[#!].*$/m,"attr-value":{pattern:/(^[ \t]*(?:\\(?:\r\n|[\s\S])|[^\\\s:=])+(?: *[=:] *(?! )| ))(?:\\(?:\r\n|[\s\S])|[^\\\r\n])+/m,lookbehind:!0},"attr-name":/^[ \t]*(?:\\(?:\r\n|[\s\S])|[^\\\s:=])+(?= *[=:]| )/m,punctuation:/[=:]/}}return RD}var PD,lV;function Q6e(){if(lV)return PD;lV=1,PD=e,e.displayName="protobuf",e.aliases=[];function e(t){(function(n){var r=/\b(?:bool|bytes|double|s?fixed(?:32|64)|float|[su]?int(?:32|64)|string)\b/;n.languages.protobuf=n.languages.extend("clike",{"class-name":[{pattern:/(\b(?:enum|extend|message|service)\s+)[A-Za-z_]\w*(?=\s*\{)/,lookbehind:!0},{pattern:/(\b(?:rpc\s+\w+|returns)\s*\(\s*(?:stream\s+)?)\.?[A-Za-z_]\w*(?:\.[A-Za-z_]\w*)*(?=\s*\))/,lookbehind:!0}],keyword:/\b(?:enum|extend|extensions|import|message|oneof|option|optional|package|public|repeated|required|reserved|returns|rpc(?=\s+\w)|service|stream|syntax|to)\b(?!\s*=\s*\d)/,function:/\b[a-z_]\w*(?=\s*\()/i}),n.languages.insertBefore("protobuf","operator",{map:{pattern:/\bmap<\s*[\w.]+\s*,\s*[\w.]+\s*>(?=\s+[a-z_]\w*\s*[=;])/i,alias:"class-name",inside:{punctuation:/[<>.,]/,builtin:r}},builtin:r,"positional-class-name":{pattern:/(?:\b|\B\.)[a-z_]\w*(?:\.[a-z_]\w*)*(?=\s+[a-z_]\w*\s*[=;])/i,alias:"class-name",inside:{punctuation:/\./}},annotation:{pattern:/(\[\s*)[a-z_]\w*(?=\s*=)/i,lookbehind:!0}})})(t)}return PD}var AD,uV;function J6e(){if(uV)return AD;uV=1,AD=e,e.displayName="psl",e.aliases=[];function e(t){t.languages.psl={comment:{pattern:/#.*/,greedy:!0},string:{pattern:/"(?:\\.|[^\\"])*"/,greedy:!0,inside:{symbol:/\\[ntrbA-Z"\\]/}},"heredoc-string":{pattern:/<<<([a-zA-Z_]\w*)[\r\n](?:.*[\r\n])*?\1\b/,alias:"string",greedy:!0},keyword:/\b(?:__multi|__single|case|default|do|else|elsif|exit|export|for|foreach|function|if|last|line|local|next|requires|return|switch|until|while|word)\b/,constant:/\b(?:ALARM|CHART_ADD_GRAPH|CHART_DELETE_GRAPH|CHART_DESTROY|CHART_LOAD|CHART_PRINT|EOF|OFFLINE|OK|PSL_PROF_LOG|R_CHECK_HORIZ|R_CHECK_VERT|R_CLICKER|R_COLUMN|R_FRAME|R_ICON|R_LABEL|R_LABEL_CENTER|R_LIST_MULTIPLE|R_LIST_MULTIPLE_ND|R_LIST_SINGLE|R_LIST_SINGLE_ND|R_MENU|R_POPUP|R_POPUP_SCROLLED|R_RADIO_HORIZ|R_RADIO_VERT|R_ROW|R_SCALE_HORIZ|R_SCALE_VERT|R_SEP_HORIZ|R_SEP_VERT|R_SPINNER|R_TEXT_FIELD|R_TEXT_FIELD_LABEL|R_TOGGLE|TRIM_LEADING|TRIM_LEADING_AND_TRAILING|TRIM_REDUNDANT|TRIM_TRAILING|VOID|WARN)\b/,boolean:/\b(?:FALSE|False|NO|No|TRUE|True|YES|Yes|false|no|true|yes)\b/,variable:/\b(?:PslDebug|errno|exit_status)\b/,builtin:{pattern:/\b(?:PslExecute|PslFunctionCall|PslFunctionExists|PslSetOptions|_snmp_debug|acos|add_diary|annotate|annotate_get|ascii_to_ebcdic|asctime|asin|atan|atexit|batch_set|blackout|cat|ceil|chan_exists|change_state|close|code_cvt|cond_signal|cond_wait|console_type|convert_base|convert_date|convert_locale_date|cos|cosh|create|date|dcget_text|destroy|destroy_lock|dget_text|difference|dump_hist|ebcdic_to_ascii|encrypt|event_archive|event_catalog_get|event_check|event_query|event_range_manage|event_range_query|event_report|event_schedule|event_trigger|event_trigger2|execute|exists|exp|fabs|file|floor|fmod|fopen|fseek|ftell|full_discovery|get|get_chan_info|get_ranges|get_text|get_vars|getenv|gethostinfo|getpid|getpname|grep|history|history_get_retention|in_transition|index|int|internal|intersection|is_var|isnumber|join|kill|length|lines|lock|lock_info|log|log10|loge|matchline|msg_check|msg_get_format|msg_get_severity|msg_printf|msg_sprintf|ntharg|nthargf|nthline|nthlinef|num_bytes|num_consoles|pconfig|popen|poplines|pow|print|printf|proc_exists|process|random|read|readln|refresh_parameters|remote_check|remote_close|remote_event_query|remote_event_trigger|remote_file_send|remote_open|remove|replace|rindex|sec_check_priv|sec_store_get|sec_store_set|set|set_alarm_ranges|set_locale|share|sin|sinh|sleep|snmp_agent_config|snmp_agent_start|snmp_agent_stop|snmp_close|snmp_config|snmp_get|snmp_get_next|snmp_h_get|snmp_h_get_next|snmp_h_set|snmp_open|snmp_set|snmp_trap_ignore|snmp_trap_listen|snmp_trap_raise_std_trap|snmp_trap_receive|snmp_trap_register_im|snmp_trap_send|snmp_walk|sopen|sort|splitline|sprintf|sqrt|srandom|str_repeat|strcasecmp|subset|substr|system|tail|tan|tanh|text_domain|time|tmpnam|tolower|toupper|trace_psl_process|trim|union|unique|unlock|unset|va_arg|va_start|write)\b/,alias:"builtin-function"},"foreach-variable":{pattern:/(\bforeach\s+(?:(?:\w+\b|"(?:\\.|[^\\"])*")\s+){0,2})[_a-zA-Z]\w*(?=\s*\()/,lookbehind:!0,greedy:!0},function:/\b[_a-z]\w*\b(?=\s*\()/i,number:/\b(?:0x[0-9a-f]+|\d+(?:\.\d+)?)\b/i,operator:/--|\+\+|&&=?|\|\|=?|<<=?|>>=?|[=!]~|[-+*/%&|^!=<>]=?|\.|[:?]/,punctuation:/[(){}\[\];,]/}}return AD}var ND,cV;function Z6e(){if(cV)return ND;cV=1,ND=e,e.displayName="pug",e.aliases=[];function e(t){(function(n){n.languages.pug={comment:{pattern:/(^([\t ]*))\/\/.*(?:(?:\r?\n|\r)\2[\t ].+)*/m,lookbehind:!0},"multiline-script":{pattern:/(^([\t ]*)script\b.*\.[\t ]*)(?:(?:\r?\n|\r(?!\n))(?:\2[\t ].+|\s*?(?=\r?\n|\r)))+/m,lookbehind:!0,inside:n.languages.javascript},filter:{pattern:/(^([\t ]*)):.+(?:(?:\r?\n|\r(?!\n))(?:\2[\t ].+|\s*?(?=\r?\n|\r)))+/m,lookbehind:!0,inside:{"filter-name":{pattern:/^:[\w-]+/,alias:"variable"},text:/\S[\s\S]*/}},"multiline-plain-text":{pattern:/(^([\t ]*)[\w\-#.]+\.[\t ]*)(?:(?:\r?\n|\r(?!\n))(?:\2[\t ].+|\s*?(?=\r?\n|\r)))+/m,lookbehind:!0},markup:{pattern:/(^[\t ]*)<.+/m,lookbehind:!0,inside:n.languages.markup},doctype:{pattern:/((?:^|\n)[\t ]*)doctype(?: .+)?/,lookbehind:!0},"flow-control":{pattern:/(^[\t ]*)(?:case|default|each|else|if|unless|when|while)\b(?: .+)?/m,lookbehind:!0,inside:{each:{pattern:/^each .+? in\b/,inside:{keyword:/\b(?:each|in)\b/,punctuation:/,/}},branch:{pattern:/^(?:case|default|else|if|unless|when|while)\b/,alias:"keyword"},rest:n.languages.javascript}},keyword:{pattern:/(^[\t ]*)(?:append|block|extends|include|prepend)\b.+/m,lookbehind:!0},mixin:[{pattern:/(^[\t ]*)mixin .+/m,lookbehind:!0,inside:{keyword:/^mixin/,function:/\w+(?=\s*\(|\s*$)/,punctuation:/[(),.]/}},{pattern:/(^[\t ]*)\+.+/m,lookbehind:!0,inside:{name:{pattern:/^\+\w+/,alias:"function"},rest:n.languages.javascript}}],script:{pattern:/(^[\t ]*script(?:(?:&[^(]+)?\([^)]+\))*[\t ]).+/m,lookbehind:!0,inside:n.languages.javascript},"plain-text":{pattern:/(^[\t ]*(?!-)[\w\-#.]*[\w\-](?:(?:&[^(]+)?\([^)]+\))*\/?[\t ]).+/m,lookbehind:!0},tag:{pattern:/(^[\t ]*)(?!-)[\w\-#.]*[\w\-](?:(?:&[^(]+)?\([^)]+\))*\/?:?/m,lookbehind:!0,inside:{attributes:[{pattern:/&[^(]+\([^)]+\)/,inside:n.languages.javascript},{pattern:/\([^)]+\)/,inside:{"attr-value":{pattern:/(=\s*(?!\s))(?:\{[^}]*\}|[^,)\r\n]+)/,lookbehind:!0,inside:n.languages.javascript},"attr-name":/[\w-]+(?=\s*!?=|\s*[,)])/,punctuation:/[!=(),]+/}}],punctuation:/:/,"attr-id":/#[\w\-]+/,"attr-class":/\.[\w\-]+/}},code:[{pattern:/(^[\t ]*(?:-|!?=)).+/m,lookbehind:!0,inside:n.languages.javascript}],punctuation:/[.\-!=|]+/};for(var r=/(^([\t ]*)):(?:(?:\r?\n|\r(?!\n))(?:\2[\t ].+|\s*?(?=\r?\n|\r)))+/.source,a=[{filter:"atpl",language:"twig"},{filter:"coffee",language:"coffeescript"},"ejs","handlebars","less","livescript","markdown",{filter:"sass",language:"scss"},"stylus"],i={},o=0,l=a.length;o",function(){return u.filter}),"m"),lookbehind:!0,inside:{"filter-name":{pattern:/^:[\w-]+/,alias:"variable"},text:{pattern:/\S[\s\S]*/,alias:[u.language,"language-"+u.language],inside:n.languages[u.language]}}})}n.languages.insertBefore("pug","filter",i)})(t)}return ND}var MD,dV;function eBe(){if(dV)return MD;dV=1,MD=e,e.displayName="puppet",e.aliases=[];function e(t){(function(n){n.languages.puppet={heredoc:[{pattern:/(@\("([^"\r\n\/):]+)"(?:\/[nrts$uL]*)?\).*(?:\r?\n|\r))(?:.*(?:\r?\n|\r(?!\n)))*?[ \t]*(?:\|[ \t]*)?(?:-[ \t]*)?\2/,lookbehind:!0,alias:"string",inside:{punctuation:/(?=\S).*\S(?= *$)/}},{pattern:/(@\(([^"\r\n\/):]+)(?:\/[nrts$uL]*)?\).*(?:\r?\n|\r))(?:.*(?:\r?\n|\r(?!\n)))*?[ \t]*(?:\|[ \t]*)?(?:-[ \t]*)?\2/,lookbehind:!0,greedy:!0,alias:"string",inside:{punctuation:/(?=\S).*\S(?= *$)/}},{pattern:/@\("?(?:[^"\r\n\/):]+)"?(?:\/[nrts$uL]*)?\)/,alias:"string",inside:{punctuation:{pattern:/(\().+?(?=\))/,lookbehind:!0}}}],"multiline-comment":{pattern:/(^|[^\\])\/\*[\s\S]*?\*\//,lookbehind:!0,greedy:!0,alias:"comment"},regex:{pattern:/((?:\bnode\s+|[~=\(\[\{,]\s*|[=+]>\s*|^\s*))\/(?:[^\/\\]|\\[\s\S])+\/(?:[imx]+\b|\B)/,lookbehind:!0,greedy:!0,inside:{"extended-regex":{pattern:/^\/(?:[^\/\\]|\\[\s\S])+\/[im]*x[im]*$/,inside:{comment:/#.*/}}}},comment:{pattern:/(^|[^\\])#.*/,lookbehind:!0,greedy:!0},string:{pattern:/(["'])(?:\$\{(?:[^'"}]|(["'])(?:(?!\2)[^\\]|\\[\s\S])*\2)+\}|\$(?!\{)|(?!\1)[^\\$]|\\[\s\S])*\1/,greedy:!0,inside:{"double-quoted":{pattern:/^"[\s\S]*"$/,inside:{}}}},variable:{pattern:/\$(?:::)?\w+(?:::\w+)*/,inside:{punctuation:/::/}},"attr-name":/(?:\b\w+|\*)(?=\s*=>)/,function:[{pattern:/(\.)(?!\d)\w+/,lookbehind:!0},/\b(?:contain|debug|err|fail|include|info|notice|realize|require|tag|warning)\b|\b(?!\d)\w+(?=\()/],number:/\b(?:0x[a-f\d]+|\d+(?:\.\d+)?(?:e-?\d+)?)\b/i,boolean:/\b(?:false|true)\b/,keyword:/\b(?:application|attr|case|class|consumes|default|define|else|elsif|function|if|import|inherits|node|private|produces|type|undef|unless)\b/,datatype:{pattern:/\b(?:Any|Array|Boolean|Callable|Catalogentry|Class|Collection|Data|Default|Enum|Float|Hash|Integer|NotUndef|Numeric|Optional|Pattern|Regexp|Resource|Runtime|Scalar|String|Struct|Tuple|Type|Undef|Variant)\b/,alias:"symbol"},operator:/=[=~>]?|![=~]?|<(?:<\|?|[=~|-])?|>[>=]?|->?|~>|\|>?>?|[*\/%+?]|\b(?:and|in|or)\b/,punctuation:/[\[\]{}().,;]|:+/};var r=[{pattern:/(^|[^\\])\$\{(?:[^'"{}]|\{[^}]*\}|(["'])(?:(?!\2)[^\\]|\\[\s\S])*\2)+\}/,lookbehind:!0,inside:{"short-variable":{pattern:/(^\$\{)(?!\w+\()(?:::)?\w+(?:::\w+)*/,lookbehind:!0,alias:"variable",inside:{punctuation:/::/}},delimiter:{pattern:/^\$/,alias:"variable"},rest:n.languages.puppet}},{pattern:/(^|[^\\])\$(?:::)?\w+(?:::\w+)*/,lookbehind:!0,alias:"variable",inside:{punctuation:/::/}}];n.languages.puppet.heredoc[0].inside.interpolation=r,n.languages.puppet.string.inside["double-quoted"].inside.interpolation=r})(t)}return MD}var ID,fV;function tBe(){if(fV)return ID;fV=1,ID=e,e.displayName="pure",e.aliases=[];function e(t){(function(n){n.languages.pure={comment:[{pattern:/(^|[^\\])\/\*[\s\S]*?\*\//,lookbehind:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0},/#!.+/],"inline-lang":{pattern:/%<[\s\S]+?%>/,greedy:!0,inside:{lang:{pattern:/(^%< *)-\*-.+?-\*-/,lookbehind:!0,alias:"comment"},delimiter:{pattern:/^%<.*|%>$/,alias:"punctuation"}}},string:{pattern:/"(?:\\.|[^"\\\r\n])*"/,greedy:!0},number:{pattern:/((?:\.\.)?)(?:\b(?:inf|nan)\b|\b0x[\da-f]+|(?:\b(?:0b)?\d+(?:\.\d+)?|\B\.\d+)(?:e[+-]?\d+)?L?)/i,lookbehind:!0},keyword:/\b(?:NULL|ans|break|bt|case|catch|cd|clear|const|def|del|dump|else|end|exit|extern|false|force|help|if|infix[lr]?|interface|let|ls|mem|namespace|nonfix|of|otherwise|outfix|override|postfix|prefix|private|public|pwd|quit|run|save|show|stats|then|throw|trace|true|type|underride|using|when|with)\b/,function:/\b(?:abs|add_(?:addr|constdef|(?:fundef|interface|macdef|typedef)(?:_at)?|vardef)|all|any|applp?|arity|bigintp?|blob(?:_crc|_size|p)?|boolp?|byte_c?string(?:_pointer)?|byte_(?:matrix|pointer)|calloc|cat|catmap|ceil|char[ps]?|check_ptrtag|chr|clear_sentry|clearsym|closurep?|cmatrixp?|cols?|colcat(?:map)?|colmap|colrev|colvector(?:p|seq)?|complex(?:_float_(?:matrix|pointer)|_matrix(?:_view)?|_pointer|p)?|conj|cookedp?|cst|cstring(?:_(?:dup|list|vector))?|curry3?|cyclen?|del_(?:constdef|fundef|interface|macdef|typedef|vardef)|delete|diag(?:mat)?|dim|dmatrixp?|do|double(?:_matrix(?:_view)?|_pointer|p)?|dowith3?|drop|dropwhile|eval(?:cmd)?|exactp|filter|fix|fixity|flip|float(?:_matrix|_pointer)|floor|fold[lr]1?|frac|free|funp?|functionp?|gcd|get(?:_(?:byte|constdef|double|float|fundef|int(?:64)?|interface(?:_typedef)?|long|macdef|pointer|ptrtag|sentry|short|string|typedef|vardef))?|globsym|hash|head|id|im|imatrixp?|index|inexactp|infp|init|insert|int(?:_matrix(?:_view)?|_pointer|p)?|int64_(?:matrix|pointer)|integerp?|iteraten?|iterwhile|join|keys?|lambdap?|last(?:err(?:pos)?)?|lcd|list[2p]?|listmap|make_ptrtag|malloc|map|matcat|matrixp?|max|member|min|nanp|nargs|nmatrixp?|null|numberp?|ord|pack(?:ed)?|pointer(?:_cast|_tag|_type|p)?|pow|pred|ptrtag|put(?:_(?:byte|double|float|int(?:64)?|long|pointer|short|string))?|rationalp?|re|realp?|realloc|recordp?|redim|reduce(?:_with)?|refp?|repeatn?|reverse|rlistp?|round|rows?|rowcat(?:map)?|rowmap|rowrev|rowvector(?:p|seq)?|same|scan[lr]1?|sentry|sgn|short_(?:matrix|pointer)|slice|smatrixp?|sort|split|str|strcat|stream|stride|string(?:_(?:dup|list|vector)|p)?|subdiag(?:mat)?|submat|subseq2?|substr|succ|supdiag(?:mat)?|symbolp?|tail|take|takewhile|thunkp?|transpose|trunc|tuplep?|typep|ubyte|uint(?:64)?|ulong|uncurry3?|unref|unzip3?|update|ushort|vals?|varp?|vector(?:p|seq)?|void|zip3?|zipwith3?)\b/,special:{pattern:/\b__[a-z]+__\b/i,alias:"builtin"},operator:/(?:[!"#$%&'*+,\-.\/:<=>?@\\^`|~\u00a1-\u00bf\u00d7-\u00f7\u20d0-\u2bff]|\b_+\b)+|\b(?:and|div|mod|not|or)\b/,punctuation:/[(){}\[\];,|]/};var r=["c",{lang:"c++",alias:"cpp"},"fortran"],a=/%< *-\*- *\d* *-\*-[\s\S]+?%>/.source;r.forEach(function(i){var o=i;if(typeof i!="string"&&(o=i.alias,i=i.lang),n.languages[o]){var l={};l["inline-lang-"+o]={pattern:RegExp(a.replace("",i.replace(/([.+*?\/\\(){}\[\]])/g,"\\$1")),"i"),inside:n.util.clone(n.languages.pure["inline-lang"].inside)},l["inline-lang-"+o].inside.rest=n.util.clone(n.languages[o]),n.languages.insertBefore("pure","inline-lang",l)}}),n.languages.c&&(n.languages.pure["inline-lang"].inside.rest=n.util.clone(n.languages.c))})(t)}return ID}var DD,pV;function nBe(){if(pV)return DD;pV=1,DD=e,e.displayName="purebasic",e.aliases=[];function e(t){t.languages.purebasic=t.languages.extend("clike",{comment:/;.*/,keyword:/\b(?:align|and|as|break|calldebugger|case|compilercase|compilerdefault|compilerelse|compilerelseif|compilerendif|compilerendselect|compilererror|compilerif|compilerselect|continue|data|datasection|debug|debuglevel|declare|declarec|declarecdll|declaredll|declaremodule|default|define|dim|disableasm|disabledebugger|disableexplicit|else|elseif|enableasm|enabledebugger|enableexplicit|end|enddatasection|enddeclaremodule|endenumeration|endif|endimport|endinterface|endmacro|endmodule|endprocedure|endselect|endstructure|endstructureunion|endwith|enumeration|extends|fakereturn|for|foreach|forever|global|gosub|goto|if|import|importc|includebinary|includefile|includepath|interface|macro|module|newlist|newmap|next|not|or|procedure|procedurec|procedurecdll|proceduredll|procedurereturn|protected|prototype|prototypec|read|redim|repeat|restore|return|runtime|select|shared|static|step|structure|structureunion|swap|threaded|to|until|wend|while|with|xincludefile|xor)\b/i,function:/\b\w+(?:\.\w+)?\s*(?=\()/,number:/(?:\$[\da-f]+|\b-?(?:\d+(?:\.\d+)?|\.\d+)(?:e[+-]?\d+)?)\b/i,operator:/(?:@\*?|\?|\*)\w+|-[>-]?|\+\+?|!=?|<>?=?|==?|&&?|\|?\||[~^%?*/@]/}),t.languages.insertBefore("purebasic","keyword",{tag:/#\w+\$?/,asm:{pattern:/(^[\t ]*)!.*/m,lookbehind:!0,alias:"tag",inside:{comment:/;.*/,string:{pattern:/(["'`])(?:\\.|(?!\1)[^\\\r\n])*\1/,greedy:!0},"label-reference-anonymous":{pattern:/(!\s*j[a-z]+\s+)@[fb]/i,lookbehind:!0,alias:"fasm-label"},"label-reference-addressed":{pattern:/(!\s*j[a-z]+\s+)[A-Z._?$@][\w.?$@~#]*/i,lookbehind:!0,alias:"fasm-label"},keyword:[/\b(?:extern|global)\b[^;\r\n]*/i,/\b(?:CPU|DEFAULT|FLOAT)\b.*/],function:{pattern:/^([\t ]*!\s*)[\da-z]+(?=\s|$)/im,lookbehind:!0},"function-inline":{pattern:/(:\s*)[\da-z]+(?=\s)/i,lookbehind:!0,alias:"function"},label:{pattern:/^([\t ]*!\s*)[A-Za-z._?$@][\w.?$@~#]*(?=:)/m,lookbehind:!0,alias:"fasm-label"},register:/\b(?:st\d|[xyz]mm\d\d?|[cdt]r\d|r\d\d?[bwd]?|[er]?[abcd]x|[abcd][hl]|[er]?(?:bp|di|si|sp)|[cdefgs]s|mm\d+)\b/i,number:/(?:\b|-|(?=\$))(?:0[hx](?:[\da-f]*\.)?[\da-f]+(?:p[+-]?\d+)?|\d[\da-f]+[hx]|\$\d[\da-f]*|0[oq][0-7]+|[0-7]+[oq]|0[by][01]+|[01]+[by]|0[dt]\d+|(?:\d+(?:\.\d+)?|\.\d+)(?:\.?e[+-]?\d+)?[dt]?)\b/i,operator:/[\[\]*+\-/%<>=&|$!,.:]/}}}),delete t.languages.purebasic["class-name"],delete t.languages.purebasic.boolean,t.languages.pbfasm=t.languages.purebasic}return DD}var $D,hV;function rBe(){if(hV)return $D;hV=1;var e=T4();$D=t,t.displayName="purescript",t.aliases=["purs"];function t(n){n.register(e),n.languages.purescript=n.languages.extend("haskell",{keyword:/\b(?:ado|case|class|data|derive|do|else|forall|if|in|infixl|infixr|instance|let|module|newtype|of|primitive|then|type|where)\b|∀/,"import-statement":{pattern:/(^[\t ]*)import\s+[A-Z][\w']*(?:\.[A-Z][\w']*)*(?:\s+as\s+[A-Z][\w']*(?:\.[A-Z][\w']*)*)?(?:\s+hiding\b)?/m,lookbehind:!0,inside:{keyword:/\b(?:as|hiding|import)\b/,punctuation:/\./}},builtin:/\b(?:absurd|add|ap|append|apply|between|bind|bottom|clamp|compare|comparing|compose|conj|const|degree|discard|disj|div|eq|flap|flip|gcd|identity|ifM|join|lcm|liftA1|liftM1|map|max|mempty|min|mod|mul|negate|not|notEq|one|otherwise|recip|show|sub|top|unit|unless|unlessM|void|when|whenM|zero)\b/,operator:[n.languages.haskell.operator[0],n.languages.haskell.operator[2],/[\xa2-\xa6\xa8\xa9\xac\xae-\xb1\xb4\xb8\xd7\xf7\u02c2-\u02c5\u02d2-\u02df\u02e5-\u02eb\u02ed\u02ef-\u02ff\u0375\u0384\u0385\u03f6\u0482\u058d-\u058f\u0606-\u0608\u060b\u060e\u060f\u06de\u06e9\u06fd\u06fe\u07f6\u07fe\u07ff\u09f2\u09f3\u09fa\u09fb\u0af1\u0b70\u0bf3-\u0bfa\u0c7f\u0d4f\u0d79\u0e3f\u0f01-\u0f03\u0f13\u0f15-\u0f17\u0f1a-\u0f1f\u0f34\u0f36\u0f38\u0fbe-\u0fc5\u0fc7-\u0fcc\u0fce\u0fcf\u0fd5-\u0fd8\u109e\u109f\u1390-\u1399\u166d\u17db\u1940\u19de-\u19ff\u1b61-\u1b6a\u1b74-\u1b7c\u1fbd\u1fbf-\u1fc1\u1fcd-\u1fcf\u1fdd-\u1fdf\u1fed-\u1fef\u1ffd\u1ffe\u2044\u2052\u207a-\u207c\u208a-\u208c\u20a0-\u20bf\u2100\u2101\u2103-\u2106\u2108\u2109\u2114\u2116-\u2118\u211e-\u2123\u2125\u2127\u2129\u212e\u213a\u213b\u2140-\u2144\u214a-\u214d\u214f\u218a\u218b\u2190-\u2307\u230c-\u2328\u232b-\u2426\u2440-\u244a\u249c-\u24e9\u2500-\u2767\u2794-\u27c4\u27c7-\u27e5\u27f0-\u2982\u2999-\u29d7\u29dc-\u29fb\u29fe-\u2b73\u2b76-\u2b95\u2b97-\u2bff\u2ce5-\u2cea\u2e50\u2e51\u2e80-\u2e99\u2e9b-\u2ef3\u2f00-\u2fd5\u2ff0-\u2ffb\u3004\u3012\u3013\u3020\u3036\u3037\u303e\u303f\u309b\u309c\u3190\u3191\u3196-\u319f\u31c0-\u31e3\u3200-\u321e\u322a-\u3247\u3250\u3260-\u327f\u328a-\u32b0\u32c0-\u33ff\u4dc0-\u4dff\ua490-\ua4c6\ua700-\ua716\ua720\ua721\ua789\ua78a\ua828-\ua82b\ua836-\ua839\uaa77-\uaa79\uab5b\uab6a\uab6b\ufb29\ufbb2-\ufbc1\ufdfc\ufdfd\ufe62\ufe64-\ufe66\ufe69\uff04\uff0b\uff1c-\uff1e\uff3e\uff40\uff5c\uff5e\uffe0-\uffe6\uffe8-\uffee\ufffc\ufffd]/]}),n.languages.purs=n.languages.purescript}return $D}var LD,mV;function aBe(){if(mV)return LD;mV=1,LD=e,e.displayName="python",e.aliases=["py"];function e(t){t.languages.python={comment:{pattern:/(^|[^\\])#.*/,lookbehind:!0,greedy:!0},"string-interpolation":{pattern:/(?:f|fr|rf)(?:("""|''')[\s\S]*?\1|("|')(?:\\.|(?!\2)[^\\\r\n])*\2)/i,greedy:!0,inside:{interpolation:{pattern:/((?:^|[^{])(?:\{\{)*)\{(?!\{)(?:[^{}]|\{(?!\{)(?:[^{}]|\{(?!\{)(?:[^{}])+\})+\})+\}/,lookbehind:!0,inside:{"format-spec":{pattern:/(:)[^:(){}]+(?=\}$)/,lookbehind:!0},"conversion-option":{pattern:/![sra](?=[:}]$)/,alias:"punctuation"},rest:null}},string:/[\s\S]+/}},"triple-quoted-string":{pattern:/(?:[rub]|br|rb)?("""|''')[\s\S]*?\1/i,greedy:!0,alias:"string"},string:{pattern:/(?:[rub]|br|rb)?("|')(?:\\.|(?!\1)[^\\\r\n])*\1/i,greedy:!0},function:{pattern:/((?:^|\s)def[ \t]+)[a-zA-Z_]\w*(?=\s*\()/g,lookbehind:!0},"class-name":{pattern:/(\bclass\s+)\w+/i,lookbehind:!0},decorator:{pattern:/(^[\t ]*)@\w+(?:\.\w+)*/m,lookbehind:!0,alias:["annotation","punctuation"],inside:{punctuation:/\./}},keyword:/\b(?:_(?=\s*:)|and|as|assert|async|await|break|case|class|continue|def|del|elif|else|except|exec|finally|for|from|global|if|import|in|is|lambda|match|nonlocal|not|or|pass|print|raise|return|try|while|with|yield)\b/,builtin:/\b(?:__import__|abs|all|any|apply|ascii|basestring|bin|bool|buffer|bytearray|bytes|callable|chr|classmethod|cmp|coerce|compile|complex|delattr|dict|dir|divmod|enumerate|eval|execfile|file|filter|float|format|frozenset|getattr|globals|hasattr|hash|help|hex|id|input|int|intern|isinstance|issubclass|iter|len|list|locals|long|map|max|memoryview|min|next|object|oct|open|ord|pow|property|range|raw_input|reduce|reload|repr|reversed|round|set|setattr|slice|sorted|staticmethod|str|sum|super|tuple|type|unichr|unicode|vars|xrange|zip)\b/,boolean:/\b(?:False|None|True)\b/,number:/\b0(?:b(?:_?[01])+|o(?:_?[0-7])+|x(?:_?[a-f0-9])+)\b|(?:\b\d+(?:_\d+)*(?:\.(?:\d+(?:_\d+)*)?)?|\B\.\d+(?:_\d+)*)(?:e[+-]?\d+(?:_\d+)*)?j?(?!\w)/i,operator:/[-+%=]=?|!=|:=|\*\*?=?|\/\/?=?|<[<=>]?|>[=>]?|[&|^~]/,punctuation:/[{}[\];(),.:]/},t.languages.python["string-interpolation"].inside.interpolation.inside.rest=t.languages.python,t.languages.py=t.languages.python}return LD}var FD,gV;function iBe(){if(gV)return FD;gV=1,FD=e,e.displayName="q",e.aliases=[];function e(t){t.languages.q={string:/"(?:\\.|[^"\\\r\n])*"/,comment:[{pattern:/([\t )\]}])\/.*/,lookbehind:!0,greedy:!0},{pattern:/(^|\r?\n|\r)\/[\t ]*(?:(?:\r?\n|\r)(?:.*(?:\r?\n|\r(?!\n)))*?(?:\\(?=[\t ]*(?:\r?\n|\r))|$)|\S.*)/,lookbehind:!0,greedy:!0},{pattern:/^\\[\t ]*(?:\r?\n|\r)[\s\S]+/m,greedy:!0},{pattern:/^#!.+/m,greedy:!0}],symbol:/`(?::\S+|[\w.]*)/,datetime:{pattern:/0N[mdzuvt]|0W[dtz]|\d{4}\.\d\d(?:m|\.\d\d(?:T(?:\d\d(?::\d\d(?::\d\d(?:[.:]\d\d\d)?)?)?)?)?[dz]?)|\d\d:\d\d(?::\d\d(?:[.:]\d\d\d)?)?[uvt]?/,alias:"number"},number:/\b(?![01]:)(?:0N[hje]?|0W[hj]?|0[wn]|0x[\da-fA-F]+|\d+(?:\.\d*)?(?:e[+-]?\d+)?[hjfeb]?)/,keyword:/\\\w+\b|\b(?:abs|acos|aj0?|all|and|any|asc|asin|asof|atan|attr|avgs?|binr?|by|ceiling|cols|cor|cos|count|cov|cross|csv|cut|delete|deltas|desc|dev|differ|distinct|div|do|dsave|ej|enlist|eval|except|exec|exit|exp|fby|fills|first|fkeys|flip|floor|from|get|getenv|group|gtime|hclose|hcount|hdel|hopen|hsym|iasc|identity|idesc|if|ij|in|insert|inter|inv|keys?|last|like|list|ljf?|load|log|lower|lsq|ltime|ltrim|mavg|maxs?|mcount|md5|mdev|med|meta|mins?|mmax|mmin|mmu|mod|msum|neg|next|not|null|or|over|parse|peach|pj|plist|prds?|prev|prior|rand|rank|ratios|raze|read0|read1|reciprocal|reval|reverse|rload|rotate|rsave|rtrim|save|scan|scov|sdev|select|set|setenv|show|signum|sin|sqrt|ssr?|string|sublist|sums?|sv|svar|system|tables|tan|til|trim|txf|type|uj|ungroup|union|update|upper|upsert|value|var|views?|vs|wavg|where|while|within|wj1?|wsum|ww|xasc|xbar|xcols?|xdesc|xexp|xgroup|xkey|xlog|xprev|xrank)\b/,adverb:{pattern:/['\/\\]:?|\beach\b/,alias:"function"},verb:{pattern:/(?:\B\.\B|\b[01]:|<[=>]?|>=?|[:+\-*%,!?~=|$&#@^]):?|\b_\b:?/,alias:"operator"},punctuation:/[(){}\[\];.]/}}return FD}var jD,vV;function oBe(){if(vV)return jD;vV=1,jD=e,e.displayName="qml",e.aliases=[];function e(t){(function(n){for(var r=/"(?:\\.|[^\\"\r\n])*"|'(?:\\.|[^\\'\r\n])*'/.source,a=/\/\/.*(?!.)|\/\*(?:[^*]|\*(?!\/))*\*\//.source,i=/(?:[^\\()[\]{}"'/]||\/(?![*/])||\(*\)|\[*\]|\{*\}|\\[\s\S])/.source.replace(//g,function(){return r}).replace(//g,function(){return a}),o=0;o<2;o++)i=i.replace(//g,function(){return i});i=i.replace(//g,"[^\\s\\S]"),n.languages.qml={comment:{pattern:/\/\/.*|\/\*[\s\S]*?\*\//,greedy:!0},"javascript-function":{pattern:RegExp(/((?:^|;)[ \t]*)function\s+(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*\(*\)\s*\{*\}/.source.replace(//g,function(){return i}),"m"),lookbehind:!0,greedy:!0,alias:"language-javascript",inside:n.languages.javascript},"class-name":{pattern:/((?:^|[:;])[ \t]*)(?!\d)\w+(?=[ \t]*\{|[ \t]+on\b)/m,lookbehind:!0},property:[{pattern:/((?:^|[;{])[ \t]*)(?!\d)\w+(?:\.\w+)*(?=[ \t]*:)/m,lookbehind:!0},{pattern:/((?:^|[;{])[ \t]*)property[ \t]+(?!\d)\w+(?:\.\w+)*[ \t]+(?!\d)\w+(?:\.\w+)*(?=[ \t]*:)/m,lookbehind:!0,inside:{keyword:/^property/,property:/\w+(?:\.\w+)*/}}],"javascript-expression":{pattern:RegExp(/(:[ \t]*)(?![\s;}[])(?:(?!$|[;}]))+/.source.replace(//g,function(){return i}),"m"),lookbehind:!0,greedy:!0,alias:"language-javascript",inside:n.languages.javascript},string:{pattern:/"(?:\\.|[^\\"\r\n])*"/,greedy:!0},keyword:/\b(?:as|import|on)\b/,punctuation:/[{}[\]:;,]/}})(t)}return jD}var UD,yV;function sBe(){if(yV)return UD;yV=1,UD=e,e.displayName="qore",e.aliases=[];function e(t){t.languages.qore=t.languages.extend("clike",{comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?\*\/|(?:\/\/|#).*)/,lookbehind:!0},string:{pattern:/("|')(?:\\[\s\S]|(?!\1)[^\\])*\1/,greedy:!0},keyword:/\b(?:abstract|any|assert|binary|bool|boolean|break|byte|case|catch|char|class|code|const|continue|data|default|do|double|else|enum|extends|final|finally|float|for|goto|hash|if|implements|import|inherits|instanceof|int|interface|long|my|native|new|nothing|null|object|our|own|private|reference|rethrow|return|short|soft(?:bool|date|float|int|list|number|string)|static|strictfp|string|sub|super|switch|synchronized|this|throw|throws|transient|try|void|volatile|while)\b/,boolean:/\b(?:false|true)\b/i,function:/\$?\b(?!\d)\w+(?=\()/,number:/\b(?:0b[01]+|0x(?:[\da-f]*\.)?[\da-fp\-]+|(?:\d+(?:\.\d+)?|\.\d+)(?:e\d+)?[df]|(?:\d+(?:\.\d+)?|\.\d+))\b/i,operator:{pattern:/(^|[^.])(?:\+[+=]?|-[-=]?|[!=](?:==?|~)?|>>?=?|<(?:=>?|<=?)?|&[&=]?|\|[|=]?|[*\/%^]=?|[~?])/,lookbehind:!0},variable:/\$(?!\d)\w+\b/})}return UD}var BD,bV;function lBe(){if(bV)return BD;bV=1,BD=e,e.displayName="qsharp",e.aliases=["qs"];function e(t){(function(n){function r(v,E){return v.replace(/<<(\d+)>>/g,function(T,C){return"(?:"+E[+C]+")"})}function a(v,E,T){return RegExp(r(v,E),"")}function i(v,E){for(var T=0;T>/g,function(){return"(?:"+v+")"});return v.replace(/<>/g,"[^\\s\\S]")}var o={type:"Adj BigInt Bool Ctl Double false Int One Pauli PauliI PauliX PauliY PauliZ Qubit Range Result String true Unit Zero",other:"Adjoint adjoint apply as auto body borrow borrowing Controlled controlled distribute elif else fail fixup for function if in internal intrinsic invert is let mutable namespace new newtype open operation repeat return self set until use using while within"};function l(v){return"\\b(?:"+v.trim().replace(/ /g,"|")+")\\b"}var u=RegExp(l(o.type+" "+o.other)),d=/\b[A-Za-z_]\w*\b/.source,f=r(/<<0>>(?:\s*\.\s*<<0>>)*/.source,[d]),g={keyword:u,punctuation:/[<>()?,.:[\]]/},y=/"(?:\\.|[^\\"])*"/.source;n.languages.qsharp=n.languages.extend("clike",{comment:/\/\/.*/,string:[{pattern:a(/(^|[^$\\])<<0>>/.source,[y]),lookbehind:!0,greedy:!0}],"class-name":[{pattern:a(/(\b(?:as|open)\s+)<<0>>(?=\s*(?:;|as\b))/.source,[f]),lookbehind:!0,inside:g},{pattern:a(/(\bnamespace\s+)<<0>>(?=\s*\{)/.source,[f]),lookbehind:!0,inside:g}],keyword:u,number:/(?:\b0(?:x[\da-f]+|b[01]+|o[0-7]+)|(?:\B\.\d+|\b\d+(?:\.\d*)?)(?:e[-+]?\d+)?)l?\b/i,operator:/\band=|\bor=|\band\b|\bnot\b|\bor\b|<[-=]|[-=]>|>>>=?|<<<=?|\^\^\^=?|\|\|\|=?|&&&=?|w\/=?|~~~|[*\/+\-^=!%]=?/,punctuation:/::|[{}[\];(),.:]/}),n.languages.insertBefore("qsharp","number",{range:{pattern:/\.\./,alias:"operator"}});var h=i(r(/\{(?:[^"{}]|<<0>>|<>)*\}/.source,[y]),2);n.languages.insertBefore("qsharp","string",{"interpolation-string":{pattern:a(/\$"(?:\\.|<<0>>|[^\\"{])*"/.source,[h]),greedy:!0,inside:{interpolation:{pattern:a(/((?:^|[^\\])(?:\\\\)*)<<0>>/.source,[h]),lookbehind:!0,inside:{punctuation:/^\{|\}$/,expression:{pattern:/[\s\S]+/,alias:"language-qsharp",inside:n.languages.qsharp}}},string:/[\s\S]+/}}})})(t),t.languages.qs=t.languages.qsharp}return BD}var WD,wV;function uBe(){if(wV)return WD;wV=1,WD=e,e.displayName="r",e.aliases=[];function e(t){t.languages.r={comment:/#.*/,string:{pattern:/(['"])(?:\\.|(?!\1)[^\\\r\n])*\1/,greedy:!0},"percent-operator":{pattern:/%[^%\s]*%/,alias:"operator"},boolean:/\b(?:FALSE|TRUE)\b/,ellipsis:/\.\.(?:\.|\d+)/,number:[/\b(?:Inf|NaN)\b/,/(?:\b0x[\dA-Fa-f]+(?:\.\d*)?|\b\d+(?:\.\d*)?|\B\.\d+)(?:[EePp][+-]?\d+)?[iL]?/],keyword:/\b(?:NA|NA_character_|NA_complex_|NA_integer_|NA_real_|NULL|break|else|for|function|if|in|next|repeat|while)\b/,operator:/->?>?|<(?:=|=!]=?|::?|&&?|\|\|?|[+*\/^$@~]/,punctuation:/[(){}\[\],;]/}}return WD}var zD,SV;function cBe(){if(SV)return zD;SV=1;var e=_4();zD=t,t.displayName="racket",t.aliases=["rkt"];function t(n){n.register(e),n.languages.racket=n.languages.extend("scheme",{"lambda-parameter":{pattern:/([(\[]lambda\s+[(\[])[^()\[\]'\s]+/,lookbehind:!0}}),n.languages.insertBefore("racket","string",{lang:{pattern:/^#lang.+/m,greedy:!0,alias:"keyword"}}),n.languages.rkt=n.languages.racket}return zD}var qD,EV;function dBe(){if(EV)return qD;EV=1,qD=e,e.displayName="reason",e.aliases=[];function e(t){t.languages.reason=t.languages.extend("clike",{string:{pattern:/"(?:\\(?:\r\n|[\s\S])|[^\\\r\n"])*"/,greedy:!0},"class-name":/\b[A-Z]\w*/,keyword:/\b(?:and|as|assert|begin|class|constraint|do|done|downto|else|end|exception|external|for|fun|function|functor|if|in|include|inherit|initializer|lazy|let|method|module|mutable|new|nonrec|object|of|open|or|private|rec|sig|struct|switch|then|to|try|type|val|virtual|when|while|with)\b/,operator:/\.{3}|:[:=]|\|>|->|=(?:==?|>)?|<=?|>=?|[|^?'#!~`]|[+\-*\/]\.?|\b(?:asr|land|lor|lsl|lsr|lxor|mod)\b/}),t.languages.insertBefore("reason","class-name",{char:{pattern:/'(?:\\x[\da-f]{2}|\\o[0-3][0-7][0-7]|\\\d{3}|\\.|[^'\\\r\n])'/,greedy:!0},constructor:/\b[A-Z]\w*\b(?!\s*\.)/,label:{pattern:/\b[a-z]\w*(?=::)/,alias:"symbol"}}),delete t.languages.reason.function}return qD}var HD,TV;function fBe(){if(TV)return HD;TV=1,HD=e,e.displayName="regex",e.aliases=[];function e(t){(function(n){var r={pattern:/\\[\\(){}[\]^$+*?|.]/,alias:"escape"},a=/\\(?:x[\da-fA-F]{2}|u[\da-fA-F]{4}|u\{[\da-fA-F]+\}|0[0-7]{0,2}|[123][0-7]{2}|c[a-zA-Z]|.)/,i={pattern:/\.|\\[wsd]|\\p\{[^{}]+\}/i,alias:"class-name"},o={pattern:/\\[wsd]|\\p\{[^{}]+\}/i,alias:"class-name"},l="(?:[^\\\\-]|"+a.source+")",u=RegExp(l+"-"+l),d={pattern:/(<|')[^<>']+(?=[>']$)/,lookbehind:!0,alias:"variable"};n.languages.regex={"char-class":{pattern:/((?:^|[^\\])(?:\\\\)*)\[(?:[^\\\]]|\\[\s\S])*\]/,lookbehind:!0,inside:{"char-class-negation":{pattern:/(^\[)\^/,lookbehind:!0,alias:"operator"},"char-class-punctuation":{pattern:/^\[|\]$/,alias:"punctuation"},range:{pattern:u,inside:{escape:a,"range-punctuation":{pattern:/-/,alias:"operator"}}},"special-escape":r,"char-set":o,escape:a}},"special-escape":r,"char-set":i,backreference:[{pattern:/\\(?![123][0-7]{2})[1-9]/,alias:"keyword"},{pattern:/\\k<[^<>']+>/,alias:"keyword",inside:{"group-name":d}}],anchor:{pattern:/[$^]|\\[ABbGZz]/,alias:"function"},escape:a,group:[{pattern:/\((?:\?(?:<[^<>']+>|'[^<>']+'|[>:]|:=]=?|!=|\b_\b/,punctuation:/[,;.\[\]{}()]/}}return VD}var GD,kV;function hBe(){if(kV)return GD;kV=1,GD=e,e.displayName="renpy",e.aliases=["rpy"];function e(t){t.languages.renpy={comment:{pattern:/(^|[^\\])#.+/,lookbehind:!0},string:{pattern:/("""|''')[\s\S]+?\1|("|')(?:\\.|(?!\2)[^\\])*\2|(?:^#?(?:(?:[0-9a-fA-F]){3}|[0-9a-fA-F]{6})$)/m,greedy:!0},function:/\b[a-z_]\w*(?=\()/i,property:/\b(?:Update|UpdateVersion|action|activate_sound|adv_nvl_transition|after_load_transition|align|alpha|alt|anchor|antialias|area|auto|background|bar_invert|bar_resizing|bar_vertical|black_color|bold|bottom_bar|bottom_gutter|bottom_margin|bottom_padding|box_reverse|box_wrap|can_update|caret|child|color|crop|default_afm_enable|default_afm_time|default_fullscreen|default_text_cps|developer|directory_name|drag_handle|drag_joined|drag_name|drag_raise|draggable|dragged|drop_shadow|drop_shadow_color|droppable|dropped|easein|easeout|edgescroll|end_game_transition|end_splash_transition|enter_replay_transition|enter_sound|enter_transition|enter_yesno_transition|executable_name|exit_replay_transition|exit_sound|exit_transition|exit_yesno_transition|fadein|fadeout|first_indent|first_spacing|fit_first|focus|focus_mask|font|foreground|game_main_transition|get_installed_packages|google_play_key|google_play_salt|ground|has_music|has_sound|has_voice|height|help|hinting|hover|hover_background|hover_color|hover_sound|hovered|hyperlink_functions|idle|idle_color|image_style|include_update|insensitive|insensitive_background|insensitive_color|inside|intra_transition|italic|justify|kerning|keyboard_focus|language|layer_clipping|layers|layout|left_bar|left_gutter|left_margin|left_padding|length|line_leading|line_overlap_split|line_spacing|linear|main_game_transition|main_menu_music|maximum|min_width|minimum|minwidth|modal|mouse|mousewheel|name|narrator_menu|newline_indent|nvl_adv_transition|offset|order_reverse|outlines|overlay_functions|pos|position|prefix|radius|range|rest_indent|right_bar|right_gutter|right_margin|right_padding|rotate|rotate_pad|ruby_style|sample_sound|save_directory|say_attribute_transition|screen_height|screen_width|scrollbars|selected_hover|selected_hover_color|selected_idle|selected_idle_color|selected_insensitive|show_side_image|show_two_window|side_spacing|side_xpos|side_ypos|size|size_group|slow_cps|slow_cps_multiplier|spacing|strikethrough|subpixel|text_align|text_style|text_xpos|text_y_fudge|text_ypos|thumb|thumb_offset|thumb_shadow|thumbnail_height|thumbnail_width|time|top_bar|top_gutter|top_margin|top_padding|translations|underline|unscrollable|update|value|version|version_name|version_tuple|vertical|width|window_hide_transition|window_icon|window_left_padding|window_show_transition|window_title|windows_icon|xadjustment|xalign|xanchor|xanchoraround|xaround|xcenter|xfill|xinitial|xmargin|xmaximum|xminimum|xoffset|xofsset|xpadding|xpos|xsize|xzoom|yadjustment|yalign|yanchor|yanchoraround|yaround|ycenter|yfill|yinitial|ymargin|ymaximum|yminimum|yoffset|ypadding|ypos|ysize|ysizexysize|yzoom|zoom|zorder)\b/,tag:/\b(?:bar|block|button|buttoscreenn|drag|draggroup|fixed|frame|grid|[hv]box|hotbar|hotspot|image|imagebutton|imagemap|input|key|label|menu|mm_menu_frame|mousearea|nvl|parallel|screen|self|side|tag|text|textbutton|timer|vbar|viewport|window)\b|\$/,keyword:/\b(?:None|add|adjustment|alignaround|allow|angle|animation|around|as|assert|behind|box_layout|break|build|cache|call|center|changed|child_size|choice|circles|class|clear|clicked|clipping|clockwise|config|contains|continue|corner1|corner2|counterclockwise|def|default|define|del|delay|disabled|disabled_text|dissolve|elif|else|event|except|exclude|exec|expression|fade|finally|for|from|function|global|gm_root|has|hide|id|if|import|in|init|is|jump|knot|lambda|left|less_rounded|mm_root|movie|music|null|on|onlayer|pass|pause|persistent|play|print|python|queue|raise|random|renpy|repeat|return|right|rounded_window|scene|scope|set|show|slow|slow_abortable|slow_done|sound|stop|store|style|style_group|substitute|suffix|theme|transform|transform_anchor|transpose|try|ui|unhovered|updater|use|voice|while|widget|widget_hover|widget_selected|widget_text|yield)\b/,boolean:/\b(?:[Ff]alse|[Tt]rue)\b/,number:/(?:\b(?:0[bo])?(?:(?:\d|0x[\da-f])[\da-f]*(?:\.\d*)?)|\B\.\d+)(?:e[+-]?\d+)?j?/i,operator:/[-+%=]=?|!=|\*\*?=?|\/\/?=?|<[<=>]?|>[=>]?|[&|^~]|\b(?:and|at|not|or|with)\b/,punctuation:/[{}[\];(),.:]/},t.languages.rpy=t.languages.renpy}return GD}var YD,xV;function mBe(){if(xV)return YD;xV=1,YD=e,e.displayName="rest",e.aliases=[];function e(t){t.languages.rest={table:[{pattern:/(^[\t ]*)(?:\+[=-]+)+\+(?:\r?\n|\r)(?:\1[+|].+[+|](?:\r?\n|\r))+\1(?:\+[=-]+)+\+/m,lookbehind:!0,inside:{punctuation:/\||(?:\+[=-]+)+\+/}},{pattern:/(^[\t ]*)=+ [ =]*=(?:(?:\r?\n|\r)\1.+)+(?:\r?\n|\r)\1=+ [ =]*=(?=(?:\r?\n|\r){2}|\s*$)/m,lookbehind:!0,inside:{punctuation:/[=-]+/}}],"substitution-def":{pattern:/(^[\t ]*\.\. )\|(?:[^|\s](?:[^|]*[^|\s])?)\| [^:]+::/m,lookbehind:!0,inside:{substitution:{pattern:/^\|(?:[^|\s]|[^|\s][^|]*[^|\s])\|/,alias:"attr-value",inside:{punctuation:/^\||\|$/}},directive:{pattern:/( )(?! )[^:]+::/,lookbehind:!0,alias:"function",inside:{punctuation:/::$/}}}},"link-target":[{pattern:/(^[\t ]*\.\. )\[[^\]]+\]/m,lookbehind:!0,alias:"string",inside:{punctuation:/^\[|\]$/}},{pattern:/(^[\t ]*\.\. )_(?:`[^`]+`|(?:[^:\\]|\\.)+):/m,lookbehind:!0,alias:"string",inside:{punctuation:/^_|:$/}}],directive:{pattern:/(^[\t ]*\.\. )[^:]+::/m,lookbehind:!0,alias:"function",inside:{punctuation:/::$/}},comment:{pattern:/(^[\t ]*\.\.)(?:(?: .+)?(?:(?:\r?\n|\r).+)+| .+)(?=(?:\r?\n|\r){2}|$)/m,lookbehind:!0},title:[{pattern:/^(([!"#$%&'()*+,\-.\/:;<=>?@\[\\\]^_`{|}~])\2+)(?:\r?\n|\r).+(?:\r?\n|\r)\1$/m,inside:{punctuation:/^[!"#$%&'()*+,\-.\/:;<=>?@\[\\\]^_`{|}~]+|[!"#$%&'()*+,\-.\/:;<=>?@\[\\\]^_`{|}~]+$/,important:/.+/}},{pattern:/(^|(?:\r?\n|\r){2}).+(?:\r?\n|\r)([!"#$%&'()*+,\-.\/:;<=>?@\[\\\]^_`{|}~])\2+(?=\r?\n|\r|$)/,lookbehind:!0,inside:{punctuation:/[!"#$%&'()*+,\-.\/:;<=>?@\[\\\]^_`{|}~]+$/,important:/.+/}}],hr:{pattern:/((?:\r?\n|\r){2})([!"#$%&'()*+,\-.\/:;<=>?@\[\\\]^_`{|}~])\2{3,}(?=(?:\r?\n|\r){2})/,lookbehind:!0,alias:"punctuation"},field:{pattern:/(^[\t ]*):[^:\r\n]+:(?= )/m,lookbehind:!0,alias:"attr-name"},"command-line-option":{pattern:/(^[\t ]*)(?:[+-][a-z\d]|(?:--|\/)[a-z\d-]+)(?:[ =](?:[a-z][\w-]*|<[^<>]+>))?(?:, (?:[+-][a-z\d]|(?:--|\/)[a-z\d-]+)(?:[ =](?:[a-z][\w-]*|<[^<>]+>))?)*(?=(?:\r?\n|\r)? {2,}\S)/im,lookbehind:!0,alias:"symbol"},"literal-block":{pattern:/::(?:\r?\n|\r){2}([ \t]+)(?![ \t]).+(?:(?:\r?\n|\r)\1.+)*/,inside:{"literal-block-punctuation":{pattern:/^::/,alias:"punctuation"}}},"quoted-literal-block":{pattern:/::(?:\r?\n|\r){2}([!"#$%&'()*+,\-.\/:;<=>?@\[\\\]^_`{|}~]).*(?:(?:\r?\n|\r)\1.*)*/,inside:{"literal-block-punctuation":{pattern:/^(?:::|([!"#$%&'()*+,\-.\/:;<=>?@\[\\\]^_`{|}~])\1*)/m,alias:"punctuation"}}},"list-bullet":{pattern:/(^[\t ]*)(?:[*+\-•‣⁃]|\(?(?:\d+|[a-z]|[ivxdclm]+)\)|(?:\d+|[a-z]|[ivxdclm]+)\.)(?= )/im,lookbehind:!0,alias:"punctuation"},"doctest-block":{pattern:/(^[\t ]*)>>> .+(?:(?:\r?\n|\r).+)*/m,lookbehind:!0,inside:{punctuation:/^>>>/}},inline:[{pattern:/(^|[\s\-:\/'"<(\[{])(?::[^:]+:`.*?`|`.*?`:[^:]+:|(\*\*?|``?|\|)(?!\s)(?:(?!\2).)*\S\2(?=[\s\-.,:;!?\\\/'")\]}]|$))/m,lookbehind:!0,inside:{bold:{pattern:/(^\*\*).+(?=\*\*$)/,lookbehind:!0},italic:{pattern:/(^\*).+(?=\*$)/,lookbehind:!0},"inline-literal":{pattern:/(^``).+(?=``$)/,lookbehind:!0,alias:"symbol"},role:{pattern:/^:[^:]+:|:[^:]+:$/,alias:"function",inside:{punctuation:/^:|:$/}},"interpreted-text":{pattern:/(^`).+(?=`$)/,lookbehind:!0,alias:"attr-value"},substitution:{pattern:/(^\|).+(?=\|$)/,lookbehind:!0,alias:"attr-value"},punctuation:/\*\*?|``?|\|/}}],link:[{pattern:/\[[^\[\]]+\]_(?=[\s\-.,:;!?\\\/'")\]}]|$)/,alias:"string",inside:{punctuation:/^\[|\]_$/}},{pattern:/(?:\b[a-z\d]+(?:[_.:+][a-z\d]+)*_?_|`[^`]+`_?_|_`[^`]+`)(?=[\s\-.,:;!?\\\/'")\]}]|$)/i,alias:"string",inside:{punctuation:/^_?`|`$|`?_?_$/}}],punctuation:{pattern:/(^[\t ]*)(?:\|(?= |$)|(?:---?|—|\.\.|__)(?= )|\.\.$)/m,lookbehind:!0}}}return YD}var KD,_V;function gBe(){if(_V)return KD;_V=1,KD=e,e.displayName="rip",e.aliases=[];function e(t){t.languages.rip={comment:{pattern:/#.*/,greedy:!0},char:{pattern:/\B`[^\s`'",.:;#\/\\()<>\[\]{}]\b/,greedy:!0},string:{pattern:/("|')(?:\\.|(?!\1)[^\\\r\n])*\1/,greedy:!0},regex:{pattern:/(^|[^/])\/(?!\/)(?:\[[^\n\r\]]*\]|\\.|[^/\\\r\n\[])+\/(?=\s*(?:$|[\r\n,.;})]))/,lookbehind:!0,greedy:!0},keyword:/(?:=>|->)|\b(?:case|catch|class|else|exit|finally|if|raise|return|switch|try)\b/,builtin:/@|\bSystem\b/,boolean:/\b(?:false|true)\b/,date:/\b\d{4}-\d{2}-\d{2}\b/,time:/\b\d{2}:\d{2}:\d{2}\b/,datetime:/\b\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}\b/,symbol:/:[^\d\s`'",.:;#\/\\()<>\[\]{}][^\s`'",.:;#\/\\()<>\[\]{}]*/,number:/[+-]?\b(?:\d+\.\d+|\d+)\b/,punctuation:/(?:\.{2,3})|[`,.:;=\/\\()<>\[\]{}]/,reference:/[^\d\s`'",.:;#\/\\()<>\[\]{}][^\s`'",.:;#\/\\()<>\[\]{}]*/}}return KD}var XD,OV;function vBe(){if(OV)return XD;OV=1,XD=e,e.displayName="roboconf",e.aliases=[];function e(t){t.languages.roboconf={comment:/#.*/,keyword:{pattern:/(^|\s)(?:(?:external|import)\b|(?:facet|instance of)(?=[ \t]+[\w-]+[ \t]*\{))/,lookbehind:!0},component:{pattern:/[\w-]+(?=[ \t]*\{)/,alias:"variable"},property:/[\w.-]+(?=[ \t]*:)/,value:{pattern:/(=[ \t]*(?![ \t]))[^,;]+/,lookbehind:!0,alias:"attr-value"},optional:{pattern:/\(optional\)/,alias:"builtin"},wildcard:{pattern:/(\.)\*/,lookbehind:!0,alias:"operator"},punctuation:/[{},.;:=]/}}return XD}var QD,RV;function yBe(){if(RV)return QD;RV=1,QD=e,e.displayName="robotframework",e.aliases=[];function e(t){(function(n){var r={pattern:/(^[ \t]*| {2}|\t)#.*/m,lookbehind:!0,greedy:!0},a={pattern:/((?:^|[^\\])(?:\\{2})*)[$@&%]\{(?:[^{}\r\n]|\{[^{}\r\n]*\})*\}/,lookbehind:!0,inside:{punctuation:/^[$@&%]\{|\}$/}};function i(d,f){var g={};g["section-header"]={pattern:/^ ?\*{3}.+?\*{3}/,alias:"keyword"};for(var y in f)g[y]=f[y];return g.tag={pattern:/([\r\n](?: {2}|\t)[ \t]*)\[[-\w]+\]/,lookbehind:!0,inside:{punctuation:/\[|\]/}},g.variable=a,g.comment=r,{pattern:RegExp(/^ ?\*{3}[ \t]*[ \t]*\*{3}(?:.|[\r\n](?!\*{3}))*/.source.replace(//g,function(){return d}),"im"),alias:"section",inside:g}}var o={pattern:/(\[Documentation\](?: {2}|\t)[ \t]*)(?![ \t]|#)(?:.|(?:\r\n?|\n)[ \t]*\.{3})+/,lookbehind:!0,alias:"string"},l={pattern:/([\r\n] ?)(?!#)(?:\S(?:[ \t]\S)*)+/,lookbehind:!0,alias:"function",inside:{variable:a}},u={pattern:/([\r\n](?: {2}|\t)[ \t]*)(?!\[|\.{3}|#)(?:\S(?:[ \t]\S)*)+/,lookbehind:!0,inside:{variable:a}};n.languages.robotframework={settings:i("Settings",{documentation:{pattern:/([\r\n] ?Documentation(?: {2}|\t)[ \t]*)(?![ \t]|#)(?:.|(?:\r\n?|\n)[ \t]*\.{3})+/,lookbehind:!0,alias:"string"},property:{pattern:/([\r\n] ?)(?!\.{3}|#)(?:\S(?:[ \t]\S)*)+/,lookbehind:!0}}),variables:i("Variables"),"test-cases":i("Test Cases",{"test-name":l,documentation:o,property:u}),keywords:i("Keywords",{"keyword-name":l,documentation:o,property:u}),tasks:i("Tasks",{"task-name":l,documentation:o,property:u}),comment:r},n.languages.robot=n.languages.robotframework})(t)}return QD}var JD,PV;function bBe(){if(PV)return JD;PV=1,JD=e,e.displayName="rust",e.aliases=[];function e(t){(function(n){for(var r=/\/\*(?:[^*/]|\*(?!\/)|\/(?!\*)|)*\*\//.source,a=0;a<2;a++)r=r.replace(//g,function(){return r});r=r.replace(//g,function(){return/[^\s\S]/.source}),n.languages.rust={comment:[{pattern:RegExp(/(^|[^\\])/.source+r),lookbehind:!0,greedy:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],string:{pattern:/b?"(?:\\[\s\S]|[^\\"])*"|b?r(#*)"(?:[^"]|"(?!\1))*"\1/,greedy:!0},char:{pattern:/b?'(?:\\(?:x[0-7][\da-fA-F]|u\{(?:[\da-fA-F]_*){1,6}\}|.)|[^\\\r\n\t'])'/,greedy:!0},attribute:{pattern:/#!?\[(?:[^\[\]"]|"(?:\\[\s\S]|[^\\"])*")*\]/,greedy:!0,alias:"attr-name",inside:{string:null}},"closure-params":{pattern:/([=(,:]\s*|\bmove\s*)\|[^|]*\||\|[^|]*\|(?=\s*(?:\{|->))/,lookbehind:!0,greedy:!0,inside:{"closure-punctuation":{pattern:/^\||\|$/,alias:"punctuation"},rest:null}},"lifetime-annotation":{pattern:/'\w+/,alias:"symbol"},"fragment-specifier":{pattern:/(\$\w+:)[a-z]+/,lookbehind:!0,alias:"punctuation"},variable:/\$\w+/,"function-definition":{pattern:/(\bfn\s+)\w+/,lookbehind:!0,alias:"function"},"type-definition":{pattern:/(\b(?:enum|struct|trait|type|union)\s+)\w+/,lookbehind:!0,alias:"class-name"},"module-declaration":[{pattern:/(\b(?:crate|mod)\s+)[a-z][a-z_\d]*/,lookbehind:!0,alias:"namespace"},{pattern:/(\b(?:crate|self|super)\s*)::\s*[a-z][a-z_\d]*\b(?:\s*::(?:\s*[a-z][a-z_\d]*\s*::)*)?/,lookbehind:!0,alias:"namespace",inside:{punctuation:/::/}}],keyword:[/\b(?:Self|abstract|as|async|await|become|box|break|const|continue|crate|do|dyn|else|enum|extern|final|fn|for|if|impl|in|let|loop|macro|match|mod|move|mut|override|priv|pub|ref|return|self|static|struct|super|trait|try|type|typeof|union|unsafe|unsized|use|virtual|where|while|yield)\b/,/\b(?:bool|char|f(?:32|64)|[ui](?:8|16|32|64|128|size)|str)\b/],function:/\b[a-z_]\w*(?=\s*(?:::\s*<|\())/,macro:{pattern:/\b\w+!/,alias:"property"},constant:/\b[A-Z_][A-Z_\d]+\b/,"class-name":/\b[A-Z]\w*\b/,namespace:{pattern:/(?:\b[a-z][a-z_\d]*\s*::\s*)*\b[a-z][a-z_\d]*\s*::(?!\s*<)/,inside:{punctuation:/::/}},number:/\b(?:0x[\dA-Fa-f](?:_?[\dA-Fa-f])*|0o[0-7](?:_?[0-7])*|0b[01](?:_?[01])*|(?:(?:\d(?:_?\d)*)?\.)?\d(?:_?\d)*(?:[Ee][+-]?\d+)?)(?:_?(?:f32|f64|[iu](?:8|16|32|64|size)?))?\b/,boolean:/\b(?:false|true)\b/,punctuation:/->|\.\.=|\.{1,3}|::|[{}[\];(),:]/,operator:/[-+*\/%!^]=?|=[=>]?|&[&=]?|\|[|=]?|<>?=?|[@?]/},n.languages.rust["closure-params"].inside.rest=n.languages.rust,n.languages.rust.attribute.inside.string=n.languages.rust.string})(t)}return JD}var ZD,AV;function wBe(){if(AV)return ZD;AV=1,ZD=e,e.displayName="sas",e.aliases=[];function e(t){(function(n){var r=/(?:"(?:""|[^"])*"(?!")|'(?:''|[^'])*'(?!'))/.source,a=/\b(?:\d[\da-f]*x|\d+(?:\.\d+)?(?:e[+-]?\d+)?)\b/i,i={pattern:RegExp(r+"[bx]"),alias:"number"},o={pattern:/&[a-z_]\w*/i},l={pattern:/((?:^|\s|=|\())%(?:ABORT|BY|CMS|COPY|DISPLAY|DO|ELSE|END|EVAL|GLOBAL|GO|GOTO|IF|INC|INCLUDE|INDEX|INPUT|KTRIM|LENGTH|LET|LIST|LOCAL|PUT|QKTRIM|QSCAN|QSUBSTR|QSYSFUNC|QUPCASE|RETURN|RUN|SCAN|SUBSTR|SUPERQ|SYMDEL|SYMEXIST|SYMGLOBL|SYMLOCAL|SYSCALL|SYSEVALF|SYSEXEC|SYSFUNC|SYSGET|SYSRPUT|THEN|TO|TSO|UNQUOTE|UNTIL|UPCASE|WHILE|WINDOW)\b/i,lookbehind:!0,alias:"keyword"},u={pattern:/(^|\s)(?:proc\s+\w+|data(?!=)|quit|run)\b/i,alias:"keyword",lookbehind:!0},d=[/\/\*[\s\S]*?\*\//,{pattern:/(^[ \t]*|;\s*)\*[^;]*;/m,lookbehind:!0}],f={pattern:RegExp(r),greedy:!0},g=/[$%@.(){}\[\];,\\]/,y={pattern:/%?\b\w+(?=\()/,alias:"keyword"},h={function:y,"arg-value":{pattern:/(=\s*)[A-Z\.]+/i,lookbehind:!0},operator:/=/,"macro-variable":o,arg:{pattern:/[A-Z]+/i,alias:"keyword"},number:a,"numeric-constant":i,punctuation:g,string:f},v={pattern:/\b(?:format|put)\b=?[\w'$.]+/i,inside:{keyword:/^(?:format|put)(?==)/i,equals:/=/,format:{pattern:/(?:\w|\$\d)+\.\d?/,alias:"number"}}},E={pattern:/\b(?:format|put)\s+[\w']+(?:\s+[$.\w]+)+(?=;)/i,inside:{keyword:/^(?:format|put)/i,format:{pattern:/[\w$]+\.\d?/,alias:"number"}}},T={pattern:/((?:^|\s)=?)(?:catname|checkpoint execute_always|dm|endsas|filename|footnote|%include|libname|%list|lock|missing|options|page|resetline|%run|sasfile|skip|sysecho|title\d?)\b/i,lookbehind:!0,alias:"keyword"},C={pattern:/(^|\s)(?:submit(?:\s+(?:load|norun|parseonly))?|endsubmit)\b/i,lookbehind:!0,alias:"keyword"},k=/aStore|accessControl|aggregation|audio|autotune|bayesianNetClassifier|bioMedImage|boolRule|builtins|cardinality|cdm|clustering|conditionalRandomFields|configuration|copula|countreg|dataDiscovery|dataPreprocess|dataSciencePilot|dataStep|decisionTree|deduplication|deepLearn|deepNeural|deepRnn|ds2|ecm|entityRes|espCluster|explainModel|factmac|fastKnn|fcmpact|fedSql|freqTab|gVarCluster|gam|gleam|graphSemiSupLearn|hiddenMarkovModel|hyperGroup|ica|image|iml|kernalPca|langModel|ldaTopic|loadStreams|mbc|mixed|mlTools|modelPublishing|network|neuralNet|nmf|nonParametricBayes|nonlinear|optNetwork|optimization|panel|pca|percentile|phreg|pls|qkb|qlim|quantreg|recommend|regression|reinforcementLearn|robustPca|ruleMining|sampling|sandwich|sccasl|search(?:Analytics)?|sentimentAnalysis|sequence|session(?:Prop)?|severity|simSystem|simple|smartData|sparkEmbeddedProcess|sparseML|spatialreg|spc|stabilityMonitoring|svDataDescription|svm|table|text(?:Filters|Frequency|Mining|Parse|Rule(?:Develop|Score)|Topic|Util)|timeData|transpose|tsInfo|tsReconcile|uniTimeSeries|varReduce/.source,_={pattern:RegExp(/(^|\s)(?:action\s+)?(?:)\.[a-z]+\b[^;]+/.source.replace(//g,function(){return k}),"i"),lookbehind:!0,inside:{keyword:RegExp(/(?:)\.[a-z]+\b/.source.replace(//g,function(){return k}),"i"),action:{pattern:/(?:action)/i,alias:"keyword"},comment:d,function:y,"arg-value":h["arg-value"],operator:h.operator,argument:h.arg,number:a,"numeric-constant":i,punctuation:g,string:f}},A={pattern:/((?:^|\s)=?)(?:after|analysis|and|array|barchart|barwidth|begingraph|by|call|cas|cbarline|cfill|class(?:lev)?|close|column|computed?|contains|continue|data(?==)|define|delete|describe|document|do\s+over|do|dol|drop|dul|else|end(?:comp|source)?|entryTitle|eval(?:uate)?|exec(?:ute)?|exit|file(?:name)?|fill(?:attrs)?|flist|fnc|function(?:list)?|global|goto|group(?:by)?|headline|headskip|histogram|if|infile|keep|keylabel|keyword|label|layout|leave|legendlabel|length|libname|loadactionset|merge|midpoints|_?null_|name|noobs|nowd|ods|options|or|otherwise|out(?:put)?|over(?:lay)?|plot|print|put|raise|ranexp|rannor|rbreak|retain|return|select|session|sessref|set|source|statgraph|sum|summarize|table|temp|terminate|then\s+do|then|title\d?|to|var|when|where|xaxisopts|y2axisopts|yaxisopts)\b/i,lookbehind:!0};n.languages.sas={datalines:{pattern:/^([ \t]*)(?:cards|(?:data)?lines);[\s\S]+?^[ \t]*;/im,lookbehind:!0,alias:"string",inside:{keyword:{pattern:/^(?:cards|(?:data)?lines)/i},punctuation:/;/}},"proc-sql":{pattern:/(^proc\s+(?:fed)?sql(?:\s+[\w|=]+)?;)[\s\S]+?(?=^(?:proc\s+\w+|data|quit|run);|(?![\s\S]))/im,lookbehind:!0,inside:{sql:{pattern:RegExp(/^[ \t]*(?:select|alter\s+table|(?:create|describe|drop)\s+(?:index|table(?:\s+constraints)?|view)|create\s+unique\s+index|insert\s+into|update)(?:|[^;"'])+;/.source.replace(//g,function(){return r}),"im"),alias:"language-sql",inside:n.languages.sql},"global-statements":T,"sql-statements":{pattern:/(^|\s)(?:disconnect\s+from|begin|commit|exec(?:ute)?|reset|rollback|validate)\b/i,lookbehind:!0,alias:"keyword"},number:a,"numeric-constant":i,punctuation:g,string:f}},"proc-groovy":{pattern:/(^proc\s+groovy(?:\s+[\w|=]+)?;)[\s\S]+?(?=^(?:proc\s+\w+|data|quit|run);|(?![\s\S]))/im,lookbehind:!0,inside:{comment:d,groovy:{pattern:RegExp(/(^[ \t]*submit(?:\s+(?:load|norun|parseonly))?)(?:|[^"'])+?(?=endsubmit;)/.source.replace(//g,function(){return r}),"im"),lookbehind:!0,alias:"language-groovy",inside:n.languages.groovy},keyword:A,"submit-statement":C,"global-statements":T,number:a,"numeric-constant":i,punctuation:g,string:f}},"proc-lua":{pattern:/(^proc\s+lua(?:\s+[\w|=]+)?;)[\s\S]+?(?=^(?:proc\s+\w+|data|quit|run);|(?![\s\S]))/im,lookbehind:!0,inside:{comment:d,lua:{pattern:RegExp(/(^[ \t]*submit(?:\s+(?:load|norun|parseonly))?)(?:|[^"'])+?(?=endsubmit;)/.source.replace(//g,function(){return r}),"im"),lookbehind:!0,alias:"language-lua",inside:n.languages.lua},keyword:A,"submit-statement":C,"global-statements":T,number:a,"numeric-constant":i,punctuation:g,string:f}},"proc-cas":{pattern:/(^proc\s+cas(?:\s+[\w|=]+)?;)[\s\S]+?(?=^(?:proc\s+\w+|quit|data);|(?![\s\S]))/im,lookbehind:!0,inside:{comment:d,"statement-var":{pattern:/((?:^|\s)=?)saveresult\s[^;]+/im,lookbehind:!0,inside:{statement:{pattern:/^saveresult\s+\S+/i,inside:{keyword:/^(?:saveresult)/i}},rest:h}},"cas-actions":_,statement:{pattern:/((?:^|\s)=?)(?:default|(?:un)?set|on|output|upload)[^;]+/im,lookbehind:!0,inside:h},step:u,keyword:A,function:y,format:v,altformat:E,"global-statements":T,number:a,"numeric-constant":i,punctuation:g,string:f}},"proc-args":{pattern:RegExp(/(^proc\s+\w+\s+)(?!\s)(?:[^;"']|)+;/.source.replace(//g,function(){return r}),"im"),lookbehind:!0,inside:h},"macro-keyword":l,"macro-variable":o,"macro-string-functions":{pattern:/((?:^|\s|=))%(?:BQUOTE|NRBQUOTE|NRQUOTE|NRSTR|QUOTE|STR)\(.*?(?:[^%]\))/i,lookbehind:!0,inside:{function:{pattern:/%(?:BQUOTE|NRBQUOTE|NRQUOTE|NRSTR|QUOTE|STR)/i,alias:"keyword"},"macro-keyword":l,"macro-variable":o,"escaped-char":{pattern:/%['"()<>=¬^~;,#]/},punctuation:g}},"macro-declaration":{pattern:/^%macro[^;]+(?=;)/im,inside:{keyword:/%macro/i}},"macro-end":{pattern:/^%mend[^;]+(?=;)/im,inside:{keyword:/%mend/i}},macro:{pattern:/%_\w+(?=\()/,alias:"keyword"},input:{pattern:/\binput\s[-\w\s/*.$&]+;/i,inside:{input:{alias:"keyword",pattern:/^input/i},comment:d,number:a,"numeric-constant":i}},"options-args":{pattern:/(^options)[-'"|/\\<>*+=:()\w\s]*(?=;)/im,lookbehind:!0,inside:h},"cas-actions":_,comment:d,function:y,format:v,altformat:E,"numeric-constant":i,datetime:{pattern:RegExp(r+"(?:dt?|t)"),alias:"number"},string:f,step:u,keyword:A,"operator-keyword":{pattern:/\b(?:eq|ge|gt|in|le|lt|ne|not)\b/i,alias:"operator"},number:a,operator:/\*\*?|\|\|?|!!?|¦¦?|<[>=]?|>[<=]?|[-+\/=&]|[~¬^]=?/,punctuation:g}})(t)}return ZD}var e$,NV;function SBe(){if(NV)return e$;NV=1,e$=e,e.displayName="sass",e.aliases=[];function e(t){(function(n){n.languages.sass=n.languages.extend("css",{comment:{pattern:/^([ \t]*)\/[\/*].*(?:(?:\r?\n|\r)\1[ \t].+)*/m,lookbehind:!0,greedy:!0}}),n.languages.insertBefore("sass","atrule",{"atrule-line":{pattern:/^(?:[ \t]*)[@+=].+/m,greedy:!0,inside:{atrule:/(?:@[\w-]+|[+=])/}}}),delete n.languages.sass.atrule;var r=/\$[-\w]+|#\{\$[-\w]+\}/,a=[/[+*\/%]|[=!]=|<=?|>=?|\b(?:and|not|or)\b/,{pattern:/(\s)-(?=\s)/,lookbehind:!0}];n.languages.insertBefore("sass","property",{"variable-line":{pattern:/^[ \t]*\$.+/m,greedy:!0,inside:{punctuation:/:/,variable:r,operator:a}},"property-line":{pattern:/^[ \t]*(?:[^:\s]+ *:.*|:[^:\s].*)/m,greedy:!0,inside:{property:[/[^:\s]+(?=\s*:)/,{pattern:/(:)[^:\s]+/,lookbehind:!0}],punctuation:/:/,variable:r,operator:a,important:n.languages.sass.important}}}),delete n.languages.sass.property,delete n.languages.sass.important,n.languages.insertBefore("sass","punctuation",{selector:{pattern:/^([ \t]*)\S(?:,[^,\r\n]+|[^,\r\n]*)(?:,[^,\r\n]+)*(?:,(?:\r?\n|\r)\1[ \t]+\S(?:,[^,\r\n]+|[^,\r\n]*)(?:,[^,\r\n]+)*)*/m,lookbehind:!0,greedy:!0}})})(t)}return e$}var t$,MV;function EBe(){if(MV)return t$;MV=1;var e=C4();t$=t,t.displayName="scala",t.aliases=[];function t(n){n.register(e),n.languages.scala=n.languages.extend("java",{"triple-quoted-string":{pattern:/"""[\s\S]*?"""/,greedy:!0,alias:"string"},string:{pattern:/("|')(?:\\.|(?!\1)[^\\\r\n])*\1/,greedy:!0},keyword:/<-|=>|\b(?:abstract|case|catch|class|def|do|else|extends|final|finally|for|forSome|if|implicit|import|lazy|match|new|null|object|override|package|private|protected|return|sealed|self|super|this|throw|trait|try|type|val|var|while|with|yield)\b/,number:/\b0x(?:[\da-f]*\.)?[\da-f]+|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e\d+)?[dfl]?/i,builtin:/\b(?:Any|AnyRef|AnyVal|Boolean|Byte|Char|Double|Float|Int|Long|Nothing|Short|String|Unit)\b/,symbol:/'[^\d\s\\]\w*/}),n.languages.insertBefore("scala","triple-quoted-string",{"string-interpolation":{pattern:/\b[a-z]\w*(?:"""(?:[^$]|\$(?:[^{]|\{(?:[^{}]|\{[^{}]*\})*\}))*?"""|"(?:[^$"\r\n]|\$(?:[^{]|\{(?:[^{}]|\{[^{}]*\})*\}))*")/i,greedy:!0,inside:{id:{pattern:/^\w+/,greedy:!0,alias:"function"},escape:{pattern:/\\\$"|\$[$"]/,greedy:!0,alias:"symbol"},interpolation:{pattern:/\$(?:\w+|\{(?:[^{}]|\{[^{}]*\})*\})/,greedy:!0,inside:{punctuation:/^\$\{?|\}$/,expression:{pattern:/[\s\S]+/,inside:n.languages.scala}}},string:/[\s\S]+/}}}),delete n.languages.scala["class-name"],delete n.languages.scala.function}return t$}var n$,IV;function TBe(){if(IV)return n$;IV=1,n$=e,e.displayName="scss",e.aliases=[];function e(t){t.languages.scss=t.languages.extend("css",{comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?\*\/|\/\/.*)/,lookbehind:!0},atrule:{pattern:/@[\w-](?:\([^()]+\)|[^()\s]|\s+(?!\s))*?(?=\s+[{;])/,inside:{rule:/@[\w-]+/}},url:/(?:[-a-z]+-)?url(?=\()/i,selector:{pattern:/(?=\S)[^@;{}()]?(?:[^@;{}()\s]|\s+(?!\s)|#\{\$[-\w]+\})+(?=\s*\{(?:\}|\s|[^}][^:{}]*[:{][^}]))/,inside:{parent:{pattern:/&/,alias:"important"},placeholder:/%[-\w]+/,variable:/\$[-\w]+|#\{\$[-\w]+\}/}},property:{pattern:/(?:[-\w]|\$[-\w]|#\{\$[-\w]+\})+(?=\s*:)/,inside:{variable:/\$[-\w]+|#\{\$[-\w]+\}/}}}),t.languages.insertBefore("scss","atrule",{keyword:[/@(?:content|debug|each|else(?: if)?|extend|for|forward|function|if|import|include|mixin|return|use|warn|while)\b/i,{pattern:/( )(?:from|through)(?= )/,lookbehind:!0}]}),t.languages.insertBefore("scss","important",{variable:/\$[-\w]+|#\{\$[-\w]+\}/}),t.languages.insertBefore("scss","function",{"module-modifier":{pattern:/\b(?:as|hide|show|with)\b/i,alias:"keyword"},placeholder:{pattern:/%[-\w]+/,alias:"selector"},statement:{pattern:/\B!(?:default|optional)\b/i,alias:"keyword"},boolean:/\b(?:false|true)\b/,null:{pattern:/\bnull\b/,alias:"keyword"},operator:{pattern:/(\s)(?:[-+*\/%]|[=!]=|<=?|>=?|and|not|or)(?=\s)/,lookbehind:!0}}),t.languages.scss.atrule.inside.rest=t.languages.scss}return n$}var r$,DV;function CBe(){if(DV)return r$;DV=1;var e=qre();r$=t,t.displayName="shellSession",t.aliases=[];function t(n){n.register(e),(function(r){var a=[/"(?:\\[\s\S]|\$\([^)]+\)|\$(?!\()|`[^`]+`|[^"\\`$])*"/.source,/'[^']*'/.source,/\$'(?:[^'\\]|\\[\s\S])*'/.source,/<<-?\s*(["']?)(\w+)\1\s[\s\S]*?[\r\n]\2/.source].join("|");r.languages["shell-session"]={command:{pattern:RegExp(/^/.source+"(?:"+(/[^\s@:$#%*!/\\]+@[^\r\n@:$#%*!/\\]+(?::[^\0-\x1F$#%*?"<>:;|]+)?/.source+"|"+/[/~.][^\0-\x1F$#%*?"<>@:;|]*/.source)+")?"+/[$#%](?=\s)/.source+/(?:[^\\\r\n \t'"<$]|[ \t](?:(?!#)|#.*$)|\\(?:[^\r]|\r\n?)|\$(?!')|<(?!<)|<>)+/.source.replace(/<>/g,function(){return a}),"m"),greedy:!0,inside:{info:{pattern:/^[^#$%]+/,alias:"punctuation",inside:{user:/^[^\s@:$#%*!/\\]+@[^\r\n@:$#%*!/\\]+/,punctuation:/:/,path:/[\s\S]+/}},bash:{pattern:/(^[$#%]\s*)\S[\s\S]*/,lookbehind:!0,alias:"language-bash",inside:r.languages.bash},"shell-symbol":{pattern:/^[$#%]/,alias:"important"}}},output:/.(?:.*(?:[\r\n]|.$))*/},r.languages["sh-session"]=r.languages.shellsession=r.languages["shell-session"]})(n)}return r$}var a$,$V;function kBe(){if($V)return a$;$V=1,a$=e,e.displayName="smali",e.aliases=[];function e(t){t.languages.smali={comment:/#.*/,string:{pattern:/"(?:[^\r\n\\"]|\\.)*"|'(?:[^\r\n\\']|\\(?:.|u[\da-fA-F]{4}))'/,greedy:!0},"class-name":{pattern:/(^|[^L])L(?:(?:\w+|`[^`\r\n]*`)\/)*(?:[\w$]+|`[^`\r\n]*`)(?=\s*;)/,lookbehind:!0,inside:{"class-name":{pattern:/(^L|\/)(?:[\w$]+|`[^`\r\n]*`)$/,lookbehind:!0},namespace:{pattern:/^(L)(?:(?:\w+|`[^`\r\n]*`)\/)+/,lookbehind:!0,inside:{punctuation:/\//}},builtin:/^L/}},builtin:[{pattern:/([();\[])[BCDFIJSVZ]+/,lookbehind:!0},{pattern:/([\w$>]:)[BCDFIJSVZ]/,lookbehind:!0}],keyword:[{pattern:/(\.end\s+)[\w-]+/,lookbehind:!0},{pattern:/(^|[^\w.-])\.(?!\d)[\w-]+/,lookbehind:!0},{pattern:/(^|[^\w.-])(?:abstract|annotation|bridge|constructor|enum|final|interface|private|protected|public|runtime|static|synthetic|system|transient)(?![\w.-])/,lookbehind:!0}],function:{pattern:/(^|[^\w.-])(?:\w+|<[\w$-]+>)(?=\()/,lookbehind:!0},field:{pattern:/[\w$]+(?=:)/,alias:"variable"},register:{pattern:/(^|[^\w.-])[vp]\d(?![\w.-])/,lookbehind:!0,alias:"variable"},boolean:{pattern:/(^|[^\w.-])(?:false|true)(?![\w.-])/,lookbehind:!0},number:{pattern:/(^|[^/\w.-])-?(?:NAN|INFINITY|0x(?:[\dA-F]+(?:\.[\dA-F]*)?|\.[\dA-F]+)(?:p[+-]?[\dA-F]+)?|(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?)[dflst]?(?![\w.-])/i,lookbehind:!0},label:{pattern:/(:)\w+/,lookbehind:!0,alias:"property"},operator:/->|\.\.|[\[=]/,punctuation:/[{}(),;:]/}}return a$}var i$,LV;function xBe(){if(LV)return i$;LV=1,i$=e,e.displayName="smalltalk",e.aliases=[];function e(t){t.languages.smalltalk={comment:{pattern:/"(?:""|[^"])*"/,greedy:!0},char:{pattern:/\$./,greedy:!0},string:{pattern:/'(?:''|[^'])*'/,greedy:!0},symbol:/#[\da-z]+|#(?:-|([+\/\\*~<>=@%|&?!])\1?)|#(?=\()/i,"block-arguments":{pattern:/(\[\s*):[^\[|]*\|/,lookbehind:!0,inside:{variable:/:[\da-z]+/i,punctuation:/\|/}},"temporary-variables":{pattern:/\|[^|]+\|/,inside:{variable:/[\da-z]+/i,punctuation:/\|/}},keyword:/\b(?:new|nil|self|super)\b/,boolean:/\b(?:false|true)\b/,number:[/\d+r-?[\dA-Z]+(?:\.[\dA-Z]+)?(?:e-?\d+)?/,/\b\d+(?:\.\d+)?(?:e-?\d+)?/],operator:/[<=]=?|:=|~[~=]|\/\/?|\\\\|>[>=]?|[!^+\-*&|,@]/,punctuation:/[.;:?\[\](){}]/}}return i$}var o$,FV;function _Be(){if(FV)return o$;FV=1;var e=gs();o$=t,t.displayName="smarty",t.aliases=[];function t(n){n.register(e),(function(r){r.languages.smarty={comment:{pattern:/^\{\*[\s\S]*?\*\}/,greedy:!0},"embedded-php":{pattern:/^\{php\}[\s\S]*?\{\/php\}/,greedy:!0,inside:{smarty:{pattern:/^\{php\}|\{\/php\}$/,inside:null},php:{pattern:/[\s\S]+/,alias:"language-php",inside:r.languages.php}}},string:[{pattern:/"(?:\\.|[^"\\\r\n])*"/,greedy:!0,inside:{interpolation:{pattern:/\{[^{}]*\}|`[^`]*`/,inside:{"interpolation-punctuation":{pattern:/^[{`]|[`}]$/,alias:"punctuation"},expression:{pattern:/[\s\S]+/,inside:null}}},variable:/\$\w+/}},{pattern:/'(?:\\.|[^'\\\r\n])*'/,greedy:!0}],keyword:{pattern:/(^\{\/?)[a-z_]\w*\b(?!\()/i,lookbehind:!0,greedy:!0},delimiter:{pattern:/^\{\/?|\}$/,greedy:!0,alias:"punctuation"},number:/\b0x[\dA-Fa-f]+|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[Ee][-+]?\d+)?/,variable:[/\$(?!\d)\w+/,/#(?!\d)\w+#/,{pattern:/(\.|->|\w\s*=)(?!\d)\w+\b(?!\()/,lookbehind:!0},{pattern:/(\[)(?!\d)\w+(?=\])/,lookbehind:!0}],function:{pattern:/(\|\s*)@?[a-z_]\w*|\b[a-z_]\w*(?=\()/i,lookbehind:!0},"attr-name":/\b[a-z_]\w*(?=\s*=)/i,boolean:/\b(?:false|no|off|on|true|yes)\b/,punctuation:/[\[\](){}.,:`]|->/,operator:[/[+\-*\/%]|==?=?|[!<>]=?|&&|\|\|?/,/\bis\s+(?:not\s+)?(?:div|even|odd)(?:\s+by)?\b/,/\b(?:and|eq|gt?e|gt|lt?e|lt|mod|neq?|not|or)\b/]},r.languages.smarty["embedded-php"].inside.smarty.inside=r.languages.smarty,r.languages.smarty.string[0].inside.interpolation.inside.expression.inside=r.languages.smarty;var a=/"(?:\\.|[^"\\\r\n])*"|'(?:\\.|[^'\\\r\n])*'/,i=RegExp(/\{\*[\s\S]*?\*\}/.source+"|"+/\{php\}[\s\S]*?\{\/php\}/.source+"|"+/\{(?:[^{}"']||\{(?:[^{}"']||\{(?:[^{}"']|)*\})*\})*\}/.source.replace(//g,function(){return a.source}),"g");r.hooks.add("before-tokenize",function(o){var l="{literal}",u="{/literal}",d=!1;r.languages["markup-templating"].buildPlaceholders(o,"smarty",i,function(f){return f===u&&(d=!1),d?!1:(f===l&&(d=!0),!0)})}),r.hooks.add("after-tokenize",function(o){r.languages["markup-templating"].tokenizePlaceholders(o,"smarty")})})(n)}return o$}var s$,jV;function OBe(){if(jV)return s$;jV=1,s$=e,e.displayName="sml",e.aliases=["smlnj"];function e(t){(function(n){var r=/\b(?:abstype|and|andalso|as|case|datatype|do|else|end|eqtype|exception|fn|fun|functor|handle|if|in|include|infix|infixr|let|local|nonfix|of|op|open|orelse|raise|rec|sharing|sig|signature|struct|structure|then|type|val|where|while|with|withtype)\b/i;n.languages.sml={comment:/\(\*(?:[^*(]|\*(?!\))|\((?!\*)|\(\*(?:[^*(]|\*(?!\))|\((?!\*))*\*\))*\*\)/,string:{pattern:/#?"(?:[^"\\]|\\.)*"/,greedy:!0},"class-name":[{pattern:RegExp(/((?:^|[^:]):\s*)(?:\s*(?:(?:\*|->)\s*|,\s*(?:(?=)|(?!)\s+)))*/.source.replace(//g,function(){return/\s*(?:[*,]|->)/.source}).replace(//g,function(){return/(?:'[\w']*||\((?:[^()]|\([^()]*\))*\)|\{(?:[^{}]|\{[^{}]*\})*\})(?:\s+)*/.source}).replace(//g,function(){return/(?!)[a-z\d_][\w'.]*/.source}).replace(//g,function(){return r.source}),"i"),lookbehind:!0,greedy:!0,inside:null},{pattern:/((?:^|[^\w'])(?:datatype|exception|functor|signature|structure|type)\s+)[a-z_][\w'.]*/i,lookbehind:!0}],function:{pattern:/((?:^|[^\w'])fun\s+)[a-z_][\w'.]*/i,lookbehind:!0},keyword:r,variable:{pattern:/(^|[^\w'])'[\w']*/,lookbehind:!0},number:/~?\b(?:\d+(?:\.\d+)?(?:e~?\d+)?|0x[\da-f]+)\b/i,word:{pattern:/\b0w(?:\d+|x[\da-f]+)\b/i,alias:"constant"},boolean:/\b(?:false|true)\b/i,operator:/\.\.\.|:[>=:]|=>?|->|[<>]=?|[!+\-*/^#|@~]/,punctuation:/[(){}\[\].:,;]/},n.languages.sml["class-name"][0].inside=n.languages.sml,n.languages.smlnj=n.languages.sml})(t)}return s$}var l$,UV;function RBe(){if(UV)return l$;UV=1,l$=e,e.displayName="solidity",e.aliases=["sol"];function e(t){t.languages.solidity=t.languages.extend("clike",{"class-name":{pattern:/(\b(?:contract|enum|interface|library|new|struct|using)\s+)(?!\d)[\w$]+/,lookbehind:!0},keyword:/\b(?:_|anonymous|as|assembly|assert|break|calldata|case|constant|constructor|continue|contract|default|delete|do|else|emit|enum|event|external|for|from|function|if|import|indexed|inherited|interface|internal|is|let|library|mapping|memory|modifier|new|payable|pragma|private|public|pure|require|returns?|revert|selfdestruct|solidity|storage|struct|suicide|switch|this|throw|using|var|view|while)\b/,operator:/=>|->|:=|=:|\*\*|\+\+|--|\|\||&&|<<=?|>>=?|[-+*/%^&|<>!=]=?|[~?]/}),t.languages.insertBefore("solidity","keyword",{builtin:/\b(?:address|bool|byte|u?int(?:8|16|24|32|40|48|56|64|72|80|88|96|104|112|120|128|136|144|152|160|168|176|184|192|200|208|216|224|232|240|248|256)?|string|bytes(?:[1-9]|[12]\d|3[0-2])?)\b/}),t.languages.insertBefore("solidity","number",{version:{pattern:/([<>]=?|\^)\d+\.\d+\.\d+\b/,lookbehind:!0,alias:"number"}}),t.languages.sol=t.languages.solidity}return l$}var u$,BV;function PBe(){if(BV)return u$;BV=1,u$=e,e.displayName="solutionFile",e.aliases=[];function e(t){(function(n){var r={pattern:/\{[\da-f]{8}-[\da-f]{4}-[\da-f]{4}-[\da-f]{4}-[\da-f]{12}\}/i,alias:"constant",inside:{punctuation:/[{}]/}};n.languages["solution-file"]={comment:{pattern:/#.*/,greedy:!0},string:{pattern:/"[^"\r\n]*"|'[^'\r\n]*'/,greedy:!0,inside:{guid:r}},object:{pattern:/^([ \t]*)(?:([A-Z]\w*)\b(?=.*(?:\r\n?|\n)(?:\1[ \t].*(?:\r\n?|\n))*\1End\2(?=[ \t]*$))|End[A-Z]\w*(?=[ \t]*$))/m,lookbehind:!0,greedy:!0,alias:"keyword"},property:{pattern:/^([ \t]*)(?!\s)[^\r\n"#=()]*[^\s"#=()](?=\s*=)/m,lookbehind:!0,inside:{guid:r}},guid:r,number:/\b\d+(?:\.\d+)*\b/,boolean:/\b(?:FALSE|TRUE)\b/,operator:/=/,punctuation:/[(),]/},n.languages.sln=n.languages["solution-file"]})(t)}return u$}var c$,WV;function ABe(){if(WV)return c$;WV=1;var e=gs();c$=t,t.displayName="soy",t.aliases=[];function t(n){n.register(e),(function(r){var a=/(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,i=/\b\d+(?:\.\d+)?(?:[eE][+-]?\d+)?\b|\b0x[\dA-F]+\b/;r.languages.soy={comment:[/\/\*[\s\S]*?\*\//,{pattern:/(\s)\/\/.*/,lookbehind:!0,greedy:!0}],"command-arg":{pattern:/(\{+\/?\s*(?:alias|call|delcall|delpackage|deltemplate|namespace|template)\s+)\.?[\w.]+/,lookbehind:!0,alias:"string",inside:{punctuation:/\./}},parameter:{pattern:/(\{+\/?\s*@?param\??\s+)\.?[\w.]+/,lookbehind:!0,alias:"variable"},keyword:[{pattern:/(\{+\/?[^\S\r\n]*)(?:\\[nrt]|alias|call|case|css|default|delcall|delpackage|deltemplate|else(?:if)?|fallbackmsg|for(?:each)?|if(?:empty)?|lb|let|literal|msg|namespace|nil|@?param\??|rb|sp|switch|template|xid)/,lookbehind:!0},/\b(?:any|as|attributes|bool|css|float|html|in|int|js|list|map|null|number|string|uri)\b/],delimiter:{pattern:/^\{+\/?|\/?\}+$/,alias:"punctuation"},property:/\w+(?==)/,variable:{pattern:/\$[^\W\d]\w*(?:\??(?:\.\w+|\[[^\]]+\]))*/,inside:{string:{pattern:a,greedy:!0},number:i,punctuation:/[\[\].?]/}},string:{pattern:a,greedy:!0},function:[/\w+(?=\()/,{pattern:/(\|[^\S\r\n]*)\w+/,lookbehind:!0}],boolean:/\b(?:false|true)\b/,number:i,operator:/\?:?|<=?|>=?|==?|!=|[+*/%-]|\b(?:and|not|or)\b/,punctuation:/[{}()\[\]|.,:]/},r.hooks.add("before-tokenize",function(o){var l=/\{\{.+?\}\}|\{.+?\}|\s\/\/.*|\/\*[\s\S]*?\*\//g,u="{literal}",d="{/literal}",f=!1;r.languages["markup-templating"].buildPlaceholders(o,"soy",l,function(g){return g===d&&(f=!1),f?!1:(g===u&&(f=!0),!0)})}),r.hooks.add("after-tokenize",function(o){r.languages["markup-templating"].tokenizePlaceholders(o,"soy")})})(n)}return c$}var d$,zV;function Yre(){if(zV)return d$;zV=1,d$=e,e.displayName="turtle",e.aliases=[];function e(t){t.languages.turtle={comment:{pattern:/#.*/,greedy:!0},"multiline-string":{pattern:/"""(?:(?:""?)?(?:[^"\\]|\\.))*"""|'''(?:(?:''?)?(?:[^'\\]|\\.))*'''/,greedy:!0,alias:"string",inside:{comment:/#.*/}},string:{pattern:/"(?:[^\\"\r\n]|\\.)*"|'(?:[^\\'\r\n]|\\.)*'/,greedy:!0},url:{pattern:/<(?:[^\x00-\x20<>"{}|^`\\]|\\(?:u[\da-fA-F]{4}|U[\da-fA-F]{8}))*>/,greedy:!0,inside:{punctuation:/[<>]/}},function:{pattern:/(?:(?![-.\d\xB7])[-.\w\xB7\xC0-\uFFFD]+)?:(?:(?![-.])(?:[-.:\w\xC0-\uFFFD]|%[\da-f]{2}|\\.)+)?/i,inside:{"local-name":{pattern:/([^:]*:)[\s\S]+/,lookbehind:!0},prefix:{pattern:/[\s\S]+/,inside:{punctuation:/:/}}}},number:/[+-]?\b\d+(?:\.\d*)?(?:e[+-]?\d+)?/i,punctuation:/[{}.,;()[\]]|\^\^/,boolean:/\b(?:false|true)\b/,keyword:[/(?:\ba|@prefix|@base)\b|=/,/\b(?:base|graph|prefix)\b/i],tag:{pattern:/@[a-z]+(?:-[a-z\d]+)*/i,inside:{punctuation:/@/}}},t.languages.trig=t.languages.turtle}return d$}var f$,qV;function NBe(){if(qV)return f$;qV=1;var e=Yre();f$=t,t.displayName="sparql",t.aliases=["rq"];function t(n){n.register(e),n.languages.sparql=n.languages.extend("turtle",{boolean:/\b(?:false|true)\b/i,variable:{pattern:/[?$]\w+/,greedy:!0}}),n.languages.insertBefore("sparql","punctuation",{keyword:[/\b(?:A|ADD|ALL|AS|ASC|ASK|BNODE|BY|CLEAR|CONSTRUCT|COPY|CREATE|DATA|DEFAULT|DELETE|DESC|DESCRIBE|DISTINCT|DROP|EXISTS|FILTER|FROM|GROUP|HAVING|INSERT|INTO|LIMIT|LOAD|MINUS|MOVE|NAMED|NOT|NOW|OFFSET|OPTIONAL|ORDER|RAND|REDUCED|SELECT|SEPARATOR|SERVICE|SILENT|STRUUID|UNION|USING|UUID|VALUES|WHERE)\b/i,/\b(?:ABS|AVG|BIND|BOUND|CEIL|COALESCE|CONCAT|CONTAINS|COUNT|DATATYPE|DAY|ENCODE_FOR_URI|FLOOR|GROUP_CONCAT|HOURS|IF|IRI|isBLANK|isIRI|isLITERAL|isNUMERIC|isURI|LANG|LANGMATCHES|LCASE|MAX|MD5|MIN|MINUTES|MONTH|REGEX|REPLACE|ROUND|sameTerm|SAMPLE|SECONDS|SHA1|SHA256|SHA384|SHA512|STR|STRAFTER|STRBEFORE|STRDT|STRENDS|STRLANG|STRLEN|STRSTARTS|SUBSTR|SUM|TIMEZONE|TZ|UCASE|URI|YEAR)\b(?=\s*\()/i,/\b(?:BASE|GRAPH|PREFIX)\b/i]}),n.languages.rq=n.languages.sparql}return f$}var p$,HV;function MBe(){if(HV)return p$;HV=1,p$=e,e.displayName="splunkSpl",e.aliases=[];function e(t){t.languages["splunk-spl"]={comment:/`comment\("(?:\\.|[^\\"])*"\)`/,string:{pattern:/"(?:\\.|[^\\"])*"/,greedy:!0},keyword:/\b(?:abstract|accum|addcoltotals|addinfo|addtotals|analyzefields|anomalies|anomalousvalue|anomalydetection|append|appendcols|appendcsv|appendlookup|appendpipe|arules|associate|audit|autoregress|bin|bucket|bucketdir|chart|cluster|cofilter|collect|concurrency|contingency|convert|correlate|datamodel|dbinspect|dedup|delete|delta|diff|erex|eval|eventcount|eventstats|extract|fieldformat|fields|fieldsummary|filldown|fillnull|findtypes|folderize|foreach|format|from|gauge|gentimes|geom|geomfilter|geostats|head|highlight|history|iconify|input|inputcsv|inputlookup|iplocation|join|kmeans|kv|kvform|loadjob|localize|localop|lookup|makecontinuous|makemv|makeresults|map|mcollect|metadata|metasearch|meventcollect|mstats|multikv|multisearch|mvcombine|mvexpand|nomv|outlier|outputcsv|outputlookup|outputtext|overlap|pivot|predict|rangemap|rare|regex|relevancy|reltime|rename|replace|rest|return|reverse|rex|rtorder|run|savedsearch|script|scrub|search|searchtxn|selfjoin|sendemail|set|setfields|sichart|sirare|sistats|sitimechart|sitop|sort|spath|stats|strcat|streamstats|table|tags|tail|timechart|timewrap|top|transaction|transpose|trendline|tscollect|tstats|typeahead|typelearner|typer|union|uniq|untable|where|x11|xmlkv|xmlunescape|xpath|xyseries)\b/i,"operator-word":{pattern:/\b(?:and|as|by|not|or|xor)\b/i,alias:"operator"},function:/\b\w+(?=\s*\()/,property:/\b\w+(?=\s*=(?!=))/,date:{pattern:/\b\d{1,2}\/\d{1,2}\/\d{1,4}(?:(?::\d{1,2}){3})?\b/,alias:"number"},number:/\b\d+(?:\.\d+)?\b/,boolean:/\b(?:f|false|t|true)\b/i,operator:/[<>=]=?|[-+*/%|]/,punctuation:/[()[\],]/}}return p$}var h$,VV;function IBe(){if(VV)return h$;VV=1,h$=e,e.displayName="sqf",e.aliases=[];function e(t){t.languages.sqf=t.languages.extend("clike",{string:{pattern:/"(?:(?:"")?[^"])*"(?!")|'(?:[^'])*'/,greedy:!0},keyword:/\b(?:breakOut|breakTo|call|case|catch|default|do|echo|else|execFSM|execVM|exitWith|for|forEach|forEachMember|forEachMemberAgent|forEachMemberTeam|from|goto|if|nil|preprocessFile|preprocessFileLineNumbers|private|scopeName|spawn|step|switch|then|throw|to|try|while|with)\b/i,boolean:/\b(?:false|true)\b/i,function:/\b(?:abs|accTime|acos|action|actionIDs|actionKeys|actionKeysImages|actionKeysNames|actionKeysNamesArray|actionName|actionParams|activateAddons|activatedAddons|activateKey|add3DENConnection|add3DENEventHandler|add3DENLayer|addAction|addBackpack|addBackpackCargo|addBackpackCargoGlobal|addBackpackGlobal|addCamShake|addCuratorAddons|addCuratorCameraArea|addCuratorEditableObjects|addCuratorEditingArea|addCuratorPoints|addEditorObject|addEventHandler|addForce|addForceGeneratorRTD|addGoggles|addGroupIcon|addHandgunItem|addHeadgear|addItem|addItemCargo|addItemCargoGlobal|addItemPool|addItemToBackpack|addItemToUniform|addItemToVest|addLiveStats|addMagazine|addMagazineAmmoCargo|addMagazineCargo|addMagazineCargoGlobal|addMagazineGlobal|addMagazinePool|addMagazines|addMagazineTurret|addMenu|addMenuItem|addMissionEventHandler|addMPEventHandler|addMusicEventHandler|addOwnedMine|addPlayerScores|addPrimaryWeaponItem|addPublicVariableEventHandler|addRating|addResources|addScore|addScoreSide|addSecondaryWeaponItem|addSwitchableUnit|addTeamMember|addToRemainsCollector|addTorque|addUniform|addVehicle|addVest|addWaypoint|addWeapon|addWeaponCargo|addWeaponCargoGlobal|addWeaponGlobal|addWeaponItem|addWeaponPool|addWeaponTurret|admin|agent|agents|AGLToASL|aimedAtTarget|aimPos|airDensityCurveRTD|airDensityRTD|airplaneThrottle|airportSide|AISFinishHeal|alive|all3DENEntities|allAirports|allControls|allCurators|allCutLayers|allDead|allDeadMen|allDisplays|allGroups|allMapMarkers|allMines|allMissionObjects|allow3DMode|allowCrewInImmobile|allowCuratorLogicIgnoreAreas|allowDamage|allowDammage|allowFileOperations|allowFleeing|allowGetIn|allowSprint|allPlayers|allSimpleObjects|allSites|allTurrets|allUnits|allUnitsUAV|allVariables|ammo|ammoOnPylon|animate|animateBay|animateDoor|animatePylon|animateSource|animationNames|animationPhase|animationSourcePhase|animationState|append|apply|armoryPoints|arrayIntersect|asin|ASLToAGL|ASLToATL|assert|assignAsCargo|assignAsCargoIndex|assignAsCommander|assignAsDriver|assignAsGunner|assignAsTurret|assignCurator|assignedCargo|assignedCommander|assignedDriver|assignedGunner|assignedItems|assignedTarget|assignedTeam|assignedVehicle|assignedVehicleRole|assignItem|assignTeam|assignToAirport|atan|atan2|atg|ATLToASL|attachedObject|attachedObjects|attachedTo|attachObject|attachTo|attackEnabled|backpack|backpackCargo|backpackContainer|backpackItems|backpackMagazines|backpackSpaceFor|behaviour|benchmark|binocular|blufor|boundingBox|boundingBoxReal|boundingCenter|briefingName|buildingExit|buildingPos|buldozer_EnableRoadDiag|buldozer_IsEnabledRoadDiag|buldozer_LoadNewRoads|buldozer_reloadOperMap|buttonAction|buttonSetAction|cadetMode|callExtension|camCommand|camCommit|camCommitPrepared|camCommitted|camConstuctionSetParams|camCreate|camDestroy|cameraEffect|cameraEffectEnableHUD|cameraInterest|cameraOn|cameraView|campaignConfigFile|camPreload|camPreloaded|camPrepareBank|camPrepareDir|camPrepareDive|camPrepareFocus|camPrepareFov|camPrepareFovRange|camPreparePos|camPrepareRelPos|camPrepareTarget|camSetBank|camSetDir|camSetDive|camSetFocus|camSetFov|camSetFovRange|camSetPos|camSetRelPos|camSetTarget|camTarget|camUseNVG|canAdd|canAddItemToBackpack|canAddItemToUniform|canAddItemToVest|cancelSimpleTaskDestination|canFire|canMove|canSlingLoad|canStand|canSuspend|canTriggerDynamicSimulation|canUnloadInCombat|canVehicleCargo|captive|captiveNum|cbChecked|cbSetChecked|ceil|channelEnabled|cheatsEnabled|checkAIFeature|checkVisibility|civilian|className|clear3DENAttribute|clear3DENInventory|clearAllItemsFromBackpack|clearBackpackCargo|clearBackpackCargoGlobal|clearForcesRTD|clearGroupIcons|clearItemCargo|clearItemCargoGlobal|clearItemPool|clearMagazineCargo|clearMagazineCargoGlobal|clearMagazinePool|clearOverlay|clearRadio|clearVehicleInit|clearWeaponCargo|clearWeaponCargoGlobal|clearWeaponPool|clientOwner|closeDialog|closeDisplay|closeOverlay|collapseObjectTree|collect3DENHistory|collectiveRTD|combatMode|commandArtilleryFire|commandChat|commander|commandFire|commandFollow|commandFSM|commandGetOut|commandingMenu|commandMove|commandRadio|commandStop|commandSuppressiveFire|commandTarget|commandWatch|comment|commitOverlay|compile|compileFinal|completedFSM|composeText|configClasses|configFile|configHierarchy|configName|configNull|configProperties|configSourceAddonList|configSourceMod|configSourceModList|confirmSensorTarget|connectTerminalToUAV|controlNull|controlsGroupCtrl|copyFromClipboard|copyToClipboard|copyWaypoints|cos|count|countEnemy|countFriendly|countSide|countType|countUnknown|create3DENComposition|create3DENEntity|createAgent|createCenter|createDialog|createDiaryLink|createDiaryRecord|createDiarySubject|createDisplay|createGearDialog|createGroup|createGuardedPoint|createLocation|createMarker|createMarkerLocal|createMenu|createMine|createMissionDisplay|createMPCampaignDisplay|createSimpleObject|createSimpleTask|createSite|createSoundSource|createTask|createTeam|createTrigger|createUnit|createVehicle|createVehicleCrew|createVehicleLocal|crew|ctAddHeader|ctAddRow|ctClear|ctCurSel|ctData|ctFindHeaderRows|ctFindRowHeader|ctHeaderControls|ctHeaderCount|ctRemoveHeaders|ctRemoveRows|ctrlActivate|ctrlAddEventHandler|ctrlAngle|ctrlAutoScrollDelay|ctrlAutoScrollRewind|ctrlAutoScrollSpeed|ctrlChecked|ctrlClassName|ctrlCommit|ctrlCommitted|ctrlCreate|ctrlDelete|ctrlEnable|ctrlEnabled|ctrlFade|ctrlHTMLLoaded|ctrlIDC|ctrlIDD|ctrlMapAnimAdd|ctrlMapAnimClear|ctrlMapAnimCommit|ctrlMapAnimDone|ctrlMapCursor|ctrlMapMouseOver|ctrlMapScale|ctrlMapScreenToWorld|ctrlMapWorldToScreen|ctrlModel|ctrlModelDirAndUp|ctrlModelScale|ctrlParent|ctrlParentControlsGroup|ctrlPosition|ctrlRemoveAllEventHandlers|ctrlRemoveEventHandler|ctrlScale|ctrlSetActiveColor|ctrlSetAngle|ctrlSetAutoScrollDelay|ctrlSetAutoScrollRewind|ctrlSetAutoScrollSpeed|ctrlSetBackgroundColor|ctrlSetChecked|ctrlSetDisabledColor|ctrlSetEventHandler|ctrlSetFade|ctrlSetFocus|ctrlSetFont|ctrlSetFontH1|ctrlSetFontH1B|ctrlSetFontH2|ctrlSetFontH2B|ctrlSetFontH3|ctrlSetFontH3B|ctrlSetFontH4|ctrlSetFontH4B|ctrlSetFontH5|ctrlSetFontH5B|ctrlSetFontH6|ctrlSetFontH6B|ctrlSetFontHeight|ctrlSetFontHeightH1|ctrlSetFontHeightH2|ctrlSetFontHeightH3|ctrlSetFontHeightH4|ctrlSetFontHeightH5|ctrlSetFontHeightH6|ctrlSetFontHeightSecondary|ctrlSetFontP|ctrlSetFontPB|ctrlSetFontSecondary|ctrlSetForegroundColor|ctrlSetModel|ctrlSetModelDirAndUp|ctrlSetModelScale|ctrlSetPixelPrecision|ctrlSetPosition|ctrlSetScale|ctrlSetStructuredText|ctrlSetText|ctrlSetTextColor|ctrlSetTextColorSecondary|ctrlSetTextSecondary|ctrlSetTooltip|ctrlSetTooltipColorBox|ctrlSetTooltipColorShade|ctrlSetTooltipColorText|ctrlShow|ctrlShown|ctrlText|ctrlTextHeight|ctrlTextSecondary|ctrlTextWidth|ctrlType|ctrlVisible|ctRowControls|ctRowCount|ctSetCurSel|ctSetData|ctSetHeaderTemplate|ctSetRowTemplate|ctSetValue|ctValue|curatorAddons|curatorCamera|curatorCameraArea|curatorCameraAreaCeiling|curatorCoef|curatorEditableObjects|curatorEditingArea|curatorEditingAreaType|curatorMouseOver|curatorPoints|curatorRegisteredObjects|curatorSelected|curatorWaypointCost|current3DENOperation|currentChannel|currentCommand|currentMagazine|currentMagazineDetail|currentMagazineDetailTurret|currentMagazineTurret|currentMuzzle|currentNamespace|currentTask|currentTasks|currentThrowable|currentVisionMode|currentWaypoint|currentWeapon|currentWeaponMode|currentWeaponTurret|currentZeroing|cursorObject|cursorTarget|customChat|customRadio|cutFadeOut|cutObj|cutRsc|cutText|damage|date|dateToNumber|daytime|deActivateKey|debriefingText|debugFSM|debugLog|deg|delete3DENEntities|deleteAt|deleteCenter|deleteCollection|deleteEditorObject|deleteGroup|deleteGroupWhenEmpty|deleteIdentity|deleteLocation|deleteMarker|deleteMarkerLocal|deleteRange|deleteResources|deleteSite|deleteStatus|deleteTeam|deleteVehicle|deleteVehicleCrew|deleteWaypoint|detach|detectedMines|diag_activeMissionFSMs|diag_activeScripts|diag_activeSQFScripts|diag_activeSQSScripts|diag_captureFrame|diag_captureFrameToFile|diag_captureSlowFrame|diag_codePerformance|diag_drawMode|diag_dynamicSimulationEnd|diag_enable|diag_enabled|diag_fps|diag_fpsMin|diag_frameNo|diag_lightNewLoad|diag_list|diag_log|diag_logSlowFrame|diag_mergeConfigFile|diag_recordTurretLimits|diag_setLightNew|diag_tickTime|diag_toggle|dialog|diarySubjectExists|didJIP|didJIPOwner|difficulty|difficultyEnabled|difficultyEnabledRTD|difficultyOption|direction|directSay|disableAI|disableCollisionWith|disableConversation|disableDebriefingStats|disableMapIndicators|disableNVGEquipment|disableRemoteSensors|disableSerialization|disableTIEquipment|disableUAVConnectability|disableUserInput|displayAddEventHandler|displayCtrl|displayNull|displayParent|displayRemoveAllEventHandlers|displayRemoveEventHandler|displaySetEventHandler|dissolveTeam|distance|distance2D|distanceSqr|distributionRegion|do3DENAction|doArtilleryFire|doFire|doFollow|doFSM|doGetOut|doMove|doorPhase|doStop|doSuppressiveFire|doTarget|doWatch|drawArrow|drawEllipse|drawIcon|drawIcon3D|drawLine|drawLine3D|drawLink|drawLocation|drawPolygon|drawRectangle|drawTriangle|driver|drop|dynamicSimulationDistance|dynamicSimulationDistanceCoef|dynamicSimulationEnabled|dynamicSimulationSystemEnabled|east|edit3DENMissionAttributes|editObject|editorSetEventHandler|effectiveCommander|emptyPositions|enableAI|enableAIFeature|enableAimPrecision|enableAttack|enableAudioFeature|enableAutoStartUpRTD|enableAutoTrimRTD|enableCamShake|enableCaustics|enableChannel|enableCollisionWith|enableCopilot|enableDebriefingStats|enableDiagLegend|enableDynamicSimulation|enableDynamicSimulationSystem|enableEndDialog|enableEngineArtillery|enableEnvironment|enableFatigue|enableGunLights|enableInfoPanelComponent|enableIRLasers|enableMimics|enablePersonTurret|enableRadio|enableReload|enableRopeAttach|enableSatNormalOnDetail|enableSaving|enableSentences|enableSimulation|enableSimulationGlobal|enableStamina|enableStressDamage|enableTeamSwitch|enableTraffic|enableUAVConnectability|enableUAVWaypoints|enableVehicleCargo|enableVehicleSensor|enableWeaponDisassembly|endl|endLoadingScreen|endMission|engineOn|enginesIsOnRTD|enginesPowerRTD|enginesRpmRTD|enginesTorqueRTD|entities|environmentEnabled|estimatedEndServerTime|estimatedTimeLeft|evalObjectArgument|everyBackpack|everyContainer|exec|execEditorScript|exp|expectedDestination|exportJIPMessages|eyeDirection|eyePos|face|faction|fadeMusic|fadeRadio|fadeSound|fadeSpeech|failMission|fillWeaponsFromPool|find|findCover|findDisplay|findEditorObject|findEmptyPosition|findEmptyPositionReady|findIf|findNearestEnemy|finishMissionInit|finite|fire|fireAtTarget|firstBackpack|flag|flagAnimationPhase|flagOwner|flagSide|flagTexture|fleeing|floor|flyInHeight|flyInHeightASL|fog|fogForecast|fogParams|forceAddUniform|forceAtPositionRTD|forcedMap|forceEnd|forceFlagTexture|forceFollowRoad|forceGeneratorRTD|forceMap|forceRespawn|forceSpeed|forceWalk|forceWeaponFire|forceWeatherChange|forgetTarget|format|formation|formationDirection|formationLeader|formationMembers|formationPosition|formationTask|formatText|formLeader|freeLook|fromEditor|fuel|fullCrew|gearIDCAmmoCount|gearSlotAmmoCount|gearSlotData|get3DENActionState|get3DENAttribute|get3DENCamera|get3DENConnections|get3DENEntity|get3DENEntityID|get3DENGrid|get3DENIconsVisible|get3DENLayerEntities|get3DENLinesVisible|get3DENMissionAttribute|get3DENMouseOver|get3DENSelected|getAimingCoef|getAllEnvSoundControllers|getAllHitPointsDamage|getAllOwnedMines|getAllSoundControllers|getAmmoCargo|getAnimAimPrecision|getAnimSpeedCoef|getArray|getArtilleryAmmo|getArtilleryComputerSettings|getArtilleryETA|getAssignedCuratorLogic|getAssignedCuratorUnit|getBackpackCargo|getBleedingRemaining|getBurningValue|getCameraViewDirection|getCargoIndex|getCenterOfMass|getClientState|getClientStateNumber|getCompatiblePylonMagazines|getConnectedUAV|getContainerMaxLoad|getCursorObjectParams|getCustomAimCoef|getDammage|getDescription|getDir|getDirVisual|getDLCAssetsUsage|getDLCAssetsUsageByName|getDLCs|getDLCUsageTime|getEditorCamera|getEditorMode|getEditorObjectScope|getElevationOffset|getEngineTargetRpmRTD|getEnvSoundController|getFatigue|getFieldManualStartPage|getForcedFlagTexture|getFriend|getFSMVariable|getFuelCargo|getGroupIcon|getGroupIconParams|getGroupIcons|getHideFrom|getHit|getHitIndex|getHitPointDamage|getItemCargo|getMagazineCargo|getMarkerColor|getMarkerPos|getMarkerSize|getMarkerType|getMass|getMissionConfig|getMissionConfigValue|getMissionDLCs|getMissionLayerEntities|getMissionLayers|getModelInfo|getMousePosition|getMusicPlayedTime|getNumber|getObjectArgument|getObjectChildren|getObjectDLC|getObjectMaterials|getObjectProxy|getObjectTextures|getObjectType|getObjectViewDistance|getOxygenRemaining|getPersonUsedDLCs|getPilotCameraDirection|getPilotCameraPosition|getPilotCameraRotation|getPilotCameraTarget|getPlateNumber|getPlayerChannel|getPlayerScores|getPlayerUID|getPlayerUIDOld|getPos|getPosASL|getPosASLVisual|getPosASLW|getPosATL|getPosATLVisual|getPosVisual|getPosWorld|getPylonMagazines|getRelDir|getRelPos|getRemoteSensorsDisabled|getRepairCargo|getResolution|getRotorBrakeRTD|getShadowDistance|getShotParents|getSlingLoad|getSoundController|getSoundControllerResult|getSpeed|getStamina|getStatValue|getSuppression|getTerrainGrid|getTerrainHeightASL|getText|getTotalDLCUsageTime|getTrimOffsetRTD|getUnitLoadout|getUnitTrait|getUserMFDText|getUserMFDValue|getVariable|getVehicleCargo|getWeaponCargo|getWeaponSway|getWingsOrientationRTD|getWingsPositionRTD|getWPPos|glanceAt|globalChat|globalRadio|goggles|group|groupChat|groupFromNetId|groupIconSelectable|groupIconsVisible|groupId|groupOwner|groupRadio|groupSelectedUnits|groupSelectUnit|grpNull|gunner|gusts|halt|handgunItems|handgunMagazine|handgunWeapon|handsHit|hasInterface|hasPilotCamera|hasWeapon|hcAllGroups|hcGroupParams|hcLeader|hcRemoveAllGroups|hcRemoveGroup|hcSelected|hcSelectGroup|hcSetGroup|hcShowBar|hcShownBar|headgear|hideBody|hideObject|hideObjectGlobal|hideSelection|hint|hintC|hintCadet|hintSilent|hmd|hostMission|htmlLoad|HUDMovementLevels|humidity|image|importAllGroups|importance|in|inArea|inAreaArray|incapacitatedState|independent|inflame|inflamed|infoPanel|infoPanelComponentEnabled|infoPanelComponents|infoPanels|inGameUISetEventHandler|inheritsFrom|initAmbientLife|inPolygon|inputAction|inRangeOfArtillery|insertEditorObject|intersect|is3DEN|is3DENMultiplayer|isAbleToBreathe|isAgent|isAimPrecisionEnabled|isArray|isAutoHoverOn|isAutonomous|isAutoStartUpEnabledRTD|isAutotest|isAutoTrimOnRTD|isBleeding|isBurning|isClass|isCollisionLightOn|isCopilotEnabled|isDamageAllowed|isDedicated|isDLCAvailable|isEngineOn|isEqualTo|isEqualType|isEqualTypeAll|isEqualTypeAny|isEqualTypeArray|isEqualTypeParams|isFilePatchingEnabled|isFlashlightOn|isFlatEmpty|isForcedWalk|isFormationLeader|isGroupDeletedWhenEmpty|isHidden|isInRemainsCollector|isInstructorFigureEnabled|isIRLaserOn|isKeyActive|isKindOf|isLaserOn|isLightOn|isLocalized|isManualFire|isMarkedForCollection|isMultiplayer|isMultiplayerSolo|isNil|isNull|isNumber|isObjectHidden|isObjectRTD|isOnRoad|isPipEnabled|isPlayer|isRealTime|isRemoteExecuted|isRemoteExecutedJIP|isServer|isShowing3DIcons|isSimpleObject|isSprintAllowed|isStaminaEnabled|isSteamMission|isStreamFriendlyUIEnabled|isStressDamageEnabled|isText|isTouchingGround|isTurnedOut|isTutHintsEnabled|isUAVConnectable|isUAVConnected|isUIContext|isUniformAllowed|isVehicleCargo|isVehicleRadarOn|isVehicleSensorEnabled|isWalking|isWeaponDeployed|isWeaponRested|itemCargo|items|itemsWithMagazines|join|joinAs|joinAsSilent|joinSilent|joinString|kbAddDatabase|kbAddDatabaseTargets|kbAddTopic|kbHasTopic|kbReact|kbRemoveTopic|kbTell|kbWasSaid|keyImage|keyName|knowsAbout|land|landAt|landResult|language|laserTarget|lbAdd|lbClear|lbColor|lbColorRight|lbCurSel|lbData|lbDelete|lbIsSelected|lbPicture|lbPictureRight|lbSelection|lbSetColor|lbSetColorRight|lbSetCurSel|lbSetData|lbSetPicture|lbSetPictureColor|lbSetPictureColorDisabled|lbSetPictureColorSelected|lbSetPictureRight|lbSetPictureRightColor|lbSetPictureRightColorDisabled|lbSetPictureRightColorSelected|lbSetSelectColor|lbSetSelectColorRight|lbSetSelected|lbSetText|lbSetTextRight|lbSetTooltip|lbSetValue|lbSize|lbSort|lbSortByValue|lbText|lbTextRight|lbValue|leader|leaderboardDeInit|leaderboardGetRows|leaderboardInit|leaderboardRequestRowsFriends|leaderboardRequestRowsGlobal|leaderboardRequestRowsGlobalAroundUser|leaderboardsRequestUploadScore|leaderboardsRequestUploadScoreKeepBest|leaderboardState|leaveVehicle|libraryCredits|libraryDisclaimers|lifeState|lightAttachObject|lightDetachObject|lightIsOn|lightnings|limitSpeed|linearConversion|lineBreak|lineIntersects|lineIntersectsObjs|lineIntersectsSurfaces|lineIntersectsWith|linkItem|list|listObjects|listRemoteTargets|listVehicleSensors|ln|lnbAddArray|lnbAddColumn|lnbAddRow|lnbClear|lnbColor|lnbColorRight|lnbCurSelRow|lnbData|lnbDeleteColumn|lnbDeleteRow|lnbGetColumnsPosition|lnbPicture|lnbPictureRight|lnbSetColor|lnbSetColorRight|lnbSetColumnsPos|lnbSetCurSelRow|lnbSetData|lnbSetPicture|lnbSetPictureColor|lnbSetPictureColorRight|lnbSetPictureColorSelected|lnbSetPictureColorSelectedRight|lnbSetPictureRight|lnbSetText|lnbSetTextRight|lnbSetValue|lnbSize|lnbSort|lnbSortByValue|lnbText|lnbTextRight|lnbValue|load|loadAbs|loadBackpack|loadFile|loadGame|loadIdentity|loadMagazine|loadOverlay|loadStatus|loadUniform|loadVest|local|localize|locationNull|locationPosition|lock|lockCameraTo|lockCargo|lockDriver|locked|lockedCargo|lockedDriver|lockedTurret|lockIdentity|lockTurret|lockWP|log|logEntities|logNetwork|logNetworkTerminate|lookAt|lookAtPos|magazineCargo|magazines|magazinesAllTurrets|magazinesAmmo|magazinesAmmoCargo|magazinesAmmoFull|magazinesDetail|magazinesDetailBackpack|magazinesDetailUniform|magazinesDetailVest|magazinesTurret|magazineTurretAmmo|mapAnimAdd|mapAnimClear|mapAnimCommit|mapAnimDone|mapCenterOnCamera|mapGridPosition|markAsFinishedOnSteam|markerAlpha|markerBrush|markerColor|markerDir|markerPos|markerShape|markerSize|markerText|markerType|max|members|menuAction|menuAdd|menuChecked|menuClear|menuCollapse|menuData|menuDelete|menuEnable|menuEnabled|menuExpand|menuHover|menuPicture|menuSetAction|menuSetCheck|menuSetData|menuSetPicture|menuSetValue|menuShortcut|menuShortcutText|menuSize|menuSort|menuText|menuURL|menuValue|min|mineActive|mineDetectedBy|missionConfigFile|missionDifficulty|missionName|missionNamespace|missionStart|missionVersion|modelToWorld|modelToWorldVisual|modelToWorldVisualWorld|modelToWorldWorld|modParams|moonIntensity|moonPhase|morale|move|move3DENCamera|moveInAny|moveInCargo|moveInCommander|moveInDriver|moveInGunner|moveInTurret|moveObjectToEnd|moveOut|moveTime|moveTo|moveToCompleted|moveToFailed|musicVolume|name|nameSound|nearEntities|nearestBuilding|nearestLocation|nearestLocations|nearestLocationWithDubbing|nearestObject|nearestObjects|nearestTerrainObjects|nearObjects|nearObjectsReady|nearRoads|nearSupplies|nearTargets|needReload|netId|netObjNull|newOverlay|nextMenuItemIndex|nextWeatherChange|nMenuItems|numberOfEnginesRTD|numberToDate|objectCurators|objectFromNetId|objectParent|objNull|objStatus|onBriefingGear|onBriefingGroup|onBriefingNotes|onBriefingPlan|onBriefingTeamSwitch|onCommandModeChanged|onDoubleClick|onEachFrame|onGroupIconClick|onGroupIconOverEnter|onGroupIconOverLeave|onHCGroupSelectionChanged|onMapSingleClick|onPlayerConnected|onPlayerDisconnected|onPreloadFinished|onPreloadStarted|onShowNewObject|onTeamSwitch|openCuratorInterface|openDLCPage|openDSInterface|openMap|openSteamApp|openYoutubeVideo|opfor|orderGetIn|overcast|overcastForecast|owner|param|params|parseNumber|parseSimpleArray|parseText|parsingNamespace|particlesQuality|pi|pickWeaponPool|pitch|pixelGrid|pixelGridBase|pixelGridNoUIScale|pixelH|pixelW|playableSlotsNumber|playableUnits|playAction|playActionNow|player|playerRespawnTime|playerSide|playersNumber|playGesture|playMission|playMove|playMoveNow|playMusic|playScriptedMission|playSound|playSound3D|position|positionCameraToWorld|posScreenToWorld|posWorldToScreen|ppEffectAdjust|ppEffectCommit|ppEffectCommitted|ppEffectCreate|ppEffectDestroy|ppEffectEnable|ppEffectEnabled|ppEffectForceInNVG|precision|preloadCamera|preloadObject|preloadSound|preloadTitleObj|preloadTitleRsc|primaryWeapon|primaryWeaponItems|primaryWeaponMagazine|priority|processDiaryLink|processInitCommands|productVersion|profileName|profileNamespace|profileNameSteam|progressLoadingScreen|progressPosition|progressSetPosition|publicVariable|publicVariableClient|publicVariableServer|pushBack|pushBackUnique|putWeaponPool|queryItemsPool|queryMagazinePool|queryWeaponPool|rad|radioChannelAdd|radioChannelCreate|radioChannelRemove|radioChannelSetCallSign|radioChannelSetLabel|radioVolume|rain|rainbow|random|rank|rankId|rating|rectangular|registeredTasks|registerTask|reload|reloadEnabled|remoteControl|remoteExec|remoteExecCall|remoteExecutedOwner|remove3DENConnection|remove3DENEventHandler|remove3DENLayer|removeAction|removeAll3DENEventHandlers|removeAllActions|removeAllAssignedItems|removeAllContainers|removeAllCuratorAddons|removeAllCuratorCameraAreas|removeAllCuratorEditingAreas|removeAllEventHandlers|removeAllHandgunItems|removeAllItems|removeAllItemsWithMagazines|removeAllMissionEventHandlers|removeAllMPEventHandlers|removeAllMusicEventHandlers|removeAllOwnedMines|removeAllPrimaryWeaponItems|removeAllWeapons|removeBackpack|removeBackpackGlobal|removeCuratorAddons|removeCuratorCameraArea|removeCuratorEditableObjects|removeCuratorEditingArea|removeDrawIcon|removeDrawLinks|removeEventHandler|removeFromRemainsCollector|removeGoggles|removeGroupIcon|removeHandgunItem|removeHeadgear|removeItem|removeItemFromBackpack|removeItemFromUniform|removeItemFromVest|removeItems|removeMagazine|removeMagazineGlobal|removeMagazines|removeMagazinesTurret|removeMagazineTurret|removeMenuItem|removeMissionEventHandler|removeMPEventHandler|removeMusicEventHandler|removeOwnedMine|removePrimaryWeaponItem|removeSecondaryWeaponItem|removeSimpleTask|removeSwitchableUnit|removeTeamMember|removeUniform|removeVest|removeWeapon|removeWeaponAttachmentCargo|removeWeaponCargo|removeWeaponGlobal|removeWeaponTurret|reportRemoteTarget|requiredVersion|resetCamShake|resetSubgroupDirection|resistance|resize|resources|respawnVehicle|restartEditorCamera|reveal|revealMine|reverse|reversedMouseY|roadAt|roadsConnectedTo|roleDescription|ropeAttachedObjects|ropeAttachedTo|ropeAttachEnabled|ropeAttachTo|ropeCreate|ropeCut|ropeDestroy|ropeDetach|ropeEndPosition|ropeLength|ropes|ropeUnwind|ropeUnwound|rotorsForcesRTD|rotorsRpmRTD|round|runInitScript|safeZoneH|safeZoneW|safeZoneWAbs|safeZoneX|safeZoneXAbs|safeZoneY|save3DENInventory|saveGame|saveIdentity|saveJoysticks|saveOverlay|saveProfileNamespace|saveStatus|saveVar|savingEnabled|say|say2D|say3D|score|scoreSide|screenshot|screenToWorld|scriptDone|scriptName|scriptNull|scudState|secondaryWeapon|secondaryWeaponItems|secondaryWeaponMagazine|select|selectBestPlaces|selectDiarySubject|selectedEditorObjects|selectEditorObject|selectionNames|selectionPosition|selectLeader|selectMax|selectMin|selectNoPlayer|selectPlayer|selectRandom|selectRandomWeighted|selectWeapon|selectWeaponTurret|sendAUMessage|sendSimpleCommand|sendTask|sendTaskResult|sendUDPMessage|serverCommand|serverCommandAvailable|serverCommandExecutable|serverName|serverTime|set|set3DENAttribute|set3DENAttributes|set3DENGrid|set3DENIconsVisible|set3DENLayer|set3DENLinesVisible|set3DENLogicType|set3DENMissionAttribute|set3DENMissionAttributes|set3DENModelsVisible|set3DENObjectType|set3DENSelected|setAccTime|setActualCollectiveRTD|setAirplaneThrottle|setAirportSide|setAmmo|setAmmoCargo|setAmmoOnPylon|setAnimSpeedCoef|setAperture|setApertureNew|setArmoryPoints|setAttributes|setAutonomous|setBehaviour|setBleedingRemaining|setBrakesRTD|setCameraInterest|setCamShakeDefParams|setCamShakeParams|setCamUseTI|setCaptive|setCenterOfMass|setCollisionLight|setCombatMode|setCompassOscillation|setConvoySeparation|setCuratorCameraAreaCeiling|setCuratorCoef|setCuratorEditingAreaType|setCuratorWaypointCost|setCurrentChannel|setCurrentTask|setCurrentWaypoint|setCustomAimCoef|setCustomWeightRTD|setDamage|setDammage|setDate|setDebriefingText|setDefaultCamera|setDestination|setDetailMapBlendPars|setDir|setDirection|setDrawIcon|setDriveOnPath|setDropInterval|setDynamicSimulationDistance|setDynamicSimulationDistanceCoef|setEditorMode|setEditorObjectScope|setEffectCondition|setEngineRpmRTD|setFace|setFaceAnimation|setFatigue|setFeatureType|setFlagAnimationPhase|setFlagOwner|setFlagSide|setFlagTexture|setFog|setForceGeneratorRTD|setFormation|setFormationTask|setFormDir|setFriend|setFromEditor|setFSMVariable|setFuel|setFuelCargo|setGroupIcon|setGroupIconParams|setGroupIconsSelectable|setGroupIconsVisible|setGroupId|setGroupIdGlobal|setGroupOwner|setGusts|setHideBehind|setHit|setHitIndex|setHitPointDamage|setHorizonParallaxCoef|setHUDMovementLevels|setIdentity|setImportance|setInfoPanel|setLeader|setLightAmbient|setLightAttenuation|setLightBrightness|setLightColor|setLightDayLight|setLightFlareMaxDistance|setLightFlareSize|setLightIntensity|setLightnings|setLightUseFlare|setLocalWindParams|setMagazineTurretAmmo|setMarkerAlpha|setMarkerAlphaLocal|setMarkerBrush|setMarkerBrushLocal|setMarkerColor|setMarkerColorLocal|setMarkerDir|setMarkerDirLocal|setMarkerPos|setMarkerPosLocal|setMarkerShape|setMarkerShapeLocal|setMarkerSize|setMarkerSizeLocal|setMarkerText|setMarkerTextLocal|setMarkerType|setMarkerTypeLocal|setMass|setMimic|setMousePosition|setMusicEffect|setMusicEventHandler|setName|setNameSound|setObjectArguments|setObjectMaterial|setObjectMaterialGlobal|setObjectProxy|setObjectTexture|setObjectTextureGlobal|setObjectViewDistance|setOvercast|setOwner|setOxygenRemaining|setParticleCircle|setParticleClass|setParticleFire|setParticleParams|setParticleRandom|setPilotCameraDirection|setPilotCameraRotation|setPilotCameraTarget|setPilotLight|setPiPEffect|setPitch|setPlateNumber|setPlayable|setPlayerRespawnTime|setPos|setPosASL|setPosASL2|setPosASLW|setPosATL|setPosition|setPosWorld|setPylonLoadOut|setPylonsPriority|setRadioMsg|setRain|setRainbow|setRandomLip|setRank|setRectangular|setRepairCargo|setRotorBrakeRTD|setShadowDistance|setShotParents|setSide|setSimpleTaskAlwaysVisible|setSimpleTaskCustomData|setSimpleTaskDescription|setSimpleTaskDestination|setSimpleTaskTarget|setSimpleTaskType|setSimulWeatherLayers|setSize|setSkill|setSlingLoad|setSoundEffect|setSpeaker|setSpeech|setSpeedMode|setStamina|setStaminaScheme|setStatValue|setSuppression|setSystemOfUnits|setTargetAge|setTaskMarkerOffset|setTaskResult|setTaskState|setTerrainGrid|setText|setTimeMultiplier|setTitleEffect|setToneMapping|setToneMappingParams|setTrafficDensity|setTrafficDistance|setTrafficGap|setTrafficSpeed|setTriggerActivation|setTriggerArea|setTriggerStatements|setTriggerText|setTriggerTimeout|setTriggerType|setType|setUnconscious|setUnitAbility|setUnitLoadout|setUnitPos|setUnitPosWeak|setUnitRank|setUnitRecoilCoefficient|setUnitTrait|setUnloadInCombat|setUserActionText|setUserMFDText|setUserMFDValue|setVariable|setVectorDir|setVectorDirAndUp|setVectorUp|setVehicleAmmo|setVehicleAmmoDef|setVehicleArmor|setVehicleCargo|setVehicleId|setVehicleInit|setVehicleLock|setVehiclePosition|setVehicleRadar|setVehicleReceiveRemoteTargets|setVehicleReportOwnPosition|setVehicleReportRemoteTargets|setVehicleTIPars|setVehicleVarName|setVelocity|setVelocityModelSpace|setVelocityTransformation|setViewDistance|setVisibleIfTreeCollapsed|setWantedRpmRTD|setWaves|setWaypointBehaviour|setWaypointCombatMode|setWaypointCompletionRadius|setWaypointDescription|setWaypointForceBehaviour|setWaypointFormation|setWaypointHousePosition|setWaypointLoiterRadius|setWaypointLoiterType|setWaypointName|setWaypointPosition|setWaypointScript|setWaypointSpeed|setWaypointStatements|setWaypointTimeout|setWaypointType|setWaypointVisible|setWeaponReloadingTime|setWind|setWindDir|setWindForce|setWindStr|setWingForceScaleRTD|setWPPos|show3DIcons|showChat|showCinemaBorder|showCommandingMenu|showCompass|showCuratorCompass|showGPS|showHUD|showLegend|showMap|shownArtilleryComputer|shownChat|shownCompass|shownCuratorCompass|showNewEditorObject|shownGPS|shownHUD|shownMap|shownPad|shownRadio|shownScoretable|shownUAVFeed|shownWarrant|shownWatch|showPad|showRadio|showScoretable|showSubtitles|showUAVFeed|showWarrant|showWatch|showWaypoint|showWaypoints|side|sideAmbientLife|sideChat|sideEmpty|sideEnemy|sideFriendly|sideLogic|sideRadio|sideUnknown|simpleTasks|simulationEnabled|simulCloudDensity|simulCloudOcclusion|simulInClouds|simulWeatherSync|sin|size|sizeOf|skill|skillFinal|skipTime|sleep|sliderPosition|sliderRange|sliderSetPosition|sliderSetRange|sliderSetSpeed|sliderSpeed|slingLoadAssistantShown|soldierMagazines|someAmmo|sort|soundVolume|speaker|speed|speedMode|splitString|sqrt|squadParams|stance|startLoadingScreen|stop|stopEngineRTD|stopped|str|sunOrMoon|supportInfo|suppressFor|surfaceIsWater|surfaceNormal|surfaceType|swimInDepth|switchableUnits|switchAction|switchCamera|switchGesture|switchLight|switchMove|synchronizedObjects|synchronizedTriggers|synchronizedWaypoints|synchronizeObjectsAdd|synchronizeObjectsRemove|synchronizeTrigger|synchronizeWaypoint|systemChat|systemOfUnits|tan|targetKnowledge|targets|targetsAggregate|targetsQuery|taskAlwaysVisible|taskChildren|taskCompleted|taskCustomData|taskDescription|taskDestination|taskHint|taskMarkerOffset|taskNull|taskParent|taskResult|taskState|taskType|teamMember|teamMemberNull|teamName|teams|teamSwitch|teamSwitchEnabled|teamType|terminate|terrainIntersect|terrainIntersectASL|terrainIntersectAtASL|text|textLog|textLogFormat|tg|time|timeMultiplier|titleCut|titleFadeOut|titleObj|titleRsc|titleText|toArray|toFixed|toLower|toString|toUpper|triggerActivated|triggerActivation|triggerArea|triggerAttachedVehicle|triggerAttachObject|triggerAttachVehicle|triggerDynamicSimulation|triggerStatements|triggerText|triggerTimeout|triggerTimeoutCurrent|triggerType|turretLocal|turretOwner|turretUnit|tvAdd|tvClear|tvCollapse|tvCollapseAll|tvCount|tvCurSel|tvData|tvDelete|tvExpand|tvExpandAll|tvPicture|tvPictureRight|tvSetColor|tvSetCurSel|tvSetData|tvSetPicture|tvSetPictureColor|tvSetPictureColorDisabled|tvSetPictureColorSelected|tvSetPictureRight|tvSetPictureRightColor|tvSetPictureRightColorDisabled|tvSetPictureRightColorSelected|tvSetSelectColor|tvSetText|tvSetTooltip|tvSetValue|tvSort|tvSortByValue|tvText|tvTooltip|tvValue|type|typeName|typeOf|UAVControl|uiNamespace|uiSleep|unassignCurator|unassignItem|unassignTeam|unassignVehicle|underwater|uniform|uniformContainer|uniformItems|uniformMagazines|unitAddons|unitAimPosition|unitAimPositionVisual|unitBackpack|unitIsUAV|unitPos|unitReady|unitRecoilCoefficient|units|unitsBelowHeight|unlinkItem|unlockAchievement|unregisterTask|updateDrawIcon|updateMenuItem|updateObjectTree|useAIOperMapObstructionTest|useAISteeringComponent|useAudioTimeForMoves|userInputDisabled|vectorAdd|vectorCos|vectorCrossProduct|vectorDiff|vectorDir|vectorDirVisual|vectorDistance|vectorDistanceSqr|vectorDotProduct|vectorFromTo|vectorMagnitude|vectorMagnitudeSqr|vectorModelToWorld|vectorModelToWorldVisual|vectorMultiply|vectorNormalized|vectorUp|vectorUpVisual|vectorWorldToModel|vectorWorldToModelVisual|vehicle|vehicleCargoEnabled|vehicleChat|vehicleRadio|vehicleReceiveRemoteTargets|vehicleReportOwnPosition|vehicleReportRemoteTargets|vehicles|vehicleVarName|velocity|velocityModelSpace|verifySignature|vest|vestContainer|vestItems|vestMagazines|viewDistance|visibleCompass|visibleGPS|visibleMap|visiblePosition|visiblePositionASL|visibleScoretable|visibleWatch|waitUntil|waves|waypointAttachedObject|waypointAttachedVehicle|waypointAttachObject|waypointAttachVehicle|waypointBehaviour|waypointCombatMode|waypointCompletionRadius|waypointDescription|waypointForceBehaviour|waypointFormation|waypointHousePosition|waypointLoiterRadius|waypointLoiterType|waypointName|waypointPosition|waypoints|waypointScript|waypointsEnabledUAV|waypointShow|waypointSpeed|waypointStatements|waypointTimeout|waypointTimeoutCurrent|waypointType|waypointVisible|weaponAccessories|weaponAccessoriesCargo|weaponCargo|weaponDirection|weaponInertia|weaponLowered|weapons|weaponsItems|weaponsItemsCargo|weaponState|weaponsTurret|weightRTD|west|WFSideText|wind|windDir|windRTD|windStr|wingsForcesRTD|worldName|worldSize|worldToModel|worldToModelVisual|worldToScreen)\b/i,number:/(?:\$|\b0x)[\da-f]+\b|(?:\B\.\d+|\b\d+(?:\.\d+)?)(?:e[+-]?\d+)?\b/i,operator:/##|>>|&&|\|\||[!=<>]=?|[-+*/%#^]|\b(?:and|mod|not|or)\b/i,"magic-variable":{pattern:/\b(?:this|thisList|thisTrigger|_exception|_fnc_scriptName|_fnc_scriptNameParent|_forEachIndex|_this|_thisEventHandler|_thisFSM|_thisScript|_x)\b/i,alias:"keyword"},constant:/\bDIK(?:_[a-z\d]+)+\b/i}),t.languages.insertBefore("sqf","string",{macro:{pattern:/(^[ \t]*)#[a-z](?:[^\r\n\\]|\\(?:\r\n|[\s\S]))*/im,lookbehind:!0,greedy:!0,alias:"property",inside:{directive:{pattern:/#[a-z]+\b/i,alias:"keyword"},comment:t.languages.sqf.comment}}}),delete t.languages.sqf["class-name"]}return h$}var m$,GV;function DBe(){if(GV)return m$;GV=1,m$=e,e.displayName="squirrel",e.aliases=[];function e(t){t.languages.squirrel=t.languages.extend("clike",{comment:[t.languages.clike.comment[0],{pattern:/(^|[^\\:])(?:\/\/|#).*/,lookbehind:!0,greedy:!0}],string:{pattern:/(^|[^\\"'@])(?:@"(?:[^"]|"")*"(?!")|"(?:[^\\\r\n"]|\\.)*")/,lookbehind:!0,greedy:!0},"class-name":{pattern:/(\b(?:class|enum|extends|instanceof)\s+)\w+(?:\.\w+)*/,lookbehind:!0,inside:{punctuation:/\./}},keyword:/\b(?:__FILE__|__LINE__|base|break|case|catch|class|clone|const|constructor|continue|default|delete|else|enum|extends|for|foreach|function|if|in|instanceof|local|null|resume|return|static|switch|this|throw|try|typeof|while|yield)\b/,number:/\b(?:0x[0-9a-fA-F]+|\d+(?:\.(?:\d+|[eE][+-]?\d+))?)\b/,operator:/\+\+|--|<=>|<[-<]|>>>?|&&?|\|\|?|[-+*/%!=<>]=?|[~^]|::?/,punctuation:/[(){}\[\],;.]/}),t.languages.insertBefore("squirrel","string",{char:{pattern:/(^|[^\\"'])'(?:[^\\']|\\(?:[xuU][0-9a-fA-F]{0,8}|[\s\S]))'/,lookbehind:!0,greedy:!0}}),t.languages.insertBefore("squirrel","operator",{"attribute-punctuation":{pattern:/<\/|\/>/,alias:"important"},lambda:{pattern:/@(?=\()/,alias:"operator"}})}return m$}var g$,YV;function $Be(){if(YV)return g$;YV=1,g$=e,e.displayName="stan",e.aliases=[];function e(t){(function(n){var r=/\b(?:algebra_solver|algebra_solver_newton|integrate_1d|integrate_ode|integrate_ode_bdf|integrate_ode_rk45|map_rect|ode_(?:adams|bdf|ckrk|rk45)(?:_tol)?|ode_adjoint_tol_ctl|reduce_sum|reduce_sum_static)\b/;n.languages.stan={comment:/\/\/.*|\/\*[\s\S]*?\*\/|#(?!include).*/,string:{pattern:/"[\x20\x21\x23-\x5B\x5D-\x7E]*"/,greedy:!0},directive:{pattern:/^([ \t]*)#include\b.*/m,lookbehind:!0,alias:"property"},"function-arg":{pattern:RegExp("("+r.source+/\s*\(\s*/.source+")"+/[a-zA-Z]\w*/.source),lookbehind:!0,alias:"function"},constraint:{pattern:/(\b(?:int|matrix|real|row_vector|vector)\s*)<[^<>]*>/,lookbehind:!0,inside:{expression:{pattern:/(=\s*)\S(?:\S|\s+(?!\s))*?(?=\s*(?:>$|,\s*\w+\s*=))/,lookbehind:!0,inside:null},property:/\b[a-z]\w*(?=\s*=)/i,operator:/=/,punctuation:/^<|>$|,/}},keyword:[{pattern:/\bdata(?=\s*\{)|\b(?:functions|generated|model|parameters|quantities|transformed)\b/,alias:"program-block"},/\b(?:array|break|cholesky_factor_corr|cholesky_factor_cov|complex|continue|corr_matrix|cov_matrix|data|else|for|if|in|increment_log_prob|int|matrix|ordered|positive_ordered|print|real|reject|return|row_vector|simplex|target|unit_vector|vector|void|while)\b/,r],function:/\b[a-z]\w*(?=\s*\()/i,number:/(?:\b\d+(?:_\d+)*(?:\.(?:\d+(?:_\d+)*)?)?|\B\.\d+(?:_\d+)*)(?:E[+-]?\d+(?:_\d+)*)?i?(?!\w)/i,boolean:/\b(?:false|true)\b/,operator:/<-|\.[*/]=?|\|\|?|&&|[!=<>+\-*/]=?|['^%~?:]/,punctuation:/[()\[\]{},;]/},n.languages.stan.constraint.inside.expression.inside=n.languages.stan})(t)}return g$}var v$,KV;function LBe(){if(KV)return v$;KV=1,v$=e,e.displayName="stylus",e.aliases=[];function e(t){(function(n){var r={pattern:/(\b\d+)(?:%|[a-z]+)/,lookbehind:!0},a={pattern:/(^|[^\w.-])-?(?:\d+(?:\.\d+)?|\.\d+)/,lookbehind:!0},i={comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?\*\/|\/\/.*)/,lookbehind:!0},url:{pattern:/\burl\((["']?).*?\1\)/i,greedy:!0},string:{pattern:/("|')(?:(?!\1)[^\\\r\n]|\\(?:\r\n|[\s\S]))*\1/,greedy:!0},interpolation:null,func:null,important:/\B!(?:important|optional)\b/i,keyword:{pattern:/(^|\s+)(?:(?:else|for|if|return|unless)(?=\s|$)|@[\w-]+)/,lookbehind:!0},hexcode:/#[\da-f]{3,6}/i,color:[/\b(?:AliceBlue|AntiqueWhite|Aqua|Aquamarine|Azure|Beige|Bisque|Black|BlanchedAlmond|Blue|BlueViolet|Brown|BurlyWood|CadetBlue|Chartreuse|Chocolate|Coral|CornflowerBlue|Cornsilk|Crimson|Cyan|DarkBlue|DarkCyan|DarkGoldenRod|DarkGr[ae]y|DarkGreen|DarkKhaki|DarkMagenta|DarkOliveGreen|DarkOrange|DarkOrchid|DarkRed|DarkSalmon|DarkSeaGreen|DarkSlateBlue|DarkSlateGr[ae]y|DarkTurquoise|DarkViolet|DeepPink|DeepSkyBlue|DimGr[ae]y|DodgerBlue|FireBrick|FloralWhite|ForestGreen|Fuchsia|Gainsboro|GhostWhite|Gold|GoldenRod|Gr[ae]y|Green|GreenYellow|HoneyDew|HotPink|IndianRed|Indigo|Ivory|Khaki|Lavender|LavenderBlush|LawnGreen|LemonChiffon|LightBlue|LightCoral|LightCyan|LightGoldenRodYellow|LightGr[ae]y|LightGreen|LightPink|LightSalmon|LightSeaGreen|LightSkyBlue|LightSlateGr[ae]y|LightSteelBlue|LightYellow|Lime|LimeGreen|Linen|Magenta|Maroon|MediumAquaMarine|MediumBlue|MediumOrchid|MediumPurple|MediumSeaGreen|MediumSlateBlue|MediumSpringGreen|MediumTurquoise|MediumVioletRed|MidnightBlue|MintCream|MistyRose|Moccasin|NavajoWhite|Navy|OldLace|Olive|OliveDrab|Orange|OrangeRed|Orchid|PaleGoldenRod|PaleGreen|PaleTurquoise|PaleVioletRed|PapayaWhip|PeachPuff|Peru|Pink|Plum|PowderBlue|Purple|Red|RosyBrown|RoyalBlue|SaddleBrown|Salmon|SandyBrown|SeaGreen|SeaShell|Sienna|Silver|SkyBlue|SlateBlue|SlateGr[ae]y|Snow|SpringGreen|SteelBlue|Tan|Teal|Thistle|Tomato|Transparent|Turquoise|Violet|Wheat|White|WhiteSmoke|Yellow|YellowGreen)\b/i,{pattern:/\b(?:hsl|rgb)\(\s*\d{1,3}\s*,\s*\d{1,3}%?\s*,\s*\d{1,3}%?\s*\)\B|\b(?:hsl|rgb)a\(\s*\d{1,3}\s*,\s*\d{1,3}%?\s*,\s*\d{1,3}%?\s*,\s*(?:0|0?\.\d+|1)\s*\)\B/i,inside:{unit:r,number:a,function:/[\w-]+(?=\()/,punctuation:/[(),]/}}],entity:/\\[\da-f]{1,8}/i,unit:r,boolean:/\b(?:false|true)\b/,operator:[/~|[+!\/%<>?=]=?|[-:]=|\*[*=]?|\.{2,3}|&&|\|\||\B-\B|\b(?:and|in|is(?: a| defined| not|nt)?|not|or)\b/],number:a,punctuation:/[{}()\[\];:,]/};i.interpolation={pattern:/\{[^\r\n}:]+\}/,alias:"variable",inside:{delimiter:{pattern:/^\{|\}$/,alias:"punctuation"},rest:i}},i.func={pattern:/[\w-]+\([^)]*\).*/,inside:{function:/^[^(]+/,rest:i}},n.languages.stylus={"atrule-declaration":{pattern:/(^[ \t]*)@.+/m,lookbehind:!0,inside:{atrule:/^@[\w-]+/,rest:i}},"variable-declaration":{pattern:/(^[ \t]*)[\w$-]+\s*.?=[ \t]*(?:\{[^{}]*\}|\S.*|$)/m,lookbehind:!0,inside:{variable:/^\S+/,rest:i}},statement:{pattern:/(^[ \t]*)(?:else|for|if|return|unless)[ \t].+/m,lookbehind:!0,inside:{keyword:/^\S+/,rest:i}},"property-declaration":{pattern:/((?:^|\{)([ \t]*))(?:[\w-]|\{[^}\r\n]+\})+(?:\s*:\s*|[ \t]+)(?!\s)[^{\r\n]*(?:;|[^{\r\n,]$(?!(?:\r?\n|\r)(?:\{|\2[ \t])))/m,lookbehind:!0,inside:{property:{pattern:/^[^\s:]+/,inside:{interpolation:i.interpolation}},rest:i}},selector:{pattern:/(^[ \t]*)(?:(?=\S)(?:[^{}\r\n:()]|::?[\w-]+(?:\([^)\r\n]*\)|(?![\w-]))|\{[^}\r\n]+\})+)(?:(?:\r?\n|\r)(?:\1(?:(?=\S)(?:[^{}\r\n:()]|::?[\w-]+(?:\([^)\r\n]*\)|(?![\w-]))|\{[^}\r\n]+\})+)))*(?:,$|\{|(?=(?:\r?\n|\r)(?:\{|\1[ \t])))/m,lookbehind:!0,inside:{interpolation:i.interpolation,comment:i.comment,punctuation:/[{},]/}},func:i.func,string:i.string,comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?\*\/|\/\/.*)/,lookbehind:!0,greedy:!0},interpolation:i.interpolation,punctuation:/[{}()\[\];:.]/}})(t)}return v$}var y$,XV;function FBe(){if(XV)return y$;XV=1,y$=e,e.displayName="swift",e.aliases=[];function e(t){t.languages.swift={comment:{pattern:/(^|[^\\:])(?:\/\/.*|\/\*(?:[^/*]|\/(?!\*)|\*(?!\/)|\/\*(?:[^*]|\*(?!\/))*\*\/)*\*\/)/,lookbehind:!0,greedy:!0},"string-literal":[{pattern:RegExp(/(^|[^"#])/.source+"(?:"+/"(?:\\(?:\((?:[^()]|\([^()]*\))*\)|\r\n|[^(])|[^\\\r\n"])*"/.source+"|"+/"""(?:\\(?:\((?:[^()]|\([^()]*\))*\)|[^(])|[^\\"]|"(?!""))*"""/.source+")"+/(?!["#])/.source),lookbehind:!0,greedy:!0,inside:{interpolation:{pattern:/(\\\()(?:[^()]|\([^()]*\))*(?=\))/,lookbehind:!0,inside:null},"interpolation-punctuation":{pattern:/^\)|\\\($/,alias:"punctuation"},punctuation:/\\(?=[\r\n])/,string:/[\s\S]+/}},{pattern:RegExp(/(^|[^"#])(#+)/.source+"(?:"+/"(?:\\(?:#+\((?:[^()]|\([^()]*\))*\)|\r\n|[^#])|[^\\\r\n])*?"/.source+"|"+/"""(?:\\(?:#+\((?:[^()]|\([^()]*\))*\)|[^#])|[^\\])*?"""/.source+")\\2"),lookbehind:!0,greedy:!0,inside:{interpolation:{pattern:/(\\#+\()(?:[^()]|\([^()]*\))*(?=\))/,lookbehind:!0,inside:null},"interpolation-punctuation":{pattern:/^\)|\\#+\($/,alias:"punctuation"},string:/[\s\S]+/}}],directive:{pattern:RegExp(/#/.source+"(?:"+(/(?:elseif|if)\b/.source+"(?:[ ]*"+/(?:![ \t]*)?(?:\b\w+\b(?:[ \t]*\((?:[^()]|\([^()]*\))*\))?|\((?:[^()]|\([^()]*\))*\))(?:[ \t]*(?:&&|\|\|))?/.source+")+")+"|"+/(?:else|endif)\b/.source+")"),alias:"property",inside:{"directive-name":/^#\w+/,boolean:/\b(?:false|true)\b/,number:/\b\d+(?:\.\d+)*\b/,operator:/!|&&|\|\||[<>]=?/,punctuation:/[(),]/}},literal:{pattern:/#(?:colorLiteral|column|dsohandle|file(?:ID|Literal|Path)?|function|imageLiteral|line)\b/,alias:"constant"},"other-directive":{pattern:/#\w+\b/,alias:"property"},attribute:{pattern:/@\w+/,alias:"atrule"},"function-definition":{pattern:/(\bfunc\s+)\w+/,lookbehind:!0,alias:"function"},label:{pattern:/\b(break|continue)\s+\w+|\b[a-zA-Z_]\w*(?=\s*:\s*(?:for|repeat|while)\b)/,lookbehind:!0,alias:"important"},keyword:/\b(?:Any|Protocol|Self|Type|actor|as|assignment|associatedtype|associativity|async|await|break|case|catch|class|continue|convenience|default|defer|deinit|didSet|do|dynamic|else|enum|extension|fallthrough|fileprivate|final|for|func|get|guard|higherThan|if|import|in|indirect|infix|init|inout|internal|is|isolated|lazy|left|let|lowerThan|mutating|none|nonisolated|nonmutating|open|operator|optional|override|postfix|precedencegroup|prefix|private|protocol|public|repeat|required|rethrows|return|right|safe|self|set|some|static|struct|subscript|super|switch|throw|throws|try|typealias|unowned|unsafe|var|weak|where|while|willSet)\b/,boolean:/\b(?:false|true)\b/,nil:{pattern:/\bnil\b/,alias:"constant"},"short-argument":/\$\d+\b/,omit:{pattern:/\b_\b/,alias:"keyword"},number:/\b(?:[\d_]+(?:\.[\de_]+)?|0x[a-f0-9_]+(?:\.[a-f0-9p_]+)?|0b[01_]+|0o[0-7_]+)\b/i,"class-name":/\b[A-Z](?:[A-Z_\d]*[a-z]\w*)?\b/,function:/\b[a-z_]\w*(?=\s*\()/i,constant:/\b(?:[A-Z_]{2,}|k[A-Z][A-Za-z_]+)\b/,operator:/[-+*/%=!<>&|^~?]+|\.[.\-+*/%=!<>&|^~?]+/,punctuation:/[{}[\]();,.:\\]/},t.languages.swift["string-literal"].forEach(function(n){n.inside.interpolation.inside=t.languages.swift})}return y$}var b$,QV;function jBe(){if(QV)return b$;QV=1,b$=e,e.displayName="systemd",e.aliases=[];function e(t){(function(n){var r={pattern:/^[;#].*/m,greedy:!0},a=/"(?:[^\r\n"\\]|\\(?:[^\r]|\r\n?))*"(?!\S)/.source;n.languages.systemd={comment:r,section:{pattern:/^\[[^\n\r\[\]]*\](?=[ \t]*$)/m,greedy:!0,inside:{punctuation:/^\[|\]$/,"section-name":{pattern:/[\s\S]+/,alias:"selector"}}},key:{pattern:/^[^\s=]+(?=[ \t]*=)/m,greedy:!0,alias:"attr-name"},value:{pattern:RegExp(/(=[ \t]*(?!\s))/.source+"(?:"+a+`|(?=[^"\r +]))(?:`+(/[^\s\\]/.source+'|[ ]+(?:(?![ "])|'+a+")|"+/\\[\r\n]+(?:[#;].*[\r\n]+)*(?![#;])/.source)+")*"),lookbehind:!0,greedy:!0,alias:"attr-value",inside:{comment:r,quoted:{pattern:RegExp(/(^|\s)/.source+a),lookbehind:!0,greedy:!0},punctuation:/\\$/m,boolean:{pattern:/^(?:false|no|off|on|true|yes)$/,greedy:!0}}},punctuation:/=/}})(t)}return b$}var w$,JV;function O4(){if(JV)return w$;JV=1,w$=e,e.displayName="t4Templating",e.aliases=[];function e(t){(function(n){function r(i,o,l){return{pattern:RegExp("<#"+i+"[\\s\\S]*?#>"),alias:"block",inside:{delimiter:{pattern:RegExp("^<#"+i+"|#>$"),alias:"important"},content:{pattern:/[\s\S]+/,inside:o,alias:l}}}}function a(i){var o=n.languages[i],l="language-"+i;return{block:{pattern:/<#[\s\S]+?#>/,inside:{directive:r("@",{"attr-value":{pattern:/=(?:("|')(?:\\[\s\S]|(?!\1)[^\\])*\1|[^\s'">=]+)/,inside:{punctuation:/^=|^["']|["']$/}},keyword:/\b\w+(?=\s)/,"attr-name":/\b\w+/}),expression:r("=",o,l),"class-feature":r("\\+",o,l),standard:r("",o,l)}}}}n.languages["t4-templating"]=Object.defineProperty({},"createT4",{value:a})})(t)}return w$}var S$,ZV;function UBe(){if(ZV)return S$;ZV=1;var e=O4(),t=fO();S$=n,n.displayName="t4Cs",n.aliases=[];function n(r){r.register(e),r.register(t),r.languages.t4=r.languages["t4-cs"]=r.languages["t4-templating"].createT4("csharp")}return S$}var E$,eG;function Kre(){if(eG)return E$;eG=1;var e=Hre();E$=t,t.displayName="vbnet",t.aliases=[];function t(n){n.register(e),n.languages.vbnet=n.languages.extend("basic",{comment:[{pattern:/(?:!|REM\b).+/i,inside:{keyword:/^REM/i}},{pattern:/(^|[^\\:])'.*/,lookbehind:!0,greedy:!0}],string:{pattern:/(^|[^"])"(?:""|[^"])*"(?!")/,lookbehind:!0,greedy:!0},keyword:/(?:\b(?:ADDHANDLER|ADDRESSOF|ALIAS|AND|ANDALSO|AS|BEEP|BLOAD|BOOLEAN|BSAVE|BYREF|BYTE|BYVAL|CALL(?: ABSOLUTE)?|CASE|CATCH|CBOOL|CBYTE|CCHAR|CDATE|CDBL|CDEC|CHAIN|CHAR|CHDIR|CINT|CLASS|CLEAR|CLNG|CLOSE|CLS|COBJ|COM|COMMON|CONST|CONTINUE|CSBYTE|CSHORT|CSNG|CSTR|CTYPE|CUINT|CULNG|CUSHORT|DATA|DATE|DECIMAL|DECLARE|DEF(?: FN| SEG|DBL|INT|LNG|SNG|STR)|DEFAULT|DELEGATE|DIM|DIRECTCAST|DO|DOUBLE|ELSE|ELSEIF|END|ENUM|ENVIRON|ERASE|ERROR|EVENT|EXIT|FALSE|FIELD|FILES|FINALLY|FOR(?: EACH)?|FRIEND|FUNCTION|GET|GETTYPE|GETXMLNAMESPACE|GLOBAL|GOSUB|GOTO|HANDLES|IF|IMPLEMENTS|IMPORTS|IN|INHERITS|INPUT|INTEGER|INTERFACE|IOCTL|IS|ISNOT|KEY|KILL|LET|LIB|LIKE|LINE INPUT|LOCATE|LOCK|LONG|LOOP|LSET|ME|MKDIR|MOD|MODULE|MUSTINHERIT|MUSTOVERRIDE|MYBASE|MYCLASS|NAME|NAMESPACE|NARROWING|NEW|NEXT|NOT|NOTHING|NOTINHERITABLE|NOTOVERRIDABLE|OBJECT|OF|OFF|ON(?: COM| ERROR| KEY| TIMER)?|OPEN|OPERATOR|OPTION(?: BASE)?|OPTIONAL|OR|ORELSE|OUT|OVERLOADS|OVERRIDABLE|OVERRIDES|PARAMARRAY|PARTIAL|POKE|PRIVATE|PROPERTY|PROTECTED|PUBLIC|PUT|RAISEEVENT|READ|READONLY|REDIM|REM|REMOVEHANDLER|RESTORE|RESUME|RETURN|RMDIR|RSET|RUN|SBYTE|SELECT(?: CASE)?|SET|SHADOWS|SHARED|SHELL|SHORT|SINGLE|SLEEP|STATIC|STEP|STOP|STRING|STRUCTURE|SUB|SWAP|SYNCLOCK|SYSTEM|THEN|THROW|TIMER|TO|TROFF|TRON|TRUE|TRY|TRYCAST|TYPE|TYPEOF|UINTEGER|ULONG|UNLOCK|UNTIL|USHORT|USING|VIEW PRINT|WAIT|WEND|WHEN|WHILE|WIDENING|WITH|WITHEVENTS|WRITE|WRITEONLY|XOR)|\B(?:#CONST|#ELSE|#ELSEIF|#END|#IF))(?:\$|\b)/i,punctuation:/[,;:(){}]/})}return E$}var T$,tG;function BBe(){if(tG)return T$;tG=1;var e=O4(),t=Kre();T$=n,n.displayName="t4Vb",n.aliases=[];function n(r){r.register(e),r.register(t),r.languages["t4-vb"]=r.languages["t4-templating"].createT4("vbnet")}return T$}var C$,nG;function Xre(){if(nG)return C$;nG=1,C$=e,e.displayName="yaml",e.aliases=["yml"];function e(t){(function(n){var r=/[*&][^\s[\]{},]+/,a=/!(?:<[\w\-%#;/?:@&=+$,.!~*'()[\]]+>|(?:[a-zA-Z\d-]*!)?[\w\-%#;/?:@&=+$.~*'()]+)?/,i="(?:"+a.source+"(?:[ ]+"+r.source+")?|"+r.source+"(?:[ ]+"+a.source+")?)",o=/(?:[^\s\x00-\x08\x0e-\x1f!"#%&'*,\-:>?@[\]`{|}\x7f-\x84\x86-\x9f\ud800-\udfff\ufffe\uffff]|[?:-])(?:[ \t]*(?:(?![#:])|:))*/.source.replace(//g,function(){return/[^\s\x00-\x08\x0e-\x1f,[\]{}\x7f-\x84\x86-\x9f\ud800-\udfff\ufffe\uffff]/.source}),l=/"(?:[^"\\\r\n]|\\.)*"|'(?:[^'\\\r\n]|\\.)*'/.source;function u(d,f){f=(f||"").replace(/m/g,"")+"m";var g=/([:\-,[{]\s*(?:\s<>[ \t]+)?)(?:<>)(?=[ \t]*(?:$|,|\]|\}|(?:[\r\n]\s*)?#))/.source.replace(/<>/g,function(){return i}).replace(/<>/g,function(){return d});return RegExp(g,f)}n.languages.yaml={scalar:{pattern:RegExp(/([\-:]\s*(?:\s<>[ \t]+)?[|>])[ \t]*(?:((?:\r?\n|\r)[ \t]+)\S[^\r\n]*(?:\2[^\r\n]+)*)/.source.replace(/<>/g,function(){return i})),lookbehind:!0,alias:"string"},comment:/#.*/,key:{pattern:RegExp(/((?:^|[:\-,[{\r\n?])[ \t]*(?:<>[ \t]+)?)<>(?=\s*:\s)/.source.replace(/<>/g,function(){return i}).replace(/<>/g,function(){return"(?:"+o+"|"+l+")"})),lookbehind:!0,greedy:!0,alias:"atrule"},directive:{pattern:/(^[ \t]*)%.+/m,lookbehind:!0,alias:"important"},datetime:{pattern:u(/\d{4}-\d\d?-\d\d?(?:[tT]|[ \t]+)\d\d?:\d{2}:\d{2}(?:\.\d*)?(?:[ \t]*(?:Z|[-+]\d\d?(?::\d{2})?))?|\d{4}-\d{2}-\d{2}|\d\d?:\d{2}(?::\d{2}(?:\.\d*)?)?/.source),lookbehind:!0,alias:"number"},boolean:{pattern:u(/false|true/.source,"i"),lookbehind:!0,alias:"important"},null:{pattern:u(/null|~/.source,"i"),lookbehind:!0,alias:"important"},string:{pattern:u(l),lookbehind:!0,greedy:!0},number:{pattern:u(/[+-]?(?:0x[\da-f]+|0o[0-7]+|(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?|\.inf|\.nan)/.source,"i"),lookbehind:!0},tag:a,important:r,punctuation:/---|[:[\]{}\-,|>?]|\.\.\./},n.languages.yml=n.languages.yaml})(t)}return C$}var k$,rG;function WBe(){if(rG)return k$;rG=1;var e=Xre();k$=t,t.displayName="tap",t.aliases=[];function t(n){n.register(e),n.languages.tap={fail:/not ok[^#{\n\r]*/,pass:/ok[^#{\n\r]*/,pragma:/pragma [+-][a-z]+/,bailout:/bail out!.*/i,version:/TAP version \d+/i,plan:/\b\d+\.\.\d+(?: +#.*)?/,subtest:{pattern:/# Subtest(?:: .*)?/,greedy:!0},punctuation:/[{}]/,directive:/#.*/,yamlish:{pattern:/(^[ \t]*)---[\s\S]*?[\r\n][ \t]*\.\.\.$/m,lookbehind:!0,inside:n.languages.yaml,alias:"language-yaml"}}}return k$}var x$,aG;function zBe(){if(aG)return x$;aG=1,x$=e,e.displayName="tcl",e.aliases=[];function e(t){t.languages.tcl={comment:{pattern:/(^|[^\\])#.*/,lookbehind:!0},string:{pattern:/"(?:[^"\\\r\n]|\\(?:\r\n|[\s\S]))*"/,greedy:!0},variable:[{pattern:/(\$)(?:::)?(?:[a-zA-Z0-9]+::)*\w+/,lookbehind:!0},{pattern:/(\$)\{[^}]+\}/,lookbehind:!0},{pattern:/(^[\t ]*set[ \t]+)(?:::)?(?:[a-zA-Z0-9]+::)*\w+/m,lookbehind:!0}],function:{pattern:/(^[\t ]*proc[ \t]+)\S+/m,lookbehind:!0},builtin:[{pattern:/(^[\t ]*)(?:break|class|continue|error|eval|exit|for|foreach|if|proc|return|switch|while)\b/m,lookbehind:!0},/\b(?:else|elseif)\b/],scope:{pattern:/(^[\t ]*)(?:global|upvar|variable)\b/m,lookbehind:!0,alias:"constant"},keyword:{pattern:/(^[\t ]*|\[)(?:Safe_Base|Tcl|after|append|apply|array|auto_(?:execok|import|load|mkindex|qualify|reset)|automkindex_old|bgerror|binary|catch|cd|chan|clock|close|concat|dde|dict|encoding|eof|exec|expr|fblocked|fconfigure|fcopy|file(?:event|name)?|flush|gets|glob|history|http|incr|info|interp|join|lappend|lassign|lindex|linsert|list|llength|load|lrange|lrepeat|lreplace|lreverse|lsearch|lset|lsort|math(?:func|op)|memory|msgcat|namespace|open|package|parray|pid|pkg_mkIndex|platform|puts|pwd|re_syntax|read|refchan|regexp|registry|regsub|rename|scan|seek|set|socket|source|split|string|subst|tcl(?:_endOfWord|_findLibrary|startOf(?:Next|Previous)Word|test|vars|wordBreak(?:After|Before))|tell|time|tm|trace|unknown|unload|unset|update|uplevel|vwait)\b/m,lookbehind:!0},operator:/!=?|\*\*?|==|&&?|\|\|?|<[=<]?|>[=>]?|[-+~\/%?^]|\b(?:eq|in|ne|ni)\b/,punctuation:/[{}()\[\]]/}}return x$}var _$,iG;function qBe(){if(iG)return _$;iG=1,_$=e,e.displayName="textile",e.aliases=[];function e(t){(function(n){var r=/\([^|()\n]+\)|\[[^\]\n]+\]|\{[^}\n]+\}/.source,a=/\)|\((?![^|()\n]+\))/.source;function i(y,h){return RegExp(y.replace(//g,function(){return"(?:"+r+")"}).replace(//g,function(){return"(?:"+a+")"}),h||"")}var o={css:{pattern:/\{[^{}]+\}/,inside:{rest:n.languages.css}},"class-id":{pattern:/(\()[^()]+(?=\))/,lookbehind:!0,alias:"attr-value"},lang:{pattern:/(\[)[^\[\]]+(?=\])/,lookbehind:!0,alias:"attr-value"},punctuation:/[\\\/]\d+|\S/},l=n.languages.textile=n.languages.extend("markup",{phrase:{pattern:/(^|\r|\n)\S[\s\S]*?(?=$|\r?\n\r?\n|\r\r)/,lookbehind:!0,inside:{"block-tag":{pattern:i(/^[a-z]\w*(?:||[<>=])*\./.source),inside:{modifier:{pattern:i(/(^[a-z]\w*)(?:||[<>=])+(?=\.)/.source),lookbehind:!0,inside:o},tag:/^[a-z]\w*/,punctuation:/\.$/}},list:{pattern:i(/^[*#]+*\s+\S.*/.source,"m"),inside:{modifier:{pattern:i(/(^[*#]+)+/.source),lookbehind:!0,inside:o},punctuation:/^[*#]+/}},table:{pattern:i(/^(?:(?:||[<>=^~])+\.\s*)?(?:\|(?:(?:||[<>=^~_]|[\\/]\d+)+\.|(?!(?:||[<>=^~_]|[\\/]\d+)+\.))[^|]*)+\|/.source,"m"),inside:{modifier:{pattern:i(/(^|\|(?:\r?\n|\r)?)(?:||[<>=^~_]|[\\/]\d+)+(?=\.)/.source),lookbehind:!0,inside:o},punctuation:/\||^\./}},inline:{pattern:i(/(^|[^a-zA-Z\d])(\*\*|__|\?\?|[*_%@+\-^~])*.+?\2(?![a-zA-Z\d])/.source),lookbehind:!0,inside:{bold:{pattern:i(/(^(\*\*?)*).+?(?=\2)/.source),lookbehind:!0},italic:{pattern:i(/(^(__?)*).+?(?=\2)/.source),lookbehind:!0},cite:{pattern:i(/(^\?\?*).+?(?=\?\?)/.source),lookbehind:!0,alias:"string"},code:{pattern:i(/(^@*).+?(?=@)/.source),lookbehind:!0,alias:"keyword"},inserted:{pattern:i(/(^\+*).+?(?=\+)/.source),lookbehind:!0},deleted:{pattern:i(/(^-*).+?(?=-)/.source),lookbehind:!0},span:{pattern:i(/(^%*).+?(?=%)/.source),lookbehind:!0},modifier:{pattern:i(/(^\*\*|__|\?\?|[*_%@+\-^~])+/.source),lookbehind:!0,inside:o},punctuation:/[*_%?@+\-^~]+/}},"link-ref":{pattern:/^\[[^\]]+\]\S+$/m,inside:{string:{pattern:/(^\[)[^\]]+(?=\])/,lookbehind:!0},url:{pattern:/(^\])\S+$/,lookbehind:!0},punctuation:/[\[\]]/}},link:{pattern:i(/"*[^"]+":.+?(?=[^\w/]?(?:\s|$))/.source),inside:{text:{pattern:i(/(^"*)[^"]+(?=")/.source),lookbehind:!0},modifier:{pattern:i(/(^")+/.source),lookbehind:!0,inside:o},url:{pattern:/(:).+/,lookbehind:!0},punctuation:/[":]/}},image:{pattern:i(/!(?:||[<>=])*(?![<>=])[^!\s()]+(?:\([^)]+\))?!(?::.+?(?=[^\w/]?(?:\s|$)))?/.source),inside:{source:{pattern:i(/(^!(?:||[<>=])*)(?![<>=])[^!\s()]+(?:\([^)]+\))?(?=!)/.source),lookbehind:!0,alias:"url"},modifier:{pattern:i(/(^!)(?:||[<>=])+/.source),lookbehind:!0,inside:o},url:{pattern:/(:).+/,lookbehind:!0},punctuation:/[!:]/}},footnote:{pattern:/\b\[\d+\]/,alias:"comment",inside:{punctuation:/\[|\]/}},acronym:{pattern:/\b[A-Z\d]+\([^)]+\)/,inside:{comment:{pattern:/(\()[^()]+(?=\))/,lookbehind:!0},punctuation:/[()]/}},mark:{pattern:/\b\((?:C|R|TM)\)/,alias:"comment",inside:{punctuation:/[()]/}}}}}),u=l.phrase.inside,d={inline:u.inline,link:u.link,image:u.image,footnote:u.footnote,acronym:u.acronym,mark:u.mark};l.tag.pattern=/<\/?(?!\d)[a-z0-9]+(?:\s+[^\s>\/=]+(?:=(?:("|')(?:\\[\s\S]|(?!\1)[^\\])*\1|[^\s'">=]+))?)*\s*\/?>/i;var f=u.inline.inside;f.bold.inside=d,f.italic.inside=d,f.inserted.inside=d,f.deleted.inside=d,f.span.inside=d;var g=u.table.inside;g.inline=d.inline,g.link=d.link,g.image=d.image,g.footnote=d.footnote,g.acronym=d.acronym,g.mark=d.mark})(t)}return _$}var O$,oG;function HBe(){if(oG)return O$;oG=1,O$=e,e.displayName="toml",e.aliases=[];function e(t){(function(n){var r=/(?:[\w-]+|'[^'\n\r]*'|"(?:\\.|[^\\"\r\n])*")/.source;function a(i){return i.replace(/__/g,function(){return r})}n.languages.toml={comment:{pattern:/#.*/,greedy:!0},table:{pattern:RegExp(a(/(^[\t ]*\[\s*(?:\[\s*)?)__(?:\s*\.\s*__)*(?=\s*\])/.source),"m"),lookbehind:!0,greedy:!0,alias:"class-name"},key:{pattern:RegExp(a(/(^[\t ]*|[{,]\s*)__(?:\s*\.\s*__)*(?=\s*=)/.source),"m"),lookbehind:!0,greedy:!0,alias:"property"},string:{pattern:/"""(?:\\[\s\S]|[^\\])*?"""|'''[\s\S]*?'''|'[^'\n\r]*'|"(?:\\.|[^\\"\r\n])*"/,greedy:!0},date:[{pattern:/\b\d{4}-\d{2}-\d{2}(?:[T\s]\d{2}:\d{2}:\d{2}(?:\.\d+)?(?:Z|[+-]\d{2}:\d{2})?)?\b/i,alias:"number"},{pattern:/\b\d{2}:\d{2}:\d{2}(?:\.\d+)?\b/,alias:"number"}],number:/(?:\b0(?:x[\da-zA-Z]+(?:_[\da-zA-Z]+)*|o[0-7]+(?:_[0-7]+)*|b[10]+(?:_[10]+)*))\b|[-+]?\b\d+(?:_\d+)*(?:\.\d+(?:_\d+)*)?(?:[eE][+-]?\d+(?:_\d+)*)?\b|[-+]?\b(?:inf|nan)\b/,boolean:/\b(?:false|true)\b/,punctuation:/[.,=[\]{}]/}})(t)}return O$}var R$,sG;function VBe(){if(sG)return R$;sG=1,R$=e,e.displayName="tremor",e.aliases=[];function e(t){(function(n){n.languages.tremor={comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?\*\/|(?:--|\/\/|#).*)/,lookbehind:!0},"interpolated-string":null,extractor:{pattern:/\b[a-z_]\w*\|(?:[^\r\n\\|]|\\(?:\r\n|[\s\S]))*\|/i,greedy:!0,inside:{regex:{pattern:/(^re)\|[\s\S]+/,lookbehind:!0},function:/^\w+/,value:/\|[\s\S]+/}},identifier:{pattern:/`[^`]*`/,greedy:!0},function:/\b[a-z_]\w*(?=\s*(?:::\s*<|\())\b/,keyword:/\b(?:args|as|by|case|config|connect|connector|const|copy|create|default|define|deploy|drop|each|emit|end|erase|event|flow|fn|for|from|group|having|insert|into|intrinsic|let|links|match|merge|mod|move|of|operator|patch|pipeline|recur|script|select|set|sliding|state|stream|to|tumbling|update|use|when|where|window|with)\b/,boolean:/\b(?:false|null|true)\b/i,number:/\b(?:0b[01_]*|0x[0-9a-fA-F_]*|\d[\d_]*(?:\.\d[\d_]*)?(?:[Ee][+-]?[\d_]+)?)\b/,"pattern-punctuation":{pattern:/%(?=[({[])/,alias:"punctuation"},operator:/[-+*\/%~!^]=?|=[=>]?|&[&=]?|\|[|=]?|<>?>?=?|(?:absent|and|not|or|present|xor)\b/,punctuation:/::|[;\[\]()\{\},.:]/};var r=/#\{(?:[^"{}]|\{[^{}]*\}|"(?:[^"\\\r\n]|\\(?:\r\n|[\s\S]))*")*\}/.source;n.languages.tremor["interpolated-string"]={pattern:RegExp(/(^|[^\\])/.source+'(?:"""(?:'+/[^"\\#]|\\[\s\S]|"(?!"")|#(?!\{)/.source+"|"+r+')*"""|"(?:'+/[^"\\\r\n#]|\\(?:\r\n|[\s\S])|#(?!\{)/.source+"|"+r+')*")'),lookbehind:!0,greedy:!0,inside:{interpolation:{pattern:RegExp(r),inside:{punctuation:/^#\{|\}$/,expression:{pattern:/[\s\S]+/,inside:n.languages.tremor}}},string:/[\s\S]+/}},n.languages.troy=n.languages.tremor,n.languages.trickle=n.languages.tremor})(t)}return R$}var P$,lG;function GBe(){if(lG)return P$;lG=1;var e=Gre(),t=k4();P$=n,n.displayName="tsx",n.aliases=[];function n(r){r.register(e),r.register(t),(function(a){var i=a.util.clone(a.languages.typescript);a.languages.tsx=a.languages.extend("jsx",i),delete a.languages.tsx.parameter,delete a.languages.tsx["literal-property"];var o=a.languages.tsx.tag;o.pattern=RegExp(/(^|[^\w$]|(?=<\/))/.source+"(?:"+o.pattern.source+")",o.pattern.flags),o.lookbehind=!0})(r)}return P$}var A$,uG;function YBe(){if(uG)return A$;uG=1;var e=gs();A$=t,t.displayName="tt2",t.aliases=[];function t(n){n.register(e),(function(r){r.languages.tt2=r.languages.extend("clike",{comment:/#.*|\[%#[\s\S]*?%\]/,keyword:/\b(?:BLOCK|CALL|CASE|CATCH|CLEAR|DEBUG|DEFAULT|ELSE|ELSIF|END|FILTER|FINAL|FOREACH|GET|IF|IN|INCLUDE|INSERT|LAST|MACRO|META|NEXT|PERL|PROCESS|RAWPERL|RETURN|SET|STOP|SWITCH|TAGS|THROW|TRY|UNLESS|USE|WHILE|WRAPPER)\b/,punctuation:/[[\]{},()]/}),r.languages.insertBefore("tt2","number",{operator:/=[>=]?|!=?|<=?|>=?|&&|\|\|?|\b(?:and|not|or)\b/,variable:{pattern:/\b[a-z]\w*(?:\s*\.\s*(?:\d+|\$?[a-z]\w*))*\b/i}}),r.languages.insertBefore("tt2","keyword",{delimiter:{pattern:/^(?:\[%|%%)-?|-?%\]$/,alias:"punctuation"}}),r.languages.insertBefore("tt2","string",{"single-quoted-string":{pattern:/'[^\\']*(?:\\[\s\S][^\\']*)*'/,greedy:!0,alias:"string"},"double-quoted-string":{pattern:/"[^\\"]*(?:\\[\s\S][^\\"]*)*"/,greedy:!0,alias:"string",inside:{variable:{pattern:/\$(?:[a-z]\w*(?:\.(?:\d+|\$?[a-z]\w*))*)/i}}}}),delete r.languages.tt2.string,r.hooks.add("before-tokenize",function(a){var i=/\[%[\s\S]+?%\]/g;r.languages["markup-templating"].buildPlaceholders(a,"tt2",i)}),r.hooks.add("after-tokenize",function(a){r.languages["markup-templating"].tokenizePlaceholders(a,"tt2")})})(n)}return A$}var N$,cG;function KBe(){if(cG)return N$;cG=1;var e=gs();N$=t,t.displayName="twig",t.aliases=[];function t(n){n.register(e),n.languages.twig={comment:/^\{#[\s\S]*?#\}$/,"tag-name":{pattern:/(^\{%-?\s*)\w+/,lookbehind:!0,alias:"keyword"},delimiter:{pattern:/^\{[{%]-?|-?[%}]\}$/,alias:"punctuation"},string:{pattern:/("|')(?:\\.|(?!\1)[^\\\r\n])*\1/,inside:{punctuation:/^['"]|['"]$/}},keyword:/\b(?:even|if|odd)\b/,boolean:/\b(?:false|null|true)\b/,number:/\b0x[\dA-Fa-f]+|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[Ee][-+]?\d+)?/,operator:[{pattern:/(\s)(?:and|b-and|b-or|b-xor|ends with|in|is|matches|not|or|same as|starts with)(?=\s)/,lookbehind:!0},/[=<>]=?|!=|\*\*?|\/\/?|\?:?|[-+~%|]/],punctuation:/[()\[\]{}:.,]/},n.hooks.add("before-tokenize",function(r){if(r.language==="twig"){var a=/\{(?:#[\s\S]*?#|%[\s\S]*?%|\{[\s\S]*?\})\}/g;n.languages["markup-templating"].buildPlaceholders(r,"twig",a)}}),n.hooks.add("after-tokenize",function(r){n.languages["markup-templating"].tokenizePlaceholders(r,"twig")})}return N$}var M$,dG;function XBe(){if(dG)return M$;dG=1,M$=e,e.displayName="typoscript",e.aliases=["tsconfig"];function e(t){(function(n){var r=/\b(?:ACT|ACTIFSUB|CARRAY|CASE|CLEARGIF|COA|COA_INT|CONSTANTS|CONTENT|CUR|EDITPANEL|EFFECT|EXT|FILE|FLUIDTEMPLATE|FORM|FRAME|FRAMESET|GIFBUILDER|GMENU|GMENU_FOLDOUT|GMENU_LAYERS|GP|HMENU|HRULER|HTML|IENV|IFSUB|IMAGE|IMGMENU|IMGMENUITEM|IMGTEXT|IMG_RESOURCE|INCLUDE_TYPOSCRIPT|JSMENU|JSMENUITEM|LLL|LOAD_REGISTER|NO|PAGE|RECORDS|RESTORE_REGISTER|TEMPLATE|TEXT|TMENU|TMENUITEM|TMENU_LAYERS|USER|USER_INT|_GIFBUILDER|global|globalString|globalVar)\b/;n.languages.typoscript={comment:[{pattern:/(^|[^\\])\/\*[\s\S]*?(?:\*\/|$)/,lookbehind:!0},{pattern:/(^|[^\\:= \t]|(?:^|[^= \t])[ \t]+)\/\/.*/,lookbehind:!0,greedy:!0},{pattern:/(^|[^"'])#.*/,lookbehind:!0,greedy:!0}],function:[{pattern://,inside:{string:{pattern:/"[^"\r\n]*"|'[^'\r\n]*'/,inside:{keyword:r}},keyword:{pattern:/INCLUDE_TYPOSCRIPT/}}},{pattern:/@import\s*(?:"[^"\r\n]*"|'[^'\r\n]*')/,inside:{string:/"[^"\r\n]*"|'[^'\r\n]*'/}}],string:{pattern:/^([^=]*=[< ]?)(?:(?!\]\n).)*/,lookbehind:!0,inside:{function:/\{\$.*\}/,keyword:r,number:/^\d+$/,punctuation:/[,|:]/}},keyword:r,number:{pattern:/\b\d+\s*[.{=]/,inside:{operator:/[.{=]/}},tag:{pattern:/\.?[-\w\\]+\.?/,inside:{punctuation:/\./}},punctuation:/[{}[\];(),.:|]/,operator:/[<>]=?|[!=]=?=?|--?|\+\+?|&&?|\|\|?|[?*/~^%]/},n.languages.tsconfig=n.languages.typoscript})(t)}return M$}var I$,fG;function QBe(){if(fG)return I$;fG=1,I$=e,e.displayName="unrealscript",e.aliases=["uc","uscript"];function e(t){t.languages.unrealscript={comment:/\/\/.*|\/\*[\s\S]*?\*\//,string:{pattern:/(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,greedy:!0},category:{pattern:/(\b(?:(?:autoexpand|hide|show)categories|var)\s*\()[^()]+(?=\))/,lookbehind:!0,greedy:!0,alias:"property"},metadata:{pattern:/(\w\s*)<\s*\w+\s*=[^<>|=\r\n]+(?:\|\s*\w+\s*=[^<>|=\r\n]+)*>/,lookbehind:!0,greedy:!0,inside:{property:/\b\w+(?=\s*=)/,operator:/=/,punctuation:/[<>|]/}},macro:{pattern:/`\w+/,alias:"property"},"class-name":{pattern:/(\b(?:class|enum|extends|interface|state(?:\(\))?|struct|within)\s+)\w+/,lookbehind:!0},keyword:/\b(?:abstract|actor|array|auto|autoexpandcategories|bool|break|byte|case|class|classgroup|client|coerce|collapsecategories|config|const|continue|default|defaultproperties|delegate|dependson|deprecated|do|dontcollapsecategories|editconst|editinlinenew|else|enum|event|exec|export|extends|final|float|for|forcescriptorder|foreach|function|goto|guid|hidecategories|hidedropdown|if|ignores|implements|inherits|input|int|interface|iterator|latent|local|material|name|native|nativereplication|noexport|nontransient|noteditinlinenew|notplaceable|operator|optional|out|pawn|perobjectconfig|perobjectlocalized|placeable|postoperator|preoperator|private|protected|reliable|replication|return|server|showcategories|simulated|singular|state|static|string|struct|structdefault|structdefaultproperties|switch|texture|transient|travel|unreliable|until|var|vector|while|within)\b/,function:/\b[a-z_]\w*(?=\s*\()/i,boolean:/\b(?:false|true)\b/,number:/\b0x[\da-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?/i,operator:/>>|<<|--|\+\+|\*\*|[-+*/~!=<>$@]=?|&&?|\|\|?|\^\^?|[?:%]|\b(?:ClockwiseFrom|Cross|Dot)\b/,punctuation:/[()[\]{};,.]/},t.languages.uc=t.languages.uscript=t.languages.unrealscript}return I$}var D$,pG;function JBe(){if(pG)return D$;pG=1,D$=e,e.displayName="uorazor",e.aliases=[];function e(t){t.languages.uorazor={"comment-hash":{pattern:/#.*/,alias:"comment",greedy:!0},"comment-slash":{pattern:/\/\/.*/,alias:"comment",greedy:!0},string:{pattern:/("|')(?:\\.|(?!\1)[^\\\r\n])*\1/,inside:{punctuation:/^['"]|['"]$/},greedy:!0},"source-layers":{pattern:/\b(?:arms|backpack|blue|bracelet|cancel|clear|cloak|criminal|earrings|enemy|facialhair|friend|friendly|gloves|gray|grey|ground|hair|head|innerlegs|innertorso|innocent|lefthand|middletorso|murderer|neck|nonfriendly|onehandedsecondary|outerlegs|outertorso|pants|red|righthand|ring|self|shirt|shoes|talisman|waist)\b/i,alias:"function"},"source-commands":{pattern:/\b(?:alliance|attack|cast|clearall|clearignore|clearjournal|clearlist|clearsysmsg|createlist|createtimer|dclick|dclicktype|dclickvar|dress|dressconfig|drop|droprelloc|emote|getlabel|guild|gumpclose|gumpresponse|hotkey|ignore|lasttarget|lift|lifttype|menu|menuresponse|msg|org|organize|organizer|overhead|pause|poplist|potion|promptresponse|pushlist|removelist|removetimer|rename|restock|say|scav|scavenger|script|setability|setlasttarget|setskill|settimer|setvar|sysmsg|target|targetloc|targetrelloc|targettype|undress|unignore|unsetvar|useobject|useonce|useskill|usetype|virtue|wait|waitforgump|waitformenu|waitforprompt|waitforstat|waitforsysmsg|waitfortarget|walk|wfsysmsg|wft|whisper|yell)\b/,alias:"function"},"tag-name":{pattern:/(^\{%-?\s*)\w+/,lookbehind:!0,alias:"keyword"},delimiter:{pattern:/^\{[{%]-?|-?[%}]\}$/,alias:"punctuation"},function:/\b(?:atlist|close|closest|count|counter|counttype|dead|dex|diffhits|diffmana|diffstam|diffweight|find|findbuff|finddebuff|findlayer|findtype|findtypelist|followers|gumpexists|hidden|hits|hp|hue|human|humanoid|ingump|inlist|insysmessage|insysmsg|int|invul|lhandempty|list|listexists|mana|maxhits|maxhp|maxmana|maxstam|maxweight|monster|mounted|name|next|noto|paralyzed|poisoned|position|prev|previous|queued|rand|random|rhandempty|skill|stam|str|targetexists|timer|timerexists|varexist|warmode|weight)\b/,keyword:/\b(?:and|as|break|continue|else|elseif|endfor|endif|endwhile|for|if|loop|not|or|replay|stop|while)\b/,boolean:/\b(?:false|null|true)\b/,number:/\b0x[\dA-Fa-f]+|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[Ee][-+]?\d+)?/,operator:[{pattern:/(\s)(?:and|b-and|b-or|b-xor|ends with|in|is|matches|not|or|same as|starts with)(?=\s)/,lookbehind:!0},/[=<>]=?|!=|\*\*?|\/\/?|\?:?|[-+~%|]/],punctuation:/[()\[\]{}:.,]/}}return D$}var $$,hG;function ZBe(){if(hG)return $$;hG=1,$$=e,e.displayName="uri",e.aliases=["url"];function e(t){t.languages.uri={scheme:{pattern:/^[a-z][a-z0-9+.-]*:/im,greedy:!0,inside:{"scheme-delimiter":/:$/}},fragment:{pattern:/#[\w\-.~!$&'()*+,;=%:@/?]*/,inside:{"fragment-delimiter":/^#/}},query:{pattern:/\?[\w\-.~!$&'()*+,;=%:@/?]*/,inside:{"query-delimiter":{pattern:/^\?/,greedy:!0},"pair-delimiter":/[&;]/,pair:{pattern:/^[^=][\s\S]*/,inside:{key:/^[^=]+/,value:{pattern:/(^=)[\s\S]+/,lookbehind:!0}}}}},authority:{pattern:RegExp(/^\/\//.source+/(?:[\w\-.~!$&'()*+,;=%:]*@)?/.source+("(?:"+/\[(?:[0-9a-fA-F:.]{2,48}|v[0-9a-fA-F]+\.[\w\-.~!$&'()*+,;=]+)\]/.source+"|"+/[\w\-.~!$&'()*+,;=%]*/.source+")")+/(?::\d*)?/.source,"m"),inside:{"authority-delimiter":/^\/\//,"user-info-segment":{pattern:/^[\w\-.~!$&'()*+,;=%:]*@/,inside:{"user-info-delimiter":/@$/,"user-info":/^[\w\-.~!$&'()*+,;=%:]+/}},"port-segment":{pattern:/:\d*$/,inside:{"port-delimiter":/^:/,port:/^\d+/}},host:{pattern:/[\s\S]+/,inside:{"ip-literal":{pattern:/^\[[\s\S]+\]$/,inside:{"ip-literal-delimiter":/^\[|\]$/,"ipv-future":/^v[\s\S]+/,"ipv6-address":/^[\s\S]+/}},"ipv4-address":/^(?:(?:[03-9]\d?|[12]\d{0,2})\.){3}(?:[03-9]\d?|[12]\d{0,2})$/}}}},path:{pattern:/^[\w\-.~!$&'()*+,;=%:@/]+/m,inside:{"path-separator":/\//}}},t.languages.url=t.languages.uri}return $$}var L$,mG;function e8e(){if(mG)return L$;mG=1,L$=e,e.displayName="v",e.aliases=[];function e(t){(function(n){var r={pattern:/[\s\S]+/,inside:null};n.languages.v=n.languages.extend("clike",{string:{pattern:/r?(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,alias:"quoted-string",greedy:!0,inside:{interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$(?:\{[^{}]*\}|\w+(?:\.\w+(?:\([^\(\)]*\))?|\[[^\[\]]+\])*)/,lookbehind:!0,inside:{"interpolation-variable":{pattern:/^\$\w[\s\S]*$/,alias:"variable"},"interpolation-punctuation":{pattern:/^\$\{|\}$/,alias:"punctuation"},"interpolation-expression":r}}}},"class-name":{pattern:/(\b(?:enum|interface|struct|type)\s+)(?:C\.)?\w+/,lookbehind:!0},keyword:/(?:\b(?:__global|as|asm|assert|atomic|break|chan|const|continue|defer|else|embed|enum|fn|for|go(?:to)?|if|import|in|interface|is|lock|match|module|mut|none|or|pub|return|rlock|select|shared|sizeof|static|struct|type(?:of)?|union|unsafe)|\$(?:else|for|if)|#(?:flag|include))\b/,number:/\b(?:0x[a-f\d]+(?:_[a-f\d]+)*|0b[01]+(?:_[01]+)*|0o[0-7]+(?:_[0-7]+)*|\d+(?:_\d+)*(?:\.\d+(?:_\d+)*)?)\b/i,operator:/~|\?|[*\/%^!=]=?|\+[=+]?|-[=-]?|\|[=|]?|&(?:=|&|\^=?)?|>(?:>=?|=)?|<(?:<=?|=|-)?|:=|\.\.\.?/,builtin:/\b(?:any(?:_float|_int)?|bool|byte(?:ptr)?|charptr|f(?:32|64)|i(?:8|16|64|128|nt)|rune|size_t|string|u(?:16|32|64|128)|voidptr)\b/}),r.inside=n.languages.v,n.languages.insertBefore("v","string",{char:{pattern:/`(?:\\`|\\?[^`]{1,2})`/,alias:"rune"}}),n.languages.insertBefore("v","operator",{attribute:{pattern:/(^[\t ]*)\[(?:deprecated|direct_array_access|flag|inline|live|ref_only|typedef|unsafe_fn|windows_stdcall)\]/m,lookbehind:!0,alias:"annotation",inside:{punctuation:/[\[\]]/,keyword:/\w+/}},generic:{pattern:/<\w+>(?=\s*[\)\{])/,inside:{punctuation:/[<>]/,"class-name":/\w+/}}}),n.languages.insertBefore("v","function",{"generic-function":{pattern:/\b\w+\s*<\w+>(?=\()/,inside:{function:/^\w+/,generic:{pattern:/<\w+>/,inside:n.languages.v.generic.inside}}}})})(t)}return L$}var F$,gG;function t8e(){if(gG)return F$;gG=1,F$=e,e.displayName="vala",e.aliases=[];function e(t){t.languages.vala=t.languages.extend("clike",{"class-name":[{pattern:/\b[A-Z]\w*(?:\.\w+)*\b(?=(?:\?\s+|\*?\s+\*?)\w)/,inside:{punctuation:/\./}},{pattern:/(\[)[A-Z]\w*(?:\.\w+)*\b/,lookbehind:!0,inside:{punctuation:/\./}},{pattern:/(\b(?:class|interface)\s+[A-Z]\w*(?:\.\w+)*\s*:\s*)[A-Z]\w*(?:\.\w+)*\b/,lookbehind:!0,inside:{punctuation:/\./}},{pattern:/((?:\b(?:class|enum|interface|new|struct)\s+)|(?:catch\s+\())[A-Z]\w*(?:\.\w+)*\b/,lookbehind:!0,inside:{punctuation:/\./}}],keyword:/\b(?:abstract|as|assert|async|base|bool|break|case|catch|char|class|const|construct|continue|default|delegate|delete|do|double|dynamic|else|ensures|enum|errordomain|extern|finally|float|for|foreach|get|if|in|inline|int|int16|int32|int64|int8|interface|internal|is|lock|long|namespace|new|null|out|override|owned|params|private|protected|public|ref|requires|return|set|short|signal|sizeof|size_t|ssize_t|static|string|struct|switch|this|throw|throws|try|typeof|uchar|uint|uint16|uint32|uint64|uint8|ulong|unichar|unowned|ushort|using|value|var|virtual|void|volatile|weak|while|yield)\b/i,function:/\b\w+(?=\s*\()/,number:/(?:\b0x[\da-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?)(?:f|u?l?)?/i,operator:/\+\+|--|&&|\|\||<<=?|>>=?|=>|->|~|[+\-*\/%&^|=!<>]=?|\?\??|\.\.\./,punctuation:/[{}[\];(),.:]/,constant:/\b[A-Z0-9_]+\b/}),t.languages.insertBefore("vala","string",{"raw-string":{pattern:/"""[\s\S]*?"""/,greedy:!0,alias:"string"},"template-string":{pattern:/@"[\s\S]*?"/,greedy:!0,inside:{interpolation:{pattern:/\$(?:\([^)]*\)|[a-zA-Z]\w*)/,inside:{delimiter:{pattern:/^\$\(?|\)$/,alias:"punctuation"},rest:t.languages.vala}},string:/[\s\S]+/}}}),t.languages.insertBefore("vala","keyword",{regex:{pattern:/\/(?:\[(?:[^\]\\\r\n]|\\.)*\]|\\.|[^/\\\[\r\n])+\/[imsx]{0,4}(?=\s*(?:$|[\r\n,.;})\]]))/,greedy:!0,inside:{"regex-source":{pattern:/^(\/)[\s\S]+(?=\/[a-z]*$)/,lookbehind:!0,alias:"language-regex",inside:t.languages.regex},"regex-delimiter":/^\//,"regex-flags":/^[a-z]+$/}}})}return F$}var j$,vG;function n8e(){if(vG)return j$;vG=1,j$=e,e.displayName="velocity",e.aliases=[];function e(t){(function(n){n.languages.velocity=n.languages.extend("markup",{});var r={variable:{pattern:/(^|[^\\](?:\\\\)*)\$!?(?:[a-z][\w-]*(?:\([^)]*\))?(?:\.[a-z][\w-]*(?:\([^)]*\))?|\[[^\]]+\])*|\{[^}]+\})/i,lookbehind:!0,inside:{}},string:{pattern:/"[^"]*"|'[^']*'/,greedy:!0},number:/\b\d+\b/,boolean:/\b(?:false|true)\b/,operator:/[=!<>]=?|[+*/%-]|&&|\|\||\.\.|\b(?:eq|g[et]|l[et]|n(?:e|ot))\b/,punctuation:/[(){}[\]:,.]/};r.variable.inside={string:r.string,function:{pattern:/([^\w-])[a-z][\w-]*(?=\()/,lookbehind:!0},number:r.number,boolean:r.boolean,punctuation:r.punctuation},n.languages.insertBefore("velocity","comment",{unparsed:{pattern:/(^|[^\\])#\[\[[\s\S]*?\]\]#/,lookbehind:!0,greedy:!0,inside:{punctuation:/^#\[\[|\]\]#$/}},"velocity-comment":[{pattern:/(^|[^\\])#\*[\s\S]*?\*#/,lookbehind:!0,greedy:!0,alias:"comment"},{pattern:/(^|[^\\])##.*/,lookbehind:!0,greedy:!0,alias:"comment"}],directive:{pattern:/(^|[^\\](?:\\\\)*)#@?(?:[a-z][\w-]*|\{[a-z][\w-]*\})(?:\s*\((?:[^()]|\([^()]*\))*\))?/i,lookbehind:!0,inside:{keyword:{pattern:/^#@?(?:[a-z][\w-]*|\{[a-z][\w-]*\})|\bin\b/,inside:{punctuation:/[{}]/}},rest:r}},variable:r.variable}),n.languages.velocity.tag.inside["attr-value"].inside.rest=n.languages.velocity})(t)}return j$}var U$,yG;function r8e(){if(yG)return U$;yG=1,U$=e,e.displayName="verilog",e.aliases=[];function e(t){t.languages.verilog={comment:{pattern:/\/\/.*|\/\*[\s\S]*?\*\//,greedy:!0},string:{pattern:/"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"/,greedy:!0},"kernel-function":{pattern:/\B\$\w+\b/,alias:"property"},constant:/\B`\w+\b/,function:/\b\w+(?=\()/,keyword:/\b(?:alias|and|assert|assign|assume|automatic|before|begin|bind|bins|binsof|bit|break|buf|bufif0|bufif1|byte|case|casex|casez|cell|chandle|class|clocking|cmos|config|const|constraint|context|continue|cover|covergroup|coverpoint|cross|deassign|default|defparam|design|disable|dist|do|edge|else|end|endcase|endclass|endclocking|endconfig|endfunction|endgenerate|endgroup|endinterface|endmodule|endpackage|endprimitive|endprogram|endproperty|endsequence|endspecify|endtable|endtask|enum|event|expect|export|extends|extern|final|first_match|for|force|foreach|forever|fork|forkjoin|function|generate|genvar|highz0|highz1|if|iff|ifnone|ignore_bins|illegal_bins|import|incdir|include|initial|inout|input|inside|instance|int|integer|interface|intersect|join|join_any|join_none|large|liblist|library|local|localparam|logic|longint|macromodule|matches|medium|modport|module|nand|negedge|new|nmos|nor|noshowcancelled|not|notif0|notif1|null|or|output|package|packed|parameter|pmos|posedge|primitive|priority|program|property|protected|pull0|pull1|pulldown|pullup|pulsestyle_ondetect|pulsestyle_onevent|pure|rand|randc|randcase|randsequence|rcmos|real|realtime|ref|reg|release|repeat|return|rnmos|rpmos|rtran|rtranif0|rtranif1|scalared|sequence|shortint|shortreal|showcancelled|signed|small|solve|specify|specparam|static|string|strong0|strong1|struct|super|supply0|supply1|table|tagged|task|this|throughout|time|timeprecision|timeunit|tran|tranif0|tranif1|tri|tri0|tri1|triand|trior|trireg|type|typedef|union|unique|unsigned|use|uwire|var|vectored|virtual|void|wait|wait_order|wand|weak0|weak1|while|wildcard|wire|with|within|wor|xnor|xor)\b/,important:/\b(?:always|always_comb|always_ff|always_latch)\b(?: *@)?/,number:/\B##?\d+|(?:\b\d+)?'[odbh] ?[\da-fzx_?]+|\b(?:\d*[._])?\d+(?:e[-+]?\d+)?/i,operator:/[-+{}^~%*\/?=!<>&|]+/,punctuation:/[[\];(),.:]/}}return U$}var B$,bG;function a8e(){if(bG)return B$;bG=1,B$=e,e.displayName="vhdl",e.aliases=[];function e(t){t.languages.vhdl={comment:/--.+/,"vhdl-vectors":{pattern:/\b[oxb]"[\da-f_]+"|"[01uxzwlh-]+"/i,alias:"number"},"quoted-function":{pattern:/"\S+?"(?=\()/,alias:"function"},string:/"(?:[^\\"\r\n]|\\(?:\r\n|[\s\S]))*"/,constant:/\b(?:library|use)\b/i,keyword:/\b(?:'active|'ascending|'base|'delayed|'driving|'driving_value|'event|'high|'image|'instance_name|'last_active|'last_event|'last_value|'left|'leftof|'length|'low|'path_name|'pos|'pred|'quiet|'range|'reverse_range|'right|'rightof|'simple_name|'stable|'succ|'transaction|'val|'value|access|after|alias|all|architecture|array|assert|attribute|begin|block|body|buffer|bus|case|component|configuration|constant|disconnect|downto|else|elsif|end|entity|exit|file|for|function|generate|generic|group|guarded|if|impure|in|inertial|inout|is|label|library|linkage|literal|loop|map|new|next|null|of|on|open|others|out|package|port|postponed|procedure|process|pure|range|record|register|reject|report|return|select|severity|shared|signal|subtype|then|to|transport|type|unaffected|units|until|use|variable|wait|when|while|with)\b/i,boolean:/\b(?:false|true)\b/i,function:/\w+(?=\()/,number:/'[01uxzwlh-]'|\b(?:\d+#[\da-f_.]+#|\d[\d_.]*)(?:e[-+]?\d+)?/i,operator:/[<>]=?|:=|[-+*/&=]|\b(?:abs|and|mod|nand|nor|not|or|rem|rol|ror|sla|sll|sra|srl|xnor|xor)\b/i,punctuation:/[{}[\];(),.:]/}}return B$}var W$,wG;function i8e(){if(wG)return W$;wG=1,W$=e,e.displayName="vim",e.aliases=[];function e(t){t.languages.vim={string:/"(?:[^"\\\r\n]|\\.)*"|'(?:[^'\r\n]|'')*'/,comment:/".*/,function:/\b\w+(?=\()/,keyword:/\b(?:N|Next|P|Print|X|XMLent|XMLns|ab|abbreviate|abc|abclear|abo|aboveleft|al|all|ar|arga|argadd|argd|argdelete|argdo|arge|argedit|argg|argglobal|argl|arglocal|args|argu|argument|as|ascii|b|bN|bNext|ba|bad|badd|ball|bd|bdelete|be|bel|belowright|bf|bfirst|bl|blast|bm|bmodified|bn|bnext|bo|botright|bp|bprevious|br|brea|break|breaka|breakadd|breakd|breakdel|breakl|breaklist|brewind|bro|browse|bufdo|buffer|buffers|bun|bunload|bw|bwipeout|c|cN|cNext|cNfcNfile|ca|cabbrev|cabc|cabclear|cad|caddb|caddbuffer|caddexpr|caddf|caddfile|cal|call|cat|catch|cb|cbuffer|cc|ccl|cclose|cd|ce|center|cex|cexpr|cf|cfile|cfir|cfirst|cg|cgetb|cgetbuffer|cgete|cgetexpr|cgetfile|change|changes|chd|chdir|che|checkpath|checkt|checktime|cl|cla|clast|clist|clo|close|cmapc|cmapclear|cn|cnew|cnewer|cnext|cnf|cnfile|cnorea|cnoreabbrev|co|col|colder|colo|colorscheme|comc|comclear|comp|compiler|con|conf|confirm|continue|cope|copen|copy|cp|cpf|cpfile|cprevious|cq|cquit|cr|crewind|cu|cuna|cunabbrev|cunmap|cw|cwindow|d|debugg|debuggreedy|delc|delcommand|delete|delf|delfunction|delm|delmarks|di|diffg|diffget|diffoff|diffpatch|diffpu|diffput|diffsplit|diffthis|diffu|diffupdate|dig|digraphs|display|dj|djump|dl|dlist|dr|drop|ds|dsearch|dsp|dsplit|e|earlier|echoe|echoerr|echom|echomsg|echon|edit|el|else|elsei|elseif|em|emenu|en|endf|endfo|endfor|endfun|endfunction|endif|endt|endtry|endw|endwhile|ene|enew|ex|exi|exit|exu|exusage|f|file|files|filetype|fin|fina|finally|find|fini|finish|fir|first|fix|fixdel|fo|fold|foldc|foldclose|foldd|folddoc|folddoclosed|folddoopen|foldo|foldopen|for|fu|fun|function|go|goto|gr|grep|grepa|grepadd|h|ha|hardcopy|help|helpf|helpfind|helpg|helpgrep|helpt|helptags|hid|hide|his|history|ia|iabbrev|iabc|iabclear|if|ij|ijump|il|ilist|imapc|imapclear|in|inorea|inoreabbrev|isearch|isp|isplit|iu|iuna|iunabbrev|iunmap|j|join|ju|jumps|k|kee|keepalt|keepj|keepjumps|keepmarks|l|lN|lNext|lNf|lNfile|la|lad|laddb|laddbuffer|laddexpr|laddf|laddfile|lan|language|last|later|lb|lbuffer|lc|lcd|lch|lchdir|lcl|lclose|left|lefta|leftabove|let|lex|lexpr|lf|lfile|lfir|lfirst|lg|lgetb|lgetbuffer|lgete|lgetexpr|lgetfile|lgr|lgrep|lgrepa|lgrepadd|lh|lhelpgrep|list|ll|lla|llast|lli|llist|lm|lmak|lmake|lmap|lmapc|lmapclear|ln|lne|lnew|lnewer|lnext|lnf|lnfile|lnoremap|lo|loadview|loc|lockmarks|lockv|lockvar|lol|lolder|lop|lopen|lp|lpf|lpfile|lprevious|lr|lrewind|ls|lt|ltag|lu|lunmap|lv|lvimgrep|lvimgrepa|lvimgrepadd|lw|lwindow|m|ma|mak|make|mark|marks|mat|match|menut|menutranslate|mk|mkexrc|mks|mksession|mksp|mkspell|mkv|mkvie|mkview|mkvimrc|mod|mode|move|mz|mzf|mzfile|mzscheme|n|nbkey|new|next|nmapc|nmapclear|noh|nohlsearch|norea|noreabbrev|nu|number|nun|nunmap|o|omapc|omapclear|on|only|open|opt|options|ou|ounmap|p|pc|pclose|pe|ped|pedit|perl|perld|perldo|po|pop|popu|popup|pp|ppop|pre|preserve|prev|previous|print|prof|profd|profdel|profile|promptf|promptfind|promptr|promptrepl|ps|psearch|ptN|ptNext|pta|ptag|ptf|ptfirst|ptj|ptjump|ptl|ptlast|ptn|ptnext|ptp|ptprevious|ptr|ptrewind|pts|ptselect|pu|put|pw|pwd|py|pyf|pyfile|python|q|qa|qall|quit|quita|quitall|r|read|rec|recover|red|redi|redir|redo|redr|redraw|redraws|redrawstatus|reg|registers|res|resize|ret|retab|retu|return|rew|rewind|ri|right|rightb|rightbelow|ru|rub|ruby|rubyd|rubydo|rubyf|rubyfile|runtime|rv|rviminfo|sN|sNext|sa|sal|sall|san|sandbox|sargument|sav|saveas|sb|sbN|sbNext|sba|sball|sbf|sbfirst|sbl|sblast|sbm|sbmodified|sbn|sbnext|sbp|sbprevious|sbr|sbrewind|sbuffer|scrip|scripte|scriptencoding|scriptnames|se|set|setf|setfiletype|setg|setglobal|setl|setlocal|sf|sfind|sfir|sfirst|sh|shell|sign|sil|silent|sim|simalt|sl|sla|slast|sleep|sm|smagic|smap|smapc|smapclear|sme|smenu|sn|snext|sni|sniff|sno|snomagic|snor|snoremap|snoreme|snoremenu|so|sor|sort|source|sp|spe|spelld|spelldump|spellgood|spelli|spellinfo|spellr|spellrepall|spellu|spellundo|spellw|spellwrong|split|spr|sprevious|sre|srewind|st|sta|stag|star|startg|startgreplace|startinsert|startr|startreplace|stj|stjump|stop|stopi|stopinsert|sts|stselect|sun|sunhide|sunm|sunmap|sus|suspend|sv|sview|syncbind|t|tN|tNext|ta|tab|tabN|tabNext|tabc|tabclose|tabd|tabdo|tabe|tabedit|tabf|tabfind|tabfir|tabfirst|tabl|tablast|tabm|tabmove|tabn|tabnew|tabnext|tabo|tabonly|tabp|tabprevious|tabr|tabrewind|tabs|tag|tags|tc|tcl|tcld|tcldo|tclf|tclfile|te|tearoff|tf|tfirst|th|throw|tj|tjump|tl|tlast|tm|tmenu|tn|tnext|to|topleft|tp|tprevious|tr|trewind|try|ts|tselect|tu|tunmenu|u|una|unabbreviate|undo|undoj|undojoin|undol|undolist|unh|unhide|unlet|unlo|unlockvar|unm|unmap|up|update|ve|verb|verbose|version|vert|vertical|vi|vie|view|vim|vimgrep|vimgrepa|vimgrepadd|visual|viu|viusage|vmapc|vmapclear|vne|vnew|vs|vsplit|vu|vunmap|w|wN|wNext|wa|wall|wh|while|win|winc|wincmd|windo|winp|winpos|winsize|wn|wnext|wp|wprevious|wq|wqa|wqall|write|ws|wsverb|wv|wviminfo|x|xa|xall|xit|xm|xmap|xmapc|xmapclear|xme|xmenu|xn|xnoremap|xnoreme|xnoremenu|xu|xunmap|y|yank)\b/,builtin:/\b(?:acd|ai|akm|aleph|allowrevins|altkeymap|ambiwidth|ambw|anti|antialias|arab|arabic|arabicshape|ari|arshape|autochdir|autocmd|autoindent|autoread|autowrite|autowriteall|aw|awa|background|backspace|backup|backupcopy|backupdir|backupext|backupskip|balloondelay|ballooneval|balloonexpr|bdir|bdlay|beval|bex|bexpr|bg|bh|bin|binary|biosk|bioskey|bk|bkc|bomb|breakat|brk|browsedir|bs|bsdir|bsk|bt|bufhidden|buflisted|buftype|casemap|ccv|cdpath|cedit|cfu|ch|charconvert|ci|cin|cindent|cink|cinkeys|cino|cinoptions|cinw|cinwords|clipboard|cmdheight|cmdwinheight|cmp|cms|columns|com|comments|commentstring|compatible|complete|completefunc|completeopt|consk|conskey|copyindent|cot|cpo|cpoptions|cpt|cscopepathcomp|cscopeprg|cscopequickfix|cscopetag|cscopetagorder|cscopeverbose|cspc|csprg|csqf|cst|csto|csverb|cuc|cul|cursorcolumn|cursorline|cwh|debug|deco|def|define|delcombine|dex|dg|dict|dictionary|diff|diffexpr|diffopt|digraph|dip|dir|directory|dy|ea|ead|eadirection|eb|ed|edcompatible|ef|efm|ei|ek|enc|encoding|endofline|eol|ep|equalalways|equalprg|errorbells|errorfile|errorformat|esckeys|et|eventignore|expandtab|exrc|fcl|fcs|fdc|fde|fdi|fdl|fdls|fdm|fdn|fdo|fdt|fen|fenc|fencs|fex|ff|ffs|fileencoding|fileencodings|fileformat|fileformats|fillchars|fk|fkmap|flp|fml|fmr|foldcolumn|foldenable|foldexpr|foldignore|foldlevel|foldlevelstart|foldmarker|foldmethod|foldminlines|foldnestmax|foldtext|formatexpr|formatlistpat|formatoptions|formatprg|fp|fs|fsync|ft|gcr|gd|gdefault|gfm|gfn|gfs|gfw|ghr|gp|grepformat|grepprg|gtl|gtt|guicursor|guifont|guifontset|guifontwide|guiheadroom|guioptions|guipty|guitablabel|guitabtooltip|helpfile|helpheight|helplang|hf|hh|hi|hidden|highlight|hk|hkmap|hkmapp|hkp|hl|hlg|hls|hlsearch|ic|icon|iconstring|ignorecase|im|imactivatekey|imak|imc|imcmdline|imd|imdisable|imi|iminsert|ims|imsearch|inc|include|includeexpr|incsearch|inde|indentexpr|indentkeys|indk|inex|inf|infercase|insertmode|invacd|invai|invakm|invallowrevins|invaltkeymap|invanti|invantialias|invar|invarab|invarabic|invarabicshape|invari|invarshape|invautochdir|invautoindent|invautoread|invautowrite|invautowriteall|invaw|invawa|invbackup|invballooneval|invbeval|invbin|invbinary|invbiosk|invbioskey|invbk|invbl|invbomb|invbuflisted|invcf|invci|invcin|invcindent|invcompatible|invconfirm|invconsk|invconskey|invcopyindent|invcp|invcscopetag|invcscopeverbose|invcst|invcsverb|invcuc|invcul|invcursorcolumn|invcursorline|invdeco|invdelcombine|invdg|invdiff|invdigraph|invdisable|invea|inveb|inved|invedcompatible|invek|invendofline|inveol|invequalalways|inverrorbells|invesckeys|invet|invex|invexpandtab|invexrc|invfen|invfk|invfkmap|invfoldenable|invgd|invgdefault|invguipty|invhid|invhidden|invhk|invhkmap|invhkmapp|invhkp|invhls|invhlsearch|invic|invicon|invignorecase|invim|invimc|invimcmdline|invimd|invincsearch|invinf|invinfercase|invinsertmode|invis|invjoinspaces|invjs|invlazyredraw|invlbr|invlinebreak|invlisp|invlist|invloadplugins|invlpl|invlz|invma|invmacatsui|invmagic|invmh|invml|invmod|invmodeline|invmodifiable|invmodified|invmore|invmousef|invmousefocus|invmousehide|invnu|invnumber|invodev|invopendevice|invpaste|invpi|invpreserveindent|invpreviewwindow|invprompt|invpvw|invreadonly|invremap|invrestorescreen|invrevins|invri|invrightleft|invrightleftcmd|invrl|invrlc|invro|invrs|invru|invruler|invsb|invsc|invscb|invscrollbind|invscs|invsecure|invsft|invshellslash|invshelltemp|invshiftround|invshortname|invshowcmd|invshowfulltag|invshowmatch|invshowmode|invsi|invsm|invsmartcase|invsmartindent|invsmarttab|invsmd|invsn|invsol|invspell|invsplitbelow|invsplitright|invspr|invsr|invssl|invsta|invstartofline|invstmp|invswapfile|invswf|invta|invtagbsearch|invtagrelative|invtagstack|invtbi|invtbidi|invtbs|invtermbidi|invterse|invtextauto|invtextmode|invtf|invtgst|invtildeop|invtimeout|invtitle|invto|invtop|invtr|invttimeout|invttybuiltin|invttyfast|invtx|invvb|invvisualbell|invwa|invwarn|invwb|invweirdinvert|invwfh|invwfw|invwildmenu|invwinfixheight|invwinfixwidth|invwiv|invwmnu|invwrap|invwrapscan|invwrite|invwriteany|invwritebackup|invws|isf|isfname|isi|isident|isk|iskeyword|isprint|joinspaces|js|key|keymap|keymodel|keywordprg|km|kmp|kp|langmap|langmenu|laststatus|lazyredraw|lbr|lcs|linebreak|lines|linespace|lisp|lispwords|listchars|loadplugins|lpl|lsp|lz|macatsui|magic|makeef|makeprg|matchpairs|matchtime|maxcombine|maxfuncdepth|maxmapdepth|maxmem|maxmempattern|maxmemtot|mco|mef|menuitems|mfd|mh|mis|mkspellmem|ml|mls|mm|mmd|mmp|mmt|modeline|modelines|modifiable|modified|more|mouse|mousef|mousefocus|mousehide|mousem|mousemodel|mouses|mouseshape|mouset|mousetime|mp|mps|msm|mzq|mzquantum|nf|noacd|noai|noakm|noallowrevins|noaltkeymap|noanti|noantialias|noar|noarab|noarabic|noarabicshape|noari|noarshape|noautochdir|noautoindent|noautoread|noautowrite|noautowriteall|noaw|noawa|nobackup|noballooneval|nobeval|nobin|nobinary|nobiosk|nobioskey|nobk|nobl|nobomb|nobuflisted|nocf|noci|nocin|nocindent|nocompatible|noconfirm|noconsk|noconskey|nocopyindent|nocp|nocscopetag|nocscopeverbose|nocst|nocsverb|nocuc|nocul|nocursorcolumn|nocursorline|nodeco|nodelcombine|nodg|nodiff|nodigraph|nodisable|noea|noeb|noed|noedcompatible|noek|noendofline|noeol|noequalalways|noerrorbells|noesckeys|noet|noex|noexpandtab|noexrc|nofen|nofk|nofkmap|nofoldenable|nogd|nogdefault|noguipty|nohid|nohidden|nohk|nohkmap|nohkmapp|nohkp|nohls|noic|noicon|noignorecase|noim|noimc|noimcmdline|noimd|noincsearch|noinf|noinfercase|noinsertmode|nois|nojoinspaces|nojs|nolazyredraw|nolbr|nolinebreak|nolisp|nolist|noloadplugins|nolpl|nolz|noma|nomacatsui|nomagic|nomh|noml|nomod|nomodeline|nomodifiable|nomodified|nomore|nomousef|nomousefocus|nomousehide|nonu|nonumber|noodev|noopendevice|nopaste|nopi|nopreserveindent|nopreviewwindow|noprompt|nopvw|noreadonly|noremap|norestorescreen|norevins|nori|norightleft|norightleftcmd|norl|norlc|noro|nors|noru|noruler|nosb|nosc|noscb|noscrollbind|noscs|nosecure|nosft|noshellslash|noshelltemp|noshiftround|noshortname|noshowcmd|noshowfulltag|noshowmatch|noshowmode|nosi|nosm|nosmartcase|nosmartindent|nosmarttab|nosmd|nosn|nosol|nospell|nosplitbelow|nosplitright|nospr|nosr|nossl|nosta|nostartofline|nostmp|noswapfile|noswf|nota|notagbsearch|notagrelative|notagstack|notbi|notbidi|notbs|notermbidi|noterse|notextauto|notextmode|notf|notgst|notildeop|notimeout|notitle|noto|notop|notr|nottimeout|nottybuiltin|nottyfast|notx|novb|novisualbell|nowa|nowarn|nowb|noweirdinvert|nowfh|nowfw|nowildmenu|nowinfixheight|nowinfixwidth|nowiv|nowmnu|nowrap|nowrapscan|nowrite|nowriteany|nowritebackup|nows|nrformats|numberwidth|nuw|odev|oft|ofu|omnifunc|opendevice|operatorfunc|opfunc|osfiletype|pa|para|paragraphs|paste|pastetoggle|patchexpr|patchmode|path|pdev|penc|pex|pexpr|pfn|ph|pheader|pi|pm|pmbcs|pmbfn|popt|preserveindent|previewheight|previewwindow|printdevice|printencoding|printexpr|printfont|printheader|printmbcharset|printmbfont|printoptions|prompt|pt|pumheight|pvh|pvw|qe|quoteescape|readonly|remap|report|restorescreen|revins|rightleft|rightleftcmd|rl|rlc|ro|rs|rtp|ruf|ruler|rulerformat|runtimepath|sbo|sc|scb|scr|scroll|scrollbind|scrolljump|scrolloff|scrollopt|scs|sect|sections|secure|sel|selection|selectmode|sessionoptions|sft|shcf|shellcmdflag|shellpipe|shellquote|shellredir|shellslash|shelltemp|shelltype|shellxquote|shiftround|shiftwidth|shm|shortmess|shortname|showbreak|showcmd|showfulltag|showmatch|showmode|showtabline|shq|si|sidescroll|sidescrolloff|siso|sj|slm|smartcase|smartindent|smarttab|smc|smd|softtabstop|sol|spc|spell|spellcapcheck|spellfile|spelllang|spellsuggest|spf|spl|splitbelow|splitright|sps|sr|srr|ss|ssl|ssop|stal|startofline|statusline|stl|stmp|su|sua|suffixes|suffixesadd|sw|swapfile|swapsync|swb|swf|switchbuf|sws|sxq|syn|synmaxcol|syntax|t_AB|t_AF|t_AL|t_CS|t_CV|t_Ce|t_Co|t_Cs|t_DL|t_EI|t_F1|t_F2|t_F3|t_F4|t_F5|t_F6|t_F7|t_F8|t_F9|t_IE|t_IS|t_K1|t_K3|t_K4|t_K5|t_K6|t_K7|t_K8|t_K9|t_KA|t_KB|t_KC|t_KD|t_KE|t_KF|t_KG|t_KH|t_KI|t_KJ|t_KK|t_KL|t_RI|t_RV|t_SI|t_Sb|t_Sf|t_WP|t_WS|t_ZH|t_ZR|t_al|t_bc|t_cd|t_ce|t_cl|t_cm|t_cs|t_da|t_db|t_dl|t_fs|t_k1|t_k2|t_k3|t_k4|t_k5|t_k6|t_k7|t_k8|t_k9|t_kB|t_kD|t_kI|t_kN|t_kP|t_kb|t_kd|t_ke|t_kh|t_kl|t_kr|t_ks|t_ku|t_le|t_mb|t_md|t_me|t_mr|t_ms|t_nd|t_op|t_se|t_so|t_sr|t_te|t_ti|t_ts|t_ue|t_us|t_ut|t_vb|t_ve|t_vi|t_vs|t_xs|tabline|tabpagemax|tabstop|tagbsearch|taglength|tagrelative|tagstack|tal|tb|tbi|tbidi|tbis|tbs|tenc|term|termbidi|termencoding|terse|textauto|textmode|textwidth|tgst|thesaurus|tildeop|timeout|timeoutlen|title|titlelen|titleold|titlestring|toolbar|toolbariconsize|top|tpm|tsl|tsr|ttimeout|ttimeoutlen|ttm|tty|ttybuiltin|ttyfast|ttym|ttymouse|ttyscroll|ttytype|tw|tx|uc|ul|undolevels|updatecount|updatetime|ut|vb|vbs|vdir|verbosefile|vfile|viewdir|viewoptions|viminfo|virtualedit|visualbell|vop|wak|warn|wb|wc|wcm|wd|weirdinvert|wfh|wfw|whichwrap|wi|wig|wildchar|wildcharm|wildignore|wildmenu|wildmode|wildoptions|wim|winaltkeys|window|winfixheight|winfixwidth|winheight|winminheight|winminwidth|winwidth|wiv|wiw|wm|wmh|wmnu|wmw|wop|wrap|wrapmargin|wrapscan|writeany|writebackup|writedelay|ww)\b/,number:/\b(?:0x[\da-f]+|\d+(?:\.\d+)?)\b/i,operator:/\|\||&&|[-+.]=?|[=!](?:[=~][#?]?)?|[<>]=?[#?]?|[*\/%?]|\b(?:is(?:not)?)\b/,punctuation:/[{}[\](),;:]/}}return W$}var z$,SG;function o8e(){if(SG)return z$;SG=1,z$=e,e.displayName="visualBasic",e.aliases=[];function e(t){t.languages["visual-basic"]={comment:{pattern:/(?:['‘’]|REM\b)(?:[^\r\n_]|_(?:\r\n?|\n)?)*/i,inside:{keyword:/^REM/i}},directive:{pattern:/#(?:Const|Else|ElseIf|End|ExternalChecksum|ExternalSource|If|Region)(?:\b_[ \t]*(?:\r\n?|\n)|.)+/i,alias:"property",greedy:!0},string:{pattern:/\$?["“”](?:["“”]{2}|[^"“”])*["“”]C?/i,greedy:!0},date:{pattern:/#[ \t]*(?:\d+([/-])\d+\1\d+(?:[ \t]+(?:\d+[ \t]*(?:AM|PM)|\d+:\d+(?::\d+)?(?:[ \t]*(?:AM|PM))?))?|\d+[ \t]*(?:AM|PM)|\d+:\d+(?::\d+)?(?:[ \t]*(?:AM|PM))?)[ \t]*#/i,alias:"number"},number:/(?:(?:\b\d+(?:\.\d+)?|\.\d+)(?:E[+-]?\d+)?|&[HO][\dA-F]+)(?:[FRD]|U?[ILS])?/i,boolean:/\b(?:False|Nothing|True)\b/i,keyword:/\b(?:AddHandler|AddressOf|Alias|And(?:Also)?|As|Boolean|ByRef|Byte|ByVal|Call|Case|Catch|C(?:Bool|Byte|Char|Date|Dbl|Dec|Int|Lng|Obj|SByte|Short|Sng|Str|Type|UInt|ULng|UShort)|Char|Class|Const|Continue|Currency|Date|Decimal|Declare|Default|Delegate|Dim|DirectCast|Do|Double|Each|Else(?:If)?|End(?:If)?|Enum|Erase|Error|Event|Exit|Finally|For|Friend|Function|Get(?:Type|XMLNamespace)?|Global|GoSub|GoTo|Handles|If|Implements|Imports|In|Inherits|Integer|Interface|Is|IsNot|Let|Lib|Like|Long|Loop|Me|Mod|Module|Must(?:Inherit|Override)|My(?:Base|Class)|Namespace|Narrowing|New|Next|Not(?:Inheritable|Overridable)?|Object|Of|On|Operator|Option(?:al)?|Or(?:Else)?|Out|Overloads|Overridable|Overrides|ParamArray|Partial|Private|Property|Protected|Public|RaiseEvent|ReadOnly|ReDim|RemoveHandler|Resume|Return|SByte|Select|Set|Shadows|Shared|short|Single|Static|Step|Stop|String|Structure|Sub|SyncLock|Then|Throw|To|Try|TryCast|Type|TypeOf|U(?:Integer|Long|Short)|Until|Using|Variant|Wend|When|While|Widening|With(?:Events)?|WriteOnly|Xor)\b/i,operator:/[+\-*/\\^<=>&#@$%!]|\b_(?=[ \t]*[\r\n])/,punctuation:/[{}().,:?]/},t.languages.vb=t.languages["visual-basic"],t.languages.vba=t.languages["visual-basic"]}return z$}var q$,EG;function s8e(){if(EG)return q$;EG=1,q$=e,e.displayName="warpscript",e.aliases=[];function e(t){t.languages.warpscript={comment:/#.*|\/\/.*|\/\*[\s\S]*?\*\//,string:{pattern:/"(?:[^"\\\r\n]|\\.)*"|'(?:[^'\\\r\n]|\\.)*'|<'(?:[^\\']|'(?!>)|\\.)*'>/,greedy:!0},variable:/\$\S+/,macro:{pattern:/@\S+/,alias:"property"},keyword:/\b(?:BREAK|CHECKMACRO|CONTINUE|CUDF|DEFINED|DEFINEDMACRO|EVAL|FAIL|FOR|FOREACH|FORSTEP|IFT|IFTE|MSGFAIL|NRETURN|RETHROW|RETURN|SWITCH|TRY|UDF|UNTIL|WHILE)\b/,number:/[+-]?\b(?:NaN|Infinity|\d+(?:\.\d*)?(?:[Ee][+-]?\d+)?|0x[\da-fA-F]+|0b[01]+)\b/,boolean:/\b(?:F|T|false|true)\b/,punctuation:/<%|%>|[{}[\]()]/,operator:/==|&&?|\|\|?|\*\*?|>>>?|<<|[<>!~]=?|[-/%^]|\+!?|\b(?:AND|NOT|OR)\b/}}return q$}var H$,TG;function l8e(){if(TG)return H$;TG=1,H$=e,e.displayName="wasm",e.aliases=[];function e(t){t.languages.wasm={comment:[/\(;[\s\S]*?;\)/,{pattern:/;;.*/,greedy:!0}],string:{pattern:/"(?:\\[\s\S]|[^"\\])*"/,greedy:!0},keyword:[{pattern:/\b(?:align|offset)=/,inside:{operator:/=/}},{pattern:/\b(?:(?:f32|f64|i32|i64)(?:\.(?:abs|add|and|ceil|clz|const|convert_[su]\/i(?:32|64)|copysign|ctz|demote\/f64|div(?:_[su])?|eqz?|extend_[su]\/i32|floor|ge(?:_[su])?|gt(?:_[su])?|le(?:_[su])?|load(?:(?:8|16|32)_[su])?|lt(?:_[su])?|max|min|mul|neg?|nearest|or|popcnt|promote\/f32|reinterpret\/[fi](?:32|64)|rem_[su]|rot[lr]|shl|shr_[su]|sqrt|store(?:8|16|32)?|sub|trunc(?:_[su]\/f(?:32|64))?|wrap\/i64|xor))?|memory\.(?:grow|size))\b/,inside:{punctuation:/\./}},/\b(?:anyfunc|block|br(?:_if|_table)?|call(?:_indirect)?|data|drop|elem|else|end|export|func|get_(?:global|local)|global|if|import|local|loop|memory|module|mut|nop|offset|param|result|return|select|set_(?:global|local)|start|table|tee_local|then|type|unreachable)\b/],variable:/\$[\w!#$%&'*+\-./:<=>?@\\^`|~]+/,number:/[+-]?\b(?:\d(?:_?\d)*(?:\.\d(?:_?\d)*)?(?:[eE][+-]?\d(?:_?\d)*)?|0x[\da-fA-F](?:_?[\da-fA-F])*(?:\.[\da-fA-F](?:_?[\da-fA-D])*)?(?:[pP][+-]?\d(?:_?\d)*)?)\b|\binf\b|\bnan(?::0x[\da-fA-F](?:_?[\da-fA-D])*)?\b/,punctuation:/[()]/}}return H$}var V$,CG;function u8e(){if(CG)return V$;CG=1,V$=e,e.displayName="webIdl",e.aliases=[];function e(t){(function(n){var r=/(?:\B-|\b_|\b)[A-Za-z][\w-]*(?![\w-])/.source,a="(?:"+/\b(?:unsigned\s+)?long\s+long(?![\w-])/.source+"|"+/\b(?:unrestricted|unsigned)\s+[a-z]+(?![\w-])/.source+"|"+/(?!(?:unrestricted|unsigned)\b)/.source+r+/(?:\s*<(?:[^<>]|<[^<>]*>)*>)?/.source+")"+/(?:\s*\?)?/.source,i={};n.languages["web-idl"]={comment:{pattern:/\/\/.*|\/\*[\s\S]*?\*\//,greedy:!0},string:{pattern:/"[^"]*"/,greedy:!0},namespace:{pattern:RegExp(/(\bnamespace\s+)/.source+r),lookbehind:!0},"class-name":[{pattern:/(^|[^\w-])(?:iterable|maplike|setlike)\s*<(?:[^<>]|<[^<>]*>)*>/,lookbehind:!0,inside:i},{pattern:RegExp(/(\b(?:attribute|const|deleter|getter|optional|setter)\s+)/.source+a),lookbehind:!0,inside:i},{pattern:RegExp("("+/\bcallback\s+/.source+r+/\s*=\s*/.source+")"+a),lookbehind:!0,inside:i},{pattern:RegExp(/(\btypedef\b\s*)/.source+a),lookbehind:!0,inside:i},{pattern:RegExp(/(\b(?:callback|dictionary|enum|interface(?:\s+mixin)?)\s+)(?!(?:interface|mixin)\b)/.source+r),lookbehind:!0},{pattern:RegExp(/(:\s*)/.source+r),lookbehind:!0},RegExp(r+/(?=\s+(?:implements|includes)\b)/.source),{pattern:RegExp(/(\b(?:implements|includes)\s+)/.source+r),lookbehind:!0},{pattern:RegExp(a+"(?="+/\s*(?:\.{3}\s*)?/.source+r+/\s*[(),;=]/.source+")"),inside:i}],builtin:/\b(?:ArrayBuffer|BigInt64Array|BigUint64Array|ByteString|DOMString|DataView|Float32Array|Float64Array|FrozenArray|Int16Array|Int32Array|Int8Array|ObservableArray|Promise|USVString|Uint16Array|Uint32Array|Uint8Array|Uint8ClampedArray)\b/,keyword:[/\b(?:async|attribute|callback|const|constructor|deleter|dictionary|enum|getter|implements|includes|inherit|interface|mixin|namespace|null|optional|or|partial|readonly|required|setter|static|stringifier|typedef|unrestricted)\b/,/\b(?:any|bigint|boolean|byte|double|float|iterable|long|maplike|object|octet|record|sequence|setlike|short|symbol|undefined|unsigned|void)\b/],boolean:/\b(?:false|true)\b/,number:{pattern:/(^|[^\w-])-?(?:0x[0-9a-f]+|(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?|NaN|Infinity)(?![\w-])/i,lookbehind:!0},operator:/\.{3}|[=:?<>-]/,punctuation:/[(){}[\].,;]/};for(var o in n.languages["web-idl"])o!=="class-name"&&(i[o]=n.languages["web-idl"][o]);n.languages.webidl=n.languages["web-idl"]})(t)}return V$}var G$,kG;function c8e(){if(kG)return G$;kG=1,G$=e,e.displayName="wiki",e.aliases=[];function e(t){t.languages.wiki=t.languages.extend("markup",{"block-comment":{pattern:/(^|[^\\])\/\*[\s\S]*?\*\//,lookbehind:!0,alias:"comment"},heading:{pattern:/^(=+)[^=\r\n].*?\1/m,inside:{punctuation:/^=+|=+$/,important:/.+/}},emphasis:{pattern:/('{2,5}).+?\1/,inside:{"bold-italic":{pattern:/(''''').+?(?=\1)/,lookbehind:!0,alias:["bold","italic"]},bold:{pattern:/(''')[^'](?:.*?[^'])?(?=\1)/,lookbehind:!0},italic:{pattern:/('')[^'](?:.*?[^'])?(?=\1)/,lookbehind:!0},punctuation:/^''+|''+$/}},hr:{pattern:/^-{4,}/m,alias:"punctuation"},url:[/ISBN +(?:97[89][ -]?)?(?:\d[ -]?){9}[\dx]\b|(?:PMID|RFC) +\d+/i,/\[\[.+?\]\]|\[.+?\]/],variable:[/__[A-Z]+__/,/\{{3}.+?\}{3}/,/\{\{.+?\}\}/],symbol:[/^#redirect/im,/~{3,5}/],"table-tag":{pattern:/((?:^|[|!])[|!])[^|\r\n]+\|(?!\|)/m,lookbehind:!0,inside:{"table-bar":{pattern:/\|$/,alias:"punctuation"},rest:t.languages.markup.tag.inside}},punctuation:/^(?:\{\||\|\}|\|-|[*#:;!|])|\|\||!!/m}),t.languages.insertBefore("wiki","tag",{nowiki:{pattern:/<(nowiki|pre|source)\b[^>]*>[\s\S]*?<\/\1>/i,inside:{tag:{pattern:/<(?:nowiki|pre|source)\b[^>]*>|<\/(?:nowiki|pre|source)>/i,inside:t.languages.markup.tag.inside}}}})}return G$}var Y$,xG;function d8e(){if(xG)return Y$;xG=1,Y$=e,e.displayName="wolfram",e.aliases=["mathematica","wl","nb"];function e(t){t.languages.wolfram={comment:/\(\*(?:\(\*(?:[^*]|\*(?!\)))*\*\)|(?!\(\*)[\s\S])*?\*\)/,string:{pattern:/"(?:\\.|[^"\\\r\n])*"/,greedy:!0},keyword:/\b(?:Abs|AbsArg|Accuracy|Block|Do|For|Function|If|Manipulate|Module|Nest|NestList|None|Return|Switch|Table|Which|While)\b/,context:{pattern:/\b\w+`+\w*/,alias:"class-name"},blank:{pattern:/\b\w+_\b/,alias:"regex"},"global-variable":{pattern:/\$\w+/,alias:"variable"},boolean:/\b(?:False|True)\b/,number:/(?:\b(?=\d)|\B(?=\.))(?:0[bo])?(?:(?:\d|0x[\da-f])[\da-f]*(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?j?\b/i,operator:/\/\.|;|=\.|\^=|\^:=|:=|<<|>>|<\||\|>|:>|\|->|->|<-|@@@|@@|@|\/@|=!=|===|==|=|\+|-|\^|\[\/-+%=\]=?|!=|\*\*?=?|\/\/?=?|<[<=>]?|>[=>]?|[&|^~]/,punctuation:/[{}[\];(),.:]/},t.languages.mathematica=t.languages.wolfram,t.languages.wl=t.languages.wolfram,t.languages.nb=t.languages.wolfram}return Y$}var K$,_G;function f8e(){if(_G)return K$;_G=1,K$=e,e.displayName="wren",e.aliases=[];function e(t){t.languages.wren={comment:[{pattern:/\/\*(?:[^*/]|\*(?!\/)|\/(?!\*)|\/\*(?:[^*/]|\*(?!\/)|\/(?!\*)|\/\*(?:[^*/]|\*(?!\/)|\/(?!\*))*\*\/)*\*\/)*\*\//,greedy:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],"triple-quoted-string":{pattern:/"""[\s\S]*?"""/,greedy:!0,alias:"string"},"string-literal":null,hashbang:{pattern:/^#!\/.+/,greedy:!0,alias:"comment"},attribute:{pattern:/#!?[ \t\u3000]*\w+/,alias:"keyword"},"class-name":[{pattern:/(\bclass\s+)\w+/,lookbehind:!0},/\b[A-Z][a-z\d_]*\b/],constant:/\b[A-Z][A-Z\d_]*\b/,null:{pattern:/\bnull\b/,alias:"keyword"},keyword:/\b(?:as|break|class|construct|continue|else|for|foreign|if|import|in|is|return|static|super|this|var|while)\b/,boolean:/\b(?:false|true)\b/,number:/\b(?:0x[\da-f]+|\d+(?:\.\d+)?(?:e[+-]?\d+)?)\b/i,function:/\b[a-z_]\w*(?=\s*[({])/i,operator:/<<|>>|[=!<>]=?|&&|\|\||[-+*/%~^&|?:]|\.{2,3}/,punctuation:/[\[\](){}.,;]/},t.languages.wren["string-literal"]={pattern:/(^|[^\\"])"(?:[^\\"%]|\\[\s\S]|%(?!\()|%\((?:[^()]|\((?:[^()]|\([^)]*\))*\))*\))*"/,lookbehind:!0,greedy:!0,inside:{interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)%\((?:[^()]|\((?:[^()]|\([^)]*\))*\))*\)/,lookbehind:!0,inside:{expression:{pattern:/^(%\()[\s\S]+(?=\)$)/,lookbehind:!0,inside:t.languages.wren},"interpolation-punctuation":{pattern:/^%\(|\)$/,alias:"punctuation"}}},string:/[\s\S]+/}}}return K$}var X$,OG;function p8e(){if(OG)return X$;OG=1,X$=e,e.displayName="xeora",e.aliases=["xeoracube"];function e(t){(function(n){n.languages.xeora=n.languages.extend("markup",{constant:{pattern:/\$(?:DomainContents|PageRenderDuration)\$/,inside:{punctuation:{pattern:/\$/}}},variable:{pattern:/\$@?(?:#+|[-+*~=^])?[\w.]+\$/,inside:{punctuation:{pattern:/[$.]/},operator:{pattern:/#+|[-+*~=^@]/}}},"function-inline":{pattern:/\$F:[-\w.]+\?[-\w.]+(?:,(?:(?:@[-#]*\w+\.[\w+.]\.*)*\|)*(?:(?:[\w+]|[-#*.~^]+[\w+]|=\S)(?:[^$=]|=+[^=])*=*|(?:@[-#]*\w+\.[\w+.]\.*)+(?:(?:[\w+]|[-#*~^][-#*.~^]*[\w+]|=\S)(?:[^$=]|=+[^=])*=*)?)?)?\$/,inside:{variable:{pattern:/(?:[,|])@?(?:#+|[-+*~=^])?[\w.]+/,inside:{punctuation:{pattern:/[,.|]/},operator:{pattern:/#+|[-+*~=^@]/}}},punctuation:{pattern:/\$\w:|[$:?.,|]/}},alias:"function"},"function-block":{pattern:/\$XF:\{[-\w.]+\?[-\w.]+(?:,(?:(?:@[-#]*\w+\.[\w+.]\.*)*\|)*(?:(?:[\w+]|[-#*.~^]+[\w+]|=\S)(?:[^$=]|=+[^=])*=*|(?:@[-#]*\w+\.[\w+.]\.*)+(?:(?:[\w+]|[-#*~^][-#*.~^]*[\w+]|=\S)(?:[^$=]|=+[^=])*=*)?)?)?\}:XF\$/,inside:{punctuation:{pattern:/[$:{}?.,|]/}},alias:"function"},"directive-inline":{pattern:/\$\w(?:#\d+\+?)?(?:\[[-\w.]+\])?:[-\/\w.]+\$/,inside:{punctuation:{pattern:/\$(?:\w:|C(?:\[|#\d))?|[:{[\]]/,inside:{tag:{pattern:/#\d/}}}},alias:"function"},"directive-block-open":{pattern:/\$\w+:\{|\$\w(?:#\d+\+?)?(?:\[[-\w.]+\])?:[-\w.]+:\{(?:![A-Z]+)?/,inside:{punctuation:{pattern:/\$(?:\w:|C(?:\[|#\d))?|[:{[\]]/,inside:{tag:{pattern:/#\d/}}},attribute:{pattern:/![A-Z]+$/,inside:{punctuation:{pattern:/!/}},alias:"keyword"}},alias:"function"},"directive-block-separator":{pattern:/\}:[-\w.]+:\{/,inside:{punctuation:{pattern:/[:{}]/}},alias:"function"},"directive-block-close":{pattern:/\}:[-\w.]+\$/,inside:{punctuation:{pattern:/[:{}$]/}},alias:"function"}}),n.languages.insertBefore("inside","punctuation",{variable:n.languages.xeora["function-inline"].inside.variable},n.languages.xeora["function-block"]),n.languages.xeoracube=n.languages.xeora})(t)}return X$}var Q$,RG;function h8e(){if(RG)return Q$;RG=1,Q$=e,e.displayName="xmlDoc",e.aliases=[];function e(t){(function(n){function r(l,u){n.languages[l]&&n.languages.insertBefore(l,"comment",{"doc-comment":u})}var a=n.languages.markup.tag,i={pattern:/\/\/\/.*/,greedy:!0,alias:"comment",inside:{tag:a}},o={pattern:/'''.*/,greedy:!0,alias:"comment",inside:{tag:a}};r("csharp",i),r("fsharp",i),r("vbnet",o)})(t)}return Q$}var J$,PG;function m8e(){if(PG)return J$;PG=1,J$=e,e.displayName="xojo",e.aliases=[];function e(t){t.languages.xojo={comment:{pattern:/(?:'|\/\/|Rem\b).+/i,greedy:!0},string:{pattern:/"(?:""|[^"])*"/,greedy:!0},number:[/(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:E[+-]?\d+)?/i,/&[bchou][a-z\d]+/i],directive:{pattern:/#(?:Else|ElseIf|Endif|If|Pragma)\b/i,alias:"property"},keyword:/\b(?:AddHandler|App|Array|As(?:signs)?|Auto|Boolean|Break|By(?:Ref|Val)|Byte|Call|Case|Catch|CFStringRef|CGFloat|Class|Color|Const|Continue|CString|Currency|CurrentMethodName|Declare|Delegate|Dim|Do(?:uble|wnTo)?|Each|Else(?:If)?|End|Enumeration|Event|Exception|Exit|Extends|False|Finally|For|Function|Get|GetTypeInfo|Global|GOTO|If|Implements|In|Inherits|Int(?:8|16|32|64|eger|erface)?|Lib|Loop|Me|Module|Next|Nil|Object|Optional|OSType|ParamArray|Private|Property|Protected|PString|Ptr|Raise(?:Event)?|ReDim|RemoveHandler|Return|Select(?:or)?|Self|Set|Shared|Short|Single|Soft|Static|Step|String|Sub|Super|Text|Then|To|True|Try|Ubound|UInt(?:8|16|32|64|eger)?|Until|Using|Var(?:iant)?|Wend|While|WindowPtr|WString)\b/i,operator:/<[=>]?|>=?|[+\-*\/\\^=]|\b(?:AddressOf|And|Ctype|IsA?|Mod|New|Not|Or|WeakAddressOf|Xor)\b/i,punctuation:/[.,;:()]/}}return J$}var Z$,AG;function g8e(){if(AG)return Z$;AG=1,Z$=e,e.displayName="xquery",e.aliases=[];function e(t){(function(n){n.languages.xquery=n.languages.extend("markup",{"xquery-comment":{pattern:/\(:[\s\S]*?:\)/,greedy:!0,alias:"comment"},string:{pattern:/(["'])(?:\1\1|(?!\1)[\s\S])*\1/,greedy:!0},extension:{pattern:/\(#.+?#\)/,alias:"symbol"},variable:/\$[-\w:]+/,axis:{pattern:/(^|[^-])(?:ancestor(?:-or-self)?|attribute|child|descendant(?:-or-self)?|following(?:-sibling)?|parent|preceding(?:-sibling)?|self)(?=::)/,lookbehind:!0,alias:"operator"},"keyword-operator":{pattern:/(^|[^:-])\b(?:and|castable as|div|eq|except|ge|gt|idiv|instance of|intersect|is|le|lt|mod|ne|or|union)\b(?=$|[^:-])/,lookbehind:!0,alias:"operator"},keyword:{pattern:/(^|[^:-])\b(?:as|ascending|at|base-uri|boundary-space|case|cast as|collation|construction|copy-namespaces|declare|default|descending|else|empty (?:greatest|least)|encoding|every|external|for|function|if|import|in|inherit|lax|let|map|module|namespace|no-inherit|no-preserve|option|order(?: by|ed|ing)?|preserve|return|satisfies|schema|some|stable|strict|strip|then|to|treat as|typeswitch|unordered|validate|variable|version|where|xquery)\b(?=$|[^:-])/,lookbehind:!0},function:/[\w-]+(?::[\w-]+)*(?=\s*\()/,"xquery-element":{pattern:/(element\s+)[\w-]+(?::[\w-]+)*/,lookbehind:!0,alias:"tag"},"xquery-attribute":{pattern:/(attribute\s+)[\w-]+(?::[\w-]+)*/,lookbehind:!0,alias:"attr-name"},builtin:{pattern:/(^|[^:-])\b(?:attribute|comment|document|element|processing-instruction|text|xs:(?:ENTITIES|ENTITY|ID|IDREFS?|NCName|NMTOKENS?|NOTATION|Name|QName|anyAtomicType|anyType|anyURI|base64Binary|boolean|byte|date|dateTime|dayTimeDuration|decimal|double|duration|float|gDay|gMonth|gMonthDay|gYear|gYearMonth|hexBinary|int|integer|language|long|negativeInteger|nonNegativeInteger|nonPositiveInteger|normalizedString|positiveInteger|short|string|time|token|unsigned(?:Byte|Int|Long|Short)|untyped(?:Atomic)?|yearMonthDuration))\b(?=$|[^:-])/,lookbehind:!0},number:/\b\d+(?:\.\d+)?(?:E[+-]?\d+)?/,operator:[/[+*=?|@]|\.\.?|:=|!=|<[=<]?|>[=>]?/,{pattern:/(\s)-(?=\s)/,lookbehind:!0}],punctuation:/[[\](){},;:/]/}),n.languages.xquery.tag.pattern=/<\/?(?!\d)[^\s>\/=$<%]+(?:\s+[^\s>\/=]+(?:=(?:("|')(?:\\[\s\S]|\{(?!\{)(?:\{(?:\{[^{}]*\}|[^{}])*\}|[^{}])+\}|(?!\1)[^\\])*\1|[^\s'">=]+))?)*\s*\/?>/,n.languages.xquery.tag.inside["attr-value"].pattern=/=(?:("|')(?:\\[\s\S]|\{(?!\{)(?:\{(?:\{[^{}]*\}|[^{}])*\}|[^{}])+\}|(?!\1)[^\\])*\1|[^\s'">=]+)/,n.languages.xquery.tag.inside["attr-value"].inside.punctuation=/^="|"$/,n.languages.xquery.tag.inside["attr-value"].inside.expression={pattern:/\{(?!\{)(?:\{(?:\{[^{}]*\}|[^{}])*\}|[^{}])+\}/,inside:n.languages.xquery,alias:"language-xquery"};var r=function(i){return typeof i=="string"?i:typeof i.content=="string"?i.content:i.content.map(r).join("")},a=function(i){for(var o=[],l=0;l0&&o[o.length-1].tagName===r(u.content[0].content[1])&&o.pop():u.content[u.content.length-1].content==="/>"||o.push({tagName:r(u.content[0].content[1]),openedBraces:0}):o.length>0&&u.type==="punctuation"&&u.content==="{"&&(!i[l+1]||i[l+1].type!=="punctuation"||i[l+1].content!=="{")&&(!i[l-1]||i[l-1].type!=="plain-text"||i[l-1].content!=="{")?o[o.length-1].openedBraces++:o.length>0&&o[o.length-1].openedBraces>0&&u.type==="punctuation"&&u.content==="}"?o[o.length-1].openedBraces--:u.type!=="comment"&&(d=!0)),(d||typeof u=="string")&&o.length>0&&o[o.length-1].openedBraces===0){var f=r(u);l0&&(typeof i[l-1]=="string"||i[l-1].type==="plain-text")&&(f=r(i[l-1])+f,i.splice(l-1,1),l--),/^\s+$/.test(f)?i[l]=f:i[l]=new n.Token("plain-text",f,null,f)}u.content&&typeof u.content!="string"&&a(u.content)}};n.hooks.add("after-tokenize",function(i){i.language==="xquery"&&a(i.tokens)})})(t)}return Z$}var eL,NG;function v8e(){if(NG)return eL;NG=1,eL=e,e.displayName="yang",e.aliases=[];function e(t){t.languages.yang={comment:/\/\*[\s\S]*?\*\/|\/\/.*/,string:{pattern:/"(?:[^\\"]|\\.)*"|'[^']*'/,greedy:!0},keyword:{pattern:/(^|[{};\r\n][ \t]*)[a-z_][\w.-]*/i,lookbehind:!0},namespace:{pattern:/(\s)[a-z_][\w.-]*(?=:)/i,lookbehind:!0},boolean:/\b(?:false|true)\b/,operator:/\+/,punctuation:/[{};:]/}}return eL}var tL,MG;function y8e(){if(MG)return tL;MG=1,tL=e,e.displayName="zig",e.aliases=[];function e(t){(function(n){function r(f){return function(){return f}}var a=/\b(?:align|allowzero|and|anyframe|anytype|asm|async|await|break|cancel|catch|comptime|const|continue|defer|else|enum|errdefer|error|export|extern|fn|for|if|inline|linksection|nakedcc|noalias|nosuspend|null|or|orelse|packed|promise|pub|resume|return|stdcallcc|struct|suspend|switch|test|threadlocal|try|undefined|union|unreachable|usingnamespace|var|volatile|while)\b/,i="\\b(?!"+a.source+")(?!\\d)\\w+\\b",o=/align\s*\((?:[^()]|\([^()]*\))*\)/.source,l=/(?:\?|\bpromise->|(?:\[[^[\]]*\]|\*(?!\*)|\*\*)(?:\s*|\s*const\b|\s*volatile\b|\s*allowzero\b)*)/.source.replace(//g,r(o)),u=/(?:\bpromise\b|(?:\berror\.)?(?:\.)*(?!\s+))/.source.replace(//g,r(i)),d="(?!\\s)(?:!?\\s*(?:"+l+"\\s*)*"+u+")+";n.languages.zig={comment:[{pattern:/\/\/[/!].*/,alias:"doc-comment"},/\/{2}.*/],string:[{pattern:/(^|[^\\@])c?"(?:[^"\\\r\n]|\\.)*"/,lookbehind:!0,greedy:!0},{pattern:/([\r\n])([ \t]+c?\\{2}).*(?:(?:\r\n?|\n)\2.*)*/,lookbehind:!0,greedy:!0}],char:{pattern:/(^|[^\\])'(?:[^'\\\r\n]|[\uD800-\uDFFF]{2}|\\(?:.|x[a-fA-F\d]{2}|u\{[a-fA-F\d]{1,6}\}))'/,lookbehind:!0,greedy:!0},builtin:/\B@(?!\d)\w+(?=\s*\()/,label:{pattern:/(\b(?:break|continue)\s*:\s*)\w+\b|\b(?!\d)\w+\b(?=\s*:\s*(?:\{|while\b))/,lookbehind:!0},"class-name":[/\b(?!\d)\w+(?=\s*=\s*(?:(?:extern|packed)\s+)?(?:enum|struct|union)\s*[({])/,{pattern:RegExp(/(:\s*)(?=\s*(?:\s*)?[=;,)])|(?=\s*(?:\s*)?\{)/.source.replace(//g,r(d)).replace(//g,r(o))),lookbehind:!0,inside:null},{pattern:RegExp(/(\)\s*)(?=\s*(?:\s*)?;)/.source.replace(//g,r(d)).replace(//g,r(o))),lookbehind:!0,inside:null}],"builtin-type":{pattern:/\b(?:anyerror|bool|c_u?(?:int|long|longlong|short)|c_longdouble|c_void|comptime_(?:float|int)|f(?:16|32|64|128)|[iu](?:8|16|32|64|128|size)|noreturn|type|void)\b/,alias:"keyword"},keyword:a,function:/\b(?!\d)\w+(?=\s*\()/,number:/\b(?:0b[01]+|0o[0-7]+|0x[a-fA-F\d]+(?:\.[a-fA-F\d]*)?(?:[pP][+-]?[a-fA-F\d]+)?|\d+(?:\.\d*)?(?:[eE][+-]?\d+)?)\b/,boolean:/\b(?:false|true)\b/,operator:/\.[*?]|\.{2,3}|[-=]>|\*\*|\+\+|\|\||(?:<<|>>|[-+*]%|[-+*/%^&|<>!=])=?|[?~]/,punctuation:/[.:,;(){}[\]]/},n.languages.zig["class-name"].forEach(function(f){f.inside===null&&(f.inside=n.languages.zig)})})(t)}return tL}var nL,IG;function b8e(){if(IG)return nL;IG=1;var e=Dje();return nL=e,e.register(Lje()),e.register(Fje()),e.register(jje()),e.register(Uje()),e.register(Bje()),e.register(Wje()),e.register(zje()),e.register(qje()),e.register(Hje()),e.register(Vje()),e.register(Gje()),e.register(Yje()),e.register(Kje()),e.register(Xje()),e.register(Qje()),e.register(Jje()),e.register(Zje()),e.register(e4e()),e.register(t4e()),e.register(n4e()),e.register(r4e()),e.register(a4e()),e.register(qre()),e.register(Hre()),e.register(i4e()),e.register(o4e()),e.register(s4e()),e.register(l4e()),e.register(u4e()),e.register(c4e()),e.register(d4e()),e.register(f4e()),e.register(p4e()),e.register(h4e()),e.register(vy()),e.register(m4e()),e.register(g4e()),e.register(v4e()),e.register(y4e()),e.register(b4e()),e.register(w4e()),e.register(S4e()),e.register(E4e()),e.register(T4e()),e.register(E4()),e.register(C4e()),e.register(fO()),e.register(k4e()),e.register(x4e()),e.register(_4e()),e.register(O4e()),e.register(R4e()),e.register(P4e()),e.register(A4e()),e.register(N4e()),e.register(M4e()),e.register(I4e()),e.register(D4e()),e.register($4e()),e.register(L4e()),e.register(F4e()),e.register(j4e()),e.register(U4e()),e.register(B4e()),e.register(W4e()),e.register(z4e()),e.register(q4e()),e.register(H4e()),e.register(V4e()),e.register(G4e()),e.register(Y4e()),e.register(K4e()),e.register(X4e()),e.register(Q4e()),e.register(J4e()),e.register(Z4e()),e.register(eUe()),e.register(tUe()),e.register(nUe()),e.register(rUe()),e.register(aUe()),e.register(iUe()),e.register(oUe()),e.register(sUe()),e.register(lUe()),e.register(uUe()),e.register(cUe()),e.register(dUe()),e.register(fUe()),e.register(pUe()),e.register(hUe()),e.register(mUe()),e.register(gUe()),e.register(vUe()),e.register(T4()),e.register(yUe()),e.register(bUe()),e.register(wUe()),e.register(SUe()),e.register(EUe()),e.register(TUe()),e.register(CUe()),e.register(kUe()),e.register(xUe()),e.register(_Ue()),e.register(OUe()),e.register(RUe()),e.register(PUe()),e.register(AUe()),e.register(NUe()),e.register(MUe()),e.register(IUe()),e.register(C4()),e.register(DUe()),e.register(hO()),e.register($Ue()),e.register(LUe()),e.register(FUe()),e.register(jUe()),e.register(UUe()),e.register(BUe()),e.register(WUe()),e.register(x4()),e.register(zUe()),e.register(qUe()),e.register(HUe()),e.register(Gre()),e.register(VUe()),e.register(GUe()),e.register(YUe()),e.register(KUe()),e.register(XUe()),e.register(QUe()),e.register(JUe()),e.register(ZUe()),e.register(e6e()),e.register(t6e()),e.register(n6e()),e.register(r6e()),e.register(a6e()),e.register(i6e()),e.register(o6e()),e.register(s6e()),e.register(Vre()),e.register(l6e()),e.register(u6e()),e.register(c6e()),e.register(gs()),e.register(d6e()),e.register(f6e()),e.register(p6e()),e.register(h6e()),e.register(m6e()),e.register(g6e()),e.register(v6e()),e.register(y6e()),e.register(b6e()),e.register(w6e()),e.register(S6e()),e.register(E6e()),e.register(T6e()),e.register(C6e()),e.register(k6e()),e.register(x6e()),e.register(_6e()),e.register(O6e()),e.register(R6e()),e.register(P6e()),e.register(A6e()),e.register(N6e()),e.register(M6e()),e.register(I6e()),e.register(D6e()),e.register($6e()),e.register(L6e()),e.register(F6e()),e.register(j6e()),e.register(U6e()),e.register(B6e()),e.register(W6e()),e.register(mO()),e.register(z6e()),e.register(q6e()),e.register(H6e()),e.register(V6e()),e.register(G6e()),e.register(Y6e()),e.register(K6e()),e.register(X6e()),e.register(Q6e()),e.register(J6e()),e.register(Z6e()),e.register(eBe()),e.register(tBe()),e.register(nBe()),e.register(rBe()),e.register(aBe()),e.register(iBe()),e.register(oBe()),e.register(sBe()),e.register(lBe()),e.register(uBe()),e.register(cBe()),e.register(dBe()),e.register(fBe()),e.register(pBe()),e.register(hBe()),e.register(mBe()),e.register(gBe()),e.register(vBe()),e.register(yBe()),e.register(pO()),e.register(bBe()),e.register(wBe()),e.register(SBe()),e.register(EBe()),e.register(_4()),e.register(TBe()),e.register(CBe()),e.register(kBe()),e.register(xBe()),e.register(_Be()),e.register(OBe()),e.register(RBe()),e.register(PBe()),e.register(ABe()),e.register(NBe()),e.register(MBe()),e.register(IBe()),e.register(S4()),e.register(DBe()),e.register($Be()),e.register(LBe()),e.register(FBe()),e.register(jBe()),e.register(UBe()),e.register(O4()),e.register(BBe()),e.register(WBe()),e.register(zBe()),e.register(qBe()),e.register(HBe()),e.register(VBe()),e.register(GBe()),e.register(YBe()),e.register(Yre()),e.register(KBe()),e.register(k4()),e.register(XBe()),e.register(QBe()),e.register(JBe()),e.register(ZBe()),e.register(e8e()),e.register(t8e()),e.register(Kre()),e.register(n8e()),e.register(r8e()),e.register(a8e()),e.register(i8e()),e.register(o8e()),e.register(s8e()),e.register(l8e()),e.register(u8e()),e.register(c8e()),e.register(d8e()),e.register(f8e()),e.register(p8e()),e.register(h8e()),e.register(m8e()),e.register(g8e()),e.register(Xre()),e.register(v8e()),e.register(y8e()),nL}var w8e=b8e();const S8e=Ic(w8e);var Qre=s3e(S8e,$je);Qre.supportedLanguages=l3e;const E8e={'code[class*="language-"]':{fontFamily:'Consolas, Menlo, Monaco, "Andale Mono WT", "Andale Mono", "Lucida Console", "Lucida Sans Typewriter", "DejaVu Sans Mono", "Bitstream Vera Sans Mono", "Liberation Mono", "Nimbus Mono L", "Courier New", Courier, monospace',fontSize:"14px",lineHeight:"1.375",direction:"ltr",textAlign:"left",whiteSpace:"pre",wordSpacing:"normal",wordBreak:"normal",MozTabSize:"4",OTabSize:"4",tabSize:"4",WebkitHyphens:"none",MozHyphens:"none",msHyphens:"none",hyphens:"none",background:"#faf8f5",color:"#728fcb"},'pre[class*="language-"]':{fontFamily:'Consolas, Menlo, Monaco, "Andale Mono WT", "Andale Mono", "Lucida Console", "Lucida Sans Typewriter", "DejaVu Sans Mono", "Bitstream Vera Sans Mono", "Liberation Mono", "Nimbus Mono L", "Courier New", Courier, monospace',fontSize:"14px",lineHeight:"1.375",direction:"ltr",textAlign:"left",whiteSpace:"pre",wordSpacing:"normal",wordBreak:"normal",MozTabSize:"4",OTabSize:"4",tabSize:"4",WebkitHyphens:"none",MozHyphens:"none",msHyphens:"none",hyphens:"none",background:"#faf8f5",color:"#728fcb",padding:"1em",margin:".5em 0",overflow:"auto"},'pre > code[class*="language-"]':{fontSize:"1em"},'pre[class*="language-"]::-moz-selection':{textShadow:"none",background:"#faf8f5"},'pre[class*="language-"] ::-moz-selection':{textShadow:"none",background:"#faf8f5"},'code[class*="language-"]::-moz-selection':{textShadow:"none",background:"#faf8f5"},'code[class*="language-"] ::-moz-selection':{textShadow:"none",background:"#faf8f5"},'pre[class*="language-"]::selection':{textShadow:"none",background:"#faf8f5"},'pre[class*="language-"] ::selection':{textShadow:"none",background:"#faf8f5"},'code[class*="language-"]::selection':{textShadow:"none",background:"#faf8f5"},'code[class*="language-"] ::selection':{textShadow:"none",background:"#faf8f5"},':not(pre) > code[class*="language-"]':{padding:".1em",borderRadius:".3em"},comment:{color:"#b6ad9a"},prolog:{color:"#b6ad9a"},doctype:{color:"#b6ad9a"},cdata:{color:"#b6ad9a"},punctuation:{color:"#b6ad9a"},namespace:{Opacity:".7"},tag:{color:"#063289"},operator:{color:"#063289"},number:{color:"#063289"},property:{color:"#b29762"},function:{color:"#b29762"},"tag-id":{color:"#2d2006"},selector:{color:"#2d2006"},"atrule-id":{color:"#2d2006"},"code.language-javascript":{color:"#896724"},"attr-name":{color:"#896724"},"code.language-css":{color:"#728fcb"},"code.language-scss":{color:"#728fcb"},boolean:{color:"#728fcb"},string:{color:"#728fcb"},entity:{color:"#728fcb",cursor:"help"},url:{color:"#728fcb"},".language-css .token.string":{color:"#728fcb"},".language-scss .token.string":{color:"#728fcb"},".style .token.string":{color:"#728fcb"},"attr-value":{color:"#728fcb"},keyword:{color:"#728fcb"},control:{color:"#728fcb"},directive:{color:"#728fcb"},unit:{color:"#728fcb"},statement:{color:"#728fcb"},regex:{color:"#728fcb"},atrule:{color:"#728fcb"},placeholder:{color:"#93abdc"},variable:{color:"#93abdc"},deleted:{textDecoration:"line-through"},inserted:{borderBottom:"1px dotted #2d2006",textDecoration:"none"},italic:{fontStyle:"italic"},important:{fontWeight:"bold",color:"#896724"},bold:{fontWeight:"bold"},"pre > code.highlight":{Outline:".4em solid #896724",OutlineOffset:".4em"},".line-numbers.line-numbers .line-numbers-rows":{borderRightColor:"#ece8de"},".line-numbers .line-numbers-rows > span:before":{color:"#cdc4b1"},".line-highlight.line-highlight":{background:"linear-gradient(to right, rgba(45, 32, 6, 0.2) 70%, rgba(45, 32, 6, 0))"}},T8e={'code[class*="language-"]':{background:"hsl(220, 13%, 18%)",color:"hsl(220, 14%, 71%)",textShadow:"0 1px rgba(0, 0, 0, 0.3)",fontFamily:'"Fira Code", "Fira Mono", Menlo, Consolas, "DejaVu Sans Mono", monospace',direction:"ltr",textAlign:"left",whiteSpace:"pre",wordSpacing:"normal",wordBreak:"normal",lineHeight:"1.5",MozTabSize:"2",OTabSize:"2",tabSize:"2",WebkitHyphens:"none",MozHyphens:"none",msHyphens:"none",hyphens:"none"},'pre[class*="language-"]':{background:"hsl(220, 13%, 18%)",color:"hsl(220, 14%, 71%)",textShadow:"0 1px rgba(0, 0, 0, 0.3)",fontFamily:'"Fira Code", "Fira Mono", Menlo, Consolas, "DejaVu Sans Mono", monospace',direction:"ltr",textAlign:"left",whiteSpace:"pre",wordSpacing:"normal",wordBreak:"normal",lineHeight:"1.5",MozTabSize:"2",OTabSize:"2",tabSize:"2",WebkitHyphens:"none",MozHyphens:"none",msHyphens:"none",hyphens:"none",padding:"1em",margin:"0.5em 0",overflow:"auto",borderRadius:"0.3em"},'code[class*="language-"]::-moz-selection':{background:"hsl(220, 13%, 28%)",color:"inherit",textShadow:"none"},'code[class*="language-"] *::-moz-selection':{background:"hsl(220, 13%, 28%)",color:"inherit",textShadow:"none"},'pre[class*="language-"] *::-moz-selection':{background:"hsl(220, 13%, 28%)",color:"inherit",textShadow:"none"},'code[class*="language-"]::selection':{background:"hsl(220, 13%, 28%)",color:"inherit",textShadow:"none"},'code[class*="language-"] *::selection':{background:"hsl(220, 13%, 28%)",color:"inherit",textShadow:"none"},'pre[class*="language-"] *::selection':{background:"hsl(220, 13%, 28%)",color:"inherit",textShadow:"none"},':not(pre) > code[class*="language-"]':{padding:"0.2em 0.3em",borderRadius:"0.3em",whiteSpace:"normal"},comment:{color:"hsl(220, 10%, 40%)",fontStyle:"italic"},prolog:{color:"hsl(220, 10%, 40%)"},cdata:{color:"hsl(220, 10%, 40%)"},doctype:{color:"hsl(220, 14%, 71%)"},punctuation:{color:"hsl(220, 14%, 71%)"},entity:{color:"hsl(220, 14%, 71%)",cursor:"help"},"attr-name":{color:"hsl(29, 54%, 61%)"},"class-name":{color:"hsl(29, 54%, 61%)"},boolean:{color:"hsl(29, 54%, 61%)"},constant:{color:"hsl(29, 54%, 61%)"},number:{color:"hsl(29, 54%, 61%)"},atrule:{color:"hsl(29, 54%, 61%)"},keyword:{color:"hsl(286, 60%, 67%)"},property:{color:"hsl(355, 65%, 65%)"},tag:{color:"hsl(355, 65%, 65%)"},symbol:{color:"hsl(355, 65%, 65%)"},deleted:{color:"hsl(355, 65%, 65%)"},important:{color:"hsl(355, 65%, 65%)"},selector:{color:"hsl(95, 38%, 62%)"},string:{color:"hsl(95, 38%, 62%)"},char:{color:"hsl(95, 38%, 62%)"},builtin:{color:"hsl(95, 38%, 62%)"},inserted:{color:"hsl(95, 38%, 62%)"},regex:{color:"hsl(95, 38%, 62%)"},"attr-value":{color:"hsl(95, 38%, 62%)"},"attr-value > .token.punctuation":{color:"hsl(95, 38%, 62%)"},variable:{color:"hsl(207, 82%, 66%)"},operator:{color:"hsl(207, 82%, 66%)"},function:{color:"hsl(207, 82%, 66%)"},url:{color:"hsl(187, 47%, 55%)"},"attr-value > .token.punctuation.attr-equals":{color:"hsl(220, 14%, 71%)"},"special-attr > .token.attr-value > .token.value.css":{color:"hsl(220, 14%, 71%)"},".language-css .token.selector":{color:"hsl(355, 65%, 65%)"},".language-css .token.property":{color:"hsl(220, 14%, 71%)"},".language-css .token.function":{color:"hsl(187, 47%, 55%)"},".language-css .token.url > .token.function":{color:"hsl(187, 47%, 55%)"},".language-css .token.url > .token.string.url":{color:"hsl(95, 38%, 62%)"},".language-css .token.important":{color:"hsl(286, 60%, 67%)"},".language-css .token.atrule .token.rule":{color:"hsl(286, 60%, 67%)"},".language-javascript .token.operator":{color:"hsl(286, 60%, 67%)"},".language-javascript .token.template-string > .token.interpolation > .token.interpolation-punctuation.punctuation":{color:"hsl(5, 48%, 51%)"},".language-json .token.operator":{color:"hsl(220, 14%, 71%)"},".language-json .token.null.keyword":{color:"hsl(29, 54%, 61%)"},".language-markdown .token.url":{color:"hsl(220, 14%, 71%)"},".language-markdown .token.url > .token.operator":{color:"hsl(220, 14%, 71%)"},".language-markdown .token.url-reference.url > .token.string":{color:"hsl(220, 14%, 71%)"},".language-markdown .token.url > .token.content":{color:"hsl(207, 82%, 66%)"},".language-markdown .token.url > .token.url":{color:"hsl(187, 47%, 55%)"},".language-markdown .token.url-reference.url":{color:"hsl(187, 47%, 55%)"},".language-markdown .token.blockquote.punctuation":{color:"hsl(220, 10%, 40%)",fontStyle:"italic"},".language-markdown .token.hr.punctuation":{color:"hsl(220, 10%, 40%)",fontStyle:"italic"},".language-markdown .token.code-snippet":{color:"hsl(95, 38%, 62%)"},".language-markdown .token.bold .token.content":{color:"hsl(29, 54%, 61%)"},".language-markdown .token.italic .token.content":{color:"hsl(286, 60%, 67%)"},".language-markdown .token.strike .token.content":{color:"hsl(355, 65%, 65%)"},".language-markdown .token.strike .token.punctuation":{color:"hsl(355, 65%, 65%)"},".language-markdown .token.list.punctuation":{color:"hsl(355, 65%, 65%)"},".language-markdown .token.title.important > .token.punctuation":{color:"hsl(355, 65%, 65%)"},bold:{fontWeight:"bold"},italic:{fontStyle:"italic"},namespace:{Opacity:"0.8"},"token.tab:not(:empty):before":{color:"hsla(220, 14%, 71%, 0.15)",textShadow:"none"},"token.cr:before":{color:"hsla(220, 14%, 71%, 0.15)",textShadow:"none"},"token.lf:before":{color:"hsla(220, 14%, 71%, 0.15)",textShadow:"none"},"token.space:before":{color:"hsla(220, 14%, 71%, 0.15)",textShadow:"none"},"div.code-toolbar > .toolbar.toolbar > .toolbar-item":{marginRight:"0.4em"},"div.code-toolbar > .toolbar.toolbar > .toolbar-item > button":{background:"hsl(220, 13%, 26%)",color:"hsl(220, 9%, 55%)",padding:"0.1em 0.4em",borderRadius:"0.3em"},"div.code-toolbar > .toolbar.toolbar > .toolbar-item > a":{background:"hsl(220, 13%, 26%)",color:"hsl(220, 9%, 55%)",padding:"0.1em 0.4em",borderRadius:"0.3em"},"div.code-toolbar > .toolbar.toolbar > .toolbar-item > span":{background:"hsl(220, 13%, 26%)",color:"hsl(220, 9%, 55%)",padding:"0.1em 0.4em",borderRadius:"0.3em"},"div.code-toolbar > .toolbar.toolbar > .toolbar-item > button:hover":{background:"hsl(220, 13%, 28%)",color:"hsl(220, 14%, 71%)"},"div.code-toolbar > .toolbar.toolbar > .toolbar-item > button:focus":{background:"hsl(220, 13%, 28%)",color:"hsl(220, 14%, 71%)"},"div.code-toolbar > .toolbar.toolbar > .toolbar-item > a:hover":{background:"hsl(220, 13%, 28%)",color:"hsl(220, 14%, 71%)"},"div.code-toolbar > .toolbar.toolbar > .toolbar-item > a:focus":{background:"hsl(220, 13%, 28%)",color:"hsl(220, 14%, 71%)"},"div.code-toolbar > .toolbar.toolbar > .toolbar-item > span:hover":{background:"hsl(220, 13%, 28%)",color:"hsl(220, 14%, 71%)"},"div.code-toolbar > .toolbar.toolbar > .toolbar-item > span:focus":{background:"hsl(220, 13%, 28%)",color:"hsl(220, 14%, 71%)"},".line-highlight.line-highlight":{background:"hsla(220, 100%, 80%, 0.04)"},".line-highlight.line-highlight:before":{background:"hsl(220, 13%, 26%)",color:"hsl(220, 14%, 71%)",padding:"0.1em 0.6em",borderRadius:"0.3em",boxShadow:"0 2px 0 0 rgba(0, 0, 0, 0.2)"},".line-highlight.line-highlight[data-end]:after":{background:"hsl(220, 13%, 26%)",color:"hsl(220, 14%, 71%)",padding:"0.1em 0.6em",borderRadius:"0.3em",boxShadow:"0 2px 0 0 rgba(0, 0, 0, 0.2)"},"pre[id].linkable-line-numbers.linkable-line-numbers span.line-numbers-rows > span:hover:before":{backgroundColor:"hsla(220, 100%, 80%, 0.04)"},".line-numbers.line-numbers .line-numbers-rows":{borderRightColor:"hsla(220, 14%, 71%, 0.15)"},".command-line .command-line-prompt":{borderRightColor:"hsla(220, 14%, 71%, 0.15)"},".line-numbers .line-numbers-rows > span:before":{color:"hsl(220, 14%, 45%)"},".command-line .command-line-prompt > span:before":{color:"hsl(220, 14%, 45%)"},".rainbow-braces .token.token.punctuation.brace-level-1":{color:"hsl(355, 65%, 65%)"},".rainbow-braces .token.token.punctuation.brace-level-5":{color:"hsl(355, 65%, 65%)"},".rainbow-braces .token.token.punctuation.brace-level-9":{color:"hsl(355, 65%, 65%)"},".rainbow-braces .token.token.punctuation.brace-level-2":{color:"hsl(95, 38%, 62%)"},".rainbow-braces .token.token.punctuation.brace-level-6":{color:"hsl(95, 38%, 62%)"},".rainbow-braces .token.token.punctuation.brace-level-10":{color:"hsl(95, 38%, 62%)"},".rainbow-braces .token.token.punctuation.brace-level-3":{color:"hsl(207, 82%, 66%)"},".rainbow-braces .token.token.punctuation.brace-level-7":{color:"hsl(207, 82%, 66%)"},".rainbow-braces .token.token.punctuation.brace-level-11":{color:"hsl(207, 82%, 66%)"},".rainbow-braces .token.token.punctuation.brace-level-4":{color:"hsl(286, 60%, 67%)"},".rainbow-braces .token.token.punctuation.brace-level-8":{color:"hsl(286, 60%, 67%)"},".rainbow-braces .token.token.punctuation.brace-level-12":{color:"hsl(286, 60%, 67%)"},"pre.diff-highlight > code .token.token.deleted:not(.prefix)":{backgroundColor:"hsla(353, 100%, 66%, 0.15)"},"pre > code.diff-highlight .token.token.deleted:not(.prefix)":{backgroundColor:"hsla(353, 100%, 66%, 0.15)"},"pre.diff-highlight > code .token.token.deleted:not(.prefix)::-moz-selection":{backgroundColor:"hsla(353, 95%, 66%, 0.25)"},"pre.diff-highlight > code .token.token.deleted:not(.prefix) *::-moz-selection":{backgroundColor:"hsla(353, 95%, 66%, 0.25)"},"pre > code.diff-highlight .token.token.deleted:not(.prefix)::-moz-selection":{backgroundColor:"hsla(353, 95%, 66%, 0.25)"},"pre > code.diff-highlight .token.token.deleted:not(.prefix) *::-moz-selection":{backgroundColor:"hsla(353, 95%, 66%, 0.25)"},"pre.diff-highlight > code .token.token.deleted:not(.prefix)::selection":{backgroundColor:"hsla(353, 95%, 66%, 0.25)"},"pre.diff-highlight > code .token.token.deleted:not(.prefix) *::selection":{backgroundColor:"hsla(353, 95%, 66%, 0.25)"},"pre > code.diff-highlight .token.token.deleted:not(.prefix)::selection":{backgroundColor:"hsla(353, 95%, 66%, 0.25)"},"pre > code.diff-highlight .token.token.deleted:not(.prefix) *::selection":{backgroundColor:"hsla(353, 95%, 66%, 0.25)"},"pre.diff-highlight > code .token.token.inserted:not(.prefix)":{backgroundColor:"hsla(137, 100%, 55%, 0.15)"},"pre > code.diff-highlight .token.token.inserted:not(.prefix)":{backgroundColor:"hsla(137, 100%, 55%, 0.15)"},"pre.diff-highlight > code .token.token.inserted:not(.prefix)::-moz-selection":{backgroundColor:"hsla(135, 73%, 55%, 0.25)"},"pre.diff-highlight > code .token.token.inserted:not(.prefix) *::-moz-selection":{backgroundColor:"hsla(135, 73%, 55%, 0.25)"},"pre > code.diff-highlight .token.token.inserted:not(.prefix)::-moz-selection":{backgroundColor:"hsla(135, 73%, 55%, 0.25)"},"pre > code.diff-highlight .token.token.inserted:not(.prefix) *::-moz-selection":{backgroundColor:"hsla(135, 73%, 55%, 0.25)"},"pre.diff-highlight > code .token.token.inserted:not(.prefix)::selection":{backgroundColor:"hsla(135, 73%, 55%, 0.25)"},"pre.diff-highlight > code .token.token.inserted:not(.prefix) *::selection":{backgroundColor:"hsla(135, 73%, 55%, 0.25)"},"pre > code.diff-highlight .token.token.inserted:not(.prefix)::selection":{backgroundColor:"hsla(135, 73%, 55%, 0.25)"},"pre > code.diff-highlight .token.token.inserted:not(.prefix) *::selection":{backgroundColor:"hsla(135, 73%, 55%, 0.25)"},".prism-previewer.prism-previewer:before":{borderColor:"hsl(224, 13%, 17%)"},".prism-previewer-gradient.prism-previewer-gradient div":{borderColor:"hsl(224, 13%, 17%)",borderRadius:"0.3em"},".prism-previewer-color.prism-previewer-color:before":{borderRadius:"0.3em"},".prism-previewer-easing.prism-previewer-easing:before":{borderRadius:"0.3em"},".prism-previewer.prism-previewer:after":{borderTopColor:"hsl(224, 13%, 17%)"},".prism-previewer-flipped.prism-previewer-flipped.after":{borderBottomColor:"hsl(224, 13%, 17%)"},".prism-previewer-angle.prism-previewer-angle:before":{background:"hsl(219, 13%, 22%)"},".prism-previewer-time.prism-previewer-time:before":{background:"hsl(219, 13%, 22%)"},".prism-previewer-easing.prism-previewer-easing":{background:"hsl(219, 13%, 22%)"},".prism-previewer-angle.prism-previewer-angle circle":{stroke:"hsl(220, 14%, 71%)",strokeOpacity:"1"},".prism-previewer-time.prism-previewer-time circle":{stroke:"hsl(220, 14%, 71%)",strokeOpacity:"1"},".prism-previewer-easing.prism-previewer-easing circle":{stroke:"hsl(220, 14%, 71%)",fill:"transparent"},".prism-previewer-easing.prism-previewer-easing path":{stroke:"hsl(220, 14%, 71%)"},".prism-previewer-easing.prism-previewer-easing line":{stroke:"hsl(220, 14%, 71%)"}},aa=({codeString:e})=>{var i;const t=(i=document==null?void 0:document.body)==null?void 0:i.classList.contains("dark-theme"),[n,r]=R.useState(!1),a=()=>{navigator.clipboard.writeText(e).then(()=>{r(!0),setTimeout(()=>r(!1),1500)})};return w.jsxs("div",{className:"code-viewer-container",children:[w.jsx("button",{className:"copy-button",onClick:a,children:n?"Copied!":"Copy"}),w.jsx(Qre,{language:"tsx",style:t?T8e:E8e,children:e})]})},Rd={Example1:`const Example1 = () => { const users = useMemo(() => generateUsers(100000), []); const querySource = createQuerySource(users); const [selectedValue, setValue] = usePresistentState<{ @@ -796,7 +796,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho ); -}`};function HBe(){return w.jsxs("div",{children:[w.jsx("h2",{children:"FormSelect"}),w.jsx("p",{children:"Selecting items are one of the most important aspect of any application. You want always give the user the option to select, search, deselect items and assign that selection in some part of an DTO or entity."}),w.jsxs("div",{className:"mt-5 mb-5",children:[w.jsx(VBe,{}),w.jsx(ra,{codeString:Cd.Example1})]}),w.jsxs("div",{className:"mt-5 mb-5",children:[w.jsx(GBe,{}),w.jsx(ra,{codeString:Cd.Example2})]}),w.jsxs("div",{className:"mt-5 mb-5",children:[w.jsx(YBe,{}),w.jsx(ra,{codeString:Cd.Example3})]}),w.jsxs("div",{className:"mt-5 mb-5",children:[w.jsx(KBe,{}),w.jsx(ra,{codeString:Cd.Example4})]}),w.jsxs("div",{className:"mt-5 mb-5",children:[w.jsx(XBe,{}),w.jsx(ra,{codeString:Cd.Example5})]}),w.jsxs("div",{className:"mt-5 mb-5",children:[w.jsx(QBe,{}),w.jsx(ra,{codeString:Cd.Example6})]}),w.jsxs("div",{className:"mt-5 mb-5",children:[w.jsx(JBe,{}),w.jsx(ra,{codeString:Cd.Example9})]}),w.jsxs("div",{className:"mt-5 mb-5",children:[w.jsx(ZBe,{}),w.jsx(ra,{codeString:Cd.Example8})]}),w.jsxs("div",{className:"mt-5 mb-5",children:[w.jsx(e8e,{}),w.jsx(ra,{codeString:Cd.Example7})]})]})}const sG=` +}`};function C8e(){return w.jsxs("div",{children:[w.jsx("h2",{children:"FormSelect"}),w.jsx("p",{children:"Selecting items are one of the most important aspect of any application. You want always give the user the option to select, search, deselect items and assign that selection in some part of an DTO or entity."}),w.jsxs("div",{className:"mt-5 mb-5",children:[w.jsx(k8e,{}),w.jsx(aa,{codeString:Rd.Example1})]}),w.jsxs("div",{className:"mt-5 mb-5",children:[w.jsx(x8e,{}),w.jsx(aa,{codeString:Rd.Example2})]}),w.jsxs("div",{className:"mt-5 mb-5",children:[w.jsx(_8e,{}),w.jsx(aa,{codeString:Rd.Example3})]}),w.jsxs("div",{className:"mt-5 mb-5",children:[w.jsx(O8e,{}),w.jsx(aa,{codeString:Rd.Example4})]}),w.jsxs("div",{className:"mt-5 mb-5",children:[w.jsx(R8e,{}),w.jsx(aa,{codeString:Rd.Example5})]}),w.jsxs("div",{className:"mt-5 mb-5",children:[w.jsx(P8e,{}),w.jsx(aa,{codeString:Rd.Example6})]}),w.jsxs("div",{className:"mt-5 mb-5",children:[w.jsx(A8e,{}),w.jsx(aa,{codeString:Rd.Example9})]}),w.jsxs("div",{className:"mt-5 mb-5",children:[w.jsx(N8e,{}),w.jsx(aa,{codeString:Rd.Example8})]}),w.jsxs("div",{className:"mt-5 mb-5",children:[w.jsx(M8e,{}),w.jsx(aa,{codeString:Rd.Example7})]})]})}const DG=` Ali Reza Negar Sina Parisa Mehdi Hamed Kiana Bahram Nima Farzad Samira Shahram Yasmin Dariush Elham Kamran Roya Shirin Behnaz Omid Nasrin Saeed Shahab Zohreh Babak Ladan Fariba Mohsen Mojgan Amir Hossein Farhad Leila @@ -804,7 +804,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho Forough Parsa Sara Kourosh Fereshteh Niloofar Mehrazin Matin Armin Samin Pouya Anahita Shapour Laleh Dariya Navid Elnaz Siamak Shadi Behzad Rozita Hassan Tarannom Baharak Pejman Mansour Parsa Mobin Yasna Yashar Mahdieh - `.split(/\s+/),lG=` + `.split(/\s+/),$G=` Torabi Moghaddam Khosravi Jafari Gholami Ahmadi Shams Karimi Hashemi Zand Rajabi Shariatmadari Tavakoli Hedayati Amini Behnam Farhadi Yazdani Mirzaei Eskandari Shafiei Motamedi Monfared Eslami Rashidi Daneshgar Kianian @@ -812,7 +812,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho Keshavarz Rezazadeh Kaviani Namdar Baniameri Kamali Moradi Azimi Sotoudeh Amiri Nikpour Fakhimi Karamat Taheri Javid Salimi Saidi Yousefi Rostami Najafi Ranjbar Darvishi Fallahian Ghanbari Panahi Hosseinzadeh Fattahi Rahbar - Sousa Oliveira Gomez Rodriguez`.split(/\s+/);function kre(e){return Array.from({length:e},(t,n)=>({name:`${sG[Math.floor(Math.random()*sG.length)]} ${lG[Math.floor(Math.random()*lG.length)]}`,id:n+1}))}const VBe=()=>{const e=R.useMemo(()=>kre(1e5),[]),t=zs(e),[n,r]=qj("samplefromstaticjson",e[0]);return w.jsxs("div",{children:[w.jsx("h2",{children:"Selecting from static array"}),w.jsx("p",{children:"In many cases, you already have an array your app hard coded, then you want to allow user to select from them, and you store them into a form or a react state. In this example we create large list of users, and preselect the first one."}),w.jsxs("pre",{children:["Value: ",JSON.stringify(n,null,2)]}),w.jsx(da,{value:n,label:"User",keyExtractor:a=>a.id,fnLabelFormat:a=>a.name,querySource:t,onChange:a=>{r(a)}}),w.jsx("div",{children:"Code:"})]})},GBe=()=>{const e=R.useMemo(()=>kre(1e4),[]),t=zs(e),[n,r]=R.useState([e[0],e[1],e[2]]);return w.jsxs("div",{children:[w.jsx("h2",{children:"Selecting multiple from static array"}),w.jsx("p",{children:"In this example, we use a large list of users array from a static json, and then user can make multiple selection, and we keep that into a react state."}),w.jsxs("pre",{children:["Value: ",JSON.stringify(n,null,2)]}),w.jsx(JF,{value:n,label:"Multiple users",keyExtractor:a=>a.id,fnLabelFormat:a=>a.name,querySource:t,onChange:a=>r(a)})]})},YBe=()=>{const[e,t]=R.useState();return w.jsxs("div",{children:[w.jsx("h2",{children:"Select multiple entities from Fireback generated code"}),w.jsx("p",{children:"As all of the entities generated via Fireback are searchable through the generated sdk, by using react-query, in this example we are selecting a role and storing it into a react state. There are samples to store that on formik form using formEffect later in this document."}),w.jsxs("pre",{children:["Value: ",JSON.stringify(e,null,2)]}),w.jsx(JF,{value:e,label:"Multiple users",keyExtractor:n=>n.uniqueId,fnLabelFormat:n=>n.name,querySource:af,onChange:n=>t(n)})]})},KBe=()=>{const[e,t]=qj("Example4",void 0);return w.jsxs("div",{children:[w.jsx("h2",{children:"Select single entity (role) from backend"}),w.jsx("p",{children:"In this scenario we allow user to select a single entity and assign it to the react usestate."}),w.jsxs("pre",{children:["Value: ",JSON.stringify(e,null,2)]}),w.jsx(da,{value:e,label:"Select single role",keyExtractor:n=>n.uniqueId,fnLabelFormat:n=>n.name,querySource:af,onChange:n=>t(n)})]})},XBe=()=>{class e{constructor(){this.user=void 0}}return e.Fields={user$:"user",user:{role:"user.role",roleId:"user.roleId"}},w.jsxs("div",{children:[w.jsx("h2",{children:"Selecting role with formEffect property"}),w.jsxs("p",{children:["A lot of time we are working with formik forms. In order to avoid value, onChange settings for each field, FormSelect and FormMultipleSelect allow for ",w.jsx("strong",{children:"formEffect"}),"property, which would automatically operate on the form values and modify them."]}),w.jsx(ls,{initialValues:{user:{}},onSubmit:t=>{alert(JSON.stringify(t,null,2))},children:t=>w.jsxs("div",{children:[w.jsxs("pre",{children:["Form: ",JSON.stringify(t.values,null,2)]}),w.jsx(da,{value:t.values.user.role,label:"Select single role",keyExtractor:n=>n.uniqueId,fnLabelFormat:n=>n.name,querySource:af,formEffect:{field:e.Fields.user.role,form:t}})]})})]})},QBe=()=>{class e{constructor(){this.user=void 0}}return e.Fields={user$:"user",user:{roles:"user.roles"}},w.jsxs("div",{children:[w.jsx("h2",{children:"Selecting multiple role with formEffect"}),w.jsx("p",{children:"In this example, we allow a user to fill an array in the formik form, by selecting multiple roles and assign them to the user."}),w.jsx(ls,{initialValues:{user:{}},onSubmit:t=>{alert(JSON.stringify(t,null,2))},children:t=>w.jsxs("div",{children:[w.jsxs("pre",{children:["Form: ",JSON.stringify(t.values,null,2)]}),w.jsx(JF,{value:t.values.user.roles,label:"Select multiple roles",keyExtractor:n=>n.uniqueId,fnLabelFormat:n=>n.name,querySource:af,formEffect:{field:e.Fields.user.roles,form:t}})]})})]})},JBe=()=>{const[e,t]=qj("samplePrimitivenumeric",3),n=zs([{sisters:1},{sisters:2},{sisters:3}]);return w.jsxs("div",{children:[w.jsx("h2",{children:"Selecting and changing only pure primitives"}),w.jsx("p",{children:"There are reasons that you want to set a primitive such as string or number when working with input select. In fact, by default a lot of components out there in react community let you do this, and you need to build FormSelect and FormMultipleSelect yourself."}),w.jsxs("pre",{children:["Value: ",JSON.stringify(e,null,2)]}),w.jsx(da,{value:e,label:"Select a number",onChange:r=>t(r.sisters),keyExtractor:r=>r.sisters,fnLabelFormat:r=>r.sisters+" Sisters",querySource:n})]})},ZBe=()=>{class e{constructor(){this.user=void 0}}e.Fields={user$:"user",user:{sisters:"user.sisters"}};const t=zs([{sisters:1},{sisters:2},{sisters:3}]);return w.jsxs("div",{children:[w.jsx("h2",{children:"Selecting primitives with form effect"}),w.jsxs("p",{children:["Direct change, and read primitives such as string and number are available also as formeffect, just take a deeper look on the"," ",w.jsx("strong",{children:"beforeSet"})," function in this case. You need to take out the value you want in this callback."]}),w.jsx(ls,{initialValues:{user:{sisters:2}},onSubmit:n=>{alert(JSON.stringify(n,null,2))},children:n=>w.jsxs("div",{children:[w.jsxs("pre",{children:["Form: ",JSON.stringify(n.values,null,2)]}),w.jsx(da,{value:n.values.user.sisters,label:"Select how many sisters user has",keyExtractor:r=>r.sisters,fnLabelFormat:r=>r.sisters+" sisters!",querySource:t,formEffect:{field:e.Fields.user.sisters,form:n,beforeSet(r){return r.sisters}}})]})})]})},e8e=()=>{class e{constructor(){this.date=void 0}}return e.Fields={date:"date"},w.jsxs("div",{children:[w.jsx("h2",{children:"Form Date demo"}),w.jsx("p",{children:"In many examples you want to select only a date string, nothing more. This input does that clearly."}),w.jsx(ls,{initialValues:{date:"2020-10-10"},onSubmit:t=>{alert(JSON.stringify(t,null,2))},children:t=>w.jsxs("div",{children:[w.jsxs("pre",{children:["Form: ",JSON.stringify(t.values,null,2)]}),w.jsx(ore,{value:t.values.date,label:"When did you born?",onChange:n=>t.setFieldValue(e.Fields.date,n)})]})})]})};function t8e(){return w.jsxs("div",{children:[w.jsx("h1",{children:"Demo screen"}),w.jsx("p",{children:"Here I put some demo and example of fireback components for react.js"}),w.jsx("div",{children:w.jsx(Pl,{href:"/demo/modals",children:"Check modals"})}),w.jsx("div",{children:w.jsx(Pl,{href:"/demo/form-select",children:"Check Selects"})}),w.jsx("div",{children:w.jsx(Pl,{href:"/demo/form-date",children:"Check Date Inputs"})}),w.jsx("hr",{})]})}const cc={example1:`const example1 = () => { + Sousa Oliveira Gomez Rodriguez`.split(/\s+/);function Jre(e){return Array.from({length:e},(t,n)=>({name:`${DG[Math.floor(Math.random()*DG.length)]} ${$G[Math.floor(Math.random()*$G.length)]}`,id:n+1}))}const k8e=()=>{const e=R.useMemo(()=>Jre(1e5),[]),t=Ks(e),[n,r]=y4("samplefromstaticjson",e[0]);return w.jsxs("div",{children:[w.jsx("h2",{children:"Selecting from static array"}),w.jsx("p",{children:"In many cases, you already have an array your app hard coded, then you want to allow user to select from them, and you store them into a form or a react state. In this example we create large list of users, and preselect the first one."}),w.jsxs("pre",{children:["Value: ",JSON.stringify(n,null,2)]}),w.jsx(da,{value:n,label:"User",keyExtractor:a=>a.id,fnLabelFormat:a=>a.name,querySource:t,onChange:a=>{r(a)}}),w.jsx("div",{children:"Code:"})]})},x8e=()=>{const e=R.useMemo(()=>Jre(1e4),[]),t=Ks(e),[n,r]=R.useState([e[0],e[1],e[2]]);return w.jsxs("div",{children:[w.jsx("h2",{children:"Selecting multiple from static array"}),w.jsx("p",{children:"In this example, we use a large list of users array from a static json, and then user can make multiple selection, and we keep that into a react state."}),w.jsxs("pre",{children:["Value: ",JSON.stringify(n,null,2)]}),w.jsx(_j,{value:n,label:"Multiple users",keyExtractor:a=>a.id,fnLabelFormat:a=>a.name,querySource:t,onChange:a=>r(a)})]})},_8e=()=>{const[e,t]=R.useState();return w.jsxs("div",{children:[w.jsx("h2",{children:"Select multiple entities from Fireback generated code"}),w.jsx("p",{children:"As all of the entities generated via Fireback are searchable through the generated sdk, by using react-query, in this example we are selecting a role and storing it into a react state. There are samples to store that on formik form using formEffect later in this document."}),w.jsxs("pre",{children:["Value: ",JSON.stringify(e,null,2)]}),w.jsx(_j,{value:e,label:"Multiple users",keyExtractor:n=>n.uniqueId,fnLabelFormat:n=>n.name,querySource:ff,onChange:n=>t(n)})]})},O8e=()=>{const[e,t]=y4("Example4",void 0);return w.jsxs("div",{children:[w.jsx("h2",{children:"Select single entity (role) from backend"}),w.jsx("p",{children:"In this scenario we allow user to select a single entity and assign it to the react usestate."}),w.jsxs("pre",{children:["Value: ",JSON.stringify(e,null,2)]}),w.jsx(da,{value:e,label:"Select single role",keyExtractor:n=>n.uniqueId,fnLabelFormat:n=>n.name,querySource:ff,onChange:n=>t(n)})]})},R8e=()=>{class e{constructor(){this.user=void 0}}return e.Fields={user$:"user",user:{role:"user.role",roleId:"user.roleId"}},w.jsxs("div",{children:[w.jsx("h2",{children:"Selecting role with formEffect property"}),w.jsxs("p",{children:["A lot of time we are working with formik forms. In order to avoid value, onChange settings for each field, FormSelect and FormMultipleSelect allow for ",w.jsx("strong",{children:"formEffect"}),"property, which would automatically operate on the form values and modify them."]}),w.jsx(ms,{initialValues:{user:{}},onSubmit:t=>{alert(JSON.stringify(t,null,2))},children:t=>w.jsxs("div",{children:[w.jsxs("pre",{children:["Form: ",JSON.stringify(t.values,null,2)]}),w.jsx(da,{value:t.values.user.role,label:"Select single role",keyExtractor:n=>n.uniqueId,fnLabelFormat:n=>n.name,querySource:ff,formEffect:{field:e.Fields.user.role,form:t}})]})})]})},P8e=()=>{class e{constructor(){this.user=void 0}}return e.Fields={user$:"user",user:{roles:"user.roles"}},w.jsxs("div",{children:[w.jsx("h2",{children:"Selecting multiple role with formEffect"}),w.jsx("p",{children:"In this example, we allow a user to fill an array in the formik form, by selecting multiple roles and assign them to the user."}),w.jsx(ms,{initialValues:{user:{}},onSubmit:t=>{alert(JSON.stringify(t,null,2))},children:t=>w.jsxs("div",{children:[w.jsxs("pre",{children:["Form: ",JSON.stringify(t.values,null,2)]}),w.jsx(_j,{value:t.values.user.roles,label:"Select multiple roles",keyExtractor:n=>n.uniqueId,fnLabelFormat:n=>n.name,querySource:ff,formEffect:{field:e.Fields.user.roles,form:t}})]})})]})},A8e=()=>{const[e,t]=y4("samplePrimitivenumeric",3),n=Ks([{sisters:1},{sisters:2},{sisters:3}]);return w.jsxs("div",{children:[w.jsx("h2",{children:"Selecting and changing only pure primitives"}),w.jsx("p",{children:"There are reasons that you want to set a primitive such as string or number when working with input select. In fact, by default a lot of components out there in react community let you do this, and you need to build FormSelect and FormMultipleSelect yourself."}),w.jsxs("pre",{children:["Value: ",JSON.stringify(e,null,2)]}),w.jsx(da,{value:e,label:"Select a number",onChange:r=>t(r.sisters),keyExtractor:r=>r.sisters,fnLabelFormat:r=>r.sisters+" Sisters",querySource:n})]})},N8e=()=>{class e{constructor(){this.user=void 0}}e.Fields={user$:"user",user:{sisters:"user.sisters"}};const t=Ks([{sisters:1},{sisters:2},{sisters:3}]);return w.jsxs("div",{children:[w.jsx("h2",{children:"Selecting primitives with form effect"}),w.jsxs("p",{children:["Direct change, and read primitives such as string and number are available also as formeffect, just take a deeper look on the"," ",w.jsx("strong",{children:"beforeSet"})," function in this case. You need to take out the value you want in this callback."]}),w.jsx(ms,{initialValues:{user:{sisters:2}},onSubmit:n=>{alert(JSON.stringify(n,null,2))},children:n=>w.jsxs("div",{children:[w.jsxs("pre",{children:["Form: ",JSON.stringify(n.values,null,2)]}),w.jsx(da,{value:n.values.user.sisters,label:"Select how many sisters user has",keyExtractor:r=>r.sisters,fnLabelFormat:r=>r.sisters+" sisters!",querySource:t,formEffect:{field:e.Fields.user.sisters,form:n,beforeSet(r){return r.sisters}}})]})})]})},M8e=()=>{class e{constructor(){this.date=void 0}}return e.Fields={date:"date"},w.jsxs("div",{children:[w.jsx("h2",{children:"Form Date demo"}),w.jsx("p",{children:"In many examples you want to select only a date string, nothing more. This input does that clearly."}),w.jsx(ms,{initialValues:{date:"2020-10-10"},onSubmit:t=>{alert(JSON.stringify(t,null,2))},children:t=>w.jsxs("div",{children:[w.jsxs("pre",{children:["Form: ",JSON.stringify(t.values,null,2)]}),w.jsx(Mre,{value:t.values.date,label:"When did you born?",onChange:n=>t.setFieldValue(e.Fields.date,n)})]})})]})};function I8e(){return w.jsxs("div",{children:[w.jsx("h1",{children:"Demo screen"}),w.jsx("p",{children:"Here I put some demo and example of fireback components for react.js"}),w.jsx("div",{children:w.jsx(Ml,{href:"/demo/modals",children:"Check modals"})}),w.jsx("div",{children:w.jsx(Ml,{href:"/demo/form-select",children:"Check Selects"})}),w.jsx("div",{children:w.jsx(Ml,{href:"/demo/form-date",children:"Check Date Inputs"})}),w.jsx("hr",{})]})}const pc={example1:`const example1 = () => { return openDrawer(() =>
Hi, this is opened in a drawer
); }`,example2:`const example2 = () => { openDrawer( @@ -918,17 +918,17 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho promise.finally(() => { clearInterval(id); }); - }`},dc=({children:e})=>w.jsx("div",{style:{marginBottom:"70px"},children:e});function n8e(){const{openDrawer:e,openModal:t}=bF(),{confirmDrawer:n,confirmModal:r}=LJ(),a=()=>e(()=>w.jsx("div",{children:"Hi, this is opened in a drawer"})),i=()=>{e(()=>w.jsx("div",{children:"Hi, this is opened in a drawer, with a larger area and from left"}),{direction:"left",size:"40%"})},o=()=>{t(({resolve:E})=>{const[T,C]=R.useState("");return w.jsxs("form",{onSubmit:k=>k.preventDefault(),children:[w.jsxs("span",{children:["If you enter ",w.jsx("strong",{children:"ali"})," in the box, you'll see the example1 opening"]}),w.jsx(In,{autoFocus:!0,value:T,onChange:k=>C(k)}),w.jsx(Ws,{onClick:()=>E(T),children:"Okay"})]})}).promise.then(({data:E})=>{if(E==="ali")return a();alert(E)})},l=()=>{a(),a(),i(),i()},u=()=>{t(({close:E})=>(R.useEffect(()=>{setTimeout(()=>{E()},3e3)},[]),w.jsx("span",{children:"I will disappear :)))))"})))},d=()=>{const{close:E,id:T}=t(()=>w.jsx("span",{children:"I will disappear by outside :)))))"}));setTimeout(()=>{alert(T),E()},2e3)},f=()=>{t(({setOnBeforeClose:E})=>{const[T,C]=R.useState(!1);return R.useEffect(()=>{E==null||E(()=>T?window.confirm("You have unsaved changes. Close anyway?"):!0)},[T]),w.jsxs("span",{children:["If you write anything here, it will be dirty and asks for quite.",w.jsx("input",{onChange:()=>C(!0)}),T?"Will ask":"Not dirty yet"]})})},g=()=>{n({title:"Confirm",description:"Are you to confirm? You still can cancel",confirmLabel:"Confirm",cancelLabel:"Cancel"}).promise.then(E=>{console.log(10,E)})},y=()=>{r({title:"Confirm",description:"Are you to confirm? You still can cancel",confirmLabel:"Confirm",cancelLabel:"Cancel"}).promise.then(E=>{console.log(10,E)})},h=R.useRef(0),v=()=>{const{updateData:E,promise:T}=e(({data:k})=>w.jsxs("span",{children:["Params: ",JSON.stringify(k)]})),C=setInterval(()=>{E({c:++h.current})},100);T.finally(()=>{clearInterval(C)})};return w.jsxs("div",{children:[w.jsx("h1",{children:"Demo Modals"}),w.jsx("p",{children:"Modals, Drawers are a major solved issue in the Fireback react.js. In here we make some examples. The core system is called `overlay`, can be used to show portals such as modal, drawer, alerts..."}),w.jsx("hr",{}),w.jsxs(dc,{children:[w.jsx("h2",{children:"Opening a drawer"}),w.jsx("p",{children:"Every component can be shown as modal, or in a drawer in Fireback."}),w.jsx("button",{className:"btn btn-sm btn-secondary",onClick:()=>a(),children:"Open a text in drawer"}),w.jsx(ra,{codeString:cc.example1})]}),w.jsxs(dc,{children:[w.jsx("h2",{children:"Opening a drawer, from left"}),w.jsx("p",{children:"Shows a drawer from left, also larger"}),w.jsx("button",{className:"btn btn-sm btn-secondary",onClick:()=>i(),children:"Open a text in drawer"}),w.jsx(ra,{codeString:cc.example2})]}),w.jsxs(dc,{children:[w.jsx("h2",{children:"Opening a modal, and get result"}),w.jsx("p",{children:"You can open a modal or drawer, and make some operation in it, and send back the result as a promise."}),w.jsx("button",{className:"btn btn-sm btn-secondary",onClick:()=>o(),children:"Open a text in drawer"}),w.jsx(ra,{codeString:cc.example3})]}),w.jsxs(dc,{children:[w.jsx("h2",{children:"Opening multiple"}),w.jsx("p",{children:"You can open multiple modals, or drawers, doesn't matter."}),w.jsx("button",{className:"btn btn-sm btn-secondary",onClick:()=>l(),children:"Open 2 modal, and open 2 drawer"}),w.jsx(ra,{codeString:cc.example4})]}),w.jsxs(dc,{children:[w.jsx("h2",{children:"Auto disappearing"}),w.jsx("p",{children:"A modal which disappears after 5 seconds"}),w.jsx("button",{className:"btn btn-sm btn-secondary",onClick:()=>u(),children:"Run"}),w.jsx(ra,{codeString:cc.example5})]}),w.jsxs(dc,{children:[w.jsx("h2",{children:"Control from outside"}),w.jsx("p",{children:"Sometimes you want to open a drawer, and then from outside component close it."}),w.jsx("button",{className:"btn btn-sm btn-secondary",onClick:()=>d(),children:"Open but close from outside"}),w.jsx(ra,{codeString:cc.example6})]}),w.jsxs(dc,{children:[w.jsx("h2",{children:"Prevent close"}),w.jsx("p",{children:"When a drawer or modal is open, you can prevent the close."}),w.jsx("button",{className:"btn btn-sm btn-secondary",onClick:()=>f(),children:"Open but ask before close"}),w.jsx(ra,{codeString:cc.example7})]}),w.jsxs(dc,{children:[w.jsx("h2",{children:"Confirm Dialog (drawer)"}),w.jsx("p",{children:"There is a set of ready to use dialogs, such as confirm"}),w.jsx("button",{className:"btn btn-sm btn-secondary",onClick:()=>g(),children:"Open the confirm"}),w.jsx(ra,{codeString:cc.example8})]}),w.jsxs(dc,{children:[w.jsx("h2",{children:"Confirm Dialog (modal)"}),w.jsx("p",{children:"There is a set of ready to use dialogs, such as confirm"}),w.jsx("button",{className:"btn btn-sm btn-secondary",onClick:()=>y(),children:"Open the confirm"}),w.jsx(ra,{codeString:cc.example9})]}),w.jsxs(dc,{children:[w.jsx("h2",{children:"Update params from outside"}),w.jsx("p",{children:"In rare cases, you might want to update the params from the outside."}),w.jsx("button",{className:"btn btn-sm btn-secondary",onClick:()=>v(),children:"Open & Update name"}),w.jsx(ra,{codeString:cc.example10})]}),w.jsx("br",{}),w.jsx("br",{}),w.jsx("br",{})]})}var R$={},U1={},B1={},Jg={};function yt(e){if(e===null||e===!0||e===!1)return NaN;var t=Number(e);return isNaN(t)?t:t<0?Math.ceil(t):Math.floor(t)}function he(e,t){if(t.length1?"s":"")+" required, but only "+t.length+" present")}function Re(e){he(1,arguments);var t=Object.prototype.toString.call(e);return e instanceof Date||ao(e)==="object"&&t==="[object Date]"?new Date(e.getTime()):typeof e=="number"||t==="[object Number]"?new Date(e):((typeof e=="string"||t==="[object String]")&&typeof console<"u"&&(console.warn("Starting with v2.0.0-beta.1 date-fns doesn't accept strings as date arguments. Please use `parseISO` to parse strings. See: https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#string-arguments"),console.warn(new Error().stack)),new Date(NaN))}function Oc(e,t){he(2,arguments);var n=Re(e),r=yt(t);return isNaN(r)?new Date(NaN):(r&&n.setDate(n.getDate()+r),n)}function tT(e,t){he(2,arguments);var n=Re(e),r=yt(t);if(isNaN(r))return new Date(NaN);if(!r)return n;var a=n.getDate(),i=new Date(n.getTime());i.setMonth(n.getMonth()+r+1,0);var o=i.getDate();return a>=o?i:(n.setFullYear(i.getFullYear(),i.getMonth(),a),n)}function Pb(e,t){if(he(2,arguments),!t||ao(t)!=="object")return new Date(NaN);var n=t.years?yt(t.years):0,r=t.months?yt(t.months):0,a=t.weeks?yt(t.weeks):0,i=t.days?yt(t.days):0,o=t.hours?yt(t.hours):0,l=t.minutes?yt(t.minutes):0,u=t.seconds?yt(t.seconds):0,d=Re(e),f=r||n?tT(d,r+n*12):d,g=i||a?Oc(f,i+a*7):f,y=l+o*60,h=u+y*60,v=h*1e3,E=new Date(g.getTime()+v);return E}function e0(e){he(1,arguments);var t=Re(e),n=t.getDay();return n===0||n===6}function t4(e){return he(1,arguments),Re(e).getDay()===0}function xre(e){return he(1,arguments),Re(e).getDay()===6}function _re(e,t){he(2,arguments);var n=Re(e),r=e0(n),a=yt(t);if(isNaN(a))return new Date(NaN);var i=n.getHours(),o=a<0?-1:1,l=yt(a/5);n.setDate(n.getDate()+l*7);for(var u=Math.abs(a%5);u>0;)n.setDate(n.getDate()+o),e0(n)||(u-=1);return r&&e0(n)&&a!==0&&(xre(n)&&n.setDate(n.getDate()+(o<0?2:-1)),t4(n)&&n.setDate(n.getDate()+(o<0?1:-2))),n.setHours(i),n}function nT(e,t){he(2,arguments);var n=Re(e).getTime(),r=yt(t);return new Date(n+r)}var r8e=36e5;function n4(e,t){he(2,arguments);var n=yt(t);return nT(e,n*r8e)}var Ore={};function Xa(){return Ore}function a8e(e){Ore=e}function Ml(e,t){var n,r,a,i,o,l,u,d;he(1,arguments);var f=Xa(),g=yt((n=(r=(a=(i=t==null?void 0:t.weekStartsOn)!==null&&i!==void 0?i:t==null||(o=t.locale)===null||o===void 0||(l=o.options)===null||l===void 0?void 0:l.weekStartsOn)!==null&&a!==void 0?a:f.weekStartsOn)!==null&&r!==void 0?r:(u=f.locale)===null||u===void 0||(d=u.options)===null||d===void 0?void 0:d.weekStartsOn)!==null&&n!==void 0?n:0);if(!(g>=0&&g<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var y=Re(e),h=y.getDay(),v=(h=a.getTime()?n+1:t.getTime()>=o.getTime()?n:n-1}function ch(e){he(1,arguments);var t=Lv(e),n=new Date(0);n.setFullYear(t,0,4),n.setHours(0,0,0,0);var r=Kd(n);return r}function Fo(e){var t=new Date(Date.UTC(e.getFullYear(),e.getMonth(),e.getDate(),e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds()));return t.setUTCFullYear(e.getFullYear()),e.getTime()-t.getTime()}function h0(e){he(1,arguments);var t=Re(e);return t.setHours(0,0,0,0),t}var i8e=864e5;function xc(e,t){he(2,arguments);var n=h0(e),r=h0(t),a=n.getTime()-Fo(n),i=r.getTime()-Fo(r);return Math.round((a-i)/i8e)}function Rre(e,t){he(2,arguments);var n=Re(e),r=yt(t),a=xc(n,ch(n)),i=new Date(0);return i.setFullYear(r,0,4),i.setHours(0,0,0,0),n=ch(i),n.setDate(n.getDate()+a),n}function Pre(e,t){he(2,arguments);var n=yt(t);return Rre(e,Lv(e)+n)}var o8e=6e4;function r4(e,t){he(2,arguments);var n=yt(t);return nT(e,n*o8e)}function a4(e,t){he(2,arguments);var n=yt(t),r=n*3;return tT(e,r)}function Are(e,t){he(2,arguments);var n=yt(t);return nT(e,n*1e3)}function q_(e,t){he(2,arguments);var n=yt(t),r=n*7;return Oc(e,r)}function Nre(e,t){he(2,arguments);var n=yt(t);return tT(e,n*12)}function s8e(e,t,n){he(2,arguments);var r=Re(e==null?void 0:e.start).getTime(),a=Re(e==null?void 0:e.end).getTime(),i=Re(t==null?void 0:t.start).getTime(),o=Re(t==null?void 0:t.end).getTime();if(!(r<=a&&i<=o))throw new RangeError("Invalid interval");return n!=null&&n.inclusive?r<=o&&i<=a:ra||isNaN(a.getDate()))&&(n=a)}),n||new Date(NaN)}function l8e(e,t){var n=t.start,r=t.end;return he(2,arguments),Ire([Mre([e,n]),r])}function u8e(e,t){he(2,arguments);var n=Re(e);if(isNaN(Number(n)))return NaN;var r=n.getTime(),a;t==null?a=[]:typeof t.forEach=="function"?a=t:a=Array.prototype.slice.call(t);var i,o;return a.forEach(function(l,u){var d=Re(l);if(isNaN(Number(d))){i=NaN,o=NaN;return}var f=Math.abs(r-d.getTime());(i==null||f0?1:a}function d8e(e,t){he(2,arguments);var n=Re(e),r=Re(t),a=n.getTime()-r.getTime();return a>0?-1:a<0?1:a}var i4=7,Dre=365.2425,$re=Math.pow(10,8)*24*60*60*1e3,Xv=6e4,Qv=36e5,H_=1e3,f8e=-$re,o4=60,s4=3,l4=12,u4=4,rT=3600,V_=60,G_=rT*24,Lre=G_*7,c4=G_*Dre,d4=c4/12,Fre=d4*3;function p8e(e){he(1,arguments);var t=e/i4;return Math.floor(t)}function aT(e,t){he(2,arguments);var n=h0(e),r=h0(t);return n.getTime()===r.getTime()}function jre(e){return he(1,arguments),e instanceof Date||ao(e)==="object"&&Object.prototype.toString.call(e)==="[object Date]"}function Xd(e){if(he(1,arguments),!jre(e)&&typeof e!="number")return!1;var t=Re(e);return!isNaN(Number(t))}function h8e(e,t){he(2,arguments);var n=Re(e),r=Re(t);if(!Xd(n)||!Xd(r))return NaN;var a=xc(n,r),i=a<0?-1:1,o=yt(a/7),l=o*5;for(r=Oc(r,o*7);!aT(n,r);)l+=e0(r)?0:i,r=Oc(r,i);return l===0?0:l}function Ure(e,t){return he(2,arguments),Lv(e)-Lv(t)}var m8e=6048e5;function g8e(e,t){he(2,arguments);var n=Kd(e),r=Kd(t),a=n.getTime()-Fo(n),i=r.getTime()-Fo(r);return Math.round((a-i)/m8e)}function zx(e,t){he(2,arguments);var n=Re(e),r=Re(t),a=n.getFullYear()-r.getFullYear(),i=n.getMonth()-r.getMonth();return a*12+i}function M3(e){he(1,arguments);var t=Re(e),n=Math.floor(t.getMonth()/3)+1;return n}function Qk(e,t){he(2,arguments);var n=Re(e),r=Re(t),a=n.getFullYear()-r.getFullYear(),i=M3(n)-M3(r);return a*4+i}var v8e=6048e5;function qx(e,t,n){he(2,arguments);var r=Ml(e,n),a=Ml(t,n),i=r.getTime()-Fo(r),o=a.getTime()-Fo(a);return Math.round((i-o)/v8e)}function MS(e,t){he(2,arguments);var n=Re(e),r=Re(t);return n.getFullYear()-r.getFullYear()}function uG(e,t){var n=e.getFullYear()-t.getFullYear()||e.getMonth()-t.getMonth()||e.getDate()-t.getDate()||e.getHours()-t.getHours()||e.getMinutes()-t.getMinutes()||e.getSeconds()-t.getSeconds()||e.getMilliseconds()-t.getMilliseconds();return n<0?-1:n>0?1:n}function f4(e,t){he(2,arguments);var n=Re(e),r=Re(t),a=uG(n,r),i=Math.abs(xc(n,r));n.setDate(n.getDate()-a*i);var o=+(uG(n,r)===-a),l=a*(i-o);return l===0?0:l}function Y_(e,t){return he(2,arguments),Re(e).getTime()-Re(t).getTime()}var cG={ceil:Math.ceil,round:Math.round,floor:Math.floor,trunc:function(t){return t<0?Math.ceil(t):Math.floor(t)}},y8e="trunc";function A0(e){return e?cG[e]:cG[y8e]}function Hx(e,t,n){he(2,arguments);var r=Y_(e,t)/Qv;return A0(n==null?void 0:n.roundingMethod)(r)}function Bre(e,t){he(2,arguments);var n=yt(t);return Pre(e,-n)}function b8e(e,t){he(2,arguments);var n=Re(e),r=Re(t),a=Cu(n,r),i=Math.abs(Ure(n,r));n=Bre(n,a*i);var o=+(Cu(n,r)===-a),l=a*(i-o);return l===0?0:l}function Vx(e,t,n){he(2,arguments);var r=Y_(e,t)/Xv;return A0(n==null?void 0:n.roundingMethod)(r)}function p4(e){he(1,arguments);var t=Re(e);return t.setHours(23,59,59,999),t}function h4(e){he(1,arguments);var t=Re(e),n=t.getMonth();return t.setFullYear(t.getFullYear(),n+1,0),t.setHours(23,59,59,999),t}function Wre(e){he(1,arguments);var t=Re(e);return p4(t).getTime()===h4(t).getTime()}function K_(e,t){he(2,arguments);var n=Re(e),r=Re(t),a=Cu(n,r),i=Math.abs(zx(n,r)),o;if(i<1)o=0;else{n.getMonth()===1&&n.getDate()>27&&n.setDate(30),n.setMonth(n.getMonth()-a*i);var l=Cu(n,r)===-a;Wre(Re(e))&&i===1&&Cu(e,r)===1&&(l=!1),o=a*(i-Number(l))}return o===0?0:o}function w8e(e,t,n){he(2,arguments);var r=K_(e,t)/3;return A0(n==null?void 0:n.roundingMethod)(r)}function t0(e,t,n){he(2,arguments);var r=Y_(e,t)/1e3;return A0(n==null?void 0:n.roundingMethod)(r)}function S8e(e,t,n){he(2,arguments);var r=f4(e,t)/7;return A0(n==null?void 0:n.roundingMethod)(r)}function zre(e,t){he(2,arguments);var n=Re(e),r=Re(t),a=Cu(n,r),i=Math.abs(MS(n,r));n.setFullYear(1584),r.setFullYear(1584);var o=Cu(n,r)===-a,l=a*(i-Number(o));return l===0?0:l}function qre(e,t){var n;he(1,arguments);var r=e||{},a=Re(r.start),i=Re(r.end),o=i.getTime();if(!(a.getTime()<=o))throw new RangeError("Invalid interval");var l=[],u=a;u.setHours(0,0,0,0);var d=Number((n=t==null?void 0:t.step)!==null&&n!==void 0?n:1);if(d<1||isNaN(d))throw new RangeError("`options.step` must be a number greater than 1");for(;u.getTime()<=o;)l.push(Re(u)),u.setDate(u.getDate()+d),u.setHours(0,0,0,0);return l}function E8e(e,t){var n;he(1,arguments);var r=e||{},a=Re(r.start),i=Re(r.end),o=a.getTime(),l=i.getTime();if(!(o<=l))throw new RangeError("Invalid interval");var u=[],d=a;d.setMinutes(0,0,0);var f=Number((n=t==null?void 0:t.step)!==null&&n!==void 0?n:1);if(f<1||isNaN(f))throw new RangeError("`options.step` must be a number greater than 1");for(;d.getTime()<=l;)u.push(Re(d)),d=n4(d,f);return u}function Gx(e){he(1,arguments);var t=Re(e);return t.setSeconds(0,0),t}function T8e(e,t){var n;he(1,arguments);var r=Gx(Re(e.start)),a=Re(e.end),i=r.getTime(),o=a.getTime();if(i>=o)throw new RangeError("Invalid interval");var l=[],u=r,d=Number((n=t==null?void 0:t.step)!==null&&n!==void 0?n:1);if(d<1||isNaN(d))throw new RangeError("`options.step` must be a number equal to or greater than 1");for(;u.getTime()<=o;)l.push(Re(u)),u=r4(u,d);return l}function C8e(e){he(1,arguments);var t=e||{},n=Re(t.start),r=Re(t.end),a=r.getTime(),i=[];if(!(n.getTime()<=a))throw new RangeError("Invalid interval");var o=n;for(o.setHours(0,0,0,0),o.setDate(1);o.getTime()<=a;)i.push(Re(o)),o.setMonth(o.getMonth()+1);return i}function CE(e){he(1,arguments);var t=Re(e),n=t.getMonth(),r=n-n%3;return t.setMonth(r,1),t.setHours(0,0,0,0),t}function k8e(e){he(1,arguments);var t=e||{},n=Re(t.start),r=Re(t.end),a=r.getTime();if(!(n.getTime()<=a))throw new RangeError("Invalid interval");var i=CE(n),o=CE(r);a=o.getTime();for(var l=[],u=i;u.getTime()<=a;)l.push(Re(u)),u=a4(u,1);return l}function x8e(e,t){he(1,arguments);var n=e||{},r=Re(n.start),a=Re(n.end),i=a.getTime();if(!(r.getTime()<=i))throw new RangeError("Invalid interval");var o=Ml(r,t),l=Ml(a,t);o.setHours(15),l.setHours(15),i=l.getTime();for(var u=[],d=o;d.getTime()<=i;)d.setHours(0),u.push(Re(d)),d=q_(d,1),d.setHours(15);return u}function m4(e){he(1,arguments);for(var t=qre(e),n=[],r=0;r=0&&g<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var y=Re(e),h=y.getDay(),v=(h=a.getTime()?n+1:t.getTime()>=o.getTime()?n:n-1}function W8e(e){he(1,arguments);var t=Gre(e),n=new Date(0);n.setUTCFullYear(t,0,4),n.setUTCHours(0,0,0,0);var r=g0(n);return r}var z8e=6048e5;function Yre(e){he(1,arguments);var t=Re(e),n=g0(t).getTime()-W8e(t).getTime();return Math.round(n/z8e)+1}function Qd(e,t){var n,r,a,i,o,l,u,d;he(1,arguments);var f=Xa(),g=yt((n=(r=(a=(i=t==null?void 0:t.weekStartsOn)!==null&&i!==void 0?i:t==null||(o=t.locale)===null||o===void 0||(l=o.options)===null||l===void 0?void 0:l.weekStartsOn)!==null&&a!==void 0?a:f.weekStartsOn)!==null&&r!==void 0?r:(u=f.locale)===null||u===void 0||(d=u.options)===null||d===void 0?void 0:d.weekStartsOn)!==null&&n!==void 0?n:0);if(!(g>=0&&g<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var y=Re(e),h=y.getUTCDay(),v=(h=1&&h<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var v=new Date(0);v.setUTCFullYear(g+1,0,h),v.setUTCHours(0,0,0,0);var E=Qd(v,t),T=new Date(0);T.setUTCFullYear(g,0,h),T.setUTCHours(0,0,0,0);var C=Qd(T,t);return f.getTime()>=E.getTime()?g+1:f.getTime()>=C.getTime()?g:g-1}function q8e(e,t){var n,r,a,i,o,l,u,d;he(1,arguments);var f=Xa(),g=yt((n=(r=(a=(i=t==null?void 0:t.firstWeekContainsDate)!==null&&i!==void 0?i:t==null||(o=t.locale)===null||o===void 0||(l=o.options)===null||l===void 0?void 0:l.firstWeekContainsDate)!==null&&a!==void 0?a:f.firstWeekContainsDate)!==null&&r!==void 0?r:(u=f.locale)===null||u===void 0||(d=u.options)===null||d===void 0?void 0:d.firstWeekContainsDate)!==null&&n!==void 0?n:1),y=v4(e,t),h=new Date(0);h.setUTCFullYear(y,0,g),h.setUTCHours(0,0,0,0);var v=Qd(h,t);return v}var H8e=6048e5;function Kre(e,t){he(1,arguments);var n=Re(e),r=Qd(n,t).getTime()-q8e(n,t).getTime();return Math.round(r/H8e)+1}function Zt(e,t){for(var n=e<0?"-":"",r=Math.abs(e).toString();r.length0?r:1-r;return Zt(n==="yy"?a%100:a,n.length)},M:function(t,n){var r=t.getUTCMonth();return n==="M"?String(r+1):Zt(r+1,2)},d:function(t,n){return Zt(t.getUTCDate(),n.length)},a:function(t,n){var r=t.getUTCHours()/12>=1?"pm":"am";switch(n){case"a":case"aa":return r.toUpperCase();case"aaa":return r;case"aaaaa":return r[0];case"aaaa":default:return r==="am"?"a.m.":"p.m."}},h:function(t,n){return Zt(t.getUTCHours()%12||12,n.length)},H:function(t,n){return Zt(t.getUTCHours(),n.length)},m:function(t,n){return Zt(t.getUTCMinutes(),n.length)},s:function(t,n){return Zt(t.getUTCSeconds(),n.length)},S:function(t,n){var r=n.length,a=t.getUTCMilliseconds(),i=Math.floor(a*Math.pow(10,r-3));return Zt(i,n.length)}},Sb={midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},V8e={G:function(t,n,r){var a=t.getUTCFullYear()>0?1:0;switch(n){case"G":case"GG":case"GGG":return r.era(a,{width:"abbreviated"});case"GGGGG":return r.era(a,{width:"narrow"});case"GGGG":default:return r.era(a,{width:"wide"})}},y:function(t,n,r){if(n==="yo"){var a=t.getUTCFullYear(),i=a>0?a:1-a;return r.ordinalNumber(i,{unit:"year"})}return xd.y(t,n)},Y:function(t,n,r,a){var i=v4(t,a),o=i>0?i:1-i;if(n==="YY"){var l=o%100;return Zt(l,2)}return n==="Yo"?r.ordinalNumber(o,{unit:"year"}):Zt(o,n.length)},R:function(t,n){var r=Gre(t);return Zt(r,n.length)},u:function(t,n){var r=t.getUTCFullYear();return Zt(r,n.length)},Q:function(t,n,r){var a=Math.ceil((t.getUTCMonth()+1)/3);switch(n){case"Q":return String(a);case"QQ":return Zt(a,2);case"Qo":return r.ordinalNumber(a,{unit:"quarter"});case"QQQ":return r.quarter(a,{width:"abbreviated",context:"formatting"});case"QQQQQ":return r.quarter(a,{width:"narrow",context:"formatting"});case"QQQQ":default:return r.quarter(a,{width:"wide",context:"formatting"})}},q:function(t,n,r){var a=Math.ceil((t.getUTCMonth()+1)/3);switch(n){case"q":return String(a);case"qq":return Zt(a,2);case"qo":return r.ordinalNumber(a,{unit:"quarter"});case"qqq":return r.quarter(a,{width:"abbreviated",context:"standalone"});case"qqqqq":return r.quarter(a,{width:"narrow",context:"standalone"});case"qqqq":default:return r.quarter(a,{width:"wide",context:"standalone"})}},M:function(t,n,r){var a=t.getUTCMonth();switch(n){case"M":case"MM":return xd.M(t,n);case"Mo":return r.ordinalNumber(a+1,{unit:"month"});case"MMM":return r.month(a,{width:"abbreviated",context:"formatting"});case"MMMMM":return r.month(a,{width:"narrow",context:"formatting"});case"MMMM":default:return r.month(a,{width:"wide",context:"formatting"})}},L:function(t,n,r){var a=t.getUTCMonth();switch(n){case"L":return String(a+1);case"LL":return Zt(a+1,2);case"Lo":return r.ordinalNumber(a+1,{unit:"month"});case"LLL":return r.month(a,{width:"abbreviated",context:"standalone"});case"LLLLL":return r.month(a,{width:"narrow",context:"standalone"});case"LLLL":default:return r.month(a,{width:"wide",context:"standalone"})}},w:function(t,n,r,a){var i=Kre(t,a);return n==="wo"?r.ordinalNumber(i,{unit:"week"}):Zt(i,n.length)},I:function(t,n,r){var a=Yre(t);return n==="Io"?r.ordinalNumber(a,{unit:"week"}):Zt(a,n.length)},d:function(t,n,r){return n==="do"?r.ordinalNumber(t.getUTCDate(),{unit:"date"}):xd.d(t,n)},D:function(t,n,r){var a=B8e(t);return n==="Do"?r.ordinalNumber(a,{unit:"dayOfYear"}):Zt(a,n.length)},E:function(t,n,r){var a=t.getUTCDay();switch(n){case"E":case"EE":case"EEE":return r.day(a,{width:"abbreviated",context:"formatting"});case"EEEEE":return r.day(a,{width:"narrow",context:"formatting"});case"EEEEEE":return r.day(a,{width:"short",context:"formatting"});case"EEEE":default:return r.day(a,{width:"wide",context:"formatting"})}},e:function(t,n,r,a){var i=t.getUTCDay(),o=(i-a.weekStartsOn+8)%7||7;switch(n){case"e":return String(o);case"ee":return Zt(o,2);case"eo":return r.ordinalNumber(o,{unit:"day"});case"eee":return r.day(i,{width:"abbreviated",context:"formatting"});case"eeeee":return r.day(i,{width:"narrow",context:"formatting"});case"eeeeee":return r.day(i,{width:"short",context:"formatting"});case"eeee":default:return r.day(i,{width:"wide",context:"formatting"})}},c:function(t,n,r,a){var i=t.getUTCDay(),o=(i-a.weekStartsOn+8)%7||7;switch(n){case"c":return String(o);case"cc":return Zt(o,n.length);case"co":return r.ordinalNumber(o,{unit:"day"});case"ccc":return r.day(i,{width:"abbreviated",context:"standalone"});case"ccccc":return r.day(i,{width:"narrow",context:"standalone"});case"cccccc":return r.day(i,{width:"short",context:"standalone"});case"cccc":default:return r.day(i,{width:"wide",context:"standalone"})}},i:function(t,n,r){var a=t.getUTCDay(),i=a===0?7:a;switch(n){case"i":return String(i);case"ii":return Zt(i,n.length);case"io":return r.ordinalNumber(i,{unit:"day"});case"iii":return r.day(a,{width:"abbreviated",context:"formatting"});case"iiiii":return r.day(a,{width:"narrow",context:"formatting"});case"iiiiii":return r.day(a,{width:"short",context:"formatting"});case"iiii":default:return r.day(a,{width:"wide",context:"formatting"})}},a:function(t,n,r){var a=t.getUTCHours(),i=a/12>=1?"pm":"am";switch(n){case"a":case"aa":return r.dayPeriod(i,{width:"abbreviated",context:"formatting"});case"aaa":return r.dayPeriod(i,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return r.dayPeriod(i,{width:"narrow",context:"formatting"});case"aaaa":default:return r.dayPeriod(i,{width:"wide",context:"formatting"})}},b:function(t,n,r){var a=t.getUTCHours(),i;switch(a===12?i=Sb.noon:a===0?i=Sb.midnight:i=a/12>=1?"pm":"am",n){case"b":case"bb":return r.dayPeriod(i,{width:"abbreviated",context:"formatting"});case"bbb":return r.dayPeriod(i,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return r.dayPeriod(i,{width:"narrow",context:"formatting"});case"bbbb":default:return r.dayPeriod(i,{width:"wide",context:"formatting"})}},B:function(t,n,r){var a=t.getUTCHours(),i;switch(a>=17?i=Sb.evening:a>=12?i=Sb.afternoon:a>=4?i=Sb.morning:i=Sb.night,n){case"B":case"BB":case"BBB":return r.dayPeriod(i,{width:"abbreviated",context:"formatting"});case"BBBBB":return r.dayPeriod(i,{width:"narrow",context:"formatting"});case"BBBB":default:return r.dayPeriod(i,{width:"wide",context:"formatting"})}},h:function(t,n,r){if(n==="ho"){var a=t.getUTCHours()%12;return a===0&&(a=12),r.ordinalNumber(a,{unit:"hour"})}return xd.h(t,n)},H:function(t,n,r){return n==="Ho"?r.ordinalNumber(t.getUTCHours(),{unit:"hour"}):xd.H(t,n)},K:function(t,n,r){var a=t.getUTCHours()%12;return n==="Ko"?r.ordinalNumber(a,{unit:"hour"}):Zt(a,n.length)},k:function(t,n,r){var a=t.getUTCHours();return a===0&&(a=24),n==="ko"?r.ordinalNumber(a,{unit:"hour"}):Zt(a,n.length)},m:function(t,n,r){return n==="mo"?r.ordinalNumber(t.getUTCMinutes(),{unit:"minute"}):xd.m(t,n)},s:function(t,n,r){return n==="so"?r.ordinalNumber(t.getUTCSeconds(),{unit:"second"}):xd.s(t,n)},S:function(t,n){return xd.S(t,n)},X:function(t,n,r,a){var i=a._originalDate||t,o=i.getTimezoneOffset();if(o===0)return"Z";switch(n){case"X":return fG(o);case"XXXX":case"XX":return sv(o);case"XXXXX":case"XXX":default:return sv(o,":")}},x:function(t,n,r,a){var i=a._originalDate||t,o=i.getTimezoneOffset();switch(n){case"x":return fG(o);case"xxxx":case"xx":return sv(o);case"xxxxx":case"xxx":default:return sv(o,":")}},O:function(t,n,r,a){var i=a._originalDate||t,o=i.getTimezoneOffset();switch(n){case"O":case"OO":case"OOO":return"GMT"+dG(o,":");case"OOOO":default:return"GMT"+sv(o,":")}},z:function(t,n,r,a){var i=a._originalDate||t,o=i.getTimezoneOffset();switch(n){case"z":case"zz":case"zzz":return"GMT"+dG(o,":");case"zzzz":default:return"GMT"+sv(o,":")}},t:function(t,n,r,a){var i=a._originalDate||t,o=Math.floor(i.getTime()/1e3);return Zt(o,n.length)},T:function(t,n,r,a){var i=a._originalDate||t,o=i.getTime();return Zt(o,n.length)}};function dG(e,t){var n=e>0?"-":"+",r=Math.abs(e),a=Math.floor(r/60),i=r%60;if(i===0)return n+String(a);var o=t;return n+String(a)+o+Zt(i,2)}function fG(e,t){if(e%60===0){var n=e>0?"-":"+";return n+Zt(Math.abs(e)/60,2)}return sv(e,t)}function sv(e,t){var n=t||"",r=e>0?"-":"+",a=Math.abs(e),i=Zt(Math.floor(a/60),2),o=Zt(a%60,2);return r+i+n+o}var pG=function(t,n){switch(t){case"P":return n.date({width:"short"});case"PP":return n.date({width:"medium"});case"PPP":return n.date({width:"long"});case"PPPP":default:return n.date({width:"full"})}},Xre=function(t,n){switch(t){case"p":return n.time({width:"short"});case"pp":return n.time({width:"medium"});case"ppp":return n.time({width:"long"});case"pppp":default:return n.time({width:"full"})}},G8e=function(t,n){var r=t.match(/(P+)(p+)?/)||[],a=r[1],i=r[2];if(!i)return pG(t,n);var o;switch(a){case"P":o=n.dateTime({width:"short"});break;case"PP":o=n.dateTime({width:"medium"});break;case"PPP":o=n.dateTime({width:"long"});break;case"PPPP":default:o=n.dateTime({width:"full"});break}return o.replace("{{date}}",pG(a,n)).replace("{{time}}",Xre(i,n))},I3={p:Xre,P:G8e},Y8e=["D","DD"],K8e=["YY","YYYY"];function Qre(e){return Y8e.indexOf(e)!==-1}function Jre(e){return K8e.indexOf(e)!==-1}function Yx(e,t,n){if(e==="YYYY")throw new RangeError("Use `yyyy` instead of `YYYY` (in `".concat(t,"`) for formatting years to the input `").concat(n,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if(e==="YY")throw new RangeError("Use `yy` instead of `YY` (in `".concat(t,"`) for formatting years to the input `").concat(n,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if(e==="D")throw new RangeError("Use `d` instead of `D` (in `".concat(t,"`) for formatting days of the month to the input `").concat(n,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if(e==="DD")throw new RangeError("Use `dd` instead of `DD` (in `".concat(t,"`) for formatting days of the month to the input `").concat(n,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"))}var X8e={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}},y4=function(t,n,r){var a,i=X8e[t];return typeof i=="string"?a=i:n===1?a=i.one:a=i.other.replace("{{count}}",n.toString()),r!=null&&r.addSuffix?r.comparison&&r.comparison>0?"in "+a:a+" ago":a};function Ne(e){return function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=t.width?String(t.width):e.defaultWidth,r=e.formats[n]||e.formats[e.defaultWidth];return r}}var Q8e={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},J8e={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},Z8e={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},e5e={date:Ne({formats:Q8e,defaultWidth:"full"}),time:Ne({formats:J8e,defaultWidth:"full"}),dateTime:Ne({formats:Z8e,defaultWidth:"full"})},t5e={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},Q_=function(t,n,r,a){return t5e[t]};function oe(e){return function(t,n){var r=n!=null&&n.context?String(n.context):"standalone",a;if(r==="formatting"&&e.formattingValues){var i=e.defaultFormattingWidth||e.defaultWidth,o=n!=null&&n.width?String(n.width):i;a=e.formattingValues[o]||e.formattingValues[i]}else{var l=e.defaultWidth,u=n!=null&&n.width?String(n.width):e.defaultWidth;a=e.values[u]||e.values[l]}var d=e.argumentCallback?e.argumentCallback(t):t;return a[d]}}var n5e={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},r5e={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},a5e={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},i5e={narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},o5e={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},s5e={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},l5e=function(t,n){var r=Number(t),a=r%100;if(a>20||a<10)switch(a%10){case 1:return r+"st";case 2:return r+"nd";case 3:return r+"rd"}return r+"th"},J_={ordinalNumber:l5e,era:oe({values:n5e,defaultWidth:"wide"}),quarter:oe({values:r5e,defaultWidth:"wide",argumentCallback:function(t){return t-1}}),month:oe({values:a5e,defaultWidth:"wide"}),day:oe({values:i5e,defaultWidth:"wide"}),dayPeriod:oe({values:o5e,defaultWidth:"wide",formattingValues:s5e,defaultFormattingWidth:"wide"})};function se(e){return function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=n.width,a=r&&e.matchPatterns[r]||e.matchPatterns[e.defaultMatchWidth],i=t.match(a);if(!i)return null;var o=i[0],l=r&&e.parsePatterns[r]||e.parsePatterns[e.defaultParseWidth],u=Array.isArray(l)?c5e(l,function(g){return g.test(o)}):u5e(l,function(g){return g.test(o)}),d;d=e.valueCallback?e.valueCallback(u):u,d=n.valueCallback?n.valueCallback(d):d;var f=t.slice(o.length);return{value:d,rest:f}}}function u5e(e,t){for(var n in e)if(e.hasOwnProperty(n)&&t(e[n]))return n}function c5e(e,t){for(var n=0;n1&&arguments[1]!==void 0?arguments[1]:{},r=t.match(e.matchPattern);if(!r)return null;var a=r[0],i=t.match(e.parsePattern);if(!i)return null;var o=e.valueCallback?e.valueCallback(i[0]):i[0];o=n.valueCallback?n.valueCallback(o):o;var l=t.slice(a.length);return{value:o,rest:l}}}var d5e=/^(\d+)(th|st|nd|rd)?/i,f5e=/\d+/i,p5e={narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},h5e={any:[/^b/i,/^(a|c)/i]},m5e={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},g5e={any:[/1/i,/2/i,/3/i,/4/i]},v5e={narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},y5e={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},b5e={narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},w5e={narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},S5e={narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},E5e={any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},Z_={ordinalNumber:Xt({matchPattern:d5e,parsePattern:f5e,valueCallback:function(t){return parseInt(t,10)}}),era:se({matchPatterns:p5e,defaultMatchWidth:"wide",parsePatterns:h5e,defaultParseWidth:"any"}),quarter:se({matchPatterns:m5e,defaultMatchWidth:"wide",parsePatterns:g5e,defaultParseWidth:"any",valueCallback:function(t){return t+1}}),month:se({matchPatterns:v5e,defaultMatchWidth:"wide",parsePatterns:y5e,defaultParseWidth:"any"}),day:se({matchPatterns:b5e,defaultMatchWidth:"wide",parsePatterns:w5e,defaultParseWidth:"any"}),dayPeriod:se({matchPatterns:S5e,defaultMatchWidth:"any",parsePatterns:E5e,defaultParseWidth:"any"})},Jv={code:"en-US",formatDistance:y4,formatLong:e5e,formatRelative:Q_,localize:J_,match:Z_,options:{weekStartsOn:0,firstWeekContainsDate:1}};const T5e=Object.freeze(Object.defineProperty({__proto__:null,default:Jv},Symbol.toStringTag,{value:"Module"}));var C5e=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,k5e=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,x5e=/^'([^]*?)'?$/,_5e=/''/g,O5e=/[a-zA-Z]/;function Zre(e,t,n){var r,a,i,o,l,u,d,f,g,y,h,v,E,T,C,k,_,A;he(2,arguments);var P=String(t),N=Xa(),I=(r=(a=n==null?void 0:n.locale)!==null&&a!==void 0?a:N.locale)!==null&&r!==void 0?r:Jv,L=yt((i=(o=(l=(u=n==null?void 0:n.firstWeekContainsDate)!==null&&u!==void 0?u:n==null||(d=n.locale)===null||d===void 0||(f=d.options)===null||f===void 0?void 0:f.firstWeekContainsDate)!==null&&l!==void 0?l:N.firstWeekContainsDate)!==null&&o!==void 0?o:(g=N.locale)===null||g===void 0||(y=g.options)===null||y===void 0?void 0:y.firstWeekContainsDate)!==null&&i!==void 0?i:1);if(!(L>=1&&L<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var j=yt((h=(v=(E=(T=n==null?void 0:n.weekStartsOn)!==null&&T!==void 0?T:n==null||(C=n.locale)===null||C===void 0||(k=C.options)===null||k===void 0?void 0:k.weekStartsOn)!==null&&E!==void 0?E:N.weekStartsOn)!==null&&v!==void 0?v:(_=N.locale)===null||_===void 0||(A=_.options)===null||A===void 0?void 0:A.weekStartsOn)!==null&&h!==void 0?h:0);if(!(j>=0&&j<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");if(!I.localize)throw new RangeError("locale must contain localize property");if(!I.formatLong)throw new RangeError("locale must contain formatLong property");var z=Re(e);if(!Xd(z))throw new RangeError("Invalid time value");var Q=Fo(z),le=m0(z,Q),re={firstWeekContainsDate:L,weekStartsOn:j,locale:I,_originalDate:z},ge=P.match(k5e).map(function(me){var W=me[0];if(W==="p"||W==="P"){var G=I3[W];return G(me,I.formatLong)}return me}).join("").match(C5e).map(function(me){if(me==="''")return"'";var W=me[0];if(W==="'")return R5e(me);var G=V8e[W];if(G)return!(n!=null&&n.useAdditionalWeekYearTokens)&&Jre(me)&&Yx(me,t,String(e)),!(n!=null&&n.useAdditionalDayOfYearTokens)&&Qre(me)&&Yx(me,t,String(e)),G(le,me,I.localize,re);if(W.match(O5e))throw new RangeError("Format string contains an unescaped latin alphabet character `"+W+"`");return me}).join("");return ge}function R5e(e){var t=e.match(x5e);return t?t[1].replace(_5e,"'"):e}function iT(e,t){if(e==null)throw new TypeError("assign requires that input parameter not be null or undefined");for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e}function eae(e){return iT({},e)}var hG=1440,P5e=2520,P$=43200,A5e=86400;function tae(e,t,n){var r,a;he(2,arguments);var i=Xa(),o=(r=(a=n==null?void 0:n.locale)!==null&&a!==void 0?a:i.locale)!==null&&r!==void 0?r:Jv;if(!o.formatDistance)throw new RangeError("locale must contain formatDistance property");var l=Cu(e,t);if(isNaN(l))throw new RangeError("Invalid time value");var u=iT(eae(n),{addSuffix:!!(n!=null&&n.addSuffix),comparison:l}),d,f;l>0?(d=Re(t),f=Re(e)):(d=Re(e),f=Re(t));var g=t0(f,d),y=(Fo(f)-Fo(d))/1e3,h=Math.round((g-y)/60),v;if(h<2)return n!=null&&n.includeSeconds?g<5?o.formatDistance("lessThanXSeconds",5,u):g<10?o.formatDistance("lessThanXSeconds",10,u):g<20?o.formatDistance("lessThanXSeconds",20,u):g<40?o.formatDistance("halfAMinute",0,u):g<60?o.formatDistance("lessThanXMinutes",1,u):o.formatDistance("xMinutes",1,u):h===0?o.formatDistance("lessThanXMinutes",1,u):o.formatDistance("xMinutes",h,u);if(h<45)return o.formatDistance("xMinutes",h,u);if(h<90)return o.formatDistance("aboutXHours",1,u);if(h0?(f=Re(t),g=Re(e)):(f=Re(e),g=Re(t));var y=String((i=n==null?void 0:n.roundingMethod)!==null&&i!==void 0?i:"round"),h;if(y==="floor")h=Math.floor;else if(y==="ceil")h=Math.ceil;else if(y==="round")h=Math.round;else throw new RangeError("roundingMethod must be 'floor', 'ceil' or 'round'");var v=g.getTime()-f.getTime(),E=v/mG,T=Fo(g)-Fo(f),C=(v-T)/mG,k=n==null?void 0:n.unit,_;if(k?_=String(k):E<1?_="second":E<60?_="minute":E=0&&a<=3))throw new RangeError("fractionDigits must be between 0 and 3 inclusively");var i=Zt(r.getDate(),2),o=Zt(r.getMonth()+1,2),l=r.getFullYear(),u=Zt(r.getHours(),2),d=Zt(r.getMinutes(),2),f=Zt(r.getSeconds(),2),g="";if(a>0){var y=r.getMilliseconds(),h=Math.floor(y*Math.pow(10,a-3));g="."+Zt(h,a)}var v="",E=r.getTimezoneOffset();if(E!==0){var T=Math.abs(E),C=Zt(yt(T/60),2),k=Zt(T%60,2),_=E<0?"+":"-";v="".concat(_).concat(C,":").concat(k)}else v="Z";return"".concat(l,"-").concat(o,"-").concat(i,"T").concat(u,":").concat(d,":").concat(f).concat(g).concat(v)}var U5e=["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],B5e=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function W5e(e){if(arguments.length<1)throw new TypeError("1 arguments required, but only ".concat(arguments.length," present"));var t=Re(e);if(!Xd(t))throw new RangeError("Invalid time value");var n=U5e[t.getUTCDay()],r=Zt(t.getUTCDate(),2),a=B5e[t.getUTCMonth()],i=t.getUTCFullYear(),o=Zt(t.getUTCHours(),2),l=Zt(t.getUTCMinutes(),2),u=Zt(t.getUTCSeconds(),2);return"".concat(n,", ").concat(r," ").concat(a," ").concat(i," ").concat(o,":").concat(l,":").concat(u," GMT")}function z5e(e,t,n){var r,a,i,o,l,u,d,f,g,y;he(2,arguments);var h=Re(e),v=Re(t),E=Xa(),T=(r=(a=n==null?void 0:n.locale)!==null&&a!==void 0?a:E.locale)!==null&&r!==void 0?r:Jv,C=yt((i=(o=(l=(u=n==null?void 0:n.weekStartsOn)!==null&&u!==void 0?u:n==null||(d=n.locale)===null||d===void 0||(f=d.options)===null||f===void 0?void 0:f.weekStartsOn)!==null&&l!==void 0?l:E.weekStartsOn)!==null&&o!==void 0?o:(g=E.locale)===null||g===void 0||(y=g.options)===null||y===void 0?void 0:y.weekStartsOn)!==null&&i!==void 0?i:0);if(!T.localize)throw new RangeError("locale must contain localize property");if(!T.formatLong)throw new RangeError("locale must contain formatLong property");if(!T.formatRelative)throw new RangeError("locale must contain formatRelative property");var k=xc(h,v);if(isNaN(k))throw new RangeError("Invalid time value");var _;k<-6?_="other":k<-1?_="lastWeek":k<0?_="yesterday":k<1?_="today":k<2?_="tomorrow":k<7?_="nextWeek":_="other";var A=m0(h,Fo(h)),P=m0(v,Fo(v)),N=T.formatRelative(_,A,P,{locale:T,weekStartsOn:C});return Zre(h,N,{locale:T,weekStartsOn:C})}function q5e(e){he(1,arguments);var t=yt(e);return Re(t*1e3)}function rae(e){he(1,arguments);var t=Re(e),n=t.getDate();return n}function eO(e){he(1,arguments);var t=Re(e),n=t.getDay();return n}function H5e(e){he(1,arguments);var t=Re(e),n=xc(t,g4(t)),r=n+1;return r}function aae(e){he(1,arguments);var t=Re(e),n=t.getFullYear(),r=t.getMonth(),a=new Date(0);return a.setFullYear(n,r+1,0),a.setHours(0,0,0,0),a.getDate()}function iae(e){he(1,arguments);var t=Re(e),n=t.getFullYear();return n%400===0||n%4===0&&n%100!==0}function V5e(e){he(1,arguments);var t=Re(e);return String(new Date(t))==="Invalid Date"?NaN:iae(t)?366:365}function G5e(e){he(1,arguments);var t=Re(e),n=t.getFullYear(),r=Math.floor(n/10)*10;return r}function Y5e(){return iT({},Xa())}function K5e(e){he(1,arguments);var t=Re(e),n=t.getHours();return n}function oae(e){he(1,arguments);var t=Re(e),n=t.getDay();return n===0&&(n=7),n}var X5e=6048e5;function sae(e){he(1,arguments);var t=Re(e),n=Kd(t).getTime()-ch(t).getTime();return Math.round(n/X5e)+1}var Q5e=6048e5;function J5e(e){he(1,arguments);var t=ch(e),n=ch(q_(t,60)),r=n.valueOf()-t.valueOf();return Math.round(r/Q5e)}function Z5e(e){he(1,arguments);var t=Re(e),n=t.getMilliseconds();return n}function eWe(e){he(1,arguments);var t=Re(e),n=t.getMinutes();return n}function tWe(e){he(1,arguments);var t=Re(e),n=t.getMonth();return n}var nWe=1440*60*1e3;function rWe(e,t){he(2,arguments);var n=e||{},r=t||{},a=Re(n.start).getTime(),i=Re(n.end).getTime(),o=Re(r.start).getTime(),l=Re(r.end).getTime();if(!(a<=i&&o<=l))throw new RangeError("Invalid interval");var u=ai?i:l,g=f-d;return Math.ceil(g/nWe)}function aWe(e){he(1,arguments);var t=Re(e),n=t.getSeconds();return n}function lae(e){he(1,arguments);var t=Re(e),n=t.getTime();return n}function iWe(e){return he(1,arguments),Math.floor(lae(e)/1e3)}function uae(e,t){var n,r,a,i,o,l,u,d;he(1,arguments);var f=Re(e),g=f.getFullYear(),y=Xa(),h=yt((n=(r=(a=(i=t==null?void 0:t.firstWeekContainsDate)!==null&&i!==void 0?i:t==null||(o=t.locale)===null||o===void 0||(l=o.options)===null||l===void 0?void 0:l.firstWeekContainsDate)!==null&&a!==void 0?a:y.firstWeekContainsDate)!==null&&r!==void 0?r:(u=y.locale)===null||u===void 0||(d=u.options)===null||d===void 0?void 0:d.firstWeekContainsDate)!==null&&n!==void 0?n:1);if(!(h>=1&&h<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var v=new Date(0);v.setFullYear(g+1,0,h),v.setHours(0,0,0,0);var E=Ml(v,t),T=new Date(0);T.setFullYear(g,0,h),T.setHours(0,0,0,0);var C=Ml(T,t);return f.getTime()>=E.getTime()?g+1:f.getTime()>=C.getTime()?g:g-1}function Xx(e,t){var n,r,a,i,o,l,u,d;he(1,arguments);var f=Xa(),g=yt((n=(r=(a=(i=t==null?void 0:t.firstWeekContainsDate)!==null&&i!==void 0?i:t==null||(o=t.locale)===null||o===void 0||(l=o.options)===null||l===void 0?void 0:l.firstWeekContainsDate)!==null&&a!==void 0?a:f.firstWeekContainsDate)!==null&&r!==void 0?r:(u=f.locale)===null||u===void 0||(d=u.options)===null||d===void 0?void 0:d.firstWeekContainsDate)!==null&&n!==void 0?n:1),y=uae(e,t),h=new Date(0);h.setFullYear(y,0,g),h.setHours(0,0,0,0);var v=Ml(h,t);return v}var oWe=6048e5;function cae(e,t){he(1,arguments);var n=Re(e),r=Ml(n,t).getTime()-Xx(n,t).getTime();return Math.round(r/oWe)+1}function sWe(e,t){var n,r,a,i,o,l,u,d;he(1,arguments);var f=Xa(),g=yt((n=(r=(a=(i=t==null?void 0:t.weekStartsOn)!==null&&i!==void 0?i:t==null||(o=t.locale)===null||o===void 0||(l=o.options)===null||l===void 0?void 0:l.weekStartsOn)!==null&&a!==void 0?a:f.weekStartsOn)!==null&&r!==void 0?r:(u=f.locale)===null||u===void 0||(d=u.options)===null||d===void 0?void 0:d.weekStartsOn)!==null&&n!==void 0?n:0);if(!(g>=0&&g<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var y=rae(e);if(isNaN(y))return NaN;var h=eO(X_(e)),v=g-h;v<=0&&(v+=7);var E=y-v;return Math.ceil(E/7)+1}function dae(e){he(1,arguments);var t=Re(e),n=t.getMonth();return t.setFullYear(t.getFullYear(),n+1,0),t.setHours(0,0,0,0),t}function lWe(e,t){return he(1,arguments),qx(dae(e),X_(e),t)+1}function uWe(e){return he(1,arguments),Re(e).getFullYear()}function cWe(e){return he(1,arguments),Math.floor(e*Qv)}function dWe(e){return he(1,arguments),Math.floor(e*o4)}function fWe(e){return he(1,arguments),Math.floor(e*rT)}function pWe(e){he(1,arguments);var t=Re(e.start),n=Re(e.end);if(isNaN(t.getTime()))throw new RangeError("Start Date is invalid");if(isNaN(n.getTime()))throw new RangeError("End Date is invalid");var r={};r.years=Math.abs(zre(n,t));var a=Cu(n,t),i=Pb(t,{years:a*r.years});r.months=Math.abs(K_(n,i));var o=Pb(i,{months:a*r.months});r.days=Math.abs(f4(n,o));var l=Pb(o,{days:a*r.days});r.hours=Math.abs(Hx(n,l));var u=Pb(l,{hours:a*r.hours});r.minutes=Math.abs(Vx(n,u));var d=Pb(u,{minutes:a*r.minutes});return r.seconds=Math.abs(t0(n,d)),r}function hWe(e,t,n){var r;he(1,arguments);var a;return mWe(t)?a=t:n=t,new Intl.DateTimeFormat((r=n)===null||r===void 0?void 0:r.locale,a).format(e)}function mWe(e){return e!==void 0&&!("locale"in e)}function gWe(e,t,n){he(2,arguments);var r=0,a,i=Re(e),o=Re(t);if(n!=null&&n.unit)a=n==null?void 0:n.unit,a==="second"?r=t0(i,o):a==="minute"?r=Vx(i,o):a==="hour"?r=Hx(i,o):a==="day"?r=xc(i,o):a==="week"?r=qx(i,o):a==="month"?r=zx(i,o):a==="quarter"?r=Qk(i,o):a==="year"&&(r=MS(i,o));else{var l=t0(i,o);Math.abs(l)r.getTime()}function yWe(e,t){he(2,arguments);var n=Re(e),r=Re(t);return n.getTime()Date.now()}function yG(e,t){var n=typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=BF(e))||t){n&&(e=n);var r=0,a=function(){};return{s:a,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(d){throw d},f:a}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. -In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var i=!0,o=!1,l;return{s:function(){n=n.call(e)},n:function(){var d=n.next();return i=d.done,d},e:function(d){o=!0,l=d},f:function(){try{!i&&n.return!=null&&n.return()}finally{if(o)throw l}}}}var CWe=10,fae=(function(){function e(){Xn(this,e),wt(this,"priority",void 0),wt(this,"subPriority",0)}return Qn(e,[{key:"validate",value:function(n,r){return!0}}]),e})(),kWe=(function(e){tr(n,e);var t=nr(n);function n(r,a,i,o,l){var u;return Xn(this,n),u=t.call(this),u.value=r,u.validateValue=a,u.setValue=i,u.priority=o,l&&(u.subPriority=l),u}return Qn(n,[{key:"validate",value:function(a,i){return this.validateValue(a,this.value,i)}},{key:"set",value:function(a,i,o){return this.setValue(a,i,this.value,o)}}]),n})(fae),xWe=(function(e){tr(n,e);var t=nr(n);function n(){var r;Xn(this,n);for(var a=arguments.length,i=new Array(a),o=0;o0,r=n?t:1-t,a;if(r<=50)a=e||100;else{var i=r+50,o=Math.floor(i/100)*100,l=e>=i%100;a=e+o-(l?100:0)}return n?a:1-a}function mae(e){return e%400===0||e%4===0&&e%100!==0}var OWe=(function(e){tr(n,e);var t=nr(n);function n(){var r;Xn(this,n);for(var a=arguments.length,i=new Array(a),o=0;o0}},{key:"set",value:function(a,i,o){var l=a.getUTCFullYear();if(o.isTwoDigitYear){var u=hae(o.year,l);return a.setUTCFullYear(u,0,1),a.setUTCHours(0,0,0,0),a}var d=!("era"in i)||i.era===1?o.year:1-o.year;return a.setUTCFullYear(d,0,1),a.setUTCHours(0,0,0,0),a}}]),n})(Sr),RWe=(function(e){tr(n,e);var t=nr(n);function n(){var r;Xn(this,n);for(var a=arguments.length,i=new Array(a),o=0;o0}},{key:"set",value:function(a,i,o,l){var u=v4(a,l);if(o.isTwoDigitYear){var d=hae(o.year,u);return a.setUTCFullYear(d,0,l.firstWeekContainsDate),a.setUTCHours(0,0,0,0),Qd(a,l)}var f=!("era"in i)||i.era===1?o.year:1-o.year;return a.setUTCFullYear(f,0,l.firstWeekContainsDate),a.setUTCHours(0,0,0,0),Qd(a,l)}}]),n})(Sr),PWe=(function(e){tr(n,e);var t=nr(n);function n(){var r;Xn(this,n);for(var a=arguments.length,i=new Array(a),o=0;o=1&&i<=4}},{key:"set",value:function(a,i,o){return a.setUTCMonth((o-1)*3,1),a.setUTCHours(0,0,0,0),a}}]),n})(Sr),MWe=(function(e){tr(n,e);var t=nr(n);function n(){var r;Xn(this,n);for(var a=arguments.length,i=new Array(a),o=0;o=1&&i<=4}},{key:"set",value:function(a,i,o){return a.setUTCMonth((o-1)*3,1),a.setUTCHours(0,0,0,0),a}}]),n})(Sr),IWe=(function(e){tr(n,e);var t=nr(n);function n(){var r;Xn(this,n);for(var a=arguments.length,i=new Array(a),o=0;o=0&&i<=11}},{key:"set",value:function(a,i,o){return a.setUTCMonth(o,1),a.setUTCHours(0,0,0,0),a}}]),n})(Sr),DWe=(function(e){tr(n,e);var t=nr(n);function n(){var r;Xn(this,n);for(var a=arguments.length,i=new Array(a),o=0;o=0&&i<=11}},{key:"set",value:function(a,i,o){return a.setUTCMonth(o,1),a.setUTCHours(0,0,0,0),a}}]),n})(Sr);function $We(e,t,n){he(2,arguments);var r=Re(e),a=yt(t),i=Kre(r,n)-a;return r.setUTCDate(r.getUTCDate()-i*7),r}var LWe=(function(e){tr(n,e);var t=nr(n);function n(){var r;Xn(this,n);for(var a=arguments.length,i=new Array(a),o=0;o=1&&i<=53}},{key:"set",value:function(a,i,o,l){return Qd($We(a,o,l),l)}}]),n})(Sr);function FWe(e,t){he(2,arguments);var n=Re(e),r=yt(t),a=Yre(n)-r;return n.setUTCDate(n.getUTCDate()-a*7),n}var jWe=(function(e){tr(n,e);var t=nr(n);function n(){var r;Xn(this,n);for(var a=arguments.length,i=new Array(a),o=0;o=1&&i<=53}},{key:"set",value:function(a,i,o){return g0(FWe(a,o))}}]),n})(Sr),UWe=[31,28,31,30,31,30,31,31,30,31,30,31],BWe=[31,29,31,30,31,30,31,31,30,31,30,31],WWe=(function(e){tr(n,e);var t=nr(n);function n(){var r;Xn(this,n);for(var a=arguments.length,i=new Array(a),o=0;o=1&&i<=BWe[u]:i>=1&&i<=UWe[u]}},{key:"set",value:function(a,i,o){return a.setUTCDate(o),a.setUTCHours(0,0,0,0),a}}]),n})(Sr),zWe=(function(e){tr(n,e);var t=nr(n);function n(){var r;Xn(this,n);for(var a=arguments.length,i=new Array(a),o=0;o=1&&i<=366:i>=1&&i<=365}},{key:"set",value:function(a,i,o){return a.setUTCMonth(0,o),a.setUTCHours(0,0,0,0),a}}]),n})(Sr);function w4(e,t,n){var r,a,i,o,l,u,d,f;he(2,arguments);var g=Xa(),y=yt((r=(a=(i=(o=n==null?void 0:n.weekStartsOn)!==null&&o!==void 0?o:n==null||(l=n.locale)===null||l===void 0||(u=l.options)===null||u===void 0?void 0:u.weekStartsOn)!==null&&i!==void 0?i:g.weekStartsOn)!==null&&a!==void 0?a:(d=g.locale)===null||d===void 0||(f=d.options)===null||f===void 0?void 0:f.weekStartsOn)!==null&&r!==void 0?r:0);if(!(y>=0&&y<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var h=Re(e),v=yt(t),E=h.getUTCDay(),T=v%7,C=(T+7)%7,k=(C=0&&i<=6}},{key:"set",value:function(a,i,o,l){return a=w4(a,o,l),a.setUTCHours(0,0,0,0),a}}]),n})(Sr),HWe=(function(e){tr(n,e);var t=nr(n);function n(){var r;Xn(this,n);for(var a=arguments.length,i=new Array(a),o=0;o=0&&i<=6}},{key:"set",value:function(a,i,o,l){return a=w4(a,o,l),a.setUTCHours(0,0,0,0),a}}]),n})(Sr),VWe=(function(e){tr(n,e);var t=nr(n);function n(){var r;Xn(this,n);for(var a=arguments.length,i=new Array(a),o=0;o=0&&i<=6}},{key:"set",value:function(a,i,o,l){return a=w4(a,o,l),a.setUTCHours(0,0,0,0),a}}]),n})(Sr);function GWe(e,t){he(2,arguments);var n=yt(t);n%7===0&&(n=n-7);var r=1,a=Re(e),i=a.getUTCDay(),o=n%7,l=(o+7)%7,u=(l=1&&i<=7}},{key:"set",value:function(a,i,o){return a=GWe(a,o),a.setUTCHours(0,0,0,0),a}}]),n})(Sr),KWe=(function(e){tr(n,e);var t=nr(n);function n(){var r;Xn(this,n);for(var a=arguments.length,i=new Array(a),o=0;o=1&&i<=12}},{key:"set",value:function(a,i,o){var l=a.getUTCHours()>=12;return l&&o<12?a.setUTCHours(o+12,0,0,0):!l&&o===12?a.setUTCHours(0,0,0,0):a.setUTCHours(o,0,0,0),a}}]),n})(Sr),ZWe=(function(e){tr(n,e);var t=nr(n);function n(){var r;Xn(this,n);for(var a=arguments.length,i=new Array(a),o=0;o=0&&i<=23}},{key:"set",value:function(a,i,o){return a.setUTCHours(o,0,0,0),a}}]),n})(Sr),eze=(function(e){tr(n,e);var t=nr(n);function n(){var r;Xn(this,n);for(var a=arguments.length,i=new Array(a),o=0;o=0&&i<=11}},{key:"set",value:function(a,i,o){var l=a.getUTCHours()>=12;return l&&o<12?a.setUTCHours(o+12,0,0,0):a.setUTCHours(o,0,0,0),a}}]),n})(Sr),tze=(function(e){tr(n,e);var t=nr(n);function n(){var r;Xn(this,n);for(var a=arguments.length,i=new Array(a),o=0;o=1&&i<=24}},{key:"set",value:function(a,i,o){var l=o<=24?o%24:o;return a.setUTCHours(l,0,0,0),a}}]),n})(Sr),nze=(function(e){tr(n,e);var t=nr(n);function n(){var r;Xn(this,n);for(var a=arguments.length,i=new Array(a),o=0;o=0&&i<=59}},{key:"set",value:function(a,i,o){return a.setUTCMinutes(o,0,0),a}}]),n})(Sr),rze=(function(e){tr(n,e);var t=nr(n);function n(){var r;Xn(this,n);for(var a=arguments.length,i=new Array(a),o=0;o=0&&i<=59}},{key:"set",value:function(a,i,o){return a.setUTCSeconds(o,0),a}}]),n})(Sr),aze=(function(e){tr(n,e);var t=nr(n);function n(){var r;Xn(this,n);for(var a=arguments.length,i=new Array(a),o=0;o=1&&z<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var Q=yt((v=(E=(T=(C=r==null?void 0:r.weekStartsOn)!==null&&C!==void 0?C:r==null||(k=r.locale)===null||k===void 0||(_=k.options)===null||_===void 0?void 0:_.weekStartsOn)!==null&&T!==void 0?T:L.weekStartsOn)!==null&&E!==void 0?E:(A=L.locale)===null||A===void 0||(P=A.options)===null||P===void 0?void 0:P.weekStartsOn)!==null&&v!==void 0?v:0);if(!(Q>=0&&Q<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");if(I==="")return N===""?Re(n):new Date(NaN);var le={firstWeekContainsDate:z,weekStartsOn:Q,locale:j},re=[new xWe],ge=I.match(dze).map(function(fe){var xe=fe[0];if(xe in I3){var Ie=I3[xe];return Ie(fe,j.formatLong)}return fe}).join("").match(cze),me=[],W=yG(ge),G;try{var q=function(){var xe=G.value;!(r!=null&&r.useAdditionalWeekYearTokens)&&Jre(xe)&&Yx(xe,I,e),!(r!=null&&r.useAdditionalDayOfYearTokens)&&Qre(xe)&&Yx(xe,I,e);var Ie=xe[0],qe=uze[Ie];if(qe){var tt=qe.incompatibleTokens;if(Array.isArray(tt)){var Ge=me.find(function(Et){return tt.includes(Et.token)||Et.token===Ie});if(Ge)throw new RangeError("The format string mustn't contain `".concat(Ge.fullToken,"` and `").concat(xe,"` at the same time"))}else if(qe.incompatibleTokens==="*"&&me.length>0)throw new RangeError("The format string mustn't contain `".concat(xe,"` and any other token at the same time"));me.push({token:Ie,fullToken:xe});var at=qe.run(N,xe,j.match,le);if(!at)return{v:new Date(NaN)};re.push(at.setter),N=at.rest}else{if(Ie.match(mze))throw new RangeError("Format string contains an unescaped latin alphabet character `"+Ie+"`");if(xe==="''"?xe="'":Ie==="'"&&(xe=gze(xe)),N.indexOf(xe)===0)N=N.slice(xe.length);else return{v:new Date(NaN)}}};for(W.s();!(G=W.n()).done;){var ce=q();if(ao(ce)==="object")return ce.v}}catch(fe){W.e(fe)}finally{W.f()}if(N.length>0&&hze.test(N))return new Date(NaN);var H=re.map(function(fe){return fe.priority}).sort(function(fe,xe){return xe-fe}).filter(function(fe,xe,Ie){return Ie.indexOf(fe)===xe}).map(function(fe){return re.filter(function(xe){return xe.priority===fe}).sort(function(xe,Ie){return Ie.subPriority-xe.subPriority})}).map(function(fe){return fe[0]}),Y=Re(n);if(isNaN(Y.getTime()))return new Date(NaN);var ie=m0(Y,Fo(Y)),J={},ee=yG(H),Z;try{for(ee.s();!(Z=ee.n()).done;){var ue=Z.value;if(!ue.validate(ie,le))return new Date(NaN);var ke=ue.set(ie,J,le);Array.isArray(ke)?(ie=ke[0],iT(J,ke[1])):ie=ke}}catch(fe){ee.e(fe)}finally{ee.f()}return ie}function gze(e){return e.match(fze)[1].replace(pze,"'")}function vze(e,t,n){return he(2,arguments),Xd(gae(e,t,new Date,n))}function yze(e){return he(1,arguments),Re(e).getDay()===1}function bze(e){return he(1,arguments),Re(e).getTime()=r&&n<=a}function tO(e,t){he(2,arguments);var n=yt(t);return Oc(e,-n)}function Dze(e){return he(1,arguments),aT(e,tO(Date.now(),1))}function $ze(e){he(1,arguments);var t=Re(e),n=t.getFullYear(),r=9+Math.floor(n/10)*10;return t.setFullYear(r+1,0,0),t.setHours(0,0,0,0),t}function Cae(e,t){var n,r,a,i,o,l,u,d;he(1,arguments);var f=Xa(),g=yt((n=(r=(a=(i=t==null?void 0:t.weekStartsOn)!==null&&i!==void 0?i:t==null||(o=t.locale)===null||o===void 0||(l=o.options)===null||l===void 0?void 0:l.weekStartsOn)!==null&&a!==void 0?a:f.weekStartsOn)!==null&&r!==void 0?r:(u=f.locale)===null||u===void 0||(d=u.options)===null||d===void 0?void 0:d.weekStartsOn)!==null&&n!==void 0?n:0);if(!(g>=0&&g<=6))throw new RangeError("weekStartsOn must be between 0 and 6");var y=Re(e),h=y.getDay(),v=(h2)return t;if(/:/.test(n[0])?r=n[0]:(t.date=n[0],r=n[1],kk.timeZoneDelimiter.test(t.date)&&(t.date=e.split(kk.timeZoneDelimiter)[0],r=e.substr(t.date.length,e.length))),r){var a=kk.timezone.exec(r);a?(t.time=r.replace(a[1],""),t.timezone=a[1]):t.time=r}return t}function hqe(e,t){var n=new RegExp("^(?:(\\d{4}|[+-]\\d{"+(4+t)+"})|(\\d{2}|[+-]\\d{"+(2+t)+"})$)"),r=e.match(n);if(!r)return{year:NaN,restDateString:""};var a=r[1]?parseInt(r[1]):null,i=r[2]?parseInt(r[2]):null;return{year:i===null?a:i*100,restDateString:e.slice((r[1]||r[2]).length)}}function mqe(e,t){if(t===null)return new Date(NaN);var n=e.match(cqe);if(!n)return new Date(NaN);var r=!!n[4],a=W1(n[1]),i=W1(n[2])-1,o=W1(n[3]),l=W1(n[4]),u=W1(n[5])-1;if(r)return Eqe(t,l,u)?yqe(t,l,u):new Date(NaN);var d=new Date(0);return!wqe(t,i,o)||!Sqe(t,a)?new Date(NaN):(d.setUTCFullYear(t,i,Math.max(a,o)),d)}function W1(e){return e?parseInt(e):1}function gqe(e){var t=e.match(dqe);if(!t)return NaN;var n=A$(t[1]),r=A$(t[2]),a=A$(t[3]);return Tqe(n,r,a)?n*Qv+r*Xv+a*1e3:NaN}function A$(e){return e&&parseFloat(e.replace(",","."))||0}function vqe(e){if(e==="Z")return 0;var t=e.match(fqe);if(!t)return 0;var n=t[1]==="+"?-1:1,r=parseInt(t[2]),a=t[3]&&parseInt(t[3])||0;return Cqe(r,a)?n*(r*Qv+a*Xv):NaN}function yqe(e,t,n){var r=new Date(0);r.setUTCFullYear(e,0,4);var a=r.getUTCDay()||7,i=(t-1)*7+n+1-a;return r.setUTCDate(r.getUTCDate()+i),r}var bqe=[31,null,31,30,31,30,31,31,30,31,30,31];function kae(e){return e%400===0||e%4===0&&e%100!==0}function wqe(e,t,n){return t>=0&&t<=11&&n>=1&&n<=(bqe[t]||(kae(e)?29:28))}function Sqe(e,t){return t>=1&&t<=(kae(e)?366:365)}function Eqe(e,t,n){return t>=1&&t<=53&&n>=0&&n<=6}function Tqe(e,t,n){return e===24?t===0&&n===0:n>=0&&n<60&&t>=0&&t<60&&e>=0&&e<25}function Cqe(e,t){return t>=0&&t<=59}function kqe(e){if(he(1,arguments),typeof e=="string"){var t=e.match(/(\d{4})-(\d{2})-(\d{2})[T ](\d{2}):(\d{2}):(\d{2})(?:\.(\d{0,7}))?(?:Z|(.)(\d{2}):?(\d{2})?)?/);return t?new Date(Date.UTC(+t[1],+t[2]-1,+t[3],+t[4]-(+t[9]||0)*(t[8]=="-"?-1:1),+t[5]-(+t[10]||0)*(t[8]=="-"?-1:1),+t[6],+((t[7]||"0")+"00").substring(0,3))):new Date(NaN)}return Re(e)}function Ah(e,t){he(2,arguments);var n=eO(e)-t;return n<=0&&(n+=7),tO(e,n)}function xqe(e){return he(1,arguments),Ah(e,5)}function _qe(e){return he(1,arguments),Ah(e,1)}function Oqe(e){return he(1,arguments),Ah(e,6)}function Rqe(e){return he(1,arguments),Ah(e,0)}function Pqe(e){return he(1,arguments),Ah(e,4)}function Aqe(e){return he(1,arguments),Ah(e,2)}function Nqe(e){return he(1,arguments),Ah(e,3)}function Mqe(e){return he(1,arguments),Math.floor(e*s4)}function Iqe(e){he(1,arguments);var t=e/u4;return Math.floor(t)}function Dqe(e,t){var n;if(arguments.length<1)throw new TypeError("1 argument required, but only none provided present");var r=yt((n=t==null?void 0:t.nearestTo)!==null&&n!==void 0?n:1);if(r<1||r>30)throw new RangeError("`options.nearestTo` must be between 1 and 30");var a=Re(e),i=a.getSeconds(),o=a.getMinutes()+i/60,l=A0(t==null?void 0:t.roundingMethod),u=l(o/r)*r,d=o%r,f=Math.round(d/r)*r;return new Date(a.getFullYear(),a.getMonth(),a.getDate(),a.getHours(),u+f)}function $qe(e){he(1,arguments);var t=e/rT;return Math.floor(t)}function Lqe(e){return he(1,arguments),e*H_}function Fqe(e){he(1,arguments);var t=e/V_;return Math.floor(t)}function E4(e,t){he(2,arguments);var n=Re(e),r=yt(t),a=n.getFullYear(),i=n.getDate(),o=new Date(0);o.setFullYear(a,r,15),o.setHours(0,0,0,0);var l=aae(o);return n.setMonth(r,Math.min(i,l)),n}function jqe(e,t){if(he(2,arguments),ao(t)!=="object"||t===null)throw new RangeError("values parameter must be an object");var n=Re(e);return isNaN(n.getTime())?new Date(NaN):(t.year!=null&&n.setFullYear(t.year),t.month!=null&&(n=E4(n,t.month)),t.date!=null&&n.setDate(yt(t.date)),t.hours!=null&&n.setHours(yt(t.hours)),t.minutes!=null&&n.setMinutes(yt(t.minutes)),t.seconds!=null&&n.setSeconds(yt(t.seconds)),t.milliseconds!=null&&n.setMilliseconds(yt(t.milliseconds)),n)}function Uqe(e,t){he(2,arguments);var n=Re(e),r=yt(t);return n.setDate(r),n}function Bqe(e,t,n){var r,a,i,o,l,u,d,f;he(2,arguments);var g=Xa(),y=yt((r=(a=(i=(o=n==null?void 0:n.weekStartsOn)!==null&&o!==void 0?o:n==null||(l=n.locale)===null||l===void 0||(u=l.options)===null||u===void 0?void 0:u.weekStartsOn)!==null&&i!==void 0?i:g.weekStartsOn)!==null&&a!==void 0?a:(d=g.locale)===null||d===void 0||(f=d.options)===null||f===void 0?void 0:f.weekStartsOn)!==null&&r!==void 0?r:0);if(!(y>=0&&y<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var h=Re(e),v=yt(t),E=h.getDay(),T=v%7,C=(T+7)%7,k=7-y,_=v<0||v>6?v-(E+k)%7:(C+k)%7-(E+k)%7;return Oc(h,_)}function Wqe(e,t){he(2,arguments);var n=Re(e),r=yt(t);return n.setMonth(0),n.setDate(r),n}function zqe(e){he(1,arguments);var t={},n=Xa();for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r]);for(var a in e)Object.prototype.hasOwnProperty.call(e,a)&&(e[a]===void 0?delete t[a]:t[a]=e[a]);a8e(t)}function qqe(e,t){he(2,arguments);var n=Re(e),r=yt(t);return n.setHours(r),n}function Hqe(e,t){he(2,arguments);var n=Re(e),r=yt(t),a=oae(n),i=r-a;return Oc(n,i)}function Vqe(e,t){he(2,arguments);var n=Re(e),r=yt(t),a=sae(n)-r;return n.setDate(n.getDate()-a*7),n}function Gqe(e,t){he(2,arguments);var n=Re(e),r=yt(t);return n.setMilliseconds(r),n}function Yqe(e,t){he(2,arguments);var n=Re(e),r=yt(t);return n.setMinutes(r),n}function Kqe(e,t){he(2,arguments);var n=Re(e),r=yt(t),a=Math.floor(n.getMonth()/3)+1,i=r-a;return E4(n,n.getMonth()+i*3)}function Xqe(e,t){he(2,arguments);var n=Re(e),r=yt(t);return n.setSeconds(r),n}function Qqe(e,t,n){he(2,arguments);var r=Re(e),a=yt(t),i=cae(r,n)-a;return r.setDate(r.getDate()-i*7),r}function Jqe(e,t,n){var r,a,i,o,l,u,d,f;he(2,arguments);var g=Xa(),y=yt((r=(a=(i=(o=n==null?void 0:n.firstWeekContainsDate)!==null&&o!==void 0?o:n==null||(l=n.locale)===null||l===void 0||(u=l.options)===null||u===void 0?void 0:u.firstWeekContainsDate)!==null&&i!==void 0?i:g.firstWeekContainsDate)!==null&&a!==void 0?a:(d=g.locale)===null||d===void 0||(f=d.options)===null||f===void 0?void 0:f.firstWeekContainsDate)!==null&&r!==void 0?r:1),h=Re(e),v=yt(t),E=xc(h,Xx(h,n)),T=new Date(0);return T.setFullYear(v,0,y),T.setHours(0,0,0,0),h=Xx(T,n),h.setDate(h.getDate()+E),h}function Zqe(e,t){he(2,arguments);var n=Re(e),r=yt(t);return isNaN(n.getTime())?new Date(NaN):(n.setFullYear(r),n)}function e9e(e){he(1,arguments);var t=Re(e),n=t.getFullYear(),r=Math.floor(n/10)*10;return t.setFullYear(r,0,1),t.setHours(0,0,0,0),t}function t9e(){return h0(Date.now())}function n9e(){var e=new Date,t=e.getFullYear(),n=e.getMonth(),r=e.getDate(),a=new Date(0);return a.setFullYear(t,n,r+1),a.setHours(0,0,0,0),a}function r9e(){var e=new Date,t=e.getFullYear(),n=e.getMonth(),r=e.getDate(),a=new Date(0);return a.setFullYear(t,n,r-1),a.setHours(0,0,0,0),a}function xae(e,t){he(2,arguments);var n=yt(t);return tT(e,-n)}function a9e(e,t){if(he(2,arguments),!t||ao(t)!=="object")return new Date(NaN);var n=t.years?yt(t.years):0,r=t.months?yt(t.months):0,a=t.weeks?yt(t.weeks):0,i=t.days?yt(t.days):0,o=t.hours?yt(t.hours):0,l=t.minutes?yt(t.minutes):0,u=t.seconds?yt(t.seconds):0,d=xae(e,r+n*12),f=tO(d,i+a*7),g=l+o*60,y=u+g*60,h=y*1e3,v=new Date(f.getTime()-h);return v}function i9e(e,t){he(2,arguments);var n=yt(t);return _re(e,-n)}function o9e(e,t){he(2,arguments);var n=yt(t);return n4(e,-n)}function s9e(e,t){he(2,arguments);var n=yt(t);return r4(e,-n)}function l9e(e,t){he(2,arguments);var n=yt(t);return a4(e,-n)}function u9e(e,t){he(2,arguments);var n=yt(t);return Are(e,-n)}function c9e(e,t){he(2,arguments);var n=yt(t);return q_(e,-n)}function d9e(e,t){he(2,arguments);var n=yt(t);return Nre(e,-n)}function f9e(e){return he(1,arguments),Math.floor(e*i4)}function p9e(e){return he(1,arguments),Math.floor(e*l4)}function h9e(e){return he(1,arguments),Math.floor(e*u4)}const m9e=Object.freeze(Object.defineProperty({__proto__:null,add:Pb,addBusinessDays:_re,addDays:Oc,addHours:n4,addISOWeekYears:Pre,addMilliseconds:nT,addMinutes:r4,addMonths:tT,addQuarters:a4,addSeconds:Are,addWeeks:q_,addYears:Nre,areIntervalsOverlapping:s8e,clamp:l8e,closestIndexTo:u8e,closestTo:c8e,compareAsc:Cu,compareDesc:d8e,daysInWeek:i4,daysInYear:Dre,daysToWeeks:p8e,differenceInBusinessDays:h8e,differenceInCalendarDays:xc,differenceInCalendarISOWeekYears:Ure,differenceInCalendarISOWeeks:g8e,differenceInCalendarMonths:zx,differenceInCalendarQuarters:Qk,differenceInCalendarWeeks:qx,differenceInCalendarYears:MS,differenceInDays:f4,differenceInHours:Hx,differenceInISOWeekYears:b8e,differenceInMilliseconds:Y_,differenceInMinutes:Vx,differenceInMonths:K_,differenceInQuarters:w8e,differenceInSeconds:t0,differenceInWeeks:S8e,differenceInYears:zre,eachDayOfInterval:qre,eachHourOfInterval:E8e,eachMinuteOfInterval:T8e,eachMonthOfInterval:C8e,eachQuarterOfInterval:k8e,eachWeekOfInterval:x8e,eachWeekendOfInterval:m4,eachWeekendOfMonth:_8e,eachWeekendOfYear:O8e,eachYearOfInterval:R8e,endOfDay:p4,endOfDecade:P8e,endOfHour:A8e,endOfISOWeek:N8e,endOfISOWeekYear:M8e,endOfMinute:I8e,endOfMonth:h4,endOfQuarter:D8e,endOfSecond:$8e,endOfToday:L8e,endOfTomorrow:F8e,endOfWeek:Vre,endOfYear:Hre,endOfYesterday:j8e,format:Zre,formatDistance:tae,formatDistanceStrict:nae,formatDistanceToNow:N5e,formatDistanceToNowStrict:M5e,formatDuration:D5e,formatISO:$5e,formatISO9075:L5e,formatISODuration:F5e,formatRFC3339:j5e,formatRFC7231:W5e,formatRelative:z5e,fromUnixTime:q5e,getDate:rae,getDay:eO,getDayOfYear:H5e,getDaysInMonth:aae,getDaysInYear:V5e,getDecade:G5e,getDefaultOptions:Y5e,getHours:K5e,getISODay:oae,getISOWeek:sae,getISOWeekYear:Lv,getISOWeeksInYear:J5e,getMilliseconds:Z5e,getMinutes:eWe,getMonth:tWe,getOverlappingDaysInIntervals:rWe,getQuarter:M3,getSeconds:aWe,getTime:lae,getUnixTime:iWe,getWeek:cae,getWeekOfMonth:sWe,getWeekYear:uae,getWeeksInMonth:lWe,getYear:uWe,hoursToMilliseconds:cWe,hoursToMinutes:dWe,hoursToSeconds:fWe,intervalToDuration:pWe,intlFormat:hWe,intlFormatDistance:gWe,isAfter:vWe,isBefore:yWe,isDate:jre,isEqual:bWe,isExists:wWe,isFirstDayOfMonth:SWe,isFriday:EWe,isFuture:TWe,isLastDayOfMonth:Wre,isLeapYear:iae,isMatch:vze,isMonday:yze,isPast:bze,isSameDay:aT,isSameHour:vae,isSameISOWeek:yae,isSameISOWeekYear:wze,isSameMinute:bae,isSameMonth:wae,isSameQuarter:Sae,isSameSecond:Eae,isSameWeek:S4,isSameYear:Tae,isSaturday:xre,isSunday:t4,isThisHour:Sze,isThisISOWeek:Eze,isThisMinute:Tze,isThisMonth:Cze,isThisQuarter:kze,isThisSecond:xze,isThisWeek:_ze,isThisYear:Oze,isThursday:Rze,isToday:Pze,isTomorrow:Aze,isTuesday:Nze,isValid:Xd,isWednesday:Mze,isWeekend:e0,isWithinInterval:Ize,isYesterday:Dze,lastDayOfDecade:$ze,lastDayOfISOWeek:Lze,lastDayOfISOWeekYear:Fze,lastDayOfMonth:dae,lastDayOfQuarter:jze,lastDayOfWeek:Cae,lastDayOfYear:Uze,lightFormat:Hze,max:Mre,maxTime:$re,milliseconds:Gze,millisecondsInHour:Qv,millisecondsInMinute:Xv,millisecondsInSecond:H_,millisecondsToHours:Yze,millisecondsToMinutes:Kze,millisecondsToSeconds:Xze,min:Ire,minTime:f8e,minutesInHour:o4,minutesToHours:Qze,minutesToMilliseconds:Jze,minutesToSeconds:Zze,monthsInQuarter:s4,monthsInYear:l4,monthsToQuarters:eqe,monthsToYears:tqe,nextDay:Ph,nextFriday:nqe,nextMonday:rqe,nextSaturday:aqe,nextSunday:iqe,nextThursday:oqe,nextTuesday:sqe,nextWednesday:lqe,parse:gae,parseISO:uqe,parseJSON:kqe,previousDay:Ah,previousFriday:xqe,previousMonday:_qe,previousSaturday:Oqe,previousSunday:Rqe,previousThursday:Pqe,previousTuesday:Aqe,previousWednesday:Nqe,quartersInYear:u4,quartersToMonths:Mqe,quartersToYears:Iqe,roundToNearestMinutes:Dqe,secondsInDay:G_,secondsInHour:rT,secondsInMinute:V_,secondsInMonth:d4,secondsInQuarter:Fre,secondsInWeek:Lre,secondsInYear:c4,secondsToHours:$qe,secondsToMilliseconds:Lqe,secondsToMinutes:Fqe,set:jqe,setDate:Uqe,setDay:Bqe,setDayOfYear:Wqe,setDefaultOptions:zqe,setHours:qqe,setISODay:Hqe,setISOWeek:Vqe,setISOWeekYear:Rre,setMilliseconds:Gqe,setMinutes:Yqe,setMonth:E4,setQuarter:Kqe,setSeconds:Xqe,setWeek:Qqe,setWeekYear:Jqe,setYear:Zqe,startOfDay:h0,startOfDecade:e9e,startOfHour:D3,startOfISOWeek:Kd,startOfISOWeekYear:ch,startOfMinute:Gx,startOfMonth:X_,startOfQuarter:CE,startOfSecond:$3,startOfToday:t9e,startOfTomorrow:n9e,startOfWeek:Ml,startOfWeekYear:Xx,startOfYear:g4,startOfYesterday:r9e,sub:a9e,subBusinessDays:i9e,subDays:tO,subHours:o9e,subISOWeekYears:Bre,subMilliseconds:m0,subMinutes:s9e,subMonths:xae,subQuarters:l9e,subSeconds:u9e,subWeeks:c9e,subYears:d9e,toDate:Re,weeksToDays:f9e,yearsToMonths:p9e,yearsToQuarters:h9e},Symbol.toStringTag,{value:"Module"})),Zv=jt(m9e);var wG;function nO(){if(wG)return Jg;wG=1,Object.defineProperty(Jg,"__esModule",{value:!0}),Jg.rangeShape=Jg.default=void 0;var e=o(Us()),t=a(Mc()),n=a(mh()),r=Zv;function a(h){return h&&h.__esModule?h:{default:h}}function i(h){if(typeof WeakMap!="function")return null;var v=new WeakMap,E=new WeakMap;return(i=function(T){return T?E:v})(h)}function o(h,v){if(h&&h.__esModule)return h;if(h===null||typeof h!="object"&&typeof h!="function")return{default:h};var E=i(v);if(E&&E.has(h))return E.get(h);var T={__proto__:null},C=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var k in h)if(k!=="default"&&Object.prototype.hasOwnProperty.call(h,k)){var _=C?Object.getOwnPropertyDescriptor(h,k):null;_&&(_.get||_.set)?Object.defineProperty(T,k,_):T[k]=h[k]}return T.default=h,E&&E.set(h,T),T}function l(){return l=Object.assign?Object.assign.bind():function(h){for(var v=1;v{const{day:C,onMouseDown:k,onMouseUp:_}=this.props;[13,32].includes(T.keyCode)&&(T.type==="keydown"?k(C):_(C))}),u(this,"handleMouseEvent",T=>{const{day:C,disabled:k,onPreviewChange:_,onMouseEnter:A,onMouseDown:P,onMouseUp:N}=this.props,I={};if(k){_();return}switch(T.type){case"mouseenter":A(C),_(C),I.hover=!0;break;case"blur":case"mouseleave":I.hover=!1;break;case"mousedown":I.active=!0,P(C);break;case"mouseup":T.stopPropagation(),I.active=!1,N(C);break;case"focus":_(C);break}Object.keys(I).length&&this.setState(I)}),u(this,"getClassNames",()=>{const{isPassive:T,isToday:C,isWeekend:k,isStartOfWeek:_,isEndOfWeek:A,isStartOfMonth:P,isEndOfMonth:N,disabled:I,styles:L}=this.props;return(0,n.default)(L.day,{[L.dayPassive]:T,[L.dayDisabled]:I,[L.dayToday]:C,[L.dayWeekend]:k,[L.dayStartOfWeek]:_,[L.dayEndOfWeek]:A,[L.dayStartOfMonth]:P,[L.dayEndOfMonth]:N,[L.dayHovered]:this.state.hover,[L.dayActive]:this.state.active})}),u(this,"renderPreviewPlaceholder",()=>{const{preview:T,day:C,styles:k}=this.props;if(!T)return null;const _=T.startDate?(0,r.endOfDay)(T.startDate):null,A=T.endDate?(0,r.startOfDay)(T.endDate):null,P=(!_||(0,r.isAfter)(C,_))&&(!A||(0,r.isBefore)(C,A)),N=!P&&(0,r.isSameDay)(C,_),I=!P&&(0,r.isSameDay)(C,A);return e.default.createElement("span",{className:(0,n.default)({[k.dayStartPreview]:N,[k.dayInPreview]:P,[k.dayEndPreview]:I}),style:{color:T.color}})}),u(this,"renderSelectionPlaceholders",()=>{const{styles:T,ranges:C,day:k}=this.props;return this.props.displayMode==="date"?(0,r.isSameDay)(this.props.day,this.props.date)?e.default.createElement("span",{className:T.selected,style:{color:this.props.color}}):null:C.reduce((A,P)=>{let N=P.startDate,I=P.endDate;N&&I&&(0,r.isBefore)(I,N)&&([N,I]=[I,N]),N=N?(0,r.endOfDay)(N):null,I=I?(0,r.startOfDay)(I):null;const L=(!N||(0,r.isAfter)(k,N))&&(!I||(0,r.isBefore)(k,I)),j=!L&&(0,r.isSameDay)(k,N),z=!L&&(0,r.isSameDay)(k,I);return L||j||z?[...A,{isStartEdge:j,isEndEdge:z,isInRange:L,...P}]:A},[]).map((A,P)=>e.default.createElement("span",{key:P,className:(0,n.default)({[T.startEdge]:A.isStartEdge,[T.endEdge]:A.isEndEdge,[T.inRange]:A.isInRange}),style:{color:A.color||this.props.color}}))}),this.state={hover:!1,active:!1}}render(){const{dayContentRenderer:v}=this.props;return e.default.createElement("button",l({type:"button",onMouseEnter:this.handleMouseEvent,onMouseLeave:this.handleMouseEvent,onFocus:this.handleMouseEvent,onMouseDown:this.handleMouseEvent,onMouseUp:this.handleMouseEvent,onBlur:this.handleMouseEvent,onPauseCapture:this.handleMouseEvent,onKeyDown:this.handleKeyEvent,onKeyUp:this.handleKeyEvent,className:this.getClassNames(this.props.styles)},this.props.disabled||this.props.isPassive?{tabIndex:-1}:{},{style:{color:this.props.color}}),this.renderSelectionPlaceholders(),this.renderPreviewPlaceholder(),e.default.createElement("span",{className:this.props.styles.dayNumber},(v==null?void 0:v(this.props.day))||e.default.createElement("span",null,(0,r.format)(this.props.day,this.props.dayDisplayFormat))))}};g.defaultProps={};const y=Jg.rangeShape=t.default.shape({startDate:t.default.object,endDate:t.default.object,color:t.default.string,key:t.default.string,autoFocus:t.default.bool,disabled:t.default.bool,showDateDisplay:t.default.bool});return g.propTypes={day:t.default.object.isRequired,dayDisplayFormat:t.default.string,date:t.default.object,ranges:t.default.arrayOf(y),preview:t.default.shape({startDate:t.default.object,endDate:t.default.object,color:t.default.string}),onPreviewChange:t.default.func,previewColor:t.default.string,disabled:t.default.bool,isPassive:t.default.bool,isToday:t.default.bool,isWeekend:t.default.bool,isStartOfWeek:t.default.bool,isEndOfWeek:t.default.bool,isStartOfMonth:t.default.bool,isEndOfMonth:t.default.bool,color:t.default.string,displayMode:t.default.oneOf(["dateRange","date"]),styles:t.default.object,onMouseDown:t.default.func,onMouseUp:t.default.func,onMouseEnter:t.default.func,dayContentRenderer:t.default.func},Jg.default=g,Jg}var z1={},Zg={},SG;function rO(){if(SG)return Zg;SG=1,Object.defineProperty(Zg,"__esModule",{value:!0}),Zg.calcFocusDate=r,Zg.findNextRangeIndex=a,Zg.generateStyles=o,Zg.getMonthDisplayRange=i;var e=n(mh()),t=Zv;function n(l){return l&&l.__esModule?l:{default:l}}function r(l,u){const{shownDate:d,date:f,months:g,ranges:y,focusedRange:h,displayMode:v}=u;let E;if(v==="dateRange"){const C=y[h[0]]||{};E={start:C.startDate,end:C.endDate}}else E={start:f,end:f};E.start=(0,t.startOfMonth)(E.start||new Date),E.end=(0,t.endOfMonth)(E.end||E.start);const T=E.start||E.end||d||new Date;return l?(0,t.differenceInCalendarMonths)(E.start,E.end)>g?l:T:d||T}function a(l){let u=arguments.length>1&&arguments[1]!==void 0?arguments[1]:-1;const d=l.findIndex((f,g)=>g>u&&f.autoFocus!==!1&&!f.disabled);return d!==-1?d:l.findIndex(f=>f.autoFocus!==!1&&!f.disabled)}function i(l,u,d){const f=(0,t.startOfMonth)(l,u),g=(0,t.endOfMonth)(l,u),y=(0,t.startOfWeek)(f,u);let h=(0,t.endOfWeek)(g,u);return d&&(0,t.differenceInCalendarDays)(h,y)<=34&&(h=(0,t.addDays)(h,7)),{start:y,end:h,startDateOfMonth:f,endDateOfMonth:g}}function o(l){return l.length?l.filter(d=>!!d).reduce((d,f)=>(Object.keys(f).forEach(g=>{d[g]=(0,e.default)(d[g],f[g])}),d),{}):{}}return Zg}var EG;function g9e(){if(EG)return z1;EG=1,Object.defineProperty(z1,"__esModule",{value:!0}),z1.default=void 0;var e=l(Us()),t=i(Mc()),n=l(nO()),r=Zv,a=rO();function i(g){return g&&g.__esModule?g:{default:g}}function o(g){if(typeof WeakMap!="function")return null;var y=new WeakMap,h=new WeakMap;return(o=function(v){return v?h:y})(g)}function l(g,y){if(g&&g.__esModule)return g;if(g===null||typeof g!="object"&&typeof g!="function")return{default:g};var h=o(y);if(h&&h.has(g))return h.get(g);var v={__proto__:null},E=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var T in g)if(T!=="default"&&Object.prototype.hasOwnProperty.call(g,T)){var C=E?Object.getOwnPropertyDescriptor(g,T):null;C&&(C.get||C.set)?Object.defineProperty(v,T,C):v[T]=g[T]}return v.default=g,h&&h.set(g,v),v}function u(){return u=Object.assign?Object.assign.bind():function(g){for(var y=1;ye.default.createElement("span",{className:g.weekDay,key:T},(0,r.format)(E,h,y))))}let f=class extends e.PureComponent{render(){const y=new Date,{displayMode:h,focusedRange:v,drag:E,styles:T,disabledDates:C,disabledDay:k}=this.props,_=this.props.minDate&&(0,r.startOfDay)(this.props.minDate),A=this.props.maxDate&&(0,r.endOfDay)(this.props.maxDate),P=(0,a.getMonthDisplayRange)(this.props.month,this.props.dateOptions,this.props.fixedHeight);let N=this.props.ranges;if(h==="dateRange"&&E.status){let{startDate:L,endDate:j}=E.range;N=N.map((z,Q)=>Q!==v[0]?z:{...z,startDate:L,endDate:j})}const I=this.props.showPreview&&!E.disablePreview;return e.default.createElement("div",{className:T.month,style:this.props.style},this.props.showMonthName?e.default.createElement("div",{className:T.monthName},(0,r.format)(this.props.month,this.props.monthDisplayFormat,this.props.dateOptions)):null,this.props.showWeekDays&&d(T,this.props.dateOptions,this.props.weekdayDisplayFormat),e.default.createElement("div",{className:T.days,onMouseLeave:this.props.onMouseLeave},(0,r.eachDayOfInterval)({start:P.start,end:P.end}).map((L,j)=>{const z=(0,r.isSameDay)(L,P.startDateOfMonth),Q=(0,r.isSameDay)(L,P.endDateOfMonth),le=_&&(0,r.isBefore)(L,_)||A&&(0,r.isAfter)(L,A),re=C.some(me=>(0,r.isSameDay)(me,L)),ge=k(L);return e.default.createElement(n.default,u({},this.props,{ranges:N,day:L,preview:I?this.props.preview:null,isWeekend:(0,r.isWeekend)(L,this.props.dateOptions),isToday:(0,r.isSameDay)(L,y),isStartOfWeek:(0,r.isSameDay)(L,(0,r.startOfWeek)(L,this.props.dateOptions)),isEndOfWeek:(0,r.isSameDay)(L,(0,r.endOfWeek)(L,this.props.dateOptions)),isStartOfMonth:z,isEndOfMonth:Q,key:j,disabled:le||re||ge,isPassive:!(0,r.isWithinInterval)(L,{start:P.startDateOfMonth,end:P.endDateOfMonth}),styles:T,onMouseDown:this.props.onDragSelectionStart,onMouseUp:this.props.onDragSelectionEnd,onMouseEnter:this.props.onDragSelectionMove,dragRange:E.range,drag:E.status}))})))}};return f.defaultProps={},f.propTypes={style:t.default.object,styles:t.default.object,month:t.default.object,drag:t.default.object,dateOptions:t.default.object,disabledDates:t.default.array,disabledDay:t.default.func,preview:t.default.shape({startDate:t.default.object,endDate:t.default.object}),showPreview:t.default.bool,displayMode:t.default.oneOf(["dateRange","date"]),minDate:t.default.object,maxDate:t.default.object,ranges:t.default.arrayOf(n.rangeShape),focusedRange:t.default.arrayOf(t.default.number),onDragSelectionStart:t.default.func,onDragSelectionEnd:t.default.func,onDragSelectionMove:t.default.func,onMouseLeave:t.default.func,monthDisplayFormat:t.default.string,weekdayDisplayFormat:t.default.string,dayDisplayFormat:t.default.string,showWeekDays:t.default.bool,showMonthName:t.default.bool,fixedHeight:t.default.bool},z1.default=f,z1}var q1={},TG;function v9e(){if(TG)return q1;TG=1,Object.defineProperty(q1,"__esModule",{value:!0}),q1.default=void 0;var e=o(Us()),t=a(Mc()),n=a(mh()),r=Zv;function a(g){return g&&g.__esModule?g:{default:g}}function i(g){if(typeof WeakMap!="function")return null;var y=new WeakMap,h=new WeakMap;return(i=function(v){return v?h:y})(g)}function o(g,y){if(g&&g.__esModule)return g;if(g===null||typeof g!="object"&&typeof g!="function")return{default:g};var h=i(y);if(h&&h.has(g))return h.get(g);var v={__proto__:null},E=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var T in g)if(T!=="default"&&Object.prototype.hasOwnProperty.call(g,T)){var C=E?Object.getOwnPropertyDescriptor(g,T):null;C&&(C.get||C.set)?Object.defineProperty(v,T,C):v[T]=g[T]}return v.default=g,h&&h.set(g,v),v}function l(g,y,h){return y=u(y),y in g?Object.defineProperty(g,y,{value:h,enumerable:!0,configurable:!0,writable:!0}):g[y]=h,g}function u(g){var y=d(g,"string");return typeof y=="symbol"?y:String(y)}function d(g,y){if(typeof g!="object"||!g)return g;var h=g[Symbol.toPrimitive];if(h!==void 0){var v=h.call(g,y);if(typeof v!="object")return v;throw new TypeError("@@toPrimitive must return a primitive value.")}return(y==="string"?String:Number)(g)}let f=class extends e.PureComponent{constructor(y,h){super(y,h),l(this,"onKeyDown",v=>{const{value:E}=this.state;v.key==="Enter"&&this.update(E)}),l(this,"onChange",v=>{this.setState({value:v.target.value,changed:!0,invalid:!1})}),l(this,"onBlur",()=>{const{value:v}=this.state;this.update(v)}),this.state={invalid:!1,changed:!1,value:this.formatDate(y)}}componentDidUpdate(y){const{value:h}=y;(0,r.isEqual)(h,this.props.value)||this.setState({value:this.formatDate(this.props)})}formatDate(y){let{value:h,dateDisplayFormat:v,dateOptions:E}=y;return h&&(0,r.isValid)(h)?(0,r.format)(h,v,E):""}update(y){const{invalid:h,changed:v}=this.state;if(h||!v||!y)return;const{onChange:E,dateDisplayFormat:T,dateOptions:C}=this.props,k=(0,r.parse)(y,T,new Date,C);(0,r.isValid)(k)?this.setState({changed:!1},()=>E(k)):this.setState({invalid:!0})}render(){const{className:y,readOnly:h,placeholder:v,ariaLabel:E,disabled:T,onFocus:C}=this.props,{value:k,invalid:_}=this.state;return e.default.createElement("span",{className:(0,n.default)("rdrDateInput",y)},e.default.createElement("input",{readOnly:h,disabled:T,value:k,placeholder:v,"aria-label":E,onKeyDown:this.onKeyDown,onChange:this.onChange,onBlur:this.onBlur,onFocus:C}),_&&e.default.createElement("span",{className:"rdrWarning"},"⚠"))}};return f.propTypes={value:t.default.object,placeholder:t.default.string,disabled:t.default.bool,readOnly:t.default.bool,dateOptions:t.default.object,dateDisplayFormat:t.default.string,ariaLabel:t.default.string,className:t.default.string,onFocus:t.default.func.isRequired,onChange:t.default.func.isRequired},f.defaultProps={readOnly:!0,disabled:!1,dateDisplayFormat:"MMM D, YYYY"},q1.default=f,q1}var xk={},CG;function y9e(){return CG||(CG=1,(function(e){(function(t,n){n(e,Us(),_X())})(typeof globalThis<"u"?globalThis:typeof self<"u"?self:xk,function(t,n,r){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;function a(ie){"@babel/helpers - typeof";return a=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(J){return typeof J}:function(J){return J&&typeof Symbol=="function"&&J.constructor===Symbol&&J!==Symbol.prototype?"symbol":typeof J},a(ie)}function i(ie,J){if(!(ie instanceof J))throw new TypeError("Cannot call a class as a function")}function o(ie,J){for(var ee=0;ee"u")return!1;var ie=!1;try{document.createElement("div").addEventListener("test",re,{get passive(){return ie=!0,!1}})}catch{}return ie})()?{passive:!0}:!1,me="ReactList failed to reach a stable state.",W=40,G=function(J,ee){for(var Z in ee)if(J[Z]!==ee[Z])return!1;return!0},q=function(J){for(var ee=J.props.axis,Z=J.getEl(),ue=j[ee];Z=Z.parentElement;)switch(window.getComputedStyle(Z)[ue]){case"auto":case"scroll":case"overlay":return Z}return window},ce=function(J){var ee=J.props.axis,Z=J.scrollParent;return Z===window?window[N[ee]]:Z[A[ee]]},H=function(J,ee){var Z=J.length,ue=J.minSize,ke=J.type,fe=ee.from,xe=ee.size,Ie=ee.itemsPerRow;xe=Math.max(xe,ue);var qe=xe%Ie;return qe&&(xe+=Ie-qe),xe>Z&&(xe=Z),fe=ke==="simple"||!fe?0:Math.max(Math.min(fe,Z-xe),0),(qe=fe%Ie)&&(fe-=qe,xe+=qe),fe===ee.from&&xe===ee.size?ee:T(T({},ee),{},{from:fe,size:xe})},Y=t.default=(function(ie){function J(ee){var Z;return i(this,J),Z=u(this,J,[ee]),Z.state=H(ee,{itemsPerRow:1,from:ee.initialIndex,size:0}),Z.cache={},Z.cachedScrollPosition=null,Z.prevPrevState={},Z.unstable=!1,Z.updateCounter=0,Z}return h(J,ie),l(J,[{key:"componentDidMount",value:function(){this.updateFrameAndClearCache=this.updateFrameAndClearCache.bind(this),window.addEventListener("resize",this.updateFrameAndClearCache),this.updateFrame(this.scrollTo.bind(this,this.props.initialIndex))}},{key:"componentDidUpdate",value:function(Z){var ue=this;if(this.props.axis!==Z.axis&&this.clearSizeCache(),!this.unstable){if(++this.updateCounter>W)return this.unstable=!0,console.error(me);this.updateCounterTimeoutId||(this.updateCounterTimeoutId=setTimeout(function(){ue.updateCounter=0,delete ue.updateCounterTimeoutId},0)),this.updateFrame()}}},{key:"maybeSetState",value:function(Z,ue){if(G(this.state,Z))return ue();this.setState(Z,ue)}},{key:"componentWillUnmount",value:function(){window.removeEventListener("resize",this.updateFrameAndClearCache),this.scrollParent.removeEventListener("scroll",this.updateFrameAndClearCache,ge),this.scrollParent.removeEventListener("mousewheel",re,ge)}},{key:"getOffset",value:function(Z){var ue=this.props.axis,ke=Z[P[ue]]||0,fe=L[ue];do ke+=Z[fe]||0;while(Z=Z.offsetParent);return ke}},{key:"getEl",value:function(){return this.el||this.items}},{key:"getScrollPosition",value:function(){if(typeof this.cachedScrollPosition=="number")return this.cachedScrollPosition;var Z=this.scrollParent,ue=this.props.axis,ke=Q[ue],fe=Z===window?document.body[ke]||document.documentElement[ke]:Z[ke],xe=this.getScrollSize()-this.props.scrollParentViewportSizeGetter(this),Ie=Math.max(0,Math.min(fe,xe)),qe=this.getEl();return this.cachedScrollPosition=this.getOffset(Z)+Ie-this.getOffset(qe),this.cachedScrollPosition}},{key:"setScroll",value:function(Z){var ue=this.scrollParent,ke=this.props.axis;if(Z+=this.getOffset(this.getEl()),ue===window)return window.scrollTo(0,Z);Z-=this.getOffset(this.scrollParent),ue[Q[ke]]=Z}},{key:"getScrollSize",value:function(){var Z=this.scrollParent,ue=document,ke=ue.body,fe=ue.documentElement,xe=z[this.props.axis];return Z===window?Math.max(ke[xe],fe[xe]):Z[xe]}},{key:"hasDeterminateSize",value:function(){var Z=this.props,ue=Z.itemSizeGetter,ke=Z.type;return ke==="uniform"||ue}},{key:"getStartAndEnd",value:function(){var Z=arguments.length>0&&arguments[0]!==void 0?arguments[0]:this.props.threshold,ue=this.getScrollPosition(),ke=Math.max(0,ue-Z),fe=ue+this.props.scrollParentViewportSizeGetter(this)+Z;return this.hasDeterminateSize()&&(fe=Math.min(fe,this.getSpaceBefore(this.props.length))),{start:ke,end:fe}}},{key:"getItemSizeAndItemsPerRow",value:function(){var Z=this.props,ue=Z.axis,ke=Z.useStaticSize,fe=this.state,xe=fe.itemSize,Ie=fe.itemsPerRow;if(ke&&xe&&Ie)return{itemSize:xe,itemsPerRow:Ie};var qe=this.items.children;if(!qe.length)return{};var tt=qe[0],Ge=tt[I[ue]],at=Math.abs(Ge-xe);if((isNaN(at)||at>=1)&&(xe=Ge),!xe)return{};var Et=L[ue],kt=tt[Et];Ie=1;for(var xt=qe[Ie];xt&&xt[Et]===kt;xt=qe[Ie])++Ie;return{itemSize:xe,itemsPerRow:Ie}}},{key:"clearSizeCache",value:function(){this.cachedScrollPosition=null}},{key:"updateFrameAndClearCache",value:function(Z){return this.clearSizeCache(),this.updateFrame(Z)}},{key:"updateFrame",value:function(Z){switch(this.updateScrollParent(),typeof Z!="function"&&(Z=re),this.props.type){case"simple":return this.updateSimpleFrame(Z);case"variable":return this.updateVariableFrame(Z);case"uniform":return this.updateUniformFrame(Z)}}},{key:"updateScrollParent",value:function(){var Z=this.scrollParent;this.scrollParent=this.props.scrollParentGetter(this),Z!==this.scrollParent&&(Z&&(Z.removeEventListener("scroll",this.updateFrameAndClearCache),Z.removeEventListener("mousewheel",re)),this.clearSizeCache(),this.scrollParent.addEventListener("scroll",this.updateFrameAndClearCache,ge),this.scrollParent.addEventListener("mousewheel",re,ge))}},{key:"updateSimpleFrame",value:function(Z){var ue=this.getStartAndEnd(),ke=ue.end,fe=this.items.children,xe=0;if(fe.length){var Ie=this.props.axis,qe=fe[0],tt=fe[fe.length-1];xe=this.getOffset(tt)+tt[I[Ie]]-this.getOffset(qe)}if(xe>ke)return Z();var Ge=this.props,at=Ge.pageSize,Et=Ge.length,kt=Math.min(this.state.size+at,Et);this.maybeSetState({size:kt},Z)}},{key:"updateVariableFrame",value:function(Z){this.props.itemSizeGetter||this.cacheSizes();for(var ue=this.getStartAndEnd(),ke=ue.start,fe=ue.end,xe=this.props,Ie=xe.length,qe=xe.pageSize,tt=0,Ge=0,at=0,Et=Ie-1;Geke)break;tt+=kt,++Ge}for(var xt=Ie-Ge;at1&&arguments[1]!==void 0?arguments[1]:{};if(ue[Z]!=null)return ue[Z];var ke=this.state,fe=ke.itemSize,xe=ke.itemsPerRow;if(fe)return ue[Z]=Math.floor(Z/xe)*fe;for(var Ie=Z;Ie>0&&ue[--Ie]==null;);for(var qe=ue[Ie]||0,tt=Ie;tt=at&&ZIe)return this.setScroll(Ie)}},{key:"getVisibleRange",value:function(){for(var Z=this.state,ue=Z.from,ke=Z.size,fe=this.getStartAndEnd(0),xe=fe.start,Ie=fe.end,qe={},tt,Ge,at=ue;atxe&&(tt=at),tt!=null&&Et1&&arguments[1]!==void 0?arguments[1]:L.props,Q=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0;if(!z.scroll.enabled){if(Q&&z.preventSnapRefocus){const ge=(0,d.differenceInCalendarMonths)(j,L.state.focusedDate),me=z.calendarFocus==="forwards"&&ge>=0,W=z.calendarFocus==="backwards"&&ge<=0;if((me||W)&&Math.abs(ge)0&&arguments[0]!==void 0?arguments[0]:L.props;const z=j.scroll.enabled?{...j,months:L.list.getVisibleRange().length}:j,Q=(0,i.calcFocusDate)(L.state.focusedDate,z);L.focusToDate(Q,z)}),C(this,"updatePreview",j=>{if(!j){this.setState({preview:null});return}const z={startDate:j,endDate:j,color:this.props.color};this.setState({preview:z})}),C(this,"changeShownDate",function(j){let z=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"set";const{focusedDate:Q}=L.state,{onShownDateChange:le,minDate:re,maxDate:ge}=L.props,me={monthOffset:()=>(0,d.addMonths)(Q,j),setMonth:()=>(0,d.setMonth)(Q,j),setYear:()=>(0,d.setYear)(Q,j),set:()=>j},W=(0,d.min)([(0,d.max)([me[z](),re]),ge]);L.focusToDate(W,L.props,!1),le&&le(W)}),C(this,"handleRangeFocusChange",(j,z)=>{this.props.onRangeFocusChange&&this.props.onRangeFocusChange([j,z])}),C(this,"handleScroll",()=>{const{onShownDateChange:j,minDate:z}=this.props,{focusedDate:Q}=this.state,{isFirstRender:le}=this,re=this.list.getVisibleRange();if(re[0]===void 0)return;const ge=(0,d.addMonths)(z,re[0]||0);!(0,d.isSameMonth)(ge,Q)&&!le&&(this.setState({focusedDate:ge}),j&&j(ge)),this.isFirstRender=!1}),C(this,"renderMonthAndYear",(j,z,Q)=>{const{showMonthArrow:le,minDate:re,maxDate:ge,showMonthAndYearPickers:me,ariaLabels:W}=Q,G=(ge||L3.defaultProps.maxDate).getFullYear(),q=(re||L3.defaultProps.minDate).getFullYear(),ce=this.styles;return e.default.createElement("div",{onMouseUp:H=>H.stopPropagation(),className:ce.monthAndYearWrapper},le?e.default.createElement("button",{type:"button",className:(0,o.default)(ce.nextPrevButton,ce.prevButton),onClick:()=>z(-1,"monthOffset"),"aria-label":W.prevButton},e.default.createElement("i",null)):null,me?e.default.createElement("span",{className:ce.monthAndYearPickers},e.default.createElement("span",{className:ce.monthPicker},e.default.createElement("select",{value:j.getMonth(),onChange:H=>z(H.target.value,"setMonth"),"aria-label":W.monthPicker},this.state.monthNames.map((H,Y)=>e.default.createElement("option",{key:Y,value:Y},H)))),e.default.createElement("span",{className:ce.monthAndYearDivider}),e.default.createElement("span",{className:ce.yearPicker},e.default.createElement("select",{value:j.getFullYear(),onChange:H=>z(H.target.value,"setYear"),"aria-label":W.yearPicker},new Array(G-q+1).fill(G).map((H,Y)=>{const ie=H-Y;return e.default.createElement("option",{key:ie,value:ie},ie)})))):e.default.createElement("span",{className:ce.monthAndYearPickers},this.state.monthNames[j.getMonth()]," ",j.getFullYear()),le?e.default.createElement("button",{type:"button",className:(0,o.default)(ce.nextPrevButton,ce.nextButton),onClick:()=>z(1,"monthOffset"),"aria-label":W.nextButton},e.default.createElement("i",null)):null)}),C(this,"renderDateDisplay",()=>{const{focusedRange:j,color:z,ranges:Q,rangeColors:le,dateDisplayFormat:re,editableDateInputs:ge,startDatePlaceholder:me,endDatePlaceholder:W,ariaLabels:G}=this.props,q=le[j[0]]||z,ce=this.styles;return e.default.createElement("div",{className:ce.dateDisplayWrapper},Q.map((H,Y)=>H.showDateDisplay===!1||H.disabled&&!H.showDateDisplay?null:e.default.createElement("div",{className:ce.dateDisplay,key:Y,style:{color:H.color||q}},e.default.createElement(a.default,{className:(0,o.default)(ce.dateDisplayItem,{[ce.dateDisplayItemActive]:j[0]===Y&&j[1]===0}),readOnly:!ge,disabled:H.disabled,value:H.startDate,placeholder:me,dateOptions:this.dateOptions,dateDisplayFormat:re,ariaLabel:G.dateInput&&G.dateInput[H.key]&&G.dateInput[H.key].startDate,onChange:this.onDragSelectionEnd,onFocus:()=>this.handleRangeFocusChange(Y,0)}),e.default.createElement(a.default,{className:(0,o.default)(ce.dateDisplayItem,{[ce.dateDisplayItemActive]:j[0]===Y&&j[1]===1}),readOnly:!ge,disabled:H.disabled,value:H.endDate,placeholder:W,dateOptions:this.dateOptions,dateDisplayFormat:re,ariaLabel:G.dateInput&&G.dateInput[H.key]&&G.dateInput[H.key].endDate,onChange:this.onDragSelectionEnd,onFocus:()=>this.handleRangeFocusChange(Y,1)}))))}),C(this,"onDragSelectionStart",j=>{const{onChange:z,dragSelectionEnabled:Q}=this.props;Q?this.setState({drag:{status:!0,range:{startDate:j,endDate:j},disablePreview:!0}}):z&&z(j)}),C(this,"onDragSelectionEnd",j=>{const{updateRange:z,displayMode:Q,onChange:le,dragSelectionEnabled:re}=this.props;if(!re)return;if(Q==="date"||!this.state.drag.status){le&&le(j);return}const ge={startDate:this.state.drag.range.startDate,endDate:j};Q!=="dateRange"||(0,d.isSameDay)(ge.startDate,j)?this.setState({drag:{status:!1,range:{}}},()=>le&&le(j)):this.setState({drag:{status:!1,range:{}}},()=>{z&&z(ge)})}),C(this,"onDragSelectionMove",j=>{const{drag:z}=this.state;!z.status||!this.props.dragSelectionEnabled||this.setState({drag:{status:z.status,range:{startDate:z.range.startDate,endDate:j},disablePreview:!0}})}),C(this,"estimateMonthSize",(j,z)=>{const{direction:Q,minDate:le}=this.props,{scrollArea:re}=this.state;if(z&&(this.listSizeCache=z,z[j]))return z[j];if(Q==="horizontal")return re.monthWidth;const ge=(0,d.addMonths)(le,j),{start:me,end:W}=(0,i.getMonthDisplayRange)(ge,this.dateOptions);return(0,d.differenceInDays)(W,me,this.dateOptions)+1>35?re.longMonthHeight:re.monthHeight}),this.dateOptions={locale:N.locale},N.weekStartsOn!==void 0&&(this.dateOptions.weekStartsOn=N.weekStartsOn),this.styles=(0,i.generateStyles)([g.default,N.classNames]),this.listSizeCache={},this.isFirstRender=!0,this.state={monthNames:this.getMonthNames(),focusedDate:(0,i.calcFocusDate)(null,N),drag:{status:!1,range:{startDate:null,endDate:null},disablePreview:!1},scrollArea:this.calcScrollArea(N)}}getMonthNames(){return[...Array(12).keys()].map(N=>this.props.locale.localize.month(N))}calcScrollArea(N){const{direction:I,months:L,scroll:j}=N;if(!j.enabled)return{enabled:!1};const z=j.longMonthHeight||j.monthHeight;return I==="vertical"?{enabled:!0,monthHeight:j.monthHeight||220,longMonthHeight:z||260,calendarWidth:"auto",calendarHeight:(j.calendarHeight||z||240)*L}:{enabled:!0,monthWidth:j.monthWidth||332,calendarWidth:(j.calendarWidth||j.monthWidth||332)*L,monthHeight:z||300,calendarHeight:z||300}}componentDidMount(){this.props.scroll.enabled&&setTimeout(()=>this.focusToDate(this.state.focusedDate))}componentDidUpdate(N){const L={dateRange:"ranges",date:"date"}[this.props.displayMode];this.props[L]!==N[L]&&this.updateShownDate(this.props),(N.locale!==this.props.locale||N.weekStartsOn!==this.props.weekStartsOn)&&(this.dateOptions={locale:this.props.locale},this.props.weekStartsOn!==void 0&&(this.dateOptions.weekStartsOn=this.props.weekStartsOn),this.setState({monthNames:this.getMonthNames()})),(0,u.shallowEqualObjects)(N.scroll,this.props.scroll)||this.setState({scrollArea:this.calcScrollArea(this.props)})}renderWeekdays(){const N=new Date;return e.default.createElement("div",{className:this.styles.weekDays},(0,d.eachDayOfInterval)({start:(0,d.startOfWeek)(N,this.dateOptions),end:(0,d.endOfWeek)(N,this.dateOptions)}).map((I,L)=>e.default.createElement("span",{className:this.styles.weekDay,key:L},(0,d.format)(I,this.props.weekdayDisplayFormat,this.dateOptions))))}render(){const{showDateDisplay:N,onPreviewChange:I,scroll:L,direction:j,disabledDates:z,disabledDay:Q,maxDate:le,minDate:re,rangeColors:ge,color:me,navigatorRenderer:W,className:G,preview:q}=this.props,{scrollArea:ce,focusedDate:H}=this.state,Y=j==="vertical",ie=W||this.renderMonthAndYear,J=this.props.ranges.map((ee,Z)=>({...ee,color:ee.color||ge[Z]||me}));return e.default.createElement("div",{className:(0,o.default)(this.styles.calendarWrapper,G),onMouseUp:()=>this.setState({drag:{status:!1,range:{}}}),onMouseLeave:()=>{this.setState({drag:{status:!1,range:{}}})}},N&&this.renderDateDisplay(),ie(H,this.changeShownDate,this.props),L.enabled?e.default.createElement("div",null,Y&&this.renderWeekdays(this.dateOptions),e.default.createElement("div",{className:(0,o.default)(this.styles.infiniteMonths,Y?this.styles.monthsVertical:this.styles.monthsHorizontal),onMouseLeave:()=>I&&I(),style:{width:ce.calendarWidth+11,height:ce.calendarHeight+11},onScroll:this.handleScroll},e.default.createElement(l.default,{length:(0,d.differenceInCalendarMonths)((0,d.endOfMonth)(le),(0,d.addDays)((0,d.startOfMonth)(re),-1),this.dateOptions),treshold:500,type:"variable",ref:ee=>this.list=ee,itemSizeEstimator:this.estimateMonthSize,axis:Y?"y":"x",itemRenderer:(ee,Z)=>{const ue=(0,d.addMonths)(re,ee);return e.default.createElement(r.default,T({},this.props,{onPreviewChange:I||this.updatePreview,preview:q||this.state.preview,ranges:J,key:Z,drag:this.state.drag,dateOptions:this.dateOptions,disabledDates:z,disabledDay:Q,month:ue,onDragSelectionStart:this.onDragSelectionStart,onDragSelectionEnd:this.onDragSelectionEnd,onDragSelectionMove:this.onDragSelectionMove,onMouseLeave:()=>I&&I(),styles:this.styles,style:Y?{height:this.estimateMonthSize(ee)}:{height:ce.monthHeight,width:this.estimateMonthSize(ee)},showMonthName:!0,showWeekDays:!Y}))}}))):e.default.createElement("div",{className:(0,o.default)(this.styles.months,Y?this.styles.monthsVertical:this.styles.monthsHorizontal)},new Array(this.props.months).fill(null).map((ee,Z)=>{let ue=(0,d.addMonths)(this.state.focusedDate,Z);return this.props.calendarFocus==="backwards"&&(ue=(0,d.subMonths)(this.state.focusedDate,this.props.months-1-Z)),e.default.createElement(r.default,T({},this.props,{onPreviewChange:I||this.updatePreview,preview:q||this.state.preview,ranges:J,key:Z,drag:this.state.drag,dateOptions:this.dateOptions,disabledDates:z,disabledDay:Q,month:ue,onDragSelectionStart:this.onDragSelectionStart,onDragSelectionEnd:this.onDragSelectionEnd,onDragSelectionMove:this.onDragSelectionMove,onMouseLeave:()=>I&&I(),styles:this.styles,showWeekDays:!Y||Z===0,showMonthName:!Y||Z>0}))})))}};return A.defaultProps={showMonthArrow:!0,showMonthAndYearPickers:!0,disabledDates:[],disabledDay:()=>{},classNames:{},locale:f.enUS,ranges:[],focusedRange:[0,0],dateDisplayFormat:"MMM d, yyyy",monthDisplayFormat:"MMM yyyy",weekdayDisplayFormat:"E",dayDisplayFormat:"d",showDateDisplay:!0,showPreview:!0,displayMode:"date",months:1,color:"#3d91ff",scroll:{enabled:!1},direction:"vertical",maxDate:(0,d.addYears)(new Date,20),minDate:(0,d.addYears)(new Date,-100),rangeColors:["#3d91ff","#3ecf8e","#fed14c"],startDatePlaceholder:"Early",endDatePlaceholder:"Continuous",editableDateInputs:!1,dragSelectionEnabled:!0,fixedHeight:!1,calendarFocus:"forwards",preventSnapRefocus:!1,ariaLabels:{}},A.propTypes={showMonthArrow:t.default.bool,showMonthAndYearPickers:t.default.bool,disabledDates:t.default.array,disabledDay:t.default.func,minDate:t.default.object,maxDate:t.default.object,date:t.default.object,onChange:t.default.func,onPreviewChange:t.default.func,onRangeFocusChange:t.default.func,classNames:t.default.object,locale:t.default.object,shownDate:t.default.object,onShownDateChange:t.default.func,ranges:t.default.arrayOf(n.rangeShape),preview:t.default.shape({startDate:t.default.object,endDate:t.default.object,color:t.default.string}),dateDisplayFormat:t.default.string,monthDisplayFormat:t.default.string,weekdayDisplayFormat:t.default.string,weekStartsOn:t.default.number,dayDisplayFormat:t.default.string,focusedRange:t.default.arrayOf(t.default.number),initialFocusedRange:t.default.arrayOf(t.default.number),months:t.default.number,className:t.default.string,showDateDisplay:t.default.bool,showPreview:t.default.bool,displayMode:t.default.oneOf(["dateRange","date"]),color:t.default.string,updateRange:t.default.func,scroll:t.default.shape({enabled:t.default.bool,monthHeight:t.default.number,longMonthHeight:t.default.number,monthWidth:t.default.number,calendarWidth:t.default.number,calendarHeight:t.default.number}),direction:t.default.oneOf(["vertical","horizontal"]),startDatePlaceholder:t.default.string,endDatePlaceholder:t.default.string,navigatorRenderer:t.default.func,rangeColors:t.default.arrayOf(t.default.string),editableDateInputs:t.default.bool,dragSelectionEnabled:t.default.bool,fixedHeight:t.default.bool,calendarFocus:t.default.string,preventSnapRefocus:t.default.bool,ariaLabels:y.ariaLabelsShape},B1.default=A,B1}var OG;function Rae(){if(OG)return U1;OG=1,Object.defineProperty(U1,"__esModule",{value:!0}),U1.default=void 0;var e=f(Us()),t=u(Mc()),n=u(Oae()),r=nO(),a=rO(),i=Zv,o=u(mh()),l=u(aO());function u(T){return T&&T.__esModule?T:{default:T}}function d(T){if(typeof WeakMap!="function")return null;var C=new WeakMap,k=new WeakMap;return(d=function(_){return _?k:C})(T)}function f(T,C){if(T&&T.__esModule)return T;if(T===null||typeof T!="object"&&typeof T!="function")return{default:T};var k=d(C);if(k&&k.has(T))return k.get(T);var _={__proto__:null},A=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var P in T)if(P!=="default"&&Object.prototype.hasOwnProperty.call(T,P)){var N=A?Object.getOwnPropertyDescriptor(T,P):null;N&&(N.get||N.set)?Object.defineProperty(_,P,N):_[P]=T[P]}return _.default=T,k&&k.set(T,_),_}function g(){return g=Object.assign?Object.assign.bind():function(T){for(var C=1;C1&&arguments[1]!==void 0?arguments[1]:!0;const N=_.props.focusedRange||_.state.focusedRange,{ranges:I,onChange:L,maxDate:j,moveRangeOnFirstSelection:z,retainEndDateOnFirstSelection:Q,disabledDates:le}=_.props,re=N[0],ge=I[re];if(!ge||!L)return{};let{startDate:me,endDate:W}=ge;const G=new Date;let q;if(!P)me=A.startDate,W=A.endDate;else if(N[1]===0){const Y=(0,i.differenceInCalendarDays)(W||G,me),ie=()=>z?(0,i.addDays)(A,Y):Q?!W||(0,i.isBefore)(A,W)?W:A:A||G;me=A,W=ie(),j&&(W=(0,i.min)([W,j])),q=[N[0],1]}else W=A;let ce=N[1]===0;(0,i.isBefore)(W,me)&&(ce=!ce,[me,W]=[W,me]);const H=le.filter(Y=>(0,i.isWithinInterval)(Y,{start:me,end:W}));return H.length>0&&(ce?me=(0,i.addDays)((0,i.max)(H),1):W=(0,i.addDays)((0,i.min)(H),-1)),q||(q=[(0,a.findNextRangeIndex)(_.props.ranges,N[0]),0]),{wasValid:!(H.length>0),range:{startDate:me,endDate:W},nextFocusRange:q}}),y(this,"setSelection",(A,P)=>{const{onChange:N,ranges:I,onRangeFocusChange:L}=this.props,z=(this.props.focusedRange||this.state.focusedRange)[0],Q=I[z];if(!Q)return;const le=this.calcNewSelection(A,P);N({[Q.key||`range${z+1}`]:{...Q,...le.range}}),this.setState({focusedRange:le.nextFocusRange,preview:null}),L&&L(le.nextFocusRange)}),y(this,"handleRangeFocusChange",A=>{this.setState({focusedRange:A}),this.props.onRangeFocusChange&&this.props.onRangeFocusChange(A)}),y(this,"updatePreview",A=>{var j;if(!A){this.setState({preview:null});return}const{rangeColors:P,ranges:N}=this.props,I=this.props.focusedRange||this.state.focusedRange,L=((j=N[I[0]])==null?void 0:j.color)||P[I[0]]||L;this.setState({preview:{...A.range,color:L}})}),this.state={focusedRange:C.initialFocusedRange||[(0,a.findNextRangeIndex)(C.ranges),0],preview:null},this.styles=(0,a.generateStyles)([l.default,C.classNames])}render(){return e.default.createElement(n.default,g({focusedRange:this.state.focusedRange,onRangeFocusChange:this.handleRangeFocusChange,preview:this.state.preview,onPreviewChange:C=>{this.updatePreview(C?this.calcNewSelection(C):null)}},this.props,{displayMode:"dateRange",className:(0,o.default)(this.styles.dateRangeWrapper,this.props.className),onChange:this.setSelection,updateRange:C=>this.setSelection(C,!1),ref:C=>{this.calendar=C}}))}};return E.defaultProps={classNames:{},ranges:[],moveRangeOnFirstSelection:!1,retainEndDateOnFirstSelection:!1,rangeColors:["#3d91ff","#3ecf8e","#fed14c"],disabledDates:[]},E.propTypes={...n.default.propTypes,onChange:t.default.func,onRangeFocusChange:t.default.func,className:t.default.string,ranges:t.default.arrayOf(r.rangeShape),moveRangeOnFirstSelection:t.default.bool,retainEndDateOnFirstSelection:t.default.bool},U1.default=E,U1}var G1={},Y1={},Wp={},RG;function Pae(){if(RG)return Wp;RG=1,Object.defineProperty(Wp,"__esModule",{value:!0}),Wp.createStaticRanges=r,Wp.defaultStaticRanges=Wp.defaultInputRanges=void 0;var e=Zv;const t={startOfWeek:(0,e.startOfWeek)(new Date),endOfWeek:(0,e.endOfWeek)(new Date),startOfLastWeek:(0,e.startOfWeek)((0,e.addDays)(new Date,-7)),endOfLastWeek:(0,e.endOfWeek)((0,e.addDays)(new Date,-7)),startOfToday:(0,e.startOfDay)(new Date),endOfToday:(0,e.endOfDay)(new Date),startOfYesterday:(0,e.startOfDay)((0,e.addDays)(new Date,-1)),endOfYesterday:(0,e.endOfDay)((0,e.addDays)(new Date,-1)),startOfMonth:(0,e.startOfMonth)(new Date),endOfMonth:(0,e.endOfMonth)(new Date),startOfLastMonth:(0,e.startOfMonth)((0,e.addMonths)(new Date,-1)),endOfLastMonth:(0,e.endOfMonth)((0,e.addMonths)(new Date,-1))},n={range:{},isSelected(a){const i=this.range();return(0,e.isSameDay)(a.startDate,i.startDate)&&(0,e.isSameDay)(a.endDate,i.endDate)}};function r(a){return a.map(i=>({...n,...i}))}return Wp.defaultStaticRanges=r([{label:"Today",range:()=>({startDate:t.startOfToday,endDate:t.endOfToday})},{label:"Yesterday",range:()=>({startDate:t.startOfYesterday,endDate:t.endOfYesterday})},{label:"This Week",range:()=>({startDate:t.startOfWeek,endDate:t.endOfWeek})},{label:"Last Week",range:()=>({startDate:t.startOfLastWeek,endDate:t.endOfLastWeek})},{label:"This Month",range:()=>({startDate:t.startOfMonth,endDate:t.endOfMonth})},{label:"Last Month",range:()=>({startDate:t.startOfLastMonth,endDate:t.endOfLastMonth})}]),Wp.defaultInputRanges=[{label:"days up to today",range(a){return{startDate:(0,e.addDays)(t.startOfToday,(Math.max(Number(a),1)-1)*-1),endDate:t.endOfToday}},getCurrentValue(a){return(0,e.isSameDay)(a.endDate,t.endOfToday)?a.startDate?(0,e.differenceInCalendarDays)(t.endOfToday,a.startDate)+1:"∞":"-"}},{label:"days starting today",range(a){const i=new Date;return{startDate:i,endDate:(0,e.addDays)(i,Math.max(Number(a),1)-1)}},getCurrentValue(a){return(0,e.isSameDay)(a.startDate,t.startOfToday)?a.endDate?(0,e.differenceInCalendarDays)(a.endDate,t.startOfToday)+1:"∞":"-"}}],Wp}var K1={},PG;function C9e(){if(PG)return K1;PG=1,Object.defineProperty(K1,"__esModule",{value:!0}),K1.default=void 0;var e=a(Us()),t=n(Mc());function n(g){return g&&g.__esModule?g:{default:g}}function r(g){if(typeof WeakMap!="function")return null;var y=new WeakMap,h=new WeakMap;return(r=function(v){return v?h:y})(g)}function a(g,y){if(g&&g.__esModule)return g;if(g===null||typeof g!="object"&&typeof g!="function")return{default:g};var h=r(y);if(h&&h.has(g))return h.get(g);var v={__proto__:null},E=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var T in g)if(T!=="default"&&Object.prototype.hasOwnProperty.call(g,T)){var C=E?Object.getOwnPropertyDescriptor(g,T):null;C&&(C.get||C.set)?Object.defineProperty(v,T,C):v[T]=g[T]}return v.default=g,h&&h.set(g,v),v}function i(g,y,h){return y=o(y),y in g?Object.defineProperty(g,y,{value:h,enumerable:!0,configurable:!0,writable:!0}):g[y]=h,g}function o(g){var y=l(g,"string");return typeof y=="symbol"?y:String(y)}function l(g,y){if(typeof g!="object"||!g)return g;var h=g[Symbol.toPrimitive];if(h!==void 0){var v=h.call(g,y);if(typeof v!="object")return v;throw new TypeError("@@toPrimitive must return a primitive value.")}return(y==="string"?String:Number)(g)}const u=0,d=99999;let f=class extends e.Component{constructor(y,h){super(y,h),i(this,"onChange",v=>{const{onChange:E}=this.props;let T=parseInt(v.target.value,10);T=isNaN(T)?0:Math.max(Math.min(d,T),u),E(T)})}shouldComponentUpdate(y){const{value:h,label:v,placeholder:E}=this.props;return h!==y.value||v!==y.label||E!==y.placeholder}render(){const{label:y,placeholder:h,value:v,styles:E,onBlur:T,onFocus:C}=this.props;return e.default.createElement("div",{className:E.inputRange},e.default.createElement("input",{className:E.inputRangeInput,placeholder:h,value:v,min:u,max:d,onChange:this.onChange,onFocus:C,onBlur:T}),e.default.createElement("span",{className:E.inputRangeLabel},y))}};return f.propTypes={value:t.default.oneOfType([t.default.string,t.default.number]),label:t.default.oneOfType([t.default.element,t.default.node]).isRequired,placeholder:t.default.string,styles:t.default.shape({inputRange:t.default.string,inputRangeInput:t.default.string,inputRangeLabel:t.default.string}).isRequired,onBlur:t.default.func.isRequired,onFocus:t.default.func.isRequired,onChange:t.default.func.isRequired},f.defaultProps={value:"",placeholder:"-"},K1.default=f,K1}var AG;function Aae(){if(AG)return Y1;AG=1,Object.defineProperty(Y1,"__esModule",{value:!0}),Y1.default=void 0;var e=d(Us()),t=l(Mc()),n=l(aO()),r=Pae(),a=nO(),i=l(C9e()),o=l(mh());function l(v){return v&&v.__esModule?v:{default:v}}function u(v){if(typeof WeakMap!="function")return null;var E=new WeakMap,T=new WeakMap;return(u=function(C){return C?T:E})(v)}function d(v,E){if(v&&v.__esModule)return v;if(v===null||typeof v!="object"&&typeof v!="function")return{default:v};var T=u(E);if(T&&T.has(v))return T.get(v);var C={__proto__:null},k=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var _ in v)if(_!=="default"&&Object.prototype.hasOwnProperty.call(v,_)){var A=k?Object.getOwnPropertyDescriptor(v,_):null;A&&(A.get||A.set)?Object.defineProperty(C,_,A):C[_]=v[_]}return C.default=v,T&&T.set(v,C),C}function f(v,E,T){return E=g(E),E in v?Object.defineProperty(v,E,{value:T,enumerable:!0,configurable:!0,writable:!0}):v[E]=T,v}function g(v){var E=y(v,"string");return typeof E=="symbol"?E:String(E)}function y(v,E){if(typeof v!="object"||!v)return v;var T=v[Symbol.toPrimitive];if(T!==void 0){var C=T.call(v,E);if(typeof C!="object")return C;throw new TypeError("@@toPrimitive must return a primitive value.")}return(E==="string"?String:Number)(v)}let h=class extends e.Component{constructor(E){super(E),f(this,"handleRangeChange",T=>{const{onChange:C,ranges:k,focusedRange:_}=this.props,A=k[_[0]];!C||!A||C({[A.key||`range${_[0]+1}`]:{...A,...T}})}),this.state={rangeOffset:0,focusedInput:-1}}getRangeOptionValue(E){const{ranges:T=[],focusedRange:C=[]}=this.props;if(typeof E.getCurrentValue!="function")return"";const k=T[C[0]]||{};return E.getCurrentValue(k)||""}getSelectedRange(E,T){const C=E.findIndex(_=>!_.startDate||!_.endDate||_.disabled?!1:T.isSelected(_));return{selectedRange:E[C],focusedRangeIndex:C}}render(){const{headerContent:E,footerContent:T,onPreviewChange:C,inputRanges:k,staticRanges:_,ranges:A,renderStaticRangeLabel:P,rangeColors:N,className:I}=this.props;return e.default.createElement("div",{className:(0,o.default)(n.default.definedRangesWrapper,I)},E,e.default.createElement("div",{className:n.default.staticRanges},_.map((L,j)=>{const{selectedRange:z,focusedRangeIndex:Q}=this.getSelectedRange(A,L);let le;return L.hasCustomRendering?le=P(L):le=L.label,e.default.createElement("button",{type:"button",className:(0,o.default)(n.default.staticRange,{[n.default.staticRangeSelected]:!!z}),style:{color:z?z.color||N[Q]:null},key:j,onClick:()=>this.handleRangeChange(L.range(this.props)),onFocus:()=>C&&C(L.range(this.props)),onMouseOver:()=>C&&C(L.range(this.props)),onMouseLeave:()=>{C&&C()}},e.default.createElement("span",{tabIndex:-1,className:n.default.staticRangeLabel},le))})),e.default.createElement("div",{className:n.default.inputRanges},k.map((L,j)=>e.default.createElement(i.default,{key:j,styles:n.default,label:L.label,onFocus:()=>this.setState({focusedInput:j,rangeOffset:0}),onBlur:()=>this.setState({rangeOffset:0}),onChange:z=>this.handleRangeChange(L.range(z,this.props)),value:this.getRangeOptionValue(L)}))),T)}};return h.propTypes={inputRanges:t.default.array,staticRanges:t.default.array,ranges:t.default.arrayOf(a.rangeShape),focusedRange:t.default.arrayOf(t.default.number),onPreviewChange:t.default.func,onChange:t.default.func,footerContent:t.default.any,headerContent:t.default.any,rangeColors:t.default.arrayOf(t.default.string),className:t.default.string,renderStaticRangeLabel:t.default.func},h.defaultProps={inputRanges:r.defaultInputRanges,staticRanges:r.defaultStaticRanges,ranges:[],rangeColors:["#3d91ff","#3ecf8e","#fed14c"],focusedRange:[0,0]},Y1.default=h,Y1}var NG;function k9e(){if(NG)return G1;NG=1,Object.defineProperty(G1,"__esModule",{value:!0}),G1.default=void 0;var e=d(Us()),t=l(Mc()),n=l(Rae()),r=l(Aae()),a=rO(),i=l(mh()),o=l(aO());function l(y){return y&&y.__esModule?y:{default:y}}function u(y){if(typeof WeakMap!="function")return null;var h=new WeakMap,v=new WeakMap;return(u=function(E){return E?v:h})(y)}function d(y,h){if(y&&y.__esModule)return y;if(y===null||typeof y!="object"&&typeof y!="function")return{default:y};var v=u(h);if(v&&v.has(y))return v.get(y);var E={__proto__:null},T=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var C in y)if(C!=="default"&&Object.prototype.hasOwnProperty.call(y,C)){var k=T?Object.getOwnPropertyDescriptor(y,C):null;k&&(k.get||k.set)?Object.defineProperty(E,C,k):E[C]=y[C]}return E.default=y,v&&v.set(y,E),E}function f(){return f=Object.assign?Object.assign.bind():function(y){for(var h=1;hthis.dateRange.updatePreview(v?this.dateRange.calcNewSelection(v,typeof v=="string"):null)},this.props,{range:this.props.ranges[h[0]],className:void 0})),e.default.createElement(n.default,f({onRangeFocusChange:v=>this.setState({focusedRange:v}),focusedRange:h},this.props,{ref:v=>this.dateRange=v,className:void 0})))}};return g.defaultProps={},g.propTypes={...n.default.propTypes,...r.default.propTypes,className:t.default.string},G1.default=g,G1}var MG;function x9e(){return MG||(MG=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"Calendar",{enumerable:!0,get:function(){return n.default}}),Object.defineProperty(e,"DateRange",{enumerable:!0,get:function(){return t.default}}),Object.defineProperty(e,"DateRangePicker",{enumerable:!0,get:function(){return r.default}}),Object.defineProperty(e,"DefinedRange",{enumerable:!0,get:function(){return a.default}}),Object.defineProperty(e,"createStaticRanges",{enumerable:!0,get:function(){return i.createStaticRanges}}),Object.defineProperty(e,"defaultInputRanges",{enumerable:!0,get:function(){return i.defaultInputRanges}}),Object.defineProperty(e,"defaultStaticRanges",{enumerable:!0,get:function(){return i.defaultStaticRanges}});var t=o(Rae()),n=o(Oae()),r=o(k9e()),a=o(Aae()),i=Pae();function o(l){return l&&l.__esModule?l:{default:l}}})(R$)),R$}var _9e=x9e(),N$={},O9e={lessThanXSeconds:{one:"minder as 'n sekonde",other:"minder as {{count}} sekondes"},xSeconds:{one:"1 sekonde",other:"{{count}} sekondes"},halfAMinute:"'n halwe minuut",lessThanXMinutes:{one:"minder as 'n minuut",other:"minder as {{count}} minute"},xMinutes:{one:"'n minuut",other:"{{count}} minute"},aboutXHours:{one:"ongeveer 1 uur",other:"ongeveer {{count}} ure"},xHours:{one:"1 uur",other:"{{count}} ure"},xDays:{one:"1 dag",other:"{{count}} dae"},aboutXWeeks:{one:"ongeveer 1 week",other:"ongeveer {{count}} weke"},xWeeks:{one:"1 week",other:"{{count}} weke"},aboutXMonths:{one:"ongeveer 1 maand",other:"ongeveer {{count}} maande"},xMonths:{one:"1 maand",other:"{{count}} maande"},aboutXYears:{one:"ongeveer 1 jaar",other:"ongeveer {{count}} jaar"},xYears:{one:"1 jaar",other:"{{count}} jaar"},overXYears:{one:"meer as 1 jaar",other:"meer as {{count}} jaar"},almostXYears:{one:"byna 1 jaar",other:"byna {{count}} jaar"}},R9e=function(t,n,r){var a,i=O9e[t];return typeof i=="string"?a=i:n===1?a=i.one:a=i.other.replace("{{count}}",String(n)),r!=null&&r.addSuffix?r.comparison&&r.comparison>0?"oor "+a:a+" gelede":a},P9e={full:"EEEE, d MMMM yyyy",long:"d MMMM yyyy",medium:"d MMM yyyy",short:"yyyy/MM/dd"},A9e={full:"HH:mm:ss zzzz",long:"HH:mm:ss z",medium:"HH:mm:ss",short:"HH:mm"},N9e={full:"{{date}} 'om' {{time}}",long:"{{date}} 'om' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},M9e={date:Ne({formats:P9e,defaultWidth:"full"}),time:Ne({formats:A9e,defaultWidth:"full"}),dateTime:Ne({formats:N9e,defaultWidth:"full"})},I9e={lastWeek:"'verlede' eeee 'om' p",yesterday:"'gister om' p",today:"'vandag om' p",tomorrow:"'môre om' p",nextWeek:"eeee 'om' p",other:"P"},D9e=function(t,n,r,a){return I9e[t]},$9e={narrow:["vC","nC"],abbreviated:["vC","nC"],wide:["voor Christus","na Christus"]},L9e={narrow:["1","2","3","4"],abbreviated:["K1","K2","K3","K4"],wide:["1ste kwartaal","2de kwartaal","3de kwartaal","4de kwartaal"]},F9e={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mrt","Apr","Mei","Jun","Jul","Aug","Sep","Okt","Nov","Des"],wide:["Januarie","Februarie","Maart","April","Mei","Junie","Julie","Augustus","September","Oktober","November","Desember"]},j9e={narrow:["S","M","D","W","D","V","S"],short:["So","Ma","Di","Wo","Do","Vr","Sa"],abbreviated:["Son","Maa","Din","Woe","Don","Vry","Sat"],wide:["Sondag","Maandag","Dinsdag","Woensdag","Donderdag","Vrydag","Saterdag"]},U9e={narrow:{am:"vm",pm:"nm",midnight:"middernag",noon:"middaguur",morning:"oggend",afternoon:"middag",evening:"laat middag",night:"aand"},abbreviated:{am:"vm",pm:"nm",midnight:"middernag",noon:"middaguur",morning:"oggend",afternoon:"middag",evening:"laat middag",night:"aand"},wide:{am:"vm",pm:"nm",midnight:"middernag",noon:"middaguur",morning:"oggend",afternoon:"middag",evening:"laat middag",night:"aand"}},B9e={narrow:{am:"vm",pm:"nm",midnight:"middernag",noon:"uur die middag",morning:"uur die oggend",afternoon:"uur die middag",evening:"uur die aand",night:"uur die aand"},abbreviated:{am:"vm",pm:"nm",midnight:"middernag",noon:"uur die middag",morning:"uur die oggend",afternoon:"uur die middag",evening:"uur die aand",night:"uur die aand"},wide:{am:"vm",pm:"nm",midnight:"middernag",noon:"uur die middag",morning:"uur die oggend",afternoon:"uur die middag",evening:"uur die aand",night:"uur die aand"}},W9e=function(t){var n=Number(t),r=n%100;if(r<20)switch(r){case 1:case 8:return n+"ste";default:return n+"de"}return n+"ste"},z9e={ordinalNumber:W9e,era:oe({values:$9e,defaultWidth:"wide"}),quarter:oe({values:L9e,defaultWidth:"wide",argumentCallback:function(t){return t-1}}),month:oe({values:F9e,defaultWidth:"wide"}),day:oe({values:j9e,defaultWidth:"wide"}),dayPeriod:oe({values:U9e,defaultWidth:"wide",formattingValues:B9e,defaultFormattingWidth:"wide"})},q9e=/^(\d+)(ste|de)?/i,H9e=/\d+/i,V9e={narrow:/^([vn]\.? ?C\.?)/,abbreviated:/^([vn]\. ?C\.?)/,wide:/^((voor|na) Christus)/},G9e={any:[/^v/,/^n/]},Y9e={narrow:/^[1234]/i,abbreviated:/^K[1234]/i,wide:/^[1234](st|d)e kwartaal/i},K9e={any:[/1/i,/2/i,/3/i,/4/i]},X9e={narrow:/^[jfmasond]/i,abbreviated:/^(Jan|Feb|Mrt|Apr|Mei|Jun|Jul|Aug|Sep|Okt|Nov|Dec)\.?/i,wide:/^(Januarie|Februarie|Maart|April|Mei|Junie|Julie|Augustus|September|Oktober|November|Desember)/i},Q9e={narrow:[/^J/i,/^F/i,/^M/i,/^A/i,/^M/i,/^J/i,/^J/i,/^A/i,/^S/i,/^O/i,/^N/i,/^D/i],any:[/^Jan/i,/^Feb/i,/^Mrt/i,/^Apr/i,/^Mei/i,/^Jun/i,/^Jul/i,/^Aug/i,/^Sep/i,/^Okt/i,/^Nov/i,/^Dec/i]},J9e={narrow:/^[smdwv]/i,short:/^(So|Ma|Di|Wo|Do|Vr|Sa)/i,abbreviated:/^(Son|Maa|Din|Woe|Don|Vry|Sat)/i,wide:/^(Sondag|Maandag|Dinsdag|Woensdag|Donderdag|Vrydag|Saterdag)/i},Z9e={narrow:[/^S/i,/^M/i,/^D/i,/^W/i,/^D/i,/^V/i,/^S/i],any:[/^So/i,/^Ma/i,/^Di/i,/^Wo/i,/^Do/i,/^Vr/i,/^Sa/i]},eHe={any:/^(vm|nm|middernag|(?:uur )?die (oggend|middag|aand))/i},tHe={any:{am:/^vm/i,pm:/^nm/i,midnight:/^middernag/i,noon:/^middaguur/i,morning:/oggend/i,afternoon:/middag/i,evening:/laat middag/i,night:/aand/i}},nHe={ordinalNumber:Xt({matchPattern:q9e,parsePattern:H9e,valueCallback:function(t){return parseInt(t,10)}}),era:se({matchPatterns:V9e,defaultMatchWidth:"wide",parsePatterns:G9e,defaultParseWidth:"any"}),quarter:se({matchPatterns:Y9e,defaultMatchWidth:"wide",parsePatterns:K9e,defaultParseWidth:"any",valueCallback:function(t){return t+1}}),month:se({matchPatterns:X9e,defaultMatchWidth:"wide",parsePatterns:Q9e,defaultParseWidth:"any"}),day:se({matchPatterns:J9e,defaultMatchWidth:"wide",parsePatterns:Z9e,defaultParseWidth:"any"}),dayPeriod:se({matchPatterns:eHe,defaultMatchWidth:"any",parsePatterns:tHe,defaultParseWidth:"any"})},rHe={code:"af",formatDistance:R9e,formatLong:M9e,formatRelative:D9e,localize:z9e,match:nHe,options:{weekStartsOn:0,firstWeekContainsDate:1}};const aHe=Object.freeze(Object.defineProperty({__proto__:null,default:rHe},Symbol.toStringTag,{value:"Module"})),iHe=jt(aHe);var oHe={lessThanXSeconds:{one:"أقل من ثانية واحدة",two:"أقل من ثانتين",threeToTen:"أقل من {{count}} ثواني",other:"أقل من {{count}} ثانية"},xSeconds:{one:"ثانية واحدة",two:"ثانتين",threeToTen:"{{count}} ثواني",other:"{{count}} ثانية"},halfAMinute:"نصف دقيقة",lessThanXMinutes:{one:"أقل من دقيقة",two:"أقل من دقيقتين",threeToTen:"أقل من {{count}} دقائق",other:"أقل من {{count}} دقيقة"},xMinutes:{one:"دقيقة واحدة",two:"دقيقتين",threeToTen:"{{count}} دقائق",other:"{{count}} دقيقة"},aboutXHours:{one:"ساعة واحدة تقريباً",two:"ساعتين تقريباً",threeToTen:"{{count}} ساعات تقريباً",other:"{{count}} ساعة تقريباً"},xHours:{one:"ساعة واحدة",two:"ساعتين",threeToTen:"{{count}} ساعات",other:"{{count}} ساعة"},xDays:{one:"يوم واحد",two:"يومين",threeToTen:"{{count}} أيام",other:"{{count}} يوم"},aboutXWeeks:{one:"أسبوع واحد تقريباً",two:"أسبوعين تقريباً",threeToTen:"{{count}} أسابيع تقريباً",other:"{{count}} أسبوع تقريباً"},xWeeks:{one:"أسبوع واحد",two:"أسبوعين",threeToTen:"{{count}} أسابيع",other:"{{count}} أسبوع"},aboutXMonths:{one:"شهر واحد تقريباً",two:"شهرين تقريباً",threeToTen:"{{count}} أشهر تقريباً",other:"{{count}} شهر تقريباً"},xMonths:{one:"شهر واحد",two:"شهرين",threeToTen:"{{count}} أشهر",other:"{{count}} شهر"},aboutXYears:{one:"عام واحد تقريباً",two:"عامين تقريباً",threeToTen:"{{count}} أعوام تقريباً",other:"{{count}} عام تقريباً"},xYears:{one:"عام واحد",two:"عامين",threeToTen:"{{count}} أعوام",other:"{{count}} عام"},overXYears:{one:"أكثر من عام",two:"أكثر من عامين",threeToTen:"أكثر من {{count}} أعوام",other:"أكثر من {{count}} عام"},almostXYears:{one:"عام واحد تقريباً",two:"عامين تقريباً",threeToTen:"{{count}} أعوام تقريباً",other:"{{count}} عام تقريباً"}},sHe=function(t,n,r){r=r||{};var a=oHe[t],i;return typeof a=="string"?i=a:n===1?i=a.one:n===2?i=a.two:n<=10?i=a.threeToTen.replace("{{count}}",String(n)):i=a.other.replace("{{count}}",String(n)),r.addSuffix?r.comparison&&r.comparison>0?"في خلال "+i:"منذ "+i:i},lHe={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},uHe={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},cHe={full:"{{date}} 'عند' {{time}}",long:"{{date}} 'عند' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},dHe={date:Ne({formats:lHe,defaultWidth:"full"}),time:Ne({formats:uHe,defaultWidth:"full"}),dateTime:Ne({formats:cHe,defaultWidth:"full"})},fHe={lastWeek:"'أخر' eeee 'عند' p",yesterday:"'أمس عند' p",today:"'اليوم عند' p",tomorrow:"'غداً عند' p",nextWeek:"eeee 'عند' p",other:"P"},pHe=function(t,n,r,a){return fHe[t]},hHe={narrow:["ق","ب"],abbreviated:["ق.م.","ب.م."],wide:["قبل الميلاد","بعد الميلاد"]},mHe={narrow:["1","2","3","4"],abbreviated:["ر1","ر2","ر3","ر4"],wide:["الربع الأول","الربع الثاني","الربع الثالث","الربع الرابع"]},gHe={narrow:["ج","ف","م","أ","م","ج","ج","أ","س","أ","ن","د"],abbreviated:["جانـ","فيفـ","مارس","أفريل","مايـ","جوانـ","جويـ","أوت","سبتـ","أكتـ","نوفـ","ديسـ"],wide:["جانفي","فيفري","مارس","أفريل","ماي","جوان","جويلية","أوت","سبتمبر","أكتوبر","نوفمبر","ديسمبر"]},vHe={narrow:["ح","ن","ث","ر","خ","ج","س"],short:["أحد","اثنين","ثلاثاء","أربعاء","خميس","جمعة","سبت"],abbreviated:["أحد","اثنـ","ثلا","أربـ","خميـ","جمعة","سبت"],wide:["الأحد","الاثنين","الثلاثاء","الأربعاء","الخميس","الجمعة","السبت"]},yHe={narrow:{am:"ص",pm:"م",midnight:"ن",noon:"ظ",morning:"صباحاً",afternoon:"بعد الظهر",evening:"مساءاً",night:"ليلاً"},abbreviated:{am:"ص",pm:"م",midnight:"نصف الليل",noon:"ظهر",morning:"صباحاً",afternoon:"بعد الظهر",evening:"مساءاً",night:"ليلاً"},wide:{am:"ص",pm:"م",midnight:"نصف الليل",noon:"ظهر",morning:"صباحاً",afternoon:"بعد الظهر",evening:"مساءاً",night:"ليلاً"}},bHe={narrow:{am:"ص",pm:"م",midnight:"ن",noon:"ظ",morning:"في الصباح",afternoon:"بعد الظـهر",evening:"في المساء",night:"في الليل"},abbreviated:{am:"ص",pm:"م",midnight:"نصف الليل",noon:"ظهر",morning:"في الصباح",afternoon:"بعد الظهر",evening:"في المساء",night:"في الليل"},wide:{am:"ص",pm:"م",midnight:"نصف الليل",noon:"ظهر",morning:"صباحاً",afternoon:"بعد الظـهر",evening:"في المساء",night:"في الليل"}},wHe=function(t){return String(t)},SHe={ordinalNumber:wHe,era:oe({values:hHe,defaultWidth:"wide"}),quarter:oe({values:mHe,defaultWidth:"wide",argumentCallback:function(t){return Number(t)-1}}),month:oe({values:gHe,defaultWidth:"wide"}),day:oe({values:vHe,defaultWidth:"wide"}),dayPeriod:oe({values:yHe,defaultWidth:"wide",formattingValues:bHe,defaultFormattingWidth:"wide"})},EHe=/^(\d+)(th|st|nd|rd)?/i,THe=/\d+/i,CHe={narrow:/^(ق|ب)/i,abbreviated:/^(ق\.?\s?م\.?|ق\.?\s?م\.?\s?|a\.?\s?d\.?|c\.?\s?)/i,wide:/^(قبل الميلاد|قبل الميلاد|بعد الميلاد|بعد الميلاد)/i},kHe={any:[/^قبل/i,/^بعد/i]},xHe={narrow:/^[1234]/i,abbreviated:/^ر[1234]/i,wide:/^الربع [1234]/i},_He={any:[/1/i,/2/i,/3/i,/4/i]},OHe={narrow:/^[جفمأسند]/i,abbreviated:/^(جان|فيف|مار|أفر|ماي|جوا|جوي|أوت|سبت|أكت|نوف|ديس)/i,wide:/^(جانفي|فيفري|مارس|أفريل|ماي|جوان|جويلية|أوت|سبتمبر|أكتوبر|نوفمبر|ديسمبر)/i},RHe={narrow:[/^ج/i,/^ف/i,/^م/i,/^أ/i,/^م/i,/^ج/i,/^ج/i,/^أ/i,/^س/i,/^أ/i,/^ن/i,/^د/i],any:[/^جان/i,/^فيف/i,/^مار/i,/^أفر/i,/^ماي/i,/^جوا/i,/^جوي/i,/^أوت/i,/^سبت/i,/^أكت/i,/^نوف/i,/^ديس/i]},PHe={narrow:/^[حنثرخجس]/i,short:/^(أحد|اثنين|ثلاثاء|أربعاء|خميس|جمعة|سبت)/i,abbreviated:/^(أحد|اثن|ثلا|أرب|خمي|جمعة|سبت)/i,wide:/^(الأحد|الاثنين|الثلاثاء|الأربعاء|الخميس|الجمعة|السبت)/i},AHe={narrow:[/^ح/i,/^ن/i,/^ث/i,/^ر/i,/^خ/i,/^ج/i,/^س/i],wide:[/^الأحد/i,/^الاثنين/i,/^الثلاثاء/i,/^الأربعاء/i,/^الخميس/i,/^الجمعة/i,/^السبت/i],any:[/^أح/i,/^اث/i,/^ث/i,/^أر/i,/^خ/i,/^ج/i,/^س/i]},NHe={narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},MHe={any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},IHe={ordinalNumber:Xt({matchPattern:EHe,parsePattern:THe,valueCallback:function(t){return parseInt(t,10)}}),era:se({matchPatterns:CHe,defaultMatchWidth:"wide",parsePatterns:kHe,defaultParseWidth:"any"}),quarter:se({matchPatterns:xHe,defaultMatchWidth:"wide",parsePatterns:_He,defaultParseWidth:"any",valueCallback:function(t){return Number(t)+1}}),month:se({matchPatterns:OHe,defaultMatchWidth:"wide",parsePatterns:RHe,defaultParseWidth:"any"}),day:se({matchPatterns:PHe,defaultMatchWidth:"wide",parsePatterns:AHe,defaultParseWidth:"any"}),dayPeriod:se({matchPatterns:NHe,defaultMatchWidth:"any",parsePatterns:MHe,defaultParseWidth:"any"})},DHe={code:"ar-DZ",formatDistance:sHe,formatLong:dHe,formatRelative:pHe,localize:SHe,match:IHe,options:{weekStartsOn:0,firstWeekContainsDate:1}};const $He=Object.freeze(Object.defineProperty({__proto__:null,default:DHe},Symbol.toStringTag,{value:"Module"})),LHe=jt($He);var FHe={lessThanXSeconds:{one:"أقل من ثانية واحدة",two:"أقل من ثانتين",threeToTen:"أقل من {{count}} ثواني",other:"أقل من {{count}} ثانية"},xSeconds:{one:"ثانية واحدة",two:"ثانتين",threeToTen:"{{count}} ثواني",other:"{{count}} ثانية"},halfAMinute:"نصف دقيقة",lessThanXMinutes:{one:"أقل من دقيقة",two:"أقل من دقيقتين",threeToTen:"أقل من {{count}} دقائق",other:"أقل من {{count}} دقيقة"},xMinutes:{one:"دقيقة واحدة",two:"دقيقتين",threeToTen:"{{count}} دقائق",other:"{{count}} دقيقة"},aboutXHours:{one:"ساعة واحدة تقريباً",two:"ساعتين تقريباً",threeToTen:"{{count}} ساعات تقريباً",other:"{{count}} ساعة تقريباً"},xHours:{one:"ساعة واحدة",two:"ساعتين",threeToTen:"{{count}} ساعات",other:"{{count}} ساعة"},xDays:{one:"يوم واحد",two:"يومين",threeToTen:"{{count}} أيام",other:"{{count}} يوم"},aboutXWeeks:{one:"أسبوع واحد تقريباً",two:"أسبوعين تقريباً",threeToTen:"{{count}} أسابيع تقريباً",other:"{{count}} أسبوع تقريباً"},xWeeks:{one:"أسبوع واحد",two:"أسبوعين",threeToTen:"{{count}} أسابيع",other:"{{count}} أسبوع"},aboutXMonths:{one:"شهر واحد تقريباً",two:"شهرين تقريباً",threeToTen:"{{count}} أشهر تقريباً",other:"{{count}} شهر تقريباً"},xMonths:{one:"شهر واحد",two:"شهرين",threeToTen:"{{count}} أشهر",other:"{{count}} شهر"},aboutXYears:{one:"عام واحد تقريباً",two:"عامين تقريباً",threeToTen:"{{count}} أعوام تقريباً",other:"{{count}} عام تقريباً"},xYears:{one:"عام واحد",two:"عامين",threeToTen:"{{count}} أعوام",other:"{{count}} عام"},overXYears:{one:"أكثر من عام",two:"أكثر من عامين",threeToTen:"أكثر من {{count}} أعوام",other:"أكثر من {{count}} عام"},almostXYears:{one:"عام واحد تقريباً",two:"عامين تقريباً",threeToTen:"{{count}} أعوام تقريباً",other:"{{count}} عام تقريباً"}},jHe=function(t,n,r){var a,i=FHe[t];return typeof i=="string"?a=i:n===1?a=i.one:n===2?a=i.two:n<=10?a=i.threeToTen.replace("{{count}}",String(n)):a=i.other.replace("{{count}}",String(n)),r!=null&&r.addSuffix?r.comparison&&r.comparison>0?"في خلال "+a:"منذ "+a:a},UHe={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},BHe={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},WHe={full:"{{date}} 'عند' {{time}}",long:"{{date}} 'عند' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},zHe={date:Ne({formats:UHe,defaultWidth:"full"}),time:Ne({formats:BHe,defaultWidth:"full"}),dateTime:Ne({formats:WHe,defaultWidth:"full"})},qHe={lastWeek:"'أخر' eeee 'عند' p",yesterday:"'أمس عند' p",today:"'اليوم عند' p",tomorrow:"'غداً عند' p",nextWeek:"eeee 'عند' p",other:"P"},HHe=function(t,n,r,a){return qHe[t]},VHe={narrow:["ق","ب"],abbreviated:["ق.م.","ب.م."],wide:["قبل الميلاد","بعد الميلاد"]},GHe={narrow:["1","2","3","4"],abbreviated:["ر1","ر2","ر3","ر4"],wide:["الربع الأول","الربع الثاني","الربع الثالث","الربع الرابع"]},YHe={narrow:["ي","ف","م","أ","م","ي","ي","أ","س","أ","ن","د"],abbreviated:["ينا","فبر","مارس","أبريل","مايو","يونـ","يولـ","أغسـ","سبتـ","أكتـ","نوفـ","ديسـ"],wide:["يناير","فبراير","مارس","أبريل","مايو","يونيو","يوليو","أغسطس","سبتمبر","أكتوبر","نوفمبر","ديسمبر"]},KHe={narrow:["ح","ن","ث","ر","خ","ج","س"],short:["أحد","اثنين","ثلاثاء","أربعاء","خميس","جمعة","سبت"],abbreviated:["أحد","اثنـ","ثلا","أربـ","خميـ","جمعة","سبت"],wide:["الأحد","الاثنين","الثلاثاء","الأربعاء","الخميس","الجمعة","السبت"]},XHe={narrow:{am:"ص",pm:"م",midnight:"ن",noon:"ظ",morning:"صباحاً",afternoon:"بعد الظهر",evening:"مساءاً",night:"ليلاً"},abbreviated:{am:"ص",pm:"م",midnight:"نصف الليل",noon:"ظهر",morning:"صباحاً",afternoon:"بعد الظهر",evening:"مساءاً",night:"ليلاً"},wide:{am:"ص",pm:"م",midnight:"نصف الليل",noon:"ظهر",morning:"صباحاً",afternoon:"بعد الظهر",evening:"مساءاً",night:"ليلاً"}},QHe={narrow:{am:"ص",pm:"م",midnight:"ن",noon:"ظ",morning:"في الصباح",afternoon:"بعد الظـهر",evening:"في المساء",night:"في الليل"},abbreviated:{am:"ص",pm:"م",midnight:"نصف الليل",noon:"ظهر",morning:"في الصباح",afternoon:"بعد الظهر",evening:"في المساء",night:"في الليل"},wide:{am:"ص",pm:"م",midnight:"نصف الليل",noon:"ظهر",morning:"صباحاً",afternoon:"بعد الظـهر",evening:"في المساء",night:"في الليل"}},JHe=function(t){return String(t)},ZHe={ordinalNumber:JHe,era:oe({values:VHe,defaultWidth:"wide"}),quarter:oe({values:GHe,defaultWidth:"wide",argumentCallback:function(t){return t-1}}),month:oe({values:YHe,defaultWidth:"wide"}),day:oe({values:KHe,defaultWidth:"wide"}),dayPeriod:oe({values:XHe,defaultWidth:"wide",formattingValues:QHe,defaultFormattingWidth:"wide"})},e7e=/^(\d+)(th|st|nd|rd)?/i,t7e=/\d+/i,n7e={narrow:/^(ق|ب)/i,abbreviated:/^(ق\.?\s?م\.?|ق\.?\s?م\.?\s?|a\.?\s?d\.?|c\.?\s?)/i,wide:/^(قبل الميلاد|قبل الميلاد|بعد الميلاد|بعد الميلاد)/i},r7e={any:[/^قبل/i,/^بعد/i]},a7e={narrow:/^[1234]/i,abbreviated:/^ر[1234]/i,wide:/^الربع [1234]/i},i7e={any:[/1/i,/2/i,/3/i,/4/i]},o7e={narrow:/^[يفمأمسند]/i,abbreviated:/^(ين|ف|مار|أب|ماي|يون|يول|أغ|س|أك|ن|د)/i,wide:/^(ين|ف|مار|أب|ماي|يون|يول|أغ|س|أك|ن|د)/i},s7e={narrow:[/^ي/i,/^ف/i,/^م/i,/^أ/i,/^م/i,/^ي/i,/^ي/i,/^أ/i,/^س/i,/^أ/i,/^ن/i,/^د/i],any:[/^ين/i,/^ف/i,/^مار/i,/^أب/i,/^ماي/i,/^يون/i,/^يول/i,/^أغ/i,/^س/i,/^أك/i,/^ن/i,/^د/i]},l7e={narrow:/^[حنثرخجس]/i,short:/^(أحد|اثنين|ثلاثاء|أربعاء|خميس|جمعة|سبت)/i,abbreviated:/^(أحد|اثن|ثلا|أرب|خمي|جمعة|سبت)/i,wide:/^(الأحد|الاثنين|الثلاثاء|الأربعاء|الخميس|الجمعة|السبت)/i},u7e={narrow:[/^ح/i,/^ن/i,/^ث/i,/^ر/i,/^خ/i,/^ج/i,/^س/i],wide:[/^الأحد/i,/^الاثنين/i,/^الثلاثاء/i,/^الأربعاء/i,/^الخميس/i,/^الجمعة/i,/^السبت/i],any:[/^أح/i,/^اث/i,/^ث/i,/^أر/i,/^خ/i,/^ج/i,/^س/i]},c7e={narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},d7e={any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},f7e={ordinalNumber:Xt({matchPattern:e7e,parsePattern:t7e,valueCallback:function(t){return parseInt(t,10)}}),era:se({matchPatterns:n7e,defaultMatchWidth:"wide",parsePatterns:r7e,defaultParseWidth:"any"}),quarter:se({matchPatterns:a7e,defaultMatchWidth:"wide",parsePatterns:i7e,defaultParseWidth:"any",valueCallback:function(t){return t+1}}),month:se({matchPatterns:o7e,defaultMatchWidth:"wide",parsePatterns:s7e,defaultParseWidth:"any"}),day:se({matchPatterns:l7e,defaultMatchWidth:"wide",parsePatterns:u7e,defaultParseWidth:"any"}),dayPeriod:se({matchPatterns:c7e,defaultMatchWidth:"any",parsePatterns:d7e,defaultParseWidth:"any"})},p7e={code:"ar-SA",formatDistance:jHe,formatLong:zHe,formatRelative:HHe,localize:ZHe,match:f7e,options:{weekStartsOn:0,firstWeekContainsDate:1}};const h7e=Object.freeze(Object.defineProperty({__proto__:null,default:p7e},Symbol.toStringTag,{value:"Module"})),m7e=jt(h7e);function X1(e,t){if(e.one!==void 0&&t===1)return e.one;var n=t%10,r=t%100;return n===1&&r!==11?e.singularNominative.replace("{{count}}",String(t)):n>=2&&n<=4&&(r<10||r>20)?e.singularGenitive.replace("{{count}}",String(t)):e.pluralGenitive.replace("{{count}}",String(t))}function Ro(e){return function(t,n){return n&&n.addSuffix?n.comparison&&n.comparison>0?e.future?X1(e.future,t):"праз "+X1(e.regular,t):e.past?X1(e.past,t):X1(e.regular,t)+" таму":X1(e.regular,t)}}var g7e=function(t,n){return n&&n.addSuffix?n.comparison&&n.comparison>0?"праз паўхвіліны":"паўхвіліны таму":"паўхвіліны"},v7e={lessThanXSeconds:Ro({regular:{one:"менш за секунду",singularNominative:"менш за {{count}} секунду",singularGenitive:"менш за {{count}} секунды",pluralGenitive:"менш за {{count}} секунд"},future:{one:"менш, чым праз секунду",singularNominative:"менш, чым праз {{count}} секунду",singularGenitive:"менш, чым праз {{count}} секунды",pluralGenitive:"менш, чым праз {{count}} секунд"}}),xSeconds:Ro({regular:{singularNominative:"{{count}} секунда",singularGenitive:"{{count}} секунды",pluralGenitive:"{{count}} секунд"},past:{singularNominative:"{{count}} секунду таму",singularGenitive:"{{count}} секунды таму",pluralGenitive:"{{count}} секунд таму"},future:{singularNominative:"праз {{count}} секунду",singularGenitive:"праз {{count}} секунды",pluralGenitive:"праз {{count}} секунд"}}),halfAMinute:g7e,lessThanXMinutes:Ro({regular:{one:"менш за хвіліну",singularNominative:"менш за {{count}} хвіліну",singularGenitive:"менш за {{count}} хвіліны",pluralGenitive:"менш за {{count}} хвілін"},future:{one:"менш, чым праз хвіліну",singularNominative:"менш, чым праз {{count}} хвіліну",singularGenitive:"менш, чым праз {{count}} хвіліны",pluralGenitive:"менш, чым праз {{count}} хвілін"}}),xMinutes:Ro({regular:{singularNominative:"{{count}} хвіліна",singularGenitive:"{{count}} хвіліны",pluralGenitive:"{{count}} хвілін"},past:{singularNominative:"{{count}} хвіліну таму",singularGenitive:"{{count}} хвіліны таму",pluralGenitive:"{{count}} хвілін таму"},future:{singularNominative:"праз {{count}} хвіліну",singularGenitive:"праз {{count}} хвіліны",pluralGenitive:"праз {{count}} хвілін"}}),aboutXHours:Ro({regular:{singularNominative:"каля {{count}} гадзіны",singularGenitive:"каля {{count}} гадзін",pluralGenitive:"каля {{count}} гадзін"},future:{singularNominative:"прыблізна праз {{count}} гадзіну",singularGenitive:"прыблізна праз {{count}} гадзіны",pluralGenitive:"прыблізна праз {{count}} гадзін"}}),xHours:Ro({regular:{singularNominative:"{{count}} гадзіна",singularGenitive:"{{count}} гадзіны",pluralGenitive:"{{count}} гадзін"},past:{singularNominative:"{{count}} гадзіну таму",singularGenitive:"{{count}} гадзіны таму",pluralGenitive:"{{count}} гадзін таму"},future:{singularNominative:"праз {{count}} гадзіну",singularGenitive:"праз {{count}} гадзіны",pluralGenitive:"праз {{count}} гадзін"}}),xDays:Ro({regular:{singularNominative:"{{count}} дзень",singularGenitive:"{{count}} дні",pluralGenitive:"{{count}} дзён"}}),aboutXWeeks:Ro({regular:{singularNominative:"каля {{count}} месяца",singularGenitive:"каля {{count}} месяцаў",pluralGenitive:"каля {{count}} месяцаў"},future:{singularNominative:"прыблізна праз {{count}} месяц",singularGenitive:"прыблізна праз {{count}} месяцы",pluralGenitive:"прыблізна праз {{count}} месяцаў"}}),xWeeks:Ro({regular:{singularNominative:"{{count}} месяц",singularGenitive:"{{count}} месяцы",pluralGenitive:"{{count}} месяцаў"}}),aboutXMonths:Ro({regular:{singularNominative:"каля {{count}} месяца",singularGenitive:"каля {{count}} месяцаў",pluralGenitive:"каля {{count}} месяцаў"},future:{singularNominative:"прыблізна праз {{count}} месяц",singularGenitive:"прыблізна праз {{count}} месяцы",pluralGenitive:"прыблізна праз {{count}} месяцаў"}}),xMonths:Ro({regular:{singularNominative:"{{count}} месяц",singularGenitive:"{{count}} месяцы",pluralGenitive:"{{count}} месяцаў"}}),aboutXYears:Ro({regular:{singularNominative:"каля {{count}} года",singularGenitive:"каля {{count}} гадоў",pluralGenitive:"каля {{count}} гадоў"},future:{singularNominative:"прыблізна праз {{count}} год",singularGenitive:"прыблізна праз {{count}} гады",pluralGenitive:"прыблізна праз {{count}} гадоў"}}),xYears:Ro({regular:{singularNominative:"{{count}} год",singularGenitive:"{{count}} гады",pluralGenitive:"{{count}} гадоў"}}),overXYears:Ro({regular:{singularNominative:"больш за {{count}} год",singularGenitive:"больш за {{count}} гады",pluralGenitive:"больш за {{count}} гадоў"},future:{singularNominative:"больш, чым праз {{count}} год",singularGenitive:"больш, чым праз {{count}} гады",pluralGenitive:"больш, чым праз {{count}} гадоў"}}),almostXYears:Ro({regular:{singularNominative:"амаль {{count}} год",singularGenitive:"амаль {{count}} гады",pluralGenitive:"амаль {{count}} гадоў"},future:{singularNominative:"амаль праз {{count}} год",singularGenitive:"амаль праз {{count}} гады",pluralGenitive:"амаль праз {{count}} гадоў"}})},y7e=function(t,n,r){return r=r||{},v7e[t](n,r)},b7e={full:"EEEE, d MMMM y 'г.'",long:"d MMMM y 'г.'",medium:"d MMM y 'г.'",short:"dd.MM.y"},w7e={full:"H:mm:ss zzzz",long:"H:mm:ss z",medium:"H:mm:ss",short:"H:mm"},S7e={any:"{{date}}, {{time}}"},E7e={date:Ne({formats:b7e,defaultWidth:"full"}),time:Ne({formats:w7e,defaultWidth:"full"}),dateTime:Ne({formats:S7e,defaultWidth:"any"})};function wi(e,t,n){he(2,arguments);var r=Qd(e,n),a=Qd(t,n);return r.getTime()===a.getTime()}var T4=["нядзелю","панядзелак","аўторак","сераду","чацвер","пятніцу","суботу"];function T7e(e){var t=T4[e];switch(e){case 0:case 3:case 5:case 6:return"'у мінулую "+t+" а' p";case 1:case 2:case 4:return"'у мінулы "+t+" а' p"}}function Nae(e){var t=T4[e];return"'у "+t+" а' p"}function C7e(e){var t=T4[e];switch(e){case 0:case 3:case 5:case 6:return"'у наступную "+t+" а' p";case 1:case 2:case 4:return"'у наступны "+t+" а' p"}}var k7e=function(t,n,r){var a=Re(t),i=a.getUTCDay();return wi(a,n,r)?Nae(i):T7e(i)},x7e=function(t,n,r){var a=Re(t),i=a.getUTCDay();return wi(a,n,r)?Nae(i):C7e(i)},_7e={lastWeek:k7e,yesterday:"'учора а' p",today:"'сёння а' p",tomorrow:"'заўтра а' p",nextWeek:x7e,other:"P"},O7e=function(t,n,r,a){var i=_7e[t];return typeof i=="function"?i(n,r,a):i},R7e={narrow:["да н.э.","н.э."],abbreviated:["да н. э.","н. э."],wide:["да нашай эры","нашай эры"]},P7e={narrow:["1","2","3","4"],abbreviated:["1-ы кв.","2-і кв.","3-і кв.","4-ы кв."],wide:["1-ы квартал","2-і квартал","3-і квартал","4-ы квартал"]},A7e={narrow:["С","Л","С","К","М","Ч","Л","Ж","В","К","Л","С"],abbreviated:["студз.","лют.","сак.","крас.","май","чэрв.","ліп.","жн.","вер.","кастр.","ліст.","снеж."],wide:["студзень","люты","сакавік","красавік","май","чэрвень","ліпень","жнівень","верасень","кастрычнік","лістапад","снежань"]},N7e={narrow:["С","Л","С","К","М","Ч","Л","Ж","В","К","Л","С"],abbreviated:["студз.","лют.","сак.","крас.","мая","чэрв.","ліп.","жн.","вер.","кастр.","ліст.","снеж."],wide:["студзеня","лютага","сакавіка","красавіка","мая","чэрвеня","ліпеня","жніўня","верасня","кастрычніка","лістапада","снежня"]},M7e={narrow:["Н","П","А","С","Ч","П","С"],short:["нд","пн","аў","ср","чц","пт","сб"],abbreviated:["нядз","пан","аўт","сер","чац","пят","суб"],wide:["нядзеля","панядзелак","аўторак","серада","чацвер","пятніца","субота"]},I7e={narrow:{am:"ДП",pm:"ПП",midnight:"поўн.",noon:"поўд.",morning:"ран.",afternoon:"дзень",evening:"веч.",night:"ноч"},abbreviated:{am:"ДП",pm:"ПП",midnight:"поўн.",noon:"поўд.",morning:"ран.",afternoon:"дзень",evening:"веч.",night:"ноч"},wide:{am:"ДП",pm:"ПП",midnight:"поўнач",noon:"поўдзень",morning:"раніца",afternoon:"дзень",evening:"вечар",night:"ноч"}},D7e={narrow:{am:"ДП",pm:"ПП",midnight:"поўн.",noon:"поўд.",morning:"ран.",afternoon:"дня",evening:"веч.",night:"ночы"},abbreviated:{am:"ДП",pm:"ПП",midnight:"поўн.",noon:"поўд.",morning:"ран.",afternoon:"дня",evening:"веч.",night:"ночы"},wide:{am:"ДП",pm:"ПП",midnight:"поўнач",noon:"поўдзень",morning:"раніцы",afternoon:"дня",evening:"вечара",night:"ночы"}},$7e=function(t,n){var r=String(n==null?void 0:n.unit),a=Number(t),i;return r==="date"?i="-га":r==="hour"||r==="minute"||r==="second"?i="-я":i=(a%10===2||a%10===3)&&a%100!==12&&a%100!==13?"-і":"-ы",a+i},L7e={ordinalNumber:$7e,era:oe({values:R7e,defaultWidth:"wide"}),quarter:oe({values:P7e,defaultWidth:"wide",argumentCallback:function(t){return t-1}}),month:oe({values:A7e,defaultWidth:"wide",formattingValues:N7e,defaultFormattingWidth:"wide"}),day:oe({values:M7e,defaultWidth:"wide"}),dayPeriod:oe({values:I7e,defaultWidth:"any",formattingValues:D7e,defaultFormattingWidth:"wide"})},F7e=/^(\d+)(-?(е|я|га|і|ы|ае|ая|яя|шы|гі|ці|ты|мы))?/i,j7e=/\d+/i,U7e={narrow:/^((да )?н\.?\s?э\.?)/i,abbreviated:/^((да )?н\.?\s?э\.?)/i,wide:/^(да нашай эры|нашай эры|наша эра)/i},B7e={any:[/^д/i,/^н/i]},W7e={narrow:/^[1234]/i,abbreviated:/^[1234](-?[ыі]?)? кв.?/i,wide:/^[1234](-?[ыі]?)? квартал/i},z7e={any:[/1/i,/2/i,/3/i,/4/i]},q7e={narrow:/^[слкмчжв]/i,abbreviated:/^(студз|лют|сак|крас|ма[йя]|чэрв|ліп|жн|вер|кастр|ліст|снеж)\.?/i,wide:/^(студзен[ья]|лют(ы|ага)|сакавіка?|красавіка?|ма[йя]|чэрвен[ья]|ліпен[ья]|жні(вень|ўня)|верас(ень|ня)|кастрычніка?|лістапада?|снеж(ань|ня))/i},H7e={narrow:[/^с/i,/^л/i,/^с/i,/^к/i,/^м/i,/^ч/i,/^л/i,/^ж/i,/^в/i,/^к/i,/^л/i,/^с/i],any:[/^ст/i,/^лю/i,/^са/i,/^кр/i,/^ма/i,/^ч/i,/^ліп/i,/^ж/i,/^в/i,/^ка/i,/^ліс/i,/^сн/i]},V7e={narrow:/^[нпасч]/i,short:/^(нд|ня|пн|па|аў|ат|ср|се|чц|ча|пт|пя|сб|су)\.?/i,abbreviated:/^(нядз?|ндз|пнд|пан|аўт|срд|сер|чцв|чац|птн|пят|суб).?/i,wide:/^(нядзел[яі]|панядзел(ак|ка)|аўтор(ак|ка)|серад[аы]|чацв(ер|ярга)|пятніц[аы]|субот[аы])/i},G7e={narrow:[/^н/i,/^п/i,/^а/i,/^с/i,/^ч/i,/^п/i,/^с/i],any:[/^н/i,/^п[ан]/i,/^а/i,/^с[ер]/i,/^ч/i,/^п[ят]/i,/^с[уб]/i]},Y7e={narrow:/^([дп]п|поўн\.?|поўд\.?|ран\.?|дзень|дня|веч\.?|ночы?)/i,abbreviated:/^([дп]п|поўн\.?|поўд\.?|ран\.?|дзень|дня|веч\.?|ночы?)/i,wide:/^([дп]п|поўнач|поўдзень|раніц[аы]|дзень|дня|вечара?|ночы?)/i},K7e={any:{am:/^дп/i,pm:/^пп/i,midnight:/^поўн/i,noon:/^поўд/i,morning:/^р/i,afternoon:/^д[зн]/i,evening:/^в/i,night:/^н/i}},X7e={ordinalNumber:Xt({matchPattern:F7e,parsePattern:j7e,valueCallback:function(t){return parseInt(t,10)}}),era:se({matchPatterns:U7e,defaultMatchWidth:"wide",parsePatterns:B7e,defaultParseWidth:"any"}),quarter:se({matchPatterns:W7e,defaultMatchWidth:"wide",parsePatterns:z7e,defaultParseWidth:"any",valueCallback:function(t){return t+1}}),month:se({matchPatterns:q7e,defaultMatchWidth:"wide",parsePatterns:H7e,defaultParseWidth:"any"}),day:se({matchPatterns:V7e,defaultMatchWidth:"wide",parsePatterns:G7e,defaultParseWidth:"any"}),dayPeriod:se({matchPatterns:Y7e,defaultMatchWidth:"wide",parsePatterns:K7e,defaultParseWidth:"any"})},Q7e={code:"be",formatDistance:y7e,formatLong:E7e,formatRelative:O7e,localize:L7e,match:X7e,options:{weekStartsOn:1,firstWeekContainsDate:1}};const J7e=Object.freeze(Object.defineProperty({__proto__:null,default:Q7e},Symbol.toStringTag,{value:"Module"})),Z7e=jt(J7e);var eVe={lessThanXSeconds:{one:"по-малко от секунда",other:"по-малко от {{count}} секунди"},xSeconds:{one:"1 секунда",other:"{{count}} секунди"},halfAMinute:"половин минута",lessThanXMinutes:{one:"по-малко от минута",other:"по-малко от {{count}} минути"},xMinutes:{one:"1 минута",other:"{{count}} минути"},aboutXHours:{one:"около час",other:"около {{count}} часа"},xHours:{one:"1 час",other:"{{count}} часа"},xDays:{one:"1 ден",other:"{{count}} дни"},aboutXWeeks:{one:"около седмица",other:"около {{count}} седмици"},xWeeks:{one:"1 седмица",other:"{{count}} седмици"},aboutXMonths:{one:"около месец",other:"около {{count}} месеца"},xMonths:{one:"1 месец",other:"{{count}} месеца"},aboutXYears:{one:"около година",other:"около {{count}} години"},xYears:{one:"1 година",other:"{{count}} години"},overXYears:{one:"над година",other:"над {{count}} години"},almostXYears:{one:"почти година",other:"почти {{count}} години"}},tVe=function(t,n,r){var a,i=eVe[t];return typeof i=="string"?a=i:n===1?a=i.one:a=i.other.replace("{{count}}",String(n)),r!=null&&r.addSuffix?r.comparison&&r.comparison>0?"след "+a:"преди "+a:a},nVe={full:"EEEE, dd MMMM yyyy",long:"dd MMMM yyyy",medium:"dd MMM yyyy",short:"dd/MM/yyyy"},rVe={full:"HH:mm:ss zzzz",long:"HH:mm:ss z",medium:"HH:mm:ss",short:"H:mm"},aVe={any:"{{date}} {{time}}"},iVe={date:Ne({formats:nVe,defaultWidth:"full"}),time:Ne({formats:rVe,defaultWidth:"full"}),dateTime:Ne({formats:aVe,defaultWidth:"any"})},C4=["неделя","понеделник","вторник","сряда","четвъртък","петък","събота"];function oVe(e){var t=C4[e];switch(e){case 0:case 3:case 6:return"'миналата "+t+" в' p";case 1:case 2:case 4:case 5:return"'миналия "+t+" в' p"}}function Mae(e){var t=C4[e];return e===2?"'във "+t+" в' p":"'в "+t+" в' p"}function sVe(e){var t=C4[e];switch(e){case 0:case 3:case 6:return"'следващата "+t+" в' p";case 1:case 2:case 4:case 5:return"'следващия "+t+" в' p"}}var lVe=function(t,n,r){var a=Re(t),i=a.getUTCDay();return wi(a,n,r)?Mae(i):oVe(i)},uVe=function(t,n,r){var a=Re(t),i=a.getUTCDay();return wi(a,n,r)?Mae(i):sVe(i)},cVe={lastWeek:lVe,yesterday:"'вчера в' p",today:"'днес в' p",tomorrow:"'утре в' p",nextWeek:uVe,other:"P"},dVe=function(t,n,r,a){var i=cVe[t];return typeof i=="function"?i(n,r,a):i},fVe={narrow:["пр.н.е.","н.е."],abbreviated:["преди н. е.","н. е."],wide:["преди новата ера","новата ера"]},pVe={narrow:["1","2","3","4"],abbreviated:["1-во тримес.","2-ро тримес.","3-то тримес.","4-то тримес."],wide:["1-во тримесечие","2-ро тримесечие","3-то тримесечие","4-то тримесечие"]},hVe={abbreviated:["яну","фев","мар","апр","май","юни","юли","авг","сеп","окт","ное","дек"],wide:["януари","февруари","март","април","май","юни","юли","август","септември","октомври","ноември","декември"]},mVe={narrow:["Н","П","В","С","Ч","П","С"],short:["нд","пн","вт","ср","чт","пт","сб"],abbreviated:["нед","пон","вто","сря","чет","пет","съб"],wide:["неделя","понеделник","вторник","сряда","четвъртък","петък","събота"]},gVe={wide:{am:"преди обяд",pm:"след обяд",midnight:"в полунощ",noon:"на обяд",morning:"сутринта",afternoon:"следобед",evening:"вечерта",night:"през нощта"}};function vVe(e){return e==="year"||e==="week"||e==="minute"||e==="second"}function yVe(e){return e==="quarter"}function ev(e,t,n,r,a){var i=yVe(t)?a:vVe(t)?r:n;return e+"-"+i}var bVe=function(t,n){var r=Number(t),a=n==null?void 0:n.unit;if(r===0)return ev(0,a,"ев","ева","ево");if(r%1e3===0)return ev(r,a,"ен","на","но");if(r%100===0)return ev(r,a,"тен","тна","тно");var i=r%100;if(i>20||i<10)switch(i%10){case 1:return ev(r,a,"ви","ва","во");case 2:return ev(r,a,"ри","ра","ро");case 7:case 8:return ev(r,a,"ми","ма","мо")}return ev(r,a,"ти","та","то")},wVe={ordinalNumber:bVe,era:oe({values:fVe,defaultWidth:"wide"}),quarter:oe({values:pVe,defaultWidth:"wide",argumentCallback:function(t){return t-1}}),month:oe({values:hVe,defaultWidth:"wide"}),day:oe({values:mVe,defaultWidth:"wide"}),dayPeriod:oe({values:gVe,defaultWidth:"wide"})},SVe=/^(\d+)(-?[врмт][аи]|-?т?(ен|на)|-?(ев|ева))?/i,EVe=/\d+/i,TVe={narrow:/^((пр)?н\.?\s?е\.?)/i,abbreviated:/^((пр)?н\.?\s?е\.?)/i,wide:/^(преди новата ера|новата ера|нова ера)/i},CVe={any:[/^п/i,/^н/i]},kVe={narrow:/^[1234]/i,abbreviated:/^[1234](-?[врт]?o?)? тримес.?/i,wide:/^[1234](-?[врт]?о?)? тримесечие/i},xVe={any:[/1/i,/2/i,/3/i,/4/i]},_Ve={narrow:/^[нпвсч]/i,short:/^(нд|пн|вт|ср|чт|пт|сб)/i,abbreviated:/^(нед|пон|вто|сря|чет|пет|съб)/i,wide:/^(неделя|понеделник|вторник|сряда|четвъртък|петък|събота)/i},OVe={narrow:[/^н/i,/^п/i,/^в/i,/^с/i,/^ч/i,/^п/i,/^с/i],any:[/^н[ед]/i,/^п[он]/i,/^вт/i,/^ср/i,/^ч[ет]/i,/^п[ет]/i,/^с[ъб]/i]},RVe={abbreviated:/^(яну|фев|мар|апр|май|юни|юли|авг|сеп|окт|ное|дек)/i,wide:/^(януари|февруари|март|април|май|юни|юли|август|септември|октомври|ноември|декември)/i},PVe={any:[/^я/i,/^ф/i,/^мар/i,/^ап/i,/^май/i,/^юн/i,/^юл/i,/^ав/i,/^се/i,/^окт/i,/^но/i,/^де/i]},AVe={any:/^(преди о|след о|в по|на о|през|веч|сут|следо)/i},NVe={any:{am:/^преди о/i,pm:/^след о/i,midnight:/^в пол/i,noon:/^на об/i,morning:/^сут/i,afternoon:/^следо/i,evening:/^веч/i,night:/^през н/i}},MVe={ordinalNumber:Xt({matchPattern:SVe,parsePattern:EVe,valueCallback:function(t){return parseInt(t,10)}}),era:se({matchPatterns:TVe,defaultMatchWidth:"wide",parsePatterns:CVe,defaultParseWidth:"any"}),quarter:se({matchPatterns:kVe,defaultMatchWidth:"wide",parsePatterns:xVe,defaultParseWidth:"any",valueCallback:function(t){return t+1}}),month:se({matchPatterns:RVe,defaultMatchWidth:"wide",parsePatterns:PVe,defaultParseWidth:"any"}),day:se({matchPatterns:_Ve,defaultMatchWidth:"wide",parsePatterns:OVe,defaultParseWidth:"any"}),dayPeriod:se({matchPatterns:AVe,defaultMatchWidth:"any",parsePatterns:NVe,defaultParseWidth:"any"})},IVe={code:"bg",formatDistance:tVe,formatLong:iVe,formatRelative:dVe,localize:wVe,match:MVe,options:{weekStartsOn:1,firstWeekContainsDate:1}};const DVe=Object.freeze(Object.defineProperty({__proto__:null,default:IVe},Symbol.toStringTag,{value:"Module"})),$Ve=jt(DVe);var LVe={locale:{1:"১",2:"২",3:"৩",4:"৪",5:"৫",6:"৬",7:"৭",8:"৮",9:"৯",0:"০"}},FVe={narrow:["খ্রিঃপূঃ","খ্রিঃ"],abbreviated:["খ্রিঃপূর্ব","খ্রিঃ"],wide:["খ্রিস্টপূর্ব","খ্রিস্টাব্দ"]},jVe={narrow:["১","২","৩","৪"],abbreviated:["১ত্রৈ","২ত্রৈ","৩ত্রৈ","৪ত্রৈ"],wide:["১ম ত্রৈমাসিক","২য় ত্রৈমাসিক","৩য় ত্রৈমাসিক","৪র্থ ত্রৈমাসিক"]},UVe={narrow:["জানু","ফেব্রু","মার্চ","এপ্রিল","মে","জুন","জুলাই","আগস্ট","সেপ্ট","অক্টো","নভে","ডিসে"],abbreviated:["জানু","ফেব্রু","মার্চ","এপ্রিল","মে","জুন","জুলাই","আগস্ট","সেপ্ট","অক্টো","নভে","ডিসে"],wide:["জানুয়ারি","ফেব্রুয়ারি","মার্চ","এপ্রিল","মে","জুন","জুলাই","আগস্ট","সেপ্টেম্বর","অক্টোবর","নভেম্বর","ডিসেম্বর"]},BVe={narrow:["র","সো","ম","বু","বৃ","শু","শ"],short:["রবি","সোম","মঙ্গল","বুধ","বৃহ","শুক্র","শনি"],abbreviated:["রবি","সোম","মঙ্গল","বুধ","বৃহ","শুক্র","শনি"],wide:["রবিবার","সোমবার","মঙ্গলবার","বুধবার","বৃহস্পতিবার ","শুক্রবার","শনিবার"]},WVe={narrow:{am:"পূ",pm:"অপ",midnight:"মধ্যরাত",noon:"মধ্যাহ্ন",morning:"সকাল",afternoon:"বিকাল",evening:"সন্ধ্যা",night:"রাত"},abbreviated:{am:"পূর্বাহ্ন",pm:"অপরাহ্ন",midnight:"মধ্যরাত",noon:"মধ্যাহ্ন",morning:"সকাল",afternoon:"বিকাল",evening:"সন্ধ্যা",night:"রাত"},wide:{am:"পূর্বাহ্ন",pm:"অপরাহ্ন",midnight:"মধ্যরাত",noon:"মধ্যাহ্ন",morning:"সকাল",afternoon:"বিকাল",evening:"সন্ধ্যা",night:"রাত"}},zVe={narrow:{am:"পূ",pm:"অপ",midnight:"মধ্যরাত",noon:"মধ্যাহ্ন",morning:"সকাল",afternoon:"বিকাল",evening:"সন্ধ্যা",night:"রাত"},abbreviated:{am:"পূর্বাহ্ন",pm:"অপরাহ্ন",midnight:"মধ্যরাত",noon:"মধ্যাহ্ন",morning:"সকাল",afternoon:"বিকাল",evening:"সন্ধ্যা",night:"রাত"},wide:{am:"পূর্বাহ্ন",pm:"অপরাহ্ন",midnight:"মধ্যরাত",noon:"মধ্যাহ্ন",morning:"সকাল",afternoon:"বিকাল",evening:"সন্ধ্যা",night:"রাত"}};function qVe(e,t){if(e>18&&e<=31)return t+"শে";switch(e){case 1:return t+"লা";case 2:case 3:return t+"রা";case 4:return t+"ঠা";default:return t+"ই"}}var HVe=function(t,n){var r=Number(t),a=Iae(r),i=n==null?void 0:n.unit;if(i==="date")return qVe(r,a);if(r>10||r===0)return a+"তম";var o=r%10;switch(o){case 2:case 3:return a+"য়";case 4:return a+"র্থ";case 6:return a+"ষ্ঠ";default:return a+"ম"}};function Iae(e){return e.toString().replace(/\d/g,function(t){return LVe.locale[t]})}var VVe={ordinalNumber:HVe,era:oe({values:FVe,defaultWidth:"wide"}),quarter:oe({values:jVe,defaultWidth:"wide",argumentCallback:function(t){return t-1}}),month:oe({values:UVe,defaultWidth:"wide"}),day:oe({values:BVe,defaultWidth:"wide"}),dayPeriod:oe({values:WVe,defaultWidth:"wide",formattingValues:zVe,defaultFormattingWidth:"wide"})},GVe={lessThanXSeconds:{one:"প্রায় ১ সেকেন্ড",other:"প্রায় {{count}} সেকেন্ড"},xSeconds:{one:"১ সেকেন্ড",other:"{{count}} সেকেন্ড"},halfAMinute:"আধ মিনিট",lessThanXMinutes:{one:"প্রায় ১ মিনিট",other:"প্রায় {{count}} মিনিট"},xMinutes:{one:"১ মিনিট",other:"{{count}} মিনিট"},aboutXHours:{one:"প্রায় ১ ঘন্টা",other:"প্রায় {{count}} ঘন্টা"},xHours:{one:"১ ঘন্টা",other:"{{count}} ঘন্টা"},xDays:{one:"১ দিন",other:"{{count}} দিন"},aboutXWeeks:{one:"প্রায় ১ সপ্তাহ",other:"প্রায় {{count}} সপ্তাহ"},xWeeks:{one:"১ সপ্তাহ",other:"{{count}} সপ্তাহ"},aboutXMonths:{one:"প্রায় ১ মাস",other:"প্রায় {{count}} মাস"},xMonths:{one:"১ মাস",other:"{{count}} মাস"},aboutXYears:{one:"প্রায় ১ বছর",other:"প্রায় {{count}} বছর"},xYears:{one:"১ বছর",other:"{{count}} বছর"},overXYears:{one:"১ বছরের বেশি",other:"{{count}} বছরের বেশি"},almostXYears:{one:"প্রায় ১ বছর",other:"প্রায় {{count}} বছর"}},YVe=function(t,n,r){var a,i=GVe[t];return typeof i=="string"?a=i:n===1?a=i.one:a=i.other.replace("{{count}}",Iae(n)),r!=null&&r.addSuffix?r.comparison&&r.comparison>0?a+" এর মধ্যে":a+" আগে":a},KVe={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},XVe={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},QVe={full:"{{date}} {{time}} 'সময়'",long:"{{date}} {{time}} 'সময়'",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},JVe={date:Ne({formats:KVe,defaultWidth:"full"}),time:Ne({formats:XVe,defaultWidth:"full"}),dateTime:Ne({formats:QVe,defaultWidth:"full"})},ZVe={lastWeek:"'গত' eeee 'সময়' p",yesterday:"'গতকাল' 'সময়' p",today:"'আজ' 'সময়' p",tomorrow:"'আগামীকাল' 'সময়' p",nextWeek:"eeee 'সময়' p",other:"P"},eGe=function(t,n,r,a){return ZVe[t]},tGe=/^(\d+)(ম|য়|র্থ|ষ্ঠ|শে|ই|তম)?/i,nGe=/\d+/i,rGe={narrow:/^(খ্রিঃপূঃ|খ্রিঃ)/i,abbreviated:/^(খ্রিঃপূর্ব|খ্রিঃ)/i,wide:/^(খ্রিস্টপূর্ব|খ্রিস্টাব্দ)/i},aGe={narrow:[/^খ্রিঃপূঃ/i,/^খ্রিঃ/i],abbreviated:[/^খ্রিঃপূর্ব/i,/^খ্রিঃ/i],wide:[/^খ্রিস্টপূর্ব/i,/^খ্রিস্টাব্দ/i]},iGe={narrow:/^[১২৩৪]/i,abbreviated:/^[১২৩৪]ত্রৈ/i,wide:/^[১২৩৪](ম|য়|র্থ)? ত্রৈমাসিক/i},oGe={any:[/১/i,/২/i,/৩/i,/৪/i]},sGe={narrow:/^(জানু|ফেব্রু|মার্চ|এপ্রিল|মে|জুন|জুলাই|আগস্ট|সেপ্ট|অক্টো|নভে|ডিসে)/i,abbreviated:/^(জানু|ফেব্রু|মার্চ|এপ্রিল|মে|জুন|জুলাই|আগস্ট|সেপ্ট|অক্টো|নভে|ডিসে)/i,wide:/^(জানুয়ারি|ফেব্রুয়ারি|মার্চ|এপ্রিল|মে|জুন|জুলাই|আগস্ট|সেপ্টেম্বর|অক্টোবর|নভেম্বর|ডিসেম্বর)/i},lGe={any:[/^জানু/i,/^ফেব্রু/i,/^মার্চ/i,/^এপ্রিল/i,/^মে/i,/^জুন/i,/^জুলাই/i,/^আগস্ট/i,/^সেপ্ট/i,/^অক্টো/i,/^নভে/i,/^ডিসে/i]},uGe={narrow:/^(র|সো|ম|বু|বৃ|শু|শ)+/i,short:/^(রবি|সোম|মঙ্গল|বুধ|বৃহ|শুক্র|শনি)+/i,abbreviated:/^(রবি|সোম|মঙ্গল|বুধ|বৃহ|শুক্র|শনি)+/i,wide:/^(রবিবার|সোমবার|মঙ্গলবার|বুধবার|বৃহস্পতিবার |শুক্রবার|শনিবার)+/i},cGe={narrow:[/^র/i,/^সো/i,/^ম/i,/^বু/i,/^বৃ/i,/^শু/i,/^শ/i],short:[/^রবি/i,/^সোম/i,/^মঙ্গল/i,/^বুধ/i,/^বৃহ/i,/^শুক্র/i,/^শনি/i],abbreviated:[/^রবি/i,/^সোম/i,/^মঙ্গল/i,/^বুধ/i,/^বৃহ/i,/^শুক্র/i,/^শনি/i],wide:[/^রবিবার/i,/^সোমবার/i,/^মঙ্গলবার/i,/^বুধবার/i,/^বৃহস্পতিবার /i,/^শুক্রবার/i,/^শনিবার/i]},dGe={narrow:/^(পূ|অপ|মধ্যরাত|মধ্যাহ্ন|সকাল|বিকাল|সন্ধ্যা|রাত)/i,abbreviated:/^(পূর্বাহ্ন|অপরাহ্ন|মধ্যরাত|মধ্যাহ্ন|সকাল|বিকাল|সন্ধ্যা|রাত)/i,wide:/^(পূর্বাহ্ন|অপরাহ্ন|মধ্যরাত|মধ্যাহ্ন|সকাল|বিকাল|সন্ধ্যা|রাত)/i},fGe={any:{am:/^পূ/i,pm:/^অপ/i,midnight:/^মধ্যরাত/i,noon:/^মধ্যাহ্ন/i,morning:/সকাল/i,afternoon:/বিকাল/i,evening:/সন্ধ্যা/i,night:/রাত/i}},pGe={ordinalNumber:Xt({matchPattern:tGe,parsePattern:nGe,valueCallback:function(t){return parseInt(t,10)}}),era:se({matchPatterns:rGe,defaultMatchWidth:"wide",parsePatterns:aGe,defaultParseWidth:"wide"}),quarter:se({matchPatterns:iGe,defaultMatchWidth:"wide",parsePatterns:oGe,defaultParseWidth:"any",valueCallback:function(t){return t+1}}),month:se({matchPatterns:sGe,defaultMatchWidth:"wide",parsePatterns:lGe,defaultParseWidth:"any"}),day:se({matchPatterns:uGe,defaultMatchWidth:"wide",parsePatterns:cGe,defaultParseWidth:"wide"}),dayPeriod:se({matchPatterns:dGe,defaultMatchWidth:"wide",parsePatterns:fGe,defaultParseWidth:"any"})},hGe={code:"bn",formatDistance:YVe,formatLong:JVe,formatRelative:eGe,localize:VVe,match:pGe,options:{weekStartsOn:0,firstWeekContainsDate:1}};const mGe=Object.freeze(Object.defineProperty({__proto__:null,default:hGe},Symbol.toStringTag,{value:"Module"})),gGe=jt(mGe);var vGe={lessThanXSeconds:{one:"menys d'un segon",eleven:"menys d'onze segons",other:"menys de {{count}} segons"},xSeconds:{one:"1 segon",other:"{{count}} segons"},halfAMinute:"mig minut",lessThanXMinutes:{one:"menys d'un minut",eleven:"menys d'onze minuts",other:"menys de {{count}} minuts"},xMinutes:{one:"1 minut",other:"{{count}} minuts"},aboutXHours:{one:"aproximadament una hora",other:"aproximadament {{count}} hores"},xHours:{one:"1 hora",other:"{{count}} hores"},xDays:{one:"1 dia",other:"{{count}} dies"},aboutXWeeks:{one:"aproximadament una setmana",other:"aproximadament {{count}} setmanes"},xWeeks:{one:"1 setmana",other:"{{count}} setmanes"},aboutXMonths:{one:"aproximadament un mes",other:"aproximadament {{count}} mesos"},xMonths:{one:"1 mes",other:"{{count}} mesos"},aboutXYears:{one:"aproximadament un any",other:"aproximadament {{count}} anys"},xYears:{one:"1 any",other:"{{count}} anys"},overXYears:{one:"més d'un any",eleven:"més d'onze anys",other:"més de {{count}} anys"},almostXYears:{one:"gairebé un any",other:"gairebé {{count}} anys"}},yGe=function(t,n,r){var a,i=vGe[t];return typeof i=="string"?a=i:n===1?a=i.one:n===11&&i.eleven?a=i.eleven:a=i.other.replace("{{count}}",String(n)),r!=null&&r.addSuffix?r.comparison&&r.comparison>0?"en "+a:"fa "+a:a},bGe={full:"EEEE, d 'de' MMMM y",long:"d 'de' MMMM y",medium:"d MMM y",short:"dd/MM/y"},wGe={full:"HH:mm:ss zzzz",long:"HH:mm:ss z",medium:"HH:mm:ss",short:"HH:mm"},SGe={full:"{{date}} 'a les' {{time}}",long:"{{date}} 'a les' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},EGe={date:Ne({formats:bGe,defaultWidth:"full"}),time:Ne({formats:wGe,defaultWidth:"full"}),dateTime:Ne({formats:SGe,defaultWidth:"full"})},TGe={lastWeek:"'el' eeee 'passat a la' LT",yesterday:"'ahir a la' p",today:"'avui a la' p",tomorrow:"'demà a la' p",nextWeek:"eeee 'a la' p",other:"P"},CGe={lastWeek:"'el' eeee 'passat a les' p",yesterday:"'ahir a les' p",today:"'avui a les' p",tomorrow:"'demà a les' p",nextWeek:"eeee 'a les' p",other:"P"},kGe=function(t,n,r,a){return n.getUTCHours()!==1?CGe[t]:TGe[t]},xGe={narrow:["aC","dC"],abbreviated:["a. de C.","d. de C."],wide:["abans de Crist","després de Crist"]},_Ge={narrow:["1","2","3","4"],abbreviated:["T1","T2","T3","T4"],wide:["1r trimestre","2n trimestre","3r trimestre","4t trimestre"]},OGe={narrow:["GN","FB","MÇ","AB","MG","JN","JL","AG","ST","OC","NV","DS"],abbreviated:["gen.","febr.","març","abr.","maig","juny","jul.","ag.","set.","oct.","nov.","des."],wide:["gener","febrer","març","abril","maig","juny","juliol","agost","setembre","octubre","novembre","desembre"]},RGe={narrow:["dg.","dl.","dt.","dm.","dj.","dv.","ds."],short:["dg.","dl.","dt.","dm.","dj.","dv.","ds."],abbreviated:["dg.","dl.","dt.","dm.","dj.","dv.","ds."],wide:["diumenge","dilluns","dimarts","dimecres","dijous","divendres","dissabte"]},PGe={narrow:{am:"am",pm:"pm",midnight:"mitjanit",noon:"migdia",morning:"matí",afternoon:"tarda",evening:"vespre",night:"nit"},abbreviated:{am:"a.m.",pm:"p.m.",midnight:"mitjanit",noon:"migdia",morning:"matí",afternoon:"tarda",evening:"vespre",night:"nit"},wide:{am:"ante meridiem",pm:"post meridiem",midnight:"mitjanit",noon:"migdia",morning:"matí",afternoon:"tarda",evening:"vespre",night:"nit"}},AGe={narrow:{am:"am",pm:"pm",midnight:"de la mitjanit",noon:"del migdia",morning:"del matí",afternoon:"de la tarda",evening:"del vespre",night:"de la nit"},abbreviated:{am:"AM",pm:"PM",midnight:"de la mitjanit",noon:"del migdia",morning:"del matí",afternoon:"de la tarda",evening:"del vespre",night:"de la nit"},wide:{am:"ante meridiem",pm:"post meridiem",midnight:"de la mitjanit",noon:"del migdia",morning:"del matí",afternoon:"de la tarda",evening:"del vespre",night:"de la nit"}},NGe=function(t,n){var r=Number(t),a=r%100;if(a>20||a<10)switch(a%10){case 1:return r+"r";case 2:return r+"n";case 3:return r+"r";case 4:return r+"t"}return r+"è"},MGe={ordinalNumber:NGe,era:oe({values:xGe,defaultWidth:"wide"}),quarter:oe({values:_Ge,defaultWidth:"wide",argumentCallback:function(t){return t-1}}),month:oe({values:OGe,defaultWidth:"wide"}),day:oe({values:RGe,defaultWidth:"wide"}),dayPeriod:oe({values:PGe,defaultWidth:"wide",formattingValues:AGe,defaultFormattingWidth:"wide"})},IGe=/^(\d+)(è|r|n|r|t)?/i,DGe=/\d+/i,$Ge={narrow:/^(aC|dC)/i,abbreviated:/^(a. de C.|d. de C.)/i,wide:/^(abans de Crist|despr[eé]s de Crist)/i},LGe={narrow:[/^aC/i,/^dC/i],abbreviated:[/^(a. de C.)/i,/^(d. de C.)/i],wide:[/^(abans de Crist)/i,/^(despr[eé]s de Crist)/i]},FGe={narrow:/^[1234]/i,abbreviated:/^T[1234]/i,wide:/^[1234](è|r|n|r|t)? trimestre/i},jGe={any:[/1/i,/2/i,/3/i,/4/i]},UGe={narrow:/^(GN|FB|MÇ|AB|MG|JN|JL|AG|ST|OC|NV|DS)/i,abbreviated:/^(gen.|febr.|març|abr.|maig|juny|jul.|ag.|set.|oct.|nov.|des.)/i,wide:/^(gener|febrer|març|abril|maig|juny|juliol|agost|setembre|octubre|novembre|desembre)/i},BGe={narrow:[/^GN/i,/^FB/i,/^MÇ/i,/^AB/i,/^MG/i,/^JN/i,/^JL/i,/^AG/i,/^ST/i,/^OC/i,/^NV/i,/^DS/i],abbreviated:[/^gen./i,/^febr./i,/^març/i,/^abr./i,/^maig/i,/^juny/i,/^jul./i,/^ag./i,/^set./i,/^oct./i,/^nov./i,/^des./i],wide:[/^gener/i,/^febrer/i,/^març/i,/^abril/i,/^maig/i,/^juny/i,/^juliol/i,/^agost/i,/^setembre/i,/^octubre/i,/^novembre/i,/^desembre/i]},WGe={narrow:/^(dg\.|dl\.|dt\.|dm\.|dj\.|dv\.|ds\.)/i,short:/^(dg\.|dl\.|dt\.|dm\.|dj\.|dv\.|ds\.)/i,abbreviated:/^(dg\.|dl\.|dt\.|dm\.|dj\.|dv\.|ds\.)/i,wide:/^(diumenge|dilluns|dimarts|dimecres|dijous|divendres|dissabte)/i},zGe={narrow:[/^dg./i,/^dl./i,/^dt./i,/^dm./i,/^dj./i,/^dv./i,/^ds./i],abbreviated:[/^dg./i,/^dl./i,/^dt./i,/^dm./i,/^dj./i,/^dv./i,/^ds./i],wide:[/^diumenge/i,/^dilluns/i,/^dimarts/i,/^dimecres/i,/^dijous/i,/^divendres/i,/^disssabte/i]},qGe={narrow:/^(a|p|mn|md|(del|de la) (matí|tarda|vespre|nit))/i,abbreviated:/^([ap]\.?\s?m\.?|mitjanit|migdia|(del|de la) (matí|tarda|vespre|nit))/i,wide:/^(ante meridiem|post meridiem|mitjanit|migdia|(del|de la) (matí|tarda|vespre|nit))/i},HGe={any:{am:/^a/i,pm:/^p/i,midnight:/^mitjanit/i,noon:/^migdia/i,morning:/matí/i,afternoon:/tarda/i,evening:/vespre/i,night:/nit/i}},VGe={ordinalNumber:Xt({matchPattern:IGe,parsePattern:DGe,valueCallback:function(t){return parseInt(t,10)}}),era:se({matchPatterns:$Ge,defaultMatchWidth:"wide",parsePatterns:LGe,defaultParseWidth:"wide"}),quarter:se({matchPatterns:FGe,defaultMatchWidth:"wide",parsePatterns:jGe,defaultParseWidth:"any",valueCallback:function(t){return t+1}}),month:se({matchPatterns:UGe,defaultMatchWidth:"wide",parsePatterns:BGe,defaultParseWidth:"wide"}),day:se({matchPatterns:WGe,defaultMatchWidth:"wide",parsePatterns:zGe,defaultParseWidth:"wide"}),dayPeriod:se({matchPatterns:qGe,defaultMatchWidth:"wide",parsePatterns:HGe,defaultParseWidth:"any"})},GGe={code:"ca",formatDistance:yGe,formatLong:EGe,formatRelative:kGe,localize:MGe,match:VGe,options:{weekStartsOn:1,firstWeekContainsDate:4}};const YGe=Object.freeze(Object.defineProperty({__proto__:null,default:GGe},Symbol.toStringTag,{value:"Module"})),KGe=jt(YGe);var XGe={lessThanXSeconds:{one:{regular:"méně než sekunda",past:"před méně než sekundou",future:"za méně než sekundu"},few:{regular:"méně než {{count}} sekundy",past:"před méně než {{count}} sekundami",future:"za méně než {{count}} sekundy"},many:{regular:"méně než {{count}} sekund",past:"před méně než {{count}} sekundami",future:"za méně než {{count}} sekund"}},xSeconds:{one:{regular:"sekunda",past:"před sekundou",future:"za sekundu"},few:{regular:"{{count}} sekundy",past:"před {{count}} sekundami",future:"za {{count}} sekundy"},many:{regular:"{{count}} sekund",past:"před {{count}} sekundami",future:"za {{count}} sekund"}},halfAMinute:{type:"other",other:{regular:"půl minuty",past:"před půl minutou",future:"za půl minuty"}},lessThanXMinutes:{one:{regular:"méně než minuta",past:"před méně než minutou",future:"za méně než minutu"},few:{regular:"méně než {{count}} minuty",past:"před méně než {{count}} minutami",future:"za méně než {{count}} minuty"},many:{regular:"méně než {{count}} minut",past:"před méně než {{count}} minutami",future:"za méně než {{count}} minut"}},xMinutes:{one:{regular:"minuta",past:"před minutou",future:"za minutu"},few:{regular:"{{count}} minuty",past:"před {{count}} minutami",future:"za {{count}} minuty"},many:{regular:"{{count}} minut",past:"před {{count}} minutami",future:"za {{count}} minut"}},aboutXHours:{one:{regular:"přibližně hodina",past:"přibližně před hodinou",future:"přibližně za hodinu"},few:{regular:"přibližně {{count}} hodiny",past:"přibližně před {{count}} hodinami",future:"přibližně za {{count}} hodiny"},many:{regular:"přibližně {{count}} hodin",past:"přibližně před {{count}} hodinami",future:"přibližně za {{count}} hodin"}},xHours:{one:{regular:"hodina",past:"před hodinou",future:"za hodinu"},few:{regular:"{{count}} hodiny",past:"před {{count}} hodinami",future:"za {{count}} hodiny"},many:{regular:"{{count}} hodin",past:"před {{count}} hodinami",future:"za {{count}} hodin"}},xDays:{one:{regular:"den",past:"před dnem",future:"za den"},few:{regular:"{{count}} dny",past:"před {{count}} dny",future:"za {{count}} dny"},many:{regular:"{{count}} dní",past:"před {{count}} dny",future:"za {{count}} dní"}},aboutXWeeks:{one:{regular:"přibližně týden",past:"přibližně před týdnem",future:"přibližně za týden"},few:{regular:"přibližně {{count}} týdny",past:"přibližně před {{count}} týdny",future:"přibližně za {{count}} týdny"},many:{regular:"přibližně {{count}} týdnů",past:"přibližně před {{count}} týdny",future:"přibližně za {{count}} týdnů"}},xWeeks:{one:{regular:"týden",past:"před týdnem",future:"za týden"},few:{regular:"{{count}} týdny",past:"před {{count}} týdny",future:"za {{count}} týdny"},many:{regular:"{{count}} týdnů",past:"před {{count}} týdny",future:"za {{count}} týdnů"}},aboutXMonths:{one:{regular:"přibližně měsíc",past:"přibližně před měsícem",future:"přibližně za měsíc"},few:{regular:"přibližně {{count}} měsíce",past:"přibližně před {{count}} měsíci",future:"přibližně za {{count}} měsíce"},many:{regular:"přibližně {{count}} měsíců",past:"přibližně před {{count}} měsíci",future:"přibližně za {{count}} měsíců"}},xMonths:{one:{regular:"měsíc",past:"před měsícem",future:"za měsíc"},few:{regular:"{{count}} měsíce",past:"před {{count}} měsíci",future:"za {{count}} měsíce"},many:{regular:"{{count}} měsíců",past:"před {{count}} měsíci",future:"za {{count}} měsíců"}},aboutXYears:{one:{regular:"přibližně rok",past:"přibližně před rokem",future:"přibližně za rok"},few:{regular:"přibližně {{count}} roky",past:"přibližně před {{count}} roky",future:"přibližně za {{count}} roky"},many:{regular:"přibližně {{count}} roků",past:"přibližně před {{count}} roky",future:"přibližně za {{count}} roků"}},xYears:{one:{regular:"rok",past:"před rokem",future:"za rok"},few:{regular:"{{count}} roky",past:"před {{count}} roky",future:"za {{count}} roky"},many:{regular:"{{count}} roků",past:"před {{count}} roky",future:"za {{count}} roků"}},overXYears:{one:{regular:"více než rok",past:"před více než rokem",future:"za více než rok"},few:{regular:"více než {{count}} roky",past:"před více než {{count}} roky",future:"za více než {{count}} roky"},many:{regular:"více než {{count}} roků",past:"před více než {{count}} roky",future:"za více než {{count}} roků"}},almostXYears:{one:{regular:"skoro rok",past:"skoro před rokem",future:"skoro za rok"},few:{regular:"skoro {{count}} roky",past:"skoro před {{count}} roky",future:"skoro za {{count}} roky"},many:{regular:"skoro {{count}} roků",past:"skoro před {{count}} roky",future:"skoro za {{count}} roků"}}},QGe=function(t,n,r){var a,i=XGe[t];i.type==="other"?a=i.other:n===1?a=i.one:n>1&&n<5?a=i.few:a=i.many;var o=(r==null?void 0:r.addSuffix)===!0,l=r==null?void 0:r.comparison,u;return o&&l===-1?u=a.past:o&&l===1?u=a.future:u=a.regular,u.replace("{{count}}",String(n))},JGe={full:"EEEE, d. MMMM yyyy",long:"d. MMMM yyyy",medium:"d. M. yyyy",short:"dd.MM.yyyy"},ZGe={full:"H:mm:ss zzzz",long:"H:mm:ss z",medium:"H:mm:ss",short:"H:mm"},eYe={full:"{{date}} 'v' {{time}}",long:"{{date}} 'v' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},tYe={date:Ne({formats:JGe,defaultWidth:"full"}),time:Ne({formats:ZGe,defaultWidth:"full"}),dateTime:Ne({formats:eYe,defaultWidth:"full"})},nYe=["neděli","pondělí","úterý","středu","čtvrtek","pátek","sobotu"],rYe={lastWeek:"'poslední' eeee 've' p",yesterday:"'včera v' p",today:"'dnes v' p",tomorrow:"'zítra v' p",nextWeek:function(t){var n=t.getUTCDay();return"'v "+nYe[n]+" o' p"},other:"P"},aYe=function(t,n){var r=rYe[t];return typeof r=="function"?r(n):r},iYe={narrow:["př. n. l.","n. l."],abbreviated:["př. n. l.","n. l."],wide:["před naším letopočtem","našeho letopočtu"]},oYe={narrow:["1","2","3","4"],abbreviated:["1. čtvrtletí","2. čtvrtletí","3. čtvrtletí","4. čtvrtletí"],wide:["1. čtvrtletí","2. čtvrtletí","3. čtvrtletí","4. čtvrtletí"]},sYe={narrow:["L","Ú","B","D","K","Č","Č","S","Z","Ř","L","P"],abbreviated:["led","úno","bře","dub","kvě","čvn","čvc","srp","zář","říj","lis","pro"],wide:["leden","únor","březen","duben","květen","červen","červenec","srpen","září","říjen","listopad","prosinec"]},lYe={narrow:["L","Ú","B","D","K","Č","Č","S","Z","Ř","L","P"],abbreviated:["led","úno","bře","dub","kvě","čvn","čvc","srp","zář","říj","lis","pro"],wide:["ledna","února","března","dubna","května","června","července","srpna","září","října","listopadu","prosince"]},uYe={narrow:["ne","po","út","st","čt","pá","so"],short:["ne","po","út","st","čt","pá","so"],abbreviated:["ned","pon","úte","stř","čtv","pát","sob"],wide:["neděle","pondělí","úterý","středa","čtvrtek","pátek","sobota"]},cYe={narrow:{am:"dop.",pm:"odp.",midnight:"půlnoc",noon:"poledne",morning:"ráno",afternoon:"odpoledne",evening:"večer",night:"noc"},abbreviated:{am:"dop.",pm:"odp.",midnight:"půlnoc",noon:"poledne",morning:"ráno",afternoon:"odpoledne",evening:"večer",night:"noc"},wide:{am:"dopoledne",pm:"odpoledne",midnight:"půlnoc",noon:"poledne",morning:"ráno",afternoon:"odpoledne",evening:"večer",night:"noc"}},dYe={narrow:{am:"dop.",pm:"odp.",midnight:"půlnoc",noon:"poledne",morning:"ráno",afternoon:"odpoledne",evening:"večer",night:"noc"},abbreviated:{am:"dop.",pm:"odp.",midnight:"půlnoc",noon:"poledne",morning:"ráno",afternoon:"odpoledne",evening:"večer",night:"noc"},wide:{am:"dopoledne",pm:"odpoledne",midnight:"půlnoc",noon:"poledne",morning:"ráno",afternoon:"odpoledne",evening:"večer",night:"noc"}},fYe=function(t,n){var r=Number(t);return r+"."},pYe={ordinalNumber:fYe,era:oe({values:iYe,defaultWidth:"wide"}),quarter:oe({values:oYe,defaultWidth:"wide",argumentCallback:function(t){return t-1}}),month:oe({values:sYe,defaultWidth:"wide",formattingValues:lYe,defaultFormattingWidth:"wide"}),day:oe({values:uYe,defaultWidth:"wide"}),dayPeriod:oe({values:cYe,defaultWidth:"wide",formattingValues:dYe,defaultFormattingWidth:"wide"})},hYe=/^(\d+)\.?/i,mYe=/\d+/i,gYe={narrow:/^(p[řr](\.|ed) Kr\.|p[řr](\.|ed) n\. l\.|po Kr\.|n\. l\.)/i,abbreviated:/^(p[řr](\.|ed) Kr\.|p[řr](\.|ed) n\. l\.|po Kr\.|n\. l\.)/i,wide:/^(p[řr](\.|ed) Kristem|p[řr](\.|ed) na[šs][íi]m letopo[čc]tem|po Kristu|na[šs]eho letopo[čc]tu)/i},vYe={any:[/^p[řr]/i,/^(po|n)/i]},yYe={narrow:/^[1234]/i,abbreviated:/^[1234]\. [čc]tvrtlet[íi]/i,wide:/^[1234]\. [čc]tvrtlet[íi]/i},bYe={any:[/1/i,/2/i,/3/i,/4/i]},wYe={narrow:/^[lúubdkčcszřrlp]/i,abbreviated:/^(led|[úu]no|b[řr]e|dub|kv[ěe]|[čc]vn|[čc]vc|srp|z[áa][řr]|[řr][íi]j|lis|pro)/i,wide:/^(leden|ledna|[úu]nora?|b[řr]ezen|b[řr]ezna|duben|dubna|kv[ěe]ten|kv[ěe]tna|[čc]erven(ec|ce)?|[čc]ervna|srpen|srpna|z[áa][řr][íi]|[řr][íi]jen|[řr][íi]jna|listopad(a|u)?|prosinec|prosince)/i},SYe={narrow:[/^l/i,/^[úu]/i,/^b/i,/^d/i,/^k/i,/^[čc]/i,/^[čc]/i,/^s/i,/^z/i,/^[řr]/i,/^l/i,/^p/i],any:[/^led/i,/^[úu]n/i,/^b[řr]e/i,/^dub/i,/^kv[ěe]/i,/^[čc]vn|[čc]erven(?!\w)|[čc]ervna/i,/^[čc]vc|[čc]erven(ec|ce)/i,/^srp/i,/^z[áa][řr]/i,/^[řr][íi]j/i,/^lis/i,/^pro/i]},EYe={narrow:/^[npuúsčps]/i,short:/^(ne|po|[úu]t|st|[čc]t|p[áa]|so)/i,abbreviated:/^(ned|pon|[úu]te|st[rř]|[čc]tv|p[áa]t|sob)/i,wide:/^(ned[ěe]le|pond[ěe]l[íi]|[úu]ter[ýy]|st[řr]eda|[čc]tvrtek|p[áa]tek|sobota)/i},TYe={narrow:[/^n/i,/^p/i,/^[úu]/i,/^s/i,/^[čc]/i,/^p/i,/^s/i],any:[/^ne/i,/^po/i,/^[úu]t/i,/^st/i,/^[čc]t/i,/^p[áa]/i,/^so/i]},CYe={any:/^dopoledne|dop\.?|odpoledne|odp\.?|p[ůu]lnoc|poledne|r[áa]no|odpoledne|ve[čc]er|(v )?noci?/i},kYe={any:{am:/^dop/i,pm:/^odp/i,midnight:/^p[ůu]lnoc/i,noon:/^poledne/i,morning:/r[áa]no/i,afternoon:/odpoledne/i,evening:/ve[čc]er/i,night:/noc/i}},xYe={ordinalNumber:Xt({matchPattern:hYe,parsePattern:mYe,valueCallback:function(t){return parseInt(t,10)}}),era:se({matchPatterns:gYe,defaultMatchWidth:"wide",parsePatterns:vYe,defaultParseWidth:"any"}),quarter:se({matchPatterns:yYe,defaultMatchWidth:"wide",parsePatterns:bYe,defaultParseWidth:"any",valueCallback:function(t){return t+1}}),month:se({matchPatterns:wYe,defaultMatchWidth:"wide",parsePatterns:SYe,defaultParseWidth:"any"}),day:se({matchPatterns:EYe,defaultMatchWidth:"wide",parsePatterns:TYe,defaultParseWidth:"any"}),dayPeriod:se({matchPatterns:CYe,defaultMatchWidth:"any",parsePatterns:kYe,defaultParseWidth:"any"})},_Ye={code:"cs",formatDistance:QGe,formatLong:tYe,formatRelative:aYe,localize:pYe,match:xYe,options:{weekStartsOn:1,firstWeekContainsDate:4}};const OYe=Object.freeze(Object.defineProperty({__proto__:null,default:_Ye},Symbol.toStringTag,{value:"Module"})),RYe=jt(OYe);var PYe={lessThanXSeconds:{one:"llai na eiliad",other:"llai na {{count}} eiliad"},xSeconds:{one:"1 eiliad",other:"{{count}} eiliad"},halfAMinute:"hanner munud",lessThanXMinutes:{one:"llai na munud",two:"llai na 2 funud",other:"llai na {{count}} munud"},xMinutes:{one:"1 munud",two:"2 funud",other:"{{count}} munud"},aboutXHours:{one:"tua 1 awr",other:"tua {{count}} awr"},xHours:{one:"1 awr",other:"{{count}} awr"},xDays:{one:"1 diwrnod",two:"2 ddiwrnod",other:"{{count}} diwrnod"},aboutXWeeks:{one:"tua 1 wythnos",two:"tua pythefnos",other:"tua {{count}} wythnos"},xWeeks:{one:"1 wythnos",two:"pythefnos",other:"{{count}} wythnos"},aboutXMonths:{one:"tua 1 mis",two:"tua 2 fis",other:"tua {{count}} mis"},xMonths:{one:"1 mis",two:"2 fis",other:"{{count}} mis"},aboutXYears:{one:"tua 1 flwyddyn",two:"tua 2 flynedd",other:"tua {{count}} mlynedd"},xYears:{one:"1 flwyddyn",two:"2 flynedd",other:"{{count}} mlynedd"},overXYears:{one:"dros 1 flwyddyn",two:"dros 2 flynedd",other:"dros {{count}} mlynedd"},almostXYears:{one:"bron 1 flwyddyn",two:"bron 2 flynedd",other:"bron {{count}} mlynedd"}},AYe=function(t,n,r){var a,i=PYe[t];return typeof i=="string"?a=i:n===1?a=i.one:n===2&&i.two?a=i.two:a=i.other.replace("{{count}}",String(n)),r!=null&&r.addSuffix?r.comparison&&r.comparison>0?"mewn "+a:a+" yn ôl":a},NYe={full:"EEEE, d MMMM yyyy",long:"d MMMM yyyy",medium:"d MMM yyyy",short:"dd/MM/yyyy"},MYe={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},IYe={full:"{{date}} 'am' {{time}}",long:"{{date}} 'am' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},DYe={date:Ne({formats:NYe,defaultWidth:"full"}),time:Ne({formats:MYe,defaultWidth:"full"}),dateTime:Ne({formats:IYe,defaultWidth:"full"})},$Ye={lastWeek:"eeee 'diwethaf am' p",yesterday:"'ddoe am' p",today:"'heddiw am' p",tomorrow:"'yfory am' p",nextWeek:"eeee 'am' p",other:"P"},LYe=function(t,n,r,a){return $Ye[t]},FYe={narrow:["C","O"],abbreviated:["CC","OC"],wide:["Cyn Crist","Ar ôl Crist"]},jYe={narrow:["1","2","3","4"],abbreviated:["Ch1","Ch2","Ch3","Ch4"],wide:["Chwarter 1af","2ail chwarter","3ydd chwarter","4ydd chwarter"]},UYe={narrow:["I","Ch","Ma","E","Mi","Me","G","A","Md","H","T","Rh"],abbreviated:["Ion","Chwe","Maw","Ebr","Mai","Meh","Gor","Aws","Med","Hyd","Tach","Rhag"],wide:["Ionawr","Chwefror","Mawrth","Ebrill","Mai","Mehefin","Gorffennaf","Awst","Medi","Hydref","Tachwedd","Rhagfyr"]},BYe={narrow:["S","Ll","M","M","I","G","S"],short:["Su","Ll","Ma","Me","Ia","Gw","Sa"],abbreviated:["Sul","Llun","Maw","Mer","Iau","Gwe","Sad"],wide:["dydd Sul","dydd Llun","dydd Mawrth","dydd Mercher","dydd Iau","dydd Gwener","dydd Sadwrn"]},WYe={narrow:{am:"b",pm:"h",midnight:"hn",noon:"hd",morning:"bore",afternoon:"prynhawn",evening:"gyda'r nos",night:"nos"},abbreviated:{am:"yb",pm:"yh",midnight:"hanner nos",noon:"hanner dydd",morning:"bore",afternoon:"prynhawn",evening:"gyda'r nos",night:"nos"},wide:{am:"y.b.",pm:"y.h.",midnight:"hanner nos",noon:"hanner dydd",morning:"bore",afternoon:"prynhawn",evening:"gyda'r nos",night:"nos"}},zYe={narrow:{am:"b",pm:"h",midnight:"hn",noon:"hd",morning:"yn y bore",afternoon:"yn y prynhawn",evening:"gyda'r nos",night:"yn y nos"},abbreviated:{am:"yb",pm:"yh",midnight:"hanner nos",noon:"hanner dydd",morning:"yn y bore",afternoon:"yn y prynhawn",evening:"gyda'r nos",night:"yn y nos"},wide:{am:"y.b.",pm:"y.h.",midnight:"hanner nos",noon:"hanner dydd",morning:"yn y bore",afternoon:"yn y prynhawn",evening:"gyda'r nos",night:"yn y nos"}},qYe=function(t,n){var r=Number(t);if(r<20)switch(r){case 0:return r+"fed";case 1:return r+"af";case 2:return r+"ail";case 3:case 4:return r+"ydd";case 5:case 6:return r+"ed";case 7:case 8:case 9:case 10:case 12:case 15:case 18:return r+"fed";case 11:case 13:case 14:case 16:case 17:case 19:return r+"eg"}else if(r>=50&&r<=60||r===80||r>=100)return r+"fed";return r+"ain"},HYe={ordinalNumber:qYe,era:oe({values:FYe,defaultWidth:"wide"}),quarter:oe({values:jYe,defaultWidth:"wide",argumentCallback:function(t){return t-1}}),month:oe({values:UYe,defaultWidth:"wide"}),day:oe({values:BYe,defaultWidth:"wide"}),dayPeriod:oe({values:WYe,defaultWidth:"wide",formattingValues:zYe,defaultFormattingWidth:"wide"})},VYe=/^(\d+)(af|ail|ydd|ed|fed|eg|ain)?/i,GYe=/\d+/i,YYe={narrow:/^(c|o)/i,abbreviated:/^(c\.?\s?c\.?|o\.?\s?c\.?)/i,wide:/^(cyn christ|ar ôl crist|ar ol crist)/i},KYe={wide:[/^c/i,/^(ar ôl crist|ar ol crist)/i],any:[/^c/i,/^o/i]},XYe={narrow:/^[1234]/i,abbreviated:/^ch[1234]/i,wide:/^(chwarter 1af)|([234](ail|ydd)? chwarter)/i},QYe={any:[/1/i,/2/i,/3/i,/4/i]},JYe={narrow:/^(i|ch|m|e|g|a|h|t|rh)/i,abbreviated:/^(ion|chwe|maw|ebr|mai|meh|gor|aws|med|hyd|tach|rhag)/i,wide:/^(ionawr|chwefror|mawrth|ebrill|mai|mehefin|gorffennaf|awst|medi|hydref|tachwedd|rhagfyr)/i},ZYe={narrow:[/^i/i,/^ch/i,/^m/i,/^e/i,/^m/i,/^m/i,/^g/i,/^a/i,/^m/i,/^h/i,/^t/i,/^rh/i],any:[/^io/i,/^ch/i,/^maw/i,/^e/i,/^mai/i,/^meh/i,/^g/i,/^a/i,/^med/i,/^h/i,/^t/i,/^rh/i]},eKe={narrow:/^(s|ll|m|i|g)/i,short:/^(su|ll|ma|me|ia|gw|sa)/i,abbreviated:/^(sul|llun|maw|mer|iau|gwe|sad)/i,wide:/^dydd (sul|llun|mawrth|mercher|iau|gwener|sadwrn)/i},tKe={narrow:[/^s/i,/^ll/i,/^m/i,/^m/i,/^i/i,/^g/i,/^s/i],wide:[/^dydd su/i,/^dydd ll/i,/^dydd ma/i,/^dydd me/i,/^dydd i/i,/^dydd g/i,/^dydd sa/i],any:[/^su/i,/^ll/i,/^ma/i,/^me/i,/^i/i,/^g/i,/^sa/i]},nKe={narrow:/^(b|h|hn|hd|(yn y|y|yr|gyda'r) (bore|prynhawn|nos|hwyr))/i,any:/^(y\.?\s?[bh]\.?|hanner nos|hanner dydd|(yn y|y|yr|gyda'r) (bore|prynhawn|nos|hwyr))/i},rKe={any:{am:/^b|(y\.?\s?b\.?)/i,pm:/^h|(y\.?\s?h\.?)|(yr hwyr)/i,midnight:/^hn|hanner nos/i,noon:/^hd|hanner dydd/i,morning:/bore/i,afternoon:/prynhawn/i,evening:/^gyda'r nos$/i,night:/blah/i}},aKe={ordinalNumber:Xt({matchPattern:VYe,parsePattern:GYe,valueCallback:function(t){return parseInt(t,10)}}),era:se({matchPatterns:YYe,defaultMatchWidth:"wide",parsePatterns:KYe,defaultParseWidth:"any"}),quarter:se({matchPatterns:XYe,defaultMatchWidth:"wide",parsePatterns:QYe,defaultParseWidth:"any",valueCallback:function(t){return t+1}}),month:se({matchPatterns:JYe,defaultMatchWidth:"wide",parsePatterns:ZYe,defaultParseWidth:"any"}),day:se({matchPatterns:eKe,defaultMatchWidth:"wide",parsePatterns:tKe,defaultParseWidth:"any"}),dayPeriod:se({matchPatterns:nKe,defaultMatchWidth:"any",parsePatterns:rKe,defaultParseWidth:"any"})},iKe={code:"cy",formatDistance:AYe,formatLong:DYe,formatRelative:LYe,localize:HYe,match:aKe,options:{weekStartsOn:0,firstWeekContainsDate:1}};const oKe=Object.freeze(Object.defineProperty({__proto__:null,default:iKe},Symbol.toStringTag,{value:"Module"})),sKe=jt(oKe);var lKe={lessThanXSeconds:{one:"mindre end ét sekund",other:"mindre end {{count}} sekunder"},xSeconds:{one:"1 sekund",other:"{{count}} sekunder"},halfAMinute:"ét halvt minut",lessThanXMinutes:{one:"mindre end ét minut",other:"mindre end {{count}} minutter"},xMinutes:{one:"1 minut",other:"{{count}} minutter"},aboutXHours:{one:"cirka 1 time",other:"cirka {{count}} timer"},xHours:{one:"1 time",other:"{{count}} timer"},xDays:{one:"1 dag",other:"{{count}} dage"},aboutXWeeks:{one:"cirka 1 uge",other:"cirka {{count}} uger"},xWeeks:{one:"1 uge",other:"{{count}} uger"},aboutXMonths:{one:"cirka 1 måned",other:"cirka {{count}} måneder"},xMonths:{one:"1 måned",other:"{{count}} måneder"},aboutXYears:{one:"cirka 1 år",other:"cirka {{count}} år"},xYears:{one:"1 år",other:"{{count}} år"},overXYears:{one:"over 1 år",other:"over {{count}} år"},almostXYears:{one:"næsten 1 år",other:"næsten {{count}} år"}},uKe=function(t,n,r){var a,i=lKe[t];return typeof i=="string"?a=i:n===1?a=i.one:a=i.other.replace("{{count}}",String(n)),r!=null&&r.addSuffix?r.comparison&&r.comparison>0?"om "+a:a+" siden":a},cKe={full:"EEEE 'den' d. MMMM y",long:"d. MMMM y",medium:"d. MMM y",short:"dd/MM/y"},dKe={full:"HH:mm:ss zzzz",long:"HH:mm:ss z",medium:"HH:mm:ss",short:"HH:mm"},fKe={full:"{{date}} 'kl'. {{time}}",long:"{{date}} 'kl'. {{time}}",medium:"{{date}} {{time}}",short:"{{date}} {{time}}"},pKe={date:Ne({formats:cKe,defaultWidth:"full"}),time:Ne({formats:dKe,defaultWidth:"full"}),dateTime:Ne({formats:fKe,defaultWidth:"full"})},hKe={lastWeek:"'sidste' eeee 'kl.' p",yesterday:"'i går kl.' p",today:"'i dag kl.' p",tomorrow:"'i morgen kl.' p",nextWeek:"'på' eeee 'kl.' p",other:"P"},mKe=function(t,n,r,a){return hKe[t]},gKe={narrow:["fvt","vt"],abbreviated:["f.v.t.","v.t."],wide:["før vesterlandsk tidsregning","vesterlandsk tidsregning"]},vKe={narrow:["1","2","3","4"],abbreviated:["1. kvt.","2. kvt.","3. kvt.","4. kvt."],wide:["1. kvartal","2. kvartal","3. kvartal","4. kvartal"]},yKe={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["jan.","feb.","mar.","apr.","maj","jun.","jul.","aug.","sep.","okt.","nov.","dec."],wide:["januar","februar","marts","april","maj","juni","juli","august","september","oktober","november","december"]},bKe={narrow:["S","M","T","O","T","F","L"],short:["sø","ma","ti","on","to","fr","lø"],abbreviated:["søn.","man.","tir.","ons.","tor.","fre.","lør."],wide:["søndag","mandag","tirsdag","onsdag","torsdag","fredag","lørdag"]},wKe={narrow:{am:"a",pm:"p",midnight:"midnat",noon:"middag",morning:"morgen",afternoon:"eftermiddag",evening:"aften",night:"nat"},abbreviated:{am:"AM",pm:"PM",midnight:"midnat",noon:"middag",morning:"morgen",afternoon:"eftermiddag",evening:"aften",night:"nat"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnat",noon:"middag",morning:"morgen",afternoon:"eftermiddag",evening:"aften",night:"nat"}},SKe={narrow:{am:"a",pm:"p",midnight:"midnat",noon:"middag",morning:"om morgenen",afternoon:"om eftermiddagen",evening:"om aftenen",night:"om natten"},abbreviated:{am:"AM",pm:"PM",midnight:"midnat",noon:"middag",morning:"om morgenen",afternoon:"om eftermiddagen",evening:"om aftenen",night:"om natten"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnat",noon:"middag",morning:"om morgenen",afternoon:"om eftermiddagen",evening:"om aftenen",night:"om natten"}},EKe=function(t,n){var r=Number(t);return r+"."},TKe={ordinalNumber:EKe,era:oe({values:gKe,defaultWidth:"wide"}),quarter:oe({values:vKe,defaultWidth:"wide",argumentCallback:function(t){return t-1}}),month:oe({values:yKe,defaultWidth:"wide"}),day:oe({values:bKe,defaultWidth:"wide"}),dayPeriod:oe({values:wKe,defaultWidth:"wide",formattingValues:SKe,defaultFormattingWidth:"wide"})},CKe=/^(\d+)(\.)?/i,kKe=/\d+/i,xKe={narrow:/^(fKr|fvt|eKr|vt)/i,abbreviated:/^(f\.Kr\.?|f\.v\.t\.?|e\.Kr\.?|v\.t\.)/i,wide:/^(f.Kr.|før vesterlandsk tidsregning|e.Kr.|vesterlandsk tidsregning)/i},_Ke={any:[/^f/i,/^(v|e)/i]},OKe={narrow:/^[1234]/i,abbreviated:/^[1234]. kvt\./i,wide:/^[1234]\.? kvartal/i},RKe={any:[/1/i,/2/i,/3/i,/4/i]},PKe={narrow:/^[jfmasond]/i,abbreviated:/^(jan.|feb.|mar.|apr.|maj|jun.|jul.|aug.|sep.|okt.|nov.|dec.)/i,wide:/^(januar|februar|marts|april|maj|juni|juli|august|september|oktober|november|december)/i},AKe={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^maj/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},NKe={narrow:/^[smtofl]/i,short:/^(søn.|man.|tir.|ons.|tor.|fre.|lør.)/i,abbreviated:/^(søn|man|tir|ons|tor|fre|lør)/i,wide:/^(søndag|mandag|tirsdag|onsdag|torsdag|fredag|lørdag)/i},MKe={narrow:[/^s/i,/^m/i,/^t/i,/^o/i,/^t/i,/^f/i,/^l/i],any:[/^s/i,/^m/i,/^ti/i,/^o/i,/^to/i,/^f/i,/^l/i]},IKe={narrow:/^(a|p|midnat|middag|(om) (morgenen|eftermiddagen|aftenen|natten))/i,any:/^([ap]\.?\s?m\.?|midnat|middag|(om) (morgenen|eftermiddagen|aftenen|natten))/i},DKe={any:{am:/^a/i,pm:/^p/i,midnight:/midnat/i,noon:/middag/i,morning:/morgen/i,afternoon:/eftermiddag/i,evening:/aften/i,night:/nat/i}},$Ke={ordinalNumber:Xt({matchPattern:CKe,parsePattern:kKe,valueCallback:function(t){return parseInt(t,10)}}),era:se({matchPatterns:xKe,defaultMatchWidth:"wide",parsePatterns:_Ke,defaultParseWidth:"any"}),quarter:se({matchPatterns:OKe,defaultMatchWidth:"wide",parsePatterns:RKe,defaultParseWidth:"any",valueCallback:function(t){return t+1}}),month:se({matchPatterns:PKe,defaultMatchWidth:"wide",parsePatterns:AKe,defaultParseWidth:"any"}),day:se({matchPatterns:NKe,defaultMatchWidth:"wide",parsePatterns:MKe,defaultParseWidth:"any"}),dayPeriod:se({matchPatterns:IKe,defaultMatchWidth:"any",parsePatterns:DKe,defaultParseWidth:"any"})},LKe={code:"da",formatDistance:uKe,formatLong:pKe,formatRelative:mKe,localize:TKe,match:$Ke,options:{weekStartsOn:1,firstWeekContainsDate:4}};const FKe=Object.freeze(Object.defineProperty({__proto__:null,default:LKe},Symbol.toStringTag,{value:"Module"})),jKe=jt(FKe);var IG={lessThanXSeconds:{standalone:{one:"weniger als 1 Sekunde",other:"weniger als {{count}} Sekunden"},withPreposition:{one:"weniger als 1 Sekunde",other:"weniger als {{count}} Sekunden"}},xSeconds:{standalone:{one:"1 Sekunde",other:"{{count}} Sekunden"},withPreposition:{one:"1 Sekunde",other:"{{count}} Sekunden"}},halfAMinute:{standalone:"halbe Minute",withPreposition:"halben Minute"},lessThanXMinutes:{standalone:{one:"weniger als 1 Minute",other:"weniger als {{count}} Minuten"},withPreposition:{one:"weniger als 1 Minute",other:"weniger als {{count}} Minuten"}},xMinutes:{standalone:{one:"1 Minute",other:"{{count}} Minuten"},withPreposition:{one:"1 Minute",other:"{{count}} Minuten"}},aboutXHours:{standalone:{one:"etwa 1 Stunde",other:"etwa {{count}} Stunden"},withPreposition:{one:"etwa 1 Stunde",other:"etwa {{count}} Stunden"}},xHours:{standalone:{one:"1 Stunde",other:"{{count}} Stunden"},withPreposition:{one:"1 Stunde",other:"{{count}} Stunden"}},xDays:{standalone:{one:"1 Tag",other:"{{count}} Tage"},withPreposition:{one:"1 Tag",other:"{{count}} Tagen"}},aboutXWeeks:{standalone:{one:"etwa 1 Woche",other:"etwa {{count}} Wochen"},withPreposition:{one:"etwa 1 Woche",other:"etwa {{count}} Wochen"}},xWeeks:{standalone:{one:"1 Woche",other:"{{count}} Wochen"},withPreposition:{one:"1 Woche",other:"{{count}} Wochen"}},aboutXMonths:{standalone:{one:"etwa 1 Monat",other:"etwa {{count}} Monate"},withPreposition:{one:"etwa 1 Monat",other:"etwa {{count}} Monaten"}},xMonths:{standalone:{one:"1 Monat",other:"{{count}} Monate"},withPreposition:{one:"1 Monat",other:"{{count}} Monaten"}},aboutXYears:{standalone:{one:"etwa 1 Jahr",other:"etwa {{count}} Jahre"},withPreposition:{one:"etwa 1 Jahr",other:"etwa {{count}} Jahren"}},xYears:{standalone:{one:"1 Jahr",other:"{{count}} Jahre"},withPreposition:{one:"1 Jahr",other:"{{count}} Jahren"}},overXYears:{standalone:{one:"mehr als 1 Jahr",other:"mehr als {{count}} Jahre"},withPreposition:{one:"mehr als 1 Jahr",other:"mehr als {{count}} Jahren"}},almostXYears:{standalone:{one:"fast 1 Jahr",other:"fast {{count}} Jahre"},withPreposition:{one:"fast 1 Jahr",other:"fast {{count}} Jahren"}}},UKe=function(t,n,r){var a,i=r!=null&&r.addSuffix?IG[t].withPreposition:IG[t].standalone;return typeof i=="string"?a=i:n===1?a=i.one:a=i.other.replace("{{count}}",String(n)),r!=null&&r.addSuffix?r.comparison&&r.comparison>0?"in "+a:"vor "+a:a},BKe={full:"EEEE, do MMMM y",long:"do MMMM y",medium:"do MMM y",short:"dd.MM.y"},WKe={full:"HH:mm:ss zzzz",long:"HH:mm:ss z",medium:"HH:mm:ss",short:"HH:mm"},zKe={full:"{{date}} 'um' {{time}}",long:"{{date}} 'um' {{time}}",medium:"{{date}} {{time}}",short:"{{date}} {{time}}"},qKe={date:Ne({formats:BKe,defaultWidth:"full"}),time:Ne({formats:WKe,defaultWidth:"full"}),dateTime:Ne({formats:zKe,defaultWidth:"full"})},HKe={lastWeek:"'letzten' eeee 'um' p",yesterday:"'gestern um' p",today:"'heute um' p",tomorrow:"'morgen um' p",nextWeek:"eeee 'um' p",other:"P"},VKe=function(t,n,r,a){return HKe[t]},GKe={narrow:["v.Chr.","n.Chr."],abbreviated:["v.Chr.","n.Chr."],wide:["vor Christus","nach Christus"]},YKe={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1. Quartal","2. Quartal","3. Quartal","4. Quartal"]},F3={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mär","Apr","Mai","Jun","Jul","Aug","Sep","Okt","Nov","Dez"],wide:["Januar","Februar","März","April","Mai","Juni","Juli","August","September","Oktober","November","Dezember"]},KKe={narrow:F3.narrow,abbreviated:["Jan.","Feb.","März","Apr.","Mai","Juni","Juli","Aug.","Sep.","Okt.","Nov.","Dez."],wide:F3.wide},XKe={narrow:["S","M","D","M","D","F","S"],short:["So","Mo","Di","Mi","Do","Fr","Sa"],abbreviated:["So.","Mo.","Di.","Mi.","Do.","Fr.","Sa."],wide:["Sonntag","Montag","Dienstag","Mittwoch","Donnerstag","Freitag","Samstag"]},QKe={narrow:{am:"vm.",pm:"nm.",midnight:"Mitternacht",noon:"Mittag",morning:"Morgen",afternoon:"Nachm.",evening:"Abend",night:"Nacht"},abbreviated:{am:"vorm.",pm:"nachm.",midnight:"Mitternacht",noon:"Mittag",morning:"Morgen",afternoon:"Nachmittag",evening:"Abend",night:"Nacht"},wide:{am:"vormittags",pm:"nachmittags",midnight:"Mitternacht",noon:"Mittag",morning:"Morgen",afternoon:"Nachmittag",evening:"Abend",night:"Nacht"}},JKe={narrow:{am:"vm.",pm:"nm.",midnight:"Mitternacht",noon:"Mittag",morning:"morgens",afternoon:"nachm.",evening:"abends",night:"nachts"},abbreviated:{am:"vorm.",pm:"nachm.",midnight:"Mitternacht",noon:"Mittag",morning:"morgens",afternoon:"nachmittags",evening:"abends",night:"nachts"},wide:{am:"vormittags",pm:"nachmittags",midnight:"Mitternacht",noon:"Mittag",morning:"morgens",afternoon:"nachmittags",evening:"abends",night:"nachts"}},ZKe=function(t){var n=Number(t);return n+"."},eXe={ordinalNumber:ZKe,era:oe({values:GKe,defaultWidth:"wide"}),quarter:oe({values:YKe,defaultWidth:"wide",argumentCallback:function(t){return t-1}}),month:oe({values:F3,formattingValues:KKe,defaultWidth:"wide"}),day:oe({values:XKe,defaultWidth:"wide"}),dayPeriod:oe({values:QKe,defaultWidth:"wide",formattingValues:JKe,defaultFormattingWidth:"wide"})},tXe=/^(\d+)(\.)?/i,nXe=/\d+/i,rXe={narrow:/^(v\.? ?Chr\.?|n\.? ?Chr\.?)/i,abbreviated:/^(v\.? ?Chr\.?|n\.? ?Chr\.?)/i,wide:/^(vor Christus|vor unserer Zeitrechnung|nach Christus|unserer Zeitrechnung)/i},aXe={any:[/^v/i,/^n/i]},iXe={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](\.)? Quartal/i},oXe={any:[/1/i,/2/i,/3/i,/4/i]},sXe={narrow:/^[jfmasond]/i,abbreviated:/^(j[aä]n|feb|mär[z]?|apr|mai|jun[i]?|jul[i]?|aug|sep|okt|nov|dez)\.?/i,wide:/^(januar|februar|märz|april|mai|juni|juli|august|september|oktober|november|dezember)/i},lXe={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^j[aä]/i,/^f/i,/^mär/i,/^ap/i,/^mai/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},uXe={narrow:/^[smdmf]/i,short:/^(so|mo|di|mi|do|fr|sa)/i,abbreviated:/^(son?|mon?|die?|mit?|don?|fre?|sam?)\.?/i,wide:/^(sonntag|montag|dienstag|mittwoch|donnerstag|freitag|samstag)/i},cXe={any:[/^so/i,/^mo/i,/^di/i,/^mi/i,/^do/i,/^f/i,/^sa/i]},dXe={narrow:/^(vm\.?|nm\.?|Mitternacht|Mittag|morgens|nachm\.?|abends|nachts)/i,abbreviated:/^(vorm\.?|nachm\.?|Mitternacht|Mittag|morgens|nachm\.?|abends|nachts)/i,wide:/^(vormittags|nachmittags|Mitternacht|Mittag|morgens|nachmittags|abends|nachts)/i},fXe={any:{am:/^v/i,pm:/^n/i,midnight:/^Mitte/i,noon:/^Mitta/i,morning:/morgens/i,afternoon:/nachmittags/i,evening:/abends/i,night:/nachts/i}},pXe={ordinalNumber:Xt({matchPattern:tXe,parsePattern:nXe,valueCallback:function(t){return parseInt(t)}}),era:se({matchPatterns:rXe,defaultMatchWidth:"wide",parsePatterns:aXe,defaultParseWidth:"any"}),quarter:se({matchPatterns:iXe,defaultMatchWidth:"wide",parsePatterns:oXe,defaultParseWidth:"any",valueCallback:function(t){return t+1}}),month:se({matchPatterns:sXe,defaultMatchWidth:"wide",parsePatterns:lXe,defaultParseWidth:"any"}),day:se({matchPatterns:uXe,defaultMatchWidth:"wide",parsePatterns:cXe,defaultParseWidth:"any"}),dayPeriod:se({matchPatterns:dXe,defaultMatchWidth:"wide",parsePatterns:fXe,defaultParseWidth:"any"})},hXe={code:"de",formatDistance:UKe,formatLong:qKe,formatRelative:VKe,localize:eXe,match:pXe,options:{weekStartsOn:1,firstWeekContainsDate:4}};const mXe=Object.freeze(Object.defineProperty({__proto__:null,default:hXe},Symbol.toStringTag,{value:"Module"})),gXe=jt(mXe);var vXe={lessThanXSeconds:{one:"λιγότερο από ένα δευτερόλεπτο",other:"λιγότερο από {{count}} δευτερόλεπτα"},xSeconds:{one:"1 δευτερόλεπτο",other:"{{count}} δευτερόλεπτα"},halfAMinute:"μισό λεπτό",lessThanXMinutes:{one:"λιγότερο από ένα λεπτό",other:"λιγότερο από {{count}} λεπτά"},xMinutes:{one:"1 λεπτό",other:"{{count}} λεπτά"},aboutXHours:{one:"περίπου 1 ώρα",other:"περίπου {{count}} ώρες"},xHours:{one:"1 ώρα",other:"{{count}} ώρες"},xDays:{one:"1 ημέρα",other:"{{count}} ημέρες"},aboutXWeeks:{one:"περίπου 1 εβδομάδα",other:"περίπου {{count}} εβδομάδες"},xWeeks:{one:"1 εβδομάδα",other:"{{count}} εβδομάδες"},aboutXMonths:{one:"περίπου 1 μήνας",other:"περίπου {{count}} μήνες"},xMonths:{one:"1 μήνας",other:"{{count}} μήνες"},aboutXYears:{one:"περίπου 1 χρόνο",other:"περίπου {{count}} χρόνια"},xYears:{one:"1 χρόνο",other:"{{count}} χρόνια"},overXYears:{one:"πάνω από 1 χρόνο",other:"πάνω από {{count}} χρόνια"},almostXYears:{one:"περίπου 1 χρόνο",other:"περίπου {{count}} χρόνια"}},yXe=function(t,n,r){var a,i=vXe[t];return typeof i=="string"?a=i:n===1?a=i.one:a=i.other.replace("{{count}}",String(n)),r!=null&&r.addSuffix?r.comparison&&r.comparison>0?"σε "+a:a+" πριν":a},bXe={full:"EEEE, d MMMM y",long:"d MMMM y",medium:"d MMM y",short:"d/M/yy"},wXe={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},SXe={full:"{{date}} - {{time}}",long:"{{date}} - {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},EXe={date:Ne({formats:bXe,defaultWidth:"full"}),time:Ne({formats:wXe,defaultWidth:"full"}),dateTime:Ne({formats:SXe,defaultWidth:"full"})},TXe={lastWeek:function(t){switch(t.getUTCDay()){case 6:return"'το προηγούμενο' eeee 'στις' p";default:return"'την προηγούμενη' eeee 'στις' p"}},yesterday:"'χθες στις' p",today:"'σήμερα στις' p",tomorrow:"'αύριο στις' p",nextWeek:"eeee 'στις' p",other:"P"},CXe=function(t,n){var r=TXe[t];return typeof r=="function"?r(n):r},kXe={narrow:["πΧ","μΧ"],abbreviated:["π.Χ.","μ.Χ."],wide:["προ Χριστού","μετά Χριστόν"]},xXe={narrow:["1","2","3","4"],abbreviated:["Τ1","Τ2","Τ3","Τ4"],wide:["1ο τρίμηνο","2ο τρίμηνο","3ο τρίμηνο","4ο τρίμηνο"]},_Xe={narrow:["Ι","Φ","Μ","Α","Μ","Ι","Ι","Α","Σ","Ο","Ν","Δ"],abbreviated:["Ιαν","Φεβ","Μάρ","Απρ","Μάι","Ιούν","Ιούλ","Αύγ","Σεπ","Οκτ","Νοέ","Δεκ"],wide:["Ιανουάριος","Φεβρουάριος","Μάρτιος","Απρίλιος","Μάιος","Ιούνιος","Ιούλιος","Αύγουστος","Σεπτέμβριος","Οκτώβριος","Νοέμβριος","Δεκέμβριος"]},OXe={narrow:["Ι","Φ","Μ","Α","Μ","Ι","Ι","Α","Σ","Ο","Ν","Δ"],abbreviated:["Ιαν","Φεβ","Μαρ","Απρ","Μαΐ","Ιουν","Ιουλ","Αυγ","Σεπ","Οκτ","Νοε","Δεκ"],wide:["Ιανουαρίου","Φεβρουαρίου","Μαρτίου","Απριλίου","Μαΐου","Ιουνίου","Ιουλίου","Αυγούστου","Σεπτεμβρίου","Οκτωβρίου","Νοεμβρίου","Δεκεμβρίου"]},RXe={narrow:["Κ","Δ","T","Τ","Π","Π","Σ"],short:["Κυ","Δε","Τρ","Τε","Πέ","Πα","Σά"],abbreviated:["Κυρ","Δευ","Τρί","Τετ","Πέμ","Παρ","Σάβ"],wide:["Κυριακή","Δευτέρα","Τρίτη","Τετάρτη","Πέμπτη","Παρασκευή","Σάββατο"]},PXe={narrow:{am:"πμ",pm:"μμ",midnight:"μεσάνυχτα",noon:"μεσημέρι",morning:"πρωί",afternoon:"απόγευμα",evening:"βράδυ",night:"νύχτα"},abbreviated:{am:"π.μ.",pm:"μ.μ.",midnight:"μεσάνυχτα",noon:"μεσημέρι",morning:"πρωί",afternoon:"απόγευμα",evening:"βράδυ",night:"νύχτα"},wide:{am:"π.μ.",pm:"μ.μ.",midnight:"μεσάνυχτα",noon:"μεσημέρι",morning:"πρωί",afternoon:"απόγευμα",evening:"βράδυ",night:"νύχτα"}},AXe=function(t,n){var r=Number(t),a=n==null?void 0:n.unit,i;return a==="year"||a==="month"?i="ος":a==="week"||a==="dayOfYear"||a==="day"||a==="hour"||a==="date"?i="η":i="ο",r+i},NXe={ordinalNumber:AXe,era:oe({values:kXe,defaultWidth:"wide"}),quarter:oe({values:xXe,defaultWidth:"wide",argumentCallback:function(t){return t-1}}),month:oe({values:_Xe,defaultWidth:"wide",formattingValues:OXe,defaultFormattingWidth:"wide"}),day:oe({values:RXe,defaultWidth:"wide"}),dayPeriod:oe({values:PXe,defaultWidth:"wide"})},MXe=/^(\d+)(ος|η|ο)?/i,IXe=/\d+/i,DXe={narrow:/^(πΧ|μΧ)/i,abbreviated:/^(π\.?\s?χ\.?|π\.?\s?κ\.?\s?χ\.?|μ\.?\s?χ\.?|κ\.?\s?χ\.?)/i,wide:/^(προ Χριστο(ύ|υ)|πριν απ(ό|ο) την Κοιν(ή|η) Χρονολογ(ί|ι)α|μετ(ά|α) Χριστ(ό|ο)ν|Κοιν(ή|η) Χρονολογ(ί|ι)α)/i},$Xe={any:[/^π/i,/^(μ|κ)/i]},LXe={narrow:/^[1234]/i,abbreviated:/^τ[1234]/i,wide:/^[1234]ο? τρ(ί|ι)μηνο/i},FXe={any:[/1/i,/2/i,/3/i,/4/i]},jXe={narrow:/^[ιφμαμιιασονδ]/i,abbreviated:/^(ιαν|φεβ|μ[άα]ρ|απρ|μ[άα][ιΐ]|ιο[ύυ]ν|ιο[ύυ]λ|α[ύυ]γ|σεπ|οκτ|νο[έε]|δεκ)/i,wide:/^(μ[άα][ιΐ]|α[ύυ]γο[υύ]στ)(ος|ου)|(ιανου[άα]ρ|φεβρου[άα]ρ|μ[άα]ρτ|απρ[ίι]λ|ιο[ύυ]ν|ιο[ύυ]λ|σεπτ[έε]μβρ|οκτ[ώω]βρ|νο[έε]μβρ|δεκ[έε]μβρ)(ιος|ίου)/i},UXe={narrow:[/^ι/i,/^φ/i,/^μ/i,/^α/i,/^μ/i,/^ι/i,/^ι/i,/^α/i,/^σ/i,/^ο/i,/^ν/i,/^δ/i],any:[/^ια/i,/^φ/i,/^μ[άα]ρ/i,/^απ/i,/^μ[άα][ιΐ]/i,/^ιο[ύυ]ν/i,/^ιο[ύυ]λ/i,/^α[ύυ]/i,/^σ/i,/^ο/i,/^ν/i,/^δ/i]},BXe={narrow:/^[κδτπσ]/i,short:/^(κυ|δε|τρ|τε|π[εέ]|π[αά]|σ[αά])/i,abbreviated:/^(κυρ|δευ|τρι|τετ|πεμ|παρ|σαβ)/i,wide:/^(κυριακ(ή|η)|δευτ(έ|ε)ρα|τρ(ί|ι)τη|τετ(ά|α)ρτη|π(έ|ε)μπτη|παρασκευ(ή|η)|σ(ά|α)ββατο)/i},WXe={narrow:[/^κ/i,/^δ/i,/^τ/i,/^τ/i,/^π/i,/^π/i,/^σ/i],any:[/^κ/i,/^δ/i,/^τρ/i,/^τε/i,/^π[εέ]/i,/^π[αά]/i,/^σ/i]},zXe={narrow:/^(πμ|μμ|μεσ(ά|α)νυχτα|μεσημ(έ|ε)ρι|πρω(ί|ι)|απ(ό|ο)γευμα|βρ(ά|α)δυ|ν(ύ|υ)χτα)/i,any:/^([πμ]\.?\s?μ\.?|μεσ(ά|α)νυχτα|μεσημ(έ|ε)ρι|πρω(ί|ι)|απ(ό|ο)γευμα|βρ(ά|α)δυ|ν(ύ|υ)χτα)/i},qXe={any:{am:/^πμ|π\.\s?μ\./i,pm:/^μμ|μ\.\s?μ\./i,midnight:/^μεσάν/i,noon:/^μεσημ(έ|ε)/i,morning:/πρω(ί|ι)/i,afternoon:/απ(ό|ο)γευμα/i,evening:/βρ(ά|α)δυ/i,night:/ν(ύ|υ)χτα/i}},HXe={ordinalNumber:Xt({matchPattern:MXe,parsePattern:IXe,valueCallback:function(t){return parseInt(t,10)}}),era:se({matchPatterns:DXe,defaultMatchWidth:"wide",parsePatterns:$Xe,defaultParseWidth:"any"}),quarter:se({matchPatterns:LXe,defaultMatchWidth:"wide",parsePatterns:FXe,defaultParseWidth:"any",valueCallback:function(t){return t+1}}),month:se({matchPatterns:jXe,defaultMatchWidth:"wide",parsePatterns:UXe,defaultParseWidth:"any"}),day:se({matchPatterns:BXe,defaultMatchWidth:"wide",parsePatterns:WXe,defaultParseWidth:"any"}),dayPeriod:se({matchPatterns:zXe,defaultMatchWidth:"any",parsePatterns:qXe,defaultParseWidth:"any"})},VXe={code:"el",formatDistance:yXe,formatLong:EXe,formatRelative:CXe,localize:NXe,match:HXe,options:{weekStartsOn:1,firstWeekContainsDate:4}};const GXe=Object.freeze(Object.defineProperty({__proto__:null,default:VXe},Symbol.toStringTag,{value:"Module"})),YXe=jt(GXe);var KXe={full:"EEEE, d MMMM yyyy",long:"d MMMM yyyy",medium:"d MMM yyyy",short:"dd/MM/yyyy"},XXe={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},QXe={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},JXe={date:Ne({formats:KXe,defaultWidth:"full"}),time:Ne({formats:XXe,defaultWidth:"full"}),dateTime:Ne({formats:QXe,defaultWidth:"full"})},ZXe={code:"en-AU",formatDistance:y4,formatLong:JXe,formatRelative:Q_,localize:J_,match:Z_,options:{weekStartsOn:1,firstWeekContainsDate:4}};const eQe=Object.freeze(Object.defineProperty({__proto__:null,default:ZXe},Symbol.toStringTag,{value:"Module"})),tQe=jt(eQe);var nQe={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"a second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"a minute",other:"{{count}} minutes"},aboutXHours:{one:"about an hour",other:"about {{count}} hours"},xHours:{one:"an hour",other:"{{count}} hours"},xDays:{one:"a day",other:"{{count}} days"},aboutXWeeks:{one:"about a week",other:"about {{count}} weeks"},xWeeks:{one:"a week",other:"{{count}} weeks"},aboutXMonths:{one:"about a month",other:"about {{count}} months"},xMonths:{one:"a month",other:"{{count}} months"},aboutXYears:{one:"about a year",other:"about {{count}} years"},xYears:{one:"a year",other:"{{count}} years"},overXYears:{one:"over a year",other:"over {{count}} years"},almostXYears:{one:"almost a year",other:"almost {{count}} years"}},rQe=function(t,n,r){var a,i=nQe[t];return typeof i=="string"?a=i:n===1?a=i.one:a=i.other.replace("{{count}}",n.toString()),r!=null&&r.addSuffix?r.comparison&&r.comparison>0?"in "+a:a+" ago":a},aQe={full:"EEEE, MMMM do, yyyy",long:"MMMM do, yyyy",medium:"MMM d, yyyy",short:"yyyy-MM-dd"},iQe={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},oQe={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},sQe={date:Ne({formats:aQe,defaultWidth:"full"}),time:Ne({formats:iQe,defaultWidth:"full"}),dateTime:Ne({formats:oQe,defaultWidth:"full"})},lQe={code:"en-CA",formatDistance:rQe,formatLong:sQe,formatRelative:Q_,localize:J_,match:Z_,options:{weekStartsOn:0,firstWeekContainsDate:1}};const uQe=Object.freeze(Object.defineProperty({__proto__:null,default:lQe},Symbol.toStringTag,{value:"Module"})),cQe=jt(uQe);var dQe={full:"EEEE, d MMMM yyyy",long:"d MMMM yyyy",medium:"d MMM yyyy",short:"dd/MM/yyyy"},fQe={full:"HH:mm:ss zzzz",long:"HH:mm:ss z",medium:"HH:mm:ss",short:"HH:mm"},pQe={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},hQe={date:Ne({formats:dQe,defaultWidth:"full"}),time:Ne({formats:fQe,defaultWidth:"full"}),dateTime:Ne({formats:pQe,defaultWidth:"full"})},mQe={code:"en-GB",formatDistance:y4,formatLong:hQe,formatRelative:Q_,localize:J_,match:Z_,options:{weekStartsOn:1,firstWeekContainsDate:4}};const gQe=Object.freeze(Object.defineProperty({__proto__:null,default:mQe},Symbol.toStringTag,{value:"Module"})),vQe=jt(gQe);var yQe={lessThanXSeconds:{one:"malpli ol sekundo",other:"malpli ol {{count}} sekundoj"},xSeconds:{one:"1 sekundo",other:"{{count}} sekundoj"},halfAMinute:"duonminuto",lessThanXMinutes:{one:"malpli ol minuto",other:"malpli ol {{count}} minutoj"},xMinutes:{one:"1 minuto",other:"{{count}} minutoj"},aboutXHours:{one:"proksimume 1 horo",other:"proksimume {{count}} horoj"},xHours:{one:"1 horo",other:"{{count}} horoj"},xDays:{one:"1 tago",other:"{{count}} tagoj"},aboutXMonths:{one:"proksimume 1 monato",other:"proksimume {{count}} monatoj"},xWeeks:{one:"1 semajno",other:"{{count}} semajnoj"},aboutXWeeks:{one:"proksimume 1 semajno",other:"proksimume {{count}} semajnoj"},xMonths:{one:"1 monato",other:"{{count}} monatoj"},aboutXYears:{one:"proksimume 1 jaro",other:"proksimume {{count}} jaroj"},xYears:{one:"1 jaro",other:"{{count}} jaroj"},overXYears:{one:"pli ol 1 jaro",other:"pli ol {{count}} jaroj"},almostXYears:{one:"preskaŭ 1 jaro",other:"preskaŭ {{count}} jaroj"}},bQe=function(t,n,r){var a,i=yQe[t];return typeof i=="string"?a=i:n===1?a=i.one:a=i.other.replace("{{count}}",String(n)),r!=null&&r.addSuffix?r!=null&&r.comparison&&r.comparison>0?"post "+a:"antaŭ "+a:a},wQe={full:"EEEE, do 'de' MMMM y",long:"y-MMMM-dd",medium:"y-MMM-dd",short:"yyyy-MM-dd"},SQe={full:"Ho 'horo kaj' m:ss zzzz",long:"HH:mm:ss z",medium:"HH:mm:ss",short:"HH:mm"},EQe={any:"{{date}} {{time}}"},TQe={date:Ne({formats:wQe,defaultWidth:"full"}),time:Ne({formats:SQe,defaultWidth:"full"}),dateTime:Ne({formats:EQe,defaultWidth:"any"})},CQe={lastWeek:"'pasinta' eeee 'je' p",yesterday:"'hieraŭ je' p",today:"'hodiaŭ je' p",tomorrow:"'morgaŭ je' p",nextWeek:"eeee 'je' p",other:"P"},kQe=function(t,n,r,a){return CQe[t]},xQe={narrow:["aK","pK"],abbreviated:["a.K.E.","p.K.E."],wide:["antaŭ Komuna Erao","Komuna Erao"]},_Qe={narrow:["1","2","3","4"],abbreviated:["K1","K2","K3","K4"],wide:["1-a kvaronjaro","2-a kvaronjaro","3-a kvaronjaro","4-a kvaronjaro"]},OQe={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["jan","feb","mar","apr","maj","jun","jul","aŭg","sep","okt","nov","dec"],wide:["januaro","februaro","marto","aprilo","majo","junio","julio","aŭgusto","septembro","oktobro","novembro","decembro"]},RQe={narrow:["D","L","M","M","Ĵ","V","S"],short:["di","lu","ma","me","ĵa","ve","sa"],abbreviated:["dim","lun","mar","mer","ĵaŭ","ven","sab"],wide:["dimanĉo","lundo","mardo","merkredo","ĵaŭdo","vendredo","sabato"]},PQe={narrow:{am:"a",pm:"p",midnight:"noktomezo",noon:"tagmezo",morning:"matene",afternoon:"posttagmeze",evening:"vespere",night:"nokte"},abbreviated:{am:"a.t.m.",pm:"p.t.m.",midnight:"noktomezo",noon:"tagmezo",morning:"matene",afternoon:"posttagmeze",evening:"vespere",night:"nokte"},wide:{am:"antaŭtagmeze",pm:"posttagmeze",midnight:"noktomezo",noon:"tagmezo",morning:"matene",afternoon:"posttagmeze",evening:"vespere",night:"nokte"}},AQe=function(t){var n=Number(t);return n+"-a"},NQe={ordinalNumber:AQe,era:oe({values:xQe,defaultWidth:"wide"}),quarter:oe({values:_Qe,defaultWidth:"wide",argumentCallback:function(t){return Number(t)-1}}),month:oe({values:OQe,defaultWidth:"wide"}),day:oe({values:RQe,defaultWidth:"wide"}),dayPeriod:oe({values:PQe,defaultWidth:"wide"})},MQe=/^(\d+)(-?a)?/i,IQe=/\d+/i,DQe={narrow:/^([ap]k)/i,abbreviated:/^([ap]\.?\s?k\.?\s?e\.?)/i,wide:/^((antaǔ |post )?komuna erao)/i},$Qe={any:[/^a/i,/^[kp]/i]},LQe={narrow:/^[1234]/i,abbreviated:/^k[1234]/i,wide:/^[1234](-?a)? kvaronjaro/i},FQe={any:[/1/i,/2/i,/3/i,/4/i]},jQe={narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|maj|jun|jul|a(ŭ|ux|uh|u)g|sep|okt|nov|dec)/i,wide:/^(januaro|februaro|marto|aprilo|majo|junio|julio|a(ŭ|ux|uh|u)gusto|septembro|oktobro|novembro|decembro)/i},UQe={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^maj/i,/^jun/i,/^jul/i,/^a(u|ŭ)/i,/^s/i,/^o/i,/^n/i,/^d/i]},BQe={narrow:/^[dlmĵjvs]/i,short:/^(di|lu|ma|me|(ĵ|jx|jh|j)a|ve|sa)/i,abbreviated:/^(dim|lun|mar|mer|(ĵ|jx|jh|j)a(ŭ|ux|uh|u)|ven|sab)/i,wide:/^(diman(ĉ|cx|ch|c)o|lundo|mardo|merkredo|(ĵ|jx|jh|j)a(ŭ|ux|uh|u)do|vendredo|sabato)/i},WQe={narrow:[/^d/i,/^l/i,/^m/i,/^m/i,/^(j|ĵ)/i,/^v/i,/^s/i],any:[/^d/i,/^l/i,/^ma/i,/^me/i,/^(j|ĵ)/i,/^v/i,/^s/i]},zQe={narrow:/^([ap]|(posttagmez|noktomez|tagmez|maten|vesper|nokt)[eo])/i,abbreviated:/^([ap][.\s]?t[.\s]?m[.\s]?|(posttagmez|noktomez|tagmez|maten|vesper|nokt)[eo])/i,wide:/^(anta(ŭ|ux)tagmez|posttagmez|noktomez|tagmez|maten|vesper|nokt)[eo]/i},qQe={any:{am:/^a/i,pm:/^p/i,midnight:/^noktom/i,noon:/^t/i,morning:/^m/i,afternoon:/^posttagmeze/i,evening:/^v/i,night:/^n/i}},HQe={ordinalNumber:Xt({matchPattern:MQe,parsePattern:IQe,valueCallback:function(t){return parseInt(t,10)}}),era:se({matchPatterns:DQe,defaultMatchWidth:"wide",parsePatterns:$Qe,defaultParseWidth:"any"}),quarter:se({matchPatterns:LQe,defaultMatchWidth:"wide",parsePatterns:FQe,defaultParseWidth:"any",valueCallback:function(t){return t+1}}),month:se({matchPatterns:jQe,defaultMatchWidth:"wide",parsePatterns:UQe,defaultParseWidth:"any"}),day:se({matchPatterns:BQe,defaultMatchWidth:"wide",parsePatterns:WQe,defaultParseWidth:"any"}),dayPeriod:se({matchPatterns:zQe,defaultMatchWidth:"wide",parsePatterns:qQe,defaultParseWidth:"any"})},VQe={code:"eo",formatDistance:bQe,formatLong:TQe,formatRelative:kQe,localize:NQe,match:HQe,options:{weekStartsOn:1,firstWeekContainsDate:4}};const GQe=Object.freeze(Object.defineProperty({__proto__:null,default:VQe},Symbol.toStringTag,{value:"Module"})),YQe=jt(GQe);var KQe={lessThanXSeconds:{one:"menos de un segundo",other:"menos de {{count}} segundos"},xSeconds:{one:"1 segundo",other:"{{count}} segundos"},halfAMinute:"medio minuto",lessThanXMinutes:{one:"menos de un minuto",other:"menos de {{count}} minutos"},xMinutes:{one:"1 minuto",other:"{{count}} minutos"},aboutXHours:{one:"alrededor de 1 hora",other:"alrededor de {{count}} horas"},xHours:{one:"1 hora",other:"{{count}} horas"},xDays:{one:"1 día",other:"{{count}} días"},aboutXWeeks:{one:"alrededor de 1 semana",other:"alrededor de {{count}} semanas"},xWeeks:{one:"1 semana",other:"{{count}} semanas"},aboutXMonths:{one:"alrededor de 1 mes",other:"alrededor de {{count}} meses"},xMonths:{one:"1 mes",other:"{{count}} meses"},aboutXYears:{one:"alrededor de 1 año",other:"alrededor de {{count}} años"},xYears:{one:"1 año",other:"{{count}} años"},overXYears:{one:"más de 1 año",other:"más de {{count}} años"},almostXYears:{one:"casi 1 año",other:"casi {{count}} años"}},XQe=function(t,n,r){var a,i=KQe[t];return typeof i=="string"?a=i:n===1?a=i.one:a=i.other.replace("{{count}}",n.toString()),r!=null&&r.addSuffix?r.comparison&&r.comparison>0?"en "+a:"hace "+a:a},QQe={full:"EEEE, d 'de' MMMM 'de' y",long:"d 'de' MMMM 'de' y",medium:"d MMM y",short:"dd/MM/y"},JQe={full:"HH:mm:ss zzzz",long:"HH:mm:ss z",medium:"HH:mm:ss",short:"HH:mm"},ZQe={full:"{{date}} 'a las' {{time}}",long:"{{date}} 'a las' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},eJe={date:Ne({formats:QQe,defaultWidth:"full"}),time:Ne({formats:JQe,defaultWidth:"full"}),dateTime:Ne({formats:ZQe,defaultWidth:"full"})},tJe={lastWeek:"'el' eeee 'pasado a la' p",yesterday:"'ayer a la' p",today:"'hoy a la' p",tomorrow:"'mañana a la' p",nextWeek:"eeee 'a la' p",other:"P"},nJe={lastWeek:"'el' eeee 'pasado a las' p",yesterday:"'ayer a las' p",today:"'hoy a las' p",tomorrow:"'mañana a las' p",nextWeek:"eeee 'a las' p",other:"P"},rJe=function(t,n,r,a){return n.getUTCHours()!==1?nJe[t]:tJe[t]},aJe={narrow:["AC","DC"],abbreviated:["AC","DC"],wide:["antes de cristo","después de cristo"]},iJe={narrow:["1","2","3","4"],abbreviated:["T1","T2","T3","T4"],wide:["1º trimestre","2º trimestre","3º trimestre","4º trimestre"]},oJe={narrow:["e","f","m","a","m","j","j","a","s","o","n","d"],abbreviated:["ene","feb","mar","abr","may","jun","jul","ago","sep","oct","nov","dic"],wide:["enero","febrero","marzo","abril","mayo","junio","julio","agosto","septiembre","octubre","noviembre","diciembre"]},sJe={narrow:["d","l","m","m","j","v","s"],short:["do","lu","ma","mi","ju","vi","sá"],abbreviated:["dom","lun","mar","mié","jue","vie","sáb"],wide:["domingo","lunes","martes","miércoles","jueves","viernes","sábado"]},lJe={narrow:{am:"a",pm:"p",midnight:"mn",noon:"md",morning:"mañana",afternoon:"tarde",evening:"tarde",night:"noche"},abbreviated:{am:"AM",pm:"PM",midnight:"medianoche",noon:"mediodia",morning:"mañana",afternoon:"tarde",evening:"tarde",night:"noche"},wide:{am:"a.m.",pm:"p.m.",midnight:"medianoche",noon:"mediodia",morning:"mañana",afternoon:"tarde",evening:"tarde",night:"noche"}},uJe={narrow:{am:"a",pm:"p",midnight:"mn",noon:"md",morning:"de la mañana",afternoon:"de la tarde",evening:"de la tarde",night:"de la noche"},abbreviated:{am:"AM",pm:"PM",midnight:"medianoche",noon:"mediodia",morning:"de la mañana",afternoon:"de la tarde",evening:"de la tarde",night:"de la noche"},wide:{am:"a.m.",pm:"p.m.",midnight:"medianoche",noon:"mediodia",morning:"de la mañana",afternoon:"de la tarde",evening:"de la tarde",night:"de la noche"}},cJe=function(t,n){var r=Number(t);return r+"º"},dJe={ordinalNumber:cJe,era:oe({values:aJe,defaultWidth:"wide"}),quarter:oe({values:iJe,defaultWidth:"wide",argumentCallback:function(t){return Number(t)-1}}),month:oe({values:oJe,defaultWidth:"wide"}),day:oe({values:sJe,defaultWidth:"wide"}),dayPeriod:oe({values:lJe,defaultWidth:"wide",formattingValues:uJe,defaultFormattingWidth:"wide"})},fJe=/^(\d+)(º)?/i,pJe=/\d+/i,hJe={narrow:/^(ac|dc|a|d)/i,abbreviated:/^(a\.?\s?c\.?|a\.?\s?e\.?\s?c\.?|d\.?\s?c\.?|e\.?\s?c\.?)/i,wide:/^(antes de cristo|antes de la era com[uú]n|despu[eé]s de cristo|era com[uú]n)/i},mJe={any:[/^ac/i,/^dc/i],wide:[/^(antes de cristo|antes de la era com[uú]n)/i,/^(despu[eé]s de cristo|era com[uú]n)/i]},gJe={narrow:/^[1234]/i,abbreviated:/^T[1234]/i,wide:/^[1234](º)? trimestre/i},vJe={any:[/1/i,/2/i,/3/i,/4/i]},yJe={narrow:/^[efmajsond]/i,abbreviated:/^(ene|feb|mar|abr|may|jun|jul|ago|sep|oct|nov|dic)/i,wide:/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre)/i},bJe={narrow:[/^e/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^en/i,/^feb/i,/^mar/i,/^abr/i,/^may/i,/^jun/i,/^jul/i,/^ago/i,/^sep/i,/^oct/i,/^nov/i,/^dic/i]},wJe={narrow:/^[dlmjvs]/i,short:/^(do|lu|ma|mi|ju|vi|s[áa])/i,abbreviated:/^(dom|lun|mar|mi[ée]|jue|vie|s[áa]b)/i,wide:/^(domingo|lunes|martes|mi[ée]rcoles|jueves|viernes|s[áa]bado)/i},SJe={narrow:[/^d/i,/^l/i,/^m/i,/^m/i,/^j/i,/^v/i,/^s/i],any:[/^do/i,/^lu/i,/^ma/i,/^mi/i,/^ju/i,/^vi/i,/^sa/i]},EJe={narrow:/^(a|p|mn|md|(de la|a las) (mañana|tarde|noche))/i,any:/^([ap]\.?\s?m\.?|medianoche|mediodia|(de la|a las) (mañana|tarde|noche))/i},TJe={any:{am:/^a/i,pm:/^p/i,midnight:/^mn/i,noon:/^md/i,morning:/mañana/i,afternoon:/tarde/i,evening:/tarde/i,night:/noche/i}},CJe={ordinalNumber:Xt({matchPattern:fJe,parsePattern:pJe,valueCallback:function(t){return parseInt(t,10)}}),era:se({matchPatterns:hJe,defaultMatchWidth:"wide",parsePatterns:mJe,defaultParseWidth:"any"}),quarter:se({matchPatterns:gJe,defaultMatchWidth:"wide",parsePatterns:vJe,defaultParseWidth:"any",valueCallback:function(t){return t+1}}),month:se({matchPatterns:yJe,defaultMatchWidth:"wide",parsePatterns:bJe,defaultParseWidth:"any"}),day:se({matchPatterns:wJe,defaultMatchWidth:"wide",parsePatterns:SJe,defaultParseWidth:"any"}),dayPeriod:se({matchPatterns:EJe,defaultMatchWidth:"any",parsePatterns:TJe,defaultParseWidth:"any"})},kJe={code:"es",formatDistance:XQe,formatLong:eJe,formatRelative:rJe,localize:dJe,match:CJe,options:{weekStartsOn:1,firstWeekContainsDate:1}};const xJe=Object.freeze(Object.defineProperty({__proto__:null,default:kJe},Symbol.toStringTag,{value:"Module"})),_Je=jt(xJe);var DG={lessThanXSeconds:{standalone:{one:"vähem kui üks sekund",other:"vähem kui {{count}} sekundit"},withPreposition:{one:"vähem kui ühe sekundi",other:"vähem kui {{count}} sekundi"}},xSeconds:{standalone:{one:"üks sekund",other:"{{count}} sekundit"},withPreposition:{one:"ühe sekundi",other:"{{count}} sekundi"}},halfAMinute:{standalone:"pool minutit",withPreposition:"poole minuti"},lessThanXMinutes:{standalone:{one:"vähem kui üks minut",other:"vähem kui {{count}} minutit"},withPreposition:{one:"vähem kui ühe minuti",other:"vähem kui {{count}} minuti"}},xMinutes:{standalone:{one:"üks minut",other:"{{count}} minutit"},withPreposition:{one:"ühe minuti",other:"{{count}} minuti"}},aboutXHours:{standalone:{one:"umbes üks tund",other:"umbes {{count}} tundi"},withPreposition:{one:"umbes ühe tunni",other:"umbes {{count}} tunni"}},xHours:{standalone:{one:"üks tund",other:"{{count}} tundi"},withPreposition:{one:"ühe tunni",other:"{{count}} tunni"}},xDays:{standalone:{one:"üks päev",other:"{{count}} päeva"},withPreposition:{one:"ühe päeva",other:"{{count}} päeva"}},aboutXWeeks:{standalone:{one:"umbes üks nädal",other:"umbes {{count}} nädalat"},withPreposition:{one:"umbes ühe nädala",other:"umbes {{count}} nädala"}},xWeeks:{standalone:{one:"üks nädal",other:"{{count}} nädalat"},withPreposition:{one:"ühe nädala",other:"{{count}} nädala"}},aboutXMonths:{standalone:{one:"umbes üks kuu",other:"umbes {{count}} kuud"},withPreposition:{one:"umbes ühe kuu",other:"umbes {{count}} kuu"}},xMonths:{standalone:{one:"üks kuu",other:"{{count}} kuud"},withPreposition:{one:"ühe kuu",other:"{{count}} kuu"}},aboutXYears:{standalone:{one:"umbes üks aasta",other:"umbes {{count}} aastat"},withPreposition:{one:"umbes ühe aasta",other:"umbes {{count}} aasta"}},xYears:{standalone:{one:"üks aasta",other:"{{count}} aastat"},withPreposition:{one:"ühe aasta",other:"{{count}} aasta"}},overXYears:{standalone:{one:"rohkem kui üks aasta",other:"rohkem kui {{count}} aastat"},withPreposition:{one:"rohkem kui ühe aasta",other:"rohkem kui {{count}} aasta"}},almostXYears:{standalone:{one:"peaaegu üks aasta",other:"peaaegu {{count}} aastat"},withPreposition:{one:"peaaegu ühe aasta",other:"peaaegu {{count}} aasta"}}},OJe=function(t,n,r){var a=r!=null&&r.addSuffix?DG[t].withPreposition:DG[t].standalone,i;return typeof a=="string"?i=a:n===1?i=a.one:i=a.other.replace("{{count}}",String(n)),r!=null&&r.addSuffix?r.comparison&&r.comparison>0?i+" pärast":i+" eest":i},RJe={full:"EEEE, d. MMMM y",long:"d. MMMM y",medium:"d. MMM y",short:"dd.MM.y"},PJe={full:"HH:mm:ss zzzz",long:"HH:mm:ss z",medium:"HH:mm:ss",short:"HH:mm"},AJe={full:"{{date}} 'kell' {{time}}",long:"{{date}} 'kell' {{time}}",medium:"{{date}}. {{time}}",short:"{{date}}. {{time}}"},NJe={date:Ne({formats:RJe,defaultWidth:"full"}),time:Ne({formats:PJe,defaultWidth:"full"}),dateTime:Ne({formats:AJe,defaultWidth:"full"})},MJe={lastWeek:"'eelmine' eeee 'kell' p",yesterday:"'eile kell' p",today:"'täna kell' p",tomorrow:"'homme kell' p",nextWeek:"'järgmine' eeee 'kell' p",other:"P"},IJe=function(t,n,r,a){return MJe[t]},DJe={narrow:["e.m.a","m.a.j"],abbreviated:["e.m.a","m.a.j"],wide:["enne meie ajaarvamist","meie ajaarvamise järgi"]},$Je={narrow:["1","2","3","4"],abbreviated:["K1","K2","K3","K4"],wide:["1. kvartal","2. kvartal","3. kvartal","4. kvartal"]},$G={narrow:["J","V","M","A","M","J","J","A","S","O","N","D"],abbreviated:["jaan","veebr","märts","apr","mai","juuni","juuli","aug","sept","okt","nov","dets"],wide:["jaanuar","veebruar","märts","aprill","mai","juuni","juuli","august","september","oktoober","november","detsember"]},LG={narrow:["P","E","T","K","N","R","L"],short:["P","E","T","K","N","R","L"],abbreviated:["pühap.","esmasp.","teisip.","kolmap.","neljap.","reede.","laup."],wide:["pühapäev","esmaspäev","teisipäev","kolmapäev","neljapäev","reede","laupäev"]},LJe={narrow:{am:"AM",pm:"PM",midnight:"kesköö",noon:"keskpäev",morning:"hommik",afternoon:"pärastlõuna",evening:"õhtu",night:"öö"},abbreviated:{am:"AM",pm:"PM",midnight:"kesköö",noon:"keskpäev",morning:"hommik",afternoon:"pärastlõuna",evening:"õhtu",night:"öö"},wide:{am:"AM",pm:"PM",midnight:"kesköö",noon:"keskpäev",morning:"hommik",afternoon:"pärastlõuna",evening:"õhtu",night:"öö"}},FJe={narrow:{am:"AM",pm:"PM",midnight:"keskööl",noon:"keskpäeval",morning:"hommikul",afternoon:"pärastlõunal",evening:"õhtul",night:"öösel"},abbreviated:{am:"AM",pm:"PM",midnight:"keskööl",noon:"keskpäeval",morning:"hommikul",afternoon:"pärastlõunal",evening:"õhtul",night:"öösel"},wide:{am:"AM",pm:"PM",midnight:"keskööl",noon:"keskpäeval",morning:"hommikul",afternoon:"pärastlõunal",evening:"õhtul",night:"öösel"}},jJe=function(t,n){var r=Number(t);return r+"."},UJe={ordinalNumber:jJe,era:oe({values:DJe,defaultWidth:"wide"}),quarter:oe({values:$Je,defaultWidth:"wide",argumentCallback:function(t){return t-1}}),month:oe({values:$G,defaultWidth:"wide",formattingValues:$G,defaultFormattingWidth:"wide"}),day:oe({values:LG,defaultWidth:"wide",formattingValues:LG,defaultFormattingWidth:"wide"}),dayPeriod:oe({values:LJe,defaultWidth:"wide",formattingValues:FJe,defaultFormattingWidth:"wide"})},BJe=/^\d+\./i,WJe=/\d+/i,zJe={narrow:/^(e\.m\.a|m\.a\.j|eKr|pKr)/i,abbreviated:/^(e\.m\.a|m\.a\.j|eKr|pKr)/i,wide:/^(enne meie ajaarvamist|meie ajaarvamise järgi|enne Kristust|pärast Kristust)/i},qJe={any:[/^e/i,/^(m|p)/i]},HJe={narrow:/^[1234]/i,abbreviated:/^K[1234]/i,wide:/^[1234](\.)? kvartal/i},VJe={any:[/1/i,/2/i,/3/i,/4/i]},GJe={narrow:/^[jvmasond]/i,abbreviated:/^(jaan|veebr|märts|apr|mai|juuni|juuli|aug|sept|okt|nov|dets)/i,wide:/^(jaanuar|veebruar|märts|aprill|mai|juuni|juuli|august|september|oktoober|november|detsember)/i},YJe={narrow:[/^j/i,/^v/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^v/i,/^mär/i,/^ap/i,/^mai/i,/^juun/i,/^juul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},KJe={narrow:/^[petknrl]/i,short:/^[petknrl]/i,abbreviated:/^(püh?|esm?|tei?|kolm?|nel?|ree?|laup?)\.?/i,wide:/^(pühapäev|esmaspäev|teisipäev|kolmapäev|neljapäev|reede|laupäev)/i},XJe={any:[/^p/i,/^e/i,/^t/i,/^k/i,/^n/i,/^r/i,/^l/i]},QJe={any:/^(am|pm|keskööl?|keskpäev(al)?|hommik(ul)?|pärastlõunal?|õhtul?|öö(sel)?)/i},JJe={any:{am:/^a/i,pm:/^p/i,midnight:/^keskö/i,noon:/^keskp/i,morning:/hommik/i,afternoon:/pärastlõuna/i,evening:/õhtu/i,night:/öö/i}},ZJe={ordinalNumber:Xt({matchPattern:BJe,parsePattern:WJe,valueCallback:function(t){return parseInt(t,10)}}),era:se({matchPatterns:zJe,defaultMatchWidth:"wide",parsePatterns:qJe,defaultParseWidth:"any"}),quarter:se({matchPatterns:HJe,defaultMatchWidth:"wide",parsePatterns:VJe,defaultParseWidth:"any",valueCallback:function(t){return t+1}}),month:se({matchPatterns:GJe,defaultMatchWidth:"wide",parsePatterns:YJe,defaultParseWidth:"any"}),day:se({matchPatterns:KJe,defaultMatchWidth:"wide",parsePatterns:XJe,defaultParseWidth:"any"}),dayPeriod:se({matchPatterns:QJe,defaultMatchWidth:"any",parsePatterns:JJe,defaultParseWidth:"any"})},eZe={code:"et",formatDistance:OJe,formatLong:NJe,formatRelative:IJe,localize:UJe,match:ZJe,options:{weekStartsOn:1,firstWeekContainsDate:4}};const tZe=Object.freeze(Object.defineProperty({__proto__:null,default:eZe},Symbol.toStringTag,{value:"Module"})),nZe=jt(tZe);var rZe={lessThanXSeconds:{one:"کمتر از یک ثانیه",other:"کمتر از {{count}} ثانیه"},xSeconds:{one:"1 ثانیه",other:"{{count}} ثانیه"},halfAMinute:"نیم دقیقه",lessThanXMinutes:{one:"کمتر از یک دقیقه",other:"کمتر از {{count}} دقیقه"},xMinutes:{one:"1 دقیقه",other:"{{count}} دقیقه"},aboutXHours:{one:"حدود 1 ساعت",other:"حدود {{count}} ساعت"},xHours:{one:"1 ساعت",other:"{{count}} ساعت"},xDays:{one:"1 روز",other:"{{count}} روز"},aboutXWeeks:{one:"حدود 1 هفته",other:"حدود {{count}} هفته"},xWeeks:{one:"1 هفته",other:"{{count}} هفته"},aboutXMonths:{one:"حدود 1 ماه",other:"حدود {{count}} ماه"},xMonths:{one:"1 ماه",other:"{{count}} ماه"},aboutXYears:{one:"حدود 1 سال",other:"حدود {{count}} سال"},xYears:{one:"1 سال",other:"{{count}} سال"},overXYears:{one:"بیشتر از 1 سال",other:"بیشتر از {{count}} سال"},almostXYears:{one:"نزدیک 1 سال",other:"نزدیک {{count}} سال"}},aZe=function(t,n,r){var a,i=rZe[t];return typeof i=="string"?a=i:n===1?a=i.one:a=i.other.replace("{{count}}",String(n)),r!=null&&r.addSuffix?r.comparison&&r.comparison>0?"در "+a:a+" قبل":a},iZe={full:"EEEE do MMMM y",long:"do MMMM y",medium:"d MMM y",short:"yyyy/MM/dd"},oZe={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},sZe={full:"{{date}} 'در' {{time}}",long:"{{date}} 'در' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},lZe={date:Ne({formats:iZe,defaultWidth:"full"}),time:Ne({formats:oZe,defaultWidth:"full"}),dateTime:Ne({formats:sZe,defaultWidth:"full"})},uZe={lastWeek:"eeee 'گذشته در' p",yesterday:"'دیروز در' p",today:"'امروز در' p",tomorrow:"'فردا در' p",nextWeek:"eeee 'در' p",other:"P"},cZe=function(t,n,r,a){return uZe[t]},dZe={narrow:["ق","ب"],abbreviated:["ق.م.","ب.م."],wide:["قبل از میلاد","بعد از میلاد"]},fZe={narrow:["1","2","3","4"],abbreviated:["س‌م1","س‌م2","س‌م3","س‌م4"],wide:["سه‌ماهه 1","سه‌ماهه 2","سه‌ماهه 3","سه‌ماهه 4"]},pZe={narrow:["ژ","ف","م","آ","م","ج","ج","آ","س","ا","ن","د"],abbreviated:["ژانـ","فور","مارس","آپر","می","جون","جولـ","آگو","سپتـ","اکتـ","نوامـ","دسامـ"],wide:["ژانویه","فوریه","مارس","آپریل","می","جون","جولای","آگوست","سپتامبر","اکتبر","نوامبر","دسامبر"]},hZe={narrow:["ی","د","س","چ","پ","ج","ش"],short:["1ش","2ش","3ش","4ش","5ش","ج","ش"],abbreviated:["یکشنبه","دوشنبه","سه‌شنبه","چهارشنبه","پنجشنبه","جمعه","شنبه"],wide:["یکشنبه","دوشنبه","سه‌شنبه","چهارشنبه","پنجشنبه","جمعه","شنبه"]},mZe={narrow:{am:"ق",pm:"ب",midnight:"ن",noon:"ظ",morning:"ص",afternoon:"ب.ظ.",evening:"ع",night:"ش"},abbreviated:{am:"ق.ظ.",pm:"ب.ظ.",midnight:"نیمه‌شب",noon:"ظهر",morning:"صبح",afternoon:"بعدازظهر",evening:"عصر",night:"شب"},wide:{am:"قبل‌ازظهر",pm:"بعدازظهر",midnight:"نیمه‌شب",noon:"ظهر",morning:"صبح",afternoon:"بعدازظهر",evening:"عصر",night:"شب"}},gZe={narrow:{am:"ق",pm:"ب",midnight:"ن",noon:"ظ",morning:"ص",afternoon:"ب.ظ.",evening:"ع",night:"ش"},abbreviated:{am:"ق.ظ.",pm:"ب.ظ.",midnight:"نیمه‌شب",noon:"ظهر",morning:"صبح",afternoon:"بعدازظهر",evening:"عصر",night:"شب"},wide:{am:"قبل‌ازظهر",pm:"بعدازظهر",midnight:"نیمه‌شب",noon:"ظهر",morning:"صبح",afternoon:"بعدازظهر",evening:"عصر",night:"شب"}},vZe=function(t,n){return String(t)},yZe={ordinalNumber:vZe,era:oe({values:dZe,defaultWidth:"wide"}),quarter:oe({values:fZe,defaultWidth:"wide",argumentCallback:function(t){return t-1}}),month:oe({values:pZe,defaultWidth:"wide"}),day:oe({values:hZe,defaultWidth:"wide"}),dayPeriod:oe({values:mZe,defaultWidth:"wide",formattingValues:gZe,defaultFormattingWidth:"wide"})},bZe=/^(\d+)(th|st|nd|rd)?/i,wZe=/\d+/i,SZe={narrow:/^(ق|ب)/i,abbreviated:/^(ق\.?\s?م\.?|ق\.?\s?د\.?\s?م\.?|م\.?\s?|د\.?\s?م\.?)/i,wide:/^(قبل از میلاد|قبل از دوران مشترک|میلادی|دوران مشترک|بعد از میلاد)/i},EZe={any:[/^قبل/i,/^بعد/i]},TZe={narrow:/^[1234]/i,abbreviated:/^س‌م[1234]/i,wide:/^سه‌ماهه [1234]/i},CZe={any:[/1/i,/2/i,/3/i,/4/i]},kZe={narrow:/^[جژفمآاماسند]/i,abbreviated:/^(جنو|ژانـ|ژانویه|فوریه|فور|مارس|آوریل|آپر|مه|می|ژوئن|جون|جول|جولـ|ژوئیه|اوت|آگو|سپتمبر|سپتامبر|اکتبر|اکتوبر|نوامبر|نوامـ|دسامبر|دسامـ|دسم)/i,wide:/^(ژانویه|جنوری|فبروری|فوریه|مارچ|مارس|آپریل|اپریل|ایپریل|آوریل|مه|می|ژوئن|جون|جولای|ژوئیه|آگست|اگست|آگوست|اوت|سپتمبر|سپتامبر|اکتبر|اکتوبر|نوامبر|نومبر|دسامبر|دسمبر)/i},xZe={narrow:[/^(ژ|ج)/i,/^ف/i,/^م/i,/^(آ|ا)/i,/^م/i,/^(ژ|ج)/i,/^(ج|ژ)/i,/^(آ|ا)/i,/^س/i,/^ا/i,/^ن/i,/^د/i],any:[/^ژا/i,/^ف/i,/^ما/i,/^آپ/i,/^(می|مه)/i,/^(ژوئن|جون)/i,/^(ژوئی|جول)/i,/^(اوت|آگ)/i,/^س/i,/^(اوک|اک)/i,/^ن/i,/^د/i]},_Ze={narrow:/^[شیدسچپج]/i,short:/^(ش|ج|1ش|2ش|3ش|4ش|5ش)/i,abbreviated:/^(یکشنبه|دوشنبه|سه‌شنبه|چهارشنبه|پنج‌شنبه|جمعه|شنبه)/i,wide:/^(یکشنبه|دوشنبه|سه‌شنبه|چهارشنبه|پنج‌شنبه|جمعه|شنبه)/i},OZe={narrow:[/^ی/i,/^دو/i,/^س/i,/^چ/i,/^پ/i,/^ج/i,/^ش/i],any:[/^(ی|1ش|یکشنبه)/i,/^(د|2ش|دوشنبه)/i,/^(س|3ش|سه‌شنبه)/i,/^(چ|4ش|چهارشنبه)/i,/^(پ|5ش|پنجشنبه)/i,/^(ج|جمعه)/i,/^(ش|شنبه)/i]},RZe={narrow:/^(ب|ق|ن|ظ|ص|ب.ظ.|ع|ش)/i,abbreviated:/^(ق.ظ.|ب.ظ.|نیمه‌شب|ظهر|صبح|بعدازظهر|عصر|شب)/i,wide:/^(قبل‌ازظهر|نیمه‌شب|ظهر|صبح|بعدازظهر|عصر|شب)/i},PZe={any:{am:/^(ق|ق.ظ.|قبل‌ازظهر)/i,pm:/^(ب|ب.ظ.|بعدازظهر)/i,midnight:/^(‌نیمه‌شب|ن)/i,noon:/^(ظ|ظهر)/i,morning:/(ص|صبح)/i,afternoon:/(ب|ب.ظ.|بعدازظهر)/i,evening:/(ع|عصر)/i,night:/(ش|شب)/i}},AZe={ordinalNumber:Xt({matchPattern:bZe,parsePattern:wZe,valueCallback:function(t){return parseInt(t,10)}}),era:se({matchPatterns:SZe,defaultMatchWidth:"wide",parsePatterns:EZe,defaultParseWidth:"any"}),quarter:se({matchPatterns:TZe,defaultMatchWidth:"wide",parsePatterns:CZe,defaultParseWidth:"any",valueCallback:function(t){return t+1}}),month:se({matchPatterns:kZe,defaultMatchWidth:"wide",parsePatterns:xZe,defaultParseWidth:"any"}),day:se({matchPatterns:_Ze,defaultMatchWidth:"wide",parsePatterns:OZe,defaultParseWidth:"any"}),dayPeriod:se({matchPatterns:RZe,defaultMatchWidth:"wide",parsePatterns:PZe,defaultParseWidth:"any"})},NZe={code:"fa-IR",formatDistance:aZe,formatLong:lZe,formatRelative:cZe,localize:yZe,match:AZe,options:{weekStartsOn:6,firstWeekContainsDate:1}};const MZe=Object.freeze(Object.defineProperty({__proto__:null,default:NZe},Symbol.toStringTag,{value:"Module"})),IZe=jt(MZe);function FG(e){return e.replace(/sekuntia?/,"sekunnin")}function jG(e){return e.replace(/minuuttia?/,"minuutin")}function UG(e){return e.replace(/tuntia?/,"tunnin")}function DZe(e){return e.replace(/päivää?/,"päivän")}function BG(e){return e.replace(/(viikko|viikkoa)/,"viikon")}function WG(e){return e.replace(/(kuukausi|kuukautta)/,"kuukauden")}function _k(e){return e.replace(/(vuosi|vuotta)/,"vuoden")}var $Ze={lessThanXSeconds:{one:"alle sekunti",other:"alle {{count}} sekuntia",futureTense:FG},xSeconds:{one:"sekunti",other:"{{count}} sekuntia",futureTense:FG},halfAMinute:{one:"puoli minuuttia",other:"puoli minuuttia",futureTense:function(t){return"puolen minuutin"}},lessThanXMinutes:{one:"alle minuutti",other:"alle {{count}} minuuttia",futureTense:jG},xMinutes:{one:"minuutti",other:"{{count}} minuuttia",futureTense:jG},aboutXHours:{one:"noin tunti",other:"noin {{count}} tuntia",futureTense:UG},xHours:{one:"tunti",other:"{{count}} tuntia",futureTense:UG},xDays:{one:"päivä",other:"{{count}} päivää",futureTense:DZe},aboutXWeeks:{one:"noin viikko",other:"noin {{count}} viikkoa",futureTense:BG},xWeeks:{one:"viikko",other:"{{count}} viikkoa",futureTense:BG},aboutXMonths:{one:"noin kuukausi",other:"noin {{count}} kuukautta",futureTense:WG},xMonths:{one:"kuukausi",other:"{{count}} kuukautta",futureTense:WG},aboutXYears:{one:"noin vuosi",other:"noin {{count}} vuotta",futureTense:_k},xYears:{one:"vuosi",other:"{{count}} vuotta",futureTense:_k},overXYears:{one:"yli vuosi",other:"yli {{count}} vuotta",futureTense:_k},almostXYears:{one:"lähes vuosi",other:"lähes {{count}} vuotta",futureTense:_k}},LZe=function(t,n,r){var a=$Ze[t],i=n===1?a.one:a.other.replace("{{count}}",String(n));return r!=null&&r.addSuffix?r.comparison&&r.comparison>0?a.futureTense(i)+" kuluttua":i+" sitten":i},FZe={full:"eeee d. MMMM y",long:"d. MMMM y",medium:"d. MMM y",short:"d.M.y"},jZe={full:"HH.mm.ss zzzz",long:"HH.mm.ss z",medium:"HH.mm.ss",short:"HH.mm"},UZe={full:"{{date}} 'klo' {{time}}",long:"{{date}} 'klo' {{time}}",medium:"{{date}} {{time}}",short:"{{date}} {{time}}"},BZe={date:Ne({formats:FZe,defaultWidth:"full"}),time:Ne({formats:jZe,defaultWidth:"full"}),dateTime:Ne({formats:UZe,defaultWidth:"full"})},WZe={lastWeek:"'viime' eeee 'klo' p",yesterday:"'eilen klo' p",today:"'tänään klo' p",tomorrow:"'huomenna klo' p",nextWeek:"'ensi' eeee 'klo' p",other:"P"},zZe=function(t,n,r,a){return WZe[t]},qZe={narrow:["eaa.","jaa."],abbreviated:["eaa.","jaa."],wide:["ennen ajanlaskun alkua","jälkeen ajanlaskun alun"]},HZe={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1. kvartaali","2. kvartaali","3. kvartaali","4. kvartaali"]},j3={narrow:["T","H","M","H","T","K","H","E","S","L","M","J"],abbreviated:["tammi","helmi","maalis","huhti","touko","kesä","heinä","elo","syys","loka","marras","joulu"],wide:["tammikuu","helmikuu","maaliskuu","huhtikuu","toukokuu","kesäkuu","heinäkuu","elokuu","syyskuu","lokakuu","marraskuu","joulukuu"]},VZe={narrow:j3.narrow,abbreviated:j3.abbreviated,wide:["tammikuuta","helmikuuta","maaliskuuta","huhtikuuta","toukokuuta","kesäkuuta","heinäkuuta","elokuuta","syyskuuta","lokakuuta","marraskuuta","joulukuuta"]},Jk={narrow:["S","M","T","K","T","P","L"],short:["su","ma","ti","ke","to","pe","la"],abbreviated:["sunn.","maan.","tiis.","kesk.","torst.","perj.","la"],wide:["sunnuntai","maanantai","tiistai","keskiviikko","torstai","perjantai","lauantai"]},GZe={narrow:Jk.narrow,short:Jk.short,abbreviated:Jk.abbreviated,wide:["sunnuntaina","maanantaina","tiistaina","keskiviikkona","torstaina","perjantaina","lauantaina"]},YZe={narrow:{am:"ap",pm:"ip",midnight:"keskiyö",noon:"keskipäivä",morning:"ap",afternoon:"ip",evening:"illalla",night:"yöllä"},abbreviated:{am:"ap",pm:"ip",midnight:"keskiyö",noon:"keskipäivä",morning:"ap",afternoon:"ip",evening:"illalla",night:"yöllä"},wide:{am:"ap",pm:"ip",midnight:"keskiyöllä",noon:"keskipäivällä",morning:"aamupäivällä",afternoon:"iltapäivällä",evening:"illalla",night:"yöllä"}},KZe=function(t,n){var r=Number(t);return r+"."},XZe={ordinalNumber:KZe,era:oe({values:qZe,defaultWidth:"wide"}),quarter:oe({values:HZe,defaultWidth:"wide",argumentCallback:function(t){return t-1}}),month:oe({values:j3,defaultWidth:"wide",formattingValues:VZe,defaultFormattingWidth:"wide"}),day:oe({values:Jk,defaultWidth:"wide",formattingValues:GZe,defaultFormattingWidth:"wide"}),dayPeriod:oe({values:YZe,defaultWidth:"wide"})},QZe=/^(\d+)(\.)/i,JZe=/\d+/i,ZZe={narrow:/^(e|j)/i,abbreviated:/^(eaa.|jaa.)/i,wide:/^(ennen ajanlaskun alkua|jälkeen ajanlaskun alun)/i},eet={any:[/^e/i,/^j/i]},tet={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234]\.? kvartaali/i},net={any:[/1/i,/2/i,/3/i,/4/i]},ret={narrow:/^[thmkeslj]/i,abbreviated:/^(tammi|helmi|maalis|huhti|touko|kesä|heinä|elo|syys|loka|marras|joulu)/i,wide:/^(tammikuu|helmikuu|maaliskuu|huhtikuu|toukokuu|kesäkuu|heinäkuu|elokuu|syyskuu|lokakuu|marraskuu|joulukuu)(ta)?/i},aet={narrow:[/^t/i,/^h/i,/^m/i,/^h/i,/^t/i,/^k/i,/^h/i,/^e/i,/^s/i,/^l/i,/^m/i,/^j/i],any:[/^ta/i,/^hel/i,/^maa/i,/^hu/i,/^to/i,/^k/i,/^hei/i,/^e/i,/^s/i,/^l/i,/^mar/i,/^j/i]},iet={narrow:/^[smtkpl]/i,short:/^(su|ma|ti|ke|to|pe|la)/i,abbreviated:/^(sunn.|maan.|tiis.|kesk.|torst.|perj.|la)/i,wide:/^(sunnuntai|maanantai|tiistai|keskiviikko|torstai|perjantai|lauantai)(na)?/i},oet={narrow:[/^s/i,/^m/i,/^t/i,/^k/i,/^t/i,/^p/i,/^l/i],any:[/^s/i,/^m/i,/^ti/i,/^k/i,/^to/i,/^p/i,/^l/i]},set={narrow:/^(ap|ip|keskiyö|keskipäivä|aamupäivällä|iltapäivällä|illalla|yöllä)/i,any:/^(ap|ip|keskiyöllä|keskipäivällä|aamupäivällä|iltapäivällä|illalla|yöllä)/i},uet={any:{am:/^ap/i,pm:/^ip/i,midnight:/^keskiyö/i,noon:/^keskipäivä/i,morning:/aamupäivällä/i,afternoon:/iltapäivällä/i,evening:/illalla/i,night:/yöllä/i}},cet={ordinalNumber:Xt({matchPattern:QZe,parsePattern:JZe,valueCallback:function(t){return parseInt(t,10)}}),era:se({matchPatterns:ZZe,defaultMatchWidth:"wide",parsePatterns:eet,defaultParseWidth:"any"}),quarter:se({matchPatterns:tet,defaultMatchWidth:"wide",parsePatterns:net,defaultParseWidth:"any",valueCallback:function(t){return t+1}}),month:se({matchPatterns:ret,defaultMatchWidth:"wide",parsePatterns:aet,defaultParseWidth:"any"}),day:se({matchPatterns:iet,defaultMatchWidth:"wide",parsePatterns:oet,defaultParseWidth:"any"}),dayPeriod:se({matchPatterns:set,defaultMatchWidth:"any",parsePatterns:uet,defaultParseWidth:"any"})},det={code:"fi",formatDistance:LZe,formatLong:BZe,formatRelative:zZe,localize:XZe,match:cet,options:{weekStartsOn:1,firstWeekContainsDate:4}};const fet=Object.freeze(Object.defineProperty({__proto__:null,default:det},Symbol.toStringTag,{value:"Module"})),pet=jt(fet);var het={lessThanXSeconds:{one:"moins d’une seconde",other:"moins de {{count}} secondes"},xSeconds:{one:"1 seconde",other:"{{count}} secondes"},halfAMinute:"30 secondes",lessThanXMinutes:{one:"moins d’une minute",other:"moins de {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"environ 1 heure",other:"environ {{count}} heures"},xHours:{one:"1 heure",other:"{{count}} heures"},xDays:{one:"1 jour",other:"{{count}} jours"},aboutXWeeks:{one:"environ 1 semaine",other:"environ {{count}} semaines"},xWeeks:{one:"1 semaine",other:"{{count}} semaines"},aboutXMonths:{one:"environ 1 mois",other:"environ {{count}} mois"},xMonths:{one:"1 mois",other:"{{count}} mois"},aboutXYears:{one:"environ 1 an",other:"environ {{count}} ans"},xYears:{one:"1 an",other:"{{count}} ans"},overXYears:{one:"plus d’un an",other:"plus de {{count}} ans"},almostXYears:{one:"presqu’un an",other:"presque {{count}} ans"}},Dae=function(t,n,r){var a,i=het[t];return typeof i=="string"?a=i:n===1?a=i.one:a=i.other.replace("{{count}}",String(n)),r!=null&&r.addSuffix?r.comparison&&r.comparison>0?"dans "+a:"il y a "+a:a},met={full:"EEEE d MMMM y",long:"d MMMM y",medium:"d MMM y",short:"dd/MM/y"},get={full:"HH:mm:ss zzzz",long:"HH:mm:ss z",medium:"HH:mm:ss",short:"HH:mm"},vet={full:"{{date}} 'à' {{time}}",long:"{{date}} 'à' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},yet={date:Ne({formats:met,defaultWidth:"full"}),time:Ne({formats:get,defaultWidth:"full"}),dateTime:Ne({formats:vet,defaultWidth:"full"})},bet={lastWeek:"eeee 'dernier à' p",yesterday:"'hier à' p",today:"'aujourd’hui à' p",tomorrow:"'demain à' p'",nextWeek:"eeee 'prochain à' p",other:"P"},$ae=function(t,n,r,a){return bet[t]},wet={narrow:["av. J.-C","ap. J.-C"],abbreviated:["av. J.-C","ap. J.-C"],wide:["avant Jésus-Christ","après Jésus-Christ"]},Eet={narrow:["T1","T2","T3","T4"],abbreviated:["1er trim.","2ème trim.","3ème trim.","4ème trim."],wide:["1er trimestre","2ème trimestre","3ème trimestre","4ème trimestre"]},Tet={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["janv.","févr.","mars","avr.","mai","juin","juil.","août","sept.","oct.","nov.","déc."],wide:["janvier","février","mars","avril","mai","juin","juillet","août","septembre","octobre","novembre","décembre"]},Cet={narrow:["D","L","M","M","J","V","S"],short:["di","lu","ma","me","je","ve","sa"],abbreviated:["dim.","lun.","mar.","mer.","jeu.","ven.","sam."],wide:["dimanche","lundi","mardi","mercredi","jeudi","vendredi","samedi"]},ket={narrow:{am:"AM",pm:"PM",midnight:"minuit",noon:"midi",morning:"mat.",afternoon:"ap.m.",evening:"soir",night:"mat."},abbreviated:{am:"AM",pm:"PM",midnight:"minuit",noon:"midi",morning:"matin",afternoon:"après-midi",evening:"soir",night:"matin"},wide:{am:"AM",pm:"PM",midnight:"minuit",noon:"midi",morning:"du matin",afternoon:"de l’après-midi",evening:"du soir",night:"du matin"}},xet=function(t,n){var r=Number(t),a=n==null?void 0:n.unit;if(r===0)return"0";var i=["year","week","hour","minute","second"],o;return r===1?o=a&&i.includes(a)?"ère":"er":o="ème",r+o},Lae={ordinalNumber:xet,era:oe({values:wet,defaultWidth:"wide"}),quarter:oe({values:Eet,defaultWidth:"wide",argumentCallback:function(t){return t-1}}),month:oe({values:Tet,defaultWidth:"wide"}),day:oe({values:Cet,defaultWidth:"wide"}),dayPeriod:oe({values:ket,defaultWidth:"wide"})},_et=/^(\d+)(ième|ère|ème|er|e)?/i,Oet=/\d+/i,Ret={narrow:/^(av\.J\.C|ap\.J\.C|ap\.J\.-C)/i,abbreviated:/^(av\.J\.-C|av\.J-C|apr\.J\.-C|apr\.J-C|ap\.J-C)/i,wide:/^(avant Jésus-Christ|après Jésus-Christ)/i},Pet={any:[/^av/i,/^ap/i]},Aet={narrow:/^T?[1234]/i,abbreviated:/^[1234](er|ème|e)? trim\.?/i,wide:/^[1234](er|ème|e)? trimestre/i},Net={any:[/1/i,/2/i,/3/i,/4/i]},Met={narrow:/^[jfmasond]/i,abbreviated:/^(janv|févr|mars|avr|mai|juin|juill|juil|août|sept|oct|nov|déc)\.?/i,wide:/^(janvier|février|mars|avril|mai|juin|juillet|août|septembre|octobre|novembre|décembre)/i},Iet={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^av/i,/^ma/i,/^juin/i,/^juil/i,/^ao/i,/^s/i,/^o/i,/^n/i,/^d/i]},Det={narrow:/^[lmjvsd]/i,short:/^(di|lu|ma|me|je|ve|sa)/i,abbreviated:/^(dim|lun|mar|mer|jeu|ven|sam)\.?/i,wide:/^(dimanche|lundi|mardi|mercredi|jeudi|vendredi|samedi)/i},$et={narrow:[/^d/i,/^l/i,/^m/i,/^m/i,/^j/i,/^v/i,/^s/i],any:[/^di/i,/^lu/i,/^ma/i,/^me/i,/^je/i,/^ve/i,/^sa/i]},Let={narrow:/^(a|p|minuit|midi|mat\.?|ap\.?m\.?|soir|nuit)/i,any:/^([ap]\.?\s?m\.?|du matin|de l'après[-\s]midi|du soir|de la nuit)/i},Fet={any:{am:/^a/i,pm:/^p/i,midnight:/^min/i,noon:/^mid/i,morning:/mat/i,afternoon:/ap/i,evening:/soir/i,night:/nuit/i}},Fae={ordinalNumber:Xt({matchPattern:_et,parsePattern:Oet,valueCallback:function(t){return parseInt(t)}}),era:se({matchPatterns:Ret,defaultMatchWidth:"wide",parsePatterns:Pet,defaultParseWidth:"any"}),quarter:se({matchPatterns:Aet,defaultMatchWidth:"wide",parsePatterns:Net,defaultParseWidth:"any",valueCallback:function(t){return t+1}}),month:se({matchPatterns:Met,defaultMatchWidth:"wide",parsePatterns:Iet,defaultParseWidth:"any"}),day:se({matchPatterns:Det,defaultMatchWidth:"wide",parsePatterns:$et,defaultParseWidth:"any"}),dayPeriod:se({matchPatterns:Let,defaultMatchWidth:"any",parsePatterns:Fet,defaultParseWidth:"any"})},jet={code:"fr",formatDistance:Dae,formatLong:yet,formatRelative:$ae,localize:Lae,match:Fae,options:{weekStartsOn:1,firstWeekContainsDate:4}};const Uet=Object.freeze(Object.defineProperty({__proto__:null,default:jet},Symbol.toStringTag,{value:"Module"})),Bet=jt(Uet);var Wet={full:"EEEE d MMMM y",long:"d MMMM y",medium:"d MMM y",short:"yy-MM-dd"},zet={full:"HH:mm:ss zzzz",long:"HH:mm:ss z",medium:"HH:mm:ss",short:"HH:mm"},qet={full:"{{date}} 'à' {{time}}",long:"{{date}} 'à' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},Het={date:Ne({formats:Wet,defaultWidth:"full"}),time:Ne({formats:zet,defaultWidth:"full"}),dateTime:Ne({formats:qet,defaultWidth:"full"})},Vet={code:"fr-CA",formatDistance:Dae,formatLong:Het,formatRelative:$ae,localize:Lae,match:Fae,options:{weekStartsOn:0,firstWeekContainsDate:1}};const Get=Object.freeze(Object.defineProperty({__proto__:null,default:Vet},Symbol.toStringTag,{value:"Module"})),Yet=jt(Get);var Ket={lessThanXSeconds:{one:"menos dun segundo",other:"menos de {{count}} segundos"},xSeconds:{one:"1 segundo",other:"{{count}} segundos"},halfAMinute:"medio minuto",lessThanXMinutes:{one:"menos dun minuto",other:"menos de {{count}} minutos"},xMinutes:{one:"1 minuto",other:"{{count}} minutos"},aboutXHours:{one:"arredor dunha hora",other:"arredor de {{count}} horas"},xHours:{one:"1 hora",other:"{{count}} horas"},xDays:{one:"1 día",other:"{{count}} días"},aboutXWeeks:{one:"arredor dunha semana",other:"arredor de {{count}} semanas"},xWeeks:{one:"1 semana",other:"{{count}} semanas"},aboutXMonths:{one:"arredor de 1 mes",other:"arredor de {{count}} meses"},xMonths:{one:"1 mes",other:"{{count}} meses"},aboutXYears:{one:"arredor dun ano",other:"arredor de {{count}} anos"},xYears:{one:"1 ano",other:"{{count}} anos"},overXYears:{one:"máis dun ano",other:"máis de {{count}} anos"},almostXYears:{one:"case un ano",other:"case {{count}} anos"}},Xet=function(t,n,r){var a,i=Ket[t];return typeof i=="string"?a=i:n===1?a=i.one:a=i.other.replace("{{count}}",String(n)),r!=null&&r.addSuffix?r.comparison&&r.comparison>0?"en "+a:"hai "+a:a},Qet={full:"EEEE, d 'de' MMMM y",long:"d 'de' MMMM y",medium:"d MMM y",short:"dd/MM/y"},Jet={full:"HH:mm:ss zzzz",long:"HH:mm:ss z",medium:"HH:mm:ss",short:"HH:mm"},Zet={full:"{{date}} 'ás' {{time}}",long:"{{date}} 'ás' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},ett={date:Ne({formats:Qet,defaultWidth:"full"}),time:Ne({formats:Jet,defaultWidth:"full"}),dateTime:Ne({formats:Zet,defaultWidth:"full"})},ttt={lastWeek:"'o' eeee 'pasado á' LT",yesterday:"'onte á' p",today:"'hoxe á' p",tomorrow:"'mañá á' p",nextWeek:"eeee 'á' p",other:"P"},ntt={lastWeek:"'o' eeee 'pasado ás' p",yesterday:"'onte ás' p",today:"'hoxe ás' p",tomorrow:"'mañá ás' p",nextWeek:"eeee 'ás' p",other:"P"},rtt=function(t,n,r,a){return n.getUTCHours()!==1?ntt[t]:ttt[t]},att={narrow:["AC","DC"],abbreviated:["AC","DC"],wide:["antes de cristo","despois de cristo"]},itt={narrow:["1","2","3","4"],abbreviated:["T1","T2","T3","T4"],wide:["1º trimestre","2º trimestre","3º trimestre","4º trimestre"]},ott={narrow:["e","f","m","a","m","j","j","a","s","o","n","d"],abbreviated:["xan","feb","mar","abr","mai","xun","xul","ago","set","out","nov","dec"],wide:["xaneiro","febreiro","marzo","abril","maio","xuño","xullo","agosto","setembro","outubro","novembro","decembro"]},stt={narrow:["d","l","m","m","j","v","s"],short:["do","lu","ma","me","xo","ve","sa"],abbreviated:["dom","lun","mar","mer","xov","ven","sab"],wide:["domingo","luns","martes","mércores","xoves","venres","sábado"]},ltt={narrow:{am:"a",pm:"p",midnight:"mn",noon:"md",morning:"mañá",afternoon:"tarde",evening:"tarde",night:"noite"},abbreviated:{am:"AM",pm:"PM",midnight:"medianoite",noon:"mediodía",morning:"mañá",afternoon:"tarde",evening:"tardiña",night:"noite"},wide:{am:"a.m.",pm:"p.m.",midnight:"medianoite",noon:"mediodía",morning:"mañá",afternoon:"tarde",evening:"tardiña",night:"noite"}},utt={narrow:{am:"a",pm:"p",midnight:"mn",noon:"md",morning:"da mañá",afternoon:"da tarde",evening:"da tardiña",night:"da noite"},abbreviated:{am:"AM",pm:"PM",midnight:"medianoite",noon:"mediodía",morning:"da mañá",afternoon:"da tarde",evening:"da tardiña",night:"da noite"},wide:{am:"a.m.",pm:"p.m.",midnight:"medianoite",noon:"mediodía",morning:"da mañá",afternoon:"da tarde",evening:"da tardiña",night:"da noite"}},ctt=function(t,n){var r=Number(t);return r+"º"},dtt={ordinalNumber:ctt,era:oe({values:att,defaultWidth:"wide"}),quarter:oe({values:itt,defaultWidth:"wide",argumentCallback:function(t){return t-1}}),month:oe({values:ott,defaultWidth:"wide"}),day:oe({values:stt,defaultWidth:"wide"}),dayPeriod:oe({values:ltt,defaultWidth:"wide",formattingValues:utt,defaultFormattingWidth:"wide"})},ftt=/^(\d+)(º)?/i,ptt=/\d+/i,htt={narrow:/^(ac|dc|a|d)/i,abbreviated:/^(a\.?\s?c\.?|a\.?\s?e\.?\s?c\.?|d\.?\s?c\.?|e\.?\s?c\.?)/i,wide:/^(antes de cristo|antes da era com[uú]n|despois de cristo|era com[uú]n)/i},mtt={any:[/^ac/i,/^dc/i],wide:[/^(antes de cristo|antes da era com[uú]n)/i,/^(despois de cristo|era com[uú]n)/i]},gtt={narrow:/^[1234]/i,abbreviated:/^T[1234]/i,wide:/^[1234](º)? trimestre/i},vtt={any:[/1/i,/2/i,/3/i,/4/i]},ytt={narrow:/^[xfmasond]/i,abbreviated:/^(xan|feb|mar|abr|mai|xun|xul|ago|set|out|nov|dec)/i,wide:/^(xaneiro|febreiro|marzo|abril|maio|xuño|xullo|agosto|setembro|outubro|novembro|decembro)/i},btt={narrow:[/^x/i,/^f/i,/^m/i,/^a/i,/^m/i,/^x/i,/^x/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^xan/i,/^feb/i,/^mar/i,/^abr/i,/^mai/i,/^xun/i,/^xul/i,/^ago/i,/^set/i,/^out/i,/^nov/i,/^dec/i]},wtt={narrow:/^[dlmxvs]/i,short:/^(do|lu|ma|me|xo|ve|sa)/i,abbreviated:/^(dom|lun|mar|mer|xov|ven|sab)/i,wide:/^(domingo|luns|martes|m[eé]rcores|xoves|venres|s[áa]bado)/i},Stt={narrow:[/^d/i,/^l/i,/^m/i,/^m/i,/^x/i,/^v/i,/^s/i],any:[/^do/i,/^lu/i,/^ma/i,/^me/i,/^xo/i,/^ve/i,/^sa/i]},Ett={narrow:/^(a|p|mn|md|(da|[aá]s) (mañ[aá]|tarde|noite))/i,any:/^([ap]\.?\s?m\.?|medianoite|mediod[ií]a|(da|[aá]s) (mañ[aá]|tarde|noite))/i},Ttt={any:{am:/^a/i,pm:/^p/i,midnight:/^mn/i,noon:/^md/i,morning:/mañ[aá]/i,afternoon:/tarde/i,evening:/tardiña/i,night:/noite/i}},Ctt={ordinalNumber:Xt({matchPattern:ftt,parsePattern:ptt,valueCallback:function(t){return parseInt(t,10)}}),era:se({matchPatterns:htt,defaultMatchWidth:"wide",parsePatterns:mtt,defaultParseWidth:"any"}),quarter:se({matchPatterns:gtt,defaultMatchWidth:"wide",parsePatterns:vtt,defaultParseWidth:"any",valueCallback:function(t){return t+1}}),month:se({matchPatterns:ytt,defaultMatchWidth:"wide",parsePatterns:btt,defaultParseWidth:"any"}),day:se({matchPatterns:wtt,defaultMatchWidth:"wide",parsePatterns:Stt,defaultParseWidth:"any"}),dayPeriod:se({matchPatterns:Ett,defaultMatchWidth:"any",parsePatterns:Ttt,defaultParseWidth:"any"})},ktt={code:"gl",formatDistance:Xet,formatLong:ett,formatRelative:rtt,localize:dtt,match:Ctt,options:{weekStartsOn:1,firstWeekContainsDate:1}};const xtt=Object.freeze(Object.defineProperty({__proto__:null,default:ktt},Symbol.toStringTag,{value:"Module"})),_tt=jt(xtt);var Ott={lessThanXSeconds:{one:"હમણાં",other:"​આશરે {{count}} સેકંડ"},xSeconds:{one:"1 સેકંડ",other:"{{count}} સેકંડ"},halfAMinute:"અડધી મિનિટ",lessThanXMinutes:{one:"આ મિનિટ",other:"​આશરે {{count}} મિનિટ"},xMinutes:{one:"1 મિનિટ",other:"{{count}} મિનિટ"},aboutXHours:{one:"​આશરે 1 કલાક",other:"​આશરે {{count}} કલાક"},xHours:{one:"1 કલાક",other:"{{count}} કલાક"},xDays:{one:"1 દિવસ",other:"{{count}} દિવસ"},aboutXWeeks:{one:"આશરે 1 અઠવાડિયું",other:"આશરે {{count}} અઠવાડિયા"},xWeeks:{one:"1 અઠવાડિયું",other:"{{count}} અઠવાડિયા"},aboutXMonths:{one:"આશરે 1 મહિનો",other:"આશરે {{count}} મહિના"},xMonths:{one:"1 મહિનો",other:"{{count}} મહિના"},aboutXYears:{one:"આશરે 1 વર્ષ",other:"આશરે {{count}} વર્ષ"},xYears:{one:"1 વર્ષ",other:"{{count}} વર્ષ"},overXYears:{one:"1 વર્ષથી વધુ",other:"{{count}} વર્ષથી વધુ"},almostXYears:{one:"લગભગ 1 વર્ષ",other:"લગભગ {{count}} વર્ષ"}},Rtt=function(t,n,r){var a,i=Ott[t];return typeof i=="string"?a=i:n===1?a=i.one:a=i.other.replace("{{count}}",String(n)),r!=null&&r.addSuffix?r.comparison&&r.comparison>0?a+"માં":a+" પહેલાં":a},Ptt={full:"EEEE, d MMMM, y",long:"d MMMM, y",medium:"d MMM, y",short:"d/M/yy"},Att={full:"hh:mm:ss a zzzz",long:"hh:mm:ss a z",medium:"hh:mm:ss a",short:"hh:mm a"},Ntt={full:"{{date}} {{time}}",long:"{{date}} {{time}}",medium:"{{date}} {{time}}",short:"{{date}} {{time}}"},Mtt={date:Ne({formats:Ptt,defaultWidth:"full"}),time:Ne({formats:Att,defaultWidth:"full"}),dateTime:Ne({formats:Ntt,defaultWidth:"full"})},Itt={lastWeek:"'પાછલા' eeee p",yesterday:"'ગઈકાલે' p",today:"'આજે' p",tomorrow:"'આવતીકાલે' p",nextWeek:"eeee p",other:"P"},Dtt=function(t,n,r,a){return Itt[t]},$tt={narrow:["ઈસપૂ","ઈસ"],abbreviated:["ઈ.સ.પૂર્વે","ઈ.સ."],wide:["ઈસવીસન પૂર્વે","ઈસવીસન"]},Ltt={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1લો ત્રિમાસ","2જો ત્રિમાસ","3જો ત્રિમાસ","4થો ત્રિમાસ"]},Ftt={narrow:["જા","ફે","મા","એ","મે","જૂ","જુ","ઓ","સ","ઓ","ન","ડિ"],abbreviated:["જાન્યુ","ફેબ્રુ","માર્ચ","એપ્રિલ","મે","જૂન","જુલાઈ","ઑગસ્ટ","સપ્ટે","ઓક્ટો","નવે","ડિસે"],wide:["જાન્યુઆરી","ફેબ્રુઆરી","માર્ચ","એપ્રિલ","મે","જૂન","જુલાઇ","ઓગસ્ટ","સપ્ટેમ્બર","ઓક્ટોબર","નવેમ્બર","ડિસેમ્બર"]},jtt={narrow:["ર","સો","મં","બુ","ગુ","શુ","શ"],short:["ર","સો","મં","બુ","ગુ","શુ","શ"],abbreviated:["રવિ","સોમ","મંગળ","બુધ","ગુરુ","શુક્ર","શનિ"],wide:["રવિવાર","સોમવાર","મંગળવાર","બુધવાર","ગુરુવાર","શુક્રવાર","શનિવાર"]},Utt={narrow:{am:"AM",pm:"PM",midnight:"મ.રાત્રિ",noon:"બ.",morning:"સવારે",afternoon:"બપોરે",evening:"સાંજે",night:"રાત્રે"},abbreviated:{am:"AM",pm:"PM",midnight:"​મધ્યરાત્રિ",noon:"બપોરે",morning:"સવારે",afternoon:"બપોરે",evening:"સાંજે",night:"રાત્રે"},wide:{am:"AM",pm:"PM",midnight:"​મધ્યરાત્રિ",noon:"બપોરે",morning:"સવારે",afternoon:"બપોરે",evening:"સાંજે",night:"રાત્રે"}},Btt={narrow:{am:"AM",pm:"PM",midnight:"મ.રાત્રિ",noon:"બપોરે",morning:"સવારે",afternoon:"બપોરે",evening:"સાંજે",night:"રાત્રે"},abbreviated:{am:"AM",pm:"PM",midnight:"મધ્યરાત્રિ",noon:"બપોરે",morning:"સવારે",afternoon:"બપોરે",evening:"સાંજે",night:"રાત્રે"},wide:{am:"AM",pm:"PM",midnight:"​મધ્યરાત્રિ",noon:"બપોરે",morning:"સવારે",afternoon:"બપોરે",evening:"સાંજે",night:"રાત્રે"}},Wtt=function(t,n){return String(t)},ztt={ordinalNumber:Wtt,era:oe({values:$tt,defaultWidth:"wide"}),quarter:oe({values:Ltt,defaultWidth:"wide",argumentCallback:function(t){return t-1}}),month:oe({values:Ftt,defaultWidth:"wide"}),day:oe({values:jtt,defaultWidth:"wide"}),dayPeriod:oe({values:Utt,defaultWidth:"wide",formattingValues:Btt,defaultFormattingWidth:"wide"})},qtt=/^(\d+)(લ|જ|થ|ઠ્ઠ|મ)?/i,Htt=/\d+/i,Vtt={narrow:/^(ઈસપૂ|ઈસ)/i,abbreviated:/^(ઈ\.સ\.પૂર્વે|ઈ\.સ\.)/i,wide:/^(ઈસવીસન\sપૂર્વે|ઈસવીસન)/i},Gtt={any:[/^ઈસપૂ/i,/^ઈસ/i]},Ytt={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](લો|જો|થો)? ત્રિમાસ/i},Ktt={any:[/1/i,/2/i,/3/i,/4/i]},Xtt={narrow:/^[જાફેમાએમેજૂજુઓસઓનડિ]/i,abbreviated:/^(જાન્યુ|ફેબ્રુ|માર્ચ|એપ્રિલ|મે|જૂન|જુલાઈ|ઑગસ્ટ|સપ્ટે|ઓક્ટો|નવે|ડિસે)/i,wide:/^(જાન્યુઆરી|ફેબ્રુઆરી|માર્ચ|એપ્રિલ|મે|જૂન|જુલાઇ|ઓગસ્ટ|સપ્ટેમ્બર|ઓક્ટોબર|નવેમ્બર|ડિસેમ્બર)/i},Qtt={narrow:[/^જા/i,/^ફે/i,/^મા/i,/^એ/i,/^મે/i,/^જૂ/i,/^જુ/i,/^ઑગ/i,/^સ/i,/^ઓક્ટો/i,/^ન/i,/^ડિ/i],any:[/^જા/i,/^ફે/i,/^મા/i,/^એ/i,/^મે/i,/^જૂ/i,/^જુ/i,/^ઑગ/i,/^સ/i,/^ઓક્ટો/i,/^ન/i,/^ડિ/i]},Jtt={narrow:/^(ર|સો|મં|બુ|ગુ|શુ|શ)/i,short:/^(ર|સો|મં|બુ|ગુ|શુ|શ)/i,abbreviated:/^(રવિ|સોમ|મંગળ|બુધ|ગુરુ|શુક્ર|શનિ)/i,wide:/^(રવિવાર|સોમવાર|મંગળવાર|બુધવાર|ગુરુવાર|શુક્રવાર|શનિવાર)/i},Ztt={narrow:[/^ર/i,/^સો/i,/^મં/i,/^બુ/i,/^ગુ/i,/^શુ/i,/^શ/i],any:[/^ર/i,/^સો/i,/^મં/i,/^બુ/i,/^ગુ/i,/^શુ/i,/^શ/i]},ent={narrow:/^(a|p|મ\.?|સ|બ|સાં|રા)/i,any:/^(a|p|મ\.?|સ|બ|સાં|રા)/i},tnt={any:{am:/^a/i,pm:/^p/i,midnight:/^મ\.?/i,noon:/^બ/i,morning:/સ/i,afternoon:/બ/i,evening:/સાં/i,night:/રા/i}},nnt={ordinalNumber:Xt({matchPattern:qtt,parsePattern:Htt,valueCallback:function(t){return parseInt(t,10)}}),era:se({matchPatterns:Vtt,defaultMatchWidth:"wide",parsePatterns:Gtt,defaultParseWidth:"any"}),quarter:se({matchPatterns:Ytt,defaultMatchWidth:"wide",parsePatterns:Ktt,defaultParseWidth:"any",valueCallback:function(t){return t+1}}),month:se({matchPatterns:Xtt,defaultMatchWidth:"wide",parsePatterns:Qtt,defaultParseWidth:"any"}),day:se({matchPatterns:Jtt,defaultMatchWidth:"wide",parsePatterns:Ztt,defaultParseWidth:"any"}),dayPeriod:se({matchPatterns:ent,defaultMatchWidth:"any",parsePatterns:tnt,defaultParseWidth:"any"})},rnt={code:"gu",formatDistance:Rtt,formatLong:Mtt,formatRelative:Dtt,localize:ztt,match:nnt,options:{weekStartsOn:1,firstWeekContainsDate:4}};const ant=Object.freeze(Object.defineProperty({__proto__:null,default:rnt},Symbol.toStringTag,{value:"Module"})),int=jt(ant);var ont={lessThanXSeconds:{one:"פחות משנייה",two:"פחות משתי שניות",other:"פחות מ־{{count}} שניות"},xSeconds:{one:"שנייה",two:"שתי שניות",other:"{{count}} שניות"},halfAMinute:"חצי דקה",lessThanXMinutes:{one:"פחות מדקה",two:"פחות משתי דקות",other:"פחות מ־{{count}} דקות"},xMinutes:{one:"דקה",two:"שתי דקות",other:"{{count}} דקות"},aboutXHours:{one:"כשעה",two:"כשעתיים",other:"כ־{{count}} שעות"},xHours:{one:"שעה",two:"שעתיים",other:"{{count}} שעות"},xDays:{one:"יום",two:"יומיים",other:"{{count}} ימים"},aboutXWeeks:{one:"כשבוע",two:"כשבועיים",other:"כ־{{count}} שבועות"},xWeeks:{one:"שבוע",two:"שבועיים",other:"{{count}} שבועות"},aboutXMonths:{one:"כחודש",two:"כחודשיים",other:"כ־{{count}} חודשים"},xMonths:{one:"חודש",two:"חודשיים",other:"{{count}} חודשים"},aboutXYears:{one:"כשנה",two:"כשנתיים",other:"כ־{{count}} שנים"},xYears:{one:"שנה",two:"שנתיים",other:"{{count}} שנים"},overXYears:{one:"יותר משנה",two:"יותר משנתיים",other:"יותר מ־{{count}} שנים"},almostXYears:{one:"כמעט שנה",two:"כמעט שנתיים",other:"כמעט {{count}} שנים"}},snt=function(t,n,r){if(t==="xDays"&&r!==null&&r!==void 0&&r.addSuffix&&n<=2)return r.comparison&&r.comparison>0?n===1?"מחר":"מחרתיים":n===1?"אתמול":"שלשום";var a,i=ont[t];return typeof i=="string"?a=i:n===1?a=i.one:n===2?a=i.two:a=i.other.replace("{{count}}",String(n)),r!=null&&r.addSuffix?r.comparison&&r.comparison>0?"בעוד "+a:"לפני "+a:a},lnt={full:"EEEE, d בMMMM y",long:"d בMMMM y",medium:"d בMMM y",short:"d.M.y"},unt={full:"H:mm:ss zzzz",long:"H:mm:ss z",medium:"H:mm:ss",short:"H:mm"},cnt={full:"{{date}} 'בשעה' {{time}}",long:"{{date}} 'בשעה' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},dnt={date:Ne({formats:lnt,defaultWidth:"full"}),time:Ne({formats:unt,defaultWidth:"full"}),dateTime:Ne({formats:cnt,defaultWidth:"full"})},fnt={lastWeek:"eeee 'שעבר בשעה' p",yesterday:"'אתמול בשעה' p",today:"'היום בשעה' p",tomorrow:"'מחר בשעה' p",nextWeek:"eeee 'בשעה' p",other:"P"},pnt=function(t,n,r,a){return fnt[t]},hnt={narrow:["לפנה״ס","לספירה"],abbreviated:["לפנה״ס","לספירה"],wide:["לפני הספירה","לספירה"]},mnt={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["רבעון 1","רבעון 2","רבעון 3","רבעון 4"]},gnt={narrow:["1","2","3","4","5","6","7","8","9","10","11","12"],abbreviated:["ינו׳","פבר׳","מרץ","אפר׳","מאי","יוני","יולי","אוג׳","ספט׳","אוק׳","נוב׳","דצמ׳"],wide:["ינואר","פברואר","מרץ","אפריל","מאי","יוני","יולי","אוגוסט","ספטמבר","אוקטובר","נובמבר","דצמבר"]},vnt={narrow:["א׳","ב׳","ג׳","ד׳","ה׳","ו׳","ש׳"],short:["א׳","ב׳","ג׳","ד׳","ה׳","ו׳","ש׳"],abbreviated:["יום א׳","יום ב׳","יום ג׳","יום ד׳","יום ה׳","יום ו׳","שבת"],wide:["יום ראשון","יום שני","יום שלישי","יום רביעי","יום חמישי","יום שישי","יום שבת"]},ynt={narrow:{am:"לפנה״צ",pm:"אחה״צ",midnight:"חצות",noon:"צהריים",morning:"בוקר",afternoon:"אחר הצהריים",evening:"ערב",night:"לילה"},abbreviated:{am:"לפנה״צ",pm:"אחה״צ",midnight:"חצות",noon:"צהריים",morning:"בוקר",afternoon:"אחר הצהריים",evening:"ערב",night:"לילה"},wide:{am:"לפנה״צ",pm:"אחה״צ",midnight:"חצות",noon:"צהריים",morning:"בוקר",afternoon:"אחר הצהריים",evening:"ערב",night:"לילה"}},bnt={narrow:{am:"לפנה״צ",pm:"אחה״צ",midnight:"חצות",noon:"צהריים",morning:"בבוקר",afternoon:"בצהריים",evening:"בערב",night:"בלילה"},abbreviated:{am:"לפנה״צ",pm:"אחה״צ",midnight:"חצות",noon:"צהריים",morning:"בבוקר",afternoon:"אחר הצהריים",evening:"בערב",night:"בלילה"},wide:{am:"לפנה״צ",pm:"אחה״צ",midnight:"חצות",noon:"צהריים",morning:"בבוקר",afternoon:"אחר הצהריים",evening:"בערב",night:"בלילה"}},wnt=function(t,n){var r=Number(t);if(r<=0||r>10)return String(r);var a=String(n==null?void 0:n.unit),i=["year","hour","minute","second"].indexOf(a)>=0,o=["ראשון","שני","שלישי","רביעי","חמישי","שישי","שביעי","שמיני","תשיעי","עשירי"],l=["ראשונה","שנייה","שלישית","רביעית","חמישית","שישית","שביעית","שמינית","תשיעית","עשירית"],u=r-1;return i?l[u]:o[u]},Snt={ordinalNumber:wnt,era:oe({values:hnt,defaultWidth:"wide"}),quarter:oe({values:mnt,defaultWidth:"wide",argumentCallback:function(t){return t-1}}),month:oe({values:gnt,defaultWidth:"wide"}),day:oe({values:vnt,defaultWidth:"wide"}),dayPeriod:oe({values:ynt,defaultWidth:"wide",formattingValues:bnt,defaultFormattingWidth:"wide"})},Ent=/^(\d+|(ראשון|שני|שלישי|רביעי|חמישי|שישי|שביעי|שמיני|תשיעי|עשירי|ראשונה|שנייה|שלישית|רביעית|חמישית|שישית|שביעית|שמינית|תשיעית|עשירית))/i,Tnt=/^(\d+|רא|שנ|של|רב|ח|שי|שב|שמ|ת|ע)/i,Cnt={narrow:/^ל(ספירה|פנה״ס)/i,abbreviated:/^ל(ספירה|פנה״ס)/i,wide:/^ל(פני ה)?ספירה/i},knt={any:[/^לפ/i,/^לס/i]},xnt={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^רבעון [1234]/i},_nt={any:[/1/i,/2/i,/3/i,/4/i]},Ont={narrow:/^\d+/i,abbreviated:/^(ינו|פבר|מרץ|אפר|מאי|יוני|יולי|אוג|ספט|אוק|נוב|דצמ)׳?/i,wide:/^(ינואר|פברואר|מרץ|אפריל|מאי|יוני|יולי|אוגוסט|ספטמבר|אוקטובר|נובמבר|דצמבר)/i},Rnt={narrow:[/^1$/i,/^2/i,/^3/i,/^4/i,/^5/i,/^6/i,/^7/i,/^8/i,/^9/i,/^10/i,/^11/i,/^12/i],any:[/^ינ/i,/^פ/i,/^מר/i,/^אפ/i,/^מא/i,/^יונ/i,/^יול/i,/^אוג/i,/^ס/i,/^אוק/i,/^נ/i,/^ד/i]},Pnt={narrow:/^[אבגדהוש]׳/i,short:/^[אבגדהוש]׳/i,abbreviated:/^(שבת|יום (א|ב|ג|ד|ה|ו)׳)/i,wide:/^יום (ראשון|שני|שלישי|רביעי|חמישי|שישי|שבת)/i},Ant={abbreviated:[/א׳$/i,/ב׳$/i,/ג׳$/i,/ד׳$/i,/ה׳$/i,/ו׳$/i,/^ש/i],wide:[/ן$/i,/ני$/i,/לישי$/i,/עי$/i,/מישי$/i,/שישי$/i,/ת$/i],any:[/^א/i,/^ב/i,/^ג/i,/^ד/i,/^ה/i,/^ו/i,/^ש/i]},Nnt={any:/^(אחר ה|ב)?(חצות|צהריים|בוקר|ערב|לילה|אחה״צ|לפנה״צ)/i},Mnt={any:{am:/^לפ/i,pm:/^אחה/i,midnight:/^ח/i,noon:/^צ/i,morning:/בוקר/i,afternoon:/בצ|אחר/i,evening:/ערב/i,night:/לילה/i}},Int=["רא","שנ","של","רב","ח","שי","שב","שמ","ת","ע"],Dnt={ordinalNumber:Xt({matchPattern:Ent,parsePattern:Tnt,valueCallback:function(t){var n=parseInt(t,10);return isNaN(n)?Int.indexOf(t)+1:n}}),era:se({matchPatterns:Cnt,defaultMatchWidth:"wide",parsePatterns:knt,defaultParseWidth:"any"}),quarter:se({matchPatterns:xnt,defaultMatchWidth:"wide",parsePatterns:_nt,defaultParseWidth:"any",valueCallback:function(t){return t+1}}),month:se({matchPatterns:Ont,defaultMatchWidth:"wide",parsePatterns:Rnt,defaultParseWidth:"any"}),day:se({matchPatterns:Pnt,defaultMatchWidth:"wide",parsePatterns:Ant,defaultParseWidth:"any"}),dayPeriod:se({matchPatterns:Nnt,defaultMatchWidth:"any",parsePatterns:Mnt,defaultParseWidth:"any"})},$nt={code:"he",formatDistance:snt,formatLong:dnt,formatRelative:pnt,localize:Snt,match:Dnt,options:{weekStartsOn:0,firstWeekContainsDate:1}};const Lnt=Object.freeze(Object.defineProperty({__proto__:null,default:$nt},Symbol.toStringTag,{value:"Module"})),Fnt=jt(Lnt);var jae={locale:{1:"१",2:"२",3:"३",4:"४",5:"५",6:"६",7:"७",8:"८",9:"९",0:"०"},number:{"१":"1","२":"2","३":"3","४":"4","५":"5","६":"6","७":"7","८":"8","९":"9","०":"0"}},jnt={narrow:["ईसा-पूर्व","ईस्वी"],abbreviated:["ईसा-पूर्व","ईस्वी"],wide:["ईसा-पूर्व","ईसवी सन"]},Unt={narrow:["1","2","3","4"],abbreviated:["ति1","ति2","ति3","ति4"],wide:["पहली तिमाही","दूसरी तिमाही","तीसरी तिमाही","चौथी तिमाही"]},Bnt={narrow:["ज","फ़","मा","अ","मई","जू","जु","अग","सि","अक्टू","न","दि"],abbreviated:["जन","फ़र","मार्च","अप्रैल","मई","जून","जुल","अग","सित","अक्टू","नव","दिस"],wide:["जनवरी","फ़रवरी","मार्च","अप्रैल","मई","जून","जुलाई","अगस्त","सितंबर","अक्टूबर","नवंबर","दिसंबर"]},Wnt={narrow:["र","सो","मं","बु","गु","शु","श"],short:["र","सो","मं","बु","गु","शु","श"],abbreviated:["रवि","सोम","मंगल","बुध","गुरु","शुक्र","शनि"],wide:["रविवार","सोमवार","मंगलवार","बुधवार","गुरुवार","शुक्रवार","शनिवार"]},znt={narrow:{am:"पूर्वाह्न",pm:"अपराह्न",midnight:"मध्यरात्रि",noon:"दोपहर",morning:"सुबह",afternoon:"दोपहर",evening:"शाम",night:"रात"},abbreviated:{am:"पूर्वाह्न",pm:"अपराह्न",midnight:"मध्यरात्रि",noon:"दोपहर",morning:"सुबह",afternoon:"दोपहर",evening:"शाम",night:"रात"},wide:{am:"पूर्वाह्न",pm:"अपराह्न",midnight:"मध्यरात्रि",noon:"दोपहर",morning:"सुबह",afternoon:"दोपहर",evening:"शाम",night:"रात"}},qnt={narrow:{am:"पूर्वाह्न",pm:"अपराह्न",midnight:"मध्यरात्रि",noon:"दोपहर",morning:"सुबह",afternoon:"दोपहर",evening:"शाम",night:"रात"},abbreviated:{am:"पूर्वाह्न",pm:"अपराह्न",midnight:"मध्यरात्रि",noon:"दोपहर",morning:"सुबह",afternoon:"दोपहर",evening:"शाम",night:"रात"},wide:{am:"पूर्वाह्न",pm:"अपराह्न",midnight:"मध्यरात्रि",noon:"दोपहर",morning:"सुबह",afternoon:"दोपहर",evening:"शाम",night:"रात"}},Hnt=function(t,n){var r=Number(t);return Uae(r)};function Vnt(e){var t=e.toString().replace(/[१२३४५६७८९०]/g,function(n){return jae.number[n]});return Number(t)}function Uae(e){return e.toString().replace(/\d/g,function(t){return jae.locale[t]})}var Gnt={ordinalNumber:Hnt,era:oe({values:jnt,defaultWidth:"wide"}),quarter:oe({values:Unt,defaultWidth:"wide",argumentCallback:function(t){return t-1}}),month:oe({values:Bnt,defaultWidth:"wide"}),day:oe({values:Wnt,defaultWidth:"wide"}),dayPeriod:oe({values:znt,defaultWidth:"wide",formattingValues:qnt,defaultFormattingWidth:"wide"})},Ynt={lessThanXSeconds:{one:"१ सेकंड से कम",other:"{{count}} सेकंड से कम"},xSeconds:{one:"१ सेकंड",other:"{{count}} सेकंड"},halfAMinute:"आधा मिनट",lessThanXMinutes:{one:"१ मिनट से कम",other:"{{count}} मिनट से कम"},xMinutes:{one:"१ मिनट",other:"{{count}} मिनट"},aboutXHours:{one:"लगभग १ घंटा",other:"लगभग {{count}} घंटे"},xHours:{one:"१ घंटा",other:"{{count}} घंटे"},xDays:{one:"१ दिन",other:"{{count}} दिन"},aboutXWeeks:{one:"लगभग १ सप्ताह",other:"लगभग {{count}} सप्ताह"},xWeeks:{one:"१ सप्ताह",other:"{{count}} सप्ताह"},aboutXMonths:{one:"लगभग १ महीना",other:"लगभग {{count}} महीने"},xMonths:{one:"१ महीना",other:"{{count}} महीने"},aboutXYears:{one:"लगभग १ वर्ष",other:"लगभग {{count}} वर्ष"},xYears:{one:"१ वर्ष",other:"{{count}} वर्ष"},overXYears:{one:"१ वर्ष से अधिक",other:"{{count}} वर्ष से अधिक"},almostXYears:{one:"लगभग १ वर्ष",other:"लगभग {{count}} वर्ष"}},Knt=function(t,n,r){var a,i=Ynt[t];return typeof i=="string"?a=i:n===1?a=i.one:a=i.other.replace("{{count}}",Uae(n)),r!=null&&r.addSuffix?r.comparison&&r.comparison>0?a+"मे ":a+" पहले":a},Xnt={full:"EEEE, do MMMM, y",long:"do MMMM, y",medium:"d MMM, y",short:"dd/MM/yyyy"},Qnt={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},Jnt={full:"{{date}} 'को' {{time}}",long:"{{date}} 'को' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},Znt={date:Ne({formats:Xnt,defaultWidth:"full"}),time:Ne({formats:Qnt,defaultWidth:"full"}),dateTime:Ne({formats:Jnt,defaultWidth:"full"})},ert={lastWeek:"'पिछले' eeee p",yesterday:"'कल' p",today:"'आज' p",tomorrow:"'कल' p",nextWeek:"eeee 'को' p",other:"P"},trt=function(t,n,r,a){return ert[t]},nrt=/^[०१२३४५६७८९]+/i,rrt=/^[०१२३४५६७८९]+/i,art={narrow:/^(ईसा-पूर्व|ईस्वी)/i,abbreviated:/^(ईसा\.?\s?पूर्व\.?|ईसा\.?)/i,wide:/^(ईसा-पूर्व|ईसवी पूर्व|ईसवी सन|ईसवी)/i},irt={any:[/^b/i,/^(a|c)/i]},ort={narrow:/^[1234]/i,abbreviated:/^ति[1234]/i,wide:/^[1234](पहली|दूसरी|तीसरी|चौथी)? तिमाही/i},srt={any:[/1/i,/2/i,/3/i,/4/i]},lrt={narrow:/^[जफ़माअप्मईजूनजुअगसिअक्तनदि]/i,abbreviated:/^(जन|फ़र|मार्च|अप्|मई|जून|जुल|अग|सित|अक्तू|नव|दिस)/i,wide:/^(जनवरी|फ़रवरी|मार्च|अप्रैल|मई|जून|जुलाई|अगस्त|सितंबर|अक्तूबर|नवंबर|दिसंबर)/i},urt={narrow:[/^ज/i,/^फ़/i,/^मा/i,/^अप्/i,/^मई/i,/^जू/i,/^जु/i,/^अग/i,/^सि/i,/^अक्तू/i,/^न/i,/^दि/i],any:[/^जन/i,/^फ़/i,/^मा/i,/^अप्/i,/^मई/i,/^जू/i,/^जु/i,/^अग/i,/^सि/i,/^अक्तू/i,/^नव/i,/^दिस/i]},crt={narrow:/^[रविसोममंगलबुधगुरुशुक्रशनि]/i,short:/^(रवि|सोम|मंगल|बुध|गुरु|शुक्र|शनि)/i,abbreviated:/^(रवि|सोम|मंगल|बुध|गुरु|शुक्र|शनि)/i,wide:/^(रविवार|सोमवार|मंगलवार|बुधवार|गुरुवार|शुक्रवार|शनिवार)/i},drt={narrow:[/^रवि/i,/^सोम/i,/^मंगल/i,/^बुध/i,/^गुरु/i,/^शुक्र/i,/^शनि/i],any:[/^रवि/i,/^सोम/i,/^मंगल/i,/^बुध/i,/^गुरु/i,/^शुक्र/i,/^शनि/i]},frt={narrow:/^(पू|अ|म|द.\?|सु|दो|शा|रा)/i,any:/^(पूर्वाह्न|अपराह्न|म|द.\?|सु|दो|शा|रा)/i},prt={any:{am:/^पूर्वाह्न/i,pm:/^अपराह्न/i,midnight:/^मध्य/i,noon:/^दो/i,morning:/सु/i,afternoon:/दो/i,evening:/शा/i,night:/रा/i}},hrt={ordinalNumber:Xt({matchPattern:nrt,parsePattern:rrt,valueCallback:Vnt}),era:se({matchPatterns:art,defaultMatchWidth:"wide",parsePatterns:irt,defaultParseWidth:"any"}),quarter:se({matchPatterns:ort,defaultMatchWidth:"wide",parsePatterns:srt,defaultParseWidth:"any",valueCallback:function(t){return t+1}}),month:se({matchPatterns:lrt,defaultMatchWidth:"wide",parsePatterns:urt,defaultParseWidth:"any"}),day:se({matchPatterns:crt,defaultMatchWidth:"wide",parsePatterns:drt,defaultParseWidth:"any"}),dayPeriod:se({matchPatterns:frt,defaultMatchWidth:"any",parsePatterns:prt,defaultParseWidth:"any"})},mrt={code:"hi",formatDistance:Knt,formatLong:Znt,formatRelative:trt,localize:Gnt,match:hrt,options:{weekStartsOn:0,firstWeekContainsDate:4}};const grt=Object.freeze(Object.defineProperty({__proto__:null,default:mrt},Symbol.toStringTag,{value:"Module"})),vrt=jt(grt);var yrt={lessThanXSeconds:{one:{standalone:"manje od 1 sekunde",withPrepositionAgo:"manje od 1 sekunde",withPrepositionIn:"manje od 1 sekundu"},dual:"manje od {{count}} sekunde",other:"manje od {{count}} sekundi"},xSeconds:{one:{standalone:"1 sekunda",withPrepositionAgo:"1 sekunde",withPrepositionIn:"1 sekundu"},dual:"{{count}} sekunde",other:"{{count}} sekundi"},halfAMinute:"pola minute",lessThanXMinutes:{one:{standalone:"manje od 1 minute",withPrepositionAgo:"manje od 1 minute",withPrepositionIn:"manje od 1 minutu"},dual:"manje od {{count}} minute",other:"manje od {{count}} minuta"},xMinutes:{one:{standalone:"1 minuta",withPrepositionAgo:"1 minute",withPrepositionIn:"1 minutu"},dual:"{{count}} minute",other:"{{count}} minuta"},aboutXHours:{one:{standalone:"oko 1 sat",withPrepositionAgo:"oko 1 sat",withPrepositionIn:"oko 1 sat"},dual:"oko {{count}} sata",other:"oko {{count}} sati"},xHours:{one:{standalone:"1 sat",withPrepositionAgo:"1 sat",withPrepositionIn:"1 sat"},dual:"{{count}} sata",other:"{{count}} sati"},xDays:{one:{standalone:"1 dan",withPrepositionAgo:"1 dan",withPrepositionIn:"1 dan"},dual:"{{count}} dana",other:"{{count}} dana"},aboutXWeeks:{one:{standalone:"oko 1 tjedan",withPrepositionAgo:"oko 1 tjedan",withPrepositionIn:"oko 1 tjedan"},dual:"oko {{count}} tjedna",other:"oko {{count}} tjedana"},xWeeks:{one:{standalone:"1 tjedan",withPrepositionAgo:"1 tjedan",withPrepositionIn:"1 tjedan"},dual:"{{count}} tjedna",other:"{{count}} tjedana"},aboutXMonths:{one:{standalone:"oko 1 mjesec",withPrepositionAgo:"oko 1 mjesec",withPrepositionIn:"oko 1 mjesec"},dual:"oko {{count}} mjeseca",other:"oko {{count}} mjeseci"},xMonths:{one:{standalone:"1 mjesec",withPrepositionAgo:"1 mjesec",withPrepositionIn:"1 mjesec"},dual:"{{count}} mjeseca",other:"{{count}} mjeseci"},aboutXYears:{one:{standalone:"oko 1 godinu",withPrepositionAgo:"oko 1 godinu",withPrepositionIn:"oko 1 godinu"},dual:"oko {{count}} godine",other:"oko {{count}} godina"},xYears:{one:{standalone:"1 godina",withPrepositionAgo:"1 godine",withPrepositionIn:"1 godinu"},dual:"{{count}} godine",other:"{{count}} godina"},overXYears:{one:{standalone:"preko 1 godinu",withPrepositionAgo:"preko 1 godinu",withPrepositionIn:"preko 1 godinu"},dual:"preko {{count}} godine",other:"preko {{count}} godina"},almostXYears:{one:{standalone:"gotovo 1 godinu",withPrepositionAgo:"gotovo 1 godinu",withPrepositionIn:"gotovo 1 godinu"},dual:"gotovo {{count}} godine",other:"gotovo {{count}} godina"}},brt=function(t,n,r){var a,i=yrt[t];return typeof i=="string"?a=i:n===1?r!=null&&r.addSuffix?r.comparison&&r.comparison>0?a=i.one.withPrepositionIn:a=i.one.withPrepositionAgo:a=i.one.standalone:n%10>1&&n%10<5&&String(n).substr(-2,1)!=="1"?a=i.dual.replace("{{count}}",String(n)):a=i.other.replace("{{count}}",String(n)),r!=null&&r.addSuffix?r.comparison&&r.comparison>0?"za "+a:"prije "+a:a},wrt={full:"EEEE, d. MMMM y.",long:"d. MMMM y.",medium:"d. MMM y.",short:"dd. MM. y."},Srt={full:"HH:mm:ss (zzzz)",long:"HH:mm:ss z",medium:"HH:mm:ss",short:"HH:mm"},Ert={full:"{{date}} 'u' {{time}}",long:"{{date}} 'u' {{time}}",medium:"{{date}} {{time}}",short:"{{date}} {{time}}"},Trt={date:Ne({formats:wrt,defaultWidth:"full"}),time:Ne({formats:Srt,defaultWidth:"full"}),dateTime:Ne({formats:Ert,defaultWidth:"full"})},Crt={lastWeek:function(t){switch(t.getUTCDay()){case 0:return"'prošlu nedjelju u' p";case 3:return"'prošlu srijedu u' p";case 6:return"'prošlu subotu u' p";default:return"'prošli' EEEE 'u' p"}},yesterday:"'jučer u' p",today:"'danas u' p",tomorrow:"'sutra u' p",nextWeek:function(t){switch(t.getUTCDay()){case 0:return"'iduću nedjelju u' p";case 3:return"'iduću srijedu u' p";case 6:return"'iduću subotu u' p";default:return"'prošli' EEEE 'u' p"}},other:"P"},krt=function(t,n,r,a){var i=Crt[t];return typeof i=="function"?i(n):i},xrt={narrow:["pr.n.e.","AD"],abbreviated:["pr. Kr.","po. Kr."],wide:["Prije Krista","Poslije Krista"]},_rt={narrow:["1.","2.","3.","4."],abbreviated:["1. kv.","2. kv.","3. kv.","4. kv."],wide:["1. kvartal","2. kvartal","3. kvartal","4. kvartal"]},Ort={narrow:["1.","2.","3.","4.","5.","6.","7.","8.","9.","10.","11.","12."],abbreviated:["sij","velj","ožu","tra","svi","lip","srp","kol","ruj","lis","stu","pro"],wide:["siječanj","veljača","ožujak","travanj","svibanj","lipanj","srpanj","kolovoz","rujan","listopad","studeni","prosinac"]},Rrt={narrow:["1.","2.","3.","4.","5.","6.","7.","8.","9.","10.","11.","12."],abbreviated:["sij","velj","ožu","tra","svi","lip","srp","kol","ruj","lis","stu","pro"],wide:["siječnja","veljače","ožujka","travnja","svibnja","lipnja","srpnja","kolovoza","rujna","listopada","studenog","prosinca"]},Prt={narrow:["N","P","U","S","Č","P","S"],short:["ned","pon","uto","sri","čet","pet","sub"],abbreviated:["ned","pon","uto","sri","čet","pet","sub"],wide:["nedjelja","ponedjeljak","utorak","srijeda","četvrtak","petak","subota"]},Art={narrow:{am:"AM",pm:"PM",midnight:"ponoć",noon:"podne",morning:"ujutro",afternoon:"popodne",evening:"navečer",night:"noću"},abbreviated:{am:"AM",pm:"PM",midnight:"ponoć",noon:"podne",morning:"ujutro",afternoon:"popodne",evening:"navečer",night:"noću"},wide:{am:"AM",pm:"PM",midnight:"ponoć",noon:"podne",morning:"ujutro",afternoon:"poslije podne",evening:"navečer",night:"noću"}},Nrt={narrow:{am:"AM",pm:"PM",midnight:"ponoć",noon:"podne",morning:"ujutro",afternoon:"popodne",evening:"navečer",night:"noću"},abbreviated:{am:"AM",pm:"PM",midnight:"ponoć",noon:"podne",morning:"ujutro",afternoon:"popodne",evening:"navečer",night:"noću"},wide:{am:"AM",pm:"PM",midnight:"ponoć",noon:"podne",morning:"ujutro",afternoon:"poslije podne",evening:"navečer",night:"noću"}},Mrt=function(t,n){var r=Number(t);return r+"."},Irt={ordinalNumber:Mrt,era:oe({values:xrt,defaultWidth:"wide"}),quarter:oe({values:_rt,defaultWidth:"wide",argumentCallback:function(t){return t-1}}),month:oe({values:Ort,defaultWidth:"wide",formattingValues:Rrt,defaultFormattingWidth:"wide"}),day:oe({values:Prt,defaultWidth:"wide"}),dayPeriod:oe({values:Nrt,defaultWidth:"wide",formattingValues:Art,defaultFormattingWidth:"wide"})},Drt=/^(\d+)\./i,$rt=/\d+/i,Lrt={narrow:/^(pr\.n\.e\.|AD)/i,abbreviated:/^(pr\.\s?Kr\.|po\.\s?Kr\.)/i,wide:/^(Prije Krista|prije nove ere|Poslije Krista|nova era)/i},Frt={any:[/^pr/i,/^(po|nova)/i]},jrt={narrow:/^[1234]/i,abbreviated:/^[1234]\.\s?kv\.?/i,wide:/^[1234]\. kvartal/i},Urt={any:[/1/i,/2/i,/3/i,/4/i]},Brt={narrow:/^(10|11|12|[123456789])\./i,abbreviated:/^(sij|velj|(ožu|ozu)|tra|svi|lip|srp|kol|ruj|lis|stu|pro)/i,wide:/^((siječanj|siječnja|sijecanj|sijecnja)|(veljača|veljače|veljaca|veljace)|(ožujak|ožujka|ozujak|ozujka)|(travanj|travnja)|(svibanj|svibnja)|(lipanj|lipnja)|(srpanj|srpnja)|(kolovoz|kolovoza)|(rujan|rujna)|(listopad|listopada)|(studeni|studenog)|(prosinac|prosinca))/i},Wrt={narrow:[/1/i,/2/i,/3/i,/4/i,/5/i,/6/i,/7/i,/8/i,/9/i,/10/i,/11/i,/12/i],abbreviated:[/^sij/i,/^velj/i,/^(ožu|ozu)/i,/^tra/i,/^svi/i,/^lip/i,/^srp/i,/^kol/i,/^ruj/i,/^lis/i,/^stu/i,/^pro/i],wide:[/^sij/i,/^velj/i,/^(ožu|ozu)/i,/^tra/i,/^svi/i,/^lip/i,/^srp/i,/^kol/i,/^ruj/i,/^lis/i,/^stu/i,/^pro/i]},zrt={narrow:/^[npusčc]/i,short:/^(ned|pon|uto|sri|(čet|cet)|pet|sub)/i,abbreviated:/^(ned|pon|uto|sri|(čet|cet)|pet|sub)/i,wide:/^(nedjelja|ponedjeljak|utorak|srijeda|(četvrtak|cetvrtak)|petak|subota)/i},qrt={narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},Hrt={any:/^(am|pm|ponoc|ponoć|(po)?podne|navecer|navečer|noću|poslije podne|ujutro)/i},Vrt={any:{am:/^a/i,pm:/^p/i,midnight:/^pono/i,noon:/^pod/i,morning:/jutro/i,afternoon:/(poslije\s|po)+podne/i,evening:/(navece|naveče)/i,night:/(nocu|noću)/i}},Grt={ordinalNumber:Xt({matchPattern:Drt,parsePattern:$rt,valueCallback:function(t){return parseInt(t,10)}}),era:se({matchPatterns:Lrt,defaultMatchWidth:"wide",parsePatterns:Frt,defaultParseWidth:"any"}),quarter:se({matchPatterns:jrt,defaultMatchWidth:"wide",parsePatterns:Urt,defaultParseWidth:"any",valueCallback:function(t){return t+1}}),month:se({matchPatterns:Brt,defaultMatchWidth:"wide",parsePatterns:Wrt,defaultParseWidth:"wide"}),day:se({matchPatterns:zrt,defaultMatchWidth:"wide",parsePatterns:qrt,defaultParseWidth:"any"}),dayPeriod:se({matchPatterns:Hrt,defaultMatchWidth:"any",parsePatterns:Vrt,defaultParseWidth:"any"})},Yrt={code:"hr",formatDistance:brt,formatLong:Trt,formatRelative:krt,localize:Irt,match:Grt,options:{weekStartsOn:1,firstWeekContainsDate:1}};const Krt=Object.freeze(Object.defineProperty({__proto__:null,default:Yrt},Symbol.toStringTag,{value:"Module"})),Xrt=jt(Krt);var Qrt={about:"körülbelül",over:"több mint",almost:"majdnem",lessthan:"kevesebb mint"},Jrt={xseconds:" másodperc",halfaminute:"fél perc",xminutes:" perc",xhours:" óra",xdays:" nap",xweeks:" hét",xmonths:" hónap",xyears:" év"},Zrt={xseconds:{"-1":" másodperccel ezelőtt",1:" másodperc múlva",0:" másodperce"},halfaminute:{"-1":"fél perccel ezelőtt",1:"fél perc múlva",0:"fél perce"},xminutes:{"-1":" perccel ezelőtt",1:" perc múlva",0:" perce"},xhours:{"-1":" órával ezelőtt",1:" óra múlva",0:" órája"},xdays:{"-1":" nappal ezelőtt",1:" nap múlva",0:" napja"},xweeks:{"-1":" héttel ezelőtt",1:" hét múlva",0:" hete"},xmonths:{"-1":" hónappal ezelőtt",1:" hónap múlva",0:" hónapja"},xyears:{"-1":" évvel ezelőtt",1:" év múlva",0:" éve"}},eat=function(t,n,r){var a=t.match(/about|over|almost|lessthan/i),i=a?t.replace(a[0],""):t,o=(r==null?void 0:r.addSuffix)===!0,l=i.toLowerCase(),u=(r==null?void 0:r.comparison)||0,d=o?Zrt[l][u]:Jrt[l],f=l==="halfaminute"?d:n+d;if(a){var g=a[0].toLowerCase();f=Qrt[g]+" "+f}return f},tat={full:"y. MMMM d., EEEE",long:"y. MMMM d.",medium:"y. MMM d.",short:"y. MM. dd."},nat={full:"H:mm:ss zzzz",long:"H:mm:ss z",medium:"H:mm:ss",short:"H:mm"},rat={full:"{{date}} {{time}}",long:"{{date}} {{time}}",medium:"{{date}} {{time}}",short:"{{date}} {{time}}"},aat={date:Ne({formats:tat,defaultWidth:"full"}),time:Ne({formats:nat,defaultWidth:"full"}),dateTime:Ne({formats:rat,defaultWidth:"full"})},iat=["vasárnap","hétfőn","kedden","szerdán","csütörtökön","pénteken","szombaton"];function zG(e){return function(t){var n=iat[t.getUTCDay()],r=e?"":"'múlt' ";return"".concat(r,"'").concat(n,"' p'-kor'")}}var oat={lastWeek:zG(!1),yesterday:"'tegnap' p'-kor'",today:"'ma' p'-kor'",tomorrow:"'holnap' p'-kor'",nextWeek:zG(!0),other:"P"},sat=function(t,n){var r=oat[t];return typeof r=="function"?r(n):r},lat={narrow:["ie.","isz."],abbreviated:["i. e.","i. sz."],wide:["Krisztus előtt","időszámításunk szerint"]},uat={narrow:["1.","2.","3.","4."],abbreviated:["1. n.év","2. n.év","3. n.év","4. n.év"],wide:["1. negyedév","2. negyedév","3. negyedév","4. negyedév"]},cat={narrow:["I.","II.","III.","IV."],abbreviated:["I. n.év","II. n.év","III. n.év","IV. n.év"],wide:["I. negyedév","II. negyedév","III. negyedév","IV. negyedév"]},dat={narrow:["J","F","M","Á","M","J","J","A","Sz","O","N","D"],abbreviated:["jan.","febr.","márc.","ápr.","máj.","jún.","júl.","aug.","szept.","okt.","nov.","dec."],wide:["január","február","március","április","május","június","július","augusztus","szeptember","október","november","december"]},fat={narrow:["V","H","K","Sz","Cs","P","Sz"],short:["V","H","K","Sze","Cs","P","Szo"],abbreviated:["V","H","K","Sze","Cs","P","Szo"],wide:["vasárnap","hétfő","kedd","szerda","csütörtök","péntek","szombat"]},pat={narrow:{am:"de.",pm:"du.",midnight:"éjfél",noon:"dél",morning:"reggel",afternoon:"du.",evening:"este",night:"éjjel"},abbreviated:{am:"de.",pm:"du.",midnight:"éjfél",noon:"dél",morning:"reggel",afternoon:"du.",evening:"este",night:"éjjel"},wide:{am:"de.",pm:"du.",midnight:"éjfél",noon:"dél",morning:"reggel",afternoon:"délután",evening:"este",night:"éjjel"}},hat=function(t,n){var r=Number(t);return r+"."},mat={ordinalNumber:hat,era:oe({values:lat,defaultWidth:"wide"}),quarter:oe({values:uat,defaultWidth:"wide",argumentCallback:function(t){return t-1},formattingValues:cat,defaultFormattingWidth:"wide"}),month:oe({values:dat,defaultWidth:"wide"}),day:oe({values:fat,defaultWidth:"wide"}),dayPeriod:oe({values:pat,defaultWidth:"wide"})},gat=/^(\d+)\.?/i,vat=/\d+/i,yat={narrow:/^(ie\.|isz\.)/i,abbreviated:/^(i\.\s?e\.?|b?\s?c\s?e|i\.\s?sz\.?)/i,wide:/^(Krisztus előtt|időszámításunk előtt|időszámításunk szerint|i\. sz\.)/i},bat={narrow:[/ie/i,/isz/i],abbreviated:[/^(i\.?\s?e\.?|b\s?ce)/i,/^(i\.?\s?sz\.?|c\s?e)/i],any:[/előtt/i,/(szerint|i. sz.)/i]},wat={narrow:/^[1234]\.?/i,abbreviated:/^[1234]?\.?\s?n\.év/i,wide:/^([1234]|I|II|III|IV)?\.?\s?negyedév/i},Sat={any:[/1|I$/i,/2|II$/i,/3|III/i,/4|IV/i]},Eat={narrow:/^[jfmaásond]|sz/i,abbreviated:/^(jan\.?|febr\.?|márc\.?|ápr\.?|máj\.?|jún\.?|júl\.?|aug\.?|szept\.?|okt\.?|nov\.?|dec\.?)/i,wide:/^(január|február|március|április|május|június|július|augusztus|szeptember|október|november|december)/i},Tat={narrow:[/^j/i,/^f/i,/^m/i,/^a|á/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s|sz/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^már/i,/^áp/i,/^máj/i,/^jún/i,/^júl/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},Cat={narrow:/^([vhkpc]|sz|cs|sz)/i,short:/^([vhkp]|sze|cs|szo)/i,abbreviated:/^([vhkp]|sze|cs|szo)/i,wide:/^(vasárnap|hétfő|kedd|szerda|csütörtök|péntek|szombat)/i},kat={narrow:[/^v/i,/^h/i,/^k/i,/^sz/i,/^c/i,/^p/i,/^sz/i],any:[/^v/i,/^h/i,/^k/i,/^sze/i,/^c/i,/^p/i,/^szo/i]},xat={any:/^((de|du)\.?|éjfél|délután|dél|reggel|este|éjjel)/i},_at={any:{am:/^de\.?/i,pm:/^du\.?/i,midnight:/^éjf/i,noon:/^dé/i,morning:/reg/i,afternoon:/^délu\.?/i,evening:/es/i,night:/éjj/i}},Oat={ordinalNumber:Xt({matchPattern:gat,parsePattern:vat,valueCallback:function(t){return parseInt(t,10)}}),era:se({matchPatterns:yat,defaultMatchWidth:"wide",parsePatterns:bat,defaultParseWidth:"any"}),quarter:se({matchPatterns:wat,defaultMatchWidth:"wide",parsePatterns:Sat,defaultParseWidth:"any",valueCallback:function(t){return t+1}}),month:se({matchPatterns:Eat,defaultMatchWidth:"wide",parsePatterns:Tat,defaultParseWidth:"any"}),day:se({matchPatterns:Cat,defaultMatchWidth:"wide",parsePatterns:kat,defaultParseWidth:"any"}),dayPeriod:se({matchPatterns:xat,defaultMatchWidth:"any",parsePatterns:_at,defaultParseWidth:"any"})},Rat={code:"hu",formatDistance:eat,formatLong:aat,formatRelative:sat,localize:mat,match:Oat,options:{weekStartsOn:1,firstWeekContainsDate:4}};const Pat=Object.freeze(Object.defineProperty({__proto__:null,default:Rat},Symbol.toStringTag,{value:"Module"})),Aat=jt(Pat);var Nat={lessThanXSeconds:{one:"ավելի քիչ քան 1 վայրկյան",other:"ավելի քիչ քան {{count}} վայրկյան"},xSeconds:{one:"1 վայրկյան",other:"{{count}} վայրկյան"},halfAMinute:"կես րոպե",lessThanXMinutes:{one:"ավելի քիչ քան 1 րոպե",other:"ավելի քիչ քան {{count}} րոպե"},xMinutes:{one:"1 րոպե",other:"{{count}} րոպե"},aboutXHours:{one:"մոտ 1 ժամ",other:"մոտ {{count}} ժամ"},xHours:{one:"1 ժամ",other:"{{count}} ժամ"},xDays:{one:"1 օր",other:"{{count}} օր"},aboutXWeeks:{one:"մոտ 1 շաբաթ",other:"մոտ {{count}} շաբաթ"},xWeeks:{one:"1 շաբաթ",other:"{{count}} շաբաթ"},aboutXMonths:{one:"մոտ 1 ամիս",other:"մոտ {{count}} ամիս"},xMonths:{one:"1 ամիս",other:"{{count}} ամիս"},aboutXYears:{one:"մոտ 1 տարի",other:"մոտ {{count}} տարի"},xYears:{one:"1 տարի",other:"{{count}} տարի"},overXYears:{one:"ավելի քան 1 տարի",other:"ավելի քան {{count}} տարի"},almostXYears:{one:"համարյա 1 տարի",other:"համարյա {{count}} տարի"}},Mat=function(t,n,r){var a,i=Nat[t];return typeof i=="string"?a=i:n===1?a=i.one:a=i.other.replace("{{count}}",String(n)),r!=null&&r.addSuffix?r.comparison&&r.comparison>0?a+" հետո":a+" առաջ":a},Iat={full:"d MMMM, y, EEEE",long:"d MMMM, y",medium:"d MMM, y",short:"dd.MM.yyyy"},Dat={full:"HH:mm:ss zzzz",long:"HH:mm:ss z",medium:"HH:mm:ss",short:"HH:mm"},$at={full:"{{date}} 'ժ․'{{time}}",long:"{{date}} 'ժ․'{{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},Lat={date:Ne({formats:Iat,defaultWidth:"full"}),time:Ne({formats:Dat,defaultWidth:"full"}),dateTime:Ne({formats:$at,defaultWidth:"full"})},Fat={lastWeek:"'նախորդ' eeee p'֊ին'",yesterday:"'երեկ' p'֊ին'",today:"'այսօր' p'֊ին'",tomorrow:"'վաղը' p'֊ին'",nextWeek:"'հաջորդ' eeee p'֊ին'",other:"P"},jat=function(t,n,r,a){return Fat[t]},Uat={narrow:["Ք","Մ"],abbreviated:["ՔԱ","ՄԹ"],wide:["Քրիստոսից առաջ","Մեր թվարկության"]},Bat={narrow:["1","2","3","4"],abbreviated:["Ք1","Ք2","Ք3","Ք4"],wide:["1֊ին քառորդ","2֊րդ քառորդ","3֊րդ քառորդ","4֊րդ քառորդ"]},Wat={narrow:["Հ","Փ","Մ","Ա","Մ","Հ","Հ","Օ","Ս","Հ","Ն","Դ"],abbreviated:["հուն","փետ","մար","ապր","մայ","հուն","հուլ","օգս","սեպ","հոկ","նոյ","դեկ"],wide:["հունվար","փետրվար","մարտ","ապրիլ","մայիս","հունիս","հուլիս","օգոստոս","սեպտեմբեր","հոկտեմբեր","նոյեմբեր","դեկտեմբեր"]},zat={narrow:["Կ","Ե","Ե","Չ","Հ","Ո","Շ"],short:["կր","եր","եք","չք","հգ","ուր","շբ"],abbreviated:["կիր","երկ","երք","չոր","հնգ","ուրբ","շաբ"],wide:["կիրակի","երկուշաբթի","երեքշաբթի","չորեքշաբթի","հինգշաբթի","ուրբաթ","շաբաթ"]},qat={narrow:{am:"a",pm:"p",midnight:"կեսգշ",noon:"կեսօր",morning:"առավոտ",afternoon:"ցերեկ",evening:"երեկո",night:"գիշեր"},abbreviated:{am:"AM",pm:"PM",midnight:"կեսգիշեր",noon:"կեսօր",morning:"առավոտ",afternoon:"ցերեկ",evening:"երեկո",night:"գիշեր"},wide:{am:"a.m.",pm:"p.m.",midnight:"կեսգիշեր",noon:"կեսօր",morning:"առավոտ",afternoon:"ցերեկ",evening:"երեկո",night:"գիշեր"}},Hat={narrow:{am:"a",pm:"p",midnight:"կեսգշ",noon:"կեսօր",morning:"առավոտը",afternoon:"ցերեկը",evening:"երեկոյան",night:"գիշերը"},abbreviated:{am:"AM",pm:"PM",midnight:"կեսգիշերին",noon:"կեսօրին",morning:"առավոտը",afternoon:"ցերեկը",evening:"երեկոյան",night:"գիշերը"},wide:{am:"a.m.",pm:"p.m.",midnight:"կեսգիշերին",noon:"կեսօրին",morning:"առավոտը",afternoon:"ցերեկը",evening:"երեկոյան",night:"գիշերը"}},Vat=function(t,n){var r=Number(t),a=r%100;return a<10&&a%10===1?r+"֊ին":r+"֊րդ"},Gat={ordinalNumber:Vat,era:oe({values:Uat,defaultWidth:"wide"}),quarter:oe({values:Bat,defaultWidth:"wide",argumentCallback:function(t){return t-1}}),month:oe({values:Wat,defaultWidth:"wide"}),day:oe({values:zat,defaultWidth:"wide"}),dayPeriod:oe({values:qat,defaultWidth:"wide",formattingValues:Hat,defaultFormattingWidth:"wide"})},Yat=/^(\d+)((-|֊)?(ին|րդ))?/i,Kat=/\d+/i,Xat={narrow:/^(Ք|Մ)/i,abbreviated:/^(Ք\.?\s?Ա\.?|Մ\.?\s?Թ\.?\s?Ա\.?|Մ\.?\s?Թ\.?|Ք\.?\s?Հ\.?)/i,wide:/^(քրիստոսից առաջ|մեր թվարկությունից առաջ|մեր թվարկության|քրիստոսից հետո)/i},Qat={any:[/^ք/i,/^մ/i]},Jat={narrow:/^[1234]/i,abbreviated:/^ք[1234]/i,wide:/^[1234]((-|֊)?(ին|րդ)) քառորդ/i},Zat={any:[/1/i,/2/i,/3/i,/4/i]},eit={narrow:/^[հփմաօսնդ]/i,abbreviated:/^(հուն|փետ|մար|ապր|մայ|հուն|հուլ|օգս|սեպ|հոկ|նոյ|դեկ)/i,wide:/^(հունվար|փետրվար|մարտ|ապրիլ|մայիս|հունիս|հուլիս|օգոստոս|սեպտեմբեր|հոկտեմբեր|նոյեմբեր|դեկտեմբեր)/i},tit={narrow:[/^հ/i,/^փ/i,/^մ/i,/^ա/i,/^մ/i,/^հ/i,/^հ/i,/^օ/i,/^ս/i,/^հ/i,/^ն/i,/^դ/i],any:[/^հու/i,/^փ/i,/^մար/i,/^ա/i,/^մայ/i,/^հուն/i,/^հուլ/i,/^օ/i,/^ս/i,/^հոկ/i,/^ն/i,/^դ/i]},nit={narrow:/^[եչհոշկ]/i,short:/^(կր|եր|եք|չք|հգ|ուր|շբ)/i,abbreviated:/^(կիր|երկ|երք|չոր|հնգ|ուրբ|շաբ)/i,wide:/^(կիրակի|երկուշաբթի|երեքշաբթի|չորեքշաբթի|հինգշաբթի|ուրբաթ|շաբաթ)/i},rit={narrow:[/^կ/i,/^ե/i,/^ե/i,/^չ/i,/^հ/i,/^(ո|Ո)/,/^շ/i],short:[/^կ/i,/^եր/i,/^եք/i,/^չ/i,/^հ/i,/^(ո|Ո)/,/^շ/i],abbreviated:[/^կ/i,/^երկ/i,/^երք/i,/^չ/i,/^հ/i,/^(ո|Ո)/,/^շ/i],wide:[/^կ/i,/^երկ/i,/^երե/i,/^չ/i,/^հ/i,/^(ո|Ո)/,/^շ/i]},ait={narrow:/^([ap]|կեսգշ|կեսօր|(առավոտը?|ցերեկը?|երեկո(յան)?|գիշերը?))/i,any:/^([ap]\.?\s?m\.?|կեսգիշեր(ին)?|կեսօր(ին)?|(առավոտը?|ցերեկը?|երեկո(յան)?|գիշերը?))/i},iit={any:{am:/^a/i,pm:/^p/i,midnight:/կեսգիշեր/i,noon:/կեսօր/i,morning:/առավոտ/i,afternoon:/ցերեկ/i,evening:/երեկո/i,night:/գիշեր/i}},oit={ordinalNumber:Xt({matchPattern:Yat,parsePattern:Kat,valueCallback:function(t){return parseInt(t,10)}}),era:se({matchPatterns:Xat,defaultMatchWidth:"wide",parsePatterns:Qat,defaultParseWidth:"any"}),quarter:se({matchPatterns:Jat,defaultMatchWidth:"wide",parsePatterns:Zat,defaultParseWidth:"any",valueCallback:function(t){return t+1}}),month:se({matchPatterns:eit,defaultMatchWidth:"wide",parsePatterns:tit,defaultParseWidth:"any"}),day:se({matchPatterns:nit,defaultMatchWidth:"wide",parsePatterns:rit,defaultParseWidth:"wide"}),dayPeriod:se({matchPatterns:ait,defaultMatchWidth:"any",parsePatterns:iit,defaultParseWidth:"any"})},sit={code:"hy",formatDistance:Mat,formatLong:Lat,formatRelative:jat,localize:Gat,match:oit,options:{weekStartsOn:1,firstWeekContainsDate:1}};const lit=Object.freeze(Object.defineProperty({__proto__:null,default:sit},Symbol.toStringTag,{value:"Module"})),uit=jt(lit);var cit={lessThanXSeconds:{one:"kurang dari 1 detik",other:"kurang dari {{count}} detik"},xSeconds:{one:"1 detik",other:"{{count}} detik"},halfAMinute:"setengah menit",lessThanXMinutes:{one:"kurang dari 1 menit",other:"kurang dari {{count}} menit"},xMinutes:{one:"1 menit",other:"{{count}} menit"},aboutXHours:{one:"sekitar 1 jam",other:"sekitar {{count}} jam"},xHours:{one:"1 jam",other:"{{count}} jam"},xDays:{one:"1 hari",other:"{{count}} hari"},aboutXWeeks:{one:"sekitar 1 minggu",other:"sekitar {{count}} minggu"},xWeeks:{one:"1 minggu",other:"{{count}} minggu"},aboutXMonths:{one:"sekitar 1 bulan",other:"sekitar {{count}} bulan"},xMonths:{one:"1 bulan",other:"{{count}} bulan"},aboutXYears:{one:"sekitar 1 tahun",other:"sekitar {{count}} tahun"},xYears:{one:"1 tahun",other:"{{count}} tahun"},overXYears:{one:"lebih dari 1 tahun",other:"lebih dari {{count}} tahun"},almostXYears:{one:"hampir 1 tahun",other:"hampir {{count}} tahun"}},dit=function(t,n,r){var a,i=cit[t];return typeof i=="string"?a=i:n===1?a=i.one:a=i.other.replace("{{count}}",n.toString()),r!=null&&r.addSuffix?r.comparison&&r.comparison>0?"dalam waktu "+a:a+" yang lalu":a},fit={full:"EEEE, d MMMM yyyy",long:"d MMMM yyyy",medium:"d MMM yyyy",short:"d/M/yyyy"},pit={full:"HH.mm.ss",long:"HH.mm.ss",medium:"HH.mm",short:"HH.mm"},hit={full:"{{date}} 'pukul' {{time}}",long:"{{date}} 'pukul' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},mit={date:Ne({formats:fit,defaultWidth:"full"}),time:Ne({formats:pit,defaultWidth:"full"}),dateTime:Ne({formats:hit,defaultWidth:"full"})},git={lastWeek:"eeee 'lalu pukul' p",yesterday:"'Kemarin pukul' p",today:"'Hari ini pukul' p",tomorrow:"'Besok pukul' p",nextWeek:"eeee 'pukul' p",other:"P"},vit=function(t,n,r,a){return git[t]},yit={narrow:["SM","M"],abbreviated:["SM","M"],wide:["Sebelum Masehi","Masehi"]},bit={narrow:["1","2","3","4"],abbreviated:["K1","K2","K3","K4"],wide:["Kuartal ke-1","Kuartal ke-2","Kuartal ke-3","Kuartal ke-4"]},wit={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","Mei","Jun","Jul","Agt","Sep","Okt","Nov","Des"],wide:["Januari","Februari","Maret","April","Mei","Juni","Juli","Agustus","September","Oktober","November","Desember"]},Sit={narrow:["M","S","S","R","K","J","S"],short:["Min","Sen","Sel","Rab","Kam","Jum","Sab"],abbreviated:["Min","Sen","Sel","Rab","Kam","Jum","Sab"],wide:["Minggu","Senin","Selasa","Rabu","Kamis","Jumat","Sabtu"]},Eit={narrow:{am:"AM",pm:"PM",midnight:"tengah malam",noon:"tengah hari",morning:"pagi",afternoon:"siang",evening:"sore",night:"malam"},abbreviated:{am:"AM",pm:"PM",midnight:"tengah malam",noon:"tengah hari",morning:"pagi",afternoon:"siang",evening:"sore",night:"malam"},wide:{am:"AM",pm:"PM",midnight:"tengah malam",noon:"tengah hari",morning:"pagi",afternoon:"siang",evening:"sore",night:"malam"}},Tit={narrow:{am:"AM",pm:"PM",midnight:"tengah malam",noon:"tengah hari",morning:"pagi",afternoon:"siang",evening:"sore",night:"malam"},abbreviated:{am:"AM",pm:"PM",midnight:"tengah malam",noon:"tengah hari",morning:"pagi",afternoon:"siang",evening:"sore",night:"malam"},wide:{am:"AM",pm:"PM",midnight:"tengah malam",noon:"tengah hari",morning:"pagi",afternoon:"siang",evening:"sore",night:"malam"}},Cit=function(t,n){var r=Number(t);return"ke-"+r},kit={ordinalNumber:Cit,era:oe({values:yit,defaultWidth:"wide"}),quarter:oe({values:bit,defaultWidth:"wide",argumentCallback:function(t){return t-1}}),month:oe({values:wit,defaultWidth:"wide"}),day:oe({values:Sit,defaultWidth:"wide"}),dayPeriod:oe({values:Eit,defaultWidth:"wide",formattingValues:Tit,defaultFormattingWidth:"wide"})},xit=/^ke-(\d+)?/i,_it=/\d+/i,Oit={narrow:/^(sm|m)/i,abbreviated:/^(s\.?\s?m\.?|s\.?\s?e\.?\s?u\.?|m\.?|e\.?\s?u\.?)/i,wide:/^(sebelum masehi|sebelum era umum|masehi|era umum)/i},Rit={any:[/^s/i,/^(m|e)/i]},Pit={narrow:/^[1234]/i,abbreviated:/^K-?\s[1234]/i,wide:/^Kuartal ke-?\s?[1234]/i},Ait={any:[/1/i,/2/i,/3/i,/4/i]},Nit={narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|mei|jun|jul|agt|sep|okt|nov|des)/i,wide:/^(januari|februari|maret|april|mei|juni|juli|agustus|september|oktober|november|desember)/i},Mit={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^ma/i,/^ap/i,/^me/i,/^jun/i,/^jul/i,/^ag/i,/^s/i,/^o/i,/^n/i,/^d/i]},Iit={narrow:/^[srkjm]/i,short:/^(min|sen|sel|rab|kam|jum|sab)/i,abbreviated:/^(min|sen|sel|rab|kam|jum|sab)/i,wide:/^(minggu|senin|selasa|rabu|kamis|jumat|sabtu)/i},Dit={narrow:[/^m/i,/^s/i,/^s/i,/^r/i,/^k/i,/^j/i,/^s/i],any:[/^m/i,/^sen/i,/^sel/i,/^r/i,/^k/i,/^j/i,/^sa/i]},$it={narrow:/^(a|p|tengah m|tengah h|(di(\swaktu)?) (pagi|siang|sore|malam))/i,any:/^([ap]\.?\s?m\.?|tengah malam|tengah hari|(di(\swaktu)?) (pagi|siang|sore|malam))/i},Lit={any:{am:/^a/i,pm:/^pm/i,midnight:/^tengah m/i,noon:/^tengah h/i,morning:/pagi/i,afternoon:/siang/i,evening:/sore/i,night:/malam/i}},Fit={ordinalNumber:Xt({matchPattern:xit,parsePattern:_it,valueCallback:function(t){return parseInt(t,10)}}),era:se({matchPatterns:Oit,defaultMatchWidth:"wide",parsePatterns:Rit,defaultParseWidth:"any"}),quarter:se({matchPatterns:Pit,defaultMatchWidth:"wide",parsePatterns:Ait,defaultParseWidth:"any",valueCallback:function(t){return t+1}}),month:se({matchPatterns:Nit,defaultMatchWidth:"wide",parsePatterns:Mit,defaultParseWidth:"any"}),day:se({matchPatterns:Iit,defaultMatchWidth:"wide",parsePatterns:Dit,defaultParseWidth:"any"}),dayPeriod:se({matchPatterns:$it,defaultMatchWidth:"any",parsePatterns:Lit,defaultParseWidth:"any"})},jit={code:"id",formatDistance:dit,formatLong:mit,formatRelative:vit,localize:kit,match:Fit,options:{weekStartsOn:1,firstWeekContainsDate:1}};const Uit=Object.freeze(Object.defineProperty({__proto__:null,default:jit},Symbol.toStringTag,{value:"Module"})),Bit=jt(Uit);var Wit={lessThanXSeconds:{one:"minna en 1 sekúnda",other:"minna en {{count}} sekúndur"},xSeconds:{one:"1 sekúnda",other:"{{count}} sekúndur"},halfAMinute:"hálf mínúta",lessThanXMinutes:{one:"minna en 1 mínúta",other:"minna en {{count}} mínútur"},xMinutes:{one:"1 mínúta",other:"{{count}} mínútur"},aboutXHours:{one:"u.þ.b. 1 klukkustund",other:"u.þ.b. {{count}} klukkustundir"},xHours:{one:"1 klukkustund",other:"{{count}} klukkustundir"},xDays:{one:"1 dagur",other:"{{count}} dagar"},aboutXWeeks:{one:"um viku",other:"um {{count}} vikur"},xWeeks:{one:"1 viku",other:"{{count}} vikur"},aboutXMonths:{one:"u.þ.b. 1 mánuður",other:"u.þ.b. {{count}} mánuðir"},xMonths:{one:"1 mánuður",other:"{{count}} mánuðir"},aboutXYears:{one:"u.þ.b. 1 ár",other:"u.þ.b. {{count}} ár"},xYears:{one:"1 ár",other:"{{count}} ár"},overXYears:{one:"meira en 1 ár",other:"meira en {{count}} ár"},almostXYears:{one:"næstum 1 ár",other:"næstum {{count}} ár"}},zit=function(t,n,r){var a,i=Wit[t];return typeof i=="string"?a=i:n===1?a=i.one:a=i.other.replace("{{count}}",n.toString()),r!=null&&r.addSuffix?r.comparison&&r.comparison>0?"í "+a:a+" síðan":a},qit={full:"EEEE, do MMMM y",long:"do MMMM y",medium:"do MMM y",short:"d.MM.y"},Hit={full:"'kl'. HH:mm:ss zzzz",long:"HH:mm:ss z",medium:"HH:mm:ss",short:"HH:mm"},Vit={full:"{{date}} 'kl.' {{time}}",long:"{{date}} 'kl.' {{time}}",medium:"{{date}} {{time}}",short:"{{date}} {{time}}"},Git={date:Ne({formats:qit,defaultWidth:"full"}),time:Ne({formats:Hit,defaultWidth:"full"}),dateTime:Ne({formats:Vit,defaultWidth:"full"})},Yit={lastWeek:"'síðasta' dddd 'kl.' p",yesterday:"'í gær kl.' p",today:"'í dag kl.' p",tomorrow:"'á morgun kl.' p",nextWeek:"dddd 'kl.' p",other:"P"},Kit=function(t,n,r,a){return Yit[t]},Xit={narrow:["f.Kr.","e.Kr."],abbreviated:["f.Kr.","e.Kr."],wide:["fyrir Krist","eftir Krist"]},Qit={narrow:["1","2","3","4"],abbreviated:["1F","2F","3F","4F"],wide:["1. fjórðungur","2. fjórðungur","3. fjórðungur","4. fjórðungur"]},Jit={narrow:["J","F","M","A","M","J","J","Á","S","Ó","N","D"],abbreviated:["jan.","feb.","mars","apríl","maí","júní","júlí","ágúst","sept.","okt.","nóv.","des."],wide:["janúar","febrúar","mars","apríl","maí","júní","júlí","ágúst","september","október","nóvember","desember"]},Zit={narrow:["S","M","Þ","M","F","F","L"],short:["Su","Má","Þr","Mi","Fi","Fö","La"],abbreviated:["sun.","mán.","þri.","mið.","fim.","fös.","lau."],wide:["sunnudagur","mánudagur","þriðjudagur","miðvikudagur","fimmtudagur","föstudagur","laugardagur"]},eot={narrow:{am:"f",pm:"e",midnight:"miðnætti",noon:"hádegi",morning:"morgunn",afternoon:"síðdegi",evening:"kvöld",night:"nótt"},abbreviated:{am:"f.h.",pm:"e.h.",midnight:"miðnætti",noon:"hádegi",morning:"morgunn",afternoon:"síðdegi",evening:"kvöld",night:"nótt"},wide:{am:"fyrir hádegi",pm:"eftir hádegi",midnight:"miðnætti",noon:"hádegi",morning:"morgunn",afternoon:"síðdegi",evening:"kvöld",night:"nótt"}},tot={narrow:{am:"f",pm:"e",midnight:"á miðnætti",noon:"á hádegi",morning:"að morgni",afternoon:"síðdegis",evening:"um kvöld",night:"um nótt"},abbreviated:{am:"f.h.",pm:"e.h.",midnight:"á miðnætti",noon:"á hádegi",morning:"að morgni",afternoon:"síðdegis",evening:"um kvöld",night:"um nótt"},wide:{am:"fyrir hádegi",pm:"eftir hádegi",midnight:"á miðnætti",noon:"á hádegi",morning:"að morgni",afternoon:"síðdegis",evening:"um kvöld",night:"um nótt"}},not=function(t,n){var r=Number(t);return r+"."},rot={ordinalNumber:not,era:oe({values:Xit,defaultWidth:"wide"}),quarter:oe({values:Qit,defaultWidth:"wide",argumentCallback:function(t){return t-1}}),month:oe({values:Jit,defaultWidth:"wide"}),day:oe({values:Zit,defaultWidth:"wide"}),dayPeriod:oe({values:eot,defaultWidth:"wide",formattingValues:tot,defaultFormattingWidth:"wide"})},aot=/^(\d+)(\.)?/i,iot=/\d+(\.)?/i,oot={narrow:/^(f\.Kr\.|e\.Kr\.)/i,abbreviated:/^(f\.Kr\.|e\.Kr\.)/i,wide:/^(fyrir Krist|eftir Krist)/i},sot={any:[/^(f\.Kr\.)/i,/^(e\.Kr\.)/i]},lot={narrow:/^[1234]\.?/i,abbreviated:/^q[1234]\.?/i,wide:/^[1234]\.? fjórðungur/i},uot={any:[/1\.?/i,/2\.?/i,/3\.?/i,/4\.?/i]},cot={narrow:/^[jfmásónd]/i,abbreviated:/^(jan\.|feb\.|mars\.|apríl\.|maí|júní|júlí|águst|sep\.|oct\.|nov\.|dec\.)/i,wide:/^(januar|febrúar|mars|apríl|maí|júní|júlí|águst|september|október|nóvember|desember)/i},dot={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^á/i,/^s/i,/^ó/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^maí/i,/^jún/i,/^júl/i,/^áu/i,/^s/i,/^ó/i,/^n/i,/^d/i]},fot={narrow:/^[smtwf]/i,short:/^(su|má|þr|mi|fi|fö|la)/i,abbreviated:/^(sun|mán|þri|mið|fim|fös|lau)\.?/i,wide:/^(sunnudagur|mánudagur|þriðjudagur|miðvikudagur|fimmtudagur|föstudagur|laugardagur)/i},pot={narrow:[/^s/i,/^m/i,/^þ/i,/^m/i,/^f/i,/^f/i,/^l/i],any:[/^su/i,/^má/i,/^þr/i,/^mi/i,/^fi/i,/^fö/i,/^la/i]},hot={narrow:/^(f|e|síðdegis|(á|að|um) (morgni|kvöld|nótt|miðnætti))/i,any:/^(fyrir hádegi|eftir hádegi|[ef]\.?h\.?|síðdegis|morgunn|(á|að|um) (morgni|kvöld|nótt|miðnætti))/i},mot={any:{am:/^f/i,pm:/^e/i,midnight:/^mi/i,noon:/^há/i,morning:/morgunn/i,afternoon:/síðdegi/i,evening:/kvöld/i,night:/nótt/i}},got={ordinalNumber:Xt({matchPattern:aot,parsePattern:iot,valueCallback:function(t){return parseInt(t,10)}}),era:se({matchPatterns:oot,defaultMatchWidth:"wide",parsePatterns:sot,defaultParseWidth:"any"}),quarter:se({matchPatterns:lot,defaultMatchWidth:"wide",parsePatterns:uot,defaultParseWidth:"any",valueCallback:function(t){return t+1}}),month:se({matchPatterns:cot,defaultMatchWidth:"wide",parsePatterns:dot,defaultParseWidth:"any"}),day:se({matchPatterns:fot,defaultMatchWidth:"wide",parsePatterns:pot,defaultParseWidth:"any"}),dayPeriod:se({matchPatterns:hot,defaultMatchWidth:"any",parsePatterns:mot,defaultParseWidth:"any"})},vot={code:"is",formatDistance:zit,formatLong:Git,formatRelative:Kit,localize:rot,match:got,options:{weekStartsOn:1,firstWeekContainsDate:4}};const yot=Object.freeze(Object.defineProperty({__proto__:null,default:vot},Symbol.toStringTag,{value:"Module"})),bot=jt(yot);var wot={lessThanXSeconds:{one:"meno di un secondo",other:"meno di {{count}} secondi"},xSeconds:{one:"un secondo",other:"{{count}} secondi"},halfAMinute:"alcuni secondi",lessThanXMinutes:{one:"meno di un minuto",other:"meno di {{count}} minuti"},xMinutes:{one:"un minuto",other:"{{count}} minuti"},aboutXHours:{one:"circa un'ora",other:"circa {{count}} ore"},xHours:{one:"un'ora",other:"{{count}} ore"},xDays:{one:"un giorno",other:"{{count}} giorni"},aboutXWeeks:{one:"circa una settimana",other:"circa {{count}} settimane"},xWeeks:{one:"una settimana",other:"{{count}} settimane"},aboutXMonths:{one:"circa un mese",other:"circa {{count}} mesi"},xMonths:{one:"un mese",other:"{{count}} mesi"},aboutXYears:{one:"circa un anno",other:"circa {{count}} anni"},xYears:{one:"un anno",other:"{{count}} anni"},overXYears:{one:"più di un anno",other:"più di {{count}} anni"},almostXYears:{one:"quasi un anno",other:"quasi {{count}} anni"}},Sot=function(t,n,r){var a,i=wot[t];return typeof i=="string"?a=i:n===1?a=i.one:a=i.other.replace("{{count}}",n.toString()),r!=null&&r.addSuffix?r.comparison&&r.comparison>0?"tra "+a:a+" fa":a},Eot={full:"EEEE d MMMM y",long:"d MMMM y",medium:"d MMM y",short:"dd/MM/y"},Tot={full:"HH:mm:ss zzzz",long:"HH:mm:ss z",medium:"HH:mm:ss",short:"HH:mm"},Cot={full:"{{date}} {{time}}",long:"{{date}} {{time}}",medium:"{{date}} {{time}}",short:"{{date}} {{time}}"},kot={date:Ne({formats:Eot,defaultWidth:"full"}),time:Ne({formats:Tot,defaultWidth:"full"}),dateTime:Ne({formats:Cot,defaultWidth:"full"})},k4=["domenica","lunedì","martedì","mercoledì","giovedì","venerdì","sabato"];function xot(e){switch(e){case 0:return"'domenica scorsa alle' p";default:return"'"+k4[e]+" scorso alle' p"}}function qG(e){return"'"+k4[e]+" alle' p"}function _ot(e){switch(e){case 0:return"'domenica prossima alle' p";default:return"'"+k4[e]+" prossimo alle' p"}}var Oot={lastWeek:function(t,n,r){var a=t.getUTCDay();return wi(t,n,r)?qG(a):xot(a)},yesterday:"'ieri alle' p",today:"'oggi alle' p",tomorrow:"'domani alle' p",nextWeek:function(t,n,r){var a=t.getUTCDay();return wi(t,n,r)?qG(a):_ot(a)},other:"P"},Rot=function(t,n,r,a){var i=Oot[t];return typeof i=="function"?i(n,r,a):i},Pot={narrow:["aC","dC"],abbreviated:["a.C.","d.C."],wide:["avanti Cristo","dopo Cristo"]},Aot={narrow:["1","2","3","4"],abbreviated:["T1","T2","T3","T4"],wide:["1º trimestre","2º trimestre","3º trimestre","4º trimestre"]},Not={narrow:["G","F","M","A","M","G","L","A","S","O","N","D"],abbreviated:["gen","feb","mar","apr","mag","giu","lug","ago","set","ott","nov","dic"],wide:["gennaio","febbraio","marzo","aprile","maggio","giugno","luglio","agosto","settembre","ottobre","novembre","dicembre"]},Mot={narrow:["D","L","M","M","G","V","S"],short:["dom","lun","mar","mer","gio","ven","sab"],abbreviated:["dom","lun","mar","mer","gio","ven","sab"],wide:["domenica","lunedì","martedì","mercoledì","giovedì","venerdì","sabato"]},Iot={narrow:{am:"m.",pm:"p.",midnight:"mezzanotte",noon:"mezzogiorno",morning:"mattina",afternoon:"pomeriggio",evening:"sera",night:"notte"},abbreviated:{am:"AM",pm:"PM",midnight:"mezzanotte",noon:"mezzogiorno",morning:"mattina",afternoon:"pomeriggio",evening:"sera",night:"notte"},wide:{am:"AM",pm:"PM",midnight:"mezzanotte",noon:"mezzogiorno",morning:"mattina",afternoon:"pomeriggio",evening:"sera",night:"notte"}},Dot={narrow:{am:"m.",pm:"p.",midnight:"mezzanotte",noon:"mezzogiorno",morning:"di mattina",afternoon:"del pomeriggio",evening:"di sera",night:"di notte"},abbreviated:{am:"AM",pm:"PM",midnight:"mezzanotte",noon:"mezzogiorno",morning:"di mattina",afternoon:"del pomeriggio",evening:"di sera",night:"di notte"},wide:{am:"AM",pm:"PM",midnight:"mezzanotte",noon:"mezzogiorno",morning:"di mattina",afternoon:"del pomeriggio",evening:"di sera",night:"di notte"}},$ot=function(t,n){var r=Number(t);return String(r)},Lot={ordinalNumber:$ot,era:oe({values:Pot,defaultWidth:"wide"}),quarter:oe({values:Aot,defaultWidth:"wide",argumentCallback:function(t){return t-1}}),month:oe({values:Not,defaultWidth:"wide"}),day:oe({values:Mot,defaultWidth:"wide"}),dayPeriod:oe({values:Iot,defaultWidth:"wide",formattingValues:Dot,defaultFormattingWidth:"wide"})},Fot=/^(\d+)(º)?/i,jot=/\d+/i,Uot={narrow:/^(aC|dC)/i,abbreviated:/^(a\.?\s?C\.?|a\.?\s?e\.?\s?v\.?|d\.?\s?C\.?|e\.?\s?v\.?)/i,wide:/^(avanti Cristo|avanti Era Volgare|dopo Cristo|Era Volgare)/i},Bot={any:[/^a/i,/^(d|e)/i]},Wot={narrow:/^[1234]/i,abbreviated:/^t[1234]/i,wide:/^[1234](º)? trimestre/i},zot={any:[/1/i,/2/i,/3/i,/4/i]},qot={narrow:/^[gfmalsond]/i,abbreviated:/^(gen|feb|mar|apr|mag|giu|lug|ago|set|ott|nov|dic)/i,wide:/^(gennaio|febbraio|marzo|aprile|maggio|giugno|luglio|agosto|settembre|ottobre|novembre|dicembre)/i},Hot={narrow:[/^g/i,/^f/i,/^m/i,/^a/i,/^m/i,/^g/i,/^l/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ge/i,/^f/i,/^mar/i,/^ap/i,/^mag/i,/^gi/i,/^l/i,/^ag/i,/^s/i,/^o/i,/^n/i,/^d/i]},Vot={narrow:/^[dlmgvs]/i,short:/^(do|lu|ma|me|gi|ve|sa)/i,abbreviated:/^(dom|lun|mar|mer|gio|ven|sab)/i,wide:/^(domenica|luned[i|ì]|marted[i|ì]|mercoled[i|ì]|gioved[i|ì]|venerd[i|ì]|sabato)/i},Got={narrow:[/^d/i,/^l/i,/^m/i,/^m/i,/^g/i,/^v/i,/^s/i],any:[/^d/i,/^l/i,/^ma/i,/^me/i,/^g/i,/^v/i,/^s/i]},Yot={narrow:/^(a|m\.|p|mezzanotte|mezzogiorno|(di|del) (mattina|pomeriggio|sera|notte))/i,any:/^([ap]\.?\s?m\.?|mezzanotte|mezzogiorno|(di|del) (mattina|pomeriggio|sera|notte))/i},Kot={any:{am:/^a/i,pm:/^p/i,midnight:/^mezza/i,noon:/^mezzo/i,morning:/mattina/i,afternoon:/pomeriggio/i,evening:/sera/i,night:/notte/i}},Xot={ordinalNumber:Xt({matchPattern:Fot,parsePattern:jot,valueCallback:function(t){return parseInt(t,10)}}),era:se({matchPatterns:Uot,defaultMatchWidth:"wide",parsePatterns:Bot,defaultParseWidth:"any"}),quarter:se({matchPatterns:Wot,defaultMatchWidth:"wide",parsePatterns:zot,defaultParseWidth:"any",valueCallback:function(t){return t+1}}),month:se({matchPatterns:qot,defaultMatchWidth:"wide",parsePatterns:Hot,defaultParseWidth:"any"}),day:se({matchPatterns:Vot,defaultMatchWidth:"wide",parsePatterns:Got,defaultParseWidth:"any"}),dayPeriod:se({matchPatterns:Yot,defaultMatchWidth:"any",parsePatterns:Kot,defaultParseWidth:"any"})},Qot={code:"it",formatDistance:Sot,formatLong:kot,formatRelative:Rot,localize:Lot,match:Xot,options:{weekStartsOn:1,firstWeekContainsDate:4}};const Jot=Object.freeze(Object.defineProperty({__proto__:null,default:Qot},Symbol.toStringTag,{value:"Module"})),Zot=jt(Jot);var est={lessThanXSeconds:{one:"1秒未満",other:"{{count}}秒未満",oneWithSuffix:"約1秒",otherWithSuffix:"約{{count}}秒"},xSeconds:{one:"1秒",other:"{{count}}秒"},halfAMinute:"30秒",lessThanXMinutes:{one:"1分未満",other:"{{count}}分未満",oneWithSuffix:"約1分",otherWithSuffix:"約{{count}}分"},xMinutes:{one:"1分",other:"{{count}}分"},aboutXHours:{one:"約1時間",other:"約{{count}}時間"},xHours:{one:"1時間",other:"{{count}}時間"},xDays:{one:"1日",other:"{{count}}日"},aboutXWeeks:{one:"約1週間",other:"約{{count}}週間"},xWeeks:{one:"1週間",other:"{{count}}週間"},aboutXMonths:{one:"約1か月",other:"約{{count}}か月"},xMonths:{one:"1か月",other:"{{count}}か月"},aboutXYears:{one:"約1年",other:"約{{count}}年"},xYears:{one:"1年",other:"{{count}}年"},overXYears:{one:"1年以上",other:"{{count}}年以上"},almostXYears:{one:"1年近く",other:"{{count}}年近く"}},tst=function(t,n,r){r=r||{};var a,i=est[t];return typeof i=="string"?a=i:n===1?r.addSuffix&&i.oneWithSuffix?a=i.oneWithSuffix:a=i.one:r.addSuffix&&i.otherWithSuffix?a=i.otherWithSuffix.replace("{{count}}",String(n)):a=i.other.replace("{{count}}",String(n)),r.addSuffix?r.comparison&&r.comparison>0?a+"後":a+"前":a},nst={full:"y年M月d日EEEE",long:"y年M月d日",medium:"y/MM/dd",short:"y/MM/dd"},rst={full:"H時mm分ss秒 zzzz",long:"H:mm:ss z",medium:"H:mm:ss",short:"H:mm"},ast={full:"{{date}} {{time}}",long:"{{date}} {{time}}",medium:"{{date}} {{time}}",short:"{{date}} {{time}}"},ist={date:Ne({formats:nst,defaultWidth:"full"}),time:Ne({formats:rst,defaultWidth:"full"}),dateTime:Ne({formats:ast,defaultWidth:"full"})},ost={lastWeek:"先週のeeeeのp",yesterday:"昨日のp",today:"今日のp",tomorrow:"明日のp",nextWeek:"翌週のeeeeのp",other:"P"},sst=function(t,n,r,a){return ost[t]},lst={narrow:["BC","AC"],abbreviated:["紀元前","西暦"],wide:["紀元前","西暦"]},ust={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["第1四半期","第2四半期","第3四半期","第4四半期"]},cst={narrow:["1","2","3","4","5","6","7","8","9","10","11","12"],abbreviated:["1月","2月","3月","4月","5月","6月","7月","8月","9月","10月","11月","12月"],wide:["1月","2月","3月","4月","5月","6月","7月","8月","9月","10月","11月","12月"]},dst={narrow:["日","月","火","水","木","金","土"],short:["日","月","火","水","木","金","土"],abbreviated:["日","月","火","水","木","金","土"],wide:["日曜日","月曜日","火曜日","水曜日","木曜日","金曜日","土曜日"]},fst={narrow:{am:"午前",pm:"午後",midnight:"深夜",noon:"正午",morning:"朝",afternoon:"午後",evening:"夜",night:"深夜"},abbreviated:{am:"午前",pm:"午後",midnight:"深夜",noon:"正午",morning:"朝",afternoon:"午後",evening:"夜",night:"深夜"},wide:{am:"午前",pm:"午後",midnight:"深夜",noon:"正午",morning:"朝",afternoon:"午後",evening:"夜",night:"深夜"}},pst={narrow:{am:"午前",pm:"午後",midnight:"深夜",noon:"正午",morning:"朝",afternoon:"午後",evening:"夜",night:"深夜"},abbreviated:{am:"午前",pm:"午後",midnight:"深夜",noon:"正午",morning:"朝",afternoon:"午後",evening:"夜",night:"深夜"},wide:{am:"午前",pm:"午後",midnight:"深夜",noon:"正午",morning:"朝",afternoon:"午後",evening:"夜",night:"深夜"}},hst=function(t,n){var r=Number(t),a=String(n==null?void 0:n.unit);switch(a){case"year":return"".concat(r,"年");case"quarter":return"第".concat(r,"四半期");case"month":return"".concat(r,"月");case"week":return"第".concat(r,"週");case"date":return"".concat(r,"日");case"hour":return"".concat(r,"時");case"minute":return"".concat(r,"分");case"second":return"".concat(r,"秒");default:return"".concat(r)}},mst={ordinalNumber:hst,era:oe({values:lst,defaultWidth:"wide"}),quarter:oe({values:ust,defaultWidth:"wide",argumentCallback:function(t){return Number(t)-1}}),month:oe({values:cst,defaultWidth:"wide"}),day:oe({values:dst,defaultWidth:"wide"}),dayPeriod:oe({values:fst,defaultWidth:"wide",formattingValues:pst,defaultFormattingWidth:"wide"})},gst=/^第?\d+(年|四半期|月|週|日|時|分|秒)?/i,vst=/\d+/i,yst={narrow:/^(B\.?C\.?|A\.?D\.?)/i,abbreviated:/^(紀元[前後]|西暦)/i,wide:/^(紀元[前後]|西暦)/i},bst={narrow:[/^B/i,/^A/i],any:[/^(紀元前)/i,/^(西暦|紀元後)/i]},wst={narrow:/^[1234]/i,abbreviated:/^Q[1234]/i,wide:/^第[1234一二三四1234]四半期/i},Sst={any:[/(1|一|1)/i,/(2|二|2)/i,/(3|三|3)/i,/(4|四|4)/i]},Est={narrow:/^([123456789]|1[012])/,abbreviated:/^([123456789]|1[012])月/i,wide:/^([123456789]|1[012])月/i},Tst={any:[/^1\D/,/^2/,/^3/,/^4/,/^5/,/^6/,/^7/,/^8/,/^9/,/^10/,/^11/,/^12/]},Cst={narrow:/^[日月火水木金土]/,short:/^[日月火水木金土]/,abbreviated:/^[日月火水木金土]/,wide:/^[日月火水木金土]曜日/},kst={any:[/^日/,/^月/,/^火/,/^水/,/^木/,/^金/,/^土/]},xst={any:/^(AM|PM|午前|午後|正午|深夜|真夜中|夜|朝)/i},_st={any:{am:/^(A|午前)/i,pm:/^(P|午後)/i,midnight:/^深夜|真夜中/i,noon:/^正午/i,morning:/^朝/i,afternoon:/^午後/i,evening:/^夜/i,night:/^深夜/i}},Ost={ordinalNumber:Xt({matchPattern:gst,parsePattern:vst,valueCallback:function(t){return parseInt(t,10)}}),era:se({matchPatterns:yst,defaultMatchWidth:"wide",parsePatterns:bst,defaultParseWidth:"any"}),quarter:se({matchPatterns:wst,defaultMatchWidth:"wide",parsePatterns:Sst,defaultParseWidth:"any",valueCallback:function(t){return t+1}}),month:se({matchPatterns:Est,defaultMatchWidth:"wide",parsePatterns:Tst,defaultParseWidth:"any"}),day:se({matchPatterns:Cst,defaultMatchWidth:"wide",parsePatterns:kst,defaultParseWidth:"any"}),dayPeriod:se({matchPatterns:xst,defaultMatchWidth:"any",parsePatterns:_st,defaultParseWidth:"any"})},Rst={code:"ja",formatDistance:tst,formatLong:ist,formatRelative:sst,localize:mst,match:Ost,options:{weekStartsOn:0,firstWeekContainsDate:1}};const Pst=Object.freeze(Object.defineProperty({__proto__:null,default:Rst},Symbol.toStringTag,{value:"Module"})),Ast=jt(Pst);var Nst={lessThanXSeconds:{past:"{{count}} წამზე ნაკლები ხნის წინ",present:"{{count}} წამზე ნაკლები",future:"{{count}} წამზე ნაკლებში"},xSeconds:{past:"{{count}} წამის წინ",present:"{{count}} წამი",future:"{{count}} წამში"},halfAMinute:{past:"ნახევარი წუთის წინ",present:"ნახევარი წუთი",future:"ნახევარი წუთში"},lessThanXMinutes:{past:"{{count}} წუთზე ნაკლები ხნის წინ",present:"{{count}} წუთზე ნაკლები",future:"{{count}} წუთზე ნაკლებში"},xMinutes:{past:"{{count}} წუთის წინ",present:"{{count}} წუთი",future:"{{count}} წუთში"},aboutXHours:{past:"დაახლოებით {{count}} საათის წინ",present:"დაახლოებით {{count}} საათი",future:"დაახლოებით {{count}} საათში"},xHours:{past:"{{count}} საათის წინ",present:"{{count}} საათი",future:"{{count}} საათში"},xDays:{past:"{{count}} დღის წინ",present:"{{count}} დღე",future:"{{count}} დღეში"},aboutXWeeks:{past:"დაახლოებით {{count}} კვირას წინ",present:"დაახლოებით {{count}} კვირა",future:"დაახლოებით {{count}} კვირაში"},xWeeks:{past:"{{count}} კვირას კვირა",present:"{{count}} კვირა",future:"{{count}} კვირაში"},aboutXMonths:{past:"დაახლოებით {{count}} თვის წინ",present:"დაახლოებით {{count}} თვე",future:"დაახლოებით {{count}} თვეში"},xMonths:{past:"{{count}} თვის წინ",present:"{{count}} თვე",future:"{{count}} თვეში"},aboutXYears:{past:"დაახლოებით {{count}} წლის წინ",present:"დაახლოებით {{count}} წელი",future:"დაახლოებით {{count}} წელში"},xYears:{past:"{{count}} წლის წინ",present:"{{count}} წელი",future:"{{count}} წელში"},overXYears:{past:"{{count}} წელზე მეტი ხნის წინ",present:"{{count}} წელზე მეტი",future:"{{count}} წელზე მეტი ხნის შემდეგ"},almostXYears:{past:"თითქმის {{count}} წლის წინ",present:"თითქმის {{count}} წელი",future:"თითქმის {{count}} წელში"}},Mst=function(t,n,r){var a,i=Nst[t];return typeof i=="string"?a=i:r!=null&&r.addSuffix&&r.comparison&&r.comparison>0?a=i.future.replace("{{count}}",String(n)):r!=null&&r.addSuffix?a=i.past.replace("{{count}}",String(n)):a=i.present.replace("{{count}}",String(n)),a},Ist={full:"EEEE, do MMMM, y",long:"do, MMMM, y",medium:"d, MMM, y",short:"dd/MM/yyyy"},Dst={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},$st={full:"{{date}} {{time}}'-ზე'",long:"{{date}} {{time}}'-ზე'",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},Lst={date:Ne({formats:Ist,defaultWidth:"full"}),time:Ne({formats:Dst,defaultWidth:"full"}),dateTime:Ne({formats:$st,defaultWidth:"full"})},Fst={lastWeek:"'წინა' eeee p'-ზე'",yesterday:"'გუშინ' p'-ზე'",today:"'დღეს' p'-ზე'",tomorrow:"'ხვალ' p'-ზე'",nextWeek:"'შემდეგი' eeee p'-ზე'",other:"P"},jst=function(t,n,r,a){return Fst[t]},Ust={narrow:["ჩ.წ-მდე","ჩ.წ"],abbreviated:["ჩვ.წ-მდე","ჩვ.წ"],wide:["ჩვენს წელთაღრიცხვამდე","ჩვენი წელთაღრიცხვით"]},Bst={narrow:["1","2","3","4"],abbreviated:["1-ლი კვ","2-ე კვ","3-ე კვ","4-ე კვ"],wide:["1-ლი კვარტალი","2-ე კვარტალი","3-ე კვარტალი","4-ე კვარტალი"]},Wst={narrow:["ია","თე","მა","აპ","მს","ვნ","ვლ","აგ","სე","ოქ","ნო","დე"],abbreviated:["იან","თებ","მარ","აპრ","მაი","ივნ","ივლ","აგვ","სექ","ოქტ","ნოე","დეკ"],wide:["იანვარი","თებერვალი","მარტი","აპრილი","მაისი","ივნისი","ივლისი","აგვისტო","სექტემბერი","ოქტომბერი","ნოემბერი","დეკემბერი"]},zst={narrow:["კვ","ორ","სა","ოთ","ხუ","პა","შა"],short:["კვი","ორშ","სამ","ოთხ","ხუთ","პარ","შაბ"],abbreviated:["კვი","ორშ","სამ","ოთხ","ხუთ","პარ","შაბ"],wide:["კვირა","ორშაბათი","სამშაბათი","ოთხშაბათი","ხუთშაბათი","პარასკევი","შაბათი"]},qst={narrow:{am:"a",pm:"p",midnight:"შუაღამე",noon:"შუადღე",morning:"დილა",afternoon:"საღამო",evening:"საღამო",night:"ღამე"},abbreviated:{am:"AM",pm:"PM",midnight:"შუაღამე",noon:"შუადღე",morning:"დილა",afternoon:"საღამო",evening:"საღამო",night:"ღამე"},wide:{am:"a.m.",pm:"p.m.",midnight:"შუაღამე",noon:"შუადღე",morning:"დილა",afternoon:"საღამო",evening:"საღამო",night:"ღამე"}},Hst={narrow:{am:"a",pm:"p",midnight:"შუაღამით",noon:"შუადღისას",morning:"დილით",afternoon:"ნაშუადღევს",evening:"საღამოს",night:"ღამით"},abbreviated:{am:"AM",pm:"PM",midnight:"შუაღამით",noon:"შუადღისას",morning:"დილით",afternoon:"ნაშუადღევს",evening:"საღამოს",night:"ღამით"},wide:{am:"a.m.",pm:"p.m.",midnight:"შუაღამით",noon:"შუადღისას",morning:"დილით",afternoon:"ნაშუადღევს",evening:"საღამოს",night:"ღამით"}},Vst=function(t){var n=Number(t);return n===1?n+"-ლი":n+"-ე"},Gst={ordinalNumber:Vst,era:oe({values:Ust,defaultWidth:"wide"}),quarter:oe({values:Bst,defaultWidth:"wide",argumentCallback:function(t){return t-1}}),month:oe({values:Wst,defaultWidth:"wide"}),day:oe({values:zst,defaultWidth:"wide"}),dayPeriod:oe({values:qst,defaultWidth:"wide",formattingValues:Hst,defaultFormattingWidth:"wide"})},Yst=/^(\d+)(-ლი|-ე)?/i,Kst=/\d+/i,Xst={narrow:/^(ჩვ?\.წ)/i,abbreviated:/^(ჩვ?\.წ)/i,wide:/^(ჩვენს წელთაღრიცხვამდე|ქრისტეშობამდე|ჩვენი წელთაღრიცხვით|ქრისტეშობიდან)/i},Qst={any:[/^(ჩვენს წელთაღრიცხვამდე|ქრისტეშობამდე)/i,/^(ჩვენი წელთაღრიცხვით|ქრისტეშობიდან)/i]},Jst={narrow:/^[1234]/i,abbreviated:/^[1234]-(ლი|ე)? კვ/i,wide:/^[1234]-(ლი|ე)? კვარტალი/i},Zst={any:[/1/i,/2/i,/3/i,/4/i]},elt={any:/^(ია|თე|მა|აპ|მს|ვნ|ვლ|აგ|სე|ოქ|ნო|დე)/i},tlt={any:[/^ია/i,/^თ/i,/^მარ/i,/^აპ/i,/^მაი/i,/^ი?ვნ/i,/^ი?ვლ/i,/^აგ/i,/^ს/i,/^ო/i,/^ნ/i,/^დ/i]},nlt={narrow:/^(კვ|ორ|სა|ოთ|ხუ|პა|შა)/i,short:/^(კვი|ორშ|სამ|ოთხ|ხუთ|პარ|შაბ)/i,wide:/^(კვირა|ორშაბათი|სამშაბათი|ოთხშაბათი|ხუთშაბათი|პარასკევი|შაბათი)/i},rlt={any:[/^კვ/i,/^ორ/i,/^სა/i,/^ოთ/i,/^ხუ/i,/^პა/i,/^შა/i]},alt={any:/^([ap]\.?\s?m\.?|შუაღ|დილ)/i},ilt={any:{am:/^a/i,pm:/^p/i,midnight:/^შუაღ/i,noon:/^შუადღ/i,morning:/^დილ/i,afternoon:/ნაშუადღევს/i,evening:/საღამო/i,night:/ღამ/i}},olt={ordinalNumber:Xt({matchPattern:Yst,parsePattern:Kst,valueCallback:function(t){return parseInt(t,10)}}),era:se({matchPatterns:Xst,defaultMatchWidth:"wide",parsePatterns:Qst,defaultParseWidth:"any"}),quarter:se({matchPatterns:Jst,defaultMatchWidth:"wide",parsePatterns:Zst,defaultParseWidth:"any",valueCallback:function(t){return t+1}}),month:se({matchPatterns:elt,defaultMatchWidth:"any",parsePatterns:tlt,defaultParseWidth:"any"}),day:se({matchPatterns:nlt,defaultMatchWidth:"wide",parsePatterns:rlt,defaultParseWidth:"any"}),dayPeriod:se({matchPatterns:alt,defaultMatchWidth:"any",parsePatterns:ilt,defaultParseWidth:"any"})},slt={code:"ka",formatDistance:Mst,formatLong:Lst,formatRelative:jst,localize:Gst,match:olt,options:{weekStartsOn:1,firstWeekContainsDate:1}};const llt=Object.freeze(Object.defineProperty({__proto__:null,default:slt},Symbol.toStringTag,{value:"Module"})),ult=jt(llt);var clt={lessThanXSeconds:{regular:{one:"1 секундтан аз",singularNominative:"{{count}} секундтан аз",singularGenitive:"{{count}} секундтан аз",pluralGenitive:"{{count}} секундтан аз"},future:{one:"бір секундтан кейін",singularNominative:"{{count}} секундтан кейін",singularGenitive:"{{count}} секундтан кейін",pluralGenitive:"{{count}} секундтан кейін"}},xSeconds:{regular:{singularNominative:"{{count}} секунд",singularGenitive:"{{count}} секунд",pluralGenitive:"{{count}} секунд"},past:{singularNominative:"{{count}} секунд бұрын",singularGenitive:"{{count}} секунд бұрын",pluralGenitive:"{{count}} секунд бұрын"},future:{singularNominative:"{{count}} секундтан кейін",singularGenitive:"{{count}} секундтан кейін",pluralGenitive:"{{count}} секундтан кейін"}},halfAMinute:function(t){return t!=null&&t.addSuffix?t.comparison&&t.comparison>0?"жарты минут ішінде":"жарты минут бұрын":"жарты минут"},lessThanXMinutes:{regular:{one:"1 минуттан аз",singularNominative:"{{count}} минуттан аз",singularGenitive:"{{count}} минуттан аз",pluralGenitive:"{{count}} минуттан аз"},future:{one:"минуттан кем ",singularNominative:"{{count}} минуттан кем",singularGenitive:"{{count}} минуттан кем",pluralGenitive:"{{count}} минуттан кем"}},xMinutes:{regular:{singularNominative:"{{count}} минут",singularGenitive:"{{count}} минут",pluralGenitive:"{{count}} минут"},past:{singularNominative:"{{count}} минут бұрын",singularGenitive:"{{count}} минут бұрын",pluralGenitive:"{{count}} минут бұрын"},future:{singularNominative:"{{count}} минуттан кейін",singularGenitive:"{{count}} минуттан кейін",pluralGenitive:"{{count}} минуттан кейін"}},aboutXHours:{regular:{singularNominative:"шамамен {{count}} сағат",singularGenitive:"шамамен {{count}} сағат",pluralGenitive:"шамамен {{count}} сағат"},future:{singularNominative:"шамамен {{count}} сағаттан кейін",singularGenitive:"шамамен {{count}} сағаттан кейін",pluralGenitive:"шамамен {{count}} сағаттан кейін"}},xHours:{regular:{singularNominative:"{{count}} сағат",singularGenitive:"{{count}} сағат",pluralGenitive:"{{count}} сағат"}},xDays:{regular:{singularNominative:"{{count}} күн",singularGenitive:"{{count}} күн",pluralGenitive:"{{count}} күн"},future:{singularNominative:"{{count}} күннен кейін",singularGenitive:"{{count}} күннен кейін",pluralGenitive:"{{count}} күннен кейін"}},aboutXWeeks:{type:"weeks",one:"шамамен 1 апта",other:"шамамен {{count}} апта"},xWeeks:{type:"weeks",one:"1 апта",other:"{{count}} апта"},aboutXMonths:{regular:{singularNominative:"шамамен {{count}} ай",singularGenitive:"шамамен {{count}} ай",pluralGenitive:"шамамен {{count}} ай"},future:{singularNominative:"шамамен {{count}} айдан кейін",singularGenitive:"шамамен {{count}} айдан кейін",pluralGenitive:"шамамен {{count}} айдан кейін"}},xMonths:{regular:{singularNominative:"{{count}} ай",singularGenitive:"{{count}} ай",pluralGenitive:"{{count}} ай"}},aboutXYears:{regular:{singularNominative:"шамамен {{count}} жыл",singularGenitive:"шамамен {{count}} жыл",pluralGenitive:"шамамен {{count}} жыл"},future:{singularNominative:"шамамен {{count}} жылдан кейін",singularGenitive:"шамамен {{count}} жылдан кейін",pluralGenitive:"шамамен {{count}} жылдан кейін"}},xYears:{regular:{singularNominative:"{{count}} жыл",singularGenitive:"{{count}} жыл",pluralGenitive:"{{count}} жыл"},future:{singularNominative:"{{count}} жылдан кейін",singularGenitive:"{{count}} жылдан кейін",pluralGenitive:"{{count}} жылдан кейін"}},overXYears:{regular:{singularNominative:"{{count}} жылдан астам",singularGenitive:"{{count}} жылдан астам",pluralGenitive:"{{count}} жылдан астам"},future:{singularNominative:"{{count}} жылдан астам",singularGenitive:"{{count}} жылдан астам",pluralGenitive:"{{count}} жылдан астам"}},almostXYears:{regular:{singularNominative:"{{count}} жылға жақын",singularGenitive:"{{count}} жылға жақын",pluralGenitive:"{{count}} жылға жақын"},future:{singularNominative:"{{count}} жылдан кейін",singularGenitive:"{{count}} жылдан кейін",pluralGenitive:"{{count}} жылдан кейін"}}};function Q1(e,t){if(e.one&&t===1)return e.one;var n=t%10,r=t%100;return n===1&&r!==11?e.singularNominative.replace("{{count}}",String(t)):n>=2&&n<=4&&(r<10||r>20)?e.singularGenitive.replace("{{count}}",String(t)):e.pluralGenitive.replace("{{count}}",String(t))}var dlt=function(t,n,r){var a=clt[t];return typeof a=="function"?a(r):a.type==="weeks"?n===1?a.one:a.other.replace("{{count}}",String(n)):r!=null&&r.addSuffix?r.comparison&&r.comparison>0?a.future?Q1(a.future,n):Q1(a.regular,n)+" кейін":a.past?Q1(a.past,n):Q1(a.regular,n)+" бұрын":Q1(a.regular,n)},flt={full:"EEEE, do MMMM y 'ж.'",long:"do MMMM y 'ж.'",medium:"d MMM y 'ж.'",short:"dd.MM.yyyy"},plt={full:"H:mm:ss zzzz",long:"H:mm:ss z",medium:"H:mm:ss",short:"H:mm"},hlt={any:"{{date}}, {{time}}"},mlt={date:Ne({formats:flt,defaultWidth:"full"}),time:Ne({formats:plt,defaultWidth:"full"}),dateTime:Ne({formats:hlt,defaultWidth:"any"})},x4=["жексенбіде","дүйсенбіде","сейсенбіде","сәрсенбіде","бейсенбіде","жұмада","сенбіде"];function glt(e){var t=x4[e];return"'өткен "+t+" сағат' p'-де'"}function HG(e){var t=x4[e];return"'"+t+" сағат' p'-де'"}function vlt(e){var t=x4[e];return"'келесі "+t+" сағат' p'-де'"}var ylt={lastWeek:function(t,n,r){var a=t.getUTCDay();return wi(t,n,r)?HG(a):glt(a)},yesterday:"'кеше сағат' p'-де'",today:"'бүгін сағат' p'-де'",tomorrow:"'ертең сағат' p'-де'",nextWeek:function(t,n,r){var a=t.getUTCDay();return wi(t,n,r)?HG(a):vlt(a)},other:"P"},blt=function(t,n,r,a){var i=ylt[t];return typeof i=="function"?i(n,r,a):i},wlt={narrow:["б.з.д.","б.з."],abbreviated:["б.з.д.","б.з."],wide:["біздің заманымызға дейін","біздің заманымыз"]},Slt={narrow:["1","2","3","4"],abbreviated:["1-ші тоқ.","2-ші тоқ.","3-ші тоқ.","4-ші тоқ."],wide:["1-ші тоқсан","2-ші тоқсан","3-ші тоқсан","4-ші тоқсан"]},Elt={narrow:["Қ","А","Н","С","М","М","Ш","Т","Қ","Қ","Қ","Ж"],abbreviated:["қаң","ақп","нау","сәу","мам","мау","шіл","там","қыр","қаз","қар","жел"],wide:["қаңтар","ақпан","наурыз","сәуір","мамыр","маусым","шілде","тамыз","қыркүйек","қазан","қараша","желтоқсан"]},Tlt={narrow:["Қ","А","Н","С","М","М","Ш","Т","Қ","Қ","Қ","Ж"],abbreviated:["қаң","ақп","нау","сәу","мам","мау","шіл","там","қыр","қаз","қар","жел"],wide:["қаңтар","ақпан","наурыз","сәуір","мамыр","маусым","шілде","тамыз","қыркүйек","қазан","қараша","желтоқсан"]},Clt={narrow:["Ж","Д","С","С","Б","Ж","С"],short:["жс","дс","сс","ср","бс","жм","сб"],abbreviated:["жс","дс","сс","ср","бс","жм","сб"],wide:["жексенбі","дүйсенбі","сейсенбі","сәрсенбі","бейсенбі","жұма","сенбі"]},klt={narrow:{am:"ТД",pm:"ТК",midnight:"түн ортасы",noon:"түс",morning:"таң",afternoon:"күндіз",evening:"кеш",night:"түн"},wide:{am:"ТД",pm:"ТК",midnight:"түн ортасы",noon:"түс",morning:"таң",afternoon:"күндіз",evening:"кеш",night:"түн"}},xlt={narrow:{am:"ТД",pm:"ТК",midnight:"түн ортасында",noon:"түс",morning:"таң",afternoon:"күн",evening:"кеш",night:"түн"},wide:{am:"ТД",pm:"ТК",midnight:"түн ортасында",noon:"түсте",morning:"таңертең",afternoon:"күндіз",evening:"кеште",night:"түнде"}},M$={0:"-ші",1:"-ші",2:"-ші",3:"-ші",4:"-ші",5:"-ші",6:"-шы",7:"-ші",8:"-ші",9:"-шы",10:"-шы",20:"-шы",30:"-шы",40:"-шы",50:"-ші",60:"-шы",70:"-ші",80:"-ші",90:"-шы",100:"-ші"},_lt=function(t,n){var r=Number(t),a=r%10,i=r>=100?100:null,o=M$[r]||M$[a]||i&&M$[i]||"";return r+o},Olt={ordinalNumber:_lt,era:oe({values:wlt,defaultWidth:"wide"}),quarter:oe({values:Slt,defaultWidth:"wide",argumentCallback:function(t){return t-1}}),month:oe({values:Elt,defaultWidth:"wide",formattingValues:Tlt,defaultFormattingWidth:"wide"}),day:oe({values:Clt,defaultWidth:"wide"}),dayPeriod:oe({values:klt,defaultWidth:"any",formattingValues:xlt,defaultFormattingWidth:"wide"})},Rlt=/^(\d+)(-?(ші|шы))?/i,Plt=/\d+/i,Alt={narrow:/^((б )?з\.?\s?д\.?)/i,abbreviated:/^((б )?з\.?\s?д\.?)/i,wide:/^(біздің заманымызға дейін|біздің заманымыз|біздің заманымыздан)/i},Nlt={any:[/^б/i,/^з/i]},Mlt={narrow:/^[1234]/i,abbreviated:/^[1234](-?ші)? тоқ.?/i,wide:/^[1234](-?ші)? тоқсан/i},Ilt={any:[/1/i,/2/i,/3/i,/4/i]},Dlt={narrow:/^(қ|а|н|с|м|мау|ш|т|қыр|қаз|қар|ж)/i,abbreviated:/^(қаң|ақп|нау|сәу|мам|мау|шіл|там|қыр|қаз|қар|жел)/i,wide:/^(қаңтар|ақпан|наурыз|сәуір|мамыр|маусым|шілде|тамыз|қыркүйек|қазан|қараша|желтоқсан)/i},$lt={narrow:[/^қ/i,/^а/i,/^н/i,/^с/i,/^м/i,/^м/i,/^ш/i,/^т/i,/^қ/i,/^қ/i,/^қ/i,/^ж/i],abbreviated:[/^қаң/i,/^ақп/i,/^нау/i,/^сәу/i,/^мам/i,/^мау/i,/^шіл/i,/^там/i,/^қыр/i,/^қаз/i,/^қар/i,/^жел/i],any:[/^қ/i,/^а/i,/^н/i,/^с/i,/^м/i,/^м/i,/^ш/i,/^т/i,/^қ/i,/^қ/i,/^қ/i,/^ж/i]},Llt={narrow:/^(ж|д|с|с|б|ж|с)/i,short:/^(жс|дс|сс|ср|бс|жм|сб)/i,wide:/^(жексенбі|дүйсенбі|сейсенбі|сәрсенбі|бейсенбі|жұма|сенбі)/i},Flt={narrow:[/^ж/i,/^д/i,/^с/i,/^с/i,/^б/i,/^ж/i,/^с/i],short:[/^жс/i,/^дс/i,/^сс/i,/^ср/i,/^бс/i,/^жм/i,/^сб/i],any:[/^ж[ек]/i,/^д[үй]/i,/^сe[й]/i,/^сә[р]/i,/^б[ей]/i,/^ж[ұм]/i,/^се[н]/i]},jlt={narrow:/^Т\.?\s?[ДК]\.?|түн ортасында|((түсте|таңертең|таңда|таңертең|таңмен|таң|күндіз|күн|кеште|кеш|түнде|түн)\.?)/i,wide:/^Т\.?\s?[ДК]\.?|түн ортасында|((түсте|таңертең|таңда|таңертең|таңмен|таң|күндіз|күн|кеште|кеш|түнде|түн)\.?)/i,any:/^Т\.?\s?[ДК]\.?|түн ортасында|((түсте|таңертең|таңда|таңертең|таңмен|таң|күндіз|күн|кеште|кеш|түнде|түн)\.?)/i},Ult={any:{am:/^ТД/i,pm:/^ТК/i,midnight:/^түн орта/i,noon:/^күндіз/i,morning:/таң/i,afternoon:/түс/i,evening:/кеш/i,night:/түн/i}},Blt={ordinalNumber:Xt({matchPattern:Rlt,parsePattern:Plt,valueCallback:function(t){return parseInt(t,10)}}),era:se({matchPatterns:Alt,defaultMatchWidth:"wide",parsePatterns:Nlt,defaultParseWidth:"any"}),quarter:se({matchPatterns:Mlt,defaultMatchWidth:"wide",parsePatterns:Ilt,defaultParseWidth:"any",valueCallback:function(t){return t+1}}),month:se({matchPatterns:Dlt,defaultMatchWidth:"wide",parsePatterns:$lt,defaultParseWidth:"any"}),day:se({matchPatterns:Llt,defaultMatchWidth:"wide",parsePatterns:Flt,defaultParseWidth:"any"}),dayPeriod:se({matchPatterns:jlt,defaultMatchWidth:"wide",parsePatterns:Ult,defaultParseWidth:"any"})},Wlt={code:"kk",formatDistance:dlt,formatLong:mlt,formatRelative:blt,localize:Olt,match:Blt,options:{weekStartsOn:1,firstWeekContainsDate:1}};const zlt=Object.freeze(Object.defineProperty({__proto__:null,default:Wlt},Symbol.toStringTag,{value:"Module"})),qlt=jt(zlt);var Hlt={lessThanXSeconds:{one:"1초 미만",other:"{{count}}초 미만"},xSeconds:{one:"1초",other:"{{count}}초"},halfAMinute:"30초",lessThanXMinutes:{one:"1분 미만",other:"{{count}}분 미만"},xMinutes:{one:"1분",other:"{{count}}분"},aboutXHours:{one:"약 1시간",other:"약 {{count}}시간"},xHours:{one:"1시간",other:"{{count}}시간"},xDays:{one:"1일",other:"{{count}}일"},aboutXWeeks:{one:"약 1주",other:"약 {{count}}주"},xWeeks:{one:"1주",other:"{{count}}주"},aboutXMonths:{one:"약 1개월",other:"약 {{count}}개월"},xMonths:{one:"1개월",other:"{{count}}개월"},aboutXYears:{one:"약 1년",other:"약 {{count}}년"},xYears:{one:"1년",other:"{{count}}년"},overXYears:{one:"1년 이상",other:"{{count}}년 이상"},almostXYears:{one:"거의 1년",other:"거의 {{count}}년"}},Vlt=function(t,n,r){var a,i=Hlt[t];return typeof i=="string"?a=i:n===1?a=i.one:a=i.other.replace("{{count}}",n.toString()),r!=null&&r.addSuffix?r.comparison&&r.comparison>0?a+" 후":a+" 전":a},Glt={full:"y년 M월 d일 EEEE",long:"y년 M월 d일",medium:"y.MM.dd",short:"y.MM.dd"},Ylt={full:"a H시 mm분 ss초 zzzz",long:"a H:mm:ss z",medium:"HH:mm:ss",short:"HH:mm"},Klt={full:"{{date}} {{time}}",long:"{{date}} {{time}}",medium:"{{date}} {{time}}",short:"{{date}} {{time}}"},Xlt={date:Ne({formats:Glt,defaultWidth:"full"}),time:Ne({formats:Ylt,defaultWidth:"full"}),dateTime:Ne({formats:Klt,defaultWidth:"full"})},Qlt={lastWeek:"'지난' eeee p",yesterday:"'어제' p",today:"'오늘' p",tomorrow:"'내일' p",nextWeek:"'다음' eeee p",other:"P"},Jlt=function(t,n,r,a){return Qlt[t]},Zlt={narrow:["BC","AD"],abbreviated:["BC","AD"],wide:["기원전","서기"]},eut={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1분기","2분기","3분기","4분기"]},tut={narrow:["1","2","3","4","5","6","7","8","9","10","11","12"],abbreviated:["1월","2월","3월","4월","5월","6월","7월","8월","9월","10월","11월","12월"],wide:["1월","2월","3월","4월","5월","6월","7월","8월","9월","10월","11월","12월"]},nut={narrow:["일","월","화","수","목","금","토"],short:["일","월","화","수","목","금","토"],abbreviated:["일","월","화","수","목","금","토"],wide:["일요일","월요일","화요일","수요일","목요일","금요일","토요일"]},rut={narrow:{am:"오전",pm:"오후",midnight:"자정",noon:"정오",morning:"아침",afternoon:"오후",evening:"저녁",night:"밤"},abbreviated:{am:"오전",pm:"오후",midnight:"자정",noon:"정오",morning:"아침",afternoon:"오후",evening:"저녁",night:"밤"},wide:{am:"오전",pm:"오후",midnight:"자정",noon:"정오",morning:"아침",afternoon:"오후",evening:"저녁",night:"밤"}},aut={narrow:{am:"오전",pm:"오후",midnight:"자정",noon:"정오",morning:"아침",afternoon:"오후",evening:"저녁",night:"밤"},abbreviated:{am:"오전",pm:"오후",midnight:"자정",noon:"정오",morning:"아침",afternoon:"오후",evening:"저녁",night:"밤"},wide:{am:"오전",pm:"오후",midnight:"자정",noon:"정오",morning:"아침",afternoon:"오후",evening:"저녁",night:"밤"}},iut=function(t,n){var r=Number(t),a=String(n==null?void 0:n.unit);switch(a){case"minute":case"second":return String(r);case"date":return r+"일";default:return r+"번째"}},out={ordinalNumber:iut,era:oe({values:Zlt,defaultWidth:"wide"}),quarter:oe({values:eut,defaultWidth:"wide",argumentCallback:function(t){return t-1}}),month:oe({values:tut,defaultWidth:"wide"}),day:oe({values:nut,defaultWidth:"wide"}),dayPeriod:oe({values:rut,defaultWidth:"wide",formattingValues:aut,defaultFormattingWidth:"wide"})},sut=/^(\d+)(일|번째)?/i,lut=/\d+/i,uut={narrow:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(기원전|서기)/i},cut={any:[/^(bc|기원전)/i,/^(ad|서기)/i]},dut={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234]사?분기/i},fut={any:[/1/i,/2/i,/3/i,/4/i]},put={narrow:/^(1[012]|[123456789])/,abbreviated:/^(1[012]|[123456789])월/i,wide:/^(1[012]|[123456789])월/i},hut={any:[/^1월?$/,/^2/,/^3/,/^4/,/^5/,/^6/,/^7/,/^8/,/^9/,/^10/,/^11/,/^12/]},mut={narrow:/^[일월화수목금토]/,short:/^[일월화수목금토]/,abbreviated:/^[일월화수목금토]/,wide:/^[일월화수목금토]요일/},gut={any:[/^일/,/^월/,/^화/,/^수/,/^목/,/^금/,/^토/]},vut={any:/^(am|pm|오전|오후|자정|정오|아침|저녁|밤)/i},yut={any:{am:/^(am|오전)/i,pm:/^(pm|오후)/i,midnight:/^자정/i,noon:/^정오/i,morning:/^아침/i,afternoon:/^오후/i,evening:/^저녁/i,night:/^밤/i}},but={ordinalNumber:Xt({matchPattern:sut,parsePattern:lut,valueCallback:function(t){return parseInt(t,10)}}),era:se({matchPatterns:uut,defaultMatchWidth:"wide",parsePatterns:cut,defaultParseWidth:"any"}),quarter:se({matchPatterns:dut,defaultMatchWidth:"wide",parsePatterns:fut,defaultParseWidth:"any",valueCallback:function(t){return t+1}}),month:se({matchPatterns:put,defaultMatchWidth:"wide",parsePatterns:hut,defaultParseWidth:"any"}),day:se({matchPatterns:mut,defaultMatchWidth:"wide",parsePatterns:gut,defaultParseWidth:"any"}),dayPeriod:se({matchPatterns:vut,defaultMatchWidth:"any",parsePatterns:yut,defaultParseWidth:"any"})},wut={code:"ko",formatDistance:Vlt,formatLong:Xlt,formatRelative:Jlt,localize:out,match:but,options:{weekStartsOn:0,firstWeekContainsDate:1}};const Sut=Object.freeze(Object.defineProperty({__proto__:null,default:wut},Symbol.toStringTag,{value:"Module"})),Eut=jt(Sut);var Bae={xseconds_other:"sekundė_sekundžių_sekundes",xminutes_one:"minutė_minutės_minutę",xminutes_other:"minutės_minučių_minutes",xhours_one:"valanda_valandos_valandą",xhours_other:"valandos_valandų_valandas",xdays_one:"diena_dienos_dieną",xdays_other:"dienos_dienų_dienas",xweeks_one:"savaitė_savaitės_savaitę",xweeks_other:"savaitės_savaičių_savaites",xmonths_one:"mėnuo_mėnesio_mėnesį",xmonths_other:"mėnesiai_mėnesių_mėnesius",xyears_one:"metai_metų_metus",xyears_other:"metai_metų_metus",about:"apie",over:"daugiau nei",almost:"beveik",lessthan:"mažiau nei"},VG=function(t,n,r,a){return n?a?"kelių sekundžių":"kelias sekundes":"kelios sekundės"},ns=function(t,n,r,a){return n?a?Gp(r)[1]:Gp(r)[2]:Gp(r)[0]},Po=function(t,n,r,a){var i=t+" ";return t===1?i+ns(t,n,r,a):n?a?i+Gp(r)[1]:i+(GG(t)?Gp(r)[1]:Gp(r)[2]):i+(GG(t)?Gp(r)[1]:Gp(r)[0])};function GG(e){return e%10===0||e>10&&e<20}function Gp(e){return Bae[e].split("_")}var Tut={lessThanXSeconds:{one:VG,other:Po},xSeconds:{one:VG,other:Po},halfAMinute:"pusė minutės",lessThanXMinutes:{one:ns,other:Po},xMinutes:{one:ns,other:Po},aboutXHours:{one:ns,other:Po},xHours:{one:ns,other:Po},xDays:{one:ns,other:Po},aboutXWeeks:{one:ns,other:Po},xWeeks:{one:ns,other:Po},aboutXMonths:{one:ns,other:Po},xMonths:{one:ns,other:Po},aboutXYears:{one:ns,other:Po},xYears:{one:ns,other:Po},overXYears:{one:ns,other:Po},almostXYears:{one:ns,other:Po}},Cut=function(t,n,r){var a=t.match(/about|over|almost|lessthan/i),i=a?t.replace(a[0],""):t,o=(r==null?void 0:r.comparison)!==void 0&&r.comparison>0,l,u=Tut[t];if(typeof u=="string"?l=u:n===1?l=u.one(n,(r==null?void 0:r.addSuffix)===!0,i.toLowerCase()+"_one",o):l=u.other(n,(r==null?void 0:r.addSuffix)===!0,i.toLowerCase()+"_other",o),a){var d=a[0].toLowerCase();l=Bae[d]+" "+l}return r!=null&&r.addSuffix?r.comparison&&r.comparison>0?"po "+l:"prieš "+l:l},kut={full:"y 'm'. MMMM d 'd'., EEEE",long:"y 'm'. MMMM d 'd'.",medium:"y-MM-dd",short:"y-MM-dd"},xut={full:"HH:mm:ss zzzz",long:"HH:mm:ss z",medium:"HH:mm:ss",short:"HH:mm"},_ut={full:"{{date}} {{time}}",long:"{{date}} {{time}}",medium:"{{date}} {{time}}",short:"{{date}} {{time}}"},Out={date:Ne({formats:kut,defaultWidth:"full"}),time:Ne({formats:xut,defaultWidth:"full"}),dateTime:Ne({formats:_ut,defaultWidth:"full"})},Rut={lastWeek:"'Praėjusį' eeee p",yesterday:"'Vakar' p",today:"'Šiandien' p",tomorrow:"'Rytoj' p",nextWeek:"eeee p",other:"P"},Put=function(t,n,r,a){return Rut[t]},Aut={narrow:["pr. Kr.","po Kr."],abbreviated:["pr. Kr.","po Kr."],wide:["prieš Kristų","po Kristaus"]},Nut={narrow:["1","2","3","4"],abbreviated:["I ketv.","II ketv.","III ketv.","IV ketv."],wide:["I ketvirtis","II ketvirtis","III ketvirtis","IV ketvirtis"]},Mut={narrow:["1","2","3","4"],abbreviated:["I k.","II k.","III k.","IV k."],wide:["I ketvirtis","II ketvirtis","III ketvirtis","IV ketvirtis"]},Iut={narrow:["S","V","K","B","G","B","L","R","R","S","L","G"],abbreviated:["saus.","vas.","kov.","bal.","geg.","birž.","liep.","rugp.","rugs.","spal.","lapkr.","gruod."],wide:["sausis","vasaris","kovas","balandis","gegužė","birželis","liepa","rugpjūtis","rugsėjis","spalis","lapkritis","gruodis"]},Dut={narrow:["S","V","K","B","G","B","L","R","R","S","L","G"],abbreviated:["saus.","vas.","kov.","bal.","geg.","birž.","liep.","rugp.","rugs.","spal.","lapkr.","gruod."],wide:["sausio","vasario","kovo","balandžio","gegužės","birželio","liepos","rugpjūčio","rugsėjo","spalio","lapkričio","gruodžio"]},$ut={narrow:["S","P","A","T","K","P","Š"],short:["Sk","Pr","An","Tr","Kt","Pn","Št"],abbreviated:["sk","pr","an","tr","kt","pn","št"],wide:["sekmadienis","pirmadienis","antradienis","trečiadienis","ketvirtadienis","penktadienis","šeštadienis"]},Lut={narrow:["S","P","A","T","K","P","Š"],short:["Sk","Pr","An","Tr","Kt","Pn","Št"],abbreviated:["sk","pr","an","tr","kt","pn","št"],wide:["sekmadienį","pirmadienį","antradienį","trečiadienį","ketvirtadienį","penktadienį","šeštadienį"]},Fut={narrow:{am:"pr. p.",pm:"pop.",midnight:"vidurnaktis",noon:"vidurdienis",morning:"rytas",afternoon:"diena",evening:"vakaras",night:"naktis"},abbreviated:{am:"priešpiet",pm:"popiet",midnight:"vidurnaktis",noon:"vidurdienis",morning:"rytas",afternoon:"diena",evening:"vakaras",night:"naktis"},wide:{am:"priešpiet",pm:"popiet",midnight:"vidurnaktis",noon:"vidurdienis",morning:"rytas",afternoon:"diena",evening:"vakaras",night:"naktis"}},jut={narrow:{am:"pr. p.",pm:"pop.",midnight:"vidurnaktis",noon:"perpiet",morning:"rytas",afternoon:"popietė",evening:"vakaras",night:"naktis"},abbreviated:{am:"priešpiet",pm:"popiet",midnight:"vidurnaktis",noon:"perpiet",morning:"rytas",afternoon:"popietė",evening:"vakaras",night:"naktis"},wide:{am:"priešpiet",pm:"popiet",midnight:"vidurnaktis",noon:"perpiet",morning:"rytas",afternoon:"popietė",evening:"vakaras",night:"naktis"}},Uut=function(t,n){var r=Number(t);return r+"-oji"},But={ordinalNumber:Uut,era:oe({values:Aut,defaultWidth:"wide"}),quarter:oe({values:Nut,defaultWidth:"wide",formattingValues:Mut,defaultFormattingWidth:"wide",argumentCallback:function(t){return t-1}}),month:oe({values:Iut,defaultWidth:"wide",formattingValues:Dut,defaultFormattingWidth:"wide"}),day:oe({values:$ut,defaultWidth:"wide",formattingValues:Lut,defaultFormattingWidth:"wide"}),dayPeriod:oe({values:Fut,defaultWidth:"wide",formattingValues:jut,defaultFormattingWidth:"wide"})},Wut=/^(\d+)(-oji)?/i,zut=/\d+/i,qut={narrow:/^p(r|o)\.?\s?(kr\.?|me)/i,abbreviated:/^(pr\.\s?(kr\.|m\.\s?e\.)|po\s?kr\.|mūsų eroje)/i,wide:/^(prieš Kristų|prieš mūsų erą|po Kristaus|mūsų eroje)/i},Hut={wide:[/prieš/i,/(po|mūsų)/i],any:[/^pr/i,/^(po|m)/i]},Vut={narrow:/^([1234])/i,abbreviated:/^(I|II|III|IV)\s?ketv?\.?/i,wide:/^(I|II|III|IV)\s?ketvirtis/i},Gut={narrow:[/1/i,/2/i,/3/i,/4/i],any:[/I$/i,/II$/i,/III/i,/IV/i]},Yut={narrow:/^[svkbglr]/i,abbreviated:/^(saus\.|vas\.|kov\.|bal\.|geg\.|birž\.|liep\.|rugp\.|rugs\.|spal\.|lapkr\.|gruod\.)/i,wide:/^(sausi(s|o)|vasari(s|o)|kov(a|o)s|balandž?i(s|o)|gegužės?|birželi(s|o)|liep(a|os)|rugpjū(t|č)i(s|o)|rugsėj(is|o)|spali(s|o)|lapkri(t|č)i(s|o)|gruodž?i(s|o))/i},Kut={narrow:[/^s/i,/^v/i,/^k/i,/^b/i,/^g/i,/^b/i,/^l/i,/^r/i,/^r/i,/^s/i,/^l/i,/^g/i],any:[/^saus/i,/^vas/i,/^kov/i,/^bal/i,/^geg/i,/^birž/i,/^liep/i,/^rugp/i,/^rugs/i,/^spal/i,/^lapkr/i,/^gruod/i]},Xut={narrow:/^[spatkš]/i,short:/^(sk|pr|an|tr|kt|pn|št)/i,abbreviated:/^(sk|pr|an|tr|kt|pn|št)/i,wide:/^(sekmadien(is|į)|pirmadien(is|į)|antradien(is|į)|trečiadien(is|į)|ketvirtadien(is|į)|penktadien(is|į)|šeštadien(is|į))/i},Qut={narrow:[/^s/i,/^p/i,/^a/i,/^t/i,/^k/i,/^p/i,/^š/i],wide:[/^se/i,/^pi/i,/^an/i,/^tr/i,/^ke/i,/^pe/i,/^še/i],any:[/^sk/i,/^pr/i,/^an/i,/^tr/i,/^kt/i,/^pn/i,/^št/i]},Jut={narrow:/^(pr.\s?p.|pop.|vidurnaktis|(vidurdienis|perpiet)|rytas|(diena|popietė)|vakaras|naktis)/i,any:/^(priešpiet|popiet$|vidurnaktis|(vidurdienis|perpiet)|rytas|(diena|popietė)|vakaras|naktis)/i},Zut={narrow:{am:/^pr/i,pm:/^pop./i,midnight:/^vidurnaktis/i,noon:/^(vidurdienis|perp)/i,morning:/rytas/i,afternoon:/(die|popietė)/i,evening:/vakaras/i,night:/naktis/i},any:{am:/^pr/i,pm:/^popiet$/i,midnight:/^vidurnaktis/i,noon:/^(vidurdienis|perp)/i,morning:/rytas/i,afternoon:/(die|popietė)/i,evening:/vakaras/i,night:/naktis/i}},ect={ordinalNumber:Xt({matchPattern:Wut,parsePattern:zut,valueCallback:function(t){return parseInt(t,10)}}),era:se({matchPatterns:qut,defaultMatchWidth:"wide",parsePatterns:Hut,defaultParseWidth:"any"}),quarter:se({matchPatterns:Vut,defaultMatchWidth:"wide",parsePatterns:Gut,defaultParseWidth:"any",valueCallback:function(t){return t+1}}),month:se({matchPatterns:Yut,defaultMatchWidth:"wide",parsePatterns:Kut,defaultParseWidth:"any"}),day:se({matchPatterns:Xut,defaultMatchWidth:"wide",parsePatterns:Qut,defaultParseWidth:"any"}),dayPeriod:se({matchPatterns:Jut,defaultMatchWidth:"any",parsePatterns:Zut,defaultParseWidth:"any"})},tct={code:"lt",formatDistance:Cut,formatLong:Out,formatRelative:Put,localize:But,match:ect,options:{weekStartsOn:1,firstWeekContainsDate:4}};const nct=Object.freeze(Object.defineProperty({__proto__:null,default:tct},Symbol.toStringTag,{value:"Module"})),rct=jt(nct);function Ao(e){return function(t,n){if(t===1)return n!=null&&n.addSuffix?e.one[0].replace("{{time}}",e.one[2]):e.one[0].replace("{{time}}",e.one[1]);var r=t%10===1&&t%100!==11;return n!=null&&n.addSuffix?e.other[0].replace("{{time}}",r?e.other[3]:e.other[4]).replace("{{count}}",String(t)):e.other[0].replace("{{time}}",r?e.other[1]:e.other[2]).replace("{{count}}",String(t))}}var act={lessThanXSeconds:Ao({one:["mazāk par {{time}}","sekundi","sekundi"],other:["mazāk nekā {{count}} {{time}}","sekunde","sekundes","sekundes","sekundēm"]}),xSeconds:Ao({one:["1 {{time}}","sekunde","sekundes"],other:["{{count}} {{time}}","sekunde","sekundes","sekundes","sekundēm"]}),halfAMinute:function(t,n){return n!=null&&n.addSuffix?"pusminūtes":"pusminūte"},lessThanXMinutes:Ao({one:["mazāk par {{time}}","minūti","minūti"],other:["mazāk nekā {{count}} {{time}}","minūte","minūtes","minūtes","minūtēm"]}),xMinutes:Ao({one:["1 {{time}}","minūte","minūtes"],other:["{{count}} {{time}}","minūte","minūtes","minūtes","minūtēm"]}),aboutXHours:Ao({one:["apmēram 1 {{time}}","stunda","stundas"],other:["apmēram {{count}} {{time}}","stunda","stundas","stundas","stundām"]}),xHours:Ao({one:["1 {{time}}","stunda","stundas"],other:["{{count}} {{time}}","stunda","stundas","stundas","stundām"]}),xDays:Ao({one:["1 {{time}}","diena","dienas"],other:["{{count}} {{time}}","diena","dienas","dienas","dienām"]}),aboutXWeeks:Ao({one:["apmēram 1 {{time}}","nedēļa","nedēļas"],other:["apmēram {{count}} {{time}}","nedēļa","nedēļu","nedēļas","nedēļām"]}),xWeeks:Ao({one:["1 {{time}}","nedēļa","nedēļas"],other:["{{count}} {{time}}","nedēļa","nedēļu","nedēļas","nedēļām"]}),aboutXMonths:Ao({one:["apmēram 1 {{time}}","mēnesis","mēneša"],other:["apmēram {{count}} {{time}}","mēnesis","mēneši","mēneša","mēnešiem"]}),xMonths:Ao({one:["1 {{time}}","mēnesis","mēneša"],other:["{{count}} {{time}}","mēnesis","mēneši","mēneša","mēnešiem"]}),aboutXYears:Ao({one:["apmēram 1 {{time}}","gads","gada"],other:["apmēram {{count}} {{time}}","gads","gadi","gada","gadiem"]}),xYears:Ao({one:["1 {{time}}","gads","gada"],other:["{{count}} {{time}}","gads","gadi","gada","gadiem"]}),overXYears:Ao({one:["ilgāk par 1 {{time}}","gadu","gadu"],other:["vairāk nekā {{count}} {{time}}","gads","gadi","gada","gadiem"]}),almostXYears:Ao({one:["gandrīz 1 {{time}}","gads","gada"],other:["vairāk nekā {{count}} {{time}}","gads","gadi","gada","gadiem"]})},ict=function(t,n,r){var a=act[t](n,r);return r!=null&&r.addSuffix?r.comparison&&r.comparison>0?"pēc "+a:"pirms "+a:a},oct={full:"EEEE, y. 'gada' d. MMMM",long:"y. 'gada' d. MMMM",medium:"dd.MM.y.",short:"dd.MM.y."},sct={full:"HH:mm:ss zzzz",long:"HH:mm:ss z",medium:"HH:mm:ss",short:"HH:mm"},lct={full:"{{date}} 'plkst.' {{time}}",long:"{{date}} 'plkst.' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},uct={date:Ne({formats:oct,defaultWidth:"full"}),time:Ne({formats:sct,defaultWidth:"full"}),dateTime:Ne({formats:lct,defaultWidth:"full"})},YG=["svētdienā","pirmdienā","otrdienā","trešdienā","ceturtdienā","piektdienā","sestdienā"],cct={lastWeek:function(t,n,r){if(wi(t,n,r))return"eeee 'plkst.' p";var a=YG[t.getUTCDay()];return"'Pagājušā "+a+" plkst.' p"},yesterday:"'Vakar plkst.' p",today:"'Šodien plkst.' p",tomorrow:"'Rīt plkst.' p",nextWeek:function(t,n,r){if(wi(t,n,r))return"eeee 'plkst.' p";var a=YG[t.getUTCDay()];return"'Nākamajā "+a+" plkst.' p"},other:"P"},dct=function(t,n,r,a){var i=cct[t];return typeof i=="function"?i(n,r,a):i},fct={narrow:["p.m.ē","m.ē"],abbreviated:["p. m. ē.","m. ē."],wide:["pirms mūsu ēras","mūsu ērā"]},pct={narrow:["1","2","3","4"],abbreviated:["1. cet.","2. cet.","3. cet.","4. cet."],wide:["pirmais ceturksnis","otrais ceturksnis","trešais ceturksnis","ceturtais ceturksnis"]},hct={narrow:["1","2","3","4"],abbreviated:["1. cet.","2. cet.","3. cet.","4. cet."],wide:["pirmajā ceturksnī","otrajā ceturksnī","trešajā ceturksnī","ceturtajā ceturksnī"]},mct={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["janv.","febr.","marts","apr.","maijs","jūn.","jūl.","aug.","sept.","okt.","nov.","dec."],wide:["janvāris","februāris","marts","aprīlis","maijs","jūnijs","jūlijs","augusts","septembris","oktobris","novembris","decembris"]},gct={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["janv.","febr.","martā","apr.","maijs","jūn.","jūl.","aug.","sept.","okt.","nov.","dec."],wide:["janvārī","februārī","martā","aprīlī","maijā","jūnijā","jūlijā","augustā","septembrī","oktobrī","novembrī","decembrī"]},vct={narrow:["S","P","O","T","C","P","S"],short:["Sv","P","O","T","C","Pk","S"],abbreviated:["svētd.","pirmd.","otrd.","trešd.","ceturtd.","piektd.","sestd."],wide:["svētdiena","pirmdiena","otrdiena","trešdiena","ceturtdiena","piektdiena","sestdiena"]},yct={narrow:["S","P","O","T","C","P","S"],short:["Sv","P","O","T","C","Pk","S"],abbreviated:["svētd.","pirmd.","otrd.","trešd.","ceturtd.","piektd.","sestd."],wide:["svētdienā","pirmdienā","otrdienā","trešdienā","ceturtdienā","piektdienā","sestdienā"]},bct={narrow:{am:"am",pm:"pm",midnight:"pusn.",noon:"pusd.",morning:"rīts",afternoon:"diena",evening:"vakars",night:"nakts"},abbreviated:{am:"am",pm:"pm",midnight:"pusn.",noon:"pusd.",morning:"rīts",afternoon:"pēcpusd.",evening:"vakars",night:"nakts"},wide:{am:"am",pm:"pm",midnight:"pusnakts",noon:"pusdienlaiks",morning:"rīts",afternoon:"pēcpusdiena",evening:"vakars",night:"nakts"}},wct={narrow:{am:"am",pm:"pm",midnight:"pusn.",noon:"pusd.",morning:"rītā",afternoon:"dienā",evening:"vakarā",night:"naktī"},abbreviated:{am:"am",pm:"pm",midnight:"pusn.",noon:"pusd.",morning:"rītā",afternoon:"pēcpusd.",evening:"vakarā",night:"naktī"},wide:{am:"am",pm:"pm",midnight:"pusnaktī",noon:"pusdienlaikā",morning:"rītā",afternoon:"pēcpusdienā",evening:"vakarā",night:"naktī"}},Sct=function(t,n){var r=Number(t);return r+"."},Ect={ordinalNumber:Sct,era:oe({values:fct,defaultWidth:"wide"}),quarter:oe({values:pct,defaultWidth:"wide",formattingValues:hct,defaultFormattingWidth:"wide",argumentCallback:function(t){return t-1}}),month:oe({values:mct,defaultWidth:"wide",formattingValues:gct,defaultFormattingWidth:"wide"}),day:oe({values:vct,defaultWidth:"wide",formattingValues:yct,defaultFormattingWidth:"wide"}),dayPeriod:oe({values:bct,defaultWidth:"wide",formattingValues:wct,defaultFormattingWidth:"wide"})},Tct=/^(\d+)\./i,Cct=/\d+/i,kct={narrow:/^(p\.m\.ē|m\.ē)/i,abbreviated:/^(p\. m\. ē\.|m\. ē\.)/i,wide:/^(pirms mūsu ēras|mūsu ērā)/i},xct={any:[/^p/i,/^m/i]},_ct={narrow:/^[1234]/i,abbreviated:/^[1234](\. cet\.)/i,wide:/^(pirma(is|jā)|otra(is|jā)|treša(is|jā)|ceturta(is|jā)) ceturksn(is|ī)/i},Oct={narrow:[/^1/i,/^2/i,/^3/i,/^4/i],abbreviated:[/^1/i,/^2/i,/^3/i,/^4/i],wide:[/^p/i,/^o/i,/^t/i,/^c/i]},Rct={narrow:/^[jfmasond]/i,abbreviated:/^(janv\.|febr\.|marts|apr\.|maijs|jūn\.|jūl\.|aug\.|sept\.|okt\.|nov\.|dec\.)/i,wide:/^(janvār(is|ī)|februār(is|ī)|mart[sā]|aprīl(is|ī)|maij[sā]|jūnij[sā]|jūlij[sā]|august[sā]|septembr(is|ī)|oktobr(is|ī)|novembr(is|ī)|decembr(is|ī))/i},Pct={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^mai/i,/^jūn/i,/^jūl/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},Act={narrow:/^[spotc]/i,short:/^(sv|pi|o|t|c|pk|s)/i,abbreviated:/^(svētd\.|pirmd\.|otrd.\|trešd\.|ceturtd\.|piektd\.|sestd\.)/i,wide:/^(svētdien(a|ā)|pirmdien(a|ā)|otrdien(a|ā)|trešdien(a|ā)|ceturtdien(a|ā)|piektdien(a|ā)|sestdien(a|ā))/i},Nct={narrow:[/^s/i,/^p/i,/^o/i,/^t/i,/^c/i,/^p/i,/^s/i],any:[/^sv/i,/^pi/i,/^o/i,/^t/i,/^c/i,/^p/i,/^se/i]},Mct={narrow:/^(am|pm|pusn\.|pusd\.|rīt(s|ā)|dien(a|ā)|vakar(s|ā)|nakt(s|ī))/,abbreviated:/^(am|pm|pusn\.|pusd\.|rīt(s|ā)|pēcpusd\.|vakar(s|ā)|nakt(s|ī))/,wide:/^(am|pm|pusnakt(s|ī)|pusdienlaik(s|ā)|rīt(s|ā)|pēcpusdien(a|ā)|vakar(s|ā)|nakt(s|ī))/i},Ict={any:{am:/^am/i,pm:/^pm/i,midnight:/^pusn/i,noon:/^pusd/i,morning:/^r/i,afternoon:/^(d|pēc)/i,evening:/^v/i,night:/^n/i}},Dct={ordinalNumber:Xt({matchPattern:Tct,parsePattern:Cct,valueCallback:function(t){return parseInt(t,10)}}),era:se({matchPatterns:kct,defaultMatchWidth:"wide",parsePatterns:xct,defaultParseWidth:"any"}),quarter:se({matchPatterns:_ct,defaultMatchWidth:"wide",parsePatterns:Oct,defaultParseWidth:"wide",valueCallback:function(t){return t+1}}),month:se({matchPatterns:Rct,defaultMatchWidth:"wide",parsePatterns:Pct,defaultParseWidth:"any"}),day:se({matchPatterns:Act,defaultMatchWidth:"wide",parsePatterns:Nct,defaultParseWidth:"any"}),dayPeriod:se({matchPatterns:Mct,defaultMatchWidth:"wide",parsePatterns:Ict,defaultParseWidth:"any"})},$ct={code:"lv",formatDistance:ict,formatLong:uct,formatRelative:dct,localize:Ect,match:Dct,options:{weekStartsOn:1,firstWeekContainsDate:4}};const Lct=Object.freeze(Object.defineProperty({__proto__:null,default:$ct},Symbol.toStringTag,{value:"Module"})),Fct=jt(Lct);var jct={lessThanXSeconds:{one:"kurang dari 1 saat",other:"kurang dari {{count}} saat"},xSeconds:{one:"1 saat",other:"{{count}} saat"},halfAMinute:"setengah minit",lessThanXMinutes:{one:"kurang dari 1 minit",other:"kurang dari {{count}} minit"},xMinutes:{one:"1 minit",other:"{{count}} minit"},aboutXHours:{one:"sekitar 1 jam",other:"sekitar {{count}} jam"},xHours:{one:"1 jam",other:"{{count}} jam"},xDays:{one:"1 hari",other:"{{count}} hari"},aboutXWeeks:{one:"sekitar 1 minggu",other:"sekitar {{count}} minggu"},xWeeks:{one:"1 minggu",other:"{{count}} minggu"},aboutXMonths:{one:"sekitar 1 bulan",other:"sekitar {{count}} bulan"},xMonths:{one:"1 bulan",other:"{{count}} bulan"},aboutXYears:{one:"sekitar 1 tahun",other:"sekitar {{count}} tahun"},xYears:{one:"1 tahun",other:"{{count}} tahun"},overXYears:{one:"lebih dari 1 tahun",other:"lebih dari {{count}} tahun"},almostXYears:{one:"hampir 1 tahun",other:"hampir {{count}} tahun"}},Uct=function(t,n,r){var a,i=jct[t];return typeof i=="string"?a=i:n===1?a=i.one:a=i.other.replace("{{count}}",String(n)),r!=null&&r.addSuffix?r.comparison&&r.comparison>0?"dalam masa "+a:a+" yang lalu":a},Bct={full:"EEEE, d MMMM yyyy",long:"d MMMM yyyy",medium:"d MMM yyyy",short:"d/M/yyyy"},Wct={full:"HH.mm.ss",long:"HH.mm.ss",medium:"HH.mm",short:"HH.mm"},zct={full:"{{date}} 'pukul' {{time}}",long:"{{date}} 'pukul' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},qct={date:Ne({formats:Bct,defaultWidth:"full"}),time:Ne({formats:Wct,defaultWidth:"full"}),dateTime:Ne({formats:zct,defaultWidth:"full"})},Hct={lastWeek:"eeee 'lepas pada jam' p",yesterday:"'Semalam pada jam' p",today:"'Hari ini pada jam' p",tomorrow:"'Esok pada jam' p",nextWeek:"eeee 'pada jam' p",other:"P"},Vct=function(t,n,r,a){return Hct[t]},Gct={narrow:["SM","M"],abbreviated:["SM","M"],wide:["Sebelum Masihi","Masihi"]},Yct={narrow:["1","2","3","4"],abbreviated:["S1","S2","S3","S4"],wide:["Suku pertama","Suku kedua","Suku ketiga","Suku keempat"]},Kct={narrow:["J","F","M","A","M","J","J","O","S","O","N","D"],abbreviated:["Jan","Feb","Mac","Apr","Mei","Jun","Jul","Ogo","Sep","Okt","Nov","Dis"],wide:["Januari","Februari","Mac","April","Mei","Jun","Julai","Ogos","September","Oktober","November","Disember"]},Xct={narrow:["A","I","S","R","K","J","S"],short:["Ahd","Isn","Sel","Rab","Kha","Jum","Sab"],abbreviated:["Ahd","Isn","Sel","Rab","Kha","Jum","Sab"],wide:["Ahad","Isnin","Selasa","Rabu","Khamis","Jumaat","Sabtu"]},Qct={narrow:{am:"am",pm:"pm",midnight:"tgh malam",noon:"tgh hari",morning:"pagi",afternoon:"tengah hari",evening:"petang",night:"malam"},abbreviated:{am:"AM",pm:"PM",midnight:"tengah malam",noon:"tengah hari",morning:"pagi",afternoon:"tengah hari",evening:"petang",night:"malam"},wide:{am:"a.m.",pm:"p.m.",midnight:"tengah malam",noon:"tengah hari",morning:"pagi",afternoon:"tengah hari",evening:"petang",night:"malam"}},Jct={narrow:{am:"am",pm:"pm",midnight:"tengah malam",noon:"tengah hari",morning:"pagi",afternoon:"tengah hari",evening:"petang",night:"malam"},abbreviated:{am:"AM",pm:"PM",midnight:"tengah malam",noon:"tengah hari",morning:"pagi",afternoon:"tengah hari",evening:"petang",night:"malam"},wide:{am:"a.m.",pm:"p.m.",midnight:"tengah malam",noon:"tengah hari",morning:"pagi",afternoon:"tengah hari",evening:"petang",night:"malam"}},Zct=function(t,n){return"ke-"+Number(t)},edt={ordinalNumber:Zct,era:oe({values:Gct,defaultWidth:"wide"}),quarter:oe({values:Yct,defaultWidth:"wide",argumentCallback:function(t){return t-1}}),month:oe({values:Kct,defaultWidth:"wide"}),day:oe({values:Xct,defaultWidth:"wide"}),dayPeriod:oe({values:Qct,defaultWidth:"wide",formattingValues:Jct,defaultFormattingWidth:"wide"})},tdt=/^ke-(\d+)?/i,ndt=/petama|\d+/i,rdt={narrow:/^(sm|m)/i,abbreviated:/^(s\.?\s?m\.?|m\.?)/i,wide:/^(sebelum masihi|masihi)/i},adt={any:[/^s/i,/^(m)/i]},idt={narrow:/^[1234]/i,abbreviated:/^S[1234]/i,wide:/Suku (pertama|kedua|ketiga|keempat)/i},odt={any:[/pertama|1/i,/kedua|2/i,/ketiga|3/i,/keempat|4/i]},sdt={narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mac|apr|mei|jun|jul|ogo|sep|okt|nov|dis)/i,wide:/^(januari|februari|mac|april|mei|jun|julai|ogos|september|oktober|november|disember)/i},ldt={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^o/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^ma/i,/^ap/i,/^me/i,/^jun/i,/^jul/i,/^og/i,/^s/i,/^ok/i,/^n/i,/^d/i]},udt={narrow:/^[aisrkj]/i,short:/^(ahd|isn|sel|rab|kha|jum|sab)/i,abbreviated:/^(ahd|isn|sel|rab|kha|jum|sab)/i,wide:/^(ahad|isnin|selasa|rabu|khamis|jumaat|sabtu)/i},cdt={narrow:[/^a/i,/^i/i,/^s/i,/^r/i,/^k/i,/^j/i,/^s/i],any:[/^a/i,/^i/i,/^se/i,/^r/i,/^k/i,/^j/i,/^sa/i]},ddt={narrow:/^(am|pm|tengah malam|tengah hari|pagi|petang|malam)/i,any:/^([ap]\.?\s?m\.?|tengah malam|tengah hari|pagi|petang|malam)/i},fdt={any:{am:/^a/i,pm:/^pm/i,midnight:/^tengah m/i,noon:/^tengah h/i,morning:/pa/i,afternoon:/tengah h/i,evening:/pe/i,night:/m/i}},pdt={ordinalNumber:Xt({matchPattern:tdt,parsePattern:ndt,valueCallback:function(t){return parseInt(t,10)}}),era:se({matchPatterns:rdt,defaultMatchWidth:"wide",parsePatterns:adt,defaultParseWidth:"any"}),quarter:se({matchPatterns:idt,defaultMatchWidth:"wide",parsePatterns:odt,defaultParseWidth:"any",valueCallback:function(t){return t+1}}),month:se({matchPatterns:sdt,defaultMatchWidth:"wide",parsePatterns:ldt,defaultParseWidth:"any"}),day:se({matchPatterns:udt,defaultMatchWidth:"wide",parsePatterns:cdt,defaultParseWidth:"any"}),dayPeriod:se({matchPatterns:ddt,defaultMatchWidth:"any",parsePatterns:fdt,defaultParseWidth:"any"})},hdt={code:"ms",formatDistance:Uct,formatLong:qct,formatRelative:Vct,localize:edt,match:pdt,options:{weekStartsOn:1,firstWeekContainsDate:1}};const mdt=Object.freeze(Object.defineProperty({__proto__:null,default:hdt},Symbol.toStringTag,{value:"Module"})),gdt=jt(mdt);var vdt={lessThanXSeconds:{one:"mindre enn ett sekund",other:"mindre enn {{count}} sekunder"},xSeconds:{one:"ett sekund",other:"{{count}} sekunder"},halfAMinute:"et halvt minutt",lessThanXMinutes:{one:"mindre enn ett minutt",other:"mindre enn {{count}} minutter"},xMinutes:{one:"ett minutt",other:"{{count}} minutter"},aboutXHours:{one:"omtrent en time",other:"omtrent {{count}} timer"},xHours:{one:"en time",other:"{{count}} timer"},xDays:{one:"en dag",other:"{{count}} dager"},aboutXWeeks:{one:"omtrent en uke",other:"omtrent {{count}} uker"},xWeeks:{one:"en uke",other:"{{count}} uker"},aboutXMonths:{one:"omtrent en måned",other:"omtrent {{count}} måneder"},xMonths:{one:"en måned",other:"{{count}} måneder"},aboutXYears:{one:"omtrent ett år",other:"omtrent {{count}} år"},xYears:{one:"ett år",other:"{{count}} år"},overXYears:{one:"over ett år",other:"over {{count}} år"},almostXYears:{one:"nesten ett år",other:"nesten {{count}} år"}},ydt=function(t,n,r){var a,i=vdt[t];return typeof i=="string"?a=i:n===1?a=i.one:a=i.other.replace("{{count}}",String(n)),r!=null&&r.addSuffix?r.comparison&&r.comparison>0?"om "+a:a+" siden":a},bdt={full:"EEEE d. MMMM y",long:"d. MMMM y",medium:"d. MMM y",short:"dd.MM.y"},wdt={full:"'kl'. HH:mm:ss zzzz",long:"HH:mm:ss z",medium:"HH:mm:ss",short:"HH:mm"},Sdt={full:"{{date}} 'kl.' {{time}}",long:"{{date}} 'kl.' {{time}}",medium:"{{date}} {{time}}",short:"{{date}} {{time}}"},Edt={date:Ne({formats:bdt,defaultWidth:"full"}),time:Ne({formats:wdt,defaultWidth:"full"}),dateTime:Ne({formats:Sdt,defaultWidth:"full"})},Tdt={lastWeek:"'forrige' eeee 'kl.' p",yesterday:"'i går kl.' p",today:"'i dag kl.' p",tomorrow:"'i morgen kl.' p",nextWeek:"EEEE 'kl.' p",other:"P"},Cdt=function(t,n,r,a){return Tdt[t]},kdt={narrow:["f.Kr.","e.Kr."],abbreviated:["f.Kr.","e.Kr."],wide:["før Kristus","etter Kristus"]},xdt={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1. kvartal","2. kvartal","3. kvartal","4. kvartal"]},_dt={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["jan.","feb.","mars","apr.","mai","juni","juli","aug.","sep.","okt.","nov.","des."],wide:["januar","februar","mars","april","mai","juni","juli","august","september","oktober","november","desember"]},Odt={narrow:["S","M","T","O","T","F","L"],short:["sø","ma","ti","on","to","fr","lø"],abbreviated:["søn","man","tir","ons","tor","fre","lør"],wide:["søndag","mandag","tirsdag","onsdag","torsdag","fredag","lørdag"]},Rdt={narrow:{am:"a",pm:"p",midnight:"midnatt",noon:"middag",morning:"på morg.",afternoon:"på etterm.",evening:"på kvelden",night:"på natten"},abbreviated:{am:"a.m.",pm:"p.m.",midnight:"midnatt",noon:"middag",morning:"på morg.",afternoon:"på etterm.",evening:"på kvelden",night:"på natten"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnatt",noon:"middag",morning:"på morgenen",afternoon:"på ettermiddagen",evening:"på kvelden",night:"på natten"}},Pdt=function(t,n){var r=Number(t);return r+"."},Adt={ordinalNumber:Pdt,era:oe({values:kdt,defaultWidth:"wide"}),quarter:oe({values:xdt,defaultWidth:"wide",argumentCallback:function(t){return t-1}}),month:oe({values:_dt,defaultWidth:"wide"}),day:oe({values:Odt,defaultWidth:"wide"}),dayPeriod:oe({values:Rdt,defaultWidth:"wide"})},Ndt=/^(\d+)\.?/i,Mdt=/\d+/i,Idt={narrow:/^(f\.? ?Kr\.?|fvt\.?|e\.? ?Kr\.?|evt\.?)/i,abbreviated:/^(f\.? ?Kr\.?|fvt\.?|e\.? ?Kr\.?|evt\.?)/i,wide:/^(før Kristus|før vår tid|etter Kristus|vår tid)/i},Ddt={any:[/^f/i,/^e/i]},$dt={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](\.)? kvartal/i},Ldt={any:[/1/i,/2/i,/3/i,/4/i]},Fdt={narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mars?|apr|mai|juni?|juli?|aug|sep|okt|nov|des)\.?/i,wide:/^(januar|februar|mars|april|mai|juni|juli|august|september|oktober|november|desember)/i},jdt={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^mai/i,/^jun/i,/^jul/i,/^aug/i,/^s/i,/^o/i,/^n/i,/^d/i]},Udt={narrow:/^[smtofl]/i,short:/^(sø|ma|ti|on|to|fr|lø)/i,abbreviated:/^(søn|man|tir|ons|tor|fre|lør)/i,wide:/^(søndag|mandag|tirsdag|onsdag|torsdag|fredag|lørdag)/i},Bdt={any:[/^s/i,/^m/i,/^ti/i,/^o/i,/^to/i,/^f/i,/^l/i]},Wdt={narrow:/^(midnatt|middag|(på) (morgenen|ettermiddagen|kvelden|natten)|[ap])/i,any:/^([ap]\.?\s?m\.?|midnatt|middag|(på) (morgenen|ettermiddagen|kvelden|natten))/i},zdt={any:{am:/^a(\.?\s?m\.?)?$/i,pm:/^p(\.?\s?m\.?)?$/i,midnight:/^midn/i,noon:/^midd/i,morning:/morgen/i,afternoon:/ettermiddag/i,evening:/kveld/i,night:/natt/i}},qdt={ordinalNumber:Xt({matchPattern:Ndt,parsePattern:Mdt,valueCallback:function(t){return parseInt(t,10)}}),era:se({matchPatterns:Idt,defaultMatchWidth:"wide",parsePatterns:Ddt,defaultParseWidth:"any"}),quarter:se({matchPatterns:$dt,defaultMatchWidth:"wide",parsePatterns:Ldt,defaultParseWidth:"any",valueCallback:function(t){return t+1}}),month:se({matchPatterns:Fdt,defaultMatchWidth:"wide",parsePatterns:jdt,defaultParseWidth:"any"}),day:se({matchPatterns:Udt,defaultMatchWidth:"wide",parsePatterns:Bdt,defaultParseWidth:"any"}),dayPeriod:se({matchPatterns:Wdt,defaultMatchWidth:"any",parsePatterns:zdt,defaultParseWidth:"any"})},Hdt={code:"nb",formatDistance:ydt,formatLong:Edt,formatRelative:Cdt,localize:Adt,match:qdt,options:{weekStartsOn:1,firstWeekContainsDate:4}};const Vdt=Object.freeze(Object.defineProperty({__proto__:null,default:Hdt},Symbol.toStringTag,{value:"Module"})),Gdt=jt(Vdt);var Ydt={lessThanXSeconds:{one:"minder dan een seconde",other:"minder dan {{count}} seconden"},xSeconds:{one:"1 seconde",other:"{{count}} seconden"},halfAMinute:"een halve minuut",lessThanXMinutes:{one:"minder dan een minuut",other:"minder dan {{count}} minuten"},xMinutes:{one:"een minuut",other:"{{count}} minuten"},aboutXHours:{one:"ongeveer 1 uur",other:"ongeveer {{count}} uur"},xHours:{one:"1 uur",other:"{{count}} uur"},xDays:{one:"1 dag",other:"{{count}} dagen"},aboutXWeeks:{one:"ongeveer 1 week",other:"ongeveer {{count}} weken"},xWeeks:{one:"1 week",other:"{{count}} weken"},aboutXMonths:{one:"ongeveer 1 maand",other:"ongeveer {{count}} maanden"},xMonths:{one:"1 maand",other:"{{count}} maanden"},aboutXYears:{one:"ongeveer 1 jaar",other:"ongeveer {{count}} jaar"},xYears:{one:"1 jaar",other:"{{count}} jaar"},overXYears:{one:"meer dan 1 jaar",other:"meer dan {{count}} jaar"},almostXYears:{one:"bijna 1 jaar",other:"bijna {{count}} jaar"}},Kdt=function(t,n,r){var a,i=Ydt[t];return typeof i=="string"?a=i:n===1?a=i.one:a=i.other.replace("{{count}}",String(n)),r!=null&&r.addSuffix?r.comparison&&r.comparison>0?"over "+a:a+" geleden":a},Xdt={full:"EEEE d MMMM y",long:"d MMMM y",medium:"d MMM y",short:"dd-MM-y"},Qdt={full:"HH:mm:ss zzzz",long:"HH:mm:ss z",medium:"HH:mm:ss",short:"HH:mm"},Jdt={full:"{{date}} 'om' {{time}}",long:"{{date}} 'om' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},Zdt={date:Ne({formats:Xdt,defaultWidth:"full"}),time:Ne({formats:Qdt,defaultWidth:"full"}),dateTime:Ne({formats:Jdt,defaultWidth:"full"})},eft={lastWeek:"'afgelopen' eeee 'om' p",yesterday:"'gisteren om' p",today:"'vandaag om' p",tomorrow:"'morgen om' p",nextWeek:"eeee 'om' p",other:"P"},tft=function(t,n,r,a){return eft[t]},nft={narrow:["v.C.","n.C."],abbreviated:["v.Chr.","n.Chr."],wide:["voor Christus","na Christus"]},rft={narrow:["1","2","3","4"],abbreviated:["K1","K2","K3","K4"],wide:["1e kwartaal","2e kwartaal","3e kwartaal","4e kwartaal"]},aft={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["jan.","feb.","mrt.","apr.","mei","jun.","jul.","aug.","sep.","okt.","nov.","dec."],wide:["januari","februari","maart","april","mei","juni","juli","augustus","september","oktober","november","december"]},ift={narrow:["Z","M","D","W","D","V","Z"],short:["zo","ma","di","wo","do","vr","za"],abbreviated:["zon","maa","din","woe","don","vri","zat"],wide:["zondag","maandag","dinsdag","woensdag","donderdag","vrijdag","zaterdag"]},oft={narrow:{am:"AM",pm:"PM",midnight:"middernacht",noon:"het middaguur",morning:"'s ochtends",afternoon:"'s middags",evening:"'s avonds",night:"'s nachts"},abbreviated:{am:"AM",pm:"PM",midnight:"middernacht",noon:"het middaguur",morning:"'s ochtends",afternoon:"'s middags",evening:"'s avonds",night:"'s nachts"},wide:{am:"AM",pm:"PM",midnight:"middernacht",noon:"het middaguur",morning:"'s ochtends",afternoon:"'s middags",evening:"'s avonds",night:"'s nachts"}},sft=function(t,n){var r=Number(t);return r+"e"},lft={ordinalNumber:sft,era:oe({values:nft,defaultWidth:"wide"}),quarter:oe({values:rft,defaultWidth:"wide",argumentCallback:function(t){return t-1}}),month:oe({values:aft,defaultWidth:"wide"}),day:oe({values:ift,defaultWidth:"wide"}),dayPeriod:oe({values:oft,defaultWidth:"wide"})},uft=/^(\d+)e?/i,cft=/\d+/i,dft={narrow:/^([vn]\.? ?C\.?)/,abbreviated:/^([vn]\. ?Chr\.?)/,wide:/^((voor|na) Christus)/},fft={any:[/^v/,/^n/]},pft={narrow:/^[1234]/i,abbreviated:/^K[1234]/i,wide:/^[1234]e kwartaal/i},hft={any:[/1/i,/2/i,/3/i,/4/i]},mft={narrow:/^[jfmasond]/i,abbreviated:/^(jan.|feb.|mrt.|apr.|mei|jun.|jul.|aug.|sep.|okt.|nov.|dec.)/i,wide:/^(januari|februari|maart|april|mei|juni|juli|augustus|september|oktober|november|december)/i},gft={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^jan/i,/^feb/i,/^m(r|a)/i,/^apr/i,/^mei/i,/^jun/i,/^jul/i,/^aug/i,/^sep/i,/^okt/i,/^nov/i,/^dec/i]},vft={narrow:/^[zmdwv]/i,short:/^(zo|ma|di|wo|do|vr|za)/i,abbreviated:/^(zon|maa|din|woe|don|vri|zat)/i,wide:/^(zondag|maandag|dinsdag|woensdag|donderdag|vrijdag|zaterdag)/i},yft={narrow:[/^z/i,/^m/i,/^d/i,/^w/i,/^d/i,/^v/i,/^z/i],any:[/^zo/i,/^ma/i,/^di/i,/^wo/i,/^do/i,/^vr/i,/^za/i]},bft={any:/^(am|pm|middernacht|het middaguur|'s (ochtends|middags|avonds|nachts))/i},wft={any:{am:/^am/i,pm:/^pm/i,midnight:/^middernacht/i,noon:/^het middaguur/i,morning:/ochtend/i,afternoon:/middag/i,evening:/avond/i,night:/nacht/i}},Sft={ordinalNumber:Xt({matchPattern:uft,parsePattern:cft,valueCallback:function(t){return parseInt(t,10)}}),era:se({matchPatterns:dft,defaultMatchWidth:"wide",parsePatterns:fft,defaultParseWidth:"any"}),quarter:se({matchPatterns:pft,defaultMatchWidth:"wide",parsePatterns:hft,defaultParseWidth:"any",valueCallback:function(t){return t+1}}),month:se({matchPatterns:mft,defaultMatchWidth:"wide",parsePatterns:gft,defaultParseWidth:"any"}),day:se({matchPatterns:vft,defaultMatchWidth:"wide",parsePatterns:yft,defaultParseWidth:"any"}),dayPeriod:se({matchPatterns:bft,defaultMatchWidth:"any",parsePatterns:wft,defaultParseWidth:"any"})},Eft={code:"nl",formatDistance:Kdt,formatLong:Zdt,formatRelative:tft,localize:lft,match:Sft,options:{weekStartsOn:1,firstWeekContainsDate:4}};const Tft=Object.freeze(Object.defineProperty({__proto__:null,default:Eft},Symbol.toStringTag,{value:"Module"})),Cft=jt(Tft);var kft={lessThanXSeconds:{one:"mindre enn eitt sekund",other:"mindre enn {{count}} sekund"},xSeconds:{one:"eitt sekund",other:"{{count}} sekund"},halfAMinute:"eit halvt minutt",lessThanXMinutes:{one:"mindre enn eitt minutt",other:"mindre enn {{count}} minutt"},xMinutes:{one:"eitt minutt",other:"{{count}} minutt"},aboutXHours:{one:"omtrent ein time",other:"omtrent {{count}} timar"},xHours:{one:"ein time",other:"{{count}} timar"},xDays:{one:"ein dag",other:"{{count}} dagar"},aboutXWeeks:{one:"omtrent ei veke",other:"omtrent {{count}} veker"},xWeeks:{one:"ei veke",other:"{{count}} veker"},aboutXMonths:{one:"omtrent ein månad",other:"omtrent {{count}} månader"},xMonths:{one:"ein månad",other:"{{count}} månader"},aboutXYears:{one:"omtrent eitt år",other:"omtrent {{count}} år"},xYears:{one:"eitt år",other:"{{count}} år"},overXYears:{one:"over eitt år",other:"over {{count}} år"},almostXYears:{one:"nesten eitt år",other:"nesten {{count}} år"}},xft=["null","ein","to","tre","fire","fem","seks","sju","åtte","ni","ti","elleve","tolv"],_ft=function(t,n,r){var a,i=kft[t];return typeof i=="string"?a=i:n===1?a=i.one:r&&r.onlyNumeric?a=i.other.replace("{{count}}",String(n)):a=i.other.replace("{{count}}",n<13?xft[n]:String(n)),r!=null&&r.addSuffix?r.comparison&&r.comparison>0?"om "+a:a+" sidan":a},Oft={full:"EEEE d. MMMM y",long:"d. MMMM y",medium:"d. MMM y",short:"dd.MM.y"},Rft={full:"'kl'. HH:mm:ss zzzz",long:"HH:mm:ss z",medium:"HH:mm:ss",short:"HH:mm"},Pft={full:"{{date}} 'kl.' {{time}}",long:"{{date}} 'kl.' {{time}}",medium:"{{date}} {{time}}",short:"{{date}} {{time}}"},Aft={date:Ne({formats:Oft,defaultWidth:"full"}),time:Ne({formats:Rft,defaultWidth:"full"}),dateTime:Ne({formats:Pft,defaultWidth:"full"})},Nft={lastWeek:"'førre' eeee 'kl.' p",yesterday:"'i går kl.' p",today:"'i dag kl.' p",tomorrow:"'i morgon kl.' p",nextWeek:"EEEE 'kl.' p",other:"P"},Mft=function(t,n,r,a){return Nft[t]},Ift={narrow:["f.Kr.","e.Kr."],abbreviated:["f.Kr.","e.Kr."],wide:["før Kristus","etter Kristus"]},Dft={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1. kvartal","2. kvartal","3. kvartal","4. kvartal"]},$ft={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["jan.","feb.","mars","apr.","mai","juni","juli","aug.","sep.","okt.","nov.","des."],wide:["januar","februar","mars","april","mai","juni","juli","august","september","oktober","november","desember"]},Lft={narrow:["S","M","T","O","T","F","L"],short:["su","må","ty","on","to","fr","lau"],abbreviated:["sun","mån","tys","ons","tor","fre","laur"],wide:["sundag","måndag","tysdag","onsdag","torsdag","fredag","laurdag"]},Fft={narrow:{am:"a",pm:"p",midnight:"midnatt",noon:"middag",morning:"på morg.",afternoon:"på etterm.",evening:"på kvelden",night:"på natta"},abbreviated:{am:"a.m.",pm:"p.m.",midnight:"midnatt",noon:"middag",morning:"på morg.",afternoon:"på etterm.",evening:"på kvelden",night:"på natta"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnatt",noon:"middag",morning:"på morgonen",afternoon:"på ettermiddagen",evening:"på kvelden",night:"på natta"}},jft=function(t,n){var r=Number(t);return r+"."},Uft={ordinalNumber:jft,era:oe({values:Ift,defaultWidth:"wide"}),quarter:oe({values:Dft,defaultWidth:"wide",argumentCallback:function(t){return t-1}}),month:oe({values:$ft,defaultWidth:"wide"}),day:oe({values:Lft,defaultWidth:"wide"}),dayPeriod:oe({values:Fft,defaultWidth:"wide"})},Bft=/^(\d+)\.?/i,Wft=/\d+/i,zft={narrow:/^(f\.? ?Kr\.?|fvt\.?|e\.? ?Kr\.?|evt\.?)/i,abbreviated:/^(f\.? ?Kr\.?|fvt\.?|e\.? ?Kr\.?|evt\.?)/i,wide:/^(før Kristus|før vår tid|etter Kristus|vår tid)/i},qft={any:[/^f/i,/^e/i]},Hft={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](\.)? kvartal/i},Vft={any:[/1/i,/2/i,/3/i,/4/i]},Gft={narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mars?|apr|mai|juni?|juli?|aug|sep|okt|nov|des)\.?/i,wide:/^(januar|februar|mars|april|mai|juni|juli|august|september|oktober|november|desember)/i},Yft={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^mai/i,/^jun/i,/^jul/i,/^aug/i,/^s/i,/^o/i,/^n/i,/^d/i]},Kft={narrow:/^[smtofl]/i,short:/^(su|må|ty|on|to|fr|la)/i,abbreviated:/^(sun|mån|tys|ons|tor|fre|laur)/i,wide:/^(sundag|måndag|tysdag|onsdag|torsdag|fredag|laurdag)/i},Xft={any:[/^s/i,/^m/i,/^ty/i,/^o/i,/^to/i,/^f/i,/^l/i]},Qft={narrow:/^(midnatt|middag|(på) (morgonen|ettermiddagen|kvelden|natta)|[ap])/i,any:/^([ap]\.?\s?m\.?|midnatt|middag|(på) (morgonen|ettermiddagen|kvelden|natta))/i},Jft={any:{am:/^a(\.?\s?m\.?)?$/i,pm:/^p(\.?\s?m\.?)?$/i,midnight:/^midn/i,noon:/^midd/i,morning:/morgon/i,afternoon:/ettermiddag/i,evening:/kveld/i,night:/natt/i}},Zft={ordinalNumber:Xt({matchPattern:Bft,parsePattern:Wft,valueCallback:function(t){return parseInt(t,10)}}),era:se({matchPatterns:zft,defaultMatchWidth:"wide",parsePatterns:qft,defaultParseWidth:"any"}),quarter:se({matchPatterns:Hft,defaultMatchWidth:"wide",parsePatterns:Vft,defaultParseWidth:"any",valueCallback:function(t){return t+1}}),month:se({matchPatterns:Gft,defaultMatchWidth:"wide",parsePatterns:Yft,defaultParseWidth:"any"}),day:se({matchPatterns:Kft,defaultMatchWidth:"wide",parsePatterns:Xft,defaultParseWidth:"any"}),dayPeriod:se({matchPatterns:Qft,defaultMatchWidth:"any",parsePatterns:Jft,defaultParseWidth:"any"})},ept={code:"nn",formatDistance:_ft,formatLong:Aft,formatRelative:Mft,localize:Uft,match:Zft,options:{weekStartsOn:1,firstWeekContainsDate:4}};const tpt=Object.freeze(Object.defineProperty({__proto__:null,default:ept},Symbol.toStringTag,{value:"Module"})),npt=jt(tpt);var rpt={lessThanXSeconds:{one:{regular:"mniej niż sekunda",past:"mniej niż sekundę",future:"mniej niż sekundę"},twoFour:"mniej niż {{count}} sekundy",other:"mniej niż {{count}} sekund"},xSeconds:{one:{regular:"sekunda",past:"sekundę",future:"sekundę"},twoFour:"{{count}} sekundy",other:"{{count}} sekund"},halfAMinute:{one:"pół minuty",twoFour:"pół minuty",other:"pół minuty"},lessThanXMinutes:{one:{regular:"mniej niż minuta",past:"mniej niż minutę",future:"mniej niż minutę"},twoFour:"mniej niż {{count}} minuty",other:"mniej niż {{count}} minut"},xMinutes:{one:{regular:"minuta",past:"minutę",future:"minutę"},twoFour:"{{count}} minuty",other:"{{count}} minut"},aboutXHours:{one:{regular:"około godziny",past:"około godziny",future:"około godzinę"},twoFour:"około {{count}} godziny",other:"około {{count}} godzin"},xHours:{one:{regular:"godzina",past:"godzinę",future:"godzinę"},twoFour:"{{count}} godziny",other:"{{count}} godzin"},xDays:{one:{regular:"dzień",past:"dzień",future:"1 dzień"},twoFour:"{{count}} dni",other:"{{count}} dni"},aboutXWeeks:{one:"około tygodnia",twoFour:"około {{count}} tygodni",other:"około {{count}} tygodni"},xWeeks:{one:"tydzień",twoFour:"{{count}} tygodnie",other:"{{count}} tygodni"},aboutXMonths:{one:"około miesiąc",twoFour:"około {{count}} miesiące",other:"około {{count}} miesięcy"},xMonths:{one:"miesiąc",twoFour:"{{count}} miesiące",other:"{{count}} miesięcy"},aboutXYears:{one:"około rok",twoFour:"około {{count}} lata",other:"około {{count}} lat"},xYears:{one:"rok",twoFour:"{{count}} lata",other:"{{count}} lat"},overXYears:{one:"ponad rok",twoFour:"ponad {{count}} lata",other:"ponad {{count}} lat"},almostXYears:{one:"prawie rok",twoFour:"prawie {{count}} lata",other:"prawie {{count}} lat"}};function apt(e,t){if(t===1)return e.one;var n=t%100;if(n<=20&&n>10)return e.other;var r=n%10;return r>=2&&r<=4?e.twoFour:e.other}function I$(e,t,n){var r=apt(e,t),a=typeof r=="string"?r:r[n];return a.replace("{{count}}",String(t))}var ipt=function(t,n,r){var a=rpt[t];return r!=null&&r.addSuffix?r.comparison&&r.comparison>0?"za "+I$(a,n,"future"):I$(a,n,"past")+" temu":I$(a,n,"regular")},opt={full:"EEEE, do MMMM y",long:"do MMMM y",medium:"do MMM y",short:"dd.MM.y"},spt={full:"HH:mm:ss zzzz",long:"HH:mm:ss z",medium:"HH:mm:ss",short:"HH:mm"},lpt={full:"{{date}} {{time}}",long:"{{date}} {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},upt={date:Ne({formats:opt,defaultWidth:"full"}),time:Ne({formats:spt,defaultWidth:"full"}),dateTime:Ne({formats:lpt,defaultWidth:"full"})},cpt={masculine:"ostatni",feminine:"ostatnia"},dpt={masculine:"ten",feminine:"ta"},fpt={masculine:"następny",feminine:"następna"},ppt={0:"feminine",1:"masculine",2:"masculine",3:"feminine",4:"masculine",5:"masculine",6:"feminine"};function KG(e,t,n,r){var a;if(wi(t,n,r))a=dpt;else if(e==="lastWeek")a=cpt;else if(e==="nextWeek")a=fpt;else throw new Error("Cannot determine adjectives for token ".concat(e));var i=t.getUTCDay(),o=ppt[i],l=a[o];return"'".concat(l,"' eeee 'o' p")}var hpt={lastWeek:KG,yesterday:"'wczoraj o' p",today:"'dzisiaj o' p",tomorrow:"'jutro o' p",nextWeek:KG,other:"P"},mpt=function(t,n,r,a){var i=hpt[t];return typeof i=="function"?i(t,n,r,a):i},gpt={narrow:["p.n.e.","n.e."],abbreviated:["p.n.e.","n.e."],wide:["przed naszą erą","naszej ery"]},vpt={narrow:["1","2","3","4"],abbreviated:["I kw.","II kw.","III kw.","IV kw."],wide:["I kwartał","II kwartał","III kwartał","IV kwartał"]},ypt={narrow:["S","L","M","K","M","C","L","S","W","P","L","G"],abbreviated:["sty","lut","mar","kwi","maj","cze","lip","sie","wrz","paź","lis","gru"],wide:["styczeń","luty","marzec","kwiecień","maj","czerwiec","lipiec","sierpień","wrzesień","październik","listopad","grudzień"]},bpt={narrow:["s","l","m","k","m","c","l","s","w","p","l","g"],abbreviated:["sty","lut","mar","kwi","maj","cze","lip","sie","wrz","paź","lis","gru"],wide:["stycznia","lutego","marca","kwietnia","maja","czerwca","lipca","sierpnia","września","października","listopada","grudnia"]},wpt={narrow:["N","P","W","Ś","C","P","S"],short:["nie","pon","wto","śro","czw","pią","sob"],abbreviated:["niedz.","pon.","wt.","śr.","czw.","pt.","sob."],wide:["niedziela","poniedziałek","wtorek","środa","czwartek","piątek","sobota"]},Spt={narrow:["n","p","w","ś","c","p","s"],short:["nie","pon","wto","śro","czw","pią","sob"],abbreviated:["niedz.","pon.","wt.","śr.","czw.","pt.","sob."],wide:["niedziela","poniedziałek","wtorek","środa","czwartek","piątek","sobota"]},Ept={narrow:{am:"a",pm:"p",midnight:"półn.",noon:"poł",morning:"rano",afternoon:"popoł.",evening:"wiecz.",night:"noc"},abbreviated:{am:"AM",pm:"PM",midnight:"północ",noon:"południe",morning:"rano",afternoon:"popołudnie",evening:"wieczór",night:"noc"},wide:{am:"AM",pm:"PM",midnight:"północ",noon:"południe",morning:"rano",afternoon:"popołudnie",evening:"wieczór",night:"noc"}},Tpt={narrow:{am:"a",pm:"p",midnight:"o półn.",noon:"w poł.",morning:"rano",afternoon:"po poł.",evening:"wiecz.",night:"w nocy"},abbreviated:{am:"AM",pm:"PM",midnight:"o północy",noon:"w południe",morning:"rano",afternoon:"po południu",evening:"wieczorem",night:"w nocy"},wide:{am:"AM",pm:"PM",midnight:"o północy",noon:"w południe",morning:"rano",afternoon:"po południu",evening:"wieczorem",night:"w nocy"}},Cpt=function(t,n){return String(t)},kpt={ordinalNumber:Cpt,era:oe({values:gpt,defaultWidth:"wide"}),quarter:oe({values:vpt,defaultWidth:"wide",argumentCallback:function(t){return t-1}}),month:oe({values:ypt,defaultWidth:"wide",formattingValues:bpt,defaultFormattingWidth:"wide"}),day:oe({values:wpt,defaultWidth:"wide",formattingValues:Spt,defaultFormattingWidth:"wide"}),dayPeriod:oe({values:Ept,defaultWidth:"wide",formattingValues:Tpt,defaultFormattingWidth:"wide"})},xpt=/^(\d+)?/i,_pt=/\d+/i,Opt={narrow:/^(p\.?\s*n\.?\s*e\.?\s*|n\.?\s*e\.?\s*)/i,abbreviated:/^(p\.?\s*n\.?\s*e\.?\s*|n\.?\s*e\.?\s*)/i,wide:/^(przed\s*nasz(ą|a)\s*er(ą|a)|naszej\s*ery)/i},Rpt={any:[/^p/i,/^n/i]},Ppt={narrow:/^[1234]/i,abbreviated:/^(I|II|III|IV)\s*kw\.?/i,wide:/^(I|II|III|IV)\s*kwarta(ł|l)/i},Apt={narrow:[/1/i,/2/i,/3/i,/4/i],any:[/^I kw/i,/^II kw/i,/^III kw/i,/^IV kw/i]},Npt={narrow:/^[slmkcwpg]/i,abbreviated:/^(sty|lut|mar|kwi|maj|cze|lip|sie|wrz|pa(ź|z)|lis|gru)/i,wide:/^(stycznia|stycze(ń|n)|lutego|luty|marca|marzec|kwietnia|kwiecie(ń|n)|maja|maj|czerwca|czerwiec|lipca|lipiec|sierpnia|sierpie(ń|n)|wrze(ś|s)nia|wrzesie(ń|n)|pa(ź|z)dziernika|pa(ź|z)dziernik|listopada|listopad|grudnia|grudzie(ń|n))/i},Mpt={narrow:[/^s/i,/^l/i,/^m/i,/^k/i,/^m/i,/^c/i,/^l/i,/^s/i,/^w/i,/^p/i,/^l/i,/^g/i],any:[/^st/i,/^lu/i,/^mar/i,/^k/i,/^maj/i,/^c/i,/^lip/i,/^si/i,/^w/i,/^p/i,/^lis/i,/^g/i]},Ipt={narrow:/^[npwścs]/i,short:/^(nie|pon|wto|(ś|s)ro|czw|pi(ą|a)|sob)/i,abbreviated:/^(niedz|pon|wt|(ś|s)r|czw|pt|sob)\.?/i,wide:/^(niedziela|poniedzia(ł|l)ek|wtorek|(ś|s)roda|czwartek|pi(ą|a)tek|sobota)/i},Dpt={narrow:[/^n/i,/^p/i,/^w/i,/^ś/i,/^c/i,/^p/i,/^s/i],abbreviated:[/^n/i,/^po/i,/^w/i,/^(ś|s)r/i,/^c/i,/^pt/i,/^so/i],any:[/^n/i,/^po/i,/^w/i,/^(ś|s)r/i,/^c/i,/^pi/i,/^so/i]},$pt={narrow:/^(^a$|^p$|pó(ł|l)n\.?|o\s*pó(ł|l)n\.?|po(ł|l)\.?|w\s*po(ł|l)\.?|po\s*po(ł|l)\.?|rano|wiecz\.?|noc|w\s*nocy)/i,any:/^(am|pm|pó(ł|l)noc|o\s*pó(ł|l)nocy|po(ł|l)udnie|w\s*po(ł|l)udnie|popo(ł|l)udnie|po\s*po(ł|l)udniu|rano|wieczór|wieczorem|noc|w\s*nocy)/i},Lpt={narrow:{am:/^a$/i,pm:/^p$/i,midnight:/pó(ł|l)n/i,noon:/po(ł|l)/i,morning:/rano/i,afternoon:/po\s*po(ł|l)/i,evening:/wiecz/i,night:/noc/i},any:{am:/^am/i,pm:/^pm/i,midnight:/pó(ł|l)n/i,noon:/po(ł|l)/i,morning:/rano/i,afternoon:/po\s*po(ł|l)/i,evening:/wiecz/i,night:/noc/i}},Fpt={ordinalNumber:Xt({matchPattern:xpt,parsePattern:_pt,valueCallback:function(t){return parseInt(t,10)}}),era:se({matchPatterns:Opt,defaultMatchWidth:"wide",parsePatterns:Rpt,defaultParseWidth:"any"}),quarter:se({matchPatterns:Ppt,defaultMatchWidth:"wide",parsePatterns:Apt,defaultParseWidth:"any",valueCallback:function(t){return t+1}}),month:se({matchPatterns:Npt,defaultMatchWidth:"wide",parsePatterns:Mpt,defaultParseWidth:"any"}),day:se({matchPatterns:Ipt,defaultMatchWidth:"wide",parsePatterns:Dpt,defaultParseWidth:"any"}),dayPeriod:se({matchPatterns:$pt,defaultMatchWidth:"any",parsePatterns:Lpt,defaultParseWidth:"any"})},jpt={code:"pl",formatDistance:ipt,formatLong:upt,formatRelative:mpt,localize:kpt,match:Fpt,options:{weekStartsOn:1,firstWeekContainsDate:4}};const Upt=Object.freeze(Object.defineProperty({__proto__:null,default:jpt},Symbol.toStringTag,{value:"Module"})),Bpt=jt(Upt);var Wpt={lessThanXSeconds:{one:"menos de um segundo",other:"menos de {{count}} segundos"},xSeconds:{one:"1 segundo",other:"{{count}} segundos"},halfAMinute:"meio minuto",lessThanXMinutes:{one:"menos de um minuto",other:"menos de {{count}} minutos"},xMinutes:{one:"1 minuto",other:"{{count}} minutos"},aboutXHours:{one:"aproximadamente 1 hora",other:"aproximadamente {{count}} horas"},xHours:{one:"1 hora",other:"{{count}} horas"},xDays:{one:"1 dia",other:"{{count}} dias"},aboutXWeeks:{one:"aproximadamente 1 semana",other:"aproximadamente {{count}} semanas"},xWeeks:{one:"1 semana",other:"{{count}} semanas"},aboutXMonths:{one:"aproximadamente 1 mês",other:"aproximadamente {{count}} meses"},xMonths:{one:"1 mês",other:"{{count}} meses"},aboutXYears:{one:"aproximadamente 1 ano",other:"aproximadamente {{count}} anos"},xYears:{one:"1 ano",other:"{{count}} anos"},overXYears:{one:"mais de 1 ano",other:"mais de {{count}} anos"},almostXYears:{one:"quase 1 ano",other:"quase {{count}} anos"}},zpt=function(t,n,r){var a,i=Wpt[t];return typeof i=="string"?a=i:n===1?a=i.one:a=i.other.replace("{{count}}",String(n)),r!=null&&r.addSuffix?r.comparison&&r.comparison>0?"daqui a "+a:"há "+a:a},qpt={full:"EEEE, d 'de' MMMM 'de' y",long:"d 'de' MMMM 'de' y",medium:"d 'de' MMM 'de' y",short:"dd/MM/y"},Hpt={full:"HH:mm:ss zzzz",long:"HH:mm:ss z",medium:"HH:mm:ss",short:"HH:mm"},Vpt={full:"{{date}} 'às' {{time}}",long:"{{date}} 'às' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},Gpt={date:Ne({formats:qpt,defaultWidth:"full"}),time:Ne({formats:Hpt,defaultWidth:"full"}),dateTime:Ne({formats:Vpt,defaultWidth:"full"})},Ypt={lastWeek:function(t){var n=t.getUTCDay(),r=n===0||n===6?"último":"última";return"'"+r+"' eeee 'às' p"},yesterday:"'ontem às' p",today:"'hoje às' p",tomorrow:"'amanhã às' p",nextWeek:"eeee 'às' p",other:"P"},Kpt=function(t,n,r,a){var i=Ypt[t];return typeof i=="function"?i(n):i},Xpt={narrow:["aC","dC"],abbreviated:["a.C.","d.C."],wide:["antes de Cristo","depois de Cristo"]},Qpt={narrow:["1","2","3","4"],abbreviated:["T1","T2","T3","T4"],wide:["1º trimestre","2º trimestre","3º trimestre","4º trimestre"]},Jpt={narrow:["j","f","m","a","m","j","j","a","s","o","n","d"],abbreviated:["jan","fev","mar","abr","mai","jun","jul","ago","set","out","nov","dez"],wide:["janeiro","fevereiro","março","abril","maio","junho","julho","agosto","setembro","outubro","novembro","dezembro"]},Zpt={narrow:["d","s","t","q","q","s","s"],short:["dom","seg","ter","qua","qui","sex","sáb"],abbreviated:["dom","seg","ter","qua","qui","sex","sáb"],wide:["domingo","segunda-feira","terça-feira","quarta-feira","quinta-feira","sexta-feira","sábado"]},eht={narrow:{am:"AM",pm:"PM",midnight:"meia-noite",noon:"meio-dia",morning:"manhã",afternoon:"tarde",evening:"noite",night:"madrugada"},abbreviated:{am:"AM",pm:"PM",midnight:"meia-noite",noon:"meio-dia",morning:"manhã",afternoon:"tarde",evening:"noite",night:"madrugada"},wide:{am:"AM",pm:"PM",midnight:"meia-noite",noon:"meio-dia",morning:"manhã",afternoon:"tarde",evening:"noite",night:"madrugada"}},tht={narrow:{am:"AM",pm:"PM",midnight:"meia-noite",noon:"meio-dia",morning:"da manhã",afternoon:"da tarde",evening:"da noite",night:"da madrugada"},abbreviated:{am:"AM",pm:"PM",midnight:"meia-noite",noon:"meio-dia",morning:"da manhã",afternoon:"da tarde",evening:"da noite",night:"da madrugada"},wide:{am:"AM",pm:"PM",midnight:"meia-noite",noon:"meio-dia",morning:"da manhã",afternoon:"da tarde",evening:"da noite",night:"da madrugada"}},nht=function(t,n){var r=Number(t);return r+"º"},rht={ordinalNumber:nht,era:oe({values:Xpt,defaultWidth:"wide"}),quarter:oe({values:Qpt,defaultWidth:"wide",argumentCallback:function(t){return t-1}}),month:oe({values:Jpt,defaultWidth:"wide"}),day:oe({values:Zpt,defaultWidth:"wide"}),dayPeriod:oe({values:eht,defaultWidth:"wide",formattingValues:tht,defaultFormattingWidth:"wide"})},aht=/^(\d+)(º|ª)?/i,iht=/\d+/i,oht={narrow:/^(ac|dc|a|d)/i,abbreviated:/^(a\.?\s?c\.?|a\.?\s?e\.?\s?c\.?|d\.?\s?c\.?|e\.?\s?c\.?)/i,wide:/^(antes de cristo|antes da era comum|depois de cristo|era comum)/i},sht={any:[/^ac/i,/^dc/i],wide:[/^(antes de cristo|antes da era comum)/i,/^(depois de cristo|era comum)/i]},lht={narrow:/^[1234]/i,abbreviated:/^T[1234]/i,wide:/^[1234](º|ª)? trimestre/i},uht={any:[/1/i,/2/i,/3/i,/4/i]},cht={narrow:/^[jfmasond]/i,abbreviated:/^(jan|fev|mar|abr|mai|jun|jul|ago|set|out|nov|dez)/i,wide:/^(janeiro|fevereiro|março|abril|maio|junho|julho|agosto|setembro|outubro|novembro|dezembro)/i},dht={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ab/i,/^mai/i,/^jun/i,/^jul/i,/^ag/i,/^s/i,/^o/i,/^n/i,/^d/i]},fht={narrow:/^[dstq]/i,short:/^(dom|seg|ter|qua|qui|sex|s[áa]b)/i,abbreviated:/^(dom|seg|ter|qua|qui|sex|s[áa]b)/i,wide:/^(domingo|segunda-?\s?feira|terça-?\s?feira|quarta-?\s?feira|quinta-?\s?feira|sexta-?\s?feira|s[áa]bado)/i},pht={narrow:[/^d/i,/^s/i,/^t/i,/^q/i,/^q/i,/^s/i,/^s/i],any:[/^d/i,/^seg/i,/^t/i,/^qua/i,/^qui/i,/^sex/i,/^s[áa]/i]},hht={narrow:/^(a|p|meia-?\s?noite|meio-?\s?dia|(da) (manh[ãa]|tarde|noite|madrugada))/i,any:/^([ap]\.?\s?m\.?|meia-?\s?noite|meio-?\s?dia|(da) (manh[ãa]|tarde|noite|madrugada))/i},mht={any:{am:/^a/i,pm:/^p/i,midnight:/^meia/i,noon:/^meio/i,morning:/manh[ãa]/i,afternoon:/tarde/i,evening:/noite/i,night:/madrugada/i}},ght={ordinalNumber:Xt({matchPattern:aht,parsePattern:iht,valueCallback:function(t){return parseInt(t,10)}}),era:se({matchPatterns:oht,defaultMatchWidth:"wide",parsePatterns:sht,defaultParseWidth:"any"}),quarter:se({matchPatterns:lht,defaultMatchWidth:"wide",parsePatterns:uht,defaultParseWidth:"any",valueCallback:function(t){return t+1}}),month:se({matchPatterns:cht,defaultMatchWidth:"wide",parsePatterns:dht,defaultParseWidth:"any"}),day:se({matchPatterns:fht,defaultMatchWidth:"wide",parsePatterns:pht,defaultParseWidth:"any"}),dayPeriod:se({matchPatterns:hht,defaultMatchWidth:"any",parsePatterns:mht,defaultParseWidth:"any"})},vht={code:"pt",formatDistance:zpt,formatLong:Gpt,formatRelative:Kpt,localize:rht,match:ght,options:{weekStartsOn:1,firstWeekContainsDate:4}};const yht=Object.freeze(Object.defineProperty({__proto__:null,default:vht},Symbol.toStringTag,{value:"Module"})),bht=jt(yht);var wht={lessThanXSeconds:{one:"menos de um segundo",other:"menos de {{count}} segundos"},xSeconds:{one:"1 segundo",other:"{{count}} segundos"},halfAMinute:"meio minuto",lessThanXMinutes:{one:"menos de um minuto",other:"menos de {{count}} minutos"},xMinutes:{one:"1 minuto",other:"{{count}} minutos"},aboutXHours:{one:"cerca de 1 hora",other:"cerca de {{count}} horas"},xHours:{one:"1 hora",other:"{{count}} horas"},xDays:{one:"1 dia",other:"{{count}} dias"},aboutXWeeks:{one:"cerca de 1 semana",other:"cerca de {{count}} semanas"},xWeeks:{one:"1 semana",other:"{{count}} semanas"},aboutXMonths:{one:"cerca de 1 mês",other:"cerca de {{count}} meses"},xMonths:{one:"1 mês",other:"{{count}} meses"},aboutXYears:{one:"cerca de 1 ano",other:"cerca de {{count}} anos"},xYears:{one:"1 ano",other:"{{count}} anos"},overXYears:{one:"mais de 1 ano",other:"mais de {{count}} anos"},almostXYears:{one:"quase 1 ano",other:"quase {{count}} anos"}},Sht=function(t,n,r){var a,i=wht[t];return typeof i=="string"?a=i:n===1?a=i.one:a=i.other.replace("{{count}}",String(n)),r!=null&&r.addSuffix?r.comparison&&r.comparison>0?"em "+a:"há "+a:a},Eht={full:"EEEE, d 'de' MMMM 'de' y",long:"d 'de' MMMM 'de' y",medium:"d MMM y",short:"dd/MM/yyyy"},Tht={full:"HH:mm:ss zzzz",long:"HH:mm:ss z",medium:"HH:mm:ss",short:"HH:mm"},Cht={full:"{{date}} 'às' {{time}}",long:"{{date}} 'às' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},kht={date:Ne({formats:Eht,defaultWidth:"full"}),time:Ne({formats:Tht,defaultWidth:"full"}),dateTime:Ne({formats:Cht,defaultWidth:"full"})},xht={lastWeek:function(t){var n=t.getUTCDay(),r=n===0||n===6?"último":"última";return"'"+r+"' eeee 'às' p"},yesterday:"'ontem às' p",today:"'hoje às' p",tomorrow:"'amanhã às' p",nextWeek:"eeee 'às' p",other:"P"},_ht=function(t,n,r,a){var i=xht[t];return typeof i=="function"?i(n):i},Oht={narrow:["AC","DC"],abbreviated:["AC","DC"],wide:["antes de cristo","depois de cristo"]},Rht={narrow:["1","2","3","4"],abbreviated:["T1","T2","T3","T4"],wide:["1º trimestre","2º trimestre","3º trimestre","4º trimestre"]},Pht={narrow:["j","f","m","a","m","j","j","a","s","o","n","d"],abbreviated:["jan","fev","mar","abr","mai","jun","jul","ago","set","out","nov","dez"],wide:["janeiro","fevereiro","março","abril","maio","junho","julho","agosto","setembro","outubro","novembro","dezembro"]},Aht={narrow:["D","S","T","Q","Q","S","S"],short:["dom","seg","ter","qua","qui","sex","sab"],abbreviated:["domingo","segunda","terça","quarta","quinta","sexta","sábado"],wide:["domingo","segunda-feira","terça-feira","quarta-feira","quinta-feira","sexta-feira","sábado"]},Nht={narrow:{am:"a",pm:"p",midnight:"mn",noon:"md",morning:"manhã",afternoon:"tarde",evening:"tarde",night:"noite"},abbreviated:{am:"AM",pm:"PM",midnight:"meia-noite",noon:"meio-dia",morning:"manhã",afternoon:"tarde",evening:"tarde",night:"noite"},wide:{am:"a.m.",pm:"p.m.",midnight:"meia-noite",noon:"meio-dia",morning:"manhã",afternoon:"tarde",evening:"tarde",night:"noite"}},Mht={narrow:{am:"a",pm:"p",midnight:"mn",noon:"md",morning:"da manhã",afternoon:"da tarde",evening:"da tarde",night:"da noite"},abbreviated:{am:"AM",pm:"PM",midnight:"meia-noite",noon:"meio-dia",morning:"da manhã",afternoon:"da tarde",evening:"da tarde",night:"da noite"},wide:{am:"a.m.",pm:"p.m.",midnight:"meia-noite",noon:"meio-dia",morning:"da manhã",afternoon:"da tarde",evening:"da tarde",night:"da noite"}},Iht=function(t,n){var r=Number(t);return(n==null?void 0:n.unit)==="week"?r+"ª":r+"º"},Dht={ordinalNumber:Iht,era:oe({values:Oht,defaultWidth:"wide"}),quarter:oe({values:Rht,defaultWidth:"wide",argumentCallback:function(t){return t-1}}),month:oe({values:Pht,defaultWidth:"wide"}),day:oe({values:Aht,defaultWidth:"wide"}),dayPeriod:oe({values:Nht,defaultWidth:"wide",formattingValues:Mht,defaultFormattingWidth:"wide"})},$ht=/^(\d+)[ºªo]?/i,Lht=/\d+/i,Fht={narrow:/^(ac|dc|a|d)/i,abbreviated:/^(a\.?\s?c\.?|d\.?\s?c\.?)/i,wide:/^(antes de cristo|depois de cristo)/i},jht={any:[/^ac/i,/^dc/i],wide:[/^antes de cristo/i,/^depois de cristo/i]},Uht={narrow:/^[1234]/i,abbreviated:/^T[1234]/i,wide:/^[1234](º)? trimestre/i},Bht={any:[/1/i,/2/i,/3/i,/4/i]},Wht={narrow:/^[jfmajsond]/i,abbreviated:/^(jan|fev|mar|abr|mai|jun|jul|ago|set|out|nov|dez)/i,wide:/^(janeiro|fevereiro|março|abril|maio|junho|julho|agosto|setembro|outubro|novembro|dezembro)/i},zht={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^fev/i,/^mar/i,/^abr/i,/^mai/i,/^jun/i,/^jul/i,/^ago/i,/^set/i,/^out/i,/^nov/i,/^dez/i]},qht={narrow:/^(dom|[23456]ª?|s[aá]b)/i,short:/^(dom|[23456]ª?|s[aá]b)/i,abbreviated:/^(dom|seg|ter|qua|qui|sex|s[aá]b)/i,wide:/^(domingo|(segunda|ter[cç]a|quarta|quinta|sexta)([- ]feira)?|s[aá]bado)/i},Hht={short:[/^d/i,/^2/i,/^3/i,/^4/i,/^5/i,/^6/i,/^s[aá]/i],narrow:[/^d/i,/^2/i,/^3/i,/^4/i,/^5/i,/^6/i,/^s[aá]/i],any:[/^d/i,/^seg/i,/^t/i,/^qua/i,/^qui/i,/^sex/i,/^s[aá]b/i]},Vht={narrow:/^(a|p|mn|md|(da) (manhã|tarde|noite))/i,any:/^([ap]\.?\s?m\.?|meia[-\s]noite|meio[-\s]dia|(da) (manhã|tarde|noite))/i},Ght={any:{am:/^a/i,pm:/^p/i,midnight:/^mn|^meia[-\s]noite/i,noon:/^md|^meio[-\s]dia/i,morning:/manhã/i,afternoon:/tarde/i,evening:/tarde/i,night:/noite/i}},Yht={ordinalNumber:Xt({matchPattern:$ht,parsePattern:Lht,valueCallback:function(t){return parseInt(t,10)}}),era:se({matchPatterns:Fht,defaultMatchWidth:"wide",parsePatterns:jht,defaultParseWidth:"any"}),quarter:se({matchPatterns:Uht,defaultMatchWidth:"wide",parsePatterns:Bht,defaultParseWidth:"any",valueCallback:function(t){return t+1}}),month:se({matchPatterns:Wht,defaultMatchWidth:"wide",parsePatterns:zht,defaultParseWidth:"any"}),day:se({matchPatterns:qht,defaultMatchWidth:"wide",parsePatterns:Hht,defaultParseWidth:"any"}),dayPeriod:se({matchPatterns:Vht,defaultMatchWidth:"any",parsePatterns:Ght,defaultParseWidth:"any"})},Kht={code:"pt-BR",formatDistance:Sht,formatLong:kht,formatRelative:_ht,localize:Dht,match:Yht,options:{weekStartsOn:0,firstWeekContainsDate:1}};const Xht=Object.freeze(Object.defineProperty({__proto__:null,default:Kht},Symbol.toStringTag,{value:"Module"})),Qht=jt(Xht);var Jht={lessThanXSeconds:{one:"mai puțin de o secundă",other:"mai puțin de {{count}} secunde"},xSeconds:{one:"1 secundă",other:"{{count}} secunde"},halfAMinute:"jumătate de minut",lessThanXMinutes:{one:"mai puțin de un minut",other:"mai puțin de {{count}} minute"},xMinutes:{one:"1 minut",other:"{{count}} minute"},aboutXHours:{one:"circa 1 oră",other:"circa {{count}} ore"},xHours:{one:"1 oră",other:"{{count}} ore"},xDays:{one:"1 zi",other:"{{count}} zile"},aboutXWeeks:{one:"circa o săptămână",other:"circa {{count}} săptămâni"},xWeeks:{one:"1 săptămână",other:"{{count}} săptămâni"},aboutXMonths:{one:"circa 1 lună",other:"circa {{count}} luni"},xMonths:{one:"1 lună",other:"{{count}} luni"},aboutXYears:{one:"circa 1 an",other:"circa {{count}} ani"},xYears:{one:"1 an",other:"{{count}} ani"},overXYears:{one:"peste 1 an",other:"peste {{count}} ani"},almostXYears:{one:"aproape 1 an",other:"aproape {{count}} ani"}},Zht=function(t,n,r){var a,i=Jht[t];return typeof i=="string"?a=i:n===1?a=i.one:a=i.other.replace("{{count}}",String(n)),r!=null&&r.addSuffix?r.comparison&&r.comparison>0?"în "+a:a+" în urmă":a},emt={full:"EEEE, d MMMM yyyy",long:"d MMMM yyyy",medium:"d MMM yyyy",short:"dd.MM.yyyy"},tmt={full:"HH:mm:ss zzzz",long:"HH:mm:ss z",medium:"HH:mm:ss",short:"HH:mm"},nmt={full:"{{date}} 'la' {{time}}",long:"{{date}} 'la' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},rmt={date:Ne({formats:emt,defaultWidth:"full"}),time:Ne({formats:tmt,defaultWidth:"full"}),dateTime:Ne({formats:nmt,defaultWidth:"full"})},amt={lastWeek:"eeee 'trecută la' p",yesterday:"'ieri la' p",today:"'astăzi la' p",tomorrow:"'mâine la' p",nextWeek:"eeee 'viitoare la' p",other:"P"},imt=function(t,n,r,a){return amt[t]},omt={narrow:["Î","D"],abbreviated:["Î.d.C.","D.C."],wide:["Înainte de Cristos","După Cristos"]},smt={narrow:["1","2","3","4"],abbreviated:["T1","T2","T3","T4"],wide:["primul trimestru","al doilea trimestru","al treilea trimestru","al patrulea trimestru"]},lmt={narrow:["I","F","M","A","M","I","I","A","S","O","N","D"],abbreviated:["ian","feb","mar","apr","mai","iun","iul","aug","sep","oct","noi","dec"],wide:["ianuarie","februarie","martie","aprilie","mai","iunie","iulie","august","septembrie","octombrie","noiembrie","decembrie"]},umt={narrow:["d","l","m","m","j","v","s"],short:["du","lu","ma","mi","jo","vi","sâ"],abbreviated:["dum","lun","mar","mie","joi","vin","sâm"],wide:["duminică","luni","marți","miercuri","joi","vineri","sâmbătă"]},cmt={narrow:{am:"a",pm:"p",midnight:"mn",noon:"ami",morning:"dim",afternoon:"da",evening:"s",night:"n"},abbreviated:{am:"AM",pm:"PM",midnight:"miezul nopții",noon:"amiază",morning:"dimineață",afternoon:"după-amiază",evening:"seară",night:"noapte"},wide:{am:"a.m.",pm:"p.m.",midnight:"miezul nopții",noon:"amiază",morning:"dimineață",afternoon:"după-amiază",evening:"seară",night:"noapte"}},dmt={narrow:{am:"a",pm:"p",midnight:"mn",noon:"amiază",morning:"dimineață",afternoon:"după-amiază",evening:"seară",night:"noapte"},abbreviated:{am:"AM",pm:"PM",midnight:"miezul nopții",noon:"amiază",morning:"dimineață",afternoon:"după-amiază",evening:"seară",night:"noapte"},wide:{am:"a.m.",pm:"p.m.",midnight:"miezul nopții",noon:"amiază",morning:"dimineață",afternoon:"după-amiază",evening:"seară",night:"noapte"}},fmt=function(t,n){return String(t)},pmt={ordinalNumber:fmt,era:oe({values:omt,defaultWidth:"wide"}),quarter:oe({values:smt,defaultWidth:"wide",argumentCallback:function(t){return t-1}}),month:oe({values:lmt,defaultWidth:"wide"}),day:oe({values:umt,defaultWidth:"wide"}),dayPeriod:oe({values:cmt,defaultWidth:"wide",formattingValues:dmt,defaultFormattingWidth:"wide"})},hmt=/^(\d+)?/i,mmt=/\d+/i,gmt={narrow:/^(Î|D)/i,abbreviated:/^(Î\.?\s?d\.?\s?C\.?|Î\.?\s?e\.?\s?n\.?|D\.?\s?C\.?|e\.?\s?n\.?)/i,wide:/^(Înainte de Cristos|Înaintea erei noastre|După Cristos|Era noastră)/i},vmt={any:[/^ÎC/i,/^DC/i],wide:[/^(Înainte de Cristos|Înaintea erei noastre)/i,/^(După Cristos|Era noastră)/i]},ymt={narrow:/^[1234]/i,abbreviated:/^T[1234]/i,wide:/^trimestrul [1234]/i},bmt={any:[/1/i,/2/i,/3/i,/4/i]},wmt={narrow:/^[ifmaasond]/i,abbreviated:/^(ian|feb|mar|apr|mai|iun|iul|aug|sep|oct|noi|dec)/i,wide:/^(ianuarie|februarie|martie|aprilie|mai|iunie|iulie|august|septembrie|octombrie|noiembrie|decembrie)/i},Smt={narrow:[/^i/i,/^f/i,/^m/i,/^a/i,/^m/i,/^i/i,/^i/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ia/i,/^f/i,/^mar/i,/^ap/i,/^mai/i,/^iun/i,/^iul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},Emt={narrow:/^[dlmjvs]/i,short:/^(d|l|ma|mi|j|v|s)/i,abbreviated:/^(dum|lun|mar|mie|jo|vi|sâ)/i,wide:/^(duminica|luni|marţi|miercuri|joi|vineri|sâmbătă)/i},Tmt={narrow:[/^d/i,/^l/i,/^m/i,/^m/i,/^j/i,/^v/i,/^s/i],any:[/^d/i,/^l/i,/^ma/i,/^mi/i,/^j/i,/^v/i,/^s/i]},Cmt={narrow:/^(a|p|mn|a|(dimineaţa|după-amiaza|seara|noaptea))/i,any:/^([ap]\.?\s?m\.?|miezul nopții|amiaza|(dimineaţa|după-amiaza|seara|noaptea))/i},kmt={any:{am:/^a/i,pm:/^p/i,midnight:/^mn/i,noon:/amiaza/i,morning:/dimineaţa/i,afternoon:/după-amiaza/i,evening:/seara/i,night:/noaptea/i}},xmt={ordinalNumber:Xt({matchPattern:hmt,parsePattern:mmt,valueCallback:function(t){return parseInt(t,10)}}),era:se({matchPatterns:gmt,defaultMatchWidth:"wide",parsePatterns:vmt,defaultParseWidth:"any"}),quarter:se({matchPatterns:ymt,defaultMatchWidth:"wide",parsePatterns:bmt,defaultParseWidth:"any",valueCallback:function(t){return t+1}}),month:se({matchPatterns:wmt,defaultMatchWidth:"wide",parsePatterns:Smt,defaultParseWidth:"any"}),day:se({matchPatterns:Emt,defaultMatchWidth:"wide",parsePatterns:Tmt,defaultParseWidth:"any"}),dayPeriod:se({matchPatterns:Cmt,defaultMatchWidth:"any",parsePatterns:kmt,defaultParseWidth:"any"})},_mt={code:"ro",formatDistance:Zht,formatLong:rmt,formatRelative:imt,localize:pmt,match:xmt,options:{weekStartsOn:1,firstWeekContainsDate:1}};const Omt=Object.freeze(Object.defineProperty({__proto__:null,default:_mt},Symbol.toStringTag,{value:"Module"})),Rmt=jt(Omt);function J1(e,t){if(e.one!==void 0&&t===1)return e.one;var n=t%10,r=t%100;return n===1&&r!==11?e.singularNominative.replace("{{count}}",String(t)):n>=2&&n<=4&&(r<10||r>20)?e.singularGenitive.replace("{{count}}",String(t)):e.pluralGenitive.replace("{{count}}",String(t))}function No(e){return function(t,n){return n!=null&&n.addSuffix?n.comparison&&n.comparison>0?e.future?J1(e.future,t):"через "+J1(e.regular,t):e.past?J1(e.past,t):J1(e.regular,t)+" назад":J1(e.regular,t)}}var Pmt={lessThanXSeconds:No({regular:{one:"меньше секунды",singularNominative:"меньше {{count}} секунды",singularGenitive:"меньше {{count}} секунд",pluralGenitive:"меньше {{count}} секунд"},future:{one:"меньше, чем через секунду",singularNominative:"меньше, чем через {{count}} секунду",singularGenitive:"меньше, чем через {{count}} секунды",pluralGenitive:"меньше, чем через {{count}} секунд"}}),xSeconds:No({regular:{singularNominative:"{{count}} секунда",singularGenitive:"{{count}} секунды",pluralGenitive:"{{count}} секунд"},past:{singularNominative:"{{count}} секунду назад",singularGenitive:"{{count}} секунды назад",pluralGenitive:"{{count}} секунд назад"},future:{singularNominative:"через {{count}} секунду",singularGenitive:"через {{count}} секунды",pluralGenitive:"через {{count}} секунд"}}),halfAMinute:function(t,n){return n!=null&&n.addSuffix?n.comparison&&n.comparison>0?"через полминуты":"полминуты назад":"полминуты"},lessThanXMinutes:No({regular:{one:"меньше минуты",singularNominative:"меньше {{count}} минуты",singularGenitive:"меньше {{count}} минут",pluralGenitive:"меньше {{count}} минут"},future:{one:"меньше, чем через минуту",singularNominative:"меньше, чем через {{count}} минуту",singularGenitive:"меньше, чем через {{count}} минуты",pluralGenitive:"меньше, чем через {{count}} минут"}}),xMinutes:No({regular:{singularNominative:"{{count}} минута",singularGenitive:"{{count}} минуты",pluralGenitive:"{{count}} минут"},past:{singularNominative:"{{count}} минуту назад",singularGenitive:"{{count}} минуты назад",pluralGenitive:"{{count}} минут назад"},future:{singularNominative:"через {{count}} минуту",singularGenitive:"через {{count}} минуты",pluralGenitive:"через {{count}} минут"}}),aboutXHours:No({regular:{singularNominative:"около {{count}} часа",singularGenitive:"около {{count}} часов",pluralGenitive:"около {{count}} часов"},future:{singularNominative:"приблизительно через {{count}} час",singularGenitive:"приблизительно через {{count}} часа",pluralGenitive:"приблизительно через {{count}} часов"}}),xHours:No({regular:{singularNominative:"{{count}} час",singularGenitive:"{{count}} часа",pluralGenitive:"{{count}} часов"}}),xDays:No({regular:{singularNominative:"{{count}} день",singularGenitive:"{{count}} дня",pluralGenitive:"{{count}} дней"}}),aboutXWeeks:No({regular:{singularNominative:"около {{count}} недели",singularGenitive:"около {{count}} недель",pluralGenitive:"около {{count}} недель"},future:{singularNominative:"приблизительно через {{count}} неделю",singularGenitive:"приблизительно через {{count}} недели",pluralGenitive:"приблизительно через {{count}} недель"}}),xWeeks:No({regular:{singularNominative:"{{count}} неделя",singularGenitive:"{{count}} недели",pluralGenitive:"{{count}} недель"}}),aboutXMonths:No({regular:{singularNominative:"около {{count}} месяца",singularGenitive:"около {{count}} месяцев",pluralGenitive:"около {{count}} месяцев"},future:{singularNominative:"приблизительно через {{count}} месяц",singularGenitive:"приблизительно через {{count}} месяца",pluralGenitive:"приблизительно через {{count}} месяцев"}}),xMonths:No({regular:{singularNominative:"{{count}} месяц",singularGenitive:"{{count}} месяца",pluralGenitive:"{{count}} месяцев"}}),aboutXYears:No({regular:{singularNominative:"около {{count}} года",singularGenitive:"около {{count}} лет",pluralGenitive:"около {{count}} лет"},future:{singularNominative:"приблизительно через {{count}} год",singularGenitive:"приблизительно через {{count}} года",pluralGenitive:"приблизительно через {{count}} лет"}}),xYears:No({regular:{singularNominative:"{{count}} год",singularGenitive:"{{count}} года",pluralGenitive:"{{count}} лет"}}),overXYears:No({regular:{singularNominative:"больше {{count}} года",singularGenitive:"больше {{count}} лет",pluralGenitive:"больше {{count}} лет"},future:{singularNominative:"больше, чем через {{count}} год",singularGenitive:"больше, чем через {{count}} года",pluralGenitive:"больше, чем через {{count}} лет"}}),almostXYears:No({regular:{singularNominative:"почти {{count}} год",singularGenitive:"почти {{count}} года",pluralGenitive:"почти {{count}} лет"},future:{singularNominative:"почти через {{count}} год",singularGenitive:"почти через {{count}} года",pluralGenitive:"почти через {{count}} лет"}})},Amt=function(t,n,r){return Pmt[t](n,r)},Nmt={full:"EEEE, d MMMM y 'г.'",long:"d MMMM y 'г.'",medium:"d MMM y 'г.'",short:"dd.MM.y"},Mmt={full:"H:mm:ss zzzz",long:"H:mm:ss z",medium:"H:mm:ss",short:"H:mm"},Imt={any:"{{date}}, {{time}}"},Dmt={date:Ne({formats:Nmt,defaultWidth:"full"}),time:Ne({formats:Mmt,defaultWidth:"full"}),dateTime:Ne({formats:Imt,defaultWidth:"any"})},_4=["воскресенье","понедельник","вторник","среду","четверг","пятницу","субботу"];function $mt(e){var t=_4[e];switch(e){case 0:return"'в прошлое "+t+" в' p";case 1:case 2:case 4:return"'в прошлый "+t+" в' p";case 3:case 5:case 6:return"'в прошлую "+t+" в' p"}}function XG(e){var t=_4[e];return e===2?"'во "+t+" в' p":"'в "+t+" в' p"}function Lmt(e){var t=_4[e];switch(e){case 0:return"'в следующее "+t+" в' p";case 1:case 2:case 4:return"'в следующий "+t+" в' p";case 3:case 5:case 6:return"'в следующую "+t+" в' p"}}var Fmt={lastWeek:function(t,n,r){var a=t.getUTCDay();return wi(t,n,r)?XG(a):$mt(a)},yesterday:"'вчера в' p",today:"'сегодня в' p",tomorrow:"'завтра в' p",nextWeek:function(t,n,r){var a=t.getUTCDay();return wi(t,n,r)?XG(a):Lmt(a)},other:"P"},jmt=function(t,n,r,a){var i=Fmt[t];return typeof i=="function"?i(n,r,a):i},Umt={narrow:["до н.э.","н.э."],abbreviated:["до н. э.","н. э."],wide:["до нашей эры","нашей эры"]},Bmt={narrow:["1","2","3","4"],abbreviated:["1-й кв.","2-й кв.","3-й кв.","4-й кв."],wide:["1-й квартал","2-й квартал","3-й квартал","4-й квартал"]},Wmt={narrow:["Я","Ф","М","А","М","И","И","А","С","О","Н","Д"],abbreviated:["янв.","фев.","март","апр.","май","июнь","июль","авг.","сент.","окт.","нояб.","дек."],wide:["январь","февраль","март","апрель","май","июнь","июль","август","сентябрь","октябрь","ноябрь","декабрь"]},zmt={narrow:["Я","Ф","М","А","М","И","И","А","С","О","Н","Д"],abbreviated:["янв.","фев.","мар.","апр.","мая","июн.","июл.","авг.","сент.","окт.","нояб.","дек."],wide:["января","февраля","марта","апреля","мая","июня","июля","августа","сентября","октября","ноября","декабря"]},qmt={narrow:["В","П","В","С","Ч","П","С"],short:["вс","пн","вт","ср","чт","пт","сб"],abbreviated:["вск","пнд","втр","срд","чтв","птн","суб"],wide:["воскресенье","понедельник","вторник","среда","четверг","пятница","суббота"]},Hmt={narrow:{am:"ДП",pm:"ПП",midnight:"полн.",noon:"полд.",morning:"утро",afternoon:"день",evening:"веч.",night:"ночь"},abbreviated:{am:"ДП",pm:"ПП",midnight:"полн.",noon:"полд.",morning:"утро",afternoon:"день",evening:"веч.",night:"ночь"},wide:{am:"ДП",pm:"ПП",midnight:"полночь",noon:"полдень",morning:"утро",afternoon:"день",evening:"вечер",night:"ночь"}},Vmt={narrow:{am:"ДП",pm:"ПП",midnight:"полн.",noon:"полд.",morning:"утра",afternoon:"дня",evening:"веч.",night:"ночи"},abbreviated:{am:"ДП",pm:"ПП",midnight:"полн.",noon:"полд.",morning:"утра",afternoon:"дня",evening:"веч.",night:"ночи"},wide:{am:"ДП",pm:"ПП",midnight:"полночь",noon:"полдень",morning:"утра",afternoon:"дня",evening:"вечера",night:"ночи"}},Gmt=function(t,n){var r=Number(t),a=n==null?void 0:n.unit,i;return a==="date"?i="-е":a==="week"||a==="minute"||a==="second"?i="-я":i="-й",r+i},Ymt={ordinalNumber:Gmt,era:oe({values:Umt,defaultWidth:"wide"}),quarter:oe({values:Bmt,defaultWidth:"wide",argumentCallback:function(t){return t-1}}),month:oe({values:Wmt,defaultWidth:"wide",formattingValues:zmt,defaultFormattingWidth:"wide"}),day:oe({values:qmt,defaultWidth:"wide"}),dayPeriod:oe({values:Hmt,defaultWidth:"any",formattingValues:Vmt,defaultFormattingWidth:"wide"})},Kmt=/^(\d+)(-?(е|я|й|ое|ье|ая|ья|ый|ой|ий|ый))?/i,Xmt=/\d+/i,Qmt={narrow:/^((до )?н\.?\s?э\.?)/i,abbreviated:/^((до )?н\.?\s?э\.?)/i,wide:/^(до нашей эры|нашей эры|наша эра)/i},Jmt={any:[/^д/i,/^н/i]},Zmt={narrow:/^[1234]/i,abbreviated:/^[1234](-?[ыои]?й?)? кв.?/i,wide:/^[1234](-?[ыои]?й?)? квартал/i},egt={any:[/1/i,/2/i,/3/i,/4/i]},tgt={narrow:/^[яфмаисонд]/i,abbreviated:/^(янв|фев|март?|апр|ма[йя]|июн[ья]?|июл[ья]?|авг|сент?|окт|нояб?|дек)\.?/i,wide:/^(январ[ья]|феврал[ья]|марта?|апрел[ья]|ма[йя]|июн[ья]|июл[ья]|августа?|сентябр[ья]|октябр[ья]|октябр[ья]|ноябр[ья]|декабр[ья])/i},ngt={narrow:[/^я/i,/^ф/i,/^м/i,/^а/i,/^м/i,/^и/i,/^и/i,/^а/i,/^с/i,/^о/i,/^н/i,/^я/i],any:[/^я/i,/^ф/i,/^мар/i,/^ап/i,/^ма[йя]/i,/^июн/i,/^июл/i,/^ав/i,/^с/i,/^о/i,/^н/i,/^д/i]},rgt={narrow:/^[впсч]/i,short:/^(вс|во|пн|по|вт|ср|чт|че|пт|пя|сб|су)\.?/i,abbreviated:/^(вск|вос|пнд|пон|втр|вто|срд|сре|чтв|чет|птн|пят|суб).?/i,wide:/^(воскресень[ея]|понедельника?|вторника?|сред[аы]|четверга?|пятниц[аы]|суббот[аы])/i},agt={narrow:[/^в/i,/^п/i,/^в/i,/^с/i,/^ч/i,/^п/i,/^с/i],any:[/^в[ос]/i,/^п[он]/i,/^в/i,/^ср/i,/^ч/i,/^п[ят]/i,/^с[уб]/i]},igt={narrow:/^([дп]п|полн\.?|полд\.?|утр[оа]|день|дня|веч\.?|ноч[ьи])/i,abbreviated:/^([дп]п|полн\.?|полд\.?|утр[оа]|день|дня|веч\.?|ноч[ьи])/i,wide:/^([дп]п|полночь|полдень|утр[оа]|день|дня|вечера?|ноч[ьи])/i},ogt={any:{am:/^дп/i,pm:/^пп/i,midnight:/^полн/i,noon:/^полд/i,morning:/^у/i,afternoon:/^д[ен]/i,evening:/^в/i,night:/^н/i}},sgt={ordinalNumber:Xt({matchPattern:Kmt,parsePattern:Xmt,valueCallback:function(t){return parseInt(t,10)}}),era:se({matchPatterns:Qmt,defaultMatchWidth:"wide",parsePatterns:Jmt,defaultParseWidth:"any"}),quarter:se({matchPatterns:Zmt,defaultMatchWidth:"wide",parsePatterns:egt,defaultParseWidth:"any",valueCallback:function(t){return t+1}}),month:se({matchPatterns:tgt,defaultMatchWidth:"wide",parsePatterns:ngt,defaultParseWidth:"any"}),day:se({matchPatterns:rgt,defaultMatchWidth:"wide",parsePatterns:agt,defaultParseWidth:"any"}),dayPeriod:se({matchPatterns:igt,defaultMatchWidth:"wide",parsePatterns:ogt,defaultParseWidth:"any"})},lgt={code:"ru",formatDistance:Amt,formatLong:Dmt,formatRelative:jmt,localize:Ymt,match:sgt,options:{weekStartsOn:1,firstWeekContainsDate:1}};const ugt=Object.freeze(Object.defineProperty({__proto__:null,default:lgt},Symbol.toStringTag,{value:"Module"})),cgt=jt(ugt);function dgt(e,t){return t===1&&e.one?e.one:t>=2&&t<=4&&e.twoFour?e.twoFour:e.other}function D$(e,t,n){var r=dgt(e,t),a=r[n];return a.replace("{{count}}",String(t))}function fgt(e){var t=["lessThan","about","over","almost"].filter(function(n){return!!e.match(new RegExp("^"+n))});return t[0]}function $$(e){var t="";return e==="almost"&&(t="takmer"),e==="about"&&(t="približne"),t.length>0?t+" ":""}function L$(e){var t="";return e==="lessThan"&&(t="menej než"),e==="over"&&(t="viac než"),t.length>0?t+" ":""}function pgt(e){return e.charAt(0).toLowerCase()+e.slice(1)}var hgt={xSeconds:{one:{present:"sekunda",past:"sekundou",future:"sekundu"},twoFour:{present:"{{count}} sekundy",past:"{{count}} sekundami",future:"{{count}} sekundy"},other:{present:"{{count}} sekúnd",past:"{{count}} sekundami",future:"{{count}} sekúnd"}},halfAMinute:{other:{present:"pol minúty",past:"pol minútou",future:"pol minúty"}},xMinutes:{one:{present:"minúta",past:"minútou",future:"minútu"},twoFour:{present:"{{count}} minúty",past:"{{count}} minútami",future:"{{count}} minúty"},other:{present:"{{count}} minút",past:"{{count}} minútami",future:"{{count}} minút"}},xHours:{one:{present:"hodina",past:"hodinou",future:"hodinu"},twoFour:{present:"{{count}} hodiny",past:"{{count}} hodinami",future:"{{count}} hodiny"},other:{present:"{{count}} hodín",past:"{{count}} hodinami",future:"{{count}} hodín"}},xDays:{one:{present:"deň",past:"dňom",future:"deň"},twoFour:{present:"{{count}} dni",past:"{{count}} dňami",future:"{{count}} dni"},other:{present:"{{count}} dní",past:"{{count}} dňami",future:"{{count}} dní"}},xWeeks:{one:{present:"týždeň",past:"týždňom",future:"týždeň"},twoFour:{present:"{{count}} týždne",past:"{{count}} týždňami",future:"{{count}} týždne"},other:{present:"{{count}} týždňov",past:"{{count}} týždňami",future:"{{count}} týždňov"}},xMonths:{one:{present:"mesiac",past:"mesiacom",future:"mesiac"},twoFour:{present:"{{count}} mesiace",past:"{{count}} mesiacmi",future:"{{count}} mesiace"},other:{present:"{{count}} mesiacov",past:"{{count}} mesiacmi",future:"{{count}} mesiacov"}},xYears:{one:{present:"rok",past:"rokom",future:"rok"},twoFour:{present:"{{count}} roky",past:"{{count}} rokmi",future:"{{count}} roky"},other:{present:"{{count}} rokov",past:"{{count}} rokmi",future:"{{count}} rokov"}}},mgt=function(t,n,r){var a=fgt(t)||"",i=pgt(t.substring(a.length)),o=hgt[i];return r!=null&&r.addSuffix?r.comparison&&r.comparison>0?$$(a)+"o "+L$(a)+D$(o,n,"future"):$$(a)+"pred "+L$(a)+D$(o,n,"past"):$$(a)+L$(a)+D$(o,n,"present")},ggt={full:"EEEE d. MMMM y",long:"d. MMMM y",medium:"d. M. y",short:"d. M. y"},vgt={full:"H:mm:ss zzzz",long:"H:mm:ss z",medium:"H:mm:ss",short:"H:mm"},ygt={full:"{{date}}, {{time}}",long:"{{date}}, {{time}}",medium:"{{date}}, {{time}}",short:"{{date}} {{time}}"},bgt={date:Ne({formats:ggt,defaultWidth:"full"}),time:Ne({formats:vgt,defaultWidth:"full"}),dateTime:Ne({formats:ygt,defaultWidth:"full"})},O4=["nedeľu","pondelok","utorok","stredu","štvrtok","piatok","sobotu"];function wgt(e){var t=O4[e];switch(e){case 0:case 3:case 6:return"'minulú "+t+" o' p";default:return"'minulý' eeee 'o' p"}}function QG(e){var t=O4[e];return e===4?"'vo' eeee 'o' p":"'v "+t+" o' p"}function Sgt(e){var t=O4[e];switch(e){case 0:case 4:case 6:return"'budúcu "+t+" o' p";default:return"'budúci' eeee 'o' p"}}var Egt={lastWeek:function(t,n,r){var a=t.getUTCDay();return wi(t,n,r)?QG(a):wgt(a)},yesterday:"'včera o' p",today:"'dnes o' p",tomorrow:"'zajtra o' p",nextWeek:function(t,n,r){var a=t.getUTCDay();return wi(t,n,r)?QG(a):Sgt(a)},other:"P"},Tgt=function(t,n,r,a){var i=Egt[t];return typeof i=="function"?i(n,r,a):i},Cgt={narrow:["pred Kr.","po Kr."],abbreviated:["pred Kr.","po Kr."],wide:["pred Kristom","po Kristovi"]},kgt={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1. štvrťrok","2. štvrťrok","3. štvrťrok","4. štvrťrok"]},xgt={narrow:["j","f","m","a","m","j","j","a","s","o","n","d"],abbreviated:["jan","feb","mar","apr","máj","jún","júl","aug","sep","okt","nov","dec"],wide:["január","február","marec","apríl","máj","jún","júl","august","september","október","november","december"]},_gt={narrow:["j","f","m","a","m","j","j","a","s","o","n","d"],abbreviated:["jan","feb","mar","apr","máj","jún","júl","aug","sep","okt","nov","dec"],wide:["januára","februára","marca","apríla","mája","júna","júla","augusta","septembra","októbra","novembra","decembra"]},Ogt={narrow:["n","p","u","s","š","p","s"],short:["ne","po","ut","st","št","pi","so"],abbreviated:["ne","po","ut","st","št","pi","so"],wide:["nedeľa","pondelok","utorok","streda","štvrtok","piatok","sobota"]},Rgt={narrow:{am:"AM",pm:"PM",midnight:"poln.",noon:"pol.",morning:"ráno",afternoon:"pop.",evening:"več.",night:"noc"},abbreviated:{am:"AM",pm:"PM",midnight:"poln.",noon:"pol.",morning:"ráno",afternoon:"popol.",evening:"večer",night:"noc"},wide:{am:"AM",pm:"PM",midnight:"polnoc",noon:"poludnie",morning:"ráno",afternoon:"popoludnie",evening:"večer",night:"noc"}},Pgt={narrow:{am:"AM",pm:"PM",midnight:"o poln.",noon:"nap.",morning:"ráno",afternoon:"pop.",evening:"več.",night:"v n."},abbreviated:{am:"AM",pm:"PM",midnight:"o poln.",noon:"napol.",morning:"ráno",afternoon:"popol.",evening:"večer",night:"v noci"},wide:{am:"AM",pm:"PM",midnight:"o polnoci",noon:"napoludnie",morning:"ráno",afternoon:"popoludní",evening:"večer",night:"v noci"}},Agt=function(t,n){var r=Number(t);return r+"."},Ngt={ordinalNumber:Agt,era:oe({values:Cgt,defaultWidth:"wide"}),quarter:oe({values:kgt,defaultWidth:"wide",argumentCallback:function(t){return t-1}}),month:oe({values:xgt,defaultWidth:"wide",formattingValues:_gt,defaultFormattingWidth:"wide"}),day:oe({values:Ogt,defaultWidth:"wide"}),dayPeriod:oe({values:Rgt,defaultWidth:"wide",formattingValues:Pgt,defaultFormattingWidth:"wide"})},Mgt=/^(\d+)\.?/i,Igt=/\d+/i,Dgt={narrow:/^(pred Kr\.|pred n\. l\.|po Kr\.|n\. l\.)/i,abbreviated:/^(pred Kr\.|pred n\. l\.|po Kr\.|n\. l\.)/i,wide:/^(pred Kristom|pred na[šs][íi]m letopo[čc]tom|po Kristovi|n[áa][šs]ho letopo[čc]tu)/i},$gt={any:[/^pr/i,/^(po|n)/i]},Lgt={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234]\. [šs]tvr[ťt]rok/i},Fgt={any:[/1/i,/2/i,/3/i,/4/i]},jgt={narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|m[áa]j|j[úu]n|j[úu]l|aug|sep|okt|nov|dec)/i,wide:/^(janu[áa]ra?|febru[áa]ra?|(marec|marca)|apr[íi]la?|m[áa]ja?|j[úu]na?|j[úu]la?|augusta?|(september|septembra)|(okt[óo]ber|okt[óo]bra)|(november|novembra)|(december|decembra))/i},Ugt={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^m[áa]j/i,/^j[úu]n/i,/^j[úu]l/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},Bgt={narrow:/^[npusšp]/i,short:/^(ne|po|ut|st|št|pi|so)/i,abbreviated:/^(ne|po|ut|st|št|pi|so)/i,wide:/^(nede[ľl]a|pondelok|utorok|streda|[šs]tvrtok|piatok|sobota])/i},Wgt={narrow:[/^n/i,/^p/i,/^u/i,/^s/i,/^š/i,/^p/i,/^s/i],any:[/^n/i,/^po/i,/^u/i,/^st/i,/^(št|stv)/i,/^pi/i,/^so/i]},zgt={narrow:/^(am|pm|(o )?poln\.?|(nap\.?|pol\.?)|r[áa]no|pop\.?|ve[čc]\.?|(v n\.?|noc))/i,abbreviated:/^(am|pm|(o )?poln\.?|(napol\.?|pol\.?)|r[áa]no|pop\.?|ve[čc]er|(v )?noci?)/i,any:/^(am|pm|(o )?polnoci?|(na)?poludnie|r[áa]no|popoludn(ie|í|i)|ve[čc]er|(v )?noci?)/i},qgt={any:{am:/^am/i,pm:/^pm/i,midnight:/poln/i,noon:/^(nap|(na)?pol(\.|u))/i,morning:/^r[áa]no/i,afternoon:/^pop/i,evening:/^ve[čc]/i,night:/^(noc|v n\.)/i}},Hgt={ordinalNumber:Xt({matchPattern:Mgt,parsePattern:Igt,valueCallback:function(t){return parseInt(t,10)}}),era:se({matchPatterns:Dgt,defaultMatchWidth:"wide",parsePatterns:$gt,defaultParseWidth:"any"}),quarter:se({matchPatterns:Lgt,defaultMatchWidth:"wide",parsePatterns:Fgt,defaultParseWidth:"any",valueCallback:function(t){return t+1}}),month:se({matchPatterns:jgt,defaultMatchWidth:"wide",parsePatterns:Ugt,defaultParseWidth:"any"}),day:se({matchPatterns:Bgt,defaultMatchWidth:"wide",parsePatterns:Wgt,defaultParseWidth:"any"}),dayPeriod:se({matchPatterns:zgt,defaultMatchWidth:"any",parsePatterns:qgt,defaultParseWidth:"any"})},Vgt={code:"sk",formatDistance:mgt,formatLong:bgt,formatRelative:Tgt,localize:Ngt,match:Hgt,options:{weekStartsOn:1,firstWeekContainsDate:4}};const Ggt=Object.freeze(Object.defineProperty({__proto__:null,default:Vgt},Symbol.toStringTag,{value:"Module"})),Ygt=jt(Ggt);function Kgt(e){return e.one!==void 0}var Xgt={lessThanXSeconds:{present:{one:"manj kot {{count}} sekunda",two:"manj kot {{count}} sekundi",few:"manj kot {{count}} sekunde",other:"manj kot {{count}} sekund"},past:{one:"manj kot {{count}} sekundo",two:"manj kot {{count}} sekundama",few:"manj kot {{count}} sekundami",other:"manj kot {{count}} sekundami"},future:{one:"manj kot {{count}} sekundo",two:"manj kot {{count}} sekundi",few:"manj kot {{count}} sekunde",other:"manj kot {{count}} sekund"}},xSeconds:{present:{one:"{{count}} sekunda",two:"{{count}} sekundi",few:"{{count}} sekunde",other:"{{count}} sekund"},past:{one:"{{count}} sekundo",two:"{{count}} sekundama",few:"{{count}} sekundami",other:"{{count}} sekundami"},future:{one:"{{count}} sekundo",two:"{{count}} sekundi",few:"{{count}} sekunde",other:"{{count}} sekund"}},halfAMinute:"pol minute",lessThanXMinutes:{present:{one:"manj kot {{count}} minuta",two:"manj kot {{count}} minuti",few:"manj kot {{count}} minute",other:"manj kot {{count}} minut"},past:{one:"manj kot {{count}} minuto",two:"manj kot {{count}} minutama",few:"manj kot {{count}} minutami",other:"manj kot {{count}} minutami"},future:{one:"manj kot {{count}} minuto",two:"manj kot {{count}} minuti",few:"manj kot {{count}} minute",other:"manj kot {{count}} minut"}},xMinutes:{present:{one:"{{count}} minuta",two:"{{count}} minuti",few:"{{count}} minute",other:"{{count}} minut"},past:{one:"{{count}} minuto",two:"{{count}} minutama",few:"{{count}} minutami",other:"{{count}} minutami"},future:{one:"{{count}} minuto",two:"{{count}} minuti",few:"{{count}} minute",other:"{{count}} minut"}},aboutXHours:{present:{one:"približno {{count}} ura",two:"približno {{count}} uri",few:"približno {{count}} ure",other:"približno {{count}} ur"},past:{one:"približno {{count}} uro",two:"približno {{count}} urama",few:"približno {{count}} urami",other:"približno {{count}} urami"},future:{one:"približno {{count}} uro",two:"približno {{count}} uri",few:"približno {{count}} ure",other:"približno {{count}} ur"}},xHours:{present:{one:"{{count}} ura",two:"{{count}} uri",few:"{{count}} ure",other:"{{count}} ur"},past:{one:"{{count}} uro",two:"{{count}} urama",few:"{{count}} urami",other:"{{count}} urami"},future:{one:"{{count}} uro",two:"{{count}} uri",few:"{{count}} ure",other:"{{count}} ur"}},xDays:{present:{one:"{{count}} dan",two:"{{count}} dni",few:"{{count}} dni",other:"{{count}} dni"},past:{one:"{{count}} dnem",two:"{{count}} dnevoma",few:"{{count}} dnevi",other:"{{count}} dnevi"},future:{one:"{{count}} dan",two:"{{count}} dni",few:"{{count}} dni",other:"{{count}} dni"}},aboutXWeeks:{one:"približno {{count}} teden",two:"približno {{count}} tedna",few:"približno {{count}} tedne",other:"približno {{count}} tednov"},xWeeks:{one:"{{count}} teden",two:"{{count}} tedna",few:"{{count}} tedne",other:"{{count}} tednov"},aboutXMonths:{present:{one:"približno {{count}} mesec",two:"približno {{count}} meseca",few:"približno {{count}} mesece",other:"približno {{count}} mesecev"},past:{one:"približno {{count}} mesecem",two:"približno {{count}} mesecema",few:"približno {{count}} meseci",other:"približno {{count}} meseci"},future:{one:"približno {{count}} mesec",two:"približno {{count}} meseca",few:"približno {{count}} mesece",other:"približno {{count}} mesecev"}},xMonths:{present:{one:"{{count}} mesec",two:"{{count}} meseca",few:"{{count}} meseci",other:"{{count}} mesecev"},past:{one:"{{count}} mesecem",two:"{{count}} mesecema",few:"{{count}} meseci",other:"{{count}} meseci"},future:{one:"{{count}} mesec",two:"{{count}} meseca",few:"{{count}} mesece",other:"{{count}} mesecev"}},aboutXYears:{present:{one:"približno {{count}} leto",two:"približno {{count}} leti",few:"približno {{count}} leta",other:"približno {{count}} let"},past:{one:"približno {{count}} letom",two:"približno {{count}} letoma",few:"približno {{count}} leti",other:"približno {{count}} leti"},future:{one:"približno {{count}} leto",two:"približno {{count}} leti",few:"približno {{count}} leta",other:"približno {{count}} let"}},xYears:{present:{one:"{{count}} leto",two:"{{count}} leti",few:"{{count}} leta",other:"{{count}} let"},past:{one:"{{count}} letom",two:"{{count}} letoma",few:"{{count}} leti",other:"{{count}} leti"},future:{one:"{{count}} leto",two:"{{count}} leti",few:"{{count}} leta",other:"{{count}} let"}},overXYears:{present:{one:"več kot {{count}} leto",two:"več kot {{count}} leti",few:"več kot {{count}} leta",other:"več kot {{count}} let"},past:{one:"več kot {{count}} letom",two:"več kot {{count}} letoma",few:"več kot {{count}} leti",other:"več kot {{count}} leti"},future:{one:"več kot {{count}} leto",two:"več kot {{count}} leti",few:"več kot {{count}} leta",other:"več kot {{count}} let"}},almostXYears:{present:{one:"skoraj {{count}} leto",two:"skoraj {{count}} leti",few:"skoraj {{count}} leta",other:"skoraj {{count}} let"},past:{one:"skoraj {{count}} letom",two:"skoraj {{count}} letoma",few:"skoraj {{count}} leti",other:"skoraj {{count}} leti"},future:{one:"skoraj {{count}} leto",two:"skoraj {{count}} leti",few:"skoraj {{count}} leta",other:"skoraj {{count}} let"}}};function Qgt(e){switch(e%100){case 1:return"one";case 2:return"two";case 3:case 4:return"few";default:return"other"}}var Jgt=function(t,n,r){var a="",i="present";r!=null&&r.addSuffix&&(r.comparison&&r.comparison>0?(i="future",a="čez "):(i="past",a="pred "));var o=Xgt[t];if(typeof o=="string")a+=o;else{var l=Qgt(n);Kgt(o)?a+=o[l].replace("{{count}}",String(n)):a+=o[i][l].replace("{{count}}",String(n))}return a},Zgt={full:"EEEE, dd. MMMM y",long:"dd. MMMM y",medium:"d. MMM y",short:"d. MM. yy"},evt={full:"HH:mm:ss zzzz",long:"HH:mm:ss z",medium:"HH:mm:ss",short:"HH:mm"},tvt={full:"{{date}} {{time}}",long:"{{date}} {{time}}",medium:"{{date}} {{time}}",short:"{{date}} {{time}}"},nvt={date:Ne({formats:Zgt,defaultWidth:"full"}),time:Ne({formats:evt,defaultWidth:"full"}),dateTime:Ne({formats:tvt,defaultWidth:"full"})},rvt={lastWeek:function(t){var n=t.getUTCDay();switch(n){case 0:return"'prejšnjo nedeljo ob' p";case 3:return"'prejšnjo sredo ob' p";case 6:return"'prejšnjo soboto ob' p";default:return"'prejšnji' EEEE 'ob' p"}},yesterday:"'včeraj ob' p",today:"'danes ob' p",tomorrow:"'jutri ob' p",nextWeek:function(t){var n=t.getUTCDay();switch(n){case 0:return"'naslednjo nedeljo ob' p";case 3:return"'naslednjo sredo ob' p";case 6:return"'naslednjo soboto ob' p";default:return"'naslednji' EEEE 'ob' p"}},other:"P"},avt=function(t,n,r,a){var i=rvt[t];return typeof i=="function"?i(n):i},ivt={narrow:["pr. n. št.","po n. št."],abbreviated:["pr. n. št.","po n. št."],wide:["pred našim štetjem","po našem štetju"]},ovt={narrow:["1","2","3","4"],abbreviated:["1. čet.","2. čet.","3. čet.","4. čet."],wide:["1. četrtletje","2. četrtletje","3. četrtletje","4. četrtletje"]},svt={narrow:["j","f","m","a","m","j","j","a","s","o","n","d"],abbreviated:["jan.","feb.","mar.","apr.","maj","jun.","jul.","avg.","sep.","okt.","nov.","dec."],wide:["januar","februar","marec","april","maj","junij","julij","avgust","september","oktober","november","december"]},lvt={narrow:["n","p","t","s","č","p","s"],short:["ned.","pon.","tor.","sre.","čet.","pet.","sob."],abbreviated:["ned.","pon.","tor.","sre.","čet.","pet.","sob."],wide:["nedelja","ponedeljek","torek","sreda","četrtek","petek","sobota"]},uvt={narrow:{am:"d",pm:"p",midnight:"24.00",noon:"12.00",morning:"j",afternoon:"p",evening:"v",night:"n"},abbreviated:{am:"dop.",pm:"pop.",midnight:"poln.",noon:"pold.",morning:"jut.",afternoon:"pop.",evening:"več.",night:"noč"},wide:{am:"dop.",pm:"pop.",midnight:"polnoč",noon:"poldne",morning:"jutro",afternoon:"popoldne",evening:"večer",night:"noč"}},cvt={narrow:{am:"d",pm:"p",midnight:"24.00",noon:"12.00",morning:"zj",afternoon:"p",evening:"zv",night:"po"},abbreviated:{am:"dop.",pm:"pop.",midnight:"opoln.",noon:"opold.",morning:"zjut.",afternoon:"pop.",evening:"zveč.",night:"ponoči"},wide:{am:"dop.",pm:"pop.",midnight:"opolnoči",noon:"opoldne",morning:"zjutraj",afternoon:"popoldan",evening:"zvečer",night:"ponoči"}},dvt=function(t,n){var r=Number(t);return r+"."},fvt={ordinalNumber:dvt,era:oe({values:ivt,defaultWidth:"wide"}),quarter:oe({values:ovt,defaultWidth:"wide",argumentCallback:function(t){return t-1}}),month:oe({values:svt,defaultWidth:"wide"}),day:oe({values:lvt,defaultWidth:"wide"}),dayPeriod:oe({values:uvt,defaultWidth:"wide",formattingValues:cvt,defaultFormattingWidth:"wide"})},pvt=/^(\d+)\./i,hvt=/\d+/i,mvt={abbreviated:/^(pr\. n\. št\.|po n\. št\.)/i,wide:/^(pred Kristusom|pred na[sš]im [sš]tetjem|po Kristusu|po na[sš]em [sš]tetju|na[sš]ega [sš]tetja)/i},gvt={any:[/^pr/i,/^(po|na[sš]em)/i]},vvt={narrow:/^[1234]/i,abbreviated:/^[1234]\.\s?[čc]et\.?/i,wide:/^[1234]\. [čc]etrtletje/i},yvt={any:[/1/i,/2/i,/3/i,/4/i]},bvt={narrow:/^[jfmasond]/i,abbreviated:/^(jan\.|feb\.|mar\.|apr\.|maj|jun\.|jul\.|avg\.|sep\.|okt\.|nov\.|dec\.)/i,wide:/^(januar|februar|marec|april|maj|junij|julij|avgust|september|oktober|november|december)/i},wvt={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],abbreviated:[/^ja/i,/^fe/i,/^mar/i,/^ap/i,/^maj/i,/^jun/i,/^jul/i,/^av/i,/^s/i,/^o/i,/^n/i,/^d/i],wide:[/^ja/i,/^fe/i,/^mar/i,/^ap/i,/^maj/i,/^jun/i,/^jul/i,/^av/i,/^s/i,/^o/i,/^n/i,/^d/i]},Svt={narrow:/^[nptsčc]/i,short:/^(ned\.|pon\.|tor\.|sre\.|[cč]et\.|pet\.|sob\.)/i,abbreviated:/^(ned\.|pon\.|tor\.|sre\.|[cč]et\.|pet\.|sob\.)/i,wide:/^(nedelja|ponedeljek|torek|sreda|[cč]etrtek|petek|sobota)/i},Evt={narrow:[/^n/i,/^p/i,/^t/i,/^s/i,/^[cč]/i,/^p/i,/^s/i],any:[/^n/i,/^po/i,/^t/i,/^sr/i,/^[cč]/i,/^pe/i,/^so/i]},Tvt={narrow:/^(d|po?|z?v|n|z?j|24\.00|12\.00)/i,any:/^(dop\.|pop\.|o?poln(\.|o[cč]i?)|o?pold(\.|ne)|z?ve[cč](\.|er)|(po)?no[cč]i?|popold(ne|an)|jut(\.|ro)|zjut(\.|raj))/i},Cvt={narrow:{am:/^d/i,pm:/^p/i,midnight:/^24/i,noon:/^12/i,morning:/^(z?j)/i,afternoon:/^p/i,evening:/^(z?v)/i,night:/^(n|po)/i},any:{am:/^dop\./i,pm:/^pop\./i,midnight:/^o?poln/i,noon:/^o?pold/i,morning:/j/i,afternoon:/^pop\./i,evening:/^z?ve/i,night:/(po)?no/i}},kvt={ordinalNumber:Xt({matchPattern:pvt,parsePattern:hvt,valueCallback:function(t){return parseInt(t,10)}}),era:se({matchPatterns:mvt,defaultMatchWidth:"wide",parsePatterns:gvt,defaultParseWidth:"any"}),quarter:se({matchPatterns:vvt,defaultMatchWidth:"wide",parsePatterns:yvt,defaultParseWidth:"any",valueCallback:function(t){return t+1}}),month:se({matchPatterns:bvt,defaultMatchWidth:"wide",parsePatterns:wvt,defaultParseWidth:"wide"}),day:se({matchPatterns:Svt,defaultMatchWidth:"wide",parsePatterns:Evt,defaultParseWidth:"any"}),dayPeriod:se({matchPatterns:Tvt,defaultMatchWidth:"any",parsePatterns:Cvt,defaultParseWidth:"any"})},xvt={code:"sl",formatDistance:Jgt,formatLong:nvt,formatRelative:avt,localize:fvt,match:kvt,options:{weekStartsOn:1,firstWeekContainsDate:1}};const _vt=Object.freeze(Object.defineProperty({__proto__:null,default:xvt},Symbol.toStringTag,{value:"Module"})),Ovt=jt(_vt);var Rvt={lessThanXSeconds:{one:{standalone:"мање од 1 секунде",withPrepositionAgo:"мање од 1 секунде",withPrepositionIn:"мање од 1 секунду"},dual:"мање од {{count}} секунде",other:"мање од {{count}} секунди"},xSeconds:{one:{standalone:"1 секунда",withPrepositionAgo:"1 секунде",withPrepositionIn:"1 секунду"},dual:"{{count}} секунде",other:"{{count}} секунди"},halfAMinute:"пола минуте",lessThanXMinutes:{one:{standalone:"мање од 1 минуте",withPrepositionAgo:"мање од 1 минуте",withPrepositionIn:"мање од 1 минуту"},dual:"мање од {{count}} минуте",other:"мање од {{count}} минута"},xMinutes:{one:{standalone:"1 минута",withPrepositionAgo:"1 минуте",withPrepositionIn:"1 минуту"},dual:"{{count}} минуте",other:"{{count}} минута"},aboutXHours:{one:{standalone:"око 1 сат",withPrepositionAgo:"око 1 сат",withPrepositionIn:"око 1 сат"},dual:"око {{count}} сата",other:"око {{count}} сати"},xHours:{one:{standalone:"1 сат",withPrepositionAgo:"1 сат",withPrepositionIn:"1 сат"},dual:"{{count}} сата",other:"{{count}} сати"},xDays:{one:{standalone:"1 дан",withPrepositionAgo:"1 дан",withPrepositionIn:"1 дан"},dual:"{{count}} дана",other:"{{count}} дана"},aboutXWeeks:{one:{standalone:"око 1 недељу",withPrepositionAgo:"око 1 недељу",withPrepositionIn:"око 1 недељу"},dual:"око {{count}} недеље",other:"око {{count}} недеље"},xWeeks:{one:{standalone:"1 недељу",withPrepositionAgo:"1 недељу",withPrepositionIn:"1 недељу"},dual:"{{count}} недеље",other:"{{count}} недеље"},aboutXMonths:{one:{standalone:"око 1 месец",withPrepositionAgo:"око 1 месец",withPrepositionIn:"око 1 месец"},dual:"око {{count}} месеца",other:"око {{count}} месеци"},xMonths:{one:{standalone:"1 месец",withPrepositionAgo:"1 месец",withPrepositionIn:"1 месец"},dual:"{{count}} месеца",other:"{{count}} месеци"},aboutXYears:{one:{standalone:"око 1 годину",withPrepositionAgo:"око 1 годину",withPrepositionIn:"око 1 годину"},dual:"око {{count}} године",other:"око {{count}} година"},xYears:{one:{standalone:"1 година",withPrepositionAgo:"1 године",withPrepositionIn:"1 годину"},dual:"{{count}} године",other:"{{count}} година"},overXYears:{one:{standalone:"преко 1 годину",withPrepositionAgo:"преко 1 годину",withPrepositionIn:"преко 1 годину"},dual:"преко {{count}} године",other:"преко {{count}} година"},almostXYears:{one:{standalone:"готово 1 годину",withPrepositionAgo:"готово 1 годину",withPrepositionIn:"готово 1 годину"},dual:"готово {{count}} године",other:"готово {{count}} година"}},Pvt=function(t,n,r){var a,i=Rvt[t];return typeof i=="string"?a=i:n===1?r!=null&&r.addSuffix?r.comparison&&r.comparison>0?a=i.one.withPrepositionIn:a=i.one.withPrepositionAgo:a=i.one.standalone:n%10>1&&n%10<5&&String(n).substr(-2,1)!=="1"?a=i.dual.replace("{{count}}",String(n)):a=i.other.replace("{{count}}",String(n)),r!=null&&r.addSuffix?r.comparison&&r.comparison>0?"за "+a:"пре "+a:a},Avt={full:"EEEE, d. MMMM yyyy.",long:"d. MMMM yyyy.",medium:"d. MMM yy.",short:"dd. MM. yy."},Nvt={full:"HH:mm:ss (zzzz)",long:"HH:mm:ss z",medium:"HH:mm:ss",short:"HH:mm"},Mvt={full:"{{date}} 'у' {{time}}",long:"{{date}} 'у' {{time}}",medium:"{{date}} {{time}}",short:"{{date}} {{time}}"},Ivt={date:Ne({formats:Avt,defaultWidth:"full"}),time:Ne({formats:Nvt,defaultWidth:"full"}),dateTime:Ne({formats:Mvt,defaultWidth:"full"})},Dvt={lastWeek:function(t){var n=t.getUTCDay();switch(n){case 0:return"'прошле недеље у' p";case 3:return"'прошле среде у' p";case 6:return"'прошле суботе у' p";default:return"'прошли' EEEE 'у' p"}},yesterday:"'јуче у' p",today:"'данас у' p",tomorrow:"'сутра у' p",nextWeek:function(t){var n=t.getUTCDay();switch(n){case 0:return"'следеће недеље у' p";case 3:return"'следећу среду у' p";case 6:return"'следећу суботу у' p";default:return"'следећи' EEEE 'у' p"}},other:"P"},$vt=function(t,n,r,a){var i=Dvt[t];return typeof i=="function"?i(n):i},Lvt={narrow:["пр.н.е.","АД"],abbreviated:["пр. Хр.","по. Хр."],wide:["Пре Христа","После Христа"]},Fvt={narrow:["1.","2.","3.","4."],abbreviated:["1. кв.","2. кв.","3. кв.","4. кв."],wide:["1. квартал","2. квартал","3. квартал","4. квартал"]},jvt={narrow:["1.","2.","3.","4.","5.","6.","7.","8.","9.","10.","11.","12."],abbreviated:["јан","феб","мар","апр","мај","јун","јул","авг","сеп","окт","нов","дец"],wide:["јануар","фебруар","март","април","мај","јун","јул","август","септембар","октобар","новембар","децембар"]},Uvt={narrow:["1.","2.","3.","4.","5.","6.","7.","8.","9.","10.","11.","12."],abbreviated:["јан","феб","мар","апр","мај","јун","јул","авг","сеп","окт","нов","дец"],wide:["јануар","фебруар","март","април","мај","јун","јул","август","септембар","октобар","новембар","децембар"]},Bvt={narrow:["Н","П","У","С","Ч","П","С"],short:["нед","пон","уто","сре","чет","пет","суб"],abbreviated:["нед","пон","уто","сре","чет","пет","суб"],wide:["недеља","понедељак","уторак","среда","четвртак","петак","субота"]},Wvt={narrow:{am:"АМ",pm:"ПМ",midnight:"поноћ",noon:"подне",morning:"ујутру",afternoon:"поподне",evening:"увече",night:"ноћу"},abbreviated:{am:"АМ",pm:"ПМ",midnight:"поноћ",noon:"подне",morning:"ујутру",afternoon:"поподне",evening:"увече",night:"ноћу"},wide:{am:"AM",pm:"PM",midnight:"поноћ",noon:"подне",morning:"ујутру",afternoon:"после подне",evening:"увече",night:"ноћу"}},zvt={narrow:{am:"AM",pm:"PM",midnight:"поноћ",noon:"подне",morning:"ујутру",afternoon:"поподне",evening:"увече",night:"ноћу"},abbreviated:{am:"AM",pm:"PM",midnight:"поноћ",noon:"подне",morning:"ујутру",afternoon:"поподне",evening:"увече",night:"ноћу"},wide:{am:"AM",pm:"PM",midnight:"поноћ",noon:"подне",morning:"ујутру",afternoon:"после подне",evening:"увече",night:"ноћу"}},qvt=function(t,n){var r=Number(t);return r+"."},Hvt={ordinalNumber:qvt,era:oe({values:Lvt,defaultWidth:"wide"}),quarter:oe({values:Fvt,defaultWidth:"wide",argumentCallback:function(t){return t-1}}),month:oe({values:jvt,defaultWidth:"wide",formattingValues:Uvt,defaultFormattingWidth:"wide"}),day:oe({values:Bvt,defaultWidth:"wide"}),dayPeriod:oe({values:zvt,defaultWidth:"wide",formattingValues:Wvt,defaultFormattingWidth:"wide"})},Vvt=/^(\d+)\./i,Gvt=/\d+/i,Yvt={narrow:/^(пр\.н\.е\.|АД)/i,abbreviated:/^(пр\.\s?Хр\.|по\.\s?Хр\.)/i,wide:/^(Пре Христа|пре нове ере|После Христа|нова ера)/i},Kvt={any:[/^пр/i,/^(по|нова)/i]},Xvt={narrow:/^[1234]/i,abbreviated:/^[1234]\.\s?кв\.?/i,wide:/^[1234]\. квартал/i},Qvt={any:[/1/i,/2/i,/3/i,/4/i]},Jvt={narrow:/^(10|11|12|[123456789])\./i,abbreviated:/^(јан|феб|мар|апр|мај|јун|јул|авг|сеп|окт|нов|дец)/i,wide:/^((јануар|јануара)|(фебруар|фебруара)|(март|марта)|(април|априла)|(мја|маја)|(јун|јуна)|(јул|јула)|(август|августа)|(септембар|септембра)|(октобар|октобра)|(новембар|новембра)|(децембар|децембра))/i},Zvt={narrow:[/^1/i,/^2/i,/^3/i,/^4/i,/^5/i,/^6/i,/^7/i,/^8/i,/^9/i,/^10/i,/^11/i,/^12/i],any:[/^ја/i,/^ф/i,/^мар/i,/^ап/i,/^мај/i,/^јун/i,/^јул/i,/^авг/i,/^с/i,/^о/i,/^н/i,/^д/i]},eyt={narrow:/^[пусчн]/i,short:/^(нед|пон|уто|сре|чет|пет|суб)/i,abbreviated:/^(нед|пон|уто|сре|чет|пет|суб)/i,wide:/^(недеља|понедељак|уторак|среда|четвртак|петак|субота)/i},tyt={narrow:[/^п/i,/^у/i,/^с/i,/^ч/i,/^п/i,/^с/i,/^н/i],any:[/^нед/i,/^пон/i,/^уто/i,/^сре/i,/^чет/i,/^пет/i,/^суб/i]},nyt={any:/^(ам|пм|поноћ|(по)?подне|увече|ноћу|после подне|ујутру)/i},ryt={any:{am:/^a/i,pm:/^p/i,midnight:/^поно/i,noon:/^под/i,morning:/ујутру/i,afternoon:/(после\s|по)+подне/i,evening:/(увече)/i,night:/(ноћу)/i}},ayt={ordinalNumber:Xt({matchPattern:Vvt,parsePattern:Gvt,valueCallback:function(t){return parseInt(t,10)}}),era:se({matchPatterns:Yvt,defaultMatchWidth:"wide",parsePatterns:Kvt,defaultParseWidth:"any"}),quarter:se({matchPatterns:Xvt,defaultMatchWidth:"wide",parsePatterns:Qvt,defaultParseWidth:"any",valueCallback:function(t){return t+1}}),month:se({matchPatterns:Jvt,defaultMatchWidth:"wide",parsePatterns:Zvt,defaultParseWidth:"any"}),day:se({matchPatterns:eyt,defaultMatchWidth:"wide",parsePatterns:tyt,defaultParseWidth:"any"}),dayPeriod:se({matchPatterns:nyt,defaultMatchWidth:"any",parsePatterns:ryt,defaultParseWidth:"any"})},iyt={code:"sr",formatDistance:Pvt,formatLong:Ivt,formatRelative:$vt,localize:Hvt,match:ayt,options:{weekStartsOn:1,firstWeekContainsDate:1}};const oyt=Object.freeze(Object.defineProperty({__proto__:null,default:iyt},Symbol.toStringTag,{value:"Module"})),syt=jt(oyt);var lyt={lessThanXSeconds:{one:{standalone:"manje od 1 sekunde",withPrepositionAgo:"manje od 1 sekunde",withPrepositionIn:"manje od 1 sekundu"},dual:"manje od {{count}} sekunde",other:"manje od {{count}} sekundi"},xSeconds:{one:{standalone:"1 sekunda",withPrepositionAgo:"1 sekunde",withPrepositionIn:"1 sekundu"},dual:"{{count}} sekunde",other:"{{count}} sekundi"},halfAMinute:"pola minute",lessThanXMinutes:{one:{standalone:"manje od 1 minute",withPrepositionAgo:"manje od 1 minute",withPrepositionIn:"manje od 1 minutu"},dual:"manje od {{count}} minute",other:"manje od {{count}} minuta"},xMinutes:{one:{standalone:"1 minuta",withPrepositionAgo:"1 minute",withPrepositionIn:"1 minutu"},dual:"{{count}} minute",other:"{{count}} minuta"},aboutXHours:{one:{standalone:"oko 1 sat",withPrepositionAgo:"oko 1 sat",withPrepositionIn:"oko 1 sat"},dual:"oko {{count}} sata",other:"oko {{count}} sati"},xHours:{one:{standalone:"1 sat",withPrepositionAgo:"1 sat",withPrepositionIn:"1 sat"},dual:"{{count}} sata",other:"{{count}} sati"},xDays:{one:{standalone:"1 dan",withPrepositionAgo:"1 dan",withPrepositionIn:"1 dan"},dual:"{{count}} dana",other:"{{count}} dana"},aboutXWeeks:{one:{standalone:"oko 1 nedelju",withPrepositionAgo:"oko 1 nedelju",withPrepositionIn:"oko 1 nedelju"},dual:"oko {{count}} nedelje",other:"oko {{count}} nedelje"},xWeeks:{one:{standalone:"1 nedelju",withPrepositionAgo:"1 nedelju",withPrepositionIn:"1 nedelju"},dual:"{{count}} nedelje",other:"{{count}} nedelje"},aboutXMonths:{one:{standalone:"oko 1 mesec",withPrepositionAgo:"oko 1 mesec",withPrepositionIn:"oko 1 mesec"},dual:"oko {{count}} meseca",other:"oko {{count}} meseci"},xMonths:{one:{standalone:"1 mesec",withPrepositionAgo:"1 mesec",withPrepositionIn:"1 mesec"},dual:"{{count}} meseca",other:"{{count}} meseci"},aboutXYears:{one:{standalone:"oko 1 godinu",withPrepositionAgo:"oko 1 godinu",withPrepositionIn:"oko 1 godinu"},dual:"oko {{count}} godine",other:"oko {{count}} godina"},xYears:{one:{standalone:"1 godina",withPrepositionAgo:"1 godine",withPrepositionIn:"1 godinu"},dual:"{{count}} godine",other:"{{count}} godina"},overXYears:{one:{standalone:"preko 1 godinu",withPrepositionAgo:"preko 1 godinu",withPrepositionIn:"preko 1 godinu"},dual:"preko {{count}} godine",other:"preko {{count}} godina"},almostXYears:{one:{standalone:"gotovo 1 godinu",withPrepositionAgo:"gotovo 1 godinu",withPrepositionIn:"gotovo 1 godinu"},dual:"gotovo {{count}} godine",other:"gotovo {{count}} godina"}},uyt=function(t,n,r){var a,i=lyt[t];return typeof i=="string"?a=i:n===1?r!=null&&r.addSuffix?r.comparison&&r.comparison>0?a=i.one.withPrepositionIn:a=i.one.withPrepositionAgo:a=i.one.standalone:n%10>1&&n%10<5&&String(n).substr(-2,1)!=="1"?a=i.dual.replace("{{count}}",String(n)):a=i.other.replace("{{count}}",String(n)),r!=null&&r.addSuffix?r.comparison&&r.comparison>0?"za "+a:"pre "+a:a},cyt={full:"EEEE, d. MMMM yyyy.",long:"d. MMMM yyyy.",medium:"d. MMM yy.",short:"dd. MM. yy."},dyt={full:"HH:mm:ss (zzzz)",long:"HH:mm:ss z",medium:"HH:mm:ss",short:"HH:mm"},fyt={full:"{{date}} 'u' {{time}}",long:"{{date}} 'u' {{time}}",medium:"{{date}} {{time}}",short:"{{date}} {{time}}"},pyt={date:Ne({formats:cyt,defaultWidth:"full"}),time:Ne({formats:dyt,defaultWidth:"full"}),dateTime:Ne({formats:fyt,defaultWidth:"full"})},hyt={lastWeek:function(t){switch(t.getUTCDay()){case 0:return"'prošle nedelje u' p";case 3:return"'prošle srede u' p";case 6:return"'prošle subote u' p";default:return"'prošli' EEEE 'u' p"}},yesterday:"'juče u' p",today:"'danas u' p",tomorrow:"'sutra u' p",nextWeek:function(t){switch(t.getUTCDay()){case 0:return"'sledeće nedelje u' p";case 3:return"'sledeću sredu u' p";case 6:return"'sledeću subotu u' p";default:return"'sledeći' EEEE 'u' p"}},other:"P"},myt=function(t,n,r,a){var i=hyt[t];return typeof i=="function"?i(n):i},gyt={narrow:["pr.n.e.","AD"],abbreviated:["pr. Hr.","po. Hr."],wide:["Pre Hrista","Posle Hrista"]},vyt={narrow:["1.","2.","3.","4."],abbreviated:["1. kv.","2. kv.","3. kv.","4. kv."],wide:["1. kvartal","2. kvartal","3. kvartal","4. kvartal"]},yyt={narrow:["1.","2.","3.","4.","5.","6.","7.","8.","9.","10.","11.","12."],abbreviated:["jan","feb","mar","apr","maj","jun","jul","avg","sep","okt","nov","dec"],wide:["januar","februar","mart","april","maj","jun","jul","avgust","septembar","oktobar","novembar","decembar"]},byt={narrow:["1.","2.","3.","4.","5.","6.","7.","8.","9.","10.","11.","12."],abbreviated:["jan","feb","mar","apr","maj","jun","jul","avg","sep","okt","nov","dec"],wide:["januar","februar","mart","april","maj","jun","jul","avgust","septembar","oktobar","novembar","decembar"]},wyt={narrow:["N","P","U","S","Č","P","S"],short:["ned","pon","uto","sre","čet","pet","sub"],abbreviated:["ned","pon","uto","sre","čet","pet","sub"],wide:["nedelja","ponedeljak","utorak","sreda","četvrtak","petak","subota"]},Syt={narrow:{am:"AM",pm:"PM",midnight:"ponoć",noon:"podne",morning:"ujutru",afternoon:"popodne",evening:"uveče",night:"noću"},abbreviated:{am:"AM",pm:"PM",midnight:"ponoć",noon:"podne",morning:"ujutru",afternoon:"popodne",evening:"uveče",night:"noću"},wide:{am:"AM",pm:"PM",midnight:"ponoć",noon:"podne",morning:"ujutru",afternoon:"posle podne",evening:"uveče",night:"noću"}},Eyt={narrow:{am:"AM",pm:"PM",midnight:"ponoć",noon:"podne",morning:"ujutru",afternoon:"popodne",evening:"uveče",night:"noću"},abbreviated:{am:"AM",pm:"PM",midnight:"ponoć",noon:"podne",morning:"ujutru",afternoon:"popodne",evening:"uveče",night:"noću"},wide:{am:"AM",pm:"PM",midnight:"ponoć",noon:"podne",morning:"ujutru",afternoon:"posle podne",evening:"uveče",night:"noću"}},Tyt=function(t,n){var r=Number(t);return r+"."},Cyt={ordinalNumber:Tyt,era:oe({values:gyt,defaultWidth:"wide"}),quarter:oe({values:vyt,defaultWidth:"wide",argumentCallback:function(t){return t-1}}),month:oe({values:yyt,defaultWidth:"wide",formattingValues:byt,defaultFormattingWidth:"wide"}),day:oe({values:wyt,defaultWidth:"wide"}),dayPeriod:oe({values:Eyt,defaultWidth:"wide",formattingValues:Syt,defaultFormattingWidth:"wide"})},kyt=/^(\d+)\./i,xyt=/\d+/i,_yt={narrow:/^(pr\.n\.e\.|AD)/i,abbreviated:/^(pr\.\s?Hr\.|po\.\s?Hr\.)/i,wide:/^(Pre Hrista|pre nove ere|Posle Hrista|nova era)/i},Oyt={any:[/^pr/i,/^(po|nova)/i]},Ryt={narrow:/^[1234]/i,abbreviated:/^[1234]\.\s?kv\.?/i,wide:/^[1234]\. kvartal/i},Pyt={any:[/1/i,/2/i,/3/i,/4/i]},Ayt={narrow:/^(10|11|12|[123456789])\./i,abbreviated:/^(jan|feb|mar|apr|maj|jun|jul|avg|sep|okt|nov|dec)/i,wide:/^((januar|januara)|(februar|februara)|(mart|marta)|(april|aprila)|(maj|maja)|(jun|juna)|(jul|jula)|(avgust|avgusta)|(septembar|septembra)|(oktobar|oktobra)|(novembar|novembra)|(decembar|decembra))/i},Nyt={narrow:[/^1/i,/^2/i,/^3/i,/^4/i,/^5/i,/^6/i,/^7/i,/^8/i,/^9/i,/^10/i,/^11/i,/^12/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^maj/i,/^jun/i,/^jul/i,/^avg/i,/^s/i,/^o/i,/^n/i,/^d/i]},Myt={narrow:/^[npusčc]/i,short:/^(ned|pon|uto|sre|(čet|cet)|pet|sub)/i,abbreviated:/^(ned|pon|uto|sre|(čet|cet)|pet|sub)/i,wide:/^(nedelja|ponedeljak|utorak|sreda|(četvrtak|cetvrtak)|petak|subota)/i},Iyt={narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},Dyt={any:/^(am|pm|ponoc|ponoć|(po)?podne|uvece|uveče|noću|posle podne|ujutru)/i},$yt={any:{am:/^a/i,pm:/^p/i,midnight:/^pono/i,noon:/^pod/i,morning:/jutro/i,afternoon:/(posle\s|po)+podne/i,evening:/(uvece|uveče)/i,night:/(nocu|noću)/i}},Lyt={ordinalNumber:Xt({matchPattern:kyt,parsePattern:xyt,valueCallback:function(t){return parseInt(t,10)}}),era:se({matchPatterns:_yt,defaultMatchWidth:"wide",parsePatterns:Oyt,defaultParseWidth:"any"}),quarter:se({matchPatterns:Ryt,defaultMatchWidth:"wide",parsePatterns:Pyt,defaultParseWidth:"any",valueCallback:function(t){return t+1}}),month:se({matchPatterns:Ayt,defaultMatchWidth:"wide",parsePatterns:Nyt,defaultParseWidth:"any"}),day:se({matchPatterns:Myt,defaultMatchWidth:"wide",parsePatterns:Iyt,defaultParseWidth:"any"}),dayPeriod:se({matchPatterns:Dyt,defaultMatchWidth:"any",parsePatterns:$yt,defaultParseWidth:"any"})},Fyt={code:"sr-Latn",formatDistance:uyt,formatLong:pyt,formatRelative:myt,localize:Cyt,match:Lyt,options:{weekStartsOn:1,firstWeekContainsDate:1}};const jyt=Object.freeze(Object.defineProperty({__proto__:null,default:Fyt},Symbol.toStringTag,{value:"Module"})),Uyt=jt(jyt);var Byt={lessThanXSeconds:{one:"mindre än en sekund",other:"mindre än {{count}} sekunder"},xSeconds:{one:"en sekund",other:"{{count}} sekunder"},halfAMinute:"en halv minut",lessThanXMinutes:{one:"mindre än en minut",other:"mindre än {{count}} minuter"},xMinutes:{one:"en minut",other:"{{count}} minuter"},aboutXHours:{one:"ungefär en timme",other:"ungefär {{count}} timmar"},xHours:{one:"en timme",other:"{{count}} timmar"},xDays:{one:"en dag",other:"{{count}} dagar"},aboutXWeeks:{one:"ungefär en vecka",other:"ungefär {{count}} vecka"},xWeeks:{one:"en vecka",other:"{{count}} vecka"},aboutXMonths:{one:"ungefär en månad",other:"ungefär {{count}} månader"},xMonths:{one:"en månad",other:"{{count}} månader"},aboutXYears:{one:"ungefär ett år",other:"ungefär {{count}} år"},xYears:{one:"ett år",other:"{{count}} år"},overXYears:{one:"över ett år",other:"över {{count}} år"},almostXYears:{one:"nästan ett år",other:"nästan {{count}} år"}},Wyt=["noll","en","två","tre","fyra","fem","sex","sju","åtta","nio","tio","elva","tolv"],zyt=function(t,n,r){var a,i=Byt[t];return typeof i=="string"?a=i:n===1?a=i.one:r&&r.onlyNumeric?a=i.other.replace("{{count}}",String(n)):a=i.other.replace("{{count}}",n<13?Wyt[n]:String(n)),r!=null&&r.addSuffix?r.comparison&&r.comparison>0?"om "+a:a+" sedan":a},qyt={full:"EEEE d MMMM y",long:"d MMMM y",medium:"d MMM y",short:"y-MM-dd"},Hyt={full:"'kl'. HH:mm:ss zzzz",long:"HH:mm:ss z",medium:"HH:mm:ss",short:"HH:mm"},Vyt={full:"{{date}} 'kl.' {{time}}",long:"{{date}} 'kl.' {{time}}",medium:"{{date}} {{time}}",short:"{{date}} {{time}}"},Gyt={date:Ne({formats:qyt,defaultWidth:"full"}),time:Ne({formats:Hyt,defaultWidth:"full"}),dateTime:Ne({formats:Vyt,defaultWidth:"full"})},Yyt={lastWeek:"'i' EEEE's kl.' p",yesterday:"'igår kl.' p",today:"'idag kl.' p",tomorrow:"'imorgon kl.' p",nextWeek:"EEEE 'kl.' p",other:"P"},Kyt=function(t,n,r,a){return Yyt[t]},Xyt={narrow:["f.Kr.","e.Kr."],abbreviated:["f.Kr.","e.Kr."],wide:["före Kristus","efter Kristus"]},Qyt={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1:a kvartalet","2:a kvartalet","3:e kvartalet","4:e kvartalet"]},Jyt={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["jan.","feb.","mars","apr.","maj","juni","juli","aug.","sep.","okt.","nov.","dec."],wide:["januari","februari","mars","april","maj","juni","juli","augusti","september","oktober","november","december"]},Zyt={narrow:["S","M","T","O","T","F","L"],short:["sö","må","ti","on","to","fr","lö"],abbreviated:["sön","mån","tis","ons","tors","fre","lör"],wide:["söndag","måndag","tisdag","onsdag","torsdag","fredag","lördag"]},ebt={narrow:{am:"fm",pm:"em",midnight:"midnatt",noon:"middag",morning:"morg.",afternoon:"efterm.",evening:"kväll",night:"natt"},abbreviated:{am:"f.m.",pm:"e.m.",midnight:"midnatt",noon:"middag",morning:"morgon",afternoon:"efterm.",evening:"kväll",night:"natt"},wide:{am:"förmiddag",pm:"eftermiddag",midnight:"midnatt",noon:"middag",morning:"morgon",afternoon:"eftermiddag",evening:"kväll",night:"natt"}},tbt={narrow:{am:"fm",pm:"em",midnight:"midnatt",noon:"middag",morning:"på morg.",afternoon:"på efterm.",evening:"på kvällen",night:"på natten"},abbreviated:{am:"fm",pm:"em",midnight:"midnatt",noon:"middag",morning:"på morg.",afternoon:"på efterm.",evening:"på kvällen",night:"på natten"},wide:{am:"fm",pm:"em",midnight:"midnatt",noon:"middag",morning:"på morgonen",afternoon:"på eftermiddagen",evening:"på kvällen",night:"på natten"}},nbt=function(t,n){var r=Number(t),a=r%100;if(a>20||a<10)switch(a%10){case 1:case 2:return r+":a"}return r+":e"},rbt={ordinalNumber:nbt,era:oe({values:Xyt,defaultWidth:"wide"}),quarter:oe({values:Qyt,defaultWidth:"wide",argumentCallback:function(t){return t-1}}),month:oe({values:Jyt,defaultWidth:"wide"}),day:oe({values:Zyt,defaultWidth:"wide"}),dayPeriod:oe({values:ebt,defaultWidth:"wide",formattingValues:tbt,defaultFormattingWidth:"wide"})},abt=/^(\d+)(:a|:e)?/i,ibt=/\d+/i,obt={narrow:/^(f\.? ?Kr\.?|f\.? ?v\.? ?t\.?|e\.? ?Kr\.?|v\.? ?t\.?)/i,abbreviated:/^(f\.? ?Kr\.?|f\.? ?v\.? ?t\.?|e\.? ?Kr\.?|v\.? ?t\.?)/i,wide:/^(före Kristus|före vår tid|efter Kristus|vår tid)/i},sbt={any:[/^f/i,/^[ev]/i]},lbt={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](:a|:e)? kvartalet/i},ubt={any:[/1/i,/2/i,/3/i,/4/i]},cbt={narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar[s]?|apr|maj|jun[i]?|jul[i]?|aug|sep|okt|nov|dec)\.?/i,wide:/^(januari|februari|mars|april|maj|juni|juli|augusti|september|oktober|november|december)/i},dbt={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^maj/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},fbt={narrow:/^[smtofl]/i,short:/^(sö|må|ti|on|to|fr|lö)/i,abbreviated:/^(sön|mån|tis|ons|tors|fre|lör)/i,wide:/^(söndag|måndag|tisdag|onsdag|torsdag|fredag|lördag)/i},pbt={any:[/^s/i,/^m/i,/^ti/i,/^o/i,/^to/i,/^f/i,/^l/i]},hbt={any:/^([fe]\.?\s?m\.?|midn(att)?|midd(ag)?|(på) (morgonen|eftermiddagen|kvällen|natten))/i},mbt={any:{am:/^f/i,pm:/^e/i,midnight:/^midn/i,noon:/^midd/i,morning:/morgon/i,afternoon:/eftermiddag/i,evening:/kväll/i,night:/natt/i}},gbt={ordinalNumber:Xt({matchPattern:abt,parsePattern:ibt,valueCallback:function(t){return parseInt(t,10)}}),era:se({matchPatterns:obt,defaultMatchWidth:"wide",parsePatterns:sbt,defaultParseWidth:"any"}),quarter:se({matchPatterns:lbt,defaultMatchWidth:"wide",parsePatterns:ubt,defaultParseWidth:"any",valueCallback:function(t){return t+1}}),month:se({matchPatterns:cbt,defaultMatchWidth:"wide",parsePatterns:dbt,defaultParseWidth:"any"}),day:se({matchPatterns:fbt,defaultMatchWidth:"wide",parsePatterns:pbt,defaultParseWidth:"any"}),dayPeriod:se({matchPatterns:hbt,defaultMatchWidth:"any",parsePatterns:mbt,defaultParseWidth:"any"})},vbt={code:"sv",formatDistance:zyt,formatLong:Gyt,formatRelative:Kyt,localize:rbt,match:gbt,options:{weekStartsOn:1,firstWeekContainsDate:4}};const ybt=Object.freeze(Object.defineProperty({__proto__:null,default:vbt},Symbol.toStringTag,{value:"Module"})),bbt=jt(ybt);function wbt(e){return e.one!==void 0}var Sbt={lessThanXSeconds:{one:{default:"ஒரு வினாடிக்கு குறைவாக",in:"ஒரு வினாடிக்குள்",ago:"ஒரு வினாடிக்கு முன்பு"},other:{default:"{{count}} வினாடிகளுக்கு குறைவாக",in:"{{count}} வினாடிகளுக்குள்",ago:"{{count}} வினாடிகளுக்கு முன்பு"}},xSeconds:{one:{default:"1 வினாடி",in:"1 வினாடியில்",ago:"1 வினாடி முன்பு"},other:{default:"{{count}} விநாடிகள்",in:"{{count}} வினாடிகளில்",ago:"{{count}} விநாடிகளுக்கு முன்பு"}},halfAMinute:{default:"அரை நிமிடம்",in:"அரை நிமிடத்தில்",ago:"அரை நிமிடம் முன்பு"},lessThanXMinutes:{one:{default:"ஒரு நிமிடத்திற்கும் குறைவாக",in:"ஒரு நிமிடத்திற்குள்",ago:"ஒரு நிமிடத்திற்கு முன்பு"},other:{default:"{{count}} நிமிடங்களுக்கும் குறைவாக",in:"{{count}} நிமிடங்களுக்குள்",ago:"{{count}} நிமிடங்களுக்கு முன்பு"}},xMinutes:{one:{default:"1 நிமிடம்",in:"1 நிமிடத்தில்",ago:"1 நிமிடம் முன்பு"},other:{default:"{{count}} நிமிடங்கள்",in:"{{count}} நிமிடங்களில்",ago:"{{count}} நிமிடங்களுக்கு முன்பு"}},aboutXHours:{one:{default:"சுமார் 1 மணி நேரம்",in:"சுமார் 1 மணி நேரத்தில்",ago:"சுமார் 1 மணி நேரத்திற்கு முன்பு"},other:{default:"சுமார் {{count}} மணி நேரம்",in:"சுமார் {{count}} மணி நேரத்திற்கு முன்பு",ago:"சுமார் {{count}} மணி நேரத்தில்"}},xHours:{one:{default:"1 மணி நேரம்",in:"1 மணி நேரத்தில்",ago:"1 மணி நேரத்திற்கு முன்பு"},other:{default:"{{count}} மணி நேரம்",in:"{{count}} மணி நேரத்தில்",ago:"{{count}} மணி நேரத்திற்கு முன்பு"}},xDays:{one:{default:"1 நாள்",in:"1 நாளில்",ago:"1 நாள் முன்பு"},other:{default:"{{count}} நாட்கள்",in:"{{count}} நாட்களில்",ago:"{{count}} நாட்களுக்கு முன்பு"}},aboutXWeeks:{one:{default:"சுமார் 1 வாரம்",in:"சுமார் 1 வாரத்தில்",ago:"சுமார் 1 வாரம் முன்பு"},other:{default:"சுமார் {{count}} வாரங்கள்",in:"சுமார் {{count}} வாரங்களில்",ago:"சுமார் {{count}} வாரங்களுக்கு முன்பு"}},xWeeks:{one:{default:"1 வாரம்",in:"1 வாரத்தில்",ago:"1 வாரம் முன்பு"},other:{default:"{{count}} வாரங்கள்",in:"{{count}} வாரங்களில்",ago:"{{count}} வாரங்களுக்கு முன்பு"}},aboutXMonths:{one:{default:"சுமார் 1 மாதம்",in:"சுமார் 1 மாதத்தில்",ago:"சுமார் 1 மாதத்திற்கு முன்பு"},other:{default:"சுமார் {{count}} மாதங்கள்",in:"சுமார் {{count}} மாதங்களில்",ago:"சுமார் {{count}} மாதங்களுக்கு முன்பு"}},xMonths:{one:{default:"1 மாதம்",in:"1 மாதத்தில்",ago:"1 மாதம் முன்பு"},other:{default:"{{count}} மாதங்கள்",in:"{{count}} மாதங்களில்",ago:"{{count}} மாதங்களுக்கு முன்பு"}},aboutXYears:{one:{default:"சுமார் 1 வருடம்",in:"சுமார் 1 ஆண்டில்",ago:"சுமார் 1 வருடம் முன்பு"},other:{default:"சுமார் {{count}} ஆண்டுகள்",in:"சுமார் {{count}} ஆண்டுகளில்",ago:"சுமார் {{count}} ஆண்டுகளுக்கு முன்பு"}},xYears:{one:{default:"1 வருடம்",in:"1 ஆண்டில்",ago:"1 வருடம் முன்பு"},other:{default:"{{count}} ஆண்டுகள்",in:"{{count}} ஆண்டுகளில்",ago:"{{count}} ஆண்டுகளுக்கு முன்பு"}},overXYears:{one:{default:"1 வருடத்திற்கு மேல்",in:"1 வருடத்திற்கும் மேலாக",ago:"1 வருடம் முன்பு"},other:{default:"{{count}} ஆண்டுகளுக்கும் மேலாக",in:"{{count}} ஆண்டுகளில்",ago:"{{count}} ஆண்டுகளுக்கு முன்பு"}},almostXYears:{one:{default:"கிட்டத்தட்ட 1 வருடம்",in:"கிட்டத்தட்ட 1 ஆண்டில்",ago:"கிட்டத்தட்ட 1 வருடம் முன்பு"},other:{default:"கிட்டத்தட்ட {{count}} ஆண்டுகள்",in:"கிட்டத்தட்ட {{count}} ஆண்டுகளில்",ago:"கிட்டத்தட்ட {{count}} ஆண்டுகளுக்கு முன்பு"}}},Ebt=function(t,n,r){var a=r!=null&&r.addSuffix?r.comparison&&r.comparison>0?"in":"ago":"default",i=Sbt[t];return wbt(i)?n===1?i.one[a]:i.other[a].replace("{{count}}",String(n)):i[a]},Tbt={full:"EEEE, d MMMM, y",long:"d MMMM, y",medium:"d MMM, y",short:"d/M/yy"},Cbt={full:"a h:mm:ss zzzz",long:"a h:mm:ss z",medium:"a h:mm:ss",short:"a h:mm"},kbt={full:"{{date}} {{time}}",long:"{{date}} {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},xbt={date:Ne({formats:Tbt,defaultWidth:"full"}),time:Ne({formats:Cbt,defaultWidth:"full"}),dateTime:Ne({formats:kbt,defaultWidth:"full"})},_bt={lastWeek:"'கடந்த' eeee p 'மணிக்கு'",yesterday:"'நேற்று ' p 'மணிக்கு'",today:"'இன்று ' p 'மணிக்கு'",tomorrow:"'நாளை ' p 'மணிக்கு'",nextWeek:"eeee p 'மணிக்கு'",other:"P"},Obt=function(t,n,r,a){return _bt[t]},Rbt={narrow:["கி.மு.","கி.பி."],abbreviated:["கி.மு.","கி.பி."],wide:["கிறிஸ்துவுக்கு முன்","அன்னோ டோமினி"]},Pbt={narrow:["1","2","3","4"],abbreviated:["காலா.1","காலா.2","காலா.3","காலா.4"],wide:["ஒன்றாம் காலாண்டு","இரண்டாம் காலாண்டு","மூன்றாம் காலாண்டு","நான்காம் காலாண்டு"]},Abt={narrow:["ஜ","பி","மா","ஏ","மே","ஜூ","ஜூ","ஆ","செ","அ","ந","டி"],abbreviated:["ஜன.","பிப்.","மார்.","ஏப்.","மே","ஜூன்","ஜூலை","ஆக.","செப்.","அக்.","நவ.","டிச."],wide:["ஜனவரி","பிப்ரவரி","மார்ச்","ஏப்ரல்","மே","ஜூன்","ஜூலை","ஆகஸ்ட்","செப்டம்பர்","அக்டோபர்","நவம்பர்","டிசம்பர்"]},Nbt={narrow:["ஞா","தி","செ","பு","வி","வெ","ச"],short:["ஞா","தி","செ","பு","வி","வெ","ச"],abbreviated:["ஞாயி.","திங்.","செவ்.","புத.","வியா.","வெள்.","சனி"],wide:["ஞாயிறு","திங்கள்","செவ்வாய்","புதன்","வியாழன்","வெள்ளி","சனி"]},Mbt={narrow:{am:"மு.ப",pm:"பி.ப",midnight:"நள்.",noon:"நண்.",morning:"கா.",afternoon:"மதி.",evening:"மா.",night:"இர."},abbreviated:{am:"முற்பகல்",pm:"பிற்பகல்",midnight:"நள்ளிரவு",noon:"நண்பகல்",morning:"காலை",afternoon:"மதியம்",evening:"மாலை",night:"இரவு"},wide:{am:"முற்பகல்",pm:"பிற்பகல்",midnight:"நள்ளிரவு",noon:"நண்பகல்",morning:"காலை",afternoon:"மதியம்",evening:"மாலை",night:"இரவு"}},Ibt={narrow:{am:"மு.ப",pm:"பி.ப",midnight:"நள்.",noon:"நண்.",morning:"கா.",afternoon:"மதி.",evening:"மா.",night:"இர."},abbreviated:{am:"முற்பகல்",pm:"பிற்பகல்",midnight:"நள்ளிரவு",noon:"நண்பகல்",morning:"காலை",afternoon:"மதியம்",evening:"மாலை",night:"இரவு"},wide:{am:"முற்பகல்",pm:"பிற்பகல்",midnight:"நள்ளிரவு",noon:"நண்பகல்",morning:"காலை",afternoon:"மதியம்",evening:"மாலை",night:"இரவு"}},Dbt=function(t,n){return String(t)},$bt={ordinalNumber:Dbt,era:oe({values:Rbt,defaultWidth:"wide"}),quarter:oe({values:Pbt,defaultWidth:"wide",argumentCallback:function(t){return t-1}}),month:oe({values:Abt,defaultWidth:"wide"}),day:oe({values:Nbt,defaultWidth:"wide"}),dayPeriod:oe({values:Mbt,defaultWidth:"wide",formattingValues:Ibt,defaultFormattingWidth:"wide"})},Lbt=/^(\d+)(வது)?/i,Fbt=/\d+/i,jbt={narrow:/^(கி.மு.|கி.பி.)/i,abbreviated:/^(கி\.?\s?மு\.?|கி\.?\s?பி\.?)/,wide:/^(கிறிஸ்துவுக்கு\sமுன்|அன்னோ\sடோமினி)/i},Ubt={any:[/கி\.?\s?மு\.?/,/கி\.?\s?பி\.?/]},Bbt={narrow:/^[1234]/i,abbreviated:/^காலா.[1234]/i,wide:/^(ஒன்றாம்|இரண்டாம்|மூன்றாம்|நான்காம்) காலாண்டு/i},Wbt={narrow:[/1/i,/2/i,/3/i,/4/i],any:[/(1|காலா.1|ஒன்றாம்)/i,/(2|காலா.2|இரண்டாம்)/i,/(3|காலா.3|மூன்றாம்)/i,/(4|காலா.4|நான்காம்)/i]},zbt={narrow:/^(ஜ|பி|மா|ஏ|மே|ஜூ|ஆ|செ|அ|ந|டி)$/i,abbreviated:/^(ஜன.|பிப்.|மார்.|ஏப்.|மே|ஜூன்|ஜூலை|ஆக.|செப்.|அக்.|நவ.|டிச.)/i,wide:/^(ஜனவரி|பிப்ரவரி|மார்ச்|ஏப்ரல்|மே|ஜூன்|ஜூலை|ஆகஸ்ட்|செப்டம்பர்|அக்டோபர்|நவம்பர்|டிசம்பர்)/i},qbt={narrow:[/^ஜ$/i,/^பி/i,/^மா/i,/^ஏ/i,/^மே/i,/^ஜூ/i,/^ஜூ/i,/^ஆ/i,/^செ/i,/^அ/i,/^ந/i,/^டி/i],any:[/^ஜன/i,/^பி/i,/^மா/i,/^ஏ/i,/^மே/i,/^ஜூன்/i,/^ஜூலை/i,/^ஆ/i,/^செ/i,/^அ/i,/^ந/i,/^டி/i]},Hbt={narrow:/^(ஞா|தி|செ|பு|வி|வெ|ச)/i,short:/^(ஞா|தி|செ|பு|வி|வெ|ச)/i,abbreviated:/^(ஞாயி.|திங்.|செவ்.|புத.|வியா.|வெள்.|சனி)/i,wide:/^(ஞாயிறு|திங்கள்|செவ்வாய்|புதன்|வியாழன்|வெள்ளி|சனி)/i},Vbt={narrow:[/^ஞா/i,/^தி/i,/^செ/i,/^பு/i,/^வி/i,/^வெ/i,/^ச/i],any:[/^ஞா/i,/^தி/i,/^செ/i,/^பு/i,/^வி/i,/^வெ/i,/^ச/i]},Gbt={narrow:/^(மு.ப|பி.ப|நள்|நண்|காலை|மதியம்|மாலை|இரவு)/i,any:/^(மு.ப|பி.ப|முற்பகல்|பிற்பகல்|நள்ளிரவு|நண்பகல்|காலை|மதியம்|மாலை|இரவு)/i},Ybt={any:{am:/^மு/i,pm:/^பி/i,midnight:/^நள்/i,noon:/^நண்/i,morning:/காலை/i,afternoon:/மதியம்/i,evening:/மாலை/i,night:/இரவு/i}},Kbt={ordinalNumber:Xt({matchPattern:Lbt,parsePattern:Fbt,valueCallback:function(t){return parseInt(t,10)}}),era:se({matchPatterns:jbt,defaultMatchWidth:"wide",parsePatterns:Ubt,defaultParseWidth:"any"}),quarter:se({matchPatterns:Bbt,defaultMatchWidth:"wide",parsePatterns:Wbt,defaultParseWidth:"any",valueCallback:function(t){return t+1}}),month:se({matchPatterns:zbt,defaultMatchWidth:"wide",parsePatterns:qbt,defaultParseWidth:"any"}),day:se({matchPatterns:Hbt,defaultMatchWidth:"wide",parsePatterns:Vbt,defaultParseWidth:"any"}),dayPeriod:se({matchPatterns:Gbt,defaultMatchWidth:"any",parsePatterns:Ybt,defaultParseWidth:"any"})},Xbt={code:"ta",formatDistance:Ebt,formatLong:xbt,formatRelative:Obt,localize:$bt,match:Kbt,options:{weekStartsOn:1,firstWeekContainsDate:4}};const Qbt=Object.freeze(Object.defineProperty({__proto__:null,default:Xbt},Symbol.toStringTag,{value:"Module"})),Jbt=jt(Qbt);var JG={lessThanXSeconds:{standalone:{one:"సెకను కన్నా తక్కువ",other:"{{count}} సెకన్ల కన్నా తక్కువ"},withPreposition:{one:"సెకను",other:"{{count}} సెకన్ల"}},xSeconds:{standalone:{one:"ఒక సెకను",other:"{{count}} సెకన్ల"},withPreposition:{one:"ఒక సెకను",other:"{{count}} సెకన్ల"}},halfAMinute:{standalone:"అర నిమిషం",withPreposition:"అర నిమిషం"},lessThanXMinutes:{standalone:{one:"ఒక నిమిషం కన్నా తక్కువ",other:"{{count}} నిమిషాల కన్నా తక్కువ"},withPreposition:{one:"ఒక నిమిషం",other:"{{count}} నిమిషాల"}},xMinutes:{standalone:{one:"ఒక నిమిషం",other:"{{count}} నిమిషాలు"},withPreposition:{one:"ఒక నిమిషం",other:"{{count}} నిమిషాల"}},aboutXHours:{standalone:{one:"సుమారు ఒక గంట",other:"సుమారు {{count}} గంటలు"},withPreposition:{one:"సుమారు ఒక గంట",other:"సుమారు {{count}} గంటల"}},xHours:{standalone:{one:"ఒక గంట",other:"{{count}} గంటలు"},withPreposition:{one:"ఒక గంట",other:"{{count}} గంటల"}},xDays:{standalone:{one:"ఒక రోజు",other:"{{count}} రోజులు"},withPreposition:{one:"ఒక రోజు",other:"{{count}} రోజుల"}},aboutXWeeks:{standalone:{one:"సుమారు ఒక వారం",other:"సుమారు {{count}} వారాలు"},withPreposition:{one:"సుమారు ఒక వారం",other:"సుమారు {{count}} వారాలల"}},xWeeks:{standalone:{one:"ఒక వారం",other:"{{count}} వారాలు"},withPreposition:{one:"ఒక వారం",other:"{{count}} వారాలల"}},aboutXMonths:{standalone:{one:"సుమారు ఒక నెల",other:"సుమారు {{count}} నెలలు"},withPreposition:{one:"సుమారు ఒక నెల",other:"సుమారు {{count}} నెలల"}},xMonths:{standalone:{one:"ఒక నెల",other:"{{count}} నెలలు"},withPreposition:{one:"ఒక నెల",other:"{{count}} నెలల"}},aboutXYears:{standalone:{one:"సుమారు ఒక సంవత్సరం",other:"సుమారు {{count}} సంవత్సరాలు"},withPreposition:{one:"సుమారు ఒక సంవత్సరం",other:"సుమారు {{count}} సంవత్సరాల"}},xYears:{standalone:{one:"ఒక సంవత్సరం",other:"{{count}} సంవత్సరాలు"},withPreposition:{one:"ఒక సంవత్సరం",other:"{{count}} సంవత్సరాల"}},overXYears:{standalone:{one:"ఒక సంవత్సరం పైగా",other:"{{count}} సంవత్సరాలకు పైగా"},withPreposition:{one:"ఒక సంవత్సరం",other:"{{count}} సంవత్సరాల"}},almostXYears:{standalone:{one:"దాదాపు ఒక సంవత్సరం",other:"దాదాపు {{count}} సంవత్సరాలు"},withPreposition:{one:"దాదాపు ఒక సంవత్సరం",other:"దాదాపు {{count}} సంవత్సరాల"}}},Zbt=function(t,n,r){var a,i=r!=null&&r.addSuffix?JG[t].withPreposition:JG[t].standalone;return typeof i=="string"?a=i:n===1?a=i.one:a=i.other.replace("{{count}}",String(n)),r!=null&&r.addSuffix?r.comparison&&r.comparison>0?a+"లో":a+" క్రితం":a},e0t={full:"d, MMMM y, EEEE",long:"d MMMM, y",medium:"d MMM, y",short:"dd-MM-yy"},t0t={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},n0t={full:"{{date}} {{time}}'కి'",long:"{{date}} {{time}}'కి'",medium:"{{date}} {{time}}",short:"{{date}} {{time}}"},r0t={date:Ne({formats:e0t,defaultWidth:"full"}),time:Ne({formats:t0t,defaultWidth:"full"}),dateTime:Ne({formats:n0t,defaultWidth:"full"})},a0t={lastWeek:"'గత' eeee p",yesterday:"'నిన్న' p",today:"'ఈ రోజు' p",tomorrow:"'రేపు' p",nextWeek:"'తదుపరి' eeee p",other:"P"},i0t=function(t,n,r,a){return a0t[t]},o0t={narrow:["క్రీ.పూ.","క్రీ.శ."],abbreviated:["క్రీ.పూ.","క్రీ.శ."],wide:["క్రీస్తు పూర్వం","క్రీస్తుశకం"]},s0t={narrow:["1","2","3","4"],abbreviated:["త్రై1","త్రై2","త్రై3","త్రై4"],wide:["1వ త్రైమాసికం","2వ త్రైమాసికం","3వ త్రైమాసికం","4వ త్రైమాసికం"]},l0t={narrow:["జ","ఫి","మా","ఏ","మే","జూ","జు","ఆ","సె","అ","న","డి"],abbreviated:["జన","ఫిబ్ర","మార్చి","ఏప్రి","మే","జూన్","జులై","ఆగ","సెప్టెం","అక్టో","నవం","డిసెం"],wide:["జనవరి","ఫిబ్రవరి","మార్చి","ఏప్రిల్","మే","జూన్","జులై","ఆగస్టు","సెప్టెంబర్","అక్టోబర్","నవంబర్","డిసెంబర్"]},u0t={narrow:["ఆ","సో","మ","బు","గు","శు","శ"],short:["ఆది","సోమ","మంగళ","బుధ","గురు","శుక్ర","శని"],abbreviated:["ఆది","సోమ","మంగళ","బుధ","గురు","శుక్ర","శని"],wide:["ఆదివారం","సోమవారం","మంగళవారం","బుధవారం","గురువారం","శుక్రవారం","శనివారం"]},c0t={narrow:{am:"పూర్వాహ్నం",pm:"అపరాహ్నం",midnight:"అర్ధరాత్రి",noon:"మిట్టమధ్యాహ్నం",morning:"ఉదయం",afternoon:"మధ్యాహ్నం",evening:"సాయంత్రం",night:"రాత్రి"},abbreviated:{am:"పూర్వాహ్నం",pm:"అపరాహ్నం",midnight:"అర్ధరాత్రి",noon:"మిట్టమధ్యాహ్నం",morning:"ఉదయం",afternoon:"మధ్యాహ్నం",evening:"సాయంత్రం",night:"రాత్రి"},wide:{am:"పూర్వాహ్నం",pm:"అపరాహ్నం",midnight:"అర్ధరాత్రి",noon:"మిట్టమధ్యాహ్నం",morning:"ఉదయం",afternoon:"మధ్యాహ్నం",evening:"సాయంత్రం",night:"రాత్రి"}},d0t={narrow:{am:"పూర్వాహ్నం",pm:"అపరాహ్నం",midnight:"అర్ధరాత్రి",noon:"మిట్టమధ్యాహ్నం",morning:"ఉదయం",afternoon:"మధ్యాహ్నం",evening:"సాయంత్రం",night:"రాత్రి"},abbreviated:{am:"పూర్వాహ్నం",pm:"అపరాహ్నం",midnight:"అర్ధరాత్రి",noon:"మిట్టమధ్యాహ్నం",morning:"ఉదయం",afternoon:"మధ్యాహ్నం",evening:"సాయంత్రం",night:"రాత్రి"},wide:{am:"పూర్వాహ్నం",pm:"అపరాహ్నం",midnight:"అర్ధరాత్రి",noon:"మిట్టమధ్యాహ్నం",morning:"ఉదయం",afternoon:"మధ్యాహ్నం",evening:"సాయంత్రం",night:"రాత్రి"}},f0t=function(t,n){var r=Number(t);return r+"వ"},p0t={ordinalNumber:f0t,era:oe({values:o0t,defaultWidth:"wide"}),quarter:oe({values:s0t,defaultWidth:"wide",argumentCallback:function(t){return t-1}}),month:oe({values:l0t,defaultWidth:"wide"}),day:oe({values:u0t,defaultWidth:"wide"}),dayPeriod:oe({values:c0t,defaultWidth:"wide",formattingValues:d0t,defaultFormattingWidth:"wide"})},h0t=/^(\d+)(వ)?/i,m0t=/\d+/i,g0t={narrow:/^(క్రీ\.పూ\.|క్రీ\.శ\.)/i,abbreviated:/^(క్రీ\.?\s?పూ\.?|ప్ర\.?\s?శ\.?\s?పూ\.?|క్రీ\.?\s?శ\.?|సా\.?\s?శ\.?)/i,wide:/^(క్రీస్తు పూర్వం|ప్రస్తుత శకానికి పూర్వం|క్రీస్తు శకం|ప్రస్తుత శకం)/i},v0t={any:[/^(పూ|శ)/i,/^సా/i]},y0t={narrow:/^[1234]/i,abbreviated:/^త్రై[1234]/i,wide:/^[1234](వ)? త్రైమాసికం/i},b0t={any:[/1/i,/2/i,/3/i,/4/i]},w0t={narrow:/^(జూ|జు|జ|ఫి|మా|ఏ|మే|ఆ|సె|అ|న|డి)/i,abbreviated:/^(జన|ఫిబ్ర|మార్చి|ఏప్రి|మే|జూన్|జులై|ఆగ|సెప్|అక్టో|నవ|డిసె)/i,wide:/^(జనవరి|ఫిబ్రవరి|మార్చి|ఏప్రిల్|మే|జూన్|జులై|ఆగస్టు|సెప్టెంబర్|అక్టోబర్|నవంబర్|డిసెంబర్)/i},S0t={narrow:[/^జ/i,/^ఫి/i,/^మా/i,/^ఏ/i,/^మే/i,/^జూ/i,/^జు/i,/^ఆ/i,/^సె/i,/^అ/i,/^న/i,/^డి/i],any:[/^జన/i,/^ఫి/i,/^మా/i,/^ఏ/i,/^మే/i,/^జూన్/i,/^జులై/i,/^ఆగ/i,/^సె/i,/^అ/i,/^న/i,/^డి/i]},E0t={narrow:/^(ఆ|సో|మ|బు|గు|శు|శ)/i,short:/^(ఆది|సోమ|మం|బుధ|గురు|శుక్ర|శని)/i,abbreviated:/^(ఆది|సోమ|మం|బుధ|గురు|శుక్ర|శని)/i,wide:/^(ఆదివారం|సోమవారం|మంగళవారం|బుధవారం|గురువారం|శుక్రవారం|శనివారం)/i},T0t={narrow:[/^ఆ/i,/^సో/i,/^మ/i,/^బు/i,/^గు/i,/^శు/i,/^శ/i],any:[/^ఆది/i,/^సోమ/i,/^మం/i,/^బుధ/i,/^గురు/i,/^శుక్ర/i,/^శని/i]},C0t={narrow:/^(పూర్వాహ్నం|అపరాహ్నం|అర్ధరాత్రి|మిట్టమధ్యాహ్నం|ఉదయం|మధ్యాహ్నం|సాయంత్రం|రాత్రి)/i,any:/^(పూర్వాహ్నం|అపరాహ్నం|అర్ధరాత్రి|మిట్టమధ్యాహ్నం|ఉదయం|మధ్యాహ్నం|సాయంత్రం|రాత్రి)/i},k0t={any:{am:/^పూర్వాహ్నం/i,pm:/^అపరాహ్నం/i,midnight:/^అర్ధ/i,noon:/^మిట్ట/i,morning:/ఉదయం/i,afternoon:/మధ్యాహ్నం/i,evening:/సాయంత్రం/i,night:/రాత్రి/i}},x0t={ordinalNumber:Xt({matchPattern:h0t,parsePattern:m0t,valueCallback:function(t){return parseInt(t,10)}}),era:se({matchPatterns:g0t,defaultMatchWidth:"wide",parsePatterns:v0t,defaultParseWidth:"any"}),quarter:se({matchPatterns:y0t,defaultMatchWidth:"wide",parsePatterns:b0t,defaultParseWidth:"any",valueCallback:function(t){return t+1}}),month:se({matchPatterns:w0t,defaultMatchWidth:"wide",parsePatterns:S0t,defaultParseWidth:"any"}),day:se({matchPatterns:E0t,defaultMatchWidth:"wide",parsePatterns:T0t,defaultParseWidth:"any"}),dayPeriod:se({matchPatterns:C0t,defaultMatchWidth:"any",parsePatterns:k0t,defaultParseWidth:"any"})},_0t={code:"te",formatDistance:Zbt,formatLong:r0t,formatRelative:i0t,localize:p0t,match:x0t,options:{weekStartsOn:0,firstWeekContainsDate:1}};const O0t=Object.freeze(Object.defineProperty({__proto__:null,default:_0t},Symbol.toStringTag,{value:"Module"})),R0t=jt(O0t);var P0t={lessThanXSeconds:{one:"น้อยกว่า 1 วินาที",other:"น้อยกว่า {{count}} วินาที"},xSeconds:{one:"1 วินาที",other:"{{count}} วินาที"},halfAMinute:"ครึ่งนาที",lessThanXMinutes:{one:"น้อยกว่า 1 นาที",other:"น้อยกว่า {{count}} นาที"},xMinutes:{one:"1 นาที",other:"{{count}} นาที"},aboutXHours:{one:"ประมาณ 1 ชั่วโมง",other:"ประมาณ {{count}} ชั่วโมง"},xHours:{one:"1 ชั่วโมง",other:"{{count}} ชั่วโมง"},xDays:{one:"1 วัน",other:"{{count}} วัน"},aboutXWeeks:{one:"ประมาณ 1 สัปดาห์",other:"ประมาณ {{count}} สัปดาห์"},xWeeks:{one:"1 สัปดาห์",other:"{{count}} สัปดาห์"},aboutXMonths:{one:"ประมาณ 1 เดือน",other:"ประมาณ {{count}} เดือน"},xMonths:{one:"1 เดือน",other:"{{count}} เดือน"},aboutXYears:{one:"ประมาณ 1 ปี",other:"ประมาณ {{count}} ปี"},xYears:{one:"1 ปี",other:"{{count}} ปี"},overXYears:{one:"มากกว่า 1 ปี",other:"มากกว่า {{count}} ปี"},almostXYears:{one:"เกือบ 1 ปี",other:"เกือบ {{count}} ปี"}},A0t=function(t,n,r){var a,i=P0t[t];return typeof i=="string"?a=i:n===1?a=i.one:a=i.other.replace("{{count}}",String(n)),r!=null&&r.addSuffix?r.comparison&&r.comparison>0?t==="halfAMinute"?"ใน"+a:"ใน "+a:a+"ที่ผ่านมา":a},N0t={full:"วันEEEEที่ do MMMM y",long:"do MMMM y",medium:"d MMM y",short:"dd/MM/yyyy"},M0t={full:"H:mm:ss น. zzzz",long:"H:mm:ss น. z",medium:"H:mm:ss น.",short:"H:mm น."},I0t={full:"{{date}} 'เวลา' {{time}}",long:"{{date}} 'เวลา' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},D0t={date:Ne({formats:N0t,defaultWidth:"full"}),time:Ne({formats:M0t,defaultWidth:"medium"}),dateTime:Ne({formats:I0t,defaultWidth:"full"})},$0t={lastWeek:"eeee'ที่แล้วเวลา' p",yesterday:"'เมื่อวานนี้เวลา' p",today:"'วันนี้เวลา' p",tomorrow:"'พรุ่งนี้เวลา' p",nextWeek:"eeee 'เวลา' p",other:"P"},L0t=function(t,n,r,a){return $0t[t]},F0t={narrow:["B","คศ"],abbreviated:["BC","ค.ศ."],wide:["ปีก่อนคริสตกาล","คริสต์ศักราช"]},j0t={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["ไตรมาสแรก","ไตรมาสที่สอง","ไตรมาสที่สาม","ไตรมาสที่สี่"]},U0t={narrow:["อา.","จ.","อ.","พ.","พฤ.","ศ.","ส."],short:["อา.","จ.","อ.","พ.","พฤ.","ศ.","ส."],abbreviated:["อา.","จ.","อ.","พ.","พฤ.","ศ.","ส."],wide:["อาทิตย์","จันทร์","อังคาร","พุธ","พฤหัสบดี","ศุกร์","เสาร์"]},B0t={narrow:["ม.ค.","ก.พ.","มี.ค.","เม.ย.","พ.ค.","มิ.ย.","ก.ค.","ส.ค.","ก.ย.","ต.ค.","พ.ย.","ธ.ค."],abbreviated:["ม.ค.","ก.พ.","มี.ค.","เม.ย.","พ.ค.","มิ.ย.","ก.ค.","ส.ค.","ก.ย.","ต.ค.","พ.ย.","ธ.ค."],wide:["มกราคม","กุมภาพันธ์","มีนาคม","เมษายน","พฤษภาคม","มิถุนายน","กรกฎาคม","สิงหาคม","กันยายน","ตุลาคม","พฤศจิกายน","ธันวาคม"]},W0t={narrow:{am:"ก่อนเที่ยง",pm:"หลังเที่ยง",midnight:"เที่ยงคืน",noon:"เที่ยง",morning:"เช้า",afternoon:"บ่าย",evening:"เย็น",night:"กลางคืน"},abbreviated:{am:"ก่อนเที่ยง",pm:"หลังเที่ยง",midnight:"เที่ยงคืน",noon:"เที่ยง",morning:"เช้า",afternoon:"บ่าย",evening:"เย็น",night:"กลางคืน"},wide:{am:"ก่อนเที่ยง",pm:"หลังเที่ยง",midnight:"เที่ยงคืน",noon:"เที่ยง",morning:"เช้า",afternoon:"บ่าย",evening:"เย็น",night:"กลางคืน"}},z0t={narrow:{am:"ก่อนเที่ยง",pm:"หลังเที่ยง",midnight:"เที่ยงคืน",noon:"เที่ยง",morning:"ตอนเช้า",afternoon:"ตอนกลางวัน",evening:"ตอนเย็น",night:"ตอนกลางคืน"},abbreviated:{am:"ก่อนเที่ยง",pm:"หลังเที่ยง",midnight:"เที่ยงคืน",noon:"เที่ยง",morning:"ตอนเช้า",afternoon:"ตอนกลางวัน",evening:"ตอนเย็น",night:"ตอนกลางคืน"},wide:{am:"ก่อนเที่ยง",pm:"หลังเที่ยง",midnight:"เที่ยงคืน",noon:"เที่ยง",morning:"ตอนเช้า",afternoon:"ตอนกลางวัน",evening:"ตอนเย็น",night:"ตอนกลางคืน"}},q0t=function(t,n){return String(t)},H0t={ordinalNumber:q0t,era:oe({values:F0t,defaultWidth:"wide"}),quarter:oe({values:j0t,defaultWidth:"wide",argumentCallback:function(t){return t-1}}),month:oe({values:B0t,defaultWidth:"wide"}),day:oe({values:U0t,defaultWidth:"wide"}),dayPeriod:oe({values:W0t,defaultWidth:"wide",formattingValues:z0t,defaultFormattingWidth:"wide"})},V0t=/^\d+/i,G0t=/\d+/i,Y0t={narrow:/^([bB]|[aA]|คศ)/i,abbreviated:/^([bB]\.?\s?[cC]\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?|ค\.?ศ\.?)/i,wide:/^(ก่อนคริสตกาล|คริสต์ศักราช|คริสตกาล)/i},K0t={any:[/^[bB]/i,/^(^[aA]|ค\.?ศ\.?|คริสตกาล|คริสต์ศักราช|)/i]},X0t={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^ไตรมาส(ที่)? ?[1234]/i},Q0t={any:[/(1|แรก|หนึ่ง)/i,/(2|สอง)/i,/(3|สาม)/i,/(4|สี่)/i]},J0t={narrow:/^(ม\.?ค\.?|ก\.?พ\.?|มี\.?ค\.?|เม\.?ย\.?|พ\.?ค\.?|มิ\.?ย\.?|ก\.?ค\.?|ส\.?ค\.?|ก\.?ย\.?|ต\.?ค\.?|พ\.?ย\.?|ธ\.?ค\.?)/i,abbreviated:/^(ม\.?ค\.?|ก\.?พ\.?|มี\.?ค\.?|เม\.?ย\.?|พ\.?ค\.?|มิ\.?ย\.?|ก\.?ค\.?|ส\.?ค\.?|ก\.?ย\.?|ต\.?ค\.?|พ\.?ย\.?|ธ\.?ค\.?')/i,wide:/^(มกราคม|กุมภาพันธ์|มีนาคม|เมษายน|พฤษภาคม|มิถุนายน|กรกฎาคม|สิงหาคม|กันยายน|ตุลาคม|พฤศจิกายน|ธันวาคม)/i},Z0t={wide:[/^มก/i,/^กุม/i,/^มี/i,/^เม/i,/^พฤษ/i,/^มิ/i,/^กรก/i,/^ส/i,/^กัน/i,/^ต/i,/^พฤศ/i,/^ธ/i],any:[/^ม\.?ค\.?/i,/^ก\.?พ\.?/i,/^มี\.?ค\.?/i,/^เม\.?ย\.?/i,/^พ\.?ค\.?/i,/^มิ\.?ย\.?/i,/^ก\.?ค\.?/i,/^ส\.?ค\.?/i,/^ก\.?ย\.?/i,/^ต\.?ค\.?/i,/^พ\.?ย\.?/i,/^ธ\.?ค\.?/i]},ewt={narrow:/^(อา\.?|จ\.?|อ\.?|พฤ\.?|พ\.?|ศ\.?|ส\.?)/i,short:/^(อา\.?|จ\.?|อ\.?|พฤ\.?|พ\.?|ศ\.?|ส\.?)/i,abbreviated:/^(อา\.?|จ\.?|อ\.?|พฤ\.?|พ\.?|ศ\.?|ส\.?)/i,wide:/^(อาทิตย์|จันทร์|อังคาร|พุธ|พฤหัสบดี|ศุกร์|เสาร์)/i},twt={wide:[/^อา/i,/^จั/i,/^อั/i,/^พุธ/i,/^พฤ/i,/^ศ/i,/^เส/i],any:[/^อา/i,/^จ/i,/^อ/i,/^พ(?!ฤ)/i,/^พฤ/i,/^ศ/i,/^ส/i]},nwt={any:/^(ก่อนเที่ยง|หลังเที่ยง|เที่ยงคืน|เที่ยง|(ตอน.*?)?.*(เที่ยง|เช้า|บ่าย|เย็น|กลางคืน))/i},rwt={any:{am:/^ก่อนเที่ยง/i,pm:/^หลังเที่ยง/i,midnight:/^เที่ยงคืน/i,noon:/^เที่ยง/i,morning:/เช้า/i,afternoon:/บ่าย/i,evening:/เย็น/i,night:/กลางคืน/i}},awt={ordinalNumber:Xt({matchPattern:V0t,parsePattern:G0t,valueCallback:function(t){return parseInt(t,10)}}),era:se({matchPatterns:Y0t,defaultMatchWidth:"wide",parsePatterns:K0t,defaultParseWidth:"any"}),quarter:se({matchPatterns:X0t,defaultMatchWidth:"wide",parsePatterns:Q0t,defaultParseWidth:"any",valueCallback:function(t){return t+1}}),month:se({matchPatterns:J0t,defaultMatchWidth:"wide",parsePatterns:Z0t,defaultParseWidth:"any"}),day:se({matchPatterns:ewt,defaultMatchWidth:"wide",parsePatterns:twt,defaultParseWidth:"any"}),dayPeriod:se({matchPatterns:nwt,defaultMatchWidth:"any",parsePatterns:rwt,defaultParseWidth:"any"})},iwt={code:"th",formatDistance:A0t,formatLong:D0t,formatRelative:L0t,localize:H0t,match:awt,options:{weekStartsOn:0,firstWeekContainsDate:1}};const owt=Object.freeze(Object.defineProperty({__proto__:null,default:iwt},Symbol.toStringTag,{value:"Module"})),swt=jt(owt);var lwt={lessThanXSeconds:{one:"bir saniyeden az",other:"{{count}} saniyeden az"},xSeconds:{one:"1 saniye",other:"{{count}} saniye"},halfAMinute:"yarım dakika",lessThanXMinutes:{one:"bir dakikadan az",other:"{{count}} dakikadan az"},xMinutes:{one:"1 dakika",other:"{{count}} dakika"},aboutXHours:{one:"yaklaşık 1 saat",other:"yaklaşık {{count}} saat"},xHours:{one:"1 saat",other:"{{count}} saat"},xDays:{one:"1 gün",other:"{{count}} gün"},aboutXWeeks:{one:"yaklaşık 1 hafta",other:"yaklaşık {{count}} hafta"},xWeeks:{one:"1 hafta",other:"{{count}} hafta"},aboutXMonths:{one:"yaklaşık 1 ay",other:"yaklaşık {{count}} ay"},xMonths:{one:"1 ay",other:"{{count}} ay"},aboutXYears:{one:"yaklaşık 1 yıl",other:"yaklaşık {{count}} yıl"},xYears:{one:"1 yıl",other:"{{count}} yıl"},overXYears:{one:"1 yıldan fazla",other:"{{count}} yıldan fazla"},almostXYears:{one:"neredeyse 1 yıl",other:"neredeyse {{count}} yıl"}},uwt=function(t,n,r){var a,i=lwt[t];return typeof i=="string"?a=i:n===1?a=i.one:a=i.other.replace("{{count}}",n.toString()),r!=null&&r.addSuffix?r.comparison&&r.comparison>0?a+" sonra":a+" önce":a},cwt={full:"d MMMM y EEEE",long:"d MMMM y",medium:"d MMM y",short:"dd.MM.yyyy"},dwt={full:"HH:mm:ss zzzz",long:"HH:mm:ss z",medium:"HH:mm:ss",short:"HH:mm"},fwt={full:"{{date}} 'saat' {{time}}",long:"{{date}} 'saat' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},pwt={date:Ne({formats:cwt,defaultWidth:"full"}),time:Ne({formats:dwt,defaultWidth:"full"}),dateTime:Ne({formats:fwt,defaultWidth:"full"})},hwt={lastWeek:"'geçen hafta' eeee 'saat' p",yesterday:"'dün saat' p",today:"'bugün saat' p",tomorrow:"'yarın saat' p",nextWeek:"eeee 'saat' p",other:"P"},mwt=function(t,n,r,a){return hwt[t]},gwt={narrow:["MÖ","MS"],abbreviated:["MÖ","MS"],wide:["Milattan Önce","Milattan Sonra"]},vwt={narrow:["1","2","3","4"],abbreviated:["1Ç","2Ç","3Ç","4Ç"],wide:["İlk çeyrek","İkinci Çeyrek","Üçüncü çeyrek","Son çeyrek"]},ywt={narrow:["O","Ş","M","N","M","H","T","A","E","E","K","A"],abbreviated:["Oca","Şub","Mar","Nis","May","Haz","Tem","Ağu","Eyl","Eki","Kas","Ara"],wide:["Ocak","Şubat","Mart","Nisan","Mayıs","Haziran","Temmuz","Ağustos","Eylül","Ekim","Kasım","Aralık"]},bwt={narrow:["P","P","S","Ç","P","C","C"],short:["Pz","Pt","Sa","Ça","Pe","Cu","Ct"],abbreviated:["Paz","Pzt","Sal","Çar","Per","Cum","Cts"],wide:["Pazar","Pazartesi","Salı","Çarşamba","Perşembe","Cuma","Cumartesi"]},wwt={narrow:{am:"öö",pm:"ös",midnight:"gy",noon:"ö",morning:"sa",afternoon:"ös",evening:"ak",night:"ge"},abbreviated:{am:"ÖÖ",pm:"ÖS",midnight:"gece yarısı",noon:"öğle",morning:"sabah",afternoon:"öğleden sonra",evening:"akşam",night:"gece"},wide:{am:"Ö.Ö.",pm:"Ö.S.",midnight:"gece yarısı",noon:"öğle",morning:"sabah",afternoon:"öğleden sonra",evening:"akşam",night:"gece"}},Swt={narrow:{am:"öö",pm:"ös",midnight:"gy",noon:"ö",morning:"sa",afternoon:"ös",evening:"ak",night:"ge"},abbreviated:{am:"ÖÖ",pm:"ÖS",midnight:"gece yarısı",noon:"öğlen",morning:"sabahleyin",afternoon:"öğleden sonra",evening:"akşamleyin",night:"geceleyin"},wide:{am:"ö.ö.",pm:"ö.s.",midnight:"gece yarısı",noon:"öğlen",morning:"sabahleyin",afternoon:"öğleden sonra",evening:"akşamleyin",night:"geceleyin"}},Ewt=function(t,n){var r=Number(t);return r+"."},Twt={ordinalNumber:Ewt,era:oe({values:gwt,defaultWidth:"wide"}),quarter:oe({values:vwt,defaultWidth:"wide",argumentCallback:function(t){return Number(t)-1}}),month:oe({values:ywt,defaultWidth:"wide"}),day:oe({values:bwt,defaultWidth:"wide"}),dayPeriod:oe({values:wwt,defaultWidth:"wide",formattingValues:Swt,defaultFormattingWidth:"wide"})},Cwt=/^(\d+)(\.)?/i,kwt=/\d+/i,xwt={narrow:/^(mö|ms)/i,abbreviated:/^(mö|ms)/i,wide:/^(milattan önce|milattan sonra)/i},_wt={any:[/(^mö|^milattan önce)/i,/(^ms|^milattan sonra)/i]},Owt={narrow:/^[1234]/i,abbreviated:/^[1234]ç/i,wide:/^((i|İ)lk|(i|İ)kinci|üçüncü|son) çeyrek/i},Rwt={any:[/1/i,/2/i,/3/i,/4/i],abbreviated:[/1ç/i,/2ç/i,/3ç/i,/4ç/i],wide:[/^(i|İ)lk çeyrek/i,/(i|İ)kinci çeyrek/i,/üçüncü çeyrek/i,/son çeyrek/i]},Pwt={narrow:/^[oşmnhtaek]/i,abbreviated:/^(oca|şub|mar|nis|may|haz|tem|ağu|eyl|eki|kas|ara)/i,wide:/^(ocak|şubat|mart|nisan|mayıs|haziran|temmuz|ağustos|eylül|ekim|kasım|aralık)/i},Awt={narrow:[/^o/i,/^ş/i,/^m/i,/^n/i,/^m/i,/^h/i,/^t/i,/^a/i,/^e/i,/^e/i,/^k/i,/^a/i],any:[/^o/i,/^ş/i,/^mar/i,/^n/i,/^may/i,/^h/i,/^t/i,/^ağ/i,/^ey/i,/^ek/i,/^k/i,/^ar/i]},Nwt={narrow:/^[psçc]/i,short:/^(pz|pt|sa|ça|pe|cu|ct)/i,abbreviated:/^(paz|pzt|sal|çar|per|cum|cts)/i,wide:/^(pazar(?!tesi)|pazartesi|salı|çarşamba|perşembe|cuma(?!rtesi)|cumartesi)/i},Mwt={narrow:[/^p/i,/^p/i,/^s/i,/^ç/i,/^p/i,/^c/i,/^c/i],any:[/^pz/i,/^pt/i,/^sa/i,/^ça/i,/^pe/i,/^cu/i,/^ct/i],wide:[/^pazar(?!tesi)/i,/^pazartesi/i,/^salı/i,/^çarşamba/i,/^perşembe/i,/^cuma(?!rtesi)/i,/^cumartesi/i]},Iwt={narrow:/^(öö|ös|gy|ö|sa|ös|ak|ge)/i,any:/^(ö\.?\s?[ös]\.?|öğleden sonra|gece yarısı|öğle|(sabah|öğ|akşam|gece)(leyin))/i},Dwt={any:{am:/^ö\.?ö\.?/i,pm:/^ö\.?s\.?/i,midnight:/^(gy|gece yarısı)/i,noon:/^öğ/i,morning:/^sa/i,afternoon:/^öğleden sonra/i,evening:/^ak/i,night:/^ge/i}},$wt={ordinalNumber:Xt({matchPattern:Cwt,parsePattern:kwt,valueCallback:function(t){return parseInt(t,10)}}),era:se({matchPatterns:xwt,defaultMatchWidth:"wide",parsePatterns:_wt,defaultParseWidth:"any"}),quarter:se({matchPatterns:Owt,defaultMatchWidth:"wide",parsePatterns:Rwt,defaultParseWidth:"any",valueCallback:function(t){return t+1}}),month:se({matchPatterns:Pwt,defaultMatchWidth:"wide",parsePatterns:Awt,defaultParseWidth:"any"}),day:se({matchPatterns:Nwt,defaultMatchWidth:"wide",parsePatterns:Mwt,defaultParseWidth:"any"}),dayPeriod:se({matchPatterns:Iwt,defaultMatchWidth:"any",parsePatterns:Dwt,defaultParseWidth:"any"})},Lwt={code:"tr",formatDistance:uwt,formatLong:pwt,formatRelative:mwt,localize:Twt,match:$wt,options:{weekStartsOn:1,firstWeekContainsDate:1}};const Fwt=Object.freeze(Object.defineProperty({__proto__:null,default:Lwt},Symbol.toStringTag,{value:"Module"})),jwt=jt(Fwt);var Uwt={lessThanXSeconds:{one:"بىر سىكۇنت ئىچىدە",other:"سىكۇنت ئىچىدە {{count}}"},xSeconds:{one:"بىر سىكۇنت",other:"سىكۇنت {{count}}"},halfAMinute:"يىرىم مىنۇت",lessThanXMinutes:{one:"بىر مىنۇت ئىچىدە",other:"مىنۇت ئىچىدە {{count}}"},xMinutes:{one:"بىر مىنۇت",other:"مىنۇت {{count}}"},aboutXHours:{one:"تەخمىنەن بىر سائەت",other:"سائەت {{count}} تەخمىنەن"},xHours:{one:"بىر سائەت",other:"سائەت {{count}}"},xDays:{one:"بىر كۈن",other:"كۈن {{count}}"},aboutXWeeks:{one:"تەخمىنەن بىرھەپتە",other:"ھەپتە {{count}} تەخمىنەن"},xWeeks:{one:"بىرھەپتە",other:"ھەپتە {{count}}"},aboutXMonths:{one:"تەخمىنەن بىر ئاي",other:"ئاي {{count}} تەخمىنەن"},xMonths:{one:"بىر ئاي",other:"ئاي {{count}}"},aboutXYears:{one:"تەخمىنەن بىر يىل",other:"يىل {{count}} تەخمىنەن"},xYears:{one:"بىر يىل",other:"يىل {{count}}"},overXYears:{one:"بىر يىلدىن ئارتۇق",other:"يىلدىن ئارتۇق {{count}}"},almostXYears:{one:"ئاساسەن بىر يىل",other:"يىل {{count}} ئاساسەن"}},Bwt=function(t,n,r){var a,i=Uwt[t];return typeof i=="string"?a=i:n===1?a=i.one:a=i.other.replace("{{count}}",String(n)),r!=null&&r.addSuffix?r.comparison&&r.comparison>0?a:a+" بولدى":a},Wwt={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},zwt={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},qwt={full:"{{date}} 'دە' {{time}}",long:"{{date}} 'دە' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},Hwt={date:Ne({formats:Wwt,defaultWidth:"full"}),time:Ne({formats:zwt,defaultWidth:"full"}),dateTime:Ne({formats:qwt,defaultWidth:"full"})},Vwt={lastWeek:"'ئ‍ۆتكەن' eeee 'دە' p",yesterday:"'تۈنۈگۈن دە' p",today:"'بۈگۈن دە' p",tomorrow:"'ئەتە دە' p",nextWeek:"eeee 'دە' p",other:"P"},Gwt=function(t,n,r,a){return Vwt[t]},Ywt={narrow:["ب","ك"],abbreviated:["ب","ك"],wide:["مىيلادىدىن بۇرۇن","مىيلادىدىن كىيىن"]},Kwt={narrow:["1","2","3","4"],abbreviated:["1","2","3","4"],wide:["بىرىنجى چارەك","ئىككىنجى چارەك","ئۈچىنجى چارەك","تۆتىنجى چارەك"]},Xwt={narrow:["ي","ف","م","ا","م","ى","ى","ا","س","ۆ","ن","د"],abbreviated:["يانۋار","فېۋىرال","مارت","ئاپرىل","ماي","ئىيۇن","ئىيول","ئاۋغۇست","سىنتەبىر","ئۆكتەبىر","نويابىر","دىكابىر"],wide:["يانۋار","فېۋىرال","مارت","ئاپرىل","ماي","ئىيۇن","ئىيول","ئاۋغۇست","سىنتەبىر","ئۆكتەبىر","نويابىر","دىكابىر"]},Qwt={narrow:["ي","د","س","چ","پ","ج","ش"],short:["ي","د","س","چ","پ","ج","ش"],abbreviated:["يەكشەنبە","دۈشەنبە","سەيشەنبە","چارشەنبە","پەيشەنبە","جۈمە","شەنبە"],wide:["يەكشەنبە","دۈشەنبە","سەيشەنبە","چارشەنبە","پەيشەنبە","جۈمە","شەنبە"]},Jwt={narrow:{am:"ئە",pm:"چ",midnight:"ك",noon:"چ",morning:"ئەتىگەن",afternoon:"چۈشتىن كىيىن",evening:"ئاخشىم",night:"كىچە"},abbreviated:{am:"ئە",pm:"چ",midnight:"ك",noon:"چ",morning:"ئەتىگەن",afternoon:"چۈشتىن كىيىن",evening:"ئاخشىم",night:"كىچە"},wide:{am:"ئە",pm:"چ",midnight:"ك",noon:"چ",morning:"ئەتىگەن",afternoon:"چۈشتىن كىيىن",evening:"ئاخشىم",night:"كىچە"}},Zwt={narrow:{am:"ئە",pm:"چ",midnight:"ك",noon:"چ",morning:"ئەتىگەندە",afternoon:"چۈشتىن كىيىن",evening:"ئاخشامدا",night:"كىچىدە"},abbreviated:{am:"ئە",pm:"چ",midnight:"ك",noon:"چ",morning:"ئەتىگەندە",afternoon:"چۈشتىن كىيىن",evening:"ئاخشامدا",night:"كىچىدە"},wide:{am:"ئە",pm:"چ",midnight:"ك",noon:"چ",morning:"ئەتىگەندە",afternoon:"چۈشتىن كىيىن",evening:"ئاخشامدا",night:"كىچىدە"}},e1t=function(t,n){return String(t)},t1t={ordinalNumber:e1t,era:oe({values:Ywt,defaultWidth:"wide"}),quarter:oe({values:Kwt,defaultWidth:"wide",argumentCallback:function(t){return t-1}}),month:oe({values:Xwt,defaultWidth:"wide"}),day:oe({values:Qwt,defaultWidth:"wide"}),dayPeriod:oe({values:Jwt,defaultWidth:"wide",formattingValues:Zwt,defaultFormattingWidth:"wide"})},n1t=/^(\d+)(th|st|nd|rd)?/i,r1t=/\d+/i,a1t={narrow:/^(ب|ك)/i,wide:/^(مىيلادىدىن بۇرۇن|مىيلادىدىن كىيىن)/i},i1t={any:[/^بۇرۇن/i,/^كىيىن/i]},o1t={narrow:/^[1234]/i,abbreviated:/^چ[1234]/i,wide:/^چارەك [1234]/i},s1t={any:[/1/i,/2/i,/3/i,/4/i]},l1t={narrow:/^[يفمئامئ‍ئاسۆند]/i,abbreviated:/^(يانۋار|فېۋىرال|مارت|ئاپرىل|ماي|ئىيۇن|ئىيول|ئاۋغۇست|سىنتەبىر|ئۆكتەبىر|نويابىر|دىكابىر)/i,wide:/^(يانۋار|فېۋىرال|مارت|ئاپرىل|ماي|ئىيۇن|ئىيول|ئاۋغۇست|سىنتەبىر|ئۆكتەبىر|نويابىر|دىكابىر)/i},u1t={narrow:[/^ي/i,/^ف/i,/^م/i,/^ا/i,/^م/i,/^ى‍/i,/^ى‍/i,/^ا‍/i,/^س/i,/^ۆ/i,/^ن/i,/^د/i],any:[/^يان/i,/^فېۋ/i,/^مار/i,/^ئاپ/i,/^ماي/i,/^ئىيۇن/i,/^ئىيول/i,/^ئاۋ/i,/^سىن/i,/^ئۆك/i,/^نوي/i,/^دىك/i]},c1t={narrow:/^[دسچپجشي]/i,short:/^(يە|دۈ|سە|چا|پە|جۈ|شە)/i,abbreviated:/^(يە|دۈ|سە|چا|پە|جۈ|شە)/i,wide:/^(يەكشەنبە|دۈشەنبە|سەيشەنبە|چارشەنبە|پەيشەنبە|جۈمە|شەنبە)/i},d1t={narrow:[/^ي/i,/^د/i,/^س/i,/^چ/i,/^پ/i,/^ج/i,/^ش/i],any:[/^ي/i,/^د/i,/^س/i,/^چ/i,/^پ/i,/^ج/i,/^ش/i]},f1t={narrow:/^(ئە|چ|ك|چ|(دە|ئەتىگەن) ( ئە‍|چۈشتىن كىيىن|ئاخشىم|كىچە))/i,any:/^(ئە|چ|ك|چ|(دە|ئەتىگەن) ( ئە‍|چۈشتىن كىيىن|ئاخشىم|كىچە))/i},p1t={any:{am:/^ئە/i,pm:/^چ/i,midnight:/^ك/i,noon:/^چ/i,morning:/ئەتىگەن/i,afternoon:/چۈشتىن كىيىن/i,evening:/ئاخشىم/i,night:/كىچە/i}},h1t={ordinalNumber:Xt({matchPattern:n1t,parsePattern:r1t,valueCallback:function(t){return parseInt(t,10)}}),era:se({matchPatterns:a1t,defaultMatchWidth:"wide",parsePatterns:i1t,defaultParseWidth:"any"}),quarter:se({matchPatterns:o1t,defaultMatchWidth:"wide",parsePatterns:s1t,defaultParseWidth:"any",valueCallback:function(t){return t+1}}),month:se({matchPatterns:l1t,defaultMatchWidth:"wide",parsePatterns:u1t,defaultParseWidth:"any"}),day:se({matchPatterns:c1t,defaultMatchWidth:"wide",parsePatterns:d1t,defaultParseWidth:"any"}),dayPeriod:se({matchPatterns:f1t,defaultMatchWidth:"any",parsePatterns:p1t,defaultParseWidth:"any"})},m1t={code:"ug",formatDistance:Bwt,formatLong:Hwt,formatRelative:Gwt,localize:t1t,match:h1t,options:{weekStartsOn:0,firstWeekContainsDate:1}};const g1t=Object.freeze(Object.defineProperty({__proto__:null,default:m1t},Symbol.toStringTag,{value:"Module"})),v1t=jt(g1t);function Z1(e,t){if(e.one!==void 0&&t===1)return e.one;var n=t%10,r=t%100;return n===1&&r!==11?e.singularNominative.replace("{{count}}",String(t)):n>=2&&n<=4&&(r<10||r>20)?e.singularGenitive.replace("{{count}}",String(t)):e.pluralGenitive.replace("{{count}}",String(t))}function Mo(e){return function(t,n){return n&&n.addSuffix?n.comparison&&n.comparison>0?e.future?Z1(e.future,t):"за "+Z1(e.regular,t):e.past?Z1(e.past,t):Z1(e.regular,t)+" тому":Z1(e.regular,t)}}var y1t=function(t,n){return n&&n.addSuffix?n.comparison&&n.comparison>0?"за півхвилини":"півхвилини тому":"півхвилини"},b1t={lessThanXSeconds:Mo({regular:{one:"менше секунди",singularNominative:"менше {{count}} секунди",singularGenitive:"менше {{count}} секунд",pluralGenitive:"менше {{count}} секунд"},future:{one:"менше, ніж за секунду",singularNominative:"менше, ніж за {{count}} секунду",singularGenitive:"менше, ніж за {{count}} секунди",pluralGenitive:"менше, ніж за {{count}} секунд"}}),xSeconds:Mo({regular:{singularNominative:"{{count}} секунда",singularGenitive:"{{count}} секунди",pluralGenitive:"{{count}} секунд"},past:{singularNominative:"{{count}} секунду тому",singularGenitive:"{{count}} секунди тому",pluralGenitive:"{{count}} секунд тому"},future:{singularNominative:"за {{count}} секунду",singularGenitive:"за {{count}} секунди",pluralGenitive:"за {{count}} секунд"}}),halfAMinute:y1t,lessThanXMinutes:Mo({regular:{one:"менше хвилини",singularNominative:"менше {{count}} хвилини",singularGenitive:"менше {{count}} хвилин",pluralGenitive:"менше {{count}} хвилин"},future:{one:"менше, ніж за хвилину",singularNominative:"менше, ніж за {{count}} хвилину",singularGenitive:"менше, ніж за {{count}} хвилини",pluralGenitive:"менше, ніж за {{count}} хвилин"}}),xMinutes:Mo({regular:{singularNominative:"{{count}} хвилина",singularGenitive:"{{count}} хвилини",pluralGenitive:"{{count}} хвилин"},past:{singularNominative:"{{count}} хвилину тому",singularGenitive:"{{count}} хвилини тому",pluralGenitive:"{{count}} хвилин тому"},future:{singularNominative:"за {{count}} хвилину",singularGenitive:"за {{count}} хвилини",pluralGenitive:"за {{count}} хвилин"}}),aboutXHours:Mo({regular:{singularNominative:"близько {{count}} години",singularGenitive:"близько {{count}} годин",pluralGenitive:"близько {{count}} годин"},future:{singularNominative:"приблизно за {{count}} годину",singularGenitive:"приблизно за {{count}} години",pluralGenitive:"приблизно за {{count}} годин"}}),xHours:Mo({regular:{singularNominative:"{{count}} годину",singularGenitive:"{{count}} години",pluralGenitive:"{{count}} годин"}}),xDays:Mo({regular:{singularNominative:"{{count}} день",singularGenitive:"{{count}} днi",pluralGenitive:"{{count}} днів"}}),aboutXWeeks:Mo({regular:{singularNominative:"близько {{count}} тижня",singularGenitive:"близько {{count}} тижнів",pluralGenitive:"близько {{count}} тижнів"},future:{singularNominative:"приблизно за {{count}} тиждень",singularGenitive:"приблизно за {{count}} тижні",pluralGenitive:"приблизно за {{count}} тижнів"}}),xWeeks:Mo({regular:{singularNominative:"{{count}} тиждень",singularGenitive:"{{count}} тижні",pluralGenitive:"{{count}} тижнів"}}),aboutXMonths:Mo({regular:{singularNominative:"близько {{count}} місяця",singularGenitive:"близько {{count}} місяців",pluralGenitive:"близько {{count}} місяців"},future:{singularNominative:"приблизно за {{count}} місяць",singularGenitive:"приблизно за {{count}} місяці",pluralGenitive:"приблизно за {{count}} місяців"}}),xMonths:Mo({regular:{singularNominative:"{{count}} місяць",singularGenitive:"{{count}} місяці",pluralGenitive:"{{count}} місяців"}}),aboutXYears:Mo({regular:{singularNominative:"близько {{count}} року",singularGenitive:"близько {{count}} років",pluralGenitive:"близько {{count}} років"},future:{singularNominative:"приблизно за {{count}} рік",singularGenitive:"приблизно за {{count}} роки",pluralGenitive:"приблизно за {{count}} років"}}),xYears:Mo({regular:{singularNominative:"{{count}} рік",singularGenitive:"{{count}} роки",pluralGenitive:"{{count}} років"}}),overXYears:Mo({regular:{singularNominative:"більше {{count}} року",singularGenitive:"більше {{count}} років",pluralGenitive:"більше {{count}} років"},future:{singularNominative:"більше, ніж за {{count}} рік",singularGenitive:"більше, ніж за {{count}} роки",pluralGenitive:"більше, ніж за {{count}} років"}}),almostXYears:Mo({regular:{singularNominative:"майже {{count}} рік",singularGenitive:"майже {{count}} роки",pluralGenitive:"майже {{count}} років"},future:{singularNominative:"майже за {{count}} рік",singularGenitive:"майже за {{count}} роки",pluralGenitive:"майже за {{count}} років"}})},w1t=function(t,n,r){return r=r||{},b1t[t](n,r)},S1t={full:"EEEE, do MMMM y 'р.'",long:"do MMMM y 'р.'",medium:"d MMM y 'р.'",short:"dd.MM.y"},E1t={full:"H:mm:ss zzzz",long:"H:mm:ss z",medium:"H:mm:ss",short:"H:mm"},T1t={full:"{{date}} 'о' {{time}}",long:"{{date}} 'о' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},C1t={date:Ne({formats:S1t,defaultWidth:"full"}),time:Ne({formats:E1t,defaultWidth:"full"}),dateTime:Ne({formats:T1t,defaultWidth:"full"})},R4=["неділю","понеділок","вівторок","середу","четвер","п’ятницю","суботу"];function k1t(e){var t=R4[e];switch(e){case 0:case 3:case 5:case 6:return"'у минулу "+t+" о' p";case 1:case 2:case 4:return"'у минулий "+t+" о' p"}}function Wae(e){var t=R4[e];return"'у "+t+" о' p"}function x1t(e){var t=R4[e];switch(e){case 0:case 3:case 5:case 6:return"'у наступну "+t+" о' p";case 1:case 2:case 4:return"'у наступний "+t+" о' p"}}var _1t=function(t,n,r){var a=Re(t),i=a.getUTCDay();return wi(a,n,r)?Wae(i):k1t(i)},O1t=function(t,n,r){var a=Re(t),i=a.getUTCDay();return wi(a,n,r)?Wae(i):x1t(i)},R1t={lastWeek:_1t,yesterday:"'вчора о' p",today:"'сьогодні о' p",tomorrow:"'завтра о' p",nextWeek:O1t,other:"P"},P1t=function(t,n,r,a){var i=R1t[t];return typeof i=="function"?i(n,r,a):i},A1t={narrow:["до н.е.","н.е."],abbreviated:["до н. е.","н. е."],wide:["до нашої ери","нашої ери"]},N1t={narrow:["1","2","3","4"],abbreviated:["1-й кв.","2-й кв.","3-й кв.","4-й кв."],wide:["1-й квартал","2-й квартал","3-й квартал","4-й квартал"]},M1t={narrow:["С","Л","Б","К","Т","Ч","Л","С","В","Ж","Л","Г"],abbreviated:["січ.","лют.","берез.","квіт.","трав.","черв.","лип.","серп.","верес.","жовт.","листоп.","груд."],wide:["січень","лютий","березень","квітень","травень","червень","липень","серпень","вересень","жовтень","листопад","грудень"]},I1t={narrow:["С","Л","Б","К","Т","Ч","Л","С","В","Ж","Л","Г"],abbreviated:["січ.","лют.","берез.","квіт.","трав.","черв.","лип.","серп.","верес.","жовт.","листоп.","груд."],wide:["січня","лютого","березня","квітня","травня","червня","липня","серпня","вересня","жовтня","листопада","грудня"]},D1t={narrow:["Н","П","В","С","Ч","П","С"],short:["нд","пн","вт","ср","чт","пт","сб"],abbreviated:["нед","пон","вів","сер","чтв","птн","суб"],wide:["неділя","понеділок","вівторок","середа","четвер","п’ятниця","субота"]},$1t={narrow:{am:"ДП",pm:"ПП",midnight:"півн.",noon:"пол.",morning:"ранок",afternoon:"день",evening:"веч.",night:"ніч"},abbreviated:{am:"ДП",pm:"ПП",midnight:"півн.",noon:"пол.",morning:"ранок",afternoon:"день",evening:"веч.",night:"ніч"},wide:{am:"ДП",pm:"ПП",midnight:"північ",noon:"полудень",morning:"ранок",afternoon:"день",evening:"вечір",night:"ніч"}},L1t={narrow:{am:"ДП",pm:"ПП",midnight:"півн.",noon:"пол.",morning:"ранку",afternoon:"дня",evening:"веч.",night:"ночі"},abbreviated:{am:"ДП",pm:"ПП",midnight:"півн.",noon:"пол.",morning:"ранку",afternoon:"дня",evening:"веч.",night:"ночі"},wide:{am:"ДП",pm:"ПП",midnight:"північ",noon:"полудень",morning:"ранку",afternoon:"дня",evening:"веч.",night:"ночі"}},F1t=function(t,n){var r=String(n==null?void 0:n.unit),a=Number(t),i;return r==="date"?a===3||a===23?i="-є":i="-е":r==="minute"||r==="second"||r==="hour"?i="-а":i="-й",a+i},j1t={ordinalNumber:F1t,era:oe({values:A1t,defaultWidth:"wide"}),quarter:oe({values:N1t,defaultWidth:"wide",argumentCallback:function(t){return t-1}}),month:oe({values:M1t,defaultWidth:"wide",formattingValues:I1t,defaultFormattingWidth:"wide"}),day:oe({values:D1t,defaultWidth:"wide"}),dayPeriod:oe({values:$1t,defaultWidth:"any",formattingValues:L1t,defaultFormattingWidth:"wide"})},U1t=/^(\d+)(-?(е|й|є|а|я))?/i,B1t=/\d+/i,W1t={narrow:/^((до )?н\.?\s?е\.?)/i,abbreviated:/^((до )?н\.?\s?е\.?)/i,wide:/^(до нашої ери|нашої ери|наша ера)/i},z1t={any:[/^д/i,/^н/i]},q1t={narrow:/^[1234]/i,abbreviated:/^[1234](-?[иі]?й?)? кв.?/i,wide:/^[1234](-?[иі]?й?)? квартал/i},H1t={any:[/1/i,/2/i,/3/i,/4/i]},V1t={narrow:/^[слбктчвжг]/i,abbreviated:/^(січ|лют|бер(ез)?|квіт|трав|черв|лип|серп|вер(ес)?|жовт|лис(топ)?|груд)\.?/i,wide:/^(січень|січня|лютий|лютого|березень|березня|квітень|квітня|травень|травня|червня|червень|липень|липня|серпень|серпня|вересень|вересня|жовтень|жовтня|листопад[а]?|грудень|грудня)/i},G1t={narrow:[/^с/i,/^л/i,/^б/i,/^к/i,/^т/i,/^ч/i,/^л/i,/^с/i,/^в/i,/^ж/i,/^л/i,/^г/i],any:[/^сі/i,/^лю/i,/^б/i,/^к/i,/^т/i,/^ч/i,/^лип/i,/^се/i,/^в/i,/^ж/i,/^лис/i,/^г/i]},Y1t={narrow:/^[нпвсч]/i,short:/^(нд|пн|вт|ср|чт|пт|сб)\.?/i,abbreviated:/^(нед|пон|вів|сер|че?тв|птн?|суб)\.?/i,wide:/^(неділ[яі]|понеділ[ок][ка]|вівтор[ок][ка]|серед[аи]|четвер(га)?|п\W*?ятниц[яі]|субот[аи])/i},K1t={narrow:[/^н/i,/^п/i,/^в/i,/^с/i,/^ч/i,/^п/i,/^с/i],any:[/^н/i,/^п[он]/i,/^в/i,/^с[ер]/i,/^ч/i,/^п\W*?[ят]/i,/^с[уб]/i]},X1t={narrow:/^([дп]п|півн\.?|пол\.?|ранок|ранку|день|дня|веч\.?|ніч|ночі)/i,abbreviated:/^([дп]п|півн\.?|пол\.?|ранок|ранку|день|дня|веч\.?|ніч|ночі)/i,wide:/^([дп]п|північ|полудень|ранок|ранку|день|дня|вечір|вечора|ніч|ночі)/i},Q1t={any:{am:/^дп/i,pm:/^пп/i,midnight:/^півн/i,noon:/^пол/i,morning:/^р/i,afternoon:/^д[ен]/i,evening:/^в/i,night:/^н/i}},J1t={ordinalNumber:Xt({matchPattern:U1t,parsePattern:B1t,valueCallback:function(t){return parseInt(t,10)}}),era:se({matchPatterns:W1t,defaultMatchWidth:"wide",parsePatterns:z1t,defaultParseWidth:"any"}),quarter:se({matchPatterns:q1t,defaultMatchWidth:"wide",parsePatterns:H1t,defaultParseWidth:"any",valueCallback:function(t){return t+1}}),month:se({matchPatterns:V1t,defaultMatchWidth:"wide",parsePatterns:G1t,defaultParseWidth:"any"}),day:se({matchPatterns:Y1t,defaultMatchWidth:"wide",parsePatterns:K1t,defaultParseWidth:"any"}),dayPeriod:se({matchPatterns:X1t,defaultMatchWidth:"wide",parsePatterns:Q1t,defaultParseWidth:"any"})},Z1t={code:"uk",formatDistance:w1t,formatLong:C1t,formatRelative:P1t,localize:j1t,match:J1t,options:{weekStartsOn:1,firstWeekContainsDate:1}};const eSt=Object.freeze(Object.defineProperty({__proto__:null,default:Z1t},Symbol.toStringTag,{value:"Module"})),tSt=jt(eSt);var nSt={lessThanXSeconds:{one:"dưới 1 giây",other:"dưới {{count}} giây"},xSeconds:{one:"1 giây",other:"{{count}} giây"},halfAMinute:"nửa phút",lessThanXMinutes:{one:"dưới 1 phút",other:"dưới {{count}} phút"},xMinutes:{one:"1 phút",other:"{{count}} phút"},aboutXHours:{one:"khoảng 1 giờ",other:"khoảng {{count}} giờ"},xHours:{one:"1 giờ",other:"{{count}} giờ"},xDays:{one:"1 ngày",other:"{{count}} ngày"},aboutXWeeks:{one:"khoảng 1 tuần",other:"khoảng {{count}} tuần"},xWeeks:{one:"1 tuần",other:"{{count}} tuần"},aboutXMonths:{one:"khoảng 1 tháng",other:"khoảng {{count}} tháng"},xMonths:{one:"1 tháng",other:"{{count}} tháng"},aboutXYears:{one:"khoảng 1 năm",other:"khoảng {{count}} năm"},xYears:{one:"1 năm",other:"{{count}} năm"},overXYears:{one:"hơn 1 năm",other:"hơn {{count}} năm"},almostXYears:{one:"gần 1 năm",other:"gần {{count}} năm"}},rSt=function(t,n,r){var a,i=nSt[t];return typeof i=="string"?a=i:n===1?a=i.one:a=i.other.replace("{{count}}",String(n)),r!=null&&r.addSuffix?r.comparison&&r.comparison>0?a+" nữa":a+" trước":a},aSt={full:"EEEE, 'ngày' d MMMM 'năm' y",long:"'ngày' d MMMM 'năm' y",medium:"d MMM 'năm' y",short:"dd/MM/y"},iSt={full:"HH:mm:ss zzzz",long:"HH:mm:ss z",medium:"HH:mm:ss",short:"HH:mm"},oSt={full:"{{date}} {{time}}",long:"{{date}} {{time}}",medium:"{{date}} {{time}}",short:"{{date}} {{time}}"},sSt={date:Ne({formats:aSt,defaultWidth:"full"}),time:Ne({formats:iSt,defaultWidth:"full"}),dateTime:Ne({formats:oSt,defaultWidth:"full"})},lSt={lastWeek:"eeee 'tuần trước vào lúc' p",yesterday:"'hôm qua vào lúc' p",today:"'hôm nay vào lúc' p",tomorrow:"'ngày mai vào lúc' p",nextWeek:"eeee 'tới vào lúc' p",other:"P"},uSt=function(t,n,r,a){return lSt[t]},cSt={narrow:["TCN","SCN"],abbreviated:["trước CN","sau CN"],wide:["trước Công Nguyên","sau Công Nguyên"]},dSt={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["Quý 1","Quý 2","Quý 3","Quý 4"]},fSt={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["quý I","quý II","quý III","quý IV"]},pSt={narrow:["1","2","3","4","5","6","7","8","9","10","11","12"],abbreviated:["Thg 1","Thg 2","Thg 3","Thg 4","Thg 5","Thg 6","Thg 7","Thg 8","Thg 9","Thg 10","Thg 11","Thg 12"],wide:["Tháng Một","Tháng Hai","Tháng Ba","Tháng Tư","Tháng Năm","Tháng Sáu","Tháng Bảy","Tháng Tám","Tháng Chín","Tháng Mười","Tháng Mười Một","Tháng Mười Hai"]},hSt={narrow:["01","02","03","04","05","06","07","08","09","10","11","12"],abbreviated:["thg 1","thg 2","thg 3","thg 4","thg 5","thg 6","thg 7","thg 8","thg 9","thg 10","thg 11","thg 12"],wide:["tháng 01","tháng 02","tháng 03","tháng 04","tháng 05","tháng 06","tháng 07","tháng 08","tháng 09","tháng 10","tháng 11","tháng 12"]},mSt={narrow:["CN","T2","T3","T4","T5","T6","T7"],short:["CN","Th 2","Th 3","Th 4","Th 5","Th 6","Th 7"],abbreviated:["CN","Thứ 2","Thứ 3","Thứ 4","Thứ 5","Thứ 6","Thứ 7"],wide:["Chủ Nhật","Thứ Hai","Thứ Ba","Thứ Tư","Thứ Năm","Thứ Sáu","Thứ Bảy"]},gSt={narrow:{am:"am",pm:"pm",midnight:"nửa đêm",noon:"tr",morning:"sg",afternoon:"ch",evening:"tối",night:"đêm"},abbreviated:{am:"AM",pm:"PM",midnight:"nửa đêm",noon:"trưa",morning:"sáng",afternoon:"chiều",evening:"tối",night:"đêm"},wide:{am:"SA",pm:"CH",midnight:"nửa đêm",noon:"trưa",morning:"sáng",afternoon:"chiều",evening:"tối",night:"đêm"}},vSt={narrow:{am:"am",pm:"pm",midnight:"nửa đêm",noon:"tr",morning:"sg",afternoon:"ch",evening:"tối",night:"đêm"},abbreviated:{am:"AM",pm:"PM",midnight:"nửa đêm",noon:"trưa",morning:"sáng",afternoon:"chiều",evening:"tối",night:"đêm"},wide:{am:"SA",pm:"CH",midnight:"nửa đêm",noon:"giữa trưa",morning:"vào buổi sáng",afternoon:"vào buổi chiều",evening:"vào buổi tối",night:"vào ban đêm"}},ySt=function(t,n){var r=Number(t),a=n==null?void 0:n.unit;if(a==="quarter")switch(r){case 1:return"I";case 2:return"II";case 3:return"III";case 4:return"IV"}else if(a==="day")switch(r){case 1:return"thứ 2";case 2:return"thứ 3";case 3:return"thứ 4";case 4:return"thứ 5";case 5:return"thứ 6";case 6:return"thứ 7";case 7:return"chủ nhật"}else{if(a==="week")return r===1?"thứ nhất":"thứ "+r;if(a==="dayOfYear")return r===1?"đầu tiên":"thứ "+r}return String(r)},bSt={ordinalNumber:ySt,era:oe({values:cSt,defaultWidth:"wide"}),quarter:oe({values:dSt,defaultWidth:"wide",formattingValues:fSt,defaultFormattingWidth:"wide",argumentCallback:function(t){return t-1}}),month:oe({values:pSt,defaultWidth:"wide",formattingValues:hSt,defaultFormattingWidth:"wide"}),day:oe({values:mSt,defaultWidth:"wide"}),dayPeriod:oe({values:gSt,defaultWidth:"wide",formattingValues:vSt,defaultFormattingWidth:"wide"})},wSt=/^(\d+)/i,SSt=/\d+/i,ESt={narrow:/^(tcn|scn)/i,abbreviated:/^(trước CN|sau CN)/i,wide:/^(trước Công Nguyên|sau Công Nguyên)/i},TSt={any:[/^t/i,/^s/i]},CSt={narrow:/^([1234]|i{1,3}v?)/i,abbreviated:/^q([1234]|i{1,3}v?)/i,wide:/^quý ([1234]|i{1,3}v?)/i},kSt={any:[/(1|i)$/i,/(2|ii)$/i,/(3|iii)$/i,/(4|iv)$/i]},xSt={narrow:/^(0?[2-9]|10|11|12|0?1)/i,abbreviated:/^thg[ _]?(0?[1-9](?!\d)|10|11|12)/i,wide:/^tháng ?(Một|Hai|Ba|Tư|Năm|Sáu|Bảy|Tám|Chín|Mười|Mười ?Một|Mười ?Hai|0?[1-9](?!\d)|10|11|12)/i},_St={narrow:[/0?1$/i,/0?2/i,/3/,/4/,/5/,/6/,/7/,/8/,/9/,/10/,/11/,/12/],abbreviated:[/^thg[ _]?0?1(?!\d)/i,/^thg[ _]?0?2/i,/^thg[ _]?0?3/i,/^thg[ _]?0?4/i,/^thg[ _]?0?5/i,/^thg[ _]?0?6/i,/^thg[ _]?0?7/i,/^thg[ _]?0?8/i,/^thg[ _]?0?9/i,/^thg[ _]?10/i,/^thg[ _]?11/i,/^thg[ _]?12/i],wide:[/^tháng ?(Một|0?1(?!\d))/i,/^tháng ?(Hai|0?2)/i,/^tháng ?(Ba|0?3)/i,/^tháng ?(Tư|0?4)/i,/^tháng ?(Năm|0?5)/i,/^tháng ?(Sáu|0?6)/i,/^tháng ?(Bảy|0?7)/i,/^tháng ?(Tám|0?8)/i,/^tháng ?(Chín|0?9)/i,/^tháng ?(Mười|10)/i,/^tháng ?(Mười ?Một|11)/i,/^tháng ?(Mười ?Hai|12)/i]},OSt={narrow:/^(CN|T2|T3|T4|T5|T6|T7)/i,short:/^(CN|Th ?2|Th ?3|Th ?4|Th ?5|Th ?6|Th ?7)/i,abbreviated:/^(CN|Th ?2|Th ?3|Th ?4|Th ?5|Th ?6|Th ?7)/i,wide:/^(Chủ ?Nhật|Chúa ?Nhật|thứ ?Hai|thứ ?Ba|thứ ?Tư|thứ ?Năm|thứ ?Sáu|thứ ?Bảy)/i},RSt={narrow:[/CN/i,/2/i,/3/i,/4/i,/5/i,/6/i,/7/i],short:[/CN/i,/2/i,/3/i,/4/i,/5/i,/6/i,/7/i],abbreviated:[/CN/i,/2/i,/3/i,/4/i,/5/i,/6/i,/7/i],wide:[/(Chủ|Chúa) ?Nhật/i,/Hai/i,/Ba/i,/Tư/i,/Năm/i,/Sáu/i,/Bảy/i]},PSt={narrow:/^(a|p|nửa đêm|trưa|(giờ) (sáng|chiều|tối|đêm))/i,abbreviated:/^(am|pm|nửa đêm|trưa|(giờ) (sáng|chiều|tối|đêm))/i,wide:/^(ch[^i]*|sa|nửa đêm|trưa|(giờ) (sáng|chiều|tối|đêm))/i},ASt={any:{am:/^(a|sa)/i,pm:/^(p|ch[^i]*)/i,midnight:/nửa đêm/i,noon:/trưa/i,morning:/sáng/i,afternoon:/chiều/i,evening:/tối/i,night:/^đêm/i}},NSt={ordinalNumber:Xt({matchPattern:wSt,parsePattern:SSt,valueCallback:function(t){return parseInt(t,10)}}),era:se({matchPatterns:ESt,defaultMatchWidth:"wide",parsePatterns:TSt,defaultParseWidth:"any"}),quarter:se({matchPatterns:CSt,defaultMatchWidth:"wide",parsePatterns:kSt,defaultParseWidth:"any",valueCallback:function(t){return t+1}}),month:se({matchPatterns:xSt,defaultMatchWidth:"wide",parsePatterns:_St,defaultParseWidth:"wide"}),day:se({matchPatterns:OSt,defaultMatchWidth:"wide",parsePatterns:RSt,defaultParseWidth:"wide"}),dayPeriod:se({matchPatterns:PSt,defaultMatchWidth:"wide",parsePatterns:ASt,defaultParseWidth:"any"})},MSt={code:"vi",formatDistance:rSt,formatLong:sSt,formatRelative:uSt,localize:bSt,match:NSt,options:{weekStartsOn:1,firstWeekContainsDate:1}};const ISt=Object.freeze(Object.defineProperty({__proto__:null,default:MSt},Symbol.toStringTag,{value:"Module"})),DSt=jt(ISt);var $St={lessThanXSeconds:{one:"不到 1 秒",other:"不到 {{count}} 秒"},xSeconds:{one:"1 秒",other:"{{count}} 秒"},halfAMinute:"半分钟",lessThanXMinutes:{one:"不到 1 分钟",other:"不到 {{count}} 分钟"},xMinutes:{one:"1 分钟",other:"{{count}} 分钟"},xHours:{one:"1 小时",other:"{{count}} 小时"},aboutXHours:{one:"大约 1 小时",other:"大约 {{count}} 小时"},xDays:{one:"1 天",other:"{{count}} 天"},aboutXWeeks:{one:"大约 1 个星期",other:"大约 {{count}} 个星期"},xWeeks:{one:"1 个星期",other:"{{count}} 个星期"},aboutXMonths:{one:"大约 1 个月",other:"大约 {{count}} 个月"},xMonths:{one:"1 个月",other:"{{count}} 个月"},aboutXYears:{one:"大约 1 年",other:"大约 {{count}} 年"},xYears:{one:"1 年",other:"{{count}} 年"},overXYears:{one:"超过 1 年",other:"超过 {{count}} 年"},almostXYears:{one:"将近 1 年",other:"将近 {{count}} 年"}},LSt=function(t,n,r){var a,i=$St[t];return typeof i=="string"?a=i:n===1?a=i.one:a=i.other.replace("{{count}}",String(n)),r!=null&&r.addSuffix?r.comparison&&r.comparison>0?a+"内":a+"前":a},FSt={full:"y'年'M'月'd'日' EEEE",long:"y'年'M'月'd'日'",medium:"yyyy-MM-dd",short:"yy-MM-dd"},jSt={full:"zzzz a h:mm:ss",long:"z a h:mm:ss",medium:"a h:mm:ss",short:"a h:mm"},USt={full:"{{date}} {{time}}",long:"{{date}} {{time}}",medium:"{{date}} {{time}}",short:"{{date}} {{time}}"},BSt={date:Ne({formats:FSt,defaultWidth:"full"}),time:Ne({formats:jSt,defaultWidth:"full"}),dateTime:Ne({formats:USt,defaultWidth:"full"})};function ZG(e,t,n){var r="eeee p";return wi(e,t,n)?r:e.getTime()>t.getTime()?"'下个'"+r:"'上个'"+r}var WSt={lastWeek:ZG,yesterday:"'昨天' p",today:"'今天' p",tomorrow:"'明天' p",nextWeek:ZG,other:"PP p"},zSt=function(t,n,r,a){var i=WSt[t];return typeof i=="function"?i(n,r,a):i},qSt={narrow:["前","公元"],abbreviated:["前","公元"],wide:["公元前","公元"]},HSt={narrow:["1","2","3","4"],abbreviated:["第一季","第二季","第三季","第四季"],wide:["第一季度","第二季度","第三季度","第四季度"]},VSt={narrow:["一","二","三","四","五","六","七","八","九","十","十一","十二"],abbreviated:["1月","2月","3月","4月","5月","6月","7月","8月","9月","10月","11月","12月"],wide:["一月","二月","三月","四月","五月","六月","七月","八月","九月","十月","十一月","十二月"]},GSt={narrow:["日","一","二","三","四","五","六"],short:["日","一","二","三","四","五","六"],abbreviated:["周日","周一","周二","周三","周四","周五","周六"],wide:["星期日","星期一","星期二","星期三","星期四","星期五","星期六"]},YSt={narrow:{am:"上",pm:"下",midnight:"凌晨",noon:"午",morning:"早",afternoon:"下午",evening:"晚",night:"夜"},abbreviated:{am:"上午",pm:"下午",midnight:"凌晨",noon:"中午",morning:"早晨",afternoon:"中午",evening:"晚上",night:"夜间"},wide:{am:"上午",pm:"下午",midnight:"凌晨",noon:"中午",morning:"早晨",afternoon:"中午",evening:"晚上",night:"夜间"}},KSt={narrow:{am:"上",pm:"下",midnight:"凌晨",noon:"午",morning:"早",afternoon:"下午",evening:"晚",night:"夜"},abbreviated:{am:"上午",pm:"下午",midnight:"凌晨",noon:"中午",morning:"早晨",afternoon:"中午",evening:"晚上",night:"夜间"},wide:{am:"上午",pm:"下午",midnight:"凌晨",noon:"中午",morning:"早晨",afternoon:"中午",evening:"晚上",night:"夜间"}},XSt=function(t,n){var r=Number(t);switch(n==null?void 0:n.unit){case"date":return r.toString()+"日";case"hour":return r.toString()+"时";case"minute":return r.toString()+"分";case"second":return r.toString()+"秒";default:return"第 "+r.toString()}},QSt={ordinalNumber:XSt,era:oe({values:qSt,defaultWidth:"wide"}),quarter:oe({values:HSt,defaultWidth:"wide",argumentCallback:function(t){return t-1}}),month:oe({values:VSt,defaultWidth:"wide"}),day:oe({values:GSt,defaultWidth:"wide"}),dayPeriod:oe({values:YSt,defaultWidth:"wide",formattingValues:KSt,defaultFormattingWidth:"wide"})},JSt=/^(第\s*)?\d+(日|时|分|秒)?/i,ZSt=/\d+/i,eEt={narrow:/^(前)/i,abbreviated:/^(前)/i,wide:/^(公元前|公元)/i},tEt={any:[/^(前)/i,/^(公元)/i]},nEt={narrow:/^[1234]/i,abbreviated:/^第[一二三四]刻/i,wide:/^第[一二三四]刻钟/i},rEt={any:[/(1|一)/i,/(2|二)/i,/(3|三)/i,/(4|四)/i]},aEt={narrow:/^(一|二|三|四|五|六|七|八|九|十[二一])/i,abbreviated:/^(一|二|三|四|五|六|七|八|九|十[二一]|\d|1[12])月/i,wide:/^(一|二|三|四|五|六|七|八|九|十[二一])月/i},iEt={narrow:[/^一/i,/^二/i,/^三/i,/^四/i,/^五/i,/^六/i,/^七/i,/^八/i,/^九/i,/^十(?!(一|二))/i,/^十一/i,/^十二/i],any:[/^一|1/i,/^二|2/i,/^三|3/i,/^四|4/i,/^五|5/i,/^六|6/i,/^七|7/i,/^八|8/i,/^九|9/i,/^十(?!(一|二))|10/i,/^十一|11/i,/^十二|12/i]},oEt={narrow:/^[一二三四五六日]/i,short:/^[一二三四五六日]/i,abbreviated:/^周[一二三四五六日]/i,wide:/^星期[一二三四五六日]/i},sEt={any:[/日/i,/一/i,/二/i,/三/i,/四/i,/五/i,/六/i]},lEt={any:/^(上午?|下午?|午夜|[中正]午|早上?|下午|晚上?|凌晨|)/i},uEt={any:{am:/^上午?/i,pm:/^下午?/i,midnight:/^午夜/i,noon:/^[中正]午/i,morning:/^早上/i,afternoon:/^下午/i,evening:/^晚上?/i,night:/^凌晨/i}},cEt={ordinalNumber:Xt({matchPattern:JSt,parsePattern:ZSt,valueCallback:function(t){return parseInt(t,10)}}),era:se({matchPatterns:eEt,defaultMatchWidth:"wide",parsePatterns:tEt,defaultParseWidth:"any"}),quarter:se({matchPatterns:nEt,defaultMatchWidth:"wide",parsePatterns:rEt,defaultParseWidth:"any",valueCallback:function(t){return t+1}}),month:se({matchPatterns:aEt,defaultMatchWidth:"wide",parsePatterns:iEt,defaultParseWidth:"any"}),day:se({matchPatterns:oEt,defaultMatchWidth:"wide",parsePatterns:sEt,defaultParseWidth:"any"}),dayPeriod:se({matchPatterns:lEt,defaultMatchWidth:"any",parsePatterns:uEt,defaultParseWidth:"any"})},dEt={code:"zh-CN",formatDistance:LSt,formatLong:BSt,formatRelative:zSt,localize:QSt,match:cEt,options:{weekStartsOn:1,firstWeekContainsDate:4}};const fEt=Object.freeze(Object.defineProperty({__proto__:null,default:dEt},Symbol.toStringTag,{value:"Module"})),pEt=jt(fEt);var hEt={lessThanXSeconds:{one:"少於 1 秒",other:"少於 {{count}} 秒"},xSeconds:{one:"1 秒",other:"{{count}} 秒"},halfAMinute:"半分鐘",lessThanXMinutes:{one:"少於 1 分鐘",other:"少於 {{count}} 分鐘"},xMinutes:{one:"1 分鐘",other:"{{count}} 分鐘"},xHours:{one:"1 小時",other:"{{count}} 小時"},aboutXHours:{one:"大約 1 小時",other:"大約 {{count}} 小時"},xDays:{one:"1 天",other:"{{count}} 天"},aboutXWeeks:{one:"大約 1 個星期",other:"大約 {{count}} 個星期"},xWeeks:{one:"1 個星期",other:"{{count}} 個星期"},aboutXMonths:{one:"大約 1 個月",other:"大約 {{count}} 個月"},xMonths:{one:"1 個月",other:"{{count}} 個月"},aboutXYears:{one:"大約 1 年",other:"大約 {{count}} 年"},xYears:{one:"1 年",other:"{{count}} 年"},overXYears:{one:"超過 1 年",other:"超過 {{count}} 年"},almostXYears:{one:"將近 1 年",other:"將近 {{count}} 年"}},mEt=function(t,n,r){var a,i=hEt[t];return typeof i=="string"?a=i:n===1?a=i.one:a=i.other.replace("{{count}}",String(n)),r!=null&&r.addSuffix?r.comparison&&r.comparison>0?a+"內":a+"前":a},gEt={full:"y'年'M'月'd'日' EEEE",long:"y'年'M'月'd'日'",medium:"yyyy-MM-dd",short:"yy-MM-dd"},vEt={full:"zzzz a h:mm:ss",long:"z a h:mm:ss",medium:"a h:mm:ss",short:"a h:mm"},yEt={full:"{{date}} {{time}}",long:"{{date}} {{time}}",medium:"{{date}} {{time}}",short:"{{date}} {{time}}"},bEt={date:Ne({formats:gEt,defaultWidth:"full"}),time:Ne({formats:vEt,defaultWidth:"full"}),dateTime:Ne({formats:yEt,defaultWidth:"full"})},wEt={lastWeek:"'上個'eeee p",yesterday:"'昨天' p",today:"'今天' p",tomorrow:"'明天' p",nextWeek:"'下個'eeee p",other:"P"},SEt=function(t,n,r,a){return wEt[t]},EEt={narrow:["前","公元"],abbreviated:["前","公元"],wide:["公元前","公元"]},TEt={narrow:["1","2","3","4"],abbreviated:["第一刻","第二刻","第三刻","第四刻"],wide:["第一刻鐘","第二刻鐘","第三刻鐘","第四刻鐘"]},CEt={narrow:["一","二","三","四","五","六","七","八","九","十","十一","十二"],abbreviated:["1月","2月","3月","4月","5月","6月","7月","8月","9月","10月","11月","12月"],wide:["一月","二月","三月","四月","五月","六月","七月","八月","九月","十月","十一月","十二月"]},kEt={narrow:["日","一","二","三","四","五","六"],short:["日","一","二","三","四","五","六"],abbreviated:["週日","週一","週二","週三","週四","週五","週六"],wide:["星期日","星期一","星期二","星期三","星期四","星期五","星期六"]},xEt={narrow:{am:"上",pm:"下",midnight:"凌晨",noon:"午",morning:"早",afternoon:"下午",evening:"晚",night:"夜"},abbreviated:{am:"上午",pm:"下午",midnight:"凌晨",noon:"中午",morning:"早晨",afternoon:"中午",evening:"晚上",night:"夜間"},wide:{am:"上午",pm:"下午",midnight:"凌晨",noon:"中午",morning:"早晨",afternoon:"中午",evening:"晚上",night:"夜間"}},_Et={narrow:{am:"上",pm:"下",midnight:"凌晨",noon:"午",morning:"早",afternoon:"下午",evening:"晚",night:"夜"},abbreviated:{am:"上午",pm:"下午",midnight:"凌晨",noon:"中午",morning:"早晨",afternoon:"中午",evening:"晚上",night:"夜間"},wide:{am:"上午",pm:"下午",midnight:"凌晨",noon:"中午",morning:"早晨",afternoon:"中午",evening:"晚上",night:"夜間"}},OEt=function(t,n){var r=Number(t);switch(n==null?void 0:n.unit){case"date":return r+"日";case"hour":return r+"時";case"minute":return r+"分";case"second":return r+"秒";default:return"第 "+r}},REt={ordinalNumber:OEt,era:oe({values:EEt,defaultWidth:"wide"}),quarter:oe({values:TEt,defaultWidth:"wide",argumentCallback:function(t){return t-1}}),month:oe({values:CEt,defaultWidth:"wide"}),day:oe({values:kEt,defaultWidth:"wide"}),dayPeriod:oe({values:xEt,defaultWidth:"wide",formattingValues:_Et,defaultFormattingWidth:"wide"})},PEt=/^(第\s*)?\d+(日|時|分|秒)?/i,AEt=/\d+/i,NEt={narrow:/^(前)/i,abbreviated:/^(前)/i,wide:/^(公元前|公元)/i},MEt={any:[/^(前)/i,/^(公元)/i]},IEt={narrow:/^[1234]/i,abbreviated:/^第[一二三四]刻/i,wide:/^第[一二三四]刻鐘/i},DEt={any:[/(1|一)/i,/(2|二)/i,/(3|三)/i,/(4|四)/i]},$Et={narrow:/^(一|二|三|四|五|六|七|八|九|十[二一])/i,abbreviated:/^(一|二|三|四|五|六|七|八|九|十[二一]|\d|1[12])月/i,wide:/^(一|二|三|四|五|六|七|八|九|十[二一])月/i},LEt={narrow:[/^一/i,/^二/i,/^三/i,/^四/i,/^五/i,/^六/i,/^七/i,/^八/i,/^九/i,/^十(?!(一|二))/i,/^十一/i,/^十二/i],any:[/^一|1/i,/^二|2/i,/^三|3/i,/^四|4/i,/^五|5/i,/^六|6/i,/^七|7/i,/^八|8/i,/^九|9/i,/^十(?!(一|二))|10/i,/^十一|11/i,/^十二|12/i]},FEt={narrow:/^[一二三四五六日]/i,short:/^[一二三四五六日]/i,abbreviated:/^週[一二三四五六日]/i,wide:/^星期[一二三四五六日]/i},jEt={any:[/日/i,/一/i,/二/i,/三/i,/四/i,/五/i,/六/i]},UEt={any:/^(上午?|下午?|午夜|[中正]午|早上?|下午|晚上?|凌晨)/i},BEt={any:{am:/^上午?/i,pm:/^下午?/i,midnight:/^午夜/i,noon:/^[中正]午/i,morning:/^早上/i,afternoon:/^下午/i,evening:/^晚上?/i,night:/^凌晨/i}},WEt={ordinalNumber:Xt({matchPattern:PEt,parsePattern:AEt,valueCallback:function(t){return parseInt(t,10)}}),era:se({matchPatterns:NEt,defaultMatchWidth:"wide",parsePatterns:MEt,defaultParseWidth:"any"}),quarter:se({matchPatterns:IEt,defaultMatchWidth:"wide",parsePatterns:DEt,defaultParseWidth:"any",valueCallback:function(t){return t+1}}),month:se({matchPatterns:$Et,defaultMatchWidth:"wide",parsePatterns:LEt,defaultParseWidth:"any"}),day:se({matchPatterns:FEt,defaultMatchWidth:"wide",parsePatterns:jEt,defaultParseWidth:"any"}),dayPeriod:se({matchPatterns:UEt,defaultMatchWidth:"any",parsePatterns:BEt,defaultParseWidth:"any"})},zEt={code:"zh-TW",formatDistance:mEt,formatLong:bEt,formatRelative:SEt,localize:REt,match:WEt,options:{weekStartsOn:1,firstWeekContainsDate:4}};const qEt=Object.freeze(Object.defineProperty({__proto__:null,default:zEt},Symbol.toStringTag,{value:"Module"})),HEt=jt(qEt);var eY;function VEt(){return eY||(eY=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"af",{enumerable:!0,get:function(){return t.default}}),Object.defineProperty(e,"arDZ",{enumerable:!0,get:function(){return n.default}}),Object.defineProperty(e,"arSA",{enumerable:!0,get:function(){return r.default}}),Object.defineProperty(e,"be",{enumerable:!0,get:function(){return a.default}}),Object.defineProperty(e,"bg",{enumerable:!0,get:function(){return i.default}}),Object.defineProperty(e,"bn",{enumerable:!0,get:function(){return o.default}}),Object.defineProperty(e,"ca",{enumerable:!0,get:function(){return l.default}}),Object.defineProperty(e,"cs",{enumerable:!0,get:function(){return u.default}}),Object.defineProperty(e,"cy",{enumerable:!0,get:function(){return d.default}}),Object.defineProperty(e,"da",{enumerable:!0,get:function(){return f.default}}),Object.defineProperty(e,"de",{enumerable:!0,get:function(){return g.default}}),Object.defineProperty(e,"el",{enumerable:!0,get:function(){return y.default}}),Object.defineProperty(e,"enAU",{enumerable:!0,get:function(){return h.default}}),Object.defineProperty(e,"enCA",{enumerable:!0,get:function(){return v.default}}),Object.defineProperty(e,"enGB",{enumerable:!0,get:function(){return E.default}}),Object.defineProperty(e,"enUS",{enumerable:!0,get:function(){return T.default}}),Object.defineProperty(e,"eo",{enumerable:!0,get:function(){return C.default}}),Object.defineProperty(e,"es",{enumerable:!0,get:function(){return k.default}}),Object.defineProperty(e,"et",{enumerable:!0,get:function(){return _.default}}),Object.defineProperty(e,"faIR",{enumerable:!0,get:function(){return A.default}}),Object.defineProperty(e,"fi",{enumerable:!0,get:function(){return P.default}}),Object.defineProperty(e,"fr",{enumerable:!0,get:function(){return N.default}}),Object.defineProperty(e,"frCA",{enumerable:!0,get:function(){return I.default}}),Object.defineProperty(e,"gl",{enumerable:!0,get:function(){return L.default}}),Object.defineProperty(e,"gu",{enumerable:!0,get:function(){return j.default}}),Object.defineProperty(e,"he",{enumerable:!0,get:function(){return z.default}}),Object.defineProperty(e,"hi",{enumerable:!0,get:function(){return Q.default}}),Object.defineProperty(e,"hr",{enumerable:!0,get:function(){return le.default}}),Object.defineProperty(e,"hu",{enumerable:!0,get:function(){return re.default}}),Object.defineProperty(e,"hy",{enumerable:!0,get:function(){return ge.default}}),Object.defineProperty(e,"id",{enumerable:!0,get:function(){return me.default}}),Object.defineProperty(e,"is",{enumerable:!0,get:function(){return W.default}}),Object.defineProperty(e,"it",{enumerable:!0,get:function(){return G.default}}),Object.defineProperty(e,"ja",{enumerable:!0,get:function(){return q.default}}),Object.defineProperty(e,"ka",{enumerable:!0,get:function(){return ce.default}}),Object.defineProperty(e,"kk",{enumerable:!0,get:function(){return H.default}}),Object.defineProperty(e,"ko",{enumerable:!0,get:function(){return Y.default}}),Object.defineProperty(e,"lt",{enumerable:!0,get:function(){return ie.default}}),Object.defineProperty(e,"lv",{enumerable:!0,get:function(){return J.default}}),Object.defineProperty(e,"ms",{enumerable:!0,get:function(){return ee.default}}),Object.defineProperty(e,"nb",{enumerable:!0,get:function(){return Z.default}}),Object.defineProperty(e,"nl",{enumerable:!0,get:function(){return ue.default}}),Object.defineProperty(e,"nn",{enumerable:!0,get:function(){return ke.default}}),Object.defineProperty(e,"pl",{enumerable:!0,get:function(){return fe.default}}),Object.defineProperty(e,"pt",{enumerable:!0,get:function(){return xe.default}}),Object.defineProperty(e,"ptBR",{enumerable:!0,get:function(){return Ie.default}}),Object.defineProperty(e,"ro",{enumerable:!0,get:function(){return qe.default}}),Object.defineProperty(e,"ru",{enumerable:!0,get:function(){return tt.default}}),Object.defineProperty(e,"sk",{enumerable:!0,get:function(){return Ge.default}}),Object.defineProperty(e,"sl",{enumerable:!0,get:function(){return at.default}}),Object.defineProperty(e,"sr",{enumerable:!0,get:function(){return Et.default}}),Object.defineProperty(e,"srLatn",{enumerable:!0,get:function(){return kt.default}}),Object.defineProperty(e,"sv",{enumerable:!0,get:function(){return xt.default}}),Object.defineProperty(e,"ta",{enumerable:!0,get:function(){return Rt.default}}),Object.defineProperty(e,"te",{enumerable:!0,get:function(){return cn.default}}),Object.defineProperty(e,"th",{enumerable:!0,get:function(){return qt.default}}),Object.defineProperty(e,"tr",{enumerable:!0,get:function(){return Wt.default}}),Object.defineProperty(e,"ug",{enumerable:!0,get:function(){return Oe.default}}),Object.defineProperty(e,"uk",{enumerable:!0,get:function(){return dt.default}}),Object.defineProperty(e,"vi",{enumerable:!0,get:function(){return ft.default}}),Object.defineProperty(e,"zhCN",{enumerable:!0,get:function(){return ut.default}}),Object.defineProperty(e,"zhTW",{enumerable:!0,get:function(){return Nt.default}});var t=U(iHe),n=U(LHe),r=U(m7e),a=U(Z7e),i=U($Ve),o=U(gGe),l=U(KGe),u=U(RYe),d=U(sKe),f=U(jKe),g=U(gXe),y=U(YXe),h=U(tQe),v=U(cQe),E=U(vQe),T=U(_ae),C=U(YQe),k=U(_Je),_=U(nZe),A=U(IZe),P=U(pet),N=U(Bet),I=U(Yet),L=U(_tt),j=U(int),z=U(Fnt),Q=U(vrt),le=U(Xrt),re=U(Aat),ge=U(uit),me=U(Bit),W=U(bot),G=U(Zot),q=U(Ast),ce=U(ult),H=U(qlt),Y=U(Eut),ie=U(rct),J=U(Fct),ee=U(gdt),Z=U(Gdt),ue=U(Cft),ke=U(npt),fe=U(Bpt),xe=U(bht),Ie=U(Qht),qe=U(Rmt),tt=U(cgt),Ge=U(Ygt),at=U(Ovt),Et=U(syt),kt=U(Uyt),xt=U(bbt),Rt=U(Jbt),cn=U(R0t),qt=U(swt),Wt=U(jwt),Oe=U(v1t),dt=U(tSt),ft=U(DSt),ut=U(pEt),Nt=U(HEt);function U(D){return D&&D.__esModule?D:{default:D}}})(N$)),N$}var GEt=VEt();const zae=e=>{const{placeholder:t,label:n,getInputRef:r,secureTextEntry:a,Icon:i,onChange:o,errorMessage:l,type:u,focused:d=!1,autoFocus:f,...g}=e,[y,h]=R.useState(!1),v=R.useRef(),E=R.useCallback(()=>{var T;(T=v.current)==null||T.focus()},[v.current]);return w.jsx(rf,{focused:y,onClick:E,...e,children:w.jsx("div",{children:w.jsx(_9e.DateRangePicker,{locale:GEt.enUS,date:e.value,months:2,showSelectionPreview:!0,direction:"horizontal",moveRangeOnFirstSelection:!1,ranges:[{...e.value||{},key:"selection"}],onChange:T=>{var C;(C=e.onChange)==null||C.call(e,T.selection)}})})})},YEt=e=>{var a,i;const t=o=>o?new Date(o.getFullYear(),o.getMonth(),o.getDate()):void 0,n={startDate:t(new Date((a=e.value)==null?void 0:a.startDate)),endDate:t(new Date((i=e.value)==null?void 0:i.endDate))},r=o=>{e.onChange({startDate:t(o.startDate),endDate:t(o.endDate)})};return w.jsx(zae,{...e,value:n,onChange:r})};//! moment.js + }`},hc=({children:e})=>w.jsx("div",{style:{marginBottom:"70px"},children:e});function D8e(){const{openDrawer:e,openModal:t}=GF(),{confirmDrawer:n,confirmModal:r}=pZ(),a=()=>e(()=>w.jsx("div",{children:"Hi, this is opened in a drawer"})),i=()=>{e(()=>w.jsx("div",{children:"Hi, this is opened in a drawer, with a larger area and from left"}),{direction:"left",size:"40%"})},o=()=>{t(({resolve:E})=>{const[T,C]=R.useState("");return w.jsxs("form",{onSubmit:k=>k.preventDefault(),children:[w.jsxs("span",{children:["If you enter ",w.jsx("strong",{children:"ali"})," in the box, you'll see the example1 opening"]}),w.jsx(In,{autoFocus:!0,value:T,onChange:k=>C(k)}),w.jsx(Ys,{onClick:()=>E(T),children:"Okay"})]})}).promise.then(({data:E})=>{if(E==="ali")return a();alert(E)})},l=()=>{a(),a(),i(),i()},u=()=>{t(({close:E})=>(R.useEffect(()=>{setTimeout(()=>{E()},3e3)},[]),w.jsx("span",{children:"I will disappear :)))))"})))},d=()=>{const{close:E,id:T}=t(()=>w.jsx("span",{children:"I will disappear by outside :)))))"}));setTimeout(()=>{alert(T),E()},2e3)},f=()=>{t(({setOnBeforeClose:E})=>{const[T,C]=R.useState(!1);return R.useEffect(()=>{E==null||E(()=>T?window.confirm("You have unsaved changes. Close anyway?"):!0)},[T]),w.jsxs("span",{children:["If you write anything here, it will be dirty and asks for quite.",w.jsx("input",{onChange:()=>C(!0)}),T?"Will ask":"Not dirty yet"]})})},g=()=>{n({title:"Confirm",description:"Are you to confirm? You still can cancel",confirmLabel:"Confirm",cancelLabel:"Cancel"}).promise.then(E=>{console.log(10,E)})},y=()=>{r({title:"Confirm",description:"Are you to confirm? You still can cancel",confirmLabel:"Confirm",cancelLabel:"Cancel"}).promise.then(E=>{console.log(10,E)})},h=R.useRef(0),v=()=>{const{updateData:E,promise:T}=e(({data:k})=>w.jsxs("span",{children:["Params: ",JSON.stringify(k)]})),C=setInterval(()=>{E({c:++h.current})},100);T.finally(()=>{clearInterval(C)})};return w.jsxs("div",{children:[w.jsx("h1",{children:"Demo Modals"}),w.jsx("p",{children:"Modals, Drawers are a major solved issue in the Fireback react.js. In here we make some examples. The core system is called `overlay`, can be used to show portals such as modal, drawer, alerts..."}),w.jsx("hr",{}),w.jsxs(hc,{children:[w.jsx("h2",{children:"Opening a drawer"}),w.jsx("p",{children:"Every component can be shown as modal, or in a drawer in Fireback."}),w.jsx("button",{className:"btn btn-sm btn-secondary",onClick:()=>a(),children:"Open a text in drawer"}),w.jsx(aa,{codeString:pc.example1})]}),w.jsxs(hc,{children:[w.jsx("h2",{children:"Opening a drawer, from left"}),w.jsx("p",{children:"Shows a drawer from left, also larger"}),w.jsx("button",{className:"btn btn-sm btn-secondary",onClick:()=>i(),children:"Open a text in drawer"}),w.jsx(aa,{codeString:pc.example2})]}),w.jsxs(hc,{children:[w.jsx("h2",{children:"Opening a modal, and get result"}),w.jsx("p",{children:"You can open a modal or drawer, and make some operation in it, and send back the result as a promise."}),w.jsx("button",{className:"btn btn-sm btn-secondary",onClick:()=>o(),children:"Open a text in drawer"}),w.jsx(aa,{codeString:pc.example3})]}),w.jsxs(hc,{children:[w.jsx("h2",{children:"Opening multiple"}),w.jsx("p",{children:"You can open multiple modals, or drawers, doesn't matter."}),w.jsx("button",{className:"btn btn-sm btn-secondary",onClick:()=>l(),children:"Open 2 modal, and open 2 drawer"}),w.jsx(aa,{codeString:pc.example4})]}),w.jsxs(hc,{children:[w.jsx("h2",{children:"Auto disappearing"}),w.jsx("p",{children:"A modal which disappears after 5 seconds"}),w.jsx("button",{className:"btn btn-sm btn-secondary",onClick:()=>u(),children:"Run"}),w.jsx(aa,{codeString:pc.example5})]}),w.jsxs(hc,{children:[w.jsx("h2",{children:"Control from outside"}),w.jsx("p",{children:"Sometimes you want to open a drawer, and then from outside component close it."}),w.jsx("button",{className:"btn btn-sm btn-secondary",onClick:()=>d(),children:"Open but close from outside"}),w.jsx(aa,{codeString:pc.example6})]}),w.jsxs(hc,{children:[w.jsx("h2",{children:"Prevent close"}),w.jsx("p",{children:"When a drawer or modal is open, you can prevent the close."}),w.jsx("button",{className:"btn btn-sm btn-secondary",onClick:()=>f(),children:"Open but ask before close"}),w.jsx(aa,{codeString:pc.example7})]}),w.jsxs(hc,{children:[w.jsx("h2",{children:"Confirm Dialog (drawer)"}),w.jsx("p",{children:"There is a set of ready to use dialogs, such as confirm"}),w.jsx("button",{className:"btn btn-sm btn-secondary",onClick:()=>g(),children:"Open the confirm"}),w.jsx(aa,{codeString:pc.example8})]}),w.jsxs(hc,{children:[w.jsx("h2",{children:"Confirm Dialog (modal)"}),w.jsx("p",{children:"There is a set of ready to use dialogs, such as confirm"}),w.jsx("button",{className:"btn btn-sm btn-secondary",onClick:()=>y(),children:"Open the confirm"}),w.jsx(aa,{codeString:pc.example9})]}),w.jsxs(hc,{children:[w.jsx("h2",{children:"Update params from outside"}),w.jsx("p",{children:"In rare cases, you might want to update the params from the outside."}),w.jsx("button",{className:"btn btn-sm btn-secondary",onClick:()=>v(),children:"Open & Update name"}),w.jsx(aa,{codeString:pc.example10})]}),w.jsx("br",{}),w.jsx("br",{}),w.jsx("br",{})]})}var rL={},l1={},u1={},bv={};function yt(e){if(e===null||e===!0||e===!1)return NaN;var t=Number(e);return isNaN(t)?t:t<0?Math.ceil(t):Math.floor(t)}function he(e,t){if(t.length1?"s":"")+" required, but only "+t.length+" present")}function Re(e){he(1,arguments);var t=Object.prototype.toString.call(e);return e instanceof Date||oo(e)==="object"&&t==="[object Date]"?new Date(e.getTime()):typeof e=="number"||t==="[object Number]"?new Date(e):((typeof e=="string"||t==="[object String]")&&typeof console<"u"&&(console.warn("Starting with v2.0.0-beta.1 date-fns doesn't accept strings as date arguments. Please use `parseISO` to parse strings. See: https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#string-arguments"),console.warn(new Error().stack)),new Date(NaN))}function Nc(e,t){he(2,arguments);var n=Re(e),r=yt(t);return isNaN(r)?new Date(NaN):(r&&n.setDate(n.getDate()+r),n)}function kT(e,t){he(2,arguments);var n=Re(e),r=yt(t);if(isNaN(r))return new Date(NaN);if(!r)return n;var a=n.getDate(),i=new Date(n.getTime());i.setMonth(n.getMonth()+r+1,0);var o=i.getDate();return a>=o?i:(n.setFullYear(i.getFullYear(),i.getMonth(),a),n)}function Jb(e,t){if(he(2,arguments),!t||oo(t)!=="object")return new Date(NaN);var n=t.years?yt(t.years):0,r=t.months?yt(t.months):0,a=t.weeks?yt(t.weeks):0,i=t.days?yt(t.days):0,o=t.hours?yt(t.hours):0,l=t.minutes?yt(t.minutes):0,u=t.seconds?yt(t.seconds):0,d=Re(e),f=r||n?kT(d,r+n*12):d,g=i||a?Nc(f,i+a*7):f,y=l+o*60,h=u+y*60,v=h*1e3,E=new Date(g.getTime()+v);return E}function E0(e){he(1,arguments);var t=Re(e),n=t.getDay();return n===0||n===6}function R4(e){return he(1,arguments),Re(e).getDay()===0}function Zre(e){return he(1,arguments),Re(e).getDay()===6}function eae(e,t){he(2,arguments);var n=Re(e),r=E0(n),a=yt(t);if(isNaN(a))return new Date(NaN);var i=n.getHours(),o=a<0?-1:1,l=yt(a/5);n.setDate(n.getDate()+l*7);for(var u=Math.abs(a%5);u>0;)n.setDate(n.getDate()+o),E0(n)||(u-=1);return r&&E0(n)&&a!==0&&(Zre(n)&&n.setDate(n.getDate()+(o<0?2:-1)),R4(n)&&n.setDate(n.getDate()+(o<0?1:-2))),n.setHours(i),n}function xT(e,t){he(2,arguments);var n=Re(e).getTime(),r=yt(t);return new Date(n+r)}var $8e=36e5;function P4(e,t){he(2,arguments);var n=yt(t);return xT(e,n*$8e)}var tae={};function Qa(){return tae}function L8e(e){tae=e}function $l(e,t){var n,r,a,i,o,l,u,d;he(1,arguments);var f=Qa(),g=yt((n=(r=(a=(i=t==null?void 0:t.weekStartsOn)!==null&&i!==void 0?i:t==null||(o=t.locale)===null||o===void 0||(l=o.options)===null||l===void 0?void 0:l.weekStartsOn)!==null&&a!==void 0?a:f.weekStartsOn)!==null&&r!==void 0?r:(u=f.locale)===null||u===void 0||(d=u.options)===null||d===void 0?void 0:d.weekStartsOn)!==null&&n!==void 0?n:0);if(!(g>=0&&g<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var y=Re(e),h=y.getDay(),v=(h=a.getTime()?n+1:t.getTime()>=o.getTime()?n:n-1}function wh(e){he(1,arguments);var t=iy(e),n=new Date(0);n.setFullYear(t,0,4),n.setHours(0,0,0,0);var r=nf(n);return r}function Bo(e){var t=new Date(Date.UTC(e.getFullYear(),e.getMonth(),e.getDate(),e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds()));return t.setUTCFullYear(e.getFullYear()),e.getTime()-t.getTime()}function $0(e){he(1,arguments);var t=Re(e);return t.setHours(0,0,0,0),t}var F8e=864e5;function Rc(e,t){he(2,arguments);var n=$0(e),r=$0(t),a=n.getTime()-Bo(n),i=r.getTime()-Bo(r);return Math.round((a-i)/F8e)}function nae(e,t){he(2,arguments);var n=Re(e),r=yt(t),a=Rc(n,wh(n)),i=new Date(0);return i.setFullYear(r,0,4),i.setHours(0,0,0,0),n=wh(i),n.setDate(n.getDate()+a),n}function rae(e,t){he(2,arguments);var n=yt(t);return nae(e,iy(e)+n)}var j8e=6e4;function A4(e,t){he(2,arguments);var n=yt(t);return xT(e,n*j8e)}function N4(e,t){he(2,arguments);var n=yt(t),r=n*3;return kT(e,r)}function aae(e,t){he(2,arguments);var n=yt(t);return xT(e,n*1e3)}function gO(e,t){he(2,arguments);var n=yt(t),r=n*7;return Nc(e,r)}function iae(e,t){he(2,arguments);var n=yt(t);return kT(e,n*12)}function U8e(e,t,n){he(2,arguments);var r=Re(e==null?void 0:e.start).getTime(),a=Re(e==null?void 0:e.end).getTime(),i=Re(t==null?void 0:t.start).getTime(),o=Re(t==null?void 0:t.end).getTime();if(!(r<=a&&i<=o))throw new RangeError("Invalid interval");return n!=null&&n.inclusive?r<=o&&i<=a:ra||isNaN(a.getDate()))&&(n=a)}),n||new Date(NaN)}function B8e(e,t){var n=t.start,r=t.end;return he(2,arguments),sae([oae([e,n]),r])}function W8e(e,t){he(2,arguments);var n=Re(e);if(isNaN(Number(n)))return NaN;var r=n.getTime(),a;t==null?a=[]:typeof t.forEach=="function"?a=t:a=Array.prototype.slice.call(t);var i,o;return a.forEach(function(l,u){var d=Re(l);if(isNaN(Number(d))){i=NaN,o=NaN;return}var f=Math.abs(r-d.getTime());(i==null||f0?1:a}function q8e(e,t){he(2,arguments);var n=Re(e),r=Re(t),a=n.getTime()-r.getTime();return a>0?-1:a<0?1:a}var M4=7,lae=365.2425,uae=Math.pow(10,8)*24*60*60*1e3,yy=6e4,by=36e5,vO=1e3,H8e=-uae,I4=60,D4=3,$4=12,L4=4,_T=3600,yO=60,bO=_T*24,cae=bO*7,F4=bO*lae,j4=F4/12,dae=j4*3;function V8e(e){he(1,arguments);var t=e/M4;return Math.floor(t)}function OT(e,t){he(2,arguments);var n=$0(e),r=$0(t);return n.getTime()===r.getTime()}function fae(e){return he(1,arguments),e instanceof Date||oo(e)==="object"&&Object.prototype.toString.call(e)==="[object Date]"}function rf(e){if(he(1,arguments),!fae(e)&&typeof e!="number")return!1;var t=Re(e);return!isNaN(Number(t))}function G8e(e,t){he(2,arguments);var n=Re(e),r=Re(t);if(!rf(n)||!rf(r))return NaN;var a=Rc(n,r),i=a<0?-1:1,o=yt(a/7),l=o*5;for(r=Nc(r,o*7);!OT(n,r);)l+=E0(r)?0:i,r=Nc(r,i);return l===0?0:l}function pae(e,t){return he(2,arguments),iy(e)-iy(t)}var Y8e=6048e5;function K8e(e,t){he(2,arguments);var n=nf(e),r=nf(t),a=n.getTime()-Bo(n),i=r.getTime()-Bo(r);return Math.round((a-i)/Y8e)}function h_(e,t){he(2,arguments);var n=Re(e),r=Re(t),a=n.getFullYear()-r.getFullYear(),i=n.getMonth()-r.getMonth();return a*12+i}function sF(e){he(1,arguments);var t=Re(e),n=Math.floor(t.getMonth()/3)+1;return n}function Ex(e,t){he(2,arguments);var n=Re(e),r=Re(t),a=n.getFullYear()-r.getFullYear(),i=sF(n)-sF(r);return a*4+i}var X8e=6048e5;function m_(e,t,n){he(2,arguments);var r=$l(e,n),a=$l(t,n),i=r.getTime()-Bo(r),o=a.getTime()-Bo(a);return Math.round((i-o)/X8e)}function nE(e,t){he(2,arguments);var n=Re(e),r=Re(t);return n.getFullYear()-r.getFullYear()}function LG(e,t){var n=e.getFullYear()-t.getFullYear()||e.getMonth()-t.getMonth()||e.getDate()-t.getDate()||e.getHours()-t.getHours()||e.getMinutes()-t.getMinutes()||e.getSeconds()-t.getSeconds()||e.getMilliseconds()-t.getMilliseconds();return n<0?-1:n>0?1:n}function U4(e,t){he(2,arguments);var n=Re(e),r=Re(t),a=LG(n,r),i=Math.abs(Rc(n,r));n.setDate(n.getDate()-a*i);var o=+(LG(n,r)===-a),l=a*(i-o);return l===0?0:l}function wO(e,t){return he(2,arguments),Re(e).getTime()-Re(t).getTime()}var FG={ceil:Math.ceil,round:Math.round,floor:Math.floor,trunc:function(t){return t<0?Math.ceil(t):Math.floor(t)}},Q8e="trunc";function Z0(e){return e?FG[e]:FG[Q8e]}function g_(e,t,n){he(2,arguments);var r=wO(e,t)/by;return Z0(n==null?void 0:n.roundingMethod)(r)}function hae(e,t){he(2,arguments);var n=yt(t);return rae(e,-n)}function J8e(e,t){he(2,arguments);var n=Re(e),r=Re(t),a=_u(n,r),i=Math.abs(pae(n,r));n=hae(n,a*i);var o=+(_u(n,r)===-a),l=a*(i-o);return l===0?0:l}function v_(e,t,n){he(2,arguments);var r=wO(e,t)/yy;return Z0(n==null?void 0:n.roundingMethod)(r)}function B4(e){he(1,arguments);var t=Re(e);return t.setHours(23,59,59,999),t}function W4(e){he(1,arguments);var t=Re(e),n=t.getMonth();return t.setFullYear(t.getFullYear(),n+1,0),t.setHours(23,59,59,999),t}function mae(e){he(1,arguments);var t=Re(e);return B4(t).getTime()===W4(t).getTime()}function SO(e,t){he(2,arguments);var n=Re(e),r=Re(t),a=_u(n,r),i=Math.abs(h_(n,r)),o;if(i<1)o=0;else{n.getMonth()===1&&n.getDate()>27&&n.setDate(30),n.setMonth(n.getMonth()-a*i);var l=_u(n,r)===-a;mae(Re(e))&&i===1&&_u(e,r)===1&&(l=!1),o=a*(i-Number(l))}return o===0?0:o}function Z8e(e,t,n){he(2,arguments);var r=SO(e,t)/3;return Z0(n==null?void 0:n.roundingMethod)(r)}function T0(e,t,n){he(2,arguments);var r=wO(e,t)/1e3;return Z0(n==null?void 0:n.roundingMethod)(r)}function e5e(e,t,n){he(2,arguments);var r=U4(e,t)/7;return Z0(n==null?void 0:n.roundingMethod)(r)}function gae(e,t){he(2,arguments);var n=Re(e),r=Re(t),a=_u(n,r),i=Math.abs(nE(n,r));n.setFullYear(1584),r.setFullYear(1584);var o=_u(n,r)===-a,l=a*(i-Number(o));return l===0?0:l}function vae(e,t){var n;he(1,arguments);var r=e||{},a=Re(r.start),i=Re(r.end),o=i.getTime();if(!(a.getTime()<=o))throw new RangeError("Invalid interval");var l=[],u=a;u.setHours(0,0,0,0);var d=Number((n=t==null?void 0:t.step)!==null&&n!==void 0?n:1);if(d<1||isNaN(d))throw new RangeError("`options.step` must be a number greater than 1");for(;u.getTime()<=o;)l.push(Re(u)),u.setDate(u.getDate()+d),u.setHours(0,0,0,0);return l}function t5e(e,t){var n;he(1,arguments);var r=e||{},a=Re(r.start),i=Re(r.end),o=a.getTime(),l=i.getTime();if(!(o<=l))throw new RangeError("Invalid interval");var u=[],d=a;d.setMinutes(0,0,0);var f=Number((n=t==null?void 0:t.step)!==null&&n!==void 0?n:1);if(f<1||isNaN(f))throw new RangeError("`options.step` must be a number greater than 1");for(;d.getTime()<=l;)u.push(Re(d)),d=P4(d,f);return u}function y_(e){he(1,arguments);var t=Re(e);return t.setSeconds(0,0),t}function n5e(e,t){var n;he(1,arguments);var r=y_(Re(e.start)),a=Re(e.end),i=r.getTime(),o=a.getTime();if(i>=o)throw new RangeError("Invalid interval");var l=[],u=r,d=Number((n=t==null?void 0:t.step)!==null&&n!==void 0?n:1);if(d<1||isNaN(d))throw new RangeError("`options.step` must be a number equal to or greater than 1");for(;u.getTime()<=o;)l.push(Re(u)),u=A4(u,d);return l}function r5e(e){he(1,arguments);var t=e||{},n=Re(t.start),r=Re(t.end),a=r.getTime(),i=[];if(!(n.getTime()<=a))throw new RangeError("Invalid interval");var o=n;for(o.setHours(0,0,0,0),o.setDate(1);o.getTime()<=a;)i.push(Re(o)),o.setMonth(o.getMonth()+1);return i}function KE(e){he(1,arguments);var t=Re(e),n=t.getMonth(),r=n-n%3;return t.setMonth(r,1),t.setHours(0,0,0,0),t}function a5e(e){he(1,arguments);var t=e||{},n=Re(t.start),r=Re(t.end),a=r.getTime();if(!(n.getTime()<=a))throw new RangeError("Invalid interval");var i=KE(n),o=KE(r);a=o.getTime();for(var l=[],u=i;u.getTime()<=a;)l.push(Re(u)),u=N4(u,1);return l}function i5e(e,t){he(1,arguments);var n=e||{},r=Re(n.start),a=Re(n.end),i=a.getTime();if(!(r.getTime()<=i))throw new RangeError("Invalid interval");var o=$l(r,t),l=$l(a,t);o.setHours(15),l.setHours(15),i=l.getTime();for(var u=[],d=o;d.getTime()<=i;)d.setHours(0),u.push(Re(d)),d=gO(d,1),d.setHours(15);return u}function z4(e){he(1,arguments);for(var t=vae(e),n=[],r=0;r=0&&g<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var y=Re(e),h=y.getDay(),v=(h=a.getTime()?n+1:t.getTime()>=o.getTime()?n:n-1}function S5e(e){he(1,arguments);var t=wae(e),n=new Date(0);n.setUTCFullYear(t,0,4),n.setUTCHours(0,0,0,0);var r=F0(n);return r}var E5e=6048e5;function Sae(e){he(1,arguments);var t=Re(e),n=F0(t).getTime()-S5e(t).getTime();return Math.round(n/E5e)+1}function af(e,t){var n,r,a,i,o,l,u,d;he(1,arguments);var f=Qa(),g=yt((n=(r=(a=(i=t==null?void 0:t.weekStartsOn)!==null&&i!==void 0?i:t==null||(o=t.locale)===null||o===void 0||(l=o.options)===null||l===void 0?void 0:l.weekStartsOn)!==null&&a!==void 0?a:f.weekStartsOn)!==null&&r!==void 0?r:(u=f.locale)===null||u===void 0||(d=u.options)===null||d===void 0?void 0:d.weekStartsOn)!==null&&n!==void 0?n:0);if(!(g>=0&&g<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var y=Re(e),h=y.getUTCDay(),v=(h=1&&h<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var v=new Date(0);v.setUTCFullYear(g+1,0,h),v.setUTCHours(0,0,0,0);var E=af(v,t),T=new Date(0);T.setUTCFullYear(g,0,h),T.setUTCHours(0,0,0,0);var C=af(T,t);return f.getTime()>=E.getTime()?g+1:f.getTime()>=C.getTime()?g:g-1}function T5e(e,t){var n,r,a,i,o,l,u,d;he(1,arguments);var f=Qa(),g=yt((n=(r=(a=(i=t==null?void 0:t.firstWeekContainsDate)!==null&&i!==void 0?i:t==null||(o=t.locale)===null||o===void 0||(l=o.options)===null||l===void 0?void 0:l.firstWeekContainsDate)!==null&&a!==void 0?a:f.firstWeekContainsDate)!==null&&r!==void 0?r:(u=f.locale)===null||u===void 0||(d=u.options)===null||d===void 0?void 0:d.firstWeekContainsDate)!==null&&n!==void 0?n:1),y=H4(e,t),h=new Date(0);h.setUTCFullYear(y,0,g),h.setUTCHours(0,0,0,0);var v=af(h,t);return v}var C5e=6048e5;function Eae(e,t){he(1,arguments);var n=Re(e),r=af(n,t).getTime()-T5e(n,t).getTime();return Math.round(r/C5e)+1}function Zt(e,t){for(var n=e<0?"-":"",r=Math.abs(e).toString();r.length0?r:1-r;return Zt(n==="yy"?a%100:a,n.length)},M:function(t,n){var r=t.getUTCMonth();return n==="M"?String(r+1):Zt(r+1,2)},d:function(t,n){return Zt(t.getUTCDate(),n.length)},a:function(t,n){var r=t.getUTCHours()/12>=1?"pm":"am";switch(n){case"a":case"aa":return r.toUpperCase();case"aaa":return r;case"aaaaa":return r[0];case"aaaa":default:return r==="am"?"a.m.":"p.m."}},h:function(t,n){return Zt(t.getUTCHours()%12||12,n.length)},H:function(t,n){return Zt(t.getUTCHours(),n.length)},m:function(t,n){return Zt(t.getUTCMinutes(),n.length)},s:function(t,n){return Zt(t.getUTCSeconds(),n.length)},S:function(t,n){var r=n.length,a=t.getUTCMilliseconds(),i=Math.floor(a*Math.pow(10,r-3));return Zt(i,n.length)}},zb={midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},k5e={G:function(t,n,r){var a=t.getUTCFullYear()>0?1:0;switch(n){case"G":case"GG":case"GGG":return r.era(a,{width:"abbreviated"});case"GGGGG":return r.era(a,{width:"narrow"});case"GGGG":default:return r.era(a,{width:"wide"})}},y:function(t,n,r){if(n==="yo"){var a=t.getUTCFullYear(),i=a>0?a:1-a;return r.ordinalNumber(i,{unit:"year"})}return Ad.y(t,n)},Y:function(t,n,r,a){var i=H4(t,a),o=i>0?i:1-i;if(n==="YY"){var l=o%100;return Zt(l,2)}return n==="Yo"?r.ordinalNumber(o,{unit:"year"}):Zt(o,n.length)},R:function(t,n){var r=wae(t);return Zt(r,n.length)},u:function(t,n){var r=t.getUTCFullYear();return Zt(r,n.length)},Q:function(t,n,r){var a=Math.ceil((t.getUTCMonth()+1)/3);switch(n){case"Q":return String(a);case"QQ":return Zt(a,2);case"Qo":return r.ordinalNumber(a,{unit:"quarter"});case"QQQ":return r.quarter(a,{width:"abbreviated",context:"formatting"});case"QQQQQ":return r.quarter(a,{width:"narrow",context:"formatting"});case"QQQQ":default:return r.quarter(a,{width:"wide",context:"formatting"})}},q:function(t,n,r){var a=Math.ceil((t.getUTCMonth()+1)/3);switch(n){case"q":return String(a);case"qq":return Zt(a,2);case"qo":return r.ordinalNumber(a,{unit:"quarter"});case"qqq":return r.quarter(a,{width:"abbreviated",context:"standalone"});case"qqqqq":return r.quarter(a,{width:"narrow",context:"standalone"});case"qqqq":default:return r.quarter(a,{width:"wide",context:"standalone"})}},M:function(t,n,r){var a=t.getUTCMonth();switch(n){case"M":case"MM":return Ad.M(t,n);case"Mo":return r.ordinalNumber(a+1,{unit:"month"});case"MMM":return r.month(a,{width:"abbreviated",context:"formatting"});case"MMMMM":return r.month(a,{width:"narrow",context:"formatting"});case"MMMM":default:return r.month(a,{width:"wide",context:"formatting"})}},L:function(t,n,r){var a=t.getUTCMonth();switch(n){case"L":return String(a+1);case"LL":return Zt(a+1,2);case"Lo":return r.ordinalNumber(a+1,{unit:"month"});case"LLL":return r.month(a,{width:"abbreviated",context:"standalone"});case"LLLLL":return r.month(a,{width:"narrow",context:"standalone"});case"LLLL":default:return r.month(a,{width:"wide",context:"standalone"})}},w:function(t,n,r,a){var i=Eae(t,a);return n==="wo"?r.ordinalNumber(i,{unit:"week"}):Zt(i,n.length)},I:function(t,n,r){var a=Sae(t);return n==="Io"?r.ordinalNumber(a,{unit:"week"}):Zt(a,n.length)},d:function(t,n,r){return n==="do"?r.ordinalNumber(t.getUTCDate(),{unit:"date"}):Ad.d(t,n)},D:function(t,n,r){var a=w5e(t);return n==="Do"?r.ordinalNumber(a,{unit:"dayOfYear"}):Zt(a,n.length)},E:function(t,n,r){var a=t.getUTCDay();switch(n){case"E":case"EE":case"EEE":return r.day(a,{width:"abbreviated",context:"formatting"});case"EEEEE":return r.day(a,{width:"narrow",context:"formatting"});case"EEEEEE":return r.day(a,{width:"short",context:"formatting"});case"EEEE":default:return r.day(a,{width:"wide",context:"formatting"})}},e:function(t,n,r,a){var i=t.getUTCDay(),o=(i-a.weekStartsOn+8)%7||7;switch(n){case"e":return String(o);case"ee":return Zt(o,2);case"eo":return r.ordinalNumber(o,{unit:"day"});case"eee":return r.day(i,{width:"abbreviated",context:"formatting"});case"eeeee":return r.day(i,{width:"narrow",context:"formatting"});case"eeeeee":return r.day(i,{width:"short",context:"formatting"});case"eeee":default:return r.day(i,{width:"wide",context:"formatting"})}},c:function(t,n,r,a){var i=t.getUTCDay(),o=(i-a.weekStartsOn+8)%7||7;switch(n){case"c":return String(o);case"cc":return Zt(o,n.length);case"co":return r.ordinalNumber(o,{unit:"day"});case"ccc":return r.day(i,{width:"abbreviated",context:"standalone"});case"ccccc":return r.day(i,{width:"narrow",context:"standalone"});case"cccccc":return r.day(i,{width:"short",context:"standalone"});case"cccc":default:return r.day(i,{width:"wide",context:"standalone"})}},i:function(t,n,r){var a=t.getUTCDay(),i=a===0?7:a;switch(n){case"i":return String(i);case"ii":return Zt(i,n.length);case"io":return r.ordinalNumber(i,{unit:"day"});case"iii":return r.day(a,{width:"abbreviated",context:"formatting"});case"iiiii":return r.day(a,{width:"narrow",context:"formatting"});case"iiiiii":return r.day(a,{width:"short",context:"formatting"});case"iiii":default:return r.day(a,{width:"wide",context:"formatting"})}},a:function(t,n,r){var a=t.getUTCHours(),i=a/12>=1?"pm":"am";switch(n){case"a":case"aa":return r.dayPeriod(i,{width:"abbreviated",context:"formatting"});case"aaa":return r.dayPeriod(i,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return r.dayPeriod(i,{width:"narrow",context:"formatting"});case"aaaa":default:return r.dayPeriod(i,{width:"wide",context:"formatting"})}},b:function(t,n,r){var a=t.getUTCHours(),i;switch(a===12?i=zb.noon:a===0?i=zb.midnight:i=a/12>=1?"pm":"am",n){case"b":case"bb":return r.dayPeriod(i,{width:"abbreviated",context:"formatting"});case"bbb":return r.dayPeriod(i,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return r.dayPeriod(i,{width:"narrow",context:"formatting"});case"bbbb":default:return r.dayPeriod(i,{width:"wide",context:"formatting"})}},B:function(t,n,r){var a=t.getUTCHours(),i;switch(a>=17?i=zb.evening:a>=12?i=zb.afternoon:a>=4?i=zb.morning:i=zb.night,n){case"B":case"BB":case"BBB":return r.dayPeriod(i,{width:"abbreviated",context:"formatting"});case"BBBBB":return r.dayPeriod(i,{width:"narrow",context:"formatting"});case"BBBB":default:return r.dayPeriod(i,{width:"wide",context:"formatting"})}},h:function(t,n,r){if(n==="ho"){var a=t.getUTCHours()%12;return a===0&&(a=12),r.ordinalNumber(a,{unit:"hour"})}return Ad.h(t,n)},H:function(t,n,r){return n==="Ho"?r.ordinalNumber(t.getUTCHours(),{unit:"hour"}):Ad.H(t,n)},K:function(t,n,r){var a=t.getUTCHours()%12;return n==="Ko"?r.ordinalNumber(a,{unit:"hour"}):Zt(a,n.length)},k:function(t,n,r){var a=t.getUTCHours();return a===0&&(a=24),n==="ko"?r.ordinalNumber(a,{unit:"hour"}):Zt(a,n.length)},m:function(t,n,r){return n==="mo"?r.ordinalNumber(t.getUTCMinutes(),{unit:"minute"}):Ad.m(t,n)},s:function(t,n,r){return n==="so"?r.ordinalNumber(t.getUTCSeconds(),{unit:"second"}):Ad.s(t,n)},S:function(t,n){return Ad.S(t,n)},X:function(t,n,r,a){var i=a._originalDate||t,o=i.getTimezoneOffset();if(o===0)return"Z";switch(n){case"X":return UG(o);case"XXXX":case"XX":return Ov(o);case"XXXXX":case"XXX":default:return Ov(o,":")}},x:function(t,n,r,a){var i=a._originalDate||t,o=i.getTimezoneOffset();switch(n){case"x":return UG(o);case"xxxx":case"xx":return Ov(o);case"xxxxx":case"xxx":default:return Ov(o,":")}},O:function(t,n,r,a){var i=a._originalDate||t,o=i.getTimezoneOffset();switch(n){case"O":case"OO":case"OOO":return"GMT"+jG(o,":");case"OOOO":default:return"GMT"+Ov(o,":")}},z:function(t,n,r,a){var i=a._originalDate||t,o=i.getTimezoneOffset();switch(n){case"z":case"zz":case"zzz":return"GMT"+jG(o,":");case"zzzz":default:return"GMT"+Ov(o,":")}},t:function(t,n,r,a){var i=a._originalDate||t,o=Math.floor(i.getTime()/1e3);return Zt(o,n.length)},T:function(t,n,r,a){var i=a._originalDate||t,o=i.getTime();return Zt(o,n.length)}};function jG(e,t){var n=e>0?"-":"+",r=Math.abs(e),a=Math.floor(r/60),i=r%60;if(i===0)return n+String(a);var o=t;return n+String(a)+o+Zt(i,2)}function UG(e,t){if(e%60===0){var n=e>0?"-":"+";return n+Zt(Math.abs(e)/60,2)}return Ov(e,t)}function Ov(e,t){var n=t||"",r=e>0?"-":"+",a=Math.abs(e),i=Zt(Math.floor(a/60),2),o=Zt(a%60,2);return r+i+n+o}var BG=function(t,n){switch(t){case"P":return n.date({width:"short"});case"PP":return n.date({width:"medium"});case"PPP":return n.date({width:"long"});case"PPPP":default:return n.date({width:"full"})}},Tae=function(t,n){switch(t){case"p":return n.time({width:"short"});case"pp":return n.time({width:"medium"});case"ppp":return n.time({width:"long"});case"pppp":default:return n.time({width:"full"})}},x5e=function(t,n){var r=t.match(/(P+)(p+)?/)||[],a=r[1],i=r[2];if(!i)return BG(t,n);var o;switch(a){case"P":o=n.dateTime({width:"short"});break;case"PP":o=n.dateTime({width:"medium"});break;case"PPP":o=n.dateTime({width:"long"});break;case"PPPP":default:o=n.dateTime({width:"full"});break}return o.replace("{{date}}",BG(a,n)).replace("{{time}}",Tae(i,n))},lF={p:Tae,P:x5e},_5e=["D","DD"],O5e=["YY","YYYY"];function Cae(e){return _5e.indexOf(e)!==-1}function kae(e){return O5e.indexOf(e)!==-1}function b_(e,t,n){if(e==="YYYY")throw new RangeError("Use `yyyy` instead of `YYYY` (in `".concat(t,"`) for formatting years to the input `").concat(n,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if(e==="YY")throw new RangeError("Use `yy` instead of `YY` (in `".concat(t,"`) for formatting years to the input `").concat(n,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if(e==="D")throw new RangeError("Use `d` instead of `D` (in `".concat(t,"`) for formatting days of the month to the input `").concat(n,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if(e==="DD")throw new RangeError("Use `dd` instead of `DD` (in `".concat(t,"`) for formatting days of the month to the input `").concat(n,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"))}var R5e={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}},V4=function(t,n,r){var a,i=R5e[t];return typeof i=="string"?a=i:n===1?a=i.one:a=i.other.replace("{{count}}",n.toString()),r!=null&&r.addSuffix?r.comparison&&r.comparison>0?"in "+a:a+" ago":a};function Ne(e){return function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=t.width?String(t.width):e.defaultWidth,r=e.formats[n]||e.formats[e.defaultWidth];return r}}var P5e={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},A5e={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},N5e={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},M5e={date:Ne({formats:P5e,defaultWidth:"full"}),time:Ne({formats:A5e,defaultWidth:"full"}),dateTime:Ne({formats:N5e,defaultWidth:"full"})},I5e={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},TO=function(t,n,r,a){return I5e[t]};function oe(e){return function(t,n){var r=n!=null&&n.context?String(n.context):"standalone",a;if(r==="formatting"&&e.formattingValues){var i=e.defaultFormattingWidth||e.defaultWidth,o=n!=null&&n.width?String(n.width):i;a=e.formattingValues[o]||e.formattingValues[i]}else{var l=e.defaultWidth,u=n!=null&&n.width?String(n.width):e.defaultWidth;a=e.values[u]||e.values[l]}var d=e.argumentCallback?e.argumentCallback(t):t;return a[d]}}var D5e={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},$5e={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},L5e={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},F5e={narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},j5e={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},U5e={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},B5e=function(t,n){var r=Number(t),a=r%100;if(a>20||a<10)switch(a%10){case 1:return r+"st";case 2:return r+"nd";case 3:return r+"rd"}return r+"th"},CO={ordinalNumber:B5e,era:oe({values:D5e,defaultWidth:"wide"}),quarter:oe({values:$5e,defaultWidth:"wide",argumentCallback:function(t){return t-1}}),month:oe({values:L5e,defaultWidth:"wide"}),day:oe({values:F5e,defaultWidth:"wide"}),dayPeriod:oe({values:j5e,defaultWidth:"wide",formattingValues:U5e,defaultFormattingWidth:"wide"})};function se(e){return function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=n.width,a=r&&e.matchPatterns[r]||e.matchPatterns[e.defaultMatchWidth],i=t.match(a);if(!i)return null;var o=i[0],l=r&&e.parsePatterns[r]||e.parsePatterns[e.defaultParseWidth],u=Array.isArray(l)?z5e(l,function(g){return g.test(o)}):W5e(l,function(g){return g.test(o)}),d;d=e.valueCallback?e.valueCallback(u):u,d=n.valueCallback?n.valueCallback(d):d;var f=t.slice(o.length);return{value:d,rest:f}}}function W5e(e,t){for(var n in e)if(e.hasOwnProperty(n)&&t(e[n]))return n}function z5e(e,t){for(var n=0;n1&&arguments[1]!==void 0?arguments[1]:{},r=t.match(e.matchPattern);if(!r)return null;var a=r[0],i=t.match(e.parsePattern);if(!i)return null;var o=e.valueCallback?e.valueCallback(i[0]):i[0];o=n.valueCallback?n.valueCallback(o):o;var l=t.slice(a.length);return{value:o,rest:l}}}var q5e=/^(\d+)(th|st|nd|rd)?/i,H5e=/\d+/i,V5e={narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},G5e={any:[/^b/i,/^(a|c)/i]},Y5e={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},K5e={any:[/1/i,/2/i,/3/i,/4/i]},X5e={narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},Q5e={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},J5e={narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},Z5e={narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},eWe={narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},tWe={any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},kO={ordinalNumber:Xt({matchPattern:q5e,parsePattern:H5e,valueCallback:function(t){return parseInt(t,10)}}),era:se({matchPatterns:V5e,defaultMatchWidth:"wide",parsePatterns:G5e,defaultParseWidth:"any"}),quarter:se({matchPatterns:Y5e,defaultMatchWidth:"wide",parsePatterns:K5e,defaultParseWidth:"any",valueCallback:function(t){return t+1}}),month:se({matchPatterns:X5e,defaultMatchWidth:"wide",parsePatterns:Q5e,defaultParseWidth:"any"}),day:se({matchPatterns:J5e,defaultMatchWidth:"wide",parsePatterns:Z5e,defaultParseWidth:"any"}),dayPeriod:se({matchPatterns:eWe,defaultMatchWidth:"any",parsePatterns:tWe,defaultParseWidth:"any"})},wy={code:"en-US",formatDistance:V4,formatLong:M5e,formatRelative:TO,localize:CO,match:kO,options:{weekStartsOn:0,firstWeekContainsDate:1}};const nWe=Object.freeze(Object.defineProperty({__proto__:null,default:wy},Symbol.toStringTag,{value:"Module"}));var rWe=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,aWe=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,iWe=/^'([^]*?)'?$/,oWe=/''/g,sWe=/[a-zA-Z]/;function xae(e,t,n){var r,a,i,o,l,u,d,f,g,y,h,v,E,T,C,k,_,A;he(2,arguments);var P=String(t),N=Qa(),I=(r=(a=n==null?void 0:n.locale)!==null&&a!==void 0?a:N.locale)!==null&&r!==void 0?r:wy,L=yt((i=(o=(l=(u=n==null?void 0:n.firstWeekContainsDate)!==null&&u!==void 0?u:n==null||(d=n.locale)===null||d===void 0||(f=d.options)===null||f===void 0?void 0:f.firstWeekContainsDate)!==null&&l!==void 0?l:N.firstWeekContainsDate)!==null&&o!==void 0?o:(g=N.locale)===null||g===void 0||(y=g.options)===null||y===void 0?void 0:y.firstWeekContainsDate)!==null&&i!==void 0?i:1);if(!(L>=1&&L<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var j=yt((h=(v=(E=(T=n==null?void 0:n.weekStartsOn)!==null&&T!==void 0?T:n==null||(C=n.locale)===null||C===void 0||(k=C.options)===null||k===void 0?void 0:k.weekStartsOn)!==null&&E!==void 0?E:N.weekStartsOn)!==null&&v!==void 0?v:(_=N.locale)===null||_===void 0||(A=_.options)===null||A===void 0?void 0:A.weekStartsOn)!==null&&h!==void 0?h:0);if(!(j>=0&&j<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");if(!I.localize)throw new RangeError("locale must contain localize property");if(!I.formatLong)throw new RangeError("locale must contain formatLong property");var z=Re(e);if(!rf(z))throw new RangeError("Invalid time value");var Q=Bo(z),ue=L0(z,Q),re={firstWeekContainsDate:L,weekStartsOn:j,locale:I,_originalDate:z},me=P.match(aWe).map(function(ge){var W=ge[0];if(W==="p"||W==="P"){var G=lF[W];return G(ge,I.formatLong)}return ge}).join("").match(rWe).map(function(ge){if(ge==="''")return"'";var W=ge[0];if(W==="'")return lWe(ge);var G=k5e[W];if(G)return!(n!=null&&n.useAdditionalWeekYearTokens)&&kae(ge)&&b_(ge,t,String(e)),!(n!=null&&n.useAdditionalDayOfYearTokens)&&Cae(ge)&&b_(ge,t,String(e)),G(ue,ge,I.localize,re);if(W.match(sWe))throw new RangeError("Format string contains an unescaped latin alphabet character `"+W+"`");return ge}).join("");return me}function lWe(e){var t=e.match(iWe);return t?t[1].replace(oWe,"'"):e}function RT(e,t){if(e==null)throw new TypeError("assign requires that input parameter not be null or undefined");for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e}function _ae(e){return RT({},e)}var WG=1440,uWe=2520,aL=43200,cWe=86400;function Oae(e,t,n){var r,a;he(2,arguments);var i=Qa(),o=(r=(a=n==null?void 0:n.locale)!==null&&a!==void 0?a:i.locale)!==null&&r!==void 0?r:wy;if(!o.formatDistance)throw new RangeError("locale must contain formatDistance property");var l=_u(e,t);if(isNaN(l))throw new RangeError("Invalid time value");var u=RT(_ae(n),{addSuffix:!!(n!=null&&n.addSuffix),comparison:l}),d,f;l>0?(d=Re(t),f=Re(e)):(d=Re(e),f=Re(t));var g=T0(f,d),y=(Bo(f)-Bo(d))/1e3,h=Math.round((g-y)/60),v;if(h<2)return n!=null&&n.includeSeconds?g<5?o.formatDistance("lessThanXSeconds",5,u):g<10?o.formatDistance("lessThanXSeconds",10,u):g<20?o.formatDistance("lessThanXSeconds",20,u):g<40?o.formatDistance("halfAMinute",0,u):g<60?o.formatDistance("lessThanXMinutes",1,u):o.formatDistance("xMinutes",1,u):h===0?o.formatDistance("lessThanXMinutes",1,u):o.formatDistance("xMinutes",h,u);if(h<45)return o.formatDistance("xMinutes",h,u);if(h<90)return o.formatDistance("aboutXHours",1,u);if(h0?(f=Re(t),g=Re(e)):(f=Re(e),g=Re(t));var y=String((i=n==null?void 0:n.roundingMethod)!==null&&i!==void 0?i:"round"),h;if(y==="floor")h=Math.floor;else if(y==="ceil")h=Math.ceil;else if(y==="round")h=Math.round;else throw new RangeError("roundingMethod must be 'floor', 'ceil' or 'round'");var v=g.getTime()-f.getTime(),E=v/zG,T=Bo(g)-Bo(f),C=(v-T)/zG,k=n==null?void 0:n.unit,_;if(k?_=String(k):E<1?_="second":E<60?_="minute":E=0&&a<=3))throw new RangeError("fractionDigits must be between 0 and 3 inclusively");var i=Zt(r.getDate(),2),o=Zt(r.getMonth()+1,2),l=r.getFullYear(),u=Zt(r.getHours(),2),d=Zt(r.getMinutes(),2),f=Zt(r.getSeconds(),2),g="";if(a>0){var y=r.getMilliseconds(),h=Math.floor(y*Math.pow(10,a-3));g="."+Zt(h,a)}var v="",E=r.getTimezoneOffset();if(E!==0){var T=Math.abs(E),C=Zt(yt(T/60),2),k=Zt(T%60,2),_=E<0?"+":"-";v="".concat(_).concat(C,":").concat(k)}else v="Z";return"".concat(l,"-").concat(o,"-").concat(i,"T").concat(u,":").concat(d,":").concat(f).concat(g).concat(v)}var bWe=["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wWe=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function SWe(e){if(arguments.length<1)throw new TypeError("1 arguments required, but only ".concat(arguments.length," present"));var t=Re(e);if(!rf(t))throw new RangeError("Invalid time value");var n=bWe[t.getUTCDay()],r=Zt(t.getUTCDate(),2),a=wWe[t.getUTCMonth()],i=t.getUTCFullYear(),o=Zt(t.getUTCHours(),2),l=Zt(t.getUTCMinutes(),2),u=Zt(t.getUTCSeconds(),2);return"".concat(n,", ").concat(r," ").concat(a," ").concat(i," ").concat(o,":").concat(l,":").concat(u," GMT")}function EWe(e,t,n){var r,a,i,o,l,u,d,f,g,y;he(2,arguments);var h=Re(e),v=Re(t),E=Qa(),T=(r=(a=n==null?void 0:n.locale)!==null&&a!==void 0?a:E.locale)!==null&&r!==void 0?r:wy,C=yt((i=(o=(l=(u=n==null?void 0:n.weekStartsOn)!==null&&u!==void 0?u:n==null||(d=n.locale)===null||d===void 0||(f=d.options)===null||f===void 0?void 0:f.weekStartsOn)!==null&&l!==void 0?l:E.weekStartsOn)!==null&&o!==void 0?o:(g=E.locale)===null||g===void 0||(y=g.options)===null||y===void 0?void 0:y.weekStartsOn)!==null&&i!==void 0?i:0);if(!T.localize)throw new RangeError("locale must contain localize property");if(!T.formatLong)throw new RangeError("locale must contain formatLong property");if(!T.formatRelative)throw new RangeError("locale must contain formatRelative property");var k=Rc(h,v);if(isNaN(k))throw new RangeError("Invalid time value");var _;k<-6?_="other":k<-1?_="lastWeek":k<0?_="yesterday":k<1?_="today":k<2?_="tomorrow":k<7?_="nextWeek":_="other";var A=L0(h,Bo(h)),P=L0(v,Bo(v)),N=T.formatRelative(_,A,P,{locale:T,weekStartsOn:C});return xae(h,N,{locale:T,weekStartsOn:C})}function TWe(e){he(1,arguments);var t=yt(e);return Re(t*1e3)}function Pae(e){he(1,arguments);var t=Re(e),n=t.getDate();return n}function xO(e){he(1,arguments);var t=Re(e),n=t.getDay();return n}function CWe(e){he(1,arguments);var t=Re(e),n=Rc(t,q4(t)),r=n+1;return r}function Aae(e){he(1,arguments);var t=Re(e),n=t.getFullYear(),r=t.getMonth(),a=new Date(0);return a.setFullYear(n,r+1,0),a.setHours(0,0,0,0),a.getDate()}function Nae(e){he(1,arguments);var t=Re(e),n=t.getFullYear();return n%400===0||n%4===0&&n%100!==0}function kWe(e){he(1,arguments);var t=Re(e);return String(new Date(t))==="Invalid Date"?NaN:Nae(t)?366:365}function xWe(e){he(1,arguments);var t=Re(e),n=t.getFullYear(),r=Math.floor(n/10)*10;return r}function _We(){return RT({},Qa())}function OWe(e){he(1,arguments);var t=Re(e),n=t.getHours();return n}function Mae(e){he(1,arguments);var t=Re(e),n=t.getDay();return n===0&&(n=7),n}var RWe=6048e5;function Iae(e){he(1,arguments);var t=Re(e),n=nf(t).getTime()-wh(t).getTime();return Math.round(n/RWe)+1}var PWe=6048e5;function AWe(e){he(1,arguments);var t=wh(e),n=wh(gO(t,60)),r=n.valueOf()-t.valueOf();return Math.round(r/PWe)}function NWe(e){he(1,arguments);var t=Re(e),n=t.getMilliseconds();return n}function MWe(e){he(1,arguments);var t=Re(e),n=t.getMinutes();return n}function IWe(e){he(1,arguments);var t=Re(e),n=t.getMonth();return n}var DWe=1440*60*1e3;function $We(e,t){he(2,arguments);var n=e||{},r=t||{},a=Re(n.start).getTime(),i=Re(n.end).getTime(),o=Re(r.start).getTime(),l=Re(r.end).getTime();if(!(a<=i&&o<=l))throw new RangeError("Invalid interval");var u=ai?i:l,g=f-d;return Math.ceil(g/DWe)}function LWe(e){he(1,arguments);var t=Re(e),n=t.getSeconds();return n}function Dae(e){he(1,arguments);var t=Re(e),n=t.getTime();return n}function FWe(e){return he(1,arguments),Math.floor(Dae(e)/1e3)}function $ae(e,t){var n,r,a,i,o,l,u,d;he(1,arguments);var f=Re(e),g=f.getFullYear(),y=Qa(),h=yt((n=(r=(a=(i=t==null?void 0:t.firstWeekContainsDate)!==null&&i!==void 0?i:t==null||(o=t.locale)===null||o===void 0||(l=o.options)===null||l===void 0?void 0:l.firstWeekContainsDate)!==null&&a!==void 0?a:y.firstWeekContainsDate)!==null&&r!==void 0?r:(u=y.locale)===null||u===void 0||(d=u.options)===null||d===void 0?void 0:d.firstWeekContainsDate)!==null&&n!==void 0?n:1);if(!(h>=1&&h<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var v=new Date(0);v.setFullYear(g+1,0,h),v.setHours(0,0,0,0);var E=$l(v,t),T=new Date(0);T.setFullYear(g,0,h),T.setHours(0,0,0,0);var C=$l(T,t);return f.getTime()>=E.getTime()?g+1:f.getTime()>=C.getTime()?g:g-1}function S_(e,t){var n,r,a,i,o,l,u,d;he(1,arguments);var f=Qa(),g=yt((n=(r=(a=(i=t==null?void 0:t.firstWeekContainsDate)!==null&&i!==void 0?i:t==null||(o=t.locale)===null||o===void 0||(l=o.options)===null||l===void 0?void 0:l.firstWeekContainsDate)!==null&&a!==void 0?a:f.firstWeekContainsDate)!==null&&r!==void 0?r:(u=f.locale)===null||u===void 0||(d=u.options)===null||d===void 0?void 0:d.firstWeekContainsDate)!==null&&n!==void 0?n:1),y=$ae(e,t),h=new Date(0);h.setFullYear(y,0,g),h.setHours(0,0,0,0);var v=$l(h,t);return v}var jWe=6048e5;function Lae(e,t){he(1,arguments);var n=Re(e),r=$l(n,t).getTime()-S_(n,t).getTime();return Math.round(r/jWe)+1}function UWe(e,t){var n,r,a,i,o,l,u,d;he(1,arguments);var f=Qa(),g=yt((n=(r=(a=(i=t==null?void 0:t.weekStartsOn)!==null&&i!==void 0?i:t==null||(o=t.locale)===null||o===void 0||(l=o.options)===null||l===void 0?void 0:l.weekStartsOn)!==null&&a!==void 0?a:f.weekStartsOn)!==null&&r!==void 0?r:(u=f.locale)===null||u===void 0||(d=u.options)===null||d===void 0?void 0:d.weekStartsOn)!==null&&n!==void 0?n:0);if(!(g>=0&&g<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var y=Pae(e);if(isNaN(y))return NaN;var h=xO(EO(e)),v=g-h;v<=0&&(v+=7);var E=y-v;return Math.ceil(E/7)+1}function Fae(e){he(1,arguments);var t=Re(e),n=t.getMonth();return t.setFullYear(t.getFullYear(),n+1,0),t.setHours(0,0,0,0),t}function BWe(e,t){return he(1,arguments),m_(Fae(e),EO(e),t)+1}function WWe(e){return he(1,arguments),Re(e).getFullYear()}function zWe(e){return he(1,arguments),Math.floor(e*by)}function qWe(e){return he(1,arguments),Math.floor(e*I4)}function HWe(e){return he(1,arguments),Math.floor(e*_T)}function VWe(e){he(1,arguments);var t=Re(e.start),n=Re(e.end);if(isNaN(t.getTime()))throw new RangeError("Start Date is invalid");if(isNaN(n.getTime()))throw new RangeError("End Date is invalid");var r={};r.years=Math.abs(gae(n,t));var a=_u(n,t),i=Jb(t,{years:a*r.years});r.months=Math.abs(SO(n,i));var o=Jb(i,{months:a*r.months});r.days=Math.abs(U4(n,o));var l=Jb(o,{days:a*r.days});r.hours=Math.abs(g_(n,l));var u=Jb(l,{hours:a*r.hours});r.minutes=Math.abs(v_(n,u));var d=Jb(u,{minutes:a*r.minutes});return r.seconds=Math.abs(T0(n,d)),r}function GWe(e,t,n){var r;he(1,arguments);var a;return YWe(t)?a=t:n=t,new Intl.DateTimeFormat((r=n)===null||r===void 0?void 0:r.locale,a).format(e)}function YWe(e){return e!==void 0&&!("locale"in e)}function KWe(e,t,n){he(2,arguments);var r=0,a,i=Re(e),o=Re(t);if(n!=null&&n.unit)a=n==null?void 0:n.unit,a==="second"?r=T0(i,o):a==="minute"?r=v_(i,o):a==="hour"?r=g_(i,o):a==="day"?r=Rc(i,o):a==="week"?r=m_(i,o):a==="month"?r=h_(i,o):a==="quarter"?r=Ex(i,o):a==="year"&&(r=nE(i,o));else{var l=T0(i,o);Math.abs(l)r.getTime()}function QWe(e,t){he(2,arguments);var n=Re(e),r=Re(t);return n.getTime()Date.now()}function VG(e,t){var n=typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=gj(e))||t){n&&(e=n);var r=0,a=function(){};return{s:a,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(d){throw d},f:a}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var i=!0,o=!1,l;return{s:function(){n=n.call(e)},n:function(){var d=n.next();return i=d.done,d},e:function(d){o=!0,l=d},f:function(){try{!i&&n.return!=null&&n.return()}finally{if(o)throw l}}}}var rze=10,jae=(function(){function e(){Xn(this,e),wt(this,"priority",void 0),wt(this,"subPriority",0)}return Qn(e,[{key:"validate",value:function(n,r){return!0}}]),e})(),aze=(function(e){tr(n,e);var t=nr(n);function n(r,a,i,o,l){var u;return Xn(this,n),u=t.call(this),u.value=r,u.validateValue=a,u.setValue=i,u.priority=o,l&&(u.subPriority=l),u}return Qn(n,[{key:"validate",value:function(a,i){return this.validateValue(a,this.value,i)}},{key:"set",value:function(a,i,o){return this.setValue(a,i,this.value,o)}}]),n})(jae),ize=(function(e){tr(n,e);var t=nr(n);function n(){var r;Xn(this,n);for(var a=arguments.length,i=new Array(a),o=0;o0,r=n?t:1-t,a;if(r<=50)a=e||100;else{var i=r+50,o=Math.floor(i/100)*100,l=e>=i%100;a=e+o-(l?100:0)}return n?a:1-a}function Wae(e){return e%400===0||e%4===0&&e%100!==0}var sze=(function(e){tr(n,e);var t=nr(n);function n(){var r;Xn(this,n);for(var a=arguments.length,i=new Array(a),o=0;o0}},{key:"set",value:function(a,i,o){var l=a.getUTCFullYear();if(o.isTwoDigitYear){var u=Bae(o.year,l);return a.setUTCFullYear(u,0,1),a.setUTCHours(0,0,0,0),a}var d=!("era"in i)||i.era===1?o.year:1-o.year;return a.setUTCFullYear(d,0,1),a.setUTCHours(0,0,0,0),a}}]),n})(Sr),lze=(function(e){tr(n,e);var t=nr(n);function n(){var r;Xn(this,n);for(var a=arguments.length,i=new Array(a),o=0;o0}},{key:"set",value:function(a,i,o,l){var u=H4(a,l);if(o.isTwoDigitYear){var d=Bae(o.year,u);return a.setUTCFullYear(d,0,l.firstWeekContainsDate),a.setUTCHours(0,0,0,0),af(a,l)}var f=!("era"in i)||i.era===1?o.year:1-o.year;return a.setUTCFullYear(f,0,l.firstWeekContainsDate),a.setUTCHours(0,0,0,0),af(a,l)}}]),n})(Sr),uze=(function(e){tr(n,e);var t=nr(n);function n(){var r;Xn(this,n);for(var a=arguments.length,i=new Array(a),o=0;o=1&&i<=4}},{key:"set",value:function(a,i,o){return a.setUTCMonth((o-1)*3,1),a.setUTCHours(0,0,0,0),a}}]),n})(Sr),fze=(function(e){tr(n,e);var t=nr(n);function n(){var r;Xn(this,n);for(var a=arguments.length,i=new Array(a),o=0;o=1&&i<=4}},{key:"set",value:function(a,i,o){return a.setUTCMonth((o-1)*3,1),a.setUTCHours(0,0,0,0),a}}]),n})(Sr),pze=(function(e){tr(n,e);var t=nr(n);function n(){var r;Xn(this,n);for(var a=arguments.length,i=new Array(a),o=0;o=0&&i<=11}},{key:"set",value:function(a,i,o){return a.setUTCMonth(o,1),a.setUTCHours(0,0,0,0),a}}]),n})(Sr),hze=(function(e){tr(n,e);var t=nr(n);function n(){var r;Xn(this,n);for(var a=arguments.length,i=new Array(a),o=0;o=0&&i<=11}},{key:"set",value:function(a,i,o){return a.setUTCMonth(o,1),a.setUTCHours(0,0,0,0),a}}]),n})(Sr);function mze(e,t,n){he(2,arguments);var r=Re(e),a=yt(t),i=Eae(r,n)-a;return r.setUTCDate(r.getUTCDate()-i*7),r}var gze=(function(e){tr(n,e);var t=nr(n);function n(){var r;Xn(this,n);for(var a=arguments.length,i=new Array(a),o=0;o=1&&i<=53}},{key:"set",value:function(a,i,o,l){return af(mze(a,o,l),l)}}]),n})(Sr);function vze(e,t){he(2,arguments);var n=Re(e),r=yt(t),a=Sae(n)-r;return n.setUTCDate(n.getUTCDate()-a*7),n}var yze=(function(e){tr(n,e);var t=nr(n);function n(){var r;Xn(this,n);for(var a=arguments.length,i=new Array(a),o=0;o=1&&i<=53}},{key:"set",value:function(a,i,o){return F0(vze(a,o))}}]),n})(Sr),bze=[31,28,31,30,31,30,31,31,30,31,30,31],wze=[31,29,31,30,31,30,31,31,30,31,30,31],Sze=(function(e){tr(n,e);var t=nr(n);function n(){var r;Xn(this,n);for(var a=arguments.length,i=new Array(a),o=0;o=1&&i<=wze[u]:i>=1&&i<=bze[u]}},{key:"set",value:function(a,i,o){return a.setUTCDate(o),a.setUTCHours(0,0,0,0),a}}]),n})(Sr),Eze=(function(e){tr(n,e);var t=nr(n);function n(){var r;Xn(this,n);for(var a=arguments.length,i=new Array(a),o=0;o=1&&i<=366:i>=1&&i<=365}},{key:"set",value:function(a,i,o){return a.setUTCMonth(0,o),a.setUTCHours(0,0,0,0),a}}]),n})(Sr);function Y4(e,t,n){var r,a,i,o,l,u,d,f;he(2,arguments);var g=Qa(),y=yt((r=(a=(i=(o=n==null?void 0:n.weekStartsOn)!==null&&o!==void 0?o:n==null||(l=n.locale)===null||l===void 0||(u=l.options)===null||u===void 0?void 0:u.weekStartsOn)!==null&&i!==void 0?i:g.weekStartsOn)!==null&&a!==void 0?a:(d=g.locale)===null||d===void 0||(f=d.options)===null||f===void 0?void 0:f.weekStartsOn)!==null&&r!==void 0?r:0);if(!(y>=0&&y<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var h=Re(e),v=yt(t),E=h.getUTCDay(),T=v%7,C=(T+7)%7,k=(C=0&&i<=6}},{key:"set",value:function(a,i,o,l){return a=Y4(a,o,l),a.setUTCHours(0,0,0,0),a}}]),n})(Sr),Cze=(function(e){tr(n,e);var t=nr(n);function n(){var r;Xn(this,n);for(var a=arguments.length,i=new Array(a),o=0;o=0&&i<=6}},{key:"set",value:function(a,i,o,l){return a=Y4(a,o,l),a.setUTCHours(0,0,0,0),a}}]),n})(Sr),kze=(function(e){tr(n,e);var t=nr(n);function n(){var r;Xn(this,n);for(var a=arguments.length,i=new Array(a),o=0;o=0&&i<=6}},{key:"set",value:function(a,i,o,l){return a=Y4(a,o,l),a.setUTCHours(0,0,0,0),a}}]),n})(Sr);function xze(e,t){he(2,arguments);var n=yt(t);n%7===0&&(n=n-7);var r=1,a=Re(e),i=a.getUTCDay(),o=n%7,l=(o+7)%7,u=(l=1&&i<=7}},{key:"set",value:function(a,i,o){return a=xze(a,o),a.setUTCHours(0,0,0,0),a}}]),n})(Sr),Oze=(function(e){tr(n,e);var t=nr(n);function n(){var r;Xn(this,n);for(var a=arguments.length,i=new Array(a),o=0;o=1&&i<=12}},{key:"set",value:function(a,i,o){var l=a.getUTCHours()>=12;return l&&o<12?a.setUTCHours(o+12,0,0,0):!l&&o===12?a.setUTCHours(0,0,0,0):a.setUTCHours(o,0,0,0),a}}]),n})(Sr),Nze=(function(e){tr(n,e);var t=nr(n);function n(){var r;Xn(this,n);for(var a=arguments.length,i=new Array(a),o=0;o=0&&i<=23}},{key:"set",value:function(a,i,o){return a.setUTCHours(o,0,0,0),a}}]),n})(Sr),Mze=(function(e){tr(n,e);var t=nr(n);function n(){var r;Xn(this,n);for(var a=arguments.length,i=new Array(a),o=0;o=0&&i<=11}},{key:"set",value:function(a,i,o){var l=a.getUTCHours()>=12;return l&&o<12?a.setUTCHours(o+12,0,0,0):a.setUTCHours(o,0,0,0),a}}]),n})(Sr),Ize=(function(e){tr(n,e);var t=nr(n);function n(){var r;Xn(this,n);for(var a=arguments.length,i=new Array(a),o=0;o=1&&i<=24}},{key:"set",value:function(a,i,o){var l=o<=24?o%24:o;return a.setUTCHours(l,0,0,0),a}}]),n})(Sr),Dze=(function(e){tr(n,e);var t=nr(n);function n(){var r;Xn(this,n);for(var a=arguments.length,i=new Array(a),o=0;o=0&&i<=59}},{key:"set",value:function(a,i,o){return a.setUTCMinutes(o,0,0),a}}]),n})(Sr),$ze=(function(e){tr(n,e);var t=nr(n);function n(){var r;Xn(this,n);for(var a=arguments.length,i=new Array(a),o=0;o=0&&i<=59}},{key:"set",value:function(a,i,o){return a.setUTCSeconds(o,0),a}}]),n})(Sr),Lze=(function(e){tr(n,e);var t=nr(n);function n(){var r;Xn(this,n);for(var a=arguments.length,i=new Array(a),o=0;o=1&&z<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var Q=yt((v=(E=(T=(C=r==null?void 0:r.weekStartsOn)!==null&&C!==void 0?C:r==null||(k=r.locale)===null||k===void 0||(_=k.options)===null||_===void 0?void 0:_.weekStartsOn)!==null&&T!==void 0?T:L.weekStartsOn)!==null&&E!==void 0?E:(A=L.locale)===null||A===void 0||(P=A.options)===null||P===void 0?void 0:P.weekStartsOn)!==null&&v!==void 0?v:0);if(!(Q>=0&&Q<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");if(I==="")return N===""?Re(n):new Date(NaN);var ue={firstWeekContainsDate:z,weekStartsOn:Q,locale:j},re=[new ize],me=I.match(qze).map(function(fe){var xe=fe[0];if(xe in lF){var Ie=lF[xe];return Ie(fe,j.formatLong)}return fe}).join("").match(zze),ge=[],W=VG(me),G;try{var q=function(){var xe=G.value;!(r!=null&&r.useAdditionalWeekYearTokens)&&kae(xe)&&b_(xe,I,e),!(r!=null&&r.useAdditionalDayOfYearTokens)&&Cae(xe)&&b_(xe,I,e);var Ie=xe[0],qe=Wze[Ie];if(qe){var tt=qe.incompatibleTokens;if(Array.isArray(tt)){var Ge=ge.find(function(St){return tt.includes(St.token)||St.token===Ie});if(Ge)throw new RangeError("The format string mustn't contain `".concat(Ge.fullToken,"` and `").concat(xe,"` at the same time"))}else if(qe.incompatibleTokens==="*"&&ge.length>0)throw new RangeError("The format string mustn't contain `".concat(xe,"` and any other token at the same time"));ge.push({token:Ie,fullToken:xe});var rt=qe.run(N,xe,j.match,ue);if(!rt)return{v:new Date(NaN)};re.push(rt.setter),N=rt.rest}else{if(Ie.match(Yze))throw new RangeError("Format string contains an unescaped latin alphabet character `"+Ie+"`");if(xe==="''"?xe="'":Ie==="'"&&(xe=Kze(xe)),N.indexOf(xe)===0)N=N.slice(xe.length);else return{v:new Date(NaN)}}};for(W.s();!(G=W.n()).done;){var ce=q();if(oo(ce)==="object")return ce.v}}catch(fe){W.e(fe)}finally{W.f()}if(N.length>0&&Gze.test(N))return new Date(NaN);var H=re.map(function(fe){return fe.priority}).sort(function(fe,xe){return xe-fe}).filter(function(fe,xe,Ie){return Ie.indexOf(fe)===xe}).map(function(fe){return re.filter(function(xe){return xe.priority===fe}).sort(function(xe,Ie){return Ie.subPriority-xe.subPriority})}).map(function(fe){return fe[0]}),K=Re(n);if(isNaN(K.getTime()))return new Date(NaN);var ae=L0(K,Bo(K)),J={},ee=VG(H),Z;try{for(ee.s();!(Z=ee.n()).done;){var le=Z.value;if(!le.validate(ae,ue))return new Date(NaN);var ke=le.set(ae,J,ue);Array.isArray(ke)?(ae=ke[0],RT(J,ke[1])):ae=ke}}catch(fe){ee.e(fe)}finally{ee.f()}return ae}function Kze(e){return e.match(Hze)[1].replace(Vze,"'")}function Xze(e,t,n){return he(2,arguments),rf(zae(e,t,new Date,n))}function Qze(e){return he(1,arguments),Re(e).getDay()===1}function Jze(e){return he(1,arguments),Re(e).getTime()=r&&n<=a}function _O(e,t){he(2,arguments);var n=yt(t);return Nc(e,-n)}function hqe(e){return he(1,arguments),OT(e,_O(Date.now(),1))}function mqe(e){he(1,arguments);var t=Re(e),n=t.getFullYear(),r=9+Math.floor(n/10)*10;return t.setFullYear(r+1,0,0),t.setHours(0,0,0,0),t}function Qae(e,t){var n,r,a,i,o,l,u,d;he(1,arguments);var f=Qa(),g=yt((n=(r=(a=(i=t==null?void 0:t.weekStartsOn)!==null&&i!==void 0?i:t==null||(o=t.locale)===null||o===void 0||(l=o.options)===null||l===void 0?void 0:l.weekStartsOn)!==null&&a!==void 0?a:f.weekStartsOn)!==null&&r!==void 0?r:(u=f.locale)===null||u===void 0||(d=u.options)===null||d===void 0?void 0:d.weekStartsOn)!==null&&n!==void 0?n:0);if(!(g>=0&&g<=6))throw new RangeError("weekStartsOn must be between 0 and 6");var y=Re(e),h=y.getDay(),v=(h2)return t;if(/:/.test(n[0])?r=n[0]:(t.date=n[0],r=n[1],Xk.timeZoneDelimiter.test(t.date)&&(t.date=e.split(Xk.timeZoneDelimiter)[0],r=e.substr(t.date.length,e.length))),r){var a=Xk.timezone.exec(r);a?(t.time=r.replace(a[1],""),t.timezone=a[1]):t.time=r}return t}function Gqe(e,t){var n=new RegExp("^(?:(\\d{4}|[+-]\\d{"+(4+t)+"})|(\\d{2}|[+-]\\d{"+(2+t)+"})$)"),r=e.match(n);if(!r)return{year:NaN,restDateString:""};var a=r[1]?parseInt(r[1]):null,i=r[2]?parseInt(r[2]):null;return{year:i===null?a:i*100,restDateString:e.slice((r[1]||r[2]).length)}}function Yqe(e,t){if(t===null)return new Date(NaN);var n=e.match(zqe);if(!n)return new Date(NaN);var r=!!n[4],a=c1(n[1]),i=c1(n[2])-1,o=c1(n[3]),l=c1(n[4]),u=c1(n[5])-1;if(r)return t9e(t,l,u)?Qqe(t,l,u):new Date(NaN);var d=new Date(0);return!Zqe(t,i,o)||!e9e(t,a)?new Date(NaN):(d.setUTCFullYear(t,i,Math.max(a,o)),d)}function c1(e){return e?parseInt(e):1}function Kqe(e){var t=e.match(qqe);if(!t)return NaN;var n=iL(t[1]),r=iL(t[2]),a=iL(t[3]);return n9e(n,r,a)?n*by+r*yy+a*1e3:NaN}function iL(e){return e&&parseFloat(e.replace(",","."))||0}function Xqe(e){if(e==="Z")return 0;var t=e.match(Hqe);if(!t)return 0;var n=t[1]==="+"?-1:1,r=parseInt(t[2]),a=t[3]&&parseInt(t[3])||0;return r9e(r,a)?n*(r*by+a*yy):NaN}function Qqe(e,t,n){var r=new Date(0);r.setUTCFullYear(e,0,4);var a=r.getUTCDay()||7,i=(t-1)*7+n+1-a;return r.setUTCDate(r.getUTCDate()+i),r}var Jqe=[31,null,31,30,31,30,31,31,30,31,30,31];function Jae(e){return e%400===0||e%4===0&&e%100!==0}function Zqe(e,t,n){return t>=0&&t<=11&&n>=1&&n<=(Jqe[t]||(Jae(e)?29:28))}function e9e(e,t){return t>=1&&t<=(Jae(e)?366:365)}function t9e(e,t,n){return t>=1&&t<=53&&n>=0&&n<=6}function n9e(e,t,n){return e===24?t===0&&n===0:n>=0&&n<60&&t>=0&&t<60&&e>=0&&e<25}function r9e(e,t){return t>=0&&t<=59}function a9e(e){if(he(1,arguments),typeof e=="string"){var t=e.match(/(\d{4})-(\d{2})-(\d{2})[T ](\d{2}):(\d{2}):(\d{2})(?:\.(\d{0,7}))?(?:Z|(.)(\d{2}):?(\d{2})?)?/);return t?new Date(Date.UTC(+t[1],+t[2]-1,+t[3],+t[4]-(+t[9]||0)*(t[8]=="-"?-1:1),+t[5]-(+t[10]||0)*(t[8]=="-"?-1:1),+t[6],+((t[7]||"0")+"00").substring(0,3))):new Date(NaN)}return Re(e)}function Wh(e,t){he(2,arguments);var n=xO(e)-t;return n<=0&&(n+=7),_O(e,n)}function i9e(e){return he(1,arguments),Wh(e,5)}function o9e(e){return he(1,arguments),Wh(e,1)}function s9e(e){return he(1,arguments),Wh(e,6)}function l9e(e){return he(1,arguments),Wh(e,0)}function u9e(e){return he(1,arguments),Wh(e,4)}function c9e(e){return he(1,arguments),Wh(e,2)}function d9e(e){return he(1,arguments),Wh(e,3)}function f9e(e){return he(1,arguments),Math.floor(e*D4)}function p9e(e){he(1,arguments);var t=e/L4;return Math.floor(t)}function h9e(e,t){var n;if(arguments.length<1)throw new TypeError("1 argument required, but only none provided present");var r=yt((n=t==null?void 0:t.nearestTo)!==null&&n!==void 0?n:1);if(r<1||r>30)throw new RangeError("`options.nearestTo` must be between 1 and 30");var a=Re(e),i=a.getSeconds(),o=a.getMinutes()+i/60,l=Z0(t==null?void 0:t.roundingMethod),u=l(o/r)*r,d=o%r,f=Math.round(d/r)*r;return new Date(a.getFullYear(),a.getMonth(),a.getDate(),a.getHours(),u+f)}function m9e(e){he(1,arguments);var t=e/_T;return Math.floor(t)}function g9e(e){return he(1,arguments),e*vO}function v9e(e){he(1,arguments);var t=e/yO;return Math.floor(t)}function X4(e,t){he(2,arguments);var n=Re(e),r=yt(t),a=n.getFullYear(),i=n.getDate(),o=new Date(0);o.setFullYear(a,r,15),o.setHours(0,0,0,0);var l=Aae(o);return n.setMonth(r,Math.min(i,l)),n}function y9e(e,t){if(he(2,arguments),oo(t)!=="object"||t===null)throw new RangeError("values parameter must be an object");var n=Re(e);return isNaN(n.getTime())?new Date(NaN):(t.year!=null&&n.setFullYear(t.year),t.month!=null&&(n=X4(n,t.month)),t.date!=null&&n.setDate(yt(t.date)),t.hours!=null&&n.setHours(yt(t.hours)),t.minutes!=null&&n.setMinutes(yt(t.minutes)),t.seconds!=null&&n.setSeconds(yt(t.seconds)),t.milliseconds!=null&&n.setMilliseconds(yt(t.milliseconds)),n)}function b9e(e,t){he(2,arguments);var n=Re(e),r=yt(t);return n.setDate(r),n}function w9e(e,t,n){var r,a,i,o,l,u,d,f;he(2,arguments);var g=Qa(),y=yt((r=(a=(i=(o=n==null?void 0:n.weekStartsOn)!==null&&o!==void 0?o:n==null||(l=n.locale)===null||l===void 0||(u=l.options)===null||u===void 0?void 0:u.weekStartsOn)!==null&&i!==void 0?i:g.weekStartsOn)!==null&&a!==void 0?a:(d=g.locale)===null||d===void 0||(f=d.options)===null||f===void 0?void 0:f.weekStartsOn)!==null&&r!==void 0?r:0);if(!(y>=0&&y<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var h=Re(e),v=yt(t),E=h.getDay(),T=v%7,C=(T+7)%7,k=7-y,_=v<0||v>6?v-(E+k)%7:(C+k)%7-(E+k)%7;return Nc(h,_)}function S9e(e,t){he(2,arguments);var n=Re(e),r=yt(t);return n.setMonth(0),n.setDate(r),n}function E9e(e){he(1,arguments);var t={},n=Qa();for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r]);for(var a in e)Object.prototype.hasOwnProperty.call(e,a)&&(e[a]===void 0?delete t[a]:t[a]=e[a]);L8e(t)}function T9e(e,t){he(2,arguments);var n=Re(e),r=yt(t);return n.setHours(r),n}function C9e(e,t){he(2,arguments);var n=Re(e),r=yt(t),a=Mae(n),i=r-a;return Nc(n,i)}function k9e(e,t){he(2,arguments);var n=Re(e),r=yt(t),a=Iae(n)-r;return n.setDate(n.getDate()-a*7),n}function x9e(e,t){he(2,arguments);var n=Re(e),r=yt(t);return n.setMilliseconds(r),n}function _9e(e,t){he(2,arguments);var n=Re(e),r=yt(t);return n.setMinutes(r),n}function O9e(e,t){he(2,arguments);var n=Re(e),r=yt(t),a=Math.floor(n.getMonth()/3)+1,i=r-a;return X4(n,n.getMonth()+i*3)}function R9e(e,t){he(2,arguments);var n=Re(e),r=yt(t);return n.setSeconds(r),n}function P9e(e,t,n){he(2,arguments);var r=Re(e),a=yt(t),i=Lae(r,n)-a;return r.setDate(r.getDate()-i*7),r}function A9e(e,t,n){var r,a,i,o,l,u,d,f;he(2,arguments);var g=Qa(),y=yt((r=(a=(i=(o=n==null?void 0:n.firstWeekContainsDate)!==null&&o!==void 0?o:n==null||(l=n.locale)===null||l===void 0||(u=l.options)===null||u===void 0?void 0:u.firstWeekContainsDate)!==null&&i!==void 0?i:g.firstWeekContainsDate)!==null&&a!==void 0?a:(d=g.locale)===null||d===void 0||(f=d.options)===null||f===void 0?void 0:f.firstWeekContainsDate)!==null&&r!==void 0?r:1),h=Re(e),v=yt(t),E=Rc(h,S_(h,n)),T=new Date(0);return T.setFullYear(v,0,y),T.setHours(0,0,0,0),h=S_(T,n),h.setDate(h.getDate()+E),h}function N9e(e,t){he(2,arguments);var n=Re(e),r=yt(t);return isNaN(n.getTime())?new Date(NaN):(n.setFullYear(r),n)}function M9e(e){he(1,arguments);var t=Re(e),n=t.getFullYear(),r=Math.floor(n/10)*10;return t.setFullYear(r,0,1),t.setHours(0,0,0,0),t}function I9e(){return $0(Date.now())}function D9e(){var e=new Date,t=e.getFullYear(),n=e.getMonth(),r=e.getDate(),a=new Date(0);return a.setFullYear(t,n,r+1),a.setHours(0,0,0,0),a}function $9e(){var e=new Date,t=e.getFullYear(),n=e.getMonth(),r=e.getDate(),a=new Date(0);return a.setFullYear(t,n,r-1),a.setHours(0,0,0,0),a}function Zae(e,t){he(2,arguments);var n=yt(t);return kT(e,-n)}function L9e(e,t){if(he(2,arguments),!t||oo(t)!=="object")return new Date(NaN);var n=t.years?yt(t.years):0,r=t.months?yt(t.months):0,a=t.weeks?yt(t.weeks):0,i=t.days?yt(t.days):0,o=t.hours?yt(t.hours):0,l=t.minutes?yt(t.minutes):0,u=t.seconds?yt(t.seconds):0,d=Zae(e,r+n*12),f=_O(d,i+a*7),g=l+o*60,y=u+g*60,h=y*1e3,v=new Date(f.getTime()-h);return v}function F9e(e,t){he(2,arguments);var n=yt(t);return eae(e,-n)}function j9e(e,t){he(2,arguments);var n=yt(t);return P4(e,-n)}function U9e(e,t){he(2,arguments);var n=yt(t);return A4(e,-n)}function B9e(e,t){he(2,arguments);var n=yt(t);return N4(e,-n)}function W9e(e,t){he(2,arguments);var n=yt(t);return aae(e,-n)}function z9e(e,t){he(2,arguments);var n=yt(t);return gO(e,-n)}function q9e(e,t){he(2,arguments);var n=yt(t);return iae(e,-n)}function H9e(e){return he(1,arguments),Math.floor(e*M4)}function V9e(e){return he(1,arguments),Math.floor(e*$4)}function G9e(e){return he(1,arguments),Math.floor(e*L4)}const Y9e=Object.freeze(Object.defineProperty({__proto__:null,add:Jb,addBusinessDays:eae,addDays:Nc,addHours:P4,addISOWeekYears:rae,addMilliseconds:xT,addMinutes:A4,addMonths:kT,addQuarters:N4,addSeconds:aae,addWeeks:gO,addYears:iae,areIntervalsOverlapping:U8e,clamp:B8e,closestIndexTo:W8e,closestTo:z8e,compareAsc:_u,compareDesc:q8e,daysInWeek:M4,daysInYear:lae,daysToWeeks:V8e,differenceInBusinessDays:G8e,differenceInCalendarDays:Rc,differenceInCalendarISOWeekYears:pae,differenceInCalendarISOWeeks:K8e,differenceInCalendarMonths:h_,differenceInCalendarQuarters:Ex,differenceInCalendarWeeks:m_,differenceInCalendarYears:nE,differenceInDays:U4,differenceInHours:g_,differenceInISOWeekYears:J8e,differenceInMilliseconds:wO,differenceInMinutes:v_,differenceInMonths:SO,differenceInQuarters:Z8e,differenceInSeconds:T0,differenceInWeeks:e5e,differenceInYears:gae,eachDayOfInterval:vae,eachHourOfInterval:t5e,eachMinuteOfInterval:n5e,eachMonthOfInterval:r5e,eachQuarterOfInterval:a5e,eachWeekOfInterval:i5e,eachWeekendOfInterval:z4,eachWeekendOfMonth:o5e,eachWeekendOfYear:s5e,eachYearOfInterval:l5e,endOfDay:B4,endOfDecade:u5e,endOfHour:c5e,endOfISOWeek:d5e,endOfISOWeekYear:f5e,endOfMinute:p5e,endOfMonth:W4,endOfQuarter:h5e,endOfSecond:m5e,endOfToday:g5e,endOfTomorrow:v5e,endOfWeek:bae,endOfYear:yae,endOfYesterday:y5e,format:xae,formatDistance:Oae,formatDistanceStrict:Rae,formatDistanceToNow:dWe,formatDistanceToNowStrict:fWe,formatDuration:hWe,formatISO:mWe,formatISO9075:gWe,formatISODuration:vWe,formatRFC3339:yWe,formatRFC7231:SWe,formatRelative:EWe,fromUnixTime:TWe,getDate:Pae,getDay:xO,getDayOfYear:CWe,getDaysInMonth:Aae,getDaysInYear:kWe,getDecade:xWe,getDefaultOptions:_We,getHours:OWe,getISODay:Mae,getISOWeek:Iae,getISOWeekYear:iy,getISOWeeksInYear:AWe,getMilliseconds:NWe,getMinutes:MWe,getMonth:IWe,getOverlappingDaysInIntervals:$We,getQuarter:sF,getSeconds:LWe,getTime:Dae,getUnixTime:FWe,getWeek:Lae,getWeekOfMonth:UWe,getWeekYear:$ae,getWeeksInMonth:BWe,getYear:WWe,hoursToMilliseconds:zWe,hoursToMinutes:qWe,hoursToSeconds:HWe,intervalToDuration:VWe,intlFormat:GWe,intlFormatDistance:KWe,isAfter:XWe,isBefore:QWe,isDate:fae,isEqual:JWe,isExists:ZWe,isFirstDayOfMonth:eze,isFriday:tze,isFuture:nze,isLastDayOfMonth:mae,isLeapYear:Nae,isMatch:Xze,isMonday:Qze,isPast:Jze,isSameDay:OT,isSameHour:qae,isSameISOWeek:Hae,isSameISOWeekYear:Zze,isSameMinute:Vae,isSameMonth:Gae,isSameQuarter:Yae,isSameSecond:Kae,isSameWeek:K4,isSameYear:Xae,isSaturday:Zre,isSunday:R4,isThisHour:eqe,isThisISOWeek:tqe,isThisMinute:nqe,isThisMonth:rqe,isThisQuarter:aqe,isThisSecond:iqe,isThisWeek:oqe,isThisYear:sqe,isThursday:lqe,isToday:uqe,isTomorrow:cqe,isTuesday:dqe,isValid:rf,isWednesday:fqe,isWeekend:E0,isWithinInterval:pqe,isYesterday:hqe,lastDayOfDecade:mqe,lastDayOfISOWeek:gqe,lastDayOfISOWeekYear:vqe,lastDayOfMonth:Fae,lastDayOfQuarter:yqe,lastDayOfWeek:Qae,lastDayOfYear:bqe,lightFormat:Cqe,max:oae,maxTime:uae,milliseconds:xqe,millisecondsInHour:by,millisecondsInMinute:yy,millisecondsInSecond:vO,millisecondsToHours:_qe,millisecondsToMinutes:Oqe,millisecondsToSeconds:Rqe,min:sae,minTime:H8e,minutesInHour:I4,minutesToHours:Pqe,minutesToMilliseconds:Aqe,minutesToSeconds:Nqe,monthsInQuarter:D4,monthsInYear:$4,monthsToQuarters:Mqe,monthsToYears:Iqe,nextDay:Bh,nextFriday:Dqe,nextMonday:$qe,nextSaturday:Lqe,nextSunday:Fqe,nextThursday:jqe,nextTuesday:Uqe,nextWednesday:Bqe,parse:zae,parseISO:Wqe,parseJSON:a9e,previousDay:Wh,previousFriday:i9e,previousMonday:o9e,previousSaturday:s9e,previousSunday:l9e,previousThursday:u9e,previousTuesday:c9e,previousWednesday:d9e,quartersInYear:L4,quartersToMonths:f9e,quartersToYears:p9e,roundToNearestMinutes:h9e,secondsInDay:bO,secondsInHour:_T,secondsInMinute:yO,secondsInMonth:j4,secondsInQuarter:dae,secondsInWeek:cae,secondsInYear:F4,secondsToHours:m9e,secondsToMilliseconds:g9e,secondsToMinutes:v9e,set:y9e,setDate:b9e,setDay:w9e,setDayOfYear:S9e,setDefaultOptions:E9e,setHours:T9e,setISODay:C9e,setISOWeek:k9e,setISOWeekYear:nae,setMilliseconds:x9e,setMinutes:_9e,setMonth:X4,setQuarter:O9e,setSeconds:R9e,setWeek:P9e,setWeekYear:A9e,setYear:N9e,startOfDay:$0,startOfDecade:M9e,startOfHour:uF,startOfISOWeek:nf,startOfISOWeekYear:wh,startOfMinute:y_,startOfMonth:EO,startOfQuarter:KE,startOfSecond:cF,startOfToday:I9e,startOfTomorrow:D9e,startOfWeek:$l,startOfWeekYear:S_,startOfYear:q4,startOfYesterday:$9e,sub:L9e,subBusinessDays:F9e,subDays:_O,subHours:j9e,subISOWeekYears:hae,subMilliseconds:L0,subMinutes:U9e,subMonths:Zae,subQuarters:B9e,subSeconds:W9e,subWeeks:z9e,subYears:q9e,toDate:Re,weeksToDays:H9e,yearsToMonths:V9e,yearsToQuarters:G9e},Symbol.toStringTag,{value:"Module"})),Sy=jt(Y9e);var YG;function OO(){if(YG)return bv;YG=1,Object.defineProperty(bv,"__esModule",{value:!0}),bv.rangeShape=bv.default=void 0;var e=o(Vs()),t=a(Lc()),n=a(kh()),r=Sy;function a(h){return h&&h.__esModule?h:{default:h}}function i(h){if(typeof WeakMap!="function")return null;var v=new WeakMap,E=new WeakMap;return(i=function(T){return T?E:v})(h)}function o(h,v){if(h&&h.__esModule)return h;if(h===null||typeof h!="object"&&typeof h!="function")return{default:h};var E=i(v);if(E&&E.has(h))return E.get(h);var T={__proto__:null},C=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var k in h)if(k!=="default"&&Object.prototype.hasOwnProperty.call(h,k)){var _=C?Object.getOwnPropertyDescriptor(h,k):null;_&&(_.get||_.set)?Object.defineProperty(T,k,_):T[k]=h[k]}return T.default=h,E&&E.set(h,T),T}function l(){return l=Object.assign?Object.assign.bind():function(h){for(var v=1;v{const{day:C,onMouseDown:k,onMouseUp:_}=this.props;[13,32].includes(T.keyCode)&&(T.type==="keydown"?k(C):_(C))}),u(this,"handleMouseEvent",T=>{const{day:C,disabled:k,onPreviewChange:_,onMouseEnter:A,onMouseDown:P,onMouseUp:N}=this.props,I={};if(k){_();return}switch(T.type){case"mouseenter":A(C),_(C),I.hover=!0;break;case"blur":case"mouseleave":I.hover=!1;break;case"mousedown":I.active=!0,P(C);break;case"mouseup":T.stopPropagation(),I.active=!1,N(C);break;case"focus":_(C);break}Object.keys(I).length&&this.setState(I)}),u(this,"getClassNames",()=>{const{isPassive:T,isToday:C,isWeekend:k,isStartOfWeek:_,isEndOfWeek:A,isStartOfMonth:P,isEndOfMonth:N,disabled:I,styles:L}=this.props;return(0,n.default)(L.day,{[L.dayPassive]:T,[L.dayDisabled]:I,[L.dayToday]:C,[L.dayWeekend]:k,[L.dayStartOfWeek]:_,[L.dayEndOfWeek]:A,[L.dayStartOfMonth]:P,[L.dayEndOfMonth]:N,[L.dayHovered]:this.state.hover,[L.dayActive]:this.state.active})}),u(this,"renderPreviewPlaceholder",()=>{const{preview:T,day:C,styles:k}=this.props;if(!T)return null;const _=T.startDate?(0,r.endOfDay)(T.startDate):null,A=T.endDate?(0,r.startOfDay)(T.endDate):null,P=(!_||(0,r.isAfter)(C,_))&&(!A||(0,r.isBefore)(C,A)),N=!P&&(0,r.isSameDay)(C,_),I=!P&&(0,r.isSameDay)(C,A);return e.default.createElement("span",{className:(0,n.default)({[k.dayStartPreview]:N,[k.dayInPreview]:P,[k.dayEndPreview]:I}),style:{color:T.color}})}),u(this,"renderSelectionPlaceholders",()=>{const{styles:T,ranges:C,day:k}=this.props;return this.props.displayMode==="date"?(0,r.isSameDay)(this.props.day,this.props.date)?e.default.createElement("span",{className:T.selected,style:{color:this.props.color}}):null:C.reduce((A,P)=>{let N=P.startDate,I=P.endDate;N&&I&&(0,r.isBefore)(I,N)&&([N,I]=[I,N]),N=N?(0,r.endOfDay)(N):null,I=I?(0,r.startOfDay)(I):null;const L=(!N||(0,r.isAfter)(k,N))&&(!I||(0,r.isBefore)(k,I)),j=!L&&(0,r.isSameDay)(k,N),z=!L&&(0,r.isSameDay)(k,I);return L||j||z?[...A,{isStartEdge:j,isEndEdge:z,isInRange:L,...P}]:A},[]).map((A,P)=>e.default.createElement("span",{key:P,className:(0,n.default)({[T.startEdge]:A.isStartEdge,[T.endEdge]:A.isEndEdge,[T.inRange]:A.isInRange}),style:{color:A.color||this.props.color}}))}),this.state={hover:!1,active:!1}}render(){const{dayContentRenderer:v}=this.props;return e.default.createElement("button",l({type:"button",onMouseEnter:this.handleMouseEvent,onMouseLeave:this.handleMouseEvent,onFocus:this.handleMouseEvent,onMouseDown:this.handleMouseEvent,onMouseUp:this.handleMouseEvent,onBlur:this.handleMouseEvent,onPauseCapture:this.handleMouseEvent,onKeyDown:this.handleKeyEvent,onKeyUp:this.handleKeyEvent,className:this.getClassNames(this.props.styles)},this.props.disabled||this.props.isPassive?{tabIndex:-1}:{},{style:{color:this.props.color}}),this.renderSelectionPlaceholders(),this.renderPreviewPlaceholder(),e.default.createElement("span",{className:this.props.styles.dayNumber},(v==null?void 0:v(this.props.day))||e.default.createElement("span",null,(0,r.format)(this.props.day,this.props.dayDisplayFormat))))}};g.defaultProps={};const y=bv.rangeShape=t.default.shape({startDate:t.default.object,endDate:t.default.object,color:t.default.string,key:t.default.string,autoFocus:t.default.bool,disabled:t.default.bool,showDateDisplay:t.default.bool});return g.propTypes={day:t.default.object.isRequired,dayDisplayFormat:t.default.string,date:t.default.object,ranges:t.default.arrayOf(y),preview:t.default.shape({startDate:t.default.object,endDate:t.default.object,color:t.default.string}),onPreviewChange:t.default.func,previewColor:t.default.string,disabled:t.default.bool,isPassive:t.default.bool,isToday:t.default.bool,isWeekend:t.default.bool,isStartOfWeek:t.default.bool,isEndOfWeek:t.default.bool,isStartOfMonth:t.default.bool,isEndOfMonth:t.default.bool,color:t.default.string,displayMode:t.default.oneOf(["dateRange","date"]),styles:t.default.object,onMouseDown:t.default.func,onMouseUp:t.default.func,onMouseEnter:t.default.func,dayContentRenderer:t.default.func},bv.default=g,bv}var d1={},wv={},KG;function RO(){if(KG)return wv;KG=1,Object.defineProperty(wv,"__esModule",{value:!0}),wv.calcFocusDate=r,wv.findNextRangeIndex=a,wv.generateStyles=o,wv.getMonthDisplayRange=i;var e=n(kh()),t=Sy;function n(l){return l&&l.__esModule?l:{default:l}}function r(l,u){const{shownDate:d,date:f,months:g,ranges:y,focusedRange:h,displayMode:v}=u;let E;if(v==="dateRange"){const C=y[h[0]]||{};E={start:C.startDate,end:C.endDate}}else E={start:f,end:f};E.start=(0,t.startOfMonth)(E.start||new Date),E.end=(0,t.endOfMonth)(E.end||E.start);const T=E.start||E.end||d||new Date;return l?(0,t.differenceInCalendarMonths)(E.start,E.end)>g?l:T:d||T}function a(l){let u=arguments.length>1&&arguments[1]!==void 0?arguments[1]:-1;const d=l.findIndex((f,g)=>g>u&&f.autoFocus!==!1&&!f.disabled);return d!==-1?d:l.findIndex(f=>f.autoFocus!==!1&&!f.disabled)}function i(l,u,d){const f=(0,t.startOfMonth)(l,u),g=(0,t.endOfMonth)(l,u),y=(0,t.startOfWeek)(f,u);let h=(0,t.endOfWeek)(g,u);return d&&(0,t.differenceInCalendarDays)(h,y)<=34&&(h=(0,t.addDays)(h,7)),{start:y,end:h,startDateOfMonth:f,endDateOfMonth:g}}function o(l){return l.length?l.filter(d=>!!d).reduce((d,f)=>(Object.keys(f).forEach(g=>{d[g]=(0,e.default)(d[g],f[g])}),d),{}):{}}return wv}var XG;function K9e(){if(XG)return d1;XG=1,Object.defineProperty(d1,"__esModule",{value:!0}),d1.default=void 0;var e=l(Vs()),t=i(Lc()),n=l(OO()),r=Sy,a=RO();function i(g){return g&&g.__esModule?g:{default:g}}function o(g){if(typeof WeakMap!="function")return null;var y=new WeakMap,h=new WeakMap;return(o=function(v){return v?h:y})(g)}function l(g,y){if(g&&g.__esModule)return g;if(g===null||typeof g!="object"&&typeof g!="function")return{default:g};var h=o(y);if(h&&h.has(g))return h.get(g);var v={__proto__:null},E=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var T in g)if(T!=="default"&&Object.prototype.hasOwnProperty.call(g,T)){var C=E?Object.getOwnPropertyDescriptor(g,T):null;C&&(C.get||C.set)?Object.defineProperty(v,T,C):v[T]=g[T]}return v.default=g,h&&h.set(g,v),v}function u(){return u=Object.assign?Object.assign.bind():function(g){for(var y=1;ye.default.createElement("span",{className:g.weekDay,key:T},(0,r.format)(E,h,y))))}let f=class extends e.PureComponent{render(){const y=new Date,{displayMode:h,focusedRange:v,drag:E,styles:T,disabledDates:C,disabledDay:k}=this.props,_=this.props.minDate&&(0,r.startOfDay)(this.props.minDate),A=this.props.maxDate&&(0,r.endOfDay)(this.props.maxDate),P=(0,a.getMonthDisplayRange)(this.props.month,this.props.dateOptions,this.props.fixedHeight);let N=this.props.ranges;if(h==="dateRange"&&E.status){let{startDate:L,endDate:j}=E.range;N=N.map((z,Q)=>Q!==v[0]?z:{...z,startDate:L,endDate:j})}const I=this.props.showPreview&&!E.disablePreview;return e.default.createElement("div",{className:T.month,style:this.props.style},this.props.showMonthName?e.default.createElement("div",{className:T.monthName},(0,r.format)(this.props.month,this.props.monthDisplayFormat,this.props.dateOptions)):null,this.props.showWeekDays&&d(T,this.props.dateOptions,this.props.weekdayDisplayFormat),e.default.createElement("div",{className:T.days,onMouseLeave:this.props.onMouseLeave},(0,r.eachDayOfInterval)({start:P.start,end:P.end}).map((L,j)=>{const z=(0,r.isSameDay)(L,P.startDateOfMonth),Q=(0,r.isSameDay)(L,P.endDateOfMonth),ue=_&&(0,r.isBefore)(L,_)||A&&(0,r.isAfter)(L,A),re=C.some(ge=>(0,r.isSameDay)(ge,L)),me=k(L);return e.default.createElement(n.default,u({},this.props,{ranges:N,day:L,preview:I?this.props.preview:null,isWeekend:(0,r.isWeekend)(L,this.props.dateOptions),isToday:(0,r.isSameDay)(L,y),isStartOfWeek:(0,r.isSameDay)(L,(0,r.startOfWeek)(L,this.props.dateOptions)),isEndOfWeek:(0,r.isSameDay)(L,(0,r.endOfWeek)(L,this.props.dateOptions)),isStartOfMonth:z,isEndOfMonth:Q,key:j,disabled:ue||re||me,isPassive:!(0,r.isWithinInterval)(L,{start:P.startDateOfMonth,end:P.endDateOfMonth}),styles:T,onMouseDown:this.props.onDragSelectionStart,onMouseUp:this.props.onDragSelectionEnd,onMouseEnter:this.props.onDragSelectionMove,dragRange:E.range,drag:E.status}))})))}};return f.defaultProps={},f.propTypes={style:t.default.object,styles:t.default.object,month:t.default.object,drag:t.default.object,dateOptions:t.default.object,disabledDates:t.default.array,disabledDay:t.default.func,preview:t.default.shape({startDate:t.default.object,endDate:t.default.object}),showPreview:t.default.bool,displayMode:t.default.oneOf(["dateRange","date"]),minDate:t.default.object,maxDate:t.default.object,ranges:t.default.arrayOf(n.rangeShape),focusedRange:t.default.arrayOf(t.default.number),onDragSelectionStart:t.default.func,onDragSelectionEnd:t.default.func,onDragSelectionMove:t.default.func,onMouseLeave:t.default.func,monthDisplayFormat:t.default.string,weekdayDisplayFormat:t.default.string,dayDisplayFormat:t.default.string,showWeekDays:t.default.bool,showMonthName:t.default.bool,fixedHeight:t.default.bool},d1.default=f,d1}var f1={},QG;function X9e(){if(QG)return f1;QG=1,Object.defineProperty(f1,"__esModule",{value:!0}),f1.default=void 0;var e=o(Vs()),t=a(Lc()),n=a(kh()),r=Sy;function a(g){return g&&g.__esModule?g:{default:g}}function i(g){if(typeof WeakMap!="function")return null;var y=new WeakMap,h=new WeakMap;return(i=function(v){return v?h:y})(g)}function o(g,y){if(g&&g.__esModule)return g;if(g===null||typeof g!="object"&&typeof g!="function")return{default:g};var h=i(y);if(h&&h.has(g))return h.get(g);var v={__proto__:null},E=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var T in g)if(T!=="default"&&Object.prototype.hasOwnProperty.call(g,T)){var C=E?Object.getOwnPropertyDescriptor(g,T):null;C&&(C.get||C.set)?Object.defineProperty(v,T,C):v[T]=g[T]}return v.default=g,h&&h.set(g,v),v}function l(g,y,h){return y=u(y),y in g?Object.defineProperty(g,y,{value:h,enumerable:!0,configurable:!0,writable:!0}):g[y]=h,g}function u(g){var y=d(g,"string");return typeof y=="symbol"?y:String(y)}function d(g,y){if(typeof g!="object"||!g)return g;var h=g[Symbol.toPrimitive];if(h!==void 0){var v=h.call(g,y);if(typeof v!="object")return v;throw new TypeError("@@toPrimitive must return a primitive value.")}return(y==="string"?String:Number)(g)}let f=class extends e.PureComponent{constructor(y,h){super(y,h),l(this,"onKeyDown",v=>{const{value:E}=this.state;v.key==="Enter"&&this.update(E)}),l(this,"onChange",v=>{this.setState({value:v.target.value,changed:!0,invalid:!1})}),l(this,"onBlur",()=>{const{value:v}=this.state;this.update(v)}),this.state={invalid:!1,changed:!1,value:this.formatDate(y)}}componentDidUpdate(y){const{value:h}=y;(0,r.isEqual)(h,this.props.value)||this.setState({value:this.formatDate(this.props)})}formatDate(y){let{value:h,dateDisplayFormat:v,dateOptions:E}=y;return h&&(0,r.isValid)(h)?(0,r.format)(h,v,E):""}update(y){const{invalid:h,changed:v}=this.state;if(h||!v||!y)return;const{onChange:E,dateDisplayFormat:T,dateOptions:C}=this.props,k=(0,r.parse)(y,T,new Date,C);(0,r.isValid)(k)?this.setState({changed:!1},()=>E(k)):this.setState({invalid:!0})}render(){const{className:y,readOnly:h,placeholder:v,ariaLabel:E,disabled:T,onFocus:C}=this.props,{value:k,invalid:_}=this.state;return e.default.createElement("span",{className:(0,n.default)("rdrDateInput",y)},e.default.createElement("input",{readOnly:h,disabled:T,value:k,placeholder:v,"aria-label":E,onKeyDown:this.onKeyDown,onChange:this.onChange,onBlur:this.onBlur,onFocus:C}),_&&e.default.createElement("span",{className:"rdrWarning"},"⚠"))}};return f.propTypes={value:t.default.object,placeholder:t.default.string,disabled:t.default.bool,readOnly:t.default.bool,dateOptions:t.default.object,dateDisplayFormat:t.default.string,ariaLabel:t.default.string,className:t.default.string,onFocus:t.default.func.isRequired,onChange:t.default.func.isRequired},f.defaultProps={readOnly:!0,disabled:!1,dateDisplayFormat:"MMM D, YYYY"},f1.default=f,f1}var Qk={},JG;function Q9e(){return JG||(JG=1,(function(e){(function(t,n){n(e,Vs(),tQ())})(typeof globalThis<"u"?globalThis:typeof self<"u"?self:Qk,function(t,n,r){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;function a(ae){"@babel/helpers - typeof";return a=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(J){return typeof J}:function(J){return J&&typeof Symbol=="function"&&J.constructor===Symbol&&J!==Symbol.prototype?"symbol":typeof J},a(ae)}function i(ae,J){if(!(ae instanceof J))throw new TypeError("Cannot call a class as a function")}function o(ae,J){for(var ee=0;ee"u")return!1;var ae=!1;try{document.createElement("div").addEventListener("test",re,{get passive(){return ae=!0,!1}})}catch{}return ae})()?{passive:!0}:!1,ge="ReactList failed to reach a stable state.",W=40,G=function(J,ee){for(var Z in ee)if(J[Z]!==ee[Z])return!1;return!0},q=function(J){for(var ee=J.props.axis,Z=J.getEl(),le=j[ee];Z=Z.parentElement;)switch(window.getComputedStyle(Z)[le]){case"auto":case"scroll":case"overlay":return Z}return window},ce=function(J){var ee=J.props.axis,Z=J.scrollParent;return Z===window?window[N[ee]]:Z[A[ee]]},H=function(J,ee){var Z=J.length,le=J.minSize,ke=J.type,fe=ee.from,xe=ee.size,Ie=ee.itemsPerRow;xe=Math.max(xe,le);var qe=xe%Ie;return qe&&(xe+=Ie-qe),xe>Z&&(xe=Z),fe=ke==="simple"||!fe?0:Math.max(Math.min(fe,Z-xe),0),(qe=fe%Ie)&&(fe-=qe,xe+=qe),fe===ee.from&&xe===ee.size?ee:T(T({},ee),{},{from:fe,size:xe})},K=t.default=(function(ae){function J(ee){var Z;return i(this,J),Z=u(this,J,[ee]),Z.state=H(ee,{itemsPerRow:1,from:ee.initialIndex,size:0}),Z.cache={},Z.cachedScrollPosition=null,Z.prevPrevState={},Z.unstable=!1,Z.updateCounter=0,Z}return h(J,ae),l(J,[{key:"componentDidMount",value:function(){this.updateFrameAndClearCache=this.updateFrameAndClearCache.bind(this),window.addEventListener("resize",this.updateFrameAndClearCache),this.updateFrame(this.scrollTo.bind(this,this.props.initialIndex))}},{key:"componentDidUpdate",value:function(Z){var le=this;if(this.props.axis!==Z.axis&&this.clearSizeCache(),!this.unstable){if(++this.updateCounter>W)return this.unstable=!0,console.error(ge);this.updateCounterTimeoutId||(this.updateCounterTimeoutId=setTimeout(function(){le.updateCounter=0,delete le.updateCounterTimeoutId},0)),this.updateFrame()}}},{key:"maybeSetState",value:function(Z,le){if(G(this.state,Z))return le();this.setState(Z,le)}},{key:"componentWillUnmount",value:function(){window.removeEventListener("resize",this.updateFrameAndClearCache),this.scrollParent.removeEventListener("scroll",this.updateFrameAndClearCache,me),this.scrollParent.removeEventListener("mousewheel",re,me)}},{key:"getOffset",value:function(Z){var le=this.props.axis,ke=Z[P[le]]||0,fe=L[le];do ke+=Z[fe]||0;while(Z=Z.offsetParent);return ke}},{key:"getEl",value:function(){return this.el||this.items}},{key:"getScrollPosition",value:function(){if(typeof this.cachedScrollPosition=="number")return this.cachedScrollPosition;var Z=this.scrollParent,le=this.props.axis,ke=Q[le],fe=Z===window?document.body[ke]||document.documentElement[ke]:Z[ke],xe=this.getScrollSize()-this.props.scrollParentViewportSizeGetter(this),Ie=Math.max(0,Math.min(fe,xe)),qe=this.getEl();return this.cachedScrollPosition=this.getOffset(Z)+Ie-this.getOffset(qe),this.cachedScrollPosition}},{key:"setScroll",value:function(Z){var le=this.scrollParent,ke=this.props.axis;if(Z+=this.getOffset(this.getEl()),le===window)return window.scrollTo(0,Z);Z-=this.getOffset(this.scrollParent),le[Q[ke]]=Z}},{key:"getScrollSize",value:function(){var Z=this.scrollParent,le=document,ke=le.body,fe=le.documentElement,xe=z[this.props.axis];return Z===window?Math.max(ke[xe],fe[xe]):Z[xe]}},{key:"hasDeterminateSize",value:function(){var Z=this.props,le=Z.itemSizeGetter,ke=Z.type;return ke==="uniform"||le}},{key:"getStartAndEnd",value:function(){var Z=arguments.length>0&&arguments[0]!==void 0?arguments[0]:this.props.threshold,le=this.getScrollPosition(),ke=Math.max(0,le-Z),fe=le+this.props.scrollParentViewportSizeGetter(this)+Z;return this.hasDeterminateSize()&&(fe=Math.min(fe,this.getSpaceBefore(this.props.length))),{start:ke,end:fe}}},{key:"getItemSizeAndItemsPerRow",value:function(){var Z=this.props,le=Z.axis,ke=Z.useStaticSize,fe=this.state,xe=fe.itemSize,Ie=fe.itemsPerRow;if(ke&&xe&&Ie)return{itemSize:xe,itemsPerRow:Ie};var qe=this.items.children;if(!qe.length)return{};var tt=qe[0],Ge=tt[I[le]],rt=Math.abs(Ge-xe);if((isNaN(rt)||rt>=1)&&(xe=Ge),!xe)return{};var St=L[le],kt=tt[St];Ie=1;for(var xt=qe[Ie];xt&&xt[St]===kt;xt=qe[Ie])++Ie;return{itemSize:xe,itemsPerRow:Ie}}},{key:"clearSizeCache",value:function(){this.cachedScrollPosition=null}},{key:"updateFrameAndClearCache",value:function(Z){return this.clearSizeCache(),this.updateFrame(Z)}},{key:"updateFrame",value:function(Z){switch(this.updateScrollParent(),typeof Z!="function"&&(Z=re),this.props.type){case"simple":return this.updateSimpleFrame(Z);case"variable":return this.updateVariableFrame(Z);case"uniform":return this.updateUniformFrame(Z)}}},{key:"updateScrollParent",value:function(){var Z=this.scrollParent;this.scrollParent=this.props.scrollParentGetter(this),Z!==this.scrollParent&&(Z&&(Z.removeEventListener("scroll",this.updateFrameAndClearCache),Z.removeEventListener("mousewheel",re)),this.clearSizeCache(),this.scrollParent.addEventListener("scroll",this.updateFrameAndClearCache,me),this.scrollParent.addEventListener("mousewheel",re,me))}},{key:"updateSimpleFrame",value:function(Z){var le=this.getStartAndEnd(),ke=le.end,fe=this.items.children,xe=0;if(fe.length){var Ie=this.props.axis,qe=fe[0],tt=fe[fe.length-1];xe=this.getOffset(tt)+tt[I[Ie]]-this.getOffset(qe)}if(xe>ke)return Z();var Ge=this.props,rt=Ge.pageSize,St=Ge.length,kt=Math.min(this.state.size+rt,St);this.maybeSetState({size:kt},Z)}},{key:"updateVariableFrame",value:function(Z){this.props.itemSizeGetter||this.cacheSizes();for(var le=this.getStartAndEnd(),ke=le.start,fe=le.end,xe=this.props,Ie=xe.length,qe=xe.pageSize,tt=0,Ge=0,rt=0,St=Ie-1;Geke)break;tt+=kt,++Ge}for(var xt=Ie-Ge;rt1&&arguments[1]!==void 0?arguments[1]:{};if(le[Z]!=null)return le[Z];var ke=this.state,fe=ke.itemSize,xe=ke.itemsPerRow;if(fe)return le[Z]=Math.floor(Z/xe)*fe;for(var Ie=Z;Ie>0&&le[--Ie]==null;);for(var qe=le[Ie]||0,tt=Ie;tt=rt&&ZIe)return this.setScroll(Ie)}},{key:"getVisibleRange",value:function(){for(var Z=this.state,le=Z.from,ke=Z.size,fe=this.getStartAndEnd(0),xe=fe.start,Ie=fe.end,qe={},tt,Ge,rt=le;rtxe&&(tt=rt),tt!=null&&St1&&arguments[1]!==void 0?arguments[1]:L.props,Q=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0;if(!z.scroll.enabled){if(Q&&z.preventSnapRefocus){const me=(0,d.differenceInCalendarMonths)(j,L.state.focusedDate),ge=z.calendarFocus==="forwards"&&me>=0,W=z.calendarFocus==="backwards"&&me<=0;if((ge||W)&&Math.abs(me)0&&arguments[0]!==void 0?arguments[0]:L.props;const z=j.scroll.enabled?{...j,months:L.list.getVisibleRange().length}:j,Q=(0,i.calcFocusDate)(L.state.focusedDate,z);L.focusToDate(Q,z)}),C(this,"updatePreview",j=>{if(!j){this.setState({preview:null});return}const z={startDate:j,endDate:j,color:this.props.color};this.setState({preview:z})}),C(this,"changeShownDate",function(j){let z=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"set";const{focusedDate:Q}=L.state,{onShownDateChange:ue,minDate:re,maxDate:me}=L.props,ge={monthOffset:()=>(0,d.addMonths)(Q,j),setMonth:()=>(0,d.setMonth)(Q,j),setYear:()=>(0,d.setYear)(Q,j),set:()=>j},W=(0,d.min)([(0,d.max)([ge[z](),re]),me]);L.focusToDate(W,L.props,!1),ue&&ue(W)}),C(this,"handleRangeFocusChange",(j,z)=>{this.props.onRangeFocusChange&&this.props.onRangeFocusChange([j,z])}),C(this,"handleScroll",()=>{const{onShownDateChange:j,minDate:z}=this.props,{focusedDate:Q}=this.state,{isFirstRender:ue}=this,re=this.list.getVisibleRange();if(re[0]===void 0)return;const me=(0,d.addMonths)(z,re[0]||0);!(0,d.isSameMonth)(me,Q)&&!ue&&(this.setState({focusedDate:me}),j&&j(me)),this.isFirstRender=!1}),C(this,"renderMonthAndYear",(j,z,Q)=>{const{showMonthArrow:ue,minDate:re,maxDate:me,showMonthAndYearPickers:ge,ariaLabels:W}=Q,G=(me||dF.defaultProps.maxDate).getFullYear(),q=(re||dF.defaultProps.minDate).getFullYear(),ce=this.styles;return e.default.createElement("div",{onMouseUp:H=>H.stopPropagation(),className:ce.monthAndYearWrapper},ue?e.default.createElement("button",{type:"button",className:(0,o.default)(ce.nextPrevButton,ce.prevButton),onClick:()=>z(-1,"monthOffset"),"aria-label":W.prevButton},e.default.createElement("i",null)):null,ge?e.default.createElement("span",{className:ce.monthAndYearPickers},e.default.createElement("span",{className:ce.monthPicker},e.default.createElement("select",{value:j.getMonth(),onChange:H=>z(H.target.value,"setMonth"),"aria-label":W.monthPicker},this.state.monthNames.map((H,K)=>e.default.createElement("option",{key:K,value:K},H)))),e.default.createElement("span",{className:ce.monthAndYearDivider}),e.default.createElement("span",{className:ce.yearPicker},e.default.createElement("select",{value:j.getFullYear(),onChange:H=>z(H.target.value,"setYear"),"aria-label":W.yearPicker},new Array(G-q+1).fill(G).map((H,K)=>{const ae=H-K;return e.default.createElement("option",{key:ae,value:ae},ae)})))):e.default.createElement("span",{className:ce.monthAndYearPickers},this.state.monthNames[j.getMonth()]," ",j.getFullYear()),ue?e.default.createElement("button",{type:"button",className:(0,o.default)(ce.nextPrevButton,ce.nextButton),onClick:()=>z(1,"monthOffset"),"aria-label":W.nextButton},e.default.createElement("i",null)):null)}),C(this,"renderDateDisplay",()=>{const{focusedRange:j,color:z,ranges:Q,rangeColors:ue,dateDisplayFormat:re,editableDateInputs:me,startDatePlaceholder:ge,endDatePlaceholder:W,ariaLabels:G}=this.props,q=ue[j[0]]||z,ce=this.styles;return e.default.createElement("div",{className:ce.dateDisplayWrapper},Q.map((H,K)=>H.showDateDisplay===!1||H.disabled&&!H.showDateDisplay?null:e.default.createElement("div",{className:ce.dateDisplay,key:K,style:{color:H.color||q}},e.default.createElement(a.default,{className:(0,o.default)(ce.dateDisplayItem,{[ce.dateDisplayItemActive]:j[0]===K&&j[1]===0}),readOnly:!me,disabled:H.disabled,value:H.startDate,placeholder:ge,dateOptions:this.dateOptions,dateDisplayFormat:re,ariaLabel:G.dateInput&&G.dateInput[H.key]&&G.dateInput[H.key].startDate,onChange:this.onDragSelectionEnd,onFocus:()=>this.handleRangeFocusChange(K,0)}),e.default.createElement(a.default,{className:(0,o.default)(ce.dateDisplayItem,{[ce.dateDisplayItemActive]:j[0]===K&&j[1]===1}),readOnly:!me,disabled:H.disabled,value:H.endDate,placeholder:W,dateOptions:this.dateOptions,dateDisplayFormat:re,ariaLabel:G.dateInput&&G.dateInput[H.key]&&G.dateInput[H.key].endDate,onChange:this.onDragSelectionEnd,onFocus:()=>this.handleRangeFocusChange(K,1)}))))}),C(this,"onDragSelectionStart",j=>{const{onChange:z,dragSelectionEnabled:Q}=this.props;Q?this.setState({drag:{status:!0,range:{startDate:j,endDate:j},disablePreview:!0}}):z&&z(j)}),C(this,"onDragSelectionEnd",j=>{const{updateRange:z,displayMode:Q,onChange:ue,dragSelectionEnabled:re}=this.props;if(!re)return;if(Q==="date"||!this.state.drag.status){ue&&ue(j);return}const me={startDate:this.state.drag.range.startDate,endDate:j};Q!=="dateRange"||(0,d.isSameDay)(me.startDate,j)?this.setState({drag:{status:!1,range:{}}},()=>ue&&ue(j)):this.setState({drag:{status:!1,range:{}}},()=>{z&&z(me)})}),C(this,"onDragSelectionMove",j=>{const{drag:z}=this.state;!z.status||!this.props.dragSelectionEnabled||this.setState({drag:{status:z.status,range:{startDate:z.range.startDate,endDate:j},disablePreview:!0}})}),C(this,"estimateMonthSize",(j,z)=>{const{direction:Q,minDate:ue}=this.props,{scrollArea:re}=this.state;if(z&&(this.listSizeCache=z,z[j]))return z[j];if(Q==="horizontal")return re.monthWidth;const me=(0,d.addMonths)(ue,j),{start:ge,end:W}=(0,i.getMonthDisplayRange)(me,this.dateOptions);return(0,d.differenceInDays)(W,ge,this.dateOptions)+1>35?re.longMonthHeight:re.monthHeight}),this.dateOptions={locale:N.locale},N.weekStartsOn!==void 0&&(this.dateOptions.weekStartsOn=N.weekStartsOn),this.styles=(0,i.generateStyles)([g.default,N.classNames]),this.listSizeCache={},this.isFirstRender=!0,this.state={monthNames:this.getMonthNames(),focusedDate:(0,i.calcFocusDate)(null,N),drag:{status:!1,range:{startDate:null,endDate:null},disablePreview:!1},scrollArea:this.calcScrollArea(N)}}getMonthNames(){return[...Array(12).keys()].map(N=>this.props.locale.localize.month(N))}calcScrollArea(N){const{direction:I,months:L,scroll:j}=N;if(!j.enabled)return{enabled:!1};const z=j.longMonthHeight||j.monthHeight;return I==="vertical"?{enabled:!0,monthHeight:j.monthHeight||220,longMonthHeight:z||260,calendarWidth:"auto",calendarHeight:(j.calendarHeight||z||240)*L}:{enabled:!0,monthWidth:j.monthWidth||332,calendarWidth:(j.calendarWidth||j.monthWidth||332)*L,monthHeight:z||300,calendarHeight:z||300}}componentDidMount(){this.props.scroll.enabled&&setTimeout(()=>this.focusToDate(this.state.focusedDate))}componentDidUpdate(N){const L={dateRange:"ranges",date:"date"}[this.props.displayMode];this.props[L]!==N[L]&&this.updateShownDate(this.props),(N.locale!==this.props.locale||N.weekStartsOn!==this.props.weekStartsOn)&&(this.dateOptions={locale:this.props.locale},this.props.weekStartsOn!==void 0&&(this.dateOptions.weekStartsOn=this.props.weekStartsOn),this.setState({monthNames:this.getMonthNames()})),(0,u.shallowEqualObjects)(N.scroll,this.props.scroll)||this.setState({scrollArea:this.calcScrollArea(this.props)})}renderWeekdays(){const N=new Date;return e.default.createElement("div",{className:this.styles.weekDays},(0,d.eachDayOfInterval)({start:(0,d.startOfWeek)(N,this.dateOptions),end:(0,d.endOfWeek)(N,this.dateOptions)}).map((I,L)=>e.default.createElement("span",{className:this.styles.weekDay,key:L},(0,d.format)(I,this.props.weekdayDisplayFormat,this.dateOptions))))}render(){const{showDateDisplay:N,onPreviewChange:I,scroll:L,direction:j,disabledDates:z,disabledDay:Q,maxDate:ue,minDate:re,rangeColors:me,color:ge,navigatorRenderer:W,className:G,preview:q}=this.props,{scrollArea:ce,focusedDate:H}=this.state,K=j==="vertical",ae=W||this.renderMonthAndYear,J=this.props.ranges.map((ee,Z)=>({...ee,color:ee.color||me[Z]||ge}));return e.default.createElement("div",{className:(0,o.default)(this.styles.calendarWrapper,G),onMouseUp:()=>this.setState({drag:{status:!1,range:{}}}),onMouseLeave:()=>{this.setState({drag:{status:!1,range:{}}})}},N&&this.renderDateDisplay(),ae(H,this.changeShownDate,this.props),L.enabled?e.default.createElement("div",null,K&&this.renderWeekdays(this.dateOptions),e.default.createElement("div",{className:(0,o.default)(this.styles.infiniteMonths,K?this.styles.monthsVertical:this.styles.monthsHorizontal),onMouseLeave:()=>I&&I(),style:{width:ce.calendarWidth+11,height:ce.calendarHeight+11},onScroll:this.handleScroll},e.default.createElement(l.default,{length:(0,d.differenceInCalendarMonths)((0,d.endOfMonth)(ue),(0,d.addDays)((0,d.startOfMonth)(re),-1),this.dateOptions),treshold:500,type:"variable",ref:ee=>this.list=ee,itemSizeEstimator:this.estimateMonthSize,axis:K?"y":"x",itemRenderer:(ee,Z)=>{const le=(0,d.addMonths)(re,ee);return e.default.createElement(r.default,T({},this.props,{onPreviewChange:I||this.updatePreview,preview:q||this.state.preview,ranges:J,key:Z,drag:this.state.drag,dateOptions:this.dateOptions,disabledDates:z,disabledDay:Q,month:le,onDragSelectionStart:this.onDragSelectionStart,onDragSelectionEnd:this.onDragSelectionEnd,onDragSelectionMove:this.onDragSelectionMove,onMouseLeave:()=>I&&I(),styles:this.styles,style:K?{height:this.estimateMonthSize(ee)}:{height:ce.monthHeight,width:this.estimateMonthSize(ee)},showMonthName:!0,showWeekDays:!K}))}}))):e.default.createElement("div",{className:(0,o.default)(this.styles.months,K?this.styles.monthsVertical:this.styles.monthsHorizontal)},new Array(this.props.months).fill(null).map((ee,Z)=>{let le=(0,d.addMonths)(this.state.focusedDate,Z);return this.props.calendarFocus==="backwards"&&(le=(0,d.subMonths)(this.state.focusedDate,this.props.months-1-Z)),e.default.createElement(r.default,T({},this.props,{onPreviewChange:I||this.updatePreview,preview:q||this.state.preview,ranges:J,key:Z,drag:this.state.drag,dateOptions:this.dateOptions,disabledDates:z,disabledDay:Q,month:le,onDragSelectionStart:this.onDragSelectionStart,onDragSelectionEnd:this.onDragSelectionEnd,onDragSelectionMove:this.onDragSelectionMove,onMouseLeave:()=>I&&I(),styles:this.styles,showWeekDays:!K||Z===0,showMonthName:!K||Z>0}))})))}};return A.defaultProps={showMonthArrow:!0,showMonthAndYearPickers:!0,disabledDates:[],disabledDay:()=>{},classNames:{},locale:f.enUS,ranges:[],focusedRange:[0,0],dateDisplayFormat:"MMM d, yyyy",monthDisplayFormat:"MMM yyyy",weekdayDisplayFormat:"E",dayDisplayFormat:"d",showDateDisplay:!0,showPreview:!0,displayMode:"date",months:1,color:"#3d91ff",scroll:{enabled:!1},direction:"vertical",maxDate:(0,d.addYears)(new Date,20),minDate:(0,d.addYears)(new Date,-100),rangeColors:["#3d91ff","#3ecf8e","#fed14c"],startDatePlaceholder:"Early",endDatePlaceholder:"Continuous",editableDateInputs:!1,dragSelectionEnabled:!0,fixedHeight:!1,calendarFocus:"forwards",preventSnapRefocus:!1,ariaLabels:{}},A.propTypes={showMonthArrow:t.default.bool,showMonthAndYearPickers:t.default.bool,disabledDates:t.default.array,disabledDay:t.default.func,minDate:t.default.object,maxDate:t.default.object,date:t.default.object,onChange:t.default.func,onPreviewChange:t.default.func,onRangeFocusChange:t.default.func,classNames:t.default.object,locale:t.default.object,shownDate:t.default.object,onShownDateChange:t.default.func,ranges:t.default.arrayOf(n.rangeShape),preview:t.default.shape({startDate:t.default.object,endDate:t.default.object,color:t.default.string}),dateDisplayFormat:t.default.string,monthDisplayFormat:t.default.string,weekdayDisplayFormat:t.default.string,weekStartsOn:t.default.number,dayDisplayFormat:t.default.string,focusedRange:t.default.arrayOf(t.default.number),initialFocusedRange:t.default.arrayOf(t.default.number),months:t.default.number,className:t.default.string,showDateDisplay:t.default.bool,showPreview:t.default.bool,displayMode:t.default.oneOf(["dateRange","date"]),color:t.default.string,updateRange:t.default.func,scroll:t.default.shape({enabled:t.default.bool,monthHeight:t.default.number,longMonthHeight:t.default.number,monthWidth:t.default.number,calendarWidth:t.default.number,calendarHeight:t.default.number}),direction:t.default.oneOf(["vertical","horizontal"]),startDatePlaceholder:t.default.string,endDatePlaceholder:t.default.string,navigatorRenderer:t.default.func,rangeColors:t.default.arrayOf(t.default.string),editableDateInputs:t.default.bool,dragSelectionEnabled:t.default.bool,fixedHeight:t.default.bool,calendarFocus:t.default.string,preventSnapRefocus:t.default.bool,ariaLabels:y.ariaLabelsShape},u1.default=A,u1}var nY;function nie(){if(nY)return l1;nY=1,Object.defineProperty(l1,"__esModule",{value:!0}),l1.default=void 0;var e=f(Vs()),t=u(Lc()),n=u(tie()),r=OO(),a=RO(),i=Sy,o=u(kh()),l=u(PO());function u(T){return T&&T.__esModule?T:{default:T}}function d(T){if(typeof WeakMap!="function")return null;var C=new WeakMap,k=new WeakMap;return(d=function(_){return _?k:C})(T)}function f(T,C){if(T&&T.__esModule)return T;if(T===null||typeof T!="object"&&typeof T!="function")return{default:T};var k=d(C);if(k&&k.has(T))return k.get(T);var _={__proto__:null},A=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var P in T)if(P!=="default"&&Object.prototype.hasOwnProperty.call(T,P)){var N=A?Object.getOwnPropertyDescriptor(T,P):null;N&&(N.get||N.set)?Object.defineProperty(_,P,N):_[P]=T[P]}return _.default=T,k&&k.set(T,_),_}function g(){return g=Object.assign?Object.assign.bind():function(T){for(var C=1;C1&&arguments[1]!==void 0?arguments[1]:!0;const N=_.props.focusedRange||_.state.focusedRange,{ranges:I,onChange:L,maxDate:j,moveRangeOnFirstSelection:z,retainEndDateOnFirstSelection:Q,disabledDates:ue}=_.props,re=N[0],me=I[re];if(!me||!L)return{};let{startDate:ge,endDate:W}=me;const G=new Date;let q;if(!P)ge=A.startDate,W=A.endDate;else if(N[1]===0){const K=(0,i.differenceInCalendarDays)(W||G,ge),ae=()=>z?(0,i.addDays)(A,K):Q?!W||(0,i.isBefore)(A,W)?W:A:A||G;ge=A,W=ae(),j&&(W=(0,i.min)([W,j])),q=[N[0],1]}else W=A;let ce=N[1]===0;(0,i.isBefore)(W,ge)&&(ce=!ce,[ge,W]=[W,ge]);const H=ue.filter(K=>(0,i.isWithinInterval)(K,{start:ge,end:W}));return H.length>0&&(ce?ge=(0,i.addDays)((0,i.max)(H),1):W=(0,i.addDays)((0,i.min)(H),-1)),q||(q=[(0,a.findNextRangeIndex)(_.props.ranges,N[0]),0]),{wasValid:!(H.length>0),range:{startDate:ge,endDate:W},nextFocusRange:q}}),y(this,"setSelection",(A,P)=>{const{onChange:N,ranges:I,onRangeFocusChange:L}=this.props,z=(this.props.focusedRange||this.state.focusedRange)[0],Q=I[z];if(!Q)return;const ue=this.calcNewSelection(A,P);N({[Q.key||`range${z+1}`]:{...Q,...ue.range}}),this.setState({focusedRange:ue.nextFocusRange,preview:null}),L&&L(ue.nextFocusRange)}),y(this,"handleRangeFocusChange",A=>{this.setState({focusedRange:A}),this.props.onRangeFocusChange&&this.props.onRangeFocusChange(A)}),y(this,"updatePreview",A=>{var j;if(!A){this.setState({preview:null});return}const{rangeColors:P,ranges:N}=this.props,I=this.props.focusedRange||this.state.focusedRange,L=((j=N[I[0]])==null?void 0:j.color)||P[I[0]]||L;this.setState({preview:{...A.range,color:L}})}),this.state={focusedRange:C.initialFocusedRange||[(0,a.findNextRangeIndex)(C.ranges),0],preview:null},this.styles=(0,a.generateStyles)([l.default,C.classNames])}render(){return e.default.createElement(n.default,g({focusedRange:this.state.focusedRange,onRangeFocusChange:this.handleRangeFocusChange,preview:this.state.preview,onPreviewChange:C=>{this.updatePreview(C?this.calcNewSelection(C):null)}},this.props,{displayMode:"dateRange",className:(0,o.default)(this.styles.dateRangeWrapper,this.props.className),onChange:this.setSelection,updateRange:C=>this.setSelection(C,!1),ref:C=>{this.calendar=C}}))}};return E.defaultProps={classNames:{},ranges:[],moveRangeOnFirstSelection:!1,retainEndDateOnFirstSelection:!1,rangeColors:["#3d91ff","#3ecf8e","#fed14c"],disabledDates:[]},E.propTypes={...n.default.propTypes,onChange:t.default.func,onRangeFocusChange:t.default.func,className:t.default.string,ranges:t.default.arrayOf(r.rangeShape),moveRangeOnFirstSelection:t.default.bool,retainEndDateOnFirstSelection:t.default.bool},l1.default=E,l1}var m1={},g1={},Jp={},rY;function rie(){if(rY)return Jp;rY=1,Object.defineProperty(Jp,"__esModule",{value:!0}),Jp.createStaticRanges=r,Jp.defaultStaticRanges=Jp.defaultInputRanges=void 0;var e=Sy;const t={startOfWeek:(0,e.startOfWeek)(new Date),endOfWeek:(0,e.endOfWeek)(new Date),startOfLastWeek:(0,e.startOfWeek)((0,e.addDays)(new Date,-7)),endOfLastWeek:(0,e.endOfWeek)((0,e.addDays)(new Date,-7)),startOfToday:(0,e.startOfDay)(new Date),endOfToday:(0,e.endOfDay)(new Date),startOfYesterday:(0,e.startOfDay)((0,e.addDays)(new Date,-1)),endOfYesterday:(0,e.endOfDay)((0,e.addDays)(new Date,-1)),startOfMonth:(0,e.startOfMonth)(new Date),endOfMonth:(0,e.endOfMonth)(new Date),startOfLastMonth:(0,e.startOfMonth)((0,e.addMonths)(new Date,-1)),endOfLastMonth:(0,e.endOfMonth)((0,e.addMonths)(new Date,-1))},n={range:{},isSelected(a){const i=this.range();return(0,e.isSameDay)(a.startDate,i.startDate)&&(0,e.isSameDay)(a.endDate,i.endDate)}};function r(a){return a.map(i=>({...n,...i}))}return Jp.defaultStaticRanges=r([{label:"Today",range:()=>({startDate:t.startOfToday,endDate:t.endOfToday})},{label:"Yesterday",range:()=>({startDate:t.startOfYesterday,endDate:t.endOfYesterday})},{label:"This Week",range:()=>({startDate:t.startOfWeek,endDate:t.endOfWeek})},{label:"Last Week",range:()=>({startDate:t.startOfLastWeek,endDate:t.endOfLastWeek})},{label:"This Month",range:()=>({startDate:t.startOfMonth,endDate:t.endOfMonth})},{label:"Last Month",range:()=>({startDate:t.startOfLastMonth,endDate:t.endOfLastMonth})}]),Jp.defaultInputRanges=[{label:"days up to today",range(a){return{startDate:(0,e.addDays)(t.startOfToday,(Math.max(Number(a),1)-1)*-1),endDate:t.endOfToday}},getCurrentValue(a){return(0,e.isSameDay)(a.endDate,t.endOfToday)?a.startDate?(0,e.differenceInCalendarDays)(t.endOfToday,a.startDate)+1:"∞":"-"}},{label:"days starting today",range(a){const i=new Date;return{startDate:i,endDate:(0,e.addDays)(i,Math.max(Number(a),1)-1)}},getCurrentValue(a){return(0,e.isSameDay)(a.startDate,t.startOfToday)?a.endDate?(0,e.differenceInCalendarDays)(a.endDate,t.startOfToday)+1:"∞":"-"}}],Jp}var v1={},aY;function rHe(){if(aY)return v1;aY=1,Object.defineProperty(v1,"__esModule",{value:!0}),v1.default=void 0;var e=a(Vs()),t=n(Lc());function n(g){return g&&g.__esModule?g:{default:g}}function r(g){if(typeof WeakMap!="function")return null;var y=new WeakMap,h=new WeakMap;return(r=function(v){return v?h:y})(g)}function a(g,y){if(g&&g.__esModule)return g;if(g===null||typeof g!="object"&&typeof g!="function")return{default:g};var h=r(y);if(h&&h.has(g))return h.get(g);var v={__proto__:null},E=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var T in g)if(T!=="default"&&Object.prototype.hasOwnProperty.call(g,T)){var C=E?Object.getOwnPropertyDescriptor(g,T):null;C&&(C.get||C.set)?Object.defineProperty(v,T,C):v[T]=g[T]}return v.default=g,h&&h.set(g,v),v}function i(g,y,h){return y=o(y),y in g?Object.defineProperty(g,y,{value:h,enumerable:!0,configurable:!0,writable:!0}):g[y]=h,g}function o(g){var y=l(g,"string");return typeof y=="symbol"?y:String(y)}function l(g,y){if(typeof g!="object"||!g)return g;var h=g[Symbol.toPrimitive];if(h!==void 0){var v=h.call(g,y);if(typeof v!="object")return v;throw new TypeError("@@toPrimitive must return a primitive value.")}return(y==="string"?String:Number)(g)}const u=0,d=99999;let f=class extends e.Component{constructor(y,h){super(y,h),i(this,"onChange",v=>{const{onChange:E}=this.props;let T=parseInt(v.target.value,10);T=isNaN(T)?0:Math.max(Math.min(d,T),u),E(T)})}shouldComponentUpdate(y){const{value:h,label:v,placeholder:E}=this.props;return h!==y.value||v!==y.label||E!==y.placeholder}render(){const{label:y,placeholder:h,value:v,styles:E,onBlur:T,onFocus:C}=this.props;return e.default.createElement("div",{className:E.inputRange},e.default.createElement("input",{className:E.inputRangeInput,placeholder:h,value:v,min:u,max:d,onChange:this.onChange,onFocus:C,onBlur:T}),e.default.createElement("span",{className:E.inputRangeLabel},y))}};return f.propTypes={value:t.default.oneOfType([t.default.string,t.default.number]),label:t.default.oneOfType([t.default.element,t.default.node]).isRequired,placeholder:t.default.string,styles:t.default.shape({inputRange:t.default.string,inputRangeInput:t.default.string,inputRangeLabel:t.default.string}).isRequired,onBlur:t.default.func.isRequired,onFocus:t.default.func.isRequired,onChange:t.default.func.isRequired},f.defaultProps={value:"",placeholder:"-"},v1.default=f,v1}var iY;function aie(){if(iY)return g1;iY=1,Object.defineProperty(g1,"__esModule",{value:!0}),g1.default=void 0;var e=d(Vs()),t=l(Lc()),n=l(PO()),r=rie(),a=OO(),i=l(rHe()),o=l(kh());function l(v){return v&&v.__esModule?v:{default:v}}function u(v){if(typeof WeakMap!="function")return null;var E=new WeakMap,T=new WeakMap;return(u=function(C){return C?T:E})(v)}function d(v,E){if(v&&v.__esModule)return v;if(v===null||typeof v!="object"&&typeof v!="function")return{default:v};var T=u(E);if(T&&T.has(v))return T.get(v);var C={__proto__:null},k=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var _ in v)if(_!=="default"&&Object.prototype.hasOwnProperty.call(v,_)){var A=k?Object.getOwnPropertyDescriptor(v,_):null;A&&(A.get||A.set)?Object.defineProperty(C,_,A):C[_]=v[_]}return C.default=v,T&&T.set(v,C),C}function f(v,E,T){return E=g(E),E in v?Object.defineProperty(v,E,{value:T,enumerable:!0,configurable:!0,writable:!0}):v[E]=T,v}function g(v){var E=y(v,"string");return typeof E=="symbol"?E:String(E)}function y(v,E){if(typeof v!="object"||!v)return v;var T=v[Symbol.toPrimitive];if(T!==void 0){var C=T.call(v,E);if(typeof C!="object")return C;throw new TypeError("@@toPrimitive must return a primitive value.")}return(E==="string"?String:Number)(v)}let h=class extends e.Component{constructor(E){super(E),f(this,"handleRangeChange",T=>{const{onChange:C,ranges:k,focusedRange:_}=this.props,A=k[_[0]];!C||!A||C({[A.key||`range${_[0]+1}`]:{...A,...T}})}),this.state={rangeOffset:0,focusedInput:-1}}getRangeOptionValue(E){const{ranges:T=[],focusedRange:C=[]}=this.props;if(typeof E.getCurrentValue!="function")return"";const k=T[C[0]]||{};return E.getCurrentValue(k)||""}getSelectedRange(E,T){const C=E.findIndex(_=>!_.startDate||!_.endDate||_.disabled?!1:T.isSelected(_));return{selectedRange:E[C],focusedRangeIndex:C}}render(){const{headerContent:E,footerContent:T,onPreviewChange:C,inputRanges:k,staticRanges:_,ranges:A,renderStaticRangeLabel:P,rangeColors:N,className:I}=this.props;return e.default.createElement("div",{className:(0,o.default)(n.default.definedRangesWrapper,I)},E,e.default.createElement("div",{className:n.default.staticRanges},_.map((L,j)=>{const{selectedRange:z,focusedRangeIndex:Q}=this.getSelectedRange(A,L);let ue;return L.hasCustomRendering?ue=P(L):ue=L.label,e.default.createElement("button",{type:"button",className:(0,o.default)(n.default.staticRange,{[n.default.staticRangeSelected]:!!z}),style:{color:z?z.color||N[Q]:null},key:j,onClick:()=>this.handleRangeChange(L.range(this.props)),onFocus:()=>C&&C(L.range(this.props)),onMouseOver:()=>C&&C(L.range(this.props)),onMouseLeave:()=>{C&&C()}},e.default.createElement("span",{tabIndex:-1,className:n.default.staticRangeLabel},ue))})),e.default.createElement("div",{className:n.default.inputRanges},k.map((L,j)=>e.default.createElement(i.default,{key:j,styles:n.default,label:L.label,onFocus:()=>this.setState({focusedInput:j,rangeOffset:0}),onBlur:()=>this.setState({rangeOffset:0}),onChange:z=>this.handleRangeChange(L.range(z,this.props)),value:this.getRangeOptionValue(L)}))),T)}};return h.propTypes={inputRanges:t.default.array,staticRanges:t.default.array,ranges:t.default.arrayOf(a.rangeShape),focusedRange:t.default.arrayOf(t.default.number),onPreviewChange:t.default.func,onChange:t.default.func,footerContent:t.default.any,headerContent:t.default.any,rangeColors:t.default.arrayOf(t.default.string),className:t.default.string,renderStaticRangeLabel:t.default.func},h.defaultProps={inputRanges:r.defaultInputRanges,staticRanges:r.defaultStaticRanges,ranges:[],rangeColors:["#3d91ff","#3ecf8e","#fed14c"],focusedRange:[0,0]},g1.default=h,g1}var oY;function aHe(){if(oY)return m1;oY=1,Object.defineProperty(m1,"__esModule",{value:!0}),m1.default=void 0;var e=d(Vs()),t=l(Lc()),n=l(nie()),r=l(aie()),a=RO(),i=l(kh()),o=l(PO());function l(y){return y&&y.__esModule?y:{default:y}}function u(y){if(typeof WeakMap!="function")return null;var h=new WeakMap,v=new WeakMap;return(u=function(E){return E?v:h})(y)}function d(y,h){if(y&&y.__esModule)return y;if(y===null||typeof y!="object"&&typeof y!="function")return{default:y};var v=u(h);if(v&&v.has(y))return v.get(y);var E={__proto__:null},T=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var C in y)if(C!=="default"&&Object.prototype.hasOwnProperty.call(y,C)){var k=T?Object.getOwnPropertyDescriptor(y,C):null;k&&(k.get||k.set)?Object.defineProperty(E,C,k):E[C]=y[C]}return E.default=y,v&&v.set(y,E),E}function f(){return f=Object.assign?Object.assign.bind():function(y){for(var h=1;hthis.dateRange.updatePreview(v?this.dateRange.calcNewSelection(v,typeof v=="string"):null)},this.props,{range:this.props.ranges[h[0]],className:void 0})),e.default.createElement(n.default,f({onRangeFocusChange:v=>this.setState({focusedRange:v}),focusedRange:h},this.props,{ref:v=>this.dateRange=v,className:void 0})))}};return g.defaultProps={},g.propTypes={...n.default.propTypes,...r.default.propTypes,className:t.default.string},m1.default=g,m1}var sY;function iHe(){return sY||(sY=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"Calendar",{enumerable:!0,get:function(){return n.default}}),Object.defineProperty(e,"DateRange",{enumerable:!0,get:function(){return t.default}}),Object.defineProperty(e,"DateRangePicker",{enumerable:!0,get:function(){return r.default}}),Object.defineProperty(e,"DefinedRange",{enumerable:!0,get:function(){return a.default}}),Object.defineProperty(e,"createStaticRanges",{enumerable:!0,get:function(){return i.createStaticRanges}}),Object.defineProperty(e,"defaultInputRanges",{enumerable:!0,get:function(){return i.defaultInputRanges}}),Object.defineProperty(e,"defaultStaticRanges",{enumerable:!0,get:function(){return i.defaultStaticRanges}});var t=o(nie()),n=o(tie()),r=o(aHe()),a=o(aie()),i=rie();function o(l){return l&&l.__esModule?l:{default:l}}})(rL)),rL}var oHe=iHe(),oL={},sHe={lessThanXSeconds:{one:"minder as 'n sekonde",other:"minder as {{count}} sekondes"},xSeconds:{one:"1 sekonde",other:"{{count}} sekondes"},halfAMinute:"'n halwe minuut",lessThanXMinutes:{one:"minder as 'n minuut",other:"minder as {{count}} minute"},xMinutes:{one:"'n minuut",other:"{{count}} minute"},aboutXHours:{one:"ongeveer 1 uur",other:"ongeveer {{count}} ure"},xHours:{one:"1 uur",other:"{{count}} ure"},xDays:{one:"1 dag",other:"{{count}} dae"},aboutXWeeks:{one:"ongeveer 1 week",other:"ongeveer {{count}} weke"},xWeeks:{one:"1 week",other:"{{count}} weke"},aboutXMonths:{one:"ongeveer 1 maand",other:"ongeveer {{count}} maande"},xMonths:{one:"1 maand",other:"{{count}} maande"},aboutXYears:{one:"ongeveer 1 jaar",other:"ongeveer {{count}} jaar"},xYears:{one:"1 jaar",other:"{{count}} jaar"},overXYears:{one:"meer as 1 jaar",other:"meer as {{count}} jaar"},almostXYears:{one:"byna 1 jaar",other:"byna {{count}} jaar"}},lHe=function(t,n,r){var a,i=sHe[t];return typeof i=="string"?a=i:n===1?a=i.one:a=i.other.replace("{{count}}",String(n)),r!=null&&r.addSuffix?r.comparison&&r.comparison>0?"oor "+a:a+" gelede":a},uHe={full:"EEEE, d MMMM yyyy",long:"d MMMM yyyy",medium:"d MMM yyyy",short:"yyyy/MM/dd"},cHe={full:"HH:mm:ss zzzz",long:"HH:mm:ss z",medium:"HH:mm:ss",short:"HH:mm"},dHe={full:"{{date}} 'om' {{time}}",long:"{{date}} 'om' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},fHe={date:Ne({formats:uHe,defaultWidth:"full"}),time:Ne({formats:cHe,defaultWidth:"full"}),dateTime:Ne({formats:dHe,defaultWidth:"full"})},pHe={lastWeek:"'verlede' eeee 'om' p",yesterday:"'gister om' p",today:"'vandag om' p",tomorrow:"'môre om' p",nextWeek:"eeee 'om' p",other:"P"},hHe=function(t,n,r,a){return pHe[t]},mHe={narrow:["vC","nC"],abbreviated:["vC","nC"],wide:["voor Christus","na Christus"]},gHe={narrow:["1","2","3","4"],abbreviated:["K1","K2","K3","K4"],wide:["1ste kwartaal","2de kwartaal","3de kwartaal","4de kwartaal"]},vHe={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mrt","Apr","Mei","Jun","Jul","Aug","Sep","Okt","Nov","Des"],wide:["Januarie","Februarie","Maart","April","Mei","Junie","Julie","Augustus","September","Oktober","November","Desember"]},yHe={narrow:["S","M","D","W","D","V","S"],short:["So","Ma","Di","Wo","Do","Vr","Sa"],abbreviated:["Son","Maa","Din","Woe","Don","Vry","Sat"],wide:["Sondag","Maandag","Dinsdag","Woensdag","Donderdag","Vrydag","Saterdag"]},bHe={narrow:{am:"vm",pm:"nm",midnight:"middernag",noon:"middaguur",morning:"oggend",afternoon:"middag",evening:"laat middag",night:"aand"},abbreviated:{am:"vm",pm:"nm",midnight:"middernag",noon:"middaguur",morning:"oggend",afternoon:"middag",evening:"laat middag",night:"aand"},wide:{am:"vm",pm:"nm",midnight:"middernag",noon:"middaguur",morning:"oggend",afternoon:"middag",evening:"laat middag",night:"aand"}},wHe={narrow:{am:"vm",pm:"nm",midnight:"middernag",noon:"uur die middag",morning:"uur die oggend",afternoon:"uur die middag",evening:"uur die aand",night:"uur die aand"},abbreviated:{am:"vm",pm:"nm",midnight:"middernag",noon:"uur die middag",morning:"uur die oggend",afternoon:"uur die middag",evening:"uur die aand",night:"uur die aand"},wide:{am:"vm",pm:"nm",midnight:"middernag",noon:"uur die middag",morning:"uur die oggend",afternoon:"uur die middag",evening:"uur die aand",night:"uur die aand"}},SHe=function(t){var n=Number(t),r=n%100;if(r<20)switch(r){case 1:case 8:return n+"ste";default:return n+"de"}return n+"ste"},EHe={ordinalNumber:SHe,era:oe({values:mHe,defaultWidth:"wide"}),quarter:oe({values:gHe,defaultWidth:"wide",argumentCallback:function(t){return t-1}}),month:oe({values:vHe,defaultWidth:"wide"}),day:oe({values:yHe,defaultWidth:"wide"}),dayPeriod:oe({values:bHe,defaultWidth:"wide",formattingValues:wHe,defaultFormattingWidth:"wide"})},THe=/^(\d+)(ste|de)?/i,CHe=/\d+/i,kHe={narrow:/^([vn]\.? ?C\.?)/,abbreviated:/^([vn]\. ?C\.?)/,wide:/^((voor|na) Christus)/},xHe={any:[/^v/,/^n/]},_He={narrow:/^[1234]/i,abbreviated:/^K[1234]/i,wide:/^[1234](st|d)e kwartaal/i},OHe={any:[/1/i,/2/i,/3/i,/4/i]},RHe={narrow:/^[jfmasond]/i,abbreviated:/^(Jan|Feb|Mrt|Apr|Mei|Jun|Jul|Aug|Sep|Okt|Nov|Dec)\.?/i,wide:/^(Januarie|Februarie|Maart|April|Mei|Junie|Julie|Augustus|September|Oktober|November|Desember)/i},PHe={narrow:[/^J/i,/^F/i,/^M/i,/^A/i,/^M/i,/^J/i,/^J/i,/^A/i,/^S/i,/^O/i,/^N/i,/^D/i],any:[/^Jan/i,/^Feb/i,/^Mrt/i,/^Apr/i,/^Mei/i,/^Jun/i,/^Jul/i,/^Aug/i,/^Sep/i,/^Okt/i,/^Nov/i,/^Dec/i]},AHe={narrow:/^[smdwv]/i,short:/^(So|Ma|Di|Wo|Do|Vr|Sa)/i,abbreviated:/^(Son|Maa|Din|Woe|Don|Vry|Sat)/i,wide:/^(Sondag|Maandag|Dinsdag|Woensdag|Donderdag|Vrydag|Saterdag)/i},NHe={narrow:[/^S/i,/^M/i,/^D/i,/^W/i,/^D/i,/^V/i,/^S/i],any:[/^So/i,/^Ma/i,/^Di/i,/^Wo/i,/^Do/i,/^Vr/i,/^Sa/i]},MHe={any:/^(vm|nm|middernag|(?:uur )?die (oggend|middag|aand))/i},IHe={any:{am:/^vm/i,pm:/^nm/i,midnight:/^middernag/i,noon:/^middaguur/i,morning:/oggend/i,afternoon:/middag/i,evening:/laat middag/i,night:/aand/i}},DHe={ordinalNumber:Xt({matchPattern:THe,parsePattern:CHe,valueCallback:function(t){return parseInt(t,10)}}),era:se({matchPatterns:kHe,defaultMatchWidth:"wide",parsePatterns:xHe,defaultParseWidth:"any"}),quarter:se({matchPatterns:_He,defaultMatchWidth:"wide",parsePatterns:OHe,defaultParseWidth:"any",valueCallback:function(t){return t+1}}),month:se({matchPatterns:RHe,defaultMatchWidth:"wide",parsePatterns:PHe,defaultParseWidth:"any"}),day:se({matchPatterns:AHe,defaultMatchWidth:"wide",parsePatterns:NHe,defaultParseWidth:"any"}),dayPeriod:se({matchPatterns:MHe,defaultMatchWidth:"any",parsePatterns:IHe,defaultParseWidth:"any"})},$He={code:"af",formatDistance:lHe,formatLong:fHe,formatRelative:hHe,localize:EHe,match:DHe,options:{weekStartsOn:0,firstWeekContainsDate:1}};const LHe=Object.freeze(Object.defineProperty({__proto__:null,default:$He},Symbol.toStringTag,{value:"Module"})),FHe=jt(LHe);var jHe={lessThanXSeconds:{one:"أقل من ثانية واحدة",two:"أقل من ثانتين",threeToTen:"أقل من {{count}} ثواني",other:"أقل من {{count}} ثانية"},xSeconds:{one:"ثانية واحدة",two:"ثانتين",threeToTen:"{{count}} ثواني",other:"{{count}} ثانية"},halfAMinute:"نصف دقيقة",lessThanXMinutes:{one:"أقل من دقيقة",two:"أقل من دقيقتين",threeToTen:"أقل من {{count}} دقائق",other:"أقل من {{count}} دقيقة"},xMinutes:{one:"دقيقة واحدة",two:"دقيقتين",threeToTen:"{{count}} دقائق",other:"{{count}} دقيقة"},aboutXHours:{one:"ساعة واحدة تقريباً",two:"ساعتين تقريباً",threeToTen:"{{count}} ساعات تقريباً",other:"{{count}} ساعة تقريباً"},xHours:{one:"ساعة واحدة",two:"ساعتين",threeToTen:"{{count}} ساعات",other:"{{count}} ساعة"},xDays:{one:"يوم واحد",two:"يومين",threeToTen:"{{count}} أيام",other:"{{count}} يوم"},aboutXWeeks:{one:"أسبوع واحد تقريباً",two:"أسبوعين تقريباً",threeToTen:"{{count}} أسابيع تقريباً",other:"{{count}} أسبوع تقريباً"},xWeeks:{one:"أسبوع واحد",two:"أسبوعين",threeToTen:"{{count}} أسابيع",other:"{{count}} أسبوع"},aboutXMonths:{one:"شهر واحد تقريباً",two:"شهرين تقريباً",threeToTen:"{{count}} أشهر تقريباً",other:"{{count}} شهر تقريباً"},xMonths:{one:"شهر واحد",two:"شهرين",threeToTen:"{{count}} أشهر",other:"{{count}} شهر"},aboutXYears:{one:"عام واحد تقريباً",two:"عامين تقريباً",threeToTen:"{{count}} أعوام تقريباً",other:"{{count}} عام تقريباً"},xYears:{one:"عام واحد",two:"عامين",threeToTen:"{{count}} أعوام",other:"{{count}} عام"},overXYears:{one:"أكثر من عام",two:"أكثر من عامين",threeToTen:"أكثر من {{count}} أعوام",other:"أكثر من {{count}} عام"},almostXYears:{one:"عام واحد تقريباً",two:"عامين تقريباً",threeToTen:"{{count}} أعوام تقريباً",other:"{{count}} عام تقريباً"}},UHe=function(t,n,r){r=r||{};var a=jHe[t],i;return typeof a=="string"?i=a:n===1?i=a.one:n===2?i=a.two:n<=10?i=a.threeToTen.replace("{{count}}",String(n)):i=a.other.replace("{{count}}",String(n)),r.addSuffix?r.comparison&&r.comparison>0?"في خلال "+i:"منذ "+i:i},BHe={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},WHe={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},zHe={full:"{{date}} 'عند' {{time}}",long:"{{date}} 'عند' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},qHe={date:Ne({formats:BHe,defaultWidth:"full"}),time:Ne({formats:WHe,defaultWidth:"full"}),dateTime:Ne({formats:zHe,defaultWidth:"full"})},HHe={lastWeek:"'أخر' eeee 'عند' p",yesterday:"'أمس عند' p",today:"'اليوم عند' p",tomorrow:"'غداً عند' p",nextWeek:"eeee 'عند' p",other:"P"},VHe=function(t,n,r,a){return HHe[t]},GHe={narrow:["ق","ب"],abbreviated:["ق.م.","ب.م."],wide:["قبل الميلاد","بعد الميلاد"]},YHe={narrow:["1","2","3","4"],abbreviated:["ر1","ر2","ر3","ر4"],wide:["الربع الأول","الربع الثاني","الربع الثالث","الربع الرابع"]},KHe={narrow:["ج","ف","م","أ","م","ج","ج","أ","س","أ","ن","د"],abbreviated:["جانـ","فيفـ","مارس","أفريل","مايـ","جوانـ","جويـ","أوت","سبتـ","أكتـ","نوفـ","ديسـ"],wide:["جانفي","فيفري","مارس","أفريل","ماي","جوان","جويلية","أوت","سبتمبر","أكتوبر","نوفمبر","ديسمبر"]},XHe={narrow:["ح","ن","ث","ر","خ","ج","س"],short:["أحد","اثنين","ثلاثاء","أربعاء","خميس","جمعة","سبت"],abbreviated:["أحد","اثنـ","ثلا","أربـ","خميـ","جمعة","سبت"],wide:["الأحد","الاثنين","الثلاثاء","الأربعاء","الخميس","الجمعة","السبت"]},QHe={narrow:{am:"ص",pm:"م",midnight:"ن",noon:"ظ",morning:"صباحاً",afternoon:"بعد الظهر",evening:"مساءاً",night:"ليلاً"},abbreviated:{am:"ص",pm:"م",midnight:"نصف الليل",noon:"ظهر",morning:"صباحاً",afternoon:"بعد الظهر",evening:"مساءاً",night:"ليلاً"},wide:{am:"ص",pm:"م",midnight:"نصف الليل",noon:"ظهر",morning:"صباحاً",afternoon:"بعد الظهر",evening:"مساءاً",night:"ليلاً"}},JHe={narrow:{am:"ص",pm:"م",midnight:"ن",noon:"ظ",morning:"في الصباح",afternoon:"بعد الظـهر",evening:"في المساء",night:"في الليل"},abbreviated:{am:"ص",pm:"م",midnight:"نصف الليل",noon:"ظهر",morning:"في الصباح",afternoon:"بعد الظهر",evening:"في المساء",night:"في الليل"},wide:{am:"ص",pm:"م",midnight:"نصف الليل",noon:"ظهر",morning:"صباحاً",afternoon:"بعد الظـهر",evening:"في المساء",night:"في الليل"}},ZHe=function(t){return String(t)},e7e={ordinalNumber:ZHe,era:oe({values:GHe,defaultWidth:"wide"}),quarter:oe({values:YHe,defaultWidth:"wide",argumentCallback:function(t){return Number(t)-1}}),month:oe({values:KHe,defaultWidth:"wide"}),day:oe({values:XHe,defaultWidth:"wide"}),dayPeriod:oe({values:QHe,defaultWidth:"wide",formattingValues:JHe,defaultFormattingWidth:"wide"})},t7e=/^(\d+)(th|st|nd|rd)?/i,n7e=/\d+/i,r7e={narrow:/^(ق|ب)/i,abbreviated:/^(ق\.?\s?م\.?|ق\.?\s?م\.?\s?|a\.?\s?d\.?|c\.?\s?)/i,wide:/^(قبل الميلاد|قبل الميلاد|بعد الميلاد|بعد الميلاد)/i},a7e={any:[/^قبل/i,/^بعد/i]},i7e={narrow:/^[1234]/i,abbreviated:/^ر[1234]/i,wide:/^الربع [1234]/i},o7e={any:[/1/i,/2/i,/3/i,/4/i]},s7e={narrow:/^[جفمأسند]/i,abbreviated:/^(جان|فيف|مار|أفر|ماي|جوا|جوي|أوت|سبت|أكت|نوف|ديس)/i,wide:/^(جانفي|فيفري|مارس|أفريل|ماي|جوان|جويلية|أوت|سبتمبر|أكتوبر|نوفمبر|ديسمبر)/i},l7e={narrow:[/^ج/i,/^ف/i,/^م/i,/^أ/i,/^م/i,/^ج/i,/^ج/i,/^أ/i,/^س/i,/^أ/i,/^ن/i,/^د/i],any:[/^جان/i,/^فيف/i,/^مار/i,/^أفر/i,/^ماي/i,/^جوا/i,/^جوي/i,/^أوت/i,/^سبت/i,/^أكت/i,/^نوف/i,/^ديس/i]},u7e={narrow:/^[حنثرخجس]/i,short:/^(أحد|اثنين|ثلاثاء|أربعاء|خميس|جمعة|سبت)/i,abbreviated:/^(أحد|اثن|ثلا|أرب|خمي|جمعة|سبت)/i,wide:/^(الأحد|الاثنين|الثلاثاء|الأربعاء|الخميس|الجمعة|السبت)/i},c7e={narrow:[/^ح/i,/^ن/i,/^ث/i,/^ر/i,/^خ/i,/^ج/i,/^س/i],wide:[/^الأحد/i,/^الاثنين/i,/^الثلاثاء/i,/^الأربعاء/i,/^الخميس/i,/^الجمعة/i,/^السبت/i],any:[/^أح/i,/^اث/i,/^ث/i,/^أر/i,/^خ/i,/^ج/i,/^س/i]},d7e={narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},f7e={any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},p7e={ordinalNumber:Xt({matchPattern:t7e,parsePattern:n7e,valueCallback:function(t){return parseInt(t,10)}}),era:se({matchPatterns:r7e,defaultMatchWidth:"wide",parsePatterns:a7e,defaultParseWidth:"any"}),quarter:se({matchPatterns:i7e,defaultMatchWidth:"wide",parsePatterns:o7e,defaultParseWidth:"any",valueCallback:function(t){return Number(t)+1}}),month:se({matchPatterns:s7e,defaultMatchWidth:"wide",parsePatterns:l7e,defaultParseWidth:"any"}),day:se({matchPatterns:u7e,defaultMatchWidth:"wide",parsePatterns:c7e,defaultParseWidth:"any"}),dayPeriod:se({matchPatterns:d7e,defaultMatchWidth:"any",parsePatterns:f7e,defaultParseWidth:"any"})},h7e={code:"ar-DZ",formatDistance:UHe,formatLong:qHe,formatRelative:VHe,localize:e7e,match:p7e,options:{weekStartsOn:0,firstWeekContainsDate:1}};const m7e=Object.freeze(Object.defineProperty({__proto__:null,default:h7e},Symbol.toStringTag,{value:"Module"})),g7e=jt(m7e);var v7e={lessThanXSeconds:{one:"أقل من ثانية واحدة",two:"أقل من ثانتين",threeToTen:"أقل من {{count}} ثواني",other:"أقل من {{count}} ثانية"},xSeconds:{one:"ثانية واحدة",two:"ثانتين",threeToTen:"{{count}} ثواني",other:"{{count}} ثانية"},halfAMinute:"نصف دقيقة",lessThanXMinutes:{one:"أقل من دقيقة",two:"أقل من دقيقتين",threeToTen:"أقل من {{count}} دقائق",other:"أقل من {{count}} دقيقة"},xMinutes:{one:"دقيقة واحدة",two:"دقيقتين",threeToTen:"{{count}} دقائق",other:"{{count}} دقيقة"},aboutXHours:{one:"ساعة واحدة تقريباً",two:"ساعتين تقريباً",threeToTen:"{{count}} ساعات تقريباً",other:"{{count}} ساعة تقريباً"},xHours:{one:"ساعة واحدة",two:"ساعتين",threeToTen:"{{count}} ساعات",other:"{{count}} ساعة"},xDays:{one:"يوم واحد",two:"يومين",threeToTen:"{{count}} أيام",other:"{{count}} يوم"},aboutXWeeks:{one:"أسبوع واحد تقريباً",two:"أسبوعين تقريباً",threeToTen:"{{count}} أسابيع تقريباً",other:"{{count}} أسبوع تقريباً"},xWeeks:{one:"أسبوع واحد",two:"أسبوعين",threeToTen:"{{count}} أسابيع",other:"{{count}} أسبوع"},aboutXMonths:{one:"شهر واحد تقريباً",two:"شهرين تقريباً",threeToTen:"{{count}} أشهر تقريباً",other:"{{count}} شهر تقريباً"},xMonths:{one:"شهر واحد",two:"شهرين",threeToTen:"{{count}} أشهر",other:"{{count}} شهر"},aboutXYears:{one:"عام واحد تقريباً",two:"عامين تقريباً",threeToTen:"{{count}} أعوام تقريباً",other:"{{count}} عام تقريباً"},xYears:{one:"عام واحد",two:"عامين",threeToTen:"{{count}} أعوام",other:"{{count}} عام"},overXYears:{one:"أكثر من عام",two:"أكثر من عامين",threeToTen:"أكثر من {{count}} أعوام",other:"أكثر من {{count}} عام"},almostXYears:{one:"عام واحد تقريباً",two:"عامين تقريباً",threeToTen:"{{count}} أعوام تقريباً",other:"{{count}} عام تقريباً"}},y7e=function(t,n,r){var a,i=v7e[t];return typeof i=="string"?a=i:n===1?a=i.one:n===2?a=i.two:n<=10?a=i.threeToTen.replace("{{count}}",String(n)):a=i.other.replace("{{count}}",String(n)),r!=null&&r.addSuffix?r.comparison&&r.comparison>0?"في خلال "+a:"منذ "+a:a},b7e={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},w7e={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},S7e={full:"{{date}} 'عند' {{time}}",long:"{{date}} 'عند' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},E7e={date:Ne({formats:b7e,defaultWidth:"full"}),time:Ne({formats:w7e,defaultWidth:"full"}),dateTime:Ne({formats:S7e,defaultWidth:"full"})},T7e={lastWeek:"'أخر' eeee 'عند' p",yesterday:"'أمس عند' p",today:"'اليوم عند' p",tomorrow:"'غداً عند' p",nextWeek:"eeee 'عند' p",other:"P"},C7e=function(t,n,r,a){return T7e[t]},k7e={narrow:["ق","ب"],abbreviated:["ق.م.","ب.م."],wide:["قبل الميلاد","بعد الميلاد"]},x7e={narrow:["1","2","3","4"],abbreviated:["ر1","ر2","ر3","ر4"],wide:["الربع الأول","الربع الثاني","الربع الثالث","الربع الرابع"]},_7e={narrow:["ي","ف","م","أ","م","ي","ي","أ","س","أ","ن","د"],abbreviated:["ينا","فبر","مارس","أبريل","مايو","يونـ","يولـ","أغسـ","سبتـ","أكتـ","نوفـ","ديسـ"],wide:["يناير","فبراير","مارس","أبريل","مايو","يونيو","يوليو","أغسطس","سبتمبر","أكتوبر","نوفمبر","ديسمبر"]},O7e={narrow:["ح","ن","ث","ر","خ","ج","س"],short:["أحد","اثنين","ثلاثاء","أربعاء","خميس","جمعة","سبت"],abbreviated:["أحد","اثنـ","ثلا","أربـ","خميـ","جمعة","سبت"],wide:["الأحد","الاثنين","الثلاثاء","الأربعاء","الخميس","الجمعة","السبت"]},R7e={narrow:{am:"ص",pm:"م",midnight:"ن",noon:"ظ",morning:"صباحاً",afternoon:"بعد الظهر",evening:"مساءاً",night:"ليلاً"},abbreviated:{am:"ص",pm:"م",midnight:"نصف الليل",noon:"ظهر",morning:"صباحاً",afternoon:"بعد الظهر",evening:"مساءاً",night:"ليلاً"},wide:{am:"ص",pm:"م",midnight:"نصف الليل",noon:"ظهر",morning:"صباحاً",afternoon:"بعد الظهر",evening:"مساءاً",night:"ليلاً"}},P7e={narrow:{am:"ص",pm:"م",midnight:"ن",noon:"ظ",morning:"في الصباح",afternoon:"بعد الظـهر",evening:"في المساء",night:"في الليل"},abbreviated:{am:"ص",pm:"م",midnight:"نصف الليل",noon:"ظهر",morning:"في الصباح",afternoon:"بعد الظهر",evening:"في المساء",night:"في الليل"},wide:{am:"ص",pm:"م",midnight:"نصف الليل",noon:"ظهر",morning:"صباحاً",afternoon:"بعد الظـهر",evening:"في المساء",night:"في الليل"}},A7e=function(t){return String(t)},N7e={ordinalNumber:A7e,era:oe({values:k7e,defaultWidth:"wide"}),quarter:oe({values:x7e,defaultWidth:"wide",argumentCallback:function(t){return t-1}}),month:oe({values:_7e,defaultWidth:"wide"}),day:oe({values:O7e,defaultWidth:"wide"}),dayPeriod:oe({values:R7e,defaultWidth:"wide",formattingValues:P7e,defaultFormattingWidth:"wide"})},M7e=/^(\d+)(th|st|nd|rd)?/i,I7e=/\d+/i,D7e={narrow:/^(ق|ب)/i,abbreviated:/^(ق\.?\s?م\.?|ق\.?\s?م\.?\s?|a\.?\s?d\.?|c\.?\s?)/i,wide:/^(قبل الميلاد|قبل الميلاد|بعد الميلاد|بعد الميلاد)/i},$7e={any:[/^قبل/i,/^بعد/i]},L7e={narrow:/^[1234]/i,abbreviated:/^ر[1234]/i,wide:/^الربع [1234]/i},F7e={any:[/1/i,/2/i,/3/i,/4/i]},j7e={narrow:/^[يفمأمسند]/i,abbreviated:/^(ين|ف|مار|أب|ماي|يون|يول|أغ|س|أك|ن|د)/i,wide:/^(ين|ف|مار|أب|ماي|يون|يول|أغ|س|أك|ن|د)/i},U7e={narrow:[/^ي/i,/^ف/i,/^م/i,/^أ/i,/^م/i,/^ي/i,/^ي/i,/^أ/i,/^س/i,/^أ/i,/^ن/i,/^د/i],any:[/^ين/i,/^ف/i,/^مار/i,/^أب/i,/^ماي/i,/^يون/i,/^يول/i,/^أغ/i,/^س/i,/^أك/i,/^ن/i,/^د/i]},B7e={narrow:/^[حنثرخجس]/i,short:/^(أحد|اثنين|ثلاثاء|أربعاء|خميس|جمعة|سبت)/i,abbreviated:/^(أحد|اثن|ثلا|أرب|خمي|جمعة|سبت)/i,wide:/^(الأحد|الاثنين|الثلاثاء|الأربعاء|الخميس|الجمعة|السبت)/i},W7e={narrow:[/^ح/i,/^ن/i,/^ث/i,/^ر/i,/^خ/i,/^ج/i,/^س/i],wide:[/^الأحد/i,/^الاثنين/i,/^الثلاثاء/i,/^الأربعاء/i,/^الخميس/i,/^الجمعة/i,/^السبت/i],any:[/^أح/i,/^اث/i,/^ث/i,/^أر/i,/^خ/i,/^ج/i,/^س/i]},z7e={narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},q7e={any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},H7e={ordinalNumber:Xt({matchPattern:M7e,parsePattern:I7e,valueCallback:function(t){return parseInt(t,10)}}),era:se({matchPatterns:D7e,defaultMatchWidth:"wide",parsePatterns:$7e,defaultParseWidth:"any"}),quarter:se({matchPatterns:L7e,defaultMatchWidth:"wide",parsePatterns:F7e,defaultParseWidth:"any",valueCallback:function(t){return t+1}}),month:se({matchPatterns:j7e,defaultMatchWidth:"wide",parsePatterns:U7e,defaultParseWidth:"any"}),day:se({matchPatterns:B7e,defaultMatchWidth:"wide",parsePatterns:W7e,defaultParseWidth:"any"}),dayPeriod:se({matchPatterns:z7e,defaultMatchWidth:"any",parsePatterns:q7e,defaultParseWidth:"any"})},V7e={code:"ar-SA",formatDistance:y7e,formatLong:E7e,formatRelative:C7e,localize:N7e,match:H7e,options:{weekStartsOn:0,firstWeekContainsDate:1}};const G7e=Object.freeze(Object.defineProperty({__proto__:null,default:V7e},Symbol.toStringTag,{value:"Module"})),Y7e=jt(G7e);function y1(e,t){if(e.one!==void 0&&t===1)return e.one;var n=t%10,r=t%100;return n===1&&r!==11?e.singularNominative.replace("{{count}}",String(t)):n>=2&&n<=4&&(r<10||r>20)?e.singularGenitive.replace("{{count}}",String(t)):e.pluralGenitive.replace("{{count}}",String(t))}function No(e){return function(t,n){return n&&n.addSuffix?n.comparison&&n.comparison>0?e.future?y1(e.future,t):"праз "+y1(e.regular,t):e.past?y1(e.past,t):y1(e.regular,t)+" таму":y1(e.regular,t)}}var K7e=function(t,n){return n&&n.addSuffix?n.comparison&&n.comparison>0?"праз паўхвіліны":"паўхвіліны таму":"паўхвіліны"},X7e={lessThanXSeconds:No({regular:{one:"менш за секунду",singularNominative:"менш за {{count}} секунду",singularGenitive:"менш за {{count}} секунды",pluralGenitive:"менш за {{count}} секунд"},future:{one:"менш, чым праз секунду",singularNominative:"менш, чым праз {{count}} секунду",singularGenitive:"менш, чым праз {{count}} секунды",pluralGenitive:"менш, чым праз {{count}} секунд"}}),xSeconds:No({regular:{singularNominative:"{{count}} секунда",singularGenitive:"{{count}} секунды",pluralGenitive:"{{count}} секунд"},past:{singularNominative:"{{count}} секунду таму",singularGenitive:"{{count}} секунды таму",pluralGenitive:"{{count}} секунд таму"},future:{singularNominative:"праз {{count}} секунду",singularGenitive:"праз {{count}} секунды",pluralGenitive:"праз {{count}} секунд"}}),halfAMinute:K7e,lessThanXMinutes:No({regular:{one:"менш за хвіліну",singularNominative:"менш за {{count}} хвіліну",singularGenitive:"менш за {{count}} хвіліны",pluralGenitive:"менш за {{count}} хвілін"},future:{one:"менш, чым праз хвіліну",singularNominative:"менш, чым праз {{count}} хвіліну",singularGenitive:"менш, чым праз {{count}} хвіліны",pluralGenitive:"менш, чым праз {{count}} хвілін"}}),xMinutes:No({regular:{singularNominative:"{{count}} хвіліна",singularGenitive:"{{count}} хвіліны",pluralGenitive:"{{count}} хвілін"},past:{singularNominative:"{{count}} хвіліну таму",singularGenitive:"{{count}} хвіліны таму",pluralGenitive:"{{count}} хвілін таму"},future:{singularNominative:"праз {{count}} хвіліну",singularGenitive:"праз {{count}} хвіліны",pluralGenitive:"праз {{count}} хвілін"}}),aboutXHours:No({regular:{singularNominative:"каля {{count}} гадзіны",singularGenitive:"каля {{count}} гадзін",pluralGenitive:"каля {{count}} гадзін"},future:{singularNominative:"прыблізна праз {{count}} гадзіну",singularGenitive:"прыблізна праз {{count}} гадзіны",pluralGenitive:"прыблізна праз {{count}} гадзін"}}),xHours:No({regular:{singularNominative:"{{count}} гадзіна",singularGenitive:"{{count}} гадзіны",pluralGenitive:"{{count}} гадзін"},past:{singularNominative:"{{count}} гадзіну таму",singularGenitive:"{{count}} гадзіны таму",pluralGenitive:"{{count}} гадзін таму"},future:{singularNominative:"праз {{count}} гадзіну",singularGenitive:"праз {{count}} гадзіны",pluralGenitive:"праз {{count}} гадзін"}}),xDays:No({regular:{singularNominative:"{{count}} дзень",singularGenitive:"{{count}} дні",pluralGenitive:"{{count}} дзён"}}),aboutXWeeks:No({regular:{singularNominative:"каля {{count}} месяца",singularGenitive:"каля {{count}} месяцаў",pluralGenitive:"каля {{count}} месяцаў"},future:{singularNominative:"прыблізна праз {{count}} месяц",singularGenitive:"прыблізна праз {{count}} месяцы",pluralGenitive:"прыблізна праз {{count}} месяцаў"}}),xWeeks:No({regular:{singularNominative:"{{count}} месяц",singularGenitive:"{{count}} месяцы",pluralGenitive:"{{count}} месяцаў"}}),aboutXMonths:No({regular:{singularNominative:"каля {{count}} месяца",singularGenitive:"каля {{count}} месяцаў",pluralGenitive:"каля {{count}} месяцаў"},future:{singularNominative:"прыблізна праз {{count}} месяц",singularGenitive:"прыблізна праз {{count}} месяцы",pluralGenitive:"прыблізна праз {{count}} месяцаў"}}),xMonths:No({regular:{singularNominative:"{{count}} месяц",singularGenitive:"{{count}} месяцы",pluralGenitive:"{{count}} месяцаў"}}),aboutXYears:No({regular:{singularNominative:"каля {{count}} года",singularGenitive:"каля {{count}} гадоў",pluralGenitive:"каля {{count}} гадоў"},future:{singularNominative:"прыблізна праз {{count}} год",singularGenitive:"прыблізна праз {{count}} гады",pluralGenitive:"прыблізна праз {{count}} гадоў"}}),xYears:No({regular:{singularNominative:"{{count}} год",singularGenitive:"{{count}} гады",pluralGenitive:"{{count}} гадоў"}}),overXYears:No({regular:{singularNominative:"больш за {{count}} год",singularGenitive:"больш за {{count}} гады",pluralGenitive:"больш за {{count}} гадоў"},future:{singularNominative:"больш, чым праз {{count}} год",singularGenitive:"больш, чым праз {{count}} гады",pluralGenitive:"больш, чым праз {{count}} гадоў"}}),almostXYears:No({regular:{singularNominative:"амаль {{count}} год",singularGenitive:"амаль {{count}} гады",pluralGenitive:"амаль {{count}} гадоў"},future:{singularNominative:"амаль праз {{count}} год",singularGenitive:"амаль праз {{count}} гады",pluralGenitive:"амаль праз {{count}} гадоў"}})},Q7e=function(t,n,r){return r=r||{},X7e[t](n,r)},J7e={full:"EEEE, d MMMM y 'г.'",long:"d MMMM y 'г.'",medium:"d MMM y 'г.'",short:"dd.MM.y"},Z7e={full:"H:mm:ss zzzz",long:"H:mm:ss z",medium:"H:mm:ss",short:"H:mm"},eVe={any:"{{date}}, {{time}}"},tVe={date:Ne({formats:J7e,defaultWidth:"full"}),time:Ne({formats:Z7e,defaultWidth:"full"}),dateTime:Ne({formats:eVe,defaultWidth:"any"})};function Ei(e,t,n){he(2,arguments);var r=af(e,n),a=af(t,n);return r.getTime()===a.getTime()}var Q4=["нядзелю","панядзелак","аўторак","сераду","чацвер","пятніцу","суботу"];function nVe(e){var t=Q4[e];switch(e){case 0:case 3:case 5:case 6:return"'у мінулую "+t+" а' p";case 1:case 2:case 4:return"'у мінулы "+t+" а' p"}}function iie(e){var t=Q4[e];return"'у "+t+" а' p"}function rVe(e){var t=Q4[e];switch(e){case 0:case 3:case 5:case 6:return"'у наступную "+t+" а' p";case 1:case 2:case 4:return"'у наступны "+t+" а' p"}}var aVe=function(t,n,r){var a=Re(t),i=a.getUTCDay();return Ei(a,n,r)?iie(i):nVe(i)},iVe=function(t,n,r){var a=Re(t),i=a.getUTCDay();return Ei(a,n,r)?iie(i):rVe(i)},oVe={lastWeek:aVe,yesterday:"'учора а' p",today:"'сёння а' p",tomorrow:"'заўтра а' p",nextWeek:iVe,other:"P"},sVe=function(t,n,r,a){var i=oVe[t];return typeof i=="function"?i(n,r,a):i},lVe={narrow:["да н.э.","н.э."],abbreviated:["да н. э.","н. э."],wide:["да нашай эры","нашай эры"]},uVe={narrow:["1","2","3","4"],abbreviated:["1-ы кв.","2-і кв.","3-і кв.","4-ы кв."],wide:["1-ы квартал","2-і квартал","3-і квартал","4-ы квартал"]},cVe={narrow:["С","Л","С","К","М","Ч","Л","Ж","В","К","Л","С"],abbreviated:["студз.","лют.","сак.","крас.","май","чэрв.","ліп.","жн.","вер.","кастр.","ліст.","снеж."],wide:["студзень","люты","сакавік","красавік","май","чэрвень","ліпень","жнівень","верасень","кастрычнік","лістапад","снежань"]},dVe={narrow:["С","Л","С","К","М","Ч","Л","Ж","В","К","Л","С"],abbreviated:["студз.","лют.","сак.","крас.","мая","чэрв.","ліп.","жн.","вер.","кастр.","ліст.","снеж."],wide:["студзеня","лютага","сакавіка","красавіка","мая","чэрвеня","ліпеня","жніўня","верасня","кастрычніка","лістапада","снежня"]},fVe={narrow:["Н","П","А","С","Ч","П","С"],short:["нд","пн","аў","ср","чц","пт","сб"],abbreviated:["нядз","пан","аўт","сер","чац","пят","суб"],wide:["нядзеля","панядзелак","аўторак","серада","чацвер","пятніца","субота"]},pVe={narrow:{am:"ДП",pm:"ПП",midnight:"поўн.",noon:"поўд.",morning:"ран.",afternoon:"дзень",evening:"веч.",night:"ноч"},abbreviated:{am:"ДП",pm:"ПП",midnight:"поўн.",noon:"поўд.",morning:"ран.",afternoon:"дзень",evening:"веч.",night:"ноч"},wide:{am:"ДП",pm:"ПП",midnight:"поўнач",noon:"поўдзень",morning:"раніца",afternoon:"дзень",evening:"вечар",night:"ноч"}},hVe={narrow:{am:"ДП",pm:"ПП",midnight:"поўн.",noon:"поўд.",morning:"ран.",afternoon:"дня",evening:"веч.",night:"ночы"},abbreviated:{am:"ДП",pm:"ПП",midnight:"поўн.",noon:"поўд.",morning:"ран.",afternoon:"дня",evening:"веч.",night:"ночы"},wide:{am:"ДП",pm:"ПП",midnight:"поўнач",noon:"поўдзень",morning:"раніцы",afternoon:"дня",evening:"вечара",night:"ночы"}},mVe=function(t,n){var r=String(n==null?void 0:n.unit),a=Number(t),i;return r==="date"?i="-га":r==="hour"||r==="minute"||r==="second"?i="-я":i=(a%10===2||a%10===3)&&a%100!==12&&a%100!==13?"-і":"-ы",a+i},gVe={ordinalNumber:mVe,era:oe({values:lVe,defaultWidth:"wide"}),quarter:oe({values:uVe,defaultWidth:"wide",argumentCallback:function(t){return t-1}}),month:oe({values:cVe,defaultWidth:"wide",formattingValues:dVe,defaultFormattingWidth:"wide"}),day:oe({values:fVe,defaultWidth:"wide"}),dayPeriod:oe({values:pVe,defaultWidth:"any",formattingValues:hVe,defaultFormattingWidth:"wide"})},vVe=/^(\d+)(-?(е|я|га|і|ы|ае|ая|яя|шы|гі|ці|ты|мы))?/i,yVe=/\d+/i,bVe={narrow:/^((да )?н\.?\s?э\.?)/i,abbreviated:/^((да )?н\.?\s?э\.?)/i,wide:/^(да нашай эры|нашай эры|наша эра)/i},wVe={any:[/^д/i,/^н/i]},SVe={narrow:/^[1234]/i,abbreviated:/^[1234](-?[ыі]?)? кв.?/i,wide:/^[1234](-?[ыі]?)? квартал/i},EVe={any:[/1/i,/2/i,/3/i,/4/i]},TVe={narrow:/^[слкмчжв]/i,abbreviated:/^(студз|лют|сак|крас|ма[йя]|чэрв|ліп|жн|вер|кастр|ліст|снеж)\.?/i,wide:/^(студзен[ья]|лют(ы|ага)|сакавіка?|красавіка?|ма[йя]|чэрвен[ья]|ліпен[ья]|жні(вень|ўня)|верас(ень|ня)|кастрычніка?|лістапада?|снеж(ань|ня))/i},CVe={narrow:[/^с/i,/^л/i,/^с/i,/^к/i,/^м/i,/^ч/i,/^л/i,/^ж/i,/^в/i,/^к/i,/^л/i,/^с/i],any:[/^ст/i,/^лю/i,/^са/i,/^кр/i,/^ма/i,/^ч/i,/^ліп/i,/^ж/i,/^в/i,/^ка/i,/^ліс/i,/^сн/i]},kVe={narrow:/^[нпасч]/i,short:/^(нд|ня|пн|па|аў|ат|ср|се|чц|ча|пт|пя|сб|су)\.?/i,abbreviated:/^(нядз?|ндз|пнд|пан|аўт|срд|сер|чцв|чац|птн|пят|суб).?/i,wide:/^(нядзел[яі]|панядзел(ак|ка)|аўтор(ак|ка)|серад[аы]|чацв(ер|ярга)|пятніц[аы]|субот[аы])/i},xVe={narrow:[/^н/i,/^п/i,/^а/i,/^с/i,/^ч/i,/^п/i,/^с/i],any:[/^н/i,/^п[ан]/i,/^а/i,/^с[ер]/i,/^ч/i,/^п[ят]/i,/^с[уб]/i]},_Ve={narrow:/^([дп]п|поўн\.?|поўд\.?|ран\.?|дзень|дня|веч\.?|ночы?)/i,abbreviated:/^([дп]п|поўн\.?|поўд\.?|ран\.?|дзень|дня|веч\.?|ночы?)/i,wide:/^([дп]п|поўнач|поўдзень|раніц[аы]|дзень|дня|вечара?|ночы?)/i},OVe={any:{am:/^дп/i,pm:/^пп/i,midnight:/^поўн/i,noon:/^поўд/i,morning:/^р/i,afternoon:/^д[зн]/i,evening:/^в/i,night:/^н/i}},RVe={ordinalNumber:Xt({matchPattern:vVe,parsePattern:yVe,valueCallback:function(t){return parseInt(t,10)}}),era:se({matchPatterns:bVe,defaultMatchWidth:"wide",parsePatterns:wVe,defaultParseWidth:"any"}),quarter:se({matchPatterns:SVe,defaultMatchWidth:"wide",parsePatterns:EVe,defaultParseWidth:"any",valueCallback:function(t){return t+1}}),month:se({matchPatterns:TVe,defaultMatchWidth:"wide",parsePatterns:CVe,defaultParseWidth:"any"}),day:se({matchPatterns:kVe,defaultMatchWidth:"wide",parsePatterns:xVe,defaultParseWidth:"any"}),dayPeriod:se({matchPatterns:_Ve,defaultMatchWidth:"wide",parsePatterns:OVe,defaultParseWidth:"any"})},PVe={code:"be",formatDistance:Q7e,formatLong:tVe,formatRelative:sVe,localize:gVe,match:RVe,options:{weekStartsOn:1,firstWeekContainsDate:1}};const AVe=Object.freeze(Object.defineProperty({__proto__:null,default:PVe},Symbol.toStringTag,{value:"Module"})),NVe=jt(AVe);var MVe={lessThanXSeconds:{one:"по-малко от секунда",other:"по-малко от {{count}} секунди"},xSeconds:{one:"1 секунда",other:"{{count}} секунди"},halfAMinute:"половин минута",lessThanXMinutes:{one:"по-малко от минута",other:"по-малко от {{count}} минути"},xMinutes:{one:"1 минута",other:"{{count}} минути"},aboutXHours:{one:"около час",other:"около {{count}} часа"},xHours:{one:"1 час",other:"{{count}} часа"},xDays:{one:"1 ден",other:"{{count}} дни"},aboutXWeeks:{one:"около седмица",other:"около {{count}} седмици"},xWeeks:{one:"1 седмица",other:"{{count}} седмици"},aboutXMonths:{one:"около месец",other:"около {{count}} месеца"},xMonths:{one:"1 месец",other:"{{count}} месеца"},aboutXYears:{one:"около година",other:"около {{count}} години"},xYears:{one:"1 година",other:"{{count}} години"},overXYears:{one:"над година",other:"над {{count}} години"},almostXYears:{one:"почти година",other:"почти {{count}} години"}},IVe=function(t,n,r){var a,i=MVe[t];return typeof i=="string"?a=i:n===1?a=i.one:a=i.other.replace("{{count}}",String(n)),r!=null&&r.addSuffix?r.comparison&&r.comparison>0?"след "+a:"преди "+a:a},DVe={full:"EEEE, dd MMMM yyyy",long:"dd MMMM yyyy",medium:"dd MMM yyyy",short:"dd/MM/yyyy"},$Ve={full:"HH:mm:ss zzzz",long:"HH:mm:ss z",medium:"HH:mm:ss",short:"H:mm"},LVe={any:"{{date}} {{time}}"},FVe={date:Ne({formats:DVe,defaultWidth:"full"}),time:Ne({formats:$Ve,defaultWidth:"full"}),dateTime:Ne({formats:LVe,defaultWidth:"any"})},J4=["неделя","понеделник","вторник","сряда","четвъртък","петък","събота"];function jVe(e){var t=J4[e];switch(e){case 0:case 3:case 6:return"'миналата "+t+" в' p";case 1:case 2:case 4:case 5:return"'миналия "+t+" в' p"}}function oie(e){var t=J4[e];return e===2?"'във "+t+" в' p":"'в "+t+" в' p"}function UVe(e){var t=J4[e];switch(e){case 0:case 3:case 6:return"'следващата "+t+" в' p";case 1:case 2:case 4:case 5:return"'следващия "+t+" в' p"}}var BVe=function(t,n,r){var a=Re(t),i=a.getUTCDay();return Ei(a,n,r)?oie(i):jVe(i)},WVe=function(t,n,r){var a=Re(t),i=a.getUTCDay();return Ei(a,n,r)?oie(i):UVe(i)},zVe={lastWeek:BVe,yesterday:"'вчера в' p",today:"'днес в' p",tomorrow:"'утре в' p",nextWeek:WVe,other:"P"},qVe=function(t,n,r,a){var i=zVe[t];return typeof i=="function"?i(n,r,a):i},HVe={narrow:["пр.н.е.","н.е."],abbreviated:["преди н. е.","н. е."],wide:["преди новата ера","новата ера"]},VVe={narrow:["1","2","3","4"],abbreviated:["1-во тримес.","2-ро тримес.","3-то тримес.","4-то тримес."],wide:["1-во тримесечие","2-ро тримесечие","3-то тримесечие","4-то тримесечие"]},GVe={abbreviated:["яну","фев","мар","апр","май","юни","юли","авг","сеп","окт","ное","дек"],wide:["януари","февруари","март","април","май","юни","юли","август","септември","октомври","ноември","декември"]},YVe={narrow:["Н","П","В","С","Ч","П","С"],short:["нд","пн","вт","ср","чт","пт","сб"],abbreviated:["нед","пон","вто","сря","чет","пет","съб"],wide:["неделя","понеделник","вторник","сряда","четвъртък","петък","събота"]},KVe={wide:{am:"преди обяд",pm:"след обяд",midnight:"в полунощ",noon:"на обяд",morning:"сутринта",afternoon:"следобед",evening:"вечерта",night:"през нощта"}};function XVe(e){return e==="year"||e==="week"||e==="minute"||e==="second"}function QVe(e){return e==="quarter"}function Sv(e,t,n,r,a){var i=QVe(t)?a:XVe(t)?r:n;return e+"-"+i}var JVe=function(t,n){var r=Number(t),a=n==null?void 0:n.unit;if(r===0)return Sv(0,a,"ев","ева","ево");if(r%1e3===0)return Sv(r,a,"ен","на","но");if(r%100===0)return Sv(r,a,"тен","тна","тно");var i=r%100;if(i>20||i<10)switch(i%10){case 1:return Sv(r,a,"ви","ва","во");case 2:return Sv(r,a,"ри","ра","ро");case 7:case 8:return Sv(r,a,"ми","ма","мо")}return Sv(r,a,"ти","та","то")},ZVe={ordinalNumber:JVe,era:oe({values:HVe,defaultWidth:"wide"}),quarter:oe({values:VVe,defaultWidth:"wide",argumentCallback:function(t){return t-1}}),month:oe({values:GVe,defaultWidth:"wide"}),day:oe({values:YVe,defaultWidth:"wide"}),dayPeriod:oe({values:KVe,defaultWidth:"wide"})},eGe=/^(\d+)(-?[врмт][аи]|-?т?(ен|на)|-?(ев|ева))?/i,tGe=/\d+/i,nGe={narrow:/^((пр)?н\.?\s?е\.?)/i,abbreviated:/^((пр)?н\.?\s?е\.?)/i,wide:/^(преди новата ера|новата ера|нова ера)/i},rGe={any:[/^п/i,/^н/i]},aGe={narrow:/^[1234]/i,abbreviated:/^[1234](-?[врт]?o?)? тримес.?/i,wide:/^[1234](-?[врт]?о?)? тримесечие/i},iGe={any:[/1/i,/2/i,/3/i,/4/i]},oGe={narrow:/^[нпвсч]/i,short:/^(нд|пн|вт|ср|чт|пт|сб)/i,abbreviated:/^(нед|пон|вто|сря|чет|пет|съб)/i,wide:/^(неделя|понеделник|вторник|сряда|четвъртък|петък|събота)/i},sGe={narrow:[/^н/i,/^п/i,/^в/i,/^с/i,/^ч/i,/^п/i,/^с/i],any:[/^н[ед]/i,/^п[он]/i,/^вт/i,/^ср/i,/^ч[ет]/i,/^п[ет]/i,/^с[ъб]/i]},lGe={abbreviated:/^(яну|фев|мар|апр|май|юни|юли|авг|сеп|окт|ное|дек)/i,wide:/^(януари|февруари|март|април|май|юни|юли|август|септември|октомври|ноември|декември)/i},uGe={any:[/^я/i,/^ф/i,/^мар/i,/^ап/i,/^май/i,/^юн/i,/^юл/i,/^ав/i,/^се/i,/^окт/i,/^но/i,/^де/i]},cGe={any:/^(преди о|след о|в по|на о|през|веч|сут|следо)/i},dGe={any:{am:/^преди о/i,pm:/^след о/i,midnight:/^в пол/i,noon:/^на об/i,morning:/^сут/i,afternoon:/^следо/i,evening:/^веч/i,night:/^през н/i}},fGe={ordinalNumber:Xt({matchPattern:eGe,parsePattern:tGe,valueCallback:function(t){return parseInt(t,10)}}),era:se({matchPatterns:nGe,defaultMatchWidth:"wide",parsePatterns:rGe,defaultParseWidth:"any"}),quarter:se({matchPatterns:aGe,defaultMatchWidth:"wide",parsePatterns:iGe,defaultParseWidth:"any",valueCallback:function(t){return t+1}}),month:se({matchPatterns:lGe,defaultMatchWidth:"wide",parsePatterns:uGe,defaultParseWidth:"any"}),day:se({matchPatterns:oGe,defaultMatchWidth:"wide",parsePatterns:sGe,defaultParseWidth:"any"}),dayPeriod:se({matchPatterns:cGe,defaultMatchWidth:"any",parsePatterns:dGe,defaultParseWidth:"any"})},pGe={code:"bg",formatDistance:IVe,formatLong:FVe,formatRelative:qVe,localize:ZVe,match:fGe,options:{weekStartsOn:1,firstWeekContainsDate:1}};const hGe=Object.freeze(Object.defineProperty({__proto__:null,default:pGe},Symbol.toStringTag,{value:"Module"})),mGe=jt(hGe);var gGe={locale:{1:"১",2:"২",3:"৩",4:"৪",5:"৫",6:"৬",7:"৭",8:"৮",9:"৯",0:"০"}},vGe={narrow:["খ্রিঃপূঃ","খ্রিঃ"],abbreviated:["খ্রিঃপূর্ব","খ্রিঃ"],wide:["খ্রিস্টপূর্ব","খ্রিস্টাব্দ"]},yGe={narrow:["১","২","৩","৪"],abbreviated:["১ত্রৈ","২ত্রৈ","৩ত্রৈ","৪ত্রৈ"],wide:["১ম ত্রৈমাসিক","২য় ত্রৈমাসিক","৩য় ত্রৈমাসিক","৪র্থ ত্রৈমাসিক"]},bGe={narrow:["জানু","ফেব্রু","মার্চ","এপ্রিল","মে","জুন","জুলাই","আগস্ট","সেপ্ট","অক্টো","নভে","ডিসে"],abbreviated:["জানু","ফেব্রু","মার্চ","এপ্রিল","মে","জুন","জুলাই","আগস্ট","সেপ্ট","অক্টো","নভে","ডিসে"],wide:["জানুয়ারি","ফেব্রুয়ারি","মার্চ","এপ্রিল","মে","জুন","জুলাই","আগস্ট","সেপ্টেম্বর","অক্টোবর","নভেম্বর","ডিসেম্বর"]},wGe={narrow:["র","সো","ম","বু","বৃ","শু","শ"],short:["রবি","সোম","মঙ্গল","বুধ","বৃহ","শুক্র","শনি"],abbreviated:["রবি","সোম","মঙ্গল","বুধ","বৃহ","শুক্র","শনি"],wide:["রবিবার","সোমবার","মঙ্গলবার","বুধবার","বৃহস্পতিবার ","শুক্রবার","শনিবার"]},SGe={narrow:{am:"পূ",pm:"অপ",midnight:"মধ্যরাত",noon:"মধ্যাহ্ন",morning:"সকাল",afternoon:"বিকাল",evening:"সন্ধ্যা",night:"রাত"},abbreviated:{am:"পূর্বাহ্ন",pm:"অপরাহ্ন",midnight:"মধ্যরাত",noon:"মধ্যাহ্ন",morning:"সকাল",afternoon:"বিকাল",evening:"সন্ধ্যা",night:"রাত"},wide:{am:"পূর্বাহ্ন",pm:"অপরাহ্ন",midnight:"মধ্যরাত",noon:"মধ্যাহ্ন",morning:"সকাল",afternoon:"বিকাল",evening:"সন্ধ্যা",night:"রাত"}},EGe={narrow:{am:"পূ",pm:"অপ",midnight:"মধ্যরাত",noon:"মধ্যাহ্ন",morning:"সকাল",afternoon:"বিকাল",evening:"সন্ধ্যা",night:"রাত"},abbreviated:{am:"পূর্বাহ্ন",pm:"অপরাহ্ন",midnight:"মধ্যরাত",noon:"মধ্যাহ্ন",morning:"সকাল",afternoon:"বিকাল",evening:"সন্ধ্যা",night:"রাত"},wide:{am:"পূর্বাহ্ন",pm:"অপরাহ্ন",midnight:"মধ্যরাত",noon:"মধ্যাহ্ন",morning:"সকাল",afternoon:"বিকাল",evening:"সন্ধ্যা",night:"রাত"}};function TGe(e,t){if(e>18&&e<=31)return t+"শে";switch(e){case 1:return t+"লা";case 2:case 3:return t+"রা";case 4:return t+"ঠা";default:return t+"ই"}}var CGe=function(t,n){var r=Number(t),a=sie(r),i=n==null?void 0:n.unit;if(i==="date")return TGe(r,a);if(r>10||r===0)return a+"তম";var o=r%10;switch(o){case 2:case 3:return a+"য়";case 4:return a+"র্থ";case 6:return a+"ষ্ঠ";default:return a+"ম"}};function sie(e){return e.toString().replace(/\d/g,function(t){return gGe.locale[t]})}var kGe={ordinalNumber:CGe,era:oe({values:vGe,defaultWidth:"wide"}),quarter:oe({values:yGe,defaultWidth:"wide",argumentCallback:function(t){return t-1}}),month:oe({values:bGe,defaultWidth:"wide"}),day:oe({values:wGe,defaultWidth:"wide"}),dayPeriod:oe({values:SGe,defaultWidth:"wide",formattingValues:EGe,defaultFormattingWidth:"wide"})},xGe={lessThanXSeconds:{one:"প্রায় ১ সেকেন্ড",other:"প্রায় {{count}} সেকেন্ড"},xSeconds:{one:"১ সেকেন্ড",other:"{{count}} সেকেন্ড"},halfAMinute:"আধ মিনিট",lessThanXMinutes:{one:"প্রায় ১ মিনিট",other:"প্রায় {{count}} মিনিট"},xMinutes:{one:"১ মিনিট",other:"{{count}} মিনিট"},aboutXHours:{one:"প্রায় ১ ঘন্টা",other:"প্রায় {{count}} ঘন্টা"},xHours:{one:"১ ঘন্টা",other:"{{count}} ঘন্টা"},xDays:{one:"১ দিন",other:"{{count}} দিন"},aboutXWeeks:{one:"প্রায় ১ সপ্তাহ",other:"প্রায় {{count}} সপ্তাহ"},xWeeks:{one:"১ সপ্তাহ",other:"{{count}} সপ্তাহ"},aboutXMonths:{one:"প্রায় ১ মাস",other:"প্রায় {{count}} মাস"},xMonths:{one:"১ মাস",other:"{{count}} মাস"},aboutXYears:{one:"প্রায় ১ বছর",other:"প্রায় {{count}} বছর"},xYears:{one:"১ বছর",other:"{{count}} বছর"},overXYears:{one:"১ বছরের বেশি",other:"{{count}} বছরের বেশি"},almostXYears:{one:"প্রায় ১ বছর",other:"প্রায় {{count}} বছর"}},_Ge=function(t,n,r){var a,i=xGe[t];return typeof i=="string"?a=i:n===1?a=i.one:a=i.other.replace("{{count}}",sie(n)),r!=null&&r.addSuffix?r.comparison&&r.comparison>0?a+" এর মধ্যে":a+" আগে":a},OGe={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},RGe={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},PGe={full:"{{date}} {{time}} 'সময়'",long:"{{date}} {{time}} 'সময়'",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},AGe={date:Ne({formats:OGe,defaultWidth:"full"}),time:Ne({formats:RGe,defaultWidth:"full"}),dateTime:Ne({formats:PGe,defaultWidth:"full"})},NGe={lastWeek:"'গত' eeee 'সময়' p",yesterday:"'গতকাল' 'সময়' p",today:"'আজ' 'সময়' p",tomorrow:"'আগামীকাল' 'সময়' p",nextWeek:"eeee 'সময়' p",other:"P"},MGe=function(t,n,r,a){return NGe[t]},IGe=/^(\d+)(ম|য়|র্থ|ষ্ঠ|শে|ই|তম)?/i,DGe=/\d+/i,$Ge={narrow:/^(খ্রিঃপূঃ|খ্রিঃ)/i,abbreviated:/^(খ্রিঃপূর্ব|খ্রিঃ)/i,wide:/^(খ্রিস্টপূর্ব|খ্রিস্টাব্দ)/i},LGe={narrow:[/^খ্রিঃপূঃ/i,/^খ্রিঃ/i],abbreviated:[/^খ্রিঃপূর্ব/i,/^খ্রিঃ/i],wide:[/^খ্রিস্টপূর্ব/i,/^খ্রিস্টাব্দ/i]},FGe={narrow:/^[১২৩৪]/i,abbreviated:/^[১২৩৪]ত্রৈ/i,wide:/^[১২৩৪](ম|য়|র্থ)? ত্রৈমাসিক/i},jGe={any:[/১/i,/২/i,/৩/i,/৪/i]},UGe={narrow:/^(জানু|ফেব্রু|মার্চ|এপ্রিল|মে|জুন|জুলাই|আগস্ট|সেপ্ট|অক্টো|নভে|ডিসে)/i,abbreviated:/^(জানু|ফেব্রু|মার্চ|এপ্রিল|মে|জুন|জুলাই|আগস্ট|সেপ্ট|অক্টো|নভে|ডিসে)/i,wide:/^(জানুয়ারি|ফেব্রুয়ারি|মার্চ|এপ্রিল|মে|জুন|জুলাই|আগস্ট|সেপ্টেম্বর|অক্টোবর|নভেম্বর|ডিসেম্বর)/i},BGe={any:[/^জানু/i,/^ফেব্রু/i,/^মার্চ/i,/^এপ্রিল/i,/^মে/i,/^জুন/i,/^জুলাই/i,/^আগস্ট/i,/^সেপ্ট/i,/^অক্টো/i,/^নভে/i,/^ডিসে/i]},WGe={narrow:/^(র|সো|ম|বু|বৃ|শু|শ)+/i,short:/^(রবি|সোম|মঙ্গল|বুধ|বৃহ|শুক্র|শনি)+/i,abbreviated:/^(রবি|সোম|মঙ্গল|বুধ|বৃহ|শুক্র|শনি)+/i,wide:/^(রবিবার|সোমবার|মঙ্গলবার|বুধবার|বৃহস্পতিবার |শুক্রবার|শনিবার)+/i},zGe={narrow:[/^র/i,/^সো/i,/^ম/i,/^বু/i,/^বৃ/i,/^শু/i,/^শ/i],short:[/^রবি/i,/^সোম/i,/^মঙ্গল/i,/^বুধ/i,/^বৃহ/i,/^শুক্র/i,/^শনি/i],abbreviated:[/^রবি/i,/^সোম/i,/^মঙ্গল/i,/^বুধ/i,/^বৃহ/i,/^শুক্র/i,/^শনি/i],wide:[/^রবিবার/i,/^সোমবার/i,/^মঙ্গলবার/i,/^বুধবার/i,/^বৃহস্পতিবার /i,/^শুক্রবার/i,/^শনিবার/i]},qGe={narrow:/^(পূ|অপ|মধ্যরাত|মধ্যাহ্ন|সকাল|বিকাল|সন্ধ্যা|রাত)/i,abbreviated:/^(পূর্বাহ্ন|অপরাহ্ন|মধ্যরাত|মধ্যাহ্ন|সকাল|বিকাল|সন্ধ্যা|রাত)/i,wide:/^(পূর্বাহ্ন|অপরাহ্ন|মধ্যরাত|মধ্যাহ্ন|সকাল|বিকাল|সন্ধ্যা|রাত)/i},HGe={any:{am:/^পূ/i,pm:/^অপ/i,midnight:/^মধ্যরাত/i,noon:/^মধ্যাহ্ন/i,morning:/সকাল/i,afternoon:/বিকাল/i,evening:/সন্ধ্যা/i,night:/রাত/i}},VGe={ordinalNumber:Xt({matchPattern:IGe,parsePattern:DGe,valueCallback:function(t){return parseInt(t,10)}}),era:se({matchPatterns:$Ge,defaultMatchWidth:"wide",parsePatterns:LGe,defaultParseWidth:"wide"}),quarter:se({matchPatterns:FGe,defaultMatchWidth:"wide",parsePatterns:jGe,defaultParseWidth:"any",valueCallback:function(t){return t+1}}),month:se({matchPatterns:UGe,defaultMatchWidth:"wide",parsePatterns:BGe,defaultParseWidth:"any"}),day:se({matchPatterns:WGe,defaultMatchWidth:"wide",parsePatterns:zGe,defaultParseWidth:"wide"}),dayPeriod:se({matchPatterns:qGe,defaultMatchWidth:"wide",parsePatterns:HGe,defaultParseWidth:"any"})},GGe={code:"bn",formatDistance:_Ge,formatLong:AGe,formatRelative:MGe,localize:kGe,match:VGe,options:{weekStartsOn:0,firstWeekContainsDate:1}};const YGe=Object.freeze(Object.defineProperty({__proto__:null,default:GGe},Symbol.toStringTag,{value:"Module"})),KGe=jt(YGe);var XGe={lessThanXSeconds:{one:"menys d'un segon",eleven:"menys d'onze segons",other:"menys de {{count}} segons"},xSeconds:{one:"1 segon",other:"{{count}} segons"},halfAMinute:"mig minut",lessThanXMinutes:{one:"menys d'un minut",eleven:"menys d'onze minuts",other:"menys de {{count}} minuts"},xMinutes:{one:"1 minut",other:"{{count}} minuts"},aboutXHours:{one:"aproximadament una hora",other:"aproximadament {{count}} hores"},xHours:{one:"1 hora",other:"{{count}} hores"},xDays:{one:"1 dia",other:"{{count}} dies"},aboutXWeeks:{one:"aproximadament una setmana",other:"aproximadament {{count}} setmanes"},xWeeks:{one:"1 setmana",other:"{{count}} setmanes"},aboutXMonths:{one:"aproximadament un mes",other:"aproximadament {{count}} mesos"},xMonths:{one:"1 mes",other:"{{count}} mesos"},aboutXYears:{one:"aproximadament un any",other:"aproximadament {{count}} anys"},xYears:{one:"1 any",other:"{{count}} anys"},overXYears:{one:"més d'un any",eleven:"més d'onze anys",other:"més de {{count}} anys"},almostXYears:{one:"gairebé un any",other:"gairebé {{count}} anys"}},QGe=function(t,n,r){var a,i=XGe[t];return typeof i=="string"?a=i:n===1?a=i.one:n===11&&i.eleven?a=i.eleven:a=i.other.replace("{{count}}",String(n)),r!=null&&r.addSuffix?r.comparison&&r.comparison>0?"en "+a:"fa "+a:a},JGe={full:"EEEE, d 'de' MMMM y",long:"d 'de' MMMM y",medium:"d MMM y",short:"dd/MM/y"},ZGe={full:"HH:mm:ss zzzz",long:"HH:mm:ss z",medium:"HH:mm:ss",short:"HH:mm"},eYe={full:"{{date}} 'a les' {{time}}",long:"{{date}} 'a les' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},tYe={date:Ne({formats:JGe,defaultWidth:"full"}),time:Ne({formats:ZGe,defaultWidth:"full"}),dateTime:Ne({formats:eYe,defaultWidth:"full"})},nYe={lastWeek:"'el' eeee 'passat a la' LT",yesterday:"'ahir a la' p",today:"'avui a la' p",tomorrow:"'demà a la' p",nextWeek:"eeee 'a la' p",other:"P"},rYe={lastWeek:"'el' eeee 'passat a les' p",yesterday:"'ahir a les' p",today:"'avui a les' p",tomorrow:"'demà a les' p",nextWeek:"eeee 'a les' p",other:"P"},aYe=function(t,n,r,a){return n.getUTCHours()!==1?rYe[t]:nYe[t]},iYe={narrow:["aC","dC"],abbreviated:["a. de C.","d. de C."],wide:["abans de Crist","després de Crist"]},oYe={narrow:["1","2","3","4"],abbreviated:["T1","T2","T3","T4"],wide:["1r trimestre","2n trimestre","3r trimestre","4t trimestre"]},sYe={narrow:["GN","FB","MÇ","AB","MG","JN","JL","AG","ST","OC","NV","DS"],abbreviated:["gen.","febr.","març","abr.","maig","juny","jul.","ag.","set.","oct.","nov.","des."],wide:["gener","febrer","març","abril","maig","juny","juliol","agost","setembre","octubre","novembre","desembre"]},lYe={narrow:["dg.","dl.","dt.","dm.","dj.","dv.","ds."],short:["dg.","dl.","dt.","dm.","dj.","dv.","ds."],abbreviated:["dg.","dl.","dt.","dm.","dj.","dv.","ds."],wide:["diumenge","dilluns","dimarts","dimecres","dijous","divendres","dissabte"]},uYe={narrow:{am:"am",pm:"pm",midnight:"mitjanit",noon:"migdia",morning:"matí",afternoon:"tarda",evening:"vespre",night:"nit"},abbreviated:{am:"a.m.",pm:"p.m.",midnight:"mitjanit",noon:"migdia",morning:"matí",afternoon:"tarda",evening:"vespre",night:"nit"},wide:{am:"ante meridiem",pm:"post meridiem",midnight:"mitjanit",noon:"migdia",morning:"matí",afternoon:"tarda",evening:"vespre",night:"nit"}},cYe={narrow:{am:"am",pm:"pm",midnight:"de la mitjanit",noon:"del migdia",morning:"del matí",afternoon:"de la tarda",evening:"del vespre",night:"de la nit"},abbreviated:{am:"AM",pm:"PM",midnight:"de la mitjanit",noon:"del migdia",morning:"del matí",afternoon:"de la tarda",evening:"del vespre",night:"de la nit"},wide:{am:"ante meridiem",pm:"post meridiem",midnight:"de la mitjanit",noon:"del migdia",morning:"del matí",afternoon:"de la tarda",evening:"del vespre",night:"de la nit"}},dYe=function(t,n){var r=Number(t),a=r%100;if(a>20||a<10)switch(a%10){case 1:return r+"r";case 2:return r+"n";case 3:return r+"r";case 4:return r+"t"}return r+"è"},fYe={ordinalNumber:dYe,era:oe({values:iYe,defaultWidth:"wide"}),quarter:oe({values:oYe,defaultWidth:"wide",argumentCallback:function(t){return t-1}}),month:oe({values:sYe,defaultWidth:"wide"}),day:oe({values:lYe,defaultWidth:"wide"}),dayPeriod:oe({values:uYe,defaultWidth:"wide",formattingValues:cYe,defaultFormattingWidth:"wide"})},pYe=/^(\d+)(è|r|n|r|t)?/i,hYe=/\d+/i,mYe={narrow:/^(aC|dC)/i,abbreviated:/^(a. de C.|d. de C.)/i,wide:/^(abans de Crist|despr[eé]s de Crist)/i},gYe={narrow:[/^aC/i,/^dC/i],abbreviated:[/^(a. de C.)/i,/^(d. de C.)/i],wide:[/^(abans de Crist)/i,/^(despr[eé]s de Crist)/i]},vYe={narrow:/^[1234]/i,abbreviated:/^T[1234]/i,wide:/^[1234](è|r|n|r|t)? trimestre/i},yYe={any:[/1/i,/2/i,/3/i,/4/i]},bYe={narrow:/^(GN|FB|MÇ|AB|MG|JN|JL|AG|ST|OC|NV|DS)/i,abbreviated:/^(gen.|febr.|març|abr.|maig|juny|jul.|ag.|set.|oct.|nov.|des.)/i,wide:/^(gener|febrer|març|abril|maig|juny|juliol|agost|setembre|octubre|novembre|desembre)/i},wYe={narrow:[/^GN/i,/^FB/i,/^MÇ/i,/^AB/i,/^MG/i,/^JN/i,/^JL/i,/^AG/i,/^ST/i,/^OC/i,/^NV/i,/^DS/i],abbreviated:[/^gen./i,/^febr./i,/^març/i,/^abr./i,/^maig/i,/^juny/i,/^jul./i,/^ag./i,/^set./i,/^oct./i,/^nov./i,/^des./i],wide:[/^gener/i,/^febrer/i,/^març/i,/^abril/i,/^maig/i,/^juny/i,/^juliol/i,/^agost/i,/^setembre/i,/^octubre/i,/^novembre/i,/^desembre/i]},SYe={narrow:/^(dg\.|dl\.|dt\.|dm\.|dj\.|dv\.|ds\.)/i,short:/^(dg\.|dl\.|dt\.|dm\.|dj\.|dv\.|ds\.)/i,abbreviated:/^(dg\.|dl\.|dt\.|dm\.|dj\.|dv\.|ds\.)/i,wide:/^(diumenge|dilluns|dimarts|dimecres|dijous|divendres|dissabte)/i},EYe={narrow:[/^dg./i,/^dl./i,/^dt./i,/^dm./i,/^dj./i,/^dv./i,/^ds./i],abbreviated:[/^dg./i,/^dl./i,/^dt./i,/^dm./i,/^dj./i,/^dv./i,/^ds./i],wide:[/^diumenge/i,/^dilluns/i,/^dimarts/i,/^dimecres/i,/^dijous/i,/^divendres/i,/^disssabte/i]},TYe={narrow:/^(a|p|mn|md|(del|de la) (matí|tarda|vespre|nit))/i,abbreviated:/^([ap]\.?\s?m\.?|mitjanit|migdia|(del|de la) (matí|tarda|vespre|nit))/i,wide:/^(ante meridiem|post meridiem|mitjanit|migdia|(del|de la) (matí|tarda|vespre|nit))/i},CYe={any:{am:/^a/i,pm:/^p/i,midnight:/^mitjanit/i,noon:/^migdia/i,morning:/matí/i,afternoon:/tarda/i,evening:/vespre/i,night:/nit/i}},kYe={ordinalNumber:Xt({matchPattern:pYe,parsePattern:hYe,valueCallback:function(t){return parseInt(t,10)}}),era:se({matchPatterns:mYe,defaultMatchWidth:"wide",parsePatterns:gYe,defaultParseWidth:"wide"}),quarter:se({matchPatterns:vYe,defaultMatchWidth:"wide",parsePatterns:yYe,defaultParseWidth:"any",valueCallback:function(t){return t+1}}),month:se({matchPatterns:bYe,defaultMatchWidth:"wide",parsePatterns:wYe,defaultParseWidth:"wide"}),day:se({matchPatterns:SYe,defaultMatchWidth:"wide",parsePatterns:EYe,defaultParseWidth:"wide"}),dayPeriod:se({matchPatterns:TYe,defaultMatchWidth:"wide",parsePatterns:CYe,defaultParseWidth:"any"})},xYe={code:"ca",formatDistance:QGe,formatLong:tYe,formatRelative:aYe,localize:fYe,match:kYe,options:{weekStartsOn:1,firstWeekContainsDate:4}};const _Ye=Object.freeze(Object.defineProperty({__proto__:null,default:xYe},Symbol.toStringTag,{value:"Module"})),OYe=jt(_Ye);var RYe={lessThanXSeconds:{one:{regular:"méně než sekunda",past:"před méně než sekundou",future:"za méně než sekundu"},few:{regular:"méně než {{count}} sekundy",past:"před méně než {{count}} sekundami",future:"za méně než {{count}} sekundy"},many:{regular:"méně než {{count}} sekund",past:"před méně než {{count}} sekundami",future:"za méně než {{count}} sekund"}},xSeconds:{one:{regular:"sekunda",past:"před sekundou",future:"za sekundu"},few:{regular:"{{count}} sekundy",past:"před {{count}} sekundami",future:"za {{count}} sekundy"},many:{regular:"{{count}} sekund",past:"před {{count}} sekundami",future:"za {{count}} sekund"}},halfAMinute:{type:"other",other:{regular:"půl minuty",past:"před půl minutou",future:"za půl minuty"}},lessThanXMinutes:{one:{regular:"méně než minuta",past:"před méně než minutou",future:"za méně než minutu"},few:{regular:"méně než {{count}} minuty",past:"před méně než {{count}} minutami",future:"za méně než {{count}} minuty"},many:{regular:"méně než {{count}} minut",past:"před méně než {{count}} minutami",future:"za méně než {{count}} minut"}},xMinutes:{one:{regular:"minuta",past:"před minutou",future:"za minutu"},few:{regular:"{{count}} minuty",past:"před {{count}} minutami",future:"za {{count}} minuty"},many:{regular:"{{count}} minut",past:"před {{count}} minutami",future:"za {{count}} minut"}},aboutXHours:{one:{regular:"přibližně hodina",past:"přibližně před hodinou",future:"přibližně za hodinu"},few:{regular:"přibližně {{count}} hodiny",past:"přibližně před {{count}} hodinami",future:"přibližně za {{count}} hodiny"},many:{regular:"přibližně {{count}} hodin",past:"přibližně před {{count}} hodinami",future:"přibližně za {{count}} hodin"}},xHours:{one:{regular:"hodina",past:"před hodinou",future:"za hodinu"},few:{regular:"{{count}} hodiny",past:"před {{count}} hodinami",future:"za {{count}} hodiny"},many:{regular:"{{count}} hodin",past:"před {{count}} hodinami",future:"za {{count}} hodin"}},xDays:{one:{regular:"den",past:"před dnem",future:"za den"},few:{regular:"{{count}} dny",past:"před {{count}} dny",future:"za {{count}} dny"},many:{regular:"{{count}} dní",past:"před {{count}} dny",future:"za {{count}} dní"}},aboutXWeeks:{one:{regular:"přibližně týden",past:"přibližně před týdnem",future:"přibližně za týden"},few:{regular:"přibližně {{count}} týdny",past:"přibližně před {{count}} týdny",future:"přibližně za {{count}} týdny"},many:{regular:"přibližně {{count}} týdnů",past:"přibližně před {{count}} týdny",future:"přibližně za {{count}} týdnů"}},xWeeks:{one:{regular:"týden",past:"před týdnem",future:"za týden"},few:{regular:"{{count}} týdny",past:"před {{count}} týdny",future:"za {{count}} týdny"},many:{regular:"{{count}} týdnů",past:"před {{count}} týdny",future:"za {{count}} týdnů"}},aboutXMonths:{one:{regular:"přibližně měsíc",past:"přibližně před měsícem",future:"přibližně za měsíc"},few:{regular:"přibližně {{count}} měsíce",past:"přibližně před {{count}} měsíci",future:"přibližně za {{count}} měsíce"},many:{regular:"přibližně {{count}} měsíců",past:"přibližně před {{count}} měsíci",future:"přibližně za {{count}} měsíců"}},xMonths:{one:{regular:"měsíc",past:"před měsícem",future:"za měsíc"},few:{regular:"{{count}} měsíce",past:"před {{count}} měsíci",future:"za {{count}} měsíce"},many:{regular:"{{count}} měsíců",past:"před {{count}} měsíci",future:"za {{count}} měsíců"}},aboutXYears:{one:{regular:"přibližně rok",past:"přibližně před rokem",future:"přibližně za rok"},few:{regular:"přibližně {{count}} roky",past:"přibližně před {{count}} roky",future:"přibližně za {{count}} roky"},many:{regular:"přibližně {{count}} roků",past:"přibližně před {{count}} roky",future:"přibližně za {{count}} roků"}},xYears:{one:{regular:"rok",past:"před rokem",future:"za rok"},few:{regular:"{{count}} roky",past:"před {{count}} roky",future:"za {{count}} roky"},many:{regular:"{{count}} roků",past:"před {{count}} roky",future:"za {{count}} roků"}},overXYears:{one:{regular:"více než rok",past:"před více než rokem",future:"za více než rok"},few:{regular:"více než {{count}} roky",past:"před více než {{count}} roky",future:"za více než {{count}} roky"},many:{regular:"více než {{count}} roků",past:"před více než {{count}} roky",future:"za více než {{count}} roků"}},almostXYears:{one:{regular:"skoro rok",past:"skoro před rokem",future:"skoro za rok"},few:{regular:"skoro {{count}} roky",past:"skoro před {{count}} roky",future:"skoro za {{count}} roky"},many:{regular:"skoro {{count}} roků",past:"skoro před {{count}} roky",future:"skoro za {{count}} roků"}}},PYe=function(t,n,r){var a,i=RYe[t];i.type==="other"?a=i.other:n===1?a=i.one:n>1&&n<5?a=i.few:a=i.many;var o=(r==null?void 0:r.addSuffix)===!0,l=r==null?void 0:r.comparison,u;return o&&l===-1?u=a.past:o&&l===1?u=a.future:u=a.regular,u.replace("{{count}}",String(n))},AYe={full:"EEEE, d. MMMM yyyy",long:"d. MMMM yyyy",medium:"d. M. yyyy",short:"dd.MM.yyyy"},NYe={full:"H:mm:ss zzzz",long:"H:mm:ss z",medium:"H:mm:ss",short:"H:mm"},MYe={full:"{{date}} 'v' {{time}}",long:"{{date}} 'v' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},IYe={date:Ne({formats:AYe,defaultWidth:"full"}),time:Ne({formats:NYe,defaultWidth:"full"}),dateTime:Ne({formats:MYe,defaultWidth:"full"})},DYe=["neděli","pondělí","úterý","středu","čtvrtek","pátek","sobotu"],$Ye={lastWeek:"'poslední' eeee 've' p",yesterday:"'včera v' p",today:"'dnes v' p",tomorrow:"'zítra v' p",nextWeek:function(t){var n=t.getUTCDay();return"'v "+DYe[n]+" o' p"},other:"P"},LYe=function(t,n){var r=$Ye[t];return typeof r=="function"?r(n):r},FYe={narrow:["př. n. l.","n. l."],abbreviated:["př. n. l.","n. l."],wide:["před naším letopočtem","našeho letopočtu"]},jYe={narrow:["1","2","3","4"],abbreviated:["1. čtvrtletí","2. čtvrtletí","3. čtvrtletí","4. čtvrtletí"],wide:["1. čtvrtletí","2. čtvrtletí","3. čtvrtletí","4. čtvrtletí"]},UYe={narrow:["L","Ú","B","D","K","Č","Č","S","Z","Ř","L","P"],abbreviated:["led","úno","bře","dub","kvě","čvn","čvc","srp","zář","říj","lis","pro"],wide:["leden","únor","březen","duben","květen","červen","červenec","srpen","září","říjen","listopad","prosinec"]},BYe={narrow:["L","Ú","B","D","K","Č","Č","S","Z","Ř","L","P"],abbreviated:["led","úno","bře","dub","kvě","čvn","čvc","srp","zář","říj","lis","pro"],wide:["ledna","února","března","dubna","května","června","července","srpna","září","října","listopadu","prosince"]},WYe={narrow:["ne","po","út","st","čt","pá","so"],short:["ne","po","út","st","čt","pá","so"],abbreviated:["ned","pon","úte","stř","čtv","pát","sob"],wide:["neděle","pondělí","úterý","středa","čtvrtek","pátek","sobota"]},zYe={narrow:{am:"dop.",pm:"odp.",midnight:"půlnoc",noon:"poledne",morning:"ráno",afternoon:"odpoledne",evening:"večer",night:"noc"},abbreviated:{am:"dop.",pm:"odp.",midnight:"půlnoc",noon:"poledne",morning:"ráno",afternoon:"odpoledne",evening:"večer",night:"noc"},wide:{am:"dopoledne",pm:"odpoledne",midnight:"půlnoc",noon:"poledne",morning:"ráno",afternoon:"odpoledne",evening:"večer",night:"noc"}},qYe={narrow:{am:"dop.",pm:"odp.",midnight:"půlnoc",noon:"poledne",morning:"ráno",afternoon:"odpoledne",evening:"večer",night:"noc"},abbreviated:{am:"dop.",pm:"odp.",midnight:"půlnoc",noon:"poledne",morning:"ráno",afternoon:"odpoledne",evening:"večer",night:"noc"},wide:{am:"dopoledne",pm:"odpoledne",midnight:"půlnoc",noon:"poledne",morning:"ráno",afternoon:"odpoledne",evening:"večer",night:"noc"}},HYe=function(t,n){var r=Number(t);return r+"."},VYe={ordinalNumber:HYe,era:oe({values:FYe,defaultWidth:"wide"}),quarter:oe({values:jYe,defaultWidth:"wide",argumentCallback:function(t){return t-1}}),month:oe({values:UYe,defaultWidth:"wide",formattingValues:BYe,defaultFormattingWidth:"wide"}),day:oe({values:WYe,defaultWidth:"wide"}),dayPeriod:oe({values:zYe,defaultWidth:"wide",formattingValues:qYe,defaultFormattingWidth:"wide"})},GYe=/^(\d+)\.?/i,YYe=/\d+/i,KYe={narrow:/^(p[řr](\.|ed) Kr\.|p[řr](\.|ed) n\. l\.|po Kr\.|n\. l\.)/i,abbreviated:/^(p[řr](\.|ed) Kr\.|p[řr](\.|ed) n\. l\.|po Kr\.|n\. l\.)/i,wide:/^(p[řr](\.|ed) Kristem|p[řr](\.|ed) na[šs][íi]m letopo[čc]tem|po Kristu|na[šs]eho letopo[čc]tu)/i},XYe={any:[/^p[řr]/i,/^(po|n)/i]},QYe={narrow:/^[1234]/i,abbreviated:/^[1234]\. [čc]tvrtlet[íi]/i,wide:/^[1234]\. [čc]tvrtlet[íi]/i},JYe={any:[/1/i,/2/i,/3/i,/4/i]},ZYe={narrow:/^[lúubdkčcszřrlp]/i,abbreviated:/^(led|[úu]no|b[řr]e|dub|kv[ěe]|[čc]vn|[čc]vc|srp|z[áa][řr]|[řr][íi]j|lis|pro)/i,wide:/^(leden|ledna|[úu]nora?|b[řr]ezen|b[řr]ezna|duben|dubna|kv[ěe]ten|kv[ěe]tna|[čc]erven(ec|ce)?|[čc]ervna|srpen|srpna|z[áa][řr][íi]|[řr][íi]jen|[řr][íi]jna|listopad(a|u)?|prosinec|prosince)/i},eKe={narrow:[/^l/i,/^[úu]/i,/^b/i,/^d/i,/^k/i,/^[čc]/i,/^[čc]/i,/^s/i,/^z/i,/^[řr]/i,/^l/i,/^p/i],any:[/^led/i,/^[úu]n/i,/^b[řr]e/i,/^dub/i,/^kv[ěe]/i,/^[čc]vn|[čc]erven(?!\w)|[čc]ervna/i,/^[čc]vc|[čc]erven(ec|ce)/i,/^srp/i,/^z[áa][řr]/i,/^[řr][íi]j/i,/^lis/i,/^pro/i]},tKe={narrow:/^[npuúsčps]/i,short:/^(ne|po|[úu]t|st|[čc]t|p[áa]|so)/i,abbreviated:/^(ned|pon|[úu]te|st[rř]|[čc]tv|p[áa]t|sob)/i,wide:/^(ned[ěe]le|pond[ěe]l[íi]|[úu]ter[ýy]|st[řr]eda|[čc]tvrtek|p[áa]tek|sobota)/i},nKe={narrow:[/^n/i,/^p/i,/^[úu]/i,/^s/i,/^[čc]/i,/^p/i,/^s/i],any:[/^ne/i,/^po/i,/^[úu]t/i,/^st/i,/^[čc]t/i,/^p[áa]/i,/^so/i]},rKe={any:/^dopoledne|dop\.?|odpoledne|odp\.?|p[ůu]lnoc|poledne|r[áa]no|odpoledne|ve[čc]er|(v )?noci?/i},aKe={any:{am:/^dop/i,pm:/^odp/i,midnight:/^p[ůu]lnoc/i,noon:/^poledne/i,morning:/r[áa]no/i,afternoon:/odpoledne/i,evening:/ve[čc]er/i,night:/noc/i}},iKe={ordinalNumber:Xt({matchPattern:GYe,parsePattern:YYe,valueCallback:function(t){return parseInt(t,10)}}),era:se({matchPatterns:KYe,defaultMatchWidth:"wide",parsePatterns:XYe,defaultParseWidth:"any"}),quarter:se({matchPatterns:QYe,defaultMatchWidth:"wide",parsePatterns:JYe,defaultParseWidth:"any",valueCallback:function(t){return t+1}}),month:se({matchPatterns:ZYe,defaultMatchWidth:"wide",parsePatterns:eKe,defaultParseWidth:"any"}),day:se({matchPatterns:tKe,defaultMatchWidth:"wide",parsePatterns:nKe,defaultParseWidth:"any"}),dayPeriod:se({matchPatterns:rKe,defaultMatchWidth:"any",parsePatterns:aKe,defaultParseWidth:"any"})},oKe={code:"cs",formatDistance:PYe,formatLong:IYe,formatRelative:LYe,localize:VYe,match:iKe,options:{weekStartsOn:1,firstWeekContainsDate:4}};const sKe=Object.freeze(Object.defineProperty({__proto__:null,default:oKe},Symbol.toStringTag,{value:"Module"})),lKe=jt(sKe);var uKe={lessThanXSeconds:{one:"llai na eiliad",other:"llai na {{count}} eiliad"},xSeconds:{one:"1 eiliad",other:"{{count}} eiliad"},halfAMinute:"hanner munud",lessThanXMinutes:{one:"llai na munud",two:"llai na 2 funud",other:"llai na {{count}} munud"},xMinutes:{one:"1 munud",two:"2 funud",other:"{{count}} munud"},aboutXHours:{one:"tua 1 awr",other:"tua {{count}} awr"},xHours:{one:"1 awr",other:"{{count}} awr"},xDays:{one:"1 diwrnod",two:"2 ddiwrnod",other:"{{count}} diwrnod"},aboutXWeeks:{one:"tua 1 wythnos",two:"tua pythefnos",other:"tua {{count}} wythnos"},xWeeks:{one:"1 wythnos",two:"pythefnos",other:"{{count}} wythnos"},aboutXMonths:{one:"tua 1 mis",two:"tua 2 fis",other:"tua {{count}} mis"},xMonths:{one:"1 mis",two:"2 fis",other:"{{count}} mis"},aboutXYears:{one:"tua 1 flwyddyn",two:"tua 2 flynedd",other:"tua {{count}} mlynedd"},xYears:{one:"1 flwyddyn",two:"2 flynedd",other:"{{count}} mlynedd"},overXYears:{one:"dros 1 flwyddyn",two:"dros 2 flynedd",other:"dros {{count}} mlynedd"},almostXYears:{one:"bron 1 flwyddyn",two:"bron 2 flynedd",other:"bron {{count}} mlynedd"}},cKe=function(t,n,r){var a,i=uKe[t];return typeof i=="string"?a=i:n===1?a=i.one:n===2&&i.two?a=i.two:a=i.other.replace("{{count}}",String(n)),r!=null&&r.addSuffix?r.comparison&&r.comparison>0?"mewn "+a:a+" yn ôl":a},dKe={full:"EEEE, d MMMM yyyy",long:"d MMMM yyyy",medium:"d MMM yyyy",short:"dd/MM/yyyy"},fKe={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},pKe={full:"{{date}} 'am' {{time}}",long:"{{date}} 'am' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},hKe={date:Ne({formats:dKe,defaultWidth:"full"}),time:Ne({formats:fKe,defaultWidth:"full"}),dateTime:Ne({formats:pKe,defaultWidth:"full"})},mKe={lastWeek:"eeee 'diwethaf am' p",yesterday:"'ddoe am' p",today:"'heddiw am' p",tomorrow:"'yfory am' p",nextWeek:"eeee 'am' p",other:"P"},gKe=function(t,n,r,a){return mKe[t]},vKe={narrow:["C","O"],abbreviated:["CC","OC"],wide:["Cyn Crist","Ar ôl Crist"]},yKe={narrow:["1","2","3","4"],abbreviated:["Ch1","Ch2","Ch3","Ch4"],wide:["Chwarter 1af","2ail chwarter","3ydd chwarter","4ydd chwarter"]},bKe={narrow:["I","Ch","Ma","E","Mi","Me","G","A","Md","H","T","Rh"],abbreviated:["Ion","Chwe","Maw","Ebr","Mai","Meh","Gor","Aws","Med","Hyd","Tach","Rhag"],wide:["Ionawr","Chwefror","Mawrth","Ebrill","Mai","Mehefin","Gorffennaf","Awst","Medi","Hydref","Tachwedd","Rhagfyr"]},wKe={narrow:["S","Ll","M","M","I","G","S"],short:["Su","Ll","Ma","Me","Ia","Gw","Sa"],abbreviated:["Sul","Llun","Maw","Mer","Iau","Gwe","Sad"],wide:["dydd Sul","dydd Llun","dydd Mawrth","dydd Mercher","dydd Iau","dydd Gwener","dydd Sadwrn"]},SKe={narrow:{am:"b",pm:"h",midnight:"hn",noon:"hd",morning:"bore",afternoon:"prynhawn",evening:"gyda'r nos",night:"nos"},abbreviated:{am:"yb",pm:"yh",midnight:"hanner nos",noon:"hanner dydd",morning:"bore",afternoon:"prynhawn",evening:"gyda'r nos",night:"nos"},wide:{am:"y.b.",pm:"y.h.",midnight:"hanner nos",noon:"hanner dydd",morning:"bore",afternoon:"prynhawn",evening:"gyda'r nos",night:"nos"}},EKe={narrow:{am:"b",pm:"h",midnight:"hn",noon:"hd",morning:"yn y bore",afternoon:"yn y prynhawn",evening:"gyda'r nos",night:"yn y nos"},abbreviated:{am:"yb",pm:"yh",midnight:"hanner nos",noon:"hanner dydd",morning:"yn y bore",afternoon:"yn y prynhawn",evening:"gyda'r nos",night:"yn y nos"},wide:{am:"y.b.",pm:"y.h.",midnight:"hanner nos",noon:"hanner dydd",morning:"yn y bore",afternoon:"yn y prynhawn",evening:"gyda'r nos",night:"yn y nos"}},TKe=function(t,n){var r=Number(t);if(r<20)switch(r){case 0:return r+"fed";case 1:return r+"af";case 2:return r+"ail";case 3:case 4:return r+"ydd";case 5:case 6:return r+"ed";case 7:case 8:case 9:case 10:case 12:case 15:case 18:return r+"fed";case 11:case 13:case 14:case 16:case 17:case 19:return r+"eg"}else if(r>=50&&r<=60||r===80||r>=100)return r+"fed";return r+"ain"},CKe={ordinalNumber:TKe,era:oe({values:vKe,defaultWidth:"wide"}),quarter:oe({values:yKe,defaultWidth:"wide",argumentCallback:function(t){return t-1}}),month:oe({values:bKe,defaultWidth:"wide"}),day:oe({values:wKe,defaultWidth:"wide"}),dayPeriod:oe({values:SKe,defaultWidth:"wide",formattingValues:EKe,defaultFormattingWidth:"wide"})},kKe=/^(\d+)(af|ail|ydd|ed|fed|eg|ain)?/i,xKe=/\d+/i,_Ke={narrow:/^(c|o)/i,abbreviated:/^(c\.?\s?c\.?|o\.?\s?c\.?)/i,wide:/^(cyn christ|ar ôl crist|ar ol crist)/i},OKe={wide:[/^c/i,/^(ar ôl crist|ar ol crist)/i],any:[/^c/i,/^o/i]},RKe={narrow:/^[1234]/i,abbreviated:/^ch[1234]/i,wide:/^(chwarter 1af)|([234](ail|ydd)? chwarter)/i},PKe={any:[/1/i,/2/i,/3/i,/4/i]},AKe={narrow:/^(i|ch|m|e|g|a|h|t|rh)/i,abbreviated:/^(ion|chwe|maw|ebr|mai|meh|gor|aws|med|hyd|tach|rhag)/i,wide:/^(ionawr|chwefror|mawrth|ebrill|mai|mehefin|gorffennaf|awst|medi|hydref|tachwedd|rhagfyr)/i},NKe={narrow:[/^i/i,/^ch/i,/^m/i,/^e/i,/^m/i,/^m/i,/^g/i,/^a/i,/^m/i,/^h/i,/^t/i,/^rh/i],any:[/^io/i,/^ch/i,/^maw/i,/^e/i,/^mai/i,/^meh/i,/^g/i,/^a/i,/^med/i,/^h/i,/^t/i,/^rh/i]},MKe={narrow:/^(s|ll|m|i|g)/i,short:/^(su|ll|ma|me|ia|gw|sa)/i,abbreviated:/^(sul|llun|maw|mer|iau|gwe|sad)/i,wide:/^dydd (sul|llun|mawrth|mercher|iau|gwener|sadwrn)/i},IKe={narrow:[/^s/i,/^ll/i,/^m/i,/^m/i,/^i/i,/^g/i,/^s/i],wide:[/^dydd su/i,/^dydd ll/i,/^dydd ma/i,/^dydd me/i,/^dydd i/i,/^dydd g/i,/^dydd sa/i],any:[/^su/i,/^ll/i,/^ma/i,/^me/i,/^i/i,/^g/i,/^sa/i]},DKe={narrow:/^(b|h|hn|hd|(yn y|y|yr|gyda'r) (bore|prynhawn|nos|hwyr))/i,any:/^(y\.?\s?[bh]\.?|hanner nos|hanner dydd|(yn y|y|yr|gyda'r) (bore|prynhawn|nos|hwyr))/i},$Ke={any:{am:/^b|(y\.?\s?b\.?)/i,pm:/^h|(y\.?\s?h\.?)|(yr hwyr)/i,midnight:/^hn|hanner nos/i,noon:/^hd|hanner dydd/i,morning:/bore/i,afternoon:/prynhawn/i,evening:/^gyda'r nos$/i,night:/blah/i}},LKe={ordinalNumber:Xt({matchPattern:kKe,parsePattern:xKe,valueCallback:function(t){return parseInt(t,10)}}),era:se({matchPatterns:_Ke,defaultMatchWidth:"wide",parsePatterns:OKe,defaultParseWidth:"any"}),quarter:se({matchPatterns:RKe,defaultMatchWidth:"wide",parsePatterns:PKe,defaultParseWidth:"any",valueCallback:function(t){return t+1}}),month:se({matchPatterns:AKe,defaultMatchWidth:"wide",parsePatterns:NKe,defaultParseWidth:"any"}),day:se({matchPatterns:MKe,defaultMatchWidth:"wide",parsePatterns:IKe,defaultParseWidth:"any"}),dayPeriod:se({matchPatterns:DKe,defaultMatchWidth:"any",parsePatterns:$Ke,defaultParseWidth:"any"})},FKe={code:"cy",formatDistance:cKe,formatLong:hKe,formatRelative:gKe,localize:CKe,match:LKe,options:{weekStartsOn:0,firstWeekContainsDate:1}};const jKe=Object.freeze(Object.defineProperty({__proto__:null,default:FKe},Symbol.toStringTag,{value:"Module"})),UKe=jt(jKe);var BKe={lessThanXSeconds:{one:"mindre end ét sekund",other:"mindre end {{count}} sekunder"},xSeconds:{one:"1 sekund",other:"{{count}} sekunder"},halfAMinute:"ét halvt minut",lessThanXMinutes:{one:"mindre end ét minut",other:"mindre end {{count}} minutter"},xMinutes:{one:"1 minut",other:"{{count}} minutter"},aboutXHours:{one:"cirka 1 time",other:"cirka {{count}} timer"},xHours:{one:"1 time",other:"{{count}} timer"},xDays:{one:"1 dag",other:"{{count}} dage"},aboutXWeeks:{one:"cirka 1 uge",other:"cirka {{count}} uger"},xWeeks:{one:"1 uge",other:"{{count}} uger"},aboutXMonths:{one:"cirka 1 måned",other:"cirka {{count}} måneder"},xMonths:{one:"1 måned",other:"{{count}} måneder"},aboutXYears:{one:"cirka 1 år",other:"cirka {{count}} år"},xYears:{one:"1 år",other:"{{count}} år"},overXYears:{one:"over 1 år",other:"over {{count}} år"},almostXYears:{one:"næsten 1 år",other:"næsten {{count}} år"}},WKe=function(t,n,r){var a,i=BKe[t];return typeof i=="string"?a=i:n===1?a=i.one:a=i.other.replace("{{count}}",String(n)),r!=null&&r.addSuffix?r.comparison&&r.comparison>0?"om "+a:a+" siden":a},zKe={full:"EEEE 'den' d. MMMM y",long:"d. MMMM y",medium:"d. MMM y",short:"dd/MM/y"},qKe={full:"HH:mm:ss zzzz",long:"HH:mm:ss z",medium:"HH:mm:ss",short:"HH:mm"},HKe={full:"{{date}} 'kl'. {{time}}",long:"{{date}} 'kl'. {{time}}",medium:"{{date}} {{time}}",short:"{{date}} {{time}}"},VKe={date:Ne({formats:zKe,defaultWidth:"full"}),time:Ne({formats:qKe,defaultWidth:"full"}),dateTime:Ne({formats:HKe,defaultWidth:"full"})},GKe={lastWeek:"'sidste' eeee 'kl.' p",yesterday:"'i går kl.' p",today:"'i dag kl.' p",tomorrow:"'i morgen kl.' p",nextWeek:"'på' eeee 'kl.' p",other:"P"},YKe=function(t,n,r,a){return GKe[t]},KKe={narrow:["fvt","vt"],abbreviated:["f.v.t.","v.t."],wide:["før vesterlandsk tidsregning","vesterlandsk tidsregning"]},XKe={narrow:["1","2","3","4"],abbreviated:["1. kvt.","2. kvt.","3. kvt.","4. kvt."],wide:["1. kvartal","2. kvartal","3. kvartal","4. kvartal"]},QKe={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["jan.","feb.","mar.","apr.","maj","jun.","jul.","aug.","sep.","okt.","nov.","dec."],wide:["januar","februar","marts","april","maj","juni","juli","august","september","oktober","november","december"]},JKe={narrow:["S","M","T","O","T","F","L"],short:["sø","ma","ti","on","to","fr","lø"],abbreviated:["søn.","man.","tir.","ons.","tor.","fre.","lør."],wide:["søndag","mandag","tirsdag","onsdag","torsdag","fredag","lørdag"]},ZKe={narrow:{am:"a",pm:"p",midnight:"midnat",noon:"middag",morning:"morgen",afternoon:"eftermiddag",evening:"aften",night:"nat"},abbreviated:{am:"AM",pm:"PM",midnight:"midnat",noon:"middag",morning:"morgen",afternoon:"eftermiddag",evening:"aften",night:"nat"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnat",noon:"middag",morning:"morgen",afternoon:"eftermiddag",evening:"aften",night:"nat"}},eXe={narrow:{am:"a",pm:"p",midnight:"midnat",noon:"middag",morning:"om morgenen",afternoon:"om eftermiddagen",evening:"om aftenen",night:"om natten"},abbreviated:{am:"AM",pm:"PM",midnight:"midnat",noon:"middag",morning:"om morgenen",afternoon:"om eftermiddagen",evening:"om aftenen",night:"om natten"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnat",noon:"middag",morning:"om morgenen",afternoon:"om eftermiddagen",evening:"om aftenen",night:"om natten"}},tXe=function(t,n){var r=Number(t);return r+"."},nXe={ordinalNumber:tXe,era:oe({values:KKe,defaultWidth:"wide"}),quarter:oe({values:XKe,defaultWidth:"wide",argumentCallback:function(t){return t-1}}),month:oe({values:QKe,defaultWidth:"wide"}),day:oe({values:JKe,defaultWidth:"wide"}),dayPeriod:oe({values:ZKe,defaultWidth:"wide",formattingValues:eXe,defaultFormattingWidth:"wide"})},rXe=/^(\d+)(\.)?/i,aXe=/\d+/i,iXe={narrow:/^(fKr|fvt|eKr|vt)/i,abbreviated:/^(f\.Kr\.?|f\.v\.t\.?|e\.Kr\.?|v\.t\.)/i,wide:/^(f.Kr.|før vesterlandsk tidsregning|e.Kr.|vesterlandsk tidsregning)/i},oXe={any:[/^f/i,/^(v|e)/i]},sXe={narrow:/^[1234]/i,abbreviated:/^[1234]. kvt\./i,wide:/^[1234]\.? kvartal/i},lXe={any:[/1/i,/2/i,/3/i,/4/i]},uXe={narrow:/^[jfmasond]/i,abbreviated:/^(jan.|feb.|mar.|apr.|maj|jun.|jul.|aug.|sep.|okt.|nov.|dec.)/i,wide:/^(januar|februar|marts|april|maj|juni|juli|august|september|oktober|november|december)/i},cXe={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^maj/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},dXe={narrow:/^[smtofl]/i,short:/^(søn.|man.|tir.|ons.|tor.|fre.|lør.)/i,abbreviated:/^(søn|man|tir|ons|tor|fre|lør)/i,wide:/^(søndag|mandag|tirsdag|onsdag|torsdag|fredag|lørdag)/i},fXe={narrow:[/^s/i,/^m/i,/^t/i,/^o/i,/^t/i,/^f/i,/^l/i],any:[/^s/i,/^m/i,/^ti/i,/^o/i,/^to/i,/^f/i,/^l/i]},pXe={narrow:/^(a|p|midnat|middag|(om) (morgenen|eftermiddagen|aftenen|natten))/i,any:/^([ap]\.?\s?m\.?|midnat|middag|(om) (morgenen|eftermiddagen|aftenen|natten))/i},hXe={any:{am:/^a/i,pm:/^p/i,midnight:/midnat/i,noon:/middag/i,morning:/morgen/i,afternoon:/eftermiddag/i,evening:/aften/i,night:/nat/i}},mXe={ordinalNumber:Xt({matchPattern:rXe,parsePattern:aXe,valueCallback:function(t){return parseInt(t,10)}}),era:se({matchPatterns:iXe,defaultMatchWidth:"wide",parsePatterns:oXe,defaultParseWidth:"any"}),quarter:se({matchPatterns:sXe,defaultMatchWidth:"wide",parsePatterns:lXe,defaultParseWidth:"any",valueCallback:function(t){return t+1}}),month:se({matchPatterns:uXe,defaultMatchWidth:"wide",parsePatterns:cXe,defaultParseWidth:"any"}),day:se({matchPatterns:dXe,defaultMatchWidth:"wide",parsePatterns:fXe,defaultParseWidth:"any"}),dayPeriod:se({matchPatterns:pXe,defaultMatchWidth:"any",parsePatterns:hXe,defaultParseWidth:"any"})},gXe={code:"da",formatDistance:WKe,formatLong:VKe,formatRelative:YKe,localize:nXe,match:mXe,options:{weekStartsOn:1,firstWeekContainsDate:4}};const vXe=Object.freeze(Object.defineProperty({__proto__:null,default:gXe},Symbol.toStringTag,{value:"Module"})),yXe=jt(vXe);var lY={lessThanXSeconds:{standalone:{one:"weniger als 1 Sekunde",other:"weniger als {{count}} Sekunden"},withPreposition:{one:"weniger als 1 Sekunde",other:"weniger als {{count}} Sekunden"}},xSeconds:{standalone:{one:"1 Sekunde",other:"{{count}} Sekunden"},withPreposition:{one:"1 Sekunde",other:"{{count}} Sekunden"}},halfAMinute:{standalone:"halbe Minute",withPreposition:"halben Minute"},lessThanXMinutes:{standalone:{one:"weniger als 1 Minute",other:"weniger als {{count}} Minuten"},withPreposition:{one:"weniger als 1 Minute",other:"weniger als {{count}} Minuten"}},xMinutes:{standalone:{one:"1 Minute",other:"{{count}} Minuten"},withPreposition:{one:"1 Minute",other:"{{count}} Minuten"}},aboutXHours:{standalone:{one:"etwa 1 Stunde",other:"etwa {{count}} Stunden"},withPreposition:{one:"etwa 1 Stunde",other:"etwa {{count}} Stunden"}},xHours:{standalone:{one:"1 Stunde",other:"{{count}} Stunden"},withPreposition:{one:"1 Stunde",other:"{{count}} Stunden"}},xDays:{standalone:{one:"1 Tag",other:"{{count}} Tage"},withPreposition:{one:"1 Tag",other:"{{count}} Tagen"}},aboutXWeeks:{standalone:{one:"etwa 1 Woche",other:"etwa {{count}} Wochen"},withPreposition:{one:"etwa 1 Woche",other:"etwa {{count}} Wochen"}},xWeeks:{standalone:{one:"1 Woche",other:"{{count}} Wochen"},withPreposition:{one:"1 Woche",other:"{{count}} Wochen"}},aboutXMonths:{standalone:{one:"etwa 1 Monat",other:"etwa {{count}} Monate"},withPreposition:{one:"etwa 1 Monat",other:"etwa {{count}} Monaten"}},xMonths:{standalone:{one:"1 Monat",other:"{{count}} Monate"},withPreposition:{one:"1 Monat",other:"{{count}} Monaten"}},aboutXYears:{standalone:{one:"etwa 1 Jahr",other:"etwa {{count}} Jahre"},withPreposition:{one:"etwa 1 Jahr",other:"etwa {{count}} Jahren"}},xYears:{standalone:{one:"1 Jahr",other:"{{count}} Jahre"},withPreposition:{one:"1 Jahr",other:"{{count}} Jahren"}},overXYears:{standalone:{one:"mehr als 1 Jahr",other:"mehr als {{count}} Jahre"},withPreposition:{one:"mehr als 1 Jahr",other:"mehr als {{count}} Jahren"}},almostXYears:{standalone:{one:"fast 1 Jahr",other:"fast {{count}} Jahre"},withPreposition:{one:"fast 1 Jahr",other:"fast {{count}} Jahren"}}},bXe=function(t,n,r){var a,i=r!=null&&r.addSuffix?lY[t].withPreposition:lY[t].standalone;return typeof i=="string"?a=i:n===1?a=i.one:a=i.other.replace("{{count}}",String(n)),r!=null&&r.addSuffix?r.comparison&&r.comparison>0?"in "+a:"vor "+a:a},wXe={full:"EEEE, do MMMM y",long:"do MMMM y",medium:"do MMM y",short:"dd.MM.y"},SXe={full:"HH:mm:ss zzzz",long:"HH:mm:ss z",medium:"HH:mm:ss",short:"HH:mm"},EXe={full:"{{date}} 'um' {{time}}",long:"{{date}} 'um' {{time}}",medium:"{{date}} {{time}}",short:"{{date}} {{time}}"},TXe={date:Ne({formats:wXe,defaultWidth:"full"}),time:Ne({formats:SXe,defaultWidth:"full"}),dateTime:Ne({formats:EXe,defaultWidth:"full"})},CXe={lastWeek:"'letzten' eeee 'um' p",yesterday:"'gestern um' p",today:"'heute um' p",tomorrow:"'morgen um' p",nextWeek:"eeee 'um' p",other:"P"},kXe=function(t,n,r,a){return CXe[t]},xXe={narrow:["v.Chr.","n.Chr."],abbreviated:["v.Chr.","n.Chr."],wide:["vor Christus","nach Christus"]},_Xe={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1. Quartal","2. Quartal","3. Quartal","4. Quartal"]},fF={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mär","Apr","Mai","Jun","Jul","Aug","Sep","Okt","Nov","Dez"],wide:["Januar","Februar","März","April","Mai","Juni","Juli","August","September","Oktober","November","Dezember"]},OXe={narrow:fF.narrow,abbreviated:["Jan.","Feb.","März","Apr.","Mai","Juni","Juli","Aug.","Sep.","Okt.","Nov.","Dez."],wide:fF.wide},RXe={narrow:["S","M","D","M","D","F","S"],short:["So","Mo","Di","Mi","Do","Fr","Sa"],abbreviated:["So.","Mo.","Di.","Mi.","Do.","Fr.","Sa."],wide:["Sonntag","Montag","Dienstag","Mittwoch","Donnerstag","Freitag","Samstag"]},PXe={narrow:{am:"vm.",pm:"nm.",midnight:"Mitternacht",noon:"Mittag",morning:"Morgen",afternoon:"Nachm.",evening:"Abend",night:"Nacht"},abbreviated:{am:"vorm.",pm:"nachm.",midnight:"Mitternacht",noon:"Mittag",morning:"Morgen",afternoon:"Nachmittag",evening:"Abend",night:"Nacht"},wide:{am:"vormittags",pm:"nachmittags",midnight:"Mitternacht",noon:"Mittag",morning:"Morgen",afternoon:"Nachmittag",evening:"Abend",night:"Nacht"}},AXe={narrow:{am:"vm.",pm:"nm.",midnight:"Mitternacht",noon:"Mittag",morning:"morgens",afternoon:"nachm.",evening:"abends",night:"nachts"},abbreviated:{am:"vorm.",pm:"nachm.",midnight:"Mitternacht",noon:"Mittag",morning:"morgens",afternoon:"nachmittags",evening:"abends",night:"nachts"},wide:{am:"vormittags",pm:"nachmittags",midnight:"Mitternacht",noon:"Mittag",morning:"morgens",afternoon:"nachmittags",evening:"abends",night:"nachts"}},NXe=function(t){var n=Number(t);return n+"."},MXe={ordinalNumber:NXe,era:oe({values:xXe,defaultWidth:"wide"}),quarter:oe({values:_Xe,defaultWidth:"wide",argumentCallback:function(t){return t-1}}),month:oe({values:fF,formattingValues:OXe,defaultWidth:"wide"}),day:oe({values:RXe,defaultWidth:"wide"}),dayPeriod:oe({values:PXe,defaultWidth:"wide",formattingValues:AXe,defaultFormattingWidth:"wide"})},IXe=/^(\d+)(\.)?/i,DXe=/\d+/i,$Xe={narrow:/^(v\.? ?Chr\.?|n\.? ?Chr\.?)/i,abbreviated:/^(v\.? ?Chr\.?|n\.? ?Chr\.?)/i,wide:/^(vor Christus|vor unserer Zeitrechnung|nach Christus|unserer Zeitrechnung)/i},LXe={any:[/^v/i,/^n/i]},FXe={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](\.)? Quartal/i},jXe={any:[/1/i,/2/i,/3/i,/4/i]},UXe={narrow:/^[jfmasond]/i,abbreviated:/^(j[aä]n|feb|mär[z]?|apr|mai|jun[i]?|jul[i]?|aug|sep|okt|nov|dez)\.?/i,wide:/^(januar|februar|märz|april|mai|juni|juli|august|september|oktober|november|dezember)/i},BXe={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^j[aä]/i,/^f/i,/^mär/i,/^ap/i,/^mai/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},WXe={narrow:/^[smdmf]/i,short:/^(so|mo|di|mi|do|fr|sa)/i,abbreviated:/^(son?|mon?|die?|mit?|don?|fre?|sam?)\.?/i,wide:/^(sonntag|montag|dienstag|mittwoch|donnerstag|freitag|samstag)/i},zXe={any:[/^so/i,/^mo/i,/^di/i,/^mi/i,/^do/i,/^f/i,/^sa/i]},qXe={narrow:/^(vm\.?|nm\.?|Mitternacht|Mittag|morgens|nachm\.?|abends|nachts)/i,abbreviated:/^(vorm\.?|nachm\.?|Mitternacht|Mittag|morgens|nachm\.?|abends|nachts)/i,wide:/^(vormittags|nachmittags|Mitternacht|Mittag|morgens|nachmittags|abends|nachts)/i},HXe={any:{am:/^v/i,pm:/^n/i,midnight:/^Mitte/i,noon:/^Mitta/i,morning:/morgens/i,afternoon:/nachmittags/i,evening:/abends/i,night:/nachts/i}},VXe={ordinalNumber:Xt({matchPattern:IXe,parsePattern:DXe,valueCallback:function(t){return parseInt(t)}}),era:se({matchPatterns:$Xe,defaultMatchWidth:"wide",parsePatterns:LXe,defaultParseWidth:"any"}),quarter:se({matchPatterns:FXe,defaultMatchWidth:"wide",parsePatterns:jXe,defaultParseWidth:"any",valueCallback:function(t){return t+1}}),month:se({matchPatterns:UXe,defaultMatchWidth:"wide",parsePatterns:BXe,defaultParseWidth:"any"}),day:se({matchPatterns:WXe,defaultMatchWidth:"wide",parsePatterns:zXe,defaultParseWidth:"any"}),dayPeriod:se({matchPatterns:qXe,defaultMatchWidth:"wide",parsePatterns:HXe,defaultParseWidth:"any"})},GXe={code:"de",formatDistance:bXe,formatLong:TXe,formatRelative:kXe,localize:MXe,match:VXe,options:{weekStartsOn:1,firstWeekContainsDate:4}};const YXe=Object.freeze(Object.defineProperty({__proto__:null,default:GXe},Symbol.toStringTag,{value:"Module"})),KXe=jt(YXe);var XXe={lessThanXSeconds:{one:"λιγότερο από ένα δευτερόλεπτο",other:"λιγότερο από {{count}} δευτερόλεπτα"},xSeconds:{one:"1 δευτερόλεπτο",other:"{{count}} δευτερόλεπτα"},halfAMinute:"μισό λεπτό",lessThanXMinutes:{one:"λιγότερο από ένα λεπτό",other:"λιγότερο από {{count}} λεπτά"},xMinutes:{one:"1 λεπτό",other:"{{count}} λεπτά"},aboutXHours:{one:"περίπου 1 ώρα",other:"περίπου {{count}} ώρες"},xHours:{one:"1 ώρα",other:"{{count}} ώρες"},xDays:{one:"1 ημέρα",other:"{{count}} ημέρες"},aboutXWeeks:{one:"περίπου 1 εβδομάδα",other:"περίπου {{count}} εβδομάδες"},xWeeks:{one:"1 εβδομάδα",other:"{{count}} εβδομάδες"},aboutXMonths:{one:"περίπου 1 μήνας",other:"περίπου {{count}} μήνες"},xMonths:{one:"1 μήνας",other:"{{count}} μήνες"},aboutXYears:{one:"περίπου 1 χρόνο",other:"περίπου {{count}} χρόνια"},xYears:{one:"1 χρόνο",other:"{{count}} χρόνια"},overXYears:{one:"πάνω από 1 χρόνο",other:"πάνω από {{count}} χρόνια"},almostXYears:{one:"περίπου 1 χρόνο",other:"περίπου {{count}} χρόνια"}},QXe=function(t,n,r){var a,i=XXe[t];return typeof i=="string"?a=i:n===1?a=i.one:a=i.other.replace("{{count}}",String(n)),r!=null&&r.addSuffix?r.comparison&&r.comparison>0?"σε "+a:a+" πριν":a},JXe={full:"EEEE, d MMMM y",long:"d MMMM y",medium:"d MMM y",short:"d/M/yy"},ZXe={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},eQe={full:"{{date}} - {{time}}",long:"{{date}} - {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},tQe={date:Ne({formats:JXe,defaultWidth:"full"}),time:Ne({formats:ZXe,defaultWidth:"full"}),dateTime:Ne({formats:eQe,defaultWidth:"full"})},nQe={lastWeek:function(t){switch(t.getUTCDay()){case 6:return"'το προηγούμενο' eeee 'στις' p";default:return"'την προηγούμενη' eeee 'στις' p"}},yesterday:"'χθες στις' p",today:"'σήμερα στις' p",tomorrow:"'αύριο στις' p",nextWeek:"eeee 'στις' p",other:"P"},rQe=function(t,n){var r=nQe[t];return typeof r=="function"?r(n):r},aQe={narrow:["πΧ","μΧ"],abbreviated:["π.Χ.","μ.Χ."],wide:["προ Χριστού","μετά Χριστόν"]},iQe={narrow:["1","2","3","4"],abbreviated:["Τ1","Τ2","Τ3","Τ4"],wide:["1ο τρίμηνο","2ο τρίμηνο","3ο τρίμηνο","4ο τρίμηνο"]},oQe={narrow:["Ι","Φ","Μ","Α","Μ","Ι","Ι","Α","Σ","Ο","Ν","Δ"],abbreviated:["Ιαν","Φεβ","Μάρ","Απρ","Μάι","Ιούν","Ιούλ","Αύγ","Σεπ","Οκτ","Νοέ","Δεκ"],wide:["Ιανουάριος","Φεβρουάριος","Μάρτιος","Απρίλιος","Μάιος","Ιούνιος","Ιούλιος","Αύγουστος","Σεπτέμβριος","Οκτώβριος","Νοέμβριος","Δεκέμβριος"]},sQe={narrow:["Ι","Φ","Μ","Α","Μ","Ι","Ι","Α","Σ","Ο","Ν","Δ"],abbreviated:["Ιαν","Φεβ","Μαρ","Απρ","Μαΐ","Ιουν","Ιουλ","Αυγ","Σεπ","Οκτ","Νοε","Δεκ"],wide:["Ιανουαρίου","Φεβρουαρίου","Μαρτίου","Απριλίου","Μαΐου","Ιουνίου","Ιουλίου","Αυγούστου","Σεπτεμβρίου","Οκτωβρίου","Νοεμβρίου","Δεκεμβρίου"]},lQe={narrow:["Κ","Δ","T","Τ","Π","Π","Σ"],short:["Κυ","Δε","Τρ","Τε","Πέ","Πα","Σά"],abbreviated:["Κυρ","Δευ","Τρί","Τετ","Πέμ","Παρ","Σάβ"],wide:["Κυριακή","Δευτέρα","Τρίτη","Τετάρτη","Πέμπτη","Παρασκευή","Σάββατο"]},uQe={narrow:{am:"πμ",pm:"μμ",midnight:"μεσάνυχτα",noon:"μεσημέρι",morning:"πρωί",afternoon:"απόγευμα",evening:"βράδυ",night:"νύχτα"},abbreviated:{am:"π.μ.",pm:"μ.μ.",midnight:"μεσάνυχτα",noon:"μεσημέρι",morning:"πρωί",afternoon:"απόγευμα",evening:"βράδυ",night:"νύχτα"},wide:{am:"π.μ.",pm:"μ.μ.",midnight:"μεσάνυχτα",noon:"μεσημέρι",morning:"πρωί",afternoon:"απόγευμα",evening:"βράδυ",night:"νύχτα"}},cQe=function(t,n){var r=Number(t),a=n==null?void 0:n.unit,i;return a==="year"||a==="month"?i="ος":a==="week"||a==="dayOfYear"||a==="day"||a==="hour"||a==="date"?i="η":i="ο",r+i},dQe={ordinalNumber:cQe,era:oe({values:aQe,defaultWidth:"wide"}),quarter:oe({values:iQe,defaultWidth:"wide",argumentCallback:function(t){return t-1}}),month:oe({values:oQe,defaultWidth:"wide",formattingValues:sQe,defaultFormattingWidth:"wide"}),day:oe({values:lQe,defaultWidth:"wide"}),dayPeriod:oe({values:uQe,defaultWidth:"wide"})},fQe=/^(\d+)(ος|η|ο)?/i,pQe=/\d+/i,hQe={narrow:/^(πΧ|μΧ)/i,abbreviated:/^(π\.?\s?χ\.?|π\.?\s?κ\.?\s?χ\.?|μ\.?\s?χ\.?|κ\.?\s?χ\.?)/i,wide:/^(προ Χριστο(ύ|υ)|πριν απ(ό|ο) την Κοιν(ή|η) Χρονολογ(ί|ι)α|μετ(ά|α) Χριστ(ό|ο)ν|Κοιν(ή|η) Χρονολογ(ί|ι)α)/i},mQe={any:[/^π/i,/^(μ|κ)/i]},gQe={narrow:/^[1234]/i,abbreviated:/^τ[1234]/i,wide:/^[1234]ο? τρ(ί|ι)μηνο/i},vQe={any:[/1/i,/2/i,/3/i,/4/i]},yQe={narrow:/^[ιφμαμιιασονδ]/i,abbreviated:/^(ιαν|φεβ|μ[άα]ρ|απρ|μ[άα][ιΐ]|ιο[ύυ]ν|ιο[ύυ]λ|α[ύυ]γ|σεπ|οκτ|νο[έε]|δεκ)/i,wide:/^(μ[άα][ιΐ]|α[ύυ]γο[υύ]στ)(ος|ου)|(ιανου[άα]ρ|φεβρου[άα]ρ|μ[άα]ρτ|απρ[ίι]λ|ιο[ύυ]ν|ιο[ύυ]λ|σεπτ[έε]μβρ|οκτ[ώω]βρ|νο[έε]μβρ|δεκ[έε]μβρ)(ιος|ίου)/i},bQe={narrow:[/^ι/i,/^φ/i,/^μ/i,/^α/i,/^μ/i,/^ι/i,/^ι/i,/^α/i,/^σ/i,/^ο/i,/^ν/i,/^δ/i],any:[/^ια/i,/^φ/i,/^μ[άα]ρ/i,/^απ/i,/^μ[άα][ιΐ]/i,/^ιο[ύυ]ν/i,/^ιο[ύυ]λ/i,/^α[ύυ]/i,/^σ/i,/^ο/i,/^ν/i,/^δ/i]},wQe={narrow:/^[κδτπσ]/i,short:/^(κυ|δε|τρ|τε|π[εέ]|π[αά]|σ[αά])/i,abbreviated:/^(κυρ|δευ|τρι|τετ|πεμ|παρ|σαβ)/i,wide:/^(κυριακ(ή|η)|δευτ(έ|ε)ρα|τρ(ί|ι)τη|τετ(ά|α)ρτη|π(έ|ε)μπτη|παρασκευ(ή|η)|σ(ά|α)ββατο)/i},SQe={narrow:[/^κ/i,/^δ/i,/^τ/i,/^τ/i,/^π/i,/^π/i,/^σ/i],any:[/^κ/i,/^δ/i,/^τρ/i,/^τε/i,/^π[εέ]/i,/^π[αά]/i,/^σ/i]},EQe={narrow:/^(πμ|μμ|μεσ(ά|α)νυχτα|μεσημ(έ|ε)ρι|πρω(ί|ι)|απ(ό|ο)γευμα|βρ(ά|α)δυ|ν(ύ|υ)χτα)/i,any:/^([πμ]\.?\s?μ\.?|μεσ(ά|α)νυχτα|μεσημ(έ|ε)ρι|πρω(ί|ι)|απ(ό|ο)γευμα|βρ(ά|α)δυ|ν(ύ|υ)χτα)/i},TQe={any:{am:/^πμ|π\.\s?μ\./i,pm:/^μμ|μ\.\s?μ\./i,midnight:/^μεσάν/i,noon:/^μεσημ(έ|ε)/i,morning:/πρω(ί|ι)/i,afternoon:/απ(ό|ο)γευμα/i,evening:/βρ(ά|α)δυ/i,night:/ν(ύ|υ)χτα/i}},CQe={ordinalNumber:Xt({matchPattern:fQe,parsePattern:pQe,valueCallback:function(t){return parseInt(t,10)}}),era:se({matchPatterns:hQe,defaultMatchWidth:"wide",parsePatterns:mQe,defaultParseWidth:"any"}),quarter:se({matchPatterns:gQe,defaultMatchWidth:"wide",parsePatterns:vQe,defaultParseWidth:"any",valueCallback:function(t){return t+1}}),month:se({matchPatterns:yQe,defaultMatchWidth:"wide",parsePatterns:bQe,defaultParseWidth:"any"}),day:se({matchPatterns:wQe,defaultMatchWidth:"wide",parsePatterns:SQe,defaultParseWidth:"any"}),dayPeriod:se({matchPatterns:EQe,defaultMatchWidth:"any",parsePatterns:TQe,defaultParseWidth:"any"})},kQe={code:"el",formatDistance:QXe,formatLong:tQe,formatRelative:rQe,localize:dQe,match:CQe,options:{weekStartsOn:1,firstWeekContainsDate:4}};const xQe=Object.freeze(Object.defineProperty({__proto__:null,default:kQe},Symbol.toStringTag,{value:"Module"})),_Qe=jt(xQe);var OQe={full:"EEEE, d MMMM yyyy",long:"d MMMM yyyy",medium:"d MMM yyyy",short:"dd/MM/yyyy"},RQe={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},PQe={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},AQe={date:Ne({formats:OQe,defaultWidth:"full"}),time:Ne({formats:RQe,defaultWidth:"full"}),dateTime:Ne({formats:PQe,defaultWidth:"full"})},NQe={code:"en-AU",formatDistance:V4,formatLong:AQe,formatRelative:TO,localize:CO,match:kO,options:{weekStartsOn:1,firstWeekContainsDate:4}};const MQe=Object.freeze(Object.defineProperty({__proto__:null,default:NQe},Symbol.toStringTag,{value:"Module"})),IQe=jt(MQe);var DQe={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"a second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"a minute",other:"{{count}} minutes"},aboutXHours:{one:"about an hour",other:"about {{count}} hours"},xHours:{one:"an hour",other:"{{count}} hours"},xDays:{one:"a day",other:"{{count}} days"},aboutXWeeks:{one:"about a week",other:"about {{count}} weeks"},xWeeks:{one:"a week",other:"{{count}} weeks"},aboutXMonths:{one:"about a month",other:"about {{count}} months"},xMonths:{one:"a month",other:"{{count}} months"},aboutXYears:{one:"about a year",other:"about {{count}} years"},xYears:{one:"a year",other:"{{count}} years"},overXYears:{one:"over a year",other:"over {{count}} years"},almostXYears:{one:"almost a year",other:"almost {{count}} years"}},$Qe=function(t,n,r){var a,i=DQe[t];return typeof i=="string"?a=i:n===1?a=i.one:a=i.other.replace("{{count}}",n.toString()),r!=null&&r.addSuffix?r.comparison&&r.comparison>0?"in "+a:a+" ago":a},LQe={full:"EEEE, MMMM do, yyyy",long:"MMMM do, yyyy",medium:"MMM d, yyyy",short:"yyyy-MM-dd"},FQe={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},jQe={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},UQe={date:Ne({formats:LQe,defaultWidth:"full"}),time:Ne({formats:FQe,defaultWidth:"full"}),dateTime:Ne({formats:jQe,defaultWidth:"full"})},BQe={code:"en-CA",formatDistance:$Qe,formatLong:UQe,formatRelative:TO,localize:CO,match:kO,options:{weekStartsOn:0,firstWeekContainsDate:1}};const WQe=Object.freeze(Object.defineProperty({__proto__:null,default:BQe},Symbol.toStringTag,{value:"Module"})),zQe=jt(WQe);var qQe={full:"EEEE, d MMMM yyyy",long:"d MMMM yyyy",medium:"d MMM yyyy",short:"dd/MM/yyyy"},HQe={full:"HH:mm:ss zzzz",long:"HH:mm:ss z",medium:"HH:mm:ss",short:"HH:mm"},VQe={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},GQe={date:Ne({formats:qQe,defaultWidth:"full"}),time:Ne({formats:HQe,defaultWidth:"full"}),dateTime:Ne({formats:VQe,defaultWidth:"full"})},YQe={code:"en-GB",formatDistance:V4,formatLong:GQe,formatRelative:TO,localize:CO,match:kO,options:{weekStartsOn:1,firstWeekContainsDate:4}};const KQe=Object.freeze(Object.defineProperty({__proto__:null,default:YQe},Symbol.toStringTag,{value:"Module"})),XQe=jt(KQe);var QQe={lessThanXSeconds:{one:"malpli ol sekundo",other:"malpli ol {{count}} sekundoj"},xSeconds:{one:"1 sekundo",other:"{{count}} sekundoj"},halfAMinute:"duonminuto",lessThanXMinutes:{one:"malpli ol minuto",other:"malpli ol {{count}} minutoj"},xMinutes:{one:"1 minuto",other:"{{count}} minutoj"},aboutXHours:{one:"proksimume 1 horo",other:"proksimume {{count}} horoj"},xHours:{one:"1 horo",other:"{{count}} horoj"},xDays:{one:"1 tago",other:"{{count}} tagoj"},aboutXMonths:{one:"proksimume 1 monato",other:"proksimume {{count}} monatoj"},xWeeks:{one:"1 semajno",other:"{{count}} semajnoj"},aboutXWeeks:{one:"proksimume 1 semajno",other:"proksimume {{count}} semajnoj"},xMonths:{one:"1 monato",other:"{{count}} monatoj"},aboutXYears:{one:"proksimume 1 jaro",other:"proksimume {{count}} jaroj"},xYears:{one:"1 jaro",other:"{{count}} jaroj"},overXYears:{one:"pli ol 1 jaro",other:"pli ol {{count}} jaroj"},almostXYears:{one:"preskaŭ 1 jaro",other:"preskaŭ {{count}} jaroj"}},JQe=function(t,n,r){var a,i=QQe[t];return typeof i=="string"?a=i:n===1?a=i.one:a=i.other.replace("{{count}}",String(n)),r!=null&&r.addSuffix?r!=null&&r.comparison&&r.comparison>0?"post "+a:"antaŭ "+a:a},ZQe={full:"EEEE, do 'de' MMMM y",long:"y-MMMM-dd",medium:"y-MMM-dd",short:"yyyy-MM-dd"},eJe={full:"Ho 'horo kaj' m:ss zzzz",long:"HH:mm:ss z",medium:"HH:mm:ss",short:"HH:mm"},tJe={any:"{{date}} {{time}}"},nJe={date:Ne({formats:ZQe,defaultWidth:"full"}),time:Ne({formats:eJe,defaultWidth:"full"}),dateTime:Ne({formats:tJe,defaultWidth:"any"})},rJe={lastWeek:"'pasinta' eeee 'je' p",yesterday:"'hieraŭ je' p",today:"'hodiaŭ je' p",tomorrow:"'morgaŭ je' p",nextWeek:"eeee 'je' p",other:"P"},aJe=function(t,n,r,a){return rJe[t]},iJe={narrow:["aK","pK"],abbreviated:["a.K.E.","p.K.E."],wide:["antaŭ Komuna Erao","Komuna Erao"]},oJe={narrow:["1","2","3","4"],abbreviated:["K1","K2","K3","K4"],wide:["1-a kvaronjaro","2-a kvaronjaro","3-a kvaronjaro","4-a kvaronjaro"]},sJe={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["jan","feb","mar","apr","maj","jun","jul","aŭg","sep","okt","nov","dec"],wide:["januaro","februaro","marto","aprilo","majo","junio","julio","aŭgusto","septembro","oktobro","novembro","decembro"]},lJe={narrow:["D","L","M","M","Ĵ","V","S"],short:["di","lu","ma","me","ĵa","ve","sa"],abbreviated:["dim","lun","mar","mer","ĵaŭ","ven","sab"],wide:["dimanĉo","lundo","mardo","merkredo","ĵaŭdo","vendredo","sabato"]},uJe={narrow:{am:"a",pm:"p",midnight:"noktomezo",noon:"tagmezo",morning:"matene",afternoon:"posttagmeze",evening:"vespere",night:"nokte"},abbreviated:{am:"a.t.m.",pm:"p.t.m.",midnight:"noktomezo",noon:"tagmezo",morning:"matene",afternoon:"posttagmeze",evening:"vespere",night:"nokte"},wide:{am:"antaŭtagmeze",pm:"posttagmeze",midnight:"noktomezo",noon:"tagmezo",morning:"matene",afternoon:"posttagmeze",evening:"vespere",night:"nokte"}},cJe=function(t){var n=Number(t);return n+"-a"},dJe={ordinalNumber:cJe,era:oe({values:iJe,defaultWidth:"wide"}),quarter:oe({values:oJe,defaultWidth:"wide",argumentCallback:function(t){return Number(t)-1}}),month:oe({values:sJe,defaultWidth:"wide"}),day:oe({values:lJe,defaultWidth:"wide"}),dayPeriod:oe({values:uJe,defaultWidth:"wide"})},fJe=/^(\d+)(-?a)?/i,pJe=/\d+/i,hJe={narrow:/^([ap]k)/i,abbreviated:/^([ap]\.?\s?k\.?\s?e\.?)/i,wide:/^((antaǔ |post )?komuna erao)/i},mJe={any:[/^a/i,/^[kp]/i]},gJe={narrow:/^[1234]/i,abbreviated:/^k[1234]/i,wide:/^[1234](-?a)? kvaronjaro/i},vJe={any:[/1/i,/2/i,/3/i,/4/i]},yJe={narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|maj|jun|jul|a(ŭ|ux|uh|u)g|sep|okt|nov|dec)/i,wide:/^(januaro|februaro|marto|aprilo|majo|junio|julio|a(ŭ|ux|uh|u)gusto|septembro|oktobro|novembro|decembro)/i},bJe={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^maj/i,/^jun/i,/^jul/i,/^a(u|ŭ)/i,/^s/i,/^o/i,/^n/i,/^d/i]},wJe={narrow:/^[dlmĵjvs]/i,short:/^(di|lu|ma|me|(ĵ|jx|jh|j)a|ve|sa)/i,abbreviated:/^(dim|lun|mar|mer|(ĵ|jx|jh|j)a(ŭ|ux|uh|u)|ven|sab)/i,wide:/^(diman(ĉ|cx|ch|c)o|lundo|mardo|merkredo|(ĵ|jx|jh|j)a(ŭ|ux|uh|u)do|vendredo|sabato)/i},SJe={narrow:[/^d/i,/^l/i,/^m/i,/^m/i,/^(j|ĵ)/i,/^v/i,/^s/i],any:[/^d/i,/^l/i,/^ma/i,/^me/i,/^(j|ĵ)/i,/^v/i,/^s/i]},EJe={narrow:/^([ap]|(posttagmez|noktomez|tagmez|maten|vesper|nokt)[eo])/i,abbreviated:/^([ap][.\s]?t[.\s]?m[.\s]?|(posttagmez|noktomez|tagmez|maten|vesper|nokt)[eo])/i,wide:/^(anta(ŭ|ux)tagmez|posttagmez|noktomez|tagmez|maten|vesper|nokt)[eo]/i},TJe={any:{am:/^a/i,pm:/^p/i,midnight:/^noktom/i,noon:/^t/i,morning:/^m/i,afternoon:/^posttagmeze/i,evening:/^v/i,night:/^n/i}},CJe={ordinalNumber:Xt({matchPattern:fJe,parsePattern:pJe,valueCallback:function(t){return parseInt(t,10)}}),era:se({matchPatterns:hJe,defaultMatchWidth:"wide",parsePatterns:mJe,defaultParseWidth:"any"}),quarter:se({matchPatterns:gJe,defaultMatchWidth:"wide",parsePatterns:vJe,defaultParseWidth:"any",valueCallback:function(t){return t+1}}),month:se({matchPatterns:yJe,defaultMatchWidth:"wide",parsePatterns:bJe,defaultParseWidth:"any"}),day:se({matchPatterns:wJe,defaultMatchWidth:"wide",parsePatterns:SJe,defaultParseWidth:"any"}),dayPeriod:se({matchPatterns:EJe,defaultMatchWidth:"wide",parsePatterns:TJe,defaultParseWidth:"any"})},kJe={code:"eo",formatDistance:JQe,formatLong:nJe,formatRelative:aJe,localize:dJe,match:CJe,options:{weekStartsOn:1,firstWeekContainsDate:4}};const xJe=Object.freeze(Object.defineProperty({__proto__:null,default:kJe},Symbol.toStringTag,{value:"Module"})),_Je=jt(xJe);var OJe={lessThanXSeconds:{one:"menos de un segundo",other:"menos de {{count}} segundos"},xSeconds:{one:"1 segundo",other:"{{count}} segundos"},halfAMinute:"medio minuto",lessThanXMinutes:{one:"menos de un minuto",other:"menos de {{count}} minutos"},xMinutes:{one:"1 minuto",other:"{{count}} minutos"},aboutXHours:{one:"alrededor de 1 hora",other:"alrededor de {{count}} horas"},xHours:{one:"1 hora",other:"{{count}} horas"},xDays:{one:"1 día",other:"{{count}} días"},aboutXWeeks:{one:"alrededor de 1 semana",other:"alrededor de {{count}} semanas"},xWeeks:{one:"1 semana",other:"{{count}} semanas"},aboutXMonths:{one:"alrededor de 1 mes",other:"alrededor de {{count}} meses"},xMonths:{one:"1 mes",other:"{{count}} meses"},aboutXYears:{one:"alrededor de 1 año",other:"alrededor de {{count}} años"},xYears:{one:"1 año",other:"{{count}} años"},overXYears:{one:"más de 1 año",other:"más de {{count}} años"},almostXYears:{one:"casi 1 año",other:"casi {{count}} años"}},RJe=function(t,n,r){var a,i=OJe[t];return typeof i=="string"?a=i:n===1?a=i.one:a=i.other.replace("{{count}}",n.toString()),r!=null&&r.addSuffix?r.comparison&&r.comparison>0?"en "+a:"hace "+a:a},PJe={full:"EEEE, d 'de' MMMM 'de' y",long:"d 'de' MMMM 'de' y",medium:"d MMM y",short:"dd/MM/y"},AJe={full:"HH:mm:ss zzzz",long:"HH:mm:ss z",medium:"HH:mm:ss",short:"HH:mm"},NJe={full:"{{date}} 'a las' {{time}}",long:"{{date}} 'a las' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},MJe={date:Ne({formats:PJe,defaultWidth:"full"}),time:Ne({formats:AJe,defaultWidth:"full"}),dateTime:Ne({formats:NJe,defaultWidth:"full"})},IJe={lastWeek:"'el' eeee 'pasado a la' p",yesterday:"'ayer a la' p",today:"'hoy a la' p",tomorrow:"'mañana a la' p",nextWeek:"eeee 'a la' p",other:"P"},DJe={lastWeek:"'el' eeee 'pasado a las' p",yesterday:"'ayer a las' p",today:"'hoy a las' p",tomorrow:"'mañana a las' p",nextWeek:"eeee 'a las' p",other:"P"},$Je=function(t,n,r,a){return n.getUTCHours()!==1?DJe[t]:IJe[t]},LJe={narrow:["AC","DC"],abbreviated:["AC","DC"],wide:["antes de cristo","después de cristo"]},FJe={narrow:["1","2","3","4"],abbreviated:["T1","T2","T3","T4"],wide:["1º trimestre","2º trimestre","3º trimestre","4º trimestre"]},jJe={narrow:["e","f","m","a","m","j","j","a","s","o","n","d"],abbreviated:["ene","feb","mar","abr","may","jun","jul","ago","sep","oct","nov","dic"],wide:["enero","febrero","marzo","abril","mayo","junio","julio","agosto","septiembre","octubre","noviembre","diciembre"]},UJe={narrow:["d","l","m","m","j","v","s"],short:["do","lu","ma","mi","ju","vi","sá"],abbreviated:["dom","lun","mar","mié","jue","vie","sáb"],wide:["domingo","lunes","martes","miércoles","jueves","viernes","sábado"]},BJe={narrow:{am:"a",pm:"p",midnight:"mn",noon:"md",morning:"mañana",afternoon:"tarde",evening:"tarde",night:"noche"},abbreviated:{am:"AM",pm:"PM",midnight:"medianoche",noon:"mediodia",morning:"mañana",afternoon:"tarde",evening:"tarde",night:"noche"},wide:{am:"a.m.",pm:"p.m.",midnight:"medianoche",noon:"mediodia",morning:"mañana",afternoon:"tarde",evening:"tarde",night:"noche"}},WJe={narrow:{am:"a",pm:"p",midnight:"mn",noon:"md",morning:"de la mañana",afternoon:"de la tarde",evening:"de la tarde",night:"de la noche"},abbreviated:{am:"AM",pm:"PM",midnight:"medianoche",noon:"mediodia",morning:"de la mañana",afternoon:"de la tarde",evening:"de la tarde",night:"de la noche"},wide:{am:"a.m.",pm:"p.m.",midnight:"medianoche",noon:"mediodia",morning:"de la mañana",afternoon:"de la tarde",evening:"de la tarde",night:"de la noche"}},zJe=function(t,n){var r=Number(t);return r+"º"},qJe={ordinalNumber:zJe,era:oe({values:LJe,defaultWidth:"wide"}),quarter:oe({values:FJe,defaultWidth:"wide",argumentCallback:function(t){return Number(t)-1}}),month:oe({values:jJe,defaultWidth:"wide"}),day:oe({values:UJe,defaultWidth:"wide"}),dayPeriod:oe({values:BJe,defaultWidth:"wide",formattingValues:WJe,defaultFormattingWidth:"wide"})},HJe=/^(\d+)(º)?/i,VJe=/\d+/i,GJe={narrow:/^(ac|dc|a|d)/i,abbreviated:/^(a\.?\s?c\.?|a\.?\s?e\.?\s?c\.?|d\.?\s?c\.?|e\.?\s?c\.?)/i,wide:/^(antes de cristo|antes de la era com[uú]n|despu[eé]s de cristo|era com[uú]n)/i},YJe={any:[/^ac/i,/^dc/i],wide:[/^(antes de cristo|antes de la era com[uú]n)/i,/^(despu[eé]s de cristo|era com[uú]n)/i]},KJe={narrow:/^[1234]/i,abbreviated:/^T[1234]/i,wide:/^[1234](º)? trimestre/i},XJe={any:[/1/i,/2/i,/3/i,/4/i]},QJe={narrow:/^[efmajsond]/i,abbreviated:/^(ene|feb|mar|abr|may|jun|jul|ago|sep|oct|nov|dic)/i,wide:/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre)/i},JJe={narrow:[/^e/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^en/i,/^feb/i,/^mar/i,/^abr/i,/^may/i,/^jun/i,/^jul/i,/^ago/i,/^sep/i,/^oct/i,/^nov/i,/^dic/i]},ZJe={narrow:/^[dlmjvs]/i,short:/^(do|lu|ma|mi|ju|vi|s[áa])/i,abbreviated:/^(dom|lun|mar|mi[ée]|jue|vie|s[áa]b)/i,wide:/^(domingo|lunes|martes|mi[ée]rcoles|jueves|viernes|s[áa]bado)/i},eZe={narrow:[/^d/i,/^l/i,/^m/i,/^m/i,/^j/i,/^v/i,/^s/i],any:[/^do/i,/^lu/i,/^ma/i,/^mi/i,/^ju/i,/^vi/i,/^sa/i]},tZe={narrow:/^(a|p|mn|md|(de la|a las) (mañana|tarde|noche))/i,any:/^([ap]\.?\s?m\.?|medianoche|mediodia|(de la|a las) (mañana|tarde|noche))/i},nZe={any:{am:/^a/i,pm:/^p/i,midnight:/^mn/i,noon:/^md/i,morning:/mañana/i,afternoon:/tarde/i,evening:/tarde/i,night:/noche/i}},rZe={ordinalNumber:Xt({matchPattern:HJe,parsePattern:VJe,valueCallback:function(t){return parseInt(t,10)}}),era:se({matchPatterns:GJe,defaultMatchWidth:"wide",parsePatterns:YJe,defaultParseWidth:"any"}),quarter:se({matchPatterns:KJe,defaultMatchWidth:"wide",parsePatterns:XJe,defaultParseWidth:"any",valueCallback:function(t){return t+1}}),month:se({matchPatterns:QJe,defaultMatchWidth:"wide",parsePatterns:JJe,defaultParseWidth:"any"}),day:se({matchPatterns:ZJe,defaultMatchWidth:"wide",parsePatterns:eZe,defaultParseWidth:"any"}),dayPeriod:se({matchPatterns:tZe,defaultMatchWidth:"any",parsePatterns:nZe,defaultParseWidth:"any"})},aZe={code:"es",formatDistance:RJe,formatLong:MJe,formatRelative:$Je,localize:qJe,match:rZe,options:{weekStartsOn:1,firstWeekContainsDate:1}};const iZe=Object.freeze(Object.defineProperty({__proto__:null,default:aZe},Symbol.toStringTag,{value:"Module"})),oZe=jt(iZe);var uY={lessThanXSeconds:{standalone:{one:"vähem kui üks sekund",other:"vähem kui {{count}} sekundit"},withPreposition:{one:"vähem kui ühe sekundi",other:"vähem kui {{count}} sekundi"}},xSeconds:{standalone:{one:"üks sekund",other:"{{count}} sekundit"},withPreposition:{one:"ühe sekundi",other:"{{count}} sekundi"}},halfAMinute:{standalone:"pool minutit",withPreposition:"poole minuti"},lessThanXMinutes:{standalone:{one:"vähem kui üks minut",other:"vähem kui {{count}} minutit"},withPreposition:{one:"vähem kui ühe minuti",other:"vähem kui {{count}} minuti"}},xMinutes:{standalone:{one:"üks minut",other:"{{count}} minutit"},withPreposition:{one:"ühe minuti",other:"{{count}} minuti"}},aboutXHours:{standalone:{one:"umbes üks tund",other:"umbes {{count}} tundi"},withPreposition:{one:"umbes ühe tunni",other:"umbes {{count}} tunni"}},xHours:{standalone:{one:"üks tund",other:"{{count}} tundi"},withPreposition:{one:"ühe tunni",other:"{{count}} tunni"}},xDays:{standalone:{one:"üks päev",other:"{{count}} päeva"},withPreposition:{one:"ühe päeva",other:"{{count}} päeva"}},aboutXWeeks:{standalone:{one:"umbes üks nädal",other:"umbes {{count}} nädalat"},withPreposition:{one:"umbes ühe nädala",other:"umbes {{count}} nädala"}},xWeeks:{standalone:{one:"üks nädal",other:"{{count}} nädalat"},withPreposition:{one:"ühe nädala",other:"{{count}} nädala"}},aboutXMonths:{standalone:{one:"umbes üks kuu",other:"umbes {{count}} kuud"},withPreposition:{one:"umbes ühe kuu",other:"umbes {{count}} kuu"}},xMonths:{standalone:{one:"üks kuu",other:"{{count}} kuud"},withPreposition:{one:"ühe kuu",other:"{{count}} kuu"}},aboutXYears:{standalone:{one:"umbes üks aasta",other:"umbes {{count}} aastat"},withPreposition:{one:"umbes ühe aasta",other:"umbes {{count}} aasta"}},xYears:{standalone:{one:"üks aasta",other:"{{count}} aastat"},withPreposition:{one:"ühe aasta",other:"{{count}} aasta"}},overXYears:{standalone:{one:"rohkem kui üks aasta",other:"rohkem kui {{count}} aastat"},withPreposition:{one:"rohkem kui ühe aasta",other:"rohkem kui {{count}} aasta"}},almostXYears:{standalone:{one:"peaaegu üks aasta",other:"peaaegu {{count}} aastat"},withPreposition:{one:"peaaegu ühe aasta",other:"peaaegu {{count}} aasta"}}},sZe=function(t,n,r){var a=r!=null&&r.addSuffix?uY[t].withPreposition:uY[t].standalone,i;return typeof a=="string"?i=a:n===1?i=a.one:i=a.other.replace("{{count}}",String(n)),r!=null&&r.addSuffix?r.comparison&&r.comparison>0?i+" pärast":i+" eest":i},lZe={full:"EEEE, d. MMMM y",long:"d. MMMM y",medium:"d. MMM y",short:"dd.MM.y"},uZe={full:"HH:mm:ss zzzz",long:"HH:mm:ss z",medium:"HH:mm:ss",short:"HH:mm"},cZe={full:"{{date}} 'kell' {{time}}",long:"{{date}} 'kell' {{time}}",medium:"{{date}}. {{time}}",short:"{{date}}. {{time}}"},dZe={date:Ne({formats:lZe,defaultWidth:"full"}),time:Ne({formats:uZe,defaultWidth:"full"}),dateTime:Ne({formats:cZe,defaultWidth:"full"})},fZe={lastWeek:"'eelmine' eeee 'kell' p",yesterday:"'eile kell' p",today:"'täna kell' p",tomorrow:"'homme kell' p",nextWeek:"'järgmine' eeee 'kell' p",other:"P"},pZe=function(t,n,r,a){return fZe[t]},hZe={narrow:["e.m.a","m.a.j"],abbreviated:["e.m.a","m.a.j"],wide:["enne meie ajaarvamist","meie ajaarvamise järgi"]},mZe={narrow:["1","2","3","4"],abbreviated:["K1","K2","K3","K4"],wide:["1. kvartal","2. kvartal","3. kvartal","4. kvartal"]},cY={narrow:["J","V","M","A","M","J","J","A","S","O","N","D"],abbreviated:["jaan","veebr","märts","apr","mai","juuni","juuli","aug","sept","okt","nov","dets"],wide:["jaanuar","veebruar","märts","aprill","mai","juuni","juuli","august","september","oktoober","november","detsember"]},dY={narrow:["P","E","T","K","N","R","L"],short:["P","E","T","K","N","R","L"],abbreviated:["pühap.","esmasp.","teisip.","kolmap.","neljap.","reede.","laup."],wide:["pühapäev","esmaspäev","teisipäev","kolmapäev","neljapäev","reede","laupäev"]},gZe={narrow:{am:"AM",pm:"PM",midnight:"kesköö",noon:"keskpäev",morning:"hommik",afternoon:"pärastlõuna",evening:"õhtu",night:"öö"},abbreviated:{am:"AM",pm:"PM",midnight:"kesköö",noon:"keskpäev",morning:"hommik",afternoon:"pärastlõuna",evening:"õhtu",night:"öö"},wide:{am:"AM",pm:"PM",midnight:"kesköö",noon:"keskpäev",morning:"hommik",afternoon:"pärastlõuna",evening:"õhtu",night:"öö"}},vZe={narrow:{am:"AM",pm:"PM",midnight:"keskööl",noon:"keskpäeval",morning:"hommikul",afternoon:"pärastlõunal",evening:"õhtul",night:"öösel"},abbreviated:{am:"AM",pm:"PM",midnight:"keskööl",noon:"keskpäeval",morning:"hommikul",afternoon:"pärastlõunal",evening:"õhtul",night:"öösel"},wide:{am:"AM",pm:"PM",midnight:"keskööl",noon:"keskpäeval",morning:"hommikul",afternoon:"pärastlõunal",evening:"õhtul",night:"öösel"}},yZe=function(t,n){var r=Number(t);return r+"."},bZe={ordinalNumber:yZe,era:oe({values:hZe,defaultWidth:"wide"}),quarter:oe({values:mZe,defaultWidth:"wide",argumentCallback:function(t){return t-1}}),month:oe({values:cY,defaultWidth:"wide",formattingValues:cY,defaultFormattingWidth:"wide"}),day:oe({values:dY,defaultWidth:"wide",formattingValues:dY,defaultFormattingWidth:"wide"}),dayPeriod:oe({values:gZe,defaultWidth:"wide",formattingValues:vZe,defaultFormattingWidth:"wide"})},wZe=/^\d+\./i,SZe=/\d+/i,EZe={narrow:/^(e\.m\.a|m\.a\.j|eKr|pKr)/i,abbreviated:/^(e\.m\.a|m\.a\.j|eKr|pKr)/i,wide:/^(enne meie ajaarvamist|meie ajaarvamise järgi|enne Kristust|pärast Kristust)/i},TZe={any:[/^e/i,/^(m|p)/i]},CZe={narrow:/^[1234]/i,abbreviated:/^K[1234]/i,wide:/^[1234](\.)? kvartal/i},kZe={any:[/1/i,/2/i,/3/i,/4/i]},xZe={narrow:/^[jvmasond]/i,abbreviated:/^(jaan|veebr|märts|apr|mai|juuni|juuli|aug|sept|okt|nov|dets)/i,wide:/^(jaanuar|veebruar|märts|aprill|mai|juuni|juuli|august|september|oktoober|november|detsember)/i},_Ze={narrow:[/^j/i,/^v/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^v/i,/^mär/i,/^ap/i,/^mai/i,/^juun/i,/^juul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},OZe={narrow:/^[petknrl]/i,short:/^[petknrl]/i,abbreviated:/^(püh?|esm?|tei?|kolm?|nel?|ree?|laup?)\.?/i,wide:/^(pühapäev|esmaspäev|teisipäev|kolmapäev|neljapäev|reede|laupäev)/i},RZe={any:[/^p/i,/^e/i,/^t/i,/^k/i,/^n/i,/^r/i,/^l/i]},PZe={any:/^(am|pm|keskööl?|keskpäev(al)?|hommik(ul)?|pärastlõunal?|õhtul?|öö(sel)?)/i},AZe={any:{am:/^a/i,pm:/^p/i,midnight:/^keskö/i,noon:/^keskp/i,morning:/hommik/i,afternoon:/pärastlõuna/i,evening:/õhtu/i,night:/öö/i}},NZe={ordinalNumber:Xt({matchPattern:wZe,parsePattern:SZe,valueCallback:function(t){return parseInt(t,10)}}),era:se({matchPatterns:EZe,defaultMatchWidth:"wide",parsePatterns:TZe,defaultParseWidth:"any"}),quarter:se({matchPatterns:CZe,defaultMatchWidth:"wide",parsePatterns:kZe,defaultParseWidth:"any",valueCallback:function(t){return t+1}}),month:se({matchPatterns:xZe,defaultMatchWidth:"wide",parsePatterns:_Ze,defaultParseWidth:"any"}),day:se({matchPatterns:OZe,defaultMatchWidth:"wide",parsePatterns:RZe,defaultParseWidth:"any"}),dayPeriod:se({matchPatterns:PZe,defaultMatchWidth:"any",parsePatterns:AZe,defaultParseWidth:"any"})},MZe={code:"et",formatDistance:sZe,formatLong:dZe,formatRelative:pZe,localize:bZe,match:NZe,options:{weekStartsOn:1,firstWeekContainsDate:4}};const IZe=Object.freeze(Object.defineProperty({__proto__:null,default:MZe},Symbol.toStringTag,{value:"Module"})),DZe=jt(IZe);var $Ze={lessThanXSeconds:{one:"کمتر از یک ثانیه",other:"کمتر از {{count}} ثانیه"},xSeconds:{one:"1 ثانیه",other:"{{count}} ثانیه"},halfAMinute:"نیم دقیقه",lessThanXMinutes:{one:"کمتر از یک دقیقه",other:"کمتر از {{count}} دقیقه"},xMinutes:{one:"1 دقیقه",other:"{{count}} دقیقه"},aboutXHours:{one:"حدود 1 ساعت",other:"حدود {{count}} ساعت"},xHours:{one:"1 ساعت",other:"{{count}} ساعت"},xDays:{one:"1 روز",other:"{{count}} روز"},aboutXWeeks:{one:"حدود 1 هفته",other:"حدود {{count}} هفته"},xWeeks:{one:"1 هفته",other:"{{count}} هفته"},aboutXMonths:{one:"حدود 1 ماه",other:"حدود {{count}} ماه"},xMonths:{one:"1 ماه",other:"{{count}} ماه"},aboutXYears:{one:"حدود 1 سال",other:"حدود {{count}} سال"},xYears:{one:"1 سال",other:"{{count}} سال"},overXYears:{one:"بیشتر از 1 سال",other:"بیشتر از {{count}} سال"},almostXYears:{one:"نزدیک 1 سال",other:"نزدیک {{count}} سال"}},LZe=function(t,n,r){var a,i=$Ze[t];return typeof i=="string"?a=i:n===1?a=i.one:a=i.other.replace("{{count}}",String(n)),r!=null&&r.addSuffix?r.comparison&&r.comparison>0?"در "+a:a+" قبل":a},FZe={full:"EEEE do MMMM y",long:"do MMMM y",medium:"d MMM y",short:"yyyy/MM/dd"},jZe={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},UZe={full:"{{date}} 'در' {{time}}",long:"{{date}} 'در' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},BZe={date:Ne({formats:FZe,defaultWidth:"full"}),time:Ne({formats:jZe,defaultWidth:"full"}),dateTime:Ne({formats:UZe,defaultWidth:"full"})},WZe={lastWeek:"eeee 'گذشته در' p",yesterday:"'دیروز در' p",today:"'امروز در' p",tomorrow:"'فردا در' p",nextWeek:"eeee 'در' p",other:"P"},zZe=function(t,n,r,a){return WZe[t]},qZe={narrow:["ق","ب"],abbreviated:["ق.م.","ب.م."],wide:["قبل از میلاد","بعد از میلاد"]},HZe={narrow:["1","2","3","4"],abbreviated:["س‌م1","س‌م2","س‌م3","س‌م4"],wide:["سه‌ماهه 1","سه‌ماهه 2","سه‌ماهه 3","سه‌ماهه 4"]},VZe={narrow:["ژ","ف","م","آ","م","ج","ج","آ","س","ا","ن","د"],abbreviated:["ژانـ","فور","مارس","آپر","می","جون","جولـ","آگو","سپتـ","اکتـ","نوامـ","دسامـ"],wide:["ژانویه","فوریه","مارس","آپریل","می","جون","جولای","آگوست","سپتامبر","اکتبر","نوامبر","دسامبر"]},GZe={narrow:["ی","د","س","چ","پ","ج","ش"],short:["1ش","2ش","3ش","4ش","5ش","ج","ش"],abbreviated:["یکشنبه","دوشنبه","سه‌شنبه","چهارشنبه","پنجشنبه","جمعه","شنبه"],wide:["یکشنبه","دوشنبه","سه‌شنبه","چهارشنبه","پنجشنبه","جمعه","شنبه"]},YZe={narrow:{am:"ق",pm:"ب",midnight:"ن",noon:"ظ",morning:"ص",afternoon:"ب.ظ.",evening:"ع",night:"ش"},abbreviated:{am:"ق.ظ.",pm:"ب.ظ.",midnight:"نیمه‌شب",noon:"ظهر",morning:"صبح",afternoon:"بعدازظهر",evening:"عصر",night:"شب"},wide:{am:"قبل‌ازظهر",pm:"بعدازظهر",midnight:"نیمه‌شب",noon:"ظهر",morning:"صبح",afternoon:"بعدازظهر",evening:"عصر",night:"شب"}},KZe={narrow:{am:"ق",pm:"ب",midnight:"ن",noon:"ظ",morning:"ص",afternoon:"ب.ظ.",evening:"ع",night:"ش"},abbreviated:{am:"ق.ظ.",pm:"ب.ظ.",midnight:"نیمه‌شب",noon:"ظهر",morning:"صبح",afternoon:"بعدازظهر",evening:"عصر",night:"شب"},wide:{am:"قبل‌ازظهر",pm:"بعدازظهر",midnight:"نیمه‌شب",noon:"ظهر",morning:"صبح",afternoon:"بعدازظهر",evening:"عصر",night:"شب"}},XZe=function(t,n){return String(t)},QZe={ordinalNumber:XZe,era:oe({values:qZe,defaultWidth:"wide"}),quarter:oe({values:HZe,defaultWidth:"wide",argumentCallback:function(t){return t-1}}),month:oe({values:VZe,defaultWidth:"wide"}),day:oe({values:GZe,defaultWidth:"wide"}),dayPeriod:oe({values:YZe,defaultWidth:"wide",formattingValues:KZe,defaultFormattingWidth:"wide"})},JZe=/^(\d+)(th|st|nd|rd)?/i,ZZe=/\d+/i,eet={narrow:/^(ق|ب)/i,abbreviated:/^(ق\.?\s?م\.?|ق\.?\s?د\.?\s?م\.?|م\.?\s?|د\.?\s?م\.?)/i,wide:/^(قبل از میلاد|قبل از دوران مشترک|میلادی|دوران مشترک|بعد از میلاد)/i},tet={any:[/^قبل/i,/^بعد/i]},net={narrow:/^[1234]/i,abbreviated:/^س‌م[1234]/i,wide:/^سه‌ماهه [1234]/i},ret={any:[/1/i,/2/i,/3/i,/4/i]},aet={narrow:/^[جژفمآاماسند]/i,abbreviated:/^(جنو|ژانـ|ژانویه|فوریه|فور|مارس|آوریل|آپر|مه|می|ژوئن|جون|جول|جولـ|ژوئیه|اوت|آگو|سپتمبر|سپتامبر|اکتبر|اکتوبر|نوامبر|نوامـ|دسامبر|دسامـ|دسم)/i,wide:/^(ژانویه|جنوری|فبروری|فوریه|مارچ|مارس|آپریل|اپریل|ایپریل|آوریل|مه|می|ژوئن|جون|جولای|ژوئیه|آگست|اگست|آگوست|اوت|سپتمبر|سپتامبر|اکتبر|اکتوبر|نوامبر|نومبر|دسامبر|دسمبر)/i},iet={narrow:[/^(ژ|ج)/i,/^ف/i,/^م/i,/^(آ|ا)/i,/^م/i,/^(ژ|ج)/i,/^(ج|ژ)/i,/^(آ|ا)/i,/^س/i,/^ا/i,/^ن/i,/^د/i],any:[/^ژا/i,/^ف/i,/^ما/i,/^آپ/i,/^(می|مه)/i,/^(ژوئن|جون)/i,/^(ژوئی|جول)/i,/^(اوت|آگ)/i,/^س/i,/^(اوک|اک)/i,/^ن/i,/^د/i]},oet={narrow:/^[شیدسچپج]/i,short:/^(ش|ج|1ش|2ش|3ش|4ش|5ش)/i,abbreviated:/^(یکشنبه|دوشنبه|سه‌شنبه|چهارشنبه|پنج‌شنبه|جمعه|شنبه)/i,wide:/^(یکشنبه|دوشنبه|سه‌شنبه|چهارشنبه|پنج‌شنبه|جمعه|شنبه)/i},set={narrow:[/^ی/i,/^دو/i,/^س/i,/^چ/i,/^پ/i,/^ج/i,/^ش/i],any:[/^(ی|1ش|یکشنبه)/i,/^(د|2ش|دوشنبه)/i,/^(س|3ش|سه‌شنبه)/i,/^(چ|4ش|چهارشنبه)/i,/^(پ|5ش|پنجشنبه)/i,/^(ج|جمعه)/i,/^(ش|شنبه)/i]},uet={narrow:/^(ب|ق|ن|ظ|ص|ب.ظ.|ع|ش)/i,abbreviated:/^(ق.ظ.|ب.ظ.|نیمه‌شب|ظهر|صبح|بعدازظهر|عصر|شب)/i,wide:/^(قبل‌ازظهر|نیمه‌شب|ظهر|صبح|بعدازظهر|عصر|شب)/i},cet={any:{am:/^(ق|ق.ظ.|قبل‌ازظهر)/i,pm:/^(ب|ب.ظ.|بعدازظهر)/i,midnight:/^(‌نیمه‌شب|ن)/i,noon:/^(ظ|ظهر)/i,morning:/(ص|صبح)/i,afternoon:/(ب|ب.ظ.|بعدازظهر)/i,evening:/(ع|عصر)/i,night:/(ش|شب)/i}},det={ordinalNumber:Xt({matchPattern:JZe,parsePattern:ZZe,valueCallback:function(t){return parseInt(t,10)}}),era:se({matchPatterns:eet,defaultMatchWidth:"wide",parsePatterns:tet,defaultParseWidth:"any"}),quarter:se({matchPatterns:net,defaultMatchWidth:"wide",parsePatterns:ret,defaultParseWidth:"any",valueCallback:function(t){return t+1}}),month:se({matchPatterns:aet,defaultMatchWidth:"wide",parsePatterns:iet,defaultParseWidth:"any"}),day:se({matchPatterns:oet,defaultMatchWidth:"wide",parsePatterns:set,defaultParseWidth:"any"}),dayPeriod:se({matchPatterns:uet,defaultMatchWidth:"wide",parsePatterns:cet,defaultParseWidth:"any"})},fet={code:"fa-IR",formatDistance:LZe,formatLong:BZe,formatRelative:zZe,localize:QZe,match:det,options:{weekStartsOn:6,firstWeekContainsDate:1}};const pet=Object.freeze(Object.defineProperty({__proto__:null,default:fet},Symbol.toStringTag,{value:"Module"})),het=jt(pet);function fY(e){return e.replace(/sekuntia?/,"sekunnin")}function pY(e){return e.replace(/minuuttia?/,"minuutin")}function hY(e){return e.replace(/tuntia?/,"tunnin")}function met(e){return e.replace(/päivää?/,"päivän")}function mY(e){return e.replace(/(viikko|viikkoa)/,"viikon")}function gY(e){return e.replace(/(kuukausi|kuukautta)/,"kuukauden")}function Jk(e){return e.replace(/(vuosi|vuotta)/,"vuoden")}var get={lessThanXSeconds:{one:"alle sekunti",other:"alle {{count}} sekuntia",futureTense:fY},xSeconds:{one:"sekunti",other:"{{count}} sekuntia",futureTense:fY},halfAMinute:{one:"puoli minuuttia",other:"puoli minuuttia",futureTense:function(t){return"puolen minuutin"}},lessThanXMinutes:{one:"alle minuutti",other:"alle {{count}} minuuttia",futureTense:pY},xMinutes:{one:"minuutti",other:"{{count}} minuuttia",futureTense:pY},aboutXHours:{one:"noin tunti",other:"noin {{count}} tuntia",futureTense:hY},xHours:{one:"tunti",other:"{{count}} tuntia",futureTense:hY},xDays:{one:"päivä",other:"{{count}} päivää",futureTense:met},aboutXWeeks:{one:"noin viikko",other:"noin {{count}} viikkoa",futureTense:mY},xWeeks:{one:"viikko",other:"{{count}} viikkoa",futureTense:mY},aboutXMonths:{one:"noin kuukausi",other:"noin {{count}} kuukautta",futureTense:gY},xMonths:{one:"kuukausi",other:"{{count}} kuukautta",futureTense:gY},aboutXYears:{one:"noin vuosi",other:"noin {{count}} vuotta",futureTense:Jk},xYears:{one:"vuosi",other:"{{count}} vuotta",futureTense:Jk},overXYears:{one:"yli vuosi",other:"yli {{count}} vuotta",futureTense:Jk},almostXYears:{one:"lähes vuosi",other:"lähes {{count}} vuotta",futureTense:Jk}},vet=function(t,n,r){var a=get[t],i=n===1?a.one:a.other.replace("{{count}}",String(n));return r!=null&&r.addSuffix?r.comparison&&r.comparison>0?a.futureTense(i)+" kuluttua":i+" sitten":i},yet={full:"eeee d. MMMM y",long:"d. MMMM y",medium:"d. MMM y",short:"d.M.y"},bet={full:"HH.mm.ss zzzz",long:"HH.mm.ss z",medium:"HH.mm.ss",short:"HH.mm"},wet={full:"{{date}} 'klo' {{time}}",long:"{{date}} 'klo' {{time}}",medium:"{{date}} {{time}}",short:"{{date}} {{time}}"},Eet={date:Ne({formats:yet,defaultWidth:"full"}),time:Ne({formats:bet,defaultWidth:"full"}),dateTime:Ne({formats:wet,defaultWidth:"full"})},Tet={lastWeek:"'viime' eeee 'klo' p",yesterday:"'eilen klo' p",today:"'tänään klo' p",tomorrow:"'huomenna klo' p",nextWeek:"'ensi' eeee 'klo' p",other:"P"},Cet=function(t,n,r,a){return Tet[t]},ket={narrow:["eaa.","jaa."],abbreviated:["eaa.","jaa."],wide:["ennen ajanlaskun alkua","jälkeen ajanlaskun alun"]},xet={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1. kvartaali","2. kvartaali","3. kvartaali","4. kvartaali"]},pF={narrow:["T","H","M","H","T","K","H","E","S","L","M","J"],abbreviated:["tammi","helmi","maalis","huhti","touko","kesä","heinä","elo","syys","loka","marras","joulu"],wide:["tammikuu","helmikuu","maaliskuu","huhtikuu","toukokuu","kesäkuu","heinäkuu","elokuu","syyskuu","lokakuu","marraskuu","joulukuu"]},_et={narrow:pF.narrow,abbreviated:pF.abbreviated,wide:["tammikuuta","helmikuuta","maaliskuuta","huhtikuuta","toukokuuta","kesäkuuta","heinäkuuta","elokuuta","syyskuuta","lokakuuta","marraskuuta","joulukuuta"]},Tx={narrow:["S","M","T","K","T","P","L"],short:["su","ma","ti","ke","to","pe","la"],abbreviated:["sunn.","maan.","tiis.","kesk.","torst.","perj.","la"],wide:["sunnuntai","maanantai","tiistai","keskiviikko","torstai","perjantai","lauantai"]},Oet={narrow:Tx.narrow,short:Tx.short,abbreviated:Tx.abbreviated,wide:["sunnuntaina","maanantaina","tiistaina","keskiviikkona","torstaina","perjantaina","lauantaina"]},Ret={narrow:{am:"ap",pm:"ip",midnight:"keskiyö",noon:"keskipäivä",morning:"ap",afternoon:"ip",evening:"illalla",night:"yöllä"},abbreviated:{am:"ap",pm:"ip",midnight:"keskiyö",noon:"keskipäivä",morning:"ap",afternoon:"ip",evening:"illalla",night:"yöllä"},wide:{am:"ap",pm:"ip",midnight:"keskiyöllä",noon:"keskipäivällä",morning:"aamupäivällä",afternoon:"iltapäivällä",evening:"illalla",night:"yöllä"}},Pet=function(t,n){var r=Number(t);return r+"."},Aet={ordinalNumber:Pet,era:oe({values:ket,defaultWidth:"wide"}),quarter:oe({values:xet,defaultWidth:"wide",argumentCallback:function(t){return t-1}}),month:oe({values:pF,defaultWidth:"wide",formattingValues:_et,defaultFormattingWidth:"wide"}),day:oe({values:Tx,defaultWidth:"wide",formattingValues:Oet,defaultFormattingWidth:"wide"}),dayPeriod:oe({values:Ret,defaultWidth:"wide"})},Net=/^(\d+)(\.)/i,Met=/\d+/i,Iet={narrow:/^(e|j)/i,abbreviated:/^(eaa.|jaa.)/i,wide:/^(ennen ajanlaskun alkua|jälkeen ajanlaskun alun)/i},Det={any:[/^e/i,/^j/i]},$et={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234]\.? kvartaali/i},Let={any:[/1/i,/2/i,/3/i,/4/i]},Fet={narrow:/^[thmkeslj]/i,abbreviated:/^(tammi|helmi|maalis|huhti|touko|kesä|heinä|elo|syys|loka|marras|joulu)/i,wide:/^(tammikuu|helmikuu|maaliskuu|huhtikuu|toukokuu|kesäkuu|heinäkuu|elokuu|syyskuu|lokakuu|marraskuu|joulukuu)(ta)?/i},jet={narrow:[/^t/i,/^h/i,/^m/i,/^h/i,/^t/i,/^k/i,/^h/i,/^e/i,/^s/i,/^l/i,/^m/i,/^j/i],any:[/^ta/i,/^hel/i,/^maa/i,/^hu/i,/^to/i,/^k/i,/^hei/i,/^e/i,/^s/i,/^l/i,/^mar/i,/^j/i]},Uet={narrow:/^[smtkpl]/i,short:/^(su|ma|ti|ke|to|pe|la)/i,abbreviated:/^(sunn.|maan.|tiis.|kesk.|torst.|perj.|la)/i,wide:/^(sunnuntai|maanantai|tiistai|keskiviikko|torstai|perjantai|lauantai)(na)?/i},Bet={narrow:[/^s/i,/^m/i,/^t/i,/^k/i,/^t/i,/^p/i,/^l/i],any:[/^s/i,/^m/i,/^ti/i,/^k/i,/^to/i,/^p/i,/^l/i]},Wet={narrow:/^(ap|ip|keskiyö|keskipäivä|aamupäivällä|iltapäivällä|illalla|yöllä)/i,any:/^(ap|ip|keskiyöllä|keskipäivällä|aamupäivällä|iltapäivällä|illalla|yöllä)/i},zet={any:{am:/^ap/i,pm:/^ip/i,midnight:/^keskiyö/i,noon:/^keskipäivä/i,morning:/aamupäivällä/i,afternoon:/iltapäivällä/i,evening:/illalla/i,night:/yöllä/i}},qet={ordinalNumber:Xt({matchPattern:Net,parsePattern:Met,valueCallback:function(t){return parseInt(t,10)}}),era:se({matchPatterns:Iet,defaultMatchWidth:"wide",parsePatterns:Det,defaultParseWidth:"any"}),quarter:se({matchPatterns:$et,defaultMatchWidth:"wide",parsePatterns:Let,defaultParseWidth:"any",valueCallback:function(t){return t+1}}),month:se({matchPatterns:Fet,defaultMatchWidth:"wide",parsePatterns:jet,defaultParseWidth:"any"}),day:se({matchPatterns:Uet,defaultMatchWidth:"wide",parsePatterns:Bet,defaultParseWidth:"any"}),dayPeriod:se({matchPatterns:Wet,defaultMatchWidth:"any",parsePatterns:zet,defaultParseWidth:"any"})},Het={code:"fi",formatDistance:vet,formatLong:Eet,formatRelative:Cet,localize:Aet,match:qet,options:{weekStartsOn:1,firstWeekContainsDate:4}};const Vet=Object.freeze(Object.defineProperty({__proto__:null,default:Het},Symbol.toStringTag,{value:"Module"})),Get=jt(Vet);var Yet={lessThanXSeconds:{one:"moins d’une seconde",other:"moins de {{count}} secondes"},xSeconds:{one:"1 seconde",other:"{{count}} secondes"},halfAMinute:"30 secondes",lessThanXMinutes:{one:"moins d’une minute",other:"moins de {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"environ 1 heure",other:"environ {{count}} heures"},xHours:{one:"1 heure",other:"{{count}} heures"},xDays:{one:"1 jour",other:"{{count}} jours"},aboutXWeeks:{one:"environ 1 semaine",other:"environ {{count}} semaines"},xWeeks:{one:"1 semaine",other:"{{count}} semaines"},aboutXMonths:{one:"environ 1 mois",other:"environ {{count}} mois"},xMonths:{one:"1 mois",other:"{{count}} mois"},aboutXYears:{one:"environ 1 an",other:"environ {{count}} ans"},xYears:{one:"1 an",other:"{{count}} ans"},overXYears:{one:"plus d’un an",other:"plus de {{count}} ans"},almostXYears:{one:"presqu’un an",other:"presque {{count}} ans"}},lie=function(t,n,r){var a,i=Yet[t];return typeof i=="string"?a=i:n===1?a=i.one:a=i.other.replace("{{count}}",String(n)),r!=null&&r.addSuffix?r.comparison&&r.comparison>0?"dans "+a:"il y a "+a:a},Ket={full:"EEEE d MMMM y",long:"d MMMM y",medium:"d MMM y",short:"dd/MM/y"},Xet={full:"HH:mm:ss zzzz",long:"HH:mm:ss z",medium:"HH:mm:ss",short:"HH:mm"},Qet={full:"{{date}} 'à' {{time}}",long:"{{date}} 'à' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},Jet={date:Ne({formats:Ket,defaultWidth:"full"}),time:Ne({formats:Xet,defaultWidth:"full"}),dateTime:Ne({formats:Qet,defaultWidth:"full"})},Zet={lastWeek:"eeee 'dernier à' p",yesterday:"'hier à' p",today:"'aujourd’hui à' p",tomorrow:"'demain à' p'",nextWeek:"eeee 'prochain à' p",other:"P"},uie=function(t,n,r,a){return Zet[t]},ett={narrow:["av. J.-C","ap. J.-C"],abbreviated:["av. J.-C","ap. J.-C"],wide:["avant Jésus-Christ","après Jésus-Christ"]},ttt={narrow:["T1","T2","T3","T4"],abbreviated:["1er trim.","2ème trim.","3ème trim.","4ème trim."],wide:["1er trimestre","2ème trimestre","3ème trimestre","4ème trimestre"]},ntt={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["janv.","févr.","mars","avr.","mai","juin","juil.","août","sept.","oct.","nov.","déc."],wide:["janvier","février","mars","avril","mai","juin","juillet","août","septembre","octobre","novembre","décembre"]},rtt={narrow:["D","L","M","M","J","V","S"],short:["di","lu","ma","me","je","ve","sa"],abbreviated:["dim.","lun.","mar.","mer.","jeu.","ven.","sam."],wide:["dimanche","lundi","mardi","mercredi","jeudi","vendredi","samedi"]},att={narrow:{am:"AM",pm:"PM",midnight:"minuit",noon:"midi",morning:"mat.",afternoon:"ap.m.",evening:"soir",night:"mat."},abbreviated:{am:"AM",pm:"PM",midnight:"minuit",noon:"midi",morning:"matin",afternoon:"après-midi",evening:"soir",night:"matin"},wide:{am:"AM",pm:"PM",midnight:"minuit",noon:"midi",morning:"du matin",afternoon:"de l’après-midi",evening:"du soir",night:"du matin"}},itt=function(t,n){var r=Number(t),a=n==null?void 0:n.unit;if(r===0)return"0";var i=["year","week","hour","minute","second"],o;return r===1?o=a&&i.includes(a)?"ère":"er":o="ème",r+o},cie={ordinalNumber:itt,era:oe({values:ett,defaultWidth:"wide"}),quarter:oe({values:ttt,defaultWidth:"wide",argumentCallback:function(t){return t-1}}),month:oe({values:ntt,defaultWidth:"wide"}),day:oe({values:rtt,defaultWidth:"wide"}),dayPeriod:oe({values:att,defaultWidth:"wide"})},ott=/^(\d+)(ième|ère|ème|er|e)?/i,stt=/\d+/i,ltt={narrow:/^(av\.J\.C|ap\.J\.C|ap\.J\.-C)/i,abbreviated:/^(av\.J\.-C|av\.J-C|apr\.J\.-C|apr\.J-C|ap\.J-C)/i,wide:/^(avant Jésus-Christ|après Jésus-Christ)/i},utt={any:[/^av/i,/^ap/i]},ctt={narrow:/^T?[1234]/i,abbreviated:/^[1234](er|ème|e)? trim\.?/i,wide:/^[1234](er|ème|e)? trimestre/i},dtt={any:[/1/i,/2/i,/3/i,/4/i]},ftt={narrow:/^[jfmasond]/i,abbreviated:/^(janv|févr|mars|avr|mai|juin|juill|juil|août|sept|oct|nov|déc)\.?/i,wide:/^(janvier|février|mars|avril|mai|juin|juillet|août|septembre|octobre|novembre|décembre)/i},ptt={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^av/i,/^ma/i,/^juin/i,/^juil/i,/^ao/i,/^s/i,/^o/i,/^n/i,/^d/i]},htt={narrow:/^[lmjvsd]/i,short:/^(di|lu|ma|me|je|ve|sa)/i,abbreviated:/^(dim|lun|mar|mer|jeu|ven|sam)\.?/i,wide:/^(dimanche|lundi|mardi|mercredi|jeudi|vendredi|samedi)/i},mtt={narrow:[/^d/i,/^l/i,/^m/i,/^m/i,/^j/i,/^v/i,/^s/i],any:[/^di/i,/^lu/i,/^ma/i,/^me/i,/^je/i,/^ve/i,/^sa/i]},gtt={narrow:/^(a|p|minuit|midi|mat\.?|ap\.?m\.?|soir|nuit)/i,any:/^([ap]\.?\s?m\.?|du matin|de l'après[-\s]midi|du soir|de la nuit)/i},vtt={any:{am:/^a/i,pm:/^p/i,midnight:/^min/i,noon:/^mid/i,morning:/mat/i,afternoon:/ap/i,evening:/soir/i,night:/nuit/i}},die={ordinalNumber:Xt({matchPattern:ott,parsePattern:stt,valueCallback:function(t){return parseInt(t)}}),era:se({matchPatterns:ltt,defaultMatchWidth:"wide",parsePatterns:utt,defaultParseWidth:"any"}),quarter:se({matchPatterns:ctt,defaultMatchWidth:"wide",parsePatterns:dtt,defaultParseWidth:"any",valueCallback:function(t){return t+1}}),month:se({matchPatterns:ftt,defaultMatchWidth:"wide",parsePatterns:ptt,defaultParseWidth:"any"}),day:se({matchPatterns:htt,defaultMatchWidth:"wide",parsePatterns:mtt,defaultParseWidth:"any"}),dayPeriod:se({matchPatterns:gtt,defaultMatchWidth:"any",parsePatterns:vtt,defaultParseWidth:"any"})},ytt={code:"fr",formatDistance:lie,formatLong:Jet,formatRelative:uie,localize:cie,match:die,options:{weekStartsOn:1,firstWeekContainsDate:4}};const btt=Object.freeze(Object.defineProperty({__proto__:null,default:ytt},Symbol.toStringTag,{value:"Module"})),wtt=jt(btt);var Stt={full:"EEEE d MMMM y",long:"d MMMM y",medium:"d MMM y",short:"yy-MM-dd"},Ett={full:"HH:mm:ss zzzz",long:"HH:mm:ss z",medium:"HH:mm:ss",short:"HH:mm"},Ttt={full:"{{date}} 'à' {{time}}",long:"{{date}} 'à' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},Ctt={date:Ne({formats:Stt,defaultWidth:"full"}),time:Ne({formats:Ett,defaultWidth:"full"}),dateTime:Ne({formats:Ttt,defaultWidth:"full"})},ktt={code:"fr-CA",formatDistance:lie,formatLong:Ctt,formatRelative:uie,localize:cie,match:die,options:{weekStartsOn:0,firstWeekContainsDate:1}};const xtt=Object.freeze(Object.defineProperty({__proto__:null,default:ktt},Symbol.toStringTag,{value:"Module"})),_tt=jt(xtt);var Ott={lessThanXSeconds:{one:"menos dun segundo",other:"menos de {{count}} segundos"},xSeconds:{one:"1 segundo",other:"{{count}} segundos"},halfAMinute:"medio minuto",lessThanXMinutes:{one:"menos dun minuto",other:"menos de {{count}} minutos"},xMinutes:{one:"1 minuto",other:"{{count}} minutos"},aboutXHours:{one:"arredor dunha hora",other:"arredor de {{count}} horas"},xHours:{one:"1 hora",other:"{{count}} horas"},xDays:{one:"1 día",other:"{{count}} días"},aboutXWeeks:{one:"arredor dunha semana",other:"arredor de {{count}} semanas"},xWeeks:{one:"1 semana",other:"{{count}} semanas"},aboutXMonths:{one:"arredor de 1 mes",other:"arredor de {{count}} meses"},xMonths:{one:"1 mes",other:"{{count}} meses"},aboutXYears:{one:"arredor dun ano",other:"arredor de {{count}} anos"},xYears:{one:"1 ano",other:"{{count}} anos"},overXYears:{one:"máis dun ano",other:"máis de {{count}} anos"},almostXYears:{one:"case un ano",other:"case {{count}} anos"}},Rtt=function(t,n,r){var a,i=Ott[t];return typeof i=="string"?a=i:n===1?a=i.one:a=i.other.replace("{{count}}",String(n)),r!=null&&r.addSuffix?r.comparison&&r.comparison>0?"en "+a:"hai "+a:a},Ptt={full:"EEEE, d 'de' MMMM y",long:"d 'de' MMMM y",medium:"d MMM y",short:"dd/MM/y"},Att={full:"HH:mm:ss zzzz",long:"HH:mm:ss z",medium:"HH:mm:ss",short:"HH:mm"},Ntt={full:"{{date}} 'ás' {{time}}",long:"{{date}} 'ás' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},Mtt={date:Ne({formats:Ptt,defaultWidth:"full"}),time:Ne({formats:Att,defaultWidth:"full"}),dateTime:Ne({formats:Ntt,defaultWidth:"full"})},Itt={lastWeek:"'o' eeee 'pasado á' LT",yesterday:"'onte á' p",today:"'hoxe á' p",tomorrow:"'mañá á' p",nextWeek:"eeee 'á' p",other:"P"},Dtt={lastWeek:"'o' eeee 'pasado ás' p",yesterday:"'onte ás' p",today:"'hoxe ás' p",tomorrow:"'mañá ás' p",nextWeek:"eeee 'ás' p",other:"P"},$tt=function(t,n,r,a){return n.getUTCHours()!==1?Dtt[t]:Itt[t]},Ltt={narrow:["AC","DC"],abbreviated:["AC","DC"],wide:["antes de cristo","despois de cristo"]},Ftt={narrow:["1","2","3","4"],abbreviated:["T1","T2","T3","T4"],wide:["1º trimestre","2º trimestre","3º trimestre","4º trimestre"]},jtt={narrow:["e","f","m","a","m","j","j","a","s","o","n","d"],abbreviated:["xan","feb","mar","abr","mai","xun","xul","ago","set","out","nov","dec"],wide:["xaneiro","febreiro","marzo","abril","maio","xuño","xullo","agosto","setembro","outubro","novembro","decembro"]},Utt={narrow:["d","l","m","m","j","v","s"],short:["do","lu","ma","me","xo","ve","sa"],abbreviated:["dom","lun","mar","mer","xov","ven","sab"],wide:["domingo","luns","martes","mércores","xoves","venres","sábado"]},Btt={narrow:{am:"a",pm:"p",midnight:"mn",noon:"md",morning:"mañá",afternoon:"tarde",evening:"tarde",night:"noite"},abbreviated:{am:"AM",pm:"PM",midnight:"medianoite",noon:"mediodía",morning:"mañá",afternoon:"tarde",evening:"tardiña",night:"noite"},wide:{am:"a.m.",pm:"p.m.",midnight:"medianoite",noon:"mediodía",morning:"mañá",afternoon:"tarde",evening:"tardiña",night:"noite"}},Wtt={narrow:{am:"a",pm:"p",midnight:"mn",noon:"md",morning:"da mañá",afternoon:"da tarde",evening:"da tardiña",night:"da noite"},abbreviated:{am:"AM",pm:"PM",midnight:"medianoite",noon:"mediodía",morning:"da mañá",afternoon:"da tarde",evening:"da tardiña",night:"da noite"},wide:{am:"a.m.",pm:"p.m.",midnight:"medianoite",noon:"mediodía",morning:"da mañá",afternoon:"da tarde",evening:"da tardiña",night:"da noite"}},ztt=function(t,n){var r=Number(t);return r+"º"},qtt={ordinalNumber:ztt,era:oe({values:Ltt,defaultWidth:"wide"}),quarter:oe({values:Ftt,defaultWidth:"wide",argumentCallback:function(t){return t-1}}),month:oe({values:jtt,defaultWidth:"wide"}),day:oe({values:Utt,defaultWidth:"wide"}),dayPeriod:oe({values:Btt,defaultWidth:"wide",formattingValues:Wtt,defaultFormattingWidth:"wide"})},Htt=/^(\d+)(º)?/i,Vtt=/\d+/i,Gtt={narrow:/^(ac|dc|a|d)/i,abbreviated:/^(a\.?\s?c\.?|a\.?\s?e\.?\s?c\.?|d\.?\s?c\.?|e\.?\s?c\.?)/i,wide:/^(antes de cristo|antes da era com[uú]n|despois de cristo|era com[uú]n)/i},Ytt={any:[/^ac/i,/^dc/i],wide:[/^(antes de cristo|antes da era com[uú]n)/i,/^(despois de cristo|era com[uú]n)/i]},Ktt={narrow:/^[1234]/i,abbreviated:/^T[1234]/i,wide:/^[1234](º)? trimestre/i},Xtt={any:[/1/i,/2/i,/3/i,/4/i]},Qtt={narrow:/^[xfmasond]/i,abbreviated:/^(xan|feb|mar|abr|mai|xun|xul|ago|set|out|nov|dec)/i,wide:/^(xaneiro|febreiro|marzo|abril|maio|xuño|xullo|agosto|setembro|outubro|novembro|decembro)/i},Jtt={narrow:[/^x/i,/^f/i,/^m/i,/^a/i,/^m/i,/^x/i,/^x/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^xan/i,/^feb/i,/^mar/i,/^abr/i,/^mai/i,/^xun/i,/^xul/i,/^ago/i,/^set/i,/^out/i,/^nov/i,/^dec/i]},Ztt={narrow:/^[dlmxvs]/i,short:/^(do|lu|ma|me|xo|ve|sa)/i,abbreviated:/^(dom|lun|mar|mer|xov|ven|sab)/i,wide:/^(domingo|luns|martes|m[eé]rcores|xoves|venres|s[áa]bado)/i},ent={narrow:[/^d/i,/^l/i,/^m/i,/^m/i,/^x/i,/^v/i,/^s/i],any:[/^do/i,/^lu/i,/^ma/i,/^me/i,/^xo/i,/^ve/i,/^sa/i]},tnt={narrow:/^(a|p|mn|md|(da|[aá]s) (mañ[aá]|tarde|noite))/i,any:/^([ap]\.?\s?m\.?|medianoite|mediod[ií]a|(da|[aá]s) (mañ[aá]|tarde|noite))/i},nnt={any:{am:/^a/i,pm:/^p/i,midnight:/^mn/i,noon:/^md/i,morning:/mañ[aá]/i,afternoon:/tarde/i,evening:/tardiña/i,night:/noite/i}},rnt={ordinalNumber:Xt({matchPattern:Htt,parsePattern:Vtt,valueCallback:function(t){return parseInt(t,10)}}),era:se({matchPatterns:Gtt,defaultMatchWidth:"wide",parsePatterns:Ytt,defaultParseWidth:"any"}),quarter:se({matchPatterns:Ktt,defaultMatchWidth:"wide",parsePatterns:Xtt,defaultParseWidth:"any",valueCallback:function(t){return t+1}}),month:se({matchPatterns:Qtt,defaultMatchWidth:"wide",parsePatterns:Jtt,defaultParseWidth:"any"}),day:se({matchPatterns:Ztt,defaultMatchWidth:"wide",parsePatterns:ent,defaultParseWidth:"any"}),dayPeriod:se({matchPatterns:tnt,defaultMatchWidth:"any",parsePatterns:nnt,defaultParseWidth:"any"})},ant={code:"gl",formatDistance:Rtt,formatLong:Mtt,formatRelative:$tt,localize:qtt,match:rnt,options:{weekStartsOn:1,firstWeekContainsDate:1}};const int=Object.freeze(Object.defineProperty({__proto__:null,default:ant},Symbol.toStringTag,{value:"Module"})),ont=jt(int);var snt={lessThanXSeconds:{one:"હમણાં",other:"​આશરે {{count}} સેકંડ"},xSeconds:{one:"1 સેકંડ",other:"{{count}} સેકંડ"},halfAMinute:"અડધી મિનિટ",lessThanXMinutes:{one:"આ મિનિટ",other:"​આશરે {{count}} મિનિટ"},xMinutes:{one:"1 મિનિટ",other:"{{count}} મિનિટ"},aboutXHours:{one:"​આશરે 1 કલાક",other:"​આશરે {{count}} કલાક"},xHours:{one:"1 કલાક",other:"{{count}} કલાક"},xDays:{one:"1 દિવસ",other:"{{count}} દિવસ"},aboutXWeeks:{one:"આશરે 1 અઠવાડિયું",other:"આશરે {{count}} અઠવાડિયા"},xWeeks:{one:"1 અઠવાડિયું",other:"{{count}} અઠવાડિયા"},aboutXMonths:{one:"આશરે 1 મહિનો",other:"આશરે {{count}} મહિના"},xMonths:{one:"1 મહિનો",other:"{{count}} મહિના"},aboutXYears:{one:"આશરે 1 વર્ષ",other:"આશરે {{count}} વર્ષ"},xYears:{one:"1 વર્ષ",other:"{{count}} વર્ષ"},overXYears:{one:"1 વર્ષથી વધુ",other:"{{count}} વર્ષથી વધુ"},almostXYears:{one:"લગભગ 1 વર્ષ",other:"લગભગ {{count}} વર્ષ"}},lnt=function(t,n,r){var a,i=snt[t];return typeof i=="string"?a=i:n===1?a=i.one:a=i.other.replace("{{count}}",String(n)),r!=null&&r.addSuffix?r.comparison&&r.comparison>0?a+"માં":a+" પહેલાં":a},unt={full:"EEEE, d MMMM, y",long:"d MMMM, y",medium:"d MMM, y",short:"d/M/yy"},cnt={full:"hh:mm:ss a zzzz",long:"hh:mm:ss a z",medium:"hh:mm:ss a",short:"hh:mm a"},dnt={full:"{{date}} {{time}}",long:"{{date}} {{time}}",medium:"{{date}} {{time}}",short:"{{date}} {{time}}"},fnt={date:Ne({formats:unt,defaultWidth:"full"}),time:Ne({formats:cnt,defaultWidth:"full"}),dateTime:Ne({formats:dnt,defaultWidth:"full"})},pnt={lastWeek:"'પાછલા' eeee p",yesterday:"'ગઈકાલે' p",today:"'આજે' p",tomorrow:"'આવતીકાલે' p",nextWeek:"eeee p",other:"P"},hnt=function(t,n,r,a){return pnt[t]},mnt={narrow:["ઈસપૂ","ઈસ"],abbreviated:["ઈ.સ.પૂર્વે","ઈ.સ."],wide:["ઈસવીસન પૂર્વે","ઈસવીસન"]},gnt={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1લો ત્રિમાસ","2જો ત્રિમાસ","3જો ત્રિમાસ","4થો ત્રિમાસ"]},vnt={narrow:["જા","ફે","મા","એ","મે","જૂ","જુ","ઓ","સ","ઓ","ન","ડિ"],abbreviated:["જાન્યુ","ફેબ્રુ","માર્ચ","એપ્રિલ","મે","જૂન","જુલાઈ","ઑગસ્ટ","સપ્ટે","ઓક્ટો","નવે","ડિસે"],wide:["જાન્યુઆરી","ફેબ્રુઆરી","માર્ચ","એપ્રિલ","મે","જૂન","જુલાઇ","ઓગસ્ટ","સપ્ટેમ્બર","ઓક્ટોબર","નવેમ્બર","ડિસેમ્બર"]},ynt={narrow:["ર","સો","મં","બુ","ગુ","શુ","શ"],short:["ર","સો","મં","બુ","ગુ","શુ","શ"],abbreviated:["રવિ","સોમ","મંગળ","બુધ","ગુરુ","શુક્ર","શનિ"],wide:["રવિવાર","સોમવાર","મંગળવાર","બુધવાર","ગુરુવાર","શુક્રવાર","શનિવાર"]},bnt={narrow:{am:"AM",pm:"PM",midnight:"મ.રાત્રિ",noon:"બ.",morning:"સવારે",afternoon:"બપોરે",evening:"સાંજે",night:"રાત્રે"},abbreviated:{am:"AM",pm:"PM",midnight:"​મધ્યરાત્રિ",noon:"બપોરે",morning:"સવારે",afternoon:"બપોરે",evening:"સાંજે",night:"રાત્રે"},wide:{am:"AM",pm:"PM",midnight:"​મધ્યરાત્રિ",noon:"બપોરે",morning:"સવારે",afternoon:"બપોરે",evening:"સાંજે",night:"રાત્રે"}},wnt={narrow:{am:"AM",pm:"PM",midnight:"મ.રાત્રિ",noon:"બપોરે",morning:"સવારે",afternoon:"બપોરે",evening:"સાંજે",night:"રાત્રે"},abbreviated:{am:"AM",pm:"PM",midnight:"મધ્યરાત્રિ",noon:"બપોરે",morning:"સવારે",afternoon:"બપોરે",evening:"સાંજે",night:"રાત્રે"},wide:{am:"AM",pm:"PM",midnight:"​મધ્યરાત્રિ",noon:"બપોરે",morning:"સવારે",afternoon:"બપોરે",evening:"સાંજે",night:"રાત્રે"}},Snt=function(t,n){return String(t)},Ent={ordinalNumber:Snt,era:oe({values:mnt,defaultWidth:"wide"}),quarter:oe({values:gnt,defaultWidth:"wide",argumentCallback:function(t){return t-1}}),month:oe({values:vnt,defaultWidth:"wide"}),day:oe({values:ynt,defaultWidth:"wide"}),dayPeriod:oe({values:bnt,defaultWidth:"wide",formattingValues:wnt,defaultFormattingWidth:"wide"})},Tnt=/^(\d+)(લ|જ|થ|ઠ્ઠ|મ)?/i,Cnt=/\d+/i,knt={narrow:/^(ઈસપૂ|ઈસ)/i,abbreviated:/^(ઈ\.સ\.પૂર્વે|ઈ\.સ\.)/i,wide:/^(ઈસવીસન\sપૂર્વે|ઈસવીસન)/i},xnt={any:[/^ઈસપૂ/i,/^ઈસ/i]},_nt={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](લો|જો|થો)? ત્રિમાસ/i},Ont={any:[/1/i,/2/i,/3/i,/4/i]},Rnt={narrow:/^[જાફેમાએમેજૂજુઓસઓનડિ]/i,abbreviated:/^(જાન્યુ|ફેબ્રુ|માર્ચ|એપ્રિલ|મે|જૂન|જુલાઈ|ઑગસ્ટ|સપ્ટે|ઓક્ટો|નવે|ડિસે)/i,wide:/^(જાન્યુઆરી|ફેબ્રુઆરી|માર્ચ|એપ્રિલ|મે|જૂન|જુલાઇ|ઓગસ્ટ|સપ્ટેમ્બર|ઓક્ટોબર|નવેમ્બર|ડિસેમ્બર)/i},Pnt={narrow:[/^જા/i,/^ફે/i,/^મા/i,/^એ/i,/^મે/i,/^જૂ/i,/^જુ/i,/^ઑગ/i,/^સ/i,/^ઓક્ટો/i,/^ન/i,/^ડિ/i],any:[/^જા/i,/^ફે/i,/^મા/i,/^એ/i,/^મે/i,/^જૂ/i,/^જુ/i,/^ઑગ/i,/^સ/i,/^ઓક્ટો/i,/^ન/i,/^ડિ/i]},Ant={narrow:/^(ર|સો|મં|બુ|ગુ|શુ|શ)/i,short:/^(ર|સો|મં|બુ|ગુ|શુ|શ)/i,abbreviated:/^(રવિ|સોમ|મંગળ|બુધ|ગુરુ|શુક્ર|શનિ)/i,wide:/^(રવિવાર|સોમવાર|મંગળવાર|બુધવાર|ગુરુવાર|શુક્રવાર|શનિવાર)/i},Nnt={narrow:[/^ર/i,/^સો/i,/^મં/i,/^બુ/i,/^ગુ/i,/^શુ/i,/^શ/i],any:[/^ર/i,/^સો/i,/^મં/i,/^બુ/i,/^ગુ/i,/^શુ/i,/^શ/i]},Mnt={narrow:/^(a|p|મ\.?|સ|બ|સાં|રા)/i,any:/^(a|p|મ\.?|સ|બ|સાં|રા)/i},Int={any:{am:/^a/i,pm:/^p/i,midnight:/^મ\.?/i,noon:/^બ/i,morning:/સ/i,afternoon:/બ/i,evening:/સાં/i,night:/રા/i}},Dnt={ordinalNumber:Xt({matchPattern:Tnt,parsePattern:Cnt,valueCallback:function(t){return parseInt(t,10)}}),era:se({matchPatterns:knt,defaultMatchWidth:"wide",parsePatterns:xnt,defaultParseWidth:"any"}),quarter:se({matchPatterns:_nt,defaultMatchWidth:"wide",parsePatterns:Ont,defaultParseWidth:"any",valueCallback:function(t){return t+1}}),month:se({matchPatterns:Rnt,defaultMatchWidth:"wide",parsePatterns:Pnt,defaultParseWidth:"any"}),day:se({matchPatterns:Ant,defaultMatchWidth:"wide",parsePatterns:Nnt,defaultParseWidth:"any"}),dayPeriod:se({matchPatterns:Mnt,defaultMatchWidth:"any",parsePatterns:Int,defaultParseWidth:"any"})},$nt={code:"gu",formatDistance:lnt,formatLong:fnt,formatRelative:hnt,localize:Ent,match:Dnt,options:{weekStartsOn:1,firstWeekContainsDate:4}};const Lnt=Object.freeze(Object.defineProperty({__proto__:null,default:$nt},Symbol.toStringTag,{value:"Module"})),Fnt=jt(Lnt);var jnt={lessThanXSeconds:{one:"פחות משנייה",two:"פחות משתי שניות",other:"פחות מ־{{count}} שניות"},xSeconds:{one:"שנייה",two:"שתי שניות",other:"{{count}} שניות"},halfAMinute:"חצי דקה",lessThanXMinutes:{one:"פחות מדקה",two:"פחות משתי דקות",other:"פחות מ־{{count}} דקות"},xMinutes:{one:"דקה",two:"שתי דקות",other:"{{count}} דקות"},aboutXHours:{one:"כשעה",two:"כשעתיים",other:"כ־{{count}} שעות"},xHours:{one:"שעה",two:"שעתיים",other:"{{count}} שעות"},xDays:{one:"יום",two:"יומיים",other:"{{count}} ימים"},aboutXWeeks:{one:"כשבוע",two:"כשבועיים",other:"כ־{{count}} שבועות"},xWeeks:{one:"שבוע",two:"שבועיים",other:"{{count}} שבועות"},aboutXMonths:{one:"כחודש",two:"כחודשיים",other:"כ־{{count}} חודשים"},xMonths:{one:"חודש",two:"חודשיים",other:"{{count}} חודשים"},aboutXYears:{one:"כשנה",two:"כשנתיים",other:"כ־{{count}} שנים"},xYears:{one:"שנה",two:"שנתיים",other:"{{count}} שנים"},overXYears:{one:"יותר משנה",two:"יותר משנתיים",other:"יותר מ־{{count}} שנים"},almostXYears:{one:"כמעט שנה",two:"כמעט שנתיים",other:"כמעט {{count}} שנים"}},Unt=function(t,n,r){if(t==="xDays"&&r!==null&&r!==void 0&&r.addSuffix&&n<=2)return r.comparison&&r.comparison>0?n===1?"מחר":"מחרתיים":n===1?"אתמול":"שלשום";var a,i=jnt[t];return typeof i=="string"?a=i:n===1?a=i.one:n===2?a=i.two:a=i.other.replace("{{count}}",String(n)),r!=null&&r.addSuffix?r.comparison&&r.comparison>0?"בעוד "+a:"לפני "+a:a},Bnt={full:"EEEE, d בMMMM y",long:"d בMMMM y",medium:"d בMMM y",short:"d.M.y"},Wnt={full:"H:mm:ss zzzz",long:"H:mm:ss z",medium:"H:mm:ss",short:"H:mm"},znt={full:"{{date}} 'בשעה' {{time}}",long:"{{date}} 'בשעה' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},qnt={date:Ne({formats:Bnt,defaultWidth:"full"}),time:Ne({formats:Wnt,defaultWidth:"full"}),dateTime:Ne({formats:znt,defaultWidth:"full"})},Hnt={lastWeek:"eeee 'שעבר בשעה' p",yesterday:"'אתמול בשעה' p",today:"'היום בשעה' p",tomorrow:"'מחר בשעה' p",nextWeek:"eeee 'בשעה' p",other:"P"},Vnt=function(t,n,r,a){return Hnt[t]},Gnt={narrow:["לפנה״ס","לספירה"],abbreviated:["לפנה״ס","לספירה"],wide:["לפני הספירה","לספירה"]},Ynt={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["רבעון 1","רבעון 2","רבעון 3","רבעון 4"]},Knt={narrow:["1","2","3","4","5","6","7","8","9","10","11","12"],abbreviated:["ינו׳","פבר׳","מרץ","אפר׳","מאי","יוני","יולי","אוג׳","ספט׳","אוק׳","נוב׳","דצמ׳"],wide:["ינואר","פברואר","מרץ","אפריל","מאי","יוני","יולי","אוגוסט","ספטמבר","אוקטובר","נובמבר","דצמבר"]},Xnt={narrow:["א׳","ב׳","ג׳","ד׳","ה׳","ו׳","ש׳"],short:["א׳","ב׳","ג׳","ד׳","ה׳","ו׳","ש׳"],abbreviated:["יום א׳","יום ב׳","יום ג׳","יום ד׳","יום ה׳","יום ו׳","שבת"],wide:["יום ראשון","יום שני","יום שלישי","יום רביעי","יום חמישי","יום שישי","יום שבת"]},Qnt={narrow:{am:"לפנה״צ",pm:"אחה״צ",midnight:"חצות",noon:"צהריים",morning:"בוקר",afternoon:"אחר הצהריים",evening:"ערב",night:"לילה"},abbreviated:{am:"לפנה״צ",pm:"אחה״צ",midnight:"חצות",noon:"צהריים",morning:"בוקר",afternoon:"אחר הצהריים",evening:"ערב",night:"לילה"},wide:{am:"לפנה״צ",pm:"אחה״צ",midnight:"חצות",noon:"צהריים",morning:"בוקר",afternoon:"אחר הצהריים",evening:"ערב",night:"לילה"}},Jnt={narrow:{am:"לפנה״צ",pm:"אחה״צ",midnight:"חצות",noon:"צהריים",morning:"בבוקר",afternoon:"בצהריים",evening:"בערב",night:"בלילה"},abbreviated:{am:"לפנה״צ",pm:"אחה״צ",midnight:"חצות",noon:"צהריים",morning:"בבוקר",afternoon:"אחר הצהריים",evening:"בערב",night:"בלילה"},wide:{am:"לפנה״צ",pm:"אחה״צ",midnight:"חצות",noon:"צהריים",morning:"בבוקר",afternoon:"אחר הצהריים",evening:"בערב",night:"בלילה"}},Znt=function(t,n){var r=Number(t);if(r<=0||r>10)return String(r);var a=String(n==null?void 0:n.unit),i=["year","hour","minute","second"].indexOf(a)>=0,o=["ראשון","שני","שלישי","רביעי","חמישי","שישי","שביעי","שמיני","תשיעי","עשירי"],l=["ראשונה","שנייה","שלישית","רביעית","חמישית","שישית","שביעית","שמינית","תשיעית","עשירית"],u=r-1;return i?l[u]:o[u]},ert={ordinalNumber:Znt,era:oe({values:Gnt,defaultWidth:"wide"}),quarter:oe({values:Ynt,defaultWidth:"wide",argumentCallback:function(t){return t-1}}),month:oe({values:Knt,defaultWidth:"wide"}),day:oe({values:Xnt,defaultWidth:"wide"}),dayPeriod:oe({values:Qnt,defaultWidth:"wide",formattingValues:Jnt,defaultFormattingWidth:"wide"})},trt=/^(\d+|(ראשון|שני|שלישי|רביעי|חמישי|שישי|שביעי|שמיני|תשיעי|עשירי|ראשונה|שנייה|שלישית|רביעית|חמישית|שישית|שביעית|שמינית|תשיעית|עשירית))/i,nrt=/^(\d+|רא|שנ|של|רב|ח|שי|שב|שמ|ת|ע)/i,rrt={narrow:/^ל(ספירה|פנה״ס)/i,abbreviated:/^ל(ספירה|פנה״ס)/i,wide:/^ל(פני ה)?ספירה/i},art={any:[/^לפ/i,/^לס/i]},irt={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^רבעון [1234]/i},ort={any:[/1/i,/2/i,/3/i,/4/i]},srt={narrow:/^\d+/i,abbreviated:/^(ינו|פבר|מרץ|אפר|מאי|יוני|יולי|אוג|ספט|אוק|נוב|דצמ)׳?/i,wide:/^(ינואר|פברואר|מרץ|אפריל|מאי|יוני|יולי|אוגוסט|ספטמבר|אוקטובר|נובמבר|דצמבר)/i},lrt={narrow:[/^1$/i,/^2/i,/^3/i,/^4/i,/^5/i,/^6/i,/^7/i,/^8/i,/^9/i,/^10/i,/^11/i,/^12/i],any:[/^ינ/i,/^פ/i,/^מר/i,/^אפ/i,/^מא/i,/^יונ/i,/^יול/i,/^אוג/i,/^ס/i,/^אוק/i,/^נ/i,/^ד/i]},urt={narrow:/^[אבגדהוש]׳/i,short:/^[אבגדהוש]׳/i,abbreviated:/^(שבת|יום (א|ב|ג|ד|ה|ו)׳)/i,wide:/^יום (ראשון|שני|שלישי|רביעי|חמישי|שישי|שבת)/i},crt={abbreviated:[/א׳$/i,/ב׳$/i,/ג׳$/i,/ד׳$/i,/ה׳$/i,/ו׳$/i,/^ש/i],wide:[/ן$/i,/ני$/i,/לישי$/i,/עי$/i,/מישי$/i,/שישי$/i,/ת$/i],any:[/^א/i,/^ב/i,/^ג/i,/^ד/i,/^ה/i,/^ו/i,/^ש/i]},drt={any:/^(אחר ה|ב)?(חצות|צהריים|בוקר|ערב|לילה|אחה״צ|לפנה״צ)/i},frt={any:{am:/^לפ/i,pm:/^אחה/i,midnight:/^ח/i,noon:/^צ/i,morning:/בוקר/i,afternoon:/בצ|אחר/i,evening:/ערב/i,night:/לילה/i}},prt=["רא","שנ","של","רב","ח","שי","שב","שמ","ת","ע"],hrt={ordinalNumber:Xt({matchPattern:trt,parsePattern:nrt,valueCallback:function(t){var n=parseInt(t,10);return isNaN(n)?prt.indexOf(t)+1:n}}),era:se({matchPatterns:rrt,defaultMatchWidth:"wide",parsePatterns:art,defaultParseWidth:"any"}),quarter:se({matchPatterns:irt,defaultMatchWidth:"wide",parsePatterns:ort,defaultParseWidth:"any",valueCallback:function(t){return t+1}}),month:se({matchPatterns:srt,defaultMatchWidth:"wide",parsePatterns:lrt,defaultParseWidth:"any"}),day:se({matchPatterns:urt,defaultMatchWidth:"wide",parsePatterns:crt,defaultParseWidth:"any"}),dayPeriod:se({matchPatterns:drt,defaultMatchWidth:"any",parsePatterns:frt,defaultParseWidth:"any"})},mrt={code:"he",formatDistance:Unt,formatLong:qnt,formatRelative:Vnt,localize:ert,match:hrt,options:{weekStartsOn:0,firstWeekContainsDate:1}};const grt=Object.freeze(Object.defineProperty({__proto__:null,default:mrt},Symbol.toStringTag,{value:"Module"})),vrt=jt(grt);var fie={locale:{1:"१",2:"२",3:"३",4:"४",5:"५",6:"६",7:"७",8:"८",9:"९",0:"०"},number:{"१":"1","२":"2","३":"3","४":"4","५":"5","६":"6","७":"7","८":"8","९":"9","०":"0"}},yrt={narrow:["ईसा-पूर्व","ईस्वी"],abbreviated:["ईसा-पूर्व","ईस्वी"],wide:["ईसा-पूर्व","ईसवी सन"]},brt={narrow:["1","2","3","4"],abbreviated:["ति1","ति2","ति3","ति4"],wide:["पहली तिमाही","दूसरी तिमाही","तीसरी तिमाही","चौथी तिमाही"]},wrt={narrow:["ज","फ़","मा","अ","मई","जू","जु","अग","सि","अक्टू","न","दि"],abbreviated:["जन","फ़र","मार्च","अप्रैल","मई","जून","जुल","अग","सित","अक्टू","नव","दिस"],wide:["जनवरी","फ़रवरी","मार्च","अप्रैल","मई","जून","जुलाई","अगस्त","सितंबर","अक्टूबर","नवंबर","दिसंबर"]},Srt={narrow:["र","सो","मं","बु","गु","शु","श"],short:["र","सो","मं","बु","गु","शु","श"],abbreviated:["रवि","सोम","मंगल","बुध","गुरु","शुक्र","शनि"],wide:["रविवार","सोमवार","मंगलवार","बुधवार","गुरुवार","शुक्रवार","शनिवार"]},Ert={narrow:{am:"पूर्वाह्न",pm:"अपराह्न",midnight:"मध्यरात्रि",noon:"दोपहर",morning:"सुबह",afternoon:"दोपहर",evening:"शाम",night:"रात"},abbreviated:{am:"पूर्वाह्न",pm:"अपराह्न",midnight:"मध्यरात्रि",noon:"दोपहर",morning:"सुबह",afternoon:"दोपहर",evening:"शाम",night:"रात"},wide:{am:"पूर्वाह्न",pm:"अपराह्न",midnight:"मध्यरात्रि",noon:"दोपहर",morning:"सुबह",afternoon:"दोपहर",evening:"शाम",night:"रात"}},Trt={narrow:{am:"पूर्वाह्न",pm:"अपराह्न",midnight:"मध्यरात्रि",noon:"दोपहर",morning:"सुबह",afternoon:"दोपहर",evening:"शाम",night:"रात"},abbreviated:{am:"पूर्वाह्न",pm:"अपराह्न",midnight:"मध्यरात्रि",noon:"दोपहर",morning:"सुबह",afternoon:"दोपहर",evening:"शाम",night:"रात"},wide:{am:"पूर्वाह्न",pm:"अपराह्न",midnight:"मध्यरात्रि",noon:"दोपहर",morning:"सुबह",afternoon:"दोपहर",evening:"शाम",night:"रात"}},Crt=function(t,n){var r=Number(t);return pie(r)};function krt(e){var t=e.toString().replace(/[१२३४५६७८९०]/g,function(n){return fie.number[n]});return Number(t)}function pie(e){return e.toString().replace(/\d/g,function(t){return fie.locale[t]})}var xrt={ordinalNumber:Crt,era:oe({values:yrt,defaultWidth:"wide"}),quarter:oe({values:brt,defaultWidth:"wide",argumentCallback:function(t){return t-1}}),month:oe({values:wrt,defaultWidth:"wide"}),day:oe({values:Srt,defaultWidth:"wide"}),dayPeriod:oe({values:Ert,defaultWidth:"wide",formattingValues:Trt,defaultFormattingWidth:"wide"})},_rt={lessThanXSeconds:{one:"१ सेकंड से कम",other:"{{count}} सेकंड से कम"},xSeconds:{one:"१ सेकंड",other:"{{count}} सेकंड"},halfAMinute:"आधा मिनट",lessThanXMinutes:{one:"१ मिनट से कम",other:"{{count}} मिनट से कम"},xMinutes:{one:"१ मिनट",other:"{{count}} मिनट"},aboutXHours:{one:"लगभग १ घंटा",other:"लगभग {{count}} घंटे"},xHours:{one:"१ घंटा",other:"{{count}} घंटे"},xDays:{one:"१ दिन",other:"{{count}} दिन"},aboutXWeeks:{one:"लगभग १ सप्ताह",other:"लगभग {{count}} सप्ताह"},xWeeks:{one:"१ सप्ताह",other:"{{count}} सप्ताह"},aboutXMonths:{one:"लगभग १ महीना",other:"लगभग {{count}} महीने"},xMonths:{one:"१ महीना",other:"{{count}} महीने"},aboutXYears:{one:"लगभग १ वर्ष",other:"लगभग {{count}} वर्ष"},xYears:{one:"१ वर्ष",other:"{{count}} वर्ष"},overXYears:{one:"१ वर्ष से अधिक",other:"{{count}} वर्ष से अधिक"},almostXYears:{one:"लगभग १ वर्ष",other:"लगभग {{count}} वर्ष"}},Ort=function(t,n,r){var a,i=_rt[t];return typeof i=="string"?a=i:n===1?a=i.one:a=i.other.replace("{{count}}",pie(n)),r!=null&&r.addSuffix?r.comparison&&r.comparison>0?a+"मे ":a+" पहले":a},Rrt={full:"EEEE, do MMMM, y",long:"do MMMM, y",medium:"d MMM, y",short:"dd/MM/yyyy"},Prt={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},Art={full:"{{date}} 'को' {{time}}",long:"{{date}} 'को' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},Nrt={date:Ne({formats:Rrt,defaultWidth:"full"}),time:Ne({formats:Prt,defaultWidth:"full"}),dateTime:Ne({formats:Art,defaultWidth:"full"})},Mrt={lastWeek:"'पिछले' eeee p",yesterday:"'कल' p",today:"'आज' p",tomorrow:"'कल' p",nextWeek:"eeee 'को' p",other:"P"},Irt=function(t,n,r,a){return Mrt[t]},Drt=/^[०१२३४५६७८९]+/i,$rt=/^[०१२३४५६७८९]+/i,Lrt={narrow:/^(ईसा-पूर्व|ईस्वी)/i,abbreviated:/^(ईसा\.?\s?पूर्व\.?|ईसा\.?)/i,wide:/^(ईसा-पूर्व|ईसवी पूर्व|ईसवी सन|ईसवी)/i},Frt={any:[/^b/i,/^(a|c)/i]},jrt={narrow:/^[1234]/i,abbreviated:/^ति[1234]/i,wide:/^[1234](पहली|दूसरी|तीसरी|चौथी)? तिमाही/i},Urt={any:[/1/i,/2/i,/3/i,/4/i]},Brt={narrow:/^[जफ़माअप्मईजूनजुअगसिअक्तनदि]/i,abbreviated:/^(जन|फ़र|मार्च|अप्|मई|जून|जुल|अग|सित|अक्तू|नव|दिस)/i,wide:/^(जनवरी|फ़रवरी|मार्च|अप्रैल|मई|जून|जुलाई|अगस्त|सितंबर|अक्तूबर|नवंबर|दिसंबर)/i},Wrt={narrow:[/^ज/i,/^फ़/i,/^मा/i,/^अप्/i,/^मई/i,/^जू/i,/^जु/i,/^अग/i,/^सि/i,/^अक्तू/i,/^न/i,/^दि/i],any:[/^जन/i,/^फ़/i,/^मा/i,/^अप्/i,/^मई/i,/^जू/i,/^जु/i,/^अग/i,/^सि/i,/^अक्तू/i,/^नव/i,/^दिस/i]},zrt={narrow:/^[रविसोममंगलबुधगुरुशुक्रशनि]/i,short:/^(रवि|सोम|मंगल|बुध|गुरु|शुक्र|शनि)/i,abbreviated:/^(रवि|सोम|मंगल|बुध|गुरु|शुक्र|शनि)/i,wide:/^(रविवार|सोमवार|मंगलवार|बुधवार|गुरुवार|शुक्रवार|शनिवार)/i},qrt={narrow:[/^रवि/i,/^सोम/i,/^मंगल/i,/^बुध/i,/^गुरु/i,/^शुक्र/i,/^शनि/i],any:[/^रवि/i,/^सोम/i,/^मंगल/i,/^बुध/i,/^गुरु/i,/^शुक्र/i,/^शनि/i]},Hrt={narrow:/^(पू|अ|म|द.\?|सु|दो|शा|रा)/i,any:/^(पूर्वाह्न|अपराह्न|म|द.\?|सु|दो|शा|रा)/i},Vrt={any:{am:/^पूर्वाह्न/i,pm:/^अपराह्न/i,midnight:/^मध्य/i,noon:/^दो/i,morning:/सु/i,afternoon:/दो/i,evening:/शा/i,night:/रा/i}},Grt={ordinalNumber:Xt({matchPattern:Drt,parsePattern:$rt,valueCallback:krt}),era:se({matchPatterns:Lrt,defaultMatchWidth:"wide",parsePatterns:Frt,defaultParseWidth:"any"}),quarter:se({matchPatterns:jrt,defaultMatchWidth:"wide",parsePatterns:Urt,defaultParseWidth:"any",valueCallback:function(t){return t+1}}),month:se({matchPatterns:Brt,defaultMatchWidth:"wide",parsePatterns:Wrt,defaultParseWidth:"any"}),day:se({matchPatterns:zrt,defaultMatchWidth:"wide",parsePatterns:qrt,defaultParseWidth:"any"}),dayPeriod:se({matchPatterns:Hrt,defaultMatchWidth:"any",parsePatterns:Vrt,defaultParseWidth:"any"})},Yrt={code:"hi",formatDistance:Ort,formatLong:Nrt,formatRelative:Irt,localize:xrt,match:Grt,options:{weekStartsOn:0,firstWeekContainsDate:4}};const Krt=Object.freeze(Object.defineProperty({__proto__:null,default:Yrt},Symbol.toStringTag,{value:"Module"})),Xrt=jt(Krt);var Qrt={lessThanXSeconds:{one:{standalone:"manje od 1 sekunde",withPrepositionAgo:"manje od 1 sekunde",withPrepositionIn:"manje od 1 sekundu"},dual:"manje od {{count}} sekunde",other:"manje od {{count}} sekundi"},xSeconds:{one:{standalone:"1 sekunda",withPrepositionAgo:"1 sekunde",withPrepositionIn:"1 sekundu"},dual:"{{count}} sekunde",other:"{{count}} sekundi"},halfAMinute:"pola minute",lessThanXMinutes:{one:{standalone:"manje od 1 minute",withPrepositionAgo:"manje od 1 minute",withPrepositionIn:"manje od 1 minutu"},dual:"manje od {{count}} minute",other:"manje od {{count}} minuta"},xMinutes:{one:{standalone:"1 minuta",withPrepositionAgo:"1 minute",withPrepositionIn:"1 minutu"},dual:"{{count}} minute",other:"{{count}} minuta"},aboutXHours:{one:{standalone:"oko 1 sat",withPrepositionAgo:"oko 1 sat",withPrepositionIn:"oko 1 sat"},dual:"oko {{count}} sata",other:"oko {{count}} sati"},xHours:{one:{standalone:"1 sat",withPrepositionAgo:"1 sat",withPrepositionIn:"1 sat"},dual:"{{count}} sata",other:"{{count}} sati"},xDays:{one:{standalone:"1 dan",withPrepositionAgo:"1 dan",withPrepositionIn:"1 dan"},dual:"{{count}} dana",other:"{{count}} dana"},aboutXWeeks:{one:{standalone:"oko 1 tjedan",withPrepositionAgo:"oko 1 tjedan",withPrepositionIn:"oko 1 tjedan"},dual:"oko {{count}} tjedna",other:"oko {{count}} tjedana"},xWeeks:{one:{standalone:"1 tjedan",withPrepositionAgo:"1 tjedan",withPrepositionIn:"1 tjedan"},dual:"{{count}} tjedna",other:"{{count}} tjedana"},aboutXMonths:{one:{standalone:"oko 1 mjesec",withPrepositionAgo:"oko 1 mjesec",withPrepositionIn:"oko 1 mjesec"},dual:"oko {{count}} mjeseca",other:"oko {{count}} mjeseci"},xMonths:{one:{standalone:"1 mjesec",withPrepositionAgo:"1 mjesec",withPrepositionIn:"1 mjesec"},dual:"{{count}} mjeseca",other:"{{count}} mjeseci"},aboutXYears:{one:{standalone:"oko 1 godinu",withPrepositionAgo:"oko 1 godinu",withPrepositionIn:"oko 1 godinu"},dual:"oko {{count}} godine",other:"oko {{count}} godina"},xYears:{one:{standalone:"1 godina",withPrepositionAgo:"1 godine",withPrepositionIn:"1 godinu"},dual:"{{count}} godine",other:"{{count}} godina"},overXYears:{one:{standalone:"preko 1 godinu",withPrepositionAgo:"preko 1 godinu",withPrepositionIn:"preko 1 godinu"},dual:"preko {{count}} godine",other:"preko {{count}} godina"},almostXYears:{one:{standalone:"gotovo 1 godinu",withPrepositionAgo:"gotovo 1 godinu",withPrepositionIn:"gotovo 1 godinu"},dual:"gotovo {{count}} godine",other:"gotovo {{count}} godina"}},Jrt=function(t,n,r){var a,i=Qrt[t];return typeof i=="string"?a=i:n===1?r!=null&&r.addSuffix?r.comparison&&r.comparison>0?a=i.one.withPrepositionIn:a=i.one.withPrepositionAgo:a=i.one.standalone:n%10>1&&n%10<5&&String(n).substr(-2,1)!=="1"?a=i.dual.replace("{{count}}",String(n)):a=i.other.replace("{{count}}",String(n)),r!=null&&r.addSuffix?r.comparison&&r.comparison>0?"za "+a:"prije "+a:a},Zrt={full:"EEEE, d. MMMM y.",long:"d. MMMM y.",medium:"d. MMM y.",short:"dd. MM. y."},eat={full:"HH:mm:ss (zzzz)",long:"HH:mm:ss z",medium:"HH:mm:ss",short:"HH:mm"},tat={full:"{{date}} 'u' {{time}}",long:"{{date}} 'u' {{time}}",medium:"{{date}} {{time}}",short:"{{date}} {{time}}"},nat={date:Ne({formats:Zrt,defaultWidth:"full"}),time:Ne({formats:eat,defaultWidth:"full"}),dateTime:Ne({formats:tat,defaultWidth:"full"})},rat={lastWeek:function(t){switch(t.getUTCDay()){case 0:return"'prošlu nedjelju u' p";case 3:return"'prošlu srijedu u' p";case 6:return"'prošlu subotu u' p";default:return"'prošli' EEEE 'u' p"}},yesterday:"'jučer u' p",today:"'danas u' p",tomorrow:"'sutra u' p",nextWeek:function(t){switch(t.getUTCDay()){case 0:return"'iduću nedjelju u' p";case 3:return"'iduću srijedu u' p";case 6:return"'iduću subotu u' p";default:return"'prošli' EEEE 'u' p"}},other:"P"},aat=function(t,n,r,a){var i=rat[t];return typeof i=="function"?i(n):i},iat={narrow:["pr.n.e.","AD"],abbreviated:["pr. Kr.","po. Kr."],wide:["Prije Krista","Poslije Krista"]},oat={narrow:["1.","2.","3.","4."],abbreviated:["1. kv.","2. kv.","3. kv.","4. kv."],wide:["1. kvartal","2. kvartal","3. kvartal","4. kvartal"]},sat={narrow:["1.","2.","3.","4.","5.","6.","7.","8.","9.","10.","11.","12."],abbreviated:["sij","velj","ožu","tra","svi","lip","srp","kol","ruj","lis","stu","pro"],wide:["siječanj","veljača","ožujak","travanj","svibanj","lipanj","srpanj","kolovoz","rujan","listopad","studeni","prosinac"]},lat={narrow:["1.","2.","3.","4.","5.","6.","7.","8.","9.","10.","11.","12."],abbreviated:["sij","velj","ožu","tra","svi","lip","srp","kol","ruj","lis","stu","pro"],wide:["siječnja","veljače","ožujka","travnja","svibnja","lipnja","srpnja","kolovoza","rujna","listopada","studenog","prosinca"]},uat={narrow:["N","P","U","S","Č","P","S"],short:["ned","pon","uto","sri","čet","pet","sub"],abbreviated:["ned","pon","uto","sri","čet","pet","sub"],wide:["nedjelja","ponedjeljak","utorak","srijeda","četvrtak","petak","subota"]},cat={narrow:{am:"AM",pm:"PM",midnight:"ponoć",noon:"podne",morning:"ujutro",afternoon:"popodne",evening:"navečer",night:"noću"},abbreviated:{am:"AM",pm:"PM",midnight:"ponoć",noon:"podne",morning:"ujutro",afternoon:"popodne",evening:"navečer",night:"noću"},wide:{am:"AM",pm:"PM",midnight:"ponoć",noon:"podne",morning:"ujutro",afternoon:"poslije podne",evening:"navečer",night:"noću"}},dat={narrow:{am:"AM",pm:"PM",midnight:"ponoć",noon:"podne",morning:"ujutro",afternoon:"popodne",evening:"navečer",night:"noću"},abbreviated:{am:"AM",pm:"PM",midnight:"ponoć",noon:"podne",morning:"ujutro",afternoon:"popodne",evening:"navečer",night:"noću"},wide:{am:"AM",pm:"PM",midnight:"ponoć",noon:"podne",morning:"ujutro",afternoon:"poslije podne",evening:"navečer",night:"noću"}},fat=function(t,n){var r=Number(t);return r+"."},pat={ordinalNumber:fat,era:oe({values:iat,defaultWidth:"wide"}),quarter:oe({values:oat,defaultWidth:"wide",argumentCallback:function(t){return t-1}}),month:oe({values:sat,defaultWidth:"wide",formattingValues:lat,defaultFormattingWidth:"wide"}),day:oe({values:uat,defaultWidth:"wide"}),dayPeriod:oe({values:dat,defaultWidth:"wide",formattingValues:cat,defaultFormattingWidth:"wide"})},hat=/^(\d+)\./i,mat=/\d+/i,gat={narrow:/^(pr\.n\.e\.|AD)/i,abbreviated:/^(pr\.\s?Kr\.|po\.\s?Kr\.)/i,wide:/^(Prije Krista|prije nove ere|Poslije Krista|nova era)/i},vat={any:[/^pr/i,/^(po|nova)/i]},yat={narrow:/^[1234]/i,abbreviated:/^[1234]\.\s?kv\.?/i,wide:/^[1234]\. kvartal/i},bat={any:[/1/i,/2/i,/3/i,/4/i]},wat={narrow:/^(10|11|12|[123456789])\./i,abbreviated:/^(sij|velj|(ožu|ozu)|tra|svi|lip|srp|kol|ruj|lis|stu|pro)/i,wide:/^((siječanj|siječnja|sijecanj|sijecnja)|(veljača|veljače|veljaca|veljace)|(ožujak|ožujka|ozujak|ozujka)|(travanj|travnja)|(svibanj|svibnja)|(lipanj|lipnja)|(srpanj|srpnja)|(kolovoz|kolovoza)|(rujan|rujna)|(listopad|listopada)|(studeni|studenog)|(prosinac|prosinca))/i},Sat={narrow:[/1/i,/2/i,/3/i,/4/i,/5/i,/6/i,/7/i,/8/i,/9/i,/10/i,/11/i,/12/i],abbreviated:[/^sij/i,/^velj/i,/^(ožu|ozu)/i,/^tra/i,/^svi/i,/^lip/i,/^srp/i,/^kol/i,/^ruj/i,/^lis/i,/^stu/i,/^pro/i],wide:[/^sij/i,/^velj/i,/^(ožu|ozu)/i,/^tra/i,/^svi/i,/^lip/i,/^srp/i,/^kol/i,/^ruj/i,/^lis/i,/^stu/i,/^pro/i]},Eat={narrow:/^[npusčc]/i,short:/^(ned|pon|uto|sri|(čet|cet)|pet|sub)/i,abbreviated:/^(ned|pon|uto|sri|(čet|cet)|pet|sub)/i,wide:/^(nedjelja|ponedjeljak|utorak|srijeda|(četvrtak|cetvrtak)|petak|subota)/i},Tat={narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},Cat={any:/^(am|pm|ponoc|ponoć|(po)?podne|navecer|navečer|noću|poslije podne|ujutro)/i},kat={any:{am:/^a/i,pm:/^p/i,midnight:/^pono/i,noon:/^pod/i,morning:/jutro/i,afternoon:/(poslije\s|po)+podne/i,evening:/(navece|naveče)/i,night:/(nocu|noću)/i}},xat={ordinalNumber:Xt({matchPattern:hat,parsePattern:mat,valueCallback:function(t){return parseInt(t,10)}}),era:se({matchPatterns:gat,defaultMatchWidth:"wide",parsePatterns:vat,defaultParseWidth:"any"}),quarter:se({matchPatterns:yat,defaultMatchWidth:"wide",parsePatterns:bat,defaultParseWidth:"any",valueCallback:function(t){return t+1}}),month:se({matchPatterns:wat,defaultMatchWidth:"wide",parsePatterns:Sat,defaultParseWidth:"wide"}),day:se({matchPatterns:Eat,defaultMatchWidth:"wide",parsePatterns:Tat,defaultParseWidth:"any"}),dayPeriod:se({matchPatterns:Cat,defaultMatchWidth:"any",parsePatterns:kat,defaultParseWidth:"any"})},_at={code:"hr",formatDistance:Jrt,formatLong:nat,formatRelative:aat,localize:pat,match:xat,options:{weekStartsOn:1,firstWeekContainsDate:1}};const Oat=Object.freeze(Object.defineProperty({__proto__:null,default:_at},Symbol.toStringTag,{value:"Module"})),Rat=jt(Oat);var Pat={about:"körülbelül",over:"több mint",almost:"majdnem",lessthan:"kevesebb mint"},Aat={xseconds:" másodperc",halfaminute:"fél perc",xminutes:" perc",xhours:" óra",xdays:" nap",xweeks:" hét",xmonths:" hónap",xyears:" év"},Nat={xseconds:{"-1":" másodperccel ezelőtt",1:" másodperc múlva",0:" másodperce"},halfaminute:{"-1":"fél perccel ezelőtt",1:"fél perc múlva",0:"fél perce"},xminutes:{"-1":" perccel ezelőtt",1:" perc múlva",0:" perce"},xhours:{"-1":" órával ezelőtt",1:" óra múlva",0:" órája"},xdays:{"-1":" nappal ezelőtt",1:" nap múlva",0:" napja"},xweeks:{"-1":" héttel ezelőtt",1:" hét múlva",0:" hete"},xmonths:{"-1":" hónappal ezelőtt",1:" hónap múlva",0:" hónapja"},xyears:{"-1":" évvel ezelőtt",1:" év múlva",0:" éve"}},Mat=function(t,n,r){var a=t.match(/about|over|almost|lessthan/i),i=a?t.replace(a[0],""):t,o=(r==null?void 0:r.addSuffix)===!0,l=i.toLowerCase(),u=(r==null?void 0:r.comparison)||0,d=o?Nat[l][u]:Aat[l],f=l==="halfaminute"?d:n+d;if(a){var g=a[0].toLowerCase();f=Pat[g]+" "+f}return f},Iat={full:"y. MMMM d., EEEE",long:"y. MMMM d.",medium:"y. MMM d.",short:"y. MM. dd."},Dat={full:"H:mm:ss zzzz",long:"H:mm:ss z",medium:"H:mm:ss",short:"H:mm"},$at={full:"{{date}} {{time}}",long:"{{date}} {{time}}",medium:"{{date}} {{time}}",short:"{{date}} {{time}}"},Lat={date:Ne({formats:Iat,defaultWidth:"full"}),time:Ne({formats:Dat,defaultWidth:"full"}),dateTime:Ne({formats:$at,defaultWidth:"full"})},Fat=["vasárnap","hétfőn","kedden","szerdán","csütörtökön","pénteken","szombaton"];function vY(e){return function(t){var n=Fat[t.getUTCDay()],r=e?"":"'múlt' ";return"".concat(r,"'").concat(n,"' p'-kor'")}}var jat={lastWeek:vY(!1),yesterday:"'tegnap' p'-kor'",today:"'ma' p'-kor'",tomorrow:"'holnap' p'-kor'",nextWeek:vY(!0),other:"P"},Uat=function(t,n){var r=jat[t];return typeof r=="function"?r(n):r},Bat={narrow:["ie.","isz."],abbreviated:["i. e.","i. sz."],wide:["Krisztus előtt","időszámításunk szerint"]},Wat={narrow:["1.","2.","3.","4."],abbreviated:["1. n.év","2. n.év","3. n.év","4. n.év"],wide:["1. negyedév","2. negyedév","3. negyedév","4. negyedév"]},zat={narrow:["I.","II.","III.","IV."],abbreviated:["I. n.év","II. n.év","III. n.év","IV. n.év"],wide:["I. negyedév","II. negyedév","III. negyedév","IV. negyedév"]},qat={narrow:["J","F","M","Á","M","J","J","A","Sz","O","N","D"],abbreviated:["jan.","febr.","márc.","ápr.","máj.","jún.","júl.","aug.","szept.","okt.","nov.","dec."],wide:["január","február","március","április","május","június","július","augusztus","szeptember","október","november","december"]},Hat={narrow:["V","H","K","Sz","Cs","P","Sz"],short:["V","H","K","Sze","Cs","P","Szo"],abbreviated:["V","H","K","Sze","Cs","P","Szo"],wide:["vasárnap","hétfő","kedd","szerda","csütörtök","péntek","szombat"]},Vat={narrow:{am:"de.",pm:"du.",midnight:"éjfél",noon:"dél",morning:"reggel",afternoon:"du.",evening:"este",night:"éjjel"},abbreviated:{am:"de.",pm:"du.",midnight:"éjfél",noon:"dél",morning:"reggel",afternoon:"du.",evening:"este",night:"éjjel"},wide:{am:"de.",pm:"du.",midnight:"éjfél",noon:"dél",morning:"reggel",afternoon:"délután",evening:"este",night:"éjjel"}},Gat=function(t,n){var r=Number(t);return r+"."},Yat={ordinalNumber:Gat,era:oe({values:Bat,defaultWidth:"wide"}),quarter:oe({values:Wat,defaultWidth:"wide",argumentCallback:function(t){return t-1},formattingValues:zat,defaultFormattingWidth:"wide"}),month:oe({values:qat,defaultWidth:"wide"}),day:oe({values:Hat,defaultWidth:"wide"}),dayPeriod:oe({values:Vat,defaultWidth:"wide"})},Kat=/^(\d+)\.?/i,Xat=/\d+/i,Qat={narrow:/^(ie\.|isz\.)/i,abbreviated:/^(i\.\s?e\.?|b?\s?c\s?e|i\.\s?sz\.?)/i,wide:/^(Krisztus előtt|időszámításunk előtt|időszámításunk szerint|i\. sz\.)/i},Jat={narrow:[/ie/i,/isz/i],abbreviated:[/^(i\.?\s?e\.?|b\s?ce)/i,/^(i\.?\s?sz\.?|c\s?e)/i],any:[/előtt/i,/(szerint|i. sz.)/i]},Zat={narrow:/^[1234]\.?/i,abbreviated:/^[1234]?\.?\s?n\.év/i,wide:/^([1234]|I|II|III|IV)?\.?\s?negyedév/i},eit={any:[/1|I$/i,/2|II$/i,/3|III/i,/4|IV/i]},tit={narrow:/^[jfmaásond]|sz/i,abbreviated:/^(jan\.?|febr\.?|márc\.?|ápr\.?|máj\.?|jún\.?|júl\.?|aug\.?|szept\.?|okt\.?|nov\.?|dec\.?)/i,wide:/^(január|február|március|április|május|június|július|augusztus|szeptember|október|november|december)/i},nit={narrow:[/^j/i,/^f/i,/^m/i,/^a|á/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s|sz/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^már/i,/^áp/i,/^máj/i,/^jún/i,/^júl/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},rit={narrow:/^([vhkpc]|sz|cs|sz)/i,short:/^([vhkp]|sze|cs|szo)/i,abbreviated:/^([vhkp]|sze|cs|szo)/i,wide:/^(vasárnap|hétfő|kedd|szerda|csütörtök|péntek|szombat)/i},ait={narrow:[/^v/i,/^h/i,/^k/i,/^sz/i,/^c/i,/^p/i,/^sz/i],any:[/^v/i,/^h/i,/^k/i,/^sze/i,/^c/i,/^p/i,/^szo/i]},iit={any:/^((de|du)\.?|éjfél|délután|dél|reggel|este|éjjel)/i},oit={any:{am:/^de\.?/i,pm:/^du\.?/i,midnight:/^éjf/i,noon:/^dé/i,morning:/reg/i,afternoon:/^délu\.?/i,evening:/es/i,night:/éjj/i}},sit={ordinalNumber:Xt({matchPattern:Kat,parsePattern:Xat,valueCallback:function(t){return parseInt(t,10)}}),era:se({matchPatterns:Qat,defaultMatchWidth:"wide",parsePatterns:Jat,defaultParseWidth:"any"}),quarter:se({matchPatterns:Zat,defaultMatchWidth:"wide",parsePatterns:eit,defaultParseWidth:"any",valueCallback:function(t){return t+1}}),month:se({matchPatterns:tit,defaultMatchWidth:"wide",parsePatterns:nit,defaultParseWidth:"any"}),day:se({matchPatterns:rit,defaultMatchWidth:"wide",parsePatterns:ait,defaultParseWidth:"any"}),dayPeriod:se({matchPatterns:iit,defaultMatchWidth:"any",parsePatterns:oit,defaultParseWidth:"any"})},lit={code:"hu",formatDistance:Mat,formatLong:Lat,formatRelative:Uat,localize:Yat,match:sit,options:{weekStartsOn:1,firstWeekContainsDate:4}};const uit=Object.freeze(Object.defineProperty({__proto__:null,default:lit},Symbol.toStringTag,{value:"Module"})),cit=jt(uit);var dit={lessThanXSeconds:{one:"ավելի քիչ քան 1 վայրկյան",other:"ավելի քիչ քան {{count}} վայրկյան"},xSeconds:{one:"1 վայրկյան",other:"{{count}} վայրկյան"},halfAMinute:"կես րոպե",lessThanXMinutes:{one:"ավելի քիչ քան 1 րոպե",other:"ավելի քիչ քան {{count}} րոպե"},xMinutes:{one:"1 րոպե",other:"{{count}} րոպե"},aboutXHours:{one:"մոտ 1 ժամ",other:"մոտ {{count}} ժամ"},xHours:{one:"1 ժամ",other:"{{count}} ժամ"},xDays:{one:"1 օր",other:"{{count}} օր"},aboutXWeeks:{one:"մոտ 1 շաբաթ",other:"մոտ {{count}} շաբաթ"},xWeeks:{one:"1 շաբաթ",other:"{{count}} շաբաթ"},aboutXMonths:{one:"մոտ 1 ամիս",other:"մոտ {{count}} ամիս"},xMonths:{one:"1 ամիս",other:"{{count}} ամիս"},aboutXYears:{one:"մոտ 1 տարի",other:"մոտ {{count}} տարի"},xYears:{one:"1 տարի",other:"{{count}} տարի"},overXYears:{one:"ավելի քան 1 տարի",other:"ավելի քան {{count}} տարի"},almostXYears:{one:"համարյա 1 տարի",other:"համարյա {{count}} տարի"}},fit=function(t,n,r){var a,i=dit[t];return typeof i=="string"?a=i:n===1?a=i.one:a=i.other.replace("{{count}}",String(n)),r!=null&&r.addSuffix?r.comparison&&r.comparison>0?a+" հետո":a+" առաջ":a},pit={full:"d MMMM, y, EEEE",long:"d MMMM, y",medium:"d MMM, y",short:"dd.MM.yyyy"},hit={full:"HH:mm:ss zzzz",long:"HH:mm:ss z",medium:"HH:mm:ss",short:"HH:mm"},mit={full:"{{date}} 'ժ․'{{time}}",long:"{{date}} 'ժ․'{{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},git={date:Ne({formats:pit,defaultWidth:"full"}),time:Ne({formats:hit,defaultWidth:"full"}),dateTime:Ne({formats:mit,defaultWidth:"full"})},vit={lastWeek:"'նախորդ' eeee p'֊ին'",yesterday:"'երեկ' p'֊ին'",today:"'այսօր' p'֊ին'",tomorrow:"'վաղը' p'֊ին'",nextWeek:"'հաջորդ' eeee p'֊ին'",other:"P"},yit=function(t,n,r,a){return vit[t]},bit={narrow:["Ք","Մ"],abbreviated:["ՔԱ","ՄԹ"],wide:["Քրիստոսից առաջ","Մեր թվարկության"]},wit={narrow:["1","2","3","4"],abbreviated:["Ք1","Ք2","Ք3","Ք4"],wide:["1֊ին քառորդ","2֊րդ քառորդ","3֊րդ քառորդ","4֊րդ քառորդ"]},Sit={narrow:["Հ","Փ","Մ","Ա","Մ","Հ","Հ","Օ","Ս","Հ","Ն","Դ"],abbreviated:["հուն","փետ","մար","ապր","մայ","հուն","հուլ","օգս","սեպ","հոկ","նոյ","դեկ"],wide:["հունվար","փետրվար","մարտ","ապրիլ","մայիս","հունիս","հուլիս","օգոստոս","սեպտեմբեր","հոկտեմբեր","նոյեմբեր","դեկտեմբեր"]},Eit={narrow:["Կ","Ե","Ե","Չ","Հ","Ո","Շ"],short:["կր","եր","եք","չք","հգ","ուր","շբ"],abbreviated:["կիր","երկ","երք","չոր","հնգ","ուրբ","շաբ"],wide:["կիրակի","երկուշաբթի","երեքշաբթի","չորեքշաբթի","հինգշաբթի","ուրբաթ","շաբաթ"]},Tit={narrow:{am:"a",pm:"p",midnight:"կեսգշ",noon:"կեսօր",morning:"առավոտ",afternoon:"ցերեկ",evening:"երեկո",night:"գիշեր"},abbreviated:{am:"AM",pm:"PM",midnight:"կեսգիշեր",noon:"կեսօր",morning:"առավոտ",afternoon:"ցերեկ",evening:"երեկո",night:"գիշեր"},wide:{am:"a.m.",pm:"p.m.",midnight:"կեսգիշեր",noon:"կեսօր",morning:"առավոտ",afternoon:"ցերեկ",evening:"երեկո",night:"գիշեր"}},Cit={narrow:{am:"a",pm:"p",midnight:"կեսգշ",noon:"կեսօր",morning:"առավոտը",afternoon:"ցերեկը",evening:"երեկոյան",night:"գիշերը"},abbreviated:{am:"AM",pm:"PM",midnight:"կեսգիշերին",noon:"կեսօրին",morning:"առավոտը",afternoon:"ցերեկը",evening:"երեկոյան",night:"գիշերը"},wide:{am:"a.m.",pm:"p.m.",midnight:"կեսգիշերին",noon:"կեսօրին",morning:"առավոտը",afternoon:"ցերեկը",evening:"երեկոյան",night:"գիշերը"}},kit=function(t,n){var r=Number(t),a=r%100;return a<10&&a%10===1?r+"֊ին":r+"֊րդ"},xit={ordinalNumber:kit,era:oe({values:bit,defaultWidth:"wide"}),quarter:oe({values:wit,defaultWidth:"wide",argumentCallback:function(t){return t-1}}),month:oe({values:Sit,defaultWidth:"wide"}),day:oe({values:Eit,defaultWidth:"wide"}),dayPeriod:oe({values:Tit,defaultWidth:"wide",formattingValues:Cit,defaultFormattingWidth:"wide"})},_it=/^(\d+)((-|֊)?(ին|րդ))?/i,Oit=/\d+/i,Rit={narrow:/^(Ք|Մ)/i,abbreviated:/^(Ք\.?\s?Ա\.?|Մ\.?\s?Թ\.?\s?Ա\.?|Մ\.?\s?Թ\.?|Ք\.?\s?Հ\.?)/i,wide:/^(քրիստոսից առաջ|մեր թվարկությունից առաջ|մեր թվարկության|քրիստոսից հետո)/i},Pit={any:[/^ք/i,/^մ/i]},Ait={narrow:/^[1234]/i,abbreviated:/^ք[1234]/i,wide:/^[1234]((-|֊)?(ին|րդ)) քառորդ/i},Nit={any:[/1/i,/2/i,/3/i,/4/i]},Mit={narrow:/^[հփմաօսնդ]/i,abbreviated:/^(հուն|փետ|մար|ապր|մայ|հուն|հուլ|օգս|սեպ|հոկ|նոյ|դեկ)/i,wide:/^(հունվար|փետրվար|մարտ|ապրիլ|մայիս|հունիս|հուլիս|օգոստոս|սեպտեմբեր|հոկտեմբեր|նոյեմբեր|դեկտեմբեր)/i},Iit={narrow:[/^հ/i,/^փ/i,/^մ/i,/^ա/i,/^մ/i,/^հ/i,/^հ/i,/^օ/i,/^ս/i,/^հ/i,/^ն/i,/^դ/i],any:[/^հու/i,/^փ/i,/^մար/i,/^ա/i,/^մայ/i,/^հուն/i,/^հուլ/i,/^օ/i,/^ս/i,/^հոկ/i,/^ն/i,/^դ/i]},Dit={narrow:/^[եչհոշկ]/i,short:/^(կր|եր|եք|չք|հգ|ուր|շբ)/i,abbreviated:/^(կիր|երկ|երք|չոր|հնգ|ուրբ|շաբ)/i,wide:/^(կիրակի|երկուշաբթի|երեքշաբթի|չորեքշաբթի|հինգշաբթի|ուրբաթ|շաբաթ)/i},$it={narrow:[/^կ/i,/^ե/i,/^ե/i,/^չ/i,/^հ/i,/^(ո|Ո)/,/^շ/i],short:[/^կ/i,/^եր/i,/^եք/i,/^չ/i,/^հ/i,/^(ո|Ո)/,/^շ/i],abbreviated:[/^կ/i,/^երկ/i,/^երք/i,/^չ/i,/^հ/i,/^(ո|Ո)/,/^շ/i],wide:[/^կ/i,/^երկ/i,/^երե/i,/^չ/i,/^հ/i,/^(ո|Ո)/,/^շ/i]},Lit={narrow:/^([ap]|կեսգշ|կեսօր|(առավոտը?|ցերեկը?|երեկո(յան)?|գիշերը?))/i,any:/^([ap]\.?\s?m\.?|կեսգիշեր(ին)?|կեսօր(ին)?|(առավոտը?|ցերեկը?|երեկո(յան)?|գիշերը?))/i},Fit={any:{am:/^a/i,pm:/^p/i,midnight:/կեսգիշեր/i,noon:/կեսօր/i,morning:/առավոտ/i,afternoon:/ցերեկ/i,evening:/երեկո/i,night:/գիշեր/i}},jit={ordinalNumber:Xt({matchPattern:_it,parsePattern:Oit,valueCallback:function(t){return parseInt(t,10)}}),era:se({matchPatterns:Rit,defaultMatchWidth:"wide",parsePatterns:Pit,defaultParseWidth:"any"}),quarter:se({matchPatterns:Ait,defaultMatchWidth:"wide",parsePatterns:Nit,defaultParseWidth:"any",valueCallback:function(t){return t+1}}),month:se({matchPatterns:Mit,defaultMatchWidth:"wide",parsePatterns:Iit,defaultParseWidth:"any"}),day:se({matchPatterns:Dit,defaultMatchWidth:"wide",parsePatterns:$it,defaultParseWidth:"wide"}),dayPeriod:se({matchPatterns:Lit,defaultMatchWidth:"any",parsePatterns:Fit,defaultParseWidth:"any"})},Uit={code:"hy",formatDistance:fit,formatLong:git,formatRelative:yit,localize:xit,match:jit,options:{weekStartsOn:1,firstWeekContainsDate:1}};const Bit=Object.freeze(Object.defineProperty({__proto__:null,default:Uit},Symbol.toStringTag,{value:"Module"})),Wit=jt(Bit);var zit={lessThanXSeconds:{one:"kurang dari 1 detik",other:"kurang dari {{count}} detik"},xSeconds:{one:"1 detik",other:"{{count}} detik"},halfAMinute:"setengah menit",lessThanXMinutes:{one:"kurang dari 1 menit",other:"kurang dari {{count}} menit"},xMinutes:{one:"1 menit",other:"{{count}} menit"},aboutXHours:{one:"sekitar 1 jam",other:"sekitar {{count}} jam"},xHours:{one:"1 jam",other:"{{count}} jam"},xDays:{one:"1 hari",other:"{{count}} hari"},aboutXWeeks:{one:"sekitar 1 minggu",other:"sekitar {{count}} minggu"},xWeeks:{one:"1 minggu",other:"{{count}} minggu"},aboutXMonths:{one:"sekitar 1 bulan",other:"sekitar {{count}} bulan"},xMonths:{one:"1 bulan",other:"{{count}} bulan"},aboutXYears:{one:"sekitar 1 tahun",other:"sekitar {{count}} tahun"},xYears:{one:"1 tahun",other:"{{count}} tahun"},overXYears:{one:"lebih dari 1 tahun",other:"lebih dari {{count}} tahun"},almostXYears:{one:"hampir 1 tahun",other:"hampir {{count}} tahun"}},qit=function(t,n,r){var a,i=zit[t];return typeof i=="string"?a=i:n===1?a=i.one:a=i.other.replace("{{count}}",n.toString()),r!=null&&r.addSuffix?r.comparison&&r.comparison>0?"dalam waktu "+a:a+" yang lalu":a},Hit={full:"EEEE, d MMMM yyyy",long:"d MMMM yyyy",medium:"d MMM yyyy",short:"d/M/yyyy"},Vit={full:"HH.mm.ss",long:"HH.mm.ss",medium:"HH.mm",short:"HH.mm"},Git={full:"{{date}} 'pukul' {{time}}",long:"{{date}} 'pukul' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},Yit={date:Ne({formats:Hit,defaultWidth:"full"}),time:Ne({formats:Vit,defaultWidth:"full"}),dateTime:Ne({formats:Git,defaultWidth:"full"})},Kit={lastWeek:"eeee 'lalu pukul' p",yesterday:"'Kemarin pukul' p",today:"'Hari ini pukul' p",tomorrow:"'Besok pukul' p",nextWeek:"eeee 'pukul' p",other:"P"},Xit=function(t,n,r,a){return Kit[t]},Qit={narrow:["SM","M"],abbreviated:["SM","M"],wide:["Sebelum Masehi","Masehi"]},Jit={narrow:["1","2","3","4"],abbreviated:["K1","K2","K3","K4"],wide:["Kuartal ke-1","Kuartal ke-2","Kuartal ke-3","Kuartal ke-4"]},Zit={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","Mei","Jun","Jul","Agt","Sep","Okt","Nov","Des"],wide:["Januari","Februari","Maret","April","Mei","Juni","Juli","Agustus","September","Oktober","November","Desember"]},eot={narrow:["M","S","S","R","K","J","S"],short:["Min","Sen","Sel","Rab","Kam","Jum","Sab"],abbreviated:["Min","Sen","Sel","Rab","Kam","Jum","Sab"],wide:["Minggu","Senin","Selasa","Rabu","Kamis","Jumat","Sabtu"]},tot={narrow:{am:"AM",pm:"PM",midnight:"tengah malam",noon:"tengah hari",morning:"pagi",afternoon:"siang",evening:"sore",night:"malam"},abbreviated:{am:"AM",pm:"PM",midnight:"tengah malam",noon:"tengah hari",morning:"pagi",afternoon:"siang",evening:"sore",night:"malam"},wide:{am:"AM",pm:"PM",midnight:"tengah malam",noon:"tengah hari",morning:"pagi",afternoon:"siang",evening:"sore",night:"malam"}},not={narrow:{am:"AM",pm:"PM",midnight:"tengah malam",noon:"tengah hari",morning:"pagi",afternoon:"siang",evening:"sore",night:"malam"},abbreviated:{am:"AM",pm:"PM",midnight:"tengah malam",noon:"tengah hari",morning:"pagi",afternoon:"siang",evening:"sore",night:"malam"},wide:{am:"AM",pm:"PM",midnight:"tengah malam",noon:"tengah hari",morning:"pagi",afternoon:"siang",evening:"sore",night:"malam"}},rot=function(t,n){var r=Number(t);return"ke-"+r},aot={ordinalNumber:rot,era:oe({values:Qit,defaultWidth:"wide"}),quarter:oe({values:Jit,defaultWidth:"wide",argumentCallback:function(t){return t-1}}),month:oe({values:Zit,defaultWidth:"wide"}),day:oe({values:eot,defaultWidth:"wide"}),dayPeriod:oe({values:tot,defaultWidth:"wide",formattingValues:not,defaultFormattingWidth:"wide"})},iot=/^ke-(\d+)?/i,oot=/\d+/i,sot={narrow:/^(sm|m)/i,abbreviated:/^(s\.?\s?m\.?|s\.?\s?e\.?\s?u\.?|m\.?|e\.?\s?u\.?)/i,wide:/^(sebelum masehi|sebelum era umum|masehi|era umum)/i},lot={any:[/^s/i,/^(m|e)/i]},uot={narrow:/^[1234]/i,abbreviated:/^K-?\s[1234]/i,wide:/^Kuartal ke-?\s?[1234]/i},cot={any:[/1/i,/2/i,/3/i,/4/i]},dot={narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|mei|jun|jul|agt|sep|okt|nov|des)/i,wide:/^(januari|februari|maret|april|mei|juni|juli|agustus|september|oktober|november|desember)/i},fot={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^ma/i,/^ap/i,/^me/i,/^jun/i,/^jul/i,/^ag/i,/^s/i,/^o/i,/^n/i,/^d/i]},pot={narrow:/^[srkjm]/i,short:/^(min|sen|sel|rab|kam|jum|sab)/i,abbreviated:/^(min|sen|sel|rab|kam|jum|sab)/i,wide:/^(minggu|senin|selasa|rabu|kamis|jumat|sabtu)/i},hot={narrow:[/^m/i,/^s/i,/^s/i,/^r/i,/^k/i,/^j/i,/^s/i],any:[/^m/i,/^sen/i,/^sel/i,/^r/i,/^k/i,/^j/i,/^sa/i]},mot={narrow:/^(a|p|tengah m|tengah h|(di(\swaktu)?) (pagi|siang|sore|malam))/i,any:/^([ap]\.?\s?m\.?|tengah malam|tengah hari|(di(\swaktu)?) (pagi|siang|sore|malam))/i},got={any:{am:/^a/i,pm:/^pm/i,midnight:/^tengah m/i,noon:/^tengah h/i,morning:/pagi/i,afternoon:/siang/i,evening:/sore/i,night:/malam/i}},vot={ordinalNumber:Xt({matchPattern:iot,parsePattern:oot,valueCallback:function(t){return parseInt(t,10)}}),era:se({matchPatterns:sot,defaultMatchWidth:"wide",parsePatterns:lot,defaultParseWidth:"any"}),quarter:se({matchPatterns:uot,defaultMatchWidth:"wide",parsePatterns:cot,defaultParseWidth:"any",valueCallback:function(t){return t+1}}),month:se({matchPatterns:dot,defaultMatchWidth:"wide",parsePatterns:fot,defaultParseWidth:"any"}),day:se({matchPatterns:pot,defaultMatchWidth:"wide",parsePatterns:hot,defaultParseWidth:"any"}),dayPeriod:se({matchPatterns:mot,defaultMatchWidth:"any",parsePatterns:got,defaultParseWidth:"any"})},yot={code:"id",formatDistance:qit,formatLong:Yit,formatRelative:Xit,localize:aot,match:vot,options:{weekStartsOn:1,firstWeekContainsDate:1}};const bot=Object.freeze(Object.defineProperty({__proto__:null,default:yot},Symbol.toStringTag,{value:"Module"})),wot=jt(bot);var Sot={lessThanXSeconds:{one:"minna en 1 sekúnda",other:"minna en {{count}} sekúndur"},xSeconds:{one:"1 sekúnda",other:"{{count}} sekúndur"},halfAMinute:"hálf mínúta",lessThanXMinutes:{one:"minna en 1 mínúta",other:"minna en {{count}} mínútur"},xMinutes:{one:"1 mínúta",other:"{{count}} mínútur"},aboutXHours:{one:"u.þ.b. 1 klukkustund",other:"u.þ.b. {{count}} klukkustundir"},xHours:{one:"1 klukkustund",other:"{{count}} klukkustundir"},xDays:{one:"1 dagur",other:"{{count}} dagar"},aboutXWeeks:{one:"um viku",other:"um {{count}} vikur"},xWeeks:{one:"1 viku",other:"{{count}} vikur"},aboutXMonths:{one:"u.þ.b. 1 mánuður",other:"u.þ.b. {{count}} mánuðir"},xMonths:{one:"1 mánuður",other:"{{count}} mánuðir"},aboutXYears:{one:"u.þ.b. 1 ár",other:"u.þ.b. {{count}} ár"},xYears:{one:"1 ár",other:"{{count}} ár"},overXYears:{one:"meira en 1 ár",other:"meira en {{count}} ár"},almostXYears:{one:"næstum 1 ár",other:"næstum {{count}} ár"}},Eot=function(t,n,r){var a,i=Sot[t];return typeof i=="string"?a=i:n===1?a=i.one:a=i.other.replace("{{count}}",n.toString()),r!=null&&r.addSuffix?r.comparison&&r.comparison>0?"í "+a:a+" síðan":a},Tot={full:"EEEE, do MMMM y",long:"do MMMM y",medium:"do MMM y",short:"d.MM.y"},Cot={full:"'kl'. HH:mm:ss zzzz",long:"HH:mm:ss z",medium:"HH:mm:ss",short:"HH:mm"},kot={full:"{{date}} 'kl.' {{time}}",long:"{{date}} 'kl.' {{time}}",medium:"{{date}} {{time}}",short:"{{date}} {{time}}"},xot={date:Ne({formats:Tot,defaultWidth:"full"}),time:Ne({formats:Cot,defaultWidth:"full"}),dateTime:Ne({formats:kot,defaultWidth:"full"})},_ot={lastWeek:"'síðasta' dddd 'kl.' p",yesterday:"'í gær kl.' p",today:"'í dag kl.' p",tomorrow:"'á morgun kl.' p",nextWeek:"dddd 'kl.' p",other:"P"},Oot=function(t,n,r,a){return _ot[t]},Rot={narrow:["f.Kr.","e.Kr."],abbreviated:["f.Kr.","e.Kr."],wide:["fyrir Krist","eftir Krist"]},Pot={narrow:["1","2","3","4"],abbreviated:["1F","2F","3F","4F"],wide:["1. fjórðungur","2. fjórðungur","3. fjórðungur","4. fjórðungur"]},Aot={narrow:["J","F","M","A","M","J","J","Á","S","Ó","N","D"],abbreviated:["jan.","feb.","mars","apríl","maí","júní","júlí","ágúst","sept.","okt.","nóv.","des."],wide:["janúar","febrúar","mars","apríl","maí","júní","júlí","ágúst","september","október","nóvember","desember"]},Not={narrow:["S","M","Þ","M","F","F","L"],short:["Su","Má","Þr","Mi","Fi","Fö","La"],abbreviated:["sun.","mán.","þri.","mið.","fim.","fös.","lau."],wide:["sunnudagur","mánudagur","þriðjudagur","miðvikudagur","fimmtudagur","föstudagur","laugardagur"]},Mot={narrow:{am:"f",pm:"e",midnight:"miðnætti",noon:"hádegi",morning:"morgunn",afternoon:"síðdegi",evening:"kvöld",night:"nótt"},abbreviated:{am:"f.h.",pm:"e.h.",midnight:"miðnætti",noon:"hádegi",morning:"morgunn",afternoon:"síðdegi",evening:"kvöld",night:"nótt"},wide:{am:"fyrir hádegi",pm:"eftir hádegi",midnight:"miðnætti",noon:"hádegi",morning:"morgunn",afternoon:"síðdegi",evening:"kvöld",night:"nótt"}},Iot={narrow:{am:"f",pm:"e",midnight:"á miðnætti",noon:"á hádegi",morning:"að morgni",afternoon:"síðdegis",evening:"um kvöld",night:"um nótt"},abbreviated:{am:"f.h.",pm:"e.h.",midnight:"á miðnætti",noon:"á hádegi",morning:"að morgni",afternoon:"síðdegis",evening:"um kvöld",night:"um nótt"},wide:{am:"fyrir hádegi",pm:"eftir hádegi",midnight:"á miðnætti",noon:"á hádegi",morning:"að morgni",afternoon:"síðdegis",evening:"um kvöld",night:"um nótt"}},Dot=function(t,n){var r=Number(t);return r+"."},$ot={ordinalNumber:Dot,era:oe({values:Rot,defaultWidth:"wide"}),quarter:oe({values:Pot,defaultWidth:"wide",argumentCallback:function(t){return t-1}}),month:oe({values:Aot,defaultWidth:"wide"}),day:oe({values:Not,defaultWidth:"wide"}),dayPeriod:oe({values:Mot,defaultWidth:"wide",formattingValues:Iot,defaultFormattingWidth:"wide"})},Lot=/^(\d+)(\.)?/i,Fot=/\d+(\.)?/i,jot={narrow:/^(f\.Kr\.|e\.Kr\.)/i,abbreviated:/^(f\.Kr\.|e\.Kr\.)/i,wide:/^(fyrir Krist|eftir Krist)/i},Uot={any:[/^(f\.Kr\.)/i,/^(e\.Kr\.)/i]},Bot={narrow:/^[1234]\.?/i,abbreviated:/^q[1234]\.?/i,wide:/^[1234]\.? fjórðungur/i},Wot={any:[/1\.?/i,/2\.?/i,/3\.?/i,/4\.?/i]},zot={narrow:/^[jfmásónd]/i,abbreviated:/^(jan\.|feb\.|mars\.|apríl\.|maí|júní|júlí|águst|sep\.|oct\.|nov\.|dec\.)/i,wide:/^(januar|febrúar|mars|apríl|maí|júní|júlí|águst|september|október|nóvember|desember)/i},qot={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^á/i,/^s/i,/^ó/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^maí/i,/^jún/i,/^júl/i,/^áu/i,/^s/i,/^ó/i,/^n/i,/^d/i]},Hot={narrow:/^[smtwf]/i,short:/^(su|má|þr|mi|fi|fö|la)/i,abbreviated:/^(sun|mán|þri|mið|fim|fös|lau)\.?/i,wide:/^(sunnudagur|mánudagur|þriðjudagur|miðvikudagur|fimmtudagur|föstudagur|laugardagur)/i},Vot={narrow:[/^s/i,/^m/i,/^þ/i,/^m/i,/^f/i,/^f/i,/^l/i],any:[/^su/i,/^má/i,/^þr/i,/^mi/i,/^fi/i,/^fö/i,/^la/i]},Got={narrow:/^(f|e|síðdegis|(á|að|um) (morgni|kvöld|nótt|miðnætti))/i,any:/^(fyrir hádegi|eftir hádegi|[ef]\.?h\.?|síðdegis|morgunn|(á|að|um) (morgni|kvöld|nótt|miðnætti))/i},Yot={any:{am:/^f/i,pm:/^e/i,midnight:/^mi/i,noon:/^há/i,morning:/morgunn/i,afternoon:/síðdegi/i,evening:/kvöld/i,night:/nótt/i}},Kot={ordinalNumber:Xt({matchPattern:Lot,parsePattern:Fot,valueCallback:function(t){return parseInt(t,10)}}),era:se({matchPatterns:jot,defaultMatchWidth:"wide",parsePatterns:Uot,defaultParseWidth:"any"}),quarter:se({matchPatterns:Bot,defaultMatchWidth:"wide",parsePatterns:Wot,defaultParseWidth:"any",valueCallback:function(t){return t+1}}),month:se({matchPatterns:zot,defaultMatchWidth:"wide",parsePatterns:qot,defaultParseWidth:"any"}),day:se({matchPatterns:Hot,defaultMatchWidth:"wide",parsePatterns:Vot,defaultParseWidth:"any"}),dayPeriod:se({matchPatterns:Got,defaultMatchWidth:"any",parsePatterns:Yot,defaultParseWidth:"any"})},Xot={code:"is",formatDistance:Eot,formatLong:xot,formatRelative:Oot,localize:$ot,match:Kot,options:{weekStartsOn:1,firstWeekContainsDate:4}};const Qot=Object.freeze(Object.defineProperty({__proto__:null,default:Xot},Symbol.toStringTag,{value:"Module"})),Jot=jt(Qot);var Zot={lessThanXSeconds:{one:"meno di un secondo",other:"meno di {{count}} secondi"},xSeconds:{one:"un secondo",other:"{{count}} secondi"},halfAMinute:"alcuni secondi",lessThanXMinutes:{one:"meno di un minuto",other:"meno di {{count}} minuti"},xMinutes:{one:"un minuto",other:"{{count}} minuti"},aboutXHours:{one:"circa un'ora",other:"circa {{count}} ore"},xHours:{one:"un'ora",other:"{{count}} ore"},xDays:{one:"un giorno",other:"{{count}} giorni"},aboutXWeeks:{one:"circa una settimana",other:"circa {{count}} settimane"},xWeeks:{one:"una settimana",other:"{{count}} settimane"},aboutXMonths:{one:"circa un mese",other:"circa {{count}} mesi"},xMonths:{one:"un mese",other:"{{count}} mesi"},aboutXYears:{one:"circa un anno",other:"circa {{count}} anni"},xYears:{one:"un anno",other:"{{count}} anni"},overXYears:{one:"più di un anno",other:"più di {{count}} anni"},almostXYears:{one:"quasi un anno",other:"quasi {{count}} anni"}},est=function(t,n,r){var a,i=Zot[t];return typeof i=="string"?a=i:n===1?a=i.one:a=i.other.replace("{{count}}",n.toString()),r!=null&&r.addSuffix?r.comparison&&r.comparison>0?"tra "+a:a+" fa":a},tst={full:"EEEE d MMMM y",long:"d MMMM y",medium:"d MMM y",short:"dd/MM/y"},nst={full:"HH:mm:ss zzzz",long:"HH:mm:ss z",medium:"HH:mm:ss",short:"HH:mm"},rst={full:"{{date}} {{time}}",long:"{{date}} {{time}}",medium:"{{date}} {{time}}",short:"{{date}} {{time}}"},ast={date:Ne({formats:tst,defaultWidth:"full"}),time:Ne({formats:nst,defaultWidth:"full"}),dateTime:Ne({formats:rst,defaultWidth:"full"})},Z4=["domenica","lunedì","martedì","mercoledì","giovedì","venerdì","sabato"];function ist(e){switch(e){case 0:return"'domenica scorsa alle' p";default:return"'"+Z4[e]+" scorso alle' p"}}function yY(e){return"'"+Z4[e]+" alle' p"}function ost(e){switch(e){case 0:return"'domenica prossima alle' p";default:return"'"+Z4[e]+" prossimo alle' p"}}var sst={lastWeek:function(t,n,r){var a=t.getUTCDay();return Ei(t,n,r)?yY(a):ist(a)},yesterday:"'ieri alle' p",today:"'oggi alle' p",tomorrow:"'domani alle' p",nextWeek:function(t,n,r){var a=t.getUTCDay();return Ei(t,n,r)?yY(a):ost(a)},other:"P"},lst=function(t,n,r,a){var i=sst[t];return typeof i=="function"?i(n,r,a):i},ust={narrow:["aC","dC"],abbreviated:["a.C.","d.C."],wide:["avanti Cristo","dopo Cristo"]},cst={narrow:["1","2","3","4"],abbreviated:["T1","T2","T3","T4"],wide:["1º trimestre","2º trimestre","3º trimestre","4º trimestre"]},dst={narrow:["G","F","M","A","M","G","L","A","S","O","N","D"],abbreviated:["gen","feb","mar","apr","mag","giu","lug","ago","set","ott","nov","dic"],wide:["gennaio","febbraio","marzo","aprile","maggio","giugno","luglio","agosto","settembre","ottobre","novembre","dicembre"]},fst={narrow:["D","L","M","M","G","V","S"],short:["dom","lun","mar","mer","gio","ven","sab"],abbreviated:["dom","lun","mar","mer","gio","ven","sab"],wide:["domenica","lunedì","martedì","mercoledì","giovedì","venerdì","sabato"]},pst={narrow:{am:"m.",pm:"p.",midnight:"mezzanotte",noon:"mezzogiorno",morning:"mattina",afternoon:"pomeriggio",evening:"sera",night:"notte"},abbreviated:{am:"AM",pm:"PM",midnight:"mezzanotte",noon:"mezzogiorno",morning:"mattina",afternoon:"pomeriggio",evening:"sera",night:"notte"},wide:{am:"AM",pm:"PM",midnight:"mezzanotte",noon:"mezzogiorno",morning:"mattina",afternoon:"pomeriggio",evening:"sera",night:"notte"}},hst={narrow:{am:"m.",pm:"p.",midnight:"mezzanotte",noon:"mezzogiorno",morning:"di mattina",afternoon:"del pomeriggio",evening:"di sera",night:"di notte"},abbreviated:{am:"AM",pm:"PM",midnight:"mezzanotte",noon:"mezzogiorno",morning:"di mattina",afternoon:"del pomeriggio",evening:"di sera",night:"di notte"},wide:{am:"AM",pm:"PM",midnight:"mezzanotte",noon:"mezzogiorno",morning:"di mattina",afternoon:"del pomeriggio",evening:"di sera",night:"di notte"}},mst=function(t,n){var r=Number(t);return String(r)},gst={ordinalNumber:mst,era:oe({values:ust,defaultWidth:"wide"}),quarter:oe({values:cst,defaultWidth:"wide",argumentCallback:function(t){return t-1}}),month:oe({values:dst,defaultWidth:"wide"}),day:oe({values:fst,defaultWidth:"wide"}),dayPeriod:oe({values:pst,defaultWidth:"wide",formattingValues:hst,defaultFormattingWidth:"wide"})},vst=/^(\d+)(º)?/i,yst=/\d+/i,bst={narrow:/^(aC|dC)/i,abbreviated:/^(a\.?\s?C\.?|a\.?\s?e\.?\s?v\.?|d\.?\s?C\.?|e\.?\s?v\.?)/i,wide:/^(avanti Cristo|avanti Era Volgare|dopo Cristo|Era Volgare)/i},wst={any:[/^a/i,/^(d|e)/i]},Sst={narrow:/^[1234]/i,abbreviated:/^t[1234]/i,wide:/^[1234](º)? trimestre/i},Est={any:[/1/i,/2/i,/3/i,/4/i]},Tst={narrow:/^[gfmalsond]/i,abbreviated:/^(gen|feb|mar|apr|mag|giu|lug|ago|set|ott|nov|dic)/i,wide:/^(gennaio|febbraio|marzo|aprile|maggio|giugno|luglio|agosto|settembre|ottobre|novembre|dicembre)/i},Cst={narrow:[/^g/i,/^f/i,/^m/i,/^a/i,/^m/i,/^g/i,/^l/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ge/i,/^f/i,/^mar/i,/^ap/i,/^mag/i,/^gi/i,/^l/i,/^ag/i,/^s/i,/^o/i,/^n/i,/^d/i]},kst={narrow:/^[dlmgvs]/i,short:/^(do|lu|ma|me|gi|ve|sa)/i,abbreviated:/^(dom|lun|mar|mer|gio|ven|sab)/i,wide:/^(domenica|luned[i|ì]|marted[i|ì]|mercoled[i|ì]|gioved[i|ì]|venerd[i|ì]|sabato)/i},xst={narrow:[/^d/i,/^l/i,/^m/i,/^m/i,/^g/i,/^v/i,/^s/i],any:[/^d/i,/^l/i,/^ma/i,/^me/i,/^g/i,/^v/i,/^s/i]},_st={narrow:/^(a|m\.|p|mezzanotte|mezzogiorno|(di|del) (mattina|pomeriggio|sera|notte))/i,any:/^([ap]\.?\s?m\.?|mezzanotte|mezzogiorno|(di|del) (mattina|pomeriggio|sera|notte))/i},Ost={any:{am:/^a/i,pm:/^p/i,midnight:/^mezza/i,noon:/^mezzo/i,morning:/mattina/i,afternoon:/pomeriggio/i,evening:/sera/i,night:/notte/i}},Rst={ordinalNumber:Xt({matchPattern:vst,parsePattern:yst,valueCallback:function(t){return parseInt(t,10)}}),era:se({matchPatterns:bst,defaultMatchWidth:"wide",parsePatterns:wst,defaultParseWidth:"any"}),quarter:se({matchPatterns:Sst,defaultMatchWidth:"wide",parsePatterns:Est,defaultParseWidth:"any",valueCallback:function(t){return t+1}}),month:se({matchPatterns:Tst,defaultMatchWidth:"wide",parsePatterns:Cst,defaultParseWidth:"any"}),day:se({matchPatterns:kst,defaultMatchWidth:"wide",parsePatterns:xst,defaultParseWidth:"any"}),dayPeriod:se({matchPatterns:_st,defaultMatchWidth:"any",parsePatterns:Ost,defaultParseWidth:"any"})},Pst={code:"it",formatDistance:est,formatLong:ast,formatRelative:lst,localize:gst,match:Rst,options:{weekStartsOn:1,firstWeekContainsDate:4}};const Ast=Object.freeze(Object.defineProperty({__proto__:null,default:Pst},Symbol.toStringTag,{value:"Module"})),Nst=jt(Ast);var Mst={lessThanXSeconds:{one:"1秒未満",other:"{{count}}秒未満",oneWithSuffix:"約1秒",otherWithSuffix:"約{{count}}秒"},xSeconds:{one:"1秒",other:"{{count}}秒"},halfAMinute:"30秒",lessThanXMinutes:{one:"1分未満",other:"{{count}}分未満",oneWithSuffix:"約1分",otherWithSuffix:"約{{count}}分"},xMinutes:{one:"1分",other:"{{count}}分"},aboutXHours:{one:"約1時間",other:"約{{count}}時間"},xHours:{one:"1時間",other:"{{count}}時間"},xDays:{one:"1日",other:"{{count}}日"},aboutXWeeks:{one:"約1週間",other:"約{{count}}週間"},xWeeks:{one:"1週間",other:"{{count}}週間"},aboutXMonths:{one:"約1か月",other:"約{{count}}か月"},xMonths:{one:"1か月",other:"{{count}}か月"},aboutXYears:{one:"約1年",other:"約{{count}}年"},xYears:{one:"1年",other:"{{count}}年"},overXYears:{one:"1年以上",other:"{{count}}年以上"},almostXYears:{one:"1年近く",other:"{{count}}年近く"}},Ist=function(t,n,r){r=r||{};var a,i=Mst[t];return typeof i=="string"?a=i:n===1?r.addSuffix&&i.oneWithSuffix?a=i.oneWithSuffix:a=i.one:r.addSuffix&&i.otherWithSuffix?a=i.otherWithSuffix.replace("{{count}}",String(n)):a=i.other.replace("{{count}}",String(n)),r.addSuffix?r.comparison&&r.comparison>0?a+"後":a+"前":a},Dst={full:"y年M月d日EEEE",long:"y年M月d日",medium:"y/MM/dd",short:"y/MM/dd"},$st={full:"H時mm分ss秒 zzzz",long:"H:mm:ss z",medium:"H:mm:ss",short:"H:mm"},Lst={full:"{{date}} {{time}}",long:"{{date}} {{time}}",medium:"{{date}} {{time}}",short:"{{date}} {{time}}"},Fst={date:Ne({formats:Dst,defaultWidth:"full"}),time:Ne({formats:$st,defaultWidth:"full"}),dateTime:Ne({formats:Lst,defaultWidth:"full"})},jst={lastWeek:"先週のeeeeのp",yesterday:"昨日のp",today:"今日のp",tomorrow:"明日のp",nextWeek:"翌週のeeeeのp",other:"P"},Ust=function(t,n,r,a){return jst[t]},Bst={narrow:["BC","AC"],abbreviated:["紀元前","西暦"],wide:["紀元前","西暦"]},Wst={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["第1四半期","第2四半期","第3四半期","第4四半期"]},zst={narrow:["1","2","3","4","5","6","7","8","9","10","11","12"],abbreviated:["1月","2月","3月","4月","5月","6月","7月","8月","9月","10月","11月","12月"],wide:["1月","2月","3月","4月","5月","6月","7月","8月","9月","10月","11月","12月"]},qst={narrow:["日","月","火","水","木","金","土"],short:["日","月","火","水","木","金","土"],abbreviated:["日","月","火","水","木","金","土"],wide:["日曜日","月曜日","火曜日","水曜日","木曜日","金曜日","土曜日"]},Hst={narrow:{am:"午前",pm:"午後",midnight:"深夜",noon:"正午",morning:"朝",afternoon:"午後",evening:"夜",night:"深夜"},abbreviated:{am:"午前",pm:"午後",midnight:"深夜",noon:"正午",morning:"朝",afternoon:"午後",evening:"夜",night:"深夜"},wide:{am:"午前",pm:"午後",midnight:"深夜",noon:"正午",morning:"朝",afternoon:"午後",evening:"夜",night:"深夜"}},Vst={narrow:{am:"午前",pm:"午後",midnight:"深夜",noon:"正午",morning:"朝",afternoon:"午後",evening:"夜",night:"深夜"},abbreviated:{am:"午前",pm:"午後",midnight:"深夜",noon:"正午",morning:"朝",afternoon:"午後",evening:"夜",night:"深夜"},wide:{am:"午前",pm:"午後",midnight:"深夜",noon:"正午",morning:"朝",afternoon:"午後",evening:"夜",night:"深夜"}},Gst=function(t,n){var r=Number(t),a=String(n==null?void 0:n.unit);switch(a){case"year":return"".concat(r,"年");case"quarter":return"第".concat(r,"四半期");case"month":return"".concat(r,"月");case"week":return"第".concat(r,"週");case"date":return"".concat(r,"日");case"hour":return"".concat(r,"時");case"minute":return"".concat(r,"分");case"second":return"".concat(r,"秒");default:return"".concat(r)}},Yst={ordinalNumber:Gst,era:oe({values:Bst,defaultWidth:"wide"}),quarter:oe({values:Wst,defaultWidth:"wide",argumentCallback:function(t){return Number(t)-1}}),month:oe({values:zst,defaultWidth:"wide"}),day:oe({values:qst,defaultWidth:"wide"}),dayPeriod:oe({values:Hst,defaultWidth:"wide",formattingValues:Vst,defaultFormattingWidth:"wide"})},Kst=/^第?\d+(年|四半期|月|週|日|時|分|秒)?/i,Xst=/\d+/i,Qst={narrow:/^(B\.?C\.?|A\.?D\.?)/i,abbreviated:/^(紀元[前後]|西暦)/i,wide:/^(紀元[前後]|西暦)/i},Jst={narrow:[/^B/i,/^A/i],any:[/^(紀元前)/i,/^(西暦|紀元後)/i]},Zst={narrow:/^[1234]/i,abbreviated:/^Q[1234]/i,wide:/^第[1234一二三四1234]四半期/i},elt={any:[/(1|一|1)/i,/(2|二|2)/i,/(3|三|3)/i,/(4|四|4)/i]},tlt={narrow:/^([123456789]|1[012])/,abbreviated:/^([123456789]|1[012])月/i,wide:/^([123456789]|1[012])月/i},nlt={any:[/^1\D/,/^2/,/^3/,/^4/,/^5/,/^6/,/^7/,/^8/,/^9/,/^10/,/^11/,/^12/]},rlt={narrow:/^[日月火水木金土]/,short:/^[日月火水木金土]/,abbreviated:/^[日月火水木金土]/,wide:/^[日月火水木金土]曜日/},alt={any:[/^日/,/^月/,/^火/,/^水/,/^木/,/^金/,/^土/]},ilt={any:/^(AM|PM|午前|午後|正午|深夜|真夜中|夜|朝)/i},olt={any:{am:/^(A|午前)/i,pm:/^(P|午後)/i,midnight:/^深夜|真夜中/i,noon:/^正午/i,morning:/^朝/i,afternoon:/^午後/i,evening:/^夜/i,night:/^深夜/i}},slt={ordinalNumber:Xt({matchPattern:Kst,parsePattern:Xst,valueCallback:function(t){return parseInt(t,10)}}),era:se({matchPatterns:Qst,defaultMatchWidth:"wide",parsePatterns:Jst,defaultParseWidth:"any"}),quarter:se({matchPatterns:Zst,defaultMatchWidth:"wide",parsePatterns:elt,defaultParseWidth:"any",valueCallback:function(t){return t+1}}),month:se({matchPatterns:tlt,defaultMatchWidth:"wide",parsePatterns:nlt,defaultParseWidth:"any"}),day:se({matchPatterns:rlt,defaultMatchWidth:"wide",parsePatterns:alt,defaultParseWidth:"any"}),dayPeriod:se({matchPatterns:ilt,defaultMatchWidth:"any",parsePatterns:olt,defaultParseWidth:"any"})},llt={code:"ja",formatDistance:Ist,formatLong:Fst,formatRelative:Ust,localize:Yst,match:slt,options:{weekStartsOn:0,firstWeekContainsDate:1}};const ult=Object.freeze(Object.defineProperty({__proto__:null,default:llt},Symbol.toStringTag,{value:"Module"})),clt=jt(ult);var dlt={lessThanXSeconds:{past:"{{count}} წამზე ნაკლები ხნის წინ",present:"{{count}} წამზე ნაკლები",future:"{{count}} წამზე ნაკლებში"},xSeconds:{past:"{{count}} წამის წინ",present:"{{count}} წამი",future:"{{count}} წამში"},halfAMinute:{past:"ნახევარი წუთის წინ",present:"ნახევარი წუთი",future:"ნახევარი წუთში"},lessThanXMinutes:{past:"{{count}} წუთზე ნაკლები ხნის წინ",present:"{{count}} წუთზე ნაკლები",future:"{{count}} წუთზე ნაკლებში"},xMinutes:{past:"{{count}} წუთის წინ",present:"{{count}} წუთი",future:"{{count}} წუთში"},aboutXHours:{past:"დაახლოებით {{count}} საათის წინ",present:"დაახლოებით {{count}} საათი",future:"დაახლოებით {{count}} საათში"},xHours:{past:"{{count}} საათის წინ",present:"{{count}} საათი",future:"{{count}} საათში"},xDays:{past:"{{count}} დღის წინ",present:"{{count}} დღე",future:"{{count}} დღეში"},aboutXWeeks:{past:"დაახლოებით {{count}} კვირას წინ",present:"დაახლოებით {{count}} კვირა",future:"დაახლოებით {{count}} კვირაში"},xWeeks:{past:"{{count}} კვირას კვირა",present:"{{count}} კვირა",future:"{{count}} კვირაში"},aboutXMonths:{past:"დაახლოებით {{count}} თვის წინ",present:"დაახლოებით {{count}} თვე",future:"დაახლოებით {{count}} თვეში"},xMonths:{past:"{{count}} თვის წინ",present:"{{count}} თვე",future:"{{count}} თვეში"},aboutXYears:{past:"დაახლოებით {{count}} წლის წინ",present:"დაახლოებით {{count}} წელი",future:"დაახლოებით {{count}} წელში"},xYears:{past:"{{count}} წლის წინ",present:"{{count}} წელი",future:"{{count}} წელში"},overXYears:{past:"{{count}} წელზე მეტი ხნის წინ",present:"{{count}} წელზე მეტი",future:"{{count}} წელზე მეტი ხნის შემდეგ"},almostXYears:{past:"თითქმის {{count}} წლის წინ",present:"თითქმის {{count}} წელი",future:"თითქმის {{count}} წელში"}},flt=function(t,n,r){var a,i=dlt[t];return typeof i=="string"?a=i:r!=null&&r.addSuffix&&r.comparison&&r.comparison>0?a=i.future.replace("{{count}}",String(n)):r!=null&&r.addSuffix?a=i.past.replace("{{count}}",String(n)):a=i.present.replace("{{count}}",String(n)),a},plt={full:"EEEE, do MMMM, y",long:"do, MMMM, y",medium:"d, MMM, y",short:"dd/MM/yyyy"},hlt={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},mlt={full:"{{date}} {{time}}'-ზე'",long:"{{date}} {{time}}'-ზე'",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},glt={date:Ne({formats:plt,defaultWidth:"full"}),time:Ne({formats:hlt,defaultWidth:"full"}),dateTime:Ne({formats:mlt,defaultWidth:"full"})},vlt={lastWeek:"'წინა' eeee p'-ზე'",yesterday:"'გუშინ' p'-ზე'",today:"'დღეს' p'-ზე'",tomorrow:"'ხვალ' p'-ზე'",nextWeek:"'შემდეგი' eeee p'-ზე'",other:"P"},ylt=function(t,n,r,a){return vlt[t]},blt={narrow:["ჩ.წ-მდე","ჩ.წ"],abbreviated:["ჩვ.წ-მდე","ჩვ.წ"],wide:["ჩვენს წელთაღრიცხვამდე","ჩვენი წელთაღრიცხვით"]},wlt={narrow:["1","2","3","4"],abbreviated:["1-ლი კვ","2-ე კვ","3-ე კვ","4-ე კვ"],wide:["1-ლი კვარტალი","2-ე კვარტალი","3-ე კვარტალი","4-ე კვარტალი"]},Slt={narrow:["ია","თე","მა","აპ","მს","ვნ","ვლ","აგ","სე","ოქ","ნო","დე"],abbreviated:["იან","თებ","მარ","აპრ","მაი","ივნ","ივლ","აგვ","სექ","ოქტ","ნოე","დეკ"],wide:["იანვარი","თებერვალი","მარტი","აპრილი","მაისი","ივნისი","ივლისი","აგვისტო","სექტემბერი","ოქტომბერი","ნოემბერი","დეკემბერი"]},Elt={narrow:["კვ","ორ","სა","ოთ","ხუ","პა","შა"],short:["კვი","ორშ","სამ","ოთხ","ხუთ","პარ","შაბ"],abbreviated:["კვი","ორშ","სამ","ოთხ","ხუთ","პარ","შაბ"],wide:["კვირა","ორშაბათი","სამშაბათი","ოთხშაბათი","ხუთშაბათი","პარასკევი","შაბათი"]},Tlt={narrow:{am:"a",pm:"p",midnight:"შუაღამე",noon:"შუადღე",morning:"დილა",afternoon:"საღამო",evening:"საღამო",night:"ღამე"},abbreviated:{am:"AM",pm:"PM",midnight:"შუაღამე",noon:"შუადღე",morning:"დილა",afternoon:"საღამო",evening:"საღამო",night:"ღამე"},wide:{am:"a.m.",pm:"p.m.",midnight:"შუაღამე",noon:"შუადღე",morning:"დილა",afternoon:"საღამო",evening:"საღამო",night:"ღამე"}},Clt={narrow:{am:"a",pm:"p",midnight:"შუაღამით",noon:"შუადღისას",morning:"დილით",afternoon:"ნაშუადღევს",evening:"საღამოს",night:"ღამით"},abbreviated:{am:"AM",pm:"PM",midnight:"შუაღამით",noon:"შუადღისას",morning:"დილით",afternoon:"ნაშუადღევს",evening:"საღამოს",night:"ღამით"},wide:{am:"a.m.",pm:"p.m.",midnight:"შუაღამით",noon:"შუადღისას",morning:"დილით",afternoon:"ნაშუადღევს",evening:"საღამოს",night:"ღამით"}},klt=function(t){var n=Number(t);return n===1?n+"-ლი":n+"-ე"},xlt={ordinalNumber:klt,era:oe({values:blt,defaultWidth:"wide"}),quarter:oe({values:wlt,defaultWidth:"wide",argumentCallback:function(t){return t-1}}),month:oe({values:Slt,defaultWidth:"wide"}),day:oe({values:Elt,defaultWidth:"wide"}),dayPeriod:oe({values:Tlt,defaultWidth:"wide",formattingValues:Clt,defaultFormattingWidth:"wide"})},_lt=/^(\d+)(-ლი|-ე)?/i,Olt=/\d+/i,Rlt={narrow:/^(ჩვ?\.წ)/i,abbreviated:/^(ჩვ?\.წ)/i,wide:/^(ჩვენს წელთაღრიცხვამდე|ქრისტეშობამდე|ჩვენი წელთაღრიცხვით|ქრისტეშობიდან)/i},Plt={any:[/^(ჩვენს წელთაღრიცხვამდე|ქრისტეშობამდე)/i,/^(ჩვენი წელთაღრიცხვით|ქრისტეშობიდან)/i]},Alt={narrow:/^[1234]/i,abbreviated:/^[1234]-(ლი|ე)? კვ/i,wide:/^[1234]-(ლი|ე)? კვარტალი/i},Nlt={any:[/1/i,/2/i,/3/i,/4/i]},Mlt={any:/^(ია|თე|მა|აპ|მს|ვნ|ვლ|აგ|სე|ოქ|ნო|დე)/i},Ilt={any:[/^ია/i,/^თ/i,/^მარ/i,/^აპ/i,/^მაი/i,/^ი?ვნ/i,/^ი?ვლ/i,/^აგ/i,/^ს/i,/^ო/i,/^ნ/i,/^დ/i]},Dlt={narrow:/^(კვ|ორ|სა|ოთ|ხუ|პა|შა)/i,short:/^(კვი|ორშ|სამ|ოთხ|ხუთ|პარ|შაბ)/i,wide:/^(კვირა|ორშაბათი|სამშაბათი|ოთხშაბათი|ხუთშაბათი|პარასკევი|შაბათი)/i},$lt={any:[/^კვ/i,/^ორ/i,/^სა/i,/^ოთ/i,/^ხუ/i,/^პა/i,/^შა/i]},Llt={any:/^([ap]\.?\s?m\.?|შუაღ|დილ)/i},Flt={any:{am:/^a/i,pm:/^p/i,midnight:/^შუაღ/i,noon:/^შუადღ/i,morning:/^დილ/i,afternoon:/ნაშუადღევს/i,evening:/საღამო/i,night:/ღამ/i}},jlt={ordinalNumber:Xt({matchPattern:_lt,parsePattern:Olt,valueCallback:function(t){return parseInt(t,10)}}),era:se({matchPatterns:Rlt,defaultMatchWidth:"wide",parsePatterns:Plt,defaultParseWidth:"any"}),quarter:se({matchPatterns:Alt,defaultMatchWidth:"wide",parsePatterns:Nlt,defaultParseWidth:"any",valueCallback:function(t){return t+1}}),month:se({matchPatterns:Mlt,defaultMatchWidth:"any",parsePatterns:Ilt,defaultParseWidth:"any"}),day:se({matchPatterns:Dlt,defaultMatchWidth:"wide",parsePatterns:$lt,defaultParseWidth:"any"}),dayPeriod:se({matchPatterns:Llt,defaultMatchWidth:"any",parsePatterns:Flt,defaultParseWidth:"any"})},Ult={code:"ka",formatDistance:flt,formatLong:glt,formatRelative:ylt,localize:xlt,match:jlt,options:{weekStartsOn:1,firstWeekContainsDate:1}};const Blt=Object.freeze(Object.defineProperty({__proto__:null,default:Ult},Symbol.toStringTag,{value:"Module"})),Wlt=jt(Blt);var zlt={lessThanXSeconds:{regular:{one:"1 секундтан аз",singularNominative:"{{count}} секундтан аз",singularGenitive:"{{count}} секундтан аз",pluralGenitive:"{{count}} секундтан аз"},future:{one:"бір секундтан кейін",singularNominative:"{{count}} секундтан кейін",singularGenitive:"{{count}} секундтан кейін",pluralGenitive:"{{count}} секундтан кейін"}},xSeconds:{regular:{singularNominative:"{{count}} секунд",singularGenitive:"{{count}} секунд",pluralGenitive:"{{count}} секунд"},past:{singularNominative:"{{count}} секунд бұрын",singularGenitive:"{{count}} секунд бұрын",pluralGenitive:"{{count}} секунд бұрын"},future:{singularNominative:"{{count}} секундтан кейін",singularGenitive:"{{count}} секундтан кейін",pluralGenitive:"{{count}} секундтан кейін"}},halfAMinute:function(t){return t!=null&&t.addSuffix?t.comparison&&t.comparison>0?"жарты минут ішінде":"жарты минут бұрын":"жарты минут"},lessThanXMinutes:{regular:{one:"1 минуттан аз",singularNominative:"{{count}} минуттан аз",singularGenitive:"{{count}} минуттан аз",pluralGenitive:"{{count}} минуттан аз"},future:{one:"минуттан кем ",singularNominative:"{{count}} минуттан кем",singularGenitive:"{{count}} минуттан кем",pluralGenitive:"{{count}} минуттан кем"}},xMinutes:{regular:{singularNominative:"{{count}} минут",singularGenitive:"{{count}} минут",pluralGenitive:"{{count}} минут"},past:{singularNominative:"{{count}} минут бұрын",singularGenitive:"{{count}} минут бұрын",pluralGenitive:"{{count}} минут бұрын"},future:{singularNominative:"{{count}} минуттан кейін",singularGenitive:"{{count}} минуттан кейін",pluralGenitive:"{{count}} минуттан кейін"}},aboutXHours:{regular:{singularNominative:"шамамен {{count}} сағат",singularGenitive:"шамамен {{count}} сағат",pluralGenitive:"шамамен {{count}} сағат"},future:{singularNominative:"шамамен {{count}} сағаттан кейін",singularGenitive:"шамамен {{count}} сағаттан кейін",pluralGenitive:"шамамен {{count}} сағаттан кейін"}},xHours:{regular:{singularNominative:"{{count}} сағат",singularGenitive:"{{count}} сағат",pluralGenitive:"{{count}} сағат"}},xDays:{regular:{singularNominative:"{{count}} күн",singularGenitive:"{{count}} күн",pluralGenitive:"{{count}} күн"},future:{singularNominative:"{{count}} күннен кейін",singularGenitive:"{{count}} күннен кейін",pluralGenitive:"{{count}} күннен кейін"}},aboutXWeeks:{type:"weeks",one:"шамамен 1 апта",other:"шамамен {{count}} апта"},xWeeks:{type:"weeks",one:"1 апта",other:"{{count}} апта"},aboutXMonths:{regular:{singularNominative:"шамамен {{count}} ай",singularGenitive:"шамамен {{count}} ай",pluralGenitive:"шамамен {{count}} ай"},future:{singularNominative:"шамамен {{count}} айдан кейін",singularGenitive:"шамамен {{count}} айдан кейін",pluralGenitive:"шамамен {{count}} айдан кейін"}},xMonths:{regular:{singularNominative:"{{count}} ай",singularGenitive:"{{count}} ай",pluralGenitive:"{{count}} ай"}},aboutXYears:{regular:{singularNominative:"шамамен {{count}} жыл",singularGenitive:"шамамен {{count}} жыл",pluralGenitive:"шамамен {{count}} жыл"},future:{singularNominative:"шамамен {{count}} жылдан кейін",singularGenitive:"шамамен {{count}} жылдан кейін",pluralGenitive:"шамамен {{count}} жылдан кейін"}},xYears:{regular:{singularNominative:"{{count}} жыл",singularGenitive:"{{count}} жыл",pluralGenitive:"{{count}} жыл"},future:{singularNominative:"{{count}} жылдан кейін",singularGenitive:"{{count}} жылдан кейін",pluralGenitive:"{{count}} жылдан кейін"}},overXYears:{regular:{singularNominative:"{{count}} жылдан астам",singularGenitive:"{{count}} жылдан астам",pluralGenitive:"{{count}} жылдан астам"},future:{singularNominative:"{{count}} жылдан астам",singularGenitive:"{{count}} жылдан астам",pluralGenitive:"{{count}} жылдан астам"}},almostXYears:{regular:{singularNominative:"{{count}} жылға жақын",singularGenitive:"{{count}} жылға жақын",pluralGenitive:"{{count}} жылға жақын"},future:{singularNominative:"{{count}} жылдан кейін",singularGenitive:"{{count}} жылдан кейін",pluralGenitive:"{{count}} жылдан кейін"}}};function b1(e,t){if(e.one&&t===1)return e.one;var n=t%10,r=t%100;return n===1&&r!==11?e.singularNominative.replace("{{count}}",String(t)):n>=2&&n<=4&&(r<10||r>20)?e.singularGenitive.replace("{{count}}",String(t)):e.pluralGenitive.replace("{{count}}",String(t))}var qlt=function(t,n,r){var a=zlt[t];return typeof a=="function"?a(r):a.type==="weeks"?n===1?a.one:a.other.replace("{{count}}",String(n)):r!=null&&r.addSuffix?r.comparison&&r.comparison>0?a.future?b1(a.future,n):b1(a.regular,n)+" кейін":a.past?b1(a.past,n):b1(a.regular,n)+" бұрын":b1(a.regular,n)},Hlt={full:"EEEE, do MMMM y 'ж.'",long:"do MMMM y 'ж.'",medium:"d MMM y 'ж.'",short:"dd.MM.yyyy"},Vlt={full:"H:mm:ss zzzz",long:"H:mm:ss z",medium:"H:mm:ss",short:"H:mm"},Glt={any:"{{date}}, {{time}}"},Ylt={date:Ne({formats:Hlt,defaultWidth:"full"}),time:Ne({formats:Vlt,defaultWidth:"full"}),dateTime:Ne({formats:Glt,defaultWidth:"any"})},eU=["жексенбіде","дүйсенбіде","сейсенбіде","сәрсенбіде","бейсенбіде","жұмада","сенбіде"];function Klt(e){var t=eU[e];return"'өткен "+t+" сағат' p'-де'"}function bY(e){var t=eU[e];return"'"+t+" сағат' p'-де'"}function Xlt(e){var t=eU[e];return"'келесі "+t+" сағат' p'-де'"}var Qlt={lastWeek:function(t,n,r){var a=t.getUTCDay();return Ei(t,n,r)?bY(a):Klt(a)},yesterday:"'кеше сағат' p'-де'",today:"'бүгін сағат' p'-де'",tomorrow:"'ертең сағат' p'-де'",nextWeek:function(t,n,r){var a=t.getUTCDay();return Ei(t,n,r)?bY(a):Xlt(a)},other:"P"},Jlt=function(t,n,r,a){var i=Qlt[t];return typeof i=="function"?i(n,r,a):i},Zlt={narrow:["б.з.д.","б.з."],abbreviated:["б.з.д.","б.з."],wide:["біздің заманымызға дейін","біздің заманымыз"]},eut={narrow:["1","2","3","4"],abbreviated:["1-ші тоқ.","2-ші тоқ.","3-ші тоқ.","4-ші тоқ."],wide:["1-ші тоқсан","2-ші тоқсан","3-ші тоқсан","4-ші тоқсан"]},tut={narrow:["Қ","А","Н","С","М","М","Ш","Т","Қ","Қ","Қ","Ж"],abbreviated:["қаң","ақп","нау","сәу","мам","мау","шіл","там","қыр","қаз","қар","жел"],wide:["қаңтар","ақпан","наурыз","сәуір","мамыр","маусым","шілде","тамыз","қыркүйек","қазан","қараша","желтоқсан"]},nut={narrow:["Қ","А","Н","С","М","М","Ш","Т","Қ","Қ","Қ","Ж"],abbreviated:["қаң","ақп","нау","сәу","мам","мау","шіл","там","қыр","қаз","қар","жел"],wide:["қаңтар","ақпан","наурыз","сәуір","мамыр","маусым","шілде","тамыз","қыркүйек","қазан","қараша","желтоқсан"]},rut={narrow:["Ж","Д","С","С","Б","Ж","С"],short:["жс","дс","сс","ср","бс","жм","сб"],abbreviated:["жс","дс","сс","ср","бс","жм","сб"],wide:["жексенбі","дүйсенбі","сейсенбі","сәрсенбі","бейсенбі","жұма","сенбі"]},aut={narrow:{am:"ТД",pm:"ТК",midnight:"түн ортасы",noon:"түс",morning:"таң",afternoon:"күндіз",evening:"кеш",night:"түн"},wide:{am:"ТД",pm:"ТК",midnight:"түн ортасы",noon:"түс",morning:"таң",afternoon:"күндіз",evening:"кеш",night:"түн"}},iut={narrow:{am:"ТД",pm:"ТК",midnight:"түн ортасында",noon:"түс",morning:"таң",afternoon:"күн",evening:"кеш",night:"түн"},wide:{am:"ТД",pm:"ТК",midnight:"түн ортасында",noon:"түсте",morning:"таңертең",afternoon:"күндіз",evening:"кеште",night:"түнде"}},sL={0:"-ші",1:"-ші",2:"-ші",3:"-ші",4:"-ші",5:"-ші",6:"-шы",7:"-ші",8:"-ші",9:"-шы",10:"-шы",20:"-шы",30:"-шы",40:"-шы",50:"-ші",60:"-шы",70:"-ші",80:"-ші",90:"-шы",100:"-ші"},out=function(t,n){var r=Number(t),a=r%10,i=r>=100?100:null,o=sL[r]||sL[a]||i&&sL[i]||"";return r+o},sut={ordinalNumber:out,era:oe({values:Zlt,defaultWidth:"wide"}),quarter:oe({values:eut,defaultWidth:"wide",argumentCallback:function(t){return t-1}}),month:oe({values:tut,defaultWidth:"wide",formattingValues:nut,defaultFormattingWidth:"wide"}),day:oe({values:rut,defaultWidth:"wide"}),dayPeriod:oe({values:aut,defaultWidth:"any",formattingValues:iut,defaultFormattingWidth:"wide"})},lut=/^(\d+)(-?(ші|шы))?/i,uut=/\d+/i,cut={narrow:/^((б )?з\.?\s?д\.?)/i,abbreviated:/^((б )?з\.?\s?д\.?)/i,wide:/^(біздің заманымызға дейін|біздің заманымыз|біздің заманымыздан)/i},dut={any:[/^б/i,/^з/i]},fut={narrow:/^[1234]/i,abbreviated:/^[1234](-?ші)? тоқ.?/i,wide:/^[1234](-?ші)? тоқсан/i},put={any:[/1/i,/2/i,/3/i,/4/i]},hut={narrow:/^(қ|а|н|с|м|мау|ш|т|қыр|қаз|қар|ж)/i,abbreviated:/^(қаң|ақп|нау|сәу|мам|мау|шіл|там|қыр|қаз|қар|жел)/i,wide:/^(қаңтар|ақпан|наурыз|сәуір|мамыр|маусым|шілде|тамыз|қыркүйек|қазан|қараша|желтоқсан)/i},mut={narrow:[/^қ/i,/^а/i,/^н/i,/^с/i,/^м/i,/^м/i,/^ш/i,/^т/i,/^қ/i,/^қ/i,/^қ/i,/^ж/i],abbreviated:[/^қаң/i,/^ақп/i,/^нау/i,/^сәу/i,/^мам/i,/^мау/i,/^шіл/i,/^там/i,/^қыр/i,/^қаз/i,/^қар/i,/^жел/i],any:[/^қ/i,/^а/i,/^н/i,/^с/i,/^м/i,/^м/i,/^ш/i,/^т/i,/^қ/i,/^қ/i,/^қ/i,/^ж/i]},gut={narrow:/^(ж|д|с|с|б|ж|с)/i,short:/^(жс|дс|сс|ср|бс|жм|сб)/i,wide:/^(жексенбі|дүйсенбі|сейсенбі|сәрсенбі|бейсенбі|жұма|сенбі)/i},vut={narrow:[/^ж/i,/^д/i,/^с/i,/^с/i,/^б/i,/^ж/i,/^с/i],short:[/^жс/i,/^дс/i,/^сс/i,/^ср/i,/^бс/i,/^жм/i,/^сб/i],any:[/^ж[ек]/i,/^д[үй]/i,/^сe[й]/i,/^сә[р]/i,/^б[ей]/i,/^ж[ұм]/i,/^се[н]/i]},yut={narrow:/^Т\.?\s?[ДК]\.?|түн ортасында|((түсте|таңертең|таңда|таңертең|таңмен|таң|күндіз|күн|кеште|кеш|түнде|түн)\.?)/i,wide:/^Т\.?\s?[ДК]\.?|түн ортасында|((түсте|таңертең|таңда|таңертең|таңмен|таң|күндіз|күн|кеште|кеш|түнде|түн)\.?)/i,any:/^Т\.?\s?[ДК]\.?|түн ортасында|((түсте|таңертең|таңда|таңертең|таңмен|таң|күндіз|күн|кеште|кеш|түнде|түн)\.?)/i},but={any:{am:/^ТД/i,pm:/^ТК/i,midnight:/^түн орта/i,noon:/^күндіз/i,morning:/таң/i,afternoon:/түс/i,evening:/кеш/i,night:/түн/i}},wut={ordinalNumber:Xt({matchPattern:lut,parsePattern:uut,valueCallback:function(t){return parseInt(t,10)}}),era:se({matchPatterns:cut,defaultMatchWidth:"wide",parsePatterns:dut,defaultParseWidth:"any"}),quarter:se({matchPatterns:fut,defaultMatchWidth:"wide",parsePatterns:put,defaultParseWidth:"any",valueCallback:function(t){return t+1}}),month:se({matchPatterns:hut,defaultMatchWidth:"wide",parsePatterns:mut,defaultParseWidth:"any"}),day:se({matchPatterns:gut,defaultMatchWidth:"wide",parsePatterns:vut,defaultParseWidth:"any"}),dayPeriod:se({matchPatterns:yut,defaultMatchWidth:"wide",parsePatterns:but,defaultParseWidth:"any"})},Sut={code:"kk",formatDistance:qlt,formatLong:Ylt,formatRelative:Jlt,localize:sut,match:wut,options:{weekStartsOn:1,firstWeekContainsDate:1}};const Eut=Object.freeze(Object.defineProperty({__proto__:null,default:Sut},Symbol.toStringTag,{value:"Module"})),Tut=jt(Eut);var Cut={lessThanXSeconds:{one:"1초 미만",other:"{{count}}초 미만"},xSeconds:{one:"1초",other:"{{count}}초"},halfAMinute:"30초",lessThanXMinutes:{one:"1분 미만",other:"{{count}}분 미만"},xMinutes:{one:"1분",other:"{{count}}분"},aboutXHours:{one:"약 1시간",other:"약 {{count}}시간"},xHours:{one:"1시간",other:"{{count}}시간"},xDays:{one:"1일",other:"{{count}}일"},aboutXWeeks:{one:"약 1주",other:"약 {{count}}주"},xWeeks:{one:"1주",other:"{{count}}주"},aboutXMonths:{one:"약 1개월",other:"약 {{count}}개월"},xMonths:{one:"1개월",other:"{{count}}개월"},aboutXYears:{one:"약 1년",other:"약 {{count}}년"},xYears:{one:"1년",other:"{{count}}년"},overXYears:{one:"1년 이상",other:"{{count}}년 이상"},almostXYears:{one:"거의 1년",other:"거의 {{count}}년"}},kut=function(t,n,r){var a,i=Cut[t];return typeof i=="string"?a=i:n===1?a=i.one:a=i.other.replace("{{count}}",n.toString()),r!=null&&r.addSuffix?r.comparison&&r.comparison>0?a+" 후":a+" 전":a},xut={full:"y년 M월 d일 EEEE",long:"y년 M월 d일",medium:"y.MM.dd",short:"y.MM.dd"},_ut={full:"a H시 mm분 ss초 zzzz",long:"a H:mm:ss z",medium:"HH:mm:ss",short:"HH:mm"},Out={full:"{{date}} {{time}}",long:"{{date}} {{time}}",medium:"{{date}} {{time}}",short:"{{date}} {{time}}"},Rut={date:Ne({formats:xut,defaultWidth:"full"}),time:Ne({formats:_ut,defaultWidth:"full"}),dateTime:Ne({formats:Out,defaultWidth:"full"})},Put={lastWeek:"'지난' eeee p",yesterday:"'어제' p",today:"'오늘' p",tomorrow:"'내일' p",nextWeek:"'다음' eeee p",other:"P"},Aut=function(t,n,r,a){return Put[t]},Nut={narrow:["BC","AD"],abbreviated:["BC","AD"],wide:["기원전","서기"]},Mut={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1분기","2분기","3분기","4분기"]},Iut={narrow:["1","2","3","4","5","6","7","8","9","10","11","12"],abbreviated:["1월","2월","3월","4월","5월","6월","7월","8월","9월","10월","11월","12월"],wide:["1월","2월","3월","4월","5월","6월","7월","8월","9월","10월","11월","12월"]},Dut={narrow:["일","월","화","수","목","금","토"],short:["일","월","화","수","목","금","토"],abbreviated:["일","월","화","수","목","금","토"],wide:["일요일","월요일","화요일","수요일","목요일","금요일","토요일"]},$ut={narrow:{am:"오전",pm:"오후",midnight:"자정",noon:"정오",morning:"아침",afternoon:"오후",evening:"저녁",night:"밤"},abbreviated:{am:"오전",pm:"오후",midnight:"자정",noon:"정오",morning:"아침",afternoon:"오후",evening:"저녁",night:"밤"},wide:{am:"오전",pm:"오후",midnight:"자정",noon:"정오",morning:"아침",afternoon:"오후",evening:"저녁",night:"밤"}},Lut={narrow:{am:"오전",pm:"오후",midnight:"자정",noon:"정오",morning:"아침",afternoon:"오후",evening:"저녁",night:"밤"},abbreviated:{am:"오전",pm:"오후",midnight:"자정",noon:"정오",morning:"아침",afternoon:"오후",evening:"저녁",night:"밤"},wide:{am:"오전",pm:"오후",midnight:"자정",noon:"정오",morning:"아침",afternoon:"오후",evening:"저녁",night:"밤"}},Fut=function(t,n){var r=Number(t),a=String(n==null?void 0:n.unit);switch(a){case"minute":case"second":return String(r);case"date":return r+"일";default:return r+"번째"}},jut={ordinalNumber:Fut,era:oe({values:Nut,defaultWidth:"wide"}),quarter:oe({values:Mut,defaultWidth:"wide",argumentCallback:function(t){return t-1}}),month:oe({values:Iut,defaultWidth:"wide"}),day:oe({values:Dut,defaultWidth:"wide"}),dayPeriod:oe({values:$ut,defaultWidth:"wide",formattingValues:Lut,defaultFormattingWidth:"wide"})},Uut=/^(\d+)(일|번째)?/i,But=/\d+/i,Wut={narrow:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(기원전|서기)/i},zut={any:[/^(bc|기원전)/i,/^(ad|서기)/i]},qut={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234]사?분기/i},Hut={any:[/1/i,/2/i,/3/i,/4/i]},Vut={narrow:/^(1[012]|[123456789])/,abbreviated:/^(1[012]|[123456789])월/i,wide:/^(1[012]|[123456789])월/i},Gut={any:[/^1월?$/,/^2/,/^3/,/^4/,/^5/,/^6/,/^7/,/^8/,/^9/,/^10/,/^11/,/^12/]},Yut={narrow:/^[일월화수목금토]/,short:/^[일월화수목금토]/,abbreviated:/^[일월화수목금토]/,wide:/^[일월화수목금토]요일/},Kut={any:[/^일/,/^월/,/^화/,/^수/,/^목/,/^금/,/^토/]},Xut={any:/^(am|pm|오전|오후|자정|정오|아침|저녁|밤)/i},Qut={any:{am:/^(am|오전)/i,pm:/^(pm|오후)/i,midnight:/^자정/i,noon:/^정오/i,morning:/^아침/i,afternoon:/^오후/i,evening:/^저녁/i,night:/^밤/i}},Jut={ordinalNumber:Xt({matchPattern:Uut,parsePattern:But,valueCallback:function(t){return parseInt(t,10)}}),era:se({matchPatterns:Wut,defaultMatchWidth:"wide",parsePatterns:zut,defaultParseWidth:"any"}),quarter:se({matchPatterns:qut,defaultMatchWidth:"wide",parsePatterns:Hut,defaultParseWidth:"any",valueCallback:function(t){return t+1}}),month:se({matchPatterns:Vut,defaultMatchWidth:"wide",parsePatterns:Gut,defaultParseWidth:"any"}),day:se({matchPatterns:Yut,defaultMatchWidth:"wide",parsePatterns:Kut,defaultParseWidth:"any"}),dayPeriod:se({matchPatterns:Xut,defaultMatchWidth:"any",parsePatterns:Qut,defaultParseWidth:"any"})},Zut={code:"ko",formatDistance:kut,formatLong:Rut,formatRelative:Aut,localize:jut,match:Jut,options:{weekStartsOn:0,firstWeekContainsDate:1}};const ect=Object.freeze(Object.defineProperty({__proto__:null,default:Zut},Symbol.toStringTag,{value:"Module"})),tct=jt(ect);var hie={xseconds_other:"sekundė_sekundžių_sekundes",xminutes_one:"minutė_minutės_minutę",xminutes_other:"minutės_minučių_minutes",xhours_one:"valanda_valandos_valandą",xhours_other:"valandos_valandų_valandas",xdays_one:"diena_dienos_dieną",xdays_other:"dienos_dienų_dienas",xweeks_one:"savaitė_savaitės_savaitę",xweeks_other:"savaitės_savaičių_savaites",xmonths_one:"mėnuo_mėnesio_mėnesį",xmonths_other:"mėnesiai_mėnesių_mėnesius",xyears_one:"metai_metų_metus",xyears_other:"metai_metų_metus",about:"apie",over:"daugiau nei",almost:"beveik",lessthan:"mažiau nei"},wY=function(t,n,r,a){return n?a?"kelių sekundžių":"kelias sekundes":"kelios sekundės"},us=function(t,n,r,a){return n?a?rh(r)[1]:rh(r)[2]:rh(r)[0]},Mo=function(t,n,r,a){var i=t+" ";return t===1?i+us(t,n,r,a):n?a?i+rh(r)[1]:i+(SY(t)?rh(r)[1]:rh(r)[2]):i+(SY(t)?rh(r)[1]:rh(r)[0])};function SY(e){return e%10===0||e>10&&e<20}function rh(e){return hie[e].split("_")}var nct={lessThanXSeconds:{one:wY,other:Mo},xSeconds:{one:wY,other:Mo},halfAMinute:"pusė minutės",lessThanXMinutes:{one:us,other:Mo},xMinutes:{one:us,other:Mo},aboutXHours:{one:us,other:Mo},xHours:{one:us,other:Mo},xDays:{one:us,other:Mo},aboutXWeeks:{one:us,other:Mo},xWeeks:{one:us,other:Mo},aboutXMonths:{one:us,other:Mo},xMonths:{one:us,other:Mo},aboutXYears:{one:us,other:Mo},xYears:{one:us,other:Mo},overXYears:{one:us,other:Mo},almostXYears:{one:us,other:Mo}},rct=function(t,n,r){var a=t.match(/about|over|almost|lessthan/i),i=a?t.replace(a[0],""):t,o=(r==null?void 0:r.comparison)!==void 0&&r.comparison>0,l,u=nct[t];if(typeof u=="string"?l=u:n===1?l=u.one(n,(r==null?void 0:r.addSuffix)===!0,i.toLowerCase()+"_one",o):l=u.other(n,(r==null?void 0:r.addSuffix)===!0,i.toLowerCase()+"_other",o),a){var d=a[0].toLowerCase();l=hie[d]+" "+l}return r!=null&&r.addSuffix?r.comparison&&r.comparison>0?"po "+l:"prieš "+l:l},act={full:"y 'm'. MMMM d 'd'., EEEE",long:"y 'm'. MMMM d 'd'.",medium:"y-MM-dd",short:"y-MM-dd"},ict={full:"HH:mm:ss zzzz",long:"HH:mm:ss z",medium:"HH:mm:ss",short:"HH:mm"},oct={full:"{{date}} {{time}}",long:"{{date}} {{time}}",medium:"{{date}} {{time}}",short:"{{date}} {{time}}"},sct={date:Ne({formats:act,defaultWidth:"full"}),time:Ne({formats:ict,defaultWidth:"full"}),dateTime:Ne({formats:oct,defaultWidth:"full"})},lct={lastWeek:"'Praėjusį' eeee p",yesterday:"'Vakar' p",today:"'Šiandien' p",tomorrow:"'Rytoj' p",nextWeek:"eeee p",other:"P"},uct=function(t,n,r,a){return lct[t]},cct={narrow:["pr. Kr.","po Kr."],abbreviated:["pr. Kr.","po Kr."],wide:["prieš Kristų","po Kristaus"]},dct={narrow:["1","2","3","4"],abbreviated:["I ketv.","II ketv.","III ketv.","IV ketv."],wide:["I ketvirtis","II ketvirtis","III ketvirtis","IV ketvirtis"]},fct={narrow:["1","2","3","4"],abbreviated:["I k.","II k.","III k.","IV k."],wide:["I ketvirtis","II ketvirtis","III ketvirtis","IV ketvirtis"]},pct={narrow:["S","V","K","B","G","B","L","R","R","S","L","G"],abbreviated:["saus.","vas.","kov.","bal.","geg.","birž.","liep.","rugp.","rugs.","spal.","lapkr.","gruod."],wide:["sausis","vasaris","kovas","balandis","gegužė","birželis","liepa","rugpjūtis","rugsėjis","spalis","lapkritis","gruodis"]},hct={narrow:["S","V","K","B","G","B","L","R","R","S","L","G"],abbreviated:["saus.","vas.","kov.","bal.","geg.","birž.","liep.","rugp.","rugs.","spal.","lapkr.","gruod."],wide:["sausio","vasario","kovo","balandžio","gegužės","birželio","liepos","rugpjūčio","rugsėjo","spalio","lapkričio","gruodžio"]},mct={narrow:["S","P","A","T","K","P","Š"],short:["Sk","Pr","An","Tr","Kt","Pn","Št"],abbreviated:["sk","pr","an","tr","kt","pn","št"],wide:["sekmadienis","pirmadienis","antradienis","trečiadienis","ketvirtadienis","penktadienis","šeštadienis"]},gct={narrow:["S","P","A","T","K","P","Š"],short:["Sk","Pr","An","Tr","Kt","Pn","Št"],abbreviated:["sk","pr","an","tr","kt","pn","št"],wide:["sekmadienį","pirmadienį","antradienį","trečiadienį","ketvirtadienį","penktadienį","šeštadienį"]},vct={narrow:{am:"pr. p.",pm:"pop.",midnight:"vidurnaktis",noon:"vidurdienis",morning:"rytas",afternoon:"diena",evening:"vakaras",night:"naktis"},abbreviated:{am:"priešpiet",pm:"popiet",midnight:"vidurnaktis",noon:"vidurdienis",morning:"rytas",afternoon:"diena",evening:"vakaras",night:"naktis"},wide:{am:"priešpiet",pm:"popiet",midnight:"vidurnaktis",noon:"vidurdienis",morning:"rytas",afternoon:"diena",evening:"vakaras",night:"naktis"}},yct={narrow:{am:"pr. p.",pm:"pop.",midnight:"vidurnaktis",noon:"perpiet",morning:"rytas",afternoon:"popietė",evening:"vakaras",night:"naktis"},abbreviated:{am:"priešpiet",pm:"popiet",midnight:"vidurnaktis",noon:"perpiet",morning:"rytas",afternoon:"popietė",evening:"vakaras",night:"naktis"},wide:{am:"priešpiet",pm:"popiet",midnight:"vidurnaktis",noon:"perpiet",morning:"rytas",afternoon:"popietė",evening:"vakaras",night:"naktis"}},bct=function(t,n){var r=Number(t);return r+"-oji"},wct={ordinalNumber:bct,era:oe({values:cct,defaultWidth:"wide"}),quarter:oe({values:dct,defaultWidth:"wide",formattingValues:fct,defaultFormattingWidth:"wide",argumentCallback:function(t){return t-1}}),month:oe({values:pct,defaultWidth:"wide",formattingValues:hct,defaultFormattingWidth:"wide"}),day:oe({values:mct,defaultWidth:"wide",formattingValues:gct,defaultFormattingWidth:"wide"}),dayPeriod:oe({values:vct,defaultWidth:"wide",formattingValues:yct,defaultFormattingWidth:"wide"})},Sct=/^(\d+)(-oji)?/i,Ect=/\d+/i,Tct={narrow:/^p(r|o)\.?\s?(kr\.?|me)/i,abbreviated:/^(pr\.\s?(kr\.|m\.\s?e\.)|po\s?kr\.|mūsų eroje)/i,wide:/^(prieš Kristų|prieš mūsų erą|po Kristaus|mūsų eroje)/i},Cct={wide:[/prieš/i,/(po|mūsų)/i],any:[/^pr/i,/^(po|m)/i]},kct={narrow:/^([1234])/i,abbreviated:/^(I|II|III|IV)\s?ketv?\.?/i,wide:/^(I|II|III|IV)\s?ketvirtis/i},xct={narrow:[/1/i,/2/i,/3/i,/4/i],any:[/I$/i,/II$/i,/III/i,/IV/i]},_ct={narrow:/^[svkbglr]/i,abbreviated:/^(saus\.|vas\.|kov\.|bal\.|geg\.|birž\.|liep\.|rugp\.|rugs\.|spal\.|lapkr\.|gruod\.)/i,wide:/^(sausi(s|o)|vasari(s|o)|kov(a|o)s|balandž?i(s|o)|gegužės?|birželi(s|o)|liep(a|os)|rugpjū(t|č)i(s|o)|rugsėj(is|o)|spali(s|o)|lapkri(t|č)i(s|o)|gruodž?i(s|o))/i},Oct={narrow:[/^s/i,/^v/i,/^k/i,/^b/i,/^g/i,/^b/i,/^l/i,/^r/i,/^r/i,/^s/i,/^l/i,/^g/i],any:[/^saus/i,/^vas/i,/^kov/i,/^bal/i,/^geg/i,/^birž/i,/^liep/i,/^rugp/i,/^rugs/i,/^spal/i,/^lapkr/i,/^gruod/i]},Rct={narrow:/^[spatkš]/i,short:/^(sk|pr|an|tr|kt|pn|št)/i,abbreviated:/^(sk|pr|an|tr|kt|pn|št)/i,wide:/^(sekmadien(is|į)|pirmadien(is|į)|antradien(is|į)|trečiadien(is|į)|ketvirtadien(is|į)|penktadien(is|į)|šeštadien(is|į))/i},Pct={narrow:[/^s/i,/^p/i,/^a/i,/^t/i,/^k/i,/^p/i,/^š/i],wide:[/^se/i,/^pi/i,/^an/i,/^tr/i,/^ke/i,/^pe/i,/^še/i],any:[/^sk/i,/^pr/i,/^an/i,/^tr/i,/^kt/i,/^pn/i,/^št/i]},Act={narrow:/^(pr.\s?p.|pop.|vidurnaktis|(vidurdienis|perpiet)|rytas|(diena|popietė)|vakaras|naktis)/i,any:/^(priešpiet|popiet$|vidurnaktis|(vidurdienis|perpiet)|rytas|(diena|popietė)|vakaras|naktis)/i},Nct={narrow:{am:/^pr/i,pm:/^pop./i,midnight:/^vidurnaktis/i,noon:/^(vidurdienis|perp)/i,morning:/rytas/i,afternoon:/(die|popietė)/i,evening:/vakaras/i,night:/naktis/i},any:{am:/^pr/i,pm:/^popiet$/i,midnight:/^vidurnaktis/i,noon:/^(vidurdienis|perp)/i,morning:/rytas/i,afternoon:/(die|popietė)/i,evening:/vakaras/i,night:/naktis/i}},Mct={ordinalNumber:Xt({matchPattern:Sct,parsePattern:Ect,valueCallback:function(t){return parseInt(t,10)}}),era:se({matchPatterns:Tct,defaultMatchWidth:"wide",parsePatterns:Cct,defaultParseWidth:"any"}),quarter:se({matchPatterns:kct,defaultMatchWidth:"wide",parsePatterns:xct,defaultParseWidth:"any",valueCallback:function(t){return t+1}}),month:se({matchPatterns:_ct,defaultMatchWidth:"wide",parsePatterns:Oct,defaultParseWidth:"any"}),day:se({matchPatterns:Rct,defaultMatchWidth:"wide",parsePatterns:Pct,defaultParseWidth:"any"}),dayPeriod:se({matchPatterns:Act,defaultMatchWidth:"any",parsePatterns:Nct,defaultParseWidth:"any"})},Ict={code:"lt",formatDistance:rct,formatLong:sct,formatRelative:uct,localize:wct,match:Mct,options:{weekStartsOn:1,firstWeekContainsDate:4}};const Dct=Object.freeze(Object.defineProperty({__proto__:null,default:Ict},Symbol.toStringTag,{value:"Module"})),$ct=jt(Dct);function Io(e){return function(t,n){if(t===1)return n!=null&&n.addSuffix?e.one[0].replace("{{time}}",e.one[2]):e.one[0].replace("{{time}}",e.one[1]);var r=t%10===1&&t%100!==11;return n!=null&&n.addSuffix?e.other[0].replace("{{time}}",r?e.other[3]:e.other[4]).replace("{{count}}",String(t)):e.other[0].replace("{{time}}",r?e.other[1]:e.other[2]).replace("{{count}}",String(t))}}var Lct={lessThanXSeconds:Io({one:["mazāk par {{time}}","sekundi","sekundi"],other:["mazāk nekā {{count}} {{time}}","sekunde","sekundes","sekundes","sekundēm"]}),xSeconds:Io({one:["1 {{time}}","sekunde","sekundes"],other:["{{count}} {{time}}","sekunde","sekundes","sekundes","sekundēm"]}),halfAMinute:function(t,n){return n!=null&&n.addSuffix?"pusminūtes":"pusminūte"},lessThanXMinutes:Io({one:["mazāk par {{time}}","minūti","minūti"],other:["mazāk nekā {{count}} {{time}}","minūte","minūtes","minūtes","minūtēm"]}),xMinutes:Io({one:["1 {{time}}","minūte","minūtes"],other:["{{count}} {{time}}","minūte","minūtes","minūtes","minūtēm"]}),aboutXHours:Io({one:["apmēram 1 {{time}}","stunda","stundas"],other:["apmēram {{count}} {{time}}","stunda","stundas","stundas","stundām"]}),xHours:Io({one:["1 {{time}}","stunda","stundas"],other:["{{count}} {{time}}","stunda","stundas","stundas","stundām"]}),xDays:Io({one:["1 {{time}}","diena","dienas"],other:["{{count}} {{time}}","diena","dienas","dienas","dienām"]}),aboutXWeeks:Io({one:["apmēram 1 {{time}}","nedēļa","nedēļas"],other:["apmēram {{count}} {{time}}","nedēļa","nedēļu","nedēļas","nedēļām"]}),xWeeks:Io({one:["1 {{time}}","nedēļa","nedēļas"],other:["{{count}} {{time}}","nedēļa","nedēļu","nedēļas","nedēļām"]}),aboutXMonths:Io({one:["apmēram 1 {{time}}","mēnesis","mēneša"],other:["apmēram {{count}} {{time}}","mēnesis","mēneši","mēneša","mēnešiem"]}),xMonths:Io({one:["1 {{time}}","mēnesis","mēneša"],other:["{{count}} {{time}}","mēnesis","mēneši","mēneša","mēnešiem"]}),aboutXYears:Io({one:["apmēram 1 {{time}}","gads","gada"],other:["apmēram {{count}} {{time}}","gads","gadi","gada","gadiem"]}),xYears:Io({one:["1 {{time}}","gads","gada"],other:["{{count}} {{time}}","gads","gadi","gada","gadiem"]}),overXYears:Io({one:["ilgāk par 1 {{time}}","gadu","gadu"],other:["vairāk nekā {{count}} {{time}}","gads","gadi","gada","gadiem"]}),almostXYears:Io({one:["gandrīz 1 {{time}}","gads","gada"],other:["vairāk nekā {{count}} {{time}}","gads","gadi","gada","gadiem"]})},Fct=function(t,n,r){var a=Lct[t](n,r);return r!=null&&r.addSuffix?r.comparison&&r.comparison>0?"pēc "+a:"pirms "+a:a},jct={full:"EEEE, y. 'gada' d. MMMM",long:"y. 'gada' d. MMMM",medium:"dd.MM.y.",short:"dd.MM.y."},Uct={full:"HH:mm:ss zzzz",long:"HH:mm:ss z",medium:"HH:mm:ss",short:"HH:mm"},Bct={full:"{{date}} 'plkst.' {{time}}",long:"{{date}} 'plkst.' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},Wct={date:Ne({formats:jct,defaultWidth:"full"}),time:Ne({formats:Uct,defaultWidth:"full"}),dateTime:Ne({formats:Bct,defaultWidth:"full"})},EY=["svētdienā","pirmdienā","otrdienā","trešdienā","ceturtdienā","piektdienā","sestdienā"],zct={lastWeek:function(t,n,r){if(Ei(t,n,r))return"eeee 'plkst.' p";var a=EY[t.getUTCDay()];return"'Pagājušā "+a+" plkst.' p"},yesterday:"'Vakar plkst.' p",today:"'Šodien plkst.' p",tomorrow:"'Rīt plkst.' p",nextWeek:function(t,n,r){if(Ei(t,n,r))return"eeee 'plkst.' p";var a=EY[t.getUTCDay()];return"'Nākamajā "+a+" plkst.' p"},other:"P"},qct=function(t,n,r,a){var i=zct[t];return typeof i=="function"?i(n,r,a):i},Hct={narrow:["p.m.ē","m.ē"],abbreviated:["p. m. ē.","m. ē."],wide:["pirms mūsu ēras","mūsu ērā"]},Vct={narrow:["1","2","3","4"],abbreviated:["1. cet.","2. cet.","3. cet.","4. cet."],wide:["pirmais ceturksnis","otrais ceturksnis","trešais ceturksnis","ceturtais ceturksnis"]},Gct={narrow:["1","2","3","4"],abbreviated:["1. cet.","2. cet.","3. cet.","4. cet."],wide:["pirmajā ceturksnī","otrajā ceturksnī","trešajā ceturksnī","ceturtajā ceturksnī"]},Yct={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["janv.","febr.","marts","apr.","maijs","jūn.","jūl.","aug.","sept.","okt.","nov.","dec."],wide:["janvāris","februāris","marts","aprīlis","maijs","jūnijs","jūlijs","augusts","septembris","oktobris","novembris","decembris"]},Kct={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["janv.","febr.","martā","apr.","maijs","jūn.","jūl.","aug.","sept.","okt.","nov.","dec."],wide:["janvārī","februārī","martā","aprīlī","maijā","jūnijā","jūlijā","augustā","septembrī","oktobrī","novembrī","decembrī"]},Xct={narrow:["S","P","O","T","C","P","S"],short:["Sv","P","O","T","C","Pk","S"],abbreviated:["svētd.","pirmd.","otrd.","trešd.","ceturtd.","piektd.","sestd."],wide:["svētdiena","pirmdiena","otrdiena","trešdiena","ceturtdiena","piektdiena","sestdiena"]},Qct={narrow:["S","P","O","T","C","P","S"],short:["Sv","P","O","T","C","Pk","S"],abbreviated:["svētd.","pirmd.","otrd.","trešd.","ceturtd.","piektd.","sestd."],wide:["svētdienā","pirmdienā","otrdienā","trešdienā","ceturtdienā","piektdienā","sestdienā"]},Jct={narrow:{am:"am",pm:"pm",midnight:"pusn.",noon:"pusd.",morning:"rīts",afternoon:"diena",evening:"vakars",night:"nakts"},abbreviated:{am:"am",pm:"pm",midnight:"pusn.",noon:"pusd.",morning:"rīts",afternoon:"pēcpusd.",evening:"vakars",night:"nakts"},wide:{am:"am",pm:"pm",midnight:"pusnakts",noon:"pusdienlaiks",morning:"rīts",afternoon:"pēcpusdiena",evening:"vakars",night:"nakts"}},Zct={narrow:{am:"am",pm:"pm",midnight:"pusn.",noon:"pusd.",morning:"rītā",afternoon:"dienā",evening:"vakarā",night:"naktī"},abbreviated:{am:"am",pm:"pm",midnight:"pusn.",noon:"pusd.",morning:"rītā",afternoon:"pēcpusd.",evening:"vakarā",night:"naktī"},wide:{am:"am",pm:"pm",midnight:"pusnaktī",noon:"pusdienlaikā",morning:"rītā",afternoon:"pēcpusdienā",evening:"vakarā",night:"naktī"}},edt=function(t,n){var r=Number(t);return r+"."},tdt={ordinalNumber:edt,era:oe({values:Hct,defaultWidth:"wide"}),quarter:oe({values:Vct,defaultWidth:"wide",formattingValues:Gct,defaultFormattingWidth:"wide",argumentCallback:function(t){return t-1}}),month:oe({values:Yct,defaultWidth:"wide",formattingValues:Kct,defaultFormattingWidth:"wide"}),day:oe({values:Xct,defaultWidth:"wide",formattingValues:Qct,defaultFormattingWidth:"wide"}),dayPeriod:oe({values:Jct,defaultWidth:"wide",formattingValues:Zct,defaultFormattingWidth:"wide"})},ndt=/^(\d+)\./i,rdt=/\d+/i,adt={narrow:/^(p\.m\.ē|m\.ē)/i,abbreviated:/^(p\. m\. ē\.|m\. ē\.)/i,wide:/^(pirms mūsu ēras|mūsu ērā)/i},idt={any:[/^p/i,/^m/i]},odt={narrow:/^[1234]/i,abbreviated:/^[1234](\. cet\.)/i,wide:/^(pirma(is|jā)|otra(is|jā)|treša(is|jā)|ceturta(is|jā)) ceturksn(is|ī)/i},sdt={narrow:[/^1/i,/^2/i,/^3/i,/^4/i],abbreviated:[/^1/i,/^2/i,/^3/i,/^4/i],wide:[/^p/i,/^o/i,/^t/i,/^c/i]},ldt={narrow:/^[jfmasond]/i,abbreviated:/^(janv\.|febr\.|marts|apr\.|maijs|jūn\.|jūl\.|aug\.|sept\.|okt\.|nov\.|dec\.)/i,wide:/^(janvār(is|ī)|februār(is|ī)|mart[sā]|aprīl(is|ī)|maij[sā]|jūnij[sā]|jūlij[sā]|august[sā]|septembr(is|ī)|oktobr(is|ī)|novembr(is|ī)|decembr(is|ī))/i},udt={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^mai/i,/^jūn/i,/^jūl/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},cdt={narrow:/^[spotc]/i,short:/^(sv|pi|o|t|c|pk|s)/i,abbreviated:/^(svētd\.|pirmd\.|otrd.\|trešd\.|ceturtd\.|piektd\.|sestd\.)/i,wide:/^(svētdien(a|ā)|pirmdien(a|ā)|otrdien(a|ā)|trešdien(a|ā)|ceturtdien(a|ā)|piektdien(a|ā)|sestdien(a|ā))/i},ddt={narrow:[/^s/i,/^p/i,/^o/i,/^t/i,/^c/i,/^p/i,/^s/i],any:[/^sv/i,/^pi/i,/^o/i,/^t/i,/^c/i,/^p/i,/^se/i]},fdt={narrow:/^(am|pm|pusn\.|pusd\.|rīt(s|ā)|dien(a|ā)|vakar(s|ā)|nakt(s|ī))/,abbreviated:/^(am|pm|pusn\.|pusd\.|rīt(s|ā)|pēcpusd\.|vakar(s|ā)|nakt(s|ī))/,wide:/^(am|pm|pusnakt(s|ī)|pusdienlaik(s|ā)|rīt(s|ā)|pēcpusdien(a|ā)|vakar(s|ā)|nakt(s|ī))/i},pdt={any:{am:/^am/i,pm:/^pm/i,midnight:/^pusn/i,noon:/^pusd/i,morning:/^r/i,afternoon:/^(d|pēc)/i,evening:/^v/i,night:/^n/i}},hdt={ordinalNumber:Xt({matchPattern:ndt,parsePattern:rdt,valueCallback:function(t){return parseInt(t,10)}}),era:se({matchPatterns:adt,defaultMatchWidth:"wide",parsePatterns:idt,defaultParseWidth:"any"}),quarter:se({matchPatterns:odt,defaultMatchWidth:"wide",parsePatterns:sdt,defaultParseWidth:"wide",valueCallback:function(t){return t+1}}),month:se({matchPatterns:ldt,defaultMatchWidth:"wide",parsePatterns:udt,defaultParseWidth:"any"}),day:se({matchPatterns:cdt,defaultMatchWidth:"wide",parsePatterns:ddt,defaultParseWidth:"any"}),dayPeriod:se({matchPatterns:fdt,defaultMatchWidth:"wide",parsePatterns:pdt,defaultParseWidth:"any"})},mdt={code:"lv",formatDistance:Fct,formatLong:Wct,formatRelative:qct,localize:tdt,match:hdt,options:{weekStartsOn:1,firstWeekContainsDate:4}};const gdt=Object.freeze(Object.defineProperty({__proto__:null,default:mdt},Symbol.toStringTag,{value:"Module"})),vdt=jt(gdt);var ydt={lessThanXSeconds:{one:"kurang dari 1 saat",other:"kurang dari {{count}} saat"},xSeconds:{one:"1 saat",other:"{{count}} saat"},halfAMinute:"setengah minit",lessThanXMinutes:{one:"kurang dari 1 minit",other:"kurang dari {{count}} minit"},xMinutes:{one:"1 minit",other:"{{count}} minit"},aboutXHours:{one:"sekitar 1 jam",other:"sekitar {{count}} jam"},xHours:{one:"1 jam",other:"{{count}} jam"},xDays:{one:"1 hari",other:"{{count}} hari"},aboutXWeeks:{one:"sekitar 1 minggu",other:"sekitar {{count}} minggu"},xWeeks:{one:"1 minggu",other:"{{count}} minggu"},aboutXMonths:{one:"sekitar 1 bulan",other:"sekitar {{count}} bulan"},xMonths:{one:"1 bulan",other:"{{count}} bulan"},aboutXYears:{one:"sekitar 1 tahun",other:"sekitar {{count}} tahun"},xYears:{one:"1 tahun",other:"{{count}} tahun"},overXYears:{one:"lebih dari 1 tahun",other:"lebih dari {{count}} tahun"},almostXYears:{one:"hampir 1 tahun",other:"hampir {{count}} tahun"}},bdt=function(t,n,r){var a,i=ydt[t];return typeof i=="string"?a=i:n===1?a=i.one:a=i.other.replace("{{count}}",String(n)),r!=null&&r.addSuffix?r.comparison&&r.comparison>0?"dalam masa "+a:a+" yang lalu":a},wdt={full:"EEEE, d MMMM yyyy",long:"d MMMM yyyy",medium:"d MMM yyyy",short:"d/M/yyyy"},Sdt={full:"HH.mm.ss",long:"HH.mm.ss",medium:"HH.mm",short:"HH.mm"},Edt={full:"{{date}} 'pukul' {{time}}",long:"{{date}} 'pukul' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},Tdt={date:Ne({formats:wdt,defaultWidth:"full"}),time:Ne({formats:Sdt,defaultWidth:"full"}),dateTime:Ne({formats:Edt,defaultWidth:"full"})},Cdt={lastWeek:"eeee 'lepas pada jam' p",yesterday:"'Semalam pada jam' p",today:"'Hari ini pada jam' p",tomorrow:"'Esok pada jam' p",nextWeek:"eeee 'pada jam' p",other:"P"},kdt=function(t,n,r,a){return Cdt[t]},xdt={narrow:["SM","M"],abbreviated:["SM","M"],wide:["Sebelum Masihi","Masihi"]},_dt={narrow:["1","2","3","4"],abbreviated:["S1","S2","S3","S4"],wide:["Suku pertama","Suku kedua","Suku ketiga","Suku keempat"]},Odt={narrow:["J","F","M","A","M","J","J","O","S","O","N","D"],abbreviated:["Jan","Feb","Mac","Apr","Mei","Jun","Jul","Ogo","Sep","Okt","Nov","Dis"],wide:["Januari","Februari","Mac","April","Mei","Jun","Julai","Ogos","September","Oktober","November","Disember"]},Rdt={narrow:["A","I","S","R","K","J","S"],short:["Ahd","Isn","Sel","Rab","Kha","Jum","Sab"],abbreviated:["Ahd","Isn","Sel","Rab","Kha","Jum","Sab"],wide:["Ahad","Isnin","Selasa","Rabu","Khamis","Jumaat","Sabtu"]},Pdt={narrow:{am:"am",pm:"pm",midnight:"tgh malam",noon:"tgh hari",morning:"pagi",afternoon:"tengah hari",evening:"petang",night:"malam"},abbreviated:{am:"AM",pm:"PM",midnight:"tengah malam",noon:"tengah hari",morning:"pagi",afternoon:"tengah hari",evening:"petang",night:"malam"},wide:{am:"a.m.",pm:"p.m.",midnight:"tengah malam",noon:"tengah hari",morning:"pagi",afternoon:"tengah hari",evening:"petang",night:"malam"}},Adt={narrow:{am:"am",pm:"pm",midnight:"tengah malam",noon:"tengah hari",morning:"pagi",afternoon:"tengah hari",evening:"petang",night:"malam"},abbreviated:{am:"AM",pm:"PM",midnight:"tengah malam",noon:"tengah hari",morning:"pagi",afternoon:"tengah hari",evening:"petang",night:"malam"},wide:{am:"a.m.",pm:"p.m.",midnight:"tengah malam",noon:"tengah hari",morning:"pagi",afternoon:"tengah hari",evening:"petang",night:"malam"}},Ndt=function(t,n){return"ke-"+Number(t)},Mdt={ordinalNumber:Ndt,era:oe({values:xdt,defaultWidth:"wide"}),quarter:oe({values:_dt,defaultWidth:"wide",argumentCallback:function(t){return t-1}}),month:oe({values:Odt,defaultWidth:"wide"}),day:oe({values:Rdt,defaultWidth:"wide"}),dayPeriod:oe({values:Pdt,defaultWidth:"wide",formattingValues:Adt,defaultFormattingWidth:"wide"})},Idt=/^ke-(\d+)?/i,Ddt=/petama|\d+/i,$dt={narrow:/^(sm|m)/i,abbreviated:/^(s\.?\s?m\.?|m\.?)/i,wide:/^(sebelum masihi|masihi)/i},Ldt={any:[/^s/i,/^(m)/i]},Fdt={narrow:/^[1234]/i,abbreviated:/^S[1234]/i,wide:/Suku (pertama|kedua|ketiga|keempat)/i},jdt={any:[/pertama|1/i,/kedua|2/i,/ketiga|3/i,/keempat|4/i]},Udt={narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mac|apr|mei|jun|jul|ogo|sep|okt|nov|dis)/i,wide:/^(januari|februari|mac|april|mei|jun|julai|ogos|september|oktober|november|disember)/i},Bdt={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^o/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^ma/i,/^ap/i,/^me/i,/^jun/i,/^jul/i,/^og/i,/^s/i,/^ok/i,/^n/i,/^d/i]},Wdt={narrow:/^[aisrkj]/i,short:/^(ahd|isn|sel|rab|kha|jum|sab)/i,abbreviated:/^(ahd|isn|sel|rab|kha|jum|sab)/i,wide:/^(ahad|isnin|selasa|rabu|khamis|jumaat|sabtu)/i},zdt={narrow:[/^a/i,/^i/i,/^s/i,/^r/i,/^k/i,/^j/i,/^s/i],any:[/^a/i,/^i/i,/^se/i,/^r/i,/^k/i,/^j/i,/^sa/i]},qdt={narrow:/^(am|pm|tengah malam|tengah hari|pagi|petang|malam)/i,any:/^([ap]\.?\s?m\.?|tengah malam|tengah hari|pagi|petang|malam)/i},Hdt={any:{am:/^a/i,pm:/^pm/i,midnight:/^tengah m/i,noon:/^tengah h/i,morning:/pa/i,afternoon:/tengah h/i,evening:/pe/i,night:/m/i}},Vdt={ordinalNumber:Xt({matchPattern:Idt,parsePattern:Ddt,valueCallback:function(t){return parseInt(t,10)}}),era:se({matchPatterns:$dt,defaultMatchWidth:"wide",parsePatterns:Ldt,defaultParseWidth:"any"}),quarter:se({matchPatterns:Fdt,defaultMatchWidth:"wide",parsePatterns:jdt,defaultParseWidth:"any",valueCallback:function(t){return t+1}}),month:se({matchPatterns:Udt,defaultMatchWidth:"wide",parsePatterns:Bdt,defaultParseWidth:"any"}),day:se({matchPatterns:Wdt,defaultMatchWidth:"wide",parsePatterns:zdt,defaultParseWidth:"any"}),dayPeriod:se({matchPatterns:qdt,defaultMatchWidth:"any",parsePatterns:Hdt,defaultParseWidth:"any"})},Gdt={code:"ms",formatDistance:bdt,formatLong:Tdt,formatRelative:kdt,localize:Mdt,match:Vdt,options:{weekStartsOn:1,firstWeekContainsDate:1}};const Ydt=Object.freeze(Object.defineProperty({__proto__:null,default:Gdt},Symbol.toStringTag,{value:"Module"})),Kdt=jt(Ydt);var Xdt={lessThanXSeconds:{one:"mindre enn ett sekund",other:"mindre enn {{count}} sekunder"},xSeconds:{one:"ett sekund",other:"{{count}} sekunder"},halfAMinute:"et halvt minutt",lessThanXMinutes:{one:"mindre enn ett minutt",other:"mindre enn {{count}} minutter"},xMinutes:{one:"ett minutt",other:"{{count}} minutter"},aboutXHours:{one:"omtrent en time",other:"omtrent {{count}} timer"},xHours:{one:"en time",other:"{{count}} timer"},xDays:{one:"en dag",other:"{{count}} dager"},aboutXWeeks:{one:"omtrent en uke",other:"omtrent {{count}} uker"},xWeeks:{one:"en uke",other:"{{count}} uker"},aboutXMonths:{one:"omtrent en måned",other:"omtrent {{count}} måneder"},xMonths:{one:"en måned",other:"{{count}} måneder"},aboutXYears:{one:"omtrent ett år",other:"omtrent {{count}} år"},xYears:{one:"ett år",other:"{{count}} år"},overXYears:{one:"over ett år",other:"over {{count}} år"},almostXYears:{one:"nesten ett år",other:"nesten {{count}} år"}},Qdt=function(t,n,r){var a,i=Xdt[t];return typeof i=="string"?a=i:n===1?a=i.one:a=i.other.replace("{{count}}",String(n)),r!=null&&r.addSuffix?r.comparison&&r.comparison>0?"om "+a:a+" siden":a},Jdt={full:"EEEE d. MMMM y",long:"d. MMMM y",medium:"d. MMM y",short:"dd.MM.y"},Zdt={full:"'kl'. HH:mm:ss zzzz",long:"HH:mm:ss z",medium:"HH:mm:ss",short:"HH:mm"},eft={full:"{{date}} 'kl.' {{time}}",long:"{{date}} 'kl.' {{time}}",medium:"{{date}} {{time}}",short:"{{date}} {{time}}"},tft={date:Ne({formats:Jdt,defaultWidth:"full"}),time:Ne({formats:Zdt,defaultWidth:"full"}),dateTime:Ne({formats:eft,defaultWidth:"full"})},nft={lastWeek:"'forrige' eeee 'kl.' p",yesterday:"'i går kl.' p",today:"'i dag kl.' p",tomorrow:"'i morgen kl.' p",nextWeek:"EEEE 'kl.' p",other:"P"},rft=function(t,n,r,a){return nft[t]},aft={narrow:["f.Kr.","e.Kr."],abbreviated:["f.Kr.","e.Kr."],wide:["før Kristus","etter Kristus"]},ift={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1. kvartal","2. kvartal","3. kvartal","4. kvartal"]},oft={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["jan.","feb.","mars","apr.","mai","juni","juli","aug.","sep.","okt.","nov.","des."],wide:["januar","februar","mars","april","mai","juni","juli","august","september","oktober","november","desember"]},sft={narrow:["S","M","T","O","T","F","L"],short:["sø","ma","ti","on","to","fr","lø"],abbreviated:["søn","man","tir","ons","tor","fre","lør"],wide:["søndag","mandag","tirsdag","onsdag","torsdag","fredag","lørdag"]},lft={narrow:{am:"a",pm:"p",midnight:"midnatt",noon:"middag",morning:"på morg.",afternoon:"på etterm.",evening:"på kvelden",night:"på natten"},abbreviated:{am:"a.m.",pm:"p.m.",midnight:"midnatt",noon:"middag",morning:"på morg.",afternoon:"på etterm.",evening:"på kvelden",night:"på natten"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnatt",noon:"middag",morning:"på morgenen",afternoon:"på ettermiddagen",evening:"på kvelden",night:"på natten"}},uft=function(t,n){var r=Number(t);return r+"."},cft={ordinalNumber:uft,era:oe({values:aft,defaultWidth:"wide"}),quarter:oe({values:ift,defaultWidth:"wide",argumentCallback:function(t){return t-1}}),month:oe({values:oft,defaultWidth:"wide"}),day:oe({values:sft,defaultWidth:"wide"}),dayPeriod:oe({values:lft,defaultWidth:"wide"})},dft=/^(\d+)\.?/i,fft=/\d+/i,pft={narrow:/^(f\.? ?Kr\.?|fvt\.?|e\.? ?Kr\.?|evt\.?)/i,abbreviated:/^(f\.? ?Kr\.?|fvt\.?|e\.? ?Kr\.?|evt\.?)/i,wide:/^(før Kristus|før vår tid|etter Kristus|vår tid)/i},hft={any:[/^f/i,/^e/i]},mft={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](\.)? kvartal/i},gft={any:[/1/i,/2/i,/3/i,/4/i]},vft={narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mars?|apr|mai|juni?|juli?|aug|sep|okt|nov|des)\.?/i,wide:/^(januar|februar|mars|april|mai|juni|juli|august|september|oktober|november|desember)/i},yft={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^mai/i,/^jun/i,/^jul/i,/^aug/i,/^s/i,/^o/i,/^n/i,/^d/i]},bft={narrow:/^[smtofl]/i,short:/^(sø|ma|ti|on|to|fr|lø)/i,abbreviated:/^(søn|man|tir|ons|tor|fre|lør)/i,wide:/^(søndag|mandag|tirsdag|onsdag|torsdag|fredag|lørdag)/i},wft={any:[/^s/i,/^m/i,/^ti/i,/^o/i,/^to/i,/^f/i,/^l/i]},Sft={narrow:/^(midnatt|middag|(på) (morgenen|ettermiddagen|kvelden|natten)|[ap])/i,any:/^([ap]\.?\s?m\.?|midnatt|middag|(på) (morgenen|ettermiddagen|kvelden|natten))/i},Eft={any:{am:/^a(\.?\s?m\.?)?$/i,pm:/^p(\.?\s?m\.?)?$/i,midnight:/^midn/i,noon:/^midd/i,morning:/morgen/i,afternoon:/ettermiddag/i,evening:/kveld/i,night:/natt/i}},Tft={ordinalNumber:Xt({matchPattern:dft,parsePattern:fft,valueCallback:function(t){return parseInt(t,10)}}),era:se({matchPatterns:pft,defaultMatchWidth:"wide",parsePatterns:hft,defaultParseWidth:"any"}),quarter:se({matchPatterns:mft,defaultMatchWidth:"wide",parsePatterns:gft,defaultParseWidth:"any",valueCallback:function(t){return t+1}}),month:se({matchPatterns:vft,defaultMatchWidth:"wide",parsePatterns:yft,defaultParseWidth:"any"}),day:se({matchPatterns:bft,defaultMatchWidth:"wide",parsePatterns:wft,defaultParseWidth:"any"}),dayPeriod:se({matchPatterns:Sft,defaultMatchWidth:"any",parsePatterns:Eft,defaultParseWidth:"any"})},Cft={code:"nb",formatDistance:Qdt,formatLong:tft,formatRelative:rft,localize:cft,match:Tft,options:{weekStartsOn:1,firstWeekContainsDate:4}};const kft=Object.freeze(Object.defineProperty({__proto__:null,default:Cft},Symbol.toStringTag,{value:"Module"})),xft=jt(kft);var _ft={lessThanXSeconds:{one:"minder dan een seconde",other:"minder dan {{count}} seconden"},xSeconds:{one:"1 seconde",other:"{{count}} seconden"},halfAMinute:"een halve minuut",lessThanXMinutes:{one:"minder dan een minuut",other:"minder dan {{count}} minuten"},xMinutes:{one:"een minuut",other:"{{count}} minuten"},aboutXHours:{one:"ongeveer 1 uur",other:"ongeveer {{count}} uur"},xHours:{one:"1 uur",other:"{{count}} uur"},xDays:{one:"1 dag",other:"{{count}} dagen"},aboutXWeeks:{one:"ongeveer 1 week",other:"ongeveer {{count}} weken"},xWeeks:{one:"1 week",other:"{{count}} weken"},aboutXMonths:{one:"ongeveer 1 maand",other:"ongeveer {{count}} maanden"},xMonths:{one:"1 maand",other:"{{count}} maanden"},aboutXYears:{one:"ongeveer 1 jaar",other:"ongeveer {{count}} jaar"},xYears:{one:"1 jaar",other:"{{count}} jaar"},overXYears:{one:"meer dan 1 jaar",other:"meer dan {{count}} jaar"},almostXYears:{one:"bijna 1 jaar",other:"bijna {{count}} jaar"}},Oft=function(t,n,r){var a,i=_ft[t];return typeof i=="string"?a=i:n===1?a=i.one:a=i.other.replace("{{count}}",String(n)),r!=null&&r.addSuffix?r.comparison&&r.comparison>0?"over "+a:a+" geleden":a},Rft={full:"EEEE d MMMM y",long:"d MMMM y",medium:"d MMM y",short:"dd-MM-y"},Pft={full:"HH:mm:ss zzzz",long:"HH:mm:ss z",medium:"HH:mm:ss",short:"HH:mm"},Aft={full:"{{date}} 'om' {{time}}",long:"{{date}} 'om' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},Nft={date:Ne({formats:Rft,defaultWidth:"full"}),time:Ne({formats:Pft,defaultWidth:"full"}),dateTime:Ne({formats:Aft,defaultWidth:"full"})},Mft={lastWeek:"'afgelopen' eeee 'om' p",yesterday:"'gisteren om' p",today:"'vandaag om' p",tomorrow:"'morgen om' p",nextWeek:"eeee 'om' p",other:"P"},Ift=function(t,n,r,a){return Mft[t]},Dft={narrow:["v.C.","n.C."],abbreviated:["v.Chr.","n.Chr."],wide:["voor Christus","na Christus"]},$ft={narrow:["1","2","3","4"],abbreviated:["K1","K2","K3","K4"],wide:["1e kwartaal","2e kwartaal","3e kwartaal","4e kwartaal"]},Lft={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["jan.","feb.","mrt.","apr.","mei","jun.","jul.","aug.","sep.","okt.","nov.","dec."],wide:["januari","februari","maart","april","mei","juni","juli","augustus","september","oktober","november","december"]},Fft={narrow:["Z","M","D","W","D","V","Z"],short:["zo","ma","di","wo","do","vr","za"],abbreviated:["zon","maa","din","woe","don","vri","zat"],wide:["zondag","maandag","dinsdag","woensdag","donderdag","vrijdag","zaterdag"]},jft={narrow:{am:"AM",pm:"PM",midnight:"middernacht",noon:"het middaguur",morning:"'s ochtends",afternoon:"'s middags",evening:"'s avonds",night:"'s nachts"},abbreviated:{am:"AM",pm:"PM",midnight:"middernacht",noon:"het middaguur",morning:"'s ochtends",afternoon:"'s middags",evening:"'s avonds",night:"'s nachts"},wide:{am:"AM",pm:"PM",midnight:"middernacht",noon:"het middaguur",morning:"'s ochtends",afternoon:"'s middags",evening:"'s avonds",night:"'s nachts"}},Uft=function(t,n){var r=Number(t);return r+"e"},Bft={ordinalNumber:Uft,era:oe({values:Dft,defaultWidth:"wide"}),quarter:oe({values:$ft,defaultWidth:"wide",argumentCallback:function(t){return t-1}}),month:oe({values:Lft,defaultWidth:"wide"}),day:oe({values:Fft,defaultWidth:"wide"}),dayPeriod:oe({values:jft,defaultWidth:"wide"})},Wft=/^(\d+)e?/i,zft=/\d+/i,qft={narrow:/^([vn]\.? ?C\.?)/,abbreviated:/^([vn]\. ?Chr\.?)/,wide:/^((voor|na) Christus)/},Hft={any:[/^v/,/^n/]},Vft={narrow:/^[1234]/i,abbreviated:/^K[1234]/i,wide:/^[1234]e kwartaal/i},Gft={any:[/1/i,/2/i,/3/i,/4/i]},Yft={narrow:/^[jfmasond]/i,abbreviated:/^(jan.|feb.|mrt.|apr.|mei|jun.|jul.|aug.|sep.|okt.|nov.|dec.)/i,wide:/^(januari|februari|maart|april|mei|juni|juli|augustus|september|oktober|november|december)/i},Kft={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^jan/i,/^feb/i,/^m(r|a)/i,/^apr/i,/^mei/i,/^jun/i,/^jul/i,/^aug/i,/^sep/i,/^okt/i,/^nov/i,/^dec/i]},Xft={narrow:/^[zmdwv]/i,short:/^(zo|ma|di|wo|do|vr|za)/i,abbreviated:/^(zon|maa|din|woe|don|vri|zat)/i,wide:/^(zondag|maandag|dinsdag|woensdag|donderdag|vrijdag|zaterdag)/i},Qft={narrow:[/^z/i,/^m/i,/^d/i,/^w/i,/^d/i,/^v/i,/^z/i],any:[/^zo/i,/^ma/i,/^di/i,/^wo/i,/^do/i,/^vr/i,/^za/i]},Jft={any:/^(am|pm|middernacht|het middaguur|'s (ochtends|middags|avonds|nachts))/i},Zft={any:{am:/^am/i,pm:/^pm/i,midnight:/^middernacht/i,noon:/^het middaguur/i,morning:/ochtend/i,afternoon:/middag/i,evening:/avond/i,night:/nacht/i}},ept={ordinalNumber:Xt({matchPattern:Wft,parsePattern:zft,valueCallback:function(t){return parseInt(t,10)}}),era:se({matchPatterns:qft,defaultMatchWidth:"wide",parsePatterns:Hft,defaultParseWidth:"any"}),quarter:se({matchPatterns:Vft,defaultMatchWidth:"wide",parsePatterns:Gft,defaultParseWidth:"any",valueCallback:function(t){return t+1}}),month:se({matchPatterns:Yft,defaultMatchWidth:"wide",parsePatterns:Kft,defaultParseWidth:"any"}),day:se({matchPatterns:Xft,defaultMatchWidth:"wide",parsePatterns:Qft,defaultParseWidth:"any"}),dayPeriod:se({matchPatterns:Jft,defaultMatchWidth:"any",parsePatterns:Zft,defaultParseWidth:"any"})},tpt={code:"nl",formatDistance:Oft,formatLong:Nft,formatRelative:Ift,localize:Bft,match:ept,options:{weekStartsOn:1,firstWeekContainsDate:4}};const npt=Object.freeze(Object.defineProperty({__proto__:null,default:tpt},Symbol.toStringTag,{value:"Module"})),rpt=jt(npt);var apt={lessThanXSeconds:{one:"mindre enn eitt sekund",other:"mindre enn {{count}} sekund"},xSeconds:{one:"eitt sekund",other:"{{count}} sekund"},halfAMinute:"eit halvt minutt",lessThanXMinutes:{one:"mindre enn eitt minutt",other:"mindre enn {{count}} minutt"},xMinutes:{one:"eitt minutt",other:"{{count}} minutt"},aboutXHours:{one:"omtrent ein time",other:"omtrent {{count}} timar"},xHours:{one:"ein time",other:"{{count}} timar"},xDays:{one:"ein dag",other:"{{count}} dagar"},aboutXWeeks:{one:"omtrent ei veke",other:"omtrent {{count}} veker"},xWeeks:{one:"ei veke",other:"{{count}} veker"},aboutXMonths:{one:"omtrent ein månad",other:"omtrent {{count}} månader"},xMonths:{one:"ein månad",other:"{{count}} månader"},aboutXYears:{one:"omtrent eitt år",other:"omtrent {{count}} år"},xYears:{one:"eitt år",other:"{{count}} år"},overXYears:{one:"over eitt år",other:"over {{count}} år"},almostXYears:{one:"nesten eitt år",other:"nesten {{count}} år"}},ipt=["null","ein","to","tre","fire","fem","seks","sju","åtte","ni","ti","elleve","tolv"],opt=function(t,n,r){var a,i=apt[t];return typeof i=="string"?a=i:n===1?a=i.one:r&&r.onlyNumeric?a=i.other.replace("{{count}}",String(n)):a=i.other.replace("{{count}}",n<13?ipt[n]:String(n)),r!=null&&r.addSuffix?r.comparison&&r.comparison>0?"om "+a:a+" sidan":a},spt={full:"EEEE d. MMMM y",long:"d. MMMM y",medium:"d. MMM y",short:"dd.MM.y"},lpt={full:"'kl'. HH:mm:ss zzzz",long:"HH:mm:ss z",medium:"HH:mm:ss",short:"HH:mm"},upt={full:"{{date}} 'kl.' {{time}}",long:"{{date}} 'kl.' {{time}}",medium:"{{date}} {{time}}",short:"{{date}} {{time}}"},cpt={date:Ne({formats:spt,defaultWidth:"full"}),time:Ne({formats:lpt,defaultWidth:"full"}),dateTime:Ne({formats:upt,defaultWidth:"full"})},dpt={lastWeek:"'førre' eeee 'kl.' p",yesterday:"'i går kl.' p",today:"'i dag kl.' p",tomorrow:"'i morgon kl.' p",nextWeek:"EEEE 'kl.' p",other:"P"},fpt=function(t,n,r,a){return dpt[t]},ppt={narrow:["f.Kr.","e.Kr."],abbreviated:["f.Kr.","e.Kr."],wide:["før Kristus","etter Kristus"]},hpt={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1. kvartal","2. kvartal","3. kvartal","4. kvartal"]},mpt={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["jan.","feb.","mars","apr.","mai","juni","juli","aug.","sep.","okt.","nov.","des."],wide:["januar","februar","mars","april","mai","juni","juli","august","september","oktober","november","desember"]},gpt={narrow:["S","M","T","O","T","F","L"],short:["su","må","ty","on","to","fr","lau"],abbreviated:["sun","mån","tys","ons","tor","fre","laur"],wide:["sundag","måndag","tysdag","onsdag","torsdag","fredag","laurdag"]},vpt={narrow:{am:"a",pm:"p",midnight:"midnatt",noon:"middag",morning:"på morg.",afternoon:"på etterm.",evening:"på kvelden",night:"på natta"},abbreviated:{am:"a.m.",pm:"p.m.",midnight:"midnatt",noon:"middag",morning:"på morg.",afternoon:"på etterm.",evening:"på kvelden",night:"på natta"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnatt",noon:"middag",morning:"på morgonen",afternoon:"på ettermiddagen",evening:"på kvelden",night:"på natta"}},ypt=function(t,n){var r=Number(t);return r+"."},bpt={ordinalNumber:ypt,era:oe({values:ppt,defaultWidth:"wide"}),quarter:oe({values:hpt,defaultWidth:"wide",argumentCallback:function(t){return t-1}}),month:oe({values:mpt,defaultWidth:"wide"}),day:oe({values:gpt,defaultWidth:"wide"}),dayPeriod:oe({values:vpt,defaultWidth:"wide"})},wpt=/^(\d+)\.?/i,Spt=/\d+/i,Ept={narrow:/^(f\.? ?Kr\.?|fvt\.?|e\.? ?Kr\.?|evt\.?)/i,abbreviated:/^(f\.? ?Kr\.?|fvt\.?|e\.? ?Kr\.?|evt\.?)/i,wide:/^(før Kristus|før vår tid|etter Kristus|vår tid)/i},Tpt={any:[/^f/i,/^e/i]},Cpt={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](\.)? kvartal/i},kpt={any:[/1/i,/2/i,/3/i,/4/i]},xpt={narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mars?|apr|mai|juni?|juli?|aug|sep|okt|nov|des)\.?/i,wide:/^(januar|februar|mars|april|mai|juni|juli|august|september|oktober|november|desember)/i},_pt={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^mai/i,/^jun/i,/^jul/i,/^aug/i,/^s/i,/^o/i,/^n/i,/^d/i]},Opt={narrow:/^[smtofl]/i,short:/^(su|må|ty|on|to|fr|la)/i,abbreviated:/^(sun|mån|tys|ons|tor|fre|laur)/i,wide:/^(sundag|måndag|tysdag|onsdag|torsdag|fredag|laurdag)/i},Rpt={any:[/^s/i,/^m/i,/^ty/i,/^o/i,/^to/i,/^f/i,/^l/i]},Ppt={narrow:/^(midnatt|middag|(på) (morgonen|ettermiddagen|kvelden|natta)|[ap])/i,any:/^([ap]\.?\s?m\.?|midnatt|middag|(på) (morgonen|ettermiddagen|kvelden|natta))/i},Apt={any:{am:/^a(\.?\s?m\.?)?$/i,pm:/^p(\.?\s?m\.?)?$/i,midnight:/^midn/i,noon:/^midd/i,morning:/morgon/i,afternoon:/ettermiddag/i,evening:/kveld/i,night:/natt/i}},Npt={ordinalNumber:Xt({matchPattern:wpt,parsePattern:Spt,valueCallback:function(t){return parseInt(t,10)}}),era:se({matchPatterns:Ept,defaultMatchWidth:"wide",parsePatterns:Tpt,defaultParseWidth:"any"}),quarter:se({matchPatterns:Cpt,defaultMatchWidth:"wide",parsePatterns:kpt,defaultParseWidth:"any",valueCallback:function(t){return t+1}}),month:se({matchPatterns:xpt,defaultMatchWidth:"wide",parsePatterns:_pt,defaultParseWidth:"any"}),day:se({matchPatterns:Opt,defaultMatchWidth:"wide",parsePatterns:Rpt,defaultParseWidth:"any"}),dayPeriod:se({matchPatterns:Ppt,defaultMatchWidth:"any",parsePatterns:Apt,defaultParseWidth:"any"})},Mpt={code:"nn",formatDistance:opt,formatLong:cpt,formatRelative:fpt,localize:bpt,match:Npt,options:{weekStartsOn:1,firstWeekContainsDate:4}};const Ipt=Object.freeze(Object.defineProperty({__proto__:null,default:Mpt},Symbol.toStringTag,{value:"Module"})),Dpt=jt(Ipt);var $pt={lessThanXSeconds:{one:{regular:"mniej niż sekunda",past:"mniej niż sekundę",future:"mniej niż sekundę"},twoFour:"mniej niż {{count}} sekundy",other:"mniej niż {{count}} sekund"},xSeconds:{one:{regular:"sekunda",past:"sekundę",future:"sekundę"},twoFour:"{{count}} sekundy",other:"{{count}} sekund"},halfAMinute:{one:"pół minuty",twoFour:"pół minuty",other:"pół minuty"},lessThanXMinutes:{one:{regular:"mniej niż minuta",past:"mniej niż minutę",future:"mniej niż minutę"},twoFour:"mniej niż {{count}} minuty",other:"mniej niż {{count}} minut"},xMinutes:{one:{regular:"minuta",past:"minutę",future:"minutę"},twoFour:"{{count}} minuty",other:"{{count}} minut"},aboutXHours:{one:{regular:"około godziny",past:"około godziny",future:"około godzinę"},twoFour:"około {{count}} godziny",other:"około {{count}} godzin"},xHours:{one:{regular:"godzina",past:"godzinę",future:"godzinę"},twoFour:"{{count}} godziny",other:"{{count}} godzin"},xDays:{one:{regular:"dzień",past:"dzień",future:"1 dzień"},twoFour:"{{count}} dni",other:"{{count}} dni"},aboutXWeeks:{one:"około tygodnia",twoFour:"około {{count}} tygodni",other:"około {{count}} tygodni"},xWeeks:{one:"tydzień",twoFour:"{{count}} tygodnie",other:"{{count}} tygodni"},aboutXMonths:{one:"około miesiąc",twoFour:"około {{count}} miesiące",other:"około {{count}} miesięcy"},xMonths:{one:"miesiąc",twoFour:"{{count}} miesiące",other:"{{count}} miesięcy"},aboutXYears:{one:"około rok",twoFour:"około {{count}} lata",other:"około {{count}} lat"},xYears:{one:"rok",twoFour:"{{count}} lata",other:"{{count}} lat"},overXYears:{one:"ponad rok",twoFour:"ponad {{count}} lata",other:"ponad {{count}} lat"},almostXYears:{one:"prawie rok",twoFour:"prawie {{count}} lata",other:"prawie {{count}} lat"}};function Lpt(e,t){if(t===1)return e.one;var n=t%100;if(n<=20&&n>10)return e.other;var r=n%10;return r>=2&&r<=4?e.twoFour:e.other}function lL(e,t,n){var r=Lpt(e,t),a=typeof r=="string"?r:r[n];return a.replace("{{count}}",String(t))}var Fpt=function(t,n,r){var a=$pt[t];return r!=null&&r.addSuffix?r.comparison&&r.comparison>0?"za "+lL(a,n,"future"):lL(a,n,"past")+" temu":lL(a,n,"regular")},jpt={full:"EEEE, do MMMM y",long:"do MMMM y",medium:"do MMM y",short:"dd.MM.y"},Upt={full:"HH:mm:ss zzzz",long:"HH:mm:ss z",medium:"HH:mm:ss",short:"HH:mm"},Bpt={full:"{{date}} {{time}}",long:"{{date}} {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},Wpt={date:Ne({formats:jpt,defaultWidth:"full"}),time:Ne({formats:Upt,defaultWidth:"full"}),dateTime:Ne({formats:Bpt,defaultWidth:"full"})},zpt={masculine:"ostatni",feminine:"ostatnia"},qpt={masculine:"ten",feminine:"ta"},Hpt={masculine:"następny",feminine:"następna"},Vpt={0:"feminine",1:"masculine",2:"masculine",3:"feminine",4:"masculine",5:"masculine",6:"feminine"};function TY(e,t,n,r){var a;if(Ei(t,n,r))a=qpt;else if(e==="lastWeek")a=zpt;else if(e==="nextWeek")a=Hpt;else throw new Error("Cannot determine adjectives for token ".concat(e));var i=t.getUTCDay(),o=Vpt[i],l=a[o];return"'".concat(l,"' eeee 'o' p")}var Gpt={lastWeek:TY,yesterday:"'wczoraj o' p",today:"'dzisiaj o' p",tomorrow:"'jutro o' p",nextWeek:TY,other:"P"},Ypt=function(t,n,r,a){var i=Gpt[t];return typeof i=="function"?i(t,n,r,a):i},Kpt={narrow:["p.n.e.","n.e."],abbreviated:["p.n.e.","n.e."],wide:["przed naszą erą","naszej ery"]},Xpt={narrow:["1","2","3","4"],abbreviated:["I kw.","II kw.","III kw.","IV kw."],wide:["I kwartał","II kwartał","III kwartał","IV kwartał"]},Qpt={narrow:["S","L","M","K","M","C","L","S","W","P","L","G"],abbreviated:["sty","lut","mar","kwi","maj","cze","lip","sie","wrz","paź","lis","gru"],wide:["styczeń","luty","marzec","kwiecień","maj","czerwiec","lipiec","sierpień","wrzesień","październik","listopad","grudzień"]},Jpt={narrow:["s","l","m","k","m","c","l","s","w","p","l","g"],abbreviated:["sty","lut","mar","kwi","maj","cze","lip","sie","wrz","paź","lis","gru"],wide:["stycznia","lutego","marca","kwietnia","maja","czerwca","lipca","sierpnia","września","października","listopada","grudnia"]},Zpt={narrow:["N","P","W","Ś","C","P","S"],short:["nie","pon","wto","śro","czw","pią","sob"],abbreviated:["niedz.","pon.","wt.","śr.","czw.","pt.","sob."],wide:["niedziela","poniedziałek","wtorek","środa","czwartek","piątek","sobota"]},eht={narrow:["n","p","w","ś","c","p","s"],short:["nie","pon","wto","śro","czw","pią","sob"],abbreviated:["niedz.","pon.","wt.","śr.","czw.","pt.","sob."],wide:["niedziela","poniedziałek","wtorek","środa","czwartek","piątek","sobota"]},tht={narrow:{am:"a",pm:"p",midnight:"półn.",noon:"poł",morning:"rano",afternoon:"popoł.",evening:"wiecz.",night:"noc"},abbreviated:{am:"AM",pm:"PM",midnight:"północ",noon:"południe",morning:"rano",afternoon:"popołudnie",evening:"wieczór",night:"noc"},wide:{am:"AM",pm:"PM",midnight:"północ",noon:"południe",morning:"rano",afternoon:"popołudnie",evening:"wieczór",night:"noc"}},nht={narrow:{am:"a",pm:"p",midnight:"o półn.",noon:"w poł.",morning:"rano",afternoon:"po poł.",evening:"wiecz.",night:"w nocy"},abbreviated:{am:"AM",pm:"PM",midnight:"o północy",noon:"w południe",morning:"rano",afternoon:"po południu",evening:"wieczorem",night:"w nocy"},wide:{am:"AM",pm:"PM",midnight:"o północy",noon:"w południe",morning:"rano",afternoon:"po południu",evening:"wieczorem",night:"w nocy"}},rht=function(t,n){return String(t)},aht={ordinalNumber:rht,era:oe({values:Kpt,defaultWidth:"wide"}),quarter:oe({values:Xpt,defaultWidth:"wide",argumentCallback:function(t){return t-1}}),month:oe({values:Qpt,defaultWidth:"wide",formattingValues:Jpt,defaultFormattingWidth:"wide"}),day:oe({values:Zpt,defaultWidth:"wide",formattingValues:eht,defaultFormattingWidth:"wide"}),dayPeriod:oe({values:tht,defaultWidth:"wide",formattingValues:nht,defaultFormattingWidth:"wide"})},iht=/^(\d+)?/i,oht=/\d+/i,sht={narrow:/^(p\.?\s*n\.?\s*e\.?\s*|n\.?\s*e\.?\s*)/i,abbreviated:/^(p\.?\s*n\.?\s*e\.?\s*|n\.?\s*e\.?\s*)/i,wide:/^(przed\s*nasz(ą|a)\s*er(ą|a)|naszej\s*ery)/i},lht={any:[/^p/i,/^n/i]},uht={narrow:/^[1234]/i,abbreviated:/^(I|II|III|IV)\s*kw\.?/i,wide:/^(I|II|III|IV)\s*kwarta(ł|l)/i},cht={narrow:[/1/i,/2/i,/3/i,/4/i],any:[/^I kw/i,/^II kw/i,/^III kw/i,/^IV kw/i]},dht={narrow:/^[slmkcwpg]/i,abbreviated:/^(sty|lut|mar|kwi|maj|cze|lip|sie|wrz|pa(ź|z)|lis|gru)/i,wide:/^(stycznia|stycze(ń|n)|lutego|luty|marca|marzec|kwietnia|kwiecie(ń|n)|maja|maj|czerwca|czerwiec|lipca|lipiec|sierpnia|sierpie(ń|n)|wrze(ś|s)nia|wrzesie(ń|n)|pa(ź|z)dziernika|pa(ź|z)dziernik|listopada|listopad|grudnia|grudzie(ń|n))/i},fht={narrow:[/^s/i,/^l/i,/^m/i,/^k/i,/^m/i,/^c/i,/^l/i,/^s/i,/^w/i,/^p/i,/^l/i,/^g/i],any:[/^st/i,/^lu/i,/^mar/i,/^k/i,/^maj/i,/^c/i,/^lip/i,/^si/i,/^w/i,/^p/i,/^lis/i,/^g/i]},pht={narrow:/^[npwścs]/i,short:/^(nie|pon|wto|(ś|s)ro|czw|pi(ą|a)|sob)/i,abbreviated:/^(niedz|pon|wt|(ś|s)r|czw|pt|sob)\.?/i,wide:/^(niedziela|poniedzia(ł|l)ek|wtorek|(ś|s)roda|czwartek|pi(ą|a)tek|sobota)/i},hht={narrow:[/^n/i,/^p/i,/^w/i,/^ś/i,/^c/i,/^p/i,/^s/i],abbreviated:[/^n/i,/^po/i,/^w/i,/^(ś|s)r/i,/^c/i,/^pt/i,/^so/i],any:[/^n/i,/^po/i,/^w/i,/^(ś|s)r/i,/^c/i,/^pi/i,/^so/i]},mht={narrow:/^(^a$|^p$|pó(ł|l)n\.?|o\s*pó(ł|l)n\.?|po(ł|l)\.?|w\s*po(ł|l)\.?|po\s*po(ł|l)\.?|rano|wiecz\.?|noc|w\s*nocy)/i,any:/^(am|pm|pó(ł|l)noc|o\s*pó(ł|l)nocy|po(ł|l)udnie|w\s*po(ł|l)udnie|popo(ł|l)udnie|po\s*po(ł|l)udniu|rano|wieczór|wieczorem|noc|w\s*nocy)/i},ght={narrow:{am:/^a$/i,pm:/^p$/i,midnight:/pó(ł|l)n/i,noon:/po(ł|l)/i,morning:/rano/i,afternoon:/po\s*po(ł|l)/i,evening:/wiecz/i,night:/noc/i},any:{am:/^am/i,pm:/^pm/i,midnight:/pó(ł|l)n/i,noon:/po(ł|l)/i,morning:/rano/i,afternoon:/po\s*po(ł|l)/i,evening:/wiecz/i,night:/noc/i}},vht={ordinalNumber:Xt({matchPattern:iht,parsePattern:oht,valueCallback:function(t){return parseInt(t,10)}}),era:se({matchPatterns:sht,defaultMatchWidth:"wide",parsePatterns:lht,defaultParseWidth:"any"}),quarter:se({matchPatterns:uht,defaultMatchWidth:"wide",parsePatterns:cht,defaultParseWidth:"any",valueCallback:function(t){return t+1}}),month:se({matchPatterns:dht,defaultMatchWidth:"wide",parsePatterns:fht,defaultParseWidth:"any"}),day:se({matchPatterns:pht,defaultMatchWidth:"wide",parsePatterns:hht,defaultParseWidth:"any"}),dayPeriod:se({matchPatterns:mht,defaultMatchWidth:"any",parsePatterns:ght,defaultParseWidth:"any"})},yht={code:"pl",formatDistance:Fpt,formatLong:Wpt,formatRelative:Ypt,localize:aht,match:vht,options:{weekStartsOn:1,firstWeekContainsDate:4}};const bht=Object.freeze(Object.defineProperty({__proto__:null,default:yht},Symbol.toStringTag,{value:"Module"})),wht=jt(bht);var Sht={lessThanXSeconds:{one:"menos de um segundo",other:"menos de {{count}} segundos"},xSeconds:{one:"1 segundo",other:"{{count}} segundos"},halfAMinute:"meio minuto",lessThanXMinutes:{one:"menos de um minuto",other:"menos de {{count}} minutos"},xMinutes:{one:"1 minuto",other:"{{count}} minutos"},aboutXHours:{one:"aproximadamente 1 hora",other:"aproximadamente {{count}} horas"},xHours:{one:"1 hora",other:"{{count}} horas"},xDays:{one:"1 dia",other:"{{count}} dias"},aboutXWeeks:{one:"aproximadamente 1 semana",other:"aproximadamente {{count}} semanas"},xWeeks:{one:"1 semana",other:"{{count}} semanas"},aboutXMonths:{one:"aproximadamente 1 mês",other:"aproximadamente {{count}} meses"},xMonths:{one:"1 mês",other:"{{count}} meses"},aboutXYears:{one:"aproximadamente 1 ano",other:"aproximadamente {{count}} anos"},xYears:{one:"1 ano",other:"{{count}} anos"},overXYears:{one:"mais de 1 ano",other:"mais de {{count}} anos"},almostXYears:{one:"quase 1 ano",other:"quase {{count}} anos"}},Eht=function(t,n,r){var a,i=Sht[t];return typeof i=="string"?a=i:n===1?a=i.one:a=i.other.replace("{{count}}",String(n)),r!=null&&r.addSuffix?r.comparison&&r.comparison>0?"daqui a "+a:"há "+a:a},Tht={full:"EEEE, d 'de' MMMM 'de' y",long:"d 'de' MMMM 'de' y",medium:"d 'de' MMM 'de' y",short:"dd/MM/y"},Cht={full:"HH:mm:ss zzzz",long:"HH:mm:ss z",medium:"HH:mm:ss",short:"HH:mm"},kht={full:"{{date}} 'às' {{time}}",long:"{{date}} 'às' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},xht={date:Ne({formats:Tht,defaultWidth:"full"}),time:Ne({formats:Cht,defaultWidth:"full"}),dateTime:Ne({formats:kht,defaultWidth:"full"})},_ht={lastWeek:function(t){var n=t.getUTCDay(),r=n===0||n===6?"último":"última";return"'"+r+"' eeee 'às' p"},yesterday:"'ontem às' p",today:"'hoje às' p",tomorrow:"'amanhã às' p",nextWeek:"eeee 'às' p",other:"P"},Oht=function(t,n,r,a){var i=_ht[t];return typeof i=="function"?i(n):i},Rht={narrow:["aC","dC"],abbreviated:["a.C.","d.C."],wide:["antes de Cristo","depois de Cristo"]},Pht={narrow:["1","2","3","4"],abbreviated:["T1","T2","T3","T4"],wide:["1º trimestre","2º trimestre","3º trimestre","4º trimestre"]},Aht={narrow:["j","f","m","a","m","j","j","a","s","o","n","d"],abbreviated:["jan","fev","mar","abr","mai","jun","jul","ago","set","out","nov","dez"],wide:["janeiro","fevereiro","março","abril","maio","junho","julho","agosto","setembro","outubro","novembro","dezembro"]},Nht={narrow:["d","s","t","q","q","s","s"],short:["dom","seg","ter","qua","qui","sex","sáb"],abbreviated:["dom","seg","ter","qua","qui","sex","sáb"],wide:["domingo","segunda-feira","terça-feira","quarta-feira","quinta-feira","sexta-feira","sábado"]},Mht={narrow:{am:"AM",pm:"PM",midnight:"meia-noite",noon:"meio-dia",morning:"manhã",afternoon:"tarde",evening:"noite",night:"madrugada"},abbreviated:{am:"AM",pm:"PM",midnight:"meia-noite",noon:"meio-dia",morning:"manhã",afternoon:"tarde",evening:"noite",night:"madrugada"},wide:{am:"AM",pm:"PM",midnight:"meia-noite",noon:"meio-dia",morning:"manhã",afternoon:"tarde",evening:"noite",night:"madrugada"}},Iht={narrow:{am:"AM",pm:"PM",midnight:"meia-noite",noon:"meio-dia",morning:"da manhã",afternoon:"da tarde",evening:"da noite",night:"da madrugada"},abbreviated:{am:"AM",pm:"PM",midnight:"meia-noite",noon:"meio-dia",morning:"da manhã",afternoon:"da tarde",evening:"da noite",night:"da madrugada"},wide:{am:"AM",pm:"PM",midnight:"meia-noite",noon:"meio-dia",morning:"da manhã",afternoon:"da tarde",evening:"da noite",night:"da madrugada"}},Dht=function(t,n){var r=Number(t);return r+"º"},$ht={ordinalNumber:Dht,era:oe({values:Rht,defaultWidth:"wide"}),quarter:oe({values:Pht,defaultWidth:"wide",argumentCallback:function(t){return t-1}}),month:oe({values:Aht,defaultWidth:"wide"}),day:oe({values:Nht,defaultWidth:"wide"}),dayPeriod:oe({values:Mht,defaultWidth:"wide",formattingValues:Iht,defaultFormattingWidth:"wide"})},Lht=/^(\d+)(º|ª)?/i,Fht=/\d+/i,jht={narrow:/^(ac|dc|a|d)/i,abbreviated:/^(a\.?\s?c\.?|a\.?\s?e\.?\s?c\.?|d\.?\s?c\.?|e\.?\s?c\.?)/i,wide:/^(antes de cristo|antes da era comum|depois de cristo|era comum)/i},Uht={any:[/^ac/i,/^dc/i],wide:[/^(antes de cristo|antes da era comum)/i,/^(depois de cristo|era comum)/i]},Bht={narrow:/^[1234]/i,abbreviated:/^T[1234]/i,wide:/^[1234](º|ª)? trimestre/i},Wht={any:[/1/i,/2/i,/3/i,/4/i]},zht={narrow:/^[jfmasond]/i,abbreviated:/^(jan|fev|mar|abr|mai|jun|jul|ago|set|out|nov|dez)/i,wide:/^(janeiro|fevereiro|março|abril|maio|junho|julho|agosto|setembro|outubro|novembro|dezembro)/i},qht={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ab/i,/^mai/i,/^jun/i,/^jul/i,/^ag/i,/^s/i,/^o/i,/^n/i,/^d/i]},Hht={narrow:/^[dstq]/i,short:/^(dom|seg|ter|qua|qui|sex|s[áa]b)/i,abbreviated:/^(dom|seg|ter|qua|qui|sex|s[áa]b)/i,wide:/^(domingo|segunda-?\s?feira|terça-?\s?feira|quarta-?\s?feira|quinta-?\s?feira|sexta-?\s?feira|s[áa]bado)/i},Vht={narrow:[/^d/i,/^s/i,/^t/i,/^q/i,/^q/i,/^s/i,/^s/i],any:[/^d/i,/^seg/i,/^t/i,/^qua/i,/^qui/i,/^sex/i,/^s[áa]/i]},Ght={narrow:/^(a|p|meia-?\s?noite|meio-?\s?dia|(da) (manh[ãa]|tarde|noite|madrugada))/i,any:/^([ap]\.?\s?m\.?|meia-?\s?noite|meio-?\s?dia|(da) (manh[ãa]|tarde|noite|madrugada))/i},Yht={any:{am:/^a/i,pm:/^p/i,midnight:/^meia/i,noon:/^meio/i,morning:/manh[ãa]/i,afternoon:/tarde/i,evening:/noite/i,night:/madrugada/i}},Kht={ordinalNumber:Xt({matchPattern:Lht,parsePattern:Fht,valueCallback:function(t){return parseInt(t,10)}}),era:se({matchPatterns:jht,defaultMatchWidth:"wide",parsePatterns:Uht,defaultParseWidth:"any"}),quarter:se({matchPatterns:Bht,defaultMatchWidth:"wide",parsePatterns:Wht,defaultParseWidth:"any",valueCallback:function(t){return t+1}}),month:se({matchPatterns:zht,defaultMatchWidth:"wide",parsePatterns:qht,defaultParseWidth:"any"}),day:se({matchPatterns:Hht,defaultMatchWidth:"wide",parsePatterns:Vht,defaultParseWidth:"any"}),dayPeriod:se({matchPatterns:Ght,defaultMatchWidth:"any",parsePatterns:Yht,defaultParseWidth:"any"})},Xht={code:"pt",formatDistance:Eht,formatLong:xht,formatRelative:Oht,localize:$ht,match:Kht,options:{weekStartsOn:1,firstWeekContainsDate:4}};const Qht=Object.freeze(Object.defineProperty({__proto__:null,default:Xht},Symbol.toStringTag,{value:"Module"})),Jht=jt(Qht);var Zht={lessThanXSeconds:{one:"menos de um segundo",other:"menos de {{count}} segundos"},xSeconds:{one:"1 segundo",other:"{{count}} segundos"},halfAMinute:"meio minuto",lessThanXMinutes:{one:"menos de um minuto",other:"menos de {{count}} minutos"},xMinutes:{one:"1 minuto",other:"{{count}} minutos"},aboutXHours:{one:"cerca de 1 hora",other:"cerca de {{count}} horas"},xHours:{one:"1 hora",other:"{{count}} horas"},xDays:{one:"1 dia",other:"{{count}} dias"},aboutXWeeks:{one:"cerca de 1 semana",other:"cerca de {{count}} semanas"},xWeeks:{one:"1 semana",other:"{{count}} semanas"},aboutXMonths:{one:"cerca de 1 mês",other:"cerca de {{count}} meses"},xMonths:{one:"1 mês",other:"{{count}} meses"},aboutXYears:{one:"cerca de 1 ano",other:"cerca de {{count}} anos"},xYears:{one:"1 ano",other:"{{count}} anos"},overXYears:{one:"mais de 1 ano",other:"mais de {{count}} anos"},almostXYears:{one:"quase 1 ano",other:"quase {{count}} anos"}},emt=function(t,n,r){var a,i=Zht[t];return typeof i=="string"?a=i:n===1?a=i.one:a=i.other.replace("{{count}}",String(n)),r!=null&&r.addSuffix?r.comparison&&r.comparison>0?"em "+a:"há "+a:a},tmt={full:"EEEE, d 'de' MMMM 'de' y",long:"d 'de' MMMM 'de' y",medium:"d MMM y",short:"dd/MM/yyyy"},nmt={full:"HH:mm:ss zzzz",long:"HH:mm:ss z",medium:"HH:mm:ss",short:"HH:mm"},rmt={full:"{{date}} 'às' {{time}}",long:"{{date}} 'às' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},amt={date:Ne({formats:tmt,defaultWidth:"full"}),time:Ne({formats:nmt,defaultWidth:"full"}),dateTime:Ne({formats:rmt,defaultWidth:"full"})},imt={lastWeek:function(t){var n=t.getUTCDay(),r=n===0||n===6?"último":"última";return"'"+r+"' eeee 'às' p"},yesterday:"'ontem às' p",today:"'hoje às' p",tomorrow:"'amanhã às' p",nextWeek:"eeee 'às' p",other:"P"},omt=function(t,n,r,a){var i=imt[t];return typeof i=="function"?i(n):i},smt={narrow:["AC","DC"],abbreviated:["AC","DC"],wide:["antes de cristo","depois de cristo"]},lmt={narrow:["1","2","3","4"],abbreviated:["T1","T2","T3","T4"],wide:["1º trimestre","2º trimestre","3º trimestre","4º trimestre"]},umt={narrow:["j","f","m","a","m","j","j","a","s","o","n","d"],abbreviated:["jan","fev","mar","abr","mai","jun","jul","ago","set","out","nov","dez"],wide:["janeiro","fevereiro","março","abril","maio","junho","julho","agosto","setembro","outubro","novembro","dezembro"]},cmt={narrow:["D","S","T","Q","Q","S","S"],short:["dom","seg","ter","qua","qui","sex","sab"],abbreviated:["domingo","segunda","terça","quarta","quinta","sexta","sábado"],wide:["domingo","segunda-feira","terça-feira","quarta-feira","quinta-feira","sexta-feira","sábado"]},dmt={narrow:{am:"a",pm:"p",midnight:"mn",noon:"md",morning:"manhã",afternoon:"tarde",evening:"tarde",night:"noite"},abbreviated:{am:"AM",pm:"PM",midnight:"meia-noite",noon:"meio-dia",morning:"manhã",afternoon:"tarde",evening:"tarde",night:"noite"},wide:{am:"a.m.",pm:"p.m.",midnight:"meia-noite",noon:"meio-dia",morning:"manhã",afternoon:"tarde",evening:"tarde",night:"noite"}},fmt={narrow:{am:"a",pm:"p",midnight:"mn",noon:"md",morning:"da manhã",afternoon:"da tarde",evening:"da tarde",night:"da noite"},abbreviated:{am:"AM",pm:"PM",midnight:"meia-noite",noon:"meio-dia",morning:"da manhã",afternoon:"da tarde",evening:"da tarde",night:"da noite"},wide:{am:"a.m.",pm:"p.m.",midnight:"meia-noite",noon:"meio-dia",morning:"da manhã",afternoon:"da tarde",evening:"da tarde",night:"da noite"}},pmt=function(t,n){var r=Number(t);return(n==null?void 0:n.unit)==="week"?r+"ª":r+"º"},hmt={ordinalNumber:pmt,era:oe({values:smt,defaultWidth:"wide"}),quarter:oe({values:lmt,defaultWidth:"wide",argumentCallback:function(t){return t-1}}),month:oe({values:umt,defaultWidth:"wide"}),day:oe({values:cmt,defaultWidth:"wide"}),dayPeriod:oe({values:dmt,defaultWidth:"wide",formattingValues:fmt,defaultFormattingWidth:"wide"})},mmt=/^(\d+)[ºªo]?/i,gmt=/\d+/i,vmt={narrow:/^(ac|dc|a|d)/i,abbreviated:/^(a\.?\s?c\.?|d\.?\s?c\.?)/i,wide:/^(antes de cristo|depois de cristo)/i},ymt={any:[/^ac/i,/^dc/i],wide:[/^antes de cristo/i,/^depois de cristo/i]},bmt={narrow:/^[1234]/i,abbreviated:/^T[1234]/i,wide:/^[1234](º)? trimestre/i},wmt={any:[/1/i,/2/i,/3/i,/4/i]},Smt={narrow:/^[jfmajsond]/i,abbreviated:/^(jan|fev|mar|abr|mai|jun|jul|ago|set|out|nov|dez)/i,wide:/^(janeiro|fevereiro|março|abril|maio|junho|julho|agosto|setembro|outubro|novembro|dezembro)/i},Emt={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^fev/i,/^mar/i,/^abr/i,/^mai/i,/^jun/i,/^jul/i,/^ago/i,/^set/i,/^out/i,/^nov/i,/^dez/i]},Tmt={narrow:/^(dom|[23456]ª?|s[aá]b)/i,short:/^(dom|[23456]ª?|s[aá]b)/i,abbreviated:/^(dom|seg|ter|qua|qui|sex|s[aá]b)/i,wide:/^(domingo|(segunda|ter[cç]a|quarta|quinta|sexta)([- ]feira)?|s[aá]bado)/i},Cmt={short:[/^d/i,/^2/i,/^3/i,/^4/i,/^5/i,/^6/i,/^s[aá]/i],narrow:[/^d/i,/^2/i,/^3/i,/^4/i,/^5/i,/^6/i,/^s[aá]/i],any:[/^d/i,/^seg/i,/^t/i,/^qua/i,/^qui/i,/^sex/i,/^s[aá]b/i]},kmt={narrow:/^(a|p|mn|md|(da) (manhã|tarde|noite))/i,any:/^([ap]\.?\s?m\.?|meia[-\s]noite|meio[-\s]dia|(da) (manhã|tarde|noite))/i},xmt={any:{am:/^a/i,pm:/^p/i,midnight:/^mn|^meia[-\s]noite/i,noon:/^md|^meio[-\s]dia/i,morning:/manhã/i,afternoon:/tarde/i,evening:/tarde/i,night:/noite/i}},_mt={ordinalNumber:Xt({matchPattern:mmt,parsePattern:gmt,valueCallback:function(t){return parseInt(t,10)}}),era:se({matchPatterns:vmt,defaultMatchWidth:"wide",parsePatterns:ymt,defaultParseWidth:"any"}),quarter:se({matchPatterns:bmt,defaultMatchWidth:"wide",parsePatterns:wmt,defaultParseWidth:"any",valueCallback:function(t){return t+1}}),month:se({matchPatterns:Smt,defaultMatchWidth:"wide",parsePatterns:Emt,defaultParseWidth:"any"}),day:se({matchPatterns:Tmt,defaultMatchWidth:"wide",parsePatterns:Cmt,defaultParseWidth:"any"}),dayPeriod:se({matchPatterns:kmt,defaultMatchWidth:"any",parsePatterns:xmt,defaultParseWidth:"any"})},Omt={code:"pt-BR",formatDistance:emt,formatLong:amt,formatRelative:omt,localize:hmt,match:_mt,options:{weekStartsOn:0,firstWeekContainsDate:1}};const Rmt=Object.freeze(Object.defineProperty({__proto__:null,default:Omt},Symbol.toStringTag,{value:"Module"})),Pmt=jt(Rmt);var Amt={lessThanXSeconds:{one:"mai puțin de o secundă",other:"mai puțin de {{count}} secunde"},xSeconds:{one:"1 secundă",other:"{{count}} secunde"},halfAMinute:"jumătate de minut",lessThanXMinutes:{one:"mai puțin de un minut",other:"mai puțin de {{count}} minute"},xMinutes:{one:"1 minut",other:"{{count}} minute"},aboutXHours:{one:"circa 1 oră",other:"circa {{count}} ore"},xHours:{one:"1 oră",other:"{{count}} ore"},xDays:{one:"1 zi",other:"{{count}} zile"},aboutXWeeks:{one:"circa o săptămână",other:"circa {{count}} săptămâni"},xWeeks:{one:"1 săptămână",other:"{{count}} săptămâni"},aboutXMonths:{one:"circa 1 lună",other:"circa {{count}} luni"},xMonths:{one:"1 lună",other:"{{count}} luni"},aboutXYears:{one:"circa 1 an",other:"circa {{count}} ani"},xYears:{one:"1 an",other:"{{count}} ani"},overXYears:{one:"peste 1 an",other:"peste {{count}} ani"},almostXYears:{one:"aproape 1 an",other:"aproape {{count}} ani"}},Nmt=function(t,n,r){var a,i=Amt[t];return typeof i=="string"?a=i:n===1?a=i.one:a=i.other.replace("{{count}}",String(n)),r!=null&&r.addSuffix?r.comparison&&r.comparison>0?"în "+a:a+" în urmă":a},Mmt={full:"EEEE, d MMMM yyyy",long:"d MMMM yyyy",medium:"d MMM yyyy",short:"dd.MM.yyyy"},Imt={full:"HH:mm:ss zzzz",long:"HH:mm:ss z",medium:"HH:mm:ss",short:"HH:mm"},Dmt={full:"{{date}} 'la' {{time}}",long:"{{date}} 'la' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},$mt={date:Ne({formats:Mmt,defaultWidth:"full"}),time:Ne({formats:Imt,defaultWidth:"full"}),dateTime:Ne({formats:Dmt,defaultWidth:"full"})},Lmt={lastWeek:"eeee 'trecută la' p",yesterday:"'ieri la' p",today:"'astăzi la' p",tomorrow:"'mâine la' p",nextWeek:"eeee 'viitoare la' p",other:"P"},Fmt=function(t,n,r,a){return Lmt[t]},jmt={narrow:["Î","D"],abbreviated:["Î.d.C.","D.C."],wide:["Înainte de Cristos","După Cristos"]},Umt={narrow:["1","2","3","4"],abbreviated:["T1","T2","T3","T4"],wide:["primul trimestru","al doilea trimestru","al treilea trimestru","al patrulea trimestru"]},Bmt={narrow:["I","F","M","A","M","I","I","A","S","O","N","D"],abbreviated:["ian","feb","mar","apr","mai","iun","iul","aug","sep","oct","noi","dec"],wide:["ianuarie","februarie","martie","aprilie","mai","iunie","iulie","august","septembrie","octombrie","noiembrie","decembrie"]},Wmt={narrow:["d","l","m","m","j","v","s"],short:["du","lu","ma","mi","jo","vi","sâ"],abbreviated:["dum","lun","mar","mie","joi","vin","sâm"],wide:["duminică","luni","marți","miercuri","joi","vineri","sâmbătă"]},zmt={narrow:{am:"a",pm:"p",midnight:"mn",noon:"ami",morning:"dim",afternoon:"da",evening:"s",night:"n"},abbreviated:{am:"AM",pm:"PM",midnight:"miezul nopții",noon:"amiază",morning:"dimineață",afternoon:"după-amiază",evening:"seară",night:"noapte"},wide:{am:"a.m.",pm:"p.m.",midnight:"miezul nopții",noon:"amiază",morning:"dimineață",afternoon:"după-amiază",evening:"seară",night:"noapte"}},qmt={narrow:{am:"a",pm:"p",midnight:"mn",noon:"amiază",morning:"dimineață",afternoon:"după-amiază",evening:"seară",night:"noapte"},abbreviated:{am:"AM",pm:"PM",midnight:"miezul nopții",noon:"amiază",morning:"dimineață",afternoon:"după-amiază",evening:"seară",night:"noapte"},wide:{am:"a.m.",pm:"p.m.",midnight:"miezul nopții",noon:"amiază",morning:"dimineață",afternoon:"după-amiază",evening:"seară",night:"noapte"}},Hmt=function(t,n){return String(t)},Vmt={ordinalNumber:Hmt,era:oe({values:jmt,defaultWidth:"wide"}),quarter:oe({values:Umt,defaultWidth:"wide",argumentCallback:function(t){return t-1}}),month:oe({values:Bmt,defaultWidth:"wide"}),day:oe({values:Wmt,defaultWidth:"wide"}),dayPeriod:oe({values:zmt,defaultWidth:"wide",formattingValues:qmt,defaultFormattingWidth:"wide"})},Gmt=/^(\d+)?/i,Ymt=/\d+/i,Kmt={narrow:/^(Î|D)/i,abbreviated:/^(Î\.?\s?d\.?\s?C\.?|Î\.?\s?e\.?\s?n\.?|D\.?\s?C\.?|e\.?\s?n\.?)/i,wide:/^(Înainte de Cristos|Înaintea erei noastre|După Cristos|Era noastră)/i},Xmt={any:[/^ÎC/i,/^DC/i],wide:[/^(Înainte de Cristos|Înaintea erei noastre)/i,/^(După Cristos|Era noastră)/i]},Qmt={narrow:/^[1234]/i,abbreviated:/^T[1234]/i,wide:/^trimestrul [1234]/i},Jmt={any:[/1/i,/2/i,/3/i,/4/i]},Zmt={narrow:/^[ifmaasond]/i,abbreviated:/^(ian|feb|mar|apr|mai|iun|iul|aug|sep|oct|noi|dec)/i,wide:/^(ianuarie|februarie|martie|aprilie|mai|iunie|iulie|august|septembrie|octombrie|noiembrie|decembrie)/i},egt={narrow:[/^i/i,/^f/i,/^m/i,/^a/i,/^m/i,/^i/i,/^i/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ia/i,/^f/i,/^mar/i,/^ap/i,/^mai/i,/^iun/i,/^iul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},tgt={narrow:/^[dlmjvs]/i,short:/^(d|l|ma|mi|j|v|s)/i,abbreviated:/^(dum|lun|mar|mie|jo|vi|sâ)/i,wide:/^(duminica|luni|marţi|miercuri|joi|vineri|sâmbătă)/i},ngt={narrow:[/^d/i,/^l/i,/^m/i,/^m/i,/^j/i,/^v/i,/^s/i],any:[/^d/i,/^l/i,/^ma/i,/^mi/i,/^j/i,/^v/i,/^s/i]},rgt={narrow:/^(a|p|mn|a|(dimineaţa|după-amiaza|seara|noaptea))/i,any:/^([ap]\.?\s?m\.?|miezul nopții|amiaza|(dimineaţa|după-amiaza|seara|noaptea))/i},agt={any:{am:/^a/i,pm:/^p/i,midnight:/^mn/i,noon:/amiaza/i,morning:/dimineaţa/i,afternoon:/după-amiaza/i,evening:/seara/i,night:/noaptea/i}},igt={ordinalNumber:Xt({matchPattern:Gmt,parsePattern:Ymt,valueCallback:function(t){return parseInt(t,10)}}),era:se({matchPatterns:Kmt,defaultMatchWidth:"wide",parsePatterns:Xmt,defaultParseWidth:"any"}),quarter:se({matchPatterns:Qmt,defaultMatchWidth:"wide",parsePatterns:Jmt,defaultParseWidth:"any",valueCallback:function(t){return t+1}}),month:se({matchPatterns:Zmt,defaultMatchWidth:"wide",parsePatterns:egt,defaultParseWidth:"any"}),day:se({matchPatterns:tgt,defaultMatchWidth:"wide",parsePatterns:ngt,defaultParseWidth:"any"}),dayPeriod:se({matchPatterns:rgt,defaultMatchWidth:"any",parsePatterns:agt,defaultParseWidth:"any"})},ogt={code:"ro",formatDistance:Nmt,formatLong:$mt,formatRelative:Fmt,localize:Vmt,match:igt,options:{weekStartsOn:1,firstWeekContainsDate:1}};const sgt=Object.freeze(Object.defineProperty({__proto__:null,default:ogt},Symbol.toStringTag,{value:"Module"})),lgt=jt(sgt);function w1(e,t){if(e.one!==void 0&&t===1)return e.one;var n=t%10,r=t%100;return n===1&&r!==11?e.singularNominative.replace("{{count}}",String(t)):n>=2&&n<=4&&(r<10||r>20)?e.singularGenitive.replace("{{count}}",String(t)):e.pluralGenitive.replace("{{count}}",String(t))}function Do(e){return function(t,n){return n!=null&&n.addSuffix?n.comparison&&n.comparison>0?e.future?w1(e.future,t):"через "+w1(e.regular,t):e.past?w1(e.past,t):w1(e.regular,t)+" назад":w1(e.regular,t)}}var ugt={lessThanXSeconds:Do({regular:{one:"меньше секунды",singularNominative:"меньше {{count}} секунды",singularGenitive:"меньше {{count}} секунд",pluralGenitive:"меньше {{count}} секунд"},future:{one:"меньше, чем через секунду",singularNominative:"меньше, чем через {{count}} секунду",singularGenitive:"меньше, чем через {{count}} секунды",pluralGenitive:"меньше, чем через {{count}} секунд"}}),xSeconds:Do({regular:{singularNominative:"{{count}} секунда",singularGenitive:"{{count}} секунды",pluralGenitive:"{{count}} секунд"},past:{singularNominative:"{{count}} секунду назад",singularGenitive:"{{count}} секунды назад",pluralGenitive:"{{count}} секунд назад"},future:{singularNominative:"через {{count}} секунду",singularGenitive:"через {{count}} секунды",pluralGenitive:"через {{count}} секунд"}}),halfAMinute:function(t,n){return n!=null&&n.addSuffix?n.comparison&&n.comparison>0?"через полминуты":"полминуты назад":"полминуты"},lessThanXMinutes:Do({regular:{one:"меньше минуты",singularNominative:"меньше {{count}} минуты",singularGenitive:"меньше {{count}} минут",pluralGenitive:"меньше {{count}} минут"},future:{one:"меньше, чем через минуту",singularNominative:"меньше, чем через {{count}} минуту",singularGenitive:"меньше, чем через {{count}} минуты",pluralGenitive:"меньше, чем через {{count}} минут"}}),xMinutes:Do({regular:{singularNominative:"{{count}} минута",singularGenitive:"{{count}} минуты",pluralGenitive:"{{count}} минут"},past:{singularNominative:"{{count}} минуту назад",singularGenitive:"{{count}} минуты назад",pluralGenitive:"{{count}} минут назад"},future:{singularNominative:"через {{count}} минуту",singularGenitive:"через {{count}} минуты",pluralGenitive:"через {{count}} минут"}}),aboutXHours:Do({regular:{singularNominative:"около {{count}} часа",singularGenitive:"около {{count}} часов",pluralGenitive:"около {{count}} часов"},future:{singularNominative:"приблизительно через {{count}} час",singularGenitive:"приблизительно через {{count}} часа",pluralGenitive:"приблизительно через {{count}} часов"}}),xHours:Do({regular:{singularNominative:"{{count}} час",singularGenitive:"{{count}} часа",pluralGenitive:"{{count}} часов"}}),xDays:Do({regular:{singularNominative:"{{count}} день",singularGenitive:"{{count}} дня",pluralGenitive:"{{count}} дней"}}),aboutXWeeks:Do({regular:{singularNominative:"около {{count}} недели",singularGenitive:"около {{count}} недель",pluralGenitive:"около {{count}} недель"},future:{singularNominative:"приблизительно через {{count}} неделю",singularGenitive:"приблизительно через {{count}} недели",pluralGenitive:"приблизительно через {{count}} недель"}}),xWeeks:Do({regular:{singularNominative:"{{count}} неделя",singularGenitive:"{{count}} недели",pluralGenitive:"{{count}} недель"}}),aboutXMonths:Do({regular:{singularNominative:"около {{count}} месяца",singularGenitive:"около {{count}} месяцев",pluralGenitive:"около {{count}} месяцев"},future:{singularNominative:"приблизительно через {{count}} месяц",singularGenitive:"приблизительно через {{count}} месяца",pluralGenitive:"приблизительно через {{count}} месяцев"}}),xMonths:Do({regular:{singularNominative:"{{count}} месяц",singularGenitive:"{{count}} месяца",pluralGenitive:"{{count}} месяцев"}}),aboutXYears:Do({regular:{singularNominative:"около {{count}} года",singularGenitive:"около {{count}} лет",pluralGenitive:"около {{count}} лет"},future:{singularNominative:"приблизительно через {{count}} год",singularGenitive:"приблизительно через {{count}} года",pluralGenitive:"приблизительно через {{count}} лет"}}),xYears:Do({regular:{singularNominative:"{{count}} год",singularGenitive:"{{count}} года",pluralGenitive:"{{count}} лет"}}),overXYears:Do({regular:{singularNominative:"больше {{count}} года",singularGenitive:"больше {{count}} лет",pluralGenitive:"больше {{count}} лет"},future:{singularNominative:"больше, чем через {{count}} год",singularGenitive:"больше, чем через {{count}} года",pluralGenitive:"больше, чем через {{count}} лет"}}),almostXYears:Do({regular:{singularNominative:"почти {{count}} год",singularGenitive:"почти {{count}} года",pluralGenitive:"почти {{count}} лет"},future:{singularNominative:"почти через {{count}} год",singularGenitive:"почти через {{count}} года",pluralGenitive:"почти через {{count}} лет"}})},cgt=function(t,n,r){return ugt[t](n,r)},dgt={full:"EEEE, d MMMM y 'г.'",long:"d MMMM y 'г.'",medium:"d MMM y 'г.'",short:"dd.MM.y"},fgt={full:"H:mm:ss zzzz",long:"H:mm:ss z",medium:"H:mm:ss",short:"H:mm"},pgt={any:"{{date}}, {{time}}"},hgt={date:Ne({formats:dgt,defaultWidth:"full"}),time:Ne({formats:fgt,defaultWidth:"full"}),dateTime:Ne({formats:pgt,defaultWidth:"any"})},tU=["воскресенье","понедельник","вторник","среду","четверг","пятницу","субботу"];function mgt(e){var t=tU[e];switch(e){case 0:return"'в прошлое "+t+" в' p";case 1:case 2:case 4:return"'в прошлый "+t+" в' p";case 3:case 5:case 6:return"'в прошлую "+t+" в' p"}}function CY(e){var t=tU[e];return e===2?"'во "+t+" в' p":"'в "+t+" в' p"}function ggt(e){var t=tU[e];switch(e){case 0:return"'в следующее "+t+" в' p";case 1:case 2:case 4:return"'в следующий "+t+" в' p";case 3:case 5:case 6:return"'в следующую "+t+" в' p"}}var vgt={lastWeek:function(t,n,r){var a=t.getUTCDay();return Ei(t,n,r)?CY(a):mgt(a)},yesterday:"'вчера в' p",today:"'сегодня в' p",tomorrow:"'завтра в' p",nextWeek:function(t,n,r){var a=t.getUTCDay();return Ei(t,n,r)?CY(a):ggt(a)},other:"P"},ygt=function(t,n,r,a){var i=vgt[t];return typeof i=="function"?i(n,r,a):i},bgt={narrow:["до н.э.","н.э."],abbreviated:["до н. э.","н. э."],wide:["до нашей эры","нашей эры"]},wgt={narrow:["1","2","3","4"],abbreviated:["1-й кв.","2-й кв.","3-й кв.","4-й кв."],wide:["1-й квартал","2-й квартал","3-й квартал","4-й квартал"]},Sgt={narrow:["Я","Ф","М","А","М","И","И","А","С","О","Н","Д"],abbreviated:["янв.","фев.","март","апр.","май","июнь","июль","авг.","сент.","окт.","нояб.","дек."],wide:["январь","февраль","март","апрель","май","июнь","июль","август","сентябрь","октябрь","ноябрь","декабрь"]},Egt={narrow:["Я","Ф","М","А","М","И","И","А","С","О","Н","Д"],abbreviated:["янв.","фев.","мар.","апр.","мая","июн.","июл.","авг.","сент.","окт.","нояб.","дек."],wide:["января","февраля","марта","апреля","мая","июня","июля","августа","сентября","октября","ноября","декабря"]},Tgt={narrow:["В","П","В","С","Ч","П","С"],short:["вс","пн","вт","ср","чт","пт","сб"],abbreviated:["вск","пнд","втр","срд","чтв","птн","суб"],wide:["воскресенье","понедельник","вторник","среда","четверг","пятница","суббота"]},Cgt={narrow:{am:"ДП",pm:"ПП",midnight:"полн.",noon:"полд.",morning:"утро",afternoon:"день",evening:"веч.",night:"ночь"},abbreviated:{am:"ДП",pm:"ПП",midnight:"полн.",noon:"полд.",morning:"утро",afternoon:"день",evening:"веч.",night:"ночь"},wide:{am:"ДП",pm:"ПП",midnight:"полночь",noon:"полдень",morning:"утро",afternoon:"день",evening:"вечер",night:"ночь"}},kgt={narrow:{am:"ДП",pm:"ПП",midnight:"полн.",noon:"полд.",morning:"утра",afternoon:"дня",evening:"веч.",night:"ночи"},abbreviated:{am:"ДП",pm:"ПП",midnight:"полн.",noon:"полд.",morning:"утра",afternoon:"дня",evening:"веч.",night:"ночи"},wide:{am:"ДП",pm:"ПП",midnight:"полночь",noon:"полдень",morning:"утра",afternoon:"дня",evening:"вечера",night:"ночи"}},xgt=function(t,n){var r=Number(t),a=n==null?void 0:n.unit,i;return a==="date"?i="-е":a==="week"||a==="minute"||a==="second"?i="-я":i="-й",r+i},_gt={ordinalNumber:xgt,era:oe({values:bgt,defaultWidth:"wide"}),quarter:oe({values:wgt,defaultWidth:"wide",argumentCallback:function(t){return t-1}}),month:oe({values:Sgt,defaultWidth:"wide",formattingValues:Egt,defaultFormattingWidth:"wide"}),day:oe({values:Tgt,defaultWidth:"wide"}),dayPeriod:oe({values:Cgt,defaultWidth:"any",formattingValues:kgt,defaultFormattingWidth:"wide"})},Ogt=/^(\d+)(-?(е|я|й|ое|ье|ая|ья|ый|ой|ий|ый))?/i,Rgt=/\d+/i,Pgt={narrow:/^((до )?н\.?\s?э\.?)/i,abbreviated:/^((до )?н\.?\s?э\.?)/i,wide:/^(до нашей эры|нашей эры|наша эра)/i},Agt={any:[/^д/i,/^н/i]},Ngt={narrow:/^[1234]/i,abbreviated:/^[1234](-?[ыои]?й?)? кв.?/i,wide:/^[1234](-?[ыои]?й?)? квартал/i},Mgt={any:[/1/i,/2/i,/3/i,/4/i]},Igt={narrow:/^[яфмаисонд]/i,abbreviated:/^(янв|фев|март?|апр|ма[йя]|июн[ья]?|июл[ья]?|авг|сент?|окт|нояб?|дек)\.?/i,wide:/^(январ[ья]|феврал[ья]|марта?|апрел[ья]|ма[йя]|июн[ья]|июл[ья]|августа?|сентябр[ья]|октябр[ья]|октябр[ья]|ноябр[ья]|декабр[ья])/i},Dgt={narrow:[/^я/i,/^ф/i,/^м/i,/^а/i,/^м/i,/^и/i,/^и/i,/^а/i,/^с/i,/^о/i,/^н/i,/^я/i],any:[/^я/i,/^ф/i,/^мар/i,/^ап/i,/^ма[йя]/i,/^июн/i,/^июл/i,/^ав/i,/^с/i,/^о/i,/^н/i,/^д/i]},$gt={narrow:/^[впсч]/i,short:/^(вс|во|пн|по|вт|ср|чт|че|пт|пя|сб|су)\.?/i,abbreviated:/^(вск|вос|пнд|пон|втр|вто|срд|сре|чтв|чет|птн|пят|суб).?/i,wide:/^(воскресень[ея]|понедельника?|вторника?|сред[аы]|четверга?|пятниц[аы]|суббот[аы])/i},Lgt={narrow:[/^в/i,/^п/i,/^в/i,/^с/i,/^ч/i,/^п/i,/^с/i],any:[/^в[ос]/i,/^п[он]/i,/^в/i,/^ср/i,/^ч/i,/^п[ят]/i,/^с[уб]/i]},Fgt={narrow:/^([дп]п|полн\.?|полд\.?|утр[оа]|день|дня|веч\.?|ноч[ьи])/i,abbreviated:/^([дп]п|полн\.?|полд\.?|утр[оа]|день|дня|веч\.?|ноч[ьи])/i,wide:/^([дп]п|полночь|полдень|утр[оа]|день|дня|вечера?|ноч[ьи])/i},jgt={any:{am:/^дп/i,pm:/^пп/i,midnight:/^полн/i,noon:/^полд/i,morning:/^у/i,afternoon:/^д[ен]/i,evening:/^в/i,night:/^н/i}},Ugt={ordinalNumber:Xt({matchPattern:Ogt,parsePattern:Rgt,valueCallback:function(t){return parseInt(t,10)}}),era:se({matchPatterns:Pgt,defaultMatchWidth:"wide",parsePatterns:Agt,defaultParseWidth:"any"}),quarter:se({matchPatterns:Ngt,defaultMatchWidth:"wide",parsePatterns:Mgt,defaultParseWidth:"any",valueCallback:function(t){return t+1}}),month:se({matchPatterns:Igt,defaultMatchWidth:"wide",parsePatterns:Dgt,defaultParseWidth:"any"}),day:se({matchPatterns:$gt,defaultMatchWidth:"wide",parsePatterns:Lgt,defaultParseWidth:"any"}),dayPeriod:se({matchPatterns:Fgt,defaultMatchWidth:"wide",parsePatterns:jgt,defaultParseWidth:"any"})},Bgt={code:"ru",formatDistance:cgt,formatLong:hgt,formatRelative:ygt,localize:_gt,match:Ugt,options:{weekStartsOn:1,firstWeekContainsDate:1}};const Wgt=Object.freeze(Object.defineProperty({__proto__:null,default:Bgt},Symbol.toStringTag,{value:"Module"})),zgt=jt(Wgt);function qgt(e,t){return t===1&&e.one?e.one:t>=2&&t<=4&&e.twoFour?e.twoFour:e.other}function uL(e,t,n){var r=qgt(e,t),a=r[n];return a.replace("{{count}}",String(t))}function Hgt(e){var t=["lessThan","about","over","almost"].filter(function(n){return!!e.match(new RegExp("^"+n))});return t[0]}function cL(e){var t="";return e==="almost"&&(t="takmer"),e==="about"&&(t="približne"),t.length>0?t+" ":""}function dL(e){var t="";return e==="lessThan"&&(t="menej než"),e==="over"&&(t="viac než"),t.length>0?t+" ":""}function Vgt(e){return e.charAt(0).toLowerCase()+e.slice(1)}var Ggt={xSeconds:{one:{present:"sekunda",past:"sekundou",future:"sekundu"},twoFour:{present:"{{count}} sekundy",past:"{{count}} sekundami",future:"{{count}} sekundy"},other:{present:"{{count}} sekúnd",past:"{{count}} sekundami",future:"{{count}} sekúnd"}},halfAMinute:{other:{present:"pol minúty",past:"pol minútou",future:"pol minúty"}},xMinutes:{one:{present:"minúta",past:"minútou",future:"minútu"},twoFour:{present:"{{count}} minúty",past:"{{count}} minútami",future:"{{count}} minúty"},other:{present:"{{count}} minút",past:"{{count}} minútami",future:"{{count}} minút"}},xHours:{one:{present:"hodina",past:"hodinou",future:"hodinu"},twoFour:{present:"{{count}} hodiny",past:"{{count}} hodinami",future:"{{count}} hodiny"},other:{present:"{{count}} hodín",past:"{{count}} hodinami",future:"{{count}} hodín"}},xDays:{one:{present:"deň",past:"dňom",future:"deň"},twoFour:{present:"{{count}} dni",past:"{{count}} dňami",future:"{{count}} dni"},other:{present:"{{count}} dní",past:"{{count}} dňami",future:"{{count}} dní"}},xWeeks:{one:{present:"týždeň",past:"týždňom",future:"týždeň"},twoFour:{present:"{{count}} týždne",past:"{{count}} týždňami",future:"{{count}} týždne"},other:{present:"{{count}} týždňov",past:"{{count}} týždňami",future:"{{count}} týždňov"}},xMonths:{one:{present:"mesiac",past:"mesiacom",future:"mesiac"},twoFour:{present:"{{count}} mesiace",past:"{{count}} mesiacmi",future:"{{count}} mesiace"},other:{present:"{{count}} mesiacov",past:"{{count}} mesiacmi",future:"{{count}} mesiacov"}},xYears:{one:{present:"rok",past:"rokom",future:"rok"},twoFour:{present:"{{count}} roky",past:"{{count}} rokmi",future:"{{count}} roky"},other:{present:"{{count}} rokov",past:"{{count}} rokmi",future:"{{count}} rokov"}}},Ygt=function(t,n,r){var a=Hgt(t)||"",i=Vgt(t.substring(a.length)),o=Ggt[i];return r!=null&&r.addSuffix?r.comparison&&r.comparison>0?cL(a)+"o "+dL(a)+uL(o,n,"future"):cL(a)+"pred "+dL(a)+uL(o,n,"past"):cL(a)+dL(a)+uL(o,n,"present")},Kgt={full:"EEEE d. MMMM y",long:"d. MMMM y",medium:"d. M. y",short:"d. M. y"},Xgt={full:"H:mm:ss zzzz",long:"H:mm:ss z",medium:"H:mm:ss",short:"H:mm"},Qgt={full:"{{date}}, {{time}}",long:"{{date}}, {{time}}",medium:"{{date}}, {{time}}",short:"{{date}} {{time}}"},Jgt={date:Ne({formats:Kgt,defaultWidth:"full"}),time:Ne({formats:Xgt,defaultWidth:"full"}),dateTime:Ne({formats:Qgt,defaultWidth:"full"})},nU=["nedeľu","pondelok","utorok","stredu","štvrtok","piatok","sobotu"];function Zgt(e){var t=nU[e];switch(e){case 0:case 3:case 6:return"'minulú "+t+" o' p";default:return"'minulý' eeee 'o' p"}}function kY(e){var t=nU[e];return e===4?"'vo' eeee 'o' p":"'v "+t+" o' p"}function evt(e){var t=nU[e];switch(e){case 0:case 4:case 6:return"'budúcu "+t+" o' p";default:return"'budúci' eeee 'o' p"}}var tvt={lastWeek:function(t,n,r){var a=t.getUTCDay();return Ei(t,n,r)?kY(a):Zgt(a)},yesterday:"'včera o' p",today:"'dnes o' p",tomorrow:"'zajtra o' p",nextWeek:function(t,n,r){var a=t.getUTCDay();return Ei(t,n,r)?kY(a):evt(a)},other:"P"},nvt=function(t,n,r,a){var i=tvt[t];return typeof i=="function"?i(n,r,a):i},rvt={narrow:["pred Kr.","po Kr."],abbreviated:["pred Kr.","po Kr."],wide:["pred Kristom","po Kristovi"]},avt={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1. štvrťrok","2. štvrťrok","3. štvrťrok","4. štvrťrok"]},ivt={narrow:["j","f","m","a","m","j","j","a","s","o","n","d"],abbreviated:["jan","feb","mar","apr","máj","jún","júl","aug","sep","okt","nov","dec"],wide:["január","február","marec","apríl","máj","jún","júl","august","september","október","november","december"]},ovt={narrow:["j","f","m","a","m","j","j","a","s","o","n","d"],abbreviated:["jan","feb","mar","apr","máj","jún","júl","aug","sep","okt","nov","dec"],wide:["januára","februára","marca","apríla","mája","júna","júla","augusta","septembra","októbra","novembra","decembra"]},svt={narrow:["n","p","u","s","š","p","s"],short:["ne","po","ut","st","št","pi","so"],abbreviated:["ne","po","ut","st","št","pi","so"],wide:["nedeľa","pondelok","utorok","streda","štvrtok","piatok","sobota"]},lvt={narrow:{am:"AM",pm:"PM",midnight:"poln.",noon:"pol.",morning:"ráno",afternoon:"pop.",evening:"več.",night:"noc"},abbreviated:{am:"AM",pm:"PM",midnight:"poln.",noon:"pol.",morning:"ráno",afternoon:"popol.",evening:"večer",night:"noc"},wide:{am:"AM",pm:"PM",midnight:"polnoc",noon:"poludnie",morning:"ráno",afternoon:"popoludnie",evening:"večer",night:"noc"}},uvt={narrow:{am:"AM",pm:"PM",midnight:"o poln.",noon:"nap.",morning:"ráno",afternoon:"pop.",evening:"več.",night:"v n."},abbreviated:{am:"AM",pm:"PM",midnight:"o poln.",noon:"napol.",morning:"ráno",afternoon:"popol.",evening:"večer",night:"v noci"},wide:{am:"AM",pm:"PM",midnight:"o polnoci",noon:"napoludnie",morning:"ráno",afternoon:"popoludní",evening:"večer",night:"v noci"}},cvt=function(t,n){var r=Number(t);return r+"."},dvt={ordinalNumber:cvt,era:oe({values:rvt,defaultWidth:"wide"}),quarter:oe({values:avt,defaultWidth:"wide",argumentCallback:function(t){return t-1}}),month:oe({values:ivt,defaultWidth:"wide",formattingValues:ovt,defaultFormattingWidth:"wide"}),day:oe({values:svt,defaultWidth:"wide"}),dayPeriod:oe({values:lvt,defaultWidth:"wide",formattingValues:uvt,defaultFormattingWidth:"wide"})},fvt=/^(\d+)\.?/i,pvt=/\d+/i,hvt={narrow:/^(pred Kr\.|pred n\. l\.|po Kr\.|n\. l\.)/i,abbreviated:/^(pred Kr\.|pred n\. l\.|po Kr\.|n\. l\.)/i,wide:/^(pred Kristom|pred na[šs][íi]m letopo[čc]tom|po Kristovi|n[áa][šs]ho letopo[čc]tu)/i},mvt={any:[/^pr/i,/^(po|n)/i]},gvt={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234]\. [šs]tvr[ťt]rok/i},vvt={any:[/1/i,/2/i,/3/i,/4/i]},yvt={narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|m[áa]j|j[úu]n|j[úu]l|aug|sep|okt|nov|dec)/i,wide:/^(janu[áa]ra?|febru[áa]ra?|(marec|marca)|apr[íi]la?|m[áa]ja?|j[úu]na?|j[úu]la?|augusta?|(september|septembra)|(okt[óo]ber|okt[óo]bra)|(november|novembra)|(december|decembra))/i},bvt={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^m[áa]j/i,/^j[úu]n/i,/^j[úu]l/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},wvt={narrow:/^[npusšp]/i,short:/^(ne|po|ut|st|št|pi|so)/i,abbreviated:/^(ne|po|ut|st|št|pi|so)/i,wide:/^(nede[ľl]a|pondelok|utorok|streda|[šs]tvrtok|piatok|sobota])/i},Svt={narrow:[/^n/i,/^p/i,/^u/i,/^s/i,/^š/i,/^p/i,/^s/i],any:[/^n/i,/^po/i,/^u/i,/^st/i,/^(št|stv)/i,/^pi/i,/^so/i]},Evt={narrow:/^(am|pm|(o )?poln\.?|(nap\.?|pol\.?)|r[áa]no|pop\.?|ve[čc]\.?|(v n\.?|noc))/i,abbreviated:/^(am|pm|(o )?poln\.?|(napol\.?|pol\.?)|r[áa]no|pop\.?|ve[čc]er|(v )?noci?)/i,any:/^(am|pm|(o )?polnoci?|(na)?poludnie|r[áa]no|popoludn(ie|í|i)|ve[čc]er|(v )?noci?)/i},Tvt={any:{am:/^am/i,pm:/^pm/i,midnight:/poln/i,noon:/^(nap|(na)?pol(\.|u))/i,morning:/^r[áa]no/i,afternoon:/^pop/i,evening:/^ve[čc]/i,night:/^(noc|v n\.)/i}},Cvt={ordinalNumber:Xt({matchPattern:fvt,parsePattern:pvt,valueCallback:function(t){return parseInt(t,10)}}),era:se({matchPatterns:hvt,defaultMatchWidth:"wide",parsePatterns:mvt,defaultParseWidth:"any"}),quarter:se({matchPatterns:gvt,defaultMatchWidth:"wide",parsePatterns:vvt,defaultParseWidth:"any",valueCallback:function(t){return t+1}}),month:se({matchPatterns:yvt,defaultMatchWidth:"wide",parsePatterns:bvt,defaultParseWidth:"any"}),day:se({matchPatterns:wvt,defaultMatchWidth:"wide",parsePatterns:Svt,defaultParseWidth:"any"}),dayPeriod:se({matchPatterns:Evt,defaultMatchWidth:"any",parsePatterns:Tvt,defaultParseWidth:"any"})},kvt={code:"sk",formatDistance:Ygt,formatLong:Jgt,formatRelative:nvt,localize:dvt,match:Cvt,options:{weekStartsOn:1,firstWeekContainsDate:4}};const xvt=Object.freeze(Object.defineProperty({__proto__:null,default:kvt},Symbol.toStringTag,{value:"Module"})),_vt=jt(xvt);function Ovt(e){return e.one!==void 0}var Rvt={lessThanXSeconds:{present:{one:"manj kot {{count}} sekunda",two:"manj kot {{count}} sekundi",few:"manj kot {{count}} sekunde",other:"manj kot {{count}} sekund"},past:{one:"manj kot {{count}} sekundo",two:"manj kot {{count}} sekundama",few:"manj kot {{count}} sekundami",other:"manj kot {{count}} sekundami"},future:{one:"manj kot {{count}} sekundo",two:"manj kot {{count}} sekundi",few:"manj kot {{count}} sekunde",other:"manj kot {{count}} sekund"}},xSeconds:{present:{one:"{{count}} sekunda",two:"{{count}} sekundi",few:"{{count}} sekunde",other:"{{count}} sekund"},past:{one:"{{count}} sekundo",two:"{{count}} sekundama",few:"{{count}} sekundami",other:"{{count}} sekundami"},future:{one:"{{count}} sekundo",two:"{{count}} sekundi",few:"{{count}} sekunde",other:"{{count}} sekund"}},halfAMinute:"pol minute",lessThanXMinutes:{present:{one:"manj kot {{count}} minuta",two:"manj kot {{count}} minuti",few:"manj kot {{count}} minute",other:"manj kot {{count}} minut"},past:{one:"manj kot {{count}} minuto",two:"manj kot {{count}} minutama",few:"manj kot {{count}} minutami",other:"manj kot {{count}} minutami"},future:{one:"manj kot {{count}} minuto",two:"manj kot {{count}} minuti",few:"manj kot {{count}} minute",other:"manj kot {{count}} minut"}},xMinutes:{present:{one:"{{count}} minuta",two:"{{count}} minuti",few:"{{count}} minute",other:"{{count}} minut"},past:{one:"{{count}} minuto",two:"{{count}} minutama",few:"{{count}} minutami",other:"{{count}} minutami"},future:{one:"{{count}} minuto",two:"{{count}} minuti",few:"{{count}} minute",other:"{{count}} minut"}},aboutXHours:{present:{one:"približno {{count}} ura",two:"približno {{count}} uri",few:"približno {{count}} ure",other:"približno {{count}} ur"},past:{one:"približno {{count}} uro",two:"približno {{count}} urama",few:"približno {{count}} urami",other:"približno {{count}} urami"},future:{one:"približno {{count}} uro",two:"približno {{count}} uri",few:"približno {{count}} ure",other:"približno {{count}} ur"}},xHours:{present:{one:"{{count}} ura",two:"{{count}} uri",few:"{{count}} ure",other:"{{count}} ur"},past:{one:"{{count}} uro",two:"{{count}} urama",few:"{{count}} urami",other:"{{count}} urami"},future:{one:"{{count}} uro",two:"{{count}} uri",few:"{{count}} ure",other:"{{count}} ur"}},xDays:{present:{one:"{{count}} dan",two:"{{count}} dni",few:"{{count}} dni",other:"{{count}} dni"},past:{one:"{{count}} dnem",two:"{{count}} dnevoma",few:"{{count}} dnevi",other:"{{count}} dnevi"},future:{one:"{{count}} dan",two:"{{count}} dni",few:"{{count}} dni",other:"{{count}} dni"}},aboutXWeeks:{one:"približno {{count}} teden",two:"približno {{count}} tedna",few:"približno {{count}} tedne",other:"približno {{count}} tednov"},xWeeks:{one:"{{count}} teden",two:"{{count}} tedna",few:"{{count}} tedne",other:"{{count}} tednov"},aboutXMonths:{present:{one:"približno {{count}} mesec",two:"približno {{count}} meseca",few:"približno {{count}} mesece",other:"približno {{count}} mesecev"},past:{one:"približno {{count}} mesecem",two:"približno {{count}} mesecema",few:"približno {{count}} meseci",other:"približno {{count}} meseci"},future:{one:"približno {{count}} mesec",two:"približno {{count}} meseca",few:"približno {{count}} mesece",other:"približno {{count}} mesecev"}},xMonths:{present:{one:"{{count}} mesec",two:"{{count}} meseca",few:"{{count}} meseci",other:"{{count}} mesecev"},past:{one:"{{count}} mesecem",two:"{{count}} mesecema",few:"{{count}} meseci",other:"{{count}} meseci"},future:{one:"{{count}} mesec",two:"{{count}} meseca",few:"{{count}} mesece",other:"{{count}} mesecev"}},aboutXYears:{present:{one:"približno {{count}} leto",two:"približno {{count}} leti",few:"približno {{count}} leta",other:"približno {{count}} let"},past:{one:"približno {{count}} letom",two:"približno {{count}} letoma",few:"približno {{count}} leti",other:"približno {{count}} leti"},future:{one:"približno {{count}} leto",two:"približno {{count}} leti",few:"približno {{count}} leta",other:"približno {{count}} let"}},xYears:{present:{one:"{{count}} leto",two:"{{count}} leti",few:"{{count}} leta",other:"{{count}} let"},past:{one:"{{count}} letom",two:"{{count}} letoma",few:"{{count}} leti",other:"{{count}} leti"},future:{one:"{{count}} leto",two:"{{count}} leti",few:"{{count}} leta",other:"{{count}} let"}},overXYears:{present:{one:"več kot {{count}} leto",two:"več kot {{count}} leti",few:"več kot {{count}} leta",other:"več kot {{count}} let"},past:{one:"več kot {{count}} letom",two:"več kot {{count}} letoma",few:"več kot {{count}} leti",other:"več kot {{count}} leti"},future:{one:"več kot {{count}} leto",two:"več kot {{count}} leti",few:"več kot {{count}} leta",other:"več kot {{count}} let"}},almostXYears:{present:{one:"skoraj {{count}} leto",two:"skoraj {{count}} leti",few:"skoraj {{count}} leta",other:"skoraj {{count}} let"},past:{one:"skoraj {{count}} letom",two:"skoraj {{count}} letoma",few:"skoraj {{count}} leti",other:"skoraj {{count}} leti"},future:{one:"skoraj {{count}} leto",two:"skoraj {{count}} leti",few:"skoraj {{count}} leta",other:"skoraj {{count}} let"}}};function Pvt(e){switch(e%100){case 1:return"one";case 2:return"two";case 3:case 4:return"few";default:return"other"}}var Avt=function(t,n,r){var a="",i="present";r!=null&&r.addSuffix&&(r.comparison&&r.comparison>0?(i="future",a="čez "):(i="past",a="pred "));var o=Rvt[t];if(typeof o=="string")a+=o;else{var l=Pvt(n);Ovt(o)?a+=o[l].replace("{{count}}",String(n)):a+=o[i][l].replace("{{count}}",String(n))}return a},Nvt={full:"EEEE, dd. MMMM y",long:"dd. MMMM y",medium:"d. MMM y",short:"d. MM. yy"},Mvt={full:"HH:mm:ss zzzz",long:"HH:mm:ss z",medium:"HH:mm:ss",short:"HH:mm"},Ivt={full:"{{date}} {{time}}",long:"{{date}} {{time}}",medium:"{{date}} {{time}}",short:"{{date}} {{time}}"},Dvt={date:Ne({formats:Nvt,defaultWidth:"full"}),time:Ne({formats:Mvt,defaultWidth:"full"}),dateTime:Ne({formats:Ivt,defaultWidth:"full"})},$vt={lastWeek:function(t){var n=t.getUTCDay();switch(n){case 0:return"'prejšnjo nedeljo ob' p";case 3:return"'prejšnjo sredo ob' p";case 6:return"'prejšnjo soboto ob' p";default:return"'prejšnji' EEEE 'ob' p"}},yesterday:"'včeraj ob' p",today:"'danes ob' p",tomorrow:"'jutri ob' p",nextWeek:function(t){var n=t.getUTCDay();switch(n){case 0:return"'naslednjo nedeljo ob' p";case 3:return"'naslednjo sredo ob' p";case 6:return"'naslednjo soboto ob' p";default:return"'naslednji' EEEE 'ob' p"}},other:"P"},Lvt=function(t,n,r,a){var i=$vt[t];return typeof i=="function"?i(n):i},Fvt={narrow:["pr. n. št.","po n. št."],abbreviated:["pr. n. št.","po n. št."],wide:["pred našim štetjem","po našem štetju"]},jvt={narrow:["1","2","3","4"],abbreviated:["1. čet.","2. čet.","3. čet.","4. čet."],wide:["1. četrtletje","2. četrtletje","3. četrtletje","4. četrtletje"]},Uvt={narrow:["j","f","m","a","m","j","j","a","s","o","n","d"],abbreviated:["jan.","feb.","mar.","apr.","maj","jun.","jul.","avg.","sep.","okt.","nov.","dec."],wide:["januar","februar","marec","april","maj","junij","julij","avgust","september","oktober","november","december"]},Bvt={narrow:["n","p","t","s","č","p","s"],short:["ned.","pon.","tor.","sre.","čet.","pet.","sob."],abbreviated:["ned.","pon.","tor.","sre.","čet.","pet.","sob."],wide:["nedelja","ponedeljek","torek","sreda","četrtek","petek","sobota"]},Wvt={narrow:{am:"d",pm:"p",midnight:"24.00",noon:"12.00",morning:"j",afternoon:"p",evening:"v",night:"n"},abbreviated:{am:"dop.",pm:"pop.",midnight:"poln.",noon:"pold.",morning:"jut.",afternoon:"pop.",evening:"več.",night:"noč"},wide:{am:"dop.",pm:"pop.",midnight:"polnoč",noon:"poldne",morning:"jutro",afternoon:"popoldne",evening:"večer",night:"noč"}},zvt={narrow:{am:"d",pm:"p",midnight:"24.00",noon:"12.00",morning:"zj",afternoon:"p",evening:"zv",night:"po"},abbreviated:{am:"dop.",pm:"pop.",midnight:"opoln.",noon:"opold.",morning:"zjut.",afternoon:"pop.",evening:"zveč.",night:"ponoči"},wide:{am:"dop.",pm:"pop.",midnight:"opolnoči",noon:"opoldne",morning:"zjutraj",afternoon:"popoldan",evening:"zvečer",night:"ponoči"}},qvt=function(t,n){var r=Number(t);return r+"."},Hvt={ordinalNumber:qvt,era:oe({values:Fvt,defaultWidth:"wide"}),quarter:oe({values:jvt,defaultWidth:"wide",argumentCallback:function(t){return t-1}}),month:oe({values:Uvt,defaultWidth:"wide"}),day:oe({values:Bvt,defaultWidth:"wide"}),dayPeriod:oe({values:Wvt,defaultWidth:"wide",formattingValues:zvt,defaultFormattingWidth:"wide"})},Vvt=/^(\d+)\./i,Gvt=/\d+/i,Yvt={abbreviated:/^(pr\. n\. št\.|po n\. št\.)/i,wide:/^(pred Kristusom|pred na[sš]im [sš]tetjem|po Kristusu|po na[sš]em [sš]tetju|na[sš]ega [sš]tetja)/i},Kvt={any:[/^pr/i,/^(po|na[sš]em)/i]},Xvt={narrow:/^[1234]/i,abbreviated:/^[1234]\.\s?[čc]et\.?/i,wide:/^[1234]\. [čc]etrtletje/i},Qvt={any:[/1/i,/2/i,/3/i,/4/i]},Jvt={narrow:/^[jfmasond]/i,abbreviated:/^(jan\.|feb\.|mar\.|apr\.|maj|jun\.|jul\.|avg\.|sep\.|okt\.|nov\.|dec\.)/i,wide:/^(januar|februar|marec|april|maj|junij|julij|avgust|september|oktober|november|december)/i},Zvt={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],abbreviated:[/^ja/i,/^fe/i,/^mar/i,/^ap/i,/^maj/i,/^jun/i,/^jul/i,/^av/i,/^s/i,/^o/i,/^n/i,/^d/i],wide:[/^ja/i,/^fe/i,/^mar/i,/^ap/i,/^maj/i,/^jun/i,/^jul/i,/^av/i,/^s/i,/^o/i,/^n/i,/^d/i]},eyt={narrow:/^[nptsčc]/i,short:/^(ned\.|pon\.|tor\.|sre\.|[cč]et\.|pet\.|sob\.)/i,abbreviated:/^(ned\.|pon\.|tor\.|sre\.|[cč]et\.|pet\.|sob\.)/i,wide:/^(nedelja|ponedeljek|torek|sreda|[cč]etrtek|petek|sobota)/i},tyt={narrow:[/^n/i,/^p/i,/^t/i,/^s/i,/^[cč]/i,/^p/i,/^s/i],any:[/^n/i,/^po/i,/^t/i,/^sr/i,/^[cč]/i,/^pe/i,/^so/i]},nyt={narrow:/^(d|po?|z?v|n|z?j|24\.00|12\.00)/i,any:/^(dop\.|pop\.|o?poln(\.|o[cč]i?)|o?pold(\.|ne)|z?ve[cč](\.|er)|(po)?no[cč]i?|popold(ne|an)|jut(\.|ro)|zjut(\.|raj))/i},ryt={narrow:{am:/^d/i,pm:/^p/i,midnight:/^24/i,noon:/^12/i,morning:/^(z?j)/i,afternoon:/^p/i,evening:/^(z?v)/i,night:/^(n|po)/i},any:{am:/^dop\./i,pm:/^pop\./i,midnight:/^o?poln/i,noon:/^o?pold/i,morning:/j/i,afternoon:/^pop\./i,evening:/^z?ve/i,night:/(po)?no/i}},ayt={ordinalNumber:Xt({matchPattern:Vvt,parsePattern:Gvt,valueCallback:function(t){return parseInt(t,10)}}),era:se({matchPatterns:Yvt,defaultMatchWidth:"wide",parsePatterns:Kvt,defaultParseWidth:"any"}),quarter:se({matchPatterns:Xvt,defaultMatchWidth:"wide",parsePatterns:Qvt,defaultParseWidth:"any",valueCallback:function(t){return t+1}}),month:se({matchPatterns:Jvt,defaultMatchWidth:"wide",parsePatterns:Zvt,defaultParseWidth:"wide"}),day:se({matchPatterns:eyt,defaultMatchWidth:"wide",parsePatterns:tyt,defaultParseWidth:"any"}),dayPeriod:se({matchPatterns:nyt,defaultMatchWidth:"any",parsePatterns:ryt,defaultParseWidth:"any"})},iyt={code:"sl",formatDistance:Avt,formatLong:Dvt,formatRelative:Lvt,localize:Hvt,match:ayt,options:{weekStartsOn:1,firstWeekContainsDate:1}};const oyt=Object.freeze(Object.defineProperty({__proto__:null,default:iyt},Symbol.toStringTag,{value:"Module"})),syt=jt(oyt);var lyt={lessThanXSeconds:{one:{standalone:"мање од 1 секунде",withPrepositionAgo:"мање од 1 секунде",withPrepositionIn:"мање од 1 секунду"},dual:"мање од {{count}} секунде",other:"мање од {{count}} секунди"},xSeconds:{one:{standalone:"1 секунда",withPrepositionAgo:"1 секунде",withPrepositionIn:"1 секунду"},dual:"{{count}} секунде",other:"{{count}} секунди"},halfAMinute:"пола минуте",lessThanXMinutes:{one:{standalone:"мање од 1 минуте",withPrepositionAgo:"мање од 1 минуте",withPrepositionIn:"мање од 1 минуту"},dual:"мање од {{count}} минуте",other:"мање од {{count}} минута"},xMinutes:{one:{standalone:"1 минута",withPrepositionAgo:"1 минуте",withPrepositionIn:"1 минуту"},dual:"{{count}} минуте",other:"{{count}} минута"},aboutXHours:{one:{standalone:"око 1 сат",withPrepositionAgo:"око 1 сат",withPrepositionIn:"око 1 сат"},dual:"око {{count}} сата",other:"око {{count}} сати"},xHours:{one:{standalone:"1 сат",withPrepositionAgo:"1 сат",withPrepositionIn:"1 сат"},dual:"{{count}} сата",other:"{{count}} сати"},xDays:{one:{standalone:"1 дан",withPrepositionAgo:"1 дан",withPrepositionIn:"1 дан"},dual:"{{count}} дана",other:"{{count}} дана"},aboutXWeeks:{one:{standalone:"око 1 недељу",withPrepositionAgo:"око 1 недељу",withPrepositionIn:"око 1 недељу"},dual:"око {{count}} недеље",other:"око {{count}} недеље"},xWeeks:{one:{standalone:"1 недељу",withPrepositionAgo:"1 недељу",withPrepositionIn:"1 недељу"},dual:"{{count}} недеље",other:"{{count}} недеље"},aboutXMonths:{one:{standalone:"око 1 месец",withPrepositionAgo:"око 1 месец",withPrepositionIn:"око 1 месец"},dual:"око {{count}} месеца",other:"око {{count}} месеци"},xMonths:{one:{standalone:"1 месец",withPrepositionAgo:"1 месец",withPrepositionIn:"1 месец"},dual:"{{count}} месеца",other:"{{count}} месеци"},aboutXYears:{one:{standalone:"око 1 годину",withPrepositionAgo:"око 1 годину",withPrepositionIn:"око 1 годину"},dual:"око {{count}} године",other:"око {{count}} година"},xYears:{one:{standalone:"1 година",withPrepositionAgo:"1 године",withPrepositionIn:"1 годину"},dual:"{{count}} године",other:"{{count}} година"},overXYears:{one:{standalone:"преко 1 годину",withPrepositionAgo:"преко 1 годину",withPrepositionIn:"преко 1 годину"},dual:"преко {{count}} године",other:"преко {{count}} година"},almostXYears:{one:{standalone:"готово 1 годину",withPrepositionAgo:"готово 1 годину",withPrepositionIn:"готово 1 годину"},dual:"готово {{count}} године",other:"готово {{count}} година"}},uyt=function(t,n,r){var a,i=lyt[t];return typeof i=="string"?a=i:n===1?r!=null&&r.addSuffix?r.comparison&&r.comparison>0?a=i.one.withPrepositionIn:a=i.one.withPrepositionAgo:a=i.one.standalone:n%10>1&&n%10<5&&String(n).substr(-2,1)!=="1"?a=i.dual.replace("{{count}}",String(n)):a=i.other.replace("{{count}}",String(n)),r!=null&&r.addSuffix?r.comparison&&r.comparison>0?"за "+a:"пре "+a:a},cyt={full:"EEEE, d. MMMM yyyy.",long:"d. MMMM yyyy.",medium:"d. MMM yy.",short:"dd. MM. yy."},dyt={full:"HH:mm:ss (zzzz)",long:"HH:mm:ss z",medium:"HH:mm:ss",short:"HH:mm"},fyt={full:"{{date}} 'у' {{time}}",long:"{{date}} 'у' {{time}}",medium:"{{date}} {{time}}",short:"{{date}} {{time}}"},pyt={date:Ne({formats:cyt,defaultWidth:"full"}),time:Ne({formats:dyt,defaultWidth:"full"}),dateTime:Ne({formats:fyt,defaultWidth:"full"})},hyt={lastWeek:function(t){var n=t.getUTCDay();switch(n){case 0:return"'прошле недеље у' p";case 3:return"'прошле среде у' p";case 6:return"'прошле суботе у' p";default:return"'прошли' EEEE 'у' p"}},yesterday:"'јуче у' p",today:"'данас у' p",tomorrow:"'сутра у' p",nextWeek:function(t){var n=t.getUTCDay();switch(n){case 0:return"'следеће недеље у' p";case 3:return"'следећу среду у' p";case 6:return"'следећу суботу у' p";default:return"'следећи' EEEE 'у' p"}},other:"P"},myt=function(t,n,r,a){var i=hyt[t];return typeof i=="function"?i(n):i},gyt={narrow:["пр.н.е.","АД"],abbreviated:["пр. Хр.","по. Хр."],wide:["Пре Христа","После Христа"]},vyt={narrow:["1.","2.","3.","4."],abbreviated:["1. кв.","2. кв.","3. кв.","4. кв."],wide:["1. квартал","2. квартал","3. квартал","4. квартал"]},yyt={narrow:["1.","2.","3.","4.","5.","6.","7.","8.","9.","10.","11.","12."],abbreviated:["јан","феб","мар","апр","мај","јун","јул","авг","сеп","окт","нов","дец"],wide:["јануар","фебруар","март","април","мај","јун","јул","август","септембар","октобар","новембар","децембар"]},byt={narrow:["1.","2.","3.","4.","5.","6.","7.","8.","9.","10.","11.","12."],abbreviated:["јан","феб","мар","апр","мај","јун","јул","авг","сеп","окт","нов","дец"],wide:["јануар","фебруар","март","април","мај","јун","јул","август","септембар","октобар","новембар","децембар"]},wyt={narrow:["Н","П","У","С","Ч","П","С"],short:["нед","пон","уто","сре","чет","пет","суб"],abbreviated:["нед","пон","уто","сре","чет","пет","суб"],wide:["недеља","понедељак","уторак","среда","четвртак","петак","субота"]},Syt={narrow:{am:"АМ",pm:"ПМ",midnight:"поноћ",noon:"подне",morning:"ујутру",afternoon:"поподне",evening:"увече",night:"ноћу"},abbreviated:{am:"АМ",pm:"ПМ",midnight:"поноћ",noon:"подне",morning:"ујутру",afternoon:"поподне",evening:"увече",night:"ноћу"},wide:{am:"AM",pm:"PM",midnight:"поноћ",noon:"подне",morning:"ујутру",afternoon:"после подне",evening:"увече",night:"ноћу"}},Eyt={narrow:{am:"AM",pm:"PM",midnight:"поноћ",noon:"подне",morning:"ујутру",afternoon:"поподне",evening:"увече",night:"ноћу"},abbreviated:{am:"AM",pm:"PM",midnight:"поноћ",noon:"подне",morning:"ујутру",afternoon:"поподне",evening:"увече",night:"ноћу"},wide:{am:"AM",pm:"PM",midnight:"поноћ",noon:"подне",morning:"ујутру",afternoon:"после подне",evening:"увече",night:"ноћу"}},Tyt=function(t,n){var r=Number(t);return r+"."},Cyt={ordinalNumber:Tyt,era:oe({values:gyt,defaultWidth:"wide"}),quarter:oe({values:vyt,defaultWidth:"wide",argumentCallback:function(t){return t-1}}),month:oe({values:yyt,defaultWidth:"wide",formattingValues:byt,defaultFormattingWidth:"wide"}),day:oe({values:wyt,defaultWidth:"wide"}),dayPeriod:oe({values:Eyt,defaultWidth:"wide",formattingValues:Syt,defaultFormattingWidth:"wide"})},kyt=/^(\d+)\./i,xyt=/\d+/i,_yt={narrow:/^(пр\.н\.е\.|АД)/i,abbreviated:/^(пр\.\s?Хр\.|по\.\s?Хр\.)/i,wide:/^(Пре Христа|пре нове ере|После Христа|нова ера)/i},Oyt={any:[/^пр/i,/^(по|нова)/i]},Ryt={narrow:/^[1234]/i,abbreviated:/^[1234]\.\s?кв\.?/i,wide:/^[1234]\. квартал/i},Pyt={any:[/1/i,/2/i,/3/i,/4/i]},Ayt={narrow:/^(10|11|12|[123456789])\./i,abbreviated:/^(јан|феб|мар|апр|мај|јун|јул|авг|сеп|окт|нов|дец)/i,wide:/^((јануар|јануара)|(фебруар|фебруара)|(март|марта)|(април|априла)|(мја|маја)|(јун|јуна)|(јул|јула)|(август|августа)|(септембар|септембра)|(октобар|октобра)|(новембар|новембра)|(децембар|децембра))/i},Nyt={narrow:[/^1/i,/^2/i,/^3/i,/^4/i,/^5/i,/^6/i,/^7/i,/^8/i,/^9/i,/^10/i,/^11/i,/^12/i],any:[/^ја/i,/^ф/i,/^мар/i,/^ап/i,/^мај/i,/^јун/i,/^јул/i,/^авг/i,/^с/i,/^о/i,/^н/i,/^д/i]},Myt={narrow:/^[пусчн]/i,short:/^(нед|пон|уто|сре|чет|пет|суб)/i,abbreviated:/^(нед|пон|уто|сре|чет|пет|суб)/i,wide:/^(недеља|понедељак|уторак|среда|четвртак|петак|субота)/i},Iyt={narrow:[/^п/i,/^у/i,/^с/i,/^ч/i,/^п/i,/^с/i,/^н/i],any:[/^нед/i,/^пон/i,/^уто/i,/^сре/i,/^чет/i,/^пет/i,/^суб/i]},Dyt={any:/^(ам|пм|поноћ|(по)?подне|увече|ноћу|после подне|ујутру)/i},$yt={any:{am:/^a/i,pm:/^p/i,midnight:/^поно/i,noon:/^под/i,morning:/ујутру/i,afternoon:/(после\s|по)+подне/i,evening:/(увече)/i,night:/(ноћу)/i}},Lyt={ordinalNumber:Xt({matchPattern:kyt,parsePattern:xyt,valueCallback:function(t){return parseInt(t,10)}}),era:se({matchPatterns:_yt,defaultMatchWidth:"wide",parsePatterns:Oyt,defaultParseWidth:"any"}),quarter:se({matchPatterns:Ryt,defaultMatchWidth:"wide",parsePatterns:Pyt,defaultParseWidth:"any",valueCallback:function(t){return t+1}}),month:se({matchPatterns:Ayt,defaultMatchWidth:"wide",parsePatterns:Nyt,defaultParseWidth:"any"}),day:se({matchPatterns:Myt,defaultMatchWidth:"wide",parsePatterns:Iyt,defaultParseWidth:"any"}),dayPeriod:se({matchPatterns:Dyt,defaultMatchWidth:"any",parsePatterns:$yt,defaultParseWidth:"any"})},Fyt={code:"sr",formatDistance:uyt,formatLong:pyt,formatRelative:myt,localize:Cyt,match:Lyt,options:{weekStartsOn:1,firstWeekContainsDate:1}};const jyt=Object.freeze(Object.defineProperty({__proto__:null,default:Fyt},Symbol.toStringTag,{value:"Module"})),Uyt=jt(jyt);var Byt={lessThanXSeconds:{one:{standalone:"manje od 1 sekunde",withPrepositionAgo:"manje od 1 sekunde",withPrepositionIn:"manje od 1 sekundu"},dual:"manje od {{count}} sekunde",other:"manje od {{count}} sekundi"},xSeconds:{one:{standalone:"1 sekunda",withPrepositionAgo:"1 sekunde",withPrepositionIn:"1 sekundu"},dual:"{{count}} sekunde",other:"{{count}} sekundi"},halfAMinute:"pola minute",lessThanXMinutes:{one:{standalone:"manje od 1 minute",withPrepositionAgo:"manje od 1 minute",withPrepositionIn:"manje od 1 minutu"},dual:"manje od {{count}} minute",other:"manje od {{count}} minuta"},xMinutes:{one:{standalone:"1 minuta",withPrepositionAgo:"1 minute",withPrepositionIn:"1 minutu"},dual:"{{count}} minute",other:"{{count}} minuta"},aboutXHours:{one:{standalone:"oko 1 sat",withPrepositionAgo:"oko 1 sat",withPrepositionIn:"oko 1 sat"},dual:"oko {{count}} sata",other:"oko {{count}} sati"},xHours:{one:{standalone:"1 sat",withPrepositionAgo:"1 sat",withPrepositionIn:"1 sat"},dual:"{{count}} sata",other:"{{count}} sati"},xDays:{one:{standalone:"1 dan",withPrepositionAgo:"1 dan",withPrepositionIn:"1 dan"},dual:"{{count}} dana",other:"{{count}} dana"},aboutXWeeks:{one:{standalone:"oko 1 nedelju",withPrepositionAgo:"oko 1 nedelju",withPrepositionIn:"oko 1 nedelju"},dual:"oko {{count}} nedelje",other:"oko {{count}} nedelje"},xWeeks:{one:{standalone:"1 nedelju",withPrepositionAgo:"1 nedelju",withPrepositionIn:"1 nedelju"},dual:"{{count}} nedelje",other:"{{count}} nedelje"},aboutXMonths:{one:{standalone:"oko 1 mesec",withPrepositionAgo:"oko 1 mesec",withPrepositionIn:"oko 1 mesec"},dual:"oko {{count}} meseca",other:"oko {{count}} meseci"},xMonths:{one:{standalone:"1 mesec",withPrepositionAgo:"1 mesec",withPrepositionIn:"1 mesec"},dual:"{{count}} meseca",other:"{{count}} meseci"},aboutXYears:{one:{standalone:"oko 1 godinu",withPrepositionAgo:"oko 1 godinu",withPrepositionIn:"oko 1 godinu"},dual:"oko {{count}} godine",other:"oko {{count}} godina"},xYears:{one:{standalone:"1 godina",withPrepositionAgo:"1 godine",withPrepositionIn:"1 godinu"},dual:"{{count}} godine",other:"{{count}} godina"},overXYears:{one:{standalone:"preko 1 godinu",withPrepositionAgo:"preko 1 godinu",withPrepositionIn:"preko 1 godinu"},dual:"preko {{count}} godine",other:"preko {{count}} godina"},almostXYears:{one:{standalone:"gotovo 1 godinu",withPrepositionAgo:"gotovo 1 godinu",withPrepositionIn:"gotovo 1 godinu"},dual:"gotovo {{count}} godine",other:"gotovo {{count}} godina"}},Wyt=function(t,n,r){var a,i=Byt[t];return typeof i=="string"?a=i:n===1?r!=null&&r.addSuffix?r.comparison&&r.comparison>0?a=i.one.withPrepositionIn:a=i.one.withPrepositionAgo:a=i.one.standalone:n%10>1&&n%10<5&&String(n).substr(-2,1)!=="1"?a=i.dual.replace("{{count}}",String(n)):a=i.other.replace("{{count}}",String(n)),r!=null&&r.addSuffix?r.comparison&&r.comparison>0?"za "+a:"pre "+a:a},zyt={full:"EEEE, d. MMMM yyyy.",long:"d. MMMM yyyy.",medium:"d. MMM yy.",short:"dd. MM. yy."},qyt={full:"HH:mm:ss (zzzz)",long:"HH:mm:ss z",medium:"HH:mm:ss",short:"HH:mm"},Hyt={full:"{{date}} 'u' {{time}}",long:"{{date}} 'u' {{time}}",medium:"{{date}} {{time}}",short:"{{date}} {{time}}"},Vyt={date:Ne({formats:zyt,defaultWidth:"full"}),time:Ne({formats:qyt,defaultWidth:"full"}),dateTime:Ne({formats:Hyt,defaultWidth:"full"})},Gyt={lastWeek:function(t){switch(t.getUTCDay()){case 0:return"'prošle nedelje u' p";case 3:return"'prošle srede u' p";case 6:return"'prošle subote u' p";default:return"'prošli' EEEE 'u' p"}},yesterday:"'juče u' p",today:"'danas u' p",tomorrow:"'sutra u' p",nextWeek:function(t){switch(t.getUTCDay()){case 0:return"'sledeće nedelje u' p";case 3:return"'sledeću sredu u' p";case 6:return"'sledeću subotu u' p";default:return"'sledeći' EEEE 'u' p"}},other:"P"},Yyt=function(t,n,r,a){var i=Gyt[t];return typeof i=="function"?i(n):i},Kyt={narrow:["pr.n.e.","AD"],abbreviated:["pr. Hr.","po. Hr."],wide:["Pre Hrista","Posle Hrista"]},Xyt={narrow:["1.","2.","3.","4."],abbreviated:["1. kv.","2. kv.","3. kv.","4. kv."],wide:["1. kvartal","2. kvartal","3. kvartal","4. kvartal"]},Qyt={narrow:["1.","2.","3.","4.","5.","6.","7.","8.","9.","10.","11.","12."],abbreviated:["jan","feb","mar","apr","maj","jun","jul","avg","sep","okt","nov","dec"],wide:["januar","februar","mart","april","maj","jun","jul","avgust","septembar","oktobar","novembar","decembar"]},Jyt={narrow:["1.","2.","3.","4.","5.","6.","7.","8.","9.","10.","11.","12."],abbreviated:["jan","feb","mar","apr","maj","jun","jul","avg","sep","okt","nov","dec"],wide:["januar","februar","mart","april","maj","jun","jul","avgust","septembar","oktobar","novembar","decembar"]},Zyt={narrow:["N","P","U","S","Č","P","S"],short:["ned","pon","uto","sre","čet","pet","sub"],abbreviated:["ned","pon","uto","sre","čet","pet","sub"],wide:["nedelja","ponedeljak","utorak","sreda","četvrtak","petak","subota"]},ebt={narrow:{am:"AM",pm:"PM",midnight:"ponoć",noon:"podne",morning:"ujutru",afternoon:"popodne",evening:"uveče",night:"noću"},abbreviated:{am:"AM",pm:"PM",midnight:"ponoć",noon:"podne",morning:"ujutru",afternoon:"popodne",evening:"uveče",night:"noću"},wide:{am:"AM",pm:"PM",midnight:"ponoć",noon:"podne",morning:"ujutru",afternoon:"posle podne",evening:"uveče",night:"noću"}},tbt={narrow:{am:"AM",pm:"PM",midnight:"ponoć",noon:"podne",morning:"ujutru",afternoon:"popodne",evening:"uveče",night:"noću"},abbreviated:{am:"AM",pm:"PM",midnight:"ponoć",noon:"podne",morning:"ujutru",afternoon:"popodne",evening:"uveče",night:"noću"},wide:{am:"AM",pm:"PM",midnight:"ponoć",noon:"podne",morning:"ujutru",afternoon:"posle podne",evening:"uveče",night:"noću"}},nbt=function(t,n){var r=Number(t);return r+"."},rbt={ordinalNumber:nbt,era:oe({values:Kyt,defaultWidth:"wide"}),quarter:oe({values:Xyt,defaultWidth:"wide",argumentCallback:function(t){return t-1}}),month:oe({values:Qyt,defaultWidth:"wide",formattingValues:Jyt,defaultFormattingWidth:"wide"}),day:oe({values:Zyt,defaultWidth:"wide"}),dayPeriod:oe({values:tbt,defaultWidth:"wide",formattingValues:ebt,defaultFormattingWidth:"wide"})},abt=/^(\d+)\./i,ibt=/\d+/i,obt={narrow:/^(pr\.n\.e\.|AD)/i,abbreviated:/^(pr\.\s?Hr\.|po\.\s?Hr\.)/i,wide:/^(Pre Hrista|pre nove ere|Posle Hrista|nova era)/i},sbt={any:[/^pr/i,/^(po|nova)/i]},lbt={narrow:/^[1234]/i,abbreviated:/^[1234]\.\s?kv\.?/i,wide:/^[1234]\. kvartal/i},ubt={any:[/1/i,/2/i,/3/i,/4/i]},cbt={narrow:/^(10|11|12|[123456789])\./i,abbreviated:/^(jan|feb|mar|apr|maj|jun|jul|avg|sep|okt|nov|dec)/i,wide:/^((januar|januara)|(februar|februara)|(mart|marta)|(april|aprila)|(maj|maja)|(jun|juna)|(jul|jula)|(avgust|avgusta)|(septembar|septembra)|(oktobar|oktobra)|(novembar|novembra)|(decembar|decembra))/i},dbt={narrow:[/^1/i,/^2/i,/^3/i,/^4/i,/^5/i,/^6/i,/^7/i,/^8/i,/^9/i,/^10/i,/^11/i,/^12/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^maj/i,/^jun/i,/^jul/i,/^avg/i,/^s/i,/^o/i,/^n/i,/^d/i]},fbt={narrow:/^[npusčc]/i,short:/^(ned|pon|uto|sre|(čet|cet)|pet|sub)/i,abbreviated:/^(ned|pon|uto|sre|(čet|cet)|pet|sub)/i,wide:/^(nedelja|ponedeljak|utorak|sreda|(četvrtak|cetvrtak)|petak|subota)/i},pbt={narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},hbt={any:/^(am|pm|ponoc|ponoć|(po)?podne|uvece|uveče|noću|posle podne|ujutru)/i},mbt={any:{am:/^a/i,pm:/^p/i,midnight:/^pono/i,noon:/^pod/i,morning:/jutro/i,afternoon:/(posle\s|po)+podne/i,evening:/(uvece|uveče)/i,night:/(nocu|noću)/i}},gbt={ordinalNumber:Xt({matchPattern:abt,parsePattern:ibt,valueCallback:function(t){return parseInt(t,10)}}),era:se({matchPatterns:obt,defaultMatchWidth:"wide",parsePatterns:sbt,defaultParseWidth:"any"}),quarter:se({matchPatterns:lbt,defaultMatchWidth:"wide",parsePatterns:ubt,defaultParseWidth:"any",valueCallback:function(t){return t+1}}),month:se({matchPatterns:cbt,defaultMatchWidth:"wide",parsePatterns:dbt,defaultParseWidth:"any"}),day:se({matchPatterns:fbt,defaultMatchWidth:"wide",parsePatterns:pbt,defaultParseWidth:"any"}),dayPeriod:se({matchPatterns:hbt,defaultMatchWidth:"any",parsePatterns:mbt,defaultParseWidth:"any"})},vbt={code:"sr-Latn",formatDistance:Wyt,formatLong:Vyt,formatRelative:Yyt,localize:rbt,match:gbt,options:{weekStartsOn:1,firstWeekContainsDate:1}};const ybt=Object.freeze(Object.defineProperty({__proto__:null,default:vbt},Symbol.toStringTag,{value:"Module"})),bbt=jt(ybt);var wbt={lessThanXSeconds:{one:"mindre än en sekund",other:"mindre än {{count}} sekunder"},xSeconds:{one:"en sekund",other:"{{count}} sekunder"},halfAMinute:"en halv minut",lessThanXMinutes:{one:"mindre än en minut",other:"mindre än {{count}} minuter"},xMinutes:{one:"en minut",other:"{{count}} minuter"},aboutXHours:{one:"ungefär en timme",other:"ungefär {{count}} timmar"},xHours:{one:"en timme",other:"{{count}} timmar"},xDays:{one:"en dag",other:"{{count}} dagar"},aboutXWeeks:{one:"ungefär en vecka",other:"ungefär {{count}} vecka"},xWeeks:{one:"en vecka",other:"{{count}} vecka"},aboutXMonths:{one:"ungefär en månad",other:"ungefär {{count}} månader"},xMonths:{one:"en månad",other:"{{count}} månader"},aboutXYears:{one:"ungefär ett år",other:"ungefär {{count}} år"},xYears:{one:"ett år",other:"{{count}} år"},overXYears:{one:"över ett år",other:"över {{count}} år"},almostXYears:{one:"nästan ett år",other:"nästan {{count}} år"}},Sbt=["noll","en","två","tre","fyra","fem","sex","sju","åtta","nio","tio","elva","tolv"],Ebt=function(t,n,r){var a,i=wbt[t];return typeof i=="string"?a=i:n===1?a=i.one:r&&r.onlyNumeric?a=i.other.replace("{{count}}",String(n)):a=i.other.replace("{{count}}",n<13?Sbt[n]:String(n)),r!=null&&r.addSuffix?r.comparison&&r.comparison>0?"om "+a:a+" sedan":a},Tbt={full:"EEEE d MMMM y",long:"d MMMM y",medium:"d MMM y",short:"y-MM-dd"},Cbt={full:"'kl'. HH:mm:ss zzzz",long:"HH:mm:ss z",medium:"HH:mm:ss",short:"HH:mm"},kbt={full:"{{date}} 'kl.' {{time}}",long:"{{date}} 'kl.' {{time}}",medium:"{{date}} {{time}}",short:"{{date}} {{time}}"},xbt={date:Ne({formats:Tbt,defaultWidth:"full"}),time:Ne({formats:Cbt,defaultWidth:"full"}),dateTime:Ne({formats:kbt,defaultWidth:"full"})},_bt={lastWeek:"'i' EEEE's kl.' p",yesterday:"'igår kl.' p",today:"'idag kl.' p",tomorrow:"'imorgon kl.' p",nextWeek:"EEEE 'kl.' p",other:"P"},Obt=function(t,n,r,a){return _bt[t]},Rbt={narrow:["f.Kr.","e.Kr."],abbreviated:["f.Kr.","e.Kr."],wide:["före Kristus","efter Kristus"]},Pbt={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1:a kvartalet","2:a kvartalet","3:e kvartalet","4:e kvartalet"]},Abt={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["jan.","feb.","mars","apr.","maj","juni","juli","aug.","sep.","okt.","nov.","dec."],wide:["januari","februari","mars","april","maj","juni","juli","augusti","september","oktober","november","december"]},Nbt={narrow:["S","M","T","O","T","F","L"],short:["sö","må","ti","on","to","fr","lö"],abbreviated:["sön","mån","tis","ons","tors","fre","lör"],wide:["söndag","måndag","tisdag","onsdag","torsdag","fredag","lördag"]},Mbt={narrow:{am:"fm",pm:"em",midnight:"midnatt",noon:"middag",morning:"morg.",afternoon:"efterm.",evening:"kväll",night:"natt"},abbreviated:{am:"f.m.",pm:"e.m.",midnight:"midnatt",noon:"middag",morning:"morgon",afternoon:"efterm.",evening:"kväll",night:"natt"},wide:{am:"förmiddag",pm:"eftermiddag",midnight:"midnatt",noon:"middag",morning:"morgon",afternoon:"eftermiddag",evening:"kväll",night:"natt"}},Ibt={narrow:{am:"fm",pm:"em",midnight:"midnatt",noon:"middag",morning:"på morg.",afternoon:"på efterm.",evening:"på kvällen",night:"på natten"},abbreviated:{am:"fm",pm:"em",midnight:"midnatt",noon:"middag",morning:"på morg.",afternoon:"på efterm.",evening:"på kvällen",night:"på natten"},wide:{am:"fm",pm:"em",midnight:"midnatt",noon:"middag",morning:"på morgonen",afternoon:"på eftermiddagen",evening:"på kvällen",night:"på natten"}},Dbt=function(t,n){var r=Number(t),a=r%100;if(a>20||a<10)switch(a%10){case 1:case 2:return r+":a"}return r+":e"},$bt={ordinalNumber:Dbt,era:oe({values:Rbt,defaultWidth:"wide"}),quarter:oe({values:Pbt,defaultWidth:"wide",argumentCallback:function(t){return t-1}}),month:oe({values:Abt,defaultWidth:"wide"}),day:oe({values:Nbt,defaultWidth:"wide"}),dayPeriod:oe({values:Mbt,defaultWidth:"wide",formattingValues:Ibt,defaultFormattingWidth:"wide"})},Lbt=/^(\d+)(:a|:e)?/i,Fbt=/\d+/i,jbt={narrow:/^(f\.? ?Kr\.?|f\.? ?v\.? ?t\.?|e\.? ?Kr\.?|v\.? ?t\.?)/i,abbreviated:/^(f\.? ?Kr\.?|f\.? ?v\.? ?t\.?|e\.? ?Kr\.?|v\.? ?t\.?)/i,wide:/^(före Kristus|före vår tid|efter Kristus|vår tid)/i},Ubt={any:[/^f/i,/^[ev]/i]},Bbt={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](:a|:e)? kvartalet/i},Wbt={any:[/1/i,/2/i,/3/i,/4/i]},zbt={narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar[s]?|apr|maj|jun[i]?|jul[i]?|aug|sep|okt|nov|dec)\.?/i,wide:/^(januari|februari|mars|april|maj|juni|juli|augusti|september|oktober|november|december)/i},qbt={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^maj/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},Hbt={narrow:/^[smtofl]/i,short:/^(sö|må|ti|on|to|fr|lö)/i,abbreviated:/^(sön|mån|tis|ons|tors|fre|lör)/i,wide:/^(söndag|måndag|tisdag|onsdag|torsdag|fredag|lördag)/i},Vbt={any:[/^s/i,/^m/i,/^ti/i,/^o/i,/^to/i,/^f/i,/^l/i]},Gbt={any:/^([fe]\.?\s?m\.?|midn(att)?|midd(ag)?|(på) (morgonen|eftermiddagen|kvällen|natten))/i},Ybt={any:{am:/^f/i,pm:/^e/i,midnight:/^midn/i,noon:/^midd/i,morning:/morgon/i,afternoon:/eftermiddag/i,evening:/kväll/i,night:/natt/i}},Kbt={ordinalNumber:Xt({matchPattern:Lbt,parsePattern:Fbt,valueCallback:function(t){return parseInt(t,10)}}),era:se({matchPatterns:jbt,defaultMatchWidth:"wide",parsePatterns:Ubt,defaultParseWidth:"any"}),quarter:se({matchPatterns:Bbt,defaultMatchWidth:"wide",parsePatterns:Wbt,defaultParseWidth:"any",valueCallback:function(t){return t+1}}),month:se({matchPatterns:zbt,defaultMatchWidth:"wide",parsePatterns:qbt,defaultParseWidth:"any"}),day:se({matchPatterns:Hbt,defaultMatchWidth:"wide",parsePatterns:Vbt,defaultParseWidth:"any"}),dayPeriod:se({matchPatterns:Gbt,defaultMatchWidth:"any",parsePatterns:Ybt,defaultParseWidth:"any"})},Xbt={code:"sv",formatDistance:Ebt,formatLong:xbt,formatRelative:Obt,localize:$bt,match:Kbt,options:{weekStartsOn:1,firstWeekContainsDate:4}};const Qbt=Object.freeze(Object.defineProperty({__proto__:null,default:Xbt},Symbol.toStringTag,{value:"Module"})),Jbt=jt(Qbt);function Zbt(e){return e.one!==void 0}var e0t={lessThanXSeconds:{one:{default:"ஒரு வினாடிக்கு குறைவாக",in:"ஒரு வினாடிக்குள்",ago:"ஒரு வினாடிக்கு முன்பு"},other:{default:"{{count}} வினாடிகளுக்கு குறைவாக",in:"{{count}} வினாடிகளுக்குள்",ago:"{{count}} வினாடிகளுக்கு முன்பு"}},xSeconds:{one:{default:"1 வினாடி",in:"1 வினாடியில்",ago:"1 வினாடி முன்பு"},other:{default:"{{count}} விநாடிகள்",in:"{{count}} வினாடிகளில்",ago:"{{count}} விநாடிகளுக்கு முன்பு"}},halfAMinute:{default:"அரை நிமிடம்",in:"அரை நிமிடத்தில்",ago:"அரை நிமிடம் முன்பு"},lessThanXMinutes:{one:{default:"ஒரு நிமிடத்திற்கும் குறைவாக",in:"ஒரு நிமிடத்திற்குள்",ago:"ஒரு நிமிடத்திற்கு முன்பு"},other:{default:"{{count}} நிமிடங்களுக்கும் குறைவாக",in:"{{count}} நிமிடங்களுக்குள்",ago:"{{count}} நிமிடங்களுக்கு முன்பு"}},xMinutes:{one:{default:"1 நிமிடம்",in:"1 நிமிடத்தில்",ago:"1 நிமிடம் முன்பு"},other:{default:"{{count}} நிமிடங்கள்",in:"{{count}} நிமிடங்களில்",ago:"{{count}} நிமிடங்களுக்கு முன்பு"}},aboutXHours:{one:{default:"சுமார் 1 மணி நேரம்",in:"சுமார் 1 மணி நேரத்தில்",ago:"சுமார் 1 மணி நேரத்திற்கு முன்பு"},other:{default:"சுமார் {{count}} மணி நேரம்",in:"சுமார் {{count}} மணி நேரத்திற்கு முன்பு",ago:"சுமார் {{count}} மணி நேரத்தில்"}},xHours:{one:{default:"1 மணி நேரம்",in:"1 மணி நேரத்தில்",ago:"1 மணி நேரத்திற்கு முன்பு"},other:{default:"{{count}} மணி நேரம்",in:"{{count}} மணி நேரத்தில்",ago:"{{count}} மணி நேரத்திற்கு முன்பு"}},xDays:{one:{default:"1 நாள்",in:"1 நாளில்",ago:"1 நாள் முன்பு"},other:{default:"{{count}} நாட்கள்",in:"{{count}} நாட்களில்",ago:"{{count}} நாட்களுக்கு முன்பு"}},aboutXWeeks:{one:{default:"சுமார் 1 வாரம்",in:"சுமார் 1 வாரத்தில்",ago:"சுமார் 1 வாரம் முன்பு"},other:{default:"சுமார் {{count}} வாரங்கள்",in:"சுமார் {{count}} வாரங்களில்",ago:"சுமார் {{count}} வாரங்களுக்கு முன்பு"}},xWeeks:{one:{default:"1 வாரம்",in:"1 வாரத்தில்",ago:"1 வாரம் முன்பு"},other:{default:"{{count}} வாரங்கள்",in:"{{count}} வாரங்களில்",ago:"{{count}} வாரங்களுக்கு முன்பு"}},aboutXMonths:{one:{default:"சுமார் 1 மாதம்",in:"சுமார் 1 மாதத்தில்",ago:"சுமார் 1 மாதத்திற்கு முன்பு"},other:{default:"சுமார் {{count}} மாதங்கள்",in:"சுமார் {{count}} மாதங்களில்",ago:"சுமார் {{count}} மாதங்களுக்கு முன்பு"}},xMonths:{one:{default:"1 மாதம்",in:"1 மாதத்தில்",ago:"1 மாதம் முன்பு"},other:{default:"{{count}} மாதங்கள்",in:"{{count}} மாதங்களில்",ago:"{{count}} மாதங்களுக்கு முன்பு"}},aboutXYears:{one:{default:"சுமார் 1 வருடம்",in:"சுமார் 1 ஆண்டில்",ago:"சுமார் 1 வருடம் முன்பு"},other:{default:"சுமார் {{count}} ஆண்டுகள்",in:"சுமார் {{count}} ஆண்டுகளில்",ago:"சுமார் {{count}} ஆண்டுகளுக்கு முன்பு"}},xYears:{one:{default:"1 வருடம்",in:"1 ஆண்டில்",ago:"1 வருடம் முன்பு"},other:{default:"{{count}} ஆண்டுகள்",in:"{{count}} ஆண்டுகளில்",ago:"{{count}} ஆண்டுகளுக்கு முன்பு"}},overXYears:{one:{default:"1 வருடத்திற்கு மேல்",in:"1 வருடத்திற்கும் மேலாக",ago:"1 வருடம் முன்பு"},other:{default:"{{count}} ஆண்டுகளுக்கும் மேலாக",in:"{{count}} ஆண்டுகளில்",ago:"{{count}} ஆண்டுகளுக்கு முன்பு"}},almostXYears:{one:{default:"கிட்டத்தட்ட 1 வருடம்",in:"கிட்டத்தட்ட 1 ஆண்டில்",ago:"கிட்டத்தட்ட 1 வருடம் முன்பு"},other:{default:"கிட்டத்தட்ட {{count}} ஆண்டுகள்",in:"கிட்டத்தட்ட {{count}} ஆண்டுகளில்",ago:"கிட்டத்தட்ட {{count}} ஆண்டுகளுக்கு முன்பு"}}},t0t=function(t,n,r){var a=r!=null&&r.addSuffix?r.comparison&&r.comparison>0?"in":"ago":"default",i=e0t[t];return Zbt(i)?n===1?i.one[a]:i.other[a].replace("{{count}}",String(n)):i[a]},n0t={full:"EEEE, d MMMM, y",long:"d MMMM, y",medium:"d MMM, y",short:"d/M/yy"},r0t={full:"a h:mm:ss zzzz",long:"a h:mm:ss z",medium:"a h:mm:ss",short:"a h:mm"},a0t={full:"{{date}} {{time}}",long:"{{date}} {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},i0t={date:Ne({formats:n0t,defaultWidth:"full"}),time:Ne({formats:r0t,defaultWidth:"full"}),dateTime:Ne({formats:a0t,defaultWidth:"full"})},o0t={lastWeek:"'கடந்த' eeee p 'மணிக்கு'",yesterday:"'நேற்று ' p 'மணிக்கு'",today:"'இன்று ' p 'மணிக்கு'",tomorrow:"'நாளை ' p 'மணிக்கு'",nextWeek:"eeee p 'மணிக்கு'",other:"P"},s0t=function(t,n,r,a){return o0t[t]},l0t={narrow:["கி.மு.","கி.பி."],abbreviated:["கி.மு.","கி.பி."],wide:["கிறிஸ்துவுக்கு முன்","அன்னோ டோமினி"]},u0t={narrow:["1","2","3","4"],abbreviated:["காலா.1","காலா.2","காலா.3","காலா.4"],wide:["ஒன்றாம் காலாண்டு","இரண்டாம் காலாண்டு","மூன்றாம் காலாண்டு","நான்காம் காலாண்டு"]},c0t={narrow:["ஜ","பி","மா","ஏ","மே","ஜூ","ஜூ","ஆ","செ","அ","ந","டி"],abbreviated:["ஜன.","பிப்.","மார்.","ஏப்.","மே","ஜூன்","ஜூலை","ஆக.","செப்.","அக்.","நவ.","டிச."],wide:["ஜனவரி","பிப்ரவரி","மார்ச்","ஏப்ரல்","மே","ஜூன்","ஜூலை","ஆகஸ்ட்","செப்டம்பர்","அக்டோபர்","நவம்பர்","டிசம்பர்"]},d0t={narrow:["ஞா","தி","செ","பு","வி","வெ","ச"],short:["ஞா","தி","செ","பு","வி","வெ","ச"],abbreviated:["ஞாயி.","திங்.","செவ்.","புத.","வியா.","வெள்.","சனி"],wide:["ஞாயிறு","திங்கள்","செவ்வாய்","புதன்","வியாழன்","வெள்ளி","சனி"]},f0t={narrow:{am:"மு.ப",pm:"பி.ப",midnight:"நள்.",noon:"நண்.",morning:"கா.",afternoon:"மதி.",evening:"மா.",night:"இர."},abbreviated:{am:"முற்பகல்",pm:"பிற்பகல்",midnight:"நள்ளிரவு",noon:"நண்பகல்",morning:"காலை",afternoon:"மதியம்",evening:"மாலை",night:"இரவு"},wide:{am:"முற்பகல்",pm:"பிற்பகல்",midnight:"நள்ளிரவு",noon:"நண்பகல்",morning:"காலை",afternoon:"மதியம்",evening:"மாலை",night:"இரவு"}},p0t={narrow:{am:"மு.ப",pm:"பி.ப",midnight:"நள்.",noon:"நண்.",morning:"கா.",afternoon:"மதி.",evening:"மா.",night:"இர."},abbreviated:{am:"முற்பகல்",pm:"பிற்பகல்",midnight:"நள்ளிரவு",noon:"நண்பகல்",morning:"காலை",afternoon:"மதியம்",evening:"மாலை",night:"இரவு"},wide:{am:"முற்பகல்",pm:"பிற்பகல்",midnight:"நள்ளிரவு",noon:"நண்பகல்",morning:"காலை",afternoon:"மதியம்",evening:"மாலை",night:"இரவு"}},h0t=function(t,n){return String(t)},m0t={ordinalNumber:h0t,era:oe({values:l0t,defaultWidth:"wide"}),quarter:oe({values:u0t,defaultWidth:"wide",argumentCallback:function(t){return t-1}}),month:oe({values:c0t,defaultWidth:"wide"}),day:oe({values:d0t,defaultWidth:"wide"}),dayPeriod:oe({values:f0t,defaultWidth:"wide",formattingValues:p0t,defaultFormattingWidth:"wide"})},g0t=/^(\d+)(வது)?/i,v0t=/\d+/i,y0t={narrow:/^(கி.மு.|கி.பி.)/i,abbreviated:/^(கி\.?\s?மு\.?|கி\.?\s?பி\.?)/,wide:/^(கிறிஸ்துவுக்கு\sமுன்|அன்னோ\sடோமினி)/i},b0t={any:[/கி\.?\s?மு\.?/,/கி\.?\s?பி\.?/]},w0t={narrow:/^[1234]/i,abbreviated:/^காலா.[1234]/i,wide:/^(ஒன்றாம்|இரண்டாம்|மூன்றாம்|நான்காம்) காலாண்டு/i},S0t={narrow:[/1/i,/2/i,/3/i,/4/i],any:[/(1|காலா.1|ஒன்றாம்)/i,/(2|காலா.2|இரண்டாம்)/i,/(3|காலா.3|மூன்றாம்)/i,/(4|காலா.4|நான்காம்)/i]},E0t={narrow:/^(ஜ|பி|மா|ஏ|மே|ஜூ|ஆ|செ|அ|ந|டி)$/i,abbreviated:/^(ஜன.|பிப்.|மார்.|ஏப்.|மே|ஜூன்|ஜூலை|ஆக.|செப்.|அக்.|நவ.|டிச.)/i,wide:/^(ஜனவரி|பிப்ரவரி|மார்ச்|ஏப்ரல்|மே|ஜூன்|ஜூலை|ஆகஸ்ட்|செப்டம்பர்|அக்டோபர்|நவம்பர்|டிசம்பர்)/i},T0t={narrow:[/^ஜ$/i,/^பி/i,/^மா/i,/^ஏ/i,/^மே/i,/^ஜூ/i,/^ஜூ/i,/^ஆ/i,/^செ/i,/^அ/i,/^ந/i,/^டி/i],any:[/^ஜன/i,/^பி/i,/^மா/i,/^ஏ/i,/^மே/i,/^ஜூன்/i,/^ஜூலை/i,/^ஆ/i,/^செ/i,/^அ/i,/^ந/i,/^டி/i]},C0t={narrow:/^(ஞா|தி|செ|பு|வி|வெ|ச)/i,short:/^(ஞா|தி|செ|பு|வி|வெ|ச)/i,abbreviated:/^(ஞாயி.|திங்.|செவ்.|புத.|வியா.|வெள்.|சனி)/i,wide:/^(ஞாயிறு|திங்கள்|செவ்வாய்|புதன்|வியாழன்|வெள்ளி|சனி)/i},k0t={narrow:[/^ஞா/i,/^தி/i,/^செ/i,/^பு/i,/^வி/i,/^வெ/i,/^ச/i],any:[/^ஞா/i,/^தி/i,/^செ/i,/^பு/i,/^வி/i,/^வெ/i,/^ச/i]},x0t={narrow:/^(மு.ப|பி.ப|நள்|நண்|காலை|மதியம்|மாலை|இரவு)/i,any:/^(மு.ப|பி.ப|முற்பகல்|பிற்பகல்|நள்ளிரவு|நண்பகல்|காலை|மதியம்|மாலை|இரவு)/i},_0t={any:{am:/^மு/i,pm:/^பி/i,midnight:/^நள்/i,noon:/^நண்/i,morning:/காலை/i,afternoon:/மதியம்/i,evening:/மாலை/i,night:/இரவு/i}},O0t={ordinalNumber:Xt({matchPattern:g0t,parsePattern:v0t,valueCallback:function(t){return parseInt(t,10)}}),era:se({matchPatterns:y0t,defaultMatchWidth:"wide",parsePatterns:b0t,defaultParseWidth:"any"}),quarter:se({matchPatterns:w0t,defaultMatchWidth:"wide",parsePatterns:S0t,defaultParseWidth:"any",valueCallback:function(t){return t+1}}),month:se({matchPatterns:E0t,defaultMatchWidth:"wide",parsePatterns:T0t,defaultParseWidth:"any"}),day:se({matchPatterns:C0t,defaultMatchWidth:"wide",parsePatterns:k0t,defaultParseWidth:"any"}),dayPeriod:se({matchPatterns:x0t,defaultMatchWidth:"any",parsePatterns:_0t,defaultParseWidth:"any"})},R0t={code:"ta",formatDistance:t0t,formatLong:i0t,formatRelative:s0t,localize:m0t,match:O0t,options:{weekStartsOn:1,firstWeekContainsDate:4}};const P0t=Object.freeze(Object.defineProperty({__proto__:null,default:R0t},Symbol.toStringTag,{value:"Module"})),A0t=jt(P0t);var xY={lessThanXSeconds:{standalone:{one:"సెకను కన్నా తక్కువ",other:"{{count}} సెకన్ల కన్నా తక్కువ"},withPreposition:{one:"సెకను",other:"{{count}} సెకన్ల"}},xSeconds:{standalone:{one:"ఒక సెకను",other:"{{count}} సెకన్ల"},withPreposition:{one:"ఒక సెకను",other:"{{count}} సెకన్ల"}},halfAMinute:{standalone:"అర నిమిషం",withPreposition:"అర నిమిషం"},lessThanXMinutes:{standalone:{one:"ఒక నిమిషం కన్నా తక్కువ",other:"{{count}} నిమిషాల కన్నా తక్కువ"},withPreposition:{one:"ఒక నిమిషం",other:"{{count}} నిమిషాల"}},xMinutes:{standalone:{one:"ఒక నిమిషం",other:"{{count}} నిమిషాలు"},withPreposition:{one:"ఒక నిమిషం",other:"{{count}} నిమిషాల"}},aboutXHours:{standalone:{one:"సుమారు ఒక గంట",other:"సుమారు {{count}} గంటలు"},withPreposition:{one:"సుమారు ఒక గంట",other:"సుమారు {{count}} గంటల"}},xHours:{standalone:{one:"ఒక గంట",other:"{{count}} గంటలు"},withPreposition:{one:"ఒక గంట",other:"{{count}} గంటల"}},xDays:{standalone:{one:"ఒక రోజు",other:"{{count}} రోజులు"},withPreposition:{one:"ఒక రోజు",other:"{{count}} రోజుల"}},aboutXWeeks:{standalone:{one:"సుమారు ఒక వారం",other:"సుమారు {{count}} వారాలు"},withPreposition:{one:"సుమారు ఒక వారం",other:"సుమారు {{count}} వారాలల"}},xWeeks:{standalone:{one:"ఒక వారం",other:"{{count}} వారాలు"},withPreposition:{one:"ఒక వారం",other:"{{count}} వారాలల"}},aboutXMonths:{standalone:{one:"సుమారు ఒక నెల",other:"సుమారు {{count}} నెలలు"},withPreposition:{one:"సుమారు ఒక నెల",other:"సుమారు {{count}} నెలల"}},xMonths:{standalone:{one:"ఒక నెల",other:"{{count}} నెలలు"},withPreposition:{one:"ఒక నెల",other:"{{count}} నెలల"}},aboutXYears:{standalone:{one:"సుమారు ఒక సంవత్సరం",other:"సుమారు {{count}} సంవత్సరాలు"},withPreposition:{one:"సుమారు ఒక సంవత్సరం",other:"సుమారు {{count}} సంవత్సరాల"}},xYears:{standalone:{one:"ఒక సంవత్సరం",other:"{{count}} సంవత్సరాలు"},withPreposition:{one:"ఒక సంవత్సరం",other:"{{count}} సంవత్సరాల"}},overXYears:{standalone:{one:"ఒక సంవత్సరం పైగా",other:"{{count}} సంవత్సరాలకు పైగా"},withPreposition:{one:"ఒక సంవత్సరం",other:"{{count}} సంవత్సరాల"}},almostXYears:{standalone:{one:"దాదాపు ఒక సంవత్సరం",other:"దాదాపు {{count}} సంవత్సరాలు"},withPreposition:{one:"దాదాపు ఒక సంవత్సరం",other:"దాదాపు {{count}} సంవత్సరాల"}}},N0t=function(t,n,r){var a,i=r!=null&&r.addSuffix?xY[t].withPreposition:xY[t].standalone;return typeof i=="string"?a=i:n===1?a=i.one:a=i.other.replace("{{count}}",String(n)),r!=null&&r.addSuffix?r.comparison&&r.comparison>0?a+"లో":a+" క్రితం":a},M0t={full:"d, MMMM y, EEEE",long:"d MMMM, y",medium:"d MMM, y",short:"dd-MM-yy"},I0t={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},D0t={full:"{{date}} {{time}}'కి'",long:"{{date}} {{time}}'కి'",medium:"{{date}} {{time}}",short:"{{date}} {{time}}"},$0t={date:Ne({formats:M0t,defaultWidth:"full"}),time:Ne({formats:I0t,defaultWidth:"full"}),dateTime:Ne({formats:D0t,defaultWidth:"full"})},L0t={lastWeek:"'గత' eeee p",yesterday:"'నిన్న' p",today:"'ఈ రోజు' p",tomorrow:"'రేపు' p",nextWeek:"'తదుపరి' eeee p",other:"P"},F0t=function(t,n,r,a){return L0t[t]},j0t={narrow:["క్రీ.పూ.","క్రీ.శ."],abbreviated:["క్రీ.పూ.","క్రీ.శ."],wide:["క్రీస్తు పూర్వం","క్రీస్తుశకం"]},U0t={narrow:["1","2","3","4"],abbreviated:["త్రై1","త్రై2","త్రై3","త్రై4"],wide:["1వ త్రైమాసికం","2వ త్రైమాసికం","3వ త్రైమాసికం","4వ త్రైమాసికం"]},B0t={narrow:["జ","ఫి","మా","ఏ","మే","జూ","జు","ఆ","సె","అ","న","డి"],abbreviated:["జన","ఫిబ్ర","మార్చి","ఏప్రి","మే","జూన్","జులై","ఆగ","సెప్టెం","అక్టో","నవం","డిసెం"],wide:["జనవరి","ఫిబ్రవరి","మార్చి","ఏప్రిల్","మే","జూన్","జులై","ఆగస్టు","సెప్టెంబర్","అక్టోబర్","నవంబర్","డిసెంబర్"]},W0t={narrow:["ఆ","సో","మ","బు","గు","శు","శ"],short:["ఆది","సోమ","మంగళ","బుధ","గురు","శుక్ర","శని"],abbreviated:["ఆది","సోమ","మంగళ","బుధ","గురు","శుక్ర","శని"],wide:["ఆదివారం","సోమవారం","మంగళవారం","బుధవారం","గురువారం","శుక్రవారం","శనివారం"]},z0t={narrow:{am:"పూర్వాహ్నం",pm:"అపరాహ్నం",midnight:"అర్ధరాత్రి",noon:"మిట్టమధ్యాహ్నం",morning:"ఉదయం",afternoon:"మధ్యాహ్నం",evening:"సాయంత్రం",night:"రాత్రి"},abbreviated:{am:"పూర్వాహ్నం",pm:"అపరాహ్నం",midnight:"అర్ధరాత్రి",noon:"మిట్టమధ్యాహ్నం",morning:"ఉదయం",afternoon:"మధ్యాహ్నం",evening:"సాయంత్రం",night:"రాత్రి"},wide:{am:"పూర్వాహ్నం",pm:"అపరాహ్నం",midnight:"అర్ధరాత్రి",noon:"మిట్టమధ్యాహ్నం",morning:"ఉదయం",afternoon:"మధ్యాహ్నం",evening:"సాయంత్రం",night:"రాత్రి"}},q0t={narrow:{am:"పూర్వాహ్నం",pm:"అపరాహ్నం",midnight:"అర్ధరాత్రి",noon:"మిట్టమధ్యాహ్నం",morning:"ఉదయం",afternoon:"మధ్యాహ్నం",evening:"సాయంత్రం",night:"రాత్రి"},abbreviated:{am:"పూర్వాహ్నం",pm:"అపరాహ్నం",midnight:"అర్ధరాత్రి",noon:"మిట్టమధ్యాహ్నం",morning:"ఉదయం",afternoon:"మధ్యాహ్నం",evening:"సాయంత్రం",night:"రాత్రి"},wide:{am:"పూర్వాహ్నం",pm:"అపరాహ్నం",midnight:"అర్ధరాత్రి",noon:"మిట్టమధ్యాహ్నం",morning:"ఉదయం",afternoon:"మధ్యాహ్నం",evening:"సాయంత్రం",night:"రాత్రి"}},H0t=function(t,n){var r=Number(t);return r+"వ"},V0t={ordinalNumber:H0t,era:oe({values:j0t,defaultWidth:"wide"}),quarter:oe({values:U0t,defaultWidth:"wide",argumentCallback:function(t){return t-1}}),month:oe({values:B0t,defaultWidth:"wide"}),day:oe({values:W0t,defaultWidth:"wide"}),dayPeriod:oe({values:z0t,defaultWidth:"wide",formattingValues:q0t,defaultFormattingWidth:"wide"})},G0t=/^(\d+)(వ)?/i,Y0t=/\d+/i,K0t={narrow:/^(క్రీ\.పూ\.|క్రీ\.శ\.)/i,abbreviated:/^(క్రీ\.?\s?పూ\.?|ప్ర\.?\s?శ\.?\s?పూ\.?|క్రీ\.?\s?శ\.?|సా\.?\s?శ\.?)/i,wide:/^(క్రీస్తు పూర్వం|ప్రస్తుత శకానికి పూర్వం|క్రీస్తు శకం|ప్రస్తుత శకం)/i},X0t={any:[/^(పూ|శ)/i,/^సా/i]},Q0t={narrow:/^[1234]/i,abbreviated:/^త్రై[1234]/i,wide:/^[1234](వ)? త్రైమాసికం/i},J0t={any:[/1/i,/2/i,/3/i,/4/i]},Z0t={narrow:/^(జూ|జు|జ|ఫి|మా|ఏ|మే|ఆ|సె|అ|న|డి)/i,abbreviated:/^(జన|ఫిబ్ర|మార్చి|ఏప్రి|మే|జూన్|జులై|ఆగ|సెప్|అక్టో|నవ|డిసె)/i,wide:/^(జనవరి|ఫిబ్రవరి|మార్చి|ఏప్రిల్|మే|జూన్|జులై|ఆగస్టు|సెప్టెంబర్|అక్టోబర్|నవంబర్|డిసెంబర్)/i},ewt={narrow:[/^జ/i,/^ఫి/i,/^మా/i,/^ఏ/i,/^మే/i,/^జూ/i,/^జు/i,/^ఆ/i,/^సె/i,/^అ/i,/^న/i,/^డి/i],any:[/^జన/i,/^ఫి/i,/^మా/i,/^ఏ/i,/^మే/i,/^జూన్/i,/^జులై/i,/^ఆగ/i,/^సె/i,/^అ/i,/^న/i,/^డి/i]},twt={narrow:/^(ఆ|సో|మ|బు|గు|శు|శ)/i,short:/^(ఆది|సోమ|మం|బుధ|గురు|శుక్ర|శని)/i,abbreviated:/^(ఆది|సోమ|మం|బుధ|గురు|శుక్ర|శని)/i,wide:/^(ఆదివారం|సోమవారం|మంగళవారం|బుధవారం|గురువారం|శుక్రవారం|శనివారం)/i},nwt={narrow:[/^ఆ/i,/^సో/i,/^మ/i,/^బు/i,/^గు/i,/^శు/i,/^శ/i],any:[/^ఆది/i,/^సోమ/i,/^మం/i,/^బుధ/i,/^గురు/i,/^శుక్ర/i,/^శని/i]},rwt={narrow:/^(పూర్వాహ్నం|అపరాహ్నం|అర్ధరాత్రి|మిట్టమధ్యాహ్నం|ఉదయం|మధ్యాహ్నం|సాయంత్రం|రాత్రి)/i,any:/^(పూర్వాహ్నం|అపరాహ్నం|అర్ధరాత్రి|మిట్టమధ్యాహ్నం|ఉదయం|మధ్యాహ్నం|సాయంత్రం|రాత్రి)/i},awt={any:{am:/^పూర్వాహ్నం/i,pm:/^అపరాహ్నం/i,midnight:/^అర్ధ/i,noon:/^మిట్ట/i,morning:/ఉదయం/i,afternoon:/మధ్యాహ్నం/i,evening:/సాయంత్రం/i,night:/రాత్రి/i}},iwt={ordinalNumber:Xt({matchPattern:G0t,parsePattern:Y0t,valueCallback:function(t){return parseInt(t,10)}}),era:se({matchPatterns:K0t,defaultMatchWidth:"wide",parsePatterns:X0t,defaultParseWidth:"any"}),quarter:se({matchPatterns:Q0t,defaultMatchWidth:"wide",parsePatterns:J0t,defaultParseWidth:"any",valueCallback:function(t){return t+1}}),month:se({matchPatterns:Z0t,defaultMatchWidth:"wide",parsePatterns:ewt,defaultParseWidth:"any"}),day:se({matchPatterns:twt,defaultMatchWidth:"wide",parsePatterns:nwt,defaultParseWidth:"any"}),dayPeriod:se({matchPatterns:rwt,defaultMatchWidth:"any",parsePatterns:awt,defaultParseWidth:"any"})},owt={code:"te",formatDistance:N0t,formatLong:$0t,formatRelative:F0t,localize:V0t,match:iwt,options:{weekStartsOn:0,firstWeekContainsDate:1}};const swt=Object.freeze(Object.defineProperty({__proto__:null,default:owt},Symbol.toStringTag,{value:"Module"})),lwt=jt(swt);var uwt={lessThanXSeconds:{one:"น้อยกว่า 1 วินาที",other:"น้อยกว่า {{count}} วินาที"},xSeconds:{one:"1 วินาที",other:"{{count}} วินาที"},halfAMinute:"ครึ่งนาที",lessThanXMinutes:{one:"น้อยกว่า 1 นาที",other:"น้อยกว่า {{count}} นาที"},xMinutes:{one:"1 นาที",other:"{{count}} นาที"},aboutXHours:{one:"ประมาณ 1 ชั่วโมง",other:"ประมาณ {{count}} ชั่วโมง"},xHours:{one:"1 ชั่วโมง",other:"{{count}} ชั่วโมง"},xDays:{one:"1 วัน",other:"{{count}} วัน"},aboutXWeeks:{one:"ประมาณ 1 สัปดาห์",other:"ประมาณ {{count}} สัปดาห์"},xWeeks:{one:"1 สัปดาห์",other:"{{count}} สัปดาห์"},aboutXMonths:{one:"ประมาณ 1 เดือน",other:"ประมาณ {{count}} เดือน"},xMonths:{one:"1 เดือน",other:"{{count}} เดือน"},aboutXYears:{one:"ประมาณ 1 ปี",other:"ประมาณ {{count}} ปี"},xYears:{one:"1 ปี",other:"{{count}} ปี"},overXYears:{one:"มากกว่า 1 ปี",other:"มากกว่า {{count}} ปี"},almostXYears:{one:"เกือบ 1 ปี",other:"เกือบ {{count}} ปี"}},cwt=function(t,n,r){var a,i=uwt[t];return typeof i=="string"?a=i:n===1?a=i.one:a=i.other.replace("{{count}}",String(n)),r!=null&&r.addSuffix?r.comparison&&r.comparison>0?t==="halfAMinute"?"ใน"+a:"ใน "+a:a+"ที่ผ่านมา":a},dwt={full:"วันEEEEที่ do MMMM y",long:"do MMMM y",medium:"d MMM y",short:"dd/MM/yyyy"},fwt={full:"H:mm:ss น. zzzz",long:"H:mm:ss น. z",medium:"H:mm:ss น.",short:"H:mm น."},pwt={full:"{{date}} 'เวลา' {{time}}",long:"{{date}} 'เวลา' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},hwt={date:Ne({formats:dwt,defaultWidth:"full"}),time:Ne({formats:fwt,defaultWidth:"medium"}),dateTime:Ne({formats:pwt,defaultWidth:"full"})},mwt={lastWeek:"eeee'ที่แล้วเวลา' p",yesterday:"'เมื่อวานนี้เวลา' p",today:"'วันนี้เวลา' p",tomorrow:"'พรุ่งนี้เวลา' p",nextWeek:"eeee 'เวลา' p",other:"P"},gwt=function(t,n,r,a){return mwt[t]},vwt={narrow:["B","คศ"],abbreviated:["BC","ค.ศ."],wide:["ปีก่อนคริสตกาล","คริสต์ศักราช"]},ywt={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["ไตรมาสแรก","ไตรมาสที่สอง","ไตรมาสที่สาม","ไตรมาสที่สี่"]},bwt={narrow:["อา.","จ.","อ.","พ.","พฤ.","ศ.","ส."],short:["อา.","จ.","อ.","พ.","พฤ.","ศ.","ส."],abbreviated:["อา.","จ.","อ.","พ.","พฤ.","ศ.","ส."],wide:["อาทิตย์","จันทร์","อังคาร","พุธ","พฤหัสบดี","ศุกร์","เสาร์"]},wwt={narrow:["ม.ค.","ก.พ.","มี.ค.","เม.ย.","พ.ค.","มิ.ย.","ก.ค.","ส.ค.","ก.ย.","ต.ค.","พ.ย.","ธ.ค."],abbreviated:["ม.ค.","ก.พ.","มี.ค.","เม.ย.","พ.ค.","มิ.ย.","ก.ค.","ส.ค.","ก.ย.","ต.ค.","พ.ย.","ธ.ค."],wide:["มกราคม","กุมภาพันธ์","มีนาคม","เมษายน","พฤษภาคม","มิถุนายน","กรกฎาคม","สิงหาคม","กันยายน","ตุลาคม","พฤศจิกายน","ธันวาคม"]},Swt={narrow:{am:"ก่อนเที่ยง",pm:"หลังเที่ยง",midnight:"เที่ยงคืน",noon:"เที่ยง",morning:"เช้า",afternoon:"บ่าย",evening:"เย็น",night:"กลางคืน"},abbreviated:{am:"ก่อนเที่ยง",pm:"หลังเที่ยง",midnight:"เที่ยงคืน",noon:"เที่ยง",morning:"เช้า",afternoon:"บ่าย",evening:"เย็น",night:"กลางคืน"},wide:{am:"ก่อนเที่ยง",pm:"หลังเที่ยง",midnight:"เที่ยงคืน",noon:"เที่ยง",morning:"เช้า",afternoon:"บ่าย",evening:"เย็น",night:"กลางคืน"}},Ewt={narrow:{am:"ก่อนเที่ยง",pm:"หลังเที่ยง",midnight:"เที่ยงคืน",noon:"เที่ยง",morning:"ตอนเช้า",afternoon:"ตอนกลางวัน",evening:"ตอนเย็น",night:"ตอนกลางคืน"},abbreviated:{am:"ก่อนเที่ยง",pm:"หลังเที่ยง",midnight:"เที่ยงคืน",noon:"เที่ยง",morning:"ตอนเช้า",afternoon:"ตอนกลางวัน",evening:"ตอนเย็น",night:"ตอนกลางคืน"},wide:{am:"ก่อนเที่ยง",pm:"หลังเที่ยง",midnight:"เที่ยงคืน",noon:"เที่ยง",morning:"ตอนเช้า",afternoon:"ตอนกลางวัน",evening:"ตอนเย็น",night:"ตอนกลางคืน"}},Twt=function(t,n){return String(t)},Cwt={ordinalNumber:Twt,era:oe({values:vwt,defaultWidth:"wide"}),quarter:oe({values:ywt,defaultWidth:"wide",argumentCallback:function(t){return t-1}}),month:oe({values:wwt,defaultWidth:"wide"}),day:oe({values:bwt,defaultWidth:"wide"}),dayPeriod:oe({values:Swt,defaultWidth:"wide",formattingValues:Ewt,defaultFormattingWidth:"wide"})},kwt=/^\d+/i,xwt=/\d+/i,_wt={narrow:/^([bB]|[aA]|คศ)/i,abbreviated:/^([bB]\.?\s?[cC]\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?|ค\.?ศ\.?)/i,wide:/^(ก่อนคริสตกาล|คริสต์ศักราช|คริสตกาล)/i},Owt={any:[/^[bB]/i,/^(^[aA]|ค\.?ศ\.?|คริสตกาล|คริสต์ศักราช|)/i]},Rwt={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^ไตรมาส(ที่)? ?[1234]/i},Pwt={any:[/(1|แรก|หนึ่ง)/i,/(2|สอง)/i,/(3|สาม)/i,/(4|สี่)/i]},Awt={narrow:/^(ม\.?ค\.?|ก\.?พ\.?|มี\.?ค\.?|เม\.?ย\.?|พ\.?ค\.?|มิ\.?ย\.?|ก\.?ค\.?|ส\.?ค\.?|ก\.?ย\.?|ต\.?ค\.?|พ\.?ย\.?|ธ\.?ค\.?)/i,abbreviated:/^(ม\.?ค\.?|ก\.?พ\.?|มี\.?ค\.?|เม\.?ย\.?|พ\.?ค\.?|มิ\.?ย\.?|ก\.?ค\.?|ส\.?ค\.?|ก\.?ย\.?|ต\.?ค\.?|พ\.?ย\.?|ธ\.?ค\.?')/i,wide:/^(มกราคม|กุมภาพันธ์|มีนาคม|เมษายน|พฤษภาคม|มิถุนายน|กรกฎาคม|สิงหาคม|กันยายน|ตุลาคม|พฤศจิกายน|ธันวาคม)/i},Nwt={wide:[/^มก/i,/^กุม/i,/^มี/i,/^เม/i,/^พฤษ/i,/^มิ/i,/^กรก/i,/^ส/i,/^กัน/i,/^ต/i,/^พฤศ/i,/^ธ/i],any:[/^ม\.?ค\.?/i,/^ก\.?พ\.?/i,/^มี\.?ค\.?/i,/^เม\.?ย\.?/i,/^พ\.?ค\.?/i,/^มิ\.?ย\.?/i,/^ก\.?ค\.?/i,/^ส\.?ค\.?/i,/^ก\.?ย\.?/i,/^ต\.?ค\.?/i,/^พ\.?ย\.?/i,/^ธ\.?ค\.?/i]},Mwt={narrow:/^(อา\.?|จ\.?|อ\.?|พฤ\.?|พ\.?|ศ\.?|ส\.?)/i,short:/^(อา\.?|จ\.?|อ\.?|พฤ\.?|พ\.?|ศ\.?|ส\.?)/i,abbreviated:/^(อา\.?|จ\.?|อ\.?|พฤ\.?|พ\.?|ศ\.?|ส\.?)/i,wide:/^(อาทิตย์|จันทร์|อังคาร|พุธ|พฤหัสบดี|ศุกร์|เสาร์)/i},Iwt={wide:[/^อา/i,/^จั/i,/^อั/i,/^พุธ/i,/^พฤ/i,/^ศ/i,/^เส/i],any:[/^อา/i,/^จ/i,/^อ/i,/^พ(?!ฤ)/i,/^พฤ/i,/^ศ/i,/^ส/i]},Dwt={any:/^(ก่อนเที่ยง|หลังเที่ยง|เที่ยงคืน|เที่ยง|(ตอน.*?)?.*(เที่ยง|เช้า|บ่าย|เย็น|กลางคืน))/i},$wt={any:{am:/^ก่อนเที่ยง/i,pm:/^หลังเที่ยง/i,midnight:/^เที่ยงคืน/i,noon:/^เที่ยง/i,morning:/เช้า/i,afternoon:/บ่าย/i,evening:/เย็น/i,night:/กลางคืน/i}},Lwt={ordinalNumber:Xt({matchPattern:kwt,parsePattern:xwt,valueCallback:function(t){return parseInt(t,10)}}),era:se({matchPatterns:_wt,defaultMatchWidth:"wide",parsePatterns:Owt,defaultParseWidth:"any"}),quarter:se({matchPatterns:Rwt,defaultMatchWidth:"wide",parsePatterns:Pwt,defaultParseWidth:"any",valueCallback:function(t){return t+1}}),month:se({matchPatterns:Awt,defaultMatchWidth:"wide",parsePatterns:Nwt,defaultParseWidth:"any"}),day:se({matchPatterns:Mwt,defaultMatchWidth:"wide",parsePatterns:Iwt,defaultParseWidth:"any"}),dayPeriod:se({matchPatterns:Dwt,defaultMatchWidth:"any",parsePatterns:$wt,defaultParseWidth:"any"})},Fwt={code:"th",formatDistance:cwt,formatLong:hwt,formatRelative:gwt,localize:Cwt,match:Lwt,options:{weekStartsOn:0,firstWeekContainsDate:1}};const jwt=Object.freeze(Object.defineProperty({__proto__:null,default:Fwt},Symbol.toStringTag,{value:"Module"})),Uwt=jt(jwt);var Bwt={lessThanXSeconds:{one:"bir saniyeden az",other:"{{count}} saniyeden az"},xSeconds:{one:"1 saniye",other:"{{count}} saniye"},halfAMinute:"yarım dakika",lessThanXMinutes:{one:"bir dakikadan az",other:"{{count}} dakikadan az"},xMinutes:{one:"1 dakika",other:"{{count}} dakika"},aboutXHours:{one:"yaklaşık 1 saat",other:"yaklaşık {{count}} saat"},xHours:{one:"1 saat",other:"{{count}} saat"},xDays:{one:"1 gün",other:"{{count}} gün"},aboutXWeeks:{one:"yaklaşık 1 hafta",other:"yaklaşık {{count}} hafta"},xWeeks:{one:"1 hafta",other:"{{count}} hafta"},aboutXMonths:{one:"yaklaşık 1 ay",other:"yaklaşık {{count}} ay"},xMonths:{one:"1 ay",other:"{{count}} ay"},aboutXYears:{one:"yaklaşık 1 yıl",other:"yaklaşık {{count}} yıl"},xYears:{one:"1 yıl",other:"{{count}} yıl"},overXYears:{one:"1 yıldan fazla",other:"{{count}} yıldan fazla"},almostXYears:{one:"neredeyse 1 yıl",other:"neredeyse {{count}} yıl"}},Wwt=function(t,n,r){var a,i=Bwt[t];return typeof i=="string"?a=i:n===1?a=i.one:a=i.other.replace("{{count}}",n.toString()),r!=null&&r.addSuffix?r.comparison&&r.comparison>0?a+" sonra":a+" önce":a},zwt={full:"d MMMM y EEEE",long:"d MMMM y",medium:"d MMM y",short:"dd.MM.yyyy"},qwt={full:"HH:mm:ss zzzz",long:"HH:mm:ss z",medium:"HH:mm:ss",short:"HH:mm"},Hwt={full:"{{date}} 'saat' {{time}}",long:"{{date}} 'saat' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},Vwt={date:Ne({formats:zwt,defaultWidth:"full"}),time:Ne({formats:qwt,defaultWidth:"full"}),dateTime:Ne({formats:Hwt,defaultWidth:"full"})},Gwt={lastWeek:"'geçen hafta' eeee 'saat' p",yesterday:"'dün saat' p",today:"'bugün saat' p",tomorrow:"'yarın saat' p",nextWeek:"eeee 'saat' p",other:"P"},Ywt=function(t,n,r,a){return Gwt[t]},Kwt={narrow:["MÖ","MS"],abbreviated:["MÖ","MS"],wide:["Milattan Önce","Milattan Sonra"]},Xwt={narrow:["1","2","3","4"],abbreviated:["1Ç","2Ç","3Ç","4Ç"],wide:["İlk çeyrek","İkinci Çeyrek","Üçüncü çeyrek","Son çeyrek"]},Qwt={narrow:["O","Ş","M","N","M","H","T","A","E","E","K","A"],abbreviated:["Oca","Şub","Mar","Nis","May","Haz","Tem","Ağu","Eyl","Eki","Kas","Ara"],wide:["Ocak","Şubat","Mart","Nisan","Mayıs","Haziran","Temmuz","Ağustos","Eylül","Ekim","Kasım","Aralık"]},Jwt={narrow:["P","P","S","Ç","P","C","C"],short:["Pz","Pt","Sa","Ça","Pe","Cu","Ct"],abbreviated:["Paz","Pzt","Sal","Çar","Per","Cum","Cts"],wide:["Pazar","Pazartesi","Salı","Çarşamba","Perşembe","Cuma","Cumartesi"]},Zwt={narrow:{am:"öö",pm:"ös",midnight:"gy",noon:"ö",morning:"sa",afternoon:"ös",evening:"ak",night:"ge"},abbreviated:{am:"ÖÖ",pm:"ÖS",midnight:"gece yarısı",noon:"öğle",morning:"sabah",afternoon:"öğleden sonra",evening:"akşam",night:"gece"},wide:{am:"Ö.Ö.",pm:"Ö.S.",midnight:"gece yarısı",noon:"öğle",morning:"sabah",afternoon:"öğleden sonra",evening:"akşam",night:"gece"}},eSt={narrow:{am:"öö",pm:"ös",midnight:"gy",noon:"ö",morning:"sa",afternoon:"ös",evening:"ak",night:"ge"},abbreviated:{am:"ÖÖ",pm:"ÖS",midnight:"gece yarısı",noon:"öğlen",morning:"sabahleyin",afternoon:"öğleden sonra",evening:"akşamleyin",night:"geceleyin"},wide:{am:"ö.ö.",pm:"ö.s.",midnight:"gece yarısı",noon:"öğlen",morning:"sabahleyin",afternoon:"öğleden sonra",evening:"akşamleyin",night:"geceleyin"}},tSt=function(t,n){var r=Number(t);return r+"."},nSt={ordinalNumber:tSt,era:oe({values:Kwt,defaultWidth:"wide"}),quarter:oe({values:Xwt,defaultWidth:"wide",argumentCallback:function(t){return Number(t)-1}}),month:oe({values:Qwt,defaultWidth:"wide"}),day:oe({values:Jwt,defaultWidth:"wide"}),dayPeriod:oe({values:Zwt,defaultWidth:"wide",formattingValues:eSt,defaultFormattingWidth:"wide"})},rSt=/^(\d+)(\.)?/i,aSt=/\d+/i,iSt={narrow:/^(mö|ms)/i,abbreviated:/^(mö|ms)/i,wide:/^(milattan önce|milattan sonra)/i},oSt={any:[/(^mö|^milattan önce)/i,/(^ms|^milattan sonra)/i]},sSt={narrow:/^[1234]/i,abbreviated:/^[1234]ç/i,wide:/^((i|İ)lk|(i|İ)kinci|üçüncü|son) çeyrek/i},lSt={any:[/1/i,/2/i,/3/i,/4/i],abbreviated:[/1ç/i,/2ç/i,/3ç/i,/4ç/i],wide:[/^(i|İ)lk çeyrek/i,/(i|İ)kinci çeyrek/i,/üçüncü çeyrek/i,/son çeyrek/i]},uSt={narrow:/^[oşmnhtaek]/i,abbreviated:/^(oca|şub|mar|nis|may|haz|tem|ağu|eyl|eki|kas|ara)/i,wide:/^(ocak|şubat|mart|nisan|mayıs|haziran|temmuz|ağustos|eylül|ekim|kasım|aralık)/i},cSt={narrow:[/^o/i,/^ş/i,/^m/i,/^n/i,/^m/i,/^h/i,/^t/i,/^a/i,/^e/i,/^e/i,/^k/i,/^a/i],any:[/^o/i,/^ş/i,/^mar/i,/^n/i,/^may/i,/^h/i,/^t/i,/^ağ/i,/^ey/i,/^ek/i,/^k/i,/^ar/i]},dSt={narrow:/^[psçc]/i,short:/^(pz|pt|sa|ça|pe|cu|ct)/i,abbreviated:/^(paz|pzt|sal|çar|per|cum|cts)/i,wide:/^(pazar(?!tesi)|pazartesi|salı|çarşamba|perşembe|cuma(?!rtesi)|cumartesi)/i},fSt={narrow:[/^p/i,/^p/i,/^s/i,/^ç/i,/^p/i,/^c/i,/^c/i],any:[/^pz/i,/^pt/i,/^sa/i,/^ça/i,/^pe/i,/^cu/i,/^ct/i],wide:[/^pazar(?!tesi)/i,/^pazartesi/i,/^salı/i,/^çarşamba/i,/^perşembe/i,/^cuma(?!rtesi)/i,/^cumartesi/i]},pSt={narrow:/^(öö|ös|gy|ö|sa|ös|ak|ge)/i,any:/^(ö\.?\s?[ös]\.?|öğleden sonra|gece yarısı|öğle|(sabah|öğ|akşam|gece)(leyin))/i},hSt={any:{am:/^ö\.?ö\.?/i,pm:/^ö\.?s\.?/i,midnight:/^(gy|gece yarısı)/i,noon:/^öğ/i,morning:/^sa/i,afternoon:/^öğleden sonra/i,evening:/^ak/i,night:/^ge/i}},mSt={ordinalNumber:Xt({matchPattern:rSt,parsePattern:aSt,valueCallback:function(t){return parseInt(t,10)}}),era:se({matchPatterns:iSt,defaultMatchWidth:"wide",parsePatterns:oSt,defaultParseWidth:"any"}),quarter:se({matchPatterns:sSt,defaultMatchWidth:"wide",parsePatterns:lSt,defaultParseWidth:"any",valueCallback:function(t){return t+1}}),month:se({matchPatterns:uSt,defaultMatchWidth:"wide",parsePatterns:cSt,defaultParseWidth:"any"}),day:se({matchPatterns:dSt,defaultMatchWidth:"wide",parsePatterns:fSt,defaultParseWidth:"any"}),dayPeriod:se({matchPatterns:pSt,defaultMatchWidth:"any",parsePatterns:hSt,defaultParseWidth:"any"})},gSt={code:"tr",formatDistance:Wwt,formatLong:Vwt,formatRelative:Ywt,localize:nSt,match:mSt,options:{weekStartsOn:1,firstWeekContainsDate:1}};const vSt=Object.freeze(Object.defineProperty({__proto__:null,default:gSt},Symbol.toStringTag,{value:"Module"})),ySt=jt(vSt);var bSt={lessThanXSeconds:{one:"بىر سىكۇنت ئىچىدە",other:"سىكۇنت ئىچىدە {{count}}"},xSeconds:{one:"بىر سىكۇنت",other:"سىكۇنت {{count}}"},halfAMinute:"يىرىم مىنۇت",lessThanXMinutes:{one:"بىر مىنۇت ئىچىدە",other:"مىنۇت ئىچىدە {{count}}"},xMinutes:{one:"بىر مىنۇت",other:"مىنۇت {{count}}"},aboutXHours:{one:"تەخمىنەن بىر سائەت",other:"سائەت {{count}} تەخمىنەن"},xHours:{one:"بىر سائەت",other:"سائەت {{count}}"},xDays:{one:"بىر كۈن",other:"كۈن {{count}}"},aboutXWeeks:{one:"تەخمىنەن بىرھەپتە",other:"ھەپتە {{count}} تەخمىنەن"},xWeeks:{one:"بىرھەپتە",other:"ھەپتە {{count}}"},aboutXMonths:{one:"تەخمىنەن بىر ئاي",other:"ئاي {{count}} تەخمىنەن"},xMonths:{one:"بىر ئاي",other:"ئاي {{count}}"},aboutXYears:{one:"تەخمىنەن بىر يىل",other:"يىل {{count}} تەخمىنەن"},xYears:{one:"بىر يىل",other:"يىل {{count}}"},overXYears:{one:"بىر يىلدىن ئارتۇق",other:"يىلدىن ئارتۇق {{count}}"},almostXYears:{one:"ئاساسەن بىر يىل",other:"يىل {{count}} ئاساسەن"}},wSt=function(t,n,r){var a,i=bSt[t];return typeof i=="string"?a=i:n===1?a=i.one:a=i.other.replace("{{count}}",String(n)),r!=null&&r.addSuffix?r.comparison&&r.comparison>0?a:a+" بولدى":a},SSt={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},ESt={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},TSt={full:"{{date}} 'دە' {{time}}",long:"{{date}} 'دە' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},CSt={date:Ne({formats:SSt,defaultWidth:"full"}),time:Ne({formats:ESt,defaultWidth:"full"}),dateTime:Ne({formats:TSt,defaultWidth:"full"})},kSt={lastWeek:"'ئ‍ۆتكەن' eeee 'دە' p",yesterday:"'تۈنۈگۈن دە' p",today:"'بۈگۈن دە' p",tomorrow:"'ئەتە دە' p",nextWeek:"eeee 'دە' p",other:"P"},xSt=function(t,n,r,a){return kSt[t]},_St={narrow:["ب","ك"],abbreviated:["ب","ك"],wide:["مىيلادىدىن بۇرۇن","مىيلادىدىن كىيىن"]},OSt={narrow:["1","2","3","4"],abbreviated:["1","2","3","4"],wide:["بىرىنجى چارەك","ئىككىنجى چارەك","ئۈچىنجى چارەك","تۆتىنجى چارەك"]},RSt={narrow:["ي","ف","م","ا","م","ى","ى","ا","س","ۆ","ن","د"],abbreviated:["يانۋار","فېۋىرال","مارت","ئاپرىل","ماي","ئىيۇن","ئىيول","ئاۋغۇست","سىنتەبىر","ئۆكتەبىر","نويابىر","دىكابىر"],wide:["يانۋار","فېۋىرال","مارت","ئاپرىل","ماي","ئىيۇن","ئىيول","ئاۋغۇست","سىنتەبىر","ئۆكتەبىر","نويابىر","دىكابىر"]},PSt={narrow:["ي","د","س","چ","پ","ج","ش"],short:["ي","د","س","چ","پ","ج","ش"],abbreviated:["يەكشەنبە","دۈشەنبە","سەيشەنبە","چارشەنبە","پەيشەنبە","جۈمە","شەنبە"],wide:["يەكشەنبە","دۈشەنبە","سەيشەنبە","چارشەنبە","پەيشەنبە","جۈمە","شەنبە"]},ASt={narrow:{am:"ئە",pm:"چ",midnight:"ك",noon:"چ",morning:"ئەتىگەن",afternoon:"چۈشتىن كىيىن",evening:"ئاخشىم",night:"كىچە"},abbreviated:{am:"ئە",pm:"چ",midnight:"ك",noon:"چ",morning:"ئەتىگەن",afternoon:"چۈشتىن كىيىن",evening:"ئاخشىم",night:"كىچە"},wide:{am:"ئە",pm:"چ",midnight:"ك",noon:"چ",morning:"ئەتىگەن",afternoon:"چۈشتىن كىيىن",evening:"ئاخشىم",night:"كىچە"}},NSt={narrow:{am:"ئە",pm:"چ",midnight:"ك",noon:"چ",morning:"ئەتىگەندە",afternoon:"چۈشتىن كىيىن",evening:"ئاخشامدا",night:"كىچىدە"},abbreviated:{am:"ئە",pm:"چ",midnight:"ك",noon:"چ",morning:"ئەتىگەندە",afternoon:"چۈشتىن كىيىن",evening:"ئاخشامدا",night:"كىچىدە"},wide:{am:"ئە",pm:"چ",midnight:"ك",noon:"چ",morning:"ئەتىگەندە",afternoon:"چۈشتىن كىيىن",evening:"ئاخشامدا",night:"كىچىدە"}},MSt=function(t,n){return String(t)},ISt={ordinalNumber:MSt,era:oe({values:_St,defaultWidth:"wide"}),quarter:oe({values:OSt,defaultWidth:"wide",argumentCallback:function(t){return t-1}}),month:oe({values:RSt,defaultWidth:"wide"}),day:oe({values:PSt,defaultWidth:"wide"}),dayPeriod:oe({values:ASt,defaultWidth:"wide",formattingValues:NSt,defaultFormattingWidth:"wide"})},DSt=/^(\d+)(th|st|nd|rd)?/i,$St=/\d+/i,LSt={narrow:/^(ب|ك)/i,wide:/^(مىيلادىدىن بۇرۇن|مىيلادىدىن كىيىن)/i},FSt={any:[/^بۇرۇن/i,/^كىيىن/i]},jSt={narrow:/^[1234]/i,abbreviated:/^چ[1234]/i,wide:/^چارەك [1234]/i},USt={any:[/1/i,/2/i,/3/i,/4/i]},BSt={narrow:/^[يفمئامئ‍ئاسۆند]/i,abbreviated:/^(يانۋار|فېۋىرال|مارت|ئاپرىل|ماي|ئىيۇن|ئىيول|ئاۋغۇست|سىنتەبىر|ئۆكتەبىر|نويابىر|دىكابىر)/i,wide:/^(يانۋار|فېۋىرال|مارت|ئاپرىل|ماي|ئىيۇن|ئىيول|ئاۋغۇست|سىنتەبىر|ئۆكتەبىر|نويابىر|دىكابىر)/i},WSt={narrow:[/^ي/i,/^ف/i,/^م/i,/^ا/i,/^م/i,/^ى‍/i,/^ى‍/i,/^ا‍/i,/^س/i,/^ۆ/i,/^ن/i,/^د/i],any:[/^يان/i,/^فېۋ/i,/^مار/i,/^ئاپ/i,/^ماي/i,/^ئىيۇن/i,/^ئىيول/i,/^ئاۋ/i,/^سىن/i,/^ئۆك/i,/^نوي/i,/^دىك/i]},zSt={narrow:/^[دسچپجشي]/i,short:/^(يە|دۈ|سە|چا|پە|جۈ|شە)/i,abbreviated:/^(يە|دۈ|سە|چا|پە|جۈ|شە)/i,wide:/^(يەكشەنبە|دۈشەنبە|سەيشەنبە|چارشەنبە|پەيشەنبە|جۈمە|شەنبە)/i},qSt={narrow:[/^ي/i,/^د/i,/^س/i,/^چ/i,/^پ/i,/^ج/i,/^ش/i],any:[/^ي/i,/^د/i,/^س/i,/^چ/i,/^پ/i,/^ج/i,/^ش/i]},HSt={narrow:/^(ئە|چ|ك|چ|(دە|ئەتىگەن) ( ئە‍|چۈشتىن كىيىن|ئاخشىم|كىچە))/i,any:/^(ئە|چ|ك|چ|(دە|ئەتىگەن) ( ئە‍|چۈشتىن كىيىن|ئاخشىم|كىچە))/i},VSt={any:{am:/^ئە/i,pm:/^چ/i,midnight:/^ك/i,noon:/^چ/i,morning:/ئەتىگەن/i,afternoon:/چۈشتىن كىيىن/i,evening:/ئاخشىم/i,night:/كىچە/i}},GSt={ordinalNumber:Xt({matchPattern:DSt,parsePattern:$St,valueCallback:function(t){return parseInt(t,10)}}),era:se({matchPatterns:LSt,defaultMatchWidth:"wide",parsePatterns:FSt,defaultParseWidth:"any"}),quarter:se({matchPatterns:jSt,defaultMatchWidth:"wide",parsePatterns:USt,defaultParseWidth:"any",valueCallback:function(t){return t+1}}),month:se({matchPatterns:BSt,defaultMatchWidth:"wide",parsePatterns:WSt,defaultParseWidth:"any"}),day:se({matchPatterns:zSt,defaultMatchWidth:"wide",parsePatterns:qSt,defaultParseWidth:"any"}),dayPeriod:se({matchPatterns:HSt,defaultMatchWidth:"any",parsePatterns:VSt,defaultParseWidth:"any"})},YSt={code:"ug",formatDistance:wSt,formatLong:CSt,formatRelative:xSt,localize:ISt,match:GSt,options:{weekStartsOn:0,firstWeekContainsDate:1}};const KSt=Object.freeze(Object.defineProperty({__proto__:null,default:YSt},Symbol.toStringTag,{value:"Module"})),XSt=jt(KSt);function S1(e,t){if(e.one!==void 0&&t===1)return e.one;var n=t%10,r=t%100;return n===1&&r!==11?e.singularNominative.replace("{{count}}",String(t)):n>=2&&n<=4&&(r<10||r>20)?e.singularGenitive.replace("{{count}}",String(t)):e.pluralGenitive.replace("{{count}}",String(t))}function $o(e){return function(t,n){return n&&n.addSuffix?n.comparison&&n.comparison>0?e.future?S1(e.future,t):"за "+S1(e.regular,t):e.past?S1(e.past,t):S1(e.regular,t)+" тому":S1(e.regular,t)}}var QSt=function(t,n){return n&&n.addSuffix?n.comparison&&n.comparison>0?"за півхвилини":"півхвилини тому":"півхвилини"},JSt={lessThanXSeconds:$o({regular:{one:"менше секунди",singularNominative:"менше {{count}} секунди",singularGenitive:"менше {{count}} секунд",pluralGenitive:"менше {{count}} секунд"},future:{one:"менше, ніж за секунду",singularNominative:"менше, ніж за {{count}} секунду",singularGenitive:"менше, ніж за {{count}} секунди",pluralGenitive:"менше, ніж за {{count}} секунд"}}),xSeconds:$o({regular:{singularNominative:"{{count}} секунда",singularGenitive:"{{count}} секунди",pluralGenitive:"{{count}} секунд"},past:{singularNominative:"{{count}} секунду тому",singularGenitive:"{{count}} секунди тому",pluralGenitive:"{{count}} секунд тому"},future:{singularNominative:"за {{count}} секунду",singularGenitive:"за {{count}} секунди",pluralGenitive:"за {{count}} секунд"}}),halfAMinute:QSt,lessThanXMinutes:$o({regular:{one:"менше хвилини",singularNominative:"менше {{count}} хвилини",singularGenitive:"менше {{count}} хвилин",pluralGenitive:"менше {{count}} хвилин"},future:{one:"менше, ніж за хвилину",singularNominative:"менше, ніж за {{count}} хвилину",singularGenitive:"менше, ніж за {{count}} хвилини",pluralGenitive:"менше, ніж за {{count}} хвилин"}}),xMinutes:$o({regular:{singularNominative:"{{count}} хвилина",singularGenitive:"{{count}} хвилини",pluralGenitive:"{{count}} хвилин"},past:{singularNominative:"{{count}} хвилину тому",singularGenitive:"{{count}} хвилини тому",pluralGenitive:"{{count}} хвилин тому"},future:{singularNominative:"за {{count}} хвилину",singularGenitive:"за {{count}} хвилини",pluralGenitive:"за {{count}} хвилин"}}),aboutXHours:$o({regular:{singularNominative:"близько {{count}} години",singularGenitive:"близько {{count}} годин",pluralGenitive:"близько {{count}} годин"},future:{singularNominative:"приблизно за {{count}} годину",singularGenitive:"приблизно за {{count}} години",pluralGenitive:"приблизно за {{count}} годин"}}),xHours:$o({regular:{singularNominative:"{{count}} годину",singularGenitive:"{{count}} години",pluralGenitive:"{{count}} годин"}}),xDays:$o({regular:{singularNominative:"{{count}} день",singularGenitive:"{{count}} днi",pluralGenitive:"{{count}} днів"}}),aboutXWeeks:$o({regular:{singularNominative:"близько {{count}} тижня",singularGenitive:"близько {{count}} тижнів",pluralGenitive:"близько {{count}} тижнів"},future:{singularNominative:"приблизно за {{count}} тиждень",singularGenitive:"приблизно за {{count}} тижні",pluralGenitive:"приблизно за {{count}} тижнів"}}),xWeeks:$o({regular:{singularNominative:"{{count}} тиждень",singularGenitive:"{{count}} тижні",pluralGenitive:"{{count}} тижнів"}}),aboutXMonths:$o({regular:{singularNominative:"близько {{count}} місяця",singularGenitive:"близько {{count}} місяців",pluralGenitive:"близько {{count}} місяців"},future:{singularNominative:"приблизно за {{count}} місяць",singularGenitive:"приблизно за {{count}} місяці",pluralGenitive:"приблизно за {{count}} місяців"}}),xMonths:$o({regular:{singularNominative:"{{count}} місяць",singularGenitive:"{{count}} місяці",pluralGenitive:"{{count}} місяців"}}),aboutXYears:$o({regular:{singularNominative:"близько {{count}} року",singularGenitive:"близько {{count}} років",pluralGenitive:"близько {{count}} років"},future:{singularNominative:"приблизно за {{count}} рік",singularGenitive:"приблизно за {{count}} роки",pluralGenitive:"приблизно за {{count}} років"}}),xYears:$o({regular:{singularNominative:"{{count}} рік",singularGenitive:"{{count}} роки",pluralGenitive:"{{count}} років"}}),overXYears:$o({regular:{singularNominative:"більше {{count}} року",singularGenitive:"більше {{count}} років",pluralGenitive:"більше {{count}} років"},future:{singularNominative:"більше, ніж за {{count}} рік",singularGenitive:"більше, ніж за {{count}} роки",pluralGenitive:"більше, ніж за {{count}} років"}}),almostXYears:$o({regular:{singularNominative:"майже {{count}} рік",singularGenitive:"майже {{count}} роки",pluralGenitive:"майже {{count}} років"},future:{singularNominative:"майже за {{count}} рік",singularGenitive:"майже за {{count}} роки",pluralGenitive:"майже за {{count}} років"}})},ZSt=function(t,n,r){return r=r||{},JSt[t](n,r)},e1t={full:"EEEE, do MMMM y 'р.'",long:"do MMMM y 'р.'",medium:"d MMM y 'р.'",short:"dd.MM.y"},t1t={full:"H:mm:ss zzzz",long:"H:mm:ss z",medium:"H:mm:ss",short:"H:mm"},n1t={full:"{{date}} 'о' {{time}}",long:"{{date}} 'о' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},r1t={date:Ne({formats:e1t,defaultWidth:"full"}),time:Ne({formats:t1t,defaultWidth:"full"}),dateTime:Ne({formats:n1t,defaultWidth:"full"})},rU=["неділю","понеділок","вівторок","середу","четвер","п’ятницю","суботу"];function a1t(e){var t=rU[e];switch(e){case 0:case 3:case 5:case 6:return"'у минулу "+t+" о' p";case 1:case 2:case 4:return"'у минулий "+t+" о' p"}}function mie(e){var t=rU[e];return"'у "+t+" о' p"}function i1t(e){var t=rU[e];switch(e){case 0:case 3:case 5:case 6:return"'у наступну "+t+" о' p";case 1:case 2:case 4:return"'у наступний "+t+" о' p"}}var o1t=function(t,n,r){var a=Re(t),i=a.getUTCDay();return Ei(a,n,r)?mie(i):a1t(i)},s1t=function(t,n,r){var a=Re(t),i=a.getUTCDay();return Ei(a,n,r)?mie(i):i1t(i)},l1t={lastWeek:o1t,yesterday:"'вчора о' p",today:"'сьогодні о' p",tomorrow:"'завтра о' p",nextWeek:s1t,other:"P"},u1t=function(t,n,r,a){var i=l1t[t];return typeof i=="function"?i(n,r,a):i},c1t={narrow:["до н.е.","н.е."],abbreviated:["до н. е.","н. е."],wide:["до нашої ери","нашої ери"]},d1t={narrow:["1","2","3","4"],abbreviated:["1-й кв.","2-й кв.","3-й кв.","4-й кв."],wide:["1-й квартал","2-й квартал","3-й квартал","4-й квартал"]},f1t={narrow:["С","Л","Б","К","Т","Ч","Л","С","В","Ж","Л","Г"],abbreviated:["січ.","лют.","берез.","квіт.","трав.","черв.","лип.","серп.","верес.","жовт.","листоп.","груд."],wide:["січень","лютий","березень","квітень","травень","червень","липень","серпень","вересень","жовтень","листопад","грудень"]},p1t={narrow:["С","Л","Б","К","Т","Ч","Л","С","В","Ж","Л","Г"],abbreviated:["січ.","лют.","берез.","квіт.","трав.","черв.","лип.","серп.","верес.","жовт.","листоп.","груд."],wide:["січня","лютого","березня","квітня","травня","червня","липня","серпня","вересня","жовтня","листопада","грудня"]},h1t={narrow:["Н","П","В","С","Ч","П","С"],short:["нд","пн","вт","ср","чт","пт","сб"],abbreviated:["нед","пон","вів","сер","чтв","птн","суб"],wide:["неділя","понеділок","вівторок","середа","четвер","п’ятниця","субота"]},m1t={narrow:{am:"ДП",pm:"ПП",midnight:"півн.",noon:"пол.",morning:"ранок",afternoon:"день",evening:"веч.",night:"ніч"},abbreviated:{am:"ДП",pm:"ПП",midnight:"півн.",noon:"пол.",morning:"ранок",afternoon:"день",evening:"веч.",night:"ніч"},wide:{am:"ДП",pm:"ПП",midnight:"північ",noon:"полудень",morning:"ранок",afternoon:"день",evening:"вечір",night:"ніч"}},g1t={narrow:{am:"ДП",pm:"ПП",midnight:"півн.",noon:"пол.",morning:"ранку",afternoon:"дня",evening:"веч.",night:"ночі"},abbreviated:{am:"ДП",pm:"ПП",midnight:"півн.",noon:"пол.",morning:"ранку",afternoon:"дня",evening:"веч.",night:"ночі"},wide:{am:"ДП",pm:"ПП",midnight:"північ",noon:"полудень",morning:"ранку",afternoon:"дня",evening:"веч.",night:"ночі"}},v1t=function(t,n){var r=String(n==null?void 0:n.unit),a=Number(t),i;return r==="date"?a===3||a===23?i="-є":i="-е":r==="minute"||r==="second"||r==="hour"?i="-а":i="-й",a+i},y1t={ordinalNumber:v1t,era:oe({values:c1t,defaultWidth:"wide"}),quarter:oe({values:d1t,defaultWidth:"wide",argumentCallback:function(t){return t-1}}),month:oe({values:f1t,defaultWidth:"wide",formattingValues:p1t,defaultFormattingWidth:"wide"}),day:oe({values:h1t,defaultWidth:"wide"}),dayPeriod:oe({values:m1t,defaultWidth:"any",formattingValues:g1t,defaultFormattingWidth:"wide"})},b1t=/^(\d+)(-?(е|й|є|а|я))?/i,w1t=/\d+/i,S1t={narrow:/^((до )?н\.?\s?е\.?)/i,abbreviated:/^((до )?н\.?\s?е\.?)/i,wide:/^(до нашої ери|нашої ери|наша ера)/i},E1t={any:[/^д/i,/^н/i]},T1t={narrow:/^[1234]/i,abbreviated:/^[1234](-?[иі]?й?)? кв.?/i,wide:/^[1234](-?[иі]?й?)? квартал/i},C1t={any:[/1/i,/2/i,/3/i,/4/i]},k1t={narrow:/^[слбктчвжг]/i,abbreviated:/^(січ|лют|бер(ез)?|квіт|трав|черв|лип|серп|вер(ес)?|жовт|лис(топ)?|груд)\.?/i,wide:/^(січень|січня|лютий|лютого|березень|березня|квітень|квітня|травень|травня|червня|червень|липень|липня|серпень|серпня|вересень|вересня|жовтень|жовтня|листопад[а]?|грудень|грудня)/i},x1t={narrow:[/^с/i,/^л/i,/^б/i,/^к/i,/^т/i,/^ч/i,/^л/i,/^с/i,/^в/i,/^ж/i,/^л/i,/^г/i],any:[/^сі/i,/^лю/i,/^б/i,/^к/i,/^т/i,/^ч/i,/^лип/i,/^се/i,/^в/i,/^ж/i,/^лис/i,/^г/i]},_1t={narrow:/^[нпвсч]/i,short:/^(нд|пн|вт|ср|чт|пт|сб)\.?/i,abbreviated:/^(нед|пон|вів|сер|че?тв|птн?|суб)\.?/i,wide:/^(неділ[яі]|понеділ[ок][ка]|вівтор[ок][ка]|серед[аи]|четвер(га)?|п\W*?ятниц[яі]|субот[аи])/i},O1t={narrow:[/^н/i,/^п/i,/^в/i,/^с/i,/^ч/i,/^п/i,/^с/i],any:[/^н/i,/^п[он]/i,/^в/i,/^с[ер]/i,/^ч/i,/^п\W*?[ят]/i,/^с[уб]/i]},R1t={narrow:/^([дп]п|півн\.?|пол\.?|ранок|ранку|день|дня|веч\.?|ніч|ночі)/i,abbreviated:/^([дп]п|півн\.?|пол\.?|ранок|ранку|день|дня|веч\.?|ніч|ночі)/i,wide:/^([дп]п|північ|полудень|ранок|ранку|день|дня|вечір|вечора|ніч|ночі)/i},P1t={any:{am:/^дп/i,pm:/^пп/i,midnight:/^півн/i,noon:/^пол/i,morning:/^р/i,afternoon:/^д[ен]/i,evening:/^в/i,night:/^н/i}},A1t={ordinalNumber:Xt({matchPattern:b1t,parsePattern:w1t,valueCallback:function(t){return parseInt(t,10)}}),era:se({matchPatterns:S1t,defaultMatchWidth:"wide",parsePatterns:E1t,defaultParseWidth:"any"}),quarter:se({matchPatterns:T1t,defaultMatchWidth:"wide",parsePatterns:C1t,defaultParseWidth:"any",valueCallback:function(t){return t+1}}),month:se({matchPatterns:k1t,defaultMatchWidth:"wide",parsePatterns:x1t,defaultParseWidth:"any"}),day:se({matchPatterns:_1t,defaultMatchWidth:"wide",parsePatterns:O1t,defaultParseWidth:"any"}),dayPeriod:se({matchPatterns:R1t,defaultMatchWidth:"wide",parsePatterns:P1t,defaultParseWidth:"any"})},N1t={code:"uk",formatDistance:ZSt,formatLong:r1t,formatRelative:u1t,localize:y1t,match:A1t,options:{weekStartsOn:1,firstWeekContainsDate:1}};const M1t=Object.freeze(Object.defineProperty({__proto__:null,default:N1t},Symbol.toStringTag,{value:"Module"})),I1t=jt(M1t);var D1t={lessThanXSeconds:{one:"dưới 1 giây",other:"dưới {{count}} giây"},xSeconds:{one:"1 giây",other:"{{count}} giây"},halfAMinute:"nửa phút",lessThanXMinutes:{one:"dưới 1 phút",other:"dưới {{count}} phút"},xMinutes:{one:"1 phút",other:"{{count}} phút"},aboutXHours:{one:"khoảng 1 giờ",other:"khoảng {{count}} giờ"},xHours:{one:"1 giờ",other:"{{count}} giờ"},xDays:{one:"1 ngày",other:"{{count}} ngày"},aboutXWeeks:{one:"khoảng 1 tuần",other:"khoảng {{count}} tuần"},xWeeks:{one:"1 tuần",other:"{{count}} tuần"},aboutXMonths:{one:"khoảng 1 tháng",other:"khoảng {{count}} tháng"},xMonths:{one:"1 tháng",other:"{{count}} tháng"},aboutXYears:{one:"khoảng 1 năm",other:"khoảng {{count}} năm"},xYears:{one:"1 năm",other:"{{count}} năm"},overXYears:{one:"hơn 1 năm",other:"hơn {{count}} năm"},almostXYears:{one:"gần 1 năm",other:"gần {{count}} năm"}},$1t=function(t,n,r){var a,i=D1t[t];return typeof i=="string"?a=i:n===1?a=i.one:a=i.other.replace("{{count}}",String(n)),r!=null&&r.addSuffix?r.comparison&&r.comparison>0?a+" nữa":a+" trước":a},L1t={full:"EEEE, 'ngày' d MMMM 'năm' y",long:"'ngày' d MMMM 'năm' y",medium:"d MMM 'năm' y",short:"dd/MM/y"},F1t={full:"HH:mm:ss zzzz",long:"HH:mm:ss z",medium:"HH:mm:ss",short:"HH:mm"},j1t={full:"{{date}} {{time}}",long:"{{date}} {{time}}",medium:"{{date}} {{time}}",short:"{{date}} {{time}}"},U1t={date:Ne({formats:L1t,defaultWidth:"full"}),time:Ne({formats:F1t,defaultWidth:"full"}),dateTime:Ne({formats:j1t,defaultWidth:"full"})},B1t={lastWeek:"eeee 'tuần trước vào lúc' p",yesterday:"'hôm qua vào lúc' p",today:"'hôm nay vào lúc' p",tomorrow:"'ngày mai vào lúc' p",nextWeek:"eeee 'tới vào lúc' p",other:"P"},W1t=function(t,n,r,a){return B1t[t]},z1t={narrow:["TCN","SCN"],abbreviated:["trước CN","sau CN"],wide:["trước Công Nguyên","sau Công Nguyên"]},q1t={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["Quý 1","Quý 2","Quý 3","Quý 4"]},H1t={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["quý I","quý II","quý III","quý IV"]},V1t={narrow:["1","2","3","4","5","6","7","8","9","10","11","12"],abbreviated:["Thg 1","Thg 2","Thg 3","Thg 4","Thg 5","Thg 6","Thg 7","Thg 8","Thg 9","Thg 10","Thg 11","Thg 12"],wide:["Tháng Một","Tháng Hai","Tháng Ba","Tháng Tư","Tháng Năm","Tháng Sáu","Tháng Bảy","Tháng Tám","Tháng Chín","Tháng Mười","Tháng Mười Một","Tháng Mười Hai"]},G1t={narrow:["01","02","03","04","05","06","07","08","09","10","11","12"],abbreviated:["thg 1","thg 2","thg 3","thg 4","thg 5","thg 6","thg 7","thg 8","thg 9","thg 10","thg 11","thg 12"],wide:["tháng 01","tháng 02","tháng 03","tháng 04","tháng 05","tháng 06","tháng 07","tháng 08","tháng 09","tháng 10","tháng 11","tháng 12"]},Y1t={narrow:["CN","T2","T3","T4","T5","T6","T7"],short:["CN","Th 2","Th 3","Th 4","Th 5","Th 6","Th 7"],abbreviated:["CN","Thứ 2","Thứ 3","Thứ 4","Thứ 5","Thứ 6","Thứ 7"],wide:["Chủ Nhật","Thứ Hai","Thứ Ba","Thứ Tư","Thứ Năm","Thứ Sáu","Thứ Bảy"]},K1t={narrow:{am:"am",pm:"pm",midnight:"nửa đêm",noon:"tr",morning:"sg",afternoon:"ch",evening:"tối",night:"đêm"},abbreviated:{am:"AM",pm:"PM",midnight:"nửa đêm",noon:"trưa",morning:"sáng",afternoon:"chiều",evening:"tối",night:"đêm"},wide:{am:"SA",pm:"CH",midnight:"nửa đêm",noon:"trưa",morning:"sáng",afternoon:"chiều",evening:"tối",night:"đêm"}},X1t={narrow:{am:"am",pm:"pm",midnight:"nửa đêm",noon:"tr",morning:"sg",afternoon:"ch",evening:"tối",night:"đêm"},abbreviated:{am:"AM",pm:"PM",midnight:"nửa đêm",noon:"trưa",morning:"sáng",afternoon:"chiều",evening:"tối",night:"đêm"},wide:{am:"SA",pm:"CH",midnight:"nửa đêm",noon:"giữa trưa",morning:"vào buổi sáng",afternoon:"vào buổi chiều",evening:"vào buổi tối",night:"vào ban đêm"}},Q1t=function(t,n){var r=Number(t),a=n==null?void 0:n.unit;if(a==="quarter")switch(r){case 1:return"I";case 2:return"II";case 3:return"III";case 4:return"IV"}else if(a==="day")switch(r){case 1:return"thứ 2";case 2:return"thứ 3";case 3:return"thứ 4";case 4:return"thứ 5";case 5:return"thứ 6";case 6:return"thứ 7";case 7:return"chủ nhật"}else{if(a==="week")return r===1?"thứ nhất":"thứ "+r;if(a==="dayOfYear")return r===1?"đầu tiên":"thứ "+r}return String(r)},J1t={ordinalNumber:Q1t,era:oe({values:z1t,defaultWidth:"wide"}),quarter:oe({values:q1t,defaultWidth:"wide",formattingValues:H1t,defaultFormattingWidth:"wide",argumentCallback:function(t){return t-1}}),month:oe({values:V1t,defaultWidth:"wide",formattingValues:G1t,defaultFormattingWidth:"wide"}),day:oe({values:Y1t,defaultWidth:"wide"}),dayPeriod:oe({values:K1t,defaultWidth:"wide",formattingValues:X1t,defaultFormattingWidth:"wide"})},Z1t=/^(\d+)/i,eEt=/\d+/i,tEt={narrow:/^(tcn|scn)/i,abbreviated:/^(trước CN|sau CN)/i,wide:/^(trước Công Nguyên|sau Công Nguyên)/i},nEt={any:[/^t/i,/^s/i]},rEt={narrow:/^([1234]|i{1,3}v?)/i,abbreviated:/^q([1234]|i{1,3}v?)/i,wide:/^quý ([1234]|i{1,3}v?)/i},aEt={any:[/(1|i)$/i,/(2|ii)$/i,/(3|iii)$/i,/(4|iv)$/i]},iEt={narrow:/^(0?[2-9]|10|11|12|0?1)/i,abbreviated:/^thg[ _]?(0?[1-9](?!\d)|10|11|12)/i,wide:/^tháng ?(Một|Hai|Ba|Tư|Năm|Sáu|Bảy|Tám|Chín|Mười|Mười ?Một|Mười ?Hai|0?[1-9](?!\d)|10|11|12)/i},oEt={narrow:[/0?1$/i,/0?2/i,/3/,/4/,/5/,/6/,/7/,/8/,/9/,/10/,/11/,/12/],abbreviated:[/^thg[ _]?0?1(?!\d)/i,/^thg[ _]?0?2/i,/^thg[ _]?0?3/i,/^thg[ _]?0?4/i,/^thg[ _]?0?5/i,/^thg[ _]?0?6/i,/^thg[ _]?0?7/i,/^thg[ _]?0?8/i,/^thg[ _]?0?9/i,/^thg[ _]?10/i,/^thg[ _]?11/i,/^thg[ _]?12/i],wide:[/^tháng ?(Một|0?1(?!\d))/i,/^tháng ?(Hai|0?2)/i,/^tháng ?(Ba|0?3)/i,/^tháng ?(Tư|0?4)/i,/^tháng ?(Năm|0?5)/i,/^tháng ?(Sáu|0?6)/i,/^tháng ?(Bảy|0?7)/i,/^tháng ?(Tám|0?8)/i,/^tháng ?(Chín|0?9)/i,/^tháng ?(Mười|10)/i,/^tháng ?(Mười ?Một|11)/i,/^tháng ?(Mười ?Hai|12)/i]},sEt={narrow:/^(CN|T2|T3|T4|T5|T6|T7)/i,short:/^(CN|Th ?2|Th ?3|Th ?4|Th ?5|Th ?6|Th ?7)/i,abbreviated:/^(CN|Th ?2|Th ?3|Th ?4|Th ?5|Th ?6|Th ?7)/i,wide:/^(Chủ ?Nhật|Chúa ?Nhật|thứ ?Hai|thứ ?Ba|thứ ?Tư|thứ ?Năm|thứ ?Sáu|thứ ?Bảy)/i},lEt={narrow:[/CN/i,/2/i,/3/i,/4/i,/5/i,/6/i,/7/i],short:[/CN/i,/2/i,/3/i,/4/i,/5/i,/6/i,/7/i],abbreviated:[/CN/i,/2/i,/3/i,/4/i,/5/i,/6/i,/7/i],wide:[/(Chủ|Chúa) ?Nhật/i,/Hai/i,/Ba/i,/Tư/i,/Năm/i,/Sáu/i,/Bảy/i]},uEt={narrow:/^(a|p|nửa đêm|trưa|(giờ) (sáng|chiều|tối|đêm))/i,abbreviated:/^(am|pm|nửa đêm|trưa|(giờ) (sáng|chiều|tối|đêm))/i,wide:/^(ch[^i]*|sa|nửa đêm|trưa|(giờ) (sáng|chiều|tối|đêm))/i},cEt={any:{am:/^(a|sa)/i,pm:/^(p|ch[^i]*)/i,midnight:/nửa đêm/i,noon:/trưa/i,morning:/sáng/i,afternoon:/chiều/i,evening:/tối/i,night:/^đêm/i}},dEt={ordinalNumber:Xt({matchPattern:Z1t,parsePattern:eEt,valueCallback:function(t){return parseInt(t,10)}}),era:se({matchPatterns:tEt,defaultMatchWidth:"wide",parsePatterns:nEt,defaultParseWidth:"any"}),quarter:se({matchPatterns:rEt,defaultMatchWidth:"wide",parsePatterns:aEt,defaultParseWidth:"any",valueCallback:function(t){return t+1}}),month:se({matchPatterns:iEt,defaultMatchWidth:"wide",parsePatterns:oEt,defaultParseWidth:"wide"}),day:se({matchPatterns:sEt,defaultMatchWidth:"wide",parsePatterns:lEt,defaultParseWidth:"wide"}),dayPeriod:se({matchPatterns:uEt,defaultMatchWidth:"wide",parsePatterns:cEt,defaultParseWidth:"any"})},fEt={code:"vi",formatDistance:$1t,formatLong:U1t,formatRelative:W1t,localize:J1t,match:dEt,options:{weekStartsOn:1,firstWeekContainsDate:1}};const pEt=Object.freeze(Object.defineProperty({__proto__:null,default:fEt},Symbol.toStringTag,{value:"Module"})),hEt=jt(pEt);var mEt={lessThanXSeconds:{one:"不到 1 秒",other:"不到 {{count}} 秒"},xSeconds:{one:"1 秒",other:"{{count}} 秒"},halfAMinute:"半分钟",lessThanXMinutes:{one:"不到 1 分钟",other:"不到 {{count}} 分钟"},xMinutes:{one:"1 分钟",other:"{{count}} 分钟"},xHours:{one:"1 小时",other:"{{count}} 小时"},aboutXHours:{one:"大约 1 小时",other:"大约 {{count}} 小时"},xDays:{one:"1 天",other:"{{count}} 天"},aboutXWeeks:{one:"大约 1 个星期",other:"大约 {{count}} 个星期"},xWeeks:{one:"1 个星期",other:"{{count}} 个星期"},aboutXMonths:{one:"大约 1 个月",other:"大约 {{count}} 个月"},xMonths:{one:"1 个月",other:"{{count}} 个月"},aboutXYears:{one:"大约 1 年",other:"大约 {{count}} 年"},xYears:{one:"1 年",other:"{{count}} 年"},overXYears:{one:"超过 1 年",other:"超过 {{count}} 年"},almostXYears:{one:"将近 1 年",other:"将近 {{count}} 年"}},gEt=function(t,n,r){var a,i=mEt[t];return typeof i=="string"?a=i:n===1?a=i.one:a=i.other.replace("{{count}}",String(n)),r!=null&&r.addSuffix?r.comparison&&r.comparison>0?a+"内":a+"前":a},vEt={full:"y'年'M'月'd'日' EEEE",long:"y'年'M'月'd'日'",medium:"yyyy-MM-dd",short:"yy-MM-dd"},yEt={full:"zzzz a h:mm:ss",long:"z a h:mm:ss",medium:"a h:mm:ss",short:"a h:mm"},bEt={full:"{{date}} {{time}}",long:"{{date}} {{time}}",medium:"{{date}} {{time}}",short:"{{date}} {{time}}"},wEt={date:Ne({formats:vEt,defaultWidth:"full"}),time:Ne({formats:yEt,defaultWidth:"full"}),dateTime:Ne({formats:bEt,defaultWidth:"full"})};function _Y(e,t,n){var r="eeee p";return Ei(e,t,n)?r:e.getTime()>t.getTime()?"'下个'"+r:"'上个'"+r}var SEt={lastWeek:_Y,yesterday:"'昨天' p",today:"'今天' p",tomorrow:"'明天' p",nextWeek:_Y,other:"PP p"},EEt=function(t,n,r,a){var i=SEt[t];return typeof i=="function"?i(n,r,a):i},TEt={narrow:["前","公元"],abbreviated:["前","公元"],wide:["公元前","公元"]},CEt={narrow:["1","2","3","4"],abbreviated:["第一季","第二季","第三季","第四季"],wide:["第一季度","第二季度","第三季度","第四季度"]},kEt={narrow:["一","二","三","四","五","六","七","八","九","十","十一","十二"],abbreviated:["1月","2月","3月","4月","5月","6月","7月","8月","9月","10月","11月","12月"],wide:["一月","二月","三月","四月","五月","六月","七月","八月","九月","十月","十一月","十二月"]},xEt={narrow:["日","一","二","三","四","五","六"],short:["日","一","二","三","四","五","六"],abbreviated:["周日","周一","周二","周三","周四","周五","周六"],wide:["星期日","星期一","星期二","星期三","星期四","星期五","星期六"]},_Et={narrow:{am:"上",pm:"下",midnight:"凌晨",noon:"午",morning:"早",afternoon:"下午",evening:"晚",night:"夜"},abbreviated:{am:"上午",pm:"下午",midnight:"凌晨",noon:"中午",morning:"早晨",afternoon:"中午",evening:"晚上",night:"夜间"},wide:{am:"上午",pm:"下午",midnight:"凌晨",noon:"中午",morning:"早晨",afternoon:"中午",evening:"晚上",night:"夜间"}},OEt={narrow:{am:"上",pm:"下",midnight:"凌晨",noon:"午",morning:"早",afternoon:"下午",evening:"晚",night:"夜"},abbreviated:{am:"上午",pm:"下午",midnight:"凌晨",noon:"中午",morning:"早晨",afternoon:"中午",evening:"晚上",night:"夜间"},wide:{am:"上午",pm:"下午",midnight:"凌晨",noon:"中午",morning:"早晨",afternoon:"中午",evening:"晚上",night:"夜间"}},REt=function(t,n){var r=Number(t);switch(n==null?void 0:n.unit){case"date":return r.toString()+"日";case"hour":return r.toString()+"时";case"minute":return r.toString()+"分";case"second":return r.toString()+"秒";default:return"第 "+r.toString()}},PEt={ordinalNumber:REt,era:oe({values:TEt,defaultWidth:"wide"}),quarter:oe({values:CEt,defaultWidth:"wide",argumentCallback:function(t){return t-1}}),month:oe({values:kEt,defaultWidth:"wide"}),day:oe({values:xEt,defaultWidth:"wide"}),dayPeriod:oe({values:_Et,defaultWidth:"wide",formattingValues:OEt,defaultFormattingWidth:"wide"})},AEt=/^(第\s*)?\d+(日|时|分|秒)?/i,NEt=/\d+/i,MEt={narrow:/^(前)/i,abbreviated:/^(前)/i,wide:/^(公元前|公元)/i},IEt={any:[/^(前)/i,/^(公元)/i]},DEt={narrow:/^[1234]/i,abbreviated:/^第[一二三四]刻/i,wide:/^第[一二三四]刻钟/i},$Et={any:[/(1|一)/i,/(2|二)/i,/(3|三)/i,/(4|四)/i]},LEt={narrow:/^(一|二|三|四|五|六|七|八|九|十[二一])/i,abbreviated:/^(一|二|三|四|五|六|七|八|九|十[二一]|\d|1[12])月/i,wide:/^(一|二|三|四|五|六|七|八|九|十[二一])月/i},FEt={narrow:[/^一/i,/^二/i,/^三/i,/^四/i,/^五/i,/^六/i,/^七/i,/^八/i,/^九/i,/^十(?!(一|二))/i,/^十一/i,/^十二/i],any:[/^一|1/i,/^二|2/i,/^三|3/i,/^四|4/i,/^五|5/i,/^六|6/i,/^七|7/i,/^八|8/i,/^九|9/i,/^十(?!(一|二))|10/i,/^十一|11/i,/^十二|12/i]},jEt={narrow:/^[一二三四五六日]/i,short:/^[一二三四五六日]/i,abbreviated:/^周[一二三四五六日]/i,wide:/^星期[一二三四五六日]/i},UEt={any:[/日/i,/一/i,/二/i,/三/i,/四/i,/五/i,/六/i]},BEt={any:/^(上午?|下午?|午夜|[中正]午|早上?|下午|晚上?|凌晨|)/i},WEt={any:{am:/^上午?/i,pm:/^下午?/i,midnight:/^午夜/i,noon:/^[中正]午/i,morning:/^早上/i,afternoon:/^下午/i,evening:/^晚上?/i,night:/^凌晨/i}},zEt={ordinalNumber:Xt({matchPattern:AEt,parsePattern:NEt,valueCallback:function(t){return parseInt(t,10)}}),era:se({matchPatterns:MEt,defaultMatchWidth:"wide",parsePatterns:IEt,defaultParseWidth:"any"}),quarter:se({matchPatterns:DEt,defaultMatchWidth:"wide",parsePatterns:$Et,defaultParseWidth:"any",valueCallback:function(t){return t+1}}),month:se({matchPatterns:LEt,defaultMatchWidth:"wide",parsePatterns:FEt,defaultParseWidth:"any"}),day:se({matchPatterns:jEt,defaultMatchWidth:"wide",parsePatterns:UEt,defaultParseWidth:"any"}),dayPeriod:se({matchPatterns:BEt,defaultMatchWidth:"any",parsePatterns:WEt,defaultParseWidth:"any"})},qEt={code:"zh-CN",formatDistance:gEt,formatLong:wEt,formatRelative:EEt,localize:PEt,match:zEt,options:{weekStartsOn:1,firstWeekContainsDate:4}};const HEt=Object.freeze(Object.defineProperty({__proto__:null,default:qEt},Symbol.toStringTag,{value:"Module"})),VEt=jt(HEt);var GEt={lessThanXSeconds:{one:"少於 1 秒",other:"少於 {{count}} 秒"},xSeconds:{one:"1 秒",other:"{{count}} 秒"},halfAMinute:"半分鐘",lessThanXMinutes:{one:"少於 1 分鐘",other:"少於 {{count}} 分鐘"},xMinutes:{one:"1 分鐘",other:"{{count}} 分鐘"},xHours:{one:"1 小時",other:"{{count}} 小時"},aboutXHours:{one:"大約 1 小時",other:"大約 {{count}} 小時"},xDays:{one:"1 天",other:"{{count}} 天"},aboutXWeeks:{one:"大約 1 個星期",other:"大約 {{count}} 個星期"},xWeeks:{one:"1 個星期",other:"{{count}} 個星期"},aboutXMonths:{one:"大約 1 個月",other:"大約 {{count}} 個月"},xMonths:{one:"1 個月",other:"{{count}} 個月"},aboutXYears:{one:"大約 1 年",other:"大約 {{count}} 年"},xYears:{one:"1 年",other:"{{count}} 年"},overXYears:{one:"超過 1 年",other:"超過 {{count}} 年"},almostXYears:{one:"將近 1 年",other:"將近 {{count}} 年"}},YEt=function(t,n,r){var a,i=GEt[t];return typeof i=="string"?a=i:n===1?a=i.one:a=i.other.replace("{{count}}",String(n)),r!=null&&r.addSuffix?r.comparison&&r.comparison>0?a+"內":a+"前":a},KEt={full:"y'年'M'月'd'日' EEEE",long:"y'年'M'月'd'日'",medium:"yyyy-MM-dd",short:"yy-MM-dd"},XEt={full:"zzzz a h:mm:ss",long:"z a h:mm:ss",medium:"a h:mm:ss",short:"a h:mm"},QEt={full:"{{date}} {{time}}",long:"{{date}} {{time}}",medium:"{{date}} {{time}}",short:"{{date}} {{time}}"},JEt={date:Ne({formats:KEt,defaultWidth:"full"}),time:Ne({formats:XEt,defaultWidth:"full"}),dateTime:Ne({formats:QEt,defaultWidth:"full"})},ZEt={lastWeek:"'上個'eeee p",yesterday:"'昨天' p",today:"'今天' p",tomorrow:"'明天' p",nextWeek:"'下個'eeee p",other:"P"},eTt=function(t,n,r,a){return ZEt[t]},tTt={narrow:["前","公元"],abbreviated:["前","公元"],wide:["公元前","公元"]},nTt={narrow:["1","2","3","4"],abbreviated:["第一刻","第二刻","第三刻","第四刻"],wide:["第一刻鐘","第二刻鐘","第三刻鐘","第四刻鐘"]},rTt={narrow:["一","二","三","四","五","六","七","八","九","十","十一","十二"],abbreviated:["1月","2月","3月","4月","5月","6月","7月","8月","9月","10月","11月","12月"],wide:["一月","二月","三月","四月","五月","六月","七月","八月","九月","十月","十一月","十二月"]},aTt={narrow:["日","一","二","三","四","五","六"],short:["日","一","二","三","四","五","六"],abbreviated:["週日","週一","週二","週三","週四","週五","週六"],wide:["星期日","星期一","星期二","星期三","星期四","星期五","星期六"]},iTt={narrow:{am:"上",pm:"下",midnight:"凌晨",noon:"午",morning:"早",afternoon:"下午",evening:"晚",night:"夜"},abbreviated:{am:"上午",pm:"下午",midnight:"凌晨",noon:"中午",morning:"早晨",afternoon:"中午",evening:"晚上",night:"夜間"},wide:{am:"上午",pm:"下午",midnight:"凌晨",noon:"中午",morning:"早晨",afternoon:"中午",evening:"晚上",night:"夜間"}},oTt={narrow:{am:"上",pm:"下",midnight:"凌晨",noon:"午",morning:"早",afternoon:"下午",evening:"晚",night:"夜"},abbreviated:{am:"上午",pm:"下午",midnight:"凌晨",noon:"中午",morning:"早晨",afternoon:"中午",evening:"晚上",night:"夜間"},wide:{am:"上午",pm:"下午",midnight:"凌晨",noon:"中午",morning:"早晨",afternoon:"中午",evening:"晚上",night:"夜間"}},sTt=function(t,n){var r=Number(t);switch(n==null?void 0:n.unit){case"date":return r+"日";case"hour":return r+"時";case"minute":return r+"分";case"second":return r+"秒";default:return"第 "+r}},lTt={ordinalNumber:sTt,era:oe({values:tTt,defaultWidth:"wide"}),quarter:oe({values:nTt,defaultWidth:"wide",argumentCallback:function(t){return t-1}}),month:oe({values:rTt,defaultWidth:"wide"}),day:oe({values:aTt,defaultWidth:"wide"}),dayPeriod:oe({values:iTt,defaultWidth:"wide",formattingValues:oTt,defaultFormattingWidth:"wide"})},uTt=/^(第\s*)?\d+(日|時|分|秒)?/i,cTt=/\d+/i,dTt={narrow:/^(前)/i,abbreviated:/^(前)/i,wide:/^(公元前|公元)/i},fTt={any:[/^(前)/i,/^(公元)/i]},pTt={narrow:/^[1234]/i,abbreviated:/^第[一二三四]刻/i,wide:/^第[一二三四]刻鐘/i},hTt={any:[/(1|一)/i,/(2|二)/i,/(3|三)/i,/(4|四)/i]},mTt={narrow:/^(一|二|三|四|五|六|七|八|九|十[二一])/i,abbreviated:/^(一|二|三|四|五|六|七|八|九|十[二一]|\d|1[12])月/i,wide:/^(一|二|三|四|五|六|七|八|九|十[二一])月/i},gTt={narrow:[/^一/i,/^二/i,/^三/i,/^四/i,/^五/i,/^六/i,/^七/i,/^八/i,/^九/i,/^十(?!(一|二))/i,/^十一/i,/^十二/i],any:[/^一|1/i,/^二|2/i,/^三|3/i,/^四|4/i,/^五|5/i,/^六|6/i,/^七|7/i,/^八|8/i,/^九|9/i,/^十(?!(一|二))|10/i,/^十一|11/i,/^十二|12/i]},vTt={narrow:/^[一二三四五六日]/i,short:/^[一二三四五六日]/i,abbreviated:/^週[一二三四五六日]/i,wide:/^星期[一二三四五六日]/i},yTt={any:[/日/i,/一/i,/二/i,/三/i,/四/i,/五/i,/六/i]},bTt={any:/^(上午?|下午?|午夜|[中正]午|早上?|下午|晚上?|凌晨)/i},wTt={any:{am:/^上午?/i,pm:/^下午?/i,midnight:/^午夜/i,noon:/^[中正]午/i,morning:/^早上/i,afternoon:/^下午/i,evening:/^晚上?/i,night:/^凌晨/i}},STt={ordinalNumber:Xt({matchPattern:uTt,parsePattern:cTt,valueCallback:function(t){return parseInt(t,10)}}),era:se({matchPatterns:dTt,defaultMatchWidth:"wide",parsePatterns:fTt,defaultParseWidth:"any"}),quarter:se({matchPatterns:pTt,defaultMatchWidth:"wide",parsePatterns:hTt,defaultParseWidth:"any",valueCallback:function(t){return t+1}}),month:se({matchPatterns:mTt,defaultMatchWidth:"wide",parsePatterns:gTt,defaultParseWidth:"any"}),day:se({matchPatterns:vTt,defaultMatchWidth:"wide",parsePatterns:yTt,defaultParseWidth:"any"}),dayPeriod:se({matchPatterns:bTt,defaultMatchWidth:"any",parsePatterns:wTt,defaultParseWidth:"any"})},ETt={code:"zh-TW",formatDistance:YEt,formatLong:JEt,formatRelative:eTt,localize:lTt,match:STt,options:{weekStartsOn:1,firstWeekContainsDate:4}};const TTt=Object.freeze(Object.defineProperty({__proto__:null,default:ETt},Symbol.toStringTag,{value:"Module"})),CTt=jt(TTt);var OY;function kTt(){return OY||(OY=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"af",{enumerable:!0,get:function(){return t.default}}),Object.defineProperty(e,"arDZ",{enumerable:!0,get:function(){return n.default}}),Object.defineProperty(e,"arSA",{enumerable:!0,get:function(){return r.default}}),Object.defineProperty(e,"be",{enumerable:!0,get:function(){return a.default}}),Object.defineProperty(e,"bg",{enumerable:!0,get:function(){return i.default}}),Object.defineProperty(e,"bn",{enumerable:!0,get:function(){return o.default}}),Object.defineProperty(e,"ca",{enumerable:!0,get:function(){return l.default}}),Object.defineProperty(e,"cs",{enumerable:!0,get:function(){return u.default}}),Object.defineProperty(e,"cy",{enumerable:!0,get:function(){return d.default}}),Object.defineProperty(e,"da",{enumerable:!0,get:function(){return f.default}}),Object.defineProperty(e,"de",{enumerable:!0,get:function(){return g.default}}),Object.defineProperty(e,"el",{enumerable:!0,get:function(){return y.default}}),Object.defineProperty(e,"enAU",{enumerable:!0,get:function(){return h.default}}),Object.defineProperty(e,"enCA",{enumerable:!0,get:function(){return v.default}}),Object.defineProperty(e,"enGB",{enumerable:!0,get:function(){return E.default}}),Object.defineProperty(e,"enUS",{enumerable:!0,get:function(){return T.default}}),Object.defineProperty(e,"eo",{enumerable:!0,get:function(){return C.default}}),Object.defineProperty(e,"es",{enumerable:!0,get:function(){return k.default}}),Object.defineProperty(e,"et",{enumerable:!0,get:function(){return _.default}}),Object.defineProperty(e,"faIR",{enumerable:!0,get:function(){return A.default}}),Object.defineProperty(e,"fi",{enumerable:!0,get:function(){return P.default}}),Object.defineProperty(e,"fr",{enumerable:!0,get:function(){return N.default}}),Object.defineProperty(e,"frCA",{enumerable:!0,get:function(){return I.default}}),Object.defineProperty(e,"gl",{enumerable:!0,get:function(){return L.default}}),Object.defineProperty(e,"gu",{enumerable:!0,get:function(){return j.default}}),Object.defineProperty(e,"he",{enumerable:!0,get:function(){return z.default}}),Object.defineProperty(e,"hi",{enumerable:!0,get:function(){return Q.default}}),Object.defineProperty(e,"hr",{enumerable:!0,get:function(){return ue.default}}),Object.defineProperty(e,"hu",{enumerable:!0,get:function(){return re.default}}),Object.defineProperty(e,"hy",{enumerable:!0,get:function(){return me.default}}),Object.defineProperty(e,"id",{enumerable:!0,get:function(){return ge.default}}),Object.defineProperty(e,"is",{enumerable:!0,get:function(){return W.default}}),Object.defineProperty(e,"it",{enumerable:!0,get:function(){return G.default}}),Object.defineProperty(e,"ja",{enumerable:!0,get:function(){return q.default}}),Object.defineProperty(e,"ka",{enumerable:!0,get:function(){return ce.default}}),Object.defineProperty(e,"kk",{enumerable:!0,get:function(){return H.default}}),Object.defineProperty(e,"ko",{enumerable:!0,get:function(){return K.default}}),Object.defineProperty(e,"lt",{enumerable:!0,get:function(){return ae.default}}),Object.defineProperty(e,"lv",{enumerable:!0,get:function(){return J.default}}),Object.defineProperty(e,"ms",{enumerable:!0,get:function(){return ee.default}}),Object.defineProperty(e,"nb",{enumerable:!0,get:function(){return Z.default}}),Object.defineProperty(e,"nl",{enumerable:!0,get:function(){return le.default}}),Object.defineProperty(e,"nn",{enumerable:!0,get:function(){return ke.default}}),Object.defineProperty(e,"pl",{enumerable:!0,get:function(){return fe.default}}),Object.defineProperty(e,"pt",{enumerable:!0,get:function(){return xe.default}}),Object.defineProperty(e,"ptBR",{enumerable:!0,get:function(){return Ie.default}}),Object.defineProperty(e,"ro",{enumerable:!0,get:function(){return qe.default}}),Object.defineProperty(e,"ru",{enumerable:!0,get:function(){return tt.default}}),Object.defineProperty(e,"sk",{enumerable:!0,get:function(){return Ge.default}}),Object.defineProperty(e,"sl",{enumerable:!0,get:function(){return rt.default}}),Object.defineProperty(e,"sr",{enumerable:!0,get:function(){return St.default}}),Object.defineProperty(e,"srLatn",{enumerable:!0,get:function(){return kt.default}}),Object.defineProperty(e,"sv",{enumerable:!0,get:function(){return xt.default}}),Object.defineProperty(e,"ta",{enumerable:!0,get:function(){return Rt.default}}),Object.defineProperty(e,"te",{enumerable:!0,get:function(){return cn.default}}),Object.defineProperty(e,"th",{enumerable:!0,get:function(){return qt.default}}),Object.defineProperty(e,"tr",{enumerable:!0,get:function(){return Wt.default}}),Object.defineProperty(e,"ug",{enumerable:!0,get:function(){return Oe.default}}),Object.defineProperty(e,"uk",{enumerable:!0,get:function(){return dt.default}}),Object.defineProperty(e,"vi",{enumerable:!0,get:function(){return ft.default}}),Object.defineProperty(e,"zhCN",{enumerable:!0,get:function(){return ut.default}}),Object.defineProperty(e,"zhTW",{enumerable:!0,get:function(){return Nt.default}});var t=U(FHe),n=U(g7e),r=U(Y7e),a=U(NVe),i=U(mGe),o=U(KGe),l=U(OYe),u=U(lKe),d=U(UKe),f=U(yXe),g=U(KXe),y=U(_Qe),h=U(IQe),v=U(zQe),E=U(XQe),T=U(eie),C=U(_Je),k=U(oZe),_=U(DZe),A=U(het),P=U(Get),N=U(wtt),I=U(_tt),L=U(ont),j=U(Fnt),z=U(vrt),Q=U(Xrt),ue=U(Rat),re=U(cit),me=U(Wit),ge=U(wot),W=U(Jot),G=U(Nst),q=U(clt),ce=U(Wlt),H=U(Tut),K=U(tct),ae=U($ct),J=U(vdt),ee=U(Kdt),Z=U(xft),le=U(rpt),ke=U(Dpt),fe=U(wht),xe=U(Jht),Ie=U(Pmt),qe=U(lgt),tt=U(zgt),Ge=U(_vt),rt=U(syt),St=U(Uyt),kt=U(bbt),xt=U(Jbt),Rt=U(A0t),cn=U(lwt),qt=U(Uwt),Wt=U(ySt),Oe=U(XSt),dt=U(I1t),ft=U(hEt),ut=U(VEt),Nt=U(CTt);function U(D){return D&&D.__esModule?D:{default:D}}})(oL)),oL}var xTt=kTt();const gie=e=>{const{placeholder:t,label:n,getInputRef:r,secureTextEntry:a,Icon:i,onChange:o,errorMessage:l,type:u,focused:d=!1,autoFocus:f,...g}=e,[y,h]=R.useState(!1),v=R.useRef(),E=R.useCallback(()=>{var T;(T=v.current)==null||T.focus()},[v.current]);return w.jsx(df,{focused:y,onClick:E,...e,children:w.jsx("div",{children:w.jsx(oHe.DateRangePicker,{locale:xTt.enUS,date:e.value,months:2,showSelectionPreview:!0,direction:"horizontal",moveRangeOnFirstSelection:!1,ranges:[{...e.value||{},key:"selection"}],onChange:T=>{var C;(C=e.onChange)==null||C.call(e,T.selection)}})})})},_Tt=e=>{var a,i;const t=o=>o?new Date(o.getFullYear(),o.getMonth(),o.getDate()):void 0,n={startDate:t(new Date((a=e.value)==null?void 0:a.startDate)),endDate:t(new Date((i=e.value)==null?void 0:i.endDate))},r=o=>{e.onChange({startDate:t(o.startDate),endDate:t(o.endDate)})};return w.jsx(gie,{...e,value:n,onChange:r})};//! moment.js //! version : 2.30.1 //! authors : Tim Wood, Iskren Chernev, Moment.js contributors //! license : MIT //! momentjs.com -var qae;function Ot(){return qae.apply(null,arguments)}function KEt(e){qae=e}function _u(e){return e instanceof Array||Object.prototype.toString.call(e)==="[object Array]"}function Pv(e){return e!=null&&Object.prototype.toString.call(e)==="[object Object]"}function gr(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function P4(e){if(Object.getOwnPropertyNames)return Object.getOwnPropertyNames(e).length===0;var t;for(t in e)if(gr(e,t))return!1;return!0}function rs(e){return e===void 0}function Jd(e){return typeof e=="number"||Object.prototype.toString.call(e)==="[object Number]"}function oT(e){return e instanceof Date||Object.prototype.toString.call(e)==="[object Date]"}function Hae(e,t){var n=[],r,a=e.length;for(r=0;r>>0,r;for(r=0;r0)for(n=0;n>>0,r;for(r=0;r0)for(n=0;n=0;return(i?n?"+":"":"-")+Math.pow(10,Math.max(0,a)).toString().substr(1)+r}var I4=/(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|N{1,5}|YYYYYY|YYYYY|YYYY|YY|y{2,4}|yo?|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g,Ok=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,j$={},n0={};function nn(e,t,n,r){var a=r;typeof r=="string"&&(a=function(){return this[r]()}),e&&(n0[e]=a),t&&(n0[t[0]]=function(){return Rc(a.apply(this,arguments),t[1],t[2])}),n&&(n0[n]=function(){return this.localeData().ordinal(a.apply(this,arguments),e)})}function eTt(e){return e.match(/\[[\s\S]/)?e.replace(/^\[|\]$/g,""):e.replace(/\\/g,"")}function tTt(e){var t=e.match(I4),n,r;for(n=0,r=t.length;n=0&&Ok.test(e);)e=e.replace(Ok,r),Ok.lastIndex=0,n-=1;return e}var nTt={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"};function rTt(e){var t=this._longDateFormat[e],n=this._longDateFormat[e.toUpperCase()];return t||!n?t:(this._longDateFormat[e]=n.match(I4).map(function(r){return r==="MMMM"||r==="MM"||r==="DD"||r==="dddd"?r.slice(1):r}).join(""),this._longDateFormat[e])}var aTt="Invalid date";function iTt(){return this._invalidDate}var oTt="%d",sTt=/\d{1,2}/;function lTt(e){return this._ordinal.replace("%d",e)}var uTt={future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",w:"a week",ww:"%d weeks",M:"a month",MM:"%d months",y:"a year",yy:"%d years"};function cTt(e,t,n,r){var a=this._relativeTime[n];return Dc(a)?a(e,t,n,r):a.replace(/%d/i,e)}function dTt(e,t){var n=this._relativeTime[e>0?"future":"past"];return Dc(n)?n(t):n.replace(/%s/i,t)}var rY={D:"date",dates:"date",date:"date",d:"day",days:"day",day:"day",e:"weekday",weekdays:"weekday",weekday:"weekday",E:"isoWeekday",isoweekdays:"isoWeekday",isoweekday:"isoWeekday",DDD:"dayOfYear",dayofyears:"dayOfYear",dayofyear:"dayOfYear",h:"hour",hours:"hour",hour:"hour",ms:"millisecond",milliseconds:"millisecond",millisecond:"millisecond",m:"minute",minutes:"minute",minute:"minute",M:"month",months:"month",month:"month",Q:"quarter",quarters:"quarter",quarter:"quarter",s:"second",seconds:"second",second:"second",gg:"weekYear",weekyears:"weekYear",weekyear:"weekYear",GG:"isoWeekYear",isoweekyears:"isoWeekYear",isoweekyear:"isoWeekYear",w:"week",weeks:"week",week:"week",W:"isoWeek",isoweeks:"isoWeek",isoweek:"isoWeek",y:"year",years:"year",year:"year"};function $l(e){return typeof e=="string"?rY[e]||rY[e.toLowerCase()]:void 0}function D4(e){var t={},n,r;for(r in e)gr(e,r)&&(n=$l(r),n&&(t[n]=e[r]));return t}var fTt={date:9,day:11,weekday:11,isoWeekday:11,dayOfYear:4,hour:13,millisecond:16,minute:14,month:8,quarter:7,second:15,weekYear:1,isoWeekYear:1,week:5,isoWeek:5,year:1};function pTt(e){var t=[],n;for(n in e)gr(e,n)&&t.push({unit:n,priority:fTt[n]});return t.sort(function(r,a){return r.priority-a.priority}),t}var Kae=/\d/,Ys=/\d\d/,Xae=/\d{3}/,$4=/\d{4}/,oO=/[+-]?\d{6}/,Xr=/\d\d?/,Qae=/\d\d\d\d?/,Jae=/\d\d\d\d\d\d?/,sO=/\d{1,3}/,L4=/\d{1,4}/,lO=/[+-]?\d{1,6}/,N0=/\d+/,uO=/[+-]?\d+/,hTt=/Z|[+-]\d\d:?\d\d/gi,cO=/Z|[+-]\d\d(?::?\d\d)?/gi,mTt=/[+-]?\d+(\.\d{1,3})?/,lT=/[0-9]{0,256}['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFF07\uFF10-\uFFEF]{1,256}|[\u0600-\u06FF\/]{1,256}(\s*?[\u0600-\u06FF]{1,256}){1,2}/i,M0=/^[1-9]\d?/,F4=/^([1-9]\d|\d)/,Jx;Jx={};function Ft(e,t,n){Jx[e]=Dc(t)?t:function(r,a){return r&&n?n:t}}function gTt(e,t){return gr(Jx,e)?Jx[e](t._strict,t._locale):new RegExp(vTt(e))}function vTt(e){return $d(e.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,function(t,n,r,a,i){return n||r||a||i}))}function $d(e){return e.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}function kl(e){return e<0?Math.ceil(e)||0:Math.floor(e)}function Kn(e){var t=+e,n=0;return t!==0&&isFinite(t)&&(n=kl(t)),n}var z3={};function Mr(e,t){var n,r=t,a;for(typeof e=="string"&&(e=[e]),Jd(t)&&(r=function(i,o){o[t]=Kn(i)}),a=e.length,n=0;n68?1900:2e3)};var Zae=I0("FullYear",!0);function STt(){return dO(this.year())}function I0(e,t){return function(n){return n!=null?(eie(this,e,n),Ot.updateOffset(this,t),this):kE(this,e)}}function kE(e,t){if(!e.isValid())return NaN;var n=e._d,r=e._isUTC;switch(t){case"Milliseconds":return r?n.getUTCMilliseconds():n.getMilliseconds();case"Seconds":return r?n.getUTCSeconds():n.getSeconds();case"Minutes":return r?n.getUTCMinutes():n.getMinutes();case"Hours":return r?n.getUTCHours():n.getHours();case"Date":return r?n.getUTCDate():n.getDate();case"Day":return r?n.getUTCDay():n.getDay();case"Month":return r?n.getUTCMonth():n.getMonth();case"FullYear":return r?n.getUTCFullYear():n.getFullYear();default:return NaN}}function eie(e,t,n){var r,a,i,o,l;if(!(!e.isValid()||isNaN(n))){switch(r=e._d,a=e._isUTC,t){case"Milliseconds":return void(a?r.setUTCMilliseconds(n):r.setMilliseconds(n));case"Seconds":return void(a?r.setUTCSeconds(n):r.setSeconds(n));case"Minutes":return void(a?r.setUTCMinutes(n):r.setMinutes(n));case"Hours":return void(a?r.setUTCHours(n):r.setHours(n));case"Date":return void(a?r.setUTCDate(n):r.setDate(n));case"FullYear":break;default:return}i=n,o=e.month(),l=e.date(),l=l===29&&o===1&&!dO(i)?28:l,a?r.setUTCFullYear(i,o,l):r.setFullYear(i,o,l)}}function ETt(e){return e=$l(e),Dc(this[e])?this[e]():this}function TTt(e,t){if(typeof e=="object"){e=D4(e);var n=pTt(e),r,a=n.length;for(r=0;r=0?(l=new Date(e+400,t,n,r,a,i,o),isFinite(l.getFullYear())&&l.setFullYear(e)):l=new Date(e,t,n,r,a,i,o),l}function xE(e){var t,n;return e<100&&e>=0?(n=Array.prototype.slice.call(arguments),n[0]=e+400,t=new Date(Date.UTC.apply(null,n)),isFinite(t.getUTCFullYear())&&t.setUTCFullYear(e)):t=new Date(Date.UTC.apply(null,arguments)),t}function Zx(e,t,n){var r=7+t-n,a=(7+xE(e,0,r).getUTCDay()-t)%7;return-a+r-1}function oie(e,t,n,r,a){var i=(7+n-r)%7,o=Zx(e,r,a),l=1+7*(t-1)+i+o,u,d;return l<=0?(u=e-1,d=IS(u)+l):l>IS(e)?(u=e+1,d=l-IS(e)):(u=e,d=l),{year:u,dayOfYear:d}}function _E(e,t,n){var r=Zx(e.year(),t,n),a=Math.floor((e.dayOfYear()-r-1)/7)+1,i,o;return a<1?(o=e.year()-1,i=a+Ld(o,t,n)):a>Ld(e.year(),t,n)?(i=a-Ld(e.year(),t,n),o=e.year()+1):(o=e.year(),i=a),{week:i,year:o}}function Ld(e,t,n){var r=Zx(e,t,n),a=Zx(e+1,t,n);return(IS(e)-r+a)/7}nn("w",["ww",2],"wo","week");nn("W",["WW",2],"Wo","isoWeek");Ft("w",Xr,M0);Ft("ww",Xr,Ys);Ft("W",Xr,M0);Ft("WW",Xr,Ys);uT(["w","ww","W","WW"],function(e,t,n,r){t[r.substr(0,1)]=Kn(e)});function $Tt(e){return _E(e,this._week.dow,this._week.doy).week}var LTt={dow:0,doy:6};function FTt(){return this._week.dow}function jTt(){return this._week.doy}function UTt(e){var t=this.localeData().week(this);return e==null?t:this.add((e-t)*7,"d")}function BTt(e){var t=_E(this,1,4).week;return e==null?t:this.add((e-t)*7,"d")}nn("d",0,"do","day");nn("dd",0,0,function(e){return this.localeData().weekdaysMin(this,e)});nn("ddd",0,0,function(e){return this.localeData().weekdaysShort(this,e)});nn("dddd",0,0,function(e){return this.localeData().weekdays(this,e)});nn("e",0,0,"weekday");nn("E",0,0,"isoWeekday");Ft("d",Xr);Ft("e",Xr);Ft("E",Xr);Ft("dd",function(e,t){return t.weekdaysMinRegex(e)});Ft("ddd",function(e,t){return t.weekdaysShortRegex(e)});Ft("dddd",function(e,t){return t.weekdaysRegex(e)});uT(["dd","ddd","dddd"],function(e,t,n,r){var a=n._locale.weekdaysParse(e,r,n._strict);a!=null?t.d=a:Mn(n).invalidWeekday=e});uT(["d","e","E"],function(e,t,n,r){t[r]=Kn(e)});function WTt(e,t){return typeof e!="string"?e:isNaN(e)?(e=t.weekdaysParse(e),typeof e=="number"?e:null):parseInt(e,10)}function zTt(e,t){return typeof e=="string"?t.weekdaysParse(e)%7||7:isNaN(e)?null:e}function U4(e,t){return e.slice(t,7).concat(e.slice(0,t))}var qTt="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),sie="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),HTt="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),VTt=lT,GTt=lT,YTt=lT;function KTt(e,t){var n=_u(this._weekdays)?this._weekdays:this._weekdays[e&&e!==!0&&this._weekdays.isFormat.test(t)?"format":"standalone"];return e===!0?U4(n,this._week.dow):e?n[e.day()]:n}function XTt(e){return e===!0?U4(this._weekdaysShort,this._week.dow):e?this._weekdaysShort[e.day()]:this._weekdaysShort}function QTt(e){return e===!0?U4(this._weekdaysMin,this._week.dow):e?this._weekdaysMin[e.day()]:this._weekdaysMin}function JTt(e,t,n){var r,a,i,o=e.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],r=0;r<7;++r)i=Ic([2e3,1]).day(r),this._minWeekdaysParse[r]=this.weekdaysMin(i,"").toLocaleLowerCase(),this._shortWeekdaysParse[r]=this.weekdaysShort(i,"").toLocaleLowerCase(),this._weekdaysParse[r]=this.weekdays(i,"").toLocaleLowerCase();return n?t==="dddd"?(a=ja.call(this._weekdaysParse,o),a!==-1?a:null):t==="ddd"?(a=ja.call(this._shortWeekdaysParse,o),a!==-1?a:null):(a=ja.call(this._minWeekdaysParse,o),a!==-1?a:null):t==="dddd"?(a=ja.call(this._weekdaysParse,o),a!==-1||(a=ja.call(this._shortWeekdaysParse,o),a!==-1)?a:(a=ja.call(this._minWeekdaysParse,o),a!==-1?a:null)):t==="ddd"?(a=ja.call(this._shortWeekdaysParse,o),a!==-1||(a=ja.call(this._weekdaysParse,o),a!==-1)?a:(a=ja.call(this._minWeekdaysParse,o),a!==-1?a:null)):(a=ja.call(this._minWeekdaysParse,o),a!==-1||(a=ja.call(this._weekdaysParse,o),a!==-1)?a:(a=ja.call(this._shortWeekdaysParse,o),a!==-1?a:null))}function ZTt(e,t,n){var r,a,i;if(this._weekdaysParseExact)return JTt.call(this,e,t,n);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),r=0;r<7;r++){if(a=Ic([2e3,1]).day(r),n&&!this._fullWeekdaysParse[r]&&(this._fullWeekdaysParse[r]=new RegExp("^"+this.weekdays(a,"").replace(".","\\.?")+"$","i"),this._shortWeekdaysParse[r]=new RegExp("^"+this.weekdaysShort(a,"").replace(".","\\.?")+"$","i"),this._minWeekdaysParse[r]=new RegExp("^"+this.weekdaysMin(a,"").replace(".","\\.?")+"$","i")),this._weekdaysParse[r]||(i="^"+this.weekdays(a,"")+"|^"+this.weekdaysShort(a,"")+"|^"+this.weekdaysMin(a,""),this._weekdaysParse[r]=new RegExp(i.replace(".",""),"i")),n&&t==="dddd"&&this._fullWeekdaysParse[r].test(e))return r;if(n&&t==="ddd"&&this._shortWeekdaysParse[r].test(e))return r;if(n&&t==="dd"&&this._minWeekdaysParse[r].test(e))return r;if(!n&&this._weekdaysParse[r].test(e))return r}}function eCt(e){if(!this.isValid())return e!=null?this:NaN;var t=kE(this,"Day");return e!=null?(e=WTt(e,this.localeData()),this.add(e-t,"d")):t}function tCt(e){if(!this.isValid())return e!=null?this:NaN;var t=(this.day()+7-this.localeData()._week.dow)%7;return e==null?t:this.add(e-t,"d")}function nCt(e){if(!this.isValid())return e!=null?this:NaN;if(e!=null){var t=zTt(e,this.localeData());return this.day(this.day()%7?t:t-7)}else return this.day()||7}function rCt(e){return this._weekdaysParseExact?(gr(this,"_weekdaysRegex")||B4.call(this),e?this._weekdaysStrictRegex:this._weekdaysRegex):(gr(this,"_weekdaysRegex")||(this._weekdaysRegex=VTt),this._weekdaysStrictRegex&&e?this._weekdaysStrictRegex:this._weekdaysRegex)}function aCt(e){return this._weekdaysParseExact?(gr(this,"_weekdaysRegex")||B4.call(this),e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(gr(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=GTt),this._weekdaysShortStrictRegex&&e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)}function iCt(e){return this._weekdaysParseExact?(gr(this,"_weekdaysRegex")||B4.call(this),e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(gr(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=YTt),this._weekdaysMinStrictRegex&&e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)}function B4(){function e(f,g){return g.length-f.length}var t=[],n=[],r=[],a=[],i,o,l,u,d;for(i=0;i<7;i++)o=Ic([2e3,1]).day(i),l=$d(this.weekdaysMin(o,"")),u=$d(this.weekdaysShort(o,"")),d=$d(this.weekdays(o,"")),t.push(l),n.push(u),r.push(d),a.push(l),a.push(u),a.push(d);t.sort(e),n.sort(e),r.sort(e),a.sort(e),this._weekdaysRegex=new RegExp("^("+a.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+r.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+n.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+t.join("|")+")","i")}function W4(){return this.hours()%12||12}function oCt(){return this.hours()||24}nn("H",["HH",2],0,"hour");nn("h",["hh",2],0,W4);nn("k",["kk",2],0,oCt);nn("hmm",0,0,function(){return""+W4.apply(this)+Rc(this.minutes(),2)});nn("hmmss",0,0,function(){return""+W4.apply(this)+Rc(this.minutes(),2)+Rc(this.seconds(),2)});nn("Hmm",0,0,function(){return""+this.hours()+Rc(this.minutes(),2)});nn("Hmmss",0,0,function(){return""+this.hours()+Rc(this.minutes(),2)+Rc(this.seconds(),2)});function lie(e,t){nn(e,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),t)})}lie("a",!0);lie("A",!1);function uie(e,t){return t._meridiemParse}Ft("a",uie);Ft("A",uie);Ft("H",Xr,F4);Ft("h",Xr,M0);Ft("k",Xr,M0);Ft("HH",Xr,Ys);Ft("hh",Xr,Ys);Ft("kk",Xr,Ys);Ft("hmm",Qae);Ft("hmmss",Jae);Ft("Hmm",Qae);Ft("Hmmss",Jae);Mr(["H","HH"],ai);Mr(["k","kk"],function(e,t,n){var r=Kn(e);t[ai]=r===24?0:r});Mr(["a","A"],function(e,t,n){n._isPm=n._locale.isPM(e),n._meridiem=e});Mr(["h","hh"],function(e,t,n){t[ai]=Kn(e),Mn(n).bigHour=!0});Mr("hmm",function(e,t,n){var r=e.length-2;t[ai]=Kn(e.substr(0,r)),t[Eu]=Kn(e.substr(r)),Mn(n).bigHour=!0});Mr("hmmss",function(e,t,n){var r=e.length-4,a=e.length-2;t[ai]=Kn(e.substr(0,r)),t[Eu]=Kn(e.substr(r,2)),t[Id]=Kn(e.substr(a)),Mn(n).bigHour=!0});Mr("Hmm",function(e,t,n){var r=e.length-2;t[ai]=Kn(e.substr(0,r)),t[Eu]=Kn(e.substr(r))});Mr("Hmmss",function(e,t,n){var r=e.length-4,a=e.length-2;t[ai]=Kn(e.substr(0,r)),t[Eu]=Kn(e.substr(r,2)),t[Id]=Kn(e.substr(a))});function sCt(e){return(e+"").toLowerCase().charAt(0)==="p"}var lCt=/[ap]\.?m?\.?/i,uCt=I0("Hours",!0);function cCt(e,t,n){return e>11?n?"pm":"PM":n?"am":"AM"}var cie={calendar:JEt,longDateFormat:nTt,invalidDate:aTt,ordinal:oTt,dayOfMonthOrdinalParse:sTt,relativeTime:uTt,months:kTt,monthsShort:tie,week:LTt,weekdays:qTt,weekdaysMin:HTt,weekdaysShort:sie,meridiemParse:lCt},na={},eS={},OE;function dCt(e,t){var n,r=Math.min(e.length,t.length);for(n=0;n0;){if(a=fO(i.slice(0,n).join("-")),a)return a;if(r&&r.length>=n&&dCt(i,r)>=n-1)break;n--}t++}return OE}function pCt(e){return!!(e&&e.match("^[^/\\\\]*$"))}function fO(e){var t=null,n;if(na[e]===void 0&&typeof no<"u"&&no&&no.exports&&pCt(e))try{t=OE._abbr,n=require,n("./locale/"+e),ih(t)}catch{na[e]=null}return na[e]}function ih(e,t){var n;return e&&(rs(t)?n=sf(e):n=z4(e,t),n?OE=n:typeof console<"u"&&console.warn&&console.warn("Locale "+e+" not found. Did you forget to load it?")),OE._abbr}function z4(e,t){if(t!==null){var n,r=cie;if(t.abbr=e,na[e]!=null)Gae("defineLocaleOverride","use moment.updateLocale(localeName, config) to change an existing locale. moment.defineLocale(localeName, config) should only be used for creating a new locale See http://momentjs.com/guides/#/warnings/define-locale/ for more info."),r=na[e]._config;else if(t.parentLocale!=null)if(na[t.parentLocale]!=null)r=na[t.parentLocale]._config;else if(n=fO(t.parentLocale),n!=null)r=n._config;else return eS[t.parentLocale]||(eS[t.parentLocale]=[]),eS[t.parentLocale].push({name:e,config:t}),null;return na[e]=new M4(B3(r,t)),eS[e]&&eS[e].forEach(function(a){z4(a.name,a.config)}),ih(e),na[e]}else return delete na[e],null}function hCt(e,t){if(t!=null){var n,r,a=cie;na[e]!=null&&na[e].parentLocale!=null?na[e].set(B3(na[e]._config,t)):(r=fO(e),r!=null&&(a=r._config),t=B3(a,t),r==null&&(t.abbr=e),n=new M4(t),n.parentLocale=na[e],na[e]=n),ih(e)}else na[e]!=null&&(na[e].parentLocale!=null?(na[e]=na[e].parentLocale,e===ih()&&ih(e)):na[e]!=null&&delete na[e]);return na[e]}function sf(e){var t;if(e&&e._locale&&e._locale._abbr&&(e=e._locale._abbr),!e)return OE;if(!_u(e)){if(t=fO(e),t)return t;e=[e]}return fCt(e)}function mCt(){return W3(na)}function q4(e){var t,n=e._a;return n&&Mn(e).overflow===-2&&(t=n[Md]<0||n[Md]>11?Md:n[yc]<1||n[yc]>j4(n[ro],n[Md])?yc:n[ai]<0||n[ai]>24||n[ai]===24&&(n[Eu]!==0||n[Id]!==0||n[kv]!==0)?ai:n[Eu]<0||n[Eu]>59?Eu:n[Id]<0||n[Id]>59?Id:n[kv]<0||n[kv]>999?kv:-1,Mn(e)._overflowDayOfYear&&(tyc)&&(t=yc),Mn(e)._overflowWeeks&&t===-1&&(t=bTt),Mn(e)._overflowWeekday&&t===-1&&(t=wTt),Mn(e).overflow=t),e}var gCt=/^\s*((?:[+-]\d{6}|\d{4})-(?:\d\d-\d\d|W\d\d-\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?::\d\d(?::\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,vCt=/^\s*((?:[+-]\d{6}|\d{4})(?:\d\d\d\d|W\d\d\d|W\d\d|\d\d\d|\d\d|))(?:(T| )(\d\d(?:\d\d(?:\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,yCt=/Z|[+-]\d\d(?::?\d\d)?/,Rk=[["YYYYYY-MM-DD",/[+-]\d{6}-\d\d-\d\d/],["YYYY-MM-DD",/\d{4}-\d\d-\d\d/],["GGGG-[W]WW-E",/\d{4}-W\d\d-\d/],["GGGG-[W]WW",/\d{4}-W\d\d/,!1],["YYYY-DDD",/\d{4}-\d{3}/],["YYYY-MM",/\d{4}-\d\d/,!1],["YYYYYYMMDD",/[+-]\d{10}/],["YYYYMMDD",/\d{8}/],["GGGG[W]WWE",/\d{4}W\d{3}/],["GGGG[W]WW",/\d{4}W\d{2}/,!1],["YYYYDDD",/\d{7}/],["YYYYMM",/\d{6}/,!1],["YYYY",/\d{4}/,!1]],U$=[["HH:mm:ss.SSSS",/\d\d:\d\d:\d\d\.\d+/],["HH:mm:ss,SSSS",/\d\d:\d\d:\d\d,\d+/],["HH:mm:ss",/\d\d:\d\d:\d\d/],["HH:mm",/\d\d:\d\d/],["HHmmss.SSSS",/\d\d\d\d\d\d\.\d+/],["HHmmss,SSSS",/\d\d\d\d\d\d,\d+/],["HHmmss",/\d\d\d\d\d\d/],["HHmm",/\d\d\d\d/],["HH",/\d\d/]],bCt=/^\/?Date\((-?\d+)/i,wCt=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),?\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|([+-]\d{4}))$/,SCt={UT:0,GMT:0,EDT:-240,EST:-300,CDT:-300,CST:-360,MDT:-360,MST:-420,PDT:-420,PST:-480};function die(e){var t,n,r=e._i,a=gCt.exec(r)||vCt.exec(r),i,o,l,u,d=Rk.length,f=U$.length;if(a){for(Mn(e).iso=!0,t=0,n=d;tIS(o)||e._dayOfYear===0)&&(Mn(e)._overflowDayOfYear=!0),n=xE(o,0,e._dayOfYear),e._a[Md]=n.getUTCMonth(),e._a[yc]=n.getUTCDate()),t=0;t<3&&e._a[t]==null;++t)e._a[t]=r[t]=a[t];for(;t<7;t++)e._a[t]=r[t]=e._a[t]==null?t===2?1:0:e._a[t];e._a[ai]===24&&e._a[Eu]===0&&e._a[Id]===0&&e._a[kv]===0&&(e._nextDay=!0,e._a[ai]=0),e._d=(e._useUTC?xE:DTt).apply(null,r),i=e._useUTC?e._d.getUTCDay():e._d.getDay(),e._tzm!=null&&e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),e._nextDay&&(e._a[ai]=24),e._w&&typeof e._w.d<"u"&&e._w.d!==i&&(Mn(e).weekdayMismatch=!0)}}function RCt(e){var t,n,r,a,i,o,l,u,d;t=e._w,t.GG!=null||t.W!=null||t.E!=null?(i=1,o=4,n=Ab(t.GG,e._a[ro],_E(Kr(),1,4).year),r=Ab(t.W,1),a=Ab(t.E,1),(a<1||a>7)&&(u=!0)):(i=e._locale._week.dow,o=e._locale._week.doy,d=_E(Kr(),i,o),n=Ab(t.gg,e._a[ro],d.year),r=Ab(t.w,d.week),t.d!=null?(a=t.d,(a<0||a>6)&&(u=!0)):t.e!=null?(a=t.e+i,(t.e<0||t.e>6)&&(u=!0)):a=i),r<1||r>Ld(n,i,o)?Mn(e)._overflowWeeks=!0:u!=null?Mn(e)._overflowWeekday=!0:(l=oie(n,r,a,i,o),e._a[ro]=l.year,e._dayOfYear=l.dayOfYear)}Ot.ISO_8601=function(){};Ot.RFC_2822=function(){};function V4(e){if(e._f===Ot.ISO_8601){die(e);return}if(e._f===Ot.RFC_2822){fie(e);return}e._a=[],Mn(e).empty=!0;var t=""+e._i,n,r,a,i,o,l=t.length,u=0,d,f;for(a=Yae(e._f,e._locale).match(I4)||[],f=a.length,n=0;n0&&Mn(e).unusedInput.push(o),t=t.slice(t.indexOf(r)+r.length),u+=r.length),n0[i]?(r?Mn(e).empty=!1:Mn(e).unusedTokens.push(i),yTt(i,r,e)):e._strict&&!r&&Mn(e).unusedTokens.push(i);Mn(e).charsLeftOver=l-u,t.length>0&&Mn(e).unusedInput.push(t),e._a[ai]<=12&&Mn(e).bigHour===!0&&e._a[ai]>0&&(Mn(e).bigHour=void 0),Mn(e).parsedDateParts=e._a.slice(0),Mn(e).meridiem=e._meridiem,e._a[ai]=PCt(e._locale,e._a[ai],e._meridiem),d=Mn(e).era,d!==null&&(e._a[ro]=e._locale.erasConvertYear(d,e._a[ro])),H4(e),q4(e)}function PCt(e,t,n){var r;return n==null?t:e.meridiemHour!=null?e.meridiemHour(t,n):(e.isPM!=null&&(r=e.isPM(n),r&&t<12&&(t+=12),!r&&t===12&&(t=0)),t)}function ACt(e){var t,n,r,a,i,o,l=!1,u=e._f.length;if(u===0){Mn(e).invalidFormat=!0,e._d=new Date(NaN);return}for(a=0;athis?this:e:iO()});function mie(e,t){var n,r;if(t.length===1&&_u(t[0])&&(t=t[0]),!t.length)return Kr();for(n=t[0],r=1;rthis.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()}function JCt(){if(!rs(this._isDSTShifted))return this._isDSTShifted;var e={},t;return N4(e,this),e=pie(e),e._a?(t=e._isUTC?Ic(e._a):Kr(e._a),this._isDSTShifted=this.isValid()&&zCt(e._a,t.toArray())>0):this._isDSTShifted=!1,this._isDSTShifted}function ZCt(){return this.isValid()?!this._isUTC:!1}function ekt(){return this.isValid()?this._isUTC:!1}function vie(){return this.isValid()?this._isUTC&&this._offset===0:!1}var tkt=/^(-|\+)?(?:(\d*)[. ])?(\d+):(\d+)(?::(\d+)(\.\d*)?)?$/,nkt=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;function Au(e,t){var n=e,r=null,a,i,o;return ex(e)?n={ms:e._milliseconds,d:e._days,M:e._months}:Jd(e)||!isNaN(+e)?(n={},t?n[t]=+e:n.milliseconds=+e):(r=tkt.exec(e))?(a=r[1]==="-"?-1:1,n={y:0,d:Kn(r[yc])*a,h:Kn(r[ai])*a,m:Kn(r[Eu])*a,s:Kn(r[Id])*a,ms:Kn(q3(r[kv]*1e3))*a}):(r=nkt.exec(e))?(a=r[1]==="-"?-1:1,n={y:tv(r[2],a),M:tv(r[3],a),w:tv(r[4],a),d:tv(r[5],a),h:tv(r[6],a),m:tv(r[7],a),s:tv(r[8],a)}):n==null?n={}:typeof n=="object"&&("from"in n||"to"in n)&&(o=rkt(Kr(n.from),Kr(n.to)),n={},n.ms=o.milliseconds,n.M=o.months),i=new pO(n),ex(e)&&gr(e,"_locale")&&(i._locale=e._locale),ex(e)&&gr(e,"_isValid")&&(i._isValid=e._isValid),i}Au.fn=pO.prototype;Au.invalid=WCt;function tv(e,t){var n=e&&parseFloat(e.replace(",","."));return(isNaN(n)?0:n)*t}function iY(e,t){var n={};return n.months=t.month()-e.month()+(t.year()-e.year())*12,e.clone().add(n.months,"M").isAfter(t)&&--n.months,n.milliseconds=+t-+e.clone().add(n.months,"M"),n}function rkt(e,t){var n;return e.isValid()&&t.isValid()?(t=Y4(t,e),e.isBefore(t)?n=iY(e,t):(n=iY(t,e),n.milliseconds=-n.milliseconds,n.months=-n.months),n):{milliseconds:0,months:0}}function yie(e,t){return function(n,r){var a,i;return r!==null&&!isNaN(+r)&&(Gae(t,"moment()."+t+"(period, number) is deprecated. Please use moment()."+t+"(number, period). See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info."),i=n,n=r,r=i),a=Au(n,r),bie(this,a,e),this}}function bie(e,t,n,r){var a=t._milliseconds,i=q3(t._days),o=q3(t._months);e.isValid()&&(r=r??!0,o&&rie(e,kE(e,"Month")+o*n),i&&eie(e,"Date",kE(e,"Date")+i*n),a&&e._d.setTime(e._d.valueOf()+a*n),r&&Ot.updateOffset(e,i||o))}var akt=yie(1,"add"),ikt=yie(-1,"subtract");function wie(e){return typeof e=="string"||e instanceof String}function okt(e){return Ou(e)||oT(e)||wie(e)||Jd(e)||lkt(e)||skt(e)||e===null||e===void 0}function skt(e){var t=Pv(e)&&!P4(e),n=!1,r=["years","year","y","months","month","M","days","day","d","dates","date","D","hours","hour","h","minutes","minute","m","seconds","second","s","milliseconds","millisecond","ms"],a,i,o=r.length;for(a=0;an.valueOf():n.valueOf()9999?Zk(n,t?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):Dc(Date.prototype.toISOString)?t?this.toDate().toISOString():new Date(this.valueOf()+this.utcOffset()*60*1e3).toISOString().replace("Z",Zk(n,"Z")):Zk(n,t?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")}function Ekt(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var e="moment",t="",n,r,a,i;return this.isLocal()||(e=this.utcOffset()===0?"moment.utc":"moment.parseZone",t="Z"),n="["+e+'("]',r=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY",a="-MM-DD[T]HH:mm:ss.SSS",i=t+'[")]',this.format(n+r+a+i)}function Tkt(e){e||(e=this.isUtc()?Ot.defaultFormatUtc:Ot.defaultFormat);var t=Zk(this,e);return this.localeData().postformat(t)}function Ckt(e,t){return this.isValid()&&(Ou(e)&&e.isValid()||Kr(e).isValid())?Au({to:this,from:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()}function kkt(e){return this.from(Kr(),e)}function xkt(e,t){return this.isValid()&&(Ou(e)&&e.isValid()||Kr(e).isValid())?Au({from:this,to:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()}function _kt(e){return this.to(Kr(),e)}function Sie(e){var t;return e===void 0?this._locale._abbr:(t=sf(e),t!=null&&(this._locale=t),this)}var Eie=Dl("moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.",function(e){return e===void 0?this.localeData():this.locale(e)});function Tie(){return this._locale}var e_=1e3,r0=60*e_,t_=60*r0,Cie=(365*400+97)*24*t_;function a0(e,t){return(e%t+t)%t}function kie(e,t,n){return e<100&&e>=0?new Date(e+400,t,n)-Cie:new Date(e,t,n).valueOf()}function xie(e,t,n){return e<100&&e>=0?Date.UTC(e+400,t,n)-Cie:Date.UTC(e,t,n)}function Okt(e){var t,n;if(e=$l(e),e===void 0||e==="millisecond"||!this.isValid())return this;switch(n=this._isUTC?xie:kie,e){case"year":t=n(this.year(),0,1);break;case"quarter":t=n(this.year(),this.month()-this.month()%3,1);break;case"month":t=n(this.year(),this.month(),1);break;case"week":t=n(this.year(),this.month(),this.date()-this.weekday());break;case"isoWeek":t=n(this.year(),this.month(),this.date()-(this.isoWeekday()-1));break;case"day":case"date":t=n(this.year(),this.month(),this.date());break;case"hour":t=this._d.valueOf(),t-=a0(t+(this._isUTC?0:this.utcOffset()*r0),t_);break;case"minute":t=this._d.valueOf(),t-=a0(t,r0);break;case"second":t=this._d.valueOf(),t-=a0(t,e_);break}return this._d.setTime(t),Ot.updateOffset(this,!0),this}function Rkt(e){var t,n;if(e=$l(e),e===void 0||e==="millisecond"||!this.isValid())return this;switch(n=this._isUTC?xie:kie,e){case"year":t=n(this.year()+1,0,1)-1;break;case"quarter":t=n(this.year(),this.month()-this.month()%3+3,1)-1;break;case"month":t=n(this.year(),this.month()+1,1)-1;break;case"week":t=n(this.year(),this.month(),this.date()-this.weekday()+7)-1;break;case"isoWeek":t=n(this.year(),this.month(),this.date()-(this.isoWeekday()-1)+7)-1;break;case"day":case"date":t=n(this.year(),this.month(),this.date()+1)-1;break;case"hour":t=this._d.valueOf(),t+=t_-a0(t+(this._isUTC?0:this.utcOffset()*r0),t_)-1;break;case"minute":t=this._d.valueOf(),t+=r0-a0(t,r0)-1;break;case"second":t=this._d.valueOf(),t+=e_-a0(t,e_)-1;break}return this._d.setTime(t),Ot.updateOffset(this,!0),this}function Pkt(){return this._d.valueOf()-(this._offset||0)*6e4}function Akt(){return Math.floor(this.valueOf()/1e3)}function Nkt(){return new Date(this.valueOf())}function Mkt(){var e=this;return[e.year(),e.month(),e.date(),e.hour(),e.minute(),e.second(),e.millisecond()]}function Ikt(){var e=this;return{years:e.year(),months:e.month(),date:e.date(),hours:e.hours(),minutes:e.minutes(),seconds:e.seconds(),milliseconds:e.milliseconds()}}function Dkt(){return this.isValid()?this.toISOString():null}function $kt(){return A4(this)}function Lkt(){return th({},Mn(this))}function Fkt(){return Mn(this).overflow}function jkt(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}}nn("N",0,0,"eraAbbr");nn("NN",0,0,"eraAbbr");nn("NNN",0,0,"eraAbbr");nn("NNNN",0,0,"eraName");nn("NNNNN",0,0,"eraNarrow");nn("y",["y",1],"yo","eraYear");nn("y",["yy",2],0,"eraYear");nn("y",["yyy",3],0,"eraYear");nn("y",["yyyy",4],0,"eraYear");Ft("N",K4);Ft("NN",K4);Ft("NNN",K4);Ft("NNNN",Xkt);Ft("NNNNN",Qkt);Mr(["N","NN","NNN","NNNN","NNNNN"],function(e,t,n,r){var a=n._locale.erasParse(e,r,n._strict);a?Mn(n).era=a:Mn(n).invalidEra=e});Ft("y",N0);Ft("yy",N0);Ft("yyy",N0);Ft("yyyy",N0);Ft("yo",Jkt);Mr(["y","yy","yyy","yyyy"],ro);Mr(["yo"],function(e,t,n,r){var a;n._locale._eraYearOrdinalRegex&&(a=e.match(n._locale._eraYearOrdinalRegex)),n._locale.eraYearOrdinalParse?t[ro]=n._locale.eraYearOrdinalParse(e,a):t[ro]=parseInt(e,10)});function Ukt(e,t){var n,r,a,i=this._eras||sf("en")._eras;for(n=0,r=i.length;n=0)return i[r]}function Wkt(e,t){var n=e.since<=e.until?1:-1;return t===void 0?Ot(e.since).year():Ot(e.since).year()+(t-e.offset)*n}function zkt(){var e,t,n,r=this.localeData().eras();for(e=0,t=r.length;ei&&(t=i),ixt.call(this,e,t,n,r,a))}function ixt(e,t,n,r,a){var i=oie(e,t,n,r,a),o=xE(i.year,0,i.dayOfYear);return this.year(o.getUTCFullYear()),this.month(o.getUTCMonth()),this.date(o.getUTCDate()),this}nn("Q",0,"Qo","quarter");Ft("Q",Kae);Mr("Q",function(e,t){t[Md]=(Kn(e)-1)*3});function oxt(e){return e==null?Math.ceil((this.month()+1)/3):this.month((e-1)*3+this.month()%3)}nn("D",["DD",2],"Do","date");Ft("D",Xr,M0);Ft("DD",Xr,Ys);Ft("Do",function(e,t){return e?t._dayOfMonthOrdinalParse||t._ordinalParse:t._dayOfMonthOrdinalParseLenient});Mr(["D","DD"],yc);Mr("Do",function(e,t){t[yc]=Kn(e.match(Xr)[0])});var Oie=I0("Date",!0);nn("DDD",["DDDD",3],"DDDo","dayOfYear");Ft("DDD",sO);Ft("DDDD",Xae);Mr(["DDD","DDDD"],function(e,t,n){n._dayOfYear=Kn(e)});function sxt(e){var t=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return e==null?t:this.add(e-t,"d")}nn("m",["mm",2],0,"minute");Ft("m",Xr,F4);Ft("mm",Xr,Ys);Mr(["m","mm"],Eu);var lxt=I0("Minutes",!1);nn("s",["ss",2],0,"second");Ft("s",Xr,F4);Ft("ss",Xr,Ys);Mr(["s","ss"],Id);var uxt=I0("Seconds",!1);nn("S",0,0,function(){return~~(this.millisecond()/100)});nn(0,["SS",2],0,function(){return~~(this.millisecond()/10)});nn(0,["SSS",3],0,"millisecond");nn(0,["SSSS",4],0,function(){return this.millisecond()*10});nn(0,["SSSSS",5],0,function(){return this.millisecond()*100});nn(0,["SSSSSS",6],0,function(){return this.millisecond()*1e3});nn(0,["SSSSSSS",7],0,function(){return this.millisecond()*1e4});nn(0,["SSSSSSSS",8],0,function(){return this.millisecond()*1e5});nn(0,["SSSSSSSSS",9],0,function(){return this.millisecond()*1e6});Ft("S",sO,Kae);Ft("SS",sO,Ys);Ft("SSS",sO,Xae);var nh,Rie;for(nh="SSSS";nh.length<=9;nh+="S")Ft(nh,N0);function cxt(e,t){t[kv]=Kn(("0."+e)*1e3)}for(nh="S";nh.length<=9;nh+="S")Mr(nh,cxt);Rie=I0("Milliseconds",!1);nn("z",0,0,"zoneAbbr");nn("zz",0,0,"zoneName");function dxt(){return this._isUTC?"UTC":""}function fxt(){return this._isUTC?"Coordinated Universal Time":""}var ht=sT.prototype;ht.add=akt;ht.calendar=dkt;ht.clone=fkt;ht.diff=bkt;ht.endOf=Rkt;ht.format=Tkt;ht.from=Ckt;ht.fromNow=kkt;ht.to=xkt;ht.toNow=_kt;ht.get=ETt;ht.invalidAt=Fkt;ht.isAfter=pkt;ht.isBefore=hkt;ht.isBetween=mkt;ht.isSame=gkt;ht.isSameOrAfter=vkt;ht.isSameOrBefore=ykt;ht.isValid=$kt;ht.lang=Eie;ht.locale=Sie;ht.localeData=Tie;ht.max=$Ct;ht.min=DCt;ht.parsingFlags=Lkt;ht.set=TTt;ht.startOf=Okt;ht.subtract=ikt;ht.toArray=Mkt;ht.toObject=Ikt;ht.toDate=Nkt;ht.toISOString=Skt;ht.inspect=Ekt;typeof Symbol<"u"&&Symbol.for!=null&&(ht[Symbol.for("nodejs.util.inspect.custom")]=function(){return"Moment<"+this.format()+">"});ht.toJSON=Dkt;ht.toString=wkt;ht.unix=Akt;ht.valueOf=Pkt;ht.creationData=jkt;ht.eraName=zkt;ht.eraNarrow=qkt;ht.eraAbbr=Hkt;ht.eraYear=Vkt;ht.year=Zae;ht.isLeapYear=STt;ht.weekYear=Zkt;ht.isoWeekYear=ext;ht.quarter=ht.quarters=oxt;ht.month=aie;ht.daysInMonth=NTt;ht.week=ht.weeks=UTt;ht.isoWeek=ht.isoWeeks=BTt;ht.weeksInYear=rxt;ht.weeksInWeekYear=axt;ht.isoWeeksInYear=txt;ht.isoWeeksInISOWeekYear=nxt;ht.date=Oie;ht.day=ht.days=eCt;ht.weekday=tCt;ht.isoWeekday=nCt;ht.dayOfYear=sxt;ht.hour=ht.hours=uCt;ht.minute=ht.minutes=lxt;ht.second=ht.seconds=uxt;ht.millisecond=ht.milliseconds=Rie;ht.utcOffset=HCt;ht.utc=GCt;ht.local=YCt;ht.parseZone=KCt;ht.hasAlignedHourOffset=XCt;ht.isDST=QCt;ht.isLocal=ZCt;ht.isUtcOffset=ekt;ht.isUtc=vie;ht.isUTC=vie;ht.zoneAbbr=dxt;ht.zoneName=fxt;ht.dates=Dl("dates accessor is deprecated. Use date instead.",Oie);ht.months=Dl("months accessor is deprecated. Use month instead",aie);ht.years=Dl("years accessor is deprecated. Use year instead",Zae);ht.zone=Dl("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",VCt);ht.isDSTShifted=Dl("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",JCt);function pxt(e){return Kr(e*1e3)}function hxt(){return Kr.apply(null,arguments).parseZone()}function Pie(e){return e}var vr=M4.prototype;vr.calendar=ZEt;vr.longDateFormat=rTt;vr.invalidDate=iTt;vr.ordinal=lTt;vr.preparse=Pie;vr.postformat=Pie;vr.relativeTime=cTt;vr.pastFuture=dTt;vr.set=QEt;vr.eras=Ukt;vr.erasParse=Bkt;vr.erasConvertYear=Wkt;vr.erasAbbrRegex=Ykt;vr.erasNameRegex=Gkt;vr.erasNarrowRegex=Kkt;vr.months=OTt;vr.monthsShort=RTt;vr.monthsParse=ATt;vr.monthsRegex=ITt;vr.monthsShortRegex=MTt;vr.week=$Tt;vr.firstDayOfYear=jTt;vr.firstDayOfWeek=FTt;vr.weekdays=KTt;vr.weekdaysMin=QTt;vr.weekdaysShort=XTt;vr.weekdaysParse=ZTt;vr.weekdaysRegex=rCt;vr.weekdaysShortRegex=aCt;vr.weekdaysMinRegex=iCt;vr.isPM=sCt;vr.meridiem=cCt;function n_(e,t,n,r){var a=sf(),i=Ic().set(r,t);return a[n](i,e)}function Aie(e,t,n){if(Jd(e)&&(t=e,e=void 0),e=e||"",t!=null)return n_(e,t,n,"month");var r,a=[];for(r=0;r<12;r++)a[r]=n_(e,r,n,"month");return a}function Q4(e,t,n,r){typeof e=="boolean"?(Jd(t)&&(n=t,t=void 0),t=t||""):(t=e,n=t,e=!1,Jd(t)&&(n=t,t=void 0),t=t||"");var a=sf(),i=e?a._week.dow:0,o,l=[];if(n!=null)return n_(t,(n+i)%7,r,"day");for(o=0;o<7;o++)l[o]=n_(t,(o+i)%7,r,"day");return l}function mxt(e,t){return Aie(e,t,"months")}function gxt(e,t){return Aie(e,t,"monthsShort")}function vxt(e,t,n){return Q4(e,t,n,"weekdays")}function yxt(e,t,n){return Q4(e,t,n,"weekdaysShort")}function bxt(e,t,n){return Q4(e,t,n,"weekdaysMin")}ih("en",{eras:[{since:"0001-01-01",until:1/0,offset:1,name:"Anno Domini",narrow:"AD",abbr:"AD"},{since:"0000-12-31",until:-1/0,offset:1,name:"Before Christ",narrow:"BC",abbr:"BC"}],dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(e){var t=e%10,n=Kn(e%100/10)===1?"th":t===1?"st":t===2?"nd":t===3?"rd":"th";return e+n}});Ot.lang=Dl("moment.lang is deprecated. Use moment.locale instead.",ih);Ot.langData=Dl("moment.langData is deprecated. Use moment.localeData instead.",sf);var kd=Math.abs;function wxt(){var e=this._data;return this._milliseconds=kd(this._milliseconds),this._days=kd(this._days),this._months=kd(this._months),e.milliseconds=kd(e.milliseconds),e.seconds=kd(e.seconds),e.minutes=kd(e.minutes),e.hours=kd(e.hours),e.months=kd(e.months),e.years=kd(e.years),this}function Nie(e,t,n,r){var a=Au(t,n);return e._milliseconds+=r*a._milliseconds,e._days+=r*a._days,e._months+=r*a._months,e._bubble()}function Sxt(e,t){return Nie(this,e,t,1)}function Ext(e,t){return Nie(this,e,t,-1)}function oY(e){return e<0?Math.floor(e):Math.ceil(e)}function Txt(){var e=this._milliseconds,t=this._days,n=this._months,r=this._data,a,i,o,l,u;return e>=0&&t>=0&&n>=0||e<=0&&t<=0&&n<=0||(e+=oY(V3(n)+t)*864e5,t=0,n=0),r.milliseconds=e%1e3,a=kl(e/1e3),r.seconds=a%60,i=kl(a/60),r.minutes=i%60,o=kl(i/60),r.hours=o%24,t+=kl(o/24),u=kl(Mie(t)),n+=u,t-=oY(V3(u)),l=kl(n/12),n%=12,r.days=t,r.months=n,r.years=l,this}function Mie(e){return e*4800/146097}function V3(e){return e*146097/4800}function Cxt(e){if(!this.isValid())return NaN;var t,n,r=this._milliseconds;if(e=$l(e),e==="month"||e==="quarter"||e==="year")switch(t=this._days+r/864e5,n=this._months+Mie(t),e){case"month":return n;case"quarter":return n/3;case"year":return n/12}else switch(t=this._days+Math.round(V3(this._months)),e){case"week":return t/7+r/6048e5;case"day":return t+r/864e5;case"hour":return t*24+r/36e5;case"minute":return t*1440+r/6e4;case"second":return t*86400+r/1e3;case"millisecond":return Math.floor(t*864e5)+r;default:throw new Error("Unknown unit "+e)}}function lf(e){return function(){return this.as(e)}}var Iie=lf("ms"),kxt=lf("s"),xxt=lf("m"),_xt=lf("h"),Oxt=lf("d"),Rxt=lf("w"),Pxt=lf("M"),Axt=lf("Q"),Nxt=lf("y"),Mxt=Iie;function Ixt(){return Au(this)}function Dxt(e){return e=$l(e),this.isValid()?this[e+"s"]():NaN}function ey(e){return function(){return this.isValid()?this._data[e]:NaN}}var $xt=ey("milliseconds"),Lxt=ey("seconds"),Fxt=ey("minutes"),jxt=ey("hours"),Uxt=ey("days"),Bxt=ey("months"),Wxt=ey("years");function zxt(){return kl(this.days()/7)}var _d=Math.round,Hb={ss:44,s:45,m:45,h:22,d:26,w:null,M:11};function qxt(e,t,n,r,a){return a.relativeTime(t||1,!!n,e,r)}function Hxt(e,t,n,r){var a=Au(e).abs(),i=_d(a.as("s")),o=_d(a.as("m")),l=_d(a.as("h")),u=_d(a.as("d")),d=_d(a.as("M")),f=_d(a.as("w")),g=_d(a.as("y")),y=i<=n.ss&&["s",i]||i0,y[4]=r,qxt.apply(null,y)}function Vxt(e){return e===void 0?_d:typeof e=="function"?(_d=e,!0):!1}function Gxt(e,t){return Hb[e]===void 0?!1:t===void 0?Hb[e]:(Hb[e]=t,e==="s"&&(Hb.ss=t-1),!0)}function Yxt(e,t){if(!this.isValid())return this.localeData().invalidDate();var n=!1,r=Hb,a,i;return typeof e=="object"&&(t=e,e=!1),typeof e=="boolean"&&(n=e),typeof t=="object"&&(r=Object.assign({},Hb,t),t.s!=null&&t.ss==null&&(r.ss=t.s-1)),a=this.localeData(),i=Hxt(this,!n,r,a),n&&(i=a.pastFuture(+this,i)),a.postformat(i)}var B$=Math.abs;function Eb(e){return(e>0)-(e<0)||+e}function mO(){if(!this.isValid())return this.localeData().invalidDate();var e=B$(this._milliseconds)/1e3,t=B$(this._days),n=B$(this._months),r,a,i,o,l=this.asSeconds(),u,d,f,g;return l?(r=kl(e/60),a=kl(r/60),e%=60,r%=60,i=kl(n/12),n%=12,o=e?e.toFixed(3).replace(/\.?0+$/,""):"",u=l<0?"-":"",d=Eb(this._months)!==Eb(l)?"-":"",f=Eb(this._days)!==Eb(l)?"-":"",g=Eb(this._milliseconds)!==Eb(l)?"-":"",u+"P"+(i?d+i+"Y":"")+(n?d+n+"M":"")+(t?f+t+"D":"")+(a||r||e?"T":"")+(a?g+a+"H":"")+(r?g+r+"M":"")+(e?g+o+"S":"")):"P0D"}var rr=pO.prototype;rr.isValid=BCt;rr.abs=wxt;rr.add=Sxt;rr.subtract=Ext;rr.as=Cxt;rr.asMilliseconds=Iie;rr.asSeconds=kxt;rr.asMinutes=xxt;rr.asHours=_xt;rr.asDays=Oxt;rr.asWeeks=Rxt;rr.asMonths=Pxt;rr.asQuarters=Axt;rr.asYears=Nxt;rr.valueOf=Mxt;rr._bubble=Txt;rr.clone=Ixt;rr.get=Dxt;rr.milliseconds=$xt;rr.seconds=Lxt;rr.minutes=Fxt;rr.hours=jxt;rr.days=Uxt;rr.weeks=zxt;rr.months=Bxt;rr.years=Wxt;rr.humanize=Yxt;rr.toISOString=mO;rr.toString=mO;rr.toJSON=mO;rr.locale=Sie;rr.localeData=Tie;rr.toIsoString=Dl("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",mO);rr.lang=Eie;nn("X",0,0,"unix");nn("x",0,0,"valueOf");Ft("x",uO);Ft("X",mTt);Mr("X",function(e,t,n){n._d=new Date(parseFloat(e)*1e3)});Mr("x",function(e,t,n){n._d=new Date(Kn(e))});//! moment.js -Ot.version="2.30.1";KEt(Kr);Ot.fn=ht;Ot.min=LCt;Ot.max=FCt;Ot.now=jCt;Ot.utc=Ic;Ot.unix=pxt;Ot.months=mxt;Ot.isDate=oT;Ot.locale=ih;Ot.invalid=iO;Ot.duration=Au;Ot.isMoment=Ou;Ot.weekdays=vxt;Ot.parseZone=hxt;Ot.localeData=sf;Ot.isDuration=ex;Ot.monthsShort=gxt;Ot.weekdaysMin=bxt;Ot.defineLocale=z4;Ot.updateLocale=hCt;Ot.locales=mCt;Ot.weekdaysShort=yxt;Ot.normalizeUnits=$l;Ot.relativeTimeRounding=Vxt;Ot.relativeTimeThreshold=Gxt;Ot.calendarFormat=ckt;Ot.prototype=ht;Ot.HTML5_FMT={DATETIME_LOCAL:"YYYY-MM-DDTHH:mm",DATETIME_LOCAL_SECONDS:"YYYY-MM-DDTHH:mm:ss",DATETIME_LOCAL_MS:"YYYY-MM-DDTHH:mm:ss.SSS",DATE:"YYYY-MM-DD",TIME:"HH:mm",TIME_SECONDS:"HH:mm:ss",TIME_MS:"HH:mm:ss.SSS",WEEK:"GGGG-[W]WW",MONTH:"YYYY-MM"};const Kxt=Object.freeze(Object.defineProperty({__proto__:null,default:Ot},Symbol.toStringTag,{value:"Module"})),Xxt=jt(Kxt);var W$,sY;function Qxt(){return sY||(sY=1,W$=(function(e){var t={};function n(r){if(t[r])return t[r].exports;var a=t[r]={i:r,l:!1,exports:{}};return e[r].call(a.exports,a,a.exports,n),a.l=!0,a.exports}return n.m=e,n.c=t,n.d=function(r,a,i){n.o(r,a)||Object.defineProperty(r,a,{enumerable:!0,get:i})},n.r=function(r){typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(r,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(r,"__esModule",{value:!0})},n.t=function(r,a){if(1&a&&(r=n(r)),8&a||4&a&&typeof r=="object"&&r&&r.__esModule)return r;var i=Object.create(null);if(n.r(i),Object.defineProperty(i,"default",{enumerable:!0,value:r}),2&a&&typeof r!="string")for(var o in r)n.d(i,o,(function(l){return r[l]}).bind(null,o));return i},n.n=function(r){var a=r&&r.__esModule?function(){return r.default}:function(){return r};return n.d(a,"a",a),a},n.o=function(r,a){return Object.prototype.hasOwnProperty.call(r,a)},n.p="",n(n.s=4)})([function(e,t){e.exports=Us()},function(e,t){e.exports=Xxt},function(e,t){e.exports=Y3()},function(e,t,n){e.exports=n(5)()},function(e,t,n){e.exports=n(7)},function(e,t,n){var r=n(6);function a(){}function i(){}i.resetWarningCache=a,e.exports=function(){function o(d,f,g,y,h,v){if(v!==r){var E=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw E.name="Invariant Violation",E}}function l(){return o}o.isRequired=o;var u={array:o,bigint:o,bool:o,func:o,number:o,object:o,string:o,symbol:o,any:o,arrayOf:l,element:o,elementType:o,instanceOf:l,node:o,objectOf:l,oneOf:l,oneOfType:l,shape:l,exact:l,checkPropTypes:i,resetWarningCache:a};return u.PropTypes=u,u}},function(e,t,n){e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},function(e,t,n){n.r(t);var r=n(3),a=n.n(r),i=n(1),o=n.n(i),l=n(0),u=n.n(l);function d(){return(d=Object.assign?Object.assign.bind():function(we){for(var ve=1;ve"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch{return!1}})();return function(){var $e,ye=k(we);if(ve){var Se=k(this).constructor;$e=Reflect.construct(ye,arguments,Se)}else $e=ye.apply(this,arguments);return T(this,$e)}}function T(we,ve){if(ve&&(g(ve)==="object"||typeof ve=="function"))return ve;if(ve!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return C(we)}function C(we){if(we===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return we}function k(we){return(k=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(ve){return ve.__proto__||Object.getPrototypeOf(ve)})(we)}function _(we,ve,$e){return ve in we?Object.defineProperty(we,ve,{value:$e,enumerable:!0,configurable:!0,writable:!0}):we[ve]=$e,we}var A=(function(we){(function(ne,Me){if(typeof Me!="function"&&Me!==null)throw new TypeError("Super expression must either be null or a function");ne.prototype=Object.create(Me&&Me.prototype,{constructor:{value:ne,writable:!0,configurable:!0}}),Object.defineProperty(ne,"prototype",{writable:!1}),Me&&v(ne,Me)})(Se,we);var ve,$e,ye=E(Se);function Se(){var ne;y(this,Se);for(var Me=arguments.length,Qe=new Array(Me),ot=0;ot"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch{return!1}})();return function(){var $e,ye=re(we);if(ve){var Se=re(this).constructor;$e=Reflect.construct(ye,arguments,Se)}else $e=ye.apply(this,arguments);return Q(this,$e)}}function Q(we,ve){if(ve&&(N(ve)==="object"||typeof ve=="function"))return ve;if(ve!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return le(we)}function le(we){if(we===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return we}function re(we){return(re=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(ve){return ve.__proto__||Object.getPrototypeOf(ve)})(we)}function ge(we,ve,$e){return ve in we?Object.defineProperty(we,ve,{value:$e,enumerable:!0,configurable:!0,writable:!0}):we[ve]=$e,we}_(A,"defaultProps",{isValidDate:function(){return!0},renderDay:function(we,ve){return u.a.createElement("td",we,ve.date())}});var me=(function(we){(function(ne,Me){if(typeof Me!="function"&&Me!==null)throw new TypeError("Super expression must either be null or a function");ne.prototype=Object.create(Me&&Me.prototype,{constructor:{value:ne,writable:!0,configurable:!0}}),Object.defineProperty(ne,"prototype",{writable:!1}),Me&&j(ne,Me)})(Se,we);var ve,$e,ye=z(Se);function Se(){var ne;I(this,Se);for(var Me=arguments.length,Qe=new Array(Me),ot=0;ot1;)if(Me(Qe.date(ot)))return!1;return!0}},{key:"getMonthText",value:function(ne){var Me,Qe=this.props.viewDate,ot=Qe.localeData().monthsShort(Qe.month(ne));return(Me=ot.substring(0,3)).charAt(0).toUpperCase()+Me.slice(1)}}])&&L(ve.prototype,$e),Object.defineProperty(ve,"prototype",{writable:!1}),Se})(u.a.Component);function W(we,ve){return ve<4?we[0]:ve<8?we[1]:we[2]}function G(we){return(G=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(ve){return typeof ve}:function(ve){return ve&&typeof Symbol=="function"&&ve.constructor===Symbol&&ve!==Symbol.prototype?"symbol":typeof ve})(we)}function q(we,ve){if(!(we instanceof ve))throw new TypeError("Cannot call a class as a function")}function ce(we,ve){for(var $e=0;$e"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch{return!1}})();return function(){var $e,ye=ee(we);if(ve){var Se=ee(this).constructor;$e=Reflect.construct(ye,arguments,Se)}else $e=ye.apply(this,arguments);return ie(this,$e)}}function ie(we,ve){if(ve&&(G(ve)==="object"||typeof ve=="function"))return ve;if(ve!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return J(we)}function J(we){if(we===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return we}function ee(we){return(ee=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(ve){return ve.__proto__||Object.getPrototypeOf(ve)})(we)}function Z(we,ve,$e){return ve in we?Object.defineProperty(we,ve,{value:$e,enumerable:!0,configurable:!0,writable:!0}):we[ve]=$e,we}var ue=(function(we){(function(ne,Me){if(typeof Me!="function"&&Me!==null)throw new TypeError("Super expression must either be null or a function");ne.prototype=Object.create(Me&&Me.prototype,{constructor:{value:ne,writable:!0,configurable:!0}}),Object.defineProperty(ne,"prototype",{writable:!1}),Me&&H(ne,Me)})(Se,we);var ve,$e,ye=Y(Se);function Se(){var ne;q(this,Se);for(var Me=arguments.length,Qe=new Array(Me),ot=0;ot1;)if(Qe(ot.dayOfYear(Bt)))return Me[ne]=!1,!1;return Me[ne]=!0,!0}}])&&ce(ve.prototype,$e),Object.defineProperty(ve,"prototype",{writable:!1}),Se})(u.a.Component);function ke(we,ve){return ve<3?we[0]:ve<7?we[1]:we[2]}function fe(we){return(fe=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(ve){return typeof ve}:function(ve){return ve&&typeof Symbol=="function"&&ve.constructor===Symbol&&ve!==Symbol.prototype?"symbol":typeof ve})(we)}function xe(we,ve){for(var $e=0;$e"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch{return!1}})();return function(){var $e,ye=Ge(we);if(ve){var Se=Ge(this).constructor;$e=Reflect.construct(ye,arguments,Se)}else $e=ye.apply(this,arguments);return tt(this,$e)}}function tt(we,ve){if(ve&&(fe(ve)==="object"||typeof ve=="function"))return ve;if(ve!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return(function($e){if($e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return $e})(we)}function Ge(we){return(Ge=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(ve){return ve.__proto__||Object.getPrototypeOf(ve)})(we)}function at(we,ve){var $e=Object.keys(we);if(Object.getOwnPropertySymbols){var ye=Object.getOwnPropertySymbols(we);ve&&(ye=ye.filter((function(Se){return Object.getOwnPropertyDescriptor(we,Se).enumerable}))),$e.push.apply($e,ye)}return $e}function Et(we){for(var ve=1;ve=12?ne-=12:ne+=12,this.props.setTime("hours",ne)}},{key:"increase",value:function(ne){var Me=this.constraints[ne],Qe=parseInt(this.state[ne],10)+Me.step;return Qe>Me.max&&(Qe=Me.min+(Qe-(Me.max+1))),cn(ne,Qe)}},{key:"decrease",value:function(ne){var Me=this.constraints[ne],Qe=parseInt(this.state[ne],10)-Me.step;return Qe=0||(lr[Rr]=Dn[Rr]);return lr})(yn,["excludeScrollbar"]);return we.prototype&&we.prototype.isReactComponent?an.ref=this.getRef:an.wrappedRef=this.getRef,an.disableOnClickOutside=this.disableOnClickOutside,an.enableOnClickOutside=this.enableOnClickOutside,Object(l.createElement)(we,an)},ot})(l.Component),$e.displayName="OnClickOutside("+Se+")",$e.defaultProps={eventTypes:["mousedown","touchstart"],excludeScrollbar:!1,outsideClickIgnoreClass:"ignore-react-onclickoutside",preventDefault:!1,stopPropagation:!1},$e.getClass=function(){return we.getClass?we.getClass():we},ye};function Fe(we){return(Fe=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(ve){return typeof ve}:function(ve){return ve&&typeof Symbol=="function"&&ve.constructor===Symbol&&ve!==Symbol.prototype?"symbol":typeof ve})(we)}function We(we,ve){var $e=Object.keys(we);if(Object.getOwnPropertySymbols){var ye=Object.getOwnPropertySymbols(we);ve&&(ye=ye.filter((function(Se){return Object.getOwnPropertyDescriptor(we,Se).enumerable}))),$e.push.apply($e,ye)}return $e}function Tt(we){for(var ve=1;ve"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch{return!1}})();return function(){var $e,ye=gn(we);if(ve){var Se=gn(this).constructor;$e=Reflect.construct(ye,arguments,Se)}else $e=ye.apply(this,arguments);return Ut(this,$e)}}function Ut(we,ve){if(ve&&(Fe(ve)==="object"||typeof ve=="function"))return ve;if(ve!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return _n(we)}function _n(we){if(we===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return we}function gn(we){return(gn=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(ve){return ve.__proto__||Object.getPrototypeOf(ve)})(we)}function ln(we,ve,$e){return ve in we?Object.defineProperty(we,ve,{value:$e,enumerable:!0,configurable:!0,writable:!0}):we[ve]=$e,we}n.d(t,"default",(function(){return Oa}));var Bn="years",sa="months",Qa="days",ma="time",vn=a.a,_a=function(){},Wo=vn.oneOfType([vn.instanceOf(o.a),vn.instanceOf(Date),vn.string]),Oa=(function(we){gt($e,we);var ve=_t($e);function $e(ye){var Se;return Mt(this,$e),ln(_n(Se=ve.call(this,ye)),"_renderCalendar",(function(){var ne=Se.props,Me=Se.state,Qe={viewDate:Me.viewDate.clone(),selectedDate:Se.getSelectedDate(),isValidDate:ne.isValidDate,updateDate:Se._updateDate,navigate:Se._viewNavigate,moment:o.a,showView:Se._showView};switch(Me.currentView){case Bn:return Qe.renderYear=ne.renderYear,u.a.createElement(ue,Qe);case sa:return Qe.renderMonth=ne.renderMonth,u.a.createElement(me,Qe);case Qa:return Qe.renderDay=ne.renderDay,Qe.timeFormat=Se.getFormat("time"),u.a.createElement(A,Qe);default:return Qe.dateFormat=Se.getFormat("date"),Qe.timeFormat=Se.getFormat("time"),Qe.timeConstraints=ne.timeConstraints,Qe.setTime=Se._setTime,u.a.createElement(Rt,Qe)}})),ln(_n(Se),"_showView",(function(ne,Me){var Qe=(Me||Se.state.viewDate).clone(),ot=Se.props.onBeforeNavigate(ne,Se.state.currentView,Qe);ot&&Se.state.currentView!==ot&&(Se.props.onNavigate(ot),Se.setState({currentView:ot}))})),ln(_n(Se),"viewToMethod",{days:"date",months:"month",years:"year"}),ln(_n(Se),"nextView",{days:"time",months:"days",years:"months"}),ln(_n(Se),"_updateDate",(function(ne){var Me=Se.state.currentView,Qe=Se.getUpdateOn(Se.getFormat("date")),ot=Se.state.viewDate.clone();ot[Se.viewToMethod[Me]](parseInt(ne.target.getAttribute("data-value"),10)),Me==="days"&&(ot.month(parseInt(ne.target.getAttribute("data-month"),10)),ot.year(parseInt(ne.target.getAttribute("data-year"),10)));var Bt={viewDate:ot};Me===Qe?(Bt.selectedDate=ot.clone(),Bt.inputValue=ot.format(Se.getFormat("datetime")),Se.props.open===void 0&&Se.props.input&&Se.props.closeOnSelect&&Se._closeCalendar(),Se.props.onChange(ot.clone())):Se._showView(Se.nextView[Me],ot),Se.setState(Bt)})),ln(_n(Se),"_viewNavigate",(function(ne,Me){var Qe=Se.state.viewDate.clone();Qe.add(ne,Me),ne>0?Se.props.onNavigateForward(ne,Me):Se.props.onNavigateBack(-ne,Me),Se.setState({viewDate:Qe})})),ln(_n(Se),"_setTime",(function(ne,Me){var Qe=(Se.getSelectedDate()||Se.state.viewDate).clone();Qe[ne](Me),Se.props.value||Se.setState({selectedDate:Qe,viewDate:Qe.clone(),inputValue:Qe.format(Se.getFormat("datetime"))}),Se.props.onChange(Qe)})),ln(_n(Se),"_openCalendar",(function(){Se.isOpen()||Se.setState({open:!0},Se.props.onOpen)})),ln(_n(Se),"_closeCalendar",(function(){Se.isOpen()&&Se.setState({open:!1},(function(){Se.props.onClose(Se.state.selectedDate||Se.state.inputValue)}))})),ln(_n(Se),"_handleClickOutside",(function(){var ne=Se.props;ne.input&&Se.state.open&&ne.open===void 0&&ne.closeOnClickOutside&&Se._closeCalendar()})),ln(_n(Se),"_onInputFocus",(function(ne){Se.callHandler(Se.props.inputProps.onFocus,ne)&&Se._openCalendar()})),ln(_n(Se),"_onInputChange",(function(ne){if(Se.callHandler(Se.props.inputProps.onChange,ne)){var Me=ne.target?ne.target.value:ne,Qe=Se.localMoment(Me,Se.getFormat("datetime")),ot={inputValue:Me};Qe.isValid()?(ot.selectedDate=Qe,ot.viewDate=Qe.clone().startOf("month")):ot.selectedDate=null,Se.setState(ot,(function(){Se.props.onChange(Qe.isValid()?Qe:Se.state.inputValue)}))}})),ln(_n(Se),"_onInputKeyDown",(function(ne){Se.callHandler(Se.props.inputProps.onKeyDown,ne)&&ne.which===9&&Se.props.closeOnTab&&Se._closeCalendar()})),ln(_n(Se),"_onInputClick",(function(ne){Se.callHandler(Se.props.inputProps.onClick,ne)&&Se._openCalendar()})),Se.state=Se.getInitialState(),Se}return Ee($e,[{key:"render",value:function(){return u.a.createElement(zo,{className:this.getClassName(),onClickOut:this._handleClickOutside},this.renderInput(),u.a.createElement("div",{className:"rdtPicker"},this.renderView()))}},{key:"renderInput",value:function(){if(this.props.input){var ye=Tt(Tt({type:"text",className:"form-control",value:this.getInputValue()},this.props.inputProps),{},{onFocus:this._onInputFocus,onChange:this._onInputChange,onKeyDown:this._onInputKeyDown,onClick:this._onInputClick});return this.props.renderInput?u.a.createElement("div",null,this.props.renderInput(ye,this._openCalendar,this._closeCalendar)):u.a.createElement("input",ye)}}},{key:"renderView",value:function(){return this.props.renderView(this.state.currentView,this._renderCalendar)}},{key:"getInitialState",value:function(){var ye=this.props,Se=this.getFormat("datetime"),ne=this.parseDate(ye.value||ye.initialValue,Se);return this.checkTZ(),{open:!ye.input,currentView:ye.initialViewMode||this.getInitialView(),viewDate:this.getInitialViewDate(ne),selectedDate:ne&&ne.isValid()?ne:void 0,inputValue:this.getInitialInputValue(ne)}}},{key:"getInitialViewDate",value:function(ye){var Se,ne=this.props.initialViewDate;if(ne){if((Se=this.parseDate(ne,this.getFormat("datetime")))&&Se.isValid())return Se;Ra('The initialViewDated given "'+ne+'" is not valid. Using current date instead.')}else if(ye&&ye.isValid())return ye.clone();return this.getInitialDate()}},{key:"getInitialDate",value:function(){var ye=this.localMoment();return ye.hour(0).minute(0).second(0).millisecond(0),ye}},{key:"getInitialView",value:function(){var ye=this.getFormat("date");return ye?this.getUpdateOn(ye):ma}},{key:"parseDate",value:function(ye,Se){var ne;return ye&&typeof ye=="string"?ne=this.localMoment(ye,Se):ye&&(ne=this.localMoment(ye)),ne&&!ne.isValid()&&(ne=null),ne}},{key:"getClassName",value:function(){var ye="rdt",Se=this.props,ne=Se.className;return Array.isArray(ne)?ye+=" "+ne.join(" "):ne&&(ye+=" "+ne),Se.input||(ye+=" rdtStatic"),this.isOpen()&&(ye+=" rdtOpen"),ye}},{key:"isOpen",value:function(){return!this.props.input||(this.props.open===void 0?this.state.open:this.props.open)}},{key:"getUpdateOn",value:function(ye){return this.props.updateOnView?this.props.updateOnView:ye.match(/[lLD]/)?Qa:ye.indexOf("M")!==-1?sa:ye.indexOf("Y")!==-1?Bn:Qa}},{key:"getLocaleData",value:function(){var ye=this.props;return this.localMoment(ye.value||ye.defaultValue||new Date).localeData()}},{key:"getDateFormat",value:function(){var ye=this.getLocaleData(),Se=this.props.dateFormat;return Se===!0?ye.longDateFormat("L"):Se||""}},{key:"getTimeFormat",value:function(){var ye=this.getLocaleData(),Se=this.props.timeFormat;return Se===!0?ye.longDateFormat("LT"):Se||""}},{key:"getFormat",value:function(ye){if(ye==="date")return this.getDateFormat();if(ye==="time")return this.getTimeFormat();var Se=this.getDateFormat(),ne=this.getTimeFormat();return Se&&ne?Se+" "+ne:Se||ne}},{key:"updateTime",value:function(ye,Se,ne,Me){var Qe={},ot=Me?"selectedDate":"viewDate";Qe[ot]=this.state[ot].clone()[ye](Se,ne),this.setState(Qe)}},{key:"localMoment",value:function(ye,Se,ne){var Me=null;return Me=(ne=ne||this.props).utc?o.a.utc(ye,Se,ne.strictParsing):ne.displayTimeZone?o.a.tz(ye,Se,ne.displayTimeZone):o()(ye,Se,ne.strictParsing),ne.locale&&Me.locale(ne.locale),Me}},{key:"checkTZ",value:function(){var ye=this.props.displayTimeZone;!ye||this.tzWarning||o.a.tz||(this.tzWarning=!0,Ra('displayTimeZone prop with value "'+ye+'" is used but moment.js timezone is not loaded.',"error"))}},{key:"componentDidUpdate",value:function(ye){if(ye!==this.props){var Se=!1,ne=this.props;["locale","utc","displayZone","dateFormat","timeFormat"].forEach((function(Me){ye[Me]!==ne[Me]&&(Se=!0)})),Se&&this.regenerateDates(),ne.value&&ne.value!==ye.value&&this.setViewDate(ne.value),this.checkTZ()}}},{key:"regenerateDates",value:function(){var ye=this.props,Se=this.state.viewDate.clone(),ne=this.state.selectedDate&&this.state.selectedDate.clone();ye.locale&&(Se.locale(ye.locale),ne&&ne.locale(ye.locale)),ye.utc?(Se.utc(),ne&&ne.utc()):ye.displayTimeZone?(Se.tz(ye.displayTimeZone),ne&&ne.tz(ye.displayTimeZone)):(Se.locale(),ne&&ne.locale());var Me={viewDate:Se,selectedDate:ne};ne&&ne.isValid()&&(Me.inputValue=ne.format(this.getFormat("datetime"))),this.setState(Me)}},{key:"getSelectedDate",value:function(){if(this.props.value===void 0)return this.state.selectedDate;var ye=this.parseDate(this.props.value,this.getFormat("datetime"));return!(!ye||!ye.isValid())&&ye}},{key:"getInitialInputValue",value:function(ye){var Se=this.props;return Se.inputProps.value?Se.inputProps.value:ye&&ye.isValid()?ye.format(this.getFormat("datetime")):Se.value&&typeof Se.value=="string"?Se.value:Se.initialValue&&typeof Se.initialValue=="string"?Se.initialValue:""}},{key:"getInputValue",value:function(){var ye=this.getSelectedDate();return ye?ye.format(this.getFormat("datetime")):this.state.inputValue}},{key:"setViewDate",value:function(ye){var Se,ne=function(){return Ra("Invalid date passed to the `setViewDate` method: "+ye)};return ye&&(Se=typeof ye=="string"?this.localMoment(ye,this.getFormat("datetime")):this.localMoment(ye))&&Se.isValid()?void this.setState({viewDate:Se}):ne()}},{key:"navigate",value:function(ye){this._showView(ye)}},{key:"callHandler",value:function(ye,Se){return!ye||ye(Se)!==!1}}]),$e})(u.a.Component);function Ra(we,ve){var $e=typeof window<"u"&&window.console;$e&&(ve||(ve="warn"),$e[ve]("***react-datetime:"+we))}ln(Oa,"propTypes",{value:Wo,initialValue:Wo,initialViewDate:Wo,initialViewMode:vn.oneOf([Bn,sa,Qa,ma]),onOpen:vn.func,onClose:vn.func,onChange:vn.func,onNavigate:vn.func,onBeforeNavigate:vn.func,onNavigateBack:vn.func,onNavigateForward:vn.func,updateOnView:vn.string,locale:vn.string,utc:vn.bool,displayTimeZone:vn.string,input:vn.bool,dateFormat:vn.oneOfType([vn.string,vn.bool]),timeFormat:vn.oneOfType([vn.string,vn.bool]),inputProps:vn.object,timeConstraints:vn.object,isValidDate:vn.func,open:vn.bool,strictParsing:vn.bool,closeOnSelect:vn.bool,closeOnTab:vn.bool,renderView:vn.func,renderInput:vn.func,renderDay:vn.func,renderMonth:vn.func,renderYear:vn.func}),ln(Oa,"defaultProps",{onOpen:_a,onClose:_a,onCalendarOpen:_a,onCalendarClose:_a,onChange:_a,onNavigate:_a,onBeforeNavigate:function(we){return we},onNavigateBack:_a,onNavigateForward:_a,dateFormat:!0,timeFormat:!0,utc:!1,className:"",input:!0,inputProps:{},timeConstraints:{},isValidDate:function(){return!0},strictParsing:!0,closeOnSelect:!1,closeOnTab:!0,closeOnClickOutside:!0,renderView:function(we,ve){return ve()}}),ln(Oa,"moment",o.a);var zo=Te((function(we){gt($e,we);var ve=_t($e);function $e(){var ye;Mt(this,$e);for(var Se=arguments.length,ne=new Array(Se),Me=0;Me{sr();const{placeholder:t,label:n,getInputRef:r,secureTextEntry:a,Icon:i,onChange:o,value:l,errorMessage:u,type:d,focused:f=!1,autoFocus:g,...y}=e,[h,v]=R.useState(!1),E=R.useRef(),T=R.useCallback(()=>{var C;(C=E.current)==null||C.focus()},[E.current]);return w.jsx(rf,{focused:h,onClick:T,...e,children:w.jsx(Zxt,{value:Ot(e.value),onChange:C=>e.onChange&&e.onChange(C),...e.inputProps})})},t_t=e=>{sr();const{placeholder:t,label:n,getInputRef:r,secureTextEntry:a,Icon:i,onChange:o,value:l,errorMessage:u,type:d,focused:f=!1,autoFocus:g,...y}=e,[h,v]=R.useState(!1),E=R.useRef(),T=R.useCallback(()=>{var C;(C=E.current)==null||C.focus()},[E.current]);return w.jsx(rf,{focused:h,onClick:T,...e,children:w.jsx("input",{type:"time",className:"form-control",value:e.value,onChange:C=>e.onChange&&e.onChange(C.target.value),...e.inputProps})})},nS={Example1:`const Example1 = () => { +`+new Error().stack),n=!1}return t.apply(this,arguments)},t)}var PY={};function wie(e,t){Ot.deprecationHandler!=null&&Ot.deprecationHandler(e,t),PY[e]||(bie(t),PY[e]=!0)}Ot.suppressDeprecationWarnings=!1;Ot.deprecationHandler=null;function jc(e){return typeof Function<"u"&&e instanceof Function||Object.prototype.toString.call(e)==="[object Function]"}function PTt(e){var t,n;for(n in e)gr(e,n)&&(t=e[n],jc(t)?this[n]=t:this["_"+n]=t);this._config=e,this._dayOfMonthOrdinalParseLenient=new RegExp((this._dayOfMonthOrdinalParse.source||this._ordinalParse.source)+"|"+/\d{1,2}/.source)}function mF(e,t){var n=dh({},e),r;for(r in t)gr(t,r)&&(Jv(e[r])&&Jv(t[r])?(n[r]={},dh(n[r],e[r]),dh(n[r],t[r])):t[r]!=null?n[r]=t[r]:delete n[r]);for(r in e)gr(e,r)&&!gr(t,r)&&Jv(e[r])&&(n[r]=dh({},n[r]));return n}function sU(e){e!=null&&this.set(e)}var gF;Object.keys?gF=Object.keys:gF=function(e){var t,n=[];for(t in e)gr(e,t)&&n.push(t);return n};var ATt={sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"};function NTt(e,t,n){var r=this._calendar[e]||this._calendar.sameElse;return jc(r)?r.call(t,n):r}function Mc(e,t,n){var r=""+Math.abs(e),a=t-r.length,i=e>=0;return(i?n?"+":"":"-")+Math.pow(10,Math.max(0,a)).toString().substr(1)+r}var lU=/(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|N{1,5}|YYYYYY|YYYYY|YYYY|YY|y{2,4}|yo?|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g,Zk=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,pL={},C0={};function nn(e,t,n,r){var a=r;typeof r=="string"&&(a=function(){return this[r]()}),e&&(C0[e]=a),t&&(C0[t[0]]=function(){return Mc(a.apply(this,arguments),t[1],t[2])}),n&&(C0[n]=function(){return this.localeData().ordinal(a.apply(this,arguments),e)})}function MTt(e){return e.match(/\[[\s\S]/)?e.replace(/^\[|\]$/g,""):e.replace(/\\/g,"")}function ITt(e){var t=e.match(lU),n,r;for(n=0,r=t.length;n=0&&Zk.test(e);)e=e.replace(Zk,r),Zk.lastIndex=0,n-=1;return e}var DTt={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"};function $Tt(e){var t=this._longDateFormat[e],n=this._longDateFormat[e.toUpperCase()];return t||!n?t:(this._longDateFormat[e]=n.match(lU).map(function(r){return r==="MMMM"||r==="MM"||r==="DD"||r==="dddd"?r.slice(1):r}).join(""),this._longDateFormat[e])}var LTt="Invalid date";function FTt(){return this._invalidDate}var jTt="%d",UTt=/\d{1,2}/;function BTt(e){return this._ordinal.replace("%d",e)}var WTt={future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",w:"a week",ww:"%d weeks",M:"a month",MM:"%d months",y:"a year",yy:"%d years"};function zTt(e,t,n,r){var a=this._relativeTime[n];return jc(a)?a(e,t,n,r):a.replace(/%d/i,e)}function qTt(e,t){var n=this._relativeTime[e>0?"future":"past"];return jc(n)?n(t):n.replace(/%s/i,t)}var AY={D:"date",dates:"date",date:"date",d:"day",days:"day",day:"day",e:"weekday",weekdays:"weekday",weekday:"weekday",E:"isoWeekday",isoweekdays:"isoWeekday",isoweekday:"isoWeekday",DDD:"dayOfYear",dayofyears:"dayOfYear",dayofyear:"dayOfYear",h:"hour",hours:"hour",hour:"hour",ms:"millisecond",milliseconds:"millisecond",millisecond:"millisecond",m:"minute",minutes:"minute",minute:"minute",M:"month",months:"month",month:"month",Q:"quarter",quarters:"quarter",quarter:"quarter",s:"second",seconds:"second",second:"second",gg:"weekYear",weekyears:"weekYear",weekyear:"weekYear",GG:"isoWeekYear",isoweekyears:"isoWeekYear",isoweekyear:"isoWeekYear",w:"week",weeks:"week",week:"week",W:"isoWeek",isoweeks:"isoWeek",isoweek:"isoWeek",y:"year",years:"year",year:"year"};function jl(e){return typeof e=="string"?AY[e]||AY[e.toLowerCase()]:void 0}function uU(e){var t={},n,r;for(r in e)gr(e,r)&&(n=jl(r),n&&(t[n]=e[r]));return t}var HTt={date:9,day:11,weekday:11,isoWeekday:11,dayOfYear:4,hour:13,millisecond:16,minute:14,month:8,quarter:7,second:15,weekYear:1,isoWeekYear:1,week:5,isoWeek:5,year:1};function VTt(e){var t=[],n;for(n in e)gr(e,n)&&t.push({unit:n,priority:HTt[n]});return t.sort(function(r,a){return r.priority-a.priority}),t}var Eie=/\d/,Xs=/\d\d/,Tie=/\d{3}/,cU=/\d{4}/,NO=/[+-]?\d{6}/,Xr=/\d\d?/,Cie=/\d\d\d\d?/,kie=/\d\d\d\d\d\d?/,MO=/\d{1,3}/,dU=/\d{1,4}/,IO=/[+-]?\d{1,6}/,ew=/\d+/,DO=/[+-]?\d+/,GTt=/Z|[+-]\d\d:?\d\d/gi,$O=/Z|[+-]\d\d(?::?\d\d)?/gi,YTt=/[+-]?\d+(\.\d{1,3})?/,NT=/[0-9]{0,256}['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFF07\uFF10-\uFFEF]{1,256}|[\u0600-\u06FF\/]{1,256}(\s*?[\u0600-\u06FF]{1,256}){1,2}/i,tw=/^[1-9]\d?/,fU=/^([1-9]\d|\d)/,T_;T_={};function Ft(e,t,n){T_[e]=jc(t)?t:function(r,a){return r&&n?n:t}}function KTt(e,t){return gr(T_,e)?T_[e](t._strict,t._locale):new RegExp(XTt(e))}function XTt(e){return Wd(e.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,function(t,n,r,a,i){return n||r||a||i}))}function Wd(e){return e.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}function Ol(e){return e<0?Math.ceil(e)||0:Math.floor(e)}function Kn(e){var t=+e,n=0;return t!==0&&isFinite(t)&&(n=Ol(t)),n}var vF={};function Mr(e,t){var n,r=t,a;for(typeof e=="string"&&(e=[e]),of(t)&&(r=function(i,o){o[t]=Kn(i)}),a=e.length,n=0;n68?1900:2e3)};var xie=nw("FullYear",!0);function eCt(){return LO(this.year())}function nw(e,t){return function(n){return n!=null?(_ie(this,e,n),Ot.updateOffset(this,t),this):XE(this,e)}}function XE(e,t){if(!e.isValid())return NaN;var n=e._d,r=e._isUTC;switch(t){case"Milliseconds":return r?n.getUTCMilliseconds():n.getMilliseconds();case"Seconds":return r?n.getUTCSeconds():n.getSeconds();case"Minutes":return r?n.getUTCMinutes():n.getMinutes();case"Hours":return r?n.getUTCHours():n.getHours();case"Date":return r?n.getUTCDate():n.getDate();case"Day":return r?n.getUTCDay():n.getDay();case"Month":return r?n.getUTCMonth():n.getMonth();case"FullYear":return r?n.getUTCFullYear():n.getFullYear();default:return NaN}}function _ie(e,t,n){var r,a,i,o,l;if(!(!e.isValid()||isNaN(n))){switch(r=e._d,a=e._isUTC,t){case"Milliseconds":return void(a?r.setUTCMilliseconds(n):r.setMilliseconds(n));case"Seconds":return void(a?r.setUTCSeconds(n):r.setSeconds(n));case"Minutes":return void(a?r.setUTCMinutes(n):r.setMinutes(n));case"Hours":return void(a?r.setUTCHours(n):r.setHours(n));case"Date":return void(a?r.setUTCDate(n):r.setDate(n));case"FullYear":break;default:return}i=n,o=e.month(),l=e.date(),l=l===29&&o===1&&!LO(i)?28:l,a?r.setUTCFullYear(i,o,l):r.setFullYear(i,o,l)}}function tCt(e){return e=jl(e),jc(this[e])?this[e]():this}function nCt(e,t){if(typeof e=="object"){e=uU(e);var n=VTt(e),r,a=n.length;for(r=0;r=0?(l=new Date(e+400,t,n,r,a,i,o),isFinite(l.getFullYear())&&l.setFullYear(e)):l=new Date(e,t,n,r,a,i,o),l}function QE(e){var t,n;return e<100&&e>=0?(n=Array.prototype.slice.call(arguments),n[0]=e+400,t=new Date(Date.UTC.apply(null,n)),isFinite(t.getUTCFullYear())&&t.setUTCFullYear(e)):t=new Date(Date.UTC.apply(null,arguments)),t}function C_(e,t,n){var r=7+t-n,a=(7+QE(e,0,r).getUTCDay()-t)%7;return-a+r-1}function Mie(e,t,n,r,a){var i=(7+n-r)%7,o=C_(e,r,a),l=1+7*(t-1)+i+o,u,d;return l<=0?(u=e-1,d=rE(u)+l):l>rE(e)?(u=e+1,d=l-rE(e)):(u=e,d=l),{year:u,dayOfYear:d}}function JE(e,t,n){var r=C_(e.year(),t,n),a=Math.floor((e.dayOfYear()-r-1)/7)+1,i,o;return a<1?(o=e.year()-1,i=a+zd(o,t,n)):a>zd(e.year(),t,n)?(i=a-zd(e.year(),t,n),o=e.year()+1):(o=e.year(),i=a),{week:i,year:o}}function zd(e,t,n){var r=C_(e,t,n),a=C_(e+1,t,n);return(rE(e)-r+a)/7}nn("w",["ww",2],"wo","week");nn("W",["WW",2],"Wo","isoWeek");Ft("w",Xr,tw);Ft("ww",Xr,Xs);Ft("W",Xr,tw);Ft("WW",Xr,Xs);MT(["w","ww","W","WW"],function(e,t,n,r){t[r.substr(0,1)]=Kn(e)});function mCt(e){return JE(e,this._week.dow,this._week.doy).week}var gCt={dow:0,doy:6};function vCt(){return this._week.dow}function yCt(){return this._week.doy}function bCt(e){var t=this.localeData().week(this);return e==null?t:this.add((e-t)*7,"d")}function wCt(e){var t=JE(this,1,4).week;return e==null?t:this.add((e-t)*7,"d")}nn("d",0,"do","day");nn("dd",0,0,function(e){return this.localeData().weekdaysMin(this,e)});nn("ddd",0,0,function(e){return this.localeData().weekdaysShort(this,e)});nn("dddd",0,0,function(e){return this.localeData().weekdays(this,e)});nn("e",0,0,"weekday");nn("E",0,0,"isoWeekday");Ft("d",Xr);Ft("e",Xr);Ft("E",Xr);Ft("dd",function(e,t){return t.weekdaysMinRegex(e)});Ft("ddd",function(e,t){return t.weekdaysShortRegex(e)});Ft("dddd",function(e,t){return t.weekdaysRegex(e)});MT(["dd","ddd","dddd"],function(e,t,n,r){var a=n._locale.weekdaysParse(e,r,n._strict);a!=null?t.d=a:Mn(n).invalidWeekday=e});MT(["d","e","E"],function(e,t,n,r){t[r]=Kn(e)});function SCt(e,t){return typeof e!="string"?e:isNaN(e)?(e=t.weekdaysParse(e),typeof e=="number"?e:null):parseInt(e,10)}function ECt(e,t){return typeof e=="string"?t.weekdaysParse(e)%7||7:isNaN(e)?null:e}function hU(e,t){return e.slice(t,7).concat(e.slice(0,t))}var TCt="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),Iie="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),CCt="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),kCt=NT,xCt=NT,_Ct=NT;function OCt(e,t){var n=Pu(this._weekdays)?this._weekdays:this._weekdays[e&&e!==!0&&this._weekdays.isFormat.test(t)?"format":"standalone"];return e===!0?hU(n,this._week.dow):e?n[e.day()]:n}function RCt(e){return e===!0?hU(this._weekdaysShort,this._week.dow):e?this._weekdaysShort[e.day()]:this._weekdaysShort}function PCt(e){return e===!0?hU(this._weekdaysMin,this._week.dow):e?this._weekdaysMin[e.day()]:this._weekdaysMin}function ACt(e,t,n){var r,a,i,o=e.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],r=0;r<7;++r)i=Fc([2e3,1]).day(r),this._minWeekdaysParse[r]=this.weekdaysMin(i,"").toLocaleLowerCase(),this._shortWeekdaysParse[r]=this.weekdaysShort(i,"").toLocaleLowerCase(),this._weekdaysParse[r]=this.weekdays(i,"").toLocaleLowerCase();return n?t==="dddd"?(a=Ba.call(this._weekdaysParse,o),a!==-1?a:null):t==="ddd"?(a=Ba.call(this._shortWeekdaysParse,o),a!==-1?a:null):(a=Ba.call(this._minWeekdaysParse,o),a!==-1?a:null):t==="dddd"?(a=Ba.call(this._weekdaysParse,o),a!==-1||(a=Ba.call(this._shortWeekdaysParse,o),a!==-1)?a:(a=Ba.call(this._minWeekdaysParse,o),a!==-1?a:null)):t==="ddd"?(a=Ba.call(this._shortWeekdaysParse,o),a!==-1||(a=Ba.call(this._weekdaysParse,o),a!==-1)?a:(a=Ba.call(this._minWeekdaysParse,o),a!==-1?a:null)):(a=Ba.call(this._minWeekdaysParse,o),a!==-1||(a=Ba.call(this._weekdaysParse,o),a!==-1)?a:(a=Ba.call(this._shortWeekdaysParse,o),a!==-1?a:null))}function NCt(e,t,n){var r,a,i;if(this._weekdaysParseExact)return ACt.call(this,e,t,n);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),r=0;r<7;r++){if(a=Fc([2e3,1]).day(r),n&&!this._fullWeekdaysParse[r]&&(this._fullWeekdaysParse[r]=new RegExp("^"+this.weekdays(a,"").replace(".","\\.?")+"$","i"),this._shortWeekdaysParse[r]=new RegExp("^"+this.weekdaysShort(a,"").replace(".","\\.?")+"$","i"),this._minWeekdaysParse[r]=new RegExp("^"+this.weekdaysMin(a,"").replace(".","\\.?")+"$","i")),this._weekdaysParse[r]||(i="^"+this.weekdays(a,"")+"|^"+this.weekdaysShort(a,"")+"|^"+this.weekdaysMin(a,""),this._weekdaysParse[r]=new RegExp(i.replace(".",""),"i")),n&&t==="dddd"&&this._fullWeekdaysParse[r].test(e))return r;if(n&&t==="ddd"&&this._shortWeekdaysParse[r].test(e))return r;if(n&&t==="dd"&&this._minWeekdaysParse[r].test(e))return r;if(!n&&this._weekdaysParse[r].test(e))return r}}function MCt(e){if(!this.isValid())return e!=null?this:NaN;var t=XE(this,"Day");return e!=null?(e=SCt(e,this.localeData()),this.add(e-t,"d")):t}function ICt(e){if(!this.isValid())return e!=null?this:NaN;var t=(this.day()+7-this.localeData()._week.dow)%7;return e==null?t:this.add(e-t,"d")}function DCt(e){if(!this.isValid())return e!=null?this:NaN;if(e!=null){var t=ECt(e,this.localeData());return this.day(this.day()%7?t:t-7)}else return this.day()||7}function $Ct(e){return this._weekdaysParseExact?(gr(this,"_weekdaysRegex")||mU.call(this),e?this._weekdaysStrictRegex:this._weekdaysRegex):(gr(this,"_weekdaysRegex")||(this._weekdaysRegex=kCt),this._weekdaysStrictRegex&&e?this._weekdaysStrictRegex:this._weekdaysRegex)}function LCt(e){return this._weekdaysParseExact?(gr(this,"_weekdaysRegex")||mU.call(this),e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(gr(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=xCt),this._weekdaysShortStrictRegex&&e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)}function FCt(e){return this._weekdaysParseExact?(gr(this,"_weekdaysRegex")||mU.call(this),e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(gr(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=_Ct),this._weekdaysMinStrictRegex&&e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)}function mU(){function e(f,g){return g.length-f.length}var t=[],n=[],r=[],a=[],i,o,l,u,d;for(i=0;i<7;i++)o=Fc([2e3,1]).day(i),l=Wd(this.weekdaysMin(o,"")),u=Wd(this.weekdaysShort(o,"")),d=Wd(this.weekdays(o,"")),t.push(l),n.push(u),r.push(d),a.push(l),a.push(u),a.push(d);t.sort(e),n.sort(e),r.sort(e),a.sort(e),this._weekdaysRegex=new RegExp("^("+a.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+r.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+n.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+t.join("|")+")","i")}function gU(){return this.hours()%12||12}function jCt(){return this.hours()||24}nn("H",["HH",2],0,"hour");nn("h",["hh",2],0,gU);nn("k",["kk",2],0,jCt);nn("hmm",0,0,function(){return""+gU.apply(this)+Mc(this.minutes(),2)});nn("hmmss",0,0,function(){return""+gU.apply(this)+Mc(this.minutes(),2)+Mc(this.seconds(),2)});nn("Hmm",0,0,function(){return""+this.hours()+Mc(this.minutes(),2)});nn("Hmmss",0,0,function(){return""+this.hours()+Mc(this.minutes(),2)+Mc(this.seconds(),2)});function Die(e,t){nn(e,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),t)})}Die("a",!0);Die("A",!1);function $ie(e,t){return t._meridiemParse}Ft("a",$ie);Ft("A",$ie);Ft("H",Xr,fU);Ft("h",Xr,tw);Ft("k",Xr,tw);Ft("HH",Xr,Xs);Ft("hh",Xr,Xs);Ft("kk",Xr,Xs);Ft("hmm",Cie);Ft("hmmss",kie);Ft("Hmm",Cie);Ft("Hmmss",kie);Mr(["H","HH"],ii);Mr(["k","kk"],function(e,t,n){var r=Kn(e);t[ii]=r===24?0:r});Mr(["a","A"],function(e,t,n){n._isPm=n._locale.isPM(e),n._meridiem=e});Mr(["h","hh"],function(e,t,n){t[ii]=Kn(e),Mn(n).bigHour=!0});Mr("hmm",function(e,t,n){var r=e.length-2;t[ii]=Kn(e.substr(0,r)),t[ku]=Kn(e.substr(r)),Mn(n).bigHour=!0});Mr("hmmss",function(e,t,n){var r=e.length-4,a=e.length-2;t[ii]=Kn(e.substr(0,r)),t[ku]=Kn(e.substr(r,2)),t[Ud]=Kn(e.substr(a)),Mn(n).bigHour=!0});Mr("Hmm",function(e,t,n){var r=e.length-2;t[ii]=Kn(e.substr(0,r)),t[ku]=Kn(e.substr(r))});Mr("Hmmss",function(e,t,n){var r=e.length-4,a=e.length-2;t[ii]=Kn(e.substr(0,r)),t[ku]=Kn(e.substr(r,2)),t[Ud]=Kn(e.substr(a))});function UCt(e){return(e+"").toLowerCase().charAt(0)==="p"}var BCt=/[ap]\.?m?\.?/i,WCt=nw("Hours",!0);function zCt(e,t,n){return e>11?n?"pm":"PM":n?"am":"AM"}var Lie={calendar:ATt,longDateFormat:DTt,invalidDate:LTt,ordinal:jTt,dayOfMonthOrdinalParse:UTt,relativeTime:WTt,months:aCt,monthsShort:Oie,week:gCt,weekdays:TCt,weekdaysMin:CCt,weekdaysShort:Iie,meridiemParse:BCt},ra={},E1={},ZE;function qCt(e,t){var n,r=Math.min(e.length,t.length);for(n=0;n0;){if(a=FO(i.slice(0,n).join("-")),a)return a;if(r&&r.length>=n&&qCt(i,r)>=n-1)break;n--}t++}return ZE}function VCt(e){return!!(e&&e.match("^[^/\\\\]*$"))}function FO(e){var t=null,n;if(ra[e]===void 0&&typeof ao<"u"&&ao&&ao.exports&&VCt(e))try{t=ZE._abbr,n=require,n("./locale/"+e),mh(t)}catch{ra[e]=null}return ra[e]}function mh(e,t){var n;return e&&(cs(t)?n=hf(e):n=vU(e,t),n?ZE=n:typeof console<"u"&&console.warn&&console.warn("Locale "+e+" not found. Did you forget to load it?")),ZE._abbr}function vU(e,t){if(t!==null){var n,r=Lie;if(t.abbr=e,ra[e]!=null)wie("defineLocaleOverride","use moment.updateLocale(localeName, config) to change an existing locale. moment.defineLocale(localeName, config) should only be used for creating a new locale See http://momentjs.com/guides/#/warnings/define-locale/ for more info."),r=ra[e]._config;else if(t.parentLocale!=null)if(ra[t.parentLocale]!=null)r=ra[t.parentLocale]._config;else if(n=FO(t.parentLocale),n!=null)r=n._config;else return E1[t.parentLocale]||(E1[t.parentLocale]=[]),E1[t.parentLocale].push({name:e,config:t}),null;return ra[e]=new sU(mF(r,t)),E1[e]&&E1[e].forEach(function(a){vU(a.name,a.config)}),mh(e),ra[e]}else return delete ra[e],null}function GCt(e,t){if(t!=null){var n,r,a=Lie;ra[e]!=null&&ra[e].parentLocale!=null?ra[e].set(mF(ra[e]._config,t)):(r=FO(e),r!=null&&(a=r._config),t=mF(a,t),r==null&&(t.abbr=e),n=new sU(t),n.parentLocale=ra[e],ra[e]=n),mh(e)}else ra[e]!=null&&(ra[e].parentLocale!=null?(ra[e]=ra[e].parentLocale,e===mh()&&mh(e)):ra[e]!=null&&delete ra[e]);return ra[e]}function hf(e){var t;if(e&&e._locale&&e._locale._abbr&&(e=e._locale._abbr),!e)return ZE;if(!Pu(e)){if(t=FO(e),t)return t;e=[e]}return HCt(e)}function YCt(){return gF(ra)}function yU(e){var t,n=e._a;return n&&Mn(e).overflow===-2&&(t=n[jd]<0||n[jd]>11?jd:n[Sc]<1||n[Sc]>pU(n[io],n[jd])?Sc:n[ii]<0||n[ii]>24||n[ii]===24&&(n[ku]!==0||n[Ud]!==0||n[Gv]!==0)?ii:n[ku]<0||n[ku]>59?ku:n[Ud]<0||n[Ud]>59?Ud:n[Gv]<0||n[Gv]>999?Gv:-1,Mn(e)._overflowDayOfYear&&(tSc)&&(t=Sc),Mn(e)._overflowWeeks&&t===-1&&(t=JTt),Mn(e)._overflowWeekday&&t===-1&&(t=ZTt),Mn(e).overflow=t),e}var KCt=/^\s*((?:[+-]\d{6}|\d{4})-(?:\d\d-\d\d|W\d\d-\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?::\d\d(?::\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,XCt=/^\s*((?:[+-]\d{6}|\d{4})(?:\d\d\d\d|W\d\d\d|W\d\d|\d\d\d|\d\d|))(?:(T| )(\d\d(?:\d\d(?:\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,QCt=/Z|[+-]\d\d(?::?\d\d)?/,ex=[["YYYYYY-MM-DD",/[+-]\d{6}-\d\d-\d\d/],["YYYY-MM-DD",/\d{4}-\d\d-\d\d/],["GGGG-[W]WW-E",/\d{4}-W\d\d-\d/],["GGGG-[W]WW",/\d{4}-W\d\d/,!1],["YYYY-DDD",/\d{4}-\d{3}/],["YYYY-MM",/\d{4}-\d\d/,!1],["YYYYYYMMDD",/[+-]\d{10}/],["YYYYMMDD",/\d{8}/],["GGGG[W]WWE",/\d{4}W\d{3}/],["GGGG[W]WW",/\d{4}W\d{2}/,!1],["YYYYDDD",/\d{7}/],["YYYYMM",/\d{6}/,!1],["YYYY",/\d{4}/,!1]],hL=[["HH:mm:ss.SSSS",/\d\d:\d\d:\d\d\.\d+/],["HH:mm:ss,SSSS",/\d\d:\d\d:\d\d,\d+/],["HH:mm:ss",/\d\d:\d\d:\d\d/],["HH:mm",/\d\d:\d\d/],["HHmmss.SSSS",/\d\d\d\d\d\d\.\d+/],["HHmmss,SSSS",/\d\d\d\d\d\d,\d+/],["HHmmss",/\d\d\d\d\d\d/],["HHmm",/\d\d\d\d/],["HH",/\d\d/]],JCt=/^\/?Date\((-?\d+)/i,ZCt=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),?\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|([+-]\d{4}))$/,ekt={UT:0,GMT:0,EDT:-240,EST:-300,CDT:-300,CST:-360,MDT:-360,MST:-420,PDT:-420,PST:-480};function Fie(e){var t,n,r=e._i,a=KCt.exec(r)||XCt.exec(r),i,o,l,u,d=ex.length,f=hL.length;if(a){for(Mn(e).iso=!0,t=0,n=d;trE(o)||e._dayOfYear===0)&&(Mn(e)._overflowDayOfYear=!0),n=QE(o,0,e._dayOfYear),e._a[jd]=n.getUTCMonth(),e._a[Sc]=n.getUTCDate()),t=0;t<3&&e._a[t]==null;++t)e._a[t]=r[t]=a[t];for(;t<7;t++)e._a[t]=r[t]=e._a[t]==null?t===2?1:0:e._a[t];e._a[ii]===24&&e._a[ku]===0&&e._a[Ud]===0&&e._a[Gv]===0&&(e._nextDay=!0,e._a[ii]=0),e._d=(e._useUTC?QE:hCt).apply(null,r),i=e._useUTC?e._d.getUTCDay():e._d.getDay(),e._tzm!=null&&e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),e._nextDay&&(e._a[ii]=24),e._w&&typeof e._w.d<"u"&&e._w.d!==i&&(Mn(e).weekdayMismatch=!0)}}function lkt(e){var t,n,r,a,i,o,l,u,d;t=e._w,t.GG!=null||t.W!=null||t.E!=null?(i=1,o=4,n=Zb(t.GG,e._a[io],JE(Kr(),1,4).year),r=Zb(t.W,1),a=Zb(t.E,1),(a<1||a>7)&&(u=!0)):(i=e._locale._week.dow,o=e._locale._week.doy,d=JE(Kr(),i,o),n=Zb(t.gg,e._a[io],d.year),r=Zb(t.w,d.week),t.d!=null?(a=t.d,(a<0||a>6)&&(u=!0)):t.e!=null?(a=t.e+i,(t.e<0||t.e>6)&&(u=!0)):a=i),r<1||r>zd(n,i,o)?Mn(e)._overflowWeeks=!0:u!=null?Mn(e)._overflowWeekday=!0:(l=Mie(n,r,a,i,o),e._a[io]=l.year,e._dayOfYear=l.dayOfYear)}Ot.ISO_8601=function(){};Ot.RFC_2822=function(){};function wU(e){if(e._f===Ot.ISO_8601){Fie(e);return}if(e._f===Ot.RFC_2822){jie(e);return}e._a=[],Mn(e).empty=!0;var t=""+e._i,n,r,a,i,o,l=t.length,u=0,d,f;for(a=Sie(e._f,e._locale).match(lU)||[],f=a.length,n=0;n0&&Mn(e).unusedInput.push(o),t=t.slice(t.indexOf(r)+r.length),u+=r.length),C0[i]?(r?Mn(e).empty=!1:Mn(e).unusedTokens.push(i),QTt(i,r,e)):e._strict&&!r&&Mn(e).unusedTokens.push(i);Mn(e).charsLeftOver=l-u,t.length>0&&Mn(e).unusedInput.push(t),e._a[ii]<=12&&Mn(e).bigHour===!0&&e._a[ii]>0&&(Mn(e).bigHour=void 0),Mn(e).parsedDateParts=e._a.slice(0),Mn(e).meridiem=e._meridiem,e._a[ii]=ukt(e._locale,e._a[ii],e._meridiem),d=Mn(e).era,d!==null&&(e._a[io]=e._locale.erasConvertYear(d,e._a[io])),bU(e),yU(e)}function ukt(e,t,n){var r;return n==null?t:e.meridiemHour!=null?e.meridiemHour(t,n):(e.isPM!=null&&(r=e.isPM(n),r&&t<12&&(t+=12),!r&&t===12&&(t=0)),t)}function ckt(e){var t,n,r,a,i,o,l=!1,u=e._f.length;if(u===0){Mn(e).invalidFormat=!0,e._d=new Date(NaN);return}for(a=0;athis?this:e:AO()});function Wie(e,t){var n,r;if(t.length===1&&Pu(t[0])&&(t=t[0]),!t.length)return Kr();for(n=t[0],r=1;rthis.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()}function Akt(){if(!cs(this._isDSTShifted))return this._isDSTShifted;var e={},t;return oU(e,this),e=Uie(e),e._a?(t=e._isUTC?Fc(e._a):Kr(e._a),this._isDSTShifted=this.isValid()&&Ekt(e._a,t.toArray())>0):this._isDSTShifted=!1,this._isDSTShifted}function Nkt(){return this.isValid()?!this._isUTC:!1}function Mkt(){return this.isValid()?this._isUTC:!1}function qie(){return this.isValid()?this._isUTC&&this._offset===0:!1}var Ikt=/^(-|\+)?(?:(\d*)[. ])?(\d+):(\d+)(?::(\d+)(\.\d*)?)?$/,Dkt=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;function Iu(e,t){var n=e,r=null,a,i,o;return kx(e)?n={ms:e._milliseconds,d:e._days,M:e._months}:of(e)||!isNaN(+e)?(n={},t?n[t]=+e:n.milliseconds=+e):(r=Ikt.exec(e))?(a=r[1]==="-"?-1:1,n={y:0,d:Kn(r[Sc])*a,h:Kn(r[ii])*a,m:Kn(r[ku])*a,s:Kn(r[Ud])*a,ms:Kn(yF(r[Gv]*1e3))*a}):(r=Dkt.exec(e))?(a=r[1]==="-"?-1:1,n={y:Ev(r[2],a),M:Ev(r[3],a),w:Ev(r[4],a),d:Ev(r[5],a),h:Ev(r[6],a),m:Ev(r[7],a),s:Ev(r[8],a)}):n==null?n={}:typeof n=="object"&&("from"in n||"to"in n)&&(o=$kt(Kr(n.from),Kr(n.to)),n={},n.ms=o.milliseconds,n.M=o.months),i=new jO(n),kx(e)&&gr(e,"_locale")&&(i._locale=e._locale),kx(e)&&gr(e,"_isValid")&&(i._isValid=e._isValid),i}Iu.fn=jO.prototype;Iu.invalid=Skt;function Ev(e,t){var n=e&&parseFloat(e.replace(",","."));return(isNaN(n)?0:n)*t}function MY(e,t){var n={};return n.months=t.month()-e.month()+(t.year()-e.year())*12,e.clone().add(n.months,"M").isAfter(t)&&--n.months,n.milliseconds=+t-+e.clone().add(n.months,"M"),n}function $kt(e,t){var n;return e.isValid()&&t.isValid()?(t=EU(t,e),e.isBefore(t)?n=MY(e,t):(n=MY(t,e),n.milliseconds=-n.milliseconds,n.months=-n.months),n):{milliseconds:0,months:0}}function Hie(e,t){return function(n,r){var a,i;return r!==null&&!isNaN(+r)&&(wie(t,"moment()."+t+"(period, number) is deprecated. Please use moment()."+t+"(number, period). See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info."),i=n,n=r,r=i),a=Iu(n,r),Vie(this,a,e),this}}function Vie(e,t,n,r){var a=t._milliseconds,i=yF(t._days),o=yF(t._months);e.isValid()&&(r=r??!0,o&&Pie(e,XE(e,"Month")+o*n),i&&_ie(e,"Date",XE(e,"Date")+i*n),a&&e._d.setTime(e._d.valueOf()+a*n),r&&Ot.updateOffset(e,i||o))}var Lkt=Hie(1,"add"),Fkt=Hie(-1,"subtract");function Gie(e){return typeof e=="string"||e instanceof String}function jkt(e){return Au(e)||PT(e)||Gie(e)||of(e)||Bkt(e)||Ukt(e)||e===null||e===void 0}function Ukt(e){var t=Jv(e)&&!aU(e),n=!1,r=["years","year","y","months","month","M","days","day","d","dates","date","D","hours","hour","h","minutes","minute","m","seconds","second","s","milliseconds","millisecond","ms"],a,i,o=r.length;for(a=0;an.valueOf():n.valueOf()9999?Cx(n,t?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):jc(Date.prototype.toISOString)?t?this.toDate().toISOString():new Date(this.valueOf()+this.utcOffset()*60*1e3).toISOString().replace("Z",Cx(n,"Z")):Cx(n,t?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")}function txt(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var e="moment",t="",n,r,a,i;return this.isLocal()||(e=this.utcOffset()===0?"moment.utc":"moment.parseZone",t="Z"),n="["+e+'("]',r=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY",a="-MM-DD[T]HH:mm:ss.SSS",i=t+'[")]',this.format(n+r+a+i)}function nxt(e){e||(e=this.isUtc()?Ot.defaultFormatUtc:Ot.defaultFormat);var t=Cx(this,e);return this.localeData().postformat(t)}function rxt(e,t){return this.isValid()&&(Au(e)&&e.isValid()||Kr(e).isValid())?Iu({to:this,from:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()}function axt(e){return this.from(Kr(),e)}function ixt(e,t){return this.isValid()&&(Au(e)&&e.isValid()||Kr(e).isValid())?Iu({from:this,to:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()}function oxt(e){return this.to(Kr(),e)}function Yie(e){var t;return e===void 0?this._locale._abbr:(t=hf(e),t!=null&&(this._locale=t),this)}var Kie=Fl("moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.",function(e){return e===void 0?this.localeData():this.locale(e)});function Xie(){return this._locale}var k_=1e3,k0=60*k_,x_=60*k0,Qie=(365*400+97)*24*x_;function x0(e,t){return(e%t+t)%t}function Jie(e,t,n){return e<100&&e>=0?new Date(e+400,t,n)-Qie:new Date(e,t,n).valueOf()}function Zie(e,t,n){return e<100&&e>=0?Date.UTC(e+400,t,n)-Qie:Date.UTC(e,t,n)}function sxt(e){var t,n;if(e=jl(e),e===void 0||e==="millisecond"||!this.isValid())return this;switch(n=this._isUTC?Zie:Jie,e){case"year":t=n(this.year(),0,1);break;case"quarter":t=n(this.year(),this.month()-this.month()%3,1);break;case"month":t=n(this.year(),this.month(),1);break;case"week":t=n(this.year(),this.month(),this.date()-this.weekday());break;case"isoWeek":t=n(this.year(),this.month(),this.date()-(this.isoWeekday()-1));break;case"day":case"date":t=n(this.year(),this.month(),this.date());break;case"hour":t=this._d.valueOf(),t-=x0(t+(this._isUTC?0:this.utcOffset()*k0),x_);break;case"minute":t=this._d.valueOf(),t-=x0(t,k0);break;case"second":t=this._d.valueOf(),t-=x0(t,k_);break}return this._d.setTime(t),Ot.updateOffset(this,!0),this}function lxt(e){var t,n;if(e=jl(e),e===void 0||e==="millisecond"||!this.isValid())return this;switch(n=this._isUTC?Zie:Jie,e){case"year":t=n(this.year()+1,0,1)-1;break;case"quarter":t=n(this.year(),this.month()-this.month()%3+3,1)-1;break;case"month":t=n(this.year(),this.month()+1,1)-1;break;case"week":t=n(this.year(),this.month(),this.date()-this.weekday()+7)-1;break;case"isoWeek":t=n(this.year(),this.month(),this.date()-(this.isoWeekday()-1)+7)-1;break;case"day":case"date":t=n(this.year(),this.month(),this.date()+1)-1;break;case"hour":t=this._d.valueOf(),t+=x_-x0(t+(this._isUTC?0:this.utcOffset()*k0),x_)-1;break;case"minute":t=this._d.valueOf(),t+=k0-x0(t,k0)-1;break;case"second":t=this._d.valueOf(),t+=k_-x0(t,k_)-1;break}return this._d.setTime(t),Ot.updateOffset(this,!0),this}function uxt(){return this._d.valueOf()-(this._offset||0)*6e4}function cxt(){return Math.floor(this.valueOf()/1e3)}function dxt(){return new Date(this.valueOf())}function fxt(){var e=this;return[e.year(),e.month(),e.date(),e.hour(),e.minute(),e.second(),e.millisecond()]}function pxt(){var e=this;return{years:e.year(),months:e.month(),date:e.date(),hours:e.hours(),minutes:e.minutes(),seconds:e.seconds(),milliseconds:e.milliseconds()}}function hxt(){return this.isValid()?this.toISOString():null}function mxt(){return iU(this)}function gxt(){return dh({},Mn(this))}function vxt(){return Mn(this).overflow}function yxt(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}}nn("N",0,0,"eraAbbr");nn("NN",0,0,"eraAbbr");nn("NNN",0,0,"eraAbbr");nn("NNNN",0,0,"eraName");nn("NNNNN",0,0,"eraNarrow");nn("y",["y",1],"yo","eraYear");nn("y",["yy",2],0,"eraYear");nn("y",["yyy",3],0,"eraYear");nn("y",["yyyy",4],0,"eraYear");Ft("N",TU);Ft("NN",TU);Ft("NNN",TU);Ft("NNNN",Rxt);Ft("NNNNN",Pxt);Mr(["N","NN","NNN","NNNN","NNNNN"],function(e,t,n,r){var a=n._locale.erasParse(e,r,n._strict);a?Mn(n).era=a:Mn(n).invalidEra=e});Ft("y",ew);Ft("yy",ew);Ft("yyy",ew);Ft("yyyy",ew);Ft("yo",Axt);Mr(["y","yy","yyy","yyyy"],io);Mr(["yo"],function(e,t,n,r){var a;n._locale._eraYearOrdinalRegex&&(a=e.match(n._locale._eraYearOrdinalRegex)),n._locale.eraYearOrdinalParse?t[io]=n._locale.eraYearOrdinalParse(e,a):t[io]=parseInt(e,10)});function bxt(e,t){var n,r,a,i=this._eras||hf("en")._eras;for(n=0,r=i.length;n=0)return i[r]}function Sxt(e,t){var n=e.since<=e.until?1:-1;return t===void 0?Ot(e.since).year():Ot(e.since).year()+(t-e.offset)*n}function Ext(){var e,t,n,r=this.localeData().eras();for(e=0,t=r.length;ei&&(t=i),Fxt.call(this,e,t,n,r,a))}function Fxt(e,t,n,r,a){var i=Mie(e,t,n,r,a),o=QE(i.year,0,i.dayOfYear);return this.year(o.getUTCFullYear()),this.month(o.getUTCMonth()),this.date(o.getUTCDate()),this}nn("Q",0,"Qo","quarter");Ft("Q",Eie);Mr("Q",function(e,t){t[jd]=(Kn(e)-1)*3});function jxt(e){return e==null?Math.ceil((this.month()+1)/3):this.month((e-1)*3+this.month()%3)}nn("D",["DD",2],"Do","date");Ft("D",Xr,tw);Ft("DD",Xr,Xs);Ft("Do",function(e,t){return e?t._dayOfMonthOrdinalParse||t._ordinalParse:t._dayOfMonthOrdinalParseLenient});Mr(["D","DD"],Sc);Mr("Do",function(e,t){t[Sc]=Kn(e.match(Xr)[0])});var toe=nw("Date",!0);nn("DDD",["DDDD",3],"DDDo","dayOfYear");Ft("DDD",MO);Ft("DDDD",Tie);Mr(["DDD","DDDD"],function(e,t,n){n._dayOfYear=Kn(e)});function Uxt(e){var t=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return e==null?t:this.add(e-t,"d")}nn("m",["mm",2],0,"minute");Ft("m",Xr,fU);Ft("mm",Xr,Xs);Mr(["m","mm"],ku);var Bxt=nw("Minutes",!1);nn("s",["ss",2],0,"second");Ft("s",Xr,fU);Ft("ss",Xr,Xs);Mr(["s","ss"],Ud);var Wxt=nw("Seconds",!1);nn("S",0,0,function(){return~~(this.millisecond()/100)});nn(0,["SS",2],0,function(){return~~(this.millisecond()/10)});nn(0,["SSS",3],0,"millisecond");nn(0,["SSSS",4],0,function(){return this.millisecond()*10});nn(0,["SSSSS",5],0,function(){return this.millisecond()*100});nn(0,["SSSSSS",6],0,function(){return this.millisecond()*1e3});nn(0,["SSSSSSS",7],0,function(){return this.millisecond()*1e4});nn(0,["SSSSSSSS",8],0,function(){return this.millisecond()*1e5});nn(0,["SSSSSSSSS",9],0,function(){return this.millisecond()*1e6});Ft("S",MO,Eie);Ft("SS",MO,Xs);Ft("SSS",MO,Tie);var fh,noe;for(fh="SSSS";fh.length<=9;fh+="S")Ft(fh,ew);function zxt(e,t){t[Gv]=Kn(("0."+e)*1e3)}for(fh="S";fh.length<=9;fh+="S")Mr(fh,zxt);noe=nw("Milliseconds",!1);nn("z",0,0,"zoneAbbr");nn("zz",0,0,"zoneName");function qxt(){return this._isUTC?"UTC":""}function Hxt(){return this._isUTC?"Coordinated Universal Time":""}var ht=AT.prototype;ht.add=Lkt;ht.calendar=qkt;ht.clone=Hkt;ht.diff=Jkt;ht.endOf=lxt;ht.format=nxt;ht.from=rxt;ht.fromNow=axt;ht.to=ixt;ht.toNow=oxt;ht.get=tCt;ht.invalidAt=vxt;ht.isAfter=Vkt;ht.isBefore=Gkt;ht.isBetween=Ykt;ht.isSame=Kkt;ht.isSameOrAfter=Xkt;ht.isSameOrBefore=Qkt;ht.isValid=mxt;ht.lang=Kie;ht.locale=Yie;ht.localeData=Xie;ht.max=mkt;ht.min=hkt;ht.parsingFlags=gxt;ht.set=nCt;ht.startOf=sxt;ht.subtract=Fkt;ht.toArray=fxt;ht.toObject=pxt;ht.toDate=dxt;ht.toISOString=ext;ht.inspect=txt;typeof Symbol<"u"&&Symbol.for!=null&&(ht[Symbol.for("nodejs.util.inspect.custom")]=function(){return"Moment<"+this.format()+">"});ht.toJSON=hxt;ht.toString=Zkt;ht.unix=cxt;ht.valueOf=uxt;ht.creationData=yxt;ht.eraName=Ext;ht.eraNarrow=Txt;ht.eraAbbr=Cxt;ht.eraYear=kxt;ht.year=xie;ht.isLeapYear=eCt;ht.weekYear=Nxt;ht.isoWeekYear=Mxt;ht.quarter=ht.quarters=jxt;ht.month=Aie;ht.daysInMonth=dCt;ht.week=ht.weeks=bCt;ht.isoWeek=ht.isoWeeks=wCt;ht.weeksInYear=$xt;ht.weeksInWeekYear=Lxt;ht.isoWeeksInYear=Ixt;ht.isoWeeksInISOWeekYear=Dxt;ht.date=toe;ht.day=ht.days=MCt;ht.weekday=ICt;ht.isoWeekday=DCt;ht.dayOfYear=Uxt;ht.hour=ht.hours=WCt;ht.minute=ht.minutes=Bxt;ht.second=ht.seconds=Wxt;ht.millisecond=ht.milliseconds=noe;ht.utcOffset=Ckt;ht.utc=xkt;ht.local=_kt;ht.parseZone=Okt;ht.hasAlignedHourOffset=Rkt;ht.isDST=Pkt;ht.isLocal=Nkt;ht.isUtcOffset=Mkt;ht.isUtc=qie;ht.isUTC=qie;ht.zoneAbbr=qxt;ht.zoneName=Hxt;ht.dates=Fl("dates accessor is deprecated. Use date instead.",toe);ht.months=Fl("months accessor is deprecated. Use month instead",Aie);ht.years=Fl("years accessor is deprecated. Use year instead",xie);ht.zone=Fl("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",kkt);ht.isDSTShifted=Fl("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",Akt);function Vxt(e){return Kr(e*1e3)}function Gxt(){return Kr.apply(null,arguments).parseZone()}function roe(e){return e}var vr=sU.prototype;vr.calendar=NTt;vr.longDateFormat=$Tt;vr.invalidDate=FTt;vr.ordinal=BTt;vr.preparse=roe;vr.postformat=roe;vr.relativeTime=zTt;vr.pastFuture=qTt;vr.set=PTt;vr.eras=bxt;vr.erasParse=wxt;vr.erasConvertYear=Sxt;vr.erasAbbrRegex=_xt;vr.erasNameRegex=xxt;vr.erasNarrowRegex=Oxt;vr.months=sCt;vr.monthsShort=lCt;vr.monthsParse=cCt;vr.monthsRegex=pCt;vr.monthsShortRegex=fCt;vr.week=mCt;vr.firstDayOfYear=yCt;vr.firstDayOfWeek=vCt;vr.weekdays=OCt;vr.weekdaysMin=PCt;vr.weekdaysShort=RCt;vr.weekdaysParse=NCt;vr.weekdaysRegex=$Ct;vr.weekdaysShortRegex=LCt;vr.weekdaysMinRegex=FCt;vr.isPM=UCt;vr.meridiem=zCt;function __(e,t,n,r){var a=hf(),i=Fc().set(r,t);return a[n](i,e)}function aoe(e,t,n){if(of(e)&&(t=e,e=void 0),e=e||"",t!=null)return __(e,t,n,"month");var r,a=[];for(r=0;r<12;r++)a[r]=__(e,r,n,"month");return a}function kU(e,t,n,r){typeof e=="boolean"?(of(t)&&(n=t,t=void 0),t=t||""):(t=e,n=t,e=!1,of(t)&&(n=t,t=void 0),t=t||"");var a=hf(),i=e?a._week.dow:0,o,l=[];if(n!=null)return __(t,(n+i)%7,r,"day");for(o=0;o<7;o++)l[o]=__(t,(o+i)%7,r,"day");return l}function Yxt(e,t){return aoe(e,t,"months")}function Kxt(e,t){return aoe(e,t,"monthsShort")}function Xxt(e,t,n){return kU(e,t,n,"weekdays")}function Qxt(e,t,n){return kU(e,t,n,"weekdaysShort")}function Jxt(e,t,n){return kU(e,t,n,"weekdaysMin")}mh("en",{eras:[{since:"0001-01-01",until:1/0,offset:1,name:"Anno Domini",narrow:"AD",abbr:"AD"},{since:"0000-12-31",until:-1/0,offset:1,name:"Before Christ",narrow:"BC",abbr:"BC"}],dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(e){var t=e%10,n=Kn(e%100/10)===1?"th":t===1?"st":t===2?"nd":t===3?"rd":"th";return e+n}});Ot.lang=Fl("moment.lang is deprecated. Use moment.locale instead.",mh);Ot.langData=Fl("moment.langData is deprecated. Use moment.localeData instead.",hf);var Pd=Math.abs;function Zxt(){var e=this._data;return this._milliseconds=Pd(this._milliseconds),this._days=Pd(this._days),this._months=Pd(this._months),e.milliseconds=Pd(e.milliseconds),e.seconds=Pd(e.seconds),e.minutes=Pd(e.minutes),e.hours=Pd(e.hours),e.months=Pd(e.months),e.years=Pd(e.years),this}function ioe(e,t,n,r){var a=Iu(t,n);return e._milliseconds+=r*a._milliseconds,e._days+=r*a._days,e._months+=r*a._months,e._bubble()}function e_t(e,t){return ioe(this,e,t,1)}function t_t(e,t){return ioe(this,e,t,-1)}function IY(e){return e<0?Math.floor(e):Math.ceil(e)}function n_t(){var e=this._milliseconds,t=this._days,n=this._months,r=this._data,a,i,o,l,u;return e>=0&&t>=0&&n>=0||e<=0&&t<=0&&n<=0||(e+=IY(wF(n)+t)*864e5,t=0,n=0),r.milliseconds=e%1e3,a=Ol(e/1e3),r.seconds=a%60,i=Ol(a/60),r.minutes=i%60,o=Ol(i/60),r.hours=o%24,t+=Ol(o/24),u=Ol(ooe(t)),n+=u,t-=IY(wF(u)),l=Ol(n/12),n%=12,r.days=t,r.months=n,r.years=l,this}function ooe(e){return e*4800/146097}function wF(e){return e*146097/4800}function r_t(e){if(!this.isValid())return NaN;var t,n,r=this._milliseconds;if(e=jl(e),e==="month"||e==="quarter"||e==="year")switch(t=this._days+r/864e5,n=this._months+ooe(t),e){case"month":return n;case"quarter":return n/3;case"year":return n/12}else switch(t=this._days+Math.round(wF(this._months)),e){case"week":return t/7+r/6048e5;case"day":return t+r/864e5;case"hour":return t*24+r/36e5;case"minute":return t*1440+r/6e4;case"second":return t*86400+r/1e3;case"millisecond":return Math.floor(t*864e5)+r;default:throw new Error("Unknown unit "+e)}}function mf(e){return function(){return this.as(e)}}var soe=mf("ms"),a_t=mf("s"),i_t=mf("m"),o_t=mf("h"),s_t=mf("d"),l_t=mf("w"),u_t=mf("M"),c_t=mf("Q"),d_t=mf("y"),f_t=soe;function p_t(){return Iu(this)}function h_t(e){return e=jl(e),this.isValid()?this[e+"s"]():NaN}function Ey(e){return function(){return this.isValid()?this._data[e]:NaN}}var m_t=Ey("milliseconds"),g_t=Ey("seconds"),v_t=Ey("minutes"),y_t=Ey("hours"),b_t=Ey("days"),w_t=Ey("months"),S_t=Ey("years");function E_t(){return Ol(this.days()/7)}var Nd=Math.round,p0={ss:44,s:45,m:45,h:22,d:26,w:null,M:11};function T_t(e,t,n,r,a){return a.relativeTime(t||1,!!n,e,r)}function C_t(e,t,n,r){var a=Iu(e).abs(),i=Nd(a.as("s")),o=Nd(a.as("m")),l=Nd(a.as("h")),u=Nd(a.as("d")),d=Nd(a.as("M")),f=Nd(a.as("w")),g=Nd(a.as("y")),y=i<=n.ss&&["s",i]||i0,y[4]=r,T_t.apply(null,y)}function k_t(e){return e===void 0?Nd:typeof e=="function"?(Nd=e,!0):!1}function x_t(e,t){return p0[e]===void 0?!1:t===void 0?p0[e]:(p0[e]=t,e==="s"&&(p0.ss=t-1),!0)}function __t(e,t){if(!this.isValid())return this.localeData().invalidDate();var n=!1,r=p0,a,i;return typeof e=="object"&&(t=e,e=!1),typeof e=="boolean"&&(n=e),typeof t=="object"&&(r=Object.assign({},p0,t),t.s!=null&&t.ss==null&&(r.ss=t.s-1)),a=this.localeData(),i=C_t(this,!n,r,a),n&&(i=a.pastFuture(+this,i)),a.postformat(i)}var mL=Math.abs;function qb(e){return(e>0)-(e<0)||+e}function BO(){if(!this.isValid())return this.localeData().invalidDate();var e=mL(this._milliseconds)/1e3,t=mL(this._days),n=mL(this._months),r,a,i,o,l=this.asSeconds(),u,d,f,g;return l?(r=Ol(e/60),a=Ol(r/60),e%=60,r%=60,i=Ol(n/12),n%=12,o=e?e.toFixed(3).replace(/\.?0+$/,""):"",u=l<0?"-":"",d=qb(this._months)!==qb(l)?"-":"",f=qb(this._days)!==qb(l)?"-":"",g=qb(this._milliseconds)!==qb(l)?"-":"",u+"P"+(i?d+i+"Y":"")+(n?d+n+"M":"")+(t?f+t+"D":"")+(a||r||e?"T":"")+(a?g+a+"H":"")+(r?g+r+"M":"")+(e?g+o+"S":"")):"P0D"}var rr=jO.prototype;rr.isValid=wkt;rr.abs=Zxt;rr.add=e_t;rr.subtract=t_t;rr.as=r_t;rr.asMilliseconds=soe;rr.asSeconds=a_t;rr.asMinutes=i_t;rr.asHours=o_t;rr.asDays=s_t;rr.asWeeks=l_t;rr.asMonths=u_t;rr.asQuarters=c_t;rr.asYears=d_t;rr.valueOf=f_t;rr._bubble=n_t;rr.clone=p_t;rr.get=h_t;rr.milliseconds=m_t;rr.seconds=g_t;rr.minutes=v_t;rr.hours=y_t;rr.days=b_t;rr.weeks=E_t;rr.months=w_t;rr.years=S_t;rr.humanize=__t;rr.toISOString=BO;rr.toString=BO;rr.toJSON=BO;rr.locale=Yie;rr.localeData=Xie;rr.toIsoString=Fl("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",BO);rr.lang=Kie;nn("X",0,0,"unix");nn("x",0,0,"valueOf");Ft("x",DO);Ft("X",YTt);Mr("X",function(e,t,n){n._d=new Date(parseFloat(e)*1e3)});Mr("x",function(e,t,n){n._d=new Date(Kn(e))});//! moment.js +Ot.version="2.30.1";OTt(Kr);Ot.fn=ht;Ot.min=gkt;Ot.max=vkt;Ot.now=ykt;Ot.utc=Fc;Ot.unix=Vxt;Ot.months=Yxt;Ot.isDate=PT;Ot.locale=mh;Ot.invalid=AO;Ot.duration=Iu;Ot.isMoment=Au;Ot.weekdays=Xxt;Ot.parseZone=Gxt;Ot.localeData=hf;Ot.isDuration=kx;Ot.monthsShort=Kxt;Ot.weekdaysMin=Jxt;Ot.defineLocale=vU;Ot.updateLocale=GCt;Ot.locales=YCt;Ot.weekdaysShort=Qxt;Ot.normalizeUnits=jl;Ot.relativeTimeRounding=k_t;Ot.relativeTimeThreshold=x_t;Ot.calendarFormat=zkt;Ot.prototype=ht;Ot.HTML5_FMT={DATETIME_LOCAL:"YYYY-MM-DDTHH:mm",DATETIME_LOCAL_SECONDS:"YYYY-MM-DDTHH:mm:ss",DATETIME_LOCAL_MS:"YYYY-MM-DDTHH:mm:ss.SSS",DATE:"YYYY-MM-DD",TIME:"HH:mm",TIME_SECONDS:"HH:mm:ss",TIME_MS:"HH:mm:ss.SSS",WEEK:"GGGG-[W]WW",MONTH:"YYYY-MM"};const O_t=Object.freeze(Object.defineProperty({__proto__:null,default:Ot},Symbol.toStringTag,{value:"Module"})),R_t=jt(O_t);var gL,DY;function P_t(){return DY||(DY=1,gL=(function(e){var t={};function n(r){if(t[r])return t[r].exports;var a=t[r]={i:r,l:!1,exports:{}};return e[r].call(a.exports,a,a.exports,n),a.l=!0,a.exports}return n.m=e,n.c=t,n.d=function(r,a,i){n.o(r,a)||Object.defineProperty(r,a,{enumerable:!0,get:i})},n.r=function(r){typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(r,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(r,"__esModule",{value:!0})},n.t=function(r,a){if(1&a&&(r=n(r)),8&a||4&a&&typeof r=="object"&&r&&r.__esModule)return r;var i=Object.create(null);if(n.r(i),Object.defineProperty(i,"default",{enumerable:!0,value:r}),2&a&&typeof r!="string")for(var o in r)n.d(i,o,(function(l){return r[l]}).bind(null,o));return i},n.n=function(r){var a=r&&r.__esModule?function(){return r.default}:function(){return r};return n.d(a,"a",a),a},n.o=function(r,a){return Object.prototype.hasOwnProperty.call(r,a)},n.p="",n(n.s=4)})([function(e,t){e.exports=Vs()},function(e,t){e.exports=R_t},function(e,t){e.exports=EF()},function(e,t,n){e.exports=n(5)()},function(e,t,n){e.exports=n(7)},function(e,t,n){var r=n(6);function a(){}function i(){}i.resetWarningCache=a,e.exports=function(){function o(d,f,g,y,h,v){if(v!==r){var E=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw E.name="Invariant Violation",E}}function l(){return o}o.isRequired=o;var u={array:o,bigint:o,bool:o,func:o,number:o,object:o,string:o,symbol:o,any:o,arrayOf:l,element:o,elementType:o,instanceOf:l,node:o,objectOf:l,oneOf:l,oneOfType:l,shape:l,exact:l,checkPropTypes:i,resetWarningCache:a};return u.PropTypes=u,u}},function(e,t,n){e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},function(e,t,n){n.r(t);var r=n(3),a=n.n(r),i=n(1),o=n.n(i),l=n(0),u=n.n(l);function d(){return(d=Object.assign?Object.assign.bind():function(we){for(var ve=1;ve"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch{return!1}})();return function(){var $e,ye=k(we);if(ve){var Se=k(this).constructor;$e=Reflect.construct(ye,arguments,Se)}else $e=ye.apply(this,arguments);return T(this,$e)}}function T(we,ve){if(ve&&(g(ve)==="object"||typeof ve=="function"))return ve;if(ve!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return C(we)}function C(we){if(we===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return we}function k(we){return(k=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(ve){return ve.__proto__||Object.getPrototypeOf(ve)})(we)}function _(we,ve,$e){return ve in we?Object.defineProperty(we,ve,{value:$e,enumerable:!0,configurable:!0,writable:!0}):we[ve]=$e,we}var A=(function(we){(function(ne,Me){if(typeof Me!="function"&&Me!==null)throw new TypeError("Super expression must either be null or a function");ne.prototype=Object.create(Me&&Me.prototype,{constructor:{value:ne,writable:!0,configurable:!0}}),Object.defineProperty(ne,"prototype",{writable:!1}),Me&&v(ne,Me)})(Se,we);var ve,$e,ye=E(Se);function Se(){var ne;y(this,Se);for(var Me=arguments.length,Qe=new Array(Me),ot=0;ot"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch{return!1}})();return function(){var $e,ye=re(we);if(ve){var Se=re(this).constructor;$e=Reflect.construct(ye,arguments,Se)}else $e=ye.apply(this,arguments);return Q(this,$e)}}function Q(we,ve){if(ve&&(N(ve)==="object"||typeof ve=="function"))return ve;if(ve!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return ue(we)}function ue(we){if(we===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return we}function re(we){return(re=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(ve){return ve.__proto__||Object.getPrototypeOf(ve)})(we)}function me(we,ve,$e){return ve in we?Object.defineProperty(we,ve,{value:$e,enumerable:!0,configurable:!0,writable:!0}):we[ve]=$e,we}_(A,"defaultProps",{isValidDate:function(){return!0},renderDay:function(we,ve){return u.a.createElement("td",we,ve.date())}});var ge=(function(we){(function(ne,Me){if(typeof Me!="function"&&Me!==null)throw new TypeError("Super expression must either be null or a function");ne.prototype=Object.create(Me&&Me.prototype,{constructor:{value:ne,writable:!0,configurable:!0}}),Object.defineProperty(ne,"prototype",{writable:!1}),Me&&j(ne,Me)})(Se,we);var ve,$e,ye=z(Se);function Se(){var ne;I(this,Se);for(var Me=arguments.length,Qe=new Array(Me),ot=0;ot1;)if(Me(Qe.date(ot)))return!1;return!0}},{key:"getMonthText",value:function(ne){var Me,Qe=this.props.viewDate,ot=Qe.localeData().monthsShort(Qe.month(ne));return(Me=ot.substring(0,3)).charAt(0).toUpperCase()+Me.slice(1)}}])&&L(ve.prototype,$e),Object.defineProperty(ve,"prototype",{writable:!1}),Se})(u.a.Component);function W(we,ve){return ve<4?we[0]:ve<8?we[1]:we[2]}function G(we){return(G=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(ve){return typeof ve}:function(ve){return ve&&typeof Symbol=="function"&&ve.constructor===Symbol&&ve!==Symbol.prototype?"symbol":typeof ve})(we)}function q(we,ve){if(!(we instanceof ve))throw new TypeError("Cannot call a class as a function")}function ce(we,ve){for(var $e=0;$e"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch{return!1}})();return function(){var $e,ye=ee(we);if(ve){var Se=ee(this).constructor;$e=Reflect.construct(ye,arguments,Se)}else $e=ye.apply(this,arguments);return ae(this,$e)}}function ae(we,ve){if(ve&&(G(ve)==="object"||typeof ve=="function"))return ve;if(ve!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return J(we)}function J(we){if(we===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return we}function ee(we){return(ee=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(ve){return ve.__proto__||Object.getPrototypeOf(ve)})(we)}function Z(we,ve,$e){return ve in we?Object.defineProperty(we,ve,{value:$e,enumerable:!0,configurable:!0,writable:!0}):we[ve]=$e,we}var le=(function(we){(function(ne,Me){if(typeof Me!="function"&&Me!==null)throw new TypeError("Super expression must either be null or a function");ne.prototype=Object.create(Me&&Me.prototype,{constructor:{value:ne,writable:!0,configurable:!0}}),Object.defineProperty(ne,"prototype",{writable:!1}),Me&&H(ne,Me)})(Se,we);var ve,$e,ye=K(Se);function Se(){var ne;q(this,Se);for(var Me=arguments.length,Qe=new Array(Me),ot=0;ot1;)if(Qe(ot.dayOfYear(Bt)))return Me[ne]=!1,!1;return Me[ne]=!0,!0}}])&&ce(ve.prototype,$e),Object.defineProperty(ve,"prototype",{writable:!1}),Se})(u.a.Component);function ke(we,ve){return ve<3?we[0]:ve<7?we[1]:we[2]}function fe(we){return(fe=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(ve){return typeof ve}:function(ve){return ve&&typeof Symbol=="function"&&ve.constructor===Symbol&&ve!==Symbol.prototype?"symbol":typeof ve})(we)}function xe(we,ve){for(var $e=0;$e"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch{return!1}})();return function(){var $e,ye=Ge(we);if(ve){var Se=Ge(this).constructor;$e=Reflect.construct(ye,arguments,Se)}else $e=ye.apply(this,arguments);return tt(this,$e)}}function tt(we,ve){if(ve&&(fe(ve)==="object"||typeof ve=="function"))return ve;if(ve!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return(function($e){if($e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return $e})(we)}function Ge(we){return(Ge=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(ve){return ve.__proto__||Object.getPrototypeOf(ve)})(we)}function rt(we,ve){var $e=Object.keys(we);if(Object.getOwnPropertySymbols){var ye=Object.getOwnPropertySymbols(we);ve&&(ye=ye.filter((function(Se){return Object.getOwnPropertyDescriptor(we,Se).enumerable}))),$e.push.apply($e,ye)}return $e}function St(we){for(var ve=1;ve=12?ne-=12:ne+=12,this.props.setTime("hours",ne)}},{key:"increase",value:function(ne){var Me=this.constraints[ne],Qe=parseInt(this.state[ne],10)+Me.step;return Qe>Me.max&&(Qe=Me.min+(Qe-(Me.max+1))),cn(ne,Qe)}},{key:"decrease",value:function(ne){var Me=this.constraints[ne],Qe=parseInt(this.state[ne],10)-Me.step;return Qe=0||(lr[Rr]=Dn[Rr]);return lr})(yn,["excludeScrollbar"]);return we.prototype&&we.prototype.isReactComponent?an.ref=this.getRef:an.wrappedRef=this.getRef,an.disableOnClickOutside=this.disableOnClickOutside,an.enableOnClickOutside=this.enableOnClickOutside,Object(l.createElement)(we,an)},ot})(l.Component),$e.displayName="OnClickOutside("+Se+")",$e.defaultProps={eventTypes:["mousedown","touchstart"],excludeScrollbar:!1,outsideClickIgnoreClass:"ignore-react-onclickoutside",preventDefault:!1,stopPropagation:!1},$e.getClass=function(){return we.getClass?we.getClass():we},ye};function Fe(we){return(Fe=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(ve){return typeof ve}:function(ve){return ve&&typeof Symbol=="function"&&ve.constructor===Symbol&&ve!==Symbol.prototype?"symbol":typeof ve})(we)}function We(we,ve){var $e=Object.keys(we);if(Object.getOwnPropertySymbols){var ye=Object.getOwnPropertySymbols(we);ve&&(ye=ye.filter((function(Se){return Object.getOwnPropertyDescriptor(we,Se).enumerable}))),$e.push.apply($e,ye)}return $e}function Et(we){for(var ve=1;ve"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch{return!1}})();return function(){var $e,ye=gn(we);if(ve){var Se=gn(this).constructor;$e=Reflect.construct(ye,arguments,Se)}else $e=ye.apply(this,arguments);return Ut(this,$e)}}function Ut(we,ve){if(ve&&(Fe(ve)==="object"||typeof ve=="function"))return ve;if(ve!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return _n(we)}function _n(we){if(we===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return we}function gn(we){return(gn=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(ve){return ve.__proto__||Object.getPrototypeOf(ve)})(we)}function ln(we,ve,$e){return ve in we?Object.defineProperty(we,ve,{value:$e,enumerable:!0,configurable:!0,writable:!0}):we[ve]=$e,we}n.d(t,"default",(function(){return Pa}));var Bn="years",la="months",Ja="days",ga="time",vn=a.a,Ra=function(){},Ko=vn.oneOfType([vn.instanceOf(o.a),vn.instanceOf(Date),vn.string]),Pa=(function(we){gt($e,we);var ve=_t($e);function $e(ye){var Se;return Mt(this,$e),ln(_n(Se=ve.call(this,ye)),"_renderCalendar",(function(){var ne=Se.props,Me=Se.state,Qe={viewDate:Me.viewDate.clone(),selectedDate:Se.getSelectedDate(),isValidDate:ne.isValidDate,updateDate:Se._updateDate,navigate:Se._viewNavigate,moment:o.a,showView:Se._showView};switch(Me.currentView){case Bn:return Qe.renderYear=ne.renderYear,u.a.createElement(le,Qe);case la:return Qe.renderMonth=ne.renderMonth,u.a.createElement(ge,Qe);case Ja:return Qe.renderDay=ne.renderDay,Qe.timeFormat=Se.getFormat("time"),u.a.createElement(A,Qe);default:return Qe.dateFormat=Se.getFormat("date"),Qe.timeFormat=Se.getFormat("time"),Qe.timeConstraints=ne.timeConstraints,Qe.setTime=Se._setTime,u.a.createElement(Rt,Qe)}})),ln(_n(Se),"_showView",(function(ne,Me){var Qe=(Me||Se.state.viewDate).clone(),ot=Se.props.onBeforeNavigate(ne,Se.state.currentView,Qe);ot&&Se.state.currentView!==ot&&(Se.props.onNavigate(ot),Se.setState({currentView:ot}))})),ln(_n(Se),"viewToMethod",{days:"date",months:"month",years:"year"}),ln(_n(Se),"nextView",{days:"time",months:"days",years:"months"}),ln(_n(Se),"_updateDate",(function(ne){var Me=Se.state.currentView,Qe=Se.getUpdateOn(Se.getFormat("date")),ot=Se.state.viewDate.clone();ot[Se.viewToMethod[Me]](parseInt(ne.target.getAttribute("data-value"),10)),Me==="days"&&(ot.month(parseInt(ne.target.getAttribute("data-month"),10)),ot.year(parseInt(ne.target.getAttribute("data-year"),10)));var Bt={viewDate:ot};Me===Qe?(Bt.selectedDate=ot.clone(),Bt.inputValue=ot.format(Se.getFormat("datetime")),Se.props.open===void 0&&Se.props.input&&Se.props.closeOnSelect&&Se._closeCalendar(),Se.props.onChange(ot.clone())):Se._showView(Se.nextView[Me],ot),Se.setState(Bt)})),ln(_n(Se),"_viewNavigate",(function(ne,Me){var Qe=Se.state.viewDate.clone();Qe.add(ne,Me),ne>0?Se.props.onNavigateForward(ne,Me):Se.props.onNavigateBack(-ne,Me),Se.setState({viewDate:Qe})})),ln(_n(Se),"_setTime",(function(ne,Me){var Qe=(Se.getSelectedDate()||Se.state.viewDate).clone();Qe[ne](Me),Se.props.value||Se.setState({selectedDate:Qe,viewDate:Qe.clone(),inputValue:Qe.format(Se.getFormat("datetime"))}),Se.props.onChange(Qe)})),ln(_n(Se),"_openCalendar",(function(){Se.isOpen()||Se.setState({open:!0},Se.props.onOpen)})),ln(_n(Se),"_closeCalendar",(function(){Se.isOpen()&&Se.setState({open:!1},(function(){Se.props.onClose(Se.state.selectedDate||Se.state.inputValue)}))})),ln(_n(Se),"_handleClickOutside",(function(){var ne=Se.props;ne.input&&Se.state.open&&ne.open===void 0&&ne.closeOnClickOutside&&Se._closeCalendar()})),ln(_n(Se),"_onInputFocus",(function(ne){Se.callHandler(Se.props.inputProps.onFocus,ne)&&Se._openCalendar()})),ln(_n(Se),"_onInputChange",(function(ne){if(Se.callHandler(Se.props.inputProps.onChange,ne)){var Me=ne.target?ne.target.value:ne,Qe=Se.localMoment(Me,Se.getFormat("datetime")),ot={inputValue:Me};Qe.isValid()?(ot.selectedDate=Qe,ot.viewDate=Qe.clone().startOf("month")):ot.selectedDate=null,Se.setState(ot,(function(){Se.props.onChange(Qe.isValid()?Qe:Se.state.inputValue)}))}})),ln(_n(Se),"_onInputKeyDown",(function(ne){Se.callHandler(Se.props.inputProps.onKeyDown,ne)&&ne.which===9&&Se.props.closeOnTab&&Se._closeCalendar()})),ln(_n(Se),"_onInputClick",(function(ne){Se.callHandler(Se.props.inputProps.onClick,ne)&&Se._openCalendar()})),Se.state=Se.getInitialState(),Se}return Ee($e,[{key:"render",value:function(){return u.a.createElement(Xo,{className:this.getClassName(),onClickOut:this._handleClickOutside},this.renderInput(),u.a.createElement("div",{className:"rdtPicker"},this.renderView()))}},{key:"renderInput",value:function(){if(this.props.input){var ye=Et(Et({type:"text",className:"form-control",value:this.getInputValue()},this.props.inputProps),{},{onFocus:this._onInputFocus,onChange:this._onInputChange,onKeyDown:this._onInputKeyDown,onClick:this._onInputClick});return this.props.renderInput?u.a.createElement("div",null,this.props.renderInput(ye,this._openCalendar,this._closeCalendar)):u.a.createElement("input",ye)}}},{key:"renderView",value:function(){return this.props.renderView(this.state.currentView,this._renderCalendar)}},{key:"getInitialState",value:function(){var ye=this.props,Se=this.getFormat("datetime"),ne=this.parseDate(ye.value||ye.initialValue,Se);return this.checkTZ(),{open:!ye.input,currentView:ye.initialViewMode||this.getInitialView(),viewDate:this.getInitialViewDate(ne),selectedDate:ne&&ne.isValid()?ne:void 0,inputValue:this.getInitialInputValue(ne)}}},{key:"getInitialViewDate",value:function(ye){var Se,ne=this.props.initialViewDate;if(ne){if((Se=this.parseDate(ne,this.getFormat("datetime")))&&Se.isValid())return Se;Aa('The initialViewDated given "'+ne+'" is not valid. Using current date instead.')}else if(ye&&ye.isValid())return ye.clone();return this.getInitialDate()}},{key:"getInitialDate",value:function(){var ye=this.localMoment();return ye.hour(0).minute(0).second(0).millisecond(0),ye}},{key:"getInitialView",value:function(){var ye=this.getFormat("date");return ye?this.getUpdateOn(ye):ga}},{key:"parseDate",value:function(ye,Se){var ne;return ye&&typeof ye=="string"?ne=this.localMoment(ye,Se):ye&&(ne=this.localMoment(ye)),ne&&!ne.isValid()&&(ne=null),ne}},{key:"getClassName",value:function(){var ye="rdt",Se=this.props,ne=Se.className;return Array.isArray(ne)?ye+=" "+ne.join(" "):ne&&(ye+=" "+ne),Se.input||(ye+=" rdtStatic"),this.isOpen()&&(ye+=" rdtOpen"),ye}},{key:"isOpen",value:function(){return!this.props.input||(this.props.open===void 0?this.state.open:this.props.open)}},{key:"getUpdateOn",value:function(ye){return this.props.updateOnView?this.props.updateOnView:ye.match(/[lLD]/)?Ja:ye.indexOf("M")!==-1?la:ye.indexOf("Y")!==-1?Bn:Ja}},{key:"getLocaleData",value:function(){var ye=this.props;return this.localMoment(ye.value||ye.defaultValue||new Date).localeData()}},{key:"getDateFormat",value:function(){var ye=this.getLocaleData(),Se=this.props.dateFormat;return Se===!0?ye.longDateFormat("L"):Se||""}},{key:"getTimeFormat",value:function(){var ye=this.getLocaleData(),Se=this.props.timeFormat;return Se===!0?ye.longDateFormat("LT"):Se||""}},{key:"getFormat",value:function(ye){if(ye==="date")return this.getDateFormat();if(ye==="time")return this.getTimeFormat();var Se=this.getDateFormat(),ne=this.getTimeFormat();return Se&&ne?Se+" "+ne:Se||ne}},{key:"updateTime",value:function(ye,Se,ne,Me){var Qe={},ot=Me?"selectedDate":"viewDate";Qe[ot]=this.state[ot].clone()[ye](Se,ne),this.setState(Qe)}},{key:"localMoment",value:function(ye,Se,ne){var Me=null;return Me=(ne=ne||this.props).utc?o.a.utc(ye,Se,ne.strictParsing):ne.displayTimeZone?o.a.tz(ye,Se,ne.displayTimeZone):o()(ye,Se,ne.strictParsing),ne.locale&&Me.locale(ne.locale),Me}},{key:"checkTZ",value:function(){var ye=this.props.displayTimeZone;!ye||this.tzWarning||o.a.tz||(this.tzWarning=!0,Aa('displayTimeZone prop with value "'+ye+'" is used but moment.js timezone is not loaded.',"error"))}},{key:"componentDidUpdate",value:function(ye){if(ye!==this.props){var Se=!1,ne=this.props;["locale","utc","displayZone","dateFormat","timeFormat"].forEach((function(Me){ye[Me]!==ne[Me]&&(Se=!0)})),Se&&this.regenerateDates(),ne.value&&ne.value!==ye.value&&this.setViewDate(ne.value),this.checkTZ()}}},{key:"regenerateDates",value:function(){var ye=this.props,Se=this.state.viewDate.clone(),ne=this.state.selectedDate&&this.state.selectedDate.clone();ye.locale&&(Se.locale(ye.locale),ne&&ne.locale(ye.locale)),ye.utc?(Se.utc(),ne&&ne.utc()):ye.displayTimeZone?(Se.tz(ye.displayTimeZone),ne&&ne.tz(ye.displayTimeZone)):(Se.locale(),ne&&ne.locale());var Me={viewDate:Se,selectedDate:ne};ne&&ne.isValid()&&(Me.inputValue=ne.format(this.getFormat("datetime"))),this.setState(Me)}},{key:"getSelectedDate",value:function(){if(this.props.value===void 0)return this.state.selectedDate;var ye=this.parseDate(this.props.value,this.getFormat("datetime"));return!(!ye||!ye.isValid())&&ye}},{key:"getInitialInputValue",value:function(ye){var Se=this.props;return Se.inputProps.value?Se.inputProps.value:ye&&ye.isValid()?ye.format(this.getFormat("datetime")):Se.value&&typeof Se.value=="string"?Se.value:Se.initialValue&&typeof Se.initialValue=="string"?Se.initialValue:""}},{key:"getInputValue",value:function(){var ye=this.getSelectedDate();return ye?ye.format(this.getFormat("datetime")):this.state.inputValue}},{key:"setViewDate",value:function(ye){var Se,ne=function(){return Aa("Invalid date passed to the `setViewDate` method: "+ye)};return ye&&(Se=typeof ye=="string"?this.localMoment(ye,this.getFormat("datetime")):this.localMoment(ye))&&Se.isValid()?void this.setState({viewDate:Se}):ne()}},{key:"navigate",value:function(ye){this._showView(ye)}},{key:"callHandler",value:function(ye,Se){return!ye||ye(Se)!==!1}}]),$e})(u.a.Component);function Aa(we,ve){var $e=typeof window<"u"&&window.console;$e&&(ve||(ve="warn"),$e[ve]("***react-datetime:"+we))}ln(Pa,"propTypes",{value:Ko,initialValue:Ko,initialViewDate:Ko,initialViewMode:vn.oneOf([Bn,la,Ja,ga]),onOpen:vn.func,onClose:vn.func,onChange:vn.func,onNavigate:vn.func,onBeforeNavigate:vn.func,onNavigateBack:vn.func,onNavigateForward:vn.func,updateOnView:vn.string,locale:vn.string,utc:vn.bool,displayTimeZone:vn.string,input:vn.bool,dateFormat:vn.oneOfType([vn.string,vn.bool]),timeFormat:vn.oneOfType([vn.string,vn.bool]),inputProps:vn.object,timeConstraints:vn.object,isValidDate:vn.func,open:vn.bool,strictParsing:vn.bool,closeOnSelect:vn.bool,closeOnTab:vn.bool,renderView:vn.func,renderInput:vn.func,renderDay:vn.func,renderMonth:vn.func,renderYear:vn.func}),ln(Pa,"defaultProps",{onOpen:Ra,onClose:Ra,onCalendarOpen:Ra,onCalendarClose:Ra,onChange:Ra,onNavigate:Ra,onBeforeNavigate:function(we){return we},onNavigateBack:Ra,onNavigateForward:Ra,dateFormat:!0,timeFormat:!0,utc:!1,className:"",input:!0,inputProps:{},timeConstraints:{},isValidDate:function(){return!0},strictParsing:!0,closeOnSelect:!1,closeOnTab:!0,closeOnClickOutside:!0,renderView:function(we,ve){return ve()}}),ln(Pa,"moment",o.a);var Xo=Te((function(we){gt($e,we);var ve=_t($e);function $e(){var ye;Mt(this,$e);for(var Se=arguments.length,ne=new Array(Se),Me=0;Me{sr();const{placeholder:t,label:n,getInputRef:r,secureTextEntry:a,Icon:i,onChange:o,value:l,errorMessage:u,type:d,focused:f=!1,autoFocus:g,...y}=e,[h,v]=R.useState(!1),E=R.useRef(),T=R.useCallback(()=>{var C;(C=E.current)==null||C.focus()},[E.current]);return w.jsx(df,{focused:h,onClick:T,...e,children:w.jsx(N_t,{value:Ot(e.value),onChange:C=>e.onChange&&e.onChange(C),...e.inputProps})})},I_t=e=>{sr();const{placeholder:t,label:n,getInputRef:r,secureTextEntry:a,Icon:i,onChange:o,value:l,errorMessage:u,type:d,focused:f=!1,autoFocus:g,...y}=e,[h,v]=R.useState(!1),E=R.useRef(),T=R.useCallback(()=>{var C;(C=E.current)==null||C.focus()},[E.current]);return w.jsx(df,{focused:h,onClick:T,...e,children:w.jsx("input",{type:"time",className:"form-control",value:e.value,onChange:C=>e.onChange&&e.onChange(C.target.value),...e.inputProps})})},C1={Example1:`const Example1 = () => { class FormDataSample { date: string; @@ -1143,4 +1143,4 @@ Ot.version="2.30.1";KEt(Kr);Ot.fn=ht;Ot.min=LCt;Ot.max=FCt;Ot.now=jCt;Ot.utc=Ic; ); -}`},n_t=()=>w.jsxs("div",{children:[w.jsx("h2",{children:"FormDate* component"}),w.jsx("p",{children:"Selecting date, time, datetime, daterange is an important aspect of many different apps and softwares. Fireback react comes with a different set of such components."}),w.jsxs("div",{className:"mt-5 mb-5",children:[w.jsx(r_t,{}),w.jsx(ra,{codeString:nS.Example1})]}),w.jsxs("div",{className:"mt-5 mb-5",children:[w.jsx(a_t,{}),w.jsx(ra,{codeString:nS.Example2})]}),w.jsxs("div",{className:"mt-5 mb-5",children:[w.jsx(i_t,{}),w.jsx(ra,{codeString:nS.Example3})]}),w.jsxs("div",{className:"mt-5 mb-5",children:[w.jsx(s_t,{}),w.jsx(ra,{codeString:nS.Example4})]}),w.jsxs("div",{className:"mt-5 mb-5",children:[w.jsx(o_t,{}),w.jsx(ra,{codeString:nS.Example5})]})]}),r_t=()=>{class e{constructor(){this.date=void 0}}return e.Fields={date:"date"},w.jsxs("div",{children:[w.jsx("h2",{children:"Form Date demo"}),w.jsx("p",{children:"In many examples you want to select only a date string, nothing more. This input does that clearly."}),w.jsx(ls,{initialValues:{date:"2020-10-10"},onSubmit:t=>{alert(JSON.stringify(t,null,2))},children:t=>w.jsxs("div",{children:[w.jsxs("pre",{children:["Form: ",JSON.stringify(t.values,null,2)]}),w.jsx(ore,{value:t.values.date,label:"When did you born?",onChange:n=>t.setFieldValue(e.Fields.date,n)})]})})]})},a_t=()=>{class e{constructor(){this.time=void 0}}return e.Fields={time:"time"},w.jsxs("div",{children:[w.jsx("h2",{children:"Form Date demo"}),w.jsx("p",{children:"Sometimes we just need to store a time, without anything else. 5 characters 00:00"}),w.jsx(ls,{initialValues:{time:"22:10"},onSubmit:t=>{alert(JSON.stringify(t,null,2))},children:t=>w.jsxs("div",{children:[w.jsxs("pre",{children:["Form: ",JSON.stringify(t.values,null,2)]}),w.jsx(t_t,{value:t.values.time,label:"At which hour did you born?",onChange:n=>t.setFieldValue(e.Fields.time,n)})]})})]})},i_t=()=>{class e{constructor(){this.datetime=void 0}}return e.Fields={datetime:"datetime"},w.jsxs("div",{children:[w.jsx("h2",{children:"Form DateTime demo"}),w.jsx("p",{children:"In some cases, you want to store the datetime values with timezone in the database. this the component to use."}),w.jsx(ls,{initialValues:{datetime:"2025-05-02T10:06:00.000Z"},onSubmit:t=>{alert(JSON.stringify(t,null,2))},children:t=>w.jsxs("div",{children:[w.jsxs("pre",{children:["Form: ",JSON.stringify(t.values,null,2)]}),w.jsx(e_t,{value:t.values.datetime,label:"When did you born?",onChange:n=>t.setFieldValue(e.Fields.datetime,n)})]})})]})},o_t=()=>{class e{constructor(){this.daterange=void 0}}return e.Fields={daterange$:"daterange",daterange:{startDate:"startDate",endDate:"endDate"}},w.jsxs("div",{children:[w.jsx("h2",{children:"Form DateRange demo"}),w.jsx("p",{children:"Choosing a date range also is an important thing in many applications, without timestamp."}),w.jsx(ls,{initialValues:{daterange:{endDate:new Date,startDate:new Date}},onSubmit:t=>{alert(JSON.stringify(t,null,2))},children:t=>w.jsxs("div",{children:[w.jsxs("pre",{children:["Form: ",JSON.stringify(t.values,null,2)]}),w.jsx(YEt,{value:t.values.daterange,label:"How many days take to eggs become chicken?",onChange:n=>t.setFieldValue(e.Fields.daterange$,n)})]})})]})},s_t=()=>{class e{constructor(){this.daterange=void 0}}return e.Fields={daterange$:"daterange",daterange:{startDate:"startDate",endDate:"endDate"}},w.jsxs("div",{children:[w.jsx("h2",{children:"Form DateTimeRange demo"}),w.jsx("p",{children:"Choosing a date range also is an important thing in many applications, a localised timezone."}),w.jsx(ls,{initialValues:{daterange:{endDate:new Date,startDate:new Date}},onSubmit:t=>{alert(JSON.stringify(t,null,2))},children:t=>w.jsxs("div",{children:[w.jsxs("pre",{children:["Form: ",JSON.stringify(t.values,null,2)]}),w.jsx(zae,{value:t.values.daterange,label:"Exactly what time egg came and gone??",onChange:n=>t.setFieldValue(e.Fields.daterange$,n)})]})})]})};function l_t({routerId:e}){return w.jsxs(pLe,{routerId:e,children:[w.jsx(mt,{path:"demo/form-select",element:w.jsx(HBe,{})}),w.jsx(mt,{path:"demo/modals",element:w.jsx(n8e,{})}),w.jsx(mt,{path:"demo/form-date",element:w.jsx(n_t,{})}),w.jsx(mt,{path:"demo",element:w.jsx(t8e,{})})]})}function u_t({children:e,queryClient:t,mockServer:n,config:r}){return e}var nv={},zp={},Tb={},lY;function c_t(){if(lY)return Tb;lY=1,Tb.__esModule=!0,Tb.getAllMatches=e,Tb.escapeRegExp=t,Tb.escapeSource=n;function e(r,a){for(var i=void 0,o=[];i=r.exec(a);)o.push(i);return o}function t(r){return r.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function n(r){return t(r).replace(/\/+/g,"/+")}return Tb}var fc={},uY;function d_t(){if(uY)return fc;uY=1,fc.__esModule=!0,fc.string=e,fc.greedySplat=t,fc.splat=n,fc.any=r,fc.int=a,fc.uuid=i,fc.createRule=o;function e(){var l=arguments.length<=0||arguments[0]===void 0?{}:arguments[0],u=l.maxLength,d=l.minLength,f=l.length;return o({validate:function(y){return!(u&&y.length>u||d&&y.lengthu||d&&h=L.length)break;j=L[I++]}else{if(I=L.next(),I.done)break;j=I.value}var z=j[0],Q=j[1],le=void 0;Q?le=T[Q]||n.string():z=="**"?(le=n.greedySplat(),Q="splat"):z=="*"?(le=n.splat(),Q="splat"):z==="("?A+="(?:":z===")"?A+=")?":A+=t.escapeSource(z),Q&&(A+=le.regex,_.push({paramName:Q,rule:le})),k.push(z)}var re=k[k.length-1]!=="*",ge=re?"":"$";return A=new RegExp("^"+A+"/*"+ge,"i"),{tokens:k,regexpSource:A,params:_,paramNames:_.map(function(me){return me.paramName})}}function u(v,E){return v.every(function(T,C){return E[C].rule.validate(T)})}function d(v){return typeof v=="string"&&(v={pattern:v,rules:{}}),a.default(v.pattern,"you cannot use an empty route pattern"),v.rules=v.rules||{},v}function f(v){return v=d(v),i[v.pattern]||(i[v.pattern]=l(v)),i[v.pattern]}function g(v,E){E.charAt(0)!=="/"&&(E="/"+E);var T=f(v),C=T.regexpSource,k=T.params,_=T.paramNames,A=E.match(C);if(A!=null){var P=E.slice(A[0].length);if(!(P[0]=="/"||A[0][A[0].length])){var N=A.slice(1).map(function(I){return I!=null?decodeURIComponent(I):I});if(u(N,k))return N=N.map(function(I,L){return k[L].rule.convert(I)}),{remainingPathname:P,paramValues:N,paramNames:_}}}}function y(v,E){E=E||{};for(var T=f(v),C=T.tokens,k=0,_="",A=0,P=void 0,N=void 0,I=void 0,L=0,j=C.length;L0,'Missing splat #%s for path "%s"',A,v.pattern),I!=null&&(_+=encodeURI(I))):P==="("?k+=1:P===")"?k-=1:P.charAt(0)===":"?(N=P.substring(1),I=E[N],a.default(I!=null||k>0,'Missing "%s" parameter for path "%s"',N,v.pattern),I!=null&&(_+=encodeURIComponent(I))):_+=P;return _.replace(/\/+/g,"/")}function h(v,E){var T=g(v,E)||{},C=T.paramNames,k=T.paramValues,_=[];if(!C)return null;for(var A=0;At[n]||n).toLowerCase()}function v_t(e,t){const n=Die(t);return e.filter(r=>Object.keys(n).every(a=>{let{operation:i,value:o}=n[a];o=MY(o||"");const l=MY(Ta.get(r,a)||"");if(!l)return!1;switch(i){case"contains":return l.includes(o);case"equals":return l===o;case"startsWith":return l.startsWith(o);case"endsWith":return l.endsWith(o);default:return!1}}))}class Ad{constructor(t){this.content=t}items(t){let n={};try{n=JSON.parse(t.jsonQuery)}catch{}return v_t(this.content,n).filter((a,i)=>!(it.startIndex+t.itemsPerPage-1))}total(){return this.content.length}create(t){const n={...t,uniqueId:qQ().substr(0,12)};return this.content.push(n),n}getOne(t){return this.content.find(n=>n.uniqueId===t)}deletes(t){return this.content=this.content.filter(n=>!t.includes(n.uniqueId)),!0}patchOne(t){return this.content=this.content.map(n=>n.uniqueId===t.uniqueId?{...n,...t}:n),t}}const Nh=e=>e.split(" or ").map(t=>t.split(" = ")[1].trim()),IY=new Ad([]);var DY,$Y,aS;function y_t(e,t,n,r,a){var i={};return Object.keys(r).forEach(function(o){i[o]=r[o]}),i.enumerable=!!i.enumerable,i.configurable=!!i.configurable,("value"in i||i.initializer)&&(i.writable=!0),i=n.slice().reverse().reduce(function(o,l){return l(e,t,o)||o},i),a&&i.initializer!==void 0&&(i.value=i.initializer?i.initializer.call(a):void 0,i.initializer=void 0),i.initializer===void 0?(Object.defineProperty(e,t,i),null):i}let b_t=(DY=en("files"),$Y=tn("get"),aS=class{async getFiles(t){return{data:{items:IY.items(t),itemsPerPage:t.itemsPerPage,totalItems:IY.total()}}}},y_t(aS.prototype,"getFiles",[DY,$Y],Object.getOwnPropertyDescriptor(aS.prototype,"getFiles"),aS.prototype),aS);const mr={emailProvider:new Ad([]),emailSender:new Ad([]),workspaceInvite:new Ad([]),publicJoinKey:new Ad([]),workspaces:new Ad([])};var LY,FY,jY,UY,BY,WY,zY,qY,HY,VY,Pi;function iS(e,t,n,r,a){var i={};return Object.keys(r).forEach(function(o){i[o]=r[o]}),i.enumerable=!!i.enumerable,i.configurable=!!i.configurable,("value"in i||i.initializer)&&(i.writable=!0),i=n.slice().reverse().reduce(function(o,l){return l(e,t,o)||o},i),a&&i.initializer!==void 0&&(i.value=i.initializer?i.initializer.call(a):void 0,i.initializer=void 0),i.initializer===void 0?(Object.defineProperty(e,t,i),null):i}let w_t=(LY=en("email-providers"),FY=tn("get"),jY=en("email-provider/:uniqueId"),UY=tn("get"),BY=en("email-provider"),WY=tn("patch"),zY=en("email-provider"),qY=tn("post"),HY=en("email-provider"),VY=tn("delete"),Pi=class{async getEmailProviders(t){return{data:{items:mr.emailProvider.items(t),itemsPerPage:t.itemsPerPage,totalItems:mr.emailProvider.total()}}}async getEmailProviderByUniqueId(t){return{data:mr.emailProvider.getOne(t.paramValues[0])}}async patchEmailProviderByUniqueId(t){return{data:mr.emailProvider.patchOne(t.body)}}async postRole(t){return{data:mr.emailProvider.create(t.body)}}async deleteRole(t){return mr.emailProvider.deletes(Nh(t.body.query)),{data:{}}}},iS(Pi.prototype,"getEmailProviders",[LY,FY],Object.getOwnPropertyDescriptor(Pi.prototype,"getEmailProviders"),Pi.prototype),iS(Pi.prototype,"getEmailProviderByUniqueId",[jY,UY],Object.getOwnPropertyDescriptor(Pi.prototype,"getEmailProviderByUniqueId"),Pi.prototype),iS(Pi.prototype,"patchEmailProviderByUniqueId",[BY,WY],Object.getOwnPropertyDescriptor(Pi.prototype,"patchEmailProviderByUniqueId"),Pi.prototype),iS(Pi.prototype,"postRole",[zY,qY],Object.getOwnPropertyDescriptor(Pi.prototype,"postRole"),Pi.prototype),iS(Pi.prototype,"deleteRole",[HY,VY],Object.getOwnPropertyDescriptor(Pi.prototype,"deleteRole"),Pi.prototype),Pi);var GY,YY,KY,XY,QY,JY,ZY,eK,tK,nK,Ai;function oS(e,t,n,r,a){var i={};return Object.keys(r).forEach(function(o){i[o]=r[o]}),i.enumerable=!!i.enumerable,i.configurable=!!i.configurable,("value"in i||i.initializer)&&(i.writable=!0),i=n.slice().reverse().reduce(function(o,l){return l(e,t,o)||o},i),a&&i.initializer!==void 0&&(i.value=i.initializer?i.initializer.call(a):void 0,i.initializer=void 0),i.initializer===void 0?(Object.defineProperty(e,t,i),null):i}let S_t=(GY=en("email-senders"),YY=tn("get"),KY=en("email-sender/:uniqueId"),XY=tn("get"),QY=en("email-sender"),JY=tn("patch"),ZY=en("email-sender"),eK=tn("post"),tK=en("email-sender"),nK=tn("delete"),Ai=class{async getEmailSenders(t){return{data:{items:mr.emailSender.items(t),itemsPerPage:t.itemsPerPage,totalItems:mr.emailSender.total()}}}async getEmailSenderByUniqueId(t){return{data:mr.emailSender.getOne(t.paramValues[0])}}async patchEmailSenderByUniqueId(t){return{data:mr.emailSender.patchOne(t.body)}}async postRole(t){return{data:mr.emailSender.create(t.body)}}async deleteRole(t){return mr.emailSender.deletes(Nh(t.body.query)),{data:{}}}},oS(Ai.prototype,"getEmailSenders",[GY,YY],Object.getOwnPropertyDescriptor(Ai.prototype,"getEmailSenders"),Ai.prototype),oS(Ai.prototype,"getEmailSenderByUniqueId",[KY,XY],Object.getOwnPropertyDescriptor(Ai.prototype,"getEmailSenderByUniqueId"),Ai.prototype),oS(Ai.prototype,"patchEmailSenderByUniqueId",[QY,JY],Object.getOwnPropertyDescriptor(Ai.prototype,"patchEmailSenderByUniqueId"),Ai.prototype),oS(Ai.prototype,"postRole",[ZY,eK],Object.getOwnPropertyDescriptor(Ai.prototype,"postRole"),Ai.prototype),oS(Ai.prototype,"deleteRole",[tK,nK],Object.getOwnPropertyDescriptor(Ai.prototype,"deleteRole"),Ai.prototype),Ai);var rK,aK,iK,oK,sK,lK,uK,cK,dK,fK,Ni;function sS(e,t,n,r,a){var i={};return Object.keys(r).forEach(function(o){i[o]=r[o]}),i.enumerable=!!i.enumerable,i.configurable=!!i.configurable,("value"in i||i.initializer)&&(i.writable=!0),i=n.slice().reverse().reduce(function(o,l){return l(e,t,o)||o},i),a&&i.initializer!==void 0&&(i.value=i.initializer?i.initializer.call(a):void 0,i.initializer=void 0),i.initializer===void 0?(Object.defineProperty(e,t,i),null):i}let E_t=(rK=en("public-join-keys"),aK=tn("get"),iK=en("public-join-key/:uniqueId"),oK=tn("get"),sK=en("public-join-key"),lK=tn("patch"),uK=en("public-join-key"),cK=tn("post"),dK=en("public-join-key"),fK=tn("delete"),Ni=class{async getPublicJoinKeys(t){return{data:{items:mr.publicJoinKey.items(t),itemsPerPage:t.itemsPerPage,totalItems:mr.publicJoinKey.total()}}}async getPublicJoinKeyByUniqueId(t){return{data:mr.publicJoinKey.getOne(t.paramValues[0])}}async patchPublicJoinKeyByUniqueId(t){return{data:mr.publicJoinKey.patchOne(t.body)}}async postPublicJoinKey(t){return{data:mr.publicJoinKey.create(t.body)}}async deletePublicJoinKey(t){return mr.publicJoinKey.deletes(Nh(t.body.query)),{data:{}}}},sS(Ni.prototype,"getPublicJoinKeys",[rK,aK],Object.getOwnPropertyDescriptor(Ni.prototype,"getPublicJoinKeys"),Ni.prototype),sS(Ni.prototype,"getPublicJoinKeyByUniqueId",[iK,oK],Object.getOwnPropertyDescriptor(Ni.prototype,"getPublicJoinKeyByUniqueId"),Ni.prototype),sS(Ni.prototype,"patchPublicJoinKeyByUniqueId",[sK,lK],Object.getOwnPropertyDescriptor(Ni.prototype,"patchPublicJoinKeyByUniqueId"),Ni.prototype),sS(Ni.prototype,"postPublicJoinKey",[uK,cK],Object.getOwnPropertyDescriptor(Ni.prototype,"postPublicJoinKey"),Ni.prototype),sS(Ni.prototype,"deletePublicJoinKey",[dK,fK],Object.getOwnPropertyDescriptor(Ni.prototype,"deletePublicJoinKey"),Ni.prototype),Ni);const Cb=new Ad([{name:"Administrator",uniqueId:"administrator"}]);var pK,hK,mK,gK,vK,yK,bK,wK,SK,EK,Mi;function lS(e,t,n,r,a){var i={};return Object.keys(r).forEach(function(o){i[o]=r[o]}),i.enumerable=!!i.enumerable,i.configurable=!!i.configurable,("value"in i||i.initializer)&&(i.writable=!0),i=n.slice().reverse().reduce(function(o,l){return l(e,t,o)||o},i),a&&i.initializer!==void 0&&(i.value=i.initializer?i.initializer.call(a):void 0,i.initializer=void 0),i.initializer===void 0?(Object.defineProperty(e,t,i),null):i}let T_t=(pK=en("roles"),hK=tn("get"),mK=en("role/:uniqueId"),gK=tn("get"),vK=en("role"),yK=tn("patch"),bK=en("role"),wK=tn("delete"),SK=en("role"),EK=tn("post"),Mi=class{async getRoles(t){return{data:{items:Cb.items(t),itemsPerPage:t.itemsPerPage,totalItems:Cb.total()}}}async getRoleByUniqueId(t){return{data:Cb.getOne(t.paramValues[0])}}async patchRoleByUniqueId(t){return{data:Cb.patchOne(t.body)}}async deleteRole(t){return Cb.deletes(Nh(t.body.query)),{data:{}}}async postRole(t){return{data:Cb.create(t.body)}}},lS(Mi.prototype,"getRoles",[pK,hK],Object.getOwnPropertyDescriptor(Mi.prototype,"getRoles"),Mi.prototype),lS(Mi.prototype,"getRoleByUniqueId",[mK,gK],Object.getOwnPropertyDescriptor(Mi.prototype,"getRoleByUniqueId"),Mi.prototype),lS(Mi.prototype,"patchRoleByUniqueId",[vK,yK],Object.getOwnPropertyDescriptor(Mi.prototype,"patchRoleByUniqueId"),Mi.prototype),lS(Mi.prototype,"deleteRole",[bK,wK],Object.getOwnPropertyDescriptor(Mi.prototype,"deleteRole"),Mi.prototype),lS(Mi.prototype,"postRole",[SK,EK],Object.getOwnPropertyDescriptor(Mi.prototype,"postRole"),Mi.prototype),Mi);const C_t=[{activeMatcher:null,capability:null,capabilityId:null,children:[{activeMatcher:"/workspace/invite(s)?",capability:null,capabilityId:null,created:1711043161316914e3,createdFormatted:"2024/03/21 18:46:01",href:"/selfservice/workspace-invites",icon:"common/workspaceinvite.svg",label:"Invites",parentId:"fireback",uniqueId:"invites",updated:1711043161316914e3,visibility:"A"},{activeMatcher:"publicjoinkey",capability:null,capabilityId:null,created:171104316131093e4,createdFormatted:"2024/03/21 18:46:01",href:"/selfservice/public-join-keys",icon:"common/joinkey.svg",label:"Public join keys",parentId:"fireback",uniqueId:"publicjoinkey",updated:171104316131093e4,visibility:"A"},{activeMatcher:"/role/",capability:null,capabilityId:null,created:1711043161314546e3,createdFormatted:"2024/03/21 18:46:01",href:"/selfservice/roles",icon:"common/role.svg",label:"Roles",parentId:"fireback",uniqueId:"roles",updated:1711043161314546e3,visibility:"A"}],created:1711043161319555e3,createdFormatted:"2024/03/21 18:46:01",href:null,icon:null,label:"Workspace",uniqueId:"fireback",updated:1711043161319555e3,visibility:"A"},{activeMatcher:null,capability:null,capabilityId:null,children:[{activeMatcher:"drives",capability:null,capabilityId:null,created:1711043161320805e3,createdFormatted:"2024/03/21 18:46:01",href:"/manage/drives",icon:"common/drive.svg",label:"Drive & Files",parentId:"root",uniqueId:"drive_files",updated:1711043161320805e3,visibility:"A"},{activeMatcher:"email-provider",capability:null,capabilityId:null,created:1711043161309663e3,createdFormatted:"2024/03/21 18:46:01",href:"/manage/email-providers",icon:"common/emailprovider.svg",label:"Email Provider",parentId:"root",uniqueId:"email_provider",updated:1711043161309663e3,visibility:"A"},{activeMatcher:"email-sender",capability:null,capabilityId:null,created:171104316131211e4,createdFormatted:"2024/03/21 18:46:01",href:"/manage/email-senders",icon:"common/mail.svg",label:"Email Sender",parentId:"root",uniqueId:"email_sender",updated:171104316131211e4,visibility:"A"},{activeMatcher:"/user/",capability:null,capabilityId:null,created:1711043161318088e3,createdFormatted:"2024/03/21 18:46:01",href:"/manage/users",icon:"common/user.svg",label:"Users",parentId:"root",uniqueId:"users",updated:1711043161318088e3,visibility:"A"},{activeMatcher:"/workspace/config",capability:null,capabilityId:null,created:17110431613157e5,createdFormatted:"2024/03/21 18:46:01",href:"/manage/workspace-config",icon:"ios-theme/icons/settings.svg",label:"Workspace Config",parentId:"root",uniqueId:"workspace_config",updated:17110431613157e5,visibility:"A"},{activeMatcher:"workspace-type",capability:null,capabilityId:null,created:1711043161313308e3,createdFormatted:"2024/03/21 18:46:01",href:"/manage/workspace-types",icon:"ios-theme/icons/settings.svg",label:"Workspace Types",parentId:"root",uniqueId:"workspace_types",updated:1711043161313308e3,visibility:"A"},{activeMatcher:"/workspaces/|workspace/new",capability:null,capabilityId:null,created:171104316132216e4,createdFormatted:"2024/03/21 18:46:01",href:"/manage/workspaces",icon:"common/workspace.svg",label:"Workspaces",parentId:"root",uniqueId:"workspaces",updated:171104316132216e4,visibility:"A"}],created:1711043161319555e3,createdFormatted:"2024/03/21 18:46:01",href:null,icon:null,label:"Root",uniqueId:"root",updated:1711043161319555e3,visibility:"A"},{activeMatcher:null,capability:null,capabilityId:null,children:[{activeMatcher:"/invites/",capability:null,capabilityId:null,created:1711043161328479e3,createdFormatted:"2024/03/21 18:46:01",href:"/selfservice/user-invitations",icon:"common/workspaceinvite.svg",label:"My Invitations",parentId:"personal",uniqueId:"my_invitation",updated:1711043161328479e3,visibility:"A"},{activeMatcher:"/settings",capability:null,capabilityId:null,created:1711043161325229e3,createdFormatted:"2024/03/21 18:46:01",href:"/settings",icon:"ios-theme/icons/settings.svg",label:"Settings",parentId:"personal",uniqueId:"settings",updated:1711043161325229e3,visibility:"A"},{activeMatcher:"/selfservice",capability:null,capabilityId:null,created:1711043161325229e3,createdFormatted:"2024/03/21 18:46:01",href:"/selfservice",icon:"ios-theme/icons/settings.svg",label:"Account & Profile",parentId:"personal",uniqueId:"settings",updated:1711043161325229e3,visibility:"A"}],created:1711043161323813e3,createdFormatted:"2024/03/21 18:46:01",href:null,icon:null,label:"Personal",uniqueId:"personal",updated:1711043161323813e3,visibility:"A"}];var TK,CK,uS;function k_t(e,t,n,r,a){var i={};return Object.keys(r).forEach(function(o){i[o]=r[o]}),i.enumerable=!!i.enumerable,i.configurable=!!i.configurable,("value"in i||i.initializer)&&(i.writable=!0),i=n.slice().reverse().reduce(function(o,l){return l(e,t,o)||o},i),a&&i.initializer!==void 0&&(i.value=i.initializer?i.initializer.call(a):void 0,i.initializer=void 0),i.initializer===void 0?(Object.defineProperty(e,t,i),null):i}let x_t=(TK=en("cte-app-menus"),CK=tn("get"),uS=class{async getAppMenu(t){return{data:{items:C_t}}}},k_t(uS.prototype,"getAppMenu",[TK,CK],Object.getOwnPropertyDescriptor(uS.prototype,"getAppMenu"),uS.prototype),uS);const __t=()=>{if(Math.random()>.5)switch(Math.floor(Math.random()*3)){case 0:return`10.${Math.floor(Math.random()*256)}.${Math.floor(Math.random()*256)}.${Math.floor(Math.random()*256)}`;case 1:return`172.${Math.floor(16+Math.random()*16)}.${Math.floor(Math.random()*256)}.${Math.floor(Math.random()*256)}`;case 2:return`192.168.${Math.floor(Math.random()*256)}.${Math.floor(Math.random()*256)}`;default:return`192.168.${Math.floor(Math.random()*256)}.${Math.floor(Math.random()*256)}`}else return`${Math.floor(Math.random()*223)+1}.${Math.floor(Math.random()*256)}.${Math.floor(Math.random()*256)}.${Math.floor(Math.random()*256)}`},O_t=["Ali","Behnaz","Carlos","Daniela","Ethan","Fatima","Gustavo","Helena","Isla","Javad","Kamila","Leila","Mateo","Nasim","Omid","Parisa","Rania","Saeed","Tomas","Ursula","Vali","Wojtek","Zara","Alice","Bob","Charlie","Diana","George","Mohammed","Julia","Khalid","Lena","Mohammad","Nina","Oscar","Quentin","Rosa","Sam","Tina","Umar","Vera","Waleed","Xenia","Yara","Ziad","Maxim","Johann","Krzysztof","Baris","Mehmet"],R_t=["Smith","Johnson","Williams","Brown","Jones","Garcia","Miller","Davis","Rodriguez","Martinez","Hernandez","Lopez","Gonzalez","Wilson","Anderson","Thomas","Taylor","Moore","Jackson","Martin","Lee","Perez","Thompson","White","Harris","Sanchez","Clark","Ramirez","Lewis","Robinson","Walker","Young","Allen","King","Wright","Scott","Torres","Nguyen","Hill","Flores","Green","Adams","Nelson","Baker","Hall","Rivera","Campbell","Mitchell","Carter","Roberts","Kowalski","Nowak","Jankowski","Zieliński","Wiśniewski","Lewandowski","Kaczmarek","Bąk","Pereira","Altıntaş"],P_t=[{addressLine1:"123 Main St",addressLine2:"Apt 4",city:"Berlin",stateOrProvince:"Berlin",postalCode:"10115",countryCode:"DE"},{addressLine1:"456 Elm St",addressLine2:"Apt 23",city:"Paris",stateOrProvince:"Île-de-France",postalCode:"75001",countryCode:"FR"},{addressLine1:"789 Oak Dr",addressLine2:"Apt 9",city:"Warszawa",stateOrProvince:"Mazowieckie",postalCode:"01010",countryCode:"PL"},{addressLine1:"101 Maple Ave",addressLine2:"",city:"Tehran",stateOrProvince:"تهران",postalCode:"11365",countryCode:"IR"},{addressLine1:"202 Pine St",addressLine2:"Apt 7",city:"Madrid",stateOrProvince:"Community of Madrid",postalCode:"28001",countryCode:"ES"},{addressLine1:"456 Park Ave",addressLine2:"Suite 5",city:"New York",stateOrProvince:"NY",postalCode:"10001",countryCode:"US"},{addressLine1:"789 Sunset Blvd",addressLine2:"Unit 32",city:"Los Angeles",stateOrProvince:"CA",postalCode:"90001",countryCode:"US"},{addressLine1:"12 Hauptstrasse",addressLine2:"Apt 2",city:"Munich",stateOrProvince:"Bavaria",postalCode:"80331",countryCode:"DE"},{addressLine1:"75 Taksim Square",addressLine2:"Apt 12",city:"Istanbul",stateOrProvince:"Istanbul",postalCode:"34430",countryCode:"TR"},{addressLine1:"321 Wierzbowa",addressLine2:"",city:"Kraków",stateOrProvince:"Małopolskie",postalCode:"31000",countryCode:"PL"},{addressLine1:"55 Rue de Rivoli",addressLine2:"Apt 10",city:"Paris",stateOrProvince:"Île-de-France",postalCode:"75004",countryCode:"FR"},{addressLine1:"1001 Tehran Ave",addressLine2:"",city:"Tehran",stateOrProvince:"تهران",postalCode:"14155",countryCode:"IR"},{addressLine1:"9 Calle de Alcalá",addressLine2:"Apt 6",city:"Madrid",stateOrProvince:"Madrid",postalCode:"28009",countryCode:"ES"},{addressLine1:"222 King St",addressLine2:"Suite 1B",city:"London",stateOrProvince:"London",postalCode:"E1 6AN",countryCode:"GB"},{addressLine1:"15 St. Peters Rd",addressLine2:"",city:"Toronto",stateOrProvince:"Ontario",postalCode:"M5A 1A2",countryCode:"CA"},{addressLine1:"1340 Via Roma",addressLine2:"",city:"Rome",stateOrProvince:"Lazio",postalCode:"00100",countryCode:"IT"},{addressLine1:"42 Nevsky Prospekt",addressLine2:"Apt 1",city:"Saint Petersburg",stateOrProvince:"Leningradskaya",postalCode:"190000",countryCode:"RU"},{addressLine1:"3 Rüdesheimer Str.",addressLine2:"Apt 9",city:"Frankfurt",stateOrProvince:"Hessen",postalCode:"60326",countryCode:"DE"},{addressLine1:"271 Süleyman Demirel Bulvarı",addressLine2:"Apt 45",city:"Ankara",stateOrProvince:"Ankara",postalCode:"06100",countryCode:"TR"},{addressLine1:"7 Avenues des Champs-Élysées",addressLine2:"",city:"Paris",stateOrProvince:"Île-de-France",postalCode:"75008",countryCode:"FR"},{addressLine1:"125 E. 9th St.",addressLine2:"Apt 12",city:"Chicago",stateOrProvince:"IL",postalCode:"60606",countryCode:"US"},{addressLine1:"30 Rue de la Paix",addressLine2:"",city:"Paris",stateOrProvince:"Île-de-France",postalCode:"75002",countryCode:"FR"},{addressLine1:"16 Zlote Tarasy",addressLine2:"Apt 18",city:"Warszawa",stateOrProvince:"Mazowieckie",postalCode:"00-510",countryCode:"PL"},{addressLine1:"120 Váci utca",addressLine2:"",city:"Budapest",stateOrProvince:"Budapest",postalCode:"1056",countryCode:"HU"},{addressLine1:"22 Sukhbaatar Sq.",addressLine2:"",city:"Ulaanbaatar",stateOrProvince:"Central",postalCode:"14190",countryCode:"MN"},{addressLine1:"34 Princes Street",addressLine2:"Flat 1",city:"Edinburgh",stateOrProvince:"Scotland",postalCode:"EH2 4AY",countryCode:"GB"},{addressLine1:"310 Alzaibiyah",addressLine2:"",city:"Amman",stateOrProvince:"Amman",postalCode:"11183",countryCode:"JO"},{addressLine1:"401 Taksim Caddesi",addressLine2:"Apt 25",city:"Istanbul",stateOrProvince:"Istanbul",postalCode:"34430",countryCode:"TR"},{addressLine1:"203 High Street",addressLine2:"Unit 3",city:"London",stateOrProvince:"London",postalCode:"W1T 2LQ",countryCode:"GB"},{addressLine1:"58 Via Nazionale",addressLine2:"",city:"Rome",stateOrProvince:"Lazio",postalCode:"00184",countryCode:"IT"},{addressLine1:"47 Gloucester Road",addressLine2:"",city:"London",stateOrProvince:"London",postalCode:"SW7 4QA",countryCode:"GB"},{addressLine1:"98 Calle de Bravo Murillo",addressLine2:"",city:"Madrid",stateOrProvince:"Madrid",postalCode:"28039",countryCode:"ES"},{addressLine1:"57 Mirza Ghalib Street",addressLine2:"",city:"Tehran",stateOrProvince:"تهران",postalCode:"15996",countryCode:"IR"},{addressLine1:"35 Królewska St",addressLine2:"",city:"Warszawa",stateOrProvince:"Mazowieckie",postalCode:"00-065",countryCode:"PL"},{addressLine1:"12 5th Ave",addressLine2:"",city:"New York",stateOrProvince:"NY",postalCode:"10128",countryCode:"US"}],A_t=()=>{const e=new Uint8Array(18);window.crypto.getRandomValues(e);const t=Array.from(e).map(r=>r.toString(36).padStart(2,"0")).join(""),n=Date.now().toString(36);return n+t.slice(0,30-n.length)},N_t=()=>({uniqueId:A_t(),firstName:Ta.sample(O_t),lastName:Ta.sample(R_t),photo:`https://randomuser.me/api/portraits/men/${Math.floor(Math.random()*100)}.jpg`,birthDate:new Date().getDate()+"/"+new Date().getMonth()+"/"+new Date().getFullYear(),gender:Math.random()>.5?1:0,title:Math.random()>.5?"Mr.":"Ms.",avatar:`https://randomuser.me/api/portraits/men/${Math.floor(Math.random()*100)}.jpg`,lastIpAddress:__t(),primaryAddress:Ta.sample(P_t)}),kb=new Ad(Ta.times(1e4,()=>N_t()));var kK,xK,_K,OK,RK,PK,AK,NK,MK,IK,Ii;function cS(e,t,n,r,a){var i={};return Object.keys(r).forEach(function(o){i[o]=r[o]}),i.enumerable=!!i.enumerable,i.configurable=!!i.configurable,("value"in i||i.initializer)&&(i.writable=!0),i=n.slice().reverse().reduce(function(o,l){return l(e,t,o)||o},i),a&&i.initializer!==void 0&&(i.value=i.initializer?i.initializer.call(a):void 0,i.initializer=void 0),i.initializer===void 0?(Object.defineProperty(e,t,i),null):i}let M_t=(kK=en("users"),xK=tn("get"),_K=en("user"),OK=tn("delete"),RK=en("user/:uniqueId"),PK=tn("get"),AK=en("user"),NK=tn("patch"),MK=en("user"),IK=tn("post"),Ii=class{async getUsers(t){return{data:{items:kb.items(t),itemsPerPage:t.itemsPerPage,totalItems:kb.total()}}}async deleteUser(t){return kb.deletes(Nh(t.body.query)),{data:{}}}async getUserByUniqueId(t){return{data:kb.getOne(t.paramValues[0])}}async patchUserByUniqueId(t){return{data:kb.patchOne(t.body)}}async postUser(t){return{data:kb.create(t.body)}}},cS(Ii.prototype,"getUsers",[kK,xK],Object.getOwnPropertyDescriptor(Ii.prototype,"getUsers"),Ii.prototype),cS(Ii.prototype,"deleteUser",[_K,OK],Object.getOwnPropertyDescriptor(Ii.prototype,"deleteUser"),Ii.prototype),cS(Ii.prototype,"getUserByUniqueId",[RK,PK],Object.getOwnPropertyDescriptor(Ii.prototype,"getUserByUniqueId"),Ii.prototype),cS(Ii.prototype,"patchUserByUniqueId",[AK,NK],Object.getOwnPropertyDescriptor(Ii.prototype,"patchUserByUniqueId"),Ii.prototype),cS(Ii.prototype,"postUser",[MK,IK],Object.getOwnPropertyDescriptor(Ii.prototype,"postUser"),Ii.prototype),Ii);class I_t{}var DK,$K,LK,FK,jK,UK,BK,WK,zK,qK,Di;function dS(e,t,n,r,a){var i={};return Object.keys(r).forEach(function(o){i[o]=r[o]}),i.enumerable=!!i.enumerable,i.configurable=!!i.configurable,("value"in i||i.initializer)&&(i.writable=!0),i=n.slice().reverse().reduce(function(o,l){return l(e,t,o)||o},i),a&&i.initializer!==void 0&&(i.value=i.initializer?i.initializer.call(a):void 0,i.initializer=void 0),i.initializer===void 0?(Object.defineProperty(e,t,i),null):i}let D_t=(DK=en("workspace-invites"),$K=tn("get"),LK=en("workspace-invite/:uniqueId"),FK=tn("get"),jK=en("workspace-invite"),UK=tn("patch"),BK=en("workspace/invite"),WK=tn("post"),zK=en("workspace-invite"),qK=tn("delete"),Di=class{async getWorkspaceInvites(t){return{data:{items:mr.workspaceInvite.items(t),itemsPerPage:t.itemsPerPage,totalItems:mr.workspaceInvite.total()}}}async getWorkspaceInviteByUniqueId(t){return{data:mr.workspaceInvite.getOne(t.paramValues[0])}}async patchWorkspaceInviteByUniqueId(t){return{data:mr.workspaceInvite.patchOne(t.body)}}async postWorkspaceInvite(t){return{data:mr.workspaceInvite.create(t.body)}}async deleteWorkspaceInvite(t){return mr.workspaceInvite.deletes(Nh(t.body.query)),{data:{}}}},dS(Di.prototype,"getWorkspaceInvites",[DK,$K],Object.getOwnPropertyDescriptor(Di.prototype,"getWorkspaceInvites"),Di.prototype),dS(Di.prototype,"getWorkspaceInviteByUniqueId",[LK,FK],Object.getOwnPropertyDescriptor(Di.prototype,"getWorkspaceInviteByUniqueId"),Di.prototype),dS(Di.prototype,"patchWorkspaceInviteByUniqueId",[jK,UK],Object.getOwnPropertyDescriptor(Di.prototype,"patchWorkspaceInviteByUniqueId"),Di.prototype),dS(Di.prototype,"postWorkspaceInvite",[BK,WK],Object.getOwnPropertyDescriptor(Di.prototype,"postWorkspaceInvite"),Di.prototype),dS(Di.prototype,"deleteWorkspaceInvite",[zK,qK],Object.getOwnPropertyDescriptor(Di.prototype,"deleteWorkspaceInvite"),Di.prototype),Di);const xb=new Ad([{title:"Student workspace type",uniqueId:"1",slug:"/student"}]);var HK,VK,GK,YK,KK,XK,QK,JK,ZK,eX,$i;function fS(e,t,n,r,a){var i={};return Object.keys(r).forEach(function(o){i[o]=r[o]}),i.enumerable=!!i.enumerable,i.configurable=!!i.configurable,("value"in i||i.initializer)&&(i.writable=!0),i=n.slice().reverse().reduce(function(o,l){return l(e,t,o)||o},i),a&&i.initializer!==void 0&&(i.value=i.initializer?i.initializer.call(a):void 0,i.initializer=void 0),i.initializer===void 0?(Object.defineProperty(e,t,i),null):i}let $_t=(HK=en("workspace-types"),VK=tn("get"),GK=en("workspace-type/:uniqueId"),YK=tn("get"),KK=en("workspace-type"),XK=tn("patch"),QK=en("workspace-type"),JK=tn("delete"),ZK=en("workspace-type"),eX=tn("post"),$i=class{async getWorkspaceTypes(t){return{data:{items:xb.items(t),itemsPerPage:t.itemsPerPage,totalItems:xb.total()}}}async getWorkspaceTypeByUniqueId(t){return{data:xb.getOne(t.paramValues[0])}}async patchWorkspaceTypeByUniqueId(t){return{data:xb.patchOne(t.body)}}async deleteWorkspaceType(t){return xb.deletes(Nh(t.body.query)),{data:{}}}async postWorkspaceType(t){return{data:xb.create(t.body)}}},fS($i.prototype,"getWorkspaceTypes",[HK,VK],Object.getOwnPropertyDescriptor($i.prototype,"getWorkspaceTypes"),$i.prototype),fS($i.prototype,"getWorkspaceTypeByUniqueId",[GK,YK],Object.getOwnPropertyDescriptor($i.prototype,"getWorkspaceTypeByUniqueId"),$i.prototype),fS($i.prototype,"patchWorkspaceTypeByUniqueId",[KK,XK],Object.getOwnPropertyDescriptor($i.prototype,"patchWorkspaceTypeByUniqueId"),$i.prototype),fS($i.prototype,"deleteWorkspaceType",[QK,JK],Object.getOwnPropertyDescriptor($i.prototype,"deleteWorkspaceType"),$i.prototype),fS($i.prototype,"postWorkspaceType",[ZK,eX],Object.getOwnPropertyDescriptor($i.prototype,"postWorkspaceType"),$i.prototype),$i);var tX,nX,rX,aX,iX,oX,sX,lX,uX,cX,dX,fX,Ha;function _b(e,t,n,r,a){var i={};return Object.keys(r).forEach(function(o){i[o]=r[o]}),i.enumerable=!!i.enumerable,i.configurable=!!i.configurable,("value"in i||i.initializer)&&(i.writable=!0),i=n.slice().reverse().reduce(function(o,l){return l(e,t,o)||o},i),a&&i.initializer!==void 0&&(i.value=i.initializer?i.initializer.call(a):void 0,i.initializer=void 0),i.initializer===void 0?(Object.defineProperty(e,t,i),null):i}let L_t=(tX=en("workspaces"),nX=tn("get"),rX=en("cte-workspaces"),aX=tn("get"),iX=en("workspace/:uniqueId"),oX=tn("get"),sX=en("workspace"),lX=tn("patch"),uX=en("workspace"),cX=tn("delete"),dX=en("workspace"),fX=tn("post"),Ha=class{async getWorkspaces(t){return{data:{items:mr.workspaces.items(t),itemsPerPage:t.itemsPerPage,totalItems:mr.workspaces.total()}}}async getWorkspacesCte(t){return{data:{items:mr.workspaces.items(t),itemsPerPage:t.itemsPerPage,totalItems:mr.workspaces.total()}}}async getWorkspaceByUniqueId(t){return{data:mr.workspaces.getOne(t.paramValues[0])}}async patchWorkspaceByUniqueId(t){return{data:mr.workspaces.patchOne(t.body)}}async deleteWorkspace(t){return mr.workspaces.deletes(Nh(t.body.query)),{data:{}}}async postWorkspace(t){return{data:mr.workspaces.create(t.body)}}},_b(Ha.prototype,"getWorkspaces",[tX,nX],Object.getOwnPropertyDescriptor(Ha.prototype,"getWorkspaces"),Ha.prototype),_b(Ha.prototype,"getWorkspacesCte",[rX,aX],Object.getOwnPropertyDescriptor(Ha.prototype,"getWorkspacesCte"),Ha.prototype),_b(Ha.prototype,"getWorkspaceByUniqueId",[iX,oX],Object.getOwnPropertyDescriptor(Ha.prototype,"getWorkspaceByUniqueId"),Ha.prototype),_b(Ha.prototype,"patchWorkspaceByUniqueId",[sX,lX],Object.getOwnPropertyDescriptor(Ha.prototype,"patchWorkspaceByUniqueId"),Ha.prototype),_b(Ha.prototype,"deleteWorkspace",[uX,cX],Object.getOwnPropertyDescriptor(Ha.prototype,"deleteWorkspace"),Ha.prototype),_b(Ha.prototype,"postWorkspace",[dX,fX],Object.getOwnPropertyDescriptor(Ha.prototype,"postWorkspace"),Ha.prototype),Ha);var pX,hX,mX,gX,qp;function vX(e,t,n,r,a){var i={};return Object.keys(r).forEach(function(o){i[o]=r[o]}),i.enumerable=!!i.enumerable,i.configurable=!!i.configurable,("value"in i||i.initializer)&&(i.writable=!0),i=n.slice().reverse().reduce(function(o,l){return l(e,t,o)||o},i),a&&i.initializer!==void 0&&(i.value=i.initializer?i.initializer.call(a):void 0,i.initializer=void 0),i.initializer===void 0?(Object.defineProperty(e,t,i),null):i}let F_t=(pX=en("workspace-config"),hX=tn("get"),mX=en("workspace-wconfig/distiwnct"),gX=tn("patch"),qp=class{async getWorkspaceConfig(t){return{data:{enableOtp:!0,forcePasswordOnPhone:!0}}}async setWorkspaceConfig(t){return{data:t.body}}},vX(qp.prototype,"getWorkspaceConfig",[pX,hX],Object.getOwnPropertyDescriptor(qp.prototype,"getWorkspaceConfig"),qp.prototype),vX(qp.prototype,"setWorkspaceConfig",[mX,gX],Object.getOwnPropertyDescriptor(qp.prototype,"setWorkspaceConfig"),qp.prototype),qp);const j_t=[new g_t,new T_t,new x_t,new M_t,new $_t,new b_t,new w_t,new S_t,new D_t,new E_t,new I_t,new L_t,new F_t],U_t=R.createContext(null),q$={didCatch:!1,error:null};class B_t extends R.Component{constructor(t){super(t),this.resetErrorBoundary=this.resetErrorBoundary.bind(this),this.state=q$}static getDerivedStateFromError(t){return{didCatch:!0,error:t}}resetErrorBoundary(){const{error:t}=this.state;if(t!==null){for(var n,r,a=arguments.length,i=new Array(a),o=0;o0&&arguments[0]!==void 0?arguments[0]:[],t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[];return e.length!==t.length||e.some((n,r)=>!Object.is(n,t[r]))}function z_t({error:e,resetErrorBoundary:t}){return w.jsxs("div",{role:"alert",children:[w.jsx("p",{children:"Something went wrong:"}),w.jsx("div",{style:{color:"red",padding:"30px"},children:e.message})]})}function q_t(e){let t="en";const n=e.match(/\/(fa|en|ar|pl|de)\//);return n&&n[1]&&(t=n[1]),t}function H_t(){const[e,t]=R.useState(window.location.toString());return R.useEffect(()=>{const n=()=>{t(window.location.hash)};return window.addEventListener("popstate",n),window.addEventListener("pushState",n),window.addEventListener("replaceState",n),()=>{window.removeEventListener("popstate",n),window.removeEventListener("pushState",n),window.removeEventListener("replaceState",n)}},[]),{hash:e}}function V_t(){const{hash:e}=H_t();let t="en",n="us",r="ltr";return kr.FORCED_LOCALE?t=kr.FORCED_LOCALE:t=q_t(e),t==="fa"&&(n="ir",r="rtl"),{locale:t,region:n,dir:r}}const gO=R.createContext(null);gO.displayName="PanelGroupContext";const Ea={group:"data-panel-group",groupDirection:"data-panel-group-direction",groupId:"data-panel-group-id",panel:"data-panel",panelCollapsible:"data-panel-collapsible",panelId:"data-panel-id",panelSize:"data-panel-size",resizeHandle:"data-resize-handle",resizeHandleActive:"data-resize-handle-active",resizeHandleEnabled:"data-panel-resize-handle-enabled",resizeHandleId:"data-panel-resize-handle-id",resizeHandleState:"data-resize-handle-state"},J4=10,Av=R.useLayoutEffect,yX=DS.useId,G_t=typeof yX=="function"?yX:()=>null;let Y_t=0;function Z4(e=null){const t=G_t(),n=R.useRef(e||t||null);return n.current===null&&(n.current=""+Y_t++),e??n.current}function $ie({children:e,className:t="",collapsedSize:n,collapsible:r,defaultSize:a,forwardedRef:i,id:o,maxSize:l,minSize:u,onCollapse:d,onExpand:f,onResize:g,order:y,style:h,tagName:v="div",...E}){const T=R.useContext(gO);if(T===null)throw Error("Panel components must be rendered within a PanelGroup container");const{collapsePanel:C,expandPanel:k,getPanelSize:_,getPanelStyle:A,groupId:P,isPanelCollapsed:N,reevaluatePanelConstraints:I,registerPanel:L,resizePanel:j,unregisterPanel:z}=T,Q=Z4(o),le=R.useRef({callbacks:{onCollapse:d,onExpand:f,onResize:g},constraints:{collapsedSize:n,collapsible:r,defaultSize:a,maxSize:l,minSize:u},id:Q,idIsFromProps:o!==void 0,order:y});R.useRef({didLogMissingDefaultSizeWarning:!1}),Av(()=>{const{callbacks:ge,constraints:me}=le.current,W={...me};le.current.id=Q,le.current.idIsFromProps=o!==void 0,le.current.order=y,ge.onCollapse=d,ge.onExpand=f,ge.onResize=g,me.collapsedSize=n,me.collapsible=r,me.defaultSize=a,me.maxSize=l,me.minSize=u,(W.collapsedSize!==me.collapsedSize||W.collapsible!==me.collapsible||W.maxSize!==me.maxSize||W.minSize!==me.minSize)&&I(le.current,W)}),Av(()=>{const ge=le.current;return L(ge),()=>{z(ge)}},[y,Q,L,z]),R.useImperativeHandle(i,()=>({collapse:()=>{C(le.current)},expand:ge=>{k(le.current,ge)},getId(){return Q},getSize(){return _(le.current)},isCollapsed(){return N(le.current)},isExpanded(){return!N(le.current)},resize:ge=>{j(le.current,ge)}}),[C,k,_,N,Q,j]);const re=A(le.current,a);return R.createElement(v,{...E,children:e,className:t,id:Q,style:{...re,...h},[Ea.groupId]:P,[Ea.panel]:"",[Ea.panelCollapsible]:r||void 0,[Ea.panelId]:Q,[Ea.panelSize]:parseFloat(""+re.flexGrow).toFixed(1)})}const eU=R.forwardRef((e,t)=>R.createElement($ie,{...e,forwardedRef:t}));$ie.displayName="Panel";eU.displayName="forwardRef(Panel)";let G3=null,nx=-1,Yp=null;function K_t(e,t){if(t){const n=(t&Bie)!==0,r=(t&Wie)!==0,a=(t&zie)!==0,i=(t&qie)!==0;if(n)return a?"se-resize":i?"ne-resize":"e-resize";if(r)return a?"sw-resize":i?"nw-resize":"w-resize";if(a)return"s-resize";if(i)return"n-resize"}switch(e){case"horizontal":return"ew-resize";case"intersection":return"move";case"vertical":return"ns-resize"}}function X_t(){Yp!==null&&(document.head.removeChild(Yp),G3=null,Yp=null,nx=-1)}function H$(e,t){var n,r;const a=K_t(e,t);if(G3!==a){if(G3=a,Yp===null&&(Yp=document.createElement("style"),document.head.appendChild(Yp)),nx>=0){var i;(i=Yp.sheet)===null||i===void 0||i.removeRule(nx)}nx=(n=(r=Yp.sheet)===null||r===void 0?void 0:r.insertRule(`*{cursor: ${a} !important;}`))!==null&&n!==void 0?n:-1}}function Lie(e){return e.type==="keydown"}function Fie(e){return e.type.startsWith("pointer")}function jie(e){return e.type.startsWith("mouse")}function vO(e){if(Fie(e)){if(e.isPrimary)return{x:e.clientX,y:e.clientY}}else if(jie(e))return{x:e.clientX,y:e.clientY};return{x:1/0,y:1/0}}function Q_t(){if(typeof matchMedia=="function")return matchMedia("(pointer:coarse)").matches?"coarse":"fine"}function J_t(e,t,n){return e.xt.x&&e.yt.y}function Z_t(e,t){if(e===t)throw new Error("Cannot compare node with itself");const n={a:SX(e),b:SX(t)};let r;for(;n.a.at(-1)===n.b.at(-1);)e=n.a.pop(),t=n.b.pop(),r=e;Fn(r,"Stacking order can only be calculated for elements with a common ancestor");const a={a:wX(bX(n.a)),b:wX(bX(n.b))};if(a.a===a.b){const i=r.childNodes,o={a:n.a.at(-1),b:n.b.at(-1)};let l=i.length;for(;l--;){const u=i[l];if(u===o.a)return 1;if(u===o.b)return-1}}return Math.sign(a.a-a.b)}const eOt=/\b(?:position|zIndex|opacity|transform|webkitTransform|mixBlendMode|filter|webkitFilter|isolation)\b/;function tOt(e){var t;const n=getComputedStyle((t=Uie(e))!==null&&t!==void 0?t:e).display;return n==="flex"||n==="inline-flex"}function nOt(e){const t=getComputedStyle(e);return!!(t.position==="fixed"||t.zIndex!=="auto"&&(t.position!=="static"||tOt(e))||+t.opacity<1||"transform"in t&&t.transform!=="none"||"webkitTransform"in t&&t.webkitTransform!=="none"||"mixBlendMode"in t&&t.mixBlendMode!=="normal"||"filter"in t&&t.filter!=="none"||"webkitFilter"in t&&t.webkitFilter!=="none"||"isolation"in t&&t.isolation==="isolate"||eOt.test(t.willChange)||t.webkitOverflowScrolling==="touch")}function bX(e){let t=e.length;for(;t--;){const n=e[t];if(Fn(n,"Missing node"),nOt(n))return n}return null}function wX(e){return e&&Number(getComputedStyle(e).zIndex)||0}function SX(e){const t=[];for(;e;)t.push(e),e=Uie(e);return t}function Uie(e){const{parentNode:t}=e;return t&&t instanceof ShadowRoot?t.host:t}const Bie=1,Wie=2,zie=4,qie=8,rOt=Q_t()==="coarse";let ku=[],i0=!1,Kp=new Map,yO=new Map;const RE=new Set;function aOt(e,t,n,r,a){var i;const{ownerDocument:o}=t,l={direction:n,element:t,hitAreaMargins:r,setResizeHandlerState:a},u=(i=Kp.get(o))!==null&&i!==void 0?i:0;return Kp.set(o,u+1),RE.add(l),r_(),function(){var f;yO.delete(e),RE.delete(l);const g=(f=Kp.get(o))!==null&&f!==void 0?f:1;if(Kp.set(o,g-1),r_(),g===1&&Kp.delete(o),ku.includes(l)){const y=ku.indexOf(l);y>=0&&ku.splice(y,1),nU(),a("up",!0,null)}}}function iOt(e){const{target:t}=e,{x:n,y:r}=vO(e);i0=!0,tU({target:t,x:n,y:r}),r_(),ku.length>0&&(a_("down",e),e.preventDefault(),Hie(t)||e.stopImmediatePropagation())}function V$(e){const{x:t,y:n}=vO(e);if(i0&&e.buttons===0&&(i0=!1,a_("up",e)),!i0){const{target:r}=e;tU({target:r,x:t,y:n})}a_("move",e),nU(),ku.length>0&&e.preventDefault()}function G$(e){const{target:t}=e,{x:n,y:r}=vO(e);yO.clear(),i0=!1,ku.length>0&&(e.preventDefault(),Hie(t)||e.stopImmediatePropagation()),a_("up",e),tU({target:t,x:n,y:r}),nU(),r_()}function Hie(e){let t=e;for(;t;){if(t.hasAttribute(Ea.resizeHandle))return!0;t=t.parentElement}return!1}function tU({target:e,x:t,y:n}){ku.splice(0);let r=null;(e instanceof HTMLElement||e instanceof SVGElement)&&(r=e),RE.forEach(a=>{const{element:i,hitAreaMargins:o}=a,l=i.getBoundingClientRect(),{bottom:u,left:d,right:f,top:g}=l,y=rOt?o.coarse:o.fine;if(t>=d-y&&t<=f+y&&n>=g-y&&n<=u+y){if(r!==null&&document.contains(r)&&i!==r&&!i.contains(r)&&!r.contains(i)&&Z_t(r,i)>0){let v=r,E=!1;for(;v&&!v.contains(i);){if(J_t(v.getBoundingClientRect(),l)){E=!0;break}v=v.parentElement}if(E)return}ku.push(a)}})}function Y$(e,t){yO.set(e,t)}function nU(){let e=!1,t=!1;ku.forEach(r=>{const{direction:a}=r;a==="horizontal"?e=!0:t=!0});let n=0;yO.forEach(r=>{n|=r}),e&&t?H$("intersection",n):e?H$("horizontal",n):t?H$("vertical",n):X_t()}let K$;function r_(){var e;(e=K$)===null||e===void 0||e.abort(),K$=new AbortController;const t={capture:!0,signal:K$.signal};RE.size&&(i0?(ku.length>0&&Kp.forEach((n,r)=>{const{body:a}=r;n>0&&(a.addEventListener("contextmenu",G$,t),a.addEventListener("pointerleave",V$,t),a.addEventListener("pointermove",V$,t))}),Kp.forEach((n,r)=>{const{body:a}=r;a.addEventListener("pointerup",G$,t),a.addEventListener("pointercancel",G$,t)})):Kp.forEach((n,r)=>{const{body:a}=r;n>0&&(a.addEventListener("pointerdown",iOt,t),a.addEventListener("pointermove",V$,t))}))}function a_(e,t){RE.forEach(n=>{const{setResizeHandlerState:r}=n,a=ku.includes(n);r(e,a,t)})}function oOt(){const[e,t]=R.useState(0);return R.useCallback(()=>t(n=>n+1),[])}function Fn(e,t){if(!e)throw console.error(t),Error(t)}function Fv(e,t,n=J4){return e.toFixed(n)===t.toFixed(n)?0:e>t?1:-1}function Nd(e,t,n=J4){return Fv(e,t,n)===0}function Is(e,t,n){return Fv(e,t,n)===0}function sOt(e,t,n){if(e.length!==t.length)return!1;for(let r=0;r0&&(e=e<0?0-C:C)}}}{const g=e<0?l:u,y=n[g];Fn(y,`No panel constraints found for index ${g}`);const{collapsedSize:h=0,collapsible:v,minSize:E=0}=y;if(v){const T=t[g];if(Fn(T!=null,`Previous layout not found for panel index ${g}`),Is(T,E)){const C=T-h;Fv(C,Math.abs(e))>0&&(e=e<0?0-C:C)}}}}{const g=e<0?1:-1;let y=e<0?u:l,h=0;for(;;){const E=t[y];Fn(E!=null,`Previous layout not found for panel index ${y}`);const C=Vb({panelConstraints:n,panelIndex:y,size:100})-E;if(h+=C,y+=g,y<0||y>=n.length)break}const v=Math.min(Math.abs(e),Math.abs(h));e=e<0?0-v:v}{let y=e<0?l:u;for(;y>=0&&y=0))break;e<0?y--:y++}}if(sOt(a,o))return a;{const g=e<0?u:l,y=t[g];Fn(y!=null,`Previous layout not found for panel index ${g}`);const h=y+d,v=Vb({panelConstraints:n,panelIndex:g,size:h});if(o[g]=v,!Is(v,h)){let E=h-v,C=e<0?u:l;for(;C>=0&&C0?C--:C++}}}const f=o.reduce((g,y)=>y+g,0);return Is(f,100)?o:a}function lOt({layout:e,panelsArray:t,pivotIndices:n}){let r=0,a=100,i=0,o=0;const l=n[0];Fn(l!=null,"No pivot index found"),t.forEach((g,y)=>{const{constraints:h}=g,{maxSize:v=100,minSize:E=0}=h;y===l?(r=E,a=v):(i+=E,o+=v)});const u=Math.min(a,100-i),d=Math.max(r,100-o),f=e[l];return{valueMax:u,valueMin:d,valueNow:f}}function PE(e,t=document){return Array.from(t.querySelectorAll(`[${Ea.resizeHandleId}][data-panel-group-id="${e}"]`))}function Vie(e,t,n=document){const a=PE(e,n).findIndex(i=>i.getAttribute(Ea.resizeHandleId)===t);return a??null}function Gie(e,t,n){const r=Vie(e,t,n);return r!=null?[r,r+1]:[-1,-1]}function uOt(e){return e instanceof HTMLElement?!0:typeof e=="object"&&e!==null&&"tagName"in e&&"getAttribute"in e}function Yie(e,t=document){if(uOt(t)&&t.dataset.panelGroupId==e)return t;const n=t.querySelector(`[data-panel-group][data-panel-group-id="${e}"]`);return n||null}function bO(e,t=document){const n=t.querySelector(`[${Ea.resizeHandleId}="${e}"]`);return n||null}function cOt(e,t,n,r=document){var a,i,o,l;const u=bO(t,r),d=PE(e,r),f=u?d.indexOf(u):-1,g=(a=(i=n[f])===null||i===void 0?void 0:i.id)!==null&&a!==void 0?a:null,y=(o=(l=n[f+1])===null||l===void 0?void 0:l.id)!==null&&o!==void 0?o:null;return[g,y]}function dOt({committedValuesRef:e,eagerValuesRef:t,groupId:n,layout:r,panelDataArray:a,panelGroupElement:i,setLayout:o}){R.useRef({didWarnAboutMissingResizeHandle:!1}),Av(()=>{if(!i)return;const l=PE(n,i);for(let u=0;u{l.forEach((u,d)=>{u.removeAttribute("aria-controls"),u.removeAttribute("aria-valuemax"),u.removeAttribute("aria-valuemin"),u.removeAttribute("aria-valuenow")})}},[n,r,a,i]),R.useEffect(()=>{if(!i)return;const l=t.current;Fn(l,"Eager values not found");const{panelDataArray:u}=l,d=Yie(n,i);Fn(d!=null,`No group found for id "${n}"`);const f=PE(n,i);Fn(f,`No resize handles found for group id "${n}"`);const g=f.map(y=>{const h=y.getAttribute(Ea.resizeHandleId);Fn(h,"Resize handle element has no handle id attribute");const[v,E]=cOt(n,h,u,i);if(v==null||E==null)return()=>{};const T=C=>{if(!C.defaultPrevented)switch(C.key){case"Enter":{C.preventDefault();const k=u.findIndex(_=>_.id===v);if(k>=0){const _=u[k];Fn(_,`No panel data found for index ${k}`);const A=r[k],{collapsedSize:P=0,collapsible:N,minSize:I=0}=_.constraints;if(A!=null&&N){const L=bS({delta:Is(A,P)?I-P:P-A,initialLayout:r,panelConstraints:u.map(j=>j.constraints),pivotIndices:Gie(n,h,i),prevLayout:r,trigger:"keyboard"});r!==L&&o(L)}}break}}};return y.addEventListener("keydown",T),()=>{y.removeEventListener("keydown",T)}});return()=>{g.forEach(y=>y())}},[i,e,t,n,r,a,o])}function EX(e,t){if(e.length!==t.length)return!1;for(let n=0;ni.constraints);let r=0,a=100;for(let i=0;i{const i=e[a];Fn(i,`Panel data not found for index ${a}`);const{callbacks:o,constraints:l,id:u}=i,{collapsedSize:d=0,collapsible:f}=l,g=n[u];if(g==null||r!==g){n[u]=r;const{onCollapse:y,onExpand:h,onResize:v}=o;v&&v(r,g),f&&(y||h)&&(h&&(g==null||Nd(g,d))&&!Nd(r,d)&&h(),y&&(g==null||!Nd(g,d))&&Nd(r,d)&&y())}})}function Pk(e,t){if(e.length!==t.length)return!1;for(let n=0;n{n!==null&&clearTimeout(n),n=setTimeout(()=>{e(...a)},t)}}function TX(e){try{if(typeof localStorage<"u")e.getItem=t=>localStorage.getItem(t),e.setItem=(t,n)=>{localStorage.setItem(t,n)};else throw new Error("localStorage not supported in this environment")}catch(t){console.error(t),e.getItem=()=>null,e.setItem=()=>{}}}function Xie(e){return`react-resizable-panels:${e}`}function Qie(e){return e.map(t=>{const{constraints:n,id:r,idIsFromProps:a,order:i}=t;return a?r:i?`${i}:${JSON.stringify(n)}`:JSON.stringify(n)}).sort((t,n)=>t.localeCompare(n)).join(",")}function Jie(e,t){try{const n=Xie(e),r=t.getItem(n);if(r){const a=JSON.parse(r);if(typeof a=="object"&&a!=null)return a}}catch{}return null}function vOt(e,t,n){var r,a;const i=(r=Jie(e,n))!==null&&r!==void 0?r:{},o=Qie(t);return(a=i[o])!==null&&a!==void 0?a:null}function yOt(e,t,n,r,a){var i;const o=Xie(e),l=Qie(t),u=(i=Jie(e,a))!==null&&i!==void 0?i:{};u[l]={expandToSizes:Object.fromEntries(n.entries()),layout:r};try{a.setItem(o,JSON.stringify(u))}catch(d){console.error(d)}}function CX({layout:e,panelConstraints:t}){const n=[...e],r=n.reduce((i,o)=>i+o,0);if(n.length!==t.length)throw Error(`Invalid ${t.length} panel layout: ${n.map(i=>`${i}%`).join(", ")}`);if(!Is(r,100)&&n.length>0)for(let i=0;i(TX(wS),wS.getItem(e)),setItem:(e,t)=>{TX(wS),wS.setItem(e,t)}},kX={};function Zie({autoSaveId:e=null,children:t,className:n="",direction:r,forwardedRef:a,id:i=null,onLayout:o=null,keyboardResizeBy:l=null,storage:u=wS,style:d,tagName:f="div",...g}){const y=Z4(i),h=R.useRef(null),[v,E]=R.useState(null),[T,C]=R.useState([]),k=oOt(),_=R.useRef({}),A=R.useRef(new Map),P=R.useRef(0),N=R.useRef({autoSaveId:e,direction:r,dragState:v,id:y,keyboardResizeBy:l,onLayout:o,storage:u}),I=R.useRef({layout:T,panelDataArray:[],panelDataArrayChanged:!1});R.useRef({didLogIdAndOrderWarning:!1,didLogPanelConstraintsWarning:!1,prevPanelIds:[]}),R.useImperativeHandle(a,()=>({getId:()=>N.current.id,getLayout:()=>{const{layout:J}=I.current;return J},setLayout:J=>{const{onLayout:ee}=N.current,{layout:Z,panelDataArray:ue}=I.current,ke=CX({layout:J,panelConstraints:ue.map(fe=>fe.constraints)});EX(Z,ke)||(C(ke),I.current.layout=ke,ee&&ee(ke),Ob(ue,ke,_.current))}}),[]),Av(()=>{N.current.autoSaveId=e,N.current.direction=r,N.current.dragState=v,N.current.id=y,N.current.onLayout=o,N.current.storage=u}),dOt({committedValuesRef:N,eagerValuesRef:I,groupId:y,layout:T,panelDataArray:I.current.panelDataArray,setLayout:C,panelGroupElement:h.current}),R.useEffect(()=>{const{panelDataArray:J}=I.current;if(e){if(T.length===0||T.length!==J.length)return;let ee=kX[e];ee==null&&(ee=gOt(yOt,bOt),kX[e]=ee);const Z=[...J],ue=new Map(A.current);ee(e,Z,ue,T,u)}},[e,T,u]),R.useEffect(()=>{});const L=R.useCallback(J=>{const{onLayout:ee}=N.current,{layout:Z,panelDataArray:ue}=I.current;if(J.constraints.collapsible){const ke=ue.map(qe=>qe.constraints),{collapsedSize:fe=0,panelSize:xe,pivotIndices:Ie}=rv(ue,J,Z);if(Fn(xe!=null,`Panel size not found for panel "${J.id}"`),!Nd(xe,fe)){A.current.set(J.id,xe);const tt=Nb(ue,J)===ue.length-1?xe-fe:fe-xe,Ge=bS({delta:tt,initialLayout:Z,panelConstraints:ke,pivotIndices:Ie,prevLayout:Z,trigger:"imperative-api"});Pk(Z,Ge)||(C(Ge),I.current.layout=Ge,ee&&ee(Ge),Ob(ue,Ge,_.current))}}},[]),j=R.useCallback((J,ee)=>{const{onLayout:Z}=N.current,{layout:ue,panelDataArray:ke}=I.current;if(J.constraints.collapsible){const fe=ke.map(at=>at.constraints),{collapsedSize:xe=0,panelSize:Ie=0,minSize:qe=0,pivotIndices:tt}=rv(ke,J,ue),Ge=ee??qe;if(Nd(Ie,xe)){const at=A.current.get(J.id),Et=at!=null&&at>=Ge?at:Ge,xt=Nb(ke,J)===ke.length-1?Ie-Et:Et-Ie,Rt=bS({delta:xt,initialLayout:ue,panelConstraints:fe,pivotIndices:tt,prevLayout:ue,trigger:"imperative-api"});Pk(ue,Rt)||(C(Rt),I.current.layout=Rt,Z&&Z(Rt),Ob(ke,Rt,_.current))}}},[]),z=R.useCallback(J=>{const{layout:ee,panelDataArray:Z}=I.current,{panelSize:ue}=rv(Z,J,ee);return Fn(ue!=null,`Panel size not found for panel "${J.id}"`),ue},[]),Q=R.useCallback((J,ee)=>{const{panelDataArray:Z}=I.current,ue=Nb(Z,J);return mOt({defaultSize:ee,dragState:v,layout:T,panelData:Z,panelIndex:ue})},[v,T]),le=R.useCallback(J=>{const{layout:ee,panelDataArray:Z}=I.current,{collapsedSize:ue=0,collapsible:ke,panelSize:fe}=rv(Z,J,ee);return Fn(fe!=null,`Panel size not found for panel "${J.id}"`),ke===!0&&Nd(fe,ue)},[]),re=R.useCallback(J=>{const{layout:ee,panelDataArray:Z}=I.current,{collapsedSize:ue=0,collapsible:ke,panelSize:fe}=rv(Z,J,ee);return Fn(fe!=null,`Panel size not found for panel "${J.id}"`),!ke||Fv(fe,ue)>0},[]),ge=R.useCallback(J=>{const{panelDataArray:ee}=I.current;ee.push(J),ee.sort((Z,ue)=>{const ke=Z.order,fe=ue.order;return ke==null&&fe==null?0:ke==null?-1:fe==null?1:ke-fe}),I.current.panelDataArrayChanged=!0,k()},[k]);Av(()=>{if(I.current.panelDataArrayChanged){I.current.panelDataArrayChanged=!1;const{autoSaveId:J,onLayout:ee,storage:Z}=N.current,{layout:ue,panelDataArray:ke}=I.current;let fe=null;if(J){const Ie=vOt(J,ke,Z);Ie&&(A.current=new Map(Object.entries(Ie.expandToSizes)),fe=Ie.layout)}fe==null&&(fe=hOt({panelDataArray:ke}));const xe=CX({layout:fe,panelConstraints:ke.map(Ie=>Ie.constraints)});EX(ue,xe)||(C(xe),I.current.layout=xe,ee&&ee(xe),Ob(ke,xe,_.current))}}),Av(()=>{const J=I.current;return()=>{J.layout=[]}},[]);const me=R.useCallback(J=>{let ee=!1;const Z=h.current;return Z&&window.getComputedStyle(Z,null).getPropertyValue("direction")==="rtl"&&(ee=!0),function(ke){ke.preventDefault();const fe=h.current;if(!fe)return()=>null;const{direction:xe,dragState:Ie,id:qe,keyboardResizeBy:tt,onLayout:Ge}=N.current,{layout:at,panelDataArray:Et}=I.current,{initialLayout:kt}=Ie??{},xt=Gie(qe,J,fe);let Rt=pOt(ke,J,xe,Ie,tt,fe);const cn=xe==="horizontal";cn&&ee&&(Rt=-Rt);const qt=Et.map(dt=>dt.constraints),Wt=bS({delta:Rt,initialLayout:kt??at,panelConstraints:qt,pivotIndices:xt,prevLayout:at,trigger:Lie(ke)?"keyboard":"mouse-or-touch"}),Oe=!Pk(at,Wt);(Fie(ke)||jie(ke))&&P.current!=Rt&&(P.current=Rt,!Oe&&Rt!==0?cn?Y$(J,Rt<0?Bie:Wie):Y$(J,Rt<0?zie:qie):Y$(J,0)),Oe&&(C(Wt),I.current.layout=Wt,Ge&&Ge(Wt),Ob(Et,Wt,_.current))}},[]),W=R.useCallback((J,ee)=>{const{onLayout:Z}=N.current,{layout:ue,panelDataArray:ke}=I.current,fe=ke.map(at=>at.constraints),{panelSize:xe,pivotIndices:Ie}=rv(ke,J,ue);Fn(xe!=null,`Panel size not found for panel "${J.id}"`);const tt=Nb(ke,J)===ke.length-1?xe-ee:ee-xe,Ge=bS({delta:tt,initialLayout:ue,panelConstraints:fe,pivotIndices:Ie,prevLayout:ue,trigger:"imperative-api"});Pk(ue,Ge)||(C(Ge),I.current.layout=Ge,Z&&Z(Ge),Ob(ke,Ge,_.current))},[]),G=R.useCallback((J,ee)=>{const{layout:Z,panelDataArray:ue}=I.current,{collapsedSize:ke=0,collapsible:fe}=ee,{collapsedSize:xe=0,collapsible:Ie,maxSize:qe=100,minSize:tt=0}=J.constraints,{panelSize:Ge}=rv(ue,J,Z);Ge!=null&&(fe&&Ie&&Nd(Ge,ke)?Nd(ke,xe)||W(J,xe):Geqe&&W(J,qe))},[W]),q=R.useCallback((J,ee)=>{const{direction:Z}=N.current,{layout:ue}=I.current;if(!h.current)return;const ke=bO(J,h.current);Fn(ke,`Drag handle element not found for id "${J}"`);const fe=Kie(Z,ee);E({dragHandleId:J,dragHandleRect:ke.getBoundingClientRect(),initialCursorPosition:fe,initialLayout:ue})},[]),ce=R.useCallback(()=>{E(null)},[]),H=R.useCallback(J=>{const{panelDataArray:ee}=I.current,Z=Nb(ee,J);Z>=0&&(ee.splice(Z,1),delete _.current[J.id],I.current.panelDataArrayChanged=!0,k())},[k]),Y=R.useMemo(()=>({collapsePanel:L,direction:r,dragState:v,expandPanel:j,getPanelSize:z,getPanelStyle:Q,groupId:y,isPanelCollapsed:le,isPanelExpanded:re,reevaluatePanelConstraints:G,registerPanel:ge,registerResizeHandle:me,resizePanel:W,startDragging:q,stopDragging:ce,unregisterPanel:H,panelGroupElement:h.current}),[L,v,r,j,z,Q,y,le,re,G,ge,me,W,q,ce,H]),ie={display:"flex",flexDirection:r==="horizontal"?"row":"column",height:"100%",overflow:"hidden",width:"100%"};return R.createElement(gO.Provider,{value:Y},R.createElement(f,{...g,children:t,className:n,id:i,ref:h,style:{...ie,...d},[Ea.group]:"",[Ea.groupDirection]:r,[Ea.groupId]:y}))}const eoe=R.forwardRef((e,t)=>R.createElement(Zie,{...e,forwardedRef:t}));Zie.displayName="PanelGroup";eoe.displayName="forwardRef(PanelGroup)";function Nb(e,t){return e.findIndex(n=>n===t||n.id===t.id)}function rv(e,t,n){const r=Nb(e,t),i=r===e.length-1?[r-1,r]:[r,r+1],o=n[r];return{...t.constraints,panelSize:o,pivotIndices:i}}function wOt({disabled:e,handleId:t,resizeHandler:n,panelGroupElement:r}){R.useEffect(()=>{if(e||n==null||r==null)return;const a=bO(t,r);if(a==null)return;const i=o=>{if(!o.defaultPrevented)switch(o.key){case"ArrowDown":case"ArrowLeft":case"ArrowRight":case"ArrowUp":case"End":case"Home":{o.preventDefault(),n(o);break}case"F6":{o.preventDefault();const l=a.getAttribute(Ea.groupId);Fn(l,`No group element found for id "${l}"`);const u=PE(l,r),d=Vie(l,t,r);Fn(d!==null,`No resize element found for id "${t}"`);const f=o.shiftKey?d>0?d-1:u.length-1:d+1{a.removeEventListener("keydown",i)}},[r,e,t,n])}function toe({children:e=null,className:t="",disabled:n=!1,hitAreaMargins:r,id:a,onBlur:i,onClick:o,onDragging:l,onFocus:u,onPointerDown:d,onPointerUp:f,style:g={},tabIndex:y=0,tagName:h="div",...v}){var E,T;const C=R.useRef(null),k=R.useRef({onClick:o,onDragging:l,onPointerDown:d,onPointerUp:f});R.useEffect(()=>{k.current.onClick=o,k.current.onDragging=l,k.current.onPointerDown=d,k.current.onPointerUp=f});const _=R.useContext(gO);if(_===null)throw Error("PanelResizeHandle components must be rendered within a PanelGroup container");const{direction:A,groupId:P,registerResizeHandle:N,startDragging:I,stopDragging:L,panelGroupElement:j}=_,z=Z4(a),[Q,le]=R.useState("inactive"),[re,ge]=R.useState(!1),[me,W]=R.useState(null),G=R.useRef({state:Q});Av(()=>{G.current.state=Q}),R.useEffect(()=>{if(n)W(null);else{const Y=N(z);W(()=>Y)}},[n,z,N]);const q=(E=r==null?void 0:r.coarse)!==null&&E!==void 0?E:15,ce=(T=r==null?void 0:r.fine)!==null&&T!==void 0?T:5;R.useEffect(()=>{if(n||me==null)return;const Y=C.current;Fn(Y,"Element ref not attached");let ie=!1;return aOt(z,Y,A,{coarse:q,fine:ce},(ee,Z,ue)=>{if(!Z){le("inactive");return}switch(ee){case"down":{le("drag"),ie=!1,Fn(ue,'Expected event to be defined for "down" action'),I(z,ue);const{onDragging:ke,onPointerDown:fe}=k.current;ke==null||ke(!0),fe==null||fe();break}case"move":{const{state:ke}=G.current;ie=!0,ke!=="drag"&&le("hover"),Fn(ue,'Expected event to be defined for "move" action'),me(ue);break}case"up":{le("hover"),L();const{onClick:ke,onDragging:fe,onPointerUp:xe}=k.current;fe==null||fe(!1),xe==null||xe(),ie||ke==null||ke();break}}})},[q,A,n,ce,N,z,me,I,L]),wOt({disabled:n,handleId:z,resizeHandler:me,panelGroupElement:j});const H={touchAction:"none",userSelect:"none"};return R.createElement(h,{...v,children:e,className:t,id:a,onBlur:()=>{ge(!1),i==null||i()},onFocus:()=>{ge(!0),u==null||u()},ref:C,role:"separator",style:{...H,...g},tabIndex:y,[Ea.groupDirection]:A,[Ea.groupId]:P,[Ea.resizeHandle]:"",[Ea.resizeHandleActive]:Q==="drag"?"pointer":re?"keyboard":void 0,[Ea.resizeHandleEnabled]:!n,[Ea.resizeHandleId]:z,[Ea.resizeHandleState]:Q})}toe.displayName="PanelResizeHandle";const SOt=[{to:"/dashboard",label:"Home",icon:Fs("/common/home.svg")},{to:"/selfservice",label:"Profile",icon:Fs("/common/user.svg")},{to:"/settings",label:"Settings",icon:Fs(xu.settings)}],EOt=()=>w.jsx("nav",{className:"bottom-nav-tabbar",children:SOt.map(e=>w.jsx(Yb,{state:{animated:!0},href:e.to,className:({isActive:t})=>t?"nav-link active":"nav-link",children:w.jsxs("span",{className:"nav-link",children:[w.jsx("img",{className:"nav-img",src:e.icon}),e.label]})},e.to))}),TOt=({routerId:e,ApplicationRoutes:t,queryClient:n})=>w.jsx(BX,{initialConfig:{remote:kr.REMOTE_SERVICE},children:w.jsx(zhe,{children:w.jsxs(The,{children:[w.jsx(jve,{children:w.jsxs(xme,{children:[w.jsx(t,{routerId:e}),w.jsx(Fve,{})]})}),w.jsx(vL,{})]})})});function noe({className:e="",id:t,onDragComplete:n,minimal:r}){return w.jsx(toe,{id:t,onDragging:a=>{a===!1&&(n==null||n())},className:oa("panel-resize-handle",r?"minimal":"")})}const COt=()=>{if(sh().isMobileView)return 0;const e=localStorage.getItem("sidebarState"),t=e!==null?parseFloat(e):null;return t<=0?0:t*1.3},kOt=()=>{const{setSidebarRef:e,persistSidebarSize:t}=zv(),n=R.useRef(null),r=a=>{n.current=a,e(n.current)};return w.jsxs(eU,{style:{position:"relative",overflowY:"hidden",height:"100vh"},minSize:0,defaultSize:COt(),ref:r,children:[w.jsx(BX,{initialConfig:{remote:kr.REMOTE_SERVICE},children:w.jsx(bJ,{miniSize:!1})}),!sh().isMobileView&&w.jsx(noe,{onDragComplete:()=>{var a;t((a=n.current)==null?void 0:a.getSize())}})]})},xOt=({routerId:e,children:t,showHandle:n})=>w.jsxs(w.Fragment,{children:[w.jsx(kOt,{}),w.jsx(roe,{showHandle:n,routerId:e,children:t})]}),roe=({showHandle:e,routerId:t,children:n})=>{var o;const{routers:r,setFocusedRouter:a}=zv(),{session:i}=R.useContext(rt);return w.jsxs(eU,{order:2,defaultSize:i?80/r.length:100,minSize:10,onClick:()=>{a(t)},style:{position:"relative",display:"flex",width:"100%"},children:[(o=r.find(l=>l.id===t))!=null&&o.focused&&r.length?w.jsx("div",{className:"focus-indicator"}):null,n,e?w.jsx(noe,{minimal:!0}):null]})},_Ot=UX;function OOt({ApplicationRoutes:e,queryClient:t}){const{routers:n}=zv(),r=n.map(a=>({...a,initialEntries:a!=null&&a.href?[{pathname:a==null?void 0:a.href}]:void 0,Wrapper:a.id==="url-router"?xOt:roe,Router:a.id==="url-router"?_Ot:Use,showHandle:n.filter(i=>i.id!=="url-router").length>0}));return w.jsx(eoe,{direction:"horizontal",className:oa("application-panels",sh().isMobileView?"has-bottom-tab":void 0),children:r.map((a,i)=>w.jsxs(a.Router,{future:{v7_startTransition:!0},basename:void 0,initialEntries:a.initialEntries,children:[w.jsx(a.Wrapper,{showHandle:a.showHandle,routerId:a.id,children:w.jsx(TOt,{routerId:a.id,ApplicationRoutes:e,queryClient:t})}),sh().isMobileView?w.jsx(EOt,{}):void 0]},a.id))})}function ROt({children:e,queryClient:t,prefix:n,mockServer:r,config:a,locale:i}){return w.jsx(fhe,{socket:!0,preferredAcceptLanguage:i||a.interfaceLanguage,identifier:"fireback",prefix:n,queryClient:t,remote:kr.REMOTE_SERVICE,defaultExecFn:void 0,children:w.jsx(POt,{children:e,mockServer:r})})}const POt=({children:e,mockServer:t})=>{var i;const{options:n,session:r}=R.useContext(rt),a=R.useRef(new ZF((i=kr.REMOTE_SERVICE)==null?void 0:i.replace(/\/$/,"")));return a.current.defaultHeaders={authorization:r==null?void 0:r.token,"workspace-id":n==null?void 0:n.headers["workspace-id"]},w.jsx(SIe,{value:a.current,children:e})};function AOt(){const{session:e,checked:t}=R.useContext(rt),[n,r]=R.useState(!1),a=t&&!e,[i,o]=R.useState(!1);return R.useEffect(()=>{t&&e&&(o(!0),setTimeout(()=>{r(!0)},500))},[t,e]),{session:e,checked:t,needsAuthentication:a,loadComplete:n,setLoadComplete:r,isFading:i}}const xX=UX,NOt=({children:e})=>{var l;const{session:t,checked:n}=AOt(),r=dLe(),{selectedUrw:a,selectUrw:i}=R.useContext(rt),{query:o}=DE({queryOptions:{cacheTime:50,enabled:!1},query:{}});return R.useEffect(()=>{var u;((u=t==null?void 0:t.userWorkspaces)==null?void 0:u.length)===1&&!a&&o.refetch().then(d=>{var g,y,h,v;const f=((y=(g=d==null?void 0:d.data)==null?void 0:g.data)==null?void 0:y.items)||[];f.length===1&&i({roleId:(v=(h=f[0].roles)==null?void 0:h[0])==null?void 0:v.uniqueId,workspaceId:f[0].uniqueId})})},[a,t]),!t&&n?w.jsx(xX,{future:{v7_startTransition:!0},children:w.jsxs(jX,{children:[w.jsx(mt,{path:":locale",children:r}),w.jsx(mt,{path:"*",element:w.jsx(eF,{to:"/en/selfservice/welcome",replace:!0})})]})}):!a&&((l=t==null?void 0:t.userWorkspaces)==null?void 0:l.length)>1?w.jsx(xX,{future:{v7_startTransition:!0},children:w.jsx(cLe,{})}):w.jsx(w.Fragment,{children:e})};function MOt({ApplicationRoutes:e,WithSdk:t,mockServer:n,apiPrefix:r}){const[a]=ze.useState(()=>new lme),{config:i}=R.useContext(ph);R.useEffect(()=>{"serviceWorker"in navigator&&"PushManager"in window&&navigator.serviceWorker.register("sw.js").then(l=>{})},[]);const{locale:o}=V_t();return w.jsx(hme,{client:a,children:w.jsx(jhe,{children:w.jsx(M_e,{children:w.jsx(B_t,{FallbackComponent:z_t,onReset:l=>{},children:w.jsx(ROt,{mockServer:n,config:i,prefix:r,queryClient:a,locale:o,children:w.jsx(t,{mockServer:n,prefix:r,config:i,queryClient:a,children:w.jsx(NOt,{children:w.jsx(OOt,{queryClient:a,ApplicationRoutes:e})})})})})})})})}function IOt(){const e=R.useRef(j_t);return w.jsx(MOt,{ApplicationRoutes:l_t,mockServer:e,WithSdk:u_t})}const DOt=Hoe.createRoot(document.getElementById("root"));DOt.render(w.jsx(ze.StrictMode,{children:w.jsx(IOt,{})}))});export default $Ot(); +}`},D_t=()=>w.jsxs("div",{children:[w.jsx("h2",{children:"FormDate* component"}),w.jsx("p",{children:"Selecting date, time, datetime, daterange is an important aspect of many different apps and softwares. Fireback react comes with a different set of such components."}),w.jsxs("div",{className:"mt-5 mb-5",children:[w.jsx($_t,{}),w.jsx(aa,{codeString:C1.Example1})]}),w.jsxs("div",{className:"mt-5 mb-5",children:[w.jsx(L_t,{}),w.jsx(aa,{codeString:C1.Example2})]}),w.jsxs("div",{className:"mt-5 mb-5",children:[w.jsx(F_t,{}),w.jsx(aa,{codeString:C1.Example3})]}),w.jsxs("div",{className:"mt-5 mb-5",children:[w.jsx(U_t,{}),w.jsx(aa,{codeString:C1.Example4})]}),w.jsxs("div",{className:"mt-5 mb-5",children:[w.jsx(j_t,{}),w.jsx(aa,{codeString:C1.Example5})]})]}),$_t=()=>{class e{constructor(){this.date=void 0}}return e.Fields={date:"date"},w.jsxs("div",{children:[w.jsx("h2",{children:"Form Date demo"}),w.jsx("p",{children:"In many examples you want to select only a date string, nothing more. This input does that clearly."}),w.jsx(ms,{initialValues:{date:"2020-10-10"},onSubmit:t=>{alert(JSON.stringify(t,null,2))},children:t=>w.jsxs("div",{children:[w.jsxs("pre",{children:["Form: ",JSON.stringify(t.values,null,2)]}),w.jsx(Mre,{value:t.values.date,label:"When did you born?",onChange:n=>t.setFieldValue(e.Fields.date,n)})]})})]})},L_t=()=>{class e{constructor(){this.time=void 0}}return e.Fields={time:"time"},w.jsxs("div",{children:[w.jsx("h2",{children:"Form Date demo"}),w.jsx("p",{children:"Sometimes we just need to store a time, without anything else. 5 characters 00:00"}),w.jsx(ms,{initialValues:{time:"22:10"},onSubmit:t=>{alert(JSON.stringify(t,null,2))},children:t=>w.jsxs("div",{children:[w.jsxs("pre",{children:["Form: ",JSON.stringify(t.values,null,2)]}),w.jsx(I_t,{value:t.values.time,label:"At which hour did you born?",onChange:n=>t.setFieldValue(e.Fields.time,n)})]})})]})},F_t=()=>{class e{constructor(){this.datetime=void 0}}return e.Fields={datetime:"datetime"},w.jsxs("div",{children:[w.jsx("h2",{children:"Form DateTime demo"}),w.jsx("p",{children:"In some cases, you want to store the datetime values with timezone in the database. this the component to use."}),w.jsx(ms,{initialValues:{datetime:"2025-05-02T10:06:00.000Z"},onSubmit:t=>{alert(JSON.stringify(t,null,2))},children:t=>w.jsxs("div",{children:[w.jsxs("pre",{children:["Form: ",JSON.stringify(t.values,null,2)]}),w.jsx(M_t,{value:t.values.datetime,label:"When did you born?",onChange:n=>t.setFieldValue(e.Fields.datetime,n)})]})})]})},j_t=()=>{class e{constructor(){this.daterange=void 0}}return e.Fields={daterange$:"daterange",daterange:{startDate:"startDate",endDate:"endDate"}},w.jsxs("div",{children:[w.jsx("h2",{children:"Form DateRange demo"}),w.jsx("p",{children:"Choosing a date range also is an important thing in many applications, without timestamp."}),w.jsx(ms,{initialValues:{daterange:{endDate:new Date,startDate:new Date}},onSubmit:t=>{alert(JSON.stringify(t,null,2))},children:t=>w.jsxs("div",{children:[w.jsxs("pre",{children:["Form: ",JSON.stringify(t.values,null,2)]}),w.jsx(_Tt,{value:t.values.daterange,label:"How many days take to eggs become chicken?",onChange:n=>t.setFieldValue(e.Fields.daterange$,n)})]})})]})},U_t=()=>{class e{constructor(){this.daterange=void 0}}return e.Fields={daterange$:"daterange",daterange:{startDate:"startDate",endDate:"endDate"}},w.jsxs("div",{children:[w.jsx("h2",{children:"Form DateTimeRange demo"}),w.jsx("p",{children:"Choosing a date range also is an important thing in many applications, a localised timezone."}),w.jsx(ms,{initialValues:{daterange:{endDate:new Date,startDate:new Date}},onSubmit:t=>{alert(JSON.stringify(t,null,2))},children:t=>w.jsxs("div",{children:[w.jsxs("pre",{children:["Form: ",JSON.stringify(t.values,null,2)]}),w.jsx(gie,{value:t.values.daterange,label:"Exactly what time egg came and gone??",onChange:n=>t.setFieldValue(e.Fields.daterange$,n)})]})})]})};function B_t({routerId:e}){return w.jsxs(VLe,{routerId:e,children:[w.jsx(mt,{path:"demo/form-select",element:w.jsx(C8e,{})}),w.jsx(mt,{path:"demo/modals",element:w.jsx(D8e,{})}),w.jsx(mt,{path:"demo/form-date",element:w.jsx(D_t,{})}),w.jsx(mt,{path:"demo",element:w.jsx(I8e,{})})]})}function W_t({children:e,queryClient:t,mockServer:n,config:r}){return e}var Tv={},Zp={},Hb={},$Y;function z_t(){if($Y)return Hb;$Y=1,Hb.__esModule=!0,Hb.getAllMatches=e,Hb.escapeRegExp=t,Hb.escapeSource=n;function e(r,a){for(var i=void 0,o=[];i=r.exec(a);)o.push(i);return o}function t(r){return r.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function n(r){return t(r).replace(/\/+/g,"/+")}return Hb}var mc={},LY;function q_t(){if(LY)return mc;LY=1,mc.__esModule=!0,mc.string=e,mc.greedySplat=t,mc.splat=n,mc.any=r,mc.int=a,mc.uuid=i,mc.createRule=o;function e(){var l=arguments.length<=0||arguments[0]===void 0?{}:arguments[0],u=l.maxLength,d=l.minLength,f=l.length;return o({validate:function(y){return!(u&&y.length>u||d&&y.lengthu||d&&h=L.length)break;j=L[I++]}else{if(I=L.next(),I.done)break;j=I.value}var z=j[0],Q=j[1],ue=void 0;Q?ue=T[Q]||n.string():z=="**"?(ue=n.greedySplat(),Q="splat"):z=="*"?(ue=n.splat(),Q="splat"):z==="("?A+="(?:":z===")"?A+=")?":A+=t.escapeSource(z),Q&&(A+=ue.regex,_.push({paramName:Q,rule:ue})),k.push(z)}var re=k[k.length-1]!=="*",me=re?"":"$";return A=new RegExp("^"+A+"/*"+me,"i"),{tokens:k,regexpSource:A,params:_,paramNames:_.map(function(ge){return ge.paramName})}}function u(v,E){return v.every(function(T,C){return E[C].rule.validate(T)})}function d(v){return typeof v=="string"&&(v={pattern:v,rules:{}}),a.default(v.pattern,"you cannot use an empty route pattern"),v.rules=v.rules||{},v}function f(v){return v=d(v),i[v.pattern]||(i[v.pattern]=l(v)),i[v.pattern]}function g(v,E){E.charAt(0)!=="/"&&(E="/"+E);var T=f(v),C=T.regexpSource,k=T.params,_=T.paramNames,A=E.match(C);if(A!=null){var P=E.slice(A[0].length);if(!(P[0]=="/"||A[0][A[0].length])){var N=A.slice(1).map(function(I){return I!=null?decodeURIComponent(I):I});if(u(N,k))return N=N.map(function(I,L){return k[L].rule.convert(I)}),{remainingPathname:P,paramValues:N,paramNames:_}}}}function y(v,E){E=E||{};for(var T=f(v),C=T.tokens,k=0,_="",A=0,P=void 0,N=void 0,I=void 0,L=0,j=C.length;L0,'Missing splat #%s for path "%s"',A,v.pattern),I!=null&&(_+=encodeURI(I))):P==="("?k+=1:P===")"?k-=1:P.charAt(0)===":"?(N=P.substring(1),I=E[N],a.default(I!=null||k>0,'Missing "%s" parameter for path "%s"',N,v.pattern),I!=null&&(_+=encodeURIComponent(I))):_+=P;return _.replace(/\/+/g,"/")}function h(v,E){var T=g(v,E)||{},C=T.paramNames,k=T.paramValues,_=[];if(!C)return null;for(var A=0;At[n]||n).toLowerCase()}function X_t(e,t){const n=loe(t);return e.filter(r=>Object.keys(n).every(a=>{let{operation:i,value:o}=n[a];o=sK(o||"");const l=sK(ka.get(r,a)||"");if(!l)return!1;switch(i){case"contains":return l.includes(o);case"equals":return l===o;case"startsWith":return l.startsWith(o);case"endsWith":return l.endsWith(o);default:return!1}}))}class $d{constructor(t){this.content=t}items(t){let n={};try{n=JSON.parse(t.jsonQuery)}catch{}return X_t(this.content,n).filter((a,i)=>!(it.startIndex+t.itemsPerPage-1))}total(){return this.content.length}create(t){const n={...t,uniqueId:yJ().substr(0,12)};return this.content.push(n),n}getOne(t){return this.content.find(n=>n.uniqueId===t)}deletes(t){return this.content=this.content.filter(n=>!t.includes(n.uniqueId)),!0}patchOne(t){return this.content=this.content.map(n=>n.uniqueId===t.uniqueId?{...n,...t}:n),t}}const zh=e=>e.split(" or ").map(t=>t.split(" = ")[1].trim()),lK=new $d([]);var uK,cK,x1;function Q_t(e,t,n,r,a){var i={};return Object.keys(r).forEach(function(o){i[o]=r[o]}),i.enumerable=!!i.enumerable,i.configurable=!!i.configurable,("value"in i||i.initializer)&&(i.writable=!0),i=n.slice().reverse().reduce(function(o,l){return l(e,t,o)||o},i),a&&i.initializer!==void 0&&(i.value=i.initializer?i.initializer.call(a):void 0,i.initializer=void 0),i.initializer===void 0?(Object.defineProperty(e,t,i),null):i}let J_t=(uK=en("files"),cK=tn("get"),x1=class{async getFiles(t){return{data:{items:lK.items(t),itemsPerPage:t.itemsPerPage,totalItems:lK.total()}}}},Q_t(x1.prototype,"getFiles",[uK,cK],Object.getOwnPropertyDescriptor(x1.prototype,"getFiles"),x1.prototype),x1);const mr={emailProvider:new $d([]),emailSender:new $d([]),workspaceInvite:new $d([]),publicJoinKey:new $d([]),workspaces:new $d([])};var dK,fK,pK,hK,mK,gK,vK,yK,bK,wK,Ni;function _1(e,t,n,r,a){var i={};return Object.keys(r).forEach(function(o){i[o]=r[o]}),i.enumerable=!!i.enumerable,i.configurable=!!i.configurable,("value"in i||i.initializer)&&(i.writable=!0),i=n.slice().reverse().reduce(function(o,l){return l(e,t,o)||o},i),a&&i.initializer!==void 0&&(i.value=i.initializer?i.initializer.call(a):void 0,i.initializer=void 0),i.initializer===void 0?(Object.defineProperty(e,t,i),null):i}let Z_t=(dK=en("email-providers"),fK=tn("get"),pK=en("email-provider/:uniqueId"),hK=tn("get"),mK=en("email-provider"),gK=tn("patch"),vK=en("email-provider"),yK=tn("post"),bK=en("email-provider"),wK=tn("delete"),Ni=class{async getEmailProviders(t){return{data:{items:mr.emailProvider.items(t),itemsPerPage:t.itemsPerPage,totalItems:mr.emailProvider.total()}}}async getEmailProviderByUniqueId(t){return{data:mr.emailProvider.getOne(t.paramValues[0])}}async patchEmailProviderByUniqueId(t){return{data:mr.emailProvider.patchOne(t.body)}}async postRole(t){return{data:mr.emailProvider.create(t.body)}}async deleteRole(t){return mr.emailProvider.deletes(zh(t.body.query)),{data:{}}}},_1(Ni.prototype,"getEmailProviders",[dK,fK],Object.getOwnPropertyDescriptor(Ni.prototype,"getEmailProviders"),Ni.prototype),_1(Ni.prototype,"getEmailProviderByUniqueId",[pK,hK],Object.getOwnPropertyDescriptor(Ni.prototype,"getEmailProviderByUniqueId"),Ni.prototype),_1(Ni.prototype,"patchEmailProviderByUniqueId",[mK,gK],Object.getOwnPropertyDescriptor(Ni.prototype,"patchEmailProviderByUniqueId"),Ni.prototype),_1(Ni.prototype,"postRole",[vK,yK],Object.getOwnPropertyDescriptor(Ni.prototype,"postRole"),Ni.prototype),_1(Ni.prototype,"deleteRole",[bK,wK],Object.getOwnPropertyDescriptor(Ni.prototype,"deleteRole"),Ni.prototype),Ni);var SK,EK,TK,CK,kK,xK,_K,OK,RK,PK,Mi;function O1(e,t,n,r,a){var i={};return Object.keys(r).forEach(function(o){i[o]=r[o]}),i.enumerable=!!i.enumerable,i.configurable=!!i.configurable,("value"in i||i.initializer)&&(i.writable=!0),i=n.slice().reverse().reduce(function(o,l){return l(e,t,o)||o},i),a&&i.initializer!==void 0&&(i.value=i.initializer?i.initializer.call(a):void 0,i.initializer=void 0),i.initializer===void 0?(Object.defineProperty(e,t,i),null):i}let eOt=(SK=en("email-senders"),EK=tn("get"),TK=en("email-sender/:uniqueId"),CK=tn("get"),kK=en("email-sender"),xK=tn("patch"),_K=en("email-sender"),OK=tn("post"),RK=en("email-sender"),PK=tn("delete"),Mi=class{async getEmailSenders(t){return{data:{items:mr.emailSender.items(t),itemsPerPage:t.itemsPerPage,totalItems:mr.emailSender.total()}}}async getEmailSenderByUniqueId(t){return{data:mr.emailSender.getOne(t.paramValues[0])}}async patchEmailSenderByUniqueId(t){return{data:mr.emailSender.patchOne(t.body)}}async postRole(t){return{data:mr.emailSender.create(t.body)}}async deleteRole(t){return mr.emailSender.deletes(zh(t.body.query)),{data:{}}}},O1(Mi.prototype,"getEmailSenders",[SK,EK],Object.getOwnPropertyDescriptor(Mi.prototype,"getEmailSenders"),Mi.prototype),O1(Mi.prototype,"getEmailSenderByUniqueId",[TK,CK],Object.getOwnPropertyDescriptor(Mi.prototype,"getEmailSenderByUniqueId"),Mi.prototype),O1(Mi.prototype,"patchEmailSenderByUniqueId",[kK,xK],Object.getOwnPropertyDescriptor(Mi.prototype,"patchEmailSenderByUniqueId"),Mi.prototype),O1(Mi.prototype,"postRole",[_K,OK],Object.getOwnPropertyDescriptor(Mi.prototype,"postRole"),Mi.prototype),O1(Mi.prototype,"deleteRole",[RK,PK],Object.getOwnPropertyDescriptor(Mi.prototype,"deleteRole"),Mi.prototype),Mi);var AK,NK,MK,IK,DK,$K,LK,FK,jK,UK,Ii;function R1(e,t,n,r,a){var i={};return Object.keys(r).forEach(function(o){i[o]=r[o]}),i.enumerable=!!i.enumerable,i.configurable=!!i.configurable,("value"in i||i.initializer)&&(i.writable=!0),i=n.slice().reverse().reduce(function(o,l){return l(e,t,o)||o},i),a&&i.initializer!==void 0&&(i.value=i.initializer?i.initializer.call(a):void 0,i.initializer=void 0),i.initializer===void 0?(Object.defineProperty(e,t,i),null):i}let tOt=(AK=en("public-join-keys"),NK=tn("get"),MK=en("public-join-key/:uniqueId"),IK=tn("get"),DK=en("public-join-key"),$K=tn("patch"),LK=en("public-join-key"),FK=tn("post"),jK=en("public-join-key"),UK=tn("delete"),Ii=class{async getPublicJoinKeys(t){return{data:{items:mr.publicJoinKey.items(t),itemsPerPage:t.itemsPerPage,totalItems:mr.publicJoinKey.total()}}}async getPublicJoinKeyByUniqueId(t){return{data:mr.publicJoinKey.getOne(t.paramValues[0])}}async patchPublicJoinKeyByUniqueId(t){return{data:mr.publicJoinKey.patchOne(t.body)}}async postPublicJoinKey(t){return{data:mr.publicJoinKey.create(t.body)}}async deletePublicJoinKey(t){return mr.publicJoinKey.deletes(zh(t.body.query)),{data:{}}}},R1(Ii.prototype,"getPublicJoinKeys",[AK,NK],Object.getOwnPropertyDescriptor(Ii.prototype,"getPublicJoinKeys"),Ii.prototype),R1(Ii.prototype,"getPublicJoinKeyByUniqueId",[MK,IK],Object.getOwnPropertyDescriptor(Ii.prototype,"getPublicJoinKeyByUniqueId"),Ii.prototype),R1(Ii.prototype,"patchPublicJoinKeyByUniqueId",[DK,$K],Object.getOwnPropertyDescriptor(Ii.prototype,"patchPublicJoinKeyByUniqueId"),Ii.prototype),R1(Ii.prototype,"postPublicJoinKey",[LK,FK],Object.getOwnPropertyDescriptor(Ii.prototype,"postPublicJoinKey"),Ii.prototype),R1(Ii.prototype,"deletePublicJoinKey",[jK,UK],Object.getOwnPropertyDescriptor(Ii.prototype,"deletePublicJoinKey"),Ii.prototype),Ii);const Vb=new $d([{name:"Administrator",uniqueId:"administrator"}]);var BK,WK,zK,qK,HK,VK,GK,YK,KK,XK,Di;function P1(e,t,n,r,a){var i={};return Object.keys(r).forEach(function(o){i[o]=r[o]}),i.enumerable=!!i.enumerable,i.configurable=!!i.configurable,("value"in i||i.initializer)&&(i.writable=!0),i=n.slice().reverse().reduce(function(o,l){return l(e,t,o)||o},i),a&&i.initializer!==void 0&&(i.value=i.initializer?i.initializer.call(a):void 0,i.initializer=void 0),i.initializer===void 0?(Object.defineProperty(e,t,i),null):i}let nOt=(BK=en("roles"),WK=tn("get"),zK=en("role/:uniqueId"),qK=tn("get"),HK=en("role"),VK=tn("patch"),GK=en("role"),YK=tn("delete"),KK=en("role"),XK=tn("post"),Di=class{async getRoles(t){return{data:{items:Vb.items(t),itemsPerPage:t.itemsPerPage,totalItems:Vb.total()}}}async getRoleByUniqueId(t){return{data:Vb.getOne(t.paramValues[0])}}async patchRoleByUniqueId(t){return{data:Vb.patchOne(t.body)}}async deleteRole(t){return Vb.deletes(zh(t.body.query)),{data:{}}}async postRole(t){return{data:Vb.create(t.body)}}},P1(Di.prototype,"getRoles",[BK,WK],Object.getOwnPropertyDescriptor(Di.prototype,"getRoles"),Di.prototype),P1(Di.prototype,"getRoleByUniqueId",[zK,qK],Object.getOwnPropertyDescriptor(Di.prototype,"getRoleByUniqueId"),Di.prototype),P1(Di.prototype,"patchRoleByUniqueId",[HK,VK],Object.getOwnPropertyDescriptor(Di.prototype,"patchRoleByUniqueId"),Di.prototype),P1(Di.prototype,"deleteRole",[GK,YK],Object.getOwnPropertyDescriptor(Di.prototype,"deleteRole"),Di.prototype),P1(Di.prototype,"postRole",[KK,XK],Object.getOwnPropertyDescriptor(Di.prototype,"postRole"),Di.prototype),Di);const rOt=[{activeMatcher:null,capability:null,capabilityId:null,children:[{activeMatcher:"/workspace/invite(s)?",capability:null,capabilityId:null,created:1711043161316914e3,createdFormatted:"2024/03/21 18:46:01",href:"/selfservice/workspace-invites",icon:"common/workspaceinvite.svg",label:"Invites",parentId:"fireback",uniqueId:"invites",updated:1711043161316914e3,visibility:"A"},{activeMatcher:"publicjoinkey",capability:null,capabilityId:null,created:171104316131093e4,createdFormatted:"2024/03/21 18:46:01",href:"/selfservice/public-join-keys",icon:"common/joinkey.svg",label:"Public join keys",parentId:"fireback",uniqueId:"publicjoinkey",updated:171104316131093e4,visibility:"A"},{activeMatcher:"/role/",capability:null,capabilityId:null,created:1711043161314546e3,createdFormatted:"2024/03/21 18:46:01",href:"/selfservice/roles",icon:"common/role.svg",label:"Roles",parentId:"fireback",uniqueId:"roles",updated:1711043161314546e3,visibility:"A"}],created:1711043161319555e3,createdFormatted:"2024/03/21 18:46:01",href:null,icon:null,label:"Workspace",uniqueId:"fireback",updated:1711043161319555e3,visibility:"A"},{activeMatcher:null,capability:null,capabilityId:null,children:[{activeMatcher:"drives",capability:null,capabilityId:null,created:1711043161320805e3,createdFormatted:"2024/03/21 18:46:01",href:"/manage/drives",icon:"common/drive.svg",label:"Drive & Files",parentId:"root",uniqueId:"drive_files",updated:1711043161320805e3,visibility:"A"},{activeMatcher:"email-provider",capability:null,capabilityId:null,created:1711043161309663e3,createdFormatted:"2024/03/21 18:46:01",href:"/manage/email-providers",icon:"common/emailprovider.svg",label:"Email Provider",parentId:"root",uniqueId:"email_provider",updated:1711043161309663e3,visibility:"A"},{activeMatcher:"email-sender",capability:null,capabilityId:null,created:171104316131211e4,createdFormatted:"2024/03/21 18:46:01",href:"/manage/email-senders",icon:"common/mail.svg",label:"Email Sender",parentId:"root",uniqueId:"email_sender",updated:171104316131211e4,visibility:"A"},{activeMatcher:"/user/",capability:null,capabilityId:null,created:1711043161318088e3,createdFormatted:"2024/03/21 18:46:01",href:"/manage/users",icon:"common/user.svg",label:"Users",parentId:"root",uniqueId:"users",updated:1711043161318088e3,visibility:"A"},{activeMatcher:"/workspace/config",capability:null,capabilityId:null,created:17110431613157e5,createdFormatted:"2024/03/21 18:46:01",href:"/manage/workspace-config",icon:"ios-theme/icons/settings.svg",label:"Workspace Config",parentId:"root",uniqueId:"workspace_config",updated:17110431613157e5,visibility:"A"},{activeMatcher:"workspace-type",capability:null,capabilityId:null,created:1711043161313308e3,createdFormatted:"2024/03/21 18:46:01",href:"/manage/workspace-types",icon:"ios-theme/icons/settings.svg",label:"Workspace Types",parentId:"root",uniqueId:"workspace_types",updated:1711043161313308e3,visibility:"A"},{activeMatcher:"/workspaces/|workspace/new",capability:null,capabilityId:null,created:171104316132216e4,createdFormatted:"2024/03/21 18:46:01",href:"/manage/workspaces",icon:"common/workspace.svg",label:"Workspaces",parentId:"root",uniqueId:"workspaces",updated:171104316132216e4,visibility:"A"}],created:1711043161319555e3,createdFormatted:"2024/03/21 18:46:01",href:null,icon:null,label:"Root",uniqueId:"root",updated:1711043161319555e3,visibility:"A"},{activeMatcher:null,capability:null,capabilityId:null,children:[{activeMatcher:"/invites/",capability:null,capabilityId:null,created:1711043161328479e3,createdFormatted:"2024/03/21 18:46:01",href:"/selfservice/user-invitations",icon:"common/workspaceinvite.svg",label:"My Invitations",parentId:"personal",uniqueId:"my_invitation",updated:1711043161328479e3,visibility:"A"},{activeMatcher:"/settings",capability:null,capabilityId:null,created:1711043161325229e3,createdFormatted:"2024/03/21 18:46:01",href:"/settings",icon:"ios-theme/icons/settings.svg",label:"Settings",parentId:"personal",uniqueId:"settings",updated:1711043161325229e3,visibility:"A"},{activeMatcher:"/selfservice",capability:null,capabilityId:null,created:1711043161325229e3,createdFormatted:"2024/03/21 18:46:01",href:"/selfservice",icon:"ios-theme/icons/settings.svg",label:"Account & Profile",parentId:"personal",uniqueId:"settings",updated:1711043161325229e3,visibility:"A"}],created:1711043161323813e3,createdFormatted:"2024/03/21 18:46:01",href:null,icon:null,label:"Personal",uniqueId:"personal",updated:1711043161323813e3,visibility:"A"}];var QK,JK,A1;function aOt(e,t,n,r,a){var i={};return Object.keys(r).forEach(function(o){i[o]=r[o]}),i.enumerable=!!i.enumerable,i.configurable=!!i.configurable,("value"in i||i.initializer)&&(i.writable=!0),i=n.slice().reverse().reduce(function(o,l){return l(e,t,o)||o},i),a&&i.initializer!==void 0&&(i.value=i.initializer?i.initializer.call(a):void 0,i.initializer=void 0),i.initializer===void 0?(Object.defineProperty(e,t,i),null):i}let iOt=(QK=en("cte-app-menus"),JK=tn("get"),A1=class{async getAppMenu(t){return{data:{items:rOt}}}},aOt(A1.prototype,"getAppMenu",[QK,JK],Object.getOwnPropertyDescriptor(A1.prototype,"getAppMenu"),A1.prototype),A1);const oOt=()=>{if(Math.random()>.5)switch(Math.floor(Math.random()*3)){case 0:return`10.${Math.floor(Math.random()*256)}.${Math.floor(Math.random()*256)}.${Math.floor(Math.random()*256)}`;case 1:return`172.${Math.floor(16+Math.random()*16)}.${Math.floor(Math.random()*256)}.${Math.floor(Math.random()*256)}`;case 2:return`192.168.${Math.floor(Math.random()*256)}.${Math.floor(Math.random()*256)}`;default:return`192.168.${Math.floor(Math.random()*256)}.${Math.floor(Math.random()*256)}`}else return`${Math.floor(Math.random()*223)+1}.${Math.floor(Math.random()*256)}.${Math.floor(Math.random()*256)}.${Math.floor(Math.random()*256)}`},sOt=["Ali","Behnaz","Carlos","Daniela","Ethan","Fatima","Gustavo","Helena","Isla","Javad","Kamila","Leila","Mateo","Nasim","Omid","Parisa","Rania","Saeed","Tomas","Ursula","Vali","Wojtek","Zara","Alice","Bob","Charlie","Diana","George","Mohammed","Julia","Khalid","Lena","Mohammad","Nina","Oscar","Quentin","Rosa","Sam","Tina","Umar","Vera","Waleed","Xenia","Yara","Ziad","Maxim","Johann","Krzysztof","Baris","Mehmet"],lOt=["Smith","Johnson","Williams","Brown","Jones","Garcia","Miller","Davis","Rodriguez","Martinez","Hernandez","Lopez","Gonzalez","Wilson","Anderson","Thomas","Taylor","Moore","Jackson","Martin","Lee","Perez","Thompson","White","Harris","Sanchez","Clark","Ramirez","Lewis","Robinson","Walker","Young","Allen","King","Wright","Scott","Torres","Nguyen","Hill","Flores","Green","Adams","Nelson","Baker","Hall","Rivera","Campbell","Mitchell","Carter","Roberts","Kowalski","Nowak","Jankowski","Zieliński","Wiśniewski","Lewandowski","Kaczmarek","Bąk","Pereira","Altıntaş"],uOt=[{addressLine1:"123 Main St",addressLine2:"Apt 4",city:"Berlin",stateOrProvince:"Berlin",postalCode:"10115",countryCode:"DE"},{addressLine1:"456 Elm St",addressLine2:"Apt 23",city:"Paris",stateOrProvince:"Île-de-France",postalCode:"75001",countryCode:"FR"},{addressLine1:"789 Oak Dr",addressLine2:"Apt 9",city:"Warszawa",stateOrProvince:"Mazowieckie",postalCode:"01010",countryCode:"PL"},{addressLine1:"101 Maple Ave",addressLine2:"",city:"Tehran",stateOrProvince:"تهران",postalCode:"11365",countryCode:"IR"},{addressLine1:"202 Pine St",addressLine2:"Apt 7",city:"Madrid",stateOrProvince:"Community of Madrid",postalCode:"28001",countryCode:"ES"},{addressLine1:"456 Park Ave",addressLine2:"Suite 5",city:"New York",stateOrProvince:"NY",postalCode:"10001",countryCode:"US"},{addressLine1:"789 Sunset Blvd",addressLine2:"Unit 32",city:"Los Angeles",stateOrProvince:"CA",postalCode:"90001",countryCode:"US"},{addressLine1:"12 Hauptstrasse",addressLine2:"Apt 2",city:"Munich",stateOrProvince:"Bavaria",postalCode:"80331",countryCode:"DE"},{addressLine1:"75 Taksim Square",addressLine2:"Apt 12",city:"Istanbul",stateOrProvince:"Istanbul",postalCode:"34430",countryCode:"TR"},{addressLine1:"321 Wierzbowa",addressLine2:"",city:"Kraków",stateOrProvince:"Małopolskie",postalCode:"31000",countryCode:"PL"},{addressLine1:"55 Rue de Rivoli",addressLine2:"Apt 10",city:"Paris",stateOrProvince:"Île-de-France",postalCode:"75004",countryCode:"FR"},{addressLine1:"1001 Tehran Ave",addressLine2:"",city:"Tehran",stateOrProvince:"تهران",postalCode:"14155",countryCode:"IR"},{addressLine1:"9 Calle de Alcalá",addressLine2:"Apt 6",city:"Madrid",stateOrProvince:"Madrid",postalCode:"28009",countryCode:"ES"},{addressLine1:"222 King St",addressLine2:"Suite 1B",city:"London",stateOrProvince:"London",postalCode:"E1 6AN",countryCode:"GB"},{addressLine1:"15 St. Peters Rd",addressLine2:"",city:"Toronto",stateOrProvince:"Ontario",postalCode:"M5A 1A2",countryCode:"CA"},{addressLine1:"1340 Via Roma",addressLine2:"",city:"Rome",stateOrProvince:"Lazio",postalCode:"00100",countryCode:"IT"},{addressLine1:"42 Nevsky Prospekt",addressLine2:"Apt 1",city:"Saint Petersburg",stateOrProvince:"Leningradskaya",postalCode:"190000",countryCode:"RU"},{addressLine1:"3 Rüdesheimer Str.",addressLine2:"Apt 9",city:"Frankfurt",stateOrProvince:"Hessen",postalCode:"60326",countryCode:"DE"},{addressLine1:"271 Süleyman Demirel Bulvarı",addressLine2:"Apt 45",city:"Ankara",stateOrProvince:"Ankara",postalCode:"06100",countryCode:"TR"},{addressLine1:"7 Avenues des Champs-Élysées",addressLine2:"",city:"Paris",stateOrProvince:"Île-de-France",postalCode:"75008",countryCode:"FR"},{addressLine1:"125 E. 9th St.",addressLine2:"Apt 12",city:"Chicago",stateOrProvince:"IL",postalCode:"60606",countryCode:"US"},{addressLine1:"30 Rue de la Paix",addressLine2:"",city:"Paris",stateOrProvince:"Île-de-France",postalCode:"75002",countryCode:"FR"},{addressLine1:"16 Zlote Tarasy",addressLine2:"Apt 18",city:"Warszawa",stateOrProvince:"Mazowieckie",postalCode:"00-510",countryCode:"PL"},{addressLine1:"120 Váci utca",addressLine2:"",city:"Budapest",stateOrProvince:"Budapest",postalCode:"1056",countryCode:"HU"},{addressLine1:"22 Sukhbaatar Sq.",addressLine2:"",city:"Ulaanbaatar",stateOrProvince:"Central",postalCode:"14190",countryCode:"MN"},{addressLine1:"34 Princes Street",addressLine2:"Flat 1",city:"Edinburgh",stateOrProvince:"Scotland",postalCode:"EH2 4AY",countryCode:"GB"},{addressLine1:"310 Alzaibiyah",addressLine2:"",city:"Amman",stateOrProvince:"Amman",postalCode:"11183",countryCode:"JO"},{addressLine1:"401 Taksim Caddesi",addressLine2:"Apt 25",city:"Istanbul",stateOrProvince:"Istanbul",postalCode:"34430",countryCode:"TR"},{addressLine1:"203 High Street",addressLine2:"Unit 3",city:"London",stateOrProvince:"London",postalCode:"W1T 2LQ",countryCode:"GB"},{addressLine1:"58 Via Nazionale",addressLine2:"",city:"Rome",stateOrProvince:"Lazio",postalCode:"00184",countryCode:"IT"},{addressLine1:"47 Gloucester Road",addressLine2:"",city:"London",stateOrProvince:"London",postalCode:"SW7 4QA",countryCode:"GB"},{addressLine1:"98 Calle de Bravo Murillo",addressLine2:"",city:"Madrid",stateOrProvince:"Madrid",postalCode:"28039",countryCode:"ES"},{addressLine1:"57 Mirza Ghalib Street",addressLine2:"",city:"Tehran",stateOrProvince:"تهران",postalCode:"15996",countryCode:"IR"},{addressLine1:"35 Królewska St",addressLine2:"",city:"Warszawa",stateOrProvince:"Mazowieckie",postalCode:"00-065",countryCode:"PL"},{addressLine1:"12 5th Ave",addressLine2:"",city:"New York",stateOrProvince:"NY",postalCode:"10128",countryCode:"US"}],cOt=()=>{const e=new Uint8Array(18);window.crypto.getRandomValues(e);const t=Array.from(e).map(r=>r.toString(36).padStart(2,"0")).join(""),n=Date.now().toString(36);return n+t.slice(0,30-n.length)},dOt=()=>({uniqueId:cOt(),firstName:ka.sample(sOt),lastName:ka.sample(lOt),photo:`https://randomuser.me/api/portraits/men/${Math.floor(Math.random()*100)}.jpg`,birthDate:new Date().getDate()+"/"+new Date().getMonth()+"/"+new Date().getFullYear(),gender:Math.random()>.5?1:0,title:Math.random()>.5?"Mr.":"Ms.",avatar:`https://randomuser.me/api/portraits/men/${Math.floor(Math.random()*100)}.jpg`,lastIpAddress:oOt(),primaryAddress:ka.sample(uOt)}),Gb=new $d(ka.times(1e4,()=>dOt()));var ZK,eX,tX,nX,rX,aX,iX,oX,sX,lX,$i;function N1(e,t,n,r,a){var i={};return Object.keys(r).forEach(function(o){i[o]=r[o]}),i.enumerable=!!i.enumerable,i.configurable=!!i.configurable,("value"in i||i.initializer)&&(i.writable=!0),i=n.slice().reverse().reduce(function(o,l){return l(e,t,o)||o},i),a&&i.initializer!==void 0&&(i.value=i.initializer?i.initializer.call(a):void 0,i.initializer=void 0),i.initializer===void 0?(Object.defineProperty(e,t,i),null):i}let fOt=(ZK=en("users"),eX=tn("get"),tX=en("user"),nX=tn("delete"),rX=en("user/:uniqueId"),aX=tn("get"),iX=en("user"),oX=tn("patch"),sX=en("user"),lX=tn("post"),$i=class{async getUsers(t){return{data:{items:Gb.items(t),itemsPerPage:t.itemsPerPage,totalItems:Gb.total()}}}async deleteUser(t){return Gb.deletes(zh(t.body.query)),{data:{}}}async getUserByUniqueId(t){return{data:Gb.getOne(t.paramValues[0])}}async patchUserByUniqueId(t){return{data:Gb.patchOne(t.body)}}async postUser(t){return{data:Gb.create(t.body)}}},N1($i.prototype,"getUsers",[ZK,eX],Object.getOwnPropertyDescriptor($i.prototype,"getUsers"),$i.prototype),N1($i.prototype,"deleteUser",[tX,nX],Object.getOwnPropertyDescriptor($i.prototype,"deleteUser"),$i.prototype),N1($i.prototype,"getUserByUniqueId",[rX,aX],Object.getOwnPropertyDescriptor($i.prototype,"getUserByUniqueId"),$i.prototype),N1($i.prototype,"patchUserByUniqueId",[iX,oX],Object.getOwnPropertyDescriptor($i.prototype,"patchUserByUniqueId"),$i.prototype),N1($i.prototype,"postUser",[sX,lX],Object.getOwnPropertyDescriptor($i.prototype,"postUser"),$i.prototype),$i);class pOt{}var uX,cX,dX,fX,pX,hX,mX,gX,vX,yX,Li;function M1(e,t,n,r,a){var i={};return Object.keys(r).forEach(function(o){i[o]=r[o]}),i.enumerable=!!i.enumerable,i.configurable=!!i.configurable,("value"in i||i.initializer)&&(i.writable=!0),i=n.slice().reverse().reduce(function(o,l){return l(e,t,o)||o},i),a&&i.initializer!==void 0&&(i.value=i.initializer?i.initializer.call(a):void 0,i.initializer=void 0),i.initializer===void 0?(Object.defineProperty(e,t,i),null):i}let hOt=(uX=en("workspace-invites"),cX=tn("get"),dX=en("workspace-invite/:uniqueId"),fX=tn("get"),pX=en("workspace-invite"),hX=tn("patch"),mX=en("workspace/invite"),gX=tn("post"),vX=en("workspace-invite"),yX=tn("delete"),Li=class{async getWorkspaceInvites(t){return{data:{items:mr.workspaceInvite.items(t),itemsPerPage:t.itemsPerPage,totalItems:mr.workspaceInvite.total()}}}async getWorkspaceInviteByUniqueId(t){return{data:mr.workspaceInvite.getOne(t.paramValues[0])}}async patchWorkspaceInviteByUniqueId(t){return{data:mr.workspaceInvite.patchOne(t.body)}}async postWorkspaceInvite(t){return{data:mr.workspaceInvite.create(t.body)}}async deleteWorkspaceInvite(t){return mr.workspaceInvite.deletes(zh(t.body.query)),{data:{}}}},M1(Li.prototype,"getWorkspaceInvites",[uX,cX],Object.getOwnPropertyDescriptor(Li.prototype,"getWorkspaceInvites"),Li.prototype),M1(Li.prototype,"getWorkspaceInviteByUniqueId",[dX,fX],Object.getOwnPropertyDescriptor(Li.prototype,"getWorkspaceInviteByUniqueId"),Li.prototype),M1(Li.prototype,"patchWorkspaceInviteByUniqueId",[pX,hX],Object.getOwnPropertyDescriptor(Li.prototype,"patchWorkspaceInviteByUniqueId"),Li.prototype),M1(Li.prototype,"postWorkspaceInvite",[mX,gX],Object.getOwnPropertyDescriptor(Li.prototype,"postWorkspaceInvite"),Li.prototype),M1(Li.prototype,"deleteWorkspaceInvite",[vX,yX],Object.getOwnPropertyDescriptor(Li.prototype,"deleteWorkspaceInvite"),Li.prototype),Li);const Yb=new $d([{title:"Student workspace type",uniqueId:"1",slug:"/student"}]);var bX,wX,SX,EX,TX,CX,kX,xX,_X,OX,Fi;function I1(e,t,n,r,a){var i={};return Object.keys(r).forEach(function(o){i[o]=r[o]}),i.enumerable=!!i.enumerable,i.configurable=!!i.configurable,("value"in i||i.initializer)&&(i.writable=!0),i=n.slice().reverse().reduce(function(o,l){return l(e,t,o)||o},i),a&&i.initializer!==void 0&&(i.value=i.initializer?i.initializer.call(a):void 0,i.initializer=void 0),i.initializer===void 0?(Object.defineProperty(e,t,i),null):i}let mOt=(bX=en("workspace-types"),wX=tn("get"),SX=en("workspace-type/:uniqueId"),EX=tn("get"),TX=en("workspace-type"),CX=tn("patch"),kX=en("workspace-type"),xX=tn("delete"),_X=en("workspace-type"),OX=tn("post"),Fi=class{async getWorkspaceTypes(t){return{data:{items:Yb.items(t),itemsPerPage:t.itemsPerPage,totalItems:Yb.total()}}}async getWorkspaceTypeByUniqueId(t){return{data:Yb.getOne(t.paramValues[0])}}async patchWorkspaceTypeByUniqueId(t){return{data:Yb.patchOne(t.body)}}async deleteWorkspaceType(t){return Yb.deletes(zh(t.body.query)),{data:{}}}async postWorkspaceType(t){return{data:Yb.create(t.body)}}},I1(Fi.prototype,"getWorkspaceTypes",[bX,wX],Object.getOwnPropertyDescriptor(Fi.prototype,"getWorkspaceTypes"),Fi.prototype),I1(Fi.prototype,"getWorkspaceTypeByUniqueId",[SX,EX],Object.getOwnPropertyDescriptor(Fi.prototype,"getWorkspaceTypeByUniqueId"),Fi.prototype),I1(Fi.prototype,"patchWorkspaceTypeByUniqueId",[TX,CX],Object.getOwnPropertyDescriptor(Fi.prototype,"patchWorkspaceTypeByUniqueId"),Fi.prototype),I1(Fi.prototype,"deleteWorkspaceType",[kX,xX],Object.getOwnPropertyDescriptor(Fi.prototype,"deleteWorkspaceType"),Fi.prototype),I1(Fi.prototype,"postWorkspaceType",[_X,OX],Object.getOwnPropertyDescriptor(Fi.prototype,"postWorkspaceType"),Fi.prototype),Fi);var RX,PX,AX,NX,MX,IX,DX,$X,LX,FX,jX,UX,Va;function Kb(e,t,n,r,a){var i={};return Object.keys(r).forEach(function(o){i[o]=r[o]}),i.enumerable=!!i.enumerable,i.configurable=!!i.configurable,("value"in i||i.initializer)&&(i.writable=!0),i=n.slice().reverse().reduce(function(o,l){return l(e,t,o)||o},i),a&&i.initializer!==void 0&&(i.value=i.initializer?i.initializer.call(a):void 0,i.initializer=void 0),i.initializer===void 0?(Object.defineProperty(e,t,i),null):i}let gOt=(RX=en("workspaces"),PX=tn("get"),AX=en("cte-workspaces"),NX=tn("get"),MX=en("workspace/:uniqueId"),IX=tn("get"),DX=en("workspace"),$X=tn("patch"),LX=en("workspace"),FX=tn("delete"),jX=en("workspace"),UX=tn("post"),Va=class{async getWorkspaces(t){return{data:{items:mr.workspaces.items(t),itemsPerPage:t.itemsPerPage,totalItems:mr.workspaces.total()}}}async getWorkspacesCte(t){return{data:{items:mr.workspaces.items(t),itemsPerPage:t.itemsPerPage,totalItems:mr.workspaces.total()}}}async getWorkspaceByUniqueId(t){return{data:mr.workspaces.getOne(t.paramValues[0])}}async patchWorkspaceByUniqueId(t){return{data:mr.workspaces.patchOne(t.body)}}async deleteWorkspace(t){return mr.workspaces.deletes(zh(t.body.query)),{data:{}}}async postWorkspace(t){return{data:mr.workspaces.create(t.body)}}},Kb(Va.prototype,"getWorkspaces",[RX,PX],Object.getOwnPropertyDescriptor(Va.prototype,"getWorkspaces"),Va.prototype),Kb(Va.prototype,"getWorkspacesCte",[AX,NX],Object.getOwnPropertyDescriptor(Va.prototype,"getWorkspacesCte"),Va.prototype),Kb(Va.prototype,"getWorkspaceByUniqueId",[MX,IX],Object.getOwnPropertyDescriptor(Va.prototype,"getWorkspaceByUniqueId"),Va.prototype),Kb(Va.prototype,"patchWorkspaceByUniqueId",[DX,$X],Object.getOwnPropertyDescriptor(Va.prototype,"patchWorkspaceByUniqueId"),Va.prototype),Kb(Va.prototype,"deleteWorkspace",[LX,FX],Object.getOwnPropertyDescriptor(Va.prototype,"deleteWorkspace"),Va.prototype),Kb(Va.prototype,"postWorkspace",[jX,UX],Object.getOwnPropertyDescriptor(Va.prototype,"postWorkspace"),Va.prototype),Va);var BX,WX,zX,qX,eh;function HX(e,t,n,r,a){var i={};return Object.keys(r).forEach(function(o){i[o]=r[o]}),i.enumerable=!!i.enumerable,i.configurable=!!i.configurable,("value"in i||i.initializer)&&(i.writable=!0),i=n.slice().reverse().reduce(function(o,l){return l(e,t,o)||o},i),a&&i.initializer!==void 0&&(i.value=i.initializer?i.initializer.call(a):void 0,i.initializer=void 0),i.initializer===void 0?(Object.defineProperty(e,t,i),null):i}let vOt=(BX=en("workspace-config"),WX=tn("get"),zX=en("workspace-wconfig/distiwnct"),qX=tn("patch"),eh=class{async getWorkspaceConfig(t){return{data:{enableOtp:!0,forcePasswordOnPhone:!0}}}async setWorkspaceConfig(t){return{data:t.body}}},HX(eh.prototype,"getWorkspaceConfig",[BX,WX],Object.getOwnPropertyDescriptor(eh.prototype,"getWorkspaceConfig"),eh.prototype),HX(eh.prototype,"setWorkspaceConfig",[zX,qX],Object.getOwnPropertyDescriptor(eh.prototype,"setWorkspaceConfig"),eh.prototype),eh);const yOt=[new K_t,new nOt,new iOt,new fOt,new mOt,new J_t,new Z_t,new eOt,new hOt,new tOt,new pOt,new gOt,new vOt],bOt=R.createContext(null),yL={didCatch:!1,error:null};class wOt extends R.Component{constructor(t){super(t),this.resetErrorBoundary=this.resetErrorBoundary.bind(this),this.state=yL}static getDerivedStateFromError(t){return{didCatch:!0,error:t}}resetErrorBoundary(){const{error:t}=this.state;if(t!==null){for(var n,r,a=arguments.length,i=new Array(a),o=0;o0&&arguments[0]!==void 0?arguments[0]:[],t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[];return e.length!==t.length||e.some((n,r)=>!Object.is(n,t[r]))}function EOt({error:e,resetErrorBoundary:t}){return w.jsxs("div",{role:"alert",children:[w.jsx("p",{children:"Something went wrong:"}),w.jsx("div",{style:{color:"red",padding:"30px"},children:e.message})]})}function TOt(e){let t="en";const n=e.match(/\/(fa|en|ar|pl|de)\//);return n&&n[1]&&(t=n[1]),t}function COt(){const[e,t]=R.useState(window.location.toString());return R.useEffect(()=>{const n=()=>{t(window.location.hash)};return window.addEventListener("popstate",n),window.addEventListener("pushState",n),window.addEventListener("replaceState",n),()=>{window.removeEventListener("popstate",n),window.removeEventListener("pushState",n),window.removeEventListener("replaceState",n)}},[]),{hash:e}}function kOt(){const{hash:e}=COt();let t="en",n="us",r="ltr";return kr.FORCED_LOCALE?t=kr.FORCED_LOCALE:t=TOt(e),t==="fa"&&(n="ir",r="rtl"),{locale:t,region:n,dir:r}}const WO=R.createContext(null);WO.displayName="PanelGroupContext";const Ca={group:"data-panel-group",groupDirection:"data-panel-group-direction",groupId:"data-panel-group-id",panel:"data-panel",panelCollapsible:"data-panel-collapsible",panelId:"data-panel-id",panelSize:"data-panel-size",resizeHandle:"data-resize-handle",resizeHandleActive:"data-resize-handle-active",resizeHandleEnabled:"data-panel-resize-handle-enabled",resizeHandleId:"data-panel-resize-handle-id",resizeHandleState:"data-resize-handle-state"},xU=10,Zv=R.useLayoutEffect,VX=aE.useId,xOt=typeof VX=="function"?VX:()=>null;let _Ot=0;function _U(e=null){const t=xOt(),n=R.useRef(e||t||null);return n.current===null&&(n.current=""+_Ot++),e??n.current}function uoe({children:e,className:t="",collapsedSize:n,collapsible:r,defaultSize:a,forwardedRef:i,id:o,maxSize:l,minSize:u,onCollapse:d,onExpand:f,onResize:g,order:y,style:h,tagName:v="div",...E}){const T=R.useContext(WO);if(T===null)throw Error("Panel components must be rendered within a PanelGroup container");const{collapsePanel:C,expandPanel:k,getPanelSize:_,getPanelStyle:A,groupId:P,isPanelCollapsed:N,reevaluatePanelConstraints:I,registerPanel:L,resizePanel:j,unregisterPanel:z}=T,Q=_U(o),ue=R.useRef({callbacks:{onCollapse:d,onExpand:f,onResize:g},constraints:{collapsedSize:n,collapsible:r,defaultSize:a,maxSize:l,minSize:u},id:Q,idIsFromProps:o!==void 0,order:y});R.useRef({didLogMissingDefaultSizeWarning:!1}),Zv(()=>{const{callbacks:me,constraints:ge}=ue.current,W={...ge};ue.current.id=Q,ue.current.idIsFromProps=o!==void 0,ue.current.order=y,me.onCollapse=d,me.onExpand=f,me.onResize=g,ge.collapsedSize=n,ge.collapsible=r,ge.defaultSize=a,ge.maxSize=l,ge.minSize=u,(W.collapsedSize!==ge.collapsedSize||W.collapsible!==ge.collapsible||W.maxSize!==ge.maxSize||W.minSize!==ge.minSize)&&I(ue.current,W)}),Zv(()=>{const me=ue.current;return L(me),()=>{z(me)}},[y,Q,L,z]),R.useImperativeHandle(i,()=>({collapse:()=>{C(ue.current)},expand:me=>{k(ue.current,me)},getId(){return Q},getSize(){return _(ue.current)},isCollapsed(){return N(ue.current)},isExpanded(){return!N(ue.current)},resize:me=>{j(ue.current,me)}}),[C,k,_,N,Q,j]);const re=A(ue.current,a);return R.createElement(v,{...E,children:e,className:t,id:Q,style:{...re,...h},[Ca.groupId]:P,[Ca.panel]:"",[Ca.panelCollapsible]:r||void 0,[Ca.panelId]:Q,[Ca.panelSize]:parseFloat(""+re.flexGrow).toFixed(1)})}const OU=R.forwardRef((e,t)=>R.createElement(uoe,{...e,forwardedRef:t}));uoe.displayName="Panel";OU.displayName="forwardRef(Panel)";let SF=null,_x=-1,ah=null;function OOt(e,t){if(t){const n=(t&hoe)!==0,r=(t&moe)!==0,a=(t&goe)!==0,i=(t&voe)!==0;if(n)return a?"se-resize":i?"ne-resize":"e-resize";if(r)return a?"sw-resize":i?"nw-resize":"w-resize";if(a)return"s-resize";if(i)return"n-resize"}switch(e){case"horizontal":return"ew-resize";case"intersection":return"move";case"vertical":return"ns-resize"}}function ROt(){ah!==null&&(document.head.removeChild(ah),SF=null,ah=null,_x=-1)}function bL(e,t){var n,r;const a=OOt(e,t);if(SF!==a){if(SF=a,ah===null&&(ah=document.createElement("style"),document.head.appendChild(ah)),_x>=0){var i;(i=ah.sheet)===null||i===void 0||i.removeRule(_x)}_x=(n=(r=ah.sheet)===null||r===void 0?void 0:r.insertRule(`*{cursor: ${a} !important;}`))!==null&&n!==void 0?n:-1}}function coe(e){return e.type==="keydown"}function doe(e){return e.type.startsWith("pointer")}function foe(e){return e.type.startsWith("mouse")}function zO(e){if(doe(e)){if(e.isPrimary)return{x:e.clientX,y:e.clientY}}else if(foe(e))return{x:e.clientX,y:e.clientY};return{x:1/0,y:1/0}}function POt(){if(typeof matchMedia=="function")return matchMedia("(pointer:coarse)").matches?"coarse":"fine"}function AOt(e,t,n){return e.xt.x&&e.yt.y}function NOt(e,t){if(e===t)throw new Error("Cannot compare node with itself");const n={a:KX(e),b:KX(t)};let r;for(;n.a.at(-1)===n.b.at(-1);)e=n.a.pop(),t=n.b.pop(),r=e;Fn(r,"Stacking order can only be calculated for elements with a common ancestor");const a={a:YX(GX(n.a)),b:YX(GX(n.b))};if(a.a===a.b){const i=r.childNodes,o={a:n.a.at(-1),b:n.b.at(-1)};let l=i.length;for(;l--;){const u=i[l];if(u===o.a)return 1;if(u===o.b)return-1}}return Math.sign(a.a-a.b)}const MOt=/\b(?:position|zIndex|opacity|transform|webkitTransform|mixBlendMode|filter|webkitFilter|isolation)\b/;function IOt(e){var t;const n=getComputedStyle((t=poe(e))!==null&&t!==void 0?t:e).display;return n==="flex"||n==="inline-flex"}function DOt(e){const t=getComputedStyle(e);return!!(t.position==="fixed"||t.zIndex!=="auto"&&(t.position!=="static"||IOt(e))||+t.opacity<1||"transform"in t&&t.transform!=="none"||"webkitTransform"in t&&t.webkitTransform!=="none"||"mixBlendMode"in t&&t.mixBlendMode!=="normal"||"filter"in t&&t.filter!=="none"||"webkitFilter"in t&&t.webkitFilter!=="none"||"isolation"in t&&t.isolation==="isolate"||MOt.test(t.willChange)||t.webkitOverflowScrolling==="touch")}function GX(e){let t=e.length;for(;t--;){const n=e[t];if(Fn(n,"Missing node"),DOt(n))return n}return null}function YX(e){return e&&Number(getComputedStyle(e).zIndex)||0}function KX(e){const t=[];for(;e;)t.push(e),e=poe(e);return t}function poe(e){const{parentNode:t}=e;return t&&t instanceof ShadowRoot?t.host:t}const hoe=1,moe=2,goe=4,voe=8,$Ot=POt()==="coarse";let Ou=[],_0=!1,ih=new Map,qO=new Map;const eT=new Set;function LOt(e,t,n,r,a){var i;const{ownerDocument:o}=t,l={direction:n,element:t,hitAreaMargins:r,setResizeHandlerState:a},u=(i=ih.get(o))!==null&&i!==void 0?i:0;return ih.set(o,u+1),eT.add(l),O_(),function(){var f;qO.delete(e),eT.delete(l);const g=(f=ih.get(o))!==null&&f!==void 0?f:1;if(ih.set(o,g-1),O_(),g===1&&ih.delete(o),Ou.includes(l)){const y=Ou.indexOf(l);y>=0&&Ou.splice(y,1),PU(),a("up",!0,null)}}}function FOt(e){const{target:t}=e,{x:n,y:r}=zO(e);_0=!0,RU({target:t,x:n,y:r}),O_(),Ou.length>0&&(R_("down",e),e.preventDefault(),yoe(t)||e.stopImmediatePropagation())}function wL(e){const{x:t,y:n}=zO(e);if(_0&&e.buttons===0&&(_0=!1,R_("up",e)),!_0){const{target:r}=e;RU({target:r,x:t,y:n})}R_("move",e),PU(),Ou.length>0&&e.preventDefault()}function SL(e){const{target:t}=e,{x:n,y:r}=zO(e);qO.clear(),_0=!1,Ou.length>0&&(e.preventDefault(),yoe(t)||e.stopImmediatePropagation()),R_("up",e),RU({target:t,x:n,y:r}),PU(),O_()}function yoe(e){let t=e;for(;t;){if(t.hasAttribute(Ca.resizeHandle))return!0;t=t.parentElement}return!1}function RU({target:e,x:t,y:n}){Ou.splice(0);let r=null;(e instanceof HTMLElement||e instanceof SVGElement)&&(r=e),eT.forEach(a=>{const{element:i,hitAreaMargins:o}=a,l=i.getBoundingClientRect(),{bottom:u,left:d,right:f,top:g}=l,y=$Ot?o.coarse:o.fine;if(t>=d-y&&t<=f+y&&n>=g-y&&n<=u+y){if(r!==null&&document.contains(r)&&i!==r&&!i.contains(r)&&!r.contains(i)&&NOt(r,i)>0){let v=r,E=!1;for(;v&&!v.contains(i);){if(AOt(v.getBoundingClientRect(),l)){E=!0;break}v=v.parentElement}if(E)return}Ou.push(a)}})}function EL(e,t){qO.set(e,t)}function PU(){let e=!1,t=!1;Ou.forEach(r=>{const{direction:a}=r;a==="horizontal"?e=!0:t=!0});let n=0;qO.forEach(r=>{n|=r}),e&&t?bL("intersection",n):e?bL("horizontal",n):t?bL("vertical",n):ROt()}let TL;function O_(){var e;(e=TL)===null||e===void 0||e.abort(),TL=new AbortController;const t={capture:!0,signal:TL.signal};eT.size&&(_0?(Ou.length>0&&ih.forEach((n,r)=>{const{body:a}=r;n>0&&(a.addEventListener("contextmenu",SL,t),a.addEventListener("pointerleave",wL,t),a.addEventListener("pointermove",wL,t))}),ih.forEach((n,r)=>{const{body:a}=r;a.addEventListener("pointerup",SL,t),a.addEventListener("pointercancel",SL,t)})):ih.forEach((n,r)=>{const{body:a}=r;n>0&&(a.addEventListener("pointerdown",FOt,t),a.addEventListener("pointermove",wL,t))}))}function R_(e,t){eT.forEach(n=>{const{setResizeHandlerState:r}=n,a=Ou.includes(n);r(e,a,t)})}function jOt(){const[e,t]=R.useState(0);return R.useCallback(()=>t(n=>n+1),[])}function Fn(e,t){if(!e)throw console.error(t),Error(t)}function oy(e,t,n=xU){return e.toFixed(n)===t.toFixed(n)?0:e>t?1:-1}function Ld(e,t,n=xU){return oy(e,t,n)===0}function Us(e,t,n){return oy(e,t,n)===0}function UOt(e,t,n){if(e.length!==t.length)return!1;for(let r=0;r0&&(e=e<0?0-C:C)}}}{const g=e<0?l:u,y=n[g];Fn(y,`No panel constraints found for index ${g}`);const{collapsedSize:h=0,collapsible:v,minSize:E=0}=y;if(v){const T=t[g];if(Fn(T!=null,`Previous layout not found for panel index ${g}`),Us(T,E)){const C=T-h;oy(C,Math.abs(e))>0&&(e=e<0?0-C:C)}}}}{const g=e<0?1:-1;let y=e<0?u:l,h=0;for(;;){const E=t[y];Fn(E!=null,`Previous layout not found for panel index ${y}`);const C=h0({panelConstraints:n,panelIndex:y,size:100})-E;if(h+=C,y+=g,y<0||y>=n.length)break}const v=Math.min(Math.abs(e),Math.abs(h));e=e<0?0-v:v}{let y=e<0?l:u;for(;y>=0&&y=0))break;e<0?y--:y++}}if(UOt(a,o))return a;{const g=e<0?u:l,y=t[g];Fn(y!=null,`Previous layout not found for panel index ${g}`);const h=y+d,v=h0({panelConstraints:n,panelIndex:g,size:h});if(o[g]=v,!Us(v,h)){let E=h-v,C=e<0?u:l;for(;C>=0&&C0?C--:C++}}}const f=o.reduce((g,y)=>y+g,0);return Us(f,100)?o:a}function BOt({layout:e,panelsArray:t,pivotIndices:n}){let r=0,a=100,i=0,o=0;const l=n[0];Fn(l!=null,"No pivot index found"),t.forEach((g,y)=>{const{constraints:h}=g,{maxSize:v=100,minSize:E=0}=h;y===l?(r=E,a=v):(i+=E,o+=v)});const u=Math.min(a,100-i),d=Math.max(r,100-o),f=e[l];return{valueMax:u,valueMin:d,valueNow:f}}function tT(e,t=document){return Array.from(t.querySelectorAll(`[${Ca.resizeHandleId}][data-panel-group-id="${e}"]`))}function boe(e,t,n=document){const a=tT(e,n).findIndex(i=>i.getAttribute(Ca.resizeHandleId)===t);return a??null}function woe(e,t,n){const r=boe(e,t,n);return r!=null?[r,r+1]:[-1,-1]}function WOt(e){return e instanceof HTMLElement?!0:typeof e=="object"&&e!==null&&"tagName"in e&&"getAttribute"in e}function Soe(e,t=document){if(WOt(t)&&t.dataset.panelGroupId==e)return t;const n=t.querySelector(`[data-panel-group][data-panel-group-id="${e}"]`);return n||null}function HO(e,t=document){const n=t.querySelector(`[${Ca.resizeHandleId}="${e}"]`);return n||null}function zOt(e,t,n,r=document){var a,i,o,l;const u=HO(t,r),d=tT(e,r),f=u?d.indexOf(u):-1,g=(a=(i=n[f])===null||i===void 0?void 0:i.id)!==null&&a!==void 0?a:null,y=(o=(l=n[f+1])===null||l===void 0?void 0:l.id)!==null&&o!==void 0?o:null;return[g,y]}function qOt({committedValuesRef:e,eagerValuesRef:t,groupId:n,layout:r,panelDataArray:a,panelGroupElement:i,setLayout:o}){R.useRef({didWarnAboutMissingResizeHandle:!1}),Zv(()=>{if(!i)return;const l=tT(n,i);for(let u=0;u{l.forEach((u,d)=>{u.removeAttribute("aria-controls"),u.removeAttribute("aria-valuemax"),u.removeAttribute("aria-valuemin"),u.removeAttribute("aria-valuenow")})}},[n,r,a,i]),R.useEffect(()=>{if(!i)return;const l=t.current;Fn(l,"Eager values not found");const{panelDataArray:u}=l,d=Soe(n,i);Fn(d!=null,`No group found for id "${n}"`);const f=tT(n,i);Fn(f,`No resize handles found for group id "${n}"`);const g=f.map(y=>{const h=y.getAttribute(Ca.resizeHandleId);Fn(h,"Resize handle element has no handle id attribute");const[v,E]=zOt(n,h,u,i);if(v==null||E==null)return()=>{};const T=C=>{if(!C.defaultPrevented)switch(C.key){case"Enter":{C.preventDefault();const k=u.findIndex(_=>_.id===v);if(k>=0){const _=u[k];Fn(_,`No panel data found for index ${k}`);const A=r[k],{collapsedSize:P=0,collapsible:N,minSize:I=0}=_.constraints;if(A!=null&&N){const L=W1({delta:Us(A,P)?I-P:P-A,initialLayout:r,panelConstraints:u.map(j=>j.constraints),pivotIndices:woe(n,h,i),prevLayout:r,trigger:"keyboard"});r!==L&&o(L)}}break}}};return y.addEventListener("keydown",T),()=>{y.removeEventListener("keydown",T)}});return()=>{g.forEach(y=>y())}},[i,e,t,n,r,a,o])}function XX(e,t){if(e.length!==t.length)return!1;for(let n=0;ni.constraints);let r=0,a=100;for(let i=0;i{const i=e[a];Fn(i,`Panel data not found for index ${a}`);const{callbacks:o,constraints:l,id:u}=i,{collapsedSize:d=0,collapsible:f}=l,g=n[u];if(g==null||r!==g){n[u]=r;const{onCollapse:y,onExpand:h,onResize:v}=o;v&&v(r,g),f&&(y||h)&&(h&&(g==null||Ld(g,d))&&!Ld(r,d)&&h(),y&&(g==null||!Ld(g,d))&&Ld(r,d)&&y())}})}function tx(e,t){if(e.length!==t.length)return!1;for(let n=0;n{n!==null&&clearTimeout(n),n=setTimeout(()=>{e(...a)},t)}}function QX(e){try{if(typeof localStorage<"u")e.getItem=t=>localStorage.getItem(t),e.setItem=(t,n)=>{localStorage.setItem(t,n)};else throw new Error("localStorage not supported in this environment")}catch(t){console.error(t),e.getItem=()=>null,e.setItem=()=>{}}}function Toe(e){return`react-resizable-panels:${e}`}function Coe(e){return e.map(t=>{const{constraints:n,id:r,idIsFromProps:a,order:i}=t;return a?r:i?`${i}:${JSON.stringify(n)}`:JSON.stringify(n)}).sort((t,n)=>t.localeCompare(n)).join(",")}function koe(e,t){try{const n=Toe(e),r=t.getItem(n);if(r){const a=JSON.parse(r);if(typeof a=="object"&&a!=null)return a}}catch{}return null}function XOt(e,t,n){var r,a;const i=(r=koe(e,n))!==null&&r!==void 0?r:{},o=Coe(t);return(a=i[o])!==null&&a!==void 0?a:null}function QOt(e,t,n,r,a){var i;const o=Toe(e),l=Coe(t),u=(i=koe(e,a))!==null&&i!==void 0?i:{};u[l]={expandToSizes:Object.fromEntries(n.entries()),layout:r};try{a.setItem(o,JSON.stringify(u))}catch(d){console.error(d)}}function JX({layout:e,panelConstraints:t}){const n=[...e],r=n.reduce((i,o)=>i+o,0);if(n.length!==t.length)throw Error(`Invalid ${t.length} panel layout: ${n.map(i=>`${i}%`).join(", ")}`);if(!Us(r,100)&&n.length>0)for(let i=0;i(QX(z1),z1.getItem(e)),setItem:(e,t)=>{QX(z1),z1.setItem(e,t)}},ZX={};function xoe({autoSaveId:e=null,children:t,className:n="",direction:r,forwardedRef:a,id:i=null,onLayout:o=null,keyboardResizeBy:l=null,storage:u=z1,style:d,tagName:f="div",...g}){const y=_U(i),h=R.useRef(null),[v,E]=R.useState(null),[T,C]=R.useState([]),k=jOt(),_=R.useRef({}),A=R.useRef(new Map),P=R.useRef(0),N=R.useRef({autoSaveId:e,direction:r,dragState:v,id:y,keyboardResizeBy:l,onLayout:o,storage:u}),I=R.useRef({layout:T,panelDataArray:[],panelDataArrayChanged:!1});R.useRef({didLogIdAndOrderWarning:!1,didLogPanelConstraintsWarning:!1,prevPanelIds:[]}),R.useImperativeHandle(a,()=>({getId:()=>N.current.id,getLayout:()=>{const{layout:J}=I.current;return J},setLayout:J=>{const{onLayout:ee}=N.current,{layout:Z,panelDataArray:le}=I.current,ke=JX({layout:J,panelConstraints:le.map(fe=>fe.constraints)});XX(Z,ke)||(C(ke),I.current.layout=ke,ee&&ee(ke),Xb(le,ke,_.current))}}),[]),Zv(()=>{N.current.autoSaveId=e,N.current.direction=r,N.current.dragState=v,N.current.id=y,N.current.onLayout=o,N.current.storage=u}),qOt({committedValuesRef:N,eagerValuesRef:I,groupId:y,layout:T,panelDataArray:I.current.panelDataArray,setLayout:C,panelGroupElement:h.current}),R.useEffect(()=>{const{panelDataArray:J}=I.current;if(e){if(T.length===0||T.length!==J.length)return;let ee=ZX[e];ee==null&&(ee=KOt(QOt,JOt),ZX[e]=ee);const Z=[...J],le=new Map(A.current);ee(e,Z,le,T,u)}},[e,T,u]),R.useEffect(()=>{});const L=R.useCallback(J=>{const{onLayout:ee}=N.current,{layout:Z,panelDataArray:le}=I.current;if(J.constraints.collapsible){const ke=le.map(qe=>qe.constraints),{collapsedSize:fe=0,panelSize:xe,pivotIndices:Ie}=Cv(le,J,Z);if(Fn(xe!=null,`Panel size not found for panel "${J.id}"`),!Ld(xe,fe)){A.current.set(J.id,xe);const tt=e0(le,J)===le.length-1?xe-fe:fe-xe,Ge=W1({delta:tt,initialLayout:Z,panelConstraints:ke,pivotIndices:Ie,prevLayout:Z,trigger:"imperative-api"});tx(Z,Ge)||(C(Ge),I.current.layout=Ge,ee&&ee(Ge),Xb(le,Ge,_.current))}}},[]),j=R.useCallback((J,ee)=>{const{onLayout:Z}=N.current,{layout:le,panelDataArray:ke}=I.current;if(J.constraints.collapsible){const fe=ke.map(rt=>rt.constraints),{collapsedSize:xe=0,panelSize:Ie=0,minSize:qe=0,pivotIndices:tt}=Cv(ke,J,le),Ge=ee??qe;if(Ld(Ie,xe)){const rt=A.current.get(J.id),St=rt!=null&&rt>=Ge?rt:Ge,xt=e0(ke,J)===ke.length-1?Ie-St:St-Ie,Rt=W1({delta:xt,initialLayout:le,panelConstraints:fe,pivotIndices:tt,prevLayout:le,trigger:"imperative-api"});tx(le,Rt)||(C(Rt),I.current.layout=Rt,Z&&Z(Rt),Xb(ke,Rt,_.current))}}},[]),z=R.useCallback(J=>{const{layout:ee,panelDataArray:Z}=I.current,{panelSize:le}=Cv(Z,J,ee);return Fn(le!=null,`Panel size not found for panel "${J.id}"`),le},[]),Q=R.useCallback((J,ee)=>{const{panelDataArray:Z}=I.current,le=e0(Z,J);return YOt({defaultSize:ee,dragState:v,layout:T,panelData:Z,panelIndex:le})},[v,T]),ue=R.useCallback(J=>{const{layout:ee,panelDataArray:Z}=I.current,{collapsedSize:le=0,collapsible:ke,panelSize:fe}=Cv(Z,J,ee);return Fn(fe!=null,`Panel size not found for panel "${J.id}"`),ke===!0&&Ld(fe,le)},[]),re=R.useCallback(J=>{const{layout:ee,panelDataArray:Z}=I.current,{collapsedSize:le=0,collapsible:ke,panelSize:fe}=Cv(Z,J,ee);return Fn(fe!=null,`Panel size not found for panel "${J.id}"`),!ke||oy(fe,le)>0},[]),me=R.useCallback(J=>{const{panelDataArray:ee}=I.current;ee.push(J),ee.sort((Z,le)=>{const ke=Z.order,fe=le.order;return ke==null&&fe==null?0:ke==null?-1:fe==null?1:ke-fe}),I.current.panelDataArrayChanged=!0,k()},[k]);Zv(()=>{if(I.current.panelDataArrayChanged){I.current.panelDataArrayChanged=!1;const{autoSaveId:J,onLayout:ee,storage:Z}=N.current,{layout:le,panelDataArray:ke}=I.current;let fe=null;if(J){const Ie=XOt(J,ke,Z);Ie&&(A.current=new Map(Object.entries(Ie.expandToSizes)),fe=Ie.layout)}fe==null&&(fe=GOt({panelDataArray:ke}));const xe=JX({layout:fe,panelConstraints:ke.map(Ie=>Ie.constraints)});XX(le,xe)||(C(xe),I.current.layout=xe,ee&&ee(xe),Xb(ke,xe,_.current))}}),Zv(()=>{const J=I.current;return()=>{J.layout=[]}},[]);const ge=R.useCallback(J=>{let ee=!1;const Z=h.current;return Z&&window.getComputedStyle(Z,null).getPropertyValue("direction")==="rtl"&&(ee=!0),function(ke){ke.preventDefault();const fe=h.current;if(!fe)return()=>null;const{direction:xe,dragState:Ie,id:qe,keyboardResizeBy:tt,onLayout:Ge}=N.current,{layout:rt,panelDataArray:St}=I.current,{initialLayout:kt}=Ie??{},xt=woe(qe,J,fe);let Rt=VOt(ke,J,xe,Ie,tt,fe);const cn=xe==="horizontal";cn&&ee&&(Rt=-Rt);const qt=St.map(dt=>dt.constraints),Wt=W1({delta:Rt,initialLayout:kt??rt,panelConstraints:qt,pivotIndices:xt,prevLayout:rt,trigger:coe(ke)?"keyboard":"mouse-or-touch"}),Oe=!tx(rt,Wt);(doe(ke)||foe(ke))&&P.current!=Rt&&(P.current=Rt,!Oe&&Rt!==0?cn?EL(J,Rt<0?hoe:moe):EL(J,Rt<0?goe:voe):EL(J,0)),Oe&&(C(Wt),I.current.layout=Wt,Ge&&Ge(Wt),Xb(St,Wt,_.current))}},[]),W=R.useCallback((J,ee)=>{const{onLayout:Z}=N.current,{layout:le,panelDataArray:ke}=I.current,fe=ke.map(rt=>rt.constraints),{panelSize:xe,pivotIndices:Ie}=Cv(ke,J,le);Fn(xe!=null,`Panel size not found for panel "${J.id}"`);const tt=e0(ke,J)===ke.length-1?xe-ee:ee-xe,Ge=W1({delta:tt,initialLayout:le,panelConstraints:fe,pivotIndices:Ie,prevLayout:le,trigger:"imperative-api"});tx(le,Ge)||(C(Ge),I.current.layout=Ge,Z&&Z(Ge),Xb(ke,Ge,_.current))},[]),G=R.useCallback((J,ee)=>{const{layout:Z,panelDataArray:le}=I.current,{collapsedSize:ke=0,collapsible:fe}=ee,{collapsedSize:xe=0,collapsible:Ie,maxSize:qe=100,minSize:tt=0}=J.constraints,{panelSize:Ge}=Cv(le,J,Z);Ge!=null&&(fe&&Ie&&Ld(Ge,ke)?Ld(ke,xe)||W(J,xe):Geqe&&W(J,qe))},[W]),q=R.useCallback((J,ee)=>{const{direction:Z}=N.current,{layout:le}=I.current;if(!h.current)return;const ke=HO(J,h.current);Fn(ke,`Drag handle element not found for id "${J}"`);const fe=Eoe(Z,ee);E({dragHandleId:J,dragHandleRect:ke.getBoundingClientRect(),initialCursorPosition:fe,initialLayout:le})},[]),ce=R.useCallback(()=>{E(null)},[]),H=R.useCallback(J=>{const{panelDataArray:ee}=I.current,Z=e0(ee,J);Z>=0&&(ee.splice(Z,1),delete _.current[J.id],I.current.panelDataArrayChanged=!0,k())},[k]),K=R.useMemo(()=>({collapsePanel:L,direction:r,dragState:v,expandPanel:j,getPanelSize:z,getPanelStyle:Q,groupId:y,isPanelCollapsed:ue,isPanelExpanded:re,reevaluatePanelConstraints:G,registerPanel:me,registerResizeHandle:ge,resizePanel:W,startDragging:q,stopDragging:ce,unregisterPanel:H,panelGroupElement:h.current}),[L,v,r,j,z,Q,y,ue,re,G,me,ge,W,q,ce,H]),ae={display:"flex",flexDirection:r==="horizontal"?"row":"column",height:"100%",overflow:"hidden",width:"100%"};return R.createElement(WO.Provider,{value:K},R.createElement(f,{...g,children:t,className:n,id:i,ref:h,style:{...ae,...d},[Ca.group]:"",[Ca.groupDirection]:r,[Ca.groupId]:y}))}const _oe=R.forwardRef((e,t)=>R.createElement(xoe,{...e,forwardedRef:t}));xoe.displayName="PanelGroup";_oe.displayName="forwardRef(PanelGroup)";function e0(e,t){return e.findIndex(n=>n===t||n.id===t.id)}function Cv(e,t,n){const r=e0(e,t),i=r===e.length-1?[r-1,r]:[r,r+1],o=n[r];return{...t.constraints,panelSize:o,pivotIndices:i}}function ZOt({disabled:e,handleId:t,resizeHandler:n,panelGroupElement:r}){R.useEffect(()=>{if(e||n==null||r==null)return;const a=HO(t,r);if(a==null)return;const i=o=>{if(!o.defaultPrevented)switch(o.key){case"ArrowDown":case"ArrowLeft":case"ArrowRight":case"ArrowUp":case"End":case"Home":{o.preventDefault(),n(o);break}case"F6":{o.preventDefault();const l=a.getAttribute(Ca.groupId);Fn(l,`No group element found for id "${l}"`);const u=tT(l,r),d=boe(l,t,r);Fn(d!==null,`No resize element found for id "${t}"`);const f=o.shiftKey?d>0?d-1:u.length-1:d+1{a.removeEventListener("keydown",i)}},[r,e,t,n])}function Ooe({children:e=null,className:t="",disabled:n=!1,hitAreaMargins:r,id:a,onBlur:i,onClick:o,onDragging:l,onFocus:u,onPointerDown:d,onPointerUp:f,style:g={},tabIndex:y=0,tagName:h="div",...v}){var E,T;const C=R.useRef(null),k=R.useRef({onClick:o,onDragging:l,onPointerDown:d,onPointerUp:f});R.useEffect(()=>{k.current.onClick=o,k.current.onDragging=l,k.current.onPointerDown=d,k.current.onPointerUp=f});const _=R.useContext(WO);if(_===null)throw Error("PanelResizeHandle components must be rendered within a PanelGroup container");const{direction:A,groupId:P,registerResizeHandle:N,startDragging:I,stopDragging:L,panelGroupElement:j}=_,z=_U(a),[Q,ue]=R.useState("inactive"),[re,me]=R.useState(!1),[ge,W]=R.useState(null),G=R.useRef({state:Q});Zv(()=>{G.current.state=Q}),R.useEffect(()=>{if(n)W(null);else{const K=N(z);W(()=>K)}},[n,z,N]);const q=(E=r==null?void 0:r.coarse)!==null&&E!==void 0?E:15,ce=(T=r==null?void 0:r.fine)!==null&&T!==void 0?T:5;R.useEffect(()=>{if(n||ge==null)return;const K=C.current;Fn(K,"Element ref not attached");let ae=!1;return LOt(z,K,A,{coarse:q,fine:ce},(ee,Z,le)=>{if(!Z){ue("inactive");return}switch(ee){case"down":{ue("drag"),ae=!1,Fn(le,'Expected event to be defined for "down" action'),I(z,le);const{onDragging:ke,onPointerDown:fe}=k.current;ke==null||ke(!0),fe==null||fe();break}case"move":{const{state:ke}=G.current;ae=!0,ke!=="drag"&&ue("hover"),Fn(le,'Expected event to be defined for "move" action'),ge(le);break}case"up":{ue("hover"),L();const{onClick:ke,onDragging:fe,onPointerUp:xe}=k.current;fe==null||fe(!1),xe==null||xe(),ae||ke==null||ke();break}}})},[q,A,n,ce,N,z,ge,I,L]),ZOt({disabled:n,handleId:z,resizeHandler:ge,panelGroupElement:j});const H={touchAction:"none",userSelect:"none"};return R.createElement(h,{...v,children:e,className:t,id:a,onBlur:()=>{me(!1),i==null||i()},onFocus:()=>{me(!0),u==null||u()},ref:C,role:"separator",style:{...H,...g},tabIndex:y,[Ca.groupDirection]:A,[Ca.groupId]:P,[Ca.resizeHandle]:"",[Ca.resizeHandleActive]:Q==="drag"?"pointer":re?"keyboard":void 0,[Ca.resizeHandleEnabled]:!n,[Ca.resizeHandleId]:z,[Ca.resizeHandleState]:Q})}Ooe.displayName="PanelResizeHandle";const eRt=[{to:"/dashboard",label:"Home",icon:qs("/common/home.svg")},{to:"/selfservice",label:"Profile",icon:qs("/common/user.svg")},{to:"/settings",label:"Settings",icon:qs(Ru.settings)}],tRt=()=>w.jsx("nav",{className:"bottom-nav-tabbar",children:eRt.map(e=>w.jsx(g0,{state:{animated:!0},href:e.to,className:({isActive:t})=>t?"nav-link active":"nav-link",children:w.jsxs("span",{className:"nav-link",children:[w.jsx("img",{className:"nav-img",src:e.icon}),e.label]})},e.to))}),nRt=({routerId:e,ApplicationRoutes:t,queryClient:n})=>w.jsx(mQ,{initialConfig:{remote:kr.REMOTE_SERVICE},children:w.jsx(gme,{children:w.jsxs(Xhe,{children:[w.jsx(Cye,{children:w.jsxs(Zme,{children:[w.jsx(t,{routerId:e}),w.jsx(Tye,{})]})}),w.jsx(HL,{})]})})});function Roe({className:e="",id:t,onDragComplete:n,minimal:r}){return w.jsx(Ooe,{id:t,onDragging:a=>{a===!1&&(n==null||n())},className:sa("panel-resize-handle",r?"minimal":"")})}const rRt=()=>{if(vh().isMobileView)return 0;const e=localStorage.getItem("sidebarState"),t=e!==null?parseFloat(e):null;return t<=0?0:t*1.3},aRt=()=>{const{setSidebarRef:e,persistSidebarSize:t}=dy(),n=R.useRef(null),r=a=>{n.current=a,e(n.current)};return w.jsxs(OU,{style:{position:"relative",overflowY:"hidden",height:"100vh"},minSize:0,defaultSize:rRt(),ref:r,children:[w.jsx(mQ,{initialConfig:{remote:kr.REMOTE_SERVICE},children:w.jsx(KJ,{miniSize:!1})}),!vh().isMobileView&&w.jsx(Roe,{onDragComplete:()=>{var a;t((a=n.current)==null?void 0:a.getSize())}})]})},iRt=({routerId:e,children:t,showHandle:n})=>w.jsxs(w.Fragment,{children:[w.jsx(aRt,{}),w.jsx(Poe,{showHandle:n,routerId:e,children:t})]}),Poe=({showHandle:e,routerId:t,children:n})=>{var o;const{routers:r,setFocusedRouter:a}=dy(),{session:i}=R.useContext(it);return w.jsxs(OU,{order:2,defaultSize:i?80/r.length:100,minSize:10,onClick:()=>{a(t)},style:{position:"relative",display:"flex",width:"100%"},children:[(o=r.find(l=>l.id===t))!=null&&o.focused&&r.length?w.jsx("div",{className:"focus-indicator"}):null,n,e?w.jsx(Roe,{minimal:!0}):null]})},oRt=hQ;function sRt({ApplicationRoutes:e,queryClient:t}){const{routers:n}=dy(),r=n.map(a=>({...a,initialEntries:a!=null&&a.href?[{pathname:a==null?void 0:a.href}]:void 0,Wrapper:a.id==="url-router"?iRt:Poe,Router:a.id==="url-router"?oRt:ple,showHandle:n.filter(i=>i.id!=="url-router").length>0}));return w.jsx(_oe,{direction:"horizontal",className:sa("application-panels",vh().isMobileView?"has-bottom-tab":void 0),children:r.map((a,i)=>w.jsxs(a.Router,{future:{v7_startTransition:!0},basename:void 0,initialEntries:a.initialEntries,children:[w.jsx(a.Wrapper,{showHandle:a.showHandle,routerId:a.id,children:w.jsx(nRt,{routerId:a.id,ApplicationRoutes:e,queryClient:t})}),vh().isMobileView?w.jsx(tRt,{}):void 0]},a.id))})}function lRt({children:e,queryClient:t,prefix:n,mockServer:r,config:a,locale:i}){return w.jsx(jhe,{socket:!0,preferredAcceptLanguage:i||a.interfaceLanguage,identifier:"fireback",prefix:n,queryClient:t,remote:kr.REMOTE_SERVICE,defaultExecFn:void 0,children:w.jsx(uRt,{children:e,mockServer:r})})}const uRt=({children:e,mockServer:t})=>{var i;const{options:n,session:r}=R.useContext(it),a=R.useRef(new JF((i=kr.REMOTE_SERVICE)==null?void 0:i.replace(/\/$/,"")));return a.current.defaultHeaders={authorization:r==null?void 0:r.token,"workspace-id":n==null?void 0:n.headers["workspace-id"]},w.jsx(Bge,{value:a.current,children:e})};function cRt(){const{session:e,checked:t}=R.useContext(it),[n,r]=R.useState(!1),a=t&&!e,[i,o]=R.useState(!1);return R.useEffect(()=>{t&&e&&(o(!0),setTimeout(()=>{r(!0)},500))},[t,e]),{session:e,checked:t,needsAuthentication:a,loadComplete:n,setLoadComplete:r,isFading:i}}const eQ=hQ,dRt=({children:e})=>{var l;const{session:t,checked:n}=cRt(),r=qLe(),{selectedUrw:a,selectUrw:i}=R.useContext(it),o=z_({cacheTime:50,enabled:!1});return R.useEffect(()=>{var u;((u=t==null?void 0:t.userWorkspaces)==null?void 0:u.length)===1&&!a&&o.refetch().then(d=>{var g,y,h,v;const f=((y=(g=d==null?void 0:d.data)==null?void 0:g.data)==null?void 0:y.items)||[];f.length===1&&i({roleId:(v=(h=f[0].roles)==null?void 0:h[0])==null?void 0:v.uniqueId,workspaceId:f[0].uniqueId})})},[a,t]),!t&&n?w.jsx(eQ,{future:{v7_startTransition:!0},children:w.jsxs(pQ,{children:[w.jsx(mt,{path:":locale",children:r}),w.jsx(mt,{path:"*",element:w.jsx(OF,{to:"/en/selfservice/welcome",replace:!0})})]})}):!a&&((l=t==null?void 0:t.userWorkspaces)==null?void 0:l.length)>1?w.jsx(eQ,{future:{v7_startTransition:!0},children:w.jsx(zLe,{})}):w.jsx(w.Fragment,{children:e})};function fRt({ApplicationRoutes:e,WithSdk:t,mockServer:n,apiPrefix:r}){const[a]=ze.useState(()=>new Dme),{config:i}=R.useContext(Th);R.useEffect(()=>{"serviceWorker"in navigator&&"PushManager"in window&&navigator.serviceWorker.register("sw.js").then(l=>{})},[]);const{locale:o}=kOt();return w.jsx(Bme,{client:a,children:w.jsx(fme,{children:w.jsx(gOe,{children:w.jsx(wOt,{FallbackComponent:EOt,onReset:l=>{},children:w.jsx(lRt,{mockServer:n,config:i,prefix:r,queryClient:a,locale:o,children:w.jsx(t,{mockServer:n,prefix:r,config:i,queryClient:a,children:w.jsx(dRt,{children:w.jsx(sRt,{queryClient:a,ApplicationRoutes:e})})})})})})})})}function pRt(){const e=R.useRef(yOt);return w.jsx(fRt,{ApplicationRoutes:B_t,mockServer:e,WithSdk:W_t})}const hRt=yse.createRoot(document.getElementById("root"));hRt.render(w.jsx(ze.StrictMode,{children:w.jsx(pRt,{})}))});export default mRt(); diff --git a/modules/fireback/codegen/fireback-manage/index.html b/modules/fireback/codegen/fireback-manage/index.html index ac476caa7..33feb9d57 100644 --- a/modules/fireback/codegen/fireback-manage/index.html +++ b/modules/fireback/codegen/fireback-manage/index.html @@ -5,7 +5,7 @@ Fireback - + diff --git a/modules/fireback/codegen/selfservice/assets/index-hGksTATn.js b/modules/fireback/codegen/selfservice/assets/index-Dv6ZoDfw.js similarity index 53% rename from modules/fireback/codegen/selfservice/assets/index-hGksTATn.js rename to modules/fireback/codegen/selfservice/assets/index-Dv6ZoDfw.js index 896915ff2..602c12507 100644 --- a/modules/fireback/codegen/selfservice/assets/index-hGksTATn.js +++ b/modules/fireback/codegen/selfservice/assets/index-Dv6ZoDfw.js @@ -1,4 +1,4 @@ -var WD=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports);var Jhe=WD((to,no)=>{function KD(t,e){for(var n=0;nr[i]})}}}return Object.freeze(Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}))}(function(){const e=document.createElement("link").relList;if(e&&e.supports&&e.supports("modulepreload"))return;for(const i of document.querySelectorAll('link[rel="modulepreload"]'))r(i);new MutationObserver(i=>{for(const o of i)if(o.type==="childList")for(const u of o.addedNodes)u.tagName==="LINK"&&u.rel==="modulepreload"&&r(u)}).observe(document,{childList:!0,subtree:!0});function n(i){const o={};return i.integrity&&(o.integrity=i.integrity),i.referrerPolicy&&(o.referrerPolicy=i.referrerPolicy),i.crossOrigin==="use-credentials"?o.credentials="include":i.crossOrigin==="anonymous"?o.credentials="omit":o.credentials="same-origin",o}function r(i){if(i.ep)return;i.ep=!0;const o=n(i);fetch(i.href,o)}})();var Ef=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Mf(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}function YD(t){if(Object.prototype.hasOwnProperty.call(t,"__esModule"))return t;var e=t.default;if(typeof e=="function"){var n=function r(){return this instanceof r?Reflect.construct(e,arguments,this.constructor):e.apply(this,arguments)};n.prototype=e.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(t).forEach(function(r){var i=Object.getOwnPropertyDescriptor(t,r);Object.defineProperty(n,r,i.get?i:{enumerable:!0,get:function(){return t[r]}})}),n}var hC={exports:{}},c0={};/** +var wF=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports);var Ape=wF((so,uo)=>{function SF(t,e){for(var n=0;nr[i]})}}}return Object.freeze(Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}))}(function(){const e=document.createElement("link").relList;if(e&&e.supports&&e.supports("modulepreload"))return;for(const i of document.querySelectorAll('link[rel="modulepreload"]'))r(i);new MutationObserver(i=>{for(const o of i)if(o.type==="childList")for(const u of o.addedNodes)u.tagName==="LINK"&&u.rel==="modulepreload"&&r(u)}).observe(document,{childList:!0,subtree:!0});function n(i){const o={};return i.integrity&&(o.integrity=i.integrity),i.referrerPolicy&&(o.referrerPolicy=i.referrerPolicy),i.crossOrigin==="use-credentials"?o.credentials="include":i.crossOrigin==="anonymous"?o.credentials="omit":o.credentials="same-origin",o}function r(i){if(i.ep)return;i.ep=!0;const o=n(i);fetch(i.href,o)}})();var Nf=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Hf(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}function CF(t){if(Object.prototype.hasOwnProperty.call(t,"__esModule"))return t;var e=t.default;if(typeof e=="function"){var n=function r(){return this instanceof r?Reflect.construct(e,arguments,this.constructor):e.apply(this,arguments)};n.prototype=e.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(t).forEach(function(r){var i=Object.getOwnPropertyDescriptor(t,r);Object.defineProperty(n,r,i.get?i:{enumerable:!0,get:function(){return t[r]}})}),n}var UC={exports:{}},P0={};/** * @license React * react-jsx-runtime.production.js * @@ -6,7 +6,7 @@ var WD=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports);var Jhe=WD((to,no * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. - */var u4;function JD(){if(u4)return c0;u4=1;var t=Symbol.for("react.transitional.element"),e=Symbol.for("react.fragment");function n(r,i,o){var u=null;if(o!==void 0&&(u=""+o),i.key!==void 0&&(u=""+i.key),"key"in i){o={};for(var l in i)l!=="key"&&(o[l]=i[l])}else o=i;return i=o.ref,{$$typeof:t,type:r,key:u,ref:i!==void 0?i:null,props:o}}return c0.Fragment=e,c0.jsx=n,c0.jsxs=n,c0}var l4;function QD(){return l4||(l4=1,hC.exports=JD()),hC.exports}var N=QD(),pC={exports:{}},Lt={};/** + */var D4;function $F(){if(D4)return P0;D4=1;var t=Symbol.for("react.transitional.element"),e=Symbol.for("react.fragment");function n(r,i,o){var u=null;if(o!==void 0&&(u=""+o),i.key!==void 0&&(u=""+i.key),"key"in i){o={};for(var l in i)l!=="key"&&(o[l]=i[l])}else o=i;return i=o.ref,{$$typeof:t,type:r,key:u,ref:i!==void 0?i:null,props:o}}return P0.Fragment=e,P0.jsx=n,P0.jsxs=n,P0}var F4;function EF(){return F4||(F4=1,UC.exports=$F()),UC.exports}var N=EF(),BC={exports:{}},Lt={};/** * @license React * react.production.js * @@ -14,7 +14,7 @@ var WD=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports);var Jhe=WD((to,no * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. - */var c4;function XD(){if(c4)return Lt;c4=1;var t=Symbol.for("react.transitional.element"),e=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),i=Symbol.for("react.profiler"),o=Symbol.for("react.consumer"),u=Symbol.for("react.context"),l=Symbol.for("react.forward_ref"),d=Symbol.for("react.suspense"),h=Symbol.for("react.memo"),g=Symbol.for("react.lazy"),y=Symbol.iterator;function w(G){return G===null||typeof G!="object"?null:(G=y&&G[y]||G["@@iterator"],typeof G=="function"?G:null)}var v={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},C=Object.assign,E={};function $(G,Q,he){this.props=G,this.context=Q,this.refs=E,this.updater=he||v}$.prototype.isReactComponent={},$.prototype.setState=function(G,Q){if(typeof G!="object"&&typeof G!="function"&&G!=null)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,G,Q,"setState")},$.prototype.forceUpdate=function(G){this.updater.enqueueForceUpdate(this,G,"forceUpdate")};function O(){}O.prototype=$.prototype;function _(G,Q,he){this.props=G,this.context=Q,this.refs=E,this.updater=he||v}var R=_.prototype=new O;R.constructor=_,C(R,$.prototype),R.isPureReactComponent=!0;var k=Array.isArray,P={H:null,A:null,T:null,S:null},L=Object.prototype.hasOwnProperty;function F(G,Q,he,$e,Ce,Be){return he=Be.ref,{$$typeof:t,type:G,key:Q,ref:he!==void 0?he:null,props:Be}}function q(G,Q){return F(G.type,Q,void 0,void 0,void 0,G.props)}function Y(G){return typeof G=="object"&&G!==null&&G.$$typeof===t}function X(G){var Q={"=":"=0",":":"=2"};return"$"+G.replace(/[=:]/g,function(he){return Q[he]})}var ue=/\/+/g;function me(G,Q){return typeof G=="object"&&G!==null&&G.key!=null?X(""+G.key):Q.toString(36)}function te(){}function be(G){switch(G.status){case"fulfilled":return G.value;case"rejected":throw G.reason;default:switch(typeof G.status=="string"?G.then(te,te):(G.status="pending",G.then(function(Q){G.status==="pending"&&(G.status="fulfilled",G.value=Q)},function(Q){G.status==="pending"&&(G.status="rejected",G.reason=Q)})),G.status){case"fulfilled":return G.value;case"rejected":throw G.reason}}throw G}function we(G,Q,he,$e,Ce){var Be=typeof G;(Be==="undefined"||Be==="boolean")&&(G=null);var Ie=!1;if(G===null)Ie=!0;else switch(Be){case"bigint":case"string":case"number":Ie=!0;break;case"object":switch(G.$$typeof){case t:case e:Ie=!0;break;case g:return Ie=G._init,we(Ie(G._payload),Q,he,$e,Ce)}}if(Ie)return Ce=Ce(G),Ie=$e===""?"."+me(G,0):$e,k(Ce)?(he="",Ie!=null&&(he=Ie.replace(ue,"$&/")+"/"),we(Ce,Q,he,"",function(Ke){return Ke})):Ce!=null&&(Y(Ce)&&(Ce=q(Ce,he+(Ce.key==null||G&&G.key===Ce.key?"":(""+Ce.key).replace(ue,"$&/")+"/")+Ie)),Q.push(Ce)),1;Ie=0;var tt=$e===""?".":$e+":";if(k(G))for(var ke=0;ke()=>(e||t((e={exports:{}}).exports,e),e.exports);var Jhe=WD((to,no * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. - */var d4;function ZD(){return d4||(d4=1,(function(t){function e(B,V){var H=B.length;B.push(V);e:for(;0>>1,G=B[ie];if(0>>1;iei($e,H))Cei(Be,$e)?(B[ie]=Be,B[Ce]=H,ie=Ce):(B[ie]=$e,B[he]=H,ie=he);else if(Cei(Be,H))B[ie]=Be,B[Ce]=H,ie=Ce;else break e}}return V}function i(B,V){var H=B.sortIndex-V.sortIndex;return H!==0?H:B.id-V.id}if(t.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var o=performance;t.unstable_now=function(){return o.now()}}else{var u=Date,l=u.now();t.unstable_now=function(){return u.now()-l}}var d=[],h=[],g=1,y=null,w=3,v=!1,C=!1,E=!1,$=typeof setTimeout=="function"?setTimeout:null,O=typeof clearTimeout=="function"?clearTimeout:null,_=typeof setImmediate<"u"?setImmediate:null;function R(B){for(var V=n(h);V!==null;){if(V.callback===null)r(h);else if(V.startTime<=B)r(h),V.sortIndex=V.expirationTime,e(d,V);else break;V=n(h)}}function k(B){if(E=!1,R(B),!C)if(n(d)!==null)C=!0,be();else{var V=n(h);V!==null&&we(k,V.startTime-B)}}var P=!1,L=-1,F=5,q=-1;function Y(){return!(t.unstable_now()-qB&&Y());){var ie=y.callback;if(typeof ie=="function"){y.callback=null,w=y.priorityLevel;var G=ie(y.expirationTime<=B);if(B=t.unstable_now(),typeof G=="function"){y.callback=G,R(B),V=!0;break t}y===n(d)&&r(d),R(B)}else r(d);y=n(d)}if(y!==null)V=!0;else{var Q=n(h);Q!==null&&we(k,Q.startTime-B),V=!1}}break e}finally{y=null,w=H,v=!1}V=void 0}}finally{V?ue():P=!1}}}var ue;if(typeof _=="function")ue=function(){_(X)};else if(typeof MessageChannel<"u"){var me=new MessageChannel,te=me.port2;me.port1.onmessage=X,ue=function(){te.postMessage(null)}}else ue=function(){$(X,0)};function be(){P||(P=!0,ue())}function we(B,V){L=$(function(){B(t.unstable_now())},V)}t.unstable_IdlePriority=5,t.unstable_ImmediatePriority=1,t.unstable_LowPriority=4,t.unstable_NormalPriority=3,t.unstable_Profiling=null,t.unstable_UserBlockingPriority=2,t.unstable_cancelCallback=function(B){B.callback=null},t.unstable_continueExecution=function(){C||v||(C=!0,be())},t.unstable_forceFrameRate=function(B){0>B||125ie?(B.sortIndex=H,e(h,B),n(d)===null&&B===n(h)&&(E?(O(L),L=-1):E=!0,we(k,H-ie))):(B.sortIndex=G,e(d,B),C||v||(C=!0,be())),B},t.unstable_shouldYield=Y,t.unstable_wrapCallback=function(B){var V=w;return function(){var H=w;w=V;try{return B.apply(this,arguments)}finally{w=H}}}})(yC)),yC}var h4;function eF(){return h4||(h4=1,gC.exports=ZD()),gC.exports}var vC={exports:{}},Ii={};/** + */var B4;function OF(){return B4||(B4=1,(function(t){function e(j,V){var H=j.length;j.push(V);e:for(;0>>1,G=j[ie];if(0>>1;iei($e,H))Cei(je,$e)?(j[ie]=je,j[Ce]=H,ie=Ce):(j[ie]=$e,j[fe]=H,ie=fe);else if(Cei(je,H))j[ie]=je,j[Ce]=H,ie=Ce;else break e}}return V}function i(j,V){var H=j.sortIndex-V.sortIndex;return H!==0?H:j.id-V.id}if(t.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var o=performance;t.unstable_now=function(){return o.now()}}else{var u=Date,l=u.now();t.unstable_now=function(){return u.now()-l}}var d=[],h=[],g=1,y=null,w=3,b=!1,C=!1,E=!1,$=typeof setTimeout=="function"?setTimeout:null,O=typeof clearTimeout=="function"?clearTimeout:null,_=typeof setImmediate<"u"?setImmediate:null;function P(j){for(var V=n(h);V!==null;){if(V.callback===null)r(h);else if(V.startTime<=j)r(h),V.sortIndex=V.expirationTime,e(d,V);else break;V=n(h)}}function k(j){if(E=!1,P(j),!C)if(n(d)!==null)C=!0,be();else{var V=n(h);V!==null&&Se(k,V.startTime-j)}}var R=!1,L=-1,F=5,q=-1;function Y(){return!(t.unstable_now()-qj&&Y());){var ie=y.callback;if(typeof ie=="function"){y.callback=null,w=y.priorityLevel;var G=ie(y.expirationTime<=j);if(j=t.unstable_now(),typeof G=="function"){y.callback=G,P(j),V=!0;break t}y===n(d)&&r(d),P(j)}else r(d);y=n(d)}if(y!==null)V=!0;else{var X=n(h);X!==null&&Se(k,X.startTime-j),V=!1}}break e}finally{y=null,w=H,b=!1}V=void 0}}finally{V?ue():R=!1}}}var ue;if(typeof _=="function")ue=function(){_(Q)};else if(typeof MessageChannel<"u"){var me=new MessageChannel,te=me.port2;me.port1.onmessage=Q,ue=function(){te.postMessage(null)}}else ue=function(){$(Q,0)};function be(){R||(R=!0,ue())}function Se(j,V){L=$(function(){j(t.unstable_now())},V)}t.unstable_IdlePriority=5,t.unstable_ImmediatePriority=1,t.unstable_LowPriority=4,t.unstable_NormalPriority=3,t.unstable_Profiling=null,t.unstable_UserBlockingPriority=2,t.unstable_cancelCallback=function(j){j.callback=null},t.unstable_continueExecution=function(){C||b||(C=!0,be())},t.unstable_forceFrameRate=function(j){0>j||125ie?(j.sortIndex=H,e(h,j),n(d)===null&&j===n(h)&&(E?(O(L),L=-1):E=!0,Se(k,H-ie))):(j.sortIndex=G,e(d,j),C||b||(C=!0,be())),j},t.unstable_shouldYield=Y,t.unstable_wrapCallback=function(j){var V=w;return function(){var H=w;w=V;try{return j.apply(this,arguments)}finally{w=H}}}})(HC)),HC}var j4;function TF(){return j4||(j4=1,qC.exports=OF()),qC.exports}var zC={exports:{}},Mi={};/** * @license React * react-dom.production.js * @@ -30,7 +30,7 @@ var WD=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports);var Jhe=WD((to,no * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. - */var p4;function tF(){if(p4)return Ii;p4=1;var t=gO();function e(d){var h="https://react.dev/errors/"+d;if(1"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(t)}catch(e){console.error(e)}}return t(),vC.exports=tF(),vC.exports}/** + */var q4;function _F(){if(q4)return Mi;q4=1;var t=zO();function e(d){var h="https://react.dev/errors/"+d;if(1"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(t)}catch(e){console.error(e)}}return t(),zC.exports=_F(),zC.exports}/** * @license React * react-dom-client.production.js * @@ -38,53 +38,53 @@ var WD=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports);var Jhe=WD((to,no * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. - */var g4;function nF(){if(g4)return f0;g4=1;var t=eF(),e=gO(),n=b9();function r(a){var s="https://react.dev/errors/"+a;if(1)":-1b||Z[m]!==se[b]){var _e=` -`+Z[m].replace(" at new "," at ");return a.displayName&&_e.includes("")&&(_e=_e.replace("",a.displayName)),_e}while(1<=m&&0<=b);break}}}finally{be=!1,Error.prepareStackTrace=c}return(c=a?a.displayName||a.name:"")?te(c):""}function B(a){switch(a.tag){case 26:case 27:case 5:return te(a.type);case 16:return te("Lazy");case 13:return te("Suspense");case 19:return te("SuspenseList");case 0:case 15:return a=we(a.type,!1),a;case 11:return a=we(a.type.render,!1),a;case 1:return a=we(a.type,!0),a;default:return""}}function V(a){try{var s="";do s+=B(a),a=a.return;while(a);return s}catch(c){return` +`);for(v=m=0;mv||Z[m]!==se[v]){var _e=` +`+Z[m].replace(" at new "," at ");return a.displayName&&_e.includes("")&&(_e=_e.replace("",a.displayName)),_e}while(1<=m&&0<=v);break}}}finally{be=!1,Error.prepareStackTrace=c}return(c=a?a.displayName||a.name:"")?te(c):""}function j(a){switch(a.tag){case 26:case 27:case 5:return te(a.type);case 16:return te("Lazy");case 13:return te("Suspense");case 19:return te("SuspenseList");case 0:case 15:return a=Se(a.type,!1),a;case 11:return a=Se(a.type.render,!1),a;case 1:return a=Se(a.type,!0),a;default:return""}}function V(a){try{var s="";do s+=j(a),a=a.return;while(a);return s}catch(c){return` Error generating stack: `+c.message+` -`+c.stack}}function H(a){var s=a,c=a;if(a.alternate)for(;s.return;)s=s.return;else{a=s;do s=a,(s.flags&4098)!==0&&(c=s.return),a=s.return;while(a)}return s.tag===3?c:null}function ie(a){if(a.tag===13){var s=a.memoizedState;if(s===null&&(a=a.alternate,a!==null&&(s=a.memoizedState)),s!==null)return s.dehydrated}return null}function G(a){if(H(a)!==a)throw Error(r(188))}function Q(a){var s=a.alternate;if(!s){if(s=H(a),s===null)throw Error(r(188));return s!==a?null:a}for(var c=a,m=s;;){var b=c.return;if(b===null)break;var x=b.alternate;if(x===null){if(m=b.return,m!==null){c=m;continue}break}if(b.child===x.child){for(x=b.child;x;){if(x===c)return G(b),a;if(x===m)return G(b),s;x=x.sibling}throw Error(r(188))}if(c.return!==m.return)c=b,m=x;else{for(var D=!1,W=b.child;W;){if(W===c){D=!0,c=b,m=x;break}if(W===m){D=!0,m=b,c=x;break}W=W.sibling}if(!D){for(W=x.child;W;){if(W===c){D=!0,c=x,m=b;break}if(W===m){D=!0,m=x,c=b;break}W=W.sibling}if(!D)throw Error(r(189))}}if(c.alternate!==m)throw Error(r(190))}if(c.tag!==3)throw Error(r(188));return c.stateNode.current===c?a:s}function he(a){var s=a.tag;if(s===5||s===26||s===27||s===6)return a;for(a=a.child;a!==null;){if(s=he(a),s!==null)return s;a=a.sibling}return null}var $e=Array.isArray,Ce=n.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,Be={pending:!1,data:null,method:null,action:null},Ie=[],tt=-1;function ke(a){return{current:a}}function Ke(a){0>tt||(a.current=Ie[tt],Ie[tt]=null,tt--)}function He(a,s){tt++,Ie[tt]=a.current,a.current=s}var ut=ke(null),pt=ke(null),bt=ke(null),gt=ke(null);function Ut(a,s){switch(He(bt,s),He(pt,a),He(ut,null),a=s.nodeType,a){case 9:case 11:s=(s=s.documentElement)&&(s=s.namespaceURI)?O2(s):0;break;default:if(a=a===8?s.parentNode:s,s=a.tagName,a=a.namespaceURI)a=O2(a),s=T2(a,s);else switch(s){case"svg":s=1;break;case"math":s=2;break;default:s=0}}Ke(ut),He(ut,s)}function Gt(){Ke(ut),Ke(pt),Ke(bt)}function Tt(a){a.memoizedState!==null&&He(gt,a);var s=ut.current,c=T2(s,a.type);s!==c&&(He(pt,a),He(ut,c))}function en(a){pt.current===a&&(Ke(ut),Ke(pt)),gt.current===a&&(Ke(gt),Kd._currentValue=Be)}var xn=Object.prototype.hasOwnProperty,Dt=t.unstable_scheduleCallback,Pt=t.unstable_cancelCallback,pe=t.unstable_shouldYield,ze=t.unstable_requestPaint,Ge=t.unstable_now,Je=t.unstable_getCurrentPriorityLevel,ht=t.unstable_ImmediatePriority,j=t.unstable_UserBlockingPriority,A=t.unstable_NormalPriority,M=t.unstable_LowPriority,J=t.unstable_IdlePriority,re=t.log,ge=t.unstable_setDisableYieldValue,Ee=null,rt=null;function Wt(a){if(rt&&typeof rt.onCommitFiberRoot=="function")try{rt.onCommitFiberRoot(Ee,a,void 0,(a.current.flags&128)===128)}catch{}}function ae(a){if(typeof re=="function"&&ge(a),rt&&typeof rt.setStrictMode=="function")try{rt.setStrictMode(Ee,a)}catch{}}var ce=Math.clz32?Math.clz32:ln,nt=Math.log,Ht=Math.LN2;function ln(a){return a>>>=0,a===0?32:31-(nt(a)/Ht|0)|0}var wt=128,Ur=4194304;function tn(a){var s=a&42;if(s!==0)return s;switch(a&-a){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return a&4194176;case 4194304:case 8388608:case 16777216:case 33554432:return a&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return a}}function tr(a,s){var c=a.pendingLanes;if(c===0)return 0;var m=0,b=a.suspendedLanes,x=a.pingedLanes,D=a.warmLanes;a=a.finishedLanes!==0;var W=c&134217727;return W!==0?(c=W&~b,c!==0?m=tn(c):(x&=W,x!==0?m=tn(x):a||(D=W&~D,D!==0&&(m=tn(D))))):(W=c&~b,W!==0?m=tn(W):x!==0?m=tn(x):a||(D=c&~D,D!==0&&(m=tn(D)))),m===0?0:s!==0&&s!==m&&(s&b)===0&&(b=m&-m,D=s&-s,b>=D||b===32&&(D&4194176)!==0)?s:m}function On(a,s){return(a.pendingLanes&~(a.suspendedLanes&~a.pingedLanes)&s)===0}function Li(a,s){switch(a){case 1:case 2:case 4:case 8:return s+250;case 16:case 32:case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return s+5e3;case 4194304:case 8388608:case 16777216:case 33554432:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function ca(){var a=wt;return wt<<=1,(wt&4194176)===0&&(wt=128),a}function Ar(){var a=Ur;return Ur<<=1,(Ur&62914560)===0&&(Ur=4194304),a}function Fs(a){for(var s=[],c=0;31>c;c++)s.push(a);return s}function uo(a,s){a.pendingLanes|=s,s!==268435456&&(a.suspendedLanes=0,a.pingedLanes=0,a.warmLanes=0)}function Ls(a,s,c,m,b,x){var D=a.pendingLanes;a.pendingLanes=c,a.suspendedLanes=0,a.pingedLanes=0,a.warmLanes=0,a.expiredLanes&=c,a.entangledLanes&=c,a.errorRecoveryDisabledLanes&=c,a.shellSuspendCounter=0;var W=a.entanglements,Z=a.expirationTimes,se=a.hiddenUpdates;for(c=D&~c;0"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Bl=RegExp("^[:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD][:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$"),um={},ed={};function wy(a){return xn.call(ed,a)?!0:xn.call(um,a)?!1:Bl.test(a)?ed[a]=!0:(um[a]=!0,!1)}function Nu(a,s,c){if(wy(s))if(c===null)a.removeAttribute(s);else{switch(typeof c){case"undefined":case"function":case"symbol":a.removeAttribute(s);return;case"boolean":var m=s.toLowerCase().slice(0,5);if(m!=="data-"&&m!=="aria-"){a.removeAttribute(s);return}}a.setAttribute(s,""+c)}}function Ti(a,s,c){if(c===null)a.removeAttribute(s);else{switch(typeof c){case"undefined":case"function":case"symbol":case"boolean":a.removeAttribute(s);return}a.setAttribute(s,""+c)}}function fa(a,s,c,m){if(m===null)a.removeAttribute(c);else{switch(typeof m){case"undefined":case"function":case"symbol":case"boolean":a.removeAttribute(c);return}a.setAttributeNS(s,c,""+m)}}function Zr(a){switch(typeof a){case"bigint":case"boolean":case"number":case"string":case"undefined":return a;case"object":return a;default:return""}}function ql(a){var s=a.type;return(a=a.nodeName)&&a.toLowerCase()==="input"&&(s==="checkbox"||s==="radio")}function Bs(a){var s=ql(a)?"checked":"value",c=Object.getOwnPropertyDescriptor(a.constructor.prototype,s),m=""+a[s];if(!a.hasOwnProperty(s)&&typeof c<"u"&&typeof c.get=="function"&&typeof c.set=="function"){var b=c.get,x=c.set;return Object.defineProperty(a,s,{configurable:!0,get:function(){return b.call(this)},set:function(D){m=""+D,x.call(this,D)}}),Object.defineProperty(a,s,{enumerable:c.enumerable}),{getValue:function(){return m},setValue:function(D){m=""+D},stopTracking:function(){a._valueTracker=null,delete a[s]}}}}function fo(a){a._valueTracker||(a._valueTracker=Bs(a))}function ho(a){if(!a)return!1;var s=a._valueTracker;if(!s)return!0;var c=s.getValue(),m="";return a&&(m=ql(a)?a.checked?"true":"false":a.value),a=m,a!==c?(s.setValue(a),!0):!1}function Mu(a){if(a=a||(typeof document<"u"?document:void 0),typeof a>"u")return null;try{return a.activeElement||a.body}catch{return a.body}}var Sy=/[\n"\\]/g;function ei(a){return a.replace(Sy,function(s){return"\\"+s.charCodeAt(0).toString(16)+" "})}function Hl(a,s,c,m,b,x,D,W){a.name="",D!=null&&typeof D!="function"&&typeof D!="symbol"&&typeof D!="boolean"?a.type=D:a.removeAttribute("type"),s!=null?D==="number"?(s===0&&a.value===""||a.value!=s)&&(a.value=""+Zr(s)):a.value!==""+Zr(s)&&(a.value=""+Zr(s)):D!=="submit"&&D!=="reset"||a.removeAttribute("value"),s!=null?td(a,D,Zr(s)):c!=null?td(a,D,Zr(c)):m!=null&&a.removeAttribute("value"),b==null&&x!=null&&(a.defaultChecked=!!x),b!=null&&(a.checked=b&&typeof b!="function"&&typeof b!="symbol"),W!=null&&typeof W!="function"&&typeof W!="symbol"&&typeof W!="boolean"?a.name=""+Zr(W):a.removeAttribute("name")}function zl(a,s,c,m,b,x,D,W){if(x!=null&&typeof x!="function"&&typeof x!="symbol"&&typeof x!="boolean"&&(a.type=x),s!=null||c!=null){if(!(x!=="submit"&&x!=="reset"||s!=null))return;c=c!=null?""+Zr(c):"",s=s!=null?""+Zr(s):c,W||s===a.value||(a.value=s),a.defaultValue=s}m=m??b,m=typeof m!="function"&&typeof m!="symbol"&&!!m,a.checked=W?a.checked:!!m,a.defaultChecked=!!m,D!=null&&typeof D!="function"&&typeof D!="symbol"&&typeof D!="boolean"&&(a.name=D)}function td(a,s,c){s==="number"&&Mu(a.ownerDocument)===a||a.defaultValue===""+c||(a.defaultValue=""+c)}function Qo(a,s,c,m){if(a=a.options,s){s={};for(var b=0;b=ec),ym=" ",Oy=!1;function ub(a,s){switch(a){case"keyup":return Zl.indexOf(s.keyCode)!==-1;case"keydown":return s.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function vm(a){return a=a.detail,typeof a=="object"&&"data"in a?a.data:null}var Vs=!1;function h3(a,s){switch(a){case"compositionend":return vm(s);case"keypress":return s.which!==32?null:(Oy=!0,ym);case"textInput":return a=s.data,a===ym&&Oy?null:a;default:return null}}function lb(a,s){if(Vs)return a==="compositionend"||!xy&&ub(a,s)?(a=fm(),po=zs=Pa=null,Vs=!1,a):null;switch(a){case"paste":return null;case"keypress":if(!(s.ctrlKey||s.altKey||s.metaKey)||s.ctrlKey&&s.altKey){if(s.char&&1=s)return{node:c,offset:s-a};a=m}e:{for(;c;){if(c.nextSibling){c=c.nextSibling;break e}c=c.parentNode}c=void 0}c=ha(c)}}function mb(a,s){return a&&s?a===s?!0:a&&a.nodeType===3?!1:s&&s.nodeType===3?mb(a,s.parentNode):"contains"in a?a.contains(s):a.compareDocumentPosition?!!(a.compareDocumentPosition(s)&16):!1:!1}function gb(a){a=a!=null&&a.ownerDocument!=null&&a.ownerDocument.defaultView!=null?a.ownerDocument.defaultView:window;for(var s=Mu(a.document);s instanceof a.HTMLIFrameElement;){try{var c=typeof s.contentWindow.location.href=="string"}catch{c=!1}if(c)a=s.contentWindow;else break;s=Mu(a.document)}return s}function Ay(a){var s=a&&a.nodeName&&a.nodeName.toLowerCase();return s&&(s==="input"&&(a.type==="text"||a.type==="search"||a.type==="tel"||a.type==="url"||a.type==="password")||s==="textarea"||a.contentEditable==="true")}function y3(a,s){var c=gb(s);s=a.focusedElem;var m=a.selectionRange;if(c!==s&&s&&s.ownerDocument&&mb(s.ownerDocument.documentElement,s)){if(m!==null&&Ay(s)){if(a=m.start,c=m.end,c===void 0&&(c=a),"selectionStart"in s)s.selectionStart=a,s.selectionEnd=Math.min(c,s.value.length);else if(c=(a=s.ownerDocument||document)&&a.defaultView||window,c.getSelection){c=c.getSelection();var b=s.textContent.length,x=Math.min(m.start,b);m=m.end===void 0?x:Math.min(m.end,b),!c.extend&&x>m&&(b=m,m=x,x=b),b=_y(s,x);var D=_y(s,m);b&&D&&(c.rangeCount!==1||c.anchorNode!==b.node||c.anchorOffset!==b.offset||c.focusNode!==D.node||c.focusOffset!==D.offset)&&(a=a.createRange(),a.setStart(b.node,b.offset),c.removeAllRanges(),x>m?(c.addRange(a),c.extend(D.node,D.offset)):(a.setEnd(D.node,D.offset),c.addRange(a)))}}for(a=[],c=s;c=c.parentNode;)c.nodeType===1&&a.push({element:c,left:c.scrollLeft,top:c.scrollTop});for(typeof s.focus=="function"&&s.focus(),s=0;s=document.documentMode,Ia=null,le=null,xe=null,Se=!1;function Xe(a,s,c){var m=c.window===c?c.document:c.nodeType===9?c:c.ownerDocument;Se||Ia==null||Ia!==Mu(m)||(m=Ia,"selectionStart"in m&&Ay(m)?m={start:m.selectionStart,end:m.selectionEnd}:(m=(m.ownerDocument&&m.ownerDocument.defaultView||window).getSelection(),m={anchorNode:m.anchorNode,anchorOffset:m.anchorOffset,focusNode:m.focusNode,focusOffset:m.focusOffset}),xe&&yo(xe,m)||(xe=m,m=ag(le,"onSelect"),0>=D,b-=D,ya=1<<32-ce(s)+b|c<vt?(un=st,st=null):un=st.sibling;var Zt=ve(de,st,ye[vt],Ne);if(Zt===null){st===null&&(st=un);break}a&&st&&Zt.alternate===null&&s(de,st),oe=x(Zt,oe,vt),jt===null?et=Zt:jt.sibling=Zt,jt=Zt,st=un}if(vt===ye.length)return c(de,st),$t&&is(de,vt),et;if(st===null){for(;vtvt?(un=st,st=null):un=st.sibling;var yu=ve(de,st,Zt.value,Ne);if(yu===null){st===null&&(st=un);break}a&&st&&yu.alternate===null&&s(de,st),oe=x(yu,oe,vt),jt===null?et=yu:jt.sibling=yu,jt=yu,st=un}if(Zt.done)return c(de,st),$t&&is(de,vt),et;if(st===null){for(;!Zt.done;vt++,Zt=ye.next())Zt=Le(de,Zt.value,Ne),Zt!==null&&(oe=x(Zt,oe,vt),jt===null?et=Zt:jt.sibling=Zt,jt=Zt);return $t&&is(de,vt),et}for(st=m(st);!Zt.done;vt++,Zt=ye.next())Zt=Oe(st,de,vt,Zt.value,Ne),Zt!==null&&(a&&Zt.alternate!==null&&st.delete(Zt.key===null?vt:Zt.key),oe=x(Zt,oe,vt),jt===null?et=Zt:jt.sibling=Zt,jt=Zt);return a&&st.forEach(function(uC){return s(de,uC)}),$t&&is(de,vt),et}function Vn(de,oe,ye,Ne){if(typeof ye=="object"&&ye!==null&&ye.type===d&&ye.key===null&&(ye=ye.props.children),typeof ye=="object"&&ye!==null){switch(ye.$$typeof){case u:e:{for(var et=ye.key;oe!==null;){if(oe.key===et){if(et=ye.type,et===d){if(oe.tag===7){c(de,oe.sibling),Ne=b(oe,ye.props.children),Ne.return=de,de=Ne;break e}}else if(oe.elementType===et||typeof et=="object"&&et!==null&&et.$$typeof===_&&dd(et)===oe.type){c(de,oe.sibling),Ne=b(oe,ye.props),z(Ne,ye),Ne.return=de,de=Ne;break e}c(de,oe);break}else s(de,oe);oe=oe.sibling}ye.type===d?(Ne=Xu(ye.props.children,de.mode,Ne,ye.key),Ne.return=de,de=Ne):(Ne=kd(ye.type,ye.key,ye.props,null,de.mode,Ne),z(Ne,ye),Ne.return=de,de=Ne)}return D(de);case l:e:{for(et=ye.key;oe!==null;){if(oe.key===et)if(oe.tag===4&&oe.stateNode.containerInfo===ye.containerInfo&&oe.stateNode.implementation===ye.implementation){c(de,oe.sibling),Ne=b(oe,ye.children||[]),Ne.return=de,de=Ne;break e}else{c(de,oe);break}else s(de,oe);oe=oe.sibling}Ne=$v(ye,de.mode,Ne),Ne.return=de,de=Ne}return D(de);case _:return et=ye._init,ye=et(ye._payload),Vn(de,oe,ye,Ne)}if($e(ye))return at(de,oe,ye,Ne);if(L(ye)){if(et=L(ye),typeof et!="function")throw Error(r(150));return ye=et.call(ye),Et(de,oe,ye,Ne)}if(typeof ye.then=="function")return Vn(de,oe,fd(ye),Ne);if(ye.$$typeof===v)return Vn(de,oe,Km(de,ye),Ne);ls(de,ye)}return typeof ye=="string"&&ye!==""||typeof ye=="number"||typeof ye=="bigint"?(ye=""+ye,oe!==null&&oe.tag===6?(c(de,oe.sibling),Ne=b(oe,ye),Ne.return=de,de=Ne):(c(de,oe),Ne=Cv(ye,de.mode,Ne),Ne.return=de,de=Ne),D(de)):c(de,oe)}return function(de,oe,ye,Ne){try{us=0;var et=Vn(de,oe,ye,Ne);return ss=null,et}catch(st){if(st===os)throw st;var jt=ta(29,st,null,de.mode);return jt.lanes=Ne,jt.return=de,jt}finally{}}}var At=Ki(!0),$b=Ki(!1),sc=ke(null),Am=ke(0);function Ys(a,s){a=ws,He(Am,a),He(sc,s),ws=a|s.baseLanes}function My(){He(Am,ws),He(sc,sc.current)}function ky(){ws=Am.current,Ke(sc),Ke(Am)}var ba=ke(null),$o=null;function Js(a){var s=a.alternate;He(pr,pr.current&1),He(ba,a),$o===null&&(s===null||sc.current!==null||s.memoizedState!==null)&&($o=a)}function Eo(a){if(a.tag===22){if(He(pr,pr.current),He(ba,a),$o===null){var s=a.alternate;s!==null&&s.memoizedState!==null&&($o=a)}}else Qs()}function Qs(){He(pr,pr.current),He(ba,ba.current)}function cs(a){Ke(ba),$o===a&&($o=null),Ke(pr)}var pr=ke(0);function Rm(a){for(var s=a;s!==null;){if(s.tag===13){var c=s.memoizedState;if(c!==null&&(c=c.dehydrated,c===null||c.data==="$?"||c.data==="$!"))return s}else if(s.tag===19&&s.memoizedProps.revealOrder!==void 0){if((s.flags&128)!==0)return s}else if(s.child!==null){s.child.return=s,s=s.child;continue}if(s===a)break;for(;s.sibling===null;){if(s.return===null||s.return===a)return null;s=s.return}s.sibling.return=s.return,s=s.sibling}return null}var w3=typeof AbortController<"u"?AbortController:function(){var a=[],s=this.signal={aborted:!1,addEventListener:function(c,m){a.push(m)}};this.abort=function(){s.aborted=!0,a.forEach(function(c){return c()})}},fs=t.unstable_scheduleCallback,S3=t.unstable_NormalPriority,mr={$$typeof:v,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function Dy(){return{controller:new w3,data:new Map,refCount:0}}function hd(a){a.refCount--,a.refCount===0&&fs(S3,function(){a.controller.abort()})}var pd=null,ds=0,uc=0,lc=null;function ka(a,s){if(pd===null){var c=pd=[];ds=0,uc=jv(),lc={status:"pending",value:void 0,then:function(m){c.push(m)}}}return ds++,s.then(Eb,Eb),s}function Eb(){if(--ds===0&&pd!==null){lc!==null&&(lc.status="fulfilled");var a=pd;pd=null,uc=0,lc=null;for(var s=0;sx?x:8;var D=Y.T,W={};Y.T=W,yc(a,!1,s,c);try{var Z=b(),se=Y.S;if(se!==null&&se(W,Z),Z!==null&&typeof Z=="object"&&typeof Z.then=="function"){var _e=C3(Z,m);Sd(a,s,_e,ra(a))}else Sd(a,s,m,ra(a))}catch(Le){Sd(a,s,{then:function(){},status:"rejected",reason:Le},ra())}finally{Ce.p=x,Y.T=D}}function E3(){}function wd(a,s,c,m){if(a.tag!==5)throw Error(r(476));var b=Mt(a).queue;Um(a,b,s,Be,c===null?E3:function(){return Lb(a),c(m)})}function Mt(a){var s=a.memoizedState;if(s!==null)return s;s={memoizedState:Be,baseState:Be,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Da,lastRenderedState:Be},next:null};var c={};return s.next={memoizedState:c,baseState:c,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Da,lastRenderedState:c},next:null},a.memoizedState=s,a=a.alternate,a!==null&&(a.memoizedState=s),s}function Lb(a){var s=Mt(a).next.queue;Sd(a,s,{},ra())}function Xy(){return Vr(Kd)}function gc(){return rr().memoizedState}function Zy(){return rr().memoizedState}function x3(a){for(var s=a.return;s!==null;){switch(s.tag){case 24:case 3:var c=ra();a=Ba(c);var m=Qi(s,a,c);m!==null&&(Wr(m,s,c),lt(m,s,c)),s={cache:Dy()},a.payload=s;return}s=s.return}}function O3(a,s,c){var m=ra();c={lane:m,revertLane:0,action:c,hasEagerState:!1,eagerState:null,next:null},vc(a)?ev(s,c):(c=vo(a,s,c,m),c!==null&&(Wr(c,a,m),tv(c,s,m)))}function Ji(a,s,c){var m=ra();Sd(a,s,c,m)}function Sd(a,s,c,m){var b={lane:m,revertLane:0,action:c,hasEagerState:!1,eagerState:null,next:null};if(vc(a))ev(s,b);else{var x=a.alternate;if(a.lanes===0&&(x===null||x.lanes===0)&&(x=s.lastRenderedReducer,x!==null))try{var D=s.lastRenderedState,W=x(D,c);if(b.hasEagerState=!0,b.eagerState=W,Gi(W,D))return Fu(a,s,b,0),$n===null&&Em(),!1}catch{}finally{}if(c=vo(a,s,b,m),c!==null)return Wr(c,a,m),tv(c,s,m),!0}return!1}function yc(a,s,c,m){if(m={lane:2,revertLane:jv(),action:m,hasEagerState:!1,eagerState:null,next:null},vc(a)){if(s)throw Error(r(479))}else s=vo(a,c,m,2),s!==null&&Wr(s,a,2)}function vc(a){var s=a.alternate;return a===Ft||s!==null&&s===Ft}function ev(a,s){cc=Gu=!0;var c=a.pending;c===null?s.next=s:(s.next=c.next,c.next=s),a.pending=s}function tv(a,s,c){if((c&4194176)!==0){var m=s.lanes;m&=a.pendingLanes,c|=m,s.lanes=c,Xr(a,c)}}var Yn={readContext:Vr,use:gd,useCallback:an,useContext:an,useEffect:an,useImperativeHandle:an,useLayoutEffect:an,useInsertionEffect:an,useMemo:an,useReducer:an,useRef:an,useState:an,useDebugValue:an,useDeferredValue:an,useTransition:an,useSyncExternalStore:an,useId:an};Yn.useCacheRefresh=an,Yn.useMemoCache=an,Yn.useHostTransitionStatus=an,Yn.useFormState=an,Yn.useActionState=an,Yn.useOptimistic=an;var Ai={readContext:Vr,use:gd,useCallback:function(a,s){return _i().memoizedState=[a,s===void 0?null:s],a},useContext:Vr,useEffect:Gy,useImperativeHandle:function(a,s,c){c=c!=null?c.concat([a]):null,mc(4194308,4,Wy.bind(null,s,a),c)},useLayoutEffect:function(a,s){return mc(4194308,4,a,s)},useInsertionEffect:function(a,s){mc(4,2,a,s)},useMemo:function(a,s){var c=_i();s=s===void 0?null:s;var m=a();if(Zs){ae(!0);try{a()}finally{ae(!1)}}return c.memoizedState=[m,s],m},useReducer:function(a,s,c){var m=_i();if(c!==void 0){var b=c(s);if(Zs){ae(!0);try{c(s)}finally{ae(!1)}}}else b=s;return m.memoizedState=m.baseState=b,a={pending:null,lanes:0,dispatch:null,lastRenderedReducer:a,lastRenderedState:b},m.queue=a,a=a.dispatch=O3.bind(null,Ft,a),[m.memoizedState,a]},useRef:function(a){var s=_i();return a={current:a},s.memoizedState=a},useState:function(a){a=qy(a);var s=a.queue,c=Ji.bind(null,Ft,s);return s.dispatch=c,[a.memoizedState,c]},useDebugValue:Yy,useDeferredValue:function(a,s){var c=_i();return bd(c,a,s)},useTransition:function(){var a=qy(!1);return a=Um.bind(null,Ft,a.queue,!0,!1),_i().memoizedState=a,[!1,a]},useSyncExternalStore:function(a,s,c){var m=Ft,b=_i();if($t){if(c===void 0)throw Error(r(407));c=c()}else{if(c=s(),$n===null)throw Error(r(349));(Xt&60)!==0||km(m,s,c)}b.memoizedState=c;var x={value:c,getSnapshot:s};return b.queue=x,Gy(Tb.bind(null,m,x,a),[a]),m.flags|=2048,nu(9,Ob.bind(null,m,x,c,s),{destroy:void 0},null),c},useId:function(){var a=_i(),s=$n.identifierPrefix;if($t){var c=va,m=ya;c=(m&~(1<<32-ce(m)-1)).toString(32)+c,s=":"+s+"R"+c,c=Pm++,0 title"))),Nr(x,m,c),x[Mn]=a,kn(x),m=x;break e;case"link":var D=N2("link","href",b).get(m+(c.href||""));if(D){for(var W=0;W<\/script>",a=a.removeChild(a.firstChild);break;case"select":a=typeof m.is=="string"?b.createElement("select",{is:m.is}):b.createElement("select"),m.multiple?a.multiple=!0:m.size&&(a.size=m.size);break;default:a=typeof m.is=="string"?b.createElement(c,{is:m.is}):b.createElement(c)}}a[Mn]=s,a[An]=m;e:for(b=s.child;b!==null;){if(b.tag===5||b.tag===6)a.appendChild(b.stateNode);else if(b.tag!==4&&b.tag!==27&&b.child!==null){b.child.return=b,b=b.child;continue}if(b===s)break e;for(;b.sibling===null;){if(b.return===null||b.return===s)break e;b=b.return}b.sibling.return=b.return,b=b.sibling}s.stateNode=a;e:switch(Nr(a,c,m),c){case"button":case"input":case"select":case"textarea":a=!!m.autoFocus;break e;case"img":a=!0;break e;default:a=!1}a&&vs(s)}}return qn(s),s.flags&=-16777217,null;case 6:if(a&&s.stateNode!=null)a.memoizedProps!==m&&vs(s);else{if(typeof m!="string"&&s.stateNode===null)throw Error(r(166));if(a=bt.current,zu(s)){if(a=s.stateNode,c=s.memoizedProps,m=null,b=ri,b!==null)switch(b.tag){case 27:case 5:m=b.memoizedProps}a[Mn]=s,a=!!(a.nodeValue===c||m!==null&&m.suppressHydrationWarning===!0||Ot(a.nodeValue,c)),a||Hu(s)}else a=sg(a).createTextNode(m),a[Mn]=s,s.stateNode=a}return qn(s),null;case 13:if(m=s.memoizedState,a===null||a.memoizedState!==null&&a.memoizedState.dehydrated!==null){if(b=zu(s),m!==null&&m.dehydrated!==null){if(a===null){if(!b)throw Error(r(318));if(b=s.memoizedState,b=b!==null?b.dehydrated:null,!b)throw Error(r(317));b[Mn]=s}else Co(),(s.flags&128)===0&&(s.memoizedState=null),s.flags|=4;qn(s),b=!1}else Ma!==null&&(Ic(Ma),Ma=null),b=!0;if(!b)return s.flags&256?(cs(s),s):(cs(s),null)}if(cs(s),(s.flags&128)!==0)return s.lanes=c,s;if(c=m!==null,a=a!==null&&a.memoizedState!==null,c){m=s.child,b=null,m.alternate!==null&&m.alternate.memoizedState!==null&&m.alternate.memoizedState.cachePool!==null&&(b=m.alternate.memoizedState.cachePool.pool);var x=null;m.memoizedState!==null&&m.memoizedState.cachePool!==null&&(x=m.memoizedState.cachePool.pool),x!==b&&(m.flags|=2048)}return c!==a&&c&&(s.child.flags|=8192),oi(s,s.updateQueue),qn(s),null;case 4:return Gt(),a===null&&Vv(s.stateNode.containerInfo),qn(s),null;case 10:return Oo(s.type),qn(s),null;case 19:if(Ke(pr),b=s.memoizedState,b===null)return qn(s),null;if(m=(s.flags&128)!==0,x=b.rendering,x===null)if(m)Dd(b,!1);else{if(Qn!==0||a!==null&&(a.flags&128)!==0)for(a=s.child;a!==null;){if(x=Rm(a),x!==null){for(s.flags|=128,Dd(b,!1),a=x.updateQueue,s.updateQueue=a,oi(s,a),s.subtreeFlags=0,a=c,c=s.child;c!==null;)r2(c,a),c=c.sibling;return He(pr,pr.current&1|2),s.child}a=a.sibling}b.tail!==null&&Ge()>Zm&&(s.flags|=128,m=!0,Dd(b,!1),s.lanes=4194304)}else{if(!m)if(a=Rm(x),a!==null){if(s.flags|=128,m=!0,a=a.updateQueue,s.updateQueue=a,oi(s,a),Dd(b,!0),b.tail===null&&b.tailMode==="hidden"&&!x.alternate&&!$t)return qn(s),null}else 2*Ge()-b.renderingStartTime>Zm&&c!==536870912&&(s.flags|=128,m=!0,Dd(b,!1),s.lanes=4194304);b.isBackwards?(x.sibling=s.child,s.child=x):(a=b.last,a!==null?a.sibling=x:s.child=x,b.last=x)}return b.tail!==null?(s=b.tail,b.rendering=s,b.tail=s.sibling,b.renderingStartTime=Ge(),s.sibling=null,a=pr.current,He(pr,m?a&1|2:a&1),s):(qn(s),null);case 22:case 23:return cs(s),ky(),m=s.memoizedState!==null,a!==null?a.memoizedState!==null!==m&&(s.flags|=8192):m&&(s.flags|=8192),m?(c&536870912)!==0&&(s.flags&128)===0&&(qn(s),s.subtreeFlags&6&&(s.flags|=8192)):qn(s),c=s.updateQueue,c!==null&&oi(s,c.retryQueue),c=null,a!==null&&a.memoizedState!==null&&a.memoizedState.cachePool!==null&&(c=a.memoizedState.cachePool.pool),m=null,s.memoizedState!==null&&s.memoizedState.cachePool!==null&&(m=s.memoizedState.cachePool.pool),m!==c&&(s.flags|=2048),a!==null&&Ke(Vu),null;case 24:return c=null,a!==null&&(c=a.memoizedState.cache),s.memoizedState.cache!==c&&(s.flags|=2048),Oo(mr),qn(s),null;case 25:return null}throw Error(r(156,s.tag))}function o2(a,s){switch(Ny(s),s.tag){case 1:return a=s.flags,a&65536?(s.flags=a&-65537|128,s):null;case 3:return Oo(mr),Gt(),a=s.flags,(a&65536)!==0&&(a&128)===0?(s.flags=a&-65537|128,s):null;case 26:case 27:case 5:return en(s),null;case 13:if(cs(s),a=s.memoizedState,a!==null&&a.dehydrated!==null){if(s.alternate===null)throw Error(r(340));Co()}return a=s.flags,a&65536?(s.flags=a&-65537|128,s):null;case 19:return Ke(pr),null;case 4:return Gt(),null;case 10:return Oo(s.type),null;case 22:case 23:return cs(s),ky(),a!==null&&Ke(Vu),a=s.flags,a&65536?(s.flags=a&-65537|128,s):null;case 24:return Oo(mr),null;case 25:return null;default:return null}}function s2(a,s){switch(Ny(s),s.tag){case 3:Oo(mr),Gt();break;case 26:case 27:case 5:en(s);break;case 4:Gt();break;case 13:cs(s);break;case 19:Ke(pr);break;case 10:Oo(s.type);break;case 22:case 23:cs(s),ky(),a!==null&&Ke(Vu);break;case 24:Oo(mr)}}var R3={getCacheForType:function(a){var s=Vr(mr),c=s.data.get(a);return c===void 0&&(c=a(),s.data.set(a,c)),c}},P3=typeof WeakMap=="function"?WeakMap:Map,Hn=0,$n=null,qt=null,Xt=0,Pn=0,na=null,bs=!1,Rc=!1,Ev=!1,ws=0,Qn=0,fu=0,Zu=0,xv=0,Sa=0,Pc=0,Fd=null,Po=null,Ov=!1,Tv=0,Zm=1/0,eg=null,Io=null,Ld=!1,el=null,Ud=0,_v=0,Av=null,jd=0,Rv=null;function ra(){if((Hn&2)!==0&&Xt!==0)return Xt&-Xt;if(Y.T!==null){var a=uc;return a!==0?a:jv()}return Ui()}function u2(){Sa===0&&(Sa=(Xt&536870912)===0||$t?ca():536870912);var a=ba.current;return a!==null&&(a.flags|=32),Sa}function Wr(a,s,c){(a===$n&&Pn===2||a.cancelPendingCommit!==null)&&(Nc(a,0),Ss(a,Xt,Sa,!1)),uo(a,c),((Hn&2)===0||a!==$n)&&(a===$n&&((Hn&2)===0&&(Zu|=c),Qn===4&&Ss(a,Xt,Sa,!1)),za(a))}function l2(a,s,c){if((Hn&6)!==0)throw Error(r(327));var m=!c&&(s&60)===0&&(s&a.expiredLanes)===0||On(a,s),b=m?M3(a,s):Nv(a,s,!0),x=m;do{if(b===0){Rc&&!m&&Ss(a,s,0,!1);break}else if(b===6)Ss(a,s,0,!bs);else{if(c=a.current.alternate,x&&!I3(c)){b=Nv(a,s,!1),x=!1;continue}if(b===2){if(x=s,a.errorRecoveryDisabledLanes&x)var D=0;else D=a.pendingLanes&-536870913,D=D!==0?D:D&536870912?536870912:0;if(D!==0){s=D;e:{var W=a;b=Fd;var Z=W.current.memoizedState.isDehydrated;if(Z&&(Nc(W,D).flags|=256),D=Nv(W,D,!1),D!==2){if(Ev&&!Z){W.errorRecoveryDisabledLanes|=x,Zu|=x,b=4;break e}x=Po,Po=b,x!==null&&Ic(x)}b=D}if(x=!1,b!==2)continue}}if(b===1){Nc(a,0),Ss(a,s,0,!0);break}e:{switch(m=a,b){case 0:case 1:throw Error(r(345));case 4:if((s&4194176)===s){Ss(m,s,Sa,!bs);break e}break;case 2:Po=null;break;case 3:case 5:break;default:throw Error(r(329))}if(m.finishedWork=c,m.finishedLanes=s,(s&62914560)===s&&(x=Tv+300-Ge(),10c?32:c,Y.T=null,el===null)var x=!1;else{c=Av,Av=null;var D=el,W=Ud;if(el=null,Ud=0,(Hn&6)!==0)throw Error(r(331));var Z=Hn;if(Hn|=4,t2(D.current),Xb(D,D.current,W,c),Hn=Z,rl(0,!1),rt&&typeof rt.onPostCommitFiberRoot=="function")try{rt.onPostCommitFiberRoot(Ee,D)}catch{}x=!0}return x}finally{Ce.p=b,Y.T=m,v2(a,s)}}return!1}function b2(a,s,c){s=ni(c,s),s=$d(a.stateNode,s,2),a=Qi(a,s,2),a!==null&&(uo(a,2),za(a))}function Tn(a,s,c){if(a.tag===3)b2(a,a,c);else for(;s!==null;){if(s.tag===3){b2(s,a,c);break}else if(s.tag===1){var m=s.stateNode;if(typeof s.type.getDerivedStateFromError=="function"||typeof m.componentDidCatch=="function"&&(Io===null||!Io.has(m))){a=ni(c,a),c=jb(2),m=Qi(s,c,2),m!==null&&(Bb(c,m,s,a),uo(m,2),za(m));break}}s=s.return}}function Mv(a,s,c){var m=a.pingCache;if(m===null){m=a.pingCache=new P3;var b=new Set;m.set(s,b)}else b=m.get(s),b===void 0&&(b=new Set,m.set(s,b));b.has(c)||(Ev=!0,b.add(c),a=F3.bind(null,a,s,c),s.then(a,a))}function F3(a,s,c){var m=a.pingCache;m!==null&&m.delete(s),a.pingedLanes|=a.suspendedLanes&c,a.warmLanes&=~c,$n===a&&(Xt&c)===c&&(Qn===4||Qn===3&&(Xt&62914560)===Xt&&300>Ge()-Tv?(Hn&2)===0&&Nc(a,0):xv|=c,Pc===Xt&&(Pc=0)),za(a)}function w2(a,s){s===0&&(s=Ar()),a=Na(a,s),a!==null&&(uo(a,s),za(a))}function L3(a){var s=a.memoizedState,c=0;s!==null&&(c=s.retryLane),w2(a,c)}function U3(a,s){var c=0;switch(a.tag){case 13:var m=a.stateNode,b=a.memoizedState;b!==null&&(c=b.retryLane);break;case 19:m=a.stateNode;break;case 22:m=a.stateNode._retryCache;break;default:throw Error(r(314))}m!==null&&m.delete(s),w2(a,c)}function j3(a,s){return Dt(a,s)}var ng=null,Mc=null,kv=!1,nl=!1,Dv=!1,du=0;function za(a){a!==Mc&&a.next===null&&(Mc===null?ng=Mc=a:Mc=Mc.next=a),nl=!0,kv||(kv=!0,B3(S2))}function rl(a,s){if(!Dv&&nl){Dv=!0;do for(var c=!1,m=ng;m!==null;){if(a!==0){var b=m.pendingLanes;if(b===0)var x=0;else{var D=m.suspendedLanes,W=m.pingedLanes;x=(1<<31-ce(42|a)+1)-1,x&=b&~(D&~W),x=x&201326677?x&201326677|1:x?x|2:0}x!==0&&(c=!0,Uv(m,x))}else x=Xt,x=tr(m,m===$n?x:0),(x&3)===0||On(m,x)||(c=!0,Uv(m,x));m=m.next}while(c);Dv=!1}}function S2(){nl=kv=!1;var a=0;du!==0&&($s()&&(a=du),du=0);for(var s=Ge(),c=null,m=ng;m!==null;){var b=m.next,x=Fv(m,s);x===0?(m.next=null,c===null?ng=b:c.next=b,b===null&&(Mc=c)):(c=m,(a!==0||(x&3)!==0)&&(nl=!0)),m=b}rl(a)}function Fv(a,s){for(var c=a.suspendedLanes,m=a.pingedLanes,b=a.expirationTimes,x=a.pendingLanes&-62914561;0"u"?null:document;function R2(a,s,c){var m=Ga;if(m&&typeof s=="string"&&s){var b=ei(s);b='link[rel="'+a+'"][href="'+b+'"]',typeof c=="string"&&(b+='[crossorigin="'+c+'"]'),lg.has(b)||(lg.add(b),a={rel:a,crossOrigin:c,href:s},m.querySelector(b)===null&&(s=m.createElement("link"),Nr(s,"link",a),kn(s),m.head.appendChild(s)))}}function W3(a){No.D(a),R2("dns-prefetch",a,null)}function K3(a,s){No.C(a,s),R2("preconnect",a,s)}function Y3(a,s,c){No.L(a,s,c);var m=Ga;if(m&&a&&s){var b='link[rel="preload"][as="'+ei(s)+'"]';s==="image"&&c&&c.imageSrcSet?(b+='[imagesrcset="'+ei(c.imageSrcSet)+'"]',typeof c.imageSizes=="string"&&(b+='[imagesizes="'+ei(c.imageSizes)+'"]')):b+='[href="'+ei(a)+'"]';var x=b;switch(s){case"style":x=Mr(a);break;case"script":x=Fc(a)}Kr.has(x)||(a=X({rel:"preload",href:s==="image"&&c&&c.imageSrcSet?void 0:a,as:s},c),Kr.set(x,a),m.querySelector(b)!==null||s==="style"&&m.querySelector(Dc(x))||s==="script"&&m.querySelector(Lc(x))||(s=m.createElement("link"),Nr(s,"link",a),kn(s),m.head.appendChild(s)))}}function J3(a,s){No.m(a,s);var c=Ga;if(c&&a){var m=s&&typeof s.as=="string"?s.as:"script",b='link[rel="modulepreload"][as="'+ei(m)+'"][href="'+ei(a)+'"]',x=b;switch(m){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":x=Fc(a)}if(!Kr.has(x)&&(a=X({rel:"modulepreload",href:a},s),Kr.set(x,a),c.querySelector(b)===null)){switch(m){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(c.querySelector(Lc(x)))return}m=c.createElement("link"),Nr(m,"link",a),kn(m),c.head.appendChild(m)}}}function P2(a,s,c){No.S(a,s,c);var m=Ga;if(m&&a){var b=js(m).hoistableStyles,x=Mr(a);s=s||"default";var D=b.get(x);if(!D){var W={loading:0,preload:null};if(D=m.querySelector(Dc(x)))W.loading=5;else{a=X({rel:"stylesheet",href:a,"data-precedence":s},c),(c=Kr.get(x))&&t0(a,c);var Z=D=m.createElement("link");kn(Z),Nr(Z,"link",a),Z._p=new Promise(function(se,_e){Z.onload=se,Z.onerror=_e}),Z.addEventListener("load",function(){W.loading|=1}),Z.addEventListener("error",function(){W.loading|=2}),W.loading|=4,dg(D,s,m)}D={type:"stylesheet",instance:D,count:1,state:W},b.set(x,D)}}}function Es(a,s){No.X(a,s);var c=Ga;if(c&&a){var m=js(c).hoistableScripts,b=Fc(a),x=m.get(b);x||(x=c.querySelector(Lc(b)),x||(a=X({src:a,async:!0},s),(s=Kr.get(b))&&n0(a,s),x=c.createElement("script"),kn(x),Nr(x,"link",a),c.head.appendChild(x)),x={type:"script",instance:x,count:1,state:null},m.set(b,x))}}function Nt(a,s){No.M(a,s);var c=Ga;if(c&&a){var m=js(c).hoistableScripts,b=Fc(a),x=m.get(b);x||(x=c.querySelector(Lc(b)),x||(a=X({src:a,async:!0,type:"module"},s),(s=Kr.get(b))&&n0(a,s),x=c.createElement("script"),kn(x),Nr(x,"link",a),c.head.appendChild(x)),x={type:"script",instance:x,count:1,state:null},m.set(b,x))}}function e0(a,s,c,m){var b=(b=bt.current)?cg(b):null;if(!b)throw Error(r(446));switch(a){case"meta":case"title":return null;case"style":return typeof c.precedence=="string"&&typeof c.href=="string"?(s=Mr(c.href),c=js(b).hoistableStyles,m=c.get(s),m||(m={type:"style",instance:null,count:0,state:null},c.set(s,m)),m):{type:"void",instance:null,count:0,state:null};case"link":if(c.rel==="stylesheet"&&typeof c.href=="string"&&typeof c.precedence=="string"){a=Mr(c.href);var x=js(b).hoistableStyles,D=x.get(a);if(D||(b=b.ownerDocument||b,D={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},x.set(a,D),(x=b.querySelector(Dc(a)))&&!x._p&&(D.instance=x,D.state.loading=5),Kr.has(a)||(c={rel:"preload",as:"style",href:c.href,crossOrigin:c.crossOrigin,integrity:c.integrity,media:c.media,hrefLang:c.hrefLang,referrerPolicy:c.referrerPolicy},Kr.set(a,c),x||hn(b,a,c,D.state))),s&&m===null)throw Error(r(528,""));return D}if(s&&m!==null)throw Error(r(529,""));return null;case"script":return s=c.async,c=c.src,typeof c=="string"&&s&&typeof s!="function"&&typeof s!="symbol"?(s=Fc(c),c=js(b).hoistableScripts,m=c.get(s),m||(m={type:"script",instance:null,count:0,state:null},c.set(s,m)),m):{type:"void",instance:null,count:0,state:null};default:throw Error(r(444,a))}}function Mr(a){return'href="'+ei(a)+'"'}function Dc(a){return'link[rel="stylesheet"]['+a+"]"}function I2(a){return X({},a,{"data-precedence":a.precedence,precedence:null})}function hn(a,s,c,m){a.querySelector('link[rel="preload"][as="style"]['+s+"]")?m.loading=1:(s=a.createElement("link"),m.preload=s,s.addEventListener("load",function(){return m.loading|=1}),s.addEventListener("error",function(){return m.loading|=2}),Nr(s,"link",c),kn(s),a.head.appendChild(s))}function Fc(a){return'[src="'+ei(a)+'"]'}function Lc(a){return"script[async]"+a}function Gd(a,s,c){if(s.count++,s.instance===null)switch(s.type){case"style":var m=a.querySelector('style[data-href~="'+ei(c.href)+'"]');if(m)return s.instance=m,kn(m),m;var b=X({},c,{"data-href":c.href,"data-precedence":c.precedence,href:null,precedence:null});return m=(a.ownerDocument||a).createElement("style"),kn(m),Nr(m,"style",b),dg(m,c.precedence,a),s.instance=m;case"stylesheet":b=Mr(c.href);var x=a.querySelector(Dc(b));if(x)return s.state.loading|=4,s.instance=x,kn(x),x;m=I2(c),(b=Kr.get(b))&&t0(m,b),x=(a.ownerDocument||a).createElement("link"),kn(x);var D=x;return D._p=new Promise(function(W,Z){D.onload=W,D.onerror=Z}),Nr(x,"link",m),s.state.loading|=4,dg(x,c.precedence,a),s.instance=x;case"script":return x=Fc(c.src),(b=a.querySelector(Lc(x)))?(s.instance=b,kn(b),b):(m=c,(b=Kr.get(x))&&(m=X({},c),n0(m,b)),a=a.ownerDocument||a,b=a.createElement("script"),kn(b),Nr(b,"link",m),a.head.appendChild(b),s.instance=b);case"void":return null;default:throw Error(r(443,s.type))}else s.type==="stylesheet"&&(s.state.loading&4)===0&&(m=s.instance,s.state.loading|=4,dg(m,c.precedence,a));return s.instance}function dg(a,s,c){for(var m=c.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),b=m.length?m[m.length-1]:null,x=b,D=0;D title"):null)}function Q3(a,s,c){if(c===1||s.itemProp!=null)return!1;switch(a){case"meta":case"title":return!0;case"style":if(typeof s.precedence!="string"||typeof s.href!="string"||s.href==="")break;return!0;case"link":if(typeof s.rel!="string"||typeof s.href!="string"||s.href===""||s.onLoad||s.onError)break;switch(s.rel){case"stylesheet":return a=s.disabled,typeof s.precedence=="string"&&a==null;default:return!0}case"script":if(s.async&&typeof s.async!="function"&&typeof s.async!="symbol"&&!s.onLoad&&!s.onError&&s.src&&typeof s.src=="string")return!0}return!1}function k2(a){return!(a.type==="stylesheet"&&(a.state.loading&3)===0)}var Wd=null;function X3(){}function Z3(a,s,c){if(Wd===null)throw Error(r(475));var m=Wd;if(s.type==="stylesheet"&&(typeof c.media!="string"||matchMedia(c.media).matches!==!1)&&(s.state.loading&4)===0){if(s.instance===null){var b=Mr(c.href),x=a.querySelector(Dc(b));if(x){a=x._p,a!==null&&typeof a=="object"&&typeof a.then=="function"&&(m.count++,m=pg.bind(m),a.then(m,m)),s.state.loading|=4,s.instance=x,kn(x);return}x=a.ownerDocument||a,c=I2(c),(b=Kr.get(b))&&t0(c,b),x=x.createElement("link"),kn(x);var D=x;D._p=new Promise(function(W,Z){D.onload=W,D.onerror=Z}),Nr(x,"link",c),s.instance=x}m.stylesheets===null&&(m.stylesheets=new Map),m.stylesheets.set(s,a),(a=s.state.preload)&&(s.state.loading&3)===0&&(m.count++,s=pg.bind(m),a.addEventListener("load",s),a.addEventListener("error",s))}}function eC(){if(Wd===null)throw Error(r(475));var a=Wd;return a.stylesheets&&a.count===0&&r0(a,a.stylesheets),0"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(t)}catch(e){console.error(e)}}return t(),mC.exports=nF(),mC.exports}var iF=rF();const aF=Mf(iF),oF=Ae.createContext({patchConfig(){},config:{}});function sF(){const t=localStorage.getItem("app_config2");if(t){try{const e=JSON.parse(t);return e?{...e}:{}}catch{}return{}}}sF();function Fw(t,e){return Fw=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},Fw(t,e)}function Qp(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,Fw(t,e)}var oy=(function(){function t(){this.listeners=[]}var e=t.prototype;return e.subscribe=function(r){var i=this,o=r||function(){};return this.listeners.push(o),this.onSubscribe(),function(){i.listeners=i.listeners.filter(function(u){return u!==o}),i.onUnsubscribe()}},e.hasListeners=function(){return this.listeners.length>0},e.onSubscribe=function(){},e.onUnsubscribe=function(){},t})();function Ve(){return Ve=Object.assign?Object.assign.bind():function(t){for(var e=1;e"u";function yi(){}function uF(t,e){return typeof t=="function"?t(e):t}function ME(t){return typeof t=="number"&&t>=0&&t!==1/0}function Uw(t){return Array.isArray(t)?t:[t]}function w9(t,e){return Math.max(t+(e||0)-Date.now(),0)}function vw(t,e,n){return U1(t)?typeof e=="function"?Ve({},n,{queryKey:t,queryFn:e}):Ve({},e,{queryKey:t}):t}function lF(t,e,n){return U1(t)?Ve({},e,{mutationKey:t}):typeof t=="function"?Ve({},e,{mutationFn:t}):Ve({},t)}function $f(t,e,n){return U1(t)?[Ve({},e,{queryKey:t}),n]:[t||{},e]}function cF(t,e){if(t===!0&&e===!0||t==null&&e==null)return"all";if(t===!1&&e===!1)return"none";var n=t??!e;return n?"active":"inactive"}function v4(t,e){var n=t.active,r=t.exact,i=t.fetching,o=t.inactive,u=t.predicate,l=t.queryKey,d=t.stale;if(U1(l)){if(r){if(e.queryHash!==yO(l,e.options))return!1}else if(!jw(e.queryKey,l))return!1}var h=cF(n,o);if(h==="none")return!1;if(h!=="all"){var g=e.isActive();if(h==="active"&&!g||h==="inactive"&&g)return!1}return!(typeof d=="boolean"&&e.isStale()!==d||typeof i=="boolean"&&e.isFetching()!==i||u&&!u(e))}function b4(t,e){var n=t.exact,r=t.fetching,i=t.predicate,o=t.mutationKey;if(U1(o)){if(!e.options.mutationKey)return!1;if(n){if($p(e.options.mutationKey)!==$p(o))return!1}else if(!jw(e.options.mutationKey,o))return!1}return!(typeof r=="boolean"&&e.state.status==="loading"!==r||i&&!i(e))}function yO(t,e){var n=(e==null?void 0:e.queryKeyHashFn)||$p;return n(t)}function $p(t){var e=Uw(t);return fF(e)}function fF(t){return JSON.stringify(t,function(e,n){return kE(n)?Object.keys(n).sort().reduce(function(r,i){return r[i]=n[i],r},{}):n})}function jw(t,e){return S9(Uw(t),Uw(e))}function S9(t,e){return t===e?!0:typeof t!=typeof e?!1:t&&e&&typeof t=="object"&&typeof e=="object"?!Object.keys(e).some(function(n){return!S9(t[n],e[n])}):!1}function Bw(t,e){if(t===e)return t;var n=Array.isArray(t)&&Array.isArray(e);if(n||kE(t)&&kE(e)){for(var r=n?t.length:Object.keys(t).length,i=n?e:Object.keys(e),o=i.length,u=n?[]:{},l=0,d=0;d"u")return!0;var n=e.prototype;return!(!w4(n)||!n.hasOwnProperty("isPrototypeOf"))}function w4(t){return Object.prototype.toString.call(t)==="[object Object]"}function U1(t){return typeof t=="string"||Array.isArray(t)}function hF(t){return new Promise(function(e){setTimeout(e,t)})}function S4(t){Promise.resolve().then(t).catch(function(e){return setTimeout(function(){throw e})})}function C9(){if(typeof AbortController=="function")return new AbortController}var pF=(function(t){Qp(e,t);function e(){var r;return r=t.call(this)||this,r.setup=function(i){var o;if(!Lw&&((o=window)!=null&&o.addEventListener)){var u=function(){return i()};return window.addEventListener("visibilitychange",u,!1),window.addEventListener("focus",u,!1),function(){window.removeEventListener("visibilitychange",u),window.removeEventListener("focus",u)}}},r}var n=e.prototype;return n.onSubscribe=function(){this.cleanup||this.setEventListener(this.setup)},n.onUnsubscribe=function(){if(!this.hasListeners()){var i;(i=this.cleanup)==null||i.call(this),this.cleanup=void 0}},n.setEventListener=function(i){var o,u=this;this.setup=i,(o=this.cleanup)==null||o.call(this),this.cleanup=i(function(l){typeof l=="boolean"?u.setFocused(l):u.onFocus()})},n.setFocused=function(i){this.focused=i,i&&this.onFocus()},n.onFocus=function(){this.listeners.forEach(function(i){i()})},n.isFocused=function(){return typeof this.focused=="boolean"?this.focused:typeof document>"u"?!0:[void 0,"visible","prerender"].includes(document.visibilityState)},e})(oy),B0=new pF,mF=(function(t){Qp(e,t);function e(){var r;return r=t.call(this)||this,r.setup=function(i){var o;if(!Lw&&((o=window)!=null&&o.addEventListener)){var u=function(){return i()};return window.addEventListener("online",u,!1),window.addEventListener("offline",u,!1),function(){window.removeEventListener("online",u),window.removeEventListener("offline",u)}}},r}var n=e.prototype;return n.onSubscribe=function(){this.cleanup||this.setEventListener(this.setup)},n.onUnsubscribe=function(){if(!this.hasListeners()){var i;(i=this.cleanup)==null||i.call(this),this.cleanup=void 0}},n.setEventListener=function(i){var o,u=this;this.setup=i,(o=this.cleanup)==null||o.call(this),this.cleanup=i(function(l){typeof l=="boolean"?u.setOnline(l):u.onOnline()})},n.setOnline=function(i){this.online=i,i&&this.onOnline()},n.onOnline=function(){this.listeners.forEach(function(i){i()})},n.isOnline=function(){return typeof this.online=="boolean"?this.online:typeof navigator>"u"||typeof navigator.onLine>"u"?!0:navigator.onLine},e})(oy),bw=new mF;function gF(t){return Math.min(1e3*Math.pow(2,t),3e4)}function qw(t){return typeof(t==null?void 0:t.cancel)=="function"}var $9=function(e){this.revert=e==null?void 0:e.revert,this.silent=e==null?void 0:e.silent};function ww(t){return t instanceof $9}var E9=function(e){var n=this,r=!1,i,o,u,l;this.abort=e.abort,this.cancel=function(w){return i==null?void 0:i(w)},this.cancelRetry=function(){r=!0},this.continueRetry=function(){r=!1},this.continue=function(){return o==null?void 0:o()},this.failureCount=0,this.isPaused=!1,this.isResolved=!1,this.isTransportCancelable=!1,this.promise=new Promise(function(w,v){u=w,l=v});var d=function(v){n.isResolved||(n.isResolved=!0,e.onSuccess==null||e.onSuccess(v),o==null||o(),u(v))},h=function(v){n.isResolved||(n.isResolved=!0,e.onError==null||e.onError(v),o==null||o(),l(v))},g=function(){return new Promise(function(v){o=v,n.isPaused=!0,e.onPause==null||e.onPause()}).then(function(){o=void 0,n.isPaused=!1,e.onContinue==null||e.onContinue()})},y=function w(){if(!n.isResolved){var v;try{v=e.fn()}catch(C){v=Promise.reject(C)}i=function(E){if(!n.isResolved&&(h(new $9(E)),n.abort==null||n.abort(),qw(v)))try{v.cancel()}catch{}},n.isTransportCancelable=qw(v),Promise.resolve(v).then(d).catch(function(C){var E,$;if(!n.isResolved){var O=(E=e.retry)!=null?E:3,_=($=e.retryDelay)!=null?$:gF,R=typeof _=="function"?_(n.failureCount,C):_,k=O===!0||typeof O=="number"&&n.failureCount"u"&&(l.exact=!0),this.queries.find(function(d){return v4(l,d)})},n.findAll=function(i,o){var u=$f(i,o),l=u[0];return Object.keys(l).length>0?this.queries.filter(function(d){return v4(l,d)}):this.queries},n.notify=function(i){var o=this;er.batch(function(){o.listeners.forEach(function(u){u(i)})})},n.onFocus=function(){var i=this;er.batch(function(){i.queries.forEach(function(o){o.onFocus()})})},n.onOnline=function(){var i=this;er.batch(function(){i.queries.forEach(function(o){o.onOnline()})})},e})(oy),SF=(function(){function t(n){this.options=Ve({},n.defaultOptions,n.options),this.mutationId=n.mutationId,this.mutationCache=n.mutationCache,this.observers=[],this.state=n.state||O9(),this.meta=n.meta}var e=t.prototype;return e.setState=function(r){this.dispatch({type:"setState",state:r})},e.addObserver=function(r){this.observers.indexOf(r)===-1&&this.observers.push(r)},e.removeObserver=function(r){this.observers=this.observers.filter(function(i){return i!==r})},e.cancel=function(){return this.retryer?(this.retryer.cancel(),this.retryer.promise.then(yi).catch(yi)):Promise.resolve()},e.continue=function(){return this.retryer?(this.retryer.continue(),this.retryer.promise):this.execute()},e.execute=function(){var r=this,i,o=this.state.status==="loading",u=Promise.resolve();return o||(this.dispatch({type:"loading",variables:this.options.variables}),u=u.then(function(){r.mutationCache.config.onMutate==null||r.mutationCache.config.onMutate(r.state.variables,r)}).then(function(){return r.options.onMutate==null?void 0:r.options.onMutate(r.state.variables)}).then(function(l){l!==r.state.context&&r.dispatch({type:"loading",context:l,variables:r.state.variables})})),u.then(function(){return r.executeMutation()}).then(function(l){i=l,r.mutationCache.config.onSuccess==null||r.mutationCache.config.onSuccess(i,r.state.variables,r.state.context,r)}).then(function(){return r.options.onSuccess==null?void 0:r.options.onSuccess(i,r.state.variables,r.state.context)}).then(function(){return r.options.onSettled==null?void 0:r.options.onSettled(i,null,r.state.variables,r.state.context)}).then(function(){return r.dispatch({type:"success",data:i}),i}).catch(function(l){return r.mutationCache.config.onError==null||r.mutationCache.config.onError(l,r.state.variables,r.state.context,r),Hw().error(l),Promise.resolve().then(function(){return r.options.onError==null?void 0:r.options.onError(l,r.state.variables,r.state.context)}).then(function(){return r.options.onSettled==null?void 0:r.options.onSettled(void 0,l,r.state.variables,r.state.context)}).then(function(){throw r.dispatch({type:"error",error:l}),l})})},e.executeMutation=function(){var r=this,i;return this.retryer=new E9({fn:function(){return r.options.mutationFn?r.options.mutationFn(r.state.variables):Promise.reject("No mutationFn found")},onFail:function(){r.dispatch({type:"failed"})},onPause:function(){r.dispatch({type:"pause"})},onContinue:function(){r.dispatch({type:"continue"})},retry:(i=this.options.retry)!=null?i:0,retryDelay:this.options.retryDelay}),this.retryer.promise},e.dispatch=function(r){var i=this;this.state=CF(this.state,r),er.batch(function(){i.observers.forEach(function(o){o.onMutationUpdate(r)}),i.mutationCache.notify(i)})},t})();function O9(){return{context:void 0,data:void 0,error:null,failureCount:0,isPaused:!1,status:"idle",variables:void 0}}function CF(t,e){switch(e.type){case"failed":return Ve({},t,{failureCount:t.failureCount+1});case"pause":return Ve({},t,{isPaused:!0});case"continue":return Ve({},t,{isPaused:!1});case"loading":return Ve({},t,{context:e.context,data:void 0,error:null,isPaused:!1,status:"loading",variables:e.variables});case"success":return Ve({},t,{data:e.data,error:null,status:"success",isPaused:!1});case"error":return Ve({},t,{data:void 0,error:e.error,failureCount:t.failureCount+1,isPaused:!1,status:"error"});case"setState":return Ve({},t,e.state);default:return t}}var $F=(function(t){Qp(e,t);function e(r){var i;return i=t.call(this)||this,i.config=r||{},i.mutations=[],i.mutationId=0,i}var n=e.prototype;return n.build=function(i,o,u){var l=new SF({mutationCache:this,mutationId:++this.mutationId,options:i.defaultMutationOptions(o),state:u,defaultOptions:o.mutationKey?i.getMutationDefaults(o.mutationKey):void 0,meta:o.meta});return this.add(l),l},n.add=function(i){this.mutations.push(i),this.notify(i)},n.remove=function(i){this.mutations=this.mutations.filter(function(o){return o!==i}),i.cancel(),this.notify(i)},n.clear=function(){var i=this;er.batch(function(){i.mutations.forEach(function(o){i.remove(o)})})},n.getAll=function(){return this.mutations},n.find=function(i){return typeof i.exact>"u"&&(i.exact=!0),this.mutations.find(function(o){return b4(i,o)})},n.findAll=function(i){return this.mutations.filter(function(o){return b4(i,o)})},n.notify=function(i){var o=this;er.batch(function(){o.listeners.forEach(function(u){u(i)})})},n.onFocus=function(){this.resumePausedMutations()},n.onOnline=function(){this.resumePausedMutations()},n.resumePausedMutations=function(){var i=this.mutations.filter(function(o){return o.state.isPaused});return er.batch(function(){return i.reduce(function(o,u){return o.then(function(){return u.continue().catch(yi)})},Promise.resolve())})},e})(oy);function EF(){return{onFetch:function(e){e.fetchFn=function(){var n,r,i,o,u,l,d=(n=e.fetchOptions)==null||(r=n.meta)==null?void 0:r.refetchPage,h=(i=e.fetchOptions)==null||(o=i.meta)==null?void 0:o.fetchMore,g=h==null?void 0:h.pageParam,y=(h==null?void 0:h.direction)==="forward",w=(h==null?void 0:h.direction)==="backward",v=((u=e.state.data)==null?void 0:u.pages)||[],C=((l=e.state.data)==null?void 0:l.pageParams)||[],E=C9(),$=E==null?void 0:E.signal,O=C,_=!1,R=e.options.queryFn||function(){return Promise.reject("Missing queryFn")},k=function(be,we,B,V){return O=V?[we].concat(O):[].concat(O,[we]),V?[B].concat(be):[].concat(be,[B])},P=function(be,we,B,V){if(_)return Promise.reject("Cancelled");if(typeof B>"u"&&!we&&be.length)return Promise.resolve(be);var H={queryKey:e.queryKey,signal:$,pageParam:B,meta:e.meta},ie=R(H),G=Promise.resolve(ie).then(function(he){return k(be,B,he,V)});if(qw(ie)){var Q=G;Q.cancel=ie.cancel}return G},L;if(!v.length)L=P([]);else if(y){var F=typeof g<"u",q=F?g:C4(e.options,v);L=P(v,F,q)}else if(w){var Y=typeof g<"u",X=Y?g:xF(e.options,v);L=P(v,Y,X,!0)}else(function(){O=[];var te=typeof e.options.getNextPageParam>"u",be=d&&v[0]?d(v[0],0,v):!0;L=be?P([],te,C[0]):Promise.resolve(k([],C[0],v[0]));for(var we=function(H){L=L.then(function(ie){var G=d&&v[H]?d(v[H],H,v):!0;if(G){var Q=te?C[H]:C4(e.options,ie);return P(ie,te,Q)}return Promise.resolve(k(ie,C[H],v[H]))})},B=1;B"u"&&(g.revert=!0);var y=er.batch(function(){return u.queryCache.findAll(d).map(function(w){return w.cancel(g)})});return Promise.all(y).then(yi).catch(yi)},e.invalidateQueries=function(r,i,o){var u,l,d,h=this,g=$f(r,i,o),y=g[0],w=g[1],v=Ve({},y,{active:(u=(l=y.refetchActive)!=null?l:y.active)!=null?u:!0,inactive:(d=y.refetchInactive)!=null?d:!1});return er.batch(function(){return h.queryCache.findAll(y).forEach(function(C){C.invalidate()}),h.refetchQueries(v,w)})},e.refetchQueries=function(r,i,o){var u=this,l=$f(r,i,o),d=l[0],h=l[1],g=er.batch(function(){return u.queryCache.findAll(d).map(function(w){return w.fetch(void 0,Ve({},h,{meta:{refetchPage:d==null?void 0:d.refetchPage}}))})}),y=Promise.all(g).then(yi);return h!=null&&h.throwOnError||(y=y.catch(yi)),y},e.fetchQuery=function(r,i,o){var u=vw(r,i,o),l=this.defaultQueryOptions(u);typeof l.retry>"u"&&(l.retry=!1);var d=this.queryCache.build(this,l);return d.isStaleByTime(l.staleTime)?d.fetch(l):Promise.resolve(d.state.data)},e.prefetchQuery=function(r,i,o){return this.fetchQuery(r,i,o).then(yi).catch(yi)},e.fetchInfiniteQuery=function(r,i,o){var u=vw(r,i,o);return u.behavior=EF(),this.fetchQuery(u)},e.prefetchInfiniteQuery=function(r,i,o){return this.fetchInfiniteQuery(r,i,o).then(yi).catch(yi)},e.cancelMutations=function(){var r=this,i=er.batch(function(){return r.mutationCache.getAll().map(function(o){return o.cancel()})});return Promise.all(i).then(yi).catch(yi)},e.resumePausedMutations=function(){return this.getMutationCache().resumePausedMutations()},e.executeMutation=function(r){return this.mutationCache.build(this,r).execute()},e.getQueryCache=function(){return this.queryCache},e.getMutationCache=function(){return this.mutationCache},e.getDefaultOptions=function(){return this.defaultOptions},e.setDefaultOptions=function(r){this.defaultOptions=r},e.setQueryDefaults=function(r,i){var o=this.queryDefaults.find(function(u){return $p(r)===$p(u.queryKey)});o?o.defaultOptions=i:this.queryDefaults.push({queryKey:r,defaultOptions:i})},e.getQueryDefaults=function(r){var i;return r?(i=this.queryDefaults.find(function(o){return jw(r,o.queryKey)}))==null?void 0:i.defaultOptions:void 0},e.setMutationDefaults=function(r,i){var o=this.mutationDefaults.find(function(u){return $p(r)===$p(u.mutationKey)});o?o.defaultOptions=i:this.mutationDefaults.push({mutationKey:r,defaultOptions:i})},e.getMutationDefaults=function(r){var i;return r?(i=this.mutationDefaults.find(function(o){return jw(r,o.mutationKey)}))==null?void 0:i.defaultOptions:void 0},e.defaultQueryOptions=function(r){if(r!=null&&r._defaulted)return r;var i=Ve({},this.defaultOptions.queries,this.getQueryDefaults(r==null?void 0:r.queryKey),r,{_defaulted:!0});return!i.queryHash&&i.queryKey&&(i.queryHash=yO(i.queryKey,i)),i},e.defaultQueryObserverOptions=function(r){return this.defaultQueryOptions(r)},e.defaultMutationOptions=function(r){return r!=null&&r._defaulted?r:Ve({},this.defaultOptions.mutations,this.getMutationDefaults(r==null?void 0:r.mutationKey),r,{_defaulted:!0})},e.clear=function(){this.queryCache.clear(),this.mutationCache.clear()},t})(),TF=(function(t){Qp(e,t);function e(r,i){var o;return o=t.call(this)||this,o.client=r,o.options=i,o.trackedProps=[],o.selectError=null,o.bindMethods(),o.setOptions(i),o}var n=e.prototype;return n.bindMethods=function(){this.remove=this.remove.bind(this),this.refetch=this.refetch.bind(this)},n.onSubscribe=function(){this.listeners.length===1&&(this.currentQuery.addObserver(this),$4(this.currentQuery,this.options)&&this.executeFetch(),this.updateTimers())},n.onUnsubscribe=function(){this.listeners.length||this.destroy()},n.shouldFetchOnReconnect=function(){return DE(this.currentQuery,this.options,this.options.refetchOnReconnect)},n.shouldFetchOnWindowFocus=function(){return DE(this.currentQuery,this.options,this.options.refetchOnWindowFocus)},n.destroy=function(){this.listeners=[],this.clearTimers(),this.currentQuery.removeObserver(this)},n.setOptions=function(i,o){var u=this.options,l=this.currentQuery;if(this.options=this.client.defaultQueryObserverOptions(i),typeof this.options.enabled<"u"&&typeof this.options.enabled!="boolean")throw new Error("Expected enabled to be a boolean");this.options.queryKey||(this.options.queryKey=u.queryKey),this.updateQuery();var d=this.hasListeners();d&&E4(this.currentQuery,l,this.options,u)&&this.executeFetch(),this.updateResult(o),d&&(this.currentQuery!==l||this.options.enabled!==u.enabled||this.options.staleTime!==u.staleTime)&&this.updateStaleTimeout();var h=this.computeRefetchInterval();d&&(this.currentQuery!==l||this.options.enabled!==u.enabled||h!==this.currentRefetchInterval)&&this.updateRefetchInterval(h)},n.getOptimisticResult=function(i){var o=this.client.defaultQueryObserverOptions(i),u=this.client.getQueryCache().build(this.client,o);return this.createResult(u,o)},n.getCurrentResult=function(){return this.currentResult},n.trackResult=function(i,o){var u=this,l={},d=function(g){u.trackedProps.includes(g)||u.trackedProps.push(g)};return Object.keys(i).forEach(function(h){Object.defineProperty(l,h,{configurable:!1,enumerable:!0,get:function(){return d(h),i[h]}})}),(o.useErrorBoundary||o.suspense)&&d("error"),l},n.getNextResult=function(i){var o=this;return new Promise(function(u,l){var d=o.subscribe(function(h){h.isFetching||(d(),h.isError&&(i!=null&&i.throwOnError)?l(h.error):u(h))})})},n.getCurrentQuery=function(){return this.currentQuery},n.remove=function(){this.client.getQueryCache().remove(this.currentQuery)},n.refetch=function(i){return this.fetch(Ve({},i,{meta:{refetchPage:i==null?void 0:i.refetchPage}}))},n.fetchOptimistic=function(i){var o=this,u=this.client.defaultQueryObserverOptions(i),l=this.client.getQueryCache().build(this.client,u);return l.fetch().then(function(){return o.createResult(l,u)})},n.fetch=function(i){var o=this;return this.executeFetch(i).then(function(){return o.updateResult(),o.currentResult})},n.executeFetch=function(i){this.updateQuery();var o=this.currentQuery.fetch(this.options,i);return i!=null&&i.throwOnError||(o=o.catch(yi)),o},n.updateStaleTimeout=function(){var i=this;if(this.clearStaleTimeout(),!(Lw||this.currentResult.isStale||!ME(this.options.staleTime))){var o=w9(this.currentResult.dataUpdatedAt,this.options.staleTime),u=o+1;this.staleTimeoutId=setTimeout(function(){i.currentResult.isStale||i.updateResult()},u)}},n.computeRefetchInterval=function(){var i;return typeof this.options.refetchInterval=="function"?this.options.refetchInterval(this.currentResult.data,this.currentQuery):(i=this.options.refetchInterval)!=null?i:!1},n.updateRefetchInterval=function(i){var o=this;this.clearRefetchInterval(),this.currentRefetchInterval=i,!(Lw||this.options.enabled===!1||!ME(this.currentRefetchInterval)||this.currentRefetchInterval===0)&&(this.refetchIntervalId=setInterval(function(){(o.options.refetchIntervalInBackground||B0.isFocused())&&o.executeFetch()},this.currentRefetchInterval))},n.updateTimers=function(){this.updateStaleTimeout(),this.updateRefetchInterval(this.computeRefetchInterval())},n.clearTimers=function(){this.clearStaleTimeout(),this.clearRefetchInterval()},n.clearStaleTimeout=function(){this.staleTimeoutId&&(clearTimeout(this.staleTimeoutId),this.staleTimeoutId=void 0)},n.clearRefetchInterval=function(){this.refetchIntervalId&&(clearInterval(this.refetchIntervalId),this.refetchIntervalId=void 0)},n.createResult=function(i,o){var u=this.currentQuery,l=this.options,d=this.currentResult,h=this.currentResultState,g=this.currentResultOptions,y=i!==u,w=y?i.state:this.currentQueryInitialState,v=y?this.currentResult:this.previousQueryResult,C=i.state,E=C.dataUpdatedAt,$=C.error,O=C.errorUpdatedAt,_=C.isFetching,R=C.status,k=!1,P=!1,L;if(o.optimisticResults){var F=this.hasListeners(),q=!F&&$4(i,o),Y=F&&E4(i,u,o,l);(q||Y)&&(_=!0,E||(R="loading"))}if(o.keepPreviousData&&!C.dataUpdateCount&&(v!=null&&v.isSuccess)&&R!=="error")L=v.data,E=v.dataUpdatedAt,R=v.status,k=!0;else if(o.select&&typeof C.data<"u")if(d&&C.data===(h==null?void 0:h.data)&&o.select===this.selectFn)L=this.selectResult;else try{this.selectFn=o.select,L=o.select(C.data),o.structuralSharing!==!1&&(L=Bw(d==null?void 0:d.data,L)),this.selectResult=L,this.selectError=null}catch(me){Hw().error(me),this.selectError=me}else L=C.data;if(typeof o.placeholderData<"u"&&typeof L>"u"&&(R==="loading"||R==="idle")){var X;if(d!=null&&d.isPlaceholderData&&o.placeholderData===(g==null?void 0:g.placeholderData))X=d.data;else if(X=typeof o.placeholderData=="function"?o.placeholderData():o.placeholderData,o.select&&typeof X<"u")try{X=o.select(X),o.structuralSharing!==!1&&(X=Bw(d==null?void 0:d.data,X)),this.selectError=null}catch(me){Hw().error(me),this.selectError=me}typeof X<"u"&&(R="success",L=X,P=!0)}this.selectError&&($=this.selectError,L=this.selectResult,O=Date.now(),R="error");var ue={status:R,isLoading:R==="loading",isSuccess:R==="success",isError:R==="error",isIdle:R==="idle",data:L,dataUpdatedAt:E,error:$,errorUpdatedAt:O,failureCount:C.fetchFailureCount,errorUpdateCount:C.errorUpdateCount,isFetched:C.dataUpdateCount>0||C.errorUpdateCount>0,isFetchedAfterMount:C.dataUpdateCount>w.dataUpdateCount||C.errorUpdateCount>w.errorUpdateCount,isFetching:_,isRefetching:_&&R!=="loading",isLoadingError:R==="error"&&C.dataUpdatedAt===0,isPlaceholderData:P,isPreviousData:k,isRefetchError:R==="error"&&C.dataUpdatedAt!==0,isStale:vO(i,o),refetch:this.refetch,remove:this.remove};return ue},n.shouldNotifyListeners=function(i,o){if(!o)return!0;var u=this.options,l=u.notifyOnChangeProps,d=u.notifyOnChangePropsExclusions;if(!l&&!d||l==="tracked"&&!this.trackedProps.length)return!0;var h=l==="tracked"?this.trackedProps:l;return Object.keys(i).some(function(g){var y=g,w=i[y]!==o[y],v=h==null?void 0:h.some(function(E){return E===g}),C=d==null?void 0:d.some(function(E){return E===g});return w&&!C&&(!h||v)})},n.updateResult=function(i){var o=this.currentResult;if(this.currentResult=this.createResult(this.currentQuery,this.options),this.currentResultState=this.currentQuery.state,this.currentResultOptions=this.options,!dF(this.currentResult,o)){var u={cache:!0};(i==null?void 0:i.listeners)!==!1&&this.shouldNotifyListeners(this.currentResult,o)&&(u.listeners=!0),this.notify(Ve({},u,i))}},n.updateQuery=function(){var i=this.client.getQueryCache().build(this.client,this.options);if(i!==this.currentQuery){var o=this.currentQuery;this.currentQuery=i,this.currentQueryInitialState=i.state,this.previousQueryResult=this.currentResult,this.hasListeners()&&(o==null||o.removeObserver(this),i.addObserver(this))}},n.onQueryUpdate=function(i){var o={};i.type==="success"?o.onSuccess=!0:i.type==="error"&&!ww(i.error)&&(o.onError=!0),this.updateResult(o),this.hasListeners()&&this.updateTimers()},n.notify=function(i){var o=this;er.batch(function(){i.onSuccess?(o.options.onSuccess==null||o.options.onSuccess(o.currentResult.data),o.options.onSettled==null||o.options.onSettled(o.currentResult.data,null)):i.onError&&(o.options.onError==null||o.options.onError(o.currentResult.error),o.options.onSettled==null||o.options.onSettled(void 0,o.currentResult.error)),i.listeners&&o.listeners.forEach(function(u){u(o.currentResult)}),i.cache&&o.client.getQueryCache().notify({query:o.currentQuery,type:"observerResultsUpdated"})})},e})(oy);function _F(t,e){return e.enabled!==!1&&!t.state.dataUpdatedAt&&!(t.state.status==="error"&&e.retryOnMount===!1)}function $4(t,e){return _F(t,e)||t.state.dataUpdatedAt>0&&DE(t,e,e.refetchOnMount)}function DE(t,e,n){if(e.enabled!==!1){var r=typeof n=="function"?n(t):n;return r==="always"||r!==!1&&vO(t,e)}return!1}function E4(t,e,n,r){return n.enabled!==!1&&(t!==e||r.enabled===!1)&&(!n.suspense||t.state.status!=="error")&&vO(t,n)}function vO(t,e){return t.isStaleByTime(e.staleTime)}var AF=(function(t){Qp(e,t);function e(r,i){var o;return o=t.call(this)||this,o.client=r,o.setOptions(i),o.bindMethods(),o.updateResult(),o}var n=e.prototype;return n.bindMethods=function(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)},n.setOptions=function(i){this.options=this.client.defaultMutationOptions(i)},n.onUnsubscribe=function(){if(!this.listeners.length){var i;(i=this.currentMutation)==null||i.removeObserver(this)}},n.onMutationUpdate=function(i){this.updateResult();var o={listeners:!0};i.type==="success"?o.onSuccess=!0:i.type==="error"&&(o.onError=!0),this.notify(o)},n.getCurrentResult=function(){return this.currentResult},n.reset=function(){this.currentMutation=void 0,this.updateResult(),this.notify({listeners:!0})},n.mutate=function(i,o){return this.mutateOptions=o,this.currentMutation&&this.currentMutation.removeObserver(this),this.currentMutation=this.client.getMutationCache().build(this.client,Ve({},this.options,{variables:typeof i<"u"?i:this.options.variables})),this.currentMutation.addObserver(this),this.currentMutation.execute()},n.updateResult=function(){var i=this.currentMutation?this.currentMutation.state:O9(),o=Ve({},i,{isLoading:i.status==="loading",isSuccess:i.status==="success",isError:i.status==="error",isIdle:i.status==="idle",mutate:this.mutate,reset:this.reset});this.currentResult=o},n.notify=function(i){var o=this;er.batch(function(){o.mutateOptions&&(i.onSuccess?(o.mutateOptions.onSuccess==null||o.mutateOptions.onSuccess(o.currentResult.data,o.currentResult.variables,o.currentResult.context),o.mutateOptions.onSettled==null||o.mutateOptions.onSettled(o.currentResult.data,null,o.currentResult.variables,o.currentResult.context)):i.onError&&(o.mutateOptions.onError==null||o.mutateOptions.onError(o.currentResult.error,o.currentResult.variables,o.currentResult.context),o.mutateOptions.onSettled==null||o.mutateOptions.onSettled(void 0,o.currentResult.error,o.currentResult.variables,o.currentResult.context))),i.listeners&&o.listeners.forEach(function(u){u(o.currentResult)})})},e})(oy),xu=b9();const RF=Mf(xu);var PF=RF.unstable_batchedUpdates;er.setBatchNotifyFunction(PF);var IF=console;vF(IF);var x4=Ae.createContext(void 0),T9=Ae.createContext(!1);function _9(t){return t&&typeof window<"u"?(window.ReactQueryClientContext||(window.ReactQueryClientContext=x4),window.ReactQueryClientContext):x4}var kf=function(){var e=Ae.useContext(_9(Ae.useContext(T9)));if(!e)throw new Error("No QueryClient set, use QueryClientProvider to set one");return e},NF=function(e){var n=e.client,r=e.contextSharing,i=r===void 0?!1:r,o=e.children;Ae.useEffect(function(){return n.mount(),function(){n.unmount()}},[n]);var u=_9(i);return Ae.createElement(T9.Provider,{value:i},Ae.createElement(u.Provider,{value:n},o))};function MF(){var t=!1;return{clearReset:function(){t=!1},reset:function(){t=!0},isReset:function(){return t}}}var kF=Ae.createContext(MF()),DF=function(){return Ae.useContext(kF)};function A9(t,e,n){return typeof e=="function"?e.apply(void 0,n):typeof e=="boolean"?e:!!t}function Fr(t,e,n){var r=Ae.useRef(!1),i=Ae.useState(0),o=i[1],u=lF(t,e),l=kf(),d=Ae.useRef();d.current?d.current.setOptions(u):d.current=new AF(l,u);var h=d.current.getCurrentResult();Ae.useEffect(function(){r.current=!0;var y=d.current.subscribe(er.batchCalls(function(){r.current&&o(function(w){return w+1})}));return function(){r.current=!1,y()}},[]);var g=Ae.useCallback(function(y,w){d.current.mutate(y,w).catch(yi)},[]);if(h.error&&A9(void 0,d.current.options.useErrorBoundary,[h.error]))throw h.error;return Ve({},h,{mutate:g,mutateAsync:h.mutate})}function FF(t,e){var n=Ae.useRef(!1),r=Ae.useState(0),i=r[1],o=kf(),u=DF(),l=o.defaultQueryObserverOptions(t);l.optimisticResults=!0,l.onError&&(l.onError=er.batchCalls(l.onError)),l.onSuccess&&(l.onSuccess=er.batchCalls(l.onSuccess)),l.onSettled&&(l.onSettled=er.batchCalls(l.onSettled)),l.suspense&&(typeof l.staleTime!="number"&&(l.staleTime=1e3),l.cacheTime===0&&(l.cacheTime=1)),(l.suspense||l.useErrorBoundary)&&(u.isReset()||(l.retryOnMount=!1));var d=Ae.useState(function(){return new e(o,l)}),h=d[0],g=h.getOptimisticResult(l);if(Ae.useEffect(function(){n.current=!0,u.clearReset();var y=h.subscribe(er.batchCalls(function(){n.current&&i(function(w){return w+1})}));return h.updateResult(),function(){n.current=!1,y()}},[u,h]),Ae.useEffect(function(){h.setOptions(l,{listeners:!1})},[l,h]),l.suspense&&g.isLoading)throw h.fetchOptimistic(l).then(function(y){var w=y.data;l.onSuccess==null||l.onSuccess(w),l.onSettled==null||l.onSettled(w,null)}).catch(function(y){u.clearReset(),l.onError==null||l.onError(y),l.onSettled==null||l.onSettled(void 0,y)});if(g.isError&&!u.isReset()&&!g.isFetching&&A9(l.suspense,l.useErrorBoundary,[g.error,h.getCurrentQuery()]))throw g.error;return l.notifyOnChangeProps==="tracked"&&(g=h.trackResult(g,l)),g}function Go(t,e,n){var r=vw(t,e,n);return FF(r,TF)}var k0={exports:{}};/** +`+c.stack}}function H(a){var s=a,c=a;if(a.alternate)for(;s.return;)s=s.return;else{a=s;do s=a,(s.flags&4098)!==0&&(c=s.return),a=s.return;while(a)}return s.tag===3?c:null}function ie(a){if(a.tag===13){var s=a.memoizedState;if(s===null&&(a=a.alternate,a!==null&&(s=a.memoizedState)),s!==null)return s.dehydrated}return null}function G(a){if(H(a)!==a)throw Error(r(188))}function X(a){var s=a.alternate;if(!s){if(s=H(a),s===null)throw Error(r(188));return s!==a?null:a}for(var c=a,m=s;;){var v=c.return;if(v===null)break;var x=v.alternate;if(x===null){if(m=v.return,m!==null){c=m;continue}break}if(v.child===x.child){for(x=v.child;x;){if(x===c)return G(v),a;if(x===m)return G(v),s;x=x.sibling}throw Error(r(188))}if(c.return!==m.return)c=v,m=x;else{for(var D=!1,W=v.child;W;){if(W===c){D=!0,c=v,m=x;break}if(W===m){D=!0,m=v,c=x;break}W=W.sibling}if(!D){for(W=x.child;W;){if(W===c){D=!0,c=x,m=v;break}if(W===m){D=!0,m=x,c=v;break}W=W.sibling}if(!D)throw Error(r(189))}}if(c.alternate!==m)throw Error(r(190))}if(c.tag!==3)throw Error(r(188));return c.stateNode.current===c?a:s}function fe(a){var s=a.tag;if(s===5||s===26||s===27||s===6)return a;for(a=a.child;a!==null;){if(s=fe(a),s!==null)return s;a=a.sibling}return null}var $e=Array.isArray,Ce=n.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,je={pending:!1,data:null,method:null,action:null},Pe=[],tt=-1;function ke(a){return{current:a}}function Ke(a){0>tt||(a.current=Pe[tt],Pe[tt]=null,tt--)}function He(a,s){tt++,Pe[tt]=a.current,a.current=s}var ut=ke(null),pt=ke(null),bt=ke(null),gt=ke(null);function Ut(a,s){switch(He(bt,s),He(pt,a),He(ut,null),a=s.nodeType,a){case 9:case 11:s=(s=s.documentElement)&&(s=s.namespaceURI)?Q2(s):0;break;default:if(a=a===8?s.parentNode:s,s=a.tagName,a=a.namespaceURI)a=Q2(a),s=X2(a,s);else switch(s){case"svg":s=1;break;case"math":s=2;break;default:s=0}}Ke(ut),He(ut,s)}function Gt(){Ke(ut),Ke(pt),Ke(bt)}function Tt(a){a.memoizedState!==null&&He(gt,a);var s=ut.current,c=X2(s,a.type);s!==c&&(He(pt,a),He(ut,c))}function en(a){pt.current===a&&(Ke(ut),Ke(pt)),gt.current===a&&(Ke(gt),ih._currentValue=je)}var xn=Object.prototype.hasOwnProperty,Dt=t.unstable_scheduleCallback,Pt=t.unstable_cancelCallback,pe=t.unstable_shouldYield,ze=t.unstable_requestPaint,Ge=t.unstable_now,Je=t.unstable_getCurrentPriorityLevel,ht=t.unstable_ImmediatePriority,B=t.unstable_UserBlockingPriority,A=t.unstable_NormalPriority,M=t.unstable_LowPriority,J=t.unstable_IdlePriority,re=t.log,ge=t.unstable_setDisableYieldValue,Ee=null,rt=null;function Wt(a){if(rt&&typeof rt.onCommitFiberRoot=="function")try{rt.onCommitFiberRoot(Ee,a,void 0,(a.current.flags&128)===128)}catch{}}function ae(a){if(typeof re=="function"&&ge(a),rt&&typeof rt.setStrictMode=="function")try{rt.setStrictMode(Ee,a)}catch{}}var ce=Math.clz32?Math.clz32:ln,nt=Math.log,Ht=Math.LN2;function ln(a){return a>>>=0,a===0?32:31-(nt(a)/Ht|0)|0}var wt=128,jr=4194304;function tn(a){var s=a&42;if(s!==0)return s;switch(a&-a){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return a&4194176;case 4194304:case 8388608:case 16777216:case 33554432:return a&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return a}}function nr(a,s){var c=a.pendingLanes;if(c===0)return 0;var m=0,v=a.suspendedLanes,x=a.pingedLanes,D=a.warmLanes;a=a.finishedLanes!==0;var W=c&134217727;return W!==0?(c=W&~v,c!==0?m=tn(c):(x&=W,x!==0?m=tn(x):a||(D=W&~D,D!==0&&(m=tn(D))))):(W=c&~v,W!==0?m=tn(W):x!==0?m=tn(x):a||(D=c&~D,D!==0&&(m=tn(D)))),m===0?0:s!==0&&s!==m&&(s&v)===0&&(v=m&-m,D=s&-s,v>=D||v===32&&(D&4194176)!==0)?s:m}function On(a,s){return(a.pendingLanes&~(a.suspendedLanes&~a.pingedLanes)&s)===0}function ji(a,s){switch(a){case 1:case 2:case 4:case 8:return s+250;case 16:case 32:case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return s+5e3;case 4194304:case 8388608:case 16777216:case 33554432:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function ga(){var a=wt;return wt<<=1,(wt&4194176)===0&&(wt=128),a}function Pr(){var a=jr;return jr<<=1,(jr&62914560)===0&&(jr=4194304),a}function Bs(a){for(var s=[],c=0;31>c;c++)s.push(a);return s}function co(a,s){a.pendingLanes|=s,s!==268435456&&(a.suspendedLanes=0,a.pingedLanes=0,a.warmLanes=0)}function js(a,s,c,m,v,x){var D=a.pendingLanes;a.pendingLanes=c,a.suspendedLanes=0,a.pingedLanes=0,a.warmLanes=0,a.expiredLanes&=c,a.entangledLanes&=c,a.errorRecoveryDisabledLanes&=c,a.shellSuspendCounter=0;var W=a.entanglements,Z=a.expirationTimes,se=a.hiddenUpdates;for(c=D&~c;0"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Wl=RegExp("^[:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD][:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$"),Rm={},cd={};function jy(a){return xn.call(cd,a)?!0:xn.call(Rm,a)?!1:Wl.test(a)?cd[a]=!0:(Rm[a]=!0,!1)}function Fu(a,s,c){if(jy(s))if(c===null)a.removeAttribute(s);else{switch(typeof c){case"undefined":case"function":case"symbol":a.removeAttribute(s);return;case"boolean":var m=s.toLowerCase().slice(0,5);if(m!=="data-"&&m!=="aria-"){a.removeAttribute(s);return}}a.setAttribute(s,""+c)}}function Ai(a,s,c){if(c===null)a.removeAttribute(s);else{switch(typeof c){case"undefined":case"function":case"symbol":case"boolean":a.removeAttribute(s);return}a.setAttribute(s,""+c)}}function ya(a,s,c,m){if(m===null)a.removeAttribute(c);else{switch(typeof m){case"undefined":case"function":case"symbol":case"boolean":a.removeAttribute(c);return}a.setAttributeNS(s,c,""+m)}}function ei(a){switch(typeof a){case"bigint":case"boolean":case"number":case"string":case"undefined":return a;case"object":return a;default:return""}}function Kl(a){var s=a.type;return(a=a.nodeName)&&a.toLowerCase()==="input"&&(s==="checkbox"||s==="radio")}function zs(a){var s=Kl(a)?"checked":"value",c=Object.getOwnPropertyDescriptor(a.constructor.prototype,s),m=""+a[s];if(!a.hasOwnProperty(s)&&typeof c<"u"&&typeof c.get=="function"&&typeof c.set=="function"){var v=c.get,x=c.set;return Object.defineProperty(a,s,{configurable:!0,get:function(){return v.call(this)},set:function(D){m=""+D,x.call(this,D)}}),Object.defineProperty(a,s,{enumerable:c.enumerable}),{getValue:function(){return m},setValue:function(D){m=""+D},stopTracking:function(){a._valueTracker=null,delete a[s]}}}}function po(a){a._valueTracker||(a._valueTracker=zs(a))}function mo(a){if(!a)return!1;var s=a._valueTracker;if(!s)return!0;var c=s.getValue(),m="";return a&&(m=Kl(a)?a.checked?"true":"false":a.value),a=m,a!==c?(s.setValue(a),!0):!1}function Lu(a){if(a=a||(typeof document<"u"?document:void 0),typeof a>"u")return null;try{return a.activeElement||a.body}catch{return a.body}}var qy=/[\n"\\]/g;function ti(a){return a.replace(qy,function(s){return"\\"+s.charCodeAt(0).toString(16)+" "})}function Yl(a,s,c,m,v,x,D,W){a.name="",D!=null&&typeof D!="function"&&typeof D!="symbol"&&typeof D!="boolean"?a.type=D:a.removeAttribute("type"),s!=null?D==="number"?(s===0&&a.value===""||a.value!=s)&&(a.value=""+ei(s)):a.value!==""+ei(s)&&(a.value=""+ei(s)):D!=="submit"&&D!=="reset"||a.removeAttribute("value"),s!=null?fd(a,D,ei(s)):c!=null?fd(a,D,ei(c)):m!=null&&a.removeAttribute("value"),v==null&&x!=null&&(a.defaultChecked=!!x),v!=null&&(a.checked=v&&typeof v!="function"&&typeof v!="symbol"),W!=null&&typeof W!="function"&&typeof W!="symbol"&&typeof W!="boolean"?a.name=""+ei(W):a.removeAttribute("name")}function Jl(a,s,c,m,v,x,D,W){if(x!=null&&typeof x!="function"&&typeof x!="symbol"&&typeof x!="boolean"&&(a.type=x),s!=null||c!=null){if(!(x!=="submit"&&x!=="reset"||s!=null))return;c=c!=null?""+ei(c):"",s=s!=null?""+ei(s):c,W||s===a.value||(a.value=s),a.defaultValue=s}m=m??v,m=typeof m!="function"&&typeof m!="symbol"&&!!m,a.checked=W?a.checked:!!m,a.defaultChecked=!!m,D!=null&&typeof D!="function"&&typeof D!="symbol"&&typeof D!="boolean"&&(a.name=D)}function fd(a,s,c){s==="number"&&Lu(a.ownerDocument)===a||a.defaultValue===""+c||(a.defaultValue=""+c)}function es(a,s,c,m){if(a=a.options,s){s={};for(var v=0;v=oc),Um=" ",Wy=!1;function Nb(a,s){switch(a){case"keyup":return ac.indexOf(s.keyCode)!==-1;case"keydown":return s.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Bm(a){return a=a.detail,typeof a=="object"&&"data"in a?a.data:null}var Ks=!1;function U3(a,s){switch(a){case"compositionend":return Bm(s);case"keypress":return s.which!==32?null:(Wy=!0,Um);case"textInput":return a=s.data,a===Um&&Wy?null:a;default:return null}}function Mb(a,s){if(Ks)return a==="compositionend"||!Gy&&Nb(a,s)?(a=Nm(),go=Ws=Fa=null,Ks=!1,a):null;switch(a){case"paste":return null;case"keypress":if(!(s.ctrlKey||s.altKey||s.metaKey)||s.ctrlKey&&s.altKey){if(s.char&&1=s)return{node:c,offset:s-a};a=m}e:{for(;c;){if(c.nextSibling){c=c.nextSibling;break e}c=c.parentNode}c=void 0}c=ba(c)}}function Bb(a,s){return a&&s?a===s?!0:a&&a.nodeType===3?!1:s&&s.nodeType===3?Bb(a,s.parentNode):"contains"in a?a.contains(s):a.compareDocumentPosition?!!(a.compareDocumentPosition(s)&16):!1:!1}function jb(a){a=a!=null&&a.ownerDocument!=null&&a.ownerDocument.defaultView!=null?a.ownerDocument.defaultView:window;for(var s=Lu(a.document);s instanceof a.HTMLIFrameElement;){try{var c=typeof s.contentWindow.location.href=="string"}catch{c=!1}if(c)a=s.contentWindow;else break;s=Lu(a.document)}return s}function Jy(a){var s=a&&a.nodeName&&a.nodeName.toLowerCase();return s&&(s==="input"&&(a.type==="text"||a.type==="search"||a.type==="tel"||a.type==="url"||a.type==="password")||s==="textarea"||a.contentEditable==="true")}function H3(a,s){var c=jb(s);s=a.focusedElem;var m=a.selectionRange;if(c!==s&&s&&s.ownerDocument&&Bb(s.ownerDocument.documentElement,s)){if(m!==null&&Jy(s)){if(a=m.start,c=m.end,c===void 0&&(c=a),"selectionStart"in s)s.selectionStart=a,s.selectionEnd=Math.min(c,s.value.length);else if(c=(a=s.ownerDocument||document)&&a.defaultView||window,c.getSelection){c=c.getSelection();var v=s.textContent.length,x=Math.min(m.start,v);m=m.end===void 0?x:Math.min(m.end,v),!c.extend&&x>m&&(v=m,m=x,x=v),v=Yy(s,x);var D=Yy(s,m);v&&D&&(c.rangeCount!==1||c.anchorNode!==v.node||c.anchorOffset!==v.offset||c.focusNode!==D.node||c.focusOffset!==D.offset)&&(a=a.createRange(),a.setStart(v.node,v.offset),c.removeAllRanges(),x>m?(c.addRange(a),c.extend(D.node,D.offset)):(a.setEnd(D.node,D.offset),c.addRange(a)))}}for(a=[],c=s;c=c.parentNode;)c.nodeType===1&&a.push({element:c,left:c.scrollLeft,top:c.scrollTop});for(typeof s.focus=="function"&&s.focus(),s=0;s=document.documentMode,La=null,le=null,xe=null,we=!1;function Xe(a,s,c){var m=c.window===c?c.document:c.nodeType===9?c:c.ownerDocument;we||La==null||La!==Lu(m)||(m=La,"selectionStart"in m&&Jy(m)?m={start:m.selectionStart,end:m.selectionEnd}:(m=(m.ownerDocument&&m.ownerDocument.defaultView||window).getSelection(),m={anchorNode:m.anchorNode,anchorOffset:m.anchorOffset,focusNode:m.focusNode,focusOffset:m.focusOffset}),xe&&bo(xe,m)||(xe=m,m=Tg(le,"onSelect"),0>=D,v-=D,$a=1<<32-ce(s)+v|c<vt?(un=st,st=null):un=st.sibling;var Zt=ve(he,st,ye[vt],Ne);if(Zt===null){st===null&&(st=un);break}a&&st&&Zt.alternate===null&&s(he,st),oe=x(Zt,oe,vt),Bt===null?et=Zt:Bt.sibling=Zt,Bt=Zt,st=un}if(vt===ye.length)return c(he,st),$t&&ss(he,vt),et;if(st===null){for(;vtvt?(un=st,st=null):un=st.sibling;var wu=ve(he,st,Zt.value,Ne);if(wu===null){st===null&&(st=un);break}a&&st&&wu.alternate===null&&s(he,st),oe=x(wu,oe,vt),Bt===null?et=wu:Bt.sibling=wu,Bt=wu,st=un}if(Zt.done)return c(he,st),$t&&ss(he,vt),et;if(st===null){for(;!Zt.done;vt++,Zt=ye.next())Zt=Le(he,Zt.value,Ne),Zt!==null&&(oe=x(Zt,oe,vt),Bt===null?et=Zt:Bt.sibling=Zt,Bt=Zt);return $t&&ss(he,vt),et}for(st=m(st);!Zt.done;vt++,Zt=ye.next())Zt=Oe(st,he,vt,Zt.value,Ne),Zt!==null&&(a&&Zt.alternate!==null&&st.delete(Zt.key===null?vt:Zt.key),oe=x(Zt,oe,vt),Bt===null?et=Zt:Bt.sibling=Zt,Bt=Zt);return a&&st.forEach(function(MC){return s(he,MC)}),$t&&ss(he,vt),et}function Vn(he,oe,ye,Ne){if(typeof ye=="object"&&ye!==null&&ye.type===d&&ye.key===null&&(ye=ye.props.children),typeof ye=="object"&&ye!==null){switch(ye.$$typeof){case u:e:{for(var et=ye.key;oe!==null;){if(oe.key===et){if(et=ye.type,et===d){if(oe.tag===7){c(he,oe.sibling),Ne=v(oe,ye.props.children),Ne.return=he,he=Ne;break e}}else if(oe.elementType===et||typeof et=="object"&&et!==null&&et.$$typeof===_&&Cd(et)===oe.type){c(he,oe.sibling),Ne=v(oe,ye.props),z(Ne,ye),Ne.return=he,he=Ne;break e}c(he,oe);break}else s(he,oe);oe=oe.sibling}ye.type===d?(Ne=nl(ye.props.children,he.mode,Ne,ye.key),Ne.return=he,he=Ne):(Ne=Vd(ye.type,ye.key,ye.props,null,he.mode,Ne),z(Ne,ye),Ne.return=he,he=Ne)}return D(he);case l:e:{for(et=ye.key;oe!==null;){if(oe.key===et)if(oe.tag===4&&oe.stateNode.containerInfo===ye.containerInfo&&oe.stateNode.implementation===ye.implementation){c(he,oe.sibling),Ne=v(oe,ye.children||[]),Ne.return=he,he=Ne;break e}else{c(he,oe);break}else s(he,oe);oe=oe.sibling}Ne=zv(ye,he.mode,Ne),Ne.return=he,he=Ne}return D(he);case _:return et=ye._init,ye=et(ye._payload),Vn(he,oe,ye,Ne)}if($e(ye))return at(he,oe,ye,Ne);if(L(ye)){if(et=L(ye),typeof et!="function")throw Error(r(150));return ye=et.call(ye),Et(he,oe,ye,Ne)}if(typeof ye.then=="function")return Vn(he,oe,Sd(ye),Ne);if(ye.$$typeof===b)return Vn(he,oe,gg(he,ye),Ne);ds(he,ye)}return typeof ye=="string"&&ye!==""||typeof ye=="number"||typeof ye=="bigint"?(ye=""+ye,oe!==null&&oe.tag===6?(c(he,oe.sibling),Ne=v(oe,ye),Ne.return=he,he=Ne):(c(he,oe),Ne=Hv(ye,he.mode,Ne),Ne.return=he,he=Ne),D(he)):c(he,oe)}return function(he,oe,ye,Ne){try{fs=0;var et=Vn(he,oe,ye,Ne);return cs=null,et}catch(st){if(st===ls)throw st;var Bt=ia(29,st,null,he.mode);return Bt.lanes=Ne,Bt.return=he,Bt}finally{}}}var At=Qi(!0),Kb=Qi(!1),hc=ke(null),Qm=ke(0);function Xs(a,s){a=$s,He(Qm,a),He(hc,s),$s=a|s.baseLanes}function tv(){He(Qm,$s),He(hc,hc.current)}function nv(){$s=Qm.current,Ke(hc),Ke(Qm)}var xa=ke(null),xo=null;function Zs(a){var s=a.alternate;He(gr,gr.current&1),He(xa,a),xo===null&&(s===null||hc.current!==null||s.memoizedState!==null)&&(xo=a)}function Oo(a){if(a.tag===22){if(He(gr,gr.current),He(xa,a),xo===null){var s=a.alternate;s!==null&&s.memoizedState!==null&&(xo=a)}}else eu()}function eu(){He(gr,gr.current),He(xa,xa.current)}function hs(a){Ke(xa),xo===a&&(xo=null),Ke(gr)}var gr=ke(0);function Xm(a){for(var s=a;s!==null;){if(s.tag===13){var c=s.memoizedState;if(c!==null&&(c=c.dehydrated,c===null||c.data==="$?"||c.data==="$!"))return s}else if(s.tag===19&&s.memoizedProps.revealOrder!==void 0){if((s.flags&128)!==0)return s}else if(s.child!==null){s.child.return=s,s=s.child;continue}if(s===a)break;for(;s.sibling===null;){if(s.return===null||s.return===a)return null;s=s.return}s.sibling.return=s.return,s=s.sibling}return null}var G3=typeof AbortController<"u"?AbortController:function(){var a=[],s=this.signal={aborted:!1,addEventListener:function(c,m){a.push(m)}};this.abort=function(){s.aborted=!0,a.forEach(function(c){return c()})}},ps=t.unstable_scheduleCallback,W3=t.unstable_NormalPriority,yr={$$typeof:b,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function rv(){return{controller:new G3,data:new Map,refCount:0}}function $d(a){a.refCount--,a.refCount===0&&ps(W3,function(){a.controller.abort()})}var Ed=null,ms=0,pc=0,mc=null;function ja(a,s){if(Ed===null){var c=Ed=[];ms=0,pc=s0(),mc={status:"pending",value:void 0,then:function(m){c.push(m)}}}return ms++,s.then(Yb,Yb),s}function Yb(){if(--ms===0&&Ed!==null){mc!==null&&(mc.status="fulfilled");var a=Ed;Ed=null,pc=0,mc=null;for(var s=0;sx?x:8;var D=Y.T,W={};Y.T=W,$c(a,!1,s,c);try{var Z=v(),se=Y.S;if(se!==null&&se(W,Z),Z!==null&&typeof Z=="object"&&typeof Z.then=="function"){var _e=K3(Z,m);Pd(a,s,_e,oa(a))}else Pd(a,s,m,oa(a))}catch(Le){Pd(a,s,{then:function(){},status:"rejected",reason:Le},oa())}finally{Ce.p=x,Y.T=D}}function J3(){}function Rd(a,s,c,m){if(a.tag!==5)throw Error(r(476));var v=Mt(a).queue;sg(a,v,s,je,c===null?J3:function(){return l2(a),c(m)})}function Mt(a){var s=a.memoizedState;if(s!==null)return s;s={memoizedState:je,baseState:je,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:qa,lastRenderedState:je},next:null};var c={};return s.next={memoizedState:c,baseState:c,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:qa,lastRenderedState:c},next:null},a.memoizedState=s,a=a.alternate,a!==null&&(a.memoizedState=s),s}function l2(a){var s=Mt(a).next.queue;Pd(a,s,{},oa())}function bv(){return Wr(ih)}function Cc(){return ir().memoizedState}function wv(){return ir().memoizedState}function Q3(a){for(var s=a.return;s!==null;){switch(s.tag){case 24:case 3:var c=oa();a=Wa(c);var m=ea(s,a,c);m!==null&&(Yr(m,s,c),lt(m,s,c)),s={cache:rv()},a.payload=s;return}s=s.return}}function X3(a,s,c){var m=oa();c={lane:m,revertLane:0,action:c,hasEagerState:!1,eagerState:null,next:null},Ec(a)?Sv(s,c):(c=wo(a,s,c,m),c!==null&&(Yr(c,a,m),Cv(c,s,m)))}function Zi(a,s,c){var m=oa();Pd(a,s,c,m)}function Pd(a,s,c,m){var v={lane:m,revertLane:0,action:c,hasEagerState:!1,eagerState:null,next:null};if(Ec(a))Sv(s,v);else{var x=a.alternate;if(a.lanes===0&&(x===null||x.lanes===0)&&(x=s.lastRenderedReducer,x!==null))try{var D=s.lastRenderedState,W=x(D,c);if(v.hasEagerState=!0,v.eagerState=W,Yi(W,D))return ju(a,s,v,0),Cn===null&&Gm(),!1}catch{}finally{}if(c=wo(a,s,v,m),c!==null)return Yr(c,a,m),Cv(c,s,m),!0}return!1}function $c(a,s,c,m){if(m={lane:2,revertLane:s0(),action:m,hasEagerState:!1,eagerState:null,next:null},Ec(a)){if(s)throw Error(r(479))}else s=wo(a,c,m,2),s!==null&&Yr(s,a,2)}function Ec(a){var s=a.alternate;return a===Ft||s!==null&&s===Ft}function Sv(a,s){gc=Ju=!0;var c=a.pending;c===null?s.next=s:(s.next=c.next,c.next=s),a.pending=s}function Cv(a,s,c){if((c&4194176)!==0){var m=s.lanes;m&=a.pendingLanes,c|=m,s.lanes=c,Zr(a,c)}}var Yn={readContext:Wr,use:Od,useCallback:an,useContext:an,useEffect:an,useImperativeHandle:an,useLayoutEffect:an,useInsertionEffect:an,useMemo:an,useReducer:an,useRef:an,useState:an,useDebugValue:an,useDeferredValue:an,useTransition:an,useSyncExternalStore:an,useId:an};Yn.useCacheRefresh=an,Yn.useMemoCache=an,Yn.useHostTransitionStatus=an,Yn.useFormState=an,Yn.useActionState=an,Yn.useOptimistic=an;var Pi={readContext:Wr,use:Od,useCallback:function(a,s){return Ri().memoizedState=[a,s===void 0?null:s],a},useContext:Wr,useEffect:hv,useImperativeHandle:function(a,s,c){c=c!=null?c.concat([a]):null,Sc(4194308,4,pv.bind(null,s,a),c)},useLayoutEffect:function(a,s){return Sc(4194308,4,a,s)},useInsertionEffect:function(a,s){Sc(4,2,a,s)},useMemo:function(a,s){var c=Ri();s=s===void 0?null:s;var m=a();if(nu){ae(!0);try{a()}finally{ae(!1)}}return c.memoizedState=[m,s],m},useReducer:function(a,s,c){var m=Ri();if(c!==void 0){var v=c(s);if(nu){ae(!0);try{c(s)}finally{ae(!1)}}}else v=s;return m.memoizedState=m.baseState=v,a={pending:null,lanes:0,dispatch:null,lastRenderedReducer:a,lastRenderedState:v},m.queue=a,a=a.dispatch=X3.bind(null,Ft,a),[m.memoizedState,a]},useRef:function(a){var s=Ri();return a={current:a},s.memoizedState=a},useState:function(a){a=lv(a);var s=a.queue,c=Zi.bind(null,Ft,s);return s.dispatch=c,[a.memoizedState,c]},useDebugValue:gv,useDeferredValue:function(a,s){var c=Ri();return Ad(c,a,s)},useTransition:function(){var a=lv(!1);return a=sg.bind(null,Ft,a.queue,!0,!1),Ri().memoizedState=a,[!1,a]},useSyncExternalStore:function(a,s,c){var m=Ft,v=Ri();if($t){if(c===void 0)throw Error(r(407));c=c()}else{if(c=s(),Cn===null)throw Error(r(349));(Xt&60)!==0||rg(m,s,c)}v.memoizedState=c;var x={value:c,getSnapshot:s};return v.queue=x,hv(Xb.bind(null,m,x,a),[a]),m.flags|=2048,au(9,Qb.bind(null,m,x,c,s),{destroy:void 0},null),c},useId:function(){var a=Ri(),s=Cn.identifierPrefix;if($t){var c=Ea,m=$a;c=(m&~(1<<32-ce(m)-1)).toString(32)+c,s=":"+s+"R"+c,c=Zm++,0 title"))),kr(x,m,c),x[Mn]=a,kn(x),m=x;break e;case"link":var D=iw("link","href",v).get(m+(c.href||""));if(D){for(var W=0;W<\/script>",a=a.removeChild(a.firstChild);break;case"select":a=typeof m.is=="string"?v.createElement("select",{is:m.is}):v.createElement("select"),m.multiple?a.multiple=!0:m.size&&(a.size=m.size);break;default:a=typeof m.is=="string"?v.createElement(c,{is:m.is}):v.createElement(c)}}a[Mn]=s,a[An]=m;e:for(v=s.child;v!==null;){if(v.tag===5||v.tag===6)a.appendChild(v.stateNode);else if(v.tag!==4&&v.tag!==27&&v.child!==null){v.child.return=v,v=v.child;continue}if(v===s)break e;for(;v.sibling===null;){if(v.return===null||v.return===s)break e;v=v.return}v.sibling.return=v.return,v=v.sibling}s.stateNode=a;e:switch(kr(a,c,m),c){case"button":case"input":case"select":case"textarea":a=!!m.autoFocus;break e;case"img":a=!0;break e;default:a=!1}a&&Ss(s)}}return qn(s),s.flags&=-16777217,null;case 6:if(a&&s.stateNode!=null)a.memoizedProps!==m&&Ss(s);else{if(typeof m!="string"&&s.stateNode===null)throw Error(r(166));if(a=bt.current,Ku(s)){if(a=s.stateNode,c=s.memoizedProps,m=null,v=ii,v!==null)switch(v.tag){case 27:case 5:m=v.memoizedProps}a[Mn]=s,a=!!(a.nodeValue===c||m!==null&&m.suppressHydrationWarning===!0||Ot(a.nodeValue,c)),a||Wu(s)}else a=Ag(a).createTextNode(m),a[Mn]=s,s.stateNode=a}return qn(s),null;case 13:if(m=s.memoizedState,a===null||a.memoizedState!==null&&a.memoizedState.dehydrated!==null){if(v=Ku(s),m!==null&&m.dehydrated!==null){if(a===null){if(!v)throw Error(r(318));if(v=s.memoizedState,v=v!==null?v.dehydrated:null,!v)throw Error(r(317));v[Mn]=s}else Eo(),(s.flags&128)===0&&(s.memoizedState=null),s.flags|=4;qn(s),v=!1}else Ba!==null&&(Lc(Ba),Ba=null),v=!0;if(!v)return s.flags&256?(hs(s),s):(hs(s),null)}if(hs(s),(s.flags&128)!==0)return s.lanes=c,s;if(c=m!==null,a=a!==null&&a.memoizedState!==null,c){m=s.child,v=null,m.alternate!==null&&m.alternate.memoizedState!==null&&m.alternate.memoizedState.cachePool!==null&&(v=m.alternate.memoizedState.cachePool.pool);var x=null;m.memoizedState!==null&&m.memoizedState.cachePool!==null&&(x=m.memoizedState.cachePool.pool),x!==v&&(m.flags|=2048)}return c!==a&&c&&(s.child.flags|=8192),si(s,s.updateQueue),qn(s),null;case 4:return Gt(),a===null&&d0(s.stateNode.containerInfo),qn(s),null;case 10:return _o(s.type),qn(s),null;case 19:if(Ke(gr),v=s.memoizedState,v===null)return qn(s),null;if(m=(s.flags&128)!==0,x=v.rendering,x===null)if(m)Gd(v,!1);else{if(Qn!==0||a!==null&&(a.flags&128)!==0)for(a=s.child;a!==null;){if(x=Xm(a),x!==null){for(s.flags|=128,Gd(v,!1),a=x.updateQueue,s.updateQueue=a,si(s,a),s.subtreeFlags=0,a=c,c=s.child;c!==null;)_2(c,a),c=c.sibling;return He(gr,gr.current&1|2),s.child}a=a.sibling}v.tail!==null&&Ge()>Sg&&(s.flags|=128,m=!0,Gd(v,!1),s.lanes=4194304)}else{if(!m)if(a=Xm(x),a!==null){if(s.flags|=128,m=!0,a=a.updateQueue,s.updateQueue=a,si(s,a),Gd(v,!0),v.tail===null&&v.tailMode==="hidden"&&!x.alternate&&!$t)return qn(s),null}else 2*Ge()-v.renderingStartTime>Sg&&c!==536870912&&(s.flags|=128,m=!0,Gd(v,!1),s.lanes=4194304);v.isBackwards?(x.sibling=s.child,s.child=x):(a=v.last,a!==null?a.sibling=x:s.child=x,v.last=x)}return v.tail!==null?(s=v.tail,v.rendering=s,v.tail=s.sibling,v.renderingStartTime=Ge(),s.sibling=null,a=gr.current,He(gr,m?a&1|2:a&1),s):(qn(s),null);case 22:case 23:return hs(s),nv(),m=s.memoizedState!==null,a!==null?a.memoizedState!==null!==m&&(s.flags|=8192):m&&(s.flags|=8192),m?(c&536870912)!==0&&(s.flags&128)===0&&(qn(s),s.subtreeFlags&6&&(s.flags|=8192)):qn(s),c=s.updateQueue,c!==null&&si(s,c.retryQueue),c=null,a!==null&&a.memoizedState!==null&&a.memoizedState.cachePool!==null&&(c=a.memoizedState.cachePool.pool),m=null,s.memoizedState!==null&&s.memoizedState.cachePool!==null&&(m=s.memoizedState.cachePool.pool),m!==c&&(s.flags|=2048),a!==null&&Ke(Yu),null;case 24:return c=null,a!==null&&(c=a.memoizedState.cache),s.memoizedState.cache!==c&&(s.flags|=2048),_o(yr),qn(s),null;case 25:return null}throw Error(r(156,s.tag))}function P2(a,s){switch(ev(s),s.tag){case 1:return a=s.flags,a&65536?(s.flags=a&-65537|128,s):null;case 3:return _o(yr),Gt(),a=s.flags,(a&65536)!==0&&(a&128)===0?(s.flags=a&-65537|128,s):null;case 26:case 27:case 5:return en(s),null;case 13:if(hs(s),a=s.memoizedState,a!==null&&a.dehydrated!==null){if(s.alternate===null)throw Error(r(340));Eo()}return a=s.flags,a&65536?(s.flags=a&-65537|128,s):null;case 19:return Ke(gr),null;case 4:return Gt(),null;case 10:return _o(s.type),null;case 22:case 23:return hs(s),nv(),a!==null&&Ke(Yu),a=s.flags,a&65536?(s.flags=a&-65537|128,s):null;case 24:return _o(yr),null;case 25:return null;default:return null}}function I2(a,s){switch(ev(s),s.tag){case 3:_o(yr),Gt();break;case 26:case 27:case 5:en(s);break;case 4:Gt();break;case 13:hs(s);break;case 19:Ke(gr);break;case 10:_o(s.type);break;case 22:case 23:hs(s),nv(),a!==null&&Ke(Yu);break;case 24:_o(yr)}}var nC={getCacheForType:function(a){var s=Wr(yr),c=s.data.get(a);return c===void 0&&(c=a(),s.data.set(a,c)),c}},rC=typeof WeakMap=="function"?WeakMap:Map,Hn=0,Cn=null,qt=null,Xt=0,Pn=0,aa=null,Cs=!1,Dc=!1,Vv=!1,$s=0,Qn=0,pu=0,rl=0,Gv=0,Ta=0,Fc=0,Wd=null,No=null,Wv=!1,Kv=0,Sg=1/0,Cg=null,Mo=null,Kd=!1,il=null,Yd=0,Yv=0,Jv=null,Jd=0,Qv=null;function oa(){if((Hn&2)!==0&&Xt!==0)return Xt&-Xt;if(Y.T!==null){var a=pc;return a!==0?a:s0()}return qi()}function N2(){Ta===0&&(Ta=(Xt&536870912)===0||$t?ga():536870912);var a=xa.current;return a!==null&&(a.flags|=32),Ta}function Yr(a,s,c){(a===Cn&&Pn===2||a.cancelPendingCommit!==null)&&(Uc(a,0),Es(a,Xt,Ta,!1)),co(a,c),((Hn&2)===0||a!==Cn)&&(a===Cn&&((Hn&2)===0&&(rl|=c),Qn===4&&Es(a,Xt,Ta,!1)),Ja(a))}function M2(a,s,c){if((Hn&6)!==0)throw Error(r(327));var m=!c&&(s&60)===0&&(s&a.expiredLanes)===0||On(a,s),v=m?oC(a,s):e0(a,s,!0),x=m;do{if(v===0){Dc&&!m&&Es(a,s,0,!1);break}else if(v===6)Es(a,s,0,!Cs);else{if(c=a.current.alternate,x&&!iC(c)){v=e0(a,s,!1),x=!1;continue}if(v===2){if(x=s,a.errorRecoveryDisabledLanes&x)var D=0;else D=a.pendingLanes&-536870913,D=D!==0?D:D&536870912?536870912:0;if(D!==0){s=D;e:{var W=a;v=Wd;var Z=W.current.memoizedState.isDehydrated;if(Z&&(Uc(W,D).flags|=256),D=e0(W,D,!1),D!==2){if(Vv&&!Z){W.errorRecoveryDisabledLanes|=x,rl|=x,v=4;break e}x=No,No=v,x!==null&&Lc(x)}v=D}if(x=!1,v!==2)continue}}if(v===1){Uc(a,0),Es(a,s,0,!0);break}e:{switch(m=a,v){case 0:case 1:throw Error(r(345));case 4:if((s&4194176)===s){Es(m,s,Ta,!Cs);break e}break;case 2:No=null;break;case 3:case 5:break;default:throw Error(r(329))}if(m.finishedWork=c,m.finishedLanes=s,(s&62914560)===s&&(x=Kv+300-Ge(),10c?32:c,Y.T=null,il===null)var x=!1;else{c=Jv,Jv=null;var D=il,W=Yd;if(il=null,Yd=0,(Hn&6)!==0)throw Error(r(331));var Z=Hn;if(Hn|=4,O2(D.current),$2(D,D.current,W,c),Hn=Z,sl(0,!1),rt&&typeof rt.onPostCommitFiberRoot=="function")try{rt.onPostCommitFiberRoot(Ee,D)}catch{}x=!0}return x}finally{Ce.p=v,Y.T=m,H2(a,s)}}return!1}function z2(a,s,c){s=ri(c,s),s=Nd(a.stateNode,s,2),a=ea(a,s,2),a!==null&&(co(a,2),Ja(a))}function Tn(a,s,c){if(a.tag===3)z2(a,a,c);else for(;s!==null;){if(s.tag===3){z2(s,a,c);break}else if(s.tag===1){var m=s.stateNode;if(typeof s.type.getDerivedStateFromError=="function"||typeof m.componentDidCatch=="function"&&(Mo===null||!Mo.has(m))){a=ri(c,a),c=f2(2),m=ea(s,c,2),m!==null&&(d2(c,m,s,a),co(m,2),Ja(m));break}}s=s.return}}function t0(a,s,c){var m=a.pingCache;if(m===null){m=a.pingCache=new rC;var v=new Set;m.set(s,v)}else v=m.get(s),v===void 0&&(v=new Set,m.set(s,v));v.has(c)||(Vv=!0,v.add(c),a=lC.bind(null,a,s,c),s.then(a,a))}function lC(a,s,c){var m=a.pingCache;m!==null&&m.delete(s),a.pingedLanes|=a.suspendedLanes&c,a.warmLanes&=~c,Cn===a&&(Xt&c)===c&&(Qn===4||Qn===3&&(Xt&62914560)===Xt&&300>Ge()-Kv?(Hn&2)===0&&Uc(a,0):Gv|=c,Fc===Xt&&(Fc=0)),Ja(a)}function V2(a,s){s===0&&(s=Pr()),a=Ua(a,s),a!==null&&(co(a,s),Ja(a))}function cC(a){var s=a.memoizedState,c=0;s!==null&&(c=s.retryLane),V2(a,c)}function fC(a,s){var c=0;switch(a.tag){case 13:var m=a.stateNode,v=a.memoizedState;v!==null&&(c=v.retryLane);break;case 19:m=a.stateNode;break;case 22:m=a.stateNode._retryCache;break;default:throw Error(r(314))}m!==null&&m.delete(s),V2(a,c)}function dC(a,s){return Dt(a,s)}var Eg=null,Bc=null,n0=!1,ol=!1,r0=!1,mu=0;function Ja(a){a!==Bc&&a.next===null&&(Bc===null?Eg=Bc=a:Bc=Bc.next=a),ol=!0,n0||(n0=!0,hC(G2))}function sl(a,s){if(!r0&&ol){r0=!0;do for(var c=!1,m=Eg;m!==null;){if(a!==0){var v=m.pendingLanes;if(v===0)var x=0;else{var D=m.suspendedLanes,W=m.pingedLanes;x=(1<<31-ce(42|a)+1)-1,x&=v&~(D&~W),x=x&201326677?x&201326677|1:x?x|2:0}x!==0&&(c=!0,o0(m,x))}else x=Xt,x=nr(m,m===Cn?x:0),(x&3)===0||On(m,x)||(c=!0,o0(m,x));m=m.next}while(c);r0=!1}}function G2(){ol=n0=!1;var a=0;mu!==0&&(Os()&&(a=mu),mu=0);for(var s=Ge(),c=null,m=Eg;m!==null;){var v=m.next,x=i0(m,s);x===0?(m.next=null,c===null?Eg=v:c.next=v,v===null&&(Bc=c)):(c=m,(a!==0||(x&3)!==0)&&(ol=!0)),m=v}sl(a)}function i0(a,s){for(var c=a.suspendedLanes,m=a.pingedLanes,v=a.expirationTimes,x=a.pendingLanes&-62914561;0"u"?null:document;function tw(a,s,c){var m=Xa;if(m&&typeof s=="string"&&s){var v=ti(s);v='link[rel="'+a+'"][href="'+v+'"]',typeof c=="string"&&(v+='[crossorigin="'+c+'"]'),Pg.has(v)||(Pg.add(v),a={rel:a,crossOrigin:c,href:s},m.querySelector(v)===null&&(s=m.createElement("link"),kr(s,"link",a),kn(s),m.head.appendChild(s)))}}function bC(a){ko.D(a),tw("dns-prefetch",a,null)}function wC(a,s){ko.C(a,s),tw("preconnect",a,s)}function SC(a,s,c){ko.L(a,s,c);var m=Xa;if(m&&a&&s){var v='link[rel="preload"][as="'+ti(s)+'"]';s==="image"&&c&&c.imageSrcSet?(v+='[imagesrcset="'+ti(c.imageSrcSet)+'"]',typeof c.imageSizes=="string"&&(v+='[imagesizes="'+ti(c.imageSizes)+'"]')):v+='[href="'+ti(a)+'"]';var x=v;switch(s){case"style":x=Dr(a);break;case"script":x=Hc(a)}Jr.has(x)||(a=Q({rel:"preload",href:s==="image"&&c&&c.imageSrcSet?void 0:a,as:s},c),Jr.set(x,a),m.querySelector(v)!==null||s==="style"&&m.querySelector(qc(x))||s==="script"&&m.querySelector(zc(x))||(s=m.createElement("link"),kr(s,"link",a),kn(s),m.head.appendChild(s)))}}function CC(a,s){ko.m(a,s);var c=Xa;if(c&&a){var m=s&&typeof s.as=="string"?s.as:"script",v='link[rel="modulepreload"][as="'+ti(m)+'"][href="'+ti(a)+'"]',x=v;switch(m){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":x=Hc(a)}if(!Jr.has(x)&&(a=Q({rel:"modulepreload",href:a},s),Jr.set(x,a),c.querySelector(v)===null)){switch(m){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(c.querySelector(zc(x)))return}m=c.createElement("link"),kr(m,"link",a),kn(m),c.head.appendChild(m)}}}function nw(a,s,c){ko.S(a,s,c);var m=Xa;if(m&&a){var v=Hs(m).hoistableStyles,x=Dr(a);s=s||"default";var D=v.get(x);if(!D){var W={loading:0,preload:null};if(D=m.querySelector(qc(x)))W.loading=5;else{a=Q({rel:"stylesheet",href:a,"data-precedence":s},c),(c=Jr.get(x))&&C0(a,c);var Z=D=m.createElement("link");kn(Z),kr(Z,"link",a),Z._p=new Promise(function(se,_e){Z.onload=se,Z.onerror=_e}),Z.addEventListener("load",function(){W.loading|=1}),Z.addEventListener("error",function(){W.loading|=2}),W.loading|=4,Mg(D,s,m)}D={type:"stylesheet",instance:D,count:1,state:W},v.set(x,D)}}}function Ts(a,s){ko.X(a,s);var c=Xa;if(c&&a){var m=Hs(c).hoistableScripts,v=Hc(a),x=m.get(v);x||(x=c.querySelector(zc(v)),x||(a=Q({src:a,async:!0},s),(s=Jr.get(v))&&$0(a,s),x=c.createElement("script"),kn(x),kr(x,"link",a),c.head.appendChild(x)),x={type:"script",instance:x,count:1,state:null},m.set(v,x))}}function Nt(a,s){ko.M(a,s);var c=Xa;if(c&&a){var m=Hs(c).hoistableScripts,v=Hc(a),x=m.get(v);x||(x=c.querySelector(zc(v)),x||(a=Q({src:a,async:!0,type:"module"},s),(s=Jr.get(v))&&$0(a,s),x=c.createElement("script"),kn(x),kr(x,"link",a),c.head.appendChild(x)),x={type:"script",instance:x,count:1,state:null},m.set(v,x))}}function S0(a,s,c,m){var v=(v=bt.current)?Ig(v):null;if(!v)throw Error(r(446));switch(a){case"meta":case"title":return null;case"style":return typeof c.precedence=="string"&&typeof c.href=="string"?(s=Dr(c.href),c=Hs(v).hoistableStyles,m=c.get(s),m||(m={type:"style",instance:null,count:0,state:null},c.set(s,m)),m):{type:"void",instance:null,count:0,state:null};case"link":if(c.rel==="stylesheet"&&typeof c.href=="string"&&typeof c.precedence=="string"){a=Dr(c.href);var x=Hs(v).hoistableStyles,D=x.get(a);if(D||(v=v.ownerDocument||v,D={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},x.set(a,D),(x=v.querySelector(qc(a)))&&!x._p&&(D.instance=x,D.state.loading=5),Jr.has(a)||(c={rel:"preload",as:"style",href:c.href,crossOrigin:c.crossOrigin,integrity:c.integrity,media:c.media,hrefLang:c.hrefLang,referrerPolicy:c.referrerPolicy},Jr.set(a,c),x||hn(v,a,c,D.state))),s&&m===null)throw Error(r(528,""));return D}if(s&&m!==null)throw Error(r(529,""));return null;case"script":return s=c.async,c=c.src,typeof c=="string"&&s&&typeof s!="function"&&typeof s!="symbol"?(s=Hc(c),c=Hs(v).hoistableScripts,m=c.get(s),m||(m={type:"script",instance:null,count:0,state:null},c.set(s,m)),m):{type:"void",instance:null,count:0,state:null};default:throw Error(r(444,a))}}function Dr(a){return'href="'+ti(a)+'"'}function qc(a){return'link[rel="stylesheet"]['+a+"]"}function rw(a){return Q({},a,{"data-precedence":a.precedence,precedence:null})}function hn(a,s,c,m){a.querySelector('link[rel="preload"][as="style"]['+s+"]")?m.loading=1:(s=a.createElement("link"),m.preload=s,s.addEventListener("load",function(){return m.loading|=1}),s.addEventListener("error",function(){return m.loading|=2}),kr(s,"link",c),kn(s),a.head.appendChild(s))}function Hc(a){return'[src="'+ti(a)+'"]'}function zc(a){return"script[async]"+a}function nh(a,s,c){if(s.count++,s.instance===null)switch(s.type){case"style":var m=a.querySelector('style[data-href~="'+ti(c.href)+'"]');if(m)return s.instance=m,kn(m),m;var v=Q({},c,{"data-href":c.href,"data-precedence":c.precedence,href:null,precedence:null});return m=(a.ownerDocument||a).createElement("style"),kn(m),kr(m,"style",v),Mg(m,c.precedence,a),s.instance=m;case"stylesheet":v=Dr(c.href);var x=a.querySelector(qc(v));if(x)return s.state.loading|=4,s.instance=x,kn(x),x;m=rw(c),(v=Jr.get(v))&&C0(m,v),x=(a.ownerDocument||a).createElement("link"),kn(x);var D=x;return D._p=new Promise(function(W,Z){D.onload=W,D.onerror=Z}),kr(x,"link",m),s.state.loading|=4,Mg(x,c.precedence,a),s.instance=x;case"script":return x=Hc(c.src),(v=a.querySelector(zc(x)))?(s.instance=v,kn(v),v):(m=c,(v=Jr.get(x))&&(m=Q({},c),$0(m,v)),a=a.ownerDocument||a,v=a.createElement("script"),kn(v),kr(v,"link",m),a.head.appendChild(v),s.instance=v);case"void":return null;default:throw Error(r(443,s.type))}else s.type==="stylesheet"&&(s.state.loading&4)===0&&(m=s.instance,s.state.loading|=4,Mg(m,c.precedence,a));return s.instance}function Mg(a,s,c){for(var m=c.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),v=m.length?m[m.length-1]:null,x=v,D=0;D title"):null)}function $C(a,s,c){if(c===1||s.itemProp!=null)return!1;switch(a){case"meta":case"title":return!0;case"style":if(typeof s.precedence!="string"||typeof s.href!="string"||s.href==="")break;return!0;case"link":if(typeof s.rel!="string"||typeof s.href!="string"||s.href===""||s.onLoad||s.onError)break;switch(s.rel){case"stylesheet":return a=s.disabled,typeof s.precedence=="string"&&a==null;default:return!0}case"script":if(s.async&&typeof s.async!="function"&&typeof s.async!="symbol"&&!s.onLoad&&!s.onError&&s.src&&typeof s.src=="string")return!0}return!1}function ow(a){return!(a.type==="stylesheet"&&(a.state.loading&3)===0)}var rh=null;function EC(){}function xC(a,s,c){if(rh===null)throw Error(r(475));var m=rh;if(s.type==="stylesheet"&&(typeof c.media!="string"||matchMedia(c.media).matches!==!1)&&(s.state.loading&4)===0){if(s.instance===null){var v=Dr(c.href),x=a.querySelector(qc(v));if(x){a=x._p,a!==null&&typeof a=="object"&&typeof a.then=="function"&&(m.count++,m=Dg.bind(m),a.then(m,m)),s.state.loading|=4,s.instance=x,kn(x);return}x=a.ownerDocument||a,c=rw(c),(v=Jr.get(v))&&C0(c,v),x=x.createElement("link"),kn(x);var D=x;D._p=new Promise(function(W,Z){D.onload=W,D.onerror=Z}),kr(x,"link",c),s.instance=x}m.stylesheets===null&&(m.stylesheets=new Map),m.stylesheets.set(s,a),(a=s.state.preload)&&(s.state.loading&3)===0&&(m.count++,s=Dg.bind(m),a.addEventListener("load",s),a.addEventListener("error",s))}}function OC(){if(rh===null)throw Error(r(475));var a=rh;return a.stylesheets&&a.count===0&&E0(a,a.stylesheets),0"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(t)}catch(e){console.error(e)}}return t(),jC.exports=AF(),jC.exports}var PF=RF();const IF=Hf(PF),NF=Ae.createContext({patchConfig(){},config:{}});function MF(){const t=localStorage.getItem("app_config2");if(t){try{const e=JSON.parse(t);return e?{...e}:{}}catch{}return{}}}MF();function lS(t,e){return lS=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},lS(t,e)}function vm(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,lS(t,e)}var Ty=(function(){function t(){this.listeners=[]}var e=t.prototype;return e.subscribe=function(r){var i=this,o=r||function(){};return this.listeners.push(o),this.onSubscribe(),function(){i.listeners=i.listeners.filter(function(u){return u!==o}),i.onUnsubscribe()}},e.hasListeners=function(){return this.listeners.length>0},e.onSubscribe=function(){},e.onUnsubscribe=function(){},t})();function Ve(){return Ve=Object.assign?Object.assign.bind():function(t){for(var e=1;e"u";function vi(){}function kF(t,e){return typeof t=="function"?t(e):t}function ux(t){return typeof t=="number"&&t>=0&&t!==1/0}function fS(t){return Array.isArray(t)?t:[t]}function K9(t,e){return Math.max(t+(e||0)-Date.now(),0)}function zw(t,e,n){return cb(t)?typeof e=="function"?Ve({},n,{queryKey:t,queryFn:e}):Ve({},e,{queryKey:t}):t}function DF(t,e,n){return cb(t)?Ve({},e,{mutationKey:t}):typeof t=="function"?Ve({},e,{mutationFn:t}):Ve({},t)}function If(t,e,n){return cb(t)?[Ve({},e,{queryKey:t}),n]:[t||{},e]}function FF(t,e){if(t===!0&&e===!0||t==null&&e==null)return"all";if(t===!1&&e===!1)return"none";var n=t??!e;return n?"active":"inactive"}function G4(t,e){var n=t.active,r=t.exact,i=t.fetching,o=t.inactive,u=t.predicate,l=t.queryKey,d=t.stale;if(cb(l)){if(r){if(e.queryHash!==VO(l,e.options))return!1}else if(!dS(e.queryKey,l))return!1}var h=FF(n,o);if(h==="none")return!1;if(h!=="all"){var g=e.isActive();if(h==="active"&&!g||h==="inactive"&&g)return!1}return!(typeof d=="boolean"&&e.isStale()!==d||typeof i=="boolean"&&e.isFetching()!==i||u&&!u(e))}function W4(t,e){var n=t.exact,r=t.fetching,i=t.predicate,o=t.mutationKey;if(cb(o)){if(!e.options.mutationKey)return!1;if(n){if(Hp(e.options.mutationKey)!==Hp(o))return!1}else if(!dS(e.options.mutationKey,o))return!1}return!(typeof r=="boolean"&&e.state.status==="loading"!==r||i&&!i(e))}function VO(t,e){var n=(e==null?void 0:e.queryKeyHashFn)||Hp;return n(t)}function Hp(t){var e=fS(t);return LF(e)}function LF(t){return JSON.stringify(t,function(e,n){return lx(n)?Object.keys(n).sort().reduce(function(r,i){return r[i]=n[i],r},{}):n})}function dS(t,e){return Y9(fS(t),fS(e))}function Y9(t,e){return t===e?!0:typeof t!=typeof e?!1:t&&e&&typeof t=="object"&&typeof e=="object"?!Object.keys(e).some(function(n){return!Y9(t[n],e[n])}):!1}function hS(t,e){if(t===e)return t;var n=Array.isArray(t)&&Array.isArray(e);if(n||lx(t)&&lx(e)){for(var r=n?t.length:Object.keys(t).length,i=n?e:Object.keys(e),o=i.length,u=n?[]:{},l=0,d=0;d"u")return!0;var n=e.prototype;return!(!K4(n)||!n.hasOwnProperty("isPrototypeOf"))}function K4(t){return Object.prototype.toString.call(t)==="[object Object]"}function cb(t){return typeof t=="string"||Array.isArray(t)}function BF(t){return new Promise(function(e){setTimeout(e,t)})}function Y4(t){Promise.resolve().then(t).catch(function(e){return setTimeout(function(){throw e})})}function J9(){if(typeof AbortController=="function")return new AbortController}var jF=(function(t){vm(e,t);function e(){var r;return r=t.call(this)||this,r.setup=function(i){var o;if(!cS&&((o=window)!=null&&o.addEventListener)){var u=function(){return i()};return window.addEventListener("visibilitychange",u,!1),window.addEventListener("focus",u,!1),function(){window.removeEventListener("visibilitychange",u),window.removeEventListener("focus",u)}}},r}var n=e.prototype;return n.onSubscribe=function(){this.cleanup||this.setEventListener(this.setup)},n.onUnsubscribe=function(){if(!this.hasListeners()){var i;(i=this.cleanup)==null||i.call(this),this.cleanup=void 0}},n.setEventListener=function(i){var o,u=this;this.setup=i,(o=this.cleanup)==null||o.call(this),this.cleanup=i(function(l){typeof l=="boolean"?u.setFocused(l):u.onFocus()})},n.setFocused=function(i){this.focused=i,i&&this.onFocus()},n.onFocus=function(){this.listeners.forEach(function(i){i()})},n.isFocused=function(){return typeof this.focused=="boolean"?this.focused:typeof document>"u"?!0:[void 0,"visible","prerender"].includes(document.visibilityState)},e})(Ty),l1=new jF,qF=(function(t){vm(e,t);function e(){var r;return r=t.call(this)||this,r.setup=function(i){var o;if(!cS&&((o=window)!=null&&o.addEventListener)){var u=function(){return i()};return window.addEventListener("online",u,!1),window.addEventListener("offline",u,!1),function(){window.removeEventListener("online",u),window.removeEventListener("offline",u)}}},r}var n=e.prototype;return n.onSubscribe=function(){this.cleanup||this.setEventListener(this.setup)},n.onUnsubscribe=function(){if(!this.hasListeners()){var i;(i=this.cleanup)==null||i.call(this),this.cleanup=void 0}},n.setEventListener=function(i){var o,u=this;this.setup=i,(o=this.cleanup)==null||o.call(this),this.cleanup=i(function(l){typeof l=="boolean"?u.setOnline(l):u.onOnline()})},n.setOnline=function(i){this.online=i,i&&this.onOnline()},n.onOnline=function(){this.listeners.forEach(function(i){i()})},n.isOnline=function(){return typeof this.online=="boolean"?this.online:typeof navigator>"u"||typeof navigator.onLine>"u"?!0:navigator.onLine},e})(Ty),Vw=new qF;function HF(t){return Math.min(1e3*Math.pow(2,t),3e4)}function pS(t){return typeof(t==null?void 0:t.cancel)=="function"}var Q9=function(e){this.revert=e==null?void 0:e.revert,this.silent=e==null?void 0:e.silent};function Gw(t){return t instanceof Q9}var X9=function(e){var n=this,r=!1,i,o,u,l;this.abort=e.abort,this.cancel=function(w){return i==null?void 0:i(w)},this.cancelRetry=function(){r=!0},this.continueRetry=function(){r=!1},this.continue=function(){return o==null?void 0:o()},this.failureCount=0,this.isPaused=!1,this.isResolved=!1,this.isTransportCancelable=!1,this.promise=new Promise(function(w,b){u=w,l=b});var d=function(b){n.isResolved||(n.isResolved=!0,e.onSuccess==null||e.onSuccess(b),o==null||o(),u(b))},h=function(b){n.isResolved||(n.isResolved=!0,e.onError==null||e.onError(b),o==null||o(),l(b))},g=function(){return new Promise(function(b){o=b,n.isPaused=!0,e.onPause==null||e.onPause()}).then(function(){o=void 0,n.isPaused=!1,e.onContinue==null||e.onContinue()})},y=function w(){if(!n.isResolved){var b;try{b=e.fn()}catch(C){b=Promise.reject(C)}i=function(E){if(!n.isResolved&&(h(new Q9(E)),n.abort==null||n.abort(),pS(b)))try{b.cancel()}catch{}},n.isTransportCancelable=pS(b),Promise.resolve(b).then(d).catch(function(C){var E,$;if(!n.isResolved){var O=(E=e.retry)!=null?E:3,_=($=e.retryDelay)!=null?$:HF,P=typeof _=="function"?_(n.failureCount,C):_,k=O===!0||typeof O=="number"&&n.failureCount"u"&&(l.exact=!0),this.queries.find(function(d){return G4(l,d)})},n.findAll=function(i,o){var u=If(i,o),l=u[0];return Object.keys(l).length>0?this.queries.filter(function(d){return G4(l,d)}):this.queries},n.notify=function(i){var o=this;tr.batch(function(){o.listeners.forEach(function(u){u(i)})})},n.onFocus=function(){var i=this;tr.batch(function(){i.queries.forEach(function(o){o.onFocus()})})},n.onOnline=function(){var i=this;tr.batch(function(){i.queries.forEach(function(o){o.onOnline()})})},e})(Ty),KF=(function(){function t(n){this.options=Ve({},n.defaultOptions,n.options),this.mutationId=n.mutationId,this.mutationCache=n.mutationCache,this.observers=[],this.state=n.state||eI(),this.meta=n.meta}var e=t.prototype;return e.setState=function(r){this.dispatch({type:"setState",state:r})},e.addObserver=function(r){this.observers.indexOf(r)===-1&&this.observers.push(r)},e.removeObserver=function(r){this.observers=this.observers.filter(function(i){return i!==r})},e.cancel=function(){return this.retryer?(this.retryer.cancel(),this.retryer.promise.then(vi).catch(vi)):Promise.resolve()},e.continue=function(){return this.retryer?(this.retryer.continue(),this.retryer.promise):this.execute()},e.execute=function(){var r=this,i,o=this.state.status==="loading",u=Promise.resolve();return o||(this.dispatch({type:"loading",variables:this.options.variables}),u=u.then(function(){r.mutationCache.config.onMutate==null||r.mutationCache.config.onMutate(r.state.variables,r)}).then(function(){return r.options.onMutate==null?void 0:r.options.onMutate(r.state.variables)}).then(function(l){l!==r.state.context&&r.dispatch({type:"loading",context:l,variables:r.state.variables})})),u.then(function(){return r.executeMutation()}).then(function(l){i=l,r.mutationCache.config.onSuccess==null||r.mutationCache.config.onSuccess(i,r.state.variables,r.state.context,r)}).then(function(){return r.options.onSuccess==null?void 0:r.options.onSuccess(i,r.state.variables,r.state.context)}).then(function(){return r.options.onSettled==null?void 0:r.options.onSettled(i,null,r.state.variables,r.state.context)}).then(function(){return r.dispatch({type:"success",data:i}),i}).catch(function(l){return r.mutationCache.config.onError==null||r.mutationCache.config.onError(l,r.state.variables,r.state.context,r),mS().error(l),Promise.resolve().then(function(){return r.options.onError==null?void 0:r.options.onError(l,r.state.variables,r.state.context)}).then(function(){return r.options.onSettled==null?void 0:r.options.onSettled(void 0,l,r.state.variables,r.state.context)}).then(function(){throw r.dispatch({type:"error",error:l}),l})})},e.executeMutation=function(){var r=this,i;return this.retryer=new X9({fn:function(){return r.options.mutationFn?r.options.mutationFn(r.state.variables):Promise.reject("No mutationFn found")},onFail:function(){r.dispatch({type:"failed"})},onPause:function(){r.dispatch({type:"pause"})},onContinue:function(){r.dispatch({type:"continue"})},retry:(i=this.options.retry)!=null?i:0,retryDelay:this.options.retryDelay}),this.retryer.promise},e.dispatch=function(r){var i=this;this.state=YF(this.state,r),tr.batch(function(){i.observers.forEach(function(o){o.onMutationUpdate(r)}),i.mutationCache.notify(i)})},t})();function eI(){return{context:void 0,data:void 0,error:null,failureCount:0,isPaused:!1,status:"idle",variables:void 0}}function YF(t,e){switch(e.type){case"failed":return Ve({},t,{failureCount:t.failureCount+1});case"pause":return Ve({},t,{isPaused:!0});case"continue":return Ve({},t,{isPaused:!1});case"loading":return Ve({},t,{context:e.context,data:void 0,error:null,isPaused:!1,status:"loading",variables:e.variables});case"success":return Ve({},t,{data:e.data,error:null,status:"success",isPaused:!1});case"error":return Ve({},t,{data:void 0,error:e.error,failureCount:t.failureCount+1,isPaused:!1,status:"error"});case"setState":return Ve({},t,e.state);default:return t}}var JF=(function(t){vm(e,t);function e(r){var i;return i=t.call(this)||this,i.config=r||{},i.mutations=[],i.mutationId=0,i}var n=e.prototype;return n.build=function(i,o,u){var l=new KF({mutationCache:this,mutationId:++this.mutationId,options:i.defaultMutationOptions(o),state:u,defaultOptions:o.mutationKey?i.getMutationDefaults(o.mutationKey):void 0,meta:o.meta});return this.add(l),l},n.add=function(i){this.mutations.push(i),this.notify(i)},n.remove=function(i){this.mutations=this.mutations.filter(function(o){return o!==i}),i.cancel(),this.notify(i)},n.clear=function(){var i=this;tr.batch(function(){i.mutations.forEach(function(o){i.remove(o)})})},n.getAll=function(){return this.mutations},n.find=function(i){return typeof i.exact>"u"&&(i.exact=!0),this.mutations.find(function(o){return W4(i,o)})},n.findAll=function(i){return this.mutations.filter(function(o){return W4(i,o)})},n.notify=function(i){var o=this;tr.batch(function(){o.listeners.forEach(function(u){u(i)})})},n.onFocus=function(){this.resumePausedMutations()},n.onOnline=function(){this.resumePausedMutations()},n.resumePausedMutations=function(){var i=this.mutations.filter(function(o){return o.state.isPaused});return tr.batch(function(){return i.reduce(function(o,u){return o.then(function(){return u.continue().catch(vi)})},Promise.resolve())})},e})(Ty);function QF(){return{onFetch:function(e){e.fetchFn=function(){var n,r,i,o,u,l,d=(n=e.fetchOptions)==null||(r=n.meta)==null?void 0:r.refetchPage,h=(i=e.fetchOptions)==null||(o=i.meta)==null?void 0:o.fetchMore,g=h==null?void 0:h.pageParam,y=(h==null?void 0:h.direction)==="forward",w=(h==null?void 0:h.direction)==="backward",b=((u=e.state.data)==null?void 0:u.pages)||[],C=((l=e.state.data)==null?void 0:l.pageParams)||[],E=J9(),$=E==null?void 0:E.signal,O=C,_=!1,P=e.options.queryFn||function(){return Promise.reject("Missing queryFn")},k=function(be,Se,j,V){return O=V?[Se].concat(O):[].concat(O,[Se]),V?[j].concat(be):[].concat(be,[j])},R=function(be,Se,j,V){if(_)return Promise.reject("Cancelled");if(typeof j>"u"&&!Se&&be.length)return Promise.resolve(be);var H={queryKey:e.queryKey,signal:$,pageParam:j,meta:e.meta},ie=P(H),G=Promise.resolve(ie).then(function(fe){return k(be,j,fe,V)});if(pS(ie)){var X=G;X.cancel=ie.cancel}return G},L;if(!b.length)L=R([]);else if(y){var F=typeof g<"u",q=F?g:J4(e.options,b);L=R(b,F,q)}else if(w){var Y=typeof g<"u",Q=Y?g:XF(e.options,b);L=R(b,Y,Q,!0)}else(function(){O=[];var te=typeof e.options.getNextPageParam>"u",be=d&&b[0]?d(b[0],0,b):!0;L=be?R([],te,C[0]):Promise.resolve(k([],C[0],b[0]));for(var Se=function(H){L=L.then(function(ie){var G=d&&b[H]?d(b[H],H,b):!0;if(G){var X=te?C[H]:J4(e.options,ie);return R(ie,te,X)}return Promise.resolve(k(ie,C[H],b[H]))})},j=1;j"u"&&(g.revert=!0);var y=tr.batch(function(){return u.queryCache.findAll(d).map(function(w){return w.cancel(g)})});return Promise.all(y).then(vi).catch(vi)},e.invalidateQueries=function(r,i,o){var u,l,d,h=this,g=If(r,i,o),y=g[0],w=g[1],b=Ve({},y,{active:(u=(l=y.refetchActive)!=null?l:y.active)!=null?u:!0,inactive:(d=y.refetchInactive)!=null?d:!1});return tr.batch(function(){return h.queryCache.findAll(y).forEach(function(C){C.invalidate()}),h.refetchQueries(b,w)})},e.refetchQueries=function(r,i,o){var u=this,l=If(r,i,o),d=l[0],h=l[1],g=tr.batch(function(){return u.queryCache.findAll(d).map(function(w){return w.fetch(void 0,Ve({},h,{meta:{refetchPage:d==null?void 0:d.refetchPage}}))})}),y=Promise.all(g).then(vi);return h!=null&&h.throwOnError||(y=y.catch(vi)),y},e.fetchQuery=function(r,i,o){var u=zw(r,i,o),l=this.defaultQueryOptions(u);typeof l.retry>"u"&&(l.retry=!1);var d=this.queryCache.build(this,l);return d.isStaleByTime(l.staleTime)?d.fetch(l):Promise.resolve(d.state.data)},e.prefetchQuery=function(r,i,o){return this.fetchQuery(r,i,o).then(vi).catch(vi)},e.fetchInfiniteQuery=function(r,i,o){var u=zw(r,i,o);return u.behavior=QF(),this.fetchQuery(u)},e.prefetchInfiniteQuery=function(r,i,o){return this.fetchInfiniteQuery(r,i,o).then(vi).catch(vi)},e.cancelMutations=function(){var r=this,i=tr.batch(function(){return r.mutationCache.getAll().map(function(o){return o.cancel()})});return Promise.all(i).then(vi).catch(vi)},e.resumePausedMutations=function(){return this.getMutationCache().resumePausedMutations()},e.executeMutation=function(r){return this.mutationCache.build(this,r).execute()},e.getQueryCache=function(){return this.queryCache},e.getMutationCache=function(){return this.mutationCache},e.getDefaultOptions=function(){return this.defaultOptions},e.setDefaultOptions=function(r){this.defaultOptions=r},e.setQueryDefaults=function(r,i){var o=this.queryDefaults.find(function(u){return Hp(r)===Hp(u.queryKey)});o?o.defaultOptions=i:this.queryDefaults.push({queryKey:r,defaultOptions:i})},e.getQueryDefaults=function(r){var i;return r?(i=this.queryDefaults.find(function(o){return dS(r,o.queryKey)}))==null?void 0:i.defaultOptions:void 0},e.setMutationDefaults=function(r,i){var o=this.mutationDefaults.find(function(u){return Hp(r)===Hp(u.mutationKey)});o?o.defaultOptions=i:this.mutationDefaults.push({mutationKey:r,defaultOptions:i})},e.getMutationDefaults=function(r){var i;return r?(i=this.mutationDefaults.find(function(o){return dS(r,o.mutationKey)}))==null?void 0:i.defaultOptions:void 0},e.defaultQueryOptions=function(r){if(r!=null&&r._defaulted)return r;var i=Ve({},this.defaultOptions.queries,this.getQueryDefaults(r==null?void 0:r.queryKey),r,{_defaulted:!0});return!i.queryHash&&i.queryKey&&(i.queryHash=VO(i.queryKey,i)),i},e.defaultQueryObserverOptions=function(r){return this.defaultQueryOptions(r)},e.defaultMutationOptions=function(r){return r!=null&&r._defaulted?r:Ve({},this.defaultOptions.mutations,this.getMutationDefaults(r==null?void 0:r.mutationKey),r,{_defaulted:!0})},e.clear=function(){this.queryCache.clear(),this.mutationCache.clear()},t})(),eL=(function(t){vm(e,t);function e(r,i){var o;return o=t.call(this)||this,o.client=r,o.options=i,o.trackedProps=[],o.selectError=null,o.bindMethods(),o.setOptions(i),o}var n=e.prototype;return n.bindMethods=function(){this.remove=this.remove.bind(this),this.refetch=this.refetch.bind(this)},n.onSubscribe=function(){this.listeners.length===1&&(this.currentQuery.addObserver(this),Q4(this.currentQuery,this.options)&&this.executeFetch(),this.updateTimers())},n.onUnsubscribe=function(){this.listeners.length||this.destroy()},n.shouldFetchOnReconnect=function(){return cx(this.currentQuery,this.options,this.options.refetchOnReconnect)},n.shouldFetchOnWindowFocus=function(){return cx(this.currentQuery,this.options,this.options.refetchOnWindowFocus)},n.destroy=function(){this.listeners=[],this.clearTimers(),this.currentQuery.removeObserver(this)},n.setOptions=function(i,o){var u=this.options,l=this.currentQuery;if(this.options=this.client.defaultQueryObserverOptions(i),typeof this.options.enabled<"u"&&typeof this.options.enabled!="boolean")throw new Error("Expected enabled to be a boolean");this.options.queryKey||(this.options.queryKey=u.queryKey),this.updateQuery();var d=this.hasListeners();d&&X4(this.currentQuery,l,this.options,u)&&this.executeFetch(),this.updateResult(o),d&&(this.currentQuery!==l||this.options.enabled!==u.enabled||this.options.staleTime!==u.staleTime)&&this.updateStaleTimeout();var h=this.computeRefetchInterval();d&&(this.currentQuery!==l||this.options.enabled!==u.enabled||h!==this.currentRefetchInterval)&&this.updateRefetchInterval(h)},n.getOptimisticResult=function(i){var o=this.client.defaultQueryObserverOptions(i),u=this.client.getQueryCache().build(this.client,o);return this.createResult(u,o)},n.getCurrentResult=function(){return this.currentResult},n.trackResult=function(i,o){var u=this,l={},d=function(g){u.trackedProps.includes(g)||u.trackedProps.push(g)};return Object.keys(i).forEach(function(h){Object.defineProperty(l,h,{configurable:!1,enumerable:!0,get:function(){return d(h),i[h]}})}),(o.useErrorBoundary||o.suspense)&&d("error"),l},n.getNextResult=function(i){var o=this;return new Promise(function(u,l){var d=o.subscribe(function(h){h.isFetching||(d(),h.isError&&(i!=null&&i.throwOnError)?l(h.error):u(h))})})},n.getCurrentQuery=function(){return this.currentQuery},n.remove=function(){this.client.getQueryCache().remove(this.currentQuery)},n.refetch=function(i){return this.fetch(Ve({},i,{meta:{refetchPage:i==null?void 0:i.refetchPage}}))},n.fetchOptimistic=function(i){var o=this,u=this.client.defaultQueryObserverOptions(i),l=this.client.getQueryCache().build(this.client,u);return l.fetch().then(function(){return o.createResult(l,u)})},n.fetch=function(i){var o=this;return this.executeFetch(i).then(function(){return o.updateResult(),o.currentResult})},n.executeFetch=function(i){this.updateQuery();var o=this.currentQuery.fetch(this.options,i);return i!=null&&i.throwOnError||(o=o.catch(vi)),o},n.updateStaleTimeout=function(){var i=this;if(this.clearStaleTimeout(),!(cS||this.currentResult.isStale||!ux(this.options.staleTime))){var o=K9(this.currentResult.dataUpdatedAt,this.options.staleTime),u=o+1;this.staleTimeoutId=setTimeout(function(){i.currentResult.isStale||i.updateResult()},u)}},n.computeRefetchInterval=function(){var i;return typeof this.options.refetchInterval=="function"?this.options.refetchInterval(this.currentResult.data,this.currentQuery):(i=this.options.refetchInterval)!=null?i:!1},n.updateRefetchInterval=function(i){var o=this;this.clearRefetchInterval(),this.currentRefetchInterval=i,!(cS||this.options.enabled===!1||!ux(this.currentRefetchInterval)||this.currentRefetchInterval===0)&&(this.refetchIntervalId=setInterval(function(){(o.options.refetchIntervalInBackground||l1.isFocused())&&o.executeFetch()},this.currentRefetchInterval))},n.updateTimers=function(){this.updateStaleTimeout(),this.updateRefetchInterval(this.computeRefetchInterval())},n.clearTimers=function(){this.clearStaleTimeout(),this.clearRefetchInterval()},n.clearStaleTimeout=function(){this.staleTimeoutId&&(clearTimeout(this.staleTimeoutId),this.staleTimeoutId=void 0)},n.clearRefetchInterval=function(){this.refetchIntervalId&&(clearInterval(this.refetchIntervalId),this.refetchIntervalId=void 0)},n.createResult=function(i,o){var u=this.currentQuery,l=this.options,d=this.currentResult,h=this.currentResultState,g=this.currentResultOptions,y=i!==u,w=y?i.state:this.currentQueryInitialState,b=y?this.currentResult:this.previousQueryResult,C=i.state,E=C.dataUpdatedAt,$=C.error,O=C.errorUpdatedAt,_=C.isFetching,P=C.status,k=!1,R=!1,L;if(o.optimisticResults){var F=this.hasListeners(),q=!F&&Q4(i,o),Y=F&&X4(i,u,o,l);(q||Y)&&(_=!0,E||(P="loading"))}if(o.keepPreviousData&&!C.dataUpdateCount&&(b!=null&&b.isSuccess)&&P!=="error")L=b.data,E=b.dataUpdatedAt,P=b.status,k=!0;else if(o.select&&typeof C.data<"u")if(d&&C.data===(h==null?void 0:h.data)&&o.select===this.selectFn)L=this.selectResult;else try{this.selectFn=o.select,L=o.select(C.data),o.structuralSharing!==!1&&(L=hS(d==null?void 0:d.data,L)),this.selectResult=L,this.selectError=null}catch(me){mS().error(me),this.selectError=me}else L=C.data;if(typeof o.placeholderData<"u"&&typeof L>"u"&&(P==="loading"||P==="idle")){var Q;if(d!=null&&d.isPlaceholderData&&o.placeholderData===(g==null?void 0:g.placeholderData))Q=d.data;else if(Q=typeof o.placeholderData=="function"?o.placeholderData():o.placeholderData,o.select&&typeof Q<"u")try{Q=o.select(Q),o.structuralSharing!==!1&&(Q=hS(d==null?void 0:d.data,Q)),this.selectError=null}catch(me){mS().error(me),this.selectError=me}typeof Q<"u"&&(P="success",L=Q,R=!0)}this.selectError&&($=this.selectError,L=this.selectResult,O=Date.now(),P="error");var ue={status:P,isLoading:P==="loading",isSuccess:P==="success",isError:P==="error",isIdle:P==="idle",data:L,dataUpdatedAt:E,error:$,errorUpdatedAt:O,failureCount:C.fetchFailureCount,errorUpdateCount:C.errorUpdateCount,isFetched:C.dataUpdateCount>0||C.errorUpdateCount>0,isFetchedAfterMount:C.dataUpdateCount>w.dataUpdateCount||C.errorUpdateCount>w.errorUpdateCount,isFetching:_,isRefetching:_&&P!=="loading",isLoadingError:P==="error"&&C.dataUpdatedAt===0,isPlaceholderData:R,isPreviousData:k,isRefetchError:P==="error"&&C.dataUpdatedAt!==0,isStale:GO(i,o),refetch:this.refetch,remove:this.remove};return ue},n.shouldNotifyListeners=function(i,o){if(!o)return!0;var u=this.options,l=u.notifyOnChangeProps,d=u.notifyOnChangePropsExclusions;if(!l&&!d||l==="tracked"&&!this.trackedProps.length)return!0;var h=l==="tracked"?this.trackedProps:l;return Object.keys(i).some(function(g){var y=g,w=i[y]!==o[y],b=h==null?void 0:h.some(function(E){return E===g}),C=d==null?void 0:d.some(function(E){return E===g});return w&&!C&&(!h||b)})},n.updateResult=function(i){var o=this.currentResult;if(this.currentResult=this.createResult(this.currentQuery,this.options),this.currentResultState=this.currentQuery.state,this.currentResultOptions=this.options,!UF(this.currentResult,o)){var u={cache:!0};(i==null?void 0:i.listeners)!==!1&&this.shouldNotifyListeners(this.currentResult,o)&&(u.listeners=!0),this.notify(Ve({},u,i))}},n.updateQuery=function(){var i=this.client.getQueryCache().build(this.client,this.options);if(i!==this.currentQuery){var o=this.currentQuery;this.currentQuery=i,this.currentQueryInitialState=i.state,this.previousQueryResult=this.currentResult,this.hasListeners()&&(o==null||o.removeObserver(this),i.addObserver(this))}},n.onQueryUpdate=function(i){var o={};i.type==="success"?o.onSuccess=!0:i.type==="error"&&!Gw(i.error)&&(o.onError=!0),this.updateResult(o),this.hasListeners()&&this.updateTimers()},n.notify=function(i){var o=this;tr.batch(function(){i.onSuccess?(o.options.onSuccess==null||o.options.onSuccess(o.currentResult.data),o.options.onSettled==null||o.options.onSettled(o.currentResult.data,null)):i.onError&&(o.options.onError==null||o.options.onError(o.currentResult.error),o.options.onSettled==null||o.options.onSettled(void 0,o.currentResult.error)),i.listeners&&o.listeners.forEach(function(u){u(o.currentResult)}),i.cache&&o.client.getQueryCache().notify({query:o.currentQuery,type:"observerResultsUpdated"})})},e})(Ty);function tL(t,e){return e.enabled!==!1&&!t.state.dataUpdatedAt&&!(t.state.status==="error"&&e.retryOnMount===!1)}function Q4(t,e){return tL(t,e)||t.state.dataUpdatedAt>0&&cx(t,e,e.refetchOnMount)}function cx(t,e,n){if(e.enabled!==!1){var r=typeof n=="function"?n(t):n;return r==="always"||r!==!1&&GO(t,e)}return!1}function X4(t,e,n,r){return n.enabled!==!1&&(t!==e||r.enabled===!1)&&(!n.suspense||t.state.status!=="error")&&GO(t,n)}function GO(t,e){return t.isStaleByTime(e.staleTime)}var nL=(function(t){vm(e,t);function e(r,i){var o;return o=t.call(this)||this,o.client=r,o.setOptions(i),o.bindMethods(),o.updateResult(),o}var n=e.prototype;return n.bindMethods=function(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)},n.setOptions=function(i){this.options=this.client.defaultMutationOptions(i)},n.onUnsubscribe=function(){if(!this.listeners.length){var i;(i=this.currentMutation)==null||i.removeObserver(this)}},n.onMutationUpdate=function(i){this.updateResult();var o={listeners:!0};i.type==="success"?o.onSuccess=!0:i.type==="error"&&(o.onError=!0),this.notify(o)},n.getCurrentResult=function(){return this.currentResult},n.reset=function(){this.currentMutation=void 0,this.updateResult(),this.notify({listeners:!0})},n.mutate=function(i,o){return this.mutateOptions=o,this.currentMutation&&this.currentMutation.removeObserver(this),this.currentMutation=this.client.getMutationCache().build(this.client,Ve({},this.options,{variables:typeof i<"u"?i:this.options.variables})),this.currentMutation.addObserver(this),this.currentMutation.execute()},n.updateResult=function(){var i=this.currentMutation?this.currentMutation.state:eI(),o=Ve({},i,{isLoading:i.status==="loading",isSuccess:i.status==="success",isError:i.status==="error",isIdle:i.status==="idle",mutate:this.mutate,reset:this.reset});this.currentResult=o},n.notify=function(i){var o=this;tr.batch(function(){o.mutateOptions&&(i.onSuccess?(o.mutateOptions.onSuccess==null||o.mutateOptions.onSuccess(o.currentResult.data,o.currentResult.variables,o.currentResult.context),o.mutateOptions.onSettled==null||o.mutateOptions.onSettled(o.currentResult.data,null,o.currentResult.variables,o.currentResult.context)):i.onError&&(o.mutateOptions.onError==null||o.mutateOptions.onError(o.currentResult.error,o.currentResult.variables,o.currentResult.context),o.mutateOptions.onSettled==null||o.mutateOptions.onSettled(void 0,o.currentResult.error,o.currentResult.variables,o.currentResult.context))),i.listeners&&o.listeners.forEach(function(u){u(o.currentResult)})})},e})(Ty),_u=W9();const rL=Hf(_u);var iL=rL.unstable_batchedUpdates;tr.setBatchNotifyFunction(iL);var aL=console;VF(aL);var Z4=Ae.createContext(void 0),tI=Ae.createContext(!1);function nI(t){return t&&typeof window<"u"?(window.ReactQueryClientContext||(window.ReactQueryClientContext=Z4),window.ReactQueryClientContext):Z4}var zf=function(){var e=Ae.useContext(nI(Ae.useContext(tI)));if(!e)throw new Error("No QueryClient set, use QueryClientProvider to set one");return e},oL=function(e){var n=e.client,r=e.contextSharing,i=r===void 0?!1:r,o=e.children;Ae.useEffect(function(){return n.mount(),function(){n.unmount()}},[n]);var u=nI(i);return Ae.createElement(tI.Provider,{value:i},Ae.createElement(u.Provider,{value:n},o))};function sL(){var t=!1;return{clearReset:function(){t=!1},reset:function(){t=!0},isReset:function(){return t}}}var uL=Ae.createContext(sL()),lL=function(){return Ae.useContext(uL)};function rI(t,e,n){return typeof e=="function"?e.apply(void 0,n):typeof e=="boolean"?e:!!t}function Ur(t,e,n){var r=Ae.useRef(!1),i=Ae.useState(0),o=i[1],u=DF(t,e),l=zf(),d=Ae.useRef();d.current?d.current.setOptions(u):d.current=new nL(l,u);var h=d.current.getCurrentResult();Ae.useEffect(function(){r.current=!0;var y=d.current.subscribe(tr.batchCalls(function(){r.current&&o(function(w){return w+1})}));return function(){r.current=!1,y()}},[]);var g=Ae.useCallback(function(y,w){d.current.mutate(y,w).catch(vi)},[]);if(h.error&&rI(void 0,d.current.options.useErrorBoundary,[h.error]))throw h.error;return Ve({},h,{mutate:g,mutateAsync:h.mutate})}function cL(t,e){var n=Ae.useRef(!1),r=Ae.useState(0),i=r[1],o=zf(),u=lL(),l=o.defaultQueryObserverOptions(t);l.optimisticResults=!0,l.onError&&(l.onError=tr.batchCalls(l.onError)),l.onSuccess&&(l.onSuccess=tr.batchCalls(l.onSuccess)),l.onSettled&&(l.onSettled=tr.batchCalls(l.onSettled)),l.suspense&&(typeof l.staleTime!="number"&&(l.staleTime=1e3),l.cacheTime===0&&(l.cacheTime=1)),(l.suspense||l.useErrorBoundary)&&(u.isReset()||(l.retryOnMount=!1));var d=Ae.useState(function(){return new e(o,l)}),h=d[0],g=h.getOptimisticResult(l);if(Ae.useEffect(function(){n.current=!0,u.clearReset();var y=h.subscribe(tr.batchCalls(function(){n.current&&i(function(w){return w+1})}));return h.updateResult(),function(){n.current=!1,y()}},[u,h]),Ae.useEffect(function(){h.setOptions(l,{listeners:!1})},[l,h]),l.suspense&&g.isLoading)throw h.fetchOptimistic(l).then(function(y){var w=y.data;l.onSuccess==null||l.onSuccess(w),l.onSettled==null||l.onSettled(w,null)}).catch(function(y){u.clearReset(),l.onError==null||l.onError(y),l.onSettled==null||l.onSettled(void 0,y)});if(g.isError&&!u.isReset()&&!g.isFetching&&rI(l.suspense,l.useErrorBoundary,[g.error,h.getCurrentQuery()]))throw g.error;return l.notifyOnChangeProps==="tracked"&&(g=h.trackResult(g,l)),g}function Yo(t,e,n){var r=zw(t,e,n);return cL(r,eL)}var n1={exports:{}};/** * @license * Lodash * Copyright OpenJS Foundation and other contributors * Released under MIT license * Based on Underscore.js 1.8.3 * Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors - */var LF=k0.exports,O4;function UF(){return O4||(O4=1,(function(t,e){(function(){var n,r="4.17.21",i=200,o="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",u="Expected a function",l="Invalid `variable` option passed into `_.template`",d="__lodash_hash_undefined__",h=500,g="__lodash_placeholder__",y=1,w=2,v=4,C=1,E=2,$=1,O=2,_=4,R=8,k=16,P=32,L=64,F=128,q=256,Y=512,X=30,ue="...",me=800,te=16,be=1,we=2,B=3,V=1/0,H=9007199254740991,ie=17976931348623157e292,G=NaN,Q=4294967295,he=Q-1,$e=Q>>>1,Ce=[["ary",F],["bind",$],["bindKey",O],["curry",R],["curryRight",k],["flip",Y],["partial",P],["partialRight",L],["rearg",q]],Be="[object Arguments]",Ie="[object Array]",tt="[object AsyncFunction]",ke="[object Boolean]",Ke="[object Date]",He="[object DOMException]",ut="[object Error]",pt="[object Function]",bt="[object GeneratorFunction]",gt="[object Map]",Ut="[object Number]",Gt="[object Null]",Tt="[object Object]",en="[object Promise]",xn="[object Proxy]",Dt="[object RegExp]",Pt="[object Set]",pe="[object String]",ze="[object Symbol]",Ge="[object Undefined]",Je="[object WeakMap]",ht="[object WeakSet]",j="[object ArrayBuffer]",A="[object DataView]",M="[object Float32Array]",J="[object Float64Array]",re="[object Int8Array]",ge="[object Int16Array]",Ee="[object Int32Array]",rt="[object Uint8Array]",Wt="[object Uint8ClampedArray]",ae="[object Uint16Array]",ce="[object Uint32Array]",nt=/\b__p \+= '';/g,Ht=/\b(__p \+=) '' \+/g,ln=/(__e\(.*?\)|\b__t\)) \+\n'';/g,wt=/&(?:amp|lt|gt|quot|#39);/g,Ur=/[&<>"']/g,tn=RegExp(wt.source),tr=RegExp(Ur.source),On=/<%-([\s\S]+?)%>/g,Li=/<%([\s\S]+?)%>/g,ca=/<%=([\s\S]+?)%>/g,Ar=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Fs=/^\w*$/,uo=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Ls=/[\\^$.*+?()[\]{}|]/g,Ei=RegExp(Ls.source),Xr=/^\s+/,lo=/\s/,Ui=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,Ko=/\{\n\/\* \[wrapped with (.+)\] \*/,In=/,? & /,Mn=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,An=/[()=,{}\[\]\/\s]/,Ze=/\\(\\)?/g,xi=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,Us=/\w*$/,Yo=/^[-+]0x[0-9a-f]+$/i,co=/^0b[01]+$/i,jr=/^\[object .+?Constructor\]$/,Aa=/^0o[0-7]+$/i,Oi=/^(?:0|[1-9]\d*)$/,ji=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,Ra=/($^)/,js=/['\n\r\u2028\u2029\\]/g,kn="\\ud800-\\udfff",Zf="\\u0300-\\u036f",sm="\\ufe20-\\ufe2f",Jo="\\u20d0-\\u20ff",Bi=Zf+sm+Jo,Br="\\u2700-\\u27bf",Bl="a-z\\xdf-\\xf6\\xf8-\\xff",um="\\xac\\xb1\\xd7\\xf7",ed="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",wy="\\u2000-\\u206f",Nu=" \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",Ti="A-Z\\xc0-\\xd6\\xd8-\\xde",fa="\\ufe0e\\ufe0f",Zr=um+ed+wy+Nu,ql="['’]",Bs="["+kn+"]",fo="["+Zr+"]",ho="["+Bi+"]",Mu="\\d+",Sy="["+Br+"]",ei="["+Bl+"]",Hl="[^"+kn+Zr+Mu+Br+Bl+Ti+"]",zl="\\ud83c[\\udffb-\\udfff]",td="(?:"+ho+"|"+zl+")",Qo="[^"+kn+"]",Vl="(?:\\ud83c[\\udde6-\\uddff]){2}",Gl="[\\ud800-\\udbff][\\udc00-\\udfff]",qi="["+Ti+"]",Wl="\\u200d",Kl="(?:"+ei+"|"+Hl+")",Yl="(?:"+qi+"|"+Hl+")",qs="(?:"+ql+"(?:d|ll|m|re|s|t|ve))?",lm="(?:"+ql+"(?:D|LL|M|RE|S|T|VE))?",nd=td+"?",ku="["+fa+"]?",rd="(?:"+Wl+"(?:"+[Qo,Vl,Gl].join("|")+")"+ku+nd+")*",Hs="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",Xo="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",Zo=ku+nd+rd,cm="(?:"+[Sy,Vl,Gl].join("|")+")"+Zo,id="(?:"+[Qo+ho+"?",ho,Vl,Gl,Bs].join("|")+")",ad=RegExp(ql,"g"),Hi=RegExp(ho,"g"),es=RegExp(zl+"(?="+zl+")|"+id+Zo,"g"),Du=RegExp([qi+"?"+ei+"+"+qs+"(?="+[fo,qi,"$"].join("|")+")",Yl+"+"+lm+"(?="+[fo,qi+Kl,"$"].join("|")+")",qi+"?"+Kl+"+"+qs,qi+"+"+lm,Xo,Hs,Mu,cm].join("|"),"g"),Pa=RegExp("["+Wl+kn+Bi+fa+"]"),zs=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,po=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],fm=-1,on={};on[M]=on[J]=on[re]=on[ge]=on[Ee]=on[rt]=on[Wt]=on[ae]=on[ce]=!0,on[Be]=on[Ie]=on[j]=on[ke]=on[A]=on[Ke]=on[ut]=on[pt]=on[gt]=on[Ut]=on[Tt]=on[Dt]=on[Pt]=on[pe]=on[Je]=!1;var sn={};sn[Be]=sn[Ie]=sn[j]=sn[A]=sn[ke]=sn[Ke]=sn[M]=sn[J]=sn[re]=sn[ge]=sn[Ee]=sn[gt]=sn[Ut]=sn[Tt]=sn[Dt]=sn[Pt]=sn[pe]=sn[ze]=sn[rt]=sn[Wt]=sn[ae]=sn[ce]=!0,sn[ut]=sn[pt]=sn[Je]=!1;var dm={À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",Ç:"C",ç:"c",Ð:"D",ð:"d",È:"E",É:"E",Ê:"E",Ë:"E",è:"e",é:"e",ê:"e",ë:"e",Ì:"I",Í:"I",Î:"I",Ï:"I",ì:"i",í:"i",î:"i",ï:"i",Ñ:"N",ñ:"n",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ù:"U",Ú:"U",Û:"U",Ü:"U",ù:"u",ú:"u",û:"u",ü:"u",Ý:"Y",ý:"y",ÿ:"y",Æ:"Ae",æ:"ae",Þ:"Th",þ:"th",ß:"ss",Ā:"A",Ă:"A",Ą:"A",ā:"a",ă:"a",ą:"a",Ć:"C",Ĉ:"C",Ċ:"C",Č:"C",ć:"c",ĉ:"c",ċ:"c",č:"c",Ď:"D",Đ:"D",ď:"d",đ:"d",Ē:"E",Ĕ:"E",Ė:"E",Ę:"E",Ě:"E",ē:"e",ĕ:"e",ė:"e",ę:"e",ě:"e",Ĝ:"G",Ğ:"G",Ġ:"G",Ģ:"G",ĝ:"g",ğ:"g",ġ:"g",ģ:"g",Ĥ:"H",Ħ:"H",ĥ:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Į:"I",İ:"I",ĩ:"i",ī:"i",ĭ:"i",į:"i",ı:"i",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",ĸ:"k",Ĺ:"L",Ļ:"L",Ľ:"L",Ŀ:"L",Ł:"L",ĺ:"l",ļ:"l",ľ:"l",ŀ:"l",ł:"l",Ń:"N",Ņ:"N",Ň:"N",Ŋ:"N",ń:"n",ņ:"n",ň:"n",ŋ:"n",Ō:"O",Ŏ:"O",Ő:"O",ō:"o",ŏ:"o",ő:"o",Ŕ:"R",Ŗ:"R",Ř:"R",ŕ:"r",ŗ:"r",ř:"r",Ś:"S",Ŝ:"S",Ş:"S",Š:"S",ś:"s",ŝ:"s",ş:"s",š:"s",Ţ:"T",Ť:"T",Ŧ:"T",ţ:"t",ť:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Ů:"U",Ű:"U",Ų:"U",ũ:"u",ū:"u",ŭ:"u",ů:"u",ű:"u",ų:"u",Ŵ:"W",ŵ:"w",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Ź:"Z",Ż:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",IJ:"IJ",ij:"ij",Œ:"Oe",œ:"oe",ʼn:"'n",ſ:"s"},qr={"&":"&","<":"<",">":">",'"':""","'":"'"},zi={"&":"&","<":"<",">":">",""":'"',"'":"'"},Jl={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},mo=parseFloat,od=parseInt,De=typeof Ef=="object"&&Ef&&Ef.Object===Object&&Ef,qe=typeof self=="object"&&self&&self.Object===Object&&self,We=De||qe||Function("return this")(),it=e&&!e.nodeType&&e,_t=it&&!0&&t&&!t.nodeType&&t,cn=_t&&_t.exports===it,Rn=cn&&De.process,nn=(function(){try{var le=_t&&_t.require&&_t.require("util").types;return le||Rn&&Rn.binding&&Rn.binding("util")}catch{}})(),hr=nn&&nn.isArrayBuffer,Rr=nn&&nn.isDate,ts=nn&&nn.isMap,hm=nn&&nn.isRegExp,Ql=nn&&nn.isSet,Xl=nn&&nn.isTypedArray;function Hr(le,xe,Se){switch(Se.length){case 0:return le.call(xe);case 1:return le.call(xe,Se[0]);case 2:return le.call(xe,Se[0],Se[1]);case 3:return le.call(xe,Se[0],Se[1],Se[2])}return le.apply(xe,Se)}function s3(le,xe,Se,Xe){for(var yt=-1,zt=le==null?0:le.length;++yt-1}function Cy(le,xe,Se){for(var Xe=-1,yt=le==null?0:le.length;++Xe-1;);return Se}function rc(le,xe){for(var Se=le.length;Se--&&Zl(xe,le[Se],0)>-1;);return Se}function p3(le,xe){for(var Se=le.length,Xe=0;Se--;)le[Se]===xe&&++Xe;return Xe}var wm=ym(dm),cb=ym(qr);function fb(le){return"\\"+Jl[le]}function Ty(le,xe){return le==null?n:le[xe]}function Gs(le){return Pa.test(le)}function db(le){return zs.test(le)}function hb(le){for(var xe,Se=[];!(xe=le.next()).done;)Se.push(xe.value);return Se}function Sm(le){var xe=-1,Se=Array(le.size);return le.forEach(function(Xe,yt){Se[++xe]=[yt,Xe]}),Se}function pb(le,xe){return function(Se){return le(xe(Se))}}function Ws(le,xe){for(var Se=-1,Xe=le.length,yt=0,zt=[];++Se-1}function w3(f,p){var S=this.__data__,I=Gu(S,f);return I<0?(++this.size,S.push([f,p])):S[I][1]=p,this}Eo.prototype.clear=Qs,Eo.prototype.delete=cs,Eo.prototype.get=pr,Eo.prototype.has=Rm,Eo.prototype.set=w3;function fs(f){var p=-1,S=f==null?0:f.length;for(this.clear();++p=p?f:p)),f}function an(f,p,S,I,U,K){var ee,ne=p&y,fe=p&w,Pe=p&v;if(S&&(ee=U?S(f,I,U,K):S(f)),ee!==n)return ee;if(!Un(f))return f;var Me=Ot(f);if(Me){if(ee=Qu(f),!ne)return ii(f,ee)}else{var je=sr(f),Ye=je==pt||je==bt;if(pu(f))return rv(f,ne);if(je==Tt||je==Be||Ye&&!U){if(ee=fe||Ye?{}:Ri(f),!ne)return fe?Ed(f,Pm(ee,f)):qb(f,Zs(ee,f))}else{if(!sn[je])return U?f:{};ee=zb(f,je,ne)}}K||(K=new ka);var ot=K.get(f);if(ot)return ot;K.set(f,ee),No(f)?f.forEach(function(Ct){ee.add(an(Ct,p,S,Ct,f,K))}):_2(f)&&f.forEach(function(Ct,Jt){ee.set(Jt,an(Ct,p,S,Jt,f,K))});var St=Pe?fe?Td:_o:fe?si:yr,Bt=Me?n:St(f);return da(Bt||f,function(Ct,Jt){Bt&&(Jt=Ct,Ct=f[Jt]),Fn(ee,Jt,an(Ct,p,S,Jt,f,K))}),ee}function Uy(f){var p=yr(f);return function(S){return Im(S,f,p)}}function Im(f,p,S){var I=S.length;if(f==null)return!I;for(f=Cn(f);I--;){var U=S[I],K=p[U],ee=f[U];if(ee===n&&!(U in f)||!K(ee))return!1}return!0}function jy(f,p,S){if(typeof f!="function")throw new Wi(u);return Gr(function(){f.apply(n,S)},p)}function fc(f,p,S,I){var U=-1,K=pm,ee=!0,ne=f.length,fe=[],Pe=p.length;if(!ne)return fe;S&&(p=Dn(p,Vi(S))),I?(K=Cy,ee=!1):p.length>=i&&(K=tc,ee=!1,p=new ds(p));e:for(;++UU?0:U+S),I=I===n||I>U?U:Nt(I),I<0&&(I+=U),I=S>I?0:e0(I);S0&&S(ne)?p>1?or(ne,p-1,S,I,U):ns(U,ne):I||(U[U.length]=ne)}return U}var Ku=uv(),gd=uv(!0);function wa(f,p){return f&&Ku(f,p,yr)}function Da(f,p){return f&&gd(f,p,yr)}function Yu(f,p){return go(p,function(S){return $s(f[S])})}function hs(f,p){p=ms(p,f);for(var S=0,I=p.length;f!=null&&Sp}function Ob(f,p){return f!=null&&fn.call(f,p)}function Tb(f,p){return f!=null&&p in Cn(f)}function _b(f,p,S){return f>=$t(p,S)&&f=120&&Me.length>=120)?new ds(ee&&Me):n}Me=f[0];var je=-1,Ye=ne[0];e:for(;++je-1;)ne!==f&&ni.call(ne,fe,1),ni.call(f,fe,1);return f}function Qy(f,p){for(var S=f?p.length:0,I=S-1;S--;){var U=p[S];if(S==I||U!==K){var K=U;Ha(U)?ni.call(f,U,1):xo(f,U)}}return f}function Um(f,p){return f+va(Om()*(p-f+1))}function E3(f,p,S,I){for(var U=-1,K=Kt(ya((p-f)/(S||1)),0),ee=Se(K);K--;)ee[I?K:++U]=f,f+=S;return ee}function wd(f,p){var S="";if(!f||p<1||p>H)return S;do p%2&&(S+=f),p=va(p/2),p&&(f+=f);while(p);return S}function Mt(f,p){return Zi(Ao(f,p,un),f+"")}function Lb(f){return Ly(aa(f))}function Xy(f,p){var S=aa(f);return Pd(S,Wu(p,0,S.length))}function gc(f,p,S,I){if(!Un(f))return f;p=ms(p,f);for(var U=-1,K=p.length,ee=K-1,ne=f;ne!=null&&++UU?0:U+p),S=S>U?U:S,S<0&&(S+=U),U=p>S?0:S-p>>>0,p>>>=0;for(var K=Se(U);++I>>1,ee=f[K];ee!==null&&!ia(ee)&&(S?ee<=p:ee=i){var Pe=p?null:ou(f);if(Pe)return Cm(Pe);ee=!1,U=tc,fe=new ds}else fe=p?[]:ne;e:for(;++I=I?f:Ji(f,p,S)}var Cd=ma||function(f){return We.clearTimeout(f)};function rv(f,p){if(p)return f.slice();var S=f.length,I=Py?Py(S):new f.constructor(S);return f.copy(I),I}function $d(f){var p=new f.constructor(f.byteLength);return new Na(p).set(new Na(f)),p}function jb(f,p){var S=p?$d(f.buffer):f.buffer;return new f.constructor(S,f.byteOffset,f.byteLength)}function Bb(f){var p=new f.constructor(f.source,Us.exec(f));return p.lastIndex=f.lastIndex,p}function T3(f){return us?Cn(us.call(f)):{}}function iv(f,p){var S=p?$d(f.buffer):f.buffer;return new f.constructor(S,f.byteOffset,f.length)}function gr(f,p){if(f!==p){var S=f!==n,I=f===null,U=f===f,K=ia(f),ee=p!==n,ne=p===null,fe=p===p,Pe=ia(p);if(!ne&&!Pe&&!K&&f>p||K&&ee&&fe&&!ne&&!Pe||I&&ee&&fe||!S&&fe||!U)return 1;if(!I&&!K&&!Pe&&f=ne)return fe;var Pe=S[I];return fe*(Pe=="desc"?-1:1)}}return f.index-p.index}function av(f,p,S,I){for(var U=-1,K=f.length,ee=S.length,ne=-1,fe=p.length,Pe=Kt(K-ee,0),Me=Se(fe+Pe),je=!I;++ne1?S[U-1]:n,ee=U>2?S[2]:n;for(K=f.length>3&&typeof K=="function"?(U--,K):n,ee&&Ir(S[0],S[1],ee)&&(K=U<3?n:K,U=1),p=Cn(p);++I-1?U[K?p[ee]:ee]:n}}function zm(f){return To(function(p){var S=p.length,I=S,U=Ki.prototype.thru;for(f&&p.reverse();I--;){var K=p[I];if(typeof K!="function")throw new Wi(u);if(U&&!ee&&Ba(K)=="wrapper")var ee=new Ki([],!0)}for(I=ee?I:S;++I1&&rn.reverse(),Me&&fene))return!1;var Pe=K.get(f),Me=K.get(p);if(Pe&&Me)return Pe==p&&Me==f;var je=-1,Ye=!0,ot=S&E?new ds:n;for(K.set(f,p),K.set(p,f);++je1?"& ":"")+p[I],p=p.join(S>2?", ":" "),f.replace(Ui,`{ + */var fL=n1.exports,e_;function dL(){return e_||(e_=1,(function(t,e){(function(){var n,r="4.17.21",i=200,o="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",u="Expected a function",l="Invalid `variable` option passed into `_.template`",d="__lodash_hash_undefined__",h=500,g="__lodash_placeholder__",y=1,w=2,b=4,C=1,E=2,$=1,O=2,_=4,P=8,k=16,R=32,L=64,F=128,q=256,Y=512,Q=30,ue="...",me=800,te=16,be=1,Se=2,j=3,V=1/0,H=9007199254740991,ie=17976931348623157e292,G=NaN,X=4294967295,fe=X-1,$e=X>>>1,Ce=[["ary",F],["bind",$],["bindKey",O],["curry",P],["curryRight",k],["flip",Y],["partial",R],["partialRight",L],["rearg",q]],je="[object Arguments]",Pe="[object Array]",tt="[object AsyncFunction]",ke="[object Boolean]",Ke="[object Date]",He="[object DOMException]",ut="[object Error]",pt="[object Function]",bt="[object GeneratorFunction]",gt="[object Map]",Ut="[object Number]",Gt="[object Null]",Tt="[object Object]",en="[object Promise]",xn="[object Proxy]",Dt="[object RegExp]",Pt="[object Set]",pe="[object String]",ze="[object Symbol]",Ge="[object Undefined]",Je="[object WeakMap]",ht="[object WeakSet]",B="[object ArrayBuffer]",A="[object DataView]",M="[object Float32Array]",J="[object Float64Array]",re="[object Int8Array]",ge="[object Int16Array]",Ee="[object Int32Array]",rt="[object Uint8Array]",Wt="[object Uint8ClampedArray]",ae="[object Uint16Array]",ce="[object Uint32Array]",nt=/\b__p \+= '';/g,Ht=/\b(__p \+=) '' \+/g,ln=/(__e\(.*?\)|\b__t\)) \+\n'';/g,wt=/&(?:amp|lt|gt|quot|#39);/g,jr=/[&<>"']/g,tn=RegExp(wt.source),nr=RegExp(jr.source),On=/<%-([\s\S]+?)%>/g,ji=/<%([\s\S]+?)%>/g,ga=/<%=([\s\S]+?)%>/g,Pr=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Bs=/^\w*$/,co=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,js=/[\\^$.*+?()[\]{}|]/g,Oi=RegExp(js.source),Zr=/^\s+/,fo=/\s/,qi=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,Qo=/\{\n\/\* \[wrapped with (.+)\] \*/,In=/,? & /,Mn=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,An=/[()=,{}\[\]\/\s]/,Ze=/\\(\\)?/g,Ti=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,qs=/\w*$/,Xo=/^[-+]0x[0-9a-f]+$/i,ho=/^0b[01]+$/i,qr=/^\[object .+?Constructor\]$/,ka=/^0o[0-7]+$/i,_i=/^(?:0|[1-9]\d*)$/,Hi=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,Da=/($^)/,Hs=/['\n\r\u2028\u2029\\]/g,kn="\\ud800-\\udfff",ld="\\u0300-\\u036f",Am="\\ufe20-\\ufe2f",Zo="\\u20d0-\\u20ff",zi=ld+Am+Zo,Hr="\\u2700-\\u27bf",Wl="a-z\\xdf-\\xf6\\xf8-\\xff",Rm="\\xac\\xb1\\xd7\\xf7",cd="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",jy="\\u2000-\\u206f",Fu=" \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",Ai="A-Z\\xc0-\\xd6\\xd8-\\xde",ya="\\ufe0e\\ufe0f",ei=Rm+cd+jy+Fu,Kl="['’]",zs="["+kn+"]",po="["+ei+"]",mo="["+zi+"]",Lu="\\d+",qy="["+Hr+"]",ti="["+Wl+"]",Yl="[^"+kn+ei+Lu+Hr+Wl+Ai+"]",Jl="\\ud83c[\\udffb-\\udfff]",fd="(?:"+mo+"|"+Jl+")",es="[^"+kn+"]",Ql="(?:\\ud83c[\\udde6-\\uddff]){2}",Xl="[\\ud800-\\udbff][\\udc00-\\udfff]",Vi="["+Ai+"]",Zl="\\u200d",ec="(?:"+ti+"|"+Yl+")",tc="(?:"+Vi+"|"+Yl+")",Vs="(?:"+Kl+"(?:d|ll|m|re|s|t|ve))?",Pm="(?:"+Kl+"(?:D|LL|M|RE|S|T|VE))?",dd=fd+"?",Uu="["+ya+"]?",hd="(?:"+Zl+"(?:"+[es,Ql,Xl].join("|")+")"+Uu+dd+")*",Gs="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",ts="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",ns=Uu+dd+hd,Im="(?:"+[qy,Ql,Xl].join("|")+")"+ns,pd="(?:"+[es+mo+"?",mo,Ql,Xl,zs].join("|")+")",md=RegExp(Kl,"g"),Gi=RegExp(mo,"g"),rs=RegExp(Jl+"(?="+Jl+")|"+pd+ns,"g"),Bu=RegExp([Vi+"?"+ti+"+"+Vs+"(?="+[po,Vi,"$"].join("|")+")",tc+"+"+Pm+"(?="+[po,Vi+ec,"$"].join("|")+")",Vi+"?"+ec+"+"+Vs,Vi+"+"+Pm,ts,Gs,Lu,Im].join("|"),"g"),Fa=RegExp("["+Zl+kn+zi+ya+"]"),Ws=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,go=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],Nm=-1,on={};on[M]=on[J]=on[re]=on[ge]=on[Ee]=on[rt]=on[Wt]=on[ae]=on[ce]=!0,on[je]=on[Pe]=on[B]=on[ke]=on[A]=on[Ke]=on[ut]=on[pt]=on[gt]=on[Ut]=on[Tt]=on[Dt]=on[Pt]=on[pe]=on[Je]=!1;var sn={};sn[je]=sn[Pe]=sn[B]=sn[A]=sn[ke]=sn[Ke]=sn[M]=sn[J]=sn[re]=sn[ge]=sn[Ee]=sn[gt]=sn[Ut]=sn[Tt]=sn[Dt]=sn[Pt]=sn[pe]=sn[ze]=sn[rt]=sn[Wt]=sn[ae]=sn[ce]=!0,sn[ut]=sn[pt]=sn[Je]=!1;var Mm={À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",Ç:"C",ç:"c",Ð:"D",ð:"d",È:"E",É:"E",Ê:"E",Ë:"E",è:"e",é:"e",ê:"e",ë:"e",Ì:"I",Í:"I",Î:"I",Ï:"I",ì:"i",í:"i",î:"i",ï:"i",Ñ:"N",ñ:"n",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ù:"U",Ú:"U",Û:"U",Ü:"U",ù:"u",ú:"u",û:"u",ü:"u",Ý:"Y",ý:"y",ÿ:"y",Æ:"Ae",æ:"ae",Þ:"Th",þ:"th",ß:"ss",Ā:"A",Ă:"A",Ą:"A",ā:"a",ă:"a",ą:"a",Ć:"C",Ĉ:"C",Ċ:"C",Č:"C",ć:"c",ĉ:"c",ċ:"c",č:"c",Ď:"D",Đ:"D",ď:"d",đ:"d",Ē:"E",Ĕ:"E",Ė:"E",Ę:"E",Ě:"E",ē:"e",ĕ:"e",ė:"e",ę:"e",ě:"e",Ĝ:"G",Ğ:"G",Ġ:"G",Ģ:"G",ĝ:"g",ğ:"g",ġ:"g",ģ:"g",Ĥ:"H",Ħ:"H",ĥ:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Į:"I",İ:"I",ĩ:"i",ī:"i",ĭ:"i",į:"i",ı:"i",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",ĸ:"k",Ĺ:"L",Ļ:"L",Ľ:"L",Ŀ:"L",Ł:"L",ĺ:"l",ļ:"l",ľ:"l",ŀ:"l",ł:"l",Ń:"N",Ņ:"N",Ň:"N",Ŋ:"N",ń:"n",ņ:"n",ň:"n",ŋ:"n",Ō:"O",Ŏ:"O",Ő:"O",ō:"o",ŏ:"o",ő:"o",Ŕ:"R",Ŗ:"R",Ř:"R",ŕ:"r",ŗ:"r",ř:"r",Ś:"S",Ŝ:"S",Ş:"S",Š:"S",ś:"s",ŝ:"s",ş:"s",š:"s",Ţ:"T",Ť:"T",Ŧ:"T",ţ:"t",ť:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Ů:"U",Ű:"U",Ų:"U",ũ:"u",ū:"u",ŭ:"u",ů:"u",ű:"u",ų:"u",Ŵ:"W",ŵ:"w",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Ź:"Z",Ż:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",IJ:"IJ",ij:"ij",Œ:"Oe",œ:"oe",ʼn:"'n",ſ:"s"},zr={"&":"&","<":"<",">":">",'"':""","'":"'"},Wi={"&":"&","<":"<",">":">",""":'"',"'":"'"},nc={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},yo=parseFloat,gd=parseInt,De=typeof Nf=="object"&&Nf&&Nf.Object===Object&&Nf,qe=typeof self=="object"&&self&&self.Object===Object&&self,We=De||qe||Function("return this")(),it=e&&!e.nodeType&&e,_t=it&&!0&&t&&!t.nodeType&&t,cn=_t&&_t.exports===it,Rn=cn&&De.process,nn=(function(){try{var le=_t&&_t.require&&_t.require("util").types;return le||Rn&&Rn.binding&&Rn.binding("util")}catch{}})(),mr=nn&&nn.isArrayBuffer,Ir=nn&&nn.isDate,is=nn&&nn.isMap,km=nn&&nn.isRegExp,rc=nn&&nn.isSet,ic=nn&&nn.isTypedArray;function Vr(le,xe,we){switch(we.length){case 0:return le.call(xe);case 1:return le.call(xe,we[0]);case 2:return le.call(xe,we[0],we[1]);case 3:return le.call(xe,we[0],we[1],we[2])}return le.apply(xe,we)}function N3(le,xe,we,Xe){for(var yt=-1,zt=le==null?0:le.length;++yt-1}function Hy(le,xe,we){for(var Xe=-1,yt=le==null?0:le.length;++Xe-1;);return we}function lc(le,xe){for(var we=le.length;we--&&ac(xe,le[we],0)>-1;);return we}function B3(le,xe){for(var we=le.length,Xe=0;we--;)le[we]===xe&&++Xe;return Xe}var qm=Um(Mm),kb=Um(zr);function Db(le){return"\\"+nc[le]}function Ky(le,xe){return le==null?n:le[xe]}function Ys(le){return Fa.test(le)}function Fb(le){return Ws.test(le)}function Lb(le){for(var xe,we=[];!(xe=le.next()).done;)we.push(xe.value);return we}function Hm(le){var xe=-1,we=Array(le.size);return le.forEach(function(Xe,yt){we[++xe]=[yt,Xe]}),we}function Ub(le,xe){return function(we){return le(xe(we))}}function Js(le,xe){for(var we=-1,Xe=le.length,yt=0,zt=[];++we-1}function G3(f,p){var S=this.__data__,I=Ju(S,f);return I<0?(++this.size,S.push([f,p])):S[I][1]=p,this}Oo.prototype.clear=eu,Oo.prototype.delete=hs,Oo.prototype.get=gr,Oo.prototype.has=Xm,Oo.prototype.set=G3;function ps(f){var p=-1,S=f==null?0:f.length;for(this.clear();++p=p?f:p)),f}function an(f,p,S,I,U,K){var ee,ne=p&y,de=p&w,Ie=p&b;if(S&&(ee=U?S(f,I,U,K):S(f)),ee!==n)return ee;if(!Un(f))return f;var Me=Ot(f);if(Me){if(ee=tl(f),!ne)return ai(f,ee)}else{var Be=ur(f),Ye=Be==pt||Be==bt;if(yu(f))return Ev(f,ne);if(Be==Tt||Be==je||Ye&&!U){if(ee=de||Ye?{}:Ii(f),!ne)return de?Md(f,Zm(ee,f)):h2(f,nu(ee,f))}else{if(!sn[Be])return U?f:{};ee=m2(f,Be,ne)}}K||(K=new ja);var ot=K.get(f);if(ot)return ot;K.set(f,ee),ko(f)?f.forEach(function(Ct){ee.add(an(Ct,p,S,Ct,f,K))}):Z2(f)&&f.forEach(function(Ct,Jt){ee.set(Jt,an(Ct,p,S,Jt,f,K))});var St=Ie?de?Fd:Ro:de?ui:br,jt=Me?n:St(f);return va(jt||f,function(Ct,Jt){jt&&(Jt=Ct,Ct=f[Jt]),Fn(ee,Jt,an(Ct,p,S,Jt,f,K))}),ee}function ov(f){var p=br(f);return function(S){return eg(S,f,p)}}function eg(f,p,S){var I=S.length;if(f==null)return!I;for(f=Sn(f);I--;){var U=S[I],K=p[U],ee=f[U];if(ee===n&&!(U in f)||!K(ee))return!1}return!0}function sv(f,p,S){if(typeof f!="function")throw new Ji(u);return Kr(function(){f.apply(n,S)},p)}function yc(f,p,S,I){var U=-1,K=Dm,ee=!0,ne=f.length,de=[],Ie=p.length;if(!ne)return de;S&&(p=Dn(p,Ki(S))),I?(K=Hy,ee=!1):p.length>=i&&(K=sc,ee=!1,p=new ms(p));e:for(;++UU?0:U+S),I=I===n||I>U?U:Nt(I),I<0&&(I+=U),I=S>I?0:S0(I);S0&&S(ne)?p>1?sr(ne,p-1,S,I,U):as(U,ne):I||(U[U.length]=ne)}return U}var Xu=Av(),Od=Av(!0);function Oa(f,p){return f&&Xu(f,p,br)}function qa(f,p){return f&&Od(f,p,br)}function Zu(f,p){return vo(p,function(S){return Os(f[S])})}function gs(f,p){p=vs(p,f);for(var S=0,I=p.length;f!=null&&Sp}function Qb(f,p){return f!=null&&fn.call(f,p)}function Xb(f,p){return f!=null&&p in Sn(f)}function Zb(f,p,S){return f>=$t(p,S)&&f=120&&Me.length>=120)?new ms(ee&&Me):n}Me=f[0];var Be=-1,Ye=ne[0];e:for(;++Be-1;)ne!==f&&ri.call(ne,de,1),ri.call(f,de,1);return f}function vv(f,p){for(var S=f?p.length:0,I=S-1;S--;){var U=p[S];if(S==I||U!==K){var K=U;Ya(U)?ri.call(f,U,1):To(f,U)}}return f}function sg(f,p){return f+Ea(Km()*(p-f+1))}function J3(f,p,S,I){for(var U=-1,K=Kt($a((p-f)/(S||1)),0),ee=we(K);K--;)ee[I?K:++U]=f,f+=S;return ee}function Rd(f,p){var S="";if(!f||p<1||p>H)return S;do p%2&&(S+=f),p=Ea(p/2),p&&(f+=f);while(p);return S}function Mt(f,p){return na(Po(f,p,un),f+"")}function l2(f){return av(ua(f))}function bv(f,p){var S=ua(f);return jd(S,Qu(p,0,S.length))}function Cc(f,p,S,I){if(!Un(f))return f;p=vs(p,f);for(var U=-1,K=p.length,ee=K-1,ne=f;ne!=null&&++UU?0:U+p),S=S>U?U:S,S<0&&(S+=U),U=p>S?0:S-p>>>0,p>>>=0;for(var K=we(U);++I>>1,ee=f[K];ee!==null&&!sa(ee)&&(S?ee<=p:ee=i){var Ie=p?null:lu(f);if(Ie)return zm(Ie);ee=!1,U=sc,de=new ms}else de=p?[]:ne;e:for(;++I=I?f:Zi(f,p,S)}var Id=Sa||function(f){return We.clearTimeout(f)};function Ev(f,p){if(p)return f.slice();var S=f.length,I=Xy?Xy(S):new f.constructor(S);return f.copy(I),I}function Nd(f){var p=new f.constructor(f.byteLength);return new Ua(p).set(new Ua(f)),p}function f2(f,p){var S=p?Nd(f.buffer):f.buffer;return new f.constructor(S,f.byteOffset,f.byteLength)}function d2(f){var p=new f.constructor(f.source,qs.exec(f));return p.lastIndex=f.lastIndex,p}function Z3(f){return fs?Sn(fs.call(f)):{}}function xv(f,p){var S=p?Nd(f.buffer):f.buffer;return new f.constructor(S,f.byteOffset,f.length)}function vr(f,p){if(f!==p){var S=f!==n,I=f===null,U=f===f,K=sa(f),ee=p!==n,ne=p===null,de=p===p,Ie=sa(p);if(!ne&&!Ie&&!K&&f>p||K&&ee&&de&&!ne&&!Ie||I&&ee&&de||!S&&de||!U)return 1;if(!I&&!K&&!Ie&&f=ne)return de;var Ie=S[I];return de*(Ie=="desc"?-1:1)}}return f.index-p.index}function Ov(f,p,S,I){for(var U=-1,K=f.length,ee=S.length,ne=-1,de=p.length,Ie=Kt(K-ee,0),Me=we(de+Ie),Be=!I;++ne1?S[U-1]:n,ee=U>2?S[2]:n;for(K=f.length>3&&typeof K=="function"?(U--,K):n,ee&&Mr(S[0],S[1],ee)&&(K=U<3?n:K,U=1),p=Sn(p);++I-1?U[K?p[ee]:ee]:n}}function dg(f){return Ao(function(p){var S=p.length,I=S,U=Qi.prototype.thru;for(f&&p.reverse();I--;){var K=p[I];if(typeof K!="function")throw new Ji(u);if(U&&!ee&&Wa(K)=="wrapper")var ee=new Qi([],!0)}for(I=ee?I:S;++I1&&rn.reverse(),Me&&dene))return!1;var Ie=K.get(f),Me=K.get(p);if(Ie&&Me)return Ie==p&&Me==f;var Be=-1,Ye=!0,ot=S&E?new ms:n;for(K.set(f,p),K.set(p,f);++Be1?"& ":"")+p[I],p=p.join(S>2?", ":" "),f.replace(qi,`{ /* [wrapped with `+p+`] */ -`)}function Gb(f){return Ot(f)||hu(f)||!!(ju&&f&&f[ju])}function Ha(f,p){var S=typeof f;return p=p??H,!!p&&(S=="number"||S!="symbol"&&Oi.test(f))&&f>-1&&f%1==0&&f0){if(++p>=me)return arguments[0]}else p=0;return f.apply(n,arguments)}}function Pd(f,p){var S=-1,I=f.length,U=I-1;for(p=p===n?I:p;++S1?f[p-1]:n;return S=typeof S=="function"?(f.pop(),S):n,Ld(f,S)});function Wr(f){var p=z(f);return p.__chain__=!0,p}function l2(f,p){return p(f),f}function Ic(f,p){return p(f)}var c2=To(function(f){var p=f.length,S=p?f[0]:0,I=this.__wrapped__,U=function(K){return eu(K,f)};return p>1||this.__actions__.length||!(I instanceof At)||!Ha(S)?this.thru(U):(I=I.slice(S,+S+(p?1:0)),I.__actions__.push({func:Ic,args:[U],thisArg:n}),new Ki(I,this.__chain__).thru(function(K){return p&&!K.length&&K.push(n),K}))});function I3(){return Wr(this)}function Ss(){return new Ki(this.value(),this.__chain__)}function tg(){this.__values__===n&&(this.__values__=P2(this.value()));var f=this.__index__>=this.__values__.length,p=f?n:this.__values__[this.__index__++];return{done:f,value:p}}function Pv(){return this}function Nc(f){for(var p,S=this;S instanceof dd;){var I=Qm(S);I.__index__=0,I.__values__=n,p?U.__wrapped__=I:p=I;var U=I;S=S.__wrapped__}return U.__wrapped__=f,p}function f2(){var f=this.__wrapped__;if(f instanceof At){var p=f;return this.__actions__.length&&(p=new At(this)),p=p.reverse(),p.__actions__.push({func:Ic,args:[$n],thisArg:n}),new Ki(p,this.__chain__)}return this.thru($n)}function d2(){return jm(this.__wrapped__,this.__actions__)}var h2=Sc(function(f,p,S){fn.call(f,S)?++f[S]:Yi(f,S,1)});function Iv(f,p,S){var I=Ot(f)?ab:By;return S&&Ir(f,p,S)&&(p=n),I(f,lt(p,3))}function Nv(f,p){var S=Ot(f)?go:rr;return S(f,lt(p,3))}var N3=Hm(wv),M3=Hm(n2);function k3(f,p){return or(Cs(f,p),1)}function p2(f,p){return or(Cs(f,p),V)}function m2(f,p,S){return S=S===n?1:Nt(S),or(Cs(f,p),S)}function tl(f,p){var S=Ot(f)?da:tu;return S(f,lt(p,3))}function Bd(f,p){var S=Ot(f)?u3:Nm;return S(f,lt(p,3))}var g2=Sc(function(f,p,S){fn.call(f,S)?f[S].push(p):Yi(f,S,[p])});function y2(f,p,S,I){f=It(f)?f:aa(f),S=S&&!I?Nt(S):0;var U=f.length;return S<0&&(S=Kt(U+S,0)),fg(f)?S<=U&&f.indexOf(p,S)>-1:!!U&&Zl(f,p,S)>-1}var D3=Mt(function(f,p,S){var I=-1,U=typeof p=="function",K=It(f)?Se(f.length):[];return tu(f,function(ee){K[++I]=U?Hr(p,ee,S):hc(ee,p,S)}),K}),v2=Sc(function(f,p,S){Yi(f,S,p)});function Cs(f,p){var S=Ot(f)?Dn:yd;return S(f,lt(p,3))}function b2(f,p,S,I){return f==null?[]:(Ot(p)||(p=p==null?[]:[p]),S=I?n:S,Ot(S)||(S=S==null?[]:[S]),Ky(f,p,S))}var Tn=Sc(function(f,p,S){f[S?0:1].push(p)},function(){return[[],[]]});function Mv(f,p,S){var I=Ot(f)?$y:Oy,U=arguments.length<3;return I(f,lt(p,4),S,U,tu)}function F3(f,p,S){var I=Ot(f)?l3:Oy,U=arguments.length<3;return I(f,lt(p,4),S,U,Nm)}function w2(f,p){var S=Ot(f)?go:rr;return S(f,rg(lt(p,3)))}function L3(f){var p=Ot(f)?Ly:Lb;return p(f)}function U3(f,p,S){(S?Ir(f,p,S):p===n)?p=1:p=Nt(p);var I=Ot(f)?Xs:Xy;return I(f,p)}function j3(f){var p=Ot(f)?Ft:O3;return p(f)}function ng(f){if(f==null)return 0;if(It(f))return fg(f)?yo(f):f.length;var p=sr(f);return p==gt||p==Pt?f.size:nu(f).length}function Mc(f,p,S){var I=Ot(f)?Ey:Sd;return S&&Ir(f,p,S)&&(p=n),I(f,lt(p,3))}var kv=Mt(function(f,p){if(f==null)return[];var S=p.length;return S>1&&Ir(f,p[0],p[1])?p=[]:S>2&&Ir(p[0],p[1],p[2])&&(p=[p[0]]),Ky(f,or(p,1),[])}),nl=ga||function(){return We.Date.now()};function Dv(f,p){if(typeof p!="function")throw new Wi(u);return f=Nt(f),function(){if(--f<1)return p.apply(this,arguments)}}function du(f,p,S){return p=S?n:p,p=f&&p==null?f.length:p,ja(f,F,n,n,n,n,p)}function za(f,p){var S;if(typeof p!="function")throw new Wi(u);return f=Nt(f),function(){return--f>0&&(S=p.apply(this,arguments)),f<=1&&(p=n),S}}var rl=Mt(function(f,p,S){var I=$;if(S.length){var U=Ws(S,Qi(rl));I|=P}return ja(f,I,p,S,U)}),S2=Mt(function(f,p,S){var I=$|O;if(S.length){var U=Ws(S,Qi(S2));I|=P}return ja(p,I,f,S,U)});function Fv(f,p,S){p=S?n:p;var I=ja(f,R,n,n,n,n,n,p);return I.placeholder=Fv.placeholder,I}function Lv(f,p,S){p=S?n:p;var I=ja(f,k,n,n,n,n,n,p);return I.placeholder=Lv.placeholder,I}function Uv(f,p,S){var I,U,K,ee,ne,fe,Pe=0,Me=!1,je=!1,Ye=!0;if(typeof f!="function")throw new Wi(u);p=Mr(p)||0,Un(S)&&(Me=!!S.leading,je="maxWait"in S,K=je?Kt(Mr(S.maxWait)||0,p):K,Ye="trailing"in S?!!S.trailing:Ye);function ot(vr){var Os=I,il=U;return I=U=n,Pe=vr,ee=f.apply(il,Os),ee}function St(vr){return Pe=vr,ne=Gr(Jt,p),Me?ot(vr):ee}function Bt(vr){var Os=vr-fe,il=vr-Pe,s4=p-Os;return je?$t(s4,K-il):s4}function Ct(vr){var Os=vr-fe,il=vr-Pe;return fe===n||Os>=p||Os<0||je&&il>=K}function Jt(){var vr=nl();if(Ct(vr))return rn(vr);ne=Gr(Jt,Bt(vr))}function rn(vr){return ne=n,Ye&&I?ot(vr):(I=U=n,ee)}function Wa(){ne!==n&&Cd(ne),Pe=0,I=fe=U=ne=n}function oa(){return ne===n?ee:rn(nl())}function Ka(){var vr=nl(),Os=Ct(vr);if(I=arguments,U=this,fe=vr,Os){if(ne===n)return St(fe);if(je)return Cd(ne),ne=Gr(Jt,p),ot(fe)}return ne===n&&(ne=Gr(Jt,p)),ee}return Ka.cancel=Wa,Ka.flush=oa,Ka}var B3=Mt(function(f,p){return jy(f,1,p)}),jv=Mt(function(f,p,S){return jy(f,Mr(p)||0,S)});function C2(f){return ja(f,Y)}function qd(f,p){if(typeof f!="function"||p!=null&&typeof p!="function")throw new Wi(u);var S=function(){var I=arguments,U=p?p.apply(this,I):I[0],K=S.cache;if(K.has(U))return K.get(U);var ee=f.apply(this,I);return S.cache=K.set(U,ee)||K,ee};return S.cache=new(qd.Cache||fs),S}qd.Cache=fs;function rg(f){if(typeof f!="function")throw new Wi(u);return function(){var p=arguments;switch(p.length){case 0:return!f.call(this);case 1:return!f.call(this,p[0]);case 2:return!f.call(this,p[0],p[1]);case 3:return!f.call(this,p[0],p[1],p[2])}return!f.apply(this,p)}}function Bv(f){return za(2,f)}var qv=Ub(function(f,p){p=p.length==1&&Ot(p[0])?Dn(p[0],Vi(lt())):Dn(or(p,1),Vi(lt()));var S=p.length;return Mt(function(I){for(var U=-1,K=$t(I.length,S);++U=p}),hu=Ab((function(){return arguments})())?Ab:function(f){return Xn(f)&&fn.call(f,"callee")&&!Iy.call(f,"callee")},Ot=Se.isArray,og=hr?Vi(hr):Rb;function It(f){return f!=null&&ug(f.length)&&!$s(f)}function zn(f){return Xn(f)&&It(f)}function Nr(f){return f===!0||f===!1||Xn(f)&&zr(f)==ke}var pu=bb||dC,Wv=Rr?Vi(Rr):Pb;function Kv(f){return Xn(f)&&f.nodeType===1&&!Kr(f)}function sg(f){if(f==null)return!0;if(It(f)&&(Ot(f)||typeof f=="string"||typeof f.splice=="function"||pu(f)||Ga(f)||hu(f)))return!f.length;var p=sr(f);if(p==gt||p==Pt)return!f.size;if(Jn(f))return!nu(f).length;for(var S in f)if(fn.call(f,S))return!1;return!0}function O2(f,p){return pc(f,p)}function T2(f,p,S){S=typeof S=="function"?S:n;var I=S?S(f,p):n;return I===n?pc(f,p,n,S):!!I}function Vd(f){if(!Xn(f))return!1;var p=zr(f);return p==ut||p==He||typeof f.message=="string"&&typeof f.name=="string"&&!Kr(f)}function Yv(f){return typeof f=="number"&&xm(f)}function $s(f){if(!Un(f))return!1;var p=zr(f);return p==pt||p==bt||p==tt||p==xn}function Jv(f){return typeof f=="number"&&f==Nt(f)}function ug(f){return typeof f=="number"&&f>-1&&f%1==0&&f<=H}function Un(f){var p=typeof f;return f!=null&&(p=="object"||p=="function")}function Xn(f){return f!=null&&typeof f=="object"}var _2=ts?Vi(ts):Ib;function Qv(f,p){return f===p||Fm(f,p,Ad(p))}function Xv(f,p,S){return S=typeof S=="function"?S:n,Fm(f,p,Ad(p),S)}function V3(f){return Zv(f)&&f!=+f}function G3(f){if(Wb(f))throw new yt(o);return zy(f)}function Va(f){return f===null}function A2(f){return f==null}function Zv(f){return typeof f=="number"||Xn(f)&&zr(f)==Ut}function Kr(f){if(!Xn(f)||zr(f)!=Tt)return!1;var p=Lu(f);if(p===null)return!0;var S=fn.call(p,"constructor")&&p.constructor;return typeof S=="function"&&S instanceof S&&ud.call(S)==ac}var lg=hm?Vi(hm):Nb;function cg(f){return Jv(f)&&f>=-H&&f<=H}var No=Ql?Vi(Ql):Mb;function fg(f){return typeof f=="string"||!Ot(f)&&Xn(f)&&zr(f)==pe}function ia(f){return typeof f=="symbol"||Xn(f)&&zr(f)==ze}var Ga=Xl?Vi(Xl):$3;function R2(f){return f===n}function W3(f){return Xn(f)&&sr(f)==Je}function K3(f){return Xn(f)&&zr(f)==ht}var Y3=Ec(mc),J3=Ec(function(f,p){return f<=p});function P2(f){if(!f)return[];if(It(f))return fg(f)?ha(f):ii(f);if(bo&&f[bo])return hb(f[bo]());var p=sr(f),S=p==gt?Sm:p==Pt?Cm:aa;return S(f)}function Es(f){if(!f)return f===0?f:0;if(f=Mr(f),f===V||f===-V){var p=f<0?-1:1;return p*ie}return f===f?f:0}function Nt(f){var p=Es(f),S=p%1;return p===p?S?p-S:p:0}function e0(f){return f?Wu(Nt(f),0,Q):0}function Mr(f){if(typeof f=="number")return f;if(ia(f))return G;if(Un(f)){var p=typeof f.valueOf=="function"?f.valueOf():f;f=Un(p)?p+"":p}if(typeof f!="string")return f===0?f:+f;f=lb(f);var S=co.test(f);return S||Aa.test(f)?od(f.slice(2),S?2:8):Yo.test(f)?G:+f}function Dc(f){return Fa(f,si(f))}function I2(f){return f?Wu(Nt(f),-H,H):f===0?f:0}function hn(f){return f==null?"":Yn(f)}var Fc=Ju(function(f,p){if(Jn(p)||It(p)){Fa(p,yr(p),f);return}for(var S in p)fn.call(p,S)&&Fn(f,S,p[S])}),Lc=Ju(function(f,p){Fa(p,si(p),f)}),Gd=Ju(function(f,p,S,I){Fa(p,si(p),f,I)}),dg=Ju(function(f,p,S,I){Fa(p,yr(p),f,I)}),t0=To(eu);function n0(f,p){var S=ls(f);return p==null?S:Zs(S,p)}var hg=Mt(function(f,p){f=Cn(f);var S=-1,I=p.length,U=I>2?p[2]:n;for(U&&Ir(p[0],p[1],U)&&(I=1);++S1),K}),Fa(f,Td(f),S),I&&(S=an(S,y|w|v,Wm));for(var U=p.length;U--;)xo(S,p[U]);return S});function rC(f,p){return mg(f,rg(lt(p)))}var o0=To(function(f,p){return f==null?{}:Yy(f,p)});function mg(f,p){if(f==null)return{};var S=Dn(Td(f),function(I){return[I]});return p=lt(p),Jy(f,S,function(I,U){return p(I,U[0])})}function gg(f,p,S){p=ms(p,f);var I=-1,U=p.length;for(U||(U=1,f=n);++Ip){var I=f;f=p,p=I}if(S||f%1||p%1){var U=Om();return $t(f+U*(p-f+mo("1e-"+((U+"").length-1))),p)}return Um(f,p)}var B2=iu(function(f,p,S){return p=p.toLowerCase(),f+(S?Zd(p):p)});function Zd(f){return Et(hn(f).toLowerCase())}function u0(f){return f=hn(f),f&&f.replace(ji,wm).replace(Hi,"")}function oC(f,p,S){f=hn(f),p=Yn(p);var I=f.length;S=S===n?I:Wu(Nt(S),0,I);var U=S;return S-=p.length,S>=0&&f.slice(S,U)==p}function vg(f){return f=hn(f),f&&tr.test(f)?f.replace(Ur,cb):f}function bg(f){return f=hn(f),f&&Ei.test(f)?f.replace(Ls,"\\$&"):f}var q2=iu(function(f,p,S){return f+(S?"-":"")+p.toLowerCase()}),eh=iu(function(f,p,S){return f+(S?" ":"")+p.toLowerCase()}),l0=qm("toLowerCase");function wg(f,p,S){f=hn(f),p=Nt(p);var I=p?yo(f):0;if(!p||I>=p)return f;var U=(p-I)/2;return $c(va(U),S)+f+$c(ya(U),S)}function H2(f,p,S){f=hn(f),p=Nt(p);var I=p?yo(f):0;return p&&I>>0,S?(f=hn(f),f&&(typeof p=="string"||p!=null&&!lg(p))&&(p=Yn(p),!p&&Gs(f))?gs(ha(f),0,S):f.split(p,S)):[]}var b=iu(function(f,p,S){return f+(S?" ":"")+Et(p)});function x(f,p,S){return f=hn(f),S=S==null?0:Wu(Nt(S),0,f.length),p=Yn(p),f.slice(S,S+p.length)==p}function D(f,p,S){var I=z.templateSettings;S&&Ir(f,p,S)&&(p=n),f=hn(f),p=Gd({},p,I,Gm);var U=Gd({},p.imports,I.imports,Gm),K=yr(U),ee=bm(U,K),ne,fe,Pe=0,Me=p.interpolate||Ra,je="__p += '",Ye=rs((p.escape||Ra).source+"|"+Me.source+"|"+(Me===ca?xi:Ra).source+"|"+(p.evaluate||Ra).source+"|$","g"),ot="//# sourceURL="+(fn.call(p,"sourceURL")?(p.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++fm+"]")+` -`;f.replace(Ye,function(Ct,Jt,rn,Wa,oa,Ka){return rn||(rn=Wa),je+=f.slice(Pe,Ka).replace(js,fb),Jt&&(ne=!0,je+=`' + +`)}function y2(f){return Ot(f)||gu(f)||!!(zu&&f&&f[zu])}function Ya(f,p){var S=typeof f;return p=p??H,!!p&&(S=="number"||S!="symbol"&&_i.test(f))&&f>-1&&f%1==0&&f0){if(++p>=me)return arguments[0]}else p=0;return f.apply(n,arguments)}}function jd(f,p){var S=-1,I=f.length,U=I-1;for(p=p===n?I:p;++S1?f[p-1]:n;return S=typeof S=="function"?(f.pop(),S):n,Kd(f,S)});function Yr(f){var p=z(f);return p.__chain__=!0,p}function M2(f,p){return p(f),f}function Lc(f,p){return p(f)}var k2=Ao(function(f){var p=f.length,S=p?f[0]:0,I=this.__wrapped__,U=function(K){return ru(K,f)};return p>1||this.__actions__.length||!(I instanceof At)||!Ya(S)?this.thru(U):(I=I.slice(S,+S+(p?1:0)),I.__actions__.push({func:Lc,args:[U],thisArg:n}),new Qi(I,this.__chain__).thru(function(K){return p&&!K.length&&K.push(n),K}))});function iC(){return Yr(this)}function Es(){return new Qi(this.value(),this.__chain__)}function $g(){this.__values__===n&&(this.__values__=nw(this.value()));var f=this.__index__>=this.__values__.length,p=f?n:this.__values__[this.__index__++];return{done:f,value:p}}function Xv(){return this}function Uc(f){for(var p,S=this;S instanceof Cd;){var I=bg(S);I.__index__=0,I.__values__=n,p?U.__wrapped__=I:p=I;var U=I;S=S.__wrapped__}return U.__wrapped__=f,p}function D2(){var f=this.__wrapped__;if(f instanceof At){var p=f;return this.__actions__.length&&(p=new At(this)),p=p.reverse(),p.__actions__.push({func:Lc,args:[Cn],thisArg:n}),new Qi(p,this.__chain__)}return this.thru(Cn)}function F2(){return ug(this.__wrapped__,this.__actions__)}var L2=Tc(function(f,p,S){fn.call(f,S)?++f[S]:Xi(f,S,1)});function Zv(f,p,S){var I=Ot(f)?Rb:uv;return S&&Mr(f,p,S)&&(p=n),I(f,lt(p,3))}function e0(f,p){var S=Ot(f)?vo:ir;return S(f,lt(p,3))}var aC=fg(jv),oC=fg(T2);function sC(f,p){return sr(xs(f,p),1)}function U2(f,p){return sr(xs(f,p),V)}function B2(f,p,S){return S=S===n?1:Nt(S),sr(xs(f,p),S)}function al(f,p){var S=Ot(f)?va:iu;return S(f,lt(p,3))}function Qd(f,p){var S=Ot(f)?M3:tg;return S(f,lt(p,3))}var j2=Tc(function(f,p,S){fn.call(f,S)?f[S].push(p):Xi(f,S,[p])});function q2(f,p,S,I){f=It(f)?f:ua(f),S=S&&!I?Nt(S):0;var U=f.length;return S<0&&(S=Kt(U+S,0)),Ng(f)?S<=U&&f.indexOf(p,S)>-1:!!U&&ac(f,p,S)>-1}var uC=Mt(function(f,p,S){var I=-1,U=typeof p=="function",K=It(f)?we(f.length):[];return iu(f,function(ee){K[++I]=U?Vr(p,ee,S):bc(ee,p,S)}),K}),H2=Tc(function(f,p,S){Xi(f,S,p)});function xs(f,p){var S=Ot(f)?Dn:Td;return S(f,lt(p,3))}function z2(f,p,S,I){return f==null?[]:(Ot(p)||(p=p==null?[]:[p]),S=I?n:S,Ot(S)||(S=S==null?[]:[S]),mv(f,p,S))}var Tn=Tc(function(f,p,S){f[S?0:1].push(p)},function(){return[[],[]]});function t0(f,p,S){var I=Ot(f)?zy:Wy,U=arguments.length<3;return I(f,lt(p,4),S,U,iu)}function lC(f,p,S){var I=Ot(f)?k3:Wy,U=arguments.length<3;return I(f,lt(p,4),S,U,tg)}function V2(f,p){var S=Ot(f)?vo:ir;return S(f,xg(lt(p,3)))}function cC(f){var p=Ot(f)?av:l2;return p(f)}function fC(f,p,S){(S?Mr(f,p,S):p===n)?p=1:p=Nt(p);var I=Ot(f)?tu:bv;return I(f,p)}function dC(f){var p=Ot(f)?Ft:X3;return p(f)}function Eg(f){if(f==null)return 0;if(It(f))return Ng(f)?bo(f):f.length;var p=ur(f);return p==gt||p==Pt?f.size:au(f).length}function Bc(f,p,S){var I=Ot(f)?Vy:Pd;return S&&Mr(f,p,S)&&(p=n),I(f,lt(p,3))}var n0=Mt(function(f,p){if(f==null)return[];var S=p.length;return S>1&&Mr(f,p[0],p[1])?p=[]:S>2&&Mr(p[0],p[1],p[2])&&(p=[p[0]]),mv(f,sr(p,1),[])}),ol=Ca||function(){return We.Date.now()};function r0(f,p){if(typeof p!="function")throw new Ji(u);return f=Nt(f),function(){if(--f<1)return p.apply(this,arguments)}}function mu(f,p,S){return p=S?n:p,p=f&&p==null?f.length:p,Ga(f,F,n,n,n,n,p)}function Ja(f,p){var S;if(typeof p!="function")throw new Ji(u);return f=Nt(f),function(){return--f>0&&(S=p.apply(this,arguments)),f<=1&&(p=n),S}}var sl=Mt(function(f,p,S){var I=$;if(S.length){var U=Js(S,ea(sl));I|=R}return Ga(f,I,p,S,U)}),G2=Mt(function(f,p,S){var I=$|O;if(S.length){var U=Js(S,ea(G2));I|=R}return Ga(p,I,f,S,U)});function i0(f,p,S){p=S?n:p;var I=Ga(f,P,n,n,n,n,n,p);return I.placeholder=i0.placeholder,I}function a0(f,p,S){p=S?n:p;var I=Ga(f,k,n,n,n,n,n,p);return I.placeholder=a0.placeholder,I}function o0(f,p,S){var I,U,K,ee,ne,de,Ie=0,Me=!1,Be=!1,Ye=!0;if(typeof f!="function")throw new Ji(u);p=Dr(p)||0,Un(S)&&(Me=!!S.leading,Be="maxWait"in S,K=Be?Kt(Dr(S.maxWait)||0,p):K,Ye="trailing"in S?!!S.trailing:Ye);function ot(wr){var As=I,ul=U;return I=U=n,Ie=wr,ee=f.apply(ul,As),ee}function St(wr){return Ie=wr,ne=Kr(Jt,p),Me?ot(wr):ee}function jt(wr){var As=wr-de,ul=wr-Ie,k4=p-As;return Be?$t(k4,K-ul):k4}function Ct(wr){var As=wr-de,ul=wr-Ie;return de===n||As>=p||As<0||Be&&ul>=K}function Jt(){var wr=ol();if(Ct(wr))return rn(wr);ne=Kr(Jt,jt(wr))}function rn(wr){return ne=n,Ye&&I?ot(wr):(I=U=n,ee)}function Za(){ne!==n&&Id(ne),Ie=0,I=de=U=ne=n}function la(){return ne===n?ee:rn(ol())}function eo(){var wr=ol(),As=Ct(wr);if(I=arguments,U=this,de=wr,As){if(ne===n)return St(de);if(Be)return Id(ne),ne=Kr(Jt,p),ot(de)}return ne===n&&(ne=Kr(Jt,p)),ee}return eo.cancel=Za,eo.flush=la,eo}var hC=Mt(function(f,p){return sv(f,1,p)}),s0=Mt(function(f,p,S){return sv(f,Dr(p)||0,S)});function W2(f){return Ga(f,Y)}function Xd(f,p){if(typeof f!="function"||p!=null&&typeof p!="function")throw new Ji(u);var S=function(){var I=arguments,U=p?p.apply(this,I):I[0],K=S.cache;if(K.has(U))return K.get(U);var ee=f.apply(this,I);return S.cache=K.set(U,ee)||K,ee};return S.cache=new(Xd.Cache||ps),S}Xd.Cache=ps;function xg(f){if(typeof f!="function")throw new Ji(u);return function(){var p=arguments;switch(p.length){case 0:return!f.call(this);case 1:return!f.call(this,p[0]);case 2:return!f.call(this,p[0],p[1]);case 3:return!f.call(this,p[0],p[1],p[2])}return!f.apply(this,p)}}function u0(f){return Ja(2,f)}var l0=c2(function(f,p){p=p.length==1&&Ot(p[0])?Dn(p[0],Ki(lt())):Dn(sr(p,1),Ki(lt()));var S=p.length;return Mt(function(I){for(var U=-1,K=$t(I.length,S);++U=p}),gu=e2((function(){return arguments})())?e2:function(f){return Xn(f)&&fn.call(f,"callee")&&!Zy.call(f,"callee")},Ot=we.isArray,_g=mr?Ki(mr):t2;function It(f){return f!=null&&Rg(f.length)&&!Os(f)}function zn(f){return Xn(f)&&It(f)}function kr(f){return f===!0||f===!1||Xn(f)&&Gr(f)==ke}var yu=zb||LC,p0=Ir?Ki(Ir):n2;function m0(f){return Xn(f)&&f.nodeType===1&&!Jr(f)}function Ag(f){if(f==null)return!0;if(It(f)&&(Ot(f)||typeof f=="string"||typeof f.splice=="function"||yu(f)||Xa(f)||gu(f)))return!f.length;var p=ur(f);if(p==gt||p==Pt)return!f.size;if(Jn(f))return!au(f).length;for(var S in f)if(fn.call(f,S))return!1;return!0}function Q2(f,p){return wc(f,p)}function X2(f,p,S){S=typeof S=="function"?S:n;var I=S?S(f,p):n;return I===n?wc(f,p,n,S):!!I}function th(f){if(!Xn(f))return!1;var p=Gr(f);return p==ut||p==He||typeof f.message=="string"&&typeof f.name=="string"&&!Jr(f)}function g0(f){return typeof f=="number"&&Wm(f)}function Os(f){if(!Un(f))return!1;var p=Gr(f);return p==pt||p==bt||p==tt||p==xn}function y0(f){return typeof f=="number"&&f==Nt(f)}function Rg(f){return typeof f=="number"&&f>-1&&f%1==0&&f<=H}function Un(f){var p=typeof f;return f!=null&&(p=="object"||p=="function")}function Xn(f){return f!=null&&typeof f=="object"}var Z2=is?Ki(is):r2;function v0(f,p){return f===p||ag(f,p,Ud(p))}function b0(f,p,S){return S=typeof S=="function"?S:n,ag(f,p,Ud(p),S)}function yC(f){return w0(f)&&f!=+f}function vC(f){if(v2(f))throw new yt(o);return fv(f)}function Qa(f){return f===null}function ew(f){return f==null}function w0(f){return typeof f=="number"||Xn(f)&&Gr(f)==Ut}function Jr(f){if(!Xn(f)||Gr(f)!=Tt)return!1;var p=qu(f);if(p===null)return!0;var S=fn.call(p,"constructor")&&p.constructor;return typeof S=="function"&&S instanceof S&&vd.call(S)==fc}var Pg=km?Ki(km):i2;function Ig(f){return y0(f)&&f>=-H&&f<=H}var ko=rc?Ki(rc):a2;function Ng(f){return typeof f=="string"||!Ot(f)&&Xn(f)&&Gr(f)==pe}function sa(f){return typeof f=="symbol"||Xn(f)&&Gr(f)==ze}var Xa=ic?Ki(ic):Y3;function tw(f){return f===n}function bC(f){return Xn(f)&&ur(f)==Je}function wC(f){return Xn(f)&&Gr(f)==ht}var SC=Rc(Sc),CC=Rc(function(f,p){return f<=p});function nw(f){if(!f)return[];if(It(f))return Ng(f)?ba(f):ai(f);if(So&&f[So])return Lb(f[So]());var p=ur(f),S=p==gt?Hm:p==Pt?zm:ua;return S(f)}function Ts(f){if(!f)return f===0?f:0;if(f=Dr(f),f===V||f===-V){var p=f<0?-1:1;return p*ie}return f===f?f:0}function Nt(f){var p=Ts(f),S=p%1;return p===p?S?p-S:p:0}function S0(f){return f?Qu(Nt(f),0,X):0}function Dr(f){if(typeof f=="number")return f;if(sa(f))return G;if(Un(f)){var p=typeof f.valueOf=="function"?f.valueOf():f;f=Un(p)?p+"":p}if(typeof f!="string")return f===0?f:+f;f=Mb(f);var S=ho.test(f);return S||ka.test(f)?gd(f.slice(2),S?2:8):Xo.test(f)?G:+f}function qc(f){return Ha(f,ui(f))}function rw(f){return f?Qu(Nt(f),-H,H):f===0?f:0}function hn(f){return f==null?"":Yn(f)}var Hc=el(function(f,p){if(Jn(p)||It(p)){Ha(p,br(p),f);return}for(var S in p)fn.call(p,S)&&Fn(f,S,p[S])}),zc=el(function(f,p){Ha(p,ui(p),f)}),nh=el(function(f,p,S,I){Ha(p,ui(p),f,I)}),Mg=el(function(f,p,S,I){Ha(p,br(p),f,I)}),C0=Ao(ru);function $0(f,p){var S=ds(f);return p==null?S:nu(S,p)}var kg=Mt(function(f,p){f=Sn(f);var S=-1,I=p.length,U=I>2?p[2]:n;for(U&&Mr(p[0],p[1],U)&&(I=1);++S1),K}),Ha(f,Fd(f),S),I&&(S=an(S,y|w|b,mg));for(var U=p.length;U--;)To(S,p[U]);return S});function AC(f,p){return Fg(f,xg(lt(p)))}var T0=Ao(function(f,p){return f==null?{}:gv(f,p)});function Fg(f,p){if(f==null)return{};var S=Dn(Fd(f),function(I){return[I]});return p=lt(p),yv(f,S,function(I,U){return p(I,U[0])})}function Lg(f,p,S){p=vs(p,f);var I=-1,U=p.length;for(U||(U=1,f=n);++Ip){var I=f;f=p,p=I}if(S||f%1||p%1){var U=Km();return $t(f+U*(p-f+yo("1e-"+((U+"").length-1))),p)}return sg(f,p)}var dw=su(function(f,p,S){return p=p.toLowerCase(),f+(S?lh(p):p)});function lh(f){return Et(hn(f).toLowerCase())}function A0(f){return f=hn(f),f&&f.replace(Hi,qm).replace(Gi,"")}function IC(f,p,S){f=hn(f),p=Yn(p);var I=f.length;S=S===n?I:Qu(Nt(S),0,I);var U=S;return S-=p.length,S>=0&&f.slice(S,U)==p}function Bg(f){return f=hn(f),f&&nr.test(f)?f.replace(jr,kb):f}function jg(f){return f=hn(f),f&&Oi.test(f)?f.replace(js,"\\$&"):f}var hw=su(function(f,p,S){return f+(S?"-":"")+p.toLowerCase()}),ch=su(function(f,p,S){return f+(S?" ":"")+p.toLowerCase()}),R0=cg("toLowerCase");function qg(f,p,S){f=hn(f),p=Nt(p);var I=p?bo(f):0;if(!p||I>=p)return f;var U=(p-I)/2;return Ac(Ea(U),S)+f+Ac($a(U),S)}function pw(f,p,S){f=hn(f),p=Nt(p);var I=p?bo(f):0;return p&&I>>0,S?(f=hn(f),f&&(typeof p=="string"||p!=null&&!Pg(p))&&(p=Yn(p),!p&&Ys(f))?bs(ba(f),0,S):f.split(p,S)):[]}var v=su(function(f,p,S){return f+(S?" ":"")+Et(p)});function x(f,p,S){return f=hn(f),S=S==null?0:Qu(Nt(S),0,f.length),p=Yn(p),f.slice(S,S+p.length)==p}function D(f,p,S){var I=z.templateSettings;S&&Mr(f,p,S)&&(p=n),f=hn(f),p=nh({},p,I,pg);var U=nh({},p.imports,I.imports,pg),K=br(U),ee=jm(U,K),ne,de,Ie=0,Me=p.interpolate||Da,Be="__p += '",Ye=os((p.escape||Da).source+"|"+Me.source+"|"+(Me===ga?Ti:Da).source+"|"+(p.evaluate||Da).source+"|$","g"),ot="//# sourceURL="+(fn.call(p,"sourceURL")?(p.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++Nm+"]")+` +`;f.replace(Ye,function(Ct,Jt,rn,Za,la,eo){return rn||(rn=Za),Be+=f.slice(Ie,eo).replace(Hs,Db),Jt&&(ne=!0,Be+=`' + __e(`+Jt+`) + -'`),oa&&(fe=!0,je+=`'; -`+oa+`; -__p += '`),rn&&(je+=`' + +'`),la&&(de=!0,Be+=`'; +`+la+`; +__p += '`),rn&&(Be+=`' + ((__t = (`+rn+`)) == null ? '' : __t) + -'`),Pe=Ka+Ct.length,Ct}),je+=`'; -`;var St=fn.call(p,"variable")&&p.variable;if(!St)je=`with (obj) { -`+je+` +'`),Ie=eo+Ct.length,Ct}),Be+=`'; +`;var St=fn.call(p,"variable")&&p.variable;if(!St)Be=`with (obj) { +`+Be+` } -`;else if(An.test(St))throw new yt(l);je=(fe?je.replace(nt,""):je).replace(Ht,"$1").replace(ln,"$1;"),je="function("+(St||"obj")+`) { +`;else if(An.test(St))throw new yt(l);Be=(de?Be.replace(nt,""):Be).replace(Ht,"$1").replace(ln,"$1;"),Be="function("+(St||"obj")+`) { `+(St?"":`obj || (obj = {}); -`)+"var __t, __p = ''"+(ne?", __e = _.escape":"")+(fe?`, __j = Array.prototype.join; +`)+"var __t, __p = ''"+(ne?", __e = _.escape":"")+(de?`, __j = Array.prototype.join; function print() { __p += __j.call(arguments, '') } `:`; -`)+je+`return __p -}`;var Bt=de(function(){return zt(K,ot+"return "+je).apply(n,ee)});if(Bt.source=je,Vd(Bt))throw Bt;return Bt}function W(f){return hn(f).toLowerCase()}function Z(f){return hn(f).toUpperCase()}function se(f,p,S){if(f=hn(f),f&&(S||p===n))return lb(f);if(!f||!(p=Yn(p)))return f;var I=ha(f),U=ha(p),K=nc(I,U),ee=rc(I,U)+1;return gs(I,K,ee).join("")}function _e(f,p,S){if(f=hn(f),f&&(S||p===n))return f.slice(0,_y(f)+1);if(!f||!(p=Yn(p)))return f;var I=ha(f),U=rc(I,ha(p))+1;return gs(I,0,U).join("")}function Le(f,p,S){if(f=hn(f),f&&(S||p===n))return f.replace(Xr,"");if(!f||!(p=Yn(p)))return f;var I=ha(f),U=nc(I,ha(p));return gs(I,U).join("")}function ve(f,p){var S=X,I=ue;if(Un(p)){var U="separator"in p?p.separator:U;S="length"in p?Nt(p.length):S,I="omission"in p?Yn(p.omission):I}f=hn(f);var K=f.length;if(Gs(f)){var ee=ha(f);K=ee.length}if(S>=K)return f;var ne=S-yo(I);if(ne<1)return I;var fe=ee?gs(ee,0,ne).join(""):f.slice(0,ne);if(U===n)return fe+I;if(ee&&(ne+=fe.length-ne),lg(U)){if(f.slice(ne).search(U)){var Pe,Me=fe;for(U.global||(U=rs(U.source,hn(Us.exec(U))+"g")),U.lastIndex=0;Pe=U.exec(Me);)var je=Pe.index;fe=fe.slice(0,je===n?ne:je)}}else if(f.indexOf(Yn(U),ne)!=ne){var Ye=fe.lastIndexOf(U);Ye>-1&&(fe=fe.slice(0,Ye))}return fe+I}function Oe(f){return f=hn(f),f&&tn.test(f)?f.replace(wt,mb):f}var at=iu(function(f,p,S){return f+(S?" ":"")+p.toUpperCase()}),Et=qm("toUpperCase");function Vn(f,p,S){return f=hn(f),p=S?n:p,p===n?db(f)?y3(f):d3(f):f.match(p)||[]}var de=Mt(function(f,p){try{return Hr(f,n,p)}catch(S){return Vd(S)?S:new yt(S)}}),oe=To(function(f,p){return da(p,function(S){S=ai(S),Yi(f,S,rl(f[S],f))}),f});function ye(f){var p=f==null?0:f.length,S=lt();return f=p?Dn(f,function(I){if(typeof I[1]!="function")throw new Wi(u);return[S(I[0]),I[1]]}):[],Mt(function(I){for(var U=-1;++UH)return[];var S=Q,I=$t(f,Q);p=lt(p),f-=Q;for(var U=Vs(I,p);++S0||p<0)?new At(S):(f<0?S=S.takeRight(-f):f&&(S=S.drop(f)),p!==n&&(p=Nt(p),S=p<0?S.dropRight(-p):S.take(p-f)),S)},At.prototype.takeRightWhile=function(f){return this.reverse().takeWhile(f).reverse()},At.prototype.toArray=function(){return this.take(Q)},wa(At.prototype,function(f,p){var S=/^(?:filter|find|map|reject)|While$/.test(p),I=/^(?:head|last)$/.test(p),U=z[I?"take"+(p=="last"?"Right":""):p],K=I||/^find/.test(p);U&&(z.prototype[p]=function(){var ee=this.__wrapped__,ne=I?[1]:arguments,fe=ee instanceof At,Pe=ne[0],Me=fe||Ot(ee),je=function(Jt){var rn=U.apply(z,ns([Jt],ne));return I&&Ye?rn[0]:rn};Me&&S&&typeof Pe=="function"&&Pe.length!=1&&(fe=Me=!1);var Ye=this.__chain__,ot=!!this.__actions__.length,St=K&&!Ye,Bt=fe&&!ot;if(!K&&Me){ee=Bt?ee:new At(this);var Ct=f.apply(ee,ne);return Ct.__actions__.push({func:Ic,args:[je],thisArg:n}),new Ki(Ct,Ye)}return St&&Bt?f.apply(this,ne):(Ct=this.thru(je),St?I?Ct.value()[0]:Ct.value():Ct)})}),da(["pop","push","shift","sort","splice","unshift"],function(f){var p=sd[f],S=/^(?:push|sort|unshift)$/.test(f)?"tap":"thru",I=/^(?:pop|shift)$/.test(f);z.prototype[f]=function(){var U=arguments;if(I&&!this.__chain__){var K=this.value();return p.apply(Ot(K)?K:[],U)}return this[S](function(ee){return p.apply(Ot(ee)?ee:[],U)})}}),wa(At.prototype,function(f,p){var S=z[p];if(S){var I=S.name+"";fn.call(Ks,I)||(Ks[I]=[]),Ks[I].push({name:p,func:S})}}),Ks[xd(n,O).name]=[{name:"wrapper",func:n}],At.prototype.clone=$b,At.prototype.reverse=sc,At.prototype.value=Am,z.prototype.at=c2,z.prototype.chain=I3,z.prototype.commit=Ss,z.prototype.next=tg,z.prototype.plant=Nc,z.prototype.reverse=f2,z.prototype.toJSON=z.prototype.valueOf=z.prototype.value=d2,z.prototype.first=z.prototype.head,bo&&(z.prototype[bo]=Pv),z}),Ia=v3();_t?((_t.exports=Ia)._=Ia,it._=Ia):We._=Ia}).call(LF)})(k0,k0.exports)),k0.exports}var Sr=UF();function Ru(t){var n,r,i,o,u,l,d,h;const e={};if(t.error&&Array.isArray((n=t.error)==null?void 0:n.errors))for(const g of(r=t.error)==null?void 0:r.errors)Sr.set(e,g.location,g.messageTranslated||g.message);return t.status&&t.ok===!1?{form:`${t.status}`}:((i=t==null?void 0:t.error)!=null&&i.code&&(e.form=(o=t==null?void 0:t.error)==null?void 0:o.code),(u=t==null?void 0:t.error)!=null&&u.message&&(e.form=(l=t==null?void 0:t.error)==null?void 0:l.message),(d=t==null?void 0:t.error)!=null&&d.messageTranslated&&(e.form=(h=t==null?void 0:t.error)==null?void 0:h.messageTranslated),t.message?{form:`${t.message}`}:e)}const Qr=t=>(e,n,r)=>{const i=t.prefix+n;return fetch(i,{method:e,headers:{Accept:"application/json","Content-Type":"application/json",...t.headers||{}},body:JSON.stringify(r)}).then(o=>{const u=o.headers.get("content-type");if(u&&u.indexOf("application/json")!==-1)return o.json().then(l=>{if(o.ok)return l;throw l});throw o})};var jF=function(e){return BF(e)&&!qF(e)};function BF(t){return!!t&&typeof t=="object"}function qF(t){var e=Object.prototype.toString.call(t);return e==="[object RegExp]"||e==="[object Date]"||VF(t)}var HF=typeof Symbol=="function"&&Symbol.for,zF=HF?Symbol.for("react.element"):60103;function VF(t){return t.$$typeof===zF}function GF(t){return Array.isArray(t)?[]:{}}function zw(t,e){return e.clone!==!1&&e.isMergeableObject(t)?X0(GF(t),t,e):t}function WF(t,e,n){return t.concat(e).map(function(r){return zw(r,n)})}function KF(t,e,n){var r={};return n.isMergeableObject(t)&&Object.keys(t).forEach(function(i){r[i]=zw(t[i],n)}),Object.keys(e).forEach(function(i){!n.isMergeableObject(e[i])||!t[i]?r[i]=zw(e[i],n):r[i]=X0(t[i],e[i],n)}),r}function X0(t,e,n){n=n||{},n.arrayMerge=n.arrayMerge||WF,n.isMergeableObject=n.isMergeableObject||jF;var r=Array.isArray(e),i=Array.isArray(t),o=r===i;return o?r?n.arrayMerge(t,e,n):KF(t,e,n):zw(e,n)}X0.all=function(e,n){if(!Array.isArray(e))throw new Error("first argument should be an array");return e.reduce(function(r,i){return X0(r,i,n)},{})};var FE=X0,R9=typeof global=="object"&&global&&global.Object===Object&&global,YF=typeof self=="object"&&self&&self.Object===Object&&self,Pu=R9||YF||Function("return this")(),Pf=Pu.Symbol,P9=Object.prototype,JF=P9.hasOwnProperty,QF=P9.toString,d0=Pf?Pf.toStringTag:void 0;function XF(t){var e=JF.call(t,d0),n=t[d0];try{t[d0]=void 0;var r=!0}catch{}var i=QF.call(t);return r&&(e?t[d0]=n:delete t[d0]),i}var ZF=Object.prototype,eL=ZF.toString;function tL(t){return eL.call(t)}var nL="[object Null]",rL="[object Undefined]",T4=Pf?Pf.toStringTag:void 0;function Xp(t){return t==null?t===void 0?rL:nL:T4&&T4 in Object(t)?XF(t):tL(t)}function I9(t,e){return function(n){return t(e(n))}}var bO=I9(Object.getPrototypeOf,Object);function Zp(t){return t!=null&&typeof t=="object"}var iL="[object Object]",aL=Function.prototype,oL=Object.prototype,N9=aL.toString,sL=oL.hasOwnProperty,uL=N9.call(Object);function _4(t){if(!Zp(t)||Xp(t)!=iL)return!1;var e=bO(t);if(e===null)return!0;var n=sL.call(e,"constructor")&&e.constructor;return typeof n=="function"&&n instanceof n&&N9.call(n)==uL}function lL(){this.__data__=[],this.size=0}function M9(t,e){return t===e||t!==t&&e!==e}function $S(t,e){for(var n=t.length;n--;)if(M9(t[n][0],e))return n;return-1}var cL=Array.prototype,fL=cL.splice;function dL(t){var e=this.__data__,n=$S(e,t);if(n<0)return!1;var r=e.length-1;return n==r?e.pop():fL.call(e,n,1),--this.size,!0}function hL(t){var e=this.__data__,n=$S(e,t);return n<0?void 0:e[n][1]}function pL(t){return $S(this.__data__,t)>-1}function mL(t,e){var n=this.__data__,r=$S(n,t);return r<0?(++this.size,n.push([t,e])):n[r][1]=e,this}function kl(t){var e=-1,n=t==null?0:t.length;for(this.clear();++e-1&&t%1==0&&t-1&&t%1==0&&t<=mU}var gU="[object Arguments]",yU="[object Array]",vU="[object Boolean]",bU="[object Date]",wU="[object Error]",SU="[object Function]",CU="[object Map]",$U="[object Number]",EU="[object Object]",xU="[object RegExp]",OU="[object Set]",TU="[object String]",_U="[object WeakMap]",AU="[object ArrayBuffer]",RU="[object DataView]",PU="[object Float32Array]",IU="[object Float64Array]",NU="[object Int8Array]",MU="[object Int16Array]",kU="[object Int32Array]",DU="[object Uint8Array]",FU="[object Uint8ClampedArray]",LU="[object Uint16Array]",UU="[object Uint32Array]",Wn={};Wn[PU]=Wn[IU]=Wn[NU]=Wn[MU]=Wn[kU]=Wn[DU]=Wn[FU]=Wn[LU]=Wn[UU]=!0;Wn[gU]=Wn[yU]=Wn[AU]=Wn[vU]=Wn[RU]=Wn[bU]=Wn[wU]=Wn[SU]=Wn[CU]=Wn[$U]=Wn[EU]=Wn[xU]=Wn[OU]=Wn[TU]=Wn[_U]=!1;function jU(t){return Zp(t)&&B9(t.length)&&!!Wn[Xp(t)]}function wO(t){return function(e){return t(e)}}var q9=typeof to=="object"&&to&&!to.nodeType&&to,q0=q9&&typeof no=="object"&&no&&!no.nodeType&&no,BU=q0&&q0.exports===q9,wC=BU&&R9.process,Xg=(function(){try{var t=q0&&q0.require&&q0.require("util").types;return t||wC&&wC.binding&&wC.binding("util")}catch{}})(),M4=Xg&&Xg.isTypedArray,qU=M4?wO(M4):jU,HU=Object.prototype,zU=HU.hasOwnProperty;function H9(t,e){var n=B1(t),r=!n&&uU(t),i=!n&&!r&&j9(t),o=!n&&!r&&!i&&qU(t),u=n||r||i||o,l=u?iU(t.length,String):[],d=l.length;for(var h in t)(e||zU.call(t,h))&&!(u&&(h=="length"||i&&(h=="offset"||h=="parent")||o&&(h=="buffer"||h=="byteLength"||h=="byteOffset")||pU(h,d)))&&l.push(h);return l}var VU=Object.prototype;function SO(t){var e=t&&t.constructor,n=typeof e=="function"&&e.prototype||VU;return t===n}var GU=I9(Object.keys,Object),WU=Object.prototype,KU=WU.hasOwnProperty;function YU(t){if(!SO(t))return GU(t);var e=[];for(var n in Object(t))KU.call(t,n)&&n!="constructor"&&e.push(n);return e}function z9(t){return t!=null&&B9(t.length)&&!k9(t)}function CO(t){return z9(t)?H9(t):YU(t)}function JU(t,e){return t&&xS(e,CO(e),t)}function QU(t){var e=[];if(t!=null)for(var n in Object(t))e.push(n);return e}var XU=Object.prototype,ZU=XU.hasOwnProperty;function ej(t){if(!j1(t))return QU(t);var e=SO(t),n=[];for(var r in t)r=="constructor"&&(e||!ZU.call(t,r))||n.push(r);return n}function $O(t){return z9(t)?H9(t,!0):ej(t)}function tj(t,e){return t&&xS(e,$O(e),t)}var V9=typeof to=="object"&&to&&!to.nodeType&&to,k4=V9&&typeof no=="object"&&no&&!no.nodeType&&no,nj=k4&&k4.exports===V9,D4=nj?Pu.Buffer:void 0,F4=D4?D4.allocUnsafe:void 0;function rj(t,e){if(e)return t.slice();var n=t.length,r=F4?F4(n):new t.constructor(n);return t.copy(r),r}function G9(t,e){var n=-1,r=t.length;for(e||(e=Array(r));++n=K)return f;var ne=S-bo(I);if(ne<1)return I;var de=ee?bs(ee,0,ne).join(""):f.slice(0,ne);if(U===n)return de+I;if(ee&&(ne+=de.length-ne),Pg(U)){if(f.slice(ne).search(U)){var Ie,Me=de;for(U.global||(U=os(U.source,hn(qs.exec(U))+"g")),U.lastIndex=0;Ie=U.exec(Me);)var Be=Ie.index;de=de.slice(0,Be===n?ne:Be)}}else if(f.indexOf(Yn(U),ne)!=ne){var Ye=de.lastIndexOf(U);Ye>-1&&(de=de.slice(0,Ye))}return de+I}function Oe(f){return f=hn(f),f&&tn.test(f)?f.replace(wt,Bb):f}var at=su(function(f,p,S){return f+(S?" ":"")+p.toUpperCase()}),Et=cg("toUpperCase");function Vn(f,p,S){return f=hn(f),p=S?n:p,p===n?Fb(f)?H3(f):L3(f):f.match(p)||[]}var he=Mt(function(f,p){try{return Vr(f,n,p)}catch(S){return th(S)?S:new yt(S)}}),oe=Ao(function(f,p){return va(p,function(S){S=oi(S),Xi(f,S,sl(f[S],f))}),f});function ye(f){var p=f==null?0:f.length,S=lt();return f=p?Dn(f,function(I){if(typeof I[1]!="function")throw new Ji(u);return[S(I[0]),I[1]]}):[],Mt(function(I){for(var U=-1;++UH)return[];var S=X,I=$t(f,X);p=lt(p),f-=X;for(var U=Ks(I,p);++S0||p<0)?new At(S):(f<0?S=S.takeRight(-f):f&&(S=S.drop(f)),p!==n&&(p=Nt(p),S=p<0?S.dropRight(-p):S.take(p-f)),S)},At.prototype.takeRightWhile=function(f){return this.reverse().takeWhile(f).reverse()},At.prototype.toArray=function(){return this.take(X)},Oa(At.prototype,function(f,p){var S=/^(?:filter|find|map|reject)|While$/.test(p),I=/^(?:head|last)$/.test(p),U=z[I?"take"+(p=="last"?"Right":""):p],K=I||/^find/.test(p);U&&(z.prototype[p]=function(){var ee=this.__wrapped__,ne=I?[1]:arguments,de=ee instanceof At,Ie=ne[0],Me=de||Ot(ee),Be=function(Jt){var rn=U.apply(z,as([Jt],ne));return I&&Ye?rn[0]:rn};Me&&S&&typeof Ie=="function"&&Ie.length!=1&&(de=Me=!1);var Ye=this.__chain__,ot=!!this.__actions__.length,St=K&&!Ye,jt=de&&!ot;if(!K&&Me){ee=jt?ee:new At(this);var Ct=f.apply(ee,ne);return Ct.__actions__.push({func:Lc,args:[Be],thisArg:n}),new Qi(Ct,Ye)}return St&&jt?f.apply(this,ne):(Ct=this.thru(Be),St?I?Ct.value()[0]:Ct.value():Ct)})}),va(["pop","push","shift","sort","splice","unshift"],function(f){var p=yd[f],S=/^(?:push|sort|unshift)$/.test(f)?"tap":"thru",I=/^(?:pop|shift)$/.test(f);z.prototype[f]=function(){var U=arguments;if(I&&!this.__chain__){var K=this.value();return p.apply(Ot(K)?K:[],U)}return this[S](function(ee){return p.apply(Ot(ee)?ee:[],U)})}}),Oa(At.prototype,function(f,p){var S=z[p];if(S){var I=S.name+"";fn.call(Qs,I)||(Qs[I]=[]),Qs[I].push({name:p,func:S})}}),Qs[kd(n,O).name]=[{name:"wrapper",func:n}],At.prototype.clone=Kb,At.prototype.reverse=hc,At.prototype.value=Qm,z.prototype.at=k2,z.prototype.chain=iC,z.prototype.commit=Es,z.prototype.next=$g,z.prototype.plant=Uc,z.prototype.reverse=D2,z.prototype.toJSON=z.prototype.valueOf=z.prototype.value=F2,z.prototype.first=z.prototype.head,So&&(z.prototype[So]=Xv),z}),La=z3();_t?((_t.exports=La)._=La,it._=La):We._=La}).call(fL)})(n1,n1.exports)),n1.exports}var $r=dL();function Mu(t){var n,r,i,o,u,l,d,h;const e={};if(t.error&&Array.isArray((n=t.error)==null?void 0:n.errors))for(const g of(r=t.error)==null?void 0:r.errors)$r.set(e,g.location,g.messageTranslated||g.message);return t.status&&t.ok===!1?{form:`${t.status}`}:((i=t==null?void 0:t.error)!=null&&i.code&&(e.form=(o=t==null?void 0:t.error)==null?void 0:o.code),(u=t==null?void 0:t.error)!=null&&u.message&&(e.form=(l=t==null?void 0:t.error)==null?void 0:l.message),(d=t==null?void 0:t.error)!=null&&d.messageTranslated&&(e.form=(h=t==null?void 0:t.error)==null?void 0:h.messageTranslated),t.message?{form:`${t.message}`}:e)}const Ei=t=>(e,n,r)=>{const i=t.prefix+n;return fetch(i,{method:e,headers:{Accept:"application/json","Content-Type":"application/json",...t.headers||{}},body:JSON.stringify(r)}).then(o=>{const u=o.headers.get("content-type");if(u&&u.indexOf("application/json")!==-1)return o.json().then(l=>{if(o.ok)return l;throw l});throw o})};var hL=function(e){return pL(e)&&!mL(e)};function pL(t){return!!t&&typeof t=="object"}function mL(t){var e=Object.prototype.toString.call(t);return e==="[object RegExp]"||e==="[object Date]"||vL(t)}var gL=typeof Symbol=="function"&&Symbol.for,yL=gL?Symbol.for("react.element"):60103;function vL(t){return t.$$typeof===yL}function bL(t){return Array.isArray(t)?[]:{}}function gS(t,e){return e.clone!==!1&&e.isMergeableObject(t)?w1(bL(t),t,e):t}function wL(t,e,n){return t.concat(e).map(function(r){return gS(r,n)})}function SL(t,e,n){var r={};return n.isMergeableObject(t)&&Object.keys(t).forEach(function(i){r[i]=gS(t[i],n)}),Object.keys(e).forEach(function(i){!n.isMergeableObject(e[i])||!t[i]?r[i]=gS(e[i],n):r[i]=w1(t[i],e[i],n)}),r}function w1(t,e,n){n=n||{},n.arrayMerge=n.arrayMerge||wL,n.isMergeableObject=n.isMergeableObject||hL;var r=Array.isArray(e),i=Array.isArray(t),o=r===i;return o?r?n.arrayMerge(t,e,n):SL(t,e,n):gS(e,n)}w1.all=function(e,n){if(!Array.isArray(e))throw new Error("first argument should be an array");return e.reduce(function(r,i){return w1(r,i,n)},{})};var fx=w1,iI=typeof global=="object"&&global&&global.Object===Object&&global,CL=typeof self=="object"&&self&&self.Object===Object&&self,ku=iI||CL||Function("return this")(),Bf=ku.Symbol,aI=Object.prototype,$L=aI.hasOwnProperty,EL=aI.toString,N0=Bf?Bf.toStringTag:void 0;function xL(t){var e=$L.call(t,N0),n=t[N0];try{t[N0]=void 0;var r=!0}catch{}var i=EL.call(t);return r&&(e?t[N0]=n:delete t[N0]),i}var OL=Object.prototype,TL=OL.toString;function _L(t){return TL.call(t)}var AL="[object Null]",RL="[object Undefined]",t_=Bf?Bf.toStringTag:void 0;function bm(t){return t==null?t===void 0?RL:AL:t_&&t_ in Object(t)?xL(t):_L(t)}function oI(t,e){return function(n){return t(e(n))}}var WO=oI(Object.getPrototypeOf,Object);function wm(t){return t!=null&&typeof t=="object"}var PL="[object Object]",IL=Function.prototype,NL=Object.prototype,sI=IL.toString,ML=NL.hasOwnProperty,kL=sI.call(Object);function n_(t){if(!wm(t)||bm(t)!=PL)return!1;var e=WO(t);if(e===null)return!0;var n=ML.call(e,"constructor")&&e.constructor;return typeof n=="function"&&n instanceof n&&sI.call(n)==kL}function DL(){this.__data__=[],this.size=0}function uI(t,e){return t===e||t!==t&&e!==e}function YS(t,e){for(var n=t.length;n--;)if(uI(t[n][0],e))return n;return-1}var FL=Array.prototype,LL=FL.splice;function UL(t){var e=this.__data__,n=YS(e,t);if(n<0)return!1;var r=e.length-1;return n==r?e.pop():LL.call(e,n,1),--this.size,!0}function BL(t){var e=this.__data__,n=YS(e,t);return n<0?void 0:e[n][1]}function jL(t){return YS(this.__data__,t)>-1}function qL(t,e){var n=this.__data__,r=YS(n,t);return r<0?(++this.size,n.push([t,e])):n[r][1]=e,this}function jl(t){var e=-1,n=t==null?0:t.length;for(this.clear();++e-1&&t%1==0&&t-1&&t%1==0&&t<=qU}var HU="[object Arguments]",zU="[object Array]",VU="[object Boolean]",GU="[object Date]",WU="[object Error]",KU="[object Function]",YU="[object Map]",JU="[object Number]",QU="[object Object]",XU="[object RegExp]",ZU="[object Set]",eB="[object String]",tB="[object WeakMap]",nB="[object ArrayBuffer]",rB="[object DataView]",iB="[object Float32Array]",aB="[object Float64Array]",oB="[object Int8Array]",sB="[object Int16Array]",uB="[object Int32Array]",lB="[object Uint8Array]",cB="[object Uint8ClampedArray]",fB="[object Uint16Array]",dB="[object Uint32Array]",Wn={};Wn[iB]=Wn[aB]=Wn[oB]=Wn[sB]=Wn[uB]=Wn[lB]=Wn[cB]=Wn[fB]=Wn[dB]=!0;Wn[HU]=Wn[zU]=Wn[nB]=Wn[VU]=Wn[rB]=Wn[GU]=Wn[WU]=Wn[KU]=Wn[YU]=Wn[JU]=Wn[QU]=Wn[XU]=Wn[ZU]=Wn[eB]=Wn[tB]=!1;function hB(t){return wm(t)&&mI(t.length)&&!!Wn[bm(t)]}function KO(t){return function(e){return t(e)}}var gI=typeof so=="object"&&so&&!so.nodeType&&so,c1=gI&&typeof uo=="object"&&uo&&!uo.nodeType&&uo,pB=c1&&c1.exports===gI,GC=pB&&iI.process,wy=(function(){try{var t=c1&&c1.require&&c1.require("util").types;return t||GC&&GC.binding&&GC.binding("util")}catch{}})(),u_=wy&&wy.isTypedArray,mB=u_?KO(u_):hB,gB=Object.prototype,yB=gB.hasOwnProperty;function yI(t,e){var n=db(t),r=!n&&kU(t),i=!n&&!r&&pI(t),o=!n&&!r&&!i&&mB(t),u=n||r||i||o,l=u?PU(t.length,String):[],d=l.length;for(var h in t)(e||yB.call(t,h))&&!(u&&(h=="length"||i&&(h=="offset"||h=="parent")||o&&(h=="buffer"||h=="byteLength"||h=="byteOffset")||jU(h,d)))&&l.push(h);return l}var vB=Object.prototype;function YO(t){var e=t&&t.constructor,n=typeof e=="function"&&e.prototype||vB;return t===n}var bB=oI(Object.keys,Object),wB=Object.prototype,SB=wB.hasOwnProperty;function CB(t){if(!YO(t))return bB(t);var e=[];for(var n in Object(t))SB.call(t,n)&&n!="constructor"&&e.push(n);return e}function vI(t){return t!=null&&mI(t.length)&&!lI(t)}function JO(t){return vI(t)?yI(t):CB(t)}function $B(t,e){return t&&QS(e,JO(e),t)}function EB(t){var e=[];if(t!=null)for(var n in Object(t))e.push(n);return e}var xB=Object.prototype,OB=xB.hasOwnProperty;function TB(t){if(!fb(t))return EB(t);var e=YO(t),n=[];for(var r in t)r=="constructor"&&(e||!OB.call(t,r))||n.push(r);return n}function QO(t){return vI(t)?yI(t,!0):TB(t)}function _B(t,e){return t&&QS(e,QO(e),t)}var bI=typeof so=="object"&&so&&!so.nodeType&&so,l_=bI&&typeof uo=="object"&&uo&&!uo.nodeType&&uo,AB=l_&&l_.exports===bI,c_=AB?ku.Buffer:void 0,f_=c_?c_.allocUnsafe:void 0;function RB(t,e){if(e)return t.slice();var n=t.length,r=f_?f_(n):new t.constructor(n);return t.copy(r),r}function wI(t,e){var n=-1,r=t.length;for(e||(e=Array(r));++n=0)&&(n[i]=t[i]);return n}var OS=T.createContext(void 0);OS.displayName="FormikContext";var VB=OS.Provider;OS.Consumer;function GB(){var t=T.useContext(OS);return t}var Do=function(e){return typeof e=="function"},TS=function(e){return e!==null&&typeof e=="object"},WB=function(e){return String(Math.floor(Number(e)))===e},EC=function(e){return Object.prototype.toString.call(e)==="[object String]"},KB=function(e){return T.Children.count(e)===0},xC=function(e){return TS(e)&&Do(e.then)};function Qa(t,e,n,r){r===void 0&&(r=0);for(var i=nI(e);t&&r=0?[]:{}}}return(o===0?t:i)[u[o]]===n?t:(n===void 0?delete i[u[o]]:i[u[o]]=n,o===0&&n===void 0&&delete r[u[o]],r)}function iI(t,e,n,r){n===void 0&&(n=new WeakMap),r===void 0&&(r={});for(var i=0,o=Object.keys(t);i0?ze.map(function(Je){return X(Je,Qa(pe,Je))}):[Promise.resolve("DO_NOT_DELETE_YOU_WILL_BE_FIRED")];return Promise.all(Ge).then(function(Je){return Je.reduce(function(ht,j,A){return j==="DO_NOT_DELETE_YOU_WILL_BE_FIRED"||j&&(ht=jp(ht,ze[A],j)),ht},{})})},[X]),me=T.useCallback(function(pe){return Promise.all([ue(pe),w.validationSchema?Y(pe):{},w.validate?q(pe):{}]).then(function(ze){var Ge=ze[0],Je=ze[1],ht=ze[2],j=FE.all([Ge,Je,ht],{arrayMerge:ZB});return j})},[w.validate,w.validationSchema,ue,q,Y]),te=Mo(function(pe){return pe===void 0&&(pe=L.values),F({type:"SET_ISVALIDATING",payload:!0}),me(pe).then(function(ze){return O.current&&(F({type:"SET_ISVALIDATING",payload:!1}),F({type:"SET_ERRORS",payload:ze})),ze})});T.useEffect(function(){u&&O.current===!0&&wp(v.current,w.initialValues)&&te(v.current)},[u,te]);var be=T.useCallback(function(pe){var ze=pe&&pe.values?pe.values:v.current,Ge=pe&&pe.errors?pe.errors:C.current?C.current:w.initialErrors||{},Je=pe&&pe.touched?pe.touched:E.current?E.current:w.initialTouched||{},ht=pe&&pe.status?pe.status:$.current?$.current:w.initialStatus;v.current=ze,C.current=Ge,E.current=Je,$.current=ht;var j=function(){F({type:"RESET_FORM",payload:{isSubmitting:!!pe&&!!pe.isSubmitting,errors:Ge,touched:Je,status:ht,values:ze,isValidating:!!pe&&!!pe.isValidating,submitCount:pe&&pe.submitCount&&typeof pe.submitCount=="number"?pe.submitCount:0}})};if(w.onReset){var A=w.onReset(L.values,bt);xC(A)?A.then(j):j()}else j()},[w.initialErrors,w.initialStatus,w.initialTouched,w.onReset]);T.useEffect(function(){O.current===!0&&!wp(v.current,w.initialValues)&&h&&(v.current=w.initialValues,be(),u&&te(v.current))},[h,w.initialValues,be,u,te]),T.useEffect(function(){h&&O.current===!0&&!wp(C.current,w.initialErrors)&&(C.current=w.initialErrors||th,F({type:"SET_ERRORS",payload:w.initialErrors||th}))},[h,w.initialErrors]),T.useEffect(function(){h&&O.current===!0&&!wp(E.current,w.initialTouched)&&(E.current=w.initialTouched||V2,F({type:"SET_TOUCHED",payload:w.initialTouched||V2}))},[h,w.initialTouched]),T.useEffect(function(){h&&O.current===!0&&!wp($.current,w.initialStatus)&&($.current=w.initialStatus,F({type:"SET_STATUS",payload:w.initialStatus}))},[h,w.initialStatus,w.initialTouched]);var we=Mo(function(pe){if(_.current[pe]&&Do(_.current[pe].validate)){var ze=Qa(L.values,pe),Ge=_.current[pe].validate(ze);return xC(Ge)?(F({type:"SET_ISVALIDATING",payload:!0}),Ge.then(function(Je){return Je}).then(function(Je){F({type:"SET_FIELD_ERROR",payload:{field:pe,value:Je}}),F({type:"SET_ISVALIDATING",payload:!1})})):(F({type:"SET_FIELD_ERROR",payload:{field:pe,value:Ge}}),Promise.resolve(Ge))}else if(w.validationSchema)return F({type:"SET_ISVALIDATING",payload:!0}),Y(L.values,pe).then(function(Je){return Je}).then(function(Je){F({type:"SET_FIELD_ERROR",payload:{field:pe,value:Qa(Je,pe)}}),F({type:"SET_ISVALIDATING",payload:!1})});return Promise.resolve()}),B=T.useCallback(function(pe,ze){var Ge=ze.validate;_.current[pe]={validate:Ge}},[]),V=T.useCallback(function(pe){delete _.current[pe]},[]),H=Mo(function(pe,ze){F({type:"SET_TOUCHED",payload:pe});var Ge=ze===void 0?i:ze;return Ge?te(L.values):Promise.resolve()}),ie=T.useCallback(function(pe){F({type:"SET_ERRORS",payload:pe})},[]),G=Mo(function(pe,ze){var Ge=Do(pe)?pe(L.values):pe;F({type:"SET_VALUES",payload:Ge});var Je=ze===void 0?n:ze;return Je?te(Ge):Promise.resolve()}),Q=T.useCallback(function(pe,ze){F({type:"SET_FIELD_ERROR",payload:{field:pe,value:ze}})},[]),he=Mo(function(pe,ze,Ge){F({type:"SET_FIELD_VALUE",payload:{field:pe,value:ze}});var Je=Ge===void 0?n:Ge;return Je?te(jp(L.values,pe,ze)):Promise.resolve()}),$e=T.useCallback(function(pe,ze){var Ge=ze,Je=pe,ht;if(!EC(pe)){pe.persist&&pe.persist();var j=pe.target?pe.target:pe.currentTarget,A=j.type,M=j.name,J=j.id,re=j.value,ge=j.checked;j.outerHTML;var Ee=j.options,rt=j.multiple;Ge=ze||M||J,Je=/number|range/.test(A)?(ht=parseFloat(re),isNaN(ht)?"":ht):/checkbox/.test(A)?tq(Qa(L.values,Ge),ge,re):Ee&&rt?eq(Ee):re}Ge&&he(Ge,Je)},[he,L.values]),Ce=Mo(function(pe){if(EC(pe))return function(ze){return $e(ze,pe)};$e(pe)}),Be=Mo(function(pe,ze,Ge){ze===void 0&&(ze=!0),F({type:"SET_FIELD_TOUCHED",payload:{field:pe,value:ze}});var Je=Ge===void 0?i:Ge;return Je?te(L.values):Promise.resolve()}),Ie=T.useCallback(function(pe,ze){pe.persist&&pe.persist();var Ge=pe.target,Je=Ge.name,ht=Ge.id;Ge.outerHTML;var j=ze||Je||ht;Be(j,!0)},[Be]),tt=Mo(function(pe){if(EC(pe))return function(ze){return Ie(ze,pe)};Ie(pe)}),ke=T.useCallback(function(pe){Do(pe)?F({type:"SET_FORMIK_STATE",payload:pe}):F({type:"SET_FORMIK_STATE",payload:function(){return pe}})},[]),Ke=T.useCallback(function(pe){F({type:"SET_STATUS",payload:pe})},[]),He=T.useCallback(function(pe){F({type:"SET_ISSUBMITTING",payload:pe})},[]),ut=Mo(function(){return F({type:"SUBMIT_ATTEMPT"}),te().then(function(pe){var ze=pe instanceof Error,Ge=!ze&&Object.keys(pe).length===0;if(Ge){var Je;try{if(Je=gt(),Je===void 0)return}catch(ht){throw ht}return Promise.resolve(Je).then(function(ht){return O.current&&F({type:"SUBMIT_SUCCESS"}),ht}).catch(function(ht){if(O.current)throw F({type:"SUBMIT_FAILURE"}),ht})}else if(O.current&&(F({type:"SUBMIT_FAILURE"}),ze))throw pe})}),pt=Mo(function(pe){pe&&pe.preventDefault&&Do(pe.preventDefault)&&pe.preventDefault(),pe&&pe.stopPropagation&&Do(pe.stopPropagation)&&pe.stopPropagation(),ut().catch(function(ze){console.warn("Warning: An unhandled error was caught from submitForm()",ze)})}),bt={resetForm:be,validateForm:te,validateField:we,setErrors:ie,setFieldError:Q,setFieldTouched:Be,setFieldValue:he,setStatus:Ke,setSubmitting:He,setTouched:H,setValues:G,setFormikState:ke,submitForm:ut},gt=Mo(function(){return g(L.values,bt)}),Ut=Mo(function(pe){pe&&pe.preventDefault&&Do(pe.preventDefault)&&pe.preventDefault(),pe&&pe.stopPropagation&&Do(pe.stopPropagation)&&pe.stopPropagation(),be()}),Gt=T.useCallback(function(pe){return{value:Qa(L.values,pe),error:Qa(L.errors,pe),touched:!!Qa(L.touched,pe),initialValue:Qa(v.current,pe),initialTouched:!!Qa(E.current,pe),initialError:Qa(C.current,pe)}},[L.errors,L.touched,L.values]),Tt=T.useCallback(function(pe){return{setValue:function(Ge,Je){return he(pe,Ge,Je)},setTouched:function(Ge,Je){return Be(pe,Ge,Je)},setError:function(Ge){return Q(pe,Ge)}}},[he,Be,Q]),en=T.useCallback(function(pe){var ze=TS(pe),Ge=ze?pe.name:pe,Je=Qa(L.values,Ge),ht={name:Ge,value:Je,onChange:Ce,onBlur:tt};if(ze){var j=pe.type,A=pe.value,M=pe.as,J=pe.multiple;j==="checkbox"?A===void 0?ht.checked=!!Je:(ht.checked=!!(Array.isArray(Je)&&~Je.indexOf(A)),ht.value=A):j==="radio"?(ht.checked=Je===A,ht.value=A):M==="select"&&J&&(ht.value=ht.value||[],ht.multiple=!0)}return ht},[tt,Ce,L.values]),xn=T.useMemo(function(){return!wp(v.current,L.values)},[v.current,L.values]),Dt=T.useMemo(function(){return typeof l<"u"?xn?L.errors&&Object.keys(L.errors).length===0:l!==!1&&Do(l)?l(w):l:L.errors&&Object.keys(L.errors).length===0},[l,xn,L.errors,w]),Pt=Yr({},L,{initialValues:v.current,initialErrors:C.current,initialTouched:E.current,initialStatus:$.current,handleBlur:tt,handleChange:Ce,handleReset:Ut,handleSubmit:pt,resetForm:be,setErrors:ie,setFormikState:ke,setFieldTouched:Be,setFieldValue:he,setFieldError:Q,setStatus:Ke,setSubmitting:He,setTouched:H,setValues:G,submitForm:ut,validateForm:te,validateField:we,isValid:Dt,dirty:xn,unregisterField:V,registerField:B,getFieldProps:en,getFieldMeta:Gt,getFieldHelpers:Tt,validateOnBlur:i,validateOnChange:n,validateOnMount:u});return Pt}function JB(t){var e=Dl(t),n=t.component,r=t.children,i=t.render,o=t.innerRef;return T.useImperativeHandle(o,function(){return e}),T.createElement(VB,{value:e},n?T.createElement(n,e):i?i(e):r?Do(r)?r(e):KB(r)?null:T.Children.only(r):null)}function QB(t){var e={};if(t.inner){if(t.inner.length===0)return jp(e,t.path,t.message);for(var i=t.inner,n=Array.isArray(i),r=0,i=n?i:i[Symbol.iterator]();;){var o;if(n){if(r>=i.length)break;o=i[r++]}else{if(r=i.next(),r.done)break;o=r.value}var u=o;Qa(e,u.path)||(e=jp(e,u.path,u.message))}}return e}function XB(t,e,n,r){n===void 0&&(n=!1);var i=qE(t);return e[n?"validateSync":"validate"](i,{abortEarly:!1,context:i})}function qE(t){var e=Array.isArray(t)?[]:{};for(var n in t)if(Object.prototype.hasOwnProperty.call(t,n)){var r=String(n);Array.isArray(t[r])===!0?e[r]=t[r].map(function(i){return Array.isArray(i)===!0||_4(i)?qE(i):i!==""?i:void 0}):_4(t[r])?e[r]=qE(t[r]):e[r]=t[r]!==""?t[r]:void 0}return e}function ZB(t,e,n){var r=t.slice();return e.forEach(function(o,u){if(typeof r[u]>"u"){var l=n.clone!==!1,d=l&&n.isMergeableObject(o);r[u]=d?FE(Array.isArray(o)?[]:{},o,n):o}else n.isMergeableObject(o)?r[u]=FE(t[u],o,n):t.indexOf(o)===-1&&r.push(o)}),r}function eq(t){return Array.from(t).filter(function(e){return e.selected}).map(function(e){return e.value})}function tq(t,e,n){if(typeof t=="boolean")return!!e;var r=[],i=!1,o=-1;if(Array.isArray(t))r=t,o=t.indexOf(n),i=o>=0;else if(!n||n=="true"||n=="false")return!!e;return e&&n&&!i?r.concat(n):i?r.slice(0,o).concat(r.slice(o+1)):r}var nq=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u"?T.useLayoutEffect:T.useEffect;function Mo(t){var e=T.useRef(t);return nq(function(){e.current=t}),T.useCallback(function(){for(var n=arguments.length,r=new Array(n),i=0;i(t.NewEntity="new_entity",t.SidebarToggle="sidebarToggle",t.NewChildEntity="new_child_entity",t.EditEntity="edit_entity",t.ViewQuestions="view_questions",t.ExportTable="export_table",t.CommonBack="common_back",t.StopStart="StopStart",t.Delete="delete",t.Select1Index="select1_index",t.Select2Index="select2_index",t.Select3Index="select3_index",t.Select4Index="select4_index",t.Select5Index="select5_index",t.Select6Index="select6_index",t.Select7Index="select7_index",t.Select8Index="select8_index",t.Select9Index="select9_index",t.ToggleLock="l",t))(Bn||{});function iq(t,e){const n=Sr.flatMapDeep(e,(r,i,o)=>{let u=[],l=i;if(r&&typeof r=="object"&&!r.value){const d=Object.keys(r);if(d.length)for(let h of d)u.push({name:`${l}.${h}`,filter:r[h]})}else u.push({name:l,filter:r});return u});return t.filter((r,i)=>{for(let o of n){const u=Sr.get(r,o.name);if(u)switch(o.filter.operation){case"equal":if(u!==o.filter.value)return!1;break;case"contains":if(!u.includes(o.filter.value))return!1;break;case"notContains":if(u.includes(o.filter.value))return!1;break;case"endsWith":if(!u.endsWith(o.filter.value))return!1;break;case"startsWith":if(!u.startsWith(o.filter.value))return!1;break;case"greaterThan":if(uo.filter.value)return!1;break;case"lessThanOrEqual":if(u>=o.filter.value)return!1;break;case"notEqual":if(u===o.filter.value)return!1;break}}return!0})}async function io(t,e,n){let r=t.toString(),i=e||{},o,u=fetch;return n&&([r,i]=await n.apply(r,i),n.fetchOverrideFn&&(u=n.fetchOverrideFn)),o=await u(r,i),n&&(o=await n.handle(o)),o}function aq(t){return typeof t=="function"&&t.prototype&&t.prototype.constructor===t}async function ao(t,e,n,r){const i=t.headers.get("content-type")||"",o=t.headers.get("content-disposition")||"";if(i.includes("text/event-stream"))return oq(t,n,r);if(o.includes("attachment")||!i.includes("json")&&!i.startsWith("text/"))t.result=t.body;else if(i.includes("application/json")){const u=await t.json();e?aq(e)?t.result=new e(u):t.result=e(u):t.result=u}else t.result=await t.text();return{done:Promise.resolve(),response:t}}const oq=(t,e,n)=>{if(!t.body)throw new Error("SSE requires readable body");const r=t.body.getReader(),i=new TextDecoder;let o="";const u=new Promise((l,d)=>{function h(){r.read().then(({done:g,value:y})=>{if(n!=null&&n.aborted)return r.cancel(),l();if(g)return l();o+=i.decode(y,{stream:!0});const w=o.split(` + */var __;function hq(){if(__)return $n;__=1;var t=typeof Symbol=="function"&&Symbol.for,e=t?Symbol.for("react.element"):60103,n=t?Symbol.for("react.portal"):60106,r=t?Symbol.for("react.fragment"):60107,i=t?Symbol.for("react.strict_mode"):60108,o=t?Symbol.for("react.profiler"):60114,u=t?Symbol.for("react.provider"):60109,l=t?Symbol.for("react.context"):60110,d=t?Symbol.for("react.async_mode"):60111,h=t?Symbol.for("react.concurrent_mode"):60111,g=t?Symbol.for("react.forward_ref"):60112,y=t?Symbol.for("react.suspense"):60113,w=t?Symbol.for("react.suspense_list"):60120,b=t?Symbol.for("react.memo"):60115,C=t?Symbol.for("react.lazy"):60116,E=t?Symbol.for("react.block"):60121,$=t?Symbol.for("react.fundamental"):60117,O=t?Symbol.for("react.responder"):60118,_=t?Symbol.for("react.scope"):60119;function P(R){if(typeof R=="object"&&R!==null){var L=R.$$typeof;switch(L){case e:switch(R=R.type,R){case d:case h:case r:case o:case i:case y:return R;default:switch(R=R&&R.$$typeof,R){case l:case g:case C:case b:case u:return R;default:return L}}case n:return L}}}function k(R){return P(R)===h}return $n.AsyncMode=d,$n.ConcurrentMode=h,$n.ContextConsumer=l,$n.ContextProvider=u,$n.Element=e,$n.ForwardRef=g,$n.Fragment=r,$n.Lazy=C,$n.Memo=b,$n.Portal=n,$n.Profiler=o,$n.StrictMode=i,$n.Suspense=y,$n.isAsyncMode=function(R){return k(R)||P(R)===d},$n.isConcurrentMode=k,$n.isContextConsumer=function(R){return P(R)===l},$n.isContextProvider=function(R){return P(R)===u},$n.isElement=function(R){return typeof R=="object"&&R!==null&&R.$$typeof===e},$n.isForwardRef=function(R){return P(R)===g},$n.isFragment=function(R){return P(R)===r},$n.isLazy=function(R){return P(R)===C},$n.isMemo=function(R){return P(R)===b},$n.isPortal=function(R){return P(R)===n},$n.isProfiler=function(R){return P(R)===o},$n.isStrictMode=function(R){return P(R)===i},$n.isSuspense=function(R){return P(R)===y},$n.isValidElementType=function(R){return typeof R=="string"||typeof R=="function"||R===r||R===h||R===o||R===i||R===y||R===w||typeof R=="object"&&R!==null&&(R.$$typeof===C||R.$$typeof===b||R.$$typeof===u||R.$$typeof===l||R.$$typeof===g||R.$$typeof===$||R.$$typeof===O||R.$$typeof===_||R.$$typeof===E)},$n.typeOf=P,$n}var A_;function pq(){return A_||(A_=1,KC.exports=hq()),KC.exports}var YC,R_;function mq(){if(R_)return YC;R_=1;var t=pq(),e={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},n={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},r={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},i={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},o={};o[t.ForwardRef]=r,o[t.Memo]=i;function u(C){return t.isMemo(C)?i:o[C.$$typeof]||e}var l=Object.defineProperty,d=Object.getOwnPropertyNames,h=Object.getOwnPropertySymbols,g=Object.getOwnPropertyDescriptor,y=Object.getPrototypeOf,w=Object.prototype;function b(C,E,$){if(typeof E!="string"){if(w){var O=y(E);O&&O!==w&&b(C,O,$)}var _=d(E);h&&(_=_.concat(h(E)));for(var P=u(C),k=u(E),R=0;R<_.length;++R){var L=_[R];if(!n[L]&&!($&&$[L])&&!(k&&k[L])&&!(P&&P[L])){var F=g(E,L);try{l(C,L,F)}catch{}}}}return C}return YC=b,YC}var gq=mq();const yq=Hf(gq);function Qr(){return Qr=Object.assign||function(t){for(var e=1;e=0)&&(n[i]=t[i]);return n}var XS=T.createContext(void 0);XS.displayName="FormikContext";var vq=XS.Provider;XS.Consumer;function bq(){var t=T.useContext(XS);return t}var Lo=function(e){return typeof e=="function"},ZS=function(e){return e!==null&&typeof e=="object"},wq=function(e){return String(Math.floor(Number(e)))===e},JC=function(e){return Object.prototype.toString.call(e)==="[object String]"},Sq=function(e){return T.Children.count(e)===0},QC=function(e){return ZS(e)&&Lo(e.then)};function ro(t,e,n,r){r===void 0&&(r=0);for(var i=RI(e);t&&r=0?[]:{}}}return(o===0?t:i)[u[o]]===n?t:(n===void 0?delete i[u[o]]:i[u[o]]=n,o===0&&n===void 0&&delete r[u[o]],r)}function II(t,e,n,r){n===void 0&&(n=new WeakMap),r===void 0&&(r={});for(var i=0,o=Object.keys(t);i0?ze.map(function(Je){return Q(Je,ro(pe,Je))}):[Promise.resolve("DO_NOT_DELETE_YOU_WILL_BE_FIRED")];return Promise.all(Ge).then(function(Je){return Je.reduce(function(ht,B,A){return B==="DO_NOT_DELETE_YOU_WILL_BE_FIRED"||B&&(ht=sm(ht,ze[A],B)),ht},{})})},[Q]),me=T.useCallback(function(pe){return Promise.all([ue(pe),w.validationSchema?Y(pe):{},w.validate?q(pe):{}]).then(function(ze){var Ge=ze[0],Je=ze[1],ht=ze[2],B=fx.all([Ge,Je,ht],{arrayMerge:Oq});return B})},[w.validate,w.validationSchema,ue,q,Y]),te=Do(function(pe){return pe===void 0&&(pe=L.values),F({type:"SET_ISVALIDATING",payload:!0}),me(pe).then(function(ze){return O.current&&(F({type:"SET_ISVALIDATING",payload:!1}),F({type:"SET_ERRORS",payload:ze})),ze})});T.useEffect(function(){u&&O.current===!0&&Bp(b.current,w.initialValues)&&te(b.current)},[u,te]);var be=T.useCallback(function(pe){var ze=pe&&pe.values?pe.values:b.current,Ge=pe&&pe.errors?pe.errors:C.current?C.current:w.initialErrors||{},Je=pe&&pe.touched?pe.touched:E.current?E.current:w.initialTouched||{},ht=pe&&pe.status?pe.status:$.current?$.current:w.initialStatus;b.current=ze,C.current=Ge,E.current=Je,$.current=ht;var B=function(){F({type:"RESET_FORM",payload:{isSubmitting:!!pe&&!!pe.isSubmitting,errors:Ge,touched:Je,status:ht,values:ze,isValidating:!!pe&&!!pe.isValidating,submitCount:pe&&pe.submitCount&&typeof pe.submitCount=="number"?pe.submitCount:0}})};if(w.onReset){var A=w.onReset(L.values,bt);QC(A)?A.then(B):B()}else B()},[w.initialErrors,w.initialStatus,w.initialTouched,w.onReset]);T.useEffect(function(){O.current===!0&&!Bp(b.current,w.initialValues)&&h&&(b.current=w.initialValues,be(),u&&te(b.current))},[h,w.initialValues,be,u,te]),T.useEffect(function(){h&&O.current===!0&&!Bp(C.current,w.initialErrors)&&(C.current=w.initialErrors||fh,F({type:"SET_ERRORS",payload:w.initialErrors||fh}))},[h,w.initialErrors]),T.useEffect(function(){h&&O.current===!0&&!Bp(E.current,w.initialTouched)&&(E.current=w.initialTouched||gw,F({type:"SET_TOUCHED",payload:w.initialTouched||gw}))},[h,w.initialTouched]),T.useEffect(function(){h&&O.current===!0&&!Bp($.current,w.initialStatus)&&($.current=w.initialStatus,F({type:"SET_STATUS",payload:w.initialStatus}))},[h,w.initialStatus,w.initialTouched]);var Se=Do(function(pe){if(_.current[pe]&&Lo(_.current[pe].validate)){var ze=ro(L.values,pe),Ge=_.current[pe].validate(ze);return QC(Ge)?(F({type:"SET_ISVALIDATING",payload:!0}),Ge.then(function(Je){return Je}).then(function(Je){F({type:"SET_FIELD_ERROR",payload:{field:pe,value:Je}}),F({type:"SET_ISVALIDATING",payload:!1})})):(F({type:"SET_FIELD_ERROR",payload:{field:pe,value:Ge}}),Promise.resolve(Ge))}else if(w.validationSchema)return F({type:"SET_ISVALIDATING",payload:!0}),Y(L.values,pe).then(function(Je){return Je}).then(function(Je){F({type:"SET_FIELD_ERROR",payload:{field:pe,value:ro(Je,pe)}}),F({type:"SET_ISVALIDATING",payload:!1})});return Promise.resolve()}),j=T.useCallback(function(pe,ze){var Ge=ze.validate;_.current[pe]={validate:Ge}},[]),V=T.useCallback(function(pe){delete _.current[pe]},[]),H=Do(function(pe,ze){F({type:"SET_TOUCHED",payload:pe});var Ge=ze===void 0?i:ze;return Ge?te(L.values):Promise.resolve()}),ie=T.useCallback(function(pe){F({type:"SET_ERRORS",payload:pe})},[]),G=Do(function(pe,ze){var Ge=Lo(pe)?pe(L.values):pe;F({type:"SET_VALUES",payload:Ge});var Je=ze===void 0?n:ze;return Je?te(Ge):Promise.resolve()}),X=T.useCallback(function(pe,ze){F({type:"SET_FIELD_ERROR",payload:{field:pe,value:ze}})},[]),fe=Do(function(pe,ze,Ge){F({type:"SET_FIELD_VALUE",payload:{field:pe,value:ze}});var Je=Ge===void 0?n:Ge;return Je?te(sm(L.values,pe,ze)):Promise.resolve()}),$e=T.useCallback(function(pe,ze){var Ge=ze,Je=pe,ht;if(!JC(pe)){pe.persist&&pe.persist();var B=pe.target?pe.target:pe.currentTarget,A=B.type,M=B.name,J=B.id,re=B.value,ge=B.checked;B.outerHTML;var Ee=B.options,rt=B.multiple;Ge=ze||M||J,Je=/number|range/.test(A)?(ht=parseFloat(re),isNaN(ht)?"":ht):/checkbox/.test(A)?_q(ro(L.values,Ge),ge,re):Ee&&rt?Tq(Ee):re}Ge&&fe(Ge,Je)},[fe,L.values]),Ce=Do(function(pe){if(JC(pe))return function(ze){return $e(ze,pe)};$e(pe)}),je=Do(function(pe,ze,Ge){ze===void 0&&(ze=!0),F({type:"SET_FIELD_TOUCHED",payload:{field:pe,value:ze}});var Je=Ge===void 0?i:Ge;return Je?te(L.values):Promise.resolve()}),Pe=T.useCallback(function(pe,ze){pe.persist&&pe.persist();var Ge=pe.target,Je=Ge.name,ht=Ge.id;Ge.outerHTML;var B=ze||Je||ht;je(B,!0)},[je]),tt=Do(function(pe){if(JC(pe))return function(ze){return Pe(ze,pe)};Pe(pe)}),ke=T.useCallback(function(pe){Lo(pe)?F({type:"SET_FORMIK_STATE",payload:pe}):F({type:"SET_FORMIK_STATE",payload:function(){return pe}})},[]),Ke=T.useCallback(function(pe){F({type:"SET_STATUS",payload:pe})},[]),He=T.useCallback(function(pe){F({type:"SET_ISSUBMITTING",payload:pe})},[]),ut=Do(function(){return F({type:"SUBMIT_ATTEMPT"}),te().then(function(pe){var ze=pe instanceof Error,Ge=!ze&&Object.keys(pe).length===0;if(Ge){var Je;try{if(Je=gt(),Je===void 0)return}catch(ht){throw ht}return Promise.resolve(Je).then(function(ht){return O.current&&F({type:"SUBMIT_SUCCESS"}),ht}).catch(function(ht){if(O.current)throw F({type:"SUBMIT_FAILURE"}),ht})}else if(O.current&&(F({type:"SUBMIT_FAILURE"}),ze))throw pe})}),pt=Do(function(pe){pe&&pe.preventDefault&&Lo(pe.preventDefault)&&pe.preventDefault(),pe&&pe.stopPropagation&&Lo(pe.stopPropagation)&&pe.stopPropagation(),ut().catch(function(ze){console.warn("Warning: An unhandled error was caught from submitForm()",ze)})}),bt={resetForm:be,validateForm:te,validateField:Se,setErrors:ie,setFieldError:X,setFieldTouched:je,setFieldValue:fe,setStatus:Ke,setSubmitting:He,setTouched:H,setValues:G,setFormikState:ke,submitForm:ut},gt=Do(function(){return g(L.values,bt)}),Ut=Do(function(pe){pe&&pe.preventDefault&&Lo(pe.preventDefault)&&pe.preventDefault(),pe&&pe.stopPropagation&&Lo(pe.stopPropagation)&&pe.stopPropagation(),be()}),Gt=T.useCallback(function(pe){return{value:ro(L.values,pe),error:ro(L.errors,pe),touched:!!ro(L.touched,pe),initialValue:ro(b.current,pe),initialTouched:!!ro(E.current,pe),initialError:ro(C.current,pe)}},[L.errors,L.touched,L.values]),Tt=T.useCallback(function(pe){return{setValue:function(Ge,Je){return fe(pe,Ge,Je)},setTouched:function(Ge,Je){return je(pe,Ge,Je)},setError:function(Ge){return X(pe,Ge)}}},[fe,je,X]),en=T.useCallback(function(pe){var ze=ZS(pe),Ge=ze?pe.name:pe,Je=ro(L.values,Ge),ht={name:Ge,value:Je,onChange:Ce,onBlur:tt};if(ze){var B=pe.type,A=pe.value,M=pe.as,J=pe.multiple;B==="checkbox"?A===void 0?ht.checked=!!Je:(ht.checked=!!(Array.isArray(Je)&&~Je.indexOf(A)),ht.value=A):B==="radio"?(ht.checked=Je===A,ht.value=A):M==="select"&&J&&(ht.value=ht.value||[],ht.multiple=!0)}return ht},[tt,Ce,L.values]),xn=T.useMemo(function(){return!Bp(b.current,L.values)},[b.current,L.values]),Dt=T.useMemo(function(){return typeof l<"u"?xn?L.errors&&Object.keys(L.errors).length===0:l!==!1&&Lo(l)?l(w):l:L.errors&&Object.keys(L.errors).length===0},[l,xn,L.errors,w]),Pt=Qr({},L,{initialValues:b.current,initialErrors:C.current,initialTouched:E.current,initialStatus:$.current,handleBlur:tt,handleChange:Ce,handleReset:Ut,handleSubmit:pt,resetForm:be,setErrors:ie,setFormikState:ke,setFieldTouched:je,setFieldValue:fe,setFieldError:X,setStatus:Ke,setSubmitting:He,setTouched:H,setValues:G,submitForm:ut,validateForm:te,validateField:Se,isValid:Dt,dirty:xn,unregisterField:V,registerField:j,getFieldProps:en,getFieldMeta:Gt,getFieldHelpers:Tt,validateOnBlur:i,validateOnChange:n,validateOnMount:u});return Pt}function $q(t){var e=ql(t),n=t.component,r=t.children,i=t.render,o=t.innerRef;return T.useImperativeHandle(o,function(){return e}),T.createElement(vq,{value:e},n?T.createElement(n,e):i?i(e):r?Lo(r)?r(e):Sq(r)?null:T.Children.only(r):null)}function Eq(t){var e={};if(t.inner){if(t.inner.length===0)return sm(e,t.path,t.message);for(var i=t.inner,n=Array.isArray(i),r=0,i=n?i:i[Symbol.iterator]();;){var o;if(n){if(r>=i.length)break;o=i[r++]}else{if(r=i.next(),r.done)break;o=r.value}var u=o;ro(e,u.path)||(e=sm(e,u.path,u.message))}}return e}function xq(t,e,n,r){n===void 0&&(n=!1);var i=gx(t);return e[n?"validateSync":"validate"](i,{abortEarly:!1,context:i})}function gx(t){var e=Array.isArray(t)?[]:{};for(var n in t)if(Object.prototype.hasOwnProperty.call(t,n)){var r=String(n);Array.isArray(t[r])===!0?e[r]=t[r].map(function(i){return Array.isArray(i)===!0||n_(i)?gx(i):i!==""?i:void 0}):n_(t[r])?e[r]=gx(t[r]):e[r]=t[r]!==""?t[r]:void 0}return e}function Oq(t,e,n){var r=t.slice();return e.forEach(function(o,u){if(typeof r[u]>"u"){var l=n.clone!==!1,d=l&&n.isMergeableObject(o);r[u]=d?fx(Array.isArray(o)?[]:{},o,n):o}else n.isMergeableObject(o)?r[u]=fx(t[u],o,n):t.indexOf(o)===-1&&r.push(o)}),r}function Tq(t){return Array.from(t).filter(function(e){return e.selected}).map(function(e){return e.value})}function _q(t,e,n){if(typeof t=="boolean")return!!e;var r=[],i=!1,o=-1;if(Array.isArray(t))r=t,o=t.indexOf(n),i=o>=0;else if(!n||n=="true"||n=="false")return!!e;return e&&n&&!i?r.concat(n):i?r.slice(0,o).concat(r.slice(o+1)):r}var Aq=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u"?T.useLayoutEffect:T.useEffect;function Do(t){var e=T.useRef(t);return Aq(function(){e.current=t}),T.useCallback(function(){for(var n=arguments.length,r=new Array(n),i=0;i(t.NewEntity="new_entity",t.SidebarToggle="sidebarToggle",t.NewChildEntity="new_child_entity",t.EditEntity="edit_entity",t.ViewQuestions="view_questions",t.ExportTable="export_table",t.CommonBack="common_back",t.StopStart="StopStart",t.Delete="delete",t.Select1Index="select1_index",t.Select2Index="select2_index",t.Select3Index="select3_index",t.Select4Index="select4_index",t.Select5Index="select5_index",t.Select6Index="select6_index",t.Select7Index="select7_index",t.Select8Index="select8_index",t.Select9Index="select9_index",t.ToggleLock="l",t))(jn||{});function Pq(t,e){const n=$r.flatMapDeep(e,(r,i,o)=>{let u=[],l=i;if(r&&typeof r=="object"&&!r.value){const d=Object.keys(r);if(d.length)for(let h of d)u.push({name:`${l}.${h}`,filter:r[h]})}else u.push({name:l,filter:r});return u});return t.filter((r,i)=>{for(let o of n){const u=$r.get(r,o.name);if(u)switch(o.filter.operation){case"equal":if(u!==o.filter.value)return!1;break;case"contains":if(!u.includes(o.filter.value))return!1;break;case"notContains":if(u.includes(o.filter.value))return!1;break;case"endsWith":if(!u.endsWith(o.filter.value))return!1;break;case"startsWith":if(!u.startsWith(o.filter.value))return!1;break;case"greaterThan":if(uo.filter.value)return!1;break;case"lessThanOrEqual":if(u>=o.filter.value)return!1;break;case"notEqual":if(u===o.filter.value)return!1;break}}return!0})}async function ha(t,e,n){let r=t.toString(),i=e||{},o,u=fetch;return n&&([r,i]=await n.apply(r,i),n.fetchOverrideFn&&(u=n.fetchOverrideFn)),o=await u(r,i),n&&(o=await n.handle(o)),o}function Iq(t){return typeof t=="function"&&t.prototype&&t.prototype.constructor===t}async function pa(t,e,n,r){const i=t.headers.get("content-type")||"",o=t.headers.get("content-disposition")||"";if(i.includes("text/event-stream"))return Nq(t,n,r);if(o.includes("attachment")||!i.includes("json")&&!i.startsWith("text/"))t.result=t.body;else if(i.includes("application/json")){const u=await t.json();e?Iq(e)?t.result=new e(u):t.result=e(u):t.result=u}else t.result=await t.text();return{done:Promise.resolve(),response:t}}const Nq=(t,e,n)=>{if(!t.body)throw new Error("SSE requires readable body");const r=t.body.getReader(),i=new TextDecoder;let o="";const u=new Promise((l,d)=>{function h(){r.read().then(({done:g,value:y})=>{if(n!=null&&n.aborted)return r.cancel(),l();if(g)return l();o+=i.decode(y,{stream:!0});const w=o.split(` -`);o=w.pop()||"";for(const v of w){let C="",E="message";if(v.split(` -`).forEach($=>{$.startsWith("data:")?C+=$.slice(5).trim():$.startsWith("event:")&&(E=$.slice(6).trim())}),C){if(C==="[DONE]")return l();e==null||e(new MessageEvent(E,{data:C}))}}h()}).catch(g=>{g.name==="AbortError"?l():d(g)})}h()});return{response:t,done:u}};class _O{constructor(e="",n={},r,i,o=null){this.baseUrl=e,this.defaultHeaders=n,this.requestInterceptor=r,this.responseInterceptor=i,this.fetchOverrideFn=o}async apply(e,n){return/^https?:\/\//.test(e)||(e=this.baseUrl+e),n.headers={...this.defaultHeaders,...n.headers||{}},this.requestInterceptor?this.requestInterceptor(e,n):[e,n]}async handle(e){return this.responseInterceptor?this.responseInterceptor(e):e}clone(e){return new _O((e==null?void 0:e.baseUrl)??this.baseUrl,{...this.defaultHeaders,...(e==null?void 0:e.defaultHeaders)||{}},(e==null?void 0:e.requestInterceptor)??this.requestInterceptor,(e==null?void 0:e.responseInterceptor)??this.responseInterceptor)}}var sq={VITE_REMOTE_SERVICE:"/",PUBLIC_URL:"/selfservice/",VITE_DEFAULT_ROUTE:"/{locale}/passports",VITE_SUPPORTED_LANGUAGES:"fa,en"};const h0=sq,Ci={REMOTE_SERVICE:h0.VITE_REMOTE_SERVICE,PUBLIC_URL:h0.PUBLIC_URL,DEFAULT_ROUTE:h0.VITE_DEFAULT_ROUTE,SUPPORTED_LANGUAGES:h0.VITE_SUPPORTED_LANGUAGES,FORCED_LOCALE:h0.VITE_FORCED_LOCALE};var nh={},jc={},Cg={},r_;function uq(){if(r_)return Cg;r_=1,Cg.__esModule=!0,Cg.getAllMatches=t,Cg.escapeRegExp=e,Cg.escapeSource=n;function t(r,i){for(var o=void 0,u=[];o=r.exec(i);)u.push(o);return u}function e(r){return r.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function n(r){return e(r).replace(/\/+/g,"/+")}return Cg}var vu={},i_;function lq(){if(i_)return vu;i_=1,vu.__esModule=!0,vu.string=t,vu.greedySplat=e,vu.splat=n,vu.any=r,vu.int=i,vu.uuid=o,vu.createRule=u;function t(){var l=arguments.length<=0||arguments[0]===void 0?{}:arguments[0],d=l.maxLength,h=l.minLength,g=l.length;return u({validate:function(w){return!(d&&w.length>d||h&&w.lengthd||h&&v=q.length)break;Y=q[F++]}else{if(F=q.next(),F.done)break;Y=F.value}var X=Y[0],ue=Y[1],me=void 0;ue?me=$[ue]||n.string():X=="**"?(me=n.greedySplat(),ue="splat"):X=="*"?(me=n.splat(),ue="splat"):X==="("?k+="(?:":X===")"?k+=")?":k+=e.escapeSource(X),ue&&(k+=me.regex,R.push({paramName:ue,rule:me})),_.push(X)}var te=_[_.length-1]!=="*",be=te?"":"$";return k=new RegExp("^"+k+"/*"+be,"i"),{tokens:_,regexpSource:k,params:R,paramNames:R.map(function(we){return we.paramName})}}function d(C,E){return C.every(function($,O){return E[O].rule.validate($)})}function h(C){return typeof C=="string"&&(C={pattern:C,rules:{}}),i.default(C.pattern,"you cannot use an empty route pattern"),C.rules=C.rules||{},C}function g(C){return C=h(C),o[C.pattern]||(o[C.pattern]=l(C)),o[C.pattern]}function y(C,E){E.charAt(0)!=="/"&&(E="/"+E);var $=g(C),O=$.regexpSource,_=$.params,R=$.paramNames,k=E.match(O);if(k!=null){var P=E.slice(k[0].length);if(!(P[0]=="/"||k[0][k[0].length])){var L=k.slice(1).map(function(F){return F!=null?decodeURIComponent(F):F});if(d(L,_))return L=L.map(function(F,q){return _[q].rule.convert(F)}),{remainingPathname:P,paramValues:L,paramNames:R}}}}function w(C,E){E=E||{};for(var $=g(C),O=$.tokens,_=0,R="",k=0,P=void 0,L=void 0,F=void 0,q=0,Y=O.length;q0,'Missing splat #%s for path "%s"',k,C.pattern),F!=null&&(R+=encodeURI(F))):P==="("?_+=1:P===")"?_-=1:P.charAt(0)===":"?(L=P.substring(1),F=E[L],i.default(F!=null||_>0,'Missing "%s" parameter for path "%s"',L,C.pattern),F!=null&&(R+=encodeURIComponent(F))):R+=P;return R.replace(/\/+/g,"/")}function v(C,E){var $=y(C,E)||{},O=$.paramNames,_=$.paramValues,R=[];if(!O)return null;for(var k=0;k1&&arguments[1]!==void 0?arguments[1]:null,o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null,u=arguments.length>3&&arguments[3]!==void 0?arguments[3]:null;if(mq(this,e),r=gq(this,e,[n]),r.originalRequest=o,r.originalResponse=u,r.causingError=i,i!=null&&(n+=", caused by ".concat(i.toString())),o!=null){var l=o.getHeader("X-Request-ID")||"n/a",d=o.getMethod(),h=o.getURL(),g=u?u.getStatus():"n/a",y=u?u.getBody()||"":"n/a";n+=", originated from request (method: ".concat(d,", url: ").concat(h,", response code: ").concat(g,", response text: ").concat(y,", request id: ").concat(l,")")}return r.message=n,r}return bq(e,t),pq(e)})(zE(Error));function r1(t){"@babel/helpers - typeof";return r1=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r1(t)}function Cq(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function $q(t,e){for(var n=0;n{let e={};return t.forEach((n,r)=>e[n]=r),e})(D0),Rq=/^(?:[A-Za-z\d+\/]{4})*?(?:[A-Za-z\d+\/]{2}(?:==)?|[A-Za-z\d+\/]{3}=?)?$/,wi=String.fromCharCode.bind(String),c_=typeof Uint8Array.from=="function"?Uint8Array.from.bind(Uint8Array):t=>new Uint8Array(Array.prototype.slice.call(t,0)),oI=t=>t.replace(/=/g,"").replace(/[+\/]/g,e=>e=="+"?"-":"_"),sI=t=>t.replace(/[^A-Za-z0-9\+\/]/g,""),uI=t=>{let e,n,r,i,o="";const u=t.length%3;for(let l=0;l255||(r=t.charCodeAt(l++))>255||(i=t.charCodeAt(l++))>255)throw new TypeError("invalid character found");e=n<<16|r<<8|i,o+=D0[e>>18&63]+D0[e>>12&63]+D0[e>>6&63]+D0[e&63]}return u?o.slice(0,u-3)+"===".substring(u):o},RO=typeof btoa=="function"?t=>btoa(t):uy?t=>Buffer.from(t,"binary").toString("base64"):uI,VE=uy?t=>Buffer.from(t).toString("base64"):t=>{let n=[];for(let r=0,i=t.length;re?oI(VE(t)):VE(t),Pq=t=>{if(t.length<2){var e=t.charCodeAt(0);return e<128?t:e<2048?wi(192|e>>>6)+wi(128|e&63):wi(224|e>>>12&15)+wi(128|e>>>6&63)+wi(128|e&63)}else{var e=65536+(t.charCodeAt(0)-55296)*1024+(t.charCodeAt(1)-56320);return wi(240|e>>>18&7)+wi(128|e>>>12&63)+wi(128|e>>>6&63)+wi(128|e&63)}},Iq=/[\uD800-\uDBFF][\uDC00-\uDFFFF]|[^\x00-\x7F]/g,lI=t=>t.replace(Iq,Pq),f_=uy?t=>Buffer.from(t,"utf8").toString("base64"):l_?t=>VE(l_.encode(t)):t=>RO(lI(t)),Vg=(t,e=!1)=>e?oI(f_(t)):f_(t),d_=t=>Vg(t,!0),Nq=/[\xC0-\xDF][\x80-\xBF]|[\xE0-\xEF][\x80-\xBF]{2}|[\xF0-\xF7][\x80-\xBF]{3}/g,Mq=t=>{switch(t.length){case 4:var e=(7&t.charCodeAt(0))<<18|(63&t.charCodeAt(1))<<12|(63&t.charCodeAt(2))<<6|63&t.charCodeAt(3),n=e-65536;return wi((n>>>10)+55296)+wi((n&1023)+56320);case 3:return wi((15&t.charCodeAt(0))<<12|(63&t.charCodeAt(1))<<6|63&t.charCodeAt(2));default:return wi((31&t.charCodeAt(0))<<6|63&t.charCodeAt(1))}},cI=t=>t.replace(Nq,Mq),fI=t=>{if(t=t.replace(/\s+/g,""),!Rq.test(t))throw new TypeError("malformed base64.");t+="==".slice(2-(t.length&3));let e,n="",r,i;for(let o=0;o>16&255):i===64?wi(e>>16&255,e>>8&255):wi(e>>16&255,e>>8&255,e&255);return n},PO=typeof atob=="function"?t=>atob(sI(t)):uy?t=>Buffer.from(t,"base64").toString("binary"):fI,dI=uy?t=>c_(Buffer.from(t,"base64")):t=>c_(PO(t).split("").map(e=>e.charCodeAt(0))),hI=t=>dI(pI(t)),kq=uy?t=>Buffer.from(t,"base64").toString("utf8"):u_?t=>u_.decode(dI(t)):t=>cI(PO(t)),pI=t=>sI(t.replace(/[-_]/g,e=>e=="-"?"+":"/")),GE=t=>kq(pI(t)),Dq=t=>{if(typeof t!="string")return!1;const e=t.replace(/\s+/g,"").replace(/={0,2}$/,"");return!/[^\s0-9a-zA-Z\+/]/.test(e)||!/[^\s0-9a-zA-Z\-_]/.test(e)},mI=t=>({value:t,enumerable:!1,writable:!0,configurable:!0}),gI=function(){const t=(e,n)=>Object.defineProperty(String.prototype,e,mI(n));t("fromBase64",function(){return GE(this)}),t("toBase64",function(e){return Vg(this,e)}),t("toBase64URI",function(){return Vg(this,!0)}),t("toBase64URL",function(){return Vg(this,!0)}),t("toUint8Array",function(){return hI(this)})},yI=function(){const t=(e,n)=>Object.defineProperty(Uint8Array.prototype,e,mI(n));t("toBase64",function(e){return Sw(this,e)}),t("toBase64URI",function(){return Sw(this,!0)}),t("toBase64URL",function(){return Sw(this,!0)})},Fq=()=>{gI(),yI()},Lq={version:aI,VERSION:_q,atob:PO,atobPolyfill:fI,btoa:RO,btoaPolyfill:uI,fromBase64:GE,toBase64:Vg,encode:Vg,encodeURI:d_,encodeURL:d_,utob:lI,btou:cI,decode:GE,isValid:Dq,fromUint8Array:Sw,toUint8Array:hI,extendString:gI,extendUint8Array:yI,extendBuiltins:Fq};var TC,h_;function Uq(){return h_||(h_=1,TC=function(e,n){if(n=n.split(":")[0],e=+e,!e)return!1;switch(n){case"http":case"ws":return e!==80;case"https":case"wss":return e!==443;case"ftp":return e!==21;case"gopher":return e!==70;case"file":return!1}return e!==0}),TC}var K2={},p_;function jq(){if(p_)return K2;p_=1;var t=Object.prototype.hasOwnProperty,e;function n(u){try{return decodeURIComponent(u.replace(/\+/g," "))}catch{return null}}function r(u){try{return encodeURIComponent(u)}catch{return null}}function i(u){for(var l=/([^=?#&]+)=?([^&]*)/g,d={},h;h=l.exec(u);){var g=n(h[1]),y=n(h[2]);g===null||y===null||g in d||(d[g]=y)}return d}function o(u,l){l=l||"";var d=[],h,g;typeof l!="string"&&(l="?");for(g in u)if(t.call(u,g)){if(h=u[g],!h&&(h===null||h===e||isNaN(h))&&(h=""),g=r(g),h=r(h),g===null||h===null)continue;d.push(g+"="+h)}return d.length?l+d.join("&"):""}return K2.stringify=o,K2.parse=i,K2}var _C,m_;function Bq(){if(m_)return _C;m_=1;var t=Uq(),e=jq(),n=/^[\x00-\x20\u00a0\u1680\u2000-\u200a\u2028\u2029\u202f\u205f\u3000\ufeff]+/,r=/[\n\r\t]/g,i=/^[A-Za-z][A-Za-z0-9+-.]*:\/\//,o=/:\d+$/,u=/^([a-z][a-z0-9.+-]*:)?(\/\/)?([\\/]+)?([\S\s]*)/i,l=/^[a-zA-Z]:/;function d(_){return(_||"").toString().replace(n,"")}var h=[["#","hash"],["?","query"],function(R,k){return w(k.protocol)?R.replace(/\\/g,"/"):R},["/","pathname"],["@","auth",1],[NaN,"host",void 0,1,1],[/:(\d*)$/,"port",void 0,1],[NaN,"hostname",void 0,1,1]],g={hash:1,query:1};function y(_){var R;typeof window<"u"?R=window:typeof Ef<"u"?R=Ef:typeof self<"u"?R=self:R={};var k=R.location||{};_=_||k;var P={},L=typeof _,F;if(_.protocol==="blob:")P=new E(unescape(_.pathname),{});else if(L==="string"){P=new E(_,{});for(F in g)delete P[F]}else if(L==="object"){for(F in _)F in g||(P[F]=_[F]);P.slashes===void 0&&(P.slashes=i.test(_.href))}return P}function w(_){return _==="file:"||_==="ftp:"||_==="http:"||_==="https:"||_==="ws:"||_==="wss:"}function v(_,R){_=d(_),_=_.replace(r,""),R=R||{};var k=u.exec(_),P=k[1]?k[1].toLowerCase():"",L=!!k[2],F=!!k[3],q=0,Y;return L?F?(Y=k[2]+k[3]+k[4],q=k[2].length+k[3].length):(Y=k[2]+k[4],q=k[2].length):F?(Y=k[3]+k[4],q=k[3].length):Y=k[4],P==="file:"?q>=2&&(Y=Y.slice(2)):w(P)?Y=k[4]:P?L&&(Y=Y.slice(2)):q>=2&&w(R.protocol)&&(Y=k[4]),{protocol:P,slashes:L||w(P),slashesCount:q,rest:Y}}function C(_,R){if(_==="")return R;for(var k=(R||"/").split("/").slice(0,-1).concat(_.split("/")),P=k.length,L=k[P-1],F=!1,q=0;P--;)k[P]==="."?k.splice(P,1):k[P]===".."?(k.splice(P,1),q++):q&&(P===0&&(F=!0),k.splice(P,1),q--);return F&&k.unshift(""),(L==="."||L==="..")&&k.push(""),k.join("/")}function E(_,R,k){if(_=d(_),_=_.replace(r,""),!(this instanceof E))return new E(_,R,k);var P,L,F,q,Y,X,ue=h.slice(),me=typeof R,te=this,be=0;for(me!=="object"&&me!=="string"&&(k=R,R=null),k&&typeof k!="function"&&(k=e.parse),R=y(R),L=v(_||"",R),P=!L.protocol&&!L.slashes,te.slashes=L.slashes||P&&R.slashes,te.protocol=L.protocol||R.protocol||"",_=L.rest,(L.protocol==="file:"&&(L.slashesCount!==2||l.test(_))||!L.slashes&&(L.protocol||L.slashesCount<2||!w(te.protocol)))&&(ue[3]=[/(.*)/,"pathname"]);be=0;--G){var Q=this.tryEntries[G],he=Q.completion;if(Q.tryLoc==="root")return ie("end");if(Q.tryLoc<=this.prev){var $e=r.call(Q,"catchLoc"),Ce=r.call(Q,"finallyLoc");if($e&&Ce){if(this.prev=0;--ie){var G=this.tryEntries[ie];if(G.tryLoc<=this.prev&&r.call(G,"finallyLoc")&&this.prev=0;--H){var ie=this.tryEntries[H];if(ie.finallyLoc===V)return this.complete(ie.completion,ie.afterLoc),te(ie),$}},catch:function(V){for(var H=this.tryEntries.length-1;H>=0;--H){var ie=this.tryEntries[H];if(ie.tryLoc===V){var G=ie.completion;if(G.type==="throw"){var Q=G.arg;te(ie)}return Q}}throw Error("illegal catch attempt")},delegateYield:function(V,H,ie){return this.delegate={iterator:we(V),resultName:H,nextLoc:ie},this.method==="next"&&(this.arg=t),$}},e}function g_(t,e,n,r,i,o,u){try{var l=t[o](u),d=l.value}catch(h){n(h);return}l.done?e(d):Promise.resolve(d).then(r,i)}function Vq(t){return function(){var e=this,n=arguments;return new Promise(function(r,i){var o=t.apply(e,n);function u(d){g_(o,r,i,u,l,"next",d)}function l(d){g_(o,r,i,u,l,"throw",d)}u(void 0)})}}function vI(t,e){return Kq(t)||Wq(t,e)||bI(t,e)||Gq()}function Gq(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. -In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Wq(t,e){var n=t==null?null:typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(n!=null){var r,i,o,u,l=[],d=!0,h=!1;try{if(o=(n=n.call(t)).next,e!==0)for(;!(d=(r=o.call(n)).done)&&(l.push(r.value),l.length!==e);d=!0);}catch(g){h=!0,i=g}finally{try{if(!d&&n.return!=null&&(u=n.return(),Object(u)!==u))return}finally{if(h)throw i}}return l}}function Kq(t){if(Array.isArray(t))return t}function Vp(t){"@babel/helpers - typeof";return Vp=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Vp(t)}function Yq(t,e){var n=typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(!n){if(Array.isArray(t)||(n=bI(t))||e){n&&(t=n);var r=0,i=function(){};return{s:i,n:function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(h){throw h},f:i}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. -In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var o=!0,u=!1,l;return{s:function(){n=n.call(t)},n:function(){var h=n.next();return o=h.done,h},e:function(h){u=!0,l=h},f:function(){try{!o&&n.return!=null&&n.return()}finally{if(u)throw l}}}}function bI(t,e){if(t){if(typeof t=="string")return y_(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);if(n==="Object"&&t.constructor&&(n=t.constructor.name),n==="Map"||n==="Set")return Array.from(t);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return y_(t,e)}}function y_(t,e){(e==null||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n1)for(var o=0,u=["uploadUrl","uploadSize","uploadLengthDeferred"];o1||n._parallelUploadUrls!=null?n._startParallelUpload():n._startSingleUpload()}).catch(function(d){n._emitError(d)})}},{key:"_startParallelUpload",value:function(){var n,r=this,i=this._size,o=0;this._parallelUploads=[];var u=this._parallelUploadUrls!=null?this._parallelUploadUrls.length:this.options.parallelUploads,l=(n=this.options.parallelUploadBoundaries)!==null&&n!==void 0?n:nH(this._source.size,u);this._parallelUploadUrls&&l.forEach(function(g,y){g.uploadUrl=r._parallelUploadUrls[y]||null}),this._parallelUploadUrls=new Array(l.length);var d=l.map(function(g,y){var w=0;return r._source.slice(g.start,g.end).then(function(v){var C=v.value;return new Promise(function(E,$){var O=$g($g({},r.options),{},{uploadUrl:g.uploadUrl||null,storeFingerprintForResuming:!1,removeFingerprintOnSuccess:!1,parallelUploads:1,parallelUploadBoundaries:null,metadata:r.options.metadataForPartialUploads,headers:$g($g({},r.options.headers),{},{"Upload-Concat":"partial"}),onSuccess:E,onError:$,onProgress:function(k){o=o-w+k,w=k,r._emitProgress(o,i)},onUploadUrlAvailable:function(){r._parallelUploadUrls[y]=_.url,r._parallelUploadUrls.filter(function(k){return!!k}).length===l.length&&r._saveUploadInUrlStorage()}}),_=new t(C,O);_.start(),r._parallelUploads.push(_)})})}),h;Promise.all(d).then(function(){h=r._openRequest("POST",r.options.endpoint),h.setHeader("Upload-Concat","final;".concat(r._parallelUploadUrls.join(" ")));var g=w_(r.options.metadata);return g!==""&&h.setHeader("Upload-Metadata",g),r._sendRequest(h,null)}).then(function(g){if(!Ig(g.getStatus(),200)){r._emitHttpError(h,g,"tus: unexpected response while creating upload");return}var y=g.getHeader("Location");if(y==null){r._emitHttpError(h,g,"tus: invalid or missing Location header");return}r.url=E_(r.options.endpoint,y),"Created upload at ".concat(r.url),r._emitSuccess(g)}).catch(function(g){r._emitError(g)})}},{key:"_startSingleUpload",value:function(){if(this._aborted=!1,this.url!=null){"Resuming upload from previous URL: ".concat(this.url),this._resumeUpload();return}if(this.options.uploadUrl!=null){"Resuming upload from provided URL: ".concat(this.options.uploadUrl),this.url=this.options.uploadUrl,this._resumeUpload();return}this._createUpload()}},{key:"abort",value:function(n){var r=this;if(this._parallelUploads!=null){var i=Yq(this._parallelUploads),o;try{for(i.s();!(o=i.n()).done;){var u=o.value;u.abort(n)}}catch(l){i.e(l)}finally{i.f()}}return this._req!==null&&this._req.abort(),this._aborted=!0,this._retryTimeout!=null&&(clearTimeout(this._retryTimeout),this._retryTimeout=null),!n||this.url==null?Promise.resolve():t.terminate(this.url,this.options).then(function(){return r._removeFromUrlStorage()})}},{key:"_emitHttpError",value:function(n,r,i,o){this._emitError(new G2(i,o,n,r))}},{key:"_emitError",value:function(n){var r=this;if(!this._aborted){if(this.options.retryDelays!=null){var i=this._offset!=null&&this._offset>this._offsetBeforeRetry;if(i&&(this._retryAttempt=0),$_(n,this._retryAttempt,this.options)){var o=this.options.retryDelays[this._retryAttempt++];this._offsetBeforeRetry=this._offset,this._retryTimeout=setTimeout(function(){r.start()},o);return}}if(typeof this.options.onError=="function")this.options.onError(n);else throw n}}},{key:"_emitSuccess",value:function(n){this.options.removeFingerprintOnSuccess&&this._removeFromUrlStorage(),typeof this.options.onSuccess=="function"&&this.options.onSuccess({lastResponse:n})}},{key:"_emitProgress",value:function(n,r){typeof this.options.onProgress=="function"&&this.options.onProgress(n,r)}},{key:"_emitChunkComplete",value:function(n,r,i){typeof this.options.onChunkComplete=="function"&&this.options.onChunkComplete(n,r,i)}},{key:"_createUpload",value:function(){var n=this;if(!this.options.endpoint){this._emitError(new Error("tus: unable to create upload because no endpoint is provided"));return}var r=this._openRequest("POST",this.options.endpoint);this.options.uploadLengthDeferred?r.setHeader("Upload-Defer-Length","1"):r.setHeader("Upload-Length","".concat(this._size));var i=w_(this.options.metadata);i!==""&&r.setHeader("Upload-Metadata",i);var o;this.options.uploadDataDuringCreation&&!this.options.uploadLengthDeferred?(this._offset=0,o=this._addChunkToRequest(r)):((this.options.protocol===$w||this.options.protocol===F0)&&r.setHeader("Upload-Complete","?0"),o=this._sendRequest(r,null)),o.then(function(u){if(!Ig(u.getStatus(),200)){n._emitHttpError(r,u,"tus: unexpected response while creating upload");return}var l=u.getHeader("Location");if(l==null){n._emitHttpError(r,u,"tus: invalid or missing Location header");return}if(n.url=E_(n.options.endpoint,l),"Created upload at ".concat(n.url),typeof n.options.onUploadUrlAvailable=="function"&&n.options.onUploadUrlAvailable(),n._size===0){n._emitSuccess(u),n._source.close();return}n._saveUploadInUrlStorage().then(function(){n.options.uploadDataDuringCreation?n._handleUploadResponse(r,u):(n._offset=0,n._performUpload())})}).catch(function(u){n._emitHttpError(r,null,"tus: failed to create upload",u)})}},{key:"_resumeUpload",value:function(){var n=this,r=this._openRequest("HEAD",this.url),i=this._sendRequest(r,null);i.then(function(o){var u=o.getStatus();if(!Ig(u,200)){if(u===423){n._emitHttpError(r,o,"tus: upload is currently locked; retry later");return}if(Ig(u,400)&&n._removeFromUrlStorage(),!n.options.endpoint){n._emitHttpError(r,o,"tus: unable to resume upload (new upload cannot be created without an endpoint)");return}n.url=null,n._createUpload();return}var l=Number.parseInt(o.getHeader("Upload-Offset"),10);if(Number.isNaN(l)){n._emitHttpError(r,o,"tus: invalid or missing offset value");return}var d=Number.parseInt(o.getHeader("Upload-Length"),10);if(Number.isNaN(d)&&!n.options.uploadLengthDeferred&&n.options.protocol===Cw){n._emitHttpError(r,o,"tus: invalid or missing length value");return}typeof n.options.onUploadUrlAvailable=="function"&&n.options.onUploadUrlAvailable(),n._saveUploadInUrlStorage().then(function(){if(l===d){n._emitProgress(d,d),n._emitSuccess(o);return}n._offset=l,n._performUpload()})}).catch(function(o){n._emitHttpError(r,null,"tus: failed to resume upload",o)})}},{key:"_performUpload",value:function(){var n=this;if(!this._aborted){var r;this.options.overridePatchMethod?(r=this._openRequest("POST",this.url),r.setHeader("X-HTTP-Method-Override","PATCH")):r=this._openRequest("PATCH",this.url),r.setHeader("Upload-Offset","".concat(this._offset));var i=this._addChunkToRequest(r);i.then(function(o){if(!Ig(o.getStatus(),200)){n._emitHttpError(r,o,"tus: unexpected response while uploading chunk");return}n._handleUploadResponse(r,o)}).catch(function(o){n._aborted||n._emitHttpError(r,null,"tus: failed to upload chunk at offset ".concat(n._offset),o)})}}},{key:"_addChunkToRequest",value:function(n){var r=this,i=this._offset,o=this._offset+this.options.chunkSize;return n.setProgressHandler(function(u){r._emitProgress(i+u,r._size)}),this.options.protocol===Cw?n.setHeader("Content-Type","application/offset+octet-stream"):this.options.protocol===F0&&n.setHeader("Content-Type","application/partial-upload"),(o===Number.POSITIVE_INFINITY||o>this._size)&&!this.options.uploadLengthDeferred&&(o=this._size),this._source.slice(i,o).then(function(u){var l=u.value,d=u.done,h=l!=null&&l.size?l.size:0;r.options.uploadLengthDeferred&&d&&(r._size=r._offset+h,n.setHeader("Upload-Length","".concat(r._size)));var g=r._offset+h;return!r.options.uploadLengthDeferred&&d&&g!==r._size?Promise.reject(new Error("upload was configured with a size of ".concat(r._size," bytes, but the source is done after ").concat(g," bytes"))):l===null?r._sendRequest(n):((r.options.protocol===$w||r.options.protocol===F0)&&n.setHeader("Upload-Complete",d?"?1":"?0"),r._emitProgress(r._offset,r._size),r._sendRequest(n,l))})}},{key:"_handleUploadResponse",value:function(n,r){var i=Number.parseInt(r.getHeader("Upload-Offset"),10);if(Number.isNaN(i)){this._emitHttpError(n,r,"tus: invalid or missing offset value");return}if(this._emitProgress(i,this._size),this._emitChunkComplete(i-this._offset,i,this._size),this._offset=i,i===this._size){this._emitSuccess(r),this._source.close();return}this._performUpload()}},{key:"_openRequest",value:function(n,r){var i=S_(n,r,this.options);return this._req=i,i}},{key:"_removeFromUrlStorage",value:function(){var n=this;this._urlStorageKey&&(this._urlStorage.removeUpload(this._urlStorageKey).catch(function(r){n._emitError(r)}),this._urlStorageKey=null)}},{key:"_saveUploadInUrlStorage",value:function(){var n=this;if(!this.options.storeFingerprintForResuming||!this._fingerprint||this._urlStorageKey!==null)return Promise.resolve();var r={size:this._size,metadata:this.options.metadata,creationTime:new Date().toString()};return this._parallelUploads?r.parallelUploadUrls=this._parallelUploadUrls:r.uploadUrl=this.url,this._urlStorage.addUpload(this._fingerprint,r).then(function(i){n._urlStorageKey=i})}},{key:"_sendRequest",value:function(n){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;return C_(n,r,this.options)}}],[{key:"terminate",value:function(n){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},i=S_("DELETE",n,r);return C_(i,null,r).then(function(o){if(o.getStatus()!==204)throw new G2("tus: unexpected response while terminating upload",null,i,o)}).catch(function(o){if(o instanceof G2||(o=new G2("tus: failed to terminate upload",o,i,null)),!$_(o,0,r))throw o;var u=r.retryDelays[0],l=r.retryDelays.slice(1),d=$g($g({},r),{},{retryDelays:l});return new Promise(function(h){return setTimeout(h,u)}).then(function(){return t.terminate(n,d)})})}}])})();function w_(t){return Object.entries(t).map(function(e){var n=vI(e,2),r=n[0],i=n[1];return"".concat(r," ").concat(Lq.encode(String(i)))}).join(",")}function Ig(t,e){return t>=e&&t=n.retryDelays.length||t.originalRequest==null?!1:n&&typeof n.onShouldRetry=="function"?n.onShouldRetry(t,e,n):SI(t)}function SI(t){var e=t.originalResponse?t.originalResponse.getStatus():0;return(!Ig(e,400)||e===409||e===423)&&tH()}function E_(t,e){return new Hq(e,t).toString()}function nH(t,e){for(var n=Math.floor(t/e),r=[],i=0;i=this.size;return Promise.resolve({value:i,done:o})}},{key:"close",value:function(){}}])})();function a1(t){"@babel/helpers - typeof";return a1=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},a1(t)}function fH(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function dH(t,e){for(var n=0;nthis._bufferOffset&&(this._buffer=this._buffer.slice(n-this._bufferOffset),this._bufferOffset=n);var i=O_(this._buffer)===0;return this._done&&i?null:this._buffer.slice(0,r-n)}},{key:"close",value:function(){this._reader.cancel&&this._reader.cancel()}}])})();function Gp(t){"@babel/helpers - typeof";return Gp=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Gp(t)}function YE(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */YE=function(){return e};var t,e={},n=Object.prototype,r=n.hasOwnProperty,i=Object.defineProperty||function(B,V,H){B[V]=H.value},o=typeof Symbol=="function"?Symbol:{},u=o.iterator||"@@iterator",l=o.asyncIterator||"@@asyncIterator",d=o.toStringTag||"@@toStringTag";function h(B,V,H){return Object.defineProperty(B,V,{value:H,enumerable:!0,configurable:!0,writable:!0}),B[V]}try{h({},"")}catch{h=function(H,ie,G){return H[ie]=G}}function g(B,V,H,ie){var G=V&&V.prototype instanceof O?V:O,Q=Object.create(G.prototype),he=new be(ie||[]);return i(Q,"_invoke",{value:X(B,H,he)}),Q}function y(B,V,H){try{return{type:"normal",arg:B.call(V,H)}}catch(ie){return{type:"throw",arg:ie}}}e.wrap=g;var w="suspendedStart",v="suspendedYield",C="executing",E="completed",$={};function O(){}function _(){}function R(){}var k={};h(k,u,function(){return this});var P=Object.getPrototypeOf,L=P&&P(P(we([])));L&&L!==n&&r.call(L,u)&&(k=L);var F=R.prototype=O.prototype=Object.create(k);function q(B){["next","throw","return"].forEach(function(V){h(B,V,function(H){return this._invoke(V,H)})})}function Y(B,V){function H(G,Q,he,$e){var Ce=y(B[G],B,Q);if(Ce.type!=="throw"){var Be=Ce.arg,Ie=Be.value;return Ie&&Gp(Ie)=="object"&&r.call(Ie,"__await")?V.resolve(Ie.__await).then(function(tt){H("next",tt,he,$e)},function(tt){H("throw",tt,he,$e)}):V.resolve(Ie).then(function(tt){Be.value=tt,he(Be)},function(tt){return H("throw",tt,he,$e)})}$e(Ce.arg)}var ie;i(this,"_invoke",{value:function(Q,he){function $e(){return new V(function(Ce,Be){H(Q,he,Ce,Be)})}return ie=ie?ie.then($e,$e):$e()}})}function X(B,V,H){var ie=w;return function(G,Q){if(ie===C)throw Error("Generator is already running");if(ie===E){if(G==="throw")throw Q;return{value:t,done:!0}}for(H.method=G,H.arg=Q;;){var he=H.delegate;if(he){var $e=ue(he,H);if($e){if($e===$)continue;return $e}}if(H.method==="next")H.sent=H._sent=H.arg;else if(H.method==="throw"){if(ie===w)throw ie=E,H.arg;H.dispatchException(H.arg)}else H.method==="return"&&H.abrupt("return",H.arg);ie=C;var Ce=y(B,V,H);if(Ce.type==="normal"){if(ie=H.done?E:v,Ce.arg===$)continue;return{value:Ce.arg,done:H.done}}Ce.type==="throw"&&(ie=E,H.method="throw",H.arg=Ce.arg)}}}function ue(B,V){var H=V.method,ie=B.iterator[H];if(ie===t)return V.delegate=null,H==="throw"&&B.iterator.return&&(V.method="return",V.arg=t,ue(B,V),V.method==="throw")||H!=="return"&&(V.method="throw",V.arg=new TypeError("The iterator does not provide a '"+H+"' method")),$;var G=y(ie,B.iterator,V.arg);if(G.type==="throw")return V.method="throw",V.arg=G.arg,V.delegate=null,$;var Q=G.arg;return Q?Q.done?(V[B.resultName]=Q.value,V.next=B.nextLoc,V.method!=="return"&&(V.method="next",V.arg=t),V.delegate=null,$):Q:(V.method="throw",V.arg=new TypeError("iterator result is not an object"),V.delegate=null,$)}function me(B){var V={tryLoc:B[0]};1 in B&&(V.catchLoc=B[1]),2 in B&&(V.finallyLoc=B[2],V.afterLoc=B[3]),this.tryEntries.push(V)}function te(B){var V=B.completion||{};V.type="normal",delete V.arg,B.completion=V}function be(B){this.tryEntries=[{tryLoc:"root"}],B.forEach(me,this),this.reset(!0)}function we(B){if(B||B===""){var V=B[u];if(V)return V.call(B);if(typeof B.next=="function")return B;if(!isNaN(B.length)){var H=-1,ie=function G(){for(;++H=0;--G){var Q=this.tryEntries[G],he=Q.completion;if(Q.tryLoc==="root")return ie("end");if(Q.tryLoc<=this.prev){var $e=r.call(Q,"catchLoc"),Ce=r.call(Q,"finallyLoc");if($e&&Ce){if(this.prev=0;--ie){var G=this.tryEntries[ie];if(G.tryLoc<=this.prev&&r.call(G,"finallyLoc")&&this.prev=0;--H){var ie=this.tryEntries[H];if(ie.finallyLoc===V)return this.complete(ie.completion,ie.afterLoc),te(ie),$}},catch:function(V){for(var H=this.tryEntries.length-1;H>=0;--H){var ie=this.tryEntries[H];if(ie.tryLoc===V){var G=ie.completion;if(G.type==="throw"){var Q=G.arg;te(ie)}return Q}}throw Error("illegal catch attempt")},delegateYield:function(V,H,ie){return this.delegate={iterator:we(V),resultName:H,nextLoc:ie},this.method==="next"&&(this.arg=t),$}},e}function T_(t,e,n,r,i,o,u){try{var l=t[o](u),d=l.value}catch(h){n(h);return}l.done?e(d):Promise.resolve(d).then(r,i)}function vH(t){return function(){var e=this,n=arguments;return new Promise(function(r,i){var o=t.apply(e,n);function u(d){T_(o,r,i,u,l,"next",d)}function l(d){T_(o,r,i,u,l,"throw",d)}u(void 0)})}}function bH(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function wH(t,e){for(var n=0;n0&&arguments[0]!==void 0?arguments[0]:null;return new Promise(function(i,o){n._xhr.onload=function(){i(new NH(n._xhr))},n._xhr.onerror=function(u){o(u)},n._xhr.send(r)})}},{key:"abort",value:function(){return this._xhr.abort(),Promise.resolve()}},{key:"getUnderlyingObject",value:function(){return this._xhr}}])})(),NH=(function(){function t(e){IO(this,t),this._xhr=e}return NO(t,[{key:"getStatus",value:function(){return this._xhr.status}},{key:"getHeader",value:function(n){return this._xhr.getResponseHeader(n)}},{key:"getBody",value:function(){return this._xhr.responseText}},{key:"getUnderlyingObject",value:function(){return this._xhr}}])})();function s1(t){"@babel/helpers - typeof";return s1=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},s1(t)}function MH(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function kH(t,e){for(var n=0;n0&&arguments[0]!==void 0?arguments[0]:null,r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return BH(this,e),r=Ng(Ng({},R_),r),zH(this,e,[n,r])}return WH(e,t),HH(e,null,[{key:"terminate",value:function(r){var i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return i=Ng(Ng({},R_),i),Vw.terminate(r,i)}}])})(Vw);const Sn=Ae.createContext({setSession(t){},options:{}});class QH{async setItem(e,n){return localStorage.setItem(e,n)}async getItem(e){return localStorage.getItem(e)}async removeItem(e){return localStorage.removeItem(e)}}async function XH(t,e,n){n.setItem("fb_microservice_"+t,JSON.stringify(e))}function ZH(t,e,n){n.setItem("fb_selected_workspace_"+t,JSON.stringify(e))}async function ez(t,e){let n=null;try{n=JSON.parse(await e.getItem("fb_microservice_"+t))}catch{}return n}async function tz(t,e){let n=null;try{n=JSON.parse(await e.getItem("fb_selected_workspace_"+t))}catch{}return n}function nz({children:t,remote:e,selectedUrw:n,identifier:r,token:i,preferredAcceptLanguage:o,queryClient:u,defaultExecFn:l,socketEnabled:d,socket:h,credentialStorage:g,prefix:y}){var V;const[w,v]=T.useState(!1),[C,E]=T.useState(),[$,O]=T.useState(""),[_,R]=T.useState(),k=T.useRef(g||new QH),P=async()=>{const H=await tz(r,k.current),ie=await ez(r,k.current);R(H),E(ie),v(!0)};T.useEffect(()=>{P()},[]);const[L,F]=T.useState([]),[q,Y]=T.useState(l),X=!!C,ue=H=>{ZH(r,H,k.current),R(H)},me=H=>{E(()=>(XH(r,H,k.current),H))},te={headers:{authorization:i||(C==null?void 0:C.token)},prefix:($||e)+(y||"")};if(_)te.headers["workspace-id"]=_.workspaceId,te.headers["role-id"]=_.roleId;else if(n)te.headers["workspace-id"]=n.workspaceId,te.headers["role-id"]=n.roleId;else if(C!=null&&C.userWorkspaces&&C.userWorkspaces.length>0){const H=C.userWorkspaces[0];te.headers["workspace-id"]=H.workspaceId,te.headers["role-id"]=H.roleId}o&&(te.headers["accept-language"]=o),T.useEffect(()=>{i&&E({...C||{},token:i})},[i]);const be=()=>{var H;E(null),(H=k.current)==null||H.removeItem("fb_microservice_"+r),ue(void 0)},we=()=>{F([])},{socketState:B}=rz(e,(V=te.headers)==null?void 0:V.authorization,te.headers["workspace-id"],u,d);return N.jsx(Sn.Provider,{value:{options:te,signout:be,setOverrideRemoteUrl:O,overrideRemoteUrl:$,setSession:me,socketState:B,checked:w,selectedUrw:_,selectUrw:ue,session:C,preferredAcceptLanguage:o,activeUploads:L,setActiveUploads:F,execFn:q,setExecFn:Y,discardActiveUploads:we,isAuthenticated:X},children:t})}function rz(t,e,n,r,i=!0){const[o,u]=T.useState({state:"unknown"});return T.useEffect(()=>{if(!t||!e||e==="undefined"||i===!1)return;const l=t.replace("https","wss").replace("http","ws");let d;try{d=new WebSocket(`${l}ws?token=${e}&workspaceId=${n}`),d.onerror=function(h){u({state:"error"})},d.onclose=function(h){u({state:"closed"})},d.onmessage=function(h){try{const g=JSON.parse(h.data);g!=null&&g.cacheKey&&r.invalidateQueries(g==null?void 0:g.cacheKey)}catch{console.error("Socket message parsing error",h)}},d.onopen=function(h){u({state:"connected"})}}catch{}return()=>{(d==null?void 0:d.readyState)===1&&d.close()}},[e,n]),{socketState:o}}function Ta(t){if(!t)return{};const e={};return t.startIndex&&(e.startIndex=t.startIndex),t.itemsPerPage&&(e.itemsPerPage=t.itemsPerPage),t.query&&(e.query=t.query),t.deep&&(e.deep=t.deep),t.jsonQuery&&(e.jsonQuery=JSON.stringify(t.jsonQuery)),t.withPreloads&&(e.withPreloads=t.withPreloads),t.uniqueId&&(e.uniqueId=t.uniqueId),t.sort&&(e.sort=t.sort),e}const xI=T.createContext(null),iz=xI.Provider;function oo(){return T.useContext(xI)}function az({children:t,queryClient:e,prefix:n,mockServer:r,config:i,locale:o}){return N.jsx(nz,{socket:!0,preferredAcceptLanguage:o||i.interfaceLanguage,identifier:"fireback",prefix:n,queryClient:e,remote:Ci.REMOTE_SERVICE,defaultExecFn:void 0,children:N.jsx(oz,{children:t,mockServer:r})})}const oz=({children:t,mockServer:e})=>{var o;const{options:n,session:r}=T.useContext(Sn),i=T.useRef(new _O((o=Ci.REMOTE_SERVICE)==null?void 0:o.replace(/\/$/,"")));return i.current.defaultHeaders={authorization:r==null?void 0:r.token,"workspace-id":n==null?void 0:n.headers["workspace-id"]},N.jsx(iz,{value:i.current,children:t})};/** +`);o=w.pop()||"";for(const b of w){let C="",E="message";if(b.split(` +`).forEach($=>{$.startsWith("data:")?C+=$.slice(5).trim():$.startsWith("event:")&&(E=$.slice(6).trim())}),C){if(C==="[DONE]")return l();e==null||e(new MessageEvent(E,{data:C}))}}h()}).catch(g=>{g.name==="AbortError"?l():d(g)})}h()});return{response:t,done:u}};class nT{constructor(e="",n={},r,i,o=null){this.baseUrl=e,this.defaultHeaders=n,this.requestInterceptor=r,this.responseInterceptor=i,this.fetchOverrideFn=o}async apply(e,n){return/^https?:\/\//.test(e)||(e=this.baseUrl+e),n.headers={...this.defaultHeaders,...n.headers||{}},this.requestInterceptor?this.requestInterceptor(e,n):[e,n]}async handle(e){return this.responseInterceptor?this.responseInterceptor(e):e}clone(e){return new nT((e==null?void 0:e.baseUrl)??this.baseUrl,{...this.defaultHeaders,...(e==null?void 0:e.defaultHeaders)||{}},(e==null?void 0:e.requestInterceptor)??this.requestInterceptor,(e==null?void 0:e.responseInterceptor)??this.responseInterceptor)}}var Mq={VITE_REMOTE_SERVICE:"/",PUBLIC_URL:"/selfservice/",VITE_DEFAULT_ROUTE:"/{locale}/passports",VITE_SUPPORTED_LANGUAGES:"fa,en"};const M0=Mq,$i={REMOTE_SERVICE:M0.VITE_REMOTE_SERVICE,PUBLIC_URL:M0.PUBLIC_URL,DEFAULT_ROUTE:M0.VITE_DEFAULT_ROUTE,SUPPORTED_LANGUAGES:M0.VITE_SUPPORTED_LANGUAGES,FORCED_LOCALE:M0.VITE_FORCED_LOCALE};var dh={},Gc={},zg={},P_;function kq(){if(P_)return zg;P_=1,zg.__esModule=!0,zg.getAllMatches=t,zg.escapeRegExp=e,zg.escapeSource=n;function t(r,i){for(var o=void 0,u=[];o=r.exec(i);)u.push(o);return u}function e(r){return r.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function n(r){return e(r).replace(/\/+/g,"/+")}return zg}var Su={},I_;function Dq(){if(I_)return Su;I_=1,Su.__esModule=!0,Su.string=t,Su.greedySplat=e,Su.splat=n,Su.any=r,Su.int=i,Su.uuid=o,Su.createRule=u;function t(){var l=arguments.length<=0||arguments[0]===void 0?{}:arguments[0],d=l.maxLength,h=l.minLength,g=l.length;return u({validate:function(w){return!(d&&w.length>d||h&&w.lengthd||h&&b=q.length)break;Y=q[F++]}else{if(F=q.next(),F.done)break;Y=F.value}var Q=Y[0],ue=Y[1],me=void 0;ue?me=$[ue]||n.string():Q=="**"?(me=n.greedySplat(),ue="splat"):Q=="*"?(me=n.splat(),ue="splat"):Q==="("?k+="(?:":Q===")"?k+=")?":k+=e.escapeSource(Q),ue&&(k+=me.regex,P.push({paramName:ue,rule:me})),_.push(Q)}var te=_[_.length-1]!=="*",be=te?"":"$";return k=new RegExp("^"+k+"/*"+be,"i"),{tokens:_,regexpSource:k,params:P,paramNames:P.map(function(Se){return Se.paramName})}}function d(C,E){return C.every(function($,O){return E[O].rule.validate($)})}function h(C){return typeof C=="string"&&(C={pattern:C,rules:{}}),i.default(C.pattern,"you cannot use an empty route pattern"),C.rules=C.rules||{},C}function g(C){return C=h(C),o[C.pattern]||(o[C.pattern]=l(C)),o[C.pattern]}function y(C,E){E.charAt(0)!=="/"&&(E="/"+E);var $=g(C),O=$.regexpSource,_=$.params,P=$.paramNames,k=E.match(O);if(k!=null){var R=E.slice(k[0].length);if(!(R[0]=="/"||k[0][k[0].length])){var L=k.slice(1).map(function(F){return F!=null?decodeURIComponent(F):F});if(d(L,_))return L=L.map(function(F,q){return _[q].rule.convert(F)}),{remainingPathname:R,paramValues:L,paramNames:P}}}}function w(C,E){E=E||{};for(var $=g(C),O=$.tokens,_=0,P="",k=0,R=void 0,L=void 0,F=void 0,q=0,Y=O.length;q0,'Missing splat #%s for path "%s"',k,C.pattern),F!=null&&(P+=encodeURI(F))):R==="("?_+=1:R===")"?_-=1:R.charAt(0)===":"?(L=R.substring(1),F=E[L],i.default(F!=null||_>0,'Missing "%s" parameter for path "%s"',L,C.pattern),F!=null&&(P+=encodeURIComponent(F))):P+=R;return P.replace(/\/+/g,"/")}function b(C,E){var $=y(C,E)||{},O=$.paramNames,_=$.paramValues,P=[];if(!O)return null;for(var k=0;k1&&arguments[1]!==void 0?arguments[1]:null,o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null,u=arguments.length>3&&arguments[3]!==void 0?arguments[3]:null;if(qq(this,e),r=Hq(this,e,[n]),r.originalRequest=o,r.originalResponse=u,r.causingError=i,i!=null&&(n+=", caused by ".concat(i.toString())),o!=null){var l=o.getHeader("X-Request-ID")||"n/a",d=o.getMethod(),h=o.getURL(),g=u?u.getStatus():"n/a",y=u?u.getBody()||"":"n/a";n+=", originated from request (method: ".concat(d,", url: ").concat(h,", response code: ").concat(g,", response text: ").concat(y,", request id: ").concat(l,")")}return r.message=n,r}return Gq(e,t),jq(e)})(vx(Error));function x1(t){"@babel/helpers - typeof";return x1=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},x1(t)}function Yq(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Jq(t,e){for(var n=0;n{let e={};return t.forEach((n,r)=>e[n]=r),e})(r1),rH=/^(?:[A-Za-z\d+\/]{4})*?(?:[A-Za-z\d+\/]{2}(?:==)?|[A-Za-z\d+\/]{3}=?)?$/,Si=String.fromCharCode.bind(String),L_=typeof Uint8Array.from=="function"?Uint8Array.from.bind(Uint8Array):t=>new Uint8Array(Array.prototype.slice.call(t,0)),MI=t=>t.replace(/=/g,"").replace(/[+\/]/g,e=>e=="+"?"-":"_"),kI=t=>t.replace(/[^A-Za-z0-9\+\/]/g,""),DI=t=>{let e,n,r,i,o="";const u=t.length%3;for(let l=0;l255||(r=t.charCodeAt(l++))>255||(i=t.charCodeAt(l++))>255)throw new TypeError("invalid character found");e=n<<16|r<<8|i,o+=r1[e>>18&63]+r1[e>>12&63]+r1[e>>6&63]+r1[e&63]}return u?o.slice(0,u-3)+"===".substring(u):o},iT=typeof btoa=="function"?t=>btoa(t):Ay?t=>Buffer.from(t,"binary").toString("base64"):DI,bx=Ay?t=>Buffer.from(t).toString("base64"):t=>{let n=[];for(let r=0,i=t.length;re?MI(bx(t)):bx(t),iH=t=>{if(t.length<2){var e=t.charCodeAt(0);return e<128?t:e<2048?Si(192|e>>>6)+Si(128|e&63):Si(224|e>>>12&15)+Si(128|e>>>6&63)+Si(128|e&63)}else{var e=65536+(t.charCodeAt(0)-55296)*1024+(t.charCodeAt(1)-56320);return Si(240|e>>>18&7)+Si(128|e>>>12&63)+Si(128|e>>>6&63)+Si(128|e&63)}},aH=/[\uD800-\uDBFF][\uDC00-\uDFFFF]|[^\x00-\x7F]/g,FI=t=>t.replace(aH,iH),U_=Ay?t=>Buffer.from(t,"utf8").toString("base64"):F_?t=>bx(F_.encode(t)):t=>iT(FI(t)),hy=(t,e=!1)=>e?MI(U_(t)):U_(t),B_=t=>hy(t,!0),oH=/[\xC0-\xDF][\x80-\xBF]|[\xE0-\xEF][\x80-\xBF]{2}|[\xF0-\xF7][\x80-\xBF]{3}/g,sH=t=>{switch(t.length){case 4:var e=(7&t.charCodeAt(0))<<18|(63&t.charCodeAt(1))<<12|(63&t.charCodeAt(2))<<6|63&t.charCodeAt(3),n=e-65536;return Si((n>>>10)+55296)+Si((n&1023)+56320);case 3:return Si((15&t.charCodeAt(0))<<12|(63&t.charCodeAt(1))<<6|63&t.charCodeAt(2));default:return Si((31&t.charCodeAt(0))<<6|63&t.charCodeAt(1))}},LI=t=>t.replace(oH,sH),UI=t=>{if(t=t.replace(/\s+/g,""),!rH.test(t))throw new TypeError("malformed base64.");t+="==".slice(2-(t.length&3));let e,n="",r,i;for(let o=0;o>16&255):i===64?Si(e>>16&255,e>>8&255):Si(e>>16&255,e>>8&255,e&255);return n},aT=typeof atob=="function"?t=>atob(kI(t)):Ay?t=>Buffer.from(t,"base64").toString("binary"):UI,BI=Ay?t=>L_(Buffer.from(t,"base64")):t=>L_(aT(t).split("").map(e=>e.charCodeAt(0))),jI=t=>BI(qI(t)),uH=Ay?t=>Buffer.from(t,"base64").toString("utf8"):D_?t=>D_.decode(BI(t)):t=>LI(aT(t)),qI=t=>kI(t.replace(/[-_]/g,e=>e=="-"?"+":"/")),wx=t=>uH(qI(t)),lH=t=>{if(typeof t!="string")return!1;const e=t.replace(/\s+/g,"").replace(/={0,2}$/,"");return!/[^\s0-9a-zA-Z\+/]/.test(e)||!/[^\s0-9a-zA-Z\-_]/.test(e)},HI=t=>({value:t,enumerable:!1,writable:!0,configurable:!0}),zI=function(){const t=(e,n)=>Object.defineProperty(String.prototype,e,HI(n));t("fromBase64",function(){return wx(this)}),t("toBase64",function(e){return hy(this,e)}),t("toBase64URI",function(){return hy(this,!0)}),t("toBase64URL",function(){return hy(this,!0)}),t("toUint8Array",function(){return jI(this)})},VI=function(){const t=(e,n)=>Object.defineProperty(Uint8Array.prototype,e,HI(n));t("toBase64",function(e){return Ww(this,e)}),t("toBase64URI",function(){return Ww(this,!0)}),t("toBase64URL",function(){return Ww(this,!0)})},cH=()=>{zI(),VI()},fH={version:NI,VERSION:tH,atob:aT,atobPolyfill:UI,btoa:iT,btoaPolyfill:DI,fromBase64:wx,toBase64:hy,encode:hy,encodeURI:B_,encodeURL:B_,utob:FI,btou:LI,decode:wx,isValid:lH,fromUint8Array:Ww,toUint8Array:jI,extendString:zI,extendUint8Array:VI,extendBuiltins:cH};var ZC,j_;function dH(){return j_||(j_=1,ZC=function(e,n){if(n=n.split(":")[0],e=+e,!e)return!1;switch(n){case"http":case"ws":return e!==80;case"https":case"wss":return e!==443;case"ftp":return e!==21;case"gopher":return e!==70;case"file":return!1}return e!==0}),ZC}var bw={},q_;function hH(){if(q_)return bw;q_=1;var t=Object.prototype.hasOwnProperty,e;function n(u){try{return decodeURIComponent(u.replace(/\+/g," "))}catch{return null}}function r(u){try{return encodeURIComponent(u)}catch{return null}}function i(u){for(var l=/([^=?#&]+)=?([^&]*)/g,d={},h;h=l.exec(u);){var g=n(h[1]),y=n(h[2]);g===null||y===null||g in d||(d[g]=y)}return d}function o(u,l){l=l||"";var d=[],h,g;typeof l!="string"&&(l="?");for(g in u)if(t.call(u,g)){if(h=u[g],!h&&(h===null||h===e||isNaN(h))&&(h=""),g=r(g),h=r(h),g===null||h===null)continue;d.push(g+"="+h)}return d.length?l+d.join("&"):""}return bw.stringify=o,bw.parse=i,bw}var e$,H_;function pH(){if(H_)return e$;H_=1;var t=dH(),e=hH(),n=/^[\x00-\x20\u00a0\u1680\u2000-\u200a\u2028\u2029\u202f\u205f\u3000\ufeff]+/,r=/[\n\r\t]/g,i=/^[A-Za-z][A-Za-z0-9+-.]*:\/\//,o=/:\d+$/,u=/^([a-z][a-z0-9.+-]*:)?(\/\/)?([\\/]+)?([\S\s]*)/i,l=/^[a-zA-Z]:/;function d(_){return(_||"").toString().replace(n,"")}var h=[["#","hash"],["?","query"],function(P,k){return w(k.protocol)?P.replace(/\\/g,"/"):P},["/","pathname"],["@","auth",1],[NaN,"host",void 0,1,1],[/:(\d*)$/,"port",void 0,1],[NaN,"hostname",void 0,1,1]],g={hash:1,query:1};function y(_){var P;typeof window<"u"?P=window:typeof Nf<"u"?P=Nf:typeof self<"u"?P=self:P={};var k=P.location||{};_=_||k;var R={},L=typeof _,F;if(_.protocol==="blob:")R=new E(unescape(_.pathname),{});else if(L==="string"){R=new E(_,{});for(F in g)delete R[F]}else if(L==="object"){for(F in _)F in g||(R[F]=_[F]);R.slashes===void 0&&(R.slashes=i.test(_.href))}return R}function w(_){return _==="file:"||_==="ftp:"||_==="http:"||_==="https:"||_==="ws:"||_==="wss:"}function b(_,P){_=d(_),_=_.replace(r,""),P=P||{};var k=u.exec(_),R=k[1]?k[1].toLowerCase():"",L=!!k[2],F=!!k[3],q=0,Y;return L?F?(Y=k[2]+k[3]+k[4],q=k[2].length+k[3].length):(Y=k[2]+k[4],q=k[2].length):F?(Y=k[3]+k[4],q=k[3].length):Y=k[4],R==="file:"?q>=2&&(Y=Y.slice(2)):w(R)?Y=k[4]:R?L&&(Y=Y.slice(2)):q>=2&&w(P.protocol)&&(Y=k[4]),{protocol:R,slashes:L||w(R),slashesCount:q,rest:Y}}function C(_,P){if(_==="")return P;for(var k=(P||"/").split("/").slice(0,-1).concat(_.split("/")),R=k.length,L=k[R-1],F=!1,q=0;R--;)k[R]==="."?k.splice(R,1):k[R]===".."?(k.splice(R,1),q++):q&&(R===0&&(F=!0),k.splice(R,1),q--);return F&&k.unshift(""),(L==="."||L==="..")&&k.push(""),k.join("/")}function E(_,P,k){if(_=d(_),_=_.replace(r,""),!(this instanceof E))return new E(_,P,k);var R,L,F,q,Y,Q,ue=h.slice(),me=typeof P,te=this,be=0;for(me!=="object"&&me!=="string"&&(k=P,P=null),k&&typeof k!="function"&&(k=e.parse),P=y(P),L=b(_||"",P),R=!L.protocol&&!L.slashes,te.slashes=L.slashes||R&&P.slashes,te.protocol=L.protocol||P.protocol||"",_=L.rest,(L.protocol==="file:"&&(L.slashesCount!==2||l.test(_))||!L.slashes&&(L.protocol||L.slashesCount<2||!w(te.protocol)))&&(ue[3]=[/(.*)/,"pathname"]);be=0;--G){var X=this.tryEntries[G],fe=X.completion;if(X.tryLoc==="root")return ie("end");if(X.tryLoc<=this.prev){var $e=r.call(X,"catchLoc"),Ce=r.call(X,"finallyLoc");if($e&&Ce){if(this.prev=0;--ie){var G=this.tryEntries[ie];if(G.tryLoc<=this.prev&&r.call(G,"finallyLoc")&&this.prev=0;--H){var ie=this.tryEntries[H];if(ie.finallyLoc===V)return this.complete(ie.completion,ie.afterLoc),te(ie),$}},catch:function(V){for(var H=this.tryEntries.length-1;H>=0;--H){var ie=this.tryEntries[H];if(ie.tryLoc===V){var G=ie.completion;if(G.type==="throw"){var X=G.arg;te(ie)}return X}}throw Error("illegal catch attempt")},delegateYield:function(V,H,ie){return this.delegate={iterator:Se(V),resultName:H,nextLoc:ie},this.method==="next"&&(this.arg=t),$}},e}function z_(t,e,n,r,i,o,u){try{var l=t[o](u),d=l.value}catch(h){n(h);return}l.done?e(d):Promise.resolve(d).then(r,i)}function vH(t){return function(){var e=this,n=arguments;return new Promise(function(r,i){var o=t.apply(e,n);function u(d){z_(o,r,i,u,l,"next",d)}function l(d){z_(o,r,i,u,l,"throw",d)}u(void 0)})}}function GI(t,e){return SH(t)||wH(t,e)||WI(t,e)||bH()}function bH(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function wH(t,e){var n=t==null?null:typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(n!=null){var r,i,o,u,l=[],d=!0,h=!1;try{if(o=(n=n.call(t)).next,e!==0)for(;!(d=(r=o.call(n)).done)&&(l.push(r.value),l.length!==e);d=!0);}catch(g){h=!0,i=g}finally{try{if(!d&&n.return!=null&&(u=n.return(),Object(u)!==u))return}finally{if(h)throw i}}return l}}function SH(t){if(Array.isArray(t))return t}function dm(t){"@babel/helpers - typeof";return dm=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},dm(t)}function CH(t,e){var n=typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(!n){if(Array.isArray(t)||(n=WI(t))||e){n&&(t=n);var r=0,i=function(){};return{s:i,n:function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(h){throw h},f:i}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var o=!0,u=!1,l;return{s:function(){n=n.call(t)},n:function(){var h=n.next();return o=h.done,h},e:function(h){u=!0,l=h},f:function(){try{!o&&n.return!=null&&n.return()}finally{if(u)throw l}}}}function WI(t,e){if(t){if(typeof t=="string")return V_(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);if(n==="Object"&&t.constructor&&(n=t.constructor.name),n==="Map"||n==="Set")return Array.from(t);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return V_(t,e)}}function V_(t,e){(e==null||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n1)for(var o=0,u=["uploadUrl","uploadSize","uploadLengthDeferred"];o1||n._parallelUploadUrls!=null?n._startParallelUpload():n._startSingleUpload()}).catch(function(d){n._emitError(d)})}},{key:"_startParallelUpload",value:function(){var n,r=this,i=this._size,o=0;this._parallelUploads=[];var u=this._parallelUploadUrls!=null?this._parallelUploadUrls.length:this.options.parallelUploads,l=(n=this.options.parallelUploadBoundaries)!==null&&n!==void 0?n:AH(this._source.size,u);this._parallelUploadUrls&&l.forEach(function(g,y){g.uploadUrl=r._parallelUploadUrls[y]||null}),this._parallelUploadUrls=new Array(l.length);var d=l.map(function(g,y){var w=0;return r._source.slice(g.start,g.end).then(function(b){var C=b.value;return new Promise(function(E,$){var O=Vg(Vg({},r.options),{},{uploadUrl:g.uploadUrl||null,storeFingerprintForResuming:!1,removeFingerprintOnSuccess:!1,parallelUploads:1,parallelUploadBoundaries:null,metadata:r.options.metadataForPartialUploads,headers:Vg(Vg({},r.options.headers),{},{"Upload-Concat":"partial"}),onSuccess:E,onError:$,onProgress:function(k){o=o-w+k,w=k,r._emitProgress(o,i)},onUploadUrlAvailable:function(){r._parallelUploadUrls[y]=_.url,r._parallelUploadUrls.filter(function(k){return!!k}).length===l.length&&r._saveUploadInUrlStorage()}}),_=new t(C,O);_.start(),r._parallelUploads.push(_)})})}),h;Promise.all(d).then(function(){h=r._openRequest("POST",r.options.endpoint),h.setHeader("Upload-Concat","final;".concat(r._parallelUploadUrls.join(" ")));var g=K_(r.options.metadata);return g!==""&&h.setHeader("Upload-Metadata",g),r._sendRequest(h,null)}).then(function(g){if(!ey(g.getStatus(),200)){r._emitHttpError(h,g,"tus: unexpected response while creating upload");return}var y=g.getHeader("Location");if(y==null){r._emitHttpError(h,g,"tus: invalid or missing Location header");return}r.url=X_(r.options.endpoint,y),"Created upload at ".concat(r.url),r._emitSuccess(g)}).catch(function(g){r._emitError(g)})}},{key:"_startSingleUpload",value:function(){if(this._aborted=!1,this.url!=null){"Resuming upload from previous URL: ".concat(this.url),this._resumeUpload();return}if(this.options.uploadUrl!=null){"Resuming upload from provided URL: ".concat(this.options.uploadUrl),this.url=this.options.uploadUrl,this._resumeUpload();return}this._createUpload()}},{key:"abort",value:function(n){var r=this;if(this._parallelUploads!=null){var i=CH(this._parallelUploads),o;try{for(i.s();!(o=i.n()).done;){var u=o.value;u.abort(n)}}catch(l){i.e(l)}finally{i.f()}}return this._req!==null&&this._req.abort(),this._aborted=!0,this._retryTimeout!=null&&(clearTimeout(this._retryTimeout),this._retryTimeout=null),!n||this.url==null?Promise.resolve():t.terminate(this.url,this.options).then(function(){return r._removeFromUrlStorage()})}},{key:"_emitHttpError",value:function(n,r,i,o){this._emitError(new yw(i,o,n,r))}},{key:"_emitError",value:function(n){var r=this;if(!this._aborted){if(this.options.retryDelays!=null){var i=this._offset!=null&&this._offset>this._offsetBeforeRetry;if(i&&(this._retryAttempt=0),Q_(n,this._retryAttempt,this.options)){var o=this.options.retryDelays[this._retryAttempt++];this._offsetBeforeRetry=this._offset,this._retryTimeout=setTimeout(function(){r.start()},o);return}}if(typeof this.options.onError=="function")this.options.onError(n);else throw n}}},{key:"_emitSuccess",value:function(n){this.options.removeFingerprintOnSuccess&&this._removeFromUrlStorage(),typeof this.options.onSuccess=="function"&&this.options.onSuccess({lastResponse:n})}},{key:"_emitProgress",value:function(n,r){typeof this.options.onProgress=="function"&&this.options.onProgress(n,r)}},{key:"_emitChunkComplete",value:function(n,r,i){typeof this.options.onChunkComplete=="function"&&this.options.onChunkComplete(n,r,i)}},{key:"_createUpload",value:function(){var n=this;if(!this.options.endpoint){this._emitError(new Error("tus: unable to create upload because no endpoint is provided"));return}var r=this._openRequest("POST",this.options.endpoint);this.options.uploadLengthDeferred?r.setHeader("Upload-Defer-Length","1"):r.setHeader("Upload-Length","".concat(this._size));var i=K_(this.options.metadata);i!==""&&r.setHeader("Upload-Metadata",i);var o;this.options.uploadDataDuringCreation&&!this.options.uploadLengthDeferred?(this._offset=0,o=this._addChunkToRequest(r)):((this.options.protocol===Yw||this.options.protocol===i1)&&r.setHeader("Upload-Complete","?0"),o=this._sendRequest(r,null)),o.then(function(u){if(!ey(u.getStatus(),200)){n._emitHttpError(r,u,"tus: unexpected response while creating upload");return}var l=u.getHeader("Location");if(l==null){n._emitHttpError(r,u,"tus: invalid or missing Location header");return}if(n.url=X_(n.options.endpoint,l),"Created upload at ".concat(n.url),typeof n.options.onUploadUrlAvailable=="function"&&n.options.onUploadUrlAvailable(),n._size===0){n._emitSuccess(u),n._source.close();return}n._saveUploadInUrlStorage().then(function(){n.options.uploadDataDuringCreation?n._handleUploadResponse(r,u):(n._offset=0,n._performUpload())})}).catch(function(u){n._emitHttpError(r,null,"tus: failed to create upload",u)})}},{key:"_resumeUpload",value:function(){var n=this,r=this._openRequest("HEAD",this.url),i=this._sendRequest(r,null);i.then(function(o){var u=o.getStatus();if(!ey(u,200)){if(u===423){n._emitHttpError(r,o,"tus: upload is currently locked; retry later");return}if(ey(u,400)&&n._removeFromUrlStorage(),!n.options.endpoint){n._emitHttpError(r,o,"tus: unable to resume upload (new upload cannot be created without an endpoint)");return}n.url=null,n._createUpload();return}var l=Number.parseInt(o.getHeader("Upload-Offset"),10);if(Number.isNaN(l)){n._emitHttpError(r,o,"tus: invalid or missing offset value");return}var d=Number.parseInt(o.getHeader("Upload-Length"),10);if(Number.isNaN(d)&&!n.options.uploadLengthDeferred&&n.options.protocol===Kw){n._emitHttpError(r,o,"tus: invalid or missing length value");return}typeof n.options.onUploadUrlAvailable=="function"&&n.options.onUploadUrlAvailable(),n._saveUploadInUrlStorage().then(function(){if(l===d){n._emitProgress(d,d),n._emitSuccess(o);return}n._offset=l,n._performUpload()})}).catch(function(o){n._emitHttpError(r,null,"tus: failed to resume upload",o)})}},{key:"_performUpload",value:function(){var n=this;if(!this._aborted){var r;this.options.overridePatchMethod?(r=this._openRequest("POST",this.url),r.setHeader("X-HTTP-Method-Override","PATCH")):r=this._openRequest("PATCH",this.url),r.setHeader("Upload-Offset","".concat(this._offset));var i=this._addChunkToRequest(r);i.then(function(o){if(!ey(o.getStatus(),200)){n._emitHttpError(r,o,"tus: unexpected response while uploading chunk");return}n._handleUploadResponse(r,o)}).catch(function(o){n._aborted||n._emitHttpError(r,null,"tus: failed to upload chunk at offset ".concat(n._offset),o)})}}},{key:"_addChunkToRequest",value:function(n){var r=this,i=this._offset,o=this._offset+this.options.chunkSize;return n.setProgressHandler(function(u){r._emitProgress(i+u,r._size)}),this.options.protocol===Kw?n.setHeader("Content-Type","application/offset+octet-stream"):this.options.protocol===i1&&n.setHeader("Content-Type","application/partial-upload"),(o===Number.POSITIVE_INFINITY||o>this._size)&&!this.options.uploadLengthDeferred&&(o=this._size),this._source.slice(i,o).then(function(u){var l=u.value,d=u.done,h=l!=null&&l.size?l.size:0;r.options.uploadLengthDeferred&&d&&(r._size=r._offset+h,n.setHeader("Upload-Length","".concat(r._size)));var g=r._offset+h;return!r.options.uploadLengthDeferred&&d&&g!==r._size?Promise.reject(new Error("upload was configured with a size of ".concat(r._size," bytes, but the source is done after ").concat(g," bytes"))):l===null?r._sendRequest(n):((r.options.protocol===Yw||r.options.protocol===i1)&&n.setHeader("Upload-Complete",d?"?1":"?0"),r._emitProgress(r._offset,r._size),r._sendRequest(n,l))})}},{key:"_handleUploadResponse",value:function(n,r){var i=Number.parseInt(r.getHeader("Upload-Offset"),10);if(Number.isNaN(i)){this._emitHttpError(n,r,"tus: invalid or missing offset value");return}if(this._emitProgress(i,this._size),this._emitChunkComplete(i-this._offset,i,this._size),this._offset=i,i===this._size){this._emitSuccess(r),this._source.close();return}this._performUpload()}},{key:"_openRequest",value:function(n,r){var i=Y_(n,r,this.options);return this._req=i,i}},{key:"_removeFromUrlStorage",value:function(){var n=this;this._urlStorageKey&&(this._urlStorage.removeUpload(this._urlStorageKey).catch(function(r){n._emitError(r)}),this._urlStorageKey=null)}},{key:"_saveUploadInUrlStorage",value:function(){var n=this;if(!this.options.storeFingerprintForResuming||!this._fingerprint||this._urlStorageKey!==null)return Promise.resolve();var r={size:this._size,metadata:this.options.metadata,creationTime:new Date().toString()};return this._parallelUploads?r.parallelUploadUrls=this._parallelUploadUrls:r.uploadUrl=this.url,this._urlStorage.addUpload(this._fingerprint,r).then(function(i){n._urlStorageKey=i})}},{key:"_sendRequest",value:function(n){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;return J_(n,r,this.options)}}],[{key:"terminate",value:function(n){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},i=Y_("DELETE",n,r);return J_(i,null,r).then(function(o){if(o.getStatus()!==204)throw new yw("tus: unexpected response while terminating upload",null,i,o)}).catch(function(o){if(o instanceof yw||(o=new yw("tus: failed to terminate upload",o,i,null)),!Q_(o,0,r))throw o;var u=r.retryDelays[0],l=r.retryDelays.slice(1),d=Vg(Vg({},r),{},{retryDelays:l});return new Promise(function(h){return setTimeout(h,u)}).then(function(){return t.terminate(n,d)})})}}])})();function K_(t){return Object.entries(t).map(function(e){var n=GI(e,2),r=n[0],i=n[1];return"".concat(r," ").concat(fH.encode(String(i)))}).join(",")}function ey(t,e){return t>=e&&t=n.retryDelays.length||t.originalRequest==null?!1:n&&typeof n.onShouldRetry=="function"?n.onShouldRetry(t,e,n):YI(t)}function YI(t){var e=t.originalResponse?t.originalResponse.getStatus():0;return(!ey(e,400)||e===409||e===423)&&_H()}function X_(t,e){return new gH(e,t).toString()}function AH(t,e){for(var n=Math.floor(t/e),r=[],i=0;i=this.size;return Promise.resolve({value:i,done:o})}},{key:"close",value:function(){}}])})();function T1(t){"@babel/helpers - typeof";return T1=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},T1(t)}function LH(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function UH(t,e){for(var n=0;nthis._bufferOffset&&(this._buffer=this._buffer.slice(n-this._bufferOffset),this._bufferOffset=n);var i=eA(this._buffer)===0;return this._done&&i?null:this._buffer.slice(0,r-n)}},{key:"close",value:function(){this._reader.cancel&&this._reader.cancel()}}])})();function hm(t){"@babel/helpers - typeof";return hm=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},hm(t)}function $x(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */$x=function(){return e};var t,e={},n=Object.prototype,r=n.hasOwnProperty,i=Object.defineProperty||function(j,V,H){j[V]=H.value},o=typeof Symbol=="function"?Symbol:{},u=o.iterator||"@@iterator",l=o.asyncIterator||"@@asyncIterator",d=o.toStringTag||"@@toStringTag";function h(j,V,H){return Object.defineProperty(j,V,{value:H,enumerable:!0,configurable:!0,writable:!0}),j[V]}try{h({},"")}catch{h=function(H,ie,G){return H[ie]=G}}function g(j,V,H,ie){var G=V&&V.prototype instanceof O?V:O,X=Object.create(G.prototype),fe=new be(ie||[]);return i(X,"_invoke",{value:Q(j,H,fe)}),X}function y(j,V,H){try{return{type:"normal",arg:j.call(V,H)}}catch(ie){return{type:"throw",arg:ie}}}e.wrap=g;var w="suspendedStart",b="suspendedYield",C="executing",E="completed",$={};function O(){}function _(){}function P(){}var k={};h(k,u,function(){return this});var R=Object.getPrototypeOf,L=R&&R(R(Se([])));L&&L!==n&&r.call(L,u)&&(k=L);var F=P.prototype=O.prototype=Object.create(k);function q(j){["next","throw","return"].forEach(function(V){h(j,V,function(H){return this._invoke(V,H)})})}function Y(j,V){function H(G,X,fe,$e){var Ce=y(j[G],j,X);if(Ce.type!=="throw"){var je=Ce.arg,Pe=je.value;return Pe&&hm(Pe)=="object"&&r.call(Pe,"__await")?V.resolve(Pe.__await).then(function(tt){H("next",tt,fe,$e)},function(tt){H("throw",tt,fe,$e)}):V.resolve(Pe).then(function(tt){je.value=tt,fe(je)},function(tt){return H("throw",tt,fe,$e)})}$e(Ce.arg)}var ie;i(this,"_invoke",{value:function(X,fe){function $e(){return new V(function(Ce,je){H(X,fe,Ce,je)})}return ie=ie?ie.then($e,$e):$e()}})}function Q(j,V,H){var ie=w;return function(G,X){if(ie===C)throw Error("Generator is already running");if(ie===E){if(G==="throw")throw X;return{value:t,done:!0}}for(H.method=G,H.arg=X;;){var fe=H.delegate;if(fe){var $e=ue(fe,H);if($e){if($e===$)continue;return $e}}if(H.method==="next")H.sent=H._sent=H.arg;else if(H.method==="throw"){if(ie===w)throw ie=E,H.arg;H.dispatchException(H.arg)}else H.method==="return"&&H.abrupt("return",H.arg);ie=C;var Ce=y(j,V,H);if(Ce.type==="normal"){if(ie=H.done?E:b,Ce.arg===$)continue;return{value:Ce.arg,done:H.done}}Ce.type==="throw"&&(ie=E,H.method="throw",H.arg=Ce.arg)}}}function ue(j,V){var H=V.method,ie=j.iterator[H];if(ie===t)return V.delegate=null,H==="throw"&&j.iterator.return&&(V.method="return",V.arg=t,ue(j,V),V.method==="throw")||H!=="return"&&(V.method="throw",V.arg=new TypeError("The iterator does not provide a '"+H+"' method")),$;var G=y(ie,j.iterator,V.arg);if(G.type==="throw")return V.method="throw",V.arg=G.arg,V.delegate=null,$;var X=G.arg;return X?X.done?(V[j.resultName]=X.value,V.next=j.nextLoc,V.method!=="return"&&(V.method="next",V.arg=t),V.delegate=null,$):X:(V.method="throw",V.arg=new TypeError("iterator result is not an object"),V.delegate=null,$)}function me(j){var V={tryLoc:j[0]};1 in j&&(V.catchLoc=j[1]),2 in j&&(V.finallyLoc=j[2],V.afterLoc=j[3]),this.tryEntries.push(V)}function te(j){var V=j.completion||{};V.type="normal",delete V.arg,j.completion=V}function be(j){this.tryEntries=[{tryLoc:"root"}],j.forEach(me,this),this.reset(!0)}function Se(j){if(j||j===""){var V=j[u];if(V)return V.call(j);if(typeof j.next=="function")return j;if(!isNaN(j.length)){var H=-1,ie=function G(){for(;++H=0;--G){var X=this.tryEntries[G],fe=X.completion;if(X.tryLoc==="root")return ie("end");if(X.tryLoc<=this.prev){var $e=r.call(X,"catchLoc"),Ce=r.call(X,"finallyLoc");if($e&&Ce){if(this.prev=0;--ie){var G=this.tryEntries[ie];if(G.tryLoc<=this.prev&&r.call(G,"finallyLoc")&&this.prev=0;--H){var ie=this.tryEntries[H];if(ie.finallyLoc===V)return this.complete(ie.completion,ie.afterLoc),te(ie),$}},catch:function(V){for(var H=this.tryEntries.length-1;H>=0;--H){var ie=this.tryEntries[H];if(ie.tryLoc===V){var G=ie.completion;if(G.type==="throw"){var X=G.arg;te(ie)}return X}}throw Error("illegal catch attempt")},delegateYield:function(V,H,ie){return this.delegate={iterator:Se(V),resultName:H,nextLoc:ie},this.method==="next"&&(this.arg=t),$}},e}function tA(t,e,n,r,i,o,u){try{var l=t[o](u),d=l.value}catch(h){n(h);return}l.done?e(d):Promise.resolve(d).then(r,i)}function VH(t){return function(){var e=this,n=arguments;return new Promise(function(r,i){var o=t.apply(e,n);function u(d){tA(o,r,i,u,l,"next",d)}function l(d){tA(o,r,i,u,l,"throw",d)}u(void 0)})}}function GH(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function WH(t,e){for(var n=0;n0&&arguments[0]!==void 0?arguments[0]:null;return new Promise(function(i,o){n._xhr.onload=function(){i(new oz(n._xhr))},n._xhr.onerror=function(u){o(u)},n._xhr.send(r)})}},{key:"abort",value:function(){return this._xhr.abort(),Promise.resolve()}},{key:"getUnderlyingObject",value:function(){return this._xhr}}])})(),oz=(function(){function t(e){oT(this,t),this._xhr=e}return sT(t,[{key:"getStatus",value:function(){return this._xhr.status}},{key:"getHeader",value:function(n){return this._xhr.getResponseHeader(n)}},{key:"getBody",value:function(){return this._xhr.responseText}},{key:"getUnderlyingObject",value:function(){return this._xhr}}])})();function A1(t){"@babel/helpers - typeof";return A1=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},A1(t)}function sz(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function uz(t,e){for(var n=0;n0&&arguments[0]!==void 0?arguments[0]:null,r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return pz(this,e),r=ty(ty({},iA),r),yz(this,e,[n,r])}return wz(e,t),gz(e,null,[{key:"terminate",value:function(r){var i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return i=ty(ty({},iA),i),yS.terminate(r,i)}}])})(yS);const En=Ae.createContext({setSession(t){},options:{}});class Ez{async setItem(e,n){return localStorage.setItem(e,n)}async getItem(e){return localStorage.getItem(e)}async removeItem(e){return localStorage.removeItem(e)}}async function xz(t,e,n){n.setItem("fb_microservice_"+t,JSON.stringify(e))}function Oz(t,e,n){n.setItem("fb_selected_workspace_"+t,JSON.stringify(e))}async function Tz(t,e){let n=null;try{n=JSON.parse(await e.getItem("fb_microservice_"+t))}catch{}return n}async function _z(t,e){let n=null;try{n=JSON.parse(await e.getItem("fb_selected_workspace_"+t))}catch{}return n}function Az({children:t,remote:e,selectedUrw:n,identifier:r,token:i,preferredAcceptLanguage:o,queryClient:u,defaultExecFn:l,socketEnabled:d,socket:h,credentialStorage:g,prefix:y}){var V;const[w,b]=T.useState(!1),[C,E]=T.useState(),[$,O]=T.useState(""),[_,P]=T.useState(),k=T.useRef(g||new Ez),R=async()=>{const H=await _z(r,k.current),ie=await Tz(r,k.current);P(H),E(ie),b(!0)};T.useEffect(()=>{R()},[]);const[L,F]=T.useState([]),[q,Y]=T.useState(l),Q=!!C,ue=H=>{Oz(r,H,k.current),P(H)},me=H=>{E(()=>(xz(r,H,k.current),H))},te={headers:{authorization:i||(C==null?void 0:C.token)},prefix:($||e)+(y||"")};if(_)te.headers["workspace-id"]=_.workspaceId,te.headers["role-id"]=_.roleId;else if(n)te.headers["workspace-id"]=n.workspaceId,te.headers["role-id"]=n.roleId;else if(C!=null&&C.userWorkspaces&&C.userWorkspaces.length>0){const H=C.userWorkspaces[0];te.headers["workspace-id"]=H.workspaceId,te.headers["role-id"]=H.roleId}o&&(te.headers["accept-language"]=o),T.useEffect(()=>{i&&E({...C||{},token:i})},[i]);const be=()=>{var H;E(null),(H=k.current)==null||H.removeItem("fb_microservice_"+r),ue(void 0)},Se=()=>{F([])},{socketState:j}=Rz(e,(V=te.headers)==null?void 0:V.authorization,te.headers["workspace-id"],u,d);return N.jsx(En.Provider,{value:{options:te,signout:be,setOverrideRemoteUrl:O,overrideRemoteUrl:$,setSession:me,socketState:j,checked:w,selectedUrw:_,selectUrw:ue,session:C,preferredAcceptLanguage:o,activeUploads:L,setActiveUploads:F,execFn:q,setExecFn:Y,discardActiveUploads:Se,isAuthenticated:Q},children:t})}function Rz(t,e,n,r,i=!0){const[o,u]=T.useState({state:"unknown"});return T.useEffect(()=>{if(!t||!e||e==="undefined"||i===!1)return;const l=t.replace("https","wss").replace("http","ws");let d;try{d=new WebSocket(`${l}ws?token=${e}&workspaceId=${n}`),d.onerror=function(h){u({state:"error"})},d.onclose=function(h){u({state:"closed"})},d.onmessage=function(h){try{const g=JSON.parse(h.data);g!=null&&g.cacheKey&&r.invalidateQueries(g==null?void 0:g.cacheKey)}catch{console.error("Socket message parsing error",h)}},d.onopen=function(h){u({state:"connected"})}}catch{}return()=>{(d==null?void 0:d.readyState)===1&&d.close()}},[e,n]),{socketState:o}}function Na(t){if(!t)return{};const e={};return t.startIndex&&(e.startIndex=t.startIndex),t.itemsPerPage&&(e.itemsPerPage=t.itemsPerPage),t.query&&(e.query=t.query),t.deep&&(e.deep=t.deep),t.jsonQuery&&(e.jsonQuery=JSON.stringify(t.jsonQuery)),t.withPreloads&&(e.withPreloads=t.withPreloads),t.uniqueId&&(e.uniqueId=t.uniqueId),t.sort&&(e.sort=t.sort),e}const ZI=T.createContext(null),Pz=ZI.Provider;function Ma(){return T.useContext(ZI)}function Iz({children:t,queryClient:e,prefix:n,mockServer:r,config:i,locale:o}){return N.jsx(Az,{socket:!0,preferredAcceptLanguage:o||i.interfaceLanguage,identifier:"fireback",prefix:n,queryClient:e,remote:$i.REMOTE_SERVICE,defaultExecFn:void 0,children:N.jsx(Nz,{children:t,mockServer:r})})}const Nz=({children:t,mockServer:e})=>{var o;const{options:n,session:r}=T.useContext(En),i=T.useRef(new nT((o=$i.REMOTE_SERVICE)==null?void 0:o.replace(/\/$/,"")));return i.current.defaultHeaders={authorization:r==null?void 0:r.token,"workspace-id":n==null?void 0:n.headers["workspace-id"]},N.jsx(Pz,{value:i.current,children:t})};/** * @remix-run/router v1.23.0 * * Copyright (c) Remix Software Inc. @@ -93,7 +93,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho * LICENSE.md file in the root directory of this source tree. * * @license MIT - */function u1(){return u1=Object.assign?Object.assign.bind():function(t){for(var e=1;e"u")throw new Error(e)}function MO(t,e){if(!t){typeof console<"u"&&console.warn(e);try{throw new Error(e)}catch{}}}function uz(){return Math.random().toString(36).substr(2,8)}function I_(t,e){return{usr:t.state,key:t.key,idx:e}}function XE(t,e,n,r){return n===void 0&&(n=null),u1({pathname:typeof t=="string"?t:t.pathname,search:"",hash:""},typeof e=="string"?nm(e):e,{state:n,key:e&&e.key||r||uz()})}function Ww(t){let{pathname:e="/",search:n="",hash:r=""}=t;return n&&n!=="?"&&(e+=n.charAt(0)==="?"?n:"?"+n),r&&r!=="#"&&(e+=r.charAt(0)==="#"?r:"#"+r),e}function nm(t){let e={};if(t){let n=t.indexOf("#");n>=0&&(e.hash=t.substr(n),t=t.substr(0,n));let r=t.indexOf("?");r>=0&&(e.search=t.substr(r),t=t.substr(0,r)),t&&(e.pathname=t)}return e}function lz(t,e,n,r){r===void 0&&(r={});let{window:i=document.defaultView,v5Compat:o=!1}=r,u=i.history,l=xf.Pop,d=null,h=g();h==null&&(h=0,u.replaceState(u1({},u.state,{idx:h}),""));function g(){return(u.state||{idx:null}).idx}function y(){l=xf.Pop;let $=g(),O=$==null?null:$-h;h=$,d&&d({action:l,location:E.location,delta:O})}function w($,O){l=xf.Push;let _=XE(E.location,$,O);n&&n(_,$),h=g()+1;let R=I_(_,h),k=E.createHref(_);try{u.pushState(R,"",k)}catch(P){if(P instanceof DOMException&&P.name==="DataCloneError")throw P;i.location.assign(k)}o&&d&&d({action:l,location:E.location,delta:1})}function v($,O){l=xf.Replace;let _=XE(E.location,$,O);n&&n(_,$),h=g();let R=I_(_,h),k=E.createHref(_);u.replaceState(R,"",k),o&&d&&d({action:l,location:E.location,delta:0})}function C($){let O=i.location.origin!=="null"?i.location.origin:i.location.href,_=typeof $=="string"?$:Ww($);return _=_.replace(/ $/,"%20"),Cr(O,"No window.location.(origin|href) available to create URL for href: "+_),new URL(_,O)}let E={get action(){return l},get location(){return t(i,u)},listen($){if(d)throw new Error("A history only accepts one active listener");return i.addEventListener(P_,y),d=$,()=>{i.removeEventListener(P_,y),d=null}},createHref($){return e(i,$)},createURL:C,encodeLocation($){let O=C($);return{pathname:O.pathname,search:O.search,hash:O.hash}},push:w,replace:v,go($){return u.go($)}};return E}var N_;(function(t){t.data="data",t.deferred="deferred",t.redirect="redirect",t.error="error"})(N_||(N_={}));function cz(t,e,n){return n===void 0&&(n="/"),fz(t,e,n)}function fz(t,e,n,r){let i=typeof e=="string"?nm(e):e,o=kO(i.pathname||"/",n);if(o==null)return null;let u=OI(t);dz(u);let l=null;for(let d=0;l==null&&d{let d={relativePath:l===void 0?o.path||"":l,caseSensitive:o.caseSensitive===!0,childrenIndex:u,route:o};d.relativePath.startsWith("/")&&(Cr(d.relativePath.startsWith(r),'Absolute route path "'+d.relativePath+'" nested under path '+('"'+r+'" is not valid. An absolute child route path ')+"must start with the combined path of all its parent routes."),d.relativePath=d.relativePath.slice(r.length));let h=Rf([r,d.relativePath]),g=n.concat(d);o.children&&o.children.length>0&&(Cr(o.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+h+'".')),OI(o.children,e,g,h)),!(o.path==null&&!o.index)&&e.push({path:h,score:bz(h,o.index),routesMeta:g})};return t.forEach((o,u)=>{var l;if(o.path===""||!((l=o.path)!=null&&l.includes("?")))i(o,u);else for(let d of TI(o.path))i(o,u,d)}),e}function TI(t){let e=t.split("/");if(e.length===0)return[];let[n,...r]=e,i=n.endsWith("?"),o=n.replace(/\?$/,"");if(r.length===0)return i?[o,""]:[o];let u=TI(r.join("/")),l=[];return l.push(...u.map(d=>d===""?o:[o,d].join("/"))),i&&l.push(...u),l.map(d=>t.startsWith("/")&&d===""?"/":d)}function dz(t){t.sort((e,n)=>e.score!==n.score?n.score-e.score:wz(e.routesMeta.map(r=>r.childrenIndex),n.routesMeta.map(r=>r.childrenIndex)))}const hz=/^:[\w-]+$/,pz=3,mz=2,gz=1,yz=10,vz=-2,M_=t=>t==="*";function bz(t,e){let n=t.split("/"),r=n.length;return n.some(M_)&&(r+=vz),e&&(r+=mz),n.filter(i=>!M_(i)).reduce((i,o)=>i+(hz.test(o)?pz:o===""?gz:yz),r)}function wz(t,e){return t.length===e.length&&t.slice(0,-1).every((r,i)=>r===e[i])?t[t.length-1]-e[e.length-1]:0}function Sz(t,e,n){let{routesMeta:r}=t,i={},o="/",u=[];for(let l=0;l{let{paramName:w,isOptional:v}=g;if(w==="*"){let E=l[y]||"";u=o.slice(0,o.length-E.length).replace(/(.)\/+$/,"$1")}const C=l[y];return v&&!C?h[w]=void 0:h[w]=(C||"").replace(/%2F/g,"/"),h},{}),pathname:o,pathnameBase:u,pattern:t}}function $z(t,e,n){e===void 0&&(e=!1),n===void 0&&(n=!0),MO(t==="*"||!t.endsWith("*")||t.endsWith("/*"),'Route path "'+t+'" will be treated as if it were '+('"'+t.replace(/\*$/,"/*")+'" because the `*` character must ')+"always follow a `/` in the pattern. To get rid of this warning, "+('please change the route path to "'+t.replace(/\*$/,"/*")+'".'));let r=[],i="^"+t.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(u,l,d)=>(r.push({paramName:l,isOptional:d!=null}),d?"/?([^\\/]+)?":"/([^\\/]+)"));return t.endsWith("*")?(r.push({paramName:"*"}),i+=t==="*"||t==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?i+="\\/*$":t!==""&&t!=="/"&&(i+="(?:(?=\\/|$))"),[new RegExp(i,e?void 0:"i"),r]}function Ez(t){try{return t.split("/").map(e=>decodeURIComponent(e).replace(/\//g,"%2F")).join("/")}catch(e){return MO(!1,'The URL path "'+t+'" could not be decoded because it is is a malformed URL segment. This is probably due to a bad percent '+("encoding ("+e+").")),t}}function kO(t,e){if(e==="/")return t;if(!t.toLowerCase().startsWith(e.toLowerCase()))return null;let n=e.endsWith("/")?e.length-1:e.length,r=t.charAt(n);return r&&r!=="/"?null:t.slice(n)||"/"}function xz(t,e){e===void 0&&(e="/");let{pathname:n,search:r="",hash:i=""}=typeof t=="string"?nm(t):t;return{pathname:n?n.startsWith("/")?n:Oz(n,e):e,search:Az(r),hash:Rz(i)}}function Oz(t,e){let n=e.replace(/\/+$/,"").split("/");return t.split("/").forEach(i=>{i===".."?n.length>1&&n.pop():i!=="."&&n.push(i)}),n.length>1?n.join("/"):"/"}function RC(t,e,n,r){return"Cannot include a '"+t+"' character in a manually specified "+("`to."+e+"` field ["+JSON.stringify(r)+"]. Please separate it out to the ")+("`to."+n+"` field. Alternatively you may provide the full path as ")+'a string in and the router will parse it for you.'}function Tz(t){return t.filter((e,n)=>n===0||e.route.path&&e.route.path.length>0)}function DO(t,e){let n=Tz(t);return e?n.map((r,i)=>i===n.length-1?r.pathname:r.pathnameBase):n.map(r=>r.pathnameBase)}function FO(t,e,n,r){r===void 0&&(r=!1);let i;typeof t=="string"?i=nm(t):(i=u1({},t),Cr(!i.pathname||!i.pathname.includes("?"),RC("?","pathname","search",i)),Cr(!i.pathname||!i.pathname.includes("#"),RC("#","pathname","hash",i)),Cr(!i.search||!i.search.includes("#"),RC("#","search","hash",i)));let o=t===""||i.pathname==="",u=o?"/":i.pathname,l;if(u==null)l=n;else{let y=e.length-1;if(!r&&u.startsWith("..")){let w=u.split("/");for(;w[0]==="..";)w.shift(),y-=1;i.pathname=w.join("/")}l=y>=0?e[y]:"/"}let d=xz(i,l),h=u&&u!=="/"&&u.endsWith("/"),g=(o||u===".")&&n.endsWith("/");return!d.pathname.endsWith("/")&&(h||g)&&(d.pathname+="/"),d}const Rf=t=>t.join("/").replace(/\/\/+/g,"/"),_z=t=>t.replace(/\/+$/,"").replace(/^\/*/,"/"),Az=t=>!t||t==="?"?"":t.startsWith("?")?t:"?"+t,Rz=t=>!t||t==="#"?"":t.startsWith("#")?t:"#"+t;function Pz(t){return t!=null&&typeof t.status=="number"&&typeof t.statusText=="string"&&typeof t.internal=="boolean"&&"data"in t}const _I=["post","put","patch","delete"];new Set(_I);const Iz=["get",..._I];new Set(Iz);/** + */function R1(){return R1=Object.assign?Object.assign.bind():function(t){for(var e=1;e"u")throw new Error(e)}function uT(t,e){if(!t){typeof console<"u"&&console.warn(e);try{throw new Error(e)}catch{}}}function kz(){return Math.random().toString(36).substr(2,8)}function oA(t,e){return{usr:t.state,key:t.key,idx:e}}function Ox(t,e,n,r){return n===void 0&&(n=null),R1({pathname:typeof t=="string"?t:t.pathname,search:"",hash:""},typeof e=="string"?$m(e):e,{state:n,key:e&&e.key||r||kz()})}function bS(t){let{pathname:e="/",search:n="",hash:r=""}=t;return n&&n!=="?"&&(e+=n.charAt(0)==="?"?n:"?"+n),r&&r!=="#"&&(e+=r.charAt(0)==="#"?r:"#"+r),e}function $m(t){let e={};if(t){let n=t.indexOf("#");n>=0&&(e.hash=t.substr(n),t=t.substr(0,n));let r=t.indexOf("?");r>=0&&(e.search=t.substr(r),t=t.substr(0,r)),t&&(e.pathname=t)}return e}function Dz(t,e,n,r){r===void 0&&(r={});let{window:i=document.defaultView,v5Compat:o=!1}=r,u=i.history,l=Mf.Pop,d=null,h=g();h==null&&(h=0,u.replaceState(R1({},u.state,{idx:h}),""));function g(){return(u.state||{idx:null}).idx}function y(){l=Mf.Pop;let $=g(),O=$==null?null:$-h;h=$,d&&d({action:l,location:E.location,delta:O})}function w($,O){l=Mf.Push;let _=Ox(E.location,$,O);n&&n(_,$),h=g()+1;let P=oA(_,h),k=E.createHref(_);try{u.pushState(P,"",k)}catch(R){if(R instanceof DOMException&&R.name==="DataCloneError")throw R;i.location.assign(k)}o&&d&&d({action:l,location:E.location,delta:1})}function b($,O){l=Mf.Replace;let _=Ox(E.location,$,O);n&&n(_,$),h=g();let P=oA(_,h),k=E.createHref(_);u.replaceState(P,"",k),o&&d&&d({action:l,location:E.location,delta:0})}function C($){let O=i.location.origin!=="null"?i.location.origin:i.location.href,_=typeof $=="string"?$:bS($);return _=_.replace(/ $/,"%20"),Er(O,"No window.location.(origin|href) available to create URL for href: "+_),new URL(_,O)}let E={get action(){return l},get location(){return t(i,u)},listen($){if(d)throw new Error("A history only accepts one active listener");return i.addEventListener(aA,y),d=$,()=>{i.removeEventListener(aA,y),d=null}},createHref($){return e(i,$)},createURL:C,encodeLocation($){let O=C($);return{pathname:O.pathname,search:O.search,hash:O.hash}},push:w,replace:b,go($){return u.go($)}};return E}var sA;(function(t){t.data="data",t.deferred="deferred",t.redirect="redirect",t.error="error"})(sA||(sA={}));function Fz(t,e,n){return n===void 0&&(n="/"),Lz(t,e,n)}function Lz(t,e,n,r){let i=typeof e=="string"?$m(e):e,o=lT(i.pathname||"/",n);if(o==null)return null;let u=eN(t);Uz(u);let l=null;for(let d=0;l==null&&d{let d={relativePath:l===void 0?o.path||"":l,caseSensitive:o.caseSensitive===!0,childrenIndex:u,route:o};d.relativePath.startsWith("/")&&(Er(d.relativePath.startsWith(r),'Absolute route path "'+d.relativePath+'" nested under path '+('"'+r+'" is not valid. An absolute child route path ')+"must start with the combined path of all its parent routes."),d.relativePath=d.relativePath.slice(r.length));let h=Uf([r,d.relativePath]),g=n.concat(d);o.children&&o.children.length>0&&(Er(o.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+h+'".')),eN(o.children,e,g,h)),!(o.path==null&&!o.index)&&e.push({path:h,score:Gz(h,o.index),routesMeta:g})};return t.forEach((o,u)=>{var l;if(o.path===""||!((l=o.path)!=null&&l.includes("?")))i(o,u);else for(let d of tN(o.path))i(o,u,d)}),e}function tN(t){let e=t.split("/");if(e.length===0)return[];let[n,...r]=e,i=n.endsWith("?"),o=n.replace(/\?$/,"");if(r.length===0)return i?[o,""]:[o];let u=tN(r.join("/")),l=[];return l.push(...u.map(d=>d===""?o:[o,d].join("/"))),i&&l.push(...u),l.map(d=>t.startsWith("/")&&d===""?"/":d)}function Uz(t){t.sort((e,n)=>e.score!==n.score?n.score-e.score:Wz(e.routesMeta.map(r=>r.childrenIndex),n.routesMeta.map(r=>r.childrenIndex)))}const Bz=/^:[\w-]+$/,jz=3,qz=2,Hz=1,zz=10,Vz=-2,uA=t=>t==="*";function Gz(t,e){let n=t.split("/"),r=n.length;return n.some(uA)&&(r+=Vz),e&&(r+=qz),n.filter(i=>!uA(i)).reduce((i,o)=>i+(Bz.test(o)?jz:o===""?Hz:zz),r)}function Wz(t,e){return t.length===e.length&&t.slice(0,-1).every((r,i)=>r===e[i])?t[t.length-1]-e[e.length-1]:0}function Kz(t,e,n){let{routesMeta:r}=t,i={},o="/",u=[];for(let l=0;l{let{paramName:w,isOptional:b}=g;if(w==="*"){let E=l[y]||"";u=o.slice(0,o.length-E.length).replace(/(.)\/+$/,"$1")}const C=l[y];return b&&!C?h[w]=void 0:h[w]=(C||"").replace(/%2F/g,"/"),h},{}),pathname:o,pathnameBase:u,pattern:t}}function Jz(t,e,n){e===void 0&&(e=!1),n===void 0&&(n=!0),uT(t==="*"||!t.endsWith("*")||t.endsWith("/*"),'Route path "'+t+'" will be treated as if it were '+('"'+t.replace(/\*$/,"/*")+'" because the `*` character must ')+"always follow a `/` in the pattern. To get rid of this warning, "+('please change the route path to "'+t.replace(/\*$/,"/*")+'".'));let r=[],i="^"+t.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(u,l,d)=>(r.push({paramName:l,isOptional:d!=null}),d?"/?([^\\/]+)?":"/([^\\/]+)"));return t.endsWith("*")?(r.push({paramName:"*"}),i+=t==="*"||t==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?i+="\\/*$":t!==""&&t!=="/"&&(i+="(?:(?=\\/|$))"),[new RegExp(i,e?void 0:"i"),r]}function Qz(t){try{return t.split("/").map(e=>decodeURIComponent(e).replace(/\//g,"%2F")).join("/")}catch(e){return uT(!1,'The URL path "'+t+'" could not be decoded because it is is a malformed URL segment. This is probably due to a bad percent '+("encoding ("+e+").")),t}}function lT(t,e){if(e==="/")return t;if(!t.toLowerCase().startsWith(e.toLowerCase()))return null;let n=e.endsWith("/")?e.length-1:e.length,r=t.charAt(n);return r&&r!=="/"?null:t.slice(n)||"/"}function Xz(t,e){e===void 0&&(e="/");let{pathname:n,search:r="",hash:i=""}=typeof t=="string"?$m(t):t;return{pathname:n?n.startsWith("/")?n:Zz(n,e):e,search:nV(r),hash:rV(i)}}function Zz(t,e){let n=e.replace(/\/+$/,"").split("/");return t.split("/").forEach(i=>{i===".."?n.length>1&&n.pop():i!=="."&&n.push(i)}),n.length>1?n.join("/"):"/"}function n$(t,e,n,r){return"Cannot include a '"+t+"' character in a manually specified "+("`to."+e+"` field ["+JSON.stringify(r)+"]. Please separate it out to the ")+("`to."+n+"` field. Alternatively you may provide the full path as ")+'a string in and the router will parse it for you.'}function eV(t){return t.filter((e,n)=>n===0||e.route.path&&e.route.path.length>0)}function cT(t,e){let n=eV(t);return e?n.map((r,i)=>i===n.length-1?r.pathname:r.pathnameBase):n.map(r=>r.pathnameBase)}function fT(t,e,n,r){r===void 0&&(r=!1);let i;typeof t=="string"?i=$m(t):(i=R1({},t),Er(!i.pathname||!i.pathname.includes("?"),n$("?","pathname","search",i)),Er(!i.pathname||!i.pathname.includes("#"),n$("#","pathname","hash",i)),Er(!i.search||!i.search.includes("#"),n$("#","search","hash",i)));let o=t===""||i.pathname==="",u=o?"/":i.pathname,l;if(u==null)l=n;else{let y=e.length-1;if(!r&&u.startsWith("..")){let w=u.split("/");for(;w[0]==="..";)w.shift(),y-=1;i.pathname=w.join("/")}l=y>=0?e[y]:"/"}let d=Xz(i,l),h=u&&u!=="/"&&u.endsWith("/"),g=(o||u===".")&&n.endsWith("/");return!d.pathname.endsWith("/")&&(h||g)&&(d.pathname+="/"),d}const Uf=t=>t.join("/").replace(/\/\/+/g,"/"),tV=t=>t.replace(/\/+$/,"").replace(/^\/*/,"/"),nV=t=>!t||t==="?"?"":t.startsWith("?")?t:"?"+t,rV=t=>!t||t==="#"?"":t.startsWith("#")?t:"#"+t;function iV(t){return t!=null&&typeof t.status=="number"&&typeof t.statusText=="string"&&typeof t.internal=="boolean"&&"data"in t}const nN=["post","put","patch","delete"];new Set(nN);const aV=["get",...nN];new Set(aV);/** * React Router v6.30.0 * * Copyright (c) Remix Software Inc. @@ -102,7 +102,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho * LICENSE.md file in the root directory of this source tree. * * @license MIT - */function l1(){return l1=Object.assign?Object.assign.bind():function(t){for(var e=1;e{l.current=!0}),T.useCallback(function(h,g){if(g===void 0&&(g={}),!l.current)return;if(typeof h=="number"){r.go(h);return}let y=FO(h,JSON.parse(u),o,g.relative==="path");t==null&&e!=="/"&&(y.pathname=y.pathname==="/"?e:Rf([e,y.pathname])),(g.replace?r.replace:r.push)(y,g.state,g)},[e,r,u,o,t])}function Dz(){let{matches:t}=T.useContext(Fl),e=t[t.length-1];return e?e.params:{}}function PI(t,e){let{relative:n}=e===void 0?{}:e,{future:r}=T.useContext(Ff),{matches:i}=T.useContext(Fl),{pathname:o}=Ll(),u=JSON.stringify(DO(i,r.v7_relativeSplatPath));return T.useMemo(()=>FO(t,JSON.parse(u),o,n==="path"),[t,u,o,n])}function Fz(t,e){return Lz(t,e)}function Lz(t,e,n,r){ly()||Cr(!1);let{navigator:i,static:o}=T.useContext(Ff),{matches:u}=T.useContext(Fl),l=u[u.length-1],d=l?l.params:{};l&&l.pathname;let h=l?l.pathnameBase:"/";l&&l.route;let g=Ll(),y;if(e){var w;let O=typeof e=="string"?nm(e):e;h==="/"||(w=O.pathname)!=null&&w.startsWith(h)||Cr(!1),y=O}else y=g;let v=y.pathname||"/",C=v;if(h!=="/"){let O=h.replace(/^\//,"").split("/");C="/"+v.replace(/^\//,"").split("/").slice(O.length).join("/")}let E=cz(t,{pathname:C}),$=Hz(E&&E.map(O=>Object.assign({},O,{params:Object.assign({},d,O.params),pathname:Rf([h,i.encodeLocation?i.encodeLocation(O.pathname).pathname:O.pathname]),pathnameBase:O.pathnameBase==="/"?h:Rf([h,i.encodeLocation?i.encodeLocation(O.pathnameBase).pathname:O.pathnameBase])})),u,n,r);return e&&$?T.createElement(_S.Provider,{value:{location:l1({pathname:"/",search:"",hash:"",state:null,key:"default"},y),navigationType:xf.Pop}},$):$}function Uz(){let t=Wz(),e=Pz(t)?t.status+" "+t.statusText:t instanceof Error?t.message:JSON.stringify(t),n=t instanceof Error?t.stack:null,i={padding:"0.5rem",backgroundColor:"rgba(200,200,200, 0.5)"};return T.createElement(T.Fragment,null,T.createElement("h2",null,"Unexpected Application Error!"),T.createElement("h3",{style:{fontStyle:"italic"}},e),n?T.createElement("pre",{style:i},n):null,null)}const jz=T.createElement(Uz,null);class Bz extends T.Component{constructor(e){super(e),this.state={location:e.location,revalidation:e.revalidation,error:e.error}}static getDerivedStateFromError(e){return{error:e}}static getDerivedStateFromProps(e,n){return n.location!==e.location||n.revalidation!=="idle"&&e.revalidation==="idle"?{error:e.error,location:e.location,revalidation:e.revalidation}:{error:e.error!==void 0?e.error:n.error,location:n.location,revalidation:e.revalidation||n.revalidation}}componentDidCatch(e,n){console.error("React Router caught the following error during render",e,n)}render(){return this.state.error!==void 0?T.createElement(Fl.Provider,{value:this.props.routeContext},T.createElement(AI.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function qz(t){let{routeContext:e,match:n,children:r}=t,i=T.useContext(LO);return i&&i.static&&i.staticContext&&(n.route.errorElement||n.route.ErrorBoundary)&&(i.staticContext._deepestRenderedBoundaryId=n.route.id),T.createElement(Fl.Provider,{value:e},r)}function Hz(t,e,n,r){var i;if(e===void 0&&(e=[]),n===void 0&&(n=null),r===void 0&&(r=null),t==null){var o;if(!n)return null;if(n.errors)t=n.matches;else if((o=r)!=null&&o.v7_partialHydration&&e.length===0&&!n.initialized&&n.matches.length>0)t=n.matches;else return null}let u=t,l=(i=n)==null?void 0:i.errors;if(l!=null){let g=u.findIndex(y=>y.route.id&&(l==null?void 0:l[y.route.id])!==void 0);g>=0||Cr(!1),u=u.slice(0,Math.min(u.length,g+1))}let d=!1,h=-1;if(n&&r&&r.v7_partialHydration)for(let g=0;g=0?u=u.slice(0,h+1):u=[u[0]];break}}}return u.reduceRight((g,y,w)=>{let v,C=!1,E=null,$=null;n&&(v=l&&y.route.id?l[y.route.id]:void 0,E=y.route.errorElement||jz,d&&(h<0&&w===0?(Yz("route-fallback"),C=!0,$=null):h===w&&(C=!0,$=y.route.hydrateFallbackElement||null)));let O=e.concat(u.slice(0,w+1)),_=()=>{let R;return v?R=E:C?R=$:y.route.Component?R=T.createElement(y.route.Component,null):y.route.element?R=y.route.element:R=g,T.createElement(qz,{match:y,routeContext:{outlet:g,matches:O,isDataRoute:n!=null},children:R})};return n&&(y.route.ErrorBoundary||y.route.errorElement||w===0)?T.createElement(Bz,{location:n.location,revalidation:n.revalidation,component:E,error:v,children:_(),routeContext:{outlet:null,matches:O,isDataRoute:!0}}):_()},null)}var II=(function(t){return t.UseBlocker="useBlocker",t.UseRevalidator="useRevalidator",t.UseNavigateStable="useNavigate",t})(II||{}),NI=(function(t){return t.UseBlocker="useBlocker",t.UseLoaderData="useLoaderData",t.UseActionData="useActionData",t.UseRouteError="useRouteError",t.UseNavigation="useNavigation",t.UseRouteLoaderData="useRouteLoaderData",t.UseMatches="useMatches",t.UseRevalidator="useRevalidator",t.UseNavigateStable="useNavigate",t.UseRouteId="useRouteId",t})(NI||{});function zz(t){let e=T.useContext(LO);return e||Cr(!1),e}function Vz(t){let e=T.useContext(Nz);return e||Cr(!1),e}function Gz(t){let e=T.useContext(Fl);return e||Cr(!1),e}function MI(t){let e=Gz(),n=e.matches[e.matches.length-1];return n.route.id||Cr(!1),n.route.id}function Wz(){var t;let e=T.useContext(AI),n=Vz(),r=MI();return e!==void 0?e:(t=n.errors)==null?void 0:t[r]}function Kz(){let{router:t}=zz(II.UseNavigateStable),e=MI(NI.UseNavigateStable),n=T.useRef(!1);return RI(()=>{n.current=!0}),T.useCallback(function(i,o){o===void 0&&(o={}),n.current&&(typeof i=="number"?t.navigate(i):t.navigate(i,l1({fromRouteId:e},o)))},[t,e])}const k_={};function Yz(t,e,n){k_[t]||(k_[t]=!0)}function Jz(t,e){t==null||t.v7_startTransition,t==null||t.v7_relativeSplatPath}function ZE(t){let{to:e,replace:n,state:r,relative:i}=t;ly()||Cr(!1);let{future:o,static:u}=T.useContext(Ff),{matches:l}=T.useContext(Fl),{pathname:d}=Ll(),h=UO(),g=FO(e,DO(l,o.v7_relativeSplatPath),d,i==="path"),y=JSON.stringify(g);return T.useEffect(()=>h(JSON.parse(y),{replace:n,state:r,relative:i}),[h,y,i,n,r]),null}function mn(t){Cr(!1)}function Qz(t){let{basename:e="/",children:n=null,location:r,navigationType:i=xf.Pop,navigator:o,static:u=!1,future:l}=t;ly()&&Cr(!1);let d=e.replace(/^\/*/,"/"),h=T.useMemo(()=>({basename:d,navigator:o,static:u,future:l1({v7_relativeSplatPath:!1},l)}),[d,l,o,u]);typeof r=="string"&&(r=nm(r));let{pathname:g="/",search:y="",hash:w="",state:v=null,key:C="default"}=r,E=T.useMemo(()=>{let $=kO(g,d);return $==null?null:{location:{pathname:$,search:y,hash:w,state:v,key:C},navigationType:i}},[d,g,y,w,v,C,i]);return E==null?null:T.createElement(Ff.Provider,{value:h},T.createElement(_S.Provider,{children:n,value:E}))}function D_(t){let{children:e,location:n}=t;return Fz(ex(e),n)}new Promise(()=>{});function ex(t,e){e===void 0&&(e=[]);let n=[];return T.Children.forEach(t,(r,i)=>{if(!T.isValidElement(r))return;let o=[...e,i];if(r.type===T.Fragment){n.push.apply(n,ex(r.props.children,o));return}r.type!==mn&&Cr(!1),!r.props.index||!r.props.children||Cr(!1);let u={id:r.props.id||o.join("-"),caseSensitive:r.props.caseSensitive,element:r.props.element,Component:r.props.Component,index:r.props.index,path:r.props.path,loader:r.props.loader,action:r.props.action,errorElement:r.props.errorElement,ErrorBoundary:r.props.ErrorBoundary,hasErrorBoundary:r.props.ErrorBoundary!=null||r.props.errorElement!=null,shouldRevalidate:r.props.shouldRevalidate,handle:r.props.handle,lazy:r.props.lazy};r.props.children&&(u.children=ex(r.props.children,o)),n.push(u)}),n}/** + */function P1(){return P1=Object.assign?Object.assign.bind():function(t){for(var e=1;e{l.current=!0}),T.useCallback(function(h,g){if(g===void 0&&(g={}),!l.current)return;if(typeof h=="number"){r.go(h);return}let y=fT(h,JSON.parse(u),o,g.relative==="path");t==null&&e!=="/"&&(y.pathname=y.pathname==="/"?e:Uf([e,y.pathname])),(g.replace?r.replace:r.push)(y,g.state,g)},[e,r,u,o,t])}function lV(){let{matches:t}=T.useContext(Hl),e=t[t.length-1];return e?e.params:{}}function aN(t,e){let{relative:n}=e===void 0?{}:e,{future:r}=T.useContext(Gf),{matches:i}=T.useContext(Hl),{pathname:o}=zl(),u=JSON.stringify(cT(i,r.v7_relativeSplatPath));return T.useMemo(()=>fT(t,JSON.parse(u),o,n==="path"),[t,u,o,n])}function cV(t,e){return fV(t,e)}function fV(t,e,n,r){Ry()||Er(!1);let{navigator:i,static:o}=T.useContext(Gf),{matches:u}=T.useContext(Hl),l=u[u.length-1],d=l?l.params:{};l&&l.pathname;let h=l?l.pathnameBase:"/";l&&l.route;let g=zl(),y;if(e){var w;let O=typeof e=="string"?$m(e):e;h==="/"||(w=O.pathname)!=null&&w.startsWith(h)||Er(!1),y=O}else y=g;let b=y.pathname||"/",C=b;if(h!=="/"){let O=h.replace(/^\//,"").split("/");C="/"+b.replace(/^\//,"").split("/").slice(O.length).join("/")}let E=Fz(t,{pathname:C}),$=gV(E&&E.map(O=>Object.assign({},O,{params:Object.assign({},d,O.params),pathname:Uf([h,i.encodeLocation?i.encodeLocation(O.pathname).pathname:O.pathname]),pathnameBase:O.pathnameBase==="/"?h:Uf([h,i.encodeLocation?i.encodeLocation(O.pathnameBase).pathname:O.pathnameBase])})),u,n,r);return e&&$?T.createElement(e3.Provider,{value:{location:P1({pathname:"/",search:"",hash:"",state:null,key:"default"},y),navigationType:Mf.Pop}},$):$}function dV(){let t=wV(),e=iV(t)?t.status+" "+t.statusText:t instanceof Error?t.message:JSON.stringify(t),n=t instanceof Error?t.stack:null,i={padding:"0.5rem",backgroundColor:"rgba(200,200,200, 0.5)"};return T.createElement(T.Fragment,null,T.createElement("h2",null,"Unexpected Application Error!"),T.createElement("h3",{style:{fontStyle:"italic"}},e),n?T.createElement("pre",{style:i},n):null,null)}const hV=T.createElement(dV,null);class pV extends T.Component{constructor(e){super(e),this.state={location:e.location,revalidation:e.revalidation,error:e.error}}static getDerivedStateFromError(e){return{error:e}}static getDerivedStateFromProps(e,n){return n.location!==e.location||n.revalidation!=="idle"&&e.revalidation==="idle"?{error:e.error,location:e.location,revalidation:e.revalidation}:{error:e.error!==void 0?e.error:n.error,location:n.location,revalidation:e.revalidation||n.revalidation}}componentDidCatch(e,n){console.error("React Router caught the following error during render",e,n)}render(){return this.state.error!==void 0?T.createElement(Hl.Provider,{value:this.props.routeContext},T.createElement(rN.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function mV(t){let{routeContext:e,match:n,children:r}=t,i=T.useContext(dT);return i&&i.static&&i.staticContext&&(n.route.errorElement||n.route.ErrorBoundary)&&(i.staticContext._deepestRenderedBoundaryId=n.route.id),T.createElement(Hl.Provider,{value:e},r)}function gV(t,e,n,r){var i;if(e===void 0&&(e=[]),n===void 0&&(n=null),r===void 0&&(r=null),t==null){var o;if(!n)return null;if(n.errors)t=n.matches;else if((o=r)!=null&&o.v7_partialHydration&&e.length===0&&!n.initialized&&n.matches.length>0)t=n.matches;else return null}let u=t,l=(i=n)==null?void 0:i.errors;if(l!=null){let g=u.findIndex(y=>y.route.id&&(l==null?void 0:l[y.route.id])!==void 0);g>=0||Er(!1),u=u.slice(0,Math.min(u.length,g+1))}let d=!1,h=-1;if(n&&r&&r.v7_partialHydration)for(let g=0;g=0?u=u.slice(0,h+1):u=[u[0]];break}}}return u.reduceRight((g,y,w)=>{let b,C=!1,E=null,$=null;n&&(b=l&&y.route.id?l[y.route.id]:void 0,E=y.route.errorElement||hV,d&&(h<0&&w===0?(CV("route-fallback"),C=!0,$=null):h===w&&(C=!0,$=y.route.hydrateFallbackElement||null)));let O=e.concat(u.slice(0,w+1)),_=()=>{let P;return b?P=E:C?P=$:y.route.Component?P=T.createElement(y.route.Component,null):y.route.element?P=y.route.element:P=g,T.createElement(mV,{match:y,routeContext:{outlet:g,matches:O,isDataRoute:n!=null},children:P})};return n&&(y.route.ErrorBoundary||y.route.errorElement||w===0)?T.createElement(pV,{location:n.location,revalidation:n.revalidation,component:E,error:b,children:_(),routeContext:{outlet:null,matches:O,isDataRoute:!0}}):_()},null)}var oN=(function(t){return t.UseBlocker="useBlocker",t.UseRevalidator="useRevalidator",t.UseNavigateStable="useNavigate",t})(oN||{}),sN=(function(t){return t.UseBlocker="useBlocker",t.UseLoaderData="useLoaderData",t.UseActionData="useActionData",t.UseRouteError="useRouteError",t.UseNavigation="useNavigation",t.UseRouteLoaderData="useRouteLoaderData",t.UseMatches="useMatches",t.UseRevalidator="useRevalidator",t.UseNavigateStable="useNavigate",t.UseRouteId="useRouteId",t})(sN||{});function yV(t){let e=T.useContext(dT);return e||Er(!1),e}function vV(t){let e=T.useContext(oV);return e||Er(!1),e}function bV(t){let e=T.useContext(Hl);return e||Er(!1),e}function uN(t){let e=bV(),n=e.matches[e.matches.length-1];return n.route.id||Er(!1),n.route.id}function wV(){var t;let e=T.useContext(rN),n=vV(),r=uN();return e!==void 0?e:(t=n.errors)==null?void 0:t[r]}function SV(){let{router:t}=yV(oN.UseNavigateStable),e=uN(sN.UseNavigateStable),n=T.useRef(!1);return iN(()=>{n.current=!0}),T.useCallback(function(i,o){o===void 0&&(o={}),n.current&&(typeof i=="number"?t.navigate(i):t.navigate(i,P1({fromRouteId:e},o)))},[t,e])}const lA={};function CV(t,e,n){lA[t]||(lA[t]=!0)}function $V(t,e){t==null||t.v7_startTransition,t==null||t.v7_relativeSplatPath}function Tx(t){let{to:e,replace:n,state:r,relative:i}=t;Ry()||Er(!1);let{future:o,static:u}=T.useContext(Gf),{matches:l}=T.useContext(Hl),{pathname:d}=zl(),h=hT(),g=fT(e,cT(l,o.v7_relativeSplatPath),d,i==="path"),y=JSON.stringify(g);return T.useEffect(()=>h(JSON.parse(y),{replace:n,state:r,relative:i}),[h,y,i,n,r]),null}function mn(t){Er(!1)}function EV(t){let{basename:e="/",children:n=null,location:r,navigationType:i=Mf.Pop,navigator:o,static:u=!1,future:l}=t;Ry()&&Er(!1);let d=e.replace(/^\/*/,"/"),h=T.useMemo(()=>({basename:d,navigator:o,static:u,future:P1({v7_relativeSplatPath:!1},l)}),[d,l,o,u]);typeof r=="string"&&(r=$m(r));let{pathname:g="/",search:y="",hash:w="",state:b=null,key:C="default"}=r,E=T.useMemo(()=>{let $=lT(g,d);return $==null?null:{location:{pathname:$,search:y,hash:w,state:b,key:C},navigationType:i}},[d,g,y,w,b,C,i]);return E==null?null:T.createElement(Gf.Provider,{value:h},T.createElement(e3.Provider,{children:n,value:E}))}function cA(t){let{children:e,location:n}=t;return cV(_x(e),n)}new Promise(()=>{});function _x(t,e){e===void 0&&(e=[]);let n=[];return T.Children.forEach(t,(r,i)=>{if(!T.isValidElement(r))return;let o=[...e,i];if(r.type===T.Fragment){n.push.apply(n,_x(r.props.children,o));return}r.type!==mn&&Er(!1),!r.props.index||!r.props.children||Er(!1);let u={id:r.props.id||o.join("-"),caseSensitive:r.props.caseSensitive,element:r.props.element,Component:r.props.Component,index:r.props.index,path:r.props.path,loader:r.props.loader,action:r.props.action,errorElement:r.props.errorElement,ErrorBoundary:r.props.ErrorBoundary,hasErrorBoundary:r.props.ErrorBoundary!=null||r.props.errorElement!=null,shouldRevalidate:r.props.shouldRevalidate,handle:r.props.handle,lazy:r.props.lazy};r.props.children&&(u.children=_x(r.props.children,o)),n.push(u)}),n}/** * React Router DOM v6.30.0 * * Copyright (c) Remix Software Inc. @@ -111,7 +111,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho * LICENSE.md file in the root directory of this source tree. * * @license MIT - */function tx(){return tx=Object.assign?Object.assign.bind():function(t){for(var e=1;e=0)&&(n[i]=t[i]);return n}function Zz(t){return!!(t.metaKey||t.altKey||t.ctrlKey||t.shiftKey)}function eV(t,e){return t.button===0&&(!e||e==="_self")&&!Zz(t)}const tV=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset","viewTransition"],nV="6";try{window.__reactRouterVersion=nV}catch{}const rV="startTransition",F_=NE[rV];function iV(t){let{basename:e,children:n,future:r,window:i}=t,o=T.useRef();o.current==null&&(o.current=sz({window:i,v5Compat:!0}));let u=o.current,[l,d]=T.useState({action:u.action,location:u.location}),{v7_startTransition:h}=r||{},g=T.useCallback(y=>{h&&F_?F_(()=>d(y)):d(y)},[d,h]);return T.useLayoutEffect(()=>u.listen(g),[u,g]),T.useEffect(()=>Jz(r),[r]),T.createElement(Qz,{basename:e,children:n,location:l.location,navigationType:l.action,navigator:u,future:r})}const aV=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",oV=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,nx=T.forwardRef(function(e,n){let{onClick:r,relative:i,reloadDocument:o,replace:u,state:l,target:d,to:h,preventScrollReset:g,viewTransition:y}=e,w=Xz(e,tV),{basename:v}=T.useContext(Ff),C,E=!1;if(typeof h=="string"&&oV.test(h)&&(C=h,aV))try{let R=new URL(window.location.href),k=h.startsWith("//")?new URL(R.protocol+h):new URL(h),P=kO(k.pathname,v);k.origin===R.origin&&P!=null?h=P+k.search+k.hash:E=!0}catch{}let $=Mz(h,{relative:i}),O=sV(h,{replace:u,state:l,target:d,preventScrollReset:g,relative:i,viewTransition:y});function _(R){r&&r(R),R.defaultPrevented||O(R)}return T.createElement("a",tx({},w,{href:C||$,onClick:E||o?r:_,ref:n,target:d}))});var L_;(function(t){t.UseScrollRestoration="useScrollRestoration",t.UseSubmit="useSubmit",t.UseSubmitFetcher="useSubmitFetcher",t.UseFetcher="useFetcher",t.useViewTransitionState="useViewTransitionState"})(L_||(L_={}));var U_;(function(t){t.UseFetcher="useFetcher",t.UseFetchers="useFetchers",t.UseScrollRestoration="useScrollRestoration"})(U_||(U_={}));function sV(t,e){let{target:n,replace:r,state:i,preventScrollReset:o,relative:u,viewTransition:l}=e===void 0?{}:e,d=UO(),h=Ll(),g=PI(t,{relative:u});return T.useCallback(y=>{if(eV(y,n)){y.preventDefault();let w=r!==void 0?r:Ww(h)===Ww(g);d(t,{replace:w,state:i,preventScrollReset:o,relative:u,viewTransition:l})}},[h,d,g,r,i,n,t,o,u,l])}function rx(t,e){const n={};for(const[r,i]of Object.entries(e))typeof i=="string"?n[r]=`${t}.${i}`:typeof i=="object"&&i!==null&&(n[r]=i);return n}var xr,Bc,qc,Hc,zc,Vc,Gc,Wc,Kc,Yc,Jc,Qc,Xc,Zc,ef,tf,nf,rf,af,Y2,J2,of,sf,uf,bu,Q2,lf,cf,ff,df,hf,pf,mf,gf,X2;function Re(t,e){if(!{}.hasOwnProperty.call(t,e))throw new TypeError("attempted to use private field on non-instance");return t}var uV=0;function kt(t){return"__private_"+uV+++"_"+t}var rh=kt("apiVersion"),ih=kt("context"),ah=kt("id"),oh=kt("method"),sh=kt("params"),al=kt("data"),ol=kt("error"),PC=kt("isJsonAppliable"),p0=kt("lateInitFields");class sa{get apiVersion(){return Re(this,rh)[rh]}set apiVersion(e){const n=typeof e=="string"||e===void 0||e===null;Re(this,rh)[rh]=n?e:String(e)}setApiVersion(e){return this.apiVersion=e,this}get context(){return Re(this,ih)[ih]}set context(e){const n=typeof e=="string"||e===void 0||e===null;Re(this,ih)[ih]=n?e:String(e)}setContext(e){return this.context=e,this}get id(){return Re(this,ah)[ah]}set id(e){const n=typeof e=="string"||e===void 0||e===null;Re(this,ah)[ah]=n?e:String(e)}setId(e){return this.id=e,this}get method(){return Re(this,oh)[oh]}set method(e){const n=typeof e=="string"||e===void 0||e===null;Re(this,oh)[oh]=n?e:String(e)}setMethod(e){return this.method=e,this}get params(){return Re(this,sh)[sh]}set params(e){Re(this,sh)[sh]=e}setParams(e){return this.params=e,this}get data(){return Re(this,al)[al]}set data(e){e instanceof sa.Data?Re(this,al)[al]=e:Re(this,al)[al]=new sa.Data(e)}setData(e){return this.data=e,this}get error(){return Re(this,ol)[ol]}set error(e){e instanceof sa.Error?Re(this,ol)[ol]=e:Re(this,ol)[ol]=new sa.Error(e)}setError(e){return this.error=e,this}constructor(e=void 0){if(Object.defineProperty(this,p0,{value:cV}),Object.defineProperty(this,PC,{value:lV}),Object.defineProperty(this,rh,{writable:!0,value:void 0}),Object.defineProperty(this,ih,{writable:!0,value:void 0}),Object.defineProperty(this,ah,{writable:!0,value:void 0}),Object.defineProperty(this,oh,{writable:!0,value:void 0}),Object.defineProperty(this,sh,{writable:!0,value:null}),Object.defineProperty(this,al,{writable:!0,value:void 0}),Object.defineProperty(this,ol,{writable:!0,value:void 0}),e==null){Re(this,p0)[p0]();return}if(typeof e=="string")this.applyFromObject(JSON.parse(e));else if(Re(this,PC)[PC](e))this.applyFromObject(e);else throw new Error("Instance cannot be created on an unknown value, check the content being passed. got: "+typeof e)}applyFromObject(e={}){const n=e;n.apiVersion!==void 0&&(this.apiVersion=n.apiVersion),n.context!==void 0&&(this.context=n.context),n.id!==void 0&&(this.id=n.id),n.method!==void 0&&(this.method=n.method),n.params!==void 0&&(this.params=n.params),n.data!==void 0&&(this.data=n.data),n.error!==void 0&&(this.error=n.error),Re(this,p0)[p0](e)}toJSON(){return{apiVersion:Re(this,rh)[rh],context:Re(this,ih)[ih],id:Re(this,ah)[ah],method:Re(this,oh)[oh],params:Re(this,sh)[sh],data:Re(this,al)[al],error:Re(this,ol)[ol]}}toString(){return JSON.stringify(this)}static get Fields(){return{apiVersion:"apiVersion",context:"context",id:"id",method:"method",params:"params",data$:"data",get data(){return rx("data",sa.Data.Fields)},error$:"error",get error(){return rx("error",sa.Error.Fields)}}}static from(e){return new sa(e)}static with(e){return new sa(e)}copyWith(e){return new sa({...this.toJSON(),...e})}clone(){return new sa(this.toJSON())}}xr=sa;function lV(t){const e=globalThis,n=typeof e.Buffer<"u"&&typeof e.Buffer.isBuffer=="function"&&e.Buffer.isBuffer(t),r=typeof e.Blob<"u"&&t instanceof e.Blob;return t&&typeof t=="object"&&!Array.isArray(t)&&!n&&!(t instanceof ArrayBuffer)&&!r}function cV(t={}){const e=t;e.data instanceof xr.Data||(this.data=new xr.Data(e.data||{})),e.error instanceof xr.Error||(this.error=new xr.Error(e.error||{}))}sa.Data=(Bc=kt("item"),qc=kt("items"),Hc=kt("editLink"),zc=kt("selfLink"),Vc=kt("kind"),Gc=kt("fields"),Wc=kt("etag"),Kc=kt("cursor"),Yc=kt("id"),Jc=kt("lang"),Qc=kt("updated"),Xc=kt("currentItemCount"),Zc=kt("itemsPerPage"),ef=kt("startIndex"),tf=kt("totalItems"),nf=kt("totalAvailableItems"),rf=kt("pageIndex"),af=kt("totalPages"),Y2=kt("isJsonAppliable"),class{get item(){return Re(this,Bc)[Bc]}set item(e){Re(this,Bc)[Bc]=e}setItem(e){return this.item=e,this}get items(){return Re(this,qc)[qc]}set items(e){Re(this,qc)[qc]=e}setItems(e){return this.items=e,this}get editLink(){return Re(this,Hc)[Hc]}set editLink(e){const n=typeof e=="string"||e===void 0||e===null;Re(this,Hc)[Hc]=n?e:String(e)}setEditLink(e){return this.editLink=e,this}get selfLink(){return Re(this,zc)[zc]}set selfLink(e){const n=typeof e=="string"||e===void 0||e===null;Re(this,zc)[zc]=n?e:String(e)}setSelfLink(e){return this.selfLink=e,this}get kind(){return Re(this,Vc)[Vc]}set kind(e){const n=typeof e=="string"||e===void 0||e===null;Re(this,Vc)[Vc]=n?e:String(e)}setKind(e){return this.kind=e,this}get fields(){return Re(this,Gc)[Gc]}set fields(e){const n=typeof e=="string"||e===void 0||e===null;Re(this,Gc)[Gc]=n?e:String(e)}setFields(e){return this.fields=e,this}get etag(){return Re(this,Wc)[Wc]}set etag(e){const n=typeof e=="string"||e===void 0||e===null;Re(this,Wc)[Wc]=n?e:String(e)}setEtag(e){return this.etag=e,this}get cursor(){return Re(this,Kc)[Kc]}set cursor(e){const n=typeof e=="string"||e===void 0||e===null;Re(this,Kc)[Kc]=n?e:String(e)}setCursor(e){return this.cursor=e,this}get id(){return Re(this,Yc)[Yc]}set id(e){const n=typeof e=="string"||e===void 0||e===null;Re(this,Yc)[Yc]=n?e:String(e)}setId(e){return this.id=e,this}get lang(){return Re(this,Jc)[Jc]}set lang(e){const n=typeof e=="string"||e===void 0||e===null;Re(this,Jc)[Jc]=n?e:String(e)}setLang(e){return this.lang=e,this}get updated(){return Re(this,Qc)[Qc]}set updated(e){const n=typeof e=="string"||e===void 0||e===null;Re(this,Qc)[Qc]=n?e:String(e)}setUpdated(e){return this.updated=e,this}get currentItemCount(){return Re(this,Xc)[Xc]}set currentItemCount(e){const r=typeof e=="number"||e===void 0||e===null?e:Number(e);Number.isNaN(r)||(Re(this,Xc)[Xc]=r)}setCurrentItemCount(e){return this.currentItemCount=e,this}get itemsPerPage(){return Re(this,Zc)[Zc]}set itemsPerPage(e){const r=typeof e=="number"||e===void 0||e===null?e:Number(e);Number.isNaN(r)||(Re(this,Zc)[Zc]=r)}setItemsPerPage(e){return this.itemsPerPage=e,this}get startIndex(){return Re(this,ef)[ef]}set startIndex(e){const r=typeof e=="number"||e===void 0||e===null?e:Number(e);Number.isNaN(r)||(Re(this,ef)[ef]=r)}setStartIndex(e){return this.startIndex=e,this}get totalItems(){return Re(this,tf)[tf]}set totalItems(e){const r=typeof e=="number"||e===void 0||e===null?e:Number(e);Number.isNaN(r)||(Re(this,tf)[tf]=r)}setTotalItems(e){return this.totalItems=e,this}get totalAvailableItems(){return Re(this,nf)[nf]}set totalAvailableItems(e){const r=typeof e=="number"||e===void 0||e===null?e:Number(e);Number.isNaN(r)||(Re(this,nf)[nf]=r)}setTotalAvailableItems(e){return this.totalAvailableItems=e,this}get pageIndex(){return Re(this,rf)[rf]}set pageIndex(e){const r=typeof e=="number"||e===void 0||e===null?e:Number(e);Number.isNaN(r)||(Re(this,rf)[rf]=r)}setPageIndex(e){return this.pageIndex=e,this}get totalPages(){return Re(this,af)[af]}set totalPages(e){const r=typeof e=="number"||e===void 0||e===null?e:Number(e);Number.isNaN(r)||(Re(this,af)[af]=r)}setTotalPages(e){return this.totalPages=e,this}constructor(e=void 0){if(Object.defineProperty(this,Y2,{value:fV}),Object.defineProperty(this,Bc,{writable:!0,value:null}),Object.defineProperty(this,qc,{writable:!0,value:null}),Object.defineProperty(this,Hc,{writable:!0,value:void 0}),Object.defineProperty(this,zc,{writable:!0,value:void 0}),Object.defineProperty(this,Vc,{writable:!0,value:void 0}),Object.defineProperty(this,Gc,{writable:!0,value:void 0}),Object.defineProperty(this,Wc,{writable:!0,value:void 0}),Object.defineProperty(this,Kc,{writable:!0,value:void 0}),Object.defineProperty(this,Yc,{writable:!0,value:void 0}),Object.defineProperty(this,Jc,{writable:!0,value:void 0}),Object.defineProperty(this,Qc,{writable:!0,value:void 0}),Object.defineProperty(this,Xc,{writable:!0,value:void 0}),Object.defineProperty(this,Zc,{writable:!0,value:void 0}),Object.defineProperty(this,ef,{writable:!0,value:void 0}),Object.defineProperty(this,tf,{writable:!0,value:void 0}),Object.defineProperty(this,nf,{writable:!0,value:void 0}),Object.defineProperty(this,rf,{writable:!0,value:void 0}),Object.defineProperty(this,af,{writable:!0,value:void 0}),e!=null)if(typeof e=="string")this.applyFromObject(JSON.parse(e));else if(Re(this,Y2)[Y2](e))this.applyFromObject(e);else throw new Error("Instance cannot be created on an unknown value, check the content being passed. got: "+typeof e)}applyFromObject(e={}){const n=e;n.item!==void 0&&(this.item=n.item),n.items!==void 0&&(this.items=n.items),n.editLink!==void 0&&(this.editLink=n.editLink),n.selfLink!==void 0&&(this.selfLink=n.selfLink),n.kind!==void 0&&(this.kind=n.kind),n.fields!==void 0&&(this.fields=n.fields),n.etag!==void 0&&(this.etag=n.etag),n.cursor!==void 0&&(this.cursor=n.cursor),n.id!==void 0&&(this.id=n.id),n.lang!==void 0&&(this.lang=n.lang),n.updated!==void 0&&(this.updated=n.updated),n.currentItemCount!==void 0&&(this.currentItemCount=n.currentItemCount),n.itemsPerPage!==void 0&&(this.itemsPerPage=n.itemsPerPage),n.startIndex!==void 0&&(this.startIndex=n.startIndex),n.totalItems!==void 0&&(this.totalItems=n.totalItems),n.totalAvailableItems!==void 0&&(this.totalAvailableItems=n.totalAvailableItems),n.pageIndex!==void 0&&(this.pageIndex=n.pageIndex),n.totalPages!==void 0&&(this.totalPages=n.totalPages)}toJSON(){return{item:Re(this,Bc)[Bc],items:Re(this,qc)[qc],editLink:Re(this,Hc)[Hc],selfLink:Re(this,zc)[zc],kind:Re(this,Vc)[Vc],fields:Re(this,Gc)[Gc],etag:Re(this,Wc)[Wc],cursor:Re(this,Kc)[Kc],id:Re(this,Yc)[Yc],lang:Re(this,Jc)[Jc],updated:Re(this,Qc)[Qc],currentItemCount:Re(this,Xc)[Xc],itemsPerPage:Re(this,Zc)[Zc],startIndex:Re(this,ef)[ef],totalItems:Re(this,tf)[tf],totalAvailableItems:Re(this,nf)[nf],pageIndex:Re(this,rf)[rf],totalPages:Re(this,af)[af]}}toString(){return JSON.stringify(this)}static get Fields(){return{item:"item",items:"items",editLink:"editLink",selfLink:"selfLink",kind:"kind",fields:"fields",etag:"etag",cursor:"cursor",id:"id",lang:"lang",updated:"updated",currentItemCount:"currentItemCount",itemsPerPage:"itemsPerPage",startIndex:"startIndex",totalItems:"totalItems",totalAvailableItems:"totalAvailableItems",pageIndex:"pageIndex",totalPages:"totalPages"}}static from(e){return new xr.Data(e)}static with(e){return new xr.Data(e)}copyWith(e){return new xr.Data({...this.toJSON(),...e})}clone(){return new xr.Data(this.toJSON())}});function fV(t){const e=globalThis,n=typeof e.Buffer<"u"&&typeof e.Buffer.isBuffer=="function"&&e.Buffer.isBuffer(t),r=typeof e.Blob<"u"&&t instanceof e.Blob;return t&&typeof t=="object"&&!Array.isArray(t)&&!n&&!(t instanceof ArrayBuffer)&&!r}sa.Error=(of=kt("code"),sf=kt("message"),uf=kt("messageTranslated"),bu=kt("errors"),Q2=kt("isJsonAppliable"),J2=class kI{get code(){return Re(this,of)[of]}set code(e){const r=typeof e=="number"?e:Number(e);Number.isNaN(r)||(Re(this,of)[of]=r)}setCode(e){return this.code=e,this}get message(){return Re(this,sf)[sf]}set message(e){Re(this,sf)[sf]=String(e)}setMessage(e){return this.message=e,this}get messageTranslated(){return Re(this,uf)[uf]}set messageTranslated(e){Re(this,uf)[uf]=String(e)}setMessageTranslated(e){return this.messageTranslated=e,this}get errors(){return Re(this,bu)[bu]}set errors(e){Array.isArray(e)&&(e.length>0&&e[0]instanceof xr.Error.Errors?Re(this,bu)[bu]=e:Re(this,bu)[bu]=e.map(n=>new xr.Error.Errors(n)))}setErrors(e){return this.errors=e,this}constructor(e=void 0){if(Object.defineProperty(this,Q2,{value:hV}),Object.defineProperty(this,of,{writable:!0,value:0}),Object.defineProperty(this,sf,{writable:!0,value:""}),Object.defineProperty(this,uf,{writable:!0,value:""}),Object.defineProperty(this,bu,{writable:!0,value:[]}),e!=null)if(typeof e=="string")this.applyFromObject(JSON.parse(e));else if(Re(this,Q2)[Q2](e))this.applyFromObject(e);else throw new kI("Instance cannot be created on an unknown value, check the content being passed. got: "+typeof e)}applyFromObject(e={}){const n=e;n.code!==void 0&&(this.code=n.code),n.message!==void 0&&(this.message=n.message),n.messageTranslated!==void 0&&(this.messageTranslated=n.messageTranslated),n.errors!==void 0&&(this.errors=n.errors)}toJSON(){return{code:Re(this,of)[of],message:Re(this,sf)[sf],messageTranslated:Re(this,uf)[uf],errors:Re(this,bu)[bu]}}toString(){return JSON.stringify(this)}static get Fields(){return{code:"code",message:"message",messageTranslated:"messageTranslated",errors$:"errors",get errors(){return rx("error.errors[:i]",xr.Error.Errors.Fields)}}}static from(e){return new xr.Error(e)}static with(e){return new xr.Error(e)}copyWith(e){return new xr.Error({...this.toJSON(),...e})}clone(){return new xr.Error(this.toJSON())}},J2.Errors=(lf=kt("domain"),cf=kt("reason"),ff=kt("message"),df=kt("messageTranslated"),hf=kt("location"),pf=kt("locationType"),mf=kt("extendedHelp"),gf=kt("sendReport"),X2=kt("isJsonAppliable"),class{get domain(){return Re(this,lf)[lf]}set domain(e){const n=typeof e=="string"||e===void 0||e===null;Re(this,lf)[lf]=n?e:String(e)}setDomain(e){return this.domain=e,this}get reason(){return Re(this,cf)[cf]}set reason(e){const n=typeof e=="string"||e===void 0||e===null;Re(this,cf)[cf]=n?e:String(e)}setReason(e){return this.reason=e,this}get message(){return Re(this,ff)[ff]}set message(e){const n=typeof e=="string"||e===void 0||e===null;Re(this,ff)[ff]=n?e:String(e)}setMessage(e){return this.message=e,this}get messageTranslated(){return Re(this,df)[df]}set messageTranslated(e){const n=typeof e=="string"||e===void 0||e===null;Re(this,df)[df]=n?e:String(e)}setMessageTranslated(e){return this.messageTranslated=e,this}get location(){return Re(this,hf)[hf]}set location(e){const n=typeof e=="string"||e===void 0||e===null;Re(this,hf)[hf]=n?e:String(e)}setLocation(e){return this.location=e,this}get locationType(){return Re(this,pf)[pf]}set locationType(e){const n=typeof e=="string"||e===void 0||e===null;Re(this,pf)[pf]=n?e:String(e)}setLocationType(e){return this.locationType=e,this}get extendedHelp(){return Re(this,mf)[mf]}set extendedHelp(e){const n=typeof e=="string"||e===void 0||e===null;Re(this,mf)[mf]=n?e:String(e)}setExtendedHelp(e){return this.extendedHelp=e,this}get sendReport(){return Re(this,gf)[gf]}set sendReport(e){const n=typeof e=="string"||e===void 0||e===null;Re(this,gf)[gf]=n?e:String(e)}setSendReport(e){return this.sendReport=e,this}constructor(e=void 0){if(Object.defineProperty(this,X2,{value:dV}),Object.defineProperty(this,lf,{writable:!0,value:void 0}),Object.defineProperty(this,cf,{writable:!0,value:void 0}),Object.defineProperty(this,ff,{writable:!0,value:void 0}),Object.defineProperty(this,df,{writable:!0,value:void 0}),Object.defineProperty(this,hf,{writable:!0,value:void 0}),Object.defineProperty(this,pf,{writable:!0,value:void 0}),Object.defineProperty(this,mf,{writable:!0,value:void 0}),Object.defineProperty(this,gf,{writable:!0,value:void 0}),e!=null)if(typeof e=="string")this.applyFromObject(JSON.parse(e));else if(Re(this,X2)[X2](e))this.applyFromObject(e);else throw new J2("Instance cannot be created on an unknown value, check the content being passed. got: "+typeof e)}applyFromObject(e={}){const n=e;n.domain!==void 0&&(this.domain=n.domain),n.reason!==void 0&&(this.reason=n.reason),n.message!==void 0&&(this.message=n.message),n.messageTranslated!==void 0&&(this.messageTranslated=n.messageTranslated),n.location!==void 0&&(this.location=n.location),n.locationType!==void 0&&(this.locationType=n.locationType),n.extendedHelp!==void 0&&(this.extendedHelp=n.extendedHelp),n.sendReport!==void 0&&(this.sendReport=n.sendReport)}toJSON(){return{domain:Re(this,lf)[lf],reason:Re(this,cf)[cf],message:Re(this,ff)[ff],messageTranslated:Re(this,df)[df],location:Re(this,hf)[hf],locationType:Re(this,pf)[pf],extendedHelp:Re(this,mf)[mf],sendReport:Re(this,gf)[gf]}}toString(){return JSON.stringify(this)}static get Fields(){return{domain:"domain",reason:"reason",message:"message",messageTranslated:"messageTranslated",location:"location",locationType:"locationType",extendedHelp:"extendedHelp",sendReport:"sendReport"}}static from(e){return new xr.Error.Errors(e)}static with(e){return new xr.Error.Errors(e)}copyWith(e){return new xr.Error.Errors({...this.toJSON(),...e})}clone(){return new xr.Error.Errors(this.toJSON())}}),J2);function dV(t){const e=globalThis,n=typeof e.Buffer<"u"&&typeof e.Buffer.isBuffer=="function"&&e.Buffer.isBuffer(t),r=typeof e.Blob<"u"&&t instanceof e.Blob;return t&&typeof t=="object"&&!Array.isArray(t)&&!n&&!(t instanceof ArrayBuffer)&&!r}function hV(t){const e=globalThis,n=typeof e.Buffer<"u"&&typeof e.Buffer.isBuffer=="function"&&e.Buffer.isBuffer(t),r=typeof e.Blob<"u"&&t instanceof e.Blob;return t&&typeof t=="object"&&!Array.isArray(t)&&!n&&!(t instanceof ArrayBuffer)&&!r}class _a extends sa{constructor(e){super(e),this.creator=void 0}setCreator(e){return this.creator=e,this}inject(e){var n,r,i,o,u,l,d,h;return this.applyFromObject(e),e!=null&&e.data&&(this.data||this.setData({}),Array.isArray(e==null?void 0:e.data.items)&&typeof this.creator<"u"&&this.creator!==null?(i=this.data)==null||i.setItems((r=(n=e==null?void 0:e.data)==null?void 0:n.items)==null?void 0:r.map(g=>{var y;return(y=this.creator)==null?void 0:y.call(this,g)})):typeof((o=e==null?void 0:e.data)==null?void 0:o.item)=="object"&&typeof this.creator<"u"&&this.creator!==null?(l=this.data)==null||l.setItem(this.creator((u=e==null?void 0:e.data)==null?void 0:u.item)):(h=this.data)==null||h.setItem((d=e==null?void 0:e.data)==null?void 0:d.item)),this}}function so(t,e,n){if(n&&n instanceof URLSearchParams)t+=`?${n.toString()}`;else if(n&&Object.keys(n).length){const r=new URLSearchParams(Object.entries(n).map(([i,o])=>[i,String(o)])).toString();t+=`?${r}`}return t}var c1;function Gn(t,e){if(!{}.hasOwnProperty.call(t,e))throw new TypeError("attempted to use private field on non-instance");return t}var pV=0;function Ul(t){return"__private_"+pV+++"_"+t}const DI=t=>{const e=oo(),n=(t==null?void 0:t.ctx)??e??void 0,[r,i]=T.useState(!1),[o,u]=T.useState(),l=()=>(i(!1),El.Fetch({headers:t==null?void 0:t.headers},{creatorFn:t==null?void 0:t.creatorFn,qs:t==null?void 0:t.qs,ctx:n,onMessage:t==null?void 0:t.onMessage,overrideUrl:t==null?void 0:t.overrideUrl}).then(h=>(h.done.then(()=>{i(!0)}),u(h.response),h.response.result)));return{...Go({queryKey:[El.NewUrl(t==null?void 0:t.qs)],queryFn:l,...t||{}}),isCompleted:r,response:o}};class El{}c1=El;El.URL="/passports/available-methods";El.NewUrl=t=>so(c1.URL,void 0,t);El.Method="get";El.Fetch$=async(t,e,n,r)=>io(r??c1.NewUrl(t),{method:c1.Method,...n||{}},e);El.Fetch=async(t,{creatorFn:e,qs:n,ctx:r,onMessage:i,overrideUrl:o}={creatorFn:u=>new Of(u)})=>{e=e||(l=>new Of(l));const u=await c1.Fetch$(n,r,t,o);return ao(u,l=>{const d=new _a;return e&&d.setCreator(e),d.inject(l),d},i,t==null?void 0:t.signal)};El.Definition={name:"CheckPassportMethods",cliName:"check-passport-methods",url:"/passports/available-methods",method:"get",description:"Publicly available information to create the authentication form, and show users how they can signin or signup to the system. Based on the PassportMethod entities, it will compute the available methods for the user, considering their region (IP for example)",out:{envelope:"GResponse",fields:[{name:"email",type:"bool",default:!1},{name:"phone",type:"bool",default:!1},{name:"google",type:"bool",default:!1},{name:"facebook",type:"bool",default:!1},{name:"googleOAuthClientKey",type:"string"},{name:"facebookAppId",type:"string"},{name:"enabledRecaptcha2",type:"bool",default:!1},{name:"recaptcha2ClientKey",type:"string"}]}};var uh=Ul("email"),lh=Ul("phone"),ch=Ul("google"),fh=Ul("facebook"),dh=Ul("googleOAuthClientKey"),hh=Ul("facebookAppId"),ph=Ul("enabledRecaptcha2"),mh=Ul("recaptcha2ClientKey"),IC=Ul("isJsonAppliable");class Of{get email(){return Gn(this,uh)[uh]}set email(e){Gn(this,uh)[uh]=!!e}setEmail(e){return this.email=e,this}get phone(){return Gn(this,lh)[lh]}set phone(e){Gn(this,lh)[lh]=!!e}setPhone(e){return this.phone=e,this}get google(){return Gn(this,ch)[ch]}set google(e){Gn(this,ch)[ch]=!!e}setGoogle(e){return this.google=e,this}get facebook(){return Gn(this,fh)[fh]}set facebook(e){Gn(this,fh)[fh]=!!e}setFacebook(e){return this.facebook=e,this}get googleOAuthClientKey(){return Gn(this,dh)[dh]}set googleOAuthClientKey(e){Gn(this,dh)[dh]=String(e)}setGoogleOAuthClientKey(e){return this.googleOAuthClientKey=e,this}get facebookAppId(){return Gn(this,hh)[hh]}set facebookAppId(e){Gn(this,hh)[hh]=String(e)}setFacebookAppId(e){return this.facebookAppId=e,this}get enabledRecaptcha2(){return Gn(this,ph)[ph]}set enabledRecaptcha2(e){Gn(this,ph)[ph]=!!e}setEnabledRecaptcha2(e){return this.enabledRecaptcha2=e,this}get recaptcha2ClientKey(){return Gn(this,mh)[mh]}set recaptcha2ClientKey(e){Gn(this,mh)[mh]=String(e)}setRecaptcha2ClientKey(e){return this.recaptcha2ClientKey=e,this}constructor(e=void 0){if(Object.defineProperty(this,IC,{value:mV}),Object.defineProperty(this,uh,{writable:!0,value:!1}),Object.defineProperty(this,lh,{writable:!0,value:!1}),Object.defineProperty(this,ch,{writable:!0,value:!1}),Object.defineProperty(this,fh,{writable:!0,value:!1}),Object.defineProperty(this,dh,{writable:!0,value:""}),Object.defineProperty(this,hh,{writable:!0,value:""}),Object.defineProperty(this,ph,{writable:!0,value:!1}),Object.defineProperty(this,mh,{writable:!0,value:""}),e!=null)if(typeof e=="string")this.applyFromObject(JSON.parse(e));else if(Gn(this,IC)[IC](e))this.applyFromObject(e);else throw new Error("Instance cannot be created on an unknown value, check the content being passed. got: "+typeof e)}applyFromObject(e={}){const n=e;n.email!==void 0&&(this.email=n.email),n.phone!==void 0&&(this.phone=n.phone),n.google!==void 0&&(this.google=n.google),n.facebook!==void 0&&(this.facebook=n.facebook),n.googleOAuthClientKey!==void 0&&(this.googleOAuthClientKey=n.googleOAuthClientKey),n.facebookAppId!==void 0&&(this.facebookAppId=n.facebookAppId),n.enabledRecaptcha2!==void 0&&(this.enabledRecaptcha2=n.enabledRecaptcha2),n.recaptcha2ClientKey!==void 0&&(this.recaptcha2ClientKey=n.recaptcha2ClientKey)}toJSON(){return{email:Gn(this,uh)[uh],phone:Gn(this,lh)[lh],google:Gn(this,ch)[ch],facebook:Gn(this,fh)[fh],googleOAuthClientKey:Gn(this,dh)[dh],facebookAppId:Gn(this,hh)[hh],enabledRecaptcha2:Gn(this,ph)[ph],recaptcha2ClientKey:Gn(this,mh)[mh]}}toString(){return JSON.stringify(this)}static get Fields(){return{email:"email",phone:"phone",google:"google",facebook:"facebook",googleOAuthClientKey:"googleOAuthClientKey",facebookAppId:"facebookAppId",enabledRecaptcha2:"enabledRecaptcha2",recaptcha2ClientKey:"recaptcha2ClientKey"}}static from(e){return new Of(e)}static with(e){return new Of(e)}copyWith(e){return new Of({...this.toJSON(),...e})}clone(){return new Of(this.toJSON())}}function mV(t){const e=globalThis,n=typeof e.Buffer<"u"&&typeof e.Buffer.isBuffer=="function"&&e.Buffer.isBuffer(t),r=typeof e.Blob<"u"&&t instanceof e.Blob;return t&&typeof t=="object"&&!Array.isArray(t)&&!n&&!(t instanceof ArrayBuffer)&&!r}class Vt{constructor(...e){this.visibility=null,this.parentId=null,this.linkerId=null,this.workspaceId=null,this.linkedId=null,this.uniqueId=null,this.userId=null,this.updated=null,this.created=null,this.createdFormatted=null,this.updatedFormatted=null}}Vt.Fields={visibility:"visibility",parentId:"parentId",linkerId:"linkerId",workspaceId:"workspaceId",linkedId:"linkedId",uniqueId:"uniqueId",userId:"userId",updated:"updated",created:"created",updatedFormatted:"updatedFormatted",createdFormatted:"createdFormatted"};class Wp extends Vt{constructor(...e){super(...e),this.children=void 0,this.firstName=void 0,this.lastName=void 0,this.photo=void 0,this.gender=void 0,this.title=void 0,this.birthDate=void 0,this.avatar=void 0,this.lastIpAddress=void 0,this.primaryAddress=void 0}}Wp.Navigation={edit(t,e){return`${e?"/"+e:".."}/user/edit/${t}`},create(t){return`${t?"/"+t:".."}/user/new`},single(t,e){return`${e?"/"+e:".."}/user/${t}`},query(t={},e){return`${e?"/"+e:".."}/users`},Redit:"user/edit/:uniqueId",Rcreate:"user/new",Rsingle:"user/:uniqueId",Rquery:"users",rPrimaryAddressCreate:"user/:linkerId/primary_address/new",rPrimaryAddressEdit:"user/:linkerId/primary_address/edit/:uniqueId",editPrimaryAddress(t,e,n){return`${n?"/"+n:""}/user/${t}/primary_address/edit/${e}`},createPrimaryAddress(t,e){return`${e?"/"+e:""}/user/${t}/primary_address/new`}};Wp.definition={events:[{name:"Googoli2",description:"Googlievent",payload:{fields:[{name:"entity",type:"string",computedType:"string",gormMap:{}}]}}],rpc:{query:{qs:[{name:"withImages",type:"bool?",gormMap:{}}]}},permRewrite:{replace:"root.modules",with:"root.manage"},name:"user",features:{},security:{writeOnRoot:!0},gormMap:{},fields:[{name:"firstName",type:"string",validate:"required",computedType:"string",gormMap:{}},{name:"lastName",type:"string",validate:"required",computedType:"string",gormMap:{}},{name:"photo",type:"string",computedType:"string",gormMap:{}},{name:"gender",type:"int?",computedType:"number",gormMap:{}},{name:"title",type:"string",computedType:"string",gormMap:{}},{name:"birthDate",type:"date",computedType:"Date",gormMap:{}},{name:"avatar",type:"string",computedType:"string",gormMap:{}},{name:"lastIpAddress",description:"User last connecting ip address",type:"string",computedType:"string",gormMap:{}},{name:"primaryAddress",description:"User primary address location. Can be useful for simple projects that a user is associated with a single address.",type:"object",computedType:"UserPrimaryAddress",gormMap:{},"-":"UserPrimaryAddress",fields:[{name:"addressLine1",description:"Street address, building number",type:"string",computedType:"string",gormMap:{}},{name:"addressLine2",description:"Apartment, suite, floor (optional)",type:"string?",computedType:"string",gormMap:{}},{name:"city",description:"City or locality",type:"string?",computedType:"string",gormMap:{}},{name:"stateOrProvince",description:"State, region, or province",type:"string?",computedType:"string",gormMap:{}},{name:"postalCode",description:"ZIP or postal code",type:"string?",computedType:"string",gormMap:{}},{name:"countryCode",description:'ISO 3166-1 alpha-2 (e.g., \\"US\\", \\"DE\\")',type:"string?",computedType:"string",gormMap:{}}],linkedTo:"UserEntity"}],description:"Manage the users who are in the current app (root only)"};Wp.Fields={...Vt.Fields,firstName:"firstName",lastName:"lastName",photo:"photo",gender:"gender",title:"title",birthDate:"birthDate",avatar:"avatar",lastIpAddress:"lastIpAddress",primaryAddress$:"primaryAddress",primaryAddress:{...Vt.Fields,addressLine1:"primaryAddress.addressLine1",addressLine2:"primaryAddress.addressLine2",city:"primaryAddress.city",stateOrProvince:"primaryAddress.stateOrProvince",postalCode:"primaryAddress.postalCode",countryCode:"primaryAddress.countryCode"}};class f1 extends Vt{constructor(...e){super(...e),this.children=void 0,this.thirdPartyVerifier=void 0,this.type=void 0,this.user=void 0,this.value=void 0,this.totpSecret=void 0,this.totpConfirmed=void 0,this.password=void 0,this.confirmed=void 0,this.accessToken=void 0}}f1.Navigation={edit(t,e){return`${e?"/"+e:".."}/passport/edit/${t}`},create(t){return`${t?"/"+t:".."}/passport/new`},single(t,e){return`${e?"/"+e:".."}/passport/${t}`},query(t={},e){return`${e?"/"+e:".."}/passports`},Redit:"passport/edit/:uniqueId",Rcreate:"passport/new",Rsingle:"passport/:uniqueId",Rquery:"passports"};f1.definition={rpc:{query:{}},permRewrite:{replace:"root.modules",with:"root.manage"},name:"passport",features:{},security:{writeOnRoot:!0},gormMap:{},fields:[{name:"thirdPartyVerifier",description:"When user creates account via oauth services such as google, it's essential to set the provider and do not allow passwordless logins if it's not via that specific provider.",type:"string",default:!1,computedType:"string",gormMap:{}},{name:"type",type:"string",validate:"required",computedType:"string",gormMap:{}},{name:"user",type:"one",target:"UserEntity",computedType:"UserEntity",gormMap:{}},{name:"value",type:"string",validate:"required",computedType:"string",gorm:"unique",gormMap:{}},{name:"totpSecret",description:"Store the secret of 2FA using time based dual factor authentication here for this specific passport. If set, during authorization will be asked.",type:"string",computedType:"string",gormMap:{}},{name:"totpConfirmed",description:"Regardless of the secret, user needs to confirm his secret. There is an extra action to confirm user totp, could be used after signup or prior to login.",type:"bool?",computedType:"boolean",gormMap:{}},{name:"password",type:"string",json:"-",yaml:"-",computedType:"string",gormMap:{}},{name:"confirmed",type:"bool?",computedType:"boolean",gormMap:{}},{name:"accessToken",type:"string",computedType:"string",gormMap:{}}],description:"Represent a mean to login in into the system, each user could have multiple passport (email, phone) and authenticate into the system."};f1.Fields={...Vt.Fields,thirdPartyVerifier:"thirdPartyVerifier",type:"type",user$:"user",user:Wp.Fields,value:"value",totpSecret:"totpSecret",totpConfirmed:"totpConfirmed",password:"password",confirmed:"confirmed",accessToken:"accessToken"};class q1 extends Vt{constructor(...e){super(...e),this.children=void 0,this.name=void 0,this.description=void 0}}q1.Navigation={edit(t,e){return`${e?"/"+e:".."}/capability/edit/${t}`},create(t){return`${t?"/"+t:".."}/capability/new`},single(t,e){return`${e?"/"+e:".."}/capability/${t}`},query(t={},e){return`${e?"/"+e:".."}/capabilities`},Redit:"capability/edit/:uniqueId",Rcreate:"capability/new",Rsingle:"capability/:uniqueId",Rquery:"capabilities"};q1.definition={rpc:{query:{}},permRewrite:{replace:"root.modules",with:"root.manage"},name:"capability",features:{},security:{writeOnRoot:!0},gormMap:{},fields:[{name:"name",type:"string",computedType:"string",gormMap:{}},{name:"description",type:"string",translate:!0,computedType:"string",gormMap:{}}],cliShort:"cap",description:"Manage the capabilities inside the application, both builtin to core and custom defined ones"};q1.Fields={...Vt.Fields,name:"name",description:"description"};class kr extends Vt{constructor(...e){super(...e),this.children=void 0,this.name=void 0,this.capabilities=void 0,this.capabilitiesListId=void 0}}kr.Navigation={edit(t,e){return`${e?"/"+e:".."}/role/edit/${t}`},create(t){return`${t?"/"+t:".."}/role/new`},single(t,e){return`${e?"/"+e:".."}/role/${t}`},query(t={},e){return`${e?"/"+e:".."}/roles`},Redit:"role/edit/:uniqueId",Rcreate:"role/new",Rsingle:"role/:uniqueId",Rquery:"roles"};kr.definition={rpc:{query:{}},name:"role",features:{},messages:{roleNeedsOneCapability:{en:"Role atleast needs one capability to be selected."}},gormMap:{},fields:[{name:"name",type:"string",validate:"required,omitempty,min=1,max=200",computedType:"string",gormMap:{}},{name:"capabilities",type:"collection",target:"CapabilityEntity",module:"fireback",computedType:"CapabilityEntity[]",gormMap:{}}],description:"Manage roles within the workspaces, or root configuration"};kr.Fields={...Vt.Fields,name:"name",capabilitiesListId:"capabilitiesListId",capabilities$:"capabilities",capabilities:q1.Fields};class AS extends Vt{constructor(...e){super(...e),this.children=void 0,this.title=void 0,this.description=void 0,this.slug=void 0,this.role=void 0,this.roleId=void 0}}AS.Navigation={edit(t,e){return`${e?"/"+e:".."}/workspace-type/edit/${t}`},create(t){return`${t?"/"+t:".."}/workspace-type/new`},single(t,e){return`${e?"/"+e:".."}/workspace-type/${t}`},query(t={},e){return`${e?"/"+e:".."}/workspace-types`},Redit:"workspace-type/edit/:uniqueId",Rcreate:"workspace-type/new",Rsingle:"workspace-type/:uniqueId",Rquery:"workspace-types"};AS.definition={rpc:{query:{}},permRewrite:{replace:"root.modules",with:"root.manage"},name:"workspaceType",features:{mock:!1,msync:!1},security:{writeOnRoot:!0,readOnRoot:!0},messages:{cannotCreateWorkspaceType:{en:"You cannot create workspace type due to some validation errors."},cannotModifyWorkspaceType:{en:"You cannot modify workspace type due to some validation errors."},onlyRootRoleIsAccepted:{en:"You can only select a role which is created or belong to 'root' workspace."},roleIsNecessary:{en:"Role needs to be defined and exist."},roleIsNotAccessible:{en:"Role is not accessible unfortunately. Make sure you the role chose exists."},roleNeedsToHaveCapabilities:{en:"Role needs to have at least one capability before could be assigned."}},gormMap:{},fields:[{name:"title",type:"string",validate:"required,omitempty,min=1,max=250",translate:!0,computedType:"string",gormMap:{}},{name:"description",type:"string",translate:!0,computedType:"string",gormMap:{}},{name:"slug",type:"string",validate:"required,omitempty,min=2,max=50",computedType:"string",gormMap:{}},{name:"role",description:"The role which will be used to define the functionality of this workspace, Role needs to be created before hand, and only roles which belong to root workspace are possible to be selected",type:"one",target:"RoleEntity",validate:"required",computedType:"RoleEntity",gormMap:{}}],cliName:"type",description:"Defines a type for workspace, and the role which it can have as a whole. In systems with multiple types of services, e.g. student, teachers, schools this is useful to set those default types and limit the access of the users."};AS.Fields={...Vt.Fields,title:"title",description:"description",slug:"slug",roleId:"roleId",role$:"role",role:kr.Fields};class cy extends Vt{constructor(...e){super(...e),this.children=void 0,this.description=void 0,this.name=void 0,this.type=void 0,this.typeId=void 0}}cy.Navigation={edit(t,e){return`${e?"/"+e:".."}/workspace/edit/${t}`},create(t){return`${t?"/"+t:".."}/workspace/new`},single(t,e){return`${e?"/"+e:".."}/workspace/${t}`},query(t={},e){return`${e?"/"+e:".."}/workspaces`},Redit:"workspace/edit/:uniqueId",Rcreate:"workspace/new",Rsingle:"workspace/:uniqueId",Rquery:"workspaces"};cy.definition={rpc:{query:{}},permRewrite:{replace:"root.modules",with:"root.manage"},name:"workspace",features:{},security:{writeOnRoot:!0,readOnRoot:!0},gormMap:{},fields:[{name:"description",type:"string",computedType:"string",gormMap:{}},{name:"name",type:"string",validate:"required",computedType:"string",gormMap:{}},{name:"type",type:"one",target:"WorkspaceTypeEntity",validate:"required",computedType:"WorkspaceTypeEntity",gormMap:{}}],cliName:"ws",description:"Fireback general user role, workspaces services.",cte:!0};cy.Fields={...Vt.Fields,description:"description",name:"name",typeId:"typeId",type$:"type",type:AS.Fields};class Gg extends Vt{constructor(...e){super(...e),this.children=void 0,this.user=void 0,this.workspace=void 0,this.userPermissions=void 0,this.rolePermission=void 0,this.workspacePermissions=void 0}}Gg.Navigation={edit(t,e){return`${e?"/"+e:".."}/user-workspace/edit/${t}`},create(t){return`${t?"/"+t:".."}/user-workspace/new`},single(t,e){return`${e?"/"+e:".."}/user-workspace/${t}`},query(t={},e){return`${e?"/"+e:".."}/user-workspaces`},Redit:"user-workspace/edit/:uniqueId",Rcreate:"user-workspace/new",Rsingle:"user-workspace/:uniqueId",Rquery:"user-workspaces"};Gg.definition={rpc:{query:{}},permRewrite:{replace:"root.modules",with:"root.manage"},name:"userWorkspace",features:{},security:{resolveStrategy:"user"},gormMap:{workspaceId:"index:userworkspace_idx,unique",userId:"index:userworkspace_idx,unique"},fields:[{name:"user",type:"one",target:"UserEntity",computedType:"UserEntity",gormMap:{}},{name:"workspace",type:"one",target:"WorkspaceEntity",computedType:"WorkspaceEntity",gormMap:{}},{name:"userPermissions",type:"slice",primitive:"string",computedType:"string[]",gorm:"-",gormMap:{},sql:"-"},{name:"rolePermission",type:"slice",primitive:"UserRoleWorkspaceDto",computedType:"unknown[]",gorm:"-",gormMap:{},sql:"-"},{name:"workspacePermissions",type:"slice",primitive:"string",computedType:"string[]",gorm:"-",gormMap:{},sql:"-"}],cliShort:"user",description:"Manage the workspaces that user belongs to (either its himselves or adding by invitation)"};Gg.Fields={...Vt.Fields,user$:"user",user:Wp.Fields,workspace$:"workspace",workspace:cy.Fields,userPermissions:"userPermissions",rolePermission:"rolePermission",workspacePermissions:"workspacePermissions"};function xl(t,e){const n={};for(const[r,i]of Object.entries(e))typeof i=="string"?n[r]=`${t}.${i}`:typeof i=="object"&&i!==null&&(n[r]=i);return n}function lr(t,e){if(!{}.hasOwnProperty.call(t,e))throw new TypeError("attempted to use private field on non-instance");return t}var gV=0;function rm(t){return"__private_"+gV+++"_"+t}var sl=rm("passport"),gh=rm("token"),yh=rm("exchangeKey"),ul=rm("userWorkspaces"),ll=rm("user"),vh=rm("userId"),NC=rm("isJsonAppliable");class Nn{get passport(){return lr(this,sl)[sl]}set passport(e){e instanceof f1?lr(this,sl)[sl]=e:lr(this,sl)[sl]=new f1(e)}setPassport(e){return this.passport=e,this}get token(){return lr(this,gh)[gh]}set token(e){lr(this,gh)[gh]=String(e)}setToken(e){return this.token=e,this}get exchangeKey(){return lr(this,yh)[yh]}set exchangeKey(e){lr(this,yh)[yh]=String(e)}setExchangeKey(e){return this.exchangeKey=e,this}get userWorkspaces(){return lr(this,ul)[ul]}set userWorkspaces(e){Array.isArray(e)&&(e.length>0&&e[0]instanceof Gg?lr(this,ul)[ul]=e:lr(this,ul)[ul]=e.map(n=>new Gg(n)))}setUserWorkspaces(e){return this.userWorkspaces=e,this}get user(){return lr(this,ll)[ll]}set user(e){e instanceof Wp?lr(this,ll)[ll]=e:lr(this,ll)[ll]=new Wp(e)}setUser(e){return this.user=e,this}get userId(){return lr(this,vh)[vh]}set userId(e){const n=typeof e=="string"||e===void 0||e===null;lr(this,vh)[vh]=n?e:String(e)}setUserId(e){return this.userId=e,this}constructor(e=void 0){if(Object.defineProperty(this,NC,{value:yV}),Object.defineProperty(this,sl,{writable:!0,value:void 0}),Object.defineProperty(this,gh,{writable:!0,value:""}),Object.defineProperty(this,yh,{writable:!0,value:""}),Object.defineProperty(this,ul,{writable:!0,value:[]}),Object.defineProperty(this,ll,{writable:!0,value:void 0}),Object.defineProperty(this,vh,{writable:!0,value:void 0}),e!=null)if(typeof e=="string")this.applyFromObject(JSON.parse(e));else if(lr(this,NC)[NC](e))this.applyFromObject(e);else throw new Error("Instance cannot be created on an unknown value, check the content being passed. got: "+typeof e)}applyFromObject(e={}){const n=e;n.passport!==void 0&&(this.passport=n.passport),n.token!==void 0&&(this.token=n.token),n.exchangeKey!==void 0&&(this.exchangeKey=n.exchangeKey),n.userWorkspaces!==void 0&&(this.userWorkspaces=n.userWorkspaces),n.user!==void 0&&(this.user=n.user),n.userId!==void 0&&(this.userId=n.userId)}toJSON(){return{passport:lr(this,sl)[sl],token:lr(this,gh)[gh],exchangeKey:lr(this,yh)[yh],userWorkspaces:lr(this,ul)[ul],user:lr(this,ll)[ll],userId:lr(this,vh)[vh]}}toString(){return JSON.stringify(this)}static get Fields(){return{passport:"passport",token:"token",exchangeKey:"exchangeKey",userWorkspaces$:"userWorkspaces",get userWorkspaces(){return xl("userWorkspaces[:i]",Gg.Fields)},user:"user",userId:"userId"}}static from(e){return new Nn(e)}static with(e){return new Nn(e)}copyWith(e){return new Nn({...this.toJSON(),...e})}clone(){return new Nn(this.toJSON())}}function yV(t){const e=globalThis,n=typeof e.Buffer<"u"&&typeof e.Buffer.isBuffer=="function"&&e.Buffer.isBuffer(t),r=typeof e.Blob<"u"&&t instanceof e.Blob;return t&&typeof t=="object"&&!Array.isArray(t)&&!n&&!(t instanceof ArrayBuffer)&&!r}class Tr extends Vt{constructor(...e){super(...e),this.children=void 0,this.publicKey=void 0,this.coverLetter=void 0,this.targetUserLocale=void 0,this.email=void 0,this.phonenumber=void 0,this.workspace=void 0,this.firstName=void 0,this.lastName=void 0,this.forceEmailAddress=void 0,this.forcePhoneNumber=void 0,this.role=void 0,this.roleId=void 0}}Tr.Navigation={edit(t,e){return`${e?"/"+e:".."}/workspace-invite/edit/${t}`},create(t){return`${t?"/"+t:".."}/workspace-invite/new`},single(t,e){return`${e?"/"+e:".."}/workspace-invite/${t}`},query(t={},e){return`${e?"/"+e:".."}/workspace-invites`},Redit:"workspace-invite/edit/:uniqueId",Rcreate:"workspace-invite/new",Rsingle:"workspace-invite/:uniqueId",Rquery:"workspace-invites"};Tr.definition={rpc:{query:{}},name:"workspaceInvite",features:{},gormMap:{},fields:[{name:"publicKey",description:"A long hash to get the user into the confirm or signup page without sending the email or phone number, for example if an administrator wants to copy the link.",type:"string",computedType:"string",gormMap:{}},{name:"coverLetter",description:"The content that user will receive to understand the reason of the letter.",type:"string",computedType:"string",gormMap:{}},{name:"targetUserLocale",description:"If the invited person has a different language, then you can define that so the interface for him will be automatically translated.",type:"string",computedType:"string",gormMap:{}},{name:"email",description:"The email address of the person which is invited.",type:"string",computedType:"string",gormMap:{}},{name:"phonenumber",description:"The phone number of the person which is invited.",type:"string",computedType:"string",gormMap:{}},{name:"workspace",description:"Workspace which user is being invite to.",type:"one",target:"WorkspaceEntity",computedType:"WorkspaceEntity",gormMap:{}},{name:"firstName",description:"First name of the person which is invited",type:"string",validate:"required",computedType:"string",gormMap:{}},{name:"lastName",description:"Last name of the person which is invited.",type:"string",validate:"required",computedType:"string",gormMap:{}},{name:"forceEmailAddress",description:"If forced, the email address cannot be changed by the user which has been invited.",type:"bool?",computedType:"boolean",gormMap:{}},{name:"forcePhoneNumber",description:"If forced, user cannot change the phone number and needs to complete signup.",type:"bool?",computedType:"boolean",gormMap:{}},{name:"role",description:"The role which invitee get if they accept the request.",type:"one",target:"RoleEntity",validate:"required",computedType:"RoleEntity",gormMap:{}}],cliShort:"invite",description:"Active invitations for non-users or already users to join an specific workspace, created by administration of the workspace"};Tr.Fields={...Vt.Fields,publicKey:"publicKey",coverLetter:"coverLetter",targetUserLocale:"targetUserLocale",email:"email",phonenumber:"phonenumber",workspace$:"workspace",workspace:cy.Fields,firstName:"firstName",lastName:"lastName",forceEmailAddress:"forceEmailAddress",forcePhoneNumber:"forcePhoneNumber",roleId:"roleId",role$:"role",role:kr.Fields};var j_,B_,q_,H_,z_,V_,G_,W_,K_,Y_,J_,Q_,X_,Z_,eA,tA,nA,rA,iA,aA,pn;function wu(t,e,n,r,i){var o={};return Object.keys(r).forEach(function(u){o[u]=r[u]}),o.enumerable=!!o.enumerable,o.configurable=!!o.configurable,("value"in o||o.initializer)&&(o.writable=!0),o=n.slice().reverse().reduce(function(u,l){return l(t,e,u)||u},o),i&&o.initializer!==void 0&&(o.value=o.initializer?o.initializer.call(i):void 0,o.initializer=void 0),o.initializer===void 0?(Object.defineProperty(t,e,o),null):o}const m0={data:{user:{firstName:"Ali",lastName:"Torabi"},exchangeKey:"key1",token:"token"}};let vV=(j_=ft("passport/authorizeOs"),B_=dt("post"),q_=ft("users/invitations"),H_=dt("get"),z_=ft("passports/signin/classic"),V_=dt("post"),G_=ft("passport/request-reset-mail-password"),W_=dt("post"),K_=ft("passports/available-methods"),Y_=dt("get"),J_=ft("workspace/passport/check"),Q_=dt("post"),X_=ft("passports/signup/classic"),Z_=dt("post"),eA=ft("passport/totp/confirm"),tA=dt("post"),nA=ft("workspace/passport/otp"),rA=dt("post"),iA=ft("workspace/public/types"),aA=dt("get"),pn=class{async passportAuthroizeOs(e){return m0}async getUserInvites(e){return hq}async postSigninClassic(e){return m0}async postRequestResetMail(e){return m0}async getAvailableMethods(e){return{data:{item:{email:!0,enabledRecaptcha2:!1,google:null,phone:!0,recaptcha2ClientKey:"6LeIxAcTAAAAAJcZVRqyHh71UMIEGNQ_MXjiZKhI"}}}}async postWorkspacePassportCheck(e){var r;return((r=e==null?void 0:e.body)==null?void 0:r.value.includes("@"))?{data:{next:["otp","create-with-password"],flags:["enable-totp","force-totp"],otpInfo:null}}:{data:{next:["otp"],flags:["enable-totp","force-totp"],otpInfo:null}}}async postPassportSignupClassic(e){var n;return(n=e==null?void 0:e.body)==null||n.value.includes("@"),{data:{session:null,totpUrl:"otpauth://totp/Fireback:ali@ali.com?algorithm=SHA1&digits=6&issuer=Fireback&period=30&secret=R2AQ4NPS7FKECL3ZVTF3JMTLBYGDAAVU",continueToTotp:!0,forcedTotp:!0}}}async postConfirm(e){return{data:{session:m0.data}}}async postOtp(e){return{data:{session:m0.data}}}async getWorkspaceTypes(e){return{data:{items:[{description:null,slug:"customer",title:"customer",uniqueId:"nG012z7VNyYKMJPqWjV04"}],itemsPerPage:20,startIndex:0,totalItems:2}}}},wu(pn.prototype,"passportAuthroizeOs",[j_,B_],Object.getOwnPropertyDescriptor(pn.prototype,"passportAuthroizeOs"),pn.prototype),wu(pn.prototype,"getUserInvites",[q_,H_],Object.getOwnPropertyDescriptor(pn.prototype,"getUserInvites"),pn.prototype),wu(pn.prototype,"postSigninClassic",[z_,V_],Object.getOwnPropertyDescriptor(pn.prototype,"postSigninClassic"),pn.prototype),wu(pn.prototype,"postRequestResetMail",[G_,W_],Object.getOwnPropertyDescriptor(pn.prototype,"postRequestResetMail"),pn.prototype),wu(pn.prototype,"getAvailableMethods",[K_,Y_],Object.getOwnPropertyDescriptor(pn.prototype,"getAvailableMethods"),pn.prototype),wu(pn.prototype,"postWorkspacePassportCheck",[J_,Q_],Object.getOwnPropertyDescriptor(pn.prototype,"postWorkspacePassportCheck"),pn.prototype),wu(pn.prototype,"postPassportSignupClassic",[X_,Z_],Object.getOwnPropertyDescriptor(pn.prototype,"postPassportSignupClassic"),pn.prototype),wu(pn.prototype,"postConfirm",[eA,tA],Object.getOwnPropertyDescriptor(pn.prototype,"postConfirm"),pn.prototype),wu(pn.prototype,"postOtp",[nA,rA],Object.getOwnPropertyDescriptor(pn.prototype,"postOtp"),pn.prototype),wu(pn.prototype,"getWorkspaceTypes",[iA,aA],Object.getOwnPropertyDescriptor(pn.prototype,"getWorkspaceTypes"),pn.prototype),pn);class jO extends Vt{constructor(...e){super(...e),this.children=void 0,this.name=void 0,this.operationId=void 0,this.diskPath=void 0,this.size=void 0,this.virtualPath=void 0,this.type=void 0,this.variations=void 0}}jO.Navigation={edit(t,e){return`${e?"/"+e:".."}/file/edit/${t}`},create(t){return`${t?"/"+t:".."}/file/new`},single(t,e){return`${e?"/"+e:".."}/file/${t}`},query(t={},e){return`${e?"/"+e:".."}/files`},Redit:"file/edit/:uniqueId",Rcreate:"file/new",Rsingle:"file/:uniqueId",Rquery:"files",rVariationsCreate:"file/:linkerId/variations/new",rVariationsEdit:"file/:linkerId/variations/edit/:uniqueId",editVariations(t,e,n){return`${n?"/"+n:""}/file/${t}/variations/edit/${e}`},createVariations(t,e){return`${e?"/"+e:""}/file/${t}/variations/new`}};jO.definition={rpc:{query:{}},permRewrite:{replace:"root.modules",with:"root.manage"},name:"file",features:{},gormMap:{},fields:[{name:"name",type:"string",computedType:"string",gormMap:{}},{name:"operationId",description:"For each upload, we need to assign a operation id, so if the operation has been cancelled, it would be cleared automatically, and there won't be orphant files in the database.",type:"string",computedType:"string",gormMap:{}},{name:"diskPath",type:"string",computedType:"string",gormMap:{}},{name:"size",type:"int64",computedType:"number",gormMap:{}},{name:"virtualPath",type:"string",computedType:"string",gormMap:{}},{name:"type",type:"string",computedType:"string",gormMap:{}},{name:"variations",type:"array",computedType:"FileVariations[]",gormMap:{},"-":"FileVariations",fields:[{name:"name",type:"string",computedType:"string",gormMap:{}}],linkedTo:"FileEntity"}],description:"Tus file uploading reference of the content. Every files being uploaded using tus will be stored in this table."};jO.Fields={...Vt.Fields,name:"name",operationId:"operationId",diskPath:"diskPath",size:"size",virtualPath:"virtualPath",type:"type",variations$:"variations",variationsAt:t=>({$:`variations[${t}]`,...Vt.Fields,name:`variations[${t}].name`})};function FI(t){var e,n,r="";if(typeof t=="string"||typeof t=="number")r+=t;else if(typeof t=="object")if(Array.isArray(t))for(e=0;etypeof t=="number"&&!isNaN(t),Kp=t=>typeof t=="string",Ea=t=>typeof t=="function",Ew=t=>Kp(t)||Ea(t)?t:null,MC=t=>T.isValidElement(t)||Kp(t)||Ea(t)||z0(t);function bV(t,e,n){n===void 0&&(n=300);const{scrollHeight:r,style:i}=t;requestAnimationFrame(()=>{i.minHeight="initial",i.height=r+"px",i.transition=`all ${n}ms`,requestAnimationFrame(()=>{i.height="0",i.padding="0",i.margin="0",setTimeout(e,n)})})}function RS(t){let{enter:e,exit:n,appendPosition:r=!1,collapse:i=!0,collapseDuration:o=300}=t;return function(u){let{children:l,position:d,preventExitTransition:h,done:g,nodeRef:y,isIn:w}=u;const v=r?`${e}--${d}`:e,C=r?`${n}--${d}`:n,E=T.useRef(0);return T.useLayoutEffect(()=>{const $=y.current,O=v.split(" "),_=R=>{R.target===y.current&&($.dispatchEvent(new Event("d")),$.removeEventListener("animationend",_),$.removeEventListener("animationcancel",_),E.current===0&&R.type!=="animationcancel"&&$.classList.remove(...O))};$.classList.add(...O),$.addEventListener("animationend",_),$.addEventListener("animationcancel",_)},[]),T.useEffect(()=>{const $=y.current,O=()=>{$.removeEventListener("animationend",O),i?bV($,g,o):g()};w||(h?O():(E.current=1,$.className+=` ${C}`,$.addEventListener("animationend",O)))},[w]),Ae.createElement(Ae.Fragment,null,l)}}function oA(t,e){return t!=null?{content:t.content,containerId:t.props.containerId,id:t.props.toastId,theme:t.props.theme,type:t.props.type,data:t.props.data||{},isLoading:t.props.isLoading,icon:t.props.icon,status:e}:{}}const Lo={list:new Map,emitQueue:new Map,on(t,e){return this.list.has(t)||this.list.set(t,[]),this.list.get(t).push(e),this},off(t,e){if(e){const n=this.list.get(t).filter(r=>r!==e);return this.list.set(t,n),this}return this.list.delete(t),this},cancelEmit(t){const e=this.emitQueue.get(t);return e&&(e.forEach(clearTimeout),this.emitQueue.delete(t)),this},emit(t){this.list.has(t)&&this.list.get(t).forEach(e=>{const n=setTimeout(()=>{e(...[].slice.call(arguments,1))},0);this.emitQueue.has(t)||this.emitQueue.set(t,[]),this.emitQueue.get(t).push(n)})}},Z2=t=>{let{theme:e,type:n,...r}=t;return Ae.createElement("svg",{viewBox:"0 0 24 24",width:"100%",height:"100%",fill:e==="colored"?"currentColor":`var(--toastify-icon-color-${n})`,...r})},kC={info:function(t){return Ae.createElement(Z2,{...t},Ae.createElement("path",{d:"M12 0a12 12 0 1012 12A12.013 12.013 0 0012 0zm.25 5a1.5 1.5 0 11-1.5 1.5 1.5 1.5 0 011.5-1.5zm2.25 13.5h-4a1 1 0 010-2h.75a.25.25 0 00.25-.25v-4.5a.25.25 0 00-.25-.25h-.75a1 1 0 010-2h1a2 2 0 012 2v4.75a.25.25 0 00.25.25h.75a1 1 0 110 2z"}))},warning:function(t){return Ae.createElement(Z2,{...t},Ae.createElement("path",{d:"M23.32 17.191L15.438 2.184C14.728.833 13.416 0 11.996 0c-1.42 0-2.733.833-3.443 2.184L.533 17.448a4.744 4.744 0 000 4.368C1.243 23.167 2.555 24 3.975 24h16.05C22.22 24 24 22.044 24 19.632c0-.904-.251-1.746-.68-2.44zm-9.622 1.46c0 1.033-.724 1.823-1.698 1.823s-1.698-.79-1.698-1.822v-.043c0-1.028.724-1.822 1.698-1.822s1.698.79 1.698 1.822v.043zm.039-12.285l-.84 8.06c-.057.581-.408.943-.897.943-.49 0-.84-.367-.896-.942l-.84-8.065c-.057-.624.25-1.095.779-1.095h1.91c.528.005.84.476.784 1.1z"}))},success:function(t){return Ae.createElement(Z2,{...t},Ae.createElement("path",{d:"M12 0a12 12 0 1012 12A12.014 12.014 0 0012 0zm6.927 8.2l-6.845 9.289a1.011 1.011 0 01-1.43.188l-4.888-3.908a1 1 0 111.25-1.562l4.076 3.261 6.227-8.451a1 1 0 111.61 1.183z"}))},error:function(t){return Ae.createElement(Z2,{...t},Ae.createElement("path",{d:"M11.983 0a12.206 12.206 0 00-8.51 3.653A11.8 11.8 0 000 12.207 11.779 11.779 0 0011.8 24h.214A12.111 12.111 0 0024 11.791 11.766 11.766 0 0011.983 0zM10.5 16.542a1.476 1.476 0 011.449-1.53h.027a1.527 1.527 0 011.523 1.47 1.475 1.475 0 01-1.449 1.53h-.027a1.529 1.529 0 01-1.523-1.47zM11 12.5v-6a1 1 0 012 0v6a1 1 0 11-2 0z"}))},spinner:function(){return Ae.createElement("div",{className:"Toastify__spinner"})}};function wV(t){const[,e]=T.useReducer(v=>v+1,0),[n,r]=T.useState([]),i=T.useRef(null),o=T.useRef(new Map).current,u=v=>n.indexOf(v)!==-1,l=T.useRef({toastKey:1,displayedToast:0,count:0,queue:[],props:t,containerId:null,isToastActive:u,getToast:v=>o.get(v)}).current;function d(v){let{containerId:C}=v;const{limit:E}=l.props;!E||C&&l.containerId!==C||(l.count-=l.queue.length,l.queue=[])}function h(v){r(C=>v==null?[]:C.filter(E=>E!==v))}function g(){const{toastContent:v,toastProps:C,staleId:E}=l.queue.shift();w(v,C,E)}function y(v,C){let{delay:E,staleId:$,...O}=C;if(!MC(v)||(function(me){return!i.current||l.props.enableMultiContainer&&me.containerId!==l.props.containerId||o.has(me.toastId)&&me.updateId==null})(O))return;const{toastId:_,updateId:R,data:k}=O,{props:P}=l,L=()=>h(_),F=R==null;F&&l.count++;const q={...P,style:P.toastStyle,key:l.toastKey++,...Object.fromEntries(Object.entries(O).filter(me=>{let[te,be]=me;return be!=null})),toastId:_,updateId:R,data:k,closeToast:L,isIn:!1,className:Ew(O.className||P.toastClassName),bodyClassName:Ew(O.bodyClassName||P.bodyClassName),progressClassName:Ew(O.progressClassName||P.progressClassName),autoClose:!O.isLoading&&(Y=O.autoClose,X=P.autoClose,Y===!1||z0(Y)&&Y>0?Y:X),deleteToast(){const me=oA(o.get(_),"removed");o.delete(_),Lo.emit(4,me);const te=l.queue.length;if(l.count=_==null?l.count-l.displayedToast:l.count-1,l.count<0&&(l.count=0),te>0){const be=_==null?l.props.limit:1;if(te===1||be===1)l.displayedToast++,g();else{const we=be>te?te:be;l.displayedToast=we;for(let B=0;Bie in kC)(be)&&(V=kC[be](H))),V})(q),Ea(O.onOpen)&&(q.onOpen=O.onOpen),Ea(O.onClose)&&(q.onClose=O.onClose),q.closeButton=P.closeButton,O.closeButton===!1||MC(O.closeButton)?q.closeButton=O.closeButton:O.closeButton===!0&&(q.closeButton=!MC(P.closeButton)||P.closeButton);let ue=v;T.isValidElement(v)&&!Kp(v.type)?ue=T.cloneElement(v,{closeToast:L,toastProps:q,data:k}):Ea(v)&&(ue=v({closeToast:L,toastProps:q,data:k})),P.limit&&P.limit>0&&l.count>P.limit&&F?l.queue.push({toastContent:ue,toastProps:q,staleId:$}):z0(E)?setTimeout(()=>{w(ue,q,$)},E):w(ue,q,$)}function w(v,C,E){const{toastId:$}=C;E&&o.delete(E);const O={content:v,props:C};o.set($,O),r(_=>[..._,$].filter(R=>R!==E)),Lo.emit(4,oA(O,O.props.updateId==null?"added":"updated"))}return T.useEffect(()=>(l.containerId=t.containerId,Lo.cancelEmit(3).on(0,y).on(1,v=>i.current&&h(v)).on(5,d).emit(2,l),()=>{o.clear(),Lo.emit(3,l)}),[]),T.useEffect(()=>{l.props=t,l.isToastActive=u,l.displayedToast=n.length}),{getToastToRender:function(v){const C=new Map,E=Array.from(o.values());return t.newestOnTop&&E.reverse(),E.forEach($=>{const{position:O}=$.props;C.has(O)||C.set(O,[]),C.get(O).push($)}),Array.from(C,$=>v($[0],$[1]))},containerRef:i,isToastActive:u}}function sA(t){return t.targetTouches&&t.targetTouches.length>=1?t.targetTouches[0].clientX:t.clientX}function uA(t){return t.targetTouches&&t.targetTouches.length>=1?t.targetTouches[0].clientY:t.clientY}function SV(t){const[e,n]=T.useState(!1),[r,i]=T.useState(!1),o=T.useRef(null),u=T.useRef({start:0,x:0,y:0,delta:0,removalDistance:0,canCloseOnClick:!0,canDrag:!1,boundingRect:null,didMove:!1}).current,l=T.useRef(t),{autoClose:d,pauseOnHover:h,closeToast:g,onClick:y,closeOnClick:w}=t;function v(k){if(t.draggable){k.nativeEvent.type==="touchstart"&&k.nativeEvent.preventDefault(),u.didMove=!1,document.addEventListener("mousemove",O),document.addEventListener("mouseup",_),document.addEventListener("touchmove",O),document.addEventListener("touchend",_);const P=o.current;u.canCloseOnClick=!0,u.canDrag=!0,u.boundingRect=P.getBoundingClientRect(),P.style.transition="",u.x=sA(k.nativeEvent),u.y=uA(k.nativeEvent),t.draggableDirection==="x"?(u.start=u.x,u.removalDistance=P.offsetWidth*(t.draggablePercent/100)):(u.start=u.y,u.removalDistance=P.offsetHeight*(t.draggablePercent===80?1.5*t.draggablePercent:t.draggablePercent/100))}}function C(k){if(u.boundingRect){const{top:P,bottom:L,left:F,right:q}=u.boundingRect;k.nativeEvent.type!=="touchend"&&t.pauseOnHover&&u.x>=F&&u.x<=q&&u.y>=P&&u.y<=L?$():E()}}function E(){n(!0)}function $(){n(!1)}function O(k){const P=o.current;u.canDrag&&P&&(u.didMove=!0,e&&$(),u.x=sA(k),u.y=uA(k),u.delta=t.draggableDirection==="x"?u.x-u.start:u.y-u.start,u.start!==u.x&&(u.canCloseOnClick=!1),P.style.transform=`translate${t.draggableDirection}(${u.delta}px)`,P.style.opacity=""+(1-Math.abs(u.delta/u.removalDistance)))}function _(){document.removeEventListener("mousemove",O),document.removeEventListener("mouseup",_),document.removeEventListener("touchmove",O),document.removeEventListener("touchend",_);const k=o.current;if(u.canDrag&&u.didMove&&k){if(u.canDrag=!1,Math.abs(u.delta)>u.removalDistance)return i(!0),void t.closeToast();k.style.transition="transform 0.2s, opacity 0.2s",k.style.transform=`translate${t.draggableDirection}(0)`,k.style.opacity="1"}}T.useEffect(()=>{l.current=t}),T.useEffect(()=>(o.current&&o.current.addEventListener("d",E,{once:!0}),Ea(t.onOpen)&&t.onOpen(T.isValidElement(t.children)&&t.children.props),()=>{const k=l.current;Ea(k.onClose)&&k.onClose(T.isValidElement(k.children)&&k.children.props)}),[]),T.useEffect(()=>(t.pauseOnFocusLoss&&(document.hasFocus()||$(),window.addEventListener("focus",E),window.addEventListener("blur",$)),()=>{t.pauseOnFocusLoss&&(window.removeEventListener("focus",E),window.removeEventListener("blur",$))}),[t.pauseOnFocusLoss]);const R={onMouseDown:v,onTouchStart:v,onMouseUp:C,onTouchEnd:C};return d&&h&&(R.onMouseEnter=$,R.onMouseLeave=E),w&&(R.onClick=k=>{y&&y(k),u.canCloseOnClick&&g()}),{playToast:E,pauseToast:$,isRunning:e,preventExitTransition:r,toastRef:o,eventHandlers:R}}function LI(t){let{closeToast:e,theme:n,ariaLabel:r="close"}=t;return Ae.createElement("button",{className:`Toastify__close-button Toastify__close-button--${n}`,type:"button",onClick:i=>{i.stopPropagation(),e(i)},"aria-label":r},Ae.createElement("svg",{"aria-hidden":"true",viewBox:"0 0 14 16"},Ae.createElement("path",{fillRule:"evenodd",d:"M7.71 8.23l3.75 3.75-1.48 1.48-3.75-3.75-3.75 3.75L1 11.98l3.75-3.75L1 4.48 2.48 3l3.75 3.75L9.98 3l1.48 1.48-3.75 3.75z"})))}function CV(t){let{delay:e,isRunning:n,closeToast:r,type:i="default",hide:o,className:u,style:l,controlledProgress:d,progress:h,rtl:g,isIn:y,theme:w}=t;const v=o||d&&h===0,C={...l,animationDuration:`${e}ms`,animationPlayState:n?"running":"paused",opacity:v?0:1};d&&(C.transform=`scaleX(${h})`);const E=Tf("Toastify__progress-bar",d?"Toastify__progress-bar--controlled":"Toastify__progress-bar--animated",`Toastify__progress-bar-theme--${w}`,`Toastify__progress-bar--${i}`,{"Toastify__progress-bar--rtl":g}),$=Ea(u)?u({rtl:g,type:i,defaultClassName:E}):Tf(E,u);return Ae.createElement("div",{role:"progressbar","aria-hidden":v?"true":"false","aria-label":"notification timer",className:$,style:C,[d&&h>=1?"onTransitionEnd":"onAnimationEnd"]:d&&h<1?null:()=>{y&&r()}})}const $V=t=>{const{isRunning:e,preventExitTransition:n,toastRef:r,eventHandlers:i}=SV(t),{closeButton:o,children:u,autoClose:l,onClick:d,type:h,hideProgressBar:g,closeToast:y,transition:w,position:v,className:C,style:E,bodyClassName:$,bodyStyle:O,progressClassName:_,progressStyle:R,updateId:k,role:P,progress:L,rtl:F,toastId:q,deleteToast:Y,isIn:X,isLoading:ue,iconOut:me,closeOnClick:te,theme:be}=t,we=Tf("Toastify__toast",`Toastify__toast-theme--${be}`,`Toastify__toast--${h}`,{"Toastify__toast--rtl":F},{"Toastify__toast--close-on-click":te}),B=Ea(C)?C({rtl:F,position:v,type:h,defaultClassName:we}):Tf(we,C),V=!!L||!l,H={closeToast:y,type:h,theme:be};let ie=null;return o===!1||(ie=Ea(o)?o(H):T.isValidElement(o)?T.cloneElement(o,H):LI(H)),Ae.createElement(w,{isIn:X,done:Y,position:v,preventExitTransition:n,nodeRef:r},Ae.createElement("div",{id:q,onClick:d,className:B,...i,style:E,ref:r},Ae.createElement("div",{...X&&{role:P},className:Ea($)?$({type:h}):Tf("Toastify__toast-body",$),style:O},me!=null&&Ae.createElement("div",{className:Tf("Toastify__toast-icon",{"Toastify--animate-icon Toastify__zoom-enter":!ue})},me),Ae.createElement("div",null,u)),ie,Ae.createElement(CV,{...k&&!V?{key:`pb-${k}`}:{},rtl:F,theme:be,delay:l,isRunning:e,isIn:X,closeToast:y,hide:g,type:h,style:R,className:_,controlledProgress:V,progress:L||0})))},PS=function(t,e){return e===void 0&&(e=!1),{enter:`Toastify--animate Toastify__${t}-enter`,exit:`Toastify--animate Toastify__${t}-exit`,appendPosition:e}},EV=RS(PS("bounce",!0));RS(PS("slide",!0));RS(PS("zoom"));RS(PS("flip"));const lA=T.forwardRef((t,e)=>{const{getToastToRender:n,containerRef:r,isToastActive:i}=wV(t),{className:o,style:u,rtl:l,containerId:d}=t;function h(g){const y=Tf("Toastify__toast-container",`Toastify__toast-container--${g}`,{"Toastify__toast-container--rtl":l});return Ea(o)?o({position:g,rtl:l,defaultClassName:y}):Tf(y,Ew(o))}return T.useEffect(()=>{e&&(e.current=r.current)},[]),Ae.createElement("div",{ref:r,className:"Toastify",id:d},n((g,y)=>{const w=y.length?{...u}:{...u,pointerEvents:"none"};return Ae.createElement("div",{className:h(g),style:w,key:`container-${g}`},y.map((v,C)=>{let{content:E,props:$}=v;return Ae.createElement($V,{...$,isIn:i($.toastId),style:{...$.style,"--nth":C+1,"--len":y.length},key:`toast-${$.key}`},E)}))}))});lA.displayName="ToastContainer",lA.defaultProps={position:"top-right",transition:EV,autoClose:5e3,closeButton:LI,pauseOnHover:!0,pauseOnFocusLoss:!0,closeOnClick:!0,draggable:!0,draggablePercent:80,draggableDirection:"x",role:"alert",theme:"light"};let DC,Sp=new Map,L0=[],xV=1;function UI(){return""+xV++}function OV(t){return t&&(Kp(t.toastId)||z0(t.toastId))?t.toastId:UI()}function V0(t,e){return Sp.size>0?Lo.emit(0,t,e):L0.push({content:t,options:e}),e.toastId}function Kw(t,e){return{...e,type:e&&e.type||t,toastId:OV(e)}}function ew(t){return(e,n)=>V0(e,Kw(t,n))}function Zn(t,e){return V0(t,Kw("default",e))}Zn.loading=(t,e)=>V0(t,Kw("default",{isLoading:!0,autoClose:!1,closeOnClick:!1,closeButton:!1,draggable:!1,...e})),Zn.promise=function(t,e,n){let r,{pending:i,error:o,success:u}=e;i&&(r=Kp(i)?Zn.loading(i,n):Zn.loading(i.render,{...n,...i}));const l={isLoading:null,autoClose:null,closeOnClick:null,closeButton:null,draggable:null},d=(g,y,w)=>{if(y==null)return void Zn.dismiss(r);const v={type:g,...l,...n,data:w},C=Kp(y)?{render:y}:y;return r?Zn.update(r,{...v,...C}):Zn(C.render,{...v,...C}),w},h=Ea(t)?t():t;return h.then(g=>d("success",u,g)).catch(g=>d("error",o,g)),h},Zn.success=ew("success"),Zn.info=ew("info"),Zn.error=ew("error"),Zn.warning=ew("warning"),Zn.warn=Zn.warning,Zn.dark=(t,e)=>V0(t,Kw("default",{theme:"dark",...e})),Zn.dismiss=t=>{Sp.size>0?Lo.emit(1,t):L0=L0.filter(e=>t!=null&&e.options.toastId!==t)},Zn.clearWaitingQueue=function(t){return t===void 0&&(t={}),Lo.emit(5,t)},Zn.isActive=t=>{let e=!1;return Sp.forEach(n=>{n.isToastActive&&n.isToastActive(t)&&(e=!0)}),e},Zn.update=function(t,e){e===void 0&&(e={}),setTimeout(()=>{const n=(function(r,i){let{containerId:o}=i;const u=Sp.get(o||DC);return u&&u.getToast(r)})(t,e);if(n){const{props:r,content:i}=n,o={delay:100,...r,...e,toastId:e.toastId||t,updateId:UI()};o.toastId!==t&&(o.staleId=t);const u=o.render||i;delete o.render,V0(u,o)}},0)},Zn.done=t=>{Zn.update(t,{progress:1})},Zn.onChange=t=>(Lo.on(4,t),()=>{Lo.off(4,t)}),Zn.POSITION={TOP_LEFT:"top-left",TOP_RIGHT:"top-right",TOP_CENTER:"top-center",BOTTOM_LEFT:"bottom-left",BOTTOM_RIGHT:"bottom-right",BOTTOM_CENTER:"bottom-center"},Zn.TYPE={INFO:"info",SUCCESS:"success",WARNING:"warning",ERROR:"error",DEFAULT:"default"},Lo.on(2,t=>{DC=t.containerId||t,Sp.set(DC,t),L0.forEach(e=>{Lo.emit(0,e.content,e.options)}),L0=[]}).on(3,t=>{Sp.delete(t.containerId||t),Sp.size===0&&Lo.off(0).off(1).off(5)});let g0=null;const cA=2500;function TV(t,e){if((g0==null?void 0:g0.content)==t)return;const n=Zn(t,{hideProgressBar:!0,autoClose:cA,...e});g0={content:t,key:n},setTimeout(()=>{g0=null},cA)}const jI={onlyOnRoot:"This feature is only available for root access, please ask your administrator for more details",productName:"Fireback",orders:{archiveTitle:"Orders",discountCode:"Discount code",discountCodeHint:"Discount code",editOrder:"Edit order",invoiceNumber:"Invoice number",invoiceNumberHint:"Invoice number",items:"Items",itemsHint:"Items",newOrder:"New order",orderStatus:"Order status",orderStatusHint:"Order status",paymentStatus:"Payment status",paymentStatusHint:"Payment status",shippingAddress:"Shipping address",shippingAddressHint:"Shipping address",totalPrice:"Total price",totalPriceHint:"Total price"},shoppingCarts:{archiveTitle:"Shopping carts",editShoppingCart:"Edit shopping cart",items:"Items",itemsHint:"Items",newShoppingCart:"New shopping cart",product:"Product",productHint:"Select the product item",quantity:"Quantity",quantityHint:"How many products do you want"},discountCodes:{appliedCategories:"Applied categories",appliedCategoriesHint:"Applied categories",appliedProducts:"Applied products",appliedProductsHint:"Applied products",archiveTitle:"Discount codes",editDiscountCode:"Edit discount code",excludedCategories:"Excluded categories",excludedCategoriesHint:"Excluded categories",excludedProducts:"Excluded products",excludedProductsHint:"Excluded products",limit:"Limit",limitHint:"Limit",newDiscountCode:"New discount code",series:"Series",seriesHint:"Series",validFrom:"Valid from",validFromHint:"Valid from",validUntil:"Valid until",validUntilHint:"Valid until"},postcategories:{archiveTitle:"Post Category",editpostCategory:"Edit Post category",name:"Name",nameHint:"Name",newpostCategory:"Newpost category"},pagecategories:{archiveTitle:"Page category",editpageCategory:"Edit page category",name:"Name",nameHint:"Name",newpageCategory:"New page category"},posttags:{archiveTitle:"Post tag",editpostTag:"Edit post tag",name:"Name",nameHint:"Name",newpostTag:"New post tag"},pagetags:{archiveTitle:"Page tag",editpageTag:"Edit page tag",name:"Name",nameHint:"Name",newpageTag:"New page tag"},posts:{archiveTitle:"Posts",category:"Category",categoryHint:"Category",content:"Content",contentHint:"content",editpost:"Edit post",newpost:"New post",tags:"Tags",tagsHint:"Tags",title:"Title",titleHint:"Title"},pages:{archiveTitle:"Pages",category:"Category",categoryHint:"Page category",content:"Content",contentHint:"",editpage:"Edit page",newpage:"New page",tags:"Tags",tagsHint:"Page tags",title:"Title",titleHint:"Page title"},components:{currency:"Currency",currencyHint:"Currency type",amount:"Amount",amountHint:"Amount in numbers, separated by . for cents"},brands:{archiveTitle:"Brand",editBrand:"Edit brand",name:"Name",nameHint:"Brand's name",newBrand:"New brand"},tags:{archiveTitle:"Tags",editTag:"Edit tag",name:"Name",nameHint:"Tag name",newTag:"Name of the tag"},productsubmissions:{name:"Name",nameHint:"Name of the product",archiveTitle:"Product Inventory",brand:"Brand",brandHint:"If the product belongs to an specific brand",category:"Category",categoryHint:"Product category",description:"Description",descriptionHint:"Product description",editproductSubmission:"Edit product submission",newproductSubmission:"Newproduct submission",price:"Price",priceHint:"Set the price tag for the product",product:"Product",productHint:"Select the product type",sku:"SKU",skuHint:"SKU code for the product",tags:"Tags",tagsHint:"Product tags"},products:{archiveTitle:"product",description:"Description",descriptionHint:"Describe the product form",editproduct:"Edit product",fields:"fields",fieldsHint:"fields hint",jsonSchema:"json schema",jsonSchemaHint:"json schema hint",name:"Form name",nameHint:"Name the type of products which this form represents",newproduct:"New product",uiSchema:"ui schema",uiSchemaHint:"ui schema hint"},categories:{archiveTitle:"Categories",editCategory:"Edit category",name:"Name",nameHint:"Name of the category",newCategory:"New category",parent:"Parent category",parentHint:"This category would be under the parent category in display or search"},abac:{backToApp:"Go back to the app",email:"Email",emailAddress:"Email address",firstName:"First name",lastName:"Last name",otpOrDifferent:"Or try a different account instead",otpResetMethod:"Reset method",otpTitle:"One time password",otpTitleHint:`Login to your account via a 6-8 digit pins, which we will + */function Ax(){return Ax=Object.assign?Object.assign.bind():function(t){for(var e=1;e=0)&&(n[i]=t[i]);return n}function OV(t){return!!(t.metaKey||t.altKey||t.ctrlKey||t.shiftKey)}function TV(t,e){return t.button===0&&(!e||e==="_self")&&!OV(t)}const _V=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset","viewTransition"],AV="6";try{window.__reactRouterVersion=AV}catch{}const RV="startTransition",fA=sx[RV];function PV(t){let{basename:e,children:n,future:r,window:i}=t,o=T.useRef();o.current==null&&(o.current=Mz({window:i,v5Compat:!0}));let u=o.current,[l,d]=T.useState({action:u.action,location:u.location}),{v7_startTransition:h}=r||{},g=T.useCallback(y=>{h&&fA?fA(()=>d(y)):d(y)},[d,h]);return T.useLayoutEffect(()=>u.listen(g),[u,g]),T.useEffect(()=>$V(r),[r]),T.createElement(EV,{basename:e,children:n,location:l.location,navigationType:l.action,navigator:u,future:r})}const IV=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",NV=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,Rx=T.forwardRef(function(e,n){let{onClick:r,relative:i,reloadDocument:o,replace:u,state:l,target:d,to:h,preventScrollReset:g,viewTransition:y}=e,w=xV(e,_V),{basename:b}=T.useContext(Gf),C,E=!1;if(typeof h=="string"&&NV.test(h)&&(C=h,IV))try{let P=new URL(window.location.href),k=h.startsWith("//")?new URL(P.protocol+h):new URL(h),R=lT(k.pathname,b);k.origin===P.origin&&R!=null?h=R+k.search+k.hash:E=!0}catch{}let $=sV(h,{relative:i}),O=MV(h,{replace:u,state:l,target:d,preventScrollReset:g,relative:i,viewTransition:y});function _(P){r&&r(P),P.defaultPrevented||O(P)}return T.createElement("a",Ax({},w,{href:C||$,onClick:E||o?r:_,ref:n,target:d}))});var dA;(function(t){t.UseScrollRestoration="useScrollRestoration",t.UseSubmit="useSubmit",t.UseSubmitFetcher="useSubmitFetcher",t.UseFetcher="useFetcher",t.useViewTransitionState="useViewTransitionState"})(dA||(dA={}));var hA;(function(t){t.UseFetcher="useFetcher",t.UseFetchers="useFetchers",t.UseScrollRestoration="useScrollRestoration"})(hA||(hA={}));function MV(t,e){let{target:n,replace:r,state:i,preventScrollReset:o,relative:u,viewTransition:l}=e===void 0?{}:e,d=hT(),h=zl(),g=aN(t,{relative:u});return T.useCallback(y=>{if(TV(y,n)){y.preventDefault();let w=r!==void 0?r:bS(h)===bS(g);d(t,{replace:w,state:i,preventScrollReset:o,relative:u,viewTransition:l})}},[h,d,g,r,i,n,t,o,u,l])}function Px(t,e){const n={};for(const[r,i]of Object.entries(e))typeof i=="string"?n[r]=`${t}.${i}`:typeof i=="object"&&i!==null&&(n[r]=i);return n}var Tr,Wc,Kc,Yc,Jc,Qc,Xc,Zc,ef,tf,nf,rf,af,of,sf,uf,lf,cf,ff,ww,Sw,df,hf,pf,Cu,Cw,mf,gf,yf,vf,bf,wf,Sf,Cf,$w;function Re(t,e){if(!{}.hasOwnProperty.call(t,e))throw new TypeError("attempted to use private field on non-instance");return t}var kV=0;function kt(t){return"__private_"+kV+++"_"+t}var hh=kt("apiVersion"),ph=kt("context"),mh=kt("id"),gh=kt("method"),yh=kt("params"),ll=kt("data"),cl=kt("error"),r$=kt("isJsonAppliable"),k0=kt("lateInitFields");class ca{get apiVersion(){return Re(this,hh)[hh]}set apiVersion(e){const n=typeof e=="string"||e===void 0||e===null;Re(this,hh)[hh]=n?e:String(e)}setApiVersion(e){return this.apiVersion=e,this}get context(){return Re(this,ph)[ph]}set context(e){const n=typeof e=="string"||e===void 0||e===null;Re(this,ph)[ph]=n?e:String(e)}setContext(e){return this.context=e,this}get id(){return Re(this,mh)[mh]}set id(e){const n=typeof e=="string"||e===void 0||e===null;Re(this,mh)[mh]=n?e:String(e)}setId(e){return this.id=e,this}get method(){return Re(this,gh)[gh]}set method(e){const n=typeof e=="string"||e===void 0||e===null;Re(this,gh)[gh]=n?e:String(e)}setMethod(e){return this.method=e,this}get params(){return Re(this,yh)[yh]}set params(e){Re(this,yh)[yh]=e}setParams(e){return this.params=e,this}get data(){return Re(this,ll)[ll]}set data(e){e instanceof ca.Data?Re(this,ll)[ll]=e:Re(this,ll)[ll]=new ca.Data(e)}setData(e){return this.data=e,this}get error(){return Re(this,cl)[cl]}set error(e){e instanceof ca.Error?Re(this,cl)[cl]=e:Re(this,cl)[cl]=new ca.Error(e)}setError(e){return this.error=e,this}constructor(e=void 0){if(Object.defineProperty(this,k0,{value:FV}),Object.defineProperty(this,r$,{value:DV}),Object.defineProperty(this,hh,{writable:!0,value:void 0}),Object.defineProperty(this,ph,{writable:!0,value:void 0}),Object.defineProperty(this,mh,{writable:!0,value:void 0}),Object.defineProperty(this,gh,{writable:!0,value:void 0}),Object.defineProperty(this,yh,{writable:!0,value:null}),Object.defineProperty(this,ll,{writable:!0,value:void 0}),Object.defineProperty(this,cl,{writable:!0,value:void 0}),e==null){Re(this,k0)[k0]();return}if(typeof e=="string")this.applyFromObject(JSON.parse(e));else if(Re(this,r$)[r$](e))this.applyFromObject(e);else throw new Error("Instance cannot be created on an unknown value, check the content being passed. got: "+typeof e)}applyFromObject(e={}){const n=e;n.apiVersion!==void 0&&(this.apiVersion=n.apiVersion),n.context!==void 0&&(this.context=n.context),n.id!==void 0&&(this.id=n.id),n.method!==void 0&&(this.method=n.method),n.params!==void 0&&(this.params=n.params),n.data!==void 0&&(this.data=n.data),n.error!==void 0&&(this.error=n.error),Re(this,k0)[k0](e)}toJSON(){return{apiVersion:Re(this,hh)[hh],context:Re(this,ph)[ph],id:Re(this,mh)[mh],method:Re(this,gh)[gh],params:Re(this,yh)[yh],data:Re(this,ll)[ll],error:Re(this,cl)[cl]}}toString(){return JSON.stringify(this)}static get Fields(){return{apiVersion:"apiVersion",context:"context",id:"id",method:"method",params:"params",data$:"data",get data(){return Px("data",ca.Data.Fields)},error$:"error",get error(){return Px("error",ca.Error.Fields)}}}static from(e){return new ca(e)}static with(e){return new ca(e)}copyWith(e){return new ca({...this.toJSON(),...e})}clone(){return new ca(this.toJSON())}}Tr=ca;function DV(t){const e=globalThis,n=typeof e.Buffer<"u"&&typeof e.Buffer.isBuffer=="function"&&e.Buffer.isBuffer(t),r=typeof e.Blob<"u"&&t instanceof e.Blob;return t&&typeof t=="object"&&!Array.isArray(t)&&!n&&!(t instanceof ArrayBuffer)&&!r}function FV(t={}){const e=t;e.data instanceof Tr.Data||(this.data=new Tr.Data(e.data||{})),e.error instanceof Tr.Error||(this.error=new Tr.Error(e.error||{}))}ca.Data=(Wc=kt("item"),Kc=kt("items"),Yc=kt("editLink"),Jc=kt("selfLink"),Qc=kt("kind"),Xc=kt("fields"),Zc=kt("etag"),ef=kt("cursor"),tf=kt("id"),nf=kt("lang"),rf=kt("updated"),af=kt("currentItemCount"),of=kt("itemsPerPage"),sf=kt("startIndex"),uf=kt("totalItems"),lf=kt("totalAvailableItems"),cf=kt("pageIndex"),ff=kt("totalPages"),ww=kt("isJsonAppliable"),class{get item(){return Re(this,Wc)[Wc]}set item(e){Re(this,Wc)[Wc]=e}setItem(e){return this.item=e,this}get items(){return Re(this,Kc)[Kc]}set items(e){Re(this,Kc)[Kc]=e}setItems(e){return this.items=e,this}get editLink(){return Re(this,Yc)[Yc]}set editLink(e){const n=typeof e=="string"||e===void 0||e===null;Re(this,Yc)[Yc]=n?e:String(e)}setEditLink(e){return this.editLink=e,this}get selfLink(){return Re(this,Jc)[Jc]}set selfLink(e){const n=typeof e=="string"||e===void 0||e===null;Re(this,Jc)[Jc]=n?e:String(e)}setSelfLink(e){return this.selfLink=e,this}get kind(){return Re(this,Qc)[Qc]}set kind(e){const n=typeof e=="string"||e===void 0||e===null;Re(this,Qc)[Qc]=n?e:String(e)}setKind(e){return this.kind=e,this}get fields(){return Re(this,Xc)[Xc]}set fields(e){const n=typeof e=="string"||e===void 0||e===null;Re(this,Xc)[Xc]=n?e:String(e)}setFields(e){return this.fields=e,this}get etag(){return Re(this,Zc)[Zc]}set etag(e){const n=typeof e=="string"||e===void 0||e===null;Re(this,Zc)[Zc]=n?e:String(e)}setEtag(e){return this.etag=e,this}get cursor(){return Re(this,ef)[ef]}set cursor(e){const n=typeof e=="string"||e===void 0||e===null;Re(this,ef)[ef]=n?e:String(e)}setCursor(e){return this.cursor=e,this}get id(){return Re(this,tf)[tf]}set id(e){const n=typeof e=="string"||e===void 0||e===null;Re(this,tf)[tf]=n?e:String(e)}setId(e){return this.id=e,this}get lang(){return Re(this,nf)[nf]}set lang(e){const n=typeof e=="string"||e===void 0||e===null;Re(this,nf)[nf]=n?e:String(e)}setLang(e){return this.lang=e,this}get updated(){return Re(this,rf)[rf]}set updated(e){const n=typeof e=="string"||e===void 0||e===null;Re(this,rf)[rf]=n?e:String(e)}setUpdated(e){return this.updated=e,this}get currentItemCount(){return Re(this,af)[af]}set currentItemCount(e){const r=typeof e=="number"||e===void 0||e===null?e:Number(e);Number.isNaN(r)||(Re(this,af)[af]=r)}setCurrentItemCount(e){return this.currentItemCount=e,this}get itemsPerPage(){return Re(this,of)[of]}set itemsPerPage(e){const r=typeof e=="number"||e===void 0||e===null?e:Number(e);Number.isNaN(r)||(Re(this,of)[of]=r)}setItemsPerPage(e){return this.itemsPerPage=e,this}get startIndex(){return Re(this,sf)[sf]}set startIndex(e){const r=typeof e=="number"||e===void 0||e===null?e:Number(e);Number.isNaN(r)||(Re(this,sf)[sf]=r)}setStartIndex(e){return this.startIndex=e,this}get totalItems(){return Re(this,uf)[uf]}set totalItems(e){const r=typeof e=="number"||e===void 0||e===null?e:Number(e);Number.isNaN(r)||(Re(this,uf)[uf]=r)}setTotalItems(e){return this.totalItems=e,this}get totalAvailableItems(){return Re(this,lf)[lf]}set totalAvailableItems(e){const r=typeof e=="number"||e===void 0||e===null?e:Number(e);Number.isNaN(r)||(Re(this,lf)[lf]=r)}setTotalAvailableItems(e){return this.totalAvailableItems=e,this}get pageIndex(){return Re(this,cf)[cf]}set pageIndex(e){const r=typeof e=="number"||e===void 0||e===null?e:Number(e);Number.isNaN(r)||(Re(this,cf)[cf]=r)}setPageIndex(e){return this.pageIndex=e,this}get totalPages(){return Re(this,ff)[ff]}set totalPages(e){const r=typeof e=="number"||e===void 0||e===null?e:Number(e);Number.isNaN(r)||(Re(this,ff)[ff]=r)}setTotalPages(e){return this.totalPages=e,this}constructor(e=void 0){if(Object.defineProperty(this,ww,{value:LV}),Object.defineProperty(this,Wc,{writable:!0,value:null}),Object.defineProperty(this,Kc,{writable:!0,value:null}),Object.defineProperty(this,Yc,{writable:!0,value:void 0}),Object.defineProperty(this,Jc,{writable:!0,value:void 0}),Object.defineProperty(this,Qc,{writable:!0,value:void 0}),Object.defineProperty(this,Xc,{writable:!0,value:void 0}),Object.defineProperty(this,Zc,{writable:!0,value:void 0}),Object.defineProperty(this,ef,{writable:!0,value:void 0}),Object.defineProperty(this,tf,{writable:!0,value:void 0}),Object.defineProperty(this,nf,{writable:!0,value:void 0}),Object.defineProperty(this,rf,{writable:!0,value:void 0}),Object.defineProperty(this,af,{writable:!0,value:void 0}),Object.defineProperty(this,of,{writable:!0,value:void 0}),Object.defineProperty(this,sf,{writable:!0,value:void 0}),Object.defineProperty(this,uf,{writable:!0,value:void 0}),Object.defineProperty(this,lf,{writable:!0,value:void 0}),Object.defineProperty(this,cf,{writable:!0,value:void 0}),Object.defineProperty(this,ff,{writable:!0,value:void 0}),e!=null)if(typeof e=="string")this.applyFromObject(JSON.parse(e));else if(Re(this,ww)[ww](e))this.applyFromObject(e);else throw new Error("Instance cannot be created on an unknown value, check the content being passed. got: "+typeof e)}applyFromObject(e={}){const n=e;n.item!==void 0&&(this.item=n.item),n.items!==void 0&&(this.items=n.items),n.editLink!==void 0&&(this.editLink=n.editLink),n.selfLink!==void 0&&(this.selfLink=n.selfLink),n.kind!==void 0&&(this.kind=n.kind),n.fields!==void 0&&(this.fields=n.fields),n.etag!==void 0&&(this.etag=n.etag),n.cursor!==void 0&&(this.cursor=n.cursor),n.id!==void 0&&(this.id=n.id),n.lang!==void 0&&(this.lang=n.lang),n.updated!==void 0&&(this.updated=n.updated),n.currentItemCount!==void 0&&(this.currentItemCount=n.currentItemCount),n.itemsPerPage!==void 0&&(this.itemsPerPage=n.itemsPerPage),n.startIndex!==void 0&&(this.startIndex=n.startIndex),n.totalItems!==void 0&&(this.totalItems=n.totalItems),n.totalAvailableItems!==void 0&&(this.totalAvailableItems=n.totalAvailableItems),n.pageIndex!==void 0&&(this.pageIndex=n.pageIndex),n.totalPages!==void 0&&(this.totalPages=n.totalPages)}toJSON(){return{item:Re(this,Wc)[Wc],items:Re(this,Kc)[Kc],editLink:Re(this,Yc)[Yc],selfLink:Re(this,Jc)[Jc],kind:Re(this,Qc)[Qc],fields:Re(this,Xc)[Xc],etag:Re(this,Zc)[Zc],cursor:Re(this,ef)[ef],id:Re(this,tf)[tf],lang:Re(this,nf)[nf],updated:Re(this,rf)[rf],currentItemCount:Re(this,af)[af],itemsPerPage:Re(this,of)[of],startIndex:Re(this,sf)[sf],totalItems:Re(this,uf)[uf],totalAvailableItems:Re(this,lf)[lf],pageIndex:Re(this,cf)[cf],totalPages:Re(this,ff)[ff]}}toString(){return JSON.stringify(this)}static get Fields(){return{item:"item",items:"items",editLink:"editLink",selfLink:"selfLink",kind:"kind",fields:"fields",etag:"etag",cursor:"cursor",id:"id",lang:"lang",updated:"updated",currentItemCount:"currentItemCount",itemsPerPage:"itemsPerPage",startIndex:"startIndex",totalItems:"totalItems",totalAvailableItems:"totalAvailableItems",pageIndex:"pageIndex",totalPages:"totalPages"}}static from(e){return new Tr.Data(e)}static with(e){return new Tr.Data(e)}copyWith(e){return new Tr.Data({...this.toJSON(),...e})}clone(){return new Tr.Data(this.toJSON())}});function LV(t){const e=globalThis,n=typeof e.Buffer<"u"&&typeof e.Buffer.isBuffer=="function"&&e.Buffer.isBuffer(t),r=typeof e.Blob<"u"&&t instanceof e.Blob;return t&&typeof t=="object"&&!Array.isArray(t)&&!n&&!(t instanceof ArrayBuffer)&&!r}ca.Error=(df=kt("code"),hf=kt("message"),pf=kt("messageTranslated"),Cu=kt("errors"),Cw=kt("isJsonAppliable"),Sw=class lN{get code(){return Re(this,df)[df]}set code(e){const r=typeof e=="number"?e:Number(e);Number.isNaN(r)||(Re(this,df)[df]=r)}setCode(e){return this.code=e,this}get message(){return Re(this,hf)[hf]}set message(e){Re(this,hf)[hf]=String(e)}setMessage(e){return this.message=e,this}get messageTranslated(){return Re(this,pf)[pf]}set messageTranslated(e){Re(this,pf)[pf]=String(e)}setMessageTranslated(e){return this.messageTranslated=e,this}get errors(){return Re(this,Cu)[Cu]}set errors(e){Array.isArray(e)&&(e.length>0&&e[0]instanceof Tr.Error.Errors?Re(this,Cu)[Cu]=e:Re(this,Cu)[Cu]=e.map(n=>new Tr.Error.Errors(n)))}setErrors(e){return this.errors=e,this}constructor(e=void 0){if(Object.defineProperty(this,Cw,{value:BV}),Object.defineProperty(this,df,{writable:!0,value:0}),Object.defineProperty(this,hf,{writable:!0,value:""}),Object.defineProperty(this,pf,{writable:!0,value:""}),Object.defineProperty(this,Cu,{writable:!0,value:[]}),e!=null)if(typeof e=="string")this.applyFromObject(JSON.parse(e));else if(Re(this,Cw)[Cw](e))this.applyFromObject(e);else throw new lN("Instance cannot be created on an unknown value, check the content being passed. got: "+typeof e)}applyFromObject(e={}){const n=e;n.code!==void 0&&(this.code=n.code),n.message!==void 0&&(this.message=n.message),n.messageTranslated!==void 0&&(this.messageTranslated=n.messageTranslated),n.errors!==void 0&&(this.errors=n.errors)}toJSON(){return{code:Re(this,df)[df],message:Re(this,hf)[hf],messageTranslated:Re(this,pf)[pf],errors:Re(this,Cu)[Cu]}}toString(){return JSON.stringify(this)}static get Fields(){return{code:"code",message:"message",messageTranslated:"messageTranslated",errors$:"errors",get errors(){return Px("error.errors[:i]",Tr.Error.Errors.Fields)}}}static from(e){return new Tr.Error(e)}static with(e){return new Tr.Error(e)}copyWith(e){return new Tr.Error({...this.toJSON(),...e})}clone(){return new Tr.Error(this.toJSON())}},Sw.Errors=(mf=kt("domain"),gf=kt("reason"),yf=kt("message"),vf=kt("messageTranslated"),bf=kt("location"),wf=kt("locationType"),Sf=kt("extendedHelp"),Cf=kt("sendReport"),$w=kt("isJsonAppliable"),class{get domain(){return Re(this,mf)[mf]}set domain(e){const n=typeof e=="string"||e===void 0||e===null;Re(this,mf)[mf]=n?e:String(e)}setDomain(e){return this.domain=e,this}get reason(){return Re(this,gf)[gf]}set reason(e){const n=typeof e=="string"||e===void 0||e===null;Re(this,gf)[gf]=n?e:String(e)}setReason(e){return this.reason=e,this}get message(){return Re(this,yf)[yf]}set message(e){const n=typeof e=="string"||e===void 0||e===null;Re(this,yf)[yf]=n?e:String(e)}setMessage(e){return this.message=e,this}get messageTranslated(){return Re(this,vf)[vf]}set messageTranslated(e){const n=typeof e=="string"||e===void 0||e===null;Re(this,vf)[vf]=n?e:String(e)}setMessageTranslated(e){return this.messageTranslated=e,this}get location(){return Re(this,bf)[bf]}set location(e){const n=typeof e=="string"||e===void 0||e===null;Re(this,bf)[bf]=n?e:String(e)}setLocation(e){return this.location=e,this}get locationType(){return Re(this,wf)[wf]}set locationType(e){const n=typeof e=="string"||e===void 0||e===null;Re(this,wf)[wf]=n?e:String(e)}setLocationType(e){return this.locationType=e,this}get extendedHelp(){return Re(this,Sf)[Sf]}set extendedHelp(e){const n=typeof e=="string"||e===void 0||e===null;Re(this,Sf)[Sf]=n?e:String(e)}setExtendedHelp(e){return this.extendedHelp=e,this}get sendReport(){return Re(this,Cf)[Cf]}set sendReport(e){const n=typeof e=="string"||e===void 0||e===null;Re(this,Cf)[Cf]=n?e:String(e)}setSendReport(e){return this.sendReport=e,this}constructor(e=void 0){if(Object.defineProperty(this,$w,{value:UV}),Object.defineProperty(this,mf,{writable:!0,value:void 0}),Object.defineProperty(this,gf,{writable:!0,value:void 0}),Object.defineProperty(this,yf,{writable:!0,value:void 0}),Object.defineProperty(this,vf,{writable:!0,value:void 0}),Object.defineProperty(this,bf,{writable:!0,value:void 0}),Object.defineProperty(this,wf,{writable:!0,value:void 0}),Object.defineProperty(this,Sf,{writable:!0,value:void 0}),Object.defineProperty(this,Cf,{writable:!0,value:void 0}),e!=null)if(typeof e=="string")this.applyFromObject(JSON.parse(e));else if(Re(this,$w)[$w](e))this.applyFromObject(e);else throw new Sw("Instance cannot be created on an unknown value, check the content being passed. got: "+typeof e)}applyFromObject(e={}){const n=e;n.domain!==void 0&&(this.domain=n.domain),n.reason!==void 0&&(this.reason=n.reason),n.message!==void 0&&(this.message=n.message),n.messageTranslated!==void 0&&(this.messageTranslated=n.messageTranslated),n.location!==void 0&&(this.location=n.location),n.locationType!==void 0&&(this.locationType=n.locationType),n.extendedHelp!==void 0&&(this.extendedHelp=n.extendedHelp),n.sendReport!==void 0&&(this.sendReport=n.sendReport)}toJSON(){return{domain:Re(this,mf)[mf],reason:Re(this,gf)[gf],message:Re(this,yf)[yf],messageTranslated:Re(this,vf)[vf],location:Re(this,bf)[bf],locationType:Re(this,wf)[wf],extendedHelp:Re(this,Sf)[Sf],sendReport:Re(this,Cf)[Cf]}}toString(){return JSON.stringify(this)}static get Fields(){return{domain:"domain",reason:"reason",message:"message",messageTranslated:"messageTranslated",location:"location",locationType:"locationType",extendedHelp:"extendedHelp",sendReport:"sendReport"}}static from(e){return new Tr.Error.Errors(e)}static with(e){return new Tr.Error.Errors(e)}copyWith(e){return new Tr.Error.Errors({...this.toJSON(),...e})}clone(){return new Tr.Error.Errors(this.toJSON())}}),Sw);function UV(t){const e=globalThis,n=typeof e.Buffer<"u"&&typeof e.Buffer.isBuffer=="function"&&e.Buffer.isBuffer(t),r=typeof e.Blob<"u"&&t instanceof e.Blob;return t&&typeof t=="object"&&!Array.isArray(t)&&!n&&!(t instanceof ArrayBuffer)&&!r}function BV(t){const e=globalThis,n=typeof e.Buffer<"u"&&typeof e.Buffer.isBuffer=="function"&&e.Buffer.isBuffer(t),r=typeof e.Blob<"u"&&t instanceof e.Blob;return t&&typeof t=="object"&&!Array.isArray(t)&&!n&&!(t instanceof ArrayBuffer)&&!r}class Ui extends ca{constructor(e){super(e),this.creator=void 0}setCreator(e){return this.creator=e,this}inject(e){var n,r,i,o,u,l,d,h;return this.applyFromObject(e),e!=null&&e.data&&(this.data||this.setData({}),Array.isArray(e==null?void 0:e.data.items)&&typeof this.creator<"u"&&this.creator!==null?(i=this.data)==null||i.setItems((r=(n=e==null?void 0:e.data)==null?void 0:n.items)==null?void 0:r.map(g=>{var y;return(y=this.creator)==null?void 0:y.call(this,g)})):typeof((o=e==null?void 0:e.data)==null?void 0:o.item)=="object"&&typeof this.creator<"u"&&this.creator!==null?(l=this.data)==null||l.setItem(this.creator((u=e==null?void 0:e.data)==null?void 0:u.item)):(h=this.data)==null||h.setItem((d=e==null?void 0:e.data)==null?void 0:d.item)),this}}function ma(t,e,n){if(n&&n instanceof URLSearchParams)t+=`?${n.toString()}`;else if(n&&Object.keys(n).length){const r=new URLSearchParams(Object.entries(n).map(([i,o])=>[i,String(o)])).toString();t+=`?${r}`}return t}var I1;function Gn(t,e){if(!{}.hasOwnProperty.call(t,e))throw new TypeError("attempted to use private field on non-instance");return t}var jV=0;function Vl(t){return"__private_"+jV+++"_"+t}const cN=t=>{const e=Ma(),n=(t==null?void 0:t.ctx)??e??void 0,[r,i]=T.useState(!1),[o,u]=T.useState(),l=()=>(i(!1),Rl.Fetch({headers:t==null?void 0:t.headers},{creatorFn:t==null?void 0:t.creatorFn,qs:t==null?void 0:t.qs,ctx:n,onMessage:t==null?void 0:t.onMessage,overrideUrl:t==null?void 0:t.overrideUrl}).then(h=>(h.done.then(()=>{i(!0)}),u(h.response),h.response.result)));return{...Yo({queryKey:[Rl.NewUrl(t==null?void 0:t.qs)],queryFn:l,...t||{}}),isCompleted:r,response:o}};class Rl{}I1=Rl;Rl.URL="/passports/available-methods";Rl.NewUrl=t=>ma(I1.URL,void 0,t);Rl.Method="get";Rl.Fetch$=async(t,e,n,r)=>ha(r??I1.NewUrl(t),{method:I1.Method,...n||{}},e);Rl.Fetch=async(t,{creatorFn:e,qs:n,ctx:r,onMessage:i,overrideUrl:o}={creatorFn:u=>new kf(u)})=>{e=e||(l=>new kf(l));const u=await I1.Fetch$(n,r,t,o);return pa(u,l=>{const d=new Ui;return e&&d.setCreator(e),d.inject(l),d},i,t==null?void 0:t.signal)};Rl.Definition={name:"CheckPassportMethods",cliName:"check-passport-methods",url:"/passports/available-methods",method:"get",description:"Publicly available information to create the authentication form, and show users how they can signin or signup to the system. Based on the PassportMethod entities, it will compute the available methods for the user, considering their region (IP for example)",out:{envelope:"GResponse",fields:[{name:"email",type:"bool",default:!1},{name:"phone",type:"bool",default:!1},{name:"google",type:"bool",default:!1},{name:"facebook",type:"bool",default:!1},{name:"googleOAuthClientKey",type:"string"},{name:"facebookAppId",type:"string"},{name:"enabledRecaptcha2",type:"bool",default:!1},{name:"recaptcha2ClientKey",type:"string"}]}};var vh=Vl("email"),bh=Vl("phone"),wh=Vl("google"),Sh=Vl("facebook"),Ch=Vl("googleOAuthClientKey"),$h=Vl("facebookAppId"),Eh=Vl("enabledRecaptcha2"),xh=Vl("recaptcha2ClientKey"),i$=Vl("isJsonAppliable");class kf{get email(){return Gn(this,vh)[vh]}set email(e){Gn(this,vh)[vh]=!!e}setEmail(e){return this.email=e,this}get phone(){return Gn(this,bh)[bh]}set phone(e){Gn(this,bh)[bh]=!!e}setPhone(e){return this.phone=e,this}get google(){return Gn(this,wh)[wh]}set google(e){Gn(this,wh)[wh]=!!e}setGoogle(e){return this.google=e,this}get facebook(){return Gn(this,Sh)[Sh]}set facebook(e){Gn(this,Sh)[Sh]=!!e}setFacebook(e){return this.facebook=e,this}get googleOAuthClientKey(){return Gn(this,Ch)[Ch]}set googleOAuthClientKey(e){Gn(this,Ch)[Ch]=String(e)}setGoogleOAuthClientKey(e){return this.googleOAuthClientKey=e,this}get facebookAppId(){return Gn(this,$h)[$h]}set facebookAppId(e){Gn(this,$h)[$h]=String(e)}setFacebookAppId(e){return this.facebookAppId=e,this}get enabledRecaptcha2(){return Gn(this,Eh)[Eh]}set enabledRecaptcha2(e){Gn(this,Eh)[Eh]=!!e}setEnabledRecaptcha2(e){return this.enabledRecaptcha2=e,this}get recaptcha2ClientKey(){return Gn(this,xh)[xh]}set recaptcha2ClientKey(e){Gn(this,xh)[xh]=String(e)}setRecaptcha2ClientKey(e){return this.recaptcha2ClientKey=e,this}constructor(e=void 0){if(Object.defineProperty(this,i$,{value:qV}),Object.defineProperty(this,vh,{writable:!0,value:!1}),Object.defineProperty(this,bh,{writable:!0,value:!1}),Object.defineProperty(this,wh,{writable:!0,value:!1}),Object.defineProperty(this,Sh,{writable:!0,value:!1}),Object.defineProperty(this,Ch,{writable:!0,value:""}),Object.defineProperty(this,$h,{writable:!0,value:""}),Object.defineProperty(this,Eh,{writable:!0,value:!1}),Object.defineProperty(this,xh,{writable:!0,value:""}),e!=null)if(typeof e=="string")this.applyFromObject(JSON.parse(e));else if(Gn(this,i$)[i$](e))this.applyFromObject(e);else throw new Error("Instance cannot be created on an unknown value, check the content being passed. got: "+typeof e)}applyFromObject(e={}){const n=e;n.email!==void 0&&(this.email=n.email),n.phone!==void 0&&(this.phone=n.phone),n.google!==void 0&&(this.google=n.google),n.facebook!==void 0&&(this.facebook=n.facebook),n.googleOAuthClientKey!==void 0&&(this.googleOAuthClientKey=n.googleOAuthClientKey),n.facebookAppId!==void 0&&(this.facebookAppId=n.facebookAppId),n.enabledRecaptcha2!==void 0&&(this.enabledRecaptcha2=n.enabledRecaptcha2),n.recaptcha2ClientKey!==void 0&&(this.recaptcha2ClientKey=n.recaptcha2ClientKey)}toJSON(){return{email:Gn(this,vh)[vh],phone:Gn(this,bh)[bh],google:Gn(this,wh)[wh],facebook:Gn(this,Sh)[Sh],googleOAuthClientKey:Gn(this,Ch)[Ch],facebookAppId:Gn(this,$h)[$h],enabledRecaptcha2:Gn(this,Eh)[Eh],recaptcha2ClientKey:Gn(this,xh)[xh]}}toString(){return JSON.stringify(this)}static get Fields(){return{email:"email",phone:"phone",google:"google",facebook:"facebook",googleOAuthClientKey:"googleOAuthClientKey",facebookAppId:"facebookAppId",enabledRecaptcha2:"enabledRecaptcha2",recaptcha2ClientKey:"recaptcha2ClientKey"}}static from(e){return new kf(e)}static with(e){return new kf(e)}copyWith(e){return new kf({...this.toJSON(),...e})}clone(){return new kf(this.toJSON())}}function qV(t){const e=globalThis,n=typeof e.Buffer<"u"&&typeof e.Buffer.isBuffer=="function"&&e.Buffer.isBuffer(t),r=typeof e.Blob<"u"&&t instanceof e.Blob;return t&&typeof t=="object"&&!Array.isArray(t)&&!n&&!(t instanceof ArrayBuffer)&&!r}class Vt{constructor(...e){this.visibility=null,this.parentId=null,this.linkerId=null,this.workspaceId=null,this.linkedId=null,this.uniqueId=null,this.userId=null,this.updated=null,this.created=null,this.createdFormatted=null,this.updatedFormatted=null}}Vt.Fields={visibility:"visibility",parentId:"parentId",linkerId:"linkerId",workspaceId:"workspaceId",linkedId:"linkedId",uniqueId:"uniqueId",userId:"userId",updated:"updated",created:"created",updatedFormatted:"updatedFormatted",createdFormatted:"createdFormatted"};class pm extends Vt{constructor(...e){super(...e),this.children=void 0,this.firstName=void 0,this.lastName=void 0,this.photo=void 0,this.gender=void 0,this.title=void 0,this.birthDate=void 0,this.avatar=void 0,this.lastIpAddress=void 0,this.primaryAddress=void 0}}pm.Navigation={edit(t,e){return`${e?"/"+e:".."}/user/edit/${t}`},create(t){return`${t?"/"+t:".."}/user/new`},single(t,e){return`${e?"/"+e:".."}/user/${t}`},query(t={},e){return`${e?"/"+e:".."}/users`},Redit:"user/edit/:uniqueId",Rcreate:"user/new",Rsingle:"user/:uniqueId",Rquery:"users",rPrimaryAddressCreate:"user/:linkerId/primary_address/new",rPrimaryAddressEdit:"user/:linkerId/primary_address/edit/:uniqueId",editPrimaryAddress(t,e,n){return`${n?"/"+n:""}/user/${t}/primary_address/edit/${e}`},createPrimaryAddress(t,e){return`${e?"/"+e:""}/user/${t}/primary_address/new`}};pm.definition={events:[{name:"Googoli2",description:"Googlievent",payload:{fields:[{name:"entity",type:"string",computedType:"string",gormMap:{}}]}}],rpc:{query:{qs:[{name:"withImages",type:"bool?",gormMap:{}}]}},permRewrite:{replace:"root.modules",with:"root.manage"},name:"user",features:{},security:{writeOnRoot:!0},gormMap:{},fields:[{name:"firstName",type:"string",validate:"required",computedType:"string",gormMap:{}},{name:"lastName",type:"string",validate:"required",computedType:"string",gormMap:{}},{name:"photo",type:"string",computedType:"string",gormMap:{}},{name:"gender",type:"int?",computedType:"number",gormMap:{}},{name:"title",type:"string",computedType:"string",gormMap:{}},{name:"birthDate",type:"date",computedType:"Date",gormMap:{}},{name:"avatar",type:"string",computedType:"string",gormMap:{}},{name:"lastIpAddress",description:"User last connecting ip address",type:"string",computedType:"string",gormMap:{}},{name:"primaryAddress",description:"User primary address location. Can be useful for simple projects that a user is associated with a single address.",type:"object",computedType:"UserPrimaryAddress",gormMap:{},"-":"UserPrimaryAddress",fields:[{name:"addressLine1",description:"Street address, building number",type:"string",computedType:"string",gormMap:{}},{name:"addressLine2",description:"Apartment, suite, floor (optional)",type:"string?",computedType:"string",gormMap:{}},{name:"city",description:"City or locality",type:"string?",computedType:"string",gormMap:{}},{name:"stateOrProvince",description:"State, region, or province",type:"string?",computedType:"string",gormMap:{}},{name:"postalCode",description:"ZIP or postal code",type:"string?",computedType:"string",gormMap:{}},{name:"countryCode",description:'ISO 3166-1 alpha-2 (e.g., \\"US\\", \\"DE\\")',type:"string?",computedType:"string",gormMap:{}}],linkedTo:"UserEntity"}],description:"Manage the users who are in the current app (root only)"};pm.Fields={...Vt.Fields,firstName:"firstName",lastName:"lastName",photo:"photo",gender:"gender",title:"title",birthDate:"birthDate",avatar:"avatar",lastIpAddress:"lastIpAddress",primaryAddress$:"primaryAddress",primaryAddress:{...Vt.Fields,addressLine1:"primaryAddress.addressLine1",addressLine2:"primaryAddress.addressLine2",city:"primaryAddress.city",stateOrProvince:"primaryAddress.stateOrProvince",postalCode:"primaryAddress.postalCode",countryCode:"primaryAddress.countryCode"}};class N1 extends Vt{constructor(...e){super(...e),this.children=void 0,this.thirdPartyVerifier=void 0,this.type=void 0,this.user=void 0,this.value=void 0,this.totpSecret=void 0,this.totpConfirmed=void 0,this.password=void 0,this.confirmed=void 0,this.accessToken=void 0}}N1.Navigation={edit(t,e){return`${e?"/"+e:".."}/passport/edit/${t}`},create(t){return`${t?"/"+t:".."}/passport/new`},single(t,e){return`${e?"/"+e:".."}/passport/${t}`},query(t={},e){return`${e?"/"+e:".."}/passports`},Redit:"passport/edit/:uniqueId",Rcreate:"passport/new",Rsingle:"passport/:uniqueId",Rquery:"passports"};N1.definition={rpc:{query:{}},permRewrite:{replace:"root.modules",with:"root.manage"},name:"passport",features:{},security:{writeOnRoot:!0},gormMap:{},fields:[{name:"thirdPartyVerifier",description:"When user creates account via oauth services such as google, it's essential to set the provider and do not allow passwordless logins if it's not via that specific provider.",type:"string",default:!1,computedType:"string",gormMap:{}},{name:"type",type:"string",validate:"required",computedType:"string",gormMap:{}},{name:"user",type:"one",target:"UserEntity",computedType:"UserEntity",gormMap:{}},{name:"value",type:"string",validate:"required",computedType:"string",gorm:"unique",gormMap:{}},{name:"totpSecret",description:"Store the secret of 2FA using time based dual factor authentication here for this specific passport. If set, during authorization will be asked.",type:"string",computedType:"string",gormMap:{}},{name:"totpConfirmed",description:"Regardless of the secret, user needs to confirm his secret. There is an extra action to confirm user totp, could be used after signup or prior to login.",type:"bool?",computedType:"boolean",gormMap:{}},{name:"password",type:"string",json:"-",yaml:"-",computedType:"string",gormMap:{}},{name:"confirmed",type:"bool?",computedType:"boolean",gormMap:{}},{name:"accessToken",type:"string",computedType:"string",gormMap:{}}],description:"Represent a mean to login in into the system, each user could have multiple passport (email, phone) and authenticate into the system."};N1.Fields={...Vt.Fields,thirdPartyVerifier:"thirdPartyVerifier",type:"type",user$:"user",user:pm.Fields,value:"value",totpSecret:"totpSecret",totpConfirmed:"totpConfirmed",password:"password",confirmed:"confirmed",accessToken:"accessToken"};class hb extends Vt{constructor(...e){super(...e),this.children=void 0,this.name=void 0,this.description=void 0}}hb.Navigation={edit(t,e){return`${e?"/"+e:".."}/capability/edit/${t}`},create(t){return`${t?"/"+t:".."}/capability/new`},single(t,e){return`${e?"/"+e:".."}/capability/${t}`},query(t={},e){return`${e?"/"+e:".."}/capabilities`},Redit:"capability/edit/:uniqueId",Rcreate:"capability/new",Rsingle:"capability/:uniqueId",Rquery:"capabilities"};hb.definition={rpc:{query:{}},permRewrite:{replace:"root.modules",with:"root.manage"},name:"capability",features:{},security:{writeOnRoot:!0},gormMap:{},fields:[{name:"name",type:"string",computedType:"string",gormMap:{}},{name:"description",type:"string",translate:!0,computedType:"string",gormMap:{}}],cliShort:"cap",description:"Manage the capabilities inside the application, both builtin to core and custom defined ones"};hb.Fields={...Vt.Fields,name:"name",description:"description"};class Fr extends Vt{constructor(...e){super(...e),this.children=void 0,this.name=void 0,this.capabilities=void 0,this.capabilitiesListId=void 0}}Fr.Navigation={edit(t,e){return`${e?"/"+e:".."}/role/edit/${t}`},create(t){return`${t?"/"+t:".."}/role/new`},single(t,e){return`${e?"/"+e:".."}/role/${t}`},query(t={},e){return`${e?"/"+e:".."}/roles`},Redit:"role/edit/:uniqueId",Rcreate:"role/new",Rsingle:"role/:uniqueId",Rquery:"roles"};Fr.definition={rpc:{query:{}},name:"role",features:{},messages:{roleNeedsOneCapability:{en:"Role atleast needs one capability to be selected."}},gormMap:{},fields:[{name:"name",type:"string",validate:"required,omitempty,min=1,max=200",computedType:"string",gormMap:{}},{name:"capabilities",type:"collection",target:"CapabilityEntity",module:"fireback",computedType:"CapabilityEntity[]",gormMap:{}}],description:"Manage roles within the workspaces, or root configuration"};Fr.Fields={...Vt.Fields,name:"name",capabilitiesListId:"capabilitiesListId",capabilities$:"capabilities",capabilities:hb.Fields};class t3 extends Vt{constructor(...e){super(...e),this.children=void 0,this.title=void 0,this.description=void 0,this.slug=void 0,this.role=void 0,this.roleId=void 0}}t3.Navigation={edit(t,e){return`${e?"/"+e:".."}/workspace-type/edit/${t}`},create(t){return`${t?"/"+t:".."}/workspace-type/new`},single(t,e){return`${e?"/"+e:".."}/workspace-type/${t}`},query(t={},e){return`${e?"/"+e:".."}/workspace-types`},Redit:"workspace-type/edit/:uniqueId",Rcreate:"workspace-type/new",Rsingle:"workspace-type/:uniqueId",Rquery:"workspace-types"};t3.definition={rpc:{query:{}},permRewrite:{replace:"root.modules",with:"root.manage"},name:"workspaceType",features:{mock:!1,msync:!1},security:{writeOnRoot:!0,readOnRoot:!0},messages:{cannotCreateWorkspaceType:{en:"You cannot create workspace type due to some validation errors."},cannotModifyWorkspaceType:{en:"You cannot modify workspace type due to some validation errors."},onlyRootRoleIsAccepted:{en:"You can only select a role which is created or belong to 'root' workspace."},roleIsNecessary:{en:"Role needs to be defined and exist."},roleIsNotAccessible:{en:"Role is not accessible unfortunately. Make sure you the role chose exists."},roleNeedsToHaveCapabilities:{en:"Role needs to have at least one capability before could be assigned."}},gormMap:{},fields:[{name:"title",type:"string",validate:"required,omitempty,min=1,max=250",translate:!0,computedType:"string",gormMap:{}},{name:"description",type:"string",translate:!0,computedType:"string",gormMap:{}},{name:"slug",type:"string",validate:"required,omitempty,min=2,max=50",computedType:"string",gormMap:{}},{name:"role",description:"The role which will be used to define the functionality of this workspace, Role needs to be created before hand, and only roles which belong to root workspace are possible to be selected",type:"one",target:"RoleEntity",validate:"required",computedType:"RoleEntity",gormMap:{}}],cliName:"type",description:"Defines a type for workspace, and the role which it can have as a whole. In systems with multiple types of services, e.g. student, teachers, schools this is useful to set those default types and limit the access of the users."};t3.Fields={...Vt.Fields,title:"title",description:"description",slug:"slug",roleId:"roleId",role$:"role",role:Fr.Fields};class Py extends Vt{constructor(...e){super(...e),this.children=void 0,this.description=void 0,this.name=void 0,this.type=void 0,this.typeId=void 0}}Py.Navigation={edit(t,e){return`${e?"/"+e:".."}/workspace/edit/${t}`},create(t){return`${t?"/"+t:".."}/workspace/new`},single(t,e){return`${e?"/"+e:".."}/workspace/${t}`},query(t={},e){return`${e?"/"+e:".."}/workspaces`},Redit:"workspace/edit/:uniqueId",Rcreate:"workspace/new",Rsingle:"workspace/:uniqueId",Rquery:"workspaces"};Py.definition={rpc:{query:{}},permRewrite:{replace:"root.modules",with:"root.manage"},name:"workspace",features:{},security:{writeOnRoot:!0,readOnRoot:!0},gormMap:{},fields:[{name:"description",type:"string",computedType:"string",gormMap:{}},{name:"name",type:"string",validate:"required",computedType:"string",gormMap:{}},{name:"type",type:"one",target:"WorkspaceTypeEntity",validate:"required",computedType:"WorkspaceTypeEntity",gormMap:{}}],cliName:"ws",description:"Fireback general user role, workspaces services.",cte:!0};Py.Fields={...Vt.Fields,description:"description",name:"name",typeId:"typeId",type$:"type",type:t3.Fields};class py extends Vt{constructor(...e){super(...e),this.children=void 0,this.user=void 0,this.workspace=void 0,this.userPermissions=void 0,this.rolePermission=void 0,this.workspacePermissions=void 0}}py.Navigation={edit(t,e){return`${e?"/"+e:".."}/user-workspace/edit/${t}`},create(t){return`${t?"/"+t:".."}/user-workspace/new`},single(t,e){return`${e?"/"+e:".."}/user-workspace/${t}`},query(t={},e){return`${e?"/"+e:".."}/user-workspaces`},Redit:"user-workspace/edit/:uniqueId",Rcreate:"user-workspace/new",Rsingle:"user-workspace/:uniqueId",Rquery:"user-workspaces"};py.definition={rpc:{query:{}},permRewrite:{replace:"root.modules",with:"root.manage"},name:"userWorkspace",features:{},security:{resolveStrategy:"user"},gormMap:{workspaceId:"index:userworkspace_idx,unique",userId:"index:userworkspace_idx,unique"},fields:[{name:"user",type:"one",target:"UserEntity",computedType:"UserEntity",gormMap:{}},{name:"workspace",type:"one",target:"WorkspaceEntity",computedType:"WorkspaceEntity",gormMap:{}},{name:"userPermissions",type:"slice",primitive:"string",computedType:"string[]",gorm:"-",gormMap:{},sql:"-"},{name:"rolePermission",type:"slice",primitive:"UserRoleWorkspaceDto",computedType:"unknown[]",gorm:"-",gormMap:{},sql:"-"},{name:"workspacePermissions",type:"slice",primitive:"string",computedType:"string[]",gorm:"-",gormMap:{},sql:"-"}],cliShort:"user",description:"Manage the workspaces that user belongs to (either its himselves or adding by invitation)"};py.Fields={...Vt.Fields,user$:"user",user:pm.Fields,workspace$:"workspace",workspace:Py.Fields,userPermissions:"userPermissions",rolePermission:"rolePermission",workspacePermissions:"workspacePermissions"};function Nu(t,e){const n={};for(const[r,i]of Object.entries(e))typeof i=="string"?n[r]=`${t}.${i}`:typeof i=="object"&&i!==null&&(n[r]=i);return n}function cr(t,e){if(!{}.hasOwnProperty.call(t,e))throw new TypeError("attempted to use private field on non-instance");return t}var HV=0;function Em(t){return"__private_"+HV+++"_"+t}var fl=Em("passport"),Oh=Em("token"),Th=Em("exchangeKey"),dl=Em("userWorkspaces"),hl=Em("user"),_h=Em("userId"),a$=Em("isJsonAppliable");class Nn{get passport(){return cr(this,fl)[fl]}set passport(e){e instanceof N1?cr(this,fl)[fl]=e:cr(this,fl)[fl]=new N1(e)}setPassport(e){return this.passport=e,this}get token(){return cr(this,Oh)[Oh]}set token(e){cr(this,Oh)[Oh]=String(e)}setToken(e){return this.token=e,this}get exchangeKey(){return cr(this,Th)[Th]}set exchangeKey(e){cr(this,Th)[Th]=String(e)}setExchangeKey(e){return this.exchangeKey=e,this}get userWorkspaces(){return cr(this,dl)[dl]}set userWorkspaces(e){Array.isArray(e)&&(e.length>0&&e[0]instanceof py?cr(this,dl)[dl]=e:cr(this,dl)[dl]=e.map(n=>new py(n)))}setUserWorkspaces(e){return this.userWorkspaces=e,this}get user(){return cr(this,hl)[hl]}set user(e){e instanceof pm?cr(this,hl)[hl]=e:cr(this,hl)[hl]=new pm(e)}setUser(e){return this.user=e,this}get userId(){return cr(this,_h)[_h]}set userId(e){const n=typeof e=="string"||e===void 0||e===null;cr(this,_h)[_h]=n?e:String(e)}setUserId(e){return this.userId=e,this}constructor(e=void 0){if(Object.defineProperty(this,a$,{value:zV}),Object.defineProperty(this,fl,{writable:!0,value:void 0}),Object.defineProperty(this,Oh,{writable:!0,value:""}),Object.defineProperty(this,Th,{writable:!0,value:""}),Object.defineProperty(this,dl,{writable:!0,value:[]}),Object.defineProperty(this,hl,{writable:!0,value:void 0}),Object.defineProperty(this,_h,{writable:!0,value:void 0}),e!=null)if(typeof e=="string")this.applyFromObject(JSON.parse(e));else if(cr(this,a$)[a$](e))this.applyFromObject(e);else throw new Error("Instance cannot be created on an unknown value, check the content being passed. got: "+typeof e)}applyFromObject(e={}){const n=e;n.passport!==void 0&&(this.passport=n.passport),n.token!==void 0&&(this.token=n.token),n.exchangeKey!==void 0&&(this.exchangeKey=n.exchangeKey),n.userWorkspaces!==void 0&&(this.userWorkspaces=n.userWorkspaces),n.user!==void 0&&(this.user=n.user),n.userId!==void 0&&(this.userId=n.userId)}toJSON(){return{passport:cr(this,fl)[fl],token:cr(this,Oh)[Oh],exchangeKey:cr(this,Th)[Th],userWorkspaces:cr(this,dl)[dl],user:cr(this,hl)[hl],userId:cr(this,_h)[_h]}}toString(){return JSON.stringify(this)}static get Fields(){return{passport:"passport",token:"token",exchangeKey:"exchangeKey",userWorkspaces$:"userWorkspaces",get userWorkspaces(){return Nu("userWorkspaces[:i]",py.Fields)},user:"user",userId:"userId"}}static from(e){return new Nn(e)}static with(e){return new Nn(e)}copyWith(e){return new Nn({...this.toJSON(),...e})}clone(){return new Nn(this.toJSON())}}function zV(t){const e=globalThis,n=typeof e.Buffer<"u"&&typeof e.Buffer.isBuffer=="function"&&e.Buffer.isBuffer(t),r=typeof e.Blob<"u"&&t instanceof e.Blob;return t&&typeof t=="object"&&!Array.isArray(t)&&!n&&!(t instanceof ArrayBuffer)&&!r}class Ar extends Vt{constructor(...e){super(...e),this.children=void 0,this.publicKey=void 0,this.coverLetter=void 0,this.targetUserLocale=void 0,this.email=void 0,this.phonenumber=void 0,this.workspace=void 0,this.firstName=void 0,this.lastName=void 0,this.forceEmailAddress=void 0,this.forcePhoneNumber=void 0,this.role=void 0,this.roleId=void 0}}Ar.Navigation={edit(t,e){return`${e?"/"+e:".."}/workspace-invite/edit/${t}`},create(t){return`${t?"/"+t:".."}/workspace-invite/new`},single(t,e){return`${e?"/"+e:".."}/workspace-invite/${t}`},query(t={},e){return`${e?"/"+e:".."}/workspace-invites`},Redit:"workspace-invite/edit/:uniqueId",Rcreate:"workspace-invite/new",Rsingle:"workspace-invite/:uniqueId",Rquery:"workspace-invites"};Ar.definition={rpc:{query:{}},name:"workspaceInvite",features:{},gormMap:{},fields:[{name:"publicKey",description:"A long hash to get the user into the confirm or signup page without sending the email or phone number, for example if an administrator wants to copy the link.",type:"string",computedType:"string",gormMap:{}},{name:"coverLetter",description:"The content that user will receive to understand the reason of the letter.",type:"string",computedType:"string",gormMap:{}},{name:"targetUserLocale",description:"If the invited person has a different language, then you can define that so the interface for him will be automatically translated.",type:"string",computedType:"string",gormMap:{}},{name:"email",description:"The email address of the person which is invited.",type:"string",computedType:"string",gormMap:{}},{name:"phonenumber",description:"The phone number of the person which is invited.",type:"string",computedType:"string",gormMap:{}},{name:"workspace",description:"Workspace which user is being invite to.",type:"one",target:"WorkspaceEntity",computedType:"WorkspaceEntity",gormMap:{}},{name:"firstName",description:"First name of the person which is invited",type:"string",validate:"required",computedType:"string",gormMap:{}},{name:"lastName",description:"Last name of the person which is invited.",type:"string",validate:"required",computedType:"string",gormMap:{}},{name:"forceEmailAddress",description:"If forced, the email address cannot be changed by the user which has been invited.",type:"bool?",computedType:"boolean",gormMap:{}},{name:"forcePhoneNumber",description:"If forced, user cannot change the phone number and needs to complete signup.",type:"bool?",computedType:"boolean",gormMap:{}},{name:"role",description:"The role which invitee get if they accept the request.",type:"one",target:"RoleEntity",validate:"required",computedType:"RoleEntity",gormMap:{}}],cliShort:"invite",description:"Active invitations for non-users or already users to join an specific workspace, created by administration of the workspace"};Ar.Fields={...Vt.Fields,publicKey:"publicKey",coverLetter:"coverLetter",targetUserLocale:"targetUserLocale",email:"email",phonenumber:"phonenumber",workspace$:"workspace",workspace:Py.Fields,firstName:"firstName",lastName:"lastName",forceEmailAddress:"forceEmailAddress",forcePhoneNumber:"forcePhoneNumber",roleId:"roleId",role$:"role",role:Fr.Fields};var pA,mA,gA,yA,vA,bA,wA,SA,CA,$A,EA,xA,OA,TA,_A,AA,RA,PA,IA,NA,pn;function $u(t,e,n,r,i){var o={};return Object.keys(r).forEach(function(u){o[u]=r[u]}),o.enumerable=!!o.enumerable,o.configurable=!!o.configurable,("value"in o||o.initializer)&&(o.writable=!0),o=n.slice().reverse().reduce(function(u,l){return l(t,e,u)||u},o),i&&o.initializer!==void 0&&(o.value=o.initializer?o.initializer.call(i):void 0,o.initializer=void 0),o.initializer===void 0?(Object.defineProperty(t,e,o),null):o}const D0={data:{item:{user:{firstName:"Ali",lastName:"Torabi"},exchangeKey:"key1",token:"token"}}};let VV=(pA=ft("passport/authorizeOs"),mA=dt("post"),gA=ft("users/invitations"),yA=dt("get"),vA=ft("passports/signin/classic"),bA=dt("post"),wA=ft("passport/request-reset-mail-password"),SA=dt("post"),CA=ft("passports/available-methods"),$A=dt("get"),EA=ft("workspace/passport/check"),xA=dt("post"),OA=ft("passports/signup/classic"),TA=dt("post"),_A=ft("passport/totp/confirm"),AA=dt("post"),RA=ft("workspace/passport/otp"),PA=dt("post"),IA=ft("workspace/public/types"),NA=dt("get"),pn=class{async passportAuthroizeOs(e){return D0}async getUserInvites(e){return Bq}async postSigninClassic(e){return D0}async postRequestResetMail(e){return D0}async getAvailableMethods(e){return{data:{item:{email:!0,enabledRecaptcha2:!1,google:null,phone:!0,recaptcha2ClientKey:"6LeIxAcTAAAAAJcZVRqyHh71UMIEGNQ_MXjiZKhI"}}}}async postWorkspacePassportCheck(e){var r;return((r=e==null?void 0:e.body)==null?void 0:r.value.includes("@"))?{data:{item:{next:["otp","create-with-password"],flags:["enable-totp","force-totp"],otpInfo:null}}}:{data:{item:{next:["otp"],flags:["enable-totp","force-totp"],otpInfo:null}}}}async postPassportSignupClassic(e){var n;return(n=e==null?void 0:e.body)==null||n.value.includes("@"),{data:{item:{session:null,totpUrl:"otpauth://totp/Fireback:ali@ali.com?algorithm=SHA1&digits=6&issuer=Fireback&period=30&secret=R2AQ4NPS7FKECL3ZVTF3JMTLBYGDAAVU",continueToTotp:!0,forcedTotp:!0}}}}async postConfirm(e){return{data:{item:{session:D0.data}}}}async postOtp(e){return{data:{item:{session:D0.data}}}}async getWorkspaceTypes(e){return{data:{items:[{description:null,slug:"customer",title:"customer",uniqueId:"nG012z7VNyYKMJPqWjV04"}],itemsPerPage:20,startIndex:0,totalItems:2}}}},$u(pn.prototype,"passportAuthroizeOs",[pA,mA],Object.getOwnPropertyDescriptor(pn.prototype,"passportAuthroizeOs"),pn.prototype),$u(pn.prototype,"getUserInvites",[gA,yA],Object.getOwnPropertyDescriptor(pn.prototype,"getUserInvites"),pn.prototype),$u(pn.prototype,"postSigninClassic",[vA,bA],Object.getOwnPropertyDescriptor(pn.prototype,"postSigninClassic"),pn.prototype),$u(pn.prototype,"postRequestResetMail",[wA,SA],Object.getOwnPropertyDescriptor(pn.prototype,"postRequestResetMail"),pn.prototype),$u(pn.prototype,"getAvailableMethods",[CA,$A],Object.getOwnPropertyDescriptor(pn.prototype,"getAvailableMethods"),pn.prototype),$u(pn.prototype,"postWorkspacePassportCheck",[EA,xA],Object.getOwnPropertyDescriptor(pn.prototype,"postWorkspacePassportCheck"),pn.prototype),$u(pn.prototype,"postPassportSignupClassic",[OA,TA],Object.getOwnPropertyDescriptor(pn.prototype,"postPassportSignupClassic"),pn.prototype),$u(pn.prototype,"postConfirm",[_A,AA],Object.getOwnPropertyDescriptor(pn.prototype,"postConfirm"),pn.prototype),$u(pn.prototype,"postOtp",[RA,PA],Object.getOwnPropertyDescriptor(pn.prototype,"postOtp"),pn.prototype),$u(pn.prototype,"getWorkspaceTypes",[IA,NA],Object.getOwnPropertyDescriptor(pn.prototype,"getWorkspaceTypes"),pn.prototype),pn);class pT extends Vt{constructor(...e){super(...e),this.children=void 0,this.name=void 0,this.operationId=void 0,this.diskPath=void 0,this.size=void 0,this.virtualPath=void 0,this.type=void 0,this.variations=void 0}}pT.Navigation={edit(t,e){return`${e?"/"+e:".."}/file/edit/${t}`},create(t){return`${t?"/"+t:".."}/file/new`},single(t,e){return`${e?"/"+e:".."}/file/${t}`},query(t={},e){return`${e?"/"+e:".."}/files`},Redit:"file/edit/:uniqueId",Rcreate:"file/new",Rsingle:"file/:uniqueId",Rquery:"files",rVariationsCreate:"file/:linkerId/variations/new",rVariationsEdit:"file/:linkerId/variations/edit/:uniqueId",editVariations(t,e,n){return`${n?"/"+n:""}/file/${t}/variations/edit/${e}`},createVariations(t,e){return`${e?"/"+e:""}/file/${t}/variations/new`}};pT.definition={rpc:{query:{}},permRewrite:{replace:"root.modules",with:"root.manage"},name:"file",features:{},gormMap:{},fields:[{name:"name",type:"string",computedType:"string",gormMap:{}},{name:"operationId",description:"For each upload, we need to assign a operation id, so if the operation has been cancelled, it would be cleared automatically, and there won't be orphant files in the database.",type:"string",computedType:"string",gormMap:{}},{name:"diskPath",type:"string",computedType:"string",gormMap:{}},{name:"size",type:"int64",computedType:"number",gormMap:{}},{name:"virtualPath",type:"string",computedType:"string",gormMap:{}},{name:"type",type:"string",computedType:"string",gormMap:{}},{name:"variations",type:"array",computedType:"FileVariations[]",gormMap:{},"-":"FileVariations",fields:[{name:"name",type:"string",computedType:"string",gormMap:{}}],linkedTo:"FileEntity"}],description:"Tus file uploading reference of the content. Every files being uploaded using tus will be stored in this table."};pT.Fields={...Vt.Fields,name:"name",operationId:"operationId",diskPath:"diskPath",size:"size",virtualPath:"virtualPath",type:"type",variations$:"variations",variationsAt:t=>({$:`variations[${t}]`,...Vt.Fields,name:`variations[${t}].name`})};function fN(t){var e,n,r="";if(typeof t=="string"||typeof t=="number")r+=t;else if(typeof t=="object")if(Array.isArray(t))for(e=0;etypeof t=="number"&&!isNaN(t),mm=t=>typeof t=="string",Ra=t=>typeof t=="function",Jw=t=>mm(t)||Ra(t)?t:null,o$=t=>T.isValidElement(t)||mm(t)||Ra(t)||d1(t);function GV(t,e,n){n===void 0&&(n=300);const{scrollHeight:r,style:i}=t;requestAnimationFrame(()=>{i.minHeight="initial",i.height=r+"px",i.transition=`all ${n}ms`,requestAnimationFrame(()=>{i.height="0",i.padding="0",i.margin="0",setTimeout(e,n)})})}function n3(t){let{enter:e,exit:n,appendPosition:r=!1,collapse:i=!0,collapseDuration:o=300}=t;return function(u){let{children:l,position:d,preventExitTransition:h,done:g,nodeRef:y,isIn:w}=u;const b=r?`${e}--${d}`:e,C=r?`${n}--${d}`:n,E=T.useRef(0);return T.useLayoutEffect(()=>{const $=y.current,O=b.split(" "),_=P=>{P.target===y.current&&($.dispatchEvent(new Event("d")),$.removeEventListener("animationend",_),$.removeEventListener("animationcancel",_),E.current===0&&P.type!=="animationcancel"&&$.classList.remove(...O))};$.classList.add(...O),$.addEventListener("animationend",_),$.addEventListener("animationcancel",_)},[]),T.useEffect(()=>{const $=y.current,O=()=>{$.removeEventListener("animationend",O),i?GV($,g,o):g()};w||(h?O():(E.current=1,$.className+=` ${C}`,$.addEventListener("animationend",O)))},[w]),Ae.createElement(Ae.Fragment,null,l)}}function MA(t,e){return t!=null?{content:t.content,containerId:t.props.containerId,id:t.props.toastId,theme:t.props.theme,type:t.props.type,data:t.props.data||{},isLoading:t.props.isLoading,icon:t.props.icon,status:e}:{}}const Bo={list:new Map,emitQueue:new Map,on(t,e){return this.list.has(t)||this.list.set(t,[]),this.list.get(t).push(e),this},off(t,e){if(e){const n=this.list.get(t).filter(r=>r!==e);return this.list.set(t,n),this}return this.list.delete(t),this},cancelEmit(t){const e=this.emitQueue.get(t);return e&&(e.forEach(clearTimeout),this.emitQueue.delete(t)),this},emit(t){this.list.has(t)&&this.list.get(t).forEach(e=>{const n=setTimeout(()=>{e(...[].slice.call(arguments,1))},0);this.emitQueue.has(t)||this.emitQueue.set(t,[]),this.emitQueue.get(t).push(n)})}},Ew=t=>{let{theme:e,type:n,...r}=t;return Ae.createElement("svg",{viewBox:"0 0 24 24",width:"100%",height:"100%",fill:e==="colored"?"currentColor":`var(--toastify-icon-color-${n})`,...r})},s$={info:function(t){return Ae.createElement(Ew,{...t},Ae.createElement("path",{d:"M12 0a12 12 0 1012 12A12.013 12.013 0 0012 0zm.25 5a1.5 1.5 0 11-1.5 1.5 1.5 1.5 0 011.5-1.5zm2.25 13.5h-4a1 1 0 010-2h.75a.25.25 0 00.25-.25v-4.5a.25.25 0 00-.25-.25h-.75a1 1 0 010-2h1a2 2 0 012 2v4.75a.25.25 0 00.25.25h.75a1 1 0 110 2z"}))},warning:function(t){return Ae.createElement(Ew,{...t},Ae.createElement("path",{d:"M23.32 17.191L15.438 2.184C14.728.833 13.416 0 11.996 0c-1.42 0-2.733.833-3.443 2.184L.533 17.448a4.744 4.744 0 000 4.368C1.243 23.167 2.555 24 3.975 24h16.05C22.22 24 24 22.044 24 19.632c0-.904-.251-1.746-.68-2.44zm-9.622 1.46c0 1.033-.724 1.823-1.698 1.823s-1.698-.79-1.698-1.822v-.043c0-1.028.724-1.822 1.698-1.822s1.698.79 1.698 1.822v.043zm.039-12.285l-.84 8.06c-.057.581-.408.943-.897.943-.49 0-.84-.367-.896-.942l-.84-8.065c-.057-.624.25-1.095.779-1.095h1.91c.528.005.84.476.784 1.1z"}))},success:function(t){return Ae.createElement(Ew,{...t},Ae.createElement("path",{d:"M12 0a12 12 0 1012 12A12.014 12.014 0 0012 0zm6.927 8.2l-6.845 9.289a1.011 1.011 0 01-1.43.188l-4.888-3.908a1 1 0 111.25-1.562l4.076 3.261 6.227-8.451a1 1 0 111.61 1.183z"}))},error:function(t){return Ae.createElement(Ew,{...t},Ae.createElement("path",{d:"M11.983 0a12.206 12.206 0 00-8.51 3.653A11.8 11.8 0 000 12.207 11.779 11.779 0 0011.8 24h.214A12.111 12.111 0 0024 11.791 11.766 11.766 0 0011.983 0zM10.5 16.542a1.476 1.476 0 011.449-1.53h.027a1.527 1.527 0 011.523 1.47 1.475 1.475 0 01-1.449 1.53h-.027a1.529 1.529 0 01-1.523-1.47zM11 12.5v-6a1 1 0 012 0v6a1 1 0 11-2 0z"}))},spinner:function(){return Ae.createElement("div",{className:"Toastify__spinner"})}};function WV(t){const[,e]=T.useReducer(b=>b+1,0),[n,r]=T.useState([]),i=T.useRef(null),o=T.useRef(new Map).current,u=b=>n.indexOf(b)!==-1,l=T.useRef({toastKey:1,displayedToast:0,count:0,queue:[],props:t,containerId:null,isToastActive:u,getToast:b=>o.get(b)}).current;function d(b){let{containerId:C}=b;const{limit:E}=l.props;!E||C&&l.containerId!==C||(l.count-=l.queue.length,l.queue=[])}function h(b){r(C=>b==null?[]:C.filter(E=>E!==b))}function g(){const{toastContent:b,toastProps:C,staleId:E}=l.queue.shift();w(b,C,E)}function y(b,C){let{delay:E,staleId:$,...O}=C;if(!o$(b)||(function(me){return!i.current||l.props.enableMultiContainer&&me.containerId!==l.props.containerId||o.has(me.toastId)&&me.updateId==null})(O))return;const{toastId:_,updateId:P,data:k}=O,{props:R}=l,L=()=>h(_),F=P==null;F&&l.count++;const q={...R,style:R.toastStyle,key:l.toastKey++,...Object.fromEntries(Object.entries(O).filter(me=>{let[te,be]=me;return be!=null})),toastId:_,updateId:P,data:k,closeToast:L,isIn:!1,className:Jw(O.className||R.toastClassName),bodyClassName:Jw(O.bodyClassName||R.bodyClassName),progressClassName:Jw(O.progressClassName||R.progressClassName),autoClose:!O.isLoading&&(Y=O.autoClose,Q=R.autoClose,Y===!1||d1(Y)&&Y>0?Y:Q),deleteToast(){const me=MA(o.get(_),"removed");o.delete(_),Bo.emit(4,me);const te=l.queue.length;if(l.count=_==null?l.count-l.displayedToast:l.count-1,l.count<0&&(l.count=0),te>0){const be=_==null?l.props.limit:1;if(te===1||be===1)l.displayedToast++,g();else{const Se=be>te?te:be;l.displayedToast=Se;for(let j=0;jie in s$)(be)&&(V=s$[be](H))),V})(q),Ra(O.onOpen)&&(q.onOpen=O.onOpen),Ra(O.onClose)&&(q.onClose=O.onClose),q.closeButton=R.closeButton,O.closeButton===!1||o$(O.closeButton)?q.closeButton=O.closeButton:O.closeButton===!0&&(q.closeButton=!o$(R.closeButton)||R.closeButton);let ue=b;T.isValidElement(b)&&!mm(b.type)?ue=T.cloneElement(b,{closeToast:L,toastProps:q,data:k}):Ra(b)&&(ue=b({closeToast:L,toastProps:q,data:k})),R.limit&&R.limit>0&&l.count>R.limit&&F?l.queue.push({toastContent:ue,toastProps:q,staleId:$}):d1(E)?setTimeout(()=>{w(ue,q,$)},E):w(ue,q,$)}function w(b,C,E){const{toastId:$}=C;E&&o.delete(E);const O={content:b,props:C};o.set($,O),r(_=>[..._,$].filter(P=>P!==E)),Bo.emit(4,MA(O,O.props.updateId==null?"added":"updated"))}return T.useEffect(()=>(l.containerId=t.containerId,Bo.cancelEmit(3).on(0,y).on(1,b=>i.current&&h(b)).on(5,d).emit(2,l),()=>{o.clear(),Bo.emit(3,l)}),[]),T.useEffect(()=>{l.props=t,l.isToastActive=u,l.displayedToast=n.length}),{getToastToRender:function(b){const C=new Map,E=Array.from(o.values());return t.newestOnTop&&E.reverse(),E.forEach($=>{const{position:O}=$.props;C.has(O)||C.set(O,[]),C.get(O).push($)}),Array.from(C,$=>b($[0],$[1]))},containerRef:i,isToastActive:u}}function kA(t){return t.targetTouches&&t.targetTouches.length>=1?t.targetTouches[0].clientX:t.clientX}function DA(t){return t.targetTouches&&t.targetTouches.length>=1?t.targetTouches[0].clientY:t.clientY}function KV(t){const[e,n]=T.useState(!1),[r,i]=T.useState(!1),o=T.useRef(null),u=T.useRef({start:0,x:0,y:0,delta:0,removalDistance:0,canCloseOnClick:!0,canDrag:!1,boundingRect:null,didMove:!1}).current,l=T.useRef(t),{autoClose:d,pauseOnHover:h,closeToast:g,onClick:y,closeOnClick:w}=t;function b(k){if(t.draggable){k.nativeEvent.type==="touchstart"&&k.nativeEvent.preventDefault(),u.didMove=!1,document.addEventListener("mousemove",O),document.addEventListener("mouseup",_),document.addEventListener("touchmove",O),document.addEventListener("touchend",_);const R=o.current;u.canCloseOnClick=!0,u.canDrag=!0,u.boundingRect=R.getBoundingClientRect(),R.style.transition="",u.x=kA(k.nativeEvent),u.y=DA(k.nativeEvent),t.draggableDirection==="x"?(u.start=u.x,u.removalDistance=R.offsetWidth*(t.draggablePercent/100)):(u.start=u.y,u.removalDistance=R.offsetHeight*(t.draggablePercent===80?1.5*t.draggablePercent:t.draggablePercent/100))}}function C(k){if(u.boundingRect){const{top:R,bottom:L,left:F,right:q}=u.boundingRect;k.nativeEvent.type!=="touchend"&&t.pauseOnHover&&u.x>=F&&u.x<=q&&u.y>=R&&u.y<=L?$():E()}}function E(){n(!0)}function $(){n(!1)}function O(k){const R=o.current;u.canDrag&&R&&(u.didMove=!0,e&&$(),u.x=kA(k),u.y=DA(k),u.delta=t.draggableDirection==="x"?u.x-u.start:u.y-u.start,u.start!==u.x&&(u.canCloseOnClick=!1),R.style.transform=`translate${t.draggableDirection}(${u.delta}px)`,R.style.opacity=""+(1-Math.abs(u.delta/u.removalDistance)))}function _(){document.removeEventListener("mousemove",O),document.removeEventListener("mouseup",_),document.removeEventListener("touchmove",O),document.removeEventListener("touchend",_);const k=o.current;if(u.canDrag&&u.didMove&&k){if(u.canDrag=!1,Math.abs(u.delta)>u.removalDistance)return i(!0),void t.closeToast();k.style.transition="transform 0.2s, opacity 0.2s",k.style.transform=`translate${t.draggableDirection}(0)`,k.style.opacity="1"}}T.useEffect(()=>{l.current=t}),T.useEffect(()=>(o.current&&o.current.addEventListener("d",E,{once:!0}),Ra(t.onOpen)&&t.onOpen(T.isValidElement(t.children)&&t.children.props),()=>{const k=l.current;Ra(k.onClose)&&k.onClose(T.isValidElement(k.children)&&k.children.props)}),[]),T.useEffect(()=>(t.pauseOnFocusLoss&&(document.hasFocus()||$(),window.addEventListener("focus",E),window.addEventListener("blur",$)),()=>{t.pauseOnFocusLoss&&(window.removeEventListener("focus",E),window.removeEventListener("blur",$))}),[t.pauseOnFocusLoss]);const P={onMouseDown:b,onTouchStart:b,onMouseUp:C,onTouchEnd:C};return d&&h&&(P.onMouseEnter=$,P.onMouseLeave=E),w&&(P.onClick=k=>{y&&y(k),u.canCloseOnClick&&g()}),{playToast:E,pauseToast:$,isRunning:e,preventExitTransition:r,toastRef:o,eventHandlers:P}}function dN(t){let{closeToast:e,theme:n,ariaLabel:r="close"}=t;return Ae.createElement("button",{className:`Toastify__close-button Toastify__close-button--${n}`,type:"button",onClick:i=>{i.stopPropagation(),e(i)},"aria-label":r},Ae.createElement("svg",{"aria-hidden":"true",viewBox:"0 0 14 16"},Ae.createElement("path",{fillRule:"evenodd",d:"M7.71 8.23l3.75 3.75-1.48 1.48-3.75-3.75-3.75 3.75L1 11.98l3.75-3.75L1 4.48 2.48 3l3.75 3.75L9.98 3l1.48 1.48-3.75 3.75z"})))}function YV(t){let{delay:e,isRunning:n,closeToast:r,type:i="default",hide:o,className:u,style:l,controlledProgress:d,progress:h,rtl:g,isIn:y,theme:w}=t;const b=o||d&&h===0,C={...l,animationDuration:`${e}ms`,animationPlayState:n?"running":"paused",opacity:b?0:1};d&&(C.transform=`scaleX(${h})`);const E=Df("Toastify__progress-bar",d?"Toastify__progress-bar--controlled":"Toastify__progress-bar--animated",`Toastify__progress-bar-theme--${w}`,`Toastify__progress-bar--${i}`,{"Toastify__progress-bar--rtl":g}),$=Ra(u)?u({rtl:g,type:i,defaultClassName:E}):Df(E,u);return Ae.createElement("div",{role:"progressbar","aria-hidden":b?"true":"false","aria-label":"notification timer",className:$,style:C,[d&&h>=1?"onTransitionEnd":"onAnimationEnd"]:d&&h<1?null:()=>{y&&r()}})}const JV=t=>{const{isRunning:e,preventExitTransition:n,toastRef:r,eventHandlers:i}=KV(t),{closeButton:o,children:u,autoClose:l,onClick:d,type:h,hideProgressBar:g,closeToast:y,transition:w,position:b,className:C,style:E,bodyClassName:$,bodyStyle:O,progressClassName:_,progressStyle:P,updateId:k,role:R,progress:L,rtl:F,toastId:q,deleteToast:Y,isIn:Q,isLoading:ue,iconOut:me,closeOnClick:te,theme:be}=t,Se=Df("Toastify__toast",`Toastify__toast-theme--${be}`,`Toastify__toast--${h}`,{"Toastify__toast--rtl":F},{"Toastify__toast--close-on-click":te}),j=Ra(C)?C({rtl:F,position:b,type:h,defaultClassName:Se}):Df(Se,C),V=!!L||!l,H={closeToast:y,type:h,theme:be};let ie=null;return o===!1||(ie=Ra(o)?o(H):T.isValidElement(o)?T.cloneElement(o,H):dN(H)),Ae.createElement(w,{isIn:Q,done:Y,position:b,preventExitTransition:n,nodeRef:r},Ae.createElement("div",{id:q,onClick:d,className:j,...i,style:E,ref:r},Ae.createElement("div",{...Q&&{role:R},className:Ra($)?$({type:h}):Df("Toastify__toast-body",$),style:O},me!=null&&Ae.createElement("div",{className:Df("Toastify__toast-icon",{"Toastify--animate-icon Toastify__zoom-enter":!ue})},me),Ae.createElement("div",null,u)),ie,Ae.createElement(YV,{...k&&!V?{key:`pb-${k}`}:{},rtl:F,theme:be,delay:l,isRunning:e,isIn:Q,closeToast:y,hide:g,type:h,style:P,className:_,controlledProgress:V,progress:L||0})))},r3=function(t,e){return e===void 0&&(e=!1),{enter:`Toastify--animate Toastify__${t}-enter`,exit:`Toastify--animate Toastify__${t}-exit`,appendPosition:e}},QV=n3(r3("bounce",!0));n3(r3("slide",!0));n3(r3("zoom"));n3(r3("flip"));const FA=T.forwardRef((t,e)=>{const{getToastToRender:n,containerRef:r,isToastActive:i}=WV(t),{className:o,style:u,rtl:l,containerId:d}=t;function h(g){const y=Df("Toastify__toast-container",`Toastify__toast-container--${g}`,{"Toastify__toast-container--rtl":l});return Ra(o)?o({position:g,rtl:l,defaultClassName:y}):Df(y,Jw(o))}return T.useEffect(()=>{e&&(e.current=r.current)},[]),Ae.createElement("div",{ref:r,className:"Toastify",id:d},n((g,y)=>{const w=y.length?{...u}:{...u,pointerEvents:"none"};return Ae.createElement("div",{className:h(g),style:w,key:`container-${g}`},y.map((b,C)=>{let{content:E,props:$}=b;return Ae.createElement(JV,{...$,isIn:i($.toastId),style:{...$.style,"--nth":C+1,"--len":y.length},key:`toast-${$.key}`},E)}))}))});FA.displayName="ToastContainer",FA.defaultProps={position:"top-right",transition:QV,autoClose:5e3,closeButton:dN,pauseOnHover:!0,pauseOnFocusLoss:!0,closeOnClick:!0,draggable:!0,draggablePercent:80,draggableDirection:"x",role:"alert",theme:"light"};let u$,jp=new Map,a1=[],XV=1;function hN(){return""+XV++}function ZV(t){return t&&(mm(t.toastId)||d1(t.toastId))?t.toastId:hN()}function h1(t,e){return jp.size>0?Bo.emit(0,t,e):a1.push({content:t,options:e}),e.toastId}function wS(t,e){return{...e,type:e&&e.type||t,toastId:ZV(e)}}function xw(t){return(e,n)=>h1(e,wS(t,n))}function Zn(t,e){return h1(t,wS("default",e))}Zn.loading=(t,e)=>h1(t,wS("default",{isLoading:!0,autoClose:!1,closeOnClick:!1,closeButton:!1,draggable:!1,...e})),Zn.promise=function(t,e,n){let r,{pending:i,error:o,success:u}=e;i&&(r=mm(i)?Zn.loading(i,n):Zn.loading(i.render,{...n,...i}));const l={isLoading:null,autoClose:null,closeOnClick:null,closeButton:null,draggable:null},d=(g,y,w)=>{if(y==null)return void Zn.dismiss(r);const b={type:g,...l,...n,data:w},C=mm(y)?{render:y}:y;return r?Zn.update(r,{...b,...C}):Zn(C.render,{...b,...C}),w},h=Ra(t)?t():t;return h.then(g=>d("success",u,g)).catch(g=>d("error",o,g)),h},Zn.success=xw("success"),Zn.info=xw("info"),Zn.error=xw("error"),Zn.warning=xw("warning"),Zn.warn=Zn.warning,Zn.dark=(t,e)=>h1(t,wS("default",{theme:"dark",...e})),Zn.dismiss=t=>{jp.size>0?Bo.emit(1,t):a1=a1.filter(e=>t!=null&&e.options.toastId!==t)},Zn.clearWaitingQueue=function(t){return t===void 0&&(t={}),Bo.emit(5,t)},Zn.isActive=t=>{let e=!1;return jp.forEach(n=>{n.isToastActive&&n.isToastActive(t)&&(e=!0)}),e},Zn.update=function(t,e){e===void 0&&(e={}),setTimeout(()=>{const n=(function(r,i){let{containerId:o}=i;const u=jp.get(o||u$);return u&&u.getToast(r)})(t,e);if(n){const{props:r,content:i}=n,o={delay:100,...r,...e,toastId:e.toastId||t,updateId:hN()};o.toastId!==t&&(o.staleId=t);const u=o.render||i;delete o.render,h1(u,o)}},0)},Zn.done=t=>{Zn.update(t,{progress:1})},Zn.onChange=t=>(Bo.on(4,t),()=>{Bo.off(4,t)}),Zn.POSITION={TOP_LEFT:"top-left",TOP_RIGHT:"top-right",TOP_CENTER:"top-center",BOTTOM_LEFT:"bottom-left",BOTTOM_RIGHT:"bottom-right",BOTTOM_CENTER:"bottom-center"},Zn.TYPE={INFO:"info",SUCCESS:"success",WARNING:"warning",ERROR:"error",DEFAULT:"default"},Bo.on(2,t=>{u$=t.containerId||t,jp.set(u$,t),a1.forEach(e=>{Bo.emit(0,e.content,e.options)}),a1=[]}).on(3,t=>{jp.delete(t.containerId||t),jp.size===0&&Bo.off(0).off(1).off(5)});let F0=null;const LA=2500;function eG(t,e){if((F0==null?void 0:F0.content)==t)return;const n=Zn(t,{hideProgressBar:!0,autoClose:LA,...e});F0={content:t,key:n},setTimeout(()=>{F0=null},LA)}const pN={onlyOnRoot:"This feature is only available for root access, please ask your administrator for more details",productName:"Fireback",orders:{archiveTitle:"Orders",discountCode:"Discount code",discountCodeHint:"Discount code",editOrder:"Edit order",invoiceNumber:"Invoice number",invoiceNumberHint:"Invoice number",items:"Items",itemsHint:"Items",newOrder:"New order",orderStatus:"Order status",orderStatusHint:"Order status",paymentStatus:"Payment status",paymentStatusHint:"Payment status",shippingAddress:"Shipping address",shippingAddressHint:"Shipping address",totalPrice:"Total price",totalPriceHint:"Total price"},shoppingCarts:{archiveTitle:"Shopping carts",editShoppingCart:"Edit shopping cart",items:"Items",itemsHint:"Items",newShoppingCart:"New shopping cart",product:"Product",productHint:"Select the product item",quantity:"Quantity",quantityHint:"How many products do you want"},discountCodes:{appliedCategories:"Applied categories",appliedCategoriesHint:"Applied categories",appliedProducts:"Applied products",appliedProductsHint:"Applied products",archiveTitle:"Discount codes",editDiscountCode:"Edit discount code",excludedCategories:"Excluded categories",excludedCategoriesHint:"Excluded categories",excludedProducts:"Excluded products",excludedProductsHint:"Excluded products",limit:"Limit",limitHint:"Limit",newDiscountCode:"New discount code",series:"Series",seriesHint:"Series",validFrom:"Valid from",validFromHint:"Valid from",validUntil:"Valid until",validUntilHint:"Valid until"},postcategories:{archiveTitle:"Post Category",editpostCategory:"Edit Post category",name:"Name",nameHint:"Name",newpostCategory:"Newpost category"},pagecategories:{archiveTitle:"Page category",editpageCategory:"Edit page category",name:"Name",nameHint:"Name",newpageCategory:"New page category"},posttags:{archiveTitle:"Post tag",editpostTag:"Edit post tag",name:"Name",nameHint:"Name",newpostTag:"New post tag"},pagetags:{archiveTitle:"Page tag",editpageTag:"Edit page tag",name:"Name",nameHint:"Name",newpageTag:"New page tag"},posts:{archiveTitle:"Posts",category:"Category",categoryHint:"Category",content:"Content",contentHint:"content",editpost:"Edit post",newpost:"New post",tags:"Tags",tagsHint:"Tags",title:"Title",titleHint:"Title"},pages:{archiveTitle:"Pages",category:"Category",categoryHint:"Page category",content:"Content",contentHint:"",editpage:"Edit page",newpage:"New page",tags:"Tags",tagsHint:"Page tags",title:"Title",titleHint:"Page title"},components:{currency:"Currency",currencyHint:"Currency type",amount:"Amount",amountHint:"Amount in numbers, separated by . for cents"},brands:{archiveTitle:"Brand",editBrand:"Edit brand",name:"Name",nameHint:"Brand's name",newBrand:"New brand"},tags:{archiveTitle:"Tags",editTag:"Edit tag",name:"Name",nameHint:"Tag name",newTag:"Name of the tag"},productsubmissions:{name:"Name",nameHint:"Name of the product",archiveTitle:"Product Inventory",brand:"Brand",brandHint:"If the product belongs to an specific brand",category:"Category",categoryHint:"Product category",description:"Description",descriptionHint:"Product description",editproductSubmission:"Edit product submission",newproductSubmission:"Newproduct submission",price:"Price",priceHint:"Set the price tag for the product",product:"Product",productHint:"Select the product type",sku:"SKU",skuHint:"SKU code for the product",tags:"Tags",tagsHint:"Product tags"},products:{archiveTitle:"product",description:"Description",descriptionHint:"Describe the product form",editproduct:"Edit product",fields:"fields",fieldsHint:"fields hint",jsonSchema:"json schema",jsonSchemaHint:"json schema hint",name:"Form name",nameHint:"Name the type of products which this form represents",newproduct:"New product",uiSchema:"ui schema",uiSchemaHint:"ui schema hint"},categories:{archiveTitle:"Categories",editCategory:"Edit category",name:"Name",nameHint:"Name of the category",newCategory:"New category",parent:"Parent category",parentHint:"This category would be under the parent category in display or search"},abac:{backToApp:"Go back to the app",email:"Email",emailAddress:"Email address",firstName:"First name",lastName:"Last name",otpOrDifferent:"Or try a different account instead",otpResetMethod:"Reset method",otpTitle:"One time password",otpTitleHint:`Login to your account via a 6-8 digit pins, which we will send by phone or email. You can change your password later in account center.`,password:"Password",remember:"Remember my credentials",signin:"Sign in",signout:"Sign out",signup:"Sign up",signupType:"Signup Type",signupTypeHint:"Select how do you want to use software",viaEmail:"Send pin via email address",viaSms:"Phone number (SMS)"},about:"About",acChecks:{moduleName:"Checks"},acbankbranches:{acBankBranchArchiveTitle:"Bank Branches",bank:"Bank",bankHint:"The bank that this branch belongs to",bankId:"Bank",city:"City",cityHint:"City that this bank branch is located",cityId:"City",editAcBank:"Edit Bank Branch",editAcBankBranch:"Edit Bank Branch",locaitonHint:"Physical location of the branch",location:"Location",name:"Bank Branch Name",nameHint:"The branch name of the bank, town may be included",newAcBankBranch:"New Bank Branch",province:"Province",provinceHint:"Province that this bank branch is located"},acbanks:{acBankArchiveTitle:"Banks",editAcBank:"Edit Bank",name:"Bank name",nameHint:"The national name of the bank to make it easier recognize",newAcBank:"New Bank"},accesibility:{leftHand:"Left handed",rightHand:"Right handed"},acchecks:{acCheckArchiveTitle:"Checks",amount:"Amount",amountFormatted:"Amount",amountHint:"Amount of this check",bankBranch:"Bank Branch",bankBranchCityName:"City name",bankBranchHint:"The branch which has issued this check",bankBranchId:"Bank Branch",bankBranchName:"Branch name",currency:"Currency",currencyHint:"The currency which this check is written in",customer:"Customer",customerHint:"The customer that this check is from or belongs to",customerId:"Customer",dueDate:"Due Date",dueDateFormatted:"Due Date",dueDateHint:"The date that this check should be passed",editAcCheck:"Edit Check",identifier:"Identifier",identifierHint:"Identifier is special code for this check or unique id",issueDate:"Issue date",issueDateFormatted:"Issue Date",issueDateHint:"The date that check has been issued",newAcCheck:"New Check",recipientBankBranch:"Recipient Bank Branch",recipientBankBranchHint:"The bank which this check has been taken to",recipientCustomer:"Recipient Customer",recipientCustomerHint:"The customer who has this check",status:"Status",statusHint:"The status of this check"},accheckstatuses:{acCheckStatusArchiveTitle:"Check Statuses",editAcCheckStatus:"Edit Check Status",name:"Status Name",nameHint:"Status name which will be assigned to a check in workflow",newAcCheckStatus:"New Check Status"},accountcollections:{archiveTitle:"Account Collections",editAccountCollection:"Edit Collection",name:"Collection Name",nameHint:"Name the account collection",newAccountCollection:"New Account Collection"},accounting:{account:{currency:"Currency",name:"Name"},accountCollections:"Account Collections",accountCollectionsHint:"Account Collections",amount:"Amount",legalUnit:{name:"Name"},settlementDate:"Settlement Date",summary:"summary",title:"Title",transactionDate:"Transaction Date"},actions:{addJob:"+ Add job",back:"Back",edit:"Edit",new:"New"},addLocation:"Add location",alreadyHaveAnAccount:"Already have an account? Sign in instead",answerSheet:{grammarProgress:"Grammar %",listeningProgress:"Listening %",readingProgress:"Reading %",sourceExam:"Source exam",speakingProgress:"Speaking %",takerFullname:"Student fullname",writingProgress:"Writing %"},authenticatedOnly:"This section requires you to login before viewing or editing of any kind.",backup:{generateAndDownload:"Generate & Download",generateDescription:`You can create a backup of the system here. It's important to remember you will generate back from data which are visible to you. Making @@ -126,51 +126,51 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho subsequent workspaces, by registering via email, phone number or other types of the passports. In this section you can enable, disable, and make some other - configurations.`,resetToDefault:"Reset to default",role:"role",roleHint:"Select role",sender:"Sender",sidetitle:"Workspaces",slug:"Slug",title:"Title",type:"Type",workspaceName:"Workspace name",workspaceNameHint:"Enter the workspace name",workspaceTypeSlug:"Slug address",workspaceTypeSlugHint:"The path that publicly will be available to users, if they signup through this account this role would be assigned to them.",workspaceTypeTitle:"Title",workspaceTypeUniqueId:"Unique Id",workspaceTypeUniqueIdHint:"Unique id can be used to redirect user to direct signin",workspaceTypeTitleHint:"The title of the Workspace"}};function fy(t){var n,r,i,o;const e={};if(t.error&&Array.isArray((n=t.error)==null?void 0:n.errors))for(const u of(r=t.error)==null?void 0:r.errors)e[u.location]=u.message;return t.status&&t.ok===!1?{form:`${t.status}`}:((i=t==null?void 0:t.error)!=null&&i.message&&(e.form=(o=t==null?void 0:t.error)==null?void 0:o.message),t.message?{form:`${t.message}`}:e)}function _V(){return("10000000-1000-4000-8000"+-1e11).replace(/[018]/g,t=>(t^crypto.getRandomValues(new Uint8Array(1))[0]&15>>t/4).toString(16))}function BI(t,e="",n={}){for(const r in t)if(t.hasOwnProperty(r)){const i=e?`${e}.${r}`:r;typeof t[r]=="object"&&!Array.isArray(t[r])&&!t[r].operation?BI(t[r],i,n):n[i]=t[r]}return n}function fA(t){const e={ł:"l",Ł:"L"};return t.normalize("NFD").replace(/[\u0300-\u036f]/g,"").replace(/[aeiouAEIOU]/g,"").replace(/[łŁ]/g,n=>e[n]||n).toLowerCase()}function AV(t,e){const n=BI(e);return t.filter(r=>Object.keys(n).every(i=>{let{operation:o,value:u}=n[i];u=fA(u||"");const l=fA(Sr.get(r,i)||"");if(!l)return!1;switch(o){case"contains":return l.includes(u);case"equals":return l===u;case"startsWith":return l.startsWith(u);case"endsWith":return l.endsWith(u);default:return!1}}))}class Cl{constructor(e){this.content=e}items(e){let n={};try{n=JSON.parse(e.jsonQuery)}catch{}return AV(this.content,n).filter((i,o)=>!(oe.startIndex+e.itemsPerPage-1))}total(){return this.content.length}create(e){const n={...e,uniqueId:_V().substr(0,12)};return this.content.push(n),n}getOne(e){return this.content.find(n=>n.uniqueId===e)}deletes(e){return this.content=this.content.filter(n=>!e.includes(n.uniqueId)),!0}patchOne(e){return this.content=this.content.map(n=>n.uniqueId===e.uniqueId?{...n,...e}:n),e}}const Lf=t=>t.split(" or ").map(e=>e.split(" = ")[1].trim()),dA=new Cl([]);var hA,pA,y0;function RV(t,e,n,r,i){var o={};return Object.keys(r).forEach(function(u){o[u]=r[u]}),o.enumerable=!!o.enumerable,o.configurable=!!o.configurable,("value"in o||o.initializer)&&(o.writable=!0),o=n.slice().reverse().reduce(function(u,l){return l(t,e,u)||u},o),i&&o.initializer!==void 0&&(o.value=o.initializer?o.initializer.call(i):void 0,o.initializer=void 0),o.initializer===void 0?(Object.defineProperty(t,e,o),null):o}let PV=(hA=ft("files"),pA=dt("get"),y0=class{async getFiles(e){return{data:{items:dA.items(e),itemsPerPage:e.itemsPerPage,totalItems:dA.total()}}}},RV(y0.prototype,"getFiles",[hA,pA],Object.getOwnPropertyDescriptor(y0.prototype,"getFiles"),y0.prototype),y0);class IS extends Vt{constructor(...e){super(...e),this.children=void 0,this.type=void 0,this.apiKey=void 0}}IS.Navigation={edit(t,e){return`${e?"/"+e:".."}/email-provider/edit/${t}`},create(t){return`${t?"/"+t:".."}/email-provider/new`},single(t,e){return`${e?"/"+e:".."}/email-provider/${t}`},query(t={},e){return`${e?"/"+e:".."}/email-providers`},Redit:"email-provider/edit/:uniqueId",Rcreate:"email-provider/new",Rsingle:"email-provider/:uniqueId",Rquery:"email-providers"};IS.definition={rpc:{query:{}},permRewrite:{replace:"root.modules",with:"root.manage"},name:"emailProvider",features:{},security:{writeOnRoot:!0},gormMap:{},fields:[{name:"type",type:"enum",validate:"required",of:[{k:"terminal"},{k:"sendgrid"}],computedType:'"terminal" | "sendgrid"',gormMap:{}},{name:"apiKey",type:"string",computedType:"string",gormMap:{}}],description:"Thirdparty services which will send email, allows each workspace graphically configure their token without the need of restarting servers"};IS.Fields={...Vt.Fields,type:"type",apiKey:"apiKey"};class BO extends Vt{constructor(...e){super(...e),this.children=void 0,this.fromName=void 0,this.fromEmailAddress=void 0,this.replyTo=void 0,this.nickName=void 0}}BO.Navigation={edit(t,e){return`${e?"/"+e:".."}/email-sender/edit/${t}`},create(t){return`${t?"/"+t:".."}/email-sender/new`},single(t,e){return`${e?"/"+e:".."}/email-sender/${t}`},query(t={},e){return`${e?"/"+e:".."}/email-senders`},Redit:"email-sender/edit/:uniqueId",Rcreate:"email-sender/new",Rsingle:"email-sender/:uniqueId",Rquery:"email-senders"};BO.definition={rpc:{query:{}},permRewrite:{replace:"root.modules",with:"root.manage"},name:"emailSender",features:{},security:{writeOnRoot:!0},gormMap:{},fields:[{name:"fromName",type:"string",validate:"required",computedType:"string",gormMap:{}},{name:"fromEmailAddress",type:"string",validate:"required",computedType:"string",gorm:"unique",gormMap:{}},{name:"replyTo",type:"string",validate:"required",computedType:"string",gormMap:{}},{name:"nickName",type:"string",validate:"required",computedType:"string",gormMap:{}}],description:"All emails going from the system need to have a virtual sender (nick name, email address, etc)"};BO.Fields={...Vt.Fields,fromName:"fromName",fromEmailAddress:"fromEmailAddress",replyTo:"replyTo",nickName:"nickName"};class eo extends Vt{constructor(...e){super(...e),this.children=void 0,this.role=void 0,this.roleId=void 0,this.workspace=void 0}}eo.Navigation={edit(t,e){return`${e?"/"+e:".."}/public-join-key/edit/${t}`},create(t){return`${t?"/"+t:".."}/public-join-key/new`},single(t,e){return`${e?"/"+e:".."}/public-join-key/${t}`},query(t={},e){return`${e?"/"+e:".."}/public-join-keys`},Redit:"public-join-key/edit/:uniqueId",Rcreate:"public-join-key/new",Rsingle:"public-join-key/:uniqueId",Rquery:"public-join-keys"};eo.definition={rpc:{query:{}},name:"publicJoinKey",features:{},gormMap:{},fields:[{name:"role",type:"one",target:"RoleEntity",computedType:"RoleEntity",gormMap:{}},{name:"workspace",type:"one",target:"WorkspaceEntity",computedType:"WorkspaceEntity",gormMap:{}}],description:"Joining to different workspaces using a public link directly"};eo.Fields={...Vt.Fields,roleId:"roleId",role$:"role",role:kr.Fields,workspace$:"workspace",workspace:cy.Fields};const gn={emailProvider:new Cl([]),emailSender:new Cl([]),workspaceInvite:new Cl([]),publicJoinKey:new Cl([]),workspaces:new Cl([])};var mA,gA,yA,vA,bA,wA,SA,CA,$A,EA,ui;function v0(t,e,n,r,i){var o={};return Object.keys(r).forEach(function(u){o[u]=r[u]}),o.enumerable=!!o.enumerable,o.configurable=!!o.configurable,("value"in o||o.initializer)&&(o.writable=!0),o=n.slice().reverse().reduce(function(u,l){return l(t,e,u)||u},o),i&&o.initializer!==void 0&&(o.value=o.initializer?o.initializer.call(i):void 0,o.initializer=void 0),o.initializer===void 0?(Object.defineProperty(t,e,o),null):o}let IV=(mA=ft("email-providers"),gA=dt("get"),yA=ft("email-provider/:uniqueId"),vA=dt("get"),bA=ft("email-provider"),wA=dt("patch"),SA=ft("email-provider"),CA=dt("post"),$A=ft("email-provider"),EA=dt("delete"),ui=class{async getEmailProviders(e){return{data:{items:gn.emailProvider.items(e),itemsPerPage:e.itemsPerPage,totalItems:gn.emailProvider.total()}}}async getEmailProviderByUniqueId(e){return{data:gn.emailProvider.getOne(e.paramValues[0])}}async patchEmailProviderByUniqueId(e){return{data:gn.emailProvider.patchOne(e.body)}}async postRole(e){return{data:gn.emailProvider.create(e.body)}}async deleteRole(e){return gn.emailProvider.deletes(Lf(e.body.query)),{data:{}}}},v0(ui.prototype,"getEmailProviders",[mA,gA],Object.getOwnPropertyDescriptor(ui.prototype,"getEmailProviders"),ui.prototype),v0(ui.prototype,"getEmailProviderByUniqueId",[yA,vA],Object.getOwnPropertyDescriptor(ui.prototype,"getEmailProviderByUniqueId"),ui.prototype),v0(ui.prototype,"patchEmailProviderByUniqueId",[bA,wA],Object.getOwnPropertyDescriptor(ui.prototype,"patchEmailProviderByUniqueId"),ui.prototype),v0(ui.prototype,"postRole",[SA,CA],Object.getOwnPropertyDescriptor(ui.prototype,"postRole"),ui.prototype),v0(ui.prototype,"deleteRole",[$A,EA],Object.getOwnPropertyDescriptor(ui.prototype,"deleteRole"),ui.prototype),ui);var xA,OA,TA,_A,AA,RA,PA,IA,NA,MA,li;function b0(t,e,n,r,i){var o={};return Object.keys(r).forEach(function(u){o[u]=r[u]}),o.enumerable=!!o.enumerable,o.configurable=!!o.configurable,("value"in o||o.initializer)&&(o.writable=!0),o=n.slice().reverse().reduce(function(u,l){return l(t,e,u)||u},o),i&&o.initializer!==void 0&&(o.value=o.initializer?o.initializer.call(i):void 0,o.initializer=void 0),o.initializer===void 0?(Object.defineProperty(t,e,o),null):o}let NV=(xA=ft("email-senders"),OA=dt("get"),TA=ft("email-sender/:uniqueId"),_A=dt("get"),AA=ft("email-sender"),RA=dt("patch"),PA=ft("email-sender"),IA=dt("post"),NA=ft("email-sender"),MA=dt("delete"),li=class{async getEmailSenders(e){return{data:{items:gn.emailSender.items(e),itemsPerPage:e.itemsPerPage,totalItems:gn.emailSender.total()}}}async getEmailSenderByUniqueId(e){return{data:gn.emailSender.getOne(e.paramValues[0])}}async patchEmailSenderByUniqueId(e){return{data:gn.emailSender.patchOne(e.body)}}async postRole(e){return{data:gn.emailSender.create(e.body)}}async deleteRole(e){return gn.emailSender.deletes(Lf(e.body.query)),{data:{}}}},b0(li.prototype,"getEmailSenders",[xA,OA],Object.getOwnPropertyDescriptor(li.prototype,"getEmailSenders"),li.prototype),b0(li.prototype,"getEmailSenderByUniqueId",[TA,_A],Object.getOwnPropertyDescriptor(li.prototype,"getEmailSenderByUniqueId"),li.prototype),b0(li.prototype,"patchEmailSenderByUniqueId",[AA,RA],Object.getOwnPropertyDescriptor(li.prototype,"patchEmailSenderByUniqueId"),li.prototype),b0(li.prototype,"postRole",[PA,IA],Object.getOwnPropertyDescriptor(li.prototype,"postRole"),li.prototype),b0(li.prototype,"deleteRole",[NA,MA],Object.getOwnPropertyDescriptor(li.prototype,"deleteRole"),li.prototype),li);var kA,DA,FA,LA,UA,jA,BA,qA,HA,zA,ci;function w0(t,e,n,r,i){var o={};return Object.keys(r).forEach(function(u){o[u]=r[u]}),o.enumerable=!!o.enumerable,o.configurable=!!o.configurable,("value"in o||o.initializer)&&(o.writable=!0),o=n.slice().reverse().reduce(function(u,l){return l(t,e,u)||u},o),i&&o.initializer!==void 0&&(o.value=o.initializer?o.initializer.call(i):void 0,o.initializer=void 0),o.initializer===void 0?(Object.defineProperty(t,e,o),null):o}let MV=(kA=ft("public-join-keys"),DA=dt("get"),FA=ft("public-join-key/:uniqueId"),LA=dt("get"),UA=ft("public-join-key"),jA=dt("patch"),BA=ft("public-join-key"),qA=dt("post"),HA=ft("public-join-key"),zA=dt("delete"),ci=class{async getPublicJoinKeys(e){return{data:{items:gn.publicJoinKey.items(e),itemsPerPage:e.itemsPerPage,totalItems:gn.publicJoinKey.total()}}}async getPublicJoinKeyByUniqueId(e){return{data:gn.publicJoinKey.getOne(e.paramValues[0])}}async patchPublicJoinKeyByUniqueId(e){return{data:gn.publicJoinKey.patchOne(e.body)}}async postPublicJoinKey(e){return{data:gn.publicJoinKey.create(e.body)}}async deletePublicJoinKey(e){return gn.publicJoinKey.deletes(Lf(e.body.query)),{data:{}}}},w0(ci.prototype,"getPublicJoinKeys",[kA,DA],Object.getOwnPropertyDescriptor(ci.prototype,"getPublicJoinKeys"),ci.prototype),w0(ci.prototype,"getPublicJoinKeyByUniqueId",[FA,LA],Object.getOwnPropertyDescriptor(ci.prototype,"getPublicJoinKeyByUniqueId"),ci.prototype),w0(ci.prototype,"patchPublicJoinKeyByUniqueId",[UA,jA],Object.getOwnPropertyDescriptor(ci.prototype,"patchPublicJoinKeyByUniqueId"),ci.prototype),w0(ci.prototype,"postPublicJoinKey",[BA,qA],Object.getOwnPropertyDescriptor(ci.prototype,"postPublicJoinKey"),ci.prototype),w0(ci.prototype,"deletePublicJoinKey",[HA,zA],Object.getOwnPropertyDescriptor(ci.prototype,"deletePublicJoinKey"),ci.prototype),ci);const Eg=new Cl([{name:"Administrator",uniqueId:"administrator"}]);var VA,GA,WA,KA,YA,JA,QA,XA,ZA,e8,fi;function S0(t,e,n,r,i){var o={};return Object.keys(r).forEach(function(u){o[u]=r[u]}),o.enumerable=!!o.enumerable,o.configurable=!!o.configurable,("value"in o||o.initializer)&&(o.writable=!0),o=n.slice().reverse().reduce(function(u,l){return l(t,e,u)||u},o),i&&o.initializer!==void 0&&(o.value=o.initializer?o.initializer.call(i):void 0,o.initializer=void 0),o.initializer===void 0?(Object.defineProperty(t,e,o),null):o}let kV=(VA=ft("roles"),GA=dt("get"),WA=ft("role/:uniqueId"),KA=dt("get"),YA=ft("role"),JA=dt("patch"),QA=ft("role"),XA=dt("delete"),ZA=ft("role"),e8=dt("post"),fi=class{async getRoles(e){return{data:{items:Eg.items(e),itemsPerPage:e.itemsPerPage,totalItems:Eg.total()}}}async getRoleByUniqueId(e){return{data:Eg.getOne(e.paramValues[0])}}async patchRoleByUniqueId(e){return{data:Eg.patchOne(e.body)}}async deleteRole(e){return Eg.deletes(Lf(e.body.query)),{data:{}}}async postRole(e){return{data:Eg.create(e.body)}}},S0(fi.prototype,"getRoles",[VA,GA],Object.getOwnPropertyDescriptor(fi.prototype,"getRoles"),fi.prototype),S0(fi.prototype,"getRoleByUniqueId",[WA,KA],Object.getOwnPropertyDescriptor(fi.prototype,"getRoleByUniqueId"),fi.prototype),S0(fi.prototype,"patchRoleByUniqueId",[YA,JA],Object.getOwnPropertyDescriptor(fi.prototype,"patchRoleByUniqueId"),fi.prototype),S0(fi.prototype,"deleteRole",[QA,XA],Object.getOwnPropertyDescriptor(fi.prototype,"deleteRole"),fi.prototype),S0(fi.prototype,"postRole",[ZA,e8],Object.getOwnPropertyDescriptor(fi.prototype,"postRole"),fi.prototype),fi);class qO extends Vt{constructor(...e){super(...e),this.children=void 0,this.label=void 0,this.href=void 0,this.icon=void 0,this.activeMatcher=void 0,this.capability=void 0,this.capabilityId=void 0}}qO.Navigation={edit(t,e){return`${e?"/"+e:".."}/app-menu/edit/${t}`},create(t){return`${t?"/"+t:".."}/app-menu/new`},single(t,e){return`${e?"/"+e:".."}/app-menu/${t}`},query(t={},e){return`${e?"/"+e:".."}/app-menus`},Redit:"app-menu/edit/:uniqueId",Rcreate:"app-menu/new",Rsingle:"app-menu/:uniqueId",Rquery:"app-menus"};qO.definition={rpc:{query:{}},name:"appMenu",features:{},gormMap:{},fields:[{name:"label",recommended:!0,description:"Label that will be visible to user",type:"string",translate:!0,computedType:"string",gormMap:{}},{name:"href",recommended:!0,description:"Location that will be navigated in case of click or selection on ui",type:"string",computedType:"string",gormMap:{}},{name:"icon",recommended:!0,description:"Icon string address which matches the resources on the front-end apps.",type:"string",computedType:"string",gormMap:{}},{name:"activeMatcher",description:"Custom window location url matchers, for inner screens.",type:"string",computedType:"string",gormMap:{}},{name:"capability",description:"The permission which is required for the menu to be visible.",type:"one",target:"CapabilityEntity",module:"fireback",computedType:"CapabilityEntity",gormMap:{}}],description:"Manages the menus in the app, (for example tab views, sidebar items, etc.)",cte:!0};qO.Fields={...Vt.Fields,label:"label",href:"href",icon:"icon",activeMatcher:"activeMatcher",capabilityId:"capabilityId",capability$:"capability",capability:q1.Fields};const DV=[{activeMatcher:null,capability:null,capabilityId:null,children:[{activeMatcher:"/workspace/invite(s)?",capability:null,capabilityId:null,created:1711043161316914e3,createdFormatted:"2024/03/21 18:46:01",href:"/selfservice/workspace-invites",icon:"common/workspaceinvite.svg",label:"Invites",parentId:"fireback",uniqueId:"invites",updated:1711043161316914e3,visibility:"A"},{activeMatcher:"publicjoinkey",capability:null,capabilityId:null,created:171104316131093e4,createdFormatted:"2024/03/21 18:46:01",href:"/selfservice/public-join-keys",icon:"common/joinkey.svg",label:"Public join keys",parentId:"fireback",uniqueId:"publicjoinkey",updated:171104316131093e4,visibility:"A"},{activeMatcher:"/role/",capability:null,capabilityId:null,created:1711043161314546e3,createdFormatted:"2024/03/21 18:46:01",href:"/selfservice/roles",icon:"common/role.svg",label:"Roles",parentId:"fireback",uniqueId:"roles",updated:1711043161314546e3,visibility:"A"}],created:1711043161319555e3,createdFormatted:"2024/03/21 18:46:01",href:null,icon:null,label:"Workspace",uniqueId:"fireback",updated:1711043161319555e3,visibility:"A"},{activeMatcher:null,capability:null,capabilityId:null,children:[{activeMatcher:"drives",capability:null,capabilityId:null,created:1711043161320805e3,createdFormatted:"2024/03/21 18:46:01",href:"/manage/drives",icon:"common/drive.svg",label:"Drive & Files",parentId:"root",uniqueId:"drive_files",updated:1711043161320805e3,visibility:"A"},{activeMatcher:"email-provider",capability:null,capabilityId:null,created:1711043161309663e3,createdFormatted:"2024/03/21 18:46:01",href:"/manage/email-providers",icon:"common/emailprovider.svg",label:"Email Provider",parentId:"root",uniqueId:"email_provider",updated:1711043161309663e3,visibility:"A"},{activeMatcher:"email-sender",capability:null,capabilityId:null,created:171104316131211e4,createdFormatted:"2024/03/21 18:46:01",href:"/manage/email-senders",icon:"common/mail.svg",label:"Email Sender",parentId:"root",uniqueId:"email_sender",updated:171104316131211e4,visibility:"A"},{activeMatcher:"/user/",capability:null,capabilityId:null,created:1711043161318088e3,createdFormatted:"2024/03/21 18:46:01",href:"/manage/users",icon:"common/user.svg",label:"Users",parentId:"root",uniqueId:"users",updated:1711043161318088e3,visibility:"A"},{activeMatcher:"/workspace/config",capability:null,capabilityId:null,created:17110431613157e5,createdFormatted:"2024/03/21 18:46:01",href:"/manage/workspace-config",icon:"ios-theme/icons/settings.svg",label:"Workspace Config",parentId:"root",uniqueId:"workspace_config",updated:17110431613157e5,visibility:"A"},{activeMatcher:"workspace-type",capability:null,capabilityId:null,created:1711043161313308e3,createdFormatted:"2024/03/21 18:46:01",href:"/manage/workspace-types",icon:"ios-theme/icons/settings.svg",label:"Workspace Types",parentId:"root",uniqueId:"workspace_types",updated:1711043161313308e3,visibility:"A"},{activeMatcher:"/workspaces/|workspace/new",capability:null,capabilityId:null,created:171104316132216e4,createdFormatted:"2024/03/21 18:46:01",href:"/manage/workspaces",icon:"common/workspace.svg",label:"Workspaces",parentId:"root",uniqueId:"workspaces",updated:171104316132216e4,visibility:"A"}],created:1711043161319555e3,createdFormatted:"2024/03/21 18:46:01",href:null,icon:null,label:"Root",uniqueId:"root",updated:1711043161319555e3,visibility:"A"},{activeMatcher:null,capability:null,capabilityId:null,children:[{activeMatcher:"/invites/",capability:null,capabilityId:null,created:1711043161328479e3,createdFormatted:"2024/03/21 18:46:01",href:"/selfservice/user-invitations",icon:"common/workspaceinvite.svg",label:"My Invitations",parentId:"personal",uniqueId:"my_invitation",updated:1711043161328479e3,visibility:"A"},{activeMatcher:"/settings",capability:null,capabilityId:null,created:1711043161325229e3,createdFormatted:"2024/03/21 18:46:01",href:"/settings",icon:"ios-theme/icons/settings.svg",label:"Settings",parentId:"personal",uniqueId:"settings",updated:1711043161325229e3,visibility:"A"},{activeMatcher:"/selfservice",capability:null,capabilityId:null,created:1711043161325229e3,createdFormatted:"2024/03/21 18:46:01",href:"/selfservice",icon:"ios-theme/icons/settings.svg",label:"Account & Profile",parentId:"personal",uniqueId:"settings",updated:1711043161325229e3,visibility:"A"}],created:1711043161323813e3,createdFormatted:"2024/03/21 18:46:01",href:null,icon:null,label:"Personal",uniqueId:"personal",updated:1711043161323813e3,visibility:"A"}];var t8,n8,C0;function FV(t,e,n,r,i){var o={};return Object.keys(r).forEach(function(u){o[u]=r[u]}),o.enumerable=!!o.enumerable,o.configurable=!!o.configurable,("value"in o||o.initializer)&&(o.writable=!0),o=n.slice().reverse().reduce(function(u,l){return l(t,e,u)||u},o),i&&o.initializer!==void 0&&(o.value=o.initializer?o.initializer.call(i):void 0,o.initializer=void 0),o.initializer===void 0?(Object.defineProperty(t,e,o),null):o}let LV=(t8=ft("cte-app-menus"),n8=dt("get"),C0=class{async getAppMenu(e){return{data:{items:DV}}}},FV(C0.prototype,"getAppMenu",[t8,n8],Object.getOwnPropertyDescriptor(C0.prototype,"getAppMenu"),C0.prototype),C0);const UV=()=>{if(Math.random()>.5)switch(Math.floor(Math.random()*3)){case 0:return`10.${Math.floor(Math.random()*256)}.${Math.floor(Math.random()*256)}.${Math.floor(Math.random()*256)}`;case 1:return`172.${Math.floor(16+Math.random()*16)}.${Math.floor(Math.random()*256)}.${Math.floor(Math.random()*256)}`;case 2:return`192.168.${Math.floor(Math.random()*256)}.${Math.floor(Math.random()*256)}`;default:return`192.168.${Math.floor(Math.random()*256)}.${Math.floor(Math.random()*256)}`}else return`${Math.floor(Math.random()*223)+1}.${Math.floor(Math.random()*256)}.${Math.floor(Math.random()*256)}.${Math.floor(Math.random()*256)}`},jV=["Ali","Behnaz","Carlos","Daniela","Ethan","Fatima","Gustavo","Helena","Isla","Javad","Kamila","Leila","Mateo","Nasim","Omid","Parisa","Rania","Saeed","Tomas","Ursula","Vali","Wojtek","Zara","Alice","Bob","Charlie","Diana","George","Mohammed","Julia","Khalid","Lena","Mohammad","Nina","Oscar","Quentin","Rosa","Sam","Tina","Umar","Vera","Waleed","Xenia","Yara","Ziad","Maxim","Johann","Krzysztof","Baris","Mehmet"],BV=["Smith","Johnson","Williams","Brown","Jones","Garcia","Miller","Davis","Rodriguez","Martinez","Hernandez","Lopez","Gonzalez","Wilson","Anderson","Thomas","Taylor","Moore","Jackson","Martin","Lee","Perez","Thompson","White","Harris","Sanchez","Clark","Ramirez","Lewis","Robinson","Walker","Young","Allen","King","Wright","Scott","Torres","Nguyen","Hill","Flores","Green","Adams","Nelson","Baker","Hall","Rivera","Campbell","Mitchell","Carter","Roberts","Kowalski","Nowak","Jankowski","Zieliński","Wiśniewski","Lewandowski","Kaczmarek","Bąk","Pereira","Altıntaş"],qV=[{addressLine1:"123 Main St",addressLine2:"Apt 4",city:"Berlin",stateOrProvince:"Berlin",postalCode:"10115",countryCode:"DE"},{addressLine1:"456 Elm St",addressLine2:"Apt 23",city:"Paris",stateOrProvince:"Île-de-France",postalCode:"75001",countryCode:"FR"},{addressLine1:"789 Oak Dr",addressLine2:"Apt 9",city:"Warszawa",stateOrProvince:"Mazowieckie",postalCode:"01010",countryCode:"PL"},{addressLine1:"101 Maple Ave",addressLine2:"",city:"Tehran",stateOrProvince:"تهران",postalCode:"11365",countryCode:"IR"},{addressLine1:"202 Pine St",addressLine2:"Apt 7",city:"Madrid",stateOrProvince:"Community of Madrid",postalCode:"28001",countryCode:"ES"},{addressLine1:"456 Park Ave",addressLine2:"Suite 5",city:"New York",stateOrProvince:"NY",postalCode:"10001",countryCode:"US"},{addressLine1:"789 Sunset Blvd",addressLine2:"Unit 32",city:"Los Angeles",stateOrProvince:"CA",postalCode:"90001",countryCode:"US"},{addressLine1:"12 Hauptstrasse",addressLine2:"Apt 2",city:"Munich",stateOrProvince:"Bavaria",postalCode:"80331",countryCode:"DE"},{addressLine1:"75 Taksim Square",addressLine2:"Apt 12",city:"Istanbul",stateOrProvince:"Istanbul",postalCode:"34430",countryCode:"TR"},{addressLine1:"321 Wierzbowa",addressLine2:"",city:"Kraków",stateOrProvince:"Małopolskie",postalCode:"31000",countryCode:"PL"},{addressLine1:"55 Rue de Rivoli",addressLine2:"Apt 10",city:"Paris",stateOrProvince:"Île-de-France",postalCode:"75004",countryCode:"FR"},{addressLine1:"1001 Tehran Ave",addressLine2:"",city:"Tehran",stateOrProvince:"تهران",postalCode:"14155",countryCode:"IR"},{addressLine1:"9 Calle de Alcalá",addressLine2:"Apt 6",city:"Madrid",stateOrProvince:"Madrid",postalCode:"28009",countryCode:"ES"},{addressLine1:"222 King St",addressLine2:"Suite 1B",city:"London",stateOrProvince:"London",postalCode:"E1 6AN",countryCode:"GB"},{addressLine1:"15 St. Peters Rd",addressLine2:"",city:"Toronto",stateOrProvince:"Ontario",postalCode:"M5A 1A2",countryCode:"CA"},{addressLine1:"1340 Via Roma",addressLine2:"",city:"Rome",stateOrProvince:"Lazio",postalCode:"00100",countryCode:"IT"},{addressLine1:"42 Nevsky Prospekt",addressLine2:"Apt 1",city:"Saint Petersburg",stateOrProvince:"Leningradskaya",postalCode:"190000",countryCode:"RU"},{addressLine1:"3 Rüdesheimer Str.",addressLine2:"Apt 9",city:"Frankfurt",stateOrProvince:"Hessen",postalCode:"60326",countryCode:"DE"},{addressLine1:"271 Süleyman Demirel Bulvarı",addressLine2:"Apt 45",city:"Ankara",stateOrProvince:"Ankara",postalCode:"06100",countryCode:"TR"},{addressLine1:"7 Avenues des Champs-Élysées",addressLine2:"",city:"Paris",stateOrProvince:"Île-de-France",postalCode:"75008",countryCode:"FR"},{addressLine1:"125 E. 9th St.",addressLine2:"Apt 12",city:"Chicago",stateOrProvince:"IL",postalCode:"60606",countryCode:"US"},{addressLine1:"30 Rue de la Paix",addressLine2:"",city:"Paris",stateOrProvince:"Île-de-France",postalCode:"75002",countryCode:"FR"},{addressLine1:"16 Zlote Tarasy",addressLine2:"Apt 18",city:"Warszawa",stateOrProvince:"Mazowieckie",postalCode:"00-510",countryCode:"PL"},{addressLine1:"120 Váci utca",addressLine2:"",city:"Budapest",stateOrProvince:"Budapest",postalCode:"1056",countryCode:"HU"},{addressLine1:"22 Sukhbaatar Sq.",addressLine2:"",city:"Ulaanbaatar",stateOrProvince:"Central",postalCode:"14190",countryCode:"MN"},{addressLine1:"34 Princes Street",addressLine2:"Flat 1",city:"Edinburgh",stateOrProvince:"Scotland",postalCode:"EH2 4AY",countryCode:"GB"},{addressLine1:"310 Alzaibiyah",addressLine2:"",city:"Amman",stateOrProvince:"Amman",postalCode:"11183",countryCode:"JO"},{addressLine1:"401 Taksim Caddesi",addressLine2:"Apt 25",city:"Istanbul",stateOrProvince:"Istanbul",postalCode:"34430",countryCode:"TR"},{addressLine1:"203 High Street",addressLine2:"Unit 3",city:"London",stateOrProvince:"London",postalCode:"W1T 2LQ",countryCode:"GB"},{addressLine1:"58 Via Nazionale",addressLine2:"",city:"Rome",stateOrProvince:"Lazio",postalCode:"00184",countryCode:"IT"},{addressLine1:"47 Gloucester Road",addressLine2:"",city:"London",stateOrProvince:"London",postalCode:"SW7 4QA",countryCode:"GB"},{addressLine1:"98 Calle de Bravo Murillo",addressLine2:"",city:"Madrid",stateOrProvince:"Madrid",postalCode:"28039",countryCode:"ES"},{addressLine1:"57 Mirza Ghalib Street",addressLine2:"",city:"Tehran",stateOrProvince:"تهران",postalCode:"15996",countryCode:"IR"},{addressLine1:"35 Królewska St",addressLine2:"",city:"Warszawa",stateOrProvince:"Mazowieckie",postalCode:"00-065",countryCode:"PL"},{addressLine1:"12 5th Ave",addressLine2:"",city:"New York",stateOrProvince:"NY",postalCode:"10128",countryCode:"US"}],HV=()=>{const t=new Uint8Array(18);window.crypto.getRandomValues(t);const e=Array.from(t).map(r=>r.toString(36).padStart(2,"0")).join(""),n=Date.now().toString(36);return n+e.slice(0,30-n.length)},zV=()=>({uniqueId:HV(),firstName:Sr.sample(jV),lastName:Sr.sample(BV),photo:`https://randomuser.me/api/portraits/men/${Math.floor(Math.random()*100)}.jpg`,birthDate:new Date().getDate()+"/"+new Date().getMonth()+"/"+new Date().getFullYear(),gender:Math.random()>.5?1:0,title:Math.random()>.5?"Mr.":"Ms.",avatar:`https://randomuser.me/api/portraits/men/${Math.floor(Math.random()*100)}.jpg`,lastIpAddress:UV(),primaryAddress:Sr.sample(qV)}),xg=new Cl(Sr.times(1e4,()=>zV()));var r8,i8,a8,o8,s8,u8,l8,c8,f8,d8,di;function $0(t,e,n,r,i){var o={};return Object.keys(r).forEach(function(u){o[u]=r[u]}),o.enumerable=!!o.enumerable,o.configurable=!!o.configurable,("value"in o||o.initializer)&&(o.writable=!0),o=n.slice().reverse().reduce(function(u,l){return l(t,e,u)||u},o),i&&o.initializer!==void 0&&(o.value=o.initializer?o.initializer.call(i):void 0,o.initializer=void 0),o.initializer===void 0?(Object.defineProperty(t,e,o),null):o}let VV=(r8=ft("users"),i8=dt("get"),a8=ft("user"),o8=dt("delete"),s8=ft("user/:uniqueId"),u8=dt("get"),l8=ft("user"),c8=dt("patch"),f8=ft("user"),d8=dt("post"),di=class{async getUsers(e){return{data:{items:xg.items(e),itemsPerPage:e.itemsPerPage,totalItems:xg.total()}}}async deleteUser(e){return xg.deletes(Lf(e.body.query)),{data:{}}}async getUserByUniqueId(e){return{data:xg.getOne(e.paramValues[0])}}async patchUserByUniqueId(e){return{data:xg.patchOne(e.body)}}async postUser(e){return{data:xg.create(e.body)}}},$0(di.prototype,"getUsers",[r8,i8],Object.getOwnPropertyDescriptor(di.prototype,"getUsers"),di.prototype),$0(di.prototype,"deleteUser",[a8,o8],Object.getOwnPropertyDescriptor(di.prototype,"deleteUser"),di.prototype),$0(di.prototype,"getUserByUniqueId",[s8,u8],Object.getOwnPropertyDescriptor(di.prototype,"getUserByUniqueId"),di.prototype),$0(di.prototype,"patchUserByUniqueId",[l8,c8],Object.getOwnPropertyDescriptor(di.prototype,"patchUserByUniqueId"),di.prototype),$0(di.prototype,"postUser",[f8,d8],Object.getOwnPropertyDescriptor(di.prototype,"postUser"),di.prototype),di);class GV{}var h8,p8,m8,g8,y8,v8,b8,w8,S8,C8,hi;function E0(t,e,n,r,i){var o={};return Object.keys(r).forEach(function(u){o[u]=r[u]}),o.enumerable=!!o.enumerable,o.configurable=!!o.configurable,("value"in o||o.initializer)&&(o.writable=!0),o=n.slice().reverse().reduce(function(u,l){return l(t,e,u)||u},o),i&&o.initializer!==void 0&&(o.value=o.initializer?o.initializer.call(i):void 0,o.initializer=void 0),o.initializer===void 0?(Object.defineProperty(t,e,o),null):o}let WV=(h8=ft("workspace-invites"),p8=dt("get"),m8=ft("workspace-invite/:uniqueId"),g8=dt("get"),y8=ft("workspace-invite"),v8=dt("patch"),b8=ft("workspace/invite"),w8=dt("post"),S8=ft("workspace-invite"),C8=dt("delete"),hi=class{async getWorkspaceInvites(e){return{data:{items:gn.workspaceInvite.items(e),itemsPerPage:e.itemsPerPage,totalItems:gn.workspaceInvite.total()}}}async getWorkspaceInviteByUniqueId(e){return{data:gn.workspaceInvite.getOne(e.paramValues[0])}}async patchWorkspaceInviteByUniqueId(e){return{data:gn.workspaceInvite.patchOne(e.body)}}async postWorkspaceInvite(e){return{data:gn.workspaceInvite.create(e.body)}}async deleteWorkspaceInvite(e){return gn.workspaceInvite.deletes(Lf(e.body.query)),{data:{}}}},E0(hi.prototype,"getWorkspaceInvites",[h8,p8],Object.getOwnPropertyDescriptor(hi.prototype,"getWorkspaceInvites"),hi.prototype),E0(hi.prototype,"getWorkspaceInviteByUniqueId",[m8,g8],Object.getOwnPropertyDescriptor(hi.prototype,"getWorkspaceInviteByUniqueId"),hi.prototype),E0(hi.prototype,"patchWorkspaceInviteByUniqueId",[y8,v8],Object.getOwnPropertyDescriptor(hi.prototype,"patchWorkspaceInviteByUniqueId"),hi.prototype),E0(hi.prototype,"postWorkspaceInvite",[b8,w8],Object.getOwnPropertyDescriptor(hi.prototype,"postWorkspaceInvite"),hi.prototype),E0(hi.prototype,"deleteWorkspaceInvite",[S8,C8],Object.getOwnPropertyDescriptor(hi.prototype,"deleteWorkspaceInvite"),hi.prototype),hi);const Og=new Cl([{title:"Student workspace type",uniqueId:"1",slug:"/student"}]);var $8,E8,x8,O8,T8,_8,A8,R8,P8,I8,pi;function x0(t,e,n,r,i){var o={};return Object.keys(r).forEach(function(u){o[u]=r[u]}),o.enumerable=!!o.enumerable,o.configurable=!!o.configurable,("value"in o||o.initializer)&&(o.writable=!0),o=n.slice().reverse().reduce(function(u,l){return l(t,e,u)||u},o),i&&o.initializer!==void 0&&(o.value=o.initializer?o.initializer.call(i):void 0,o.initializer=void 0),o.initializer===void 0?(Object.defineProperty(t,e,o),null):o}let KV=($8=ft("workspace-types"),E8=dt("get"),x8=ft("workspace-type/:uniqueId"),O8=dt("get"),T8=ft("workspace-type"),_8=dt("patch"),A8=ft("workspace-type"),R8=dt("delete"),P8=ft("workspace-type"),I8=dt("post"),pi=class{async getWorkspaceTypes(e){return{data:{items:Og.items(e),itemsPerPage:e.itemsPerPage,totalItems:Og.total()}}}async getWorkspaceTypeByUniqueId(e){return{data:Og.getOne(e.paramValues[0])}}async patchWorkspaceTypeByUniqueId(e){return{data:Og.patchOne(e.body)}}async deleteWorkspaceType(e){return Og.deletes(Lf(e.body.query)),{data:{}}}async postWorkspaceType(e){return{data:Og.create(e.body)}}},x0(pi.prototype,"getWorkspaceTypes",[$8,E8],Object.getOwnPropertyDescriptor(pi.prototype,"getWorkspaceTypes"),pi.prototype),x0(pi.prototype,"getWorkspaceTypeByUniqueId",[x8,O8],Object.getOwnPropertyDescriptor(pi.prototype,"getWorkspaceTypeByUniqueId"),pi.prototype),x0(pi.prototype,"patchWorkspaceTypeByUniqueId",[T8,_8],Object.getOwnPropertyDescriptor(pi.prototype,"patchWorkspaceTypeByUniqueId"),pi.prototype),x0(pi.prototype,"deleteWorkspaceType",[A8,R8],Object.getOwnPropertyDescriptor(pi.prototype,"deleteWorkspaceType"),pi.prototype),x0(pi.prototype,"postWorkspaceType",[P8,I8],Object.getOwnPropertyDescriptor(pi.prototype,"postWorkspaceType"),pi.prototype),pi);var N8,M8,k8,D8,F8,L8,U8,j8,B8,q8,H8,z8,Er;function Tg(t,e,n,r,i){var o={};return Object.keys(r).forEach(function(u){o[u]=r[u]}),o.enumerable=!!o.enumerable,o.configurable=!!o.configurable,("value"in o||o.initializer)&&(o.writable=!0),o=n.slice().reverse().reduce(function(u,l){return l(t,e,u)||u},o),i&&o.initializer!==void 0&&(o.value=o.initializer?o.initializer.call(i):void 0,o.initializer=void 0),o.initializer===void 0?(Object.defineProperty(t,e,o),null):o}let YV=(N8=ft("workspaces"),M8=dt("get"),k8=ft("cte-workspaces"),D8=dt("get"),F8=ft("workspace/:uniqueId"),L8=dt("get"),U8=ft("workspace"),j8=dt("patch"),B8=ft("workspace"),q8=dt("delete"),H8=ft("workspace"),z8=dt("post"),Er=class{async getWorkspaces(e){return{data:{items:gn.workspaces.items(e),itemsPerPage:e.itemsPerPage,totalItems:gn.workspaces.total()}}}async getWorkspacesCte(e){return{data:{items:gn.workspaces.items(e),itemsPerPage:e.itemsPerPage,totalItems:gn.workspaces.total()}}}async getWorkspaceByUniqueId(e){return{data:gn.workspaces.getOne(e.paramValues[0])}}async patchWorkspaceByUniqueId(e){return{data:gn.workspaces.patchOne(e.body)}}async deleteWorkspace(e){return gn.workspaces.deletes(Lf(e.body.query)),{data:{}}}async postWorkspace(e){return{data:gn.workspaces.create(e.body)}}},Tg(Er.prototype,"getWorkspaces",[N8,M8],Object.getOwnPropertyDescriptor(Er.prototype,"getWorkspaces"),Er.prototype),Tg(Er.prototype,"getWorkspacesCte",[k8,D8],Object.getOwnPropertyDescriptor(Er.prototype,"getWorkspacesCte"),Er.prototype),Tg(Er.prototype,"getWorkspaceByUniqueId",[F8,L8],Object.getOwnPropertyDescriptor(Er.prototype,"getWorkspaceByUniqueId"),Er.prototype),Tg(Er.prototype,"patchWorkspaceByUniqueId",[U8,j8],Object.getOwnPropertyDescriptor(Er.prototype,"patchWorkspaceByUniqueId"),Er.prototype),Tg(Er.prototype,"deleteWorkspace",[B8,q8],Object.getOwnPropertyDescriptor(Er.prototype,"deleteWorkspace"),Er.prototype),Tg(Er.prototype,"postWorkspace",[H8,z8],Object.getOwnPropertyDescriptor(Er.prototype,"postWorkspace"),Er.prototype),Er);class NS extends Vt{constructor(...e){super(...e),this.children=void 0,this.apiKey=void 0,this.mainSenderNumber=void 0,this.type=void 0,this.invokeUrl=void 0,this.invokeBody=void 0}}NS.Navigation={edit(t,e){return`${e?"/"+e:".."}/gsm-provider/edit/${t}`},create(t){return`${t?"/"+t:".."}/gsm-provider/new`},single(t,e){return`${e?"/"+e:".."}/gsm-provider/${t}`},query(t={},e){return`${e?"/"+e:".."}/gsm-providers`},Redit:"gsm-provider/edit/:uniqueId",Rcreate:"gsm-provider/new",Rsingle:"gsm-provider/:uniqueId",Rquery:"gsm-providers"};NS.definition={rpc:{query:{}},permRewrite:{replace:"root.modules",with:"root.manage"},name:"gsmProvider",features:{},gormMap:{},fields:[{name:"apiKey",type:"string",computedType:"string",gormMap:{}},{name:"mainSenderNumber",type:"string",validate:"required",computedType:"string",gormMap:{}},{name:"type",type:"enum",validate:"required",of:[{k:"url"},{k:"terminal"},{k:"mediana"}],computedType:'"url" | "terminal" | "mediana"',gormMap:{}},{name:"invokeUrl",type:"string",computedType:"string",gormMap:{}},{name:"invokeBody",type:"string",computedType:"string",gormMap:{}}]};NS.Fields={...Vt.Fields,apiKey:"apiKey",mainSenderNumber:"mainSenderNumber",type:"type",invokeUrl:"invokeUrl",invokeBody:"invokeBody"};class Wg extends Vt{constructor(...e){super(...e),this.children=void 0,this.content=void 0,this.contentExcerpt=void 0,this.region=void 0,this.title=void 0,this.languageId=void 0,this.keyGroup=void 0}}Wg.Navigation={edit(t,e){return`${e?"/"+e:".."}/regional-content/edit/${t}`},create(t){return`${t?"/"+t:".."}/regional-content/new`},single(t,e){return`${e?"/"+e:".."}/regional-content/${t}`},query(t={},e){return`${e?"/"+e:".."}/regional-contents`},Redit:"regional-content/edit/:uniqueId",Rcreate:"regional-content/new",Rsingle:"regional-content/:uniqueId",Rquery:"regional-contents"};Wg.definition={rpc:{query:{}},permRewrite:{replace:"root.modules",with:"root.manage"},name:"regionalContent",features:{},security:{writeOnRoot:!0},gormMap:{},fields:[{name:"content",type:"html",validate:"required",computedType:"string",gormMap:{}},{name:"region",type:"string",validate:"required",computedType:"string",gormMap:{}},{name:"title",type:"string",computedType:"string",gormMap:{}},{name:"languageId",type:"string",validate:"required",computedType:"string",gorm:"index:regional_content_index,unique",gormMap:{}},{name:"keyGroup",type:"enum",validate:"required",of:[{k:"SMS_OTP",description:"Used when an email would be sent with one time password"},{k:"EMAIL_OTP",description:"Used when an sms would be sent with one time password"}],computedType:'"SMS_OTP" | "EMAIL_OTP"',gorm:"index:regional_content_index,unique",gormMap:{}}],cliShort:"rc",description:"Email templates, sms templates or other textual content which can be accessed."};Wg.Fields={...Vt.Fields,content:"content",region:"region",title:"title",languageId:"languageId",keyGroup:"keyGroup"};class HO extends Vt{constructor(...e){super(...e),this.children=void 0,this.enableRecaptcha2=void 0,this.enableOtp=void 0,this.requireOtpOnSignup=void 0,this.requireOtpOnSignin=void 0,this.recaptcha2ServerKey=void 0,this.recaptcha2ClientKey=void 0,this.enableTotp=void 0,this.forceTotp=void 0,this.forcePasswordOnPhone=void 0,this.forcePersonNameOnPhone=void 0,this.generalEmailProvider=void 0,this.generalEmailProviderId=void 0,this.generalGsmProvider=void 0,this.generalGsmProviderId=void 0,this.inviteToWorkspaceContent=void 0,this.inviteToWorkspaceContentId=void 0,this.emailOtpContent=void 0,this.emailOtpContentId=void 0,this.smsOtpContent=void 0,this.smsOtpContentId=void 0}}HO.Navigation={edit(t,e){return`${e?"/"+e:".."}/workspace-config/edit/${t}`},create(t){return`${t?"/"+t:".."}/workspace-config/new`},single(t,e){return`${e?"/"+e:".."}/workspace-config/${t}`},query(t={},e){return`${e?"/"+e:".."}/workspace-configs`},Redit:"workspace-config/edit/:uniqueId",Rcreate:"workspace-config/new",Rsingle:"workspace-config/:uniqueId",Rquery:"workspace-configs"};HO.definition={rpc:{query:{}},permRewrite:{replace:"root.modules",with:"root.manage"},name:"workspaceConfig",distinctBy:"workspace",features:{},security:{writeOnRoot:!0,readOnRoot:!0,resolveStrategy:"workspace"},gormMap:{},fields:[{name:"enableRecaptcha2",description:"Enables the recaptcha2 for authentication flow.",type:"bool?",computedType:"boolean",gormMap:{}},{name:"enableOtp",recommended:!0,description:"Enables the otp option. It's not forcing it, so user can choose if they want otp or password.",type:"bool?",computedType:"boolean",gormMap:{}},{name:"requireOtpOnSignup",recommended:!0,description:"Forces the user to have otp verification before can create an account. They can define their password still.",type:"bool?",computedType:"boolean",gormMap:{}},{name:"requireOtpOnSignin",recommended:!0,description:"Forces the user to use otp when signing in. Even if they have password set, they won't use it and only will be able to signin using that otp.",type:"bool?",default:!1,computedType:"boolean",gormMap:{}},{name:"recaptcha2ServerKey",description:"Secret which would be used to decrypt if the recaptcha is correct. Should not be available publicly.",type:"string",computedType:"string",gormMap:{}},{name:"recaptcha2ClientKey",description:"Secret which would be used for recaptcha2 on the client side. Can be publicly visible, and upon authenticating users it would be sent to front-end.",type:"string",computedType:"string",gormMap:{}},{name:"enableTotp",recommended:!0,description:"Enables user to make 2FA using apps such as google authenticator or microsoft authenticator.",type:"bool?",computedType:"boolean",gormMap:{}},{name:"forceTotp",recommended:!0,description:"Forces the user to setup a 2FA in order to access their account. Users which did not setup this won't be affected.",type:"bool?",computedType:"boolean",gormMap:{}},{name:"forcePasswordOnPhone",description:"Forces users who want to create account using phone number to also set a password on their account",type:"bool?",computedType:"boolean",gormMap:{}},{name:"forcePersonNameOnPhone",description:"Forces the creation of account using phone number to ask for user first name and last name",type:"bool?",computedType:"boolean",gormMap:{}},{name:"generalEmailProvider",description:"Email provider service, which will be used to send the messages using it's service. It doesn't affect the message content, rather, you can choose via which third-party service, or even your own smtp service to send emails.",type:"one",target:"EmailProviderEntity",computedType:"EmailProviderEntity",gormMap:{}},{name:"generalGsmProvider",description:"General service which would be used to send text messages (sms) using it's services or API.",type:"one",target:"GsmProviderEntity",computedType:"GsmProviderEntity",gormMap:{}},{name:"inviteToWorkspaceContent",description:"This template would be used, as default when a user is inviting a third-party into their own workspace.",type:"one",target:"RegionalContentEntity",computedType:"RegionalContentEntity",gormMap:{}},{name:"emailOtpContent",description:"Upon one time password request for email, the content will be read to fill the message which will go to user.",type:"one",target:"RegionalContentEntity",computedType:"RegionalContentEntity",gormMap:{}},{name:"smsOtpContent",description:"Upon OTP text messages, this template will be used to create such text message, including the one time password code.",type:"one",target:"RegionalContentEntity",computedType:"RegionalContentEntity",gormMap:{}}],cliName:"config",description:"Contains configuration which would be necessary for application environment to be running. At the moment, a single record is allowed, and only for root workspace. But in theory it could be configured per each workspace independently. For sub projects do not touch this, rather create a custom config entity if workspaces in the product need extra config."};HO.Fields={...Vt.Fields,enableRecaptcha2:"enableRecaptcha2",enableOtp:"enableOtp",requireOtpOnSignup:"requireOtpOnSignup",requireOtpOnSignin:"requireOtpOnSignin",recaptcha2ServerKey:"recaptcha2ServerKey",recaptcha2ClientKey:"recaptcha2ClientKey",enableTotp:"enableTotp",forceTotp:"forceTotp",forcePasswordOnPhone:"forcePasswordOnPhone",forcePersonNameOnPhone:"forcePersonNameOnPhone",generalEmailProviderId:"generalEmailProviderId",generalEmailProvider$:"generalEmailProvider",generalEmailProvider:IS.Fields,generalGsmProviderId:"generalGsmProviderId",generalGsmProvider$:"generalGsmProvider",generalGsmProvider:NS.Fields,inviteToWorkspaceContentId:"inviteToWorkspaceContentId",inviteToWorkspaceContent$:"inviteToWorkspaceContent",inviteToWorkspaceContent:Wg.Fields,emailOtpContentId:"emailOtpContentId",emailOtpContent$:"emailOtpContent",emailOtpContent:Wg.Fields,smsOtpContentId:"smsOtpContentId",smsOtpContent$:"smsOtpContent",smsOtpContent:Wg.Fields};var V8,G8,W8,K8,yf;function Y8(t,e,n,r,i){var o={};return Object.keys(r).forEach(function(u){o[u]=r[u]}),o.enumerable=!!o.enumerable,o.configurable=!!o.configurable,("value"in o||o.initializer)&&(o.writable=!0),o=n.slice().reverse().reduce(function(u,l){return l(t,e,u)||u},o),i&&o.initializer!==void 0&&(o.value=o.initializer?o.initializer.call(i):void 0,o.initializer=void 0),o.initializer===void 0?(Object.defineProperty(t,e,o),null):o}let JV=(V8=ft("workspace-config"),G8=dt("get"),W8=ft("workspace-wconfig/distiwnct"),K8=dt("patch"),yf=class{async getWorkspaceConfig(e){return{data:{enableOtp:!0,forcePasswordOnPhone:!0}}}async setWorkspaceConfig(e){return{data:e.body}}},Y8(yf.prototype,"getWorkspaceConfig",[V8,G8],Object.getOwnPropertyDescriptor(yf.prototype,"getWorkspaceConfig"),yf.prototype),Y8(yf.prototype,"setWorkspaceConfig",[W8,K8],Object.getOwnPropertyDescriptor(yf.prototype,"setWorkspaceConfig"),yf.prototype),yf);const QV=[new vV,new kV,new LV,new VV,new KV,new PV,new IV,new NV,new WV,new MV,new GV,new YV,new JV];var FC={exports:{}};/*! + configurations.`,resetToDefault:"Reset to default",role:"role",roleHint:"Select role",sender:"Sender",sidetitle:"Workspaces",slug:"Slug",title:"Title",type:"Type",workspaceName:"Workspace name",workspaceNameHint:"Enter the workspace name",workspaceTypeSlug:"Slug address",workspaceTypeSlugHint:"The path that publicly will be available to users, if they signup through this account this role would be assigned to them.",workspaceTypeTitle:"Title",workspaceTypeUniqueId:"Unique Id",workspaceTypeUniqueIdHint:"Unique id can be used to redirect user to direct signin",workspaceTypeTitleHint:"The title of the Workspace"}};function Iy(t){var n,r,i,o;const e={};if(t.error&&Array.isArray((n=t.error)==null?void 0:n.errors))for(const u of(r=t.error)==null?void 0:r.errors)e[u.location]=u.message;return t.status&&t.ok===!1?{form:`${t.status}`}:((i=t==null?void 0:t.error)!=null&&i.message&&(e.form=(o=t==null?void 0:t.error)==null?void 0:o.message),t.message?{form:`${t.message}`}:e)}function tG(){return("10000000-1000-4000-8000"+-1e11).replace(/[018]/g,t=>(t^crypto.getRandomValues(new Uint8Array(1))[0]&15>>t/4).toString(16))}function mN(t,e="",n={}){for(const r in t)if(t.hasOwnProperty(r)){const i=e?`${e}.${r}`:r;typeof t[r]=="object"&&!Array.isArray(t[r])&&!t[r].operation?mN(t[r],i,n):n[i]=t[r]}return n}function UA(t){const e={ł:"l",Ł:"L"};return t.normalize("NFD").replace(/[\u0300-\u036f]/g,"").replace(/[aeiouAEIOU]/g,"").replace(/[łŁ]/g,n=>e[n]||n).toLowerCase()}function nG(t,e){const n=mN(e);return t.filter(r=>Object.keys(n).every(i=>{let{operation:o,value:u}=n[i];u=UA(u||"");const l=UA($r.get(r,i)||"");if(!l)return!1;switch(o){case"contains":return l.includes(u);case"equals":return l===u;case"startsWith":return l.startsWith(u);case"endsWith":return l.endsWith(u);default:return!1}}))}class Tl{constructor(e){this.content=e}items(e){let n={};try{n=JSON.parse(e.jsonQuery)}catch{}return nG(this.content,n).filter((i,o)=>!(oe.startIndex+e.itemsPerPage-1))}total(){return this.content.length}create(e){const n={...e,uniqueId:tG().substr(0,12)};return this.content.push(n),n}getOne(e){return this.content.find(n=>n.uniqueId===e)}deletes(e){return this.content=this.content.filter(n=>!e.includes(n.uniqueId)),!0}patchOne(e){return this.content=this.content.map(n=>n.uniqueId===e.uniqueId?{...n,...e}:n),e}}const Wf=t=>t.split(" or ").map(e=>e.split(" = ")[1].trim()),BA=new Tl([]);var jA,qA,L0;function rG(t,e,n,r,i){var o={};return Object.keys(r).forEach(function(u){o[u]=r[u]}),o.enumerable=!!o.enumerable,o.configurable=!!o.configurable,("value"in o||o.initializer)&&(o.writable=!0),o=n.slice().reverse().reduce(function(u,l){return l(t,e,u)||u},o),i&&o.initializer!==void 0&&(o.value=o.initializer?o.initializer.call(i):void 0,o.initializer=void 0),o.initializer===void 0?(Object.defineProperty(t,e,o),null):o}let iG=(jA=ft("files"),qA=dt("get"),L0=class{async getFiles(e){return{data:{items:BA.items(e),itemsPerPage:e.itemsPerPage,totalItems:BA.total()}}}},rG(L0.prototype,"getFiles",[jA,qA],Object.getOwnPropertyDescriptor(L0.prototype,"getFiles"),L0.prototype),L0);class i3 extends Vt{constructor(...e){super(...e),this.children=void 0,this.type=void 0,this.apiKey=void 0}}i3.Navigation={edit(t,e){return`${e?"/"+e:".."}/email-provider/edit/${t}`},create(t){return`${t?"/"+t:".."}/email-provider/new`},single(t,e){return`${e?"/"+e:".."}/email-provider/${t}`},query(t={},e){return`${e?"/"+e:".."}/email-providers`},Redit:"email-provider/edit/:uniqueId",Rcreate:"email-provider/new",Rsingle:"email-provider/:uniqueId",Rquery:"email-providers"};i3.definition={rpc:{query:{}},permRewrite:{replace:"root.modules",with:"root.manage"},name:"emailProvider",features:{},security:{writeOnRoot:!0},gormMap:{},fields:[{name:"type",type:"enum",validate:"required",of:[{k:"terminal"},{k:"sendgrid"}],computedType:'"terminal" | "sendgrid"',gormMap:{}},{name:"apiKey",type:"string",computedType:"string",gormMap:{}}],description:"Thirdparty services which will send email, allows each workspace graphically configure their token without the need of restarting servers"};i3.Fields={...Vt.Fields,type:"type",apiKey:"apiKey"};class mT extends Vt{constructor(...e){super(...e),this.children=void 0,this.fromName=void 0,this.fromEmailAddress=void 0,this.replyTo=void 0,this.nickName=void 0}}mT.Navigation={edit(t,e){return`${e?"/"+e:".."}/email-sender/edit/${t}`},create(t){return`${t?"/"+t:".."}/email-sender/new`},single(t,e){return`${e?"/"+e:".."}/email-sender/${t}`},query(t={},e){return`${e?"/"+e:".."}/email-senders`},Redit:"email-sender/edit/:uniqueId",Rcreate:"email-sender/new",Rsingle:"email-sender/:uniqueId",Rquery:"email-senders"};mT.definition={rpc:{query:{}},permRewrite:{replace:"root.modules",with:"root.manage"},name:"emailSender",features:{},security:{writeOnRoot:!0},gormMap:{},fields:[{name:"fromName",type:"string",validate:"required",computedType:"string",gormMap:{}},{name:"fromEmailAddress",type:"string",validate:"required",computedType:"string",gorm:"unique",gormMap:{}},{name:"replyTo",type:"string",validate:"required",computedType:"string",gormMap:{}},{name:"nickName",type:"string",validate:"required",computedType:"string",gormMap:{}}],description:"All emails going from the system need to have a virtual sender (nick name, email address, etc)"};mT.Fields={...Vt.Fields,fromName:"fromName",fromEmailAddress:"fromEmailAddress",replyTo:"replyTo",nickName:"nickName"};class oo extends Vt{constructor(...e){super(...e),this.children=void 0,this.role=void 0,this.roleId=void 0,this.workspace=void 0}}oo.Navigation={edit(t,e){return`${e?"/"+e:".."}/public-join-key/edit/${t}`},create(t){return`${t?"/"+t:".."}/public-join-key/new`},single(t,e){return`${e?"/"+e:".."}/public-join-key/${t}`},query(t={},e){return`${e?"/"+e:".."}/public-join-keys`},Redit:"public-join-key/edit/:uniqueId",Rcreate:"public-join-key/new",Rsingle:"public-join-key/:uniqueId",Rquery:"public-join-keys"};oo.definition={rpc:{query:{}},name:"publicJoinKey",features:{},gormMap:{},fields:[{name:"role",type:"one",target:"RoleEntity",computedType:"RoleEntity",gormMap:{}},{name:"workspace",type:"one",target:"WorkspaceEntity",computedType:"WorkspaceEntity",gormMap:{}}],description:"Joining to different workspaces using a public link directly"};oo.Fields={...Vt.Fields,roleId:"roleId",role$:"role",role:Fr.Fields,workspace$:"workspace",workspace:Py.Fields};const gn={emailProvider:new Tl([]),emailSender:new Tl([]),workspaceInvite:new Tl([]),publicJoinKey:new Tl([]),workspaces:new Tl([])};var HA,zA,VA,GA,WA,KA,YA,JA,QA,XA,li;function U0(t,e,n,r,i){var o={};return Object.keys(r).forEach(function(u){o[u]=r[u]}),o.enumerable=!!o.enumerable,o.configurable=!!o.configurable,("value"in o||o.initializer)&&(o.writable=!0),o=n.slice().reverse().reduce(function(u,l){return l(t,e,u)||u},o),i&&o.initializer!==void 0&&(o.value=o.initializer?o.initializer.call(i):void 0,o.initializer=void 0),o.initializer===void 0?(Object.defineProperty(t,e,o),null):o}let aG=(HA=ft("email-providers"),zA=dt("get"),VA=ft("email-provider/:uniqueId"),GA=dt("get"),WA=ft("email-provider"),KA=dt("patch"),YA=ft("email-provider"),JA=dt("post"),QA=ft("email-provider"),XA=dt("delete"),li=class{async getEmailProviders(e){return{data:{items:gn.emailProvider.items(e),itemsPerPage:e.itemsPerPage,totalItems:gn.emailProvider.total()}}}async getEmailProviderByUniqueId(e){return{data:gn.emailProvider.getOne(e.paramValues[0])}}async patchEmailProviderByUniqueId(e){return{data:gn.emailProvider.patchOne(e.body)}}async postRole(e){return{data:gn.emailProvider.create(e.body)}}async deleteRole(e){return gn.emailProvider.deletes(Wf(e.body.query)),{data:{}}}},U0(li.prototype,"getEmailProviders",[HA,zA],Object.getOwnPropertyDescriptor(li.prototype,"getEmailProviders"),li.prototype),U0(li.prototype,"getEmailProviderByUniqueId",[VA,GA],Object.getOwnPropertyDescriptor(li.prototype,"getEmailProviderByUniqueId"),li.prototype),U0(li.prototype,"patchEmailProviderByUniqueId",[WA,KA],Object.getOwnPropertyDescriptor(li.prototype,"patchEmailProviderByUniqueId"),li.prototype),U0(li.prototype,"postRole",[YA,JA],Object.getOwnPropertyDescriptor(li.prototype,"postRole"),li.prototype),U0(li.prototype,"deleteRole",[QA,XA],Object.getOwnPropertyDescriptor(li.prototype,"deleteRole"),li.prototype),li);var ZA,e8,t8,n8,r8,i8,a8,o8,s8,u8,ci;function B0(t,e,n,r,i){var o={};return Object.keys(r).forEach(function(u){o[u]=r[u]}),o.enumerable=!!o.enumerable,o.configurable=!!o.configurable,("value"in o||o.initializer)&&(o.writable=!0),o=n.slice().reverse().reduce(function(u,l){return l(t,e,u)||u},o),i&&o.initializer!==void 0&&(o.value=o.initializer?o.initializer.call(i):void 0,o.initializer=void 0),o.initializer===void 0?(Object.defineProperty(t,e,o),null):o}let oG=(ZA=ft("email-senders"),e8=dt("get"),t8=ft("email-sender/:uniqueId"),n8=dt("get"),r8=ft("email-sender"),i8=dt("patch"),a8=ft("email-sender"),o8=dt("post"),s8=ft("email-sender"),u8=dt("delete"),ci=class{async getEmailSenders(e){return{data:{items:gn.emailSender.items(e),itemsPerPage:e.itemsPerPage,totalItems:gn.emailSender.total()}}}async getEmailSenderByUniqueId(e){return{data:gn.emailSender.getOne(e.paramValues[0])}}async patchEmailSenderByUniqueId(e){return{data:gn.emailSender.patchOne(e.body)}}async postRole(e){return{data:gn.emailSender.create(e.body)}}async deleteRole(e){return gn.emailSender.deletes(Wf(e.body.query)),{data:{}}}},B0(ci.prototype,"getEmailSenders",[ZA,e8],Object.getOwnPropertyDescriptor(ci.prototype,"getEmailSenders"),ci.prototype),B0(ci.prototype,"getEmailSenderByUniqueId",[t8,n8],Object.getOwnPropertyDescriptor(ci.prototype,"getEmailSenderByUniqueId"),ci.prototype),B0(ci.prototype,"patchEmailSenderByUniqueId",[r8,i8],Object.getOwnPropertyDescriptor(ci.prototype,"patchEmailSenderByUniqueId"),ci.prototype),B0(ci.prototype,"postRole",[a8,o8],Object.getOwnPropertyDescriptor(ci.prototype,"postRole"),ci.prototype),B0(ci.prototype,"deleteRole",[s8,u8],Object.getOwnPropertyDescriptor(ci.prototype,"deleteRole"),ci.prototype),ci);var l8,c8,f8,d8,h8,p8,m8,g8,y8,v8,fi;function j0(t,e,n,r,i){var o={};return Object.keys(r).forEach(function(u){o[u]=r[u]}),o.enumerable=!!o.enumerable,o.configurable=!!o.configurable,("value"in o||o.initializer)&&(o.writable=!0),o=n.slice().reverse().reduce(function(u,l){return l(t,e,u)||u},o),i&&o.initializer!==void 0&&(o.value=o.initializer?o.initializer.call(i):void 0,o.initializer=void 0),o.initializer===void 0?(Object.defineProperty(t,e,o),null):o}let sG=(l8=ft("public-join-keys"),c8=dt("get"),f8=ft("public-join-key/:uniqueId"),d8=dt("get"),h8=ft("public-join-key"),p8=dt("patch"),m8=ft("public-join-key"),g8=dt("post"),y8=ft("public-join-key"),v8=dt("delete"),fi=class{async getPublicJoinKeys(e){return{data:{items:gn.publicJoinKey.items(e),itemsPerPage:e.itemsPerPage,totalItems:gn.publicJoinKey.total()}}}async getPublicJoinKeyByUniqueId(e){return{data:gn.publicJoinKey.getOne(e.paramValues[0])}}async patchPublicJoinKeyByUniqueId(e){return{data:gn.publicJoinKey.patchOne(e.body)}}async postPublicJoinKey(e){return{data:gn.publicJoinKey.create(e.body)}}async deletePublicJoinKey(e){return gn.publicJoinKey.deletes(Wf(e.body.query)),{data:{}}}},j0(fi.prototype,"getPublicJoinKeys",[l8,c8],Object.getOwnPropertyDescriptor(fi.prototype,"getPublicJoinKeys"),fi.prototype),j0(fi.prototype,"getPublicJoinKeyByUniqueId",[f8,d8],Object.getOwnPropertyDescriptor(fi.prototype,"getPublicJoinKeyByUniqueId"),fi.prototype),j0(fi.prototype,"patchPublicJoinKeyByUniqueId",[h8,p8],Object.getOwnPropertyDescriptor(fi.prototype,"patchPublicJoinKeyByUniqueId"),fi.prototype),j0(fi.prototype,"postPublicJoinKey",[m8,g8],Object.getOwnPropertyDescriptor(fi.prototype,"postPublicJoinKey"),fi.prototype),j0(fi.prototype,"deletePublicJoinKey",[y8,v8],Object.getOwnPropertyDescriptor(fi.prototype,"deletePublicJoinKey"),fi.prototype),fi);const Gg=new Tl([{name:"Administrator",uniqueId:"administrator"}]);var b8,w8,S8,C8,$8,E8,x8,O8,T8,_8,di;function q0(t,e,n,r,i){var o={};return Object.keys(r).forEach(function(u){o[u]=r[u]}),o.enumerable=!!o.enumerable,o.configurable=!!o.configurable,("value"in o||o.initializer)&&(o.writable=!0),o=n.slice().reverse().reduce(function(u,l){return l(t,e,u)||u},o),i&&o.initializer!==void 0&&(o.value=o.initializer?o.initializer.call(i):void 0,o.initializer=void 0),o.initializer===void 0?(Object.defineProperty(t,e,o),null):o}let uG=(b8=ft("roles"),w8=dt("get"),S8=ft("role/:uniqueId"),C8=dt("get"),$8=ft("role"),E8=dt("patch"),x8=ft("role"),O8=dt("delete"),T8=ft("role"),_8=dt("post"),di=class{async getRoles(e){return{data:{items:Gg.items(e),itemsPerPage:e.itemsPerPage,totalItems:Gg.total()}}}async getRoleByUniqueId(e){return{data:Gg.getOne(e.paramValues[0])}}async patchRoleByUniqueId(e){return{data:Gg.patchOne(e.body)}}async deleteRole(e){return Gg.deletes(Wf(e.body.query)),{data:{}}}async postRole(e){return{data:Gg.create(e.body)}}},q0(di.prototype,"getRoles",[b8,w8],Object.getOwnPropertyDescriptor(di.prototype,"getRoles"),di.prototype),q0(di.prototype,"getRoleByUniqueId",[S8,C8],Object.getOwnPropertyDescriptor(di.prototype,"getRoleByUniqueId"),di.prototype),q0(di.prototype,"patchRoleByUniqueId",[$8,E8],Object.getOwnPropertyDescriptor(di.prototype,"patchRoleByUniqueId"),di.prototype),q0(di.prototype,"deleteRole",[x8,O8],Object.getOwnPropertyDescriptor(di.prototype,"deleteRole"),di.prototype),q0(di.prototype,"postRole",[T8,_8],Object.getOwnPropertyDescriptor(di.prototype,"postRole"),di.prototype),di);class gT extends Vt{constructor(...e){super(...e),this.children=void 0,this.label=void 0,this.href=void 0,this.icon=void 0,this.activeMatcher=void 0,this.capability=void 0,this.capabilityId=void 0}}gT.Navigation={edit(t,e){return`${e?"/"+e:".."}/app-menu/edit/${t}`},create(t){return`${t?"/"+t:".."}/app-menu/new`},single(t,e){return`${e?"/"+e:".."}/app-menu/${t}`},query(t={},e){return`${e?"/"+e:".."}/app-menus`},Redit:"app-menu/edit/:uniqueId",Rcreate:"app-menu/new",Rsingle:"app-menu/:uniqueId",Rquery:"app-menus"};gT.definition={rpc:{query:{}},name:"appMenu",features:{},gormMap:{},fields:[{name:"label",recommended:!0,description:"Label that will be visible to user",type:"string",translate:!0,computedType:"string",gormMap:{}},{name:"href",recommended:!0,description:"Location that will be navigated in case of click or selection on ui",type:"string",computedType:"string",gormMap:{}},{name:"icon",recommended:!0,description:"Icon string address which matches the resources on the front-end apps.",type:"string",computedType:"string",gormMap:{}},{name:"activeMatcher",description:"Custom window location url matchers, for inner screens.",type:"string",computedType:"string",gormMap:{}},{name:"capability",description:"The permission which is required for the menu to be visible.",type:"one",target:"CapabilityEntity",module:"fireback",computedType:"CapabilityEntity",gormMap:{}}],description:"Manages the menus in the app, (for example tab views, sidebar items, etc.)",cte:!0};gT.Fields={...Vt.Fields,label:"label",href:"href",icon:"icon",activeMatcher:"activeMatcher",capabilityId:"capabilityId",capability$:"capability",capability:hb.Fields};const lG=[{activeMatcher:null,capability:null,capabilityId:null,children:[{activeMatcher:"/workspace/invite(s)?",capability:null,capabilityId:null,created:1711043161316914e3,createdFormatted:"2024/03/21 18:46:01",href:"/selfservice/workspace-invites",icon:"common/workspaceinvite.svg",label:"Invites",parentId:"fireback",uniqueId:"invites",updated:1711043161316914e3,visibility:"A"},{activeMatcher:"publicjoinkey",capability:null,capabilityId:null,created:171104316131093e4,createdFormatted:"2024/03/21 18:46:01",href:"/selfservice/public-join-keys",icon:"common/joinkey.svg",label:"Public join keys",parentId:"fireback",uniqueId:"publicjoinkey",updated:171104316131093e4,visibility:"A"},{activeMatcher:"/role/",capability:null,capabilityId:null,created:1711043161314546e3,createdFormatted:"2024/03/21 18:46:01",href:"/selfservice/roles",icon:"common/role.svg",label:"Roles",parentId:"fireback",uniqueId:"roles",updated:1711043161314546e3,visibility:"A"}],created:1711043161319555e3,createdFormatted:"2024/03/21 18:46:01",href:null,icon:null,label:"Workspace",uniqueId:"fireback",updated:1711043161319555e3,visibility:"A"},{activeMatcher:null,capability:null,capabilityId:null,children:[{activeMatcher:"drives",capability:null,capabilityId:null,created:1711043161320805e3,createdFormatted:"2024/03/21 18:46:01",href:"/manage/drives",icon:"common/drive.svg",label:"Drive & Files",parentId:"root",uniqueId:"drive_files",updated:1711043161320805e3,visibility:"A"},{activeMatcher:"email-provider",capability:null,capabilityId:null,created:1711043161309663e3,createdFormatted:"2024/03/21 18:46:01",href:"/manage/email-providers",icon:"common/emailprovider.svg",label:"Email Provider",parentId:"root",uniqueId:"email_provider",updated:1711043161309663e3,visibility:"A"},{activeMatcher:"email-sender",capability:null,capabilityId:null,created:171104316131211e4,createdFormatted:"2024/03/21 18:46:01",href:"/manage/email-senders",icon:"common/mail.svg",label:"Email Sender",parentId:"root",uniqueId:"email_sender",updated:171104316131211e4,visibility:"A"},{activeMatcher:"/user/",capability:null,capabilityId:null,created:1711043161318088e3,createdFormatted:"2024/03/21 18:46:01",href:"/manage/users",icon:"common/user.svg",label:"Users",parentId:"root",uniqueId:"users",updated:1711043161318088e3,visibility:"A"},{activeMatcher:"/workspace/config",capability:null,capabilityId:null,created:17110431613157e5,createdFormatted:"2024/03/21 18:46:01",href:"/manage/workspace-config",icon:"ios-theme/icons/settings.svg",label:"Workspace Config",parentId:"root",uniqueId:"workspace_config",updated:17110431613157e5,visibility:"A"},{activeMatcher:"workspace-type",capability:null,capabilityId:null,created:1711043161313308e3,createdFormatted:"2024/03/21 18:46:01",href:"/manage/workspace-types",icon:"ios-theme/icons/settings.svg",label:"Workspace Types",parentId:"root",uniqueId:"workspace_types",updated:1711043161313308e3,visibility:"A"},{activeMatcher:"/workspaces/|workspace/new",capability:null,capabilityId:null,created:171104316132216e4,createdFormatted:"2024/03/21 18:46:01",href:"/manage/workspaces",icon:"common/workspace.svg",label:"Workspaces",parentId:"root",uniqueId:"workspaces",updated:171104316132216e4,visibility:"A"}],created:1711043161319555e3,createdFormatted:"2024/03/21 18:46:01",href:null,icon:null,label:"Root",uniqueId:"root",updated:1711043161319555e3,visibility:"A"},{activeMatcher:null,capability:null,capabilityId:null,children:[{activeMatcher:"/invites/",capability:null,capabilityId:null,created:1711043161328479e3,createdFormatted:"2024/03/21 18:46:01",href:"/selfservice/user-invitations",icon:"common/workspaceinvite.svg",label:"My Invitations",parentId:"personal",uniqueId:"my_invitation",updated:1711043161328479e3,visibility:"A"},{activeMatcher:"/settings",capability:null,capabilityId:null,created:1711043161325229e3,createdFormatted:"2024/03/21 18:46:01",href:"/settings",icon:"ios-theme/icons/settings.svg",label:"Settings",parentId:"personal",uniqueId:"settings",updated:1711043161325229e3,visibility:"A"},{activeMatcher:"/selfservice",capability:null,capabilityId:null,created:1711043161325229e3,createdFormatted:"2024/03/21 18:46:01",href:"/selfservice",icon:"ios-theme/icons/settings.svg",label:"Account & Profile",parentId:"personal",uniqueId:"settings",updated:1711043161325229e3,visibility:"A"}],created:1711043161323813e3,createdFormatted:"2024/03/21 18:46:01",href:null,icon:null,label:"Personal",uniqueId:"personal",updated:1711043161323813e3,visibility:"A"}];var A8,R8,H0;function cG(t,e,n,r,i){var o={};return Object.keys(r).forEach(function(u){o[u]=r[u]}),o.enumerable=!!o.enumerable,o.configurable=!!o.configurable,("value"in o||o.initializer)&&(o.writable=!0),o=n.slice().reverse().reduce(function(u,l){return l(t,e,u)||u},o),i&&o.initializer!==void 0&&(o.value=o.initializer?o.initializer.call(i):void 0,o.initializer=void 0),o.initializer===void 0?(Object.defineProperty(t,e,o),null):o}let fG=(A8=ft("cte-app-menus"),R8=dt("get"),H0=class{async getAppMenu(e){return{data:{items:lG}}}},cG(H0.prototype,"getAppMenu",[A8,R8],Object.getOwnPropertyDescriptor(H0.prototype,"getAppMenu"),H0.prototype),H0);const dG=()=>{if(Math.random()>.5)switch(Math.floor(Math.random()*3)){case 0:return`10.${Math.floor(Math.random()*256)}.${Math.floor(Math.random()*256)}.${Math.floor(Math.random()*256)}`;case 1:return`172.${Math.floor(16+Math.random()*16)}.${Math.floor(Math.random()*256)}.${Math.floor(Math.random()*256)}`;case 2:return`192.168.${Math.floor(Math.random()*256)}.${Math.floor(Math.random()*256)}`;default:return`192.168.${Math.floor(Math.random()*256)}.${Math.floor(Math.random()*256)}`}else return`${Math.floor(Math.random()*223)+1}.${Math.floor(Math.random()*256)}.${Math.floor(Math.random()*256)}.${Math.floor(Math.random()*256)}`},hG=["Ali","Behnaz","Carlos","Daniela","Ethan","Fatima","Gustavo","Helena","Isla","Javad","Kamila","Leila","Mateo","Nasim","Omid","Parisa","Rania","Saeed","Tomas","Ursula","Vali","Wojtek","Zara","Alice","Bob","Charlie","Diana","George","Mohammed","Julia","Khalid","Lena","Mohammad","Nina","Oscar","Quentin","Rosa","Sam","Tina","Umar","Vera","Waleed","Xenia","Yara","Ziad","Maxim","Johann","Krzysztof","Baris","Mehmet"],pG=["Smith","Johnson","Williams","Brown","Jones","Garcia","Miller","Davis","Rodriguez","Martinez","Hernandez","Lopez","Gonzalez","Wilson","Anderson","Thomas","Taylor","Moore","Jackson","Martin","Lee","Perez","Thompson","White","Harris","Sanchez","Clark","Ramirez","Lewis","Robinson","Walker","Young","Allen","King","Wright","Scott","Torres","Nguyen","Hill","Flores","Green","Adams","Nelson","Baker","Hall","Rivera","Campbell","Mitchell","Carter","Roberts","Kowalski","Nowak","Jankowski","Zieliński","Wiśniewski","Lewandowski","Kaczmarek","Bąk","Pereira","Altıntaş"],mG=[{addressLine1:"123 Main St",addressLine2:"Apt 4",city:"Berlin",stateOrProvince:"Berlin",postalCode:"10115",countryCode:"DE"},{addressLine1:"456 Elm St",addressLine2:"Apt 23",city:"Paris",stateOrProvince:"Île-de-France",postalCode:"75001",countryCode:"FR"},{addressLine1:"789 Oak Dr",addressLine2:"Apt 9",city:"Warszawa",stateOrProvince:"Mazowieckie",postalCode:"01010",countryCode:"PL"},{addressLine1:"101 Maple Ave",addressLine2:"",city:"Tehran",stateOrProvince:"تهران",postalCode:"11365",countryCode:"IR"},{addressLine1:"202 Pine St",addressLine2:"Apt 7",city:"Madrid",stateOrProvince:"Community of Madrid",postalCode:"28001",countryCode:"ES"},{addressLine1:"456 Park Ave",addressLine2:"Suite 5",city:"New York",stateOrProvince:"NY",postalCode:"10001",countryCode:"US"},{addressLine1:"789 Sunset Blvd",addressLine2:"Unit 32",city:"Los Angeles",stateOrProvince:"CA",postalCode:"90001",countryCode:"US"},{addressLine1:"12 Hauptstrasse",addressLine2:"Apt 2",city:"Munich",stateOrProvince:"Bavaria",postalCode:"80331",countryCode:"DE"},{addressLine1:"75 Taksim Square",addressLine2:"Apt 12",city:"Istanbul",stateOrProvince:"Istanbul",postalCode:"34430",countryCode:"TR"},{addressLine1:"321 Wierzbowa",addressLine2:"",city:"Kraków",stateOrProvince:"Małopolskie",postalCode:"31000",countryCode:"PL"},{addressLine1:"55 Rue de Rivoli",addressLine2:"Apt 10",city:"Paris",stateOrProvince:"Île-de-France",postalCode:"75004",countryCode:"FR"},{addressLine1:"1001 Tehran Ave",addressLine2:"",city:"Tehran",stateOrProvince:"تهران",postalCode:"14155",countryCode:"IR"},{addressLine1:"9 Calle de Alcalá",addressLine2:"Apt 6",city:"Madrid",stateOrProvince:"Madrid",postalCode:"28009",countryCode:"ES"},{addressLine1:"222 King St",addressLine2:"Suite 1B",city:"London",stateOrProvince:"London",postalCode:"E1 6AN",countryCode:"GB"},{addressLine1:"15 St. Peters Rd",addressLine2:"",city:"Toronto",stateOrProvince:"Ontario",postalCode:"M5A 1A2",countryCode:"CA"},{addressLine1:"1340 Via Roma",addressLine2:"",city:"Rome",stateOrProvince:"Lazio",postalCode:"00100",countryCode:"IT"},{addressLine1:"42 Nevsky Prospekt",addressLine2:"Apt 1",city:"Saint Petersburg",stateOrProvince:"Leningradskaya",postalCode:"190000",countryCode:"RU"},{addressLine1:"3 Rüdesheimer Str.",addressLine2:"Apt 9",city:"Frankfurt",stateOrProvince:"Hessen",postalCode:"60326",countryCode:"DE"},{addressLine1:"271 Süleyman Demirel Bulvarı",addressLine2:"Apt 45",city:"Ankara",stateOrProvince:"Ankara",postalCode:"06100",countryCode:"TR"},{addressLine1:"7 Avenues des Champs-Élysées",addressLine2:"",city:"Paris",stateOrProvince:"Île-de-France",postalCode:"75008",countryCode:"FR"},{addressLine1:"125 E. 9th St.",addressLine2:"Apt 12",city:"Chicago",stateOrProvince:"IL",postalCode:"60606",countryCode:"US"},{addressLine1:"30 Rue de la Paix",addressLine2:"",city:"Paris",stateOrProvince:"Île-de-France",postalCode:"75002",countryCode:"FR"},{addressLine1:"16 Zlote Tarasy",addressLine2:"Apt 18",city:"Warszawa",stateOrProvince:"Mazowieckie",postalCode:"00-510",countryCode:"PL"},{addressLine1:"120 Váci utca",addressLine2:"",city:"Budapest",stateOrProvince:"Budapest",postalCode:"1056",countryCode:"HU"},{addressLine1:"22 Sukhbaatar Sq.",addressLine2:"",city:"Ulaanbaatar",stateOrProvince:"Central",postalCode:"14190",countryCode:"MN"},{addressLine1:"34 Princes Street",addressLine2:"Flat 1",city:"Edinburgh",stateOrProvince:"Scotland",postalCode:"EH2 4AY",countryCode:"GB"},{addressLine1:"310 Alzaibiyah",addressLine2:"",city:"Amman",stateOrProvince:"Amman",postalCode:"11183",countryCode:"JO"},{addressLine1:"401 Taksim Caddesi",addressLine2:"Apt 25",city:"Istanbul",stateOrProvince:"Istanbul",postalCode:"34430",countryCode:"TR"},{addressLine1:"203 High Street",addressLine2:"Unit 3",city:"London",stateOrProvince:"London",postalCode:"W1T 2LQ",countryCode:"GB"},{addressLine1:"58 Via Nazionale",addressLine2:"",city:"Rome",stateOrProvince:"Lazio",postalCode:"00184",countryCode:"IT"},{addressLine1:"47 Gloucester Road",addressLine2:"",city:"London",stateOrProvince:"London",postalCode:"SW7 4QA",countryCode:"GB"},{addressLine1:"98 Calle de Bravo Murillo",addressLine2:"",city:"Madrid",stateOrProvince:"Madrid",postalCode:"28039",countryCode:"ES"},{addressLine1:"57 Mirza Ghalib Street",addressLine2:"",city:"Tehran",stateOrProvince:"تهران",postalCode:"15996",countryCode:"IR"},{addressLine1:"35 Królewska St",addressLine2:"",city:"Warszawa",stateOrProvince:"Mazowieckie",postalCode:"00-065",countryCode:"PL"},{addressLine1:"12 5th Ave",addressLine2:"",city:"New York",stateOrProvince:"NY",postalCode:"10128",countryCode:"US"}],gG=()=>{const t=new Uint8Array(18);window.crypto.getRandomValues(t);const e=Array.from(t).map(r=>r.toString(36).padStart(2,"0")).join(""),n=Date.now().toString(36);return n+e.slice(0,30-n.length)},yG=()=>({uniqueId:gG(),firstName:$r.sample(hG),lastName:$r.sample(pG),photo:`https://randomuser.me/api/portraits/men/${Math.floor(Math.random()*100)}.jpg`,birthDate:new Date().getDate()+"/"+new Date().getMonth()+"/"+new Date().getFullYear(),gender:Math.random()>.5?1:0,title:Math.random()>.5?"Mr.":"Ms.",avatar:`https://randomuser.me/api/portraits/men/${Math.floor(Math.random()*100)}.jpg`,lastIpAddress:dG(),primaryAddress:$r.sample(mG)}),Wg=new Tl($r.times(1e4,()=>yG()));var P8,I8,N8,M8,k8,D8,F8,L8,U8,B8,hi;function z0(t,e,n,r,i){var o={};return Object.keys(r).forEach(function(u){o[u]=r[u]}),o.enumerable=!!o.enumerable,o.configurable=!!o.configurable,("value"in o||o.initializer)&&(o.writable=!0),o=n.slice().reverse().reduce(function(u,l){return l(t,e,u)||u},o),i&&o.initializer!==void 0&&(o.value=o.initializer?o.initializer.call(i):void 0,o.initializer=void 0),o.initializer===void 0?(Object.defineProperty(t,e,o),null):o}let vG=(P8=ft("users"),I8=dt("get"),N8=ft("user"),M8=dt("delete"),k8=ft("user/:uniqueId"),D8=dt("get"),F8=ft("user"),L8=dt("patch"),U8=ft("user"),B8=dt("post"),hi=class{async getUsers(e){return{data:{items:Wg.items(e),itemsPerPage:e.itemsPerPage,totalItems:Wg.total()}}}async deleteUser(e){return Wg.deletes(Wf(e.body.query)),{data:{}}}async getUserByUniqueId(e){return{data:Wg.getOne(e.paramValues[0])}}async patchUserByUniqueId(e){return{data:Wg.patchOne(e.body)}}async postUser(e){return{data:Wg.create(e.body)}}},z0(hi.prototype,"getUsers",[P8,I8],Object.getOwnPropertyDescriptor(hi.prototype,"getUsers"),hi.prototype),z0(hi.prototype,"deleteUser",[N8,M8],Object.getOwnPropertyDescriptor(hi.prototype,"deleteUser"),hi.prototype),z0(hi.prototype,"getUserByUniqueId",[k8,D8],Object.getOwnPropertyDescriptor(hi.prototype,"getUserByUniqueId"),hi.prototype),z0(hi.prototype,"patchUserByUniqueId",[F8,L8],Object.getOwnPropertyDescriptor(hi.prototype,"patchUserByUniqueId"),hi.prototype),z0(hi.prototype,"postUser",[U8,B8],Object.getOwnPropertyDescriptor(hi.prototype,"postUser"),hi.prototype),hi);class bG{}var j8,q8,H8,z8,V8,G8,W8,K8,Y8,J8,pi;function V0(t,e,n,r,i){var o={};return Object.keys(r).forEach(function(u){o[u]=r[u]}),o.enumerable=!!o.enumerable,o.configurable=!!o.configurable,("value"in o||o.initializer)&&(o.writable=!0),o=n.slice().reverse().reduce(function(u,l){return l(t,e,u)||u},o),i&&o.initializer!==void 0&&(o.value=o.initializer?o.initializer.call(i):void 0,o.initializer=void 0),o.initializer===void 0?(Object.defineProperty(t,e,o),null):o}let wG=(j8=ft("workspace-invites"),q8=dt("get"),H8=ft("workspace-invite/:uniqueId"),z8=dt("get"),V8=ft("workspace-invite"),G8=dt("patch"),W8=ft("workspace/invite"),K8=dt("post"),Y8=ft("workspace-invite"),J8=dt("delete"),pi=class{async getWorkspaceInvites(e){return{data:{items:gn.workspaceInvite.items(e),itemsPerPage:e.itemsPerPage,totalItems:gn.workspaceInvite.total()}}}async getWorkspaceInviteByUniqueId(e){return{data:gn.workspaceInvite.getOne(e.paramValues[0])}}async patchWorkspaceInviteByUniqueId(e){return{data:gn.workspaceInvite.patchOne(e.body)}}async postWorkspaceInvite(e){return{data:gn.workspaceInvite.create(e.body)}}async deleteWorkspaceInvite(e){return gn.workspaceInvite.deletes(Wf(e.body.query)),{data:{}}}},V0(pi.prototype,"getWorkspaceInvites",[j8,q8],Object.getOwnPropertyDescriptor(pi.prototype,"getWorkspaceInvites"),pi.prototype),V0(pi.prototype,"getWorkspaceInviteByUniqueId",[H8,z8],Object.getOwnPropertyDescriptor(pi.prototype,"getWorkspaceInviteByUniqueId"),pi.prototype),V0(pi.prototype,"patchWorkspaceInviteByUniqueId",[V8,G8],Object.getOwnPropertyDescriptor(pi.prototype,"patchWorkspaceInviteByUniqueId"),pi.prototype),V0(pi.prototype,"postWorkspaceInvite",[W8,K8],Object.getOwnPropertyDescriptor(pi.prototype,"postWorkspaceInvite"),pi.prototype),V0(pi.prototype,"deleteWorkspaceInvite",[Y8,J8],Object.getOwnPropertyDescriptor(pi.prototype,"deleteWorkspaceInvite"),pi.prototype),pi);const Kg=new Tl([{title:"Student workspace type",uniqueId:"1",slug:"/student"}]);var Q8,X8,Z8,eR,tR,nR,rR,iR,aR,oR,mi;function G0(t,e,n,r,i){var o={};return Object.keys(r).forEach(function(u){o[u]=r[u]}),o.enumerable=!!o.enumerable,o.configurable=!!o.configurable,("value"in o||o.initializer)&&(o.writable=!0),o=n.slice().reverse().reduce(function(u,l){return l(t,e,u)||u},o),i&&o.initializer!==void 0&&(o.value=o.initializer?o.initializer.call(i):void 0,o.initializer=void 0),o.initializer===void 0?(Object.defineProperty(t,e,o),null):o}let SG=(Q8=ft("workspace-types"),X8=dt("get"),Z8=ft("workspace-type/:uniqueId"),eR=dt("get"),tR=ft("workspace-type"),nR=dt("patch"),rR=ft("workspace-type"),iR=dt("delete"),aR=ft("workspace-type"),oR=dt("post"),mi=class{async getWorkspaceTypes(e){return{data:{items:Kg.items(e),itemsPerPage:e.itemsPerPage,totalItems:Kg.total()}}}async getWorkspaceTypeByUniqueId(e){return{data:Kg.getOne(e.paramValues[0])}}async patchWorkspaceTypeByUniqueId(e){return{data:Kg.patchOne(e.body)}}async deleteWorkspaceType(e){return Kg.deletes(Wf(e.body.query)),{data:{}}}async postWorkspaceType(e){return{data:Kg.create(e.body)}}},G0(mi.prototype,"getWorkspaceTypes",[Q8,X8],Object.getOwnPropertyDescriptor(mi.prototype,"getWorkspaceTypes"),mi.prototype),G0(mi.prototype,"getWorkspaceTypeByUniqueId",[Z8,eR],Object.getOwnPropertyDescriptor(mi.prototype,"getWorkspaceTypeByUniqueId"),mi.prototype),G0(mi.prototype,"patchWorkspaceTypeByUniqueId",[tR,nR],Object.getOwnPropertyDescriptor(mi.prototype,"patchWorkspaceTypeByUniqueId"),mi.prototype),G0(mi.prototype,"deleteWorkspaceType",[rR,iR],Object.getOwnPropertyDescriptor(mi.prototype,"deleteWorkspaceType"),mi.prototype),G0(mi.prototype,"postWorkspaceType",[aR,oR],Object.getOwnPropertyDescriptor(mi.prototype,"postWorkspaceType"),mi.prototype),mi);var sR,uR,lR,cR,fR,dR,hR,pR,mR,gR,yR,vR,Or;function Yg(t,e,n,r,i){var o={};return Object.keys(r).forEach(function(u){o[u]=r[u]}),o.enumerable=!!o.enumerable,o.configurable=!!o.configurable,("value"in o||o.initializer)&&(o.writable=!0),o=n.slice().reverse().reduce(function(u,l){return l(t,e,u)||u},o),i&&o.initializer!==void 0&&(o.value=o.initializer?o.initializer.call(i):void 0,o.initializer=void 0),o.initializer===void 0?(Object.defineProperty(t,e,o),null):o}let CG=(sR=ft("workspaces"),uR=dt("get"),lR=ft("cte-workspaces"),cR=dt("get"),fR=ft("workspace/:uniqueId"),dR=dt("get"),hR=ft("workspace"),pR=dt("patch"),mR=ft("workspace"),gR=dt("delete"),yR=ft("workspace"),vR=dt("post"),Or=class{async getWorkspaces(e){return{data:{items:gn.workspaces.items(e),itemsPerPage:e.itemsPerPage,totalItems:gn.workspaces.total()}}}async getWorkspacesCte(e){return{data:{items:gn.workspaces.items(e),itemsPerPage:e.itemsPerPage,totalItems:gn.workspaces.total()}}}async getWorkspaceByUniqueId(e){return{data:gn.workspaces.getOne(e.paramValues[0])}}async patchWorkspaceByUniqueId(e){return{data:gn.workspaces.patchOne(e.body)}}async deleteWorkspace(e){return gn.workspaces.deletes(Wf(e.body.query)),{data:{}}}async postWorkspace(e){return{data:gn.workspaces.create(e.body)}}},Yg(Or.prototype,"getWorkspaces",[sR,uR],Object.getOwnPropertyDescriptor(Or.prototype,"getWorkspaces"),Or.prototype),Yg(Or.prototype,"getWorkspacesCte",[lR,cR],Object.getOwnPropertyDescriptor(Or.prototype,"getWorkspacesCte"),Or.prototype),Yg(Or.prototype,"getWorkspaceByUniqueId",[fR,dR],Object.getOwnPropertyDescriptor(Or.prototype,"getWorkspaceByUniqueId"),Or.prototype),Yg(Or.prototype,"patchWorkspaceByUniqueId",[hR,pR],Object.getOwnPropertyDescriptor(Or.prototype,"patchWorkspaceByUniqueId"),Or.prototype),Yg(Or.prototype,"deleteWorkspace",[mR,gR],Object.getOwnPropertyDescriptor(Or.prototype,"deleteWorkspace"),Or.prototype),Yg(Or.prototype,"postWorkspace",[yR,vR],Object.getOwnPropertyDescriptor(Or.prototype,"postWorkspace"),Or.prototype),Or);class a3 extends Vt{constructor(...e){super(...e),this.children=void 0,this.apiKey=void 0,this.mainSenderNumber=void 0,this.type=void 0,this.invokeUrl=void 0,this.invokeBody=void 0}}a3.Navigation={edit(t,e){return`${e?"/"+e:".."}/gsm-provider/edit/${t}`},create(t){return`${t?"/"+t:".."}/gsm-provider/new`},single(t,e){return`${e?"/"+e:".."}/gsm-provider/${t}`},query(t={},e){return`${e?"/"+e:".."}/gsm-providers`},Redit:"gsm-provider/edit/:uniqueId",Rcreate:"gsm-provider/new",Rsingle:"gsm-provider/:uniqueId",Rquery:"gsm-providers"};a3.definition={rpc:{query:{}},permRewrite:{replace:"root.modules",with:"root.manage"},name:"gsmProvider",features:{},gormMap:{},fields:[{name:"apiKey",type:"string",computedType:"string",gormMap:{}},{name:"mainSenderNumber",type:"string",validate:"required",computedType:"string",gormMap:{}},{name:"type",type:"enum",validate:"required",of:[{k:"url"},{k:"terminal"},{k:"mediana"}],computedType:'"url" | "terminal" | "mediana"',gormMap:{}},{name:"invokeUrl",type:"string",computedType:"string",gormMap:{}},{name:"invokeBody",type:"string",computedType:"string",gormMap:{}}]};a3.Fields={...Vt.Fields,apiKey:"apiKey",mainSenderNumber:"mainSenderNumber",type:"type",invokeUrl:"invokeUrl",invokeBody:"invokeBody"};class my extends Vt{constructor(...e){super(...e),this.children=void 0,this.content=void 0,this.contentExcerpt=void 0,this.region=void 0,this.title=void 0,this.languageId=void 0,this.keyGroup=void 0}}my.Navigation={edit(t,e){return`${e?"/"+e:".."}/regional-content/edit/${t}`},create(t){return`${t?"/"+t:".."}/regional-content/new`},single(t,e){return`${e?"/"+e:".."}/regional-content/${t}`},query(t={},e){return`${e?"/"+e:".."}/regional-contents`},Redit:"regional-content/edit/:uniqueId",Rcreate:"regional-content/new",Rsingle:"regional-content/:uniqueId",Rquery:"regional-contents"};my.definition={rpc:{query:{}},permRewrite:{replace:"root.modules",with:"root.manage"},name:"regionalContent",features:{},security:{writeOnRoot:!0},gormMap:{},fields:[{name:"content",type:"html",validate:"required",computedType:"string",gormMap:{}},{name:"region",type:"string",validate:"required",computedType:"string",gormMap:{}},{name:"title",type:"string",computedType:"string",gormMap:{}},{name:"languageId",type:"string",validate:"required",computedType:"string",gorm:"index:regional_content_index,unique",gormMap:{}},{name:"keyGroup",type:"enum",validate:"required",of:[{k:"SMS_OTP",description:"Used when an email would be sent with one time password"},{k:"EMAIL_OTP",description:"Used when an sms would be sent with one time password"}],computedType:'"SMS_OTP" | "EMAIL_OTP"',gorm:"index:regional_content_index,unique",gormMap:{}}],cliShort:"rc",description:"Email templates, sms templates or other textual content which can be accessed."};my.Fields={...Vt.Fields,content:"content",region:"region",title:"title",languageId:"languageId",keyGroup:"keyGroup"};class yT extends Vt{constructor(...e){super(...e),this.children=void 0,this.enableRecaptcha2=void 0,this.enableOtp=void 0,this.requireOtpOnSignup=void 0,this.requireOtpOnSignin=void 0,this.recaptcha2ServerKey=void 0,this.recaptcha2ClientKey=void 0,this.enableTotp=void 0,this.forceTotp=void 0,this.forcePasswordOnPhone=void 0,this.forcePersonNameOnPhone=void 0,this.generalEmailProvider=void 0,this.generalEmailProviderId=void 0,this.generalGsmProvider=void 0,this.generalGsmProviderId=void 0,this.inviteToWorkspaceContent=void 0,this.inviteToWorkspaceContentId=void 0,this.emailOtpContent=void 0,this.emailOtpContentId=void 0,this.smsOtpContent=void 0,this.smsOtpContentId=void 0}}yT.Navigation={edit(t,e){return`${e?"/"+e:".."}/workspace-config/edit/${t}`},create(t){return`${t?"/"+t:".."}/workspace-config/new`},single(t,e){return`${e?"/"+e:".."}/workspace-config/${t}`},query(t={},e){return`${e?"/"+e:".."}/workspace-configs`},Redit:"workspace-config/edit/:uniqueId",Rcreate:"workspace-config/new",Rsingle:"workspace-config/:uniqueId",Rquery:"workspace-configs"};yT.definition={rpc:{query:{}},permRewrite:{replace:"root.modules",with:"root.manage"},name:"workspaceConfig",distinctBy:"workspace",features:{},security:{writeOnRoot:!0,readOnRoot:!0,resolveStrategy:"workspace"},gormMap:{},fields:[{name:"enableRecaptcha2",description:"Enables the recaptcha2 for authentication flow.",type:"bool?",computedType:"boolean",gormMap:{}},{name:"enableOtp",recommended:!0,description:"Enables the otp option. It's not forcing it, so user can choose if they want otp or password.",type:"bool?",computedType:"boolean",gormMap:{}},{name:"requireOtpOnSignup",recommended:!0,description:"Forces the user to have otp verification before can create an account. They can define their password still.",type:"bool?",computedType:"boolean",gormMap:{}},{name:"requireOtpOnSignin",recommended:!0,description:"Forces the user to use otp when signing in. Even if they have password set, they won't use it and only will be able to signin using that otp.",type:"bool?",default:!1,computedType:"boolean",gormMap:{}},{name:"recaptcha2ServerKey",description:"Secret which would be used to decrypt if the recaptcha is correct. Should not be available publicly.",type:"string",computedType:"string",gormMap:{}},{name:"recaptcha2ClientKey",description:"Secret which would be used for recaptcha2 on the client side. Can be publicly visible, and upon authenticating users it would be sent to front-end.",type:"string",computedType:"string",gormMap:{}},{name:"enableTotp",recommended:!0,description:"Enables user to make 2FA using apps such as google authenticator or microsoft authenticator.",type:"bool?",computedType:"boolean",gormMap:{}},{name:"forceTotp",recommended:!0,description:"Forces the user to setup a 2FA in order to access their account. Users which did not setup this won't be affected.",type:"bool?",computedType:"boolean",gormMap:{}},{name:"forcePasswordOnPhone",description:"Forces users who want to create account using phone number to also set a password on their account",type:"bool?",computedType:"boolean",gormMap:{}},{name:"forcePersonNameOnPhone",description:"Forces the creation of account using phone number to ask for user first name and last name",type:"bool?",computedType:"boolean",gormMap:{}},{name:"generalEmailProvider",description:"Email provider service, which will be used to send the messages using it's service. It doesn't affect the message content, rather, you can choose via which third-party service, or even your own smtp service to send emails.",type:"one",target:"EmailProviderEntity",computedType:"EmailProviderEntity",gormMap:{}},{name:"generalGsmProvider",description:"General service which would be used to send text messages (sms) using it's services or API.",type:"one",target:"GsmProviderEntity",computedType:"GsmProviderEntity",gormMap:{}},{name:"inviteToWorkspaceContent",description:"This template would be used, as default when a user is inviting a third-party into their own workspace.",type:"one",target:"RegionalContentEntity",computedType:"RegionalContentEntity",gormMap:{}},{name:"emailOtpContent",description:"Upon one time password request for email, the content will be read to fill the message which will go to user.",type:"one",target:"RegionalContentEntity",computedType:"RegionalContentEntity",gormMap:{}},{name:"smsOtpContent",description:"Upon OTP text messages, this template will be used to create such text message, including the one time password code.",type:"one",target:"RegionalContentEntity",computedType:"RegionalContentEntity",gormMap:{}}],cliName:"config",description:"Contains configuration which would be necessary for application environment to be running. At the moment, a single record is allowed, and only for root workspace. But in theory it could be configured per each workspace independently. For sub projects do not touch this, rather create a custom config entity if workspaces in the product need extra config."};yT.Fields={...Vt.Fields,enableRecaptcha2:"enableRecaptcha2",enableOtp:"enableOtp",requireOtpOnSignup:"requireOtpOnSignup",requireOtpOnSignin:"requireOtpOnSignin",recaptcha2ServerKey:"recaptcha2ServerKey",recaptcha2ClientKey:"recaptcha2ClientKey",enableTotp:"enableTotp",forceTotp:"forceTotp",forcePasswordOnPhone:"forcePasswordOnPhone",forcePersonNameOnPhone:"forcePersonNameOnPhone",generalEmailProviderId:"generalEmailProviderId",generalEmailProvider$:"generalEmailProvider",generalEmailProvider:i3.Fields,generalGsmProviderId:"generalGsmProviderId",generalGsmProvider$:"generalGsmProvider",generalGsmProvider:a3.Fields,inviteToWorkspaceContentId:"inviteToWorkspaceContentId",inviteToWorkspaceContent$:"inviteToWorkspaceContent",inviteToWorkspaceContent:my.Fields,emailOtpContentId:"emailOtpContentId",emailOtpContent$:"emailOtpContent",emailOtpContent:my.Fields,smsOtpContentId:"smsOtpContentId",smsOtpContent$:"smsOtpContent",smsOtpContent:my.Fields};var bR,wR,SR,CR,$f;function $R(t,e,n,r,i){var o={};return Object.keys(r).forEach(function(u){o[u]=r[u]}),o.enumerable=!!o.enumerable,o.configurable=!!o.configurable,("value"in o||o.initializer)&&(o.writable=!0),o=n.slice().reverse().reduce(function(u,l){return l(t,e,u)||u},o),i&&o.initializer!==void 0&&(o.value=o.initializer?o.initializer.call(i):void 0,o.initializer=void 0),o.initializer===void 0?(Object.defineProperty(t,e,o),null):o}let $G=(bR=ft("workspace-config"),wR=dt("get"),SR=ft("workspace-wconfig/distiwnct"),CR=dt("patch"),$f=class{async getWorkspaceConfig(e){return{data:{enableOtp:!0,forcePasswordOnPhone:!0}}}async setWorkspaceConfig(e){return{data:e.body}}},$R($f.prototype,"getWorkspaceConfig",[bR,wR],Object.getOwnPropertyDescriptor($f.prototype,"getWorkspaceConfig"),$f.prototype),$R($f.prototype,"setWorkspaceConfig",[SR,CR],Object.getOwnPropertyDescriptor($f.prototype,"setWorkspaceConfig"),$f.prototype),$f);const EG=[new VV,new uG,new fG,new vG,new SG,new iG,new aG,new oG,new wG,new sG,new bG,new CG,new $G];var l$={exports:{}};/*! Copyright (c) 2018 Jed Watson. Licensed under the MIT License (MIT), see http://jedwatson.github.io/classnames -*/var J8;function XV(){return J8||(J8=1,(function(t){(function(){var e={}.hasOwnProperty;function n(){for(var o="",u=0;uN.jsx(nx,{...t,to:t.href,children:t.children});function Lr(){const t=UO(),e=Dz(),n=Ll(),r=(o,u,l,d=!1)=>{const h=eG(window.location.pathname);let g=o.replace("{locale}",h);t(g,{replace:d,state:l})},i=(o,u,l)=>{r(o,u,l,!0)};return{asPath:n.pathname,state:n.state,pathname:"",query:e,push:r,goBack:()=>t(-1),goBackOrDefault:o=>t(-1),goForward:()=>t(1),replace:i}}function nG(t){let e="en";const n=t.match(/^\/(fa|en|ar|pl|de)\//);return n&&n[1]&&(e=n[1]),e}function $i(){const t=Lr();let e="en",n="us",r="ltr";return Ci.FORCED_LOCALE?e=Ci.FORCED_LOCALE:t.query.locale?e=`${t.query.locale}`:e=nG(t.asPath),e==="fa"&&(n="ir",r="rtl"),{locale:e,asPath:t.asPath,region:n,dir:r}}const rG={onlyOnRoot:"این بخش فقط برای دسترسی روت قابل مشاهده است. در صورت نیاز به اطلاعات بیشتر با مدیر سیستم خود تماس بگیرید.",abac:{backToApp:"رفتن به صفحات داخلی",email:"ایمیل",emailAddress:"آدرس ایمیل",firstName:"نام",lastName:"نام خانوادگی",otpOrDifferent:"یا یه حساب کاربری دیگه را امتحان کنید",otpResetMethod:"روش ریست کردن رمز",otpTitle:"رمز یک بار ورود",otpTitleHint:"برای ورود یک کد ۶ رقمی به وسیله یکی از روش های ارتباطی دریافت میکنید. بعدا میتوانید رمز خود را از طریق تنظیمات عوض کنید.",password:"کلمه عبور",remember:"مرا به یاد بسپار",signin:"ورود",signout:"خروج",signup:"ثبت نام",signupType:"نوع ثبت نام",signupTypeHint:"نوع حساب کاربری خود را مشخص کنید.",viaEmail:"از طریق ایمیل",viaSms:"از طریق پیامک"},about:"درباره",acChecks:{moduleName:"چک ها"},acbankbranches:{acBankBranchArchiveTitle:"شعب بانک",bank:"بانک",bankHint:"بانکی که این شعبه به آن تعلق دارد",bankId:"بانک",city:"شهر",cityHint:"شهری که این بانک در آن وجود دارد",cityId:"شهر",editAcBank:"ویرایش شعبه",editAcBankBranch:"ویرایش شعبه",locaitonHint:"شهر، استان و یا ناحیه ای که این شعبه در آن است",location:"مکان",name:"نام شعبه",nameHint:"نام این شعبه بانک، کد یا اسم محل یا شهر هم مجاز است",newAcBankBranch:"شعبه جدید بانک",province:"استان",provinceHint:"استانی که این بانک در آن قرار دارد"},acbanks:{acBankArchiveTitle:"بانک ها",editAcBank:"ویرایش بانک",name:"نام بانک",nameHint:"نام بانک را به صورت کلی برای شناسایی راحت تر وارد کنید",newAcBank:"بانک جدید"},accesibility:{leftHand:"چپ دست",rightHand:"راست دست"},accheck:{acCheckArchiveTitle:"چک ها"},acchecks:{acCheckArchiveTitle:"چک ها",amount:"مبلغ",amountFormatted:"مبلغ",amountHint:"مبلغ قابل پرداخت چک",bankBranch:"شعبه بانک",bankBranchCityName:"نام شهر",bankBranchHint:"شعبه بانکی که این چک را صادر کرده است",bankBranchId:"شعبه بانک",bankBranchName:"ن",currency:"واحد پول",currencyHint:"واحد پولی که این چک دارد",customer:"مشتری",customerHint:"مشتری یا شخصی که این چک به او مربوط است",customerId:"مشتری",dueDate:"تاریخ سررسید",dueDateFormatted:"تاریخ سررسید",dueDateHint:"زمانی که چک قابل نقد شدن در بانک باشد",editAcCheck:"ویرایش چک",identifier:"شناسه چک",identifierHint:"شناسه یا کد مخصوص این چک",issueDate:"تاریخ صدور",issueDateFormatted:"تاریخ صدور",issueDateHint:"تاریخی که چک صادر شده است",newAcCheck:"چک جدید",recipientBankBranch:"بانک دریافت کننده",recipientBankBranchHint:"بانکی که این چک برای نقد شدن به آن ارسال شده",recipientCustomer:"مشتری دریافت کننده",recipientCustomerHint:"مشتری که این چک را دریافت کرده است",status:"وضعیت",statusHint:"وضعیت نهایی این چک"},accheckstatuses:{acCheckStatusArchiveTitle:"وضعیت چک",editAcCheckStatus:"ویرایش وضعیت چک",name:"نام وضعیت",nameHint:"نام وضعیتی که به چک ها اختصاص داده میشود",newAcCheckStatus:"وضعیت جدید چک"},accountcollections:{archiveTitle:"سرفصل های حسابداری",editAccountCollection:"ویرایش سرفصل",name:"نام سرفصل",nameHint:"نامی که برای این سرفصل حسابداری در نظر گرفته شده",newAccountCollection:"سرفصل جدید"},accounting:{account:{currency:"واحد پول",name:"نام"},accountCollections:"سرفصل های حسابداری",accountCollectionsHint:"سرفصل های حسابداری",amount:"میزان",legalUnit:{name:"نام"},settlementDate:"تاریخ حل و فصل",summary:"خلاصه",title:"عنوان",transactionDate:"تاریخ معامله"},actions:{addJob:"+ اضافه کردن شغل",back:"Back",edit:"ویرایش",new:"جدید"},addLocation:"اضافه کردن لوکیشن",alreadyHaveAnAccount:"از قبل حساب کاربری دارید؟ به جای آن وارد شوید",answerSheet:{grammarProgress:"گرامر %",listeningProgress:"استماع ٪",readingProgress:"خواندن %",sourceExam:"آزمون منبع",speakingProgress:"صحبت كردن ٪",takerFullname:"نام کامل دانش آموز",writingProgress:"% نوشتن"},authenticatedOnly:"این بخش شما را ملزم می کند که قبل از مشاهده یا ویرایش هر نوع وارد شوید.",b1PolishSample:{b12018:"2018 B1 Sample",grammar:"گرامر",listenning:"شنیدار",reading:"خواندن",speaking:"صحبت",writing:"نوشتار"},backup:{generateAndDownload:"ایجاد و دانلود",generateDescription:`در اینجا می توانید یک نسخه پشتیبان از سیستم ایجاد کنید. مهم است که به خاطر داشته باشید +*/var ER;function xG(){return ER||(ER=1,(function(t){(function(){var e={}.hasOwnProperty;function n(){for(var o="",u=0;uN.jsx(Rx,{...t,to:t.href,children:t.children});function Br(){const t=hT(),e=lV(),n=zl(),r=(o,u,l,d=!1)=>{const h=TG(window.location.pathname);let g=o.replace("{locale}",h);t(g,{replace:d,state:l})},i=(o,u,l)=>{r(o,u,l,!0)};return{asPath:n.pathname,state:n.state,pathname:"",query:e,push:r,goBack:()=>t(-1),goBackOrDefault:o=>t(-1),goForward:()=>t(1),replace:i}}function AG(t){let e="en";const n=t.match(/^\/(fa|en|ar|pl|de)\//);return n&&n[1]&&(e=n[1]),e}function xi(){const t=Br();let e="en",n="us",r="ltr";return $i.FORCED_LOCALE?e=$i.FORCED_LOCALE:t.query.locale?e=`${t.query.locale}`:e=AG(t.asPath),e==="fa"&&(n="ir",r="rtl"),{locale:e,asPath:t.asPath,region:n,dir:r}}const RG={onlyOnRoot:"این بخش فقط برای دسترسی روت قابل مشاهده است. در صورت نیاز به اطلاعات بیشتر با مدیر سیستم خود تماس بگیرید.",abac:{backToApp:"رفتن به صفحات داخلی",email:"ایمیل",emailAddress:"آدرس ایمیل",firstName:"نام",lastName:"نام خانوادگی",otpOrDifferent:"یا یه حساب کاربری دیگه را امتحان کنید",otpResetMethod:"روش ریست کردن رمز",otpTitle:"رمز یک بار ورود",otpTitleHint:"برای ورود یک کد ۶ رقمی به وسیله یکی از روش های ارتباطی دریافت میکنید. بعدا میتوانید رمز خود را از طریق تنظیمات عوض کنید.",password:"کلمه عبور",remember:"مرا به یاد بسپار",signin:"ورود",signout:"خروج",signup:"ثبت نام",signupType:"نوع ثبت نام",signupTypeHint:"نوع حساب کاربری خود را مشخص کنید.",viaEmail:"از طریق ایمیل",viaSms:"از طریق پیامک"},about:"درباره",acChecks:{moduleName:"چک ها"},acbankbranches:{acBankBranchArchiveTitle:"شعب بانک",bank:"بانک",bankHint:"بانکی که این شعبه به آن تعلق دارد",bankId:"بانک",city:"شهر",cityHint:"شهری که این بانک در آن وجود دارد",cityId:"شهر",editAcBank:"ویرایش شعبه",editAcBankBranch:"ویرایش شعبه",locaitonHint:"شهر، استان و یا ناحیه ای که این شعبه در آن است",location:"مکان",name:"نام شعبه",nameHint:"نام این شعبه بانک، کد یا اسم محل یا شهر هم مجاز است",newAcBankBranch:"شعبه جدید بانک",province:"استان",provinceHint:"استانی که این بانک در آن قرار دارد"},acbanks:{acBankArchiveTitle:"بانک ها",editAcBank:"ویرایش بانک",name:"نام بانک",nameHint:"نام بانک را به صورت کلی برای شناسایی راحت تر وارد کنید",newAcBank:"بانک جدید"},accesibility:{leftHand:"چپ دست",rightHand:"راست دست"},accheck:{acCheckArchiveTitle:"چک ها"},acchecks:{acCheckArchiveTitle:"چک ها",amount:"مبلغ",amountFormatted:"مبلغ",amountHint:"مبلغ قابل پرداخت چک",bankBranch:"شعبه بانک",bankBranchCityName:"نام شهر",bankBranchHint:"شعبه بانکی که این چک را صادر کرده است",bankBranchId:"شعبه بانک",bankBranchName:"ن",currency:"واحد پول",currencyHint:"واحد پولی که این چک دارد",customer:"مشتری",customerHint:"مشتری یا شخصی که این چک به او مربوط است",customerId:"مشتری",dueDate:"تاریخ سررسید",dueDateFormatted:"تاریخ سررسید",dueDateHint:"زمانی که چک قابل نقد شدن در بانک باشد",editAcCheck:"ویرایش چک",identifier:"شناسه چک",identifierHint:"شناسه یا کد مخصوص این چک",issueDate:"تاریخ صدور",issueDateFormatted:"تاریخ صدور",issueDateHint:"تاریخی که چک صادر شده است",newAcCheck:"چک جدید",recipientBankBranch:"بانک دریافت کننده",recipientBankBranchHint:"بانکی که این چک برای نقد شدن به آن ارسال شده",recipientCustomer:"مشتری دریافت کننده",recipientCustomerHint:"مشتری که این چک را دریافت کرده است",status:"وضعیت",statusHint:"وضعیت نهایی این چک"},accheckstatuses:{acCheckStatusArchiveTitle:"وضعیت چک",editAcCheckStatus:"ویرایش وضعیت چک",name:"نام وضعیت",nameHint:"نام وضعیتی که به چک ها اختصاص داده میشود",newAcCheckStatus:"وضعیت جدید چک"},accountcollections:{archiveTitle:"سرفصل های حسابداری",editAccountCollection:"ویرایش سرفصل",name:"نام سرفصل",nameHint:"نامی که برای این سرفصل حسابداری در نظر گرفته شده",newAccountCollection:"سرفصل جدید"},accounting:{account:{currency:"واحد پول",name:"نام"},accountCollections:"سرفصل های حسابداری",accountCollectionsHint:"سرفصل های حسابداری",amount:"میزان",legalUnit:{name:"نام"},settlementDate:"تاریخ حل و فصل",summary:"خلاصه",title:"عنوان",transactionDate:"تاریخ معامله"},actions:{addJob:"+ اضافه کردن شغل",back:"Back",edit:"ویرایش",new:"جدید"},addLocation:"اضافه کردن لوکیشن",alreadyHaveAnAccount:"از قبل حساب کاربری دارید؟ به جای آن وارد شوید",answerSheet:{grammarProgress:"گرامر %",listeningProgress:"استماع ٪",readingProgress:"خواندن %",sourceExam:"آزمون منبع",speakingProgress:"صحبت كردن ٪",takerFullname:"نام کامل دانش آموز",writingProgress:"% نوشتن"},authenticatedOnly:"این بخش شما را ملزم می کند که قبل از مشاهده یا ویرایش هر نوع وارد شوید.",b1PolishSample:{b12018:"2018 B1 Sample",grammar:"گرامر",listenning:"شنیدار",reading:"خواندن",speaking:"صحبت",writing:"نوشتار"},backup:{generateAndDownload:"ایجاد و دانلود",generateDescription:`در اینجا می توانید یک نسخه پشتیبان از سیستم ایجاد کنید. مهم است که به خاطر داشته باشید شما از داده هایی که برای شما قابل مشاهده است تولید خواهید کرد. پشتیبان‌گیری باید با استفاده از حساب‌های مدیریتی انجام شود تا از پوشش همه داده‌های موجود در سیستم اطمینان حاصل شود.`,generateTitle:"ایجاد پشتیبان",restoreDescription:"در اینجا می‌توانید فایل‌های پشتیبان یا داده‌هایی را که از نصب دیگری منتقل کرده‌اید، وارد سیستم کنید.",restoreTitle:"بازیابی نسخه های پشتیبان",uploadAndRestore:"آپلود و بازیابی"},banks:{title:"بانک ها"},classroom:{classRoomName:"نام کلاس درس",classRoomNameHint:"عنوان کلاس را وارد کنید، به عنوان مثال: اسپانیایی گروه A1.1",description:"شرح",descriptionHint:"با چند کلمه توضیح دهید که این کلاس درس در مورد چیست، تا دانش آموزان آن را به راحتی پیدا کنند",editClassRoom:"ویرایش کلاس درس",gogoleMeetUrlHint:"آدرس اینترنتی را که زبان آموزان برای دسترسی به کلاس باز می کنند قرار دهید",googleMeetUrl:"آدرس اینترنتی Google Meet",members:"اعضا",membersHint:"دانش آموزان (اعضایی) را که می توانند به این محتوای کلاس دسترسی داشته باشند انتخاب کنید و شرکت کنید",newClassroom:"کلاس درس جدید",provider:"ارائه دهنده را انتخاب کنید",providerHint:"ارائه دهندگان نرم افزارهایی هستند که می توانید جلسه تماس ویدیویی خود را در بالای آن میزبانی کنید",providers:{googleMeet:"Google Meet",zoom:"بزرگنمایی"},title:"کلاس درس"},close:"بستن",cloudProjects:{clientId:"شناسه مشتری",name:"نام",secret:"راز"},common:{isNUll:"تعیین نشده",cancel:"لغو",no:"خیر",noaccess:"شما به این بخش از برنامه دسترسی ندارید. برای مشاوره با سرپرست خود تماس بگیرید",parent:"رکورد مادر",parentHint:"اگر این رکورد دارای سر مجموعه است آن را انتخاب کنید",save:"ذخیره",yes:"بله"},commonProfile:{},confirm:"تایید",continue:"ادامه",controlsheets:{active:"فعال",archiveTitle:"کنترل شیت",editControlSheet:"ویرایش کنترل شیت",inactive:"غیرفعال",isRunning:"درحال اجرا",name:"نام",nameHint:"نام کنترل شیت برای دسترسی بهتر",newControlSheet:"کنترل شیت جدید"},course:{availableCourses:"دوره های موجود",courseDescription:"شرح دوره",courseDescriptionHint:"در مورد دوره به طور کامل توضیح دهید تا افراد بتوانند قبل از ثبت نام در مورد آن مطالعه کنند",courseExcerpt:"گزیده دوره",courseExcerptHint:"شرح دوره را در 1 یا 2 خط خلاصه کنید",courseId:"Course Id",courseTitle:"عنوان دوره",courseTitleHint:"عنوان دوره را وارد کنید، مانند الگوریتم در C++",editCourse:"ویرایش دوره",myCourses:"دوره های من",name:"Ali",newCourse:"دوره جدید",noCourseAvailable:"هیچ دوره ای در اینجا موجود نیست. برای دیدن دوره های اختصاصی ممکن است لازم باشد با حساب دیگری وارد شوید",noCourseEnrolled:"شما در حال حاضر در هیچ دوره ای ثبت نام نکرده اید. دوره زیر را پیدا کنید و ثبت نام کنید.",title:"عنوان"},createAccount:"ایجاد حساب کاربری",created:"زمان ایجاد شد",currentUser:{editProfile:"ویرایش نمایه",profile:"مشخصات",signin:"ورود",signout:"خروج از سیستم"},dashboards:"محیط کار",datanodes:{addReader:"اضافه کردن خواننده",addWriter:"اضافه کردن نویسنده",archiveTitle:"دیتا نود ها",dataType:"نوع دیتا",expanderFunction:"Expander function",expanderFunctionHint:"How to cast the content into value array",filePath:"File Path",filePathHint:"File address on the system",key:"Data key",keyHint:"Data key is the sub key of a data node",keyReadable:"Readable",keyReadableHint:"If this sub key is readable",keyWritable:"Writable",keyWritableHint:"If this sub key is writable",modbusRtuAddress:"Address",modbusRtuAddressHint:"Address",modbusRtuDataBits:"DataBits",modbusRtuDataBitsHint:"DataBits",modbusRtuParity:"Parity",modbusRtuParityHint:"Parity",modbusRtuSlaveId:"SlaveId",modbusRtuSlaveIdHint:"SlaveId",modbusRtuStopBits:"StopBits",modbusRtuStopBitsHint:"StopBits",modbusRtuTimeout:"Timeout",modbusRtuTimeoutHint:"Timeout",modbusTcpHost:"Host",modbusTcpHostHint:"Host",modbusTcpPort:"Port",modbusTcpPortHint:"Port",modbusTcpSlaveId:"Slave id",modbusTcpSlaveIdHint:"Slave id",modbusTcpTimeout:"Timeout",modbusTcpTimeoutHint:"Timeout",mode:"حالت",modeHint:"حالت دیتا نود",mqttBody:"بدنه پیام",mqttBodyHInt:"پیامی که ارسال خواهد شد",mqttTopic:"عنوان پیام",mqttTopicHint:"موضوع پیام که به MQTT ارسال خواهد شد",nodeReader:"خواننده نود",nodeReaderConfig:"تنظیم نود",nodeReaderConfigHint:"تنظیمات مربوط به نحوه خواندن اطلاعات",nodeReaderHint:"نوع خواننده اطلاعات از روی نود مشخص کنید",nodeWriter:"نویسنده نود",nodeWriterHint:"نوع نویسنده که اطلاعات را بر روی نود مینویسد مشخص کنید",serialPort:"سریال پورت",serialPortHint:"انتخاب سریال پورت های موجود و متصل به سیستم",type:"نوع دیتا",typeHint:"نوع دیتایی که این نوع نگهداری یا منتقل میکند.",udpHost:"Host",udpHostHint:"UDP Host Address",udpPort:"Port",udpPortHint:"UDP Port Number"},datepicker:{day:"روز",month:"ماه",year:"سال"},debugInfo:"نمایش اطلاعات دیباگ",deleteAction:"حذف",deleteConfirmMessage:"آیا از حذف کردن این آیتم ها مطمین هستید؟",deleteConfirmation:"مطمئنی؟",devices:{deviceModbusConfig:"تنظیمات مدباس دستگاه",deviceModbusConfigHint:"تنظیمات مربوط به نوع دستگاه مدباس مانند آدرس ها و رجیستر ها",devicetemplateArchiveTitle:"دستگاه ها",editDevice:"ویرایش دستگاه",ip:"IP",ipHint:"آدرس دستگاه به صورت آی پی ۴",model:"مدل",modelHint:"مدل یا سریال دستگاه",name:"نام دستگاه",nameHint:"نامی که برای دستگاه در سطح نرم افزار گذاشته میشود",newDevice:"دستگاه جدید",securityType:"نوع امنیت بی سیم",securityTypeHint:"نوع رمزگذاری هنگام اتصال به این شبکه وایرلس",type:"نوع دستگاه",typeHint:"نوع فیزیکی دستگاه ",typeId:"نوع",typeIdHint:"نوع دستگاه",wifiPassword:"رمز وای فای",wifiPasswordHint:"رمز هنگام اتصال به وای فای (خالی هم مورد قبول است)",wifiSSID:"شناسه وای فای",wifiSSIDHint:"نام شبکه وای فای یا همان SSID"},devicetype:{archiveTitle:"انواع دستگاه",editDeviceType:"ویرایش نوع دستگاه",name:"نام نوع دستگاه",nameHint:"نوع دستگاه را نام گذاری کنید",newDeviceType:"نوع دستگاه جدید"},diagram:"دیاگرام",drive:{attachFile:"اضافه کردن فایل پیوست",driveTitle:"درایو",menu:"فایل ها",name:"نام",size:"اندازه",title:"عنوان",type:"تایپ کنید",viewPath:"آدرس نمایش",virtualPath:"مسیر مجازی"},dropNFiles:"برای شروع آپلود، {n} فایل را رها کنید",edit:"ویرایش",errors:{UNKOWN_ERRROR:"خطای ناشناخته ای رخ داده است"},exam:{startInstruction:"امتحان جدیدی را با کلیک کردن روی دکمه شروع کنید، ما پیشرفت شما را پیگیری می کنیم تا بتوانید بعداً بازگردید.",startNew:"امتحان جدیدی را شروع کنید",title:"امتحان"},examProgress:{grammarProgress:"پیشرفت گرامر:",listeningProgress:"پیشرفت گوش دادن:",readingProgress:"پیشرفت خواندن:",speakingProgress:"پیشرفت صحبت کردن:",writingProgress:"پیشرفت نوشتن:"},examSession:{highlightMissing:"برجسته کردن از دست رفته",showAnswers:"نمایش پاسخ ها"},fb:{commonProfile:"پروفایل خودت را ویرایش کن",editMailProvider:"ارائه دهنده ایمیل",editMailSender:"فرستنده ایمیل را ویرایش کنید",editPublicJoinKey:"کلید پیوستن عمومی را ویرایش کنید",editRole:"نقش را ویرایش کنید",editWorkspaceType:"ویرایش نوع تیم",newMailProvider:"ارائه دهنده ایمیل جدید",newMailSender:"فرستنده ایمیل جدید",newPublicJoinKey:"کلید پیوستن عمومی جدید",newRole:"نقش جدید",newWorkspaceType:"تیم جدید",publicJoinKey:"کلید پیوستن عمومی"},fbMenu:{emailProvider:"ارائه دهنده ایمیل",emailProviders:"ارائه دهندگان ایمیل",emailSender:"فرستنده ایمیل",emailSenders:"ارسال کنندگان ایمیل",gsmProvider:"سرویس های تماس",keyboardShortcuts:"میانبرها",myInvitations:"دعوتنامه های من",publicJoinKey:"کلیدهای پیوستن عمومی",roles:"نقش ها",title:"سیستم",users:"کاربران",workspaceInvites:"دعوت نامه ها",workspaceTypes:"انواع تیم ها",workspaces:"فضاهای کاری"},featureNotAvailableOnMock:"این بخش در نسخه دمو وجود ندارد. دقت فرمایید که نسخه ای از نرم افزار که شما با آن کار میکنید صرفا برای نمایش بوده و سرور واقعی ارتباط نمی گیرد. بنابراین هیچ اطلاعاتی ذخیره نمیشوند.",financeMenu:{accountName:"نام کیف پول",accountNameHint:"نامی که کیف پول را از بقیه متمایز میکند",amount:"میزان",amountHint:"مبلغ پرداختی را وارد کنید",currency:"واحد پول",currencyHint:"ارزی که این حساب باید در آن باشد را انتخاب کنید",editPaymentRequest:"درخواست پرداخت را ویرایش کنید",editVirtualAccount:"ویرایش حساب مجازی",newPaymentRequest:"درخواست پرداخت جدید",newVirtualAccount:"اکانت مجازی جدید",paymentMethod:"روش پرداخت",paymentMethodHint:"مکانیزم روش پرداخت را انتخاب کنید",paymentRequest:"درخواست پرداخت",paymentRequests:"درخواست های پرداخت",paymentStatus:"وضعیت پرداخت",subject:"موضوع",summary:"مانده",title:"امور مالی",transaction:{amount:"مقدار",subject:"موضوع",summary:"مانده"},virtualAccount:"حساب کاربری مجازی",virtualAccountHint:"حساب مجازی را انتخاب کنید که پرداخت به آن انجام می شود",virtualAccounts:"حساب های مجازی"},firstTime:"اولین بار در برنامه، یا رمز عبور را گم کرده اید؟",forcedLayout:{forcedLayoutGeneralMessage:"دسترسی به این بخش نیازمند حساب کاربری و ورود به سیستم است"},forgotPassword:"رمز عبور را فراموش کرده اید",generalSettings:{accessibility:{description:"تنظیماتی که مربوط به توانایی های فیزیکی و یا شرایط ویژه جسمانی مرتبط هستند",title:"دسترسی بهتر"},debugSettings:{description:"اطلاعات اشکال زدایی برنامه را برای توسعه دهندگان یا میزهای راهنمایی ببینید",title:"تنظیمات اشکال زدایی"},grpcMethod:"بیش از grpc",hostAddress:"نشانی میزبان",httpMethod:"بیش از http",interfaceLang:{description:"در اینجا می توانید تنظیمات زبان رابط نرم افزار خود را تغییر دهید",title:"زبان و منطقه"},port:"بندر",remoteDescripton:"سرویس از راه دور، مکانی است که تمامی داده ها، منطق ها و سرویس ها در آن نصب می شوند. ممکن است ابری یا محلی باشد. فقط کاربران پیشرفته، تغییر آن به آدرس اشتباه ممکن است باعث عدم دسترسی شود.",remoteTitle:"سرویس از راه دور",richTextEditor:{description:"نحوه ویرایش محتوای متنی را در برنامه مدیریت کنید",title:"ویرایشگر متن"},theme:{description:"رنگ تم رابط را تغییر دهید",title:"قالب"}},geo:{geocities:{country:"کشور",countryHint:"کشوری که این شهر در آن قرار داده شده",editGeoCity:"ویرایش شهر",geoCityArchiveTitle:"شهرها",menu:"شهرها",name:"نام شهر",nameHint:"نام شهر",newGeoCity:"شهر جدید",province:"استان",provinceHint:"استانی که این شهر در آن قرار دارد."},geocountries:{editGeoCountry:"ویرایش کشور",geoCountryArchiveTitle:"کشورها",menu:"کشورها",name:"نام کشور",nameHint:"نام کشور",newGeoCountry:"کشور جدید"},geoprovinces:{country:"کشور",editGeoProvince:"ویرایش استان",geoProvinceArchiveTitle:"استان ها",menu:"استان ها",name:"نام استان",nameHint:"نام استان",newGeoProvince:"استان جدید"},lat:"افقی",lng:"عمودی",menu:"ابزار جغرافیایی"},geolocations:{archiveTitle:"مکان ها",children:"children",childrenHint:"children Hint",code:"کد",codeHint:"کد دسترسی",editGeoLocation:"ویرایش",flag:"پرچم",flagHint:"پرچم مکان",name:"نام",nameHint:"نام عمومی مکان",newGeoLocation:"مکان جدید",officialName:"نام رسمی",officialNameHint:"",status:"وضعیت",statusHint:"وضعیت مکان (معمولا کشور)",type:"نوع",typeHint:"نوع مکان"},gpiomodes:{archiveTitle:"حالت های پایه",description:"توضیحات",descriptionHint:"جزیات بیشتر در مورد عملکرد این پایه",editGpioMode:"ویرایش حالت پایه",index:"ایندکس عددی",indexHint:"مقدار عددی این پایه هنگام تنظیمات پایه در ابتدای نرم افزار",key:"کلید عددی",keyHint:"کلید عددی این پایه",newGpioMode:"حالت پایه جدید"},gpios:{analogFunction:"تابع آنالوگ",analogFunctionHint:"جزیات در مورد تابع آنالوگ",archiveTitle:"پایه ها",comments:"توضیحات",commentsHint:"توضیحات بیشتر یا قابلیت های این پایه",editGpio:"ویرایش پایه",index:"ایندکس این پایه",indexHint:"شماره عددی این پایه در قطعه که میتوان با آن مقدار پایه را کنترل کرد",modeId:"حالت پایه",modeIdHint:"انتخاب حالت استفاده پایه مانند ورودی یا خروجی",name:"عنوان پایه",nameHint:"اسم پایه مانند GPIO_1",newGpio:"پایه جدید",rtcGpio:"پایه RTC",rtcGpioHint:"اطلاعات پایه RTC در صورت موجود بودن"},gpiostates:{archiveTitle:"وضعیت پایه ها",editGpioState:"ویرایش وضعیت پایه",gpio:"پایه",gpioHint:"پایه را از لیست پایه های موجود این قطعه انتخاب کنید",gpioMode:"حالت",gpioModeHint:"حالتی که پایه باید تنظیم شود را انتخاب کنید",high:"بالا (روشن)",low:"پایین (خاموش)",newGpioState:"حالت جدید پایه",value:"مقدار",valueHint:"وضعیت فعلی پین"},gsmproviders:{apiKey:"کلید API",apiKeyHint:"کلید دسترسی به سرویس فراهم کننده پیامکی یا تماس",editGsmProvider:"ویرایش GSM",gsmProviderArchiveTitle:"سرویس های GSM",invokeBody:"بدنه درخواست",invokeBodyHint:"اطلاعاتی که به صورت متد پست به سرویس ارسال میشوند",invokeUrl:"آدرس API",invokeUrlHint:"آدرسی که باید برای ارسال پیامک از آن استفاده شود.",mainSenderNumber:"شماره ارسال کننده",mainSenderNumberHint:"شماره تلفنی که برای پیامک یا تماس استفاده میشوند",newGsmProvider:"سرویس GSM جدید",terminal:"ترمینال",type:"نوع سرویس",typeHint:"نوع سرویس فراهم کننده GSM (امکانات مختلف نصبت به نوع سرویس موجود است)",url:"وب سرویس"},hmi:{archiveTitle:"Hmis",editHmi:"Edit Hmi",name:"Hmi Name",nameHint:"Name of the hmi to recognize",newHmi:"New Hmi"},hmiComponents:{archiveTitle:"Hmi Components",editHmiComponent:"Edit HmiComponent",hmi:"hmi",hmiHint:"hmi Hint",hmiId:"hmiId",hmiIdHint:"hmiId Hint",icon:"icon",iconHint:"icon Hint",label:"label",labelHint:"label Hint",layoutMode:"layoutMode",layoutModeHint:"layoutMode Hint",newHmiComponent:"New HmiComponent",position:"position",positionHint:"position Hint",read:"read",readHint:"read Hint",readId:"readId",readIdHint:"readId Hint",states:"states",statesHint:"states Hint",type:"type",typeHint:"type Hint",write:"write",writeHint:"write Hint",writeId:"writeId",writeIdHint:"writeId Hint"},hmicomponents:{archiveTitle:"Hmi Components",editHmiComponent:"Edit HmiComponent",hmi:"hmi",hmiHint:"hmi Hint",hmiId:"hmiId",hmiIdHint:"hmiId Hint",icon:"icon",iconHint:"icon Hint",label:"label",labelHint:"label Hint",layoutMode:"layoutMode",layoutModeHint:"layoutMode Hint",newHmiComponent:"New HmiComponent",position:"position",positionHint:"position Hint",read:"read",readHint:"read Hint",readId:"readId",readIdHint:"readId Hint",states:"states",statesHint:"states Hint",type:"type",typeHint:"type Hint",write:"write",writeHint:"write Hint",writeId:"writeId",writeIdHint:"writeId Hint"},hmis:{archiveTitle:"Hmis",editHmi:"Edit Hmi",name:"Hmi Name",nameHint:"Name of the hmi to recognize",newHmi:"New Hmi"},home:{line1:"{username}، به dEIA خوش آمدید",line2:"ابزار ارزیابی اثرات زیست محیطی PixelPlux",title:"GADM"},intacodes:{description:"شرح فعالیت",descriptionHint:"شرح فعالیت در مورد این اینتاکد",editIntacode:"ویرایش اینتاکد",intacodeArchiveTitle:"اینتاکدها",margin:"حاشیه سود",marginHint:"میزان سودی که برای این نوع از اینتاکد در نظر گرفته شده است (درصد)",newIntacode:"اینتاکد جدید",note:"ملاحضات",noteHint:"نکات اضافی در مورد محاسبات این نوع اینتاکد",year:"سال",yearHint:"سالی که این اینتاکد برای آن معتبر است"},iot:{dataNodeDatum:"تاریخچه تغییرات",dataNodeName:"نام دیتانود",dataNodeNameHint:"نام ویژه این دیتانود که از بقیه دیتا ها متمایز شناخته شود",dataNodes:"دیتانود ها",editDataNode:"ویرایش دیتانود",ingestedAt:"ساخته شده",newDataNode:"دیتانود جدید",title:"هوشمند",valueFloat64:"مقدار اعشاری",valueInt64:"مقدار عددی",valueString:"مقدار متنی"},jalaliMonths:{0:"فروردین",1:"اردیبهشت",2:"خرداد",3:"تیر",4:"مرداد",5:"شهریور",6:"مهر",7:"آبان",8:"آذر",9:"دی",10:"بهمن",11:"اسفند"},jobsList:{completionDate:"تاریخ تکمیل",consumerId:"شناسه مصرف کننده",projectCode:"کد پروژه",projectName:"نام پروژه",result:"نتیجه",status:"وضعیت",submissionDate:"تاریخ ارسال"},katexPlugin:{body:"فرمول",cancel:"لغپ",insert:"افزودن",title:"پلاگین فرمول",toolbarName:"افزودن فرمول"},keyboardShortcut:{action:"عملکرد",defaultBinding:"کلید های پیش فرض",keyboardShortcut:"میانبرهای صفحه کلید",pressToDefine:"برای ثبت کلید ها را فشار دهید",userDefinedBinding:"کلید های تعیین شده کاربر"},lackOfPermission:"برای دسترسی به این بخش از نرم افزار به مجوزهای بیشتری نیاز دارید.",learningMenu:{answerSheets:"پاسخنامه",enrolledCourses:"دوره های ثبت نام شده",myClassRooms:"کلاس ها",myCourses:"دوره های آموزشی",myExams:"امتحانات",practiseBoard:"چرک نویس",title:"یادگیری"},licenses:{activationKeySeries:"سلسله",activationKeys:"کلیدهای فعال سازی",code:"Code",duration:"مدت زمان (روزها)",durationHint:"طول دوره فعال سازی برای مجوز یک آن فعال می شود",editActivationKey:"ویرایش کلید فعال سازی",editLicensableProduct:"ویرایش محصول دارای مجوز",editLicense:"ویرایش مجوز",editProductPlan:"ویرایش طرح محصول",endDate:"End Date",licensableProducts:"محصولات قابل مجوز",licenseName:"نام مجوز",licenseNameHint:"نام مجوز، می تواند ترکیبی از چیزهای مختلف باشد",licenses:"مجوزها",menuActivationKey:"کلیدهای فعال سازی",menuLicenses:"مجوزها",menuProductPlans:"طرح ها",menuProducts:"محصولات",newActivationKey:"کلید فعال سازی جدید",newLicensableProduct:"محصول جدید دارای مجوز",newLicense:"مجوز جدید",newProductPlan:"طرح محصول جدید",planName:"طرح",planNameHint:"کلید فعال سازی آن طرح خاص را انتخاب کنید",planProductName:"محصول پلان",planProductNameHint:"محصولی را که می خواهید این طرح برای آن باشد انتخاب کنید.",privateKey:"کلید خصوصی",privateKeyHint:"کلید خصوصی مجوز که برای صدور گواهی استفاده می شود",productName:"نام محصول",productNameHint:"نام محصول می تواند هر چیزی باشد که مشتریان آن را تشخیص دهند",productPlanName:"نام طرح",productPlanNameHint:"یک نام برای این طرح تعیین کنید، به عنوان مثال شروع کننده یا حرفه ای",productPlans:"طرح های محصول",publicKey:"کلید عمومی",publicKeyHint:"کلید عمومی مجوز که برای صدور گواهی استفاده می شود",series:"سلسله",seriesHint:"یک برچسب را به عنوان سری تنظیم کنید، به عنوان مثال first_1000_codes تا بتوانید تشخیص دهید که چه زمانی آنها را ایجاد کرده اید",startDate:"تاریخ شروع"},locale:{englishWorldwide:"انگلیسی (English)",persianIran:"فارسی - ایران (Persian WorldWide)",polishPoland:"لهستانی (Polski)"},loginButton:"وارد شدن",loginButtonOs:"ورود با سیستم عامل",mailProvider:{apiKey:"کلید ای پی ای",apiKeyHint:"کلید دسترسی به API در صورتی که مورد نیاز باشد.",fromEmailAddress:"از آدرس ایمیل",fromEmailAddressHint:"آدرسی که از آن ارسال می کنید، معمولاً باید در سرویس پستی ثبت شود",fromName:"از نام",fromNameHint:"نام فرستنده",nickName:"نام مستعار",nickNameHint:"نام مستعار فرستنده ایمیل، معمولاً فروشنده یا پشتیبانی مشتری",replyTo:"پاسخ دادن به",replyToHint:"آدرسی که گیرنده قرار است به آن پاسخ دهد. (noreply@domain) به عنوان مثال",senderAddress:"آدرس فرستنده",senderName:"نام فرستنده",type:"نوع سرویس",typeHint:"سرویس ایمیلی که توسط آن ایمیل ها ارسال میشوند"},menu:{answerSheets:"برگه های پاسخ",classRooms:"کلاس های درس",courses:"دوره های آموزشی",exams:"امتحانات",personal:"شخصی سازی کنید",questionBanks:"بانک سوالات",questions:"سوالات",quizzes:"آزمون ها",settings:"تنظیمات",title:"اقدامات",units:"واحدها"},meta:{titleAffix:"PixelPlux"},misc:{currencies:"ارز ها",currency:{editCurrency:"ویرایش ارز",name:"نام ارز",nameHint:"نام بازاری ارز که واحد آن نیز میباشد",newCurrency:"ارز جدید",symbol:"علامت یا سمبل",symbolHint:"کاراکتری که معمولا واحد پول را مشخص میکند. برخی واحد ها سمبل ندارند",symbolNative:"سمبل داخلی",symbolNativeHint:"سمبل یا علامتی از ارز که در کشور استفاده میشود"},title:"سرویس های مخلوط"},mockNotice:"شما در حال دیدن نسخه نمایشی هستید. این نسخه دارای بک اند نیست، اطلاعات شما ذخیره نمیشوند و هیچ گارانتی نسبت به کارکردن ماژول ها وجود ندارد.",myClassrooms:{availableClassrooms:"کلاس های درس موجود",noCoursesAvailable:"هیچ دوره ای در اینجا موجود نیست. ممکن است لازم باشد با حساب دیگری وارد شوید تا انحصاری را ببینید",title:"کلاس های درس من",youHaveNoClasses:"شما به هیچ کلاسی اضافه نمی شوید."},networkError:"شما به شبکه متصل نیستید، دریافت داده انجام نشد. اتصال شبکه خود را بررسی کنید",noOptions:"هیچ گزینه نیست، جستجو کنید",noPendingInvite:"شما هیچ دعوت نامه ای برای پیوستن به تیم های دیگری ندارید.",noSignupType:"ساختن اکانت در حال حاضر ممکن نیست، لطفا با مدیریت تماس بگیرید",node:{Oddeven:"زوج/فرد",average:"میانگین",circularInput:"گردی",color:"رنگ",containerLevelValue:"Container",cron:"کرون",delay:"تاخیری",digital:"دیجیتال",interpolate:"اینترپولیت",run:"اجرا",source:"مبدا",start:"شروع",stop:"توقف",switch:"دگمه",target:"مقصد",timer:"تایمر",value:"مقدار",valueGauge:"گیج"},not_found_404:"صفحه ای که به دنبال آن هستید وجود ندارد. ممکن است این قسمت در زبان فارسی موجود نباشد و یا حذف شده باشد.",notfound:"اطلاعات یا ماژول مورد نظر شما در این نسخه از سرور وجود ندارد.",pages:{catalog:"کاتالوگ",feedback:"بازخورد",jobs:"مشاغل من"},payments:{approve:"تایید",reject:"ریجکت"},priceTag:{add:"اضافه کردن قیمت",priceTag:"برچسب قیمتی",priceTagHint:"نوع قیمت گذاری با توجه منطقه یا نوع ارز"},question:{editQuestion:"سوال جدید",newQuestion:"سوال جدید"},questionBank:{editEntity:"بانک سوالات را ویرایش کنید",editQuestion:"ویرایش سوال",name:"نام بانک",newEntity:"بانک سوالات جدید",newQuestion:"سوال جدید",title:"عنوان بانک سوال",titleHint:'بانک سوالات را نام ببرید، مانند "504 سوال برای طراحی برق"'},questionSemester:{editQuestionSemester:"ویرایش دوره سوال",menu:"دوره های سوال",name:"نام دوره",nameHint:"نام دوره سوال معمولا با ماه آزمون یا سوال مرتبط است، مانند تیرماه یا نیم فصل اول",newQuestionSemester:"دوره جدید",questionSemesterArchiveTitle:"دوره های سوال"},questionlevels:{editQuestionLevel:"ویرایش سطح سوال",name:"سطح سوال",nameHint:"نامی که برای سطح سوال انتخاب میکنید، مانند (کشوری، استانی)",newQuestionLevel:"سطح سوال جدید",questionLevelArchiveTitle:"سطوح سوالات"},questions:{addAnswerHint:"برای اضافه کردن پاسخ کلیک کنید",addQuestion:"اضافه کردن سوال",answer:"پاسخ",answerHint:"یکی از پاسخ های سوال و یا تنها پاسخ",durationInSeconds:"زمان پاسخ (ثانیه)",durationInSecondsHint:"مدت زمانی که دانش آموز باید به این سوال پاسخ بدهد.",province:"استان",provinceHint:"استان یا استان هایی که این سوال به آن مربوط است",question:"سوال",questionBank:"بانک سوالات",questionBankHint:"بانک سوالاتی که این سوال به آن تعلق دارد",questionDifficulityLevel:"سطح دشواری",questionDifficulityLevelHint:"درجه سختی حل این سوال برای دانش آموز",questionLevel:"تیپ سوال",questionLevelHint:"سطح سوال به صورت کشوری یا استانی - منطقه ای",questionSchoolType:"نوع مدرسه",questionSchoolTypeHint:"نوع مدرسه ای که این سوالات در آن نشان داده شده اند.",questionSemester:"دوره سوال",questionSemesterHint:"مانند تیر یا دو نوبت کنکور",questionTitle:"صورت سوال",questionTitleHint:"صورت سوال همان چیزی است که باید به آن جواب داده شود.",questions:"سوالات",studyYear:"سال تحصیلی",studyYearHint:"سال تحصیلی که این سوال وارد شده است"},quiz:{editQuiz:"ویرایش مسابقه",name:"نام",newQuiz:"آزمون جدید"},reactiveSearch:{noResults:"جستجو هیچ نتیجه ای نداشت",placeholder:"جستجو (کلید S)..."},requestReset:"درخواست تنظیم مجدد",resume:{clientLocation:"مکان مشتری:",companyLocation:"مکان شرکت فعالیت:",jobCountry:"کشوری که کار در آن انجام شده:",keySkills:"توانایی های کلیدی",level:"سطح",level_1:"آشنایی",level_2:"متوسط",level_3:"کاربر روزمره",level_4:"حرفه ای",level_5:"معمار",noScreenMessage1:"به نسخه چاپی رزومه من خوش آمدید. برای ایجاد تغیرات و اطلاعات بیشتر حتما ادامه رزومه را در گیت هاب به آدرس",noScreenMessage2:"مشاهده کنید. در نسخه گیت هاب میتوانید اصل پروژه ها، ویدیو ها و حتی امکان دسته بندی یا تغییر در رزومه را داشته باشید",preferredPositions:"مشاغل و پروژ های مورد علاقه",products:"محصولات",projectDescription:"توضیحات پروژه",projects:"پروژه ها",services:"توانایی های مستقل",showDescription:"نمایش توضیحات پروژه",showTechnicalInfo:"نمایش اطلاعات فنی پروژه",skillDuration:"مدت مهارت",skillName:"عنوان مهارت",technicalDescription:"اطلاعات فنی",usage:"میزان استفاده",usage_1:"به صورت محدود",usage_2:"گاها",usage_3:"استفاده مرتب",usage_4:"استفاده پیشرفته",usage_5:"استفاده فوق حرفه ای",videos:"ویدیو ها",years:"سال"},role:{name:"نام",permissions:"دسترسی ها"},saveChanges:"ذخیره",scenariolanguages:{archiveTitle:"زبان های سناریو",editScenarioLanguage:"ویرایش زبان سناریو",name:"نام زبان",nameHint:"نام زبان یا ابزار طراحی سناریو",newScenarioLanguage:"ویرایش زبان سناریو"},scenariooperationtypes:{archiveTitle:"انواع عملیات",editScenarioOperationType:"ویرایش نوع عملیات",name:"نام عملیات",nameHint:"عنوانی که این عملیات با آن شناخته میشود",newScenarioOperationType:"عملیات جدید"},scenarios:{archiveTitle:"سناریو ها",editScenario:"ویرایش سناریو",lammerSequences:"دستورات لمر",lammerSequencesHint:"طراحی دستورالعمل مربوط به این سناریو در زبان لمر",name:"نام سناریو",nameHint:"نامی که این سناریو در سطح نرم افزار شناخته میشود",newScenario:"سناریو جدید",script:"کد سناریو",scriptHint:"کد سناریو که هنگام اجرای سناریو باید اجرا شود"},schooltypes:{editSchoolType:"ویرایش نوع مدرسه",menu:"انواع مدرسه",name:"نام مدرسه",nameHint:"نام مدرسه که عموما افراد آن را در سطح کشور میشناسند",newSchoolType:"نوع مدرسه جدید",schoolTypeTitle:"انواع مدارس"},searchplaceholder:"جستجو...",selectPlaceholder:"- انتخاب کنید -",settings:{apply:"ذخیره",inaccessibleRemote:"سرور خارج از دسترس است",interfaceLanguage:"زبان رابط",interfaceLanguageHint:"زبانی که دوست دارید رابط کاربری به شما نشان داده شود",preferredHand:"دست اصلی",preferredHandHint:"از کدام دست بیشتر برای استفاده از موبایل بهره میبرید؟",remoteAddress:"آدرس سرور",serverConnected:"سرور با موفقیت و صحت کار میکند و متصل هستیم",textEditorModule:"ماژول ویرایشگر متن",textEditorModuleHint:"شما می‌توانید بین ویرایشگرهای متنی مختلفی که ما ارائه می‌دهیم، یکی را انتخاب کنید و از ویرایشگرهایی که راحت‌تر هستید استفاده کنید",theme:"قالب",themeHint:"قالب و یا رنگ تم را انتخاب کنید"},signinInstead:"ورود",signup:{continueAs:"ادامه به عنوان {currentUser}",continueAsHint:`با وارد شدن به عنوان {currentUser}، تمام اطلاعات شما، به صورت آفلاین در رایانه شما، تحت مجوزهای این کاربر ذخیره می‌شود.`,defaultDescription:"برای ایجاد حساب کاربری لطفا فیلدهای زیر را پر کنید",mobileAuthentication:"In order to login with mobile",signupToWorkspace:"برای ثبت نام به عنوان {roleName}، فیلدهای زیر را پر کنید"},signupButton:"ثبت نام",simpleTextEditor:"باکس ساده سیستم برای متن",studentExams:{history:"سابقه امتحان",noExams:"هیچ امتحانی برای شرکت کردن وجود ندارد",noHistory:"شما هرگز در هیچ نوع امتحانی شرکت نکرده اید، وقتی امتحانی را انتخاب و مطالعه می کنید، در اینجا لیست می شود.",title:"امتحانات"},studentRooms:{title:"کلاس های درس من"},studyYears:{editStudyYear:"ویرایش سال تحصیلی",name:"نام",nameHint:"سال تحصیلی مدت زمان یه دوره مانند سال ۹۴-۹۵ است",newStudyYear:"سال تحصیلی جدید",studyYearArchiveTitle:"سالهای تحصیلی"},table:{created:"ساخته شده",filter:{contains:"شامل",endsWith:"پایان یابد",equal:"برابر",filterPlaceholder:"فیلتر...",greaterThan:"بزرگتر از",greaterThanOrEqual:"بزرگتر یا مساوری",lessThan:"کمتر از",lessThanOrEqual:"کمتر یا مساوی",notContains:"شامل نباشد",notEqual:"برابر نباشد",startsWith:"شروع با"},info:"داده",next:"بعدی",noRecords:"هیچ سابقه ای برای نمایش وجود ندارد. برای ایجاد یکی، دکمه مثبت را فشار دهید.",previous:"قبلی",uniqueId:"شناسه",value:"مقدار"},tempControlWidget:{decrese:"کاهش",increase:"افزایش"},tinymceeditor:"ویرایش گر TinyMCE",triggers:{archiveTitle:"شرط ها",editTrigger:"ویرایش شرط",name:"نام شرط",nameHint:"نامی که این شرط در سطح نرم افزار با آن شناخته میشود.",newTrigger:"شرط جدید",triggerType:"نوغ شرط",triggerTypeCronjob:"شرط زمانی (Cronjob)",triggerTypeCronjobHint:"تعریف شرط بر اساس رخداد های زمانی",triggerTypeGpioValue:"شرط تغییر مقدار",triggerTypeGpioValueHint:"شرط بر اساس تغییر مقدار خروجی یا ورودی",triggerTypeHint:"نوغ شرط",triggerTypeId:"نوع شرط",triggerTypeIdHint:"نوع شرط تعیین کننده نحوه استفاده از این شرط است"},triggertypes:{archiveTitle:"نوع شرط",editTriggerType:"ویرایش نوع شرط",name:"نام نوع شرط",nameHint:"نامی که این نوع شرط با آن شناخته میشود",newTriggerType:"ویرایش نوع شرط"},tuyaDevices:{cloudProjectId:"شناسه پروژه ابری",name:"نام دستگاه Tuya"},unit:{editUnit:"ویرایش واحد",newUnit:"واحد جدید",title:"عنوان"},units:{content:"محتویات",editUnit:"واحد ویرایش",newUnit:"واحد جدید",parentId:"واحد مادر",subUnits:"زیر واحد ها"},unnamedRole:"نقش نامعلوم",unnamedWorkspace:"فضای کاری بی نام",user:{editUser:"ویرایش کاربر",newUser:"کاربر جدید"},users:{firstName:"نام کوچک",lastName:"نام خانوادگی"},webrtcconfig:"پیکربندی WebRTC",widgetPicker:{instructions:"کلید های فلش را از روی کیبرد برای جا به جایی فشار دهید. ",instructionsFlat:`Press Arrows from keyboard to change slide
Press Ctrl + Arrows from keyboard to switch to - flat mode`,widgets:"ویدجت ها"},widgets:{noItems:"هیچ ویدجتی در این صفحه وجود ندارد."},wokspaces:{body:"بدن",cascadeNotificationConfig:"پیکربندی اعلان آبشار در فضاهای کاری فرعی",cascadeNotificationConfigHint:"با بررسی این مورد، تمام فضاهای کاری بعدی از این ارائه دهنده ایمیل برای ارسال ایمیل استفاده خواهند کرد. برای محصولاتی که به‌عنوان سرویس آنلاین اجرا می‌شوند، معمولاً می‌خواهید که فضای کاری والد سرور ایمیل را پیکربندی کند. شما ممکن است علامت این را در محصولات بزرگ‌تر که به صورت جهانی اجرا می‌شوند، بردارید و هر فضای کاری باید فضاهای فرعی و پیکربندی ایمیل خود را داشته باشد.",config:"تنظیم تیم",configurateWorkspaceNotification:"سرویس های اطلاع رسانی را پیکربندی کنید",confirmEmailSender:"ثبت نام کاربر ایمیل حساب را تایید کنید",createNewWorkspace:"فضای کاری جدید",customizedTemplate:"ویرایش قالب",disablePublicSignup:"غیر فعال کردن ثبت نام ها",disablePublicSignupHint:"با انتخاب این گزینه هیچ کس نمی تواند به این تیم یا زیر مجموعه های این تیم با فرم ثبت نام آنلاین به صورت خودکار عضو شود.",editWorkspae:"ویرایش فضای کاری",emailSendingConfig:"تنظیمات ارسال ایمیل",emailSendingConfigHint:"نحوه ارسال ایمیل ها و قالب های آنها و ارسال کننده ها را کنترل کنید.",emailSendingConfiguration:"پیکربندی ارسال ایمیل",emailSendingConfigurationHint:"نحوه ارسال ایمیل های سیستمی را کنترل کنید، پیام را سفارشی کنید و غیره.",forceEmailConfigToSubWorkspaces:"استفاده از این تنظیمات برای تیم های زیر مجموعه اجباری باشد",forceEmailConfigToSubWorkspacesHint:"با انتخاب این گزینه، همه تیم های زیر مجموعه باید از همین قالب ها برای ارسال ایمیل استفاده کنند. اطلاعات مختص به این تیم را در این قالب ها قرار ندهید.",forceSubWorkspaceUseConfig:"فضاهای کاری فرعی را مجبور کنید از این پیکربندی ارائه دهنده استفاده کنند",forgetPasswordSender:"دستورالعمل های رمز عبور را فراموش کنید",generalMailProvider:"سرویس اصلی ارسال ایمیل",invite:{createInvitation:"ایجاد دعوت نامه",editInvitation:"ویرایش دعوت نامه",email:"آدرس ایمیل",emailHint:"آدرس ایمیل دعوت کننده، آنها پیوند را با استفاده از این ایمیل دریافت خواهند کرد",firstName:"نام کوچک",firstNameHint:"نام دعوت شده را بنویسید",forcePassport:"کاربر را مجبور کنید فقط با ایمیل یا شماره تلفن تعریف شده ثبت نام کند یا بپیوندد",lastName:"نام خانوادگی",lastNameHint:"نام خانوادگی دعوت شده را بنویسید",name:"نام",phoneNumber:"شماره تلفن",phoneNumberHint:"شماره تلفن دعوت شوندگان، اگر شماره آنها را نیز ارائه دهید، از طریق پیامک دعوتنامه دریافت خواهند کرد",role:"نقش",roleHint:"نقش(هایی) را که می خواهید به کاربر هنگام پیوستن به فضای کاری بدهید، انتخاب کنید. این را می توان بعدا نیز تغییر داد.",roleName:"نام نقش"},inviteToWorkspace:"دعوت به فضای کاری",joinKeyWorkspace:"فضای کار",joinKeyWorkspaceHint:"فضای کاری که برای عموم در دسترس خواهد بود",mailServerConfiguration:"پیکربندی سرور ایمیل",name:"نام",notification:{dialogTitle:"قالب نامه را ویرایش کنید"},publicSignup:"ثبت نام آنلاین و عمومی",publicSignupHint:"این نرم افزار به شما اجازه کنترل نحوه ارسال ایمیل و پیامک، و همچنین نحوه عضو گیری آنلاین را میدهد. در این قسمت میتوانید عضو شدن افراد و ساختن تیم های جدید را کنترل کنید",resetToDefault:"تنظیم مجدد به حالت پیش فرض",role:"نقش",roleHint:"نقش",sender:"فرستنده",sidetitle:"فضاهای کاری",slug:"اسلاگ",title:"عنوان",type:"تایپ کنید",workspaceName:"نام فضای کاری",workspaceNameHint:"نام فضای کاری را وارد کنید",workspaceTypeSlug:"آدرس اسلاگ",workspaceTypeSlugHint:"آدرسی که به صورت عمومی در دسترس خواهد بود و وقتی کسی از این طریق ثبت نام کند رول مشخصی دریافت میکند.",workspaceTypeTitle:"عنوان",workspaceTypeTitleHint:"عنوان ورک اسپیس"}},Q8={en:jI,fa:rG};function yn(){const{locale:t}=$i();return!t||!Q8[t]?jI:Q8[t]}function X8(t){let e=(t||"").replaceAll(/fbtusid_____(.*)_____/g,Ci.REMOTE_SERVICE+"files/$1");return e=(e||"").replaceAll(/directasset_____(.*)_____/g,Ci.REMOTE_SERVICE+"$1"),e}function iG(){return{compiler:"unknown"}}function aG(){return{directPath:n=>!(n!=null&&n.diskPath)&&(n!=null&&n.uniqueId)?X8(n.uniqueId):`${Ci.REMOTE_SERVICE}files-inline/${n==null?void 0:n.diskPath}`,downloadPath:n=>!(n!=null&&n.diskPath)&&(n!=null&&n.uniqueId)?X8(n.uniqueId):`${Ci.REMOTE_SERVICE}files/${n==null?void 0:n.diskPath}`}}const MS=({children:t,isActive:e,skip:n,activeClassName:r,inActiveClassName:i,...o})=>{var y;const u=Lr(),{locale:l}=$i(),d=o.locale||l||"en",{compiler:h}=iG();let g=(o==null?void 0:o.href)||(u==null?void 0:u.asPath)||"";return typeof g=="string"&&(g!=null&&g.indexOf)&&g.indexOf("http")===0&&(n=!0),typeof g=="string"&&d&&!n&&!g.startsWith(".")&&(g=g?`/${l}`+g:(y=u.pathname)==null?void 0:y.replace("[locale]",d)),e&&(o.className=`${o.className||""} ${r||"active"}`),!e&&i&&(o.className=`${o.className||""} ${i}`),N.jsx(tG,{...o,href:g,compiler:h,children:t})};function oG(){const{session:t,checked:e}=T.useContext(Sn),[n,r]=T.useState(!1),i=e&&!t,[o,u]=T.useState(!1);return T.useEffect(()=>{e&&t&&(u(!0),setTimeout(()=>{r(!0)},500))},[e,t]),{session:t,checked:e,needsAuthentication:i,loadComplete:n,setLoadComplete:r,isFading:o}}const kS=({label:t,getInputRef:e,displayValue:n,Icon:r,children:i,errorMessage:o,validMessage:u,value:l,hint:d,onClick:h,onChange:g,className:y,focused:w=!1,hasAnimation:v})=>N.jsxs("div",{style:{position:"relative"},className:Ho("mb-3",y),children:[t&&N.jsx("label",{className:"form-label",children:t}),i,N.jsx("div",{className:"form-text",children:d}),N.jsx("div",{className:"invalid-feedback",children:o}),N.jsx("div",{className:"valid-feedback",children:u})]}),Uf=t=>{const{placeholder:e,label:n,getInputRef:r,secureTextEntry:i,Icon:o,isSubmitting:u,errorMessage:l,onChange:d,value:h,disabled:g,type:y,focused:w=!1,className:v,mutation:C,...E}=t,$=C==null?void 0:C.isLoading;return N.jsx("button",{onClick:t.onClick,type:"submit",disabled:g||$,className:Ho("btn mb-3",`btn-${y||"primary"}`,v),...t,children:t.children||t.label})};function sG(t,e,n={}){var r,i,o,u,l,d,h,g,y,w;if(e.isError){if(((r=e.error)==null?void 0:r.status)===404)return t.notfound+"("+n.remote+")";if(e.error.message==="Failed to fetch")return t.networkError+"("+n.remote+")";if((o=(i=e.error)==null?void 0:i.error)!=null&&o.messageTranslated)return(l=(u=e.error)==null?void 0:u.error)==null?void 0:l.messageTranslated;if((h=(d=e.error)==null?void 0:d.error)!=null&&h.message)return(y=(g=e.error)==null?void 0:g.error)==null?void 0:y.message;let v=(w=e.error)==null?void 0:w.toString();return(v+"").includes("object Object")&&(v="There is an unknown error while getting information, please contact your software provider if issue persists."),v}return null}function Wo({query:t,children:e}){var h,g,y,w;const n=yn(),{options:r,setOverrideRemoteUrl:i,overrideRemoteUrl:o}=T.useContext(Sn);let u=!1,l="80";try{if(r!=null&&r.prefix){const v=new URL(r==null?void 0:r.prefix);l=v.port||(v.protocol==="https:"?"443":"80"),u=(location.host.includes("192.168")||location.host.includes("127.0"))&&((g=(h=t.error)==null?void 0:h.message)==null?void 0:g.includes("Failed to fetch"))}}catch{}const d=()=>{i("http://"+location.hostname+":"+l+"/")};return t?N.jsxs(N.Fragment,{children:[t.isError&&N.jsxs("div",{className:"basic-error-box fadein",children:[sG(n,t,{remote:r.prefix})||"",u&&N.jsx("button",{className:"btn btn-sm btn-secondary",onClick:d,children:"Auto-reroute"}),o&&N.jsx("button",{className:"btn btn-sm btn-secondary",onClick:()=>i(void 0),children:"Reset"}),N.jsx("ul",{children:(((w=(y=t.error)==null?void 0:y.error)==null?void 0:w.errors)||[]).map(v=>N.jsxs("li",{children:[v.messageTranslated||v.message," (",v.location,")"]},v.location))}),t.refetch&&N.jsx(Uf,{onClick:t.refetch,children:"Retry"})]}),!t.isError||t.isPreviousData?e:null]}):null}const uG=t=>{const{children:e,forceActive:n,...r}=t,{locale:i,asPath:o}=$i(),u=T.Children.only(e),l=o===`/${i}`+r.href||o+"/"==`/${i}`+r.href||n;return t.disabled?N.jsx("span",{className:"disabled",children:u}):N.jsx(MS,{...r,isActive:l,children:u})};function Kn(t){const{locale:e}=$i();return!e||e==="en"?t:t["$"+e]?t["$"+e]:t}const lG={setupTotpDescription:'In order to complete account registeration, you need to scan the following code using "Microsoft authenticator" or "Google Authenticator". After that, you need to enter the 6 digit code from the app here.',welcomeBackDescription:"Select any option to continue to access your account.",google:"Google",selectWorkspace:"You have multiple workspaces associated with your account. Select one to continue.",completeYourAccount:"Complete your account",completeYourAccountDescription:"Complete the information below to complete your signup",registerationNotPossibleLine1:"In this project there are no workspace types that can be used publicly to create account.",enterPassword:"Enter Password",welcomeBack:"Welcome back",emailMethod:"Email",phoneMethod:"Phone number",noAuthenticationMethod:"Authentication Currently Unavailable",firstName:"First name",registerationNotPossible:"Registeration not possible.",setupDualFactor:"Setup Dual Factor",cancelStep:"Cancel and try another way.",enterOtp:"Enter OTP",skipTotpInfo:"You can setup this any time later, by visiting your account security section.",continueWithEmailDescription:"Enter your email address to continue.",enterOtpDescription:"We have sent you an one time password, please enter to continue.",continueWithEmail:"Continue with Email",continueWithPhone:"Continue with Phone",registerationNotPossibleLine2:"Contact the service administrator to create your account for you.",useOneTimePassword:"Use one time password instead",changePassword:{pass1Label:"Password",pass2Label:"Repeat password",submit:"Change Password",title:"Change password",description:"In order to change your password, enter new password twice same in the fields"},continueWithPhoneDescription:"Enter your phone number to continue.",lastName:"Last name",password:"Password",continue:"Continue",anotherAccount:"Choose another account",noAuthenticationMethodDescription:"Sign-in and registration are not available in your region at this time. If you believe this is an error or need access, please contact the administrator.",home:{title:"Account & Profile",description:"Manage your account, emails, passwords and more",passports:"Passports",passportsTitle:"Passports",passportsDescription:"View emails, phone numbers associated with your account."},enterTotp:"Enter Totp Code",enterTotpDescription:"Open your authenticator app and enter the 6 digits.",setupTotp:"Setup Dual Factor",skipTotpButton:"Skip for now",userPassports:{title:"Passports",description:"You can see a list of passports that you can use to authenticate into the system here.",add:"Add new passport",remove:"Remove passport"},selectWorkspaceTitle:"Select workspace",chooseAnotherMethod:"Choose another method",enterPasswordDescription:"Enter your password to continue authorizing your account."},cG={registerationNotPossibleLine2:"Skontaktuj się z administratorem usługi, aby utworzył konto dla Ciebie.",chooseAnotherMethod:"Wybierz inną metodę",continue:"Kontynuuj",continueWithPhone:"Kontynuuj za pomocą numeru telefonu",enterPassword:"Wprowadź hasło",noAuthenticationMethod:"Uwierzytelnianie obecnie niedostępne",completeYourAccountDescription:"Uzupełnij poniższe informacje, aby zakończyć rejestrację",registerationNotPossible:"Rejestracja niemożliwa.",selectWorkspace:"Masz wiele przestrzeni roboczych powiązanych z Twoim kontem. Wybierz jedną, aby kontynuować.",welcomeBack:"Witamy ponownie",enterOtp:"Wprowadź jednorazowy kod",enterPasswordDescription:"Wprowadź swoje hasło, aby kontynuować autoryzację konta.",userPassports:{add:"Dodaj nowy paszport",description:"Tutaj możesz zobaczyć listę paszportów, które możesz wykorzystać do uwierzytelniania w systemie.",remove:"Usuń paszport",title:"Paszporty"},registerationNotPossibleLine1:"W tym projekcie nie ma dostępnych typów przestrzeni roboczych do publicznego tworzenia konta.",cancelStep:"Anuluj i spróbuj innej metody.",continueWithEmail:"Kontynuuj za pomocą e-maila",continueWithPhoneDescription:"Wprowadź swój numer telefonu, aby kontynuować.",emailMethod:"E-mail",enterTotp:"Wprowadź kod TOTP",noAuthenticationMethodDescription:"Logowanie i rejestracja są obecnie niedostępne w Twoim regionie. Jeśli uważasz, że to błąd lub potrzebujesz dostępu, skontaktuj się z administratorem.",password:"Hasło",anotherAccount:"Wybierz inne konto",enterTotpDescription:"Otwórz aplikację uwierzytelniającą i wprowadź 6-cyfrowy kod.",firstName:"Imię",phoneMethod:"Numer telefonu",setupDualFactor:"Skonfiguruj uwierzytelnianie dwuskładnikowe",setupTotp:"Skonfiguruj uwierzytelnianie dwuskładnikowe",skipTotpInfo:"Możesz skonfigurować to później, odwiedzając sekcję bezpieczeństwa konta.",welcomeBackDescription:"Wybierz dowolną opcję, aby kontynuować dostęp do swojego konta.",changePassword:{pass1Label:"Hasło",pass2Label:"Powtórz hasło",submit:"Zmień hasło",title:"Zmień hasło",description:"Aby zmienić hasło, wprowadź nowe hasło dwukrotnie w polach poniżej"},lastName:"Nazwisko",useOneTimePassword:"Użyj jednorazowego hasła zamiast tego",completeYourAccount:"Uzupełnij swoje konto",continueWithEmailDescription:"Wprowadź swój adres e-mail, aby kontynuować.",enterOtpDescription:"Wysłaliśmy jednorazowy kod, wprowadź go, aby kontynuować.",google:"Google",home:{description:"Zarządzaj swoim kontem, e-mailami, hasłami i innymi",passports:"Paszporty",passportsDescription:"Zobacz e-maile i numery telefonów powiązane z Twoim kontem.",passportsTitle:"Paszporty",title:"Konto i profil"},selectWorkspaceTitle:"Wybierz przestrzeń roboczą",setupTotpDescription:"Aby zakończyć rejestrację konta, zeskanuj poniższy kod za pomocą aplikacji „Microsoft Authenticator” lub „Google Authenticator”. Następnie wprowadź tutaj 6-cyfrowy kod z aplikacji.",skipTotpButton:"Pomiń na razie"},$r={...lG,$pl:cG};var d1;function Ya(t,e){if(!{}.hasOwnProperty.call(t,e))throw new TypeError("attempted to use private field on non-instance");return t}var fG=0;function H1(t){return"__private_"+fG+++"_"+t}const dG=t=>{const e=oo(),n=(t==null?void 0:t.ctx)??e??void 0,[r,i]=T.useState(!1),[o,u]=T.useState(),l=()=>(i(!1),Ol.Fetch({headers:t==null?void 0:t.headers},{creatorFn:t==null?void 0:t.creatorFn,qs:t==null?void 0:t.qs,ctx:n,onMessage:t==null?void 0:t.onMessage,overrideUrl:t==null?void 0:t.overrideUrl}).then(h=>(h.done.then(()=>{i(!0)}),u(h.response),h.response.result)));return{...Go({queryKey:[Ol.NewUrl(t==null?void 0:t.qs)],queryFn:l,...t||{}}),isCompleted:r,response:o}};class Ol{}d1=Ol;Ol.URL="/user/passports";Ol.NewUrl=t=>so(d1.URL,void 0,t);Ol.Method="get";Ol.Fetch$=async(t,e,n,r)=>io(r??d1.NewUrl(t),{method:d1.Method,...n||{}},e);Ol.Fetch=async(t,{creatorFn:e,qs:n,ctx:r,onMessage:i,overrideUrl:o}={creatorFn:u=>new Ep(u)})=>{e=e||(l=>new Ep(l));const u=await d1.Fetch$(n,r,t,o);return ao(u,l=>{const d=new _a;return e&&d.setCreator(e),d.inject(l),d},i,t==null?void 0:t.signal)};Ol.Definition={name:"UserPassports",url:"/user/passports",method:"get",description:"Returns list of passports belongs to an specific user.",out:{envelope:"GResponse",fields:[{name:"value",description:"The passport value, such as email address or phone number",type:"string"},{name:"uniqueId",description:"Unique identifier of the passport to operate some action on top of it",type:"string"},{name:"type",description:"The type of the passport, such as email, phone number",type:"string"},{name:"totpConfirmed",description:"Regardless of the secret, user needs to confirm his secret. There is an extra action to confirm user totp, could be used after signup or prior to login.",type:"bool"}]}};var bh=H1("value"),wh=H1("uniqueId"),Sh=H1("type"),Ch=H1("totpConfirmed"),LC=H1("isJsonAppliable");class Ep{get value(){return Ya(this,bh)[bh]}set value(e){Ya(this,bh)[bh]=String(e)}setValue(e){return this.value=e,this}get uniqueId(){return Ya(this,wh)[wh]}set uniqueId(e){Ya(this,wh)[wh]=String(e)}setUniqueId(e){return this.uniqueId=e,this}get type(){return Ya(this,Sh)[Sh]}set type(e){Ya(this,Sh)[Sh]=String(e)}setType(e){return this.type=e,this}get totpConfirmed(){return Ya(this,Ch)[Ch]}set totpConfirmed(e){Ya(this,Ch)[Ch]=!!e}setTotpConfirmed(e){return this.totpConfirmed=e,this}constructor(e=void 0){if(Object.defineProperty(this,LC,{value:hG}),Object.defineProperty(this,bh,{writable:!0,value:""}),Object.defineProperty(this,wh,{writable:!0,value:""}),Object.defineProperty(this,Sh,{writable:!0,value:""}),Object.defineProperty(this,Ch,{writable:!0,value:void 0}),e!=null)if(typeof e=="string")this.applyFromObject(JSON.parse(e));else if(Ya(this,LC)[LC](e))this.applyFromObject(e);else throw new Error("Instance cannot be created on an unknown value, check the content being passed. got: "+typeof e)}applyFromObject(e={}){const n=e;n.value!==void 0&&(this.value=n.value),n.uniqueId!==void 0&&(this.uniqueId=n.uniqueId),n.type!==void 0&&(this.type=n.type),n.totpConfirmed!==void 0&&(this.totpConfirmed=n.totpConfirmed)}toJSON(){return{value:Ya(this,bh)[bh],uniqueId:Ya(this,wh)[wh],type:Ya(this,Sh)[Sh],totpConfirmed:Ya(this,Ch)[Ch]}}toString(){return JSON.stringify(this)}static get Fields(){return{value:"value",uniqueId:"uniqueId",type:"type",totpConfirmed:"totpConfirmed"}}static from(e){return new Ep(e)}static with(e){return new Ep(e)}copyWith(e){return new Ep({...this.toJSON(),...e})}clone(){return new Ep(this.toJSON())}}function hG(t){const e=globalThis,n=typeof e.Buffer<"u"&&typeof e.Buffer.isBuffer=="function"&&e.Buffer.isBuffer(t),r=typeof e.Blob<"u"&&t instanceof e.Blob;return t&&typeof t=="object"&&!Array.isArray(t)&&!n&&!(t instanceof ArrayBuffer)&&!r}const pG=()=>{const t=Kn($r),{goBack:e}=Lr(),n=dG({}),{signout:r}=T.useContext(Sn);return{goBack:e,signout:r,query:n,s:t}},mG=({})=>{var i,o;const{query:t,s:e,signout:n}=pG(),r=((o=(i=t==null?void 0:t.data)==null?void 0:i.data)==null?void 0:o.items)||[];return N.jsxs("div",{className:"signin-form-container",children:[N.jsx("h1",{children:e.userPassports.title}),N.jsx("p",{children:e.userPassports.description}),N.jsx(Wo,{query:t}),N.jsx(gG,{passports:r}),N.jsx("button",{className:"btn btn-danger mt-3 w-100",onClick:n,children:"Signout"})]})},gG=({passports:t})=>{const e=Kn($r);return N.jsx("div",{className:"d-flex ",children:t.map(n=>N.jsxs("div",{className:"card p-3 w-100",children:[N.jsx("h3",{className:"card-title",children:n.type.toUpperCase()}),N.jsx("p",{className:"card-text",children:n.value}),N.jsxs("p",{className:"text-muted",children:["TOTP: ",n.totpConfirmed?"Yes":"No"]}),N.jsx(uG,{href:`../change-password/${n.uniqueId}`,children:N.jsx("button",{className:"btn btn-primary",children:e.changePassword.submit})})]},n.uniqueId))})},yG={version:4,country_calling_codes:{1:["US","AG","AI","AS","BB","BM","BS","CA","DM","DO","GD","GU","JM","KN","KY","LC","MP","MS","PR","SX","TC","TT","VC","VG","VI"],7:["RU","KZ"],20:["EG"],27:["ZA"],30:["GR"],31:["NL"],32:["BE"],33:["FR"],34:["ES"],36:["HU"],39:["IT","VA"],40:["RO"],41:["CH"],43:["AT"],44:["GB","GG","IM","JE"],45:["DK"],46:["SE"],47:["NO","SJ"],48:["PL"],49:["DE"],51:["PE"],52:["MX"],53:["CU"],54:["AR"],55:["BR"],56:["CL"],57:["CO"],58:["VE"],60:["MY"],61:["AU","CC","CX"],62:["ID"],63:["PH"],64:["NZ"],65:["SG"],66:["TH"],81:["JP"],82:["KR"],84:["VN"],86:["CN"],90:["TR"],91:["IN"],92:["PK"],93:["AF"],94:["LK"],95:["MM"],98:["IR"],211:["SS"],212:["MA","EH"],213:["DZ"],216:["TN"],218:["LY"],220:["GM"],221:["SN"],222:["MR"],223:["ML"],224:["GN"],225:["CI"],226:["BF"],227:["NE"],228:["TG"],229:["BJ"],230:["MU"],231:["LR"],232:["SL"],233:["GH"],234:["NG"],235:["TD"],236:["CF"],237:["CM"],238:["CV"],239:["ST"],240:["GQ"],241:["GA"],242:["CG"],243:["CD"],244:["AO"],245:["GW"],246:["IO"],247:["AC"],248:["SC"],249:["SD"],250:["RW"],251:["ET"],252:["SO"],253:["DJ"],254:["KE"],255:["TZ"],256:["UG"],257:["BI"],258:["MZ"],260:["ZM"],261:["MG"],262:["RE","YT"],263:["ZW"],264:["NA"],265:["MW"],266:["LS"],267:["BW"],268:["SZ"],269:["KM"],290:["SH","TA"],291:["ER"],297:["AW"],298:["FO"],299:["GL"],350:["GI"],351:["PT"],352:["LU"],353:["IE"],354:["IS"],355:["AL"],356:["MT"],357:["CY"],358:["FI","AX"],359:["BG"],370:["LT"],371:["LV"],372:["EE"],373:["MD"],374:["AM"],375:["BY"],376:["AD"],377:["MC"],378:["SM"],380:["UA"],381:["RS"],382:["ME"],383:["XK"],385:["HR"],386:["SI"],387:["BA"],389:["MK"],420:["CZ"],421:["SK"],423:["LI"],500:["FK"],501:["BZ"],502:["GT"],503:["SV"],504:["HN"],505:["NI"],506:["CR"],507:["PA"],508:["PM"],509:["HT"],590:["GP","BL","MF"],591:["BO"],592:["GY"],593:["EC"],594:["GF"],595:["PY"],596:["MQ"],597:["SR"],598:["UY"],599:["CW","BQ"],670:["TL"],672:["NF"],673:["BN"],674:["NR"],675:["PG"],676:["TO"],677:["SB"],678:["VU"],679:["FJ"],680:["PW"],681:["WF"],682:["CK"],683:["NU"],685:["WS"],686:["KI"],687:["NC"],688:["TV"],689:["PF"],690:["TK"],691:["FM"],692:["MH"],850:["KP"],852:["HK"],853:["MO"],855:["KH"],856:["LA"],880:["BD"],886:["TW"],960:["MV"],961:["LB"],962:["JO"],963:["SY"],964:["IQ"],965:["KW"],966:["SA"],967:["YE"],968:["OM"],970:["PS"],971:["AE"],972:["IL"],973:["BH"],974:["QA"],975:["BT"],976:["MN"],977:["NP"],992:["TJ"],993:["TM"],994:["AZ"],995:["GE"],996:["KG"],998:["UZ"]},countries:{AC:["247","00","(?:[01589]\\d|[46])\\d{4}",[5,6]],AD:["376","00","(?:1|6\\d)\\d{7}|[135-9]\\d{5}",[6,8,9],[["(\\d{3})(\\d{3})","$1 $2",["[135-9]"]],["(\\d{4})(\\d{4})","$1 $2",["1"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["6"]]]],AE:["971","00","(?:[4-7]\\d|9[0-689])\\d{7}|800\\d{2,9}|[2-4679]\\d{7}",[5,6,7,8,9,10,11,12],[["(\\d{3})(\\d{2,9})","$1 $2",["60|8"]],["(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["[236]|[479][2-8]"],"0$1"],["(\\d{3})(\\d)(\\d{5})","$1 $2 $3",["[479]"]],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["5"],"0$1"]],"0"],AF:["93","00","[2-7]\\d{8}",[9],[["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[2-7]"],"0$1"]],"0"],AG:["1","011","(?:268|[58]\\d\\d|900)\\d{7}",[10],0,"1",0,"([457]\\d{6})$|1","268$1",0,"268"],AI:["1","011","(?:264|[58]\\d\\d|900)\\d{7}",[10],0,"1",0,"([2457]\\d{6})$|1","264$1",0,"264"],AL:["355","00","(?:700\\d\\d|900)\\d{3}|8\\d{5,7}|(?:[2-5]|6\\d)\\d{7}",[6,7,8,9],[["(\\d{3})(\\d{3,4})","$1 $2",["80|9"],"0$1"],["(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["4[2-6]"],"0$1"],["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["[2358][2-5]|4"],"0$1"],["(\\d{3})(\\d{5})","$1 $2",["[23578]"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["6"],"0$1"]],"0"],AM:["374","00","(?:[1-489]\\d|55|60|77)\\d{6}",[8],[["(\\d{3})(\\d{2})(\\d{3})","$1 $2 $3",["[89]0"],"0 $1"],["(\\d{3})(\\d{5})","$1 $2",["2|3[12]"],"(0$1)"],["(\\d{2})(\\d{6})","$1 $2",["1|47"],"(0$1)"],["(\\d{2})(\\d{6})","$1 $2",["[3-9]"],"0$1"]],"0"],AO:["244","00","[29]\\d{8}",[9],[["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[29]"]]]],AR:["54","00","(?:11|[89]\\d\\d)\\d{8}|[2368]\\d{9}",[10,11],[["(\\d{4})(\\d{2})(\\d{4})","$1 $2-$3",["2(?:2[024-9]|3[0-59]|47|6[245]|9[02-8])|3(?:3[28]|4[03-9]|5[2-46-8]|7[1-578]|8[2-9])","2(?:[23]02|6(?:[25]|4[6-8])|9(?:[02356]|4[02568]|72|8[23]))|3(?:3[28]|4(?:[04679]|3[5-8]|5[4-68]|8[2379])|5(?:[2467]|3[237]|8[2-5])|7[1-578]|8(?:[2469]|3[2578]|5[4-8]|7[36-8]|8[5-8]))|2(?:2[24-9]|3[1-59]|47)","2(?:[23]02|6(?:[25]|4(?:64|[78]))|9(?:[02356]|4(?:[0268]|5[2-6])|72|8[23]))|3(?:3[28]|4(?:[04679]|3[78]|5(?:4[46]|8)|8[2379])|5(?:[2467]|3[237]|8[23])|7[1-578]|8(?:[2469]|3[278]|5[56][46]|86[3-6]))|2(?:2[24-9]|3[1-59]|47)|38(?:[58][78]|7[378])|3(?:4[35][56]|58[45]|8(?:[38]5|54|76))[4-6]","2(?:[23]02|6(?:[25]|4(?:64|[78]))|9(?:[02356]|4(?:[0268]|5[2-6])|72|8[23]))|3(?:3[28]|4(?:[04679]|3(?:5(?:4[0-25689]|[56])|[78])|58|8[2379])|5(?:[2467]|3[237]|8(?:[23]|4(?:[45]|60)|5(?:4[0-39]|5|64)))|7[1-578]|8(?:[2469]|3[278]|54(?:4|5[13-7]|6[89])|86[3-6]))|2(?:2[24-9]|3[1-59]|47)|38(?:[58][78]|7[378])|3(?:454|85[56])[46]|3(?:4(?:36|5[56])|8(?:[38]5|76))[4-6]"],"0$1",1],["(\\d{2})(\\d{4})(\\d{4})","$1 $2-$3",["1"],"0$1",1],["(\\d{3})(\\d{3})(\\d{4})","$1-$2-$3",["[68]"],"0$1"],["(\\d{3})(\\d{3})(\\d{4})","$1 $2-$3",["[23]"],"0$1",1],["(\\d)(\\d{4})(\\d{2})(\\d{4})","$2 15-$3-$4",["9(?:2[2-469]|3[3-578])","9(?:2(?:2[024-9]|3[0-59]|47|6[245]|9[02-8])|3(?:3[28]|4[03-9]|5[2-46-8]|7[1-578]|8[2-9]))","9(?:2(?:[23]02|6(?:[25]|4[6-8])|9(?:[02356]|4[02568]|72|8[23]))|3(?:3[28]|4(?:[04679]|3[5-8]|5[4-68]|8[2379])|5(?:[2467]|3[237]|8[2-5])|7[1-578]|8(?:[2469]|3[2578]|5[4-8]|7[36-8]|8[5-8])))|92(?:2[24-9]|3[1-59]|47)","9(?:2(?:[23]02|6(?:[25]|4(?:64|[78]))|9(?:[02356]|4(?:[0268]|5[2-6])|72|8[23]))|3(?:3[28]|4(?:[04679]|3[78]|5(?:4[46]|8)|8[2379])|5(?:[2467]|3[237]|8[23])|7[1-578]|8(?:[2469]|3[278]|5(?:[56][46]|[78])|7[378]|8(?:6[3-6]|[78]))))|92(?:2[24-9]|3[1-59]|47)|93(?:4[35][56]|58[45]|8(?:[38]5|54|76))[4-6]","9(?:2(?:[23]02|6(?:[25]|4(?:64|[78]))|9(?:[02356]|4(?:[0268]|5[2-6])|72|8[23]))|3(?:3[28]|4(?:[04679]|3(?:5(?:4[0-25689]|[56])|[78])|5(?:4[46]|8)|8[2379])|5(?:[2467]|3[237]|8(?:[23]|4(?:[45]|60)|5(?:4[0-39]|5|64)))|7[1-578]|8(?:[2469]|3[278]|5(?:4(?:4|5[13-7]|6[89])|[56][46]|[78])|7[378]|8(?:6[3-6]|[78]))))|92(?:2[24-9]|3[1-59]|47)|93(?:4(?:36|5[56])|8(?:[38]5|76))[4-6]"],"0$1",0,"$1 $2 $3-$4"],["(\\d)(\\d{2})(\\d{4})(\\d{4})","$2 15-$3-$4",["91"],"0$1",0,"$1 $2 $3-$4"],["(\\d{3})(\\d{3})(\\d{5})","$1-$2-$3",["8"],"0$1"],["(\\d)(\\d{3})(\\d{3})(\\d{4})","$2 15-$3-$4",["9"],"0$1",0,"$1 $2 $3-$4"]],"0",0,"0?(?:(11|2(?:2(?:02?|[13]|2[13-79]|4[1-6]|5[2457]|6[124-8]|7[1-4]|8[13-6]|9[1267])|3(?:02?|1[467]|2[03-6]|3[13-8]|[49][2-6]|5[2-8]|[67])|4(?:7[3-578]|9)|6(?:[0136]|2[24-6]|4[6-8]?|5[15-8])|80|9(?:0[1-3]|[19]|2\\d|3[1-6]|4[02568]?|5[2-4]|6[2-46]|72?|8[23]?))|3(?:3(?:2[79]|6|8[2578])|4(?:0[0-24-9]|[12]|3[5-8]?|4[24-7]|5[4-68]?|6[02-9]|7[126]|8[2379]?|9[1-36-8])|5(?:1|2[1245]|3[237]?|4[1-46-9]|6[2-4]|7[1-6]|8[2-5]?)|6[24]|7(?:[069]|1[1568]|2[15]|3[145]|4[13]|5[14-8]|7[2-57]|8[126])|8(?:[01]|2[15-7]|3[2578]?|4[13-6]|5[4-8]?|6[1-357-9]|7[36-8]?|8[5-8]?|9[124])))15)?","9$1"],AS:["1","011","(?:[58]\\d\\d|684|900)\\d{7}",[10],0,"1",0,"([267]\\d{6})$|1","684$1",0,"684"],AT:["43","00","1\\d{3,12}|2\\d{6,12}|43(?:(?:0\\d|5[02-9])\\d{3,9}|2\\d{4,5}|[3467]\\d{4}|8\\d{4,6}|9\\d{4,7})|5\\d{4,12}|8\\d{7,12}|9\\d{8,12}|(?:[367]\\d|4[0-24-9])\\d{4,11}",[4,5,6,7,8,9,10,11,12,13],[["(\\d)(\\d{3,12})","$1 $2",["1(?:11|[2-9])"],"0$1"],["(\\d{3})(\\d{2})","$1 $2",["517"],"0$1"],["(\\d{2})(\\d{3,5})","$1 $2",["5[079]"],"0$1"],["(\\d{3})(\\d{3,10})","$1 $2",["(?:31|4)6|51|6(?:5[0-3579]|[6-9])|7(?:20|32|8)|[89]"],"0$1"],["(\\d{4})(\\d{3,9})","$1 $2",["[2-467]|5[2-6]"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["5"],"0$1"],["(\\d{2})(\\d{4})(\\d{4,7})","$1 $2 $3",["5"],"0$1"]],"0"],AU:["61","001[14-689]|14(?:1[14]|34|4[17]|[56]6|7[47]|88)0011","1(?:[0-79]\\d{7}(?:\\d(?:\\d{2})?)?|8[0-24-9]\\d{7})|[2-478]\\d{8}|1\\d{4,7}",[5,6,7,8,9,10,12],[["(\\d{2})(\\d{3,4})","$1 $2",["16"],"0$1"],["(\\d{2})(\\d{3})(\\d{2,4})","$1 $2 $3",["16"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["14|4"],"0$1"],["(\\d)(\\d{4})(\\d{4})","$1 $2 $3",["[2378]"],"(0$1)"],["(\\d{4})(\\d{3})(\\d{3})","$1 $2 $3",["1(?:30|[89])"]]],"0",0,"(183[12])|0",0,0,0,[["(?:(?:(?:2(?:[0-26-9]\\d|3[0-8]|4[02-9]|5[0135-9])|7(?:[013-57-9]\\d|2[0-8]))\\d|3(?:(?:[0-3589]\\d|6[1-9]|7[0-35-9])\\d|4(?:[0-578]\\d|90)))\\d\\d|8(?:51(?:0(?:0[03-9]|[12479]\\d|3[2-9]|5[0-8]|6[1-9]|8[0-7])|1(?:[0235689]\\d|1[0-69]|4[0-589]|7[0-47-9])|2(?:0[0-79]|[18][13579]|2[14-9]|3[0-46-9]|[4-6]\\d|7[89]|9[0-4])|3\\d\\d)|(?:6[0-8]|[78]\\d)\\d{3}|9(?:[02-9]\\d{3}|1(?:(?:[0-58]\\d|6[0135-9])\\d|7(?:0[0-24-9]|[1-9]\\d)|9(?:[0-46-9]\\d|5[0-79])))))\\d{3}",[9]],["4(?:79[01]|83[0-389]|94[0-4])\\d{5}|4(?:[0-36]\\d|4[047-9]|5[0-25-9]|7[02-8]|8[0-24-9]|9[0-37-9])\\d{6}",[9]],["180(?:0\\d{3}|2)\\d{3}",[7,10]],["190[0-26]\\d{6}",[10]],0,0,0,["163\\d{2,6}",[5,6,7,8,9]],["14(?:5(?:1[0458]|[23][458])|71\\d)\\d{4}",[9]],["13(?:00\\d{6}(?:\\d{2})?|45[0-4]\\d{3})|13\\d{4}",[6,8,10,12]]],"0011"],AW:["297","00","(?:[25-79]\\d\\d|800)\\d{4}",[7],[["(\\d{3})(\\d{4})","$1 $2",["[25-9]"]]]],AX:["358","00|99(?:[01469]|5(?:[14]1|3[23]|5[59]|77|88|9[09]))","2\\d{4,9}|35\\d{4,5}|(?:60\\d\\d|800)\\d{4,6}|7\\d{5,11}|(?:[14]\\d|3[0-46-9]|50)\\d{4,8}",[5,6,7,8,9,10,11,12],0,"0",0,0,0,0,"18",0,"00"],AZ:["994","00","365\\d{6}|(?:[124579]\\d|60|88)\\d{7}",[9],[["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["90"],"0$1"],["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["1[28]|2|365|46","1[28]|2|365[45]|46","1[28]|2|365(?:4|5[02])|46"],"(0$1)"],["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[13-9]"],"0$1"]],"0"],BA:["387","00","6\\d{8}|(?:[35689]\\d|49|70)\\d{6}",[8,9],[["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["6[1-3]|[7-9]"],"0$1"],["(\\d{2})(\\d{3})(\\d{3})","$1 $2-$3",["[3-5]|6[56]"],"0$1"],["(\\d{2})(\\d{2})(\\d{2})(\\d{3})","$1 $2 $3 $4",["6"],"0$1"]],"0"],BB:["1","011","(?:246|[58]\\d\\d|900)\\d{7}",[10],0,"1",0,"([2-9]\\d{6})$|1","246$1",0,"246"],BD:["880","00","[1-469]\\d{9}|8[0-79]\\d{7,8}|[2-79]\\d{8}|[2-9]\\d{7}|[3-9]\\d{6}|[57-9]\\d{5}",[6,7,8,9,10],[["(\\d{2})(\\d{4,6})","$1-$2",["31[5-8]|[459]1"],"0$1"],["(\\d{3})(\\d{3,7})","$1-$2",["3(?:[67]|8[013-9])|4(?:6[168]|7|[89][18])|5(?:6[128]|9)|6(?:[15]|28|4[14])|7[2-589]|8(?:0[014-9]|[12])|9[358]|(?:3[2-5]|4[235]|5[2-578]|6[0389]|76|8[3-7]|9[24])1|(?:44|66)[01346-9]"],"0$1"],["(\\d{4})(\\d{3,6})","$1-$2",["[13-9]|2[23]"],"0$1"],["(\\d)(\\d{7,8})","$1-$2",["2"],"0$1"]],"0"],BE:["32","00","4\\d{8}|[1-9]\\d{7}",[8,9],[["(\\d{3})(\\d{2})(\\d{3})","$1 $2 $3",["(?:80|9)0"],"0$1"],["(\\d)(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[239]|4[23]"],"0$1"],["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[15-8]"],"0$1"],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["4"],"0$1"]],"0"],BF:["226","00","[025-7]\\d{7}",[8],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[025-7]"]]]],BG:["359","00","00800\\d{7}|[2-7]\\d{6,7}|[89]\\d{6,8}|2\\d{5}",[6,7,8,9,12],[["(\\d)(\\d)(\\d{2})(\\d{2})","$1 $2 $3 $4",["2"],"0$1"],["(\\d{3})(\\d{4})","$1 $2",["43[1-6]|70[1-9]"],"0$1"],["(\\d)(\\d{3})(\\d{3,4})","$1 $2 $3",["2"],"0$1"],["(\\d{2})(\\d{3})(\\d{2,3})","$1 $2 $3",["[356]|4[124-7]|7[1-9]|8[1-6]|9[1-7]"],"0$1"],["(\\d{3})(\\d{2})(\\d{3})","$1 $2 $3",["(?:70|8)0"],"0$1"],["(\\d{3})(\\d{3})(\\d{2})","$1 $2 $3",["43[1-7]|7"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["[48]|9[08]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["9"],"0$1"]],"0"],BH:["973","00","[136-9]\\d{7}",[8],[["(\\d{4})(\\d{4})","$1 $2",["[13679]|8[02-4679]"]]]],BI:["257","00","(?:[267]\\d|31)\\d{6}",[8],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[2367]"]]]],BJ:["229","00","(?:01\\d|[24-689])\\d{7}",[8,10],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[24-689]"]],["(\\d{2})(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4 $5",["0"]]]],BL:["590","00","(?:590\\d|7090)\\d{5}|(?:69|80|9\\d)\\d{7}",[9],0,"0",0,0,0,0,0,[["590(?:2[7-9]|3[3-7]|5[12]|87)\\d{4}"],["(?:69(?:0\\d\\d|1(?:2[2-9]|3[0-5])|4(?:0[89]|1[2-6]|9\\d)|6(?:1[016-9]|5[0-4]|[67]\\d))|7090[0-4])\\d{4}"],["80[0-5]\\d{6}"],0,0,0,0,0,["9(?:(?:39[5-7]|76[018])\\d|475[0-6])\\d{4}"]]],BM:["1","011","(?:441|[58]\\d\\d|900)\\d{7}",[10],0,"1",0,"([2-9]\\d{6})$|1","441$1",0,"441"],BN:["673","00","[2-578]\\d{6}",[7],[["(\\d{3})(\\d{4})","$1 $2",["[2-578]"]]]],BO:["591","00(?:1\\d)?","8001\\d{5}|(?:[2-467]\\d|50)\\d{6}",[8,9],[["(\\d)(\\d{7})","$1 $2",["[235]|4[46]"]],["(\\d{8})","$1",["[67]"]],["(\\d{3})(\\d{2})(\\d{4})","$1 $2 $3",["8"]]],"0",0,"0(1\\d)?"],BQ:["599","00","(?:[34]1|7\\d)\\d{5}",[7],0,0,0,0,0,0,"[347]"],BR:["55","00(?:1[245]|2[1-35]|31|4[13]|[56]5|99)","(?:[1-46-9]\\d\\d|5(?:[0-46-9]\\d|5[0-46-9]))\\d{8}|[1-9]\\d{9}|[3589]\\d{8}|[34]\\d{7}",[8,9,10,11],[["(\\d{4})(\\d{4})","$1-$2",["300|4(?:0[02]|37)","4(?:02|37)0|[34]00"]],["(\\d{3})(\\d{2,3})(\\d{4})","$1 $2 $3",["(?:[358]|90)0"],"0$1"],["(\\d{2})(\\d{4})(\\d{4})","$1 $2-$3",["(?:[14689][1-9]|2[12478]|3[1-578]|5[13-5]|7[13-579])[2-57]"],"($1)"],["(\\d{2})(\\d{5})(\\d{4})","$1 $2-$3",["[16][1-9]|[2-57-9]"],"($1)"]],"0",0,"(?:0|90)(?:(1[245]|2[1-35]|31|4[13]|[56]5|99)(\\d{10,11}))?","$2"],BS:["1","011","(?:242|[58]\\d\\d|900)\\d{7}",[10],0,"1",0,"([3-8]\\d{6})$|1","242$1",0,"242"],BT:["975","00","[17]\\d{7}|[2-8]\\d{6}",[7,8],[["(\\d)(\\d{3})(\\d{3})","$1 $2 $3",["[2-68]|7[246]"]],["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["1[67]|7"]]]],BW:["267","00","(?:0800|(?:[37]|800)\\d)\\d{6}|(?:[2-6]\\d|90)\\d{5}",[7,8,10],[["(\\d{2})(\\d{5})","$1 $2",["90"]],["(\\d{3})(\\d{4})","$1 $2",["[24-6]|3[15-9]"]],["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["[37]"]],["(\\d{4})(\\d{3})(\\d{3})","$1 $2 $3",["0"]],["(\\d{3})(\\d{4})(\\d{3})","$1 $2 $3",["8"]]]],BY:["375","810","(?:[12]\\d|33|44|902)\\d{7}|8(?:0[0-79]\\d{5,7}|[1-7]\\d{9})|8(?:1[0-489]|[5-79]\\d)\\d{7}|8[1-79]\\d{6,7}|8[0-79]\\d{5}|8\\d{5}",[6,7,8,9,10,11],[["(\\d{3})(\\d{3})","$1 $2",["800"],"8 $1"],["(\\d{3})(\\d{2})(\\d{2,4})","$1 $2 $3",["800"],"8 $1"],["(\\d{4})(\\d{2})(\\d{3})","$1 $2-$3",["1(?:5[169]|6[3-5]|7[179])|2(?:1[35]|2[34]|3[3-5])","1(?:5[169]|6(?:3[1-3]|4|5[125])|7(?:1[3-9]|7[0-24-6]|9[2-7]))|2(?:1[35]|2[34]|3[3-5])"],"8 0$1"],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2-$3-$4",["1(?:[56]|7[467])|2[1-3]"],"8 0$1"],["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2-$3-$4",["[1-4]"],"8 0$1"],["(\\d{3})(\\d{3,4})(\\d{4})","$1 $2 $3",["[89]"],"8 $1"]],"8",0,"0|80?",0,0,0,0,"8~10"],BZ:["501","00","(?:0800\\d|[2-8])\\d{6}",[7,11],[["(\\d{3})(\\d{4})","$1-$2",["[2-8]"]],["(\\d)(\\d{3})(\\d{4})(\\d{3})","$1-$2-$3-$4",["0"]]]],CA:["1","011","[2-9]\\d{9}|3\\d{6}",[7,10],0,"1",0,0,0,0,0,[["(?:2(?:04|[23]6|[48]9|50|63)|3(?:06|43|54|6[578]|82)|4(?:03|1[68]|[26]8|3[178]|50|74)|5(?:06|1[49]|48|79|8[147])|6(?:04|[18]3|39|47|72)|7(?:0[59]|42|53|78|8[02])|8(?:[06]7|19|25|7[39])|9(?:0[25]|42))[2-9]\\d{6}",[10]],["",[10]],["8(?:00|33|44|55|66|77|88)[2-9]\\d{6}",[10]],["900[2-9]\\d{6}",[10]],["52(?:3(?:[2-46-9][02-9]\\d|5(?:[02-46-9]\\d|5[0-46-9]))|4(?:[2-478][02-9]\\d|5(?:[034]\\d|2[024-9]|5[0-46-9])|6(?:0[1-9]|[2-9]\\d)|9(?:[05-9]\\d|2[0-5]|49)))\\d{4}|52[34][2-9]1[02-9]\\d{4}|(?:5(?:2[125-9]|33|44|66|77|88)|6(?:22|33))[2-9]\\d{6}",[10]],0,["310\\d{4}",[7]],0,["600[2-9]\\d{6}",[10]]]],CC:["61","001[14-689]|14(?:1[14]|34|4[17]|[56]6|7[47]|88)0011","1(?:[0-79]\\d{8}(?:\\d{2})?|8[0-24-9]\\d{7})|[148]\\d{8}|1\\d{5,7}",[6,7,8,9,10,12],0,"0",0,"([59]\\d{7})$|0","8$1",0,0,[["8(?:51(?:0(?:02|31|60|89)|1(?:18|76)|223)|91(?:0(?:1[0-2]|29)|1(?:[28]2|50|79)|2(?:10|64)|3(?:[06]8|22)|4[29]8|62\\d|70[23]|959))\\d{3}",[9]],["4(?:79[01]|83[0-389]|94[0-4])\\d{5}|4(?:[0-36]\\d|4[047-9]|5[0-25-9]|7[02-8]|8[0-24-9]|9[0-37-9])\\d{6}",[9]],["180(?:0\\d{3}|2)\\d{3}",[7,10]],["190[0-26]\\d{6}",[10]],0,0,0,0,["14(?:5(?:1[0458]|[23][458])|71\\d)\\d{4}",[9]],["13(?:00\\d{6}(?:\\d{2})?|45[0-4]\\d{3})|13\\d{4}",[6,8,10,12]]],"0011"],CD:["243","00","(?:(?:[189]|5\\d)\\d|2)\\d{7}|[1-68]\\d{6}",[7,8,9,10],[["(\\d{2})(\\d{2})(\\d{3})","$1 $2 $3",["88"],"0$1"],["(\\d{2})(\\d{5})","$1 $2",["[1-6]"],"0$1"],["(\\d{2})(\\d{2})(\\d{4})","$1 $2 $3",["2"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["1"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[89]"],"0$1"],["(\\d{2})(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3 $4",["5"],"0$1"]],"0"],CF:["236","00","(?:[27]\\d{3}|8776)\\d{4}",[8],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[278]"]]]],CG:["242","00","222\\d{6}|(?:0\\d|80)\\d{7}",[9],[["(\\d)(\\d{4})(\\d{4})","$1 $2 $3",["8"]],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[02]"]]]],CH:["41","00","8\\d{11}|[2-9]\\d{8}",[9,12],[["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["8[047]|90"],"0$1"],["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[2-79]|81"],"0$1"],["(\\d{3})(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4 $5",["8"],"0$1"]],"0"],CI:["225","00","[02]\\d{9}",[10],[["(\\d{2})(\\d{2})(\\d)(\\d{5})","$1 $2 $3 $4",["2"]],["(\\d{2})(\\d{2})(\\d{2})(\\d{4})","$1 $2 $3 $4",["0"]]]],CK:["682","00","[2-578]\\d{4}",[5],[["(\\d{2})(\\d{3})","$1 $2",["[2-578]"]]]],CL:["56","(?:0|1(?:1[0-69]|2[02-5]|5[13-58]|69|7[0167]|8[018]))0","12300\\d{6}|6\\d{9,10}|[2-9]\\d{8}",[9,10,11],[["(\\d{5})(\\d{4})","$1 $2",["219","2196"],"($1)"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["44"]],["(\\d)(\\d{4})(\\d{4})","$1 $2 $3",["2[1-36]"],"($1)"],["(\\d)(\\d{4})(\\d{4})","$1 $2 $3",["9[2-9]"]],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["3[2-5]|[47]|5[1-3578]|6[13-57]|8(?:0[1-9]|[1-9])"],"($1)"],["(\\d{3})(\\d{3})(\\d{3,4})","$1 $2 $3",["60|8"]],["(\\d{4})(\\d{3})(\\d{4})","$1 $2 $3",["1"]],["(\\d{3})(\\d{3})(\\d{2})(\\d{3})","$1 $2 $3 $4",["60"]]]],CM:["237","00","[26]\\d{8}|88\\d{6,7}",[8,9],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["88"]],["(\\d)(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4 $5",["[26]|88"]]]],CN:["86","00|1(?:[12]\\d|79)\\d\\d00","(?:(?:1[03-689]|2\\d)\\d\\d|6)\\d{8}|1\\d{10}|[126]\\d{6}(?:\\d(?:\\d{2})?)?|86\\d{5,6}|(?:[3-579]\\d|8[0-57-9])\\d{5,9}",[7,8,9,10,11,12],[["(\\d{2})(\\d{5,6})","$1 $2",["(?:10|2[0-57-9])[19]|3(?:[157]|35|49|9[1-68])|4(?:1[124-9]|2[179]|6[47-9]|7|8[23])|5(?:[1357]|2[37]|4[36]|6[1-46]|80)|6(?:3[1-5]|6[0238]|9[12])|7(?:01|[1579]|2[248]|3[014-9]|4[3-6]|6[023689])|8(?:07|1[236-8]|2[5-7]|[37]|8[36-8]|9[1-8])|9(?:0[1-3689]|1[1-79]|3|4[13]|5[1-5]|7[0-79]|9[0-35-9])|(?:4[35]|59|85)[1-9]","(?:10|2[0-57-9])(?:1[02]|9[56])|8078|(?:3(?:[157]\\d|35|49|9[1-68])|4(?:1[124-9]|2[179]|[35][1-9]|6[47-9]|7\\d|8[23])|5(?:[1357]\\d|2[37]|4[36]|6[1-46]|80|9[1-9])|6(?:3[1-5]|6[0238]|9[12])|7(?:01|[1579]\\d|2[248]|3[014-9]|4[3-6]|6[023689])|8(?:1[236-8]|2[5-7]|[37]\\d|5[1-9]|8[36-8]|9[1-8])|9(?:0[1-3689]|1[1-79]|3\\d|4[13]|5[1-5]|7[0-79]|9[0-35-9]))1","10(?:1(?:0|23)|9[56])|2[0-57-9](?:1(?:00|23)|9[56])|80781|(?:3(?:[157]\\d|35|49|9[1-68])|4(?:1[124-9]|2[179]|[35][1-9]|6[47-9]|7\\d|8[23])|5(?:[1357]\\d|2[37]|4[36]|6[1-46]|80|9[1-9])|6(?:3[1-5]|6[0238]|9[12])|7(?:01|[1579]\\d|2[248]|3[014-9]|4[3-6]|6[023689])|8(?:1[236-8]|2[5-7]|[37]\\d|5[1-9]|8[36-8]|9[1-8])|9(?:0[1-3689]|1[1-79]|3\\d|4[13]|5[1-5]|7[0-79]|9[0-35-9]))12","10(?:1(?:0|23)|9[56])|2[0-57-9](?:1(?:00|23)|9[56])|807812|(?:3(?:[157]\\d|35|49|9[1-68])|4(?:1[124-9]|2[179]|[35][1-9]|6[47-9]|7\\d|8[23])|5(?:[1357]\\d|2[37]|4[36]|6[1-46]|80|9[1-9])|6(?:3[1-5]|6[0238]|9[12])|7(?:01|[1579]\\d|2[248]|3[014-9]|4[3-6]|6[023689])|8(?:1[236-8]|2[5-7]|[37]\\d|5[1-9]|8[36-8]|9[1-8])|9(?:0[1-3689]|1[1-79]|3\\d|4[13]|5[1-5]|7[0-79]|9[0-35-9]))123","10(?:1(?:0|23)|9[56])|2[0-57-9](?:1(?:00|23)|9[56])|(?:3(?:[157]\\d|35|49|9[1-68])|4(?:1[124-9]|2[179]|[35][1-9]|6[47-9]|7\\d|8[23])|5(?:[1357]\\d|2[37]|4[36]|6[1-46]|80|9[1-9])|6(?:3[1-5]|6[0238]|9[12])|7(?:01|[1579]\\d|2[248]|3[014-9]|4[3-6]|6[023689])|8(?:078|1[236-8]|2[5-7]|[37]\\d|5[1-9]|8[36-8]|9[1-8])|9(?:0[1-3689]|1[1-79]|3\\d|4[13]|5[1-5]|7[0-79]|9[0-35-9]))123"],"0$1"],["(\\d{3})(\\d{5,6})","$1 $2",["3(?:[157]|35|49|9[1-68])|4(?:[17]|2[179]|6[47-9]|8[23])|5(?:[1357]|2[37]|4[36]|6[1-46]|80)|6(?:3[1-5]|6[0238]|9[12])|7(?:01|[1579]|2[248]|3[014-9]|4[3-6]|6[023689])|8(?:1[236-8]|2[5-7]|[37]|8[36-8]|9[1-8])|9(?:0[1-3689]|1[1-79]|[379]|4[13]|5[1-5])|(?:4[35]|59|85)[1-9]","(?:3(?:[157]\\d|35|49|9[1-68])|4(?:[17]\\d|2[179]|[35][1-9]|6[47-9]|8[23])|5(?:[1357]\\d|2[37]|4[36]|6[1-46]|80|9[1-9])|6(?:3[1-5]|6[0238]|9[12])|7(?:01|[1579]\\d|2[248]|3[014-9]|4[3-6]|6[023689])|8(?:1[236-8]|2[5-7]|[37]\\d|5[1-9]|8[36-8]|9[1-8])|9(?:0[1-3689]|1[1-79]|[379]\\d|4[13]|5[1-5]))[19]","85[23](?:10|95)|(?:3(?:[157]\\d|35|49|9[1-68])|4(?:[17]\\d|2[179]|[35][1-9]|6[47-9]|8[23])|5(?:[1357]\\d|2[37]|4[36]|6[1-46]|80|9[1-9])|6(?:3[1-5]|6[0238]|9[12])|7(?:01|[1579]\\d|2[248]|3[014-9]|4[3-6]|6[023689])|8(?:1[236-8]|2[5-7]|[37]\\d|5[14-9]|8[36-8]|9[1-8])|9(?:0[1-3689]|1[1-79]|[379]\\d|4[13]|5[1-5]))(?:10|9[56])","85[23](?:100|95)|(?:3(?:[157]\\d|35|49|9[1-68])|4(?:[17]\\d|2[179]|[35][1-9]|6[47-9]|8[23])|5(?:[1357]\\d|2[37]|4[36]|6[1-46]|80|9[1-9])|6(?:3[1-5]|6[0238]|9[12])|7(?:01|[1579]\\d|2[248]|3[014-9]|4[3-6]|6[023689])|8(?:1[236-8]|2[5-7]|[37]\\d|5[14-9]|8[36-8]|9[1-8])|9(?:0[1-3689]|1[1-79]|[379]\\d|4[13]|5[1-5]))(?:100|9[56])"],"0$1"],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["(?:4|80)0"]],["(\\d{2})(\\d{4})(\\d{4})","$1 $2 $3",["10|2(?:[02-57-9]|1[1-9])","10|2(?:[02-57-9]|1[1-9])","10[0-79]|2(?:[02-57-9]|1[1-79])|(?:10|21)8(?:0[1-9]|[1-9])"],"0$1",1],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["3(?:[3-59]|7[02-68])|4(?:[26-8]|3[3-9]|5[2-9])|5(?:3[03-9]|[468]|7[028]|9[2-46-9])|6|7(?:[0-247]|3[04-9]|5[0-4689]|6[2368])|8(?:[1-358]|9[1-7])|9(?:[013479]|5[1-5])|(?:[34]1|55|79|87)[02-9]"],"0$1",1],["(\\d{3})(\\d{7,8})","$1 $2",["9"]],["(\\d{4})(\\d{3})(\\d{4})","$1 $2 $3",["80"],"0$1",1],["(\\d{3})(\\d{4})(\\d{4})","$1 $2 $3",["[3-578]"],"0$1",1],["(\\d{3})(\\d{4})(\\d{4})","$1 $2 $3",["1[3-9]"]],["(\\d{2})(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3 $4",["[12]"],"0$1",1]],"0",0,"(1(?:[12]\\d|79)\\d\\d)|0",0,0,0,0,"00"],CO:["57","00(?:4(?:[14]4|56)|[579])","(?:46|60\\d\\d)\\d{6}|(?:1\\d|[39])\\d{9}",[8,10,11],[["(\\d{4})(\\d{4})","$1 $2",["46"]],["(\\d{3})(\\d{7})","$1 $2",["6|90"],"($1)"],["(\\d{3})(\\d{7})","$1 $2",["3[0-357]|91"]],["(\\d)(\\d{3})(\\d{7})","$1-$2-$3",["1"],"0$1",0,"$1 $2 $3"]],"0",0,"0([3579]|4(?:[14]4|56))?"],CR:["506","00","(?:8\\d|90)\\d{8}|(?:[24-8]\\d{3}|3005)\\d{4}",[8,10],[["(\\d{4})(\\d{4})","$1 $2",["[2-7]|8[3-9]"]],["(\\d{3})(\\d{3})(\\d{4})","$1-$2-$3",["[89]"]]],0,0,"(19(?:0[0-2468]|1[09]|20|66|77|99))"],CU:["53","119","(?:[2-7]|8\\d\\d)\\d{7}|[2-47]\\d{6}|[34]\\d{5}",[6,7,8,10],[["(\\d{2})(\\d{4,6})","$1 $2",["2[1-4]|[34]"],"(0$1)"],["(\\d)(\\d{6,7})","$1 $2",["7"],"(0$1)"],["(\\d)(\\d{7})","$1 $2",["[56]"],"0$1"],["(\\d{3})(\\d{7})","$1 $2",["8"],"0$1"]],"0"],CV:["238","0","(?:[2-59]\\d\\d|800)\\d{4}",[7],[["(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3",["[2-589]"]]]],CW:["599","00","(?:[34]1|60|(?:7|9\\d)\\d)\\d{5}",[7,8],[["(\\d{3})(\\d{4})","$1 $2",["[3467]"]],["(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["9[4-8]"]]],0,0,0,0,0,"[69]"],CX:["61","001[14-689]|14(?:1[14]|34|4[17]|[56]6|7[47]|88)0011","1(?:[0-79]\\d{8}(?:\\d{2})?|8[0-24-9]\\d{7})|[148]\\d{8}|1\\d{5,7}",[6,7,8,9,10,12],0,"0",0,"([59]\\d{7})$|0","8$1",0,0,[["8(?:51(?:0(?:01|30|59|88)|1(?:17|46|75)|2(?:22|35))|91(?:00[6-9]|1(?:[28]1|49|78)|2(?:09|63)|3(?:12|26|75)|4(?:56|97)|64\\d|7(?:0[01]|1[0-2])|958))\\d{3}",[9]],["4(?:79[01]|83[0-389]|94[0-4])\\d{5}|4(?:[0-36]\\d|4[047-9]|5[0-25-9]|7[02-8]|8[0-24-9]|9[0-37-9])\\d{6}",[9]],["180(?:0\\d{3}|2)\\d{3}",[7,10]],["190[0-26]\\d{6}",[10]],0,0,0,0,["14(?:5(?:1[0458]|[23][458])|71\\d)\\d{4}",[9]],["13(?:00\\d{6}(?:\\d{2})?|45[0-4]\\d{3})|13\\d{4}",[6,8,10,12]]],"0011"],CY:["357","00","(?:[279]\\d|[58]0)\\d{6}",[8],[["(\\d{2})(\\d{6})","$1 $2",["[257-9]"]]]],CZ:["420","00","(?:[2-578]\\d|60)\\d{7}|9\\d{8,11}",[9,10,11,12],[["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[2-8]|9[015-7]"]],["(\\d{2})(\\d{3})(\\d{3})(\\d{2})","$1 $2 $3 $4",["96"]],["(\\d{2})(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3 $4",["9"]],["(\\d{3})(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3 $4",["9"]]]],DE:["49","00","[2579]\\d{5,14}|49(?:[34]0|69|8\\d)\\d\\d?|49(?:37|49|60|7[089]|9\\d)\\d{1,3}|49(?:2[024-9]|3[2-689]|7[1-7])\\d{1,8}|(?:1|[368]\\d|4[0-8])\\d{3,13}|49(?:[015]\\d|2[13]|31|[46][1-8])\\d{1,9}",[4,5,6,7,8,9,10,11,12,13,14,15],[["(\\d{2})(\\d{3,13})","$1 $2",["3[02]|40|[68]9"],"0$1"],["(\\d{3})(\\d{3,12})","$1 $2",["2(?:0[1-389]|1[124]|2[18]|3[14])|3(?:[35-9][15]|4[015])|906|(?:2[4-9]|4[2-9]|[579][1-9]|[68][1-8])1","2(?:0[1-389]|12[0-8])|3(?:[35-9][15]|4[015])|906|2(?:[13][14]|2[18])|(?:2[4-9]|4[2-9]|[579][1-9]|[68][1-8])1"],"0$1"],["(\\d{4})(\\d{2,11})","$1 $2",["[24-6]|3(?:[3569][02-46-9]|4[2-4679]|7[2-467]|8[2-46-8])|70[2-8]|8(?:0[2-9]|[1-8])|90[7-9]|[79][1-9]","[24-6]|3(?:3(?:0[1-467]|2[127-9]|3[124578]|7[1257-9]|8[1256]|9[145])|4(?:2[135]|4[13578]|9[1346])|5(?:0[14]|2[1-3589]|6[1-4]|7[13468]|8[13568])|6(?:2[1-489]|3[124-6]|6[13]|7[12579]|8[1-356]|9[135])|7(?:2[1-7]|4[145]|6[1-5]|7[1-4])|8(?:21|3[1468]|6|7[1467]|8[136])|9(?:0[12479]|2[1358]|4[134679]|6[1-9]|7[136]|8[147]|9[1468]))|70[2-8]|8(?:0[2-9]|[1-8])|90[7-9]|[79][1-9]|3[68]4[1347]|3(?:47|60)[1356]|3(?:3[46]|46|5[49])[1246]|3[4579]3[1357]"],"0$1"],["(\\d{3})(\\d{4})","$1 $2",["138"],"0$1"],["(\\d{5})(\\d{2,10})","$1 $2",["3"],"0$1"],["(\\d{3})(\\d{5,11})","$1 $2",["181"],"0$1"],["(\\d{3})(\\d)(\\d{4,10})","$1 $2 $3",["1(?:3|80)|9"],"0$1"],["(\\d{3})(\\d{7,8})","$1 $2",["1[67]"],"0$1"],["(\\d{3})(\\d{7,12})","$1 $2",["8"],"0$1"],["(\\d{5})(\\d{6})","$1 $2",["185","1850","18500"],"0$1"],["(\\d{3})(\\d{4})(\\d{4})","$1 $2 $3",["7"],"0$1"],["(\\d{4})(\\d{7})","$1 $2",["18[68]"],"0$1"],["(\\d{4})(\\d{7})","$1 $2",["15[1279]"],"0$1"],["(\\d{5})(\\d{6})","$1 $2",["15[03568]","15(?:[0568]|31)"],"0$1"],["(\\d{3})(\\d{8})","$1 $2",["18"],"0$1"],["(\\d{3})(\\d{2})(\\d{7,8})","$1 $2 $3",["1(?:6[023]|7)"],"0$1"],["(\\d{4})(\\d{2})(\\d{7})","$1 $2 $3",["15[279]"],"0$1"],["(\\d{3})(\\d{2})(\\d{8})","$1 $2 $3",["15"],"0$1"]],"0"],DJ:["253","00","(?:2\\d|77)\\d{6}",[8],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[27]"]]]],DK:["45","00","[2-9]\\d{7}",[8],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[2-9]"]]]],DM:["1","011","(?:[58]\\d\\d|767|900)\\d{7}",[10],0,"1",0,"([2-7]\\d{6})$|1","767$1",0,"767"],DO:["1","011","(?:[58]\\d\\d|900)\\d{7}",[10],0,"1",0,0,0,0,"8001|8[024]9"],DZ:["213","00","(?:[1-4]|[5-79]\\d|80)\\d{7}",[8,9],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[1-4]"],"0$1"],["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["9"],"0$1"],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[5-8]"],"0$1"]],"0"],EC:["593","00","1\\d{9,10}|(?:[2-7]|9\\d)\\d{7}",[8,9,10,11],[["(\\d)(\\d{3})(\\d{4})","$1 $2-$3",["[2-7]"],"(0$1)",0,"$1-$2-$3"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["9"],"0$1"],["(\\d{4})(\\d{3})(\\d{3,4})","$1 $2 $3",["1"]]],"0"],EE:["372","00","8\\d{9}|[4578]\\d{7}|(?:[3-8]\\d|90)\\d{5}",[7,8,10],[["(\\d{3})(\\d{4})","$1 $2",["[369]|4[3-8]|5(?:[0-2]|5[0-478]|6[45])|7[1-9]|88","[369]|4[3-8]|5(?:[02]|1(?:[0-8]|95)|5[0-478]|6(?:4[0-4]|5[1-589]))|7[1-9]|88"]],["(\\d{4})(\\d{3,4})","$1 $2",["[45]|8(?:00|[1-49])","[45]|8(?:00[1-9]|[1-49])"]],["(\\d{2})(\\d{2})(\\d{4})","$1 $2 $3",["7"]],["(\\d{4})(\\d{3})(\\d{3})","$1 $2 $3",["8"]]]],EG:["20","00","[189]\\d{8,9}|[24-6]\\d{8}|[135]\\d{7}",[8,9,10],[["(\\d)(\\d{7,8})","$1 $2",["[23]"],"0$1"],["(\\d{2})(\\d{6,7})","$1 $2",["1[35]|[4-6]|8[2468]|9[235-7]"],"0$1"],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["[89]"],"0$1"],["(\\d{2})(\\d{8})","$1 $2",["1"],"0$1"]],"0"],EH:["212","00","[5-8]\\d{8}",[9],0,"0",0,0,0,0,"528[89]"],ER:["291","00","[178]\\d{6}",[7],[["(\\d)(\\d{3})(\\d{3})","$1 $2 $3",["[178]"],"0$1"]],"0"],ES:["34","00","[5-9]\\d{8}",[9],[["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[89]00"]],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[5-9]"]]]],ET:["251","00","(?:11|[2-579]\\d)\\d{7}",[9],[["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[1-579]"],"0$1"]],"0"],FI:["358","00|99(?:[01469]|5(?:[14]1|3[23]|5[59]|77|88|9[09]))","[1-35689]\\d{4}|7\\d{10,11}|(?:[124-7]\\d|3[0-46-9])\\d{8}|[1-9]\\d{5,8}",[5,6,7,8,9,10,11,12],[["(\\d{5})","$1",["20[2-59]"],"0$1"],["(\\d{3})(\\d{3,7})","$1 $2",["(?:[1-3]0|[68])0|70[07-9]"],"0$1"],["(\\d{2})(\\d{4,8})","$1 $2",["[14]|2[09]|50|7[135]"],"0$1"],["(\\d{2})(\\d{6,10})","$1 $2",["7"],"0$1"],["(\\d)(\\d{4,9})","$1 $2",["(?:19|[2568])[1-8]|3(?:0[1-9]|[1-9])|9"],"0$1"]],"0",0,0,0,0,"1[03-79]|[2-9]",0,"00"],FJ:["679","0(?:0|52)","45\\d{5}|(?:0800\\d|[235-9])\\d{6}",[7,11],[["(\\d{3})(\\d{4})","$1 $2",["[235-9]|45"]],["(\\d{4})(\\d{3})(\\d{4})","$1 $2 $3",["0"]]],0,0,0,0,0,0,0,"00"],FK:["500","00","[2-7]\\d{4}",[5]],FM:["691","00","(?:[39]\\d\\d|820)\\d{4}",[7],[["(\\d{3})(\\d{4})","$1 $2",["[389]"]]]],FO:["298","00","[2-9]\\d{5}",[6],[["(\\d{6})","$1",["[2-9]"]]],0,0,"(10(?:01|[12]0|88))"],FR:["33","00","[1-9]\\d{8}",[9],[["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["8"],"0 $1"],["(\\d)(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4 $5",["[1-79]"],"0$1"]],"0"],GA:["241","00","(?:[067]\\d|11)\\d{6}|[2-7]\\d{6}",[7,8],[["(\\d)(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[2-7]"],"0$1"],["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["0"]],["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["11|[67]"],"0$1"]],0,0,"0(11\\d{6}|60\\d{6}|61\\d{6}|6[256]\\d{6}|7[467]\\d{6})","$1"],GB:["44","00","[1-357-9]\\d{9}|[18]\\d{8}|8\\d{6}",[7,9,10],[["(\\d{3})(\\d{4})","$1 $2",["800","8001","80011","800111","8001111"],"0$1"],["(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3",["845","8454","84546","845464"],"0$1"],["(\\d{3})(\\d{6})","$1 $2",["800"],"0$1"],["(\\d{5})(\\d{4,5})","$1 $2",["1(?:38|5[23]|69|76|94)","1(?:(?:38|69)7|5(?:24|39)|768|946)","1(?:3873|5(?:242|39[4-6])|(?:697|768)[347]|9467)"],"0$1"],["(\\d{4})(\\d{5,6})","$1 $2",["1(?:[2-69][02-9]|[78])"],"0$1"],["(\\d{2})(\\d{4})(\\d{4})","$1 $2 $3",["[25]|7(?:0|6[02-9])","[25]|7(?:0|6(?:[03-9]|2[356]))"],"0$1"],["(\\d{4})(\\d{6})","$1 $2",["7"],"0$1"],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["[1389]"],"0$1"]],"0",0,0,0,0,0,[["(?:1(?:1(?:3(?:[0-58]\\d\\d|73[0-35])|4(?:(?:[0-5]\\d|70)\\d|69[7-9])|(?:(?:5[0-26-9]|[78][0-49])\\d|6(?:[0-4]\\d|50))\\d)|(?:2(?:(?:0[024-9]|2[3-9]|3[3-79]|4[1-689]|[58][02-9]|6[0-47-9]|7[013-9]|9\\d)\\d|1(?:[0-7]\\d|8[0-3]))|(?:3(?:0\\d|1[0-8]|[25][02-9]|3[02-579]|[468][0-46-9]|7[1-35-79]|9[2-578])|4(?:0[03-9]|[137]\\d|[28][02-57-9]|4[02-69]|5[0-8]|[69][0-79])|5(?:0[1-35-9]|[16]\\d|2[024-9]|3[015689]|4[02-9]|5[03-9]|7[0-35-9]|8[0-468]|9[0-57-9])|6(?:0[034689]|1\\d|2[0-35689]|[38][013-9]|4[1-467]|5[0-69]|6[13-9]|7[0-8]|9[0-24578])|7(?:0[0246-9]|2\\d|3[0236-8]|4[03-9]|5[0-46-9]|6[013-9]|7[0-35-9]|8[024-9]|9[02-9])|8(?:0[35-9]|2[1-57-9]|3[02-578]|4[0-578]|5[124-9]|6[2-69]|7\\d|8[02-9]|9[02569])|9(?:0[02-589]|[18]\\d|2[02-689]|3[1-57-9]|4[2-9]|5[0-579]|6[2-47-9]|7[0-24578]|9[2-57]))\\d)\\d)|2(?:0[013478]|3[0189]|4[017]|8[0-46-9]|9[0-2])\\d{3})\\d{4}|1(?:2(?:0(?:46[1-4]|87[2-9])|545[1-79]|76(?:2\\d|3[1-8]|6[1-6])|9(?:7(?:2[0-4]|3[2-5])|8(?:2[2-8]|7[0-47-9]|8[3-5])))|3(?:6(?:38[2-5]|47[23])|8(?:47[04-9]|64[0157-9]))|4(?:044[1-7]|20(?:2[23]|8\\d)|6(?:0(?:30|5[2-57]|6[1-8]|7[2-8])|140)|8(?:052|87[1-3]))|5(?:2(?:4(?:3[2-79]|6\\d)|76\\d)|6(?:26[06-9]|686))|6(?:06(?:4\\d|7[4-79])|295[5-7]|35[34]\\d|47(?:24|61)|59(?:5[08]|6[67]|74)|9(?:55[0-4]|77[23]))|7(?:26(?:6[13-9]|7[0-7])|(?:442|688)\\d|50(?:2[0-3]|[3-68]2|76))|8(?:27[56]\\d|37(?:5[2-5]|8[239])|843[2-58])|9(?:0(?:0(?:6[1-8]|85)|52\\d)|3583|4(?:66[1-8]|9(?:2[01]|81))|63(?:23|3[1-4])|9561))\\d{3}",[9,10]],["7(?:457[0-57-9]|700[01]|911[028])\\d{5}|7(?:[1-3]\\d\\d|4(?:[0-46-9]\\d|5[0-689])|5(?:0[0-8]|[13-9]\\d|2[0-35-9])|7(?:0[1-9]|[1-7]\\d|8[02-9]|9[0-689])|8(?:[014-9]\\d|[23][0-8])|9(?:[024-9]\\d|1[02-9]|3[0-689]))\\d{6}",[10]],["80[08]\\d{7}|800\\d{6}|8001111"],["(?:8(?:4[2-5]|7[0-3])|9(?:[01]\\d|8[2-49]))\\d{7}|845464\\d",[7,10]],["70\\d{8}",[10]],0,["(?:3[0347]|55)\\d{8}",[10]],["76(?:464|652)\\d{5}|76(?:0[0-28]|2[356]|34|4[01347]|5[49]|6[0-369]|77|8[14]|9[139])\\d{6}",[10]],["56\\d{8}",[10]]],0," x"],GD:["1","011","(?:473|[58]\\d\\d|900)\\d{7}",[10],0,"1",0,"([2-9]\\d{6})$|1","473$1",0,"473"],GE:["995","00","(?:[3-57]\\d\\d|800)\\d{6}",[9],[["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["70"],"0$1"],["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["32"],"0$1"],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[57]"]],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[348]"],"0$1"]],"0"],GF:["594","00","(?:[56]94\\d|7093)\\d{5}|(?:80|9\\d)\\d{7}",[9],[["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[5-7]|9[47]"],"0$1"],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[89]"],"0$1"]],"0"],GG:["44","00","(?:1481|[357-9]\\d{3})\\d{6}|8\\d{6}(?:\\d{2})?",[7,9,10],0,"0",0,"([25-9]\\d{5})$|0","1481$1",0,0,[["1481[25-9]\\d{5}",[10]],["7(?:(?:781|839)\\d|911[17])\\d{5}",[10]],["80[08]\\d{7}|800\\d{6}|8001111"],["(?:8(?:4[2-5]|7[0-3])|9(?:[01]\\d|8[0-3]))\\d{7}|845464\\d",[7,10]],["70\\d{8}",[10]],0,["(?:3[0347]|55)\\d{8}",[10]],["76(?:464|652)\\d{5}|76(?:0[0-28]|2[356]|34|4[01347]|5[49]|6[0-369]|77|8[14]|9[139])\\d{6}",[10]],["56\\d{8}",[10]]]],GH:["233","00","(?:[235]\\d{3}|800)\\d{5}",[8,9],[["(\\d{3})(\\d{5})","$1 $2",["8"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[235]"],"0$1"]],"0"],GI:["350","00","(?:[25]\\d|60)\\d{6}",[8],[["(\\d{3})(\\d{5})","$1 $2",["2"]]]],GL:["299","00","(?:19|[2-689]\\d|70)\\d{4}",[6],[["(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3",["19|[2-9]"]]]],GM:["220","00","[2-9]\\d{6}",[7],[["(\\d{3})(\\d{4})","$1 $2",["[2-9]"]]]],GN:["224","00","722\\d{6}|(?:3|6\\d)\\d{7}",[8,9],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["3"]],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[67]"]]]],GP:["590","00","(?:590\\d|7090)\\d{5}|(?:69|80|9\\d)\\d{7}",[9],[["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[5-79]"],"0$1"],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["8"],"0$1"]],"0",0,0,0,0,0,[["590(?:0[1-68]|[14][0-24-9]|2[0-68]|3[1-9]|5[3-579]|[68][0-689]|7[08]|9\\d)\\d{4}"],["(?:69(?:0\\d\\d|1(?:2[2-9]|3[0-5])|4(?:0[89]|1[2-6]|9\\d)|6(?:1[016-9]|5[0-4]|[67]\\d))|7090[0-4])\\d{4}"],["80[0-5]\\d{6}"],0,0,0,0,0,["9(?:(?:39[5-7]|76[018])\\d|475[0-6])\\d{4}"]]],GQ:["240","00","222\\d{6}|(?:3\\d|55|[89]0)\\d{7}",[9],[["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[235]"]],["(\\d{3})(\\d{6})","$1 $2",["[89]"]]]],GR:["30","00","5005000\\d{3}|8\\d{9,11}|(?:[269]\\d|70)\\d{8}",[10,11,12],[["(\\d{2})(\\d{4})(\\d{4})","$1 $2 $3",["21|7"]],["(\\d{4})(\\d{6})","$1 $2",["2(?:2|3[2-57-9]|4[2-469]|5[2-59]|6[2-9]|7[2-69]|8[2-49])|5"]],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["[2689]"]],["(\\d{3})(\\d{3,4})(\\d{5})","$1 $2 $3",["8"]]]],GT:["502","00","80\\d{6}|(?:1\\d{3}|[2-7])\\d{7}",[8,11],[["(\\d{4})(\\d{4})","$1 $2",["[2-8]"]],["(\\d{4})(\\d{3})(\\d{4})","$1 $2 $3",["1"]]]],GU:["1","011","(?:[58]\\d\\d|671|900)\\d{7}",[10],0,"1",0,"([2-9]\\d{6})$|1","671$1",0,"671"],GW:["245","00","[49]\\d{8}|4\\d{6}",[7,9],[["(\\d{3})(\\d{4})","$1 $2",["40"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[49]"]]]],GY:["592","001","(?:[2-8]\\d{3}|9008)\\d{3}",[7],[["(\\d{3})(\\d{4})","$1 $2",["[2-9]"]]]],HK:["852","00(?:30|5[09]|[126-9]?)","8[0-46-9]\\d{6,7}|9\\d{4,7}|(?:[2-7]|9\\d{3})\\d{7}",[5,6,7,8,9,11],[["(\\d{3})(\\d{2,5})","$1 $2",["900","9003"]],["(\\d{4})(\\d{4})","$1 $2",["[2-7]|8[1-4]|9(?:0[1-9]|[1-8])"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["8"]],["(\\d{3})(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3 $4",["9"]]],0,0,0,0,0,0,0,"00"],HN:["504","00","8\\d{10}|[237-9]\\d{7}",[8,11],[["(\\d{4})(\\d{4})","$1-$2",["[237-9]"]]]],HR:["385","00","(?:[24-69]\\d|3[0-79])\\d{7}|80\\d{5,7}|[1-79]\\d{7}|6\\d{5,6}",[6,7,8,9],[["(\\d{2})(\\d{2})(\\d{2,3})","$1 $2 $3",["6[01]"],"0$1"],["(\\d{3})(\\d{2})(\\d{2,3})","$1 $2 $3",["8"],"0$1"],["(\\d)(\\d{4})(\\d{3})","$1 $2 $3",["1"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["6|7[245]"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["9"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["[2-57]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["8"],"0$1"]],"0"],HT:["509","00","(?:[2-489]\\d|55)\\d{6}",[8],[["(\\d{2})(\\d{2})(\\d{4})","$1 $2 $3",["[2-589]"]]]],HU:["36","00","[235-7]\\d{8}|[1-9]\\d{7}",[8,9],[["(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["1"],"(06 $1)"],["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["[27][2-9]|3[2-7]|4[24-9]|5[2-79]|6|8[2-57-9]|9[2-69]"],"(06 $1)"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["[2-9]"],"06 $1"]],"06"],ID:["62","00[89]","00[1-9]\\d{9,14}|(?:[1-36]|8\\d{5})\\d{6}|00\\d{9}|[1-9]\\d{8,10}|[2-9]\\d{7}",[7,8,9,10,11,12,13,14,15,16,17],[["(\\d)(\\d{3})(\\d{3})","$1 $2 $3",["15"]],["(\\d{2})(\\d{5,9})","$1 $2",["2[124]|[36]1"],"(0$1)"],["(\\d{3})(\\d{5,7})","$1 $2",["800"],"0$1"],["(\\d{3})(\\d{5,8})","$1 $2",["[2-79]"],"(0$1)"],["(\\d{3})(\\d{3,4})(\\d{3})","$1-$2-$3",["8[1-35-9]"],"0$1"],["(\\d{3})(\\d{6,8})","$1 $2",["1"],"0$1"],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["804"],"0$1"],["(\\d{3})(\\d)(\\d{3})(\\d{3})","$1 $2 $3 $4",["80"],"0$1"],["(\\d{3})(\\d{4})(\\d{4,5})","$1-$2-$3",["8"],"0$1"]],"0"],IE:["353","00","(?:1\\d|[2569])\\d{6,8}|4\\d{6,9}|7\\d{8}|8\\d{8,9}",[7,8,9,10],[["(\\d{2})(\\d{5})","$1 $2",["2[24-9]|47|58|6[237-9]|9[35-9]"],"(0$1)"],["(\\d{3})(\\d{5})","$1 $2",["[45]0"],"(0$1)"],["(\\d)(\\d{3,4})(\\d{4})","$1 $2 $3",["1"],"(0$1)"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["[2569]|4[1-69]|7[14]"],"(0$1)"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["70"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["81"],"(0$1)"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[78]"],"0$1"],["(\\d{4})(\\d{3})(\\d{3})","$1 $2 $3",["1"]],["(\\d{2})(\\d{4})(\\d{4})","$1 $2 $3",["4"],"(0$1)"],["(\\d{2})(\\d)(\\d{3})(\\d{4})","$1 $2 $3 $4",["8"],"0$1"]],"0"],IL:["972","0(?:0|1[2-9])","1\\d{6}(?:\\d{3,5})?|[57]\\d{8}|[1-489]\\d{7}",[7,8,9,10,11,12],[["(\\d{4})(\\d{3})","$1-$2",["125"]],["(\\d{4})(\\d{2})(\\d{2})","$1-$2-$3",["121"]],["(\\d)(\\d{3})(\\d{4})","$1-$2-$3",["[2-489]"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1-$2-$3",["[57]"],"0$1"],["(\\d{4})(\\d{3})(\\d{3})","$1-$2-$3",["12"]],["(\\d{4})(\\d{6})","$1-$2",["159"]],["(\\d)(\\d{3})(\\d{3})(\\d{3})","$1-$2-$3-$4",["1[7-9]"]],["(\\d{3})(\\d{1,2})(\\d{3})(\\d{4})","$1-$2 $3-$4",["15"]]],"0"],IM:["44","00","1624\\d{6}|(?:[3578]\\d|90)\\d{8}",[10],0,"0",0,"([25-8]\\d{5})$|0","1624$1",0,"74576|(?:16|7[56])24"],IN:["91","00","(?:000800|[2-9]\\d\\d)\\d{7}|1\\d{7,12}",[8,9,10,11,12,13],[["(\\d{8})","$1",["5(?:0|2[23]|3[03]|[67]1|88)","5(?:0|2(?:21|3)|3(?:0|3[23])|616|717|888)","5(?:0|2(?:21|3)|3(?:0|3[23])|616|717|8888)"],0,1],["(\\d{4})(\\d{4,5})","$1 $2",["180","1800"],0,1],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["140"],0,1],["(\\d{2})(\\d{4})(\\d{4})","$1 $2 $3",["11|2[02]|33|4[04]|79[1-7]|80[2-46]","11|2[02]|33|4[04]|79(?:[1-6]|7[19])|80(?:[2-4]|6[0-589])","11|2[02]|33|4[04]|79(?:[124-6]|3(?:[02-9]|1[0-24-9])|7(?:1|9[1-6]))|80(?:[2-4]|6[0-589])"],"0$1",1],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["1(?:2[0-249]|3[0-25]|4[145]|[68]|7[1257])|2(?:1[257]|3[013]|4[01]|5[0137]|6[0158]|78|8[1568])|3(?:26|4[1-3]|5[34]|6[01489]|7[02-46]|8[159])|4(?:1[36]|2[1-47]|5[12]|6[0-26-9]|7[0-24-9]|8[013-57]|9[014-7])|5(?:1[025]|22|[36][25]|4[28]|5[12]|[78]1)|6(?:12|[2-4]1|5[17]|6[13]|80)|7(?:12|3[134]|4[47]|61|88)|8(?:16|2[014]|3[126]|6[136]|7[078]|8[34]|91)|(?:43|59|75)[15]|(?:1[59]|29|67|72)[14]","1(?:2[0-24]|3[0-25]|4[145]|[59][14]|6[1-9]|7[1257]|8[1-57-9])|2(?:1[257]|3[013]|4[01]|5[0137]|6[058]|78|8[1568]|9[14])|3(?:26|4[1-3]|5[34]|6[01489]|7[02-46]|8[159])|4(?:1[36]|2[1-47]|3[15]|5[12]|6[0-26-9]|7[0-24-9]|8[013-57]|9[014-7])|5(?:1[025]|22|[36][25]|4[28]|[578]1|9[15])|674|7(?:(?:2[14]|3[34]|5[15])[2-6]|61[346]|88[0-8])|8(?:70[2-6]|84[235-7]|91[3-7])|(?:1(?:29|60|8[06])|261|552|6(?:12|[2-47]1|5[17]|6[13]|80)|7(?:12|31|4[47])|8(?:16|2[014]|3[126]|6[136]|7[78]|83))[2-7]","1(?:2[0-24]|3[0-25]|4[145]|[59][14]|6[1-9]|7[1257]|8[1-57-9])|2(?:1[257]|3[013]|4[01]|5[0137]|6[058]|78|8[1568]|9[14])|3(?:26|4[1-3]|5[34]|6[01489]|7[02-46]|8[159])|4(?:1[36]|2[1-47]|3[15]|5[12]|6[0-26-9]|7[0-24-9]|8[013-57]|9[014-7])|5(?:1[025]|22|[36][25]|4[28]|[578]1|9[15])|6(?:12(?:[2-6]|7[0-8])|74[2-7])|7(?:(?:2[14]|5[15])[2-6]|3171|61[346]|88(?:[2-7]|82))|8(?:70[2-6]|84(?:[2356]|7[19])|91(?:[3-6]|7[19]))|73[134][2-6]|(?:74[47]|8(?:16|2[014]|3[126]|6[136]|7[78]|83))(?:[2-6]|7[19])|(?:1(?:29|60|8[06])|261|552|6(?:[2-4]1|5[17]|6[13]|7(?:1|4[0189])|80)|7(?:12|88[01]))[2-7]"],"0$1",1],["(\\d{4})(\\d{3})(\\d{3})","$1 $2 $3",["1(?:[2-479]|5[0235-9])|[2-5]|6(?:1[1358]|2[2457-9]|3[2-5]|4[235-7]|5[2-689]|6[24578]|7[235689]|8[1-6])|7(?:1[013-9]|28|3[129]|4[1-35689]|5[29]|6[02-5]|70)|807","1(?:[2-479]|5[0235-9])|[2-5]|6(?:1[1358]|2(?:[2457]|84|95)|3(?:[2-4]|55)|4[235-7]|5[2-689]|6[24578]|7[235689]|8[1-6])|7(?:1(?:[013-8]|9[6-9])|28[6-8]|3(?:17|2[0-49]|9[2-57])|4(?:1[2-4]|[29][0-7]|3[0-8]|[56]|8[0-24-7])|5(?:2[1-3]|9[0-6])|6(?:0[5689]|2[5-9]|3[02-8]|4|5[0-367])|70[13-7])|807[19]","1(?:[2-479]|5(?:[0236-9]|5[013-9]))|[2-5]|6(?:2(?:84|95)|355|83)|73179|807(?:1|9[1-3])|(?:1552|6(?:1[1358]|2[2457]|3[2-4]|4[235-7]|5[2-689]|6[24578]|7[235689]|8[124-6])\\d|7(?:1(?:[013-8]\\d|9[6-9])|28[6-8]|3(?:2[0-49]|9[2-57])|4(?:1[2-4]|[29][0-7]|3[0-8]|[56]\\d|8[0-24-7])|5(?:2[1-3]|9[0-6])|6(?:0[5689]|2[5-9]|3[02-8]|4\\d|5[0-367])|70[13-7]))[2-7]"],"0$1",1],["(\\d{5})(\\d{5})","$1 $2",["[6-9]"],"0$1",1],["(\\d{4})(\\d{2,4})(\\d{4})","$1 $2 $3",["1(?:6|8[06])","1(?:6|8[06]0)"],0,1],["(\\d{4})(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3 $4",["18"],0,1]],"0"],IO:["246","00","3\\d{6}",[7],[["(\\d{3})(\\d{4})","$1 $2",["3"]]]],IQ:["964","00","(?:1|7\\d\\d)\\d{7}|[2-6]\\d{7,8}",[8,9,10],[["(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["1"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["[2-6]"],"0$1"],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["7"],"0$1"]],"0"],IR:["98","00","[1-9]\\d{9}|(?:[1-8]\\d\\d|9)\\d{3,4}",[4,5,6,7,10],[["(\\d{4,5})","$1",["96"],"0$1"],["(\\d{2})(\\d{4,5})","$1 $2",["(?:1[137]|2[13-68]|3[1458]|4[145]|5[1468]|6[16]|7[1467]|8[13467])[12689]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3,4})","$1 $2 $3",["9"],"0$1"],["(\\d{2})(\\d{4})(\\d{4})","$1 $2 $3",["[1-8]"],"0$1"]],"0"],IS:["354","00|1(?:0(?:01|[12]0)|100)","(?:38\\d|[4-9])\\d{6}",[7,9],[["(\\d{3})(\\d{4})","$1 $2",["[4-9]"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["3"]]],0,0,0,0,0,0,0,"00"],IT:["39","00","0\\d{5,10}|1\\d{8,10}|3(?:[0-8]\\d{7,10}|9\\d{7,8})|(?:43|55|70)\\d{8}|8\\d{5}(?:\\d{2,4})?",[6,7,8,9,10,11,12],[["(\\d{2})(\\d{4,6})","$1 $2",["0[26]"]],["(\\d{3})(\\d{3,6})","$1 $2",["0[13-57-9][0159]|8(?:03|4[17]|9[2-5])","0[13-57-9][0159]|8(?:03|4[17]|9(?:2|3[04]|[45][0-4]))"]],["(\\d{4})(\\d{2,6})","$1 $2",["0(?:[13-579][2-46-8]|8[236-8])"]],["(\\d{4})(\\d{4})","$1 $2",["894"]],["(\\d{2})(\\d{3,4})(\\d{4})","$1 $2 $3",["0[26]|5"]],["(\\d{3})(\\d{3})(\\d{3,4})","$1 $2 $3",["1(?:44|[679])|[378]|43"]],["(\\d{3})(\\d{3,4})(\\d{4})","$1 $2 $3",["0[13-57-9][0159]|14"]],["(\\d{2})(\\d{4})(\\d{5})","$1 $2 $3",["0[26]"]],["(\\d{4})(\\d{3})(\\d{4})","$1 $2 $3",["0"]],["(\\d{3})(\\d{4})(\\d{4,5})","$1 $2 $3",["3"]]],0,0,0,0,0,0,[["0669[0-79]\\d{1,6}|0(?:1(?:[0159]\\d|[27][1-5]|31|4[1-4]|6[1356]|8[2-57])|2\\d\\d|3(?:[0159]\\d|2[1-4]|3[12]|[48][1-6]|6[2-59]|7[1-7])|4(?:[0159]\\d|[23][1-9]|4[245]|6[1-5]|7[1-4]|81)|5(?:[0159]\\d|2[1-5]|3[2-6]|4[1-79]|6[4-6]|7[1-578]|8[3-8])|6(?:[0-57-9]\\d|6[0-8])|7(?:[0159]\\d|2[12]|3[1-7]|4[2-46]|6[13569]|7[13-6]|8[1-59])|8(?:[0159]\\d|2[3-578]|3[1-356]|[6-8][1-5])|9(?:[0159]\\d|[238][1-5]|4[12]|6[1-8]|7[1-6]))\\d{2,7}",[6,7,8,9,10,11]],["3[2-9]\\d{7,8}|(?:31|43)\\d{8}",[9,10]],["80(?:0\\d{3}|3)\\d{3}",[6,9]],["(?:0878\\d{3}|89(?:2\\d|3[04]|4(?:[0-4]|[5-9]\\d\\d)|5[0-4]))\\d\\d|(?:1(?:44|6[346])|89(?:38|5[5-9]|9))\\d{6}",[6,8,9,10]],["1(?:78\\d|99)\\d{6}",[9,10]],["3[2-8]\\d{9,10}",[11,12]],0,0,["55\\d{8}",[10]],["84(?:[08]\\d{3}|[17])\\d{3}",[6,9]]]],JE:["44","00","1534\\d{6}|(?:[3578]\\d|90)\\d{8}",[10],0,"0",0,"([0-24-8]\\d{5})$|0","1534$1",0,0,[["1534[0-24-8]\\d{5}"],["7(?:(?:(?:50|82)9|937)\\d|7(?:00[378]|97\\d))\\d{5}"],["80(?:07(?:35|81)|8901)\\d{4}"],["(?:8(?:4(?:4(?:4(?:05|42|69)|703)|5(?:041|800))|7(?:0002|1206))|90(?:066[59]|1810|71(?:07|55)))\\d{4}"],["701511\\d{4}"],0,["(?:3(?:0(?:07(?:35|81)|8901)|3\\d{4}|4(?:4(?:4(?:05|42|69)|703)|5(?:041|800))|7(?:0002|1206))|55\\d{4})\\d{4}"],["76(?:464|652)\\d{5}|76(?:0[0-28]|2[356]|34|4[01347]|5[49]|6[0-369]|77|8[14]|9[139])\\d{6}"],["56\\d{8}"]]],JM:["1","011","(?:[58]\\d\\d|658|900)\\d{7}",[10],0,"1",0,0,0,0,"658|876"],JO:["962","00","(?:(?:[2689]|7\\d)\\d|32|53)\\d{6}",[8,9],[["(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["[2356]|87"],"(0$1)"],["(\\d{3})(\\d{5,6})","$1 $2",["[89]"],"0$1"],["(\\d{2})(\\d{7})","$1 $2",["70"],"0$1"],["(\\d)(\\d{4})(\\d{4})","$1 $2 $3",["7"],"0$1"]],"0"],JP:["81","010","00[1-9]\\d{6,14}|[257-9]\\d{9}|(?:00|[1-9]\\d\\d)\\d{6}",[8,9,10,11,12,13,14,15,16,17],[["(\\d{3})(\\d{3})(\\d{3})","$1-$2-$3",["(?:12|57|99)0"],"0$1"],["(\\d{4})(\\d)(\\d{4})","$1-$2-$3",["1(?:26|3[79]|4[56]|5[4-68]|6[3-5])|499|5(?:76|97)|746|8(?:3[89]|47|51)|9(?:80|9[16])","1(?:267|3(?:7[247]|9[278])|466|5(?:47|58|64)|6(?:3[245]|48|5[4-68]))|499[2468]|5(?:76|97)9|7468|8(?:3(?:8[7-9]|96)|477|51[2-9])|9(?:802|9(?:1[23]|69))|1(?:45|58)[67]","1(?:267|3(?:7[247]|9[278])|466|5(?:47|58|64)|6(?:3[245]|48|5[4-68]))|499[2468]|5(?:769|979[2-69])|7468|8(?:3(?:8[7-9]|96[2457-9])|477|51[2-9])|9(?:802|9(?:1[23]|69))|1(?:45|58)[67]"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1-$2-$3",["60"],"0$1"],["(\\d)(\\d{4})(\\d{4})","$1-$2-$3",["[36]|4(?:2[09]|7[01])","[36]|4(?:2(?:0|9[02-69])|7(?:0[019]|1))"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1-$2-$3",["1(?:1|5[45]|77|88|9[69])|2(?:2[1-37]|3[0-269]|4[59]|5|6[24]|7[1-358]|8[1369]|9[0-38])|4(?:[28][1-9]|3[0-57]|[45]|6[248]|7[2-579]|9[29])|5(?:2|3[0459]|4[0-369]|5[29]|8[02389]|9[0-389])|7(?:2[02-46-9]|34|[58]|6[0249]|7[57]|9[2-6])|8(?:2[124589]|3[26-9]|49|51|6|7[0-468]|8[68]|9[019])|9(?:[23][1-9]|4[15]|5[138]|6[1-3]|7[156]|8[189]|9[1-489])","1(?:1|5(?:4[018]|5[017])|77|88|9[69])|2(?:2(?:[127]|3[014-9])|3[0-269]|4[59]|5(?:[1-3]|5[0-69]|9[19])|62|7(?:[1-35]|8[0189])|8(?:[16]|3[0134]|9[0-5])|9(?:[028]|17))|4(?:2(?:[13-79]|8[014-6])|3[0-57]|[45]|6[248]|7[2-47]|8[1-9]|9[29])|5(?:2|3(?:[045]|9[0-8])|4[0-369]|5[29]|8[02389]|9[0-3])|7(?:2[02-46-9]|34|[58]|6[0249]|7[57]|9(?:[23]|4[0-59]|5[01569]|6[0167]))|8(?:2(?:[1258]|4[0-39]|9[0-2469])|3(?:[29]|60)|49|51|6(?:[0-24]|36|5[0-3589]|7[23]|9[01459])|7[0-468]|8[68])|9(?:[23][1-9]|4[15]|5[138]|6[1-3]|7[156]|8[189]|9(?:[1289]|3[34]|4[0178]))|(?:264|837)[016-9]|2(?:57|93)[015-9]|(?:25[0468]|422|838)[01]|(?:47[59]|59[89]|8(?:6[68]|9))[019]","1(?:1|5(?:4[018]|5[017])|77|88|9[69])|2(?:2[127]|3[0-269]|4[59]|5(?:[1-3]|5[0-69]|9(?:17|99))|6(?:2|4[016-9])|7(?:[1-35]|8[0189])|8(?:[16]|3[0134]|9[0-5])|9(?:[028]|17))|4(?:2(?:[13-79]|8[014-6])|3[0-57]|[45]|6[248]|7[2-47]|9[29])|5(?:2|3(?:[045]|9(?:[0-58]|6[4-9]|7[0-35689]))|4[0-369]|5[29]|8[02389]|9[0-3])|7(?:2[02-46-9]|34|[58]|6[0249]|7[57]|9(?:[23]|4[0-59]|5[01569]|6[0167]))|8(?:2(?:[1258]|4[0-39]|9[0169])|3(?:[29]|60|7(?:[017-9]|6[6-8]))|49|51|6(?:[0-24]|36[2-57-9]|5(?:[0-389]|5[23])|6(?:[01]|9[178])|7(?:2[2-468]|3[78])|9[0145])|7[0-468]|8[68])|9(?:4[15]|5[138]|7[156]|8[189]|9(?:[1289]|3(?:31|4[357])|4[0178]))|(?:8294|96)[1-3]|2(?:57|93)[015-9]|(?:223|8699)[014-9]|(?:25[0468]|422|838)[01]|(?:48|8292|9[23])[1-9]|(?:47[59]|59[89]|8(?:68|9))[019]"],"0$1"],["(\\d{3})(\\d{2})(\\d{4})","$1-$2-$3",["[14]|[289][2-9]|5[3-9]|7[2-4679]"],"0$1"],["(\\d{3})(\\d{3})(\\d{4})","$1-$2-$3",["800"],"0$1"],["(\\d{2})(\\d{4})(\\d{4})","$1-$2-$3",["[257-9]"],"0$1"]],"0",0,"(000[259]\\d{6})$|(?:(?:003768)0?)|0","$1"],KE:["254","000","(?:[17]\\d\\d|900)\\d{6}|(?:2|80)0\\d{6,7}|[4-6]\\d{6,8}",[7,8,9,10],[["(\\d{2})(\\d{5,7})","$1 $2",["[24-6]"],"0$1"],["(\\d{3})(\\d{6})","$1 $2",["[17]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3,4})","$1 $2 $3",["[89]"],"0$1"]],"0"],KG:["996","00","8\\d{9}|[235-9]\\d{8}",[9,10],[["(\\d{4})(\\d{5})","$1 $2",["3(?:1[346]|[24-79])"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[235-79]|88"],"0$1"],["(\\d{3})(\\d{3})(\\d)(\\d{2,3})","$1 $2 $3 $4",["8"],"0$1"]],"0"],KH:["855","00[14-9]","1\\d{9}|[1-9]\\d{7,8}",[8,9,10],[["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["[1-9]"],"0$1"],["(\\d{4})(\\d{3})(\\d{3})","$1 $2 $3",["1"]]],"0"],KI:["686","00","(?:[37]\\d|6[0-79])\\d{6}|(?:[2-48]\\d|50)\\d{3}",[5,8],0,"0"],KM:["269","00","[3478]\\d{6}",[7],[["(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3",["[3478]"]]]],KN:["1","011","(?:[58]\\d\\d|900)\\d{7}",[10],0,"1",0,"([2-7]\\d{6})$|1","869$1",0,"869"],KP:["850","00|99","85\\d{6}|(?:19\\d|[2-7])\\d{7}",[8,10],[["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["8"],"0$1"],["(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["[2-7]"],"0$1"],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["1"],"0$1"]],"0"],KR:["82","00(?:[125689]|3(?:[46]5|91)|7(?:00|27|3|55|6[126]))","00[1-9]\\d{8,11}|(?:[12]|5\\d{3})\\d{7}|[13-6]\\d{9}|(?:[1-6]\\d|80)\\d{7}|[3-6]\\d{4,5}|(?:00|7)0\\d{8}",[5,6,8,9,10,11,12,13,14],[["(\\d{2})(\\d{3,4})","$1-$2",["(?:3[1-3]|[46][1-4]|5[1-5])1"],"0$1"],["(\\d{4})(\\d{4})","$1-$2",["1"]],["(\\d)(\\d{3,4})(\\d{4})","$1-$2-$3",["2"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1-$2-$3",["[36]0|8"],"0$1"],["(\\d{2})(\\d{3,4})(\\d{4})","$1-$2-$3",["[1346]|5[1-5]"],"0$1"],["(\\d{2})(\\d{4})(\\d{4})","$1-$2-$3",["[57]"],"0$1"],["(\\d{2})(\\d{5})(\\d{4})","$1-$2-$3",["5"],"0$1"]],"0",0,"0(8(?:[1-46-8]|5\\d\\d))?"],KW:["965","00","18\\d{5}|(?:[2569]\\d|41)\\d{6}",[7,8],[["(\\d{4})(\\d{3,4})","$1 $2",["[169]|2(?:[235]|4[1-35-9])|52"]],["(\\d{3})(\\d{5})","$1 $2",["[245]"]]]],KY:["1","011","(?:345|[58]\\d\\d|900)\\d{7}",[10],0,"1",0,"([2-9]\\d{6})$|1","345$1",0,"345"],KZ:["7","810","(?:33622|8\\d{8})\\d{5}|[78]\\d{9}",[10,14],0,"8",0,0,0,0,"33|7",0,"8~10"],LA:["856","00","[23]\\d{9}|3\\d{8}|(?:[235-8]\\d|41)\\d{6}",[8,9,10],[["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["2[13]|3[14]|[4-8]"],"0$1"],["(\\d{2})(\\d{2})(\\d{2})(\\d{3})","$1 $2 $3 $4",["30[0135-9]"],"0$1"],["(\\d{2})(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3 $4",["[23]"],"0$1"]],"0"],LB:["961","00","[27-9]\\d{7}|[13-9]\\d{6}",[7,8],[["(\\d)(\\d{3})(\\d{3})","$1 $2 $3",["[13-69]|7(?:[2-57]|62|8[0-7]|9[04-9])|8[02-9]"],"0$1"],["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["[27-9]"]]],"0"],LC:["1","011","(?:[58]\\d\\d|758|900)\\d{7}",[10],0,"1",0,"([2-8]\\d{6})$|1","758$1",0,"758"],LI:["423","00","[68]\\d{8}|(?:[2378]\\d|90)\\d{5}",[7,9],[["(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3",["[2379]|8(?:0[09]|7)","[2379]|8(?:0(?:02|9)|7)"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["8"]],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["69"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["6"]]],"0",0,"(1001)|0"],LK:["94","00","[1-9]\\d{8}",[9],[["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["7"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[1-689]"],"0$1"]],"0"],LR:["231","00","(?:[245]\\d|33|77|88)\\d{7}|(?:2\\d|[4-6])\\d{6}",[7,8,9],[["(\\d)(\\d{3})(\\d{3})","$1 $2 $3",["4[67]|[56]"],"0$1"],["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["2"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[2-578]"],"0$1"]],"0"],LS:["266","00","(?:[256]\\d\\d|800)\\d{5}",[8],[["(\\d{4})(\\d{4})","$1 $2",["[2568]"]]]],LT:["370","00","(?:[3469]\\d|52|[78]0)\\d{6}",[8],[["(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["52[0-7]"],"(0-$1)",1],["(\\d{3})(\\d{2})(\\d{3})","$1 $2 $3",["[7-9]"],"0 $1",1],["(\\d{2})(\\d{6})","$1 $2",["37|4(?:[15]|6[1-8])"],"(0-$1)",1],["(\\d{3})(\\d{5})","$1 $2",["[3-6]"],"(0-$1)",1]],"0",0,"[08]"],LU:["352","00","35[013-9]\\d{4,8}|6\\d{8}|35\\d{2,4}|(?:[2457-9]\\d|3[0-46-9])\\d{2,9}",[4,5,6,7,8,9,10,11],[["(\\d{2})(\\d{3})","$1 $2",["2(?:0[2-689]|[2-9])|[3-57]|8(?:0[2-9]|[13-9])|9(?:0[89]|[2-579])"]],["(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3",["2(?:0[2-689]|[2-9])|[3-57]|8(?:0[2-9]|[13-9])|9(?:0[89]|[2-579])"]],["(\\d{2})(\\d{2})(\\d{3})","$1 $2 $3",["20[2-689]"]],["(\\d{2})(\\d{2})(\\d{2})(\\d{1,2})","$1 $2 $3 $4",["2(?:[0367]|4[3-8])"]],["(\\d{3})(\\d{2})(\\d{3})","$1 $2 $3",["80[01]|90[015]"]],["(\\d{2})(\\d{2})(\\d{2})(\\d{3})","$1 $2 $3 $4",["20"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["6"]],["(\\d{2})(\\d{2})(\\d{2})(\\d{2})(\\d{1,2})","$1 $2 $3 $4 $5",["2(?:[0367]|4[3-8])"]],["(\\d{2})(\\d{2})(\\d{2})(\\d{1,5})","$1 $2 $3 $4",["[3-57]|8[13-9]|9(?:0[89]|[2-579])|(?:2|80)[2-9]"]]],0,0,"(15(?:0[06]|1[12]|[35]5|4[04]|6[26]|77|88|99)\\d)"],LV:["371","00","(?:[268]\\d|90)\\d{6}",[8],[["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["[269]|8[01]"]]]],LY:["218","00","[2-9]\\d{8}",[9],[["(\\d{2})(\\d{7})","$1-$2",["[2-9]"],"0$1"]],"0"],MA:["212","00","[5-8]\\d{8}",[9],[["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["5[45]"],"0$1"],["(\\d{4})(\\d{5})","$1-$2",["5(?:2[2-46-9]|3[3-9]|9)|8(?:0[89]|92)"],"0$1"],["(\\d{2})(\\d{7})","$1-$2",["8"],"0$1"],["(\\d{3})(\\d{6})","$1-$2",["[5-7]"],"0$1"]],"0",0,0,0,0,0,[["5(?:2(?:[0-25-79]\\d|3[1-578]|4[02-46-8]|8[0235-7])|3(?:[0-47]\\d|5[02-9]|6[02-8]|8[014-9]|9[3-9])|(?:4[067]|5[03])\\d)\\d{5}"],["(?:6(?:[0-79]\\d|8[0-247-9])|7(?:[0167]\\d|2[0-467]|5[0-3]|8[0-5]))\\d{6}"],["80[0-7]\\d{6}"],["89\\d{7}"],0,0,0,0,["(?:592(?:4[0-2]|93)|80[89]\\d\\d)\\d{4}"]]],MC:["377","00","(?:[3489]|6\\d)\\d{7}",[8,9],[["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["4"],"0$1"],["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[389]"]],["(\\d)(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4 $5",["6"],"0$1"]],"0"],MD:["373","00","(?:[235-7]\\d|[89]0)\\d{6}",[8],[["(\\d{3})(\\d{5})","$1 $2",["[89]"],"0$1"],["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["22|3"],"0$1"],["(\\d{3})(\\d{2})(\\d{3})","$1 $2 $3",["[25-7]"],"0$1"]],"0"],ME:["382","00","(?:20|[3-79]\\d)\\d{6}|80\\d{6,7}",[8,9],[["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["[2-9]"],"0$1"]],"0"],MF:["590","00","(?:590\\d|7090)\\d{5}|(?:69|80|9\\d)\\d{7}",[9],0,"0",0,0,0,0,0,[["590(?:0[079]|[14]3|[27][79]|3[03-7]|5[0-268]|87)\\d{4}"],["(?:69(?:0\\d\\d|1(?:2[2-9]|3[0-5])|4(?:0[89]|1[2-6]|9\\d)|6(?:1[016-9]|5[0-4]|[67]\\d))|7090[0-4])\\d{4}"],["80[0-5]\\d{6}"],0,0,0,0,0,["9(?:(?:39[5-7]|76[018])\\d|475[0-6])\\d{4}"]]],MG:["261","00","[23]\\d{8}",[9],[["(\\d{2})(\\d{2})(\\d{3})(\\d{2})","$1 $2 $3 $4",["[23]"],"0$1"]],"0",0,"([24-9]\\d{6})$|0","20$1"],MH:["692","011","329\\d{4}|(?:[256]\\d|45)\\d{5}",[7],[["(\\d{3})(\\d{4})","$1-$2",["[2-6]"]]],"1"],MK:["389","00","[2-578]\\d{7}",[8],[["(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["2|34[47]|4(?:[37]7|5[47]|64)"],"0$1"],["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["[347]"],"0$1"],["(\\d{3})(\\d)(\\d{2})(\\d{2})","$1 $2 $3 $4",["[58]"],"0$1"]],"0"],ML:["223","00","[24-9]\\d{7}",[8],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[24-9]"]]]],MM:["95","00","1\\d{5,7}|95\\d{6}|(?:[4-7]|9[0-46-9])\\d{6,8}|(?:2|8\\d)\\d{5,8}",[6,7,8,9,10],[["(\\d)(\\d{2})(\\d{3})","$1 $2 $3",["16|2"],"0$1"],["(\\d{2})(\\d{2})(\\d{3})","$1 $2 $3",["4(?:[2-46]|5[3-5])|5|6(?:[1-689]|7[235-7])|7(?:[0-4]|5[2-7])|8[1-5]|(?:60|86)[23]"],"0$1"],["(\\d)(\\d{3})(\\d{3,4})","$1 $2 $3",["[12]|452|678|86","[12]|452|6788|86"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["[4-7]|8[1-35]"],"0$1"],["(\\d)(\\d{3})(\\d{4,6})","$1 $2 $3",["9(?:2[0-4]|[35-9]|4[137-9])"],"0$1"],["(\\d)(\\d{4})(\\d{4})","$1 $2 $3",["2"],"0$1"],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["8"],"0$1"],["(\\d)(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3 $4",["92"],"0$1"],["(\\d)(\\d{5})(\\d{4})","$1 $2 $3",["9"],"0$1"]],"0"],MN:["976","001","[12]\\d{7,9}|[5-9]\\d{7}",[8,9,10],[["(\\d{2})(\\d{2})(\\d{4})","$1 $2 $3",["[12]1"],"0$1"],["(\\d{4})(\\d{4})","$1 $2",["[5-9]"]],["(\\d{3})(\\d{5,6})","$1 $2",["[12]2[1-3]"],"0$1"],["(\\d{4})(\\d{5,6})","$1 $2",["[12](?:27|3[2-8]|4[2-68]|5[1-4689])","[12](?:27|3[2-8]|4[2-68]|5[1-4689])[0-3]"],"0$1"],["(\\d{5})(\\d{4,5})","$1 $2",["[12]"],"0$1"]],"0"],MO:["853","00","0800\\d{3}|(?:28|[68]\\d)\\d{6}",[7,8],[["(\\d{4})(\\d{3})","$1 $2",["0"]],["(\\d{4})(\\d{4})","$1 $2",["[268]"]]]],MP:["1","011","[58]\\d{9}|(?:67|90)0\\d{7}",[10],0,"1",0,"([2-9]\\d{6})$|1","670$1",0,"670"],MQ:["596","00","(?:596\\d|7091)\\d{5}|(?:69|[89]\\d)\\d{7}",[9],[["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[5-79]|8(?:0[6-9]|[36])"],"0$1"],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["8"],"0$1"]],"0"],MR:["222","00","(?:[2-4]\\d\\d|800)\\d{5}",[8],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[2-48]"]]]],MS:["1","011","(?:[58]\\d\\d|664|900)\\d{7}",[10],0,"1",0,"([34]\\d{6})$|1","664$1",0,"664"],MT:["356","00","3550\\d{4}|(?:[2579]\\d\\d|800)\\d{5}",[8],[["(\\d{4})(\\d{4})","$1 $2",["[2357-9]"]]]],MU:["230","0(?:0|[24-7]0|3[03])","(?:[57]|8\\d\\d)\\d{7}|[2-468]\\d{6}",[7,8,10],[["(\\d{3})(\\d{4})","$1 $2",["[2-46]|8[013]"]],["(\\d{4})(\\d{4})","$1 $2",["[57]"]],["(\\d{5})(\\d{5})","$1 $2",["8"]]],0,0,0,0,0,0,0,"020"],MV:["960","0(?:0|19)","(?:800|9[0-57-9]\\d)\\d{7}|[34679]\\d{6}",[7,10],[["(\\d{3})(\\d{4})","$1-$2",["[34679]"]],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["[89]"]]],0,0,0,0,0,0,0,"00"],MW:["265","00","(?:[1289]\\d|31|77)\\d{7}|1\\d{6}",[7,9],[["(\\d)(\\d{3})(\\d{3})","$1 $2 $3",["1[2-9]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["2"],"0$1"],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[137-9]"],"0$1"]],"0"],MX:["52","0[09]","[2-9]\\d{9}",[10],[["(\\d{2})(\\d{4})(\\d{4})","$1 $2 $3",["33|5[56]|81"]],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["[2-9]"]]],0,0,0,0,0,0,0,"00"],MY:["60","00","1\\d{8,9}|(?:3\\d|[4-9])\\d{7}",[8,9,10],[["(\\d)(\\d{3})(\\d{4})","$1-$2 $3",["[4-79]"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1-$2 $3",["1(?:[02469]|[378][1-9]|53)|8","1(?:[02469]|[37][1-9]|53|8(?:[1-46-9]|5[7-9]))|8"],"0$1"],["(\\d)(\\d{4})(\\d{4})","$1-$2 $3",["3"],"0$1"],["(\\d)(\\d{3})(\\d{2})(\\d{4})","$1-$2-$3-$4",["1(?:[367]|80)"]],["(\\d{3})(\\d{3})(\\d{4})","$1-$2 $3",["15"],"0$1"],["(\\d{2})(\\d{4})(\\d{4})","$1-$2 $3",["1"],"0$1"]],"0"],MZ:["258","00","(?:2|8\\d)\\d{7}",[8,9],[["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["2|8[2-79]"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["8"]]]],NA:["264","00","[68]\\d{7,8}",[8,9],[["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["88"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["6"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["87"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["8"],"0$1"]],"0"],NC:["687","00","(?:050|[2-57-9]\\d\\d)\\d{3}",[6],[["(\\d{2})(\\d{2})(\\d{2})","$1.$2.$3",["[02-57-9]"]]]],NE:["227","00","[027-9]\\d{7}",[8],[["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["08"]],["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[089]|2[013]|7[0467]"]]]],NF:["672","00","[13]\\d{5}",[6],[["(\\d{2})(\\d{4})","$1 $2",["1[0-3]"]],["(\\d)(\\d{5})","$1 $2",["[13]"]]],0,0,"([0-258]\\d{4})$","3$1"],NG:["234","009","38\\d{6}|[78]\\d{9,13}|(?:20|9\\d)\\d{8}",[8,10,11,12,13,14],[["(\\d{2})(\\d{3})(\\d{2,3})","$1 $2 $3",["3"],"0$1"],["(\\d{3})(\\d{3})(\\d{3,4})","$1 $2 $3",["[7-9]"],"0$1"],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["20[129]"],"0$1"],["(\\d{4})(\\d{2})(\\d{4})","$1 $2 $3",["2"],"0$1"],["(\\d{3})(\\d{4})(\\d{4,5})","$1 $2 $3",["[78]"],"0$1"],["(\\d{3})(\\d{5})(\\d{5,6})","$1 $2 $3",["[78]"],"0$1"]],"0"],NI:["505","00","(?:1800|[25-8]\\d{3})\\d{4}",[8],[["(\\d{4})(\\d{4})","$1 $2",["[125-8]"]]]],NL:["31","00","(?:[124-7]\\d\\d|3(?:[02-9]\\d|1[0-8]))\\d{6}|8\\d{6,9}|9\\d{6,10}|1\\d{4,5}",[5,6,7,8,9,10,11],[["(\\d{3})(\\d{4,7})","$1 $2",["[89]0"],"0$1"],["(\\d{2})(\\d{7})","$1 $2",["66"],"0$1"],["(\\d)(\\d{8})","$1 $2",["6"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["1[16-8]|2[259]|3[124]|4[17-9]|5[124679]"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[1-578]|91"],"0$1"],["(\\d{3})(\\d{3})(\\d{5})","$1 $2 $3",["9"],"0$1"]],"0"],NO:["47","00","(?:0|[2-9]\\d{3})\\d{4}",[5,8],[["(\\d{3})(\\d{2})(\\d{3})","$1 $2 $3",["8"]],["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[2-79]"]]],0,0,0,0,0,"[02-689]|7[0-8]"],NP:["977","00","(?:1\\d|9)\\d{9}|[1-9]\\d{7}",[8,10,11],[["(\\d)(\\d{7})","$1-$2",["1[2-6]"],"0$1"],["(\\d{2})(\\d{6})","$1-$2",["1[01]|[2-8]|9(?:[1-59]|[67][2-6])"],"0$1"],["(\\d{3})(\\d{7})","$1-$2",["9"]]],"0"],NR:["674","00","(?:444|(?:55|8\\d)\\d|666)\\d{4}",[7],[["(\\d{3})(\\d{4})","$1 $2",["[4-68]"]]]],NU:["683","00","(?:[4-7]|888\\d)\\d{3}",[4,7],[["(\\d{3})(\\d{4})","$1 $2",["8"]]]],NZ:["64","0(?:0|161)","[1289]\\d{9}|50\\d{5}(?:\\d{2,3})?|[27-9]\\d{7,8}|(?:[34]\\d|6[0-35-9])\\d{6}|8\\d{4,6}",[5,6,7,8,9,10],[["(\\d{2})(\\d{3,8})","$1 $2",["8[1-79]"],"0$1"],["(\\d{3})(\\d{2})(\\d{2,3})","$1 $2 $3",["50[036-8]|8|90","50(?:[0367]|88)|8|90"],"0$1"],["(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["24|[346]|7[2-57-9]|9[2-9]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3,4})","$1 $2 $3",["2(?:10|74)|[589]"],"0$1"],["(\\d{2})(\\d{3,4})(\\d{4})","$1 $2 $3",["1|2[028]"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,5})","$1 $2 $3",["2(?:[169]|7[0-35-9])|7"],"0$1"]],"0",0,0,0,0,0,0,"00"],OM:["968","00","(?:1505|[279]\\d{3}|500)\\d{4}|800\\d{5,6}",[7,8,9],[["(\\d{3})(\\d{4,6})","$1 $2",["[58]"]],["(\\d{2})(\\d{6})","$1 $2",["2"]],["(\\d{4})(\\d{4})","$1 $2",["[179]"]]]],PA:["507","00","(?:00800|8\\d{3})\\d{6}|[68]\\d{7}|[1-57-9]\\d{6}",[7,8,10,11],[["(\\d{3})(\\d{4})","$1-$2",["[1-57-9]"]],["(\\d{4})(\\d{4})","$1-$2",["[68]"]],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["8"]]]],PE:["51","00|19(?:1[124]|77|90)00","(?:[14-8]|9\\d)\\d{7}",[8,9],[["(\\d{3})(\\d{5})","$1 $2",["80"],"(0$1)"],["(\\d)(\\d{7})","$1 $2",["1"],"(0$1)"],["(\\d{2})(\\d{6})","$1 $2",["[4-8]"],"(0$1)"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["9"]]],"0",0,0,0,0,0,0,"00"," Anexo "],PF:["689","00","4\\d{5}(?:\\d{2})?|8\\d{7,8}",[6,8,9],[["(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3",["44"]],["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["4|8[7-9]"]],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["8"]]]],PG:["675","00|140[1-3]","(?:180|[78]\\d{3})\\d{4}|(?:[2-589]\\d|64)\\d{5}",[7,8],[["(\\d{3})(\\d{4})","$1 $2",["18|[2-69]|85"]],["(\\d{4})(\\d{4})","$1 $2",["[78]"]]],0,0,0,0,0,0,0,"00"],PH:["63","00","(?:[2-7]|9\\d)\\d{8}|2\\d{5}|(?:1800|8)\\d{7,9}",[6,8,9,10,11,12,13],[["(\\d)(\\d{5})","$1 $2",["2"],"(0$1)"],["(\\d{4})(\\d{4,6})","$1 $2",["3(?:23|39|46)|4(?:2[3-6]|[35]9|4[26]|76)|544|88[245]|(?:52|64|86)2","3(?:230|397|461)|4(?:2(?:35|[46]4|51)|396|4(?:22|63)|59[347]|76[15])|5(?:221|446)|642[23]|8(?:622|8(?:[24]2|5[13]))"],"(0$1)"],["(\\d{5})(\\d{4})","$1 $2",["346|4(?:27|9[35])|883","3469|4(?:279|9(?:30|56))|8834"],"(0$1)"],["(\\d)(\\d{4})(\\d{4})","$1 $2 $3",["2"],"(0$1)"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[3-7]|8[2-8]"],"(0$1)"],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["[89]"],"0$1"],["(\\d{4})(\\d{3})(\\d{4})","$1 $2 $3",["1"]],["(\\d{4})(\\d{1,2})(\\d{3})(\\d{4})","$1 $2 $3 $4",["1"]]],"0"],PK:["92","00","122\\d{6}|[24-8]\\d{10,11}|9(?:[013-9]\\d{8,10}|2(?:[01]\\d\\d|2(?:[06-8]\\d|1[01]))\\d{7})|(?:[2-8]\\d{3}|92(?:[0-7]\\d|8[1-9]))\\d{6}|[24-9]\\d{8}|[89]\\d{7}",[8,9,10,11,12],[["(\\d{3})(\\d{3})(\\d{2,7})","$1 $2 $3",["[89]0"],"0$1"],["(\\d{4})(\\d{5})","$1 $2",["1"]],["(\\d{3})(\\d{6,7})","$1 $2",["2(?:3[2358]|4[2-4]|9[2-8])|45[3479]|54[2-467]|60[468]|72[236]|8(?:2[2-689]|3[23578]|4[3478]|5[2356])|9(?:2[2-8]|3[27-9]|4[2-6]|6[3569]|9[25-8])","9(?:2[3-8]|98)|(?:2(?:3[2358]|4[2-4]|9[2-8])|45[3479]|54[2-467]|60[468]|72[236]|8(?:2[2-689]|3[23578]|4[3478]|5[2356])|9(?:22|3[27-9]|4[2-6]|6[3569]|9[25-7]))[2-9]"],"(0$1)"],["(\\d{2})(\\d{7,8})","$1 $2",["(?:2[125]|4[0-246-9]|5[1-35-7]|6[1-8]|7[14]|8[16]|91)[2-9]"],"(0$1)"],["(\\d{5})(\\d{5})","$1 $2",["58"],"(0$1)"],["(\\d{3})(\\d{7})","$1 $2",["3"],"0$1"],["(\\d{2})(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3 $4",["2[125]|4[0-246-9]|5[1-35-7]|6[1-8]|7[14]|8[16]|91"],"(0$1)"],["(\\d{3})(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3 $4",["[24-9]"],"(0$1)"]],"0"],PL:["48","00","(?:6|8\\d\\d)\\d{7}|[1-9]\\d{6}(?:\\d{2})?|[26]\\d{5}",[6,7,8,9,10],[["(\\d{5})","$1",["19"]],["(\\d{3})(\\d{3})","$1 $2",["11|20|64"]],["(\\d{2})(\\d{2})(\\d{3})","$1 $2 $3",["(?:1[2-8]|2[2-69]|3[2-4]|4[1-468]|5[24-689]|6[1-3578]|7[14-7]|8[1-79]|9[145])1","(?:1[2-8]|2[2-69]|3[2-4]|4[1-468]|5[24-689]|6[1-3578]|7[14-7]|8[1-79]|9[145])19"]],["(\\d{3})(\\d{2})(\\d{2,3})","$1 $2 $3",["64"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["21|39|45|5[0137]|6[0469]|7[02389]|8(?:0[14]|8)"]],["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["1[2-8]|[2-7]|8[1-79]|9[145]"]],["(\\d{3})(\\d{3})(\\d{3,4})","$1 $2 $3",["8"]]]],PM:["508","00","[45]\\d{5}|(?:708|8\\d\\d)\\d{6}",[6,9],[["(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3",["[45]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["7"]],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["8"],"0$1"]],"0"],PR:["1","011","(?:[589]\\d\\d|787)\\d{7}",[10],0,"1",0,0,0,0,"787|939"],PS:["970","00","[2489]2\\d{6}|(?:1\\d|5)\\d{8}",[8,9,10],[["(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["[2489]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["5"],"0$1"],["(\\d{4})(\\d{3})(\\d{3})","$1 $2 $3",["1"]]],"0"],PT:["351","00","1693\\d{5}|(?:[26-9]\\d|30)\\d{7}",[9],[["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["2[12]"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["16|[236-9]"]]]],PW:["680","01[12]","(?:[24-8]\\d\\d|345|900)\\d{4}",[7],[["(\\d{3})(\\d{4})","$1 $2",["[2-9]"]]]],PY:["595","00","59\\d{4,6}|9\\d{5,10}|(?:[2-46-8]\\d|5[0-8])\\d{4,7}",[6,7,8,9,10,11],[["(\\d{3})(\\d{3,6})","$1 $2",["[2-9]0"],"0$1"],["(\\d{2})(\\d{5})","$1 $2",["[26]1|3[289]|4[1246-8]|7[1-3]|8[1-36]"],"(0$1)"],["(\\d{3})(\\d{4,5})","$1 $2",["2[279]|3[13-5]|4[359]|5|6(?:[34]|7[1-46-8])|7[46-8]|85"],"(0$1)"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["2[14-68]|3[26-9]|4[1246-8]|6(?:1|75)|7[1-35]|8[1-36]"],"(0$1)"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["87"]],["(\\d{3})(\\d{6})","$1 $2",["9(?:[5-79]|8[1-7])"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[2-8]"],"0$1"],["(\\d{4})(\\d{3})(\\d{4})","$1 $2 $3",["9"]]],"0"],QA:["974","00","800\\d{4}|(?:2|800)\\d{6}|(?:0080|[3-7])\\d{7}",[7,8,9,11],[["(\\d{3})(\\d{4})","$1 $2",["2[16]|8"]],["(\\d{4})(\\d{4})","$1 $2",["[3-7]"]]]],RE:["262","00","709\\d{6}|(?:26|[689]\\d)\\d{7}",[9],[["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[26-9]"],"0$1"]],"0",0,0,0,0,0,[["26(?:2\\d\\d|3(?:0\\d|1[0-6]))\\d{4}"],["(?:69(?:2\\d\\d|3(?:[06][0-6]|1[013]|2[0-2]|3[0-39]|4\\d|5[0-5]|7[0-37]|8[0-8]|9[0-479]))|7092[0-3])\\d{4}"],["80\\d{7}"],["89[1-37-9]\\d{6}"],0,0,0,0,["9(?:399[0-3]|479[0-6]|76(?:2[278]|3[0-37]))\\d{4}"],["8(?:1[019]|2[0156]|84|90)\\d{6}"]]],RO:["40","00","(?:[236-8]\\d|90)\\d{7}|[23]\\d{5}",[6,9],[["(\\d{3})(\\d{3})","$1 $2",["2[3-6]","2[3-6]\\d9"],"0$1"],["(\\d{2})(\\d{4})","$1 $2",["219|31"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[23]1"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[236-9]"],"0$1"]],"0",0,0,0,0,0,0,0," int "],RS:["381","00","38[02-9]\\d{6,9}|6\\d{7,9}|90\\d{4,8}|38\\d{5,6}|(?:7\\d\\d|800)\\d{3,9}|(?:[12]\\d|3[0-79])\\d{5,10}",[6,7,8,9,10,11,12],[["(\\d{3})(\\d{3,9})","$1 $2",["(?:2[389]|39)0|[7-9]"],"0$1"],["(\\d{2})(\\d{5,10})","$1 $2",["[1-36]"],"0$1"]],"0"],RU:["7","810","8\\d{13}|[347-9]\\d{9}",[10,14],[["(\\d{4})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["7(?:1[0-8]|2[1-9])","7(?:1(?:[0-356]2|4[29]|7|8[27])|2(?:1[23]|[2-9]2))","7(?:1(?:[0-356]2|4[29]|7|8[27])|2(?:13[03-69]|62[013-9]))|72[1-57-9]2"],"8 ($1)",1],["(\\d{5})(\\d)(\\d{2})(\\d{2})","$1 $2 $3 $4",["7(?:1[0-68]|2[1-9])","7(?:1(?:[06][3-6]|[18]|2[35]|[3-5][3-5])|2(?:[13][3-5]|[24-689]|7[457]))","7(?:1(?:0(?:[356]|4[023])|[18]|2(?:3[013-9]|5)|3[45]|43[013-79]|5(?:3[1-8]|4[1-7]|5)|6(?:3[0-35-9]|[4-6]))|2(?:1(?:3[178]|[45])|[24-689]|3[35]|7[457]))|7(?:14|23)4[0-8]|71(?:33|45)[1-79]"],"8 ($1)",1],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["7"],"8 ($1)",1],["(\\d{3})(\\d{3})(\\d{2})(\\d{2})","$1 $2-$3-$4",["[349]|8(?:[02-7]|1[1-8])"],"8 ($1)",1],["(\\d{4})(\\d{4})(\\d{3})(\\d{3})","$1 $2 $3 $4",["8"],"8 ($1)"]],"8",0,0,0,0,"3[04-689]|[489]",0,"8~10"],RW:["250","00","(?:06|[27]\\d\\d|[89]00)\\d{6}",[8,9],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["0"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["2"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[7-9]"],"0$1"]],"0"],SA:["966","00","92\\d{7}|(?:[15]|8\\d)\\d{8}",[9,10],[["(\\d{4})(\\d{5})","$1 $2",["9"]],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["1"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["5"],"0$1"],["(\\d{3})(\\d{3})(\\d{3,4})","$1 $2 $3",["81"],"0$1"],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["8"]]],"0"],SB:["677","0[01]","[6-9]\\d{6}|[1-6]\\d{4}",[5,7],[["(\\d{2})(\\d{5})","$1 $2",["6[89]|7|8[4-9]|9(?:[1-8]|9[0-8])"]]]],SC:["248","010|0[0-2]","(?:[2489]\\d|64)\\d{5}",[7],[["(\\d)(\\d{3})(\\d{3})","$1 $2 $3",["[246]|9[57]"]]],0,0,0,0,0,0,0,"00"],SD:["249","00","[19]\\d{8}",[9],[["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[19]"],"0$1"]],"0"],SE:["46","00","(?:[26]\\d\\d|9)\\d{9}|[1-9]\\d{8}|[1-689]\\d{7}|[1-4689]\\d{6}|2\\d{5}",[6,7,8,9,10,12],[["(\\d{2})(\\d{2,3})(\\d{2})","$1-$2 $3",["20"],"0$1",0,"$1 $2 $3"],["(\\d{3})(\\d{4})","$1-$2",["9(?:00|39|44|9)"],"0$1",0,"$1 $2"],["(\\d{2})(\\d{3})(\\d{2})","$1-$2 $3",["[12][136]|3[356]|4[0246]|6[03]|90[1-9]"],"0$1",0,"$1 $2 $3"],["(\\d)(\\d{2,3})(\\d{2})(\\d{2})","$1-$2 $3 $4",["8"],"0$1",0,"$1 $2 $3 $4"],["(\\d{3})(\\d{2,3})(\\d{2})","$1-$2 $3",["1[2457]|2(?:[247-9]|5[0138])|3[0247-9]|4[1357-9]|5[0-35-9]|6(?:[125689]|4[02-57]|7[0-2])|9(?:[125-8]|3[02-5]|4[0-3])"],"0$1",0,"$1 $2 $3"],["(\\d{3})(\\d{2,3})(\\d{3})","$1-$2 $3",["9(?:00|39|44)"],"0$1",0,"$1 $2 $3"],["(\\d{2})(\\d{2,3})(\\d{2})(\\d{2})","$1-$2 $3 $4",["1[13689]|2[0136]|3[1356]|4[0246]|54|6[03]|90[1-9]"],"0$1",0,"$1 $2 $3 $4"],["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1-$2 $3 $4",["10|7"],"0$1",0,"$1 $2 $3 $4"],["(\\d)(\\d{3})(\\d{3})(\\d{2})","$1-$2 $3 $4",["8"],"0$1",0,"$1 $2 $3 $4"],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1-$2 $3 $4",["[13-5]|2(?:[247-9]|5[0138])|6(?:[124-689]|7[0-2])|9(?:[125-8]|3[02-5]|4[0-3])"],"0$1",0,"$1 $2 $3 $4"],["(\\d{3})(\\d{2})(\\d{2})(\\d{3})","$1-$2 $3 $4",["9"],"0$1",0,"$1 $2 $3 $4"],["(\\d{3})(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1-$2 $3 $4 $5",["[26]"],"0$1",0,"$1 $2 $3 $4 $5"]],"0"],SG:["65","0[0-3]\\d","(?:(?:1\\d|8)\\d\\d|7000)\\d{7}|[3689]\\d{7}",[8,10,11],[["(\\d{4})(\\d{4})","$1 $2",["[369]|8(?:0[1-9]|[1-9])"]],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["8"]],["(\\d{4})(\\d{4})(\\d{3})","$1 $2 $3",["7"]],["(\\d{4})(\\d{3})(\\d{4})","$1 $2 $3",["1"]]]],SH:["290","00","(?:[256]\\d|8)\\d{3}",[4,5],0,0,0,0,0,0,"[256]"],SI:["386","00|10(?:22|66|88|99)","[1-7]\\d{7}|8\\d{4,7}|90\\d{4,6}",[5,6,7,8],[["(\\d{2})(\\d{3,6})","$1 $2",["8[09]|9"],"0$1"],["(\\d{3})(\\d{5})","$1 $2",["59|8"],"0$1"],["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["[37][01]|4[0139]|51|6"],"0$1"],["(\\d)(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[1-57]"],"(0$1)"]],"0",0,0,0,0,0,0,"00"],SJ:["47","00","0\\d{4}|(?:[489]\\d|79)\\d{6}",[5,8],0,0,0,0,0,0,"79"],SK:["421","00","[2-689]\\d{8}|[2-59]\\d{6}|[2-5]\\d{5}",[6,7,9],[["(\\d)(\\d{2})(\\d{3,4})","$1 $2 $3",["21"],"0$1"],["(\\d{2})(\\d{2})(\\d{2,3})","$1 $2 $3",["[3-5][1-8]1","[3-5][1-8]1[67]"],"0$1"],["(\\d)(\\d{3})(\\d{3})(\\d{2})","$1/$2 $3 $4",["2"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[689]"],"0$1"],["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1/$2 $3 $4",["[3-5]"],"0$1"]],"0"],SL:["232","00","(?:[237-9]\\d|66)\\d{6}",[8],[["(\\d{2})(\\d{6})","$1 $2",["[236-9]"],"(0$1)"]],"0"],SM:["378","00","(?:0549|[5-7]\\d)\\d{6}",[8,10],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[5-7]"]],["(\\d{4})(\\d{6})","$1 $2",["0"]]],0,0,"([89]\\d{5})$","0549$1"],SN:["221","00","(?:[378]\\d|93)\\d{7}",[9],[["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["8"]],["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[379]"]]]],SO:["252","00","[346-9]\\d{8}|[12679]\\d{7}|[1-5]\\d{6}|[1348]\\d{5}",[6,7,8,9],[["(\\d{2})(\\d{4})","$1 $2",["8[125]"]],["(\\d{6})","$1",["[134]"]],["(\\d)(\\d{6})","$1 $2",["[15]|2[0-79]|3[0-46-8]|4[0-7]"]],["(\\d)(\\d{7})","$1 $2",["(?:2|90)4|[67]"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[348]|64|79|90"]],["(\\d{2})(\\d{5,7})","$1 $2",["1|28|6[0-35-9]|7[67]|9[2-9]"]]],"0"],SR:["597","00","(?:[2-5]|68|[78]\\d)\\d{5}",[6,7],[["(\\d{2})(\\d{2})(\\d{2})","$1-$2-$3",["56"]],["(\\d{3})(\\d{3})","$1-$2",["[2-5]"]],["(\\d{3})(\\d{4})","$1-$2",["[6-8]"]]]],SS:["211","00","[19]\\d{8}",[9],[["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[19]"],"0$1"]],"0"],ST:["239","00","(?:22|9\\d)\\d{5}",[7],[["(\\d{3})(\\d{4})","$1 $2",["[29]"]]]],SV:["503","00","[267]\\d{7}|(?:80\\d|900)\\d{4}(?:\\d{4})?",[7,8,11],[["(\\d{3})(\\d{4})","$1 $2",["[89]"]],["(\\d{4})(\\d{4})","$1 $2",["[267]"]],["(\\d{3})(\\d{4})(\\d{4})","$1 $2 $3",["[89]"]]]],SX:["1","011","7215\\d{6}|(?:[58]\\d\\d|900)\\d{7}",[10],0,"1",0,"(5\\d{6})$|1","721$1",0,"721"],SY:["963","00","[1-359]\\d{8}|[1-5]\\d{7}",[8,9],[["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["[1-4]|5[1-3]"],"0$1",1],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[59]"],"0$1",1]],"0"],SZ:["268","00","0800\\d{4}|(?:[237]\\d|900)\\d{6}",[8,9],[["(\\d{4})(\\d{4})","$1 $2",["[0237]"]],["(\\d{5})(\\d{4})","$1 $2",["9"]]]],TA:["290","00","8\\d{3}",[4],0,0,0,0,0,0,"8"],TC:["1","011","(?:[58]\\d\\d|649|900)\\d{7}",[10],0,"1",0,"([2-479]\\d{6})$|1","649$1",0,"649"],TD:["235","00|16","(?:22|[689]\\d|77)\\d{6}",[8],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[26-9]"]]],0,0,0,0,0,0,0,"00"],TG:["228","00","[279]\\d{7}",[8],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[279]"]]]],TH:["66","00[1-9]","(?:001800|[2-57]|[689]\\d)\\d{7}|1\\d{7,9}",[8,9,10,13],[["(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["2"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["[13-9]"],"0$1"],["(\\d{4})(\\d{3})(\\d{3})","$1 $2 $3",["1"]]],"0"],TJ:["992","810","[0-57-9]\\d{8}",[9],[["(\\d{6})(\\d)(\\d{2})","$1 $2 $3",["331","3317"]],["(\\d{3})(\\d{2})(\\d{4})","$1 $2 $3",["44[02-479]|[34]7"]],["(\\d{4})(\\d)(\\d{4})","$1 $2 $3",["3(?:[1245]|3[12])"]],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[0-57-9]"]]],0,0,0,0,0,0,0,"8~10"],TK:["690","00","[2-47]\\d{3,6}",[4,5,6,7]],TL:["670","00","7\\d{7}|(?:[2-47]\\d|[89]0)\\d{5}",[7,8],[["(\\d{3})(\\d{4})","$1 $2",["[2-489]|70"]],["(\\d{4})(\\d{4})","$1 $2",["7"]]]],TM:["993","810","(?:[1-6]\\d|71)\\d{6}",[8],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2-$3-$4",["12"],"(8 $1)"],["(\\d{3})(\\d)(\\d{2})(\\d{2})","$1 $2-$3-$4",["[1-5]"],"(8 $1)"],["(\\d{2})(\\d{6})","$1 $2",["[67]"],"8 $1"]],"8",0,0,0,0,0,0,"8~10"],TN:["216","00","[2-57-9]\\d{7}",[8],[["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["[2-57-9]"]]]],TO:["676","00","(?:0800|(?:[5-8]\\d\\d|999)\\d)\\d{3}|[2-8]\\d{4}",[5,7],[["(\\d{2})(\\d{3})","$1-$2",["[2-4]|50|6[09]|7[0-24-69]|8[05]"]],["(\\d{4})(\\d{3})","$1 $2",["0"]],["(\\d{3})(\\d{4})","$1 $2",["[5-9]"]]]],TR:["90","00","4\\d{6}|8\\d{11,12}|(?:[2-58]\\d\\d|900)\\d{7}",[7,10,12,13],[["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["512|8[01589]|90"],"0$1",1],["(\\d{3})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["5(?:[0-59]|61)","5(?:[0-59]|61[06])","5(?:[0-59]|61[06]1)"],"0$1",1],["(\\d{3})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[24][1-8]|3[1-9]"],"(0$1)",1],["(\\d{3})(\\d{3})(\\d{6,7})","$1 $2 $3",["80"],"0$1",1]],"0"],TT:["1","011","(?:[58]\\d\\d|900)\\d{7}",[10],0,"1",0,"([2-46-8]\\d{6})$|1","868$1",0,"868"],TV:["688","00","(?:2|7\\d\\d|90)\\d{4}",[5,6,7],[["(\\d{2})(\\d{3})","$1 $2",["2"]],["(\\d{2})(\\d{4})","$1 $2",["90"]],["(\\d{2})(\\d{5})","$1 $2",["7"]]]],TW:["886","0(?:0[25-79]|19)","[2-689]\\d{8}|7\\d{9,10}|[2-8]\\d{7}|2\\d{6}",[7,8,9,10,11],[["(\\d{2})(\\d)(\\d{4})","$1 $2 $3",["202"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["[258]0"],"0$1"],["(\\d)(\\d{3,4})(\\d{4})","$1 $2 $3",["[23568]|4(?:0[02-48]|[1-47-9])|7[1-9]","[23568]|4(?:0[2-48]|[1-47-9])|(?:400|7)[1-9]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[49]"],"0$1"],["(\\d{2})(\\d{4})(\\d{4,5})","$1 $2 $3",["7"],"0$1"]],"0",0,0,0,0,0,0,0,"#"],TZ:["255","00[056]","(?:[25-8]\\d|41|90)\\d{7}",[9],[["(\\d{3})(\\d{2})(\\d{4})","$1 $2 $3",["[89]"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[24]"],"0$1"],["(\\d{2})(\\d{7})","$1 $2",["5"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[67]"],"0$1"]],"0"],UA:["380","00","[89]\\d{9}|[3-9]\\d{8}",[9,10],[["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["6[12][29]|(?:3[1-8]|4[136-8]|5[12457]|6[49])2|(?:56|65)[24]","6[12][29]|(?:35|4[1378]|5[12457]|6[49])2|(?:56|65)[24]|(?:3[1-46-8]|46)2[013-9]"],"0$1"],["(\\d{4})(\\d{5})","$1 $2",["3[1-8]|4(?:[1367]|[45][6-9]|8[4-6])|5(?:[1-5]|6[0135689]|7[4-6])|6(?:[12][3-7]|[459])","3[1-8]|4(?:[1367]|[45][6-9]|8[4-6])|5(?:[1-5]|6(?:[015689]|3[02389])|7[4-6])|6(?:[12][3-7]|[459])"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[3-7]|89|9[1-9]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3,4})","$1 $2 $3",["[89]"],"0$1"]],"0",0,0,0,0,0,0,"0~0"],UG:["256","00[057]","800\\d{6}|(?:[29]0|[347]\\d)\\d{7}",[9],[["(\\d{4})(\\d{5})","$1 $2",["202","2024"],"0$1"],["(\\d{3})(\\d{6})","$1 $2",["[27-9]|4(?:6[45]|[7-9])"],"0$1"],["(\\d{2})(\\d{7})","$1 $2",["[34]"],"0$1"]],"0"],US:["1","011","[2-9]\\d{9}|3\\d{6}",[10],[["(\\d{3})(\\d{4})","$1-$2",["310"],0,1],["(\\d{3})(\\d{3})(\\d{4})","($1) $2-$3",["[2-9]"],0,1,"$1-$2-$3"]],"1",0,0,0,0,0,[["(?:3052(?:0[0-8]|[1-9]\\d)|5056(?:[0-35-9]\\d|4[0-468]))\\d{4}|(?:2742|305[3-9]|472[247-9]|505[2-57-9]|983[2-47-9])\\d{6}|(?:2(?:0[1-35-9]|1[02-9]|2[03-57-9]|3[1459]|4[08]|5[1-46]|6[0279]|7[0269]|8[13])|3(?:0[1-47-9]|1[02-9]|2[0135-79]|3[0-24679]|4[167]|5[0-2]|6[01349]|8[056])|4(?:0[124-9]|1[02-579]|2[3-5]|3[0245]|4[023578]|58|6[349]|7[0589]|8[04])|5(?:0[1-47-9]|1[0235-8]|20|3[0149]|4[01]|5[179]|6[1-47]|7[0-5]|8[0256])|6(?:0[1-35-9]|1[024-9]|2[03689]|3[016]|4[0156]|5[01679]|6[0-279]|78|8[0-29])|7(?:0[1-46-8]|1[2-9]|2[04-8]|3[0-247]|4[037]|5[47]|6[02359]|7[0-59]|8[156])|8(?:0[1-68]|1[02-8]|2[068]|3[0-2589]|4[03578]|5[046-9]|6[02-5]|7[028])|9(?:0[1346-9]|1[02-9]|2[0589]|3[0146-8]|4[01357-9]|5[12469]|7[0-389]|8[04-69]))[2-9]\\d{6}"],[""],["8(?:00|33|44|55|66|77|88)[2-9]\\d{6}"],["900[2-9]\\d{6}"],["52(?:3(?:[2-46-9][02-9]\\d|5(?:[02-46-9]\\d|5[0-46-9]))|4(?:[2-478][02-9]\\d|5(?:[034]\\d|2[024-9]|5[0-46-9])|6(?:0[1-9]|[2-9]\\d)|9(?:[05-9]\\d|2[0-5]|49)))\\d{4}|52[34][2-9]1[02-9]\\d{4}|5(?:00|2[125-9]|33|44|66|77|88)[2-9]\\d{6}"],0,0,0,["305209\\d{4}"]]],UY:["598","0(?:0|1[3-9]\\d)","0004\\d{2,9}|[1249]\\d{7}|(?:[49]\\d|80)\\d{5}",[6,7,8,9,10,11,12,13],[["(\\d{3})(\\d{3,4})","$1 $2",["0"]],["(\\d{3})(\\d{4})","$1 $2",["[49]0|8"],"0$1"],["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["9"],"0$1"],["(\\d{4})(\\d{4})","$1 $2",["[124]"]],["(\\d{3})(\\d{3})(\\d{2,4})","$1 $2 $3",["0"]],["(\\d{3})(\\d{3})(\\d{3})(\\d{2,4})","$1 $2 $3 $4",["0"]]],"0",0,0,0,0,0,0,"00"," int. "],UZ:["998","00","(?:20|33|[5-9]\\d)\\d{7}",[9],[["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[235-9]"]]]],VA:["39","00","0\\d{5,10}|3[0-8]\\d{7,10}|55\\d{8}|8\\d{5}(?:\\d{2,4})?|(?:1\\d|39)\\d{7,8}",[6,7,8,9,10,11,12],0,0,0,0,0,0,"06698"],VC:["1","011","(?:[58]\\d\\d|784|900)\\d{7}",[10],0,"1",0,"([2-7]\\d{6})$|1","784$1",0,"784"],VE:["58","00","[68]00\\d{7}|(?:[24]\\d|[59]0)\\d{8}",[10],[["(\\d{3})(\\d{7})","$1-$2",["[24-689]"],"0$1"]],"0"],VG:["1","011","(?:284|[58]\\d\\d|900)\\d{7}",[10],0,"1",0,"([2-578]\\d{6})$|1","284$1",0,"284"],VI:["1","011","[58]\\d{9}|(?:34|90)0\\d{7}",[10],0,"1",0,"([2-9]\\d{6})$|1","340$1",0,"340"],VN:["84","00","[12]\\d{9}|[135-9]\\d{8}|[16]\\d{7}|[16-8]\\d{6}",[7,8,9,10],[["(\\d{2})(\\d{5})","$1 $2",["80"],"0$1",1],["(\\d{4})(\\d{4,6})","$1 $2",["1"],0,1],["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["6"],"0$1",1],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[357-9]"],"0$1",1],["(\\d{2})(\\d{4})(\\d{4})","$1 $2 $3",["2[48]"],"0$1",1],["(\\d{3})(\\d{4})(\\d{3})","$1 $2 $3",["2"],"0$1",1]],"0"],VU:["678","00","[57-9]\\d{6}|(?:[238]\\d|48)\\d{3}",[5,7],[["(\\d{3})(\\d{4})","$1 $2",["[57-9]"]]]],WF:["681","00","(?:40|72|8\\d{4})\\d{4}|[89]\\d{5}",[6,9],[["(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3",["[47-9]"]],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["8"]]]],WS:["685","0","(?:[2-6]|8\\d{5})\\d{4}|[78]\\d{6}|[68]\\d{5}",[5,6,7,10],[["(\\d{5})","$1",["[2-5]|6[1-9]"]],["(\\d{3})(\\d{3,7})","$1 $2",["[68]"]],["(\\d{2})(\\d{5})","$1 $2",["7"]]]],XK:["383","00","2\\d{7,8}|3\\d{7,11}|(?:4\\d\\d|[89]00)\\d{5}",[8,9,10,11,12],[["(\\d{3})(\\d{5})","$1 $2",["[89]"],"0$1"],["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["[2-4]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["2|39"],"0$1"],["(\\d{2})(\\d{7,10})","$1 $2",["3"],"0$1"]],"0"],YE:["967","00","(?:1|7\\d)\\d{7}|[1-7]\\d{6}",[7,8,9],[["(\\d)(\\d{3})(\\d{3,4})","$1 $2 $3",["[1-6]|7(?:[24-6]|8[0-7])"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["7"],"0$1"]],"0"],YT:["262","00","7093\\d{5}|(?:80|9\\d)\\d{7}|(?:26|63)9\\d{6}",[9],0,"0",0,0,0,0,0,[["269(?:0[0-467]|15|5[0-4]|6\\d|[78]0)\\d{4}"],["(?:639(?:0[0-79]|1[019]|[267]\\d|3[09]|40|5[05-9]|9[04-79])|7093[5-7])\\d{4}"],["80\\d{7}"],0,0,0,0,0,["9(?:(?:39|47)8[01]|769\\d)\\d{4}"]]],ZA:["27","00","[1-79]\\d{8}|8\\d{4,9}",[5,6,7,8,9,10],[["(\\d{2})(\\d{3,4})","$1 $2",["8[1-4]"],"0$1"],["(\\d{2})(\\d{3})(\\d{2,3})","$1 $2 $3",["8[1-4]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["860"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[1-9]"],"0$1"],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["8"],"0$1"]],"0"],ZM:["260","00","800\\d{6}|(?:21|[579]\\d|63)\\d{7}",[9],[["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[28]"],"0$1"],["(\\d{2})(\\d{7})","$1 $2",["[579]"],"0$1"]],"0"],ZW:["263","00","2(?:[0-57-9]\\d{6,8}|6[0-24-9]\\d{6,7})|[38]\\d{9}|[35-8]\\d{8}|[3-6]\\d{7}|[1-689]\\d{6}|[1-3569]\\d{5}|[1356]\\d{4}",[5,6,7,8,9,10],[["(\\d{3})(\\d{3,5})","$1 $2",["2(?:0[45]|2[278]|[49]8)|3(?:[09]8|17)|6(?:[29]8|37|75)|[23][78]|(?:33|5[15]|6[68])[78]"],"0$1"],["(\\d)(\\d{3})(\\d{2,4})","$1 $2 $3",["[49]"],"0$1"],["(\\d{3})(\\d{4})","$1 $2",["80"],"0$1"],["(\\d{2})(\\d{7})","$1 $2",["24|8[13-59]|(?:2[05-79]|39|5[45]|6[15-8])2","2(?:02[014]|4|[56]20|[79]2)|392|5(?:42|525)|6(?:[16-8]21|52[013])|8[13-59]"],"(0$1)"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["7"],"0$1"],["(\\d{3})(\\d{3})(\\d{3,4})","$1 $2 $3",["2(?:1[39]|2[0157]|[378]|[56][14])|3(?:12|29)","2(?:1[39]|2[0157]|[378]|[56][14])|3(?:123|29)"],"0$1"],["(\\d{4})(\\d{6})","$1 $2",["8"],"0$1"],["(\\d{2})(\\d{3,5})","$1 $2",["1|2(?:0[0-36-9]|12|29|[56])|3(?:1[0-689]|[24-6])|5(?:[0236-9]|1[2-4])|6(?:[013-59]|7[0-46-9])|(?:33|55|6[68])[0-69]|(?:29|3[09]|62)[0-79]"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["29[013-9]|39|54"],"0$1"],["(\\d{4})(\\d{3,5})","$1 $2",["(?:25|54)8","258|5483"],"0$1"]],"0"]},nonGeographic:{800:["800",0,"(?:00|[1-9]\\d)\\d{6}",[8],[["(\\d{4})(\\d{4})","$1 $2",["\\d"]]],0,0,0,0,0,0,[0,0,["(?:00|[1-9]\\d)\\d{6}"]]],808:["808",0,"[1-9]\\d{7}",[8],[["(\\d{4})(\\d{4})","$1 $2",["[1-9]"]]],0,0,0,0,0,0,[0,0,0,0,0,0,0,0,0,["[1-9]\\d{7}"]]],870:["870",0,"7\\d{11}|[235-7]\\d{8}",[9,12],[["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[235-7]"]]],0,0,0,0,0,0,[0,["(?:[356]|774[45])\\d{8}|7[6-8]\\d{7}"],0,0,0,0,0,0,["2\\d{8}",[9]]]],878:["878",0,"10\\d{10}",[12],[["(\\d{2})(\\d{5})(\\d{5})","$1 $2 $3",["1"]]],0,0,0,0,0,0,[0,0,0,0,0,0,0,0,["10\\d{10}"]]],881:["881",0,"6\\d{9}|[0-36-9]\\d{8}",[9,10],[["(\\d)(\\d{3})(\\d{5})","$1 $2 $3",["[0-37-9]"]],["(\\d)(\\d{3})(\\d{5,6})","$1 $2 $3",["6"]]],0,0,0,0,0,0,[0,["6\\d{9}|[0-36-9]\\d{8}"]]],882:["882",0,"[13]\\d{6}(?:\\d{2,5})?|[19]\\d{7}|(?:[25]\\d\\d|4)\\d{7}(?:\\d{2})?",[7,8,9,10,11,12],[["(\\d{2})(\\d{5})","$1 $2",["16|342"]],["(\\d{2})(\\d{6})","$1 $2",["49"]],["(\\d{2})(\\d{2})(\\d{4})","$1 $2 $3",["1[36]|9"]],["(\\d{2})(\\d{4})(\\d{3})","$1 $2 $3",["3[23]"]],["(\\d{2})(\\d{3,4})(\\d{4})","$1 $2 $3",["16"]],["(\\d{2})(\\d{4})(\\d{4})","$1 $2 $3",["10|23|3(?:[15]|4[57])|4|51"]],["(\\d{3})(\\d{4})(\\d{4})","$1 $2 $3",["34"]],["(\\d{2})(\\d{4,5})(\\d{5})","$1 $2 $3",["[1-35]"]]],0,0,0,0,0,0,[0,["342\\d{4}|(?:337|49)\\d{6}|(?:3(?:2|47|7\\d{3})|50\\d{3})\\d{7}",[7,8,9,10,12]],0,0,0,["348[57]\\d{7}",[11]],0,0,["1(?:3(?:0[0347]|[13][0139]|2[035]|4[013568]|6[0459]|7[06]|8[15-8]|9[0689])\\d{4}|6\\d{5,10})|(?:345\\d|9[89])\\d{6}|(?:10|2(?:3|85\\d)|3(?:[15]|[69]\\d\\d)|4[15-8]|51)\\d{8}"]]],883:["883",0,"(?:[1-4]\\d|51)\\d{6,10}",[8,9,10,11,12],[["(\\d{3})(\\d{3})(\\d{2,8})","$1 $2 $3",["[14]|2[24-689]|3[02-689]|51[24-9]"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["510"]],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["21"]],["(\\d{4})(\\d{4})(\\d{4})","$1 $2 $3",["51[13]"]],["(\\d{3})(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3 $4",["[235]"]]],0,0,0,0,0,0,[0,0,0,0,0,0,0,0,["(?:2(?:00\\d\\d|10)|(?:370[1-9]|51\\d0)\\d)\\d{7}|51(?:00\\d{5}|[24-9]0\\d{4,7})|(?:1[0-79]|2[24-689]|3[02-689]|4[0-4])0\\d{5,9}"]]],888:["888",0,"\\d{11}",[11],[["(\\d{3})(\\d{3})(\\d{5})","$1 $2 $3"]],0,0,0,0,0,0,[0,0,0,0,0,0,["\\d{11}"]]],979:["979",0,"[1359]\\d{8}",[9],[["(\\d)(\\d{4})(\\d{4})","$1 $2 $3",["[1359]"]]],0,0,0,0,0,0,[0,0,0,["[1359]\\d{8}"]]]}};var UC={exports:{}},jC,Z8;function vG(){if(Z8)return jC;Z8=1;var t="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return jC=t,jC}var BC,eR;function bG(){if(eR)return BC;eR=1;var t=vG();function e(){}function n(){}return n.resetWarningCache=e,BC=function(){function r(u,l,d,h,g,y){if(y!==t){var w=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw w.name="Invariant Violation",w}}r.isRequired=r;function i(){return r}var o={array:r,bigint:r,bool:r,func:r,number:r,object:r,string:r,symbol:r,any:r,arrayOf:i,element:r,elementType:r,instanceOf:i,node:r,objectOf:i,oneOf:i,oneOfType:i,shape:i,exact:i,checkPropTypes:n,resetWarningCache:e};return o.PropTypes=o,o},BC}var tR;function wG(){return tR||(tR=1,UC.exports=bG()()),UC.exports}var Ue=wG();const Te=Mf(Ue);function SG(t,e,n){switch(n){case"Backspace":e>0&&(t=t.slice(0,e-1)+t.slice(e),e--);break;case"Delete":t=t.slice(0,e)+t.slice(e+1);break}return{value:t,caret:e}}function CG(t,e,n){for(var r={},i="",o=0,u=0;uu&&(o=i.length))),u++}e===void 0&&(o=i.length);var d={value:i,caret:o};return d}function $G(t,e){var n=typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(n)return(n=n.call(t)).next.bind(n);if(Array.isArray(t)||(n=EG(t))||e){n&&(t=n);var r=0;return function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. -In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function EG(t,e){if(t){if(typeof t=="string")return nR(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);if(n==="Object"&&t.constructor&&(n=t.constructor.name),n==="Map"||n==="Set")return Array.from(t);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return nR(t,e)}}function nR(t,e){(e==null||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n2&&arguments[2]!==void 0?arguments[2]:"x",r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:" ",i=t.length,o=ix("(",t),u=ix(")",t),l=o-u;l>0&&i=t.length?{done:!0}:{done:!1,value:t[r++]}}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. -In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function TG(t,e){if(t){if(typeof t=="string")return rR(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);if(n==="Object"&&t.constructor&&(n=t.constructor.name),n==="Map"||n==="Set")return Array.from(t);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return rR(t,e)}}function rR(t,e){(e==null||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n1&&arguments[1]!==void 0?arguments[1]:"x",n=arguments.length>2?arguments[2]:void 0;if(!t)return function(i){return{text:i}};var r=ix(e,t);return function(i){if(!i)return{text:"",template:t};for(var o=0,u="",l=OG(t.split("")),d;!(d=l()).done;){var h=d.value;if(h!==e){u+=h;continue}if(u+=i[o],o++,o===i.length&&i.length=0)&&Object.prototype.propertyIsEnumerable.call(t,r)&&(n[r]=t[r])}return n}function qG(t,e){if(t==null)return{};var n={},r=Object.keys(t),i,o;for(o=0;o=0)&&(n[i]=t[i]);return n}function HG(t){var e=t.ref,n=t.parse,r=t.format,i=t.value,o=t.defaultValue,u=t.controlled,l=u===void 0?!0:u,d=t.onChange,h=t.onKeyDown,g=BG(t,UG),y=T.useRef(),w=T.useCallback(function($){y.current=$,e&&(typeof e=="function"?e($):e.current=$)},[e]),v=T.useCallback(function($){return DG($,y.current,n,r,d)},[y,n,r,d]),C=T.useCallback(function($){if(h&&h($),!$.defaultPrevented)return FG($,y.current,n,r,d)},[y,n,r,d,h]),E=_g(_g({},g),{},{ref:w,onChange:v,onKeyDown:C});return l?_g(_g({},E),{},{value:r(oR(i)?"":i).text}):_g(_g({},E),{},{defaultValue:r(oR(o)?"":o).text})}function oR(t){return t==null}var zG=["inputComponent","parse","format","value","defaultValue","onChange","controlled","onKeyDown","type"];function sR(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),n.push.apply(n,r)}return n}function VG(t){for(var e=1;e=0)&&Object.prototype.propertyIsEnumerable.call(t,r)&&(n[r]=t[r])}return n}function KG(t,e){if(t==null)return{};var n={},r=Object.keys(t),i,o;for(o=0;o=0)&&(n[i]=t[i]);return n}function Yw(t,e){var n=t.inputComponent,r=n===void 0?"input":n,i=t.parse,o=t.format,u=t.value,l=t.defaultValue,d=t.onChange,h=t.controlled,g=t.onKeyDown,y=t.type,w=y===void 0?"text":y,v=WG(t,zG),C=HG(VG({ref:e,parse:i,format:o,value:u,defaultValue:l,onChange:d,controlled:h,onKeyDown:g,type:w},v));return Ae.createElement(r,C)}Yw=Ae.forwardRef(Yw);Yw.propTypes={parse:Te.func.isRequired,format:Te.func.isRequired,inputComponent:Te.elementType,type:Te.string,value:Te.string,defaultValue:Te.string,onChange:Te.func,controlled:Te.bool,onKeyDown:Te.func,onCut:Te.func,onPaste:Te.func};function uR(t,e){t=t.split("-"),e=e.split("-");for(var n=t[0].split("."),r=e[0].split("."),i=0;i<3;i++){var o=Number(n[i]),u=Number(r[i]);if(o>u)return 1;if(u>o)return-1;if(!isNaN(o)&&isNaN(u))return 1;if(isNaN(o)&&!isNaN(u))return-1}return t[1]&&e[1]?t[1]>e[1]?1:t[1]o?"TOO_SHORT":i[i.length-1]=0?"IS_POSSIBLE":"INVALID_LENGTH"}function aW(t,e,n){if(e===void 0&&(e={}),n=new Dr(n),e.v2){if(!t.countryCallingCode)throw new Error("Invalid phone number object passed");n.selectNumberingPlan(t.countryCallingCode)}else{if(!t.phone)return!1;if(t.country){if(!n.hasCountry(t.country))throw new Error("Unknown country: ".concat(t.country));n.country(t.country)}else{if(!t.countryCallingCode)throw new Error("Invalid phone number object passed");n.selectNumberingPlan(t.countryCallingCode)}}if(n.possibleLengths())return GI(t.phone||t.nationalNumber,n);if(t.countryCallingCode&&n.isNonGeographicCallingCode(t.countryCallingCode))return!0;throw new Error('Missing "possibleLengths" in metadata. Perhaps the metadata has been generated before v1.0.18.')}function GI(t,e){switch(LS(t,e)){case"IS_POSSIBLE":return!0;default:return!1}}function Tl(t,e){return t=t||"",new RegExp("^(?:"+e+")$").test(t)}function oW(t,e){var n=typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(n)return(n=n.call(t)).next.bind(n);if(Array.isArray(t)||(n=sW(t))||e){n&&(t=n);var r=0;return function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. -In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function sW(t,e){if(t){if(typeof t=="string")return dR(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);if(n==="Object"&&t.constructor&&(n=t.constructor.name),n==="Map"||n==="Set")return Array.from(t);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return dR(t,e)}}function dR(t,e){(e==null||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n=0}var VO=2,dW=17,hW=3,la="0-90-9٠-٩۰-۹",pW="-‐-―−ー-",mW="//",gW="..",yW="  ­​⁠ ",vW="()()[]\\[\\]",bW="~⁓∼~",ks="".concat(pW).concat(mW).concat(gW).concat(yW).concat(vW).concat(bW),US="++",wW=new RegExp("(["+la+"])");function WI(t,e,n,r){if(e){var i=new Dr(r);i.selectNumberingPlan(e,n);var o=new RegExp(i.IDDPrefix());if(t.search(o)===0){t=t.slice(t.match(o)[0].length);var u=t.match(wW);if(!(u&&u[1]!=null&&u[1].length>0&&u[1]==="0"))return t}}}function sx(t,e){if(t&&e.numberingPlan.nationalPrefixForParsing()){var n=new RegExp("^(?:"+e.numberingPlan.nationalPrefixForParsing()+")"),r=n.exec(t);if(r){var i,o,u=r.length-1,l=u>0&&r[u];if(e.nationalPrefixTransformRule()&&l)i=t.replace(n,e.nationalPrefixTransformRule()),u>1&&(o=r[1]);else{var d=r[0];i=t.slice(d.length),l&&(o=r[1])}var h;if(l){var g=t.indexOf(r[1]),y=t.slice(0,g);y===e.numberingPlan.nationalPrefix()&&(h=e.numberingPlan.nationalPrefix())}else h=r[0];return{nationalNumber:i,nationalPrefix:h,carrierCode:o}}}return{nationalNumber:t}}function ux(t,e){var n=sx(t,e),r=n.carrierCode,i=n.nationalNumber;if(i!==t){if(!SW(t,i,e))return{nationalNumber:t};if(e.possibleLengths()&&!CW(i,e))return{nationalNumber:t}}return{nationalNumber:i,carrierCode:r}}function SW(t,e,n){return!(Tl(t,n.nationalNumberPattern())&&!Tl(e,n.nationalNumberPattern()))}function CW(t,e){switch(LS(t,e)){case"TOO_SHORT":case"INVALID_LENGTH":return!1;default:return!0}}function KI(t,e,n,r){var i=e?jf(e,r):n;if(t.indexOf(i)===0){r=new Dr(r),r.selectNumberingPlan(e,n);var o=t.slice(i.length),u=ux(o,r),l=u.nationalNumber,d=ux(t,r),h=d.nationalNumber;if(!Tl(h,r.nationalNumberPattern())&&Tl(l,r.nationalNumberPattern())||LS(h,r)==="TOO_LONG")return{countryCallingCode:i,number:o}}return{number:t}}function GO(t,e,n,r){if(!t)return{};var i;if(t[0]!=="+"){var o=WI(t,e,n,r);if(o&&o!==t)i=!0,t="+"+o;else{if(e||n){var u=KI(t,e,n,r),l=u.countryCallingCode,d=u.number;if(l)return{countryCallingCodeSource:"FROM_NUMBER_WITHOUT_PLUS_SIGN",countryCallingCode:l,number:d}}return{number:t}}}if(t[1]==="0")return{};r=new Dr(r);for(var h=2;h-1<=hW&&h<=t.length;){var g=t.slice(1,h);if(r.hasCallingCode(g))return r.selectNumberingPlan(g),{countryCallingCodeSource:i?"FROM_NUMBER_WITH_IDD":"FROM_NUMBER_WITH_PLUS_SIGN",countryCallingCode:g,number:t.slice(h)};h++}return{}}function YI(t){return t.replace(new RegExp("[".concat(ks,"]+"),"g")," ").trim()}var JI=/(\$\d)/;function QI(t,e,n){var r=n.useInternationalFormat,i=n.withNationalPrefix;n.carrierCode,n.metadata;var o=t.replace(new RegExp(e.pattern()),r?e.internationalFormat():i&&e.nationalPrefixFormattingRule()?e.format().replace(JI,e.nationalPrefixFormattingRule()):e.format());return r?YI(o):o}var $W=/^[\d]+(?:[~\u2053\u223C\uFF5E][\d]+)?$/;function EW(t,e,n){var r=new Dr(n);if(r.selectNumberingPlan(t,e),r.defaultIDDPrefix())return r.defaultIDDPrefix();if($W.test(r.IDDPrefix()))return r.IDDPrefix()}var xW=";ext=",Ag=function(e){return"([".concat(la,"]{1,").concat(e,"})")};function XI(t){var e="20",n="15",r="9",i="6",o="[  \\t,]*",u="[:\\..]?[  \\t,-]*",l="#?",d="(?:e?xt(?:ensi(?:ó?|ó))?n?|e?xtn?|доб|anexo)",h="(?:[xx##~~]|int|int)",g="[- ]+",y="[  \\t]*",w="(?:,{2}|;)",v=xW+Ag(e),C=o+d+u+Ag(e)+l,E=o+h+u+Ag(r)+l,$=g+Ag(i)+"#",O=y+w+u+Ag(n)+l,_=y+"(?:,)+"+u+Ag(r)+l;return v+"|"+C+"|"+E+"|"+$+"|"+O+"|"+_}var OW="["+la+"]{"+VO+"}",TW="["+US+"]{0,1}(?:["+ks+"]*["+la+"]){3,}["+ks+la+"]*",_W=new RegExp("^["+US+"]{0,1}(?:["+ks+"]*["+la+"]){1,2}$","i"),AW=TW+"(?:"+XI()+")?",RW=new RegExp("^"+OW+"$|^"+AW+"$","i");function PW(t){return t.length>=VO&&RW.test(t)}function IW(t){return _W.test(t)}function NW(t){var e=t.number,n=t.ext;if(!e)return"";if(e[0]!=="+")throw new Error('"formatRFC3966()" expects "number" to be in E.164 format.');return"tel:".concat(e).concat(n?";ext="+n:"")}function MW(t,e){var n=typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(n)return(n=n.call(t)).next.bind(n);if(Array.isArray(t)||(n=kW(t))||e){n&&(t=n);var r=0;return function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. -In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function kW(t,e){if(t){if(typeof t=="string")return hR(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);if(n==="Object"&&t.constructor&&(n=t.constructor.name),n==="Map"||n==="Set")return Array.from(t);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return hR(t,e)}}function hR(t,e){(e==null||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n0){var o=i.leadingDigitsPatterns()[i.leadingDigitsPatterns().length-1];if(e.search(o)!==0)continue}if(Tl(e,i.pattern()))return i}}function HC(t,e,n,r){return e?r(t,e,n):t}function UW(t,e,n,r,i){var o=jf(r,i.metadata);if(o===n){var u=Jw(t,e,"NATIONAL",i);return n==="1"?n+" "+u:u}var l=EW(r,void 0,i.metadata);if(l)return"".concat(l," ").concat(n," ").concat(Jw(t,null,"INTERNATIONAL",i))}function yR(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),n.push.apply(n,r)}return n}function vR(t){for(var e=1;e"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function XW(t){return Function.toString.call(t).indexOf("[native code]")!==-1}function h1(t,e){return h1=Object.setPrototypeOf||function(r,i){return r.__proto__=i,r},h1(t,e)}function p1(t){return p1=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},p1(t)}var Sl=(function(t){YW(n,t);var e=JW(n);function n(r){var i;return KW(this,n),i=e.call(this,r),Object.setPrototypeOf(eN(i),n.prototype),i.name=i.constructor.name,i}return WW(n)})(cx(Error)),bR=new RegExp("(?:"+XI()+")$","i");function ZW(t){var e=t.search(bR);if(e<0)return{};for(var n=t.slice(0,e),r=t.match(bR),i=1;i=t.length?{done:!0}:{done:!1,value:t[r++]}}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. -In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function tK(t,e){if(t){if(typeof t=="string")return wR(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);if(n==="Object"&&t.constructor&&(n=t.constructor.name),n==="Map"||n==="Set")return Array.from(t);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return wR(t,e)}}function wR(t,e){(e==null||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n=t.length?{done:!0}:{done:!1,value:t[r++]}}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. -In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function iK(t,e){if(t){if(typeof t=="string")return SR(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);if(n==="Object"&&t.constructor&&(n=t.constructor.name),n==="Map"||n==="Set")return Array.from(t);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return SR(t,e)}}function SR(t,e){(e==null||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n=t.length?{done:!0}:{done:!1,value:t[r++]}}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. -In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function oK(t,e){if(t){if(typeof t=="string")return CR(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);if(n==="Object"&&t.constructor&&(n=t.constructor.name),n==="Map"||n==="Set")return Array.from(t);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return CR(t,e)}}function CR(t,e){(e==null||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n=t.length)return"";var r=t.indexOf(";",n);return r>=0?t.substring(n,r):t.substring(n)}function yK(t){return t===null?!0:t.length===0?!1:lK.test(t)||pK.test(t)}function vK(t,e){var n=e.extractFormattedPhoneNumber,r=gK(t);if(!yK(r))throw new Sl("NOT_A_NUMBER");var i;if(r===null)i=n(t)||"";else{i="",r.charAt(0)===oN&&(i+=r);var o=t.indexOf(ER),u;o>=0?u=o+ER.length:u=0;var l=t.indexOf(hx);i+=t.substring(u,l)}var d=i.indexOf(mK);if(d>0&&(i=i.substring(0,d)),i!=="")return i}var bK=250,wK=new RegExp("["+US+la+"]"),SK=new RegExp("[^"+la+"#]+$");function CK(t,e,n){if(e=e||{},n=new Dr(n),e.defaultCountry&&!n.hasCountry(e.defaultCountry))throw e.v2?new Sl("INVALID_COUNTRY"):new Error("Unknown country: ".concat(e.defaultCountry));var r=EK(t,e.v2,e.extract),i=r.number,o=r.ext,u=r.error;if(!i){if(e.v2)throw u==="TOO_SHORT"?new Sl("TOO_SHORT"):new Sl("NOT_A_NUMBER");return{}}var l=OK(i,e.defaultCountry,e.defaultCallingCode,n),d=l.country,h=l.nationalNumber,g=l.countryCallingCode,y=l.countryCallingCodeSource,w=l.carrierCode;if(!n.hasSelectedNumberingPlan()){if(e.v2)throw new Sl("INVALID_COUNTRY");return{}}if(!h||h.lengthdW){if(e.v2)throw new Sl("TOO_LONG");return{}}if(e.v2){var v=new ZI(g,h,n.metadata);return d&&(v.country=d),w&&(v.carrierCode=w),o&&(v.ext=o),v.__countryCallingCodeSource=y,v}var C=(e.extended?n.hasSelectedNumberingPlan():d)?Tl(h,n.nationalNumberPattern()):!1;return e.extended?{country:d,countryCallingCode:g,carrierCode:w,valid:C,possible:C?!0:!!(e.extended===!0&&n.possibleLengths()&&GI(h,n)),phone:h,ext:o}:C?xK(d,h,o):{}}function $K(t,e,n){if(t){if(t.length>bK){if(n)throw new Sl("TOO_LONG");return}if(e===!1)return t;var r=t.search(wK);if(!(r<0))return t.slice(r).replace(SK,"")}}function EK(t,e,n){var r=vK(t,{extractFormattedPhoneNumber:function(u){return $K(u,n,e)}});if(!r)return{};if(!PW(r))return IW(r)?{error:"TOO_SHORT"}:{};var i=ZW(r);return i.ext?i:{number:r}}function xK(t,e,n){var r={country:t,phone:e};return n&&(r.ext=n),r}function OK(t,e,n,r){var i=GO(fx(t),e,n,r.metadata),o=i.countryCallingCodeSource,u=i.countryCallingCode,l=i.number,d;if(u)r.selectNumberingPlan(u);else if(l&&(e||n))r.selectNumberingPlan(e,n),e&&(d=e),u=n||jf(e,r.metadata);else return{};if(!l)return{countryCallingCodeSource:o,countryCallingCode:u};var h=ux(fx(l),r),g=h.nationalNumber,y=h.carrierCode,w=aN(u,{nationalNumber:g,defaultCountry:e,metadata:r});return w&&(d=w,w==="001"||r.country(d)),{country:d,countryCallingCode:u,countryCallingCodeSource:o,nationalNumber:g,carrierCode:y}}function xR(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),n.push.apply(n,r)}return n}function OR(t){for(var e=1;et.length)&&(e=t.length);for(var n=0,r=new Array(e);n=t.length?{done:!0}:{done:!1,value:t[r++]}}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. -In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function VK(t,e){if(t){if(typeof t=="string")return PR(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);if(n==="Object"&&t.constructor&&(n=t.constructor.name),n==="Map"||n==="Set")return Array.from(t);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return PR(t,e)}}function PR(t,e){(e==null||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n1;)e&1&&(n+=t),e>>=1,t+=t;return n+t}function IR(t,e){return t[e]===")"&&e++,GK(t.slice(0,e))}function GK(t){for(var e=[],n=0;n=t.length?{done:!0}:{done:!1,value:t[r++]}}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. -In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function aY(t,e){if(t){if(typeof t=="string")return kR(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);if(n==="Object"&&t.constructor&&(n=t.constructor.name),n==="Map"||n==="Set")return Array.from(t);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return kR(t,e)}}function kR(t,e){(e==null||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n1&&arguments[1]!==void 0?arguments[1]:{},i=r.allowOverflow;if(!n)throw new Error("String is required");var o=px(n.split(""),this.matchTree,!0);if(o&&o.match&&delete o.matchedChars,!(o&&o.overflow&&!i))return o}}]),t})();function px(t,e,n){if(typeof e=="string"){var r=t.join("");return e.indexOf(r)===0?t.length===e.length?{match:!0,matchedChars:t}:{partialMatch:!0}:r.indexOf(e)===0?n&&t.length>e.length?{overflow:!0}:{match:!0,matchedChars:t.slice(0,e.length)}:void 0}if(Array.isArray(e)){for(var i=t.slice(),o=0;o=t.length?{done:!0}:{done:!1,value:t[r++]}}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. -In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function cY(t,e){if(t){if(typeof t=="string")return FR(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);if(n==="Object"&&t.constructor&&(n=t.constructor.name),n==="Map"||n==="Set")return Array.from(t);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return FR(t,e)}}function FR(t,e){(e==null||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n=0)){var i=this.getTemplateForFormat(n,r);if(i)return this.setNationalNumberTemplate(i,r),!0}}},{key:"getSeparatorAfterNationalPrefix",value:function(n){return this.isNANP||n&&n.nationalPrefixFormattingRule()&&gY.test(n.nationalPrefixFormattingRule())?" ":""}},{key:"getInternationalPrefixBeforeCountryCallingCode",value:function(n,r){var i=n.IDDPrefix,o=n.missingPlus;return i?r&&r.spacing===!1?i:i+" ":o?"":"+"}},{key:"getTemplate",value:function(n){if(this.template){for(var r=-1,i=0,o=n.international?this.getInternationalPrefixBeforeCountryCallingCode(n,{spacing:!1}):"";ih.length)){var g=new RegExp("^"+d+"$"),y=i.replace(/\d/g,mx);g.test(y)&&(h=y);var w=this.getFormatFormat(n,o),v;if(this.shouldTryNationalPrefixFormattingRule(n,{international:o,nationalPrefix:u})){var C=w.replace(JI,n.nationalPrefixFormattingRule());if(Qw(n.nationalPrefixFormattingRule())===(u||"")+Qw("$1")&&(w=C,v=!0,u))for(var E=u.length;E>0;)w=w.replace(/\d/,Rs),E--}var $=h.replace(new RegExp(d),w).replace(new RegExp(mx,"g"),Rs);return v||(l?$=Ow(Rs,l.length)+" "+$:u&&($=Ow(Rs,u.length)+this.getSeparatorAfterNationalPrefix(n)+$)),o&&($=YI($)),$}}},{key:"formatNextNationalNumberDigits",value:function(n){var r=WK(this.populatedNationalNumberTemplate,this.populatedNationalNumberTemplatePosition,n);if(!r){this.resetFormat();return}return this.populatedNationalNumberTemplate=r[0],this.populatedNationalNumberTemplatePosition=r[1],IR(this.populatedNationalNumberTemplate,this.populatedNationalNumberTemplatePosition+1)}},{key:"shouldTryNationalPrefixFormattingRule",value:function(n,r){var i=r.international,o=r.nationalPrefix;if(n.nationalPrefixFormattingRule()){var u=n.usesNationalPrefix();if(u&&o||!u&&!i)return!0}}}]),t})();function sN(t,e){return EY(t)||$Y(t,e)||CY(t,e)||SY()}function SY(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. -In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function CY(t,e){if(t){if(typeof t=="string")return UR(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);if(n==="Object"&&t.constructor&&(n=t.constructor.name),n==="Map"||n==="Set")return Array.from(t);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return UR(t,e)}}function UR(t,e){(e==null||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n=3;if(r.appendDigits(n),o&&this.extractIddPrefix(r),this.isWaitingForCountryCallingCode(r)){if(!this.extractCountryCallingCode(r))return}else r.appendNationalSignificantNumberDigits(n);r.international||this.hasExtractedNationalSignificantNumber||this.extractNationalSignificantNumber(r.getNationalDigits(),function(u){return r.update(u)})}},{key:"isWaitingForCountryCallingCode",value:function(n){var r=n.international,i=n.callingCode;return r&&!i}},{key:"extractCountryCallingCode",value:function(n){var r=GO("+"+n.getDigitsWithoutInternationalPrefix(),this.defaultCountry,this.defaultCallingCode,this.metadata.metadata),i=r.countryCallingCode,o=r.number;if(i)return n.setCallingCode(i),n.update({nationalSignificantNumber:o}),!0}},{key:"reset",value:function(n){if(n){this.hasSelectedNumberingPlan=!0;var r=n._nationalPrefixForParsing();this.couldPossiblyExtractAnotherNationalSignificantNumber=r&&IY.test(r)}else this.hasSelectedNumberingPlan=void 0,this.couldPossiblyExtractAnotherNationalSignificantNumber=void 0}},{key:"extractNationalSignificantNumber",value:function(n,r){if(this.hasSelectedNumberingPlan){var i=sx(n,this.metadata),o=i.nationalPrefix,u=i.nationalNumber,l=i.carrierCode;if(u!==n)return this.onExtractedNationalNumber(o,l,u,n,r),!0}}},{key:"extractAnotherNationalSignificantNumber",value:function(n,r,i){if(!this.hasExtractedNationalSignificantNumber)return this.extractNationalSignificantNumber(n,i);if(this.couldPossiblyExtractAnotherNationalSignificantNumber){var o=sx(n,this.metadata),u=o.nationalPrefix,l=o.nationalNumber,d=o.carrierCode;if(l!==r)return this.onExtractedNationalNumber(u,d,l,n,i),!0}}},{key:"onExtractedNationalNumber",value:function(n,r,i,o,u){var l,d,h=o.lastIndexOf(i);if(h>=0&&h===o.length-i.length){d=!0;var g=o.slice(0,h);g!==n&&(l=g)}u({nationalPrefix:n,carrierCode:r,nationalSignificantNumber:i,nationalSignificantNumberMatchesInput:d,complexPrefixBeforeNationalSignificantNumber:l}),this.hasExtractedNationalSignificantNumber=!0,this.onNationalSignificantNumberChange()}},{key:"reExtractNationalSignificantNumber",value:function(n){if(this.extractAnotherNationalSignificantNumber(n.getNationalDigits(),n.nationalSignificantNumber,function(r){return n.update(r)}))return!0;if(this.extractIddPrefix(n))return this.extractCallingCodeAndNationalSignificantNumber(n),!0;if(this.fixMissingPlus(n))return this.extractCallingCodeAndNationalSignificantNumber(n),!0}},{key:"extractIddPrefix",value:function(n){var r=n.international,i=n.IDDPrefix,o=n.digits;if(n.nationalSignificantNumber,!(r||i)){var u=WI(o,this.defaultCountry,this.defaultCallingCode,this.metadata.metadata);if(u!==void 0&&u!==o)return n.update({IDDPrefix:o.slice(0,o.length-u.length)}),this.startInternationalNumber(n,{country:void 0,callingCode:void 0}),!0}}},{key:"fixMissingPlus",value:function(n){if(!n.international){var r=KI(n.digits,this.defaultCountry,this.defaultCallingCode,this.metadata.metadata),i=r.countryCallingCode;if(r.number,i)return n.update({missingPlus:!0}),this.startInternationalNumber(n,{country:n.country,callingCode:i}),!0}}},{key:"startInternationalNumber",value:function(n,r){var i=r.country,o=r.callingCode;n.startInternationalNumber(i,o),n.nationalSignificantNumber&&(n.resetNationalSignificantNumber(),this.onNationalSignificantNumberChange(),this.hasExtractedNationalSignificantNumber=void 0)}},{key:"extractCallingCodeAndNationalSignificantNumber",value:function(n){this.extractCountryCallingCode(n)&&this.extractNationalSignificantNumber(n.getNationalDigits(),function(r){return n.update(r)})}}]),t})();function MY(t){var e=t.search(RY);if(!(e<0)){t=t.slice(e);var n;return t[0]==="+"&&(n=!0,t=t.slice(1)),t=t.replace(PY,""),n&&(t="+"+t),t}}function kY(t){var e=MY(t)||"";return e[0]==="+"?[e.slice(1),!0]:[e]}function DY(t){var e=kY(t),n=sN(e,2),r=n[0],i=n[1];return AY.test(r)||(r=""),[r,i]}function FY(t,e){return BY(t)||jY(t,e)||UY(t,e)||LY()}function LY(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. -In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function UY(t,e){if(t){if(typeof t=="string")return jR(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);if(n==="Object"&&t.constructor&&(n=t.constructor.name),n==="Map"||n==="Set")return Array.from(t);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return jR(t,e)}}function jR(t,e){(e==null||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n1}},{key:"determineTheCountry",value:function(){this.state.setCountry(aN(this.isInternational()?this.state.callingCode:this.defaultCallingCode,{nationalNumber:this.state.nationalSignificantNumber,defaultCountry:this.defaultCountry,metadata:this.metadata}))}},{key:"getNumberValue",value:function(){var n=this.state,r=n.digits,i=n.callingCode,o=n.country,u=n.nationalSignificantNumber;if(r){if(this.isInternational())return i?"+"+i+u:"+"+r;if(o||i){var l=o?this.metadata.countryCallingCode():i;return"+"+l+u}}}},{key:"getNumber",value:function(){var n=this.state,r=n.nationalSignificantNumber,i=n.carrierCode,o=n.callingCode,u=this._getCountry();if(r&&!(!u&&!o)){if(u&&u===this.defaultCountry){var l=new Dr(this.metadata.metadata);l.selectNumberingPlan(u);var d=l.numberingPlan.callingCode(),h=this.metadata.getCountryCodesForCallingCode(d);if(h.length>1){var g=iN(r,{countries:h,defaultCountry:this.defaultCountry,metadata:this.metadata.metadata});g&&(u=g)}}var y=new ZI(u||o,r,this.metadata.metadata);return i&&(y.carrierCode=i),y}}},{key:"isPossible",value:function(){var n=this.getNumber();return n?n.isPossible():!1}},{key:"isValid",value:function(){var n=this.getNumber();return n?n.isValid():!1}},{key:"getNationalNumber",value:function(){return this.state.nationalSignificantNumber}},{key:"getChars",value:function(){return(this.state.international?"+":"")+this.state.digits}},{key:"getTemplate",value:function(){return this.formatter.getTemplate(this.state)||this.getNonFormattedTemplate()||""}}]),t})();function BR(t){return new Dr(t).getCountries()}function VY(t,e,n){return n||(n=e,e=void 0),new dy(e,n).input(t)}function uN(t){var e=t.inputFormat,n=t.country,r=t.metadata;return e==="NATIONAL_PART_OF_INTERNATIONAL"?"+".concat(jf(n,r)):""}function gx(t,e){return e&&(t=t.slice(e.length),t[0]===" "&&(t=t.slice(1))),t}function GY(t,e,n){if(!(n&&n.ignoreRest)){var r=function(o){if(n)switch(o){case"end":n.ignoreRest=!0;break}};return rN(t,e,r)}}function lN(t){var e=t.onKeyDown,n=t.inputFormat;return T.useCallback(function(r){if(r.keyCode===KY&&n==="INTERNATIONAL"&&r.target instanceof HTMLInputElement&&WY(r.target)===YY.length){r.preventDefault();return}e&&e(r)},[e,n])}function WY(t){return t.selectionStart}var KY=8,YY="+",JY=["onKeyDown","country","inputFormat","metadata","international","withCountryCallingCode"];function yx(){return yx=Object.assign?Object.assign.bind():function(t){for(var e=1;e=0)&&Object.prototype.propertyIsEnumerable.call(t,r)&&(n[r]=t[r])}return n}function XY(t,e){if(t==null)return{};var n={},r=Object.keys(t),i,o;for(o=0;o=0)&&(n[i]=t[i]);return n}function ZY(t){function e(n,r){var i=n.onKeyDown,o=n.country,u=n.inputFormat,l=n.metadata,d=l===void 0?t:l;n.international,n.withCountryCallingCode;var h=QY(n,JY),g=T.useCallback(function(w){var v=new dy(o,d),C=uN({inputFormat:u,country:o,metadata:d}),E=v.input(C+w),$=v.getTemplate();return C&&(E=gx(E,C),$&&($=gx($,C))),{text:E,template:$}},[o,d]),y=lN({onKeyDown:i,inputFormat:u});return Ae.createElement(Yw,yx({},h,{ref:r,parse:GY,format:g,onKeyDown:y}))}return e=Ae.forwardRef(e),e.propTypes={value:Te.string.isRequired,onChange:Te.func.isRequired,onKeyDown:Te.func,country:Te.string,inputFormat:Te.oneOf(["INTERNATIONAL","NATIONAL_PART_OF_INTERNATIONAL","NATIONAL","INTERNATIONAL_OR_NATIONAL"]).isRequired,metadata:Te.object},e}const eJ=ZY();var tJ=["value","onChange","onKeyDown","country","inputFormat","metadata","inputComponent","international","withCountryCallingCode"];function vx(){return vx=Object.assign?Object.assign.bind():function(t){for(var e=1;e=0)&&Object.prototype.propertyIsEnumerable.call(t,r)&&(n[r]=t[r])}return n}function rJ(t,e){if(t==null)return{};var n={},r=Object.keys(t),i,o;for(o=0;o=0)&&(n[i]=t[i]);return n}function iJ(t){function e(n,r){var i=n.value,o=n.onChange,u=n.onKeyDown,l=n.country,d=n.inputFormat,h=n.metadata,g=h===void 0?t:h,y=n.inputComponent,w=y===void 0?"input":y;n.international,n.withCountryCallingCode;var v=nJ(n,tJ),C=uN({inputFormat:d,country:l,metadata:g}),E=T.useCallback(function(O){var _=fx(O.target.value);if(_===i){var R=qR(C,_,l,g);R.indexOf(O.target.value)===0&&(_=_.slice(0,-1))}o(_)},[C,i,o,l,g]),$=lN({onKeyDown:u,inputFormat:d});return Ae.createElement(w,vx({},v,{ref:r,value:qR(C,i,l,g),onChange:E,onKeyDown:$}))}return e=Ae.forwardRef(e),e.propTypes={value:Te.string.isRequired,onChange:Te.func.isRequired,onKeyDown:Te.func,country:Te.string,inputFormat:Te.oneOf(["INTERNATIONAL","NATIONAL_PART_OF_INTERNATIONAL","NATIONAL","INTERNATIONAL_OR_NATIONAL"]).isRequired,metadata:Te.object,inputComponent:Te.elementType},e}const aJ=iJ();function qR(t,e,n,r){return gx(VY(t+e,n,r),t)}function oJ(t){return HR(t[0])+HR(t[1])}function HR(t){return String.fromCodePoint(127397+t.toUpperCase().charCodeAt(0))}var sJ=["value","onChange","options","disabled","readOnly"],uJ=["value","options","className","iconComponent","getIconAspectRatio","arrowComponent","unicodeFlags"];function lJ(t,e){var n=typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(n)return(n=n.call(t)).next.bind(n);if(Array.isArray(t)||(n=cJ(t))||e){n&&(t=n);var r=0;return function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. -In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function cJ(t,e){if(t){if(typeof t=="string")return zR(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);if(n==="Object"&&t.constructor&&(n=t.constructor.name),n==="Map"||n==="Set")return Array.from(t);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return zR(t,e)}}function zR(t,e){(e==null||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n=0)&&Object.prototype.propertyIsEnumerable.call(t,r)&&(n[r]=t[r])}return n}function fJ(t,e){if(t==null)return{};var n={},r=Object.keys(t),i,o;for(o=0;o=0)&&(n[i]=t[i]);return n}function fN(t){var e=t.value,n=t.onChange,r=t.options,i=t.disabled,o=t.readOnly,u=cN(t,sJ),l=T.useCallback(function(d){var h=d.target.value;n(h==="ZZ"?void 0:h)},[n]);return T.useMemo(function(){return hN(r,e)},[r,e]),Ae.createElement("select",Xw({},u,{disabled:i||o,readOnly:o,value:e||"ZZ",onChange:l}),r.map(function(d){var h=d.value,g=d.label,y=d.divider;return Ae.createElement("option",{key:y?"|":h||"ZZ",value:y?"|":h||"ZZ",disabled:!!y,style:y?dJ:void 0},g)}))}fN.propTypes={value:Te.string,onChange:Te.func.isRequired,options:Te.arrayOf(Te.shape({value:Te.string,label:Te.string,divider:Te.bool})).isRequired,disabled:Te.bool,readOnly:Te.bool};var dJ={fontSize:"1px",backgroundColor:"currentColor",color:"inherit"};function dN(t){var e=t.value,n=t.options,r=t.className,i=t.iconComponent;t.getIconAspectRatio;var o=t.arrowComponent,u=o===void 0?hJ:o,l=t.unicodeFlags,d=cN(t,uJ),h=T.useMemo(function(){return hN(n,e)},[n,e]);return Ae.createElement("div",{className:"PhoneInputCountry"},Ae.createElement(fN,Xw({},d,{value:e,options:n,className:Ho("PhoneInputCountrySelect",r)})),h&&(l&&e?Ae.createElement("div",{className:"PhoneInputCountryIconUnicode"},oJ(e)):Ae.createElement(i,{"aria-hidden":!0,country:e,label:h.label,aspectRatio:l?1:void 0})),Ae.createElement(u,null))}dN.propTypes={iconComponent:Te.elementType,arrowComponent:Te.elementType,unicodeFlags:Te.bool};function hJ(){return Ae.createElement("div",{className:"PhoneInputCountrySelectArrow"})}function hN(t,e){for(var n=lJ(t),r;!(r=n()).done;){var i=r.value;if(!i.divider&&pJ(i.value,e))return i}}function pJ(t,e){return t==null?e==null:t===e}var mJ=["country","countryName","flags","flagUrl"];function bx(){return bx=Object.assign?Object.assign.bind():function(t){for(var e=1;e=0)&&Object.prototype.propertyIsEnumerable.call(t,r)&&(n[r]=t[r])}return n}function yJ(t,e){if(t==null)return{};var n={},r=Object.keys(t),i,o;for(o=0;o=0)&&(n[i]=t[i]);return n}function WO(t){var e=t.country,n=t.countryName,r=t.flags,i=t.flagUrl,o=gJ(t,mJ);return r&&r[e]?r[e]({title:n}):Ae.createElement("img",bx({},o,{alt:n,role:n?void 0:"presentation",src:i.replace("{XX}",e).replace("{xx}",e.toLowerCase())}))}WO.propTypes={country:Te.string.isRequired,countryName:Te.string.isRequired,flags:Te.objectOf(Te.elementType),flagUrl:Te.string.isRequired};var vJ=["aspectRatio"],bJ=["title"],wJ=["title"];function Zw(){return Zw=Object.assign?Object.assign.bind():function(t){for(var e=1;e=0)&&Object.prototype.propertyIsEnumerable.call(t,r)&&(n[r]=t[r])}return n}function SJ(t,e){if(t==null)return{};var n={},r=Object.keys(t),i,o;for(o=0;o=0)&&(n[i]=t[i]);return n}function jS(t){var e=t.aspectRatio,n=KO(t,vJ);return e===1?Ae.createElement(mN,n):Ae.createElement(pN,n)}jS.propTypes={title:Te.string.isRequired,aspectRatio:Te.number};function pN(t){var e=t.title,n=KO(t,bJ);return Ae.createElement("svg",Zw({},n,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 75 50"}),Ae.createElement("title",null,e),Ae.createElement("g",{className:"PhoneInputInternationalIconGlobe",stroke:"currentColor",fill:"none",strokeWidth:"2",strokeMiterlimit:"10"},Ae.createElement("path",{strokeLinecap:"round",d:"M47.2,36.1C48.1,36,49,36,50,36c7.4,0,14,1.7,18.5,4.3"}),Ae.createElement("path",{d:"M68.6,9.6C64.2,12.3,57.5,14,50,14c-7.4,0-14-1.7-18.5-4.3"}),Ae.createElement("line",{x1:"26",y1:"25",x2:"74",y2:"25"}),Ae.createElement("line",{x1:"50",y1:"1",x2:"50",y2:"49"}),Ae.createElement("path",{strokeLinecap:"round",d:"M46.3,48.7c1.2,0.2,2.5,0.3,3.7,0.3c13.3,0,24-10.7,24-24S63.3,1,50,1S26,11.7,26,25c0,2,0.3,3.9,0.7,5.8"}),Ae.createElement("path",{strokeLinecap:"round",d:"M46.8,48.2c1,0.6,2.1,0.8,3.2,0.8c6.6,0,12-10.7,12-24S56.6,1,50,1S38,11.7,38,25c0,1.4,0.1,2.7,0.2,4c0,0.1,0,0.2,0,0.2"})),Ae.createElement("path",{className:"PhoneInputInternationalIconPhone",stroke:"none",fill:"currentColor",d:"M12.4,17.9c2.9-2.9,5.4-4.8,0.3-11.2S4.1,5.2,1.3,8.1C-2,11.4,1.1,23.5,13.1,35.6s24.3,15.2,27.5,11.9c2.8-2.8,7.8-6.3,1.4-11.5s-8.3-2.6-11.2,0.3c-2,2-7.2-2.2-11.7-6.7S10.4,19.9,12.4,17.9z"}))}pN.propTypes={title:Te.string.isRequired};function mN(t){var e=t.title,n=KO(t,wJ);return Ae.createElement("svg",Zw({},n,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 50 50"}),Ae.createElement("title",null,e),Ae.createElement("g",{className:"PhoneInputInternationalIconGlobe",stroke:"currentColor",fill:"none",strokeWidth:"2",strokeLinecap:"round"},Ae.createElement("path",{d:"M8.45,13A21.44,21.44,0,1,1,37.08,41.56"}),Ae.createElement("path",{d:"M19.36,35.47a36.9,36.9,0,0,1-2.28-13.24C17.08,10.39,21.88.85,27.8.85s10.72,9.54,10.72,21.38c0,6.48-1.44,12.28-3.71,16.21"}),Ae.createElement("path",{d:"M17.41,33.4A39,39,0,0,1,27.8,32.06c6.62,0,12.55,1.5,16.48,3.86"}),Ae.createElement("path",{d:"M44.29,8.53c-3.93,2.37-9.86,3.88-16.49,3.88S15.25,10.9,11.31,8.54"}),Ae.createElement("line",{x1:"27.8",y1:"0.85",x2:"27.8",y2:"34.61"}),Ae.createElement("line",{x1:"15.2",y1:"22.23",x2:"49.15",y2:"22.23"})),Ae.createElement("path",{className:"PhoneInputInternationalIconPhone",stroke:"transparent",fill:"currentColor",d:"M9.42,26.64c2.22-2.22,4.15-3.59.22-8.49S3.08,17,.93,19.17c-2.49,2.48-.13,11.74,9,20.89s18.41,11.5,20.89,9c2.15-2.15,5.91-4.77,1-8.71s-6.27-2-8.49.22c-1.55,1.55-5.48-1.69-8.86-5.08S7.87,28.19,9.42,26.64Z"}))}mN.propTypes={title:Te.string.isRequired};function CJ(t){if(t.length<2||t[0]!=="+")return!1;for(var e=1;e=48&&n<=57))return!1;e++}return!0}function gN(t){CJ(t)||console.error("[react-phone-number-input] Expected the initial `value` to be a E.164 phone number. Got",t)}function $J(t,e){var n=typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(n)return(n=n.call(t)).next.bind(n);if(Array.isArray(t)||(n=EJ(t))||e){n&&(t=n);var r=0;return function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. -In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function EJ(t,e){if(t){if(typeof t=="string")return VR(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);if(n==="Object"&&t.constructor&&(n=t.constructor.name),n==="Map"||n==="Set")return Array.from(t);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return VR(t,e)}}function VR(t,e){(e==null||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n0))return t}function BS(t,e){return zI(t,e)?!0:(console.error("Country not found: ".concat(t)),!1)}function yN(t,e){return t&&(t=t.filter(function(n){return BS(n,e)}),t.length===0&&(t=void 0)),t}var TJ=["country","label","aspectRatio"];function wx(){return wx=Object.assign?Object.assign.bind():function(t){for(var e=1;e=0)&&Object.prototype.propertyIsEnumerable.call(t,r)&&(n[r]=t[r])}return n}function AJ(t,e){if(t==null)return{};var n={},r=Object.keys(t),i,o;for(o=0;o=0)&&(n[i]=t[i]);return n}function vN(t){var e=t.flags,n=t.flagUrl,r=t.flagComponent,i=t.internationalIcon;function o(u){var l=u.country,d=u.label,h=u.aspectRatio,g=_J(u,TJ),y=i===jS?h:void 0;return Ae.createElement("div",wx({},g,{className:Ho("PhoneInputCountryIcon",{"PhoneInputCountryIcon--square":y===1,"PhoneInputCountryIcon--border":l})}),l?Ae.createElement(r,{country:l,countryName:d,flags:e,flagUrl:n,className:"PhoneInputCountryIconImg"}):Ae.createElement(i,{title:d,aspectRatio:y,className:"PhoneInputCountryIconImg"}))}return o.propTypes={country:Te.string,label:Te.string.isRequired,aspectRatio:Te.number},o}vN({flagUrl:"https://purecatamphetamine.github.io/country-flag-icons/3x2/{XX}.svg",flagComponent:WO,internationalIcon:jS});function RJ(t,e){var n=typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(n)return(n=n.call(t)).next.bind(n);if(Array.isArray(t)||(n=PJ(t))||e){n&&(t=n);var r=0;return function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. -In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function PJ(t,e){if(t){if(typeof t=="string")return GR(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);if(n==="Object"&&t.constructor&&(n=t.constructor.name),n==="Map"||n==="Set")return Array.from(t);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return GR(t,e)}}function GR(t,e){(e==null||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n0&&(d=i()),d}function kJ(t){var e=t.countries,n=t.countryNames,r=t.addInternationalOption,i=t.compareStringsLocales,o=t.compareStrings;o||(o=qJ);var u=e.map(function(l){return{value:l,label:n[l]||l}});return u.sort(function(l,d){return o(l.label,d.label,i)}),r&&u.unshift({label:n.ZZ}),u}function SN(t,e){return UK(t||"",e)}function DJ(t){return t.formatNational().replace(/\D/g,"")}function FJ(t,e){var n=e.prevCountry,r=e.newCountry,i=e.metadata,o=e.useNationalFormat;if(n===r)return t;if(!t)return o?"":r?$l(r,i):"";if(r){if(t[0]==="+"){if(o)return t.indexOf("+"+jf(r,i))===0?HJ(t,r,i):"";if(n){var u=$l(r,i);return t.indexOf(u)===0?t:u}else{var l=$l(r,i);return t.indexOf(l)===0?t:l}}}else if(t[0]!=="+")return Mg(t,n,i)||"";return t}function Mg(t,e,n){if(t){if(t[0]==="+"){if(t==="+")return;var r=new dy(e,n);return r.input(t),r.getNumberValue()}if(e){var i=$N(t,e,n);return"+".concat(jf(e,n)).concat(i||"")}}}function LJ(t,e,n){var r=$N(t,e,n);if(r){var i=r.length-UJ(e,n);if(i>0)return t.slice(0,t.length-i)}return t}function UJ(t,e){return e=new Dr(e),e.selectNumberingPlan(t),e.numberingPlan.possibleLengths()[e.numberingPlan.possibleLengths().length-1]}function CN(t,e){var n=e.country,r=e.countries,i=e.defaultCountry,o=e.latestCountrySelectedByUser,u=e.required,l=e.metadata;if(t==="+")return n;var d=BJ(t,l);if(d)return!r||r.indexOf(d)>=0?d:void 0;if(n){if(Kg(t,n,l)){if(o&&Kg(t,o,l))return o;if(i&&Kg(t,i,l))return i;if(!u)return}else if(!u)return}return n}function jJ(t,e){var n=e.prevPhoneDigits,r=e.country,i=e.defaultCountry,o=e.latestCountrySelectedByUser,u=e.countryRequired,l=e.getAnyCountry,d=e.countries,h=e.international,g=e.limitMaxLength,y=e.countryCallingCodeEditable,w=e.metadata;if(h&&y===!1&&r){var v=$l(r,w);if(t.indexOf(v)!==0){var C,E=t&&t[0]!=="+";return E?(t=v+t,C=Mg(t,r,w)):t=v,{phoneDigits:t,value:C,country:r}}}h===!1&&r&&t&&t[0]==="+"&&(t=WR(t,r,w)),t&&r&&g&&(t=LJ(t,r,w)),t&&t[0]!=="+"&&(!r||h)&&(t="+"+t),!t&&n&&n[0]==="+"&&(h?r=void 0:r=i),t==="+"&&n&&n[0]==="+"&&n.length>1&&(r=void 0);var $;return t&&(t[0]==="+"&&(t==="+"||r&&$l(r,w).indexOf(t)===0)?$=void 0:$=Mg(t,r,w)),$&&(r=CN($,{country:r,countries:d,defaultCountry:i,latestCountrySelectedByUser:o,required:!1,metadata:w}),h===!1&&r&&t&&t[0]==="+"&&(t=WR(t,r,w),$=Mg(t,r,w))),!r&&u&&(r=i||l()),{phoneDigits:t,country:r,value:$}}function WR(t,e,n){if(t.indexOf($l(e,n))===0){var r=new dy(e,n);r.input(t);var i=r.getNumber();return i?i.formatNational().replace(/\D/g,""):""}else return t.replace(/\D/g,"")}function BJ(t,e){var n=new dy(null,e);return n.input(t),n.getCountry()}function qJ(t,e,n){return String.prototype.localeCompare?t.localeCompare(e,n):te?1:0}function HJ(t,e,n){if(e){var r="+"+jf(e,n);if(t.length=0)&&(L=P.country):(L=CN(u,{country:void 0,countries:F,metadata:r}),L||o&&u.indexOf($l(o,r))===0&&(L=o))}var q;if(u){if($){var Y=L?$===L:Kg(u,$,r);Y?L||(L=$):q={latestCountrySelectedByUser:void 0}}}else q={latestCountrySelectedByUser:void 0,hasUserSelectedACountry:void 0};return tw(tw({},q),{},{phoneDigits:O({phoneNumber:P,value:u,defaultCountry:o}),value:u,country:u?L:o})}}function YR(t,e){return t===null&&(t=void 0),e===null&&(e=void 0),t===e}var KJ=["name","disabled","readOnly","autoComplete","style","className","inputRef","inputComponent","numberInputProps","smartCaret","countrySelectComponent","countrySelectProps","containerComponent","containerComponentProps","defaultCountry","countries","countryOptionsOrder","labels","flags","flagComponent","flagUrl","addInternationalOption","internationalIcon","displayInitialValueAsLocalNumber","initialValueFormat","onCountryChange","limitMaxLength","countryCallingCodeEditable","focusInputOnCountrySelection","reset","metadata","international","locales"];function ey(t){"@babel/helpers - typeof";return ey=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},ey(t)}function JR(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),n.push.apply(n,r)}return n}function xN(t){for(var e=1;e=0)&&Object.prototype.propertyIsEnumerable.call(t,r)&&(n[r]=t[r])}return n}function JJ(t,e){if(t==null)return{};var n={},r=Object.keys(t),i,o;for(o=0;o=0)&&(n[i]=t[i]);return n}function QJ(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function QR(t,e){for(var n=0;n=0)&&Object.prototype.propertyIsEnumerable.call(t,r)&&(n[r]=t[r])}return n}function cQ(t,e){if(t==null)return{};var n={},r=Object.keys(t),i,o;for(o=0;o=0)&&(n[i]=t[i]);return n}function AN(t){var e=Ae.forwardRef(function(n,r){var i=n.metadata,o=i===void 0?t:i,u=n.labels,l=u===void 0?sQ:u,d=lQ(n,uQ);return Ae.createElement(_N,Cx({},d,{ref:r,metadata:o,labels:l}))});return e.propTypes={metadata:bN,labels:wN},e}AN();const fQ=AN(yG),Bo=t=>{const{region:e}=$i(),{label:n,getInputRef:r,secureTextEntry:i,Icon:o,onChange:u,value:l,children:d,errorMessage:h,type:g,focused:y=!1,autoFocus:w,...v}=t,[C,E]=T.useState(!1),$=T.useRef(),O=T.useCallback(()=>{var k;(k=$.current)==null||k.focus()},[$.current]);let _=l===void 0?"":l;g==="number"&&(_=+l);const R=k=>{u&&u(g==="number"?+k.target.value:k.target.value)};return N.jsxs(kS,{focused:C,onClick:O,...t,children:[t.type==="phonenumber"?N.jsx(fQ,{country:e,autoFocus:w,value:_,onChange:k=>u&&u(k)}):N.jsx("input",{...v,ref:$,value:_,autoFocus:w,className:Ho("form-control",t.errorMessage&&"is-invalid",t.validMessage&&"is-valid"),type:g||"text",onChange:R,onBlur:()=>E(!1),onFocus:()=>E(!0)}),d]})};var g1;function Is(t,e){if(!{}.hasOwnProperty.call(t,e))throw new TypeError("attempted to use private field on non-instance");return t}var dQ=0;function z1(t){return"__private_"+dQ+++"_"+t}const hQ=t=>{const n=oo()??void 0,[r,i]=T.useState(!1),[o,u]=T.useState();return{...Fr({mutationFn:h=>(i(!1),Bf.Fetch({body:h,headers:t==null?void 0:t.headers},{creatorFn:t==null?void 0:t.creatorFn,qs:t==null?void 0:t.qs,ctx:n,onMessage:t==null?void 0:t.onMessage,overrideUrl:t==null?void 0:t.overrideUrl}).then(g=>(g.done.then(()=>{i(!0)}),u(g.response),g.response.result)))}),isCompleted:r,response:o}};class Bf{}g1=Bf;Bf.URL="/passport/change-password";Bf.NewUrl=t=>so(g1.URL,void 0,t);Bf.Method="post";Bf.Fetch$=async(t,e,n,r)=>io(r??g1.NewUrl(t),{method:g1.Method,...n||{}},e);Bf.Fetch=async(t,{creatorFn:e,qs:n,ctx:r,onMessage:i,overrideUrl:o}={creatorFn:u=>new Op(u)})=>{e=e||(l=>new Op(l));const u=await g1.Fetch$(n,r,t,o);return ao(u,l=>{const d=new _a;return e&&d.setCreator(e),d.inject(l),d},i,t==null?void 0:t.signal)};Bf.Definition={name:"ChangePassword",cliName:"cp",url:"/passport/change-password",method:"post",description:"Change the password for a given passport of the user. User needs to be authenticated in order to be able to change the password for a given account.",in:{fields:[{name:"password",description:"New password meeting the security requirements.",type:"string",tags:{validate:"required"}},{name:"uniqueId",description:"The passport uniqueId (not the email or phone number) which password would be applied to. Don't confuse with value.",type:"string",tags:{validate:"required"}}]},out:{envelope:"GResponse",fields:[{name:"changed",type:"bool"}]}};var $h=z1("password"),Eh=z1("uniqueId"),GC=z1("isJsonAppliable");class xp{get password(){return Is(this,$h)[$h]}set password(e){Is(this,$h)[$h]=String(e)}setPassword(e){return this.password=e,this}get uniqueId(){return Is(this,Eh)[Eh]}set uniqueId(e){Is(this,Eh)[Eh]=String(e)}setUniqueId(e){return this.uniqueId=e,this}constructor(e=void 0){if(Object.defineProperty(this,GC,{value:pQ}),Object.defineProperty(this,$h,{writable:!0,value:""}),Object.defineProperty(this,Eh,{writable:!0,value:""}),e!=null)if(typeof e=="string")this.applyFromObject(JSON.parse(e));else if(Is(this,GC)[GC](e))this.applyFromObject(e);else throw new Error("Instance cannot be created on an unknown value, check the content being passed. got: "+typeof e)}applyFromObject(e={}){const n=e;n.password!==void 0&&(this.password=n.password),n.uniqueId!==void 0&&(this.uniqueId=n.uniqueId)}toJSON(){return{password:Is(this,$h)[$h],uniqueId:Is(this,Eh)[Eh]}}toString(){return JSON.stringify(this)}static get Fields(){return{password:"password",uniqueId:"uniqueId"}}static from(e){return new xp(e)}static with(e){return new xp(e)}copyWith(e){return new xp({...this.toJSON(),...e})}clone(){return new xp(this.toJSON())}}function pQ(t){const e=globalThis,n=typeof e.Buffer<"u"&&typeof e.Buffer.isBuffer=="function"&&e.Buffer.isBuffer(t),r=typeof e.Blob<"u"&&t instanceof e.Blob;return t&&typeof t=="object"&&!Array.isArray(t)&&!n&&!(t instanceof ArrayBuffer)&&!r}var xh=z1("changed"),WC=z1("isJsonAppliable");class Op{get changed(){return Is(this,xh)[xh]}set changed(e){Is(this,xh)[xh]=!!e}setChanged(e){return this.changed=e,this}constructor(e=void 0){if(Object.defineProperty(this,WC,{value:mQ}),Object.defineProperty(this,xh,{writable:!0,value:void 0}),e!=null)if(typeof e=="string")this.applyFromObject(JSON.parse(e));else if(Is(this,WC)[WC](e))this.applyFromObject(e);else throw new Error("Instance cannot be created on an unknown value, check the content being passed. got: "+typeof e)}applyFromObject(e={}){const n=e;n.changed!==void 0&&(this.changed=n.changed)}toJSON(){return{changed:Is(this,xh)[xh]}}toString(){return JSON.stringify(this)}static get Fields(){return{changed:"changed"}}static from(e){return new Op(e)}static with(e){return new Op(e)}copyWith(e){return new Op({...this.toJSON(),...e})}clone(){return new Op(this.toJSON())}}function mQ(t){const e=globalThis,n=typeof e.Buffer<"u"&&typeof e.Buffer.isBuffer=="function"&&e.Buffer.isBuffer(t),r=typeof e.Blob<"u"&&t instanceof e.Blob;return t&&typeof t=="object"&&!Array.isArray(t)&&!n&&!(t instanceof ArrayBuffer)&&!r}const gQ=()=>{const t=Kn($r),{goBack:e,state:n,replace:r,push:i,query:o}=Lr(),u=hQ(),l=o==null?void 0:o.uniqueId,d=()=>{u.mutateAsync(new xp(h.values)).then(g=>{e()})},h=Dl({initialValues:{},onSubmit:d});return T.useEffect(()=>{!l||!h||h.setFieldValue(xp.Fields.uniqueId,l)},[l]),{mutation:u,form:h,submit:d,goBack:e,s:t}},yQ=({})=>{const{mutation:t,form:e,s:n}=gQ();return N.jsxs("div",{className:"signin-form-container",children:[N.jsx("h1",{children:n.changePassword.title}),N.jsx("p",{children:n.changePassword.description}),N.jsx(Wo,{query:t}),N.jsx(vQ,{form:e,mutation:t})]})},vQ=({form:t,mutation:e})=>{const n=Kn($r),{password2:r,password:i}=t.values,o=i!==r||((i==null?void 0:i.length)||0)<6;return N.jsxs("form",{onSubmit:u=>{u.preventDefault(),t.submitForm()},children:[N.jsx(Bo,{type:"password",value:t.values.password,label:n.changePassword.pass1Label,id:"password-input",errorMessage:t.errors.password,onChange:u=>t.setFieldValue("password",u,!1)}),N.jsx(Bo,{type:"password",value:t.values.password2,label:n.changePassword.pass2Label,id:"password-input-2",errorMessage:t.errors.password,onChange:u=>t.setFieldValue("password2",u,!1)}),N.jsx(Uf,{className:"btn btn-primary w-100 d-block mb-2",mutation:e,id:"submit-form",disabled:o,children:n.continue})]})};function bQ(t={}){const{nonce:e,onScriptLoadSuccess:n,onScriptLoadError:r}=t,[i,o]=T.useState(!1),u=T.useRef(n);u.current=n;const l=T.useRef(r);return l.current=r,T.useEffect(()=>{const d=document.createElement("script");return d.src="https://accounts.google.com/gsi/client",d.async=!0,d.defer=!0,d.nonce=e,d.onload=()=>{var h;o(!0),(h=u.current)===null||h===void 0||h.call(u)},d.onerror=()=>{var h;o(!1),(h=l.current)===null||h===void 0||h.call(l)},document.body.appendChild(d),()=>{document.body.removeChild(d)}},[e]),i}const RN=T.createContext(null);function wQ({clientId:t,nonce:e,onScriptLoadSuccess:n,onScriptLoadError:r,children:i}){const o=bQ({nonce:e,onScriptLoadSuccess:n,onScriptLoadError:r}),u=T.useMemo(()=>({clientId:t,scriptLoadedSuccessfully:o}),[t,o]);return Ae.createElement(RN.Provider,{value:u},i)}function SQ(){const t=T.useContext(RN);if(!t)throw new Error("Google OAuth components must be used within GoogleOAuthProvider");return t}function CQ({flow:t="implicit",scope:e="",onSuccess:n,onError:r,onNonOAuthError:i,overrideScope:o,state:u,...l}){const{clientId:d,scriptLoadedSuccessfully:h}=SQ(),g=T.useRef(),y=T.useRef(n);y.current=n;const w=T.useRef(r);w.current=r;const v=T.useRef(i);v.current=i,T.useEffect(()=>{var $,O;if(!h)return;const _=t==="implicit"?"initTokenClient":"initCodeClient",R=(O=($=window==null?void 0:window.google)===null||$===void 0?void 0:$.accounts)===null||O===void 0?void 0:O.oauth2[_]({client_id:d,scope:o?e:`openid profile email ${e}`,callback:k=>{var P,L;if(k.error)return(P=w.current)===null||P===void 0?void 0:P.call(w,k);(L=y.current)===null||L===void 0||L.call(y,k)},error_callback:k=>{var P;(P=v.current)===null||P===void 0||P.call(v,k)},state:u,...l});g.current=R},[d,h,t,e,u]);const C=T.useCallback($=>{var O;return(O=g.current)===null||O===void 0?void 0:O.requestAccessToken($)},[]),E=T.useCallback(()=>{var $;return($=g.current)===null||$===void 0?void 0:$.requestCode()},[]);return t==="implicit"?C:E}const PN=()=>N.jsxs("div",{className:"loader",id:"loader-4",children:[N.jsx("span",{}),N.jsx("span",{}),N.jsx("span",{})]});function $Q(){if(typeof window>"u")return"mac";let t=window==null?void 0:window.navigator.userAgent,e=window==null?void 0:window.navigator.platform,n=["Macintosh","MacIntel","MacPPC","Mac68K"],r=["Win32","Win64","Windows","WinCE"],i=["iPhone","iPad","iPod"],o="mac";return n.indexOf(e)!==-1?o="mac":i.indexOf(e)!==-1?o="ios":r.indexOf(e)!==-1?o="windows":/Android/.test(t)?o="android":!o&&/Linux/.test(e)?o="linux":o="web",o}const Qe=$Q(),Fe={edit:{default:"ios-theme/icons/edit.svg"},add:{default:"ios-theme/icons/add.svg"},cancel:{default:"ios-theme/icons/cancel.svg"},delete:{default:"ios-theme/icons/delete.svg"},entity:{default:"ios-theme/icons/entity.svg"},left:{default:"ios-theme/icons/left.svg"},menu:{default:"ios-theme/icons/menu.svg"},backup:{default:"ios-theme/icons/backup.svg"},right:{default:"ios-theme/icons/right.svg"},settings:{default:"ios-theme/icons/settings.svg"},user:{default:"ios-theme/icons/user.svg"},export:{default:"ios-theme/icons/export.svg"},up:{default:"ios-theme/icons/up.svg"},dataNode:{default:"ios-theme/icons/dnode.svg"},ctrlSheet:{default:"ios-theme/icons/ctrlsheet.svg"},gpiomode:{default:"ios-theme/icons/gpiomode.svg"},gpiostate:{default:"ios-theme/icons/gpiostate.svg"},down:{default:"ios-theme/icons/down.svg"},turnoff:{default:"ios-theme/icons/turnoff.svg"},mqtt:{default:"ios-theme/icons/mqtt.svg"},cart:{default:"ios-theme/icons/cart.svg"},questionBank:{default:"ios-theme/icons/questions.svg"},dashboard:{default:"ios-theme/icons/dashboard.svg"},country:{default:"ios-theme/icons/country.svg"},order:{default:"ios-theme/icons/order.svg"},province:{default:"ios-theme/icons/province.svg"},city:{default:"ios-theme/icons/city.svg"},about:{default:"ios-theme/icons/about.svg"},sms:{default:"ios-theme/icons/sms.svg"},product:{default:"ios-theme/icons/product.svg"},discount:{default:"ios-theme/icons/discount.svg"},tag:{default:"ios-theme/icons/tag.svg"},category:{default:"ios-theme/icons/category.svg"},brand:{default:"ios-theme/icons/brand.svg"},form:{default:"ios-theme/icons/form.svg"}},hy={dashboard:Fe.dashboard[Qe]?Fe.dashboard[Qe]:Fe.dashboard.default,up:Fe.up[Qe]?Fe.up[Qe]:Fe.up.default,questionBank:Fe.questionBank[Qe]?Fe.questionBank[Qe]:Fe.questionBank.default,down:Fe.down[Qe]?Fe.down[Qe]:Fe.down.default,edit:Fe.edit[Qe]?Fe.edit[Qe]:Fe.edit.default,add:Fe.add[Qe]?Fe.add[Qe]:Fe.add.default,cancel:Fe.cancel[Qe]?Fe.cancel[Qe]:Fe.cancel.default,delete:Fe.delete[Qe]?Fe.delete[Qe]:Fe.delete.default,discount:Fe.discount[Qe]?Fe.discount[Qe]:Fe.discount.default,cart:Fe.cart[Qe]?Fe.cart[Qe]:Fe.cart.default,entity:Fe.entity[Qe]?Fe.entity[Qe]:Fe.entity.default,sms:Fe.sms[Qe]?Fe.sms[Qe]:Fe.sms.default,left:Fe.left[Qe]?Fe.left[Qe]:Fe.left.default,brand:Fe.brand[Qe]?Fe.brand[Qe]:Fe.brand.default,menu:Fe.menu[Qe]?Fe.menu[Qe]:Fe.menu.default,right:Fe.right[Qe]?Fe.right[Qe]:Fe.right.default,settings:Fe.settings[Qe]?Fe.settings[Qe]:Fe.settings.default,dataNode:Fe.dataNode[Qe]?Fe.dataNode[Qe]:Fe.dataNode.default,user:Fe.user[Qe]?Fe.user[Qe]:Fe.user.default,city:Fe.city[Qe]?Fe.city[Qe]:Fe.city.default,province:Fe.province[Qe]?Fe.province[Qe]:Fe.province.default,about:Fe.about[Qe]?Fe.about[Qe]:Fe.about.default,turnoff:Fe.turnoff[Qe]?Fe.turnoff[Qe]:Fe.turnoff.default,ctrlSheet:Fe.ctrlSheet[Qe]?Fe.ctrlSheet[Qe]:Fe.ctrlSheet.default,country:Fe.country[Qe]?Fe.country[Qe]:Fe.country.default,export:Fe.export[Qe]?Fe.export[Qe]:Fe.export.default,gpio:Fe.ctrlSheet[Qe]?Fe.ctrlSheet[Qe]:Fe.ctrlSheet.default,order:Fe.order[Qe]?Fe.order[Qe]:Fe.order.default,mqtt:Fe.mqtt[Qe]?Fe.mqtt[Qe]:Fe.mqtt.default,tag:Fe.tag[Qe]?Fe.tag[Qe]:Fe.tag.default,product:Fe.product[Qe]?Fe.product[Qe]:Fe.product.default,category:Fe.category[Qe]?Fe.category[Qe]:Fe.category.default,form:Fe.form[Qe]?Fe.form[Qe]:Fe.form.default,gpiomode:Fe.gpiomode[Qe]?Fe.gpiomode[Qe]:Fe.gpiomode.default,backup:Fe.backup[Qe]?Fe.backup[Qe]:Fe.backup.default,gpiostate:Fe.gpiostate[Qe]?Fe.gpiostate[Qe]:Fe.gpiostate.default};function YO(t){const e=Ci.PUBLIC_URL;return t.startsWith("$")?e+hy[t.substr(1)]:t.startsWith(e)?t:e+t}var y1;function vi(t,e){if(!{}.hasOwnProperty.call(t,e))throw new TypeError("attempted to use private field on non-instance");return t}var EQ=0;function im(t){return"__private_"+EQ+++"_"+t}const xQ=t=>{const e=oo(),n=(t==null?void 0:t.ctx)??e??void 0,[r,i]=T.useState(!1),[o,u]=T.useState();return{...Fr({mutationFn:h=>(i(!1),qf.Fetch({body:h,headers:t==null?void 0:t.headers},{creatorFn:t==null?void 0:t.creatorFn,qs:t==null?void 0:t.qs,ctx:n,onMessage:t==null?void 0:t.onMessage,overrideUrl:t==null?void 0:t.overrideUrl}).then(g=>(g.done.then(()=>{i(!0)}),u(g.response),g.response.result))),...t||{}}),isCompleted:r,response:o}};class qf{}y1=qf;qf.URL="/passport/via-oauth";qf.NewUrl=t=>so(y1.URL,void 0,t);qf.Method="post";qf.Fetch$=async(t,e,n,r)=>io(r??y1.NewUrl(t),{method:y1.Method,...n||{}},e);qf.Fetch=async(t,{creatorFn:e,qs:n,ctx:r,onMessage:i,overrideUrl:o}={creatorFn:u=>new Tp(u)})=>{e=e||(l=>new Tp(l));const u=await y1.Fetch$(n,r,t,o);return ao(u,l=>{const d=new _a;return e&&d.setCreator(e),d.inject(l),d},i,t==null?void 0:t.signal)};qf.Definition={name:"OauthAuthenticate",url:"/passport/via-oauth",method:"post",description:"When a token is got from a oauth service such as google, we send the token here to authenticate the user. To me seems this doesn't need to have 2FA or anything, so we return the session directly, or maybe there needs to be next step.",in:{fields:[{name:"token",description:"The token that Auth2 provider returned to the front-end, which will be used to validate the backend",type:"string"},{name:"service",description:"The service name, such as 'google' which later backend will use to authorize the token and create the user.",type:"string"}]},out:{envelope:"GResponse",fields:[{name:"session",type:"one",target:"UserSessionDto"},{name:"next",description:"The next possible action which is suggested.",type:"slice",primitive:"string"}]}};var Oh=im("token"),Th=im("service"),KC=im("isJsonAppliable");class kg{get token(){return vi(this,Oh)[Oh]}set token(e){vi(this,Oh)[Oh]=String(e)}setToken(e){return this.token=e,this}get service(){return vi(this,Th)[Th]}set service(e){vi(this,Th)[Th]=String(e)}setService(e){return this.service=e,this}constructor(e=void 0){if(Object.defineProperty(this,KC,{value:OQ}),Object.defineProperty(this,Oh,{writable:!0,value:""}),Object.defineProperty(this,Th,{writable:!0,value:""}),e!=null)if(typeof e=="string")this.applyFromObject(JSON.parse(e));else if(vi(this,KC)[KC](e))this.applyFromObject(e);else throw new Error("Instance cannot be created on an unknown value, check the content being passed. got: "+typeof e)}applyFromObject(e={}){const n=e;n.token!==void 0&&(this.token=n.token),n.service!==void 0&&(this.service=n.service)}toJSON(){return{token:vi(this,Oh)[Oh],service:vi(this,Th)[Th]}}toString(){return JSON.stringify(this)}static get Fields(){return{token:"token",service:"service"}}static from(e){return new kg(e)}static with(e){return new kg(e)}copyWith(e){return new kg({...this.toJSON(),...e})}clone(){return new kg(this.toJSON())}}function OQ(t){const e=globalThis,n=typeof e.Buffer<"u"&&typeof e.Buffer.isBuffer=="function"&&e.Buffer.isBuffer(t),r=typeof e.Blob<"u"&&t instanceof e.Blob;return t&&typeof t=="object"&&!Array.isArray(t)&&!n&&!(t instanceof ArrayBuffer)&&!r}var cl=im("session"),_h=im("next"),YC=im("isJsonAppliable"),O0=im("lateInitFields");class Tp{get session(){return vi(this,cl)[cl]}set session(e){e instanceof Nn?vi(this,cl)[cl]=e:vi(this,cl)[cl]=new Nn(e)}setSession(e){return this.session=e,this}get next(){return vi(this,_h)[_h]}set next(e){vi(this,_h)[_h]=e}setNext(e){return this.next=e,this}constructor(e=void 0){if(Object.defineProperty(this,O0,{value:_Q}),Object.defineProperty(this,YC,{value:TQ}),Object.defineProperty(this,cl,{writable:!0,value:void 0}),Object.defineProperty(this,_h,{writable:!0,value:[]}),e==null){vi(this,O0)[O0]();return}if(typeof e=="string")this.applyFromObject(JSON.parse(e));else if(vi(this,YC)[YC](e))this.applyFromObject(e);else throw new Error("Instance cannot be created on an unknown value, check the content being passed. got: "+typeof e)}applyFromObject(e={}){const n=e;n.session!==void 0&&(this.session=n.session),n.next!==void 0&&(this.next=n.next),vi(this,O0)[O0](e)}toJSON(){return{session:vi(this,cl)[cl],next:vi(this,_h)[_h]}}toString(){return JSON.stringify(this)}static get Fields(){return{session$:"session",get session(){return xl("session",Nn.Fields)},next$:"next",get next(){return"next[:i]"}}}static from(e){return new Tp(e)}static with(e){return new Tp(e)}copyWith(e){return new Tp({...this.toJSON(),...e})}clone(){return new Tp(this.toJSON())}}function TQ(t){const e=globalThis,n=typeof e.Buffer<"u"&&typeof e.Buffer.isBuffer=="function"&&e.Buffer.isBuffer(t),r=typeof e.Blob<"u"&&t instanceof e.Blob;return t&&typeof t=="object"&&!Array.isArray(t)&&!n&&!(t instanceof ArrayBuffer)&&!r}function _Q(t={}){const e=t;e.session instanceof Nn||(this.session=new Nn(e.session||{}))}var Za=(t=>(t.Email="email",t.Phone="phone",t.Google="google",t.Facebook="facebook",t))(Za||{});const V1=()=>{const{setSession:t,selectUrw:e,selectedUrw:n}=T.useContext(Sn),{locale:r}=$i(),{replace:i}=Lr();return{onComplete:u=>{var y,w;t(u.data.item.session),window.ReactNativeWebView&&window.ReactNativeWebView.postMessage(JSON.stringify(u.data));const d=new URLSearchParams(window.location.search).get("redirect"),h=sessionStorage.getItem("redirect_temporary");if(!((w=(y=u.data)==null?void 0:y.item.session)==null?void 0:w.token)){alert("Authentication has failed.");return}if(sessionStorage.removeItem("redirect_temporary"),sessionStorage.removeItem("workspace_type_id"),h)window.location.href=h;else if(d){const v=new URL(d);v.searchParams.set("session",JSON.stringify(u.data.item.session)),window.location.href=v.toString()}else{const v="/{locale}/dashboard".replace("{locale}",r||"en");i(v,v)}}}},AQ=t=>{T.useEffect(()=>{const e=new URLSearchParams(window.location.search),n=window.location.hash.indexOf("?"),r=n!==-1?new URLSearchParams(window.location.hash.slice(n)):new URLSearchParams;t.forEach(i=>{const o=e.get(i)||r.get(i);o&&sessionStorage.setItem(i,o)})},[t.join(",")])},RQ=({continueWithResult:t,facebookAppId:e})=>{Kn($r),T.useEffect(()=>{if(window.FB)return;const r=document.createElement("script");r.src="https://connect.facebook.net/en_US/sdk.js",r.async=!0,r.onload=()=>{window.FB.init({appId:e,cookie:!0,xfbml:!1,version:"v19.0"})},document.body.appendChild(r)},[]);const n=()=>{const r=window.FB;if(!r){alert("Facebook SDK not loaded");return}r.login(i=>{var o;console.log("Facebook:",i),(o=i.authResponse)!=null&&o.accessToken?t(i.authResponse.accessToken):alert("Facebook login failed")},{scope:"email,public_profile"})};return N.jsxs("button",{id:"using-facebook",type:"button",onClick:n,children:[N.jsx("img",{className:"button-icon",src:YO("/common/facebook.png")}),"Facebook"]})},PQ=()=>{var g,y;const t=yn(),{locale:e}=$i(),{push:n}=Lr(),r=T.useRef(),i=DI({});AQ(["redirect_temporary","workspace_type_id"]);const[o,u]=T.useState(void 0),l=o?Object.values(o).filter(Boolean).length:void 0,d=(y=(g=i.data)==null?void 0:g.data)==null?void 0:y.item,h=(w,v=!0)=>{switch(w){case Za.Email:n(`/${e}/selfservice/email`,void 0,{canGoBack:v});break;case Za.Phone:n(`/${e}/selfservice/phone`,void 0,{canGoBack:v});break}};return T.useEffect(()=>{if(!d)return;const w={email:d.email,google:d.google,facebook:d.facebook,phone:d.phone,googleOAuthClientKey:d.googleOAuthClientKey,facebookAppId:d.facebookAppId};Object.values(w).filter(Boolean).length===1&&(w.email&&h(Za.Email,!1),w.phone&&h(Za.Phone,!1),w.google&&h(Za.Google,!1),w.facebook&&h(Za.Facebook,!1)),u(w)},[d]),{t,formik:r,onSelect:h,availableOptions:o,passportMethodsQuery:i,isLoadingMethods:i.isLoading,totalAvailableMethods:l}},IQ=()=>{const{onSelect:t,availableOptions:e,totalAvailableMethods:n,isLoadingMethods:r,passportMethodsQuery:i}=PQ(),o=Dl({initialValues:{},onSubmit:()=>{}});return i.isError||i.error?N.jsx("div",{className:"signin-form-container",children:N.jsx(Wo,{query:i})}):n===void 0||r?N.jsx("div",{className:"signin-form-container",children:N.jsx(PN,{})}):n===0?N.jsx("div",{className:"signin-form-container",children:N.jsx(MQ,{})}):N.jsx("div",{className:"signin-form-container",children:e.googleOAuthClientKey?N.jsx(wQ,{clientId:e.googleOAuthClientKey,children:N.jsx(ZR,{availableOptions:e,onSelect:t,form:o})}):N.jsx(ZR,{availableOptions:e,onSelect:t,form:o})})},ZR=({form:t,onSelect:e,availableOptions:n})=>{const{mutateAsync:r}=xQ({}),{setSession:i}=T.useContext(Sn),{locale:o}=$i(),{replace:u}=Lr(),l=(h,g)=>{r(new kg({service:g,token:h})).then(y=>{var w,v,C;i((v=(w=y.data)==null?void 0:w.item)==null?void 0:v.session),window.ReactNativeWebView&&window.ReactNativeWebView.postMessage(JSON.stringify((C=y.data)==null?void 0:C.item));{const E=Ci.DEFAULT_ROUTE.replace("{locale}",o||"en");u(E,E)}}).catch(y=>{alert(y)})},d=Kn($r);return N.jsxs("form",{onSubmit:h=>{h.preventDefault(),t.submitForm()},children:[N.jsx("h1",{children:d.welcomeBack}),N.jsxs("p",{children:[d.welcomeBackDescription," "]}),N.jsxs("div",{role:"group","aria-label":"Login method",className:"flex gap-2 login-option-buttons",children:[n.email?N.jsx("button",{id:"using-email",type:"button",onClick:()=>e(Za.Email),children:d.emailMethod}):null,n.phone?N.jsx("button",{id:"using-phone",type:"button",onClick:()=>e(Za.Phone),children:d.phoneMethod}):null,n.facebook?N.jsx(RQ,{facebookAppId:n.facebookAppId,continueWithResult:h=>l(h,"facebook")}):null,n.google?N.jsx(NQ,{continueWithResult:h=>l(h,"google")}):null]})]})},NQ=({continueWithResult:t})=>{const e=Kn($r),n=CQ({onSuccess:r=>{t(r.access_token)},scope:["https://www.googleapis.com/auth/userinfo.profile"].join(" ")});return N.jsx(N.Fragment,{children:N.jsxs("button",{id:"using-google",type:"button",onClick:()=>n(),children:[N.jsx("img",{className:"button-icon",src:YO("/common/google.png")}),e.google]})})},MQ=()=>{const t=Kn($r);return N.jsxs(N.Fragment,{children:[N.jsx("h1",{children:t.noAuthenticationMethod}),N.jsx("p",{children:t.noAuthenticationMethodDescription})]})};var kQ=["sitekey","onChange","theme","type","tabindex","onExpired","onErrored","size","stoken","grecaptcha","badge","hl","isolated"];function $x(){return $x=Object.assign?Object.assign.bind():function(t){for(var e=1;e=0)&&(n[i]=t[i]);return n}function nw(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function FQ(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,Ex(t,e)}function Ex(t,e){return Ex=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},Ex(t,e)}var qS=(function(t){FQ(e,t);function e(){var r;return r=t.call(this)||this,r.handleExpired=r.handleExpired.bind(nw(r)),r.handleErrored=r.handleErrored.bind(nw(r)),r.handleChange=r.handleChange.bind(nw(r)),r.handleRecaptchaRef=r.handleRecaptchaRef.bind(nw(r)),r}var n=e.prototype;return n.getCaptchaFunction=function(i){return this.props.grecaptcha?this.props.grecaptcha.enterprise?this.props.grecaptcha.enterprise[i]:this.props.grecaptcha[i]:null},n.getValue=function(){var i=this.getCaptchaFunction("getResponse");return i&&this._widgetId!==void 0?i(this._widgetId):null},n.getWidgetId=function(){return this.props.grecaptcha&&this._widgetId!==void 0?this._widgetId:null},n.execute=function(){var i=this.getCaptchaFunction("execute");if(i&&this._widgetId!==void 0)return i(this._widgetId);this._executeRequested=!0},n.executeAsync=function(){var i=this;return new Promise(function(o,u){i.executionResolve=o,i.executionReject=u,i.execute()})},n.reset=function(){var i=this.getCaptchaFunction("reset");i&&this._widgetId!==void 0&&i(this._widgetId)},n.forceReset=function(){var i=this.getCaptchaFunction("reset");i&&i()},n.handleExpired=function(){this.props.onExpired?this.props.onExpired():this.handleChange(null)},n.handleErrored=function(){this.props.onErrored&&this.props.onErrored(),this.executionReject&&(this.executionReject(),delete this.executionResolve,delete this.executionReject)},n.handleChange=function(i){this.props.onChange&&this.props.onChange(i),this.executionResolve&&(this.executionResolve(i),delete this.executionReject,delete this.executionResolve)},n.explicitRender=function(){var i=this.getCaptchaFunction("render");if(i&&this._widgetId===void 0){var o=document.createElement("div");this._widgetId=i(o,{sitekey:this.props.sitekey,callback:this.handleChange,theme:this.props.theme,type:this.props.type,tabindex:this.props.tabindex,"expired-callback":this.handleExpired,"error-callback":this.handleErrored,size:this.props.size,stoken:this.props.stoken,hl:this.props.hl,badge:this.props.badge,isolated:this.props.isolated}),this.captcha.appendChild(o)}this._executeRequested&&this.props.grecaptcha&&this._widgetId!==void 0&&(this._executeRequested=!1,this.execute())},n.componentDidMount=function(){this.explicitRender()},n.componentDidUpdate=function(){this.explicitRender()},n.handleRecaptchaRef=function(i){this.captcha=i},n.render=function(){var i=this.props;i.sitekey,i.onChange,i.theme,i.type,i.tabindex,i.onExpired,i.onErrored,i.size,i.stoken,i.grecaptcha,i.badge,i.hl,i.isolated;var o=DQ(i,kQ);return T.createElement("div",$x({},o,{ref:this.handleRecaptchaRef}))},e})(T.Component);qS.displayName="ReCAPTCHA";qS.propTypes={sitekey:Te.string.isRequired,onChange:Te.func,grecaptcha:Te.object,theme:Te.oneOf(["dark","light"]),type:Te.oneOf(["image","audio"]),tabindex:Te.number,onExpired:Te.func,onErrored:Te.func,size:Te.oneOf(["compact","normal","invisible"]),stoken:Te.string,hl:Te.string,badge:Te.oneOf(["bottomright","bottomleft","inline"]),isolated:Te.bool};qS.defaultProps={onChange:function(){},theme:"light",type:"image",tabindex:0,size:"normal",badge:"bottomright"};function xx(){return xx=Object.assign||function(t){for(var e=1;e=0)&&(n[i]=t[i]);return n}function UQ(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,t.__proto__=e}var Ts={},jQ=0;function BQ(t,e){return e=e||{},function(r){var i=r.displayName||r.name||"Component",o=(function(l){UQ(d,l);function d(g,y){var w;return w=l.call(this,g,y)||this,w.state={},w.__scriptURL="",w}var h=d.prototype;return h.asyncScriptLoaderGetScriptLoaderID=function(){return this.__scriptLoaderID||(this.__scriptLoaderID="async-script-loader-"+jQ++),this.__scriptLoaderID},h.setupScriptURL=function(){return this.__scriptURL=typeof t=="function"?t():t,this.__scriptURL},h.asyncScriptLoaderHandleLoad=function(y){var w=this;this.setState(y,function(){return w.props.asyncScriptOnLoad&&w.props.asyncScriptOnLoad(w.state)})},h.asyncScriptLoaderTriggerOnScriptLoaded=function(){var y=Ts[this.__scriptURL];if(!y||!y.loaded)throw new Error("Script is not loaded.");for(var w in y.observers)y.observers[w](y);delete window[e.callbackName]},h.componentDidMount=function(){var y=this,w=this.setupScriptURL(),v=this.asyncScriptLoaderGetScriptLoaderID(),C=e,E=C.globalName,$=C.callbackName,O=C.scriptId;if(E&&typeof window[E]<"u"&&(Ts[w]={loaded:!0,observers:{}}),Ts[w]){var _=Ts[w];if(_&&(_.loaded||_.errored)){this.asyncScriptLoaderHandleLoad(_);return}_.observers[v]=function(F){return y.asyncScriptLoaderHandleLoad(F)};return}var R={};R[v]=function(F){return y.asyncScriptLoaderHandleLoad(F)},Ts[w]={loaded:!1,observers:R};var k=document.createElement("script");k.src=w,k.async=!0;for(var P in e.attributes)k.setAttribute(P,e.attributes[P]);O&&(k.id=O);var L=function(q){if(Ts[w]){var Y=Ts[w],X=Y.observers;for(var ue in X)q(X[ue])&&delete X[ue]}};$&&typeof window<"u"&&(window[$]=function(){return y.asyncScriptLoaderTriggerOnScriptLoaded()}),k.onload=function(){var F=Ts[w];F&&(F.loaded=!0,L(function(q){return $?!1:(q(F),!0)}))},k.onerror=function(){var F=Ts[w];F&&(F.errored=!0,L(function(q){return q(F),!0}))},document.body.appendChild(k)},h.componentWillUnmount=function(){var y=this.__scriptURL;if(e.removeOnUnmount===!0)for(var w=document.getElementsByTagName("script"),v=0;v-1&&w[v].parentNode&&w[v].parentNode.removeChild(w[v]);var C=Ts[y];C&&(delete C.observers[this.asyncScriptLoaderGetScriptLoaderID()],e.removeOnUnmount===!0&&delete Ts[y])},h.render=function(){var y=e.globalName,w=this.props;w.asyncScriptOnLoad;var v=w.forwardedRef,C=LQ(w,["asyncScriptOnLoad","forwardedRef"]);return y&&typeof window<"u"&&(C[y]=typeof window[y]<"u"?window[y]:void 0),C.ref=v,T.createElement(r,C)},d})(T.Component),u=T.forwardRef(function(l,d){return T.createElement(o,xx({},l,{forwardedRef:d}))});return u.displayName="AsyncScriptLoader("+i+")",u.propTypes={asyncScriptOnLoad:Te.func},zB(u,r)}}var Ox="onloadcallback",qQ="grecaptcha";function Tx(){return typeof window<"u"&&window.recaptchaOptions||{}}function HQ(){var t=Tx(),e=t.useRecaptchaNet?"recaptcha.net":"www.google.com";return t.enterprise?"https://"+e+"/recaptcha/enterprise.js?onload="+Ox+"&render=explicit":"https://"+e+"/recaptcha/api.js?onload="+Ox+"&render=explicit"}const zQ=BQ(HQ,{callbackName:Ox,globalName:qQ,attributes:Tx().nonce?{nonce:Tx().nonce}:{}})(qS),VQ=({sitekey:t,enabled:e,invisible:n})=>{n=n===void 0?!0:n;const[r,i]=T.useState(),[o,u]=T.useState(!1),l=T.createRef(),d=T.useRef("");return T.useEffect(()=>{var y,w;e&&l.current&&((y=l.current)==null||y.execute(),(w=l.current)==null||w.reset())},[e,l.current]),T.useEffect(()=>{setTimeout(()=>{d.current||u(!0)},2e3)},[]),{value:r,Component:()=>!e||!t?null:N.jsx(N.Fragment,{children:N.jsx(zQ,{sitekey:t,size:n&&!o?"invisible":void 0,ref:l,onChange:y=>{i(y),d.current=y}})}),LegalNotice:()=>!n||!e?null:N.jsxs("div",{className:"mt-5 recaptcha-closure",children:["This site is protected by reCAPTCHA and the Google",N.jsxs("a",{target:"_blank",href:"https://policies.google.com/privacy",children:[" ","Privacy Policy"," "]})," ","and",N.jsxs("a",{target:"_blank",href:"https://policies.google.com/terms",children:[" ","Terms of Service"," "]})," ","apply."]})}};var v1,U0,vf,bf,wf,Sf,rw;function wn(t,e){if(!{}.hasOwnProperty.call(t,e))throw new TypeError("attempted to use private field on non-instance");return t}var GQ=0;function jo(t){return"__private_"+GQ+++"_"+t}const WQ=t=>{const n=oo()??void 0,[r,i]=T.useState(!1),[o,u]=T.useState();return{...Fr({mutationFn:h=>(i(!1),Hf.Fetch({body:h,headers:t==null?void 0:t.headers},{creatorFn:t==null?void 0:t.creatorFn,qs:t==null?void 0:t.qs,ctx:n,onMessage:t==null?void 0:t.onMessage,overrideUrl:t==null?void 0:t.overrideUrl}).then(g=>(g.done.then(()=>{i(!0)}),u(g.response),g.response.result)))}),isCompleted:r,response:o}};class Hf{}v1=Hf;Hf.URL="/workspace/passport/check";Hf.NewUrl=t=>so(v1.URL,void 0,t);Hf.Method="post";Hf.Fetch$=async(t,e,n,r)=>io(r??v1.NewUrl(t),{method:v1.Method,...n||{}},e);Hf.Fetch=async(t,{creatorFn:e,qs:n,ctx:r,onMessage:i,overrideUrl:o}={creatorFn:u=>new Uo(u)})=>{e=e||(l=>new Uo(l));const u=await v1.Fetch$(n,r,t,o);return ao(u,l=>{const d=new _a;return e&&d.setCreator(e),d.inject(l),d},i,t==null?void 0:t.signal)};Hf.Definition={name:"CheckClassicPassport",cliName:"ccp",url:"/workspace/passport/check",method:"post",description:"Checks if a classic passport (email, phone) exists or not, used in multi step authentication",in:{fields:[{name:"value",type:"string",tags:{validate:"required"}},{name:"securityToken",description:"This can be the value of ReCaptcha2, ReCaptcha3, or generate security image or voice for verification. Will be used based on the configuration.",type:"string"}]},out:{envelope:"GResponse",fields:[{name:"next",description:"The next possible action which is suggested.",type:"slice",primitive:"string"},{name:"flags",description:"Extra information that can be useful actually when doing onboarding. Make sure sensitive information doesn't go out.",type:"slice",primitive:"string"},{name:"otpInfo",description:"If the endpoint automatically triggers a send otp, then it would be holding that information, Also the otp information can become available.",type:"object?",fields:[{name:"suspendUntil",type:"int64"},{name:"validUntil",type:"int64"},{name:"blockedUntil",type:"int64"},{name:"secondsToUnblock",description:"The amount of time left to unblock for next request",type:"int64"}]}]}};var Ah=jo("value"),Rh=jo("securityToken"),JC=jo("isJsonAppliable");class _p{get value(){return wn(this,Ah)[Ah]}set value(e){wn(this,Ah)[Ah]=String(e)}setValue(e){return this.value=e,this}get securityToken(){return wn(this,Rh)[Rh]}set securityToken(e){wn(this,Rh)[Rh]=String(e)}setSecurityToken(e){return this.securityToken=e,this}constructor(e=void 0){if(Object.defineProperty(this,JC,{value:KQ}),Object.defineProperty(this,Ah,{writable:!0,value:""}),Object.defineProperty(this,Rh,{writable:!0,value:""}),e!=null)if(typeof e=="string")this.applyFromObject(JSON.parse(e));else if(wn(this,JC)[JC](e))this.applyFromObject(e);else throw new Error("Instance cannot be created on an unknown value, check the content being passed. got: "+typeof e)}applyFromObject(e={}){const n=e;n.value!==void 0&&(this.value=n.value),n.securityToken!==void 0&&(this.securityToken=n.securityToken)}toJSON(){return{value:wn(this,Ah)[Ah],securityToken:wn(this,Rh)[Rh]}}toString(){return JSON.stringify(this)}static get Fields(){return{value:"value",securityToken:"securityToken"}}static from(e){return new _p(e)}static with(e){return new _p(e)}copyWith(e){return new _p({...this.toJSON(),...e})}clone(){return new _p(this.toJSON())}}function KQ(t){const e=globalThis,n=typeof e.Buffer<"u"&&typeof e.Buffer.isBuffer=="function"&&e.Buffer.isBuffer(t),r=typeof e.Blob<"u"&&t instanceof e.Blob;return t&&typeof t=="object"&&!Array.isArray(t)&&!n&&!(t instanceof ArrayBuffer)&&!r}var Ph=jo("next"),Ih=jo("flags"),fl=jo("otpInfo"),QC=jo("isJsonAppliable");class Uo{get next(){return wn(this,Ph)[Ph]}set next(e){wn(this,Ph)[Ph]=e}setNext(e){return this.next=e,this}get flags(){return wn(this,Ih)[Ih]}set flags(e){wn(this,Ih)[Ih]=e}setFlags(e){return this.flags=e,this}get otpInfo(){return wn(this,fl)[fl]}set otpInfo(e){e instanceof Uo.OtpInfo?wn(this,fl)[fl]=e:wn(this,fl)[fl]=new Uo.OtpInfo(e)}setOtpInfo(e){return this.otpInfo=e,this}constructor(e=void 0){if(Object.defineProperty(this,QC,{value:YQ}),Object.defineProperty(this,Ph,{writable:!0,value:[]}),Object.defineProperty(this,Ih,{writable:!0,value:[]}),Object.defineProperty(this,fl,{writable:!0,value:void 0}),e!=null)if(typeof e=="string")this.applyFromObject(JSON.parse(e));else if(wn(this,QC)[QC](e))this.applyFromObject(e);else throw new Error("Instance cannot be created on an unknown value, check the content being passed. got: "+typeof e)}applyFromObject(e={}){const n=e;n.next!==void 0&&(this.next=n.next),n.flags!==void 0&&(this.flags=n.flags),n.otpInfo!==void 0&&(this.otpInfo=n.otpInfo)}toJSON(){return{next:wn(this,Ph)[Ph],flags:wn(this,Ih)[Ih],otpInfo:wn(this,fl)[fl]}}toString(){return JSON.stringify(this)}static get Fields(){return{next$:"next",get next(){return"next[:i]"},flags$:"flags",get flags(){return"flags[:i]"},otpInfo$:"otpInfo",get otpInfo(){return xl("otpInfo",Uo.OtpInfo.Fields)}}}static from(e){return new Uo(e)}static with(e){return new Uo(e)}copyWith(e){return new Uo({...this.toJSON(),...e})}clone(){return new Uo(this.toJSON())}}U0=Uo;function YQ(t){const e=globalThis,n=typeof e.Buffer<"u"&&typeof e.Buffer.isBuffer=="function"&&e.Buffer.isBuffer(t),r=typeof e.Blob<"u"&&t instanceof e.Blob;return t&&typeof t=="object"&&!Array.isArray(t)&&!n&&!(t instanceof ArrayBuffer)&&!r}Uo.OtpInfo=(vf=jo("suspendUntil"),bf=jo("validUntil"),wf=jo("blockedUntil"),Sf=jo("secondsToUnblock"),rw=jo("isJsonAppliable"),class{get suspendUntil(){return wn(this,vf)[vf]}set suspendUntil(e){const r=typeof e=="number"?e:Number(e);Number.isNaN(r)||(wn(this,vf)[vf]=r)}setSuspendUntil(e){return this.suspendUntil=e,this}get validUntil(){return wn(this,bf)[bf]}set validUntil(e){const r=typeof e=="number"?e:Number(e);Number.isNaN(r)||(wn(this,bf)[bf]=r)}setValidUntil(e){return this.validUntil=e,this}get blockedUntil(){return wn(this,wf)[wf]}set blockedUntil(e){const r=typeof e=="number"?e:Number(e);Number.isNaN(r)||(wn(this,wf)[wf]=r)}setBlockedUntil(e){return this.blockedUntil=e,this}get secondsToUnblock(){return wn(this,Sf)[Sf]}set secondsToUnblock(e){const r=typeof e=="number"?e:Number(e);Number.isNaN(r)||(wn(this,Sf)[Sf]=r)}setSecondsToUnblock(e){return this.secondsToUnblock=e,this}constructor(e=void 0){if(Object.defineProperty(this,rw,{value:JQ}),Object.defineProperty(this,vf,{writable:!0,value:0}),Object.defineProperty(this,bf,{writable:!0,value:0}),Object.defineProperty(this,wf,{writable:!0,value:0}),Object.defineProperty(this,Sf,{writable:!0,value:0}),e!=null)if(typeof e=="string")this.applyFromObject(JSON.parse(e));else if(wn(this,rw)[rw](e))this.applyFromObject(e);else throw new Error("Instance cannot be created on an unknown value, check the content being passed. got: "+typeof e)}applyFromObject(e={}){const n=e;n.suspendUntil!==void 0&&(this.suspendUntil=n.suspendUntil),n.validUntil!==void 0&&(this.validUntil=n.validUntil),n.blockedUntil!==void 0&&(this.blockedUntil=n.blockedUntil),n.secondsToUnblock!==void 0&&(this.secondsToUnblock=n.secondsToUnblock)}toJSON(){return{suspendUntil:wn(this,vf)[vf],validUntil:wn(this,bf)[bf],blockedUntil:wn(this,wf)[wf],secondsToUnblock:wn(this,Sf)[Sf]}}toString(){return JSON.stringify(this)}static get Fields(){return{suspendUntil:"suspendUntil",validUntil:"validUntil",blockedUntil:"blockedUntil",secondsToUnblock:"secondsToUnblock"}}static from(e){return new U0.OtpInfo(e)}static with(e){return new U0.OtpInfo(e)}copyWith(e){return new U0.OtpInfo({...this.toJSON(),...e})}clone(){return new U0.OtpInfo(this.toJSON())}});function JQ(t){const e=globalThis,n=typeof e.Buffer<"u"&&typeof e.Buffer.isBuffer=="function"&&e.Buffer.isBuffer(t),r=typeof e.Blob<"u"&&t instanceof e.Blob;return t&&typeof t=="object"&&!Array.isArray(t)&&!n&&!(t instanceof ArrayBuffer)&&!r}const QQ=({method:t})=>{var _,R,k;const e=Kn($r),{goBack:n,push:r,state:i}=Lr(),{locale:o}=$i(),u=WQ(),l=(i==null?void 0:i.canGoBack)!==!1;let d=!1,h="";const{data:g}=DI({});g instanceof _a&&g.data.item instanceof Of&&(d=(_=g==null?void 0:g.data)==null?void 0:_.item.enabledRecaptcha2,h=(k=(R=g==null?void 0:g.data)==null?void 0:R.item)==null?void 0:k.recaptcha2ClientKey);const y=P=>{u.mutateAsync(new _p(P)).then(L=>{var Y;const{next:F,flags:q}=(Y=L==null?void 0:L.data)==null?void 0:Y.item;F.includes("otp")&&F.length===1?r(`/${o}/selfservice/otp`,void 0,{value:P.value,type:t}):F.includes("signin-with-password")?r(`/${o}/selfservice/password`,void 0,{value:P.value,next:F,canContinueOnOtp:F==null?void 0:F.includes("otp"),flags:q}):F.includes("create-with-password")&&r(`/${o}/selfservice/complete`,void 0,{value:P.value,type:t,next:F,flags:q})}).catch(L=>{w==null||w.setErrors(fy(L))})},w=Dl({initialValues:{},onSubmit:y});let v=e.continueWithEmail,C=e.continueWithEmailDescription;t==="phone"&&(v=e.continueWithPhone,C=e.continueWithPhoneDescription);const{Component:E,LegalNotice:$,value:O}=VQ({enabled:d,sitekey:h});return T.useEffect(()=>{!d||!O||w.setFieldValue(_p.Fields.securityToken,O)},[O]),{title:v,mutation:u,canGoBack:l,form:w,enabledRecaptcha2:d,recaptcha2ClientKey:h,description:C,Recaptcha:E,LegalNotice:$,s:e,submit:y,goBack:n}};var b1;function _n(t,e){if(!{}.hasOwnProperty.call(t,e))throw new TypeError("attempted to use private field on non-instance");return t}var XQ=0;function Ds(t){return"__private_"+XQ+++"_"+t}const IN=t=>{const n=oo()??void 0,[r,i]=T.useState(!1),[o,u]=T.useState();return{...Fr({mutationFn:h=>(i(!1),zf.Fetch({body:h,headers:t==null?void 0:t.headers},{creatorFn:t==null?void 0:t.creatorFn,qs:t==null?void 0:t.qs,ctx:n,onMessage:t==null?void 0:t.onMessage,overrideUrl:t==null?void 0:t.overrideUrl}).then(g=>(g.done.then(()=>{i(!0)}),u(g.response),g.response.result)))}),isCompleted:r,response:o}};class zf{}b1=zf;zf.URL="/passports/signin/classic";zf.NewUrl=t=>so(b1.URL,void 0,t);zf.Method="post";zf.Fetch$=async(t,e,n,r)=>io(r??b1.NewUrl(t),{method:b1.Method,...n||{}},e);zf.Fetch=async(t,{creatorFn:e,qs:n,ctx:r,onMessage:i,overrideUrl:o}={creatorFn:u=>new Ap(u)})=>{e=e||(l=>new Ap(l));const u=await b1.Fetch$(n,r,t,o);return ao(u,l=>{const d=new _a;return e&&d.setCreator(e),d.inject(l),d},i,t==null?void 0:t.signal)};zf.Definition={name:"ClassicSignin",cliName:"in",url:"/passports/signin/classic",method:"post",description:"Signin publicly to and account using class passports (email, password)",in:{fields:[{name:"value",type:"string",tags:{validate:"required"}},{name:"password",type:"string",tags:{validate:"required"}},{name:"totpCode",description:"Accepts login with totp code. If enabled, first login would return a success response with next[enter-totp] value and ui can understand that user needs to be navigated into the screen other screen.",type:"string"},{name:"sessionSecret",description:"Session secret when logging in to the application requires more steps to complete.",type:"string"}]},out:{envelope:"GResponse",fields:[{name:"session",type:"one",target:"UserSessionDto"},{name:"next",description:"The next possible action which is suggested.",type:"slice",primitive:"string"},{name:"totpUrl",description:"In case the account doesn't have totp, but enforced by installation, this value will contain the link",type:"string"},{name:"sessionSecret",description:"Returns a secret session if the authentication requires more steps.",type:"string"}]}};var Nh=Ds("value"),Mh=Ds("password"),kh=Ds("totpCode"),Dh=Ds("sessionSecret"),XC=Ds("isJsonAppliable");class Ns{get value(){return _n(this,Nh)[Nh]}set value(e){_n(this,Nh)[Nh]=String(e)}setValue(e){return this.value=e,this}get password(){return _n(this,Mh)[Mh]}set password(e){_n(this,Mh)[Mh]=String(e)}setPassword(e){return this.password=e,this}get totpCode(){return _n(this,kh)[kh]}set totpCode(e){_n(this,kh)[kh]=String(e)}setTotpCode(e){return this.totpCode=e,this}get sessionSecret(){return _n(this,Dh)[Dh]}set sessionSecret(e){_n(this,Dh)[Dh]=String(e)}setSessionSecret(e){return this.sessionSecret=e,this}constructor(e=void 0){if(Object.defineProperty(this,XC,{value:ZQ}),Object.defineProperty(this,Nh,{writable:!0,value:""}),Object.defineProperty(this,Mh,{writable:!0,value:""}),Object.defineProperty(this,kh,{writable:!0,value:""}),Object.defineProperty(this,Dh,{writable:!0,value:""}),e!=null)if(typeof e=="string")this.applyFromObject(JSON.parse(e));else if(_n(this,XC)[XC](e))this.applyFromObject(e);else throw new Error("Instance cannot be created on an unknown value, check the content being passed. got: "+typeof e)}applyFromObject(e={}){const n=e;n.value!==void 0&&(this.value=n.value),n.password!==void 0&&(this.password=n.password),n.totpCode!==void 0&&(this.totpCode=n.totpCode),n.sessionSecret!==void 0&&(this.sessionSecret=n.sessionSecret)}toJSON(){return{value:_n(this,Nh)[Nh],password:_n(this,Mh)[Mh],totpCode:_n(this,kh)[kh],sessionSecret:_n(this,Dh)[Dh]}}toString(){return JSON.stringify(this)}static get Fields(){return{value:"value",password:"password",totpCode:"totpCode",sessionSecret:"sessionSecret"}}static from(e){return new Ns(e)}static with(e){return new Ns(e)}copyWith(e){return new Ns({...this.toJSON(),...e})}clone(){return new Ns(this.toJSON())}}function ZQ(t){const e=globalThis,n=typeof e.Buffer<"u"&&typeof e.Buffer.isBuffer=="function"&&e.Buffer.isBuffer(t),r=typeof e.Blob<"u"&&t instanceof e.Blob;return t&&typeof t=="object"&&!Array.isArray(t)&&!n&&!(t instanceof ArrayBuffer)&&!r}var dl=Ds("session"),Fh=Ds("next"),Lh=Ds("totpUrl"),Uh=Ds("sessionSecret"),ZC=Ds("isJsonAppliable"),T0=Ds("lateInitFields");class Ap{get session(){return _n(this,dl)[dl]}set session(e){e instanceof Nn?_n(this,dl)[dl]=e:_n(this,dl)[dl]=new Nn(e)}setSession(e){return this.session=e,this}get next(){return _n(this,Fh)[Fh]}set next(e){_n(this,Fh)[Fh]=e}setNext(e){return this.next=e,this}get totpUrl(){return _n(this,Lh)[Lh]}set totpUrl(e){_n(this,Lh)[Lh]=String(e)}setTotpUrl(e){return this.totpUrl=e,this}get sessionSecret(){return _n(this,Uh)[Uh]}set sessionSecret(e){_n(this,Uh)[Uh]=String(e)}setSessionSecret(e){return this.sessionSecret=e,this}constructor(e=void 0){if(Object.defineProperty(this,T0,{value:tX}),Object.defineProperty(this,ZC,{value:eX}),Object.defineProperty(this,dl,{writable:!0,value:void 0}),Object.defineProperty(this,Fh,{writable:!0,value:[]}),Object.defineProperty(this,Lh,{writable:!0,value:""}),Object.defineProperty(this,Uh,{writable:!0,value:""}),e==null){_n(this,T0)[T0]();return}if(typeof e=="string")this.applyFromObject(JSON.parse(e));else if(_n(this,ZC)[ZC](e))this.applyFromObject(e);else throw new Error("Instance cannot be created on an unknown value, check the content being passed. got: "+typeof e)}applyFromObject(e={}){const n=e;n.session!==void 0&&(this.session=n.session),n.next!==void 0&&(this.next=n.next),n.totpUrl!==void 0&&(this.totpUrl=n.totpUrl),n.sessionSecret!==void 0&&(this.sessionSecret=n.sessionSecret),_n(this,T0)[T0](e)}toJSON(){return{session:_n(this,dl)[dl],next:_n(this,Fh)[Fh],totpUrl:_n(this,Lh)[Lh],sessionSecret:_n(this,Uh)[Uh]}}toString(){return JSON.stringify(this)}static get Fields(){return{session$:"session",get session(){return xl("session",Nn.Fields)},next$:"next",get next(){return"next[:i]"},totpUrl:"totpUrl",sessionSecret:"sessionSecret"}}static from(e){return new Ap(e)}static with(e){return new Ap(e)}copyWith(e){return new Ap({...this.toJSON(),...e})}clone(){return new Ap(this.toJSON())}}function eX(t){const e=globalThis,n=typeof e.Buffer<"u"&&typeof e.Buffer.isBuffer=="function"&&e.Buffer.isBuffer(t),r=typeof e.Blob<"u"&&t instanceof e.Blob;return t&&typeof t=="object"&&!Array.isArray(t)&&!n&&!(t instanceof ArrayBuffer)&&!r}function tX(t={}){const e=t;e.session instanceof Nn||(this.session=new Nn(e.session||{}))}const e6=({method:t})=>{const{description:e,title:n,goBack:r,mutation:i,form:o,canGoBack:u,LegalNotice:l,Recaptcha:d,s:h}=QQ({method:t});return N.jsxs("div",{className:"signin-form-container",children:[N.jsx("h1",{children:n}),N.jsx("p",{children:e}),N.jsx(Wo,{query:i}),N.jsx(rX,{form:o,method:t,mutation:i}),N.jsx(d,{}),u?N.jsx("button",{id:"go-back-button",className:"btn bg-transparent w-100 mt-4",onClick:r,children:h.chooseAnotherMethod}):null,N.jsx(l,{})]})},nX=t=>/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(t),rX=({form:t,mutation:e,method:n})=>{var u,l,d;let r="email";n===Za.Phone&&(r="phonenumber");let i=!((u=t==null?void 0:t.values)!=null&&u.value);Za.Email===n&&(i=!nX((l=t==null?void 0:t.values)==null?void 0:l.value));const o=Kn($r);return N.jsxs("form",{onSubmit:h=>{h.preventDefault(),t.submitForm()},children:[N.jsx(Bo,{autoFocus:!0,type:r,id:"value-input",dir:"ltr",value:(d=t==null?void 0:t.values)==null?void 0:d.value,errorMessage:t==null?void 0:t.errors.value,onChange:h=>t.setFieldValue(Ns.Fields.value,h,!1)}),N.jsx(Uf,{className:"btn btn-primary w-100 d-block mb-2",mutation:e,id:"submit-form",disabled:i,children:o.continue})]})};var iX=Object.defineProperty,tS=Object.getOwnPropertySymbols,NN=Object.prototype.hasOwnProperty,MN=Object.prototype.propertyIsEnumerable,t6=(t,e,n)=>e in t?iX(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,_x=(t,e)=>{for(var n in e||(e={}))NN.call(e,n)&&t6(t,n,e[n]);if(tS)for(var n of tS(e))MN.call(e,n)&&t6(t,n,e[n]);return t},Ax=(t,e)=>{var n={};for(var r in t)NN.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&tS)for(var r of tS(t))e.indexOf(r)<0&&MN.call(t,r)&&(n[r]=t[r]);return n};/** + flat mode`,widgets:"ویدجت ها"},widgets:{noItems:"هیچ ویدجتی در این صفحه وجود ندارد."},wokspaces:{body:"بدن",cascadeNotificationConfig:"پیکربندی اعلان آبشار در فضاهای کاری فرعی",cascadeNotificationConfigHint:"با بررسی این مورد، تمام فضاهای کاری بعدی از این ارائه دهنده ایمیل برای ارسال ایمیل استفاده خواهند کرد. برای محصولاتی که به‌عنوان سرویس آنلاین اجرا می‌شوند، معمولاً می‌خواهید که فضای کاری والد سرور ایمیل را پیکربندی کند. شما ممکن است علامت این را در محصولات بزرگ‌تر که به صورت جهانی اجرا می‌شوند، بردارید و هر فضای کاری باید فضاهای فرعی و پیکربندی ایمیل خود را داشته باشد.",config:"تنظیم تیم",configurateWorkspaceNotification:"سرویس های اطلاع رسانی را پیکربندی کنید",confirmEmailSender:"ثبت نام کاربر ایمیل حساب را تایید کنید",createNewWorkspace:"فضای کاری جدید",customizedTemplate:"ویرایش قالب",disablePublicSignup:"غیر فعال کردن ثبت نام ها",disablePublicSignupHint:"با انتخاب این گزینه هیچ کس نمی تواند به این تیم یا زیر مجموعه های این تیم با فرم ثبت نام آنلاین به صورت خودکار عضو شود.",editWorkspae:"ویرایش فضای کاری",emailSendingConfig:"تنظیمات ارسال ایمیل",emailSendingConfigHint:"نحوه ارسال ایمیل ها و قالب های آنها و ارسال کننده ها را کنترل کنید.",emailSendingConfiguration:"پیکربندی ارسال ایمیل",emailSendingConfigurationHint:"نحوه ارسال ایمیل های سیستمی را کنترل کنید، پیام را سفارشی کنید و غیره.",forceEmailConfigToSubWorkspaces:"استفاده از این تنظیمات برای تیم های زیر مجموعه اجباری باشد",forceEmailConfigToSubWorkspacesHint:"با انتخاب این گزینه، همه تیم های زیر مجموعه باید از همین قالب ها برای ارسال ایمیل استفاده کنند. اطلاعات مختص به این تیم را در این قالب ها قرار ندهید.",forceSubWorkspaceUseConfig:"فضاهای کاری فرعی را مجبور کنید از این پیکربندی ارائه دهنده استفاده کنند",forgetPasswordSender:"دستورالعمل های رمز عبور را فراموش کنید",generalMailProvider:"سرویس اصلی ارسال ایمیل",invite:{createInvitation:"ایجاد دعوت نامه",editInvitation:"ویرایش دعوت نامه",email:"آدرس ایمیل",emailHint:"آدرس ایمیل دعوت کننده، آنها پیوند را با استفاده از این ایمیل دریافت خواهند کرد",firstName:"نام کوچک",firstNameHint:"نام دعوت شده را بنویسید",forcePassport:"کاربر را مجبور کنید فقط با ایمیل یا شماره تلفن تعریف شده ثبت نام کند یا بپیوندد",lastName:"نام خانوادگی",lastNameHint:"نام خانوادگی دعوت شده را بنویسید",name:"نام",phoneNumber:"شماره تلفن",phoneNumberHint:"شماره تلفن دعوت شوندگان، اگر شماره آنها را نیز ارائه دهید، از طریق پیامک دعوتنامه دریافت خواهند کرد",role:"نقش",roleHint:"نقش(هایی) را که می خواهید به کاربر هنگام پیوستن به فضای کاری بدهید، انتخاب کنید. این را می توان بعدا نیز تغییر داد.",roleName:"نام نقش"},inviteToWorkspace:"دعوت به فضای کاری",joinKeyWorkspace:"فضای کار",joinKeyWorkspaceHint:"فضای کاری که برای عموم در دسترس خواهد بود",mailServerConfiguration:"پیکربندی سرور ایمیل",name:"نام",notification:{dialogTitle:"قالب نامه را ویرایش کنید"},publicSignup:"ثبت نام آنلاین و عمومی",publicSignupHint:"این نرم افزار به شما اجازه کنترل نحوه ارسال ایمیل و پیامک، و همچنین نحوه عضو گیری آنلاین را میدهد. در این قسمت میتوانید عضو شدن افراد و ساختن تیم های جدید را کنترل کنید",resetToDefault:"تنظیم مجدد به حالت پیش فرض",role:"نقش",roleHint:"نقش",sender:"فرستنده",sidetitle:"فضاهای کاری",slug:"اسلاگ",title:"عنوان",type:"تایپ کنید",workspaceName:"نام فضای کاری",workspaceNameHint:"نام فضای کاری را وارد کنید",workspaceTypeSlug:"آدرس اسلاگ",workspaceTypeSlugHint:"آدرسی که به صورت عمومی در دسترس خواهد بود و وقتی کسی از این طریق ثبت نام کند رول مشخصی دریافت میکند.",workspaceTypeTitle:"عنوان",workspaceTypeTitleHint:"عنوان ورک اسپیس"}},xR={en:pN,fa:RG};function yn(){const{locale:t}=xi();return!t||!xR[t]?pN:xR[t]}function OR(t){let e=(t||"").replaceAll(/fbtusid_____(.*)_____/g,$i.REMOTE_SERVICE+"files/$1");return e=(e||"").replaceAll(/directasset_____(.*)_____/g,$i.REMOTE_SERVICE+"$1"),e}function PG(){return{compiler:"unknown"}}function IG(){return{directPath:n=>!(n!=null&&n.diskPath)&&(n!=null&&n.uniqueId)?OR(n.uniqueId):`${$i.REMOTE_SERVICE}files-inline/${n==null?void 0:n.diskPath}`,downloadPath:n=>!(n!=null&&n.diskPath)&&(n!=null&&n.uniqueId)?OR(n.uniqueId):`${$i.REMOTE_SERVICE}files/${n==null?void 0:n.diskPath}`}}const o3=({children:t,isActive:e,skip:n,activeClassName:r,inActiveClassName:i,...o})=>{var y;const u=Br(),{locale:l}=xi(),d=o.locale||l||"en",{compiler:h}=PG();let g=(o==null?void 0:o.href)||(u==null?void 0:u.asPath)||"";return typeof g=="string"&&(g!=null&&g.indexOf)&&g.indexOf("http")===0&&(n=!0),typeof g=="string"&&d&&!n&&!g.startsWith(".")&&(g=g?`/${l}`+g:(y=u.pathname)==null?void 0:y.replace("[locale]",d)),e&&(o.className=`${o.className||""} ${r||"active"}`),!e&&i&&(o.className=`${o.className||""} ${i}`),N.jsx(_G,{...o,href:g,compiler:h,children:t})};function NG(){const{session:t,checked:e}=T.useContext(En),[n,r]=T.useState(!1),i=e&&!t,[o,u]=T.useState(!1);return T.useEffect(()=>{e&&t&&(u(!0),setTimeout(()=>{r(!0)},500))},[e,t]),{session:t,checked:e,needsAuthentication:i,loadComplete:n,setLoadComplete:r,isFading:o}}const s3=({label:t,getInputRef:e,displayValue:n,Icon:r,children:i,errorMessage:o,validMessage:u,value:l,hint:d,onClick:h,onChange:g,className:y,focused:w=!1,hasAnimation:b})=>N.jsxs("div",{style:{position:"relative"},className:Go("mb-3",y),children:[t&&N.jsx("label",{className:"form-label",children:t}),i,N.jsx("div",{className:"form-text",children:d}),N.jsx("div",{className:"invalid-feedback",children:o}),N.jsx("div",{className:"valid-feedback",children:u})]}),Kf=t=>{const{placeholder:e,label:n,getInputRef:r,secureTextEntry:i,Icon:o,isSubmitting:u,errorMessage:l,onChange:d,value:h,disabled:g,type:y,focused:w=!1,className:b,mutation:C,...E}=t,$=C==null?void 0:C.isLoading;return N.jsx("button",{onClick:t.onClick,type:"submit",disabled:g||$,className:Go("btn mb-3",`btn-${y||"primary"}`,b),...t,children:t.children||t.label})};function MG(t,e,n={}){var r,i,o,u,l,d,h,g,y,w;if(e.isError){if(((r=e.error)==null?void 0:r.status)===404)return t.notfound+"("+n.remote+")";if(e.error.message==="Failed to fetch")return t.networkError+"("+n.remote+")";if((o=(i=e.error)==null?void 0:i.error)!=null&&o.messageTranslated)return(l=(u=e.error)==null?void 0:u.error)==null?void 0:l.messageTranslated;if((h=(d=e.error)==null?void 0:d.error)!=null&&h.message)return(y=(g=e.error)==null?void 0:g.error)==null?void 0:y.message;let b=(w=e.error)==null?void 0:w.toString();return(b+"").includes("object Object")&&(b="There is an unknown error while getting information, please contact your software provider if issue persists."),b}return null}function Jo({query:t,children:e}){var h,g,y,w;const n=yn(),{options:r,setOverrideRemoteUrl:i,overrideRemoteUrl:o}=T.useContext(En);let u=!1,l="80";try{if(r!=null&&r.prefix){const b=new URL(r==null?void 0:r.prefix);l=b.port||(b.protocol==="https:"?"443":"80"),u=(location.host.includes("192.168")||location.host.includes("127.0"))&&((g=(h=t.error)==null?void 0:h.message)==null?void 0:g.includes("Failed to fetch"))}}catch{}const d=()=>{i("http://"+location.hostname+":"+l+"/")};return t?N.jsxs(N.Fragment,{children:[t.isError&&N.jsxs("div",{className:"basic-error-box fadein",children:[MG(n,t,{remote:r.prefix})||"",u&&N.jsx("button",{className:"btn btn-sm btn-secondary",onClick:d,children:"Auto-reroute"}),o&&N.jsx("button",{className:"btn btn-sm btn-secondary",onClick:()=>i(void 0),children:"Reset"}),N.jsx("ul",{children:(((w=(y=t.error)==null?void 0:y.error)==null?void 0:w.errors)||[]).map(b=>N.jsxs("li",{children:[b.messageTranslated||b.message," (",b.location,")"]},b.location))}),t.refetch&&N.jsx(Kf,{onClick:t.refetch,children:"Retry"})]}),!t.isError||t.isPreviousData?e:null]}):null}const kG=t=>{const{children:e,forceActive:n,...r}=t,{locale:i,asPath:o}=xi(),u=T.Children.only(e),l=o===`/${i}`+r.href||o+"/"==`/${i}`+r.href||n;return t.disabled?N.jsx("span",{className:"disabled",children:u}):N.jsx(o3,{...r,isActive:l,children:u})};function Kn(t){const{locale:e}=xi();return!e||e==="en"?t:t["$"+e]?t["$"+e]:t}const DG={setupTotpDescription:'In order to complete account registeration, you need to scan the following code using "Microsoft authenticator" or "Google Authenticator". After that, you need to enter the 6 digit code from the app here.',welcomeBackDescription:"Select any option to continue to access your account.",google:"Google",selectWorkspace:"You have multiple workspaces associated with your account. Select one to continue.",completeYourAccount:"Complete your account",completeYourAccountDescription:"Complete the information below to complete your signup",registerationNotPossibleLine1:"In this project there are no workspace types that can be used publicly to create account.",enterPassword:"Enter Password",welcomeBack:"Welcome back",emailMethod:"Email",phoneMethod:"Phone number",noAuthenticationMethod:"Authentication Currently Unavailable",firstName:"First name",registerationNotPossible:"Registeration not possible.",setupDualFactor:"Setup Dual Factor",cancelStep:"Cancel and try another way.",enterOtp:"Enter OTP",skipTotpInfo:"You can setup this any time later, by visiting your account security section.",continueWithEmailDescription:"Enter your email address to continue.",enterOtpDescription:"We have sent you an one time password, please enter to continue.",continueWithEmail:"Continue with Email",continueWithPhone:"Continue with Phone",registerationNotPossibleLine2:"Contact the service administrator to create your account for you.",useOneTimePassword:"Use one time password instead",changePassword:{pass1Label:"Password",pass2Label:"Repeat password",submit:"Change Password",title:"Change password",description:"In order to change your password, enter new password twice same in the fields"},continueWithPhoneDescription:"Enter your phone number to continue.",lastName:"Last name",password:"Password",continue:"Continue",anotherAccount:"Choose another account",noAuthenticationMethodDescription:"Sign-in and registration are not available in your region at this time. If you believe this is an error or need access, please contact the administrator.",home:{title:"Account & Profile",description:"Manage your account, emails, passwords and more",passports:"Passports",passportsTitle:"Passports",passportsDescription:"View emails, phone numbers associated with your account."},enterTotp:"Enter Totp Code",enterTotpDescription:"Open your authenticator app and enter the 6 digits.",setupTotp:"Setup Dual Factor",skipTotpButton:"Skip for now",userPassports:{title:"Passports",description:"You can see a list of passports that you can use to authenticate into the system here.",add:"Add new passport",remove:"Remove passport"},selectWorkspaceTitle:"Select workspace",chooseAnotherMethod:"Choose another method",enterPasswordDescription:"Enter your password to continue authorizing your account."},FG={registerationNotPossibleLine2:"Skontaktuj się z administratorem usługi, aby utworzył konto dla Ciebie.",chooseAnotherMethod:"Wybierz inną metodę",continue:"Kontynuuj",continueWithPhone:"Kontynuuj za pomocą numeru telefonu",enterPassword:"Wprowadź hasło",noAuthenticationMethod:"Uwierzytelnianie obecnie niedostępne",completeYourAccountDescription:"Uzupełnij poniższe informacje, aby zakończyć rejestrację",registerationNotPossible:"Rejestracja niemożliwa.",selectWorkspace:"Masz wiele przestrzeni roboczych powiązanych z Twoim kontem. Wybierz jedną, aby kontynuować.",welcomeBack:"Witamy ponownie",enterOtp:"Wprowadź jednorazowy kod",enterPasswordDescription:"Wprowadź swoje hasło, aby kontynuować autoryzację konta.",userPassports:{add:"Dodaj nowy paszport",description:"Tutaj możesz zobaczyć listę paszportów, które możesz wykorzystać do uwierzytelniania w systemie.",remove:"Usuń paszport",title:"Paszporty"},registerationNotPossibleLine1:"W tym projekcie nie ma dostępnych typów przestrzeni roboczych do publicznego tworzenia konta.",cancelStep:"Anuluj i spróbuj innej metody.",continueWithEmail:"Kontynuuj za pomocą e-maila",continueWithPhoneDescription:"Wprowadź swój numer telefonu, aby kontynuować.",emailMethod:"E-mail",enterTotp:"Wprowadź kod TOTP",noAuthenticationMethodDescription:"Logowanie i rejestracja są obecnie niedostępne w Twoim regionie. Jeśli uważasz, że to błąd lub potrzebujesz dostępu, skontaktuj się z administratorem.",password:"Hasło",anotherAccount:"Wybierz inne konto",enterTotpDescription:"Otwórz aplikację uwierzytelniającą i wprowadź 6-cyfrowy kod.",firstName:"Imię",phoneMethod:"Numer telefonu",setupDualFactor:"Skonfiguruj uwierzytelnianie dwuskładnikowe",setupTotp:"Skonfiguruj uwierzytelnianie dwuskładnikowe",skipTotpInfo:"Możesz skonfigurować to później, odwiedzając sekcję bezpieczeństwa konta.",welcomeBackDescription:"Wybierz dowolną opcję, aby kontynuować dostęp do swojego konta.",changePassword:{pass1Label:"Hasło",pass2Label:"Powtórz hasło",submit:"Zmień hasło",title:"Zmień hasło",description:"Aby zmienić hasło, wprowadź nowe hasło dwukrotnie w polach poniżej"},lastName:"Nazwisko",useOneTimePassword:"Użyj jednorazowego hasła zamiast tego",completeYourAccount:"Uzupełnij swoje konto",continueWithEmailDescription:"Wprowadź swój adres e-mail, aby kontynuować.",enterOtpDescription:"Wysłaliśmy jednorazowy kod, wprowadź go, aby kontynuować.",google:"Google",home:{description:"Zarządzaj swoim kontem, e-mailami, hasłami i innymi",passports:"Paszporty",passportsDescription:"Zobacz e-maile i numery telefonów powiązane z Twoim kontem.",passportsTitle:"Paszporty",title:"Konto i profil"},selectWorkspaceTitle:"Wybierz przestrzeń roboczą",setupTotpDescription:"Aby zakończyć rejestrację konta, zeskanuj poniższy kod za pomocą aplikacji „Microsoft Authenticator” lub „Google Authenticator”. Następnie wprowadź tutaj 6-cyfrowy kod z aplikacji.",skipTotpButton:"Pomiń na razie"},xr={...DG,$pl:FG};var M1;function to(t,e){if(!{}.hasOwnProperty.call(t,e))throw new TypeError("attempted to use private field on non-instance");return t}var LG=0;function pb(t){return"__private_"+LG+++"_"+t}const UG=t=>{const e=Ma(),n=(t==null?void 0:t.ctx)??e??void 0,[r,i]=T.useState(!1),[o,u]=T.useState(),l=()=>(i(!1),Pl.Fetch({headers:t==null?void 0:t.headers},{creatorFn:t==null?void 0:t.creatorFn,qs:t==null?void 0:t.qs,ctx:n,onMessage:t==null?void 0:t.onMessage,overrideUrl:t==null?void 0:t.overrideUrl}).then(h=>(h.done.then(()=>{i(!0)}),u(h.response),h.response.result)));return{...Yo({queryKey:[Pl.NewUrl(t==null?void 0:t.qs)],queryFn:l,...t||{}}),isCompleted:r,response:o}};class Pl{}M1=Pl;Pl.URL="/user/passports";Pl.NewUrl=t=>ma(M1.URL,void 0,t);Pl.Method="get";Pl.Fetch$=async(t,e,n,r)=>ha(r??M1.NewUrl(t),{method:M1.Method,...n||{}},e);Pl.Fetch=async(t,{creatorFn:e,qs:n,ctx:r,onMessage:i,overrideUrl:o}={creatorFn:u=>new zp(u)})=>{e=e||(l=>new zp(l));const u=await M1.Fetch$(n,r,t,o);return pa(u,l=>{const d=new Ui;return e&&d.setCreator(e),d.inject(l),d},i,t==null?void 0:t.signal)};Pl.Definition={name:"UserPassports",url:"/user/passports",method:"get",description:"Returns list of passports belongs to an specific user.",out:{envelope:"GResponse",fields:[{name:"value",description:"The passport value, such as email address or phone number",type:"string"},{name:"uniqueId",description:"Unique identifier of the passport to operate some action on top of it",type:"string"},{name:"type",description:"The type of the passport, such as email, phone number",type:"string"},{name:"totpConfirmed",description:"Regardless of the secret, user needs to confirm his secret. There is an extra action to confirm user totp, could be used after signup or prior to login.",type:"bool"}]}};var Ah=pb("value"),Rh=pb("uniqueId"),Ph=pb("type"),Ih=pb("totpConfirmed"),c$=pb("isJsonAppliable");class zp{get value(){return to(this,Ah)[Ah]}set value(e){to(this,Ah)[Ah]=String(e)}setValue(e){return this.value=e,this}get uniqueId(){return to(this,Rh)[Rh]}set uniqueId(e){to(this,Rh)[Rh]=String(e)}setUniqueId(e){return this.uniqueId=e,this}get type(){return to(this,Ph)[Ph]}set type(e){to(this,Ph)[Ph]=String(e)}setType(e){return this.type=e,this}get totpConfirmed(){return to(this,Ih)[Ih]}set totpConfirmed(e){to(this,Ih)[Ih]=!!e}setTotpConfirmed(e){return this.totpConfirmed=e,this}constructor(e=void 0){if(Object.defineProperty(this,c$,{value:BG}),Object.defineProperty(this,Ah,{writable:!0,value:""}),Object.defineProperty(this,Rh,{writable:!0,value:""}),Object.defineProperty(this,Ph,{writable:!0,value:""}),Object.defineProperty(this,Ih,{writable:!0,value:void 0}),e!=null)if(typeof e=="string")this.applyFromObject(JSON.parse(e));else if(to(this,c$)[c$](e))this.applyFromObject(e);else throw new Error("Instance cannot be created on an unknown value, check the content being passed. got: "+typeof e)}applyFromObject(e={}){const n=e;n.value!==void 0&&(this.value=n.value),n.uniqueId!==void 0&&(this.uniqueId=n.uniqueId),n.type!==void 0&&(this.type=n.type),n.totpConfirmed!==void 0&&(this.totpConfirmed=n.totpConfirmed)}toJSON(){return{value:to(this,Ah)[Ah],uniqueId:to(this,Rh)[Rh],type:to(this,Ph)[Ph],totpConfirmed:to(this,Ih)[Ih]}}toString(){return JSON.stringify(this)}static get Fields(){return{value:"value",uniqueId:"uniqueId",type:"type",totpConfirmed:"totpConfirmed"}}static from(e){return new zp(e)}static with(e){return new zp(e)}copyWith(e){return new zp({...this.toJSON(),...e})}clone(){return new zp(this.toJSON())}}function BG(t){const e=globalThis,n=typeof e.Buffer<"u"&&typeof e.Buffer.isBuffer=="function"&&e.Buffer.isBuffer(t),r=typeof e.Blob<"u"&&t instanceof e.Blob;return t&&typeof t=="object"&&!Array.isArray(t)&&!n&&!(t instanceof ArrayBuffer)&&!r}const jG=()=>{const t=Kn(xr),{goBack:e}=Br(),n=UG({}),{signout:r}=T.useContext(En);return{goBack:e,signout:r,query:n,s:t}},qG=({})=>{var i,o;const{query:t,s:e,signout:n}=jG(),r=((o=(i=t==null?void 0:t.data)==null?void 0:i.data)==null?void 0:o.items)||[];return N.jsxs("div",{className:"signin-form-container",children:[N.jsx("h1",{children:e.userPassports.title}),N.jsx("p",{children:e.userPassports.description}),N.jsx(Jo,{query:t}),N.jsx(HG,{passports:r}),N.jsx("button",{className:"btn btn-danger mt-3 w-100",onClick:n,children:"Signout"})]})},HG=({passports:t})=>{const e=Kn(xr);return N.jsx("div",{className:"d-flex ",children:t.map(n=>N.jsxs("div",{className:"card p-3 w-100",children:[N.jsx("h3",{className:"card-title",children:n.type.toUpperCase()}),N.jsx("p",{className:"card-text",children:n.value}),N.jsxs("p",{className:"text-muted",children:["TOTP: ",n.totpConfirmed?"Yes":"No"]}),N.jsx(kG,{href:`../change-password/${n.uniqueId}`,children:N.jsx("button",{className:"btn btn-primary",children:e.changePassword.submit})})]},n.uniqueId))})},zG={version:4,country_calling_codes:{1:["US","AG","AI","AS","BB","BM","BS","CA","DM","DO","GD","GU","JM","KN","KY","LC","MP","MS","PR","SX","TC","TT","VC","VG","VI"],7:["RU","KZ"],20:["EG"],27:["ZA"],30:["GR"],31:["NL"],32:["BE"],33:["FR"],34:["ES"],36:["HU"],39:["IT","VA"],40:["RO"],41:["CH"],43:["AT"],44:["GB","GG","IM","JE"],45:["DK"],46:["SE"],47:["NO","SJ"],48:["PL"],49:["DE"],51:["PE"],52:["MX"],53:["CU"],54:["AR"],55:["BR"],56:["CL"],57:["CO"],58:["VE"],60:["MY"],61:["AU","CC","CX"],62:["ID"],63:["PH"],64:["NZ"],65:["SG"],66:["TH"],81:["JP"],82:["KR"],84:["VN"],86:["CN"],90:["TR"],91:["IN"],92:["PK"],93:["AF"],94:["LK"],95:["MM"],98:["IR"],211:["SS"],212:["MA","EH"],213:["DZ"],216:["TN"],218:["LY"],220:["GM"],221:["SN"],222:["MR"],223:["ML"],224:["GN"],225:["CI"],226:["BF"],227:["NE"],228:["TG"],229:["BJ"],230:["MU"],231:["LR"],232:["SL"],233:["GH"],234:["NG"],235:["TD"],236:["CF"],237:["CM"],238:["CV"],239:["ST"],240:["GQ"],241:["GA"],242:["CG"],243:["CD"],244:["AO"],245:["GW"],246:["IO"],247:["AC"],248:["SC"],249:["SD"],250:["RW"],251:["ET"],252:["SO"],253:["DJ"],254:["KE"],255:["TZ"],256:["UG"],257:["BI"],258:["MZ"],260:["ZM"],261:["MG"],262:["RE","YT"],263:["ZW"],264:["NA"],265:["MW"],266:["LS"],267:["BW"],268:["SZ"],269:["KM"],290:["SH","TA"],291:["ER"],297:["AW"],298:["FO"],299:["GL"],350:["GI"],351:["PT"],352:["LU"],353:["IE"],354:["IS"],355:["AL"],356:["MT"],357:["CY"],358:["FI","AX"],359:["BG"],370:["LT"],371:["LV"],372:["EE"],373:["MD"],374:["AM"],375:["BY"],376:["AD"],377:["MC"],378:["SM"],380:["UA"],381:["RS"],382:["ME"],383:["XK"],385:["HR"],386:["SI"],387:["BA"],389:["MK"],420:["CZ"],421:["SK"],423:["LI"],500:["FK"],501:["BZ"],502:["GT"],503:["SV"],504:["HN"],505:["NI"],506:["CR"],507:["PA"],508:["PM"],509:["HT"],590:["GP","BL","MF"],591:["BO"],592:["GY"],593:["EC"],594:["GF"],595:["PY"],596:["MQ"],597:["SR"],598:["UY"],599:["CW","BQ"],670:["TL"],672:["NF"],673:["BN"],674:["NR"],675:["PG"],676:["TO"],677:["SB"],678:["VU"],679:["FJ"],680:["PW"],681:["WF"],682:["CK"],683:["NU"],685:["WS"],686:["KI"],687:["NC"],688:["TV"],689:["PF"],690:["TK"],691:["FM"],692:["MH"],850:["KP"],852:["HK"],853:["MO"],855:["KH"],856:["LA"],880:["BD"],886:["TW"],960:["MV"],961:["LB"],962:["JO"],963:["SY"],964:["IQ"],965:["KW"],966:["SA"],967:["YE"],968:["OM"],970:["PS"],971:["AE"],972:["IL"],973:["BH"],974:["QA"],975:["BT"],976:["MN"],977:["NP"],992:["TJ"],993:["TM"],994:["AZ"],995:["GE"],996:["KG"],998:["UZ"]},countries:{AC:["247","00","(?:[01589]\\d|[46])\\d{4}",[5,6]],AD:["376","00","(?:1|6\\d)\\d{7}|[135-9]\\d{5}",[6,8,9],[["(\\d{3})(\\d{3})","$1 $2",["[135-9]"]],["(\\d{4})(\\d{4})","$1 $2",["1"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["6"]]]],AE:["971","00","(?:[4-7]\\d|9[0-689])\\d{7}|800\\d{2,9}|[2-4679]\\d{7}",[5,6,7,8,9,10,11,12],[["(\\d{3})(\\d{2,9})","$1 $2",["60|8"]],["(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["[236]|[479][2-8]"],"0$1"],["(\\d{3})(\\d)(\\d{5})","$1 $2 $3",["[479]"]],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["5"],"0$1"]],"0"],AF:["93","00","[2-7]\\d{8}",[9],[["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[2-7]"],"0$1"]],"0"],AG:["1","011","(?:268|[58]\\d\\d|900)\\d{7}",[10],0,"1",0,"([457]\\d{6})$|1","268$1",0,"268"],AI:["1","011","(?:264|[58]\\d\\d|900)\\d{7}",[10],0,"1",0,"([2457]\\d{6})$|1","264$1",0,"264"],AL:["355","00","(?:700\\d\\d|900)\\d{3}|8\\d{5,7}|(?:[2-5]|6\\d)\\d{7}",[6,7,8,9],[["(\\d{3})(\\d{3,4})","$1 $2",["80|9"],"0$1"],["(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["4[2-6]"],"0$1"],["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["[2358][2-5]|4"],"0$1"],["(\\d{3})(\\d{5})","$1 $2",["[23578]"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["6"],"0$1"]],"0"],AM:["374","00","(?:[1-489]\\d|55|60|77)\\d{6}",[8],[["(\\d{3})(\\d{2})(\\d{3})","$1 $2 $3",["[89]0"],"0 $1"],["(\\d{3})(\\d{5})","$1 $2",["2|3[12]"],"(0$1)"],["(\\d{2})(\\d{6})","$1 $2",["1|47"],"(0$1)"],["(\\d{2})(\\d{6})","$1 $2",["[3-9]"],"0$1"]],"0"],AO:["244","00","[29]\\d{8}",[9],[["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[29]"]]]],AR:["54","00","(?:11|[89]\\d\\d)\\d{8}|[2368]\\d{9}",[10,11],[["(\\d{4})(\\d{2})(\\d{4})","$1 $2-$3",["2(?:2[024-9]|3[0-59]|47|6[245]|9[02-8])|3(?:3[28]|4[03-9]|5[2-46-8]|7[1-578]|8[2-9])","2(?:[23]02|6(?:[25]|4[6-8])|9(?:[02356]|4[02568]|72|8[23]))|3(?:3[28]|4(?:[04679]|3[5-8]|5[4-68]|8[2379])|5(?:[2467]|3[237]|8[2-5])|7[1-578]|8(?:[2469]|3[2578]|5[4-8]|7[36-8]|8[5-8]))|2(?:2[24-9]|3[1-59]|47)","2(?:[23]02|6(?:[25]|4(?:64|[78]))|9(?:[02356]|4(?:[0268]|5[2-6])|72|8[23]))|3(?:3[28]|4(?:[04679]|3[78]|5(?:4[46]|8)|8[2379])|5(?:[2467]|3[237]|8[23])|7[1-578]|8(?:[2469]|3[278]|5[56][46]|86[3-6]))|2(?:2[24-9]|3[1-59]|47)|38(?:[58][78]|7[378])|3(?:4[35][56]|58[45]|8(?:[38]5|54|76))[4-6]","2(?:[23]02|6(?:[25]|4(?:64|[78]))|9(?:[02356]|4(?:[0268]|5[2-6])|72|8[23]))|3(?:3[28]|4(?:[04679]|3(?:5(?:4[0-25689]|[56])|[78])|58|8[2379])|5(?:[2467]|3[237]|8(?:[23]|4(?:[45]|60)|5(?:4[0-39]|5|64)))|7[1-578]|8(?:[2469]|3[278]|54(?:4|5[13-7]|6[89])|86[3-6]))|2(?:2[24-9]|3[1-59]|47)|38(?:[58][78]|7[378])|3(?:454|85[56])[46]|3(?:4(?:36|5[56])|8(?:[38]5|76))[4-6]"],"0$1",1],["(\\d{2})(\\d{4})(\\d{4})","$1 $2-$3",["1"],"0$1",1],["(\\d{3})(\\d{3})(\\d{4})","$1-$2-$3",["[68]"],"0$1"],["(\\d{3})(\\d{3})(\\d{4})","$1 $2-$3",["[23]"],"0$1",1],["(\\d)(\\d{4})(\\d{2})(\\d{4})","$2 15-$3-$4",["9(?:2[2-469]|3[3-578])","9(?:2(?:2[024-9]|3[0-59]|47|6[245]|9[02-8])|3(?:3[28]|4[03-9]|5[2-46-8]|7[1-578]|8[2-9]))","9(?:2(?:[23]02|6(?:[25]|4[6-8])|9(?:[02356]|4[02568]|72|8[23]))|3(?:3[28]|4(?:[04679]|3[5-8]|5[4-68]|8[2379])|5(?:[2467]|3[237]|8[2-5])|7[1-578]|8(?:[2469]|3[2578]|5[4-8]|7[36-8]|8[5-8])))|92(?:2[24-9]|3[1-59]|47)","9(?:2(?:[23]02|6(?:[25]|4(?:64|[78]))|9(?:[02356]|4(?:[0268]|5[2-6])|72|8[23]))|3(?:3[28]|4(?:[04679]|3[78]|5(?:4[46]|8)|8[2379])|5(?:[2467]|3[237]|8[23])|7[1-578]|8(?:[2469]|3[278]|5(?:[56][46]|[78])|7[378]|8(?:6[3-6]|[78]))))|92(?:2[24-9]|3[1-59]|47)|93(?:4[35][56]|58[45]|8(?:[38]5|54|76))[4-6]","9(?:2(?:[23]02|6(?:[25]|4(?:64|[78]))|9(?:[02356]|4(?:[0268]|5[2-6])|72|8[23]))|3(?:3[28]|4(?:[04679]|3(?:5(?:4[0-25689]|[56])|[78])|5(?:4[46]|8)|8[2379])|5(?:[2467]|3[237]|8(?:[23]|4(?:[45]|60)|5(?:4[0-39]|5|64)))|7[1-578]|8(?:[2469]|3[278]|5(?:4(?:4|5[13-7]|6[89])|[56][46]|[78])|7[378]|8(?:6[3-6]|[78]))))|92(?:2[24-9]|3[1-59]|47)|93(?:4(?:36|5[56])|8(?:[38]5|76))[4-6]"],"0$1",0,"$1 $2 $3-$4"],["(\\d)(\\d{2})(\\d{4})(\\d{4})","$2 15-$3-$4",["91"],"0$1",0,"$1 $2 $3-$4"],["(\\d{3})(\\d{3})(\\d{5})","$1-$2-$3",["8"],"0$1"],["(\\d)(\\d{3})(\\d{3})(\\d{4})","$2 15-$3-$4",["9"],"0$1",0,"$1 $2 $3-$4"]],"0",0,"0?(?:(11|2(?:2(?:02?|[13]|2[13-79]|4[1-6]|5[2457]|6[124-8]|7[1-4]|8[13-6]|9[1267])|3(?:02?|1[467]|2[03-6]|3[13-8]|[49][2-6]|5[2-8]|[67])|4(?:7[3-578]|9)|6(?:[0136]|2[24-6]|4[6-8]?|5[15-8])|80|9(?:0[1-3]|[19]|2\\d|3[1-6]|4[02568]?|5[2-4]|6[2-46]|72?|8[23]?))|3(?:3(?:2[79]|6|8[2578])|4(?:0[0-24-9]|[12]|3[5-8]?|4[24-7]|5[4-68]?|6[02-9]|7[126]|8[2379]?|9[1-36-8])|5(?:1|2[1245]|3[237]?|4[1-46-9]|6[2-4]|7[1-6]|8[2-5]?)|6[24]|7(?:[069]|1[1568]|2[15]|3[145]|4[13]|5[14-8]|7[2-57]|8[126])|8(?:[01]|2[15-7]|3[2578]?|4[13-6]|5[4-8]?|6[1-357-9]|7[36-8]?|8[5-8]?|9[124])))15)?","9$1"],AS:["1","011","(?:[58]\\d\\d|684|900)\\d{7}",[10],0,"1",0,"([267]\\d{6})$|1","684$1",0,"684"],AT:["43","00","1\\d{3,12}|2\\d{6,12}|43(?:(?:0\\d|5[02-9])\\d{3,9}|2\\d{4,5}|[3467]\\d{4}|8\\d{4,6}|9\\d{4,7})|5\\d{4,12}|8\\d{7,12}|9\\d{8,12}|(?:[367]\\d|4[0-24-9])\\d{4,11}",[4,5,6,7,8,9,10,11,12,13],[["(\\d)(\\d{3,12})","$1 $2",["1(?:11|[2-9])"],"0$1"],["(\\d{3})(\\d{2})","$1 $2",["517"],"0$1"],["(\\d{2})(\\d{3,5})","$1 $2",["5[079]"],"0$1"],["(\\d{3})(\\d{3,10})","$1 $2",["(?:31|4)6|51|6(?:5[0-3579]|[6-9])|7(?:20|32|8)|[89]"],"0$1"],["(\\d{4})(\\d{3,9})","$1 $2",["[2-467]|5[2-6]"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["5"],"0$1"],["(\\d{2})(\\d{4})(\\d{4,7})","$1 $2 $3",["5"],"0$1"]],"0"],AU:["61","001[14-689]|14(?:1[14]|34|4[17]|[56]6|7[47]|88)0011","1(?:[0-79]\\d{7}(?:\\d(?:\\d{2})?)?|8[0-24-9]\\d{7})|[2-478]\\d{8}|1\\d{4,7}",[5,6,7,8,9,10,12],[["(\\d{2})(\\d{3,4})","$1 $2",["16"],"0$1"],["(\\d{2})(\\d{3})(\\d{2,4})","$1 $2 $3",["16"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["14|4"],"0$1"],["(\\d)(\\d{4})(\\d{4})","$1 $2 $3",["[2378]"],"(0$1)"],["(\\d{4})(\\d{3})(\\d{3})","$1 $2 $3",["1(?:30|[89])"]]],"0",0,"(183[12])|0",0,0,0,[["(?:(?:(?:2(?:[0-26-9]\\d|3[0-8]|4[02-9]|5[0135-9])|7(?:[013-57-9]\\d|2[0-8]))\\d|3(?:(?:[0-3589]\\d|6[1-9]|7[0-35-9])\\d|4(?:[0-578]\\d|90)))\\d\\d|8(?:51(?:0(?:0[03-9]|[12479]\\d|3[2-9]|5[0-8]|6[1-9]|8[0-7])|1(?:[0235689]\\d|1[0-69]|4[0-589]|7[0-47-9])|2(?:0[0-79]|[18][13579]|2[14-9]|3[0-46-9]|[4-6]\\d|7[89]|9[0-4])|3\\d\\d)|(?:6[0-8]|[78]\\d)\\d{3}|9(?:[02-9]\\d{3}|1(?:(?:[0-58]\\d|6[0135-9])\\d|7(?:0[0-24-9]|[1-9]\\d)|9(?:[0-46-9]\\d|5[0-79])))))\\d{3}",[9]],["4(?:79[01]|83[0-389]|94[0-4])\\d{5}|4(?:[0-36]\\d|4[047-9]|5[0-25-9]|7[02-8]|8[0-24-9]|9[0-37-9])\\d{6}",[9]],["180(?:0\\d{3}|2)\\d{3}",[7,10]],["190[0-26]\\d{6}",[10]],0,0,0,["163\\d{2,6}",[5,6,7,8,9]],["14(?:5(?:1[0458]|[23][458])|71\\d)\\d{4}",[9]],["13(?:00\\d{6}(?:\\d{2})?|45[0-4]\\d{3})|13\\d{4}",[6,8,10,12]]],"0011"],AW:["297","00","(?:[25-79]\\d\\d|800)\\d{4}",[7],[["(\\d{3})(\\d{4})","$1 $2",["[25-9]"]]]],AX:["358","00|99(?:[01469]|5(?:[14]1|3[23]|5[59]|77|88|9[09]))","2\\d{4,9}|35\\d{4,5}|(?:60\\d\\d|800)\\d{4,6}|7\\d{5,11}|(?:[14]\\d|3[0-46-9]|50)\\d{4,8}",[5,6,7,8,9,10,11,12],0,"0",0,0,0,0,"18",0,"00"],AZ:["994","00","365\\d{6}|(?:[124579]\\d|60|88)\\d{7}",[9],[["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["90"],"0$1"],["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["1[28]|2|365|46","1[28]|2|365[45]|46","1[28]|2|365(?:4|5[02])|46"],"(0$1)"],["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[13-9]"],"0$1"]],"0"],BA:["387","00","6\\d{8}|(?:[35689]\\d|49|70)\\d{6}",[8,9],[["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["6[1-3]|[7-9]"],"0$1"],["(\\d{2})(\\d{3})(\\d{3})","$1 $2-$3",["[3-5]|6[56]"],"0$1"],["(\\d{2})(\\d{2})(\\d{2})(\\d{3})","$1 $2 $3 $4",["6"],"0$1"]],"0"],BB:["1","011","(?:246|[58]\\d\\d|900)\\d{7}",[10],0,"1",0,"([2-9]\\d{6})$|1","246$1",0,"246"],BD:["880","00","[1-469]\\d{9}|8[0-79]\\d{7,8}|[2-79]\\d{8}|[2-9]\\d{7}|[3-9]\\d{6}|[57-9]\\d{5}",[6,7,8,9,10],[["(\\d{2})(\\d{4,6})","$1-$2",["31[5-8]|[459]1"],"0$1"],["(\\d{3})(\\d{3,7})","$1-$2",["3(?:[67]|8[013-9])|4(?:6[168]|7|[89][18])|5(?:6[128]|9)|6(?:[15]|28|4[14])|7[2-589]|8(?:0[014-9]|[12])|9[358]|(?:3[2-5]|4[235]|5[2-578]|6[0389]|76|8[3-7]|9[24])1|(?:44|66)[01346-9]"],"0$1"],["(\\d{4})(\\d{3,6})","$1-$2",["[13-9]|2[23]"],"0$1"],["(\\d)(\\d{7,8})","$1-$2",["2"],"0$1"]],"0"],BE:["32","00","4\\d{8}|[1-9]\\d{7}",[8,9],[["(\\d{3})(\\d{2})(\\d{3})","$1 $2 $3",["(?:80|9)0"],"0$1"],["(\\d)(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[239]|4[23]"],"0$1"],["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[15-8]"],"0$1"],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["4"],"0$1"]],"0"],BF:["226","00","[025-7]\\d{7}",[8],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[025-7]"]]]],BG:["359","00","00800\\d{7}|[2-7]\\d{6,7}|[89]\\d{6,8}|2\\d{5}",[6,7,8,9,12],[["(\\d)(\\d)(\\d{2})(\\d{2})","$1 $2 $3 $4",["2"],"0$1"],["(\\d{3})(\\d{4})","$1 $2",["43[1-6]|70[1-9]"],"0$1"],["(\\d)(\\d{3})(\\d{3,4})","$1 $2 $3",["2"],"0$1"],["(\\d{2})(\\d{3})(\\d{2,3})","$1 $2 $3",["[356]|4[124-7]|7[1-9]|8[1-6]|9[1-7]"],"0$1"],["(\\d{3})(\\d{2})(\\d{3})","$1 $2 $3",["(?:70|8)0"],"0$1"],["(\\d{3})(\\d{3})(\\d{2})","$1 $2 $3",["43[1-7]|7"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["[48]|9[08]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["9"],"0$1"]],"0"],BH:["973","00","[136-9]\\d{7}",[8],[["(\\d{4})(\\d{4})","$1 $2",["[13679]|8[02-4679]"]]]],BI:["257","00","(?:[267]\\d|31)\\d{6}",[8],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[2367]"]]]],BJ:["229","00","(?:01\\d|[24-689])\\d{7}",[8,10],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[24-689]"]],["(\\d{2})(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4 $5",["0"]]]],BL:["590","00","(?:590\\d|7090)\\d{5}|(?:69|80|9\\d)\\d{7}",[9],0,"0",0,0,0,0,0,[["590(?:2[7-9]|3[3-7]|5[12]|87)\\d{4}"],["(?:69(?:0\\d\\d|1(?:2[2-9]|3[0-5])|4(?:0[89]|1[2-6]|9\\d)|6(?:1[016-9]|5[0-4]|[67]\\d))|7090[0-4])\\d{4}"],["80[0-5]\\d{6}"],0,0,0,0,0,["9(?:(?:39[5-7]|76[018])\\d|475[0-6])\\d{4}"]]],BM:["1","011","(?:441|[58]\\d\\d|900)\\d{7}",[10],0,"1",0,"([2-9]\\d{6})$|1","441$1",0,"441"],BN:["673","00","[2-578]\\d{6}",[7],[["(\\d{3})(\\d{4})","$1 $2",["[2-578]"]]]],BO:["591","00(?:1\\d)?","8001\\d{5}|(?:[2-467]\\d|50)\\d{6}",[8,9],[["(\\d)(\\d{7})","$1 $2",["[235]|4[46]"]],["(\\d{8})","$1",["[67]"]],["(\\d{3})(\\d{2})(\\d{4})","$1 $2 $3",["8"]]],"0",0,"0(1\\d)?"],BQ:["599","00","(?:[34]1|7\\d)\\d{5}",[7],0,0,0,0,0,0,"[347]"],BR:["55","00(?:1[245]|2[1-35]|31|4[13]|[56]5|99)","(?:[1-46-9]\\d\\d|5(?:[0-46-9]\\d|5[0-46-9]))\\d{8}|[1-9]\\d{9}|[3589]\\d{8}|[34]\\d{7}",[8,9,10,11],[["(\\d{4})(\\d{4})","$1-$2",["300|4(?:0[02]|37)","4(?:02|37)0|[34]00"]],["(\\d{3})(\\d{2,3})(\\d{4})","$1 $2 $3",["(?:[358]|90)0"],"0$1"],["(\\d{2})(\\d{4})(\\d{4})","$1 $2-$3",["(?:[14689][1-9]|2[12478]|3[1-578]|5[13-5]|7[13-579])[2-57]"],"($1)"],["(\\d{2})(\\d{5})(\\d{4})","$1 $2-$3",["[16][1-9]|[2-57-9]"],"($1)"]],"0",0,"(?:0|90)(?:(1[245]|2[1-35]|31|4[13]|[56]5|99)(\\d{10,11}))?","$2"],BS:["1","011","(?:242|[58]\\d\\d|900)\\d{7}",[10],0,"1",0,"([3-8]\\d{6})$|1","242$1",0,"242"],BT:["975","00","[17]\\d{7}|[2-8]\\d{6}",[7,8],[["(\\d)(\\d{3})(\\d{3})","$1 $2 $3",["[2-68]|7[246]"]],["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["1[67]|7"]]]],BW:["267","00","(?:0800|(?:[37]|800)\\d)\\d{6}|(?:[2-6]\\d|90)\\d{5}",[7,8,10],[["(\\d{2})(\\d{5})","$1 $2",["90"]],["(\\d{3})(\\d{4})","$1 $2",["[24-6]|3[15-9]"]],["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["[37]"]],["(\\d{4})(\\d{3})(\\d{3})","$1 $2 $3",["0"]],["(\\d{3})(\\d{4})(\\d{3})","$1 $2 $3",["8"]]]],BY:["375","810","(?:[12]\\d|33|44|902)\\d{7}|8(?:0[0-79]\\d{5,7}|[1-7]\\d{9})|8(?:1[0-489]|[5-79]\\d)\\d{7}|8[1-79]\\d{6,7}|8[0-79]\\d{5}|8\\d{5}",[6,7,8,9,10,11],[["(\\d{3})(\\d{3})","$1 $2",["800"],"8 $1"],["(\\d{3})(\\d{2})(\\d{2,4})","$1 $2 $3",["800"],"8 $1"],["(\\d{4})(\\d{2})(\\d{3})","$1 $2-$3",["1(?:5[169]|6[3-5]|7[179])|2(?:1[35]|2[34]|3[3-5])","1(?:5[169]|6(?:3[1-3]|4|5[125])|7(?:1[3-9]|7[0-24-6]|9[2-7]))|2(?:1[35]|2[34]|3[3-5])"],"8 0$1"],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2-$3-$4",["1(?:[56]|7[467])|2[1-3]"],"8 0$1"],["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2-$3-$4",["[1-4]"],"8 0$1"],["(\\d{3})(\\d{3,4})(\\d{4})","$1 $2 $3",["[89]"],"8 $1"]],"8",0,"0|80?",0,0,0,0,"8~10"],BZ:["501","00","(?:0800\\d|[2-8])\\d{6}",[7,11],[["(\\d{3})(\\d{4})","$1-$2",["[2-8]"]],["(\\d)(\\d{3})(\\d{4})(\\d{3})","$1-$2-$3-$4",["0"]]]],CA:["1","011","[2-9]\\d{9}|3\\d{6}",[7,10],0,"1",0,0,0,0,0,[["(?:2(?:04|[23]6|[48]9|50|63)|3(?:06|43|54|6[578]|82)|4(?:03|1[68]|[26]8|3[178]|50|74)|5(?:06|1[49]|48|79|8[147])|6(?:04|[18]3|39|47|72)|7(?:0[59]|42|53|78|8[02])|8(?:[06]7|19|25|7[39])|9(?:0[25]|42))[2-9]\\d{6}",[10]],["",[10]],["8(?:00|33|44|55|66|77|88)[2-9]\\d{6}",[10]],["900[2-9]\\d{6}",[10]],["52(?:3(?:[2-46-9][02-9]\\d|5(?:[02-46-9]\\d|5[0-46-9]))|4(?:[2-478][02-9]\\d|5(?:[034]\\d|2[024-9]|5[0-46-9])|6(?:0[1-9]|[2-9]\\d)|9(?:[05-9]\\d|2[0-5]|49)))\\d{4}|52[34][2-9]1[02-9]\\d{4}|(?:5(?:2[125-9]|33|44|66|77|88)|6(?:22|33))[2-9]\\d{6}",[10]],0,["310\\d{4}",[7]],0,["600[2-9]\\d{6}",[10]]]],CC:["61","001[14-689]|14(?:1[14]|34|4[17]|[56]6|7[47]|88)0011","1(?:[0-79]\\d{8}(?:\\d{2})?|8[0-24-9]\\d{7})|[148]\\d{8}|1\\d{5,7}",[6,7,8,9,10,12],0,"0",0,"([59]\\d{7})$|0","8$1",0,0,[["8(?:51(?:0(?:02|31|60|89)|1(?:18|76)|223)|91(?:0(?:1[0-2]|29)|1(?:[28]2|50|79)|2(?:10|64)|3(?:[06]8|22)|4[29]8|62\\d|70[23]|959))\\d{3}",[9]],["4(?:79[01]|83[0-389]|94[0-4])\\d{5}|4(?:[0-36]\\d|4[047-9]|5[0-25-9]|7[02-8]|8[0-24-9]|9[0-37-9])\\d{6}",[9]],["180(?:0\\d{3}|2)\\d{3}",[7,10]],["190[0-26]\\d{6}",[10]],0,0,0,0,["14(?:5(?:1[0458]|[23][458])|71\\d)\\d{4}",[9]],["13(?:00\\d{6}(?:\\d{2})?|45[0-4]\\d{3})|13\\d{4}",[6,8,10,12]]],"0011"],CD:["243","00","(?:(?:[189]|5\\d)\\d|2)\\d{7}|[1-68]\\d{6}",[7,8,9,10],[["(\\d{2})(\\d{2})(\\d{3})","$1 $2 $3",["88"],"0$1"],["(\\d{2})(\\d{5})","$1 $2",["[1-6]"],"0$1"],["(\\d{2})(\\d{2})(\\d{4})","$1 $2 $3",["2"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["1"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[89]"],"0$1"],["(\\d{2})(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3 $4",["5"],"0$1"]],"0"],CF:["236","00","(?:[27]\\d{3}|8776)\\d{4}",[8],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[278]"]]]],CG:["242","00","222\\d{6}|(?:0\\d|80)\\d{7}",[9],[["(\\d)(\\d{4})(\\d{4})","$1 $2 $3",["8"]],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[02]"]]]],CH:["41","00","8\\d{11}|[2-9]\\d{8}",[9,12],[["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["8[047]|90"],"0$1"],["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[2-79]|81"],"0$1"],["(\\d{3})(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4 $5",["8"],"0$1"]],"0"],CI:["225","00","[02]\\d{9}",[10],[["(\\d{2})(\\d{2})(\\d)(\\d{5})","$1 $2 $3 $4",["2"]],["(\\d{2})(\\d{2})(\\d{2})(\\d{4})","$1 $2 $3 $4",["0"]]]],CK:["682","00","[2-578]\\d{4}",[5],[["(\\d{2})(\\d{3})","$1 $2",["[2-578]"]]]],CL:["56","(?:0|1(?:1[0-69]|2[02-5]|5[13-58]|69|7[0167]|8[018]))0","12300\\d{6}|6\\d{9,10}|[2-9]\\d{8}",[9,10,11],[["(\\d{5})(\\d{4})","$1 $2",["219","2196"],"($1)"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["44"]],["(\\d)(\\d{4})(\\d{4})","$1 $2 $3",["2[1-36]"],"($1)"],["(\\d)(\\d{4})(\\d{4})","$1 $2 $3",["9[2-9]"]],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["3[2-5]|[47]|5[1-3578]|6[13-57]|8(?:0[1-9]|[1-9])"],"($1)"],["(\\d{3})(\\d{3})(\\d{3,4})","$1 $2 $3",["60|8"]],["(\\d{4})(\\d{3})(\\d{4})","$1 $2 $3",["1"]],["(\\d{3})(\\d{3})(\\d{2})(\\d{3})","$1 $2 $3 $4",["60"]]]],CM:["237","00","[26]\\d{8}|88\\d{6,7}",[8,9],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["88"]],["(\\d)(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4 $5",["[26]|88"]]]],CN:["86","00|1(?:[12]\\d|79)\\d\\d00","(?:(?:1[03-689]|2\\d)\\d\\d|6)\\d{8}|1\\d{10}|[126]\\d{6}(?:\\d(?:\\d{2})?)?|86\\d{5,6}|(?:[3-579]\\d|8[0-57-9])\\d{5,9}",[7,8,9,10,11,12],[["(\\d{2})(\\d{5,6})","$1 $2",["(?:10|2[0-57-9])[19]|3(?:[157]|35|49|9[1-68])|4(?:1[124-9]|2[179]|6[47-9]|7|8[23])|5(?:[1357]|2[37]|4[36]|6[1-46]|80)|6(?:3[1-5]|6[0238]|9[12])|7(?:01|[1579]|2[248]|3[014-9]|4[3-6]|6[023689])|8(?:07|1[236-8]|2[5-7]|[37]|8[36-8]|9[1-8])|9(?:0[1-3689]|1[1-79]|3|4[13]|5[1-5]|7[0-79]|9[0-35-9])|(?:4[35]|59|85)[1-9]","(?:10|2[0-57-9])(?:1[02]|9[56])|8078|(?:3(?:[157]\\d|35|49|9[1-68])|4(?:1[124-9]|2[179]|[35][1-9]|6[47-9]|7\\d|8[23])|5(?:[1357]\\d|2[37]|4[36]|6[1-46]|80|9[1-9])|6(?:3[1-5]|6[0238]|9[12])|7(?:01|[1579]\\d|2[248]|3[014-9]|4[3-6]|6[023689])|8(?:1[236-8]|2[5-7]|[37]\\d|5[1-9]|8[36-8]|9[1-8])|9(?:0[1-3689]|1[1-79]|3\\d|4[13]|5[1-5]|7[0-79]|9[0-35-9]))1","10(?:1(?:0|23)|9[56])|2[0-57-9](?:1(?:00|23)|9[56])|80781|(?:3(?:[157]\\d|35|49|9[1-68])|4(?:1[124-9]|2[179]|[35][1-9]|6[47-9]|7\\d|8[23])|5(?:[1357]\\d|2[37]|4[36]|6[1-46]|80|9[1-9])|6(?:3[1-5]|6[0238]|9[12])|7(?:01|[1579]\\d|2[248]|3[014-9]|4[3-6]|6[023689])|8(?:1[236-8]|2[5-7]|[37]\\d|5[1-9]|8[36-8]|9[1-8])|9(?:0[1-3689]|1[1-79]|3\\d|4[13]|5[1-5]|7[0-79]|9[0-35-9]))12","10(?:1(?:0|23)|9[56])|2[0-57-9](?:1(?:00|23)|9[56])|807812|(?:3(?:[157]\\d|35|49|9[1-68])|4(?:1[124-9]|2[179]|[35][1-9]|6[47-9]|7\\d|8[23])|5(?:[1357]\\d|2[37]|4[36]|6[1-46]|80|9[1-9])|6(?:3[1-5]|6[0238]|9[12])|7(?:01|[1579]\\d|2[248]|3[014-9]|4[3-6]|6[023689])|8(?:1[236-8]|2[5-7]|[37]\\d|5[1-9]|8[36-8]|9[1-8])|9(?:0[1-3689]|1[1-79]|3\\d|4[13]|5[1-5]|7[0-79]|9[0-35-9]))123","10(?:1(?:0|23)|9[56])|2[0-57-9](?:1(?:00|23)|9[56])|(?:3(?:[157]\\d|35|49|9[1-68])|4(?:1[124-9]|2[179]|[35][1-9]|6[47-9]|7\\d|8[23])|5(?:[1357]\\d|2[37]|4[36]|6[1-46]|80|9[1-9])|6(?:3[1-5]|6[0238]|9[12])|7(?:01|[1579]\\d|2[248]|3[014-9]|4[3-6]|6[023689])|8(?:078|1[236-8]|2[5-7]|[37]\\d|5[1-9]|8[36-8]|9[1-8])|9(?:0[1-3689]|1[1-79]|3\\d|4[13]|5[1-5]|7[0-79]|9[0-35-9]))123"],"0$1"],["(\\d{3})(\\d{5,6})","$1 $2",["3(?:[157]|35|49|9[1-68])|4(?:[17]|2[179]|6[47-9]|8[23])|5(?:[1357]|2[37]|4[36]|6[1-46]|80)|6(?:3[1-5]|6[0238]|9[12])|7(?:01|[1579]|2[248]|3[014-9]|4[3-6]|6[023689])|8(?:1[236-8]|2[5-7]|[37]|8[36-8]|9[1-8])|9(?:0[1-3689]|1[1-79]|[379]|4[13]|5[1-5])|(?:4[35]|59|85)[1-9]","(?:3(?:[157]\\d|35|49|9[1-68])|4(?:[17]\\d|2[179]|[35][1-9]|6[47-9]|8[23])|5(?:[1357]\\d|2[37]|4[36]|6[1-46]|80|9[1-9])|6(?:3[1-5]|6[0238]|9[12])|7(?:01|[1579]\\d|2[248]|3[014-9]|4[3-6]|6[023689])|8(?:1[236-8]|2[5-7]|[37]\\d|5[1-9]|8[36-8]|9[1-8])|9(?:0[1-3689]|1[1-79]|[379]\\d|4[13]|5[1-5]))[19]","85[23](?:10|95)|(?:3(?:[157]\\d|35|49|9[1-68])|4(?:[17]\\d|2[179]|[35][1-9]|6[47-9]|8[23])|5(?:[1357]\\d|2[37]|4[36]|6[1-46]|80|9[1-9])|6(?:3[1-5]|6[0238]|9[12])|7(?:01|[1579]\\d|2[248]|3[014-9]|4[3-6]|6[023689])|8(?:1[236-8]|2[5-7]|[37]\\d|5[14-9]|8[36-8]|9[1-8])|9(?:0[1-3689]|1[1-79]|[379]\\d|4[13]|5[1-5]))(?:10|9[56])","85[23](?:100|95)|(?:3(?:[157]\\d|35|49|9[1-68])|4(?:[17]\\d|2[179]|[35][1-9]|6[47-9]|8[23])|5(?:[1357]\\d|2[37]|4[36]|6[1-46]|80|9[1-9])|6(?:3[1-5]|6[0238]|9[12])|7(?:01|[1579]\\d|2[248]|3[014-9]|4[3-6]|6[023689])|8(?:1[236-8]|2[5-7]|[37]\\d|5[14-9]|8[36-8]|9[1-8])|9(?:0[1-3689]|1[1-79]|[379]\\d|4[13]|5[1-5]))(?:100|9[56])"],"0$1"],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["(?:4|80)0"]],["(\\d{2})(\\d{4})(\\d{4})","$1 $2 $3",["10|2(?:[02-57-9]|1[1-9])","10|2(?:[02-57-9]|1[1-9])","10[0-79]|2(?:[02-57-9]|1[1-79])|(?:10|21)8(?:0[1-9]|[1-9])"],"0$1",1],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["3(?:[3-59]|7[02-68])|4(?:[26-8]|3[3-9]|5[2-9])|5(?:3[03-9]|[468]|7[028]|9[2-46-9])|6|7(?:[0-247]|3[04-9]|5[0-4689]|6[2368])|8(?:[1-358]|9[1-7])|9(?:[013479]|5[1-5])|(?:[34]1|55|79|87)[02-9]"],"0$1",1],["(\\d{3})(\\d{7,8})","$1 $2",["9"]],["(\\d{4})(\\d{3})(\\d{4})","$1 $2 $3",["80"],"0$1",1],["(\\d{3})(\\d{4})(\\d{4})","$1 $2 $3",["[3-578]"],"0$1",1],["(\\d{3})(\\d{4})(\\d{4})","$1 $2 $3",["1[3-9]"]],["(\\d{2})(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3 $4",["[12]"],"0$1",1]],"0",0,"(1(?:[12]\\d|79)\\d\\d)|0",0,0,0,0,"00"],CO:["57","00(?:4(?:[14]4|56)|[579])","(?:46|60\\d\\d)\\d{6}|(?:1\\d|[39])\\d{9}",[8,10,11],[["(\\d{4})(\\d{4})","$1 $2",["46"]],["(\\d{3})(\\d{7})","$1 $2",["6|90"],"($1)"],["(\\d{3})(\\d{7})","$1 $2",["3[0-357]|91"]],["(\\d)(\\d{3})(\\d{7})","$1-$2-$3",["1"],"0$1",0,"$1 $2 $3"]],"0",0,"0([3579]|4(?:[14]4|56))?"],CR:["506","00","(?:8\\d|90)\\d{8}|(?:[24-8]\\d{3}|3005)\\d{4}",[8,10],[["(\\d{4})(\\d{4})","$1 $2",["[2-7]|8[3-9]"]],["(\\d{3})(\\d{3})(\\d{4})","$1-$2-$3",["[89]"]]],0,0,"(19(?:0[0-2468]|1[09]|20|66|77|99))"],CU:["53","119","(?:[2-7]|8\\d\\d)\\d{7}|[2-47]\\d{6}|[34]\\d{5}",[6,7,8,10],[["(\\d{2})(\\d{4,6})","$1 $2",["2[1-4]|[34]"],"(0$1)"],["(\\d)(\\d{6,7})","$1 $2",["7"],"(0$1)"],["(\\d)(\\d{7})","$1 $2",["[56]"],"0$1"],["(\\d{3})(\\d{7})","$1 $2",["8"],"0$1"]],"0"],CV:["238","0","(?:[2-59]\\d\\d|800)\\d{4}",[7],[["(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3",["[2-589]"]]]],CW:["599","00","(?:[34]1|60|(?:7|9\\d)\\d)\\d{5}",[7,8],[["(\\d{3})(\\d{4})","$1 $2",["[3467]"]],["(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["9[4-8]"]]],0,0,0,0,0,"[69]"],CX:["61","001[14-689]|14(?:1[14]|34|4[17]|[56]6|7[47]|88)0011","1(?:[0-79]\\d{8}(?:\\d{2})?|8[0-24-9]\\d{7})|[148]\\d{8}|1\\d{5,7}",[6,7,8,9,10,12],0,"0",0,"([59]\\d{7})$|0","8$1",0,0,[["8(?:51(?:0(?:01|30|59|88)|1(?:17|46|75)|2(?:22|35))|91(?:00[6-9]|1(?:[28]1|49|78)|2(?:09|63)|3(?:12|26|75)|4(?:56|97)|64\\d|7(?:0[01]|1[0-2])|958))\\d{3}",[9]],["4(?:79[01]|83[0-389]|94[0-4])\\d{5}|4(?:[0-36]\\d|4[047-9]|5[0-25-9]|7[02-8]|8[0-24-9]|9[0-37-9])\\d{6}",[9]],["180(?:0\\d{3}|2)\\d{3}",[7,10]],["190[0-26]\\d{6}",[10]],0,0,0,0,["14(?:5(?:1[0458]|[23][458])|71\\d)\\d{4}",[9]],["13(?:00\\d{6}(?:\\d{2})?|45[0-4]\\d{3})|13\\d{4}",[6,8,10,12]]],"0011"],CY:["357","00","(?:[279]\\d|[58]0)\\d{6}",[8],[["(\\d{2})(\\d{6})","$1 $2",["[257-9]"]]]],CZ:["420","00","(?:[2-578]\\d|60)\\d{7}|9\\d{8,11}",[9,10,11,12],[["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[2-8]|9[015-7]"]],["(\\d{2})(\\d{3})(\\d{3})(\\d{2})","$1 $2 $3 $4",["96"]],["(\\d{2})(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3 $4",["9"]],["(\\d{3})(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3 $4",["9"]]]],DE:["49","00","[2579]\\d{5,14}|49(?:[34]0|69|8\\d)\\d\\d?|49(?:37|49|60|7[089]|9\\d)\\d{1,3}|49(?:2[024-9]|3[2-689]|7[1-7])\\d{1,8}|(?:1|[368]\\d|4[0-8])\\d{3,13}|49(?:[015]\\d|2[13]|31|[46][1-8])\\d{1,9}",[4,5,6,7,8,9,10,11,12,13,14,15],[["(\\d{2})(\\d{3,13})","$1 $2",["3[02]|40|[68]9"],"0$1"],["(\\d{3})(\\d{3,12})","$1 $2",["2(?:0[1-389]|1[124]|2[18]|3[14])|3(?:[35-9][15]|4[015])|906|(?:2[4-9]|4[2-9]|[579][1-9]|[68][1-8])1","2(?:0[1-389]|12[0-8])|3(?:[35-9][15]|4[015])|906|2(?:[13][14]|2[18])|(?:2[4-9]|4[2-9]|[579][1-9]|[68][1-8])1"],"0$1"],["(\\d{4})(\\d{2,11})","$1 $2",["[24-6]|3(?:[3569][02-46-9]|4[2-4679]|7[2-467]|8[2-46-8])|70[2-8]|8(?:0[2-9]|[1-8])|90[7-9]|[79][1-9]","[24-6]|3(?:3(?:0[1-467]|2[127-9]|3[124578]|7[1257-9]|8[1256]|9[145])|4(?:2[135]|4[13578]|9[1346])|5(?:0[14]|2[1-3589]|6[1-4]|7[13468]|8[13568])|6(?:2[1-489]|3[124-6]|6[13]|7[12579]|8[1-356]|9[135])|7(?:2[1-7]|4[145]|6[1-5]|7[1-4])|8(?:21|3[1468]|6|7[1467]|8[136])|9(?:0[12479]|2[1358]|4[134679]|6[1-9]|7[136]|8[147]|9[1468]))|70[2-8]|8(?:0[2-9]|[1-8])|90[7-9]|[79][1-9]|3[68]4[1347]|3(?:47|60)[1356]|3(?:3[46]|46|5[49])[1246]|3[4579]3[1357]"],"0$1"],["(\\d{3})(\\d{4})","$1 $2",["138"],"0$1"],["(\\d{5})(\\d{2,10})","$1 $2",["3"],"0$1"],["(\\d{3})(\\d{5,11})","$1 $2",["181"],"0$1"],["(\\d{3})(\\d)(\\d{4,10})","$1 $2 $3",["1(?:3|80)|9"],"0$1"],["(\\d{3})(\\d{7,8})","$1 $2",["1[67]"],"0$1"],["(\\d{3})(\\d{7,12})","$1 $2",["8"],"0$1"],["(\\d{5})(\\d{6})","$1 $2",["185","1850","18500"],"0$1"],["(\\d{3})(\\d{4})(\\d{4})","$1 $2 $3",["7"],"0$1"],["(\\d{4})(\\d{7})","$1 $2",["18[68]"],"0$1"],["(\\d{4})(\\d{7})","$1 $2",["15[1279]"],"0$1"],["(\\d{5})(\\d{6})","$1 $2",["15[03568]","15(?:[0568]|31)"],"0$1"],["(\\d{3})(\\d{8})","$1 $2",["18"],"0$1"],["(\\d{3})(\\d{2})(\\d{7,8})","$1 $2 $3",["1(?:6[023]|7)"],"0$1"],["(\\d{4})(\\d{2})(\\d{7})","$1 $2 $3",["15[279]"],"0$1"],["(\\d{3})(\\d{2})(\\d{8})","$1 $2 $3",["15"],"0$1"]],"0"],DJ:["253","00","(?:2\\d|77)\\d{6}",[8],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[27]"]]]],DK:["45","00","[2-9]\\d{7}",[8],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[2-9]"]]]],DM:["1","011","(?:[58]\\d\\d|767|900)\\d{7}",[10],0,"1",0,"([2-7]\\d{6})$|1","767$1",0,"767"],DO:["1","011","(?:[58]\\d\\d|900)\\d{7}",[10],0,"1",0,0,0,0,"8001|8[024]9"],DZ:["213","00","(?:[1-4]|[5-79]\\d|80)\\d{7}",[8,9],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[1-4]"],"0$1"],["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["9"],"0$1"],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[5-8]"],"0$1"]],"0"],EC:["593","00","1\\d{9,10}|(?:[2-7]|9\\d)\\d{7}",[8,9,10,11],[["(\\d)(\\d{3})(\\d{4})","$1 $2-$3",["[2-7]"],"(0$1)",0,"$1-$2-$3"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["9"],"0$1"],["(\\d{4})(\\d{3})(\\d{3,4})","$1 $2 $3",["1"]]],"0"],EE:["372","00","8\\d{9}|[4578]\\d{7}|(?:[3-8]\\d|90)\\d{5}",[7,8,10],[["(\\d{3})(\\d{4})","$1 $2",["[369]|4[3-8]|5(?:[0-2]|5[0-478]|6[45])|7[1-9]|88","[369]|4[3-8]|5(?:[02]|1(?:[0-8]|95)|5[0-478]|6(?:4[0-4]|5[1-589]))|7[1-9]|88"]],["(\\d{4})(\\d{3,4})","$1 $2",["[45]|8(?:00|[1-49])","[45]|8(?:00[1-9]|[1-49])"]],["(\\d{2})(\\d{2})(\\d{4})","$1 $2 $3",["7"]],["(\\d{4})(\\d{3})(\\d{3})","$1 $2 $3",["8"]]]],EG:["20","00","[189]\\d{8,9}|[24-6]\\d{8}|[135]\\d{7}",[8,9,10],[["(\\d)(\\d{7,8})","$1 $2",["[23]"],"0$1"],["(\\d{2})(\\d{6,7})","$1 $2",["1[35]|[4-6]|8[2468]|9[235-7]"],"0$1"],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["[89]"],"0$1"],["(\\d{2})(\\d{8})","$1 $2",["1"],"0$1"]],"0"],EH:["212","00","[5-8]\\d{8}",[9],0,"0",0,0,0,0,"528[89]"],ER:["291","00","[178]\\d{6}",[7],[["(\\d)(\\d{3})(\\d{3})","$1 $2 $3",["[178]"],"0$1"]],"0"],ES:["34","00","[5-9]\\d{8}",[9],[["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[89]00"]],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[5-9]"]]]],ET:["251","00","(?:11|[2-579]\\d)\\d{7}",[9],[["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[1-579]"],"0$1"]],"0"],FI:["358","00|99(?:[01469]|5(?:[14]1|3[23]|5[59]|77|88|9[09]))","[1-35689]\\d{4}|7\\d{10,11}|(?:[124-7]\\d|3[0-46-9])\\d{8}|[1-9]\\d{5,8}",[5,6,7,8,9,10,11,12],[["(\\d{5})","$1",["20[2-59]"],"0$1"],["(\\d{3})(\\d{3,7})","$1 $2",["(?:[1-3]0|[68])0|70[07-9]"],"0$1"],["(\\d{2})(\\d{4,8})","$1 $2",["[14]|2[09]|50|7[135]"],"0$1"],["(\\d{2})(\\d{6,10})","$1 $2",["7"],"0$1"],["(\\d)(\\d{4,9})","$1 $2",["(?:19|[2568])[1-8]|3(?:0[1-9]|[1-9])|9"],"0$1"]],"0",0,0,0,0,"1[03-79]|[2-9]",0,"00"],FJ:["679","0(?:0|52)","45\\d{5}|(?:0800\\d|[235-9])\\d{6}",[7,11],[["(\\d{3})(\\d{4})","$1 $2",["[235-9]|45"]],["(\\d{4})(\\d{3})(\\d{4})","$1 $2 $3",["0"]]],0,0,0,0,0,0,0,"00"],FK:["500","00","[2-7]\\d{4}",[5]],FM:["691","00","(?:[39]\\d\\d|820)\\d{4}",[7],[["(\\d{3})(\\d{4})","$1 $2",["[389]"]]]],FO:["298","00","[2-9]\\d{5}",[6],[["(\\d{6})","$1",["[2-9]"]]],0,0,"(10(?:01|[12]0|88))"],FR:["33","00","[1-9]\\d{8}",[9],[["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["8"],"0 $1"],["(\\d)(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4 $5",["[1-79]"],"0$1"]],"0"],GA:["241","00","(?:[067]\\d|11)\\d{6}|[2-7]\\d{6}",[7,8],[["(\\d)(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[2-7]"],"0$1"],["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["0"]],["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["11|[67]"],"0$1"]],0,0,"0(11\\d{6}|60\\d{6}|61\\d{6}|6[256]\\d{6}|7[467]\\d{6})","$1"],GB:["44","00","[1-357-9]\\d{9}|[18]\\d{8}|8\\d{6}",[7,9,10],[["(\\d{3})(\\d{4})","$1 $2",["800","8001","80011","800111","8001111"],"0$1"],["(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3",["845","8454","84546","845464"],"0$1"],["(\\d{3})(\\d{6})","$1 $2",["800"],"0$1"],["(\\d{5})(\\d{4,5})","$1 $2",["1(?:38|5[23]|69|76|94)","1(?:(?:38|69)7|5(?:24|39)|768|946)","1(?:3873|5(?:242|39[4-6])|(?:697|768)[347]|9467)"],"0$1"],["(\\d{4})(\\d{5,6})","$1 $2",["1(?:[2-69][02-9]|[78])"],"0$1"],["(\\d{2})(\\d{4})(\\d{4})","$1 $2 $3",["[25]|7(?:0|6[02-9])","[25]|7(?:0|6(?:[03-9]|2[356]))"],"0$1"],["(\\d{4})(\\d{6})","$1 $2",["7"],"0$1"],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["[1389]"],"0$1"]],"0",0,0,0,0,0,[["(?:1(?:1(?:3(?:[0-58]\\d\\d|73[0-35])|4(?:(?:[0-5]\\d|70)\\d|69[7-9])|(?:(?:5[0-26-9]|[78][0-49])\\d|6(?:[0-4]\\d|50))\\d)|(?:2(?:(?:0[024-9]|2[3-9]|3[3-79]|4[1-689]|[58][02-9]|6[0-47-9]|7[013-9]|9\\d)\\d|1(?:[0-7]\\d|8[0-3]))|(?:3(?:0\\d|1[0-8]|[25][02-9]|3[02-579]|[468][0-46-9]|7[1-35-79]|9[2-578])|4(?:0[03-9]|[137]\\d|[28][02-57-9]|4[02-69]|5[0-8]|[69][0-79])|5(?:0[1-35-9]|[16]\\d|2[024-9]|3[015689]|4[02-9]|5[03-9]|7[0-35-9]|8[0-468]|9[0-57-9])|6(?:0[034689]|1\\d|2[0-35689]|[38][013-9]|4[1-467]|5[0-69]|6[13-9]|7[0-8]|9[0-24578])|7(?:0[0246-9]|2\\d|3[0236-8]|4[03-9]|5[0-46-9]|6[013-9]|7[0-35-9]|8[024-9]|9[02-9])|8(?:0[35-9]|2[1-57-9]|3[02-578]|4[0-578]|5[124-9]|6[2-69]|7\\d|8[02-9]|9[02569])|9(?:0[02-589]|[18]\\d|2[02-689]|3[1-57-9]|4[2-9]|5[0-579]|6[2-47-9]|7[0-24578]|9[2-57]))\\d)\\d)|2(?:0[013478]|3[0189]|4[017]|8[0-46-9]|9[0-2])\\d{3})\\d{4}|1(?:2(?:0(?:46[1-4]|87[2-9])|545[1-79]|76(?:2\\d|3[1-8]|6[1-6])|9(?:7(?:2[0-4]|3[2-5])|8(?:2[2-8]|7[0-47-9]|8[3-5])))|3(?:6(?:38[2-5]|47[23])|8(?:47[04-9]|64[0157-9]))|4(?:044[1-7]|20(?:2[23]|8\\d)|6(?:0(?:30|5[2-57]|6[1-8]|7[2-8])|140)|8(?:052|87[1-3]))|5(?:2(?:4(?:3[2-79]|6\\d)|76\\d)|6(?:26[06-9]|686))|6(?:06(?:4\\d|7[4-79])|295[5-7]|35[34]\\d|47(?:24|61)|59(?:5[08]|6[67]|74)|9(?:55[0-4]|77[23]))|7(?:26(?:6[13-9]|7[0-7])|(?:442|688)\\d|50(?:2[0-3]|[3-68]2|76))|8(?:27[56]\\d|37(?:5[2-5]|8[239])|843[2-58])|9(?:0(?:0(?:6[1-8]|85)|52\\d)|3583|4(?:66[1-8]|9(?:2[01]|81))|63(?:23|3[1-4])|9561))\\d{3}",[9,10]],["7(?:457[0-57-9]|700[01]|911[028])\\d{5}|7(?:[1-3]\\d\\d|4(?:[0-46-9]\\d|5[0-689])|5(?:0[0-8]|[13-9]\\d|2[0-35-9])|7(?:0[1-9]|[1-7]\\d|8[02-9]|9[0-689])|8(?:[014-9]\\d|[23][0-8])|9(?:[024-9]\\d|1[02-9]|3[0-689]))\\d{6}",[10]],["80[08]\\d{7}|800\\d{6}|8001111"],["(?:8(?:4[2-5]|7[0-3])|9(?:[01]\\d|8[2-49]))\\d{7}|845464\\d",[7,10]],["70\\d{8}",[10]],0,["(?:3[0347]|55)\\d{8}",[10]],["76(?:464|652)\\d{5}|76(?:0[0-28]|2[356]|34|4[01347]|5[49]|6[0-369]|77|8[14]|9[139])\\d{6}",[10]],["56\\d{8}",[10]]],0," x"],GD:["1","011","(?:473|[58]\\d\\d|900)\\d{7}",[10],0,"1",0,"([2-9]\\d{6})$|1","473$1",0,"473"],GE:["995","00","(?:[3-57]\\d\\d|800)\\d{6}",[9],[["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["70"],"0$1"],["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["32"],"0$1"],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[57]"]],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[348]"],"0$1"]],"0"],GF:["594","00","(?:[56]94\\d|7093)\\d{5}|(?:80|9\\d)\\d{7}",[9],[["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[5-7]|9[47]"],"0$1"],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[89]"],"0$1"]],"0"],GG:["44","00","(?:1481|[357-9]\\d{3})\\d{6}|8\\d{6}(?:\\d{2})?",[7,9,10],0,"0",0,"([25-9]\\d{5})$|0","1481$1",0,0,[["1481[25-9]\\d{5}",[10]],["7(?:(?:781|839)\\d|911[17])\\d{5}",[10]],["80[08]\\d{7}|800\\d{6}|8001111"],["(?:8(?:4[2-5]|7[0-3])|9(?:[01]\\d|8[0-3]))\\d{7}|845464\\d",[7,10]],["70\\d{8}",[10]],0,["(?:3[0347]|55)\\d{8}",[10]],["76(?:464|652)\\d{5}|76(?:0[0-28]|2[356]|34|4[01347]|5[49]|6[0-369]|77|8[14]|9[139])\\d{6}",[10]],["56\\d{8}",[10]]]],GH:["233","00","(?:[235]\\d{3}|800)\\d{5}",[8,9],[["(\\d{3})(\\d{5})","$1 $2",["8"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[235]"],"0$1"]],"0"],GI:["350","00","(?:[25]\\d|60)\\d{6}",[8],[["(\\d{3})(\\d{5})","$1 $2",["2"]]]],GL:["299","00","(?:19|[2-689]\\d|70)\\d{4}",[6],[["(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3",["19|[2-9]"]]]],GM:["220","00","[2-9]\\d{6}",[7],[["(\\d{3})(\\d{4})","$1 $2",["[2-9]"]]]],GN:["224","00","722\\d{6}|(?:3|6\\d)\\d{7}",[8,9],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["3"]],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[67]"]]]],GP:["590","00","(?:590\\d|7090)\\d{5}|(?:69|80|9\\d)\\d{7}",[9],[["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[5-79]"],"0$1"],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["8"],"0$1"]],"0",0,0,0,0,0,[["590(?:0[1-68]|[14][0-24-9]|2[0-68]|3[1-9]|5[3-579]|[68][0-689]|7[08]|9\\d)\\d{4}"],["(?:69(?:0\\d\\d|1(?:2[2-9]|3[0-5])|4(?:0[89]|1[2-6]|9\\d)|6(?:1[016-9]|5[0-4]|[67]\\d))|7090[0-4])\\d{4}"],["80[0-5]\\d{6}"],0,0,0,0,0,["9(?:(?:39[5-7]|76[018])\\d|475[0-6])\\d{4}"]]],GQ:["240","00","222\\d{6}|(?:3\\d|55|[89]0)\\d{7}",[9],[["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[235]"]],["(\\d{3})(\\d{6})","$1 $2",["[89]"]]]],GR:["30","00","5005000\\d{3}|8\\d{9,11}|(?:[269]\\d|70)\\d{8}",[10,11,12],[["(\\d{2})(\\d{4})(\\d{4})","$1 $2 $3",["21|7"]],["(\\d{4})(\\d{6})","$1 $2",["2(?:2|3[2-57-9]|4[2-469]|5[2-59]|6[2-9]|7[2-69]|8[2-49])|5"]],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["[2689]"]],["(\\d{3})(\\d{3,4})(\\d{5})","$1 $2 $3",["8"]]]],GT:["502","00","80\\d{6}|(?:1\\d{3}|[2-7])\\d{7}",[8,11],[["(\\d{4})(\\d{4})","$1 $2",["[2-8]"]],["(\\d{4})(\\d{3})(\\d{4})","$1 $2 $3",["1"]]]],GU:["1","011","(?:[58]\\d\\d|671|900)\\d{7}",[10],0,"1",0,"([2-9]\\d{6})$|1","671$1",0,"671"],GW:["245","00","[49]\\d{8}|4\\d{6}",[7,9],[["(\\d{3})(\\d{4})","$1 $2",["40"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[49]"]]]],GY:["592","001","(?:[2-8]\\d{3}|9008)\\d{3}",[7],[["(\\d{3})(\\d{4})","$1 $2",["[2-9]"]]]],HK:["852","00(?:30|5[09]|[126-9]?)","8[0-46-9]\\d{6,7}|9\\d{4,7}|(?:[2-7]|9\\d{3})\\d{7}",[5,6,7,8,9,11],[["(\\d{3})(\\d{2,5})","$1 $2",["900","9003"]],["(\\d{4})(\\d{4})","$1 $2",["[2-7]|8[1-4]|9(?:0[1-9]|[1-8])"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["8"]],["(\\d{3})(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3 $4",["9"]]],0,0,0,0,0,0,0,"00"],HN:["504","00","8\\d{10}|[237-9]\\d{7}",[8,11],[["(\\d{4})(\\d{4})","$1-$2",["[237-9]"]]]],HR:["385","00","(?:[24-69]\\d|3[0-79])\\d{7}|80\\d{5,7}|[1-79]\\d{7}|6\\d{5,6}",[6,7,8,9],[["(\\d{2})(\\d{2})(\\d{2,3})","$1 $2 $3",["6[01]"],"0$1"],["(\\d{3})(\\d{2})(\\d{2,3})","$1 $2 $3",["8"],"0$1"],["(\\d)(\\d{4})(\\d{3})","$1 $2 $3",["1"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["6|7[245]"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["9"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["[2-57]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["8"],"0$1"]],"0"],HT:["509","00","(?:[2-489]\\d|55)\\d{6}",[8],[["(\\d{2})(\\d{2})(\\d{4})","$1 $2 $3",["[2-589]"]]]],HU:["36","00","[235-7]\\d{8}|[1-9]\\d{7}",[8,9],[["(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["1"],"(06 $1)"],["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["[27][2-9]|3[2-7]|4[24-9]|5[2-79]|6|8[2-57-9]|9[2-69]"],"(06 $1)"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["[2-9]"],"06 $1"]],"06"],ID:["62","00[89]","00[1-9]\\d{9,14}|(?:[1-36]|8\\d{5})\\d{6}|00\\d{9}|[1-9]\\d{8,10}|[2-9]\\d{7}",[7,8,9,10,11,12,13,14,15,16,17],[["(\\d)(\\d{3})(\\d{3})","$1 $2 $3",["15"]],["(\\d{2})(\\d{5,9})","$1 $2",["2[124]|[36]1"],"(0$1)"],["(\\d{3})(\\d{5,7})","$1 $2",["800"],"0$1"],["(\\d{3})(\\d{5,8})","$1 $2",["[2-79]"],"(0$1)"],["(\\d{3})(\\d{3,4})(\\d{3})","$1-$2-$3",["8[1-35-9]"],"0$1"],["(\\d{3})(\\d{6,8})","$1 $2",["1"],"0$1"],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["804"],"0$1"],["(\\d{3})(\\d)(\\d{3})(\\d{3})","$1 $2 $3 $4",["80"],"0$1"],["(\\d{3})(\\d{4})(\\d{4,5})","$1-$2-$3",["8"],"0$1"]],"0"],IE:["353","00","(?:1\\d|[2569])\\d{6,8}|4\\d{6,9}|7\\d{8}|8\\d{8,9}",[7,8,9,10],[["(\\d{2})(\\d{5})","$1 $2",["2[24-9]|47|58|6[237-9]|9[35-9]"],"(0$1)"],["(\\d{3})(\\d{5})","$1 $2",["[45]0"],"(0$1)"],["(\\d)(\\d{3,4})(\\d{4})","$1 $2 $3",["1"],"(0$1)"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["[2569]|4[1-69]|7[14]"],"(0$1)"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["70"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["81"],"(0$1)"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[78]"],"0$1"],["(\\d{4})(\\d{3})(\\d{3})","$1 $2 $3",["1"]],["(\\d{2})(\\d{4})(\\d{4})","$1 $2 $3",["4"],"(0$1)"],["(\\d{2})(\\d)(\\d{3})(\\d{4})","$1 $2 $3 $4",["8"],"0$1"]],"0"],IL:["972","0(?:0|1[2-9])","1\\d{6}(?:\\d{3,5})?|[57]\\d{8}|[1-489]\\d{7}",[7,8,9,10,11,12],[["(\\d{4})(\\d{3})","$1-$2",["125"]],["(\\d{4})(\\d{2})(\\d{2})","$1-$2-$3",["121"]],["(\\d)(\\d{3})(\\d{4})","$1-$2-$3",["[2-489]"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1-$2-$3",["[57]"],"0$1"],["(\\d{4})(\\d{3})(\\d{3})","$1-$2-$3",["12"]],["(\\d{4})(\\d{6})","$1-$2",["159"]],["(\\d)(\\d{3})(\\d{3})(\\d{3})","$1-$2-$3-$4",["1[7-9]"]],["(\\d{3})(\\d{1,2})(\\d{3})(\\d{4})","$1-$2 $3-$4",["15"]]],"0"],IM:["44","00","1624\\d{6}|(?:[3578]\\d|90)\\d{8}",[10],0,"0",0,"([25-8]\\d{5})$|0","1624$1",0,"74576|(?:16|7[56])24"],IN:["91","00","(?:000800|[2-9]\\d\\d)\\d{7}|1\\d{7,12}",[8,9,10,11,12,13],[["(\\d{8})","$1",["5(?:0|2[23]|3[03]|[67]1|88)","5(?:0|2(?:21|3)|3(?:0|3[23])|616|717|888)","5(?:0|2(?:21|3)|3(?:0|3[23])|616|717|8888)"],0,1],["(\\d{4})(\\d{4,5})","$1 $2",["180","1800"],0,1],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["140"],0,1],["(\\d{2})(\\d{4})(\\d{4})","$1 $2 $3",["11|2[02]|33|4[04]|79[1-7]|80[2-46]","11|2[02]|33|4[04]|79(?:[1-6]|7[19])|80(?:[2-4]|6[0-589])","11|2[02]|33|4[04]|79(?:[124-6]|3(?:[02-9]|1[0-24-9])|7(?:1|9[1-6]))|80(?:[2-4]|6[0-589])"],"0$1",1],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["1(?:2[0-249]|3[0-25]|4[145]|[68]|7[1257])|2(?:1[257]|3[013]|4[01]|5[0137]|6[0158]|78|8[1568])|3(?:26|4[1-3]|5[34]|6[01489]|7[02-46]|8[159])|4(?:1[36]|2[1-47]|5[12]|6[0-26-9]|7[0-24-9]|8[013-57]|9[014-7])|5(?:1[025]|22|[36][25]|4[28]|5[12]|[78]1)|6(?:12|[2-4]1|5[17]|6[13]|80)|7(?:12|3[134]|4[47]|61|88)|8(?:16|2[014]|3[126]|6[136]|7[078]|8[34]|91)|(?:43|59|75)[15]|(?:1[59]|29|67|72)[14]","1(?:2[0-24]|3[0-25]|4[145]|[59][14]|6[1-9]|7[1257]|8[1-57-9])|2(?:1[257]|3[013]|4[01]|5[0137]|6[058]|78|8[1568]|9[14])|3(?:26|4[1-3]|5[34]|6[01489]|7[02-46]|8[159])|4(?:1[36]|2[1-47]|3[15]|5[12]|6[0-26-9]|7[0-24-9]|8[013-57]|9[014-7])|5(?:1[025]|22|[36][25]|4[28]|[578]1|9[15])|674|7(?:(?:2[14]|3[34]|5[15])[2-6]|61[346]|88[0-8])|8(?:70[2-6]|84[235-7]|91[3-7])|(?:1(?:29|60|8[06])|261|552|6(?:12|[2-47]1|5[17]|6[13]|80)|7(?:12|31|4[47])|8(?:16|2[014]|3[126]|6[136]|7[78]|83))[2-7]","1(?:2[0-24]|3[0-25]|4[145]|[59][14]|6[1-9]|7[1257]|8[1-57-9])|2(?:1[257]|3[013]|4[01]|5[0137]|6[058]|78|8[1568]|9[14])|3(?:26|4[1-3]|5[34]|6[01489]|7[02-46]|8[159])|4(?:1[36]|2[1-47]|3[15]|5[12]|6[0-26-9]|7[0-24-9]|8[013-57]|9[014-7])|5(?:1[025]|22|[36][25]|4[28]|[578]1|9[15])|6(?:12(?:[2-6]|7[0-8])|74[2-7])|7(?:(?:2[14]|5[15])[2-6]|3171|61[346]|88(?:[2-7]|82))|8(?:70[2-6]|84(?:[2356]|7[19])|91(?:[3-6]|7[19]))|73[134][2-6]|(?:74[47]|8(?:16|2[014]|3[126]|6[136]|7[78]|83))(?:[2-6]|7[19])|(?:1(?:29|60|8[06])|261|552|6(?:[2-4]1|5[17]|6[13]|7(?:1|4[0189])|80)|7(?:12|88[01]))[2-7]"],"0$1",1],["(\\d{4})(\\d{3})(\\d{3})","$1 $2 $3",["1(?:[2-479]|5[0235-9])|[2-5]|6(?:1[1358]|2[2457-9]|3[2-5]|4[235-7]|5[2-689]|6[24578]|7[235689]|8[1-6])|7(?:1[013-9]|28|3[129]|4[1-35689]|5[29]|6[02-5]|70)|807","1(?:[2-479]|5[0235-9])|[2-5]|6(?:1[1358]|2(?:[2457]|84|95)|3(?:[2-4]|55)|4[235-7]|5[2-689]|6[24578]|7[235689]|8[1-6])|7(?:1(?:[013-8]|9[6-9])|28[6-8]|3(?:17|2[0-49]|9[2-57])|4(?:1[2-4]|[29][0-7]|3[0-8]|[56]|8[0-24-7])|5(?:2[1-3]|9[0-6])|6(?:0[5689]|2[5-9]|3[02-8]|4|5[0-367])|70[13-7])|807[19]","1(?:[2-479]|5(?:[0236-9]|5[013-9]))|[2-5]|6(?:2(?:84|95)|355|83)|73179|807(?:1|9[1-3])|(?:1552|6(?:1[1358]|2[2457]|3[2-4]|4[235-7]|5[2-689]|6[24578]|7[235689]|8[124-6])\\d|7(?:1(?:[013-8]\\d|9[6-9])|28[6-8]|3(?:2[0-49]|9[2-57])|4(?:1[2-4]|[29][0-7]|3[0-8]|[56]\\d|8[0-24-7])|5(?:2[1-3]|9[0-6])|6(?:0[5689]|2[5-9]|3[02-8]|4\\d|5[0-367])|70[13-7]))[2-7]"],"0$1",1],["(\\d{5})(\\d{5})","$1 $2",["[6-9]"],"0$1",1],["(\\d{4})(\\d{2,4})(\\d{4})","$1 $2 $3",["1(?:6|8[06])","1(?:6|8[06]0)"],0,1],["(\\d{4})(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3 $4",["18"],0,1]],"0"],IO:["246","00","3\\d{6}",[7],[["(\\d{3})(\\d{4})","$1 $2",["3"]]]],IQ:["964","00","(?:1|7\\d\\d)\\d{7}|[2-6]\\d{7,8}",[8,9,10],[["(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["1"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["[2-6]"],"0$1"],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["7"],"0$1"]],"0"],IR:["98","00","[1-9]\\d{9}|(?:[1-8]\\d\\d|9)\\d{3,4}",[4,5,6,7,10],[["(\\d{4,5})","$1",["96"],"0$1"],["(\\d{2})(\\d{4,5})","$1 $2",["(?:1[137]|2[13-68]|3[1458]|4[145]|5[1468]|6[16]|7[1467]|8[13467])[12689]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3,4})","$1 $2 $3",["9"],"0$1"],["(\\d{2})(\\d{4})(\\d{4})","$1 $2 $3",["[1-8]"],"0$1"]],"0"],IS:["354","00|1(?:0(?:01|[12]0)|100)","(?:38\\d|[4-9])\\d{6}",[7,9],[["(\\d{3})(\\d{4})","$1 $2",["[4-9]"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["3"]]],0,0,0,0,0,0,0,"00"],IT:["39","00","0\\d{5,10}|1\\d{8,10}|3(?:[0-8]\\d{7,10}|9\\d{7,8})|(?:43|55|70)\\d{8}|8\\d{5}(?:\\d{2,4})?",[6,7,8,9,10,11,12],[["(\\d{2})(\\d{4,6})","$1 $2",["0[26]"]],["(\\d{3})(\\d{3,6})","$1 $2",["0[13-57-9][0159]|8(?:03|4[17]|9[2-5])","0[13-57-9][0159]|8(?:03|4[17]|9(?:2|3[04]|[45][0-4]))"]],["(\\d{4})(\\d{2,6})","$1 $2",["0(?:[13-579][2-46-8]|8[236-8])"]],["(\\d{4})(\\d{4})","$1 $2",["894"]],["(\\d{2})(\\d{3,4})(\\d{4})","$1 $2 $3",["0[26]|5"]],["(\\d{3})(\\d{3})(\\d{3,4})","$1 $2 $3",["1(?:44|[679])|[378]|43"]],["(\\d{3})(\\d{3,4})(\\d{4})","$1 $2 $3",["0[13-57-9][0159]|14"]],["(\\d{2})(\\d{4})(\\d{5})","$1 $2 $3",["0[26]"]],["(\\d{4})(\\d{3})(\\d{4})","$1 $2 $3",["0"]],["(\\d{3})(\\d{4})(\\d{4,5})","$1 $2 $3",["3"]]],0,0,0,0,0,0,[["0669[0-79]\\d{1,6}|0(?:1(?:[0159]\\d|[27][1-5]|31|4[1-4]|6[1356]|8[2-57])|2\\d\\d|3(?:[0159]\\d|2[1-4]|3[12]|[48][1-6]|6[2-59]|7[1-7])|4(?:[0159]\\d|[23][1-9]|4[245]|6[1-5]|7[1-4]|81)|5(?:[0159]\\d|2[1-5]|3[2-6]|4[1-79]|6[4-6]|7[1-578]|8[3-8])|6(?:[0-57-9]\\d|6[0-8])|7(?:[0159]\\d|2[12]|3[1-7]|4[2-46]|6[13569]|7[13-6]|8[1-59])|8(?:[0159]\\d|2[3-578]|3[1-356]|[6-8][1-5])|9(?:[0159]\\d|[238][1-5]|4[12]|6[1-8]|7[1-6]))\\d{2,7}",[6,7,8,9,10,11]],["3[2-9]\\d{7,8}|(?:31|43)\\d{8}",[9,10]],["80(?:0\\d{3}|3)\\d{3}",[6,9]],["(?:0878\\d{3}|89(?:2\\d|3[04]|4(?:[0-4]|[5-9]\\d\\d)|5[0-4]))\\d\\d|(?:1(?:44|6[346])|89(?:38|5[5-9]|9))\\d{6}",[6,8,9,10]],["1(?:78\\d|99)\\d{6}",[9,10]],["3[2-8]\\d{9,10}",[11,12]],0,0,["55\\d{8}",[10]],["84(?:[08]\\d{3}|[17])\\d{3}",[6,9]]]],JE:["44","00","1534\\d{6}|(?:[3578]\\d|90)\\d{8}",[10],0,"0",0,"([0-24-8]\\d{5})$|0","1534$1",0,0,[["1534[0-24-8]\\d{5}"],["7(?:(?:(?:50|82)9|937)\\d|7(?:00[378]|97\\d))\\d{5}"],["80(?:07(?:35|81)|8901)\\d{4}"],["(?:8(?:4(?:4(?:4(?:05|42|69)|703)|5(?:041|800))|7(?:0002|1206))|90(?:066[59]|1810|71(?:07|55)))\\d{4}"],["701511\\d{4}"],0,["(?:3(?:0(?:07(?:35|81)|8901)|3\\d{4}|4(?:4(?:4(?:05|42|69)|703)|5(?:041|800))|7(?:0002|1206))|55\\d{4})\\d{4}"],["76(?:464|652)\\d{5}|76(?:0[0-28]|2[356]|34|4[01347]|5[49]|6[0-369]|77|8[14]|9[139])\\d{6}"],["56\\d{8}"]]],JM:["1","011","(?:[58]\\d\\d|658|900)\\d{7}",[10],0,"1",0,0,0,0,"658|876"],JO:["962","00","(?:(?:[2689]|7\\d)\\d|32|53)\\d{6}",[8,9],[["(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["[2356]|87"],"(0$1)"],["(\\d{3})(\\d{5,6})","$1 $2",["[89]"],"0$1"],["(\\d{2})(\\d{7})","$1 $2",["70"],"0$1"],["(\\d)(\\d{4})(\\d{4})","$1 $2 $3",["7"],"0$1"]],"0"],JP:["81","010","00[1-9]\\d{6,14}|[257-9]\\d{9}|(?:00|[1-9]\\d\\d)\\d{6}",[8,9,10,11,12,13,14,15,16,17],[["(\\d{3})(\\d{3})(\\d{3})","$1-$2-$3",["(?:12|57|99)0"],"0$1"],["(\\d{4})(\\d)(\\d{4})","$1-$2-$3",["1(?:26|3[79]|4[56]|5[4-68]|6[3-5])|499|5(?:76|97)|746|8(?:3[89]|47|51)|9(?:80|9[16])","1(?:267|3(?:7[247]|9[278])|466|5(?:47|58|64)|6(?:3[245]|48|5[4-68]))|499[2468]|5(?:76|97)9|7468|8(?:3(?:8[7-9]|96)|477|51[2-9])|9(?:802|9(?:1[23]|69))|1(?:45|58)[67]","1(?:267|3(?:7[247]|9[278])|466|5(?:47|58|64)|6(?:3[245]|48|5[4-68]))|499[2468]|5(?:769|979[2-69])|7468|8(?:3(?:8[7-9]|96[2457-9])|477|51[2-9])|9(?:802|9(?:1[23]|69))|1(?:45|58)[67]"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1-$2-$3",["60"],"0$1"],["(\\d)(\\d{4})(\\d{4})","$1-$2-$3",["[36]|4(?:2[09]|7[01])","[36]|4(?:2(?:0|9[02-69])|7(?:0[019]|1))"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1-$2-$3",["1(?:1|5[45]|77|88|9[69])|2(?:2[1-37]|3[0-269]|4[59]|5|6[24]|7[1-358]|8[1369]|9[0-38])|4(?:[28][1-9]|3[0-57]|[45]|6[248]|7[2-579]|9[29])|5(?:2|3[0459]|4[0-369]|5[29]|8[02389]|9[0-389])|7(?:2[02-46-9]|34|[58]|6[0249]|7[57]|9[2-6])|8(?:2[124589]|3[26-9]|49|51|6|7[0-468]|8[68]|9[019])|9(?:[23][1-9]|4[15]|5[138]|6[1-3]|7[156]|8[189]|9[1-489])","1(?:1|5(?:4[018]|5[017])|77|88|9[69])|2(?:2(?:[127]|3[014-9])|3[0-269]|4[59]|5(?:[1-3]|5[0-69]|9[19])|62|7(?:[1-35]|8[0189])|8(?:[16]|3[0134]|9[0-5])|9(?:[028]|17))|4(?:2(?:[13-79]|8[014-6])|3[0-57]|[45]|6[248]|7[2-47]|8[1-9]|9[29])|5(?:2|3(?:[045]|9[0-8])|4[0-369]|5[29]|8[02389]|9[0-3])|7(?:2[02-46-9]|34|[58]|6[0249]|7[57]|9(?:[23]|4[0-59]|5[01569]|6[0167]))|8(?:2(?:[1258]|4[0-39]|9[0-2469])|3(?:[29]|60)|49|51|6(?:[0-24]|36|5[0-3589]|7[23]|9[01459])|7[0-468]|8[68])|9(?:[23][1-9]|4[15]|5[138]|6[1-3]|7[156]|8[189]|9(?:[1289]|3[34]|4[0178]))|(?:264|837)[016-9]|2(?:57|93)[015-9]|(?:25[0468]|422|838)[01]|(?:47[59]|59[89]|8(?:6[68]|9))[019]","1(?:1|5(?:4[018]|5[017])|77|88|9[69])|2(?:2[127]|3[0-269]|4[59]|5(?:[1-3]|5[0-69]|9(?:17|99))|6(?:2|4[016-9])|7(?:[1-35]|8[0189])|8(?:[16]|3[0134]|9[0-5])|9(?:[028]|17))|4(?:2(?:[13-79]|8[014-6])|3[0-57]|[45]|6[248]|7[2-47]|9[29])|5(?:2|3(?:[045]|9(?:[0-58]|6[4-9]|7[0-35689]))|4[0-369]|5[29]|8[02389]|9[0-3])|7(?:2[02-46-9]|34|[58]|6[0249]|7[57]|9(?:[23]|4[0-59]|5[01569]|6[0167]))|8(?:2(?:[1258]|4[0-39]|9[0169])|3(?:[29]|60|7(?:[017-9]|6[6-8]))|49|51|6(?:[0-24]|36[2-57-9]|5(?:[0-389]|5[23])|6(?:[01]|9[178])|7(?:2[2-468]|3[78])|9[0145])|7[0-468]|8[68])|9(?:4[15]|5[138]|7[156]|8[189]|9(?:[1289]|3(?:31|4[357])|4[0178]))|(?:8294|96)[1-3]|2(?:57|93)[015-9]|(?:223|8699)[014-9]|(?:25[0468]|422|838)[01]|(?:48|8292|9[23])[1-9]|(?:47[59]|59[89]|8(?:68|9))[019]"],"0$1"],["(\\d{3})(\\d{2})(\\d{4})","$1-$2-$3",["[14]|[289][2-9]|5[3-9]|7[2-4679]"],"0$1"],["(\\d{3})(\\d{3})(\\d{4})","$1-$2-$3",["800"],"0$1"],["(\\d{2})(\\d{4})(\\d{4})","$1-$2-$3",["[257-9]"],"0$1"]],"0",0,"(000[259]\\d{6})$|(?:(?:003768)0?)|0","$1"],KE:["254","000","(?:[17]\\d\\d|900)\\d{6}|(?:2|80)0\\d{6,7}|[4-6]\\d{6,8}",[7,8,9,10],[["(\\d{2})(\\d{5,7})","$1 $2",["[24-6]"],"0$1"],["(\\d{3})(\\d{6})","$1 $2",["[17]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3,4})","$1 $2 $3",["[89]"],"0$1"]],"0"],KG:["996","00","8\\d{9}|[235-9]\\d{8}",[9,10],[["(\\d{4})(\\d{5})","$1 $2",["3(?:1[346]|[24-79])"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[235-79]|88"],"0$1"],["(\\d{3})(\\d{3})(\\d)(\\d{2,3})","$1 $2 $3 $4",["8"],"0$1"]],"0"],KH:["855","00[14-9]","1\\d{9}|[1-9]\\d{7,8}",[8,9,10],[["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["[1-9]"],"0$1"],["(\\d{4})(\\d{3})(\\d{3})","$1 $2 $3",["1"]]],"0"],KI:["686","00","(?:[37]\\d|6[0-79])\\d{6}|(?:[2-48]\\d|50)\\d{3}",[5,8],0,"0"],KM:["269","00","[3478]\\d{6}",[7],[["(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3",["[3478]"]]]],KN:["1","011","(?:[58]\\d\\d|900)\\d{7}",[10],0,"1",0,"([2-7]\\d{6})$|1","869$1",0,"869"],KP:["850","00|99","85\\d{6}|(?:19\\d|[2-7])\\d{7}",[8,10],[["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["8"],"0$1"],["(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["[2-7]"],"0$1"],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["1"],"0$1"]],"0"],KR:["82","00(?:[125689]|3(?:[46]5|91)|7(?:00|27|3|55|6[126]))","00[1-9]\\d{8,11}|(?:[12]|5\\d{3})\\d{7}|[13-6]\\d{9}|(?:[1-6]\\d|80)\\d{7}|[3-6]\\d{4,5}|(?:00|7)0\\d{8}",[5,6,8,9,10,11,12,13,14],[["(\\d{2})(\\d{3,4})","$1-$2",["(?:3[1-3]|[46][1-4]|5[1-5])1"],"0$1"],["(\\d{4})(\\d{4})","$1-$2",["1"]],["(\\d)(\\d{3,4})(\\d{4})","$1-$2-$3",["2"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1-$2-$3",["[36]0|8"],"0$1"],["(\\d{2})(\\d{3,4})(\\d{4})","$1-$2-$3",["[1346]|5[1-5]"],"0$1"],["(\\d{2})(\\d{4})(\\d{4})","$1-$2-$3",["[57]"],"0$1"],["(\\d{2})(\\d{5})(\\d{4})","$1-$2-$3",["5"],"0$1"]],"0",0,"0(8(?:[1-46-8]|5\\d\\d))?"],KW:["965","00","18\\d{5}|(?:[2569]\\d|41)\\d{6}",[7,8],[["(\\d{4})(\\d{3,4})","$1 $2",["[169]|2(?:[235]|4[1-35-9])|52"]],["(\\d{3})(\\d{5})","$1 $2",["[245]"]]]],KY:["1","011","(?:345|[58]\\d\\d|900)\\d{7}",[10],0,"1",0,"([2-9]\\d{6})$|1","345$1",0,"345"],KZ:["7","810","(?:33622|8\\d{8})\\d{5}|[78]\\d{9}",[10,14],0,"8",0,0,0,0,"33|7",0,"8~10"],LA:["856","00","[23]\\d{9}|3\\d{8}|(?:[235-8]\\d|41)\\d{6}",[8,9,10],[["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["2[13]|3[14]|[4-8]"],"0$1"],["(\\d{2})(\\d{2})(\\d{2})(\\d{3})","$1 $2 $3 $4",["30[0135-9]"],"0$1"],["(\\d{2})(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3 $4",["[23]"],"0$1"]],"0"],LB:["961","00","[27-9]\\d{7}|[13-9]\\d{6}",[7,8],[["(\\d)(\\d{3})(\\d{3})","$1 $2 $3",["[13-69]|7(?:[2-57]|62|8[0-7]|9[04-9])|8[02-9]"],"0$1"],["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["[27-9]"]]],"0"],LC:["1","011","(?:[58]\\d\\d|758|900)\\d{7}",[10],0,"1",0,"([2-8]\\d{6})$|1","758$1",0,"758"],LI:["423","00","[68]\\d{8}|(?:[2378]\\d|90)\\d{5}",[7,9],[["(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3",["[2379]|8(?:0[09]|7)","[2379]|8(?:0(?:02|9)|7)"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["8"]],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["69"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["6"]]],"0",0,"(1001)|0"],LK:["94","00","[1-9]\\d{8}",[9],[["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["7"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[1-689]"],"0$1"]],"0"],LR:["231","00","(?:[245]\\d|33|77|88)\\d{7}|(?:2\\d|[4-6])\\d{6}",[7,8,9],[["(\\d)(\\d{3})(\\d{3})","$1 $2 $3",["4[67]|[56]"],"0$1"],["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["2"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[2-578]"],"0$1"]],"0"],LS:["266","00","(?:[256]\\d\\d|800)\\d{5}",[8],[["(\\d{4})(\\d{4})","$1 $2",["[2568]"]]]],LT:["370","00","(?:[3469]\\d|52|[78]0)\\d{6}",[8],[["(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["52[0-7]"],"(0-$1)",1],["(\\d{3})(\\d{2})(\\d{3})","$1 $2 $3",["[7-9]"],"0 $1",1],["(\\d{2})(\\d{6})","$1 $2",["37|4(?:[15]|6[1-8])"],"(0-$1)",1],["(\\d{3})(\\d{5})","$1 $2",["[3-6]"],"(0-$1)",1]],"0",0,"[08]"],LU:["352","00","35[013-9]\\d{4,8}|6\\d{8}|35\\d{2,4}|(?:[2457-9]\\d|3[0-46-9])\\d{2,9}",[4,5,6,7,8,9,10,11],[["(\\d{2})(\\d{3})","$1 $2",["2(?:0[2-689]|[2-9])|[3-57]|8(?:0[2-9]|[13-9])|9(?:0[89]|[2-579])"]],["(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3",["2(?:0[2-689]|[2-9])|[3-57]|8(?:0[2-9]|[13-9])|9(?:0[89]|[2-579])"]],["(\\d{2})(\\d{2})(\\d{3})","$1 $2 $3",["20[2-689]"]],["(\\d{2})(\\d{2})(\\d{2})(\\d{1,2})","$1 $2 $3 $4",["2(?:[0367]|4[3-8])"]],["(\\d{3})(\\d{2})(\\d{3})","$1 $2 $3",["80[01]|90[015]"]],["(\\d{2})(\\d{2})(\\d{2})(\\d{3})","$1 $2 $3 $4",["20"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["6"]],["(\\d{2})(\\d{2})(\\d{2})(\\d{2})(\\d{1,2})","$1 $2 $3 $4 $5",["2(?:[0367]|4[3-8])"]],["(\\d{2})(\\d{2})(\\d{2})(\\d{1,5})","$1 $2 $3 $4",["[3-57]|8[13-9]|9(?:0[89]|[2-579])|(?:2|80)[2-9]"]]],0,0,"(15(?:0[06]|1[12]|[35]5|4[04]|6[26]|77|88|99)\\d)"],LV:["371","00","(?:[268]\\d|90)\\d{6}",[8],[["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["[269]|8[01]"]]]],LY:["218","00","[2-9]\\d{8}",[9],[["(\\d{2})(\\d{7})","$1-$2",["[2-9]"],"0$1"]],"0"],MA:["212","00","[5-8]\\d{8}",[9],[["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["5[45]"],"0$1"],["(\\d{4})(\\d{5})","$1-$2",["5(?:2[2-46-9]|3[3-9]|9)|8(?:0[89]|92)"],"0$1"],["(\\d{2})(\\d{7})","$1-$2",["8"],"0$1"],["(\\d{3})(\\d{6})","$1-$2",["[5-7]"],"0$1"]],"0",0,0,0,0,0,[["5(?:2(?:[0-25-79]\\d|3[1-578]|4[02-46-8]|8[0235-7])|3(?:[0-47]\\d|5[02-9]|6[02-8]|8[014-9]|9[3-9])|(?:4[067]|5[03])\\d)\\d{5}"],["(?:6(?:[0-79]\\d|8[0-247-9])|7(?:[0167]\\d|2[0-467]|5[0-3]|8[0-5]))\\d{6}"],["80[0-7]\\d{6}"],["89\\d{7}"],0,0,0,0,["(?:592(?:4[0-2]|93)|80[89]\\d\\d)\\d{4}"]]],MC:["377","00","(?:[3489]|6\\d)\\d{7}",[8,9],[["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["4"],"0$1"],["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[389]"]],["(\\d)(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4 $5",["6"],"0$1"]],"0"],MD:["373","00","(?:[235-7]\\d|[89]0)\\d{6}",[8],[["(\\d{3})(\\d{5})","$1 $2",["[89]"],"0$1"],["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["22|3"],"0$1"],["(\\d{3})(\\d{2})(\\d{3})","$1 $2 $3",["[25-7]"],"0$1"]],"0"],ME:["382","00","(?:20|[3-79]\\d)\\d{6}|80\\d{6,7}",[8,9],[["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["[2-9]"],"0$1"]],"0"],MF:["590","00","(?:590\\d|7090)\\d{5}|(?:69|80|9\\d)\\d{7}",[9],0,"0",0,0,0,0,0,[["590(?:0[079]|[14]3|[27][79]|3[03-7]|5[0-268]|87)\\d{4}"],["(?:69(?:0\\d\\d|1(?:2[2-9]|3[0-5])|4(?:0[89]|1[2-6]|9\\d)|6(?:1[016-9]|5[0-4]|[67]\\d))|7090[0-4])\\d{4}"],["80[0-5]\\d{6}"],0,0,0,0,0,["9(?:(?:39[5-7]|76[018])\\d|475[0-6])\\d{4}"]]],MG:["261","00","[23]\\d{8}",[9],[["(\\d{2})(\\d{2})(\\d{3})(\\d{2})","$1 $2 $3 $4",["[23]"],"0$1"]],"0",0,"([24-9]\\d{6})$|0","20$1"],MH:["692","011","329\\d{4}|(?:[256]\\d|45)\\d{5}",[7],[["(\\d{3})(\\d{4})","$1-$2",["[2-6]"]]],"1"],MK:["389","00","[2-578]\\d{7}",[8],[["(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["2|34[47]|4(?:[37]7|5[47]|64)"],"0$1"],["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["[347]"],"0$1"],["(\\d{3})(\\d)(\\d{2})(\\d{2})","$1 $2 $3 $4",["[58]"],"0$1"]],"0"],ML:["223","00","[24-9]\\d{7}",[8],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[24-9]"]]]],MM:["95","00","1\\d{5,7}|95\\d{6}|(?:[4-7]|9[0-46-9])\\d{6,8}|(?:2|8\\d)\\d{5,8}",[6,7,8,9,10],[["(\\d)(\\d{2})(\\d{3})","$1 $2 $3",["16|2"],"0$1"],["(\\d{2})(\\d{2})(\\d{3})","$1 $2 $3",["4(?:[2-46]|5[3-5])|5|6(?:[1-689]|7[235-7])|7(?:[0-4]|5[2-7])|8[1-5]|(?:60|86)[23]"],"0$1"],["(\\d)(\\d{3})(\\d{3,4})","$1 $2 $3",["[12]|452|678|86","[12]|452|6788|86"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["[4-7]|8[1-35]"],"0$1"],["(\\d)(\\d{3})(\\d{4,6})","$1 $2 $3",["9(?:2[0-4]|[35-9]|4[137-9])"],"0$1"],["(\\d)(\\d{4})(\\d{4})","$1 $2 $3",["2"],"0$1"],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["8"],"0$1"],["(\\d)(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3 $4",["92"],"0$1"],["(\\d)(\\d{5})(\\d{4})","$1 $2 $3",["9"],"0$1"]],"0"],MN:["976","001","[12]\\d{7,9}|[5-9]\\d{7}",[8,9,10],[["(\\d{2})(\\d{2})(\\d{4})","$1 $2 $3",["[12]1"],"0$1"],["(\\d{4})(\\d{4})","$1 $2",["[5-9]"]],["(\\d{3})(\\d{5,6})","$1 $2",["[12]2[1-3]"],"0$1"],["(\\d{4})(\\d{5,6})","$1 $2",["[12](?:27|3[2-8]|4[2-68]|5[1-4689])","[12](?:27|3[2-8]|4[2-68]|5[1-4689])[0-3]"],"0$1"],["(\\d{5})(\\d{4,5})","$1 $2",["[12]"],"0$1"]],"0"],MO:["853","00","0800\\d{3}|(?:28|[68]\\d)\\d{6}",[7,8],[["(\\d{4})(\\d{3})","$1 $2",["0"]],["(\\d{4})(\\d{4})","$1 $2",["[268]"]]]],MP:["1","011","[58]\\d{9}|(?:67|90)0\\d{7}",[10],0,"1",0,"([2-9]\\d{6})$|1","670$1",0,"670"],MQ:["596","00","(?:596\\d|7091)\\d{5}|(?:69|[89]\\d)\\d{7}",[9],[["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[5-79]|8(?:0[6-9]|[36])"],"0$1"],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["8"],"0$1"]],"0"],MR:["222","00","(?:[2-4]\\d\\d|800)\\d{5}",[8],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[2-48]"]]]],MS:["1","011","(?:[58]\\d\\d|664|900)\\d{7}",[10],0,"1",0,"([34]\\d{6})$|1","664$1",0,"664"],MT:["356","00","3550\\d{4}|(?:[2579]\\d\\d|800)\\d{5}",[8],[["(\\d{4})(\\d{4})","$1 $2",["[2357-9]"]]]],MU:["230","0(?:0|[24-7]0|3[03])","(?:[57]|8\\d\\d)\\d{7}|[2-468]\\d{6}",[7,8,10],[["(\\d{3})(\\d{4})","$1 $2",["[2-46]|8[013]"]],["(\\d{4})(\\d{4})","$1 $2",["[57]"]],["(\\d{5})(\\d{5})","$1 $2",["8"]]],0,0,0,0,0,0,0,"020"],MV:["960","0(?:0|19)","(?:800|9[0-57-9]\\d)\\d{7}|[34679]\\d{6}",[7,10],[["(\\d{3})(\\d{4})","$1-$2",["[34679]"]],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["[89]"]]],0,0,0,0,0,0,0,"00"],MW:["265","00","(?:[1289]\\d|31|77)\\d{7}|1\\d{6}",[7,9],[["(\\d)(\\d{3})(\\d{3})","$1 $2 $3",["1[2-9]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["2"],"0$1"],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[137-9]"],"0$1"]],"0"],MX:["52","0[09]","[2-9]\\d{9}",[10],[["(\\d{2})(\\d{4})(\\d{4})","$1 $2 $3",["33|5[56]|81"]],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["[2-9]"]]],0,0,0,0,0,0,0,"00"],MY:["60","00","1\\d{8,9}|(?:3\\d|[4-9])\\d{7}",[8,9,10],[["(\\d)(\\d{3})(\\d{4})","$1-$2 $3",["[4-79]"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1-$2 $3",["1(?:[02469]|[378][1-9]|53)|8","1(?:[02469]|[37][1-9]|53|8(?:[1-46-9]|5[7-9]))|8"],"0$1"],["(\\d)(\\d{4})(\\d{4})","$1-$2 $3",["3"],"0$1"],["(\\d)(\\d{3})(\\d{2})(\\d{4})","$1-$2-$3-$4",["1(?:[367]|80)"]],["(\\d{3})(\\d{3})(\\d{4})","$1-$2 $3",["15"],"0$1"],["(\\d{2})(\\d{4})(\\d{4})","$1-$2 $3",["1"],"0$1"]],"0"],MZ:["258","00","(?:2|8\\d)\\d{7}",[8,9],[["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["2|8[2-79]"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["8"]]]],NA:["264","00","[68]\\d{7,8}",[8,9],[["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["88"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["6"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["87"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["8"],"0$1"]],"0"],NC:["687","00","(?:050|[2-57-9]\\d\\d)\\d{3}",[6],[["(\\d{2})(\\d{2})(\\d{2})","$1.$2.$3",["[02-57-9]"]]]],NE:["227","00","[027-9]\\d{7}",[8],[["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["08"]],["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[089]|2[013]|7[0467]"]]]],NF:["672","00","[13]\\d{5}",[6],[["(\\d{2})(\\d{4})","$1 $2",["1[0-3]"]],["(\\d)(\\d{5})","$1 $2",["[13]"]]],0,0,"([0-258]\\d{4})$","3$1"],NG:["234","009","38\\d{6}|[78]\\d{9,13}|(?:20|9\\d)\\d{8}",[8,10,11,12,13,14],[["(\\d{2})(\\d{3})(\\d{2,3})","$1 $2 $3",["3"],"0$1"],["(\\d{3})(\\d{3})(\\d{3,4})","$1 $2 $3",["[7-9]"],"0$1"],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["20[129]"],"0$1"],["(\\d{4})(\\d{2})(\\d{4})","$1 $2 $3",["2"],"0$1"],["(\\d{3})(\\d{4})(\\d{4,5})","$1 $2 $3",["[78]"],"0$1"],["(\\d{3})(\\d{5})(\\d{5,6})","$1 $2 $3",["[78]"],"0$1"]],"0"],NI:["505","00","(?:1800|[25-8]\\d{3})\\d{4}",[8],[["(\\d{4})(\\d{4})","$1 $2",["[125-8]"]]]],NL:["31","00","(?:[124-7]\\d\\d|3(?:[02-9]\\d|1[0-8]))\\d{6}|8\\d{6,9}|9\\d{6,10}|1\\d{4,5}",[5,6,7,8,9,10,11],[["(\\d{3})(\\d{4,7})","$1 $2",["[89]0"],"0$1"],["(\\d{2})(\\d{7})","$1 $2",["66"],"0$1"],["(\\d)(\\d{8})","$1 $2",["6"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["1[16-8]|2[259]|3[124]|4[17-9]|5[124679]"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[1-578]|91"],"0$1"],["(\\d{3})(\\d{3})(\\d{5})","$1 $2 $3",["9"],"0$1"]],"0"],NO:["47","00","(?:0|[2-9]\\d{3})\\d{4}",[5,8],[["(\\d{3})(\\d{2})(\\d{3})","$1 $2 $3",["8"]],["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[2-79]"]]],0,0,0,0,0,"[02-689]|7[0-8]"],NP:["977","00","(?:1\\d|9)\\d{9}|[1-9]\\d{7}",[8,10,11],[["(\\d)(\\d{7})","$1-$2",["1[2-6]"],"0$1"],["(\\d{2})(\\d{6})","$1-$2",["1[01]|[2-8]|9(?:[1-59]|[67][2-6])"],"0$1"],["(\\d{3})(\\d{7})","$1-$2",["9"]]],"0"],NR:["674","00","(?:444|(?:55|8\\d)\\d|666)\\d{4}",[7],[["(\\d{3})(\\d{4})","$1 $2",["[4-68]"]]]],NU:["683","00","(?:[4-7]|888\\d)\\d{3}",[4,7],[["(\\d{3})(\\d{4})","$1 $2",["8"]]]],NZ:["64","0(?:0|161)","[1289]\\d{9}|50\\d{5}(?:\\d{2,3})?|[27-9]\\d{7,8}|(?:[34]\\d|6[0-35-9])\\d{6}|8\\d{4,6}",[5,6,7,8,9,10],[["(\\d{2})(\\d{3,8})","$1 $2",["8[1-79]"],"0$1"],["(\\d{3})(\\d{2})(\\d{2,3})","$1 $2 $3",["50[036-8]|8|90","50(?:[0367]|88)|8|90"],"0$1"],["(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["24|[346]|7[2-57-9]|9[2-9]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3,4})","$1 $2 $3",["2(?:10|74)|[589]"],"0$1"],["(\\d{2})(\\d{3,4})(\\d{4})","$1 $2 $3",["1|2[028]"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,5})","$1 $2 $3",["2(?:[169]|7[0-35-9])|7"],"0$1"]],"0",0,0,0,0,0,0,"00"],OM:["968","00","(?:1505|[279]\\d{3}|500)\\d{4}|800\\d{5,6}",[7,8,9],[["(\\d{3})(\\d{4,6})","$1 $2",["[58]"]],["(\\d{2})(\\d{6})","$1 $2",["2"]],["(\\d{4})(\\d{4})","$1 $2",["[179]"]]]],PA:["507","00","(?:00800|8\\d{3})\\d{6}|[68]\\d{7}|[1-57-9]\\d{6}",[7,8,10,11],[["(\\d{3})(\\d{4})","$1-$2",["[1-57-9]"]],["(\\d{4})(\\d{4})","$1-$2",["[68]"]],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["8"]]]],PE:["51","00|19(?:1[124]|77|90)00","(?:[14-8]|9\\d)\\d{7}",[8,9],[["(\\d{3})(\\d{5})","$1 $2",["80"],"(0$1)"],["(\\d)(\\d{7})","$1 $2",["1"],"(0$1)"],["(\\d{2})(\\d{6})","$1 $2",["[4-8]"],"(0$1)"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["9"]]],"0",0,0,0,0,0,0,"00"," Anexo "],PF:["689","00","4\\d{5}(?:\\d{2})?|8\\d{7,8}",[6,8,9],[["(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3",["44"]],["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["4|8[7-9]"]],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["8"]]]],PG:["675","00|140[1-3]","(?:180|[78]\\d{3})\\d{4}|(?:[2-589]\\d|64)\\d{5}",[7,8],[["(\\d{3})(\\d{4})","$1 $2",["18|[2-69]|85"]],["(\\d{4})(\\d{4})","$1 $2",["[78]"]]],0,0,0,0,0,0,0,"00"],PH:["63","00","(?:[2-7]|9\\d)\\d{8}|2\\d{5}|(?:1800|8)\\d{7,9}",[6,8,9,10,11,12,13],[["(\\d)(\\d{5})","$1 $2",["2"],"(0$1)"],["(\\d{4})(\\d{4,6})","$1 $2",["3(?:23|39|46)|4(?:2[3-6]|[35]9|4[26]|76)|544|88[245]|(?:52|64|86)2","3(?:230|397|461)|4(?:2(?:35|[46]4|51)|396|4(?:22|63)|59[347]|76[15])|5(?:221|446)|642[23]|8(?:622|8(?:[24]2|5[13]))"],"(0$1)"],["(\\d{5})(\\d{4})","$1 $2",["346|4(?:27|9[35])|883","3469|4(?:279|9(?:30|56))|8834"],"(0$1)"],["(\\d)(\\d{4})(\\d{4})","$1 $2 $3",["2"],"(0$1)"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[3-7]|8[2-8]"],"(0$1)"],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["[89]"],"0$1"],["(\\d{4})(\\d{3})(\\d{4})","$1 $2 $3",["1"]],["(\\d{4})(\\d{1,2})(\\d{3})(\\d{4})","$1 $2 $3 $4",["1"]]],"0"],PK:["92","00","122\\d{6}|[24-8]\\d{10,11}|9(?:[013-9]\\d{8,10}|2(?:[01]\\d\\d|2(?:[06-8]\\d|1[01]))\\d{7})|(?:[2-8]\\d{3}|92(?:[0-7]\\d|8[1-9]))\\d{6}|[24-9]\\d{8}|[89]\\d{7}",[8,9,10,11,12],[["(\\d{3})(\\d{3})(\\d{2,7})","$1 $2 $3",["[89]0"],"0$1"],["(\\d{4})(\\d{5})","$1 $2",["1"]],["(\\d{3})(\\d{6,7})","$1 $2",["2(?:3[2358]|4[2-4]|9[2-8])|45[3479]|54[2-467]|60[468]|72[236]|8(?:2[2-689]|3[23578]|4[3478]|5[2356])|9(?:2[2-8]|3[27-9]|4[2-6]|6[3569]|9[25-8])","9(?:2[3-8]|98)|(?:2(?:3[2358]|4[2-4]|9[2-8])|45[3479]|54[2-467]|60[468]|72[236]|8(?:2[2-689]|3[23578]|4[3478]|5[2356])|9(?:22|3[27-9]|4[2-6]|6[3569]|9[25-7]))[2-9]"],"(0$1)"],["(\\d{2})(\\d{7,8})","$1 $2",["(?:2[125]|4[0-246-9]|5[1-35-7]|6[1-8]|7[14]|8[16]|91)[2-9]"],"(0$1)"],["(\\d{5})(\\d{5})","$1 $2",["58"],"(0$1)"],["(\\d{3})(\\d{7})","$1 $2",["3"],"0$1"],["(\\d{2})(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3 $4",["2[125]|4[0-246-9]|5[1-35-7]|6[1-8]|7[14]|8[16]|91"],"(0$1)"],["(\\d{3})(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3 $4",["[24-9]"],"(0$1)"]],"0"],PL:["48","00","(?:6|8\\d\\d)\\d{7}|[1-9]\\d{6}(?:\\d{2})?|[26]\\d{5}",[6,7,8,9,10],[["(\\d{5})","$1",["19"]],["(\\d{3})(\\d{3})","$1 $2",["11|20|64"]],["(\\d{2})(\\d{2})(\\d{3})","$1 $2 $3",["(?:1[2-8]|2[2-69]|3[2-4]|4[1-468]|5[24-689]|6[1-3578]|7[14-7]|8[1-79]|9[145])1","(?:1[2-8]|2[2-69]|3[2-4]|4[1-468]|5[24-689]|6[1-3578]|7[14-7]|8[1-79]|9[145])19"]],["(\\d{3})(\\d{2})(\\d{2,3})","$1 $2 $3",["64"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["21|39|45|5[0137]|6[0469]|7[02389]|8(?:0[14]|8)"]],["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["1[2-8]|[2-7]|8[1-79]|9[145]"]],["(\\d{3})(\\d{3})(\\d{3,4})","$1 $2 $3",["8"]]]],PM:["508","00","[45]\\d{5}|(?:708|8\\d\\d)\\d{6}",[6,9],[["(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3",["[45]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["7"]],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["8"],"0$1"]],"0"],PR:["1","011","(?:[589]\\d\\d|787)\\d{7}",[10],0,"1",0,0,0,0,"787|939"],PS:["970","00","[2489]2\\d{6}|(?:1\\d|5)\\d{8}",[8,9,10],[["(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["[2489]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["5"],"0$1"],["(\\d{4})(\\d{3})(\\d{3})","$1 $2 $3",["1"]]],"0"],PT:["351","00","1693\\d{5}|(?:[26-9]\\d|30)\\d{7}",[9],[["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["2[12]"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["16|[236-9]"]]]],PW:["680","01[12]","(?:[24-8]\\d\\d|345|900)\\d{4}",[7],[["(\\d{3})(\\d{4})","$1 $2",["[2-9]"]]]],PY:["595","00","59\\d{4,6}|9\\d{5,10}|(?:[2-46-8]\\d|5[0-8])\\d{4,7}",[6,7,8,9,10,11],[["(\\d{3})(\\d{3,6})","$1 $2",["[2-9]0"],"0$1"],["(\\d{2})(\\d{5})","$1 $2",["[26]1|3[289]|4[1246-8]|7[1-3]|8[1-36]"],"(0$1)"],["(\\d{3})(\\d{4,5})","$1 $2",["2[279]|3[13-5]|4[359]|5|6(?:[34]|7[1-46-8])|7[46-8]|85"],"(0$1)"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["2[14-68]|3[26-9]|4[1246-8]|6(?:1|75)|7[1-35]|8[1-36]"],"(0$1)"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["87"]],["(\\d{3})(\\d{6})","$1 $2",["9(?:[5-79]|8[1-7])"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[2-8]"],"0$1"],["(\\d{4})(\\d{3})(\\d{4})","$1 $2 $3",["9"]]],"0"],QA:["974","00","800\\d{4}|(?:2|800)\\d{6}|(?:0080|[3-7])\\d{7}",[7,8,9,11],[["(\\d{3})(\\d{4})","$1 $2",["2[16]|8"]],["(\\d{4})(\\d{4})","$1 $2",["[3-7]"]]]],RE:["262","00","709\\d{6}|(?:26|[689]\\d)\\d{7}",[9],[["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[26-9]"],"0$1"]],"0",0,0,0,0,0,[["26(?:2\\d\\d|3(?:0\\d|1[0-6]))\\d{4}"],["(?:69(?:2\\d\\d|3(?:[06][0-6]|1[013]|2[0-2]|3[0-39]|4\\d|5[0-5]|7[0-37]|8[0-8]|9[0-479]))|7092[0-3])\\d{4}"],["80\\d{7}"],["89[1-37-9]\\d{6}"],0,0,0,0,["9(?:399[0-3]|479[0-6]|76(?:2[278]|3[0-37]))\\d{4}"],["8(?:1[019]|2[0156]|84|90)\\d{6}"]]],RO:["40","00","(?:[236-8]\\d|90)\\d{7}|[23]\\d{5}",[6,9],[["(\\d{3})(\\d{3})","$1 $2",["2[3-6]","2[3-6]\\d9"],"0$1"],["(\\d{2})(\\d{4})","$1 $2",["219|31"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[23]1"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[236-9]"],"0$1"]],"0",0,0,0,0,0,0,0," int "],RS:["381","00","38[02-9]\\d{6,9}|6\\d{7,9}|90\\d{4,8}|38\\d{5,6}|(?:7\\d\\d|800)\\d{3,9}|(?:[12]\\d|3[0-79])\\d{5,10}",[6,7,8,9,10,11,12],[["(\\d{3})(\\d{3,9})","$1 $2",["(?:2[389]|39)0|[7-9]"],"0$1"],["(\\d{2})(\\d{5,10})","$1 $2",["[1-36]"],"0$1"]],"0"],RU:["7","810","8\\d{13}|[347-9]\\d{9}",[10,14],[["(\\d{4})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["7(?:1[0-8]|2[1-9])","7(?:1(?:[0-356]2|4[29]|7|8[27])|2(?:1[23]|[2-9]2))","7(?:1(?:[0-356]2|4[29]|7|8[27])|2(?:13[03-69]|62[013-9]))|72[1-57-9]2"],"8 ($1)",1],["(\\d{5})(\\d)(\\d{2})(\\d{2})","$1 $2 $3 $4",["7(?:1[0-68]|2[1-9])","7(?:1(?:[06][3-6]|[18]|2[35]|[3-5][3-5])|2(?:[13][3-5]|[24-689]|7[457]))","7(?:1(?:0(?:[356]|4[023])|[18]|2(?:3[013-9]|5)|3[45]|43[013-79]|5(?:3[1-8]|4[1-7]|5)|6(?:3[0-35-9]|[4-6]))|2(?:1(?:3[178]|[45])|[24-689]|3[35]|7[457]))|7(?:14|23)4[0-8]|71(?:33|45)[1-79]"],"8 ($1)",1],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["7"],"8 ($1)",1],["(\\d{3})(\\d{3})(\\d{2})(\\d{2})","$1 $2-$3-$4",["[349]|8(?:[02-7]|1[1-8])"],"8 ($1)",1],["(\\d{4})(\\d{4})(\\d{3})(\\d{3})","$1 $2 $3 $4",["8"],"8 ($1)"]],"8",0,0,0,0,"3[04-689]|[489]",0,"8~10"],RW:["250","00","(?:06|[27]\\d\\d|[89]00)\\d{6}",[8,9],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["0"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["2"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[7-9]"],"0$1"]],"0"],SA:["966","00","92\\d{7}|(?:[15]|8\\d)\\d{8}",[9,10],[["(\\d{4})(\\d{5})","$1 $2",["9"]],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["1"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["5"],"0$1"],["(\\d{3})(\\d{3})(\\d{3,4})","$1 $2 $3",["81"],"0$1"],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["8"]]],"0"],SB:["677","0[01]","[6-9]\\d{6}|[1-6]\\d{4}",[5,7],[["(\\d{2})(\\d{5})","$1 $2",["6[89]|7|8[4-9]|9(?:[1-8]|9[0-8])"]]]],SC:["248","010|0[0-2]","(?:[2489]\\d|64)\\d{5}",[7],[["(\\d)(\\d{3})(\\d{3})","$1 $2 $3",["[246]|9[57]"]]],0,0,0,0,0,0,0,"00"],SD:["249","00","[19]\\d{8}",[9],[["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[19]"],"0$1"]],"0"],SE:["46","00","(?:[26]\\d\\d|9)\\d{9}|[1-9]\\d{8}|[1-689]\\d{7}|[1-4689]\\d{6}|2\\d{5}",[6,7,8,9,10,12],[["(\\d{2})(\\d{2,3})(\\d{2})","$1-$2 $3",["20"],"0$1",0,"$1 $2 $3"],["(\\d{3})(\\d{4})","$1-$2",["9(?:00|39|44|9)"],"0$1",0,"$1 $2"],["(\\d{2})(\\d{3})(\\d{2})","$1-$2 $3",["[12][136]|3[356]|4[0246]|6[03]|90[1-9]"],"0$1",0,"$1 $2 $3"],["(\\d)(\\d{2,3})(\\d{2})(\\d{2})","$1-$2 $3 $4",["8"],"0$1",0,"$1 $2 $3 $4"],["(\\d{3})(\\d{2,3})(\\d{2})","$1-$2 $3",["1[2457]|2(?:[247-9]|5[0138])|3[0247-9]|4[1357-9]|5[0-35-9]|6(?:[125689]|4[02-57]|7[0-2])|9(?:[125-8]|3[02-5]|4[0-3])"],"0$1",0,"$1 $2 $3"],["(\\d{3})(\\d{2,3})(\\d{3})","$1-$2 $3",["9(?:00|39|44)"],"0$1",0,"$1 $2 $3"],["(\\d{2})(\\d{2,3})(\\d{2})(\\d{2})","$1-$2 $3 $4",["1[13689]|2[0136]|3[1356]|4[0246]|54|6[03]|90[1-9]"],"0$1",0,"$1 $2 $3 $4"],["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1-$2 $3 $4",["10|7"],"0$1",0,"$1 $2 $3 $4"],["(\\d)(\\d{3})(\\d{3})(\\d{2})","$1-$2 $3 $4",["8"],"0$1",0,"$1 $2 $3 $4"],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1-$2 $3 $4",["[13-5]|2(?:[247-9]|5[0138])|6(?:[124-689]|7[0-2])|9(?:[125-8]|3[02-5]|4[0-3])"],"0$1",0,"$1 $2 $3 $4"],["(\\d{3})(\\d{2})(\\d{2})(\\d{3})","$1-$2 $3 $4",["9"],"0$1",0,"$1 $2 $3 $4"],["(\\d{3})(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1-$2 $3 $4 $5",["[26]"],"0$1",0,"$1 $2 $3 $4 $5"]],"0"],SG:["65","0[0-3]\\d","(?:(?:1\\d|8)\\d\\d|7000)\\d{7}|[3689]\\d{7}",[8,10,11],[["(\\d{4})(\\d{4})","$1 $2",["[369]|8(?:0[1-9]|[1-9])"]],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["8"]],["(\\d{4})(\\d{4})(\\d{3})","$1 $2 $3",["7"]],["(\\d{4})(\\d{3})(\\d{4})","$1 $2 $3",["1"]]]],SH:["290","00","(?:[256]\\d|8)\\d{3}",[4,5],0,0,0,0,0,0,"[256]"],SI:["386","00|10(?:22|66|88|99)","[1-7]\\d{7}|8\\d{4,7}|90\\d{4,6}",[5,6,7,8],[["(\\d{2})(\\d{3,6})","$1 $2",["8[09]|9"],"0$1"],["(\\d{3})(\\d{5})","$1 $2",["59|8"],"0$1"],["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["[37][01]|4[0139]|51|6"],"0$1"],["(\\d)(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[1-57]"],"(0$1)"]],"0",0,0,0,0,0,0,"00"],SJ:["47","00","0\\d{4}|(?:[489]\\d|79)\\d{6}",[5,8],0,0,0,0,0,0,"79"],SK:["421","00","[2-689]\\d{8}|[2-59]\\d{6}|[2-5]\\d{5}",[6,7,9],[["(\\d)(\\d{2})(\\d{3,4})","$1 $2 $3",["21"],"0$1"],["(\\d{2})(\\d{2})(\\d{2,3})","$1 $2 $3",["[3-5][1-8]1","[3-5][1-8]1[67]"],"0$1"],["(\\d)(\\d{3})(\\d{3})(\\d{2})","$1/$2 $3 $4",["2"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[689]"],"0$1"],["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1/$2 $3 $4",["[3-5]"],"0$1"]],"0"],SL:["232","00","(?:[237-9]\\d|66)\\d{6}",[8],[["(\\d{2})(\\d{6})","$1 $2",["[236-9]"],"(0$1)"]],"0"],SM:["378","00","(?:0549|[5-7]\\d)\\d{6}",[8,10],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[5-7]"]],["(\\d{4})(\\d{6})","$1 $2",["0"]]],0,0,"([89]\\d{5})$","0549$1"],SN:["221","00","(?:[378]\\d|93)\\d{7}",[9],[["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["8"]],["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[379]"]]]],SO:["252","00","[346-9]\\d{8}|[12679]\\d{7}|[1-5]\\d{6}|[1348]\\d{5}",[6,7,8,9],[["(\\d{2})(\\d{4})","$1 $2",["8[125]"]],["(\\d{6})","$1",["[134]"]],["(\\d)(\\d{6})","$1 $2",["[15]|2[0-79]|3[0-46-8]|4[0-7]"]],["(\\d)(\\d{7})","$1 $2",["(?:2|90)4|[67]"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[348]|64|79|90"]],["(\\d{2})(\\d{5,7})","$1 $2",["1|28|6[0-35-9]|7[67]|9[2-9]"]]],"0"],SR:["597","00","(?:[2-5]|68|[78]\\d)\\d{5}",[6,7],[["(\\d{2})(\\d{2})(\\d{2})","$1-$2-$3",["56"]],["(\\d{3})(\\d{3})","$1-$2",["[2-5]"]],["(\\d{3})(\\d{4})","$1-$2",["[6-8]"]]]],SS:["211","00","[19]\\d{8}",[9],[["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[19]"],"0$1"]],"0"],ST:["239","00","(?:22|9\\d)\\d{5}",[7],[["(\\d{3})(\\d{4})","$1 $2",["[29]"]]]],SV:["503","00","[267]\\d{7}|(?:80\\d|900)\\d{4}(?:\\d{4})?",[7,8,11],[["(\\d{3})(\\d{4})","$1 $2",["[89]"]],["(\\d{4})(\\d{4})","$1 $2",["[267]"]],["(\\d{3})(\\d{4})(\\d{4})","$1 $2 $3",["[89]"]]]],SX:["1","011","7215\\d{6}|(?:[58]\\d\\d|900)\\d{7}",[10],0,"1",0,"(5\\d{6})$|1","721$1",0,"721"],SY:["963","00","[1-359]\\d{8}|[1-5]\\d{7}",[8,9],[["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["[1-4]|5[1-3]"],"0$1",1],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[59]"],"0$1",1]],"0"],SZ:["268","00","0800\\d{4}|(?:[237]\\d|900)\\d{6}",[8,9],[["(\\d{4})(\\d{4})","$1 $2",["[0237]"]],["(\\d{5})(\\d{4})","$1 $2",["9"]]]],TA:["290","00","8\\d{3}",[4],0,0,0,0,0,0,"8"],TC:["1","011","(?:[58]\\d\\d|649|900)\\d{7}",[10],0,"1",0,"([2-479]\\d{6})$|1","649$1",0,"649"],TD:["235","00|16","(?:22|[689]\\d|77)\\d{6}",[8],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[26-9]"]]],0,0,0,0,0,0,0,"00"],TG:["228","00","[279]\\d{7}",[8],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[279]"]]]],TH:["66","00[1-9]","(?:001800|[2-57]|[689]\\d)\\d{7}|1\\d{7,9}",[8,9,10,13],[["(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["2"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["[13-9]"],"0$1"],["(\\d{4})(\\d{3})(\\d{3})","$1 $2 $3",["1"]]],"0"],TJ:["992","810","[0-57-9]\\d{8}",[9],[["(\\d{6})(\\d)(\\d{2})","$1 $2 $3",["331","3317"]],["(\\d{3})(\\d{2})(\\d{4})","$1 $2 $3",["44[02-479]|[34]7"]],["(\\d{4})(\\d)(\\d{4})","$1 $2 $3",["3(?:[1245]|3[12])"]],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[0-57-9]"]]],0,0,0,0,0,0,0,"8~10"],TK:["690","00","[2-47]\\d{3,6}",[4,5,6,7]],TL:["670","00","7\\d{7}|(?:[2-47]\\d|[89]0)\\d{5}",[7,8],[["(\\d{3})(\\d{4})","$1 $2",["[2-489]|70"]],["(\\d{4})(\\d{4})","$1 $2",["7"]]]],TM:["993","810","(?:[1-6]\\d|71)\\d{6}",[8],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2-$3-$4",["12"],"(8 $1)"],["(\\d{3})(\\d)(\\d{2})(\\d{2})","$1 $2-$3-$4",["[1-5]"],"(8 $1)"],["(\\d{2})(\\d{6})","$1 $2",["[67]"],"8 $1"]],"8",0,0,0,0,0,0,"8~10"],TN:["216","00","[2-57-9]\\d{7}",[8],[["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["[2-57-9]"]]]],TO:["676","00","(?:0800|(?:[5-8]\\d\\d|999)\\d)\\d{3}|[2-8]\\d{4}",[5,7],[["(\\d{2})(\\d{3})","$1-$2",["[2-4]|50|6[09]|7[0-24-69]|8[05]"]],["(\\d{4})(\\d{3})","$1 $2",["0"]],["(\\d{3})(\\d{4})","$1 $2",["[5-9]"]]]],TR:["90","00","4\\d{6}|8\\d{11,12}|(?:[2-58]\\d\\d|900)\\d{7}",[7,10,12,13],[["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["512|8[01589]|90"],"0$1",1],["(\\d{3})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["5(?:[0-59]|61)","5(?:[0-59]|61[06])","5(?:[0-59]|61[06]1)"],"0$1",1],["(\\d{3})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[24][1-8]|3[1-9]"],"(0$1)",1],["(\\d{3})(\\d{3})(\\d{6,7})","$1 $2 $3",["80"],"0$1",1]],"0"],TT:["1","011","(?:[58]\\d\\d|900)\\d{7}",[10],0,"1",0,"([2-46-8]\\d{6})$|1","868$1",0,"868"],TV:["688","00","(?:2|7\\d\\d|90)\\d{4}",[5,6,7],[["(\\d{2})(\\d{3})","$1 $2",["2"]],["(\\d{2})(\\d{4})","$1 $2",["90"]],["(\\d{2})(\\d{5})","$1 $2",["7"]]]],TW:["886","0(?:0[25-79]|19)","[2-689]\\d{8}|7\\d{9,10}|[2-8]\\d{7}|2\\d{6}",[7,8,9,10,11],[["(\\d{2})(\\d)(\\d{4})","$1 $2 $3",["202"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["[258]0"],"0$1"],["(\\d)(\\d{3,4})(\\d{4})","$1 $2 $3",["[23568]|4(?:0[02-48]|[1-47-9])|7[1-9]","[23568]|4(?:0[2-48]|[1-47-9])|(?:400|7)[1-9]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[49]"],"0$1"],["(\\d{2})(\\d{4})(\\d{4,5})","$1 $2 $3",["7"],"0$1"]],"0",0,0,0,0,0,0,0,"#"],TZ:["255","00[056]","(?:[25-8]\\d|41|90)\\d{7}",[9],[["(\\d{3})(\\d{2})(\\d{4})","$1 $2 $3",["[89]"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[24]"],"0$1"],["(\\d{2})(\\d{7})","$1 $2",["5"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[67]"],"0$1"]],"0"],UA:["380","00","[89]\\d{9}|[3-9]\\d{8}",[9,10],[["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["6[12][29]|(?:3[1-8]|4[136-8]|5[12457]|6[49])2|(?:56|65)[24]","6[12][29]|(?:35|4[1378]|5[12457]|6[49])2|(?:56|65)[24]|(?:3[1-46-8]|46)2[013-9]"],"0$1"],["(\\d{4})(\\d{5})","$1 $2",["3[1-8]|4(?:[1367]|[45][6-9]|8[4-6])|5(?:[1-5]|6[0135689]|7[4-6])|6(?:[12][3-7]|[459])","3[1-8]|4(?:[1367]|[45][6-9]|8[4-6])|5(?:[1-5]|6(?:[015689]|3[02389])|7[4-6])|6(?:[12][3-7]|[459])"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[3-7]|89|9[1-9]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3,4})","$1 $2 $3",["[89]"],"0$1"]],"0",0,0,0,0,0,0,"0~0"],UG:["256","00[057]","800\\d{6}|(?:[29]0|[347]\\d)\\d{7}",[9],[["(\\d{4})(\\d{5})","$1 $2",["202","2024"],"0$1"],["(\\d{3})(\\d{6})","$1 $2",["[27-9]|4(?:6[45]|[7-9])"],"0$1"],["(\\d{2})(\\d{7})","$1 $2",["[34]"],"0$1"]],"0"],US:["1","011","[2-9]\\d{9}|3\\d{6}",[10],[["(\\d{3})(\\d{4})","$1-$2",["310"],0,1],["(\\d{3})(\\d{3})(\\d{4})","($1) $2-$3",["[2-9]"],0,1,"$1-$2-$3"]],"1",0,0,0,0,0,[["(?:3052(?:0[0-8]|[1-9]\\d)|5056(?:[0-35-9]\\d|4[0-468]))\\d{4}|(?:2742|305[3-9]|472[247-9]|505[2-57-9]|983[2-47-9])\\d{6}|(?:2(?:0[1-35-9]|1[02-9]|2[03-57-9]|3[1459]|4[08]|5[1-46]|6[0279]|7[0269]|8[13])|3(?:0[1-47-9]|1[02-9]|2[0135-79]|3[0-24679]|4[167]|5[0-2]|6[01349]|8[056])|4(?:0[124-9]|1[02-579]|2[3-5]|3[0245]|4[023578]|58|6[349]|7[0589]|8[04])|5(?:0[1-47-9]|1[0235-8]|20|3[0149]|4[01]|5[179]|6[1-47]|7[0-5]|8[0256])|6(?:0[1-35-9]|1[024-9]|2[03689]|3[016]|4[0156]|5[01679]|6[0-279]|78|8[0-29])|7(?:0[1-46-8]|1[2-9]|2[04-8]|3[0-247]|4[037]|5[47]|6[02359]|7[0-59]|8[156])|8(?:0[1-68]|1[02-8]|2[068]|3[0-2589]|4[03578]|5[046-9]|6[02-5]|7[028])|9(?:0[1346-9]|1[02-9]|2[0589]|3[0146-8]|4[01357-9]|5[12469]|7[0-389]|8[04-69]))[2-9]\\d{6}"],[""],["8(?:00|33|44|55|66|77|88)[2-9]\\d{6}"],["900[2-9]\\d{6}"],["52(?:3(?:[2-46-9][02-9]\\d|5(?:[02-46-9]\\d|5[0-46-9]))|4(?:[2-478][02-9]\\d|5(?:[034]\\d|2[024-9]|5[0-46-9])|6(?:0[1-9]|[2-9]\\d)|9(?:[05-9]\\d|2[0-5]|49)))\\d{4}|52[34][2-9]1[02-9]\\d{4}|5(?:00|2[125-9]|33|44|66|77|88)[2-9]\\d{6}"],0,0,0,["305209\\d{4}"]]],UY:["598","0(?:0|1[3-9]\\d)","0004\\d{2,9}|[1249]\\d{7}|(?:[49]\\d|80)\\d{5}",[6,7,8,9,10,11,12,13],[["(\\d{3})(\\d{3,4})","$1 $2",["0"]],["(\\d{3})(\\d{4})","$1 $2",["[49]0|8"],"0$1"],["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["9"],"0$1"],["(\\d{4})(\\d{4})","$1 $2",["[124]"]],["(\\d{3})(\\d{3})(\\d{2,4})","$1 $2 $3",["0"]],["(\\d{3})(\\d{3})(\\d{3})(\\d{2,4})","$1 $2 $3 $4",["0"]]],"0",0,0,0,0,0,0,"00"," int. "],UZ:["998","00","(?:20|33|[5-9]\\d)\\d{7}",[9],[["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[235-9]"]]]],VA:["39","00","0\\d{5,10}|3[0-8]\\d{7,10}|55\\d{8}|8\\d{5}(?:\\d{2,4})?|(?:1\\d|39)\\d{7,8}",[6,7,8,9,10,11,12],0,0,0,0,0,0,"06698"],VC:["1","011","(?:[58]\\d\\d|784|900)\\d{7}",[10],0,"1",0,"([2-7]\\d{6})$|1","784$1",0,"784"],VE:["58","00","[68]00\\d{7}|(?:[24]\\d|[59]0)\\d{8}",[10],[["(\\d{3})(\\d{7})","$1-$2",["[24-689]"],"0$1"]],"0"],VG:["1","011","(?:284|[58]\\d\\d|900)\\d{7}",[10],0,"1",0,"([2-578]\\d{6})$|1","284$1",0,"284"],VI:["1","011","[58]\\d{9}|(?:34|90)0\\d{7}",[10],0,"1",0,"([2-9]\\d{6})$|1","340$1",0,"340"],VN:["84","00","[12]\\d{9}|[135-9]\\d{8}|[16]\\d{7}|[16-8]\\d{6}",[7,8,9,10],[["(\\d{2})(\\d{5})","$1 $2",["80"],"0$1",1],["(\\d{4})(\\d{4,6})","$1 $2",["1"],0,1],["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["6"],"0$1",1],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[357-9]"],"0$1",1],["(\\d{2})(\\d{4})(\\d{4})","$1 $2 $3",["2[48]"],"0$1",1],["(\\d{3})(\\d{4})(\\d{3})","$1 $2 $3",["2"],"0$1",1]],"0"],VU:["678","00","[57-9]\\d{6}|(?:[238]\\d|48)\\d{3}",[5,7],[["(\\d{3})(\\d{4})","$1 $2",["[57-9]"]]]],WF:["681","00","(?:40|72|8\\d{4})\\d{4}|[89]\\d{5}",[6,9],[["(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3",["[47-9]"]],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["8"]]]],WS:["685","0","(?:[2-6]|8\\d{5})\\d{4}|[78]\\d{6}|[68]\\d{5}",[5,6,7,10],[["(\\d{5})","$1",["[2-5]|6[1-9]"]],["(\\d{3})(\\d{3,7})","$1 $2",["[68]"]],["(\\d{2})(\\d{5})","$1 $2",["7"]]]],XK:["383","00","2\\d{7,8}|3\\d{7,11}|(?:4\\d\\d|[89]00)\\d{5}",[8,9,10,11,12],[["(\\d{3})(\\d{5})","$1 $2",["[89]"],"0$1"],["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["[2-4]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["2|39"],"0$1"],["(\\d{2})(\\d{7,10})","$1 $2",["3"],"0$1"]],"0"],YE:["967","00","(?:1|7\\d)\\d{7}|[1-7]\\d{6}",[7,8,9],[["(\\d)(\\d{3})(\\d{3,4})","$1 $2 $3",["[1-6]|7(?:[24-6]|8[0-7])"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["7"],"0$1"]],"0"],YT:["262","00","7093\\d{5}|(?:80|9\\d)\\d{7}|(?:26|63)9\\d{6}",[9],0,"0",0,0,0,0,0,[["269(?:0[0-467]|15|5[0-4]|6\\d|[78]0)\\d{4}"],["(?:639(?:0[0-79]|1[019]|[267]\\d|3[09]|40|5[05-9]|9[04-79])|7093[5-7])\\d{4}"],["80\\d{7}"],0,0,0,0,0,["9(?:(?:39|47)8[01]|769\\d)\\d{4}"]]],ZA:["27","00","[1-79]\\d{8}|8\\d{4,9}",[5,6,7,8,9,10],[["(\\d{2})(\\d{3,4})","$1 $2",["8[1-4]"],"0$1"],["(\\d{2})(\\d{3})(\\d{2,3})","$1 $2 $3",["8[1-4]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["860"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[1-9]"],"0$1"],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["8"],"0$1"]],"0"],ZM:["260","00","800\\d{6}|(?:21|[579]\\d|63)\\d{7}",[9],[["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[28]"],"0$1"],["(\\d{2})(\\d{7})","$1 $2",["[579]"],"0$1"]],"0"],ZW:["263","00","2(?:[0-57-9]\\d{6,8}|6[0-24-9]\\d{6,7})|[38]\\d{9}|[35-8]\\d{8}|[3-6]\\d{7}|[1-689]\\d{6}|[1-3569]\\d{5}|[1356]\\d{4}",[5,6,7,8,9,10],[["(\\d{3})(\\d{3,5})","$1 $2",["2(?:0[45]|2[278]|[49]8)|3(?:[09]8|17)|6(?:[29]8|37|75)|[23][78]|(?:33|5[15]|6[68])[78]"],"0$1"],["(\\d)(\\d{3})(\\d{2,4})","$1 $2 $3",["[49]"],"0$1"],["(\\d{3})(\\d{4})","$1 $2",["80"],"0$1"],["(\\d{2})(\\d{7})","$1 $2",["24|8[13-59]|(?:2[05-79]|39|5[45]|6[15-8])2","2(?:02[014]|4|[56]20|[79]2)|392|5(?:42|525)|6(?:[16-8]21|52[013])|8[13-59]"],"(0$1)"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["7"],"0$1"],["(\\d{3})(\\d{3})(\\d{3,4})","$1 $2 $3",["2(?:1[39]|2[0157]|[378]|[56][14])|3(?:12|29)","2(?:1[39]|2[0157]|[378]|[56][14])|3(?:123|29)"],"0$1"],["(\\d{4})(\\d{6})","$1 $2",["8"],"0$1"],["(\\d{2})(\\d{3,5})","$1 $2",["1|2(?:0[0-36-9]|12|29|[56])|3(?:1[0-689]|[24-6])|5(?:[0236-9]|1[2-4])|6(?:[013-59]|7[0-46-9])|(?:33|55|6[68])[0-69]|(?:29|3[09]|62)[0-79]"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["29[013-9]|39|54"],"0$1"],["(\\d{4})(\\d{3,5})","$1 $2",["(?:25|54)8","258|5483"],"0$1"]],"0"]},nonGeographic:{800:["800",0,"(?:00|[1-9]\\d)\\d{6}",[8],[["(\\d{4})(\\d{4})","$1 $2",["\\d"]]],0,0,0,0,0,0,[0,0,["(?:00|[1-9]\\d)\\d{6}"]]],808:["808",0,"[1-9]\\d{7}",[8],[["(\\d{4})(\\d{4})","$1 $2",["[1-9]"]]],0,0,0,0,0,0,[0,0,0,0,0,0,0,0,0,["[1-9]\\d{7}"]]],870:["870",0,"7\\d{11}|[235-7]\\d{8}",[9,12],[["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[235-7]"]]],0,0,0,0,0,0,[0,["(?:[356]|774[45])\\d{8}|7[6-8]\\d{7}"],0,0,0,0,0,0,["2\\d{8}",[9]]]],878:["878",0,"10\\d{10}",[12],[["(\\d{2})(\\d{5})(\\d{5})","$1 $2 $3",["1"]]],0,0,0,0,0,0,[0,0,0,0,0,0,0,0,["10\\d{10}"]]],881:["881",0,"6\\d{9}|[0-36-9]\\d{8}",[9,10],[["(\\d)(\\d{3})(\\d{5})","$1 $2 $3",["[0-37-9]"]],["(\\d)(\\d{3})(\\d{5,6})","$1 $2 $3",["6"]]],0,0,0,0,0,0,[0,["6\\d{9}|[0-36-9]\\d{8}"]]],882:["882",0,"[13]\\d{6}(?:\\d{2,5})?|[19]\\d{7}|(?:[25]\\d\\d|4)\\d{7}(?:\\d{2})?",[7,8,9,10,11,12],[["(\\d{2})(\\d{5})","$1 $2",["16|342"]],["(\\d{2})(\\d{6})","$1 $2",["49"]],["(\\d{2})(\\d{2})(\\d{4})","$1 $2 $3",["1[36]|9"]],["(\\d{2})(\\d{4})(\\d{3})","$1 $2 $3",["3[23]"]],["(\\d{2})(\\d{3,4})(\\d{4})","$1 $2 $3",["16"]],["(\\d{2})(\\d{4})(\\d{4})","$1 $2 $3",["10|23|3(?:[15]|4[57])|4|51"]],["(\\d{3})(\\d{4})(\\d{4})","$1 $2 $3",["34"]],["(\\d{2})(\\d{4,5})(\\d{5})","$1 $2 $3",["[1-35]"]]],0,0,0,0,0,0,[0,["342\\d{4}|(?:337|49)\\d{6}|(?:3(?:2|47|7\\d{3})|50\\d{3})\\d{7}",[7,8,9,10,12]],0,0,0,["348[57]\\d{7}",[11]],0,0,["1(?:3(?:0[0347]|[13][0139]|2[035]|4[013568]|6[0459]|7[06]|8[15-8]|9[0689])\\d{4}|6\\d{5,10})|(?:345\\d|9[89])\\d{6}|(?:10|2(?:3|85\\d)|3(?:[15]|[69]\\d\\d)|4[15-8]|51)\\d{8}"]]],883:["883",0,"(?:[1-4]\\d|51)\\d{6,10}",[8,9,10,11,12],[["(\\d{3})(\\d{3})(\\d{2,8})","$1 $2 $3",["[14]|2[24-689]|3[02-689]|51[24-9]"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["510"]],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["21"]],["(\\d{4})(\\d{4})(\\d{4})","$1 $2 $3",["51[13]"]],["(\\d{3})(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3 $4",["[235]"]]],0,0,0,0,0,0,[0,0,0,0,0,0,0,0,["(?:2(?:00\\d\\d|10)|(?:370[1-9]|51\\d0)\\d)\\d{7}|51(?:00\\d{5}|[24-9]0\\d{4,7})|(?:1[0-79]|2[24-689]|3[02-689]|4[0-4])0\\d{5,9}"]]],888:["888",0,"\\d{11}",[11],[["(\\d{3})(\\d{3})(\\d{5})","$1 $2 $3"]],0,0,0,0,0,0,[0,0,0,0,0,0,["\\d{11}"]]],979:["979",0,"[1359]\\d{8}",[9],[["(\\d)(\\d{4})(\\d{4})","$1 $2 $3",["[1359]"]]],0,0,0,0,0,0,[0,0,0,["[1359]\\d{8}"]]]}};var f$={exports:{}},d$,TR;function VG(){if(TR)return d$;TR=1;var t="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return d$=t,d$}var h$,_R;function GG(){if(_R)return h$;_R=1;var t=VG();function e(){}function n(){}return n.resetWarningCache=e,h$=function(){function r(u,l,d,h,g,y){if(y!==t){var w=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw w.name="Invariant Violation",w}}r.isRequired=r;function i(){return r}var o={array:r,bigint:r,bool:r,func:r,number:r,object:r,string:r,symbol:r,any:r,arrayOf:i,element:r,elementType:r,instanceOf:i,node:r,objectOf:i,oneOf:i,oneOfType:i,shape:i,exact:i,checkPropTypes:n,resetWarningCache:e};return o.PropTypes=o,o},h$}var AR;function WG(){return AR||(AR=1,f$.exports=GG()()),f$.exports}var Ue=WG();const Te=Hf(Ue);function KG(t,e,n){switch(n){case"Backspace":e>0&&(t=t.slice(0,e-1)+t.slice(e),e--);break;case"Delete":t=t.slice(0,e)+t.slice(e+1);break}return{value:t,caret:e}}function YG(t,e,n){for(var r={},i="",o=0,u=0;uu&&(o=i.length))),u++}e===void 0&&(o=i.length);var d={value:i,caret:o};return d}function JG(t,e){var n=typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(n)return(n=n.call(t)).next.bind(n);if(Array.isArray(t)||(n=QG(t))||e){n&&(t=n);var r=0;return function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function QG(t,e){if(t){if(typeof t=="string")return RR(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);if(n==="Object"&&t.constructor&&(n=t.constructor.name),n==="Map"||n==="Set")return Array.from(t);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return RR(t,e)}}function RR(t,e){(e==null||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n2&&arguments[2]!==void 0?arguments[2]:"x",r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:" ",i=t.length,o=Ix("(",t),u=Ix(")",t),l=o-u;l>0&&i=t.length?{done:!0}:{done:!1,value:t[r++]}}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function eW(t,e){if(t){if(typeof t=="string")return PR(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);if(n==="Object"&&t.constructor&&(n=t.constructor.name),n==="Map"||n==="Set")return Array.from(t);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return PR(t,e)}}function PR(t,e){(e==null||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n1&&arguments[1]!==void 0?arguments[1]:"x",n=arguments.length>2?arguments[2]:void 0;if(!t)return function(i){return{text:i}};var r=Ix(e,t);return function(i){if(!i)return{text:"",template:t};for(var o=0,u="",l=ZG(t.split("")),d;!(d=l()).done;){var h=d.value;if(h!==e){u+=h;continue}if(u+=i[o],o++,o===i.length&&i.length=0)&&Object.prototype.propertyIsEnumerable.call(t,r)&&(n[r]=t[r])}return n}function mW(t,e){if(t==null)return{};var n={},r=Object.keys(t),i,o;for(o=0;o=0)&&(n[i]=t[i]);return n}function gW(t){var e=t.ref,n=t.parse,r=t.format,i=t.value,o=t.defaultValue,u=t.controlled,l=u===void 0?!0:u,d=t.onChange,h=t.onKeyDown,g=pW(t,dW),y=T.useRef(),w=T.useCallback(function($){y.current=$,e&&(typeof e=="function"?e($):e.current=$)},[e]),b=T.useCallback(function($){return lW($,y.current,n,r,d)},[y,n,r,d]),C=T.useCallback(function($){if(h&&h($),!$.defaultPrevented)return cW($,y.current,n,r,d)},[y,n,r,d,h]),E=Jg(Jg({},g),{},{ref:w,onChange:b,onKeyDown:C});return l?Jg(Jg({},E),{},{value:r(MR(i)?"":i).text}):Jg(Jg({},E),{},{defaultValue:r(MR(o)?"":o).text})}function MR(t){return t==null}var yW=["inputComponent","parse","format","value","defaultValue","onChange","controlled","onKeyDown","type"];function kR(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),n.push.apply(n,r)}return n}function vW(t){for(var e=1;e=0)&&Object.prototype.propertyIsEnumerable.call(t,r)&&(n[r]=t[r])}return n}function SW(t,e){if(t==null)return{};var n={},r=Object.keys(t),i,o;for(o=0;o=0)&&(n[i]=t[i]);return n}function SS(t,e){var n=t.inputComponent,r=n===void 0?"input":n,i=t.parse,o=t.format,u=t.value,l=t.defaultValue,d=t.onChange,h=t.controlled,g=t.onKeyDown,y=t.type,w=y===void 0?"text":y,b=wW(t,yW),C=gW(vW({ref:e,parse:i,format:o,value:u,defaultValue:l,onChange:d,controlled:h,onKeyDown:g,type:w},b));return Ae.createElement(r,C)}SS=Ae.forwardRef(SS);SS.propTypes={parse:Te.func.isRequired,format:Te.func.isRequired,inputComponent:Te.elementType,type:Te.string,value:Te.string,defaultValue:Te.string,onChange:Te.func,controlled:Te.bool,onKeyDown:Te.func,onCut:Te.func,onPaste:Te.func};function DR(t,e){t=t.split("-"),e=e.split("-");for(var n=t[0].split("."),r=e[0].split("."),i=0;i<3;i++){var o=Number(n[i]),u=Number(r[i]);if(o>u)return 1;if(u>o)return-1;if(!isNaN(o)&&isNaN(u))return 1;if(isNaN(o)&&!isNaN(u))return-1}return t[1]&&e[1]?t[1]>e[1]?1:t[1]o?"TOO_SHORT":i[i.length-1]=0?"IS_POSSIBLE":"INVALID_LENGTH"}function IW(t,e,n){if(e===void 0&&(e={}),n=new Lr(n),e.v2){if(!t.countryCallingCode)throw new Error("Invalid phone number object passed");n.selectNumberingPlan(t.countryCallingCode)}else{if(!t.phone)return!1;if(t.country){if(!n.hasCountry(t.country))throw new Error("Unknown country: ".concat(t.country));n.country(t.country)}else{if(!t.countryCallingCode)throw new Error("Invalid phone number object passed");n.selectNumberingPlan(t.countryCallingCode)}}if(n.possibleLengths())return wN(t.phone||t.nationalNumber,n);if(t.countryCallingCode&&n.isNonGeographicCallingCode(t.countryCallingCode))return!0;throw new Error('Missing "possibleLengths" in metadata. Perhaps the metadata has been generated before v1.0.18.')}function wN(t,e){switch(c3(t,e)){case"IS_POSSIBLE":return!0;default:return!1}}function Il(t,e){return t=t||"",new RegExp("^(?:"+e+")$").test(t)}function NW(t,e){var n=typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(n)return(n=n.call(t)).next.bind(n);if(Array.isArray(t)||(n=MW(t))||e){n&&(t=n);var r=0;return function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function MW(t,e){if(t){if(typeof t=="string")return BR(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);if(n==="Object"&&t.constructor&&(n=t.constructor.name),n==="Map"||n==="Set")return Array.from(t);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return BR(t,e)}}function BR(t,e){(e==null||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n=0}var bT=2,UW=17,BW=3,da="0-90-9٠-٩۰-۹",jW="-‐-―−ー-",qW="//",HW="..",zW="  ­​⁠ ",VW="()()[]\\[\\]",GW="~⁓∼~",Ls="".concat(jW).concat(qW).concat(HW).concat(zW).concat(VW).concat(GW),f3="++",WW=new RegExp("(["+da+"])");function SN(t,e,n,r){if(e){var i=new Lr(r);i.selectNumberingPlan(e,n);var o=new RegExp(i.IDDPrefix());if(t.search(o)===0){t=t.slice(t.match(o)[0].length);var u=t.match(WW);if(!(u&&u[1]!=null&&u[1].length>0&&u[1]==="0"))return t}}}function kx(t,e){if(t&&e.numberingPlan.nationalPrefixForParsing()){var n=new RegExp("^(?:"+e.numberingPlan.nationalPrefixForParsing()+")"),r=n.exec(t);if(r){var i,o,u=r.length-1,l=u>0&&r[u];if(e.nationalPrefixTransformRule()&&l)i=t.replace(n,e.nationalPrefixTransformRule()),u>1&&(o=r[1]);else{var d=r[0];i=t.slice(d.length),l&&(o=r[1])}var h;if(l){var g=t.indexOf(r[1]),y=t.slice(0,g);y===e.numberingPlan.nationalPrefix()&&(h=e.numberingPlan.nationalPrefix())}else h=r[0];return{nationalNumber:i,nationalPrefix:h,carrierCode:o}}}return{nationalNumber:t}}function Dx(t,e){var n=kx(t,e),r=n.carrierCode,i=n.nationalNumber;if(i!==t){if(!KW(t,i,e))return{nationalNumber:t};if(e.possibleLengths()&&!YW(i,e))return{nationalNumber:t}}return{nationalNumber:i,carrierCode:r}}function KW(t,e,n){return!(Il(t,n.nationalNumberPattern())&&!Il(e,n.nationalNumberPattern()))}function YW(t,e){switch(c3(t,e)){case"TOO_SHORT":case"INVALID_LENGTH":return!1;default:return!0}}function CN(t,e,n,r){var i=e?Yf(e,r):n;if(t.indexOf(i)===0){r=new Lr(r),r.selectNumberingPlan(e,n);var o=t.slice(i.length),u=Dx(o,r),l=u.nationalNumber,d=Dx(t,r),h=d.nationalNumber;if(!Il(h,r.nationalNumberPattern())&&Il(l,r.nationalNumberPattern())||c3(h,r)==="TOO_LONG")return{countryCallingCode:i,number:o}}return{number:t}}function wT(t,e,n,r){if(!t)return{};var i;if(t[0]!=="+"){var o=SN(t,e,n,r);if(o&&o!==t)i=!0,t="+"+o;else{if(e||n){var u=CN(t,e,n,r),l=u.countryCallingCode,d=u.number;if(l)return{countryCallingCodeSource:"FROM_NUMBER_WITHOUT_PLUS_SIGN",countryCallingCode:l,number:d}}return{number:t}}}if(t[1]==="0")return{};r=new Lr(r);for(var h=2;h-1<=BW&&h<=t.length;){var g=t.slice(1,h);if(r.hasCallingCode(g))return r.selectNumberingPlan(g),{countryCallingCodeSource:i?"FROM_NUMBER_WITH_IDD":"FROM_NUMBER_WITH_PLUS_SIGN",countryCallingCode:g,number:t.slice(h)};h++}return{}}function $N(t){return t.replace(new RegExp("[".concat(Ls,"]+"),"g")," ").trim()}var EN=/(\$\d)/;function xN(t,e,n){var r=n.useInternationalFormat,i=n.withNationalPrefix;n.carrierCode,n.metadata;var o=t.replace(new RegExp(e.pattern()),r?e.internationalFormat():i&&e.nationalPrefixFormattingRule()?e.format().replace(EN,e.nationalPrefixFormattingRule()):e.format());return r?$N(o):o}var JW=/^[\d]+(?:[~\u2053\u223C\uFF5E][\d]+)?$/;function QW(t,e,n){var r=new Lr(n);if(r.selectNumberingPlan(t,e),r.defaultIDDPrefix())return r.defaultIDDPrefix();if(JW.test(r.IDDPrefix()))return r.IDDPrefix()}var XW=";ext=",Qg=function(e){return"([".concat(da,"]{1,").concat(e,"})")};function ON(t){var e="20",n="15",r="9",i="6",o="[  \\t,]*",u="[:\\..]?[  \\t,-]*",l="#?",d="(?:e?xt(?:ensi(?:ó?|ó))?n?|e?xtn?|доб|anexo)",h="(?:[xx##~~]|int|int)",g="[- ]+",y="[  \\t]*",w="(?:,{2}|;)",b=XW+Qg(e),C=o+d+u+Qg(e)+l,E=o+h+u+Qg(r)+l,$=g+Qg(i)+"#",O=y+w+u+Qg(n)+l,_=y+"(?:,)+"+u+Qg(r)+l;return b+"|"+C+"|"+E+"|"+$+"|"+O+"|"+_}var ZW="["+da+"]{"+bT+"}",eK="["+f3+"]{0,1}(?:["+Ls+"]*["+da+"]){3,}["+Ls+da+"]*",tK=new RegExp("^["+f3+"]{0,1}(?:["+Ls+"]*["+da+"]){1,2}$","i"),nK=eK+"(?:"+ON()+")?",rK=new RegExp("^"+ZW+"$|^"+nK+"$","i");function iK(t){return t.length>=bT&&rK.test(t)}function aK(t){return tK.test(t)}function oK(t){var e=t.number,n=t.ext;if(!e)return"";if(e[0]!=="+")throw new Error('"formatRFC3966()" expects "number" to be in E.164 format.');return"tel:".concat(e).concat(n?";ext="+n:"")}function sK(t,e){var n=typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(n)return(n=n.call(t)).next.bind(n);if(Array.isArray(t)||(n=uK(t))||e){n&&(t=n);var r=0;return function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function uK(t,e){if(t){if(typeof t=="string")return jR(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);if(n==="Object"&&t.constructor&&(n=t.constructor.name),n==="Map"||n==="Set")return Array.from(t);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return jR(t,e)}}function jR(t,e){(e==null||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n0){var o=i.leadingDigitsPatterns()[i.leadingDigitsPatterns().length-1];if(e.search(o)!==0)continue}if(Il(e,i.pattern()))return i}}function m$(t,e,n,r){return e?r(t,e,n):t}function dK(t,e,n,r,i){var o=Yf(r,i.metadata);if(o===n){var u=CS(t,e,"NATIONAL",i);return n==="1"?n+" "+u:u}var l=QW(r,void 0,i.metadata);if(l)return"".concat(l," ").concat(n," ").concat(CS(t,null,"INTERNATIONAL",i))}function VR(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),n.push.apply(n,r)}return n}function GR(t){for(var e=1;e"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function xK(t){return Function.toString.call(t).indexOf("[native code]")!==-1}function k1(t,e){return k1=Object.setPrototypeOf||function(r,i){return r.__proto__=i,r},k1(t,e)}function D1(t){return D1=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},D1(t)}var Ol=(function(t){CK(n,t);var e=$K(n);function n(r){var i;return SK(this,n),i=e.call(this,r),Object.setPrototypeOf(_N(i),n.prototype),i.name=i.constructor.name,i}return wK(n)})(Lx(Error)),WR=new RegExp("(?:"+ON()+")$","i");function OK(t){var e=t.search(WR);if(e<0)return{};for(var n=t.slice(0,e),r=t.match(WR),i=1;i=t.length?{done:!0}:{done:!1,value:t[r++]}}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function _K(t,e){if(t){if(typeof t=="string")return KR(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);if(n==="Object"&&t.constructor&&(n=t.constructor.name),n==="Map"||n==="Set")return Array.from(t);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return KR(t,e)}}function KR(t,e){(e==null||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n=t.length?{done:!0}:{done:!1,value:t[r++]}}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function PK(t,e){if(t){if(typeof t=="string")return YR(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);if(n==="Object"&&t.constructor&&(n=t.constructor.name),n==="Map"||n==="Set")return Array.from(t);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return YR(t,e)}}function YR(t,e){(e==null||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n=t.length?{done:!0}:{done:!1,value:t[r++]}}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function NK(t,e){if(t){if(typeof t=="string")return JR(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);if(n==="Object"&&t.constructor&&(n=t.constructor.name),n==="Map"||n==="Set")return Array.from(t);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return JR(t,e)}}function JR(t,e){(e==null||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n=t.length)return"";var r=t.indexOf(";",n);return r>=0?t.substring(n,r):t.substring(n)}function zK(t){return t===null?!0:t.length===0?!1:DK.test(t)||jK.test(t)}function VK(t,e){var n=e.extractFormattedPhoneNumber,r=HK(t);if(!zK(r))throw new Ol("NOT_A_NUMBER");var i;if(r===null)i=n(t)||"";else{i="",r.charAt(0)===MN&&(i+=r);var o=t.indexOf(XR),u;o>=0?u=o+XR.length:u=0;var l=t.indexOf(jx);i+=t.substring(u,l)}var d=i.indexOf(qK);if(d>0&&(i=i.substring(0,d)),i!=="")return i}var GK=250,WK=new RegExp("["+f3+da+"]"),KK=new RegExp("[^"+da+"#]+$");function YK(t,e,n){if(e=e||{},n=new Lr(n),e.defaultCountry&&!n.hasCountry(e.defaultCountry))throw e.v2?new Ol("INVALID_COUNTRY"):new Error("Unknown country: ".concat(e.defaultCountry));var r=QK(t,e.v2,e.extract),i=r.number,o=r.ext,u=r.error;if(!i){if(e.v2)throw u==="TOO_SHORT"?new Ol("TOO_SHORT"):new Ol("NOT_A_NUMBER");return{}}var l=ZK(i,e.defaultCountry,e.defaultCallingCode,n),d=l.country,h=l.nationalNumber,g=l.countryCallingCode,y=l.countryCallingCodeSource,w=l.carrierCode;if(!n.hasSelectedNumberingPlan()){if(e.v2)throw new Ol("INVALID_COUNTRY");return{}}if(!h||h.lengthUW){if(e.v2)throw new Ol("TOO_LONG");return{}}if(e.v2){var b=new TN(g,h,n.metadata);return d&&(b.country=d),w&&(b.carrierCode=w),o&&(b.ext=o),b.__countryCallingCodeSource=y,b}var C=(e.extended?n.hasSelectedNumberingPlan():d)?Il(h,n.nationalNumberPattern()):!1;return e.extended?{country:d,countryCallingCode:g,carrierCode:w,valid:C,possible:C?!0:!!(e.extended===!0&&n.possibleLengths()&&wN(h,n)),phone:h,ext:o}:C?XK(d,h,o):{}}function JK(t,e,n){if(t){if(t.length>GK){if(n)throw new Ol("TOO_LONG");return}if(e===!1)return t;var r=t.search(WK);if(!(r<0))return t.slice(r).replace(KK,"")}}function QK(t,e,n){var r=VK(t,{extractFormattedPhoneNumber:function(u){return JK(u,n,e)}});if(!r)return{};if(!iK(r))return aK(r)?{error:"TOO_SHORT"}:{};var i=OK(r);return i.ext?i:{number:r}}function XK(t,e,n){var r={country:t,phone:e};return n&&(r.ext=n),r}function ZK(t,e,n,r){var i=wT(Ux(t),e,n,r.metadata),o=i.countryCallingCodeSource,u=i.countryCallingCode,l=i.number,d;if(u)r.selectNumberingPlan(u);else if(l&&(e||n))r.selectNumberingPlan(e,n),e&&(d=e),u=n||Yf(e,r.metadata);else return{};if(!l)return{countryCallingCodeSource:o,countryCallingCode:u};var h=Dx(Ux(l),r),g=h.nationalNumber,y=h.carrierCode,w=NN(u,{nationalNumber:g,defaultCountry:e,metadata:r});return w&&(d=w,w==="001"||r.country(d)),{country:d,countryCallingCode:u,countryCallingCodeSource:o,nationalNumber:g,carrierCode:y}}function ZR(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),n.push.apply(n,r)}return n}function eP(t){for(var e=1;et.length)&&(e=t.length);for(var n=0,r=new Array(e);n=t.length?{done:!0}:{done:!1,value:t[r++]}}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function vY(t,e){if(t){if(typeof t=="string")return aP(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);if(n==="Object"&&t.constructor&&(n=t.constructor.name),n==="Map"||n==="Set")return Array.from(t);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return aP(t,e)}}function aP(t,e){(e==null||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n1;)e&1&&(n+=t),e>>=1,t+=t;return n+t}function oP(t,e){return t[e]===")"&&e++,bY(t.slice(0,e))}function bY(t){for(var e=[],n=0;n=t.length?{done:!0}:{done:!1,value:t[r++]}}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function IY(t,e){if(t){if(typeof t=="string")return lP(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);if(n==="Object"&&t.constructor&&(n=t.constructor.name),n==="Map"||n==="Set")return Array.from(t);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return lP(t,e)}}function lP(t,e){(e==null||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n1&&arguments[1]!==void 0?arguments[1]:{},i=r.allowOverflow;if(!n)throw new Error("String is required");var o=qx(n.split(""),this.matchTree,!0);if(o&&o.match&&delete o.matchedChars,!(o&&o.overflow&&!i))return o}}]),t})();function qx(t,e,n){if(typeof e=="string"){var r=t.join("");return e.indexOf(r)===0?t.length===e.length?{match:!0,matchedChars:t}:{partialMatch:!0}:r.indexOf(e)===0?n&&t.length>e.length?{overflow:!0}:{match:!0,matchedChars:t.slice(0,e.length)}:void 0}if(Array.isArray(e)){for(var i=t.slice(),o=0;o=t.length?{done:!0}:{done:!1,value:t[r++]}}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function FY(t,e){if(t){if(typeof t=="string")return fP(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);if(n==="Object"&&t.constructor&&(n=t.constructor.name),n==="Map"||n==="Set")return Array.from(t);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return fP(t,e)}}function fP(t,e){(e==null||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n=0)){var i=this.getTemplateForFormat(n,r);if(i)return this.setNationalNumberTemplate(i,r),!0}}},{key:"getSeparatorAfterNationalPrefix",value:function(n){return this.isNANP||n&&n.nationalPrefixFormattingRule()&&HY.test(n.nationalPrefixFormattingRule())?" ":""}},{key:"getInternationalPrefixBeforeCountryCallingCode",value:function(n,r){var i=n.IDDPrefix,o=n.missingPlus;return i?r&&r.spacing===!1?i:i+" ":o?"":"+"}},{key:"getTemplate",value:function(n){if(this.template){for(var r=-1,i=0,o=n.international?this.getInternationalPrefixBeforeCountryCallingCode(n,{spacing:!1}):"";ih.length)){var g=new RegExp("^"+d+"$"),y=i.replace(/\d/g,Hx);g.test(y)&&(h=y);var w=this.getFormatFormat(n,o),b;if(this.shouldTryNationalPrefixFormattingRule(n,{international:o,nationalPrefix:u})){var C=w.replace(EN,n.nationalPrefixFormattingRule());if($S(n.nationalPrefixFormattingRule())===(u||"")+$S("$1")&&(w=C,b=!0,u))for(var E=u.length;E>0;)w=w.replace(/\d/,Ns),E--}var $=h.replace(new RegExp(d),w).replace(new RegExp(Hx,"g"),Ns);return b||(l?$=Xw(Ns,l.length)+" "+$:u&&($=Xw(Ns,u.length)+this.getSeparatorAfterNationalPrefix(n)+$)),o&&($=$N($)),$}}},{key:"formatNextNationalNumberDigits",value:function(n){var r=wY(this.populatedNationalNumberTemplate,this.populatedNationalNumberTemplatePosition,n);if(!r){this.resetFormat();return}return this.populatedNationalNumberTemplate=r[0],this.populatedNationalNumberTemplatePosition=r[1],oP(this.populatedNationalNumberTemplate,this.populatedNationalNumberTemplatePosition+1)}},{key:"shouldTryNationalPrefixFormattingRule",value:function(n,r){var i=r.international,o=r.nationalPrefix;if(n.nationalPrefixFormattingRule()){var u=n.usesNationalPrefix();if(u&&o||!u&&!i)return!0}}}]),t})();function kN(t,e){return QY(t)||JY(t,e)||YY(t,e)||KY()}function KY(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function YY(t,e){if(t){if(typeof t=="string")return hP(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);if(n==="Object"&&t.constructor&&(n=t.constructor.name),n==="Map"||n==="Set")return Array.from(t);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return hP(t,e)}}function hP(t,e){(e==null||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n=3;if(r.appendDigits(n),o&&this.extractIddPrefix(r),this.isWaitingForCountryCallingCode(r)){if(!this.extractCountryCallingCode(r))return}else r.appendNationalSignificantNumberDigits(n);r.international||this.hasExtractedNationalSignificantNumber||this.extractNationalSignificantNumber(r.getNationalDigits(),function(u){return r.update(u)})}},{key:"isWaitingForCountryCallingCode",value:function(n){var r=n.international,i=n.callingCode;return r&&!i}},{key:"extractCountryCallingCode",value:function(n){var r=wT("+"+n.getDigitsWithoutInternationalPrefix(),this.defaultCountry,this.defaultCallingCode,this.metadata.metadata),i=r.countryCallingCode,o=r.number;if(i)return n.setCallingCode(i),n.update({nationalSignificantNumber:o}),!0}},{key:"reset",value:function(n){if(n){this.hasSelectedNumberingPlan=!0;var r=n._nationalPrefixForParsing();this.couldPossiblyExtractAnotherNationalSignificantNumber=r&&aJ.test(r)}else this.hasSelectedNumberingPlan=void 0,this.couldPossiblyExtractAnotherNationalSignificantNumber=void 0}},{key:"extractNationalSignificantNumber",value:function(n,r){if(this.hasSelectedNumberingPlan){var i=kx(n,this.metadata),o=i.nationalPrefix,u=i.nationalNumber,l=i.carrierCode;if(u!==n)return this.onExtractedNationalNumber(o,l,u,n,r),!0}}},{key:"extractAnotherNationalSignificantNumber",value:function(n,r,i){if(!this.hasExtractedNationalSignificantNumber)return this.extractNationalSignificantNumber(n,i);if(this.couldPossiblyExtractAnotherNationalSignificantNumber){var o=kx(n,this.metadata),u=o.nationalPrefix,l=o.nationalNumber,d=o.carrierCode;if(l!==r)return this.onExtractedNationalNumber(u,d,l,n,i),!0}}},{key:"onExtractedNationalNumber",value:function(n,r,i,o,u){var l,d,h=o.lastIndexOf(i);if(h>=0&&h===o.length-i.length){d=!0;var g=o.slice(0,h);g!==n&&(l=g)}u({nationalPrefix:n,carrierCode:r,nationalSignificantNumber:i,nationalSignificantNumberMatchesInput:d,complexPrefixBeforeNationalSignificantNumber:l}),this.hasExtractedNationalSignificantNumber=!0,this.onNationalSignificantNumberChange()}},{key:"reExtractNationalSignificantNumber",value:function(n){if(this.extractAnotherNationalSignificantNumber(n.getNationalDigits(),n.nationalSignificantNumber,function(r){return n.update(r)}))return!0;if(this.extractIddPrefix(n))return this.extractCallingCodeAndNationalSignificantNumber(n),!0;if(this.fixMissingPlus(n))return this.extractCallingCodeAndNationalSignificantNumber(n),!0}},{key:"extractIddPrefix",value:function(n){var r=n.international,i=n.IDDPrefix,o=n.digits;if(n.nationalSignificantNumber,!(r||i)){var u=SN(o,this.defaultCountry,this.defaultCallingCode,this.metadata.metadata);if(u!==void 0&&u!==o)return n.update({IDDPrefix:o.slice(0,o.length-u.length)}),this.startInternationalNumber(n,{country:void 0,callingCode:void 0}),!0}}},{key:"fixMissingPlus",value:function(n){if(!n.international){var r=CN(n.digits,this.defaultCountry,this.defaultCallingCode,this.metadata.metadata),i=r.countryCallingCode;if(r.number,i)return n.update({missingPlus:!0}),this.startInternationalNumber(n,{country:n.country,callingCode:i}),!0}}},{key:"startInternationalNumber",value:function(n,r){var i=r.country,o=r.callingCode;n.startInternationalNumber(i,o),n.nationalSignificantNumber&&(n.resetNationalSignificantNumber(),this.onNationalSignificantNumberChange(),this.hasExtractedNationalSignificantNumber=void 0)}},{key:"extractCallingCodeAndNationalSignificantNumber",value:function(n){this.extractCountryCallingCode(n)&&this.extractNationalSignificantNumber(n.getNationalDigits(),function(r){return n.update(r)})}}]),t})();function sJ(t){var e=t.search(rJ);if(!(e<0)){t=t.slice(e);var n;return t[0]==="+"&&(n=!0,t=t.slice(1)),t=t.replace(iJ,""),n&&(t="+"+t),t}}function uJ(t){var e=sJ(t)||"";return e[0]==="+"?[e.slice(1),!0]:[e]}function lJ(t){var e=uJ(t),n=kN(e,2),r=n[0],i=n[1];return nJ.test(r)||(r=""),[r,i]}function cJ(t,e){return pJ(t)||hJ(t,e)||dJ(t,e)||fJ()}function fJ(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function dJ(t,e){if(t){if(typeof t=="string")return pP(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);if(n==="Object"&&t.constructor&&(n=t.constructor.name),n==="Map"||n==="Set")return Array.from(t);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return pP(t,e)}}function pP(t,e){(e==null||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n1}},{key:"determineTheCountry",value:function(){this.state.setCountry(NN(this.isInternational()?this.state.callingCode:this.defaultCallingCode,{nationalNumber:this.state.nationalSignificantNumber,defaultCountry:this.defaultCountry,metadata:this.metadata}))}},{key:"getNumberValue",value:function(){var n=this.state,r=n.digits,i=n.callingCode,o=n.country,u=n.nationalSignificantNumber;if(r){if(this.isInternational())return i?"+"+i+u:"+"+r;if(o||i){var l=o?this.metadata.countryCallingCode():i;return"+"+l+u}}}},{key:"getNumber",value:function(){var n=this.state,r=n.nationalSignificantNumber,i=n.carrierCode,o=n.callingCode,u=this._getCountry();if(r&&!(!u&&!o)){if(u&&u===this.defaultCountry){var l=new Lr(this.metadata.metadata);l.selectNumberingPlan(u);var d=l.numberingPlan.callingCode(),h=this.metadata.getCountryCodesForCallingCode(d);if(h.length>1){var g=IN(r,{countries:h,defaultCountry:this.defaultCountry,metadata:this.metadata.metadata});g&&(u=g)}}var y=new TN(u||o,r,this.metadata.metadata);return i&&(y.carrierCode=i),y}}},{key:"isPossible",value:function(){var n=this.getNumber();return n?n.isPossible():!1}},{key:"isValid",value:function(){var n=this.getNumber();return n?n.isValid():!1}},{key:"getNationalNumber",value:function(){return this.state.nationalSignificantNumber}},{key:"getChars",value:function(){return(this.state.international?"+":"")+this.state.digits}},{key:"getTemplate",value:function(){return this.formatter.getTemplate(this.state)||this.getNonFormattedTemplate()||""}}]),t})();function mP(t){return new Lr(t).getCountries()}function vJ(t,e,n){return n||(n=e,e=void 0),new Ny(e,n).input(t)}function DN(t){var e=t.inputFormat,n=t.country,r=t.metadata;return e==="NATIONAL_PART_OF_INTERNATIONAL"?"+".concat(Yf(n,r)):""}function zx(t,e){return e&&(t=t.slice(e.length),t[0]===" "&&(t=t.slice(1))),t}function bJ(t,e,n){if(!(n&&n.ignoreRest)){var r=function(o){if(n)switch(o){case"end":n.ignoreRest=!0;break}};return PN(t,e,r)}}function FN(t){var e=t.onKeyDown,n=t.inputFormat;return T.useCallback(function(r){if(r.keyCode===SJ&&n==="INTERNATIONAL"&&r.target instanceof HTMLInputElement&&wJ(r.target)===CJ.length){r.preventDefault();return}e&&e(r)},[e,n])}function wJ(t){return t.selectionStart}var SJ=8,CJ="+",$J=["onKeyDown","country","inputFormat","metadata","international","withCountryCallingCode"];function Vx(){return Vx=Object.assign?Object.assign.bind():function(t){for(var e=1;e=0)&&Object.prototype.propertyIsEnumerable.call(t,r)&&(n[r]=t[r])}return n}function xJ(t,e){if(t==null)return{};var n={},r=Object.keys(t),i,o;for(o=0;o=0)&&(n[i]=t[i]);return n}function OJ(t){function e(n,r){var i=n.onKeyDown,o=n.country,u=n.inputFormat,l=n.metadata,d=l===void 0?t:l;n.international,n.withCountryCallingCode;var h=EJ(n,$J),g=T.useCallback(function(w){var b=new Ny(o,d),C=DN({inputFormat:u,country:o,metadata:d}),E=b.input(C+w),$=b.getTemplate();return C&&(E=zx(E,C),$&&($=zx($,C))),{text:E,template:$}},[o,d]),y=FN({onKeyDown:i,inputFormat:u});return Ae.createElement(SS,Vx({},h,{ref:r,parse:bJ,format:g,onKeyDown:y}))}return e=Ae.forwardRef(e),e.propTypes={value:Te.string.isRequired,onChange:Te.func.isRequired,onKeyDown:Te.func,country:Te.string,inputFormat:Te.oneOf(["INTERNATIONAL","NATIONAL_PART_OF_INTERNATIONAL","NATIONAL","INTERNATIONAL_OR_NATIONAL"]).isRequired,metadata:Te.object},e}const TJ=OJ();var _J=["value","onChange","onKeyDown","country","inputFormat","metadata","inputComponent","international","withCountryCallingCode"];function Gx(){return Gx=Object.assign?Object.assign.bind():function(t){for(var e=1;e=0)&&Object.prototype.propertyIsEnumerable.call(t,r)&&(n[r]=t[r])}return n}function RJ(t,e){if(t==null)return{};var n={},r=Object.keys(t),i,o;for(o=0;o=0)&&(n[i]=t[i]);return n}function PJ(t){function e(n,r){var i=n.value,o=n.onChange,u=n.onKeyDown,l=n.country,d=n.inputFormat,h=n.metadata,g=h===void 0?t:h,y=n.inputComponent,w=y===void 0?"input":y;n.international,n.withCountryCallingCode;var b=AJ(n,_J),C=DN({inputFormat:d,country:l,metadata:g}),E=T.useCallback(function(O){var _=Ux(O.target.value);if(_===i){var P=gP(C,_,l,g);P.indexOf(O.target.value)===0&&(_=_.slice(0,-1))}o(_)},[C,i,o,l,g]),$=FN({onKeyDown:u,inputFormat:d});return Ae.createElement(w,Gx({},b,{ref:r,value:gP(C,i,l,g),onChange:E,onKeyDown:$}))}return e=Ae.forwardRef(e),e.propTypes={value:Te.string.isRequired,onChange:Te.func.isRequired,onKeyDown:Te.func,country:Te.string,inputFormat:Te.oneOf(["INTERNATIONAL","NATIONAL_PART_OF_INTERNATIONAL","NATIONAL","INTERNATIONAL_OR_NATIONAL"]).isRequired,metadata:Te.object,inputComponent:Te.elementType},e}const IJ=PJ();function gP(t,e,n,r){return zx(vJ(t+e,n,r),t)}function NJ(t){return yP(t[0])+yP(t[1])}function yP(t){return String.fromCodePoint(127397+t.toUpperCase().charCodeAt(0))}var MJ=["value","onChange","options","disabled","readOnly"],kJ=["value","options","className","iconComponent","getIconAspectRatio","arrowComponent","unicodeFlags"];function DJ(t,e){var n=typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(n)return(n=n.call(t)).next.bind(n);if(Array.isArray(t)||(n=FJ(t))||e){n&&(t=n);var r=0;return function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function FJ(t,e){if(t){if(typeof t=="string")return vP(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);if(n==="Object"&&t.constructor&&(n=t.constructor.name),n==="Map"||n==="Set")return Array.from(t);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return vP(t,e)}}function vP(t,e){(e==null||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n=0)&&Object.prototype.propertyIsEnumerable.call(t,r)&&(n[r]=t[r])}return n}function LJ(t,e){if(t==null)return{};var n={},r=Object.keys(t),i,o;for(o=0;o=0)&&(n[i]=t[i]);return n}function UN(t){var e=t.value,n=t.onChange,r=t.options,i=t.disabled,o=t.readOnly,u=LN(t,MJ),l=T.useCallback(function(d){var h=d.target.value;n(h==="ZZ"?void 0:h)},[n]);return T.useMemo(function(){return jN(r,e)},[r,e]),Ae.createElement("select",ES({},u,{disabled:i||o,readOnly:o,value:e||"ZZ",onChange:l}),r.map(function(d){var h=d.value,g=d.label,y=d.divider;return Ae.createElement("option",{key:y?"|":h||"ZZ",value:y?"|":h||"ZZ",disabled:!!y,style:y?UJ:void 0},g)}))}UN.propTypes={value:Te.string,onChange:Te.func.isRequired,options:Te.arrayOf(Te.shape({value:Te.string,label:Te.string,divider:Te.bool})).isRequired,disabled:Te.bool,readOnly:Te.bool};var UJ={fontSize:"1px",backgroundColor:"currentColor",color:"inherit"};function BN(t){var e=t.value,n=t.options,r=t.className,i=t.iconComponent;t.getIconAspectRatio;var o=t.arrowComponent,u=o===void 0?BJ:o,l=t.unicodeFlags,d=LN(t,kJ),h=T.useMemo(function(){return jN(n,e)},[n,e]);return Ae.createElement("div",{className:"PhoneInputCountry"},Ae.createElement(UN,ES({},d,{value:e,options:n,className:Go("PhoneInputCountrySelect",r)})),h&&(l&&e?Ae.createElement("div",{className:"PhoneInputCountryIconUnicode"},NJ(e)):Ae.createElement(i,{"aria-hidden":!0,country:e,label:h.label,aspectRatio:l?1:void 0})),Ae.createElement(u,null))}BN.propTypes={iconComponent:Te.elementType,arrowComponent:Te.elementType,unicodeFlags:Te.bool};function BJ(){return Ae.createElement("div",{className:"PhoneInputCountrySelectArrow"})}function jN(t,e){for(var n=DJ(t),r;!(r=n()).done;){var i=r.value;if(!i.divider&&jJ(i.value,e))return i}}function jJ(t,e){return t==null?e==null:t===e}var qJ=["country","countryName","flags","flagUrl"];function Wx(){return Wx=Object.assign?Object.assign.bind():function(t){for(var e=1;e=0)&&Object.prototype.propertyIsEnumerable.call(t,r)&&(n[r]=t[r])}return n}function zJ(t,e){if(t==null)return{};var n={},r=Object.keys(t),i,o;for(o=0;o=0)&&(n[i]=t[i]);return n}function ST(t){var e=t.country,n=t.countryName,r=t.flags,i=t.flagUrl,o=HJ(t,qJ);return r&&r[e]?r[e]({title:n}):Ae.createElement("img",Wx({},o,{alt:n,role:n?void 0:"presentation",src:i.replace("{XX}",e).replace("{xx}",e.toLowerCase())}))}ST.propTypes={country:Te.string.isRequired,countryName:Te.string.isRequired,flags:Te.objectOf(Te.elementType),flagUrl:Te.string.isRequired};var VJ=["aspectRatio"],GJ=["title"],WJ=["title"];function xS(){return xS=Object.assign?Object.assign.bind():function(t){for(var e=1;e=0)&&Object.prototype.propertyIsEnumerable.call(t,r)&&(n[r]=t[r])}return n}function KJ(t,e){if(t==null)return{};var n={},r=Object.keys(t),i,o;for(o=0;o=0)&&(n[i]=t[i]);return n}function d3(t){var e=t.aspectRatio,n=CT(t,VJ);return e===1?Ae.createElement(HN,n):Ae.createElement(qN,n)}d3.propTypes={title:Te.string.isRequired,aspectRatio:Te.number};function qN(t){var e=t.title,n=CT(t,GJ);return Ae.createElement("svg",xS({},n,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 75 50"}),Ae.createElement("title",null,e),Ae.createElement("g",{className:"PhoneInputInternationalIconGlobe",stroke:"currentColor",fill:"none",strokeWidth:"2",strokeMiterlimit:"10"},Ae.createElement("path",{strokeLinecap:"round",d:"M47.2,36.1C48.1,36,49,36,50,36c7.4,0,14,1.7,18.5,4.3"}),Ae.createElement("path",{d:"M68.6,9.6C64.2,12.3,57.5,14,50,14c-7.4,0-14-1.7-18.5-4.3"}),Ae.createElement("line",{x1:"26",y1:"25",x2:"74",y2:"25"}),Ae.createElement("line",{x1:"50",y1:"1",x2:"50",y2:"49"}),Ae.createElement("path",{strokeLinecap:"round",d:"M46.3,48.7c1.2,0.2,2.5,0.3,3.7,0.3c13.3,0,24-10.7,24-24S63.3,1,50,1S26,11.7,26,25c0,2,0.3,3.9,0.7,5.8"}),Ae.createElement("path",{strokeLinecap:"round",d:"M46.8,48.2c1,0.6,2.1,0.8,3.2,0.8c6.6,0,12-10.7,12-24S56.6,1,50,1S38,11.7,38,25c0,1.4,0.1,2.7,0.2,4c0,0.1,0,0.2,0,0.2"})),Ae.createElement("path",{className:"PhoneInputInternationalIconPhone",stroke:"none",fill:"currentColor",d:"M12.4,17.9c2.9-2.9,5.4-4.8,0.3-11.2S4.1,5.2,1.3,8.1C-2,11.4,1.1,23.5,13.1,35.6s24.3,15.2,27.5,11.9c2.8-2.8,7.8-6.3,1.4-11.5s-8.3-2.6-11.2,0.3c-2,2-7.2-2.2-11.7-6.7S10.4,19.9,12.4,17.9z"}))}qN.propTypes={title:Te.string.isRequired};function HN(t){var e=t.title,n=CT(t,WJ);return Ae.createElement("svg",xS({},n,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 50 50"}),Ae.createElement("title",null,e),Ae.createElement("g",{className:"PhoneInputInternationalIconGlobe",stroke:"currentColor",fill:"none",strokeWidth:"2",strokeLinecap:"round"},Ae.createElement("path",{d:"M8.45,13A21.44,21.44,0,1,1,37.08,41.56"}),Ae.createElement("path",{d:"M19.36,35.47a36.9,36.9,0,0,1-2.28-13.24C17.08,10.39,21.88.85,27.8.85s10.72,9.54,10.72,21.38c0,6.48-1.44,12.28-3.71,16.21"}),Ae.createElement("path",{d:"M17.41,33.4A39,39,0,0,1,27.8,32.06c6.62,0,12.55,1.5,16.48,3.86"}),Ae.createElement("path",{d:"M44.29,8.53c-3.93,2.37-9.86,3.88-16.49,3.88S15.25,10.9,11.31,8.54"}),Ae.createElement("line",{x1:"27.8",y1:"0.85",x2:"27.8",y2:"34.61"}),Ae.createElement("line",{x1:"15.2",y1:"22.23",x2:"49.15",y2:"22.23"})),Ae.createElement("path",{className:"PhoneInputInternationalIconPhone",stroke:"transparent",fill:"currentColor",d:"M9.42,26.64c2.22-2.22,4.15-3.59.22-8.49S3.08,17,.93,19.17c-2.49,2.48-.13,11.74,9,20.89s18.41,11.5,20.89,9c2.15-2.15,5.91-4.77,1-8.71s-6.27-2-8.49.22c-1.55,1.55-5.48-1.69-8.86-5.08S7.87,28.19,9.42,26.64Z"}))}HN.propTypes={title:Te.string.isRequired};function YJ(t){if(t.length<2||t[0]!=="+")return!1;for(var e=1;e=48&&n<=57))return!1;e++}return!0}function zN(t){YJ(t)||console.error("[react-phone-number-input] Expected the initial `value` to be a E.164 phone number. Got",t)}function JJ(t,e){var n=typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(n)return(n=n.call(t)).next.bind(n);if(Array.isArray(t)||(n=QJ(t))||e){n&&(t=n);var r=0;return function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function QJ(t,e){if(t){if(typeof t=="string")return bP(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);if(n==="Object"&&t.constructor&&(n=t.constructor.name),n==="Map"||n==="Set")return Array.from(t);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return bP(t,e)}}function bP(t,e){(e==null||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n0))return t}function h3(t,e){return vN(t,e)?!0:(console.error("Country not found: ".concat(t)),!1)}function VN(t,e){return t&&(t=t.filter(function(n){return h3(n,e)}),t.length===0&&(t=void 0)),t}var eQ=["country","label","aspectRatio"];function Kx(){return Kx=Object.assign?Object.assign.bind():function(t){for(var e=1;e=0)&&Object.prototype.propertyIsEnumerable.call(t,r)&&(n[r]=t[r])}return n}function nQ(t,e){if(t==null)return{};var n={},r=Object.keys(t),i,o;for(o=0;o=0)&&(n[i]=t[i]);return n}function GN(t){var e=t.flags,n=t.flagUrl,r=t.flagComponent,i=t.internationalIcon;function o(u){var l=u.country,d=u.label,h=u.aspectRatio,g=tQ(u,eQ),y=i===d3?h:void 0;return Ae.createElement("div",Kx({},g,{className:Go("PhoneInputCountryIcon",{"PhoneInputCountryIcon--square":y===1,"PhoneInputCountryIcon--border":l})}),l?Ae.createElement(r,{country:l,countryName:d,flags:e,flagUrl:n,className:"PhoneInputCountryIconImg"}):Ae.createElement(i,{title:d,aspectRatio:y,className:"PhoneInputCountryIconImg"}))}return o.propTypes={country:Te.string,label:Te.string.isRequired,aspectRatio:Te.number},o}GN({flagUrl:"https://purecatamphetamine.github.io/country-flag-icons/3x2/{XX}.svg",flagComponent:ST,internationalIcon:d3});function rQ(t,e){var n=typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(n)return(n=n.call(t)).next.bind(n);if(Array.isArray(t)||(n=iQ(t))||e){n&&(t=n);var r=0;return function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function iQ(t,e){if(t){if(typeof t=="string")return wP(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);if(n==="Object"&&t.constructor&&(n=t.constructor.name),n==="Map"||n==="Set")return Array.from(t);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return wP(t,e)}}function wP(t,e){(e==null||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n0&&(d=i()),d}function uQ(t){var e=t.countries,n=t.countryNames,r=t.addInternationalOption,i=t.compareStringsLocales,o=t.compareStrings;o||(o=mQ);var u=e.map(function(l){return{value:l,label:n[l]||l}});return u.sort(function(l,d){return o(l.label,d.label,i)}),r&&u.unshift({label:n.ZZ}),u}function YN(t,e){return dY(t||"",e)}function lQ(t){return t.formatNational().replace(/\D/g,"")}function cQ(t,e){var n=e.prevCountry,r=e.newCountry,i=e.metadata,o=e.useNationalFormat;if(n===r)return t;if(!t)return o?"":r?Al(r,i):"";if(r){if(t[0]==="+"){if(o)return t.indexOf("+"+Yf(r,i))===0?gQ(t,r,i):"";if(n){var u=Al(r,i);return t.indexOf(u)===0?t:u}else{var l=Al(r,i);return t.indexOf(l)===0?t:l}}}else if(t[0]!=="+")return ny(t,n,i)||"";return t}function ny(t,e,n){if(t){if(t[0]==="+"){if(t==="+")return;var r=new Ny(e,n);return r.input(t),r.getNumberValue()}if(e){var i=QN(t,e,n);return"+".concat(Yf(e,n)).concat(i||"")}}}function fQ(t,e,n){var r=QN(t,e,n);if(r){var i=r.length-dQ(e,n);if(i>0)return t.slice(0,t.length-i)}return t}function dQ(t,e){return e=new Lr(e),e.selectNumberingPlan(t),e.numberingPlan.possibleLengths()[e.numberingPlan.possibleLengths().length-1]}function JN(t,e){var n=e.country,r=e.countries,i=e.defaultCountry,o=e.latestCountrySelectedByUser,u=e.required,l=e.metadata;if(t==="+")return n;var d=pQ(t,l);if(d)return!r||r.indexOf(d)>=0?d:void 0;if(n){if(gy(t,n,l)){if(o&&gy(t,o,l))return o;if(i&&gy(t,i,l))return i;if(!u)return}else if(!u)return}return n}function hQ(t,e){var n=e.prevPhoneDigits,r=e.country,i=e.defaultCountry,o=e.latestCountrySelectedByUser,u=e.countryRequired,l=e.getAnyCountry,d=e.countries,h=e.international,g=e.limitMaxLength,y=e.countryCallingCodeEditable,w=e.metadata;if(h&&y===!1&&r){var b=Al(r,w);if(t.indexOf(b)!==0){var C,E=t&&t[0]!=="+";return E?(t=b+t,C=ny(t,r,w)):t=b,{phoneDigits:t,value:C,country:r}}}h===!1&&r&&t&&t[0]==="+"&&(t=SP(t,r,w)),t&&r&&g&&(t=fQ(t,r,w)),t&&t[0]!=="+"&&(!r||h)&&(t="+"+t),!t&&n&&n[0]==="+"&&(h?r=void 0:r=i),t==="+"&&n&&n[0]==="+"&&n.length>1&&(r=void 0);var $;return t&&(t[0]==="+"&&(t==="+"||r&&Al(r,w).indexOf(t)===0)?$=void 0:$=ny(t,r,w)),$&&(r=JN($,{country:r,countries:d,defaultCountry:i,latestCountrySelectedByUser:o,required:!1,metadata:w}),h===!1&&r&&t&&t[0]==="+"&&(t=SP(t,r,w),$=ny(t,r,w))),!r&&u&&(r=i||l()),{phoneDigits:t,country:r,value:$}}function SP(t,e,n){if(t.indexOf(Al(e,n))===0){var r=new Ny(e,n);r.input(t);var i=r.getNumber();return i?i.formatNational().replace(/\D/g,""):""}else return t.replace(/\D/g,"")}function pQ(t,e){var n=new Ny(null,e);return n.input(t),n.getCountry()}function mQ(t,e,n){return String.prototype.localeCompare?t.localeCompare(e,n):te?1:0}function gQ(t,e,n){if(e){var r="+"+Yf(e,n);if(t.length=0)&&(L=R.country):(L=JN(u,{country:void 0,countries:F,metadata:r}),L||o&&u.indexOf(Al(o,r))===0&&(L=o))}var q;if(u){if($){var Y=L?$===L:gy(u,$,r);Y?L||(L=$):q={latestCountrySelectedByUser:void 0}}}else q={latestCountrySelectedByUser:void 0,hasUserSelectedACountry:void 0};return Ow(Ow({},q),{},{phoneDigits:O({phoneNumber:R,value:u,defaultCountry:o}),value:u,country:u?L:o})}}function $P(t,e){return t===null&&(t=void 0),e===null&&(e=void 0),t===e}var SQ=["name","disabled","readOnly","autoComplete","style","className","inputRef","inputComponent","numberInputProps","smartCaret","countrySelectComponent","countrySelectProps","containerComponent","containerComponentProps","defaultCountry","countries","countryOptionsOrder","labels","flags","flagComponent","flagUrl","addInternationalOption","internationalIcon","displayInitialValueAsLocalNumber","initialValueFormat","onCountryChange","limitMaxLength","countryCallingCodeEditable","focusInputOnCountrySelection","reset","metadata","international","locales"];function Cy(t){"@babel/helpers - typeof";return Cy=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Cy(t)}function EP(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),n.push.apply(n,r)}return n}function ZN(t){for(var e=1;e=0)&&Object.prototype.propertyIsEnumerable.call(t,r)&&(n[r]=t[r])}return n}function $Q(t,e){if(t==null)return{};var n={},r=Object.keys(t),i,o;for(o=0;o=0)&&(n[i]=t[i]);return n}function EQ(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function xP(t,e){for(var n=0;n=0)&&Object.prototype.propertyIsEnumerable.call(t,r)&&(n[r]=t[r])}return n}function FQ(t,e){if(t==null)return{};var n={},r=Object.keys(t),i,o;for(o=0;o=0)&&(n[i]=t[i]);return n}function r7(t){var e=Ae.forwardRef(function(n,r){var i=n.metadata,o=i===void 0?t:i,u=n.labels,l=u===void 0?MQ:u,d=DQ(n,kQ);return Ae.createElement(n7,Jx({},d,{ref:r,metadata:o,labels:l}))});return e.propTypes={metadata:WN,labels:KN},e}r7();const LQ=r7(zG),zo=t=>{const{region:e}=xi(),{label:n,getInputRef:r,secureTextEntry:i,Icon:o,onChange:u,value:l,children:d,errorMessage:h,type:g,focused:y=!1,autoFocus:w,...b}=t,[C,E]=T.useState(!1),$=T.useRef(),O=T.useCallback(()=>{var k;(k=$.current)==null||k.focus()},[$.current]);let _=l===void 0?"":l;g==="number"&&(_=+l);const P=k=>{u&&u(g==="number"?+k.target.value:k.target.value)};return N.jsxs(s3,{focused:C,onClick:O,...t,children:[t.type==="phonenumber"?N.jsx(LQ,{country:e,autoFocus:w,value:_,onChange:k=>u&&u(k)}):N.jsx("input",{...b,ref:$,value:_,autoFocus:w,className:Go("form-control",t.errorMessage&&"is-invalid",t.validMessage&&"is-valid"),type:g||"text",onChange:P,onBlur:()=>E(!1),onFocus:()=>E(!0)}),d]})};var L1;function ks(t,e){if(!{}.hasOwnProperty.call(t,e))throw new TypeError("attempted to use private field on non-instance");return t}var UQ=0;function mb(t){return"__private_"+UQ+++"_"+t}const BQ=t=>{const n=Ma()??void 0,[r,i]=T.useState(!1),[o,u]=T.useState();return{...Ur({mutationFn:h=>(i(!1),Jf.Fetch({body:h,headers:t==null?void 0:t.headers},{creatorFn:t==null?void 0:t.creatorFn,qs:t==null?void 0:t.qs,ctx:n,onMessage:t==null?void 0:t.onMessage,overrideUrl:t==null?void 0:t.overrideUrl}).then(g=>(g.done.then(()=>{i(!0)}),u(g.response),g.response.result)))}),isCompleted:r,response:o}};class Jf{}L1=Jf;Jf.URL="/passport/change-password";Jf.NewUrl=t=>ma(L1.URL,void 0,t);Jf.Method="post";Jf.Fetch$=async(t,e,n,r)=>ha(r??L1.NewUrl(t),{method:L1.Method,...n||{}},e);Jf.Fetch=async(t,{creatorFn:e,qs:n,ctx:r,onMessage:i,overrideUrl:o}={creatorFn:u=>new Gp(u)})=>{e=e||(l=>new Gp(l));const u=await L1.Fetch$(n,r,t,o);return pa(u,l=>{const d=new Ui;return e&&d.setCreator(e),d.inject(l),d},i,t==null?void 0:t.signal)};Jf.Definition={name:"ChangePassword",cliName:"cp",url:"/passport/change-password",method:"post",description:"Change the password for a given passport of the user. User needs to be authenticated in order to be able to change the password for a given account.",in:{fields:[{name:"password",description:"New password meeting the security requirements.",type:"string",tags:{validate:"required"}},{name:"uniqueId",description:"The passport uniqueId (not the email or phone number) which password would be applied to. Don't confuse with value.",type:"string",tags:{validate:"required"}}]},out:{envelope:"GResponse",fields:[{name:"changed",type:"bool"}]}};var Nh=mb("password"),Mh=mb("uniqueId"),v$=mb("isJsonAppliable");class Vp{get password(){return ks(this,Nh)[Nh]}set password(e){ks(this,Nh)[Nh]=String(e)}setPassword(e){return this.password=e,this}get uniqueId(){return ks(this,Mh)[Mh]}set uniqueId(e){ks(this,Mh)[Mh]=String(e)}setUniqueId(e){return this.uniqueId=e,this}constructor(e=void 0){if(Object.defineProperty(this,v$,{value:jQ}),Object.defineProperty(this,Nh,{writable:!0,value:""}),Object.defineProperty(this,Mh,{writable:!0,value:""}),e!=null)if(typeof e=="string")this.applyFromObject(JSON.parse(e));else if(ks(this,v$)[v$](e))this.applyFromObject(e);else throw new Error("Instance cannot be created on an unknown value, check the content being passed. got: "+typeof e)}applyFromObject(e={}){const n=e;n.password!==void 0&&(this.password=n.password),n.uniqueId!==void 0&&(this.uniqueId=n.uniqueId)}toJSON(){return{password:ks(this,Nh)[Nh],uniqueId:ks(this,Mh)[Mh]}}toString(){return JSON.stringify(this)}static get Fields(){return{password:"password",uniqueId:"uniqueId"}}static from(e){return new Vp(e)}static with(e){return new Vp(e)}copyWith(e){return new Vp({...this.toJSON(),...e})}clone(){return new Vp(this.toJSON())}}function jQ(t){const e=globalThis,n=typeof e.Buffer<"u"&&typeof e.Buffer.isBuffer=="function"&&e.Buffer.isBuffer(t),r=typeof e.Blob<"u"&&t instanceof e.Blob;return t&&typeof t=="object"&&!Array.isArray(t)&&!n&&!(t instanceof ArrayBuffer)&&!r}var kh=mb("changed"),b$=mb("isJsonAppliable");class Gp{get changed(){return ks(this,kh)[kh]}set changed(e){ks(this,kh)[kh]=!!e}setChanged(e){return this.changed=e,this}constructor(e=void 0){if(Object.defineProperty(this,b$,{value:qQ}),Object.defineProperty(this,kh,{writable:!0,value:void 0}),e!=null)if(typeof e=="string")this.applyFromObject(JSON.parse(e));else if(ks(this,b$)[b$](e))this.applyFromObject(e);else throw new Error("Instance cannot be created on an unknown value, check the content being passed. got: "+typeof e)}applyFromObject(e={}){const n=e;n.changed!==void 0&&(this.changed=n.changed)}toJSON(){return{changed:ks(this,kh)[kh]}}toString(){return JSON.stringify(this)}static get Fields(){return{changed:"changed"}}static from(e){return new Gp(e)}static with(e){return new Gp(e)}copyWith(e){return new Gp({...this.toJSON(),...e})}clone(){return new Gp(this.toJSON())}}function qQ(t){const e=globalThis,n=typeof e.Buffer<"u"&&typeof e.Buffer.isBuffer=="function"&&e.Buffer.isBuffer(t),r=typeof e.Blob<"u"&&t instanceof e.Blob;return t&&typeof t=="object"&&!Array.isArray(t)&&!n&&!(t instanceof ArrayBuffer)&&!r}const HQ=()=>{const t=Kn(xr),{goBack:e,state:n,replace:r,push:i,query:o}=Br(),u=BQ(),l=o==null?void 0:o.uniqueId,d=()=>{u.mutateAsync(new Vp(h.values)).then(g=>{e()})},h=ql({initialValues:{},onSubmit:d});return T.useEffect(()=>{!l||!h||h.setFieldValue(Vp.Fields.uniqueId,l)},[l]),{mutation:u,form:h,submit:d,goBack:e,s:t}},zQ=({})=>{const{mutation:t,form:e,s:n}=HQ();return N.jsxs("div",{className:"signin-form-container",children:[N.jsx("h1",{children:n.changePassword.title}),N.jsx("p",{children:n.changePassword.description}),N.jsx(Jo,{query:t}),N.jsx(VQ,{form:e,mutation:t})]})},VQ=({form:t,mutation:e})=>{const n=Kn(xr),{password2:r,password:i}=t.values,o=i!==r||((i==null?void 0:i.length)||0)<6;return N.jsxs("form",{onSubmit:u=>{u.preventDefault(),t.submitForm()},children:[N.jsx(zo,{type:"password",value:t.values.password,label:n.changePassword.pass1Label,id:"password-input",errorMessage:t.errors.password,onChange:u=>t.setFieldValue("password",u,!1)}),N.jsx(zo,{type:"password",value:t.values.password2,label:n.changePassword.pass2Label,id:"password-input-2",errorMessage:t.errors.password,onChange:u=>t.setFieldValue("password2",u,!1)}),N.jsx(Kf,{className:"btn btn-primary w-100 d-block mb-2",mutation:e,id:"submit-form",disabled:o,children:n.continue})]})};function GQ(t={}){const{nonce:e,onScriptLoadSuccess:n,onScriptLoadError:r}=t,[i,o]=T.useState(!1),u=T.useRef(n);u.current=n;const l=T.useRef(r);return l.current=r,T.useEffect(()=>{const d=document.createElement("script");return d.src="https://accounts.google.com/gsi/client",d.async=!0,d.defer=!0,d.nonce=e,d.onload=()=>{var h;o(!0),(h=u.current)===null||h===void 0||h.call(u)},d.onerror=()=>{var h;o(!1),(h=l.current)===null||h===void 0||h.call(l)},document.body.appendChild(d),()=>{document.body.removeChild(d)}},[e]),i}const i7=T.createContext(null);function WQ({clientId:t,nonce:e,onScriptLoadSuccess:n,onScriptLoadError:r,children:i}){const o=GQ({nonce:e,onScriptLoadSuccess:n,onScriptLoadError:r}),u=T.useMemo(()=>({clientId:t,scriptLoadedSuccessfully:o}),[t,o]);return Ae.createElement(i7.Provider,{value:u},i)}function KQ(){const t=T.useContext(i7);if(!t)throw new Error("Google OAuth components must be used within GoogleOAuthProvider");return t}function YQ({flow:t="implicit",scope:e="",onSuccess:n,onError:r,onNonOAuthError:i,overrideScope:o,state:u,...l}){const{clientId:d,scriptLoadedSuccessfully:h}=KQ(),g=T.useRef(),y=T.useRef(n);y.current=n;const w=T.useRef(r);w.current=r;const b=T.useRef(i);b.current=i,T.useEffect(()=>{var $,O;if(!h)return;const _=t==="implicit"?"initTokenClient":"initCodeClient",P=(O=($=window==null?void 0:window.google)===null||$===void 0?void 0:$.accounts)===null||O===void 0?void 0:O.oauth2[_]({client_id:d,scope:o?e:`openid profile email ${e}`,callback:k=>{var R,L;if(k.error)return(R=w.current)===null||R===void 0?void 0:R.call(w,k);(L=y.current)===null||L===void 0||L.call(y,k)},error_callback:k=>{var R;(R=b.current)===null||R===void 0||R.call(b,k)},state:u,...l});g.current=P},[d,h,t,e,u]);const C=T.useCallback($=>{var O;return(O=g.current)===null||O===void 0?void 0:O.requestAccessToken($)},[]),E=T.useCallback(()=>{var $;return($=g.current)===null||$===void 0?void 0:$.requestCode()},[]);return t==="implicit"?C:E}const a7=()=>N.jsxs("div",{className:"loader",id:"loader-4",children:[N.jsx("span",{}),N.jsx("span",{}),N.jsx("span",{})]});function JQ(){if(typeof window>"u")return"mac";let t=window==null?void 0:window.navigator.userAgent,e=window==null?void 0:window.navigator.platform,n=["Macintosh","MacIntel","MacPPC","Mac68K"],r=["Win32","Win64","Windows","WinCE"],i=["iPhone","iPad","iPod"],o="mac";return n.indexOf(e)!==-1?o="mac":i.indexOf(e)!==-1?o="ios":r.indexOf(e)!==-1?o="windows":/Android/.test(t)?o="android":!o&&/Linux/.test(e)?o="linux":o="web",o}const Qe=JQ(),Fe={edit:{default:"ios-theme/icons/edit.svg"},add:{default:"ios-theme/icons/add.svg"},cancel:{default:"ios-theme/icons/cancel.svg"},delete:{default:"ios-theme/icons/delete.svg"},entity:{default:"ios-theme/icons/entity.svg"},left:{default:"ios-theme/icons/left.svg"},menu:{default:"ios-theme/icons/menu.svg"},backup:{default:"ios-theme/icons/backup.svg"},right:{default:"ios-theme/icons/right.svg"},settings:{default:"ios-theme/icons/settings.svg"},user:{default:"ios-theme/icons/user.svg"},export:{default:"ios-theme/icons/export.svg"},up:{default:"ios-theme/icons/up.svg"},dataNode:{default:"ios-theme/icons/dnode.svg"},ctrlSheet:{default:"ios-theme/icons/ctrlsheet.svg"},gpiomode:{default:"ios-theme/icons/gpiomode.svg"},gpiostate:{default:"ios-theme/icons/gpiostate.svg"},down:{default:"ios-theme/icons/down.svg"},turnoff:{default:"ios-theme/icons/turnoff.svg"},mqtt:{default:"ios-theme/icons/mqtt.svg"},cart:{default:"ios-theme/icons/cart.svg"},questionBank:{default:"ios-theme/icons/questions.svg"},dashboard:{default:"ios-theme/icons/dashboard.svg"},country:{default:"ios-theme/icons/country.svg"},order:{default:"ios-theme/icons/order.svg"},province:{default:"ios-theme/icons/province.svg"},city:{default:"ios-theme/icons/city.svg"},about:{default:"ios-theme/icons/about.svg"},sms:{default:"ios-theme/icons/sms.svg"},product:{default:"ios-theme/icons/product.svg"},discount:{default:"ios-theme/icons/discount.svg"},tag:{default:"ios-theme/icons/tag.svg"},category:{default:"ios-theme/icons/category.svg"},brand:{default:"ios-theme/icons/brand.svg"},form:{default:"ios-theme/icons/form.svg"}},My={dashboard:Fe.dashboard[Qe]?Fe.dashboard[Qe]:Fe.dashboard.default,up:Fe.up[Qe]?Fe.up[Qe]:Fe.up.default,questionBank:Fe.questionBank[Qe]?Fe.questionBank[Qe]:Fe.questionBank.default,down:Fe.down[Qe]?Fe.down[Qe]:Fe.down.default,edit:Fe.edit[Qe]?Fe.edit[Qe]:Fe.edit.default,add:Fe.add[Qe]?Fe.add[Qe]:Fe.add.default,cancel:Fe.cancel[Qe]?Fe.cancel[Qe]:Fe.cancel.default,delete:Fe.delete[Qe]?Fe.delete[Qe]:Fe.delete.default,discount:Fe.discount[Qe]?Fe.discount[Qe]:Fe.discount.default,cart:Fe.cart[Qe]?Fe.cart[Qe]:Fe.cart.default,entity:Fe.entity[Qe]?Fe.entity[Qe]:Fe.entity.default,sms:Fe.sms[Qe]?Fe.sms[Qe]:Fe.sms.default,left:Fe.left[Qe]?Fe.left[Qe]:Fe.left.default,brand:Fe.brand[Qe]?Fe.brand[Qe]:Fe.brand.default,menu:Fe.menu[Qe]?Fe.menu[Qe]:Fe.menu.default,right:Fe.right[Qe]?Fe.right[Qe]:Fe.right.default,settings:Fe.settings[Qe]?Fe.settings[Qe]:Fe.settings.default,dataNode:Fe.dataNode[Qe]?Fe.dataNode[Qe]:Fe.dataNode.default,user:Fe.user[Qe]?Fe.user[Qe]:Fe.user.default,city:Fe.city[Qe]?Fe.city[Qe]:Fe.city.default,province:Fe.province[Qe]?Fe.province[Qe]:Fe.province.default,about:Fe.about[Qe]?Fe.about[Qe]:Fe.about.default,turnoff:Fe.turnoff[Qe]?Fe.turnoff[Qe]:Fe.turnoff.default,ctrlSheet:Fe.ctrlSheet[Qe]?Fe.ctrlSheet[Qe]:Fe.ctrlSheet.default,country:Fe.country[Qe]?Fe.country[Qe]:Fe.country.default,export:Fe.export[Qe]?Fe.export[Qe]:Fe.export.default,gpio:Fe.ctrlSheet[Qe]?Fe.ctrlSheet[Qe]:Fe.ctrlSheet.default,order:Fe.order[Qe]?Fe.order[Qe]:Fe.order.default,mqtt:Fe.mqtt[Qe]?Fe.mqtt[Qe]:Fe.mqtt.default,tag:Fe.tag[Qe]?Fe.tag[Qe]:Fe.tag.default,product:Fe.product[Qe]?Fe.product[Qe]:Fe.product.default,category:Fe.category[Qe]?Fe.category[Qe]:Fe.category.default,form:Fe.form[Qe]?Fe.form[Qe]:Fe.form.default,gpiomode:Fe.gpiomode[Qe]?Fe.gpiomode[Qe]:Fe.gpiomode.default,backup:Fe.backup[Qe]?Fe.backup[Qe]:Fe.backup.default,gpiostate:Fe.gpiostate[Qe]?Fe.gpiostate[Qe]:Fe.gpiostate.default};function $T(t){const e=$i.PUBLIC_URL;return t.startsWith("$")?e+My[t.substr(1)]:t.startsWith(e)?t:e+t}var U1;function bi(t,e){if(!{}.hasOwnProperty.call(t,e))throw new TypeError("attempted to use private field on non-instance");return t}var QQ=0;function xm(t){return"__private_"+QQ+++"_"+t}const XQ=t=>{const e=Ma(),n=(t==null?void 0:t.ctx)??e??void 0,[r,i]=T.useState(!1),[o,u]=T.useState();return{...Ur({mutationFn:h=>(i(!1),Qf.Fetch({body:h,headers:t==null?void 0:t.headers},{creatorFn:t==null?void 0:t.creatorFn,qs:t==null?void 0:t.qs,ctx:n,onMessage:t==null?void 0:t.onMessage,overrideUrl:t==null?void 0:t.overrideUrl}).then(g=>(g.done.then(()=>{i(!0)}),u(g.response),g.response.result))),...t||{}}),isCompleted:r,response:o}};class Qf{}U1=Qf;Qf.URL="/passport/via-oauth";Qf.NewUrl=t=>ma(U1.URL,void 0,t);Qf.Method="post";Qf.Fetch$=async(t,e,n,r)=>ha(r??U1.NewUrl(t),{method:U1.Method,...n||{}},e);Qf.Fetch=async(t,{creatorFn:e,qs:n,ctx:r,onMessage:i,overrideUrl:o}={creatorFn:u=>new Wp(u)})=>{e=e||(l=>new Wp(l));const u=await U1.Fetch$(n,r,t,o);return pa(u,l=>{const d=new Ui;return e&&d.setCreator(e),d.inject(l),d},i,t==null?void 0:t.signal)};Qf.Definition={name:"OauthAuthenticate",url:"/passport/via-oauth",method:"post",description:"When a token is got from a oauth service such as google, we send the token here to authenticate the user. To me seems this doesn't need to have 2FA or anything, so we return the session directly, or maybe there needs to be next step.",in:{fields:[{name:"token",description:"The token that Auth2 provider returned to the front-end, which will be used to validate the backend",type:"string"},{name:"service",description:"The service name, such as 'google' which later backend will use to authorize the token and create the user.",type:"string"}]},out:{envelope:"GResponse",fields:[{name:"session",type:"one",target:"UserSessionDto"},{name:"next",description:"The next possible action which is suggested.",type:"slice",primitive:"string"}]}};var Dh=xm("token"),Fh=xm("service"),w$=xm("isJsonAppliable");class ry{get token(){return bi(this,Dh)[Dh]}set token(e){bi(this,Dh)[Dh]=String(e)}setToken(e){return this.token=e,this}get service(){return bi(this,Fh)[Fh]}set service(e){bi(this,Fh)[Fh]=String(e)}setService(e){return this.service=e,this}constructor(e=void 0){if(Object.defineProperty(this,w$,{value:ZQ}),Object.defineProperty(this,Dh,{writable:!0,value:""}),Object.defineProperty(this,Fh,{writable:!0,value:""}),e!=null)if(typeof e=="string")this.applyFromObject(JSON.parse(e));else if(bi(this,w$)[w$](e))this.applyFromObject(e);else throw new Error("Instance cannot be created on an unknown value, check the content being passed. got: "+typeof e)}applyFromObject(e={}){const n=e;n.token!==void 0&&(this.token=n.token),n.service!==void 0&&(this.service=n.service)}toJSON(){return{token:bi(this,Dh)[Dh],service:bi(this,Fh)[Fh]}}toString(){return JSON.stringify(this)}static get Fields(){return{token:"token",service:"service"}}static from(e){return new ry(e)}static with(e){return new ry(e)}copyWith(e){return new ry({...this.toJSON(),...e})}clone(){return new ry(this.toJSON())}}function ZQ(t){const e=globalThis,n=typeof e.Buffer<"u"&&typeof e.Buffer.isBuffer=="function"&&e.Buffer.isBuffer(t),r=typeof e.Blob<"u"&&t instanceof e.Blob;return t&&typeof t=="object"&&!Array.isArray(t)&&!n&&!(t instanceof ArrayBuffer)&&!r}var pl=xm("session"),Lh=xm("next"),S$=xm("isJsonAppliable"),W0=xm("lateInitFields");class Wp{get session(){return bi(this,pl)[pl]}set session(e){e instanceof Nn?bi(this,pl)[pl]=e:bi(this,pl)[pl]=new Nn(e)}setSession(e){return this.session=e,this}get next(){return bi(this,Lh)[Lh]}set next(e){bi(this,Lh)[Lh]=e}setNext(e){return this.next=e,this}constructor(e=void 0){if(Object.defineProperty(this,W0,{value:tX}),Object.defineProperty(this,S$,{value:eX}),Object.defineProperty(this,pl,{writable:!0,value:void 0}),Object.defineProperty(this,Lh,{writable:!0,value:[]}),e==null){bi(this,W0)[W0]();return}if(typeof e=="string")this.applyFromObject(JSON.parse(e));else if(bi(this,S$)[S$](e))this.applyFromObject(e);else throw new Error("Instance cannot be created on an unknown value, check the content being passed. got: "+typeof e)}applyFromObject(e={}){const n=e;n.session!==void 0&&(this.session=n.session),n.next!==void 0&&(this.next=n.next),bi(this,W0)[W0](e)}toJSON(){return{session:bi(this,pl)[pl],next:bi(this,Lh)[Lh]}}toString(){return JSON.stringify(this)}static get Fields(){return{session$:"session",get session(){return Nu("session",Nn.Fields)},next$:"next",get next(){return"next[:i]"}}}static from(e){return new Wp(e)}static with(e){return new Wp(e)}copyWith(e){return new Wp({...this.toJSON(),...e})}clone(){return new Wp(this.toJSON())}}function eX(t){const e=globalThis,n=typeof e.Buffer<"u"&&typeof e.Buffer.isBuffer=="function"&&e.Buffer.isBuffer(t),r=typeof e.Blob<"u"&&t instanceof e.Blob;return t&&typeof t=="object"&&!Array.isArray(t)&&!n&&!(t instanceof ArrayBuffer)&&!r}function tX(t={}){const e=t;e.session instanceof Nn||(this.session=new Nn(e.session||{}))}var ao=(t=>(t.Email="email",t.Phone="phone",t.Google="google",t.Facebook="facebook",t))(ao||{});const gb=()=>{const{setSession:t,selectUrw:e,selectedUrw:n}=T.useContext(En),{locale:r}=xi(),{replace:i}=Br();return{onComplete:u=>{var y,w;t(u.data.item.session),window.ReactNativeWebView&&window.ReactNativeWebView.postMessage(JSON.stringify(u.data));const d=new URLSearchParams(window.location.search).get("redirect"),h=sessionStorage.getItem("redirect_temporary");if(!((w=(y=u.data)==null?void 0:y.item.session)==null?void 0:w.token)){alert("Authentication has failed.");return}if(sessionStorage.removeItem("redirect_temporary"),sessionStorage.removeItem("workspace_type_id"),h)window.location.href=h;else if(d){const b=new URL(d);b.searchParams.set("session",JSON.stringify(u.data.item.session)),window.location.href=b.toString()}else{const b="/{locale}/dashboard".replace("{locale}",r||"en");i(b,b)}}}},nX=t=>{T.useEffect(()=>{const e=new URLSearchParams(window.location.search),n=window.location.hash.indexOf("?"),r=n!==-1?new URLSearchParams(window.location.hash.slice(n)):new URLSearchParams;t.forEach(i=>{const o=e.get(i)||r.get(i);o&&sessionStorage.setItem(i,o)})},[t.join(",")])},rX=({continueWithResult:t,facebookAppId:e})=>{Kn(xr),T.useEffect(()=>{if(window.FB)return;const r=document.createElement("script");r.src="https://connect.facebook.net/en_US/sdk.js",r.async=!0,r.onload=()=>{window.FB.init({appId:e,cookie:!0,xfbml:!1,version:"v19.0"})},document.body.appendChild(r)},[]);const n=()=>{const r=window.FB;if(!r){alert("Facebook SDK not loaded");return}r.login(i=>{var o;console.log("Facebook:",i),(o=i.authResponse)!=null&&o.accessToken?t(i.authResponse.accessToken):alert("Facebook login failed")},{scope:"email,public_profile"})};return N.jsxs("button",{id:"using-facebook",type:"button",onClick:n,children:[N.jsx("img",{className:"button-icon",src:$T("/common/facebook.png")}),"Facebook"]})},iX=()=>{var g,y;const t=yn(),{locale:e}=xi(),{push:n}=Br(),r=T.useRef(),i=cN({});nX(["redirect_temporary","workspace_type_id"]);const[o,u]=T.useState(void 0),l=o?Object.values(o).filter(Boolean).length:void 0,d=(y=(g=i.data)==null?void 0:g.data)==null?void 0:y.item,h=(w,b=!0)=>{switch(w){case ao.Email:n(`/${e}/selfservice/email`,void 0,{canGoBack:b});break;case ao.Phone:n(`/${e}/selfservice/phone`,void 0,{canGoBack:b});break}};return T.useEffect(()=>{if(!d)return;const w={email:d.email,google:d.google,facebook:d.facebook,phone:d.phone,googleOAuthClientKey:d.googleOAuthClientKey,facebookAppId:d.facebookAppId};Object.values(w).filter(Boolean).length===1&&(w.email&&h(ao.Email,!1),w.phone&&h(ao.Phone,!1),w.google&&h(ao.Google,!1),w.facebook&&h(ao.Facebook,!1)),u(w)},[d]),{t,formik:r,onSelect:h,availableOptions:o,passportMethodsQuery:i,isLoadingMethods:i.isLoading,totalAvailableMethods:l}},aX=()=>{const{onSelect:t,availableOptions:e,totalAvailableMethods:n,isLoadingMethods:r,passportMethodsQuery:i}=iX(),o=ql({initialValues:{},onSubmit:()=>{}});return i.isError||i.error?N.jsx("div",{className:"signin-form-container",children:N.jsx(Jo,{query:i})}):n===void 0||r?N.jsx("div",{className:"signin-form-container",children:N.jsx(a7,{})}):n===0?N.jsx("div",{className:"signin-form-container",children:N.jsx(sX,{})}):N.jsx("div",{className:"signin-form-container",children:e.googleOAuthClientKey?N.jsx(WQ,{clientId:e.googleOAuthClientKey,children:N.jsx(TP,{availableOptions:e,onSelect:t,form:o})}):N.jsx(TP,{availableOptions:e,onSelect:t,form:o})})},TP=({form:t,onSelect:e,availableOptions:n})=>{const{mutateAsync:r}=XQ({}),{setSession:i}=T.useContext(En),{locale:o}=xi(),{replace:u}=Br(),l=(h,g)=>{r(new ry({service:g,token:h})).then(y=>{var w,b,C;i((b=(w=y.data)==null?void 0:w.item)==null?void 0:b.session),window.ReactNativeWebView&&window.ReactNativeWebView.postMessage(JSON.stringify((C=y.data)==null?void 0:C.item));{const E=$i.DEFAULT_ROUTE.replace("{locale}",o||"en");u(E,E)}}).catch(y=>{alert(y)})},d=Kn(xr);return N.jsxs("form",{onSubmit:h=>{h.preventDefault(),t.submitForm()},children:[N.jsx("h1",{children:d.welcomeBack}),N.jsxs("p",{children:[d.welcomeBackDescription," "]}),N.jsxs("div",{role:"group","aria-label":"Login method",className:"flex gap-2 login-option-buttons",children:[n.email?N.jsx("button",{id:"using-email",type:"button",onClick:()=>e(ao.Email),children:d.emailMethod}):null,n.phone?N.jsx("button",{id:"using-phone",type:"button",onClick:()=>e(ao.Phone),children:d.phoneMethod}):null,n.facebook?N.jsx(rX,{facebookAppId:n.facebookAppId,continueWithResult:h=>l(h,"facebook")}):null,n.google?N.jsx(oX,{continueWithResult:h=>l(h,"google")}):null]})]})},oX=({continueWithResult:t})=>{const e=Kn(xr),n=YQ({onSuccess:r=>{t(r.access_token)},scope:["https://www.googleapis.com/auth/userinfo.profile"].join(" ")});return N.jsx(N.Fragment,{children:N.jsxs("button",{id:"using-google",type:"button",onClick:()=>n(),children:[N.jsx("img",{className:"button-icon",src:$T("/common/google.png")}),e.google]})})},sX=()=>{const t=Kn(xr);return N.jsxs(N.Fragment,{children:[N.jsx("h1",{children:t.noAuthenticationMethod}),N.jsx("p",{children:t.noAuthenticationMethodDescription})]})};var uX=["sitekey","onChange","theme","type","tabindex","onExpired","onErrored","size","stoken","grecaptcha","badge","hl","isolated"];function Qx(){return Qx=Object.assign?Object.assign.bind():function(t){for(var e=1;e=0)&&(n[i]=t[i]);return n}function Tw(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function cX(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,Xx(t,e)}function Xx(t,e){return Xx=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},Xx(t,e)}var p3=(function(t){cX(e,t);function e(){var r;return r=t.call(this)||this,r.handleExpired=r.handleExpired.bind(Tw(r)),r.handleErrored=r.handleErrored.bind(Tw(r)),r.handleChange=r.handleChange.bind(Tw(r)),r.handleRecaptchaRef=r.handleRecaptchaRef.bind(Tw(r)),r}var n=e.prototype;return n.getCaptchaFunction=function(i){return this.props.grecaptcha?this.props.grecaptcha.enterprise?this.props.grecaptcha.enterprise[i]:this.props.grecaptcha[i]:null},n.getValue=function(){var i=this.getCaptchaFunction("getResponse");return i&&this._widgetId!==void 0?i(this._widgetId):null},n.getWidgetId=function(){return this.props.grecaptcha&&this._widgetId!==void 0?this._widgetId:null},n.execute=function(){var i=this.getCaptchaFunction("execute");if(i&&this._widgetId!==void 0)return i(this._widgetId);this._executeRequested=!0},n.executeAsync=function(){var i=this;return new Promise(function(o,u){i.executionResolve=o,i.executionReject=u,i.execute()})},n.reset=function(){var i=this.getCaptchaFunction("reset");i&&this._widgetId!==void 0&&i(this._widgetId)},n.forceReset=function(){var i=this.getCaptchaFunction("reset");i&&i()},n.handleExpired=function(){this.props.onExpired?this.props.onExpired():this.handleChange(null)},n.handleErrored=function(){this.props.onErrored&&this.props.onErrored(),this.executionReject&&(this.executionReject(),delete this.executionResolve,delete this.executionReject)},n.handleChange=function(i){this.props.onChange&&this.props.onChange(i),this.executionResolve&&(this.executionResolve(i),delete this.executionReject,delete this.executionResolve)},n.explicitRender=function(){var i=this.getCaptchaFunction("render");if(i&&this._widgetId===void 0){var o=document.createElement("div");this._widgetId=i(o,{sitekey:this.props.sitekey,callback:this.handleChange,theme:this.props.theme,type:this.props.type,tabindex:this.props.tabindex,"expired-callback":this.handleExpired,"error-callback":this.handleErrored,size:this.props.size,stoken:this.props.stoken,hl:this.props.hl,badge:this.props.badge,isolated:this.props.isolated}),this.captcha.appendChild(o)}this._executeRequested&&this.props.grecaptcha&&this._widgetId!==void 0&&(this._executeRequested=!1,this.execute())},n.componentDidMount=function(){this.explicitRender()},n.componentDidUpdate=function(){this.explicitRender()},n.handleRecaptchaRef=function(i){this.captcha=i},n.render=function(){var i=this.props;i.sitekey,i.onChange,i.theme,i.type,i.tabindex,i.onExpired,i.onErrored,i.size,i.stoken,i.grecaptcha,i.badge,i.hl,i.isolated;var o=lX(i,uX);return T.createElement("div",Qx({},o,{ref:this.handleRecaptchaRef}))},e})(T.Component);p3.displayName="ReCAPTCHA";p3.propTypes={sitekey:Te.string.isRequired,onChange:Te.func,grecaptcha:Te.object,theme:Te.oneOf(["dark","light"]),type:Te.oneOf(["image","audio"]),tabindex:Te.number,onExpired:Te.func,onErrored:Te.func,size:Te.oneOf(["compact","normal","invisible"]),stoken:Te.string,hl:Te.string,badge:Te.oneOf(["bottomright","bottomleft","inline"]),isolated:Te.bool};p3.defaultProps={onChange:function(){},theme:"light",type:"image",tabindex:0,size:"normal",badge:"bottomright"};function Zx(){return Zx=Object.assign||function(t){for(var e=1;e=0)&&(n[i]=t[i]);return n}function dX(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,t.__proto__=e}var Rs={},hX=0;function pX(t,e){return e=e||{},function(r){var i=r.displayName||r.name||"Component",o=(function(l){dX(d,l);function d(g,y){var w;return w=l.call(this,g,y)||this,w.state={},w.__scriptURL="",w}var h=d.prototype;return h.asyncScriptLoaderGetScriptLoaderID=function(){return this.__scriptLoaderID||(this.__scriptLoaderID="async-script-loader-"+hX++),this.__scriptLoaderID},h.setupScriptURL=function(){return this.__scriptURL=typeof t=="function"?t():t,this.__scriptURL},h.asyncScriptLoaderHandleLoad=function(y){var w=this;this.setState(y,function(){return w.props.asyncScriptOnLoad&&w.props.asyncScriptOnLoad(w.state)})},h.asyncScriptLoaderTriggerOnScriptLoaded=function(){var y=Rs[this.__scriptURL];if(!y||!y.loaded)throw new Error("Script is not loaded.");for(var w in y.observers)y.observers[w](y);delete window[e.callbackName]},h.componentDidMount=function(){var y=this,w=this.setupScriptURL(),b=this.asyncScriptLoaderGetScriptLoaderID(),C=e,E=C.globalName,$=C.callbackName,O=C.scriptId;if(E&&typeof window[E]<"u"&&(Rs[w]={loaded:!0,observers:{}}),Rs[w]){var _=Rs[w];if(_&&(_.loaded||_.errored)){this.asyncScriptLoaderHandleLoad(_);return}_.observers[b]=function(F){return y.asyncScriptLoaderHandleLoad(F)};return}var P={};P[b]=function(F){return y.asyncScriptLoaderHandleLoad(F)},Rs[w]={loaded:!1,observers:P};var k=document.createElement("script");k.src=w,k.async=!0;for(var R in e.attributes)k.setAttribute(R,e.attributes[R]);O&&(k.id=O);var L=function(q){if(Rs[w]){var Y=Rs[w],Q=Y.observers;for(var ue in Q)q(Q[ue])&&delete Q[ue]}};$&&typeof window<"u"&&(window[$]=function(){return y.asyncScriptLoaderTriggerOnScriptLoaded()}),k.onload=function(){var F=Rs[w];F&&(F.loaded=!0,L(function(q){return $?!1:(q(F),!0)}))},k.onerror=function(){var F=Rs[w];F&&(F.errored=!0,L(function(q){return q(F),!0}))},document.body.appendChild(k)},h.componentWillUnmount=function(){var y=this.__scriptURL;if(e.removeOnUnmount===!0)for(var w=document.getElementsByTagName("script"),b=0;b-1&&w[b].parentNode&&w[b].parentNode.removeChild(w[b]);var C=Rs[y];C&&(delete C.observers[this.asyncScriptLoaderGetScriptLoaderID()],e.removeOnUnmount===!0&&delete Rs[y])},h.render=function(){var y=e.globalName,w=this.props;w.asyncScriptOnLoad;var b=w.forwardedRef,C=fX(w,["asyncScriptOnLoad","forwardedRef"]);return y&&typeof window<"u"&&(C[y]=typeof window[y]<"u"?window[y]:void 0),C.ref=b,T.createElement(r,C)},d})(T.Component),u=T.forwardRef(function(l,d){return T.createElement(o,Zx({},l,{forwardedRef:d}))});return u.displayName="AsyncScriptLoader("+i+")",u.propTypes={asyncScriptOnLoad:Te.func},yq(u,r)}}var eO="onloadcallback",mX="grecaptcha";function tO(){return typeof window<"u"&&window.recaptchaOptions||{}}function gX(){var t=tO(),e=t.useRecaptchaNet?"recaptcha.net":"www.google.com";return t.enterprise?"https://"+e+"/recaptcha/enterprise.js?onload="+eO+"&render=explicit":"https://"+e+"/recaptcha/api.js?onload="+eO+"&render=explicit"}const yX=pX(gX,{callbackName:eO,globalName:mX,attributes:tO().nonce?{nonce:tO().nonce}:{}})(p3),vX=({sitekey:t,enabled:e,invisible:n})=>{n=n===void 0?!0:n;const[r,i]=T.useState(),[o,u]=T.useState(!1),l=T.createRef(),d=T.useRef("");return T.useEffect(()=>{var y,w;e&&l.current&&((y=l.current)==null||y.execute(),(w=l.current)==null||w.reset())},[e,l.current]),T.useEffect(()=>{setTimeout(()=>{d.current||u(!0)},2e3)},[]),{value:r,Component:()=>!e||!t?null:N.jsx(N.Fragment,{children:N.jsx(yX,{sitekey:t,size:n&&!o?"invisible":void 0,ref:l,onChange:y=>{i(y),d.current=y}})}),LegalNotice:()=>!n||!e?null:N.jsxs("div",{className:"mt-5 recaptcha-closure",children:["This site is protected by reCAPTCHA and the Google",N.jsxs("a",{target:"_blank",href:"https://policies.google.com/privacy",children:[" ","Privacy Policy"," "]})," ","and",N.jsxs("a",{target:"_blank",href:"https://policies.google.com/terms",children:[" ","Terms of Service"," "]})," ","apply."]})}};var B1,o1,Ef,xf,Of,Tf,_w;function wn(t,e){if(!{}.hasOwnProperty.call(t,e))throw new TypeError("attempted to use private field on non-instance");return t}var bX=0;function Ho(t){return"__private_"+bX+++"_"+t}const wX=t=>{const n=Ma()??void 0,[r,i]=T.useState(!1),[o,u]=T.useState();return{...Ur({mutationFn:h=>(i(!1),Xf.Fetch({body:h,headers:t==null?void 0:t.headers},{creatorFn:t==null?void 0:t.creatorFn,qs:t==null?void 0:t.qs,ctx:n,onMessage:t==null?void 0:t.onMessage,overrideUrl:t==null?void 0:t.overrideUrl}).then(g=>(g.done.then(()=>{i(!0)}),u(g.response),g.response.result)))}),isCompleted:r,response:o}};class Xf{}B1=Xf;Xf.URL="/workspace/passport/check";Xf.NewUrl=t=>ma(B1.URL,void 0,t);Xf.Method="post";Xf.Fetch$=async(t,e,n,r)=>ha(r??B1.NewUrl(t),{method:B1.Method,...n||{}},e);Xf.Fetch=async(t,{creatorFn:e,qs:n,ctx:r,onMessage:i,overrideUrl:o}={creatorFn:u=>new jo(u)})=>{e=e||(l=>new jo(l));const u=await B1.Fetch$(n,r,t,o);return pa(u,l=>{const d=new Ui;return e&&d.setCreator(e),d.inject(l),d},i,t==null?void 0:t.signal)};Xf.Definition={name:"CheckClassicPassport",cliName:"ccp",url:"/workspace/passport/check",method:"post",description:"Checks if a classic passport (email, phone) exists or not, used in multi step authentication",in:{fields:[{name:"value",type:"string",tags:{validate:"required"}},{name:"securityToken",description:"This can be the value of ReCaptcha2, ReCaptcha3, or generate security image or voice for verification. Will be used based on the configuration.",type:"string"}]},out:{envelope:"GResponse",fields:[{name:"next",description:"The next possible action which is suggested.",type:"slice",primitive:"string"},{name:"flags",description:"Extra information that can be useful actually when doing onboarding. Make sure sensitive information doesn't go out.",type:"slice",primitive:"string"},{name:"otpInfo",description:"If the endpoint automatically triggers a send otp, then it would be holding that information, Also the otp information can become available.",type:"object?",fields:[{name:"suspendUntil",type:"int64"},{name:"validUntil",type:"int64"},{name:"blockedUntil",type:"int64"},{name:"secondsToUnblock",description:"The amount of time left to unblock for next request",type:"int64"}]}]}};var Uh=Ho("value"),Bh=Ho("securityToken"),C$=Ho("isJsonAppliable");class Kp{get value(){return wn(this,Uh)[Uh]}set value(e){wn(this,Uh)[Uh]=String(e)}setValue(e){return this.value=e,this}get securityToken(){return wn(this,Bh)[Bh]}set securityToken(e){wn(this,Bh)[Bh]=String(e)}setSecurityToken(e){return this.securityToken=e,this}constructor(e=void 0){if(Object.defineProperty(this,C$,{value:SX}),Object.defineProperty(this,Uh,{writable:!0,value:""}),Object.defineProperty(this,Bh,{writable:!0,value:""}),e!=null)if(typeof e=="string")this.applyFromObject(JSON.parse(e));else if(wn(this,C$)[C$](e))this.applyFromObject(e);else throw new Error("Instance cannot be created on an unknown value, check the content being passed. got: "+typeof e)}applyFromObject(e={}){const n=e;n.value!==void 0&&(this.value=n.value),n.securityToken!==void 0&&(this.securityToken=n.securityToken)}toJSON(){return{value:wn(this,Uh)[Uh],securityToken:wn(this,Bh)[Bh]}}toString(){return JSON.stringify(this)}static get Fields(){return{value:"value",securityToken:"securityToken"}}static from(e){return new Kp(e)}static with(e){return new Kp(e)}copyWith(e){return new Kp({...this.toJSON(),...e})}clone(){return new Kp(this.toJSON())}}function SX(t){const e=globalThis,n=typeof e.Buffer<"u"&&typeof e.Buffer.isBuffer=="function"&&e.Buffer.isBuffer(t),r=typeof e.Blob<"u"&&t instanceof e.Blob;return t&&typeof t=="object"&&!Array.isArray(t)&&!n&&!(t instanceof ArrayBuffer)&&!r}var jh=Ho("next"),qh=Ho("flags"),ml=Ho("otpInfo"),$$=Ho("isJsonAppliable");class jo{get next(){return wn(this,jh)[jh]}set next(e){wn(this,jh)[jh]=e}setNext(e){return this.next=e,this}get flags(){return wn(this,qh)[qh]}set flags(e){wn(this,qh)[qh]=e}setFlags(e){return this.flags=e,this}get otpInfo(){return wn(this,ml)[ml]}set otpInfo(e){e instanceof jo.OtpInfo?wn(this,ml)[ml]=e:wn(this,ml)[ml]=new jo.OtpInfo(e)}setOtpInfo(e){return this.otpInfo=e,this}constructor(e=void 0){if(Object.defineProperty(this,$$,{value:CX}),Object.defineProperty(this,jh,{writable:!0,value:[]}),Object.defineProperty(this,qh,{writable:!0,value:[]}),Object.defineProperty(this,ml,{writable:!0,value:void 0}),e!=null)if(typeof e=="string")this.applyFromObject(JSON.parse(e));else if(wn(this,$$)[$$](e))this.applyFromObject(e);else throw new Error("Instance cannot be created on an unknown value, check the content being passed. got: "+typeof e)}applyFromObject(e={}){const n=e;n.next!==void 0&&(this.next=n.next),n.flags!==void 0&&(this.flags=n.flags),n.otpInfo!==void 0&&(this.otpInfo=n.otpInfo)}toJSON(){return{next:wn(this,jh)[jh],flags:wn(this,qh)[qh],otpInfo:wn(this,ml)[ml]}}toString(){return JSON.stringify(this)}static get Fields(){return{next$:"next",get next(){return"next[:i]"},flags$:"flags",get flags(){return"flags[:i]"},otpInfo$:"otpInfo",get otpInfo(){return Nu("otpInfo",jo.OtpInfo.Fields)}}}static from(e){return new jo(e)}static with(e){return new jo(e)}copyWith(e){return new jo({...this.toJSON(),...e})}clone(){return new jo(this.toJSON())}}o1=jo;function CX(t){const e=globalThis,n=typeof e.Buffer<"u"&&typeof e.Buffer.isBuffer=="function"&&e.Buffer.isBuffer(t),r=typeof e.Blob<"u"&&t instanceof e.Blob;return t&&typeof t=="object"&&!Array.isArray(t)&&!n&&!(t instanceof ArrayBuffer)&&!r}jo.OtpInfo=(Ef=Ho("suspendUntil"),xf=Ho("validUntil"),Of=Ho("blockedUntil"),Tf=Ho("secondsToUnblock"),_w=Ho("isJsonAppliable"),class{get suspendUntil(){return wn(this,Ef)[Ef]}set suspendUntil(e){const r=typeof e=="number"?e:Number(e);Number.isNaN(r)||(wn(this,Ef)[Ef]=r)}setSuspendUntil(e){return this.suspendUntil=e,this}get validUntil(){return wn(this,xf)[xf]}set validUntil(e){const r=typeof e=="number"?e:Number(e);Number.isNaN(r)||(wn(this,xf)[xf]=r)}setValidUntil(e){return this.validUntil=e,this}get blockedUntil(){return wn(this,Of)[Of]}set blockedUntil(e){const r=typeof e=="number"?e:Number(e);Number.isNaN(r)||(wn(this,Of)[Of]=r)}setBlockedUntil(e){return this.blockedUntil=e,this}get secondsToUnblock(){return wn(this,Tf)[Tf]}set secondsToUnblock(e){const r=typeof e=="number"?e:Number(e);Number.isNaN(r)||(wn(this,Tf)[Tf]=r)}setSecondsToUnblock(e){return this.secondsToUnblock=e,this}constructor(e=void 0){if(Object.defineProperty(this,_w,{value:$X}),Object.defineProperty(this,Ef,{writable:!0,value:0}),Object.defineProperty(this,xf,{writable:!0,value:0}),Object.defineProperty(this,Of,{writable:!0,value:0}),Object.defineProperty(this,Tf,{writable:!0,value:0}),e!=null)if(typeof e=="string")this.applyFromObject(JSON.parse(e));else if(wn(this,_w)[_w](e))this.applyFromObject(e);else throw new Error("Instance cannot be created on an unknown value, check the content being passed. got: "+typeof e)}applyFromObject(e={}){const n=e;n.suspendUntil!==void 0&&(this.suspendUntil=n.suspendUntil),n.validUntil!==void 0&&(this.validUntil=n.validUntil),n.blockedUntil!==void 0&&(this.blockedUntil=n.blockedUntil),n.secondsToUnblock!==void 0&&(this.secondsToUnblock=n.secondsToUnblock)}toJSON(){return{suspendUntil:wn(this,Ef)[Ef],validUntil:wn(this,xf)[xf],blockedUntil:wn(this,Of)[Of],secondsToUnblock:wn(this,Tf)[Tf]}}toString(){return JSON.stringify(this)}static get Fields(){return{suspendUntil:"suspendUntil",validUntil:"validUntil",blockedUntil:"blockedUntil",secondsToUnblock:"secondsToUnblock"}}static from(e){return new o1.OtpInfo(e)}static with(e){return new o1.OtpInfo(e)}copyWith(e){return new o1.OtpInfo({...this.toJSON(),...e})}clone(){return new o1.OtpInfo(this.toJSON())}});function $X(t){const e=globalThis,n=typeof e.Buffer<"u"&&typeof e.Buffer.isBuffer=="function"&&e.Buffer.isBuffer(t),r=typeof e.Blob<"u"&&t instanceof e.Blob;return t&&typeof t=="object"&&!Array.isArray(t)&&!n&&!(t instanceof ArrayBuffer)&&!r}const EX=({method:t})=>{var _,P,k;const e=Kn(xr),{goBack:n,push:r,state:i}=Br(),{locale:o}=xi(),u=wX(),l=(i==null?void 0:i.canGoBack)!==!1;let d=!1,h="";const{data:g}=cN({});g instanceof Ui&&g.data.item instanceof kf&&(d=(_=g==null?void 0:g.data)==null?void 0:_.item.enabledRecaptcha2,h=(k=(P=g==null?void 0:g.data)==null?void 0:P.item)==null?void 0:k.recaptcha2ClientKey);const y=R=>{u.mutateAsync(new Kp(R)).then(L=>{var Y;const{next:F,flags:q}=(Y=L==null?void 0:L.data)==null?void 0:Y.item;F.includes("otp")&&F.length===1?r(`/${o}/selfservice/otp`,void 0,{value:R.value,type:t}):F.includes("signin-with-password")?r(`/${o}/selfservice/password`,void 0,{value:R.value,next:F,canContinueOnOtp:F==null?void 0:F.includes("otp"),flags:q}):F.includes("create-with-password")&&r(`/${o}/selfservice/complete`,void 0,{value:R.value,type:t,next:F,flags:q})}).catch(L=>{w==null||w.setErrors(Iy(L))})},w=ql({initialValues:{},onSubmit:y});let b=e.continueWithEmail,C=e.continueWithEmailDescription;t==="phone"&&(b=e.continueWithPhone,C=e.continueWithPhoneDescription);const{Component:E,LegalNotice:$,value:O}=vX({enabled:d,sitekey:h});return T.useEffect(()=>{!d||!O||w.setFieldValue(Kp.Fields.securityToken,O)},[O]),{title:b,mutation:u,canGoBack:l,form:w,enabledRecaptcha2:d,recaptcha2ClientKey:h,description:C,Recaptcha:E,LegalNotice:$,s:e,submit:y,goBack:n}};var j1;function _n(t,e){if(!{}.hasOwnProperty.call(t,e))throw new TypeError("attempted to use private field on non-instance");return t}var xX=0;function Us(t){return"__private_"+xX+++"_"+t}const o7=t=>{const n=Ma()??void 0,[r,i]=T.useState(!1),[o,u]=T.useState();return{...Ur({mutationFn:h=>(i(!1),Zf.Fetch({body:h,headers:t==null?void 0:t.headers},{creatorFn:t==null?void 0:t.creatorFn,qs:t==null?void 0:t.qs,ctx:n,onMessage:t==null?void 0:t.onMessage,overrideUrl:t==null?void 0:t.overrideUrl}).then(g=>(g.done.then(()=>{i(!0)}),u(g.response),g.response.result)))}),isCompleted:r,response:o}};class Zf{}j1=Zf;Zf.URL="/passports/signin/classic";Zf.NewUrl=t=>ma(j1.URL,void 0,t);Zf.Method="post";Zf.Fetch$=async(t,e,n,r)=>ha(r??j1.NewUrl(t),{method:j1.Method,...n||{}},e);Zf.Fetch=async(t,{creatorFn:e,qs:n,ctx:r,onMessage:i,overrideUrl:o}={creatorFn:u=>new Yp(u)})=>{e=e||(l=>new Yp(l));const u=await j1.Fetch$(n,r,t,o);return pa(u,l=>{const d=new Ui;return e&&d.setCreator(e),d.inject(l),d},i,t==null?void 0:t.signal)};Zf.Definition={name:"ClassicSignin",cliName:"in",url:"/passports/signin/classic",method:"post",description:"Signin publicly to and account using class passports (email, password)",in:{fields:[{name:"value",type:"string",tags:{validate:"required"}},{name:"password",type:"string",tags:{validate:"required"}},{name:"totpCode",description:"Accepts login with totp code. If enabled, first login would return a success response with next[enter-totp] value and ui can understand that user needs to be navigated into the screen other screen.",type:"string"},{name:"sessionSecret",description:"Session secret when logging in to the application requires more steps to complete.",type:"string"}]},out:{envelope:"GResponse",fields:[{name:"session",type:"one",target:"UserSessionDto"},{name:"next",description:"The next possible action which is suggested.",type:"slice",primitive:"string"},{name:"totpUrl",description:"In case the account doesn't have totp, but enforced by installation, this value will contain the link",type:"string"},{name:"sessionSecret",description:"Returns a secret session if the authentication requires more steps.",type:"string"}]}};var Hh=Us("value"),zh=Us("password"),Vh=Us("totpCode"),Gh=Us("sessionSecret"),E$=Us("isJsonAppliable");class Ds{get value(){return _n(this,Hh)[Hh]}set value(e){_n(this,Hh)[Hh]=String(e)}setValue(e){return this.value=e,this}get password(){return _n(this,zh)[zh]}set password(e){_n(this,zh)[zh]=String(e)}setPassword(e){return this.password=e,this}get totpCode(){return _n(this,Vh)[Vh]}set totpCode(e){_n(this,Vh)[Vh]=String(e)}setTotpCode(e){return this.totpCode=e,this}get sessionSecret(){return _n(this,Gh)[Gh]}set sessionSecret(e){_n(this,Gh)[Gh]=String(e)}setSessionSecret(e){return this.sessionSecret=e,this}constructor(e=void 0){if(Object.defineProperty(this,E$,{value:OX}),Object.defineProperty(this,Hh,{writable:!0,value:""}),Object.defineProperty(this,zh,{writable:!0,value:""}),Object.defineProperty(this,Vh,{writable:!0,value:""}),Object.defineProperty(this,Gh,{writable:!0,value:""}),e!=null)if(typeof e=="string")this.applyFromObject(JSON.parse(e));else if(_n(this,E$)[E$](e))this.applyFromObject(e);else throw new Error("Instance cannot be created on an unknown value, check the content being passed. got: "+typeof e)}applyFromObject(e={}){const n=e;n.value!==void 0&&(this.value=n.value),n.password!==void 0&&(this.password=n.password),n.totpCode!==void 0&&(this.totpCode=n.totpCode),n.sessionSecret!==void 0&&(this.sessionSecret=n.sessionSecret)}toJSON(){return{value:_n(this,Hh)[Hh],password:_n(this,zh)[zh],totpCode:_n(this,Vh)[Vh],sessionSecret:_n(this,Gh)[Gh]}}toString(){return JSON.stringify(this)}static get Fields(){return{value:"value",password:"password",totpCode:"totpCode",sessionSecret:"sessionSecret"}}static from(e){return new Ds(e)}static with(e){return new Ds(e)}copyWith(e){return new Ds({...this.toJSON(),...e})}clone(){return new Ds(this.toJSON())}}function OX(t){const e=globalThis,n=typeof e.Buffer<"u"&&typeof e.Buffer.isBuffer=="function"&&e.Buffer.isBuffer(t),r=typeof e.Blob<"u"&&t instanceof e.Blob;return t&&typeof t=="object"&&!Array.isArray(t)&&!n&&!(t instanceof ArrayBuffer)&&!r}var gl=Us("session"),Wh=Us("next"),Kh=Us("totpUrl"),Yh=Us("sessionSecret"),x$=Us("isJsonAppliable"),K0=Us("lateInitFields");class Yp{get session(){return _n(this,gl)[gl]}set session(e){e instanceof Nn?_n(this,gl)[gl]=e:_n(this,gl)[gl]=new Nn(e)}setSession(e){return this.session=e,this}get next(){return _n(this,Wh)[Wh]}set next(e){_n(this,Wh)[Wh]=e}setNext(e){return this.next=e,this}get totpUrl(){return _n(this,Kh)[Kh]}set totpUrl(e){_n(this,Kh)[Kh]=String(e)}setTotpUrl(e){return this.totpUrl=e,this}get sessionSecret(){return _n(this,Yh)[Yh]}set sessionSecret(e){_n(this,Yh)[Yh]=String(e)}setSessionSecret(e){return this.sessionSecret=e,this}constructor(e=void 0){if(Object.defineProperty(this,K0,{value:_X}),Object.defineProperty(this,x$,{value:TX}),Object.defineProperty(this,gl,{writable:!0,value:void 0}),Object.defineProperty(this,Wh,{writable:!0,value:[]}),Object.defineProperty(this,Kh,{writable:!0,value:""}),Object.defineProperty(this,Yh,{writable:!0,value:""}),e==null){_n(this,K0)[K0]();return}if(typeof e=="string")this.applyFromObject(JSON.parse(e));else if(_n(this,x$)[x$](e))this.applyFromObject(e);else throw new Error("Instance cannot be created on an unknown value, check the content being passed. got: "+typeof e)}applyFromObject(e={}){const n=e;n.session!==void 0&&(this.session=n.session),n.next!==void 0&&(this.next=n.next),n.totpUrl!==void 0&&(this.totpUrl=n.totpUrl),n.sessionSecret!==void 0&&(this.sessionSecret=n.sessionSecret),_n(this,K0)[K0](e)}toJSON(){return{session:_n(this,gl)[gl],next:_n(this,Wh)[Wh],totpUrl:_n(this,Kh)[Kh],sessionSecret:_n(this,Yh)[Yh]}}toString(){return JSON.stringify(this)}static get Fields(){return{session$:"session",get session(){return Nu("session",Nn.Fields)},next$:"next",get next(){return"next[:i]"},totpUrl:"totpUrl",sessionSecret:"sessionSecret"}}static from(e){return new Yp(e)}static with(e){return new Yp(e)}copyWith(e){return new Yp({...this.toJSON(),...e})}clone(){return new Yp(this.toJSON())}}function TX(t){const e=globalThis,n=typeof e.Buffer<"u"&&typeof e.Buffer.isBuffer=="function"&&e.Buffer.isBuffer(t),r=typeof e.Blob<"u"&&t instanceof e.Blob;return t&&typeof t=="object"&&!Array.isArray(t)&&!n&&!(t instanceof ArrayBuffer)&&!r}function _X(t={}){const e=t;e.session instanceof Nn||(this.session=new Nn(e.session||{}))}const _P=({method:t})=>{const{description:e,title:n,goBack:r,mutation:i,form:o,canGoBack:u,LegalNotice:l,Recaptcha:d,s:h}=EX({method:t});return N.jsxs("div",{className:"signin-form-container",children:[N.jsx("h1",{children:n}),N.jsx("p",{children:e}),N.jsx(Jo,{query:i}),N.jsx(RX,{form:o,method:t,mutation:i}),N.jsx(d,{}),u?N.jsx("button",{id:"go-back-button",className:"btn bg-transparent w-100 mt-4",onClick:r,children:h.chooseAnotherMethod}):null,N.jsx(l,{})]})},AX=t=>/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(t),RX=({form:t,mutation:e,method:n})=>{var u,l,d;let r="email";n===ao.Phone&&(r="phonenumber");let i=!((u=t==null?void 0:t.values)!=null&&u.value);ao.Email===n&&(i=!AX((l=t==null?void 0:t.values)==null?void 0:l.value));const o=Kn(xr);return N.jsxs("form",{onSubmit:h=>{h.preventDefault(),t.submitForm()},children:[N.jsx(zo,{autoFocus:!0,type:r,id:"value-input",dir:"ltr",value:(d=t==null?void 0:t.values)==null?void 0:d.value,errorMessage:t==null?void 0:t.errors.value,onChange:h=>t.setFieldValue(Ds.Fields.value,h,!1)}),N.jsx(Kf,{className:"btn btn-primary w-100 d-block mb-2",mutation:e,id:"submit-form",disabled:i,children:o.continue})]})};var PX=Object.defineProperty,TS=Object.getOwnPropertySymbols,s7=Object.prototype.hasOwnProperty,u7=Object.prototype.propertyIsEnumerable,AP=(t,e,n)=>e in t?PX(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,nO=(t,e)=>{for(var n in e||(e={}))s7.call(e,n)&&AP(t,n,e[n]);if(TS)for(var n of TS(e))u7.call(e,n)&&AP(t,n,e[n]);return t},rO=(t,e)=>{var n={};for(var r in t)s7.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&TS)for(var r of TS(t))e.indexOf(r)<0&&u7.call(t,r)&&(n[r]=t[r]);return n};/** * @license QR Code generator library (TypeScript) * Copyright (c) Project Nayuki. * SPDX-License-Identifier: MIT - */var Yp;(t=>{const e=class Qt{constructor(d,h,g,y){if(this.version=d,this.errorCorrectionLevel=h,this.modules=[],this.isFunction=[],dQt.MAX_VERSION)throw new RangeError("Version value out of range");if(y<-1||y>7)throw new RangeError("Mask value out of range");this.size=d*4+17;let w=[];for(let C=0;C7)throw new RangeError("Invalid value");let C,E;for(C=g;;C++){const R=Qt.getNumDataCodewords(C,h)*8,k=u.getTotalBits(d,C);if(k<=R){E=k;break}if(C>=y)throw new RangeError("Data too long")}for(const R of[Qt.Ecc.MEDIUM,Qt.Ecc.QUARTILE,Qt.Ecc.HIGH])v&&E<=Qt.getNumDataCodewords(C,R)*8&&(h=R);let $=[];for(const R of d){n(R.mode.modeBits,4,$),n(R.numChars,R.mode.numCharCountBits(C),$);for(const k of R.getData())$.push(k)}i($.length==E);const O=Qt.getNumDataCodewords(C,h)*8;i($.length<=O),n(0,Math.min(4,O-$.length),$),n(0,(8-$.length%8)%8,$),i($.length%8==0);for(let R=236;$.length_[k>>>3]|=R<<7-(k&7)),new Qt(C,h,_,w)}getModule(d,h){return 0<=d&&d>>9)*1335;const y=(h<<10|g)^21522;i(y>>>15==0);for(let w=0;w<=5;w++)this.setFunctionModule(8,w,r(y,w));this.setFunctionModule(8,7,r(y,6)),this.setFunctionModule(8,8,r(y,7)),this.setFunctionModule(7,8,r(y,8));for(let w=9;w<15;w++)this.setFunctionModule(14-w,8,r(y,w));for(let w=0;w<8;w++)this.setFunctionModule(this.size-1-w,8,r(y,w));for(let w=8;w<15;w++)this.setFunctionModule(8,this.size-15+w,r(y,w));this.setFunctionModule(8,this.size-8,!0)}drawVersion(){if(this.version<7)return;let d=this.version;for(let g=0;g<12;g++)d=d<<1^(d>>>11)*7973;const h=this.version<<12|d;i(h>>>18==0);for(let g=0;g<18;g++){const y=r(h,g),w=this.size-11+g%3,v=Math.floor(g/3);this.setFunctionModule(w,v,y),this.setFunctionModule(v,w,y)}}drawFinderPattern(d,h){for(let g=-4;g<=4;g++)for(let y=-4;y<=4;y++){const w=Math.max(Math.abs(y),Math.abs(g)),v=d+y,C=h+g;0<=v&&v{(R!=E-w||P>=C)&&_.push(k[R])});return i(_.length==v),_}drawCodewords(d){if(d.length!=Math.floor(Qt.getNumRawDataModules(this.version)/8))throw new RangeError("Invalid argument");let h=0;for(let g=this.size-1;g>=1;g-=2){g==6&&(g=5);for(let y=0;y>>3],7-(h&7)),h++)}}i(h==d.length*8)}applyMask(d){if(d<0||d>7)throw new RangeError("Mask value out of range");for(let h=0;h5&&d++):(this.finderPenaltyAddHistory(C,E),v||(d+=this.finderPenaltyCountPatterns(E)*Qt.PENALTY_N3),v=this.modules[w][$],C=1);d+=this.finderPenaltyTerminateAndCount(v,C,E)*Qt.PENALTY_N3}for(let w=0;w5&&d++):(this.finderPenaltyAddHistory(C,E),v||(d+=this.finderPenaltyCountPatterns(E)*Qt.PENALTY_N3),v=this.modules[$][w],C=1);d+=this.finderPenaltyTerminateAndCount(v,C,E)*Qt.PENALTY_N3}for(let w=0;wv+(C?1:0),h);const g=this.size*this.size,y=Math.ceil(Math.abs(h*20-g*10)/g)-1;return i(0<=y&&y<=9),d+=y*Qt.PENALTY_N4,i(0<=d&&d<=2568888),d}getAlignmentPatternPositions(){if(this.version==1)return[];{const d=Math.floor(this.version/7)+2,h=this.version==32?26:Math.ceil((this.version*4+4)/(d*2-2))*2;let g=[6];for(let y=this.size-7;g.lengthQt.MAX_VERSION)throw new RangeError("Version number out of range");let h=(16*d+128)*d+64;if(d>=2){const g=Math.floor(d/7)+2;h-=(25*g-10)*g-55,d>=7&&(h-=36)}return i(208<=h&&h<=29648),h}static getNumDataCodewords(d,h){return Math.floor(Qt.getNumRawDataModules(d)/8)-Qt.ECC_CODEWORDS_PER_BLOCK[h.ordinal][d]*Qt.NUM_ERROR_CORRECTION_BLOCKS[h.ordinal][d]}static reedSolomonComputeDivisor(d){if(d<1||d>255)throw new RangeError("Degree out of range");let h=[];for(let y=0;y0);for(const y of d){const w=y^g.shift();g.push(0),h.forEach((v,C)=>g[C]^=Qt.reedSolomonMultiply(v,w))}return g}static reedSolomonMultiply(d,h){if(d>>>8||h>>>8)throw new RangeError("Byte out of range");let g=0;for(let y=7;y>=0;y--)g=g<<1^(g>>>7)*285,g^=(h>>>y&1)*d;return i(g>>>8==0),g}finderPenaltyCountPatterns(d){const h=d[1];i(h<=this.size*3);const g=h>0&&d[2]==h&&d[3]==h*3&&d[4]==h&&d[5]==h;return(g&&d[0]>=h*4&&d[6]>=h?1:0)+(g&&d[6]>=h*4&&d[0]>=h?1:0)}finderPenaltyTerminateAndCount(d,h,g){return d&&(this.finderPenaltyAddHistory(h,g),h=0),h+=this.size,this.finderPenaltyAddHistory(h,g),this.finderPenaltyCountPatterns(g)}finderPenaltyAddHistory(d,h){h[0]==0&&(d+=this.size),h.pop(),h.unshift(d)}};e.MIN_VERSION=1,e.MAX_VERSION=40,e.PENALTY_N1=3,e.PENALTY_N2=3,e.PENALTY_N3=40,e.PENALTY_N4=10,e.ECC_CODEWORDS_PER_BLOCK=[[-1,7,10,15,20,26,18,20,24,30,18,20,24,26,30,22,24,28,30,28,28,28,28,30,30,26,28,30,30,30,30,30,30,30,30,30,30,30,30,30,30],[-1,10,16,26,18,24,16,18,22,22,26,30,22,22,24,24,28,28,26,26,26,26,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28],[-1,13,22,18,26,18,24,18,22,20,24,28,26,24,20,30,24,28,28,26,30,28,30,30,30,30,28,30,30,30,30,30,30,30,30,30,30,30,30,30,30],[-1,17,28,22,16,22,28,26,26,24,28,24,28,22,24,24,30,28,28,26,28,30,24,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30]],e.NUM_ERROR_CORRECTION_BLOCKS=[[-1,1,1,1,1,1,2,2,2,2,4,4,4,4,4,6,6,6,6,7,8,8,9,9,10,12,12,12,13,14,15,16,17,18,19,19,20,21,22,24,25],[-1,1,1,1,2,2,4,4,4,5,5,5,8,9,9,10,10,11,13,14,16,17,17,18,20,21,23,25,26,28,29,31,33,35,37,38,40,43,45,47,49],[-1,1,1,2,2,4,4,6,6,8,8,8,10,12,16,12,17,16,18,21,20,23,23,25,27,29,34,34,35,38,40,43,45,48,51,53,56,59,62,65,68],[-1,1,1,2,4,4,4,5,6,8,8,11,11,16,16,18,16,19,21,25,25,25,34,30,32,35,37,40,42,45,48,51,54,57,60,63,66,70,74,77,81]],t.QrCode=e;function n(l,d,h){if(d<0||d>31||l>>>d)throw new RangeError("Value out of range");for(let g=d-1;g>=0;g--)h.push(l>>>g&1)}function r(l,d){return(l>>>d&1)!=0}function i(l){if(!l)throw new Error("Assertion error")}const o=class cr{constructor(d,h,g){if(this.mode=d,this.numChars=h,this.bitData=g,h<0)throw new RangeError("Invalid argument");this.bitData=g.slice()}static makeBytes(d){let h=[];for(const g of d)n(g,8,h);return new cr(cr.Mode.BYTE,d.length,h)}static makeNumeric(d){if(!cr.isNumeric(d))throw new RangeError("String contains non-numeric characters");let h=[];for(let g=0;g=1<{(e=>{const n=class{constructor(i,o){this.ordinal=i,this.formatBits=o}};n.LOW=new n(0,1),n.MEDIUM=new n(1,0),n.QUARTILE=new n(2,3),n.HIGH=new n(3,2),e.Ecc=n})(t.QrCode||(t.QrCode={}))})(Yp||(Yp={}));(t=>{(e=>{const n=class{constructor(i,o){this.modeBits=i,this.numBitsCharCount=o}numCharCountBits(i){return this.numBitsCharCount[Math.floor((i+7)/17)]}};n.NUMERIC=new n(1,[10,12,14]),n.ALPHANUMERIC=new n(2,[9,11,13]),n.BYTE=new n(4,[8,16,16]),n.KANJI=new n(8,[8,10,12]),n.ECI=new n(7,[0,0,0]),e.Mode=n})(t.QrSegment||(t.QrSegment={}))})(Yp||(Yp={}));var Dg=Yp;/** + */var gm;(t=>{const e=class Qt{constructor(d,h,g,y){if(this.version=d,this.errorCorrectionLevel=h,this.modules=[],this.isFunction=[],dQt.MAX_VERSION)throw new RangeError("Version value out of range");if(y<-1||y>7)throw new RangeError("Mask value out of range");this.size=d*4+17;let w=[];for(let C=0;C7)throw new RangeError("Invalid value");let C,E;for(C=g;;C++){const P=Qt.getNumDataCodewords(C,h)*8,k=u.getTotalBits(d,C);if(k<=P){E=k;break}if(C>=y)throw new RangeError("Data too long")}for(const P of[Qt.Ecc.MEDIUM,Qt.Ecc.QUARTILE,Qt.Ecc.HIGH])b&&E<=Qt.getNumDataCodewords(C,P)*8&&(h=P);let $=[];for(const P of d){n(P.mode.modeBits,4,$),n(P.numChars,P.mode.numCharCountBits(C),$);for(const k of P.getData())$.push(k)}i($.length==E);const O=Qt.getNumDataCodewords(C,h)*8;i($.length<=O),n(0,Math.min(4,O-$.length),$),n(0,(8-$.length%8)%8,$),i($.length%8==0);for(let P=236;$.length_[k>>>3]|=P<<7-(k&7)),new Qt(C,h,_,w)}getModule(d,h){return 0<=d&&d>>9)*1335;const y=(h<<10|g)^21522;i(y>>>15==0);for(let w=0;w<=5;w++)this.setFunctionModule(8,w,r(y,w));this.setFunctionModule(8,7,r(y,6)),this.setFunctionModule(8,8,r(y,7)),this.setFunctionModule(7,8,r(y,8));for(let w=9;w<15;w++)this.setFunctionModule(14-w,8,r(y,w));for(let w=0;w<8;w++)this.setFunctionModule(this.size-1-w,8,r(y,w));for(let w=8;w<15;w++)this.setFunctionModule(8,this.size-15+w,r(y,w));this.setFunctionModule(8,this.size-8,!0)}drawVersion(){if(this.version<7)return;let d=this.version;for(let g=0;g<12;g++)d=d<<1^(d>>>11)*7973;const h=this.version<<12|d;i(h>>>18==0);for(let g=0;g<18;g++){const y=r(h,g),w=this.size-11+g%3,b=Math.floor(g/3);this.setFunctionModule(w,b,y),this.setFunctionModule(b,w,y)}}drawFinderPattern(d,h){for(let g=-4;g<=4;g++)for(let y=-4;y<=4;y++){const w=Math.max(Math.abs(y),Math.abs(g)),b=d+y,C=h+g;0<=b&&b{(P!=E-w||R>=C)&&_.push(k[P])});return i(_.length==b),_}drawCodewords(d){if(d.length!=Math.floor(Qt.getNumRawDataModules(this.version)/8))throw new RangeError("Invalid argument");let h=0;for(let g=this.size-1;g>=1;g-=2){g==6&&(g=5);for(let y=0;y>>3],7-(h&7)),h++)}}i(h==d.length*8)}applyMask(d){if(d<0||d>7)throw new RangeError("Mask value out of range");for(let h=0;h5&&d++):(this.finderPenaltyAddHistory(C,E),b||(d+=this.finderPenaltyCountPatterns(E)*Qt.PENALTY_N3),b=this.modules[w][$],C=1);d+=this.finderPenaltyTerminateAndCount(b,C,E)*Qt.PENALTY_N3}for(let w=0;w5&&d++):(this.finderPenaltyAddHistory(C,E),b||(d+=this.finderPenaltyCountPatterns(E)*Qt.PENALTY_N3),b=this.modules[$][w],C=1);d+=this.finderPenaltyTerminateAndCount(b,C,E)*Qt.PENALTY_N3}for(let w=0;wb+(C?1:0),h);const g=this.size*this.size,y=Math.ceil(Math.abs(h*20-g*10)/g)-1;return i(0<=y&&y<=9),d+=y*Qt.PENALTY_N4,i(0<=d&&d<=2568888),d}getAlignmentPatternPositions(){if(this.version==1)return[];{const d=Math.floor(this.version/7)+2,h=this.version==32?26:Math.ceil((this.version*4+4)/(d*2-2))*2;let g=[6];for(let y=this.size-7;g.lengthQt.MAX_VERSION)throw new RangeError("Version number out of range");let h=(16*d+128)*d+64;if(d>=2){const g=Math.floor(d/7)+2;h-=(25*g-10)*g-55,d>=7&&(h-=36)}return i(208<=h&&h<=29648),h}static getNumDataCodewords(d,h){return Math.floor(Qt.getNumRawDataModules(d)/8)-Qt.ECC_CODEWORDS_PER_BLOCK[h.ordinal][d]*Qt.NUM_ERROR_CORRECTION_BLOCKS[h.ordinal][d]}static reedSolomonComputeDivisor(d){if(d<1||d>255)throw new RangeError("Degree out of range");let h=[];for(let y=0;y0);for(const y of d){const w=y^g.shift();g.push(0),h.forEach((b,C)=>g[C]^=Qt.reedSolomonMultiply(b,w))}return g}static reedSolomonMultiply(d,h){if(d>>>8||h>>>8)throw new RangeError("Byte out of range");let g=0;for(let y=7;y>=0;y--)g=g<<1^(g>>>7)*285,g^=(h>>>y&1)*d;return i(g>>>8==0),g}finderPenaltyCountPatterns(d){const h=d[1];i(h<=this.size*3);const g=h>0&&d[2]==h&&d[3]==h*3&&d[4]==h&&d[5]==h;return(g&&d[0]>=h*4&&d[6]>=h?1:0)+(g&&d[6]>=h*4&&d[0]>=h?1:0)}finderPenaltyTerminateAndCount(d,h,g){return d&&(this.finderPenaltyAddHistory(h,g),h=0),h+=this.size,this.finderPenaltyAddHistory(h,g),this.finderPenaltyCountPatterns(g)}finderPenaltyAddHistory(d,h){h[0]==0&&(d+=this.size),h.pop(),h.unshift(d)}};e.MIN_VERSION=1,e.MAX_VERSION=40,e.PENALTY_N1=3,e.PENALTY_N2=3,e.PENALTY_N3=40,e.PENALTY_N4=10,e.ECC_CODEWORDS_PER_BLOCK=[[-1,7,10,15,20,26,18,20,24,30,18,20,24,26,30,22,24,28,30,28,28,28,28,30,30,26,28,30,30,30,30,30,30,30,30,30,30,30,30,30,30],[-1,10,16,26,18,24,16,18,22,22,26,30,22,22,24,24,28,28,26,26,26,26,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28],[-1,13,22,18,26,18,24,18,22,20,24,28,26,24,20,30,24,28,28,26,30,28,30,30,30,30,28,30,30,30,30,30,30,30,30,30,30,30,30,30,30],[-1,17,28,22,16,22,28,26,26,24,28,24,28,22,24,24,30,28,28,26,28,30,24,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30]],e.NUM_ERROR_CORRECTION_BLOCKS=[[-1,1,1,1,1,1,2,2,2,2,4,4,4,4,4,6,6,6,6,7,8,8,9,9,10,12,12,12,13,14,15,16,17,18,19,19,20,21,22,24,25],[-1,1,1,1,2,2,4,4,4,5,5,5,8,9,9,10,10,11,13,14,16,17,17,18,20,21,23,25,26,28,29,31,33,35,37,38,40,43,45,47,49],[-1,1,1,2,2,4,4,6,6,8,8,8,10,12,16,12,17,16,18,21,20,23,23,25,27,29,34,34,35,38,40,43,45,48,51,53,56,59,62,65,68],[-1,1,1,2,4,4,4,5,6,8,8,11,11,16,16,18,16,19,21,25,25,25,34,30,32,35,37,40,42,45,48,51,54,57,60,63,66,70,74,77,81]],t.QrCode=e;function n(l,d,h){if(d<0||d>31||l>>>d)throw new RangeError("Value out of range");for(let g=d-1;g>=0;g--)h.push(l>>>g&1)}function r(l,d){return(l>>>d&1)!=0}function i(l){if(!l)throw new Error("Assertion error")}const o=class dr{constructor(d,h,g){if(this.mode=d,this.numChars=h,this.bitData=g,h<0)throw new RangeError("Invalid argument");this.bitData=g.slice()}static makeBytes(d){let h=[];for(const g of d)n(g,8,h);return new dr(dr.Mode.BYTE,d.length,h)}static makeNumeric(d){if(!dr.isNumeric(d))throw new RangeError("String contains non-numeric characters");let h=[];for(let g=0;g=1<{(e=>{const n=class{constructor(i,o){this.ordinal=i,this.formatBits=o}};n.LOW=new n(0,1),n.MEDIUM=new n(1,0),n.QUARTILE=new n(2,3),n.HIGH=new n(3,2),e.Ecc=n})(t.QrCode||(t.QrCode={}))})(gm||(gm={}));(t=>{(e=>{const n=class{constructor(i,o){this.modeBits=i,this.numBitsCharCount=o}numCharCountBits(i){return this.numBitsCharCount[Math.floor((i+7)/17)]}};n.NUMERIC=new n(1,[10,12,14]),n.ALPHANUMERIC=new n(2,[9,11,13]),n.BYTE=new n(4,[8,16,16]),n.KANJI=new n(8,[8,10,12]),n.ECI=new n(7,[0,0,0]),e.Mode=n})(t.QrSegment||(t.QrSegment={}))})(gm||(gm={}));var iy=gm;/** * @license qrcode.react * Copyright (c) Paul O'Shannessy * SPDX-License-Identifier: ISC - */var aX={L:Dg.QrCode.Ecc.LOW,M:Dg.QrCode.Ecc.MEDIUM,Q:Dg.QrCode.Ecc.QUARTILE,H:Dg.QrCode.Ecc.HIGH},kN=128,DN="L",FN="#FFFFFF",LN="#000000",UN=!1,jN=1,oX=4,sX=0,uX=.1;function BN(t,e=0){const n=[];return t.forEach(function(r,i){let o=null;r.forEach(function(u,l){if(!u&&o!==null){n.push(`M${o+e} ${i+e}h${l-o}v1H${o+e}z`),o=null;return}if(l===r.length-1){if(!u)return;o===null?n.push(`M${l+e},${i+e} h1v1H${l+e}z`):n.push(`M${o+e},${i+e} h${l+1-o}v1H${o+e}z`);return}u&&o===null&&(o=l)})}),n.join("")}function qN(t,e){return t.slice().map((n,r)=>r=e.y+e.h?n:n.map((i,o)=>o=e.x+e.w?i:!1))}function lX(t,e,n,r){if(r==null)return null;const i=t.length+n*2,o=Math.floor(e*uX),u=i/e,l=(r.width||o)*u,d=(r.height||o)*u,h=r.x==null?t.length/2-l/2:r.x*u,g=r.y==null?t.length/2-d/2:r.y*u,y=r.opacity==null?1:r.opacity;let w=null;if(r.excavate){let C=Math.floor(h),E=Math.floor(g),$=Math.ceil(l+h-C),O=Math.ceil(d+g-E);w={x:C,y:E,w:$,h:O}}const v=r.crossOrigin;return{x:h,y:g,h:d,w:l,excavation:w,opacity:y,crossOrigin:v}}function cX(t,e){return e!=null?Math.max(Math.floor(e),0):t?oX:sX}function HN({value:t,level:e,minVersion:n,includeMargin:r,marginSize:i,imageSettings:o,size:u,boostLevel:l}){let d=Ae.useMemo(()=>{const C=(Array.isArray(t)?t:[t]).reduce((E,$)=>(E.push(...Dg.QrSegment.makeSegments($)),E),[]);return Dg.QrCode.encodeSegments(C,aX[e],n,void 0,void 0,l)},[t,e,n,l]);const{cells:h,margin:g,numCells:y,calculatedImageSettings:w}=Ae.useMemo(()=>{let v=d.getModules();const C=cX(r,i),E=v.length+C*2,$=lX(v,u,C,o);return{cells:v,margin:C,numCells:E,calculatedImageSettings:$}},[d,u,o,r,i]);return{qrcode:d,margin:g,cells:h,numCells:y,calculatedImageSettings:w}}var fX=(function(){try{new Path2D().addPath(new Path2D)}catch{return!1}return!0})(),dX=Ae.forwardRef(function(e,n){const r=e,{value:i,size:o=kN,level:u=DN,bgColor:l=FN,fgColor:d=LN,includeMargin:h=UN,minVersion:g=jN,boostLevel:y,marginSize:w,imageSettings:v}=r,E=Ax(r,["value","size","level","bgColor","fgColor","includeMargin","minVersion","boostLevel","marginSize","imageSettings"]),{style:$}=E,O=Ax(E,["style"]),_=v==null?void 0:v.src,R=Ae.useRef(null),k=Ae.useRef(null),P=Ae.useCallback(be=>{R.current=be,typeof n=="function"?n(be):n&&(n.current=be)},[n]),[L,F]=Ae.useState(!1),{margin:q,cells:Y,numCells:X,calculatedImageSettings:ue}=HN({value:i,level:u,minVersion:g,boostLevel:y,includeMargin:h,marginSize:w,imageSettings:v,size:o});Ae.useEffect(()=>{if(R.current!=null){const be=R.current,we=be.getContext("2d");if(!we)return;let B=Y;const V=k.current,H=ue!=null&&V!==null&&V.complete&&V.naturalHeight!==0&&V.naturalWidth!==0;H&&ue.excavation!=null&&(B=qN(Y,ue.excavation));const ie=window.devicePixelRatio||1;be.height=be.width=o*ie;const G=o/X*ie;we.scale(G,G),we.fillStyle=l,we.fillRect(0,0,X,X),we.fillStyle=d,fX?we.fill(new Path2D(BN(B,q))):Y.forEach(function(Q,he){Q.forEach(function($e,Ce){$e&&we.fillRect(Ce+q,he+q,1,1)})}),ue&&(we.globalAlpha=ue.opacity),H&&we.drawImage(V,ue.x+q,ue.y+q,ue.w,ue.h)}}),Ae.useEffect(()=>{F(!1)},[_]);const me=_x({height:o,width:o},$);let te=null;return _!=null&&(te=Ae.createElement("img",{src:_,key:_,style:{display:"none"},onLoad:()=>{F(!0)},ref:k,crossOrigin:ue==null?void 0:ue.crossOrigin})),Ae.createElement(Ae.Fragment,null,Ae.createElement("canvas",_x({style:me,height:o,width:o,ref:P,role:"img"},O)),te)});dX.displayName="QRCodeCanvas";var zN=Ae.forwardRef(function(e,n){const r=e,{value:i,size:o=kN,level:u=DN,bgColor:l=FN,fgColor:d=LN,includeMargin:h=UN,minVersion:g=jN,boostLevel:y,title:w,marginSize:v,imageSettings:C}=r,E=Ax(r,["value","size","level","bgColor","fgColor","includeMargin","minVersion","boostLevel","title","marginSize","imageSettings"]),{margin:$,cells:O,numCells:_,calculatedImageSettings:R}=HN({value:i,level:u,minVersion:g,boostLevel:y,includeMargin:h,marginSize:v,imageSettings:C,size:o});let k=O,P=null;C!=null&&R!=null&&(R.excavation!=null&&(k=qN(O,R.excavation)),P=Ae.createElement("image",{href:C.src,height:R.h,width:R.w,x:R.x+$,y:R.y+$,preserveAspectRatio:"none",opacity:R.opacity,crossOrigin:R.crossOrigin}));const L=BN(k,$);return Ae.createElement("svg",_x({height:o,width:o,viewBox:`0 0 ${_} ${_}`,ref:n,role:"img"},E),!!w&&Ae.createElement("title",null,w),Ae.createElement("path",{fill:l,d:`M0,0 h${_}v${_}H0z`,shapeRendering:"crispEdges"}),Ae.createElement("path",{fill:d,d:L,shapeRendering:"crispEdges"}),P)});zN.displayName="QRCodeSVG";const _0={backspace:8,left:37,up:38,right:39,down:40};class G1 extends T.Component{constructor(e){super(e),this.__clearvalues__=()=>{const{fields:u}=this.props;this.setState({values:Array(u).fill("")}),this.iRefs[0].current.focus()},this.triggerChange=(u=this.state.values)=>{const{onChange:l,onComplete:d,fields:h}=this.props,g=u.join("");l&&l(g),d&&g.length>=h&&d(g)},this.onChange=u=>{const l=parseInt(u.target.dataset.id);if(this.props.type==="number"&&(u.target.value=u.target.value.replace(/[^\d]/gi,"")),u.target.value===""||this.props.type==="number"&&!u.target.validity.valid)return;const{fields:d}=this.props;let h;const g=u.target.value;let{values:y}=this.state;if(y=Object.assign([],y),g.length>1){let w=g.length+l-1;w>=d&&(w=d-1),h=this.iRefs[w],g.split("").forEach((C,E)=>{const $=l+E;${const l=parseInt(u.target.dataset.id),d=l-1,h=l+1,g=this.iRefs[d],y=this.iRefs[h];switch(u.keyCode){case _0.backspace:u.preventDefault();const w=[...this.state.values];this.state.values[l]?(w[l]="",this.setState({values:w}),this.triggerChange(w)):g&&(w[d]="",g.current.focus(),this.setState({values:w}),this.triggerChange(w));break;case _0.left:u.preventDefault(),g&&g.current.focus();break;case _0.right:u.preventDefault(),y&&y.current.focus();break;case _0.up:case _0.down:u.preventDefault();break}},this.onFocus=u=>{u.target.select(u)};const{fields:n,values:r}=e;let i,o=0;if(r&&r.length){i=[];for(let u=0;u=n?0:r.length}else i=Array(n).fill("");this.state={values:i,autoFocusIndex:o},this.iRefs=[];for(let u=0;uN.jsx("input",{type:g==="number"?"tel":g,pattern:g==="number"?"[0-9]*":null,autoFocus:d&&E===n,style:y,"data-id":E,value:C,id:this.props.id?`${this.props.id}-${E}`:null,ref:this.iRefs[E],onChange:this.onChange,onKeyDown:this.onKeyDown,onFocus:this.onFocus,disabled:this.props.disabled,required:this.props.required,placeholder:this.props.placeholder[E]},`${this.id}-${E}`))}),r&&N.jsxs("div",{className:"rc-loading",style:v,children:[N.jsx("div",{className:"rc-blur"}),N.jsx("svg",{className:"rc-spin",viewBox:"0 0 1024 1024","data-icon":"loading",width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true",children:N.jsx("path",{fill:"#006fff",d:"M988 548c-19.9 0-36-16.1-36-36 0-59.4-11.6-117-34.6-171.3a440.45 440.45 0 0 0-94.3-139.9 437.71 437.71 0 0 0-139.9-94.3C629 83.6 571.4 72 512 72c-19.9 0-36-16.1-36-36s16.1-36 36-36c69.1 0 136.2 13.5 199.3 40.3C772.3 66 827 103 874 150c47 47 83.9 101.8 109.7 162.7 26.7 63.1 40.2 130.2 40.2 199.3.1 19.9-16 36-35.9 36z"})})]})]})}}G1.propTypes={type:Te.oneOf(["text","number"]),onChange:Te.func,onComplete:Te.func,fields:Te.number,loading:Te.bool,title:Te.string,fieldWidth:Te.number,id:Te.string,fieldHeight:Te.number,autoFocus:Te.bool,className:Te.string,values:Te.arrayOf(Te.string),disabled:Te.bool,required:Te.bool,placeholder:Te.arrayOf(Te.string)};G1.defaultProps={type:"number",fields:6,fieldWidth:58,fieldHeight:54,autoFocus:!0,disabled:!1,required:!1,placeholder:[]};var w1;function bi(t,e){if(!{}.hasOwnProperty.call(t,e))throw new TypeError("attempted to use private field on non-instance");return t}var hX=0;function am(t){return"__private_"+hX+++"_"+t}const pX=t=>{const n=oo()??void 0,[r,i]=T.useState(!1),[o,u]=T.useState();return{...Fr({mutationFn:h=>(i(!1),Vf.Fetch({body:h,headers:t==null?void 0:t.headers},{creatorFn:t==null?void 0:t.creatorFn,qs:t==null?void 0:t.qs,ctx:n,onMessage:t==null?void 0:t.onMessage,overrideUrl:t==null?void 0:t.overrideUrl}).then(g=>(g.done.then(()=>{i(!0)}),u(g.response),g.response.result)))}),isCompleted:r,response:o}};class Vf{}w1=Vf;Vf.URL="/passport/totp/confirm";Vf.NewUrl=t=>so(w1.URL,void 0,t);Vf.Method="post";Vf.Fetch$=async(t,e,n,r)=>io(r??w1.NewUrl(t),{method:w1.Method,...n||{}},e);Vf.Fetch=async(t,{creatorFn:e,qs:n,ctx:r,onMessage:i,overrideUrl:o}={creatorFn:u=>new Rp(u)})=>{e=e||(l=>new Rp(l));const u=await w1.Fetch$(n,r,t,o);return ao(u,l=>{const d=new _a;return e&&d.setCreator(e),d.inject(l),d},i,t==null?void 0:t.signal)};Vf.Definition={name:"ConfirmClassicPassportTotp",url:"/passport/totp/confirm",method:"post",description:"When user requires to setup the totp for an specifc passport, they can use this endpoint to confirm it.",in:{fields:[{name:"value",description:"Passport value, email or phone number which is already successfully registered.",type:"string",tags:{validate:"required"}},{name:"password",description:"Password related to the passport. Totp is only available for passports with a password. Basically totp is protecting passport, not otp over email or sms.",type:"string",tags:{validate:"required"}},{name:"totpCode",description:"The totp code generated by authenticator such as google or microsft apps.",type:"string",tags:{validate:"required"}}]},out:{envelope:"GResponse",fields:[{name:"session",type:"one",target:"UserSessionDto"}]}};var jh=am("value"),Bh=am("password"),qh=am("totpCode"),e$=am("isJsonAppliable");class _f{get value(){return bi(this,jh)[jh]}set value(e){bi(this,jh)[jh]=String(e)}setValue(e){return this.value=e,this}get password(){return bi(this,Bh)[Bh]}set password(e){bi(this,Bh)[Bh]=String(e)}setPassword(e){return this.password=e,this}get totpCode(){return bi(this,qh)[qh]}set totpCode(e){bi(this,qh)[qh]=String(e)}setTotpCode(e){return this.totpCode=e,this}constructor(e=void 0){if(Object.defineProperty(this,e$,{value:mX}),Object.defineProperty(this,jh,{writable:!0,value:""}),Object.defineProperty(this,Bh,{writable:!0,value:""}),Object.defineProperty(this,qh,{writable:!0,value:""}),e!=null)if(typeof e=="string")this.applyFromObject(JSON.parse(e));else if(bi(this,e$)[e$](e))this.applyFromObject(e);else throw new Error("Instance cannot be created on an unknown value, check the content being passed. got: "+typeof e)}applyFromObject(e={}){const n=e;n.value!==void 0&&(this.value=n.value),n.password!==void 0&&(this.password=n.password),n.totpCode!==void 0&&(this.totpCode=n.totpCode)}toJSON(){return{value:bi(this,jh)[jh],password:bi(this,Bh)[Bh],totpCode:bi(this,qh)[qh]}}toString(){return JSON.stringify(this)}static get Fields(){return{value:"value",password:"password",totpCode:"totpCode"}}static from(e){return new _f(e)}static with(e){return new _f(e)}copyWith(e){return new _f({...this.toJSON(),...e})}clone(){return new _f(this.toJSON())}}function mX(t){const e=globalThis,n=typeof e.Buffer<"u"&&typeof e.Buffer.isBuffer=="function"&&e.Buffer.isBuffer(t),r=typeof e.Blob<"u"&&t instanceof e.Blob;return t&&typeof t=="object"&&!Array.isArray(t)&&!n&&!(t instanceof ArrayBuffer)&&!r}var hl=am("session"),t$=am("isJsonAppliable"),A0=am("lateInitFields");class Rp{get session(){return bi(this,hl)[hl]}set session(e){e instanceof Nn?bi(this,hl)[hl]=e:bi(this,hl)[hl]=new Nn(e)}setSession(e){return this.session=e,this}constructor(e=void 0){if(Object.defineProperty(this,A0,{value:yX}),Object.defineProperty(this,t$,{value:gX}),Object.defineProperty(this,hl,{writable:!0,value:void 0}),e==null){bi(this,A0)[A0]();return}if(typeof e=="string")this.applyFromObject(JSON.parse(e));else if(bi(this,t$)[t$](e))this.applyFromObject(e);else throw new Error("Instance cannot be created on an unknown value, check the content being passed. got: "+typeof e)}applyFromObject(e={}){const n=e;n.session!==void 0&&(this.session=n.session),bi(this,A0)[A0](e)}toJSON(){return{session:bi(this,hl)[hl]}}toString(){return JSON.stringify(this)}static get Fields(){return{session$:"session",get session(){return xl("session",Nn.Fields)}}}static from(e){return new Rp(e)}static with(e){return new Rp(e)}copyWith(e){return new Rp({...this.toJSON(),...e})}clone(){return new Rp(this.toJSON())}}function gX(t){const e=globalThis,n=typeof e.Buffer<"u"&&typeof e.Buffer.isBuffer=="function"&&e.Buffer.isBuffer(t),r=typeof e.Blob<"u"&&t instanceof e.Blob;return t&&typeof t=="object"&&!Array.isArray(t)&&!n&&!(t instanceof ArrayBuffer)&&!r}function yX(t={}){const e=t;e.session instanceof Nn||(this.session=new Nn(e.session||{}))}const vX=()=>{const{goBack:t,state:e}=Lr(),n=pX(),{onComplete:r}=V1(),i=e==null?void 0:e.totpUrl,o=e==null?void 0:e.forcedTotp,u=e==null?void 0:e.password,l=e==null?void 0:e.value,d=y=>{n.mutateAsync(new _f({...y,password:u,value:l})).then(g).catch(w=>{h==null||h.setErrors(fy(w))})},h=Dl({initialValues:{},onSubmit:d}),g=y=>{var w,v;(v=(w=y.data)==null?void 0:w.item)!=null&&v.session&&r(y)};return{mutation:n,totpUrl:i,forcedTotp:o,form:h,submit:d,goBack:t}},bX=({})=>{const{goBack:t,mutation:e,form:n,totpUrl:r,forcedTotp:i}=vX(),o=Kn($r);return N.jsxs("div",{className:"signin-form-container",children:[N.jsx("h1",{children:o.setupTotp}),N.jsx("p",{children:o.setupTotpDescription}),N.jsx(Wo,{query:e}),N.jsx(wX,{form:n,totpUrl:r,mutation:e,forcedTotp:i}),N.jsx("button",{id:"go-back-button",className:"btn w-100 d-block",onClick:t,children:"Try another account"})]})},wX=({form:t,mutation:e,forcedTotp:n,totpUrl:r})=>{var u;const i=Kn($r),o=!t.values.totpCode||t.values.totpCode.length!=6;return N.jsxs("form",{onSubmit:l=>{l.preventDefault(),t.submitForm()},children:[N.jsx("center",{children:N.jsx(zN,{value:r,width:200,height:200})}),N.jsx(G1,{values:(u=t.values.totpCode)==null?void 0:u.split(""),onChange:l=>t.setFieldValue(_f.Fields.totpCode,l,!1),className:"otp-react-code-input"}),N.jsx(Uf,{className:"btn btn-primary w-100 d-block mb-2",mutation:e,id:"submit-form",disabled:o,children:i.continue}),n!==!0&&N.jsxs(N.Fragment,{children:[N.jsx("p",{className:"mt-4",children:i.skipTotpInfo}),N.jsx("button",{className:"btn btn-warning w-100 d-block mb-2",children:i.skipTotpButton})]})]})},SX=()=>{const{goBack:t,state:e,replace:n,push:r}=Lr(),i=IN(),{onComplete:o}=V1(),u=e==null?void 0:e.totpUrl,l=e==null?void 0:e.forcedTotp,d=e==null?void 0:e.password,h=e==null?void 0:e.value,g=v=>{i.mutateAsync(new Ns({...v,password:d,value:h})).then(w).catch(C=>{y==null||y.setErrors(fy(C))})},y=Dl({initialValues:{},onSubmit:(v,C)=>{i.mutateAsync(new Ns(v))}}),w=v=>{var C,E;(E=(C=v.data)==null?void 0:C.item)!=null&&E.session&&o(v)};return{mutation:i,totpUrl:u,forcedTotp:l,form:y,submit:g,goBack:t}},CX=({})=>{const{goBack:t,mutation:e,form:n}=SX(),r=Kn($r);return N.jsxs("div",{className:"signin-form-container",children:[N.jsx("h1",{children:r.enterTotp}),N.jsx("p",{children:r.enterTotpDescription}),N.jsx(Wo,{query:e}),N.jsx($X,{form:n,mutation:e}),N.jsx("button",{id:"go-back-button",className:"btn w-100 d-block",onClick:t,children:r.anotherAccount})]})},$X=({form:t,mutation:e})=>{var i;const n=!t.values.totpCode||t.values.totpCode.length!=6,r=Kn($r);return N.jsxs("form",{onSubmit:o=>{o.preventDefault(),t.submitForm()},children:[N.jsx(G1,{values:(i=t.values.totpCode)==null?void 0:i.split(""),onChange:o=>t.setFieldValue(_f.Fields.totpCode,o,!1),className:"otp-react-code-input"}),N.jsx(Uf,{className:"btn btn-success w-100 d-block mb-2",mutation:e,id:"submit-form",disabled:n,children:r.continue})]})};var S1;function Rt(t,e){if(!{}.hasOwnProperty.call(t,e))throw new TypeError("attempted to use private field on non-instance");return t}var EX=0;function Fi(t){return"__private_"+EX+++"_"+t}const xX=t=>{const n=oo()??void 0,[r,i]=T.useState(!1),[o,u]=T.useState();return{...Fr({mutationFn:h=>(i(!1),Gf.Fetch({body:h,headers:t==null?void 0:t.headers},{creatorFn:t==null?void 0:t.creatorFn,qs:t==null?void 0:t.qs,ctx:n,onMessage:t==null?void 0:t.onMessage,overrideUrl:t==null?void 0:t.overrideUrl}).then(g=>(g.done.then(()=>{i(!0)}),u(g.response),g.response.result)))}),isCompleted:r,response:o}};class Gf{}S1=Gf;Gf.URL="/passports/signup/classic";Gf.NewUrl=t=>so(S1.URL,void 0,t);Gf.Method="post";Gf.Fetch$=async(t,e,n,r)=>io(r??S1.NewUrl(t),{method:S1.Method,...n||{}},e);Gf.Fetch=async(t,{creatorFn:e,qs:n,ctx:r,onMessage:i,overrideUrl:o}={creatorFn:u=>new Pp(u)})=>{e=e||(l=>new Pp(l));const u=await S1.Fetch$(n,r,t,o);return ao(u,l=>{const d=new _a;return e&&d.setCreator(e),d.inject(l),d},i,t==null?void 0:t.signal)};Gf.Definition={name:"ClassicSignup",cliName:"up",url:"/passports/signup/classic",method:"post",description:"Signup a user into system via public access (aka website visitors) using either email or phone number.",in:{fields:[{name:"value",type:"string",tags:{validate:"required"}},{name:"sessionSecret",description:"Required when the account creation requires recaptcha, or otp approval first. If such requirements are there, you first need to follow the otp apis, get the session secret and pass it here to complete the setup.",type:"string"},{name:"type",type:"enum",of:[{k:"phonenumber"},{k:"email"}],tags:{validate:"required"}},{name:"password",type:"string",tags:{validate:"required"}},{name:"firstName",type:"string",tags:{validate:"required"}},{name:"lastName",type:"string",tags:{validate:"required"}},{name:"inviteId",type:"string?"},{name:"publicJoinKeyId",type:"string?"},{name:"workspaceTypeId",type:"string?",tags:{validate:"required"}}]},out:{envelope:"GResponse",fields:[{name:"session",description:"Returns the user session in case that signup is completely successful.",type:"one",target:"UserSessionDto"},{name:"totpUrl",description:"If time based otp is available, we add it response to make it easier for ui.",type:"string"},{name:"continueToTotp",description:"Returns true and session will be empty if, the totp is required by the installation. In such scenario, you need to forward user to setup totp screen.",type:"bool"},{name:"forcedTotp",description:"Determines if user must complete totp in order to continue based on workspace or installation",type:"bool"}]}};var Hh=Fi("value"),zh=Fi("sessionSecret"),Vh=Fi("type"),Gh=Fi("password"),Wh=Fi("firstName"),Kh=Fi("lastName"),Yh=Fi("inviteId"),Jh=Fi("publicJoinKeyId"),Qh=Fi("workspaceTypeId"),n$=Fi("isJsonAppliable");class $u{get value(){return Rt(this,Hh)[Hh]}set value(e){Rt(this,Hh)[Hh]=String(e)}setValue(e){return this.value=e,this}get sessionSecret(){return Rt(this,zh)[zh]}set sessionSecret(e){Rt(this,zh)[zh]=String(e)}setSessionSecret(e){return this.sessionSecret=e,this}get type(){return Rt(this,Vh)[Vh]}set type(e){Rt(this,Vh)[Vh]=e}setType(e){return this.type=e,this}get password(){return Rt(this,Gh)[Gh]}set password(e){Rt(this,Gh)[Gh]=String(e)}setPassword(e){return this.password=e,this}get firstName(){return Rt(this,Wh)[Wh]}set firstName(e){Rt(this,Wh)[Wh]=String(e)}setFirstName(e){return this.firstName=e,this}get lastName(){return Rt(this,Kh)[Kh]}set lastName(e){Rt(this,Kh)[Kh]=String(e)}setLastName(e){return this.lastName=e,this}get inviteId(){return Rt(this,Yh)[Yh]}set inviteId(e){const n=typeof e=="string"||e===void 0||e===null;Rt(this,Yh)[Yh]=n?e:String(e)}setInviteId(e){return this.inviteId=e,this}get publicJoinKeyId(){return Rt(this,Jh)[Jh]}set publicJoinKeyId(e){const n=typeof e=="string"||e===void 0||e===null;Rt(this,Jh)[Jh]=n?e:String(e)}setPublicJoinKeyId(e){return this.publicJoinKeyId=e,this}get workspaceTypeId(){return Rt(this,Qh)[Qh]}set workspaceTypeId(e){const n=typeof e=="string"||e===void 0||e===null;Rt(this,Qh)[Qh]=n?e:String(e)}setWorkspaceTypeId(e){return this.workspaceTypeId=e,this}constructor(e=void 0){if(Object.defineProperty(this,n$,{value:OX}),Object.defineProperty(this,Hh,{writable:!0,value:""}),Object.defineProperty(this,zh,{writable:!0,value:""}),Object.defineProperty(this,Vh,{writable:!0,value:void 0}),Object.defineProperty(this,Gh,{writable:!0,value:""}),Object.defineProperty(this,Wh,{writable:!0,value:""}),Object.defineProperty(this,Kh,{writable:!0,value:""}),Object.defineProperty(this,Yh,{writable:!0,value:void 0}),Object.defineProperty(this,Jh,{writable:!0,value:void 0}),Object.defineProperty(this,Qh,{writable:!0,value:void 0}),e!=null)if(typeof e=="string")this.applyFromObject(JSON.parse(e));else if(Rt(this,n$)[n$](e))this.applyFromObject(e);else throw new Error("Instance cannot be created on an unknown value, check the content being passed. got: "+typeof e)}applyFromObject(e={}){const n=e;n.value!==void 0&&(this.value=n.value),n.sessionSecret!==void 0&&(this.sessionSecret=n.sessionSecret),n.type!==void 0&&(this.type=n.type),n.password!==void 0&&(this.password=n.password),n.firstName!==void 0&&(this.firstName=n.firstName),n.lastName!==void 0&&(this.lastName=n.lastName),n.inviteId!==void 0&&(this.inviteId=n.inviteId),n.publicJoinKeyId!==void 0&&(this.publicJoinKeyId=n.publicJoinKeyId),n.workspaceTypeId!==void 0&&(this.workspaceTypeId=n.workspaceTypeId)}toJSON(){return{value:Rt(this,Hh)[Hh],sessionSecret:Rt(this,zh)[zh],type:Rt(this,Vh)[Vh],password:Rt(this,Gh)[Gh],firstName:Rt(this,Wh)[Wh],lastName:Rt(this,Kh)[Kh],inviteId:Rt(this,Yh)[Yh],publicJoinKeyId:Rt(this,Jh)[Jh],workspaceTypeId:Rt(this,Qh)[Qh]}}toString(){return JSON.stringify(this)}static get Fields(){return{value:"value",sessionSecret:"sessionSecret",type:"type",password:"password",firstName:"firstName",lastName:"lastName",inviteId:"inviteId",publicJoinKeyId:"publicJoinKeyId",workspaceTypeId:"workspaceTypeId"}}static from(e){return new $u(e)}static with(e){return new $u(e)}copyWith(e){return new $u({...this.toJSON(),...e})}clone(){return new $u(this.toJSON())}}function OX(t){const e=globalThis,n=typeof e.Buffer<"u"&&typeof e.Buffer.isBuffer=="function"&&e.Buffer.isBuffer(t),r=typeof e.Blob<"u"&&t instanceof e.Blob;return t&&typeof t=="object"&&!Array.isArray(t)&&!n&&!(t instanceof ArrayBuffer)&&!r}var pl=Fi("session"),Xh=Fi("totpUrl"),Zh=Fi("continueToTotp"),ep=Fi("forcedTotp"),r$=Fi("isJsonAppliable"),R0=Fi("lateInitFields");class Pp{get session(){return Rt(this,pl)[pl]}set session(e){e instanceof Nn?Rt(this,pl)[pl]=e:Rt(this,pl)[pl]=new Nn(e)}setSession(e){return this.session=e,this}get totpUrl(){return Rt(this,Xh)[Xh]}set totpUrl(e){Rt(this,Xh)[Xh]=String(e)}setTotpUrl(e){return this.totpUrl=e,this}get continueToTotp(){return Rt(this,Zh)[Zh]}set continueToTotp(e){Rt(this,Zh)[Zh]=!!e}setContinueToTotp(e){return this.continueToTotp=e,this}get forcedTotp(){return Rt(this,ep)[ep]}set forcedTotp(e){Rt(this,ep)[ep]=!!e}setForcedTotp(e){return this.forcedTotp=e,this}constructor(e=void 0){if(Object.defineProperty(this,R0,{value:_X}),Object.defineProperty(this,r$,{value:TX}),Object.defineProperty(this,pl,{writable:!0,value:void 0}),Object.defineProperty(this,Xh,{writable:!0,value:""}),Object.defineProperty(this,Zh,{writable:!0,value:void 0}),Object.defineProperty(this,ep,{writable:!0,value:void 0}),e==null){Rt(this,R0)[R0]();return}if(typeof e=="string")this.applyFromObject(JSON.parse(e));else if(Rt(this,r$)[r$](e))this.applyFromObject(e);else throw new Error("Instance cannot be created on an unknown value, check the content being passed. got: "+typeof e)}applyFromObject(e={}){const n=e;n.session!==void 0&&(this.session=n.session),n.totpUrl!==void 0&&(this.totpUrl=n.totpUrl),n.continueToTotp!==void 0&&(this.continueToTotp=n.continueToTotp),n.forcedTotp!==void 0&&(this.forcedTotp=n.forcedTotp),Rt(this,R0)[R0](e)}toJSON(){return{session:Rt(this,pl)[pl],totpUrl:Rt(this,Xh)[Xh],continueToTotp:Rt(this,Zh)[Zh],forcedTotp:Rt(this,ep)[ep]}}toString(){return JSON.stringify(this)}static get Fields(){return{session$:"session",get session(){return xl("session",Nn.Fields)},totpUrl:"totpUrl",continueToTotp:"continueToTotp",forcedTotp:"forcedTotp"}}static from(e){return new Pp(e)}static with(e){return new Pp(e)}copyWith(e){return new Pp({...this.toJSON(),...e})}clone(){return new Pp(this.toJSON())}}function TX(t){const e=globalThis,n=typeof e.Buffer<"u"&&typeof e.Buffer.isBuffer=="function"&&e.Buffer.isBuffer(t),r=typeof e.Blob<"u"&&t instanceof e.Blob;return t&&typeof t=="object"&&!Array.isArray(t)&&!n&&!(t instanceof ArrayBuffer)&&!r}function _X(t={}){const e=t;e.session instanceof Nn||(this.session=new Nn(e.session||{}))}var C1;function Ja(t,e){if(!{}.hasOwnProperty.call(t,e))throw new TypeError("attempted to use private field on non-instance");return t}var AX=0;function W1(t){return"__private_"+AX+++"_"+t}const RX=t=>{const e=oo(),n=(t==null?void 0:t.ctx)??e??void 0,[r,i]=T.useState(!1),[o,u]=T.useState(),l=()=>(i(!1),_l.Fetch({headers:t==null?void 0:t.headers},{creatorFn:t==null?void 0:t.creatorFn,qs:t==null?void 0:t.qs,ctx:n,onMessage:t==null?void 0:t.onMessage,overrideUrl:t==null?void 0:t.overrideUrl}).then(h=>(h.done.then(()=>{i(!0)}),u(h.response),h.response.result)));return{...Go({queryKey:[_l.NewUrl(t==null?void 0:t.qs)],queryFn:l,...t||{}}),isCompleted:r,response:o}};class _l{}C1=_l;_l.URL="/workspace/public/types";_l.NewUrl=t=>so(C1.URL,void 0,t);_l.Method="get";_l.Fetch$=async(t,e,n,r)=>io(r??C1.NewUrl(t),{method:C1.Method,...n||{}},e);_l.Fetch=async(t,{creatorFn:e,qs:n,ctx:r,onMessage:i,overrideUrl:o}={creatorFn:u=>new Ip(u)})=>{e=e||(l=>new Ip(l));const u=await C1.Fetch$(n,r,t,o);return ao(u,l=>{const d=new _a;return e&&d.setCreator(e),d.inject(l),d},i,t==null?void 0:t.signal)};_l.Definition={name:"QueryWorkspaceTypesPublicly",cliName:"public-types",url:"/workspace/public/types",method:"get",description:"Returns the workspaces types available in the project publicly without authentication, and the value could be used upon signup to go different route.",out:{envelope:"GResponse",fields:[{name:"title",type:"string"},{name:"description",type:"string"},{name:"uniqueId",type:"string"},{name:"slug",type:"string"}]}};var tp=W1("title"),np=W1("description"),rp=W1("uniqueId"),ip=W1("slug"),i$=W1("isJsonAppliable");class Ip{get title(){return Ja(this,tp)[tp]}set title(e){Ja(this,tp)[tp]=String(e)}setTitle(e){return this.title=e,this}get description(){return Ja(this,np)[np]}set description(e){Ja(this,np)[np]=String(e)}setDescription(e){return this.description=e,this}get uniqueId(){return Ja(this,rp)[rp]}set uniqueId(e){Ja(this,rp)[rp]=String(e)}setUniqueId(e){return this.uniqueId=e,this}get slug(){return Ja(this,ip)[ip]}set slug(e){Ja(this,ip)[ip]=String(e)}setSlug(e){return this.slug=e,this}constructor(e=void 0){if(Object.defineProperty(this,i$,{value:PX}),Object.defineProperty(this,tp,{writable:!0,value:""}),Object.defineProperty(this,np,{writable:!0,value:""}),Object.defineProperty(this,rp,{writable:!0,value:""}),Object.defineProperty(this,ip,{writable:!0,value:""}),e!=null)if(typeof e=="string")this.applyFromObject(JSON.parse(e));else if(Ja(this,i$)[i$](e))this.applyFromObject(e);else throw new Error("Instance cannot be created on an unknown value, check the content being passed. got: "+typeof e)}applyFromObject(e={}){const n=e;n.title!==void 0&&(this.title=n.title),n.description!==void 0&&(this.description=n.description),n.uniqueId!==void 0&&(this.uniqueId=n.uniqueId),n.slug!==void 0&&(this.slug=n.slug)}toJSON(){return{title:Ja(this,tp)[tp],description:Ja(this,np)[np],uniqueId:Ja(this,rp)[rp],slug:Ja(this,ip)[ip]}}toString(){return JSON.stringify(this)}static get Fields(){return{title:"title",description:"description",uniqueId:"uniqueId",slug:"slug"}}static from(e){return new Ip(e)}static with(e){return new Ip(e)}copyWith(e){return new Ip({...this.toJSON(),...e})}clone(){return new Ip(this.toJSON())}}function PX(t){const e=globalThis,n=typeof e.Buffer<"u"&&typeof e.Buffer.isBuffer=="function"&&e.Buffer.isBuffer(t),r=typeof e.Blob<"u"&&t instanceof e.Blob;return t&&typeof t=="object"&&!Array.isArray(t)&&!n&&!(t instanceof ArrayBuffer)&&!r}const IX=()=>{var _;const{goBack:t,state:e,push:n}=Lr(),{locale:r}=$i(),{onComplete:i}=V1(),o=xX(),u=e==null?void 0:e.totpUrl,{data:l,isLoading:d}=RX({}),h=((_=l==null?void 0:l.data)==null?void 0:_.items)||[],g=Kn($r),y=sessionStorage.getItem("workspace_type_id"),w=R=>{o.mutateAsync(new $u({...R,value:e==null?void 0:e.value,workspaceTypeId:O,type:e==null?void 0:e.type,sessionSecret:e==null?void 0:e.sessionSecret})).then(C).catch(k=>{v==null||v.setErrors(fy(k))})},v=Dl({initialValues:{},onSubmit:w});T.useEffect(()=>{v==null||v.setFieldValue($u.Fields.value,e==null?void 0:e.value)},[e==null?void 0:e.value]);const C=R=>{R.data.item.session?i(R):R.data.item.continueToTotp&&n(`/${r}/selfservice/totp-setup`,void 0,{totpUrl:R.data.item.totpUrl||u,forcedTotp:R.data.item.forcedTotp,password:v.values.password,value:e==null?void 0:e.value})},[E,$]=T.useState("");let O=h.length===1?h[0].uniqueId:E;return y&&(O=y),{mutation:o,isLoading:d,form:v,setSelectedWorkspaceType:$,totpUrl:u,workspaceTypeId:O,submit:w,goBack:t,s:g,workspaceTypes:h,state:e}},NX=({})=>{const{goBack:t,mutation:e,form:n,workspaceTypes:r,workspaceTypeId:i,isLoading:o,setSelectedWorkspaceType:u,s:l}=IX();return o?N.jsx("div",{className:"signin-form-container",children:N.jsx(PN,{})}):r.length===0?N.jsxs("div",{className:"signin-form-container",children:[N.jsx("h1",{children:l.registerationNotPossible}),N.jsx("p",{children:l.registerationNotPossibleLine1}),N.jsx("p",{children:l.registerationNotPossibleLine2})]}):r.length>=2&&!i?N.jsxs("div",{className:"signin-form-container fadein",style:{animation:"fadein 1s"},children:[N.jsx("h1",{children:l.completeYourAccount}),N.jsx("p",{children:l.completeYourAccountDescription}),N.jsx("div",{className:" ",children:r.map(d=>N.jsxs("div",{className:"mt-3",children:[N.jsx("h2",{children:d.title}),N.jsx("p",{children:d.description}),N.jsx("button",{className:"btn btn-outline-primary w-100",onClick:()=>{u(d.uniqueId)},children:"Select"},d.uniqueId)]},d.uniqueId))})]}):N.jsxs("div",{className:"signin-form-container fadein",style:{animation:"fadein 1s"},children:[N.jsx("h1",{children:l.completeYourAccount}),N.jsx("p",{children:l.completeYourAccountDescription}),N.jsx(Wo,{query:e}),N.jsx(MX,{form:n,mutation:e}),N.jsx("button",{id:"go-step-back",onClick:t,className:"bg-transparent border-0",children:l.cancelStep})]})},MX=({form:t,mutation:e})=>{const n=Kn($r),r=!t.values.firstName||!t.values.lastName||!t.values.password||t.values.password.length<6;return N.jsxs("form",{onSubmit:i=>{i.preventDefault(),t.submitForm()},children:[N.jsx(Bo,{value:t.values.firstName,label:n.firstName,id:"first-name-input",autoFocus:!0,errorMessage:t.errors.firstName,onChange:i=>t.setFieldValue($u.Fields.firstName,i,!1)}),N.jsx(Bo,{value:t.values.lastName,label:n.lastName,id:"last-name-input",errorMessage:t.errors.lastName,onChange:i=>t.setFieldValue($u.Fields.lastName,i,!1)}),N.jsx(Bo,{type:"password",value:t.values.password,label:n.password,id:"password-input",errorMessage:t.errors.password,onChange:i=>t.setFieldValue($u.Fields.password,i,!1)}),N.jsx(Uf,{className:"btn btn-primary w-100 d-block mb-2",mutation:e,id:"submit-form",disabled:r,children:n.continue})]})};var $1;function mi(t,e){if(!{}.hasOwnProperty.call(t,e))throw new TypeError("attempted to use private field on non-instance");return t}var kX=0;function om(t){return"__private_"+kX+++"_"+t}const DX=t=>{const n=oo()??void 0,[r,i]=T.useState(!1),[o,u]=T.useState();return{...Fr({mutationFn:h=>(i(!1),Wf.Fetch({body:h,headers:t==null?void 0:t.headers},{creatorFn:t==null?void 0:t.creatorFn,qs:t==null?void 0:t.qs,ctx:n,onMessage:t==null?void 0:t.onMessage,overrideUrl:t==null?void 0:t.overrideUrl}).then(g=>(g.done.then(()=>{i(!0)}),u(g.response),g.response.result)))}),isCompleted:r,response:o}};class Wf{}$1=Wf;Wf.URL="/workspace/passport/request-otp";Wf.NewUrl=t=>so($1.URL,void 0,t);Wf.Method="post";Wf.Fetch$=async(t,e,n,r)=>io(r??$1.NewUrl(t),{method:$1.Method,...n||{}},e);Wf.Fetch=async(t,{creatorFn:e,qs:n,ctx:r,onMessage:i,overrideUrl:o}={creatorFn:u=>new Np(u)})=>{e=e||(l=>new Np(l));const u=await $1.Fetch$(n,r,t,o);return ao(u,l=>{const d=new _a;return e&&d.setCreator(e),d.inject(l),d},i,t==null?void 0:t.signal)};Wf.Definition={name:"ClassicPassportRequestOtp",cliName:"otp-request",url:"/workspace/passport/request-otp",method:"post",description:"Triggers an otp request, and will send an sms or email to the passport. This endpoint is not used for login, but rather makes a request at initial step. Later you can call classicPassportOtp to get in.",in:{fields:[{name:"value",description:"Passport value (email, phone number) which would be receiving the otp code.",type:"string",tags:{validate:"required"}}]},out:{envelope:"GResponse",fields:[{name:"suspendUntil",type:"int64"},{name:"validUntil",type:"int64"},{name:"blockedUntil",type:"int64"},{name:"secondsToUnblock",description:"The amount of time left to unblock for next request",type:"int64"}]}};var ap=om("value"),a$=om("isJsonAppliable");class Fg{get value(){return mi(this,ap)[ap]}set value(e){mi(this,ap)[ap]=String(e)}setValue(e){return this.value=e,this}constructor(e=void 0){if(Object.defineProperty(this,a$,{value:FX}),Object.defineProperty(this,ap,{writable:!0,value:""}),e!=null)if(typeof e=="string")this.applyFromObject(JSON.parse(e));else if(mi(this,a$)[a$](e))this.applyFromObject(e);else throw new Error("Instance cannot be created on an unknown value, check the content being passed. got: "+typeof e)}applyFromObject(e={}){const n=e;n.value!==void 0&&(this.value=n.value)}toJSON(){return{value:mi(this,ap)[ap]}}toString(){return JSON.stringify(this)}static get Fields(){return{value:"value"}}static from(e){return new Fg(e)}static with(e){return new Fg(e)}copyWith(e){return new Fg({...this.toJSON(),...e})}clone(){return new Fg(this.toJSON())}}function FX(t){const e=globalThis,n=typeof e.Buffer<"u"&&typeof e.Buffer.isBuffer=="function"&&e.Buffer.isBuffer(t),r=typeof e.Blob<"u"&&t instanceof e.Blob;return t&&typeof t=="object"&&!Array.isArray(t)&&!n&&!(t instanceof ArrayBuffer)&&!r}var op=om("suspendUntil"),sp=om("validUntil"),up=om("blockedUntil"),lp=om("secondsToUnblock"),o$=om("isJsonAppliable");class Np{get suspendUntil(){return mi(this,op)[op]}set suspendUntil(e){const r=typeof e=="number"?e:Number(e);Number.isNaN(r)||(mi(this,op)[op]=r)}setSuspendUntil(e){return this.suspendUntil=e,this}get validUntil(){return mi(this,sp)[sp]}set validUntil(e){const r=typeof e=="number"?e:Number(e);Number.isNaN(r)||(mi(this,sp)[sp]=r)}setValidUntil(e){return this.validUntil=e,this}get blockedUntil(){return mi(this,up)[up]}set blockedUntil(e){const r=typeof e=="number"?e:Number(e);Number.isNaN(r)||(mi(this,up)[up]=r)}setBlockedUntil(e){return this.blockedUntil=e,this}get secondsToUnblock(){return mi(this,lp)[lp]}set secondsToUnblock(e){const r=typeof e=="number"?e:Number(e);Number.isNaN(r)||(mi(this,lp)[lp]=r)}setSecondsToUnblock(e){return this.secondsToUnblock=e,this}constructor(e=void 0){if(Object.defineProperty(this,o$,{value:LX}),Object.defineProperty(this,op,{writable:!0,value:0}),Object.defineProperty(this,sp,{writable:!0,value:0}),Object.defineProperty(this,up,{writable:!0,value:0}),Object.defineProperty(this,lp,{writable:!0,value:0}),e!=null)if(typeof e=="string")this.applyFromObject(JSON.parse(e));else if(mi(this,o$)[o$](e))this.applyFromObject(e);else throw new Error("Instance cannot be created on an unknown value, check the content being passed. got: "+typeof e)}applyFromObject(e={}){const n=e;n.suspendUntil!==void 0&&(this.suspendUntil=n.suspendUntil),n.validUntil!==void 0&&(this.validUntil=n.validUntil),n.blockedUntil!==void 0&&(this.blockedUntil=n.blockedUntil),n.secondsToUnblock!==void 0&&(this.secondsToUnblock=n.secondsToUnblock)}toJSON(){return{suspendUntil:mi(this,op)[op],validUntil:mi(this,sp)[sp],blockedUntil:mi(this,up)[up],secondsToUnblock:mi(this,lp)[lp]}}toString(){return JSON.stringify(this)}static get Fields(){return{suspendUntil:"suspendUntil",validUntil:"validUntil",blockedUntil:"blockedUntil",secondsToUnblock:"secondsToUnblock"}}static from(e){return new Np(e)}static with(e){return new Np(e)}copyWith(e){return new Np({...this.toJSON(),...e})}clone(){return new Np(this.toJSON())}}function LX(t){const e=globalThis,n=typeof e.Buffer<"u"&&typeof e.Buffer.isBuffer=="function"&&e.Buffer.isBuffer(t),r=typeof e.Blob<"u"&&t instanceof e.Blob;return t&&typeof t=="object"&&!Array.isArray(t)&&!n&&!(t instanceof ArrayBuffer)&&!r}const UX=()=>{const t=Kn($r),{goBack:e,state:n,push:r}=Lr(),{locale:i}=$i(),{onComplete:o}=V1(),u=IN(),l=n==null?void 0:n.canContinueOnOtp,d=DX(),h=v=>{u.mutateAsync(new Ns({value:v.value,password:v.password})).then(w).catch(C=>{g==null||g.setErrors(fy(C))})},g=Dl({initialValues:{},onSubmit:h}),y=()=>{d.mutateAsync(new Fg({value:g.values.value})).then(v=>{r("../otp",void 0,{value:g.values.value})}).catch(v=>{v.error.message==="OtaRequestBlockedUntil"&&r("../otp",void 0,{value:g.values.value})})};T.useEffect(()=>{n!=null&&n.value&&g.setFieldValue(Ns.Fields.value,n.value)},[n==null?void 0:n.value]);const w=v=>{var C,E;v.data.item.session?o(v):(C=v.data.item.next)!=null&&C.includes("enter-totp")?r(`/${i}/selfservice/totp-enter`,void 0,{value:g.values.value,password:g.values.password}):(E=v.data.item.next)!=null&&E.includes("setup-totp")&&r(`/${i}/selfservice/totp-setup`,void 0,{totpUrl:v.data.item.totpUrl,forcedTotp:!0,password:g.values.password,value:n==null?void 0:n.value})};return{mutation:u,otpEnabled:l,continueWithOtp:y,form:g,submit:h,goBack:e,s:t}},jX=({})=>{const{goBack:t,mutation:e,form:n,continueWithOtp:r,otpEnabled:i,s:o}=UX();return N.jsxs("div",{className:"signin-form-container",children:[N.jsx("h1",{children:o.enterPassword}),N.jsx("p",{children:o.enterPasswordDescription}),N.jsx(Wo,{query:e}),N.jsx(BX,{form:n,mutation:e,continueWithOtp:r,otpEnabled:i}),N.jsx("button",{id:"go-back-button",onClick:t,className:"btn bg-transparent w-100 mt-4",children:o.anotherAccount})]})},BX=({form:t,mutation:e,otpEnabled:n,continueWithOtp:r})=>{const i=Kn($r),o=!t.values.value||!t.values.password;return N.jsxs("form",{onSubmit:u=>{u.preventDefault(),t.submitForm()},children:[N.jsx(Bo,{type:"password",value:t.values.password,label:i.password,id:"password-input",autoFocus:!0,errorMessage:t.errors.password,onChange:u=>t.setFieldValue(Ns.Fields.password,u,!1)}),N.jsx(Uf,{className:"btn btn-primary w-100 d-block mb-2",mutation:e,id:"submit-form",disabled:o,children:i.continue}),n&&N.jsx("button",{onClick:r,className:"bg-transparent border-0 mt-3 mb-3",children:i.useOneTimePassword})]})};var E1;function wr(t,e){if(!{}.hasOwnProperty.call(t,e))throw new TypeError("attempted to use private field on non-instance");return t}var qX=0;function Kf(t){return"__private_"+qX+++"_"+t}const HX=t=>{const e=oo(),n=(t==null?void 0:t.ctx)??e??void 0,[r,i]=T.useState(!1),[o,u]=T.useState();return{...Fr({mutationFn:h=>(i(!1),Yf.Fetch({body:h,headers:t==null?void 0:t.headers},{creatorFn:t==null?void 0:t.creatorFn,qs:t==null?void 0:t.qs,ctx:n,onMessage:t==null?void 0:t.onMessage,overrideUrl:t==null?void 0:t.overrideUrl}).then(g=>(g.done.then(()=>{i(!0)}),u(g.response),g.response.result))),...t||{}}),isCompleted:r,response:o}};class Yf{}E1=Yf;Yf.URL="/workspace/passport/otp";Yf.NewUrl=t=>so(E1.URL,void 0,t);Yf.Method="post";Yf.Fetch$=async(t,e,n,r)=>io(r??E1.NewUrl(t),{method:E1.Method,...n||{}},e);Yf.Fetch=async(t,{creatorFn:e,qs:n,ctx:r,onMessage:i,overrideUrl:o}={creatorFn:u=>new kp(u)})=>{e=e||(l=>new kp(l));const u=await E1.Fetch$(n,r,t,o);return ao(u,l=>{const d=new _a;return e&&d.setCreator(e),d.inject(l),d},i,t==null?void 0:t.signal)};Yf.Definition={name:"ClassicPassportOtp",cliName:"otp",url:"/workspace/passport/otp",method:"post",description:"Authenticate the user publicly for classic methods using communication service, such as sms, call, or email. You need to call classicPassportRequestOtp beforehand to send a otp code, and then validate it with this API. Also checkClassicPassport action might already sent the otp, so make sure you don't send it twice.",in:{fields:[{name:"value",type:"string",tags:{validate:"required"}},{name:"otp",type:"string",tags:{validate:"required"}}]},out:{envelope:"GResponse",fields:[{name:"session",description:"Upon successful authentication, there will be a session dto generated, which is a ground information of authorized user and can be stored in front-end.",type:"one?",target:"UserSessionDto"},{name:"totpUrl",description:"If time based otp is available, we add it response to make it easier for ui.",type:"string"},{name:"sessionSecret",description:"The session secret will be used to call complete user registration api.",type:"string"},{name:"continueWithCreation",description:"If return true, means the OTP is correct and user needs to be created before continue the authentication process.",type:"bool"}]}};var cp=Kf("value"),fp=Kf("otp"),s$=Kf("isJsonAppliable");class Mp{get value(){return wr(this,cp)[cp]}set value(e){wr(this,cp)[cp]=String(e)}setValue(e){return this.value=e,this}get otp(){return wr(this,fp)[fp]}set otp(e){wr(this,fp)[fp]=String(e)}setOtp(e){return this.otp=e,this}constructor(e=void 0){if(Object.defineProperty(this,s$,{value:zX}),Object.defineProperty(this,cp,{writable:!0,value:""}),Object.defineProperty(this,fp,{writable:!0,value:""}),e!=null)if(typeof e=="string")this.applyFromObject(JSON.parse(e));else if(wr(this,s$)[s$](e))this.applyFromObject(e);else throw new Error("Instance cannot be created on an unknown value, check the content being passed. got: "+typeof e)}applyFromObject(e={}){const n=e;n.value!==void 0&&(this.value=n.value),n.otp!==void 0&&(this.otp=n.otp)}toJSON(){return{value:wr(this,cp)[cp],otp:wr(this,fp)[fp]}}toString(){return JSON.stringify(this)}static get Fields(){return{value:"value",otp:"otp"}}static from(e){return new Mp(e)}static with(e){return new Mp(e)}copyWith(e){return new Mp({...this.toJSON(),...e})}clone(){return new Mp(this.toJSON())}}function zX(t){const e=globalThis,n=typeof e.Buffer<"u"&&typeof e.Buffer.isBuffer=="function"&&e.Buffer.isBuffer(t),r=typeof e.Blob<"u"&&t instanceof e.Blob;return t&&typeof t=="object"&&!Array.isArray(t)&&!n&&!(t instanceof ArrayBuffer)&&!r}var ml=Kf("session"),dp=Kf("totpUrl"),hp=Kf("sessionSecret"),pp=Kf("continueWithCreation"),u$=Kf("isJsonAppliable");class kp{get session(){return wr(this,ml)[ml]}set session(e){e instanceof Nn?wr(this,ml)[ml]=e:wr(this,ml)[ml]=new Nn(e)}setSession(e){return this.session=e,this}get totpUrl(){return wr(this,dp)[dp]}set totpUrl(e){wr(this,dp)[dp]=String(e)}setTotpUrl(e){return this.totpUrl=e,this}get sessionSecret(){return wr(this,hp)[hp]}set sessionSecret(e){wr(this,hp)[hp]=String(e)}setSessionSecret(e){return this.sessionSecret=e,this}get continueWithCreation(){return wr(this,pp)[pp]}set continueWithCreation(e){wr(this,pp)[pp]=!!e}setContinueWithCreation(e){return this.continueWithCreation=e,this}constructor(e=void 0){if(Object.defineProperty(this,u$,{value:VX}),Object.defineProperty(this,ml,{writable:!0,value:void 0}),Object.defineProperty(this,dp,{writable:!0,value:""}),Object.defineProperty(this,hp,{writable:!0,value:""}),Object.defineProperty(this,pp,{writable:!0,value:void 0}),e!=null)if(typeof e=="string")this.applyFromObject(JSON.parse(e));else if(wr(this,u$)[u$](e))this.applyFromObject(e);else throw new Error("Instance cannot be created on an unknown value, check the content being passed. got: "+typeof e)}applyFromObject(e={}){const n=e;n.session!==void 0&&(this.session=n.session),n.totpUrl!==void 0&&(this.totpUrl=n.totpUrl),n.sessionSecret!==void 0&&(this.sessionSecret=n.sessionSecret),n.continueWithCreation!==void 0&&(this.continueWithCreation=n.continueWithCreation)}toJSON(){return{session:wr(this,ml)[ml],totpUrl:wr(this,dp)[dp],sessionSecret:wr(this,hp)[hp],continueWithCreation:wr(this,pp)[pp]}}toString(){return JSON.stringify(this)}static get Fields(){return{session:"session",totpUrl:"totpUrl",sessionSecret:"sessionSecret",continueWithCreation:"continueWithCreation"}}static from(e){return new kp(e)}static with(e){return new kp(e)}copyWith(e){return new kp({...this.toJSON(),...e})}clone(){return new kp(this.toJSON())}}function VX(t){const e=globalThis,n=typeof e.Buffer<"u"&&typeof e.Buffer.isBuffer=="function"&&e.Buffer.isBuffer(t),r=typeof e.Blob<"u"&&t instanceof e.Blob;return t&&typeof t=="object"&&!Array.isArray(t)&&!n&&!(t instanceof ArrayBuffer)&&!r}const GX=()=>{const{goBack:t,state:e,replace:n,push:r}=Lr(),{locale:i}=$i(),o=Kn($r),u=HX({}),{onComplete:l}=V1(),d=y=>{u.mutateAsync(new Mp({...y,value:e.value})).then(g).catch(w=>{h==null||h.setErrors(fy(w))})},h=Dl({initialValues:{},onSubmit:d}),g=y=>{var w,v,C,E,$;(w=y.data)!=null&&w.item.session?l(y):(C=(v=y.data)==null?void 0:v.item)!=null&&C.continueWithCreation&&r(`/${i}/selfservice/complete`,void 0,{value:e.value,type:e.type,sessionSecret:(E=y.data.item)==null?void 0:E.sessionSecret,totpUrl:($=y.data.item)==null?void 0:$.totpUrl})};return{mutation:u,form:h,s:o,submit:d,goBack:t}},WX=({})=>{const{goBack:t,mutation:e,form:n,s:r}=GX();return N.jsxs("div",{className:"signin-form-container",children:[N.jsx("h1",{children:r.enterOtp}),N.jsx("p",{children:r.enterOtpDescription}),N.jsx(Wo,{query:e}),N.jsx(KX,{form:n,mutation:e}),N.jsx("button",{id:"go-back-button",className:"btn bg-transparent w-100 mt-4",onClick:t,children:r.anotherAccount})]})},KX=({form:t,mutation:e})=>{var i;const n=!t.values.otp,r=Kn($r);return N.jsxs("form",{onSubmit:o=>{o.preventDefault(),t.submitForm()},children:[N.jsx(G1,{values:(i=t.values.otp)==null?void 0:i.split(""),onChange:o=>t.setFieldValue(Mp.Fields.otp,o,!1),className:"otp-react-code-input"}),N.jsx(Uf,{className:"btn btn-primary w-100 d-block mb-2",mutation:e,id:"submit-form",disabled:n,children:r.continue})]})};function K1(t){const e=T.useRef(),n=kf();T.useEffect(()=>{var h;t!=null&&t.data&&((h=e.current)==null||h.setValues(t.data))},[t==null?void 0:t.data]);const r=Lr(),i=r.query.uniqueId,o=r.query.linkerId,u=!!i,{locale:l}=$i(),d=yn();return{router:r,t:d,isEditing:u,locale:l,queryClient:n,formik:e,uniqueId:i,linkerId:o}}function YX(t,e){var r,i;let n=!1;for(const o of((r=t==null?void 0:t.role)==null?void 0:r.capabilities)||[])if(o.uniqueId===e||o.uniqueId==="root.*"||(i=o==null?void 0:o.uniqueId)!=null&&i.endsWith(".*")&&e.includes(o.uniqueId.replace("*",""))){n=!0;break}return n}function VN(t){for(var e=[],n=t.length,r,i=0;i>>0,e.push(String.fromCharCode(r));return e.join("")}function JX(t,e,n,r,i){var o=new XMLHttpRequest;o.open(e,t),o.addEventListener("load",function(){var u=VN(this.responseText);u="data:application/text;base64,"+btoa(u),document.location=u},!1),o.setRequestHeader("Authorization",n),o.setRequestHeader("Workspace-Id",r),o.setRequestHeader("role-Id",i),o.overrideMimeType("application/octet-stream; charset=x-user-defined;"),o.send(null)}const QX=({path:t})=>{yn();const{options:e}=T.useContext(Sn);KN(t?()=>{const n=e==null?void 0:e.headers;JX(e.prefix+""+t,"GET",n.authorization||"",n["workspace-id"]||"",n["role-id"]||"")}:void 0,Bn.ExportTable)};function Y1(t,e){const n={[Bn.NewEntity]:"n",[Bn.NewChildEntity]:"n",[Bn.EditEntity]:"e",[Bn.SidebarToggle]:"m",[Bn.ViewQuestions]:"q",[Bn.Delete]:"Backspace",[Bn.StopStart]:" ",[Bn.ExportTable]:"x",[Bn.CommonBack]:"Escape",[Bn.Select1Index]:"1",[Bn.Select2Index]:"2",[Bn.Select3Index]:"3",[Bn.Select4Index]:"4",[Bn.Select5Index]:"5",[Bn.Select6Index]:"6",[Bn.Select7Index]:"7",[Bn.Select8Index]:"8",[Bn.Select9Index]:"9"};let r;return typeof t=="object"?r=t.map(i=>n[i]):typeof t=="string"&&(r=n[t]),XX(r,e)}function XX(t,e){T.useEffect(()=>{if(!t||t.length===0||!e)return;function n(r){var i=r||window.event,o=i.target||i.srcElement;const u=o.tagName.toUpperCase(),l=o.type;if(["TEXTAREA","SELECT"].includes(u)){r.key==="Escape"&&i.target.blur();return}if(u==="INPUT"&&(l==="text"||l==="password")){r.key==="Escape"&&i.target.blur();return}let d=!1;typeof t=="string"&&r.key===t?d=!0:Array.isArray(t)&&(d=t.includes(r.key)),d&&e&&e(r.key)}if(e)return window.addEventListener("keyup",n),()=>{window.removeEventListener("keyup",n)}},[e,t])}const GN=Ae.createContext({setActionMenu(){},removeActionMenu(){},removeActionMenuItems(t,e){},refs:[]});function ZX(){const t=T.useContext(GN);return{addActions:(i,o)=>(t.setActionMenu(i,o),()=>t.removeActionMenu(i)),removeActionMenu:i=>{t.removeActionMenu(i)},deleteActions:(i,o)=>{t.removeActionMenuItems(i,o)}}}function J1(t,e,n,r){const i=T.useContext(GN);return T.useEffect(()=>(i.setActionMenu(t,e.filter(o=>o!==void 0)),()=>{i.removeActionMenu(t)}),[]),{addActions(o,u=t){i.setActionMenu(u,o)},deleteActions(o,u=t){i.removeActionMenuItems(u,o)}}}function eZ({onCancel:t,onSave:e,access:n}){const{selectedUrw:r}=T.useContext(Sn),i=T.useMemo(()=>n?(r==null?void 0:r.workspaceId)!=="root"&&(n!=null&&n.onlyRoot)?!1:!(n!=null&&n.permissions)||n.permissions.length===0?!0:YX(r,n.permissions[0]):!0,[r,n]),o=yn();J1("editing-core",(({onSave:l,onCancel:d})=>i?[{icon:"",label:o.common.save,uniqueActionKey:"save",onSelect:()=>{l()}},d&&{icon:"",label:o.common.cancel,uniqueActionKey:"cancel",onSelect:()=>{d()}}]:[])({onCancel:t,onSave:e}))}function tZ(t,e){const n=yn();Y1(e,t),J1("commonEntityActions",[t&&{icon:hy.add,label:n.actions.new,uniqueActionKey:"new",onSelect:t}])}function WN(t,e){const n=yn();Y1(e,t),J1("navigation",[t&&{icon:hy.left,label:n.actions.back,uniqueActionKey:"back",className:"navigator-back-button",onSelect:t}])}function nZ(){const{session:t,options:e}=T.useContext(Sn);KN(()=>{var n=new XMLHttpRequest;n.open("GET",e.prefix+"roles/export"),n.addEventListener("load",function(){var i=VN(this.responseText);i="data:application/text;base64,"+btoa(i),document.location=i},!1);const r=e==null?void 0:e.headers;n.setRequestHeader("Authorization",r.authorization||""),n.setRequestHeader("Workspace-Id",r["workspace-id"]||""),n.setRequestHeader("role-Id",r["role-id"]||""),n.overrideMimeType("application/octet-stream; charset=x-user-defined;"),n.send(null)},Bn.ExportTable)}function KN(t,e){const n=yn();Y1(e,t),J1("exportTools",[t&&{icon:hy.export,label:n.actions.new,uniqueActionKey:"export",onSelect:t}])}function rZ(t,e){const n=yn();Y1(e,t),J1("commonEntityActions",[t&&{icon:hy.edit,label:n.actions.edit,uniqueActionKey:"new",onSelect:t}])}const iZ=Ae.createContext({setPageTitle(){},removePageTitle(){},ref:{title:""}});function YN(t){const e=T.useContext(iZ);T.useEffect(()=>(e.setPageTitle(t||""),()=>{e.removePageTitle("")}),[t])}const JO=({data:t,Form:e,getSingleHook:n,postHook:r,onCancel:i,onFinishUriResolver:o,disableOnGetFailed:u,patchHook:l,onCreateTitle:d,onEditTitle:h,setInnerRef:g,beforeSetValues:y,forceEdit:w,onlyOnRoot:v,customClass:C,beforeSubmit:E,onSuccessPatchOrPost:$})=>{var te,be,we;const[O,_]=T.useState(),{router:R,isEditing:k,locale:P,formik:L,t:F}=K1({data:t}),q=T.useRef({});WN(i,Bn.CommonBack);const{selectedUrw:Y}=T.useContext(Sn);YN((k||w?h:d)||"");const{query:X}=n;T.useEffect(()=>{var B,V,H;(B=X.data)!=null&&B.data&&((V=L.current)==null||V.setValues(y?y({...X.data.data}):{...X.data.data}),_((H=X.data)==null?void 0:H.data))},[X.data]),T.useEffect(()=>{var B;(B=L.current)==null||B.setSubmitting((r==null?void 0:r.mutation.isLoading)||(l==null?void 0:l.mutation.isLoading))},[r==null?void 0:r.isLoading,l==null?void 0:l.isLoading]);const ue=(B,V)=>{let H=q.current;H.uniqueId=B.uniqueId,E&&(H=E(H)),(k||w?l==null?void 0:l.submit(H,V):r==null?void 0:r.submit(H,V)).then(G=>{var Q;(Q=G.data)!=null&&Q.uniqueId&&($?$(G):o?R.goBackOrDefault(o(G,P)):TV("Done",{type:"success"}))}).catch(G=>void 0)},me=((te=n==null?void 0:n.query)==null?void 0:te.isLoading)||!1||((be=r==null?void 0:r.query)==null?void 0:be.isLoading)||!1||((we=l==null?void 0:l.query)==null?void 0:we.isLoading)||!1;return eZ({onSave(){var B;(B=L.current)==null||B.submitForm()}}),v&&Y.workspaceId!=="root"?N.jsx("div",{children:F.onlyOnRoot}):N.jsx(JB,{innerRef:B=>{B&&(L.current=B,g&&g(B))},initialValues:{},onSubmit:ue,children:B=>{var V,H,ie,G;return N.jsx("form",{onSubmit:Q=>{Q.preventDefault(),B.submitForm()},className:C??"headless-form-entity-manager",children:N.jsxs("fieldset",{disabled:me,children:[N.jsx("div",{style:{marginBottom:"15px"},children:N.jsx(Wo,{query:(V=r==null?void 0:r.mutation)!=null&&V.isError?r.mutation:(H=l==null?void 0:l.mutation)!=null&&H.isError?l.mutation:(ie=n==null?void 0:n.query)!=null&&ie.isError?n.query:null})}),u===!0&&((G=n==null?void 0:n.query)!=null&&G.isError)?null:N.jsx(e,{isEditing:k,initialData:O,form:{...B,setValues:(Q,he)=>{for(const $e in Q)Sr.set(q.current,$e,Q[$e]);return B.setValues(Q)},setFieldValue:(Q,he,$e)=>(Sr.set(q.current,Q,he),B.setFieldValue(Q,he,$e))}}),N.jsx("button",{type:"submit",className:"d-none"})]})})}})};function JN({queryOptions:t,execFnOverride:e,query:n,queryClient:r,unauthorized:i}){var $;const{options:o,execFn:u}=T.useContext(Sn),l=e?e(o):u?u(o):Qr(o);let h=`${"/public-join-key/:uniqueId".substr(1)}?${new URLSearchParams(Ta(n)).toString()}`,g=!0;h=h.replace(":uniqueId",n[":uniqueId".replace(":","")]),n[":uniqueId".replace(":","")]===void 0&&(g=!1);const y=()=>l("GET",h),w=($=o==null?void 0:o.headers)==null?void 0:$.authorization,v=w!="undefined"&&w!=null&&w!=null&&w!="null"&&!!w;let C=!0;return g?!v&&!i&&(C=!1):C=!1,{query:Go([o,n,"*abac.PublicJoinKeyEntity"],y,{cacheTime:1001,retry:!1,keepPreviousData:!0,enabled:C,...t||{}})}}function aZ(t){let{queryClient:e,query:n,execFnOverride:r}=t||{};n=n||{};const{options:i,execFn:o}=T.useContext(Sn),u=r?r(i):o?o(i):Qr(i);let d=`${"/public-join-key".substr(1)}?${new URLSearchParams(Ta(n)).toString()}`;const g=Fr(v=>u("PATCH",d,v)),y=(v,C)=>{var E;return v?(v.data&&(C!=null&&C.data)&&(v.data.items=[C.data,...((E=v==null?void 0:v.data)==null?void 0:E.items)||[]]),v):{data:{items:[]}}};return{mutation:g,submit:(v,C)=>new Promise((E,$)=>{g.mutate(v,{onSuccess(O){e==null||e.setQueriesData("*abac.PublicJoinKeyEntity",_=>y(_,O)),E(O)},onError(O){C==null||C.setErrors(Ru(O)),$(O)}})}),fnUpdater:y}}function oZ(t){let{queryClient:e,query:n,execFnOverride:r}=t||{};n=n||{};const{options:i,execFn:o}=T.useContext(Sn),u=r?r(i):o?o(i):Qr(i);let d=`${"/public-join-key".substr(1)}?${new URLSearchParams(Ta(n)).toString()}`;const g=Fr(v=>u("POST",d,v)),y=(v,C)=>{var E;return v?(v.data&&(C!=null&&C.data)&&(v.data.items=[C.data,...((E=v==null?void 0:v.data)==null?void 0:E.items)||[]]),v):{data:{items:[]}}};return{mutation:g,submit:(v,C)=>new Promise((E,$)=>{g.mutate(v,{onSuccess(O){e==null||e.setQueryData("*abac.PublicJoinKeyEntity",_=>y(_,O)),E(O)},onError(O){C==null||C.setErrors(Ru(O)),$(O)}})}),fnUpdater:y}}function Jp(t){"@babel/helpers - typeof";return Jp=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Jp(t)}function sZ(t,e){if(Jp(t)!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var r=n.call(t,e);if(Jp(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function QN(t){var e=sZ(t,"string");return Jp(e)=="symbol"?e:String(e)}function Lg(t,e,n){return e=QN(e),e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function n6(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),n.push.apply(n,r)}return n}function ct(t){for(var e=1;et.length)&&(e=t.length);for(var n=0,r=new Array(e);n0?Si(py,--Oa):0,ty--,_r===10&&(ty=1,zS--),_r}function ro(){return _r=Oa2||O1(_r)>3?"":" "}function AZ(t,e){for(;--e&&ro()&&!(_r<48||_r>102||_r>57&&_r<65||_r>70&&_r<97););return Q1(t,Tw()+(e<6&&Ou()==32&&ro()==32))}function Nx(t){for(;ro();)switch(_r){case t:return Oa;case 34:case 39:t!==34&&t!==39&&Nx(_r);break;case 40:t===41&&Nx(t);break;case 92:ro();break}return Oa}function RZ(t,e){for(;ro()&&t+_r!==57;)if(t+_r===84&&Ou()===47)break;return"/*"+Q1(e,Oa-1)+"*"+HS(t===47?t:ro())}function PZ(t){for(;!O1(Ou());)ro();return Q1(t,Oa)}function IZ(t){return a7(Aw("",null,null,null,[""],t=i7(t),0,[0],t))}function Aw(t,e,n,r,i,o,u,l,d){for(var h=0,g=0,y=u,w=0,v=0,C=0,E=1,$=1,O=1,_=0,R="",k=i,P=o,L=r,F=R;$;)switch(C=_,_=ro()){case 40:if(C!=108&&Si(F,y-1)==58){Ix(F+=bn(_w(_),"&","&\f"),"&\f")!=-1&&(O=-1);break}case 34:case 39:case 91:F+=_w(_);break;case 9:case 10:case 13:case 32:F+=_Z(C);break;case 92:F+=AZ(Tw()-1,7);continue;case 47:switch(Ou()){case 42:case 47:iw(NZ(RZ(ro(),Tw()),e,n),d);break;default:F+="/"}break;case 123*E:l[h++]=Su(F)*O;case 125*E:case 59:case 0:switch(_){case 0:case 125:$=0;case 59+g:O==-1&&(F=bn(F,/\f/g,"")),v>0&&Su(F)-y&&iw(v>32?a6(F+";",r,n,y-1):a6(bn(F," ","")+";",r,n,y-2),d);break;case 59:F+=";";default:if(iw(L=i6(F,e,n,h,g,i,l,R,k=[],P=[],y),o),_===123)if(g===0)Aw(F,e,L,L,k,o,y,l,P);else switch(w===99&&Si(F,3)===110?100:w){case 100:case 108:case 109:case 115:Aw(t,L,L,r&&iw(i6(t,L,L,0,0,i,l,R,i,k=[],y),P),i,P,y,l,r?k:P);break;default:Aw(F,L,L,L,[""],P,0,l,P)}}h=g=v=0,E=O=1,R=F="",y=u;break;case 58:y=1+Su(F),v=C;default:if(E<1){if(_==123)--E;else if(_==125&&E++==0&&TZ()==125)continue}switch(F+=HS(_),_*E){case 38:O=g>0?1:(F+="\f",-1);break;case 44:l[h++]=(Su(F)-1)*O,O=1;break;case 64:Ou()===45&&(F+=_w(ro())),w=Ou(),g=y=Su(R=F+=PZ(Tw())),_++;break;case 45:C===45&&Su(F)==2&&(E=0)}}return o}function i6(t,e,n,r,i,o,u,l,d,h,g){for(var y=i-1,w=i===0?o:[""],v=eT(w),C=0,E=0,$=0;C0?w[O]+" "+_:bn(_,/&\f/g,w[O])))&&(d[$++]=R);return VS(t,e,n,i===0?XO:l,d,h,g)}function NZ(t,e,n){return VS(t,e,n,e7,HS(OZ()),x1(t,2,-2),0)}function a6(t,e,n,r){return VS(t,e,n,ZO,x1(t,0,r),x1(t,r+1,-1),r)}function Jg(t,e){for(var n="",r=eT(t),i=0;i6)switch(Si(t,e+1)){case 109:if(Si(t,e+4)!==45)break;case 102:return bn(t,/(.+:)(.+)-([^]+)/,"$1"+vn+"$2-$3$1"+rS+(Si(t,e+3)==108?"$3":"$2-$3"))+t;case 115:return~Ix(t,"stretch")?o7(bn(t,"stretch","fill-available"),e)+t:t}break;case 4949:if(Si(t,e+1)!==115)break;case 6444:switch(Si(t,Su(t)-3-(~Ix(t,"!important")&&10))){case 107:return bn(t,":",":"+vn)+t;case 101:return bn(t,/(.+:)([^;!]+)(;|!.+)?/,"$1"+vn+(Si(t,14)===45?"inline-":"")+"box$3$1"+vn+"$2$3$1"+Ni+"$2box$3")+t}break;case 5936:switch(Si(t,e+11)){case 114:return vn+t+Ni+bn(t,/[svh]\w+-[tblr]{2}/,"tb")+t;case 108:return vn+t+Ni+bn(t,/[svh]\w+-[tblr]{2}/,"tb-rl")+t;case 45:return vn+t+Ni+bn(t,/[svh]\w+-[tblr]{2}/,"lr")+t}return vn+t+Ni+t+t}return t}var qZ=function(e,n,r,i){if(e.length>-1&&!e.return)switch(e.type){case ZO:e.return=o7(e.value,e.length);break;case t7:return Jg([P0(e,{value:bn(e.value,"@","@"+vn)})],i);case XO:if(e.length)return xZ(e.props,function(o){switch(EZ(o,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return Jg([P0(e,{props:[bn(o,/:(read-\w+)/,":"+rS+"$1")]})],i);case"::placeholder":return Jg([P0(e,{props:[bn(o,/:(plac\w+)/,":"+vn+"input-$1")]}),P0(e,{props:[bn(o,/:(plac\w+)/,":"+rS+"$1")]}),P0(e,{props:[bn(o,/:(plac\w+)/,Ni+"input-$1")]})],i)}return""})}},HZ=[qZ],zZ=function(e){var n=e.key;if(n==="css"){var r=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(r,function(E){var $=E.getAttribute("data-emotion");$.indexOf(" ")!==-1&&(document.head.appendChild(E),E.setAttribute("data-s",""))})}var i=e.stylisPlugins||HZ,o={},u,l=[];u=e.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+n+' "]'),function(E){for(var $=E.getAttribute("data-emotion").split(" "),O=1;O<$.length;O++)o[$[O]]=!0;l.push(E)});var d,h=[jZ,BZ];{var g,y=[MZ,DZ(function(E){g.insert(E)})],w=kZ(h.concat(i,y)),v=function($){return Jg(IZ($),w)};d=function($,O,_,R){g=_,v($?$+"{"+O.styles+"}":O.styles),R&&(C.inserted[O.name]=!0)}}var C={key:n,sheet:new vZ({key:n,container:u,nonce:e.nonce,speedy:e.speedy,prepend:e.prepend,insertionPoint:e.insertionPoint}),nonce:e.nonce,inserted:o,registered:{},insert:d};return C.sheet.hydrate(l),C},VZ=!0;function GZ(t,e,n){var r="";return n.split(" ").forEach(function(i){t[i]!==void 0?e.push(t[i]+";"):r+=i+" "}),r}var s7=function(e,n,r){var i=e.key+"-"+n.name;(r===!1||VZ===!1)&&e.registered[i]===void 0&&(e.registered[i]=n.styles)},WZ=function(e,n,r){s7(e,n,r);var i=e.key+"-"+n.name;if(e.inserted[n.name]===void 0){var o=n;do e.insert(n===o?"."+i:"",o,e.sheet,!0),o=o.next;while(o!==void 0)}};function KZ(t){for(var e=0,n,r=0,i=t.length;i>=4;++r,i-=4)n=t.charCodeAt(r)&255|(t.charCodeAt(++r)&255)<<8|(t.charCodeAt(++r)&255)<<16|(t.charCodeAt(++r)&255)<<24,n=(n&65535)*1540483477+((n>>>16)*59797<<16),n^=n>>>24,e=(n&65535)*1540483477+((n>>>16)*59797<<16)^(e&65535)*1540483477+((e>>>16)*59797<<16);switch(i){case 3:e^=(t.charCodeAt(r+2)&255)<<16;case 2:e^=(t.charCodeAt(r+1)&255)<<8;case 1:e^=t.charCodeAt(r)&255,e=(e&65535)*1540483477+((e>>>16)*59797<<16)}return e^=e>>>13,e=(e&65535)*1540483477+((e>>>16)*59797<<16),((e^e>>>15)>>>0).toString(36)}var YZ={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1};function JZ(t){var e=Object.create(null);return function(n){return e[n]===void 0&&(e[n]=t(n)),e[n]}}var QZ=/[A-Z]|^ms/g,XZ=/_EMO_([^_]+?)_([^]*?)_EMO_/g,u7=function(e){return e.charCodeAt(1)===45},s6=function(e){return e!=null&&typeof e!="boolean"},l$=JZ(function(t){return u7(t)?t:t.replace(QZ,"-$&").toLowerCase()}),u6=function(e,n){switch(e){case"animation":case"animationName":if(typeof n=="string")return n.replace(XZ,function(r,i,o){return Cu={name:i,styles:o,next:Cu},i})}return YZ[e]!==1&&!u7(e)&&typeof n=="number"&&n!==0?n+"px":n};function T1(t,e,n){if(n==null)return"";if(n.__emotion_styles!==void 0)return n;switch(typeof n){case"boolean":return"";case"object":{if(n.anim===1)return Cu={name:n.name,styles:n.styles,next:Cu},n.name;if(n.styles!==void 0){var r=n.next;if(r!==void 0)for(;r!==void 0;)Cu={name:r.name,styles:r.styles,next:Cu},r=r.next;var i=n.styles+";";return i}return ZZ(t,e,n)}case"function":{if(t!==void 0){var o=Cu,u=n(t);return Cu=o,T1(t,e,u)}break}}return n}function ZZ(t,e,n){var r="";if(Array.isArray(n))for(var i=0;i=0)&&(n[i]=t[i]);return n}function Iu(t,e){if(t==null)return{};var n=hee(t,e),r,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(i=0;i=0)&&Object.prototype.propertyIsEnumerable.call(t,r)&&(n[r]=t[r])}return n}function pee(t,e){return e||(e=t.slice(0)),Object.freeze(Object.defineProperties(t,{raw:{value:Object.freeze(e)}}))}const mee=Math.min,gee=Math.max,iS=Math.round,aw=Math.floor,aS=t=>({x:t,y:t});function yee(t){return{...t,top:t.y,left:t.x,right:t.x+t.width,bottom:t.y+t.height}}function f7(t){return h7(t)?(t.nodeName||"").toLowerCase():"#document"}function Al(t){var e;return(t==null||(e=t.ownerDocument)==null?void 0:e.defaultView)||window}function d7(t){var e;return(e=(h7(t)?t.ownerDocument:t.document)||window.document)==null?void 0:e.documentElement}function h7(t){return t instanceof Node||t instanceof Al(t).Node}function vee(t){return t instanceof Element||t instanceof Al(t).Element}function rT(t){return t instanceof HTMLElement||t instanceof Al(t).HTMLElement}function c6(t){return typeof ShadowRoot>"u"?!1:t instanceof ShadowRoot||t instanceof Al(t).ShadowRoot}function p7(t){const{overflow:e,overflowX:n,overflowY:r,display:i}=iT(t);return/auto|scroll|overlay|hidden|clip/.test(e+r+n)&&!["inline","contents"].includes(i)}function bee(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function wee(t){return["html","body","#document"].includes(f7(t))}function iT(t){return Al(t).getComputedStyle(t)}function See(t){if(f7(t)==="html")return t;const e=t.assignedSlot||t.parentNode||c6(t)&&t.host||d7(t);return c6(e)?e.host:e}function m7(t){const e=See(t);return wee(e)?t.ownerDocument?t.ownerDocument.body:t.body:rT(e)&&p7(e)?e:m7(e)}function oS(t,e,n){var r;e===void 0&&(e=[]),n===void 0&&(n=!0);const i=m7(t),o=i===((r=t.ownerDocument)==null?void 0:r.body),u=Al(i);return o?e.concat(u,u.visualViewport||[],p7(i)?i:[],u.frameElement&&n?oS(u.frameElement):[]):e.concat(i,oS(i,[],n))}function Cee(t){const e=iT(t);let n=parseFloat(e.width)||0,r=parseFloat(e.height)||0;const i=rT(t),o=i?t.offsetWidth:n,u=i?t.offsetHeight:r,l=iS(n)!==o||iS(r)!==u;return l&&(n=o,r=u),{width:n,height:r,$:l}}function aT(t){return vee(t)?t:t.contextElement}function f6(t){const e=aT(t);if(!rT(e))return aS(1);const n=e.getBoundingClientRect(),{width:r,height:i,$:o}=Cee(e);let u=(o?iS(n.width):n.width)/r,l=(o?iS(n.height):n.height)/i;return(!u||!Number.isFinite(u))&&(u=1),(!l||!Number.isFinite(l))&&(l=1),{x:u,y:l}}const $ee=aS(0);function Eee(t){const e=Al(t);return!bee()||!e.visualViewport?$ee:{x:e.visualViewport.offsetLeft,y:e.visualViewport.offsetTop}}function xee(t,e,n){return!1}function d6(t,e,n,r){e===void 0&&(e=!1);const i=t.getBoundingClientRect(),o=aT(t);let u=aS(1);e&&(u=f6(t));const l=xee()?Eee(o):aS(0);let d=(i.left+l.x)/u.x,h=(i.top+l.y)/u.y,g=i.width/u.x,y=i.height/u.y;if(o){const w=Al(o),v=r;let C=w,E=C.frameElement;for(;E&&r&&v!==C;){const $=f6(E),O=E.getBoundingClientRect(),_=iT(E),R=O.left+(E.clientLeft+parseFloat(_.paddingLeft))*$.x,k=O.top+(E.clientTop+parseFloat(_.paddingTop))*$.y;d*=$.x,h*=$.y,g*=$.x,y*=$.y,d+=R,h+=k,C=Al(E),E=C.frameElement}}return yee({width:g,height:y,x:d,y:h})}function Oee(t,e){let n=null,r;const i=d7(t);function o(){var l;clearTimeout(r),(l=n)==null||l.disconnect(),n=null}function u(l,d){l===void 0&&(l=!1),d===void 0&&(d=1),o();const{left:h,top:g,width:y,height:w}=t.getBoundingClientRect();if(l||e(),!y||!w)return;const v=aw(g),C=aw(i.clientWidth-(h+y)),E=aw(i.clientHeight-(g+w)),$=aw(h),_={rootMargin:-v+"px "+-C+"px "+-E+"px "+-$+"px",threshold:gee(0,mee(1,d))||1};let R=!0;function k(P){const L=P[0].intersectionRatio;if(L!==d){if(!R)return u();L?u(!1,L):r=setTimeout(()=>{u(!1,1e-7)},100)}R=!1}try{n=new IntersectionObserver(k,{..._,root:i.ownerDocument})}catch{n=new IntersectionObserver(k,_)}n.observe(t)}return u(!0),o}function Tee(t,e,n,r){r===void 0&&(r={});const{ancestorScroll:i=!0,ancestorResize:o=!0,elementResize:u=typeof ResizeObserver=="function",layoutShift:l=typeof IntersectionObserver=="function",animationFrame:d=!1}=r,h=aT(t),g=i||o?[...h?oS(h):[],...oS(e)]:[];g.forEach(O=>{i&&O.addEventListener("scroll",n,{passive:!0}),o&&O.addEventListener("resize",n)});const y=h&&l?Oee(h,n):null;let w=-1,v=null;u&&(v=new ResizeObserver(O=>{let[_]=O;_&&_.target===h&&v&&(v.unobserve(e),cancelAnimationFrame(w),w=requestAnimationFrame(()=>{var R;(R=v)==null||R.observe(e)})),n()}),h&&!d&&v.observe(h),v.observe(e));let C,E=d?d6(t):null;d&&$();function $(){const O=d6(t);E&&(O.x!==E.x||O.y!==E.y||O.width!==E.width||O.height!==E.height)&&n(),E=O,C=requestAnimationFrame($)}return n(),()=>{var O;g.forEach(_=>{i&&_.removeEventListener("scroll",n),o&&_.removeEventListener("resize",n)}),y==null||y(),(O=v)==null||O.disconnect(),v=null,d&&cancelAnimationFrame(C)}}var kx=T.useLayoutEffect,_ee=["className","clearValue","cx","getStyles","getClassNames","getValue","hasValue","isMulti","isRtl","options","selectOption","selectProps","setValue","theme"],sS=function(){};function Aee(t,e){return e?e[0]==="-"?t+e:t+"__"+e:t}function Ree(t,e){for(var n=arguments.length,r=new Array(n>2?n-2:0),i=2;i-1}function Iee(t){return GS(t)?window.innerHeight:t.clientHeight}function y7(t){return GS(t)?window.pageYOffset:t.scrollTop}function uS(t,e){if(GS(t)){window.scrollTo(0,e);return}t.scrollTop=e}function Nee(t){var e=getComputedStyle(t),n=e.position==="absolute",r=/(auto|scroll)/;if(e.position==="fixed")return document.documentElement;for(var i=t;i=i.parentElement;)if(e=getComputedStyle(i),!(n&&e.position==="static")&&r.test(e.overflow+e.overflowY+e.overflowX))return i;return document.documentElement}function Mee(t,e,n,r){return n*((t=t/r-1)*t*t+1)+e}function ow(t,e){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:200,r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:sS,i=y7(t),o=e-i,u=10,l=0;function d(){l+=u;var h=Mee(l,i,o,n);uS(t,h),ln.bottom?uS(t,Math.min(e.offsetTop+e.clientHeight-t.offsetHeight+i,t.scrollHeight)):r.top-i1?n-1:0),i=1;i=C)return{placement:"bottom",maxHeight:e};if(Y>=C&&!u)return o&&ow(d,X,me),{placement:"bottom",maxHeight:e};if(!u&&Y>=r||u&&F>=r){o&&ow(d,X,me);var te=u?F-k:Y-k;return{placement:"bottom",maxHeight:te}}if(i==="auto"||u){var be=e,we=u?L:q;return we>=r&&(be=Math.min(we-k-l,e)),{placement:"top",maxHeight:be}}if(i==="bottom")return o&&uS(d,X),{placement:"bottom",maxHeight:e};break;case"top":if(L>=C)return{placement:"top",maxHeight:e};if(q>=C&&!u)return o&&ow(d,ue,me),{placement:"top",maxHeight:e};if(!u&&q>=r||u&&L>=r){var B=e;return(!u&&q>=r||u&&L>=r)&&(B=u?L-P:q-P),o&&ow(d,ue,me),{placement:"top",maxHeight:B}}return{placement:"bottom",maxHeight:e};default:throw new Error('Invalid placement provided "'.concat(i,'".'))}return h}function Vee(t){var e={bottom:"top",top:"bottom"};return t?e[t]:"bottom"}var b7=function(e){return e==="auto"?"bottom":e},Gee=function(e,n){var r,i=e.placement,o=e.theme,u=o.borderRadius,l=o.spacing,d=o.colors;return ct((r={label:"menu"},Lg(r,Vee(i),"100%"),Lg(r,"position","absolute"),Lg(r,"width","100%"),Lg(r,"zIndex",1),r),n?{}:{backgroundColor:d.neutral0,borderRadius:u,boxShadow:"0 0 0 1px hsla(0, 0%, 0%, 0.1), 0 4px 11px hsla(0, 0%, 0%, 0.1)",marginBottom:l.menuGutter,marginTop:l.menuGutter})},w7=T.createContext(null),Wee=function(e){var n=e.children,r=e.minMenuHeight,i=e.maxMenuHeight,o=e.menuPlacement,u=e.menuPosition,l=e.menuShouldScrollIntoView,d=e.theme,h=T.useContext(w7)||{},g=h.setPortalPlacement,y=T.useRef(null),w=T.useState(i),v=Jr(w,2),C=v[0],E=v[1],$=T.useState(null),O=Jr($,2),_=O[0],R=O[1],k=d.spacing.controlHeight;return kx(function(){var P=y.current;if(P){var L=u==="fixed",F=l&&!L,q=zee({maxHeight:i,menuEl:P,minHeight:r,placement:o,shouldScroll:F,isFixedPosition:L,controlHeight:k});E(q.maxHeight),R(q.placement),g==null||g(q.placement)}},[i,o,u,l,r,g,k]),n({ref:y,placerProps:ct(ct({},e),{},{placement:_||b7(o),maxHeight:C})})},Kee=function(e){var n=e.children,r=e.innerRef,i=e.innerProps;return mt("div",Ve({},dr(e,"menu",{menu:!0}),{ref:r},i),n)},Yee=Kee,Jee=function(e,n){var r=e.maxHeight,i=e.theme.spacing.baseUnit;return ct({maxHeight:r,overflowY:"auto",position:"relative",WebkitOverflowScrolling:"touch"},n?{}:{paddingBottom:i,paddingTop:i})},Qee=function(e){var n=e.children,r=e.innerProps,i=e.innerRef,o=e.isMulti;return mt("div",Ve({},dr(e,"menuList",{"menu-list":!0,"menu-list--is-multi":o}),{ref:i},r),n)},S7=function(e,n){var r=e.theme,i=r.spacing.baseUnit,o=r.colors;return ct({textAlign:"center"},n?{}:{color:o.neutral40,padding:"".concat(i*2,"px ").concat(i*3,"px")})},Xee=S7,Zee=S7,ete=function(e){var n=e.children,r=n===void 0?"No options":n,i=e.innerProps,o=Iu(e,qee);return mt("div",Ve({},dr(ct(ct({},o),{},{children:r,innerProps:i}),"noOptionsMessage",{"menu-notice":!0,"menu-notice--no-options":!0}),i),r)},tte=function(e){var n=e.children,r=n===void 0?"Loading...":n,i=e.innerProps,o=Iu(e,Hee);return mt("div",Ve({},dr(ct(ct({},o),{},{children:r,innerProps:i}),"loadingMessage",{"menu-notice":!0,"menu-notice--loading":!0}),i),r)},nte=function(e){var n=e.rect,r=e.offset,i=e.position;return{left:n.left,position:i,top:r,width:n.width,zIndex:1}},rte=function(e){var n=e.appendTo,r=e.children,i=e.controlElement,o=e.innerProps,u=e.menuPlacement,l=e.menuPosition,d=T.useRef(null),h=T.useRef(null),g=T.useState(b7(u)),y=Jr(g,2),w=y[0],v=y[1],C=T.useMemo(function(){return{setPortalPlacement:v}},[]),E=T.useState(null),$=Jr(E,2),O=$[0],_=$[1],R=T.useCallback(function(){if(i){var F=kee(i),q=l==="fixed"?0:window.pageYOffset,Y=F[w]+q;(Y!==(O==null?void 0:O.offset)||F.left!==(O==null?void 0:O.rect.left)||F.width!==(O==null?void 0:O.rect.width))&&_({offset:Y,rect:F})}},[i,l,w,O==null?void 0:O.offset,O==null?void 0:O.rect.left,O==null?void 0:O.rect.width]);kx(function(){R()},[R]);var k=T.useCallback(function(){typeof h.current=="function"&&(h.current(),h.current=null),i&&d.current&&(h.current=Tee(i,d.current,R,{elementResize:"ResizeObserver"in window}))},[i,R]);kx(function(){k()},[k]);var P=T.useCallback(function(F){d.current=F,k()},[k]);if(!n&&l!=="fixed"||!O)return null;var L=mt("div",Ve({ref:P},dr(ct(ct({},e),{},{offset:O.offset,position:l,rect:O.rect}),"menuPortal",{"menu-portal":!0}),o),r);return mt(w7.Provider,{value:C},n?xu.createPortal(L,n):L)},ite=function(e){var n=e.isDisabled,r=e.isRtl;return{label:"container",direction:r?"rtl":void 0,pointerEvents:n?"none":void 0,position:"relative"}},ate=function(e){var n=e.children,r=e.innerProps,i=e.isDisabled,o=e.isRtl;return mt("div",Ve({},dr(e,"container",{"--is-disabled":i,"--is-rtl":o}),r),n)},ote=function(e,n){var r=e.theme.spacing,i=e.isMulti,o=e.hasValue,u=e.selectProps.controlShouldRenderValue;return ct({alignItems:"center",display:i&&o&&u?"flex":"grid",flex:1,flexWrap:"wrap",WebkitOverflowScrolling:"touch",position:"relative",overflow:"hidden"},n?{}:{padding:"".concat(r.baseUnit/2,"px ").concat(r.baseUnit*2,"px")})},ste=function(e){var n=e.children,r=e.innerProps,i=e.isMulti,o=e.hasValue;return mt("div",Ve({},dr(e,"valueContainer",{"value-container":!0,"value-container--is-multi":i,"value-container--has-value":o}),r),n)},ute=function(){return{alignItems:"center",alignSelf:"stretch",display:"flex",flexShrink:0}},lte=function(e){var n=e.children,r=e.innerProps;return mt("div",Ve({},dr(e,"indicatorsContainer",{indicators:!0}),r),n)},g6,cte=["size"],fte=["innerProps","isRtl","size"],dte={name:"8mmkcg",styles:"display:inline-block;fill:currentColor;line-height:1;stroke:currentColor;stroke-width:0"},C7=function(e){var n=e.size,r=Iu(e,cte);return mt("svg",Ve({height:n,width:n,viewBox:"0 0 20 20","aria-hidden":"true",focusable:"false",css:dte},r))},oT=function(e){return mt(C7,Ve({size:20},e),mt("path",{d:"M14.348 14.849c-0.469 0.469-1.229 0.469-1.697 0l-2.651-3.030-2.651 3.029c-0.469 0.469-1.229 0.469-1.697 0-0.469-0.469-0.469-1.229 0-1.697l2.758-3.15-2.759-3.152c-0.469-0.469-0.469-1.228 0-1.697s1.228-0.469 1.697 0l2.652 3.031 2.651-3.031c0.469-0.469 1.228-0.469 1.697 0s0.469 1.229 0 1.697l-2.758 3.152 2.758 3.15c0.469 0.469 0.469 1.229 0 1.698z"}))},$7=function(e){return mt(C7,Ve({size:20},e),mt("path",{d:"M4.516 7.548c0.436-0.446 1.043-0.481 1.576 0l3.908 3.747 3.908-3.747c0.533-0.481 1.141-0.446 1.574 0 0.436 0.445 0.408 1.197 0 1.615-0.406 0.418-4.695 4.502-4.695 4.502-0.217 0.223-0.502 0.335-0.787 0.335s-0.57-0.112-0.789-0.335c0 0-4.287-4.084-4.695-4.502s-0.436-1.17 0-1.615z"}))},E7=function(e,n){var r=e.isFocused,i=e.theme,o=i.spacing.baseUnit,u=i.colors;return ct({label:"indicatorContainer",display:"flex",transition:"color 150ms"},n?{}:{color:r?u.neutral60:u.neutral20,padding:o*2,":hover":{color:r?u.neutral80:u.neutral40}})},hte=E7,pte=function(e){var n=e.children,r=e.innerProps;return mt("div",Ve({},dr(e,"dropdownIndicator",{indicator:!0,"dropdown-indicator":!0}),r),n||mt($7,null))},mte=E7,gte=function(e){var n=e.children,r=e.innerProps;return mt("div",Ve({},dr(e,"clearIndicator",{indicator:!0,"clear-indicator":!0}),r),n||mt(oT,null))},yte=function(e,n){var r=e.isDisabled,i=e.theme,o=i.spacing.baseUnit,u=i.colors;return ct({label:"indicatorSeparator",alignSelf:"stretch",width:1},n?{}:{backgroundColor:r?u.neutral10:u.neutral20,marginBottom:o*2,marginTop:o*2})},vte=function(e){var n=e.innerProps;return mt("span",Ve({},n,dr(e,"indicatorSeparator",{"indicator-separator":!0})))},bte=lee(g6||(g6=pee([` + */var IX={L:iy.QrCode.Ecc.LOW,M:iy.QrCode.Ecc.MEDIUM,Q:iy.QrCode.Ecc.QUARTILE,H:iy.QrCode.Ecc.HIGH},l7=128,c7="L",f7="#FFFFFF",d7="#000000",h7=!1,p7=1,NX=4,MX=0,kX=.1;function m7(t,e=0){const n=[];return t.forEach(function(r,i){let o=null;r.forEach(function(u,l){if(!u&&o!==null){n.push(`M${o+e} ${i+e}h${l-o}v1H${o+e}z`),o=null;return}if(l===r.length-1){if(!u)return;o===null?n.push(`M${l+e},${i+e} h1v1H${l+e}z`):n.push(`M${o+e},${i+e} h${l+1-o}v1H${o+e}z`);return}u&&o===null&&(o=l)})}),n.join("")}function g7(t,e){return t.slice().map((n,r)=>r=e.y+e.h?n:n.map((i,o)=>o=e.x+e.w?i:!1))}function DX(t,e,n,r){if(r==null)return null;const i=t.length+n*2,o=Math.floor(e*kX),u=i/e,l=(r.width||o)*u,d=(r.height||o)*u,h=r.x==null?t.length/2-l/2:r.x*u,g=r.y==null?t.length/2-d/2:r.y*u,y=r.opacity==null?1:r.opacity;let w=null;if(r.excavate){let C=Math.floor(h),E=Math.floor(g),$=Math.ceil(l+h-C),O=Math.ceil(d+g-E);w={x:C,y:E,w:$,h:O}}const b=r.crossOrigin;return{x:h,y:g,h:d,w:l,excavation:w,opacity:y,crossOrigin:b}}function FX(t,e){return e!=null?Math.max(Math.floor(e),0):t?NX:MX}function y7({value:t,level:e,minVersion:n,includeMargin:r,marginSize:i,imageSettings:o,size:u,boostLevel:l}){let d=Ae.useMemo(()=>{const C=(Array.isArray(t)?t:[t]).reduce((E,$)=>(E.push(...iy.QrSegment.makeSegments($)),E),[]);return iy.QrCode.encodeSegments(C,IX[e],n,void 0,void 0,l)},[t,e,n,l]);const{cells:h,margin:g,numCells:y,calculatedImageSettings:w}=Ae.useMemo(()=>{let b=d.getModules();const C=FX(r,i),E=b.length+C*2,$=DX(b,u,C,o);return{cells:b,margin:C,numCells:E,calculatedImageSettings:$}},[d,u,o,r,i]);return{qrcode:d,margin:g,cells:h,numCells:y,calculatedImageSettings:w}}var LX=(function(){try{new Path2D().addPath(new Path2D)}catch{return!1}return!0})(),UX=Ae.forwardRef(function(e,n){const r=e,{value:i,size:o=l7,level:u=c7,bgColor:l=f7,fgColor:d=d7,includeMargin:h=h7,minVersion:g=p7,boostLevel:y,marginSize:w,imageSettings:b}=r,E=rO(r,["value","size","level","bgColor","fgColor","includeMargin","minVersion","boostLevel","marginSize","imageSettings"]),{style:$}=E,O=rO(E,["style"]),_=b==null?void 0:b.src,P=Ae.useRef(null),k=Ae.useRef(null),R=Ae.useCallback(be=>{P.current=be,typeof n=="function"?n(be):n&&(n.current=be)},[n]),[L,F]=Ae.useState(!1),{margin:q,cells:Y,numCells:Q,calculatedImageSettings:ue}=y7({value:i,level:u,minVersion:g,boostLevel:y,includeMargin:h,marginSize:w,imageSettings:b,size:o});Ae.useEffect(()=>{if(P.current!=null){const be=P.current,Se=be.getContext("2d");if(!Se)return;let j=Y;const V=k.current,H=ue!=null&&V!==null&&V.complete&&V.naturalHeight!==0&&V.naturalWidth!==0;H&&ue.excavation!=null&&(j=g7(Y,ue.excavation));const ie=window.devicePixelRatio||1;be.height=be.width=o*ie;const G=o/Q*ie;Se.scale(G,G),Se.fillStyle=l,Se.fillRect(0,0,Q,Q),Se.fillStyle=d,LX?Se.fill(new Path2D(m7(j,q))):Y.forEach(function(X,fe){X.forEach(function($e,Ce){$e&&Se.fillRect(Ce+q,fe+q,1,1)})}),ue&&(Se.globalAlpha=ue.opacity),H&&Se.drawImage(V,ue.x+q,ue.y+q,ue.w,ue.h)}}),Ae.useEffect(()=>{F(!1)},[_]);const me=nO({height:o,width:o},$);let te=null;return _!=null&&(te=Ae.createElement("img",{src:_,key:_,style:{display:"none"},onLoad:()=>{F(!0)},ref:k,crossOrigin:ue==null?void 0:ue.crossOrigin})),Ae.createElement(Ae.Fragment,null,Ae.createElement("canvas",nO({style:me,height:o,width:o,ref:R,role:"img"},O)),te)});UX.displayName="QRCodeCanvas";var v7=Ae.forwardRef(function(e,n){const r=e,{value:i,size:o=l7,level:u=c7,bgColor:l=f7,fgColor:d=d7,includeMargin:h=h7,minVersion:g=p7,boostLevel:y,title:w,marginSize:b,imageSettings:C}=r,E=rO(r,["value","size","level","bgColor","fgColor","includeMargin","minVersion","boostLevel","title","marginSize","imageSettings"]),{margin:$,cells:O,numCells:_,calculatedImageSettings:P}=y7({value:i,level:u,minVersion:g,boostLevel:y,includeMargin:h,marginSize:b,imageSettings:C,size:o});let k=O,R=null;C!=null&&P!=null&&(P.excavation!=null&&(k=g7(O,P.excavation)),R=Ae.createElement("image",{href:C.src,height:P.h,width:P.w,x:P.x+$,y:P.y+$,preserveAspectRatio:"none",opacity:P.opacity,crossOrigin:P.crossOrigin}));const L=m7(k,$);return Ae.createElement("svg",nO({height:o,width:o,viewBox:`0 0 ${_} ${_}`,ref:n,role:"img"},E),!!w&&Ae.createElement("title",null,w),Ae.createElement("path",{fill:l,d:`M0,0 h${_}v${_}H0z`,shapeRendering:"crispEdges"}),Ae.createElement("path",{fill:d,d:L,shapeRendering:"crispEdges"}),R)});v7.displayName="QRCodeSVG";const Y0={backspace:8,left:37,up:38,right:39,down:40};class yb extends T.Component{constructor(e){super(e),this.__clearvalues__=()=>{const{fields:u}=this.props;this.setState({values:Array(u).fill("")}),this.iRefs[0].current.focus()},this.triggerChange=(u=this.state.values)=>{const{onChange:l,onComplete:d,fields:h}=this.props,g=u.join("");l&&l(g),d&&g.length>=h&&d(g)},this.onChange=u=>{const l=parseInt(u.target.dataset.id);if(this.props.type==="number"&&(u.target.value=u.target.value.replace(/[^\d]/gi,"")),u.target.value===""||this.props.type==="number"&&!u.target.validity.valid)return;const{fields:d}=this.props;let h;const g=u.target.value;let{values:y}=this.state;if(y=Object.assign([],y),g.length>1){let w=g.length+l-1;w>=d&&(w=d-1),h=this.iRefs[w],g.split("").forEach((C,E)=>{const $=l+E;${const l=parseInt(u.target.dataset.id),d=l-1,h=l+1,g=this.iRefs[d],y=this.iRefs[h];switch(u.keyCode){case Y0.backspace:u.preventDefault();const w=[...this.state.values];this.state.values[l]?(w[l]="",this.setState({values:w}),this.triggerChange(w)):g&&(w[d]="",g.current.focus(),this.setState({values:w}),this.triggerChange(w));break;case Y0.left:u.preventDefault(),g&&g.current.focus();break;case Y0.right:u.preventDefault(),y&&y.current.focus();break;case Y0.up:case Y0.down:u.preventDefault();break}},this.onFocus=u=>{u.target.select(u)};const{fields:n,values:r}=e;let i,o=0;if(r&&r.length){i=[];for(let u=0;u=n?0:r.length}else i=Array(n).fill("");this.state={values:i,autoFocusIndex:o},this.iRefs=[];for(let u=0;uN.jsx("input",{type:g==="number"?"tel":g,pattern:g==="number"?"[0-9]*":null,autoFocus:d&&E===n,style:y,"data-id":E,value:C,id:this.props.id?`${this.props.id}-${E}`:null,ref:this.iRefs[E],onChange:this.onChange,onKeyDown:this.onKeyDown,onFocus:this.onFocus,disabled:this.props.disabled,required:this.props.required,placeholder:this.props.placeholder[E]},`${this.id}-${E}`))}),r&&N.jsxs("div",{className:"rc-loading",style:b,children:[N.jsx("div",{className:"rc-blur"}),N.jsx("svg",{className:"rc-spin",viewBox:"0 0 1024 1024","data-icon":"loading",width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true",children:N.jsx("path",{fill:"#006fff",d:"M988 548c-19.9 0-36-16.1-36-36 0-59.4-11.6-117-34.6-171.3a440.45 440.45 0 0 0-94.3-139.9 437.71 437.71 0 0 0-139.9-94.3C629 83.6 571.4 72 512 72c-19.9 0-36-16.1-36-36s16.1-36 36-36c69.1 0 136.2 13.5 199.3 40.3C772.3 66 827 103 874 150c47 47 83.9 101.8 109.7 162.7 26.7 63.1 40.2 130.2 40.2 199.3.1 19.9-16 36-35.9 36z"})})]})]})}}yb.propTypes={type:Te.oneOf(["text","number"]),onChange:Te.func,onComplete:Te.func,fields:Te.number,loading:Te.bool,title:Te.string,fieldWidth:Te.number,id:Te.string,fieldHeight:Te.number,autoFocus:Te.bool,className:Te.string,values:Te.arrayOf(Te.string),disabled:Te.bool,required:Te.bool,placeholder:Te.arrayOf(Te.string)};yb.defaultProps={type:"number",fields:6,fieldWidth:58,fieldHeight:54,autoFocus:!0,disabled:!1,required:!1,placeholder:[]};var q1;function wi(t,e){if(!{}.hasOwnProperty.call(t,e))throw new TypeError("attempted to use private field on non-instance");return t}var BX=0;function Om(t){return"__private_"+BX+++"_"+t}const jX=t=>{const n=Ma()??void 0,[r,i]=T.useState(!1),[o,u]=T.useState();return{...Ur({mutationFn:h=>(i(!1),ed.Fetch({body:h,headers:t==null?void 0:t.headers},{creatorFn:t==null?void 0:t.creatorFn,qs:t==null?void 0:t.qs,ctx:n,onMessage:t==null?void 0:t.onMessage,overrideUrl:t==null?void 0:t.overrideUrl}).then(g=>(g.done.then(()=>{i(!0)}),u(g.response),g.response.result)))}),isCompleted:r,response:o}};class ed{}q1=ed;ed.URL="/passport/totp/confirm";ed.NewUrl=t=>ma(q1.URL,void 0,t);ed.Method="post";ed.Fetch$=async(t,e,n,r)=>ha(r??q1.NewUrl(t),{method:q1.Method,...n||{}},e);ed.Fetch=async(t,{creatorFn:e,qs:n,ctx:r,onMessage:i,overrideUrl:o}={creatorFn:u=>new Jp(u)})=>{e=e||(l=>new Jp(l));const u=await q1.Fetch$(n,r,t,o);return pa(u,l=>{const d=new Ui;return e&&d.setCreator(e),d.inject(l),d},i,t==null?void 0:t.signal)};ed.Definition={name:"ConfirmClassicPassportTotp",url:"/passport/totp/confirm",method:"post",description:"When user requires to setup the totp for an specifc passport, they can use this endpoint to confirm it.",in:{fields:[{name:"value",description:"Passport value, email or phone number which is already successfully registered.",type:"string",tags:{validate:"required"}},{name:"password",description:"Password related to the passport. Totp is only available for passports with a password. Basically totp is protecting passport, not otp over email or sms.",type:"string",tags:{validate:"required"}},{name:"totpCode",description:"The totp code generated by authenticator such as google or microsft apps.",type:"string",tags:{validate:"required"}}]},out:{envelope:"GResponse",fields:[{name:"session",type:"one",target:"UserSessionDto"}]}};var Jh=Om("value"),Qh=Om("password"),Xh=Om("totpCode"),O$=Om("isJsonAppliable");class Ff{get value(){return wi(this,Jh)[Jh]}set value(e){wi(this,Jh)[Jh]=String(e)}setValue(e){return this.value=e,this}get password(){return wi(this,Qh)[Qh]}set password(e){wi(this,Qh)[Qh]=String(e)}setPassword(e){return this.password=e,this}get totpCode(){return wi(this,Xh)[Xh]}set totpCode(e){wi(this,Xh)[Xh]=String(e)}setTotpCode(e){return this.totpCode=e,this}constructor(e=void 0){if(Object.defineProperty(this,O$,{value:qX}),Object.defineProperty(this,Jh,{writable:!0,value:""}),Object.defineProperty(this,Qh,{writable:!0,value:""}),Object.defineProperty(this,Xh,{writable:!0,value:""}),e!=null)if(typeof e=="string")this.applyFromObject(JSON.parse(e));else if(wi(this,O$)[O$](e))this.applyFromObject(e);else throw new Error("Instance cannot be created on an unknown value, check the content being passed. got: "+typeof e)}applyFromObject(e={}){const n=e;n.value!==void 0&&(this.value=n.value),n.password!==void 0&&(this.password=n.password),n.totpCode!==void 0&&(this.totpCode=n.totpCode)}toJSON(){return{value:wi(this,Jh)[Jh],password:wi(this,Qh)[Qh],totpCode:wi(this,Xh)[Xh]}}toString(){return JSON.stringify(this)}static get Fields(){return{value:"value",password:"password",totpCode:"totpCode"}}static from(e){return new Ff(e)}static with(e){return new Ff(e)}copyWith(e){return new Ff({...this.toJSON(),...e})}clone(){return new Ff(this.toJSON())}}function qX(t){const e=globalThis,n=typeof e.Buffer<"u"&&typeof e.Buffer.isBuffer=="function"&&e.Buffer.isBuffer(t),r=typeof e.Blob<"u"&&t instanceof e.Blob;return t&&typeof t=="object"&&!Array.isArray(t)&&!n&&!(t instanceof ArrayBuffer)&&!r}var yl=Om("session"),T$=Om("isJsonAppliable"),J0=Om("lateInitFields");class Jp{get session(){return wi(this,yl)[yl]}set session(e){e instanceof Nn?wi(this,yl)[yl]=e:wi(this,yl)[yl]=new Nn(e)}setSession(e){return this.session=e,this}constructor(e=void 0){if(Object.defineProperty(this,J0,{value:zX}),Object.defineProperty(this,T$,{value:HX}),Object.defineProperty(this,yl,{writable:!0,value:void 0}),e==null){wi(this,J0)[J0]();return}if(typeof e=="string")this.applyFromObject(JSON.parse(e));else if(wi(this,T$)[T$](e))this.applyFromObject(e);else throw new Error("Instance cannot be created on an unknown value, check the content being passed. got: "+typeof e)}applyFromObject(e={}){const n=e;n.session!==void 0&&(this.session=n.session),wi(this,J0)[J0](e)}toJSON(){return{session:wi(this,yl)[yl]}}toString(){return JSON.stringify(this)}static get Fields(){return{session$:"session",get session(){return Nu("session",Nn.Fields)}}}static from(e){return new Jp(e)}static with(e){return new Jp(e)}copyWith(e){return new Jp({...this.toJSON(),...e})}clone(){return new Jp(this.toJSON())}}function HX(t){const e=globalThis,n=typeof e.Buffer<"u"&&typeof e.Buffer.isBuffer=="function"&&e.Buffer.isBuffer(t),r=typeof e.Blob<"u"&&t instanceof e.Blob;return t&&typeof t=="object"&&!Array.isArray(t)&&!n&&!(t instanceof ArrayBuffer)&&!r}function zX(t={}){const e=t;e.session instanceof Nn||(this.session=new Nn(e.session||{}))}const VX=()=>{const{goBack:t,state:e}=Br(),n=jX(),{onComplete:r}=gb(),i=e==null?void 0:e.totpUrl,o=e==null?void 0:e.forcedTotp,u=e==null?void 0:e.password,l=e==null?void 0:e.value,d=y=>{n.mutateAsync(new Ff({...y,password:u,value:l})).then(g).catch(w=>{h==null||h.setErrors(Iy(w))})},h=ql({initialValues:{},onSubmit:d}),g=y=>{var w,b;(b=(w=y.data)==null?void 0:w.item)!=null&&b.session&&r(y)};return{mutation:n,totpUrl:i,forcedTotp:o,form:h,submit:d,goBack:t}},GX=({})=>{const{goBack:t,mutation:e,form:n,totpUrl:r,forcedTotp:i}=VX(),o=Kn(xr);return N.jsxs("div",{className:"signin-form-container",children:[N.jsx("h1",{children:o.setupTotp}),N.jsx("p",{children:o.setupTotpDescription}),N.jsx(Jo,{query:e}),N.jsx(WX,{form:n,totpUrl:r,mutation:e,forcedTotp:i}),N.jsx("button",{id:"go-back-button",className:"btn w-100 d-block",onClick:t,children:"Try another account"})]})},WX=({form:t,mutation:e,forcedTotp:n,totpUrl:r})=>{var u;const i=Kn(xr),o=!t.values.totpCode||t.values.totpCode.length!=6;return N.jsxs("form",{onSubmit:l=>{l.preventDefault(),t.submitForm()},children:[N.jsx("center",{children:N.jsx(v7,{value:r,width:200,height:200})}),N.jsx(yb,{values:(u=t.values.totpCode)==null?void 0:u.split(""),onChange:l=>t.setFieldValue(Ff.Fields.totpCode,l,!1),className:"otp-react-code-input"}),N.jsx(Kf,{className:"btn btn-primary w-100 d-block mb-2",mutation:e,id:"submit-form",disabled:o,children:i.continue}),n!==!0&&N.jsxs(N.Fragment,{children:[N.jsx("p",{className:"mt-4",children:i.skipTotpInfo}),N.jsx("button",{className:"btn btn-warning w-100 d-block mb-2",children:i.skipTotpButton})]})]})},KX=()=>{const{goBack:t,state:e,replace:n,push:r}=Br(),i=o7(),{onComplete:o}=gb(),u=e==null?void 0:e.totpUrl,l=e==null?void 0:e.forcedTotp,d=e==null?void 0:e.password,h=e==null?void 0:e.value,g=b=>{i.mutateAsync(new Ds({...b,password:d,value:h})).then(w).catch(C=>{y==null||y.setErrors(Iy(C))})},y=ql({initialValues:{},onSubmit:(b,C)=>{i.mutateAsync(new Ds(b))}}),w=b=>{var C,E;(E=(C=b.data)==null?void 0:C.item)!=null&&E.session&&o(b)};return{mutation:i,totpUrl:u,forcedTotp:l,form:y,submit:g,goBack:t}},YX=({})=>{const{goBack:t,mutation:e,form:n}=KX(),r=Kn(xr);return N.jsxs("div",{className:"signin-form-container",children:[N.jsx("h1",{children:r.enterTotp}),N.jsx("p",{children:r.enterTotpDescription}),N.jsx(Jo,{query:e}),N.jsx(JX,{form:n,mutation:e}),N.jsx("button",{id:"go-back-button",className:"btn w-100 d-block",onClick:t,children:r.anotherAccount})]})},JX=({form:t,mutation:e})=>{var i;const n=!t.values.totpCode||t.values.totpCode.length!=6,r=Kn(xr);return N.jsxs("form",{onSubmit:o=>{o.preventDefault(),t.submitForm()},children:[N.jsx(yb,{values:(i=t.values.totpCode)==null?void 0:i.split(""),onChange:o=>t.setFieldValue(Ff.Fields.totpCode,o,!1),className:"otp-react-code-input"}),N.jsx(Kf,{className:"btn btn-success w-100 d-block mb-2",mutation:e,id:"submit-form",disabled:n,children:r.continue})]})};var H1;function Rt(t,e){if(!{}.hasOwnProperty.call(t,e))throw new TypeError("attempted to use private field on non-instance");return t}var QX=0;function Bi(t){return"__private_"+QX+++"_"+t}const XX=t=>{const n=Ma()??void 0,[r,i]=T.useState(!1),[o,u]=T.useState();return{...Ur({mutationFn:h=>(i(!1),td.Fetch({body:h,headers:t==null?void 0:t.headers},{creatorFn:t==null?void 0:t.creatorFn,qs:t==null?void 0:t.qs,ctx:n,onMessage:t==null?void 0:t.onMessage,overrideUrl:t==null?void 0:t.overrideUrl}).then(g=>(g.done.then(()=>{i(!0)}),u(g.response),g.response.result)))}),isCompleted:r,response:o}};class td{}H1=td;td.URL="/passports/signup/classic";td.NewUrl=t=>ma(H1.URL,void 0,t);td.Method="post";td.Fetch$=async(t,e,n,r)=>ha(r??H1.NewUrl(t),{method:H1.Method,...n||{}},e);td.Fetch=async(t,{creatorFn:e,qs:n,ctx:r,onMessage:i,overrideUrl:o}={creatorFn:u=>new Qp(u)})=>{e=e||(l=>new Qp(l));const u=await H1.Fetch$(n,r,t,o);return pa(u,l=>{const d=new Ui;return e&&d.setCreator(e),d.inject(l),d},i,t==null?void 0:t.signal)};td.Definition={name:"ClassicSignup",cliName:"up",url:"/passports/signup/classic",method:"post",description:"Signup a user into system via public access (aka website visitors) using either email or phone number.",in:{fields:[{name:"value",type:"string",tags:{validate:"required"}},{name:"sessionSecret",description:"Required when the account creation requires recaptcha, or otp approval first. If such requirements are there, you first need to follow the otp apis, get the session secret and pass it here to complete the setup.",type:"string"},{name:"type",type:"enum",of:[{k:"phonenumber"},{k:"email"}],tags:{validate:"required"}},{name:"password",type:"string",tags:{validate:"required"}},{name:"firstName",type:"string",tags:{validate:"required"}},{name:"lastName",type:"string",tags:{validate:"required"}},{name:"inviteId",type:"string?"},{name:"publicJoinKeyId",type:"string?"},{name:"workspaceTypeId",type:"string?",tags:{validate:"required"}}]},out:{envelope:"GResponse",fields:[{name:"session",description:"Returns the user session in case that signup is completely successful.",type:"one",target:"UserSessionDto"},{name:"totpUrl",description:"If time based otp is available, we add it response to make it easier for ui.",type:"string"},{name:"continueToTotp",description:"Returns true and session will be empty if, the totp is required by the installation. In such scenario, you need to forward user to setup totp screen.",type:"bool"},{name:"forcedTotp",description:"Determines if user must complete totp in order to continue based on workspace or installation",type:"bool"}]}};var Zh=Bi("value"),ep=Bi("sessionSecret"),tp=Bi("type"),np=Bi("password"),rp=Bi("firstName"),ip=Bi("lastName"),ap=Bi("inviteId"),op=Bi("publicJoinKeyId"),sp=Bi("workspaceTypeId"),_$=Bi("isJsonAppliable");class Ou{get value(){return Rt(this,Zh)[Zh]}set value(e){Rt(this,Zh)[Zh]=String(e)}setValue(e){return this.value=e,this}get sessionSecret(){return Rt(this,ep)[ep]}set sessionSecret(e){Rt(this,ep)[ep]=String(e)}setSessionSecret(e){return this.sessionSecret=e,this}get type(){return Rt(this,tp)[tp]}set type(e){Rt(this,tp)[tp]=e}setType(e){return this.type=e,this}get password(){return Rt(this,np)[np]}set password(e){Rt(this,np)[np]=String(e)}setPassword(e){return this.password=e,this}get firstName(){return Rt(this,rp)[rp]}set firstName(e){Rt(this,rp)[rp]=String(e)}setFirstName(e){return this.firstName=e,this}get lastName(){return Rt(this,ip)[ip]}set lastName(e){Rt(this,ip)[ip]=String(e)}setLastName(e){return this.lastName=e,this}get inviteId(){return Rt(this,ap)[ap]}set inviteId(e){const n=typeof e=="string"||e===void 0||e===null;Rt(this,ap)[ap]=n?e:String(e)}setInviteId(e){return this.inviteId=e,this}get publicJoinKeyId(){return Rt(this,op)[op]}set publicJoinKeyId(e){const n=typeof e=="string"||e===void 0||e===null;Rt(this,op)[op]=n?e:String(e)}setPublicJoinKeyId(e){return this.publicJoinKeyId=e,this}get workspaceTypeId(){return Rt(this,sp)[sp]}set workspaceTypeId(e){const n=typeof e=="string"||e===void 0||e===null;Rt(this,sp)[sp]=n?e:String(e)}setWorkspaceTypeId(e){return this.workspaceTypeId=e,this}constructor(e=void 0){if(Object.defineProperty(this,_$,{value:ZX}),Object.defineProperty(this,Zh,{writable:!0,value:""}),Object.defineProperty(this,ep,{writable:!0,value:""}),Object.defineProperty(this,tp,{writable:!0,value:void 0}),Object.defineProperty(this,np,{writable:!0,value:""}),Object.defineProperty(this,rp,{writable:!0,value:""}),Object.defineProperty(this,ip,{writable:!0,value:""}),Object.defineProperty(this,ap,{writable:!0,value:void 0}),Object.defineProperty(this,op,{writable:!0,value:void 0}),Object.defineProperty(this,sp,{writable:!0,value:void 0}),e!=null)if(typeof e=="string")this.applyFromObject(JSON.parse(e));else if(Rt(this,_$)[_$](e))this.applyFromObject(e);else throw new Error("Instance cannot be created on an unknown value, check the content being passed. got: "+typeof e)}applyFromObject(e={}){const n=e;n.value!==void 0&&(this.value=n.value),n.sessionSecret!==void 0&&(this.sessionSecret=n.sessionSecret),n.type!==void 0&&(this.type=n.type),n.password!==void 0&&(this.password=n.password),n.firstName!==void 0&&(this.firstName=n.firstName),n.lastName!==void 0&&(this.lastName=n.lastName),n.inviteId!==void 0&&(this.inviteId=n.inviteId),n.publicJoinKeyId!==void 0&&(this.publicJoinKeyId=n.publicJoinKeyId),n.workspaceTypeId!==void 0&&(this.workspaceTypeId=n.workspaceTypeId)}toJSON(){return{value:Rt(this,Zh)[Zh],sessionSecret:Rt(this,ep)[ep],type:Rt(this,tp)[tp],password:Rt(this,np)[np],firstName:Rt(this,rp)[rp],lastName:Rt(this,ip)[ip],inviteId:Rt(this,ap)[ap],publicJoinKeyId:Rt(this,op)[op],workspaceTypeId:Rt(this,sp)[sp]}}toString(){return JSON.stringify(this)}static get Fields(){return{value:"value",sessionSecret:"sessionSecret",type:"type",password:"password",firstName:"firstName",lastName:"lastName",inviteId:"inviteId",publicJoinKeyId:"publicJoinKeyId",workspaceTypeId:"workspaceTypeId"}}static from(e){return new Ou(e)}static with(e){return new Ou(e)}copyWith(e){return new Ou({...this.toJSON(),...e})}clone(){return new Ou(this.toJSON())}}function ZX(t){const e=globalThis,n=typeof e.Buffer<"u"&&typeof e.Buffer.isBuffer=="function"&&e.Buffer.isBuffer(t),r=typeof e.Blob<"u"&&t instanceof e.Blob;return t&&typeof t=="object"&&!Array.isArray(t)&&!n&&!(t instanceof ArrayBuffer)&&!r}var vl=Bi("session"),up=Bi("totpUrl"),lp=Bi("continueToTotp"),cp=Bi("forcedTotp"),A$=Bi("isJsonAppliable"),Q0=Bi("lateInitFields");class Qp{get session(){return Rt(this,vl)[vl]}set session(e){e instanceof Nn?Rt(this,vl)[vl]=e:Rt(this,vl)[vl]=new Nn(e)}setSession(e){return this.session=e,this}get totpUrl(){return Rt(this,up)[up]}set totpUrl(e){Rt(this,up)[up]=String(e)}setTotpUrl(e){return this.totpUrl=e,this}get continueToTotp(){return Rt(this,lp)[lp]}set continueToTotp(e){Rt(this,lp)[lp]=!!e}setContinueToTotp(e){return this.continueToTotp=e,this}get forcedTotp(){return Rt(this,cp)[cp]}set forcedTotp(e){Rt(this,cp)[cp]=!!e}setForcedTotp(e){return this.forcedTotp=e,this}constructor(e=void 0){if(Object.defineProperty(this,Q0,{value:tZ}),Object.defineProperty(this,A$,{value:eZ}),Object.defineProperty(this,vl,{writable:!0,value:void 0}),Object.defineProperty(this,up,{writable:!0,value:""}),Object.defineProperty(this,lp,{writable:!0,value:void 0}),Object.defineProperty(this,cp,{writable:!0,value:void 0}),e==null){Rt(this,Q0)[Q0]();return}if(typeof e=="string")this.applyFromObject(JSON.parse(e));else if(Rt(this,A$)[A$](e))this.applyFromObject(e);else throw new Error("Instance cannot be created on an unknown value, check the content being passed. got: "+typeof e)}applyFromObject(e={}){const n=e;n.session!==void 0&&(this.session=n.session),n.totpUrl!==void 0&&(this.totpUrl=n.totpUrl),n.continueToTotp!==void 0&&(this.continueToTotp=n.continueToTotp),n.forcedTotp!==void 0&&(this.forcedTotp=n.forcedTotp),Rt(this,Q0)[Q0](e)}toJSON(){return{session:Rt(this,vl)[vl],totpUrl:Rt(this,up)[up],continueToTotp:Rt(this,lp)[lp],forcedTotp:Rt(this,cp)[cp]}}toString(){return JSON.stringify(this)}static get Fields(){return{session$:"session",get session(){return Nu("session",Nn.Fields)},totpUrl:"totpUrl",continueToTotp:"continueToTotp",forcedTotp:"forcedTotp"}}static from(e){return new Qp(e)}static with(e){return new Qp(e)}copyWith(e){return new Qp({...this.toJSON(),...e})}clone(){return new Qp(this.toJSON())}}function eZ(t){const e=globalThis,n=typeof e.Buffer<"u"&&typeof e.Buffer.isBuffer=="function"&&e.Buffer.isBuffer(t),r=typeof e.Blob<"u"&&t instanceof e.Blob;return t&&typeof t=="object"&&!Array.isArray(t)&&!n&&!(t instanceof ArrayBuffer)&&!r}function tZ(t={}){const e=t;e.session instanceof Nn||(this.session=new Nn(e.session||{}))}var z1;function no(t,e){if(!{}.hasOwnProperty.call(t,e))throw new TypeError("attempted to use private field on non-instance");return t}var nZ=0;function vb(t){return"__private_"+nZ+++"_"+t}const rZ=t=>{const e=Ma(),n=(t==null?void 0:t.ctx)??e??void 0,[r,i]=T.useState(!1),[o,u]=T.useState(),l=()=>(i(!1),Nl.Fetch({headers:t==null?void 0:t.headers},{creatorFn:t==null?void 0:t.creatorFn,qs:t==null?void 0:t.qs,ctx:n,onMessage:t==null?void 0:t.onMessage,overrideUrl:t==null?void 0:t.overrideUrl}).then(h=>(h.done.then(()=>{i(!0)}),u(h.response),h.response.result)));return{...Yo({queryKey:[Nl.NewUrl(t==null?void 0:t.qs)],queryFn:l,...t||{}}),isCompleted:r,response:o}};class Nl{}z1=Nl;Nl.URL="/workspace/public/types";Nl.NewUrl=t=>ma(z1.URL,void 0,t);Nl.Method="get";Nl.Fetch$=async(t,e,n,r)=>ha(r??z1.NewUrl(t),{method:z1.Method,...n||{}},e);Nl.Fetch=async(t,{creatorFn:e,qs:n,ctx:r,onMessage:i,overrideUrl:o}={creatorFn:u=>new Xp(u)})=>{e=e||(l=>new Xp(l));const u=await z1.Fetch$(n,r,t,o);return pa(u,l=>{const d=new Ui;return e&&d.setCreator(e),d.inject(l),d},i,t==null?void 0:t.signal)};Nl.Definition={name:"QueryWorkspaceTypesPublicly",cliName:"public-types",url:"/workspace/public/types",method:"get",description:"Returns the workspaces types available in the project publicly without authentication, and the value could be used upon signup to go different route.",out:{envelope:"GResponse",fields:[{name:"title",type:"string"},{name:"description",type:"string"},{name:"uniqueId",type:"string"},{name:"slug",type:"string"}]}};var fp=vb("title"),dp=vb("description"),hp=vb("uniqueId"),pp=vb("slug"),R$=vb("isJsonAppliable");class Xp{get title(){return no(this,fp)[fp]}set title(e){no(this,fp)[fp]=String(e)}setTitle(e){return this.title=e,this}get description(){return no(this,dp)[dp]}set description(e){no(this,dp)[dp]=String(e)}setDescription(e){return this.description=e,this}get uniqueId(){return no(this,hp)[hp]}set uniqueId(e){no(this,hp)[hp]=String(e)}setUniqueId(e){return this.uniqueId=e,this}get slug(){return no(this,pp)[pp]}set slug(e){no(this,pp)[pp]=String(e)}setSlug(e){return this.slug=e,this}constructor(e=void 0){if(Object.defineProperty(this,R$,{value:iZ}),Object.defineProperty(this,fp,{writable:!0,value:""}),Object.defineProperty(this,dp,{writable:!0,value:""}),Object.defineProperty(this,hp,{writable:!0,value:""}),Object.defineProperty(this,pp,{writable:!0,value:""}),e!=null)if(typeof e=="string")this.applyFromObject(JSON.parse(e));else if(no(this,R$)[R$](e))this.applyFromObject(e);else throw new Error("Instance cannot be created on an unknown value, check the content being passed. got: "+typeof e)}applyFromObject(e={}){const n=e;n.title!==void 0&&(this.title=n.title),n.description!==void 0&&(this.description=n.description),n.uniqueId!==void 0&&(this.uniqueId=n.uniqueId),n.slug!==void 0&&(this.slug=n.slug)}toJSON(){return{title:no(this,fp)[fp],description:no(this,dp)[dp],uniqueId:no(this,hp)[hp],slug:no(this,pp)[pp]}}toString(){return JSON.stringify(this)}static get Fields(){return{title:"title",description:"description",uniqueId:"uniqueId",slug:"slug"}}static from(e){return new Xp(e)}static with(e){return new Xp(e)}copyWith(e){return new Xp({...this.toJSON(),...e})}clone(){return new Xp(this.toJSON())}}function iZ(t){const e=globalThis,n=typeof e.Buffer<"u"&&typeof e.Buffer.isBuffer=="function"&&e.Buffer.isBuffer(t),r=typeof e.Blob<"u"&&t instanceof e.Blob;return t&&typeof t=="object"&&!Array.isArray(t)&&!n&&!(t instanceof ArrayBuffer)&&!r}const aZ=()=>{var _;const{goBack:t,state:e,push:n}=Br(),{locale:r}=xi(),{onComplete:i}=gb(),o=XX(),u=e==null?void 0:e.totpUrl,{data:l,isLoading:d}=rZ({}),h=((_=l==null?void 0:l.data)==null?void 0:_.items)||[],g=Kn(xr),y=sessionStorage.getItem("workspace_type_id"),w=P=>{o.mutateAsync(new Ou({...P,value:e==null?void 0:e.value,workspaceTypeId:O,type:e==null?void 0:e.type,sessionSecret:e==null?void 0:e.sessionSecret})).then(C).catch(k=>{b==null||b.setErrors(Iy(k))})},b=ql({initialValues:{},onSubmit:w});T.useEffect(()=>{b==null||b.setFieldValue(Ou.Fields.value,e==null?void 0:e.value)},[e==null?void 0:e.value]);const C=P=>{P.data.item.session?i(P):P.data.item.continueToTotp&&n(`/${r}/selfservice/totp-setup`,void 0,{totpUrl:P.data.item.totpUrl||u,forcedTotp:P.data.item.forcedTotp,password:b.values.password,value:e==null?void 0:e.value})},[E,$]=T.useState("");let O=h.length===1?h[0].uniqueId:E;return y&&(O=y),{mutation:o,isLoading:d,form:b,setSelectedWorkspaceType:$,totpUrl:u,workspaceTypeId:O,submit:w,goBack:t,s:g,workspaceTypes:h,state:e}},oZ=({})=>{const{goBack:t,mutation:e,form:n,workspaceTypes:r,workspaceTypeId:i,isLoading:o,setSelectedWorkspaceType:u,s:l}=aZ();return o?N.jsx("div",{className:"signin-form-container",children:N.jsx(a7,{})}):r.length===0?N.jsxs("div",{className:"signin-form-container",children:[N.jsx("h1",{children:l.registerationNotPossible}),N.jsx("p",{children:l.registerationNotPossibleLine1}),N.jsx("p",{children:l.registerationNotPossibleLine2})]}):r.length>=2&&!i?N.jsxs("div",{className:"signin-form-container fadein",style:{animation:"fadein 1s"},children:[N.jsx("h1",{children:l.completeYourAccount}),N.jsx("p",{children:l.completeYourAccountDescription}),N.jsx("div",{className:" ",children:r.map(d=>N.jsxs("div",{className:"mt-3",children:[N.jsx("h2",{children:d.title}),N.jsx("p",{children:d.description}),N.jsx("button",{className:"btn btn-outline-primary w-100",onClick:()=>{u(d.uniqueId)},children:"Select"},d.uniqueId)]},d.uniqueId))})]}):N.jsxs("div",{className:"signin-form-container fadein",style:{animation:"fadein 1s"},children:[N.jsx("h1",{children:l.completeYourAccount}),N.jsx("p",{children:l.completeYourAccountDescription}),N.jsx(Jo,{query:e}),N.jsx(sZ,{form:n,mutation:e}),N.jsx("button",{id:"go-step-back",onClick:t,className:"bg-transparent border-0",children:l.cancelStep})]})},sZ=({form:t,mutation:e})=>{const n=Kn(xr),r=!t.values.firstName||!t.values.lastName||!t.values.password||t.values.password.length<6;return N.jsxs("form",{onSubmit:i=>{i.preventDefault(),t.submitForm()},children:[N.jsx(zo,{value:t.values.firstName,label:n.firstName,id:"first-name-input",autoFocus:!0,errorMessage:t.errors.firstName,onChange:i=>t.setFieldValue(Ou.Fields.firstName,i,!1)}),N.jsx(zo,{value:t.values.lastName,label:n.lastName,id:"last-name-input",errorMessage:t.errors.lastName,onChange:i=>t.setFieldValue(Ou.Fields.lastName,i,!1)}),N.jsx(zo,{type:"password",value:t.values.password,label:n.password,id:"password-input",errorMessage:t.errors.password,onChange:i=>t.setFieldValue(Ou.Fields.password,i,!1)}),N.jsx(Kf,{className:"btn btn-primary w-100 d-block mb-2",mutation:e,id:"submit-form",disabled:r,children:n.continue})]})};var V1;function gi(t,e){if(!{}.hasOwnProperty.call(t,e))throw new TypeError("attempted to use private field on non-instance");return t}var uZ=0;function Tm(t){return"__private_"+uZ+++"_"+t}const lZ=t=>{const n=Ma()??void 0,[r,i]=T.useState(!1),[o,u]=T.useState();return{...Ur({mutationFn:h=>(i(!1),nd.Fetch({body:h,headers:t==null?void 0:t.headers},{creatorFn:t==null?void 0:t.creatorFn,qs:t==null?void 0:t.qs,ctx:n,onMessage:t==null?void 0:t.onMessage,overrideUrl:t==null?void 0:t.overrideUrl}).then(g=>(g.done.then(()=>{i(!0)}),u(g.response),g.response.result)))}),isCompleted:r,response:o}};class nd{}V1=nd;nd.URL="/workspace/passport/request-otp";nd.NewUrl=t=>ma(V1.URL,void 0,t);nd.Method="post";nd.Fetch$=async(t,e,n,r)=>ha(r??V1.NewUrl(t),{method:V1.Method,...n||{}},e);nd.Fetch=async(t,{creatorFn:e,qs:n,ctx:r,onMessage:i,overrideUrl:o}={creatorFn:u=>new Zp(u)})=>{e=e||(l=>new Zp(l));const u=await V1.Fetch$(n,r,t,o);return pa(u,l=>{const d=new Ui;return e&&d.setCreator(e),d.inject(l),d},i,t==null?void 0:t.signal)};nd.Definition={name:"ClassicPassportRequestOtp",cliName:"otp-request",url:"/workspace/passport/request-otp",method:"post",description:"Triggers an otp request, and will send an sms or email to the passport. This endpoint is not used for login, but rather makes a request at initial step. Later you can call classicPassportOtp to get in.",in:{fields:[{name:"value",description:"Passport value (email, phone number) which would be receiving the otp code.",type:"string",tags:{validate:"required"}}]},out:{envelope:"GResponse",fields:[{name:"suspendUntil",type:"int64"},{name:"validUntil",type:"int64"},{name:"blockedUntil",type:"int64"},{name:"secondsToUnblock",description:"The amount of time left to unblock for next request",type:"int64"}]}};var mp=Tm("value"),P$=Tm("isJsonAppliable");class ay{get value(){return gi(this,mp)[mp]}set value(e){gi(this,mp)[mp]=String(e)}setValue(e){return this.value=e,this}constructor(e=void 0){if(Object.defineProperty(this,P$,{value:cZ}),Object.defineProperty(this,mp,{writable:!0,value:""}),e!=null)if(typeof e=="string")this.applyFromObject(JSON.parse(e));else if(gi(this,P$)[P$](e))this.applyFromObject(e);else throw new Error("Instance cannot be created on an unknown value, check the content being passed. got: "+typeof e)}applyFromObject(e={}){const n=e;n.value!==void 0&&(this.value=n.value)}toJSON(){return{value:gi(this,mp)[mp]}}toString(){return JSON.stringify(this)}static get Fields(){return{value:"value"}}static from(e){return new ay(e)}static with(e){return new ay(e)}copyWith(e){return new ay({...this.toJSON(),...e})}clone(){return new ay(this.toJSON())}}function cZ(t){const e=globalThis,n=typeof e.Buffer<"u"&&typeof e.Buffer.isBuffer=="function"&&e.Buffer.isBuffer(t),r=typeof e.Blob<"u"&&t instanceof e.Blob;return t&&typeof t=="object"&&!Array.isArray(t)&&!n&&!(t instanceof ArrayBuffer)&&!r}var gp=Tm("suspendUntil"),yp=Tm("validUntil"),vp=Tm("blockedUntil"),bp=Tm("secondsToUnblock"),I$=Tm("isJsonAppliable");class Zp{get suspendUntil(){return gi(this,gp)[gp]}set suspendUntil(e){const r=typeof e=="number"?e:Number(e);Number.isNaN(r)||(gi(this,gp)[gp]=r)}setSuspendUntil(e){return this.suspendUntil=e,this}get validUntil(){return gi(this,yp)[yp]}set validUntil(e){const r=typeof e=="number"?e:Number(e);Number.isNaN(r)||(gi(this,yp)[yp]=r)}setValidUntil(e){return this.validUntil=e,this}get blockedUntil(){return gi(this,vp)[vp]}set blockedUntil(e){const r=typeof e=="number"?e:Number(e);Number.isNaN(r)||(gi(this,vp)[vp]=r)}setBlockedUntil(e){return this.blockedUntil=e,this}get secondsToUnblock(){return gi(this,bp)[bp]}set secondsToUnblock(e){const r=typeof e=="number"?e:Number(e);Number.isNaN(r)||(gi(this,bp)[bp]=r)}setSecondsToUnblock(e){return this.secondsToUnblock=e,this}constructor(e=void 0){if(Object.defineProperty(this,I$,{value:fZ}),Object.defineProperty(this,gp,{writable:!0,value:0}),Object.defineProperty(this,yp,{writable:!0,value:0}),Object.defineProperty(this,vp,{writable:!0,value:0}),Object.defineProperty(this,bp,{writable:!0,value:0}),e!=null)if(typeof e=="string")this.applyFromObject(JSON.parse(e));else if(gi(this,I$)[I$](e))this.applyFromObject(e);else throw new Error("Instance cannot be created on an unknown value, check the content being passed. got: "+typeof e)}applyFromObject(e={}){const n=e;n.suspendUntil!==void 0&&(this.suspendUntil=n.suspendUntil),n.validUntil!==void 0&&(this.validUntil=n.validUntil),n.blockedUntil!==void 0&&(this.blockedUntil=n.blockedUntil),n.secondsToUnblock!==void 0&&(this.secondsToUnblock=n.secondsToUnblock)}toJSON(){return{suspendUntil:gi(this,gp)[gp],validUntil:gi(this,yp)[yp],blockedUntil:gi(this,vp)[vp],secondsToUnblock:gi(this,bp)[bp]}}toString(){return JSON.stringify(this)}static get Fields(){return{suspendUntil:"suspendUntil",validUntil:"validUntil",blockedUntil:"blockedUntil",secondsToUnblock:"secondsToUnblock"}}static from(e){return new Zp(e)}static with(e){return new Zp(e)}copyWith(e){return new Zp({...this.toJSON(),...e})}clone(){return new Zp(this.toJSON())}}function fZ(t){const e=globalThis,n=typeof e.Buffer<"u"&&typeof e.Buffer.isBuffer=="function"&&e.Buffer.isBuffer(t),r=typeof e.Blob<"u"&&t instanceof e.Blob;return t&&typeof t=="object"&&!Array.isArray(t)&&!n&&!(t instanceof ArrayBuffer)&&!r}const dZ=()=>{const t=Kn(xr),{goBack:e,state:n,push:r}=Br(),{locale:i}=xi(),{onComplete:o}=gb(),u=o7(),l=n==null?void 0:n.canContinueOnOtp,d=lZ(),h=b=>{u.mutateAsync(new Ds({value:b.value,password:b.password})).then(w).catch(C=>{g==null||g.setErrors(Iy(C))})},g=ql({initialValues:{},onSubmit:h}),y=()=>{d.mutateAsync(new ay({value:g.values.value})).then(b=>{r("../otp",void 0,{value:g.values.value})}).catch(b=>{b.error.message==="OtaRequestBlockedUntil"&&r("../otp",void 0,{value:g.values.value})})};T.useEffect(()=>{n!=null&&n.value&&g.setFieldValue(Ds.Fields.value,n.value)},[n==null?void 0:n.value]);const w=b=>{var C,E;b.data.item.session?o(b):(C=b.data.item.next)!=null&&C.includes("enter-totp")?r(`/${i}/selfservice/totp-enter`,void 0,{value:g.values.value,password:g.values.password}):(E=b.data.item.next)!=null&&E.includes("setup-totp")&&r(`/${i}/selfservice/totp-setup`,void 0,{totpUrl:b.data.item.totpUrl,forcedTotp:!0,password:g.values.password,value:n==null?void 0:n.value})};return{mutation:u,otpEnabled:l,continueWithOtp:y,form:g,submit:h,goBack:e,s:t}},hZ=({})=>{const{goBack:t,mutation:e,form:n,continueWithOtp:r,otpEnabled:i,s:o}=dZ();return N.jsxs("div",{className:"signin-form-container",children:[N.jsx("h1",{children:o.enterPassword}),N.jsx("p",{children:o.enterPasswordDescription}),N.jsx(Jo,{query:e}),N.jsx(pZ,{form:n,mutation:e,continueWithOtp:r,otpEnabled:i}),N.jsx("button",{id:"go-back-button",onClick:t,className:"btn bg-transparent w-100 mt-4",children:o.anotherAccount})]})},pZ=({form:t,mutation:e,otpEnabled:n,continueWithOtp:r})=>{const i=Kn(xr),o=!t.values.value||!t.values.password;return N.jsxs("form",{onSubmit:u=>{u.preventDefault(),t.submitForm()},children:[N.jsx(zo,{type:"password",value:t.values.password,label:i.password,id:"password-input",autoFocus:!0,errorMessage:t.errors.password,onChange:u=>t.setFieldValue(Ds.Fields.password,u,!1)}),N.jsx(Kf,{className:"btn btn-primary w-100 d-block mb-2",mutation:e,id:"submit-form",disabled:o,children:i.continue}),n&&N.jsx("button",{onClick:r,className:"bg-transparent border-0 mt-3 mb-3",children:i.useOneTimePassword})]})};var G1;function Cr(t,e){if(!{}.hasOwnProperty.call(t,e))throw new TypeError("attempted to use private field on non-instance");return t}var mZ=0;function rd(t){return"__private_"+mZ+++"_"+t}const gZ=t=>{const e=Ma(),n=(t==null?void 0:t.ctx)??e??void 0,[r,i]=T.useState(!1),[o,u]=T.useState();return{...Ur({mutationFn:h=>(i(!1),id.Fetch({body:h,headers:t==null?void 0:t.headers},{creatorFn:t==null?void 0:t.creatorFn,qs:t==null?void 0:t.qs,ctx:n,onMessage:t==null?void 0:t.onMessage,overrideUrl:t==null?void 0:t.overrideUrl}).then(g=>(g.done.then(()=>{i(!0)}),u(g.response),g.response.result))),...t||{}}),isCompleted:r,response:o}};class id{}G1=id;id.URL="/workspace/passport/otp";id.NewUrl=t=>ma(G1.URL,void 0,t);id.Method="post";id.Fetch$=async(t,e,n,r)=>ha(r??G1.NewUrl(t),{method:G1.Method,...n||{}},e);id.Fetch=async(t,{creatorFn:e,qs:n,ctx:r,onMessage:i,overrideUrl:o}={creatorFn:u=>new tm(u)})=>{e=e||(l=>new tm(l));const u=await G1.Fetch$(n,r,t,o);return pa(u,l=>{const d=new Ui;return e&&d.setCreator(e),d.inject(l),d},i,t==null?void 0:t.signal)};id.Definition={name:"ClassicPassportOtp",cliName:"otp",url:"/workspace/passport/otp",method:"post",description:"Authenticate the user publicly for classic methods using communication service, such as sms, call, or email. You need to call classicPassportRequestOtp beforehand to send a otp code, and then validate it with this API. Also checkClassicPassport action might already sent the otp, so make sure you don't send it twice.",in:{fields:[{name:"value",type:"string",tags:{validate:"required"}},{name:"otp",type:"string",tags:{validate:"required"}}]},out:{envelope:"GResponse",fields:[{name:"session",description:"Upon successful authentication, there will be a session dto generated, which is a ground information of authorized user and can be stored in front-end.",type:"one?",target:"UserSessionDto"},{name:"totpUrl",description:"If time based otp is available, we add it response to make it easier for ui.",type:"string"},{name:"sessionSecret",description:"The session secret will be used to call complete user registration api.",type:"string"},{name:"continueWithCreation",description:"If return true, means the OTP is correct and user needs to be created before continue the authentication process.",type:"bool"}]}};var wp=rd("value"),Sp=rd("otp"),N$=rd("isJsonAppliable");class em{get value(){return Cr(this,wp)[wp]}set value(e){Cr(this,wp)[wp]=String(e)}setValue(e){return this.value=e,this}get otp(){return Cr(this,Sp)[Sp]}set otp(e){Cr(this,Sp)[Sp]=String(e)}setOtp(e){return this.otp=e,this}constructor(e=void 0){if(Object.defineProperty(this,N$,{value:yZ}),Object.defineProperty(this,wp,{writable:!0,value:""}),Object.defineProperty(this,Sp,{writable:!0,value:""}),e!=null)if(typeof e=="string")this.applyFromObject(JSON.parse(e));else if(Cr(this,N$)[N$](e))this.applyFromObject(e);else throw new Error("Instance cannot be created on an unknown value, check the content being passed. got: "+typeof e)}applyFromObject(e={}){const n=e;n.value!==void 0&&(this.value=n.value),n.otp!==void 0&&(this.otp=n.otp)}toJSON(){return{value:Cr(this,wp)[wp],otp:Cr(this,Sp)[Sp]}}toString(){return JSON.stringify(this)}static get Fields(){return{value:"value",otp:"otp"}}static from(e){return new em(e)}static with(e){return new em(e)}copyWith(e){return new em({...this.toJSON(),...e})}clone(){return new em(this.toJSON())}}function yZ(t){const e=globalThis,n=typeof e.Buffer<"u"&&typeof e.Buffer.isBuffer=="function"&&e.Buffer.isBuffer(t),r=typeof e.Blob<"u"&&t instanceof e.Blob;return t&&typeof t=="object"&&!Array.isArray(t)&&!n&&!(t instanceof ArrayBuffer)&&!r}var bl=rd("session"),Cp=rd("totpUrl"),$p=rd("sessionSecret"),Ep=rd("continueWithCreation"),M$=rd("isJsonAppliable");class tm{get session(){return Cr(this,bl)[bl]}set session(e){e instanceof Nn?Cr(this,bl)[bl]=e:Cr(this,bl)[bl]=new Nn(e)}setSession(e){return this.session=e,this}get totpUrl(){return Cr(this,Cp)[Cp]}set totpUrl(e){Cr(this,Cp)[Cp]=String(e)}setTotpUrl(e){return this.totpUrl=e,this}get sessionSecret(){return Cr(this,$p)[$p]}set sessionSecret(e){Cr(this,$p)[$p]=String(e)}setSessionSecret(e){return this.sessionSecret=e,this}get continueWithCreation(){return Cr(this,Ep)[Ep]}set continueWithCreation(e){Cr(this,Ep)[Ep]=!!e}setContinueWithCreation(e){return this.continueWithCreation=e,this}constructor(e=void 0){if(Object.defineProperty(this,M$,{value:vZ}),Object.defineProperty(this,bl,{writable:!0,value:void 0}),Object.defineProperty(this,Cp,{writable:!0,value:""}),Object.defineProperty(this,$p,{writable:!0,value:""}),Object.defineProperty(this,Ep,{writable:!0,value:void 0}),e!=null)if(typeof e=="string")this.applyFromObject(JSON.parse(e));else if(Cr(this,M$)[M$](e))this.applyFromObject(e);else throw new Error("Instance cannot be created on an unknown value, check the content being passed. got: "+typeof e)}applyFromObject(e={}){const n=e;n.session!==void 0&&(this.session=n.session),n.totpUrl!==void 0&&(this.totpUrl=n.totpUrl),n.sessionSecret!==void 0&&(this.sessionSecret=n.sessionSecret),n.continueWithCreation!==void 0&&(this.continueWithCreation=n.continueWithCreation)}toJSON(){return{session:Cr(this,bl)[bl],totpUrl:Cr(this,Cp)[Cp],sessionSecret:Cr(this,$p)[$p],continueWithCreation:Cr(this,Ep)[Ep]}}toString(){return JSON.stringify(this)}static get Fields(){return{session:"session",totpUrl:"totpUrl",sessionSecret:"sessionSecret",continueWithCreation:"continueWithCreation"}}static from(e){return new tm(e)}static with(e){return new tm(e)}copyWith(e){return new tm({...this.toJSON(),...e})}clone(){return new tm(this.toJSON())}}function vZ(t){const e=globalThis,n=typeof e.Buffer<"u"&&typeof e.Buffer.isBuffer=="function"&&e.Buffer.isBuffer(t),r=typeof e.Blob<"u"&&t instanceof e.Blob;return t&&typeof t=="object"&&!Array.isArray(t)&&!n&&!(t instanceof ArrayBuffer)&&!r}const bZ=()=>{const{goBack:t,state:e,replace:n,push:r}=Br(),{locale:i}=xi(),o=Kn(xr),u=gZ({}),{onComplete:l}=gb(),d=y=>{u.mutateAsync(new em({...y,value:e.value})).then(g).catch(w=>{h==null||h.setErrors(Iy(w))})},h=ql({initialValues:{},onSubmit:d}),g=y=>{var w,b,C,E,$;(w=y.data)!=null&&w.item.session?l(y):(C=(b=y.data)==null?void 0:b.item)!=null&&C.continueWithCreation&&r(`/${i}/selfservice/complete`,void 0,{value:e.value,type:e.type,sessionSecret:(E=y.data.item)==null?void 0:E.sessionSecret,totpUrl:($=y.data.item)==null?void 0:$.totpUrl})};return{mutation:u,form:h,s:o,submit:d,goBack:t}},wZ=({})=>{const{goBack:t,mutation:e,form:n,s:r}=bZ();return N.jsxs("div",{className:"signin-form-container",children:[N.jsx("h1",{children:r.enterOtp}),N.jsx("p",{children:r.enterOtpDescription}),N.jsx(Jo,{query:e}),N.jsx(SZ,{form:n,mutation:e}),N.jsx("button",{id:"go-back-button",className:"btn bg-transparent w-100 mt-4",onClick:t,children:r.anotherAccount})]})},SZ=({form:t,mutation:e})=>{var i;const n=!t.values.otp,r=Kn(xr);return N.jsxs("form",{onSubmit:o=>{o.preventDefault(),t.submitForm()},children:[N.jsx(yb,{values:(i=t.values.otp)==null?void 0:i.split(""),onChange:o=>t.setFieldValue(em.Fields.otp,o,!1),className:"otp-react-code-input"}),N.jsx(Kf,{className:"btn btn-primary w-100 d-block mb-2",mutation:e,id:"submit-form",disabled:n,children:r.continue})]})};function bb(t){const e=T.useRef(),n=zf();T.useEffect(()=>{var h;t!=null&&t.data&&((h=e.current)==null||h.setValues(t.data))},[t==null?void 0:t.data]);const r=Br(),i=r.query.uniqueId,o=r.query.linkerId,u=!!i,{locale:l}=xi(),d=yn();return{router:r,t:d,isEditing:u,locale:l,queryClient:n,formik:e,uniqueId:i,linkerId:o}}function CZ(t,e){var r,i;let n=!1;for(const o of((r=t==null?void 0:t.role)==null?void 0:r.capabilities)||[])if(o.uniqueId===e||o.uniqueId==="root.*"||(i=o==null?void 0:o.uniqueId)!=null&&i.endsWith(".*")&&e.includes(o.uniqueId.replace("*",""))){n=!0;break}return n}function b7(t){for(var e=[],n=t.length,r,i=0;i>>0,e.push(String.fromCharCode(r));return e.join("")}function $Z(t,e,n,r,i){var o=new XMLHttpRequest;o.open(e,t),o.addEventListener("load",function(){var u=b7(this.responseText);u="data:application/text;base64,"+btoa(u),document.location=u},!1),o.setRequestHeader("Authorization",n),o.setRequestHeader("Workspace-Id",r),o.setRequestHeader("role-Id",i),o.overrideMimeType("application/octet-stream; charset=x-user-defined;"),o.send(null)}const EZ=({path:t})=>{yn();const{options:e}=T.useContext(En);C7(t?()=>{const n=e==null?void 0:e.headers;$Z(e.prefix+""+t,"GET",n.authorization||"",n["workspace-id"]||"",n["role-id"]||"")}:void 0,jn.ExportTable)};function wb(t,e){const n={[jn.NewEntity]:"n",[jn.NewChildEntity]:"n",[jn.EditEntity]:"e",[jn.SidebarToggle]:"m",[jn.ViewQuestions]:"q",[jn.Delete]:"Backspace",[jn.StopStart]:" ",[jn.ExportTable]:"x",[jn.CommonBack]:"Escape",[jn.Select1Index]:"1",[jn.Select2Index]:"2",[jn.Select3Index]:"3",[jn.Select4Index]:"4",[jn.Select5Index]:"5",[jn.Select6Index]:"6",[jn.Select7Index]:"7",[jn.Select8Index]:"8",[jn.Select9Index]:"9"};let r;return typeof t=="object"?r=t.map(i=>n[i]):typeof t=="string"&&(r=n[t]),xZ(r,e)}function xZ(t,e){T.useEffect(()=>{if(!t||t.length===0||!e)return;function n(r){var i=r||window.event,o=i.target||i.srcElement;const u=o.tagName.toUpperCase(),l=o.type;if(["TEXTAREA","SELECT"].includes(u)){r.key==="Escape"&&i.target.blur();return}if(u==="INPUT"&&(l==="text"||l==="password")){r.key==="Escape"&&i.target.blur();return}let d=!1;typeof t=="string"&&r.key===t?d=!0:Array.isArray(t)&&(d=t.includes(r.key)),d&&e&&e(r.key)}if(e)return window.addEventListener("keyup",n),()=>{window.removeEventListener("keyup",n)}},[e,t])}const w7=Ae.createContext({setActionMenu(){},removeActionMenu(){},removeActionMenuItems(t,e){},refs:[]});function OZ(){const t=T.useContext(w7);return{addActions:(i,o)=>(t.setActionMenu(i,o),()=>t.removeActionMenu(i)),removeActionMenu:i=>{t.removeActionMenu(i)},deleteActions:(i,o)=>{t.removeActionMenuItems(i,o)}}}function Sb(t,e,n,r){const i=T.useContext(w7);return T.useEffect(()=>(i.setActionMenu(t,e.filter(o=>o!==void 0)),()=>{i.removeActionMenu(t)}),[]),{addActions(o,u=t){i.setActionMenu(u,o)},deleteActions(o,u=t){i.removeActionMenuItems(u,o)}}}function TZ({onCancel:t,onSave:e,access:n}){const{selectedUrw:r}=T.useContext(En),i=T.useMemo(()=>n?(r==null?void 0:r.workspaceId)!=="root"&&(n!=null&&n.onlyRoot)?!1:!(n!=null&&n.permissions)||n.permissions.length===0?!0:CZ(r,n.permissions[0]):!0,[r,n]),o=yn();Sb("editing-core",(({onSave:l,onCancel:d})=>i?[{icon:"",label:o.common.save,uniqueActionKey:"save",onSelect:()=>{l()}},d&&{icon:"",label:o.common.cancel,uniqueActionKey:"cancel",onSelect:()=>{d()}}]:[])({onCancel:t,onSave:e}))}function _Z(t,e){const n=yn();wb(e,t),Sb("commonEntityActions",[t&&{icon:My.add,label:n.actions.new,uniqueActionKey:"new",onSelect:t}])}function S7(t,e){const n=yn();wb(e,t),Sb("navigation",[t&&{icon:My.left,label:n.actions.back,uniqueActionKey:"back",className:"navigator-back-button",onSelect:t}])}function AZ(){const{session:t,options:e}=T.useContext(En);C7(()=>{var n=new XMLHttpRequest;n.open("GET",e.prefix+"roles/export"),n.addEventListener("load",function(){var i=b7(this.responseText);i="data:application/text;base64,"+btoa(i),document.location=i},!1);const r=e==null?void 0:e.headers;n.setRequestHeader("Authorization",r.authorization||""),n.setRequestHeader("Workspace-Id",r["workspace-id"]||""),n.setRequestHeader("role-Id",r["role-id"]||""),n.overrideMimeType("application/octet-stream; charset=x-user-defined;"),n.send(null)},jn.ExportTable)}function C7(t,e){const n=yn();wb(e,t),Sb("exportTools",[t&&{icon:My.export,label:n.actions.new,uniqueActionKey:"export",onSelect:t}])}function RZ(t,e){const n=yn();wb(e,t),Sb("commonEntityActions",[t&&{icon:My.edit,label:n.actions.edit,uniqueActionKey:"new",onSelect:t}])}const PZ=Ae.createContext({setPageTitle(){},removePageTitle(){},ref:{title:""}});function $7(t){const e=T.useContext(PZ);T.useEffect(()=>(e.setPageTitle(t||""),()=>{e.removePageTitle("")}),[t])}const ET=({data:t,Form:e,getSingleHook:n,postHook:r,onCancel:i,onFinishUriResolver:o,disableOnGetFailed:u,patchHook:l,onCreateTitle:d,onEditTitle:h,setInnerRef:g,beforeSetValues:y,forceEdit:w,onlyOnRoot:b,customClass:C,beforeSubmit:E,onSuccessPatchOrPost:$})=>{var te,be,Se;const[O,_]=T.useState(),{router:P,isEditing:k,locale:R,formik:L,t:F}=bb({data:t}),q=T.useRef({});S7(i,jn.CommonBack);const{selectedUrw:Y}=T.useContext(En);$7((k||w?h:d)||"");const{query:Q}=n;T.useEffect(()=>{var j,V,H;(j=Q.data)!=null&&j.data&&((V=L.current)==null||V.setValues(y?y({...Q.data.data}):{...Q.data.data}),_((H=Q.data)==null?void 0:H.data))},[Q.data]),T.useEffect(()=>{var j;(j=L.current)==null||j.setSubmitting((r==null?void 0:r.mutation.isLoading)||(l==null?void 0:l.mutation.isLoading))},[r==null?void 0:r.isLoading,l==null?void 0:l.isLoading]);const ue=(j,V)=>{let H=q.current;H.uniqueId=j.uniqueId,E&&(H=E(H)),(k||w?l==null?void 0:l.submit(H,V):r==null?void 0:r.submit(H,V)).then(G=>{var X;(X=G.data)!=null&&X.uniqueId&&($?$(G):o?P.goBackOrDefault(o(G,R)):eG("Done",{type:"success"}))}).catch(G=>void 0)},me=((te=n==null?void 0:n.query)==null?void 0:te.isLoading)||!1||((be=r==null?void 0:r.query)==null?void 0:be.isLoading)||!1||((Se=l==null?void 0:l.query)==null?void 0:Se.isLoading)||!1;return TZ({onSave(){var j;(j=L.current)==null||j.submitForm()}}),b&&Y.workspaceId!=="root"?N.jsx("div",{children:F.onlyOnRoot}):N.jsx($q,{innerRef:j=>{j&&(L.current=j,g&&g(j))},initialValues:{},onSubmit:ue,children:j=>{var V,H,ie,G;return N.jsx("form",{onSubmit:X=>{X.preventDefault(),j.submitForm()},className:C??"headless-form-entity-manager",children:N.jsxs("fieldset",{disabled:me,children:[N.jsx("div",{style:{marginBottom:"15px"},children:N.jsx(Jo,{query:(V=r==null?void 0:r.mutation)!=null&&V.isError?r.mutation:(H=l==null?void 0:l.mutation)!=null&&H.isError?l.mutation:(ie=n==null?void 0:n.query)!=null&&ie.isError?n.query:null})}),u===!0&&((G=n==null?void 0:n.query)!=null&&G.isError)?null:N.jsx(e,{isEditing:k,initialData:O,form:{...j,setValues:(X,fe)=>{for(const $e in X)$r.set(q.current,$e,X[$e]);return j.setValues(X)},setFieldValue:(X,fe,$e)=>($r.set(q.current,X,fe),j.setFieldValue(X,fe,$e))}}),N.jsx("button",{type:"submit",className:"d-none"})]})})}})};function E7({queryOptions:t,execFnOverride:e,query:n,queryClient:r,unauthorized:i}){var $;const{options:o,execFn:u}=T.useContext(En),l=e?e(o):u?u(o):Ei(o);let h=`${"/public-join-key/:uniqueId".substr(1)}?${new URLSearchParams(Na(n)).toString()}`,g=!0;h=h.replace(":uniqueId",n[":uniqueId".replace(":","")]),n[":uniqueId".replace(":","")]===void 0&&(g=!1);const y=()=>l("GET",h),w=($=o==null?void 0:o.headers)==null?void 0:$.authorization,b=w!="undefined"&&w!=null&&w!=null&&w!="null"&&!!w;let C=!0;return g?!b&&!i&&(C=!1):C=!1,{query:Yo([o,n,"*abac.PublicJoinKeyEntity"],y,{cacheTime:1001,retry:!1,keepPreviousData:!0,enabled:C,...t||{}})}}function IZ(t){let{queryClient:e,query:n,execFnOverride:r}=t||{};n=n||{};const{options:i,execFn:o}=T.useContext(En),u=r?r(i):o?o(i):Ei(i);let d=`${"/public-join-key".substr(1)}?${new URLSearchParams(Na(n)).toString()}`;const g=Ur(b=>u("PATCH",d,b)),y=(b,C)=>{var E;return b?(b.data&&(C!=null&&C.data)&&(b.data.items=[C.data,...((E=b==null?void 0:b.data)==null?void 0:E.items)||[]]),b):{data:{items:[]}}};return{mutation:g,submit:(b,C)=>new Promise((E,$)=>{g.mutate(b,{onSuccess(O){e==null||e.setQueriesData("*abac.PublicJoinKeyEntity",_=>y(_,O)),E(O)},onError(O){C==null||C.setErrors(Mu(O)),$(O)}})}),fnUpdater:y}}function NZ(t){let{queryClient:e,query:n,execFnOverride:r}=t||{};n=n||{};const{options:i,execFn:o}=T.useContext(En),u=r?r(i):o?o(i):Ei(i);let d=`${"/public-join-key".substr(1)}?${new URLSearchParams(Na(n)).toString()}`;const g=Ur(b=>u("POST",d,b)),y=(b,C)=>{var E;return b?(b.data&&(C!=null&&C.data)&&(b.data.items=[C.data,...((E=b==null?void 0:b.data)==null?void 0:E.items)||[]]),b):{data:{items:[]}}};return{mutation:g,submit:(b,C)=>new Promise((E,$)=>{g.mutate(b,{onSuccess(O){e==null||e.setQueryData("*abac.PublicJoinKeyEntity",_=>y(_,O)),E(O)},onError(O){C==null||C.setErrors(Mu(O)),$(O)}})}),fnUpdater:y}}function ym(t){"@babel/helpers - typeof";return ym=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},ym(t)}function MZ(t,e){if(ym(t)!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var r=n.call(t,e);if(ym(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function x7(t){var e=MZ(t,"string");return ym(e)=="symbol"?e:String(e)}function oy(t,e,n){return e=x7(e),e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function RP(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),n.push.apply(n,r)}return n}function ct(t){for(var e=1;et.length)&&(e=t.length);for(var n=0,r=new Array(e);n0?Ci(ky,--Ia):0,$y--,Rr===10&&($y=1,g3--),Rr}function lo(){return Rr=Ia2||K1(Rr)>3?"":" "}function nee(t,e){for(;--e&&lo()&&!(Rr<48||Rr>102||Rr>57&&Rr<65||Rr>70&&Rr<97););return Cb(t,Zw()+(e<6&&Au()==32&&lo()==32))}function sO(t){for(;lo();)switch(Rr){case t:return Ia;case 34:case 39:t!==34&&t!==39&&sO(Rr);break;case 40:t===41&&sO(t);break;case 92:lo();break}return Ia}function ree(t,e){for(;lo()&&t+Rr!==57;)if(t+Rr===84&&Au()===47)break;return"/*"+Cb(e,Ia-1)+"*"+m3(t===47?t:lo())}function iee(t){for(;!K1(Au());)lo();return Cb(t,Ia)}function aee(t){return N7(tS("",null,null,null,[""],t=I7(t),0,[0],t))}function tS(t,e,n,r,i,o,u,l,d){for(var h=0,g=0,y=u,w=0,b=0,C=0,E=1,$=1,O=1,_=0,P="",k=i,R=o,L=r,F=P;$;)switch(C=_,_=lo()){case 40:if(C!=108&&Ci(F,y-1)==58){oO(F+=bn(eS(_),"&","&\f"),"&\f")!=-1&&(O=-1);break}case 34:case 39:case 91:F+=eS(_);break;case 9:case 10:case 13:case 32:F+=tee(C);break;case 92:F+=nee(Zw()-1,7);continue;case 47:switch(Au()){case 42:case 47:Aw(oee(ree(lo(),Zw()),e,n),d);break;default:F+="/"}break;case 123*E:l[h++]=Eu(F)*O;case 125*E:case 59:case 0:switch(_){case 0:case 125:$=0;case 59+g:O==-1&&(F=bn(F,/\f/g,"")),b>0&&Eu(F)-y&&Aw(b>32?NP(F+";",r,n,y-1):NP(bn(F," ","")+";",r,n,y-2),d);break;case 59:F+=";";default:if(Aw(L=IP(F,e,n,h,g,i,l,P,k=[],R=[],y),o),_===123)if(g===0)tS(F,e,L,L,k,o,y,l,R);else switch(w===99&&Ci(F,3)===110?100:w){case 100:case 108:case 109:case 115:tS(t,L,L,r&&Aw(IP(t,L,L,0,0,i,l,P,i,k=[],y),R),i,R,y,l,r?k:R);break;default:tS(F,L,L,L,[""],R,0,l,R)}}h=g=b=0,E=O=1,P=F="",y=u;break;case 58:y=1+Eu(F),b=C;default:if(E<1){if(_==123)--E;else if(_==125&&E++==0&&eee()==125)continue}switch(F+=m3(_),_*E){case 38:O=g>0?1:(F+="\f",-1);break;case 44:l[h++]=(Eu(F)-1)*O,O=1;break;case 64:Au()===45&&(F+=eS(lo())),w=Au(),g=y=Eu(P=F+=iee(Zw())),_++;break;case 45:C===45&&Eu(F)==2&&(E=0)}}return o}function IP(t,e,n,r,i,o,u,l,d,h,g){for(var y=i-1,w=i===0?o:[""],b=_T(w),C=0,E=0,$=0;C0?w[O]+" "+_:bn(_,/&\f/g,w[O])))&&(d[$++]=P);return y3(t,e,n,i===0?OT:l,d,h,g)}function oee(t,e,n){return y3(t,e,n,_7,m3(ZZ()),W1(t,2,-2),0)}function NP(t,e,n,r){return y3(t,e,n,TT,W1(t,0,r),W1(t,r+1,-1),r)}function vy(t,e){for(var n="",r=_T(t),i=0;i6)switch(Ci(t,e+1)){case 109:if(Ci(t,e+4)!==45)break;case 102:return bn(t,/(.+:)(.+)-([^]+)/,"$1"+vn+"$2-$3$1"+AS+(Ci(t,e+3)==108?"$3":"$2-$3"))+t;case 115:return~oO(t,"stretch")?M7(bn(t,"stretch","fill-available"),e)+t:t}break;case 4949:if(Ci(t,e+1)!==115)break;case 6444:switch(Ci(t,Eu(t)-3-(~oO(t,"!important")&&10))){case 107:return bn(t,":",":"+vn)+t;case 101:return bn(t,/(.+:)([^;!]+)(;|!.+)?/,"$1"+vn+(Ci(t,14)===45?"inline-":"")+"box$3$1"+vn+"$2$3$1"+ki+"$2box$3")+t}break;case 5936:switch(Ci(t,e+11)){case 114:return vn+t+ki+bn(t,/[svh]\w+-[tblr]{2}/,"tb")+t;case 108:return vn+t+ki+bn(t,/[svh]\w+-[tblr]{2}/,"tb-rl")+t;case 45:return vn+t+ki+bn(t,/[svh]\w+-[tblr]{2}/,"lr")+t}return vn+t+ki+t+t}return t}var mee=function(e,n,r,i){if(e.length>-1&&!e.return)switch(e.type){case TT:e.return=M7(e.value,e.length);break;case A7:return vy([X0(e,{value:bn(e.value,"@","@"+vn)})],i);case OT:if(e.length)return XZ(e.props,function(o){switch(QZ(o,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return vy([X0(e,{props:[bn(o,/:(read-\w+)/,":"+AS+"$1")]})],i);case"::placeholder":return vy([X0(e,{props:[bn(o,/:(plac\w+)/,":"+vn+"input-$1")]}),X0(e,{props:[bn(o,/:(plac\w+)/,":"+AS+"$1")]}),X0(e,{props:[bn(o,/:(plac\w+)/,ki+"input-$1")]})],i)}return""})}},gee=[mee],yee=function(e){var n=e.key;if(n==="css"){var r=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(r,function(E){var $=E.getAttribute("data-emotion");$.indexOf(" ")!==-1&&(document.head.appendChild(E),E.setAttribute("data-s",""))})}var i=e.stylisPlugins||gee,o={},u,l=[];u=e.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+n+' "]'),function(E){for(var $=E.getAttribute("data-emotion").split(" "),O=1;O<$.length;O++)o[$[O]]=!0;l.push(E)});var d,h=[hee,pee];{var g,y=[see,lee(function(E){g.insert(E)})],w=uee(h.concat(i,y)),b=function($){return vy(aee($),w)};d=function($,O,_,P){g=_,b($?$+"{"+O.styles+"}":O.styles),P&&(C.inserted[O.name]=!0)}}var C={key:n,sheet:new VZ({key:n,container:u,nonce:e.nonce,speedy:e.speedy,prepend:e.prepend,insertionPoint:e.insertionPoint}),nonce:e.nonce,inserted:o,registered:{},insert:d};return C.sheet.hydrate(l),C},vee=!0;function bee(t,e,n){var r="";return n.split(" ").forEach(function(i){t[i]!==void 0?e.push(t[i]+";"):r+=i+" "}),r}var k7=function(e,n,r){var i=e.key+"-"+n.name;(r===!1||vee===!1)&&e.registered[i]===void 0&&(e.registered[i]=n.styles)},wee=function(e,n,r){k7(e,n,r);var i=e.key+"-"+n.name;if(e.inserted[n.name]===void 0){var o=n;do e.insert(n===o?"."+i:"",o,e.sheet,!0),o=o.next;while(o!==void 0)}};function See(t){for(var e=0,n,r=0,i=t.length;i>=4;++r,i-=4)n=t.charCodeAt(r)&255|(t.charCodeAt(++r)&255)<<8|(t.charCodeAt(++r)&255)<<16|(t.charCodeAt(++r)&255)<<24,n=(n&65535)*1540483477+((n>>>16)*59797<<16),n^=n>>>24,e=(n&65535)*1540483477+((n>>>16)*59797<<16)^(e&65535)*1540483477+((e>>>16)*59797<<16);switch(i){case 3:e^=(t.charCodeAt(r+2)&255)<<16;case 2:e^=(t.charCodeAt(r+1)&255)<<8;case 1:e^=t.charCodeAt(r)&255,e=(e&65535)*1540483477+((e>>>16)*59797<<16)}return e^=e>>>13,e=(e&65535)*1540483477+((e>>>16)*59797<<16),((e^e>>>15)>>>0).toString(36)}var Cee={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1};function $ee(t){var e=Object.create(null);return function(n){return e[n]===void 0&&(e[n]=t(n)),e[n]}}var Eee=/[A-Z]|^ms/g,xee=/_EMO_([^_]+?)_([^]*?)_EMO_/g,D7=function(e){return e.charCodeAt(1)===45},kP=function(e){return e!=null&&typeof e!="boolean"},k$=$ee(function(t){return D7(t)?t:t.replace(Eee,"-$&").toLowerCase()}),DP=function(e,n){switch(e){case"animation":case"animationName":if(typeof n=="string")return n.replace(xee,function(r,i,o){return xu={name:i,styles:o,next:xu},i})}return Cee[e]!==1&&!D7(e)&&typeof n=="number"&&n!==0?n+"px":n};function Y1(t,e,n){if(n==null)return"";if(n.__emotion_styles!==void 0)return n;switch(typeof n){case"boolean":return"";case"object":{if(n.anim===1)return xu={name:n.name,styles:n.styles,next:xu},n.name;if(n.styles!==void 0){var r=n.next;if(r!==void 0)for(;r!==void 0;)xu={name:r.name,styles:r.styles,next:xu},r=r.next;var i=n.styles+";";return i}return Oee(t,e,n)}case"function":{if(t!==void 0){var o=xu,u=n(t);return xu=o,Y1(t,e,u)}break}}return n}function Oee(t,e,n){var r="";if(Array.isArray(n))for(var i=0;i=0)&&(n[i]=t[i]);return n}function Du(t,e){if(t==null)return{};var n=Bee(t,e),r,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(i=0;i=0)&&Object.prototype.propertyIsEnumerable.call(t,r)&&(n[r]=t[r])}return n}function jee(t,e){return e||(e=t.slice(0)),Object.freeze(Object.defineProperties(t,{raw:{value:Object.freeze(e)}}))}const qee=Math.min,Hee=Math.max,RS=Math.round,Rw=Math.floor,PS=t=>({x:t,y:t});function zee(t){return{...t,top:t.y,left:t.x,right:t.x+t.width,bottom:t.y+t.height}}function U7(t){return j7(t)?(t.nodeName||"").toLowerCase():"#document"}function Ml(t){var e;return(t==null||(e=t.ownerDocument)==null?void 0:e.defaultView)||window}function B7(t){var e;return(e=(j7(t)?t.ownerDocument:t.document)||window.document)==null?void 0:e.documentElement}function j7(t){return t instanceof Node||t instanceof Ml(t).Node}function Vee(t){return t instanceof Element||t instanceof Ml(t).Element}function PT(t){return t instanceof HTMLElement||t instanceof Ml(t).HTMLElement}function LP(t){return typeof ShadowRoot>"u"?!1:t instanceof ShadowRoot||t instanceof Ml(t).ShadowRoot}function q7(t){const{overflow:e,overflowX:n,overflowY:r,display:i}=IT(t);return/auto|scroll|overlay|hidden|clip/.test(e+r+n)&&!["inline","contents"].includes(i)}function Gee(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function Wee(t){return["html","body","#document"].includes(U7(t))}function IT(t){return Ml(t).getComputedStyle(t)}function Kee(t){if(U7(t)==="html")return t;const e=t.assignedSlot||t.parentNode||LP(t)&&t.host||B7(t);return LP(e)?e.host:e}function H7(t){const e=Kee(t);return Wee(e)?t.ownerDocument?t.ownerDocument.body:t.body:PT(e)&&q7(e)?e:H7(e)}function IS(t,e,n){var r;e===void 0&&(e=[]),n===void 0&&(n=!0);const i=H7(t),o=i===((r=t.ownerDocument)==null?void 0:r.body),u=Ml(i);return o?e.concat(u,u.visualViewport||[],q7(i)?i:[],u.frameElement&&n?IS(u.frameElement):[]):e.concat(i,IS(i,[],n))}function Yee(t){const e=IT(t);let n=parseFloat(e.width)||0,r=parseFloat(e.height)||0;const i=PT(t),o=i?t.offsetWidth:n,u=i?t.offsetHeight:r,l=RS(n)!==o||RS(r)!==u;return l&&(n=o,r=u),{width:n,height:r,$:l}}function NT(t){return Vee(t)?t:t.contextElement}function UP(t){const e=NT(t);if(!PT(e))return PS(1);const n=e.getBoundingClientRect(),{width:r,height:i,$:o}=Yee(e);let u=(o?RS(n.width):n.width)/r,l=(o?RS(n.height):n.height)/i;return(!u||!Number.isFinite(u))&&(u=1),(!l||!Number.isFinite(l))&&(l=1),{x:u,y:l}}const Jee=PS(0);function Qee(t){const e=Ml(t);return!Gee()||!e.visualViewport?Jee:{x:e.visualViewport.offsetLeft,y:e.visualViewport.offsetTop}}function Xee(t,e,n){return!1}function BP(t,e,n,r){e===void 0&&(e=!1);const i=t.getBoundingClientRect(),o=NT(t);let u=PS(1);e&&(u=UP(t));const l=Xee()?Qee(o):PS(0);let d=(i.left+l.x)/u.x,h=(i.top+l.y)/u.y,g=i.width/u.x,y=i.height/u.y;if(o){const w=Ml(o),b=r;let C=w,E=C.frameElement;for(;E&&r&&b!==C;){const $=UP(E),O=E.getBoundingClientRect(),_=IT(E),P=O.left+(E.clientLeft+parseFloat(_.paddingLeft))*$.x,k=O.top+(E.clientTop+parseFloat(_.paddingTop))*$.y;d*=$.x,h*=$.y,g*=$.x,y*=$.y,d+=P,h+=k,C=Ml(E),E=C.frameElement}}return zee({width:g,height:y,x:d,y:h})}function Zee(t,e){let n=null,r;const i=B7(t);function o(){var l;clearTimeout(r),(l=n)==null||l.disconnect(),n=null}function u(l,d){l===void 0&&(l=!1),d===void 0&&(d=1),o();const{left:h,top:g,width:y,height:w}=t.getBoundingClientRect();if(l||e(),!y||!w)return;const b=Rw(g),C=Rw(i.clientWidth-(h+y)),E=Rw(i.clientHeight-(g+w)),$=Rw(h),_={rootMargin:-b+"px "+-C+"px "+-E+"px "+-$+"px",threshold:Hee(0,qee(1,d))||1};let P=!0;function k(R){const L=R[0].intersectionRatio;if(L!==d){if(!P)return u();L?u(!1,L):r=setTimeout(()=>{u(!1,1e-7)},100)}P=!1}try{n=new IntersectionObserver(k,{..._,root:i.ownerDocument})}catch{n=new IntersectionObserver(k,_)}n.observe(t)}return u(!0),o}function ete(t,e,n,r){r===void 0&&(r={});const{ancestorScroll:i=!0,ancestorResize:o=!0,elementResize:u=typeof ResizeObserver=="function",layoutShift:l=typeof IntersectionObserver=="function",animationFrame:d=!1}=r,h=NT(t),g=i||o?[...h?IS(h):[],...IS(e)]:[];g.forEach(O=>{i&&O.addEventListener("scroll",n,{passive:!0}),o&&O.addEventListener("resize",n)});const y=h&&l?Zee(h,n):null;let w=-1,b=null;u&&(b=new ResizeObserver(O=>{let[_]=O;_&&_.target===h&&b&&(b.unobserve(e),cancelAnimationFrame(w),w=requestAnimationFrame(()=>{var P;(P=b)==null||P.observe(e)})),n()}),h&&!d&&b.observe(h),b.observe(e));let C,E=d?BP(t):null;d&&$();function $(){const O=BP(t);E&&(O.x!==E.x||O.y!==E.y||O.width!==E.width||O.height!==E.height)&&n(),E=O,C=requestAnimationFrame($)}return n(),()=>{var O;g.forEach(_=>{i&&_.removeEventListener("scroll",n),o&&_.removeEventListener("resize",n)}),y==null||y(),(O=b)==null||O.disconnect(),b=null,d&&cancelAnimationFrame(C)}}var lO=T.useLayoutEffect,tte=["className","clearValue","cx","getStyles","getClassNames","getValue","hasValue","isMulti","isRtl","options","selectOption","selectProps","setValue","theme"],NS=function(){};function nte(t,e){return e?e[0]==="-"?t+e:t+"__"+e:t}function rte(t,e){for(var n=arguments.length,r=new Array(n>2?n-2:0),i=2;i-1}function ate(t){return v3(t)?window.innerHeight:t.clientHeight}function V7(t){return v3(t)?window.pageYOffset:t.scrollTop}function MS(t,e){if(v3(t)){window.scrollTo(0,e);return}t.scrollTop=e}function ote(t){var e=getComputedStyle(t),n=e.position==="absolute",r=/(auto|scroll)/;if(e.position==="fixed")return document.documentElement;for(var i=t;i=i.parentElement;)if(e=getComputedStyle(i),!(n&&e.position==="static")&&r.test(e.overflow+e.overflowY+e.overflowX))return i;return document.documentElement}function ste(t,e,n,r){return n*((t=t/r-1)*t*t+1)+e}function Pw(t,e){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:200,r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:NS,i=V7(t),o=e-i,u=10,l=0;function d(){l+=u;var h=ste(l,i,o,n);MS(t,h),ln.bottom?MS(t,Math.min(e.offsetTop+e.clientHeight-t.offsetHeight+i,t.scrollHeight)):r.top-i1?n-1:0),i=1;i=C)return{placement:"bottom",maxHeight:e};if(Y>=C&&!u)return o&&Pw(d,Q,me),{placement:"bottom",maxHeight:e};if(!u&&Y>=r||u&&F>=r){o&&Pw(d,Q,me);var te=u?F-k:Y-k;return{placement:"bottom",maxHeight:te}}if(i==="auto"||u){var be=e,Se=u?L:q;return Se>=r&&(be=Math.min(Se-k-l,e)),{placement:"top",maxHeight:be}}if(i==="bottom")return o&&MS(d,Q),{placement:"bottom",maxHeight:e};break;case"top":if(L>=C)return{placement:"top",maxHeight:e};if(q>=C&&!u)return o&&Pw(d,ue,me),{placement:"top",maxHeight:e};if(!u&&q>=r||u&&L>=r){var j=e;return(!u&&q>=r||u&&L>=r)&&(j=u?L-R:q-R),o&&Pw(d,ue,me),{placement:"top",maxHeight:j}}return{placement:"bottom",maxHeight:e};default:throw new Error('Invalid placement provided "'.concat(i,'".'))}return h}function vte(t){var e={bottom:"top",top:"bottom"};return t?e[t]:"bottom"}var W7=function(e){return e==="auto"?"bottom":e},bte=function(e,n){var r,i=e.placement,o=e.theme,u=o.borderRadius,l=o.spacing,d=o.colors;return ct((r={label:"menu"},oy(r,vte(i),"100%"),oy(r,"position","absolute"),oy(r,"width","100%"),oy(r,"zIndex",1),r),n?{}:{backgroundColor:d.neutral0,borderRadius:u,boxShadow:"0 0 0 1px hsla(0, 0%, 0%, 0.1), 0 4px 11px hsla(0, 0%, 0%, 0.1)",marginBottom:l.menuGutter,marginTop:l.menuGutter})},K7=T.createContext(null),wte=function(e){var n=e.children,r=e.minMenuHeight,i=e.maxMenuHeight,o=e.menuPlacement,u=e.menuPosition,l=e.menuShouldScrollIntoView,d=e.theme,h=T.useContext(K7)||{},g=h.setPortalPlacement,y=T.useRef(null),w=T.useState(i),b=Xr(w,2),C=b[0],E=b[1],$=T.useState(null),O=Xr($,2),_=O[0],P=O[1],k=d.spacing.controlHeight;return lO(function(){var R=y.current;if(R){var L=u==="fixed",F=l&&!L,q=yte({maxHeight:i,menuEl:R,minHeight:r,placement:o,shouldScroll:F,isFixedPosition:L,controlHeight:k});E(q.maxHeight),P(q.placement),g==null||g(q.placement)}},[i,o,u,l,r,g,k]),n({ref:y,placerProps:ct(ct({},e),{},{placement:_||W7(o),maxHeight:C})})},Ste=function(e){var n=e.children,r=e.innerRef,i=e.innerProps;return mt("div",Ve({},pr(e,"menu",{menu:!0}),{ref:r},i),n)},Cte=Ste,$te=function(e,n){var r=e.maxHeight,i=e.theme.spacing.baseUnit;return ct({maxHeight:r,overflowY:"auto",position:"relative",WebkitOverflowScrolling:"touch"},n?{}:{paddingBottom:i,paddingTop:i})},Ete=function(e){var n=e.children,r=e.innerProps,i=e.innerRef,o=e.isMulti;return mt("div",Ve({},pr(e,"menuList",{"menu-list":!0,"menu-list--is-multi":o}),{ref:i},r),n)},Y7=function(e,n){var r=e.theme,i=r.spacing.baseUnit,o=r.colors;return ct({textAlign:"center"},n?{}:{color:o.neutral40,padding:"".concat(i*2,"px ").concat(i*3,"px")})},xte=Y7,Ote=Y7,Tte=function(e){var n=e.children,r=n===void 0?"No options":n,i=e.innerProps,o=Du(e,mte);return mt("div",Ve({},pr(ct(ct({},o),{},{children:r,innerProps:i}),"noOptionsMessage",{"menu-notice":!0,"menu-notice--no-options":!0}),i),r)},_te=function(e){var n=e.children,r=n===void 0?"Loading...":n,i=e.innerProps,o=Du(e,gte);return mt("div",Ve({},pr(ct(ct({},o),{},{children:r,innerProps:i}),"loadingMessage",{"menu-notice":!0,"menu-notice--loading":!0}),i),r)},Ate=function(e){var n=e.rect,r=e.offset,i=e.position;return{left:n.left,position:i,top:r,width:n.width,zIndex:1}},Rte=function(e){var n=e.appendTo,r=e.children,i=e.controlElement,o=e.innerProps,u=e.menuPlacement,l=e.menuPosition,d=T.useRef(null),h=T.useRef(null),g=T.useState(W7(u)),y=Xr(g,2),w=y[0],b=y[1],C=T.useMemo(function(){return{setPortalPlacement:b}},[]),E=T.useState(null),$=Xr(E,2),O=$[0],_=$[1],P=T.useCallback(function(){if(i){var F=ute(i),q=l==="fixed"?0:window.pageYOffset,Y=F[w]+q;(Y!==(O==null?void 0:O.offset)||F.left!==(O==null?void 0:O.rect.left)||F.width!==(O==null?void 0:O.rect.width))&&_({offset:Y,rect:F})}},[i,l,w,O==null?void 0:O.offset,O==null?void 0:O.rect.left,O==null?void 0:O.rect.width]);lO(function(){P()},[P]);var k=T.useCallback(function(){typeof h.current=="function"&&(h.current(),h.current=null),i&&d.current&&(h.current=ete(i,d.current,P,{elementResize:"ResizeObserver"in window}))},[i,P]);lO(function(){k()},[k]);var R=T.useCallback(function(F){d.current=F,k()},[k]);if(!n&&l!=="fixed"||!O)return null;var L=mt("div",Ve({ref:R},pr(ct(ct({},e),{},{offset:O.offset,position:l,rect:O.rect}),"menuPortal",{"menu-portal":!0}),o),r);return mt(K7.Provider,{value:C},n?_u.createPortal(L,n):L)},Pte=function(e){var n=e.isDisabled,r=e.isRtl;return{label:"container",direction:r?"rtl":void 0,pointerEvents:n?"none":void 0,position:"relative"}},Ite=function(e){var n=e.children,r=e.innerProps,i=e.isDisabled,o=e.isRtl;return mt("div",Ve({},pr(e,"container",{"--is-disabled":i,"--is-rtl":o}),r),n)},Nte=function(e,n){var r=e.theme.spacing,i=e.isMulti,o=e.hasValue,u=e.selectProps.controlShouldRenderValue;return ct({alignItems:"center",display:i&&o&&u?"flex":"grid",flex:1,flexWrap:"wrap",WebkitOverflowScrolling:"touch",position:"relative",overflow:"hidden"},n?{}:{padding:"".concat(r.baseUnit/2,"px ").concat(r.baseUnit*2,"px")})},Mte=function(e){var n=e.children,r=e.innerProps,i=e.isMulti,o=e.hasValue;return mt("div",Ve({},pr(e,"valueContainer",{"value-container":!0,"value-container--is-multi":i,"value-container--has-value":o}),r),n)},kte=function(){return{alignItems:"center",alignSelf:"stretch",display:"flex",flexShrink:0}},Dte=function(e){var n=e.children,r=e.innerProps;return mt("div",Ve({},pr(e,"indicatorsContainer",{indicators:!0}),r),n)},zP,Fte=["size"],Lte=["innerProps","isRtl","size"],Ute={name:"8mmkcg",styles:"display:inline-block;fill:currentColor;line-height:1;stroke:currentColor;stroke-width:0"},J7=function(e){var n=e.size,r=Du(e,Fte);return mt("svg",Ve({height:n,width:n,viewBox:"0 0 20 20","aria-hidden":"true",focusable:"false",css:Ute},r))},MT=function(e){return mt(J7,Ve({size:20},e),mt("path",{d:"M14.348 14.849c-0.469 0.469-1.229 0.469-1.697 0l-2.651-3.030-2.651 3.029c-0.469 0.469-1.229 0.469-1.697 0-0.469-0.469-0.469-1.229 0-1.697l2.758-3.15-2.759-3.152c-0.469-0.469-0.469-1.228 0-1.697s1.228-0.469 1.697 0l2.652 3.031 2.651-3.031c0.469-0.469 1.228-0.469 1.697 0s0.469 1.229 0 1.697l-2.758 3.152 2.758 3.15c0.469 0.469 0.469 1.229 0 1.698z"}))},Q7=function(e){return mt(J7,Ve({size:20},e),mt("path",{d:"M4.516 7.548c0.436-0.446 1.043-0.481 1.576 0l3.908 3.747 3.908-3.747c0.533-0.481 1.141-0.446 1.574 0 0.436 0.445 0.408 1.197 0 1.615-0.406 0.418-4.695 4.502-4.695 4.502-0.217 0.223-0.502 0.335-0.787 0.335s-0.57-0.112-0.789-0.335c0 0-4.287-4.084-4.695-4.502s-0.436-1.17 0-1.615z"}))},X7=function(e,n){var r=e.isFocused,i=e.theme,o=i.spacing.baseUnit,u=i.colors;return ct({label:"indicatorContainer",display:"flex",transition:"color 150ms"},n?{}:{color:r?u.neutral60:u.neutral20,padding:o*2,":hover":{color:r?u.neutral80:u.neutral40}})},Bte=X7,jte=function(e){var n=e.children,r=e.innerProps;return mt("div",Ve({},pr(e,"dropdownIndicator",{indicator:!0,"dropdown-indicator":!0}),r),n||mt(Q7,null))},qte=X7,Hte=function(e){var n=e.children,r=e.innerProps;return mt("div",Ve({},pr(e,"clearIndicator",{indicator:!0,"clear-indicator":!0}),r),n||mt(MT,null))},zte=function(e,n){var r=e.isDisabled,i=e.theme,o=i.spacing.baseUnit,u=i.colors;return ct({label:"indicatorSeparator",alignSelf:"stretch",width:1},n?{}:{backgroundColor:r?u.neutral10:u.neutral20,marginBottom:o*2,marginTop:o*2})},Vte=function(e){var n=e.innerProps;return mt("span",Ve({},n,pr(e,"indicatorSeparator",{"indicator-separator":!0})))},Gte=Dee(zP||(zP=jee([` 0%, 80%, 100% { opacity: 0; } 40% { opacity: 1; } -`]))),wte=function(e,n){var r=e.isFocused,i=e.size,o=e.theme,u=o.colors,l=o.spacing.baseUnit;return ct({label:"loadingIndicator",display:"flex",transition:"color 150ms",alignSelf:"center",fontSize:i,lineHeight:1,marginRight:i,textAlign:"center",verticalAlign:"middle"},n?{}:{color:r?u.neutral60:u.neutral20,padding:l*2})},c$=function(e){var n=e.delay,r=e.offset;return mt("span",{css:nT({animation:"".concat(bte," 1s ease-in-out ").concat(n,"ms infinite;"),backgroundColor:"currentColor",borderRadius:"1em",display:"inline-block",marginLeft:r?"1em":void 0,height:"1em",verticalAlign:"top",width:"1em"},"","")})},Ste=function(e){var n=e.innerProps,r=e.isRtl,i=e.size,o=i===void 0?4:i,u=Iu(e,fte);return mt("div",Ve({},dr(ct(ct({},u),{},{innerProps:n,isRtl:r,size:o}),"loadingIndicator",{indicator:!0,"loading-indicator":!0}),n),mt(c$,{delay:0,offset:r}),mt(c$,{delay:160,offset:!0}),mt(c$,{delay:320,offset:!r}))},Cte=function(e,n){var r=e.isDisabled,i=e.isFocused,o=e.theme,u=o.colors,l=o.borderRadius,d=o.spacing;return ct({label:"control",alignItems:"center",cursor:"default",display:"flex",flexWrap:"wrap",justifyContent:"space-between",minHeight:d.controlHeight,outline:"0 !important",position:"relative",transition:"all 100ms"},n?{}:{backgroundColor:r?u.neutral5:u.neutral0,borderColor:r?u.neutral10:i?u.primary:u.neutral20,borderRadius:l,borderStyle:"solid",borderWidth:1,boxShadow:i?"0 0 0 1px ".concat(u.primary):void 0,"&:hover":{borderColor:i?u.primary:u.neutral30}})},$te=function(e){var n=e.children,r=e.isDisabled,i=e.isFocused,o=e.innerRef,u=e.innerProps,l=e.menuIsOpen;return mt("div",Ve({ref:o},dr(e,"control",{control:!0,"control--is-disabled":r,"control--is-focused":i,"control--menu-is-open":l}),u,{"aria-disabled":r||void 0}),n)},Ete=$te,xte=["data"],Ote=function(e,n){var r=e.theme.spacing;return n?{}:{paddingBottom:r.baseUnit*2,paddingTop:r.baseUnit*2}},Tte=function(e){var n=e.children,r=e.cx,i=e.getStyles,o=e.getClassNames,u=e.Heading,l=e.headingProps,d=e.innerProps,h=e.label,g=e.theme,y=e.selectProps;return mt("div",Ve({},dr(e,"group",{group:!0}),d),mt(u,Ve({},l,{selectProps:y,theme:g,getStyles:i,getClassNames:o,cx:r}),h),mt("div",null,n))},_te=function(e,n){var r=e.theme,i=r.colors,o=r.spacing;return ct({label:"group",cursor:"default",display:"block"},n?{}:{color:i.neutral40,fontSize:"75%",fontWeight:500,marginBottom:"0.25em",paddingLeft:o.baseUnit*3,paddingRight:o.baseUnit*3,textTransform:"uppercase"})},Ate=function(e){var n=g7(e);n.data;var r=Iu(n,xte);return mt("div",Ve({},dr(e,"groupHeading",{"group-heading":!0}),r))},Rte=Tte,Pte=["innerRef","isDisabled","isHidden","inputClassName"],Ite=function(e,n){var r=e.isDisabled,i=e.value,o=e.theme,u=o.spacing,l=o.colors;return ct(ct({visibility:r?"hidden":"visible",transform:i?"translateZ(0)":""},Nte),n?{}:{margin:u.baseUnit/2,paddingBottom:u.baseUnit/2,paddingTop:u.baseUnit/2,color:l.neutral80})},x7={gridArea:"1 / 2",font:"inherit",minWidth:"2px",border:0,margin:0,outline:0,padding:0},Nte={flex:"1 1 auto",display:"inline-grid",gridArea:"1 / 1 / 2 / 3",gridTemplateColumns:"0 min-content","&:after":ct({content:'attr(data-value) " "',visibility:"hidden",whiteSpace:"pre"},x7)},Mte=function(e){return ct({label:"input",color:"inherit",background:0,opacity:e?0:1,width:"100%"},x7)},kte=function(e){var n=e.cx,r=e.value,i=g7(e),o=i.innerRef,u=i.isDisabled,l=i.isHidden,d=i.inputClassName,h=Iu(i,Pte);return mt("div",Ve({},dr(e,"input",{"input-container":!0}),{"data-value":r||""}),mt("input",Ve({className:n({input:!0},d),ref:o,style:Mte(l),disabled:u},h)))},Dte=kte,Fte=function(e,n){var r=e.theme,i=r.spacing,o=r.borderRadius,u=r.colors;return ct({label:"multiValue",display:"flex",minWidth:0},n?{}:{backgroundColor:u.neutral10,borderRadius:o/2,margin:i.baseUnit/2})},Lte=function(e,n){var r=e.theme,i=r.borderRadius,o=r.colors,u=e.cropWithEllipsis;return ct({overflow:"hidden",textOverflow:u||u===void 0?"ellipsis":void 0,whiteSpace:"nowrap"},n?{}:{borderRadius:i/2,color:o.neutral80,fontSize:"85%",padding:3,paddingLeft:6})},Ute=function(e,n){var r=e.theme,i=r.spacing,o=r.borderRadius,u=r.colors,l=e.isFocused;return ct({alignItems:"center",display:"flex"},n?{}:{borderRadius:o/2,backgroundColor:l?u.dangerLight:void 0,paddingLeft:i.baseUnit,paddingRight:i.baseUnit,":hover":{backgroundColor:u.dangerLight,color:u.danger}})},O7=function(e){var n=e.children,r=e.innerProps;return mt("div",r,n)},jte=O7,Bte=O7;function qte(t){var e=t.children,n=t.innerProps;return mt("div",Ve({role:"button"},n),e||mt(oT,{size:14}))}var Hte=function(e){var n=e.children,r=e.components,i=e.data,o=e.innerProps,u=e.isDisabled,l=e.removeProps,d=e.selectProps,h=r.Container,g=r.Label,y=r.Remove;return mt(h,{data:i,innerProps:ct(ct({},dr(e,"multiValue",{"multi-value":!0,"multi-value--is-disabled":u})),o),selectProps:d},mt(g,{data:i,innerProps:ct({},dr(e,"multiValueLabel",{"multi-value__label":!0})),selectProps:d},n),mt(y,{data:i,innerProps:ct(ct({},dr(e,"multiValueRemove",{"multi-value__remove":!0})),{},{"aria-label":"Remove ".concat(n||"option")},l),selectProps:d}))},zte=Hte,Vte=function(e,n){var r=e.isDisabled,i=e.isFocused,o=e.isSelected,u=e.theme,l=u.spacing,d=u.colors;return ct({label:"option",cursor:"default",display:"block",fontSize:"inherit",width:"100%",userSelect:"none",WebkitTapHighlightColor:"rgba(0, 0, 0, 0)"},n?{}:{backgroundColor:o?d.primary:i?d.primary25:"transparent",color:r?d.neutral20:o?d.neutral0:"inherit",padding:"".concat(l.baseUnit*2,"px ").concat(l.baseUnit*3,"px"),":active":{backgroundColor:r?void 0:o?d.primary:d.primary50}})},Gte=function(e){var n=e.children,r=e.isDisabled,i=e.isFocused,o=e.isSelected,u=e.innerRef,l=e.innerProps;return mt("div",Ve({},dr(e,"option",{option:!0,"option--is-disabled":r,"option--is-focused":i,"option--is-selected":o}),{ref:u,"aria-disabled":r},l),n)},Wte=Gte,Kte=function(e,n){var r=e.theme,i=r.spacing,o=r.colors;return ct({label:"placeholder",gridArea:"1 / 1 / 2 / 3"},n?{}:{color:o.neutral50,marginLeft:i.baseUnit/2,marginRight:i.baseUnit/2})},Yte=function(e){var n=e.children,r=e.innerProps;return mt("div",Ve({},dr(e,"placeholder",{placeholder:!0}),r),n)},Jte=Yte,Qte=function(e,n){var r=e.isDisabled,i=e.theme,o=i.spacing,u=i.colors;return ct({label:"singleValue",gridArea:"1 / 1 / 2 / 3",maxWidth:"100%",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},n?{}:{color:r?u.neutral40:u.neutral80,marginLeft:o.baseUnit/2,marginRight:o.baseUnit/2})},Xte=function(e){var n=e.children,r=e.isDisabled,i=e.innerProps;return mt("div",Ve({},dr(e,"singleValue",{"single-value":!0,"single-value--is-disabled":r}),i),n)},Zte=Xte,ene={ClearIndicator:gte,Control:Ete,DropdownIndicator:pte,DownChevron:$7,CrossIcon:oT,Group:Rte,GroupHeading:Ate,IndicatorsContainer:lte,IndicatorSeparator:vte,Input:Dte,LoadingIndicator:Ste,Menu:Yee,MenuList:Qee,MenuPortal:rte,LoadingMessage:tte,NoOptionsMessage:ete,MultiValue:zte,MultiValueContainer:jte,MultiValueLabel:Bte,MultiValueRemove:qte,Option:Wte,Placeholder:Jte,SelectContainer:ate,SingleValue:Zte,ValueContainer:ste},tne=function(e){return ct(ct({},ene),e.components)},y6=Number.isNaN||function(e){return typeof e=="number"&&e!==e};function nne(t,e){return!!(t===e||y6(t)&&y6(e))}function rne(t,e){if(t.length!==e.length)return!1;for(var n=0;n1?"s":""," ").concat(o.join(","),", selected.");case"select-option":return u?"option ".concat(i," is disabled. Select another option."):"option ".concat(i,", selected.");default:return""}},onFocus:function(e){var n=e.context,r=e.focused,i=e.options,o=e.label,u=o===void 0?"":o,l=e.selectValue,d=e.isDisabled,h=e.isSelected,g=e.isAppleDevice,y=function(E,$){return E&&E.length?"".concat(E.indexOf($)+1," of ").concat(E.length):""};if(n==="value"&&l)return"value ".concat(u," focused, ").concat(y(l,r),".");if(n==="menu"&&g){var w=d?" disabled":"",v="".concat(h?" selected":"").concat(w);return"".concat(u).concat(v,", ").concat(y(i,r),".")}return""},onFilter:function(e){var n=e.inputValue,r=e.resultsMessage;return"".concat(r).concat(n?" for search term "+n:"",".")}},une=function(e){var n=e.ariaSelection,r=e.focusedOption,i=e.focusedValue,o=e.focusableOptions,u=e.isFocused,l=e.selectValue,d=e.selectProps,h=e.id,g=e.isAppleDevice,y=d.ariaLiveMessages,w=d.getOptionLabel,v=d.inputValue,C=d.isMulti,E=d.isOptionDisabled,$=d.isSearchable,O=d.menuIsOpen,_=d.options,R=d.screenReaderStatus,k=d.tabSelectsValue,P=d.isLoading,L=d["aria-label"],F=d["aria-live"],q=T.useMemo(function(){return ct(ct({},sne),y||{})},[y]),Y=T.useMemo(function(){var we="";if(n&&q.onChange){var B=n.option,V=n.options,H=n.removedValue,ie=n.removedValues,G=n.value,Q=function(ke){return Array.isArray(ke)?null:ke},he=H||B||Q(G),$e=he?w(he):"",Ce=V||ie||void 0,Be=Ce?Ce.map(w):[],Ie=ct({isDisabled:he&&E(he,l),label:$e,labels:Be},n);we=q.onChange(Ie)}return we},[n,q,E,l,w]),X=T.useMemo(function(){var we="",B=r||i,V=!!(r&&l&&l.includes(r));if(B&&q.onFocus){var H={focused:B,label:w(B),isDisabled:E(B,l),isSelected:V,options:o,context:B===r?"menu":"value",selectValue:l,isAppleDevice:g};we=q.onFocus(H)}return we},[r,i,w,E,q,o,l,g]),ue=T.useMemo(function(){var we="";if(O&&_.length&&!P&&q.onFilter){var B=R({count:o.length});we=q.onFilter({inputValue:v,resultsMessage:B})}return we},[o,v,O,q,_,R,P]),me=(n==null?void 0:n.action)==="initial-input-focus",te=T.useMemo(function(){var we="";if(q.guidance){var B=i?"value":O?"menu":"input";we=q.guidance({"aria-label":L,context:B,isDisabled:r&&E(r,l),isMulti:C,isSearchable:$,tabSelectsValue:k,isInitialFocus:me})}return we},[L,r,i,C,E,$,O,q,l,k,me]),be=mt(T.Fragment,null,mt("span",{id:"aria-selection"},Y),mt("span",{id:"aria-focused"},X),mt("span",{id:"aria-results"},ue),mt("span",{id:"aria-guidance"},te));return mt(T.Fragment,null,mt(v6,{id:h},me&&be),mt(v6,{"aria-live":F,"aria-atomic":"false","aria-relevant":"additions text",role:"log"},u&&!me&&be))},lne=une,Dx=[{base:"A",letters:"AⒶAÀÁÂẦẤẪẨÃĀĂẰẮẴẲȦǠÄǞẢÅǺǍȀȂẠẬẶḀĄȺⱯ"},{base:"AA",letters:"Ꜳ"},{base:"AE",letters:"ÆǼǢ"},{base:"AO",letters:"Ꜵ"},{base:"AU",letters:"Ꜷ"},{base:"AV",letters:"ꜸꜺ"},{base:"AY",letters:"Ꜽ"},{base:"B",letters:"BⒷBḂḄḆɃƂƁ"},{base:"C",letters:"CⒸCĆĈĊČÇḈƇȻꜾ"},{base:"D",letters:"DⒹDḊĎḌḐḒḎĐƋƊƉꝹ"},{base:"DZ",letters:"DZDŽ"},{base:"Dz",letters:"DzDž"},{base:"E",letters:"EⒺEÈÉÊỀẾỄỂẼĒḔḖĔĖËẺĚȄȆẸỆȨḜĘḘḚƐƎ"},{base:"F",letters:"FⒻFḞƑꝻ"},{base:"G",letters:"GⒼGǴĜḠĞĠǦĢǤƓꞠꝽꝾ"},{base:"H",letters:"HⒽHĤḢḦȞḤḨḪĦⱧⱵꞍ"},{base:"I",letters:"IⒾIÌÍÎĨĪĬİÏḮỈǏȈȊỊĮḬƗ"},{base:"J",letters:"JⒿJĴɈ"},{base:"K",letters:"KⓀKḰǨḲĶḴƘⱩꝀꝂꝄꞢ"},{base:"L",letters:"LⓁLĿĹĽḶḸĻḼḺŁȽⱢⱠꝈꝆꞀ"},{base:"LJ",letters:"LJ"},{base:"Lj",letters:"Lj"},{base:"M",letters:"MⓂMḾṀṂⱮƜ"},{base:"N",letters:"NⓃNǸŃÑṄŇṆŅṊṈȠƝꞐꞤ"},{base:"NJ",letters:"NJ"},{base:"Nj",letters:"Nj"},{base:"O",letters:"OⓄOÒÓÔỒỐỖỔÕṌȬṎŌṐṒŎȮȰÖȪỎŐǑȌȎƠỜỚỠỞỢỌỘǪǬØǾƆƟꝊꝌ"},{base:"OI",letters:"Ƣ"},{base:"OO",letters:"Ꝏ"},{base:"OU",letters:"Ȣ"},{base:"P",letters:"PⓅPṔṖƤⱣꝐꝒꝔ"},{base:"Q",letters:"QⓆQꝖꝘɊ"},{base:"R",letters:"RⓇRŔṘŘȐȒṚṜŖṞɌⱤꝚꞦꞂ"},{base:"S",letters:"SⓈSẞŚṤŜṠŠṦṢṨȘŞⱾꞨꞄ"},{base:"T",letters:"TⓉTṪŤṬȚŢṰṮŦƬƮȾꞆ"},{base:"TZ",letters:"Ꜩ"},{base:"U",letters:"UⓊUÙÚÛŨṸŪṺŬÜǛǗǕǙỦŮŰǓȔȖƯỪỨỮỬỰỤṲŲṶṴɄ"},{base:"V",letters:"VⓋVṼṾƲꝞɅ"},{base:"VY",letters:"Ꝡ"},{base:"W",letters:"WⓌWẀẂŴẆẄẈⱲ"},{base:"X",letters:"XⓍXẊẌ"},{base:"Y",letters:"YⓎYỲÝŶỸȲẎŸỶỴƳɎỾ"},{base:"Z",letters:"ZⓏZŹẐŻŽẒẔƵȤⱿⱫꝢ"},{base:"a",letters:"aⓐaẚàáâầấẫẩãāăằắẵẳȧǡäǟảåǻǎȁȃạậặḁąⱥɐ"},{base:"aa",letters:"ꜳ"},{base:"ae",letters:"æǽǣ"},{base:"ao",letters:"ꜵ"},{base:"au",letters:"ꜷ"},{base:"av",letters:"ꜹꜻ"},{base:"ay",letters:"ꜽ"},{base:"b",letters:"bⓑbḃḅḇƀƃɓ"},{base:"c",letters:"cⓒcćĉċčçḉƈȼꜿↄ"},{base:"d",letters:"dⓓdḋďḍḑḓḏđƌɖɗꝺ"},{base:"dz",letters:"dzdž"},{base:"e",letters:"eⓔeèéêềếễểẽēḕḗĕėëẻěȅȇẹệȩḝęḙḛɇɛǝ"},{base:"f",letters:"fⓕfḟƒꝼ"},{base:"g",letters:"gⓖgǵĝḡğġǧģǥɠꞡᵹꝿ"},{base:"h",letters:"hⓗhĥḣḧȟḥḩḫẖħⱨⱶɥ"},{base:"hv",letters:"ƕ"},{base:"i",letters:"iⓘiìíîĩīĭïḯỉǐȉȋịįḭɨı"},{base:"j",letters:"jⓙjĵǰɉ"},{base:"k",letters:"kⓚkḱǩḳķḵƙⱪꝁꝃꝅꞣ"},{base:"l",letters:"lⓛlŀĺľḷḹļḽḻſłƚɫⱡꝉꞁꝇ"},{base:"lj",letters:"lj"},{base:"m",letters:"mⓜmḿṁṃɱɯ"},{base:"n",letters:"nⓝnǹńñṅňṇņṋṉƞɲʼnꞑꞥ"},{base:"nj",letters:"nj"},{base:"o",letters:"oⓞoòóôồốỗổõṍȭṏōṑṓŏȯȱöȫỏőǒȍȏơờớỡởợọộǫǭøǿɔꝋꝍɵ"},{base:"oi",letters:"ƣ"},{base:"ou",letters:"ȣ"},{base:"oo",letters:"ꝏ"},{base:"p",letters:"pⓟpṕṗƥᵽꝑꝓꝕ"},{base:"q",letters:"qⓠqɋꝗꝙ"},{base:"r",letters:"rⓡrŕṙřȑȓṛṝŗṟɍɽꝛꞧꞃ"},{base:"s",letters:"sⓢsßśṥŝṡšṧṣṩșşȿꞩꞅẛ"},{base:"t",letters:"tⓣtṫẗťṭțţṱṯŧƭʈⱦꞇ"},{base:"tz",letters:"ꜩ"},{base:"u",letters:"uⓤuùúûũṹūṻŭüǜǘǖǚủůűǔȕȗưừứữửựụṳųṷṵʉ"},{base:"v",letters:"vⓥvṽṿʋꝟʌ"},{base:"vy",letters:"ꝡ"},{base:"w",letters:"wⓦwẁẃŵẇẅẘẉⱳ"},{base:"x",letters:"xⓧxẋẍ"},{base:"y",letters:"yⓨyỳýŷỹȳẏÿỷẙỵƴɏỿ"},{base:"z",letters:"zⓩzźẑżžẓẕƶȥɀⱬꝣ"}],cne=new RegExp("["+Dx.map(function(t){return t.letters}).join("")+"]","g"),T7={};for(var f$=0;f$-1}},pne=["innerRef"];function mne(t){var e=t.innerRef,n=Iu(t,pne),r=Bee(n,"onExited","in","enter","exit","appear");return mt("input",Ve({ref:e},r,{css:nT({label:"dummyInput",background:0,border:0,caretColor:"transparent",fontSize:"inherit",gridArea:"1 / 1 / 2 / 3",outline:0,padding:0,width:1,color:"transparent",left:-100,opacity:0,position:"relative",transform:"scale(.01)"},"","")}))}var gne=function(e){e.cancelable&&e.preventDefault(),e.stopPropagation()};function yne(t){var e=t.isEnabled,n=t.onBottomArrive,r=t.onBottomLeave,i=t.onTopArrive,o=t.onTopLeave,u=T.useRef(!1),l=T.useRef(!1),d=T.useRef(0),h=T.useRef(null),g=T.useCallback(function($,O){if(h.current!==null){var _=h.current,R=_.scrollTop,k=_.scrollHeight,P=_.clientHeight,L=h.current,F=O>0,q=k-P-R,Y=!1;q>O&&u.current&&(r&&r($),u.current=!1),F&&l.current&&(o&&o($),l.current=!1),F&&O>q?(n&&!u.current&&n($),L.scrollTop=k,Y=!0,u.current=!0):!F&&-O>R&&(i&&!l.current&&i($),L.scrollTop=0,Y=!0,l.current=!0),Y&&gne($)}},[n,r,i,o]),y=T.useCallback(function($){g($,$.deltaY)},[g]),w=T.useCallback(function($){d.current=$.changedTouches[0].clientY},[]),v=T.useCallback(function($){var O=d.current-$.changedTouches[0].clientY;g($,O)},[g]),C=T.useCallback(function($){if($){var O=Lee?{passive:!1}:!1;$.addEventListener("wheel",y,O),$.addEventListener("touchstart",w,O),$.addEventListener("touchmove",v,O)}},[v,w,y]),E=T.useCallback(function($){$&&($.removeEventListener("wheel",y,!1),$.removeEventListener("touchstart",w,!1),$.removeEventListener("touchmove",v,!1))},[v,w,y]);return T.useEffect(function(){if(e){var $=h.current;return C($),function(){E($)}}},[e,C,E]),function($){h.current=$}}var w6=["boxSizing","height","overflow","paddingRight","position"],S6={boxSizing:"border-box",overflow:"hidden",position:"relative",height:"100%"};function C6(t){t.cancelable&&t.preventDefault()}function $6(t){t.stopPropagation()}function E6(){var t=this.scrollTop,e=this.scrollHeight,n=t+this.offsetHeight;t===0?this.scrollTop=1:n===e&&(this.scrollTop=t-1)}function x6(){return"ontouchstart"in window||navigator.maxTouchPoints}var O6=!!(typeof window<"u"&&window.document&&window.document.createElement),I0=0,Rg={capture:!1,passive:!1};function vne(t){var e=t.isEnabled,n=t.accountForScrollbars,r=n===void 0?!0:n,i=T.useRef({}),o=T.useRef(null),u=T.useCallback(function(d){if(O6){var h=document.body,g=h&&h.style;if(r&&w6.forEach(function(C){var E=g&&g[C];i.current[C]=E}),r&&I0<1){var y=parseInt(i.current.paddingRight,10)||0,w=document.body?document.body.clientWidth:0,v=window.innerWidth-w+y||0;Object.keys(S6).forEach(function(C){var E=S6[C];g&&(g[C]=E)}),g&&(g.paddingRight="".concat(v,"px"))}h&&x6()&&(h.addEventListener("touchmove",C6,Rg),d&&(d.addEventListener("touchstart",E6,Rg),d.addEventListener("touchmove",$6,Rg))),I0+=1}},[r]),l=T.useCallback(function(d){if(O6){var h=document.body,g=h&&h.style;I0=Math.max(I0-1,0),r&&I0<1&&w6.forEach(function(y){var w=i.current[y];g&&(g[y]=w)}),h&&x6()&&(h.removeEventListener("touchmove",C6,Rg),d&&(d.removeEventListener("touchstart",E6,Rg),d.removeEventListener("touchmove",$6,Rg)))}},[r]);return T.useEffect(function(){if(e){var d=o.current;return u(d),function(){l(d)}}},[e,u,l]),function(d){o.current=d}}var bne=function(e){var n=e.target;return n.ownerDocument.activeElement&&n.ownerDocument.activeElement.blur()},wne={name:"1kfdb0e",styles:"position:fixed;left:0;bottom:0;right:0;top:0"};function Sne(t){var e=t.children,n=t.lockEnabled,r=t.captureEnabled,i=r===void 0?!0:r,o=t.onBottomArrive,u=t.onBottomLeave,l=t.onTopArrive,d=t.onTopLeave,h=yne({isEnabled:i,onBottomArrive:o,onBottomLeave:u,onTopArrive:l,onTopLeave:d}),g=vne({isEnabled:n}),y=function(v){h(v),g(v)};return mt(T.Fragment,null,n&&mt("div",{onClick:bne,css:wne}),e(y))}var Cne={name:"1a0ro4n-requiredInput",styles:"label:requiredInput;opacity:0;pointer-events:none;position:absolute;bottom:0;left:0;right:0;width:100%"},$ne=function(e){var n=e.name,r=e.onFocus;return mt("input",{required:!0,name:n,tabIndex:-1,"aria-hidden":"true",onFocus:r,css:Cne,value:"",onChange:function(){}})},Ene=$ne;function sT(t){var e;return typeof window<"u"&&window.navigator!=null?t.test(((e=window.navigator.userAgentData)===null||e===void 0?void 0:e.platform)||window.navigator.platform):!1}function xne(){return sT(/^iPhone/i)}function A7(){return sT(/^Mac/i)}function One(){return sT(/^iPad/i)||A7()&&navigator.maxTouchPoints>1}function Tne(){return xne()||One()}function _ne(){return A7()||Tne()}var Ane=function(e){return e.label},Rne=function(e){return e.label},Pne=function(e){return e.value},Ine=function(e){return!!e.isDisabled},Nne={clearIndicator:mte,container:ite,control:Cte,dropdownIndicator:hte,group:Ote,groupHeading:_te,indicatorsContainer:ute,indicatorSeparator:yte,input:Ite,loadingIndicator:wte,loadingMessage:Zee,menu:Gee,menuList:Jee,menuPortal:nte,multiValue:Fte,multiValueLabel:Lte,multiValueRemove:Ute,noOptionsMessage:Xee,option:Vte,placeholder:Kte,singleValue:Qte,valueContainer:ote},Mne={primary:"#2684FF",primary75:"#4C9AFF",primary50:"#B2D4FF",primary25:"#DEEBFF",danger:"#DE350B",dangerLight:"#FFBDAD",neutral0:"hsl(0, 0%, 100%)",neutral5:"hsl(0, 0%, 95%)",neutral10:"hsl(0, 0%, 90%)",neutral20:"hsl(0, 0%, 80%)",neutral30:"hsl(0, 0%, 70%)",neutral40:"hsl(0, 0%, 60%)",neutral50:"hsl(0, 0%, 50%)",neutral60:"hsl(0, 0%, 40%)",neutral70:"hsl(0, 0%, 30%)",neutral80:"hsl(0, 0%, 20%)",neutral90:"hsl(0, 0%, 10%)"},kne=4,R7=4,Dne=38,Fne=R7*2,Lne={baseUnit:R7,controlHeight:Dne,menuGutter:Fne},p$={borderRadius:kne,colors:Mne,spacing:Lne},Une={"aria-live":"polite",backspaceRemovesValue:!0,blurInputOnSelect:m6(),captureMenuScroll:!m6(),classNames:{},closeMenuOnSelect:!0,closeMenuOnScroll:!1,components:{},controlShouldRenderValue:!0,escapeClearsValue:!1,filterOption:hne(),formatGroupLabel:Ane,getOptionLabel:Rne,getOptionValue:Pne,isDisabled:!1,isLoading:!1,isMulti:!1,isRtl:!1,isSearchable:!0,isOptionDisabled:Ine,loadingMessage:function(){return"Loading..."},maxMenuHeight:300,minMenuHeight:140,menuIsOpen:!1,menuPlacement:"bottom",menuPosition:"absolute",menuShouldBlockScroll:!1,menuShouldScrollIntoView:!Dee(),noOptionsMessage:function(){return"No options"},openMenuOnFocus:!1,openMenuOnClick:!0,options:[],pageSize:5,placeholder:"Select...",screenReaderStatus:function(e){var n=e.count;return"".concat(n," result").concat(n!==1?"s":""," available")},styles:{},tabIndex:0,tabSelectsValue:!0,unstyled:!1};function T6(t,e,n,r){var i=N7(t,e,n),o=M7(t,e,n),u=I7(t,e),l=lS(t,e);return{type:"option",data:e,isDisabled:i,isSelected:o,label:u,value:l,index:r}}function Rw(t,e){return t.options.map(function(n,r){if("options"in n){var i=n.options.map(function(u,l){return T6(t,u,e,l)}).filter(function(u){return A6(t,u)});return i.length>0?{type:"group",data:n,options:i,index:r}:void 0}var o=T6(t,n,e,r);return A6(t,o)?o:void 0}).filter(Uee)}function P7(t){return t.reduce(function(e,n){return n.type==="group"?e.push.apply(e,QO(n.options.map(function(r){return r.data}))):e.push(n.data),e},[])}function _6(t,e){return t.reduce(function(n,r){return r.type==="group"?n.push.apply(n,QO(r.options.map(function(i){return{data:i.data,id:"".concat(e,"-").concat(r.index,"-").concat(i.index)}}))):n.push({data:r.data,id:"".concat(e,"-").concat(r.index)}),n},[])}function jne(t,e){return P7(Rw(t,e))}function A6(t,e){var n=t.inputValue,r=n===void 0?"":n,i=e.data,o=e.isSelected,u=e.label,l=e.value;return(!D7(t)||!o)&&k7(t,{label:u,value:l,data:i},r)}function Bne(t,e){var n=t.focusedValue,r=t.selectValue,i=r.indexOf(n);if(i>-1){var o=e.indexOf(n);if(o>-1)return n;if(i-1?n:e[0]}var m$=function(e,n){var r,i=(r=e.find(function(o){return o.data===n}))===null||r===void 0?void 0:r.id;return i||null},I7=function(e,n){return e.getOptionLabel(n)},lS=function(e,n){return e.getOptionValue(n)};function N7(t,e,n){return typeof t.isOptionDisabled=="function"?t.isOptionDisabled(e,n):!1}function M7(t,e,n){if(n.indexOf(e)>-1)return!0;if(typeof t.isOptionSelected=="function")return t.isOptionSelected(e,n);var r=lS(t,e);return n.some(function(i){return lS(t,i)===r})}function k7(t,e,n){return t.filterOption?t.filterOption(e,n):!0}var D7=function(e){var n=e.hideSelectedOptions,r=e.isMulti;return n===void 0?r:n},Hne=1,F7=(function(t){cZ(n,t);var e=dZ(n);function n(r){var i;if(uZ(this,n),i=e.call(this,r),i.state={ariaSelection:null,focusedOption:null,focusedOptionId:null,focusableOptionsWithIds:[],focusedValue:null,inputIsHidden:!1,isFocused:!1,selectValue:[],clearFocusValueOnUpdate:!1,prevWasFocused:!1,inputIsHiddenAfterUpdate:void 0,prevProps:void 0,instancePrefix:""},i.blockOptionHover=!1,i.isComposing=!1,i.commonProps=void 0,i.initialTouchX=0,i.initialTouchY=0,i.openAfterFocus=!1,i.scrollToFocusedOptionOnUpdate=!1,i.userIsDragging=void 0,i.isAppleDevice=_ne(),i.controlRef=null,i.getControlRef=function(d){i.controlRef=d},i.focusedOptionRef=null,i.getFocusedOptionRef=function(d){i.focusedOptionRef=d},i.menuListRef=null,i.getMenuListRef=function(d){i.menuListRef=d},i.inputRef=null,i.getInputRef=function(d){i.inputRef=d},i.focus=i.focusInput,i.blur=i.blurInput,i.onChange=function(d,h){var g=i.props,y=g.onChange,w=g.name;h.name=w,i.ariaOnChange(d,h),y(d,h)},i.setValue=function(d,h,g){var y=i.props,w=y.closeMenuOnSelect,v=y.isMulti,C=y.inputValue;i.onInputChange("",{action:"set-value",prevInputValue:C}),w&&(i.setState({inputIsHiddenAfterUpdate:!v}),i.onMenuClose()),i.setState({clearFocusValueOnUpdate:!0}),i.onChange(d,{action:h,option:g})},i.selectOption=function(d){var h=i.props,g=h.blurInputOnSelect,y=h.isMulti,w=h.name,v=i.state.selectValue,C=y&&i.isOptionSelected(d,v),E=i.isOptionDisabled(d,v);if(C){var $=i.getOptionValue(d);i.setValue(v.filter(function(O){return i.getOptionValue(O)!==$}),"deselect-option",d)}else if(!E)y?i.setValue([].concat(QO(v),[d]),"select-option",d):i.setValue(d,"select-option");else{i.ariaOnChange(d,{action:"select-option",option:d,name:w});return}g&&i.blurInput()},i.removeValue=function(d){var h=i.props.isMulti,g=i.state.selectValue,y=i.getOptionValue(d),w=g.filter(function(C){return i.getOptionValue(C)!==y}),v=uw(h,w,w[0]||null);i.onChange(v,{action:"remove-value",removedValue:d}),i.focusInput()},i.clearValue=function(){var d=i.state.selectValue;i.onChange(uw(i.props.isMulti,[],null),{action:"clear",removedValues:d})},i.popValue=function(){var d=i.props.isMulti,h=i.state.selectValue,g=h[h.length-1],y=h.slice(0,h.length-1),w=uw(d,y,y[0]||null);g&&i.onChange(w,{action:"pop-value",removedValue:g})},i.getFocusedOptionId=function(d){return m$(i.state.focusableOptionsWithIds,d)},i.getFocusableOptionsWithIds=function(){return _6(Rw(i.props,i.state.selectValue),i.getElementId("option"))},i.getValue=function(){return i.state.selectValue},i.cx=function(){for(var d=arguments.length,h=new Array(d),g=0;gv||w>v}},i.onTouchEnd=function(d){i.userIsDragging||(i.controlRef&&!i.controlRef.contains(d.target)&&i.menuListRef&&!i.menuListRef.contains(d.target)&&i.blurInput(),i.initialTouchX=0,i.initialTouchY=0)},i.onControlTouchEnd=function(d){i.userIsDragging||i.onControlMouseDown(d)},i.onClearIndicatorTouchEnd=function(d){i.userIsDragging||i.onClearIndicatorMouseDown(d)},i.onDropdownIndicatorTouchEnd=function(d){i.userIsDragging||i.onDropdownIndicatorMouseDown(d)},i.handleInputChange=function(d){var h=i.props.inputValue,g=d.currentTarget.value;i.setState({inputIsHiddenAfterUpdate:!1}),i.onInputChange(g,{action:"input-change",prevInputValue:h}),i.props.menuIsOpen||i.onMenuOpen()},i.onInputFocus=function(d){i.props.onFocus&&i.props.onFocus(d),i.setState({inputIsHiddenAfterUpdate:!1,isFocused:!0}),(i.openAfterFocus||i.props.openMenuOnFocus)&&i.openMenu("first"),i.openAfterFocus=!1},i.onInputBlur=function(d){var h=i.props.inputValue;if(i.menuListRef&&i.menuListRef.contains(document.activeElement)){i.inputRef.focus();return}i.props.onBlur&&i.props.onBlur(d),i.onInputChange("",{action:"input-blur",prevInputValue:h}),i.onMenuClose(),i.setState({focusedValue:null,isFocused:!1})},i.onOptionHover=function(d){if(!(i.blockOptionHover||i.state.focusedOption===d)){var h=i.getFocusableOptions(),g=h.indexOf(d);i.setState({focusedOption:d,focusedOptionId:g>-1?i.getFocusedOptionId(d):null})}},i.shouldHideSelectedOptions=function(){return D7(i.props)},i.onValueInputFocus=function(d){d.preventDefault(),d.stopPropagation(),i.focus()},i.onKeyDown=function(d){var h=i.props,g=h.isMulti,y=h.backspaceRemovesValue,w=h.escapeClearsValue,v=h.inputValue,C=h.isClearable,E=h.isDisabled,$=h.menuIsOpen,O=h.onKeyDown,_=h.tabSelectsValue,R=h.openMenuOnFocus,k=i.state,P=k.focusedOption,L=k.focusedValue,F=k.selectValue;if(!E&&!(typeof O=="function"&&(O(d),d.defaultPrevented))){switch(i.blockOptionHover=!0,d.key){case"ArrowLeft":if(!g||v)return;i.focusValue("previous");break;case"ArrowRight":if(!g||v)return;i.focusValue("next");break;case"Delete":case"Backspace":if(v)return;if(L)i.removeValue(L);else{if(!y)return;g?i.popValue():C&&i.clearValue()}break;case"Tab":if(i.isComposing||d.shiftKey||!$||!_||!P||R&&i.isOptionSelected(P,F))return;i.selectOption(P);break;case"Enter":if(d.keyCode===229)break;if($){if(!P||i.isComposing)return;i.selectOption(P);break}return;case"Escape":$?(i.setState({inputIsHiddenAfterUpdate:!1}),i.onInputChange("",{action:"menu-close",prevInputValue:v}),i.onMenuClose()):C&&w&&i.clearValue();break;case" ":if(v)return;if(!$){i.openMenu("first");break}if(!P)return;i.selectOption(P);break;case"ArrowUp":$?i.focusOption("up"):i.openMenu("last");break;case"ArrowDown":$?i.focusOption("down"):i.openMenu("first");break;case"PageUp":if(!$)return;i.focusOption("pageup");break;case"PageDown":if(!$)return;i.focusOption("pagedown");break;case"Home":if(!$)return;i.focusOption("first");break;case"End":if(!$)return;i.focusOption("last");break;default:return}d.preventDefault()}},i.state.instancePrefix="react-select-"+(i.props.instanceId||++Hne),i.state.selectValue=h6(r.value),r.menuIsOpen&&i.state.selectValue.length){var o=i.getFocusableOptionsWithIds(),u=i.buildFocusableOptions(),l=u.indexOf(i.state.selectValue[0]);i.state.focusableOptionsWithIds=o,i.state.focusedOption=u[l],i.state.focusedOptionId=m$(o,u[l])}return i}return lZ(n,[{key:"componentDidMount",value:function(){this.startListeningComposition(),this.startListeningToTouch(),this.props.closeMenuOnScroll&&document&&document.addEventListener&&document.addEventListener("scroll",this.onScroll,!0),this.props.autoFocus&&this.focusInput(),this.props.menuIsOpen&&this.state.focusedOption&&this.menuListRef&&this.focusedOptionRef&&p6(this.menuListRef,this.focusedOptionRef)}},{key:"componentDidUpdate",value:function(i){var o=this.props,u=o.isDisabled,l=o.menuIsOpen,d=this.state.isFocused;(d&&!u&&i.isDisabled||d&&l&&!i.menuIsOpen)&&this.focusInput(),d&&u&&!i.isDisabled?this.setState({isFocused:!1},this.onMenuClose):!d&&!u&&i.isDisabled&&this.inputRef===document.activeElement&&this.setState({isFocused:!0}),this.menuListRef&&this.focusedOptionRef&&this.scrollToFocusedOptionOnUpdate&&(p6(this.menuListRef,this.focusedOptionRef),this.scrollToFocusedOptionOnUpdate=!1)}},{key:"componentWillUnmount",value:function(){this.stopListeningComposition(),this.stopListeningToTouch(),document.removeEventListener("scroll",this.onScroll,!0)}},{key:"onMenuOpen",value:function(){this.props.onMenuOpen()}},{key:"onMenuClose",value:function(){this.onInputChange("",{action:"menu-close",prevInputValue:this.props.inputValue}),this.props.onMenuClose()}},{key:"onInputChange",value:function(i,o){this.props.onInputChange(i,o)}},{key:"focusInput",value:function(){this.inputRef&&this.inputRef.focus()}},{key:"blurInput",value:function(){this.inputRef&&this.inputRef.blur()}},{key:"openMenu",value:function(i){var o=this,u=this.state,l=u.selectValue,d=u.isFocused,h=this.buildFocusableOptions(),g=i==="first"?0:h.length-1;if(!this.props.isMulti){var y=h.indexOf(l[0]);y>-1&&(g=y)}this.scrollToFocusedOptionOnUpdate=!(d&&this.menuListRef),this.setState({inputIsHiddenAfterUpdate:!1,focusedValue:null,focusedOption:h[g],focusedOptionId:this.getFocusedOptionId(h[g])},function(){return o.onMenuOpen()})}},{key:"focusValue",value:function(i){var o=this.state,u=o.selectValue,l=o.focusedValue;if(this.props.isMulti){this.setState({focusedOption:null});var d=u.indexOf(l);l||(d=-1);var h=u.length-1,g=-1;if(u.length){switch(i){case"previous":d===0?g=0:d===-1?g=h:g=d-1;break;case"next":d>-1&&d0&&arguments[0]!==void 0?arguments[0]:"first",o=this.props.pageSize,u=this.state.focusedOption,l=this.getFocusableOptions();if(l.length){var d=0,h=l.indexOf(u);u||(h=-1),i==="up"?d=h>0?h-1:l.length-1:i==="down"?d=(h+1)%l.length:i==="pageup"?(d=h-o,d<0&&(d=0)):i==="pagedown"?(d=h+o,d>l.length-1&&(d=l.length-1)):i==="last"&&(d=l.length-1),this.scrollToFocusedOptionOnUpdate=!0,this.setState({focusedOption:l[d],focusedValue:null,focusedOptionId:this.getFocusedOptionId(l[d])})}}},{key:"getTheme",value:(function(){return this.props.theme?typeof this.props.theme=="function"?this.props.theme(p$):ct(ct({},p$),this.props.theme):p$})},{key:"getCommonProps",value:function(){var i=this.clearValue,o=this.cx,u=this.getStyles,l=this.getClassNames,d=this.getValue,h=this.selectOption,g=this.setValue,y=this.props,w=y.isMulti,v=y.isRtl,C=y.options,E=this.hasValue();return{clearValue:i,cx:o,getStyles:u,getClassNames:l,getValue:d,hasValue:E,isMulti:w,isRtl:v,options:C,selectOption:h,selectProps:y,setValue:g,theme:this.getTheme()}}},{key:"hasValue",value:function(){var i=this.state.selectValue;return i.length>0}},{key:"hasOptions",value:function(){return!!this.getFocusableOptions().length}},{key:"isClearable",value:function(){var i=this.props,o=i.isClearable,u=i.isMulti;return o===void 0?u:o}},{key:"isOptionDisabled",value:function(i,o){return N7(this.props,i,o)}},{key:"isOptionSelected",value:function(i,o){return M7(this.props,i,o)}},{key:"filterOption",value:function(i,o){return k7(this.props,i,o)}},{key:"formatOptionLabel",value:function(i,o){if(typeof this.props.formatOptionLabel=="function"){var u=this.props.inputValue,l=this.state.selectValue;return this.props.formatOptionLabel(i,{context:o,inputValue:u,selectValue:l})}else return this.getOptionLabel(i)}},{key:"formatGroupLabel",value:function(i){return this.props.formatGroupLabel(i)}},{key:"startListeningComposition",value:(function(){document&&document.addEventListener&&(document.addEventListener("compositionstart",this.onCompositionStart,!1),document.addEventListener("compositionend",this.onCompositionEnd,!1))})},{key:"stopListeningComposition",value:function(){document&&document.removeEventListener&&(document.removeEventListener("compositionstart",this.onCompositionStart),document.removeEventListener("compositionend",this.onCompositionEnd))}},{key:"startListeningToTouch",value:(function(){document&&document.addEventListener&&(document.addEventListener("touchstart",this.onTouchStart,!1),document.addEventListener("touchmove",this.onTouchMove,!1),document.addEventListener("touchend",this.onTouchEnd,!1))})},{key:"stopListeningToTouch",value:function(){document&&document.removeEventListener&&(document.removeEventListener("touchstart",this.onTouchStart),document.removeEventListener("touchmove",this.onTouchMove),document.removeEventListener("touchend",this.onTouchEnd))}},{key:"renderInput",value:(function(){var i=this.props,o=i.isDisabled,u=i.isSearchable,l=i.inputId,d=i.inputValue,h=i.tabIndex,g=i.form,y=i.menuIsOpen,w=i.required,v=this.getComponents(),C=v.Input,E=this.state,$=E.inputIsHidden,O=E.ariaSelection,_=this.commonProps,R=l||this.getElementId("input"),k=ct(ct(ct({"aria-autocomplete":"list","aria-expanded":y,"aria-haspopup":!0,"aria-errormessage":this.props["aria-errormessage"],"aria-invalid":this.props["aria-invalid"],"aria-label":this.props["aria-label"],"aria-labelledby":this.props["aria-labelledby"],"aria-required":w,role:"combobox","aria-activedescendant":this.isAppleDevice?void 0:this.state.focusedOptionId||""},y&&{"aria-controls":this.getElementId("listbox")}),!u&&{"aria-readonly":!0}),this.hasValue()?(O==null?void 0:O.action)==="initial-input-focus"&&{"aria-describedby":this.getElementId("live-region")}:{"aria-describedby":this.getElementId("placeholder")});return u?T.createElement(C,Ve({},_,{autoCapitalize:"none",autoComplete:"off",autoCorrect:"off",id:R,innerRef:this.getInputRef,isDisabled:o,isHidden:$,onBlur:this.onInputBlur,onChange:this.handleInputChange,onFocus:this.onInputFocus,spellCheck:"false",tabIndex:h,form:g,type:"text",value:d},k)):T.createElement(mne,Ve({id:R,innerRef:this.getInputRef,onBlur:this.onInputBlur,onChange:sS,onFocus:this.onInputFocus,disabled:o,tabIndex:h,inputMode:"none",form:g,value:""},k))})},{key:"renderPlaceholderOrValue",value:function(){var i=this,o=this.getComponents(),u=o.MultiValue,l=o.MultiValueContainer,d=o.MultiValueLabel,h=o.MultiValueRemove,g=o.SingleValue,y=o.Placeholder,w=this.commonProps,v=this.props,C=v.controlShouldRenderValue,E=v.isDisabled,$=v.isMulti,O=v.inputValue,_=v.placeholder,R=this.state,k=R.selectValue,P=R.focusedValue,L=R.isFocused;if(!this.hasValue()||!C)return O?null:T.createElement(y,Ve({},w,{key:"placeholder",isDisabled:E,isFocused:L,innerProps:{id:this.getElementId("placeholder")}}),_);if($)return k.map(function(q,Y){var X=q===P,ue="".concat(i.getOptionLabel(q),"-").concat(i.getOptionValue(q));return T.createElement(u,Ve({},w,{components:{Container:l,Label:d,Remove:h},isFocused:X,isDisabled:E,key:ue,index:Y,removeProps:{onClick:function(){return i.removeValue(q)},onTouchEnd:function(){return i.removeValue(q)},onMouseDown:function(te){te.preventDefault()}},data:q}),i.formatOptionLabel(q,"value"))});if(O)return null;var F=k[0];return T.createElement(g,Ve({},w,{data:F,isDisabled:E}),this.formatOptionLabel(F,"value"))}},{key:"renderClearIndicator",value:function(){var i=this.getComponents(),o=i.ClearIndicator,u=this.commonProps,l=this.props,d=l.isDisabled,h=l.isLoading,g=this.state.isFocused;if(!this.isClearable()||!o||d||!this.hasValue()||h)return null;var y={onMouseDown:this.onClearIndicatorMouseDown,onTouchEnd:this.onClearIndicatorTouchEnd,"aria-hidden":"true"};return T.createElement(o,Ve({},u,{innerProps:y,isFocused:g}))}},{key:"renderLoadingIndicator",value:function(){var i=this.getComponents(),o=i.LoadingIndicator,u=this.commonProps,l=this.props,d=l.isDisabled,h=l.isLoading,g=this.state.isFocused;if(!o||!h)return null;var y={"aria-hidden":"true"};return T.createElement(o,Ve({},u,{innerProps:y,isDisabled:d,isFocused:g}))}},{key:"renderIndicatorSeparator",value:function(){var i=this.getComponents(),o=i.DropdownIndicator,u=i.IndicatorSeparator;if(!o||!u)return null;var l=this.commonProps,d=this.props.isDisabled,h=this.state.isFocused;return T.createElement(u,Ve({},l,{isDisabled:d,isFocused:h}))}},{key:"renderDropdownIndicator",value:function(){var i=this.getComponents(),o=i.DropdownIndicator;if(!o)return null;var u=this.commonProps,l=this.props.isDisabled,d=this.state.isFocused,h={onMouseDown:this.onDropdownIndicatorMouseDown,onTouchEnd:this.onDropdownIndicatorTouchEnd,"aria-hidden":"true"};return T.createElement(o,Ve({},u,{innerProps:h,isDisabled:l,isFocused:d}))}},{key:"renderMenu",value:function(){var i=this,o=this.getComponents(),u=o.Group,l=o.GroupHeading,d=o.Menu,h=o.MenuList,g=o.MenuPortal,y=o.LoadingMessage,w=o.NoOptionsMessage,v=o.Option,C=this.commonProps,E=this.state.focusedOption,$=this.props,O=$.captureMenuScroll,_=$.inputValue,R=$.isLoading,k=$.loadingMessage,P=$.minMenuHeight,L=$.maxMenuHeight,F=$.menuIsOpen,q=$.menuPlacement,Y=$.menuPosition,X=$.menuPortalTarget,ue=$.menuShouldBlockScroll,me=$.menuShouldScrollIntoView,te=$.noOptionsMessage,be=$.onMenuScrollToTop,we=$.onMenuScrollToBottom;if(!F)return null;var B=function($e,Ce){var Be=$e.type,Ie=$e.data,tt=$e.isDisabled,ke=$e.isSelected,Ke=$e.label,He=$e.value,ut=E===Ie,pt=tt?void 0:function(){return i.onOptionHover(Ie)},bt=tt?void 0:function(){return i.selectOption(Ie)},gt="".concat(i.getElementId("option"),"-").concat(Ce),Ut={id:gt,onClick:bt,onMouseMove:pt,onMouseOver:pt,tabIndex:-1,role:"option","aria-selected":i.isAppleDevice?void 0:ke};return T.createElement(v,Ve({},C,{innerProps:Ut,data:Ie,isDisabled:tt,isSelected:ke,key:gt,label:Ke,type:Be,value:He,isFocused:ut,innerRef:ut?i.getFocusedOptionRef:void 0}),i.formatOptionLabel($e.data,"menu"))},V;if(this.hasOptions())V=this.getCategorizedOptions().map(function(he){if(he.type==="group"){var $e=he.data,Ce=he.options,Be=he.index,Ie="".concat(i.getElementId("group"),"-").concat(Be),tt="".concat(Ie,"-heading");return T.createElement(u,Ve({},C,{key:Ie,data:$e,options:Ce,Heading:l,headingProps:{id:tt,data:he.data},label:i.formatGroupLabel(he.data)}),he.options.map(function(ke){return B(ke,"".concat(Be,"-").concat(ke.index))}))}else if(he.type==="option")return B(he,"".concat(he.index))});else if(R){var H=k({inputValue:_});if(H===null)return null;V=T.createElement(y,C,H)}else{var ie=te({inputValue:_});if(ie===null)return null;V=T.createElement(w,C,ie)}var G={minMenuHeight:P,maxMenuHeight:L,menuPlacement:q,menuPosition:Y,menuShouldScrollIntoView:me},Q=T.createElement(Wee,Ve({},C,G),function(he){var $e=he.ref,Ce=he.placerProps,Be=Ce.placement,Ie=Ce.maxHeight;return T.createElement(d,Ve({},C,G,{innerRef:$e,innerProps:{onMouseDown:i.onMenuMouseDown,onMouseMove:i.onMenuMouseMove},isLoading:R,placement:Be}),T.createElement(Sne,{captureEnabled:O,onTopArrive:be,onBottomArrive:we,lockEnabled:ue},function(tt){return T.createElement(h,Ve({},C,{innerRef:function(Ke){i.getMenuListRef(Ke),tt(Ke)},innerProps:{role:"listbox","aria-multiselectable":C.isMulti,id:i.getElementId("listbox")},isLoading:R,maxHeight:Ie,focusedOption:E}),V)}))});return X||Y==="fixed"?T.createElement(g,Ve({},C,{appendTo:X,controlElement:this.controlRef,menuPlacement:q,menuPosition:Y}),Q):Q}},{key:"renderFormField",value:function(){var i=this,o=this.props,u=o.delimiter,l=o.isDisabled,d=o.isMulti,h=o.name,g=o.required,y=this.state.selectValue;if(g&&!this.hasValue()&&!l)return T.createElement(Ene,{name:h,onFocus:this.onValueInputFocus});if(!(!h||l))if(d)if(u){var w=y.map(function(E){return i.getOptionValue(E)}).join(u);return T.createElement("input",{name:h,type:"hidden",value:w})}else{var v=y.length>0?y.map(function(E,$){return T.createElement("input",{key:"i-".concat($),name:h,type:"hidden",value:i.getOptionValue(E)})}):T.createElement("input",{name:h,type:"hidden",value:""});return T.createElement("div",null,v)}else{var C=y[0]?this.getOptionValue(y[0]):"";return T.createElement("input",{name:h,type:"hidden",value:C})}}},{key:"renderLiveRegion",value:function(){var i=this.commonProps,o=this.state,u=o.ariaSelection,l=o.focusedOption,d=o.focusedValue,h=o.isFocused,g=o.selectValue,y=this.getFocusableOptions();return T.createElement(lne,Ve({},i,{id:this.getElementId("live-region"),ariaSelection:u,focusedOption:l,focusedValue:d,isFocused:h,selectValue:g,focusableOptions:y,isAppleDevice:this.isAppleDevice}))}},{key:"render",value:function(){var i=this.getComponents(),o=i.Control,u=i.IndicatorsContainer,l=i.SelectContainer,d=i.ValueContainer,h=this.props,g=h.className,y=h.id,w=h.isDisabled,v=h.menuIsOpen,C=this.state.isFocused,E=this.commonProps=this.getCommonProps();return T.createElement(l,Ve({},E,{className:g,innerProps:{id:y,onKeyDown:this.onKeyDown},isDisabled:w,isFocused:C}),this.renderLiveRegion(),T.createElement(o,Ve({},E,{innerRef:this.getControlRef,innerProps:{onMouseDown:this.onControlMouseDown,onTouchEnd:this.onControlTouchEnd},isDisabled:w,isFocused:C,menuIsOpen:v}),T.createElement(d,Ve({},E,{isDisabled:w}),this.renderPlaceholderOrValue(),this.renderInput()),T.createElement(u,Ve({},E,{isDisabled:w}),this.renderClearIndicator(),this.renderLoadingIndicator(),this.renderIndicatorSeparator(),this.renderDropdownIndicator())),this.renderMenu(),this.renderFormField())}}],[{key:"getDerivedStateFromProps",value:function(i,o){var u=o.prevProps,l=o.clearFocusValueOnUpdate,d=o.inputIsHiddenAfterUpdate,h=o.ariaSelection,g=o.isFocused,y=o.prevWasFocused,w=o.instancePrefix,v=i.options,C=i.value,E=i.menuIsOpen,$=i.inputValue,O=i.isMulti,_=h6(C),R={};if(u&&(C!==u.value||v!==u.options||E!==u.menuIsOpen||$!==u.inputValue)){var k=E?jne(i,_):[],P=E?_6(Rw(i,_),"".concat(w,"-option")):[],L=l?Bne(o,_):null,F=qne(o,k),q=m$(P,F);R={selectValue:_,focusedOption:F,focusedOptionId:q,focusableOptionsWithIds:P,focusedValue:L,clearFocusValueOnUpdate:!1}}var Y=d!=null&&i!==u?{inputIsHidden:d,inputIsHiddenAfterUpdate:void 0}:{},X=h,ue=g&&y;return g&&!ue&&(X={value:uw(O,_,_[0]||null),options:_,action:"initial-input-focus"},ue=!y),(h==null?void 0:h.action)==="initial-input-focus"&&(X=null),ct(ct(ct({},R),Y),{},{prevProps:i,ariaSelection:X,prevWasFocused:ue})}}]),n})(T.Component);F7.defaultProps=Une;var zne=["defaultInputValue","defaultMenuIsOpen","defaultValue","inputValue","menuIsOpen","onChange","onInputChange","onMenuClose","onMenuOpen","value"];function Vne(t){var e=t.defaultInputValue,n=e===void 0?"":e,r=t.defaultMenuIsOpen,i=r===void 0?!1:r,o=t.defaultValue,u=o===void 0?null:o,l=t.inputValue,d=t.menuIsOpen,h=t.onChange,g=t.onInputChange,y=t.onMenuClose,w=t.onMenuOpen,v=t.value,C=Iu(t,zne),E=T.useState(l!==void 0?l:n),$=Jr(E,2),O=$[0],_=$[1],R=T.useState(d!==void 0?d:i),k=Jr(R,2),P=k[0],L=k[1],F=T.useState(v!==void 0?v:u),q=Jr(F,2),Y=q[0],X=q[1],ue=T.useCallback(function(H,ie){typeof h=="function"&&h(H,ie),X(H)},[h]),me=T.useCallback(function(H,ie){var G;typeof g=="function"&&(G=g(H,ie)),_(G!==void 0?G:H)},[g]),te=T.useCallback(function(){typeof w=="function"&&w(),L(!0)},[w]),be=T.useCallback(function(){typeof y=="function"&&y(),L(!1)},[y]),we=l!==void 0?l:O,B=d!==void 0?d:P,V=v!==void 0?v:Y;return ct(ct({},C),{},{inputValue:we,menuIsOpen:B,onChange:ue,onInputChange:me,onMenuClose:be,onMenuOpen:te,value:V})}var Gne=["defaultOptions","cacheOptions","loadOptions","options","isLoading","onInputChange","filterOption"];function Wne(t){var e=t.defaultOptions,n=e===void 0?!1:e,r=t.cacheOptions,i=r===void 0?!1:r,o=t.loadOptions;t.options;var u=t.isLoading,l=u===void 0?!1:u,d=t.onInputChange,h=t.filterOption,g=h===void 0?null:h,y=Iu(t,Gne),w=y.inputValue,v=T.useRef(void 0),C=T.useRef(!1),E=T.useState(Array.isArray(n)?n:void 0),$=Jr(E,2),O=$[0],_=$[1],R=T.useState(typeof w<"u"?w:""),k=Jr(R,2),P=k[0],L=k[1],F=T.useState(n===!0),q=Jr(F,2),Y=q[0],X=q[1],ue=T.useState(void 0),me=Jr(ue,2),te=me[0],be=me[1],we=T.useState([]),B=Jr(we,2),V=B[0],H=B[1],ie=T.useState(!1),G=Jr(ie,2),Q=G[0],he=G[1],$e=T.useState({}),Ce=Jr($e,2),Be=Ce[0],Ie=Ce[1],tt=T.useState(void 0),ke=Jr(tt,2),Ke=ke[0],He=ke[1],ut=T.useState(void 0),pt=Jr(ut,2),bt=pt[0],gt=pt[1];i!==bt&&(Ie({}),gt(i)),n!==Ke&&(_(Array.isArray(n)?n:void 0),He(n)),T.useEffect(function(){return C.current=!0,function(){C.current=!1}},[]);var Ut=T.useCallback(function(en,xn){if(!o)return xn();var Dt=o(en,xn);Dt&&typeof Dt.then=="function"&&Dt.then(xn,function(){return xn()})},[o]);T.useEffect(function(){n===!0&&Ut(P,function(en){C.current&&(_(en||[]),X(!!v.current))})},[]);var Gt=T.useCallback(function(en,xn){var Dt=Pee(en,xn,d);if(!Dt){v.current=void 0,L(""),be(""),H([]),X(!1),he(!1);return}if(i&&Be[Dt])L(Dt),be(Dt),H(Be[Dt]),X(!1),he(!1);else{var Pt=v.current={};L(Dt),X(!0),he(!te),Ut(Dt,function(pe){C&&Pt===v.current&&(v.current=void 0,X(!1),be(Dt),H(pe||[]),he(!1),Ie(pe?ct(ct({},Be),{},Lg({},Dt,pe)):Be))})}},[i,Ut,te,Be,d]),Tt=Q?[]:P&&te?V:O||[];return ct(ct({},y),{},{options:Tt,isLoading:Y||l,onInputChange:Gt,filterOption:g})}var Kne=T.forwardRef(function(t,e){var n=Wne(t),r=Vne(n);return T.createElement(F7,Ve({ref:e},r))}),Yne=Kne;function Jne(t,e){return e?e(t):{name:{operation:"contains",value:t}}}function Fx(t){var w,v,C;const e=yn(),n=kf();let[r,i]=T.useState("");if(!t.querySource)return N.jsx("div",{children:"No query source to render"});const{query:o,keyExtractor:u}=t.querySource({queryClient:n,query:{itemsPerPage:20,jsonQuery:Jne(r,t.jsonQuery),withPreloads:t.withPreloads},queryOptions:{refetchOnWindowFocus:!1}}),l=t.keyExtractor||u||(E=>JSON.stringify(E)),d=(v=(w=o==null?void 0:o.data)==null?void 0:w.data)==null?void 0:v.items,h=E=>{var $;if(($=t==null?void 0:t.formEffect)!=null&&$.form){const{formEffect:O}=t,_={...O.form.values};if(O.beforeSet&&(E=O.beforeSet(E)),Sr.set(_,O.field,E),Sr.isObject(E)&&E.uniqueId&&O.skipFirebackMetaData!==!0&&Sr.set(_,O.field+"Id",E.uniqueId),Sr.isArray(E)&&O.skipFirebackMetaData!==!0){const R=O.field+"ListId";Sr.set(_,R,(E||[]).map(k=>k.uniqueId))}O==null||O.form.setValues(_)}t.onChange&&typeof t.onChange=="function"&&t.onChange(E)};let g=t.value;if(g===void 0&&((C=t.formEffect)!=null&&C.form)){const E=Sr.get(t.formEffect.form.values,t.formEffect.field);E!==void 0&&(g=E)}typeof g!="object"&&l&&g!==void 0&&(g=d.find(E=>l(E)===g));const y=E=>new Promise($=>{setTimeout(()=>{$(d)},100)});return N.jsxs(kS,{...t,children:[t.children,t.convertToNative?N.jsxs("select",{value:g,multiple:t.multiple,onChange:E=>{const $=d==null?void 0:d.find(O=>O.uniqueId===E.target.value);h($)},className:Ho("form-select",t.errorMessage&&"is-invalid",t.validMessage&&"is-valid"),disabled:t.disabled,"aria-label":"Default select example",children:[N.jsx("option",{value:"",children:e.selectPlaceholder},void 0),d==null?void 0:d.filter(Boolean).map(E=>{const $=l(E);return N.jsx("option",{value:$,children:t.fnLabelFormat(E)},$)})]}):N.jsx(N.Fragment,{children:N.jsx(Yne,{value:g,onChange:E=>{h(E)},isMulti:t.multiple,classNames:{container(E){return Ho(t.errorMessage&&" form-control form-control-no-padding is-invalid",t.validMessage&&"is-valid")},control(E){return Ho("form-control form-control-no-padding")},menu(E){return"react-select-menu-area"}},isSearchable:!0,defaultOptions:d,placeholder:e.searchplaceholder,noOptionsMessage:()=>e.noOptions,getOptionValue:l,loadOptions:y,formatOptionLabel:t.fnLabelFormat,onInputChange:i})})]})}var g$,R6;function my(){return R6||(R6=1,g$=TypeError),g$}const Qne={},Xne=Object.freeze(Object.defineProperty({__proto__:null,default:Qne},Symbol.toStringTag,{value:"Module"})),Zne=YD(Xne);var y$,P6;function WS(){if(P6)return y$;P6=1;var t=typeof Map=="function"&&Map.prototype,e=Object.getOwnPropertyDescriptor&&t?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,n=t&&e&&typeof e.get=="function"?e.get:null,r=t&&Map.prototype.forEach,i=typeof Set=="function"&&Set.prototype,o=Object.getOwnPropertyDescriptor&&i?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,u=i&&o&&typeof o.get=="function"?o.get:null,l=i&&Set.prototype.forEach,d=typeof WeakMap=="function"&&WeakMap.prototype,h=d?WeakMap.prototype.has:null,g=typeof WeakSet=="function"&&WeakSet.prototype,y=g?WeakSet.prototype.has:null,w=typeof WeakRef=="function"&&WeakRef.prototype,v=w?WeakRef.prototype.deref:null,C=Boolean.prototype.valueOf,E=Object.prototype.toString,$=Function.prototype.toString,O=String.prototype.match,_=String.prototype.slice,R=String.prototype.replace,k=String.prototype.toUpperCase,P=String.prototype.toLowerCase,L=RegExp.prototype.test,F=Array.prototype.concat,q=Array.prototype.join,Y=Array.prototype.slice,X=Math.floor,ue=typeof BigInt=="function"?BigInt.prototype.valueOf:null,me=Object.getOwnPropertySymbols,te=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Symbol.prototype.toString:null,be=typeof Symbol=="function"&&typeof Symbol.iterator=="object",we=typeof Symbol=="function"&&Symbol.toStringTag&&(typeof Symbol.toStringTag===be||!0)?Symbol.toStringTag:null,B=Object.prototype.propertyIsEnumerable,V=(typeof Reflect=="function"?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(ae){return ae.__proto__}:null);function H(ae,ce){if(ae===1/0||ae===-1/0||ae!==ae||ae&&ae>-1e3&&ae<1e3||L.call(/e/,ce))return ce;var nt=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if(typeof ae=="number"){var Ht=ae<0?-X(-ae):X(ae);if(Ht!==ae){var ln=String(Ht),wt=_.call(ce,ln.length+1);return R.call(ln,nt,"$&_")+"."+R.call(R.call(wt,/([0-9]{3})/g,"$&_"),/_$/,"")}}return R.call(ce,nt,"$&_")}var ie=Zne,G=ie.custom,Q=gt(G)?G:null,he={__proto__:null,double:'"',single:"'"},$e={__proto__:null,double:/(["\\])/g,single:/(['\\])/g};y$=function ae(ce,nt,Ht,ln){var wt=nt||{};if(Tt(wt,"quoteStyle")&&!Tt(he,wt.quoteStyle))throw new TypeError('option "quoteStyle" must be "single" or "double"');if(Tt(wt,"maxStringLength")&&(typeof wt.maxStringLength=="number"?wt.maxStringLength<0&&wt.maxStringLength!==1/0:wt.maxStringLength!==null))throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');var Ur=Tt(wt,"customInspect")?wt.customInspect:!0;if(typeof Ur!="boolean"&&Ur!=="symbol")throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");if(Tt(wt,"indent")&&wt.indent!==null&&wt.indent!==" "&&!(parseInt(wt.indent,10)===wt.indent&&wt.indent>0))throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`');if(Tt(wt,"numericSeparator")&&typeof wt.numericSeparator!="boolean")throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');var tn=wt.numericSeparator;if(typeof ce>"u")return"undefined";if(ce===null)return"null";if(typeof ce=="boolean")return ce?"true":"false";if(typeof ce=="string")return j(ce,wt);if(typeof ce=="number"){if(ce===0)return 1/0/ce>0?"0":"-0";var tr=String(ce);return tn?H(ce,tr):tr}if(typeof ce=="bigint"){var On=String(ce)+"n";return tn?H(ce,On):On}var Li=typeof wt.depth>"u"?5:wt.depth;if(typeof Ht>"u"&&(Ht=0),Ht>=Li&&Li>0&&typeof ce=="object")return tt(ce)?"[Array]":"[Object]";var ca=Ee(wt,Ht);if(typeof ln>"u")ln=[];else if(Dt(ln,ce)>=0)return"[Circular]";function Ar(jr,Aa,Oi){if(Aa&&(ln=Y.call(ln),ln.push(Aa)),Oi){var ji={depth:wt.depth};return Tt(wt,"quoteStyle")&&(ji.quoteStyle=wt.quoteStyle),ae(jr,ji,Ht+1,ln)}return ae(jr,wt,Ht+1,ln)}if(typeof ce=="function"&&!Ke(ce)){var Fs=xn(ce),uo=Wt(ce,Ar);return"[Function"+(Fs?": "+Fs:" (anonymous)")+"]"+(uo.length>0?" { "+q.call(uo,", ")+" }":"")}if(gt(ce)){var Ls=be?R.call(String(ce),/^(Symbol\(.*\))_[^)]*$/,"$1"):te.call(ce);return typeof ce=="object"&&!be?M(Ls):Ls}if(ht(ce)){for(var Ei="<"+P.call(String(ce.nodeName)),Xr=ce.attributes||[],lo=0;lo",Ei}if(tt(ce)){if(ce.length===0)return"[]";var Ui=Wt(ce,Ar);return ca&&!ge(Ui)?"["+rt(Ui,ca)+"]":"[ "+q.call(Ui,", ")+" ]"}if(He(ce)){var Ko=Wt(ce,Ar);return!("cause"in Error.prototype)&&"cause"in ce&&!B.call(ce,"cause")?"{ ["+String(ce)+"] "+q.call(F.call("[cause]: "+Ar(ce.cause),Ko),", ")+" }":Ko.length===0?"["+String(ce)+"]":"{ ["+String(ce)+"] "+q.call(Ko,", ")+" }"}if(typeof ce=="object"&&Ur){if(Q&&typeof ce[Q]=="function"&&ie)return ie(ce,{depth:Li-Ht});if(Ur!=="symbol"&&typeof ce.inspect=="function")return ce.inspect()}if(Pt(ce)){var In=[];return r&&r.call(ce,function(jr,Aa){In.push(Ar(Aa,ce,!0)+" => "+Ar(jr,ce))}),re("Map",n.call(ce),In,ca)}if(Ge(ce)){var Mn=[];return l&&l.call(ce,function(jr){Mn.push(Ar(jr,ce))}),re("Set",u.call(ce),Mn,ca)}if(pe(ce))return J("WeakMap");if(Je(ce))return J("WeakSet");if(ze(ce))return J("WeakRef");if(pt(ce))return M(Ar(Number(ce)));if(Ut(ce))return M(Ar(ue.call(ce)));if(bt(ce))return M(C.call(ce));if(ut(ce))return M(Ar(String(ce)));if(typeof window<"u"&&ce===window)return"{ [object Window] }";if(typeof globalThis<"u"&&ce===globalThis||typeof Ef<"u"&&ce===Ef)return"{ [object globalThis] }";if(!ke(ce)&&!Ke(ce)){var An=Wt(ce,Ar),Ze=V?V(ce)===Object.prototype:ce instanceof Object||ce.constructor===Object,xi=ce instanceof Object?"":"null prototype",Us=!Ze&&we&&Object(ce)===ce&&we in ce?_.call(en(ce),8,-1):xi?"Object":"",Yo=Ze||typeof ce.constructor!="function"?"":ce.constructor.name?ce.constructor.name+" ":"",co=Yo+(Us||xi?"["+q.call(F.call([],Us||[],xi||[]),": ")+"] ":"");return An.length===0?co+"{}":ca?co+"{"+rt(An,ca)+"}":co+"{ "+q.call(An,", ")+" }"}return String(ce)};function Ce(ae,ce,nt){var Ht=nt.quoteStyle||ce,ln=he[Ht];return ln+ae+ln}function Be(ae){return R.call(String(ae),/"/g,""")}function Ie(ae){return!we||!(typeof ae=="object"&&(we in ae||typeof ae[we]<"u"))}function tt(ae){return en(ae)==="[object Array]"&&Ie(ae)}function ke(ae){return en(ae)==="[object Date]"&&Ie(ae)}function Ke(ae){return en(ae)==="[object RegExp]"&&Ie(ae)}function He(ae){return en(ae)==="[object Error]"&&Ie(ae)}function ut(ae){return en(ae)==="[object String]"&&Ie(ae)}function pt(ae){return en(ae)==="[object Number]"&&Ie(ae)}function bt(ae){return en(ae)==="[object Boolean]"&&Ie(ae)}function gt(ae){if(be)return ae&&typeof ae=="object"&&ae instanceof Symbol;if(typeof ae=="symbol")return!0;if(!ae||typeof ae!="object"||!te)return!1;try{return te.call(ae),!0}catch{}return!1}function Ut(ae){if(!ae||typeof ae!="object"||!ue)return!1;try{return ue.call(ae),!0}catch{}return!1}var Gt=Object.prototype.hasOwnProperty||function(ae){return ae in this};function Tt(ae,ce){return Gt.call(ae,ce)}function en(ae){return E.call(ae)}function xn(ae){if(ae.name)return ae.name;var ce=O.call($.call(ae),/^function\s*([\w$]+)/);return ce?ce[1]:null}function Dt(ae,ce){if(ae.indexOf)return ae.indexOf(ce);for(var nt=0,Ht=ae.length;ntce.maxStringLength){var nt=ae.length-ce.maxStringLength,Ht="... "+nt+" more character"+(nt>1?"s":"");return j(_.call(ae,0,ce.maxStringLength),ce)+Ht}var ln=$e[ce.quoteStyle||"single"];ln.lastIndex=0;var wt=R.call(R.call(ae,ln,"\\$1"),/[\x00-\x1f]/g,A);return Ce(wt,"single",ce)}function A(ae){var ce=ae.charCodeAt(0),nt={8:"b",9:"t",10:"n",12:"f",13:"r"}[ce];return nt?"\\"+nt:"\\x"+(ce<16?"0":"")+k.call(ce.toString(16))}function M(ae){return"Object("+ae+")"}function J(ae){return ae+" { ? }"}function re(ae,ce,nt,Ht){var ln=Ht?rt(nt,Ht):q.call(nt,", ");return ae+" ("+ce+") {"+ln+"}"}function ge(ae){for(var ce=0;ce1?"s":""," ").concat(o.join(","),", selected.");case"select-option":return u?"option ".concat(i," is disabled. Select another option."):"option ".concat(i,", selected.");default:return""}},onFocus:function(e){var n=e.context,r=e.focused,i=e.options,o=e.label,u=o===void 0?"":o,l=e.selectValue,d=e.isDisabled,h=e.isSelected,g=e.isAppleDevice,y=function(E,$){return E&&E.length?"".concat(E.indexOf($)+1," of ").concat(E.length):""};if(n==="value"&&l)return"value ".concat(u," focused, ").concat(y(l,r),".");if(n==="menu"&&g){var w=d?" disabled":"",b="".concat(h?" selected":"").concat(w);return"".concat(u).concat(b,", ").concat(y(i,r),".")}return""},onFilter:function(e){var n=e.inputValue,r=e.resultsMessage;return"".concat(r).concat(n?" for search term "+n:"",".")}},kne=function(e){var n=e.ariaSelection,r=e.focusedOption,i=e.focusedValue,o=e.focusableOptions,u=e.isFocused,l=e.selectValue,d=e.selectProps,h=e.id,g=e.isAppleDevice,y=d.ariaLiveMessages,w=d.getOptionLabel,b=d.inputValue,C=d.isMulti,E=d.isOptionDisabled,$=d.isSearchable,O=d.menuIsOpen,_=d.options,P=d.screenReaderStatus,k=d.tabSelectsValue,R=d.isLoading,L=d["aria-label"],F=d["aria-live"],q=T.useMemo(function(){return ct(ct({},Mne),y||{})},[y]),Y=T.useMemo(function(){var Se="";if(n&&q.onChange){var j=n.option,V=n.options,H=n.removedValue,ie=n.removedValues,G=n.value,X=function(ke){return Array.isArray(ke)?null:ke},fe=H||j||X(G),$e=fe?w(fe):"",Ce=V||ie||void 0,je=Ce?Ce.map(w):[],Pe=ct({isDisabled:fe&&E(fe,l),label:$e,labels:je},n);Se=q.onChange(Pe)}return Se},[n,q,E,l,w]),Q=T.useMemo(function(){var Se="",j=r||i,V=!!(r&&l&&l.includes(r));if(j&&q.onFocus){var H={focused:j,label:w(j),isDisabled:E(j,l),isSelected:V,options:o,context:j===r?"menu":"value",selectValue:l,isAppleDevice:g};Se=q.onFocus(H)}return Se},[r,i,w,E,q,o,l,g]),ue=T.useMemo(function(){var Se="";if(O&&_.length&&!R&&q.onFilter){var j=P({count:o.length});Se=q.onFilter({inputValue:b,resultsMessage:j})}return Se},[o,b,O,q,_,P,R]),me=(n==null?void 0:n.action)==="initial-input-focus",te=T.useMemo(function(){var Se="";if(q.guidance){var j=i?"value":O?"menu":"input";Se=q.guidance({"aria-label":L,context:j,isDisabled:r&&E(r,l),isMulti:C,isSearchable:$,tabSelectsValue:k,isInitialFocus:me})}return Se},[L,r,i,C,E,$,O,q,l,k,me]),be=mt(T.Fragment,null,mt("span",{id:"aria-selection"},Y),mt("span",{id:"aria-focused"},Q),mt("span",{id:"aria-results"},ue),mt("span",{id:"aria-guidance"},te));return mt(T.Fragment,null,mt(GP,{id:h},me&&be),mt(GP,{"aria-live":F,"aria-atomic":"false","aria-relevant":"additions text",role:"log"},u&&!me&&be))},Dne=kne,cO=[{base:"A",letters:"AⒶAÀÁÂẦẤẪẨÃĀĂẰẮẴẲȦǠÄǞẢÅǺǍȀȂẠẬẶḀĄȺⱯ"},{base:"AA",letters:"Ꜳ"},{base:"AE",letters:"ÆǼǢ"},{base:"AO",letters:"Ꜵ"},{base:"AU",letters:"Ꜷ"},{base:"AV",letters:"ꜸꜺ"},{base:"AY",letters:"Ꜽ"},{base:"B",letters:"BⒷBḂḄḆɃƂƁ"},{base:"C",letters:"CⒸCĆĈĊČÇḈƇȻꜾ"},{base:"D",letters:"DⒹDḊĎḌḐḒḎĐƋƊƉꝹ"},{base:"DZ",letters:"DZDŽ"},{base:"Dz",letters:"DzDž"},{base:"E",letters:"EⒺEÈÉÊỀẾỄỂẼĒḔḖĔĖËẺĚȄȆẸỆȨḜĘḘḚƐƎ"},{base:"F",letters:"FⒻFḞƑꝻ"},{base:"G",letters:"GⒼGǴĜḠĞĠǦĢǤƓꞠꝽꝾ"},{base:"H",letters:"HⒽHĤḢḦȞḤḨḪĦⱧⱵꞍ"},{base:"I",letters:"IⒾIÌÍÎĨĪĬİÏḮỈǏȈȊỊĮḬƗ"},{base:"J",letters:"JⒿJĴɈ"},{base:"K",letters:"KⓀKḰǨḲĶḴƘⱩꝀꝂꝄꞢ"},{base:"L",letters:"LⓁLĿĹĽḶḸĻḼḺŁȽⱢⱠꝈꝆꞀ"},{base:"LJ",letters:"LJ"},{base:"Lj",letters:"Lj"},{base:"M",letters:"MⓂMḾṀṂⱮƜ"},{base:"N",letters:"NⓃNǸŃÑṄŇṆŅṊṈȠƝꞐꞤ"},{base:"NJ",letters:"NJ"},{base:"Nj",letters:"Nj"},{base:"O",letters:"OⓄOÒÓÔỒỐỖỔÕṌȬṎŌṐṒŎȮȰÖȪỎŐǑȌȎƠỜỚỠỞỢỌỘǪǬØǾƆƟꝊꝌ"},{base:"OI",letters:"Ƣ"},{base:"OO",letters:"Ꝏ"},{base:"OU",letters:"Ȣ"},{base:"P",letters:"PⓅPṔṖƤⱣꝐꝒꝔ"},{base:"Q",letters:"QⓆQꝖꝘɊ"},{base:"R",letters:"RⓇRŔṘŘȐȒṚṜŖṞɌⱤꝚꞦꞂ"},{base:"S",letters:"SⓈSẞŚṤŜṠŠṦṢṨȘŞⱾꞨꞄ"},{base:"T",letters:"TⓉTṪŤṬȚŢṰṮŦƬƮȾꞆ"},{base:"TZ",letters:"Ꜩ"},{base:"U",letters:"UⓊUÙÚÛŨṸŪṺŬÜǛǗǕǙỦŮŰǓȔȖƯỪỨỮỬỰỤṲŲṶṴɄ"},{base:"V",letters:"VⓋVṼṾƲꝞɅ"},{base:"VY",letters:"Ꝡ"},{base:"W",letters:"WⓌWẀẂŴẆẄẈⱲ"},{base:"X",letters:"XⓍXẊẌ"},{base:"Y",letters:"YⓎYỲÝŶỸȲẎŸỶỴƳɎỾ"},{base:"Z",letters:"ZⓏZŹẐŻŽẒẔƵȤⱿⱫꝢ"},{base:"a",letters:"aⓐaẚàáâầấẫẩãāăằắẵẳȧǡäǟảåǻǎȁȃạậặḁąⱥɐ"},{base:"aa",letters:"ꜳ"},{base:"ae",letters:"æǽǣ"},{base:"ao",letters:"ꜵ"},{base:"au",letters:"ꜷ"},{base:"av",letters:"ꜹꜻ"},{base:"ay",letters:"ꜽ"},{base:"b",letters:"bⓑbḃḅḇƀƃɓ"},{base:"c",letters:"cⓒcćĉċčçḉƈȼꜿↄ"},{base:"d",letters:"dⓓdḋďḍḑḓḏđƌɖɗꝺ"},{base:"dz",letters:"dzdž"},{base:"e",letters:"eⓔeèéêềếễểẽēḕḗĕėëẻěȅȇẹệȩḝęḙḛɇɛǝ"},{base:"f",letters:"fⓕfḟƒꝼ"},{base:"g",letters:"gⓖgǵĝḡğġǧģǥɠꞡᵹꝿ"},{base:"h",letters:"hⓗhĥḣḧȟḥḩḫẖħⱨⱶɥ"},{base:"hv",letters:"ƕ"},{base:"i",letters:"iⓘiìíîĩīĭïḯỉǐȉȋịįḭɨı"},{base:"j",letters:"jⓙjĵǰɉ"},{base:"k",letters:"kⓚkḱǩḳķḵƙⱪꝁꝃꝅꞣ"},{base:"l",letters:"lⓛlŀĺľḷḹļḽḻſłƚɫⱡꝉꞁꝇ"},{base:"lj",letters:"lj"},{base:"m",letters:"mⓜmḿṁṃɱɯ"},{base:"n",letters:"nⓝnǹńñṅňṇņṋṉƞɲʼnꞑꞥ"},{base:"nj",letters:"nj"},{base:"o",letters:"oⓞoòóôồốỗổõṍȭṏōṑṓŏȯȱöȫỏőǒȍȏơờớỡởợọộǫǭøǿɔꝋꝍɵ"},{base:"oi",letters:"ƣ"},{base:"ou",letters:"ȣ"},{base:"oo",letters:"ꝏ"},{base:"p",letters:"pⓟpṕṗƥᵽꝑꝓꝕ"},{base:"q",letters:"qⓠqɋꝗꝙ"},{base:"r",letters:"rⓡrŕṙřȑȓṛṝŗṟɍɽꝛꞧꞃ"},{base:"s",letters:"sⓢsßśṥŝṡšṧṣṩșşȿꞩꞅẛ"},{base:"t",letters:"tⓣtṫẗťṭțţṱṯŧƭʈⱦꞇ"},{base:"tz",letters:"ꜩ"},{base:"u",letters:"uⓤuùúûũṹūṻŭüǜǘǖǚủůűǔȕȗưừứữửựụṳųṷṵʉ"},{base:"v",letters:"vⓥvṽṿʋꝟʌ"},{base:"vy",letters:"ꝡ"},{base:"w",letters:"wⓦwẁẃŵẇẅẘẉⱳ"},{base:"x",letters:"xⓧxẋẍ"},{base:"y",letters:"yⓨyỳýŷỹȳẏÿỷẙỵƴɏỿ"},{base:"z",letters:"zⓩzźẑżžẓẕƶȥɀⱬꝣ"}],Fne=new RegExp("["+cO.map(function(t){return t.letters}).join("")+"]","g"),tM={};for(var F$=0;F$-1}},jne=["innerRef"];function qne(t){var e=t.innerRef,n=Du(t,jne),r=pte(n,"onExited","in","enter","exit","appear");return mt("input",Ve({ref:e},r,{css:RT({label:"dummyInput",background:0,border:0,caretColor:"transparent",fontSize:"inherit",gridArea:"1 / 1 / 2 / 3",outline:0,padding:0,width:1,color:"transparent",left:-100,opacity:0,position:"relative",transform:"scale(.01)"},"","")}))}var Hne=function(e){e.cancelable&&e.preventDefault(),e.stopPropagation()};function zne(t){var e=t.isEnabled,n=t.onBottomArrive,r=t.onBottomLeave,i=t.onTopArrive,o=t.onTopLeave,u=T.useRef(!1),l=T.useRef(!1),d=T.useRef(0),h=T.useRef(null),g=T.useCallback(function($,O){if(h.current!==null){var _=h.current,P=_.scrollTop,k=_.scrollHeight,R=_.clientHeight,L=h.current,F=O>0,q=k-R-P,Y=!1;q>O&&u.current&&(r&&r($),u.current=!1),F&&l.current&&(o&&o($),l.current=!1),F&&O>q?(n&&!u.current&&n($),L.scrollTop=k,Y=!0,u.current=!0):!F&&-O>P&&(i&&!l.current&&i($),L.scrollTop=0,Y=!0,l.current=!0),Y&&Hne($)}},[n,r,i,o]),y=T.useCallback(function($){g($,$.deltaY)},[g]),w=T.useCallback(function($){d.current=$.changedTouches[0].clientY},[]),b=T.useCallback(function($){var O=d.current-$.changedTouches[0].clientY;g($,O)},[g]),C=T.useCallback(function($){if($){var O=fte?{passive:!1}:!1;$.addEventListener("wheel",y,O),$.addEventListener("touchstart",w,O),$.addEventListener("touchmove",b,O)}},[b,w,y]),E=T.useCallback(function($){$&&($.removeEventListener("wheel",y,!1),$.removeEventListener("touchstart",w,!1),$.removeEventListener("touchmove",b,!1))},[b,w,y]);return T.useEffect(function(){if(e){var $=h.current;return C($),function(){E($)}}},[e,C,E]),function($){h.current=$}}var KP=["boxSizing","height","overflow","paddingRight","position"],YP={boxSizing:"border-box",overflow:"hidden",position:"relative",height:"100%"};function JP(t){t.cancelable&&t.preventDefault()}function QP(t){t.stopPropagation()}function XP(){var t=this.scrollTop,e=this.scrollHeight,n=t+this.offsetHeight;t===0?this.scrollTop=1:n===e&&(this.scrollTop=t-1)}function ZP(){return"ontouchstart"in window||navigator.maxTouchPoints}var e6=!!(typeof window<"u"&&window.document&&window.document.createElement),Z0=0,Xg={capture:!1,passive:!1};function Vne(t){var e=t.isEnabled,n=t.accountForScrollbars,r=n===void 0?!0:n,i=T.useRef({}),o=T.useRef(null),u=T.useCallback(function(d){if(e6){var h=document.body,g=h&&h.style;if(r&&KP.forEach(function(C){var E=g&&g[C];i.current[C]=E}),r&&Z0<1){var y=parseInt(i.current.paddingRight,10)||0,w=document.body?document.body.clientWidth:0,b=window.innerWidth-w+y||0;Object.keys(YP).forEach(function(C){var E=YP[C];g&&(g[C]=E)}),g&&(g.paddingRight="".concat(b,"px"))}h&&ZP()&&(h.addEventListener("touchmove",JP,Xg),d&&(d.addEventListener("touchstart",XP,Xg),d.addEventListener("touchmove",QP,Xg))),Z0+=1}},[r]),l=T.useCallback(function(d){if(e6){var h=document.body,g=h&&h.style;Z0=Math.max(Z0-1,0),r&&Z0<1&&KP.forEach(function(y){var w=i.current[y];g&&(g[y]=w)}),h&&ZP()&&(h.removeEventListener("touchmove",JP,Xg),d&&(d.removeEventListener("touchstart",XP,Xg),d.removeEventListener("touchmove",QP,Xg)))}},[r]);return T.useEffect(function(){if(e){var d=o.current;return u(d),function(){l(d)}}},[e,u,l]),function(d){o.current=d}}var Gne=function(e){var n=e.target;return n.ownerDocument.activeElement&&n.ownerDocument.activeElement.blur()},Wne={name:"1kfdb0e",styles:"position:fixed;left:0;bottom:0;right:0;top:0"};function Kne(t){var e=t.children,n=t.lockEnabled,r=t.captureEnabled,i=r===void 0?!0:r,o=t.onBottomArrive,u=t.onBottomLeave,l=t.onTopArrive,d=t.onTopLeave,h=zne({isEnabled:i,onBottomArrive:o,onBottomLeave:u,onTopArrive:l,onTopLeave:d}),g=Vne({isEnabled:n}),y=function(b){h(b),g(b)};return mt(T.Fragment,null,n&&mt("div",{onClick:Gne,css:Wne}),e(y))}var Yne={name:"1a0ro4n-requiredInput",styles:"label:requiredInput;opacity:0;pointer-events:none;position:absolute;bottom:0;left:0;right:0;width:100%"},Jne=function(e){var n=e.name,r=e.onFocus;return mt("input",{required:!0,name:n,tabIndex:-1,"aria-hidden":"true",onFocus:r,css:Yne,value:"",onChange:function(){}})},Qne=Jne;function kT(t){var e;return typeof window<"u"&&window.navigator!=null?t.test(((e=window.navigator.userAgentData)===null||e===void 0?void 0:e.platform)||window.navigator.platform):!1}function Xne(){return kT(/^iPhone/i)}function rM(){return kT(/^Mac/i)}function Zne(){return kT(/^iPad/i)||rM()&&navigator.maxTouchPoints>1}function ere(){return Xne()||Zne()}function tre(){return rM()||ere()}var nre=function(e){return e.label},rre=function(e){return e.label},ire=function(e){return e.value},are=function(e){return!!e.isDisabled},ore={clearIndicator:qte,container:Pte,control:Yte,dropdownIndicator:Bte,group:Zte,groupHeading:tne,indicatorsContainer:kte,indicatorSeparator:zte,input:ane,loadingIndicator:Wte,loadingMessage:Ote,menu:bte,menuList:$te,menuPortal:Ate,multiValue:cne,multiValueLabel:fne,multiValueRemove:dne,noOptionsMessage:xte,option:vne,placeholder:Sne,singleValue:Ene,valueContainer:Nte},sre={primary:"#2684FF",primary75:"#4C9AFF",primary50:"#B2D4FF",primary25:"#DEEBFF",danger:"#DE350B",dangerLight:"#FFBDAD",neutral0:"hsl(0, 0%, 100%)",neutral5:"hsl(0, 0%, 95%)",neutral10:"hsl(0, 0%, 90%)",neutral20:"hsl(0, 0%, 80%)",neutral30:"hsl(0, 0%, 70%)",neutral40:"hsl(0, 0%, 60%)",neutral50:"hsl(0, 0%, 50%)",neutral60:"hsl(0, 0%, 40%)",neutral70:"hsl(0, 0%, 30%)",neutral80:"hsl(0, 0%, 20%)",neutral90:"hsl(0, 0%, 10%)"},ure=4,iM=4,lre=38,cre=iM*2,fre={baseUnit:iM,controlHeight:lre,menuGutter:cre},B$={borderRadius:ure,colors:sre,spacing:fre},dre={"aria-live":"polite",backspaceRemovesValue:!0,blurInputOnSelect:HP(),captureMenuScroll:!HP(),classNames:{},closeMenuOnSelect:!0,closeMenuOnScroll:!1,components:{},controlShouldRenderValue:!0,escapeClearsValue:!1,filterOption:Bne(),formatGroupLabel:nre,getOptionLabel:rre,getOptionValue:ire,isDisabled:!1,isLoading:!1,isMulti:!1,isRtl:!1,isSearchable:!0,isOptionDisabled:are,loadingMessage:function(){return"Loading..."},maxMenuHeight:300,minMenuHeight:140,menuIsOpen:!1,menuPlacement:"bottom",menuPosition:"absolute",menuShouldBlockScroll:!1,menuShouldScrollIntoView:!lte(),noOptionsMessage:function(){return"No options"},openMenuOnFocus:!1,openMenuOnClick:!0,options:[],pageSize:5,placeholder:"Select...",screenReaderStatus:function(e){var n=e.count;return"".concat(n," result").concat(n!==1?"s":""," available")},styles:{},tabIndex:0,tabSelectsValue:!0,unstyled:!1};function t6(t,e,n,r){var i=sM(t,e,n),o=uM(t,e,n),u=oM(t,e),l=kS(t,e);return{type:"option",data:e,isDisabled:i,isSelected:o,label:u,value:l,index:r}}function nS(t,e){return t.options.map(function(n,r){if("options"in n){var i=n.options.map(function(u,l){return t6(t,u,e,l)}).filter(function(u){return r6(t,u)});return i.length>0?{type:"group",data:n,options:i,index:r}:void 0}var o=t6(t,n,e,r);return r6(t,o)?o:void 0}).filter(dte)}function aM(t){return t.reduce(function(e,n){return n.type==="group"?e.push.apply(e,xT(n.options.map(function(r){return r.data}))):e.push(n.data),e},[])}function n6(t,e){return t.reduce(function(n,r){return r.type==="group"?n.push.apply(n,xT(r.options.map(function(i){return{data:i.data,id:"".concat(e,"-").concat(r.index,"-").concat(i.index)}}))):n.push({data:r.data,id:"".concat(e,"-").concat(r.index)}),n},[])}function hre(t,e){return aM(nS(t,e))}function r6(t,e){var n=t.inputValue,r=n===void 0?"":n,i=e.data,o=e.isSelected,u=e.label,l=e.value;return(!cM(t)||!o)&&lM(t,{label:u,value:l,data:i},r)}function pre(t,e){var n=t.focusedValue,r=t.selectValue,i=r.indexOf(n);if(i>-1){var o=e.indexOf(n);if(o>-1)return n;if(i-1?n:e[0]}var j$=function(e,n){var r,i=(r=e.find(function(o){return o.data===n}))===null||r===void 0?void 0:r.id;return i||null},oM=function(e,n){return e.getOptionLabel(n)},kS=function(e,n){return e.getOptionValue(n)};function sM(t,e,n){return typeof t.isOptionDisabled=="function"?t.isOptionDisabled(e,n):!1}function uM(t,e,n){if(n.indexOf(e)>-1)return!0;if(typeof t.isOptionSelected=="function")return t.isOptionSelected(e,n);var r=kS(t,e);return n.some(function(i){return kS(t,i)===r})}function lM(t,e,n){return t.filterOption?t.filterOption(e,n):!0}var cM=function(e){var n=e.hideSelectedOptions,r=e.isMulti;return n===void 0?r:n},gre=1,fM=(function(t){FZ(n,t);var e=UZ(n);function n(r){var i;if(kZ(this,n),i=e.call(this,r),i.state={ariaSelection:null,focusedOption:null,focusedOptionId:null,focusableOptionsWithIds:[],focusedValue:null,inputIsHidden:!1,isFocused:!1,selectValue:[],clearFocusValueOnUpdate:!1,prevWasFocused:!1,inputIsHiddenAfterUpdate:void 0,prevProps:void 0,instancePrefix:""},i.blockOptionHover=!1,i.isComposing=!1,i.commonProps=void 0,i.initialTouchX=0,i.initialTouchY=0,i.openAfterFocus=!1,i.scrollToFocusedOptionOnUpdate=!1,i.userIsDragging=void 0,i.isAppleDevice=tre(),i.controlRef=null,i.getControlRef=function(d){i.controlRef=d},i.focusedOptionRef=null,i.getFocusedOptionRef=function(d){i.focusedOptionRef=d},i.menuListRef=null,i.getMenuListRef=function(d){i.menuListRef=d},i.inputRef=null,i.getInputRef=function(d){i.inputRef=d},i.focus=i.focusInput,i.blur=i.blurInput,i.onChange=function(d,h){var g=i.props,y=g.onChange,w=g.name;h.name=w,i.ariaOnChange(d,h),y(d,h)},i.setValue=function(d,h,g){var y=i.props,w=y.closeMenuOnSelect,b=y.isMulti,C=y.inputValue;i.onInputChange("",{action:"set-value",prevInputValue:C}),w&&(i.setState({inputIsHiddenAfterUpdate:!b}),i.onMenuClose()),i.setState({clearFocusValueOnUpdate:!0}),i.onChange(d,{action:h,option:g})},i.selectOption=function(d){var h=i.props,g=h.blurInputOnSelect,y=h.isMulti,w=h.name,b=i.state.selectValue,C=y&&i.isOptionSelected(d,b),E=i.isOptionDisabled(d,b);if(C){var $=i.getOptionValue(d);i.setValue(b.filter(function(O){return i.getOptionValue(O)!==$}),"deselect-option",d)}else if(!E)y?i.setValue([].concat(xT(b),[d]),"select-option",d):i.setValue(d,"select-option");else{i.ariaOnChange(d,{action:"select-option",option:d,name:w});return}g&&i.blurInput()},i.removeValue=function(d){var h=i.props.isMulti,g=i.state.selectValue,y=i.getOptionValue(d),w=g.filter(function(C){return i.getOptionValue(C)!==y}),b=Nw(h,w,w[0]||null);i.onChange(b,{action:"remove-value",removedValue:d}),i.focusInput()},i.clearValue=function(){var d=i.state.selectValue;i.onChange(Nw(i.props.isMulti,[],null),{action:"clear",removedValues:d})},i.popValue=function(){var d=i.props.isMulti,h=i.state.selectValue,g=h[h.length-1],y=h.slice(0,h.length-1),w=Nw(d,y,y[0]||null);g&&i.onChange(w,{action:"pop-value",removedValue:g})},i.getFocusedOptionId=function(d){return j$(i.state.focusableOptionsWithIds,d)},i.getFocusableOptionsWithIds=function(){return n6(nS(i.props,i.state.selectValue),i.getElementId("option"))},i.getValue=function(){return i.state.selectValue},i.cx=function(){for(var d=arguments.length,h=new Array(d),g=0;gb||w>b}},i.onTouchEnd=function(d){i.userIsDragging||(i.controlRef&&!i.controlRef.contains(d.target)&&i.menuListRef&&!i.menuListRef.contains(d.target)&&i.blurInput(),i.initialTouchX=0,i.initialTouchY=0)},i.onControlTouchEnd=function(d){i.userIsDragging||i.onControlMouseDown(d)},i.onClearIndicatorTouchEnd=function(d){i.userIsDragging||i.onClearIndicatorMouseDown(d)},i.onDropdownIndicatorTouchEnd=function(d){i.userIsDragging||i.onDropdownIndicatorMouseDown(d)},i.handleInputChange=function(d){var h=i.props.inputValue,g=d.currentTarget.value;i.setState({inputIsHiddenAfterUpdate:!1}),i.onInputChange(g,{action:"input-change",prevInputValue:h}),i.props.menuIsOpen||i.onMenuOpen()},i.onInputFocus=function(d){i.props.onFocus&&i.props.onFocus(d),i.setState({inputIsHiddenAfterUpdate:!1,isFocused:!0}),(i.openAfterFocus||i.props.openMenuOnFocus)&&i.openMenu("first"),i.openAfterFocus=!1},i.onInputBlur=function(d){var h=i.props.inputValue;if(i.menuListRef&&i.menuListRef.contains(document.activeElement)){i.inputRef.focus();return}i.props.onBlur&&i.props.onBlur(d),i.onInputChange("",{action:"input-blur",prevInputValue:h}),i.onMenuClose(),i.setState({focusedValue:null,isFocused:!1})},i.onOptionHover=function(d){if(!(i.blockOptionHover||i.state.focusedOption===d)){var h=i.getFocusableOptions(),g=h.indexOf(d);i.setState({focusedOption:d,focusedOptionId:g>-1?i.getFocusedOptionId(d):null})}},i.shouldHideSelectedOptions=function(){return cM(i.props)},i.onValueInputFocus=function(d){d.preventDefault(),d.stopPropagation(),i.focus()},i.onKeyDown=function(d){var h=i.props,g=h.isMulti,y=h.backspaceRemovesValue,w=h.escapeClearsValue,b=h.inputValue,C=h.isClearable,E=h.isDisabled,$=h.menuIsOpen,O=h.onKeyDown,_=h.tabSelectsValue,P=h.openMenuOnFocus,k=i.state,R=k.focusedOption,L=k.focusedValue,F=k.selectValue;if(!E&&!(typeof O=="function"&&(O(d),d.defaultPrevented))){switch(i.blockOptionHover=!0,d.key){case"ArrowLeft":if(!g||b)return;i.focusValue("previous");break;case"ArrowRight":if(!g||b)return;i.focusValue("next");break;case"Delete":case"Backspace":if(b)return;if(L)i.removeValue(L);else{if(!y)return;g?i.popValue():C&&i.clearValue()}break;case"Tab":if(i.isComposing||d.shiftKey||!$||!_||!R||P&&i.isOptionSelected(R,F))return;i.selectOption(R);break;case"Enter":if(d.keyCode===229)break;if($){if(!R||i.isComposing)return;i.selectOption(R);break}return;case"Escape":$?(i.setState({inputIsHiddenAfterUpdate:!1}),i.onInputChange("",{action:"menu-close",prevInputValue:b}),i.onMenuClose()):C&&w&&i.clearValue();break;case" ":if(b)return;if(!$){i.openMenu("first");break}if(!R)return;i.selectOption(R);break;case"ArrowUp":$?i.focusOption("up"):i.openMenu("last");break;case"ArrowDown":$?i.focusOption("down"):i.openMenu("first");break;case"PageUp":if(!$)return;i.focusOption("pageup");break;case"PageDown":if(!$)return;i.focusOption("pagedown");break;case"Home":if(!$)return;i.focusOption("first");break;case"End":if(!$)return;i.focusOption("last");break;default:return}d.preventDefault()}},i.state.instancePrefix="react-select-"+(i.props.instanceId||++gre),i.state.selectValue=jP(r.value),r.menuIsOpen&&i.state.selectValue.length){var o=i.getFocusableOptionsWithIds(),u=i.buildFocusableOptions(),l=u.indexOf(i.state.selectValue[0]);i.state.focusableOptionsWithIds=o,i.state.focusedOption=u[l],i.state.focusedOptionId=j$(o,u[l])}return i}return DZ(n,[{key:"componentDidMount",value:function(){this.startListeningComposition(),this.startListeningToTouch(),this.props.closeMenuOnScroll&&document&&document.addEventListener&&document.addEventListener("scroll",this.onScroll,!0),this.props.autoFocus&&this.focusInput(),this.props.menuIsOpen&&this.state.focusedOption&&this.menuListRef&&this.focusedOptionRef&&qP(this.menuListRef,this.focusedOptionRef)}},{key:"componentDidUpdate",value:function(i){var o=this.props,u=o.isDisabled,l=o.menuIsOpen,d=this.state.isFocused;(d&&!u&&i.isDisabled||d&&l&&!i.menuIsOpen)&&this.focusInput(),d&&u&&!i.isDisabled?this.setState({isFocused:!1},this.onMenuClose):!d&&!u&&i.isDisabled&&this.inputRef===document.activeElement&&this.setState({isFocused:!0}),this.menuListRef&&this.focusedOptionRef&&this.scrollToFocusedOptionOnUpdate&&(qP(this.menuListRef,this.focusedOptionRef),this.scrollToFocusedOptionOnUpdate=!1)}},{key:"componentWillUnmount",value:function(){this.stopListeningComposition(),this.stopListeningToTouch(),document.removeEventListener("scroll",this.onScroll,!0)}},{key:"onMenuOpen",value:function(){this.props.onMenuOpen()}},{key:"onMenuClose",value:function(){this.onInputChange("",{action:"menu-close",prevInputValue:this.props.inputValue}),this.props.onMenuClose()}},{key:"onInputChange",value:function(i,o){this.props.onInputChange(i,o)}},{key:"focusInput",value:function(){this.inputRef&&this.inputRef.focus()}},{key:"blurInput",value:function(){this.inputRef&&this.inputRef.blur()}},{key:"openMenu",value:function(i){var o=this,u=this.state,l=u.selectValue,d=u.isFocused,h=this.buildFocusableOptions(),g=i==="first"?0:h.length-1;if(!this.props.isMulti){var y=h.indexOf(l[0]);y>-1&&(g=y)}this.scrollToFocusedOptionOnUpdate=!(d&&this.menuListRef),this.setState({inputIsHiddenAfterUpdate:!1,focusedValue:null,focusedOption:h[g],focusedOptionId:this.getFocusedOptionId(h[g])},function(){return o.onMenuOpen()})}},{key:"focusValue",value:function(i){var o=this.state,u=o.selectValue,l=o.focusedValue;if(this.props.isMulti){this.setState({focusedOption:null});var d=u.indexOf(l);l||(d=-1);var h=u.length-1,g=-1;if(u.length){switch(i){case"previous":d===0?g=0:d===-1?g=h:g=d-1;break;case"next":d>-1&&d0&&arguments[0]!==void 0?arguments[0]:"first",o=this.props.pageSize,u=this.state.focusedOption,l=this.getFocusableOptions();if(l.length){var d=0,h=l.indexOf(u);u||(h=-1),i==="up"?d=h>0?h-1:l.length-1:i==="down"?d=(h+1)%l.length:i==="pageup"?(d=h-o,d<0&&(d=0)):i==="pagedown"?(d=h+o,d>l.length-1&&(d=l.length-1)):i==="last"&&(d=l.length-1),this.scrollToFocusedOptionOnUpdate=!0,this.setState({focusedOption:l[d],focusedValue:null,focusedOptionId:this.getFocusedOptionId(l[d])})}}},{key:"getTheme",value:(function(){return this.props.theme?typeof this.props.theme=="function"?this.props.theme(B$):ct(ct({},B$),this.props.theme):B$})},{key:"getCommonProps",value:function(){var i=this.clearValue,o=this.cx,u=this.getStyles,l=this.getClassNames,d=this.getValue,h=this.selectOption,g=this.setValue,y=this.props,w=y.isMulti,b=y.isRtl,C=y.options,E=this.hasValue();return{clearValue:i,cx:o,getStyles:u,getClassNames:l,getValue:d,hasValue:E,isMulti:w,isRtl:b,options:C,selectOption:h,selectProps:y,setValue:g,theme:this.getTheme()}}},{key:"hasValue",value:function(){var i=this.state.selectValue;return i.length>0}},{key:"hasOptions",value:function(){return!!this.getFocusableOptions().length}},{key:"isClearable",value:function(){var i=this.props,o=i.isClearable,u=i.isMulti;return o===void 0?u:o}},{key:"isOptionDisabled",value:function(i,o){return sM(this.props,i,o)}},{key:"isOptionSelected",value:function(i,o){return uM(this.props,i,o)}},{key:"filterOption",value:function(i,o){return lM(this.props,i,o)}},{key:"formatOptionLabel",value:function(i,o){if(typeof this.props.formatOptionLabel=="function"){var u=this.props.inputValue,l=this.state.selectValue;return this.props.formatOptionLabel(i,{context:o,inputValue:u,selectValue:l})}else return this.getOptionLabel(i)}},{key:"formatGroupLabel",value:function(i){return this.props.formatGroupLabel(i)}},{key:"startListeningComposition",value:(function(){document&&document.addEventListener&&(document.addEventListener("compositionstart",this.onCompositionStart,!1),document.addEventListener("compositionend",this.onCompositionEnd,!1))})},{key:"stopListeningComposition",value:function(){document&&document.removeEventListener&&(document.removeEventListener("compositionstart",this.onCompositionStart),document.removeEventListener("compositionend",this.onCompositionEnd))}},{key:"startListeningToTouch",value:(function(){document&&document.addEventListener&&(document.addEventListener("touchstart",this.onTouchStart,!1),document.addEventListener("touchmove",this.onTouchMove,!1),document.addEventListener("touchend",this.onTouchEnd,!1))})},{key:"stopListeningToTouch",value:function(){document&&document.removeEventListener&&(document.removeEventListener("touchstart",this.onTouchStart),document.removeEventListener("touchmove",this.onTouchMove),document.removeEventListener("touchend",this.onTouchEnd))}},{key:"renderInput",value:(function(){var i=this.props,o=i.isDisabled,u=i.isSearchable,l=i.inputId,d=i.inputValue,h=i.tabIndex,g=i.form,y=i.menuIsOpen,w=i.required,b=this.getComponents(),C=b.Input,E=this.state,$=E.inputIsHidden,O=E.ariaSelection,_=this.commonProps,P=l||this.getElementId("input"),k=ct(ct(ct({"aria-autocomplete":"list","aria-expanded":y,"aria-haspopup":!0,"aria-errormessage":this.props["aria-errormessage"],"aria-invalid":this.props["aria-invalid"],"aria-label":this.props["aria-label"],"aria-labelledby":this.props["aria-labelledby"],"aria-required":w,role:"combobox","aria-activedescendant":this.isAppleDevice?void 0:this.state.focusedOptionId||""},y&&{"aria-controls":this.getElementId("listbox")}),!u&&{"aria-readonly":!0}),this.hasValue()?(O==null?void 0:O.action)==="initial-input-focus"&&{"aria-describedby":this.getElementId("live-region")}:{"aria-describedby":this.getElementId("placeholder")});return u?T.createElement(C,Ve({},_,{autoCapitalize:"none",autoComplete:"off",autoCorrect:"off",id:P,innerRef:this.getInputRef,isDisabled:o,isHidden:$,onBlur:this.onInputBlur,onChange:this.handleInputChange,onFocus:this.onInputFocus,spellCheck:"false",tabIndex:h,form:g,type:"text",value:d},k)):T.createElement(qne,Ve({id:P,innerRef:this.getInputRef,onBlur:this.onInputBlur,onChange:NS,onFocus:this.onInputFocus,disabled:o,tabIndex:h,inputMode:"none",form:g,value:""},k))})},{key:"renderPlaceholderOrValue",value:function(){var i=this,o=this.getComponents(),u=o.MultiValue,l=o.MultiValueContainer,d=o.MultiValueLabel,h=o.MultiValueRemove,g=o.SingleValue,y=o.Placeholder,w=this.commonProps,b=this.props,C=b.controlShouldRenderValue,E=b.isDisabled,$=b.isMulti,O=b.inputValue,_=b.placeholder,P=this.state,k=P.selectValue,R=P.focusedValue,L=P.isFocused;if(!this.hasValue()||!C)return O?null:T.createElement(y,Ve({},w,{key:"placeholder",isDisabled:E,isFocused:L,innerProps:{id:this.getElementId("placeholder")}}),_);if($)return k.map(function(q,Y){var Q=q===R,ue="".concat(i.getOptionLabel(q),"-").concat(i.getOptionValue(q));return T.createElement(u,Ve({},w,{components:{Container:l,Label:d,Remove:h},isFocused:Q,isDisabled:E,key:ue,index:Y,removeProps:{onClick:function(){return i.removeValue(q)},onTouchEnd:function(){return i.removeValue(q)},onMouseDown:function(te){te.preventDefault()}},data:q}),i.formatOptionLabel(q,"value"))});if(O)return null;var F=k[0];return T.createElement(g,Ve({},w,{data:F,isDisabled:E}),this.formatOptionLabel(F,"value"))}},{key:"renderClearIndicator",value:function(){var i=this.getComponents(),o=i.ClearIndicator,u=this.commonProps,l=this.props,d=l.isDisabled,h=l.isLoading,g=this.state.isFocused;if(!this.isClearable()||!o||d||!this.hasValue()||h)return null;var y={onMouseDown:this.onClearIndicatorMouseDown,onTouchEnd:this.onClearIndicatorTouchEnd,"aria-hidden":"true"};return T.createElement(o,Ve({},u,{innerProps:y,isFocused:g}))}},{key:"renderLoadingIndicator",value:function(){var i=this.getComponents(),o=i.LoadingIndicator,u=this.commonProps,l=this.props,d=l.isDisabled,h=l.isLoading,g=this.state.isFocused;if(!o||!h)return null;var y={"aria-hidden":"true"};return T.createElement(o,Ve({},u,{innerProps:y,isDisabled:d,isFocused:g}))}},{key:"renderIndicatorSeparator",value:function(){var i=this.getComponents(),o=i.DropdownIndicator,u=i.IndicatorSeparator;if(!o||!u)return null;var l=this.commonProps,d=this.props.isDisabled,h=this.state.isFocused;return T.createElement(u,Ve({},l,{isDisabled:d,isFocused:h}))}},{key:"renderDropdownIndicator",value:function(){var i=this.getComponents(),o=i.DropdownIndicator;if(!o)return null;var u=this.commonProps,l=this.props.isDisabled,d=this.state.isFocused,h={onMouseDown:this.onDropdownIndicatorMouseDown,onTouchEnd:this.onDropdownIndicatorTouchEnd,"aria-hidden":"true"};return T.createElement(o,Ve({},u,{innerProps:h,isDisabled:l,isFocused:d}))}},{key:"renderMenu",value:function(){var i=this,o=this.getComponents(),u=o.Group,l=o.GroupHeading,d=o.Menu,h=o.MenuList,g=o.MenuPortal,y=o.LoadingMessage,w=o.NoOptionsMessage,b=o.Option,C=this.commonProps,E=this.state.focusedOption,$=this.props,O=$.captureMenuScroll,_=$.inputValue,P=$.isLoading,k=$.loadingMessage,R=$.minMenuHeight,L=$.maxMenuHeight,F=$.menuIsOpen,q=$.menuPlacement,Y=$.menuPosition,Q=$.menuPortalTarget,ue=$.menuShouldBlockScroll,me=$.menuShouldScrollIntoView,te=$.noOptionsMessage,be=$.onMenuScrollToTop,Se=$.onMenuScrollToBottom;if(!F)return null;var j=function($e,Ce){var je=$e.type,Pe=$e.data,tt=$e.isDisabled,ke=$e.isSelected,Ke=$e.label,He=$e.value,ut=E===Pe,pt=tt?void 0:function(){return i.onOptionHover(Pe)},bt=tt?void 0:function(){return i.selectOption(Pe)},gt="".concat(i.getElementId("option"),"-").concat(Ce),Ut={id:gt,onClick:bt,onMouseMove:pt,onMouseOver:pt,tabIndex:-1,role:"option","aria-selected":i.isAppleDevice?void 0:ke};return T.createElement(b,Ve({},C,{innerProps:Ut,data:Pe,isDisabled:tt,isSelected:ke,key:gt,label:Ke,type:je,value:He,isFocused:ut,innerRef:ut?i.getFocusedOptionRef:void 0}),i.formatOptionLabel($e.data,"menu"))},V;if(this.hasOptions())V=this.getCategorizedOptions().map(function(fe){if(fe.type==="group"){var $e=fe.data,Ce=fe.options,je=fe.index,Pe="".concat(i.getElementId("group"),"-").concat(je),tt="".concat(Pe,"-heading");return T.createElement(u,Ve({},C,{key:Pe,data:$e,options:Ce,Heading:l,headingProps:{id:tt,data:fe.data},label:i.formatGroupLabel(fe.data)}),fe.options.map(function(ke){return j(ke,"".concat(je,"-").concat(ke.index))}))}else if(fe.type==="option")return j(fe,"".concat(fe.index))});else if(P){var H=k({inputValue:_});if(H===null)return null;V=T.createElement(y,C,H)}else{var ie=te({inputValue:_});if(ie===null)return null;V=T.createElement(w,C,ie)}var G={minMenuHeight:R,maxMenuHeight:L,menuPlacement:q,menuPosition:Y,menuShouldScrollIntoView:me},X=T.createElement(wte,Ve({},C,G),function(fe){var $e=fe.ref,Ce=fe.placerProps,je=Ce.placement,Pe=Ce.maxHeight;return T.createElement(d,Ve({},C,G,{innerRef:$e,innerProps:{onMouseDown:i.onMenuMouseDown,onMouseMove:i.onMenuMouseMove},isLoading:P,placement:je}),T.createElement(Kne,{captureEnabled:O,onTopArrive:be,onBottomArrive:Se,lockEnabled:ue},function(tt){return T.createElement(h,Ve({},C,{innerRef:function(Ke){i.getMenuListRef(Ke),tt(Ke)},innerProps:{role:"listbox","aria-multiselectable":C.isMulti,id:i.getElementId("listbox")},isLoading:P,maxHeight:Pe,focusedOption:E}),V)}))});return Q||Y==="fixed"?T.createElement(g,Ve({},C,{appendTo:Q,controlElement:this.controlRef,menuPlacement:q,menuPosition:Y}),X):X}},{key:"renderFormField",value:function(){var i=this,o=this.props,u=o.delimiter,l=o.isDisabled,d=o.isMulti,h=o.name,g=o.required,y=this.state.selectValue;if(g&&!this.hasValue()&&!l)return T.createElement(Qne,{name:h,onFocus:this.onValueInputFocus});if(!(!h||l))if(d)if(u){var w=y.map(function(E){return i.getOptionValue(E)}).join(u);return T.createElement("input",{name:h,type:"hidden",value:w})}else{var b=y.length>0?y.map(function(E,$){return T.createElement("input",{key:"i-".concat($),name:h,type:"hidden",value:i.getOptionValue(E)})}):T.createElement("input",{name:h,type:"hidden",value:""});return T.createElement("div",null,b)}else{var C=y[0]?this.getOptionValue(y[0]):"";return T.createElement("input",{name:h,type:"hidden",value:C})}}},{key:"renderLiveRegion",value:function(){var i=this.commonProps,o=this.state,u=o.ariaSelection,l=o.focusedOption,d=o.focusedValue,h=o.isFocused,g=o.selectValue,y=this.getFocusableOptions();return T.createElement(Dne,Ve({},i,{id:this.getElementId("live-region"),ariaSelection:u,focusedOption:l,focusedValue:d,isFocused:h,selectValue:g,focusableOptions:y,isAppleDevice:this.isAppleDevice}))}},{key:"render",value:function(){var i=this.getComponents(),o=i.Control,u=i.IndicatorsContainer,l=i.SelectContainer,d=i.ValueContainer,h=this.props,g=h.className,y=h.id,w=h.isDisabled,b=h.menuIsOpen,C=this.state.isFocused,E=this.commonProps=this.getCommonProps();return T.createElement(l,Ve({},E,{className:g,innerProps:{id:y,onKeyDown:this.onKeyDown},isDisabled:w,isFocused:C}),this.renderLiveRegion(),T.createElement(o,Ve({},E,{innerRef:this.getControlRef,innerProps:{onMouseDown:this.onControlMouseDown,onTouchEnd:this.onControlTouchEnd},isDisabled:w,isFocused:C,menuIsOpen:b}),T.createElement(d,Ve({},E,{isDisabled:w}),this.renderPlaceholderOrValue(),this.renderInput()),T.createElement(u,Ve({},E,{isDisabled:w}),this.renderClearIndicator(),this.renderLoadingIndicator(),this.renderIndicatorSeparator(),this.renderDropdownIndicator())),this.renderMenu(),this.renderFormField())}}],[{key:"getDerivedStateFromProps",value:function(i,o){var u=o.prevProps,l=o.clearFocusValueOnUpdate,d=o.inputIsHiddenAfterUpdate,h=o.ariaSelection,g=o.isFocused,y=o.prevWasFocused,w=o.instancePrefix,b=i.options,C=i.value,E=i.menuIsOpen,$=i.inputValue,O=i.isMulti,_=jP(C),P={};if(u&&(C!==u.value||b!==u.options||E!==u.menuIsOpen||$!==u.inputValue)){var k=E?hre(i,_):[],R=E?n6(nS(i,_),"".concat(w,"-option")):[],L=l?pre(o,_):null,F=mre(o,k),q=j$(R,F);P={selectValue:_,focusedOption:F,focusedOptionId:q,focusableOptionsWithIds:R,focusedValue:L,clearFocusValueOnUpdate:!1}}var Y=d!=null&&i!==u?{inputIsHidden:d,inputIsHiddenAfterUpdate:void 0}:{},Q=h,ue=g&&y;return g&&!ue&&(Q={value:Nw(O,_,_[0]||null),options:_,action:"initial-input-focus"},ue=!y),(h==null?void 0:h.action)==="initial-input-focus"&&(Q=null),ct(ct(ct({},P),Y),{},{prevProps:i,ariaSelection:Q,prevWasFocused:ue})}}]),n})(T.Component);fM.defaultProps=dre;var yre=["defaultInputValue","defaultMenuIsOpen","defaultValue","inputValue","menuIsOpen","onChange","onInputChange","onMenuClose","onMenuOpen","value"];function vre(t){var e=t.defaultInputValue,n=e===void 0?"":e,r=t.defaultMenuIsOpen,i=r===void 0?!1:r,o=t.defaultValue,u=o===void 0?null:o,l=t.inputValue,d=t.menuIsOpen,h=t.onChange,g=t.onInputChange,y=t.onMenuClose,w=t.onMenuOpen,b=t.value,C=Du(t,yre),E=T.useState(l!==void 0?l:n),$=Xr(E,2),O=$[0],_=$[1],P=T.useState(d!==void 0?d:i),k=Xr(P,2),R=k[0],L=k[1],F=T.useState(b!==void 0?b:u),q=Xr(F,2),Y=q[0],Q=q[1],ue=T.useCallback(function(H,ie){typeof h=="function"&&h(H,ie),Q(H)},[h]),me=T.useCallback(function(H,ie){var G;typeof g=="function"&&(G=g(H,ie)),_(G!==void 0?G:H)},[g]),te=T.useCallback(function(){typeof w=="function"&&w(),L(!0)},[w]),be=T.useCallback(function(){typeof y=="function"&&y(),L(!1)},[y]),Se=l!==void 0?l:O,j=d!==void 0?d:R,V=b!==void 0?b:Y;return ct(ct({},C),{},{inputValue:Se,menuIsOpen:j,onChange:ue,onInputChange:me,onMenuClose:be,onMenuOpen:te,value:V})}var bre=["defaultOptions","cacheOptions","loadOptions","options","isLoading","onInputChange","filterOption"];function wre(t){var e=t.defaultOptions,n=e===void 0?!1:e,r=t.cacheOptions,i=r===void 0?!1:r,o=t.loadOptions;t.options;var u=t.isLoading,l=u===void 0?!1:u,d=t.onInputChange,h=t.filterOption,g=h===void 0?null:h,y=Du(t,bre),w=y.inputValue,b=T.useRef(void 0),C=T.useRef(!1),E=T.useState(Array.isArray(n)?n:void 0),$=Xr(E,2),O=$[0],_=$[1],P=T.useState(typeof w<"u"?w:""),k=Xr(P,2),R=k[0],L=k[1],F=T.useState(n===!0),q=Xr(F,2),Y=q[0],Q=q[1],ue=T.useState(void 0),me=Xr(ue,2),te=me[0],be=me[1],Se=T.useState([]),j=Xr(Se,2),V=j[0],H=j[1],ie=T.useState(!1),G=Xr(ie,2),X=G[0],fe=G[1],$e=T.useState({}),Ce=Xr($e,2),je=Ce[0],Pe=Ce[1],tt=T.useState(void 0),ke=Xr(tt,2),Ke=ke[0],He=ke[1],ut=T.useState(void 0),pt=Xr(ut,2),bt=pt[0],gt=pt[1];i!==bt&&(Pe({}),gt(i)),n!==Ke&&(_(Array.isArray(n)?n:void 0),He(n)),T.useEffect(function(){return C.current=!0,function(){C.current=!1}},[]);var Ut=T.useCallback(function(en,xn){if(!o)return xn();var Dt=o(en,xn);Dt&&typeof Dt.then=="function"&&Dt.then(xn,function(){return xn()})},[o]);T.useEffect(function(){n===!0&&Ut(R,function(en){C.current&&(_(en||[]),Q(!!b.current))})},[]);var Gt=T.useCallback(function(en,xn){var Dt=ite(en,xn,d);if(!Dt){b.current=void 0,L(""),be(""),H([]),Q(!1),fe(!1);return}if(i&&je[Dt])L(Dt),be(Dt),H(je[Dt]),Q(!1),fe(!1);else{var Pt=b.current={};L(Dt),Q(!0),fe(!te),Ut(Dt,function(pe){C&&Pt===b.current&&(b.current=void 0,Q(!1),be(Dt),H(pe||[]),fe(!1),Pe(pe?ct(ct({},je),{},oy({},Dt,pe)):je))})}},[i,Ut,te,je,d]),Tt=X?[]:R&&te?V:O||[];return ct(ct({},y),{},{options:Tt,isLoading:Y||l,onInputChange:Gt,filterOption:g})}var Sre=T.forwardRef(function(t,e){var n=wre(t),r=vre(n);return T.createElement(fM,Ve({ref:e},r))}),Cre=Sre;function $re(t,e){return e?e(t):{name:{operation:"contains",value:t}}}function fO(t){var w,b,C;const e=yn(),n=zf();let[r,i]=T.useState("");if(!t.querySource)return N.jsx("div",{children:"No query source to render"});const{query:o,keyExtractor:u}=t.querySource({queryClient:n,query:{itemsPerPage:20,jsonQuery:$re(r,t.jsonQuery),withPreloads:t.withPreloads},queryOptions:{refetchOnWindowFocus:!1}}),l=t.keyExtractor||u||(E=>JSON.stringify(E)),d=(b=(w=o==null?void 0:o.data)==null?void 0:w.data)==null?void 0:b.items,h=E=>{var $;if(($=t==null?void 0:t.formEffect)!=null&&$.form){const{formEffect:O}=t,_={...O.form.values};if(O.beforeSet&&(E=O.beforeSet(E)),$r.set(_,O.field,E),$r.isObject(E)&&E.uniqueId&&O.skipFirebackMetaData!==!0&&$r.set(_,O.field+"Id",E.uniqueId),$r.isArray(E)&&O.skipFirebackMetaData!==!0){const P=O.field+"ListId";$r.set(_,P,(E||[]).map(k=>k.uniqueId))}O==null||O.form.setValues(_)}t.onChange&&typeof t.onChange=="function"&&t.onChange(E)};let g=t.value;if(g===void 0&&((C=t.formEffect)!=null&&C.form)){const E=$r.get(t.formEffect.form.values,t.formEffect.field);E!==void 0&&(g=E)}typeof g!="object"&&l&&g!==void 0&&(g=d.find(E=>l(E)===g));const y=E=>new Promise($=>{setTimeout(()=>{$(d)},100)});return N.jsxs(s3,{...t,children:[t.children,t.convertToNative?N.jsxs("select",{value:g,multiple:t.multiple,onChange:E=>{const $=d==null?void 0:d.find(O=>O.uniqueId===E.target.value);h($)},className:Go("form-select",t.errorMessage&&"is-invalid",t.validMessage&&"is-valid"),disabled:t.disabled,"aria-label":"Default select example",children:[N.jsx("option",{value:"",children:e.selectPlaceholder},void 0),d==null?void 0:d.filter(Boolean).map(E=>{const $=l(E);return N.jsx("option",{value:$,children:t.fnLabelFormat(E)},$)})]}):N.jsx(N.Fragment,{children:N.jsx(Cre,{value:g,onChange:E=>{h(E)},isMulti:t.multiple,classNames:{container(E){return Go(t.errorMessage&&" form-control form-control-no-padding is-invalid",t.validMessage&&"is-valid")},control(E){return Go("form-control form-control-no-padding")},menu(E){return"react-select-menu-area"}},isSearchable:!0,defaultOptions:d,placeholder:e.searchplaceholder,noOptionsMessage:()=>e.noOptions,getOptionValue:l,loadOptions:y,formatOptionLabel:t.fnLabelFormat,onInputChange:i})})]})}var q$,i6;function Dy(){return i6||(i6=1,q$=TypeError),q$}const Ere={},xre=Object.freeze(Object.defineProperty({__proto__:null,default:Ere},Symbol.toStringTag,{value:"Module"})),Ore=CF(xre);var H$,a6;function b3(){if(a6)return H$;a6=1;var t=typeof Map=="function"&&Map.prototype,e=Object.getOwnPropertyDescriptor&&t?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,n=t&&e&&typeof e.get=="function"?e.get:null,r=t&&Map.prototype.forEach,i=typeof Set=="function"&&Set.prototype,o=Object.getOwnPropertyDescriptor&&i?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,u=i&&o&&typeof o.get=="function"?o.get:null,l=i&&Set.prototype.forEach,d=typeof WeakMap=="function"&&WeakMap.prototype,h=d?WeakMap.prototype.has:null,g=typeof WeakSet=="function"&&WeakSet.prototype,y=g?WeakSet.prototype.has:null,w=typeof WeakRef=="function"&&WeakRef.prototype,b=w?WeakRef.prototype.deref:null,C=Boolean.prototype.valueOf,E=Object.prototype.toString,$=Function.prototype.toString,O=String.prototype.match,_=String.prototype.slice,P=String.prototype.replace,k=String.prototype.toUpperCase,R=String.prototype.toLowerCase,L=RegExp.prototype.test,F=Array.prototype.concat,q=Array.prototype.join,Y=Array.prototype.slice,Q=Math.floor,ue=typeof BigInt=="function"?BigInt.prototype.valueOf:null,me=Object.getOwnPropertySymbols,te=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Symbol.prototype.toString:null,be=typeof Symbol=="function"&&typeof Symbol.iterator=="object",Se=typeof Symbol=="function"&&Symbol.toStringTag&&(typeof Symbol.toStringTag===be||!0)?Symbol.toStringTag:null,j=Object.prototype.propertyIsEnumerable,V=(typeof Reflect=="function"?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(ae){return ae.__proto__}:null);function H(ae,ce){if(ae===1/0||ae===-1/0||ae!==ae||ae&&ae>-1e3&&ae<1e3||L.call(/e/,ce))return ce;var nt=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if(typeof ae=="number"){var Ht=ae<0?-Q(-ae):Q(ae);if(Ht!==ae){var ln=String(Ht),wt=_.call(ce,ln.length+1);return P.call(ln,nt,"$&_")+"."+P.call(P.call(wt,/([0-9]{3})/g,"$&_"),/_$/,"")}}return P.call(ce,nt,"$&_")}var ie=Ore,G=ie.custom,X=gt(G)?G:null,fe={__proto__:null,double:'"',single:"'"},$e={__proto__:null,double:/(["\\])/g,single:/(['\\])/g};H$=function ae(ce,nt,Ht,ln){var wt=nt||{};if(Tt(wt,"quoteStyle")&&!Tt(fe,wt.quoteStyle))throw new TypeError('option "quoteStyle" must be "single" or "double"');if(Tt(wt,"maxStringLength")&&(typeof wt.maxStringLength=="number"?wt.maxStringLength<0&&wt.maxStringLength!==1/0:wt.maxStringLength!==null))throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');var jr=Tt(wt,"customInspect")?wt.customInspect:!0;if(typeof jr!="boolean"&&jr!=="symbol")throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");if(Tt(wt,"indent")&&wt.indent!==null&&wt.indent!==" "&&!(parseInt(wt.indent,10)===wt.indent&&wt.indent>0))throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`');if(Tt(wt,"numericSeparator")&&typeof wt.numericSeparator!="boolean")throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');var tn=wt.numericSeparator;if(typeof ce>"u")return"undefined";if(ce===null)return"null";if(typeof ce=="boolean")return ce?"true":"false";if(typeof ce=="string")return B(ce,wt);if(typeof ce=="number"){if(ce===0)return 1/0/ce>0?"0":"-0";var nr=String(ce);return tn?H(ce,nr):nr}if(typeof ce=="bigint"){var On=String(ce)+"n";return tn?H(ce,On):On}var ji=typeof wt.depth>"u"?5:wt.depth;if(typeof Ht>"u"&&(Ht=0),Ht>=ji&&ji>0&&typeof ce=="object")return tt(ce)?"[Array]":"[Object]";var ga=Ee(wt,Ht);if(typeof ln>"u")ln=[];else if(Dt(ln,ce)>=0)return"[Circular]";function Pr(qr,ka,_i){if(ka&&(ln=Y.call(ln),ln.push(ka)),_i){var Hi={depth:wt.depth};return Tt(wt,"quoteStyle")&&(Hi.quoteStyle=wt.quoteStyle),ae(qr,Hi,Ht+1,ln)}return ae(qr,wt,Ht+1,ln)}if(typeof ce=="function"&&!Ke(ce)){var Bs=xn(ce),co=Wt(ce,Pr);return"[Function"+(Bs?": "+Bs:" (anonymous)")+"]"+(co.length>0?" { "+q.call(co,", ")+" }":"")}if(gt(ce)){var js=be?P.call(String(ce),/^(Symbol\(.*\))_[^)]*$/,"$1"):te.call(ce);return typeof ce=="object"&&!be?M(js):js}if(ht(ce)){for(var Oi="<"+R.call(String(ce.nodeName)),Zr=ce.attributes||[],fo=0;fo",Oi}if(tt(ce)){if(ce.length===0)return"[]";var qi=Wt(ce,Pr);return ga&&!ge(qi)?"["+rt(qi,ga)+"]":"[ "+q.call(qi,", ")+" ]"}if(He(ce)){var Qo=Wt(ce,Pr);return!("cause"in Error.prototype)&&"cause"in ce&&!j.call(ce,"cause")?"{ ["+String(ce)+"] "+q.call(F.call("[cause]: "+Pr(ce.cause),Qo),", ")+" }":Qo.length===0?"["+String(ce)+"]":"{ ["+String(ce)+"] "+q.call(Qo,", ")+" }"}if(typeof ce=="object"&&jr){if(X&&typeof ce[X]=="function"&&ie)return ie(ce,{depth:ji-Ht});if(jr!=="symbol"&&typeof ce.inspect=="function")return ce.inspect()}if(Pt(ce)){var In=[];return r&&r.call(ce,function(qr,ka){In.push(Pr(ka,ce,!0)+" => "+Pr(qr,ce))}),re("Map",n.call(ce),In,ga)}if(Ge(ce)){var Mn=[];return l&&l.call(ce,function(qr){Mn.push(Pr(qr,ce))}),re("Set",u.call(ce),Mn,ga)}if(pe(ce))return J("WeakMap");if(Je(ce))return J("WeakSet");if(ze(ce))return J("WeakRef");if(pt(ce))return M(Pr(Number(ce)));if(Ut(ce))return M(Pr(ue.call(ce)));if(bt(ce))return M(C.call(ce));if(ut(ce))return M(Pr(String(ce)));if(typeof window<"u"&&ce===window)return"{ [object Window] }";if(typeof globalThis<"u"&&ce===globalThis||typeof Nf<"u"&&ce===Nf)return"{ [object globalThis] }";if(!ke(ce)&&!Ke(ce)){var An=Wt(ce,Pr),Ze=V?V(ce)===Object.prototype:ce instanceof Object||ce.constructor===Object,Ti=ce instanceof Object?"":"null prototype",qs=!Ze&&Se&&Object(ce)===ce&&Se in ce?_.call(en(ce),8,-1):Ti?"Object":"",Xo=Ze||typeof ce.constructor!="function"?"":ce.constructor.name?ce.constructor.name+" ":"",ho=Xo+(qs||Ti?"["+q.call(F.call([],qs||[],Ti||[]),": ")+"] ":"");return An.length===0?ho+"{}":ga?ho+"{"+rt(An,ga)+"}":ho+"{ "+q.call(An,", ")+" }"}return String(ce)};function Ce(ae,ce,nt){var Ht=nt.quoteStyle||ce,ln=fe[Ht];return ln+ae+ln}function je(ae){return P.call(String(ae),/"/g,""")}function Pe(ae){return!Se||!(typeof ae=="object"&&(Se in ae||typeof ae[Se]<"u"))}function tt(ae){return en(ae)==="[object Array]"&&Pe(ae)}function ke(ae){return en(ae)==="[object Date]"&&Pe(ae)}function Ke(ae){return en(ae)==="[object RegExp]"&&Pe(ae)}function He(ae){return en(ae)==="[object Error]"&&Pe(ae)}function ut(ae){return en(ae)==="[object String]"&&Pe(ae)}function pt(ae){return en(ae)==="[object Number]"&&Pe(ae)}function bt(ae){return en(ae)==="[object Boolean]"&&Pe(ae)}function gt(ae){if(be)return ae&&typeof ae=="object"&&ae instanceof Symbol;if(typeof ae=="symbol")return!0;if(!ae||typeof ae!="object"||!te)return!1;try{return te.call(ae),!0}catch{}return!1}function Ut(ae){if(!ae||typeof ae!="object"||!ue)return!1;try{return ue.call(ae),!0}catch{}return!1}var Gt=Object.prototype.hasOwnProperty||function(ae){return ae in this};function Tt(ae,ce){return Gt.call(ae,ce)}function en(ae){return E.call(ae)}function xn(ae){if(ae.name)return ae.name;var ce=O.call($.call(ae),/^function\s*([\w$]+)/);return ce?ce[1]:null}function Dt(ae,ce){if(ae.indexOf)return ae.indexOf(ce);for(var nt=0,Ht=ae.length;ntce.maxStringLength){var nt=ae.length-ce.maxStringLength,Ht="... "+nt+" more character"+(nt>1?"s":"");return B(_.call(ae,0,ce.maxStringLength),ce)+Ht}var ln=$e[ce.quoteStyle||"single"];ln.lastIndex=0;var wt=P.call(P.call(ae,ln,"\\$1"),/[\x00-\x1f]/g,A);return Ce(wt,"single",ce)}function A(ae){var ce=ae.charCodeAt(0),nt={8:"b",9:"t",10:"n",12:"f",13:"r"}[ce];return nt?"\\"+nt:"\\x"+(ce<16?"0":"")+k.call(ce.toString(16))}function M(ae){return"Object("+ae+")"}function J(ae){return ae+" { ? }"}function re(ae,ce,nt,Ht){var ln=Ht?rt(nt,Ht):q.call(nt,", ");return ae+" ("+ce+") {"+ln+"}"}function ge(ae){for(var ce=0;ce=0)return!1;return!0}function Ee(ae,ce){var nt;if(ae.indent===" ")nt=" ";else if(typeof ae.indent=="number"&&ae.indent>0)nt=q.call(Array(ae.indent+1)," ");else return null;return{base:nt,prev:q.call(Array(ce+1),nt)}}function rt(ae,ce){if(ae.length===0)return"";var nt=` `+ce.prev+ce.base;return nt+q.call(ae,","+nt)+` -`+ce.prev}function Wt(ae,ce){var nt=tt(ae),Ht=[];if(nt){Ht.length=ae.length;for(var ln=0;ln"u"||!F?t:F(Uint8Array),be={__proto__:null,"%AggregateError%":typeof AggregateError>"u"?t:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?t:ArrayBuffer,"%ArrayIteratorPrototype%":L&&F?F([][Symbol.iterator]()):t,"%AsyncFromSyncIteratorPrototype%":t,"%AsyncFunction%":me,"%AsyncGenerator%":me,"%AsyncGeneratorFunction%":me,"%AsyncIteratorPrototype%":me,"%Atomics%":typeof Atomics>"u"?t:Atomics,"%BigInt%":typeof BigInt>"u"?t:BigInt,"%BigInt64Array%":typeof BigInt64Array>"u"?t:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array>"u"?t:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView>"u"?t:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":n,"%eval%":eval,"%EvalError%":r,"%Float16Array%":typeof Float16Array>"u"?t:Float16Array,"%Float32Array%":typeof Float32Array>"u"?t:Float32Array,"%Float64Array%":typeof Float64Array>"u"?t:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry>"u"?t:FinalizationRegistry,"%Function%":$,"%GeneratorFunction%":me,"%Int8Array%":typeof Int8Array>"u"?t:Int8Array,"%Int16Array%":typeof Int16Array>"u"?t:Int16Array,"%Int32Array%":typeof Int32Array>"u"?t:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":L&&F?F(F([][Symbol.iterator]())):t,"%JSON%":typeof JSON=="object"?JSON:t,"%Map%":typeof Map>"u"?t:Map,"%MapIteratorPrototype%":typeof Map>"u"||!L||!F?t:F(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":e,"%Object.getOwnPropertyDescriptor%":_,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>"u"?t:Promise,"%Proxy%":typeof Proxy>"u"?t:Proxy,"%RangeError%":i,"%ReferenceError%":o,"%Reflect%":typeof Reflect>"u"?t:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>"u"?t:Set,"%SetIteratorPrototype%":typeof Set>"u"||!L||!F?t:F(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>"u"?t:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":L&&F?F(""[Symbol.iterator]()):t,"%Symbol%":L?Symbol:t,"%SyntaxError%":u,"%ThrowTypeError%":P,"%TypedArray%":te,"%TypeError%":l,"%Uint8Array%":typeof Uint8Array>"u"?t:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray>"u"?t:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array>"u"?t:Uint16Array,"%Uint32Array%":typeof Uint32Array>"u"?t:Uint32Array,"%URIError%":d,"%WeakMap%":typeof WeakMap>"u"?t:WeakMap,"%WeakRef%":typeof WeakRef>"u"?t:WeakRef,"%WeakSet%":typeof WeakSet>"u"?t:WeakSet,"%Function.prototype.call%":ue,"%Function.prototype.apply%":X,"%Object.defineProperty%":R,"%Object.getPrototypeOf%":q,"%Math.abs%":h,"%Math.floor%":g,"%Math.max%":y,"%Math.min%":w,"%Math.pow%":v,"%Math.round%":C,"%Math.sign%":E,"%Reflect.getPrototypeOf%":Y};if(F)try{null.error}catch(Ke){var we=F(F(Ke));be["%Error.prototype%"]=we}var B=function Ke(He){var ut;if(He==="%AsyncFunction%")ut=O("async function () {}");else if(He==="%GeneratorFunction%")ut=O("function* () {}");else if(He==="%AsyncGeneratorFunction%")ut=O("async function* () {}");else if(He==="%AsyncGenerator%"){var pt=Ke("%AsyncGeneratorFunction%");pt&&(ut=pt.prototype)}else if(He==="%AsyncIteratorPrototype%"){var bt=Ke("%AsyncGenerator%");bt&&F&&(ut=F(bt.prototype))}return be[He]=ut,ut},V={__proto__:null,"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},H=KS(),ie=Ere(),G=H.call(ue,Array.prototype.concat),Q=H.call(X,Array.prototype.splice),he=H.call(ue,String.prototype.replace),$e=H.call(ue,String.prototype.slice),Ce=H.call(ue,RegExp.prototype.exec),Be=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,Ie=/\\(\\)?/g,tt=function(He){var ut=$e(He,0,1),pt=$e(He,-1);if(ut==="%"&&pt!=="%")throw new u("invalid intrinsic syntax, expected closing `%`");if(pt==="%"&&ut!=="%")throw new u("invalid intrinsic syntax, expected opening `%`");var bt=[];return he(He,Be,function(gt,Ut,Gt,Tt){bt[bt.length]=Gt?he(Tt,Ie,"$1"):Ut||gt}),bt},ke=function(He,ut){var pt=He,bt;if(ie(V,pt)&&(bt=V[pt],pt="%"+bt[0]+"%"),ie(be,pt)){var gt=be[pt];if(gt===me&&(gt=B(pt)),typeof gt>"u"&&!ut)throw new l("intrinsic "+He+" exists, but is not available. Please file an issue!");return{alias:bt,name:pt,value:gt}}throw new u("intrinsic "+He+" does not exist!")};return Q$=function(He,ut){if(typeof He!="string"||He.length===0)throw new l("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof ut!="boolean")throw new l('"allowMissing" argument must be a boolean');if(Ce(/^%?[^%]*%?$/,He)===null)throw new u("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var pt=tt(He),bt=pt.length>0?pt[0]:"",gt=ke("%"+bt+"%",ut),Ut=gt.name,Gt=gt.value,Tt=!1,en=gt.alias;en&&(bt=en[0],Q(pt,G([0,1],en)));for(var xn=1,Dt=!0;xn=pt.length){var Ge=_(Gt,Pt);Dt=!!Ge,Dt&&"get"in Ge&&!("originalValue"in Ge.get)?Gt=Ge.get:Gt=Gt[Pt]}else Dt=ie(Gt,Pt),Gt=Gt[Pt];Dt&&!Tt&&(be[Ut]=Gt)}}return Gt},Q$}var X$,dP;function z7(){if(dP)return X$;dP=1;var t=lT(),e=H7(),n=e([t("%String.prototype.indexOf%")]);return X$=function(i,o){var u=t(i,!!o);return typeof u=="function"&&n(i,".prototype.")>-1?e([u]):u},X$}var Z$,hP;function V7(){if(hP)return Z$;hP=1;var t=lT(),e=z7(),n=WS(),r=my(),i=t("%Map%",!0),o=e("Map.prototype.get",!0),u=e("Map.prototype.set",!0),l=e("Map.prototype.has",!0),d=e("Map.prototype.delete",!0),h=e("Map.prototype.size",!0);return Z$=!!i&&function(){var y,w={assert:function(v){if(!w.has(v))throw new r("Side channel does not contain "+n(v))},delete:function(v){if(y){var C=d(y,v);return h(y)===0&&(y=void 0),C}return!1},get:function(v){if(y)return o(y,v)},has:function(v){return y?l(y,v):!1},set:function(v,C){y||(y=new i),u(y,v,C)}};return w},Z$}var eE,pP;function xre(){if(pP)return eE;pP=1;var t=lT(),e=z7(),n=WS(),r=V7(),i=my(),o=t("%WeakMap%",!0),u=e("WeakMap.prototype.get",!0),l=e("WeakMap.prototype.set",!0),d=e("WeakMap.prototype.has",!0),h=e("WeakMap.prototype.delete",!0);return eE=o?function(){var y,w,v={assert:function(C){if(!v.has(C))throw new i("Side channel does not contain "+n(C))},delete:function(C){if(o&&C&&(typeof C=="object"||typeof C=="function")){if(y)return h(y,C)}else if(r&&w)return w.delete(C);return!1},get:function(C){return o&&C&&(typeof C=="object"||typeof C=="function")&&y?u(y,C):w&&w.get(C)},has:function(C){return o&&C&&(typeof C=="object"||typeof C=="function")&&y?d(y,C):!!w&&w.has(C)},set:function(C,E){o&&C&&(typeof C=="object"||typeof C=="function")?(y||(y=new o),l(y,C,E)):r&&(w||(w=r()),w.set(C,E))}};return v}:r,eE}var tE,mP;function Ore(){if(mP)return tE;mP=1;var t=my(),e=WS(),n=ere(),r=V7(),i=xre(),o=i||r||n;return tE=function(){var l,d={assert:function(h){if(!d.has(h))throw new t("Side channel does not contain "+e(h))},delete:function(h){return!!l&&l.delete(h)},get:function(h){return l&&l.get(h)},has:function(h){return!!l&&l.has(h)},set:function(h,g){l||(l=o()),l.set(h,g)}};return d},tE}var nE,gP;function cT(){if(gP)return nE;gP=1;var t=String.prototype.replace,e=/%20/g,n={RFC1738:"RFC1738",RFC3986:"RFC3986"};return nE={default:n.RFC3986,formatters:{RFC1738:function(r){return t.call(r,e,"+")},RFC3986:function(r){return String(r)}},RFC1738:n.RFC1738,RFC3986:n.RFC3986},nE}var rE,yP;function G7(){if(yP)return rE;yP=1;var t=cT(),e=Object.prototype.hasOwnProperty,n=Array.isArray,r=(function(){for(var $=[],O=0;O<256;++O)$.push("%"+((O<16?"0":"")+O.toString(16)).toUpperCase());return $})(),i=function(O){for(;O.length>1;){var _=O.pop(),R=_.obj[_.prop];if(n(R)){for(var k=[],P=0;P=h?L.slice(q,q+h):L,X=[],ue=0;ue=48&&me<=57||me>=65&&me<=90||me>=97&&me<=122||P===t.RFC1738&&(me===40||me===41)){X[X.length]=Y.charAt(ue);continue}if(me<128){X[X.length]=r[me];continue}if(me<2048){X[X.length]=r[192|me>>6]+r[128|me&63];continue}if(me<55296||me>=57344){X[X.length]=r[224|me>>12]+r[128|me>>6&63]+r[128|me&63];continue}ue+=1,me=65536+((me&1023)<<10|Y.charCodeAt(ue)&1023),X[X.length]=r[240|me>>18]+r[128|me>>12&63]+r[128|me>>6&63]+r[128|me&63]}F+=X.join("")}return F},y=function(O){for(var _=[{obj:{o:O},prop:"o"}],R=[],k=0;k<_.length;++k)for(var P=_[k],L=P.obj[P.prop],F=Object.keys(L),q=0;q"u"&&(G=0)}if(typeof Y=="function"?H=Y(O,H):H instanceof Date?H=me(H):_==="comma"&&o(H)&&(H=e.maybeMap(H,function(Ut){return Ut instanceof Date?me(Ut):Ut})),H===null){if(P)return q&&!we?q(O,g.encoder,B,"key",te):O;H=""}if(y(H)||e.isBuffer(H)){if(q){var $e=we?O:q(O,g.encoder,B,"key",te);return[be($e)+"="+be(q(H,g.encoder,B,"value",te))]}return[be(O)+"="+be(String(H))]}var Ce=[];if(typeof H>"u")return Ce;var Be;if(_==="comma"&&o(H))we&&q&&(H=e.maybeMap(H,q)),Be=[{value:H.length>0?H.join(",")||null:void 0}];else if(o(Y))Be=Y;else{var Ie=Object.keys(H);Be=X?Ie.sort(X):Ie}var tt=F?String(O).replace(/\./g,"%2E"):String(O),ke=R&&o(H)&&H.length===1?tt+"[]":tt;if(k&&o(H)&&H.length===0)return ke+"[]";for(var Ke=0;Ke"u"?$.encodeDotInKeys===!0?!0:g.allowDots:!!$.allowDots;return{addQueryPrefix:typeof $.addQueryPrefix=="boolean"?$.addQueryPrefix:g.addQueryPrefix,allowDots:L,allowEmptyArrays:typeof $.allowEmptyArrays=="boolean"?!!$.allowEmptyArrays:g.allowEmptyArrays,arrayFormat:P,charset:O,charsetSentinel:typeof $.charsetSentinel=="boolean"?$.charsetSentinel:g.charsetSentinel,commaRoundTrip:!!$.commaRoundTrip,delimiter:typeof $.delimiter>"u"?g.delimiter:$.delimiter,encode:typeof $.encode=="boolean"?$.encode:g.encode,encodeDotInKeys:typeof $.encodeDotInKeys=="boolean"?$.encodeDotInKeys:g.encodeDotInKeys,encoder:typeof $.encoder=="function"?$.encoder:g.encoder,encodeValuesOnly:typeof $.encodeValuesOnly=="boolean"?$.encodeValuesOnly:g.encodeValuesOnly,filter:k,format:_,formatter:R,serializeDate:typeof $.serializeDate=="function"?$.serializeDate:g.serializeDate,skipNulls:typeof $.skipNulls=="boolean"?$.skipNulls:g.skipNulls,sort:typeof $.sort=="function"?$.sort:null,strictNullHandling:typeof $.strictNullHandling=="boolean"?$.strictNullHandling:g.strictNullHandling}};return iE=function(E,$){var O=E,_=C($),R,k;typeof _.filter=="function"?(k=_.filter,O=k("",O)):o(_.filter)&&(k=_.filter,R=k);var P=[];if(typeof O!="object"||O===null)return"";var L=i[_.arrayFormat],F=L==="comma"&&_.commaRoundTrip;R||(R=Object.keys(O)),_.sort&&R.sort(_.sort);for(var q=t(),Y=0;Y0?te+me:""},iE}var aE,bP;function _re(){if(bP)return aE;bP=1;var t=G7(),e=Object.prototype.hasOwnProperty,n=Array.isArray,r={allowDots:!1,allowEmptyArrays:!1,allowPrototypes:!1,allowSparse:!1,arrayLimit:20,charset:"utf-8",charsetSentinel:!1,comma:!1,decodeDotInKeys:!1,decoder:t.decode,delimiter:"&",depth:5,duplicates:"combine",ignoreQueryPrefix:!1,interpretNumericEntities:!1,parameterLimit:1e3,parseArrays:!0,plainObjects:!1,strictDepth:!1,strictNullHandling:!1,throwOnLimitExceeded:!1},i=function(w){return w.replace(/&#(\d+);/g,function(v,C){return String.fromCharCode(parseInt(C,10))})},o=function(w,v,C){if(w&&typeof w=="string"&&v.comma&&w.indexOf(",")>-1)return w.split(",");if(v.throwOnLimitExceeded&&C>=v.arrayLimit)throw new RangeError("Array limit exceeded. Only "+v.arrayLimit+" element"+(v.arrayLimit===1?"":"s")+" allowed in an array.");return w},u="utf8=%26%2310003%3B",l="utf8=%E2%9C%93",d=function(v,C){var E={__proto__:null},$=C.ignoreQueryPrefix?v.replace(/^\?/,""):v;$=$.replace(/%5B/gi,"[").replace(/%5D/gi,"]");var O=C.parameterLimit===1/0?void 0:C.parameterLimit,_=$.split(C.delimiter,C.throwOnLimitExceeded?O+1:O);if(C.throwOnLimitExceeded&&_.length>O)throw new RangeError("Parameter limit exceeded. Only "+O+" parameter"+(O===1?"":"s")+" allowed.");var R=-1,k,P=C.charset;if(C.charsetSentinel)for(k=0;k<_.length;++k)_[k].indexOf("utf8=")===0&&(_[k]===l?P="utf-8":_[k]===u&&(P="iso-8859-1"),R=k,k=_.length);for(k=0;k<_.length;++k)if(k!==R){var L=_[k],F=L.indexOf("]="),q=F===-1?L.indexOf("="):F+1,Y,X;q===-1?(Y=C.decoder(L,r.decoder,P,"key"),X=C.strictNullHandling?null:""):(Y=C.decoder(L.slice(0,q),r.decoder,P,"key"),X=t.maybeMap(o(L.slice(q+1),C,n(E[Y])?E[Y].length:0),function(me){return C.decoder(me,r.decoder,P,"value")})),X&&C.interpretNumericEntities&&P==="iso-8859-1"&&(X=i(String(X))),L.indexOf("[]=")>-1&&(X=n(X)?[X]:X);var ue=e.call(E,Y);ue&&C.duplicates==="combine"?E[Y]=t.combine(E[Y],X):(!ue||C.duplicates==="last")&&(E[Y]=X)}return E},h=function(w,v,C,E){var $=0;if(w.length>0&&w[w.length-1]==="[]"){var O=w.slice(0,-1).join("");$=Array.isArray(v)&&v[O]?v[O].length:0}for(var _=E?v:o(v,C,$),R=w.length-1;R>=0;--R){var k,P=w[R];if(P==="[]"&&C.parseArrays)k=C.allowEmptyArrays&&(_===""||C.strictNullHandling&&_===null)?[]:t.combine([],_);else{k=C.plainObjects?{__proto__:null}:{};var L=P.charAt(0)==="["&&P.charAt(P.length-1)==="]"?P.slice(1,-1):P,F=C.decodeDotInKeys?L.replace(/%2E/g,"."):L,q=parseInt(F,10);!C.parseArrays&&F===""?k={0:_}:!isNaN(q)&&P!==F&&String(q)===F&&q>=0&&C.parseArrays&&q<=C.arrayLimit?(k=[],k[q]=_):F!=="__proto__"&&(k[F]=_)}_=k}return _},g=function(v,C,E,$){if(v){var O=E.allowDots?v.replace(/\.([^.[]+)/g,"[$1]"):v,_=/(\[[^[\]]*])/,R=/(\[[^[\]]*])/g,k=E.depth>0&&_.exec(O),P=k?O.slice(0,k.index):O,L=[];if(P){if(!E.plainObjects&&e.call(Object.prototype,P)&&!E.allowPrototypes)return;L.push(P)}for(var F=0;E.depth>0&&(k=R.exec(O))!==null&&F"u"?r.charset:v.charset,E=typeof v.duplicates>"u"?r.duplicates:v.duplicates;if(E!=="combine"&&E!=="first"&&E!=="last")throw new TypeError("The duplicates option must be either combine, first, or last");var $=typeof v.allowDots>"u"?v.decodeDotInKeys===!0?!0:r.allowDots:!!v.allowDots;return{allowDots:$,allowEmptyArrays:typeof v.allowEmptyArrays=="boolean"?!!v.allowEmptyArrays:r.allowEmptyArrays,allowPrototypes:typeof v.allowPrototypes=="boolean"?v.allowPrototypes:r.allowPrototypes,allowSparse:typeof v.allowSparse=="boolean"?v.allowSparse:r.allowSparse,arrayLimit:typeof v.arrayLimit=="number"?v.arrayLimit:r.arrayLimit,charset:C,charsetSentinel:typeof v.charsetSentinel=="boolean"?v.charsetSentinel:r.charsetSentinel,comma:typeof v.comma=="boolean"?v.comma:r.comma,decodeDotInKeys:typeof v.decodeDotInKeys=="boolean"?v.decodeDotInKeys:r.decodeDotInKeys,decoder:typeof v.decoder=="function"?v.decoder:r.decoder,delimiter:typeof v.delimiter=="string"||t.isRegExp(v.delimiter)?v.delimiter:r.delimiter,depth:typeof v.depth=="number"||v.depth===!1?+v.depth:r.depth,duplicates:E,ignoreQueryPrefix:v.ignoreQueryPrefix===!0,interpretNumericEntities:typeof v.interpretNumericEntities=="boolean"?v.interpretNumericEntities:r.interpretNumericEntities,parameterLimit:typeof v.parameterLimit=="number"?v.parameterLimit:r.parameterLimit,parseArrays:v.parseArrays!==!1,plainObjects:typeof v.plainObjects=="boolean"?v.plainObjects:r.plainObjects,strictDepth:typeof v.strictDepth=="boolean"?!!v.strictDepth:r.strictDepth,strictNullHandling:typeof v.strictNullHandling=="boolean"?v.strictNullHandling:r.strictNullHandling,throwOnLimitExceeded:typeof v.throwOnLimitExceeded=="boolean"?v.throwOnLimitExceeded:!1}};return aE=function(w,v){var C=y(v);if(w===""||w===null||typeof w>"u")return C.plainObjects?{__proto__:null}:{};for(var E=typeof w=="string"?d(w,C):w,$=C.plainObjects?{__proto__:null}:{},O=Object.keys(E),_=0;_h("GET",y),v=(_=d==null?void 0:d.headers)==null?void 0:_.authorization,C=v!="undefined"&&v!=null&&v!=null&&v!="null"&&!!v;let E=!0;!C&&!i&&(E=!1);const $=Go(["*abac.RoleEntity",d,e],w,{cacheTime:1e3,retry:!1,keepPreviousData:!0,enabled:E,...t||{}}),O=((k=(R=$.data)==null?void 0:R.data)==null?void 0:k.items)||[];return{query:$,items:O,keyExtractor:P=>P.uniqueId}}YS.UKEY="*abac.RoleEntity";const Rre=({form:t,isEditing:e})=>{const{values:n,setValues:r,setFieldValue:i,errors:o}=t,{options:u}=T.useContext(Sn),l=yn();return N.jsx(N.Fragment,{children:N.jsx(Fx,{formEffect:{field:eo.Fields.role$,form:t},querySource:YS,label:l.wokspaces.invite.role,errorMessage:o.roleId,fnLabelFormat:d=>d.name,hint:l.wokspaces.invite.roleHint})})},SP=({data:t})=>{const{router:e,uniqueId:n,queryClient:r,t:i}=K1({data:t}),o=JN({query:{uniqueId:n}}),u=oZ({queryClient:r}),l=aZ({queryClient:r});return N.jsx(JO,{postHook:u,getSingleHook:o,patchHook:l,onCancel:()=>{e.goBackOrDefault(eo.Navigation.query())},onFinishUriResolver:(d,h)=>{var g;return eo.Navigation.single((g=d.data)==null?void 0:g.uniqueId)},Form:Rre,onEditTitle:i.fb.editPublicJoinKey,onCreateTitle:i.fb.newPublicJoinKey,data:t})},fT=({children:t,getSingleHook:e,editEntityHandler:n,noBack:r,disableOnGetFailed:i})=>{var l;const{router:o,locale:u}=K1({});return rZ(n?()=>n({locale:u,router:o}):void 0,Bn.EditEntity),WN(r!==!0?()=>o.goBack():null,Bn.CommonBack),N.jsxs(N.Fragment,{children:[N.jsx(Wo,{query:e.query}),i===!0&&((l=e==null?void 0:e.query)!=null&&l.isError)?null:N.jsx(N.Fragment,{children:t})]})},W7=({value:t})=>{const e=n=>{n.stopPropagation(),navigator.clipboard.writeText(t).then(()=>{})};return N.jsx("div",{className:"table-btn table-copy-btn",onClick:e,children:N.jsx(Pre,{})})},Pre=({size:t=16,color:e="silver",style:n={}})=>N.jsx("svg",{width:t,height:t,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",style:n,children:N.jsx("path",{d:"M16 1H6C4.9 1 4 1.9 4 3V17H6V3H16V1ZM18 5H10C8.9 5 8 5.9 8 7V21C8 22.1 8.9 23 10 23H18C19.1 23 20 22.1 20 21V7C20 5.9 19.1 5 18 5ZM18 21H10V7H18V21Z",fill:e})});function dT({entity:t,fields:e,title:n,description:r}){var o;const i=yn();return N.jsx("div",{className:"mt-4",children:N.jsxs("div",{className:"general-entity-view ",children:[n?N.jsx("h1",{children:n}):null,r?N.jsx("p",{children:r}):null,N.jsxs("div",{className:"entity-view-row entity-view-head",children:[N.jsx("div",{className:"field-info",children:i.table.info}),N.jsx("div",{className:"field-value",children:i.table.value})]}),(t==null?void 0:t.uniqueId)&&N.jsxs("div",{className:"entity-view-row entity-view-body",children:[N.jsx("div",{className:"field-info",children:i.table.uniqueId}),N.jsx("div",{className:"field-value",children:t.uniqueId})]}),(o=e||[])==null?void 0:o.map((u,l)=>{var h;let d=u.elem===void 0?"-":u.elem;return u.elem===!0&&(d=i.common.yes),u.elem===!1&&(d=i.common.no),u.elem===null&&(d=N.jsx("i",{children:N.jsx("b",{children:i.common.isNUll})})),N.jsxs("div",{className:"entity-view-row entity-view-body",children:[N.jsx("div",{className:"field-info",children:u.label}),N.jsxs("div",{className:"field-value","data-test-id":((h=u.label)==null?void 0:h.toString())||"",children:[d," ",N.jsx(W7,{value:d})]})]},l)}),(t==null?void 0:t.createdFormatted)&&N.jsxs("div",{className:"entity-view-row entity-view-body",children:[N.jsx("div",{className:"field-info",children:i.table.created}),N.jsx("div",{className:"field-value",children:t.createdFormatted})]})]})})}const Ire=()=>{var o,u;const t=Lr(),e=yn(),n=t.query.uniqueId;$i();const r=JN({query:{uniqueId:n}});var i=(o=r.query.data)==null?void 0:o.data;return N.jsx(N.Fragment,{children:N.jsx(fT,{editEntityHandler:()=>{t.push(eo.Navigation.edit(n))},getSingleHook:r,children:N.jsx(dT,{entity:i,fields:[{label:e.role.name,elem:(u=i==null?void 0:i.role)==null?void 0:u.name}]})})})};var cS=function(t){return Array.prototype.slice.call(t)},Nre=(function(){function t(){this.handlers=[]}return t.prototype.emit=function(e){this.handlers.forEach(function(n){return n(e)})},t.prototype.subscribe=function(e){this.handlers.push(e)},t.prototype.unsubscribe=function(e){this.handlers.splice(this.handlers.indexOf(e),1)},t})(),K7=function(t,e){if(t===e)return!0;var n=Object.keys(t),r=Object.keys(e);if(n.length!==r.length)return!1;for(var i=Object.prototype.hasOwnProperty,o=0;o"u"||!F?t:F(Uint8Array),be={__proto__:null,"%AggregateError%":typeof AggregateError>"u"?t:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?t:ArrayBuffer,"%ArrayIteratorPrototype%":L&&F?F([][Symbol.iterator]()):t,"%AsyncFromSyncIteratorPrototype%":t,"%AsyncFunction%":me,"%AsyncGenerator%":me,"%AsyncGeneratorFunction%":me,"%AsyncIteratorPrototype%":me,"%Atomics%":typeof Atomics>"u"?t:Atomics,"%BigInt%":typeof BigInt>"u"?t:BigInt,"%BigInt64Array%":typeof BigInt64Array>"u"?t:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array>"u"?t:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView>"u"?t:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":n,"%eval%":eval,"%EvalError%":r,"%Float16Array%":typeof Float16Array>"u"?t:Float16Array,"%Float32Array%":typeof Float32Array>"u"?t:Float32Array,"%Float64Array%":typeof Float64Array>"u"?t:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry>"u"?t:FinalizationRegistry,"%Function%":$,"%GeneratorFunction%":me,"%Int8Array%":typeof Int8Array>"u"?t:Int8Array,"%Int16Array%":typeof Int16Array>"u"?t:Int16Array,"%Int32Array%":typeof Int32Array>"u"?t:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":L&&F?F(F([][Symbol.iterator]())):t,"%JSON%":typeof JSON=="object"?JSON:t,"%Map%":typeof Map>"u"?t:Map,"%MapIteratorPrototype%":typeof Map>"u"||!L||!F?t:F(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":e,"%Object.getOwnPropertyDescriptor%":_,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>"u"?t:Promise,"%Proxy%":typeof Proxy>"u"?t:Proxy,"%RangeError%":i,"%ReferenceError%":o,"%Reflect%":typeof Reflect>"u"?t:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>"u"?t:Set,"%SetIteratorPrototype%":typeof Set>"u"||!L||!F?t:F(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>"u"?t:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":L&&F?F(""[Symbol.iterator]()):t,"%Symbol%":L?Symbol:t,"%SyntaxError%":u,"%ThrowTypeError%":R,"%TypedArray%":te,"%TypeError%":l,"%Uint8Array%":typeof Uint8Array>"u"?t:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray>"u"?t:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array>"u"?t:Uint16Array,"%Uint32Array%":typeof Uint32Array>"u"?t:Uint32Array,"%URIError%":d,"%WeakMap%":typeof WeakMap>"u"?t:WeakMap,"%WeakRef%":typeof WeakRef>"u"?t:WeakRef,"%WeakSet%":typeof WeakSet>"u"?t:WeakSet,"%Function.prototype.call%":ue,"%Function.prototype.apply%":Q,"%Object.defineProperty%":P,"%Object.getPrototypeOf%":q,"%Math.abs%":h,"%Math.floor%":g,"%Math.max%":y,"%Math.min%":w,"%Math.pow%":b,"%Math.round%":C,"%Math.sign%":E,"%Reflect.getPrototypeOf%":Y};if(F)try{null.error}catch(Ke){var Se=F(F(Ke));be["%Error.prototype%"]=Se}var j=function Ke(He){var ut;if(He==="%AsyncFunction%")ut=O("async function () {}");else if(He==="%GeneratorFunction%")ut=O("function* () {}");else if(He==="%AsyncGeneratorFunction%")ut=O("async function* () {}");else if(He==="%AsyncGenerator%"){var pt=Ke("%AsyncGeneratorFunction%");pt&&(ut=pt.prototype)}else if(He==="%AsyncIteratorPrototype%"){var bt=Ke("%AsyncGenerator%");bt&&F&&(ut=F(bt.prototype))}return be[He]=ut,ut},V={__proto__:null,"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},H=w3(),ie=Qre(),G=H.call(ue,Array.prototype.concat),X=H.call(Q,Array.prototype.splice),fe=H.call(ue,String.prototype.replace),$e=H.call(ue,String.prototype.slice),Ce=H.call(ue,RegExp.prototype.exec),je=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,Pe=/\\(\\)?/g,tt=function(He){var ut=$e(He,0,1),pt=$e(He,-1);if(ut==="%"&&pt!=="%")throw new u("invalid intrinsic syntax, expected closing `%`");if(pt==="%"&&ut!=="%")throw new u("invalid intrinsic syntax, expected opening `%`");var bt=[];return fe(He,je,function(gt,Ut,Gt,Tt){bt[bt.length]=Gt?fe(Tt,Pe,"$1"):Ut||gt}),bt},ke=function(He,ut){var pt=He,bt;if(ie(V,pt)&&(bt=V[pt],pt="%"+bt[0]+"%"),ie(be,pt)){var gt=be[pt];if(gt===me&&(gt=j(pt)),typeof gt>"u"&&!ut)throw new l("intrinsic "+He+" exists, but is not available. Please file an issue!");return{alias:bt,name:pt,value:gt}}throw new u("intrinsic "+He+" does not exist!")};return $E=function(He,ut){if(typeof He!="string"||He.length===0)throw new l("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof ut!="boolean")throw new l('"allowMissing" argument must be a boolean');if(Ce(/^%?[^%]*%?$/,He)===null)throw new u("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var pt=tt(He),bt=pt.length>0?pt[0]:"",gt=ke("%"+bt+"%",ut),Ut=gt.name,Gt=gt.value,Tt=!1,en=gt.alias;en&&(bt=en[0],X(pt,G([0,1],en)));for(var xn=1,Dt=!0;xn=pt.length){var Ge=_(Gt,Pt);Dt=!!Ge,Dt&&"get"in Ge&&!("originalValue"in Ge.get)?Gt=Ge.get:Gt=Gt[Pt]}else Dt=ie(Gt,Pt),Gt=Gt[Pt];Dt&&!Tt&&(be[Ut]=Gt)}}return Gt},$E}var EE,B6;function vM(){if(B6)return EE;B6=1;var t=FT(),e=yM(),n=e([t("%String.prototype.indexOf%")]);return EE=function(i,o){var u=t(i,!!o);return typeof u=="function"&&n(i,".prototype.")>-1?e([u]):u},EE}var xE,j6;function bM(){if(j6)return xE;j6=1;var t=FT(),e=vM(),n=b3(),r=Dy(),i=t("%Map%",!0),o=e("Map.prototype.get",!0),u=e("Map.prototype.set",!0),l=e("Map.prototype.has",!0),d=e("Map.prototype.delete",!0),h=e("Map.prototype.size",!0);return xE=!!i&&function(){var y,w={assert:function(b){if(!w.has(b))throw new r("Side channel does not contain "+n(b))},delete:function(b){if(y){var C=d(y,b);return h(y)===0&&(y=void 0),C}return!1},get:function(b){if(y)return o(y,b)},has:function(b){return y?l(y,b):!1},set:function(b,C){y||(y=new i),u(y,b,C)}};return w},xE}var OE,q6;function Xre(){if(q6)return OE;q6=1;var t=FT(),e=vM(),n=b3(),r=bM(),i=Dy(),o=t("%WeakMap%",!0),u=e("WeakMap.prototype.get",!0),l=e("WeakMap.prototype.set",!0),d=e("WeakMap.prototype.has",!0),h=e("WeakMap.prototype.delete",!0);return OE=o?function(){var y,w,b={assert:function(C){if(!b.has(C))throw new i("Side channel does not contain "+n(C))},delete:function(C){if(o&&C&&(typeof C=="object"||typeof C=="function")){if(y)return h(y,C)}else if(r&&w)return w.delete(C);return!1},get:function(C){return o&&C&&(typeof C=="object"||typeof C=="function")&&y?u(y,C):w&&w.get(C)},has:function(C){return o&&C&&(typeof C=="object"||typeof C=="function")&&y?d(y,C):!!w&&w.has(C)},set:function(C,E){o&&C&&(typeof C=="object"||typeof C=="function")?(y||(y=new o),l(y,C,E)):r&&(w||(w=r()),w.set(C,E))}};return b}:r,OE}var TE,H6;function Zre(){if(H6)return TE;H6=1;var t=Dy(),e=b3(),n=Tre(),r=bM(),i=Xre(),o=i||r||n;return TE=function(){var l,d={assert:function(h){if(!d.has(h))throw new t("Side channel does not contain "+e(h))},delete:function(h){return!!l&&l.delete(h)},get:function(h){return l&&l.get(h)},has:function(h){return!!l&&l.has(h)},set:function(h,g){l||(l=o()),l.set(h,g)}};return d},TE}var _E,z6;function LT(){if(z6)return _E;z6=1;var t=String.prototype.replace,e=/%20/g,n={RFC1738:"RFC1738",RFC3986:"RFC3986"};return _E={default:n.RFC3986,formatters:{RFC1738:function(r){return t.call(r,e,"+")},RFC3986:function(r){return String(r)}},RFC1738:n.RFC1738,RFC3986:n.RFC3986},_E}var AE,V6;function wM(){if(V6)return AE;V6=1;var t=LT(),e=Object.prototype.hasOwnProperty,n=Array.isArray,r=(function(){for(var $=[],O=0;O<256;++O)$.push("%"+((O<16?"0":"")+O.toString(16)).toUpperCase());return $})(),i=function(O){for(;O.length>1;){var _=O.pop(),P=_.obj[_.prop];if(n(P)){for(var k=[],R=0;R=h?L.slice(q,q+h):L,Q=[],ue=0;ue=48&&me<=57||me>=65&&me<=90||me>=97&&me<=122||R===t.RFC1738&&(me===40||me===41)){Q[Q.length]=Y.charAt(ue);continue}if(me<128){Q[Q.length]=r[me];continue}if(me<2048){Q[Q.length]=r[192|me>>6]+r[128|me&63];continue}if(me<55296||me>=57344){Q[Q.length]=r[224|me>>12]+r[128|me>>6&63]+r[128|me&63];continue}ue+=1,me=65536+((me&1023)<<10|Y.charCodeAt(ue)&1023),Q[Q.length]=r[240|me>>18]+r[128|me>>12&63]+r[128|me>>6&63]+r[128|me&63]}F+=Q.join("")}return F},y=function(O){for(var _=[{obj:{o:O},prop:"o"}],P=[],k=0;k<_.length;++k)for(var R=_[k],L=R.obj[R.prop],F=Object.keys(L),q=0;q"u"&&(G=0)}if(typeof Y=="function"?H=Y(O,H):H instanceof Date?H=me(H):_==="comma"&&o(H)&&(H=e.maybeMap(H,function(Ut){return Ut instanceof Date?me(Ut):Ut})),H===null){if(R)return q&&!Se?q(O,g.encoder,j,"key",te):O;H=""}if(y(H)||e.isBuffer(H)){if(q){var $e=Se?O:q(O,g.encoder,j,"key",te);return[be($e)+"="+be(q(H,g.encoder,j,"value",te))]}return[be(O)+"="+be(String(H))]}var Ce=[];if(typeof H>"u")return Ce;var je;if(_==="comma"&&o(H))Se&&q&&(H=e.maybeMap(H,q)),je=[{value:H.length>0?H.join(",")||null:void 0}];else if(o(Y))je=Y;else{var Pe=Object.keys(H);je=Q?Pe.sort(Q):Pe}var tt=F?String(O).replace(/\./g,"%2E"):String(O),ke=P&&o(H)&&H.length===1?tt+"[]":tt;if(k&&o(H)&&H.length===0)return ke+"[]";for(var Ke=0;Ke"u"?$.encodeDotInKeys===!0?!0:g.allowDots:!!$.allowDots;return{addQueryPrefix:typeof $.addQueryPrefix=="boolean"?$.addQueryPrefix:g.addQueryPrefix,allowDots:L,allowEmptyArrays:typeof $.allowEmptyArrays=="boolean"?!!$.allowEmptyArrays:g.allowEmptyArrays,arrayFormat:R,charset:O,charsetSentinel:typeof $.charsetSentinel=="boolean"?$.charsetSentinel:g.charsetSentinel,commaRoundTrip:!!$.commaRoundTrip,delimiter:typeof $.delimiter>"u"?g.delimiter:$.delimiter,encode:typeof $.encode=="boolean"?$.encode:g.encode,encodeDotInKeys:typeof $.encodeDotInKeys=="boolean"?$.encodeDotInKeys:g.encodeDotInKeys,encoder:typeof $.encoder=="function"?$.encoder:g.encoder,encodeValuesOnly:typeof $.encodeValuesOnly=="boolean"?$.encodeValuesOnly:g.encodeValuesOnly,filter:k,format:_,formatter:P,serializeDate:typeof $.serializeDate=="function"?$.serializeDate:g.serializeDate,skipNulls:typeof $.skipNulls=="boolean"?$.skipNulls:g.skipNulls,sort:typeof $.sort=="function"?$.sort:null,strictNullHandling:typeof $.strictNullHandling=="boolean"?$.strictNullHandling:g.strictNullHandling}};return RE=function(E,$){var O=E,_=C($),P,k;typeof _.filter=="function"?(k=_.filter,O=k("",O)):o(_.filter)&&(k=_.filter,P=k);var R=[];if(typeof O!="object"||O===null)return"";var L=i[_.arrayFormat],F=L==="comma"&&_.commaRoundTrip;P||(P=Object.keys(O)),_.sort&&P.sort(_.sort);for(var q=t(),Y=0;Y0?te+me:""},RE}var PE,W6;function tie(){if(W6)return PE;W6=1;var t=wM(),e=Object.prototype.hasOwnProperty,n=Array.isArray,r={allowDots:!1,allowEmptyArrays:!1,allowPrototypes:!1,allowSparse:!1,arrayLimit:20,charset:"utf-8",charsetSentinel:!1,comma:!1,decodeDotInKeys:!1,decoder:t.decode,delimiter:"&",depth:5,duplicates:"combine",ignoreQueryPrefix:!1,interpretNumericEntities:!1,parameterLimit:1e3,parseArrays:!0,plainObjects:!1,strictDepth:!1,strictNullHandling:!1,throwOnLimitExceeded:!1},i=function(w){return w.replace(/&#(\d+);/g,function(b,C){return String.fromCharCode(parseInt(C,10))})},o=function(w,b,C){if(w&&typeof w=="string"&&b.comma&&w.indexOf(",")>-1)return w.split(",");if(b.throwOnLimitExceeded&&C>=b.arrayLimit)throw new RangeError("Array limit exceeded. Only "+b.arrayLimit+" element"+(b.arrayLimit===1?"":"s")+" allowed in an array.");return w},u="utf8=%26%2310003%3B",l="utf8=%E2%9C%93",d=function(b,C){var E={__proto__:null},$=C.ignoreQueryPrefix?b.replace(/^\?/,""):b;$=$.replace(/%5B/gi,"[").replace(/%5D/gi,"]");var O=C.parameterLimit===1/0?void 0:C.parameterLimit,_=$.split(C.delimiter,C.throwOnLimitExceeded?O+1:O);if(C.throwOnLimitExceeded&&_.length>O)throw new RangeError("Parameter limit exceeded. Only "+O+" parameter"+(O===1?"":"s")+" allowed.");var P=-1,k,R=C.charset;if(C.charsetSentinel)for(k=0;k<_.length;++k)_[k].indexOf("utf8=")===0&&(_[k]===l?R="utf-8":_[k]===u&&(R="iso-8859-1"),P=k,k=_.length);for(k=0;k<_.length;++k)if(k!==P){var L=_[k],F=L.indexOf("]="),q=F===-1?L.indexOf("="):F+1,Y,Q;q===-1?(Y=C.decoder(L,r.decoder,R,"key"),Q=C.strictNullHandling?null:""):(Y=C.decoder(L.slice(0,q),r.decoder,R,"key"),Q=t.maybeMap(o(L.slice(q+1),C,n(E[Y])?E[Y].length:0),function(me){return C.decoder(me,r.decoder,R,"value")})),Q&&C.interpretNumericEntities&&R==="iso-8859-1"&&(Q=i(String(Q))),L.indexOf("[]=")>-1&&(Q=n(Q)?[Q]:Q);var ue=e.call(E,Y);ue&&C.duplicates==="combine"?E[Y]=t.combine(E[Y],Q):(!ue||C.duplicates==="last")&&(E[Y]=Q)}return E},h=function(w,b,C,E){var $=0;if(w.length>0&&w[w.length-1]==="[]"){var O=w.slice(0,-1).join("");$=Array.isArray(b)&&b[O]?b[O].length:0}for(var _=E?b:o(b,C,$),P=w.length-1;P>=0;--P){var k,R=w[P];if(R==="[]"&&C.parseArrays)k=C.allowEmptyArrays&&(_===""||C.strictNullHandling&&_===null)?[]:t.combine([],_);else{k=C.plainObjects?{__proto__:null}:{};var L=R.charAt(0)==="["&&R.charAt(R.length-1)==="]"?R.slice(1,-1):R,F=C.decodeDotInKeys?L.replace(/%2E/g,"."):L,q=parseInt(F,10);!C.parseArrays&&F===""?k={0:_}:!isNaN(q)&&R!==F&&String(q)===F&&q>=0&&C.parseArrays&&q<=C.arrayLimit?(k=[],k[q]=_):F!=="__proto__"&&(k[F]=_)}_=k}return _},g=function(b,C,E,$){if(b){var O=E.allowDots?b.replace(/\.([^.[]+)/g,"[$1]"):b,_=/(\[[^[\]]*])/,P=/(\[[^[\]]*])/g,k=E.depth>0&&_.exec(O),R=k?O.slice(0,k.index):O,L=[];if(R){if(!E.plainObjects&&e.call(Object.prototype,R)&&!E.allowPrototypes)return;L.push(R)}for(var F=0;E.depth>0&&(k=P.exec(O))!==null&&F"u"?r.charset:b.charset,E=typeof b.duplicates>"u"?r.duplicates:b.duplicates;if(E!=="combine"&&E!=="first"&&E!=="last")throw new TypeError("The duplicates option must be either combine, first, or last");var $=typeof b.allowDots>"u"?b.decodeDotInKeys===!0?!0:r.allowDots:!!b.allowDots;return{allowDots:$,allowEmptyArrays:typeof b.allowEmptyArrays=="boolean"?!!b.allowEmptyArrays:r.allowEmptyArrays,allowPrototypes:typeof b.allowPrototypes=="boolean"?b.allowPrototypes:r.allowPrototypes,allowSparse:typeof b.allowSparse=="boolean"?b.allowSparse:r.allowSparse,arrayLimit:typeof b.arrayLimit=="number"?b.arrayLimit:r.arrayLimit,charset:C,charsetSentinel:typeof b.charsetSentinel=="boolean"?b.charsetSentinel:r.charsetSentinel,comma:typeof b.comma=="boolean"?b.comma:r.comma,decodeDotInKeys:typeof b.decodeDotInKeys=="boolean"?b.decodeDotInKeys:r.decodeDotInKeys,decoder:typeof b.decoder=="function"?b.decoder:r.decoder,delimiter:typeof b.delimiter=="string"||t.isRegExp(b.delimiter)?b.delimiter:r.delimiter,depth:typeof b.depth=="number"||b.depth===!1?+b.depth:r.depth,duplicates:E,ignoreQueryPrefix:b.ignoreQueryPrefix===!0,interpretNumericEntities:typeof b.interpretNumericEntities=="boolean"?b.interpretNumericEntities:r.interpretNumericEntities,parameterLimit:typeof b.parameterLimit=="number"?b.parameterLimit:r.parameterLimit,parseArrays:b.parseArrays!==!1,plainObjects:typeof b.plainObjects=="boolean"?b.plainObjects:r.plainObjects,strictDepth:typeof b.strictDepth=="boolean"?!!b.strictDepth:r.strictDepth,strictNullHandling:typeof b.strictNullHandling=="boolean"?b.strictNullHandling:r.strictNullHandling,throwOnLimitExceeded:typeof b.throwOnLimitExceeded=="boolean"?b.throwOnLimitExceeded:!1}};return PE=function(w,b){var C=y(b);if(w===""||w===null||typeof w>"u")return C.plainObjects?{__proto__:null}:{};for(var E=typeof w=="string"?d(w,C):w,$=C.plainObjects?{__proto__:null}:{},O=Object.keys(E),_=0;_h("GET",y),b=(_=d==null?void 0:d.headers)==null?void 0:_.authorization,C=b!="undefined"&&b!=null&&b!=null&&b!="null"&&!!b;let E=!0;!C&&!i&&(E=!1);const $=Yo(["*abac.RoleEntity",d,e],w,{cacheTime:1e3,retry:!1,keepPreviousData:!0,enabled:E,...t||{}}),O=((k=(P=$.data)==null?void 0:P.data)==null?void 0:k.items)||[];return{query:$,items:O,keyExtractor:R=>R.uniqueId}}S3.UKEY="*abac.RoleEntity";const rie=({form:t,isEditing:e})=>{const{values:n,setValues:r,setFieldValue:i,errors:o}=t,{options:u}=T.useContext(En),l=yn();return N.jsx(N.Fragment,{children:N.jsx(fO,{formEffect:{field:oo.Fields.role$,form:t},querySource:S3,label:l.wokspaces.invite.role,errorMessage:o.roleId,fnLabelFormat:d=>d.name,hint:l.wokspaces.invite.roleHint})})},Y6=({data:t})=>{const{router:e,uniqueId:n,queryClient:r,t:i}=bb({data:t}),o=E7({query:{uniqueId:n}}),u=NZ({queryClient:r}),l=IZ({queryClient:r});return N.jsx(ET,{postHook:u,getSingleHook:o,patchHook:l,onCancel:()=>{e.goBackOrDefault(oo.Navigation.query())},onFinishUriResolver:(d,h)=>{var g;return oo.Navigation.single((g=d.data)==null?void 0:g.uniqueId)},Form:rie,onEditTitle:i.fb.editPublicJoinKey,onCreateTitle:i.fb.newPublicJoinKey,data:t})},UT=({children:t,getSingleHook:e,editEntityHandler:n,noBack:r,disableOnGetFailed:i})=>{var l;const{router:o,locale:u}=bb({});return RZ(n?()=>n({locale:u,router:o}):void 0,jn.EditEntity),S7(r!==!0?()=>o.goBack():null,jn.CommonBack),N.jsxs(N.Fragment,{children:[N.jsx(Jo,{query:e.query}),i===!0&&((l=e==null?void 0:e.query)!=null&&l.isError)?null:N.jsx(N.Fragment,{children:t})]})},SM=({value:t})=>{const e=n=>{n.stopPropagation(),navigator.clipboard.writeText(t).then(()=>{})};return N.jsx("div",{className:"table-btn table-copy-btn",onClick:e,children:N.jsx(iie,{})})},iie=({size:t=16,color:e="silver",style:n={}})=>N.jsx("svg",{width:t,height:t,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",style:n,children:N.jsx("path",{d:"M16 1H6C4.9 1 4 1.9 4 3V17H6V3H16V1ZM18 5H10C8.9 5 8 5.9 8 7V21C8 22.1 8.9 23 10 23H18C19.1 23 20 22.1 20 21V7C20 5.9 19.1 5 18 5ZM18 21H10V7H18V21Z",fill:e})});function BT({entity:t,fields:e,title:n,description:r}){var o;const i=yn();return N.jsx("div",{className:"mt-4",children:N.jsxs("div",{className:"general-entity-view ",children:[n?N.jsx("h1",{children:n}):null,r?N.jsx("p",{children:r}):null,N.jsxs("div",{className:"entity-view-row entity-view-head",children:[N.jsx("div",{className:"field-info",children:i.table.info}),N.jsx("div",{className:"field-value",children:i.table.value})]}),(t==null?void 0:t.uniqueId)&&N.jsxs("div",{className:"entity-view-row entity-view-body",children:[N.jsx("div",{className:"field-info",children:i.table.uniqueId}),N.jsx("div",{className:"field-value",children:t.uniqueId})]}),(o=e||[])==null?void 0:o.map((u,l)=>{var h;let d=u.elem===void 0?"-":u.elem;return u.elem===!0&&(d=i.common.yes),u.elem===!1&&(d=i.common.no),u.elem===null&&(d=N.jsx("i",{children:N.jsx("b",{children:i.common.isNUll})})),N.jsxs("div",{className:"entity-view-row entity-view-body",children:[N.jsx("div",{className:"field-info",children:u.label}),N.jsxs("div",{className:"field-value","data-test-id":((h=u.label)==null?void 0:h.toString())||"",children:[d," ",N.jsx(SM,{value:d})]})]},l)}),(t==null?void 0:t.createdFormatted)&&N.jsxs("div",{className:"entity-view-row entity-view-body",children:[N.jsx("div",{className:"field-info",children:i.table.created}),N.jsx("div",{className:"field-value",children:t.createdFormatted})]})]})})}const aie=()=>{var o,u;const t=Br(),e=yn(),n=t.query.uniqueId;xi();const r=E7({query:{uniqueId:n}});var i=(o=r.query.data)==null?void 0:o.data;return N.jsx(N.Fragment,{children:N.jsx(UT,{editEntityHandler:()=>{t.push(oo.Navigation.edit(n))},getSingleHook:r,children:N.jsx(BT,{entity:i,fields:[{label:e.role.name,elem:(u=i==null?void 0:i.role)==null?void 0:u.name}]})})})};var DS=function(t){return Array.prototype.slice.call(t)},oie=(function(){function t(){this.handlers=[]}return t.prototype.emit=function(e){this.handlers.forEach(function(n){return n(e)})},t.prototype.subscribe=function(e){this.handlers.push(e)},t.prototype.unsubscribe=function(e){this.handlers.splice(this.handlers.indexOf(e),1)},t})(),CM=function(t,e){if(t===e)return!0;var n=Object.keys(t),r=Object.keys(e);if(n.length!==r.length)return!1;for(var i=Object.prototype.hasOwnProperty,o=0;o0)&&!(i=r.next()).done;)o.push(i.value)}catch(l){u={error:l}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(u)throw u.error}}return o}function CP(t,e,n){if(arguments.length===2)for(var r=0,i=e.length,o;r0?Yre(e,n,r):e}};Te.shape({current:Te.instanceOf(typeof Element<"u"?Element:Object)});var yT=Symbol("group"),Jre=Symbol("".concat(yT.toString(),"_check"));Symbol("".concat(yT.toString(),"_levelKey"));Symbol("".concat(yT.toString(),"_collapsedRows"));var Qre=function(t){return function(e){var n=t(e);return!e[Jre]&&n===void 0&&console.warn("The row id is undefined. Check the getRowId function. The row is",e),n}},Xre=function(t,e){if(!t){var n=new Map(e.map(function(r,i){return[r,i]}));return function(r){return n.get(r)}}return Qre(t)},Zre=function(t,e){return t[e]},eie=function(t,e){t===void 0&&(t=Zre);var n=!0,r=e.reduce(function(i,o){return o.getCellValue&&(n=!1,i[o.name]=o.getCellValue),i},{});return n?t:function(i,o){return r[o]?r[o](i,o):t(i,o)}};/*! ***************************************************************************** +***************************************************************************** */var dO=function(t,e){return dO=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(n[i]=r[i])},dO(t,e)};function Gl(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");dO(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}var Tu=function(){return Tu=Object.assign||function(e){for(var n,r=1,i=arguments.length;r0)&&!(i=r.next()).done;)o.push(i.value)}catch(l){u={error:l}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(u)throw u.error}}return o}function J6(t,e,n){if(arguments.length===2)for(var r=0,i=e.length,o;r0?Cie(e,n,r):e}};Te.shape({current:Te.instanceOf(typeof Element<"u"?Element:Object)});var VT=Symbol("group"),$ie=Symbol("".concat(VT.toString(),"_check"));Symbol("".concat(VT.toString(),"_levelKey"));Symbol("".concat(VT.toString(),"_collapsedRows"));var Eie=function(t){return function(e){var n=t(e);return!e[$ie]&&n===void 0&&console.warn("The row id is undefined. Check the getRowId function. The row is",e),n}},xie=function(t,e){if(!t){var n=new Map(e.map(function(r,i){return[r,i]}));return function(r){return n.get(r)}}return Eie(t)},Oie=function(t,e){return t[e]},Tie=function(t,e){t===void 0&&(t=Oie);var n=!0,r=e.reduce(function(i,o){return o.getCellValue&&(n=!1,i[o.name]=o.getCellValue),i},{});return n?t:function(i,o){return r[o]?r[o](i,o):t(i,o)}};/*! ***************************************************************************** Copyright (c) Microsoft Corporation. Permission to use, copy, modify, and/or distribute this software for any @@ -196,7 +196,7 @@ INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. -***************************************************************************** */var ry=function(){return ry=Object.assign||function(e){for(var n,r=1,i=arguments.length;r0)&&!(i=r.next()).done;)o.push(i.value)}catch(l){u={error:l}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(u)throw u.error}}return o}function hS(t,e,n){if(arguments.length===2)for(var r=0,i=e.length,o;rr){do e[d++]=t[l++];while(l<=i);break}}else if(e[d++]=t[l++],l>i){do e[d++]=t[u++];while(u<=r);break}}},_P=function(t,e,n,r,i){if(!(ro?1:0});var n=cS(t),r=cS(t);return Bx(n,r,0,n.length-1,e),n}),rie=function(t,e,n){var r=n.map(function(i){var o=i.columnName;return{column:t.find(function(u){return u.name===o}),draft:!e.some(function(u){return u.columnName===o})}});return e.forEach(function(i,o){var u=i.columnName;n.some(function(l){return l.columnName===u})||r.splice(o,0,{column:t.find(function(l){return l.name===u}),draft:!0})}),r},pS=Symbol("reordering"),iie=function(t,e){var n=e.sourceColumnName,r=e.targetColumnName,i=t.indexOf(n),o=t.indexOf(r),u=cS(t);return u.splice(i,1),u.splice(o,0,n),u},Rl=Symbol("data"),aie=function(t,e){return t===void 0&&(t=[]),nie(t,function(n,r){if(n.type!==Rl||r.type!==Rl)return 0;var i=e.indexOf(n.column.name),o=e.indexOf(r.column.name);return i-o})},oie=function(t){return hS(hS([],jx(t),!1),[{key:pS.toString(),type:pS,height:0}],!1)},sie=function(t,e,n){if(e===-1||n===-1||e===n)return t;var r=cS(t),i=t[e];return r.splice(e,1),r.splice(n,0,i),r},uie=function(t,e){var n=parseInt(t,10),r=n?t.substr(n.toString().length):t,i=isNaN(n)&&r==="auto",o=n>=0&&e.some(function(u){return u===r});return i||o},lie=function(t){if(typeof t=="string"){var e=parseInt(t,10);return t.substr(e.toString().length).length>0?t:e}return t},cie=Symbol("heading"),fie=Symbol("filter"),qx=Symbol("group"),die=Symbol("stub"),hie=function(t,e,n,r){return t.reduce(function(i,o){if(o.type!==Rl)return i.push(o),i;var u=o.column&&o.column.name||"",l=e.some(function(h){return h.columnName===u}),d=n.some(function(h){return h.columnName===u});return!l&&!d||r(u)?i.push(o):(!l&&d||l&&!d)&&i.push(ry(ry({},o),{draft:!0})),i},[])},pie=function(t,e,n,r,i,o){return hS(hS([],jx(n.map(function(u){var l=t.find(function(d){return d.name===u.columnName});return{key:"".concat(qx.toString(),"_").concat(l.name),type:qx,column:l,width:i}})),!1),jx(hie(e,n,r,o)),!1)},mie=Symbol("band"),gie=["px","%","em","rem","vm","vh","vmin","vmax",""],yie="The columnExtension property of the Table plugin is given an invalid value.",vie=function(t){t&&t.map(function(e){var n=e.width;if(typeof n=="string"&&!uie(n,gie))throw new Error(yie)})},bie=function(t,e){if(!t)return{};var n=t.find(function(r){return r.columnName===e});return n||{}},wie=function(t,e){return t.map(function(n){var r=n.name,i=bie(e,r),o=lie(i.width);return{column:n,key:"".concat(Rl.toString(),"_").concat(r),type:Rl,width:o,align:i.align,wordWrapEnabled:i.wordWrapEnabled}})},Sie=function(t,e){return t===void 0&&(t=[]),t.filter(function(n){return n.type!==Rl||e.indexOf(n.column.name)===-1})},Cie=function(t,e,n){return function(r){return n.indexOf(r)>-1&&e||typeof t=="function"&&t(r)||void 0}},$ie=Symbol("totalSummary");cie.toString();fie.toString();Rl.toString();mie.toString();$ie.toString();die.toString();qx.toString();var Eie=function(t,e){var n=t[e].right-t[e].left,r=function(i){return t[i].right-t[i].left-n};return t.map(function(i,o){var u=i.top,l=i.right,d=i.bottom,h=i.left,g=h;o>0&&o<=e&&(g=Math.min(g,g-r(o-1))),o>e&&(g=Math.max(g,g+r(o)));var y=l;return o=e&&(y=Math.max(y,y+r(o+1))),o=u&&e=t.top&&e<=t.bottom},Oie=function(t){var e=t.top,n=t.right,r=t.bottom,i=t.left;return{top:e,right:n,bottom:r,left:i}},Tie=function(t){return t.map(function(e,n){return n!==t.length-1&&e.top===t[n+1].top?ry(ry({},e),{right:t[n+1].left}):e})},_ie=function(t,e,n){var r=n.x,i=n.y;if(t.length===0)return 0;var o=e!==-1?Eie(t,e):t.map(Oie),u=Tie(o).findIndex(function(l,d){var h=AP(l,i),g=r>=l.left&&r<=l.right,y=d===0&&r0)&&!(i=r.next()).done;)o.push(i.value)}catch(l){u={error:l}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(u)throw u.error}}return o}function US(t,e,n){if(arguments.length===2)for(var r=0,i=e.length,o;rr){do e[d++]=t[l++];while(l<=i);break}}else if(e[d++]=t[l++],l>i){do e[d++]=t[u++];while(u<=r);break}}},n5=function(t,e,n,r,i){if(!(ro?1:0});var n=DS(t),r=DS(t);return mO(n,r,0,n.length-1,e),n}),Rie=function(t,e,n){var r=n.map(function(i){var o=i.columnName;return{column:t.find(function(u){return u.name===o}),draft:!e.some(function(u){return u.columnName===o})}});return e.forEach(function(i,o){var u=i.columnName;n.some(function(l){return l.columnName===u})||r.splice(o,0,{column:t.find(function(l){return l.name===u}),draft:!0})}),r},BS=Symbol("reordering"),Pie=function(t,e){var n=e.sourceColumnName,r=e.targetColumnName,i=t.indexOf(n),o=t.indexOf(r),u=DS(t);return u.splice(i,1),u.splice(o,0,n),u},kl=Symbol("data"),Iie=function(t,e){return t===void 0&&(t=[]),Aie(t,function(n,r){if(n.type!==kl||r.type!==kl)return 0;var i=e.indexOf(n.column.name),o=e.indexOf(r.column.name);return i-o})},Nie=function(t){return US(US([],pO(t),!1),[{key:BS.toString(),type:BS,height:0}],!1)},Mie=function(t,e,n){if(e===-1||n===-1||e===n)return t;var r=DS(t),i=t[e];return r.splice(e,1),r.splice(n,0,i),r},kie=function(t,e){var n=parseInt(t,10),r=n?t.substr(n.toString().length):t,i=isNaN(n)&&r==="auto",o=n>=0&&e.some(function(u){return u===r});return i||o},Die=function(t){if(typeof t=="string"){var e=parseInt(t,10);return t.substr(e.toString().length).length>0?t:e}return t},Fie=Symbol("heading"),Lie=Symbol("filter"),gO=Symbol("group"),Uie=Symbol("stub"),Bie=function(t,e,n,r){return t.reduce(function(i,o){if(o.type!==kl)return i.push(o),i;var u=o.column&&o.column.name||"",l=e.some(function(h){return h.columnName===u}),d=n.some(function(h){return h.columnName===u});return!l&&!d||r(u)?i.push(o):(!l&&d||l&&!d)&&i.push(Ey(Ey({},o),{draft:!0})),i},[])},jie=function(t,e,n,r,i,o){return US(US([],pO(n.map(function(u){var l=t.find(function(d){return d.name===u.columnName});return{key:"".concat(gO.toString(),"_").concat(l.name),type:gO,column:l,width:i}})),!1),pO(Bie(e,n,r,o)),!1)},qie=Symbol("band"),Hie=["px","%","em","rem","vm","vh","vmin","vmax",""],zie="The columnExtension property of the Table plugin is given an invalid value.",Vie=function(t){t&&t.map(function(e){var n=e.width;if(typeof n=="string"&&!kie(n,Hie))throw new Error(zie)})},Gie=function(t,e){if(!t)return{};var n=t.find(function(r){return r.columnName===e});return n||{}},Wie=function(t,e){return t.map(function(n){var r=n.name,i=Gie(e,r),o=Die(i.width);return{column:n,key:"".concat(kl.toString(),"_").concat(r),type:kl,width:o,align:i.align,wordWrapEnabled:i.wordWrapEnabled}})},Kie=function(t,e){return t===void 0&&(t=[]),t.filter(function(n){return n.type!==kl||e.indexOf(n.column.name)===-1})},Yie=function(t,e,n){return function(r){return n.indexOf(r)>-1&&e||typeof t=="function"&&t(r)||void 0}},Jie=Symbol("totalSummary");Fie.toString();Lie.toString();kl.toString();qie.toString();Jie.toString();Uie.toString();gO.toString();var Qie=function(t,e){var n=t[e].right-t[e].left,r=function(i){return t[i].right-t[i].left-n};return t.map(function(i,o){var u=i.top,l=i.right,d=i.bottom,h=i.left,g=h;o>0&&o<=e&&(g=Math.min(g,g-r(o-1))),o>e&&(g=Math.max(g,g+r(o)));var y=l;return o=e&&(y=Math.max(y,y+r(o+1))),o=u&&e=t.top&&e<=t.bottom},Zie=function(t){var e=t.top,n=t.right,r=t.bottom,i=t.left;return{top:e,right:n,bottom:r,left:i}},eae=function(t){return t.map(function(e,n){return n!==t.length-1&&e.top===t[n+1].top?Ey(Ey({},e),{right:t[n+1].left}):e})},tae=function(t,e,n){var r=n.x,i=n.y;if(t.length===0)return 0;var o=e!==-1?Qie(t,e):t.map(Zie),u=eae(o).findIndex(function(l,d){var h=r5(l,i),g=r>=l.left&&r<=l.right,y=d===0&&r{t(!1)})},refs:[]}),Qie=T.createContext(null),Xie=()=>{const t=T.useContext(Qie);if(!t)throw new Error("useOverlay must be inside OverlayProvider");return t},Zie=()=>{const{openDrawer:t,openModal:e}=Xie();return{confirmDrawer:({title:i,description:o,cancelLabel:u,confirmLabel:l})=>t(({close:d,resolve:h})=>N.jsxs("div",{className:"confirm-drawer-container p-3",children:[N.jsx("h2",{children:i}),N.jsx("span",{children:o}),N.jsxs("div",{children:[N.jsx("button",{className:"d-block w-100 btn btn-primary",onClick:()=>h(),children:l}),N.jsx("button",{className:"d-block w-100 btn",onClick:()=>d(),children:u})]})]})),confirmModal:({title:i,description:o,cancelLabel:u,confirmLabel:l})=>e(({close:d,resolve:h})=>N.jsxs("div",{className:"confirm-drawer-container p-3",children:[N.jsx("span",{children:o}),N.jsxs("div",{className:"row mt-4",children:[N.jsx("div",{className:"col-md-6",children:N.jsx("button",{className:"d-block w-100 btn btn-primary",onClick:()=>h(),children:l})}),N.jsx("div",{className:"col-md-6",children:N.jsx("button",{className:"d-block w-100 btn",onClick:()=>d(),children:u})})]})]}),{title:i})}},eae=()=>{const t=T.useRef();return{withDebounce:(n,r)=>{t.current&&clearTimeout(t.current),t.current=setTimeout(n,r)}}};function tae({urlMask:t,submitDelete:e,onRecordsDeleted:n,initialFilters:r}){const i=yn(),o=Lr(),{confirmModal:u}=Zie(),{withDebounce:l}=eae(),d={itemsPerPage:100,startIndex:0,sorting:[],...r||{}},[h,g]=T.useState(d),[y,w]=T.useState(d),{search:v}=Ll(),C=T.useRef(!1);T.useEffect(()=>{if(C.current)return;C.current=!0;let we={};try{we=ny.parse(v.substring(1)),delete we.startIndex}catch{}g({...d,...we}),w({...d,...we})},[v]);const[E,$]=T.useState([]),_=(we=>{var V;const B={...we};return delete B.startIndex,delete B.itemsPerPage,((V=B==null?void 0:B.sorting)==null?void 0:V.length)===0&&delete B.sorting,JSON.stringify(B)})(h),R=we=>{$(we)},k=(we,B=!0)=>{const V={...h,...we};B&&(V.startIndex=0),g(V),o.push("?"+ny.stringify(V),void 0,{},!0),l(()=>{w(V)},500)},P=we=>{k({itemsPerPage:we},!1)},L=we=>we.map(B=>`${B.columnName} ${B.direction}`).join(", "),F=we=>{k({sorting:we,sort:L(we)},!1)},q=we=>{k({startIndex:we},!1)},Y=we=>{k({startIndex:0})};T.useContext(fM);const X=we=>({query:we.map(B=>`unique_id = ${B}`).join(" or "),uniqueId:""}),ue=async()=>{u({title:i.confirm,confirmLabel:i.common.yes,cancelLabel:i.common.no,description:i.deleteConfirmMessage}).promise.then(({type:we})=>{if(we==="resolved")return e(X(E),null)}).then(()=>{n&&n()})},me=()=>({label:i.deleteAction,onSelect(){ue()},icon:hy.delete,uniqueActionKey:"GENERAL_DELETE_ACTION"}),{addActions:te,removeActionMenu:be}=ZX();return T.useEffect(()=>{if(E.length>0&&typeof e<"u")return te("table-selection",[me()]);be("table-selection")},[E]),Y1(Bn.Delete,()=>{E.length>0&&typeof e<"u"&&ue()}),{filters:h,setFilters:g,setFilter:k,setSorting:F,setStartIndex:q,selection:E,setSelection:R,onFiltersChange:Y,queryHash:_,setPageSize:P,debouncedFilters:y}}function nae({queryOptions:t,execFnOverride:e,query:n,queryClient:r,unauthorized:i}){var $;const{options:o,execFn:u}=T.useContext(Sn),l=e?e(o):u?u(o):Qr(o);let h=`${"/table-view-sizing/:uniqueId".substr(1)}?${new URLSearchParams(Ta(n)).toString()}`,g=!0;h=h.replace(":uniqueId",n[":uniqueId".replace(":","")]),n[":uniqueId".replace(":","")]===void 0&&(g=!1);const y=()=>l("GET",h),w=($=o==null?void 0:o.headers)==null?void 0:$.authorization,v=w!="undefined"&&w!=null&&w!=null&&w!="null"&&!!w;let C=!0;return g?!v&&!i&&(C=!1):C=!1,{query:Go([o,n,"*abac.TableViewSizingEntity"],y,{cacheTime:1001,retry:!1,keepPreviousData:!0,enabled:C,...t||{}})}}class vT extends Vt{constructor(...e){super(...e),this.children=void 0,this.tableName=void 0,this.sizes=void 0}}vT.Navigation={edit(t,e){return`${e?"/"+e:".."}/table-view-sizing/edit/${t}`},create(t){return`${t?"/"+t:".."}/table-view-sizing/new`},single(t,e){return`${e?"/"+e:".."}/table-view-sizing/${t}`},query(t={},e){return`${e?"/"+e:".."}/table-view-sizings`},Redit:"table-view-sizing/edit/:uniqueId",Rcreate:"table-view-sizing/new",Rsingle:"table-view-sizing/:uniqueId",Rquery:"table-view-sizings"};vT.definition={rpc:{query:{}},name:"tableViewSizing",features:{},gormMap:{},fields:[{name:"tableName",type:"string",validate:"required",computedType:"string",gormMap:{}},{name:"sizes",type:"string",computedType:"string",gormMap:{}}],cliShort:"tvs",description:"Used to store meta data about user tables (in front-end, or apps for example) about the size of the columns"};vT.Fields={...Vt.Fields,tableName:"tableName",sizes:"sizes"};function rae(t){let{queryClient:e,query:n,execFnOverride:r}=t||{};n=n||{};const{options:i,execFn:o}=T.useContext(Sn),u=r?r(i):o?o(i):Qr(i);let d=`${"/table-view-sizing".substr(1)}?${new URLSearchParams(Ta(n)).toString()}`;const g=Fr(v=>u("PATCH",d,v)),y=(v,C)=>{var E;return v?(v.data&&(C!=null&&C.data)&&(v.data.items=[C.data,...((E=v==null?void 0:v.data)==null?void 0:E.items)||[]]),v):{data:{items:[]}}};return{mutation:g,submit:(v,C)=>new Promise((E,$)=>{g.mutate(v,{onSuccess(O){e==null||e.setQueriesData("*abac.TableViewSizingEntity",_=>y(_,O)),E(O)},onError(O){C==null||C.setErrors(Ru(O)),$(O)}})}),fnUpdater:y}}function dM(t){var e,n,r="";if(typeof t=="string"||typeof t=="number")r+=t;else if(typeof t=="object")if(Array.isArray(t)){var i=t.length;for(e=0;e1&&(!t.frozen||t.idx+r-1<=e))return r}function iae(t){t.stopPropagation()}function Iw(t){t==null||t.scrollIntoView({inline:"nearest",block:"nearest"})}function G0(t){let e=!1;const n={...t,preventGridDefault(){e=!0},isGridDefaultPrevented(){return e}};return Object.setPrototypeOf(n,Object.getPrototypeOf(t)),n}const aae=new Set(["Unidentified","Alt","AltGraph","CapsLock","Control","Fn","FnLock","Meta","NumLock","ScrollLock","Shift","Tab","ArrowDown","ArrowLeft","ArrowRight","ArrowUp","End","Home","PageDown","PageUp","Insert","ContextMenu","Escape","Pause","Play","PrintScreen","F1","F3","F4","F5","F6","F7","F8","F9","F10","F11","F12"]);function zx(t){return(t.ctrlKey||t.metaKey)&&t.key!=="Control"}function oae(t){return zx(t)&&t.keyCode!==86?!1:!aae.has(t.key)}function sae({key:t,target:e}){var n;return t==="Tab"&&(e instanceof HTMLInputElement||e instanceof HTMLTextAreaElement||e instanceof HTMLSelectElement)?((n=e.closest(".rdg-editor-container"))==null?void 0:n.querySelectorAll("input, textarea, select").length)===1:!1}const uae="mlln6zg7-0-0-beta-51";function lae(t){return t.map(({key:e,idx:n,minWidth:r,maxWidth:i})=>N.jsx("div",{className:uae,style:{gridColumnStart:n+1,minWidth:r,maxWidth:i},"data-measuring-cell-key":e},e))}function cae({selectedPosition:t,columns:e,rows:n}){const r=e[t.idx],i=n[t.rowIdx];return hM(r,i)}function hM(t,e){return t.renderEditCell!=null&&(typeof t.editable=="function"?t.editable(e):t.editable)!==!1}function fae({rows:t,topSummaryRows:e,bottomSummaryRows:n,rowIdx:r,mainHeaderRowIdx:i,lastFrozenColumnIndex:o,column:u}){const l=(e==null?void 0:e.length)??0;if(r===i)return qo(u,o,{type:"HEADER"});if(e&&r>i&&r<=l+i)return qo(u,o,{type:"SUMMARY",row:e[r+l]});if(r>=0&&r{for(const F of i){const q=F.idx;if(q>$)break;const Y=fae({rows:o,topSummaryRows:u,bottomSummaryRows:l,rowIdx:O,mainHeaderRowIdx:h,lastFrozenColumnIndex:C,column:F});if(Y&&$>q&&$L.level+h,P=()=>{if(e){let F=r[$].parent;for(;F!==void 0;){const q=k(F);if(O===q){$=F.idx+F.colSpan;break}F=F.parent}}else if(t){let F=r[$].parent,q=!1;for(;F!==void 0;){const Y=k(F);if(O>=Y){$=F.idx,O=Y,q=!0;break}F=F.parent}q||($=y,O=w)}};if(E(v)&&(R(e),O=q&&(O=Y,$=F.idx),F=F.parent}}return{idx:$,rowIdx:O}}function hae({maxColIdx:t,minRowIdx:e,maxRowIdx:n,selectedPosition:{rowIdx:r,idx:i},shiftKey:o}){return o?i===0&&r===e:i===t&&r===n}const pae="cj343x07-0-0-beta-51",pM=`rdg-cell ${pae}`,mae="csofj7r7-0-0-beta-51",gae=`rdg-cell-frozen ${mae}`;function bT(t){return{"--rdg-grid-row-start":t}}function mM(t,e,n){const r=e+1,i=`calc(${n-1} * var(--rdg-header-row-height))`;return t.parent===void 0?{insetBlockStart:0,gridRowStart:1,gridRowEnd:r,paddingBlockStart:i}:{insetBlockStart:`calc(${e-n} * var(--rdg-header-row-height))`,gridRowStart:r-n,gridRowEnd:r,paddingBlockStart:i}}function gy(t,e=1){const n=t.idx+1;return{gridColumnStart:n,gridColumnEnd:n+e,insetInlineStart:t.frozen?`var(--rdg-frozen-left-${t.idx})`:void 0}}function Z1(t,...e){return Pl(pM,{[gae]:t.frozen},...e)}const{min:A1,max:mS,floor:RP,sign:yae,abs:vae}=Math;function uE(t){if(typeof t!="function")throw new Error("Please specify the rowKeyGetter prop to use selection")}function gM(t,{minWidth:e,maxWidth:n}){return t=mS(t,e),typeof n=="number"&&n>=e?A1(t,n):t}function yM(t,e){return t.parent===void 0?e:t.level-t.parent.level}const bae="c1bn88vv7-0-0-beta-51",wae=`rdg-checkbox-input ${bae}`;function Sae({onChange:t,indeterminate:e,...n}){function r(i){t(i.target.checked,i.nativeEvent.shiftKey)}return N.jsx("input",{ref:i=>{i&&(i.indeterminate=e===!0)},type:"checkbox",className:wae,onChange:r,...n})}function Cae(t){try{return t.row[t.column.key]}catch{return null}}const vM=T.createContext(void 0);function QS(){return T.useContext(vM)}function wT({value:t,tabIndex:e,indeterminate:n,disabled:r,onChange:i,"aria-label":o,"aria-labelledby":u}){const l=QS().renderCheckbox;return l({"aria-label":o,"aria-labelledby":u,tabIndex:e,indeterminate:n,disabled:r,checked:t,onChange:i})}const ST=T.createContext(void 0),bM=T.createContext(void 0);function wM(){const t=T.useContext(ST),e=T.useContext(bM);if(t===void 0||e===void 0)throw new Error("useRowSelection must be used within renderCell");return{isRowSelectionDisabled:t.isRowSelectionDisabled,isRowSelected:t.isRowSelected,onRowSelectionChange:e}}const SM=T.createContext(void 0),CM=T.createContext(void 0);function $ae(){const t=T.useContext(SM),e=T.useContext(CM);if(t===void 0||e===void 0)throw new Error("useHeaderRowSelection must be used within renderHeaderCell");return{isIndeterminate:t.isIndeterminate,isRowSelected:t.isRowSelected,onRowSelectionChange:e}}const gS="rdg-select-column";function Eae(t){const{isIndeterminate:e,isRowSelected:n,onRowSelectionChange:r}=$ae();return N.jsx(wT,{"aria-label":"Select All",tabIndex:t.tabIndex,indeterminate:e,value:n,onChange:i=>{r({checked:e?!1:i})}})}function xae(t){const{isRowSelectionDisabled:e,isRowSelected:n,onRowSelectionChange:r}=wM();return N.jsx(wT,{"aria-label":"Select",tabIndex:t.tabIndex,disabled:e,value:n,onChange:(i,o)=>{r({row:t.row,checked:i,isShiftClick:o})}})}function Oae(t){const{isRowSelected:e,onRowSelectionChange:n}=wM();return N.jsx(wT,{"aria-label":"Select Group",tabIndex:t.tabIndex,value:e,onChange:r=>{n({row:t.row,checked:r,isShiftClick:!1})}})}const Tae={key:gS,name:"",width:35,minWidth:35,maxWidth:35,resizable:!1,sortable:!1,frozen:!0,renderHeaderCell(t){return N.jsx(Eae,{...t})},renderCell(t){return N.jsx(xae,{...t})},renderGroupCell(t){return N.jsx(Oae,{...t})}},_ae="h44jtk67-0-0-beta-51",Aae="hcgkhxz7-0-0-beta-51",Rae=`rdg-header-sort-name ${Aae}`;function Pae({column:t,sortDirection:e,priority:n}){return t.sortable?N.jsx(Iae,{sortDirection:e,priority:n,children:t.name}):t.name}function Iae({sortDirection:t,priority:e,children:n}){const r=QS().renderSortStatus;return N.jsxs("span",{className:_ae,children:[N.jsx("span",{className:Rae,children:n}),N.jsx("span",{children:r({sortDirection:t,priority:e})})]})}const Nae="auto",Mae=50;function kae({rawColumns:t,defaultColumnOptions:e,getColumnWidth:n,viewportWidth:r,scrollLeft:i,enableVirtualization:o}){const u=(e==null?void 0:e.width)??Nae,l=(e==null?void 0:e.minWidth)??Mae,d=(e==null?void 0:e.maxWidth)??void 0,h=(e==null?void 0:e.renderCell)??Cae,g=(e==null?void 0:e.renderHeaderCell)??Pae,y=(e==null?void 0:e.sortable)??!1,w=(e==null?void 0:e.resizable)??!1,v=(e==null?void 0:e.draggable)??!1,{columns:C,colSpanColumns:E,lastFrozenColumnIndex:$,headerRowsCount:O}=T.useMemo(()=>{let q=-1,Y=1;const X=[];ue(t,1);function ue(te,be,we){for(const B of te){if("children"in B){const ie={name:B.name,parent:we,idx:-1,colSpan:0,level:0,headerCellClass:B.headerCellClass};ue(B.children,be+1,ie);continue}const V=B.frozen??!1,H={...B,parent:we,idx:0,level:0,frozen:V,width:B.width??u,minWidth:B.minWidth??l,maxWidth:B.maxWidth??d,sortable:B.sortable??y,resizable:B.resizable??w,draggable:B.draggable??v,renderCell:B.renderCell??h,renderHeaderCell:B.renderHeaderCell??g};X.push(H),V&&q++,be>Y&&(Y=be)}}X.sort(({key:te,frozen:be},{key:we,frozen:B})=>te===gS?-1:we===gS?1:be?B?0:-1:B?1:0);const me=[];return X.forEach((te,be)=>{te.idx=be,$M(te,be,0),te.colSpan!=null&&me.push(te)}),{columns:X,colSpanColumns:me,lastFrozenColumnIndex:q,headerRowsCount:Y}},[t,u,l,d,h,g,w,y,v]),{templateColumns:_,layoutCssVars:R,totalFrozenColumnWidth:k,columnMetrics:P}=T.useMemo(()=>{const q=new Map;let Y=0,X=0;const ue=[];for(const te of C){let be=n(te);typeof be=="number"?be=gM(be,te):be=te.minWidth,ue.push(`${be}px`),q.set(te,{width:be,left:Y}),Y+=be}if($!==-1){const te=q.get(C[$]);X=te.left+te.width}const me={};for(let te=0;te<=$;te++){const be=C[te];me[`--rdg-frozen-left-${be.idx}`]=`${q.get(be).left}px`}return{templateColumns:ue,layoutCssVars:me,totalFrozenColumnWidth:X,columnMetrics:q}},[n,C,$]),[L,F]=T.useMemo(()=>{if(!o)return[0,C.length-1];const q=i+k,Y=i+r,X=C.length-1,ue=A1($+1,X);if(q>=Y)return[ue,ue];let me=ue;for(;meq)break;me++}let te=me;for(;te=Y)break;te++}const be=mS(ue,me-1),we=A1(X,te+1);return[be,we]},[P,C,$,i,k,r,o]);return{columns:C,colSpanColumns:E,colOverscanStartIdx:L,colOverscanEndIdx:F,templateColumns:_,layoutCssVars:R,headerRowsCount:O,lastFrozenColumnIndex:$,totalFrozenColumnWidth:k}}function $M(t,e,n){if(n{g.current=i,$(C)});function $(_){_.length!==0&&d(R=>{const k=new Map(R);let P=!1;for(const L of _){const F=PP(r,L);P||(P=F!==R.get(L)),F===void 0?k.delete(L):k.set(L,F)}return P?k:R})}function O(_,R){const{key:k}=_,P=[...n],L=[];for(const{key:q,idx:Y,width:X}of e)if(k===q){const ue=typeof R=="number"?`${R}px`:R;P[Y]=ue}else y&&typeof X=="string"&&!o.has(q)&&(P[Y]=X,L.push(q));r.current.style.gridTemplateColumns=P.join(" ");const F=typeof R=="number"?R:PP(r,k);xu.flushSync(()=>{l(q=>{const Y=new Map(q);return Y.set(k,F),Y}),$(L)}),h==null||h(_,F)}return{gridTemplateColumns:E,handleColumnResize:O}}function PP(t,e){var i;const n=`[data-measuring-cell-key="${CSS.escape(e)}"]`,r=(i=t.current)==null?void 0:i.querySelector(n);return r==null?void 0:r.getBoundingClientRect().width}function Fae(){const t=T.useRef(null),[e,n]=T.useState(1),[r,i]=T.useState(1),[o,u]=T.useState(0);return T.useLayoutEffect(()=>{const{ResizeObserver:l}=window;if(l==null)return;const{clientWidth:d,clientHeight:h,offsetWidth:g,offsetHeight:y}=t.current,{width:w,height:v}=t.current.getBoundingClientRect(),C=y-h,E=w-g+d,$=v-C;n(E),i($),u(C);const O=new l(_=>{const R=_[0].contentBoxSize[0],{clientHeight:k,offsetHeight:P}=t.current;xu.flushSync(()=>{n(R.inlineSize),i(R.blockSize),u(P-k)})});return O.observe(t.current),()=>{O.disconnect()}},[]),[t,e,r,o]}function Xa(t){const e=T.useRef(t);T.useEffect(()=>{e.current=t});const n=T.useCallback((...r)=>{e.current(...r)},[]);return t&&n}function eb(t){const[e,n]=T.useState(!1);e&&!t&&n(!1);function r(o){o.target!==o.currentTarget&&n(!0)}return{tabIndex:t&&!e?0:-1,childTabIndex:t?0:-1,onFocus:t?r:void 0}}function Lae({columns:t,colSpanColumns:e,rows:n,topSummaryRows:r,bottomSummaryRows:i,colOverscanStartIdx:o,colOverscanEndIdx:u,lastFrozenColumnIndex:l,rowOverscanStartIdx:d,rowOverscanEndIdx:h}){const g=T.useMemo(()=>{if(o===0)return 0;let y=o;const w=(v,C)=>C!==void 0&&v+C>o?(y=v,!0):!1;for(const v of e){const C=v.idx;if(C>=y||w(C,qo(v,l,{type:"HEADER"})))break;for(let E=d;E<=h;E++){const $=n[E];if(w(C,qo(v,l,{type:"ROW",row:$})))break}if(r!=null){for(const E of r)if(w(C,qo(v,l,{type:"SUMMARY",row:E})))break}if(i!=null){for(const E of i)if(w(C,qo(v,l,{type:"SUMMARY",row:E})))break}}return y},[d,h,n,r,i,o,l,e]);return T.useMemo(()=>{const y=[];for(let w=0;w<=u;w++){const v=t[w];w{if(typeof e=="number")return{totalRowHeight:e*t.length,gridTemplateRows:` repeat(${t.length}, ${e}px)`,getRowTop:$=>$*e,getRowHeight:()=>e,findRowIdx:$=>RP($/e)};let w=0,v=" ";const C=t.map($=>{const O=e($),_={top:w,height:O};return v+=`${O}px `,w+=O,_}),E=$=>mS(0,A1(t.length-1,$));return{totalRowHeight:w,gridTemplateRows:v,getRowTop:$=>C[E($)].top,getRowHeight:$=>C[E($)].height,findRowIdx($){let O=0,_=C.length-1;for(;O<=_;){const R=O+RP((_-O)/2),k=C[R].top;if(k===$)return R;if(k<$?O=R+1:k>$&&(_=R-1),O>_)return _}return 0}}},[e,t]);let g=0,y=t.length-1;if(i){const v=h(r),C=h(r+n);g=mS(0,v-4),y=A1(t.length-1,C+4)}return{rowOverscanStartIdx:g,rowOverscanEndIdx:y,totalRowHeight:o,gridTemplateRows:u,getRowTop:l,getRowHeight:d,findRowIdx:h}}const jae="c6ra8a37-0-0-beta-51",Bae=`rdg-cell-copied ${jae}`,qae="cq910m07-0-0-beta-51",Hae=`rdg-cell-dragged-over ${qae}`;function zae({column:t,colSpan:e,isCellSelected:n,isCopied:r,isDraggedOver:i,row:o,rowIdx:u,className:l,onClick:d,onDoubleClick:h,onContextMenu:g,onRowChange:y,selectCell:w,style:v,...C}){const{tabIndex:E,childTabIndex:$,onFocus:O}=eb(n),{cellClass:_}=t;l=Z1(t,{[Bae]:r,[Hae]:i},typeof _=="function"?_(o):_,l);const R=hM(t,o);function k(Y){w({rowIdx:u,idx:t.idx},Y)}function P(Y){if(d){const X=G0(Y);if(d({rowIdx:u,row:o,column:t,selectCell:k},X),X.isGridDefaultPrevented())return}k()}function L(Y){if(g){const X=G0(Y);if(g({rowIdx:u,row:o,column:t,selectCell:k},X),X.isGridDefaultPrevented())return}k()}function F(Y){if(h){const X=G0(Y);if(h({rowIdx:u,row:o,column:t,selectCell:k},X),X.isGridDefaultPrevented())return}k(!0)}function q(Y){y(t,Y)}return N.jsx("div",{role:"gridcell","aria-colindex":t.idx+1,"aria-colspan":e,"aria-selected":n,"aria-readonly":!R||void 0,tabIndex:E,className:l,style:{...gy(t,e),...v},onClick:P,onDoubleClick:F,onContextMenu:L,onFocus:O,...C,children:t.renderCell({column:t,row:o,rowIdx:u,isCellEditable:R,tabIndex:$,onRowChange:q})})}const Vae=T.memo(zae);function Gae(t,e){return N.jsx(Vae,{...e},t)}const Wae="c1w9bbhr7-0-0-beta-51",Kae="c1creorc7-0-0-beta-51",Yae=`rdg-cell-drag-handle ${Wae}`;function Jae({gridRowStart:t,rows:e,column:n,columnWidth:r,maxColIdx:i,isLastRow:o,selectedPosition:u,latestDraggedOverRowIdx:l,isCellEditable:d,onRowsChange:h,onFill:g,onClick:y,setDragging:w,setDraggedOverRowIdx:v}){const{idx:C,rowIdx:E}=u;function $(P){if(P.preventDefault(),P.buttons!==1)return;w(!0),window.addEventListener("mouseover",L),window.addEventListener("mouseup",F);function L(q){q.buttons!==1&&F()}function F(){window.removeEventListener("mouseover",L),window.removeEventListener("mouseup",F),w(!1),O()}}function O(){const P=l.current;if(P===void 0)return;const L=E0&&(h==null||h(q,{indexes:Y,column:n}))}function k(){var X;const P=((X=n.colSpan)==null?void 0:X.call(n,{type:"ROW",row:e[E]}))??1,{insetInlineStart:L,...F}=gy(n,P),q="calc(var(--rdg-drag-handle-size) * -0.5 + 1px)",Y=n.idx+P-1===i;return{...F,gridRowStart:t,marginInlineEnd:Y?void 0:q,marginBlockEnd:o?void 0:q,insetInlineStart:L?`calc(${L} + ${r}px + var(--rdg-drag-handle-size) * -0.5 - 1px)`:void 0}}return N.jsx("div",{style:k(),className:Pl(Yae,n.frozen&&Kae),onClick:y,onMouseDown:$,onDoubleClick:_})}const Qae="cis5rrm7-0-0-beta-51";function Xae({column:t,colSpan:e,row:n,rowIdx:r,onRowChange:i,closeEditor:o,onKeyDown:u,navigate:l}){var O,_,R;const d=T.useRef(void 0),h=((O=t.editorOptions)==null?void 0:O.commitOnOutsideClick)!==!1,g=Xa(()=>{v(!0,!1)});T.useEffect(()=>{if(!h)return;function k(){d.current=requestAnimationFrame(g)}return addEventListener("mousedown",k,{capture:!0}),()=>{removeEventListener("mousedown",k,{capture:!0}),y()}},[h,g]);function y(){cancelAnimationFrame(d.current)}function w(k){if(u){const P=G0(k);if(u({mode:"EDIT",row:n,column:t,rowIdx:r,navigate(){l(k)},onClose:v},P),P.isGridDefaultPrevented())return}k.key==="Escape"?v():k.key==="Enter"?v(!0):sae(k)&&l(k)}function v(k=!1,P=!0){k?i(n,!0,P):o(P)}function C(k,P=!1){i(k,P,P)}const{cellClass:E}=t,$=Z1(t,"rdg-editor-container",!((_=t.editorOptions)!=null&&_.displayCellContent)&&Qae,typeof E=="function"?E(n):E);return N.jsx("div",{role:"gridcell","aria-colindex":t.idx+1,"aria-colspan":e,"aria-selected":!0,className:$,style:gy(t,e),onKeyDown:w,onMouseDownCapture:y,children:t.renderEditCell!=null&&N.jsxs(N.Fragment,{children:[t.renderEditCell({column:t,row:n,rowIdx:r,onRowChange:C,onClose:v}),((R=t.editorOptions)==null?void 0:R.displayCellContent)&&t.renderCell({column:t,row:n,rowIdx:r,isCellEditable:!0,tabIndex:-1,onRowChange:C})]})})}function Zae({column:t,rowIdx:e,isCellSelected:n,selectCell:r}){const{tabIndex:i,onFocus:o}=eb(n),{colSpan:u}=t,l=yM(t,e),d=t.idx+1;function h(){r({idx:t.idx,rowIdx:e})}return N.jsx("div",{role:"columnheader","aria-colindex":d,"aria-colspan":u,"aria-rowspan":l,"aria-selected":n,tabIndex:i,className:Pl(pM,t.headerCellClass),style:{...mM(t,e,l),gridColumnStart:d,gridColumnEnd:d+u},onFocus:o,onClick:h,children:t.name})}const eoe="c6l2wv17-0-0-beta-51",toe="c1kqdw7y7-0-0-beta-51",noe=`rdg-cell-resizable ${toe}`,roe="r1y6ywlx7-0-0-beta-51",ioe="rdg-cell-draggable",aoe="c1bezg5o7-0-0-beta-51",ooe=`rdg-cell-dragging ${aoe}`,soe="c1vc96037-0-0-beta-51",uoe=`rdg-cell-drag-over ${soe}`;function loe({column:t,colSpan:e,rowIdx:n,isCellSelected:r,onColumnResize:i,onColumnsReorder:o,sortColumns:u,onSortColumnsChange:l,selectCell:d,shouldFocusGrid:h,direction:g,dragDropKey:y}){const w=T.useRef(!1),[v,C]=T.useState(!1),[E,$]=T.useState(!1),O=g==="rtl",_=yM(t,n),{tabIndex:R,childTabIndex:k,onFocus:P}=eb(r),L=u==null?void 0:u.findIndex(ke=>ke.columnKey===t.key),F=L!==void 0&&L>-1?u[L]:void 0,q=F==null?void 0:F.direction,Y=F!==void 0&&u.length>1?L+1:void 0,X=q&&!Y?q==="ASC"?"ascending":"descending":void 0,{sortable:ue,resizable:me,draggable:te}=t,be=Z1(t,t.headerCellClass,{[eoe]:ue,[noe]:me,[ioe]:te,[ooe]:v,[uoe]:E});function we(ke){if(ke.pointerType==="mouse"&&ke.buttons!==1)return;ke.preventDefault();const{currentTarget:Ke,pointerId:He}=ke,ut=Ke.parentElement,{right:pt,left:bt}=ut.getBoundingClientRect(),gt=O?ke.clientX-bt:pt-ke.clientX;w.current=!1;function Ut(Tt){const{width:en,right:xn,left:Dt}=ut.getBoundingClientRect();let Pt=O?xn+gt-Tt.clientX:Tt.clientX+gt-Dt;Pt=gM(Pt,t),en>0&&Pt!==en&&i(t,Pt)}function Gt(Tt){w.current||Ut(Tt),Ke.removeEventListener("pointermove",Ut),Ke.removeEventListener("lostpointercapture",Gt)}Ke.setPointerCapture(He),Ke.addEventListener("pointermove",Ut),Ke.addEventListener("lostpointercapture",Gt)}function B(){w.current=!0,i(t,"max-content")}function V(ke){if(l==null)return;const{sortDescendingFirst:Ke}=t;if(F===void 0){const He={columnKey:t.key,direction:Ke?"DESC":"ASC"};l(u&&ke?[...u,He]:[He])}else{let He;if((Ke===!0&&q==="DESC"||Ke!==!0&&q==="ASC")&&(He={columnKey:t.key,direction:q==="ASC"?"DESC":"ASC"}),ke){const ut=[...u];He?ut[L]=He:ut.splice(L,1),l(ut)}else l(He?[He]:[])}}function H(ke){d({idx:t.idx,rowIdx:n}),ue&&V(ke.ctrlKey||ke.metaKey)}function ie(ke){P==null||P(ke),h&&d({idx:0,rowIdx:n})}function G(ke){(ke.key===" "||ke.key==="Enter")&&(ke.preventDefault(),V(ke.ctrlKey||ke.metaKey))}function Q(ke){ke.dataTransfer.setData(y,t.key),ke.dataTransfer.dropEffect="move",C(!0)}function he(){C(!1)}function $e(ke){ke.preventDefault(),ke.dataTransfer.dropEffect="move"}function Ce(ke){if($(!1),ke.dataTransfer.types.includes(y.toLowerCase())){const Ke=ke.dataTransfer.getData(y.toLowerCase());Ke!==t.key&&(ke.preventDefault(),o==null||o(Ke,t.key))}}function Be(ke){IP(ke)&&$(!0)}function Ie(ke){IP(ke)&&$(!1)}let tt;return te&&(tt={draggable:!0,onDragStart:Q,onDragEnd:he,onDragOver:$e,onDragEnter:Be,onDragLeave:Ie,onDrop:Ce}),N.jsxs("div",{role:"columnheader","aria-colindex":t.idx+1,"aria-colspan":e,"aria-rowspan":_,"aria-selected":r,"aria-sort":X,tabIndex:h?0:R,className:be,style:{...mM(t,n,_),...gy(t,e)},onFocus:ie,onClick:H,onKeyDown:ue?G:void 0,...tt,children:[t.renderHeaderCell({column:t,sortDirection:q,priority:Y,tabIndex:k}),me&&N.jsx("div",{className:roe,onClick:iae,onPointerDown:we,onDoubleClick:B})]})}function IP(t){const e=t.relatedTarget;return!t.currentTarget.contains(e)}const coe="r1upfr807-0-0-beta-51",CT=`rdg-row ${coe}`,foe="r190mhd37-0-0-beta-51",XS="rdg-row-selected",doe="r139qu9m7-0-0-beta-51",hoe="rdg-top-summary-row",poe="rdg-bottom-summary-row",moe="h10tskcx7-0-0-beta-51",EM=`rdg-header-row ${moe}`;function goe({rowIdx:t,columns:e,onColumnResize:n,onColumnsReorder:r,sortColumns:i,onSortColumnsChange:o,lastFrozenColumnIndex:u,selectedCellIdx:l,selectCell:d,shouldFocusGrid:h,direction:g}){const y=T.useId(),w=[];for(let v=0;ve&&d.parent!==void 0;)d=d.parent;if(d.level===e&&!u.has(d)){u.add(d);const{idx:h}=d;o.push(N.jsx(Zae,{column:d,rowIdx:t,isCellSelected:r===h,selectCell:i},h))}}}return N.jsx("div",{role:"row","aria-rowindex":t,className:EM,children:o})}var boe=T.memo(voe);function woe({className:t,rowIdx:e,gridRowStart:n,selectedCellIdx:r,isRowSelectionDisabled:i,isRowSelected:o,copiedCellIdx:u,draggedOverCellIdx:l,lastFrozenColumnIndex:d,row:h,viewportColumns:g,selectedCellEditor:y,onCellClick:w,onCellDoubleClick:v,onCellContextMenu:C,rowClass:E,setDraggedOverRowIdx:$,onMouseEnter:O,onRowChange:_,selectCell:R,...k}){const P=QS().renderCell,L=Xa((X,ue)=>{_(X,e,ue)});function F(X){$==null||$(e),O==null||O(X)}t=Pl(CT,`rdg-row-${e%2===0?"even":"odd"}`,{[XS]:r===-1},E==null?void 0:E(h,e),t);const q=[];for(let X=0;X({isRowSelected:o,isRowSelectionDisabled:i}),[i,o]);return N.jsx(ST,{value:Y,children:N.jsx("div",{role:"row",className:t,onMouseEnter:F,style:bT(n),...k,children:q})})}const Soe=T.memo(woe);function Coe(t,e){return N.jsx(Soe,{...e},t)}function $oe({scrollToPosition:{idx:t,rowIdx:e},gridRef:n,setScrollToCellPosition:r}){const i=T.useRef(null);return T.useLayoutEffect(()=>{Iw(i.current)}),T.useLayoutEffect(()=>{function o(){r(null)}const u=new IntersectionObserver(o,{root:n.current,threshold:1});return u.observe(i.current),()=>{u.disconnect()}},[n,r]),N.jsx("div",{ref:i,style:{gridColumn:t===void 0?"1/-1":t+1,gridRow:e===void 0?"1/-1":e+2}})}const Eoe="a3ejtar7-0-0-beta-51",xoe=`rdg-sort-arrow ${Eoe}`;function Ooe({sortDirection:t,priority:e}){return N.jsxs(N.Fragment,{children:[Toe({sortDirection:t}),_oe({priority:e})]})}function Toe({sortDirection:t}){return t===void 0?null:N.jsx("svg",{viewBox:"0 0 12 8",width:"12",height:"8",className:xoe,"aria-hidden":!0,children:N.jsx("path",{d:t==="ASC"?"M0 8 6 0 12 8":"M0 0 6 8 12 0"})})}function _oe({priority:t}){return t}const Aoe="rnvodz57-0-0-beta-51",Roe=`rdg ${Aoe}`,Poe="vlqv91k7-0-0-beta-51",Ioe=`rdg-viewport-dragging ${Poe}`,Noe="f1lsfrzw7-0-0-beta-51",Moe="f1cte0lg7-0-0-beta-51",koe="s8wc6fl7-0-0-beta-51";function Doe({column:t,colSpan:e,row:n,rowIdx:r,isCellSelected:i,selectCell:o}){var w;const{tabIndex:u,childTabIndex:l,onFocus:d}=eb(i),{summaryCellClass:h}=t,g=Z1(t,koe,typeof h=="function"?h(n):h);function y(){o({rowIdx:r,idx:t.idx})}return N.jsx("div",{role:"gridcell","aria-colindex":t.idx+1,"aria-colspan":e,"aria-selected":i,tabIndex:u,className:g,style:gy(t,e),onClick:y,onFocus:d,children:(w=t.renderSummaryCell)==null?void 0:w.call(t,{column:t,row:n,tabIndex:l})})}var Foe=T.memo(Doe);const Loe="skuhp557-0-0-beta-51",Uoe="tf8l5ub7-0-0-beta-51",joe=`rdg-summary-row ${Loe}`;function Boe({rowIdx:t,gridRowStart:e,row:n,viewportColumns:r,top:i,bottom:o,lastFrozenColumnIndex:u,selectedCellIdx:l,isTop:d,selectCell:h,"aria-rowindex":g}){const y=[];for(let w=0;wnew Map),[Ge,Je]=T.useState(()=>new Map),[ht,j]=T.useState(null),[A,M]=T.useState(!1),[J,re]=T.useState(void 0),[ge,Ee]=T.useState(null),[rt,Wt]=T.useState(!1),[ae,ce]=T.useState(-1),nt=T.useCallback(De=>pe.get(De.key)??Ge.get(De.key)??De.width,[Ge,pe]),[Ht,ln,wt,Ur]=Fae(),{columns:tn,colSpanColumns:tr,lastFrozenColumnIndex:On,headerRowsCount:Li,colOverscanStartIdx:ca,colOverscanEndIdx:Ar,templateColumns:Fs,layoutCssVars:uo,totalFrozenColumnWidth:Ls}=kae({rawColumns:n,defaultColumnOptions:$,getColumnWidth:nt,scrollLeft:Dt,viewportWidth:ln,enableVirtualization:Gt}),Ei=(i==null?void 0:i.length)??0,Xr=(o==null?void 0:o.length)??0,lo=Ei+Xr,Ui=Li+Ei,Ko=Li-1,In=-Ui,Mn=In+Ko,An=r.length+Xr-1,[Ze,xi]=T.useState(()=>({idx:-1,rowIdx:In-1,mode:"SELECT"})),Us=T.useRef(J),Yo=T.useRef(null),co=tt==="treegrid",jr=Li*Ke,Aa=lo*He,Oi=wt-jr-Aa,ji=y!=null&&v!=null,Ra=Tt==="rtl",js=Ra?"ArrowRight":"ArrowLeft",kn=Ra?"ArrowLeft":"ArrowRight",Zf=$e??Li+r.length+lo,sm=T.useMemo(()=>({renderCheckbox:gt,renderSortStatus:bt,renderCell:pt}),[gt,bt,pt]),Jo=T.useMemo(()=>{let De=!1,qe=!1;if(u!=null&&y!=null&&y.size>0){for(const We of r)if(y.has(u(We))?De=!0:qe=!0,De&&qe)break}return{isRowSelected:De&&!qe,isIndeterminate:De&&qe}},[r,y,u]),{rowOverscanStartIdx:Bi,rowOverscanEndIdx:Br,totalRowHeight:Bl,gridTemplateRows:um,getRowTop:ed,getRowHeight:wy,findRowIdx:Nu}=Uae({rows:r,rowHeight:ke,clientHeight:Oi,scrollTop:en,enableVirtualization:Gt}),Ti=Lae({columns:tn,colSpanColumns:tr,colOverscanStartIdx:ca,colOverscanEndIdx:Ar,lastFrozenColumnIndex:On,rowOverscanStartIdx:Bi,rowOverscanEndIdx:Br,rows:r,topSummaryRows:i,bottomSummaryRows:o}),{gridTemplateColumns:fa,handleColumnResize:Zr}=Dae(tn,Ti,Fs,Ht,ln,pe,Ge,ze,Je,F),ql=co?-1:0,Bs=tn.length-1,fo=es(Ze),ho=Pa(Ze),Mu=Ke+Bl+Aa+Ur,Sy=Xa(Zr),ei=Xa(q),Hl=Xa(E),zl=Xa(O),td=Xa(_),Qo=Xa(R),Vl=Xa(lm),Gl=Xa(nd),qi=Xa(Hs),Wl=Xa(po),Kl=Xa(({idx:De,rowIdx:qe})=>{po({rowIdx:In+qe-1,idx:De})}),Yl=T.useCallback(De=>{re(De),Us.current=De},[]),qs=T.useCallback(()=>{const De=MP(Ht.current);if(De===null)return;Iw(De),(De.querySelector('[tabindex="0"]')??De).focus({preventScroll:!0})},[Ht]);T.useLayoutEffect(()=>{Yo.current!==null&&fo&&Ze.idx===-1&&(Yo.current.focus({preventScroll:!0}),Iw(Yo.current))},[fo,Ze]),T.useLayoutEffect(()=>{rt&&(Wt(!1),qs())},[rt,qs]),T.useImperativeHandle(e,()=>({element:Ht.current,scrollToCell({idx:De,rowIdx:qe}){const We=De!==void 0&&De>On&&De{xn(qe),Pt(vae(We))}),L==null||L(De)}function Hs(De,qe,We){if(typeof l!="function"||We===r[qe])return;const it=[...r];it[qe]=We,l(it,{indexes:[qe],column:De})}function Xo(){Ze.mode==="EDIT"&&Hs(tn[Ze.idx],Ze.rowIdx,Ze.row)}function Zo(){const{idx:De,rowIdx:qe}=Ze,We=r[qe],it=tn[De].key;j({row:We,columnKey:it}),X==null||X({sourceRow:We,sourceColumnKey:it})}function cm(){if(!ue||!l||ht===null||!zs(Ze))return;const{idx:De,rowIdx:qe}=Ze,We=tn[De],it=r[qe],_t=ue({sourceRow:ht.row,sourceColumnKey:ht.columnKey,targetRow:it,targetColumnKey:We.key});Hs(We,qe,_t)}function id(De){if(!ho)return;const qe=r[Ze.rowIdx],{key:We,shiftKey:it}=De;if(ji&&it&&We===" "){uE(u);const _t=u(qe);nd({row:qe,checked:!y.has(_t),isShiftClick:!1}),De.preventDefault();return}zs(Ze)&&oae(De)&&xi(({idx:_t,rowIdx:cn})=>({idx:_t,rowIdx:cn,mode:"EDIT",row:qe,originalRow:qe}))}function ad(De){return De>=ql&&De<=Bs}function Hi(De){return De>=0&&De=In&&qe<=An&&ad(De)}function Du({idx:De,rowIdx:qe}){return Hi(qe)&&De>=0&&De<=Bs}function Pa({idx:De,rowIdx:qe}){return Hi(qe)&&ad(De)}function zs(De){return Du(De)&&cae({columns:tn,rows:r,selectedPosition:De})}function po(De,qe){if(!es(De))return;Xo();const We=kP(Ze,De);if(qe&&zs(De)){const it=r[De.rowIdx];xi({...De,mode:"EDIT",row:it,originalRow:it})}else We?Iw(MP(Ht.current)):(Wt(!0),xi({...De,mode:"SELECT"}));P&&!We&&P({rowIdx:De.rowIdx,row:Hi(De.rowIdx)?r[De.rowIdx]:void 0,column:tn[De.idx]})}function fm(De,qe,We){const{idx:it,rowIdx:_t}=Ze,cn=fo&&it===-1;switch(De){case"ArrowUp":return{idx:it,rowIdx:_t-1};case"ArrowDown":return{idx:it,rowIdx:_t+1};case js:return{idx:it-1,rowIdx:_t};case kn:return{idx:it+1,rowIdx:_t};case"Tab":return{idx:it+(We?-1:1),rowIdx:_t};case"Home":return cn?{idx:it,rowIdx:In}:{idx:0,rowIdx:qe?In:_t};case"End":return cn?{idx:it,rowIdx:An}:{idx:Bs,rowIdx:qe?An:_t};case"PageUp":{if(Ze.rowIdx===In)return Ze;const Rn=ed(_t)+wy(_t)-Oi;return{idx:it,rowIdx:Rn>0?Nu(Rn):0}}case"PageDown":{if(Ze.rowIdx>=r.length)return Ze;const Rn=ed(_t)+Oi;return{idx:it,rowIdx:RnDe&&De>=J)?Ze.idx:void 0}function dm(){if(Y==null||Ze.mode==="EDIT"||!Pa(Ze))return;const{idx:De,rowIdx:qe}=Ze,We=tn[De];if(We.renderEditCell==null||We.editable===!1)return;const it=nt(We);return N.jsx(Jae,{gridRowStart:Ui+qe+1,rows:r,column:We,columnWidth:it,maxColIdx:Bs,isLastRow:qe===An,selectedPosition:Ze,isCellEditable:zs,latestDraggedOverRowIdx:Us,onRowsChange:l,onClick:qs,onFill:Y,setDragging:M,setDraggedOverRowIdx:Yl})}function qr(De){if(Ze.rowIdx!==De||Ze.mode==="SELECT")return;const{idx:qe,row:We}=Ze,it=tn[qe],_t=qo(it,On,{type:"ROW",row:We}),cn=nn=>{Wt(nn),xi(({idx:hr,rowIdx:Rr})=>({idx:hr,rowIdx:Rr,mode:"SELECT"}))},Rn=(nn,hr,Rr)=>{hr?xu.flushSync(()=>{Hs(it,Ze.rowIdx,nn),cn(Rr)}):xi(ts=>({...ts,row:nn}))};return r[Ze.rowIdx]!==Ze.originalRow&&cn(!1),N.jsx(Xae,{column:it,colSpan:_t,row:We,rowIdx:De,onRowChange:Rn,closeEditor:cn,onKeyDown:k,navigate:on},it.key)}function zi(De){const qe=Ze.idx===-1?void 0:tn[Ze.idx];return qe!==void 0&&Ze.rowIdx===De&&!Ti.includes(qe)?Ze.idx>Ar?[...Ti,qe]:[...Ti.slice(0,On+1),qe,...Ti.slice(On+1)]:Ti}function Jl(){const De=[],{idx:qe,rowIdx:We}=Ze,it=ho&&WeBr?Br+1:Br;for(let cn=it;cn<=_t;cn++){const Rn=cn===Bi-1||cn===Br+1,nn=Rn?We:cn;let hr=Ti;const Rr=qe===-1?void 0:tn[qe];Rr!==void 0&&(Rn?hr=[Rr]:hr=zi(nn));const ts=r[nn],hm=Ui+nn+1;let Ql=nn,Xl=!1;typeof u=="function"&&(Ql=u(ts),Xl=(y==null?void 0:y.has(Ql))??!1),De.push(ut(Ql,{"aria-rowindex":Ui+nn+1,"aria-selected":ji?Xl:void 0,rowIdx:nn,row:ts,viewportColumns:hr,isRowSelectionDisabled:(w==null?void 0:w(ts))??!1,isRowSelected:Xl,onCellClick:zl,onCellDoubleClick:td,onCellContextMenu:Qo,rowClass:B,gridRowStart:hm,copiedCellIdx:ht!==null&&ht.row===ts?tn.findIndex(Hr=>Hr.key===ht.columnKey):void 0,selectedCellIdx:We===nn?qe:void 0,draggedOverCellIdx:sn(nn),setDraggedOverRowIdx:A?Yl:void 0,lastFrozenColumnIndex:On,onRowChange:qi,selectCell:Wl,selectedCellEditor:qr(nn)}))}return De}(Ze.idx>Bs||Ze.rowIdx>An)&&(xi({idx:-1,rowIdx:In-1,mode:"SELECT"}),Yl(void 0));let mo=`repeat(${Li}, ${Ke}px)`;Ei>0&&(mo+=` repeat(${Ei}, ${He}px)`),r.length>0&&(mo+=um),Xr>0&&(mo+=` repeat(${Xr}, ${He}px)`);const od=Ze.idx===-1&&Ze.rowIdx!==In-1;return N.jsxs("div",{role:tt,"aria-label":ie,"aria-labelledby":G,"aria-description":Q,"aria-describedby":he,"aria-multiselectable":ji?!0:void 0,"aria-colcount":tn.length,"aria-rowcount":Zf,className:Pl(Roe,{[Ioe]:A},be),style:{...we,scrollPaddingInlineStart:Ze.idx>On||(ge==null?void 0:ge.idx)!==void 0?`${Ls}px`:void 0,scrollPaddingBlock:Hi(Ze.rowIdx)||(ge==null?void 0:ge.rowIdx)!==void 0?`${jr+Ei*He}px ${Xr*He}px`:void 0,gridTemplateColumns:fa,gridTemplateRows:mo,"--rdg-header-row-height":`${Ke}px`,"--rdg-scroll-height":`${Mu}px`,...uo},dir:Tt,ref:Ht,onScroll:rd,onKeyDown:ku,"data-testid":Ce,"data-cy":Be,children:[N.jsxs(vM,{value:sm,children:[N.jsx(CM,{value:Vl,children:N.jsxs(SM,{value:Jo,children:[Array.from({length:Ko},(De,qe)=>N.jsx(boe,{rowIdx:qe+1,level:-Ko+qe,columns:zi(In+qe),selectedCellIdx:Ze.rowIdx===In+qe?Ze.idx:void 0,selectCell:Kl},qe)),N.jsx(yoe,{rowIdx:Li,columns:zi(Mn),onColumnResize:Sy,onColumnsReorder:ei,sortColumns:C,onSortColumnsChange:Hl,lastFrozenColumnIndex:On,selectedCellIdx:Ze.rowIdx===Mn?Ze.idx:void 0,selectCell:Kl,shouldFocusGrid:!fo,direction:Tt})]})}),r.length===0&&Ut?Ut:N.jsxs(N.Fragment,{children:[i==null?void 0:i.map((De,qe)=>{const We=Li+1+qe,it=Mn+1+qe,_t=Ze.rowIdx===it,cn=jr+He*qe;return N.jsx(NP,{"aria-rowindex":We,rowIdx:it,gridRowStart:We,row:De,top:cn,bottom:void 0,viewportColumns:zi(it),lastFrozenColumnIndex:On,selectedCellIdx:_t?Ze.idx:void 0,isTop:!0,selectCell:Wl},qe)}),N.jsx(bM,{value:Gl,children:Jl()}),o==null?void 0:o.map((De,qe)=>{const We=Ui+r.length+qe+1,it=r.length+qe,_t=Ze.rowIdx===it,cn=Oi>Bl?wt-He*(o.length-qe):void 0,Rn=cn===void 0?He*(o.length-1-qe):void 0;return N.jsx(NP,{"aria-rowindex":Zf-Xr+qe+1,rowIdx:it,gridRowStart:We,row:De,top:cn,bottom:Rn,viewportColumns:zi(it),lastFrozenColumnIndex:On,selectedCellIdx:_t?Ze.idx:void 0,isTop:!1,selectCell:Wl},qe)})]})]}),dm(),lae(Ti),co&&N.jsx("div",{ref:Yo,tabIndex:od?0:-1,className:Pl(Noe,{[Moe]:!Hi(Ze.rowIdx),[foe]:od,[doe]:od&&On!==-1}),style:{gridRowStart:Ze.rowIdx+Ui+1}}),ge!==null&&N.jsx($oe,{scrollToPosition:ge,setScrollToCellPosition:Ee,gridRef:Ht})]})}function MP(t){return t.querySelector(':scope > [role="row"] > [tabindex="0"]')}function kP(t,e){return t.idx===e.idx&&t.rowIdx===e.rowIdx}function Hoe({id:t,groupKey:e,childRows:n,isExpanded:r,isCellSelected:i,column:o,row:u,groupColumnIndex:l,isGroupByColumn:d,toggleGroup:h}){var E;const{tabIndex:g,childTabIndex:y,onFocus:w}=eb(i);function v(){h(t)}const C=d&&l===o.idx;return N.jsx("div",{role:"gridcell","aria-colindex":o.idx+1,"aria-selected":i,tabIndex:g,className:Z1(o),style:{...gy(o),cursor:C?"pointer":"default"},onClick:C?v:void 0,onFocus:w,children:(!d||C)&&((E=o.renderGroupCell)==null?void 0:E.call(o,{groupKey:e,childRows:n,column:o,row:u,isExpanded:r,tabIndex:y,toggleGroup:v}))},o.key)}var zoe=T.memo(Hoe);const Voe="g1yxluv37-0-0-beta-51",Goe=`rdg-group-row ${Voe}`;function Woe({className:t,row:e,rowIdx:n,viewportColumns:r,selectedCellIdx:i,isRowSelected:o,selectCell:u,gridRowStart:l,groupBy:d,toggleGroup:h,isRowSelectionDisabled:g,...y}){const w=r[0].key===gS?e.level+1:e.level;function v(){u({rowIdx:n,idx:-1})}const C=T.useMemo(()=>({isRowSelectionDisabled:!1,isRowSelected:o}),[o]);return N.jsx(ST,{value:C,children:N.jsx("div",{role:"row","aria-level":e.level+1,"aria-setsize":e.setSize,"aria-posinset":e.posInSet+1,"aria-expanded":e.isExpanded,className:Pl(CT,Goe,`rdg-row-${n%2===0?"even":"odd"}`,i===-1&&XS,t),onClick:v,style:bT(l),...y,children:r.map(E=>N.jsx(zoe,{id:e.id,groupKey:e.groupKey,childRows:e.childRows,isExpanded:e.isExpanded,isCellSelected:i===E.idx,column:E,row:e,groupColumnIndex:w,toggleGroup:h,isGroupByColumn:d.includes(E.key)},E.key))})})}T.memo(Woe);const Koe=Ae.createContext({sidebarVisible:!1,threshold:"desktop",routers:[{id:"url-router"}],toggleSidebar(){},setSidebarRef(t){},persistSidebarSize(t){},setFocusedRouter(t){},closeCurrentRouter(){},sidebarItemSelected(){},collapseLeftPanel(){},addRouter(){},updateSidebarSize(){},hide(){},show(){}});function Yoe(){return T.useContext(Koe)}const Joe=({value:t})=>{const{addRouter:e}=Yoe(),n=r=>{r.stopPropagation(),e(t)};return N.jsx("div",{className:"table-btn table-open-in-new-router",onClick:n,children:N.jsx(Qoe,{})})},Qoe=({size:t=16,color:e="silver",style:n={}})=>N.jsx("svg",{width:t,height:t,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",style:{cursor:"pointer",...n},children:N.jsx("path",{d:"M9 3H5C3.895 3 3 3.895 3 5v14c0 1.105.895 2 2 2h14c1.105 0 2-.895 2-2v-4h-2v4H5V5h4V3ZM21 3h-6v2h3.586l-9.293 9.293 1.414 1.414L20 6.414V10h2V3Z",fill:e})});/** +***************************************************************************** */var yO=function(t,e){return yO=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(n[i]=r[i])},yO(t,e)};function $b(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");yO(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}var Di=function(){return Di=Object.assign||function(e){for(var n,r=1,i=arguments.length;r{t(!1)})},refs:[]}),Eae=T.createContext(null),xae=()=>{const t=T.useContext(Eae);if(!t)throw new Error("useOverlay must be inside OverlayProvider");return t},Oae=()=>{const{openDrawer:t,openModal:e}=xae();return{confirmDrawer:({title:i,description:o,cancelLabel:u,confirmLabel:l})=>t(({close:d,resolve:h})=>N.jsxs("div",{className:"confirm-drawer-container p-3",children:[N.jsx("h2",{children:i}),N.jsx("span",{children:o}),N.jsxs("div",{children:[N.jsx("button",{className:"d-block w-100 btn btn-primary",onClick:()=>h(),children:l}),N.jsx("button",{className:"d-block w-100 btn",onClick:()=>d(),children:u})]})]})),confirmModal:({title:i,description:o,cancelLabel:u,confirmLabel:l})=>e(({close:d,resolve:h})=>N.jsxs("div",{className:"confirm-drawer-container p-3",children:[N.jsx("span",{children:o}),N.jsxs("div",{className:"row mt-4",children:[N.jsx("div",{className:"col-md-6",children:N.jsx("button",{className:"d-block w-100 btn btn-primary",onClick:()=>h(),children:l})}),N.jsx("div",{className:"col-md-6",children:N.jsx("button",{className:"d-block w-100 btn",onClick:()=>d(),children:u})})]})]}),{title:i})}},Tae=()=>{const t=T.useRef();return{withDebounce:(n,r)=>{t.current&&clearTimeout(t.current),t.current=setTimeout(n,r)}}};function _ae({urlMask:t,submitDelete:e,onRecordsDeleted:n,initialFilters:r}){const i=yn(),o=Br(),{confirmModal:u}=Oae(),{withDebounce:l}=Tae(),d={itemsPerPage:100,startIndex:0,sorting:[],...r||{}},[h,g]=T.useState(d),[y,w]=T.useState(d),{search:b}=zl(),C=T.useRef(!1);T.useEffect(()=>{if(C.current)return;C.current=!0;let Se={};try{Se=J1.parse(b.substring(1)),delete Se.startIndex}catch{}g({...d,...Se}),w({...d,...Se})},[b]);const[E,$]=T.useState([]),_=(Se=>{var V;const j={...Se};return delete j.startIndex,delete j.itemsPerPage,((V=j==null?void 0:j.sorting)==null?void 0:V.length)===0&&delete j.sorting,JSON.stringify(j)})(h),P=Se=>{$(Se)},k=(Se,j=!0)=>{const V={...h,...Se};j&&(V.startIndex=0),g(V),o.push("?"+J1.stringify(V),void 0,{},!0),l(()=>{w(V)},500)},R=Se=>{k({itemsPerPage:Se},!1)},L=Se=>Se.map(j=>`${j.columnName} ${j.direction}`).join(", "),F=Se=>{k({sorting:Se,sort:L(Se)},!1)},q=Se=>{k({startIndex:Se},!1)},Y=Se=>{k({startIndex:0})};T.useContext(UM);const Q=Se=>({query:Se.map(j=>`unique_id = ${j}`).join(" or "),uniqueId:""}),ue=async()=>{u({title:i.confirm,confirmLabel:i.common.yes,cancelLabel:i.common.no,description:i.deleteConfirmMessage}).promise.then(({type:Se})=>{if(Se==="resolved")return e(Q(E),null)}).then(()=>{n&&n()})},me=()=>({label:i.deleteAction,onSelect(){ue()},icon:My.delete,uniqueActionKey:"GENERAL_DELETE_ACTION"}),{addActions:te,removeActionMenu:be}=OZ();return T.useEffect(()=>{if(E.length>0&&typeof e<"u")return te("table-selection",[me()]);be("table-selection")},[E]),wb(jn.Delete,()=>{E.length>0&&typeof e<"u"&&ue()}),{filters:h,setFilters:g,setFilter:k,setSorting:F,setStartIndex:q,selection:E,setSelection:P,onFiltersChange:Y,queryHash:_,setPageSize:R,debouncedFilters:y}}function Aae({queryOptions:t,execFnOverride:e,query:n,queryClient:r,unauthorized:i}){var $;const{options:o,execFn:u}=T.useContext(En),l=e?e(o):u?u(o):Ei(o);let h=`${"/table-view-sizing/:uniqueId".substr(1)}?${new URLSearchParams(Na(n)).toString()}`,g=!0;h=h.replace(":uniqueId",n[":uniqueId".replace(":","")]),n[":uniqueId".replace(":","")]===void 0&&(g=!1);const y=()=>l("GET",h),w=($=o==null?void 0:o.headers)==null?void 0:$.authorization,b=w!="undefined"&&w!=null&&w!=null&&w!="null"&&!!w;let C=!0;return g?!b&&!i&&(C=!1):C=!1,{query:Yo([o,n,"*abac.TableViewSizingEntity"],y,{cacheTime:1001,retry:!1,keepPreviousData:!0,enabled:C,...t||{}})}}class GT extends Vt{constructor(...e){super(...e),this.children=void 0,this.tableName=void 0,this.sizes=void 0}}GT.Navigation={edit(t,e){return`${e?"/"+e:".."}/table-view-sizing/edit/${t}`},create(t){return`${t?"/"+t:".."}/table-view-sizing/new`},single(t,e){return`${e?"/"+e:".."}/table-view-sizing/${t}`},query(t={},e){return`${e?"/"+e:".."}/table-view-sizings`},Redit:"table-view-sizing/edit/:uniqueId",Rcreate:"table-view-sizing/new",Rsingle:"table-view-sizing/:uniqueId",Rquery:"table-view-sizings"};GT.definition={rpc:{query:{}},name:"tableViewSizing",features:{},gormMap:{},fields:[{name:"tableName",type:"string",validate:"required",computedType:"string",gormMap:{}},{name:"sizes",type:"string",computedType:"string",gormMap:{}}],cliShort:"tvs",description:"Used to store meta data about user tables (in front-end, or apps for example) about the size of the columns"};GT.Fields={...Vt.Fields,tableName:"tableName",sizes:"sizes"};function Rae(t){let{queryClient:e,query:n,execFnOverride:r}=t||{};n=n||{};const{options:i,execFn:o}=T.useContext(En),u=r?r(i):o?o(i):Ei(i);let d=`${"/table-view-sizing".substr(1)}?${new URLSearchParams(Na(n)).toString()}`;const g=Ur(b=>u("PATCH",d,b)),y=(b,C)=>{var E;return b?(b.data&&(C!=null&&C.data)&&(b.data.items=[C.data,...((E=b==null?void 0:b.data)==null?void 0:E.items)||[]]),b):{data:{items:[]}}};return{mutation:g,submit:(b,C)=>new Promise((E,$)=>{g.mutate(b,{onSuccess(O){e==null||e.setQueriesData("*abac.TableViewSizingEntity",_=>y(_,O)),E(O)},onError(O){C==null||C.setErrors(Mu(O)),$(O)}})}),fnUpdater:y}}function BM(t){var e,n,r="";if(typeof t=="string"||typeof t=="number")r+=t;else if(typeof t=="object")if(Array.isArray(t)){var i=t.length;for(e=0;e1&&(!t.frozen||t.idx+r-1<=e))return r}function Pae(t){t.stopPropagation()}function iS(t){t==null||t.scrollIntoView({inline:"nearest",block:"nearest"})}function p1(t){let e=!1;const n={...t,preventGridDefault(){e=!0},isGridDefaultPrevented(){return e}};return Object.setPrototypeOf(n,Object.getPrototypeOf(t)),n}const Iae=new Set(["Unidentified","Alt","AltGraph","CapsLock","Control","Fn","FnLock","Meta","NumLock","ScrollLock","Shift","Tab","ArrowDown","ArrowLeft","ArrowRight","ArrowUp","End","Home","PageDown","PageUp","Insert","ContextMenu","Escape","Pause","Play","PrintScreen","F1","F3","F4","F5","F6","F7","F8","F9","F10","F11","F12"]);function vO(t){return(t.ctrlKey||t.metaKey)&&t.key!=="Control"}function Nae(t){return vO(t)&&t.keyCode!==86?!1:!Iae.has(t.key)}function Mae({key:t,target:e}){var n;return t==="Tab"&&(e instanceof HTMLInputElement||e instanceof HTMLTextAreaElement||e instanceof HTMLSelectElement)?((n=e.closest(".rdg-editor-container"))==null?void 0:n.querySelectorAll("input, textarea, select").length)===1:!1}const kae="mlln6zg7-0-0-beta-51";function Dae(t){return t.map(({key:e,idx:n,minWidth:r,maxWidth:i})=>N.jsx("div",{className:kae,style:{gridColumnStart:n+1,minWidth:r,maxWidth:i},"data-measuring-cell-key":e},e))}function Fae({selectedPosition:t,columns:e,rows:n}){const r=e[t.idx],i=n[t.rowIdx];return jM(r,i)}function jM(t,e){return t.renderEditCell!=null&&(typeof t.editable=="function"?t.editable(e):t.editable)!==!1}function Lae({rows:t,topSummaryRows:e,bottomSummaryRows:n,rowIdx:r,mainHeaderRowIdx:i,lastFrozenColumnIndex:o,column:u}){const l=(e==null?void 0:e.length)??0;if(r===i)return Vo(u,o,{type:"HEADER"});if(e&&r>i&&r<=l+i)return Vo(u,o,{type:"SUMMARY",row:e[r+l]});if(r>=0&&r{for(const F of i){const q=F.idx;if(q>$)break;const Y=Lae({rows:o,topSummaryRows:u,bottomSummaryRows:l,rowIdx:O,mainHeaderRowIdx:h,lastFrozenColumnIndex:C,column:F});if(Y&&$>q&&$L.level+h,R=()=>{if(e){let F=r[$].parent;for(;F!==void 0;){const q=k(F);if(O===q){$=F.idx+F.colSpan;break}F=F.parent}}else if(t){let F=r[$].parent,q=!1;for(;F!==void 0;){const Y=k(F);if(O>=Y){$=F.idx,O=Y,q=!0;break}F=F.parent}q||($=y,O=w)}};if(E(b)&&(P(e),O=q&&(O=Y,$=F.idx),F=F.parent}}return{idx:$,rowIdx:O}}function Bae({maxColIdx:t,minRowIdx:e,maxRowIdx:n,selectedPosition:{rowIdx:r,idx:i},shiftKey:o}){return o?i===0&&r===e:i===t&&r===n}const jae="cj343x07-0-0-beta-51",qM=`rdg-cell ${jae}`,qae="csofj7r7-0-0-beta-51",Hae=`rdg-cell-frozen ${qae}`;function WT(t){return{"--rdg-grid-row-start":t}}function HM(t,e,n){const r=e+1,i=`calc(${n-1} * var(--rdg-header-row-height))`;return t.parent===void 0?{insetBlockStart:0,gridRowStart:1,gridRowEnd:r,paddingBlockStart:i}:{insetBlockStart:`calc(${e-n} * var(--rdg-header-row-height))`,gridRowStart:r-n,gridRowEnd:r,paddingBlockStart:i}}function Fy(t,e=1){const n=t.idx+1;return{gridColumnStart:n,gridColumnEnd:n+e,insetInlineStart:t.frozen?`var(--rdg-frozen-left-${t.idx})`:void 0}}function Eb(t,...e){return Dl(qM,{[Hae]:t.frozen},...e)}const{min:X1,max:jS,floor:i5,sign:zae,abs:Vae}=Math;function ME(t){if(typeof t!="function")throw new Error("Please specify the rowKeyGetter prop to use selection")}function zM(t,{minWidth:e,maxWidth:n}){return t=jS(t,e),typeof n=="number"&&n>=e?X1(t,n):t}function VM(t,e){return t.parent===void 0?e:t.level-t.parent.level}const Gae="c1bn88vv7-0-0-beta-51",Wae=`rdg-checkbox-input ${Gae}`;function Kae({onChange:t,indeterminate:e,...n}){function r(i){t(i.target.checked,i.nativeEvent.shiftKey)}return N.jsx("input",{ref:i=>{i&&(i.indeterminate=e===!0)},type:"checkbox",className:Wae,onChange:r,...n})}function Yae(t){try{return t.row[t.column.key]}catch{return null}}const GM=T.createContext(void 0);function $3(){return T.useContext(GM)}function KT({value:t,tabIndex:e,indeterminate:n,disabled:r,onChange:i,"aria-label":o,"aria-labelledby":u}){const l=$3().renderCheckbox;return l({"aria-label":o,"aria-labelledby":u,tabIndex:e,indeterminate:n,disabled:r,checked:t,onChange:i})}const YT=T.createContext(void 0),WM=T.createContext(void 0);function KM(){const t=T.useContext(YT),e=T.useContext(WM);if(t===void 0||e===void 0)throw new Error("useRowSelection must be used within renderCell");return{isRowSelectionDisabled:t.isRowSelectionDisabled,isRowSelected:t.isRowSelected,onRowSelectionChange:e}}const YM=T.createContext(void 0),JM=T.createContext(void 0);function Jae(){const t=T.useContext(YM),e=T.useContext(JM);if(t===void 0||e===void 0)throw new Error("useHeaderRowSelection must be used within renderHeaderCell");return{isIndeterminate:t.isIndeterminate,isRowSelected:t.isRowSelected,onRowSelectionChange:e}}const qS="rdg-select-column";function Qae(t){const{isIndeterminate:e,isRowSelected:n,onRowSelectionChange:r}=Jae();return N.jsx(KT,{"aria-label":"Select All",tabIndex:t.tabIndex,indeterminate:e,value:n,onChange:i=>{r({checked:e?!1:i})}})}function Xae(t){const{isRowSelectionDisabled:e,isRowSelected:n,onRowSelectionChange:r}=KM();return N.jsx(KT,{"aria-label":"Select",tabIndex:t.tabIndex,disabled:e,value:n,onChange:(i,o)=>{r({row:t.row,checked:i,isShiftClick:o})}})}function Zae(t){const{isRowSelected:e,onRowSelectionChange:n}=KM();return N.jsx(KT,{"aria-label":"Select Group",tabIndex:t.tabIndex,value:e,onChange:r=>{n({row:t.row,checked:r,isShiftClick:!1})}})}const eoe={key:qS,name:"",width:35,minWidth:35,maxWidth:35,resizable:!1,sortable:!1,frozen:!0,renderHeaderCell(t){return N.jsx(Qae,{...t})},renderCell(t){return N.jsx(Xae,{...t})},renderGroupCell(t){return N.jsx(Zae,{...t})}},toe="h44jtk67-0-0-beta-51",noe="hcgkhxz7-0-0-beta-51",roe=`rdg-header-sort-name ${noe}`;function ioe({column:t,sortDirection:e,priority:n}){return t.sortable?N.jsx(aoe,{sortDirection:e,priority:n,children:t.name}):t.name}function aoe({sortDirection:t,priority:e,children:n}){const r=$3().renderSortStatus;return N.jsxs("span",{className:toe,children:[N.jsx("span",{className:roe,children:n}),N.jsx("span",{children:r({sortDirection:t,priority:e})})]})}const ooe="auto",soe=50;function uoe({rawColumns:t,defaultColumnOptions:e,getColumnWidth:n,viewportWidth:r,scrollLeft:i,enableVirtualization:o}){const u=(e==null?void 0:e.width)??ooe,l=(e==null?void 0:e.minWidth)??soe,d=(e==null?void 0:e.maxWidth)??void 0,h=(e==null?void 0:e.renderCell)??Yae,g=(e==null?void 0:e.renderHeaderCell)??ioe,y=(e==null?void 0:e.sortable)??!1,w=(e==null?void 0:e.resizable)??!1,b=(e==null?void 0:e.draggable)??!1,{columns:C,colSpanColumns:E,lastFrozenColumnIndex:$,headerRowsCount:O}=T.useMemo(()=>{let q=-1,Y=1;const Q=[];ue(t,1);function ue(te,be,Se){for(const j of te){if("children"in j){const ie={name:j.name,parent:Se,idx:-1,colSpan:0,level:0,headerCellClass:j.headerCellClass};ue(j.children,be+1,ie);continue}const V=j.frozen??!1,H={...j,parent:Se,idx:0,level:0,frozen:V,width:j.width??u,minWidth:j.minWidth??l,maxWidth:j.maxWidth??d,sortable:j.sortable??y,resizable:j.resizable??w,draggable:j.draggable??b,renderCell:j.renderCell??h,renderHeaderCell:j.renderHeaderCell??g};Q.push(H),V&&q++,be>Y&&(Y=be)}}Q.sort(({key:te,frozen:be},{key:Se,frozen:j})=>te===qS?-1:Se===qS?1:be?j?0:-1:j?1:0);const me=[];return Q.forEach((te,be)=>{te.idx=be,QM(te,be,0),te.colSpan!=null&&me.push(te)}),{columns:Q,colSpanColumns:me,lastFrozenColumnIndex:q,headerRowsCount:Y}},[t,u,l,d,h,g,w,y,b]),{templateColumns:_,layoutCssVars:P,totalFrozenColumnWidth:k,columnMetrics:R}=T.useMemo(()=>{const q=new Map;let Y=0,Q=0;const ue=[];for(const te of C){let be=n(te);typeof be=="number"?be=zM(be,te):be=te.minWidth,ue.push(`${be}px`),q.set(te,{width:be,left:Y}),Y+=be}if($!==-1){const te=q.get(C[$]);Q=te.left+te.width}const me={};for(let te=0;te<=$;te++){const be=C[te];me[`--rdg-frozen-left-${be.idx}`]=`${q.get(be).left}px`}return{templateColumns:ue,layoutCssVars:me,totalFrozenColumnWidth:Q,columnMetrics:q}},[n,C,$]),[L,F]=T.useMemo(()=>{if(!o)return[0,C.length-1];const q=i+k,Y=i+r,Q=C.length-1,ue=X1($+1,Q);if(q>=Y)return[ue,ue];let me=ue;for(;meq)break;me++}let te=me;for(;te=Y)break;te++}const be=jS(ue,me-1),Se=X1(Q,te+1);return[be,Se]},[R,C,$,i,k,r,o]);return{columns:C,colSpanColumns:E,colOverscanStartIdx:L,colOverscanEndIdx:F,templateColumns:_,layoutCssVars:P,headerRowsCount:O,lastFrozenColumnIndex:$,totalFrozenColumnWidth:k}}function QM(t,e,n){if(n{g.current=i,$(C)});function $(_){_.length!==0&&d(P=>{const k=new Map(P);let R=!1;for(const L of _){const F=a5(r,L);R||(R=F!==P.get(L)),F===void 0?k.delete(L):k.set(L,F)}return R?k:P})}function O(_,P){const{key:k}=_,R=[...n],L=[];for(const{key:q,idx:Y,width:Q}of e)if(k===q){const ue=typeof P=="number"?`${P}px`:P;R[Y]=ue}else y&&typeof Q=="string"&&!o.has(q)&&(R[Y]=Q,L.push(q));r.current.style.gridTemplateColumns=R.join(" ");const F=typeof P=="number"?P:a5(r,k);_u.flushSync(()=>{l(q=>{const Y=new Map(q);return Y.set(k,F),Y}),$(L)}),h==null||h(_,F)}return{gridTemplateColumns:E,handleColumnResize:O}}function a5(t,e){var i;const n=`[data-measuring-cell-key="${CSS.escape(e)}"]`,r=(i=t.current)==null?void 0:i.querySelector(n);return r==null?void 0:r.getBoundingClientRect().width}function coe(){const t=T.useRef(null),[e,n]=T.useState(1),[r,i]=T.useState(1),[o,u]=T.useState(0);return T.useLayoutEffect(()=>{const{ResizeObserver:l}=window;if(l==null)return;const{clientWidth:d,clientHeight:h,offsetWidth:g,offsetHeight:y}=t.current,{width:w,height:b}=t.current.getBoundingClientRect(),C=y-h,E=w-g+d,$=b-C;n(E),i($),u(C);const O=new l(_=>{const P=_[0].contentBoxSize[0],{clientHeight:k,offsetHeight:R}=t.current;_u.flushSync(()=>{n(P.inlineSize),i(P.blockSize),u(R-k)})});return O.observe(t.current),()=>{O.disconnect()}},[]),[t,e,r,o]}function io(t){const e=T.useRef(t);T.useEffect(()=>{e.current=t});const n=T.useCallback((...r)=>{e.current(...r)},[]);return t&&n}function xb(t){const[e,n]=T.useState(!1);e&&!t&&n(!1);function r(o){o.target!==o.currentTarget&&n(!0)}return{tabIndex:t&&!e?0:-1,childTabIndex:t?0:-1,onFocus:t?r:void 0}}function foe({columns:t,colSpanColumns:e,rows:n,topSummaryRows:r,bottomSummaryRows:i,colOverscanStartIdx:o,colOverscanEndIdx:u,lastFrozenColumnIndex:l,rowOverscanStartIdx:d,rowOverscanEndIdx:h}){const g=T.useMemo(()=>{if(o===0)return 0;let y=o;const w=(b,C)=>C!==void 0&&b+C>o?(y=b,!0):!1;for(const b of e){const C=b.idx;if(C>=y||w(C,Vo(b,l,{type:"HEADER"})))break;for(let E=d;E<=h;E++){const $=n[E];if(w(C,Vo(b,l,{type:"ROW",row:$})))break}if(r!=null){for(const E of r)if(w(C,Vo(b,l,{type:"SUMMARY",row:E})))break}if(i!=null){for(const E of i)if(w(C,Vo(b,l,{type:"SUMMARY",row:E})))break}}return y},[d,h,n,r,i,o,l,e]);return T.useMemo(()=>{const y=[];for(let w=0;w<=u;w++){const b=t[w];w{if(typeof e=="number")return{totalRowHeight:e*t.length,gridTemplateRows:` repeat(${t.length}, ${e}px)`,getRowTop:$=>$*e,getRowHeight:()=>e,findRowIdx:$=>i5($/e)};let w=0,b=" ";const C=t.map($=>{const O=e($),_={top:w,height:O};return b+=`${O}px `,w+=O,_}),E=$=>jS(0,X1(t.length-1,$));return{totalRowHeight:w,gridTemplateRows:b,getRowTop:$=>C[E($)].top,getRowHeight:$=>C[E($)].height,findRowIdx($){let O=0,_=C.length-1;for(;O<=_;){const P=O+i5((_-O)/2),k=C[P].top;if(k===$)return P;if(k<$?O=P+1:k>$&&(_=P-1),O>_)return _}return 0}}},[e,t]);let g=0,y=t.length-1;if(i){const b=h(r),C=h(r+n);g=jS(0,b-4),y=X1(t.length-1,C+4)}return{rowOverscanStartIdx:g,rowOverscanEndIdx:y,totalRowHeight:o,gridTemplateRows:u,getRowTop:l,getRowHeight:d,findRowIdx:h}}const hoe="c6ra8a37-0-0-beta-51",poe=`rdg-cell-copied ${hoe}`,moe="cq910m07-0-0-beta-51",goe=`rdg-cell-dragged-over ${moe}`;function yoe({column:t,colSpan:e,isCellSelected:n,isCopied:r,isDraggedOver:i,row:o,rowIdx:u,className:l,onClick:d,onDoubleClick:h,onContextMenu:g,onRowChange:y,selectCell:w,style:b,...C}){const{tabIndex:E,childTabIndex:$,onFocus:O}=xb(n),{cellClass:_}=t;l=Eb(t,{[poe]:r,[goe]:i},typeof _=="function"?_(o):_,l);const P=jM(t,o);function k(Y){w({rowIdx:u,idx:t.idx},Y)}function R(Y){if(d){const Q=p1(Y);if(d({rowIdx:u,row:o,column:t,selectCell:k},Q),Q.isGridDefaultPrevented())return}k()}function L(Y){if(g){const Q=p1(Y);if(g({rowIdx:u,row:o,column:t,selectCell:k},Q),Q.isGridDefaultPrevented())return}k()}function F(Y){if(h){const Q=p1(Y);if(h({rowIdx:u,row:o,column:t,selectCell:k},Q),Q.isGridDefaultPrevented())return}k(!0)}function q(Y){y(t,Y)}return N.jsx("div",{role:"gridcell","aria-colindex":t.idx+1,"aria-colspan":e,"aria-selected":n,"aria-readonly":!P||void 0,tabIndex:E,className:l,style:{...Fy(t,e),...b},onClick:R,onDoubleClick:F,onContextMenu:L,onFocus:O,...C,children:t.renderCell({column:t,row:o,rowIdx:u,isCellEditable:P,tabIndex:$,onRowChange:q})})}const voe=T.memo(yoe);function boe(t,e){return N.jsx(voe,{...e},t)}const woe="c1w9bbhr7-0-0-beta-51",Soe="c1creorc7-0-0-beta-51",Coe=`rdg-cell-drag-handle ${woe}`;function $oe({gridRowStart:t,rows:e,column:n,columnWidth:r,maxColIdx:i,isLastRow:o,selectedPosition:u,latestDraggedOverRowIdx:l,isCellEditable:d,onRowsChange:h,onFill:g,onClick:y,setDragging:w,setDraggedOverRowIdx:b}){const{idx:C,rowIdx:E}=u;function $(R){if(R.preventDefault(),R.buttons!==1)return;w(!0),window.addEventListener("mouseover",L),window.addEventListener("mouseup",F);function L(q){q.buttons!==1&&F()}function F(){window.removeEventListener("mouseover",L),window.removeEventListener("mouseup",F),w(!1),O()}}function O(){const R=l.current;if(R===void 0)return;const L=E0&&(h==null||h(q,{indexes:Y,column:n}))}function k(){var Q;const R=((Q=n.colSpan)==null?void 0:Q.call(n,{type:"ROW",row:e[E]}))??1,{insetInlineStart:L,...F}=Fy(n,R),q="calc(var(--rdg-drag-handle-size) * -0.5 + 1px)",Y=n.idx+R-1===i;return{...F,gridRowStart:t,marginInlineEnd:Y?void 0:q,marginBlockEnd:o?void 0:q,insetInlineStart:L?`calc(${L} + ${r}px + var(--rdg-drag-handle-size) * -0.5 - 1px)`:void 0}}return N.jsx("div",{style:k(),className:Dl(Coe,n.frozen&&Soe),onClick:y,onMouseDown:$,onDoubleClick:_})}const Eoe="cis5rrm7-0-0-beta-51";function xoe({column:t,colSpan:e,row:n,rowIdx:r,onRowChange:i,closeEditor:o,onKeyDown:u,navigate:l}){var O,_,P;const d=T.useRef(void 0),h=((O=t.editorOptions)==null?void 0:O.commitOnOutsideClick)!==!1,g=io(()=>{b(!0,!1)});T.useEffect(()=>{if(!h)return;function k(){d.current=requestAnimationFrame(g)}return addEventListener("mousedown",k,{capture:!0}),()=>{removeEventListener("mousedown",k,{capture:!0}),y()}},[h,g]);function y(){cancelAnimationFrame(d.current)}function w(k){if(u){const R=p1(k);if(u({mode:"EDIT",row:n,column:t,rowIdx:r,navigate(){l(k)},onClose:b},R),R.isGridDefaultPrevented())return}k.key==="Escape"?b():k.key==="Enter"?b(!0):Mae(k)&&l(k)}function b(k=!1,R=!0){k?i(n,!0,R):o(R)}function C(k,R=!1){i(k,R,R)}const{cellClass:E}=t,$=Eb(t,"rdg-editor-container",!((_=t.editorOptions)!=null&&_.displayCellContent)&&Eoe,typeof E=="function"?E(n):E);return N.jsx("div",{role:"gridcell","aria-colindex":t.idx+1,"aria-colspan":e,"aria-selected":!0,className:$,style:Fy(t,e),onKeyDown:w,onMouseDownCapture:y,children:t.renderEditCell!=null&&N.jsxs(N.Fragment,{children:[t.renderEditCell({column:t,row:n,rowIdx:r,onRowChange:C,onClose:b}),((P=t.editorOptions)==null?void 0:P.displayCellContent)&&t.renderCell({column:t,row:n,rowIdx:r,isCellEditable:!0,tabIndex:-1,onRowChange:C})]})})}function Ooe({column:t,rowIdx:e,isCellSelected:n,selectCell:r}){const{tabIndex:i,onFocus:o}=xb(n),{colSpan:u}=t,l=VM(t,e),d=t.idx+1;function h(){r({idx:t.idx,rowIdx:e})}return N.jsx("div",{role:"columnheader","aria-colindex":d,"aria-colspan":u,"aria-rowspan":l,"aria-selected":n,tabIndex:i,className:Dl(qM,t.headerCellClass),style:{...HM(t,e,l),gridColumnStart:d,gridColumnEnd:d+u},onFocus:o,onClick:h,children:t.name})}const Toe="c6l2wv17-0-0-beta-51",_oe="c1kqdw7y7-0-0-beta-51",Aoe=`rdg-cell-resizable ${_oe}`,Roe="r1y6ywlx7-0-0-beta-51",Poe="rdg-cell-draggable",Ioe="c1bezg5o7-0-0-beta-51",Noe=`rdg-cell-dragging ${Ioe}`,Moe="c1vc96037-0-0-beta-51",koe=`rdg-cell-drag-over ${Moe}`;function Doe({column:t,colSpan:e,rowIdx:n,isCellSelected:r,onColumnResize:i,onColumnsReorder:o,sortColumns:u,onSortColumnsChange:l,selectCell:d,shouldFocusGrid:h,direction:g,dragDropKey:y}){const w=T.useRef(!1),[b,C]=T.useState(!1),[E,$]=T.useState(!1),O=g==="rtl",_=VM(t,n),{tabIndex:P,childTabIndex:k,onFocus:R}=xb(r),L=u==null?void 0:u.findIndex(ke=>ke.columnKey===t.key),F=L!==void 0&&L>-1?u[L]:void 0,q=F==null?void 0:F.direction,Y=F!==void 0&&u.length>1?L+1:void 0,Q=q&&!Y?q==="ASC"?"ascending":"descending":void 0,{sortable:ue,resizable:me,draggable:te}=t,be=Eb(t,t.headerCellClass,{[Toe]:ue,[Aoe]:me,[Poe]:te,[Noe]:b,[koe]:E});function Se(ke){if(ke.pointerType==="mouse"&&ke.buttons!==1)return;ke.preventDefault();const{currentTarget:Ke,pointerId:He}=ke,ut=Ke.parentElement,{right:pt,left:bt}=ut.getBoundingClientRect(),gt=O?ke.clientX-bt:pt-ke.clientX;w.current=!1;function Ut(Tt){const{width:en,right:xn,left:Dt}=ut.getBoundingClientRect();let Pt=O?xn+gt-Tt.clientX:Tt.clientX+gt-Dt;Pt=zM(Pt,t),en>0&&Pt!==en&&i(t,Pt)}function Gt(Tt){w.current||Ut(Tt),Ke.removeEventListener("pointermove",Ut),Ke.removeEventListener("lostpointercapture",Gt)}Ke.setPointerCapture(He),Ke.addEventListener("pointermove",Ut),Ke.addEventListener("lostpointercapture",Gt)}function j(){w.current=!0,i(t,"max-content")}function V(ke){if(l==null)return;const{sortDescendingFirst:Ke}=t;if(F===void 0){const He={columnKey:t.key,direction:Ke?"DESC":"ASC"};l(u&&ke?[...u,He]:[He])}else{let He;if((Ke===!0&&q==="DESC"||Ke!==!0&&q==="ASC")&&(He={columnKey:t.key,direction:q==="ASC"?"DESC":"ASC"}),ke){const ut=[...u];He?ut[L]=He:ut.splice(L,1),l(ut)}else l(He?[He]:[])}}function H(ke){d({idx:t.idx,rowIdx:n}),ue&&V(ke.ctrlKey||ke.metaKey)}function ie(ke){R==null||R(ke),h&&d({idx:0,rowIdx:n})}function G(ke){(ke.key===" "||ke.key==="Enter")&&(ke.preventDefault(),V(ke.ctrlKey||ke.metaKey))}function X(ke){ke.dataTransfer.setData(y,t.key),ke.dataTransfer.dropEffect="move",C(!0)}function fe(){C(!1)}function $e(ke){ke.preventDefault(),ke.dataTransfer.dropEffect="move"}function Ce(ke){if($(!1),ke.dataTransfer.types.includes(y.toLowerCase())){const Ke=ke.dataTransfer.getData(y.toLowerCase());Ke!==t.key&&(ke.preventDefault(),o==null||o(Ke,t.key))}}function je(ke){o5(ke)&&$(!0)}function Pe(ke){o5(ke)&&$(!1)}let tt;return te&&(tt={draggable:!0,onDragStart:X,onDragEnd:fe,onDragOver:$e,onDragEnter:je,onDragLeave:Pe,onDrop:Ce}),N.jsxs("div",{role:"columnheader","aria-colindex":t.idx+1,"aria-colspan":e,"aria-rowspan":_,"aria-selected":r,"aria-sort":Q,tabIndex:h?0:P,className:be,style:{...HM(t,n,_),...Fy(t,e)},onFocus:ie,onClick:H,onKeyDown:ue?G:void 0,...tt,children:[t.renderHeaderCell({column:t,sortDirection:q,priority:Y,tabIndex:k}),me&&N.jsx("div",{className:Roe,onClick:Pae,onPointerDown:Se,onDoubleClick:j})]})}function o5(t){const e=t.relatedTarget;return!t.currentTarget.contains(e)}const Foe="r1upfr807-0-0-beta-51",JT=`rdg-row ${Foe}`,Loe="r190mhd37-0-0-beta-51",E3="rdg-row-selected",Uoe="r139qu9m7-0-0-beta-51",Boe="rdg-top-summary-row",joe="rdg-bottom-summary-row",qoe="h10tskcx7-0-0-beta-51",XM=`rdg-header-row ${qoe}`;function Hoe({rowIdx:t,columns:e,onColumnResize:n,onColumnsReorder:r,sortColumns:i,onSortColumnsChange:o,lastFrozenColumnIndex:u,selectedCellIdx:l,selectCell:d,shouldFocusGrid:h,direction:g}){const y=T.useId(),w=[];for(let b=0;be&&d.parent!==void 0;)d=d.parent;if(d.level===e&&!u.has(d)){u.add(d);const{idx:h}=d;o.push(N.jsx(Ooe,{column:d,rowIdx:t,isCellSelected:r===h,selectCell:i},h))}}}return N.jsx("div",{role:"row","aria-rowindex":t,className:XM,children:o})}var Goe=T.memo(Voe);function Woe({className:t,rowIdx:e,gridRowStart:n,selectedCellIdx:r,isRowSelectionDisabled:i,isRowSelected:o,copiedCellIdx:u,draggedOverCellIdx:l,lastFrozenColumnIndex:d,row:h,viewportColumns:g,selectedCellEditor:y,onCellClick:w,onCellDoubleClick:b,onCellContextMenu:C,rowClass:E,setDraggedOverRowIdx:$,onMouseEnter:O,onRowChange:_,selectCell:P,...k}){const R=$3().renderCell,L=io((Q,ue)=>{_(Q,e,ue)});function F(Q){$==null||$(e),O==null||O(Q)}t=Dl(JT,`rdg-row-${e%2===0?"even":"odd"}`,{[E3]:r===-1},E==null?void 0:E(h,e),t);const q=[];for(let Q=0;Q({isRowSelected:o,isRowSelectionDisabled:i}),[i,o]);return N.jsx(YT,{value:Y,children:N.jsx("div",{role:"row",className:t,onMouseEnter:F,style:WT(n),...k,children:q})})}const Koe=T.memo(Woe);function Yoe(t,e){return N.jsx(Koe,{...e},t)}function Joe({scrollToPosition:{idx:t,rowIdx:e},gridRef:n,setScrollToCellPosition:r}){const i=T.useRef(null);return T.useLayoutEffect(()=>{iS(i.current)}),T.useLayoutEffect(()=>{function o(){r(null)}const u=new IntersectionObserver(o,{root:n.current,threshold:1});return u.observe(i.current),()=>{u.disconnect()}},[n,r]),N.jsx("div",{ref:i,style:{gridColumn:t===void 0?"1/-1":t+1,gridRow:e===void 0?"1/-1":e+2}})}const Qoe="a3ejtar7-0-0-beta-51",Xoe=`rdg-sort-arrow ${Qoe}`;function Zoe({sortDirection:t,priority:e}){return N.jsxs(N.Fragment,{children:[ese({sortDirection:t}),tse({priority:e})]})}function ese({sortDirection:t}){return t===void 0?null:N.jsx("svg",{viewBox:"0 0 12 8",width:"12",height:"8",className:Xoe,"aria-hidden":!0,children:N.jsx("path",{d:t==="ASC"?"M0 8 6 0 12 8":"M0 0 6 8 12 0"})})}function tse({priority:t}){return t}const nse="rnvodz57-0-0-beta-51",rse=`rdg ${nse}`,ise="vlqv91k7-0-0-beta-51",ase=`rdg-viewport-dragging ${ise}`,ose="f1lsfrzw7-0-0-beta-51",sse="f1cte0lg7-0-0-beta-51",use="s8wc6fl7-0-0-beta-51";function lse({column:t,colSpan:e,row:n,rowIdx:r,isCellSelected:i,selectCell:o}){var w;const{tabIndex:u,childTabIndex:l,onFocus:d}=xb(i),{summaryCellClass:h}=t,g=Eb(t,use,typeof h=="function"?h(n):h);function y(){o({rowIdx:r,idx:t.idx})}return N.jsx("div",{role:"gridcell","aria-colindex":t.idx+1,"aria-colspan":e,"aria-selected":i,tabIndex:u,className:g,style:Fy(t,e),onClick:y,onFocus:d,children:(w=t.renderSummaryCell)==null?void 0:w.call(t,{column:t,row:n,tabIndex:l})})}var cse=T.memo(lse);const fse="skuhp557-0-0-beta-51",dse="tf8l5ub7-0-0-beta-51",hse=`rdg-summary-row ${fse}`;function pse({rowIdx:t,gridRowStart:e,row:n,viewportColumns:r,top:i,bottom:o,lastFrozenColumnIndex:u,selectedCellIdx:l,isTop:d,selectCell:h,"aria-rowindex":g}){const y=[];for(let w=0;wnew Map),[Ge,Je]=T.useState(()=>new Map),[ht,B]=T.useState(null),[A,M]=T.useState(!1),[J,re]=T.useState(void 0),[ge,Ee]=T.useState(null),[rt,Wt]=T.useState(!1),[ae,ce]=T.useState(-1),nt=T.useCallback(De=>pe.get(De.key)??Ge.get(De.key)??De.width,[Ge,pe]),[Ht,ln,wt,jr]=coe(),{columns:tn,colSpanColumns:nr,lastFrozenColumnIndex:On,headerRowsCount:ji,colOverscanStartIdx:ga,colOverscanEndIdx:Pr,templateColumns:Bs,layoutCssVars:co,totalFrozenColumnWidth:js}=uoe({rawColumns:n,defaultColumnOptions:$,getColumnWidth:nt,scrollLeft:Dt,viewportWidth:ln,enableVirtualization:Gt}),Oi=(i==null?void 0:i.length)??0,Zr=(o==null?void 0:o.length)??0,fo=Oi+Zr,qi=ji+Oi,Qo=ji-1,In=-qi,Mn=In+Qo,An=r.length+Zr-1,[Ze,Ti]=T.useState(()=>({idx:-1,rowIdx:In-1,mode:"SELECT"})),qs=T.useRef(J),Xo=T.useRef(null),ho=tt==="treegrid",qr=ji*Ke,ka=fo*He,_i=wt-qr-ka,Hi=y!=null&&b!=null,Da=Tt==="rtl",Hs=Da?"ArrowRight":"ArrowLeft",kn=Da?"ArrowLeft":"ArrowRight",ld=$e??ji+r.length+fo,Am=T.useMemo(()=>({renderCheckbox:gt,renderSortStatus:bt,renderCell:pt}),[gt,bt,pt]),Zo=T.useMemo(()=>{let De=!1,qe=!1;if(u!=null&&y!=null&&y.size>0){for(const We of r)if(y.has(u(We))?De=!0:qe=!0,De&&qe)break}return{isRowSelected:De&&!qe,isIndeterminate:De&&qe}},[r,y,u]),{rowOverscanStartIdx:zi,rowOverscanEndIdx:Hr,totalRowHeight:Wl,gridTemplateRows:Rm,getRowTop:cd,getRowHeight:jy,findRowIdx:Fu}=doe({rows:r,rowHeight:ke,clientHeight:_i,scrollTop:en,enableVirtualization:Gt}),Ai=foe({columns:tn,colSpanColumns:nr,colOverscanStartIdx:ga,colOverscanEndIdx:Pr,lastFrozenColumnIndex:On,rowOverscanStartIdx:zi,rowOverscanEndIdx:Hr,rows:r,topSummaryRows:i,bottomSummaryRows:o}),{gridTemplateColumns:ya,handleColumnResize:ei}=loe(tn,Ai,Bs,Ht,ln,pe,Ge,ze,Je,F),Kl=ho?-1:0,zs=tn.length-1,po=rs(Ze),mo=Fa(Ze),Lu=Ke+Wl+ka+jr,qy=io(ei),ti=io(q),Yl=io(E),Jl=io(O),fd=io(_),es=io(P),Ql=io(Pm),Xl=io(dd),Vi=io(Gs),Zl=io(go),ec=io(({idx:De,rowIdx:qe})=>{go({rowIdx:In+qe-1,idx:De})}),tc=T.useCallback(De=>{re(De),qs.current=De},[]),Vs=T.useCallback(()=>{const De=u5(Ht.current);if(De===null)return;iS(De),(De.querySelector('[tabindex="0"]')??De).focus({preventScroll:!0})},[Ht]);T.useLayoutEffect(()=>{Xo.current!==null&&po&&Ze.idx===-1&&(Xo.current.focus({preventScroll:!0}),iS(Xo.current))},[po,Ze]),T.useLayoutEffect(()=>{rt&&(Wt(!1),Vs())},[rt,Vs]),T.useImperativeHandle(e,()=>({element:Ht.current,scrollToCell({idx:De,rowIdx:qe}){const We=De!==void 0&&De>On&&De{xn(qe),Pt(Vae(We))}),L==null||L(De)}function Gs(De,qe,We){if(typeof l!="function"||We===r[qe])return;const it=[...r];it[qe]=We,l(it,{indexes:[qe],column:De})}function ts(){Ze.mode==="EDIT"&&Gs(tn[Ze.idx],Ze.rowIdx,Ze.row)}function ns(){const{idx:De,rowIdx:qe}=Ze,We=r[qe],it=tn[De].key;B({row:We,columnKey:it}),Q==null||Q({sourceRow:We,sourceColumnKey:it})}function Im(){if(!ue||!l||ht===null||!Ws(Ze))return;const{idx:De,rowIdx:qe}=Ze,We=tn[De],it=r[qe],_t=ue({sourceRow:ht.row,sourceColumnKey:ht.columnKey,targetRow:it,targetColumnKey:We.key});Gs(We,qe,_t)}function pd(De){if(!mo)return;const qe=r[Ze.rowIdx],{key:We,shiftKey:it}=De;if(Hi&&it&&We===" "){ME(u);const _t=u(qe);dd({row:qe,checked:!y.has(_t),isShiftClick:!1}),De.preventDefault();return}Ws(Ze)&&Nae(De)&&Ti(({idx:_t,rowIdx:cn})=>({idx:_t,rowIdx:cn,mode:"EDIT",row:qe,originalRow:qe}))}function md(De){return De>=Kl&&De<=zs}function Gi(De){return De>=0&&De=In&&qe<=An&&md(De)}function Bu({idx:De,rowIdx:qe}){return Gi(qe)&&De>=0&&De<=zs}function Fa({idx:De,rowIdx:qe}){return Gi(qe)&&md(De)}function Ws(De){return Bu(De)&&Fae({columns:tn,rows:r,selectedPosition:De})}function go(De,qe){if(!rs(De))return;ts();const We=l5(Ze,De);if(qe&&Ws(De)){const it=r[De.rowIdx];Ti({...De,mode:"EDIT",row:it,originalRow:it})}else We?iS(u5(Ht.current)):(Wt(!0),Ti({...De,mode:"SELECT"}));R&&!We&&R({rowIdx:De.rowIdx,row:Gi(De.rowIdx)?r[De.rowIdx]:void 0,column:tn[De.idx]})}function Nm(De,qe,We){const{idx:it,rowIdx:_t}=Ze,cn=po&&it===-1;switch(De){case"ArrowUp":return{idx:it,rowIdx:_t-1};case"ArrowDown":return{idx:it,rowIdx:_t+1};case Hs:return{idx:it-1,rowIdx:_t};case kn:return{idx:it+1,rowIdx:_t};case"Tab":return{idx:it+(We?-1:1),rowIdx:_t};case"Home":return cn?{idx:it,rowIdx:In}:{idx:0,rowIdx:qe?In:_t};case"End":return cn?{idx:it,rowIdx:An}:{idx:zs,rowIdx:qe?An:_t};case"PageUp":{if(Ze.rowIdx===In)return Ze;const Rn=cd(_t)+jy(_t)-_i;return{idx:it,rowIdx:Rn>0?Fu(Rn):0}}case"PageDown":{if(Ze.rowIdx>=r.length)return Ze;const Rn=cd(_t)+_i;return{idx:it,rowIdx:RnDe&&De>=J)?Ze.idx:void 0}function Mm(){if(Y==null||Ze.mode==="EDIT"||!Fa(Ze))return;const{idx:De,rowIdx:qe}=Ze,We=tn[De];if(We.renderEditCell==null||We.editable===!1)return;const it=nt(We);return N.jsx($oe,{gridRowStart:qi+qe+1,rows:r,column:We,columnWidth:it,maxColIdx:zs,isLastRow:qe===An,selectedPosition:Ze,isCellEditable:Ws,latestDraggedOverRowIdx:qs,onRowsChange:l,onClick:Vs,onFill:Y,setDragging:M,setDraggedOverRowIdx:tc})}function zr(De){if(Ze.rowIdx!==De||Ze.mode==="SELECT")return;const{idx:qe,row:We}=Ze,it=tn[qe],_t=Vo(it,On,{type:"ROW",row:We}),cn=nn=>{Wt(nn),Ti(({idx:mr,rowIdx:Ir})=>({idx:mr,rowIdx:Ir,mode:"SELECT"}))},Rn=(nn,mr,Ir)=>{mr?_u.flushSync(()=>{Gs(it,Ze.rowIdx,nn),cn(Ir)}):Ti(is=>({...is,row:nn}))};return r[Ze.rowIdx]!==Ze.originalRow&&cn(!1),N.jsx(xoe,{column:it,colSpan:_t,row:We,rowIdx:De,onRowChange:Rn,closeEditor:cn,onKeyDown:k,navigate:on},it.key)}function Wi(De){const qe=Ze.idx===-1?void 0:tn[Ze.idx];return qe!==void 0&&Ze.rowIdx===De&&!Ai.includes(qe)?Ze.idx>Pr?[...Ai,qe]:[...Ai.slice(0,On+1),qe,...Ai.slice(On+1)]:Ai}function nc(){const De=[],{idx:qe,rowIdx:We}=Ze,it=mo&&WeHr?Hr+1:Hr;for(let cn=it;cn<=_t;cn++){const Rn=cn===zi-1||cn===Hr+1,nn=Rn?We:cn;let mr=Ai;const Ir=qe===-1?void 0:tn[qe];Ir!==void 0&&(Rn?mr=[Ir]:mr=Wi(nn));const is=r[nn],km=qi+nn+1;let rc=nn,ic=!1;typeof u=="function"&&(rc=u(is),ic=(y==null?void 0:y.has(rc))??!1),De.push(ut(rc,{"aria-rowindex":qi+nn+1,"aria-selected":Hi?ic:void 0,rowIdx:nn,row:is,viewportColumns:mr,isRowSelectionDisabled:(w==null?void 0:w(is))??!1,isRowSelected:ic,onCellClick:Jl,onCellDoubleClick:fd,onCellContextMenu:es,rowClass:j,gridRowStart:km,copiedCellIdx:ht!==null&&ht.row===is?tn.findIndex(Vr=>Vr.key===ht.columnKey):void 0,selectedCellIdx:We===nn?qe:void 0,draggedOverCellIdx:sn(nn),setDraggedOverRowIdx:A?tc:void 0,lastFrozenColumnIndex:On,onRowChange:Vi,selectCell:Zl,selectedCellEditor:zr(nn)}))}return De}(Ze.idx>zs||Ze.rowIdx>An)&&(Ti({idx:-1,rowIdx:In-1,mode:"SELECT"}),tc(void 0));let yo=`repeat(${ji}, ${Ke}px)`;Oi>0&&(yo+=` repeat(${Oi}, ${He}px)`),r.length>0&&(yo+=Rm),Zr>0&&(yo+=` repeat(${Zr}, ${He}px)`);const gd=Ze.idx===-1&&Ze.rowIdx!==In-1;return N.jsxs("div",{role:tt,"aria-label":ie,"aria-labelledby":G,"aria-description":X,"aria-describedby":fe,"aria-multiselectable":Hi?!0:void 0,"aria-colcount":tn.length,"aria-rowcount":ld,className:Dl(rse,{[ase]:A},be),style:{...Se,scrollPaddingInlineStart:Ze.idx>On||(ge==null?void 0:ge.idx)!==void 0?`${js}px`:void 0,scrollPaddingBlock:Gi(Ze.rowIdx)||(ge==null?void 0:ge.rowIdx)!==void 0?`${qr+Oi*He}px ${Zr*He}px`:void 0,gridTemplateColumns:ya,gridTemplateRows:yo,"--rdg-header-row-height":`${Ke}px`,"--rdg-scroll-height":`${Lu}px`,...co},dir:Tt,ref:Ht,onScroll:hd,onKeyDown:Uu,"data-testid":Ce,"data-cy":je,children:[N.jsxs(GM,{value:Am,children:[N.jsx(JM,{value:Ql,children:N.jsxs(YM,{value:Zo,children:[Array.from({length:Qo},(De,qe)=>N.jsx(Goe,{rowIdx:qe+1,level:-Qo+qe,columns:Wi(In+qe),selectedCellIdx:Ze.rowIdx===In+qe?Ze.idx:void 0,selectCell:ec},qe)),N.jsx(zoe,{rowIdx:ji,columns:Wi(Mn),onColumnResize:qy,onColumnsReorder:ti,sortColumns:C,onSortColumnsChange:Yl,lastFrozenColumnIndex:On,selectedCellIdx:Ze.rowIdx===Mn?Ze.idx:void 0,selectCell:ec,shouldFocusGrid:!po,direction:Tt})]})}),r.length===0&&Ut?Ut:N.jsxs(N.Fragment,{children:[i==null?void 0:i.map((De,qe)=>{const We=ji+1+qe,it=Mn+1+qe,_t=Ze.rowIdx===it,cn=qr+He*qe;return N.jsx(s5,{"aria-rowindex":We,rowIdx:it,gridRowStart:We,row:De,top:cn,bottom:void 0,viewportColumns:Wi(it),lastFrozenColumnIndex:On,selectedCellIdx:_t?Ze.idx:void 0,isTop:!0,selectCell:Zl},qe)}),N.jsx(WM,{value:Xl,children:nc()}),o==null?void 0:o.map((De,qe)=>{const We=qi+r.length+qe+1,it=r.length+qe,_t=Ze.rowIdx===it,cn=_i>Wl?wt-He*(o.length-qe):void 0,Rn=cn===void 0?He*(o.length-1-qe):void 0;return N.jsx(s5,{"aria-rowindex":ld-Zr+qe+1,rowIdx:it,gridRowStart:We,row:De,top:cn,bottom:Rn,viewportColumns:Wi(it),lastFrozenColumnIndex:On,selectedCellIdx:_t?Ze.idx:void 0,isTop:!1,selectCell:Zl},qe)})]})]}),Mm(),Dae(Ai),ho&&N.jsx("div",{ref:Xo,tabIndex:gd?0:-1,className:Dl(ose,{[sse]:!Gi(Ze.rowIdx),[Loe]:gd,[Uoe]:gd&&On!==-1}),style:{gridRowStart:Ze.rowIdx+qi+1}}),ge!==null&&N.jsx(Joe,{scrollToPosition:ge,setScrollToCellPosition:Ee,gridRef:Ht})]})}function u5(t){return t.querySelector(':scope > [role="row"] > [tabindex="0"]')}function l5(t,e){return t.idx===e.idx&&t.rowIdx===e.rowIdx}function gse({id:t,groupKey:e,childRows:n,isExpanded:r,isCellSelected:i,column:o,row:u,groupColumnIndex:l,isGroupByColumn:d,toggleGroup:h}){var E;const{tabIndex:g,childTabIndex:y,onFocus:w}=xb(i);function b(){h(t)}const C=d&&l===o.idx;return N.jsx("div",{role:"gridcell","aria-colindex":o.idx+1,"aria-selected":i,tabIndex:g,className:Eb(o),style:{...Fy(o),cursor:C?"pointer":"default"},onClick:C?b:void 0,onFocus:w,children:(!d||C)&&((E=o.renderGroupCell)==null?void 0:E.call(o,{groupKey:e,childRows:n,column:o,row:u,isExpanded:r,tabIndex:y,toggleGroup:b}))},o.key)}var yse=T.memo(gse);const vse="g1yxluv37-0-0-beta-51",bse=`rdg-group-row ${vse}`;function wse({className:t,row:e,rowIdx:n,viewportColumns:r,selectedCellIdx:i,isRowSelected:o,selectCell:u,gridRowStart:l,groupBy:d,toggleGroup:h,isRowSelectionDisabled:g,...y}){const w=r[0].key===qS?e.level+1:e.level;function b(){u({rowIdx:n,idx:-1})}const C=T.useMemo(()=>({isRowSelectionDisabled:!1,isRowSelected:o}),[o]);return N.jsx(YT,{value:C,children:N.jsx("div",{role:"row","aria-level":e.level+1,"aria-setsize":e.setSize,"aria-posinset":e.posInSet+1,"aria-expanded":e.isExpanded,className:Dl(JT,bse,`rdg-row-${n%2===0?"even":"odd"}`,i===-1&&E3,t),onClick:b,style:WT(l),...y,children:r.map(E=>N.jsx(yse,{id:e.id,groupKey:e.groupKey,childRows:e.childRows,isExpanded:e.isExpanded,isCellSelected:i===E.idx,column:E,row:e,groupColumnIndex:w,toggleGroup:h,isGroupByColumn:d.includes(E.key)},E.key))})})}T.memo(wse);const Sse=Ae.createContext({sidebarVisible:!1,threshold:"desktop",routers:[{id:"url-router"}],toggleSidebar(){},setSidebarRef(t){},persistSidebarSize(t){},setFocusedRouter(t){},closeCurrentRouter(){},sidebarItemSelected(){},collapseLeftPanel(){},addRouter(){},updateSidebarSize(){},hide(){},show(){}});function Cse(){return T.useContext(Sse)}const $se=({value:t})=>{const{addRouter:e}=Cse(),n=r=>{r.stopPropagation(),e(t)};return N.jsx("div",{className:"table-btn table-open-in-new-router",onClick:n,children:N.jsx(Ese,{})})},Ese=({size:t=16,color:e="silver",style:n={}})=>N.jsx("svg",{width:t,height:t,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",style:{cursor:"pointer",...n},children:N.jsx("path",{d:"M9 3H5C3.895 3 3 3.895 3 5v14c0 1.105.895 2 2 2h14c1.105 0 2-.895 2-2v-4h-2v4H5V5h4V3ZM21 3h-6v2h3.586l-9.293 9.293 1.414 1.414L20 6.414V10h2V3Z",fill:e})});/** * @license lucide-react v0.484.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. - */const Xoe=t=>t.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),Zoe=t=>t.replace(/^([A-Z])|[\s-_]+(\w)/g,(e,n,r)=>r?r.toUpperCase():n.toLowerCase()),DP=t=>{const e=Zoe(t);return e.charAt(0).toUpperCase()+e.slice(1)},xM=(...t)=>t.filter((e,n,r)=>!!e&&e.trim()!==""&&r.indexOf(e)===n).join(" ").trim();/** + */const xse=t=>t.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),Ose=t=>t.replace(/^([A-Z])|[\s-_]+(\w)/g,(e,n,r)=>r?r.toUpperCase():n.toLowerCase()),c5=t=>{const e=Ose(t);return e.charAt(0).toUpperCase()+e.slice(1)},ZM=(...t)=>t.filter((e,n,r)=>!!e&&e.trim()!==""&&r.indexOf(e)===n).join(" ").trim();/** * @license lucide-react v0.484.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. - */var ese={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};/** + */var Tse={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};/** * @license lucide-react v0.484.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. - */const tse=T.forwardRef(({color:t="currentColor",size:e=24,strokeWidth:n=2,absoluteStrokeWidth:r,className:i="",children:o,iconNode:u,...l},d)=>T.createElement("svg",{ref:d,...ese,width:e,height:e,stroke:t,strokeWidth:r?Number(n)*24/Number(e):n,className:xM("lucide",i),...l},[...u.map(([h,g])=>T.createElement(h,g)),...Array.isArray(o)?o:[o]]));/** + */const _se=T.forwardRef(({color:t="currentColor",size:e=24,strokeWidth:n=2,absoluteStrokeWidth:r,className:i="",children:o,iconNode:u,...l},d)=>T.createElement("svg",{ref:d,...Tse,width:e,height:e,stroke:t,strokeWidth:r?Number(n)*24/Number(e):n,className:ZM("lucide",i),...l},[...u.map(([h,g])=>T.createElement(h,g)),...Array.isArray(o)?o:[o]]));/** * @license lucide-react v0.484.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. - */const $T=(t,e)=>{const n=T.forwardRef(({className:r,...i},o)=>T.createElement(tse,{ref:o,iconNode:e,className:xM(`lucide-${Xoe(DP(t))}`,`lucide-${t}`,r),...i}));return n.displayName=DP(t),n};/** + */const QT=(t,e)=>{const n=T.forwardRef(({className:r,...i},o)=>T.createElement(_se,{ref:o,iconNode:e,className:ZM(`lucide-${xse(c5(t))}`,`lucide-${t}`,r),...i}));return n.displayName=c5(t),n};/** * @license lucide-react v0.484.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. - */const nse=[["path",{d:"m3 16 4 4 4-4",key:"1co6wj"}],["path",{d:"M7 20V4",key:"1yoxec"}],["path",{d:"M20 8h-5",key:"1vsyxs"}],["path",{d:"M15 10V6.5a2.5 2.5 0 0 1 5 0V10",key:"ag13bf"}],["path",{d:"M15 14h5l-5 6h5",key:"ur5jdg"}]],rse=$T("arrow-down-a-z",nse);/** + */const Ase=[["path",{d:"m3 16 4 4 4-4",key:"1co6wj"}],["path",{d:"M7 20V4",key:"1yoxec"}],["path",{d:"M20 8h-5",key:"1vsyxs"}],["path",{d:"M15 10V6.5a2.5 2.5 0 0 1 5 0V10",key:"ag13bf"}],["path",{d:"M15 14h5l-5 6h5",key:"ur5jdg"}]],Rse=QT("arrow-down-a-z",Ase);/** * @license lucide-react v0.484.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. - */const ise=[["path",{d:"m3 16 4 4 4-4",key:"1co6wj"}],["path",{d:"M7 20V4",key:"1yoxec"}],["path",{d:"M11 4h10",key:"1w87gc"}],["path",{d:"M11 8h7",key:"djye34"}],["path",{d:"M11 12h4",key:"q8tih4"}]],ase=$T("arrow-down-wide-narrow",ise);/** + */const Pse=[["path",{d:"m3 16 4 4 4-4",key:"1co6wj"}],["path",{d:"M7 20V4",key:"1yoxec"}],["path",{d:"M11 4h10",key:"1w87gc"}],["path",{d:"M11 8h7",key:"djye34"}],["path",{d:"M11 12h4",key:"q8tih4"}]],Ise=QT("arrow-down-wide-narrow",Pse);/** * @license lucide-react v0.484.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. - */const ose=[["path",{d:"m3 16 4 4 4-4",key:"1co6wj"}],["path",{d:"M7 4v16",key:"1glfcx"}],["path",{d:"M15 4h5l-5 6h5",key:"8asdl1"}],["path",{d:"M15 20v-3.5a2.5 2.5 0 0 1 5 0V20",key:"r6l5cz"}],["path",{d:"M20 18h-5",key:"18j1r2"}]],sse=$T("arrow-down-z-a",ose);function use({tabIndex:t,column:e,filterType:n,sortable:r,filterable:i,selectable:o,udf:u}){var w;const l=(w=u.filters.sorting)==null?void 0:w.find(v=>v.columnName===e.key),[d,h]=T.useState("");T.useEffect(()=>{d!==Sr.get(u.filters,e.key)&&h(Sr.get(u.filters,e.key))},[u.filters]);let g;(l==null?void 0:l.columnName)===e.key&&(l==null?void 0:l.direction)=="asc"&&(g="asc"),(l==null?void 0:l.columnName)===e.key&&(l==null?void 0:l.direction)=="desc"&&(g="desc");const y=()=>{l?((l==null?void 0:l.direction)==="desc"&&u.setSorting(u.filters.sorting.filter(v=>v.columnName!==e.key)),(l==null?void 0:l.direction)==="asc"&&u.setSorting(u.filters.sorting.map(v=>v.columnName===e.key?{...v,direction:"desc"}:v))):u.setSorting([...u.filters.sorting,{columnName:e.key.toString(),direction:"asc"}])};return N.jsxs(N.Fragment,{children:[r?N.jsx("span",{className:"data-table-sort-actions",children:N.jsxs("button",{className:`active-sort-col ${e.key==(l==null?void 0:l.columnName)?"active":""}`,onClick:y,children:[g=="asc"?N.jsx(rse,{className:"sort-icon"}):null,g=="desc"?N.jsx(sse,{className:"sort-icon"}):null,g===void 0?N.jsx(ase,{className:"sort-icon"}):null]})}):null,i?N.jsx(N.Fragment,{children:n==="date"?N.jsx("input",{className:"data-table-filter-input",tabIndex:t,value:d,onChange:v=>{h(v.target.value),u.setFilter({[e.key]:v.target.value})},placeholder:e.name||"",type:"date"}):N.jsx("input",{className:"data-table-filter-input",tabIndex:t,value:d,onChange:v=>{h(v.target.value),u.setFilter({[e.key]:v.target.value})},placeholder:e.name||""})}):N.jsx("span",{children:e.name})]})}function lse(t,e){const n=t.split("/").filter(Boolean);return e.split("/").forEach(i=>{i===".."?n.pop():i!=="."&&i!==""&&n.push(i)}),"/"+n.join("/")}const cse=(t,e,n,r=[],i,o)=>t.map(u=>{const l=r.find(d=>d.columnName===u.name);return{...u,key:u.name,renderCell:({column:d,row:h})=>{if(d.key==="uniqueId"){let g=i?i(h.uniqueId):"";return g.startsWith(".")&&(g=lse(o,g)),N.jsxs("div",{style:{position:"relative"},children:[N.jsx(MS,{href:i&&i(h.uniqueId),children:h.uniqueId}),N.jsxs("div",{className:"cell-actions",children:[N.jsx(W7,{value:h.uniqueId}),N.jsx(Joe,{value:g})]})]})}return d.getCellValue?N.jsx(N.Fragment,{children:d.getCellValue(h)}):N.jsx("span",{children:Sr.get(h,d.key)})},width:l?l.width:u.width,name:u.title,resizable:!0,sortable:u.sortable,renderHeaderCell:d=>N.jsx(use,{...d,selectable:!0,sortable:u.sortable,filterable:u.filterable,filterType:u.filterType,udf:n})}});function fse(t){const e=T.useRef();let[n,r]=T.useState([]);const i=T.useRef({});return{reindex:(u,l,d)=>{if(l===e.current){const h=u.filter(g=>i.current[g.uniqueId]?!1:(i.current[g.uniqueId]=!0,!0));r([...n,...h].filter(Boolean))}else r([...u].filter(Boolean)),d==null||d();e.current=l},indexedData:n}}function dse({columns:t,query:e,columnSizes:n,onColumnWidthsChange:r,udf:i,tableClass:o,uniqueIdHrefHandler:u}){var P,L;yn();const{pathname:l}=Ll(),{filters:d,setSorting:h,setStartIndex:g,selection:y,setSelection:w,setPageSize:v,onFiltersChange:C}=i,E=T.useMemo(()=>[Tae,...cse(t,(F,q)=>{i.setFilter({[F]:q})},i,n,u,l)],[t,n]),{indexedData:$,reindex:O}=fse(),_=T.useRef();T.useEffect(()=>{var q,Y;const F=((Y=(q=e.data)==null?void 0:q.data)==null?void 0:Y.items)||[];O(F,i.queryHash,()=>{_.current.element.scrollTo({top:0,left:0})})},[(L=(P=e.data)==null?void 0:P.data)==null?void 0:L.items]);async function R(F){e.isLoading||!hse(F)||g($.length)}const k=Sr.debounce((F,q)=>{const Y=E.map(X=>({columnName:X.key,width:X.name===F.name?q:X.width}));r(Y)},300);return N.jsx(N.Fragment,{children:N.jsx(qoe,{className:o,columns:E,onScroll:R,onColumnResize:k,onSelectedRowsChange:F=>{w(Array.from(F))},selectedRows:new Set(y),ref:_,rows:$,rowKeyGetter:F=>F.uniqueId,style:{height:"calc(100% - 2px)",margin:"1px -14px"}})})}function hse({currentTarget:t}){return t.scrollTop+300>=t.scrollHeight-t.clientHeight}function pse(t){const e={};for(let n of t||[])n&&n.columnName&&Sr.set(e,n.columnName,{operation:n.operation,value:n.value});return e}let zo;typeof window<"u"?zo=window:typeof self<"u"?zo=self:zo=global;let Vx=null,Gx=null;const FP=20,lE=zo.clearTimeout,LP=zo.setTimeout,cE=zo.cancelAnimationFrame||zo.mozCancelAnimationFrame||zo.webkitCancelAnimationFrame,UP=zo.requestAnimationFrame||zo.mozRequestAnimationFrame||zo.webkitRequestAnimationFrame;cE==null||UP==null?(Vx=lE,Gx=function(e){return LP(e,FP)}):(Vx=function([e,n]){cE(e),lE(n)},Gx=function(e){const n=UP(function(){lE(r),e()}),r=LP(function(){cE(n),e()},FP);return[n,r]});function mse(t){let e,n,r,i,o,u,l;const d=typeof document<"u"&&document.attachEvent;if(!d){u=function(O){const _=O.__resizeTriggers__,R=_.firstElementChild,k=_.lastElementChild,P=R.firstElementChild;k.scrollLeft=k.scrollWidth,k.scrollTop=k.scrollHeight,P.style.width=R.offsetWidth+1+"px",P.style.height=R.offsetHeight+1+"px",R.scrollLeft=R.scrollWidth,R.scrollTop=R.scrollHeight},o=function(O){return O.offsetWidth!==O.__resizeLast__.width||O.offsetHeight!==O.__resizeLast__.height},l=function(O){if(O.target.className&&typeof O.target.className.indexOf=="function"&&O.target.className.indexOf("contract-trigger")<0&&O.target.className.indexOf("expand-trigger")<0)return;const _=this;u(this),this.__resizeRAF__&&Vx(this.__resizeRAF__),this.__resizeRAF__=Gx(function(){o(_)&&(_.__resizeLast__.width=_.offsetWidth,_.__resizeLast__.height=_.offsetHeight,_.__resizeListeners__.forEach(function(P){P.call(_,O)}))})};let w=!1,v="";r="animationstart";const C="Webkit Moz O ms".split(" ");let E="webkitAnimationStart animationstart oAnimationStart MSAnimationStart".split(" "),$="";{const O=document.createElement("fakeelement");if(O.style.animationName!==void 0&&(w=!0),w===!1){for(let _=0;_ div, .contract-trigger:before { content: " "; display: block; position: absolute; top: 0; left: 0; height: 100%; width: 100%; overflow: hidden; z-index: -1; } .resize-triggers > div { background: #eee; overflow: auto; } .contract-trigger:before { width: 200%; height: 200%; }',C=w.head||w.getElementsByTagName("head")[0],E=w.createElement("style");E.id="detectElementResize",E.type="text/css",t!=null&&E.setAttribute("nonce",t),E.styleSheet?E.styleSheet.cssText=v:E.appendChild(w.createTextNode(v)),C.appendChild(E)}};return{addResizeListener:function(w,v){if(d)w.attachEvent("onresize",v);else{if(!w.__resizeTriggers__){const C=w.ownerDocument,E=zo.getComputedStyle(w);E&&E.position==="static"&&(w.style.position="relative"),h(C),w.__resizeLast__={},w.__resizeListeners__=[],(w.__resizeTriggers__=C.createElement("div")).className="resize-triggers";const $=C.createElement("div");$.className="expand-trigger",$.appendChild(C.createElement("div"));const O=C.createElement("div");O.className="contract-trigger",w.__resizeTriggers__.appendChild($),w.__resizeTriggers__.appendChild(O),w.appendChild(w.__resizeTriggers__),u(w),w.addEventListener("scroll",l,!0),r&&(w.__resizeTriggers__.__animationListener__=function(R){R.animationName===n&&u(w)},w.__resizeTriggers__.addEventListener(r,w.__resizeTriggers__.__animationListener__))}w.__resizeListeners__.push(v)}},removeResizeListener:function(w,v){if(d)w.detachEvent("onresize",v);else if(w.__resizeListeners__.splice(w.__resizeListeners__.indexOf(v),1),!w.__resizeListeners__.length){w.removeEventListener("scroll",l,!0),w.__resizeTriggers__.__animationListener__&&(w.__resizeTriggers__.removeEventListener(r,w.__resizeTriggers__.__animationListener__),w.__resizeTriggers__.__animationListener__=null);try{w.__resizeTriggers__=!w.removeChild(w.__resizeTriggers__)}catch{}}}}}class gse extends T.Component{constructor(...e){super(...e),this.state={height:this.props.defaultHeight||0,scaledHeight:this.props.defaultHeight||0,scaledWidth:this.props.defaultWidth||0,width:this.props.defaultWidth||0},this._autoSizer=null,this._detectElementResize=null,this._parentNode=null,this._resizeObserver=null,this._timeoutId=null,this._onResize=()=>{this._timeoutId=null;const{disableHeight:n,disableWidth:r,onResize:i}=this.props;if(this._parentNode){const o=window.getComputedStyle(this._parentNode)||{},u=parseFloat(o.paddingLeft||"0"),l=parseFloat(o.paddingRight||"0"),d=parseFloat(o.paddingTop||"0"),h=parseFloat(o.paddingBottom||"0"),g=this._parentNode.getBoundingClientRect(),y=g.height-d-h,w=g.width-u-l,v=this._parentNode.offsetHeight-d-h,C=this._parentNode.offsetWidth-u-l;(!n&&(this.state.height!==v||this.state.scaledHeight!==y)||!r&&(this.state.width!==C||this.state.scaledWidth!==w))&&(this.setState({height:v,width:C,scaledHeight:y,scaledWidth:w}),typeof i=="function"&&i({height:v,scaledHeight:y,scaledWidth:w,width:C}))}},this._setRef=n=>{this._autoSizer=n}}componentDidMount(){const{nonce:e}=this.props,n=this._autoSizer?this._autoSizer.parentNode:null;if(n!=null&&n.ownerDocument&&n.ownerDocument.defaultView&&n instanceof n.ownerDocument.defaultView.HTMLElement){this._parentNode=n;const r=n.ownerDocument.defaultView.ResizeObserver;r!=null?(this._resizeObserver=new r(()=>{this._timeoutId=setTimeout(this._onResize,0)}),this._resizeObserver.observe(n)):(this._detectElementResize=mse(e),this._detectElementResize.addResizeListener(n,this._onResize)),this._onResize()}}componentWillUnmount(){this._parentNode&&(this._detectElementResize&&this._detectElementResize.removeResizeListener(this._parentNode,this._onResize),this._timeoutId!==null&&clearTimeout(this._timeoutId),this._resizeObserver&&this._resizeObserver.disconnect())}render(){const{children:e,defaultHeight:n,defaultWidth:r,disableHeight:i=!1,disableWidth:o=!1,doNotBailOutOnEmptyChildren:u=!1,nonce:l,onResize:d,style:h={},tagName:g="div",...y}=this.props,{height:w,scaledHeight:v,scaledWidth:C,width:E}=this.state,$={overflow:"visible"},O={};let _=!1;return i||(w===0&&(_=!0),$.height=0,O.height=w,O.scaledHeight=v),o||(E===0&&(_=!0),$.width=0,O.width=E,O.scaledWidth=C),u&&(_=!1),T.createElement(g,{ref:this._setRef,style:{...$,...h},...y},!_&&e(O))}}function yse(t){var e=t.lastRenderedStartIndex,n=t.lastRenderedStopIndex,r=t.startIndex,i=t.stopIndex;return!(r>n||i0;){var v=u[0]-1;if(!e(v))u[0]=v;else break}return u}var bse=function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")},wse=(function(){function t(e,n){for(var r=0;r0&&arguments[0]!==void 0?arguments[0]:!1;this._memoizedUnloadedRanges=[],r&&this._ensureRowsLoaded(this._lastRenderedStartIndex,this._lastRenderedStopIndex)}},{key:"componentDidMount",value:function(){}},{key:"render",value:function(){var r=this.props.children;return r({onItemsRendered:this._onItemsRendered,ref:this._setRef})}},{key:"_ensureRowsLoaded",value:function(r,i){var o=this.props,u=o.isItemLoaded,l=o.itemCount,d=o.minimumBatchSize,h=d===void 0?10:d,g=o.threshold,y=g===void 0?15:g,w=vse({isItemLoaded:u,itemCount:l,minimumBatchSize:h,startIndex:Math.max(0,r-y),stopIndex:Math.min(l-1,i+y)});(this._memoizedUnloadedRanges.length!==w.length||this._memoizedUnloadedRanges.some(function(v,C){return w[C]!==v}))&&(this._memoizedUnloadedRanges=w,this._loadUnloadedRanges(w))}},{key:"_loadUnloadedRanges",value:function(r){for(var i=this,o=this.props.loadMoreItems||this.props.loadMoreRows,u=function(h){var g=r[h],y=r[h+1],w=o(g,y);w!=null&&w.then(function(){if(yse({lastRenderedStartIndex:i._lastRenderedStartIndex,lastRenderedStopIndex:i._lastRenderedStopIndex,startIndex:g,stopIndex:y})){if(i._listRef==null)return;typeof i._listRef.resetAfterIndex=="function"?i._listRef.resetAfterIndex(g,!0):(typeof i._listRef._getItemStyleCache=="function"&&i._listRef._getItemStyleCache(-1),i._listRef.forceUpdate())}})},l=0;l0;throw new Error("unsupported direction")}function OM(t,e){return Ese(t,e)?!0:t===document.body&&getComputedStyle(document.body).overflowY==="hidden"||t.parentElement==null?!1:OM(t.parentElement,e)}class xse extends T.Component{containerRef(e){this.container=e}pullDownRef(e){this.pullDown=e;const n=this.pullDown&&this.pullDown.firstChild&&this.pullDown.firstChild.getBoundingClientRect?this.pullDown.firstChild.getBoundingClientRect().height:0;this.setState({maxPullDownDistance:n})}constructor(e){super(e),this.container=void 0,this.pullDown=void 0,this.dragging=!1,this.startY=0,this.currentY=0,this.state={pullToRefreshThresholdBreached:!1,maxPullDownDistance:0,onRefreshing:!1},this.containerRef=this.containerRef.bind(this),this.pullDownRef=this.pullDownRef.bind(this),this.onTouchStart=this.onTouchStart.bind(this),this.onTouchMove=this.onTouchMove.bind(this),this.onEnd=this.onEnd.bind(this)}componentDidMount(){this.container&&(this.container.addEventListener("touchstart",this.onTouchStart),this.container.addEventListener("touchmove",this.onTouchMove),this.container.addEventListener("touchend",this.onEnd),this.container.addEventListener("mousedown",this.onTouchStart),this.container.addEventListener("mousemove",this.onTouchMove),this.container.addEventListener("mouseup",this.onEnd))}componentWillUnmount(){this.container&&(this.container.removeEventListener("touchstart",this.onTouchStart),this.container.removeEventListener("touchmove",this.onTouchMove),this.container.removeEventListener("touchend",this.onEnd),this.container.removeEventListener("mousedown",this.onTouchStart),this.container.removeEventListener("mousemove",this.onTouchMove),this.container.removeEventListener("mouseup",this.onEnd))}onTouchStart(e){const{triggerHeight:n=40}=this.props;if(this.startY=e.pageY||e.touches[0].pageY,this.currentY=this.startY,n==="auto"){const r=e.target,i=this.container;if(!i||e.type==="touchstart"&&OM(r,Wx.up)||i.getBoundingClientRect().top<0)return}else{const r=this.container.getBoundingClientRect().top||this.container.getBoundingClientRect().y||0;if(this.startY-r>n)return}this.dragging=!0,this.container.style.transition="transform 0.2s cubic-bezier(0,0,0.31,1)",this.pullDown.style.transition="transform 0.2s cubic-bezier(0,0,0.31,1)"}onTouchMove(e){this.dragging&&(this.currentY=e.pageY||e.touches[0].pageY,!(this.currentY=this.props.pullDownThreshold&&this.setState({pullToRefreshThresholdBreached:!0}),!(this.currentY-this.startY>this.state.maxPullDownDistance)&&(this.container.style.overflow="visible",this.container.style.transform=`translate(0px, ${this.currentY-this.startY}px)`,this.pullDown.style.visibility="visible")))}onEnd(){if(this.dragging=!1,this.startY=0,this.currentY=0,!this.state.pullToRefreshThresholdBreached){this.pullDown.style.visibility=this.props.startInvisible?"hidden":"visible",this.initContainer();return}this.container.style.overflow="visible",this.container.style.transform=`translate(0px, ${this.props.pullDownThreshold}px)`,this.setState({onRefreshing:!0},()=>{this.props.onRefresh().then(()=>{this.initContainer(),setTimeout(()=>{this.setState({onRefreshing:!1,pullToRefreshThresholdBreached:!1})},200)})})}initContainer(){requestAnimationFrame(()=>{this.container&&(this.container.style.overflow="auto",this.container.style.transform="none")})}renderPullDownContent(){const{releaseContent:e,pullDownContent:n,refreshContent:r,startInvisible:i}=this.props,{onRefreshing:o,pullToRefreshThresholdBreached:u}=this.state,l=o?r:u?e:n,d={position:"absolute",overflow:"hidden",left:0,right:0,top:0,visibility:i?"hidden":"visible"};return N.jsx("div",{id:"ptr-pull-down",style:d,ref:this.pullDownRef,children:l})}render(){const{backgroundColor:e}=this.props,n={height:"auto",overflow:"hidden",margin:"0 -10px",padding:"0 10px",WebkitOverflowScrolling:"touch",position:"relative",zIndex:1};return this.props.containerStyle&&Object.keys(this.props.containerStyle).forEach(r=>{n[r]=this.props.containerStyle[r]}),e&&(n.backgroundColor=e),N.jsxs("div",{id:"ptr-parent",style:n,children:[this.renderPullDownContent(),N.jsx("div",{id:"ptr-container",ref:this.containerRef,style:n,children:this.props.children})]})}}const Ose=({height:t="200px",background:e="none"})=>N.jsxs("div",{id:"container",children:[N.jsxs("div",{className:"sk-fading-circle",children:[N.jsx("div",{className:"sk-circle1 sk-circle"}),N.jsx("div",{className:"sk-circle2 sk-circle"}),N.jsx("div",{className:"sk-circle3 sk-circle"}),N.jsx("div",{className:"sk-circle4 sk-circle"}),N.jsx("div",{className:"sk-circle5 sk-circle"}),N.jsx("div",{className:"sk-circle6 sk-circle"}),N.jsx("div",{className:"sk-circle7 sk-circle"}),N.jsx("div",{className:"sk-circle8 sk-circle"}),N.jsx("div",{className:"sk-circle9 sk-circle"}),N.jsx("div",{className:"sk-circle10 sk-circle"}),N.jsx("div",{className:"sk-circle11 sk-circle"}),N.jsx("div",{className:"sk-circle12 sk-circle"})]}),N.jsx("style",{children:` + */const Nse=[["path",{d:"m3 16 4 4 4-4",key:"1co6wj"}],["path",{d:"M7 4v16",key:"1glfcx"}],["path",{d:"M15 4h5l-5 6h5",key:"8asdl1"}],["path",{d:"M15 20v-3.5a2.5 2.5 0 0 1 5 0V20",key:"r6l5cz"}],["path",{d:"M20 18h-5",key:"18j1r2"}]],Mse=QT("arrow-down-z-a",Nse);function kse({tabIndex:t,column:e,filterType:n,sortable:r,filterable:i,selectable:o,udf:u}){var w;const l=(w=u.filters.sorting)==null?void 0:w.find(b=>b.columnName===e.key),[d,h]=T.useState("");T.useEffect(()=>{d!==$r.get(u.filters,e.key)&&h($r.get(u.filters,e.key))},[u.filters]);let g;(l==null?void 0:l.columnName)===e.key&&(l==null?void 0:l.direction)=="asc"&&(g="asc"),(l==null?void 0:l.columnName)===e.key&&(l==null?void 0:l.direction)=="desc"&&(g="desc");const y=()=>{l?((l==null?void 0:l.direction)==="desc"&&u.setSorting(u.filters.sorting.filter(b=>b.columnName!==e.key)),(l==null?void 0:l.direction)==="asc"&&u.setSorting(u.filters.sorting.map(b=>b.columnName===e.key?{...b,direction:"desc"}:b))):u.setSorting([...u.filters.sorting,{columnName:e.key.toString(),direction:"asc"}])};return N.jsxs(N.Fragment,{children:[r?N.jsx("span",{className:"data-table-sort-actions",children:N.jsxs("button",{className:`active-sort-col ${e.key==(l==null?void 0:l.columnName)?"active":""}`,onClick:y,children:[g=="asc"?N.jsx(Rse,{className:"sort-icon"}):null,g=="desc"?N.jsx(Mse,{className:"sort-icon"}):null,g===void 0?N.jsx(Ise,{className:"sort-icon"}):null]})}):null,i?N.jsx(N.Fragment,{children:n==="date"?N.jsx("input",{className:"data-table-filter-input",tabIndex:t,value:d,onChange:b=>{h(b.target.value),u.setFilter({[e.key]:b.target.value})},placeholder:e.name||"",type:"date"}):N.jsx("input",{className:"data-table-filter-input",tabIndex:t,value:d,onChange:b=>{h(b.target.value),u.setFilter({[e.key]:b.target.value})},placeholder:e.name||""})}):N.jsx("span",{children:e.name})]})}function Dse(t,e){const n=t.split("/").filter(Boolean);return e.split("/").forEach(i=>{i===".."?n.pop():i!=="."&&i!==""&&n.push(i)}),"/"+n.join("/")}const Fse=(t,e,n,r=[],i,o)=>t.map(u=>{const l=r.find(d=>d.columnName===u.name);return{...u,key:u.name,renderCell:({column:d,row:h})=>{if(d.key==="uniqueId"){let g=i?i(h.uniqueId):"";return g.startsWith(".")&&(g=Dse(o,g)),N.jsxs("div",{style:{position:"relative"},children:[N.jsx(o3,{href:i&&i(h.uniqueId),children:h.uniqueId}),N.jsxs("div",{className:"cell-actions",children:[N.jsx(SM,{value:h.uniqueId}),N.jsx($se,{value:g})]})]})}return d.getCellValue?N.jsx(N.Fragment,{children:d.getCellValue(h)}):N.jsx("span",{children:$r.get(h,d.key)})},width:l?l.width:u.width,name:u.title,resizable:!0,sortable:u.sortable,renderHeaderCell:d=>N.jsx(kse,{...d,selectable:!0,sortable:u.sortable,filterable:u.filterable,filterType:u.filterType,udf:n})}});function Lse(t){const e=T.useRef();let[n,r]=T.useState([]);const i=T.useRef({});return{reindex:(u,l,d)=>{if(l===e.current){const h=u.filter(g=>i.current[g.uniqueId]?!1:(i.current[g.uniqueId]=!0,!0));r([...n,...h].filter(Boolean))}else r([...u].filter(Boolean)),d==null||d();e.current=l},indexedData:n}}function Use({columns:t,query:e,columnSizes:n,onColumnWidthsChange:r,udf:i,tableClass:o,uniqueIdHrefHandler:u}){var R,L;yn();const{pathname:l}=zl(),{filters:d,setSorting:h,setStartIndex:g,selection:y,setSelection:w,setPageSize:b,onFiltersChange:C}=i,E=T.useMemo(()=>[eoe,...Fse(t,(F,q)=>{i.setFilter({[F]:q})},i,n,u,l)],[t,n]),{indexedData:$,reindex:O}=Lse(),_=T.useRef();T.useEffect(()=>{var q,Y;const F=((Y=(q=e.data)==null?void 0:q.data)==null?void 0:Y.items)||[];O(F,i.queryHash,()=>{_.current.element.scrollTo({top:0,left:0})})},[(L=(R=e.data)==null?void 0:R.data)==null?void 0:L.items]);async function P(F){e.isLoading||!Bse(F)||g($.length)}const k=$r.debounce((F,q)=>{const Y=E.map(Q=>({columnName:Q.key,width:Q.name===F.name?q:Q.width}));r(Y)},300);return N.jsx(N.Fragment,{children:N.jsx(mse,{className:o,columns:E,onScroll:P,onColumnResize:k,onSelectedRowsChange:F=>{w(Array.from(F))},selectedRows:new Set(y),ref:_,rows:$,rowKeyGetter:F=>F.uniqueId,style:{height:"calc(100% - 2px)",margin:"1px -14px"}})})}function Bse({currentTarget:t}){return t.scrollTop+300>=t.scrollHeight-t.clientHeight}function jse(t){const e={};for(let n of t||[])n&&n.columnName&&$r.set(e,n.columnName,{operation:n.operation,value:n.value});return e}let Wo;typeof window<"u"?Wo=window:typeof self<"u"?Wo=self:Wo=global;let bO=null,wO=null;const f5=20,kE=Wo.clearTimeout,d5=Wo.setTimeout,DE=Wo.cancelAnimationFrame||Wo.mozCancelAnimationFrame||Wo.webkitCancelAnimationFrame,h5=Wo.requestAnimationFrame||Wo.mozRequestAnimationFrame||Wo.webkitRequestAnimationFrame;DE==null||h5==null?(bO=kE,wO=function(e){return d5(e,f5)}):(bO=function([e,n]){DE(e),kE(n)},wO=function(e){const n=h5(function(){kE(r),e()}),r=d5(function(){DE(n),e()},f5);return[n,r]});function qse(t){let e,n,r,i,o,u,l;const d=typeof document<"u"&&document.attachEvent;if(!d){u=function(O){const _=O.__resizeTriggers__,P=_.firstElementChild,k=_.lastElementChild,R=P.firstElementChild;k.scrollLeft=k.scrollWidth,k.scrollTop=k.scrollHeight,R.style.width=P.offsetWidth+1+"px",R.style.height=P.offsetHeight+1+"px",P.scrollLeft=P.scrollWidth,P.scrollTop=P.scrollHeight},o=function(O){return O.offsetWidth!==O.__resizeLast__.width||O.offsetHeight!==O.__resizeLast__.height},l=function(O){if(O.target.className&&typeof O.target.className.indexOf=="function"&&O.target.className.indexOf("contract-trigger")<0&&O.target.className.indexOf("expand-trigger")<0)return;const _=this;u(this),this.__resizeRAF__&&bO(this.__resizeRAF__),this.__resizeRAF__=wO(function(){o(_)&&(_.__resizeLast__.width=_.offsetWidth,_.__resizeLast__.height=_.offsetHeight,_.__resizeListeners__.forEach(function(R){R.call(_,O)}))})};let w=!1,b="";r="animationstart";const C="Webkit Moz O ms".split(" ");let E="webkitAnimationStart animationstart oAnimationStart MSAnimationStart".split(" "),$="";{const O=document.createElement("fakeelement");if(O.style.animationName!==void 0&&(w=!0),w===!1){for(let _=0;_ div, .contract-trigger:before { content: " "; display: block; position: absolute; top: 0; left: 0; height: 100%; width: 100%; overflow: hidden; z-index: -1; } .resize-triggers > div { background: #eee; overflow: auto; } .contract-trigger:before { width: 200%; height: 200%; }',C=w.head||w.getElementsByTagName("head")[0],E=w.createElement("style");E.id="detectElementResize",E.type="text/css",t!=null&&E.setAttribute("nonce",t),E.styleSheet?E.styleSheet.cssText=b:E.appendChild(w.createTextNode(b)),C.appendChild(E)}};return{addResizeListener:function(w,b){if(d)w.attachEvent("onresize",b);else{if(!w.__resizeTriggers__){const C=w.ownerDocument,E=Wo.getComputedStyle(w);E&&E.position==="static"&&(w.style.position="relative"),h(C),w.__resizeLast__={},w.__resizeListeners__=[],(w.__resizeTriggers__=C.createElement("div")).className="resize-triggers";const $=C.createElement("div");$.className="expand-trigger",$.appendChild(C.createElement("div"));const O=C.createElement("div");O.className="contract-trigger",w.__resizeTriggers__.appendChild($),w.__resizeTriggers__.appendChild(O),w.appendChild(w.__resizeTriggers__),u(w),w.addEventListener("scroll",l,!0),r&&(w.__resizeTriggers__.__animationListener__=function(P){P.animationName===n&&u(w)},w.__resizeTriggers__.addEventListener(r,w.__resizeTriggers__.__animationListener__))}w.__resizeListeners__.push(b)}},removeResizeListener:function(w,b){if(d)w.detachEvent("onresize",b);else if(w.__resizeListeners__.splice(w.__resizeListeners__.indexOf(b),1),!w.__resizeListeners__.length){w.removeEventListener("scroll",l,!0),w.__resizeTriggers__.__animationListener__&&(w.__resizeTriggers__.removeEventListener(r,w.__resizeTriggers__.__animationListener__),w.__resizeTriggers__.__animationListener__=null);try{w.__resizeTriggers__=!w.removeChild(w.__resizeTriggers__)}catch{}}}}}class Hse extends T.Component{constructor(...e){super(...e),this.state={height:this.props.defaultHeight||0,scaledHeight:this.props.defaultHeight||0,scaledWidth:this.props.defaultWidth||0,width:this.props.defaultWidth||0},this._autoSizer=null,this._detectElementResize=null,this._parentNode=null,this._resizeObserver=null,this._timeoutId=null,this._onResize=()=>{this._timeoutId=null;const{disableHeight:n,disableWidth:r,onResize:i}=this.props;if(this._parentNode){const o=window.getComputedStyle(this._parentNode)||{},u=parseFloat(o.paddingLeft||"0"),l=parseFloat(o.paddingRight||"0"),d=parseFloat(o.paddingTop||"0"),h=parseFloat(o.paddingBottom||"0"),g=this._parentNode.getBoundingClientRect(),y=g.height-d-h,w=g.width-u-l,b=this._parentNode.offsetHeight-d-h,C=this._parentNode.offsetWidth-u-l;(!n&&(this.state.height!==b||this.state.scaledHeight!==y)||!r&&(this.state.width!==C||this.state.scaledWidth!==w))&&(this.setState({height:b,width:C,scaledHeight:y,scaledWidth:w}),typeof i=="function"&&i({height:b,scaledHeight:y,scaledWidth:w,width:C}))}},this._setRef=n=>{this._autoSizer=n}}componentDidMount(){const{nonce:e}=this.props,n=this._autoSizer?this._autoSizer.parentNode:null;if(n!=null&&n.ownerDocument&&n.ownerDocument.defaultView&&n instanceof n.ownerDocument.defaultView.HTMLElement){this._parentNode=n;const r=n.ownerDocument.defaultView.ResizeObserver;r!=null?(this._resizeObserver=new r(()=>{this._timeoutId=setTimeout(this._onResize,0)}),this._resizeObserver.observe(n)):(this._detectElementResize=qse(e),this._detectElementResize.addResizeListener(n,this._onResize)),this._onResize()}}componentWillUnmount(){this._parentNode&&(this._detectElementResize&&this._detectElementResize.removeResizeListener(this._parentNode,this._onResize),this._timeoutId!==null&&clearTimeout(this._timeoutId),this._resizeObserver&&this._resizeObserver.disconnect())}render(){const{children:e,defaultHeight:n,defaultWidth:r,disableHeight:i=!1,disableWidth:o=!1,doNotBailOutOnEmptyChildren:u=!1,nonce:l,onResize:d,style:h={},tagName:g="div",...y}=this.props,{height:w,scaledHeight:b,scaledWidth:C,width:E}=this.state,$={overflow:"visible"},O={};let _=!1;return i||(w===0&&(_=!0),$.height=0,O.height=w,O.scaledHeight=b),o||(E===0&&(_=!0),$.width=0,O.width=E,O.scaledWidth=C),u&&(_=!1),T.createElement(g,{ref:this._setRef,style:{...$,...h},...y},!_&&e(O))}}function zse(t){var e=t.lastRenderedStartIndex,n=t.lastRenderedStopIndex,r=t.startIndex,i=t.stopIndex;return!(r>n||i0;){var b=u[0]-1;if(!e(b))u[0]=b;else break}return u}var Gse=function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")},Wse=(function(){function t(e,n){for(var r=0;r0&&arguments[0]!==void 0?arguments[0]:!1;this._memoizedUnloadedRanges=[],r&&this._ensureRowsLoaded(this._lastRenderedStartIndex,this._lastRenderedStopIndex)}},{key:"componentDidMount",value:function(){}},{key:"render",value:function(){var r=this.props.children;return r({onItemsRendered:this._onItemsRendered,ref:this._setRef})}},{key:"_ensureRowsLoaded",value:function(r,i){var o=this.props,u=o.isItemLoaded,l=o.itemCount,d=o.minimumBatchSize,h=d===void 0?10:d,g=o.threshold,y=g===void 0?15:g,w=Vse({isItemLoaded:u,itemCount:l,minimumBatchSize:h,startIndex:Math.max(0,r-y),stopIndex:Math.min(l-1,i+y)});(this._memoizedUnloadedRanges.length!==w.length||this._memoizedUnloadedRanges.some(function(b,C){return w[C]!==b}))&&(this._memoizedUnloadedRanges=w,this._loadUnloadedRanges(w))}},{key:"_loadUnloadedRanges",value:function(r){for(var i=this,o=this.props.loadMoreItems||this.props.loadMoreRows,u=function(h){var g=r[h],y=r[h+1],w=o(g,y);w!=null&&w.then(function(){if(zse({lastRenderedStartIndex:i._lastRenderedStartIndex,lastRenderedStopIndex:i._lastRenderedStopIndex,startIndex:g,stopIndex:y})){if(i._listRef==null)return;typeof i._listRef.resetAfterIndex=="function"?i._listRef.resetAfterIndex(g,!0):(typeof i._listRef._getItemStyleCache=="function"&&i._listRef._getItemStyleCache(-1),i._listRef.forceUpdate())}})},l=0;l0;throw new Error("unsupported direction")}function ek(t,e){return Qse(t,e)?!0:t===document.body&&getComputedStyle(document.body).overflowY==="hidden"||t.parentElement==null?!1:ek(t.parentElement,e)}class Xse extends T.Component{containerRef(e){this.container=e}pullDownRef(e){this.pullDown=e;const n=this.pullDown&&this.pullDown.firstChild&&this.pullDown.firstChild.getBoundingClientRect?this.pullDown.firstChild.getBoundingClientRect().height:0;this.setState({maxPullDownDistance:n})}constructor(e){super(e),this.container=void 0,this.pullDown=void 0,this.dragging=!1,this.startY=0,this.currentY=0,this.state={pullToRefreshThresholdBreached:!1,maxPullDownDistance:0,onRefreshing:!1},this.containerRef=this.containerRef.bind(this),this.pullDownRef=this.pullDownRef.bind(this),this.onTouchStart=this.onTouchStart.bind(this),this.onTouchMove=this.onTouchMove.bind(this),this.onEnd=this.onEnd.bind(this)}componentDidMount(){this.container&&(this.container.addEventListener("touchstart",this.onTouchStart),this.container.addEventListener("touchmove",this.onTouchMove),this.container.addEventListener("touchend",this.onEnd),this.container.addEventListener("mousedown",this.onTouchStart),this.container.addEventListener("mousemove",this.onTouchMove),this.container.addEventListener("mouseup",this.onEnd))}componentWillUnmount(){this.container&&(this.container.removeEventListener("touchstart",this.onTouchStart),this.container.removeEventListener("touchmove",this.onTouchMove),this.container.removeEventListener("touchend",this.onEnd),this.container.removeEventListener("mousedown",this.onTouchStart),this.container.removeEventListener("mousemove",this.onTouchMove),this.container.removeEventListener("mouseup",this.onEnd))}onTouchStart(e){const{triggerHeight:n=40}=this.props;if(this.startY=e.pageY||e.touches[0].pageY,this.currentY=this.startY,n==="auto"){const r=e.target,i=this.container;if(!i||e.type==="touchstart"&&ek(r,SO.up)||i.getBoundingClientRect().top<0)return}else{const r=this.container.getBoundingClientRect().top||this.container.getBoundingClientRect().y||0;if(this.startY-r>n)return}this.dragging=!0,this.container.style.transition="transform 0.2s cubic-bezier(0,0,0.31,1)",this.pullDown.style.transition="transform 0.2s cubic-bezier(0,0,0.31,1)"}onTouchMove(e){this.dragging&&(this.currentY=e.pageY||e.touches[0].pageY,!(this.currentY=this.props.pullDownThreshold&&this.setState({pullToRefreshThresholdBreached:!0}),!(this.currentY-this.startY>this.state.maxPullDownDistance)&&(this.container.style.overflow="visible",this.container.style.transform=`translate(0px, ${this.currentY-this.startY}px)`,this.pullDown.style.visibility="visible")))}onEnd(){if(this.dragging=!1,this.startY=0,this.currentY=0,!this.state.pullToRefreshThresholdBreached){this.pullDown.style.visibility=this.props.startInvisible?"hidden":"visible",this.initContainer();return}this.container.style.overflow="visible",this.container.style.transform=`translate(0px, ${this.props.pullDownThreshold}px)`,this.setState({onRefreshing:!0},()=>{this.props.onRefresh().then(()=>{this.initContainer(),setTimeout(()=>{this.setState({onRefreshing:!1,pullToRefreshThresholdBreached:!1})},200)})})}initContainer(){requestAnimationFrame(()=>{this.container&&(this.container.style.overflow="auto",this.container.style.transform="none")})}renderPullDownContent(){const{releaseContent:e,pullDownContent:n,refreshContent:r,startInvisible:i}=this.props,{onRefreshing:o,pullToRefreshThresholdBreached:u}=this.state,l=o?r:u?e:n,d={position:"absolute",overflow:"hidden",left:0,right:0,top:0,visibility:i?"hidden":"visible"};return N.jsx("div",{id:"ptr-pull-down",style:d,ref:this.pullDownRef,children:l})}render(){const{backgroundColor:e}=this.props,n={height:"auto",overflow:"hidden",margin:"0 -10px",padding:"0 10px",WebkitOverflowScrolling:"touch",position:"relative",zIndex:1};return this.props.containerStyle&&Object.keys(this.props.containerStyle).forEach(r=>{n[r]=this.props.containerStyle[r]}),e&&(n.backgroundColor=e),N.jsxs("div",{id:"ptr-parent",style:n,children:[this.renderPullDownContent(),N.jsx("div",{id:"ptr-container",ref:this.containerRef,style:n,children:this.props.children})]})}}const Zse=({height:t="200px",background:e="none"})=>N.jsxs("div",{id:"container",children:[N.jsxs("div",{className:"sk-fading-circle",children:[N.jsx("div",{className:"sk-circle1 sk-circle"}),N.jsx("div",{className:"sk-circle2 sk-circle"}),N.jsx("div",{className:"sk-circle3 sk-circle"}),N.jsx("div",{className:"sk-circle4 sk-circle"}),N.jsx("div",{className:"sk-circle5 sk-circle"}),N.jsx("div",{className:"sk-circle6 sk-circle"}),N.jsx("div",{className:"sk-circle7 sk-circle"}),N.jsx("div",{className:"sk-circle8 sk-circle"}),N.jsx("div",{className:"sk-circle9 sk-circle"}),N.jsx("div",{className:"sk-circle10 sk-circle"}),N.jsx("div",{className:"sk-circle11 sk-circle"}),N.jsx("div",{className:"sk-circle12 sk-circle"})]}),N.jsx("style",{children:` #container { display: flex; flex-direction: column; @@ -391,7 +391,7 @@ PERFORMANCE OF THIS SOFTWARE. opacity: 1; } } - `})]}),Tse=({height:t="200px",background:e="none",label:n="Pull down to refresh"})=>N.jsxs("div",{id:"container2",children:[N.jsx("span",{children:n}),N.jsx("style",{children:` + `})]}),eue=({height:t="200px",background:e="none",label:n="Pull down to refresh"})=>N.jsxs("div",{id:"container2",children:[N.jsx("span",{children:n}),N.jsx("style",{children:` #container2 { background: ${e}; height: ${t}; @@ -415,7 +415,7 @@ PERFORMANCE OF THIS SOFTWARE. opacity: 1; } } - `})]}),_se=({height:t="200px",background:e="none",label:n="Release to refresh"})=>N.jsxs("div",{id:"container",children:[N.jsx("div",{id:"arrow"}),N.jsx("span",{children:n}),N.jsx("style",{children:` + `})]}),tue=({height:t="200px",background:e="none",label:n="Release to refresh"})=>N.jsxs("div",{id:"container",children:[N.jsx("div",{id:"arrow"}),N.jsx("span",{children:n}),N.jsx("style",{children:` #container { background: ${e||"none"}; height: ${t||"200px"}; @@ -440,12 +440,12 @@ PERFORMANCE OF THIS SOFTWARE. opacity: 1; } } - `})]});function TM({content:t,columns:e,uniqueIdHrefHandler:n,style:r}){const i=n?MS:"span";return N.jsx(i,{className:"auto-card-list-item card mb-2 p-3",style:r,href:n(t.uniqueId),children:e.map(o=>{let u=o.getCellValue?o.getCellValue(t):"";return u||(u=o.name?t[o.name]:""),u||(u="-"),o.name==="uniqueId"?null:N.jsxs("div",{className:"row auto-card-drawer",children:[N.jsxs("div",{className:"col-6",children:[o.title,":"]}),N.jsx("div",{className:"col-6",children:u})]},o.title)})})}const Ase=()=>{const t=yn();return N.jsxs("div",{className:"empty-list-indicator",children:[N.jsx("img",{src:YO("/common/empty.png")}),N.jsx("div",{children:t.table.noRecords})]})};var BP=Number.isNaN||function(e){return typeof e=="number"&&e!==e};function Rse(t,e){return!!(t===e||BP(t)&&BP(e))}function Pse(t,e){if(t.length!==e.length)return!1;for(var n=0;n=e?t.call(null):i.id=requestAnimationFrame(r)}var i={id:requestAnimationFrame(r)};return i}var dE=-1;function zP(t){if(t===void 0&&(t=!1),dE===-1||t){var e=document.createElement("div"),n=e.style;n.width="50px",n.height="50px",n.overflow="scroll",document.body.appendChild(e),dE=e.offsetWidth-e.clientWidth,document.body.removeChild(e)}return dE}var Pg=null;function VP(t){if(t===void 0&&(t=!1),Pg===null||t){var e=document.createElement("div"),n=e.style;n.width="50px",n.height="50px",n.overflow="scroll",n.direction="rtl";var r=document.createElement("div"),i=r.style;return i.width="100px",i.height="100px",e.appendChild(r),document.body.appendChild(e),e.scrollLeft>0?Pg="positive-descending":(e.scrollLeft=1,e.scrollLeft===0?Pg="negative":Pg="positive-ascending"),document.body.removeChild(e),Pg}return Pg}var Mse=150,kse=function(e,n){return e};function Dse(t){var e,n=t.getItemOffset,r=t.getEstimatedTotalSize,i=t.getItemSize,o=t.getOffsetForIndexAndAlignment,u=t.getStartIndexForOffset,l=t.getStopIndexForStartIndex,d=t.initInstanceProps,h=t.shouldResetStyleCacheOnItemSizeChange,g=t.validateProps;return e=(function(y){Qp(w,y);function w(C){var E;return E=y.call(this,C)||this,E._instanceProps=d(E.props,Rx(E)),E._outerRef=void 0,E._resetIsScrollingTimeoutId=null,E.state={instance:Rx(E),isScrolling:!1,scrollDirection:"forward",scrollOffset:typeof E.props.initialScrollOffset=="number"?E.props.initialScrollOffset:0,scrollUpdateWasRequested:!1},E._callOnItemsRendered=void 0,E._callOnItemsRendered=fE(function($,O,_,R){return E.props.onItemsRendered({overscanStartIndex:$,overscanStopIndex:O,visibleStartIndex:_,visibleStopIndex:R})}),E._callOnScroll=void 0,E._callOnScroll=fE(function($,O,_){return E.props.onScroll({scrollDirection:$,scrollOffset:O,scrollUpdateWasRequested:_})}),E._getItemStyle=void 0,E._getItemStyle=function($){var O=E.props,_=O.direction,R=O.itemSize,k=O.layout,P=E._getItemStyleCache(h&&R,h&&k,h&&_),L;if(P.hasOwnProperty($))L=P[$];else{var F=n(E.props,$,E._instanceProps),q=i(E.props,$,E._instanceProps),Y=_==="horizontal"||k==="horizontal",X=_==="rtl",ue=Y?F:0;P[$]=L={position:"absolute",left:X?void 0:ue,right:X?ue:void 0,top:Y?0:F,height:Y?"100%":q,width:Y?q:"100%"}}return L},E._getItemStyleCache=void 0,E._getItemStyleCache=fE(function($,O,_){return{}}),E._onScrollHorizontal=function($){var O=$.currentTarget,_=O.clientWidth,R=O.scrollLeft,k=O.scrollWidth;E.setState(function(P){if(P.scrollOffset===R)return null;var L=E.props.direction,F=R;if(L==="rtl")switch(VP()){case"negative":F=-R;break;case"positive-descending":F=k-_-R;break}return F=Math.max(0,Math.min(F,k-_)),{isScrolling:!0,scrollDirection:P.scrollOffsetL.clientWidth?zP():0:P=L.scrollHeight>L.clientHeight?zP():0}this.scrollTo(o(this.props,E,$,k,this._instanceProps,P))},v.componentDidMount=function(){var E=this.props,$=E.direction,O=E.initialScrollOffset,_=E.layout;if(typeof O=="number"&&this._outerRef!=null){var R=this._outerRef;$==="horizontal"||_==="horizontal"?R.scrollLeft=O:R.scrollTop=O}this._callPropsCallbacks()},v.componentDidUpdate=function(){var E=this.props,$=E.direction,O=E.layout,_=this.state,R=_.scrollOffset,k=_.scrollUpdateWasRequested;if(k&&this._outerRef!=null){var P=this._outerRef;if($==="horizontal"||O==="horizontal")if($==="rtl")switch(VP()){case"negative":P.scrollLeft=-R;break;case"positive-ascending":P.scrollLeft=R;break;default:var L=P.clientWidth,F=P.scrollWidth;P.scrollLeft=F-L-R;break}else P.scrollLeft=R;else P.scrollTop=R}this._callPropsCallbacks()},v.componentWillUnmount=function(){this._resetIsScrollingTimeoutId!==null&&HP(this._resetIsScrollingTimeoutId)},v.render=function(){var E=this.props,$=E.children,O=E.className,_=E.direction,R=E.height,k=E.innerRef,P=E.innerElementType,L=E.innerTagName,F=E.itemCount,q=E.itemData,Y=E.itemKey,X=Y===void 0?kse:Y,ue=E.layout,me=E.outerElementType,te=E.outerTagName,be=E.style,we=E.useIsScrolling,B=E.width,V=this.state.isScrolling,H=_==="horizontal"||ue==="horizontal",ie=H?this._onScrollHorizontal:this._onScrollVertical,G=this._getRangeToRender(),Q=G[0],he=G[1],$e=[];if(F>0)for(var Ce=Q;Ce<=he;Ce++)$e.push(T.createElement($,{data:q,key:X(Ce,q),index:Ce,isScrolling:we?V:void 0,style:this._getItemStyle(Ce)}));var Be=r(this.props,this._instanceProps);return T.createElement(me||te||"div",{className:O,onScroll:ie,ref:this._outerRefSetter,style:Ve({position:"relative",height:R,width:B,overflow:"auto",WebkitOverflowScrolling:"touch",willChange:"transform",direction:_},be)},T.createElement(P||L||"div",{children:$e,ref:k,style:{height:H?"100%":Be,pointerEvents:V?"none":void 0,width:H?Be:"100%"}}))},v._callPropsCallbacks=function(){if(typeof this.props.onItemsRendered=="function"){var E=this.props.itemCount;if(E>0){var $=this._getRangeToRender(),O=$[0],_=$[1],R=$[2],k=$[3];this._callOnItemsRendered(O,_,R,k)}}if(typeof this.props.onScroll=="function"){var P=this.state,L=P.scrollDirection,F=P.scrollOffset,q=P.scrollUpdateWasRequested;this._callOnScroll(L,F,q)}},v._getRangeToRender=function(){var E=this.props,$=E.itemCount,O=E.overscanCount,_=this.state,R=_.isScrolling,k=_.scrollDirection,P=_.scrollOffset;if($===0)return[0,0,0,0];var L=u(this.props,P,this._instanceProps),F=l(this.props,L,P,this._instanceProps),q=!R||k==="backward"?Math.max(1,O):1,Y=!R||k==="forward"?Math.max(1,O):1;return[Math.max(0,L-q),Math.max(0,Math.min($-1,F+Y)),L,F]},w})(T.PureComponent),e.defaultProps={direction:"ltr",itemData:void 0,layout:"vertical",overscanCount:2,useIsScrolling:!1},e}var Fse=function(e,n){e.children,e.direction,e.height,e.layout,e.innerTagName,e.outerTagName,e.width,n.instance},Lse=Dse({getItemOffset:function(e,n){var r=e.itemSize;return n*r},getItemSize:function(e,n){var r=e.itemSize;return r},getEstimatedTotalSize:function(e){var n=e.itemCount,r=e.itemSize;return r*n},getOffsetForIndexAndAlignment:function(e,n,r,i,o,u){var l=e.direction,d=e.height,h=e.itemCount,g=e.itemSize,y=e.layout,w=e.width,v=l==="horizontal"||y==="horizontal",C=v?w:d,E=Math.max(0,h*g-C),$=Math.min(E,n*g),O=Math.max(0,n*g-C+g+u);switch(r==="smart"&&(i>=O-C&&i<=$+C?r="auto":r="center"),r){case"start":return $;case"end":return O;case"center":{var _=Math.round(O+($-O)/2);return _E+Math.floor(C/2)?E:_}case"auto":default:return i>=O&&i<=$?i:i{var _,R,k,P,L,F;yn();const l=T.useRef();let[d,h]=T.useState([]);const[g,y]=T.useState(!0),w=kf();e&&e({queryClient:w});const v=(q,Y)=>{const X=r.debouncedFilters.startIndex||0,ue=[...d];l.current!==Y&&(ue.length=0,l.current=Y);for(let me=X;me<(r.debouncedFilters.itemsPerPage||0)+X;me++){const te=me-X;q[te]&&(ue[me]=q[te])}h(ue)};T.useEffect(()=>{var Y,X,ue;const q=((X=(Y=o.query.data)==null?void 0:Y.data)==null?void 0:X.items)||[];v(q,(ue=o.query.data)==null?void 0:ue.jsonQuery)},[(R=(_=o.query.data)==null?void 0:_.data)==null?void 0:R.items]);const C=({index:q,style:Y})=>{var ue,me;return d[q]?u?N.jsx(u,{content:d[q]},(ue=d[q])==null?void 0:ue.uniqueId):N.jsx(TM,{style:{...Y,top:Y.top+10,height:Y.height-10,width:Y.width},uniqueIdHrefHandler:n,columns:t,content:d[q]},(me=d[q])==null?void 0:me.uniqueId):null},E=({scrollOffset:q})=>{q===0&&!g?y(!0):q>0&&g&&y(!1)},$=T.useCallback(()=>(o.query.refetch(),Promise.resolve(!0)),[]),O=((L=(P=(k=o.query)==null?void 0:k.data)==null?void 0:P.data)==null?void 0:L.totalItems)||0;return N.jsx(N.Fragment,{children:N.jsx(xse,{pullDownContent:N.jsx(Tse,{label:""}),releaseContent:N.jsx(_se,{}),refreshContent:N.jsx(Ose,{}),pullDownThreshold:200,onRefresh:$,triggerHeight:g?500:0,startInvisible:!0,children:d.length===0&&!((F=o.query)!=null&&F.isError)?N.jsx("div",{style:{height:"calc(100vh - 130px)"},children:N.jsx(Ase,{})}):N.jsxs("div",{style:{height:"calc(100vh - 130px)"},children:[N.jsx(Wo,{query:o.query}),N.jsx(Cse,{isItemLoaded:q=>!!d[q],itemCount:O,loadMoreItems:async(q,Y)=>{r.setFilter({startIndex:q,itemsPerPage:Y-q})},children:({onItemsRendered:q,ref:Y})=>N.jsx(gse,{children:({height:X,width:ue})=>N.jsx(Lse,{height:X,itemCount:d.length,itemSize:u!=null&&u.getHeight?u.getHeight():t.length*24+10,width:ue,onScroll:E,onItemsRendered:q,ref:Y,children:C})})})]})})})},jse=({columns:t,deleteHook:e,uniqueIdHrefHandler:n,udf:r,q:i})=>{var h,g,y,w,v,C,E,$;const o=yn(),u=kf();e&&e({queryClient:u}),(g=(h=i.query.data)==null?void 0:h.data)!=null&&g.items;const l=((v=(w=(y=i.query)==null?void 0:y.data)==null?void 0:w.data)==null?void 0:v.items)||[],d=(($=(E=(C=i.query)==null?void 0:C.data)==null?void 0:E.data)==null?void 0:$.totalItems)||0;return N.jsxs(N.Fragment,{children:[d===0&&N.jsx("p",{children:o.table.noRecords}),l.map(O=>N.jsx(TM,{style:{},uniqueIdHrefHandler:n,columns:t,content:O},O.uniqueId))]})},GP=matchMedia("(max-width: 600px)");function Bse(){const t=T.useRef(GP),[e,n]=T.useState(GP.matches?"card":"datatable");return T.useEffect(()=>{const r=t.current;function i(){r.matches?n("card"):n("datatable")}return r.addEventListener("change",i),()=>r.removeEventListener("change",i)},[]),{view:e}}const ZS=({children:t,columns:e,deleteHook:n,uniqueIdHrefHandler:r,withFilters:i,queryHook:o,onRecordsDeleted:u,selectable:l,id:d,RowDetail:h,withPreloads:g,queryFilters:y,deep:w,inlineInsertHook:v,bulkEditHook:C,urlMask:E,CardComponent:$})=>{var V,H,ie,G;yn();const{view:O}=Bse(),_=kf(),{query:R}=nae({query:{uniqueId:o.UKEY}}),[k,P]=T.useState(e.map(Q=>({columnName:Q.name,width:Q.width})));T.useEffect(()=>{var Q,he,$e,Ce;if((he=(Q=R.data)==null?void 0:Q.data)!=null&&he.sizes)P(JSON.parse((Ce=($e=R.data)==null?void 0:$e.data)==null?void 0:Ce.sizes));else{const Be=localStorage.getItem(`table_${o.UKEY}`);Be&&P(JSON.parse(Be))}},[(H=(V=R.data)==null?void 0:V.data)==null?void 0:H.sizes]);const{submit:L}=rae({queryClient:_}),F=n&&n({queryClient:_}),q=tae({urlMask:"",submitDelete:F==null?void 0:F.submit,onRecordsDeleted:u?()=>u({queryClient:_}):void 0}),[Y]=T.useState(e.map(Q=>({columnName:Q.name,width:Q.width}))),X=Q=>{P(Q);const he=JSON.stringify(Q);L({uniqueId:o.UKEY,sizes:he}),localStorage.setItem(`table_${o.UKEY}`,he)};let ue=({value:Q})=>N.jsx("div",{style:{position:"relative"},children:N.jsx(MS,{href:r&&r(Q),children:Q})}),me=Q=>N.jsx(Kie,{formatterComponent:ue,...Q});const te=[...y||[]],be=T.useMemo(()=>pse(te),[te]),we=o({query:{deep:w===void 0?!0:w,...q.debouncedFilters,withPreloads:g},queryClient:_});we.jsonQuery=be;const B=((G=(ie=we.query.data)==null?void 0:ie.data)==null?void 0:G.items)||[];return N.jsxs(N.Fragment,{children:[O==="map"&&N.jsx(jse,{columns:e,deleteHook:n,uniqueIdHrefHandler:r,q:we,udf:q}),O==="card"&&N.jsx(Use,{columns:e,CardComponent:$,jsonQuery:be,deleteHook:n,uniqueIdHrefHandler:r,q:we,udf:q}),O==="datatable"&&N.jsxs(dse,{udf:q,selectable:l,bulkEditHook:C,RowDetail:h,uniqueIdHrefHandler:r,onColumnWidthsChange:X,columns:e,columnSizes:k,inlineInsertHook:v,rows:B,defaultColumnWidths:Y,query:we.query,booleanColumns:["uniqueId"],withFilters:i,children:[N.jsx(me,{for:["uniqueId"]}),t]})]})};function qse(t){const{execFnOverride:e,queryClient:n,query:r}=t||{},{options:i,execFn:o}=T.useContext(Sn),u=e?e(i):o?o(i):Qr(i);let d=`${"/public-join-key".substr(1)}?${new URLSearchParams(Ta(r)).toString()}`;const g=Fr(v=>u("DELETE",d,v)),y=(v,C)=>v;return{mutation:g,submit:(v,C)=>new Promise((E,$)=>{g.mutate(v,{onSuccess(O){n==null||n.setQueryData("*abac.PublicJoinKeyEntity",_=>y(_)),n==null||n.invalidateQueries("*abac.PublicJoinKeyEntity"),E(O)},onError(O){C==null||C.setErrors(Ru(O)),$(O)}})}),fnUpdater:y}}function _M({queryOptions:t,query:e,queryClient:n,execFnOverride:r,unauthorized:i,optionFn:o}){var _,R,k;const{options:u,execFn:l}=T.useContext(Sn),d=o?o(u):u,h=r?r(d):l?l(d):Qr(d);let y=`${"/public-join-keys".substr(1)}?${ny.stringify(e)}`;const w=()=>h("GET",y),v=(_=d==null?void 0:d.headers)==null?void 0:_.authorization,C=v!="undefined"&&v!=null&&v!=null&&v!="null"&&!!v;let E=!0;!C&&!i&&(E=!1);const $=Go(["*abac.PublicJoinKeyEntity",d,e],w,{cacheTime:1e3,retry:!1,keepPreviousData:!0,enabled:E,...t||{}}),O=((k=(R=$.data)==null?void 0:R.data)==null?void 0:k.items)||[];return{query:$,items:O,keyExtractor:P=>P.uniqueId}}_M.UKEY="*abac.PublicJoinKeyEntity";const Hse={roleName:"Role name",uniqueId:"Unique Id"},zse={roleName:"Nazwa roli",uniqueId:"Unikalny identyfikator"},Vse={...Hse,$pl:zse},Gse=t=>[{name:"uniqueId",title:t.uniqueId,width:200},{name:"role",title:t.roleName,width:200,getCellValue:e=>{var n;return(n=e.role)==null?void 0:n.name}}],Wse=()=>{const t=Kn(Vse);return N.jsx(N.Fragment,{children:N.jsx(ZS,{columns:Gse(t),queryHook:_M,uniqueIdHrefHandler:e=>eo.Navigation.single(e),deleteHook:qse})})},e3=({children:t,newEntityHandler:e,exportPath:n,pageTitle:r})=>{YN(r);const i=Lr(),{locale:o}=$i();return QX({path:n||""}),tZ(e?()=>e({locale:o,router:i}):void 0,Bn.NewEntity),N.jsx(N.Fragment,{children:t})},Kse=()=>{const t=yn();return N.jsx(N.Fragment,{children:N.jsx(e3,{pageTitle:t.fbMenu.publicJoinKey,newEntityHandler:({locale:e,router:n})=>{n.push(eo.Navigation.create())},children:N.jsx(Wse,{})})})};function Yse(){return N.jsxs(N.Fragment,{children:[N.jsx(mn,{element:N.jsx(SP,{}),path:eo.Navigation.Rcreate}),N.jsx(mn,{element:N.jsx(Ire,{}),path:eo.Navigation.Rsingle}),N.jsx(mn,{element:N.jsx(SP,{}),path:eo.Navigation.Redit}),N.jsx(mn,{element:N.jsx(Kse,{}),path:eo.Navigation.Rquery})]})}function AM({queryOptions:t,execFnOverride:e,query:n,queryClient:r,unauthorized:i}){var $;const{options:o,execFn:u}=T.useContext(Sn),l=e?e(o):u?u(o):Qr(o);let h=`${"/role/:uniqueId".substr(1)}?${new URLSearchParams(Ta(n)).toString()}`,g=!0;h=h.replace(":uniqueId",n[":uniqueId".replace(":","")]),n[":uniqueId".replace(":","")]===void 0&&(g=!1);const y=()=>l("GET",h),w=($=o==null?void 0:o.headers)==null?void 0:$.authorization,v=w!="undefined"&&w!=null&&w!=null&&w!="null"&&!!w;let C=!0;return g?!v&&!i&&(C=!1):C=!1,{query:Go([o,n,"*abac.RoleEntity"],y,{cacheTime:1001,retry:!1,keepPreviousData:!0,enabled:C,...t||{}})}}function Jse(t){let{queryClient:e,query:n,execFnOverride:r}=t||{};n=n||{};const{options:i,execFn:o}=T.useContext(Sn),u=r?r(i):o?o(i):Qr(i);let d=`${"/role".substr(1)}?${new URLSearchParams(Ta(n)).toString()}`;const g=Fr(v=>u("PATCH",d,v)),y=(v,C)=>{var E;return v?(v.data&&(C!=null&&C.data)&&(v.data.items=[C.data,...((E=v==null?void 0:v.data)==null?void 0:E.items)||[]]),v):{data:{items:[]}}};return{mutation:g,submit:(v,C)=>new Promise((E,$)=>{g.mutate(v,{onSuccess(O){e==null||e.setQueriesData("*abac.RoleEntity",_=>y(_,O)),E(O)},onError(O){C==null||C.setErrors(Ru(O)),$(O)}})}),fnUpdater:y}}function Qse(t){let{queryClient:e,query:n,execFnOverride:r}=t||{};n=n||{};const{options:i,execFn:o}=T.useContext(Sn),u=r?r(i):o?o(i):Qr(i);let d=`${"/role".substr(1)}?${new URLSearchParams(Ta(n)).toString()}`;const g=Fr(v=>u("POST",d,v)),y=(v,C)=>{var E;return v?(v.data&&(C!=null&&C.data)&&(v.data.items=[C.data,...((E=v==null?void 0:v.data)==null?void 0:E.items)||[]]),v):{data:{items:[]}}};return{mutation:g,submit:(v,C)=>new Promise((E,$)=>{g.mutate(v,{onSuccess(O){e==null||e.setQueryData("*abac.RoleEntity",_=>y(_,O)),E(O)},onError(O){C==null||C.setErrors(Ru(O)),$(O)}})}),fnUpdater:y}}function Xse({value:t,onChange:e,...n}){const r=T.useRef();return T.useEffect(()=>{r.current.indeterminate=t==="indeterminate"},[r,t]),N.jsx("input",{...n,type:"checkbox",ref:r,onChange:i=>{e("checked")},checked:t==="checked",className:"form-check-input"})}const Zse=({errors:t,error:e})=>{if(!e&&!t)return null;let n={};e&&e.errors?n=e.errors:t&&(n=t);const r=Object.keys(n);return N.jsxs("div",{style:{minHeight:"30px"},children:[(t==null?void 0:t.form)&&N.jsx("div",{className:"with-fade-in",style:{color:"red"},children:t.form}),n.length&&N.jsxs("div",{children:[((e==null?void 0:e.title)||(e==null?void 0:e.message))&&N.jsx("span",{children:(e==null?void 0:e.title)||(e==null?void 0:e.message)}),r.map(i=>N.jsx("div",{children:N.jsxs("span",{children:["• ",n[i]]})},i))]})]})};function _s(t,e){if(!{}.hasOwnProperty.call(t,e))throw new TypeError("attempted to use private field on non-instance");return t}var eue=0;function t3(t){return"__private_"+eue+++"_"+t}var mp=t3("uniqueId"),gp=t3("name"),gl=t3("children"),hE=t3("isJsonAppliable");class $a{get uniqueId(){return _s(this,mp)[mp]}set uniqueId(e){_s(this,mp)[mp]=String(e)}setUniqueId(e){return this.uniqueId=e,this}get name(){return _s(this,gp)[gp]}set name(e){_s(this,gp)[gp]=String(e)}setName(e){return this.name=e,this}get children(){return _s(this,gl)[gl]}set children(e){Array.isArray(e)&&(e.length>0&&e[0]instanceof $a?_s(this,gl)[gl]=e:_s(this,gl)[gl]=e.map(n=>new $a(n)))}setChildren(e){return this.children=e,this}constructor(e=void 0){if(Object.defineProperty(this,hE,{value:tue}),Object.defineProperty(this,mp,{writable:!0,value:""}),Object.defineProperty(this,gp,{writable:!0,value:""}),Object.defineProperty(this,gl,{writable:!0,value:[]}),e!=null)if(typeof e=="string")this.applyFromObject(JSON.parse(e));else if(_s(this,hE)[hE](e))this.applyFromObject(e);else throw new Error("Instance cannot be created on an unknown value, check the content being passed. got: "+typeof e)}applyFromObject(e={}){const n=e;n.uniqueId!==void 0&&(this.uniqueId=n.uniqueId),n.name!==void 0&&(this.name=n.name),n.children!==void 0&&(this.children=n.children)}toJSON(){return{uniqueId:_s(this,mp)[mp],name:_s(this,gp)[gp],children:_s(this,gl)[gl]}}toString(){return JSON.stringify(this)}static get Fields(){return{uniqueId:"uniqueId",name:"name",children$:"children",get children(){return xl("children[:i]",$a.Fields)}}}static from(e){return new $a(e)}static with(e){return new $a(e)}copyWith(e){return new $a({...this.toJSON(),...e})}clone(){return new $a(this.toJSON())}}function tue(t){const e=globalThis,n=typeof e.Buffer<"u"&&typeof e.Buffer.isBuffer=="function"&&e.Buffer.isBuffer(t),r=typeof e.Blob<"u"&&t instanceof e.Blob;return t&&typeof t=="object"&&!Array.isArray(t)&&!n&&!(t instanceof ArrayBuffer)&&!r}var R1;function yl(t,e){if(!{}.hasOwnProperty.call(t,e))throw new TypeError("attempted to use private field on non-instance");return t}var nue=0;function ET(t){return"__private_"+nue+++"_"+t}const rue=t=>{const e=oo(),n=(t==null?void 0:t.ctx)??e??void 0,[r,i]=T.useState(!1),[o,u]=T.useState(),l=()=>(i(!1),Il.Fetch({headers:t==null?void 0:t.headers},{creatorFn:t==null?void 0:t.creatorFn,qs:t==null?void 0:t.qs,ctx:n,onMessage:t==null?void 0:t.onMessage,overrideUrl:t==null?void 0:t.overrideUrl}).then(h=>(h.done.then(()=>{i(!0)}),u(h.response),h.response.result)));return{...Go({queryKey:[Il.NewUrl(t==null?void 0:t.qs)],queryFn:l,...t||{}}),isCompleted:r,response:o}};class Il{}R1=Il;Il.URL="/capabilitiesTree";Il.NewUrl=t=>so(R1.URL,void 0,t);Il.Method="get";Il.Fetch$=async(t,e,n,r)=>io(r??R1.NewUrl(t),{method:R1.Method,...n||{}},e);Il.Fetch=async(t,{creatorFn:e,qs:n,ctx:r,onMessage:i,overrideUrl:o}={creatorFn:u=>new Dp(u)})=>{e=e||(l=>new Dp(l));const u=await R1.Fetch$(n,r,t,o);return ao(u,l=>{const d=new _a;return e&&d.setCreator(e),d.inject(l),d},i,t==null?void 0:t.signal)};Il.Definition={name:"CapabilitiesTree",cliName:"treex",url:"/capabilitiesTree",method:"get",description:"dLists all of the capabilities in database as a array of string as root access",out:{envelope:"GResponse",fields:[{name:"capabilities",type:"collection",target:"CapabilityInfoDto"},{name:"nested",type:"collection",target:"CapabilityInfoDto"}]}};var vl=ET("capabilities"),bl=ET("nested"),pE=ET("isJsonAppliable");class Dp{get capabilities(){return yl(this,vl)[vl]}set capabilities(e){Array.isArray(e)&&(e.length>0&&e[0]instanceof $a?yl(this,vl)[vl]=e:yl(this,vl)[vl]=e.map(n=>new $a(n)))}setCapabilities(e){return this.capabilities=e,this}get nested(){return yl(this,bl)[bl]}set nested(e){Array.isArray(e)&&(e.length>0&&e[0]instanceof $a?yl(this,bl)[bl]=e:yl(this,bl)[bl]=e.map(n=>new $a(n)))}setNested(e){return this.nested=e,this}constructor(e=void 0){if(Object.defineProperty(this,pE,{value:iue}),Object.defineProperty(this,vl,{writable:!0,value:[]}),Object.defineProperty(this,bl,{writable:!0,value:[]}),e!=null)if(typeof e=="string")this.applyFromObject(JSON.parse(e));else if(yl(this,pE)[pE](e))this.applyFromObject(e);else throw new Error("Instance cannot be created on an unknown value, check the content being passed. got: "+typeof e)}applyFromObject(e={}){const n=e;n.capabilities!==void 0&&(this.capabilities=n.capabilities),n.nested!==void 0&&(this.nested=n.nested)}toJSON(){return{capabilities:yl(this,vl)[vl],nested:yl(this,bl)[bl]}}toString(){return JSON.stringify(this)}static get Fields(){return{capabilities$:"capabilities",get capabilities(){return xl("capabilities[:i]",$a.Fields)},nested$:"nested",get nested(){return xl("nested[:i]",$a.Fields)}}}static from(e){return new Dp(e)}static with(e){return new Dp(e)}copyWith(e){return new Dp({...this.toJSON(),...e})}clone(){return new Dp(this.toJSON())}}function iue(t){const e=globalThis,n=typeof e.Buffer<"u"&&typeof e.Buffer.isBuffer=="function"&&e.Buffer.isBuffer(t),r=typeof e.Blob<"u"&&t instanceof e.Blob;return t&&typeof t=="object"&&!Array.isArray(t)&&!n&&!(t instanceof ArrayBuffer)&&!r}function RM({onChange:t,value:e,prefix:n}){var l,d;const{data:r,error:i}=rue({}),o=((d=(l=r==null?void 0:r.data)==null?void 0:l.item)==null?void 0:d.nested)||[],u=(h,g)=>{let y=[...e||[]];g==="checked"&&y.push(h),g==="unchecked"&&(y=y.filter(w=>w!==h)),t&&t(y)};return N.jsxs("nav",{className:"tree-nav",children:[N.jsx(Zse,{error:i}),N.jsx("ul",{className:"list",children:N.jsx(PM,{items:o,onNodeChange:u,value:e,prefix:n})})]})}function PM({items:t,onNodeChange:e,value:n,prefix:r,autoChecked:i}){const o=r?r+".":"";return N.jsx(N.Fragment,{children:t.map(u=>{var h;const l=`${o}${u.uniqueId}${(h=u.children)!=null&&h.length?".*":""}`,d=(n||[]).includes(l)?"checked":"unchecked";return N.jsxs("li",{children:[N.jsx("span",{children:N.jsxs("label",{className:i?"auto-checked":"",children:[N.jsx(Xse,{value:d,onChange:g=>{e(l,d==="checked"?"unchecked":"checked")}}),u.uniqueId]})}),u.children&&N.jsx("ul",{children:N.jsx(PM,{autoChecked:i||d==="checked",onNodeChange:e,value:n,items:u.children,prefix:o+u.uniqueId})})]},u.uniqueId)})})}const aue=(t,e)=>t!=null&&t.length&&!(e!=null&&e.length)?t.map(n=>n.uniqueId):e||[],oue=({form:t,isEditing:e})=>{const{values:n,setFieldValue:r,errors:i}=t,o=yn();return N.jsxs(N.Fragment,{children:[N.jsx(Bo,{value:n.name,onChange:u=>r(kr.Fields.name,u,!1),errorMessage:i.name,label:o.wokspaces.invite.role,autoFocus:!e,hint:o.wokspaces.invite.roleHint}),N.jsx(RM,{onChange:u=>r(kr.Fields.capabilitiesListId,u,!1),value:aue(n.capabilities,n.capabilitiesListId)})]})},WP=({data:t})=>{const{router:e,uniqueId:n,queryClient:r,locale:i}=K1({data:t}),o=yn(),u=AM({query:{uniqueId:n},queryOptions:{enabled:!!n}}),l=Qse({queryClient:r}),d=Jse({queryClient:r});return N.jsx(JO,{postHook:l,getSingleHook:u,patchHook:d,beforeSubmit:h=>{var g;return((g=h.capabilities)==null?void 0:g.length)>0&&h.capabilitiesListId===null?{...h,capabilitiesListId:h.capabilities.map(y=>y.uniqueId)}:h},onCancel:()=>{e.goBackOrDefault(kr.Navigation.query(void 0,i))},onFinishUriResolver:(h,g)=>{var y;return kr.Navigation.single((y=h.data)==null?void 0:y.uniqueId,g)},Form:oue,onEditTitle:o.fb.editRole,onCreateTitle:o.fb.newRole,data:t})},sue=Ae.createContext({setToken(){},setSession(){},signout(){},ref:{token:""},isAuthenticated:!1});function uue(){const t=localStorage.getItem("app_auth_state");if(t){try{const e=JSON.parse(t);return e?{...e}:{}}catch{}return{}}}uue();function IM(t){const e=T.useContext(sue);T.useEffect(()=>{e.setToken(t||"")},[t])}function NM({title:t,children:e,className:n,description:r}){return N.jsxs("div",{className:Ho("page-section",n),children:[t?N.jsx("h2",{className:"",children:t}):null,r?N.jsx("p",{className:"",children:r}):null,N.jsx("div",{className:"mt-4",children:e})]})}const lue=()=>{var l;const t=Lr();kf();const e=t.query.uniqueId,n=yn();$i();const[r,i]=T.useState([]),o=AM({query:{uniqueId:e,deep:!0}});var u=(l=o.query.data)==null?void 0:l.data;return IM((u==null?void 0:u.name)||""),T.useEffect(()=>{var d;i((d=u==null?void 0:u.capabilities)==null?void 0:d.map(h=>h.uniqueId||""))},[u==null?void 0:u.capabilities]),N.jsx(N.Fragment,{children:N.jsxs(fT,{editEntityHandler:()=>{t.push(kr.Navigation.edit(e))},getSingleHook:o,children:[N.jsx(dT,{entity:u,fields:[{label:n.role.name,elem:u==null?void 0:u.name}]}),N.jsx(NM,{title:n.role.permissions,className:"mt-3",children:N.jsx(RM,{value:r})})]})})},cue=t=>[{name:kr.Fields.uniqueId,title:t.table.uniqueId,width:200},{name:kr.Fields.name,title:t.role.name,width:200}];function fue(t){const{execFnOverride:e,queryClient:n,query:r}=t||{},{options:i,execFn:o}=T.useContext(Sn),u=e?e(i):o?o(i):Qr(i);let d=`${"/role".substr(1)}?${new URLSearchParams(Ta(r)).toString()}`;const g=Fr(v=>u("DELETE",d,v)),y=(v,C)=>v;return{mutation:g,submit:(v,C)=>new Promise((E,$)=>{g.mutate(v,{onSuccess(O){n==null||n.setQueryData("*abac.RoleEntity",_=>y(_)),n==null||n.invalidateQueries("*abac.RoleEntity"),E(O)},onError(O){C==null||C.setErrors(Ru(O)),$(O)}})}),fnUpdater:y}}const due=()=>{const t=yn();return N.jsx(N.Fragment,{children:N.jsx(ZS,{columns:cue(t),queryHook:YS,uniqueIdHrefHandler:e=>kr.Navigation.single(e),deleteHook:fue})})},hue=()=>{const t=yn();return nZ(),N.jsx(N.Fragment,{children:N.jsx(e3,{newEntityHandler:({locale:e,router:n})=>n.push(kr.Navigation.create()),pageTitle:t.fbMenu.roles,children:N.jsx(due,{})})})};function pue(){return N.jsxs(N.Fragment,{children:[N.jsx(mn,{element:N.jsx(WP,{}),path:kr.Navigation.Rcreate}),N.jsx(mn,{element:N.jsx(lue,{}),path:kr.Navigation.Rsingle}),N.jsx(mn,{element:N.jsx(WP,{}),path:kr.Navigation.Redit}),N.jsx(mn,{element:N.jsx(hue,{}),path:kr.Navigation.Rquery})]})}({...Vt.Fields});function MM({queryOptions:t,query:e,queryClient:n,execFnOverride:r,unauthorized:i,optionFn:o}){var _,R,k;const{options:u,execFn:l}=T.useContext(Sn),d=o?o(u):u,h=r?r(d):l?l(d):Qr(d);let y=`${"/users/invitations".substr(1)}?${ny.stringify(e)}`;const w=()=>h("GET",y),v=(_=d==null?void 0:d.headers)==null?void 0:_.authorization,C=v!="undefined"&&v!=null&&v!=null&&v!="null"&&!!v;let E=!0;!C&&!i&&(E=!1);const $=Go(["*abac.UserInvitationsQueryColumns",d,e],w,{cacheTime:1e3,retry:!1,keepPreviousData:!0,enabled:E,...t||{}}),O=((k=(R=$.data)==null?void 0:R.data)==null?void 0:k.items)||[];return{query:$,items:O,keyExtractor:P=>P.uniqueId}}MM.UKEY="*abac.UserInvitationsQueryColumns";const mue={confirmRejectTitle:"Reject invite",reject:"Reject",workspaceName:"Workspace Name",passport:"Passport",confirmAcceptDescription:"Are you sure that you are confirming to join?",confirmRejectDescription:"Are you sure to reject this invitation? You need to be reinvited by admins again.",acceptBtn:null,accept:"Accept",roleName:"Role name",method:"Method",actions:"Actions",confirmAcceptTitle:"Confirm invitation"},gue={actions:"Akcje",confirmRejectTitle:"Odrzuć zaproszenie",method:"Metoda",roleName:"Nazwa roli",accept:"Akceptuj",confirmAcceptDescription:"Czy na pewno chcesz dołączyć?",confirmAcceptTitle:"Potwierdź zaproszenie",confirmRejectDescription:"Czy na pewno chcesz odrzucić to zaproszenie? Aby dołączyć ponownie, musisz zostać ponownie zaproszony przez administratorów.",passport:"Paszport",reject:"Odrzuć",workspaceName:"Nazwa przestrzeni roboczej",acceptBtn:"Tak"},yue={...mue,$pl:gue},vue=(t,e,n)=>[{name:"roleName",title:t.roleName,width:100},{name:"workspaceName",title:t.workspaceName,width:100},{name:"method",title:t.method,width:100,getCellValue:r=>r.type},{name:"value",title:t.passport,width:100,getCellValue:r=>r.value},{name:"actions",title:t.actions,width:100,getCellValue:r=>N.jsxs(N.Fragment,{children:[N.jsx("button",{className:"btn btn-sm btn-success",style:{marginRight:"2px"},onClick:i=>{e(r)},children:t.accept}),N.jsx("button",{onClick:i=>{n(r)},className:"btn btn-sm btn-danger",children:t.reject})]})}];var P1;function Af(t,e){if(!{}.hasOwnProperty.call(t,e))throw new TypeError("attempted to use private field on non-instance");return t}var bue=0;function n3(t){return"__private_"+bue+++"_"+t}const wue=t=>{const n=oo()??void 0,[r,i]=T.useState(!1),[o,u]=T.useState();return{...Fr({mutationFn:h=>(i(!1),Qf.Fetch({body:h,headers:t==null?void 0:t.headers},{creatorFn:t==null?void 0:t.creatorFn,qs:t==null?void 0:t.qs,ctx:n,onMessage:t==null?void 0:t.onMessage,overrideUrl:t==null?void 0:t.overrideUrl}).then(g=>(g.done.then(()=>{i(!0)}),u(g.response),g.response.result)))}),isCompleted:r,response:o}};class Qf{}P1=Qf;Qf.URL="/user/invitation/accept";Qf.NewUrl=t=>so(P1.URL,void 0,t);Qf.Method="post";Qf.Fetch$=async(t,e,n,r)=>io(r??P1.NewUrl(t),{method:P1.Method,...n||{}},e);Qf.Fetch=async(t,{creatorFn:e,qs:n,ctx:r,onMessage:i,overrideUrl:o}={creatorFn:u=>new Fp(u)})=>{e=e||(l=>new Fp(l));const u=await P1.Fetch$(n,r,t,o);return ao(u,l=>{const d=new _a;return e&&d.setCreator(e),d.inject(l),d},i,t==null?void 0:t.signal)};Qf.Definition={name:"AcceptInvite",url:"/user/invitation/accept",method:"post",description:"Use it when user accepts an invitation, and it will complete the joining process",in:{fields:[{name:"invitationUniqueId",description:"The invitation id which will be used to process",type:"string",tags:{validate:"required"}}]},out:{envelope:"GResponse",fields:[{name:"accepted",type:"bool"}]}};var yp=n3("invitationUniqueId"),mE=n3("isJsonAppliable");class Ug{get invitationUniqueId(){return Af(this,yp)[yp]}set invitationUniqueId(e){Af(this,yp)[yp]=String(e)}setInvitationUniqueId(e){return this.invitationUniqueId=e,this}constructor(e=void 0){if(Object.defineProperty(this,mE,{value:Sue}),Object.defineProperty(this,yp,{writable:!0,value:""}),e!=null)if(typeof e=="string")this.applyFromObject(JSON.parse(e));else if(Af(this,mE)[mE](e))this.applyFromObject(e);else throw new Error("Instance cannot be created on an unknown value, check the content being passed. got: "+typeof e)}applyFromObject(e={}){const n=e;n.invitationUniqueId!==void 0&&(this.invitationUniqueId=n.invitationUniqueId)}toJSON(){return{invitationUniqueId:Af(this,yp)[yp]}}toString(){return JSON.stringify(this)}static get Fields(){return{invitationUniqueId:"invitationUniqueId"}}static from(e){return new Ug(e)}static with(e){return new Ug(e)}copyWith(e){return new Ug({...this.toJSON(),...e})}clone(){return new Ug(this.toJSON())}}function Sue(t){const e=globalThis,n=typeof e.Buffer<"u"&&typeof e.Buffer.isBuffer=="function"&&e.Buffer.isBuffer(t),r=typeof e.Blob<"u"&&t instanceof e.Blob;return t&&typeof t=="object"&&!Array.isArray(t)&&!n&&!(t instanceof ArrayBuffer)&&!r}var vp=n3("accepted"),gE=n3("isJsonAppliable");class Fp{get accepted(){return Af(this,vp)[vp]}set accepted(e){Af(this,vp)[vp]=!!e}setAccepted(e){return this.accepted=e,this}constructor(e=void 0){if(Object.defineProperty(this,gE,{value:Cue}),Object.defineProperty(this,vp,{writable:!0,value:void 0}),e!=null)if(typeof e=="string")this.applyFromObject(JSON.parse(e));else if(Af(this,gE)[gE](e))this.applyFromObject(e);else throw new Error("Instance cannot be created on an unknown value, check the content being passed. got: "+typeof e)}applyFromObject(e={}){const n=e;n.accepted!==void 0&&(this.accepted=n.accepted)}toJSON(){return{accepted:Af(this,vp)[vp]}}toString(){return JSON.stringify(this)}static get Fields(){return{accepted:"accepted"}}static from(e){return new Fp(e)}static with(e){return new Fp(e)}copyWith(e){return new Fp({...this.toJSON(),...e})}clone(){return new Fp(this.toJSON())}}function Cue(t){const e=globalThis,n=typeof e.Buffer<"u"&&typeof e.Buffer.isBuffer=="function"&&e.Buffer.isBuffer(t),r=typeof e.Blob<"u"&&t instanceof e.Blob;return t&&typeof t=="object"&&!Array.isArray(t)&&!n&&!(t instanceof ArrayBuffer)&&!r}const $ue=()=>{const t=Kn(yue),e=T.useContext(fM),n=wue(),r=o=>{e.openModal({title:t.confirmAcceptTitle,confirmButtonLabel:t.acceptBtn,component:()=>N.jsx("div",{children:t.confirmAcceptDescription}),onSubmit:async()=>n.mutateAsync(new Ug({invitationUniqueId:o.uniqueId})).then(u=>{alert("Successful.")})})},i=o=>{e.openModal({title:t.confirmRejectTitle,confirmButtonLabel:t.acceptBtn,component:()=>N.jsx("div",{children:t.confirmRejectDescription}),onSubmit:async()=>!0})};return N.jsx(N.Fragment,{children:N.jsx(ZS,{selectable:!1,columns:vue(t,r,i),queryHook:MM})})},Eue=()=>{const t=yn();return N.jsx(N.Fragment,{children:N.jsx(e3,{pageTitle:t.fbMenu.myInvitations,children:N.jsx($ue,{})})})};function xue(){return N.jsx(N.Fragment,{children:N.jsx(mn,{element:N.jsx(Eue,{}),path:"user-invitations"})})}function kM({queryOptions:t,execFnOverride:e,query:n,queryClient:r,unauthorized:i}){var $;const{options:o,execFn:u}=T.useContext(Sn),l=e?e(o):u?u(o):Qr(o);let h=`${"/workspace-invite/:uniqueId".substr(1)}?${new URLSearchParams(Ta(n)).toString()}`,g=!0;h=h.replace(":uniqueId",n[":uniqueId".replace(":","")]),n[":uniqueId".replace(":","")]===void 0&&(g=!1);const y=()=>l("GET",h),w=($=o==null?void 0:o.headers)==null?void 0:$.authorization,v=w!="undefined"&&w!=null&&w!=null&&w!="null"&&!!w;let C=!0;return g?!v&&!i&&(C=!1):C=!1,{query:Go([o,n,"*abac.WorkspaceInviteEntity"],y,{cacheTime:1001,retry:!1,keepPreviousData:!0,enabled:C,...t||{}})}}function Oue(t){let{queryClient:e,query:n,execFnOverride:r}=t||{};n=n||{};const{options:i,execFn:o}=T.useContext(Sn),u=r?r(i):o?o(i):Qr(i);let d=`${"/workspace-invite".substr(1)}?${new URLSearchParams(Ta(n)).toString()}`;const g=Fr(v=>u("PATCH",d,v)),y=(v,C)=>{var E;return v?(v.data&&(C!=null&&C.data)&&(v.data.items=[C.data,...((E=v==null?void 0:v.data)==null?void 0:E.items)||[]]),v):{data:{items:[]}}};return{mutation:g,submit:(v,C)=>new Promise((E,$)=>{g.mutate(v,{onSuccess(O){e==null||e.setQueriesData("*abac.WorkspaceInviteEntity",_=>y(_,O)),E(O)},onError(O){C==null||C.setErrors(Ru(O)),$(O)}})}),fnUpdater:y}}function Tue(t){let{queryClient:e,query:n,execFnOverride:r}=t||{};n=n||{};const{options:i,execFn:o}=T.useContext(Sn),u=r?r(i):o?o(i):Qr(i);let d=`${"/workspace/invite".substr(1)}?${new URLSearchParams(Ta(n)).toString()}`;const g=Fr(v=>u("POST",d,v)),y=(v,C)=>{var E;return v?(v.data&&(C!=null&&C.data)&&(v.data.items=[C.data,...((E=v==null?void 0:v.data)==null?void 0:E.items)||[]]),v):{data:{items:[]}}};return{mutation:g,submit:(v,C)=>new Promise((E,$)=>{g.mutate(v,{onSuccess(O){e==null||e.setQueryData("*abac.WorkspaceInviteEntity",_=>y(_,O)),E(O)},onError(O){C==null||C.setErrors(Ru(O)),$(O)}})}),fnUpdater:y}}const _ue={targetLocaleHint:"If the user has a different language available, the initial interface will be on th selected value.",forcedEmailAddress:"Force Email Address",forcedEmailAddressHint:"If checked, user can only make the invitation using this email address, and won't be able to change it. If account exists, they need to accept invitation there.",forcedPhone:"Force Phone Number",forcedPhoneHint:"If checked, user only can create or join using this phone number",coverLetter:"Cover letter",coverLetterHint:"The invitation text that user would get over sms or email, you can modify it here.",targetLocale:"Target Locale"},Aue={targetLocaleHint:"Jeśli użytkownik ma dostępny inny język, interfejs początkowy będzie ustawiony na wybraną wartość.",coverLetter:"List motywacyjny",coverLetterHint:"Treść zaproszenia, którą użytkownik otrzyma przez SMS lub e-mail – możesz ją tutaj edytować.",forcedEmailAddress:"Wymuszony adres e-mail",forcedEmailAddressHint:"Jeśli zaznaczone, użytkownik może wysłać zaproszenie tylko na ten adres e-mail i nie będzie mógł go zmienić. Jeśli konto już istnieje, użytkownik musi zaakceptować zaproszenie na tym koncie.",forcedPhone:"Wymuszony numer telefonu",forcedPhoneHint:"Jeśli zaznaczone, użytkownik może utworzyć konto lub dołączyć tylko przy użyciu tego numeru telefonu",targetLocale:"Docelowy język"},DM={..._ue,$pl:Aue};function Rue(t){return e=>Pue({items:t,...e})}function Pue(t){var o,u;let e=((o=t.query)==null?void 0:o.itemsPerPage)||2,n=t.query.startIndex||0,r=t.items||[];return(u=t.query)!=null&&u.jsonQuery&&(r=iq(r,t.query.jsonQuery)),r=r.slice(n,n+e),{query:{data:{data:{items:r,totalItems:r.length,totalAvailableItems:r.length}},dataUpdatedAt:0,error:null,errorUpdateCount:0,errorUpdatedAt:0,failureCount:0,isError:!1,isFetched:!1,isFetchedAfterMount:!1,isFetching:!1,isIdle:!1,isLoading:!1,isLoadingError:!1,isPlaceholderData:!1,isPreviousData:!1,isRefetchError:!1,isRefetching:!1,isStale:!1,remove(){console.log("Use as query has not implemented this.")},refetch(){return console.log("Refetch is not working actually."),Promise.resolve(void 0)},isSuccess:!0,status:"success"},items:r}}var Kx=function(){return Kx=Object.assign||function(t){for(var e,n=1,r=arguments.length;n"u"||t===""?[]:Array.isArray(t)?t:t.split(" ")},kue=function(t,e){return XP(t).concat(XP(e))},Due=function(){return window.InputEvent&&typeof InputEvent.prototype.getTargetRanges=="function"},Fue=function(t){if(!("isConnected"in Node.prototype)){for(var e=t,n=t.parentNode;n!=null;)e=n,n=e.parentNode;return e===t.ownerDocument}return t.isConnected},ZP=function(t,e){t!==void 0&&(t.mode!=null&&typeof t.mode=="object"&&typeof t.mode.set=="function"?t.mode.set(e):t.setMode(e))},Yx=function(){return Yx=Object.assign||function(t){for(var e,n=1,r=arguments.length;n0?setTimeout(h,u):h()},r=function(){for(var i=t.pop();i!=null;i=t.pop())i.deleteScripts()};return{loadList:n,reinitialize:r}},Bue=jue(),vE=function(t){var e=t;return e&&e.tinymce?e.tinymce:null},que=(function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(r[o]=i[o])},t(e,n)};return function(e,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");t(e,n);function r(){this.constructor=e}e.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}})(),yS=function(){return yS=Object.assign||function(t){for(var e,n=1,r=arguments.length;nu([new File([l],d)]),o=(l,d=!1)=>new Promise((h,g)=>{const y=new JH(l,{endpoint:Ci.REMOTE_SERVICE+"tus",onBeforeRequest(w){w.setHeader("authorization",t.token),w.setHeader("workspace-id",e==null?void 0:e.workspaceId)},headers:{},metadata:{filename:l.name,path:"/database/users",filetype:l.type},onSuccess(){var v;const w=(v=y.url)==null?void 0:v.match(/([a-z0-9]){10,}/gi);h(`${w}`)},onError(w){g(w)},onProgress(w,v){var E,$;const C=($=(E=y.url)==null?void 0:E.match(/([a-z0-9]){10,}/gi))==null?void 0:$.toString();if(C){const O={uploadId:C,bytesSent:w,filename:l.name,bytesTotal:v};d!==!0&&r(_=>zue(_,O))}}});y.start()}),u=(l,d=!1)=>l.map(h=>o(h));return{upload:u,activeUploads:n,uploadBlob:i,uploadSingle:o}}var bE={},N0={},e5;function Gue(){if(e5)return N0;e5=1,N0.byteLength=l,N0.toByteArray=h,N0.fromByteArray=w;for(var t=[],e=[],n=typeof Uint8Array<"u"?Uint8Array:Array,r="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",i=0,o=r.length;i0)throw new Error("Invalid string. Length must be a multiple of 4");var E=v.indexOf("=");E===-1&&(E=C);var $=E===C?0:4-E%4;return[E,$]}function l(v){var C=u(v),E=C[0],$=C[1];return(E+$)*3/4-$}function d(v,C,E){return(C+E)*3/4-E}function h(v){var C,E=u(v),$=E[0],O=E[1],_=new n(d(v,$,O)),R=0,k=O>0?$-4:$,P;for(P=0;P>16&255,_[R++]=C>>8&255,_[R++]=C&255;return O===2&&(C=e[v.charCodeAt(P)]<<2|e[v.charCodeAt(P+1)]>>4,_[R++]=C&255),O===1&&(C=e[v.charCodeAt(P)]<<10|e[v.charCodeAt(P+1)]<<4|e[v.charCodeAt(P+2)]>>2,_[R++]=C>>8&255,_[R++]=C&255),_}function g(v){return t[v>>18&63]+t[v>>12&63]+t[v>>6&63]+t[v&63]}function y(v,C,E){for(var $,O=[],_=C;_k?k:R+_));return $===1?(C=v[E-1],O.push(t[C>>2]+t[C<<4&63]+"==")):$===2&&(C=(v[E-2]<<8)+v[E-1],O.push(t[C>>10]+t[C>>4&63]+t[C<<2&63]+"=")),O.join("")}return N0}var hw={};/*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh */var t5;function Wue(){return t5||(t5=1,hw.read=function(t,e,n,r,i){var o,u,l=i*8-r-1,d=(1<>1,g=-7,y=n?i-1:0,w=n?-1:1,v=t[e+y];for(y+=w,o=v&(1<<-g)-1,v>>=-g,g+=l;g>0;o=o*256+t[e+y],y+=w,g-=8);for(u=o&(1<<-g)-1,o>>=-g,g+=r;g>0;u=u*256+t[e+y],y+=w,g-=8);if(o===0)o=1-h;else{if(o===d)return u?NaN:(v?-1:1)*(1/0);u=u+Math.pow(2,r),o=o-h}return(v?-1:1)*u*Math.pow(2,o-r)},hw.write=function(t,e,n,r,i,o){var u,l,d,h=o*8-i-1,g=(1<>1,w=i===23?Math.pow(2,-24)-Math.pow(2,-77):0,v=r?0:o-1,C=r?1:-1,E=e<0||e===0&&1/e<0?1:0;for(e=Math.abs(e),isNaN(e)||e===1/0?(l=isNaN(e)?1:0,u=g):(u=Math.floor(Math.log(e)/Math.LN2),e*(d=Math.pow(2,-u))<1&&(u--,d*=2),u+y>=1?e+=w/d:e+=w*Math.pow(2,1-y),e*d>=2&&(u++,d/=2),u+y>=g?(l=0,u=g):u+y>=1?(l=(e*d-1)*Math.pow(2,i),u=u+y):(l=e*Math.pow(2,y-1)*Math.pow(2,i),u=0));i>=8;t[n+v]=l&255,v+=C,l/=256,i-=8);for(u=u<0;t[n+v]=u&255,v+=C,u/=256,h-=8);t[n+v-C]|=E*128}),hw}/*! + `})]});function tk({content:t,columns:e,uniqueIdHrefHandler:n,style:r}){const i=n?o3:"span";return N.jsx(i,{className:"auto-card-list-item card mb-2 p-3",style:r,href:n(t.uniqueId),children:e.map(o=>{let u=o.getCellValue?o.getCellValue(t):"";return u||(u=o.name?t[o.name]:""),u||(u="-"),o.name==="uniqueId"?null:N.jsxs("div",{className:"row auto-card-drawer",children:[N.jsxs("div",{className:"col-6",children:[o.title,":"]}),N.jsx("div",{className:"col-6",children:u})]},o.title)})})}const nue=()=>{const t=yn();return N.jsxs("div",{className:"empty-list-indicator",children:[N.jsx("img",{src:$T("/common/empty.png")}),N.jsx("div",{children:t.table.noRecords})]})};var m5=Number.isNaN||function(e){return typeof e=="number"&&e!==e};function rue(t,e){return!!(t===e||m5(t)&&m5(e))}function iue(t,e){if(t.length!==e.length)return!1;for(var n=0;n=e?t.call(null):i.id=requestAnimationFrame(r)}var i={id:requestAnimationFrame(r)};return i}var LE=-1;function v5(t){if(t===void 0&&(t=!1),LE===-1||t){var e=document.createElement("div"),n=e.style;n.width="50px",n.height="50px",n.overflow="scroll",document.body.appendChild(e),LE=e.offsetWidth-e.clientWidth,document.body.removeChild(e)}return LE}var Zg=null;function b5(t){if(t===void 0&&(t=!1),Zg===null||t){var e=document.createElement("div"),n=e.style;n.width="50px",n.height="50px",n.overflow="scroll",n.direction="rtl";var r=document.createElement("div"),i=r.style;return i.width="100px",i.height="100px",e.appendChild(r),document.body.appendChild(e),e.scrollLeft>0?Zg="positive-descending":(e.scrollLeft=1,e.scrollLeft===0?Zg="negative":Zg="positive-ascending"),document.body.removeChild(e),Zg}return Zg}var sue=150,uue=function(e,n){return e};function lue(t){var e,n=t.getItemOffset,r=t.getEstimatedTotalSize,i=t.getItemSize,o=t.getOffsetForIndexAndAlignment,u=t.getStartIndexForOffset,l=t.getStopIndexForStartIndex,d=t.initInstanceProps,h=t.shouldResetStyleCacheOnItemSizeChange,g=t.validateProps;return e=(function(y){vm(w,y);function w(C){var E;return E=y.call(this,C)||this,E._instanceProps=d(E.props,iO(E)),E._outerRef=void 0,E._resetIsScrollingTimeoutId=null,E.state={instance:iO(E),isScrolling:!1,scrollDirection:"forward",scrollOffset:typeof E.props.initialScrollOffset=="number"?E.props.initialScrollOffset:0,scrollUpdateWasRequested:!1},E._callOnItemsRendered=void 0,E._callOnItemsRendered=FE(function($,O,_,P){return E.props.onItemsRendered({overscanStartIndex:$,overscanStopIndex:O,visibleStartIndex:_,visibleStopIndex:P})}),E._callOnScroll=void 0,E._callOnScroll=FE(function($,O,_){return E.props.onScroll({scrollDirection:$,scrollOffset:O,scrollUpdateWasRequested:_})}),E._getItemStyle=void 0,E._getItemStyle=function($){var O=E.props,_=O.direction,P=O.itemSize,k=O.layout,R=E._getItemStyleCache(h&&P,h&&k,h&&_),L;if(R.hasOwnProperty($))L=R[$];else{var F=n(E.props,$,E._instanceProps),q=i(E.props,$,E._instanceProps),Y=_==="horizontal"||k==="horizontal",Q=_==="rtl",ue=Y?F:0;R[$]=L={position:"absolute",left:Q?void 0:ue,right:Q?ue:void 0,top:Y?0:F,height:Y?"100%":q,width:Y?q:"100%"}}return L},E._getItemStyleCache=void 0,E._getItemStyleCache=FE(function($,O,_){return{}}),E._onScrollHorizontal=function($){var O=$.currentTarget,_=O.clientWidth,P=O.scrollLeft,k=O.scrollWidth;E.setState(function(R){if(R.scrollOffset===P)return null;var L=E.props.direction,F=P;if(L==="rtl")switch(b5()){case"negative":F=-P;break;case"positive-descending":F=k-_-P;break}return F=Math.max(0,Math.min(F,k-_)),{isScrolling:!0,scrollDirection:R.scrollOffsetL.clientWidth?v5():0:R=L.scrollHeight>L.clientHeight?v5():0}this.scrollTo(o(this.props,E,$,k,this._instanceProps,R))},b.componentDidMount=function(){var E=this.props,$=E.direction,O=E.initialScrollOffset,_=E.layout;if(typeof O=="number"&&this._outerRef!=null){var P=this._outerRef;$==="horizontal"||_==="horizontal"?P.scrollLeft=O:P.scrollTop=O}this._callPropsCallbacks()},b.componentDidUpdate=function(){var E=this.props,$=E.direction,O=E.layout,_=this.state,P=_.scrollOffset,k=_.scrollUpdateWasRequested;if(k&&this._outerRef!=null){var R=this._outerRef;if($==="horizontal"||O==="horizontal")if($==="rtl")switch(b5()){case"negative":R.scrollLeft=-P;break;case"positive-ascending":R.scrollLeft=P;break;default:var L=R.clientWidth,F=R.scrollWidth;R.scrollLeft=F-L-P;break}else R.scrollLeft=P;else R.scrollTop=P}this._callPropsCallbacks()},b.componentWillUnmount=function(){this._resetIsScrollingTimeoutId!==null&&y5(this._resetIsScrollingTimeoutId)},b.render=function(){var E=this.props,$=E.children,O=E.className,_=E.direction,P=E.height,k=E.innerRef,R=E.innerElementType,L=E.innerTagName,F=E.itemCount,q=E.itemData,Y=E.itemKey,Q=Y===void 0?uue:Y,ue=E.layout,me=E.outerElementType,te=E.outerTagName,be=E.style,Se=E.useIsScrolling,j=E.width,V=this.state.isScrolling,H=_==="horizontal"||ue==="horizontal",ie=H?this._onScrollHorizontal:this._onScrollVertical,G=this._getRangeToRender(),X=G[0],fe=G[1],$e=[];if(F>0)for(var Ce=X;Ce<=fe;Ce++)$e.push(T.createElement($,{data:q,key:Q(Ce,q),index:Ce,isScrolling:Se?V:void 0,style:this._getItemStyle(Ce)}));var je=r(this.props,this._instanceProps);return T.createElement(me||te||"div",{className:O,onScroll:ie,ref:this._outerRefSetter,style:Ve({position:"relative",height:P,width:j,overflow:"auto",WebkitOverflowScrolling:"touch",willChange:"transform",direction:_},be)},T.createElement(R||L||"div",{children:$e,ref:k,style:{height:H?"100%":je,pointerEvents:V?"none":void 0,width:H?je:"100%"}}))},b._callPropsCallbacks=function(){if(typeof this.props.onItemsRendered=="function"){var E=this.props.itemCount;if(E>0){var $=this._getRangeToRender(),O=$[0],_=$[1],P=$[2],k=$[3];this._callOnItemsRendered(O,_,P,k)}}if(typeof this.props.onScroll=="function"){var R=this.state,L=R.scrollDirection,F=R.scrollOffset,q=R.scrollUpdateWasRequested;this._callOnScroll(L,F,q)}},b._getRangeToRender=function(){var E=this.props,$=E.itemCount,O=E.overscanCount,_=this.state,P=_.isScrolling,k=_.scrollDirection,R=_.scrollOffset;if($===0)return[0,0,0,0];var L=u(this.props,R,this._instanceProps),F=l(this.props,L,R,this._instanceProps),q=!P||k==="backward"?Math.max(1,O):1,Y=!P||k==="forward"?Math.max(1,O):1;return[Math.max(0,L-q),Math.max(0,Math.min($-1,F+Y)),L,F]},w})(T.PureComponent),e.defaultProps={direction:"ltr",itemData:void 0,layout:"vertical",overscanCount:2,useIsScrolling:!1},e}var cue=function(e,n){e.children,e.direction,e.height,e.layout,e.innerTagName,e.outerTagName,e.width,n.instance},fue=lue({getItemOffset:function(e,n){var r=e.itemSize;return n*r},getItemSize:function(e,n){var r=e.itemSize;return r},getEstimatedTotalSize:function(e){var n=e.itemCount,r=e.itemSize;return r*n},getOffsetForIndexAndAlignment:function(e,n,r,i,o,u){var l=e.direction,d=e.height,h=e.itemCount,g=e.itemSize,y=e.layout,w=e.width,b=l==="horizontal"||y==="horizontal",C=b?w:d,E=Math.max(0,h*g-C),$=Math.min(E,n*g),O=Math.max(0,n*g-C+g+u);switch(r==="smart"&&(i>=O-C&&i<=$+C?r="auto":r="center"),r){case"start":return $;case"end":return O;case"center":{var _=Math.round(O+($-O)/2);return _E+Math.floor(C/2)?E:_}case"auto":default:return i>=O&&i<=$?i:i{var _,P,k,R,L,F;yn();const l=T.useRef();let[d,h]=T.useState([]);const[g,y]=T.useState(!0),w=zf();e&&e({queryClient:w});const b=(q,Y)=>{const Q=r.debouncedFilters.startIndex||0,ue=[...d];l.current!==Y&&(ue.length=0,l.current=Y);for(let me=Q;me<(r.debouncedFilters.itemsPerPage||0)+Q;me++){const te=me-Q;q[te]&&(ue[me]=q[te])}h(ue)};T.useEffect(()=>{var Y,Q,ue;const q=((Q=(Y=o.query.data)==null?void 0:Y.data)==null?void 0:Q.items)||[];b(q,(ue=o.query.data)==null?void 0:ue.jsonQuery)},[(P=(_=o.query.data)==null?void 0:_.data)==null?void 0:P.items]);const C=({index:q,style:Y})=>{var ue,me;return d[q]?u?N.jsx(u,{content:d[q]},(ue=d[q])==null?void 0:ue.uniqueId):N.jsx(tk,{style:{...Y,top:Y.top+10,height:Y.height-10,width:Y.width},uniqueIdHrefHandler:n,columns:t,content:d[q]},(me=d[q])==null?void 0:me.uniqueId):null},E=({scrollOffset:q})=>{q===0&&!g?y(!0):q>0&&g&&y(!1)},$=T.useCallback(()=>(o.query.refetch(),Promise.resolve(!0)),[]),O=((L=(R=(k=o.query)==null?void 0:k.data)==null?void 0:R.data)==null?void 0:L.totalItems)||0;return N.jsx(N.Fragment,{children:N.jsx(Xse,{pullDownContent:N.jsx(eue,{label:""}),releaseContent:N.jsx(tue,{}),refreshContent:N.jsx(Zse,{}),pullDownThreshold:200,onRefresh:$,triggerHeight:g?500:0,startInvisible:!0,children:d.length===0&&!((F=o.query)!=null&&F.isError)?N.jsx("div",{style:{height:"calc(100vh - 130px)"},children:N.jsx(nue,{})}):N.jsxs("div",{style:{height:"calc(100vh - 130px)"},children:[N.jsx(Jo,{query:o.query}),N.jsx(Yse,{isItemLoaded:q=>!!d[q],itemCount:O,loadMoreItems:async(q,Y)=>{r.setFilter({startIndex:q,itemsPerPage:Y-q})},children:({onItemsRendered:q,ref:Y})=>N.jsx(Hse,{children:({height:Q,width:ue})=>N.jsx(fue,{height:Q,itemCount:d.length,itemSize:u!=null&&u.getHeight?u.getHeight():t.length*24+10,width:ue,onScroll:E,onItemsRendered:q,ref:Y,children:C})})})]})})})},hue=({columns:t,deleteHook:e,uniqueIdHrefHandler:n,udf:r,q:i})=>{var h,g,y,w,b,C,E,$;const o=yn(),u=zf();e&&e({queryClient:u}),(g=(h=i.query.data)==null?void 0:h.data)!=null&&g.items;const l=((b=(w=(y=i.query)==null?void 0:y.data)==null?void 0:w.data)==null?void 0:b.items)||[],d=(($=(E=(C=i.query)==null?void 0:C.data)==null?void 0:E.data)==null?void 0:$.totalItems)||0;return N.jsxs(N.Fragment,{children:[d===0&&N.jsx("p",{children:o.table.noRecords}),l.map(O=>N.jsx(tk,{style:{},uniqueIdHrefHandler:n,columns:t,content:O},O.uniqueId))]})},w5=matchMedia("(max-width: 600px)");function pue(){const t=T.useRef(w5),[e,n]=T.useState(w5.matches?"card":"datatable");return T.useEffect(()=>{const r=t.current;function i(){r.matches?n("card"):n("datatable")}return r.addEventListener("change",i),()=>r.removeEventListener("change",i)},[]),{view:e}}const x3=({children:t,columns:e,deleteHook:n,uniqueIdHrefHandler:r,withFilters:i,queryHook:o,onRecordsDeleted:u,selectable:l,id:d,RowDetail:h,withPreloads:g,queryFilters:y,deep:w,inlineInsertHook:b,bulkEditHook:C,urlMask:E,CardComponent:$})=>{var H,ie,G,X;yn();const{view:O}=pue(),_=zf(),{query:P}=Aae({query:{uniqueId:o.UKEY}}),[k,R]=T.useState(e.map(fe=>({columnName:fe.name,width:fe.width})));T.useEffect(()=>{var fe,$e,Ce,je;if(($e=(fe=P.data)==null?void 0:fe.data)!=null&&$e.sizes)R(JSON.parse((je=(Ce=P.data)==null?void 0:Ce.data)==null?void 0:je.sizes));else{const Pe=localStorage.getItem(`table_${o.UKEY}`);Pe&&R(JSON.parse(Pe))}},[(ie=(H=P.data)==null?void 0:H.data)==null?void 0:ie.sizes]);const{submit:L}=Rae({queryClient:_}),F=n&&n({queryClient:_}),q=_ae({urlMask:"",submitDelete:F==null?void 0:F.submit,onRecordsDeleted:u?()=>u({queryClient:_}):void 0}),[Y]=T.useState(e.map(fe=>({columnName:fe.name,width:fe.width}))),Q=fe=>{R(fe);const $e=JSON.stringify(fe);L({uniqueId:o.UKEY,sizes:$e}),localStorage.setItem(`table_${o.UKEY}`,$e)};let ue=({value:fe})=>N.jsx("div",{style:{position:"relative"},children:N.jsx(o3,{href:r&&r(fe),children:fe})}),me=fe=>N.jsx(Sae,{formatterComponent:ue,...fe});const te=[...y||[]],be=T.useMemo(()=>jse(te),[te]),Se=o({query:{deep:w===void 0?!0:w,...q.debouncedFilters,withPreloads:g},queryClient:_}),j=Se.query?Se:{query:Se};j.jsonQuery=be;const V=((X=(G=j.query.data)==null?void 0:G.data)==null?void 0:X.items)||[];return N.jsxs(N.Fragment,{children:[O==="map"&&N.jsx(hue,{columns:e,deleteHook:n,uniqueIdHrefHandler:r,q:j,udf:q}),O==="card"&&N.jsx(due,{columns:e,CardComponent:$,jsonQuery:be,deleteHook:n,uniqueIdHrefHandler:r,q:j,udf:q}),O==="datatable"&&N.jsxs(Use,{udf:q,selectable:l,bulkEditHook:C,RowDetail:h,uniqueIdHrefHandler:r,onColumnWidthsChange:Q,columns:e,columnSizes:k,inlineInsertHook:b,rows:V,defaultColumnWidths:Y,query:j.query,booleanColumns:["uniqueId"],withFilters:i,children:[N.jsx(me,{for:["uniqueId"]}),t]})]})};function mue(t){const{execFnOverride:e,queryClient:n,query:r}=t||{},{options:i,execFn:o}=T.useContext(En),u=e?e(i):o?o(i):Ei(i);let d=`${"/public-join-key".substr(1)}?${new URLSearchParams(Na(r)).toString()}`;const g=Ur(b=>u("DELETE",d,b)),y=(b,C)=>b;return{mutation:g,submit:(b,C)=>new Promise((E,$)=>{g.mutate(b,{onSuccess(O){n==null||n.setQueryData("*abac.PublicJoinKeyEntity",_=>y(_)),n==null||n.invalidateQueries("*abac.PublicJoinKeyEntity"),E(O)},onError(O){C==null||C.setErrors(Mu(O)),$(O)}})}),fnUpdater:y}}function nk({queryOptions:t,query:e,queryClient:n,execFnOverride:r,unauthorized:i,optionFn:o}){var _,P,k;const{options:u,execFn:l}=T.useContext(En),d=o?o(u):u,h=r?r(d):l?l(d):Ei(d);let y=`${"/public-join-keys".substr(1)}?${J1.stringify(e)}`;const w=()=>h("GET",y),b=(_=d==null?void 0:d.headers)==null?void 0:_.authorization,C=b!="undefined"&&b!=null&&b!=null&&b!="null"&&!!b;let E=!0;!C&&!i&&(E=!1);const $=Yo(["*abac.PublicJoinKeyEntity",d,e],w,{cacheTime:1e3,retry:!1,keepPreviousData:!0,enabled:E,...t||{}}),O=((k=(P=$.data)==null?void 0:P.data)==null?void 0:k.items)||[];return{query:$,items:O,keyExtractor:R=>R.uniqueId}}nk.UKEY="*abac.PublicJoinKeyEntity";const gue={roleName:"Role name",uniqueId:"Unique Id"},yue={roleName:"Nazwa roli",uniqueId:"Unikalny identyfikator"},vue={...gue,$pl:yue},bue=t=>[{name:"uniqueId",title:t.uniqueId,width:200},{name:"role",title:t.roleName,width:200,getCellValue:e=>{var n;return(n=e.role)==null?void 0:n.name}}],wue=()=>{const t=Kn(vue);return N.jsx(N.Fragment,{children:N.jsx(x3,{columns:bue(t),queryHook:nk,uniqueIdHrefHandler:e=>oo.Navigation.single(e),deleteHook:mue})})},O3=({children:t,newEntityHandler:e,exportPath:n,pageTitle:r})=>{$7(r);const i=Br(),{locale:o}=xi();return EZ({path:n||""}),_Z(e?()=>e({locale:o,router:i}):void 0,jn.NewEntity),N.jsx(N.Fragment,{children:t})},Sue=()=>{const t=yn();return N.jsx(N.Fragment,{children:N.jsx(O3,{pageTitle:t.fbMenu.publicJoinKey,newEntityHandler:({locale:e,router:n})=>{n.push(oo.Navigation.create())},children:N.jsx(wue,{})})})};function Cue(){return N.jsxs(N.Fragment,{children:[N.jsx(mn,{element:N.jsx(Y6,{}),path:oo.Navigation.Rcreate}),N.jsx(mn,{element:N.jsx(aie,{}),path:oo.Navigation.Rsingle}),N.jsx(mn,{element:N.jsx(Y6,{}),path:oo.Navigation.Redit}),N.jsx(mn,{element:N.jsx(Sue,{}),path:oo.Navigation.Rquery})]})}function rk({queryOptions:t,execFnOverride:e,query:n,queryClient:r,unauthorized:i}){var $;const{options:o,execFn:u}=T.useContext(En),l=e?e(o):u?u(o):Ei(o);let h=`${"/role/:uniqueId".substr(1)}?${new URLSearchParams(Na(n)).toString()}`,g=!0;h=h.replace(":uniqueId",n[":uniqueId".replace(":","")]),n[":uniqueId".replace(":","")]===void 0&&(g=!1);const y=()=>l("GET",h),w=($=o==null?void 0:o.headers)==null?void 0:$.authorization,b=w!="undefined"&&w!=null&&w!=null&&w!="null"&&!!w;let C=!0;return g?!b&&!i&&(C=!1):C=!1,{query:Yo([o,n,"*abac.RoleEntity"],y,{cacheTime:1001,retry:!1,keepPreviousData:!0,enabled:C,...t||{}})}}function $ue(t){let{queryClient:e,query:n,execFnOverride:r}=t||{};n=n||{};const{options:i,execFn:o}=T.useContext(En),u=r?r(i):o?o(i):Ei(i);let d=`${"/role".substr(1)}?${new URLSearchParams(Na(n)).toString()}`;const g=Ur(b=>u("PATCH",d,b)),y=(b,C)=>{var E;return b?(b.data&&(C!=null&&C.data)&&(b.data.items=[C.data,...((E=b==null?void 0:b.data)==null?void 0:E.items)||[]]),b):{data:{items:[]}}};return{mutation:g,submit:(b,C)=>new Promise((E,$)=>{g.mutate(b,{onSuccess(O){e==null||e.setQueriesData("*abac.RoleEntity",_=>y(_,O)),E(O)},onError(O){C==null||C.setErrors(Mu(O)),$(O)}})}),fnUpdater:y}}function Eue(t){let{queryClient:e,query:n,execFnOverride:r}=t||{};n=n||{};const{options:i,execFn:o}=T.useContext(En),u=r?r(i):o?o(i):Ei(i);let d=`${"/role".substr(1)}?${new URLSearchParams(Na(n)).toString()}`;const g=Ur(b=>u("POST",d,b)),y=(b,C)=>{var E;return b?(b.data&&(C!=null&&C.data)&&(b.data.items=[C.data,...((E=b==null?void 0:b.data)==null?void 0:E.items)||[]]),b):{data:{items:[]}}};return{mutation:g,submit:(b,C)=>new Promise((E,$)=>{g.mutate(b,{onSuccess(O){e==null||e.setQueryData("*abac.RoleEntity",_=>y(_,O)),E(O)},onError(O){C==null||C.setErrors(Mu(O)),$(O)}})}),fnUpdater:y}}function xue({value:t,onChange:e,...n}){const r=T.useRef();return T.useEffect(()=>{r.current.indeterminate=t==="indeterminate"},[r,t]),N.jsx("input",{...n,type:"checkbox",ref:r,onChange:i=>{e("checked")},checked:t==="checked",className:"form-check-input"})}const Oue=({errors:t,error:e})=>{if(!e&&!t)return null;let n={};e&&e.errors?n=e.errors:t&&(n=t);const r=Object.keys(n);return N.jsxs("div",{style:{minHeight:"30px"},children:[(t==null?void 0:t.form)&&N.jsx("div",{className:"with-fade-in",style:{color:"red"},children:t.form}),n.length&&N.jsxs("div",{children:[((e==null?void 0:e.title)||(e==null?void 0:e.message))&&N.jsx("span",{children:(e==null?void 0:e.title)||(e==null?void 0:e.message)}),r.map(i=>N.jsx("div",{children:N.jsxs("span",{children:["• ",n[i]]})},i))]})]})};function Ps(t,e){if(!{}.hasOwnProperty.call(t,e))throw new TypeError("attempted to use private field on non-instance");return t}var Tue=0;function T3(t){return"__private_"+Tue+++"_"+t}var xp=T3("uniqueId"),Op=T3("name"),wl=T3("children"),UE=T3("isJsonAppliable");class Aa{get uniqueId(){return Ps(this,xp)[xp]}set uniqueId(e){Ps(this,xp)[xp]=String(e)}setUniqueId(e){return this.uniqueId=e,this}get name(){return Ps(this,Op)[Op]}set name(e){Ps(this,Op)[Op]=String(e)}setName(e){return this.name=e,this}get children(){return Ps(this,wl)[wl]}set children(e){Array.isArray(e)&&(e.length>0&&e[0]instanceof Aa?Ps(this,wl)[wl]=e:Ps(this,wl)[wl]=e.map(n=>new Aa(n)))}setChildren(e){return this.children=e,this}constructor(e=void 0){if(Object.defineProperty(this,UE,{value:_ue}),Object.defineProperty(this,xp,{writable:!0,value:""}),Object.defineProperty(this,Op,{writable:!0,value:""}),Object.defineProperty(this,wl,{writable:!0,value:[]}),e!=null)if(typeof e=="string")this.applyFromObject(JSON.parse(e));else if(Ps(this,UE)[UE](e))this.applyFromObject(e);else throw new Error("Instance cannot be created on an unknown value, check the content being passed. got: "+typeof e)}applyFromObject(e={}){const n=e;n.uniqueId!==void 0&&(this.uniqueId=n.uniqueId),n.name!==void 0&&(this.name=n.name),n.children!==void 0&&(this.children=n.children)}toJSON(){return{uniqueId:Ps(this,xp)[xp],name:Ps(this,Op)[Op],children:Ps(this,wl)[wl]}}toString(){return JSON.stringify(this)}static get Fields(){return{uniqueId:"uniqueId",name:"name",children$:"children",get children(){return Nu("children[:i]",Aa.Fields)}}}static from(e){return new Aa(e)}static with(e){return new Aa(e)}copyWith(e){return new Aa({...this.toJSON(),...e})}clone(){return new Aa(this.toJSON())}}function _ue(t){const e=globalThis,n=typeof e.Buffer<"u"&&typeof e.Buffer.isBuffer=="function"&&e.Buffer.isBuffer(t),r=typeof e.Blob<"u"&&t instanceof e.Blob;return t&&typeof t=="object"&&!Array.isArray(t)&&!n&&!(t instanceof ArrayBuffer)&&!r}var Z1;function Sl(t,e){if(!{}.hasOwnProperty.call(t,e))throw new TypeError("attempted to use private field on non-instance");return t}var Aue=0;function XT(t){return"__private_"+Aue+++"_"+t}const Rue=t=>{const e=Ma(),n=(t==null?void 0:t.ctx)??e??void 0,[r,i]=T.useState(!1),[o,u]=T.useState(),l=()=>(i(!1),Fl.Fetch({headers:t==null?void 0:t.headers},{creatorFn:t==null?void 0:t.creatorFn,qs:t==null?void 0:t.qs,ctx:n,onMessage:t==null?void 0:t.onMessage,overrideUrl:t==null?void 0:t.overrideUrl}).then(h=>(h.done.then(()=>{i(!0)}),u(h.response),h.response.result)));return{...Yo({queryKey:[Fl.NewUrl(t==null?void 0:t.qs)],queryFn:l,...t||{}}),isCompleted:r,response:o}};class Fl{}Z1=Fl;Fl.URL="/capabilitiesTree";Fl.NewUrl=t=>ma(Z1.URL,void 0,t);Fl.Method="get";Fl.Fetch$=async(t,e,n,r)=>ha(r??Z1.NewUrl(t),{method:Z1.Method,...n||{}},e);Fl.Fetch=async(t,{creatorFn:e,qs:n,ctx:r,onMessage:i,overrideUrl:o}={creatorFn:u=>new nm(u)})=>{e=e||(l=>new nm(l));const u=await Z1.Fetch$(n,r,t,o);return pa(u,l=>{const d=new Ui;return e&&d.setCreator(e),d.inject(l),d},i,t==null?void 0:t.signal)};Fl.Definition={name:"CapabilitiesTree",cliName:"treex",url:"/capabilitiesTree",method:"get",description:"dLists all of the capabilities in database as a array of string as root access",out:{envelope:"GResponse",fields:[{name:"capabilities",type:"collection",target:"CapabilityInfoDto"},{name:"nested",type:"collection",target:"CapabilityInfoDto"}]}};var Cl=XT("capabilities"),$l=XT("nested"),BE=XT("isJsonAppliable");class nm{get capabilities(){return Sl(this,Cl)[Cl]}set capabilities(e){Array.isArray(e)&&(e.length>0&&e[0]instanceof Aa?Sl(this,Cl)[Cl]=e:Sl(this,Cl)[Cl]=e.map(n=>new Aa(n)))}setCapabilities(e){return this.capabilities=e,this}get nested(){return Sl(this,$l)[$l]}set nested(e){Array.isArray(e)&&(e.length>0&&e[0]instanceof Aa?Sl(this,$l)[$l]=e:Sl(this,$l)[$l]=e.map(n=>new Aa(n)))}setNested(e){return this.nested=e,this}constructor(e=void 0){if(Object.defineProperty(this,BE,{value:Pue}),Object.defineProperty(this,Cl,{writable:!0,value:[]}),Object.defineProperty(this,$l,{writable:!0,value:[]}),e!=null)if(typeof e=="string")this.applyFromObject(JSON.parse(e));else if(Sl(this,BE)[BE](e))this.applyFromObject(e);else throw new Error("Instance cannot be created on an unknown value, check the content being passed. got: "+typeof e)}applyFromObject(e={}){const n=e;n.capabilities!==void 0&&(this.capabilities=n.capabilities),n.nested!==void 0&&(this.nested=n.nested)}toJSON(){return{capabilities:Sl(this,Cl)[Cl],nested:Sl(this,$l)[$l]}}toString(){return JSON.stringify(this)}static get Fields(){return{capabilities$:"capabilities",get capabilities(){return Nu("capabilities[:i]",Aa.Fields)},nested$:"nested",get nested(){return Nu("nested[:i]",Aa.Fields)}}}static from(e){return new nm(e)}static with(e){return new nm(e)}copyWith(e){return new nm({...this.toJSON(),...e})}clone(){return new nm(this.toJSON())}}function Pue(t){const e=globalThis,n=typeof e.Buffer<"u"&&typeof e.Buffer.isBuffer=="function"&&e.Buffer.isBuffer(t),r=typeof e.Blob<"u"&&t instanceof e.Blob;return t&&typeof t=="object"&&!Array.isArray(t)&&!n&&!(t instanceof ArrayBuffer)&&!r}function ik({onChange:t,value:e,prefix:n}){var l,d;const{data:r,error:i}=Rue({}),o=((d=(l=r==null?void 0:r.data)==null?void 0:l.item)==null?void 0:d.nested)||[],u=(h,g)=>{let y=[...e||[]];g==="checked"&&y.push(h),g==="unchecked"&&(y=y.filter(w=>w!==h)),t&&t(y)};return N.jsxs("nav",{className:"tree-nav",children:[N.jsx(Oue,{error:i}),N.jsx("ul",{className:"list",children:N.jsx(ak,{items:o,onNodeChange:u,value:e,prefix:n})})]})}function ak({items:t,onNodeChange:e,value:n,prefix:r,autoChecked:i}){const o=r?r+".":"";return N.jsx(N.Fragment,{children:t.map(u=>{var h;const l=`${o}${u.uniqueId}${(h=u.children)!=null&&h.length?".*":""}`,d=(n||[]).includes(l)?"checked":"unchecked";return N.jsxs("li",{children:[N.jsx("span",{children:N.jsxs("label",{className:i?"auto-checked":"",children:[N.jsx(xue,{value:d,onChange:g=>{e(l,d==="checked"?"unchecked":"checked")}}),u.uniqueId]})}),u.children&&N.jsx("ul",{children:N.jsx(ak,{autoChecked:i||d==="checked",onNodeChange:e,value:n,items:u.children,prefix:o+u.uniqueId})})]},u.uniqueId)})})}const Iue=(t,e)=>t!=null&&t.length&&!(e!=null&&e.length)?t.map(n=>n.uniqueId):e||[],Nue=({form:t,isEditing:e})=>{const{values:n,setFieldValue:r,errors:i}=t,o=yn();return N.jsxs(N.Fragment,{children:[N.jsx(zo,{value:n.name,onChange:u=>r(Fr.Fields.name,u,!1),errorMessage:i.name,label:o.wokspaces.invite.role,autoFocus:!e,hint:o.wokspaces.invite.roleHint}),N.jsx(ik,{onChange:u=>r(Fr.Fields.capabilitiesListId,u,!1),value:Iue(n.capabilities,n.capabilitiesListId)})]})},S5=({data:t})=>{const{router:e,uniqueId:n,queryClient:r,locale:i}=bb({data:t}),o=yn(),u=rk({query:{uniqueId:n},queryOptions:{enabled:!!n}}),l=Eue({queryClient:r}),d=$ue({queryClient:r});return N.jsx(ET,{postHook:l,getSingleHook:u,patchHook:d,beforeSubmit:h=>{var g;return((g=h.capabilities)==null?void 0:g.length)>0&&h.capabilitiesListId===null?{...h,capabilitiesListId:h.capabilities.map(y=>y.uniqueId)}:h},onCancel:()=>{e.goBackOrDefault(Fr.Navigation.query(void 0,i))},onFinishUriResolver:(h,g)=>{var y;return Fr.Navigation.single((y=h.data)==null?void 0:y.uniqueId,g)},Form:Nue,onEditTitle:o.fb.editRole,onCreateTitle:o.fb.newRole,data:t})},Mue=Ae.createContext({setToken(){},setSession(){},signout(){},ref:{token:""},isAuthenticated:!1});function kue(){const t=localStorage.getItem("app_auth_state");if(t){try{const e=JSON.parse(t);return e?{...e}:{}}catch{}return{}}}kue();function ok(t){const e=T.useContext(Mue);T.useEffect(()=>{e.setToken(t||"")},[t])}function sk({title:t,children:e,className:n,description:r}){return N.jsxs("div",{className:Go("page-section",n),children:[t?N.jsx("h2",{className:"",children:t}):null,r?N.jsx("p",{className:"",children:r}):null,N.jsx("div",{className:"mt-4",children:e})]})}const Due=()=>{var l;const t=Br();zf();const e=t.query.uniqueId,n=yn();xi();const[r,i]=T.useState([]),o=rk({query:{uniqueId:e,deep:!0}});var u=(l=o.query.data)==null?void 0:l.data;return ok((u==null?void 0:u.name)||""),T.useEffect(()=>{var d;i((d=u==null?void 0:u.capabilities)==null?void 0:d.map(h=>h.uniqueId||""))},[u==null?void 0:u.capabilities]),N.jsx(N.Fragment,{children:N.jsxs(UT,{editEntityHandler:()=>{t.push(Fr.Navigation.edit(e))},getSingleHook:o,children:[N.jsx(BT,{entity:u,fields:[{label:n.role.name,elem:u==null?void 0:u.name}]}),N.jsx(sk,{title:n.role.permissions,className:"mt-3",children:N.jsx(ik,{value:r})})]})})},Fue=t=>[{name:Fr.Fields.uniqueId,title:t.table.uniqueId,width:200},{name:Fr.Fields.name,title:t.role.name,width:200}];function Lue(t){const{execFnOverride:e,queryClient:n,query:r}=t||{},{options:i,execFn:o}=T.useContext(En),u=e?e(i):o?o(i):Ei(i);let d=`${"/role".substr(1)}?${new URLSearchParams(Na(r)).toString()}`;const g=Ur(b=>u("DELETE",d,b)),y=(b,C)=>b;return{mutation:g,submit:(b,C)=>new Promise((E,$)=>{g.mutate(b,{onSuccess(O){n==null||n.setQueryData("*abac.RoleEntity",_=>y(_)),n==null||n.invalidateQueries("*abac.RoleEntity"),E(O)},onError(O){C==null||C.setErrors(Mu(O)),$(O)}})}),fnUpdater:y}}const Uue=()=>{const t=yn();return N.jsx(N.Fragment,{children:N.jsx(x3,{columns:Fue(t),queryHook:S3,uniqueIdHrefHandler:e=>Fr.Navigation.single(e),deleteHook:Lue})})},Bue=()=>{const t=yn();return AZ(),N.jsx(N.Fragment,{children:N.jsx(O3,{newEntityHandler:({locale:e,router:n})=>n.push(Fr.Navigation.create()),pageTitle:t.fbMenu.roles,children:N.jsx(Uue,{})})})};function jue(){return N.jsxs(N.Fragment,{children:[N.jsx(mn,{element:N.jsx(S5,{}),path:Fr.Navigation.Rcreate}),N.jsx(mn,{element:N.jsx(Due,{}),path:Fr.Navigation.Rsingle}),N.jsx(mn,{element:N.jsx(S5,{}),path:Fr.Navigation.Redit}),N.jsx(mn,{element:N.jsx(Bue,{}),path:Fr.Navigation.Rquery})]})}const que={confirmRejectTitle:"Reject invite",reject:"Reject",workspaceName:"Workspace Name",passport:"Passport",confirmAcceptDescription:"Are you sure that you are confirming to join?",confirmRejectDescription:"Are you sure to reject this invitation? You need to be reinvited by admins again.",acceptBtn:null,accept:"Accept",roleName:"Role name",method:"Method",actions:"Actions",confirmAcceptTitle:"Confirm invitation"},Hue={actions:"Akcje",confirmRejectTitle:"Odrzuć zaproszenie",method:"Metoda",roleName:"Nazwa roli",accept:"Akceptuj",confirmAcceptDescription:"Czy na pewno chcesz dołączyć?",confirmAcceptTitle:"Potwierdź zaproszenie",confirmRejectDescription:"Czy na pewno chcesz odrzucić to zaproszenie? Aby dołączyć ponownie, musisz zostać ponownie zaproszony przez administratorów.",passport:"Paszport",reject:"Odrzuć",workspaceName:"Nazwa przestrzeni roboczej",acceptBtn:"Tak"},zue={...que,$pl:Hue};({...Vt.Fields});const Vue=(t,e,n)=>[{name:"roleName",title:t.roleName,width:100},{name:"workspaceName",title:t.workspaceName,width:100},{name:"method",title:t.method,width:100,getCellValue:r=>r.type},{name:"value",title:t.passport,width:100,getCellValue:r=>r.value},{name:"actions",title:t.actions,width:100,getCellValue:r=>N.jsxs(N.Fragment,{children:[N.jsx("button",{className:"btn btn-sm btn-success",style:{marginRight:"2px"},onClick:i=>{e(r)},children:t.accept}),N.jsx("button",{onClick:i=>{n(r)},className:"btn btn-sm btn-danger",children:t.reject})]})}];var eb;function Lf(t,e){if(!{}.hasOwnProperty.call(t,e))throw new TypeError("attempted to use private field on non-instance");return t}var Gue=0;function _3(t){return"__private_"+Gue+++"_"+t}const Wue=t=>{const n=Ma()??void 0,[r,i]=T.useState(!1),[o,u]=T.useState();return{...Ur({mutationFn:h=>(i(!1),od.Fetch({body:h,headers:t==null?void 0:t.headers},{creatorFn:t==null?void 0:t.creatorFn,qs:t==null?void 0:t.qs,ctx:n,onMessage:t==null?void 0:t.onMessage,overrideUrl:t==null?void 0:t.overrideUrl}).then(g=>(g.done.then(()=>{i(!0)}),u(g.response),g.response.result)))}),isCompleted:r,response:o}};class od{}eb=od;od.URL="/user/invitation/accept";od.NewUrl=t=>ma(eb.URL,void 0,t);od.Method="post";od.Fetch$=async(t,e,n,r)=>ha(r??eb.NewUrl(t),{method:eb.Method,...n||{}},e);od.Fetch=async(t,{creatorFn:e,qs:n,ctx:r,onMessage:i,overrideUrl:o}={creatorFn:u=>new rm(u)})=>{e=e||(l=>new rm(l));const u=await eb.Fetch$(n,r,t,o);return pa(u,l=>{const d=new Ui;return e&&d.setCreator(e),d.inject(l),d},i,t==null?void 0:t.signal)};od.Definition={name:"AcceptInvite",url:"/user/invitation/accept",method:"post",description:"Use it when user accepts an invitation, and it will complete the joining process",in:{fields:[{name:"invitationUniqueId",description:"The invitation id which will be used to process",type:"string",tags:{validate:"required"}}]},out:{envelope:"GResponse",fields:[{name:"accepted",type:"bool"}]}};var Tp=_3("invitationUniqueId"),jE=_3("isJsonAppliable");class sy{get invitationUniqueId(){return Lf(this,Tp)[Tp]}set invitationUniqueId(e){Lf(this,Tp)[Tp]=String(e)}setInvitationUniqueId(e){return this.invitationUniqueId=e,this}constructor(e=void 0){if(Object.defineProperty(this,jE,{value:Kue}),Object.defineProperty(this,Tp,{writable:!0,value:""}),e!=null)if(typeof e=="string")this.applyFromObject(JSON.parse(e));else if(Lf(this,jE)[jE](e))this.applyFromObject(e);else throw new Error("Instance cannot be created on an unknown value, check the content being passed. got: "+typeof e)}applyFromObject(e={}){const n=e;n.invitationUniqueId!==void 0&&(this.invitationUniqueId=n.invitationUniqueId)}toJSON(){return{invitationUniqueId:Lf(this,Tp)[Tp]}}toString(){return JSON.stringify(this)}static get Fields(){return{invitationUniqueId:"invitationUniqueId"}}static from(e){return new sy(e)}static with(e){return new sy(e)}copyWith(e){return new sy({...this.toJSON(),...e})}clone(){return new sy(this.toJSON())}}function Kue(t){const e=globalThis,n=typeof e.Buffer<"u"&&typeof e.Buffer.isBuffer=="function"&&e.Buffer.isBuffer(t),r=typeof e.Blob<"u"&&t instanceof e.Blob;return t&&typeof t=="object"&&!Array.isArray(t)&&!n&&!(t instanceof ArrayBuffer)&&!r}var _p=_3("accepted"),qE=_3("isJsonAppliable");class rm{get accepted(){return Lf(this,_p)[_p]}set accepted(e){Lf(this,_p)[_p]=!!e}setAccepted(e){return this.accepted=e,this}constructor(e=void 0){if(Object.defineProperty(this,qE,{value:Yue}),Object.defineProperty(this,_p,{writable:!0,value:void 0}),e!=null)if(typeof e=="string")this.applyFromObject(JSON.parse(e));else if(Lf(this,qE)[qE](e))this.applyFromObject(e);else throw new Error("Instance cannot be created on an unknown value, check the content being passed. got: "+typeof e)}applyFromObject(e={}){const n=e;n.accepted!==void 0&&(this.accepted=n.accepted)}toJSON(){return{accepted:Lf(this,_p)[_p]}}toString(){return JSON.stringify(this)}static get Fields(){return{accepted:"accepted"}}static from(e){return new rm(e)}static with(e){return new rm(e)}copyWith(e){return new rm({...this.toJSON(),...e})}clone(){return new rm(this.toJSON())}}function Yue(t){const e=globalThis,n=typeof e.Buffer<"u"&&typeof e.Buffer.isBuffer=="function"&&e.Buffer.isBuffer(t),r=typeof e.Blob<"u"&&t instanceof e.Blob;return t&&typeof t=="object"&&!Array.isArray(t)&&!n&&!(t instanceof ArrayBuffer)&&!r}var tb;function fr(t,e){if(!{}.hasOwnProperty.call(t,e))throw new TypeError("attempted to use private field on non-instance");return t}var Jue=0;function sd(t){return"__private_"+Jue+++"_"+t}const Que=t=>{const e=Ma(),n=(t==null?void 0:t.ctx)??e??void 0,[r,i]=T.useState(!1),[o,u]=T.useState(),l=()=>(i(!1),Ll.Fetch({headers:t==null?void 0:t.headers},{creatorFn:t==null?void 0:t.creatorFn,qs:t==null?void 0:t.qs,ctx:n,onMessage:t==null?void 0:t.onMessage,overrideUrl:t==null?void 0:t.overrideUrl}).then(h=>(h.done.then(()=>{i(!0)}),u(h.response),h.response.result)));return{...Yo({queryKey:[Ll.NewUrl(t==null?void 0:t.qs)],queryFn:l,...t||{}}),isCompleted:r,response:o}};class Ll{}tb=Ll;Ll.URL="/users/invitations";Ll.NewUrl=t=>ma(tb.URL,void 0,t);Ll.Method="get";Ll.Fetch$=async(t,e,n,r)=>ha(r??tb.NewUrl(t),{method:tb.Method,...n||{}},e);Ll.Fetch=async(t,{creatorFn:e,qs:n,ctx:r,onMessage:i,overrideUrl:o}={creatorFn:u=>new im(u)})=>{e=e||(l=>new im(l));const u=await tb.Fetch$(n,r,t,o);return pa(u,l=>{const d=new Ui;return e&&d.setCreator(e),d.inject(l),d},i,t==null?void 0:t.signal)};Ll.Definition={name:"UserInvitations",url:"/users/invitations",method:"get",description:"Shows the invitations for an specific user, if the invited member already has a account. It's based on the passports, so if the passport is authenticated we will show them.",out:{envelope:"GResponse",fields:[{name:"userId",description:"UserUniqueId",type:"string"},{name:"uniqueId",description:"Invitation unique id",type:"string"},{name:"value",description:"The value of the passport (email/phone)",type:"string"},{name:"roleName",description:"Name of the role that user will get",type:"string"},{name:"workspaceName",description:"Name of the workspace which user is invited to.",type:"string"},{name:"type",description:"The method of the invitation, such as email.",type:"string"},{name:"coverLetter",description:"The content that user will receive to understand the reason of the letter.",type:"string"}]}};var Ap=sd("userId"),Rp=sd("uniqueId"),Pp=sd("value"),Ip=sd("roleName"),Np=sd("workspaceName"),Mp=sd("type"),kp=sd("coverLetter"),HE=sd("isJsonAppliable");class im{get userId(){return fr(this,Ap)[Ap]}set userId(e){fr(this,Ap)[Ap]=String(e)}setUserId(e){return this.userId=e,this}get uniqueId(){return fr(this,Rp)[Rp]}set uniqueId(e){fr(this,Rp)[Rp]=String(e)}setUniqueId(e){return this.uniqueId=e,this}get value(){return fr(this,Pp)[Pp]}set value(e){fr(this,Pp)[Pp]=String(e)}setValue(e){return this.value=e,this}get roleName(){return fr(this,Ip)[Ip]}set roleName(e){fr(this,Ip)[Ip]=String(e)}setRoleName(e){return this.roleName=e,this}get workspaceName(){return fr(this,Np)[Np]}set workspaceName(e){fr(this,Np)[Np]=String(e)}setWorkspaceName(e){return this.workspaceName=e,this}get type(){return fr(this,Mp)[Mp]}set type(e){fr(this,Mp)[Mp]=String(e)}setType(e){return this.type=e,this}get coverLetter(){return fr(this,kp)[kp]}set coverLetter(e){fr(this,kp)[kp]=String(e)}setCoverLetter(e){return this.coverLetter=e,this}constructor(e=void 0){if(Object.defineProperty(this,HE,{value:Xue}),Object.defineProperty(this,Ap,{writable:!0,value:""}),Object.defineProperty(this,Rp,{writable:!0,value:""}),Object.defineProperty(this,Pp,{writable:!0,value:""}),Object.defineProperty(this,Ip,{writable:!0,value:""}),Object.defineProperty(this,Np,{writable:!0,value:""}),Object.defineProperty(this,Mp,{writable:!0,value:""}),Object.defineProperty(this,kp,{writable:!0,value:""}),e!=null)if(typeof e=="string")this.applyFromObject(JSON.parse(e));else if(fr(this,HE)[HE](e))this.applyFromObject(e);else throw new Error("Instance cannot be created on an unknown value, check the content being passed. got: "+typeof e)}applyFromObject(e={}){const n=e;n.userId!==void 0&&(this.userId=n.userId),n.uniqueId!==void 0&&(this.uniqueId=n.uniqueId),n.value!==void 0&&(this.value=n.value),n.roleName!==void 0&&(this.roleName=n.roleName),n.workspaceName!==void 0&&(this.workspaceName=n.workspaceName),n.type!==void 0&&(this.type=n.type),n.coverLetter!==void 0&&(this.coverLetter=n.coverLetter)}toJSON(){return{userId:fr(this,Ap)[Ap],uniqueId:fr(this,Rp)[Rp],value:fr(this,Pp)[Pp],roleName:fr(this,Ip)[Ip],workspaceName:fr(this,Np)[Np],type:fr(this,Mp)[Mp],coverLetter:fr(this,kp)[kp]}}toString(){return JSON.stringify(this)}static get Fields(){return{userId:"userId",uniqueId:"uniqueId",value:"value",roleName:"roleName",workspaceName:"workspaceName",type:"type",coverLetter:"coverLetter"}}static from(e){return new im(e)}static with(e){return new im(e)}copyWith(e){return new im({...this.toJSON(),...e})}clone(){return new im(this.toJSON())}}function Xue(t){const e=globalThis,n=typeof e.Buffer<"u"&&typeof e.Buffer.isBuffer=="function"&&e.Buffer.isBuffer(t),r=typeof e.Blob<"u"&&t instanceof e.Blob;return t&&typeof t=="object"&&!Array.isArray(t)&&!n&&!(t instanceof ArrayBuffer)&&!r}const Zue=()=>{const t=Kn(zue),e=T.useContext(UM),n=Wue(),r=o=>{e.openModal({title:t.confirmAcceptTitle,confirmButtonLabel:t.acceptBtn,component:()=>N.jsx("div",{children:t.confirmAcceptDescription}),onSubmit:async()=>n.mutateAsync(new sy({invitationUniqueId:o.uniqueId})).then(u=>{alert("Successful.")})})},i=o=>{e.openModal({title:t.confirmRejectTitle,confirmButtonLabel:t.acceptBtn,component:()=>N.jsx("div",{children:t.confirmRejectDescription}),onSubmit:async()=>!0})};return N.jsx(N.Fragment,{children:N.jsx(x3,{selectable:!1,columns:Vue(t,r,i),queryHook:Que})})},ele=()=>{const t=yn();return N.jsx(N.Fragment,{children:N.jsx(O3,{pageTitle:t.fbMenu.myInvitations,children:N.jsx(Zue,{})})})};function tle(){return N.jsx(N.Fragment,{children:N.jsx(mn,{element:N.jsx(ele,{}),path:"user-invitations"})})}function uk({queryOptions:t,execFnOverride:e,query:n,queryClient:r,unauthorized:i}){var $;const{options:o,execFn:u}=T.useContext(En),l=e?e(o):u?u(o):Ei(o);let h=`${"/workspace-invite/:uniqueId".substr(1)}?${new URLSearchParams(Na(n)).toString()}`,g=!0;h=h.replace(":uniqueId",n[":uniqueId".replace(":","")]),n[":uniqueId".replace(":","")]===void 0&&(g=!1);const y=()=>l("GET",h),w=($=o==null?void 0:o.headers)==null?void 0:$.authorization,b=w!="undefined"&&w!=null&&w!=null&&w!="null"&&!!w;let C=!0;return g?!b&&!i&&(C=!1):C=!1,{query:Yo([o,n,"*abac.WorkspaceInviteEntity"],y,{cacheTime:1001,retry:!1,keepPreviousData:!0,enabled:C,...t||{}})}}function nle(t){let{queryClient:e,query:n,execFnOverride:r}=t||{};n=n||{};const{options:i,execFn:o}=T.useContext(En),u=r?r(i):o?o(i):Ei(i);let d=`${"/workspace-invite".substr(1)}?${new URLSearchParams(Na(n)).toString()}`;const g=Ur(b=>u("PATCH",d,b)),y=(b,C)=>{var E;return b?(b.data&&(C!=null&&C.data)&&(b.data.items=[C.data,...((E=b==null?void 0:b.data)==null?void 0:E.items)||[]]),b):{data:{items:[]}}};return{mutation:g,submit:(b,C)=>new Promise((E,$)=>{g.mutate(b,{onSuccess(O){e==null||e.setQueriesData("*abac.WorkspaceInviteEntity",_=>y(_,O)),E(O)},onError(O){C==null||C.setErrors(Mu(O)),$(O)}})}),fnUpdater:y}}function rle(t){let{queryClient:e,query:n,execFnOverride:r}=t||{};n=n||{};const{options:i,execFn:o}=T.useContext(En),u=r?r(i):o?o(i):Ei(i);let d=`${"/workspace-invite".substr(1)}?${new URLSearchParams(Na(n)).toString()}`;const g=Ur(b=>u("POST",d,b)),y=(b,C)=>{var E;return b?(b.data&&(C!=null&&C.data)&&(b.data.items=[C.data,...((E=b==null?void 0:b.data)==null?void 0:E.items)||[]]),b):{data:{items:[]}}};return{mutation:g,submit:(b,C)=>new Promise((E,$)=>{g.mutate(b,{onSuccess(O){e==null||e.setQueryData("*abac.WorkspaceInviteEntity",_=>y(_,O)),E(O)},onError(O){C==null||C.setErrors(Mu(O)),$(O)}})}),fnUpdater:y}}const ile={targetLocaleHint:"If the user has a different language available, the initial interface will be on th selected value.",forcedEmailAddress:"Force Email Address",forcedEmailAddressHint:"If checked, user can only make the invitation using this email address, and won't be able to change it. If account exists, they need to accept invitation there.",forcedPhone:"Force Phone Number",forcedPhoneHint:"If checked, user only can create or join using this phone number",coverLetter:"Cover letter",coverLetterHint:"The invitation text that user would get over sms or email, you can modify it here.",targetLocale:"Target Locale"},ale={targetLocaleHint:"Jeśli użytkownik ma dostępny inny język, interfejs początkowy będzie ustawiony na wybraną wartość.",coverLetter:"List motywacyjny",coverLetterHint:"Treść zaproszenia, którą użytkownik otrzyma przez SMS lub e-mail – możesz ją tutaj edytować.",forcedEmailAddress:"Wymuszony adres e-mail",forcedEmailAddressHint:"Jeśli zaznaczone, użytkownik może wysłać zaproszenie tylko na ten adres e-mail i nie będzie mógł go zmienić. Jeśli konto już istnieje, użytkownik musi zaakceptować zaproszenie na tym koncie.",forcedPhone:"Wymuszony numer telefonu",forcedPhoneHint:"Jeśli zaznaczone, użytkownik może utworzyć konto lub dołączyć tylko przy użyciu tego numeru telefonu",targetLocale:"Docelowy język"},lk={...ile,$pl:ale};function ole(t){return e=>sle({items:t,...e})}function sle(t){var o,u;let e=((o=t.query)==null?void 0:o.itemsPerPage)||2,n=t.query.startIndex||0,r=t.items||[];return(u=t.query)!=null&&u.jsonQuery&&(r=Pq(r,t.query.jsonQuery)),r=r.slice(n,n+e),{query:{data:{data:{items:r,totalItems:r.length,totalAvailableItems:r.length}},dataUpdatedAt:0,error:null,errorUpdateCount:0,errorUpdatedAt:0,failureCount:0,isError:!1,isFetched:!1,isFetchedAfterMount:!1,isFetching:!1,isIdle:!1,isLoading:!1,isLoadingError:!1,isPlaceholderData:!1,isPreviousData:!1,isRefetchError:!1,isRefetching:!1,isStale:!1,remove(){console.log("Use as query has not implemented this.")},refetch(){return console.log("Refetch is not working actually."),Promise.resolve(void 0)},isSuccess:!0,status:"success"},items:r}}var CO=function(){return CO=Object.assign||function(t){for(var e,n=1,r=arguments.length;n"u"||t===""?[]:Array.isArray(t)?t:t.split(" ")},fle=function(t,e){return O5(t).concat(O5(e))},dle=function(){return window.InputEvent&&typeof InputEvent.prototype.getTargetRanges=="function"},hle=function(t){if(!("isConnected"in Node.prototype)){for(var e=t,n=t.parentNode;n!=null;)e=n,n=e.parentNode;return e===t.ownerDocument}return t.isConnected},T5=function(t,e){t!==void 0&&(t.mode!=null&&typeof t.mode=="object"&&typeof t.mode.set=="function"?t.mode.set(e):t.setMode(e))},$O=function(){return $O=Object.assign||function(t){for(var e,n=1,r=arguments.length;n0?setTimeout(h,u):h()},r=function(){for(var i=t.pop();i!=null;i=t.pop())i.deleteScripts()};return{loadList:n,reinitialize:r}},yle=gle(),VE=function(t){var e=t;return e&&e.tinymce?e.tinymce:null},vle=(function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(r[o]=i[o])},t(e,n)};return function(e,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");t(e,n);function r(){this.constructor=e}e.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}})(),HS=function(){return HS=Object.assign||function(t){for(var e,n=1,r=arguments.length;nu([new File([l],d)]),o=(l,d=!1)=>new Promise((h,g)=>{const y=new $z(l,{endpoint:$i.REMOTE_SERVICE+"tus",onBeforeRequest(w){w.setHeader("authorization",t.token),w.setHeader("workspace-id",e==null?void 0:e.workspaceId)},headers:{},metadata:{filename:l.name,path:"/database/users",filetype:l.type},onSuccess(){var b;const w=(b=y.url)==null?void 0:b.match(/([a-z0-9]){10,}/gi);h(`${w}`)},onError(w){g(w)},onProgress(w,b){var E,$;const C=($=(E=y.url)==null?void 0:E.match(/([a-z0-9]){10,}/gi))==null?void 0:$.toString();if(C){const O={uploadId:C,bytesSent:w,filename:l.name,bytesTotal:b};d!==!0&&r(_=>wle(_,O))}}});y.start()}),u=(l,d=!1)=>l.map(h=>o(h));return{upload:u,activeUploads:n,uploadBlob:i,uploadSingle:o}}var GE={},e1={},_5;function Cle(){if(_5)return e1;_5=1,e1.byteLength=l,e1.toByteArray=h,e1.fromByteArray=w;for(var t=[],e=[],n=typeof Uint8Array<"u"?Uint8Array:Array,r="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",i=0,o=r.length;i0)throw new Error("Invalid string. Length must be a multiple of 4");var E=b.indexOf("=");E===-1&&(E=C);var $=E===C?0:4-E%4;return[E,$]}function l(b){var C=u(b),E=C[0],$=C[1];return(E+$)*3/4-$}function d(b,C,E){return(C+E)*3/4-E}function h(b){var C,E=u(b),$=E[0],O=E[1],_=new n(d(b,$,O)),P=0,k=O>0?$-4:$,R;for(R=0;R>16&255,_[P++]=C>>8&255,_[P++]=C&255;return O===2&&(C=e[b.charCodeAt(R)]<<2|e[b.charCodeAt(R+1)]>>4,_[P++]=C&255),O===1&&(C=e[b.charCodeAt(R)]<<10|e[b.charCodeAt(R+1)]<<4|e[b.charCodeAt(R+2)]>>2,_[P++]=C>>8&255,_[P++]=C&255),_}function g(b){return t[b>>18&63]+t[b>>12&63]+t[b>>6&63]+t[b&63]}function y(b,C,E){for(var $,O=[],_=C;_k?k:P+_));return $===1?(C=b[E-1],O.push(t[C>>2]+t[C<<4&63]+"==")):$===2&&(C=(b[E-2]<<8)+b[E-1],O.push(t[C>>10]+t[C>>4&63]+t[C<<2&63]+"=")),O.join("")}return e1}var Lw={};/*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh */var A5;function $le(){return A5||(A5=1,Lw.read=function(t,e,n,r,i){var o,u,l=i*8-r-1,d=(1<>1,g=-7,y=n?i-1:0,w=n?-1:1,b=t[e+y];for(y+=w,o=b&(1<<-g)-1,b>>=-g,g+=l;g>0;o=o*256+t[e+y],y+=w,g-=8);for(u=o&(1<<-g)-1,o>>=-g,g+=r;g>0;u=u*256+t[e+y],y+=w,g-=8);if(o===0)o=1-h;else{if(o===d)return u?NaN:(b?-1:1)*(1/0);u=u+Math.pow(2,r),o=o-h}return(b?-1:1)*u*Math.pow(2,o-r)},Lw.write=function(t,e,n,r,i,o){var u,l,d,h=o*8-i-1,g=(1<>1,w=i===23?Math.pow(2,-24)-Math.pow(2,-77):0,b=r?0:o-1,C=r?1:-1,E=e<0||e===0&&1/e<0?1:0;for(e=Math.abs(e),isNaN(e)||e===1/0?(l=isNaN(e)?1:0,u=g):(u=Math.floor(Math.log(e)/Math.LN2),e*(d=Math.pow(2,-u))<1&&(u--,d*=2),u+y>=1?e+=w/d:e+=w*Math.pow(2,1-y),e*d>=2&&(u++,d/=2),u+y>=g?(l=0,u=g):u+y>=1?(l=(e*d-1)*Math.pow(2,i),u=u+y):(l=e*Math.pow(2,y-1)*Math.pow(2,i),u=0));i>=8;t[n+b]=l&255,b+=C,l/=256,i-=8);for(u=u<0;t[n+b]=u&255,b+=C,u/=256,h-=8);t[n+b-C]|=E*128}),Lw}/*! * The buffer module from node.js, for the browser. * * @author Feross Aboukhadijeh * @license MIT - */var n5;function Kue(){return n5||(n5=1,(function(t){const e=Gue(),n=Wue(),r=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;t.Buffer=l,t.SlowBuffer=_,t.INSPECT_MAX_BYTES=50;const i=2147483647;t.kMaxLength=i,l.TYPED_ARRAY_SUPPORT=o(),!l.TYPED_ARRAY_SUPPORT&&typeof console<"u"&&typeof console.error=="function"&&console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support.");function o(){try{const j=new Uint8Array(1),A={foo:function(){return 42}};return Object.setPrototypeOf(A,Uint8Array.prototype),Object.setPrototypeOf(j,A),j.foo()===42}catch{return!1}}Object.defineProperty(l.prototype,"parent",{enumerable:!0,get:function(){if(l.isBuffer(this))return this.buffer}}),Object.defineProperty(l.prototype,"offset",{enumerable:!0,get:function(){if(l.isBuffer(this))return this.byteOffset}});function u(j){if(j>i)throw new RangeError('The value "'+j+'" is invalid for option "size"');const A=new Uint8Array(j);return Object.setPrototypeOf(A,l.prototype),A}function l(j,A,M){if(typeof j=="number"){if(typeof A=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return y(j)}return d(j,A,M)}l.poolSize=8192;function d(j,A,M){if(typeof j=="string")return w(j,A);if(ArrayBuffer.isView(j))return C(j);if(j==null)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof j);if(pe(j,ArrayBuffer)||j&&pe(j.buffer,ArrayBuffer)||typeof SharedArrayBuffer<"u"&&(pe(j,SharedArrayBuffer)||j&&pe(j.buffer,SharedArrayBuffer)))return E(j,A,M);if(typeof j=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');const J=j.valueOf&&j.valueOf();if(J!=null&&J!==j)return l.from(J,A,M);const re=$(j);if(re)return re;if(typeof Symbol<"u"&&Symbol.toPrimitive!=null&&typeof j[Symbol.toPrimitive]=="function")return l.from(j[Symbol.toPrimitive]("string"),A,M);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof j)}l.from=function(j,A,M){return d(j,A,M)},Object.setPrototypeOf(l.prototype,Uint8Array.prototype),Object.setPrototypeOf(l,Uint8Array);function h(j){if(typeof j!="number")throw new TypeError('"size" argument must be of type number');if(j<0)throw new RangeError('The value "'+j+'" is invalid for option "size"')}function g(j,A,M){return h(j),j<=0?u(j):A!==void 0?typeof M=="string"?u(j).fill(A,M):u(j).fill(A):u(j)}l.alloc=function(j,A,M){return g(j,A,M)};function y(j){return h(j),u(j<0?0:O(j)|0)}l.allocUnsafe=function(j){return y(j)},l.allocUnsafeSlow=function(j){return y(j)};function w(j,A){if((typeof A!="string"||A==="")&&(A="utf8"),!l.isEncoding(A))throw new TypeError("Unknown encoding: "+A);const M=R(j,A)|0;let J=u(M);const re=J.write(j,A);return re!==M&&(J=J.slice(0,re)),J}function v(j){const A=j.length<0?0:O(j.length)|0,M=u(A);for(let J=0;J=i)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+i.toString(16)+" bytes");return j|0}function _(j){return+j!=j&&(j=0),l.alloc(+j)}l.isBuffer=function(A){return A!=null&&A._isBuffer===!0&&A!==l.prototype},l.compare=function(A,M){if(pe(A,Uint8Array)&&(A=l.from(A,A.offset,A.byteLength)),pe(M,Uint8Array)&&(M=l.from(M,M.offset,M.byteLength)),!l.isBuffer(A)||!l.isBuffer(M))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(A===M)return 0;let J=A.length,re=M.length;for(let ge=0,Ee=Math.min(J,re);gere.length?(l.isBuffer(Ee)||(Ee=l.from(Ee)),Ee.copy(re,ge)):Uint8Array.prototype.set.call(re,Ee,ge);else if(l.isBuffer(Ee))Ee.copy(re,ge);else throw new TypeError('"list" argument must be an Array of Buffers');ge+=Ee.length}return re};function R(j,A){if(l.isBuffer(j))return j.length;if(ArrayBuffer.isView(j)||pe(j,ArrayBuffer))return j.byteLength;if(typeof j!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof j);const M=j.length,J=arguments.length>2&&arguments[2]===!0;if(!J&&M===0)return 0;let re=!1;for(;;)switch(A){case"ascii":case"latin1":case"binary":return M;case"utf8":case"utf-8":return Tt(j).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return M*2;case"hex":return M>>>1;case"base64":return Dt(j).length;default:if(re)return J?-1:Tt(j).length;A=(""+A).toLowerCase(),re=!0}}l.byteLength=R;function k(j,A,M){let J=!1;if((A===void 0||A<0)&&(A=0),A>this.length||((M===void 0||M>this.length)&&(M=this.length),M<=0)||(M>>>=0,A>>>=0,M<=A))return"";for(j||(j="utf8");;)switch(j){case"hex":return ie(this,A,M);case"utf8":case"utf-8":return be(this,A,M);case"ascii":return V(this,A,M);case"latin1":case"binary":return H(this,A,M);case"base64":return te(this,A,M);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return G(this,A,M);default:if(J)throw new TypeError("Unknown encoding: "+j);j=(j+"").toLowerCase(),J=!0}}l.prototype._isBuffer=!0;function P(j,A,M){const J=j[A];j[A]=j[M],j[M]=J}l.prototype.swap16=function(){const A=this.length;if(A%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(let M=0;MM&&(A+=" ... "),""},r&&(l.prototype[r]=l.prototype.inspect),l.prototype.compare=function(A,M,J,re,ge){if(pe(A,Uint8Array)&&(A=l.from(A,A.offset,A.byteLength)),!l.isBuffer(A))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof A);if(M===void 0&&(M=0),J===void 0&&(J=A?A.length:0),re===void 0&&(re=0),ge===void 0&&(ge=this.length),M<0||J>A.length||re<0||ge>this.length)throw new RangeError("out of range index");if(re>=ge&&M>=J)return 0;if(re>=ge)return-1;if(M>=J)return 1;if(M>>>=0,J>>>=0,re>>>=0,ge>>>=0,this===A)return 0;let Ee=ge-re,rt=J-M;const Wt=Math.min(Ee,rt),ae=this.slice(re,ge),ce=A.slice(M,J);for(let nt=0;nt2147483647?M=2147483647:M<-2147483648&&(M=-2147483648),M=+M,ze(M)&&(M=re?0:j.length-1),M<0&&(M=j.length+M),M>=j.length){if(re)return-1;M=j.length-1}else if(M<0)if(re)M=0;else return-1;if(typeof A=="string"&&(A=l.from(A,J)),l.isBuffer(A))return A.length===0?-1:F(j,A,M,J,re);if(typeof A=="number")return A=A&255,typeof Uint8Array.prototype.indexOf=="function"?re?Uint8Array.prototype.indexOf.call(j,A,M):Uint8Array.prototype.lastIndexOf.call(j,A,M):F(j,[A],M,J,re);throw new TypeError("val must be string, number or Buffer")}function F(j,A,M,J,re){let ge=1,Ee=j.length,rt=A.length;if(J!==void 0&&(J=String(J).toLowerCase(),J==="ucs2"||J==="ucs-2"||J==="utf16le"||J==="utf-16le")){if(j.length<2||A.length<2)return-1;ge=2,Ee/=2,rt/=2,M/=2}function Wt(ce,nt){return ge===1?ce[nt]:ce.readUInt16BE(nt*ge)}let ae;if(re){let ce=-1;for(ae=M;aeEe&&(M=Ee-rt),ae=M;ae>=0;ae--){let ce=!0;for(let nt=0;ntre&&(J=re)):J=re;const ge=A.length;J>ge/2&&(J=ge/2);let Ee;for(Ee=0;Ee>>0,isFinite(J)?(J=J>>>0,re===void 0&&(re="utf8")):(re=J,J=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");const ge=this.length-M;if((J===void 0||J>ge)&&(J=ge),A.length>0&&(J<0||M<0)||M>this.length)throw new RangeError("Attempt to write outside buffer bounds");re||(re="utf8");let Ee=!1;for(;;)switch(re){case"hex":return q(this,A,M,J);case"utf8":case"utf-8":return Y(this,A,M,J);case"ascii":case"latin1":case"binary":return X(this,A,M,J);case"base64":return ue(this,A,M,J);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return me(this,A,M,J);default:if(Ee)throw new TypeError("Unknown encoding: "+re);re=(""+re).toLowerCase(),Ee=!0}},l.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function te(j,A,M){return A===0&&M===j.length?e.fromByteArray(j):e.fromByteArray(j.slice(A,M))}function be(j,A,M){M=Math.min(j.length,M);const J=[];let re=A;for(;re239?4:ge>223?3:ge>191?2:1;if(re+rt<=M){let Wt,ae,ce,nt;switch(rt){case 1:ge<128&&(Ee=ge);break;case 2:Wt=j[re+1],(Wt&192)===128&&(nt=(ge&31)<<6|Wt&63,nt>127&&(Ee=nt));break;case 3:Wt=j[re+1],ae=j[re+2],(Wt&192)===128&&(ae&192)===128&&(nt=(ge&15)<<12|(Wt&63)<<6|ae&63,nt>2047&&(nt<55296||nt>57343)&&(Ee=nt));break;case 4:Wt=j[re+1],ae=j[re+2],ce=j[re+3],(Wt&192)===128&&(ae&192)===128&&(ce&192)===128&&(nt=(ge&15)<<18|(Wt&63)<<12|(ae&63)<<6|ce&63,nt>65535&&nt<1114112&&(Ee=nt))}}Ee===null?(Ee=65533,rt=1):Ee>65535&&(Ee-=65536,J.push(Ee>>>10&1023|55296),Ee=56320|Ee&1023),J.push(Ee),re+=rt}return B(J)}const we=4096;function B(j){const A=j.length;if(A<=we)return String.fromCharCode.apply(String,j);let M="",J=0;for(;JJ)&&(M=J);let re="";for(let ge=A;geJ&&(A=J),M<0?(M+=J,M<0&&(M=0)):M>J&&(M=J),MM)throw new RangeError("Trying to access beyond buffer length")}l.prototype.readUintLE=l.prototype.readUIntLE=function(A,M,J){A=A>>>0,M=M>>>0,J||Q(A,M,this.length);let re=this[A],ge=1,Ee=0;for(;++Ee>>0,M=M>>>0,J||Q(A,M,this.length);let re=this[A+--M],ge=1;for(;M>0&&(ge*=256);)re+=this[A+--M]*ge;return re},l.prototype.readUint8=l.prototype.readUInt8=function(A,M){return A=A>>>0,M||Q(A,1,this.length),this[A]},l.prototype.readUint16LE=l.prototype.readUInt16LE=function(A,M){return A=A>>>0,M||Q(A,2,this.length),this[A]|this[A+1]<<8},l.prototype.readUint16BE=l.prototype.readUInt16BE=function(A,M){return A=A>>>0,M||Q(A,2,this.length),this[A]<<8|this[A+1]},l.prototype.readUint32LE=l.prototype.readUInt32LE=function(A,M){return A=A>>>0,M||Q(A,4,this.length),(this[A]|this[A+1]<<8|this[A+2]<<16)+this[A+3]*16777216},l.prototype.readUint32BE=l.prototype.readUInt32BE=function(A,M){return A=A>>>0,M||Q(A,4,this.length),this[A]*16777216+(this[A+1]<<16|this[A+2]<<8|this[A+3])},l.prototype.readBigUInt64LE=Je(function(A){A=A>>>0,bt(A,"offset");const M=this[A],J=this[A+7];(M===void 0||J===void 0)&>(A,this.length-8);const re=M+this[++A]*2**8+this[++A]*2**16+this[++A]*2**24,ge=this[++A]+this[++A]*2**8+this[++A]*2**16+J*2**24;return BigInt(re)+(BigInt(ge)<>>0,bt(A,"offset");const M=this[A],J=this[A+7];(M===void 0||J===void 0)&>(A,this.length-8);const re=M*2**24+this[++A]*2**16+this[++A]*2**8+this[++A],ge=this[++A]*2**24+this[++A]*2**16+this[++A]*2**8+J;return(BigInt(re)<>>0,M=M>>>0,J||Q(A,M,this.length);let re=this[A],ge=1,Ee=0;for(;++Ee=ge&&(re-=Math.pow(2,8*M)),re},l.prototype.readIntBE=function(A,M,J){A=A>>>0,M=M>>>0,J||Q(A,M,this.length);let re=M,ge=1,Ee=this[A+--re];for(;re>0&&(ge*=256);)Ee+=this[A+--re]*ge;return ge*=128,Ee>=ge&&(Ee-=Math.pow(2,8*M)),Ee},l.prototype.readInt8=function(A,M){return A=A>>>0,M||Q(A,1,this.length),this[A]&128?(255-this[A]+1)*-1:this[A]},l.prototype.readInt16LE=function(A,M){A=A>>>0,M||Q(A,2,this.length);const J=this[A]|this[A+1]<<8;return J&32768?J|4294901760:J},l.prototype.readInt16BE=function(A,M){A=A>>>0,M||Q(A,2,this.length);const J=this[A+1]|this[A]<<8;return J&32768?J|4294901760:J},l.prototype.readInt32LE=function(A,M){return A=A>>>0,M||Q(A,4,this.length),this[A]|this[A+1]<<8|this[A+2]<<16|this[A+3]<<24},l.prototype.readInt32BE=function(A,M){return A=A>>>0,M||Q(A,4,this.length),this[A]<<24|this[A+1]<<16|this[A+2]<<8|this[A+3]},l.prototype.readBigInt64LE=Je(function(A){A=A>>>0,bt(A,"offset");const M=this[A],J=this[A+7];(M===void 0||J===void 0)&>(A,this.length-8);const re=this[A+4]+this[A+5]*2**8+this[A+6]*2**16+(J<<24);return(BigInt(re)<>>0,bt(A,"offset");const M=this[A],J=this[A+7];(M===void 0||J===void 0)&>(A,this.length-8);const re=(M<<24)+this[++A]*2**16+this[++A]*2**8+this[++A];return(BigInt(re)<>>0,M||Q(A,4,this.length),n.read(this,A,!0,23,4)},l.prototype.readFloatBE=function(A,M){return A=A>>>0,M||Q(A,4,this.length),n.read(this,A,!1,23,4)},l.prototype.readDoubleLE=function(A,M){return A=A>>>0,M||Q(A,8,this.length),n.read(this,A,!0,52,8)},l.prototype.readDoubleBE=function(A,M){return A=A>>>0,M||Q(A,8,this.length),n.read(this,A,!1,52,8)};function he(j,A,M,J,re,ge){if(!l.isBuffer(j))throw new TypeError('"buffer" argument must be a Buffer instance');if(A>re||Aj.length)throw new RangeError("Index out of range")}l.prototype.writeUintLE=l.prototype.writeUIntLE=function(A,M,J,re){if(A=+A,M=M>>>0,J=J>>>0,!re){const rt=Math.pow(2,8*J)-1;he(this,A,M,J,rt,0)}let ge=1,Ee=0;for(this[M]=A&255;++Ee>>0,J=J>>>0,!re){const rt=Math.pow(2,8*J)-1;he(this,A,M,J,rt,0)}let ge=J-1,Ee=1;for(this[M+ge]=A&255;--ge>=0&&(Ee*=256);)this[M+ge]=A/Ee&255;return M+J},l.prototype.writeUint8=l.prototype.writeUInt8=function(A,M,J){return A=+A,M=M>>>0,J||he(this,A,M,1,255,0),this[M]=A&255,M+1},l.prototype.writeUint16LE=l.prototype.writeUInt16LE=function(A,M,J){return A=+A,M=M>>>0,J||he(this,A,M,2,65535,0),this[M]=A&255,this[M+1]=A>>>8,M+2},l.prototype.writeUint16BE=l.prototype.writeUInt16BE=function(A,M,J){return A=+A,M=M>>>0,J||he(this,A,M,2,65535,0),this[M]=A>>>8,this[M+1]=A&255,M+2},l.prototype.writeUint32LE=l.prototype.writeUInt32LE=function(A,M,J){return A=+A,M=M>>>0,J||he(this,A,M,4,4294967295,0),this[M+3]=A>>>24,this[M+2]=A>>>16,this[M+1]=A>>>8,this[M]=A&255,M+4},l.prototype.writeUint32BE=l.prototype.writeUInt32BE=function(A,M,J){return A=+A,M=M>>>0,J||he(this,A,M,4,4294967295,0),this[M]=A>>>24,this[M+1]=A>>>16,this[M+2]=A>>>8,this[M+3]=A&255,M+4};function $e(j,A,M,J,re){pt(A,J,re,j,M,7);let ge=Number(A&BigInt(4294967295));j[M++]=ge,ge=ge>>8,j[M++]=ge,ge=ge>>8,j[M++]=ge,ge=ge>>8,j[M++]=ge;let Ee=Number(A>>BigInt(32)&BigInt(4294967295));return j[M++]=Ee,Ee=Ee>>8,j[M++]=Ee,Ee=Ee>>8,j[M++]=Ee,Ee=Ee>>8,j[M++]=Ee,M}function Ce(j,A,M,J,re){pt(A,J,re,j,M,7);let ge=Number(A&BigInt(4294967295));j[M+7]=ge,ge=ge>>8,j[M+6]=ge,ge=ge>>8,j[M+5]=ge,ge=ge>>8,j[M+4]=ge;let Ee=Number(A>>BigInt(32)&BigInt(4294967295));return j[M+3]=Ee,Ee=Ee>>8,j[M+2]=Ee,Ee=Ee>>8,j[M+1]=Ee,Ee=Ee>>8,j[M]=Ee,M+8}l.prototype.writeBigUInt64LE=Je(function(A,M=0){return $e(this,A,M,BigInt(0),BigInt("0xffffffffffffffff"))}),l.prototype.writeBigUInt64BE=Je(function(A,M=0){return Ce(this,A,M,BigInt(0),BigInt("0xffffffffffffffff"))}),l.prototype.writeIntLE=function(A,M,J,re){if(A=+A,M=M>>>0,!re){const Wt=Math.pow(2,8*J-1);he(this,A,M,J,Wt-1,-Wt)}let ge=0,Ee=1,rt=0;for(this[M]=A&255;++ge>0)-rt&255;return M+J},l.prototype.writeIntBE=function(A,M,J,re){if(A=+A,M=M>>>0,!re){const Wt=Math.pow(2,8*J-1);he(this,A,M,J,Wt-1,-Wt)}let ge=J-1,Ee=1,rt=0;for(this[M+ge]=A&255;--ge>=0&&(Ee*=256);)A<0&&rt===0&&this[M+ge+1]!==0&&(rt=1),this[M+ge]=(A/Ee>>0)-rt&255;return M+J},l.prototype.writeInt8=function(A,M,J){return A=+A,M=M>>>0,J||he(this,A,M,1,127,-128),A<0&&(A=255+A+1),this[M]=A&255,M+1},l.prototype.writeInt16LE=function(A,M,J){return A=+A,M=M>>>0,J||he(this,A,M,2,32767,-32768),this[M]=A&255,this[M+1]=A>>>8,M+2},l.prototype.writeInt16BE=function(A,M,J){return A=+A,M=M>>>0,J||he(this,A,M,2,32767,-32768),this[M]=A>>>8,this[M+1]=A&255,M+2},l.prototype.writeInt32LE=function(A,M,J){return A=+A,M=M>>>0,J||he(this,A,M,4,2147483647,-2147483648),this[M]=A&255,this[M+1]=A>>>8,this[M+2]=A>>>16,this[M+3]=A>>>24,M+4},l.prototype.writeInt32BE=function(A,M,J){return A=+A,M=M>>>0,J||he(this,A,M,4,2147483647,-2147483648),A<0&&(A=4294967295+A+1),this[M]=A>>>24,this[M+1]=A>>>16,this[M+2]=A>>>8,this[M+3]=A&255,M+4},l.prototype.writeBigInt64LE=Je(function(A,M=0){return $e(this,A,M,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),l.prototype.writeBigInt64BE=Je(function(A,M=0){return Ce(this,A,M,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))});function Be(j,A,M,J,re,ge){if(M+J>j.length)throw new RangeError("Index out of range");if(M<0)throw new RangeError("Index out of range")}function Ie(j,A,M,J,re){return A=+A,M=M>>>0,re||Be(j,A,M,4),n.write(j,A,M,J,23,4),M+4}l.prototype.writeFloatLE=function(A,M,J){return Ie(this,A,M,!0,J)},l.prototype.writeFloatBE=function(A,M,J){return Ie(this,A,M,!1,J)};function tt(j,A,M,J,re){return A=+A,M=M>>>0,re||Be(j,A,M,8),n.write(j,A,M,J,52,8),M+8}l.prototype.writeDoubleLE=function(A,M,J){return tt(this,A,M,!0,J)},l.prototype.writeDoubleBE=function(A,M,J){return tt(this,A,M,!1,J)},l.prototype.copy=function(A,M,J,re){if(!l.isBuffer(A))throw new TypeError("argument should be a Buffer");if(J||(J=0),!re&&re!==0&&(re=this.length),M>=A.length&&(M=A.length),M||(M=0),re>0&&re=this.length)throw new RangeError("Index out of range");if(re<0)throw new RangeError("sourceEnd out of bounds");re>this.length&&(re=this.length),A.length-M>>0,J=J===void 0?this.length:J>>>0,A||(A=0);let ge;if(typeof A=="number")for(ge=M;ge2**32?re=He(String(M)):typeof M=="bigint"&&(re=String(M),(M>BigInt(2)**BigInt(32)||M<-(BigInt(2)**BigInt(32)))&&(re=He(re)),re+="n"),J+=` It must be ${A}. Received ${re}`,J},RangeError);function He(j){let A="",M=j.length;const J=j[0]==="-"?1:0;for(;M>=J+4;M-=3)A=`_${j.slice(M-3,M)}${A}`;return`${j.slice(0,M)}${A}`}function ut(j,A,M){bt(A,"offset"),(j[A]===void 0||j[A+M]===void 0)&>(A,j.length-(M+1))}function pt(j,A,M,J,re,ge){if(j>M||j= 0${Ee} and < 2${Ee} ** ${(ge+1)*8}${Ee}`:rt=`>= -(2${Ee} ** ${(ge+1)*8-1}${Ee}) and < 2 ** ${(ge+1)*8-1}${Ee}`,new ke.ERR_OUT_OF_RANGE("value",rt,j)}ut(J,re,ge)}function bt(j,A){if(typeof j!="number")throw new ke.ERR_INVALID_ARG_TYPE(A,"number",j)}function gt(j,A,M){throw Math.floor(j)!==j?(bt(j,M),new ke.ERR_OUT_OF_RANGE("offset","an integer",j)):A<0?new ke.ERR_BUFFER_OUT_OF_BOUNDS:new ke.ERR_OUT_OF_RANGE("offset",`>= 0 and <= ${A}`,j)}const Ut=/[^+/0-9A-Za-z-_]/g;function Gt(j){if(j=j.split("=")[0],j=j.trim().replace(Ut,""),j.length<2)return"";for(;j.length%4!==0;)j=j+"=";return j}function Tt(j,A){A=A||1/0;let M;const J=j.length;let re=null;const ge=[];for(let Ee=0;Ee55295&&M<57344){if(!re){if(M>56319){(A-=3)>-1&&ge.push(239,191,189);continue}else if(Ee+1===J){(A-=3)>-1&&ge.push(239,191,189);continue}re=M;continue}if(M<56320){(A-=3)>-1&&ge.push(239,191,189),re=M;continue}M=(re-55296<<10|M-56320)+65536}else re&&(A-=3)>-1&&ge.push(239,191,189);if(re=null,M<128){if((A-=1)<0)break;ge.push(M)}else if(M<2048){if((A-=2)<0)break;ge.push(M>>6|192,M&63|128)}else if(M<65536){if((A-=3)<0)break;ge.push(M>>12|224,M>>6&63|128,M&63|128)}else if(M<1114112){if((A-=4)<0)break;ge.push(M>>18|240,M>>12&63|128,M>>6&63|128,M&63|128)}else throw new Error("Invalid code point")}return ge}function en(j){const A=[];for(let M=0;M>8,re=M%256,ge.push(re),ge.push(J);return ge}function Dt(j){return e.toByteArray(Gt(j))}function Pt(j,A,M,J){let re;for(re=0;re=A.length||re>=j.length);++re)A[re+M]=j[re];return re}function pe(j,A){return j instanceof A||j!=null&&j.constructor!=null&&j.constructor.name!=null&&j.constructor.name===A.name}function ze(j){return j!==j}const Ge=(function(){const j="0123456789abcdef",A=new Array(256);for(let M=0;M<16;++M){const J=M*16;for(let re=0;re<16;++re)A[J+re]=j[M]+j[re]}return A})();function Je(j){return typeof BigInt>"u"?ht:j}function ht(){throw new Error("BigInt not supported")}})(bE)),bE}Kue();const Yue=t=>{const{config:e}=T.useContext(oF);yn();const{placeholder:n,label:r,getInputRef:i,secureTextEntry:o,Icon:u,onChange:l,value:d,height:h,disabled:g,forceBasic:y,forceRich:w,focused:v=!1,autoFocus:C,...E}=t,[$,O]=T.useState(!1),_=T.useRef(),R=T.useRef(!1),[k,P]=T.useState("tinymce"),{upload:L}=Vue(),{directPath:F}=aG();T.useEffect(()=>{if(e.textEditorModule!=="tinymce")t.onReady&&t.onReady();else{const X=setTimeout(()=>{R.current===!1&&(P("textarea"),t.onReady&&t.onReady())},5e3);return()=>{clearTimeout(X)}}},[]);const q=async(X,ue)=>{const me=await L([new File([X.blob()],"filename")],!0)[0];return F({diskPath:me})},Y=window.matchMedia("(prefers-color-scheme: dark)").matches||document.getElementsByTagName("body")[0].classList.contains("dark-theme");return N.jsx(kS,{focused:$,...t,children:e.textEditorModule==="tinymce"&&!y||w?N.jsx(Hue,{onInit:(X,ue)=>{_.current=ue,setTimeout(()=>{ue.setContent(d||"",{format:"raw"})},0),t.onReady&&t.onReady()},onEditorChange:(X,ue)=>{l&&l(ue.getContent({format:"raw"}))},onLoadContent:()=>{R.current=!0},apiKey:"4dh1g4gxp1gbmxi3hnkro4wf9lfgmqr86khygey2bwb7ps74",onBlur:()=>O(!1),tinymceScriptSrc:Ci.PUBLIC_URL+"plugins/js/tinymce/tinymce.min.js",onFocus:()=>O(!0),init:{menubar:!1,height:h||400,images_upload_handler:q,skin:Y?"oxide-dark":"oxide",content_css:Y?"dark":"default",plugins:["example","image","directionality","image"],toolbar:"undo redo | formatselect | example | image | rtl ltr | link | bullist numlist bold italic backcolor h2 h3 | alignleft aligncenter alignright alignjustify | bullist numlist outdent indent | removeformat | help",content_style:"body {font-size:18px }"}}):N.jsx("textarea",{...E,value:d,placeholder:n,style:{minHeight:"140px"},autoFocus:C,className:Ho("form-control",t.errorMessage&&"is-invalid",t.validMessage&&"is-valid"),onChange:X=>l&&l(X.target.value),onBlur:()=>O(!1),onFocus:()=>O(!0)})})},r5=t=>{const{placeholder:e,label:n,getInputRef:r,secureTextEntry:i,Icon:o,onChange:u,value:l,disabled:d,focused:h=!1,errorMessage:g,autoFocus:y,...w}=t,[v,C]=T.useState(!1),E=T.useRef(null),$=T.useCallback(()=>{var O;(O=E.current)==null||O.focus()},[E.current]);return N.jsx(kS,{focused:v,onClick:$,...t,label:"",children:N.jsxs("label",{className:"form-label mr-2",children:[N.jsx("input",{...w,ref:E,checked:!!l,type:"checkbox",onChange:O=>u&&u(!l),onBlur:()=>C(!1),onFocus:()=>C(!0),className:"form-checkbox"}),n]})})},Jue=t=>[Ci.SUPPORTED_LANGUAGES.includes("en")?{label:t.locale.englishWorldwide,value:"en"}:void 0,Ci.SUPPORTED_LANGUAGES.includes("fa")?{label:t.locale.persianIran,value:"fa"}:void 0,Ci.SUPPORTED_LANGUAGES.includes("ru")?{label:"Russian (Русский)",value:"ru"}:void 0,Ci.SUPPORTED_LANGUAGES.includes("pl")?{label:t.locale.polishPoland,value:"pl"}:void 0,Ci.SUPPORTED_LANGUAGES.includes("ua")?{label:"Ukrainain (українська)",value:"ua"}:void 0].filter(Boolean),Que=({form:t,isEditing:e})=>{const n=yn(),{values:r,setValues:i,setFieldValue:o,errors:u}=t,l=Kn(DM),d=Jue(n),h=Rue(d);return N.jsxs(N.Fragment,{children:[N.jsxs("div",{className:"row",children:[N.jsx("div",{className:"col-md-12",children:N.jsx(Bo,{value:r.firstName,onChange:g=>o(Tr.Fields.firstName,g,!1),errorMessage:u.firstName,label:n.wokspaces.invite.firstName,autoFocus:!e,hint:n.wokspaces.invite.firstNameHint})}),N.jsx("div",{className:"col-md-12",children:N.jsx(Bo,{value:r.lastName,onChange:g=>o(Tr.Fields.lastName,g,!1),errorMessage:u.lastName,label:n.wokspaces.invite.lastName,hint:n.wokspaces.invite.lastNameHint})}),N.jsx("div",{className:"col-md-12",children:N.jsx(Fx,{keyExtractor:g=>g.value,formEffect:{form:t,field:Tr.Fields.targetUserLocale,beforeSet(g){return g.value}},errorMessage:t.errors.targetUserLocale,querySource:h,label:l.targetLocale,hint:l.targetLocaleHint})}),N.jsx("div",{className:"col-md-12",children:N.jsx(Yue,{value:r.coverLetter,onChange:g=>o(Tr.Fields.coverLetter,g,!1),forceBasic:!0,errorMessage:u.coverLetter,label:l.coverLetter,placeholder:l.coverLetterHint,hint:l.coverLetterHint})}),N.jsx("div",{className:"col-md-12",children:N.jsx(Fx,{formEffect:{field:Tr.Fields.role$,form:t},querySource:YS,label:n.wokspaces.invite.role,errorMessage:u.roleId,fnLabelFormat:g=>g.name,hint:n.wokspaces.invite.roleHint})})]}),N.jsxs("div",{className:"row",children:[N.jsx("div",{className:"col-md-12",children:N.jsx(Bo,{value:r.email,onChange:g=>o(Tr.Fields.email,g,!1),errorMessage:u.email,label:n.wokspaces.invite.email,hint:n.wokspaces.invite.emailHint})}),N.jsx("div",{className:"col-md-12",children:N.jsx(r5,{value:r.forceEmailAddress,onChange:g=>o(Tr.Fields.forceEmailAddress,g),errorMessage:u.forceEmailAddress,label:l.forcedEmailAddress,hint:l.forcedEmailAddressHint})}),N.jsx("div",{className:"col-md-12",children:N.jsx(Bo,{value:r.phonenumber,onChange:g=>o(Tr.Fields.phonenumber,g,!1),errorMessage:u.phonenumber,type:"phonenumber",label:n.wokspaces.invite.phoneNumber,hint:n.wokspaces.invite.phoneNumberHint})}),N.jsx("div",{className:"col-md-12",children:N.jsx(r5,{value:r.forcePhoneNumber,onChange:g=>o(Tr.Fields.forcePhoneNumber,g),errorMessage:u.forcePhoneNumber,label:l.forcedPhone,hint:l.forcedPhoneHint})})]})]})},i5=({data:t})=>{const e=yn(),{router:n,uniqueId:r,queryClient:i,locale:o}=K1({data:t}),u=kM({query:{uniqueId:r},queryClient:i}),l=Tue({queryClient:i}),d=Oue({queryClient:i});return N.jsx(JO,{postHook:l,getSingleHook:u,patchHook:d,onCancel:()=>{n.goBackOrDefault(`/${o}/workspace-invites`)},onFinishUriResolver:(h,g)=>`/${g}/workspace-invites`,Form:Que,onEditTitle:e.wokspaces.invite.editInvitation,onCreateTitle:e.wokspaces.invite.createInvitation,data:t})},Xue=()=>{var u;const t=Lr(),e=yn(),n=t.query.uniqueId;$i();const r=Kn(DM),i=kM({query:{uniqueId:n}});var o=(u=i.query.data)==null?void 0:u.data;return IM((o==null?void 0:o.firstName)+" "+(o==null?void 0:o.lastName)||""),N.jsx(N.Fragment,{children:N.jsx(fT,{getSingleHook:i,editEntityHandler:()=>t.push(Tr.Navigation.edit(n)),children:N.jsx(dT,{entity:o,fields:[{label:e.wokspaces.invite.firstName,elem:o==null?void 0:o.firstName},{label:e.wokspaces.invite.lastName,elem:o==null?void 0:o.lastName},{label:e.wokspaces.invite.email,elem:o==null?void 0:o.email},{label:e.wokspaces.invite.phoneNumber,elem:o==null?void 0:o.phonenumber},{label:r.forcedEmailAddress,elem:o==null?void 0:o.forceEmailAddress},{label:r.forcedPhone,elem:o==null?void 0:o.forcePhoneNumber},{label:r.targetLocale,elem:o==null?void 0:o.targetUserLocale}]})})})},Zue=t=>[{name:Tr.Fields.uniqueId,title:t.table.uniqueId,width:100},{name:"firstName",title:t.wokspaces.invite.firstName,width:100},{name:"lastName",title:t.wokspaces.invite.lastName,width:100},{name:"phoneNumber",title:t.wokspaces.invite.phoneNumber,width:100},{name:"email",title:t.wokspaces.invite.email,width:100},{name:"role_id",title:t.wokspaces.invite.role,width:100,getCellValue:e=>{var n;return(n=e==null?void 0:e.role)==null?void 0:n.name}}];function UM({queryOptions:t,query:e,queryClient:n,execFnOverride:r,unauthorized:i,optionFn:o}){var _,R,k;const{options:u,execFn:l}=T.useContext(Sn),d=o?o(u):u,h=r?r(d):l?l(d):Qr(d);let y=`${"/workspace-invites".substr(1)}?${ny.stringify(e)}`;const w=()=>h("GET",y),v=(_=d==null?void 0:d.headers)==null?void 0:_.authorization,C=v!="undefined"&&v!=null&&v!=null&&v!="null"&&!!v;let E=!0;!C&&!i&&(E=!1);const $=Go(["*abac.WorkspaceInviteEntity",d,e],w,{cacheTime:1e3,retry:!1,keepPreviousData:!0,enabled:E,...t||{}}),O=((k=(R=$.data)==null?void 0:R.data)==null?void 0:k.items)||[];return{query:$,items:O,keyExtractor:P=>P.uniqueId}}UM.UKEY="*abac.WorkspaceInviteEntity";function ele(t){const{execFnOverride:e,queryClient:n,query:r}=t||{},{options:i,execFn:o}=T.useContext(Sn),u=e?e(i):o?o(i):Qr(i);let d=`${"/workspace-invite".substr(1)}?${new URLSearchParams(Ta(r)).toString()}`;const g=Fr(v=>u("DELETE",d,v)),y=(v,C)=>v;return{mutation:g,submit:(v,C)=>new Promise((E,$)=>{g.mutate(v,{onSuccess(O){n==null||n.setQueryData("*abac.WorkspaceInviteEntity",_=>y(_)),n==null||n.invalidateQueries("*abac.WorkspaceInviteEntity"),E(O)},onError(O){C==null||C.setErrors(Ru(O)),$(O)}})}),fnUpdater:y}}const tle=()=>{const t=yn();return N.jsx(N.Fragment,{children:N.jsx(ZS,{columns:Zue(t),queryHook:UM,uniqueIdHrefHandler:e=>Tr.Navigation.single(e),deleteHook:ele})})},nle=()=>{const t=yn();return N.jsx(N.Fragment,{children:N.jsx(e3,{pageTitle:t.fbMenu.workspaceInvites,newEntityHandler:({locale:e,router:n})=>{n.push(Tr.Navigation.create())},children:N.jsx(tle,{})})})};function rle(){return N.jsxs(N.Fragment,{children:[N.jsx(mn,{element:N.jsx(i5,{}),path:Tr.Navigation.Rcreate}),N.jsx(mn,{element:N.jsx(i5,{}),path:Tr.Navigation.Redit}),N.jsx(mn,{element:N.jsx(Xue,{}),path:Tr.Navigation.Rsingle}),N.jsx(mn,{element:N.jsx(nle,{}),path:Tr.Navigation.Rquery})]})}const ile=()=>{const t=Kn($r);return N.jsxs(N.Fragment,{children:[N.jsx(NM,{title:t.home.title,description:t.home.description}),N.jsx("h2",{children:N.jsx(nx,{to:"passports",children:t.home.passportsTitle})}),N.jsx("p",{children:t.home.passportsDescription}),N.jsx(nx,{to:"passports",className:"btn btn-success btn-sm",children:t.home.passportsTitle})]})},xT=T.createContext({});function OT(t){const e=T.useRef(null);return e.current===null&&(e.current=t()),e.current}const TT=typeof window<"u",jM=TT?T.useLayoutEffect:T.useEffect,r3=T.createContext(null);function _T(t,e){t.indexOf(e)===-1&&t.push(e)}function AT(t,e){const n=t.indexOf(e);n>-1&&t.splice(n,1)}const Nl=(t,e,n)=>n>e?e:n{};const Ml={},BM=t=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(t);function qM(t){return typeof t=="object"&&t!==null}const HM=t=>/^0[^.\s]+$/u.test(t);function PT(t){let e;return()=>(e===void 0&&(e=t()),e)}const Vo=t=>t,ale=(t,e)=>n=>e(t(n)),tb=(...t)=>t.reduce(ale),I1=(t,e,n)=>{const r=e-t;return r===0?1:(n-t)/r};class IT{constructor(){this.subscriptions=[]}add(e){return _T(this.subscriptions,e),()=>AT(this.subscriptions,e)}notify(e,n,r){const i=this.subscriptions.length;if(i)if(i===1)this.subscriptions[0](e,n,r);else for(let o=0;ot*1e3,_u=t=>t/1e3;function zM(t,e){return e?t*(1e3/e):0}const VM=(t,e,n)=>(((1-3*n+3*e)*t+(3*n-6*e))*t+3*e)*t,ole=1e-7,sle=12;function ule(t,e,n,r,i){let o,u,l=0;do u=e+(n-e)/2,o=VM(u,r,i)-t,o>0?n=u:e=u;while(Math.abs(o)>ole&&++lule(o,0,1,t,n);return o=>o===0||o===1?o:VM(i(o),e,r)}const GM=t=>e=>e<=.5?t(2*e)/2:(2-t(2*(1-e)))/2,WM=t=>e=>1-t(1-e),KM=nb(.33,1.53,.69,.99),NT=WM(KM),YM=GM(NT),JM=t=>(t*=2)<1?.5*NT(t):.5*(2-Math.pow(2,-10*(t-1))),MT=t=>1-Math.sin(Math.acos(t)),QM=WM(MT),XM=GM(MT),lle=nb(.42,0,1,1),cle=nb(0,0,.58,1),ZM=nb(.42,0,.58,1),fle=t=>Array.isArray(t)&&typeof t[0]!="number",ek=t=>Array.isArray(t)&&typeof t[0]=="number",dle={linear:Vo,easeIn:lle,easeInOut:ZM,easeOut:cle,circIn:MT,circInOut:XM,circOut:QM,backIn:NT,backInOut:YM,backOut:KM,anticipate:JM},hle=t=>typeof t=="string",a5=t=>{if(ek(t)){RT(t.length===4);const[e,n,r,i]=t;return nb(e,n,r,i)}else if(hle(t))return dle[t];return t},pw=["setup","read","resolveKeyframes","preUpdate","update","preRender","render","postRender"],o5={value:null};function ple(t,e){let n=new Set,r=new Set,i=!1,o=!1;const u=new WeakSet;let l={delta:0,timestamp:0,isProcessing:!1},d=0;function h(y){u.has(y)&&(g.schedule(y),t()),d++,y(l)}const g={schedule:(y,w=!1,v=!1)=>{const E=v&&i?n:r;return w&&u.add(y),E.has(y)||E.add(y),y},cancel:y=>{r.delete(y),u.delete(y)},process:y=>{if(l=y,i){o=!0;return}i=!0,[n,r]=[r,n],n.forEach(h),e&&o5.value&&o5.value.frameloop[e].push(d),d=0,n.clear(),i=!1,o&&(o=!1,g.process(y))}};return g}const mle=40;function tk(t,e){let n=!1,r=!0;const i={delta:0,timestamp:0,isProcessing:!1},o=()=>n=!0,u=pw.reduce((R,k)=>(R[k]=ple(o,e?k:void 0),R),{}),{setup:l,read:d,resolveKeyframes:h,preUpdate:g,update:y,preRender:w,render:v,postRender:C}=u,E=()=>{const R=Ml.useManualTiming?i.timestamp:performance.now();n=!1,Ml.useManualTiming||(i.delta=r?1e3/60:Math.max(Math.min(R-i.timestamp,mle),1)),i.timestamp=R,i.isProcessing=!0,l.process(i),d.process(i),h.process(i),g.process(i),y.process(i),w.process(i),v.process(i),C.process(i),i.isProcessing=!1,n&&e&&(r=!1,t(E))},$=()=>{n=!0,r=!0,i.isProcessing||t(E)};return{schedule:pw.reduce((R,k)=>{const P=u[k];return R[k]=(L,F=!1,q=!1)=>(n||$(),P.schedule(L,F,q)),R},{}),cancel:R=>{for(let k=0;k(Nw===void 0&&xa.set(gi.isProcessing||Ml.useManualTiming?gi.timestamp:performance.now()),Nw),set:t=>{Nw=t,queueMicrotask(gle)}},nk=t=>e=>typeof e=="string"&&e.startsWith(t),kT=nk("--"),yle=nk("var(--"),DT=t=>yle(t)?vle.test(t.split("/*")[0].trim()):!1,vle=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu,yy={test:t=>typeof t=="number",parse:parseFloat,transform:t=>t},N1={...yy,transform:t=>Nl(0,1,t)},mw={...yy,default:1},W0=t=>Math.round(t*1e5)/1e5,FT=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function ble(t){return t==null}const wle=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,LT=(t,e)=>n=>!!(typeof n=="string"&&wle.test(n)&&n.startsWith(t)||e&&!ble(n)&&Object.prototype.hasOwnProperty.call(n,e)),rk=(t,e,n)=>r=>{if(typeof r!="string")return r;const[i,o,u,l]=r.match(FT);return{[t]:parseFloat(i),[e]:parseFloat(o),[n]:parseFloat(u),alpha:l!==void 0?parseFloat(l):1}},Sle=t=>Nl(0,255,t),SE={...yy,transform:t=>Math.round(Sle(t))},Lp={test:LT("rgb","red"),parse:rk("red","green","blue"),transform:({red:t,green:e,blue:n,alpha:r=1})=>"rgba("+SE.transform(t)+", "+SE.transform(e)+", "+SE.transform(n)+", "+W0(N1.transform(r))+")"};function Cle(t){let e="",n="",r="",i="";return t.length>5?(e=t.substring(1,3),n=t.substring(3,5),r=t.substring(5,7),i=t.substring(7,9)):(e=t.substring(1,2),n=t.substring(2,3),r=t.substring(3,4),i=t.substring(4,5),e+=e,n+=n,r+=r,i+=i),{red:parseInt(e,16),green:parseInt(n,16),blue:parseInt(r,16),alpha:i?parseInt(i,16)/255:1}}const Jx={test:LT("#"),parse:Cle,transform:Lp.transform},rb=t=>({test:e=>typeof e=="string"&&e.endsWith(t)&&e.split(" ").length===1,parse:parseFloat,transform:e=>`${e}${t}`}),Cf=rb("deg"),Au=rb("%"),xt=rb("px"),$le=rb("vh"),Ele=rb("vw"),s5={...Au,parse:t=>Au.parse(t)/100,transform:t=>Au.transform(t*100)},jg={test:LT("hsl","hue"),parse:rk("hue","saturation","lightness"),transform:({hue:t,saturation:e,lightness:n,alpha:r=1})=>"hsla("+Math.round(t)+", "+Au.transform(W0(e))+", "+Au.transform(W0(n))+", "+W0(N1.transform(r))+")"},Or={test:t=>Lp.test(t)||Jx.test(t)||jg.test(t),parse:t=>Lp.test(t)?Lp.parse(t):jg.test(t)?jg.parse(t):Jx.parse(t),transform:t=>typeof t=="string"?t:t.hasOwnProperty("red")?Lp.transform(t):jg.transform(t),getAnimatableNone:t=>{const e=Or.parse(t);return e.alpha=0,Or.transform(e)}},xle=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function Ole(t){var e,n;return isNaN(t)&&typeof t=="string"&&(((e=t.match(FT))==null?void 0:e.length)||0)+(((n=t.match(xle))==null?void 0:n.length)||0)>0}const ik="number",ak="color",Tle="var",_le="var(",u5="${}",Ale=/var\s*\(\s*--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)|#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\)|-?(?:\d+(?:\.\d+)?|\.\d+)/giu;function M1(t){const e=t.toString(),n=[],r={color:[],number:[],var:[]},i=[];let o=0;const l=e.replace(Ale,d=>(Or.test(d)?(r.color.push(o),i.push(ak),n.push(Or.parse(d))):d.startsWith(_le)?(r.var.push(o),i.push(Tle),n.push(d)):(r.number.push(o),i.push(ik),n.push(parseFloat(d))),++o,u5)).split(u5);return{values:n,split:l,indexes:r,types:i}}function ok(t){return M1(t).values}function sk(t){const{split:e,types:n}=M1(t),r=e.length;return i=>{let o="";for(let u=0;utypeof t=="number"?0:Or.test(t)?Or.getAnimatableNone(t):t;function Ple(t){const e=ok(t);return sk(t)(e.map(Rle))}const Nf={test:Ole,parse:ok,createTransformer:sk,getAnimatableNone:Ple};function CE(t,e,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?t+(e-t)*6*n:n<1/2?e:n<2/3?t+(e-t)*(2/3-n)*6:t}function Ile({hue:t,saturation:e,lightness:n,alpha:r}){t/=360,e/=100,n/=100;let i=0,o=0,u=0;if(!e)i=o=u=n;else{const l=n<.5?n*(1+e):n+e-n*e,d=2*n-l;i=CE(d,l,t+1/3),o=CE(d,l,t),u=CE(d,l,t-1/3)}return{red:Math.round(i*255),green:Math.round(o*255),blue:Math.round(u*255),alpha:r}}function vS(t,e){return n=>n>0?e:t}const ir=(t,e,n)=>t+(e-t)*n,$E=(t,e,n)=>{const r=t*t,i=n*(e*e-r)+r;return i<0?0:Math.sqrt(i)},Nle=[Jx,Lp,jg],Mle=t=>Nle.find(e=>e.test(t));function l5(t){const e=Mle(t);if(!e)return!1;let n=e.parse(t);return e===jg&&(n=Ile(n)),n}const c5=(t,e)=>{const n=l5(t),r=l5(e);if(!n||!r)return vS(t,e);const i={...n};return o=>(i.red=$E(n.red,r.red,o),i.green=$E(n.green,r.green,o),i.blue=$E(n.blue,r.blue,o),i.alpha=ir(n.alpha,r.alpha,o),Lp.transform(i))},Qx=new Set(["none","hidden"]);function kle(t,e){return Qx.has(t)?n=>n<=0?t:e:n=>n>=1?e:t}function Dle(t,e){return n=>ir(t,e,n)}function UT(t){return typeof t=="number"?Dle:typeof t=="string"?DT(t)?vS:Or.test(t)?c5:Ule:Array.isArray(t)?uk:typeof t=="object"?Or.test(t)?c5:Fle:vS}function uk(t,e){const n=[...t],r=n.length,i=t.map((o,u)=>UT(o)(o,e[u]));return o=>{for(let u=0;u{for(const o in r)n[o]=r[o](i);return n}}function Lle(t,e){const n=[],r={color:0,var:0,number:0};for(let i=0;i{const n=Nf.createTransformer(e),r=M1(t),i=M1(e);return r.indexes.var.length===i.indexes.var.length&&r.indexes.color.length===i.indexes.color.length&&r.indexes.number.length>=i.indexes.number.length?Qx.has(t)&&!i.values.length||Qx.has(e)&&!r.values.length?kle(t,e):tb(uk(Lle(r,i),i.values),n):vS(t,e)};function lk(t,e,n){return typeof t=="number"&&typeof e=="number"&&typeof n=="number"?ir(t,e,n):UT(t)(t,e)}const jle=t=>{const e=({timestamp:n})=>t(n);return{start:(n=!0)=>ar.update(e,n),stop:()=>If(e),now:()=>gi.isProcessing?gi.timestamp:xa.now()}},ck=(t,e,n=10)=>{let r="";const i=Math.max(Math.round(e/n),2);for(let o=0;o=bS?1/0:e}function Ble(t,e=100,n){const r=n({...t,keyframes:[0,e]}),i=Math.min(jT(r),bS);return{type:"keyframes",ease:o=>r.next(i*o).value/e,duration:_u(i)}}const qle=5;function fk(t,e,n){const r=Math.max(e-qle,0);return zM(n-t(r),e-r)}const fr={stiffness:100,damping:10,mass:1,velocity:0,duration:800,bounce:.3,visualDuration:.3,restSpeed:{granular:.01,default:2},restDelta:{granular:.005,default:.5},minDuration:.01,maxDuration:10,minDamping:.05,maxDamping:1},EE=.001;function Hle({duration:t=fr.duration,bounce:e=fr.bounce,velocity:n=fr.velocity,mass:r=fr.mass}){let i,o,u=1-e;u=Nl(fr.minDamping,fr.maxDamping,u),t=Nl(fr.minDuration,fr.maxDuration,_u(t)),u<1?(i=h=>{const g=h*u,y=g*t,w=g-n,v=Xx(h,u),C=Math.exp(-y);return EE-w/v*C},o=h=>{const y=h*u*t,w=y*n+n,v=Math.pow(u,2)*Math.pow(h,2)*t,C=Math.exp(-y),E=Xx(Math.pow(h,2),u);return(-i(h)+EE>0?-1:1)*((w-v)*C)/E}):(i=h=>{const g=Math.exp(-h*t),y=(h-n)*t+1;return-EE+g*y},o=h=>{const g=Math.exp(-h*t),y=(n-h)*(t*t);return g*y});const l=5/t,d=Vle(i,o,l);if(t=Tu(t),isNaN(d))return{stiffness:fr.stiffness,damping:fr.damping,duration:t};{const h=Math.pow(d,2)*r;return{stiffness:h,damping:u*2*Math.sqrt(r*h),duration:t}}}const zle=12;function Vle(t,e,n){let r=n;for(let i=1;it[n]!==void 0)}function Kle(t){let e={velocity:fr.velocity,stiffness:fr.stiffness,damping:fr.damping,mass:fr.mass,isResolvedFromDuration:!1,...t};if(!f5(t,Wle)&&f5(t,Gle))if(t.visualDuration){const n=t.visualDuration,r=2*Math.PI/(n*1.2),i=r*r,o=2*Nl(.05,1,1-(t.bounce||0))*Math.sqrt(i);e={...e,mass:fr.mass,stiffness:i,damping:o}}else{const n=Hle(t);e={...e,...n,mass:fr.mass},e.isResolvedFromDuration=!0}return e}function wS(t=fr.visualDuration,e=fr.bounce){const n=typeof t!="object"?{visualDuration:t,keyframes:[0,1],bounce:e}:t;let{restSpeed:r,restDelta:i}=n;const o=n.keyframes[0],u=n.keyframes[n.keyframes.length-1],l={done:!1,value:o},{stiffness:d,damping:h,mass:g,duration:y,velocity:w,isResolvedFromDuration:v}=Kle({...n,velocity:-_u(n.velocity||0)}),C=w||0,E=h/(2*Math.sqrt(d*g)),$=u-o,O=_u(Math.sqrt(d/g)),_=Math.abs($)<5;r||(r=_?fr.restSpeed.granular:fr.restSpeed.default),i||(i=_?fr.restDelta.granular:fr.restDelta.default);let R;if(E<1){const P=Xx(O,E);R=L=>{const F=Math.exp(-E*O*L);return u-F*((C+E*O*$)/P*Math.sin(P*L)+$*Math.cos(P*L))}}else if(E===1)R=P=>u-Math.exp(-O*P)*($+(C+O*$)*P);else{const P=O*Math.sqrt(E*E-1);R=L=>{const F=Math.exp(-E*O*L),q=Math.min(P*L,300);return u-F*((C+E*O*$)*Math.sinh(q)+P*$*Math.cosh(q))/P}}const k={calculatedDuration:v&&y||null,next:P=>{const L=R(P);if(v)l.done=P>=y;else{let F=P===0?C:0;E<1&&(F=P===0?Tu(C):fk(R,P,L));const q=Math.abs(F)<=r,Y=Math.abs(u-L)<=i;l.done=q&&Y}return l.value=l.done?u:L,l},toString:()=>{const P=Math.min(jT(k),bS),L=ck(F=>k.next(P*F).value,P,30);return P+"ms "+L},toTransition:()=>{}};return k}wS.applyToOptions=t=>{const e=Ble(t,100,wS);return t.ease=e.ease,t.duration=Tu(e.duration),t.type="keyframes",t};function Zx({keyframes:t,velocity:e=0,power:n=.8,timeConstant:r=325,bounceDamping:i=10,bounceStiffness:o=500,modifyTarget:u,min:l,max:d,restDelta:h=.5,restSpeed:g}){const y=t[0],w={done:!1,value:y},v=q=>l!==void 0&&qd,C=q=>l===void 0?d:d===void 0||Math.abs(l-q)-E*Math.exp(-q/r),R=q=>O+_(q),k=q=>{const Y=_(q),X=R(q);w.done=Math.abs(Y)<=h,w.value=w.done?O:X};let P,L;const F=q=>{v(w.value)&&(P=q,L=wS({keyframes:[w.value,C(w.value)],velocity:fk(R,q,w.value),damping:i,stiffness:o,restDelta:h,restSpeed:g}))};return F(0),{calculatedDuration:null,next:q=>{let Y=!1;return!L&&P===void 0&&(Y=!0,k(q),F(q)),P!==void 0&&q>=P?L.next(q-P):(!Y&&k(q),w)}}}function Yle(t,e,n){const r=[],i=n||Ml.mix||lk,o=t.length-1;for(let u=0;ue[0];if(o===2&&e[0]===e[1])return()=>e[1];const u=t[0]===t[1];t[0]>t[o-1]&&(t=[...t].reverse(),e=[...e].reverse());const l=Yle(e,r,i),d=l.length,h=g=>{if(u&&g1)for(;yh(Nl(t[0],t[o-1],g)):h}function Qle(t,e){const n=t[t.length-1];for(let r=1;r<=e;r++){const i=I1(0,e,r);t.push(ir(n,1,i))}}function Xle(t){const e=[0];return Qle(e,t.length-1),e}function Zle(t,e){return t.map(n=>n*e)}function ece(t,e){return t.map(()=>e||ZM).splice(0,t.length-1)}function K0({duration:t=300,keyframes:e,times:n,ease:r="easeInOut"}){const i=fle(r)?r.map(a5):a5(r),o={done:!1,value:e[0]},u=Zle(n&&n.length===e.length?n:Xle(e),t),l=Jle(u,e,{ease:Array.isArray(i)?i:ece(e,i)});return{calculatedDuration:t,next:d=>(o.value=l(d),o.done=d>=t,o)}}const tce=t=>t!==null;function BT(t,{repeat:e,repeatType:n="loop"},r,i=1){const o=t.filter(tce),l=i<0||e&&n!=="loop"&&e%2===1?0:o.length-1;return!l||r===void 0?o[l]:r}const nce={decay:Zx,inertia:Zx,tween:K0,keyframes:K0,spring:wS};function dk(t){typeof t.type=="string"&&(t.type=nce[t.type])}class qT{constructor(){this.updateFinished()}get finished(){return this._finished}updateFinished(){this._finished=new Promise(e=>{this.resolve=e})}notifyFinished(){this.resolve()}then(e,n){return this.finished.then(e,n)}}const rce=t=>t/100;class HT extends qT{constructor(e){super(),this.state="idle",this.startTime=null,this.isStopped=!1,this.currentTime=0,this.holdTime=null,this.playbackSpeed=1,this.stop=()=>{var r,i;const{motionValue:n}=this.options;n&&n.updatedAt!==xa.now()&&this.tick(xa.now()),this.isStopped=!0,this.state!=="idle"&&(this.teardown(),(i=(r=this.options).onStop)==null||i.call(r))},this.options=e,this.initAnimation(),this.play(),e.autoplay===!1&&this.pause()}initAnimation(){const{options:e}=this;dk(e);const{type:n=K0,repeat:r=0,repeatDelay:i=0,repeatType:o,velocity:u=0}=e;let{keyframes:l}=e;const d=n||K0;d!==K0&&typeof l[0]!="number"&&(this.mixKeyframes=tb(rce,lk(l[0],l[1])),l=[0,100]);const h=d({...e,keyframes:l});o==="mirror"&&(this.mirroredGenerator=d({...e,keyframes:[...l].reverse(),velocity:-u})),h.calculatedDuration===null&&(h.calculatedDuration=jT(h));const{calculatedDuration:g}=h;this.calculatedDuration=g,this.resolvedDuration=g+i,this.totalDuration=this.resolvedDuration*(r+1)-i,this.generator=h}updateTime(e){const n=Math.round(e-this.startTime)*this.playbackSpeed;this.holdTime!==null?this.currentTime=this.holdTime:this.currentTime=n}tick(e,n=!1){const{generator:r,totalDuration:i,mixKeyframes:o,mirroredGenerator:u,resolvedDuration:l,calculatedDuration:d}=this;if(this.startTime===null)return r.next(0);const{delay:h=0,keyframes:g,repeat:y,repeatType:w,repeatDelay:v,type:C,onUpdate:E,finalKeyframe:$}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,e):this.speed<0&&(this.startTime=Math.min(e-i/this.speed,this.startTime)),n?this.currentTime=e:this.updateTime(e);const O=this.currentTime-h*(this.playbackSpeed>=0?1:-1),_=this.playbackSpeed>=0?O<0:O>i;this.currentTime=Math.max(O,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=i);let R=this.currentTime,k=r;if(y){const q=Math.min(this.currentTime,i)/l;let Y=Math.floor(q),X=q%1;!X&&q>=1&&(X=1),X===1&&Y--,Y=Math.min(Y,y+1),!!(Y%2)&&(w==="reverse"?(X=1-X,v&&(X-=v/l)):w==="mirror"&&(k=u)),R=Nl(0,1,X)*l}const P=_?{done:!1,value:g[0]}:k.next(R);o&&(P.value=o(P.value));let{done:L}=P;!_&&d!==null&&(L=this.playbackSpeed>=0?this.currentTime>=i:this.currentTime<=0);const F=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&L);return F&&C!==Zx&&(P.value=BT(g,this.options,$,this.speed)),E&&E(P.value),F&&this.finish(),P}then(e,n){return this.finished.then(e,n)}get duration(){return _u(this.calculatedDuration)}get time(){return _u(this.currentTime)}set time(e){var n;e=Tu(e),this.currentTime=e,this.startTime===null||this.holdTime!==null||this.playbackSpeed===0?this.holdTime=e:this.driver&&(this.startTime=this.driver.now()-e/this.playbackSpeed),(n=this.driver)==null||n.start(!1)}get speed(){return this.playbackSpeed}set speed(e){this.updateTime(xa.now());const n=this.playbackSpeed!==e;this.playbackSpeed=e,n&&(this.time=_u(this.currentTime))}play(){var i,o;if(this.isStopped)return;const{driver:e=jle,startTime:n}=this.options;this.driver||(this.driver=e(u=>this.tick(u))),(o=(i=this.options).onPlay)==null||o.call(i);const r=this.driver.now();this.state==="finished"?(this.updateFinished(),this.startTime=r):this.holdTime!==null?this.startTime=r-this.holdTime:this.startTime||(this.startTime=n??r),this.state==="finished"&&this.speed<0&&(this.startTime+=this.calculatedDuration),this.holdTime=null,this.state="running",this.driver.start()}pause(){this.state="paused",this.updateTime(xa.now()),this.holdTime=this.currentTime}complete(){this.state!=="running"&&this.play(),this.state="finished",this.holdTime=null}finish(){var e,n;this.notifyFinished(),this.teardown(),this.state="finished",(n=(e=this.options).onComplete)==null||n.call(e)}cancel(){var e,n;this.holdTime=null,this.startTime=0,this.tick(0),this.teardown(),(n=(e=this.options).onCancel)==null||n.call(e)}teardown(){this.state="idle",this.stopDriver(),this.startTime=this.holdTime=null}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(e){return this.startTime=0,this.tick(e,!0)}attachTimeline(e){var n;return this.options.allowFlatten&&(this.options.type="keyframes",this.options.ease="linear",this.initAnimation()),(n=this.driver)==null||n.stop(),e.observe(this)}}function ice(t){for(let e=1;et*180/Math.PI,eO=t=>{const e=Up(Math.atan2(t[1],t[0]));return tO(e)},ace={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:t=>(Math.abs(t[0])+Math.abs(t[3]))/2,rotate:eO,rotateZ:eO,skewX:t=>Up(Math.atan(t[1])),skewY:t=>Up(Math.atan(t[2])),skew:t=>(Math.abs(t[1])+Math.abs(t[2]))/2},tO=t=>(t=t%360,t<0&&(t+=360),t),d5=eO,h5=t=>Math.sqrt(t[0]*t[0]+t[1]*t[1]),p5=t=>Math.sqrt(t[4]*t[4]+t[5]*t[5]),oce={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:h5,scaleY:p5,scale:t=>(h5(t)+p5(t))/2,rotateX:t=>tO(Up(Math.atan2(t[6],t[5]))),rotateY:t=>tO(Up(Math.atan2(-t[2],t[0]))),rotateZ:d5,rotate:d5,skewX:t=>Up(Math.atan(t[4])),skewY:t=>Up(Math.atan(t[1])),skew:t=>(Math.abs(t[1])+Math.abs(t[4]))/2};function nO(t){return t.includes("scale")?1:0}function rO(t,e){if(!t||t==="none")return nO(e);const n=t.match(/^matrix3d\(([-\d.e\s,]+)\)$/u);let r,i;if(n)r=oce,i=n;else{const l=t.match(/^matrix\(([-\d.e\s,]+)\)$/u);r=ace,i=l}if(!i)return nO(e);const o=r[e],u=i[1].split(",").map(uce);return typeof o=="function"?o(u):u[o]}const sce=(t,e)=>{const{transform:n="none"}=getComputedStyle(t);return rO(n,e)};function uce(t){return parseFloat(t.trim())}const vy=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],by=new Set(vy),m5=t=>t===yy||t===xt,lce=new Set(["x","y","z"]),cce=vy.filter(t=>!lce.has(t));function fce(t){const e=[];return cce.forEach(n=>{const r=t.getValue(n);r!==void 0&&(e.push([n,r.get()]),r.set(n.startsWith("scale")?1:0))}),e}const qp={width:({x:t},{paddingLeft:e="0",paddingRight:n="0"})=>t.max-t.min-parseFloat(e)-parseFloat(n),height:({y:t},{paddingTop:e="0",paddingBottom:n="0"})=>t.max-t.min-parseFloat(e)-parseFloat(n),top:(t,{top:e})=>parseFloat(e),left:(t,{left:e})=>parseFloat(e),bottom:({y:t},{top:e})=>parseFloat(e)+(t.max-t.min),right:({x:t},{left:e})=>parseFloat(e)+(t.max-t.min),x:(t,{transform:e})=>rO(e,"x"),y:(t,{transform:e})=>rO(e,"y")};qp.translateX=qp.x;qp.translateY=qp.y;const Hp=new Set;let iO=!1,aO=!1,oO=!1;function hk(){if(aO){const t=Array.from(Hp).filter(r=>r.needsMeasurement),e=new Set(t.map(r=>r.element)),n=new Map;e.forEach(r=>{const i=fce(r);i.length&&(n.set(r,i),r.render())}),t.forEach(r=>r.measureInitialState()),e.forEach(r=>{r.render();const i=n.get(r);i&&i.forEach(([o,u])=>{var l;(l=r.getValue(o))==null||l.set(u)})}),t.forEach(r=>r.measureEndState()),t.forEach(r=>{r.suspendedScrollY!==void 0&&window.scrollTo(0,r.suspendedScrollY)})}aO=!1,iO=!1,Hp.forEach(t=>t.complete(oO)),Hp.clear()}function pk(){Hp.forEach(t=>{t.readKeyframes(),t.needsMeasurement&&(aO=!0)})}function dce(){oO=!0,pk(),hk(),oO=!1}class zT{constructor(e,n,r,i,o,u=!1){this.state="pending",this.isAsync=!1,this.needsMeasurement=!1,this.unresolvedKeyframes=[...e],this.onComplete=n,this.name=r,this.motionValue=i,this.element=o,this.isAsync=u}scheduleResolve(){this.state="scheduled",this.isAsync?(Hp.add(this),iO||(iO=!0,ar.read(pk),ar.resolveKeyframes(hk))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:e,name:n,element:r,motionValue:i}=this;if(e[0]===null){const o=i==null?void 0:i.get(),u=e[e.length-1];if(o!==void 0)e[0]=o;else if(r&&n){const l=r.readValue(n,u);l!=null&&(e[0]=l)}e[0]===void 0&&(e[0]=u),i&&o===void 0&&i.set(e[0])}ice(e)}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(e=!1){this.state="complete",this.onComplete(this.unresolvedKeyframes,this.finalKeyframe,e),Hp.delete(this)}cancel(){this.state==="scheduled"&&(Hp.delete(this),this.state="pending")}resume(){this.state==="pending"&&this.scheduleResolve()}}const hce=t=>t.startsWith("--");function pce(t,e,n){hce(e)?t.style.setProperty(e,n):t.style[e]=n}const mce=PT(()=>window.ScrollTimeline!==void 0),gce={};function yce(t,e){const n=PT(t);return()=>gce[e]??n()}const mk=yce(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch{return!1}return!0},"linearEasing"),j0=([t,e,n,r])=>`cubic-bezier(${t}, ${e}, ${n}, ${r})`,g5={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:j0([0,.65,.55,1]),circOut:j0([.55,0,1,.45]),backIn:j0([.31,.01,.66,-.59]),backOut:j0([.33,1.53,.69,.99])};function gk(t,e){if(t)return typeof t=="function"?mk()?ck(t,e):"ease-out":ek(t)?j0(t):Array.isArray(t)?t.map(n=>gk(n,e)||g5.easeOut):g5[t]}function vce(t,e,n,{delay:r=0,duration:i=300,repeat:o=0,repeatType:u="loop",ease:l="easeOut",times:d}={},h=void 0){const g={[e]:n};d&&(g.offset=d);const y=gk(l,i);Array.isArray(y)&&(g.easing=y);const w={delay:r,duration:i,easing:Array.isArray(y)?"linear":y,fill:"both",iterations:o+1,direction:u==="reverse"?"alternate":"normal"};return h&&(w.pseudoElement=h),t.animate(g,w)}function yk(t){return typeof t=="function"&&"applyToOptions"in t}function bce({type:t,...e}){return yk(t)&&mk()?t.applyToOptions(e):(e.duration??(e.duration=300),e.ease??(e.ease="easeOut"),e)}class wce extends qT{constructor(e){if(super(),this.finishedTime=null,this.isStopped=!1,!e)return;const{element:n,name:r,keyframes:i,pseudoElement:o,allowFlatten:u=!1,finalKeyframe:l,onComplete:d}=e;this.isPseudoElement=!!o,this.allowFlatten=u,this.options=e,RT(typeof e.type!="string");const h=bce(e);this.animation=vce(n,r,i,h,o),h.autoplay===!1&&this.animation.pause(),this.animation.onfinish=()=>{if(this.finishedTime=this.time,!o){const g=BT(i,this.options,l,this.speed);this.updateMotionValue?this.updateMotionValue(g):pce(n,r,g),this.animation.cancel()}d==null||d(),this.notifyFinished()}}play(){this.isStopped||(this.animation.play(),this.state==="finished"&&this.updateFinished())}pause(){this.animation.pause()}complete(){var e,n;(n=(e=this.animation).finish)==null||n.call(e)}cancel(){try{this.animation.cancel()}catch{}}stop(){if(this.isStopped)return;this.isStopped=!0;const{state:e}=this;e==="idle"||e==="finished"||(this.updateMotionValue?this.updateMotionValue():this.commitStyles(),this.isPseudoElement||this.cancel())}commitStyles(){var e,n;this.isPseudoElement||(n=(e=this.animation).commitStyles)==null||n.call(e)}get duration(){var n,r;const e=((r=(n=this.animation.effect)==null?void 0:n.getComputedTiming)==null?void 0:r.call(n).duration)||0;return _u(Number(e))}get time(){return _u(Number(this.animation.currentTime)||0)}set time(e){this.finishedTime=null,this.animation.currentTime=Tu(e)}get speed(){return this.animation.playbackRate}set speed(e){e<0&&(this.finishedTime=null),this.animation.playbackRate=e}get state(){return this.finishedTime!==null?"finished":this.animation.playState}get startTime(){return Number(this.animation.startTime)}set startTime(e){this.animation.startTime=e}attachTimeline({timeline:e,observe:n}){var r;return this.allowFlatten&&((r=this.animation.effect)==null||r.updateTiming({easing:"linear"})),this.animation.onfinish=null,e&&mce()?(this.animation.timeline=e,Vo):n(this)}}const vk={anticipate:JM,backInOut:YM,circInOut:XM};function Sce(t){return t in vk}function Cce(t){typeof t.ease=="string"&&Sce(t.ease)&&(t.ease=vk[t.ease])}const y5=10;class $ce extends wce{constructor(e){Cce(e),dk(e),super(e),e.startTime&&(this.startTime=e.startTime),this.options=e}updateMotionValue(e){const{motionValue:n,onUpdate:r,onComplete:i,element:o,...u}=this.options;if(!n)return;if(e!==void 0){n.set(e);return}const l=new HT({...u,autoplay:!1}),d=Tu(this.finishedTime??this.time);n.setWithVelocity(l.sample(d-y5).value,l.sample(d).value,y5),l.stop()}}const v5=(t,e)=>e==="zIndex"?!1:!!(typeof t=="number"||Array.isArray(t)||typeof t=="string"&&(Nf.test(t)||t==="0")&&!t.startsWith("url("));function Ece(t){const e=t[0];if(t.length===1)return!0;for(let n=0;nObject.hasOwnProperty.call(Element.prototype,"animate"));function _ce(t){var h;const{motionValue:e,name:n,repeatDelay:r,repeatType:i,damping:o,type:u}=t;if(!VT((h=e==null?void 0:e.owner)==null?void 0:h.current))return!1;const{onUpdate:l,transformTemplate:d}=e.owner.getProps();return Tce()&&n&&Oce.has(n)&&(n!=="transform"||!d)&&!l&&!r&&i!=="mirror"&&o!==0&&u!=="inertia"}const Ace=40;class Rce extends qT{constructor({autoplay:e=!0,delay:n=0,type:r="keyframes",repeat:i=0,repeatDelay:o=0,repeatType:u="loop",keyframes:l,name:d,motionValue:h,element:g,...y}){var C;super(),this.stop=()=>{var E,$;this._animation&&(this._animation.stop(),(E=this.stopTimeline)==null||E.call(this)),($=this.keyframeResolver)==null||$.cancel()},this.createdAt=xa.now();const w={autoplay:e,delay:n,type:r,repeat:i,repeatDelay:o,repeatType:u,name:d,motionValue:h,element:g,...y},v=(g==null?void 0:g.KeyframeResolver)||zT;this.keyframeResolver=new v(l,(E,$,O)=>this.onKeyframesResolved(E,$,w,!O),d,h,g),(C=this.keyframeResolver)==null||C.scheduleResolve()}onKeyframesResolved(e,n,r,i){this.keyframeResolver=void 0;const{name:o,type:u,velocity:l,delay:d,isHandoff:h,onUpdate:g}=r;this.resolvedAt=xa.now(),xce(e,o,u,l)||((Ml.instantAnimations||!d)&&(g==null||g(BT(e,r,n))),e[0]=e[e.length-1],r.duration=0,r.repeat=0);const w={startTime:i?this.resolvedAt?this.resolvedAt-this.createdAt>Ace?this.resolvedAt:this.createdAt:this.createdAt:void 0,finalKeyframe:n,...r,keyframes:e},v=!h&&_ce(w)?new $ce({...w,element:w.motionValue.owner.current}):new HT(w);v.finished.then(()=>this.notifyFinished()).catch(Vo),this.pendingTimeline&&(this.stopTimeline=v.attachTimeline(this.pendingTimeline),this.pendingTimeline=void 0),this._animation=v}get finished(){return this._animation?this.animation.finished:this._finished}then(e,n){return this.finished.finally(e).then(()=>{})}get animation(){var e;return this._animation||((e=this.keyframeResolver)==null||e.resume(),dce()),this._animation}get duration(){return this.animation.duration}get time(){return this.animation.time}set time(e){this.animation.time=e}get speed(){return this.animation.speed}get state(){return this.animation.state}set speed(e){this.animation.speed=e}get startTime(){return this.animation.startTime}attachTimeline(e){return this._animation?this.stopTimeline=this.animation.attachTimeline(e):this.pendingTimeline=e,()=>this.stop()}play(){this.animation.play()}pause(){this.animation.pause()}complete(){this.animation.complete()}cancel(){var e;this._animation&&this.animation.cancel(),(e=this.keyframeResolver)==null||e.cancel()}}const Pce=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function Ice(t){const e=Pce.exec(t);if(!e)return[,];const[,n,r,i]=e;return[`--${n??r}`,i]}function bk(t,e,n=1){const[r,i]=Ice(t);if(!r)return;const o=window.getComputedStyle(e).getPropertyValue(r);if(o){const u=o.trim();return BM(u)?parseFloat(u):u}return DT(i)?bk(i,e,n+1):i}function GT(t,e){return(t==null?void 0:t[e])??(t==null?void 0:t.default)??t}const wk=new Set(["width","height","top","left","right","bottom",...vy]),Nce={test:t=>t==="auto",parse:t=>t},Sk=t=>e=>e.test(t),Ck=[yy,xt,Au,Cf,Ele,$le,Nce],b5=t=>Ck.find(Sk(t));function Mce(t){return typeof t=="number"?t===0:t!==null?t==="none"||t==="0"||HM(t):!0}const kce=new Set(["brightness","contrast","saturate","opacity"]);function Dce(t){const[e,n]=t.slice(0,-1).split("(");if(e==="drop-shadow")return t;const[r]=n.match(FT)||[];if(!r)return t;const i=n.replace(r,"");let o=kce.has(e)?1:0;return r!==n&&(o*=100),e+"("+o+i+")"}const Fce=/\b([a-z-]*)\(.*?\)/gu,sO={...Nf,getAnimatableNone:t=>{const e=t.match(Fce);return e?e.map(Dce).join(" "):t}},w5={...yy,transform:Math.round},Lce={rotate:Cf,rotateX:Cf,rotateY:Cf,rotateZ:Cf,scale:mw,scaleX:mw,scaleY:mw,scaleZ:mw,skew:Cf,skewX:Cf,skewY:Cf,distance:xt,translateX:xt,translateY:xt,translateZ:xt,x:xt,y:xt,z:xt,perspective:xt,transformPerspective:xt,opacity:N1,originX:s5,originY:s5,originZ:xt},WT={borderWidth:xt,borderTopWidth:xt,borderRightWidth:xt,borderBottomWidth:xt,borderLeftWidth:xt,borderRadius:xt,radius:xt,borderTopLeftRadius:xt,borderTopRightRadius:xt,borderBottomRightRadius:xt,borderBottomLeftRadius:xt,width:xt,maxWidth:xt,height:xt,maxHeight:xt,top:xt,right:xt,bottom:xt,left:xt,padding:xt,paddingTop:xt,paddingRight:xt,paddingBottom:xt,paddingLeft:xt,margin:xt,marginTop:xt,marginRight:xt,marginBottom:xt,marginLeft:xt,backgroundPositionX:xt,backgroundPositionY:xt,...Lce,zIndex:w5,fillOpacity:N1,strokeOpacity:N1,numOctaves:w5},Uce={...WT,color:Or,backgroundColor:Or,outlineColor:Or,fill:Or,stroke:Or,borderColor:Or,borderTopColor:Or,borderRightColor:Or,borderBottomColor:Or,borderLeftColor:Or,filter:sO,WebkitFilter:sO},$k=t=>Uce[t];function Ek(t,e){let n=$k(t);return n!==sO&&(n=Nf),n.getAnimatableNone?n.getAnimatableNone(e):void 0}const jce=new Set(["auto","none","0"]);function Bce(t,e,n){let r=0,i;for(;r{e.getValue(d).set(h)}),this.resolveNoneKeyframes()}}function Hce(t,e,n){if(t instanceof EventTarget)return[t];if(typeof t=="string"){let r=document;const i=(n==null?void 0:n[t])??r.querySelectorAll(t);return i?Array.from(i):[]}return Array.from(t)}const xk=(t,e)=>e&&typeof t=="number"?e.transform(t):t,S5=30,zce=t=>!isNaN(parseFloat(t));class Vce{constructor(e,n={}){this.canTrackVelocity=null,this.events={},this.updateAndNotify=(r,i=!0)=>{var u,l;const o=xa.now();if(this.updatedAt!==o&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(r),this.current!==this.prev&&((u=this.events.change)==null||u.notify(this.current),this.dependents))for(const d of this.dependents)d.dirty();i&&((l=this.events.renderRequest)==null||l.notify(this.current))},this.hasAnimated=!1,this.setCurrent(e),this.owner=n.owner}setCurrent(e){this.current=e,this.updatedAt=xa.now(),this.canTrackVelocity===null&&e!==void 0&&(this.canTrackVelocity=zce(this.current))}setPrevFrameValue(e=this.current){this.prevFrameValue=e,this.prevUpdatedAt=this.updatedAt}onChange(e){return this.on("change",e)}on(e,n){this.events[e]||(this.events[e]=new IT);const r=this.events[e].add(n);return e==="change"?()=>{r(),ar.read(()=>{this.events.change.getSize()||this.stop()})}:r}clearListeners(){for(const e in this.events)this.events[e].clear()}attach(e,n){this.passiveEffect=e,this.stopPassiveEffect=n}set(e,n=!0){!n||!this.passiveEffect?this.updateAndNotify(e,n):this.passiveEffect(e,this.updateAndNotify)}setWithVelocity(e,n,r){this.set(n),this.prev=void 0,this.prevFrameValue=e,this.prevUpdatedAt=this.updatedAt-r}jump(e,n=!0){this.updateAndNotify(e),this.prev=e,this.prevUpdatedAt=this.prevFrameValue=void 0,n&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}dirty(){var e;(e=this.events.change)==null||e.notify(this.current)}addDependent(e){this.dependents||(this.dependents=new Set),this.dependents.add(e)}removeDependent(e){this.dependents&&this.dependents.delete(e)}get(){return this.current}getPrevious(){return this.prev}getVelocity(){const e=xa.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||e-this.updatedAt>S5)return 0;const n=Math.min(this.updatedAt-this.prevUpdatedAt,S5);return zM(parseFloat(this.current)-parseFloat(this.prevFrameValue),n)}start(e){return this.stop(),new Promise(n=>{this.hasAnimated=!0,this.animation=e(n),this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){var e,n;(e=this.dependents)==null||e.clear(),(n=this.events.destroy)==null||n.notify(),this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function iy(t,e){return new Vce(t,e)}const{schedule:KT}=tk(queueMicrotask,!1),Ps={x:!1,y:!1};function Ok(){return Ps.x||Ps.y}function Gce(t){return t==="x"||t==="y"?Ps[t]?null:(Ps[t]=!0,()=>{Ps[t]=!1}):Ps.x||Ps.y?null:(Ps.x=Ps.y=!0,()=>{Ps.x=Ps.y=!1})}function Tk(t,e){const n=Hce(t),r=new AbortController,i={passive:!0,...e,signal:r.signal};return[n,i,()=>r.abort()]}function C5(t){return!(t.pointerType==="touch"||Ok())}function Wce(t,e,n={}){const[r,i,o]=Tk(t,n),u=l=>{if(!C5(l))return;const{target:d}=l,h=e(d,l);if(typeof h!="function"||!d)return;const g=y=>{C5(y)&&(h(y),d.removeEventListener("pointerleave",g))};d.addEventListener("pointerleave",g,i)};return r.forEach(l=>{l.addEventListener("pointerenter",u,i)}),o}const _k=(t,e)=>e?t===e?!0:_k(t,e.parentElement):!1,YT=t=>t.pointerType==="mouse"?typeof t.button!="number"||t.button<=0:t.isPrimary!==!1,Kce=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);function Yce(t){return Kce.has(t.tagName)||t.tabIndex!==-1}const Mw=new WeakSet;function $5(t){return e=>{e.key==="Enter"&&t(e)}}function xE(t,e){t.dispatchEvent(new PointerEvent("pointer"+e,{isPrimary:!0,bubbles:!0}))}const Jce=(t,e)=>{const n=t.currentTarget;if(!n)return;const r=$5(()=>{if(Mw.has(n))return;xE(n,"down");const i=$5(()=>{xE(n,"up")}),o=()=>xE(n,"cancel");n.addEventListener("keyup",i,e),n.addEventListener("blur",o,e)});n.addEventListener("keydown",r,e),n.addEventListener("blur",()=>n.removeEventListener("keydown",r),e)};function E5(t){return YT(t)&&!Ok()}function Qce(t,e,n={}){const[r,i,o]=Tk(t,n),u=l=>{const d=l.currentTarget;if(!E5(l))return;Mw.add(d);const h=e(d,l),g=(v,C)=>{window.removeEventListener("pointerup",y),window.removeEventListener("pointercancel",w),Mw.has(d)&&Mw.delete(d),E5(v)&&typeof h=="function"&&h(v,{success:C})},y=v=>{g(v,d===window||d===document||n.useGlobalTarget||_k(d,v.target))},w=v=>{g(v,!1)};window.addEventListener("pointerup",y,i),window.addEventListener("pointercancel",w,i)};return r.forEach(l=>{(n.useGlobalTarget?window:l).addEventListener("pointerdown",u,i),VT(l)&&(l.addEventListener("focus",h=>Jce(h,i)),!Yce(l)&&!l.hasAttribute("tabindex")&&(l.tabIndex=0))}),o}function Ak(t){return qM(t)&&"ownerSVGElement"in t}function Xce(t){return Ak(t)&&t.tagName==="svg"}const Di=t=>!!(t&&t.getVelocity),Zce=[...Ck,Or,Nf],efe=t=>Zce.find(Sk(t)),JT=T.createContext({transformPagePoint:t=>t,isStatic:!1,reducedMotion:"never"});class tfe extends T.Component{getSnapshotBeforeUpdate(e){const n=this.props.childRef.current;if(n&&e.isPresent&&!this.props.isPresent){const r=n.offsetParent,i=VT(r)&&r.offsetWidth||0,o=this.props.sizeRef.current;o.height=n.offsetHeight||0,o.width=n.offsetWidth||0,o.top=n.offsetTop,o.left=n.offsetLeft,o.right=i-o.width-o.left}return null}componentDidUpdate(){}render(){return this.props.children}}function nfe({children:t,isPresent:e,anchorX:n}){const r=T.useId(),i=T.useRef(null),o=T.useRef({width:0,height:0,top:0,left:0,right:0}),{nonce:u}=T.useContext(JT);return T.useInsertionEffect(()=>{const{width:l,height:d,top:h,left:g,right:y}=o.current;if(e||!i.current||!l||!d)return;const w=n==="left"?`left: ${g}`:`right: ${y}`;i.current.dataset.motionPopId=r;const v=document.createElement("style");return u&&(v.nonce=u),document.head.appendChild(v),v.sheet&&v.sheet.insertRule(` + */var R5;function Ele(){return R5||(R5=1,(function(t){const e=Cle(),n=$le(),r=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;t.Buffer=l,t.SlowBuffer=_,t.INSPECT_MAX_BYTES=50;const i=2147483647;t.kMaxLength=i,l.TYPED_ARRAY_SUPPORT=o(),!l.TYPED_ARRAY_SUPPORT&&typeof console<"u"&&typeof console.error=="function"&&console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support.");function o(){try{const B=new Uint8Array(1),A={foo:function(){return 42}};return Object.setPrototypeOf(A,Uint8Array.prototype),Object.setPrototypeOf(B,A),B.foo()===42}catch{return!1}}Object.defineProperty(l.prototype,"parent",{enumerable:!0,get:function(){if(l.isBuffer(this))return this.buffer}}),Object.defineProperty(l.prototype,"offset",{enumerable:!0,get:function(){if(l.isBuffer(this))return this.byteOffset}});function u(B){if(B>i)throw new RangeError('The value "'+B+'" is invalid for option "size"');const A=new Uint8Array(B);return Object.setPrototypeOf(A,l.prototype),A}function l(B,A,M){if(typeof B=="number"){if(typeof A=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return y(B)}return d(B,A,M)}l.poolSize=8192;function d(B,A,M){if(typeof B=="string")return w(B,A);if(ArrayBuffer.isView(B))return C(B);if(B==null)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof B);if(pe(B,ArrayBuffer)||B&&pe(B.buffer,ArrayBuffer)||typeof SharedArrayBuffer<"u"&&(pe(B,SharedArrayBuffer)||B&&pe(B.buffer,SharedArrayBuffer)))return E(B,A,M);if(typeof B=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');const J=B.valueOf&&B.valueOf();if(J!=null&&J!==B)return l.from(J,A,M);const re=$(B);if(re)return re;if(typeof Symbol<"u"&&Symbol.toPrimitive!=null&&typeof B[Symbol.toPrimitive]=="function")return l.from(B[Symbol.toPrimitive]("string"),A,M);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof B)}l.from=function(B,A,M){return d(B,A,M)},Object.setPrototypeOf(l.prototype,Uint8Array.prototype),Object.setPrototypeOf(l,Uint8Array);function h(B){if(typeof B!="number")throw new TypeError('"size" argument must be of type number');if(B<0)throw new RangeError('The value "'+B+'" is invalid for option "size"')}function g(B,A,M){return h(B),B<=0?u(B):A!==void 0?typeof M=="string"?u(B).fill(A,M):u(B).fill(A):u(B)}l.alloc=function(B,A,M){return g(B,A,M)};function y(B){return h(B),u(B<0?0:O(B)|0)}l.allocUnsafe=function(B){return y(B)},l.allocUnsafeSlow=function(B){return y(B)};function w(B,A){if((typeof A!="string"||A==="")&&(A="utf8"),!l.isEncoding(A))throw new TypeError("Unknown encoding: "+A);const M=P(B,A)|0;let J=u(M);const re=J.write(B,A);return re!==M&&(J=J.slice(0,re)),J}function b(B){const A=B.length<0?0:O(B.length)|0,M=u(A);for(let J=0;J=i)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+i.toString(16)+" bytes");return B|0}function _(B){return+B!=B&&(B=0),l.alloc(+B)}l.isBuffer=function(A){return A!=null&&A._isBuffer===!0&&A!==l.prototype},l.compare=function(A,M){if(pe(A,Uint8Array)&&(A=l.from(A,A.offset,A.byteLength)),pe(M,Uint8Array)&&(M=l.from(M,M.offset,M.byteLength)),!l.isBuffer(A)||!l.isBuffer(M))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(A===M)return 0;let J=A.length,re=M.length;for(let ge=0,Ee=Math.min(J,re);gere.length?(l.isBuffer(Ee)||(Ee=l.from(Ee)),Ee.copy(re,ge)):Uint8Array.prototype.set.call(re,Ee,ge);else if(l.isBuffer(Ee))Ee.copy(re,ge);else throw new TypeError('"list" argument must be an Array of Buffers');ge+=Ee.length}return re};function P(B,A){if(l.isBuffer(B))return B.length;if(ArrayBuffer.isView(B)||pe(B,ArrayBuffer))return B.byteLength;if(typeof B!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof B);const M=B.length,J=arguments.length>2&&arguments[2]===!0;if(!J&&M===0)return 0;let re=!1;for(;;)switch(A){case"ascii":case"latin1":case"binary":return M;case"utf8":case"utf-8":return Tt(B).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return M*2;case"hex":return M>>>1;case"base64":return Dt(B).length;default:if(re)return J?-1:Tt(B).length;A=(""+A).toLowerCase(),re=!0}}l.byteLength=P;function k(B,A,M){let J=!1;if((A===void 0||A<0)&&(A=0),A>this.length||((M===void 0||M>this.length)&&(M=this.length),M<=0)||(M>>>=0,A>>>=0,M<=A))return"";for(B||(B="utf8");;)switch(B){case"hex":return ie(this,A,M);case"utf8":case"utf-8":return be(this,A,M);case"ascii":return V(this,A,M);case"latin1":case"binary":return H(this,A,M);case"base64":return te(this,A,M);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return G(this,A,M);default:if(J)throw new TypeError("Unknown encoding: "+B);B=(B+"").toLowerCase(),J=!0}}l.prototype._isBuffer=!0;function R(B,A,M){const J=B[A];B[A]=B[M],B[M]=J}l.prototype.swap16=function(){const A=this.length;if(A%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(let M=0;MM&&(A+=" ... "),""},r&&(l.prototype[r]=l.prototype.inspect),l.prototype.compare=function(A,M,J,re,ge){if(pe(A,Uint8Array)&&(A=l.from(A,A.offset,A.byteLength)),!l.isBuffer(A))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof A);if(M===void 0&&(M=0),J===void 0&&(J=A?A.length:0),re===void 0&&(re=0),ge===void 0&&(ge=this.length),M<0||J>A.length||re<0||ge>this.length)throw new RangeError("out of range index");if(re>=ge&&M>=J)return 0;if(re>=ge)return-1;if(M>=J)return 1;if(M>>>=0,J>>>=0,re>>>=0,ge>>>=0,this===A)return 0;let Ee=ge-re,rt=J-M;const Wt=Math.min(Ee,rt),ae=this.slice(re,ge),ce=A.slice(M,J);for(let nt=0;nt2147483647?M=2147483647:M<-2147483648&&(M=-2147483648),M=+M,ze(M)&&(M=re?0:B.length-1),M<0&&(M=B.length+M),M>=B.length){if(re)return-1;M=B.length-1}else if(M<0)if(re)M=0;else return-1;if(typeof A=="string"&&(A=l.from(A,J)),l.isBuffer(A))return A.length===0?-1:F(B,A,M,J,re);if(typeof A=="number")return A=A&255,typeof Uint8Array.prototype.indexOf=="function"?re?Uint8Array.prototype.indexOf.call(B,A,M):Uint8Array.prototype.lastIndexOf.call(B,A,M):F(B,[A],M,J,re);throw new TypeError("val must be string, number or Buffer")}function F(B,A,M,J,re){let ge=1,Ee=B.length,rt=A.length;if(J!==void 0&&(J=String(J).toLowerCase(),J==="ucs2"||J==="ucs-2"||J==="utf16le"||J==="utf-16le")){if(B.length<2||A.length<2)return-1;ge=2,Ee/=2,rt/=2,M/=2}function Wt(ce,nt){return ge===1?ce[nt]:ce.readUInt16BE(nt*ge)}let ae;if(re){let ce=-1;for(ae=M;aeEe&&(M=Ee-rt),ae=M;ae>=0;ae--){let ce=!0;for(let nt=0;ntre&&(J=re)):J=re;const ge=A.length;J>ge/2&&(J=ge/2);let Ee;for(Ee=0;Ee>>0,isFinite(J)?(J=J>>>0,re===void 0&&(re="utf8")):(re=J,J=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");const ge=this.length-M;if((J===void 0||J>ge)&&(J=ge),A.length>0&&(J<0||M<0)||M>this.length)throw new RangeError("Attempt to write outside buffer bounds");re||(re="utf8");let Ee=!1;for(;;)switch(re){case"hex":return q(this,A,M,J);case"utf8":case"utf-8":return Y(this,A,M,J);case"ascii":case"latin1":case"binary":return Q(this,A,M,J);case"base64":return ue(this,A,M,J);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return me(this,A,M,J);default:if(Ee)throw new TypeError("Unknown encoding: "+re);re=(""+re).toLowerCase(),Ee=!0}},l.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function te(B,A,M){return A===0&&M===B.length?e.fromByteArray(B):e.fromByteArray(B.slice(A,M))}function be(B,A,M){M=Math.min(B.length,M);const J=[];let re=A;for(;re239?4:ge>223?3:ge>191?2:1;if(re+rt<=M){let Wt,ae,ce,nt;switch(rt){case 1:ge<128&&(Ee=ge);break;case 2:Wt=B[re+1],(Wt&192)===128&&(nt=(ge&31)<<6|Wt&63,nt>127&&(Ee=nt));break;case 3:Wt=B[re+1],ae=B[re+2],(Wt&192)===128&&(ae&192)===128&&(nt=(ge&15)<<12|(Wt&63)<<6|ae&63,nt>2047&&(nt<55296||nt>57343)&&(Ee=nt));break;case 4:Wt=B[re+1],ae=B[re+2],ce=B[re+3],(Wt&192)===128&&(ae&192)===128&&(ce&192)===128&&(nt=(ge&15)<<18|(Wt&63)<<12|(ae&63)<<6|ce&63,nt>65535&&nt<1114112&&(Ee=nt))}}Ee===null?(Ee=65533,rt=1):Ee>65535&&(Ee-=65536,J.push(Ee>>>10&1023|55296),Ee=56320|Ee&1023),J.push(Ee),re+=rt}return j(J)}const Se=4096;function j(B){const A=B.length;if(A<=Se)return String.fromCharCode.apply(String,B);let M="",J=0;for(;JJ)&&(M=J);let re="";for(let ge=A;geJ&&(A=J),M<0?(M+=J,M<0&&(M=0)):M>J&&(M=J),MM)throw new RangeError("Trying to access beyond buffer length")}l.prototype.readUintLE=l.prototype.readUIntLE=function(A,M,J){A=A>>>0,M=M>>>0,J||X(A,M,this.length);let re=this[A],ge=1,Ee=0;for(;++Ee>>0,M=M>>>0,J||X(A,M,this.length);let re=this[A+--M],ge=1;for(;M>0&&(ge*=256);)re+=this[A+--M]*ge;return re},l.prototype.readUint8=l.prototype.readUInt8=function(A,M){return A=A>>>0,M||X(A,1,this.length),this[A]},l.prototype.readUint16LE=l.prototype.readUInt16LE=function(A,M){return A=A>>>0,M||X(A,2,this.length),this[A]|this[A+1]<<8},l.prototype.readUint16BE=l.prototype.readUInt16BE=function(A,M){return A=A>>>0,M||X(A,2,this.length),this[A]<<8|this[A+1]},l.prototype.readUint32LE=l.prototype.readUInt32LE=function(A,M){return A=A>>>0,M||X(A,4,this.length),(this[A]|this[A+1]<<8|this[A+2]<<16)+this[A+3]*16777216},l.prototype.readUint32BE=l.prototype.readUInt32BE=function(A,M){return A=A>>>0,M||X(A,4,this.length),this[A]*16777216+(this[A+1]<<16|this[A+2]<<8|this[A+3])},l.prototype.readBigUInt64LE=Je(function(A){A=A>>>0,bt(A,"offset");const M=this[A],J=this[A+7];(M===void 0||J===void 0)&>(A,this.length-8);const re=M+this[++A]*2**8+this[++A]*2**16+this[++A]*2**24,ge=this[++A]+this[++A]*2**8+this[++A]*2**16+J*2**24;return BigInt(re)+(BigInt(ge)<>>0,bt(A,"offset");const M=this[A],J=this[A+7];(M===void 0||J===void 0)&>(A,this.length-8);const re=M*2**24+this[++A]*2**16+this[++A]*2**8+this[++A],ge=this[++A]*2**24+this[++A]*2**16+this[++A]*2**8+J;return(BigInt(re)<>>0,M=M>>>0,J||X(A,M,this.length);let re=this[A],ge=1,Ee=0;for(;++Ee=ge&&(re-=Math.pow(2,8*M)),re},l.prototype.readIntBE=function(A,M,J){A=A>>>0,M=M>>>0,J||X(A,M,this.length);let re=M,ge=1,Ee=this[A+--re];for(;re>0&&(ge*=256);)Ee+=this[A+--re]*ge;return ge*=128,Ee>=ge&&(Ee-=Math.pow(2,8*M)),Ee},l.prototype.readInt8=function(A,M){return A=A>>>0,M||X(A,1,this.length),this[A]&128?(255-this[A]+1)*-1:this[A]},l.prototype.readInt16LE=function(A,M){A=A>>>0,M||X(A,2,this.length);const J=this[A]|this[A+1]<<8;return J&32768?J|4294901760:J},l.prototype.readInt16BE=function(A,M){A=A>>>0,M||X(A,2,this.length);const J=this[A+1]|this[A]<<8;return J&32768?J|4294901760:J},l.prototype.readInt32LE=function(A,M){return A=A>>>0,M||X(A,4,this.length),this[A]|this[A+1]<<8|this[A+2]<<16|this[A+3]<<24},l.prototype.readInt32BE=function(A,M){return A=A>>>0,M||X(A,4,this.length),this[A]<<24|this[A+1]<<16|this[A+2]<<8|this[A+3]},l.prototype.readBigInt64LE=Je(function(A){A=A>>>0,bt(A,"offset");const M=this[A],J=this[A+7];(M===void 0||J===void 0)&>(A,this.length-8);const re=this[A+4]+this[A+5]*2**8+this[A+6]*2**16+(J<<24);return(BigInt(re)<>>0,bt(A,"offset");const M=this[A],J=this[A+7];(M===void 0||J===void 0)&>(A,this.length-8);const re=(M<<24)+this[++A]*2**16+this[++A]*2**8+this[++A];return(BigInt(re)<>>0,M||X(A,4,this.length),n.read(this,A,!0,23,4)},l.prototype.readFloatBE=function(A,M){return A=A>>>0,M||X(A,4,this.length),n.read(this,A,!1,23,4)},l.prototype.readDoubleLE=function(A,M){return A=A>>>0,M||X(A,8,this.length),n.read(this,A,!0,52,8)},l.prototype.readDoubleBE=function(A,M){return A=A>>>0,M||X(A,8,this.length),n.read(this,A,!1,52,8)};function fe(B,A,M,J,re,ge){if(!l.isBuffer(B))throw new TypeError('"buffer" argument must be a Buffer instance');if(A>re||AB.length)throw new RangeError("Index out of range")}l.prototype.writeUintLE=l.prototype.writeUIntLE=function(A,M,J,re){if(A=+A,M=M>>>0,J=J>>>0,!re){const rt=Math.pow(2,8*J)-1;fe(this,A,M,J,rt,0)}let ge=1,Ee=0;for(this[M]=A&255;++Ee>>0,J=J>>>0,!re){const rt=Math.pow(2,8*J)-1;fe(this,A,M,J,rt,0)}let ge=J-1,Ee=1;for(this[M+ge]=A&255;--ge>=0&&(Ee*=256);)this[M+ge]=A/Ee&255;return M+J},l.prototype.writeUint8=l.prototype.writeUInt8=function(A,M,J){return A=+A,M=M>>>0,J||fe(this,A,M,1,255,0),this[M]=A&255,M+1},l.prototype.writeUint16LE=l.prototype.writeUInt16LE=function(A,M,J){return A=+A,M=M>>>0,J||fe(this,A,M,2,65535,0),this[M]=A&255,this[M+1]=A>>>8,M+2},l.prototype.writeUint16BE=l.prototype.writeUInt16BE=function(A,M,J){return A=+A,M=M>>>0,J||fe(this,A,M,2,65535,0),this[M]=A>>>8,this[M+1]=A&255,M+2},l.prototype.writeUint32LE=l.prototype.writeUInt32LE=function(A,M,J){return A=+A,M=M>>>0,J||fe(this,A,M,4,4294967295,0),this[M+3]=A>>>24,this[M+2]=A>>>16,this[M+1]=A>>>8,this[M]=A&255,M+4},l.prototype.writeUint32BE=l.prototype.writeUInt32BE=function(A,M,J){return A=+A,M=M>>>0,J||fe(this,A,M,4,4294967295,0),this[M]=A>>>24,this[M+1]=A>>>16,this[M+2]=A>>>8,this[M+3]=A&255,M+4};function $e(B,A,M,J,re){pt(A,J,re,B,M,7);let ge=Number(A&BigInt(4294967295));B[M++]=ge,ge=ge>>8,B[M++]=ge,ge=ge>>8,B[M++]=ge,ge=ge>>8,B[M++]=ge;let Ee=Number(A>>BigInt(32)&BigInt(4294967295));return B[M++]=Ee,Ee=Ee>>8,B[M++]=Ee,Ee=Ee>>8,B[M++]=Ee,Ee=Ee>>8,B[M++]=Ee,M}function Ce(B,A,M,J,re){pt(A,J,re,B,M,7);let ge=Number(A&BigInt(4294967295));B[M+7]=ge,ge=ge>>8,B[M+6]=ge,ge=ge>>8,B[M+5]=ge,ge=ge>>8,B[M+4]=ge;let Ee=Number(A>>BigInt(32)&BigInt(4294967295));return B[M+3]=Ee,Ee=Ee>>8,B[M+2]=Ee,Ee=Ee>>8,B[M+1]=Ee,Ee=Ee>>8,B[M]=Ee,M+8}l.prototype.writeBigUInt64LE=Je(function(A,M=0){return $e(this,A,M,BigInt(0),BigInt("0xffffffffffffffff"))}),l.prototype.writeBigUInt64BE=Je(function(A,M=0){return Ce(this,A,M,BigInt(0),BigInt("0xffffffffffffffff"))}),l.prototype.writeIntLE=function(A,M,J,re){if(A=+A,M=M>>>0,!re){const Wt=Math.pow(2,8*J-1);fe(this,A,M,J,Wt-1,-Wt)}let ge=0,Ee=1,rt=0;for(this[M]=A&255;++ge>0)-rt&255;return M+J},l.prototype.writeIntBE=function(A,M,J,re){if(A=+A,M=M>>>0,!re){const Wt=Math.pow(2,8*J-1);fe(this,A,M,J,Wt-1,-Wt)}let ge=J-1,Ee=1,rt=0;for(this[M+ge]=A&255;--ge>=0&&(Ee*=256);)A<0&&rt===0&&this[M+ge+1]!==0&&(rt=1),this[M+ge]=(A/Ee>>0)-rt&255;return M+J},l.prototype.writeInt8=function(A,M,J){return A=+A,M=M>>>0,J||fe(this,A,M,1,127,-128),A<0&&(A=255+A+1),this[M]=A&255,M+1},l.prototype.writeInt16LE=function(A,M,J){return A=+A,M=M>>>0,J||fe(this,A,M,2,32767,-32768),this[M]=A&255,this[M+1]=A>>>8,M+2},l.prototype.writeInt16BE=function(A,M,J){return A=+A,M=M>>>0,J||fe(this,A,M,2,32767,-32768),this[M]=A>>>8,this[M+1]=A&255,M+2},l.prototype.writeInt32LE=function(A,M,J){return A=+A,M=M>>>0,J||fe(this,A,M,4,2147483647,-2147483648),this[M]=A&255,this[M+1]=A>>>8,this[M+2]=A>>>16,this[M+3]=A>>>24,M+4},l.prototype.writeInt32BE=function(A,M,J){return A=+A,M=M>>>0,J||fe(this,A,M,4,2147483647,-2147483648),A<0&&(A=4294967295+A+1),this[M]=A>>>24,this[M+1]=A>>>16,this[M+2]=A>>>8,this[M+3]=A&255,M+4},l.prototype.writeBigInt64LE=Je(function(A,M=0){return $e(this,A,M,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),l.prototype.writeBigInt64BE=Je(function(A,M=0){return Ce(this,A,M,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))});function je(B,A,M,J,re,ge){if(M+J>B.length)throw new RangeError("Index out of range");if(M<0)throw new RangeError("Index out of range")}function Pe(B,A,M,J,re){return A=+A,M=M>>>0,re||je(B,A,M,4),n.write(B,A,M,J,23,4),M+4}l.prototype.writeFloatLE=function(A,M,J){return Pe(this,A,M,!0,J)},l.prototype.writeFloatBE=function(A,M,J){return Pe(this,A,M,!1,J)};function tt(B,A,M,J,re){return A=+A,M=M>>>0,re||je(B,A,M,8),n.write(B,A,M,J,52,8),M+8}l.prototype.writeDoubleLE=function(A,M,J){return tt(this,A,M,!0,J)},l.prototype.writeDoubleBE=function(A,M,J){return tt(this,A,M,!1,J)},l.prototype.copy=function(A,M,J,re){if(!l.isBuffer(A))throw new TypeError("argument should be a Buffer");if(J||(J=0),!re&&re!==0&&(re=this.length),M>=A.length&&(M=A.length),M||(M=0),re>0&&re=this.length)throw new RangeError("Index out of range");if(re<0)throw new RangeError("sourceEnd out of bounds");re>this.length&&(re=this.length),A.length-M>>0,J=J===void 0?this.length:J>>>0,A||(A=0);let ge;if(typeof A=="number")for(ge=M;ge2**32?re=He(String(M)):typeof M=="bigint"&&(re=String(M),(M>BigInt(2)**BigInt(32)||M<-(BigInt(2)**BigInt(32)))&&(re=He(re)),re+="n"),J+=` It must be ${A}. Received ${re}`,J},RangeError);function He(B){let A="",M=B.length;const J=B[0]==="-"?1:0;for(;M>=J+4;M-=3)A=`_${B.slice(M-3,M)}${A}`;return`${B.slice(0,M)}${A}`}function ut(B,A,M){bt(A,"offset"),(B[A]===void 0||B[A+M]===void 0)&>(A,B.length-(M+1))}function pt(B,A,M,J,re,ge){if(B>M||B= 0${Ee} and < 2${Ee} ** ${(ge+1)*8}${Ee}`:rt=`>= -(2${Ee} ** ${(ge+1)*8-1}${Ee}) and < 2 ** ${(ge+1)*8-1}${Ee}`,new ke.ERR_OUT_OF_RANGE("value",rt,B)}ut(J,re,ge)}function bt(B,A){if(typeof B!="number")throw new ke.ERR_INVALID_ARG_TYPE(A,"number",B)}function gt(B,A,M){throw Math.floor(B)!==B?(bt(B,M),new ke.ERR_OUT_OF_RANGE("offset","an integer",B)):A<0?new ke.ERR_BUFFER_OUT_OF_BOUNDS:new ke.ERR_OUT_OF_RANGE("offset",`>= 0 and <= ${A}`,B)}const Ut=/[^+/0-9A-Za-z-_]/g;function Gt(B){if(B=B.split("=")[0],B=B.trim().replace(Ut,""),B.length<2)return"";for(;B.length%4!==0;)B=B+"=";return B}function Tt(B,A){A=A||1/0;let M;const J=B.length;let re=null;const ge=[];for(let Ee=0;Ee55295&&M<57344){if(!re){if(M>56319){(A-=3)>-1&&ge.push(239,191,189);continue}else if(Ee+1===J){(A-=3)>-1&&ge.push(239,191,189);continue}re=M;continue}if(M<56320){(A-=3)>-1&&ge.push(239,191,189),re=M;continue}M=(re-55296<<10|M-56320)+65536}else re&&(A-=3)>-1&&ge.push(239,191,189);if(re=null,M<128){if((A-=1)<0)break;ge.push(M)}else if(M<2048){if((A-=2)<0)break;ge.push(M>>6|192,M&63|128)}else if(M<65536){if((A-=3)<0)break;ge.push(M>>12|224,M>>6&63|128,M&63|128)}else if(M<1114112){if((A-=4)<0)break;ge.push(M>>18|240,M>>12&63|128,M>>6&63|128,M&63|128)}else throw new Error("Invalid code point")}return ge}function en(B){const A=[];for(let M=0;M>8,re=M%256,ge.push(re),ge.push(J);return ge}function Dt(B){return e.toByteArray(Gt(B))}function Pt(B,A,M,J){let re;for(re=0;re=A.length||re>=B.length);++re)A[re+M]=B[re];return re}function pe(B,A){return B instanceof A||B!=null&&B.constructor!=null&&B.constructor.name!=null&&B.constructor.name===A.name}function ze(B){return B!==B}const Ge=(function(){const B="0123456789abcdef",A=new Array(256);for(let M=0;M<16;++M){const J=M*16;for(let re=0;re<16;++re)A[J+re]=B[M]+B[re]}return A})();function Je(B){return typeof BigInt>"u"?ht:B}function ht(){throw new Error("BigInt not supported")}})(GE)),GE}Ele();const xle=t=>{const{config:e}=T.useContext(NF);yn();const{placeholder:n,label:r,getInputRef:i,secureTextEntry:o,Icon:u,onChange:l,value:d,height:h,disabled:g,forceBasic:y,forceRich:w,focused:b=!1,autoFocus:C,...E}=t,[$,O]=T.useState(!1),_=T.useRef(),P=T.useRef(!1),[k,R]=T.useState("tinymce"),{upload:L}=Sle(),{directPath:F}=IG();T.useEffect(()=>{if(e.textEditorModule!=="tinymce")t.onReady&&t.onReady();else{const Q=setTimeout(()=>{P.current===!1&&(R("textarea"),t.onReady&&t.onReady())},5e3);return()=>{clearTimeout(Q)}}},[]);const q=async(Q,ue)=>{const me=await L([new File([Q.blob()],"filename")],!0)[0];return F({diskPath:me})},Y=window.matchMedia("(prefers-color-scheme: dark)").matches||document.getElementsByTagName("body")[0].classList.contains("dark-theme");return N.jsx(s3,{focused:$,...t,children:e.textEditorModule==="tinymce"&&!y||w?N.jsx(ble,{onInit:(Q,ue)=>{_.current=ue,setTimeout(()=>{ue.setContent(d||"",{format:"raw"})},0),t.onReady&&t.onReady()},onEditorChange:(Q,ue)=>{l&&l(ue.getContent({format:"raw"}))},onLoadContent:()=>{P.current=!0},apiKey:"4dh1g4gxp1gbmxi3hnkro4wf9lfgmqr86khygey2bwb7ps74",onBlur:()=>O(!1),tinymceScriptSrc:$i.PUBLIC_URL+"plugins/js/tinymce/tinymce.min.js",onFocus:()=>O(!0),init:{menubar:!1,height:h||400,images_upload_handler:q,skin:Y?"oxide-dark":"oxide",content_css:Y?"dark":"default",plugins:["example","image","directionality","image"],toolbar:"undo redo | formatselect | example | image | rtl ltr | link | bullist numlist bold italic backcolor h2 h3 | alignleft aligncenter alignright alignjustify | bullist numlist outdent indent | removeformat | help",content_style:"body {font-size:18px }"}}):N.jsx("textarea",{...E,value:d,placeholder:n,style:{minHeight:"140px"},autoFocus:C,className:Go("form-control",t.errorMessage&&"is-invalid",t.validMessage&&"is-valid"),onChange:Q=>l&&l(Q.target.value),onBlur:()=>O(!1),onFocus:()=>O(!0)})})},P5=t=>{const{placeholder:e,label:n,getInputRef:r,secureTextEntry:i,Icon:o,onChange:u,value:l,disabled:d,focused:h=!1,errorMessage:g,autoFocus:y,...w}=t,[b,C]=T.useState(!1),E=T.useRef(null),$=T.useCallback(()=>{var O;(O=E.current)==null||O.focus()},[E.current]);return N.jsx(s3,{focused:b,onClick:$,...t,label:"",children:N.jsxs("label",{className:"form-label mr-2",children:[N.jsx("input",{...w,ref:E,checked:!!l,type:"checkbox",onChange:O=>u&&u(!l),onBlur:()=>C(!1),onFocus:()=>C(!0),className:"form-checkbox"}),n]})})},Ole=t=>[$i.SUPPORTED_LANGUAGES.includes("en")?{label:t.locale.englishWorldwide,value:"en"}:void 0,$i.SUPPORTED_LANGUAGES.includes("fa")?{label:t.locale.persianIran,value:"fa"}:void 0,$i.SUPPORTED_LANGUAGES.includes("ru")?{label:"Russian (Русский)",value:"ru"}:void 0,$i.SUPPORTED_LANGUAGES.includes("pl")?{label:t.locale.polishPoland,value:"pl"}:void 0,$i.SUPPORTED_LANGUAGES.includes("ua")?{label:"Ukrainain (українська)",value:"ua"}:void 0].filter(Boolean),Tle=({form:t,isEditing:e})=>{const n=yn(),{values:r,setValues:i,setFieldValue:o,errors:u}=t,l=Kn(lk),d=Ole(n),h=ole(d);return N.jsxs(N.Fragment,{children:[N.jsxs("div",{className:"row",children:[N.jsx("div",{className:"col-md-12",children:N.jsx(zo,{value:r.firstName,onChange:g=>o(Ar.Fields.firstName,g,!1),errorMessage:u.firstName,label:n.wokspaces.invite.firstName,autoFocus:!e,hint:n.wokspaces.invite.firstNameHint})}),N.jsx("div",{className:"col-md-12",children:N.jsx(zo,{value:r.lastName,onChange:g=>o(Ar.Fields.lastName,g,!1),errorMessage:u.lastName,label:n.wokspaces.invite.lastName,hint:n.wokspaces.invite.lastNameHint})}),N.jsx("div",{className:"col-md-12",children:N.jsx(fO,{keyExtractor:g=>g.value,formEffect:{form:t,field:Ar.Fields.targetUserLocale,beforeSet(g){return g.value}},errorMessage:t.errors.targetUserLocale,querySource:h,label:l.targetLocale,hint:l.targetLocaleHint})}),N.jsx("div",{className:"col-md-12",children:N.jsx(xle,{value:r.coverLetter,onChange:g=>o(Ar.Fields.coverLetter,g,!1),forceBasic:!0,errorMessage:u.coverLetter,label:l.coverLetter,placeholder:l.coverLetterHint,hint:l.coverLetterHint})}),N.jsx("div",{className:"col-md-12",children:N.jsx(fO,{formEffect:{field:Ar.Fields.role$,form:t},querySource:S3,label:n.wokspaces.invite.role,errorMessage:u.roleId,fnLabelFormat:g=>g.name,hint:n.wokspaces.invite.roleHint})})]}),N.jsxs("div",{className:"row",children:[N.jsx("div",{className:"col-md-12",children:N.jsx(zo,{value:r.email,onChange:g=>o(Ar.Fields.email,g,!1),errorMessage:u.email,label:n.wokspaces.invite.email,hint:n.wokspaces.invite.emailHint})}),N.jsx("div",{className:"col-md-12",children:N.jsx(P5,{value:r.forceEmailAddress,onChange:g=>o(Ar.Fields.forceEmailAddress,g),errorMessage:u.forceEmailAddress,label:l.forcedEmailAddress,hint:l.forcedEmailAddressHint})}),N.jsx("div",{className:"col-md-12",children:N.jsx(zo,{value:r.phonenumber,onChange:g=>o(Ar.Fields.phonenumber,g,!1),errorMessage:u.phonenumber,type:"phonenumber",label:n.wokspaces.invite.phoneNumber,hint:n.wokspaces.invite.phoneNumberHint})}),N.jsx("div",{className:"col-md-12",children:N.jsx(P5,{value:r.forcePhoneNumber,onChange:g=>o(Ar.Fields.forcePhoneNumber,g),errorMessage:u.forcePhoneNumber,label:l.forcedPhone,hint:l.forcedPhoneHint})})]})]})},I5=({data:t})=>{const e=yn(),{router:n,uniqueId:r,queryClient:i,locale:o}=bb({data:t}),u=uk({query:{uniqueId:r},queryClient:i}),l=rle({queryClient:i}),d=nle({queryClient:i});return N.jsx(ET,{postHook:l,getSingleHook:u,patchHook:d,onCancel:()=>{n.goBackOrDefault(`/${o}/workspace-invites`)},onFinishUriResolver:(h,g)=>`/${g}/workspace-invites`,Form:Tle,onEditTitle:e.wokspaces.invite.editInvitation,onCreateTitle:e.wokspaces.invite.createInvitation,data:t})},_le=()=>{var u;const t=Br(),e=yn(),n=t.query.uniqueId;xi();const r=Kn(lk),i=uk({query:{uniqueId:n}});var o=(u=i.query.data)==null?void 0:u.data;return ok((o==null?void 0:o.firstName)+" "+(o==null?void 0:o.lastName)||""),N.jsx(N.Fragment,{children:N.jsx(UT,{getSingleHook:i,editEntityHandler:()=>t.push(Ar.Navigation.edit(n)),children:N.jsx(BT,{entity:o,fields:[{label:e.wokspaces.invite.firstName,elem:o==null?void 0:o.firstName},{label:e.wokspaces.invite.lastName,elem:o==null?void 0:o.lastName},{label:e.wokspaces.invite.email,elem:o==null?void 0:o.email},{label:e.wokspaces.invite.phoneNumber,elem:o==null?void 0:o.phonenumber},{label:r.forcedEmailAddress,elem:o==null?void 0:o.forceEmailAddress},{label:r.forcedPhone,elem:o==null?void 0:o.forcePhoneNumber},{label:r.targetLocale,elem:o==null?void 0:o.targetUserLocale}]})})})},Ale=t=>[{name:Ar.Fields.uniqueId,title:t.table.uniqueId,width:100},{name:"firstName",title:t.wokspaces.invite.firstName,width:100},{name:"lastName",title:t.wokspaces.invite.lastName,width:100},{name:"phoneNumber",title:t.wokspaces.invite.phoneNumber,width:100},{name:"email",title:t.wokspaces.invite.email,width:100},{name:"role_id",title:t.wokspaces.invite.role,width:100,getCellValue:e=>{var n;return(n=e==null?void 0:e.role)==null?void 0:n.name}}];function dk({queryOptions:t,query:e,queryClient:n,execFnOverride:r,unauthorized:i,optionFn:o}){var _,P,k;const{options:u,execFn:l}=T.useContext(En),d=o?o(u):u,h=r?r(d):l?l(d):Ei(d);let y=`${"/workspace-invites".substr(1)}?${J1.stringify(e)}`;const w=()=>h("GET",y),b=(_=d==null?void 0:d.headers)==null?void 0:_.authorization,C=b!="undefined"&&b!=null&&b!=null&&b!="null"&&!!b;let E=!0;!C&&!i&&(E=!1);const $=Yo(["*abac.WorkspaceInviteEntity",d,e],w,{cacheTime:1e3,retry:!1,keepPreviousData:!0,enabled:E,...t||{}}),O=((k=(P=$.data)==null?void 0:P.data)==null?void 0:k.items)||[];return{query:$,items:O,keyExtractor:R=>R.uniqueId}}dk.UKEY="*abac.WorkspaceInviteEntity";function Rle(t){const{execFnOverride:e,queryClient:n,query:r}=t||{},{options:i,execFn:o}=T.useContext(En),u=e?e(i):o?o(i):Ei(i);let d=`${"/workspace-invite".substr(1)}?${new URLSearchParams(Na(r)).toString()}`;const g=Ur(b=>u("DELETE",d,b)),y=(b,C)=>b;return{mutation:g,submit:(b,C)=>new Promise((E,$)=>{g.mutate(b,{onSuccess(O){n==null||n.setQueryData("*abac.WorkspaceInviteEntity",_=>y(_)),n==null||n.invalidateQueries("*abac.WorkspaceInviteEntity"),E(O)},onError(O){C==null||C.setErrors(Mu(O)),$(O)}})}),fnUpdater:y}}const Ple=()=>{const t=yn();return N.jsx(N.Fragment,{children:N.jsx(x3,{columns:Ale(t),queryHook:dk,uniqueIdHrefHandler:e=>Ar.Navigation.single(e),deleteHook:Rle})})},Ile=()=>{const t=yn();return N.jsx(N.Fragment,{children:N.jsx(O3,{pageTitle:t.fbMenu.workspaceInvites,newEntityHandler:({locale:e,router:n})=>{n.push(Ar.Navigation.create())},children:N.jsx(Ple,{})})})};function Nle(){return N.jsxs(N.Fragment,{children:[N.jsx(mn,{element:N.jsx(I5,{}),path:Ar.Navigation.Rcreate}),N.jsx(mn,{element:N.jsx(I5,{}),path:Ar.Navigation.Redit}),N.jsx(mn,{element:N.jsx(_le,{}),path:Ar.Navigation.Rsingle}),N.jsx(mn,{element:N.jsx(Ile,{}),path:Ar.Navigation.Rquery})]})}const Mle=()=>{const t=Kn(xr);return N.jsxs(N.Fragment,{children:[N.jsx(sk,{title:t.home.title,description:t.home.description}),N.jsx("h2",{children:N.jsx(Rx,{to:"passports",children:t.home.passportsTitle})}),N.jsx("p",{children:t.home.passportsDescription}),N.jsx(Rx,{to:"passports",className:"btn btn-success btn-sm",children:t.home.passportsTitle})]})},ZT=T.createContext({});function e4(t){const e=T.useRef(null);return e.current===null&&(e.current=t()),e.current}const t4=typeof window<"u",hk=t4?T.useLayoutEffect:T.useEffect,A3=T.createContext(null);function n4(t,e){t.indexOf(e)===-1&&t.push(e)}function r4(t,e){const n=t.indexOf(e);n>-1&&t.splice(n,1)}const Ul=(t,e,n)=>n>e?e:n{};const Bl={},pk=t=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(t);function mk(t){return typeof t=="object"&&t!==null}const gk=t=>/^0[^.\s]+$/u.test(t);function a4(t){let e;return()=>(e===void 0&&(e=t()),e)}const Ko=t=>t,kle=(t,e)=>n=>e(t(n)),Ob=(...t)=>t.reduce(kle),nb=(t,e,n)=>{const r=e-t;return r===0?1:(n-t)/r};class o4{constructor(){this.subscriptions=[]}add(e){return n4(this.subscriptions,e),()=>r4(this.subscriptions,e)}notify(e,n,r){const i=this.subscriptions.length;if(i)if(i===1)this.subscriptions[0](e,n,r);else for(let o=0;ot*1e3,Pu=t=>t/1e3;function yk(t,e){return e?t*(1e3/e):0}const vk=(t,e,n)=>(((1-3*n+3*e)*t+(3*n-6*e))*t+3*e)*t,Dle=1e-7,Fle=12;function Lle(t,e,n,r,i){let o,u,l=0;do u=e+(n-e)/2,o=vk(u,r,i)-t,o>0?n=u:e=u;while(Math.abs(o)>Dle&&++lLle(o,0,1,t,n);return o=>o===0||o===1?o:vk(i(o),e,r)}const bk=t=>e=>e<=.5?t(2*e)/2:(2-t(2*(1-e)))/2,wk=t=>e=>1-t(1-e),Sk=Tb(.33,1.53,.69,.99),s4=wk(Sk),Ck=bk(s4),$k=t=>(t*=2)<1?.5*s4(t):.5*(2-Math.pow(2,-10*(t-1))),u4=t=>1-Math.sin(Math.acos(t)),Ek=wk(u4),xk=bk(u4),Ule=Tb(.42,0,1,1),Ble=Tb(0,0,.58,1),Ok=Tb(.42,0,.58,1),jle=t=>Array.isArray(t)&&typeof t[0]!="number",Tk=t=>Array.isArray(t)&&typeof t[0]=="number",qle={linear:Ko,easeIn:Ule,easeInOut:Ok,easeOut:Ble,circIn:u4,circInOut:xk,circOut:Ek,backIn:s4,backInOut:Ck,backOut:Sk,anticipate:$k},Hle=t=>typeof t=="string",N5=t=>{if(Tk(t)){i4(t.length===4);const[e,n,r,i]=t;return Tb(e,n,r,i)}else if(Hle(t))return qle[t];return t},Uw=["setup","read","resolveKeyframes","preUpdate","update","preRender","render","postRender"],M5={value:null};function zle(t,e){let n=new Set,r=new Set,i=!1,o=!1;const u=new WeakSet;let l={delta:0,timestamp:0,isProcessing:!1},d=0;function h(y){u.has(y)&&(g.schedule(y),t()),d++,y(l)}const g={schedule:(y,w=!1,b=!1)=>{const E=b&&i?n:r;return w&&u.add(y),E.has(y)||E.add(y),y},cancel:y=>{r.delete(y),u.delete(y)},process:y=>{if(l=y,i){o=!0;return}i=!0,[n,r]=[r,n],n.forEach(h),e&&M5.value&&M5.value.frameloop[e].push(d),d=0,n.clear(),i=!1,o&&(o=!1,g.process(y))}};return g}const Vle=40;function _k(t,e){let n=!1,r=!0;const i={delta:0,timestamp:0,isProcessing:!1},o=()=>n=!0,u=Uw.reduce((P,k)=>(P[k]=zle(o,e?k:void 0),P),{}),{setup:l,read:d,resolveKeyframes:h,preUpdate:g,update:y,preRender:w,render:b,postRender:C}=u,E=()=>{const P=Bl.useManualTiming?i.timestamp:performance.now();n=!1,Bl.useManualTiming||(i.delta=r?1e3/60:Math.max(Math.min(P-i.timestamp,Vle),1)),i.timestamp=P,i.isProcessing=!0,l.process(i),d.process(i),h.process(i),g.process(i),y.process(i),w.process(i),b.process(i),C.process(i),i.isProcessing=!1,n&&e&&(r=!1,t(E))},$=()=>{n=!0,r=!0,i.isProcessing||t(E)};return{schedule:Uw.reduce((P,k)=>{const R=u[k];return P[k]=(L,F=!1,q=!1)=>(n||$(),R.schedule(L,F,q)),P},{}),cancel:P=>{for(let k=0;k(aS===void 0&&Pa.set(yi.isProcessing||Bl.useManualTiming?yi.timestamp:performance.now()),aS),set:t=>{aS=t,queueMicrotask(Gle)}},Ak=t=>e=>typeof e=="string"&&e.startsWith(t),l4=Ak("--"),Wle=Ak("var(--"),c4=t=>Wle(t)?Kle.test(t.split("/*")[0].trim()):!1,Kle=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu,Ly={test:t=>typeof t=="number",parse:parseFloat,transform:t=>t},rb={...Ly,transform:t=>Ul(0,1,t)},Bw={...Ly,default:1},m1=t=>Math.round(t*1e5)/1e5,f4=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function Yle(t){return t==null}const Jle=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,d4=(t,e)=>n=>!!(typeof n=="string"&&Jle.test(n)&&n.startsWith(t)||e&&!Yle(n)&&Object.prototype.hasOwnProperty.call(n,e)),Rk=(t,e,n)=>r=>{if(typeof r!="string")return r;const[i,o,u,l]=r.match(f4);return{[t]:parseFloat(i),[e]:parseFloat(o),[n]:parseFloat(u),alpha:l!==void 0?parseFloat(l):1}},Qle=t=>Ul(0,255,t),KE={...Ly,transform:t=>Math.round(Qle(t))},am={test:d4("rgb","red"),parse:Rk("red","green","blue"),transform:({red:t,green:e,blue:n,alpha:r=1})=>"rgba("+KE.transform(t)+", "+KE.transform(e)+", "+KE.transform(n)+", "+m1(rb.transform(r))+")"};function Xle(t){let e="",n="",r="",i="";return t.length>5?(e=t.substring(1,3),n=t.substring(3,5),r=t.substring(5,7),i=t.substring(7,9)):(e=t.substring(1,2),n=t.substring(2,3),r=t.substring(3,4),i=t.substring(4,5),e+=e,n+=n,r+=r,i+=i),{red:parseInt(e,16),green:parseInt(n,16),blue:parseInt(r,16),alpha:i?parseInt(i,16)/255:1}}const EO={test:d4("#"),parse:Xle,transform:am.transform},_b=t=>({test:e=>typeof e=="string"&&e.endsWith(t)&&e.split(" ").length===1,parse:parseFloat,transform:e=>`${e}${t}`}),Pf=_b("deg"),Iu=_b("%"),xt=_b("px"),Zle=_b("vh"),ece=_b("vw"),k5={...Iu,parse:t=>Iu.parse(t)/100,transform:t=>Iu.transform(t*100)},uy={test:d4("hsl","hue"),parse:Rk("hue","saturation","lightness"),transform:({hue:t,saturation:e,lightness:n,alpha:r=1})=>"hsla("+Math.round(t)+", "+Iu.transform(m1(e))+", "+Iu.transform(m1(n))+", "+m1(rb.transform(r))+")"},_r={test:t=>am.test(t)||EO.test(t)||uy.test(t),parse:t=>am.test(t)?am.parse(t):uy.test(t)?uy.parse(t):EO.parse(t),transform:t=>typeof t=="string"?t:t.hasOwnProperty("red")?am.transform(t):uy.transform(t),getAnimatableNone:t=>{const e=_r.parse(t);return e.alpha=0,_r.transform(e)}},tce=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function nce(t){var e,n;return isNaN(t)&&typeof t=="string"&&(((e=t.match(f4))==null?void 0:e.length)||0)+(((n=t.match(tce))==null?void 0:n.length)||0)>0}const Pk="number",Ik="color",rce="var",ice="var(",D5="${}",ace=/var\s*\(\s*--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)|#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\)|-?(?:\d+(?:\.\d+)?|\.\d+)/giu;function ib(t){const e=t.toString(),n=[],r={color:[],number:[],var:[]},i=[];let o=0;const l=e.replace(ace,d=>(_r.test(d)?(r.color.push(o),i.push(Ik),n.push(_r.parse(d))):d.startsWith(ice)?(r.var.push(o),i.push(rce),n.push(d)):(r.number.push(o),i.push(Pk),n.push(parseFloat(d))),++o,D5)).split(D5);return{values:n,split:l,indexes:r,types:i}}function Nk(t){return ib(t).values}function Mk(t){const{split:e,types:n}=ib(t),r=e.length;return i=>{let o="";for(let u=0;utypeof t=="number"?0:_r.test(t)?_r.getAnimatableNone(t):t;function sce(t){const e=Nk(t);return Mk(t)(e.map(oce))}const qf={test:nce,parse:Nk,createTransformer:Mk,getAnimatableNone:sce};function YE(t,e,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?t+(e-t)*6*n:n<1/2?e:n<2/3?t+(e-t)*(2/3-n)*6:t}function uce({hue:t,saturation:e,lightness:n,alpha:r}){t/=360,e/=100,n/=100;let i=0,o=0,u=0;if(!e)i=o=u=n;else{const l=n<.5?n*(1+e):n+e-n*e,d=2*n-l;i=YE(d,l,t+1/3),o=YE(d,l,t),u=YE(d,l,t-1/3)}return{red:Math.round(i*255),green:Math.round(o*255),blue:Math.round(u*255),alpha:r}}function zS(t,e){return n=>n>0?e:t}const ar=(t,e,n)=>t+(e-t)*n,JE=(t,e,n)=>{const r=t*t,i=n*(e*e-r)+r;return i<0?0:Math.sqrt(i)},lce=[EO,am,uy],cce=t=>lce.find(e=>e.test(t));function F5(t){const e=cce(t);if(!e)return!1;let n=e.parse(t);return e===uy&&(n=uce(n)),n}const L5=(t,e)=>{const n=F5(t),r=F5(e);if(!n||!r)return zS(t,e);const i={...n};return o=>(i.red=JE(n.red,r.red,o),i.green=JE(n.green,r.green,o),i.blue=JE(n.blue,r.blue,o),i.alpha=ar(n.alpha,r.alpha,o),am.transform(i))},xO=new Set(["none","hidden"]);function fce(t,e){return xO.has(t)?n=>n<=0?t:e:n=>n>=1?e:t}function dce(t,e){return n=>ar(t,e,n)}function h4(t){return typeof t=="number"?dce:typeof t=="string"?c4(t)?zS:_r.test(t)?L5:mce:Array.isArray(t)?kk:typeof t=="object"?_r.test(t)?L5:hce:zS}function kk(t,e){const n=[...t],r=n.length,i=t.map((o,u)=>h4(o)(o,e[u]));return o=>{for(let u=0;u{for(const o in r)n[o]=r[o](i);return n}}function pce(t,e){const n=[],r={color:0,var:0,number:0};for(let i=0;i{const n=qf.createTransformer(e),r=ib(t),i=ib(e);return r.indexes.var.length===i.indexes.var.length&&r.indexes.color.length===i.indexes.color.length&&r.indexes.number.length>=i.indexes.number.length?xO.has(t)&&!i.values.length||xO.has(e)&&!r.values.length?fce(t,e):Ob(kk(pce(r,i),i.values),n):zS(t,e)};function Dk(t,e,n){return typeof t=="number"&&typeof e=="number"&&typeof n=="number"?ar(t,e,n):h4(t)(t,e)}const gce=t=>{const e=({timestamp:n})=>t(n);return{start:(n=!0)=>or.update(e,n),stop:()=>jf(e),now:()=>yi.isProcessing?yi.timestamp:Pa.now()}},Fk=(t,e,n=10)=>{let r="";const i=Math.max(Math.round(e/n),2);for(let o=0;o=VS?1/0:e}function yce(t,e=100,n){const r=n({...t,keyframes:[0,e]}),i=Math.min(p4(r),VS);return{type:"keyframes",ease:o=>r.next(i*o).value/e,duration:Pu(i)}}const vce=5;function Lk(t,e,n){const r=Math.max(e-vce,0);return yk(n-t(r),e-r)}const hr={stiffness:100,damping:10,mass:1,velocity:0,duration:800,bounce:.3,visualDuration:.3,restSpeed:{granular:.01,default:2},restDelta:{granular:.005,default:.5},minDuration:.01,maxDuration:10,minDamping:.05,maxDamping:1},QE=.001;function bce({duration:t=hr.duration,bounce:e=hr.bounce,velocity:n=hr.velocity,mass:r=hr.mass}){let i,o,u=1-e;u=Ul(hr.minDamping,hr.maxDamping,u),t=Ul(hr.minDuration,hr.maxDuration,Pu(t)),u<1?(i=h=>{const g=h*u,y=g*t,w=g-n,b=OO(h,u),C=Math.exp(-y);return QE-w/b*C},o=h=>{const y=h*u*t,w=y*n+n,b=Math.pow(u,2)*Math.pow(h,2)*t,C=Math.exp(-y),E=OO(Math.pow(h,2),u);return(-i(h)+QE>0?-1:1)*((w-b)*C)/E}):(i=h=>{const g=Math.exp(-h*t),y=(h-n)*t+1;return-QE+g*y},o=h=>{const g=Math.exp(-h*t),y=(n-h)*(t*t);return g*y});const l=5/t,d=Sce(i,o,l);if(t=Ru(t),isNaN(d))return{stiffness:hr.stiffness,damping:hr.damping,duration:t};{const h=Math.pow(d,2)*r;return{stiffness:h,damping:u*2*Math.sqrt(r*h),duration:t}}}const wce=12;function Sce(t,e,n){let r=n;for(let i=1;it[n]!==void 0)}function Ece(t){let e={velocity:hr.velocity,stiffness:hr.stiffness,damping:hr.damping,mass:hr.mass,isResolvedFromDuration:!1,...t};if(!U5(t,$ce)&&U5(t,Cce))if(t.visualDuration){const n=t.visualDuration,r=2*Math.PI/(n*1.2),i=r*r,o=2*Ul(.05,1,1-(t.bounce||0))*Math.sqrt(i);e={...e,mass:hr.mass,stiffness:i,damping:o}}else{const n=bce(t);e={...e,...n,mass:hr.mass},e.isResolvedFromDuration=!0}return e}function GS(t=hr.visualDuration,e=hr.bounce){const n=typeof t!="object"?{visualDuration:t,keyframes:[0,1],bounce:e}:t;let{restSpeed:r,restDelta:i}=n;const o=n.keyframes[0],u=n.keyframes[n.keyframes.length-1],l={done:!1,value:o},{stiffness:d,damping:h,mass:g,duration:y,velocity:w,isResolvedFromDuration:b}=Ece({...n,velocity:-Pu(n.velocity||0)}),C=w||0,E=h/(2*Math.sqrt(d*g)),$=u-o,O=Pu(Math.sqrt(d/g)),_=Math.abs($)<5;r||(r=_?hr.restSpeed.granular:hr.restSpeed.default),i||(i=_?hr.restDelta.granular:hr.restDelta.default);let P;if(E<1){const R=OO(O,E);P=L=>{const F=Math.exp(-E*O*L);return u-F*((C+E*O*$)/R*Math.sin(R*L)+$*Math.cos(R*L))}}else if(E===1)P=R=>u-Math.exp(-O*R)*($+(C+O*$)*R);else{const R=O*Math.sqrt(E*E-1);P=L=>{const F=Math.exp(-E*O*L),q=Math.min(R*L,300);return u-F*((C+E*O*$)*Math.sinh(q)+R*$*Math.cosh(q))/R}}const k={calculatedDuration:b&&y||null,next:R=>{const L=P(R);if(b)l.done=R>=y;else{let F=R===0?C:0;E<1&&(F=R===0?Ru(C):Lk(P,R,L));const q=Math.abs(F)<=r,Y=Math.abs(u-L)<=i;l.done=q&&Y}return l.value=l.done?u:L,l},toString:()=>{const R=Math.min(p4(k),VS),L=Fk(F=>k.next(R*F).value,R,30);return R+"ms "+L},toTransition:()=>{}};return k}GS.applyToOptions=t=>{const e=yce(t,100,GS);return t.ease=e.ease,t.duration=Ru(e.duration),t.type="keyframes",t};function TO({keyframes:t,velocity:e=0,power:n=.8,timeConstant:r=325,bounceDamping:i=10,bounceStiffness:o=500,modifyTarget:u,min:l,max:d,restDelta:h=.5,restSpeed:g}){const y=t[0],w={done:!1,value:y},b=q=>l!==void 0&&qd,C=q=>l===void 0?d:d===void 0||Math.abs(l-q)-E*Math.exp(-q/r),P=q=>O+_(q),k=q=>{const Y=_(q),Q=P(q);w.done=Math.abs(Y)<=h,w.value=w.done?O:Q};let R,L;const F=q=>{b(w.value)&&(R=q,L=GS({keyframes:[w.value,C(w.value)],velocity:Lk(P,q,w.value),damping:i,stiffness:o,restDelta:h,restSpeed:g}))};return F(0),{calculatedDuration:null,next:q=>{let Y=!1;return!L&&R===void 0&&(Y=!0,k(q),F(q)),R!==void 0&&q>=R?L.next(q-R):(!Y&&k(q),w)}}}function xce(t,e,n){const r=[],i=n||Bl.mix||Dk,o=t.length-1;for(let u=0;ue[0];if(o===2&&e[0]===e[1])return()=>e[1];const u=t[0]===t[1];t[0]>t[o-1]&&(t=[...t].reverse(),e=[...e].reverse());const l=xce(e,r,i),d=l.length,h=g=>{if(u&&g1)for(;yh(Ul(t[0],t[o-1],g)):h}function Tce(t,e){const n=t[t.length-1];for(let r=1;r<=e;r++){const i=nb(0,e,r);t.push(ar(n,1,i))}}function _ce(t){const e=[0];return Tce(e,t.length-1),e}function Ace(t,e){return t.map(n=>n*e)}function Rce(t,e){return t.map(()=>e||Ok).splice(0,t.length-1)}function g1({duration:t=300,keyframes:e,times:n,ease:r="easeInOut"}){const i=jle(r)?r.map(N5):N5(r),o={done:!1,value:e[0]},u=Ace(n&&n.length===e.length?n:_ce(e),t),l=Oce(u,e,{ease:Array.isArray(i)?i:Rce(e,i)});return{calculatedDuration:t,next:d=>(o.value=l(d),o.done=d>=t,o)}}const Pce=t=>t!==null;function m4(t,{repeat:e,repeatType:n="loop"},r,i=1){const o=t.filter(Pce),l=i<0||e&&n!=="loop"&&e%2===1?0:o.length-1;return!l||r===void 0?o[l]:r}const Ice={decay:TO,inertia:TO,tween:g1,keyframes:g1,spring:GS};function Uk(t){typeof t.type=="string"&&(t.type=Ice[t.type])}class g4{constructor(){this.updateFinished()}get finished(){return this._finished}updateFinished(){this._finished=new Promise(e=>{this.resolve=e})}notifyFinished(){this.resolve()}then(e,n){return this.finished.then(e,n)}}const Nce=t=>t/100;class y4 extends g4{constructor(e){super(),this.state="idle",this.startTime=null,this.isStopped=!1,this.currentTime=0,this.holdTime=null,this.playbackSpeed=1,this.stop=()=>{var r,i;const{motionValue:n}=this.options;n&&n.updatedAt!==Pa.now()&&this.tick(Pa.now()),this.isStopped=!0,this.state!=="idle"&&(this.teardown(),(i=(r=this.options).onStop)==null||i.call(r))},this.options=e,this.initAnimation(),this.play(),e.autoplay===!1&&this.pause()}initAnimation(){const{options:e}=this;Uk(e);const{type:n=g1,repeat:r=0,repeatDelay:i=0,repeatType:o,velocity:u=0}=e;let{keyframes:l}=e;const d=n||g1;d!==g1&&typeof l[0]!="number"&&(this.mixKeyframes=Ob(Nce,Dk(l[0],l[1])),l=[0,100]);const h=d({...e,keyframes:l});o==="mirror"&&(this.mirroredGenerator=d({...e,keyframes:[...l].reverse(),velocity:-u})),h.calculatedDuration===null&&(h.calculatedDuration=p4(h));const{calculatedDuration:g}=h;this.calculatedDuration=g,this.resolvedDuration=g+i,this.totalDuration=this.resolvedDuration*(r+1)-i,this.generator=h}updateTime(e){const n=Math.round(e-this.startTime)*this.playbackSpeed;this.holdTime!==null?this.currentTime=this.holdTime:this.currentTime=n}tick(e,n=!1){const{generator:r,totalDuration:i,mixKeyframes:o,mirroredGenerator:u,resolvedDuration:l,calculatedDuration:d}=this;if(this.startTime===null)return r.next(0);const{delay:h=0,keyframes:g,repeat:y,repeatType:w,repeatDelay:b,type:C,onUpdate:E,finalKeyframe:$}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,e):this.speed<0&&(this.startTime=Math.min(e-i/this.speed,this.startTime)),n?this.currentTime=e:this.updateTime(e);const O=this.currentTime-h*(this.playbackSpeed>=0?1:-1),_=this.playbackSpeed>=0?O<0:O>i;this.currentTime=Math.max(O,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=i);let P=this.currentTime,k=r;if(y){const q=Math.min(this.currentTime,i)/l;let Y=Math.floor(q),Q=q%1;!Q&&q>=1&&(Q=1),Q===1&&Y--,Y=Math.min(Y,y+1),!!(Y%2)&&(w==="reverse"?(Q=1-Q,b&&(Q-=b/l)):w==="mirror"&&(k=u)),P=Ul(0,1,Q)*l}const R=_?{done:!1,value:g[0]}:k.next(P);o&&(R.value=o(R.value));let{done:L}=R;!_&&d!==null&&(L=this.playbackSpeed>=0?this.currentTime>=i:this.currentTime<=0);const F=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&L);return F&&C!==TO&&(R.value=m4(g,this.options,$,this.speed)),E&&E(R.value),F&&this.finish(),R}then(e,n){return this.finished.then(e,n)}get duration(){return Pu(this.calculatedDuration)}get time(){return Pu(this.currentTime)}set time(e){var n;e=Ru(e),this.currentTime=e,this.startTime===null||this.holdTime!==null||this.playbackSpeed===0?this.holdTime=e:this.driver&&(this.startTime=this.driver.now()-e/this.playbackSpeed),(n=this.driver)==null||n.start(!1)}get speed(){return this.playbackSpeed}set speed(e){this.updateTime(Pa.now());const n=this.playbackSpeed!==e;this.playbackSpeed=e,n&&(this.time=Pu(this.currentTime))}play(){var i,o;if(this.isStopped)return;const{driver:e=gce,startTime:n}=this.options;this.driver||(this.driver=e(u=>this.tick(u))),(o=(i=this.options).onPlay)==null||o.call(i);const r=this.driver.now();this.state==="finished"?(this.updateFinished(),this.startTime=r):this.holdTime!==null?this.startTime=r-this.holdTime:this.startTime||(this.startTime=n??r),this.state==="finished"&&this.speed<0&&(this.startTime+=this.calculatedDuration),this.holdTime=null,this.state="running",this.driver.start()}pause(){this.state="paused",this.updateTime(Pa.now()),this.holdTime=this.currentTime}complete(){this.state!=="running"&&this.play(),this.state="finished",this.holdTime=null}finish(){var e,n;this.notifyFinished(),this.teardown(),this.state="finished",(n=(e=this.options).onComplete)==null||n.call(e)}cancel(){var e,n;this.holdTime=null,this.startTime=0,this.tick(0),this.teardown(),(n=(e=this.options).onCancel)==null||n.call(e)}teardown(){this.state="idle",this.stopDriver(),this.startTime=this.holdTime=null}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(e){return this.startTime=0,this.tick(e,!0)}attachTimeline(e){var n;return this.options.allowFlatten&&(this.options.type="keyframes",this.options.ease="linear",this.initAnimation()),(n=this.driver)==null||n.stop(),e.observe(this)}}function Mce(t){for(let e=1;et*180/Math.PI,_O=t=>{const e=om(Math.atan2(t[1],t[0]));return AO(e)},kce={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:t=>(Math.abs(t[0])+Math.abs(t[3]))/2,rotate:_O,rotateZ:_O,skewX:t=>om(Math.atan(t[1])),skewY:t=>om(Math.atan(t[2])),skew:t=>(Math.abs(t[1])+Math.abs(t[2]))/2},AO=t=>(t=t%360,t<0&&(t+=360),t),B5=_O,j5=t=>Math.sqrt(t[0]*t[0]+t[1]*t[1]),q5=t=>Math.sqrt(t[4]*t[4]+t[5]*t[5]),Dce={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:j5,scaleY:q5,scale:t=>(j5(t)+q5(t))/2,rotateX:t=>AO(om(Math.atan2(t[6],t[5]))),rotateY:t=>AO(om(Math.atan2(-t[2],t[0]))),rotateZ:B5,rotate:B5,skewX:t=>om(Math.atan(t[4])),skewY:t=>om(Math.atan(t[1])),skew:t=>(Math.abs(t[1])+Math.abs(t[4]))/2};function RO(t){return t.includes("scale")?1:0}function PO(t,e){if(!t||t==="none")return RO(e);const n=t.match(/^matrix3d\(([-\d.e\s,]+)\)$/u);let r,i;if(n)r=Dce,i=n;else{const l=t.match(/^matrix\(([-\d.e\s,]+)\)$/u);r=kce,i=l}if(!i)return RO(e);const o=r[e],u=i[1].split(",").map(Lce);return typeof o=="function"?o(u):u[o]}const Fce=(t,e)=>{const{transform:n="none"}=getComputedStyle(t);return PO(n,e)};function Lce(t){return parseFloat(t.trim())}const Uy=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],By=new Set(Uy),H5=t=>t===Ly||t===xt,Uce=new Set(["x","y","z"]),Bce=Uy.filter(t=>!Uce.has(t));function jce(t){const e=[];return Bce.forEach(n=>{const r=t.getValue(n);r!==void 0&&(e.push([n,r.get()]),r.set(n.startsWith("scale")?1:0))}),e}const lm={width:({x:t},{paddingLeft:e="0",paddingRight:n="0"})=>t.max-t.min-parseFloat(e)-parseFloat(n),height:({y:t},{paddingTop:e="0",paddingBottom:n="0"})=>t.max-t.min-parseFloat(e)-parseFloat(n),top:(t,{top:e})=>parseFloat(e),left:(t,{left:e})=>parseFloat(e),bottom:({y:t},{top:e})=>parseFloat(e)+(t.max-t.min),right:({x:t},{left:e})=>parseFloat(e)+(t.max-t.min),x:(t,{transform:e})=>PO(e,"x"),y:(t,{transform:e})=>PO(e,"y")};lm.translateX=lm.x;lm.translateY=lm.y;const cm=new Set;let IO=!1,NO=!1,MO=!1;function Bk(){if(NO){const t=Array.from(cm).filter(r=>r.needsMeasurement),e=new Set(t.map(r=>r.element)),n=new Map;e.forEach(r=>{const i=jce(r);i.length&&(n.set(r,i),r.render())}),t.forEach(r=>r.measureInitialState()),e.forEach(r=>{r.render();const i=n.get(r);i&&i.forEach(([o,u])=>{var l;(l=r.getValue(o))==null||l.set(u)})}),t.forEach(r=>r.measureEndState()),t.forEach(r=>{r.suspendedScrollY!==void 0&&window.scrollTo(0,r.suspendedScrollY)})}NO=!1,IO=!1,cm.forEach(t=>t.complete(MO)),cm.clear()}function jk(){cm.forEach(t=>{t.readKeyframes(),t.needsMeasurement&&(NO=!0)})}function qce(){MO=!0,jk(),Bk(),MO=!1}class v4{constructor(e,n,r,i,o,u=!1){this.state="pending",this.isAsync=!1,this.needsMeasurement=!1,this.unresolvedKeyframes=[...e],this.onComplete=n,this.name=r,this.motionValue=i,this.element=o,this.isAsync=u}scheduleResolve(){this.state="scheduled",this.isAsync?(cm.add(this),IO||(IO=!0,or.read(jk),or.resolveKeyframes(Bk))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:e,name:n,element:r,motionValue:i}=this;if(e[0]===null){const o=i==null?void 0:i.get(),u=e[e.length-1];if(o!==void 0)e[0]=o;else if(r&&n){const l=r.readValue(n,u);l!=null&&(e[0]=l)}e[0]===void 0&&(e[0]=u),i&&o===void 0&&i.set(e[0])}Mce(e)}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(e=!1){this.state="complete",this.onComplete(this.unresolvedKeyframes,this.finalKeyframe,e),cm.delete(this)}cancel(){this.state==="scheduled"&&(cm.delete(this),this.state="pending")}resume(){this.state==="pending"&&this.scheduleResolve()}}const Hce=t=>t.startsWith("--");function zce(t,e,n){Hce(e)?t.style.setProperty(e,n):t.style[e]=n}const Vce=a4(()=>window.ScrollTimeline!==void 0),Gce={};function Wce(t,e){const n=a4(t);return()=>Gce[e]??n()}const qk=Wce(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch{return!1}return!0},"linearEasing"),s1=([t,e,n,r])=>`cubic-bezier(${t}, ${e}, ${n}, ${r})`,z5={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:s1([0,.65,.55,1]),circOut:s1([.55,0,1,.45]),backIn:s1([.31,.01,.66,-.59]),backOut:s1([.33,1.53,.69,.99])};function Hk(t,e){if(t)return typeof t=="function"?qk()?Fk(t,e):"ease-out":Tk(t)?s1(t):Array.isArray(t)?t.map(n=>Hk(n,e)||z5.easeOut):z5[t]}function Kce(t,e,n,{delay:r=0,duration:i=300,repeat:o=0,repeatType:u="loop",ease:l="easeOut",times:d}={},h=void 0){const g={[e]:n};d&&(g.offset=d);const y=Hk(l,i);Array.isArray(y)&&(g.easing=y);const w={delay:r,duration:i,easing:Array.isArray(y)?"linear":y,fill:"both",iterations:o+1,direction:u==="reverse"?"alternate":"normal"};return h&&(w.pseudoElement=h),t.animate(g,w)}function zk(t){return typeof t=="function"&&"applyToOptions"in t}function Yce({type:t,...e}){return zk(t)&&qk()?t.applyToOptions(e):(e.duration??(e.duration=300),e.ease??(e.ease="easeOut"),e)}class Jce extends g4{constructor(e){if(super(),this.finishedTime=null,this.isStopped=!1,!e)return;const{element:n,name:r,keyframes:i,pseudoElement:o,allowFlatten:u=!1,finalKeyframe:l,onComplete:d}=e;this.isPseudoElement=!!o,this.allowFlatten=u,this.options=e,i4(typeof e.type!="string");const h=Yce(e);this.animation=Kce(n,r,i,h,o),h.autoplay===!1&&this.animation.pause(),this.animation.onfinish=()=>{if(this.finishedTime=this.time,!o){const g=m4(i,this.options,l,this.speed);this.updateMotionValue?this.updateMotionValue(g):zce(n,r,g),this.animation.cancel()}d==null||d(),this.notifyFinished()}}play(){this.isStopped||(this.animation.play(),this.state==="finished"&&this.updateFinished())}pause(){this.animation.pause()}complete(){var e,n;(n=(e=this.animation).finish)==null||n.call(e)}cancel(){try{this.animation.cancel()}catch{}}stop(){if(this.isStopped)return;this.isStopped=!0;const{state:e}=this;e==="idle"||e==="finished"||(this.updateMotionValue?this.updateMotionValue():this.commitStyles(),this.isPseudoElement||this.cancel())}commitStyles(){var e,n;this.isPseudoElement||(n=(e=this.animation).commitStyles)==null||n.call(e)}get duration(){var n,r;const e=((r=(n=this.animation.effect)==null?void 0:n.getComputedTiming)==null?void 0:r.call(n).duration)||0;return Pu(Number(e))}get time(){return Pu(Number(this.animation.currentTime)||0)}set time(e){this.finishedTime=null,this.animation.currentTime=Ru(e)}get speed(){return this.animation.playbackRate}set speed(e){e<0&&(this.finishedTime=null),this.animation.playbackRate=e}get state(){return this.finishedTime!==null?"finished":this.animation.playState}get startTime(){return Number(this.animation.startTime)}set startTime(e){this.animation.startTime=e}attachTimeline({timeline:e,observe:n}){var r;return this.allowFlatten&&((r=this.animation.effect)==null||r.updateTiming({easing:"linear"})),this.animation.onfinish=null,e&&Vce()?(this.animation.timeline=e,Ko):n(this)}}const Vk={anticipate:$k,backInOut:Ck,circInOut:xk};function Qce(t){return t in Vk}function Xce(t){typeof t.ease=="string"&&Qce(t.ease)&&(t.ease=Vk[t.ease])}const V5=10;class Zce extends Jce{constructor(e){Xce(e),Uk(e),super(e),e.startTime&&(this.startTime=e.startTime),this.options=e}updateMotionValue(e){const{motionValue:n,onUpdate:r,onComplete:i,element:o,...u}=this.options;if(!n)return;if(e!==void 0){n.set(e);return}const l=new y4({...u,autoplay:!1}),d=Ru(this.finishedTime??this.time);n.setWithVelocity(l.sample(d-V5).value,l.sample(d).value,V5),l.stop()}}const G5=(t,e)=>e==="zIndex"?!1:!!(typeof t=="number"||Array.isArray(t)||typeof t=="string"&&(qf.test(t)||t==="0")&&!t.startsWith("url("));function efe(t){const e=t[0];if(t.length===1)return!0;for(let n=0;nObject.hasOwnProperty.call(Element.prototype,"animate"));function ife(t){var h;const{motionValue:e,name:n,repeatDelay:r,repeatType:i,damping:o,type:u}=t;if(!b4((h=e==null?void 0:e.owner)==null?void 0:h.current))return!1;const{onUpdate:l,transformTemplate:d}=e.owner.getProps();return rfe()&&n&&nfe.has(n)&&(n!=="transform"||!d)&&!l&&!r&&i!=="mirror"&&o!==0&&u!=="inertia"}const afe=40;class ofe extends g4{constructor({autoplay:e=!0,delay:n=0,type:r="keyframes",repeat:i=0,repeatDelay:o=0,repeatType:u="loop",keyframes:l,name:d,motionValue:h,element:g,...y}){var C;super(),this.stop=()=>{var E,$;this._animation&&(this._animation.stop(),(E=this.stopTimeline)==null||E.call(this)),($=this.keyframeResolver)==null||$.cancel()},this.createdAt=Pa.now();const w={autoplay:e,delay:n,type:r,repeat:i,repeatDelay:o,repeatType:u,name:d,motionValue:h,element:g,...y},b=(g==null?void 0:g.KeyframeResolver)||v4;this.keyframeResolver=new b(l,(E,$,O)=>this.onKeyframesResolved(E,$,w,!O),d,h,g),(C=this.keyframeResolver)==null||C.scheduleResolve()}onKeyframesResolved(e,n,r,i){this.keyframeResolver=void 0;const{name:o,type:u,velocity:l,delay:d,isHandoff:h,onUpdate:g}=r;this.resolvedAt=Pa.now(),tfe(e,o,u,l)||((Bl.instantAnimations||!d)&&(g==null||g(m4(e,r,n))),e[0]=e[e.length-1],r.duration=0,r.repeat=0);const w={startTime:i?this.resolvedAt?this.resolvedAt-this.createdAt>afe?this.resolvedAt:this.createdAt:this.createdAt:void 0,finalKeyframe:n,...r,keyframes:e},b=!h&&ife(w)?new Zce({...w,element:w.motionValue.owner.current}):new y4(w);b.finished.then(()=>this.notifyFinished()).catch(Ko),this.pendingTimeline&&(this.stopTimeline=b.attachTimeline(this.pendingTimeline),this.pendingTimeline=void 0),this._animation=b}get finished(){return this._animation?this.animation.finished:this._finished}then(e,n){return this.finished.finally(e).then(()=>{})}get animation(){var e;return this._animation||((e=this.keyframeResolver)==null||e.resume(),qce()),this._animation}get duration(){return this.animation.duration}get time(){return this.animation.time}set time(e){this.animation.time=e}get speed(){return this.animation.speed}get state(){return this.animation.state}set speed(e){this.animation.speed=e}get startTime(){return this.animation.startTime}attachTimeline(e){return this._animation?this.stopTimeline=this.animation.attachTimeline(e):this.pendingTimeline=e,()=>this.stop()}play(){this.animation.play()}pause(){this.animation.pause()}complete(){this.animation.complete()}cancel(){var e;this._animation&&this.animation.cancel(),(e=this.keyframeResolver)==null||e.cancel()}}const sfe=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function ufe(t){const e=sfe.exec(t);if(!e)return[,];const[,n,r,i]=e;return[`--${n??r}`,i]}function Gk(t,e,n=1){const[r,i]=ufe(t);if(!r)return;const o=window.getComputedStyle(e).getPropertyValue(r);if(o){const u=o.trim();return pk(u)?parseFloat(u):u}return c4(i)?Gk(i,e,n+1):i}function w4(t,e){return(t==null?void 0:t[e])??(t==null?void 0:t.default)??t}const Wk=new Set(["width","height","top","left","right","bottom",...Uy]),lfe={test:t=>t==="auto",parse:t=>t},Kk=t=>e=>e.test(t),Yk=[Ly,xt,Iu,Pf,ece,Zle,lfe],W5=t=>Yk.find(Kk(t));function cfe(t){return typeof t=="number"?t===0:t!==null?t==="none"||t==="0"||gk(t):!0}const ffe=new Set(["brightness","contrast","saturate","opacity"]);function dfe(t){const[e,n]=t.slice(0,-1).split("(");if(e==="drop-shadow")return t;const[r]=n.match(f4)||[];if(!r)return t;const i=n.replace(r,"");let o=ffe.has(e)?1:0;return r!==n&&(o*=100),e+"("+o+i+")"}const hfe=/\b([a-z-]*)\(.*?\)/gu,kO={...qf,getAnimatableNone:t=>{const e=t.match(hfe);return e?e.map(dfe).join(" "):t}},K5={...Ly,transform:Math.round},pfe={rotate:Pf,rotateX:Pf,rotateY:Pf,rotateZ:Pf,scale:Bw,scaleX:Bw,scaleY:Bw,scaleZ:Bw,skew:Pf,skewX:Pf,skewY:Pf,distance:xt,translateX:xt,translateY:xt,translateZ:xt,x:xt,y:xt,z:xt,perspective:xt,transformPerspective:xt,opacity:rb,originX:k5,originY:k5,originZ:xt},S4={borderWidth:xt,borderTopWidth:xt,borderRightWidth:xt,borderBottomWidth:xt,borderLeftWidth:xt,borderRadius:xt,radius:xt,borderTopLeftRadius:xt,borderTopRightRadius:xt,borderBottomRightRadius:xt,borderBottomLeftRadius:xt,width:xt,maxWidth:xt,height:xt,maxHeight:xt,top:xt,right:xt,bottom:xt,left:xt,padding:xt,paddingTop:xt,paddingRight:xt,paddingBottom:xt,paddingLeft:xt,margin:xt,marginTop:xt,marginRight:xt,marginBottom:xt,marginLeft:xt,backgroundPositionX:xt,backgroundPositionY:xt,...pfe,zIndex:K5,fillOpacity:rb,strokeOpacity:rb,numOctaves:K5},mfe={...S4,color:_r,backgroundColor:_r,outlineColor:_r,fill:_r,stroke:_r,borderColor:_r,borderTopColor:_r,borderRightColor:_r,borderBottomColor:_r,borderLeftColor:_r,filter:kO,WebkitFilter:kO},Jk=t=>mfe[t];function Qk(t,e){let n=Jk(t);return n!==kO&&(n=qf),n.getAnimatableNone?n.getAnimatableNone(e):void 0}const gfe=new Set(["auto","none","0"]);function yfe(t,e,n){let r=0,i;for(;r{e.getValue(d).set(h)}),this.resolveNoneKeyframes()}}function bfe(t,e,n){if(t instanceof EventTarget)return[t];if(typeof t=="string"){let r=document;const i=(n==null?void 0:n[t])??r.querySelectorAll(t);return i?Array.from(i):[]}return Array.from(t)}const Xk=(t,e)=>e&&typeof t=="number"?e.transform(t):t,Y5=30,wfe=t=>!isNaN(parseFloat(t));class Sfe{constructor(e,n={}){this.canTrackVelocity=null,this.events={},this.updateAndNotify=(r,i=!0)=>{var u,l;const o=Pa.now();if(this.updatedAt!==o&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(r),this.current!==this.prev&&((u=this.events.change)==null||u.notify(this.current),this.dependents))for(const d of this.dependents)d.dirty();i&&((l=this.events.renderRequest)==null||l.notify(this.current))},this.hasAnimated=!1,this.setCurrent(e),this.owner=n.owner}setCurrent(e){this.current=e,this.updatedAt=Pa.now(),this.canTrackVelocity===null&&e!==void 0&&(this.canTrackVelocity=wfe(this.current))}setPrevFrameValue(e=this.current){this.prevFrameValue=e,this.prevUpdatedAt=this.updatedAt}onChange(e){return this.on("change",e)}on(e,n){this.events[e]||(this.events[e]=new o4);const r=this.events[e].add(n);return e==="change"?()=>{r(),or.read(()=>{this.events.change.getSize()||this.stop()})}:r}clearListeners(){for(const e in this.events)this.events[e].clear()}attach(e,n){this.passiveEffect=e,this.stopPassiveEffect=n}set(e,n=!0){!n||!this.passiveEffect?this.updateAndNotify(e,n):this.passiveEffect(e,this.updateAndNotify)}setWithVelocity(e,n,r){this.set(n),this.prev=void 0,this.prevFrameValue=e,this.prevUpdatedAt=this.updatedAt-r}jump(e,n=!0){this.updateAndNotify(e),this.prev=e,this.prevUpdatedAt=this.prevFrameValue=void 0,n&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}dirty(){var e;(e=this.events.change)==null||e.notify(this.current)}addDependent(e){this.dependents||(this.dependents=new Set),this.dependents.add(e)}removeDependent(e){this.dependents&&this.dependents.delete(e)}get(){return this.current}getPrevious(){return this.prev}getVelocity(){const e=Pa.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||e-this.updatedAt>Y5)return 0;const n=Math.min(this.updatedAt-this.prevUpdatedAt,Y5);return yk(parseFloat(this.current)-parseFloat(this.prevFrameValue),n)}start(e){return this.stop(),new Promise(n=>{this.hasAnimated=!0,this.animation=e(n),this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){var e,n;(e=this.dependents)==null||e.clear(),(n=this.events.destroy)==null||n.notify(),this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function xy(t,e){return new Sfe(t,e)}const{schedule:C4}=_k(queueMicrotask,!1),Ms={x:!1,y:!1};function Zk(){return Ms.x||Ms.y}function Cfe(t){return t==="x"||t==="y"?Ms[t]?null:(Ms[t]=!0,()=>{Ms[t]=!1}):Ms.x||Ms.y?null:(Ms.x=Ms.y=!0,()=>{Ms.x=Ms.y=!1})}function eD(t,e){const n=bfe(t),r=new AbortController,i={passive:!0,...e,signal:r.signal};return[n,i,()=>r.abort()]}function J5(t){return!(t.pointerType==="touch"||Zk())}function $fe(t,e,n={}){const[r,i,o]=eD(t,n),u=l=>{if(!J5(l))return;const{target:d}=l,h=e(d,l);if(typeof h!="function"||!d)return;const g=y=>{J5(y)&&(h(y),d.removeEventListener("pointerleave",g))};d.addEventListener("pointerleave",g,i)};return r.forEach(l=>{l.addEventListener("pointerenter",u,i)}),o}const tD=(t,e)=>e?t===e?!0:tD(t,e.parentElement):!1,$4=t=>t.pointerType==="mouse"?typeof t.button!="number"||t.button<=0:t.isPrimary!==!1,Efe=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);function xfe(t){return Efe.has(t.tagName)||t.tabIndex!==-1}const oS=new WeakSet;function Q5(t){return e=>{e.key==="Enter"&&t(e)}}function XE(t,e){t.dispatchEvent(new PointerEvent("pointer"+e,{isPrimary:!0,bubbles:!0}))}const Ofe=(t,e)=>{const n=t.currentTarget;if(!n)return;const r=Q5(()=>{if(oS.has(n))return;XE(n,"down");const i=Q5(()=>{XE(n,"up")}),o=()=>XE(n,"cancel");n.addEventListener("keyup",i,e),n.addEventListener("blur",o,e)});n.addEventListener("keydown",r,e),n.addEventListener("blur",()=>n.removeEventListener("keydown",r),e)};function X5(t){return $4(t)&&!Zk()}function Tfe(t,e,n={}){const[r,i,o]=eD(t,n),u=l=>{const d=l.currentTarget;if(!X5(l))return;oS.add(d);const h=e(d,l),g=(b,C)=>{window.removeEventListener("pointerup",y),window.removeEventListener("pointercancel",w),oS.has(d)&&oS.delete(d),X5(b)&&typeof h=="function"&&h(b,{success:C})},y=b=>{g(b,d===window||d===document||n.useGlobalTarget||tD(d,b.target))},w=b=>{g(b,!1)};window.addEventListener("pointerup",y,i),window.addEventListener("pointercancel",w,i)};return r.forEach(l=>{(n.useGlobalTarget?window:l).addEventListener("pointerdown",u,i),b4(l)&&(l.addEventListener("focus",h=>Ofe(h,i)),!xfe(l)&&!l.hasAttribute("tabindex")&&(l.tabIndex=0))}),o}function nD(t){return mk(t)&&"ownerSVGElement"in t}function _fe(t){return nD(t)&&t.tagName==="svg"}const Li=t=>!!(t&&t.getVelocity),Afe=[...Yk,_r,qf],Rfe=t=>Afe.find(Kk(t)),E4=T.createContext({transformPagePoint:t=>t,isStatic:!1,reducedMotion:"never"});class Pfe extends T.Component{getSnapshotBeforeUpdate(e){const n=this.props.childRef.current;if(n&&e.isPresent&&!this.props.isPresent){const r=n.offsetParent,i=b4(r)&&r.offsetWidth||0,o=this.props.sizeRef.current;o.height=n.offsetHeight||0,o.width=n.offsetWidth||0,o.top=n.offsetTop,o.left=n.offsetLeft,o.right=i-o.width-o.left}return null}componentDidUpdate(){}render(){return this.props.children}}function Ife({children:t,isPresent:e,anchorX:n}){const r=T.useId(),i=T.useRef(null),o=T.useRef({width:0,height:0,top:0,left:0,right:0}),{nonce:u}=T.useContext(E4);return T.useInsertionEffect(()=>{const{width:l,height:d,top:h,left:g,right:y}=o.current;if(e||!i.current||!l||!d)return;const w=n==="left"?`left: ${g}`:`right: ${y}`;i.current.dataset.motionPopId=r;const b=document.createElement("style");return u&&(b.nonce=u),document.head.appendChild(b),b.sheet&&b.sheet.insertRule(` [data-motion-pop-id="${r}"] { position: absolute !important; width: ${l}px !important; @@ -453,4 +453,4 @@ PERFORMANCE OF THIS SOFTWARE. ${w}px !important; top: ${h}px !important; } - `),()=>{document.head.contains(v)&&document.head.removeChild(v)}},[e]),N.jsx(tfe,{isPresent:e,childRef:i,sizeRef:o,children:T.cloneElement(t,{ref:i})})}const rfe=({children:t,initial:e,isPresent:n,onExitComplete:r,custom:i,presenceAffectsLayout:o,mode:u,anchorX:l})=>{const d=OT(ife),h=T.useId();let g=!0,y=T.useMemo(()=>(g=!1,{id:h,initial:e,isPresent:n,custom:i,onExitComplete:w=>{d.set(w,!0);for(const v of d.values())if(!v)return;r&&r()},register:w=>(d.set(w,!1),()=>d.delete(w))}),[n,d,r]);return o&&g&&(y={...y}),T.useMemo(()=>{d.forEach((w,v)=>d.set(v,!1))},[n]),T.useEffect(()=>{!n&&!d.size&&r&&r()},[n]),u==="popLayout"&&(t=N.jsx(nfe,{isPresent:n,anchorX:l,children:t})),N.jsx(r3.Provider,{value:y,children:t})};function ife(){return new Map}function Rk(t=!0){const e=T.useContext(r3);if(e===null)return[!0,null];const{isPresent:n,onExitComplete:r,register:i}=e,o=T.useId();T.useEffect(()=>{if(t)return i(o)},[t]);const u=T.useCallback(()=>t&&r&&r(o),[o,r,t]);return!n&&r?[!1,u]:[!0]}const gw=t=>t.key||"";function x5(t){const e=[];return T.Children.forEach(t,n=>{T.isValidElement(n)&&e.push(n)}),e}const afe=({children:t,custom:e,initial:n=!0,onExitComplete:r,presenceAffectsLayout:i=!0,mode:o="sync",propagate:u=!1,anchorX:l="left"})=>{const[d,h]=Rk(u),g=T.useMemo(()=>x5(t),[t]),y=u&&!d?[]:g.map(gw),w=T.useRef(!0),v=T.useRef(g),C=OT(()=>new Map),[E,$]=T.useState(g),[O,_]=T.useState(g);jM(()=>{w.current=!1,v.current=g;for(let P=0;P{const L=gw(P),F=u&&!d?!1:g===O||y.includes(L),q=()=>{if(C.has(L))C.set(L,!0);else return;let Y=!0;C.forEach(X=>{X||(Y=!1)}),Y&&(k==null||k(),_(v.current),u&&(h==null||h()),r&&r())};return N.jsx(rfe,{isPresent:F,initial:!w.current||n?void 0:!1,custom:e,presenceAffectsLayout:i,mode:o,onExitComplete:F?void 0:q,anchorX:l,children:P},L)})})},Pk=T.createContext({strict:!1}),O5={animation:["animate","variants","whileHover","whileTap","exit","whileInView","whileFocus","whileDrag"],exit:["exit"],drag:["drag","dragControls"],focus:["whileFocus"],hover:["whileHover","onHoverStart","onHoverEnd"],tap:["whileTap","onTap","onTapStart","onTapCancel"],pan:["onPan","onPanStart","onPanSessionStart","onPanEnd"],inView:["whileInView","onViewportEnter","onViewportLeave"],layout:["layout","layoutId"]},ay={};for(const t in O5)ay[t]={isEnabled:e=>O5[t].some(n=>!!e[n])};function ofe(t){for(const e in t)ay[e]={...ay[e],...t[e]}}const sfe=new Set(["animate","exit","variants","initial","style","values","variants","transition","transformTemplate","custom","inherit","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","_dragX","_dragY","onHoverStart","onHoverEnd","onViewportEnter","onViewportLeave","globalTapTarget","ignoreStrict","viewport"]);function SS(t){return t.startsWith("while")||t.startsWith("drag")&&t!=="draggable"||t.startsWith("layout")||t.startsWith("onTap")||t.startsWith("onPan")||t.startsWith("onLayout")||sfe.has(t)}let Ik=t=>!SS(t);function ufe(t){typeof t=="function"&&(Ik=e=>e.startsWith("on")?!SS(e):t(e))}try{ufe(require("@emotion/is-prop-valid").default)}catch{}function lfe(t,e,n){const r={};for(const i in t)i==="values"&&typeof t.values=="object"||(Ik(i)||n===!0&&SS(i)||!e&&!SS(i)||t.draggable&&i.startsWith("onDrag"))&&(r[i]=t[i]);return r}function cfe(t){if(typeof Proxy>"u")return t;const e=new Map,n=(...r)=>t(...r);return new Proxy(n,{get:(r,i)=>i==="create"?t:(e.has(i)||e.set(i,t(i)),e.get(i))})}const i3=T.createContext({});function a3(t){return t!==null&&typeof t=="object"&&typeof t.start=="function"}function k1(t){return typeof t=="string"||Array.isArray(t)}const QT=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],XT=["initial",...QT];function o3(t){return a3(t.animate)||XT.some(e=>k1(t[e]))}function Nk(t){return!!(o3(t)||t.variants)}function ffe(t,e){if(o3(t)){const{initial:n,animate:r}=t;return{initial:n===!1||k1(n)?n:void 0,animate:k1(r)?r:void 0}}return t.inherit!==!1?e:{}}function dfe(t){const{initial:e,animate:n}=ffe(t,T.useContext(i3));return T.useMemo(()=>({initial:e,animate:n}),[T5(e),T5(n)])}function T5(t){return Array.isArray(t)?t.join(" "):t}const hfe=Symbol.for("motionComponentSymbol");function Bg(t){return t&&typeof t=="object"&&Object.prototype.hasOwnProperty.call(t,"current")}function pfe(t,e,n){return T.useCallback(r=>{r&&t.onMount&&t.onMount(r),e&&(r?e.mount(r):e.unmount()),n&&(typeof n=="function"?n(r):Bg(n)&&(n.current=r))},[e])}const ZT=t=>t.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase(),mfe="framerAppearId",Mk="data-"+ZT(mfe),kk=T.createContext({});function gfe(t,e,n,r,i){var E,$;const{visualElement:o}=T.useContext(i3),u=T.useContext(Pk),l=T.useContext(r3),d=T.useContext(JT).reducedMotion,h=T.useRef(null);r=r||u.renderer,!h.current&&r&&(h.current=r(t,{visualState:e,parent:o,props:n,presenceContext:l,blockInitialAnimation:l?l.initial===!1:!1,reducedMotionConfig:d}));const g=h.current,y=T.useContext(kk);g&&!g.projection&&i&&(g.type==="html"||g.type==="svg")&&yfe(h.current,n,i,y);const w=T.useRef(!1);T.useInsertionEffect(()=>{g&&w.current&&g.update(n,l)});const v=n[Mk],C=T.useRef(!!v&&!((E=window.MotionHandoffIsComplete)!=null&&E.call(window,v))&&(($=window.MotionHasOptimisedAnimation)==null?void 0:$.call(window,v)));return jM(()=>{g&&(w.current=!0,window.MotionIsMounted=!0,g.updateFeatures(),KT.render(g.render),C.current&&g.animationState&&g.animationState.animateChanges())}),T.useEffect(()=>{g&&(!C.current&&g.animationState&&g.animationState.animateChanges(),C.current&&(queueMicrotask(()=>{var O;(O=window.MotionHandoffMarkAsComplete)==null||O.call(window,v)}),C.current=!1))}),g}function yfe(t,e,n,r){const{layoutId:i,layout:o,drag:u,dragConstraints:l,layoutScroll:d,layoutRoot:h,layoutCrossfade:g}=e;t.projection=new n(t.latestValues,e["data-framer-portal-id"]?void 0:Dk(t.parent)),t.projection.setOptions({layoutId:i,layout:o,alwaysMeasureLayout:!!u||l&&Bg(l),visualElement:t,animationType:typeof o=="string"?o:"both",initialPromotionConfig:r,crossfade:g,layoutScroll:d,layoutRoot:h})}function Dk(t){if(t)return t.options.allowProjection!==!1?t.projection:Dk(t.parent)}function vfe({preloadedFeatures:t,createVisualElement:e,useRender:n,useVisualState:r,Component:i}){t&&ofe(t);function o(l,d){let h;const g={...T.useContext(JT),...l,layoutId:bfe(l)},{isStatic:y}=g,w=dfe(l),v=r(l,y);if(!y&&TT){wfe();const C=Sfe(g);h=C.MeasureLayout,w.visualElement=gfe(i,v,g,e,C.ProjectionNode)}return N.jsxs(i3.Provider,{value:w,children:[h&&w.visualElement?N.jsx(h,{visualElement:w.visualElement,...g}):null,n(i,l,pfe(v,w.visualElement,d),v,y,w.visualElement)]})}o.displayName=`motion.${typeof i=="string"?i:`create(${i.displayName??i.name??""})`}`;const u=T.forwardRef(o);return u[hfe]=i,u}function bfe({layoutId:t}){const e=T.useContext(xT).id;return e&&t!==void 0?e+"-"+t:t}function wfe(t,e){T.useContext(Pk).strict}function Sfe(t){const{drag:e,layout:n}=ay;if(!e&&!n)return{};const r={...e,...n};return{MeasureLayout:e!=null&&e.isEnabled(t)||n!=null&&n.isEnabled(t)?r.MeasureLayout:void 0,ProjectionNode:r.ProjectionNode}}const D1={};function Cfe(t){for(const e in t)D1[e]=t[e],kT(e)&&(D1[e].isCSSVariable=!0)}function Fk(t,{layout:e,layoutId:n}){return by.has(t)||t.startsWith("origin")||(e||n!==void 0)&&(!!D1[t]||t==="opacity")}const $fe={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},Efe=vy.length;function xfe(t,e,n){let r="",i=!0;for(let o=0;o({style:{},transform:{},transformOrigin:{},vars:{}});function Lk(t,e,n){for(const r in e)!Di(e[r])&&!Fk(r,n)&&(t[r]=e[r])}function Ofe({transformTemplate:t},e){return T.useMemo(()=>{const n=t4();return e4(n,e,t),Object.assign({},n.vars,n.style)},[e])}function Tfe(t,e){const n=t.style||{},r={};return Lk(r,n,t),Object.assign(r,Ofe(t,e)),r}function _fe(t,e){const n={},r=Tfe(t,e);return t.drag&&t.dragListener!==!1&&(n.draggable=!1,r.userSelect=r.WebkitUserSelect=r.WebkitTouchCallout="none",r.touchAction=t.drag===!0?"none":`pan-${t.drag==="x"?"y":"x"}`),t.tabIndex===void 0&&(t.onTap||t.onTapStart||t.whileTap)&&(n.tabIndex=0),n.style=r,n}const Afe={offset:"stroke-dashoffset",array:"stroke-dasharray"},Rfe={offset:"strokeDashoffset",array:"strokeDasharray"};function Pfe(t,e,n=1,r=0,i=!0){t.pathLength=1;const o=i?Afe:Rfe;t[o.offset]=xt.transform(-r);const u=xt.transform(e),l=xt.transform(n);t[o.array]=`${u} ${l}`}function Uk(t,{attrX:e,attrY:n,attrScale:r,pathLength:i,pathSpacing:o=1,pathOffset:u=0,...l},d,h,g){if(e4(t,l,h),d){t.style.viewBox&&(t.attrs.viewBox=t.style.viewBox);return}t.attrs=t.style,t.style={};const{attrs:y,style:w}=t;y.transform&&(w.transform=y.transform,delete y.transform),(w.transform||y.transformOrigin)&&(w.transformOrigin=y.transformOrigin??"50% 50%",delete y.transformOrigin),w.transform&&(w.transformBox=(g==null?void 0:g.transformBox)??"fill-box",delete y.transformBox),e!==void 0&&(y.x=e),n!==void 0&&(y.y=n),r!==void 0&&(y.scale=r),i!==void 0&&Pfe(y,i,o,u,!1)}const jk=()=>({...t4(),attrs:{}}),Bk=t=>typeof t=="string"&&t.toLowerCase()==="svg";function Ife(t,e,n,r){const i=T.useMemo(()=>{const o=jk();return Uk(o,e,Bk(r),t.transformTemplate,t.style),{...o.attrs,style:{...o.style}}},[e]);if(t.style){const o={};Lk(o,t.style,t),i.style={...o,...i.style}}return i}const Nfe=["animate","circle","defs","desc","ellipse","g","image","line","filter","marker","mask","metadata","path","pattern","polygon","polyline","rect","stop","switch","symbol","svg","text","tspan","use","view"];function n4(t){return typeof t!="string"||t.includes("-")?!1:!!(Nfe.indexOf(t)>-1||/[A-Z]/u.test(t))}function Mfe(t=!1){return(n,r,i,{latestValues:o},u)=>{const d=(n4(n)?Ife:_fe)(r,o,u,n),h=lfe(r,typeof n=="string",t),g=n!==T.Fragment?{...h,...d,ref:i}:{},{children:y}=r,w=T.useMemo(()=>Di(y)?y.get():y,[y]);return T.createElement(n,{...g,children:w})}}function _5(t){const e=[{},{}];return t==null||t.values.forEach((n,r)=>{e[0][r]=n.get(),e[1][r]=n.getVelocity()}),e}function r4(t,e,n,r){if(typeof e=="function"){const[i,o]=_5(r);e=e(n!==void 0?n:t.custom,i,o)}if(typeof e=="string"&&(e=t.variants&&t.variants[e]),typeof e=="function"){const[i,o]=_5(r);e=e(n!==void 0?n:t.custom,i,o)}return e}function kw(t){return Di(t)?t.get():t}function kfe({scrapeMotionValuesFromProps:t,createRenderState:e},n,r,i){return{latestValues:Dfe(n,r,i,t),renderState:e()}}const qk=t=>(e,n)=>{const r=T.useContext(i3),i=T.useContext(r3),o=()=>kfe(t,e,r,i);return n?o():OT(o)};function Dfe(t,e,n,r){const i={},o=r(t,{});for(const w in o)i[w]=kw(o[w]);let{initial:u,animate:l}=t;const d=o3(t),h=Nk(t);e&&h&&!d&&t.inherit!==!1&&(u===void 0&&(u=e.initial),l===void 0&&(l=e.animate));let g=n?n.initial===!1:!1;g=g||u===!1;const y=g?l:u;if(y&&typeof y!="boolean"&&!a3(y)){const w=Array.isArray(y)?y:[y];for(let v=0;vArray.isArray(t);function jfe(t,e,n){t.hasValue(e)?t.getValue(e).set(n):t.addValue(e,iy(n))}function Bfe(t){return uO(t)?t[t.length-1]||0:t}function qfe(t,e){const n=F1(t,e);let{transitionEnd:r={},transition:i={},...o}=n||{};o={...o,...r};for(const u in o){const l=Bfe(o[u]);jfe(t,u,l)}}function Hfe(t){return!!(Di(t)&&t.add)}function lO(t,e){const n=t.getValue("willChange");if(Hfe(n))return n.add(e);if(!n&&Ml.WillChange){const r=new Ml.WillChange("auto");t.addValue("willChange",r),r.add(e)}}function zk(t){return t.props[Mk]}const zfe=t=>t!==null;function Vfe(t,{repeat:e,repeatType:n="loop"},r){const i=t.filter(zfe),o=e&&n!=="loop"&&e%2===1?0:i.length-1;return i[o]}const Gfe={type:"spring",stiffness:500,damping:25,restSpeed:10},Wfe=t=>({type:"spring",stiffness:550,damping:t===0?2*Math.sqrt(550):30,restSpeed:10}),Kfe={type:"keyframes",duration:.8},Yfe={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},Jfe=(t,{keyframes:e})=>e.length>2?Kfe:by.has(t)?t.startsWith("scale")?Wfe(e[1]):Gfe:Yfe;function Qfe({when:t,delay:e,delayChildren:n,staggerChildren:r,staggerDirection:i,repeat:o,repeatType:u,repeatDelay:l,from:d,elapsed:h,...g}){return!!Object.keys(g).length}const a4=(t,e,n,r={},i,o)=>u=>{const l=GT(r,t)||{},d=l.delay||r.delay||0;let{elapsed:h=0}=r;h=h-Tu(d);const g={keyframes:Array.isArray(n)?n:[null,n],ease:"easeOut",velocity:e.getVelocity(),...l,delay:-h,onUpdate:w=>{e.set(w),l.onUpdate&&l.onUpdate(w)},onComplete:()=>{u(),l.onComplete&&l.onComplete()},name:t,motionValue:e,element:o?void 0:i};Qfe(l)||Object.assign(g,Jfe(t,g)),g.duration&&(g.duration=Tu(g.duration)),g.repeatDelay&&(g.repeatDelay=Tu(g.repeatDelay)),g.from!==void 0&&(g.keyframes[0]=g.from);let y=!1;if((g.type===!1||g.duration===0&&!g.repeatDelay)&&(g.duration=0,g.delay===0&&(y=!0)),(Ml.instantAnimations||Ml.skipAnimations)&&(y=!0,g.duration=0,g.delay=0),g.allowFlatten=!l.type&&!l.ease,y&&!o&&e.get()!==void 0){const w=Vfe(g.keyframes,l);if(w!==void 0){ar.update(()=>{g.onUpdate(w),g.onComplete()});return}}return l.isSync?new HT(g):new Rce(g)};function Xfe({protectedKeys:t,needsAnimating:e},n){const r=t.hasOwnProperty(n)&&e[n]!==!0;return e[n]=!1,r}function Vk(t,e,{delay:n=0,transitionOverride:r,type:i}={}){let{transition:o=t.getDefaultTransition(),transitionEnd:u,...l}=e;r&&(o=r);const d=[],h=i&&t.animationState&&t.animationState.getState()[i];for(const g in l){const y=t.getValue(g,t.latestValues[g]??null),w=l[g];if(w===void 0||h&&Xfe(h,g))continue;const v={delay:n,...GT(o||{},g)},C=y.get();if(C!==void 0&&!y.isAnimating&&!Array.isArray(w)&&w===C&&!v.velocity)continue;let E=!1;if(window.MotionHandoffAnimation){const O=zk(t);if(O){const _=window.MotionHandoffAnimation(O,g,ar);_!==null&&(v.startTime=_,E=!0)}}lO(t,g),y.start(a4(g,y,w,t.shouldReduceMotion&&wk.has(g)?{type:!1}:v,t,E));const $=y.animation;$&&d.push($)}return u&&Promise.all(d).then(()=>{ar.update(()=>{u&&qfe(t,u)})}),d}function cO(t,e,n={}){var d;const r=F1(t,e,n.type==="exit"?(d=t.presenceContext)==null?void 0:d.custom:void 0);let{transition:i=t.getDefaultTransition()||{}}=r||{};n.transitionOverride&&(i=n.transitionOverride);const o=r?()=>Promise.all(Vk(t,r,n)):()=>Promise.resolve(),u=t.variantChildren&&t.variantChildren.size?(h=0)=>{const{delayChildren:g=0,staggerChildren:y,staggerDirection:w}=i;return Zfe(t,e,g+h,y,w,n)}:()=>Promise.resolve(),{when:l}=i;if(l){const[h,g]=l==="beforeChildren"?[o,u]:[u,o];return h().then(()=>g())}else return Promise.all([o(),u(n.delay)])}function Zfe(t,e,n=0,r=0,i=1,o){const u=[],l=(t.variantChildren.size-1)*r,d=i===1?(h=0)=>h*r:(h=0)=>l-h*r;return Array.from(t.variantChildren).sort(ede).forEach((h,g)=>{h.notify("AnimationStart",e),u.push(cO(h,e,{...o,delay:n+d(g)}).then(()=>h.notify("AnimationComplete",e)))}),Promise.all(u)}function ede(t,e){return t.sortNodePosition(e)}function tde(t,e,n={}){t.notify("AnimationStart",e);let r;if(Array.isArray(e)){const i=e.map(o=>cO(t,o,n));r=Promise.all(i)}else if(typeof e=="string")r=cO(t,e,n);else{const i=typeof e=="function"?F1(t,e,n.custom):e;r=Promise.all(Vk(t,i,n))}return r.then(()=>{t.notify("AnimationComplete",e)})}function Gk(t,e){if(!Array.isArray(e))return!1;const n=e.length;if(n!==t.length)return!1;for(let r=0;rPromise.all(e.map(({animation:n,options:r})=>tde(t,n,r)))}function ode(t){let e=ade(t),n=A5(),r=!0;const i=d=>(h,g)=>{var w;const y=F1(t,g,d==="exit"?(w=t.presenceContext)==null?void 0:w.custom:void 0);if(y){const{transition:v,transitionEnd:C,...E}=y;h={...h,...E,...C}}return h};function o(d){e=d(t)}function u(d){const{props:h}=t,g=Wk(t.parent)||{},y=[],w=new Set;let v={},C=1/0;for(let $=0;$C&&k,Y=!1;const X=Array.isArray(R)?R:[R];let ue=X.reduce(i(O),{});P===!1&&(ue={});const{prevResolvedValues:me={}}=_,te={...me,...ue},be=V=>{q=!0,w.has(V)&&(Y=!0,w.delete(V)),_.needsAnimating[V]=!0;const H=t.getValue(V);H&&(H.liveStyle=!1)};for(const V in te){const H=ue[V],ie=me[V];if(v.hasOwnProperty(V))continue;let G=!1;uO(H)&&uO(ie)?G=!Gk(H,ie):G=H!==ie,G?H!=null?be(V):w.add(V):H!==void 0&&w.has(V)?be(V):_.protectedKeys[V]=!0}_.prevProp=R,_.prevResolvedValues=ue,_.isActive&&(v={...v,...ue}),r&&t.blockInitialAnimation&&(q=!1),q&&(!(L&&F)||Y)&&y.push(...X.map(V=>({animation:V,options:{type:O}})))}if(w.size){const $={};if(typeof h.initial!="boolean"){const O=F1(t,Array.isArray(h.initial)?h.initial[0]:h.initial);O&&O.transition&&($.transition=O.transition)}w.forEach(O=>{const _=t.getBaseTarget(O),R=t.getValue(O);R&&(R.liveStyle=!0),$[O]=_??null}),y.push({animation:$})}let E=!!y.length;return r&&(h.initial===!1||h.initial===h.animate)&&!t.manuallyAnimateOnMount&&(E=!1),r=!1,E?e(y):Promise.resolve()}function l(d,h){var y;if(n[d].isActive===h)return Promise.resolve();(y=t.variantChildren)==null||y.forEach(w=>{var v;return(v=w.animationState)==null?void 0:v.setActive(d,h)}),n[d].isActive=h;const g=u(d);for(const w in n)n[w].protectedKeys={};return g}return{animateChanges:u,setActive:l,setAnimateFunction:o,getState:()=>n,reset:()=>{n=A5(),r=!0}}}function sde(t,e){return typeof e=="string"?e!==t:Array.isArray(e)?!Gk(e,t):!1}function bp(t=!1){return{isActive:t,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function A5(){return{animate:bp(!0),whileInView:bp(),whileHover:bp(),whileTap:bp(),whileDrag:bp(),whileFocus:bp(),exit:bp()}}class Xf{constructor(e){this.isMounted=!1,this.node=e}update(){}}class ude extends Xf{constructor(e){super(e),e.animationState||(e.animationState=ode(e))}updateAnimationControlsSubscription(){const{animate:e}=this.node.getProps();a3(e)&&(this.unmountControls=e.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){const{animate:e}=this.node.getProps(),{animate:n}=this.node.prevProps||{};e!==n&&this.updateAnimationControlsSubscription()}unmount(){var e;this.node.animationState.reset(),(e=this.unmountControls)==null||e.call(this)}}let lde=0;class cde extends Xf{constructor(){super(...arguments),this.id=lde++}update(){if(!this.node.presenceContext)return;const{isPresent:e,onExitComplete:n}=this.node.presenceContext,{isPresent:r}=this.node.prevPresenceContext||{};if(!this.node.animationState||e===r)return;const i=this.node.animationState.setActive("exit",!e);n&&!e&&i.then(()=>{n(this.id)})}mount(){const{register:e,onExitComplete:n}=this.node.presenceContext||{};n&&n(this.id),e&&(this.unmount=e(this.id))}unmount(){}}const fde={animation:{Feature:ude},exit:{Feature:cde}};function L1(t,e,n,r={passive:!0}){return t.addEventListener(e,n,r),()=>t.removeEventListener(e,n)}function ib(t){return{point:{x:t.pageX,y:t.pageY}}}const dde=t=>e=>YT(e)&&t(e,ib(e));function Y0(t,e,n,r){return L1(t,e,dde(n),r)}function Kk({top:t,left:e,right:n,bottom:r}){return{x:{min:e,max:n},y:{min:t,max:r}}}function hde({x:t,y:e}){return{top:e.min,right:t.max,bottom:e.max,left:t.min}}function pde(t,e){if(!e)return t;const n=e({x:t.left,y:t.top}),r=e({x:t.right,y:t.bottom});return{top:n.y,left:n.x,bottom:r.y,right:r.x}}const Yk=1e-4,mde=1-Yk,gde=1+Yk,Jk=.01,yde=0-Jk,vde=0+Jk;function ua(t){return t.max-t.min}function bde(t,e,n){return Math.abs(t-e)<=n}function R5(t,e,n,r=.5){t.origin=r,t.originPoint=ir(e.min,e.max,t.origin),t.scale=ua(n)/ua(e),t.translate=ir(n.min,n.max,t.origin)-t.originPoint,(t.scale>=mde&&t.scale<=gde||isNaN(t.scale))&&(t.scale=1),(t.translate>=yde&&t.translate<=vde||isNaN(t.translate))&&(t.translate=0)}function J0(t,e,n,r){R5(t.x,e.x,n.x,r?r.originX:void 0),R5(t.y,e.y,n.y,r?r.originY:void 0)}function P5(t,e,n){t.min=n.min+e.min,t.max=t.min+ua(e)}function wde(t,e,n){P5(t.x,e.x,n.x),P5(t.y,e.y,n.y)}function I5(t,e,n){t.min=e.min-n.min,t.max=t.min+ua(e)}function Q0(t,e,n){I5(t.x,e.x,n.x),I5(t.y,e.y,n.y)}const N5=()=>({translate:0,scale:1,origin:0,originPoint:0}),qg=()=>({x:N5(),y:N5()}),M5=()=>({min:0,max:0}),br=()=>({x:M5(),y:M5()});function Fo(t){return[t("x"),t("y")]}function OE(t){return t===void 0||t===1}function fO({scale:t,scaleX:e,scaleY:n}){return!OE(t)||!OE(e)||!OE(n)}function Cp(t){return fO(t)||Qk(t)||t.z||t.rotate||t.rotateX||t.rotateY||t.skewX||t.skewY}function Qk(t){return k5(t.x)||k5(t.y)}function k5(t){return t&&t!=="0%"}function CS(t,e,n){const r=t-n,i=e*r;return n+i}function D5(t,e,n,r,i){return i!==void 0&&(t=CS(t,i,r)),CS(t,n,r)+e}function dO(t,e=0,n=1,r,i){t.min=D5(t.min,e,n,r,i),t.max=D5(t.max,e,n,r,i)}function Xk(t,{x:e,y:n}){dO(t.x,e.translate,e.scale,e.originPoint),dO(t.y,n.translate,n.scale,n.originPoint)}const F5=.999999999999,L5=1.0000000000001;function Sde(t,e,n,r=!1){const i=n.length;if(!i)return;e.x=e.y=1;let o,u;for(let l=0;lF5&&(e.x=1),e.yF5&&(e.y=1)}function Hg(t,e){t.min=t.min+e,t.max=t.max+e}function U5(t,e,n,r,i=.5){const o=ir(t.min,t.max,i);dO(t,e,n,o,r)}function zg(t,e){U5(t.x,e.x,e.scaleX,e.scale,e.originX),U5(t.y,e.y,e.scaleY,e.scale,e.originY)}function Zk(t,e){return Kk(pde(t.getBoundingClientRect(),e))}function Cde(t,e,n){const r=Zk(t,n),{scroll:i}=e;return i&&(Hg(r.x,i.offset.x),Hg(r.y,i.offset.y)),r}const eD=({current:t})=>t?t.ownerDocument.defaultView:null,j5=(t,e)=>Math.abs(t-e);function $de(t,e){const n=j5(t.x,e.x),r=j5(t.y,e.y);return Math.sqrt(n**2+r**2)}class tD{constructor(e,n,{transformPagePoint:r,contextWindow:i,dragSnapToOrigin:o=!1}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const y=_E(this.lastMoveEventInfo,this.history),w=this.startEvent!==null,v=$de(y.offset,{x:0,y:0})>=3;if(!w&&!v)return;const{point:C}=y,{timestamp:E}=gi;this.history.push({...C,timestamp:E});const{onStart:$,onMove:O}=this.handlers;w||($&&$(this.lastMoveEvent,y),this.startEvent=this.lastMoveEvent),O&&O(this.lastMoveEvent,y)},this.handlePointerMove=(y,w)=>{this.lastMoveEvent=y,this.lastMoveEventInfo=TE(w,this.transformPagePoint),ar.update(this.updatePoint,!0)},this.handlePointerUp=(y,w)=>{this.end();const{onEnd:v,onSessionEnd:C,resumeAnimation:E}=this.handlers;if(this.dragSnapToOrigin&&E&&E(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const $=_E(y.type==="pointercancel"?this.lastMoveEventInfo:TE(w,this.transformPagePoint),this.history);this.startEvent&&v&&v(y,$),C&&C(y,$)},!YT(e))return;this.dragSnapToOrigin=o,this.handlers=n,this.transformPagePoint=r,this.contextWindow=i||window;const u=ib(e),l=TE(u,this.transformPagePoint),{point:d}=l,{timestamp:h}=gi;this.history=[{...d,timestamp:h}];const{onSessionStart:g}=n;g&&g(e,_E(l,this.history)),this.removeListeners=tb(Y0(this.contextWindow,"pointermove",this.handlePointerMove),Y0(this.contextWindow,"pointerup",this.handlePointerUp),Y0(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(e){this.handlers=e}end(){this.removeListeners&&this.removeListeners(),If(this.updatePoint)}}function TE(t,e){return e?{point:e(t.point)}:t}function B5(t,e){return{x:t.x-e.x,y:t.y-e.y}}function _E({point:t},e){return{point:t,delta:B5(t,nD(e)),offset:B5(t,Ede(e)),velocity:xde(e,.1)}}function Ede(t){return t[0]}function nD(t){return t[t.length-1]}function xde(t,e){if(t.length<2)return{x:0,y:0};let n=t.length-1,r=null;const i=nD(t);for(;n>=0&&(r=t[n],!(i.timestamp-r.timestamp>Tu(e)));)n--;if(!r)return{x:0,y:0};const o=_u(i.timestamp-r.timestamp);if(o===0)return{x:0,y:0};const u={x:(i.x-r.x)/o,y:(i.y-r.y)/o};return u.x===1/0&&(u.x=0),u.y===1/0&&(u.y=0),u}function Ode(t,{min:e,max:n},r){return e!==void 0&&tn&&(t=r?ir(n,t,r.max):Math.min(t,n)),t}function q5(t,e,n){return{min:e!==void 0?t.min+e:void 0,max:n!==void 0?t.max+n-(t.max-t.min):void 0}}function Tde(t,{top:e,left:n,bottom:r,right:i}){return{x:q5(t.x,n,i),y:q5(t.y,e,r)}}function H5(t,e){let n=e.min-t.min,r=e.max-t.max;return e.max-e.minr?n=I1(e.min,e.max-r,t.min):r>i&&(n=I1(t.min,t.max-i,e.min)),Nl(0,1,n)}function Rde(t,e){const n={};return e.min!==void 0&&(n.min=e.min-t.min),e.max!==void 0&&(n.max=e.max-t.min),n}const hO=.35;function Pde(t=hO){return t===!1?t=0:t===!0&&(t=hO),{x:z5(t,"left","right"),y:z5(t,"top","bottom")}}function z5(t,e,n){return{min:V5(t,e),max:V5(t,n)}}function V5(t,e){return typeof t=="number"?t:t[e]||0}const Ide=new WeakMap;class Nde{constructor(e){this.openDragLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=br(),this.visualElement=e}start(e,{snapToCursor:n=!1}={}){const{presenceContext:r}=this.visualElement;if(r&&r.isPresent===!1)return;const i=g=>{const{dragSnapToOrigin:y}=this.getProps();y?this.pauseAnimation():this.stopAnimation(),n&&this.snapToCursor(ib(g).point)},o=(g,y)=>{const{drag:w,dragPropagation:v,onDragStart:C}=this.getProps();if(w&&!v&&(this.openDragLock&&this.openDragLock(),this.openDragLock=Gce(w),!this.openDragLock))return;this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),Fo($=>{let O=this.getAxisMotionValue($).get()||0;if(Au.test(O)){const{projection:_}=this.visualElement;if(_&&_.layout){const R=_.layout.layoutBox[$];R&&(O=ua(R)*(parseFloat(O)/100))}}this.originPoint[$]=O}),C&&ar.postRender(()=>C(g,y)),lO(this.visualElement,"transform");const{animationState:E}=this.visualElement;E&&E.setActive("whileDrag",!0)},u=(g,y)=>{const{dragPropagation:w,dragDirectionLock:v,onDirectionLock:C,onDrag:E}=this.getProps();if(!w&&!this.openDragLock)return;const{offset:$}=y;if(v&&this.currentDirection===null){this.currentDirection=Mde($),this.currentDirection!==null&&C&&C(this.currentDirection);return}this.updateAxis("x",y.point,$),this.updateAxis("y",y.point,$),this.visualElement.render(),E&&E(g,y)},l=(g,y)=>this.stop(g,y),d=()=>Fo(g=>{var y;return this.getAnimationState(g)==="paused"&&((y=this.getAxisMotionValue(g).animation)==null?void 0:y.play())}),{dragSnapToOrigin:h}=this.getProps();this.panSession=new tD(e,{onSessionStart:i,onStart:o,onMove:u,onSessionEnd:l,resumeAnimation:d},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:h,contextWindow:eD(this.visualElement)})}stop(e,n){const r=this.isDragging;if(this.cancel(),!r)return;const{velocity:i}=n;this.startAnimation(i);const{onDragEnd:o}=this.getProps();o&&ar.postRender(()=>o(e,n))}cancel(){this.isDragging=!1;const{projection:e,animationState:n}=this.visualElement;e&&(e.isAnimationBlocked=!1),this.panSession&&this.panSession.end(),this.panSession=void 0;const{dragPropagation:r}=this.getProps();!r&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),n&&n.setActive("whileDrag",!1)}updateAxis(e,n,r){const{drag:i}=this.getProps();if(!r||!yw(e,i,this.currentDirection))return;const o=this.getAxisMotionValue(e);let u=this.originPoint[e]+r[e];this.constraints&&this.constraints[e]&&(u=Ode(u,this.constraints[e],this.elastic[e])),o.set(u)}resolveConstraints(){var o;const{dragConstraints:e,dragElastic:n}=this.getProps(),r=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):(o=this.visualElement.projection)==null?void 0:o.layout,i=this.constraints;e&&Bg(e)?this.constraints||(this.constraints=this.resolveRefConstraints()):e&&r?this.constraints=Tde(r.layoutBox,e):this.constraints=!1,this.elastic=Pde(n),i!==this.constraints&&r&&this.constraints&&!this.hasMutatedConstraints&&Fo(u=>{this.constraints!==!1&&this.getAxisMotionValue(u)&&(this.constraints[u]=Rde(r.layoutBox[u],this.constraints[u]))})}resolveRefConstraints(){const{dragConstraints:e,onMeasureDragConstraints:n}=this.getProps();if(!e||!Bg(e))return!1;const r=e.current,{projection:i}=this.visualElement;if(!i||!i.layout)return!1;const o=Cde(r,i.root,this.visualElement.getTransformPagePoint());let u=_de(i.layout.layoutBox,o);if(n){const l=n(hde(u));this.hasMutatedConstraints=!!l,l&&(u=Kk(l))}return u}startAnimation(e){const{drag:n,dragMomentum:r,dragElastic:i,dragTransition:o,dragSnapToOrigin:u,onDragTransitionEnd:l}=this.getProps(),d=this.constraints||{},h=Fo(g=>{if(!yw(g,n,this.currentDirection))return;let y=d&&d[g]||{};u&&(y={min:0,max:0});const w=i?200:1e6,v=i?40:1e7,C={type:"inertia",velocity:r?e[g]:0,bounceStiffness:w,bounceDamping:v,timeConstant:750,restDelta:1,restSpeed:10,...o,...y};return this.startAxisValueAnimation(g,C)});return Promise.all(h).then(l)}startAxisValueAnimation(e,n){const r=this.getAxisMotionValue(e);return lO(this.visualElement,e),r.start(a4(e,r,0,n,this.visualElement,!1))}stopAnimation(){Fo(e=>this.getAxisMotionValue(e).stop())}pauseAnimation(){Fo(e=>{var n;return(n=this.getAxisMotionValue(e).animation)==null?void 0:n.pause()})}getAnimationState(e){var n;return(n=this.getAxisMotionValue(e).animation)==null?void 0:n.state}getAxisMotionValue(e){const n=`_drag${e.toUpperCase()}`,r=this.visualElement.getProps(),i=r[n];return i||this.visualElement.getValue(e,(r.initial?r.initial[e]:void 0)||0)}snapToCursor(e){Fo(n=>{const{drag:r}=this.getProps();if(!yw(n,r,this.currentDirection))return;const{projection:i}=this.visualElement,o=this.getAxisMotionValue(n);if(i&&i.layout){const{min:u,max:l}=i.layout.layoutBox[n];o.set(e[n]-ir(u,l,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:e,dragConstraints:n}=this.getProps(),{projection:r}=this.visualElement;if(!Bg(n)||!r||!this.constraints)return;this.stopAnimation();const i={x:0,y:0};Fo(u=>{const l=this.getAxisMotionValue(u);if(l&&this.constraints!==!1){const d=l.get();i[u]=Ade({min:d,max:d},this.constraints[u])}});const{transformTemplate:o}=this.visualElement.getProps();this.visualElement.current.style.transform=o?o({},""):"none",r.root&&r.root.updateScroll(),r.updateLayout(),this.resolveConstraints(),Fo(u=>{if(!yw(u,e,null))return;const l=this.getAxisMotionValue(u),{min:d,max:h}=this.constraints[u];l.set(ir(d,h,i[u]))})}addListeners(){if(!this.visualElement.current)return;Ide.set(this.visualElement,this);const e=this.visualElement.current,n=Y0(e,"pointerdown",d=>{const{drag:h,dragListener:g=!0}=this.getProps();h&&g&&this.start(d)}),r=()=>{const{dragConstraints:d}=this.getProps();Bg(d)&&d.current&&(this.constraints=this.resolveRefConstraints())},{projection:i}=this.visualElement,o=i.addEventListener("measure",r);i&&!i.layout&&(i.root&&i.root.updateScroll(),i.updateLayout()),ar.read(r);const u=L1(window,"resize",()=>this.scalePositionWithinConstraints()),l=i.addEventListener("didUpdate",(({delta:d,hasLayoutChanged:h})=>{this.isDragging&&h&&(Fo(g=>{const y=this.getAxisMotionValue(g);y&&(this.originPoint[g]+=d[g].translate,y.set(y.get()+d[g].translate))}),this.visualElement.render())}));return()=>{u(),n(),o(),l&&l()}}getProps(){const e=this.visualElement.getProps(),{drag:n=!1,dragDirectionLock:r=!1,dragPropagation:i=!1,dragConstraints:o=!1,dragElastic:u=hO,dragMomentum:l=!0}=e;return{...e,drag:n,dragDirectionLock:r,dragPropagation:i,dragConstraints:o,dragElastic:u,dragMomentum:l}}}function yw(t,e,n){return(e===!0||e===t)&&(n===null||n===t)}function Mde(t,e=10){let n=null;return Math.abs(t.y)>e?n="y":Math.abs(t.x)>e&&(n="x"),n}class kde extends Xf{constructor(e){super(e),this.removeGroupControls=Vo,this.removeListeners=Vo,this.controls=new Nde(e)}mount(){const{dragControls:e}=this.node.getProps();e&&(this.removeGroupControls=e.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||Vo}unmount(){this.removeGroupControls(),this.removeListeners()}}const G5=t=>(e,n)=>{t&&ar.postRender(()=>t(e,n))};class Dde extends Xf{constructor(){super(...arguments),this.removePointerDownListener=Vo}onPointerDown(e){this.session=new tD(e,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:eD(this.node)})}createPanHandlers(){const{onPanSessionStart:e,onPanStart:n,onPan:r,onPanEnd:i}=this.node.getProps();return{onSessionStart:G5(e),onStart:G5(n),onMove:r,onEnd:(o,u)=>{delete this.session,i&&ar.postRender(()=>i(o,u))}}}mount(){this.removePointerDownListener=Y0(this.node.current,"pointerdown",e=>this.onPointerDown(e))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}const Dw={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function W5(t,e){return e.max===e.min?0:t/(e.max-e.min)*100}const M0={correct:(t,e)=>{if(!e.target)return t;if(typeof t=="string")if(xt.test(t))t=parseFloat(t);else return t;const n=W5(t,e.target.x),r=W5(t,e.target.y);return`${n}% ${r}%`}},Fde={correct:(t,{treeScale:e,projectionDelta:n})=>{const r=t,i=Nf.parse(t);if(i.length>5)return r;const o=Nf.createTransformer(t),u=typeof i[0]!="number"?1:0,l=n.x.scale*e.x,d=n.y.scale*e.y;i[0+u]/=l,i[1+u]/=d;const h=ir(l,d,.5);return typeof i[2+u]=="number"&&(i[2+u]/=h),typeof i[3+u]=="number"&&(i[3+u]/=h),o(i)}};class Lde extends T.Component{componentDidMount(){const{visualElement:e,layoutGroup:n,switchLayoutGroup:r,layoutId:i}=this.props,{projection:o}=e;Cfe(Ude),o&&(n.group&&n.group.add(o),r&&r.register&&i&&r.register(o),o.root.didUpdate(),o.addEventListener("animationComplete",()=>{this.safeToRemove()}),o.setOptions({...o.options,onExitComplete:()=>this.safeToRemove()})),Dw.hasEverUpdated=!0}getSnapshotBeforeUpdate(e){const{layoutDependency:n,visualElement:r,drag:i,isPresent:o}=this.props,{projection:u}=r;return u&&(u.isPresent=o,i||e.layoutDependency!==n||n===void 0||e.isPresent!==o?u.willUpdate():this.safeToRemove(),e.isPresent!==o&&(o?u.promote():u.relegate()||ar.postRender(()=>{const l=u.getStack();(!l||!l.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{projection:e}=this.props.visualElement;e&&(e.root.didUpdate(),KT.postRender(()=>{!e.currentAnimation&&e.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:e,layoutGroup:n,switchLayoutGroup:r}=this.props,{projection:i}=e;i&&(i.scheduleCheckAfterUnmount(),n&&n.group&&n.group.remove(i),r&&r.deregister&&r.deregister(i))}safeToRemove(){const{safeToRemove:e}=this.props;e&&e()}render(){return null}}function rD(t){const[e,n]=Rk(),r=T.useContext(xT);return N.jsx(Lde,{...t,layoutGroup:r,switchLayoutGroup:T.useContext(kk),isPresent:e,safeToRemove:n})}const Ude={borderRadius:{...M0,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:M0,borderTopRightRadius:M0,borderBottomLeftRadius:M0,borderBottomRightRadius:M0,boxShadow:Fde};function jde(t,e,n){const r=Di(t)?t:iy(t);return r.start(a4("",r,e,n)),r.animation}const Bde=(t,e)=>t.depth-e.depth;class qde{constructor(){this.children=[],this.isDirty=!1}add(e){_T(this.children,e),this.isDirty=!0}remove(e){AT(this.children,e),this.isDirty=!0}forEach(e){this.isDirty&&this.children.sort(Bde),this.isDirty=!1,this.children.forEach(e)}}function Hde(t,e){const n=xa.now(),r=({timestamp:i})=>{const o=i-n;o>=e&&(If(r),t(o-e))};return ar.setup(r,!0),()=>If(r)}const iD=["TopLeft","TopRight","BottomLeft","BottomRight"],zde=iD.length,K5=t=>typeof t=="string"?parseFloat(t):t,Y5=t=>typeof t=="number"||xt.test(t);function Vde(t,e,n,r,i,o){i?(t.opacity=ir(0,n.opacity??1,Gde(r)),t.opacityExit=ir(e.opacity??1,0,Wde(r))):o&&(t.opacity=ir(e.opacity??1,n.opacity??1,r));for(let u=0;ure?1:n(I1(t,e,r))}function Q5(t,e){t.min=e.min,t.max=e.max}function ko(t,e){Q5(t.x,e.x),Q5(t.y,e.y)}function X5(t,e){t.translate=e.translate,t.scale=e.scale,t.originPoint=e.originPoint,t.origin=e.origin}function Z5(t,e,n,r,i){return t-=e,t=CS(t,1/n,r),i!==void 0&&(t=CS(t,1/i,r)),t}function Kde(t,e=0,n=1,r=.5,i,o=t,u=t){if(Au.test(e)&&(e=parseFloat(e),e=ir(u.min,u.max,e/100)-u.min),typeof e!="number")return;let l=ir(o.min,o.max,r);t===o&&(l-=e),t.min=Z5(t.min,e,n,l,i),t.max=Z5(t.max,e,n,l,i)}function e9(t,e,[n,r,i],o,u){Kde(t,e[n],e[r],e[i],e.scale,o,u)}const Yde=["x","scaleX","originX"],Jde=["y","scaleY","originY"];function t9(t,e,n,r){e9(t.x,e,Yde,n?n.x:void 0,r?r.x:void 0),e9(t.y,e,Jde,n?n.y:void 0,r?r.y:void 0)}function n9(t){return t.translate===0&&t.scale===1}function oD(t){return n9(t.x)&&n9(t.y)}function r9(t,e){return t.min===e.min&&t.max===e.max}function Qde(t,e){return r9(t.x,e.x)&&r9(t.y,e.y)}function i9(t,e){return Math.round(t.min)===Math.round(e.min)&&Math.round(t.max)===Math.round(e.max)}function sD(t,e){return i9(t.x,e.x)&&i9(t.y,e.y)}function a9(t){return ua(t.x)/ua(t.y)}function o9(t,e){return t.translate===e.translate&&t.scale===e.scale&&t.originPoint===e.originPoint}class Xde{constructor(){this.members=[]}add(e){_T(this.members,e),e.scheduleRender()}remove(e){if(AT(this.members,e),e===this.prevLead&&(this.prevLead=void 0),e===this.lead){const n=this.members[this.members.length-1];n&&this.promote(n)}}relegate(e){const n=this.members.findIndex(i=>e===i);if(n===0)return!1;let r;for(let i=n;i>=0;i--){const o=this.members[i];if(o.isPresent!==!1){r=o;break}}return r?(this.promote(r),!0):!1}promote(e,n){const r=this.lead;if(e!==r&&(this.prevLead=r,this.lead=e,e.show(),r)){r.instance&&r.scheduleRender(),e.scheduleRender(),e.resumeFrom=r,n&&(e.resumeFrom.preserveOpacity=!0),r.snapshot&&(e.snapshot=r.snapshot,e.snapshot.latestValues=r.animationValues||r.latestValues),e.root&&e.root.isUpdating&&(e.isLayoutDirty=!0);const{crossfade:i}=e.options;i===!1&&r.hide()}}exitAnimationComplete(){this.members.forEach(e=>{const{options:n,resumingFrom:r}=e;n.onExitComplete&&n.onExitComplete(),r&&r.options.onExitComplete&&r.options.onExitComplete()})}scheduleRender(){this.members.forEach(e=>{e.instance&&e.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}function Zde(t,e,n){let r="";const i=t.x.translate/e.x,o=t.y.translate/e.y,u=(n==null?void 0:n.z)||0;if((i||o||u)&&(r=`translate3d(${i}px, ${o}px, ${u}px) `),(e.x!==1||e.y!==1)&&(r+=`scale(${1/e.x}, ${1/e.y}) `),n){const{transformPerspective:h,rotate:g,rotateX:y,rotateY:w,skewX:v,skewY:C}=n;h&&(r=`perspective(${h}px) ${r}`),g&&(r+=`rotate(${g}deg) `),y&&(r+=`rotateX(${y}deg) `),w&&(r+=`rotateY(${w}deg) `),v&&(r+=`skewX(${v}deg) `),C&&(r+=`skewY(${C}deg) `)}const l=t.x.scale*e.x,d=t.y.scale*e.y;return(l!==1||d!==1)&&(r+=`scale(${l}, ${d})`),r||"none"}const AE=["","X","Y","Z"],ehe={visibility:"hidden"},the=1e3;let nhe=0;function RE(t,e,n,r){const{latestValues:i}=e;i[t]&&(n[t]=i[t],e.setStaticValue(t,0),r&&(r[t]=0))}function uD(t){if(t.hasCheckedOptimisedAppear=!0,t.root===t)return;const{visualElement:e}=t.options;if(!e)return;const n=zk(e);if(window.MotionHasOptimisedAnimation(n,"transform")){const{layout:i,layoutId:o}=t.options;window.MotionCancelOptimisedAnimation(n,"transform",ar,!(i||o))}const{parent:r}=t;r&&!r.hasCheckedOptimisedAppear&&uD(r)}function lD({attachResizeListener:t,defaultParent:e,measureScroll:n,checkIsScrollRoot:r,resetTransform:i}){return class{constructor(u={},l=e==null?void 0:e()){this.id=nhe++,this.animationId=0,this.animationCommitId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.hasCheckedOptimisedAppear=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.updateScheduled=!1,this.scheduleUpdate=()=>this.update(),this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,this.nodes.forEach(ahe),this.nodes.forEach(lhe),this.nodes.forEach(che),this.nodes.forEach(ohe)},this.resolvedRelativeTargetAt=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=u,this.root=l?l.root||l:this,this.path=l?[...l.path,l]:[],this.parent=l,this.depth=l?l.depth+1:0;for(let d=0;dthis.root.updateBlockedByResize=!1;t(u,()=>{this.root.updateBlockedByResize=!0,g&&g(),g=Hde(y,250),Dw.hasAnimatedSinceResize&&(Dw.hasAnimatedSinceResize=!1,this.nodes.forEach(l9))})}l&&this.root.registerSharedNode(l,this),this.options.animate!==!1&&h&&(l||d)&&this.addEventListener("didUpdate",({delta:g,hasLayoutChanged:y,hasRelativeLayoutChanged:w,layout:v})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const C=this.options.transition||h.getDefaultTransition()||mhe,{onLayoutAnimationStart:E,onLayoutAnimationComplete:$}=h.getProps(),O=!this.targetLayout||!sD(this.targetLayout,v),_=!y&&w;if(this.options.layoutRoot||this.resumeFrom||_||y&&(O||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0);const R={...GT(C,"layout"),onPlay:E,onComplete:$};(h.shouldReduceMotion||this.options.layoutRoot)&&(R.delay=0,R.type=!1),this.startAnimation(R),this.setAnimationOrigin(g,_)}else y||l9(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=v})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const u=this.getStack();u&&u.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,this.eventHandlers.clear(),If(this.updateProjection)}blockUpdate(){this.updateManuallyBlocked=!0}unblockUpdate(){this.updateManuallyBlocked=!1}isUpdateBlocked(){return this.updateManuallyBlocked||this.updateBlockedByResize}isTreeAnimationBlocked(){return this.isAnimationBlocked||this.parent&&this.parent.isTreeAnimationBlocked()||!1}startUpdate(){this.isUpdateBlocked()||(this.isUpdating=!0,this.nodes&&this.nodes.forEach(fhe),this.animationId++)}getTransformTemplate(){const{visualElement:u}=this.options;return u&&u.getProps().transformTemplate}willUpdate(u=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&uD(this),!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let g=0;g{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure(),this.snapshot&&!ua(this.snapshot.measuredBox.x)&&!ua(this.snapshot.measuredBox.y)&&(this.snapshot=void 0))}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let d=0;d{const P=k/1e3;c9(y.x,u.x,P),c9(y.y,u.y,P),this.setTargetDelta(y),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(Q0(w,this.layout.layoutBox,this.relativeParent.layout.layoutBox),hhe(this.relativeTarget,this.relativeTargetOrigin,w,P),R&&Qde(this.relativeTarget,R)&&(this.isProjectionDirty=!1),R||(R=br()),ko(R,this.relativeTarget)),E&&(this.animationValues=g,Vde(g,h,this.latestValues,P,_,O)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=P},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(u){var l,d,h;this.notifyListeners("animationStart"),(l=this.currentAnimation)==null||l.stop(),(h=(d=this.resumingFrom)==null?void 0:d.currentAnimation)==null||h.stop(),this.pendingAnimation&&(If(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=ar.update(()=>{Dw.hasAnimatedSinceResize=!0,this.motionValue||(this.motionValue=iy(0)),this.currentAnimation=jde(this.motionValue,[0,1e3],{...u,velocity:0,isSync:!0,onUpdate:g=>{this.mixTargetDelta(g),u.onUpdate&&u.onUpdate(g)},onStop:()=>{},onComplete:()=>{u.onComplete&&u.onComplete(),this.completeAnimation()}}),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0})}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);const u=this.getStack();u&&u.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(the),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const u=this.getLead();let{targetWithTransforms:l,target:d,layout:h,latestValues:g}=u;if(!(!l||!d||!h)){if(this!==u&&this.layout&&h&&cD(this.options.animationType,this.layout.layoutBox,h.layoutBox)){d=this.target||br();const y=ua(this.layout.layoutBox.x);d.x.min=u.target.x.min,d.x.max=d.x.min+y;const w=ua(this.layout.layoutBox.y);d.y.min=u.target.y.min,d.y.max=d.y.min+w}ko(l,d),zg(l,g),J0(this.projectionDeltaWithTransform,this.layoutCorrected,l,g)}}registerSharedNode(u,l){this.sharedNodes.has(u)||this.sharedNodes.set(u,new Xde),this.sharedNodes.get(u).add(l);const h=l.options.initialPromotionConfig;l.promote({transition:h?h.transition:void 0,preserveFollowOpacity:h&&h.shouldPreserveFollowOpacity?h.shouldPreserveFollowOpacity(l):void 0})}isLead(){const u=this.getStack();return u?u.lead===this:!0}getLead(){var l;const{layoutId:u}=this.options;return u?((l=this.getStack())==null?void 0:l.lead)||this:this}getPrevLead(){var l;const{layoutId:u}=this.options;return u?(l=this.getStack())==null?void 0:l.prevLead:void 0}getStack(){const{layoutId:u}=this.options;if(u)return this.root.sharedNodes.get(u)}promote({needsReset:u,transition:l,preserveFollowOpacity:d}={}){const h=this.getStack();h&&h.promote(this,d),u&&(this.projectionDelta=void 0,this.needsReset=!0),l&&this.setOptions({transition:l})}relegate(){const u=this.getStack();return u?u.relegate(this):!1}resetSkewAndRotation(){const{visualElement:u}=this.options;if(!u)return;let l=!1;const{latestValues:d}=u;if((d.z||d.rotate||d.rotateX||d.rotateY||d.rotateZ||d.skewX||d.skewY)&&(l=!0),!l)return;const h={};d.z&&RE("z",u,h,this.animationValues);for(let g=0;g{var l;return(l=u.currentAnimation)==null?void 0:l.stop()}),this.root.nodes.forEach(s9),this.root.sharedNodes.clear()}}}function rhe(t){t.updateLayout()}function ihe(t){var n;const e=((n=t.resumeFrom)==null?void 0:n.snapshot)||t.snapshot;if(t.isLead()&&t.layout&&e&&t.hasListeners("didUpdate")){const{layoutBox:r,measuredBox:i}=t.layout,{animationType:o}=t.options,u=e.source!==t.layout.source;o==="size"?Fo(y=>{const w=u?e.measuredBox[y]:e.layoutBox[y],v=ua(w);w.min=r[y].min,w.max=w.min+v}):cD(o,e.layoutBox,r)&&Fo(y=>{const w=u?e.measuredBox[y]:e.layoutBox[y],v=ua(r[y]);w.max=w.min+v,t.relativeTarget&&!t.currentAnimation&&(t.isProjectionDirty=!0,t.relativeTarget[y].max=t.relativeTarget[y].min+v)});const l=qg();J0(l,r,e.layoutBox);const d=qg();u?J0(d,t.applyTransform(i,!0),e.measuredBox):J0(d,r,e.layoutBox);const h=!oD(l);let g=!1;if(!t.resumeFrom){const y=t.getClosestProjectingParent();if(y&&!y.resumeFrom){const{snapshot:w,layout:v}=y;if(w&&v){const C=br();Q0(C,e.layoutBox,w.layoutBox);const E=br();Q0(E,r,v.layoutBox),sD(C,E)||(g=!0),y.options.layoutRoot&&(t.relativeTarget=E,t.relativeTargetOrigin=C,t.relativeParent=y)}}}t.notifyListeners("didUpdate",{layout:r,snapshot:e,delta:d,layoutDelta:l,hasLayoutChanged:h,hasRelativeLayoutChanged:g})}else if(t.isLead()){const{onExitComplete:r}=t.options;r&&r()}t.options.transition=void 0}function ahe(t){t.parent&&(t.isProjecting()||(t.isProjectionDirty=t.parent.isProjectionDirty),t.isSharedProjectionDirty||(t.isSharedProjectionDirty=!!(t.isProjectionDirty||t.parent.isProjectionDirty||t.parent.isSharedProjectionDirty)),t.isTransformDirty||(t.isTransformDirty=t.parent.isTransformDirty))}function ohe(t){t.isProjectionDirty=t.isSharedProjectionDirty=t.isTransformDirty=!1}function she(t){t.clearSnapshot()}function s9(t){t.clearMeasurements()}function u9(t){t.isLayoutDirty=!1}function uhe(t){const{visualElement:e}=t.options;e&&e.getProps().onBeforeLayoutMeasure&&e.notify("BeforeLayoutMeasure"),t.resetTransform()}function l9(t){t.finishAnimation(),t.targetDelta=t.relativeTarget=t.target=void 0,t.isProjectionDirty=!0}function lhe(t){t.resolveTargetDelta()}function che(t){t.calcProjection()}function fhe(t){t.resetSkewAndRotation()}function dhe(t){t.removeLeadSnapshot()}function c9(t,e,n){t.translate=ir(e.translate,0,n),t.scale=ir(e.scale,1,n),t.origin=e.origin,t.originPoint=e.originPoint}function f9(t,e,n,r){t.min=ir(e.min,n.min,r),t.max=ir(e.max,n.max,r)}function hhe(t,e,n,r){f9(t.x,e.x,n.x,r),f9(t.y,e.y,n.y,r)}function phe(t){return t.animationValues&&t.animationValues.opacityExit!==void 0}const mhe={duration:.45,ease:[.4,0,.1,1]},d9=t=>typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(t),h9=d9("applewebkit/")&&!d9("chrome/")?Math.round:Vo;function p9(t){t.min=h9(t.min),t.max=h9(t.max)}function ghe(t){p9(t.x),p9(t.y)}function cD(t,e,n){return t==="position"||t==="preserve-aspect"&&!bde(a9(e),a9(n),.2)}function yhe(t){var e;return t!==t.root&&((e=t.scroll)==null?void 0:e.wasRoot)}const vhe=lD({attachResizeListener:(t,e)=>L1(t,"resize",e),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),PE={current:void 0},fD=lD({measureScroll:t=>({x:t.scrollLeft,y:t.scrollTop}),defaultParent:()=>{if(!PE.current){const t=new vhe({});t.mount(window),t.setOptions({layoutScroll:!0}),PE.current=t}return PE.current},resetTransform:(t,e)=>{t.style.transform=e!==void 0?e:"none"},checkIsScrollRoot:t=>window.getComputedStyle(t).position==="fixed"}),bhe={pan:{Feature:Dde},drag:{Feature:kde,ProjectionNode:fD,MeasureLayout:rD}};function m9(t,e,n){const{props:r}=t;t.animationState&&r.whileHover&&t.animationState.setActive("whileHover",n==="Start");const i="onHover"+n,o=r[i];o&&ar.postRender(()=>o(e,ib(e)))}class whe extends Xf{mount(){const{current:e}=this.node;e&&(this.unmount=Wce(e,(n,r)=>(m9(this.node,r,"Start"),i=>m9(this.node,i,"End"))))}unmount(){}}class She extends Xf{constructor(){super(...arguments),this.isActive=!1}onFocus(){let e=!1;try{e=this.node.current.matches(":focus-visible")}catch{e=!0}!e||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!0),this.isActive=!0)}onBlur(){!this.isActive||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!1),this.isActive=!1)}mount(){this.unmount=tb(L1(this.node.current,"focus",()=>this.onFocus()),L1(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}function g9(t,e,n){const{props:r}=t;if(t.current instanceof HTMLButtonElement&&t.current.disabled)return;t.animationState&&r.whileTap&&t.animationState.setActive("whileTap",n==="Start");const i="onTap"+(n==="End"?"":n),o=r[i];o&&ar.postRender(()=>o(e,ib(e)))}class Che extends Xf{mount(){const{current:e}=this.node;e&&(this.unmount=Qce(e,(n,r)=>(g9(this.node,r,"Start"),(i,{success:o})=>g9(this.node,i,o?"End":"Cancel")),{useGlobalTarget:this.node.props.globalTapTarget}))}unmount(){}}const pO=new WeakMap,IE=new WeakMap,$he=t=>{const e=pO.get(t.target);e&&e(t)},Ehe=t=>{t.forEach($he)};function xhe({root:t,...e}){const n=t||document;IE.has(n)||IE.set(n,{});const r=IE.get(n),i=JSON.stringify(e);return r[i]||(r[i]=new IntersectionObserver(Ehe,{root:t,...e})),r[i]}function Ohe(t,e,n){const r=xhe(e);return pO.set(t,n),r.observe(t),()=>{pO.delete(t),r.unobserve(t)}}const The={some:0,all:1};class _he extends Xf{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();const{viewport:e={}}=this.node.getProps(),{root:n,margin:r,amount:i="some",once:o}=e,u={root:n?n.current:void 0,rootMargin:r,threshold:typeof i=="number"?i:The[i]},l=d=>{const{isIntersecting:h}=d;if(this.isInView===h||(this.isInView=h,o&&!h&&this.hasEnteredView))return;h&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",h);const{onViewportEnter:g,onViewportLeave:y}=this.node.getProps(),w=h?g:y;w&&w(d)};return Ohe(this.node.current,u,l)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;const{props:e,prevProps:n}=this.node;["amount","margin","root"].some(Ahe(e,n))&&this.startObserver()}unmount(){}}function Ahe({viewport:t={}},{viewport:e={}}={}){return n=>t[n]!==e[n]}const Rhe={inView:{Feature:_he},tap:{Feature:Che},focus:{Feature:She},hover:{Feature:whe}},Phe={layout:{ProjectionNode:fD,MeasureLayout:rD}},mO={current:null},dD={current:!1};function Ihe(){if(dD.current=!0,!!TT)if(window.matchMedia){const t=window.matchMedia("(prefers-reduced-motion)"),e=()=>mO.current=t.matches;t.addListener(e),e()}else mO.current=!1}const Nhe=new WeakMap;function Mhe(t,e,n){for(const r in e){const i=e[r],o=n[r];if(Di(i))t.addValue(r,i);else if(Di(o))t.addValue(r,iy(i,{owner:t}));else if(o!==i)if(t.hasValue(r)){const u=t.getValue(r);u.liveStyle===!0?u.jump(i):u.hasAnimated||u.set(i)}else{const u=t.getStaticValue(r);t.addValue(r,iy(u!==void 0?u:i,{owner:t}))}}for(const r in n)e[r]===void 0&&t.removeValue(r);return e}const y9=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];class khe{scrapeMotionValuesFromProps(e,n,r){return{}}constructor({parent:e,props:n,presenceContext:r,reducedMotionConfig:i,blockInitialAnimation:o,visualState:u},l={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.KeyframeResolver=zT,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.renderScheduledAt=0,this.scheduleRender=()=>{const w=xa.now();this.renderScheduledAtthis.bindToMotionValue(r,n)),dD.current||Ihe(),this.shouldReduceMotion=this.reducedMotionConfig==="never"?!1:this.reducedMotionConfig==="always"?!0:mO.current,this.parent&&this.parent.children.add(this),this.update(this.props,this.presenceContext)}unmount(){this.projection&&this.projection.unmount(),If(this.notifyUpdate),If(this.render),this.valueSubscriptions.forEach(e=>e()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent&&this.parent.children.delete(this);for(const e in this.events)this.events[e].clear();for(const e in this.features){const n=this.features[e];n&&(n.unmount(),n.isMounted=!1)}this.current=null}bindToMotionValue(e,n){this.valueSubscriptions.has(e)&&this.valueSubscriptions.get(e)();const r=by.has(e);r&&this.onBindTransform&&this.onBindTransform();const i=n.on("change",l=>{this.latestValues[e]=l,this.props.onUpdate&&ar.preRender(this.notifyUpdate),r&&this.projection&&(this.projection.isTransformDirty=!0)}),o=n.on("renderRequest",this.scheduleRender);let u;window.MotionCheckAppearSync&&(u=window.MotionCheckAppearSync(this,e,n)),this.valueSubscriptions.set(e,()=>{i(),o(),u&&u(),n.owner&&n.stop()})}sortNodePosition(e){return!this.current||!this.sortInstanceNodePosition||this.type!==e.type?0:this.sortInstanceNodePosition(this.current,e.current)}updateFeatures(){let e="animation";for(e in ay){const n=ay[e];if(!n)continue;const{isEnabled:r,Feature:i}=n;if(!this.features[e]&&i&&r(this.props)&&(this.features[e]=new i(this)),this.features[e]){const o=this.features[e];o.isMounted?o.update():(o.mount(),o.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):br()}getStaticValue(e){return this.latestValues[e]}setStaticValue(e,n){this.latestValues[e]=n}update(e,n){(e.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=e,this.prevPresenceContext=this.presenceContext,this.presenceContext=n;for(let r=0;rn.variantChildren.delete(e)}addValue(e,n){const r=this.values.get(e);n!==r&&(r&&this.removeValue(e),this.bindToMotionValue(e,n),this.values.set(e,n),this.latestValues[e]=n.get())}removeValue(e){this.values.delete(e);const n=this.valueSubscriptions.get(e);n&&(n(),this.valueSubscriptions.delete(e)),delete this.latestValues[e],this.removeValueFromRenderState(e,this.renderState)}hasValue(e){return this.values.has(e)}getValue(e,n){if(this.props.values&&this.props.values[e])return this.props.values[e];let r=this.values.get(e);return r===void 0&&n!==void 0&&(r=iy(n===null?void 0:n,{owner:this}),this.addValue(e,r)),r}readValue(e,n){let r=this.latestValues[e]!==void 0||!this.current?this.latestValues[e]:this.getBaseTargetFromProps(this.props,e)??this.readValueFromInstance(this.current,e,this.options);return r!=null&&(typeof r=="string"&&(BM(r)||HM(r))?r=parseFloat(r):!efe(r)&&Nf.test(n)&&(r=Ek(e,n)),this.setBaseTarget(e,Di(r)?r.get():r)),Di(r)?r.get():r}setBaseTarget(e,n){this.baseTarget[e]=n}getBaseTarget(e){var o;const{initial:n}=this.props;let r;if(typeof n=="string"||typeof n=="object"){const u=r4(this.props,n,(o=this.presenceContext)==null?void 0:o.custom);u&&(r=u[e])}if(n&&r!==void 0)return r;const i=this.getBaseTargetFromProps(this.props,e);return i!==void 0&&!Di(i)?i:this.initialValues[e]!==void 0&&r===void 0?void 0:this.baseTarget[e]}on(e,n){return this.events[e]||(this.events[e]=new IT),this.events[e].add(n)}notify(e,...n){this.events[e]&&this.events[e].notify(...n)}}class hD extends khe{constructor(){super(...arguments),this.KeyframeResolver=qce}sortInstanceNodePosition(e,n){return e.compareDocumentPosition(n)&2?1:-1}getBaseTargetFromProps(e,n){return e.style?e.style[n]:void 0}removeValueFromRenderState(e,{vars:n,style:r}){delete n[e],delete r[e]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:e}=this.props;Di(e)&&(this.childSubscription=e.on("change",n=>{this.current&&(this.current.textContent=`${n}`)}))}}function pD(t,{style:e,vars:n},r,i){Object.assign(t.style,e,i&&i.getProjectionStyles(r));for(const o in n)t.style.setProperty(o,n[o])}function Dhe(t){return window.getComputedStyle(t)}class Fhe extends hD{constructor(){super(...arguments),this.type="html",this.renderInstance=pD}readValueFromInstance(e,n){var r;if(by.has(n))return(r=this.projection)!=null&&r.isProjecting?nO(n):sce(e,n);{const i=Dhe(e),o=(kT(n)?i.getPropertyValue(n):i[n])||0;return typeof o=="string"?o.trim():o}}measureInstanceViewportBox(e,{transformPagePoint:n}){return Zk(e,n)}build(e,n,r){e4(e,n,r.transformTemplate)}scrapeMotionValuesFromProps(e,n,r){return i4(e,n,r)}}const mD=new Set(["baseFrequency","diffuseConstant","kernelMatrix","kernelUnitLength","keySplines","keyTimes","limitingConeAngle","markerHeight","markerWidth","numOctaves","targetX","targetY","surfaceScale","specularConstant","specularExponent","stdDeviation","tableValues","viewBox","gradientTransform","pathLength","startOffset","textLength","lengthAdjust"]);function Lhe(t,e,n,r){pD(t,e,void 0,r);for(const i in e.attrs)t.setAttribute(mD.has(i)?i:ZT(i),e.attrs[i])}class Uhe extends hD{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=br}getBaseTargetFromProps(e,n){return e[n]}readValueFromInstance(e,n){if(by.has(n)){const r=$k(n);return r&&r.default||0}return n=mD.has(n)?n:ZT(n),e.getAttribute(n)}scrapeMotionValuesFromProps(e,n,r){return Hk(e,n,r)}build(e,n,r){Uk(e,n,this.isSVGTag,r.transformTemplate,r.style)}renderInstance(e,n,r,i){Lhe(e,n,r,i)}mount(e){this.isSVGTag=Bk(e.tagName),super.mount(e)}}const jhe=(t,e)=>n4(t)?new Uhe(e):new Fhe(e,{allowProjection:t!==T.Fragment}),Bhe=Ufe({...fde,...Rhe,...bhe,...Phe},jhe),qhe=cfe(Bhe),Hhe={initial:{x:"100%",opacity:0},animate:{x:0,opacity:1},exit:{x:"100%",opacity:0}};function zhe({children:t}){var r;const e=Ll();return((r=e.state)==null?void 0:r.animated)?N.jsx(afe,{mode:"wait",children:N.jsx(qhe.div,{variants:Hhe,initial:"initial",animate:"animate",exit:"exit",transition:{duration:.15},style:{width:"100%"},children:t},e.pathname)}):N.jsx(N.Fragment,{children:t})}function Vhe(){return N.jsxs(N.Fragment,{children:[N.jsxs(mn,{path:"selfservice",children:[N.jsx(mn,{path:"welcome",element:N.jsx(IQ,{})}),N.jsx(mn,{path:"email",element:N.jsx(e6,{method:Za.Email})}),N.jsx(mn,{path:"phone",element:N.jsx(e6,{method:Za.Phone})}),N.jsx(mn,{path:"totp-setup",element:N.jsx(bX,{})}),N.jsx(mn,{path:"totp-enter",element:N.jsx(CX,{})}),N.jsx(mn,{path:"complete",element:N.jsx(NX,{})}),N.jsx(mn,{path:"password",element:N.jsx(jX,{})}),N.jsx(mn,{path:"otp",element:N.jsx(WX,{})})]}),N.jsx(mn,{path:"*",element:N.jsx(ZE,{to:"/en/selfservice/welcome",replace:!0})})]})}function Ghe(){const t=Yse(),e=pue(),n=xue(),r=rle();return N.jsxs(mn,{path:"selfservice",children:[N.jsx(mn,{path:"passports",element:N.jsx(mG,{})}),N.jsx(mn,{path:"change-password/:uniqueId",element:N.jsx(yQ,{})}),t,e,n,r,N.jsx(mn,{path:"",element:N.jsx(zhe,{children:N.jsx(ile,{})})})]})}const v9=iV;function Whe(){const t=T.useRef(QV),e=T.useRef(new OF);return N.jsx(NF,{client:e.current,children:N.jsx(az,{mockServer:t,config:{},prefix:"",queryClient:e.current,children:N.jsx(Khe,{})})})}function Khe(){const t=Vhe(),e=Ghe(),{session:n,checked:r}=oG();return N.jsx(N.Fragment,{children:!n&&r?N.jsx(v9,{children:N.jsxs(D_,{children:[N.jsx(mn,{path:":locale",children:t}),N.jsx(mn,{path:"*",element:N.jsx(ZE,{to:"/en/selftservice",replace:!0})})]})}):N.jsx(v9,{children:N.jsxs(D_,{children:[N.jsx(mn,{path:":locale",children:e}),N.jsx(mn,{path:"*",element:N.jsx(ZE,{to:"/en/selfservice/passports",replace:!0})})]})})})}const Yhe=aF.createRoot(document.getElementById("root"));Yhe.render(N.jsx(Ae.StrictMode,{children:N.jsx(Whe,{})}))});export default Jhe(); + `),()=>{document.head.contains(b)&&document.head.removeChild(b)}},[e]),N.jsx(Pfe,{isPresent:e,childRef:i,sizeRef:o,children:T.cloneElement(t,{ref:i})})}const Nfe=({children:t,initial:e,isPresent:n,onExitComplete:r,custom:i,presenceAffectsLayout:o,mode:u,anchorX:l})=>{const d=e4(Mfe),h=T.useId();let g=!0,y=T.useMemo(()=>(g=!1,{id:h,initial:e,isPresent:n,custom:i,onExitComplete:w=>{d.set(w,!0);for(const b of d.values())if(!b)return;r&&r()},register:w=>(d.set(w,!1),()=>d.delete(w))}),[n,d,r]);return o&&g&&(y={...y}),T.useMemo(()=>{d.forEach((w,b)=>d.set(b,!1))},[n]),T.useEffect(()=>{!n&&!d.size&&r&&r()},[n]),u==="popLayout"&&(t=N.jsx(Ife,{isPresent:n,anchorX:l,children:t})),N.jsx(A3.Provider,{value:y,children:t})};function Mfe(){return new Map}function rD(t=!0){const e=T.useContext(A3);if(e===null)return[!0,null];const{isPresent:n,onExitComplete:r,register:i}=e,o=T.useId();T.useEffect(()=>{if(t)return i(o)},[t]);const u=T.useCallback(()=>t&&r&&r(o),[o,r,t]);return!n&&r?[!1,u]:[!0]}const jw=t=>t.key||"";function Z5(t){const e=[];return T.Children.forEach(t,n=>{T.isValidElement(n)&&e.push(n)}),e}const kfe=({children:t,custom:e,initial:n=!0,onExitComplete:r,presenceAffectsLayout:i=!0,mode:o="sync",propagate:u=!1,anchorX:l="left"})=>{const[d,h]=rD(u),g=T.useMemo(()=>Z5(t),[t]),y=u&&!d?[]:g.map(jw),w=T.useRef(!0),b=T.useRef(g),C=e4(()=>new Map),[E,$]=T.useState(g),[O,_]=T.useState(g);hk(()=>{w.current=!1,b.current=g;for(let R=0;R{const L=jw(R),F=u&&!d?!1:g===O||y.includes(L),q=()=>{if(C.has(L))C.set(L,!0);else return;let Y=!0;C.forEach(Q=>{Q||(Y=!1)}),Y&&(k==null||k(),_(b.current),u&&(h==null||h()),r&&r())};return N.jsx(Nfe,{isPresent:F,initial:!w.current||n?void 0:!1,custom:e,presenceAffectsLayout:i,mode:o,onExitComplete:F?void 0:q,anchorX:l,children:R},L)})})},iD=T.createContext({strict:!1}),e9={animation:["animate","variants","whileHover","whileTap","exit","whileInView","whileFocus","whileDrag"],exit:["exit"],drag:["drag","dragControls"],focus:["whileFocus"],hover:["whileHover","onHoverStart","onHoverEnd"],tap:["whileTap","onTap","onTapStart","onTapCancel"],pan:["onPan","onPanStart","onPanSessionStart","onPanEnd"],inView:["whileInView","onViewportEnter","onViewportLeave"],layout:["layout","layoutId"]},Oy={};for(const t in e9)Oy[t]={isEnabled:e=>e9[t].some(n=>!!e[n])};function Dfe(t){for(const e in t)Oy[e]={...Oy[e],...t[e]}}const Ffe=new Set(["animate","exit","variants","initial","style","values","variants","transition","transformTemplate","custom","inherit","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","_dragX","_dragY","onHoverStart","onHoverEnd","onViewportEnter","onViewportLeave","globalTapTarget","ignoreStrict","viewport"]);function WS(t){return t.startsWith("while")||t.startsWith("drag")&&t!=="draggable"||t.startsWith("layout")||t.startsWith("onTap")||t.startsWith("onPan")||t.startsWith("onLayout")||Ffe.has(t)}let aD=t=>!WS(t);function Lfe(t){typeof t=="function"&&(aD=e=>e.startsWith("on")?!WS(e):t(e))}try{Lfe(require("@emotion/is-prop-valid").default)}catch{}function Ufe(t,e,n){const r={};for(const i in t)i==="values"&&typeof t.values=="object"||(aD(i)||n===!0&&WS(i)||!e&&!WS(i)||t.draggable&&i.startsWith("onDrag"))&&(r[i]=t[i]);return r}function Bfe(t){if(typeof Proxy>"u")return t;const e=new Map,n=(...r)=>t(...r);return new Proxy(n,{get:(r,i)=>i==="create"?t:(e.has(i)||e.set(i,t(i)),e.get(i))})}const R3=T.createContext({});function P3(t){return t!==null&&typeof t=="object"&&typeof t.start=="function"}function ab(t){return typeof t=="string"||Array.isArray(t)}const x4=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],O4=["initial",...x4];function I3(t){return P3(t.animate)||O4.some(e=>ab(t[e]))}function oD(t){return!!(I3(t)||t.variants)}function jfe(t,e){if(I3(t)){const{initial:n,animate:r}=t;return{initial:n===!1||ab(n)?n:void 0,animate:ab(r)?r:void 0}}return t.inherit!==!1?e:{}}function qfe(t){const{initial:e,animate:n}=jfe(t,T.useContext(R3));return T.useMemo(()=>({initial:e,animate:n}),[t9(e),t9(n)])}function t9(t){return Array.isArray(t)?t.join(" "):t}const Hfe=Symbol.for("motionComponentSymbol");function ly(t){return t&&typeof t=="object"&&Object.prototype.hasOwnProperty.call(t,"current")}function zfe(t,e,n){return T.useCallback(r=>{r&&t.onMount&&t.onMount(r),e&&(r?e.mount(r):e.unmount()),n&&(typeof n=="function"?n(r):ly(n)&&(n.current=r))},[e])}const T4=t=>t.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase(),Vfe="framerAppearId",sD="data-"+T4(Vfe),uD=T.createContext({});function Gfe(t,e,n,r,i){var E,$;const{visualElement:o}=T.useContext(R3),u=T.useContext(iD),l=T.useContext(A3),d=T.useContext(E4).reducedMotion,h=T.useRef(null);r=r||u.renderer,!h.current&&r&&(h.current=r(t,{visualState:e,parent:o,props:n,presenceContext:l,blockInitialAnimation:l?l.initial===!1:!1,reducedMotionConfig:d}));const g=h.current,y=T.useContext(uD);g&&!g.projection&&i&&(g.type==="html"||g.type==="svg")&&Wfe(h.current,n,i,y);const w=T.useRef(!1);T.useInsertionEffect(()=>{g&&w.current&&g.update(n,l)});const b=n[sD],C=T.useRef(!!b&&!((E=window.MotionHandoffIsComplete)!=null&&E.call(window,b))&&(($=window.MotionHasOptimisedAnimation)==null?void 0:$.call(window,b)));return hk(()=>{g&&(w.current=!0,window.MotionIsMounted=!0,g.updateFeatures(),C4.render(g.render),C.current&&g.animationState&&g.animationState.animateChanges())}),T.useEffect(()=>{g&&(!C.current&&g.animationState&&g.animationState.animateChanges(),C.current&&(queueMicrotask(()=>{var O;(O=window.MotionHandoffMarkAsComplete)==null||O.call(window,b)}),C.current=!1))}),g}function Wfe(t,e,n,r){const{layoutId:i,layout:o,drag:u,dragConstraints:l,layoutScroll:d,layoutRoot:h,layoutCrossfade:g}=e;t.projection=new n(t.latestValues,e["data-framer-portal-id"]?void 0:lD(t.parent)),t.projection.setOptions({layoutId:i,layout:o,alwaysMeasureLayout:!!u||l&&ly(l),visualElement:t,animationType:typeof o=="string"?o:"both",initialPromotionConfig:r,crossfade:g,layoutScroll:d,layoutRoot:h})}function lD(t){if(t)return t.options.allowProjection!==!1?t.projection:lD(t.parent)}function Kfe({preloadedFeatures:t,createVisualElement:e,useRender:n,useVisualState:r,Component:i}){t&&Dfe(t);function o(l,d){let h;const g={...T.useContext(E4),...l,layoutId:Yfe(l)},{isStatic:y}=g,w=qfe(l),b=r(l,y);if(!y&&t4){Jfe();const C=Qfe(g);h=C.MeasureLayout,w.visualElement=Gfe(i,b,g,e,C.ProjectionNode)}return N.jsxs(R3.Provider,{value:w,children:[h&&w.visualElement?N.jsx(h,{visualElement:w.visualElement,...g}):null,n(i,l,zfe(b,w.visualElement,d),b,y,w.visualElement)]})}o.displayName=`motion.${typeof i=="string"?i:`create(${i.displayName??i.name??""})`}`;const u=T.forwardRef(o);return u[Hfe]=i,u}function Yfe({layoutId:t}){const e=T.useContext(ZT).id;return e&&t!==void 0?e+"-"+t:t}function Jfe(t,e){T.useContext(iD).strict}function Qfe(t){const{drag:e,layout:n}=Oy;if(!e&&!n)return{};const r={...e,...n};return{MeasureLayout:e!=null&&e.isEnabled(t)||n!=null&&n.isEnabled(t)?r.MeasureLayout:void 0,ProjectionNode:r.ProjectionNode}}const ob={};function Xfe(t){for(const e in t)ob[e]=t[e],l4(e)&&(ob[e].isCSSVariable=!0)}function cD(t,{layout:e,layoutId:n}){return By.has(t)||t.startsWith("origin")||(e||n!==void 0)&&(!!ob[t]||t==="opacity")}const Zfe={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},ede=Uy.length;function tde(t,e,n){let r="",i=!0;for(let o=0;o({style:{},transform:{},transformOrigin:{},vars:{}});function fD(t,e,n){for(const r in e)!Li(e[r])&&!cD(r,n)&&(t[r]=e[r])}function nde({transformTemplate:t},e){return T.useMemo(()=>{const n=A4();return _4(n,e,t),Object.assign({},n.vars,n.style)},[e])}function rde(t,e){const n=t.style||{},r={};return fD(r,n,t),Object.assign(r,nde(t,e)),r}function ide(t,e){const n={},r=rde(t,e);return t.drag&&t.dragListener!==!1&&(n.draggable=!1,r.userSelect=r.WebkitUserSelect=r.WebkitTouchCallout="none",r.touchAction=t.drag===!0?"none":`pan-${t.drag==="x"?"y":"x"}`),t.tabIndex===void 0&&(t.onTap||t.onTapStart||t.whileTap)&&(n.tabIndex=0),n.style=r,n}const ade={offset:"stroke-dashoffset",array:"stroke-dasharray"},ode={offset:"strokeDashoffset",array:"strokeDasharray"};function sde(t,e,n=1,r=0,i=!0){t.pathLength=1;const o=i?ade:ode;t[o.offset]=xt.transform(-r);const u=xt.transform(e),l=xt.transform(n);t[o.array]=`${u} ${l}`}function dD(t,{attrX:e,attrY:n,attrScale:r,pathLength:i,pathSpacing:o=1,pathOffset:u=0,...l},d,h,g){if(_4(t,l,h),d){t.style.viewBox&&(t.attrs.viewBox=t.style.viewBox);return}t.attrs=t.style,t.style={};const{attrs:y,style:w}=t;y.transform&&(w.transform=y.transform,delete y.transform),(w.transform||y.transformOrigin)&&(w.transformOrigin=y.transformOrigin??"50% 50%",delete y.transformOrigin),w.transform&&(w.transformBox=(g==null?void 0:g.transformBox)??"fill-box",delete y.transformBox),e!==void 0&&(y.x=e),n!==void 0&&(y.y=n),r!==void 0&&(y.scale=r),i!==void 0&&sde(y,i,o,u,!1)}const hD=()=>({...A4(),attrs:{}}),pD=t=>typeof t=="string"&&t.toLowerCase()==="svg";function ude(t,e,n,r){const i=T.useMemo(()=>{const o=hD();return dD(o,e,pD(r),t.transformTemplate,t.style),{...o.attrs,style:{...o.style}}},[e]);if(t.style){const o={};fD(o,t.style,t),i.style={...o,...i.style}}return i}const lde=["animate","circle","defs","desc","ellipse","g","image","line","filter","marker","mask","metadata","path","pattern","polygon","polyline","rect","stop","switch","symbol","svg","text","tspan","use","view"];function R4(t){return typeof t!="string"||t.includes("-")?!1:!!(lde.indexOf(t)>-1||/[A-Z]/u.test(t))}function cde(t=!1){return(n,r,i,{latestValues:o},u)=>{const d=(R4(n)?ude:ide)(r,o,u,n),h=Ufe(r,typeof n=="string",t),g=n!==T.Fragment?{...h,...d,ref:i}:{},{children:y}=r,w=T.useMemo(()=>Li(y)?y.get():y,[y]);return T.createElement(n,{...g,children:w})}}function n9(t){const e=[{},{}];return t==null||t.values.forEach((n,r)=>{e[0][r]=n.get(),e[1][r]=n.getVelocity()}),e}function P4(t,e,n,r){if(typeof e=="function"){const[i,o]=n9(r);e=e(n!==void 0?n:t.custom,i,o)}if(typeof e=="string"&&(e=t.variants&&t.variants[e]),typeof e=="function"){const[i,o]=n9(r);e=e(n!==void 0?n:t.custom,i,o)}return e}function sS(t){return Li(t)?t.get():t}function fde({scrapeMotionValuesFromProps:t,createRenderState:e},n,r,i){return{latestValues:dde(n,r,i,t),renderState:e()}}const mD=t=>(e,n)=>{const r=T.useContext(R3),i=T.useContext(A3),o=()=>fde(t,e,r,i);return n?o():e4(o)};function dde(t,e,n,r){const i={},o=r(t,{});for(const w in o)i[w]=sS(o[w]);let{initial:u,animate:l}=t;const d=I3(t),h=oD(t);e&&h&&!d&&t.inherit!==!1&&(u===void 0&&(u=e.initial),l===void 0&&(l=e.animate));let g=n?n.initial===!1:!1;g=g||u===!1;const y=g?l:u;if(y&&typeof y!="boolean"&&!P3(y)){const w=Array.isArray(y)?y:[y];for(let b=0;bArray.isArray(t);function gde(t,e,n){t.hasValue(e)?t.getValue(e).set(n):t.addValue(e,xy(n))}function yde(t){return DO(t)?t[t.length-1]||0:t}function vde(t,e){const n=sb(t,e);let{transitionEnd:r={},transition:i={},...o}=n||{};o={...o,...r};for(const u in o){const l=yde(o[u]);gde(t,u,l)}}function bde(t){return!!(Li(t)&&t.add)}function FO(t,e){const n=t.getValue("willChange");if(bde(n))return n.add(e);if(!n&&Bl.WillChange){const r=new Bl.WillChange("auto");t.addValue("willChange",r),r.add(e)}}function yD(t){return t.props[sD]}const wde=t=>t!==null;function Sde(t,{repeat:e,repeatType:n="loop"},r){const i=t.filter(wde),o=e&&n!=="loop"&&e%2===1?0:i.length-1;return i[o]}const Cde={type:"spring",stiffness:500,damping:25,restSpeed:10},$de=t=>({type:"spring",stiffness:550,damping:t===0?2*Math.sqrt(550):30,restSpeed:10}),Ede={type:"keyframes",duration:.8},xde={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},Ode=(t,{keyframes:e})=>e.length>2?Ede:By.has(t)?t.startsWith("scale")?$de(e[1]):Cde:xde;function Tde({when:t,delay:e,delayChildren:n,staggerChildren:r,staggerDirection:i,repeat:o,repeatType:u,repeatDelay:l,from:d,elapsed:h,...g}){return!!Object.keys(g).length}const N4=(t,e,n,r={},i,o)=>u=>{const l=w4(r,t)||{},d=l.delay||r.delay||0;let{elapsed:h=0}=r;h=h-Ru(d);const g={keyframes:Array.isArray(n)?n:[null,n],ease:"easeOut",velocity:e.getVelocity(),...l,delay:-h,onUpdate:w=>{e.set(w),l.onUpdate&&l.onUpdate(w)},onComplete:()=>{u(),l.onComplete&&l.onComplete()},name:t,motionValue:e,element:o?void 0:i};Tde(l)||Object.assign(g,Ode(t,g)),g.duration&&(g.duration=Ru(g.duration)),g.repeatDelay&&(g.repeatDelay=Ru(g.repeatDelay)),g.from!==void 0&&(g.keyframes[0]=g.from);let y=!1;if((g.type===!1||g.duration===0&&!g.repeatDelay)&&(g.duration=0,g.delay===0&&(y=!0)),(Bl.instantAnimations||Bl.skipAnimations)&&(y=!0,g.duration=0,g.delay=0),g.allowFlatten=!l.type&&!l.ease,y&&!o&&e.get()!==void 0){const w=Sde(g.keyframes,l);if(w!==void 0){or.update(()=>{g.onUpdate(w),g.onComplete()});return}}return l.isSync?new y4(g):new ofe(g)};function _de({protectedKeys:t,needsAnimating:e},n){const r=t.hasOwnProperty(n)&&e[n]!==!0;return e[n]=!1,r}function vD(t,e,{delay:n=0,transitionOverride:r,type:i}={}){let{transition:o=t.getDefaultTransition(),transitionEnd:u,...l}=e;r&&(o=r);const d=[],h=i&&t.animationState&&t.animationState.getState()[i];for(const g in l){const y=t.getValue(g,t.latestValues[g]??null),w=l[g];if(w===void 0||h&&_de(h,g))continue;const b={delay:n,...w4(o||{},g)},C=y.get();if(C!==void 0&&!y.isAnimating&&!Array.isArray(w)&&w===C&&!b.velocity)continue;let E=!1;if(window.MotionHandoffAnimation){const O=yD(t);if(O){const _=window.MotionHandoffAnimation(O,g,or);_!==null&&(b.startTime=_,E=!0)}}FO(t,g),y.start(N4(g,y,w,t.shouldReduceMotion&&Wk.has(g)?{type:!1}:b,t,E));const $=y.animation;$&&d.push($)}return u&&Promise.all(d).then(()=>{or.update(()=>{u&&vde(t,u)})}),d}function LO(t,e,n={}){var d;const r=sb(t,e,n.type==="exit"?(d=t.presenceContext)==null?void 0:d.custom:void 0);let{transition:i=t.getDefaultTransition()||{}}=r||{};n.transitionOverride&&(i=n.transitionOverride);const o=r?()=>Promise.all(vD(t,r,n)):()=>Promise.resolve(),u=t.variantChildren&&t.variantChildren.size?(h=0)=>{const{delayChildren:g=0,staggerChildren:y,staggerDirection:w}=i;return Ade(t,e,g+h,y,w,n)}:()=>Promise.resolve(),{when:l}=i;if(l){const[h,g]=l==="beforeChildren"?[o,u]:[u,o];return h().then(()=>g())}else return Promise.all([o(),u(n.delay)])}function Ade(t,e,n=0,r=0,i=1,o){const u=[],l=(t.variantChildren.size-1)*r,d=i===1?(h=0)=>h*r:(h=0)=>l-h*r;return Array.from(t.variantChildren).sort(Rde).forEach((h,g)=>{h.notify("AnimationStart",e),u.push(LO(h,e,{...o,delay:n+d(g)}).then(()=>h.notify("AnimationComplete",e)))}),Promise.all(u)}function Rde(t,e){return t.sortNodePosition(e)}function Pde(t,e,n={}){t.notify("AnimationStart",e);let r;if(Array.isArray(e)){const i=e.map(o=>LO(t,o,n));r=Promise.all(i)}else if(typeof e=="string")r=LO(t,e,n);else{const i=typeof e=="function"?sb(t,e,n.custom):e;r=Promise.all(vD(t,i,n))}return r.then(()=>{t.notify("AnimationComplete",e)})}function bD(t,e){if(!Array.isArray(e))return!1;const n=e.length;if(n!==t.length)return!1;for(let r=0;rPromise.all(e.map(({animation:n,options:r})=>Pde(t,n,r)))}function Dde(t){let e=kde(t),n=r9(),r=!0;const i=d=>(h,g)=>{var w;const y=sb(t,g,d==="exit"?(w=t.presenceContext)==null?void 0:w.custom:void 0);if(y){const{transition:b,transitionEnd:C,...E}=y;h={...h,...E,...C}}return h};function o(d){e=d(t)}function u(d){const{props:h}=t,g=wD(t.parent)||{},y=[],w=new Set;let b={},C=1/0;for(let $=0;$C&&k,Y=!1;const Q=Array.isArray(P)?P:[P];let ue=Q.reduce(i(O),{});R===!1&&(ue={});const{prevResolvedValues:me={}}=_,te={...me,...ue},be=V=>{q=!0,w.has(V)&&(Y=!0,w.delete(V)),_.needsAnimating[V]=!0;const H=t.getValue(V);H&&(H.liveStyle=!1)};for(const V in te){const H=ue[V],ie=me[V];if(b.hasOwnProperty(V))continue;let G=!1;DO(H)&&DO(ie)?G=!bD(H,ie):G=H!==ie,G?H!=null?be(V):w.add(V):H!==void 0&&w.has(V)?be(V):_.protectedKeys[V]=!0}_.prevProp=P,_.prevResolvedValues=ue,_.isActive&&(b={...b,...ue}),r&&t.blockInitialAnimation&&(q=!1),q&&(!(L&&F)||Y)&&y.push(...Q.map(V=>({animation:V,options:{type:O}})))}if(w.size){const $={};if(typeof h.initial!="boolean"){const O=sb(t,Array.isArray(h.initial)?h.initial[0]:h.initial);O&&O.transition&&($.transition=O.transition)}w.forEach(O=>{const _=t.getBaseTarget(O),P=t.getValue(O);P&&(P.liveStyle=!0),$[O]=_??null}),y.push({animation:$})}let E=!!y.length;return r&&(h.initial===!1||h.initial===h.animate)&&!t.manuallyAnimateOnMount&&(E=!1),r=!1,E?e(y):Promise.resolve()}function l(d,h){var y;if(n[d].isActive===h)return Promise.resolve();(y=t.variantChildren)==null||y.forEach(w=>{var b;return(b=w.animationState)==null?void 0:b.setActive(d,h)}),n[d].isActive=h;const g=u(d);for(const w in n)n[w].protectedKeys={};return g}return{animateChanges:u,setActive:l,setAnimateFunction:o,getState:()=>n,reset:()=>{n=r9(),r=!0}}}function Fde(t,e){return typeof e=="string"?e!==t:Array.isArray(e)?!bD(e,t):!1}function Dp(t=!1){return{isActive:t,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function r9(){return{animate:Dp(!0),whileInView:Dp(),whileHover:Dp(),whileTap:Dp(),whileDrag:Dp(),whileFocus:Dp(),exit:Dp()}}class ud{constructor(e){this.isMounted=!1,this.node=e}update(){}}class Lde extends ud{constructor(e){super(e),e.animationState||(e.animationState=Dde(e))}updateAnimationControlsSubscription(){const{animate:e}=this.node.getProps();P3(e)&&(this.unmountControls=e.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){const{animate:e}=this.node.getProps(),{animate:n}=this.node.prevProps||{};e!==n&&this.updateAnimationControlsSubscription()}unmount(){var e;this.node.animationState.reset(),(e=this.unmountControls)==null||e.call(this)}}let Ude=0;class Bde extends ud{constructor(){super(...arguments),this.id=Ude++}update(){if(!this.node.presenceContext)return;const{isPresent:e,onExitComplete:n}=this.node.presenceContext,{isPresent:r}=this.node.prevPresenceContext||{};if(!this.node.animationState||e===r)return;const i=this.node.animationState.setActive("exit",!e);n&&!e&&i.then(()=>{n(this.id)})}mount(){const{register:e,onExitComplete:n}=this.node.presenceContext||{};n&&n(this.id),e&&(this.unmount=e(this.id))}unmount(){}}const jde={animation:{Feature:Lde},exit:{Feature:Bde}};function ub(t,e,n,r={passive:!0}){return t.addEventListener(e,n,r),()=>t.removeEventListener(e,n)}function Ab(t){return{point:{x:t.pageX,y:t.pageY}}}const qde=t=>e=>$4(e)&&t(e,Ab(e));function y1(t,e,n,r){return ub(t,e,qde(n),r)}function SD({top:t,left:e,right:n,bottom:r}){return{x:{min:e,max:n},y:{min:t,max:r}}}function Hde({x:t,y:e}){return{top:e.min,right:t.max,bottom:e.max,left:t.min}}function zde(t,e){if(!e)return t;const n=e({x:t.left,y:t.top}),r=e({x:t.right,y:t.bottom});return{top:n.y,left:n.x,bottom:r.y,right:r.x}}const CD=1e-4,Vde=1-CD,Gde=1+CD,$D=.01,Wde=0-$D,Kde=0+$D;function fa(t){return t.max-t.min}function Yde(t,e,n){return Math.abs(t-e)<=n}function i9(t,e,n,r=.5){t.origin=r,t.originPoint=ar(e.min,e.max,t.origin),t.scale=fa(n)/fa(e),t.translate=ar(n.min,n.max,t.origin)-t.originPoint,(t.scale>=Vde&&t.scale<=Gde||isNaN(t.scale))&&(t.scale=1),(t.translate>=Wde&&t.translate<=Kde||isNaN(t.translate))&&(t.translate=0)}function v1(t,e,n,r){i9(t.x,e.x,n.x,r?r.originX:void 0),i9(t.y,e.y,n.y,r?r.originY:void 0)}function a9(t,e,n){t.min=n.min+e.min,t.max=t.min+fa(e)}function Jde(t,e,n){a9(t.x,e.x,n.x),a9(t.y,e.y,n.y)}function o9(t,e,n){t.min=e.min-n.min,t.max=t.min+fa(e)}function b1(t,e,n){o9(t.x,e.x,n.x),o9(t.y,e.y,n.y)}const s9=()=>({translate:0,scale:1,origin:0,originPoint:0}),cy=()=>({x:s9(),y:s9()}),u9=()=>({min:0,max:0}),Sr=()=>({x:u9(),y:u9()});function Uo(t){return[t("x"),t("y")]}function ZE(t){return t===void 0||t===1}function UO({scale:t,scaleX:e,scaleY:n}){return!ZE(t)||!ZE(e)||!ZE(n)}function qp(t){return UO(t)||ED(t)||t.z||t.rotate||t.rotateX||t.rotateY||t.skewX||t.skewY}function ED(t){return l9(t.x)||l9(t.y)}function l9(t){return t&&t!=="0%"}function KS(t,e,n){const r=t-n,i=e*r;return n+i}function c9(t,e,n,r,i){return i!==void 0&&(t=KS(t,i,r)),KS(t,n,r)+e}function BO(t,e=0,n=1,r,i){t.min=c9(t.min,e,n,r,i),t.max=c9(t.max,e,n,r,i)}function xD(t,{x:e,y:n}){BO(t.x,e.translate,e.scale,e.originPoint),BO(t.y,n.translate,n.scale,n.originPoint)}const f9=.999999999999,d9=1.0000000000001;function Qde(t,e,n,r=!1){const i=n.length;if(!i)return;e.x=e.y=1;let o,u;for(let l=0;lf9&&(e.x=1),e.yf9&&(e.y=1)}function fy(t,e){t.min=t.min+e,t.max=t.max+e}function h9(t,e,n,r,i=.5){const o=ar(t.min,t.max,i);BO(t,e,n,o,r)}function dy(t,e){h9(t.x,e.x,e.scaleX,e.scale,e.originX),h9(t.y,e.y,e.scaleY,e.scale,e.originY)}function OD(t,e){return SD(zde(t.getBoundingClientRect(),e))}function Xde(t,e,n){const r=OD(t,n),{scroll:i}=e;return i&&(fy(r.x,i.offset.x),fy(r.y,i.offset.y)),r}const TD=({current:t})=>t?t.ownerDocument.defaultView:null,p9=(t,e)=>Math.abs(t-e);function Zde(t,e){const n=p9(t.x,e.x),r=p9(t.y,e.y);return Math.sqrt(n**2+r**2)}class _D{constructor(e,n,{transformPagePoint:r,contextWindow:i,dragSnapToOrigin:o=!1}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const y=tx(this.lastMoveEventInfo,this.history),w=this.startEvent!==null,b=Zde(y.offset,{x:0,y:0})>=3;if(!w&&!b)return;const{point:C}=y,{timestamp:E}=yi;this.history.push({...C,timestamp:E});const{onStart:$,onMove:O}=this.handlers;w||($&&$(this.lastMoveEvent,y),this.startEvent=this.lastMoveEvent),O&&O(this.lastMoveEvent,y)},this.handlePointerMove=(y,w)=>{this.lastMoveEvent=y,this.lastMoveEventInfo=ex(w,this.transformPagePoint),or.update(this.updatePoint,!0)},this.handlePointerUp=(y,w)=>{this.end();const{onEnd:b,onSessionEnd:C,resumeAnimation:E}=this.handlers;if(this.dragSnapToOrigin&&E&&E(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const $=tx(y.type==="pointercancel"?this.lastMoveEventInfo:ex(w,this.transformPagePoint),this.history);this.startEvent&&b&&b(y,$),C&&C(y,$)},!$4(e))return;this.dragSnapToOrigin=o,this.handlers=n,this.transformPagePoint=r,this.contextWindow=i||window;const u=Ab(e),l=ex(u,this.transformPagePoint),{point:d}=l,{timestamp:h}=yi;this.history=[{...d,timestamp:h}];const{onSessionStart:g}=n;g&&g(e,tx(l,this.history)),this.removeListeners=Ob(y1(this.contextWindow,"pointermove",this.handlePointerMove),y1(this.contextWindow,"pointerup",this.handlePointerUp),y1(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(e){this.handlers=e}end(){this.removeListeners&&this.removeListeners(),jf(this.updatePoint)}}function ex(t,e){return e?{point:e(t.point)}:t}function m9(t,e){return{x:t.x-e.x,y:t.y-e.y}}function tx({point:t},e){return{point:t,delta:m9(t,AD(e)),offset:m9(t,ehe(e)),velocity:the(e,.1)}}function ehe(t){return t[0]}function AD(t){return t[t.length-1]}function the(t,e){if(t.length<2)return{x:0,y:0};let n=t.length-1,r=null;const i=AD(t);for(;n>=0&&(r=t[n],!(i.timestamp-r.timestamp>Ru(e)));)n--;if(!r)return{x:0,y:0};const o=Pu(i.timestamp-r.timestamp);if(o===0)return{x:0,y:0};const u={x:(i.x-r.x)/o,y:(i.y-r.y)/o};return u.x===1/0&&(u.x=0),u.y===1/0&&(u.y=0),u}function nhe(t,{min:e,max:n},r){return e!==void 0&&tn&&(t=r?ar(n,t,r.max):Math.min(t,n)),t}function g9(t,e,n){return{min:e!==void 0?t.min+e:void 0,max:n!==void 0?t.max+n-(t.max-t.min):void 0}}function rhe(t,{top:e,left:n,bottom:r,right:i}){return{x:g9(t.x,n,i),y:g9(t.y,e,r)}}function y9(t,e){let n=e.min-t.min,r=e.max-t.max;return e.max-e.minr?n=nb(e.min,e.max-r,t.min):r>i&&(n=nb(t.min,t.max-i,e.min)),Ul(0,1,n)}function ohe(t,e){const n={};return e.min!==void 0&&(n.min=e.min-t.min),e.max!==void 0&&(n.max=e.max-t.min),n}const jO=.35;function she(t=jO){return t===!1?t=0:t===!0&&(t=jO),{x:v9(t,"left","right"),y:v9(t,"top","bottom")}}function v9(t,e,n){return{min:b9(t,e),max:b9(t,n)}}function b9(t,e){return typeof t=="number"?t:t[e]||0}const uhe=new WeakMap;class lhe{constructor(e){this.openDragLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=Sr(),this.visualElement=e}start(e,{snapToCursor:n=!1}={}){const{presenceContext:r}=this.visualElement;if(r&&r.isPresent===!1)return;const i=g=>{const{dragSnapToOrigin:y}=this.getProps();y?this.pauseAnimation():this.stopAnimation(),n&&this.snapToCursor(Ab(g).point)},o=(g,y)=>{const{drag:w,dragPropagation:b,onDragStart:C}=this.getProps();if(w&&!b&&(this.openDragLock&&this.openDragLock(),this.openDragLock=Cfe(w),!this.openDragLock))return;this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),Uo($=>{let O=this.getAxisMotionValue($).get()||0;if(Iu.test(O)){const{projection:_}=this.visualElement;if(_&&_.layout){const P=_.layout.layoutBox[$];P&&(O=fa(P)*(parseFloat(O)/100))}}this.originPoint[$]=O}),C&&or.postRender(()=>C(g,y)),FO(this.visualElement,"transform");const{animationState:E}=this.visualElement;E&&E.setActive("whileDrag",!0)},u=(g,y)=>{const{dragPropagation:w,dragDirectionLock:b,onDirectionLock:C,onDrag:E}=this.getProps();if(!w&&!this.openDragLock)return;const{offset:$}=y;if(b&&this.currentDirection===null){this.currentDirection=che($),this.currentDirection!==null&&C&&C(this.currentDirection);return}this.updateAxis("x",y.point,$),this.updateAxis("y",y.point,$),this.visualElement.render(),E&&E(g,y)},l=(g,y)=>this.stop(g,y),d=()=>Uo(g=>{var y;return this.getAnimationState(g)==="paused"&&((y=this.getAxisMotionValue(g).animation)==null?void 0:y.play())}),{dragSnapToOrigin:h}=this.getProps();this.panSession=new _D(e,{onSessionStart:i,onStart:o,onMove:u,onSessionEnd:l,resumeAnimation:d},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:h,contextWindow:TD(this.visualElement)})}stop(e,n){const r=this.isDragging;if(this.cancel(),!r)return;const{velocity:i}=n;this.startAnimation(i);const{onDragEnd:o}=this.getProps();o&&or.postRender(()=>o(e,n))}cancel(){this.isDragging=!1;const{projection:e,animationState:n}=this.visualElement;e&&(e.isAnimationBlocked=!1),this.panSession&&this.panSession.end(),this.panSession=void 0;const{dragPropagation:r}=this.getProps();!r&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),n&&n.setActive("whileDrag",!1)}updateAxis(e,n,r){const{drag:i}=this.getProps();if(!r||!qw(e,i,this.currentDirection))return;const o=this.getAxisMotionValue(e);let u=this.originPoint[e]+r[e];this.constraints&&this.constraints[e]&&(u=nhe(u,this.constraints[e],this.elastic[e])),o.set(u)}resolveConstraints(){var o;const{dragConstraints:e,dragElastic:n}=this.getProps(),r=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):(o=this.visualElement.projection)==null?void 0:o.layout,i=this.constraints;e&&ly(e)?this.constraints||(this.constraints=this.resolveRefConstraints()):e&&r?this.constraints=rhe(r.layoutBox,e):this.constraints=!1,this.elastic=she(n),i!==this.constraints&&r&&this.constraints&&!this.hasMutatedConstraints&&Uo(u=>{this.constraints!==!1&&this.getAxisMotionValue(u)&&(this.constraints[u]=ohe(r.layoutBox[u],this.constraints[u]))})}resolveRefConstraints(){const{dragConstraints:e,onMeasureDragConstraints:n}=this.getProps();if(!e||!ly(e))return!1;const r=e.current,{projection:i}=this.visualElement;if(!i||!i.layout)return!1;const o=Xde(r,i.root,this.visualElement.getTransformPagePoint());let u=ihe(i.layout.layoutBox,o);if(n){const l=n(Hde(u));this.hasMutatedConstraints=!!l,l&&(u=SD(l))}return u}startAnimation(e){const{drag:n,dragMomentum:r,dragElastic:i,dragTransition:o,dragSnapToOrigin:u,onDragTransitionEnd:l}=this.getProps(),d=this.constraints||{},h=Uo(g=>{if(!qw(g,n,this.currentDirection))return;let y=d&&d[g]||{};u&&(y={min:0,max:0});const w=i?200:1e6,b=i?40:1e7,C={type:"inertia",velocity:r?e[g]:0,bounceStiffness:w,bounceDamping:b,timeConstant:750,restDelta:1,restSpeed:10,...o,...y};return this.startAxisValueAnimation(g,C)});return Promise.all(h).then(l)}startAxisValueAnimation(e,n){const r=this.getAxisMotionValue(e);return FO(this.visualElement,e),r.start(N4(e,r,0,n,this.visualElement,!1))}stopAnimation(){Uo(e=>this.getAxisMotionValue(e).stop())}pauseAnimation(){Uo(e=>{var n;return(n=this.getAxisMotionValue(e).animation)==null?void 0:n.pause()})}getAnimationState(e){var n;return(n=this.getAxisMotionValue(e).animation)==null?void 0:n.state}getAxisMotionValue(e){const n=`_drag${e.toUpperCase()}`,r=this.visualElement.getProps(),i=r[n];return i||this.visualElement.getValue(e,(r.initial?r.initial[e]:void 0)||0)}snapToCursor(e){Uo(n=>{const{drag:r}=this.getProps();if(!qw(n,r,this.currentDirection))return;const{projection:i}=this.visualElement,o=this.getAxisMotionValue(n);if(i&&i.layout){const{min:u,max:l}=i.layout.layoutBox[n];o.set(e[n]-ar(u,l,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:e,dragConstraints:n}=this.getProps(),{projection:r}=this.visualElement;if(!ly(n)||!r||!this.constraints)return;this.stopAnimation();const i={x:0,y:0};Uo(u=>{const l=this.getAxisMotionValue(u);if(l&&this.constraints!==!1){const d=l.get();i[u]=ahe({min:d,max:d},this.constraints[u])}});const{transformTemplate:o}=this.visualElement.getProps();this.visualElement.current.style.transform=o?o({},""):"none",r.root&&r.root.updateScroll(),r.updateLayout(),this.resolveConstraints(),Uo(u=>{if(!qw(u,e,null))return;const l=this.getAxisMotionValue(u),{min:d,max:h}=this.constraints[u];l.set(ar(d,h,i[u]))})}addListeners(){if(!this.visualElement.current)return;uhe.set(this.visualElement,this);const e=this.visualElement.current,n=y1(e,"pointerdown",d=>{const{drag:h,dragListener:g=!0}=this.getProps();h&&g&&this.start(d)}),r=()=>{const{dragConstraints:d}=this.getProps();ly(d)&&d.current&&(this.constraints=this.resolveRefConstraints())},{projection:i}=this.visualElement,o=i.addEventListener("measure",r);i&&!i.layout&&(i.root&&i.root.updateScroll(),i.updateLayout()),or.read(r);const u=ub(window,"resize",()=>this.scalePositionWithinConstraints()),l=i.addEventListener("didUpdate",(({delta:d,hasLayoutChanged:h})=>{this.isDragging&&h&&(Uo(g=>{const y=this.getAxisMotionValue(g);y&&(this.originPoint[g]+=d[g].translate,y.set(y.get()+d[g].translate))}),this.visualElement.render())}));return()=>{u(),n(),o(),l&&l()}}getProps(){const e=this.visualElement.getProps(),{drag:n=!1,dragDirectionLock:r=!1,dragPropagation:i=!1,dragConstraints:o=!1,dragElastic:u=jO,dragMomentum:l=!0}=e;return{...e,drag:n,dragDirectionLock:r,dragPropagation:i,dragConstraints:o,dragElastic:u,dragMomentum:l}}}function qw(t,e,n){return(e===!0||e===t)&&(n===null||n===t)}function che(t,e=10){let n=null;return Math.abs(t.y)>e?n="y":Math.abs(t.x)>e&&(n="x"),n}class fhe extends ud{constructor(e){super(e),this.removeGroupControls=Ko,this.removeListeners=Ko,this.controls=new lhe(e)}mount(){const{dragControls:e}=this.node.getProps();e&&(this.removeGroupControls=e.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||Ko}unmount(){this.removeGroupControls(),this.removeListeners()}}const w9=t=>(e,n)=>{t&&or.postRender(()=>t(e,n))};class dhe extends ud{constructor(){super(...arguments),this.removePointerDownListener=Ko}onPointerDown(e){this.session=new _D(e,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:TD(this.node)})}createPanHandlers(){const{onPanSessionStart:e,onPanStart:n,onPan:r,onPanEnd:i}=this.node.getProps();return{onSessionStart:w9(e),onStart:w9(n),onMove:r,onEnd:(o,u)=>{delete this.session,i&&or.postRender(()=>i(o,u))}}}mount(){this.removePointerDownListener=y1(this.node.current,"pointerdown",e=>this.onPointerDown(e))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}const uS={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function S9(t,e){return e.max===e.min?0:t/(e.max-e.min)*100}const t1={correct:(t,e)=>{if(!e.target)return t;if(typeof t=="string")if(xt.test(t))t=parseFloat(t);else return t;const n=S9(t,e.target.x),r=S9(t,e.target.y);return`${n}% ${r}%`}},hhe={correct:(t,{treeScale:e,projectionDelta:n})=>{const r=t,i=qf.parse(t);if(i.length>5)return r;const o=qf.createTransformer(t),u=typeof i[0]!="number"?1:0,l=n.x.scale*e.x,d=n.y.scale*e.y;i[0+u]/=l,i[1+u]/=d;const h=ar(l,d,.5);return typeof i[2+u]=="number"&&(i[2+u]/=h),typeof i[3+u]=="number"&&(i[3+u]/=h),o(i)}};class phe extends T.Component{componentDidMount(){const{visualElement:e,layoutGroup:n,switchLayoutGroup:r,layoutId:i}=this.props,{projection:o}=e;Xfe(mhe),o&&(n.group&&n.group.add(o),r&&r.register&&i&&r.register(o),o.root.didUpdate(),o.addEventListener("animationComplete",()=>{this.safeToRemove()}),o.setOptions({...o.options,onExitComplete:()=>this.safeToRemove()})),uS.hasEverUpdated=!0}getSnapshotBeforeUpdate(e){const{layoutDependency:n,visualElement:r,drag:i,isPresent:o}=this.props,{projection:u}=r;return u&&(u.isPresent=o,i||e.layoutDependency!==n||n===void 0||e.isPresent!==o?u.willUpdate():this.safeToRemove(),e.isPresent!==o&&(o?u.promote():u.relegate()||or.postRender(()=>{const l=u.getStack();(!l||!l.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{projection:e}=this.props.visualElement;e&&(e.root.didUpdate(),C4.postRender(()=>{!e.currentAnimation&&e.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:e,layoutGroup:n,switchLayoutGroup:r}=this.props,{projection:i}=e;i&&(i.scheduleCheckAfterUnmount(),n&&n.group&&n.group.remove(i),r&&r.deregister&&r.deregister(i))}safeToRemove(){const{safeToRemove:e}=this.props;e&&e()}render(){return null}}function RD(t){const[e,n]=rD(),r=T.useContext(ZT);return N.jsx(phe,{...t,layoutGroup:r,switchLayoutGroup:T.useContext(uD),isPresent:e,safeToRemove:n})}const mhe={borderRadius:{...t1,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:t1,borderTopRightRadius:t1,borderBottomLeftRadius:t1,borderBottomRightRadius:t1,boxShadow:hhe};function ghe(t,e,n){const r=Li(t)?t:xy(t);return r.start(N4("",r,e,n)),r.animation}const yhe=(t,e)=>t.depth-e.depth;class vhe{constructor(){this.children=[],this.isDirty=!1}add(e){n4(this.children,e),this.isDirty=!0}remove(e){r4(this.children,e),this.isDirty=!0}forEach(e){this.isDirty&&this.children.sort(yhe),this.isDirty=!1,this.children.forEach(e)}}function bhe(t,e){const n=Pa.now(),r=({timestamp:i})=>{const o=i-n;o>=e&&(jf(r),t(o-e))};return or.setup(r,!0),()=>jf(r)}const PD=["TopLeft","TopRight","BottomLeft","BottomRight"],whe=PD.length,C9=t=>typeof t=="string"?parseFloat(t):t,$9=t=>typeof t=="number"||xt.test(t);function She(t,e,n,r,i,o){i?(t.opacity=ar(0,n.opacity??1,Che(r)),t.opacityExit=ar(e.opacity??1,0,$he(r))):o&&(t.opacity=ar(e.opacity??1,n.opacity??1,r));for(let u=0;ure?1:n(nb(t,e,r))}function x9(t,e){t.min=e.min,t.max=e.max}function Fo(t,e){x9(t.x,e.x),x9(t.y,e.y)}function O9(t,e){t.translate=e.translate,t.scale=e.scale,t.originPoint=e.originPoint,t.origin=e.origin}function T9(t,e,n,r,i){return t-=e,t=KS(t,1/n,r),i!==void 0&&(t=KS(t,1/i,r)),t}function Ehe(t,e=0,n=1,r=.5,i,o=t,u=t){if(Iu.test(e)&&(e=parseFloat(e),e=ar(u.min,u.max,e/100)-u.min),typeof e!="number")return;let l=ar(o.min,o.max,r);t===o&&(l-=e),t.min=T9(t.min,e,n,l,i),t.max=T9(t.max,e,n,l,i)}function _9(t,e,[n,r,i],o,u){Ehe(t,e[n],e[r],e[i],e.scale,o,u)}const xhe=["x","scaleX","originX"],Ohe=["y","scaleY","originY"];function A9(t,e,n,r){_9(t.x,e,xhe,n?n.x:void 0,r?r.x:void 0),_9(t.y,e,Ohe,n?n.y:void 0,r?r.y:void 0)}function R9(t){return t.translate===0&&t.scale===1}function ND(t){return R9(t.x)&&R9(t.y)}function P9(t,e){return t.min===e.min&&t.max===e.max}function The(t,e){return P9(t.x,e.x)&&P9(t.y,e.y)}function I9(t,e){return Math.round(t.min)===Math.round(e.min)&&Math.round(t.max)===Math.round(e.max)}function MD(t,e){return I9(t.x,e.x)&&I9(t.y,e.y)}function N9(t){return fa(t.x)/fa(t.y)}function M9(t,e){return t.translate===e.translate&&t.scale===e.scale&&t.originPoint===e.originPoint}class _he{constructor(){this.members=[]}add(e){n4(this.members,e),e.scheduleRender()}remove(e){if(r4(this.members,e),e===this.prevLead&&(this.prevLead=void 0),e===this.lead){const n=this.members[this.members.length-1];n&&this.promote(n)}}relegate(e){const n=this.members.findIndex(i=>e===i);if(n===0)return!1;let r;for(let i=n;i>=0;i--){const o=this.members[i];if(o.isPresent!==!1){r=o;break}}return r?(this.promote(r),!0):!1}promote(e,n){const r=this.lead;if(e!==r&&(this.prevLead=r,this.lead=e,e.show(),r)){r.instance&&r.scheduleRender(),e.scheduleRender(),e.resumeFrom=r,n&&(e.resumeFrom.preserveOpacity=!0),r.snapshot&&(e.snapshot=r.snapshot,e.snapshot.latestValues=r.animationValues||r.latestValues),e.root&&e.root.isUpdating&&(e.isLayoutDirty=!0);const{crossfade:i}=e.options;i===!1&&r.hide()}}exitAnimationComplete(){this.members.forEach(e=>{const{options:n,resumingFrom:r}=e;n.onExitComplete&&n.onExitComplete(),r&&r.options.onExitComplete&&r.options.onExitComplete()})}scheduleRender(){this.members.forEach(e=>{e.instance&&e.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}function Ahe(t,e,n){let r="";const i=t.x.translate/e.x,o=t.y.translate/e.y,u=(n==null?void 0:n.z)||0;if((i||o||u)&&(r=`translate3d(${i}px, ${o}px, ${u}px) `),(e.x!==1||e.y!==1)&&(r+=`scale(${1/e.x}, ${1/e.y}) `),n){const{transformPerspective:h,rotate:g,rotateX:y,rotateY:w,skewX:b,skewY:C}=n;h&&(r=`perspective(${h}px) ${r}`),g&&(r+=`rotate(${g}deg) `),y&&(r+=`rotateX(${y}deg) `),w&&(r+=`rotateY(${w}deg) `),b&&(r+=`skewX(${b}deg) `),C&&(r+=`skewY(${C}deg) `)}const l=t.x.scale*e.x,d=t.y.scale*e.y;return(l!==1||d!==1)&&(r+=`scale(${l}, ${d})`),r||"none"}const nx=["","X","Y","Z"],Rhe={visibility:"hidden"},Phe=1e3;let Ihe=0;function rx(t,e,n,r){const{latestValues:i}=e;i[t]&&(n[t]=i[t],e.setStaticValue(t,0),r&&(r[t]=0))}function kD(t){if(t.hasCheckedOptimisedAppear=!0,t.root===t)return;const{visualElement:e}=t.options;if(!e)return;const n=yD(e);if(window.MotionHasOptimisedAnimation(n,"transform")){const{layout:i,layoutId:o}=t.options;window.MotionCancelOptimisedAnimation(n,"transform",or,!(i||o))}const{parent:r}=t;r&&!r.hasCheckedOptimisedAppear&&kD(r)}function DD({attachResizeListener:t,defaultParent:e,measureScroll:n,checkIsScrollRoot:r,resetTransform:i}){return class{constructor(u={},l=e==null?void 0:e()){this.id=Ihe++,this.animationId=0,this.animationCommitId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.hasCheckedOptimisedAppear=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.updateScheduled=!1,this.scheduleUpdate=()=>this.update(),this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,this.nodes.forEach(khe),this.nodes.forEach(Uhe),this.nodes.forEach(Bhe),this.nodes.forEach(Dhe)},this.resolvedRelativeTargetAt=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=u,this.root=l?l.root||l:this,this.path=l?[...l.path,l]:[],this.parent=l,this.depth=l?l.depth+1:0;for(let d=0;dthis.root.updateBlockedByResize=!1;t(u,()=>{this.root.updateBlockedByResize=!0,g&&g(),g=bhe(y,250),uS.hasAnimatedSinceResize&&(uS.hasAnimatedSinceResize=!1,this.nodes.forEach(F9))})}l&&this.root.registerSharedNode(l,this),this.options.animate!==!1&&h&&(l||d)&&this.addEventListener("didUpdate",({delta:g,hasLayoutChanged:y,hasRelativeLayoutChanged:w,layout:b})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const C=this.options.transition||h.getDefaultTransition()||Vhe,{onLayoutAnimationStart:E,onLayoutAnimationComplete:$}=h.getProps(),O=!this.targetLayout||!MD(this.targetLayout,b),_=!y&&w;if(this.options.layoutRoot||this.resumeFrom||_||y&&(O||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0);const P={...w4(C,"layout"),onPlay:E,onComplete:$};(h.shouldReduceMotion||this.options.layoutRoot)&&(P.delay=0,P.type=!1),this.startAnimation(P),this.setAnimationOrigin(g,_)}else y||F9(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=b})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const u=this.getStack();u&&u.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,this.eventHandlers.clear(),jf(this.updateProjection)}blockUpdate(){this.updateManuallyBlocked=!0}unblockUpdate(){this.updateManuallyBlocked=!1}isUpdateBlocked(){return this.updateManuallyBlocked||this.updateBlockedByResize}isTreeAnimationBlocked(){return this.isAnimationBlocked||this.parent&&this.parent.isTreeAnimationBlocked()||!1}startUpdate(){this.isUpdateBlocked()||(this.isUpdating=!0,this.nodes&&this.nodes.forEach(jhe),this.animationId++)}getTransformTemplate(){const{visualElement:u}=this.options;return u&&u.getProps().transformTemplate}willUpdate(u=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&kD(this),!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let g=0;g{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure(),this.snapshot&&!fa(this.snapshot.measuredBox.x)&&!fa(this.snapshot.measuredBox.y)&&(this.snapshot=void 0))}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let d=0;d{const R=k/1e3;L9(y.x,u.x,R),L9(y.y,u.y,R),this.setTargetDelta(y),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(b1(w,this.layout.layoutBox,this.relativeParent.layout.layoutBox),Hhe(this.relativeTarget,this.relativeTargetOrigin,w,R),P&&The(this.relativeTarget,P)&&(this.isProjectionDirty=!1),P||(P=Sr()),Fo(P,this.relativeTarget)),E&&(this.animationValues=g,She(g,h,this.latestValues,R,_,O)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=R},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(u){var l,d,h;this.notifyListeners("animationStart"),(l=this.currentAnimation)==null||l.stop(),(h=(d=this.resumingFrom)==null?void 0:d.currentAnimation)==null||h.stop(),this.pendingAnimation&&(jf(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=or.update(()=>{uS.hasAnimatedSinceResize=!0,this.motionValue||(this.motionValue=xy(0)),this.currentAnimation=ghe(this.motionValue,[0,1e3],{...u,velocity:0,isSync:!0,onUpdate:g=>{this.mixTargetDelta(g),u.onUpdate&&u.onUpdate(g)},onStop:()=>{},onComplete:()=>{u.onComplete&&u.onComplete(),this.completeAnimation()}}),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0})}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);const u=this.getStack();u&&u.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(Phe),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const u=this.getLead();let{targetWithTransforms:l,target:d,layout:h,latestValues:g}=u;if(!(!l||!d||!h)){if(this!==u&&this.layout&&h&&FD(this.options.animationType,this.layout.layoutBox,h.layoutBox)){d=this.target||Sr();const y=fa(this.layout.layoutBox.x);d.x.min=u.target.x.min,d.x.max=d.x.min+y;const w=fa(this.layout.layoutBox.y);d.y.min=u.target.y.min,d.y.max=d.y.min+w}Fo(l,d),dy(l,g),v1(this.projectionDeltaWithTransform,this.layoutCorrected,l,g)}}registerSharedNode(u,l){this.sharedNodes.has(u)||this.sharedNodes.set(u,new _he),this.sharedNodes.get(u).add(l);const h=l.options.initialPromotionConfig;l.promote({transition:h?h.transition:void 0,preserveFollowOpacity:h&&h.shouldPreserveFollowOpacity?h.shouldPreserveFollowOpacity(l):void 0})}isLead(){const u=this.getStack();return u?u.lead===this:!0}getLead(){var l;const{layoutId:u}=this.options;return u?((l=this.getStack())==null?void 0:l.lead)||this:this}getPrevLead(){var l;const{layoutId:u}=this.options;return u?(l=this.getStack())==null?void 0:l.prevLead:void 0}getStack(){const{layoutId:u}=this.options;if(u)return this.root.sharedNodes.get(u)}promote({needsReset:u,transition:l,preserveFollowOpacity:d}={}){const h=this.getStack();h&&h.promote(this,d),u&&(this.projectionDelta=void 0,this.needsReset=!0),l&&this.setOptions({transition:l})}relegate(){const u=this.getStack();return u?u.relegate(this):!1}resetSkewAndRotation(){const{visualElement:u}=this.options;if(!u)return;let l=!1;const{latestValues:d}=u;if((d.z||d.rotate||d.rotateX||d.rotateY||d.rotateZ||d.skewX||d.skewY)&&(l=!0),!l)return;const h={};d.z&&rx("z",u,h,this.animationValues);for(let g=0;g{var l;return(l=u.currentAnimation)==null?void 0:l.stop()}),this.root.nodes.forEach(k9),this.root.sharedNodes.clear()}}}function Nhe(t){t.updateLayout()}function Mhe(t){var n;const e=((n=t.resumeFrom)==null?void 0:n.snapshot)||t.snapshot;if(t.isLead()&&t.layout&&e&&t.hasListeners("didUpdate")){const{layoutBox:r,measuredBox:i}=t.layout,{animationType:o}=t.options,u=e.source!==t.layout.source;o==="size"?Uo(y=>{const w=u?e.measuredBox[y]:e.layoutBox[y],b=fa(w);w.min=r[y].min,w.max=w.min+b}):FD(o,e.layoutBox,r)&&Uo(y=>{const w=u?e.measuredBox[y]:e.layoutBox[y],b=fa(r[y]);w.max=w.min+b,t.relativeTarget&&!t.currentAnimation&&(t.isProjectionDirty=!0,t.relativeTarget[y].max=t.relativeTarget[y].min+b)});const l=cy();v1(l,r,e.layoutBox);const d=cy();u?v1(d,t.applyTransform(i,!0),e.measuredBox):v1(d,r,e.layoutBox);const h=!ND(l);let g=!1;if(!t.resumeFrom){const y=t.getClosestProjectingParent();if(y&&!y.resumeFrom){const{snapshot:w,layout:b}=y;if(w&&b){const C=Sr();b1(C,e.layoutBox,w.layoutBox);const E=Sr();b1(E,r,b.layoutBox),MD(C,E)||(g=!0),y.options.layoutRoot&&(t.relativeTarget=E,t.relativeTargetOrigin=C,t.relativeParent=y)}}}t.notifyListeners("didUpdate",{layout:r,snapshot:e,delta:d,layoutDelta:l,hasLayoutChanged:h,hasRelativeLayoutChanged:g})}else if(t.isLead()){const{onExitComplete:r}=t.options;r&&r()}t.options.transition=void 0}function khe(t){t.parent&&(t.isProjecting()||(t.isProjectionDirty=t.parent.isProjectionDirty),t.isSharedProjectionDirty||(t.isSharedProjectionDirty=!!(t.isProjectionDirty||t.parent.isProjectionDirty||t.parent.isSharedProjectionDirty)),t.isTransformDirty||(t.isTransformDirty=t.parent.isTransformDirty))}function Dhe(t){t.isProjectionDirty=t.isSharedProjectionDirty=t.isTransformDirty=!1}function Fhe(t){t.clearSnapshot()}function k9(t){t.clearMeasurements()}function D9(t){t.isLayoutDirty=!1}function Lhe(t){const{visualElement:e}=t.options;e&&e.getProps().onBeforeLayoutMeasure&&e.notify("BeforeLayoutMeasure"),t.resetTransform()}function F9(t){t.finishAnimation(),t.targetDelta=t.relativeTarget=t.target=void 0,t.isProjectionDirty=!0}function Uhe(t){t.resolveTargetDelta()}function Bhe(t){t.calcProjection()}function jhe(t){t.resetSkewAndRotation()}function qhe(t){t.removeLeadSnapshot()}function L9(t,e,n){t.translate=ar(e.translate,0,n),t.scale=ar(e.scale,1,n),t.origin=e.origin,t.originPoint=e.originPoint}function U9(t,e,n,r){t.min=ar(e.min,n.min,r),t.max=ar(e.max,n.max,r)}function Hhe(t,e,n,r){U9(t.x,e.x,n.x,r),U9(t.y,e.y,n.y,r)}function zhe(t){return t.animationValues&&t.animationValues.opacityExit!==void 0}const Vhe={duration:.45,ease:[.4,0,.1,1]},B9=t=>typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(t),j9=B9("applewebkit/")&&!B9("chrome/")?Math.round:Ko;function q9(t){t.min=j9(t.min),t.max=j9(t.max)}function Ghe(t){q9(t.x),q9(t.y)}function FD(t,e,n){return t==="position"||t==="preserve-aspect"&&!Yde(N9(e),N9(n),.2)}function Whe(t){var e;return t!==t.root&&((e=t.scroll)==null?void 0:e.wasRoot)}const Khe=DD({attachResizeListener:(t,e)=>ub(t,"resize",e),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),ix={current:void 0},LD=DD({measureScroll:t=>({x:t.scrollLeft,y:t.scrollTop}),defaultParent:()=>{if(!ix.current){const t=new Khe({});t.mount(window),t.setOptions({layoutScroll:!0}),ix.current=t}return ix.current},resetTransform:(t,e)=>{t.style.transform=e!==void 0?e:"none"},checkIsScrollRoot:t=>window.getComputedStyle(t).position==="fixed"}),Yhe={pan:{Feature:dhe},drag:{Feature:fhe,ProjectionNode:LD,MeasureLayout:RD}};function H9(t,e,n){const{props:r}=t;t.animationState&&r.whileHover&&t.animationState.setActive("whileHover",n==="Start");const i="onHover"+n,o=r[i];o&&or.postRender(()=>o(e,Ab(e)))}class Jhe extends ud{mount(){const{current:e}=this.node;e&&(this.unmount=$fe(e,(n,r)=>(H9(this.node,r,"Start"),i=>H9(this.node,i,"End"))))}unmount(){}}class Qhe extends ud{constructor(){super(...arguments),this.isActive=!1}onFocus(){let e=!1;try{e=this.node.current.matches(":focus-visible")}catch{e=!0}!e||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!0),this.isActive=!0)}onBlur(){!this.isActive||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!1),this.isActive=!1)}mount(){this.unmount=Ob(ub(this.node.current,"focus",()=>this.onFocus()),ub(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}function z9(t,e,n){const{props:r}=t;if(t.current instanceof HTMLButtonElement&&t.current.disabled)return;t.animationState&&r.whileTap&&t.animationState.setActive("whileTap",n==="Start");const i="onTap"+(n==="End"?"":n),o=r[i];o&&or.postRender(()=>o(e,Ab(e)))}class Xhe extends ud{mount(){const{current:e}=this.node;e&&(this.unmount=Tfe(e,(n,r)=>(z9(this.node,r,"Start"),(i,{success:o})=>z9(this.node,i,o?"End":"Cancel")),{useGlobalTarget:this.node.props.globalTapTarget}))}unmount(){}}const qO=new WeakMap,ax=new WeakMap,Zhe=t=>{const e=qO.get(t.target);e&&e(t)},epe=t=>{t.forEach(Zhe)};function tpe({root:t,...e}){const n=t||document;ax.has(n)||ax.set(n,{});const r=ax.get(n),i=JSON.stringify(e);return r[i]||(r[i]=new IntersectionObserver(epe,{root:t,...e})),r[i]}function npe(t,e,n){const r=tpe(e);return qO.set(t,n),r.observe(t),()=>{qO.delete(t),r.unobserve(t)}}const rpe={some:0,all:1};class ipe extends ud{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();const{viewport:e={}}=this.node.getProps(),{root:n,margin:r,amount:i="some",once:o}=e,u={root:n?n.current:void 0,rootMargin:r,threshold:typeof i=="number"?i:rpe[i]},l=d=>{const{isIntersecting:h}=d;if(this.isInView===h||(this.isInView=h,o&&!h&&this.hasEnteredView))return;h&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",h);const{onViewportEnter:g,onViewportLeave:y}=this.node.getProps(),w=h?g:y;w&&w(d)};return npe(this.node.current,u,l)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;const{props:e,prevProps:n}=this.node;["amount","margin","root"].some(ape(e,n))&&this.startObserver()}unmount(){}}function ape({viewport:t={}},{viewport:e={}}={}){return n=>t[n]!==e[n]}const ope={inView:{Feature:ipe},tap:{Feature:Xhe},focus:{Feature:Qhe},hover:{Feature:Jhe}},spe={layout:{ProjectionNode:LD,MeasureLayout:RD}},HO={current:null},UD={current:!1};function upe(){if(UD.current=!0,!!t4)if(window.matchMedia){const t=window.matchMedia("(prefers-reduced-motion)"),e=()=>HO.current=t.matches;t.addListener(e),e()}else HO.current=!1}const lpe=new WeakMap;function cpe(t,e,n){for(const r in e){const i=e[r],o=n[r];if(Li(i))t.addValue(r,i);else if(Li(o))t.addValue(r,xy(i,{owner:t}));else if(o!==i)if(t.hasValue(r)){const u=t.getValue(r);u.liveStyle===!0?u.jump(i):u.hasAnimated||u.set(i)}else{const u=t.getStaticValue(r);t.addValue(r,xy(u!==void 0?u:i,{owner:t}))}}for(const r in n)e[r]===void 0&&t.removeValue(r);return e}const V9=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];class fpe{scrapeMotionValuesFromProps(e,n,r){return{}}constructor({parent:e,props:n,presenceContext:r,reducedMotionConfig:i,blockInitialAnimation:o,visualState:u},l={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.KeyframeResolver=v4,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.renderScheduledAt=0,this.scheduleRender=()=>{const w=Pa.now();this.renderScheduledAtthis.bindToMotionValue(r,n)),UD.current||upe(),this.shouldReduceMotion=this.reducedMotionConfig==="never"?!1:this.reducedMotionConfig==="always"?!0:HO.current,this.parent&&this.parent.children.add(this),this.update(this.props,this.presenceContext)}unmount(){this.projection&&this.projection.unmount(),jf(this.notifyUpdate),jf(this.render),this.valueSubscriptions.forEach(e=>e()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent&&this.parent.children.delete(this);for(const e in this.events)this.events[e].clear();for(const e in this.features){const n=this.features[e];n&&(n.unmount(),n.isMounted=!1)}this.current=null}bindToMotionValue(e,n){this.valueSubscriptions.has(e)&&this.valueSubscriptions.get(e)();const r=By.has(e);r&&this.onBindTransform&&this.onBindTransform();const i=n.on("change",l=>{this.latestValues[e]=l,this.props.onUpdate&&or.preRender(this.notifyUpdate),r&&this.projection&&(this.projection.isTransformDirty=!0)}),o=n.on("renderRequest",this.scheduleRender);let u;window.MotionCheckAppearSync&&(u=window.MotionCheckAppearSync(this,e,n)),this.valueSubscriptions.set(e,()=>{i(),o(),u&&u(),n.owner&&n.stop()})}sortNodePosition(e){return!this.current||!this.sortInstanceNodePosition||this.type!==e.type?0:this.sortInstanceNodePosition(this.current,e.current)}updateFeatures(){let e="animation";for(e in Oy){const n=Oy[e];if(!n)continue;const{isEnabled:r,Feature:i}=n;if(!this.features[e]&&i&&r(this.props)&&(this.features[e]=new i(this)),this.features[e]){const o=this.features[e];o.isMounted?o.update():(o.mount(),o.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):Sr()}getStaticValue(e){return this.latestValues[e]}setStaticValue(e,n){this.latestValues[e]=n}update(e,n){(e.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=e,this.prevPresenceContext=this.presenceContext,this.presenceContext=n;for(let r=0;rn.variantChildren.delete(e)}addValue(e,n){const r=this.values.get(e);n!==r&&(r&&this.removeValue(e),this.bindToMotionValue(e,n),this.values.set(e,n),this.latestValues[e]=n.get())}removeValue(e){this.values.delete(e);const n=this.valueSubscriptions.get(e);n&&(n(),this.valueSubscriptions.delete(e)),delete this.latestValues[e],this.removeValueFromRenderState(e,this.renderState)}hasValue(e){return this.values.has(e)}getValue(e,n){if(this.props.values&&this.props.values[e])return this.props.values[e];let r=this.values.get(e);return r===void 0&&n!==void 0&&(r=xy(n===null?void 0:n,{owner:this}),this.addValue(e,r)),r}readValue(e,n){let r=this.latestValues[e]!==void 0||!this.current?this.latestValues[e]:this.getBaseTargetFromProps(this.props,e)??this.readValueFromInstance(this.current,e,this.options);return r!=null&&(typeof r=="string"&&(pk(r)||gk(r))?r=parseFloat(r):!Rfe(r)&&qf.test(n)&&(r=Qk(e,n)),this.setBaseTarget(e,Li(r)?r.get():r)),Li(r)?r.get():r}setBaseTarget(e,n){this.baseTarget[e]=n}getBaseTarget(e){var o;const{initial:n}=this.props;let r;if(typeof n=="string"||typeof n=="object"){const u=P4(this.props,n,(o=this.presenceContext)==null?void 0:o.custom);u&&(r=u[e])}if(n&&r!==void 0)return r;const i=this.getBaseTargetFromProps(this.props,e);return i!==void 0&&!Li(i)?i:this.initialValues[e]!==void 0&&r===void 0?void 0:this.baseTarget[e]}on(e,n){return this.events[e]||(this.events[e]=new o4),this.events[e].add(n)}notify(e,...n){this.events[e]&&this.events[e].notify(...n)}}class BD extends fpe{constructor(){super(...arguments),this.KeyframeResolver=vfe}sortInstanceNodePosition(e,n){return e.compareDocumentPosition(n)&2?1:-1}getBaseTargetFromProps(e,n){return e.style?e.style[n]:void 0}removeValueFromRenderState(e,{vars:n,style:r}){delete n[e],delete r[e]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:e}=this.props;Li(e)&&(this.childSubscription=e.on("change",n=>{this.current&&(this.current.textContent=`${n}`)}))}}function jD(t,{style:e,vars:n},r,i){Object.assign(t.style,e,i&&i.getProjectionStyles(r));for(const o in n)t.style.setProperty(o,n[o])}function dpe(t){return window.getComputedStyle(t)}class hpe extends BD{constructor(){super(...arguments),this.type="html",this.renderInstance=jD}readValueFromInstance(e,n){var r;if(By.has(n))return(r=this.projection)!=null&&r.isProjecting?RO(n):Fce(e,n);{const i=dpe(e),o=(l4(n)?i.getPropertyValue(n):i[n])||0;return typeof o=="string"?o.trim():o}}measureInstanceViewportBox(e,{transformPagePoint:n}){return OD(e,n)}build(e,n,r){_4(e,n,r.transformTemplate)}scrapeMotionValuesFromProps(e,n,r){return I4(e,n,r)}}const qD=new Set(["baseFrequency","diffuseConstant","kernelMatrix","kernelUnitLength","keySplines","keyTimes","limitingConeAngle","markerHeight","markerWidth","numOctaves","targetX","targetY","surfaceScale","specularConstant","specularExponent","stdDeviation","tableValues","viewBox","gradientTransform","pathLength","startOffset","textLength","lengthAdjust"]);function ppe(t,e,n,r){jD(t,e,void 0,r);for(const i in e.attrs)t.setAttribute(qD.has(i)?i:T4(i),e.attrs[i])}class mpe extends BD{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=Sr}getBaseTargetFromProps(e,n){return e[n]}readValueFromInstance(e,n){if(By.has(n)){const r=Jk(n);return r&&r.default||0}return n=qD.has(n)?n:T4(n),e.getAttribute(n)}scrapeMotionValuesFromProps(e,n,r){return gD(e,n,r)}build(e,n,r){dD(e,n,this.isSVGTag,r.transformTemplate,r.style)}renderInstance(e,n,r,i){ppe(e,n,r,i)}mount(e){this.isSVGTag=pD(e.tagName),super.mount(e)}}const gpe=(t,e)=>R4(t)?new mpe(e):new hpe(e,{allowProjection:t!==T.Fragment}),ype=mde({...jde,...ope,...Yhe,...spe},gpe),vpe=Bfe(ype),bpe={initial:{x:"100%",opacity:0},animate:{x:0,opacity:1},exit:{x:"100%",opacity:0}};function wpe({children:t}){var r;const e=zl();return((r=e.state)==null?void 0:r.animated)?N.jsx(kfe,{mode:"wait",children:N.jsx(vpe.div,{variants:bpe,initial:"initial",animate:"animate",exit:"exit",transition:{duration:.15},style:{width:"100%"},children:t},e.pathname)}):N.jsx(N.Fragment,{children:t})}var lb,u1,_f,Af,Rf,Hw;function er(t,e){if(!{}.hasOwnProperty.call(t,e))throw new TypeError("attempted to use private field on non-instance");return t}var Spe=0;function _l(t){return"__private_"+Spe+++"_"+t}class _m{}lb=_m;_m.URL="/urw/query";_m.NewUrl=t=>ma(lb.URL,void 0,t);_m.Method="get";_m.Fetch$=async(t,e,n,r)=>ha(r??lb.NewUrl(t),{method:lb.Method,...n||{}},e);_m.Fetch=async(t,{creatorFn:e,qs:n,ctx:r,onMessage:i,overrideUrl:o}={creatorFn:u=>new qo(u)})=>{e=e||(l=>new qo(l));const u=await lb.Fetch$(n,r,t,o);return pa(u,l=>{const d=new Ui;return e&&d.setCreator(e),d.inject(l),d},i,t==null?void 0:t.signal)};_m.Definition={name:"QueryUserRoleWorkspaces",cliName:"urw",url:"/urw/query",method:"get",description:"Returns the workspaces that user belongs to, as well as his role in there, and the permissions for each role",out:{envelope:"GResponse",fields:[{name:"name",type:"string"},{name:"capabilities",description:"Workspace level capabilities which are available",type:"slice",primitive:"string"},{name:"uniqueId",type:"string"},{name:"roles",type:"array",fields:[{name:"name",type:"string"},{name:"uniqueId",type:"string"},{name:"capabilities",description:"Capabilities related to this role which are available",type:"slice",primitive:"string"}]}]}};var Fp=_l("name"),Lp=_l("capabilities"),Up=_l("uniqueId"),El=_l("roles"),ox=_l("isJsonAppliable");class qo{get name(){return er(this,Fp)[Fp]}set name(e){er(this,Fp)[Fp]=String(e)}setName(e){return this.name=e,this}get capabilities(){return er(this,Lp)[Lp]}set capabilities(e){er(this,Lp)[Lp]=e}setCapabilities(e){return this.capabilities=e,this}get uniqueId(){return er(this,Up)[Up]}set uniqueId(e){er(this,Up)[Up]=String(e)}setUniqueId(e){return this.uniqueId=e,this}get roles(){return er(this,El)[El]}set roles(e){Array.isArray(e)&&(e.length>0&&e[0]instanceof qo.Roles?er(this,El)[El]=e:er(this,El)[El]=e.map(n=>new qo.Roles(n)))}setRoles(e){return this.roles=e,this}constructor(e=void 0){if(Object.defineProperty(this,ox,{value:Cpe}),Object.defineProperty(this,Fp,{writable:!0,value:""}),Object.defineProperty(this,Lp,{writable:!0,value:[]}),Object.defineProperty(this,Up,{writable:!0,value:""}),Object.defineProperty(this,El,{writable:!0,value:[]}),e!=null)if(typeof e=="string")this.applyFromObject(JSON.parse(e));else if(er(this,ox)[ox](e))this.applyFromObject(e);else throw new Error("Instance cannot be created on an unknown value, check the content being passed. got: "+typeof e)}applyFromObject(e={}){const n=e;n.name!==void 0&&(this.name=n.name),n.capabilities!==void 0&&(this.capabilities=n.capabilities),n.uniqueId!==void 0&&(this.uniqueId=n.uniqueId),n.roles!==void 0&&(this.roles=n.roles)}toJSON(){return{name:er(this,Fp)[Fp],capabilities:er(this,Lp)[Lp],uniqueId:er(this,Up)[Up],roles:er(this,El)[El]}}toString(){return JSON.stringify(this)}static get Fields(){return{name:"name",capabilities$:"capabilities",get capabilities(){return"capabilities[:i]"},uniqueId:"uniqueId",roles$:"roles",get roles(){return Nu("roles[:i]",qo.Roles.Fields)}}}static from(e){return new qo(e)}static with(e){return new qo(e)}copyWith(e){return new qo({...this.toJSON(),...e})}clone(){return new qo(this.toJSON())}}u1=qo;function Cpe(t){const e=globalThis,n=typeof e.Buffer<"u"&&typeof e.Buffer.isBuffer=="function"&&e.Buffer.isBuffer(t),r=typeof e.Blob<"u"&&t instanceof e.Blob;return t&&typeof t=="object"&&!Array.isArray(t)&&!n&&!(t instanceof ArrayBuffer)&&!r}qo.Roles=(_f=_l("name"),Af=_l("uniqueId"),Rf=_l("capabilities"),Hw=_l("isJsonAppliable"),class{get name(){return er(this,_f)[_f]}set name(e){er(this,_f)[_f]=String(e)}setName(e){return this.name=e,this}get uniqueId(){return er(this,Af)[Af]}set uniqueId(e){er(this,Af)[Af]=String(e)}setUniqueId(e){return this.uniqueId=e,this}get capabilities(){return er(this,Rf)[Rf]}set capabilities(e){er(this,Rf)[Rf]=e}setCapabilities(e){return this.capabilities=e,this}constructor(e=void 0){if(Object.defineProperty(this,Hw,{value:$pe}),Object.defineProperty(this,_f,{writable:!0,value:""}),Object.defineProperty(this,Af,{writable:!0,value:""}),Object.defineProperty(this,Rf,{writable:!0,value:[]}),e!=null)if(typeof e=="string")this.applyFromObject(JSON.parse(e));else if(er(this,Hw)[Hw](e))this.applyFromObject(e);else throw new Error("Instance cannot be created on an unknown value, check the content being passed. got: "+typeof e)}applyFromObject(e={}){const n=e;n.name!==void 0&&(this.name=n.name),n.uniqueId!==void 0&&(this.uniqueId=n.uniqueId),n.capabilities!==void 0&&(this.capabilities=n.capabilities)}toJSON(){return{name:er(this,_f)[_f],uniqueId:er(this,Af)[Af],capabilities:er(this,Rf)[Rf]}}toString(){return JSON.stringify(this)}static get Fields(){return{name:"name",uniqueId:"uniqueId",capabilities$:"capabilities",get capabilities(){return"roles.capabilities[:i]"}}}static from(e){return new u1.Roles(e)}static with(e){return new u1.Roles(e)}copyWith(e){return new u1.Roles({...this.toJSON(),...e})}clone(){return new u1.Roles(this.toJSON())}});function $pe(t){const e=globalThis,n=typeof e.Buffer<"u"&&typeof e.Buffer.isBuffer=="function"&&e.Buffer.isBuffer(t),r=typeof e.Blob<"u"&&t instanceof e.Blob;return t&&typeof t=="object"&&!Array.isArray(t)&&!n&&!(t instanceof ArrayBuffer)&&!r}function Epe(){return N.jsxs(N.Fragment,{children:[N.jsxs(mn,{path:"selfservice",children:[N.jsx(mn,{path:"welcome",element:N.jsx(aX,{})}),N.jsx(mn,{path:"email",element:N.jsx(_P,{method:ao.Email})}),N.jsx(mn,{path:"phone",element:N.jsx(_P,{method:ao.Phone})}),N.jsx(mn,{path:"totp-setup",element:N.jsx(GX,{})}),N.jsx(mn,{path:"totp-enter",element:N.jsx(YX,{})}),N.jsx(mn,{path:"complete",element:N.jsx(oZ,{})}),N.jsx(mn,{path:"password",element:N.jsx(hZ,{})}),N.jsx(mn,{path:"otp",element:N.jsx(wZ,{})})]}),N.jsx(mn,{path:"*",element:N.jsx(Tx,{to:"/en/selfservice/welcome",replace:!0})})]})}function xpe(){const t=Cue(),e=jue(),n=tle(),r=Nle();return N.jsxs(mn,{path:"selfservice",children:[N.jsx(mn,{path:"passports",element:N.jsx(qG,{})}),N.jsx(mn,{path:"change-password/:uniqueId",element:N.jsx(zQ,{})}),t,e,n,r,N.jsx(mn,{path:"",element:N.jsx(wpe,{children:N.jsx(Mle,{})})})]})}const G9=PV;function Ope(){const t=T.useRef(EG),e=T.useRef(new ZF);return N.jsx(oL,{client:e.current,children:N.jsx(Iz,{mockServer:t,config:{},prefix:"",queryClient:e.current,children:N.jsx(Tpe,{})})})}function Tpe(){const t=Epe(),e=xpe(),{session:n,checked:r}=NG();return N.jsx(N.Fragment,{children:!n&&r?N.jsx(G9,{children:N.jsxs(cA,{children:[N.jsx(mn,{path:":locale",children:t}),N.jsx(mn,{path:"*",element:N.jsx(Tx,{to:"/en/selftservice",replace:!0})})]})}):N.jsx(G9,{children:N.jsxs(cA,{children:[N.jsx(mn,{path:":locale",children:e}),N.jsx(mn,{path:"*",element:N.jsx(Tx,{to:"/en/selfservice/passports",replace:!0})})]})})})}const _pe=IF.createRoot(document.getElementById("root"));_pe.render(N.jsx(Ae.StrictMode,{children:N.jsx(Ope,{})}))});export default Ape(); diff --git a/modules/fireback/codegen/selfservice/index.html b/modules/fireback/codegen/selfservice/index.html index 9177825d4..6c620049e 100644 --- a/modules/fireback/codegen/selfservice/index.html +++ b/modules/fireback/codegen/selfservice/index.html @@ -5,7 +5,7 @@ Fireback - +